bt-core-app 1.4.96 → 1.4.98

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.
Files changed (2) hide show
  1. package/dist/bt-core-app.js +585 -570
  2. package/package.json +1 -1
@@ -12,10 +12,10 @@ function pt(e) {
12
12
  }
13
13
  function en(e) {
14
14
  const t = z([]), l = Ne(), S = Ne(), s = Ne(), g = ee(() => l.value != null);
15
- function x(d) {
15
+ function I(d) {
16
16
  t.value = t.value.filter((h) => h.id != d);
17
17
  }
18
- function P(d) {
18
+ function C(d) {
19
19
  const h = {
20
20
  id: Ot(),
21
21
  msg: d ?? "Loading"
@@ -25,13 +25,13 @@ function en(e) {
25
25
  function _(d) {
26
26
  d != null && (S.value = d.toString());
27
27
  }
28
- function M() {
28
+ function L() {
29
29
  S.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 = P(u.loadingMsg);
34
+ const r = C(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;
@@ -44,7 +44,7 @@ function en(e) {
44
44
  _(u.errorMsg ?? D ?? "error");
45
45
  }
46
46
  } finally {
47
- x(r);
47
+ I(r);
48
48
  }
49
49
  }
50
50
  return Or(t, (d) => {
@@ -53,7 +53,7 @@ function en(e) {
53
53
  actionErrorMsg: S,
54
54
  actionLoadingMsg: l,
55
55
  actionCompleteMsg: s,
56
- clearErrors: M,
56
+ clearErrors: L,
57
57
  doAction: $,
58
58
  isLoading: g,
59
59
  logError: _
@@ -72,17 +72,17 @@ var Re = function() {
72
72
  }
73
73
  function l(s, g) {
74
74
  if (g = typeof g == "object" ? g : { direction: g }, typeof s != "function") {
75
- var x = s;
75
+ var I = s;
76
76
  s = function(d) {
77
- return d[x] ? d[x] : "";
77
+ return d[I] ? d[I] : "";
78
78
  };
79
79
  }
80
80
  if (s.length === 1) {
81
- var P = s, _ = g.ignoreCase ? t : e, M = g.cmp || function(d, h) {
81
+ var C = s, _ = g.ignoreCase ? t : e, L = g.cmp || function(d, h) {
82
82
  return d < h ? -1 : d > h ? 1 : 0;
83
83
  };
84
84
  s = function(d, h) {
85
- return M(_(P(d)), _(P(h)));
85
+ return L(_(C(d)), _(C(h)));
86
86
  };
87
87
  }
88
88
  const $ = { "-1": "", desc: "" };
@@ -91,9 +91,9 @@ var Re = function() {
91
91
  } : s;
92
92
  }
93
93
  function S(s, g) {
94
- var x = typeof this == "function" && !this.firstBy ? this : !1, P = l(s, g), _ = x ? function(M, $) {
95
- return x(M, $) || P(M, $);
96
- } : P;
94
+ var I = typeof this == "function" && !this.firstBy ? this : !1, C = l(s, g), _ = I ? function(L, $) {
95
+ return I(L, $) || C(L, $);
96
+ } : C;
97
97
  return _.thenBy = S, _;
98
98
  }
99
99
  return S.firstBy = S, S;
@@ -170,8 +170,8 @@ async function pn(e, t = !0) {
170
170
  s.setAttribute("crossOrigin", "anonymous"), s.onload = function() {
171
171
  var g = document.createElement("canvas");
172
172
  g.width = this.width, g.height = this.height;
173
- var x = g.getContext("2d");
174
- x == null || x.drawImage(this, 0, 0), l(g.toDataURL("image/png"));
173
+ var I = g.getContext("2d");
174
+ I == null || I.drawImage(this, 0, 0), l(g.toDataURL("image/png"));
175
175
  }, s.onerror = function() {
176
176
  console.log("errr"), t ? S("image could not be loaded for some reason") : l(null);
177
177
  }, e != null && (s.src = e);
@@ -214,21 +214,21 @@ function ta(e) {
214
214
  function na(e, t) {
215
215
  if (e == null || t == null)
216
216
  return !0;
217
- const l = e.replaceAll(" ", "").split(",").map((g) => g.toLowerCase()), S = t.replaceAll(" ", "").toLowerCase(), s = Ze.find((g) => g.values.some((x) => x == S));
218
- return s != null && l.some((g) => g == s.short || s.values.some((x) => x == g));
217
+ const l = e.replaceAll(" ", "").split(",").map((g) => g.toLowerCase()), S = t.replaceAll(" ", "").toLowerCase(), s = Ze.find((g) => g.values.some((I) => I == S));
218
+ return s != null && l.some((g) => g == s.short || s.values.some((I) => I == g));
219
219
  }
220
220
  function aa(e, t) {
221
221
  if (t == null)
222
222
  return e;
223
223
  let l = e ?? "";
224
224
  l = `${l},${t}`;
225
- let S = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((s) => Ze.find((g) => g.values.some((x) => x == s))).filter((s) => s != null).sort(Re.firstBy((s) => (s == null ? void 0 : s.value) ?? 0)).map((s) => s == null ? void 0 : s.short))].toString();
225
+ let S = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((s) => Ze.find((g) => g.values.some((I) => I == s))).filter((s) => s != null).sort(Re.firstBy((s) => (s == null ? void 0 : s.value) ?? 0)).map((s) => s == null ? void 0 : s.short))].toString();
226
226
  return S.length > 0 ? S : void 0;
227
227
  }
228
228
  function la(e, t) {
229
229
  if (t == null || e == null)
230
230
  return e;
231
- let l = e ?? "", S = t.replaceAll(" ", "").toLowerCase(), s = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((g) => Ze.find((x) => x.values.some((P) => P == g && P != S))).filter((g) => g != null).sort(Re.firstBy((g) => (g == null ? void 0 : g.value) ?? 0)).map((g) => g == null ? void 0 : g.short))].toString();
231
+ let l = e ?? "", S = t.replaceAll(" ", "").toLowerCase(), s = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((g) => Ze.find((I) => I.values.some((C) => C == g && C != S))).filter((g) => g != null).sort(Re.firstBy((g) => (g == null ? void 0 : g.value) ?? 0)).map((g) => g == null ? void 0 : g.short))].toString();
232
232
  return s.length > 0 ? s : void 0;
233
233
  }
234
234
  function ua(e, t) {
@@ -369,50 +369,50 @@ var nt = { exports: {} };
369
369
  e.exports = l();
370
370
  })(function() {
371
371
  return function l(S, s, g) {
372
- function x(M, $) {
373
- if (!s[M]) {
374
- if (!S[M]) {
372
+ function I(L, $) {
373
+ if (!s[L]) {
374
+ if (!S[L]) {
375
375
  var d = typeof Oe == "function" && Oe;
376
376
  if (!$ && d)
377
- return d(M, !0);
378
- if (P)
379
- return P(M, !0);
380
- var h = new Error("Cannot find module '" + M + "'");
377
+ return d(L, !0);
378
+ if (C)
379
+ return C(L, !0);
380
+ var h = new Error("Cannot find module '" + L + "'");
381
381
  throw h.code = "MODULE_NOT_FOUND", h;
382
382
  }
383
- var u = s[M] = { exports: {} };
384
- S[M][0].call(u.exports, function(r) {
385
- var y = S[M][1][r];
386
- return x(y || r);
383
+ var u = s[L] = { exports: {} };
384
+ S[L][0].call(u.exports, function(r) {
385
+ var y = S[L][1][r];
386
+ return I(y || r);
387
387
  }, u, u.exports, l, S, s, g);
388
388
  }
389
- return s[M].exports;
389
+ return s[L].exports;
390
390
  }
391
- for (var P = typeof Oe == "function" && Oe, _ = 0; _ < g.length; _++)
392
- x(g[_]);
393
- return x;
391
+ for (var C = typeof Oe == "function" && Oe, _ = 0; _ < g.length; _++)
392
+ I(g[_]);
393
+ return I;
394
394
  }({ 1: [function(l, S, s) {
395
395
  (function(g) {
396
- var x = g.MutationObserver || g.WebKitMutationObserver, P;
397
- if (x) {
398
- var _ = 0, M = new x(r), $ = g.document.createTextNode("");
399
- M.observe($, {
396
+ var I = g.MutationObserver || g.WebKitMutationObserver, C;
397
+ if (I) {
398
+ var _ = 0, L = new I(r), $ = g.document.createTextNode("");
399
+ L.observe($, {
400
400
  characterData: !0
401
- }), P = function() {
401
+ }), C = function() {
402
402
  $.data = _ = ++_ % 2;
403
403
  };
404
404
  } else if (!g.setImmediate && typeof g.MessageChannel < "u") {
405
405
  var d = new g.MessageChannel();
406
- d.port1.onmessage = r, P = function() {
406
+ d.port1.onmessage = r, C = function() {
407
407
  d.port2.postMessage(0);
408
408
  };
409
409
  } else
410
- "document" in g && "onreadystatechange" in g.document.createElement("script") ? P = function() {
410
+ "document" in g && "onreadystatechange" in g.document.createElement("script") ? C = function() {
411
411
  var D = g.document.createElement("script");
412
412
  D.onreadystatechange = function() {
413
413
  r(), D.onreadystatechange = null, D.parentNode.removeChild(D), D = null;
414
414
  }, g.document.documentElement.appendChild(D);
415
- } : P = function() {
415
+ } : C = function() {
416
416
  setTimeout(r, 0);
417
417
  };
418
418
  var h, u = [];
@@ -427,73 +427,73 @@ var nt = { exports: {} };
427
427
  }
428
428
  S.exports = y;
429
429
  function y(D) {
430
- u.push(D) === 1 && !h && P();
430
+ u.push(D) === 1 && !h && C();
431
431
  }
432
432
  }).call(this, typeof Xe < "u" ? Xe : typeof self < "u" ? self : typeof window < "u" ? window : {});
433
433
  }, {}], 2: [function(l, S, s) {
434
434
  var g = l(1);
435
- function x() {
435
+ function I() {
436
436
  }
437
- var P = {}, _ = ["REJECTED"], M = ["FULFILLED"], $ = ["PENDING"];
437
+ var C = {}, _ = ["REJECTED"], L = ["FULFILLED"], $ = ["PENDING"];
438
438
  S.exports = d;
439
439
  function d(b) {
440
440
  if (typeof b != "function")
441
441
  throw new TypeError("resolver must be a function");
442
- this.state = $, this.queue = [], this.outcome = void 0, b !== x && y(this, b);
442
+ this.state = $, this.queue = [], this.outcome = void 0, b !== I && y(this, b);
443
443
  }
444
444
  d.prototype.catch = function(b) {
445
445
  return this.then(null, b);
446
446
  }, d.prototype.then = function(b, T) {
447
- if (typeof b != "function" && this.state === M || typeof T != "function" && this.state === _)
447
+ if (typeof b != "function" && this.state === L || typeof T != "function" && this.state === _)
448
448
  return this;
449
- var I = new this.constructor(x);
449
+ var x = new this.constructor(I);
450
450
  if (this.state !== $) {
451
- var N = this.state === M ? b : T;
452
- u(I, N, this.outcome);
451
+ var P = this.state === L ? b : T;
452
+ u(x, P, this.outcome);
453
453
  } else
454
- this.queue.push(new h(I, b, T));
455
- return I;
454
+ this.queue.push(new h(x, b, T));
455
+ return x;
456
456
  };
457
- function h(b, T, I) {
458
- this.promise = b, typeof T == "function" && (this.onFulfilled = T, this.callFulfilled = this.otherCallFulfilled), typeof I == "function" && (this.onRejected = I, this.callRejected = this.otherCallRejected);
457
+ function h(b, T, x) {
458
+ this.promise = b, typeof T == "function" && (this.onFulfilled = T, this.callFulfilled = this.otherCallFulfilled), typeof x == "function" && (this.onRejected = x, this.callRejected = this.otherCallRejected);
459
459
  }
460
460
  h.prototype.callFulfilled = function(b) {
461
- P.resolve(this.promise, b);
461
+ C.resolve(this.promise, b);
462
462
  }, h.prototype.otherCallFulfilled = function(b) {
463
463
  u(this.promise, this.onFulfilled, b);
464
464
  }, h.prototype.callRejected = function(b) {
465
- P.reject(this.promise, b);
465
+ C.reject(this.promise, b);
466
466
  }, h.prototype.otherCallRejected = function(b) {
467
467
  u(this.promise, this.onRejected, b);
468
468
  };
469
- function u(b, T, I) {
469
+ function u(b, T, x) {
470
470
  g(function() {
471
- var N;
471
+ var P;
472
472
  try {
473
- N = T(I);
473
+ P = T(x);
474
474
  } catch (f) {
475
- return P.reject(b, f);
475
+ return C.reject(b, f);
476
476
  }
477
- N === b ? P.reject(b, new TypeError("Cannot resolve promise with itself")) : P.resolve(b, N);
477
+ P === b ? C.reject(b, new TypeError("Cannot resolve promise with itself")) : C.resolve(b, P);
478
478
  });
479
479
  }
480
- P.resolve = function(b, T) {
481
- var I = D(r, T);
482
- if (I.status === "error")
483
- return P.reject(b, I.value);
484
- var N = I.value;
485
- if (N)
486
- y(b, N);
480
+ C.resolve = function(b, T) {
481
+ var x = D(r, T);
482
+ if (x.status === "error")
483
+ return C.reject(b, x.value);
484
+ var P = x.value;
485
+ if (P)
486
+ y(b, P);
487
487
  else {
488
- b.state = M, b.outcome = T;
488
+ b.state = L, b.outcome = T;
489
489
  for (var f = -1, A = b.queue.length; ++f < A; )
490
490
  b.queue[f].callFulfilled(T);
491
491
  }
492
492
  return b;
493
- }, P.reject = function(b, T) {
493
+ }, C.reject = function(b, T) {
494
494
  b.state = _, b.outcome = T;
495
- for (var I = -1, N = b.queue.length; ++I < N; )
496
- b.queue[I].callRejected(T);
495
+ for (var x = -1, P = b.queue.length; ++x < P; )
496
+ b.queue[x].callRejected(T);
497
497
  return b;
498
498
  };
499
499
  function r(b) {
@@ -504,73 +504,73 @@ var nt = { exports: {} };
504
504
  };
505
505
  }
506
506
  function y(b, T) {
507
- var I = !1;
508
- function N(X) {
509
- I || (I = !0, P.reject(b, X));
507
+ var x = !1;
508
+ function P(X) {
509
+ x || (x = !0, C.reject(b, X));
510
510
  }
511
511
  function f(X) {
512
- I || (I = !0, P.resolve(b, X));
512
+ x || (x = !0, C.resolve(b, X));
513
513
  }
514
514
  function A() {
515
- T(f, N);
515
+ T(f, P);
516
516
  }
517
517
  var j = D(A);
518
- j.status === "error" && N(j.value);
518
+ j.status === "error" && P(j.value);
519
519
  }
520
520
  function D(b, T) {
521
- var I = {};
521
+ var x = {};
522
522
  try {
523
- I.value = b(T), I.status = "success";
524
- } catch (N) {
525
- I.status = "error", I.value = N;
523
+ x.value = b(T), x.status = "success";
524
+ } catch (P) {
525
+ x.status = "error", x.value = P;
526
526
  }
527
- return I;
527
+ return x;
528
528
  }
529
529
  d.resolve = i;
530
530
  function i(b) {
531
- return b instanceof this ? b : P.resolve(new this(x), b);
531
+ return b instanceof this ? b : C.resolve(new this(I), b);
532
532
  }
533
533
  d.reject = E;
534
534
  function E(b) {
535
- var T = new this(x);
536
- return P.reject(T, b);
535
+ var T = new this(I);
536
+ return C.reject(T, b);
537
537
  }
538
538
  d.all = w;
539
539
  function w(b) {
540
540
  var T = this;
541
541
  if (Object.prototype.toString.call(b) !== "[object Array]")
542
542
  return this.reject(new TypeError("must be an array"));
543
- var I = b.length, N = !1;
544
- if (!I)
543
+ var x = b.length, P = !1;
544
+ if (!x)
545
545
  return this.resolve([]);
546
- for (var f = new Array(I), A = 0, j = -1, X = new this(x); ++j < I; )
546
+ for (var f = new Array(x), A = 0, j = -1, X = new this(I); ++j < x; )
547
547
  re(b[j], j);
548
548
  return X;
549
549
  function re(ue, be) {
550
550
  T.resolve(ue).then(G, function(Y) {
551
- N || (N = !0, P.reject(X, Y));
551
+ P || (P = !0, C.reject(X, Y));
552
552
  });
553
553
  function G(Y) {
554
- f[be] = Y, ++A === I && !N && (N = !0, P.resolve(X, f));
554
+ f[be] = Y, ++A === x && !P && (P = !0, C.resolve(X, f));
555
555
  }
556
556
  }
557
557
  }
558
- d.race = L;
559
- function L(b) {
558
+ d.race = N;
559
+ function N(b) {
560
560
  var T = this;
561
561
  if (Object.prototype.toString.call(b) !== "[object Array]")
562
562
  return this.reject(new TypeError("must be an array"));
563
- var I = b.length, N = !1;
564
- if (!I)
563
+ var x = b.length, P = !1;
564
+ if (!x)
565
565
  return this.resolve([]);
566
- for (var f = -1, A = new this(x); ++f < I; )
566
+ for (var f = -1, A = new this(I); ++f < x; )
567
567
  j(b[f]);
568
568
  return A;
569
569
  function j(X) {
570
570
  T.resolve(X).then(function(re) {
571
- N || (N = !0, P.resolve(A, re));
571
+ P || (P = !0, C.resolve(A, re));
572
572
  }, function(re) {
573
- N || (N = !0, P.reject(A, re));
573
+ P || (P = !0, C.reject(A, re));
574
574
  });
575
575
  }
576
576
  }
@@ -584,11 +584,11 @@ var nt = { exports: {} };
584
584
  } : function(n) {
585
585
  return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
586
586
  };
587
- function x(n, c) {
587
+ function I(n, c) {
588
588
  if (!(n instanceof c))
589
589
  throw new TypeError("Cannot call a class as a function");
590
590
  }
591
- function P() {
591
+ function C() {
592
592
  try {
593
593
  if (typeof indexedDB < "u")
594
594
  return indexedDB;
@@ -604,8 +604,8 @@ var nt = { exports: {} };
604
604
  return;
605
605
  }
606
606
  }
607
- var _ = P();
608
- function M() {
607
+ var _ = C();
608
+ function L() {
609
609
  try {
610
610
  if (!_ || !_.open)
611
611
  return !1;
@@ -650,13 +650,13 @@ var nt = { exports: {} };
650
650
  if (arguments.length && typeof arguments[arguments.length - 1] == "function")
651
651
  return arguments[arguments.length - 1];
652
652
  }
653
- var D = "local-forage-detect-blob-support", i = void 0, E = {}, w = Object.prototype.toString, L = "readonly", b = "readwrite";
653
+ var D = "local-forage-detect-blob-support", i = void 0, E = {}, w = Object.prototype.toString, N = "readonly", b = "readwrite";
654
654
  function T(n) {
655
655
  for (var c = n.length, a = new ArrayBuffer(c), m = new Uint8Array(a), v = 0; v < c; v++)
656
656
  m[v] = n.charCodeAt(v);
657
657
  return a;
658
658
  }
659
- function I(n) {
659
+ function x(n) {
660
660
  return new d(function(c) {
661
661
  var a = n.transaction(D, b), m = $([""]);
662
662
  a.objectStore(D).put(m, "key"), a.onabort = function(v) {
@@ -669,8 +669,8 @@ var nt = { exports: {} };
669
669
  return !1;
670
670
  });
671
671
  }
672
- function N(n) {
673
- return typeof i == "boolean" ? d.resolve(i) : I(n).then(function(c) {
672
+ function P(n) {
673
+ return typeof i == "boolean" ? d.resolve(i) : x(n).then(function(c) {
674
674
  return i = c, i;
675
675
  });
676
676
  }
@@ -702,23 +702,23 @@ var nt = { exports: {} };
702
702
  var v = [n.name];
703
703
  c && v.push(n.version);
704
704
  var o = _.open.apply(_, v);
705
- c && (o.onupgradeneeded = function(C) {
705
+ c && (o.onupgradeneeded = function(M) {
706
706
  var R = o.result;
707
707
  try {
708
- R.createObjectStore(n.storeName), C.oldVersion <= 1 && R.createObjectStore(D);
708
+ R.createObjectStore(n.storeName), M.oldVersion <= 1 && R.createObjectStore(D);
709
709
  } catch (B) {
710
710
  if (B.name === "ConstraintError")
711
- console.warn('The database "' + n.name + '" has been upgraded from version ' + C.oldVersion + " to version " + C.newVersion + ', but the storage "' + n.storeName + '" already exists.');
711
+ console.warn('The database "' + n.name + '" has been upgraded from version ' + M.oldVersion + " to version " + M.newVersion + ', but the storage "' + n.storeName + '" already exists.');
712
712
  else
713
713
  throw B;
714
714
  }
715
- }), o.onerror = function(C) {
716
- C.preventDefault(), m(o.error);
715
+ }), o.onerror = function(M) {
716
+ M.preventDefault(), m(o.error);
717
717
  }, o.onsuccess = function() {
718
- var C = o.result;
719
- C.onversionchange = function(R) {
718
+ var M = o.result;
719
+ M.onversionchange = function(R) {
720
720
  R.target.close();
721
- }, a(C), A(n);
721
+ }, a(M), A(n);
722
722
  };
723
723
  });
724
724
  }
@@ -779,8 +779,8 @@ var nt = { exports: {} };
779
779
  return n.db = o, be(n) ? ue(n) : o;
780
780
  }).then(function(o) {
781
781
  n.db = c.db = o;
782
- for (var C = 0; C < a.length; C++)
783
- a[C]._dbInfo.db = o;
782
+ for (var M = 0; M < a.length; M++)
783
+ a[M]._dbInfo.db = o;
784
784
  }).catch(function(o) {
785
785
  throw j(n, o), o;
786
786
  });
@@ -825,12 +825,12 @@ var nt = { exports: {} };
825
825
  var v = E[a.name];
826
826
  v || (v = ne(), E[a.name] = v), v.forages.push(c), c._initReady || (c._initReady = c.ready, c.ready = ie);
827
827
  var o = [];
828
- function C() {
828
+ function M() {
829
829
  return d.resolve();
830
830
  }
831
831
  for (var R = 0; R < v.forages.length; R++) {
832
832
  var B = v.forages[R];
833
- B !== c && o.push(B._initReady().catch(C));
833
+ B !== c && o.push(B._initReady().catch(M));
834
834
  }
835
835
  var F = v.forages.slice(0);
836
836
  return d.all(o).then(function() {
@@ -850,9 +850,9 @@ var nt = { exports: {} };
850
850
  n = r(n);
851
851
  var m = new d(function(v, o) {
852
852
  a.ready().then(function() {
853
- W(a._dbInfo, L, function(C, R) {
854
- if (C)
855
- return o(C);
853
+ W(a._dbInfo, N, function(M, R) {
854
+ if (M)
855
+ return o(M);
856
856
  try {
857
857
  var B = R.objectStore(a._dbInfo.storeName), F = B.get(n);
858
858
  F.onsuccess = function() {
@@ -872,9 +872,9 @@ var nt = { exports: {} };
872
872
  function ge(n, c) {
873
873
  var a = this, m = new d(function(v, o) {
874
874
  a.ready().then(function() {
875
- W(a._dbInfo, L, function(C, R) {
876
- if (C)
877
- return o(C);
875
+ W(a._dbInfo, N, function(M, R) {
876
+ if (M)
877
+ return o(M);
878
878
  try {
879
879
  var B = R.objectStore(a._dbInfo.storeName), F = B.openCursor(), k = 1;
880
880
  F.onsuccess = function() {
@@ -900,16 +900,16 @@ var nt = { exports: {} };
900
900
  function Be(n, c, a) {
901
901
  var m = this;
902
902
  n = r(n);
903
- var v = new d(function(o, C) {
903
+ var v = new d(function(o, M) {
904
904
  var R;
905
905
  m.ready().then(function() {
906
- return R = m._dbInfo, w.call(c) === "[object Blob]" ? N(R.db).then(function(B) {
906
+ return R = m._dbInfo, w.call(c) === "[object Blob]" ? P(R.db).then(function(B) {
907
907
  return B ? c : G(c);
908
908
  }) : c;
909
909
  }).then(function(B) {
910
910
  W(m._dbInfo, b, function(F, k) {
911
911
  if (F)
912
- return C(F);
912
+ return M(F);
913
913
  try {
914
914
  var q = k.objectStore(m._dbInfo.storeName);
915
915
  B === null && (B = void 0);
@@ -918,13 +918,13 @@ var nt = { exports: {} };
918
918
  B === void 0 && (B = null), o(B);
919
919
  }, k.onabort = k.onerror = function() {
920
920
  var p = J.error ? J.error : J.transaction.error;
921
- C(p);
921
+ M(p);
922
922
  };
923
923
  } catch (p) {
924
- C(p);
924
+ M(p);
925
925
  }
926
926
  });
927
- }).catch(C);
927
+ }).catch(M);
928
928
  });
929
929
  return h(v, a), v;
930
930
  }
@@ -933,9 +933,9 @@ var nt = { exports: {} };
933
933
  n = r(n);
934
934
  var m = new d(function(v, o) {
935
935
  a.ready().then(function() {
936
- W(a._dbInfo, b, function(C, R) {
937
- if (C)
938
- return o(C);
936
+ W(a._dbInfo, b, function(M, R) {
937
+ if (M)
938
+ return o(M);
939
939
  try {
940
940
  var B = R.objectStore(a._dbInfo.storeName), F = B.delete(n);
941
941
  R.oncomplete = function() {
@@ -957,14 +957,14 @@ var nt = { exports: {} };
957
957
  function Fe(n) {
958
958
  var c = this, a = new d(function(m, v) {
959
959
  c.ready().then(function() {
960
- W(c._dbInfo, b, function(o, C) {
960
+ W(c._dbInfo, b, function(o, M) {
961
961
  if (o)
962
962
  return v(o);
963
963
  try {
964
- var R = C.objectStore(c._dbInfo.storeName), B = R.clear();
965
- C.oncomplete = function() {
964
+ var R = M.objectStore(c._dbInfo.storeName), B = R.clear();
965
+ M.oncomplete = function() {
966
966
  m();
967
- }, C.onabort = C.onerror = function() {
967
+ }, M.onabort = M.onerror = function() {
968
968
  var F = B.error ? B.error : B.transaction.error;
969
969
  v(F);
970
970
  };
@@ -979,11 +979,11 @@ var nt = { exports: {} };
979
979
  function tr(n) {
980
980
  var c = this, a = new d(function(m, v) {
981
981
  c.ready().then(function() {
982
- W(c._dbInfo, L, function(o, C) {
982
+ W(c._dbInfo, N, function(o, M) {
983
983
  if (o)
984
984
  return v(o);
985
985
  try {
986
- var R = C.objectStore(c._dbInfo.storeName), B = R.count();
986
+ var R = M.objectStore(c._dbInfo.storeName), B = R.count();
987
987
  B.onsuccess = function() {
988
988
  m(B.result);
989
989
  }, B.onerror = function() {
@@ -1004,9 +1004,9 @@ var nt = { exports: {} };
1004
1004
  return;
1005
1005
  }
1006
1006
  a.ready().then(function() {
1007
- W(a._dbInfo, L, function(C, R) {
1008
- if (C)
1009
- return o(C);
1007
+ W(a._dbInfo, N, function(M, R) {
1008
+ if (M)
1009
+ return o(M);
1010
1010
  try {
1011
1011
  var B = R.objectStore(a._dbInfo.storeName), F = !1, k = B.openKeyCursor();
1012
1012
  k.onsuccess = function() {
@@ -1030,11 +1030,11 @@ var nt = { exports: {} };
1030
1030
  function Ce(n) {
1031
1031
  var c = this, a = new d(function(m, v) {
1032
1032
  c.ready().then(function() {
1033
- W(c._dbInfo, L, function(o, C) {
1033
+ W(c._dbInfo, N, function(o, M) {
1034
1034
  if (o)
1035
1035
  return v(o);
1036
1036
  try {
1037
- var R = C.objectStore(c._dbInfo.storeName), B = R.openKeyCursor(), F = [];
1037
+ var R = M.objectStore(c._dbInfo.storeName), B = R.openKeyCursor(), F = [];
1038
1038
  B.onsuccess = function() {
1039
1039
  var k = B.result;
1040
1040
  if (!k) {
@@ -1061,14 +1061,14 @@ var nt = { exports: {} };
1061
1061
  if (!n.name)
1062
1062
  v = d.reject("Invalid arguments");
1063
1063
  else {
1064
- var o = n.name === a.name && m._dbInfo.db, C = o ? d.resolve(m._dbInfo.db) : re(n).then(function(R) {
1064
+ var o = n.name === a.name && m._dbInfo.db, M = o ? d.resolve(m._dbInfo.db) : re(n).then(function(R) {
1065
1065
  var B = E[n.name], F = B.forages;
1066
1066
  B.db = R;
1067
1067
  for (var k = 0; k < F.length; k++)
1068
1068
  F[k]._dbInfo.db = R;
1069
1069
  return R;
1070
1070
  });
1071
- n.storeName ? v = C.then(function(R) {
1071
+ n.storeName ? v = M.then(function(R) {
1072
1072
  if (R.objectStoreNames.contains(n.storeName)) {
1073
1073
  var B = R.version + 1;
1074
1074
  f(n);
@@ -1102,7 +1102,7 @@ var nt = { exports: {} };
1102
1102
  }), te;
1103
1103
  });
1104
1104
  }
1105
- }) : v = C.then(function(R) {
1105
+ }) : v = M.then(function(R) {
1106
1106
  f(n);
1107
1107
  var B = E[n.name], F = B.forages;
1108
1108
  R.close();
@@ -1139,7 +1139,7 @@ var nt = { exports: {} };
1139
1139
  var lr = {
1140
1140
  _driver: "asyncStorage",
1141
1141
  _initStorage: ce,
1142
- _support: M(),
1142
+ _support: L(),
1143
1143
  iterate: ge,
1144
1144
  getItem: se,
1145
1145
  setItem: Be,
@@ -1155,11 +1155,11 @@ var nt = { exports: {} };
1155
1155
  }
1156
1156
  var Se = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ir = "~~local_forage_type~", Je = /^~~local_forage_type~([^~]+)~/, ke = "__lfsc__:", Pe = ke.length, qe = "arbf", Ie = "blob", je = "si08", Ke = "ui08", He = "uic8", Ve = "si16", U = "si32", K = "ur16", V = "ui32", O = "fl32", de = "fl64", ye = Pe + qe.length, De = Object.prototype.toString;
1157
1157
  function Ae(n) {
1158
- var c = n.length * 0.75, a = n.length, m, v = 0, o, C, R, B;
1158
+ var c = n.length * 0.75, a = n.length, m, v = 0, o, M, R, B;
1159
1159
  n[n.length - 1] === "=" && (c--, n[n.length - 2] === "=" && c--);
1160
1160
  var F = new ArrayBuffer(c), k = new Uint8Array(F);
1161
1161
  for (m = 0; m < a; m += 4)
1162
- o = Se.indexOf(n[m]), C = Se.indexOf(n[m + 1]), R = Se.indexOf(n[m + 2]), B = Se.indexOf(n[m + 3]), k[v++] = o << 2 | C >> 4, k[v++] = (C & 15) << 4 | R >> 2, k[v++] = (R & 3) << 6 | B & 63;
1162
+ o = Se.indexOf(n[m]), M = Se.indexOf(n[m + 1]), R = Se.indexOf(n[m + 2]), B = Se.indexOf(n[m + 3]), k[v++] = o << 2 | M >> 4, k[v++] = (M & 15) << 4 | R >> 2, k[v++] = (R & 3) << 6 | B & 63;
1163
1163
  return F;
1164
1164
  }
1165
1165
  function oe(n) {
@@ -1176,14 +1176,14 @@ var nt = { exports: {} };
1176
1176
  } else if (a === "[object Blob]") {
1177
1177
  var o = new FileReader();
1178
1178
  o.onload = function() {
1179
- var C = ir + n.type + "~" + oe(this.result);
1180
- c(ke + Ie + C);
1179
+ var M = ir + n.type + "~" + oe(this.result);
1180
+ c(ke + Ie + M);
1181
1181
  }, o.readAsArrayBuffer(n);
1182
1182
  } else
1183
1183
  try {
1184
1184
  c(JSON.stringify(n));
1185
- } catch (C) {
1186
- console.error("Couldn't convert value into a JSON string: ", n), c(null, C);
1185
+ } catch (M) {
1186
+ console.error("Couldn't convert value into a JSON string: ", n), c(null, M);
1187
1187
  }
1188
1188
  }
1189
1189
  function ct(n) {
@@ -1238,29 +1238,29 @@ var nt = { exports: {} };
1238
1238
  if (n)
1239
1239
  for (var m in n)
1240
1240
  a[m] = typeof n[m] != "string" ? n[m].toString() : n[m];
1241
- var v = new d(function(o, C) {
1241
+ var v = new d(function(o, M) {
1242
1242
  try {
1243
1243
  a.db = openDatabase(a.name, String(a.version), a.description, a.size);
1244
1244
  } catch (R) {
1245
- return C(R);
1245
+ return M(R);
1246
1246
  }
1247
1247
  a.db.transaction(function(R) {
1248
1248
  Rr(R, a, function() {
1249
1249
  c._dbInfo = a, o();
1250
1250
  }, function(B, F) {
1251
- C(F);
1251
+ M(F);
1252
1252
  });
1253
- }, C);
1253
+ }, M);
1254
1254
  });
1255
1255
  return a.serializer = cr, v;
1256
1256
  }
1257
1257
  function xe(n, c, a, m, v, o) {
1258
- n.executeSql(a, m, v, function(C, R) {
1259
- R.code === R.SYNTAX_ERR ? C.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [c.storeName], function(B, F) {
1258
+ n.executeSql(a, m, v, function(M, R) {
1259
+ R.code === R.SYNTAX_ERR ? M.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [c.storeName], function(B, F) {
1260
1260
  F.rows.length ? o(B, R) : Rr(B, c, function() {
1261
1261
  B.executeSql(a, m, v, o);
1262
1262
  }, o);
1263
- }, o) : o(C, R);
1263
+ }, o) : o(M, R);
1264
1264
  }, o);
1265
1265
  }
1266
1266
  function st(n, c) {
@@ -1268,11 +1268,11 @@ var nt = { exports: {} };
1268
1268
  n = r(n);
1269
1269
  var m = new d(function(v, o) {
1270
1270
  a.ready().then(function() {
1271
- var C = a._dbInfo;
1272
- C.db.transaction(function(R) {
1273
- xe(R, C, "SELECT * FROM " + C.storeName + " WHERE key = ? LIMIT 1", [n], function(B, F) {
1271
+ var M = a._dbInfo;
1272
+ M.db.transaction(function(R) {
1273
+ xe(R, M, "SELECT * FROM " + M.storeName + " WHERE key = ? LIMIT 1", [n], function(B, F) {
1274
1274
  var k = F.rows.length ? F.rows.item(0).value : null;
1275
- k && (k = C.serializer.deserialize(k)), v(k);
1275
+ k && (k = M.serializer.deserialize(k)), v(k);
1276
1276
  }, function(B, F) {
1277
1277
  o(F);
1278
1278
  });
@@ -1284,12 +1284,12 @@ var nt = { exports: {} };
1284
1284
  function ot(n, c) {
1285
1285
  var a = this, m = new d(function(v, o) {
1286
1286
  a.ready().then(function() {
1287
- var C = a._dbInfo;
1288
- C.db.transaction(function(R) {
1289
- xe(R, C, "SELECT * FROM " + C.storeName, [], function(B, F) {
1287
+ var M = a._dbInfo;
1288
+ M.db.transaction(function(R) {
1289
+ xe(R, M, "SELECT * FROM " + M.storeName, [], function(B, F) {
1290
1290
  for (var k = F.rows, q = k.length, J = 0; J < q; J++) {
1291
1291
  var p = k.item(J), te = p.value;
1292
- if (te && (te = C.serializer.deserialize(te)), te = n(te, p.key, J + 1), te !== void 0) {
1292
+ if (te && (te = M.serializer.deserialize(te)), te = n(te, p.key, J + 1), te !== void 0) {
1293
1293
  v(te);
1294
1294
  return;
1295
1295
  }
@@ -1306,21 +1306,21 @@ var nt = { exports: {} };
1306
1306
  function Ur(n, c, a, m) {
1307
1307
  var v = this;
1308
1308
  n = r(n);
1309
- var o = new d(function(C, R) {
1309
+ var o = new d(function(M, R) {
1310
1310
  v.ready().then(function() {
1311
1311
  c === void 0 && (c = null);
1312
1312
  var B = c, F = v._dbInfo;
1313
1313
  F.serializer.serialize(c, function(k, q) {
1314
1314
  q ? R(q) : F.db.transaction(function(J) {
1315
1315
  xe(J, F, "INSERT OR REPLACE INTO " + F.storeName + " (key, value) VALUES (?, ?)", [n, k], function() {
1316
- C(B);
1316
+ M(B);
1317
1317
  }, function(p, te) {
1318
1318
  R(te);
1319
1319
  });
1320
1320
  }, function(J) {
1321
1321
  if (J.code === J.QUOTA_ERR) {
1322
1322
  if (m > 0) {
1323
- C(Ur.apply(v, [n, B, a, m - 1]));
1323
+ M(Ur.apply(v, [n, B, a, m - 1]));
1324
1324
  return;
1325
1325
  }
1326
1326
  R(J);
@@ -1339,9 +1339,9 @@ var nt = { exports: {} };
1339
1339
  n = r(n);
1340
1340
  var m = new d(function(v, o) {
1341
1341
  a.ready().then(function() {
1342
- var C = a._dbInfo;
1343
- C.db.transaction(function(R) {
1344
- xe(R, C, "DELETE FROM " + C.storeName + " WHERE key = ?", [n], function() {
1342
+ var M = a._dbInfo;
1343
+ M.db.transaction(function(R) {
1344
+ xe(R, M, "DELETE FROM " + M.storeName + " WHERE key = ?", [n], function() {
1345
1345
  v();
1346
1346
  }, function(B, F) {
1347
1347
  o(F);
@@ -1355,8 +1355,8 @@ var nt = { exports: {} };
1355
1355
  var c = this, a = new d(function(m, v) {
1356
1356
  c.ready().then(function() {
1357
1357
  var o = c._dbInfo;
1358
- o.db.transaction(function(C) {
1359
- xe(C, o, "DELETE FROM " + o.storeName, [], function() {
1358
+ o.db.transaction(function(M) {
1359
+ xe(M, o, "DELETE FROM " + o.storeName, [], function() {
1360
1360
  m();
1361
1361
  }, function(R, B) {
1362
1362
  v(B);
@@ -1370,8 +1370,8 @@ var nt = { exports: {} };
1370
1370
  var c = this, a = new d(function(m, v) {
1371
1371
  c.ready().then(function() {
1372
1372
  var o = c._dbInfo;
1373
- o.db.transaction(function(C) {
1374
- xe(C, o, "SELECT COUNT(key) as c FROM " + o.storeName, [], function(R, B) {
1373
+ o.db.transaction(function(M) {
1374
+ xe(M, o, "SELECT COUNT(key) as c FROM " + o.storeName, [], function(R, B) {
1375
1375
  var F = B.rows.item(0).c;
1376
1376
  m(F);
1377
1377
  }, function(R, B) {
@@ -1385,9 +1385,9 @@ var nt = { exports: {} };
1385
1385
  function gt(n, c) {
1386
1386
  var a = this, m = new d(function(v, o) {
1387
1387
  a.ready().then(function() {
1388
- var C = a._dbInfo;
1389
- C.db.transaction(function(R) {
1390
- xe(R, C, "SELECT key FROM " + C.storeName + " WHERE id = ? LIMIT 1", [n + 1], function(B, F) {
1388
+ var M = a._dbInfo;
1389
+ M.db.transaction(function(R) {
1390
+ xe(R, M, "SELECT key FROM " + M.storeName + " WHERE id = ? LIMIT 1", [n + 1], function(B, F) {
1391
1391
  var k = F.rows.length ? F.rows.item(0).key : null;
1392
1392
  v(k);
1393
1393
  }, function(B, F) {
@@ -1402,8 +1402,8 @@ var nt = { exports: {} };
1402
1402
  var c = this, a = new d(function(m, v) {
1403
1403
  c.ready().then(function() {
1404
1404
  var o = c._dbInfo;
1405
- o.db.transaction(function(C) {
1406
- xe(C, o, "SELECT key FROM " + o.storeName, [], function(R, B) {
1405
+ o.db.transaction(function(M) {
1406
+ xe(M, o, "SELECT key FROM " + o.storeName, [], function(R, B) {
1407
1407
  for (var F = [], k = 0; k < B.rows.length; k++)
1408
1408
  F.push(B.rows.item(k).key);
1409
1409
  m(F);
@@ -1419,11 +1419,11 @@ var nt = { exports: {} };
1419
1419
  return new d(function(c, a) {
1420
1420
  n.transaction(function(m) {
1421
1421
  m.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'", [], function(v, o) {
1422
- for (var C = [], R = 0; R < o.rows.length; R++)
1423
- C.push(o.rows.item(R).name);
1422
+ for (var M = [], R = 0; R < o.rows.length; R++)
1423
+ M.push(o.rows.item(R).name);
1424
1424
  c({
1425
1425
  db: n,
1426
- storeNames: C
1426
+ storeNames: M
1427
1427
  });
1428
1428
  }, function(v, o) {
1429
1429
  a(o);
@@ -1439,13 +1439,13 @@ var nt = { exports: {} };
1439
1439
  n = typeof n != "function" && n || {}, n.name || (n.name = n.name || a.name, n.storeName = n.storeName || a.storeName);
1440
1440
  var m = this, v;
1441
1441
  return n.name ? v = new d(function(o) {
1442
- var C;
1443
- n.name === a.name ? C = m._dbInfo.db : C = openDatabase(n.name, "", "", 0), n.storeName ? o({
1444
- db: C,
1442
+ var M;
1443
+ n.name === a.name ? M = m._dbInfo.db : M = openDatabase(n.name, "", "", 0), n.storeName ? o({
1444
+ db: M,
1445
1445
  storeNames: [n.storeName]
1446
- }) : o(wt(C));
1446
+ }) : o(wt(M));
1447
1447
  }).then(function(o) {
1448
- return new d(function(C, R) {
1448
+ return new d(function(M, R) {
1449
1449
  o.db.transaction(function(B) {
1450
1450
  function F(p) {
1451
1451
  return new d(function(te, fe) {
@@ -1459,7 +1459,7 @@ var nt = { exports: {} };
1459
1459
  for (var k = [], q = 0, J = o.storeNames.length; q < J; q++)
1460
1460
  k.push(F(o.storeNames[q]));
1461
1461
  d.all(k).then(function() {
1462
- C();
1462
+ M();
1463
1463
  }).catch(function(p) {
1464
1464
  R(p);
1465
1465
  });
@@ -1533,11 +1533,11 @@ var nt = { exports: {} };
1533
1533
  }
1534
1534
  function _t(n, c) {
1535
1535
  var a = this, m = a.ready().then(function() {
1536
- for (var v = a._dbInfo, o = v.keyPrefix, C = o.length, R = localStorage.length, B = 1, F = 0; F < R; F++) {
1536
+ for (var v = a._dbInfo, o = v.keyPrefix, M = o.length, R = localStorage.length, B = 1, F = 0; F < R; F++) {
1537
1537
  var k = localStorage.key(F);
1538
1538
  if (k.indexOf(o) === 0) {
1539
1539
  var q = localStorage.getItem(k);
1540
- if (q && (q = v.serializer.deserialize(q)), q = n(q, k.substring(C), B++), q !== void 0)
1540
+ if (q && (q = v.serializer.deserialize(q)), q = n(q, k.substring(M), B++), q !== void 0)
1541
1541
  return q;
1542
1542
  }
1543
1543
  }
@@ -1558,8 +1558,8 @@ var nt = { exports: {} };
1558
1558
  }
1559
1559
  function Pt(n) {
1560
1560
  var c = this, a = c.ready().then(function() {
1561
- for (var m = c._dbInfo, v = localStorage.length, o = [], C = 0; C < v; C++) {
1562
- var R = localStorage.key(C);
1561
+ for (var m = c._dbInfo, v = localStorage.length, o = [], M = 0; M < v; M++) {
1562
+ var R = localStorage.key(M);
1563
1563
  R.indexOf(m.keyPrefix) === 0 && o.push(R.substring(m.keyPrefix.length));
1564
1564
  }
1565
1565
  return o;
@@ -1587,14 +1587,14 @@ var nt = { exports: {} };
1587
1587
  var v = m.ready().then(function() {
1588
1588
  c === void 0 && (c = null);
1589
1589
  var o = c;
1590
- return new d(function(C, R) {
1590
+ return new d(function(M, R) {
1591
1591
  var B = m._dbInfo;
1592
1592
  B.serializer.serialize(c, function(F, k) {
1593
1593
  if (k)
1594
1594
  R(k);
1595
1595
  else
1596
1596
  try {
1597
- localStorage.setItem(B.keyPrefix + n, F), C(o);
1597
+ localStorage.setItem(B.keyPrefix + n, F), M(o);
1598
1598
  } catch (q) {
1599
1599
  (q.name === "QuotaExceededError" || q.name === "NS_ERROR_DOM_QUOTA_REACHED") && R(q), R(q);
1600
1600
  }
@@ -1612,8 +1612,8 @@ var nt = { exports: {} };
1612
1612
  return n.name ? v = new d(function(o) {
1613
1613
  n.storeName ? o(Br(n, m._defaultConfig)) : o(n.name + "/");
1614
1614
  }).then(function(o) {
1615
- for (var C = localStorage.length - 1; C >= 0; C--) {
1616
- var R = localStorage.key(C);
1615
+ for (var M = localStorage.length - 1; M >= 0; M--) {
1616
+ var R = localStorage.key(M);
1617
1617
  R.indexOf(o) === 0 && localStorage.removeItem(R);
1618
1618
  }
1619
1619
  }) : v = d.reject("Invalid arguments"), h(v, c), v;
@@ -1675,7 +1675,7 @@ var nt = { exports: {} };
1675
1675
  }
1676
1676
  var Wt = function() {
1677
1677
  function n(c) {
1678
- x(this, n);
1678
+ I(this, n);
1679
1679
  for (var a in Ge)
1680
1680
  if (Ge.hasOwnProperty(a)) {
1681
1681
  var m = Ge[a], v = m._driver;
@@ -1697,7 +1697,7 @@ var nt = { exports: {} };
1697
1697
  } else
1698
1698
  return typeof a == "string" ? this._config[a] : this._config;
1699
1699
  }, n.prototype.defineDriver = function(a, m, v) {
1700
- var o = new d(function(C, R) {
1700
+ var o = new d(function(M, R) {
1701
1701
  try {
1702
1702
  var B = a._driver, F = new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");
1703
1703
  if (!a._driver) {
@@ -1724,7 +1724,7 @@ var nt = { exports: {} };
1724
1724
  };
1725
1725
  fe();
1726
1726
  var ae = function(Ye) {
1727
- ze[B] && console.info("Redefining LocalForage driver: " + B), ze[B] = a, Fr[B] = Ye, C();
1727
+ ze[B] && console.info("Redefining LocalForage driver: " + B), ze[B] = a, Fr[B] = Ye, M();
1728
1728
  };
1729
1729
  "_support" in a ? a._support && typeof a._support == "function" ? a._support().then(ae, R) : ae(!!a._support) : ae(!0);
1730
1730
  } catch (we) {
@@ -1748,7 +1748,7 @@ var nt = { exports: {} };
1748
1748
  }, n.prototype.setDriver = function(a, m, v) {
1749
1749
  var o = this;
1750
1750
  $r(a) || (a = [a]);
1751
- var C = this._getSupportedDrivers(a);
1751
+ var M = this._getSupportedDrivers(a);
1752
1752
  function R() {
1753
1753
  o._config.driver = o.driver();
1754
1754
  }
@@ -1774,9 +1774,9 @@ var nt = { exports: {} };
1774
1774
  return d.resolve();
1775
1775
  }) : d.resolve();
1776
1776
  return this._driverSet = k.then(function() {
1777
- var q = C[0];
1777
+ var q = M[0];
1778
1778
  return o._dbInfo = null, o._ready = null, o.getDriver(q).then(function(J) {
1779
- o._driver = J._driver, R(), o._wrapLibraryMethodsWithReady(), o._initDriver = F(C);
1779
+ o._driver = J._driver, R(), o._wrapLibraryMethodsWithReady(), o._initDriver = F(M);
1780
1780
  });
1781
1781
  }).catch(function() {
1782
1782
  R();
@@ -1789,8 +1789,8 @@ var nt = { exports: {} };
1789
1789
  sr(this, a);
1790
1790
  }, n.prototype._getSupportedDrivers = function(a) {
1791
1791
  for (var m = [], v = 0, o = a.length; v < o; v++) {
1792
- var C = a[v];
1793
- this.supports(C) && m.push(C);
1792
+ var M = a[v];
1793
+ this.supports(M) && m.push(M);
1794
1794
  }
1795
1795
  return m;
1796
1796
  }, n.prototype._wrapLibraryMethodsWithReady = function() {
@@ -1873,8 +1873,8 @@ function wn(e) {
1873
1873
  }), rr;
1874
1874
  }
1875
1875
  function bn(e) {
1876
- var l, S, s, g, x;
1877
- e.storeMode ?? (e.storeMode = ((S = (l = e.navigation) == null ? void 0 : l.findItem(e.nav)) == null ? void 0 : S.storeMode) ?? "session"), e.storageMode ?? (e.storageMode = ((g = (s = e.navigation) == null ? void 0 : s.findItem(e.nav)) == null ? void 0 : g.storageMode) ?? "local-cache"), e.storeName ?? (e.storeName = ((x = e.navigation) == null ? void 0 : x.findStoreName(e.nav)) ?? e.nav);
1876
+ var l, S, s, g, I;
1877
+ e.storeMode ?? (e.storeMode = ((S = (l = e.navigation) == null ? void 0 : l.findItem(e.nav)) == null ? void 0 : S.storeMode) ?? "session"), e.storageMode ?? (e.storageMode = ((g = (s = e.navigation) == null ? void 0 : s.findItem(e.nav)) == null ? void 0 : g.storageMode) ?? "local-cache"), e.storeName ?? (e.storeName = ((I = e.navigation) == null ? void 0 : I.findStoreName(e.nav)) ?? e.nav);
1878
1878
  const t = { ...e, storeName: e.storeName ?? "" };
1879
1879
  if (console.log("creating store def"), console.log(t), e.storeName == null)
1880
1880
  throw new Error("no store name provided");
@@ -1904,15 +1904,15 @@ function An(e) {
1904
1904
  return pr(e.storeName, () => {
1905
1905
  var u;
1906
1906
  const t = he.utc().toSeconds() / 86400, l = z({}), S = z({}), s = e.storageMode == "local-cache", g = e.buildUrl ?? ((u = e.api) == null ? void 0 : u.buildUrl) ?? Sn;
1907
- function x(r) {
1907
+ function I(r) {
1908
1908
  var i, E;
1909
1909
  let y = "";
1910
1910
  const D = r.params ?? {};
1911
1911
  return D != null && (y = Object.entries(D).sort(Re.firstBy((w) => w[0])).map((w) => `${w[0]}=${JSON.stringify(w[1])}`).join("&")), `${e.storeName ?? "base"}_${((i = e.auth) == null ? void 0 : i.credentials.value.userID) ?? "no-user-id"}_${r.id ?? ((E = r.data) == null ? void 0 : E.id) ?? "no-item-id"}_${y ?? "no-params"}`;
1912
1912
  }
1913
- async function P(r) {
1913
+ async function C(r) {
1914
1914
  r.additionalUrl ?? (r.additionalUrl = "/getAll"), g(r);
1915
- const y = x(r), D = r.refresh;
1915
+ const y = I(r), D = r.refresh;
1916
1916
  if (!D && l.value[y] !== void 0)
1917
1917
  return l.value[y];
1918
1918
  if (!D && s == !0) {
@@ -1924,18 +1924,18 @@ function An(e) {
1924
1924
  return l.value[y];
1925
1925
  try {
1926
1926
  let i = S.value[y];
1927
- i == null && (i = new Promise(async (w, L) => {
1927
+ i == null && (i = new Promise(async (w, N) => {
1928
1928
  var b;
1929
1929
  try {
1930
- const T = await ((b = e.api) == null ? void 0 : b.getAll(r)), I = {
1930
+ const T = await ((b = e.api) == null ? void 0 : b.getAll(r)), x = {
1931
1931
  meta: { storedOn: t.toString() },
1932
1932
  data: T == null ? void 0 : T.data,
1933
1933
  count: T == null ? void 0 : T.count,
1934
1934
  filters: (T == null ? void 0 : T.filters) ?? []
1935
1935
  };
1936
- s == !0 && await ve().setItem(y, I), w(I);
1936
+ s == !0 && await ve().setItem(y, x), w(x);
1937
1937
  } catch (T) {
1938
- L(T);
1938
+ N(T);
1939
1939
  } finally {
1940
1940
  delete S.value[y];
1941
1941
  }
@@ -1952,7 +1952,7 @@ function An(e) {
1952
1952
  }
1953
1953
  async function _(r) {
1954
1954
  r.additionalUrl ?? (r.additionalUrl = "/get"), g(r);
1955
- const y = x(r), D = r.refresh;
1955
+ const y = I(r), D = r.refresh;
1956
1956
  if (!D && l.value[y] !== void 0)
1957
1957
  return l.value[y];
1958
1958
  if (!D && s == !0) {
@@ -1964,17 +1964,17 @@ function An(e) {
1964
1964
  return l.value[y];
1965
1965
  try {
1966
1966
  let i = S.value[y];
1967
- i == null && (i = new Promise(async (w, L) => {
1967
+ i == null && (i = new Promise(async (w, N) => {
1968
1968
  var b;
1969
1969
  try {
1970
1970
  let T = await ((b = e.api) == null ? void 0 : b.get(r));
1971
- const I = {
1971
+ const x = {
1972
1972
  meta: { storedOn: t.toString() },
1973
1973
  data: T == null ? void 0 : T.data
1974
1974
  };
1975
- s == !0 && await ve().setItem(y, I), w(I);
1975
+ s == !0 && await ve().setItem(y, x), w(x);
1976
1976
  } catch (T) {
1977
- L(T);
1977
+ N(T);
1978
1978
  } finally {
1979
1979
  delete S.value[y];
1980
1980
  }
@@ -1985,10 +1985,10 @@ function An(e) {
1985
1985
  throw i;
1986
1986
  }
1987
1987
  }
1988
- async function M(r) {
1988
+ async function L(r) {
1989
1989
  var i;
1990
1990
  r.additionalUrl ?? (r.additionalUrl = "/patch"), g(r);
1991
- const y = x(r);
1991
+ const y = I(r);
1992
1992
  let D;
1993
1993
  if (e.api != null)
1994
1994
  try {
@@ -2004,21 +2004,21 @@ function An(e) {
2004
2004
  meta: { storedOn: t.toString() },
2005
2005
  data: { ...(i = l.value[y]) == null ? void 0 : i.data, ...D }
2006
2006
  };
2007
- return l.value[y] = E, s == !0 && await ve().setItem(y, E), D.id != null && D.rowVersion != null && Object.entries(l.value).forEach((L) => {
2008
- const b = L[1].data;
2007
+ return l.value[y] = E, s == !0 && await ve().setItem(y, E), D.id != null && D.rowVersion != null && Object.entries(l.value).forEach((N) => {
2008
+ const b = N[1].data;
2009
2009
  if (b != null)
2010
2010
  if (Array.isArray(b))
2011
2011
  for (let T = 0; T < b.length; T++)
2012
2012
  b[T].id == D.id && b.splice(T, 1, E.data);
2013
2013
  else
2014
- b.id == D.id && (l.value[L[0]] = E);
2014
+ b.id == D.id && (l.value[N[0]] = E);
2015
2015
  }), E.data;
2016
2016
  }
2017
2017
  return D;
2018
2018
  }
2019
2019
  async function $(r) {
2020
2020
  r.additionalUrl ?? (r.additionalUrl = "/post"), g(r);
2021
- const y = x(r);
2021
+ const y = I(r);
2022
2022
  let D;
2023
2023
  if (e.api != null)
2024
2024
  try {
@@ -2041,7 +2041,7 @@ function An(e) {
2041
2041
  async function d(r) {
2042
2042
  var i;
2043
2043
  r.additionalUrl ?? (r.additionalUrl = "/delete"), g(r);
2044
- const y = x(r);
2044
+ const y = I(r);
2045
2045
  if (e.api != null)
2046
2046
  try {
2047
2047
  let E = await e.api.deleteItem(r);
@@ -2053,11 +2053,11 @@ function An(e) {
2053
2053
  delete l.value[y];
2054
2054
  const D = ((i = r.data) == null ? void 0 : i.id) ?? r.id;
2055
2055
  D != null && Object.entries(l.value).forEach((w) => {
2056
- const L = w[1].data;
2057
- if (L != null)
2058
- if (Array.isArray(L))
2059
- for (let b = 0; b < L.length; b++)
2060
- L[b].id == D && L.splice(b, 1);
2056
+ const N = w[1].data;
2057
+ if (N != null)
2058
+ if (Array.isArray(N))
2059
+ for (let b = 0; b < N.length; b++)
2060
+ N[b].id == D && N.splice(b, 1);
2061
2061
  else
2062
2062
  delete l.value[w[0]];
2063
2063
  }), s == !0 && await ve().removeItem(y);
@@ -2074,24 +2074,27 @@ function An(e) {
2074
2074
  return {
2075
2075
  deleteItem: d,
2076
2076
  get: _,
2077
- getAll: P,
2078
- patch: M,
2077
+ getAll: C,
2078
+ patch: L,
2079
2079
  post: $,
2080
2080
  restore: h,
2081
- searchMemory: l
2081
+ searchMemory: l,
2082
2082
  //mainly for testing
2083
+ currentTimeStampDays: t,
2084
+ promiseMemory: S,
2085
+ cacheLocally: s
2083
2086
  };
2084
2087
  });
2085
2088
  }
2086
2089
  function qr(e) {
2087
2090
  return pr(e.storeName, () => {
2088
- const t = z(), l = z(0), S = he.utc().toSeconds() / 3600, s = z(), g = z(), x = z({}), P = e.storageMode == "local-cache";
2091
+ const t = z(), l = z(0), S = he.utc().toSeconds() / 3600, s = z(), g = z(), I = z({}), C = e.storageMode == "local-cache";
2089
2092
  function _() {
2090
2093
  var i;
2091
2094
  return `${e.storeName}_${((i = e.auth) == null ? void 0 : i.credentials.value.userID) ?? "no-user-id"}`;
2092
2095
  }
2093
- async function M() {
2094
- console.log("trying save"), P == !0 && (console.log("saving"), await ve().setItem(_(), {
2096
+ async function L() {
2097
+ console.log("trying save"), C == !0 && (console.log("saving"), await ve().setItem(_(), {
2095
2098
  meta: g.value,
2096
2099
  data: t.value,
2097
2100
  count: l.value,
@@ -2100,45 +2103,45 @@ function qr(e) {
2100
2103
  }
2101
2104
  function $(i) {
2102
2105
  const E = _();
2103
- return x.value[E] || (x.value[E] = new Promise(async (w, L) => {
2106
+ return I.value[E] || (I.value[E] = new Promise(async (w, N) => {
2104
2107
  var b, T;
2105
2108
  try {
2106
- let I = await ((T = e.api) == null ? void 0 : T.getAll({
2109
+ let x = await ((T = e.api) == null ? void 0 : T.getAll({
2107
2110
  additionalUrl: "/getAll",
2108
2111
  nav: i.nav,
2109
2112
  params: {
2110
2113
  lastUpdate: ((b = g.value) == null ? void 0 : b.lastUpdate) ?? ln()
2111
2114
  }
2112
2115
  }));
2113
- console.log("res"), console.log(I), I == null ? L(I) : (t.value ?? (t.value = []), I.data.forEach((N) => {
2116
+ console.log("res"), console.log(x), x == null ? N(x) : (t.value ?? (t.value = []), x.data.forEach((P) => {
2114
2117
  var A, j;
2115
- const f = t.value.findIndex((X) => X.id == N.id);
2116
- f >= 0 ? (A = t.value) == null || A.splice(f, 1, N) : (j = t.value) == null || j.push(N);
2118
+ const f = t.value.findIndex((X) => X.id == P.id);
2119
+ f >= 0 ? (A = t.value) == null || A.splice(f, 1, P) : (j = t.value) == null || j.push(P);
2117
2120
  }), l.value = t.value.length, g.value = {
2118
2121
  lastUpdate: he.utc().toString(),
2119
2122
  storedOn: S.toString()
2120
- }, await M(), console.log("resolving"), console.log(I), w(I));
2121
- } catch (I) {
2122
- L(I);
2123
+ }, await L(), console.log("resolving"), console.log(x), w(x));
2124
+ } catch (x) {
2125
+ N(x);
2123
2126
  } finally {
2124
- delete x.value[E];
2127
+ delete I.value[E];
2125
2128
  }
2126
- })), x.value[E];
2129
+ })), I.value[E];
2127
2130
  }
2128
2131
  async function d(i) {
2129
- var L, b, T;
2132
+ var N, b, T, x;
2130
2133
  const E = _(), w = i.refresh;
2131
2134
  if (console.log("getting all from"), console.log(E), !w && t.value != null)
2132
2135
  return console.log("not refresh and ditems not null"), {
2133
- count: (L = t.value) == null ? void 0 : L.length,
2136
+ count: (N = t.value) == null ? void 0 : N.length,
2134
2137
  data: t.value,
2135
2138
  filters: []
2136
2139
  };
2137
- if (!w && P == !0) {
2140
+ if (!w && C == !0) {
2138
2141
  console.log("not refresh and caching locally");
2139
- const I = await ve().getItem(E);
2140
- if (console.log(I), I != null && parseFloat(I.meta.storedOn) > S - 7)
2141
- return t.value = I.data, l.value = I.data.length, s.value = I.filters ?? [], g.value = I.meta, {
2142
+ const P = await ve().getItem(E);
2143
+ if (console.log(P), P != null && parseFloat(P.meta.storedOn) > S - 7)
2144
+ return t.value = P.data, l.value = P.data.length, s.value = P.filters ?? [], g.value = P.meta, {
2142
2145
  count: (b = t.value) == null ? void 0 : b.length,
2143
2146
  data: t.value ?? [],
2144
2147
  filters: []
@@ -2152,24 +2155,28 @@ function qr(e) {
2152
2155
  };
2153
2156
  console.log("setting dataitems"), t.value ?? (t.value = []);
2154
2157
  try {
2155
- return console.log("create refresh promise"), await $(i);
2156
- } catch (I) {
2157
- let N = I;
2158
- throw new Error(N.message ?? "Problem");
2158
+ return console.log("create refresh promise"), await $(i), {
2159
+ count: (x = t.value) == null ? void 0 : x.length,
2160
+ data: t.value ?? [],
2161
+ filters: s.value
2162
+ };
2163
+ } catch (P) {
2164
+ let f = P;
2165
+ throw new Error(f.message ?? "Problem");
2159
2166
  }
2160
2167
  }
2161
2168
  async function h(i) {
2162
- var b, T, I, N;
2169
+ var b, T, x, P;
2163
2170
  const E = _(), w = i.id ?? ((b = i.data) == null ? void 0 : b.id);
2164
2171
  if (w == null)
2165
2172
  throw new Error("no id provided");
2166
- let L = i.refresh;
2167
- if (!L && t.value != null) {
2173
+ let N = i.refresh;
2174
+ if (!N && t.value != null) {
2168
2175
  const f = t.value.find((A) => A.id == w);
2169
2176
  if (f != null)
2170
2177
  return { data: f };
2171
2178
  }
2172
- if (!L && P == !0) {
2179
+ if (!N && C == !0) {
2173
2180
  const f = await ve().getItem(E);
2174
2181
  if (f != null && parseFloat(f.meta.storedOn) > S - 12) {
2175
2182
  t.value = f.data, l.value = f.data.length, s.value = f.filters ?? [], g.value = f.meta;
@@ -2180,18 +2187,18 @@ function qr(e) {
2180
2187
  }
2181
2188
  if (e.api == null)
2182
2189
  return {
2183
- data: (I = t.value) == null ? void 0 : I.find((f) => f.id == i.id)
2190
+ data: (x = t.value) == null ? void 0 : x.find((f) => f.id == i.id)
2184
2191
  };
2185
2192
  t.value ?? (t.value = []);
2186
2193
  try {
2187
- return await $(i), { data: (N = t.value) == null ? void 0 : N.find((f) => f.id == i.id) };
2194
+ return await $(i), { data: (P = t.value) == null ? void 0 : P.find((f) => f.id == i.id) };
2188
2195
  } catch (f) {
2189
2196
  let A = f;
2190
2197
  throw new Error(A.message ?? "Problem");
2191
2198
  }
2192
2199
  }
2193
2200
  async function u(i) {
2194
- var w, L, b;
2201
+ var w, N, b;
2195
2202
  i.additionalUrl ?? (i.additionalUrl = "/patch");
2196
2203
  let E;
2197
2204
  if (e.api != null)
@@ -2199,19 +2206,19 @@ function qr(e) {
2199
2206
  let T = await e.api.patch(i);
2200
2207
  E = { ...i.data, ...T == null ? void 0 : T.data };
2201
2208
  } catch (T) {
2202
- let I = T;
2203
- throw new Error(I.message ?? "Patch Problem");
2209
+ let x = T;
2210
+ throw new Error(x.message ?? "Patch Problem");
2204
2211
  }
2205
2212
  else
2206
2213
  E = i.data;
2207
2214
  if (E != null) {
2208
- let T = (w = t.value) == null ? void 0 : w.findIndex((I) => I.id == E.id);
2209
- T != null && T >= 0 && (t.value ?? (t.value = []), (L = t.value) == null || L.splice(T, 1, E), await M());
2215
+ let T = (w = t.value) == null ? void 0 : w.findIndex((x) => x.id == E.id);
2216
+ T != null && T >= 0 && (t.value ?? (t.value = []), (N = t.value) == null || N.splice(T, 1, E), await L());
2210
2217
  }
2211
2218
  return (b = t.value) == null ? void 0 : b.find((T) => T.id == (i.id ?? i.data.id));
2212
2219
  }
2213
2220
  async function r(i) {
2214
- var w, L;
2221
+ var w, N;
2215
2222
  i.additionalUrl ?? (i.additionalUrl = "/post");
2216
2223
  let E;
2217
2224
  if (e.api != null)
@@ -2224,10 +2231,10 @@ function qr(e) {
2224
2231
  }
2225
2232
  else
2226
2233
  E = i.data;
2227
- return E != null && (t.value ?? (t.value = []), (w = t.value) == null || w.unshift(E), l.value += 1, await M()), (L = t.value) == null ? void 0 : L.find((b) => b.id == (i.id ?? i.data.id));
2234
+ return E != null && (t.value ?? (t.value = []), (w = t.value) == null || w.unshift(E), l.value += 1, await L()), (N = t.value) == null ? void 0 : N.find((b) => b.id == (i.id ?? i.data.id));
2228
2235
  }
2229
2236
  async function y(i) {
2230
- var w, L;
2237
+ var w, N;
2231
2238
  if (i.additionalUrl ?? (i.additionalUrl = "/delete"), e.api != null)
2232
2239
  try {
2233
2240
  let b = await e.api.deleteItem(i);
@@ -2240,7 +2247,7 @@ function qr(e) {
2240
2247
  const E = i.id ?? i.data.id;
2241
2248
  if (E != null) {
2242
2249
  let b = (w = t.value) == null ? void 0 : w.findIndex((T) => T.id == E);
2243
- b != null && b >= 0 && (t.value ?? (t.value = []), (L = t.value) == null || L.splice(b, 1), await M());
2250
+ b != null && b >= 0 && (t.value ?? (t.value = []), (N = t.value) == null || N.splice(b, 1), await L());
2244
2251
  }
2245
2252
  }
2246
2253
  async function D(i) {
@@ -2249,14 +2256,14 @@ function qr(e) {
2249
2256
  try {
2250
2257
  await e.api.patch(i);
2251
2258
  } catch (w) {
2252
- let L = w;
2253
- throw new Error(L.message ?? "Patch Problem");
2259
+ let N = w;
2260
+ throw new Error(N.message ?? "Patch Problem");
2254
2261
  }
2255
2262
  try {
2256
2263
  i.additionalUrl = "/getAll", await $(i);
2257
2264
  } catch (w) {
2258
- let L = w;
2259
- throw new Error(L.message ?? "Problem");
2265
+ let N = w;
2266
+ throw new Error(N.message ?? "Problem");
2260
2267
  }
2261
2268
  return (E = t.value) == null ? void 0 : E.find((w) => w.id == (i.id ?? i.data.id));
2262
2269
  }
@@ -2266,7 +2273,15 @@ function qr(e) {
2266
2273
  getAll: d,
2267
2274
  patch: u,
2268
2275
  post: r,
2269
- restore: D
2276
+ restore: D,
2277
+ //other stuff
2278
+ dataItems: t,
2279
+ count: l,
2280
+ currentTimeStampHours: S,
2281
+ filters: s,
2282
+ meta: g,
2283
+ promiseMemory: I,
2284
+ cacheLocally: C
2270
2285
  };
2271
2286
  });
2272
2287
  }
@@ -2275,7 +2290,7 @@ function Er() {
2275
2290
  return Ar;
2276
2291
  }
2277
2292
  function En(e) {
2278
- const t = (e == null ? void 0 : e.buildHeaders) ?? P, l = (e == null ? void 0 : e.buildQuery) ?? g, S = (e == null ? void 0 : e.buildUrl) ?? x, s = e == null ? void 0 : e.demo;
2293
+ const t = (e == null ? void 0 : e.buildHeaders) ?? C, l = (e == null ? void 0 : e.buildQuery) ?? g, S = (e == null ? void 0 : e.buildUrl) ?? I, s = e == null ? void 0 : e.demo;
2279
2294
  function g(u) {
2280
2295
  let r = new URLSearchParams();
2281
2296
  return Object.entries(u).forEach((y) => {
@@ -2284,11 +2299,11 @@ function En(e) {
2284
2299
  y[1] != null && r.append(y[0], y[1].toString());
2285
2300
  }), r.toString();
2286
2301
  }
2287
- function x(u) {
2302
+ function I(u) {
2288
2303
  let r = Q(u.url) ?? void 0, y = Q(u.id);
2289
2304
  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 ?? "";
2290
2305
  }
2291
- function P(u) {
2306
+ function C(u) {
2292
2307
  var y, D;
2293
2308
  let r = { ...u.headers };
2294
2309
  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 ${(D = e == null ? void 0 : e.auth) == null ? void 0 : D.credentials.value.token}`)), r["Content-Type"] ?? (r["Content-Type"] = u.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), r;
@@ -2313,22 +2328,22 @@ function En(e) {
2313
2328
  name: "Unauthorized",
2314
2329
  message: w.statusText
2315
2330
  };
2316
- let L = await w.text();
2317
- throw new Error(L ?? w.statusText ?? "Get error");
2331
+ let N = await w.text();
2332
+ throw new Error(N ?? w.statusText ?? "Get error");
2318
2333
  }
2319
2334
  if (D)
2320
2335
  return await w.text();
2321
2336
  if (y)
2322
2337
  return await w.json();
2323
2338
  throw new Error();
2324
- } catch (L) {
2325
- const b = `${(w == null ? void 0 : w.status) ?? ""} ${(w == null ? void 0 : w.statusText) ?? ""} ${L.message}`;
2339
+ } catch (N) {
2340
+ const b = `${(w == null ? void 0 : w.status) ?? ""} ${(w == null ? void 0 : w.statusText) ?? ""} ${N.message}`;
2326
2341
  if (!r)
2327
2342
  return;
2328
- throw L.code == 401 ? L : new Error(b);
2343
+ throw N.code == 401 ? N : new Error(b);
2329
2344
  }
2330
2345
  }
2331
- async function M(u) {
2346
+ async function L(u) {
2332
2347
  const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, D = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2333
2348
  let i = u.finalUrl, E = u.headers;
2334
2349
  if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
@@ -2348,19 +2363,19 @@ function En(e) {
2348
2363
  name: "Unauthorized",
2349
2364
  message: w.statusText
2350
2365
  };
2351
- let L = await w.text();
2352
- throw new Error(L ?? w.statusText ?? "Get all error");
2366
+ let N = await w.text();
2367
+ throw new Error(N ?? w.statusText ?? "Get all error");
2353
2368
  }
2354
2369
  if (D)
2355
2370
  return await w.text();
2356
2371
  if (y)
2357
2372
  return await w.json();
2358
2373
  throw new Error();
2359
- } catch (L) {
2360
- const b = `${(w == null ? void 0 : w.status) ?? ""} ${(w == null ? void 0 : w.statusText) ?? ""} ${L.message}`;
2374
+ } catch (N) {
2375
+ const b = `${(w == null ? void 0 : w.status) ?? ""} ${(w == null ? void 0 : w.statusText) ?? ""} ${N.message}`;
2361
2376
  if (!r)
2362
2377
  return;
2363
- throw L.code == 401 ? L : new Error(b);
2378
+ throw N.code == 401 ? N : new Error(b);
2364
2379
  }
2365
2380
  }
2366
2381
  async function $(u) {
@@ -2384,19 +2399,19 @@ function En(e) {
2384
2399
  name: "Unauthorized",
2385
2400
  message: w.statusText
2386
2401
  };
2387
- let L = await w.text();
2388
- throw new Error(L ?? w.statusText ?? "Post error!");
2402
+ let N = await w.text();
2403
+ throw new Error(N ?? w.statusText ?? "Post error!");
2389
2404
  }
2390
2405
  if (D)
2391
2406
  return await w.text();
2392
2407
  if (y)
2393
2408
  return await w.json();
2394
2409
  throw new Error();
2395
- } catch (L) {
2410
+ } catch (N) {
2396
2411
  if (w.status == 200 || !r)
2397
2412
  return;
2398
- const b = `${(w == null ? void 0 : w.status) ?? ""} ${(w == null ? void 0 : w.statusText) ?? ""} ${L.message}`;
2399
- throw L.code == 401 ? L : new Error(b);
2413
+ const b = `${(w == null ? void 0 : w.status) ?? ""} ${(w == null ? void 0 : w.statusText) ?? ""} ${N.message}`;
2414
+ throw N.code == 401 ? N : new Error(b);
2400
2415
  }
2401
2416
  }
2402
2417
  async function d(u) {
@@ -2420,19 +2435,19 @@ function En(e) {
2420
2435
  name: "Unauthorized",
2421
2436
  message: w.statusText
2422
2437
  };
2423
- let L = await w.text();
2424
- throw new Error(L ?? w.statusText ?? "Patch error!");
2438
+ let N = await w.text();
2439
+ throw new Error(N ?? w.statusText ?? "Patch error!");
2425
2440
  }
2426
2441
  if (D)
2427
2442
  return await w.text();
2428
2443
  if (y)
2429
2444
  return await w.json();
2430
2445
  throw new Error();
2431
- } catch (L) {
2446
+ } catch (N) {
2432
2447
  if (w.status == 200 || !r)
2433
2448
  return;
2434
- const b = `${(w == null ? void 0 : w.status) ?? ""} ${(w == null ? void 0 : w.statusText) ?? ""} ${L.message}`;
2435
- throw L.code == 401 ? L : new Error(b);
2449
+ const b = `${(w == null ? void 0 : w.status) ?? ""} ${(w == null ? void 0 : w.statusText) ?? ""} ${N.message}`;
2450
+ throw N.code == 401 ? N : new Error(b);
2436
2451
  }
2437
2452
  }
2438
2453
  async function h(u) {
@@ -2469,14 +2484,14 @@ function En(e) {
2469
2484
  buildUrl: S,
2470
2485
  deleteItem: h,
2471
2486
  get: _,
2472
- getAll: M,
2487
+ getAll: L,
2473
2488
  patch: d,
2474
2489
  post: $
2475
2490
  }, Ar;
2476
2491
  }
2477
2492
  function ut(e) {
2478
- const { actionErrorMsg: t, actionLoadingMsg: l, clearErrors: S, isLoading: s, doAction: g, logError: x } = en(e);
2479
- function P(r) {
2493
+ const { actionErrorMsg: t, actionLoadingMsg: l, clearErrors: S, isLoading: s, doAction: g, logError: I } = en(e);
2494
+ function C(r) {
2480
2495
  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);
2481
2496
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2482
2497
  const D = (e == null ? void 0 : e.items) ?? [];
@@ -2485,11 +2500,11 @@ function ut(e) {
2485
2500
  const i = r.id ?? ((w = r.data) == null ? void 0 : w.id);
2486
2501
  if (i == null)
2487
2502
  return Promise.resolve("No id found in delete action");
2488
- const E = D.findIndex((L) => L.id == i);
2503
+ const E = D.findIndex((N) => N.id == i);
2489
2504
  return E >= 0 && D.splice(E, 1), Promise.resolve(void 0);
2490
2505
  }), g(async () => {
2491
2506
  let i;
2492
- 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);
2507
+ 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), I(i);
2493
2508
  }, {
2494
2509
  completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
2495
2510
  confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
@@ -2519,7 +2534,7 @@ function ut(e) {
2519
2534
  throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
2520
2535
  });
2521
2536
  }
2522
- function M(r) {
2537
+ function L(r) {
2523
2538
  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);
2524
2539
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2525
2540
  const D = (e == null ? void 0 : e.items) ?? [];
@@ -2540,7 +2555,7 @@ function ut(e) {
2540
2555
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2541
2556
  return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null && (r.onRestoreAsync ?? (r.onRestoreAsync = () => y().restore(r))), g(async () => {
2542
2557
  let D, i;
2543
- return r.onCanRestoreAsync != null && (D = await r.onCanRestoreAsync(r.data)), D == null && r.onRestoreAsync != null && (i = await r.onRestoreAsync(r.data)), i != null && r.onRestoreSuccessAsync != null && await r.onRestoreSuccessAsync(i), x(D), i;
2558
+ return r.onCanRestoreAsync != null && (D = await r.onCanRestoreAsync(r.data)), D == null && r.onRestoreAsync != null && (i = await r.onRestoreAsync(r.data)), i != null && r.onRestoreSuccessAsync != null && await r.onRestoreSuccessAsync(i), I(D), i;
2544
2559
  }, {
2545
2560
  completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
2546
2561
  confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
@@ -2566,7 +2581,7 @@ function ut(e) {
2566
2581
  return;
2567
2582
  if (r.onCanSaveAsync != null) {
2568
2583
  let w = await r.onCanSaveAsync(i);
2569
- if (x(w), w != null)
2584
+ if (I(w), w != null)
2570
2585
  return;
2571
2586
  }
2572
2587
  let E;
@@ -2592,12 +2607,12 @@ function ut(e) {
2592
2607
  apiGet: h,
2593
2608
  apiPost: u,
2594
2609
  clearErrors: S,
2595
- deleteItem: P,
2610
+ deleteItem: C,
2596
2611
  doAction: g,
2597
- getAllItems: M,
2612
+ getAllItems: L,
2598
2613
  getItem: _,
2599
2614
  isLoading: s,
2600
- logError: x,
2615
+ logError: I,
2601
2616
  restoreItem: $,
2602
2617
  saveItem: d
2603
2618
  };
@@ -2615,119 +2630,119 @@ function Dn(e) {
2615
2630
  l.value = Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11), localStorage.setItem(Hr, l.value);
2616
2631
  }
2617
2632
  const s = Zt("auth-credentials", {});
2618
- function g(I) {
2619
- if (I == null)
2633
+ function g(x) {
2634
+ if (x == null)
2620
2635
  return !0;
2621
- var N = e.getAuthItem != null ? e.getAuthItem(I) : null;
2622
- if (N == null)
2636
+ var P = e.getAuthItem != null ? e.getAuthItem(x) : null;
2637
+ if (P == null)
2623
2638
  return !1;
2624
- if (N.requiresAuth === !1)
2639
+ if (P.requiresAuth === !1)
2625
2640
  return !0;
2626
2641
  const f = Q(s);
2627
- if (f.isSuspended && N.ignoreSuspension !== !0)
2642
+ if (f.isSuspended && P.ignoreSuspension !== !0)
2628
2643
  return !1;
2629
2644
  if (f.isGlobalAdmin)
2630
2645
  return !0;
2631
- if (N.permissions != null) {
2632
- for (var A = 0; A < N.permissions.length; A++)
2633
- if (!x(N.permissions[A]))
2646
+ if (P.permissions != null) {
2647
+ for (var A = 0; A < P.permissions.length; A++)
2648
+ if (!I(P.permissions[A]))
2634
2649
  return !1;
2635
2650
  }
2636
2651
  return !0;
2637
2652
  }
2638
- function x(I) {
2639
- const N = Q(s);
2640
- if (N.userPermissions != null)
2641
- for (var f = 0; f < N.userPermissions.length; f++) {
2642
- var A = N.userPermissions[f].split(".");
2643
- if (N.userPermissions[f] == "everything.edit" || I == A[0] && A.length > 1 && A[1] == "edit")
2653
+ function I(x) {
2654
+ const P = Q(s);
2655
+ if (P.userPermissions != null)
2656
+ for (var f = 0; f < P.userPermissions.length; f++) {
2657
+ var A = P.userPermissions[f].split(".");
2658
+ if (P.userPermissions[f] == "everything.edit" || x == A[0] && A.length > 1 && A[1] == "edit")
2644
2659
  return !0;
2645
2660
  }
2646
2661
  return !1;
2647
2662
  }
2648
- function P(I) {
2649
- if (I == null)
2663
+ function C(x) {
2664
+ if (x == null)
2650
2665
  return !0;
2651
- var N = e.getAuthItem != null ? e.getAuthItem(I) : null;
2652
- if (N == null)
2666
+ var P = e.getAuthItem != null ? e.getAuthItem(x) : null;
2667
+ if (P == null)
2653
2668
  return !1;
2654
- if (N.requiresAuth === !1)
2669
+ if (P.requiresAuth === !1)
2655
2670
  return !0;
2656
2671
  const f = Q(s);
2657
- if (f.isSuspended && N.ignoreSuspension !== !0)
2672
+ if (f.isSuspended && P.ignoreSuspension !== !0)
2658
2673
  return !1;
2659
2674
  if (f.isGlobalAdmin)
2660
2675
  return !0;
2661
- if (N.permissions != null) {
2662
- for (var A = 0; A < N.permissions.length; A++)
2663
- if (!_(N.permissions[A]))
2676
+ if (P.permissions != null) {
2677
+ for (var A = 0; A < P.permissions.length; A++)
2678
+ if (!_(P.permissions[A]))
2664
2679
  return !1;
2665
2680
  }
2666
2681
  return !0;
2667
2682
  }
2668
- function _(I) {
2669
- const N = Q(s);
2670
- if (N.userPermissions != null)
2671
- for (var f = 0; f < N.userPermissions.length; f++) {
2672
- var A = N.userPermissions[f].split(".");
2673
- if (I == A[0] || I == "everything" || N.userPermissions[f] == "everything.view" || N.userPermissions[f] == "everything.edit")
2683
+ function _(x) {
2684
+ const P = Q(s);
2685
+ if (P.userPermissions != null)
2686
+ for (var f = 0; f < P.userPermissions.length; f++) {
2687
+ var A = P.userPermissions[f].split(".");
2688
+ if (x == A[0] || x == "everything" || P.userPermissions[f] == "everything.view" || P.userPermissions[f] == "everything.edit")
2674
2689
  return !0;
2675
2690
  }
2676
2691
  return !1;
2677
2692
  }
2678
- function M(I, N, f) {
2693
+ function L(x, P, f) {
2679
2694
  let A = !0;
2680
- return Q(s).isGlobalAdmin ? !0 : (N != null && N.length > 0 && N.forEach((X) => {
2681
- f == "edit" ? x(X) || (A = !1) : _(X) || (A = !1);
2682
- }), I != null && I.length > 0 && (I.some((X) => u(X)) || (A = !1)), A);
2695
+ return Q(s).isGlobalAdmin ? !0 : (P != null && P.length > 0 && P.forEach((X) => {
2696
+ f == "edit" ? I(X) || (A = !1) : _(X) || (A = !1);
2697
+ }), x != null && x.length > 0 && (x.some((X) => u(X)) || (A = !1)), A);
2683
2698
  }
2684
- function $(I, N = !1) {
2685
- var f = e.getAuthItem != null ? e.getAuthItem(I) : null;
2699
+ function $(x, P = !1) {
2700
+ var f = e.getAuthItem != null ? e.getAuthItem(x) : null;
2686
2701
  let A = !1;
2687
2702
  if (f == null)
2688
2703
  return !1;
2689
- let j = f.subscriptions ?? [], X = f.permissions ?? [], re = M(j, X, "view");
2690
- return re || !N || !_e(f.children) ? re : ((f == null ? void 0 : f.children) != null && f.children.forEach((ue) => {
2704
+ let j = f.subscriptions ?? [], X = f.permissions ?? [], re = L(j, X, "view");
2705
+ return re || !P || !_e(f.children) ? re : ((f == null ? void 0 : f.children) != null && f.children.forEach((ue) => {
2691
2706
  $(ue, !0) && (A = !0);
2692
2707
  }), A);
2693
2708
  }
2694
- function d(I) {
2695
- return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (N, f) => {
2709
+ function d(x) {
2710
+ return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (P, f) => {
2696
2711
  const A = Ue(Wr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${f}`);
2697
- return N ? `${A}&redirect_path=${N}` : A;
2698
- }), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(I, l.value) ?? "" : "";
2712
+ return P ? `${A}&redirect_path=${P}` : A;
2713
+ }), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(x, l.value) ?? "" : "";
2699
2714
  }
2700
- function h(I) {
2715
+ function h(x) {
2701
2716
  var f;
2702
- return I == null ? 0 : ((f = (e.subscriptionOptions ?? []).find((A) => A.code == I)) == null ? void 0 : f.value) ?? 0;
2717
+ return x == null ? 0 : ((f = (e.subscriptionOptions ?? []).find((A) => A.code == x)) == null ? void 0 : f.value) ?? 0;
2703
2718
  }
2704
- function u(I) {
2705
- const N = Q(s);
2706
- if (N.subscriptionCode == null)
2719
+ function u(x) {
2720
+ const P = Q(s);
2721
+ if (P.subscriptionCode == null)
2707
2722
  return !1;
2708
- if (N.subscriptionCode == I)
2723
+ if (P.subscriptionCode == x)
2709
2724
  return !0;
2710
- const f = h(I), A = h(N.subscriptionCode);
2725
+ const f = h(x), A = h(P.subscriptionCode);
2711
2726
  return f <= A;
2712
2727
  }
2713
- function r(I) {
2714
- const f = I.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), A = decodeURIComponent(
2728
+ function r(x) {
2729
+ const f = x.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), A = decodeURIComponent(
2715
2730
  atob(f).split("").map(function(j) {
2716
2731
  return "%" + ("00" + j.charCodeAt(0).toString(16)).slice(-2);
2717
2732
  }).join("")
2718
2733
  );
2719
2734
  return JSON.parse(A);
2720
2735
  }
2721
- function y(I, N) {
2722
- s.value = void 0, L(), I != null && N != null && N.currentRoute.value.path != I && N.push({ path: I });
2736
+ function y(x, P) {
2737
+ s.value = void 0, N(), x != null && P != null && P.currentRoute.value.path != x && P.push({ path: x });
2723
2738
  }
2724
- function D(I) {
2739
+ function D(x) {
2725
2740
  var f;
2726
- Q(s).isLoggedIn || ((f = e.demo) == null || f.endDemo(), T() && (y(), window.location.href = d(I)));
2741
+ Q(s).isLoggedIn || ((f = e.demo) == null || f.endDemo(), T() && (y(), window.location.href = d(x)));
2727
2742
  }
2728
- async function i(I, N) {
2743
+ async function i(x, P) {
2729
2744
  return e.getToken ?? (e.getToken = async () => {
2730
- let f = I, A = N, j = e.oauthGrantType ?? "authorization_token", X = e.oauthClientID ?? "";
2745
+ let f = x, A = P, j = e.oauthGrantType ?? "authorization_token", X = e.oauthClientID ?? "";
2731
2746
  if (f == null || A == null)
2732
2747
  throw new Error("Code and State required in OAuth token process");
2733
2748
  if (A != l.value)
@@ -2741,42 +2756,42 @@ function Dn(e) {
2741
2756
  data: ue
2742
2757
  });
2743
2758
  E(G.access_token);
2744
- }), await e.getToken(I, N);
2759
+ }), await e.getToken(x, P);
2745
2760
  }
2746
- function E(I) {
2747
- if (I != null && (e.demo == null || !e.demo.isDemoing.value)) {
2748
- const N = r(I);
2749
- w(N, I), e.processTokenPayload != null && e.processTokenPayload(s, N);
2761
+ function E(x) {
2762
+ if (x != null && (e.demo == null || !e.demo.isDemoing.value)) {
2763
+ const P = r(x);
2764
+ w(P, x), e.processTokenPayload != null && e.processTokenPayload(s, P);
2750
2765
  }
2751
2766
  }
2752
- function w(I, N) {
2767
+ function w(x, P) {
2753
2768
  var A;
2754
2769
  const f = s.value;
2755
- f.expiresOn = I.ExpiresOn, f.isGlobalAdmin = I.IsGlobalAdmin == "True", f.isLoggedIn = !0, f.permissions = I.Permissions, f.subscriptionCode = I.Subscription, f.timeZone ?? (f.timeZone = e.defaultTimeZone ?? hr), f.token = N, f.userID = I.UserLoginID, f.userPermissions = ((A = I.Permissions) == null ? void 0 : A.split(",")) ?? [];
2770
+ f.expiresOn = x.ExpiresOn, f.isGlobalAdmin = x.IsGlobalAdmin == "True", f.isLoggedIn = !0, f.permissions = x.Permissions, f.subscriptionCode = x.Subscription, f.timeZone ?? (f.timeZone = e.defaultTimeZone ?? hr), f.token = P, f.userID = x.UserLoginID, f.userPermissions = ((A = x.Permissions) == null ? void 0 : A.split(",")) ?? [];
2756
2771
  }
2757
- function L() {
2758
- var I;
2759
- s.value ?? (s.value = {}), (I = s.value).timeZone ?? (I.timeZone = e.defaultTimeZone ?? hr);
2772
+ function N() {
2773
+ var x;
2774
+ s.value ?? (s.value = {}), (x = s.value).timeZone ?? (x.timeZone = e.defaultTimeZone ?? hr);
2760
2775
  }
2761
2776
  function b() {
2762
- const I = Q(s);
2763
- return I.isLoggedIn && T() && (y(), window.location.href = d()), I.isLoggedIn;
2777
+ const x = Q(s);
2778
+ return x.isLoggedIn && T() && (y(), window.location.href = d()), x.isLoggedIn;
2764
2779
  }
2765
2780
  function T() {
2766
- const I = Q(s);
2767
- if (I == null || I.expiresOn == null)
2781
+ const x = Q(s);
2782
+ if (x == null || x.expiresOn == null)
2768
2783
  return !0;
2769
- const N = he.fromFormat(I.expiresOn, t), f = he.utc();
2770
- return N <= f;
2784
+ const P = he.fromFormat(x.expiresOn, t), f = he.utc();
2785
+ return P <= f;
2771
2786
  }
2772
- return L(), Ir = {
2787
+ return N(), Ir = {
2773
2788
  authState: l,
2774
2789
  canEdit: g,
2775
- canEditPermit: x,
2776
- canView: P,
2790
+ canEditPermit: I,
2791
+ canView: C,
2777
2792
  canViewPermit: _,
2778
2793
  credentials: s,
2779
- doShow: M,
2794
+ doShow: L,
2780
2795
  doShowByNav: $,
2781
2796
  getAuthorizeUrl: d,
2782
2797
  getToken: i,
@@ -2794,62 +2809,62 @@ function xn(e, t, l = {}) {
2794
2809
  preventDefault: S = !1,
2795
2810
  stopPropagation: s = !1,
2796
2811
  axis: g = "both"
2797
- } = l, x = { capture: l.capture ?? !0 };
2798
- let P = { x: 0, y: 0 }, _ = { x: 0, y: 0 }, M = { x: 0, y: 0 }, $ = [], d = [], h = z(!1);
2799
- function u(L) {
2800
- Q(S) && L.preventDefault(), Q(s) && L.stopPropagation();
2812
+ } = l, I = { capture: l.capture ?? !0 };
2813
+ let C = { x: 0, y: 0 }, _ = { x: 0, y: 0 }, L = { x: 0, y: 0 }, $ = [], d = [], h = z(!1);
2814
+ function u(N) {
2815
+ Q(S) && N.preventDefault(), Q(s) && N.stopPropagation();
2801
2816
  }
2802
- function r(L) {
2817
+ function r(N) {
2803
2818
  var f;
2804
2819
  const b = Q(e);
2805
2820
  if (!b)
2806
2821
  return;
2807
- const T = b.$el, N = L.type === "touchstart" && L.touches.length > 0 ? L.touches[0] : L;
2808
- M = { x: N.clientX, y: N.clientY }, _ = {
2822
+ const T = b.$el, P = N.type === "touchstart" && N.touches.length > 0 ? N.touches[0] : N;
2823
+ L = { x: P.clientX, y: P.clientY }, _ = {
2809
2824
  x: T.offsetLeft,
2810
2825
  y: T.offsetTop
2811
- }, P = {
2826
+ }, C = {
2812
2827
  x: T.offsetLeft,
2813
2828
  y: T.offsetTop
2814
- }, ((f = l.onStart) == null ? void 0 : f.call(l, M, L)) !== !1 && (d.push(me("mousemove", y)), d.push(me("touchmove", y)), d.push(me("mouseup", D)), d.push(me("touchend", D)), u(L));
2829
+ }, ((f = l.onStart) == null ? void 0 : f.call(l, L, N)) !== !1 && (d.push(me("mousemove", y)), d.push(me("touchmove", y)), d.push(me("mouseup", D)), d.push(me("touchend", D)), u(N));
2815
2830
  }
2816
- function y(L) {
2831
+ function y(N) {
2817
2832
  var A;
2818
- if (!M || !Q(e))
2833
+ if (!L || !Q(e))
2819
2834
  return;
2820
- const I = L.type === "touchmove" && L.touches.length > 0 ? L.touches[0] : L;
2821
- let N = I.clientX - M.x, f = I.clientY - M.y;
2822
- (g === "x" || g === "both") && (P.x = _.x + N), (g === "y" || g === "both") && (P.y = _.y + f), (A = l.onMove) == null || A.call(l, P, L), u(L), i(P);
2835
+ const x = N.type === "touchmove" && N.touches.length > 0 ? N.touches[0] : N;
2836
+ let P = x.clientX - L.x, f = x.clientY - L.y;
2837
+ (g === "x" || g === "both") && (C.x = _.x + P), (g === "y" || g === "both") && (C.y = _.y + f), (A = l.onMove) == null || A.call(l, C, N), u(N), i(C);
2823
2838
  }
2824
- function D(L) {
2839
+ function D(N) {
2825
2840
  var b;
2826
2841
  document.documentElement.style.cursor = "", d.forEach((T) => {
2827
2842
  T();
2828
- }), d.length = 0, (b = l.onEnd) == null || b.call(l, P, L), u(L);
2843
+ }), d.length = 0, (b = l.onEnd) == null || b.call(l, C, N), u(N);
2829
2844
  }
2830
- function i(L) {
2845
+ function i(N) {
2831
2846
  const b = Q(e);
2832
2847
  if (!b)
2833
2848
  return;
2834
2849
  const T = b.$el;
2835
- T.style.left = `${L.x}px`, T.style.top = `${L.y}px`;
2850
+ T.style.left = `${N.x}px`, T.style.top = `${N.y}px`;
2836
2851
  }
2837
2852
  function E() {
2838
2853
  if (Q(h))
2839
2854
  return;
2840
- const L = Q(t);
2841
- if (!L)
2855
+ const N = Q(t);
2856
+ if (!N)
2842
2857
  return;
2843
- const b = L.$el;
2844
- b.style.cursor = "move", $.push(me(b, "mousedown", r, x)), $.push(me(b, "touchstart", r, x)), h.value = !0;
2858
+ const b = N.$el;
2859
+ b.style.cursor = "move", $.push(me(b, "mousedown", r, I)), $.push(me(b, "touchstart", r, I)), h.value = !0;
2845
2860
  }
2846
2861
  function w() {
2847
2862
  if (!Q(h))
2848
2863
  return;
2849
- const L = Q(t);
2850
- if (!L)
2864
+ const N = Q(t);
2865
+ if (!N)
2851
2866
  return;
2852
- const b = L.$el;
2867
+ const b = N.$el;
2853
2868
  b.style.cursor = "", $.forEach((T) => {
2854
2869
  T();
2855
2870
  }), $.length = 0, h.value = !1;
@@ -2862,25 +2877,25 @@ function xn(e, t, l = {}) {
2862
2877
  }
2863
2878
  const Tn = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
2864
2879
  function _n(e, t = {}) {
2865
- let l, S = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, g = t.minWidth ?? 0, x = t.maxWidth ?? Number.MAX_SAFE_INTEGER, P = t.minHeight ?? 0, _ = t.maxHeight ?? Number.MAX_SAFE_INTEGER, M = t.preventDefault ?? !1, $ = t.stopPropagation ?? !1, d, h = [];
2880
+ let l, S = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, g = t.minWidth ?? 0, I = t.maxWidth ?? Number.MAX_SAFE_INTEGER, C = t.minHeight ?? 0, _ = t.maxHeight ?? Number.MAX_SAFE_INTEGER, L = t.preventDefault ?? !1, $ = t.stopPropagation ?? !1, d, h = [];
2866
2881
  const u = z(!1);
2867
2882
  let r = [], y = [];
2868
2883
  const D = z(!1), i = z({ x: 0, y: 0 });
2869
2884
  let E = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, w = {};
2870
- function L(G) {
2871
- Ee(M) && G.preventDefault(), Ee($) && G.stopPropagation();
2885
+ function N(G) {
2886
+ Ee(L) && G.preventDefault(), Ee($) && G.stopPropagation();
2872
2887
  }
2873
2888
  function b(G, Y) {
2874
- h = Y.map(I), h.forEach((H) => G.$el.appendChild(H));
2889
+ h = Y.map(x), h.forEach((H) => G.$el.appendChild(H));
2875
2890
  }
2876
2891
  function T(G) {
2877
2892
  h.forEach((Y) => G.$el.removeChild(Y));
2878
2893
  }
2879
- function I(G) {
2894
+ function x(G) {
2880
2895
  const Y = S + "px", H = -S / 2 + "px", ie = s + 1, Z = document.createElement("div");
2881
2896
  return Z.dataset.handle = G, Z.style.position = "absolute", Z.style.touchAction = "none", Z.style.userSelect = "none", Z.style.zIndex = (G.length === 1 ? s : ie).toString(), Z.style.cursor = j(G), G.includes("t") && (Z.style.top = H, Z.style.height = Y, G === "t" && (Z.style.left = "0", Z.style.width = "100%")), G.includes("b") && (Z.style.bottom = H, Z.style.height = Y, G === "b" && (Z.style.left = "0", Z.style.width = "100%")), G.includes("r") && (Z.style.right = H, Z.style.width = Y, G === "r" && (Z.style.top = "0", Z.style.height = "100%")), G.includes("l") && (Z.style.left = H, Z.style.width = Y, G === "l" && (Z.style.top = "0", Z.style.height = "100%")), Z;
2882
2897
  }
2883
- function N(G) {
2898
+ function P(G) {
2884
2899
  var ne;
2885
2900
  if (!h.some((ce) => ce == G.target))
2886
2901
  return;
@@ -2896,7 +2911,7 @@ function _n(e, t = {}) {
2896
2911
  }, w = Nr(E), ((ne = t.onStart) == null ? void 0 : ne.call(t, i.value, G)) === !1)
2897
2912
  return;
2898
2913
  let W = G.target;
2899
- document.documentElement.style.cursor = j(W.dataset.handle), d = W.dataset.handle, y.push(me("mousemove", f)), y.push(me("mouseup", A)), y.push(me("touchmove", f)), y.push(me("touchend", A)), L(G);
2914
+ document.documentElement.style.cursor = j(W.dataset.handle), d = W.dataset.handle, y.push(me("mousemove", f)), y.push(me("mouseup", A)), y.push(me("touchmove", f)), y.push(me("touchend", A)), N(G);
2900
2915
  }
2901
2916
  function f(G) {
2902
2917
  const Y = Ee(e);
@@ -2906,22 +2921,22 @@ function _n(e, t = {}) {
2906
2921
  let W = Z.clientX - i.value.x, ne = Z.clientY - i.value.y;
2907
2922
  const ce = Ee(E);
2908
2923
  if (d.includes("t")) {
2909
- const se = Math.min(_, Math.max(P, (ce.height ?? 0) - ne));
2924
+ const se = Math.min(_, Math.max(C, (ce.height ?? 0) - ne));
2910
2925
  w.height = se, w.top = (ce.top ?? 0) + ne;
2911
2926
  }
2912
2927
  if (d.includes("b")) {
2913
- const se = Math.min(_, Math.max(P, (ce.height ?? 0) + ne));
2928
+ const se = Math.min(_, Math.max(C, (ce.height ?? 0) + ne));
2914
2929
  w.height = se;
2915
2930
  }
2916
2931
  if (d.includes("l")) {
2917
- const se = Math.min(x, Math.max(g, (ce.width ?? 0) - W));
2932
+ const se = Math.min(I, Math.max(g, (ce.width ?? 0) - W));
2918
2933
  w.width = se, w.left = (ce.left ?? 0) + W;
2919
2934
  }
2920
2935
  if (d.includes("r")) {
2921
- const se = Math.min(x, Math.max(g, (ce.width ?? 0) + W));
2936
+ const se = Math.min(I, Math.max(g, (ce.width ?? 0) + W));
2922
2937
  w.width = se;
2923
2938
  }
2924
- H.dispatchEvent(new CustomEvent("resize")), L(G), re(w);
2939
+ H.dispatchEvent(new CustomEvent("resize")), N(G), re(w);
2925
2940
  }
2926
2941
  function A() {
2927
2942
  document.documentElement.style.cursor = "", d = null, y.forEach((G) => {
@@ -2995,7 +3010,7 @@ function _n(e, t = {}) {
2995
3010
  if (D.value)
2996
3011
  return;
2997
3012
  const H = Ee(e);
2998
- H && (b(H, G ?? Tn), X(Y), r.push(me(H.$el, "mousedown", N)), r.push(me(H.$el, "touchstart", N)), D.value = !0, l = Y);
3013
+ H && (b(H, G ?? Tn), X(Y), r.push(me(H.$el, "mousedown", P)), r.push(me(H.$el, "touchstart", P)), D.value = !0, l = Y);
2999
3014
  }
3000
3015
  function be(G) {
3001
3016
  if (!D.value)
@@ -3012,18 +3027,18 @@ function _n(e, t = {}) {
3012
3027
  };
3013
3028
  }
3014
3029
  function Cn(e) {
3015
- const t = (e == null ? void 0 : e.blade) ?? z(null), l = (e == null ? void 0 : e.handle) ?? z(null), S = z(!1), s = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, g = z((e == null ? void 0 : e.defaultVariant) ?? "page"), x = z({}), { turnResizingOff: P, turnResizingOn: _ } = _n(t), { turnDraggableOff: M, turnDraggableOn: $ } = xn(t, l);
3030
+ const t = (e == null ? void 0 : e.blade) ?? z(null), l = (e == null ? void 0 : e.handle) ?? z(null), S = z(!1), s = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, g = z((e == null ? void 0 : e.defaultVariant) ?? "page"), I = z({}), { turnResizingOff: C, turnResizingOn: _ } = _n(t), { turnDraggableOff: L, turnDraggableOn: $ } = xn(t, l);
3016
3031
  jt(t, (h) => {
3017
3032
  const u = h[0], { width: r } = u.contentRect;
3018
3033
  S.value = r < s;
3019
3034
  });
3020
3035
  function d(h) {
3021
- M(), h == "page" ? P(h) : h == "blade" ? _(["l", "r"], h) : h == "freestyle" ? (P(), _(void 0, h), $()) : h == "inline" && P();
3036
+ L(), h == "page" ? C(h) : h == "blade" ? _(["l", "r"], h) : h == "freestyle" ? (C(), _(void 0, h), $()) : h == "inline" && C();
3022
3037
  }
3023
3038
  return d(g.value), Te(g, (h) => d(h)), {
3024
3039
  isMobile: S,
3025
3040
  variant: g,
3026
- bladeData: x
3041
+ bladeData: I
3027
3042
  };
3028
3043
  }
3029
3044
  const mr = {
@@ -3093,20 +3108,20 @@ function Pn(e) {
3093
3108
  }
3094
3109
  }));
3095
3110
  }
3096
- function x(d) {
3111
+ function I(d) {
3097
3112
  var h;
3098
3113
  if (l != null) {
3099
3114
  const u = l.themes.value.dark, r = l.themes.value.light;
3100
3115
  u.colors.primary = d, r.colors.primary = d, (h = document.querySelector('meta[name="theme-color"]')) == null || h.setAttribute("content", d);
3101
3116
  }
3102
3117
  }
3103
- function P() {
3118
+ function C() {
3104
3119
  t.value.drawer = !t.value.drawer;
3105
3120
  }
3106
3121
  function _() {
3107
3122
  t.value.drawerStick = !t.value.drawerStick;
3108
3123
  }
3109
- function M() {
3124
+ function L() {
3110
3125
  t.value.theme = t.value.theme == "dark" ? "light" : "dark", l != null && (l.global.name.value = t.value.theme);
3111
3126
  }
3112
3127
  function $() {
@@ -3121,10 +3136,10 @@ function Pn(e) {
3121
3136
  }), Dr = {
3122
3137
  state: t,
3123
3138
  resetCosmetics: g,
3124
- setTemporaryColor: x,
3125
- toggleDrawer: P,
3139
+ setTemporaryColor: I,
3140
+ toggleDrawer: C,
3126
3141
  toggleDrawerStick: _,
3127
- toggleLightDark: M,
3142
+ toggleLightDark: L,
3128
3143
  undoTemporaryColor: $
3129
3144
  }, Dr;
3130
3145
  }
@@ -3141,29 +3156,29 @@ function Mn() {
3141
3156
  } = t;
3142
3157
  if (!_e(l))
3143
3158
  return;
3144
- let x = [];
3145
- S != null ? x = S == null ? void 0 : S.filter((D) => (D.csv ?? D.csvText ?? D.csvFilter ?? D.csvArray) != null).map((D) => ({
3159
+ let I = [];
3160
+ S != null ? I = S == null ? void 0 : S.filter((D) => (D.csv ?? D.csvText ?? D.csvFilter ?? D.csvArray) != null).map((D) => ({
3146
3161
  header: D.title ?? D.value ?? "",
3147
3162
  itemText: D.itemText,
3148
3163
  value: D.value
3149
- })) : x = Object.keys(l[0]).map((D) => ({ header: tn(D) ?? "", value: D })), x = x.filter((D) => D.header.length > 0);
3150
- var P = [];
3164
+ })) : I = Object.keys(l[0]).map((D) => ({ header: tn(D) ?? "", value: D })), I = I.filter((D) => D.header.length > 0);
3165
+ var C = [];
3151
3166
  for (let D = 0; D < l.length; D++) {
3152
3167
  const i = l[D];
3153
- var _ = {}, M = [];
3154
- for (let E = 0; E < x.length; E++) {
3155
- const w = x[E];
3168
+ var _ = {}, L = [];
3169
+ for (let E = 0; E < I.length; E++) {
3170
+ const w = I[E];
3156
3171
  var $ = null;
3157
3172
  typeof w.value == "function" ? $ = w.value(i) : typeof w.value == "string" && ($ = Sr(i, w.value)), w.itemText != null ? _[w.header] = Sr($, w.itemText) : _[w.header] = $;
3158
3173
  }
3159
- P.push(_), _e(M) && M.forEach((E) => {
3160
- P.push(E);
3161
- }), M = [];
3174
+ C.push(_), _e(L) && L.forEach((E) => {
3175
+ C.push(E);
3176
+ }), L = [];
3162
3177
  }
3163
3178
  var d = [];
3164
- if (d.push(x.map((D) => D.header).toString()), P.forEach((D) => {
3179
+ if (d.push(I.map((D) => D.header).toString()), C.forEach((D) => {
3165
3180
  let i = [];
3166
- x.forEach(function(E) {
3181
+ I.forEach(function(E) {
3167
3182
  var w = D[E.header];
3168
3183
  i.push(w ?? "");
3169
3184
  }), d.push(i.join(","));
@@ -3196,28 +3211,28 @@ function Ln(e) {
3196
3211
  function S() {
3197
3212
  return s().startOf("day").plus({ day: 1 }).toUTC().toString() ?? "";
3198
3213
  }
3199
- function s(_, M) {
3200
- return _ == null ? t().setZone(e.getTimeZone()) : M ? he.fromFormat(_, M, { zone: e.getTimeZone() }) : he.fromISO(_, { zone: e.getTimeZone() });
3214
+ function s(_, L) {
3215
+ return _ == null ? t().setZone(e.getTimeZone()) : L ? he.fromFormat(_, L, { zone: e.getTimeZone() }) : he.fromISO(_, { zone: e.getTimeZone() });
3201
3216
  }
3202
- function g(_, M, $) {
3217
+ function g(_, L, $) {
3203
3218
  if (_ == null) {
3204
3219
  const h = t().setZone(e.getTimeZone());
3205
- return M ? h.toFormat(M) : h.toString();
3220
+ return L ? h.toFormat(L) : h.toString();
3206
3221
  }
3207
3222
  if (_ == "Invalid DateTime")
3208
3223
  return "";
3209
3224
  const d = $ ? he.fromFormat(_, $, { zone: e.getTimeZone() }) : he.fromISO(_, { zone: e.getTimeZone() });
3210
- return M ? d.toFormat(M) : d == null ? void 0 : d.toString();
3225
+ return L ? d.toFormat(L) : d == null ? void 0 : d.toString();
3211
3226
  }
3212
- function x(_, M) {
3213
- return _ == null ? t() : M ? he.fromFormat(_, M) : he.fromISO(_);
3227
+ function I(_, L) {
3228
+ return _ == null ? t() : L ? he.fromFormat(_, L) : he.fromISO(_);
3214
3229
  }
3215
- function P(_, M, $) {
3230
+ function C(_, L, $) {
3216
3231
  if (_ == null)
3217
- return M ? t().toFormat(M) : t().toString();
3232
+ return L ? t().toFormat(L) : t().toString();
3218
3233
  {
3219
3234
  const d = $ ? he.fromFormat(_, $) : he.fromISO(_);
3220
- return M ? d.toFormat(M) : d.toString();
3235
+ return L ? d.toFormat(L) : d.toString();
3221
3236
  }
3222
3237
  }
3223
3238
  return xr = {
@@ -3225,8 +3240,8 @@ function Ln(e) {
3225
3240
  getTomorrow: S,
3226
3241
  tzDate: s,
3227
3242
  tzString: g,
3228
- utcDate: x,
3229
- utcString: P
3243
+ utcDate: I,
3244
+ utcString: C
3230
3245
  }, xr;
3231
3246
  }
3232
3247
  let Tr;
@@ -3249,7 +3264,7 @@ function Nn(e) {
3249
3264
  }
3250
3265
  return h == null && (h = l.find((u) => Array.isArray(u.nav) ? u.nav.some((r) => r == d.nav) : u.nav == d.nav)), h;
3251
3266
  }
3252
- function x(d) {
3267
+ function I(d) {
3253
3268
  var r;
3254
3269
  if (l == null)
3255
3270
  return Promise.resolve("no demo data available for this api");
@@ -3264,7 +3279,7 @@ function Nn(e) {
3264
3279
  }, 200);
3265
3280
  });
3266
3281
  }
3267
- function P(d) {
3282
+ function C(d) {
3268
3283
  var y, D, i;
3269
3284
  if (l == null)
3270
3285
  throw new Error("no demo data available for this api");
@@ -3293,7 +3308,7 @@ function Nn(e) {
3293
3308
  });
3294
3309
  });
3295
3310
  }
3296
- function M(d) {
3311
+ function L(d) {
3297
3312
  var r, y;
3298
3313
  if (l == null)
3299
3314
  throw new Error("no demo data available for this api");
@@ -3334,10 +3349,10 @@ function Nn(e) {
3334
3349
  isDemoing: t,
3335
3350
  startDemo: S,
3336
3351
  data: l,
3337
- deleteItem: x,
3338
- get: P,
3352
+ deleteItem: I,
3353
+ get: C,
3339
3354
  getAll: _,
3340
- post: M,
3355
+ post: L,
3341
3356
  patch: $
3342
3357
  }, Tr;
3343
3358
  }
@@ -3350,8 +3365,8 @@ function Aa(e) {
3350
3365
  document.title = S.meta.title;
3351
3366
  else {
3352
3367
  const g = Rn.VITE_NODE_ENV;
3353
- let x = "";
3354
- 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;
3368
+ let I = "";
3369
+ g == "development" ? I = "BWeb Dev" : g == "staging" ? I = "BlitzIt Sandpit" : I = "BlitzIt Web | Cloud-Based Wholesale Logistics Platform", ((s = e == null ? void 0 : e.demo) == null ? void 0 : s.isDemoing.value) == !0 && (I = `Training: ${I}`), document.title = I;
3355
3370
  }
3356
3371
  }
3357
3372
  return {
@@ -3390,16 +3405,16 @@ function Un(e) {
3390
3405
  function g(f, A) {
3391
3406
  return t(f, "d LLL", A);
3392
3407
  }
3393
- function x(f, A) {
3408
+ function I(f, A) {
3394
3409
  return t(f, "ccc", A);
3395
3410
  }
3396
- function P(f, A) {
3411
+ function C(f, A) {
3397
3412
  return t(f, "ccc dd LLL yyyy", A);
3398
3413
  }
3399
3414
  function _(f, A) {
3400
3415
  return t(f, "ccc dd LLL @ hh:mm a", A);
3401
3416
  }
3402
- function M(f) {
3417
+ function L(f) {
3403
3418
  return new Intl.NumberFormat().format(f);
3404
3419
  }
3405
3420
  function $(f) {
@@ -3444,7 +3459,7 @@ function Un(e) {
3444
3459
  function w(f, A) {
3445
3460
  return t(f, "dd LLL yyyy", A);
3446
3461
  }
3447
- function L(f, A) {
3462
+ function N(f, A) {
3448
3463
  return t(f, "dd LLL yyyy hh:mm a", A);
3449
3464
  }
3450
3465
  function b(f, A) {
@@ -3453,15 +3468,15 @@ function Un(e) {
3453
3468
  function T(f) {
3454
3469
  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";
3455
3470
  }
3456
- const I = {
3471
+ const x = {
3457
3472
  toCompanyNameAndLocationLine: l,
3458
3473
  toCurrency: S,
3459
3474
  toDayDate: s,
3460
3475
  toDayMonth: g,
3461
- toDayOfWeek: x,
3462
- toDayShortDate: P,
3476
+ toDayOfWeek: I,
3477
+ toDayShortDate: C,
3463
3478
  toDayShortDateAndTime: _,
3464
- toDisplayNumber: M,
3479
+ toDisplayNumber: L,
3465
3480
  toDisplayNumberOver: $,
3466
3481
  toDisplayNumberSigned: d,
3467
3482
  toFormat: h,
@@ -3472,44 +3487,44 @@ function Un(e) {
3472
3487
  toPercent: i,
3473
3488
  toPrettyCSV: E,
3474
3489
  toShortDate: w,
3475
- toShortDateAndTime: L,
3490
+ toShortDateAndTime: N,
3476
3491
  toTime: b,
3477
3492
  toTimeOfDay: T
3478
3493
  };
3479
- function N(f) {
3494
+ function P(f) {
3480
3495
  if (f != null) {
3481
3496
  let A = f;
3482
- if (A != null && I[A] != null)
3483
- return I[A];
3497
+ if (A != null && x[A] != null)
3498
+ return x[A];
3484
3499
  }
3485
3500
  return (A) => A;
3486
3501
  }
3487
3502
  return _r = {
3488
- findFilter: N,
3489
- ...I
3503
+ findFilter: P,
3504
+ ...x
3490
3505
  }, _r;
3491
3506
  }
3492
3507
  function Bn(e, t) {
3493
3508
  const l = z(!1), S = Yt(e);
3494
3509
  let s = g(Q(e));
3495
- (t == null ? void 0 : t.useTracker) !== !1 && Te(S, (P) => {
3496
- l.value = g(P) != s;
3510
+ (t == null ? void 0 : t.useTracker) !== !1 && Te(S, (C) => {
3511
+ l.value = g(C) != s;
3497
3512
  }, { deep: !0 });
3498
- function g(P) {
3499
- const _ = Nr(P);
3500
- return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((M) => {
3501
- delete _[M];
3502
- }) : t.propsToTrack != null && Object.keys(P).forEach(($) => {
3513
+ function g(C) {
3514
+ const _ = Nr(C);
3515
+ return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((L) => {
3516
+ delete _[L];
3517
+ }) : t.propsToTrack != null && Object.keys(C).forEach(($) => {
3503
3518
  t.propsToTrack.some((d) => d == $) || delete _[$];
3504
3519
  })), JSON.stringify(_);
3505
3520
  }
3506
- function x() {
3521
+ function I() {
3507
3522
  s = g(Q(S)), l.value = !1;
3508
3523
  }
3509
3524
  return {
3510
3525
  asyncItem: S,
3511
3526
  isChanged: l,
3512
- restartTracker: x
3527
+ restartTracker: I
3513
3528
  };
3514
3529
  }
3515
3530
  function Ia(e, t) {
@@ -3517,19 +3532,19 @@ function Ia(e, t) {
3517
3532
  const {
3518
3533
  // useBladeSrc = true,
3519
3534
  useRouteSrc: l = !0
3520
- } = t ?? {}, S = e.storeMode ?? (t == null ? void 0 : t.storeMode), s = e.storageMode ?? (t == null ? void 0 : t.storageMode), g = e.nav ?? e.bladeName ?? "basic", x = Lr(), P = et(), _ = Q(e.proxyQueryKey), M = ee(() => {
3535
+ } = t ?? {}, S = e.storeMode ?? (t == null ? void 0 : t.storeMode), s = e.storageMode ?? (t == null ? void 0 : t.storageMode), g = e.nav ?? e.bladeName ?? "basic", I = Lr(), C = et(), _ = Q(e.proxyQueryKey), L = ee(() => {
3521
3536
  var W;
3522
- return Q(e.proxyID) ?? (_ != null ? (W = P == null ? void 0 : P.query) == null ? void 0 : W[_] : void 0);
3537
+ return Q(e.proxyID) ?? (_ != null ? (W = C == null ? void 0 : C.query) == null ? void 0 : W[_] : void 0);
3523
3538
  }), $ = z(void 0), { actionErrorMsg: d, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: y, restoreItem: D, saveItem: i } = ut({
3524
3539
  nav: g,
3525
3540
  onError: e.onError ?? (t == null ? void 0 : t.onError),
3526
- proxyID: M.value,
3541
+ proxyID: L.value,
3527
3542
  store: Le({
3528
3543
  storeMode: S,
3529
3544
  storageMode: s,
3530
3545
  nav: g
3531
3546
  })
3532
- }), E = ee(() => e.errorMsg ?? d.value), w = ee(() => e.loadingMsg ?? h.value), L = ee(() => w.value != null), b = z(e.itemID ?? (l ? (Z = P == null ? void 0 : P.params) == null ? void 0 : Z.id : void 0)), T = z(b.value == "new" ? "new" : e.startEditing ? "edit" : "view"), I = Ne(!1), N = ee(() => {
3547
+ }), E = ee(() => e.errorMsg ?? d.value), w = ee(() => e.loadingMsg ?? h.value), N = ee(() => w.value != null), b = z(e.itemID ?? (l ? (Z = C == null ? void 0 : C.params) == null ? void 0 : Z.id : void 0)), T = z(b.value == "new" ? "new" : e.startEditing ? "edit" : "view"), x = Ne(!1), P = ee(() => {
3533
3548
  let W = e.params != null ? { ...e.params } : {};
3534
3549
  return e.includeDetails != null && (W.includeDetails = e.includeDetails), W;
3535
3550
  }), f = ee(() => {
@@ -3559,7 +3574,7 @@ function Ia(e, t) {
3559
3574
  const {
3560
3575
  additionalUrl: ne,
3561
3576
  onDeleteAsync: ce,
3562
- onDeleteSuccessAsync: se = () => (x.back(), Promise.resolve(void 0)),
3577
+ onDeleteSuccessAsync: se = () => (I.back(), Promise.resolve(void 0)),
3563
3578
  proxyID: ge
3564
3579
  } = { ...e };
3565
3580
  u({
@@ -3593,15 +3608,15 @@ function Ia(e, t) {
3593
3608
  });
3594
3609
  }
3595
3610
  async function Y(W) {
3596
- if (I.value = !1, e.item != null)
3611
+ if (x.value = !1, e.item != null)
3597
3612
  $.value = e.item;
3598
3613
  else {
3599
3614
  const ne = {
3600
3615
  additionalUrl: e.additionalUrl,
3601
3616
  id: b.value,
3602
3617
  nav: g,
3603
- proxyID: M.value,
3604
- params: N.value,
3618
+ proxyID: L.value,
3619
+ params: P.value,
3605
3620
  //props.params,
3606
3621
  // ...(useBladeSrc ? bladeData.value : {}),
3607
3622
  refresh: (W == null ? void 0 : W.deepRefresh) ?? !1,
@@ -3623,7 +3638,7 @@ function Ia(e, t) {
3623
3638
  onCanSaveAsync: se,
3624
3639
  onGetSaveAsync: ge,
3625
3640
  onSaveAsync: Be,
3626
- onSaveSuccessAsync: $e = (Fe) => ((ne == null ? void 0 : ne.navBack) === !0 ? x.back() : (W.rowVersion != null && Fe.rowVersion != null && (W.rowVersion = Fe.rowVersion), ue(), T.value = "view"), Promise.resolve(void 0))
3641
+ onSaveSuccessAsync: $e = (Fe) => ((ne == null ? void 0 : ne.navBack) === !0 ? I.back() : (W.rowVersion != null && Fe.rowVersion != null && (W.rowVersion = Fe.rowVersion), ue(), T.value = "view"), Promise.resolve(void 0))
3627
3642
  } = { ...e };
3628
3643
  i({
3629
3644
  additionalUrl: ce,
@@ -3633,7 +3648,7 @@ function Ia(e, t) {
3633
3648
  onGetSaveAsync: ge,
3634
3649
  onSaveAsync: Be,
3635
3650
  onSaveSuccessAsync: $e,
3636
- proxyID: M.value,
3651
+ proxyID: L.value,
3637
3652
  // ...params.getOptions(),
3638
3653
  // ...(useBladeSrc ? bladeData.value : {}),
3639
3654
  mode: T.value
@@ -3644,12 +3659,12 @@ function Ia(e, t) {
3644
3659
  !W || W == "view" ? T.value = "edit" : W == "edit" && (T.value = "view");
3645
3660
  }
3646
3661
  return Te(E, (W) => {
3647
- I.value = W != null;
3662
+ x.value = W != null;
3648
3663
  }), Te(() => e.refreshToggle, () => {
3649
3664
  Y({ deepRefresh: !0 });
3650
3665
  }), Xr(async () => {
3651
3666
  var W;
3652
- e.eager == !0 && await Y({ deepRefresh: ((W = P == null ? void 0 : P.params) == null ? void 0 : W.refresh) == "true" });
3667
+ e.eager == !0 && await Y({ deepRefresh: ((W = C == null ? void 0 : C.params) == null ? void 0 : W.refresh) == "true" });
3653
3668
  }), {
3654
3669
  asyncItem: $,
3655
3670
  deleteItem: be,
@@ -3658,7 +3673,7 @@ function Ia(e, t) {
3658
3673
  isDeletable: f,
3659
3674
  isEditing: ee(() => T.value == "new" || T.value == "edit"),
3660
3675
  isEditable: A,
3661
- isLoading: L,
3676
+ isLoading: N,
3662
3677
  isNew: ee(() => T.value == "new"),
3663
3678
  isRestorable: j,
3664
3679
  isSaveable: X,
@@ -3667,7 +3682,7 @@ function Ia(e, t) {
3667
3682
  refresh: Y,
3668
3683
  restoreItem: G,
3669
3684
  saveItem: H,
3670
- showError: I,
3685
+ showError: x,
3671
3686
  toggleMode: ie
3672
3687
  };
3673
3688
  }
@@ -3690,35 +3705,35 @@ function $n(e) {
3690
3705
  }));
3691
3706
  function S(h) {
3692
3707
  var u;
3693
- return (u = P(h)) == null ? void 0 : u.archiveName;
3708
+ return (u = C(h)) == null ? void 0 : u.archiveName;
3694
3709
  }
3695
3710
  function s(h) {
3696
3711
  var u;
3697
- return ((u = P(h)) == null ? void 0 : u.cacheExpiryHours) ?? t;
3712
+ return ((u = C(h)) == null ? void 0 : u.cacheExpiryHours) ?? t;
3698
3713
  }
3699
3714
  function g(h) {
3700
3715
  var u;
3701
- return (u = P(h)) == null ? void 0 : u.displayName;
3716
+ return (u = C(h)) == null ? void 0 : u.displayName;
3702
3717
  }
3703
- function x(h) {
3718
+ function I(h) {
3704
3719
  var u;
3705
- return (u = P(h)) == null ? void 0 : u.icon;
3720
+ return (u = C(h)) == null ? void 0 : u.icon;
3706
3721
  }
3707
- function P(h) {
3722
+ function C(h) {
3708
3723
  return h == null ? null : typeof h != "string" ? h : tt(l, (r) => r.children).find((r) => {
3709
3724
  var y;
3710
3725
  return r.name == h || r.singleName == h || ((y = r.aliases) == null ? void 0 : y.some((D) => D == h));
3711
3726
  }) ?? null;
3712
3727
  }
3713
3728
  function _(h) {
3714
- const u = P(h);
3729
+ const u = C(h);
3715
3730
  if (u == null)
3716
3731
  return;
3717
3732
  let r = gn(u.microservice ?? "default") ?? "";
3718
3733
  return u.path != null && (r = Ue(r, u.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
3719
3734
  }
3720
- function M(h) {
3721
- const u = P(h);
3735
+ function L(h) {
3736
+ const u = C(h);
3722
3737
  if ((u == null ? void 0 : u.singleName) != null)
3723
3738
  return u.singleName;
3724
3739
  const r = u == null ? void 0 : u.displayName;
@@ -3726,13 +3741,13 @@ function $n(e) {
3726
3741
  return mn(r);
3727
3742
  }
3728
3743
  function $(h) {
3729
- const u = P(h);
3744
+ const u = C(h);
3730
3745
  return (u == null ? void 0 : u.name) ?? (u == null ? void 0 : u.singleName);
3731
3746
  }
3732
3747
  function d(h) {
3733
3748
  if (h == null)
3734
3749
  return;
3735
- const u = typeof h == "string" ? P(h) : h;
3750
+ const u = typeof h == "string" ? C(h) : h;
3736
3751
  Yr.value = u == null ? void 0 : u.background, zr.value = (u == null ? void 0 : u.hideNavigation) !== !0, Vr.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) => {
3737
3752
  r.preventDefault();
3738
3753
  }));
@@ -3746,32 +3761,32 @@ function $n(e) {
3746
3761
  findArchiveName: S,
3747
3762
  findCacheHours: s,
3748
3763
  findDisplay: g,
3749
- findIcon: x,
3750
- findItem: P,
3764
+ findIcon: I,
3765
+ findItem: C,
3751
3766
  findStoreName: $,
3752
3767
  findPath: _,
3753
- findSingleDisplay: M,
3768
+ findSingleDisplay: L,
3754
3769
  updateNavigationProperties: d
3755
3770
  }, Cr;
3756
3771
  }
3757
3772
  function Da(e, t, l) {
3758
3773
  var He, Ve;
3759
- const S = Mn(), s = it(), g = Lr(), x = et(), { bladeData: P } = Cn({}), _ = e.useBladeSrc ?? !0, M = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", d = e.storeMode ?? ((He = s.findItem($)) == null ? void 0 : He.storeMode), h = e.storageMode ?? ((Ve = s.findItem($)) == null ? void 0 : Ve.storageMode), u = Q(e.customFilters) ?? [], r = z([]), y = ee(() => Kt([
3774
+ const S = Mn(), s = it(), g = Lr(), I = et(), { bladeData: C } = Cn({}), _ = e.useBladeSrc ?? !0, L = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", d = e.storeMode ?? ((He = s.findItem($)) == null ? void 0 : He.storeMode), h = e.storageMode ?? ((Ve = s.findItem($)) == null ? void 0 : Ve.storageMode), u = Q(e.customFilters) ?? [], r = z([]), y = ee(() => Kt([
3760
3775
  ...u.filter((U) => U.name != null).map((U) => U.name),
3761
3776
  ...e.defaultFilters ?? [],
3762
3777
  ...r.value
3763
3778
  ]).value), D = z((e.defaultFilters ?? []).map((U) => y.value.indexOf(U)));
3764
3779
  let i = z([...D.value]);
3765
- const E = ee(() => Gr(i, D).value.length > 0 || Gr(D, i).value.length > 0), w = z(L());
3766
- function L() {
3780
+ const E = ee(() => Gr(i, D).value.length > 0 || Gr(D, i).value.length > 0), w = z(N());
3781
+ function N() {
3767
3782
  var U, K;
3768
3783
  if (_) {
3769
- const V = (U = P.value) == null ? void 0 : U.page;
3784
+ const V = (U = C.value) == null ? void 0 : U.page;
3770
3785
  if (V != null)
3771
3786
  return Number.parseInt(V);
3772
3787
  }
3773
- if (M) {
3774
- const V = (K = x == null ? void 0 : x.query) == null ? void 0 : K.page;
3788
+ if (L) {
3789
+ const V = (K = I == null ? void 0 : I.query) == null ? void 0 : K.page;
3775
3790
  if (V != null)
3776
3791
  return Number.parseInt(typeof V == "string" ? V : V.toString());
3777
3792
  }
@@ -3780,31 +3795,31 @@ function Da(e, t, l) {
3780
3795
  const b = ee(() => {
3781
3796
  var U, K;
3782
3797
  if (_) {
3783
- const V = (U = P.value) == null ? void 0 : U.proxyID;
3798
+ const V = (U = C.value) == null ? void 0 : U.proxyID;
3784
3799
  if (V != null)
3785
3800
  return V;
3786
3801
  }
3787
- if (M) {
3788
- const V = (K = x == null ? void 0 : x.query) == null ? void 0 : K.query;
3802
+ if (L) {
3803
+ const V = (K = I == null ? void 0 : I.query) == null ? void 0 : K.query;
3789
3804
  if (V != null)
3790
3805
  return V;
3791
3806
  }
3792
3807
  return e.proxyID;
3793
- }), T = z(I());
3794
- function I() {
3808
+ }), T = z(x());
3809
+ function x() {
3795
3810
  var U, K;
3796
3811
  if (_) {
3797
- const V = (U = P.value) == null ? void 0 : U.search;
3812
+ const V = (U = C.value) == null ? void 0 : U.search;
3798
3813
  if (V != null)
3799
3814
  return V;
3800
3815
  }
3801
- if (M) {
3802
- const V = (K = x == null ? void 0 : x.query) == null ? void 0 : K.search;
3816
+ if (L) {
3817
+ const V = (K = I == null ? void 0 : I.query) == null ? void 0 : K.search;
3803
3818
  if (V != null)
3804
3819
  return V;
3805
3820
  }
3806
3821
  }
3807
- const N = z(Q(e.startShowingInactive) ?? !1), f = ee(() => [
3822
+ const P = z(Q(e.startShowingInactive) ?? !1), f = ee(() => [
3808
3823
  ...e.searchProps ?? [],
3809
3824
  ...(e.headers ?? []).filter((U) => U.searchable != null && U.value != null).map((U) => U.value ?? "")
3810
3825
  ]), A = z([]), j = Ne([]), X = z([]);
@@ -3829,8 +3844,8 @@ function Da(e, t, l) {
3829
3844
  }), Fe = ee(() => {
3830
3845
  var K;
3831
3846
  let U = e.params != null ? { ...e.params } : {};
3832
- return e.useServerPagination && e.itemsPerPage != null && (U.includeCount = !0, U.takeAmount = e.itemsPerPage, U.takeFrom = (w.value - 1) * e.itemsPerPage), $e.value != null && (U = { ...U, ...$e.value }), N.value && (U.includeInactive = !0), _e(e.selectProps) && (U.properties = (K = e.selectProps) == null ? void 0 : K.toString()), T.value != null && (U.searchString = T.value), U;
3833
- }), tr = ee(() => (U) => e.onCanDelete != null ? e.onCanDelete(U) : !(U != null && U.isInactive === !0)), nr = ee(() => (U) => N.value ? e.onCanRestore != null ? e.onCanRestore(U) : (U == null ? void 0 : U.isInactive) === !0 : !1), Ce = ee(() => X.value.filter((U) => !U.hide)), ar = ee(() => {
3847
+ return e.useServerPagination && e.itemsPerPage != null && (U.includeCount = !0, U.takeAmount = e.itemsPerPage, U.takeFrom = (w.value - 1) * e.itemsPerPage), $e.value != null && (U = { ...U, ...$e.value }), P.value && (U.includeInactive = !0), _e(e.selectProps) && (U.properties = (K = e.selectProps) == null ? void 0 : K.toString()), T.value != null && (U.searchString = T.value), U;
3848
+ }), tr = ee(() => (U) => e.onCanDelete != null ? e.onCanDelete(U) : !(U != null && U.isInactive === !0)), nr = ee(() => (U) => P.value ? e.onCanRestore != null ? e.onCanRestore(U) : (U == null ? void 0 : U.isInactive) === !0 : !1), Ce = ee(() => X.value.filter((U) => !U.hide)), ar = ee(() => {
3834
3849
  let U = new Array();
3835
3850
  return Ce.value.filter((V) => V.sublevel != null).forEach((V) => {
3836
3851
  let O = U.find((de) => de.position == V.sublevel);
@@ -3972,7 +3987,7 @@ function Da(e, t, l) {
3972
3987
  }
3973
3988
  return qe(), Qt([T], () => {
3974
3989
  Pe();
3975
- }, { debounce: 500, maxWait: 500 }), Te([N, w], async () => {
3990
+ }, { debounce: 500, maxWait: 500 }), Te([P, w], async () => {
3976
3991
  await Ie();
3977
3992
  }), Te([W, () => e.errorMsg], ([U, K]) => {
3978
3993
  se.value = U != null || K != null;
@@ -3982,7 +3997,7 @@ function Da(e, t, l) {
3982
3997
  Pe();
3983
3998
  }), Xr(async () => {
3984
3999
  var U;
3985
- e.eager == !0 && await Ie({ deepRefresh: ((U = x == null ? void 0 : x.params) == null ? void 0 : U.refresh) == "true" });
4000
+ e.eager == !0 && await Ie({ deepRefresh: ((U = I == null ? void 0 : I.params) == null ? void 0 : U.refresh) == "true" });
3986
4001
  }), {
3987
4002
  add: Se,
3988
4003
  asyncItems: A,
@@ -4006,7 +4021,7 @@ function Da(e, t, l) {
4006
4021
  selectItem: je,
4007
4022
  // serverFilters,
4008
4023
  showError: se,
4009
- showInactive: N,
4024
+ showInactive: P,
4010
4025
  showSearch: ge,
4011
4026
  subtitleOptions: ar,
4012
4027
  tableHeaders: Ce,
@@ -4031,30 +4046,30 @@ function xa() {
4031
4046
  ...We,
4032
4047
  sidebarNavItems: ee(() => {
4033
4048
  var g;
4034
- S = S.filter((x) => x.meta != null && x.meta.menuGroup != null);
4049
+ S = S.filter((I) => I.meta != null && I.meta.menuGroup != null);
4035
4050
  const s = [];
4036
- return S.forEach((x) => {
4051
+ return S.forEach((I) => {
4037
4052
  var d;
4038
- const P = We.groupOptions.value.find((h) => h.displayName == x.meta.menuGroup), _ = t.findItem(x.meta.nav), M = x.meta;
4039
- let $ = s.find((h) => h.displayName == M.menuGroup);
4053
+ const C = We.groupOptions.value.find((h) => h.displayName == I.meta.menuGroup), _ = t.findItem(I.meta.nav), L = I.meta;
4054
+ let $ = s.find((h) => h.displayName == L.menuGroup);
4040
4055
  $ == null && ($ = {
4041
- displayName: M.menuGroup,
4042
- icon: (P == null ? void 0 : P.icon) ?? (M == null ? void 0 : M.icon) ?? (_ == null ? void 0 : _.icon),
4056
+ displayName: L.menuGroup,
4057
+ icon: (C == null ? void 0 : C.icon) ?? (L == null ? void 0 : L.icon) ?? (_ == null ? void 0 : _.icon),
4043
4058
  isGroup: !0,
4044
4059
  items: []
4045
4060
  }, s.push($)), (d = $.items) == null || d.push({
4046
- displayName: (M == null ? void 0 : M.displayName) ?? t.findDisplay(_ ?? void 0),
4047
- icon: (M == null ? void 0 : M.icon) ?? t.findIcon(_ ?? void 0),
4048
- permissions: (M == null ? void 0 : M.permissions) ?? (_ == null ? void 0 : _.permissions) ?? [],
4049
- requiresAuth: (M == null ? void 0 : M.requiresAuth) !== !1,
4050
- subscriptions: (M == null ? void 0 : M.subscriptions) ?? (_ == null ? void 0 : _.subscriptions) ?? [],
4051
- subFilters: (M == null ? void 0 : M.subFilters) ?? (_ == null ? void 0 : _.subFilters) ?? [],
4052
- routeName: x.name
4061
+ displayName: (L == null ? void 0 : L.displayName) ?? t.findDisplay(_ ?? void 0),
4062
+ icon: (L == null ? void 0 : L.icon) ?? t.findIcon(_ ?? void 0),
4063
+ permissions: (L == null ? void 0 : L.permissions) ?? (_ == null ? void 0 : _.permissions) ?? [],
4064
+ requiresAuth: (L == null ? void 0 : L.requiresAuth) !== !1,
4065
+ subscriptions: (L == null ? void 0 : L.subscriptions) ?? (_ == null ? void 0 : _.subscriptions) ?? [],
4066
+ subFilters: (L == null ? void 0 : L.subFilters) ?? (_ == null ? void 0 : _.subFilters) ?? [],
4067
+ routeName: I.name
4053
4068
  });
4054
- }), s.forEach((x) => {
4055
- var P;
4056
- x.items = (P = x.items) == null ? void 0 : P.filter((_) => !_.requiresAuth || l.doShow(_.subscriptions, _.permissions, "view")).sort(Re.firstBy((_) => _.displayName));
4057
- }), We.currentGroup.value != null ? ((g = s.find((x) => x.displayName == We.currentGroup.value)) == null ? void 0 : g.items) ?? [] : s.filter((x) => !x.requiresAuth || l.doShow(x.subscriptions, x.permissions, "view"));
4069
+ }), s.forEach((I) => {
4070
+ var C;
4071
+ I.items = (C = I.items) == null ? void 0 : C.filter((_) => !_.requiresAuth || l.doShow(_.subscriptions, _.permissions, "view")).sort(Re.firstBy((_) => _.displayName));
4072
+ }), We.currentGroup.value != null ? ((g = s.find((I) => I.displayName == We.currentGroup.value)) == null ? void 0 : g.items) ?? [] : s.filter((I) => !I.requiresAuth || l.doShow(I.subscriptions, I.permissions, "view"));
4058
4073
  })
4059
4074
  };
4060
4075
  }
@@ -4080,21 +4095,21 @@ function _a() {
4080
4095
  return Mr;
4081
4096
  }
4082
4097
  function Gn() {
4083
- function e(x) {
4084
- er.value = x.detail, br.value = !0;
4098
+ function e(I) {
4099
+ er.value = I.detail, br.value = !0;
4085
4100
  }
4086
4101
  function t() {
4087
4102
  Kr || (Kr = !0, window.location.reload());
4088
4103
  }
4089
4104
  function l() {
4090
- var x;
4091
- (x = Qr.value) == null || x.prompt(), wr.value = !1;
4105
+ var I;
4106
+ (I = Qr.value) == null || I.prompt(), wr.value = !1;
4092
4107
  }
4093
4108
  function S() {
4094
4109
  return !!window.matchMedia("(display-mode: standalone)").matches;
4095
4110
  }
4096
- function s(x) {
4097
- x.preventDefault(), wr.value = !0, Qr.value = x;
4111
+ function s(I) {
4112
+ I.preventDefault(), wr.value = !0, Qr.value = I;
4098
4113
  }
4099
4114
  function g() {
4100
4115
  br.value = !1, !(!er.value || !er.value.waiting) && er.value.waiting.postMessage({ type: "SKIP_WAITING" });
@@ -4122,17 +4137,17 @@ function Pa(e) {
4122
4137
  kn(e), (_ = e.auth).demo ?? (_.demo = S), e.auth.getAuthItem = s.findItem;
4123
4138
  const g = Dn(e.auth);
4124
4139
  Fn(e.menu);
4125
- const x = En({
4140
+ const I = En({
4126
4141
  auth: g,
4127
4142
  findPath: s.findPath,
4128
4143
  useBearerToken: !0
4129
- }), P = Ln({
4144
+ }), C = Ln({
4130
4145
  getTimeZone: () => g.timeZone.value
4131
4146
  });
4132
4147
  Un({
4133
- dates: P
4148
+ dates: C
4134
4149
  }), Gn(), wn({
4135
- api: x,
4150
+ api: I,
4136
4151
  auth: g,
4137
4152
  navigation: s
4138
4153
  });