bt-core-app 1.4.92 → 1.4.93

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.
@@ -1,5 +1,5 @@
1
- import { ref as z, shallowRef as Re, computed as te, toValue as K, watch as Te, toRef as Yt, onMounted as Xr } from "vue";
2
- import { watchArray as Or, useStorage as Zt, useEventListener as me, toValue as Ae, useParentElement as Jt, useResizeObserver as jt, useArrayUnique as Kt, useArrayDifference as Gr, watchDebounced as Qt, tryOnMounted as Xt } from "@vueuse/core";
1
+ import { ref as z, shallowRef as Le, computed as ee, toValue as Q, watch as Te, toRef as Yt, onMounted as Xr } from "vue";
2
+ import { watchArray as Or, useStorage as Zt, useEventListener as me, toValue as Ee, useParentElement as Jt, useResizeObserver as jt, useArrayUnique as Kt, useArrayDifference as Gr, watchDebounced as Qt, tryOnMounted as Xt } from "@vueuse/core";
3
3
  import { defineStore as pr } from "pinia";
4
4
  import { DateTime as he } from "luxon";
5
5
  import { useRouter as Mr, useRoute as et } from "vue-router";
@@ -11,7 +11,7 @@ function pt(e) {
11
11
  return (e == "x" ? t : t & 3 | 8).toString(16);
12
12
  }
13
13
  function en(e) {
14
- const t = z([]), l = Re(), S = Re(), s = Re(), g = te(() => l.value != null);
14
+ const t = z([]), l = Le(), S = Le(), s = Le(), g = ee(() => l.value != null);
15
15
  function x(d) {
16
16
  t.value = t.value.filter((h) => h.id != d);
17
17
  }
@@ -59,11 +59,11 @@ function en(e) {
59
59
  logError: _
60
60
  };
61
61
  }
62
- var Qe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
62
+ var Xe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
63
63
  function rn(e) {
64
64
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
65
65
  }
66
- var Ue = function() {
66
+ var Re = function() {
67
67
  function e(s) {
68
68
  return s;
69
69
  }
@@ -98,7 +98,7 @@ var Ue = function() {
98
98
  }
99
99
  return S.firstBy = S, S;
100
100
  }();
101
- function Be(e, t) {
101
+ function Ue(e, t) {
102
102
  let l = e ?? "", S = t ?? "";
103
103
  if (l.endsWith("/"))
104
104
  do
@@ -189,7 +189,7 @@ function ea(e) {
189
189
  function nn(e) {
190
190
  return e == null ? e : e.replace(/\w\S*/g, (t) => t.replace(/^\w/, (l) => l.toUpperCase()));
191
191
  }
192
- const Ye = [
192
+ const Ze = [
193
193
  { value: 1, short: "sun", values: ["sun", "sunday"] },
194
194
  { value: 2, short: "mon", values: ["mon", "monday"] },
195
195
  { value: 3, short: "tue", values: ["tue", "tues", "tuesday"] },
@@ -202,19 +202,19 @@ const Ye = [
202
202
  function ra(e) {
203
203
  if (e == null)
204
204
  return 0;
205
- const t = e.replaceAll(" ", "").split(",").map((S) => S.toLowerCase()), l = Ye.filter((S) => S.values.some((s) => t.some((g) => s == g))).map((S) => S.value);
205
+ const t = e.replaceAll(" ", "").split(",").map((S) => S.toLowerCase()), l = Ze.filter((S) => S.values.some((s) => t.some((g) => s == g))).map((S) => S.value);
206
206
  return l.length == 0 ? 8 : Math.min(...l);
207
207
  }
208
208
  function ta(e) {
209
209
  return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((t) => {
210
- let l = Ye.find((S) => S.values.some((s) => s == t));
210
+ let l = Ze.find((S) => S.values.some((s) => s == t));
211
211
  return l != null ? l.short : "";
212
212
  }).filter((t) => t != null && t.length > 0).toString();
213
213
  }
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 = Ye.find((g) => g.values.some((x) => x == S));
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
218
  return s != null && l.some((g) => g == s.short || s.values.some((x) => x == g));
219
219
  }
220
220
  function aa(e, t) {
@@ -222,13 +222,13 @@ function aa(e, t) {
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) => Ye.find((g) => g.values.some((x) => x == s))).filter((s) => s != null).sort(Ue.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((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();
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) => Ye.find((x) => x.values.some((P) => P == g && P != S))).filter((g) => g != null).sort(Ue.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((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();
232
232
  return s.length > 0 ? s : void 0;
233
233
  }
234
234
  function ua(e, t) {
@@ -354,7 +354,7 @@ function hn(e) {
354
354
  function mn(e) {
355
355
  return e.endsWith("ies") ? e.slice(0, e.length - 3) : e.endsWith("s") ? e.slice(0, e.length - 1) : e;
356
356
  }
357
- function Xe(e) {
357
+ function Oe(e) {
358
358
  throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
359
359
  }
360
360
  var nt = { exports: {} };
@@ -372,7 +372,7 @@ var nt = { exports: {} };
372
372
  function x(N, $) {
373
373
  if (!s[N]) {
374
374
  if (!S[N]) {
375
- var d = typeof Xe == "function" && Xe;
375
+ var d = typeof Oe == "function" && Oe;
376
376
  if (!$ && d)
377
377
  return d(N, !0);
378
378
  if (P)
@@ -388,7 +388,7 @@ var nt = { exports: {} };
388
388
  }
389
389
  return s[N].exports;
390
390
  }
391
- for (var P = typeof Xe == "function" && Xe, _ = 0; _ < g.length; _++)
391
+ for (var P = typeof Oe == "function" && Oe, _ = 0; _ < g.length; _++)
392
392
  x(g[_]);
393
393
  return x;
394
394
  }({ 1: [function(l, S, s) {
@@ -429,7 +429,7 @@ var nt = { exports: {} };
429
429
  function y(I) {
430
430
  u.push(I) === 1 && !h && P();
431
431
  }
432
- }).call(this, typeof Qe < "u" ? Qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
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
435
  function x() {
@@ -505,17 +505,17 @@ var nt = { exports: {} };
505
505
  }
506
506
  function y(b, T) {
507
507
  var D = !1;
508
- function L(Q) {
509
- D || (D = !0, P.reject(b, Q));
508
+ function L(X) {
509
+ D || (D = !0, P.reject(b, X));
510
510
  }
511
- function f(Q) {
512
- D || (D = !0, P.resolve(b, Q));
511
+ function f(X) {
512
+ D || (D = !0, P.resolve(b, X));
513
513
  }
514
514
  function A() {
515
515
  T(f, L);
516
516
  }
517
- var J = I(A);
518
- J.status === "error" && L(J.value);
517
+ var j = I(A);
518
+ j.status === "error" && L(j.value);
519
519
  }
520
520
  function I(b, T) {
521
521
  var D = {};
@@ -543,15 +543,15 @@ var nt = { exports: {} };
543
543
  var D = b.length, L = !1;
544
544
  if (!D)
545
545
  return this.resolve([]);
546
- for (var f = new Array(D), A = 0, J = -1, Q = new this(x); ++J < D; )
547
- O(b[J], J);
548
- return Q;
549
- function O(ce, we) {
550
- T.resolve(ce).then(W, function(Y) {
551
- L || (L = !0, P.reject(Q, Y));
546
+ for (var f = new Array(D), A = 0, j = -1, X = new this(x); ++j < D; )
547
+ re(b[j], j);
548
+ return X;
549
+ function re(ue, be) {
550
+ T.resolve(ue).then(G, function(Y) {
551
+ L || (L = !0, P.reject(X, Y));
552
552
  });
553
- function W(Y) {
554
- f[we] = Y, ++A === D && !L && (L = !0, P.resolve(Q, f));
553
+ function G(Y) {
554
+ f[be] = Y, ++A === D && !L && (L = !0, P.resolve(X, f));
555
555
  }
556
556
  }
557
557
  }
@@ -564,20 +564,20 @@ var nt = { exports: {} };
564
564
  if (!D)
565
565
  return this.resolve([]);
566
566
  for (var f = -1, A = new this(x); ++f < D; )
567
- J(b[f]);
567
+ j(b[f]);
568
568
  return A;
569
- function J(Q) {
570
- T.resolve(Q).then(function(O) {
571
- L || (L = !0, P.resolve(A, O));
572
- }, function(O) {
573
- L || (L = !0, P.reject(A, O));
569
+ function j(X) {
570
+ T.resolve(X).then(function(re) {
571
+ L || (L = !0, P.resolve(A, re));
572
+ }, function(re) {
573
+ L || (L = !0, P.reject(A, re));
574
574
  });
575
575
  }
576
576
  }
577
577
  }, { 1: 1 }], 3: [function(l, S, s) {
578
578
  (function(g) {
579
579
  typeof g.Promise != "function" && (g.Promise = l(2));
580
- }).call(this, typeof Qe < "u" ? Qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
580
+ }).call(this, typeof Xe < "u" ? Xe : typeof self < "u" ? self : typeof window < "u" ? window : {});
581
581
  }, { 2: 2 }], 4: [function(l, S, s) {
582
582
  var g = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
583
583
  return typeof n;
@@ -687,12 +687,12 @@ var nt = { exports: {} };
687
687
  if (a)
688
688
  return a.resolve(), a.promise;
689
689
  }
690
- function J(n, c) {
690
+ function j(n, c) {
691
691
  var a = E[n.name], m = a.deferredOperations.pop();
692
692
  if (m)
693
693
  return m.reject(c), m.promise;
694
694
  }
695
- function Q(n, c) {
695
+ function X(n, c) {
696
696
  return new d(function(a, m) {
697
697
  if (E[n.name] = E[n.name] || ne(), n.db)
698
698
  if (c)
@@ -722,13 +722,13 @@ var nt = { exports: {} };
722
722
  };
723
723
  });
724
724
  }
725
- function O(n) {
726
- return Q(n, !1);
725
+ function re(n) {
726
+ return X(n, !1);
727
727
  }
728
- function ce(n) {
729
- return Q(n, !0);
728
+ function ue(n) {
729
+ return X(n, !0);
730
730
  }
731
- function we(n, c) {
731
+ function be(n, c) {
732
732
  if (!n.db)
733
733
  return !0;
734
734
  var a = !n.db.objectStoreNames.contains(n.storeName), m = n.version < n.db.version, v = n.version > n.db.version;
@@ -741,7 +741,7 @@ var nt = { exports: {} };
741
741
  }
742
742
  return !1;
743
743
  }
744
- function W(n) {
744
+ function G(n) {
745
745
  return new d(function(c, a) {
746
746
  var m = new FileReader();
747
747
  m.onerror = a, m.onloadend = function(v) {
@@ -761,7 +761,7 @@ var nt = { exports: {} };
761
761
  function H(n) {
762
762
  return n && n.__local_forage_encoded_blob;
763
763
  }
764
- function ae(n) {
764
+ function ie(n) {
765
765
  var c = this, a = c._initReady().then(function() {
766
766
  var m = E[c._dbInfo.name];
767
767
  if (m && m.dbReady)
@@ -769,23 +769,23 @@ var nt = { exports: {} };
769
769
  });
770
770
  return u(a, n, n), a;
771
771
  }
772
- function G(n) {
772
+ function Z(n) {
773
773
  f(n);
774
774
  for (var c = E[n.name], a = c.forages, m = 0; m < a.length; m++) {
775
775
  var v = a[m];
776
776
  v._dbInfo.db && (v._dbInfo.db.close(), v._dbInfo.db = null);
777
777
  }
778
- return n.db = null, O(n).then(function(o) {
779
- return n.db = o, we(n) ? ce(n) : o;
778
+ return n.db = null, re(n).then(function(o) {
779
+ return n.db = o, be(n) ? ue(n) : o;
780
780
  }).then(function(o) {
781
781
  n.db = c.db = o;
782
782
  for (var C = 0; C < a.length; C++)
783
783
  a[C]._dbInfo.db = o;
784
784
  }).catch(function(o) {
785
- throw J(n, o), o;
785
+ throw j(n, o), o;
786
786
  });
787
787
  }
788
- function X(n, c, a, m) {
788
+ function W(n, c, a, m) {
789
789
  m === void 0 && (m = 1);
790
790
  try {
791
791
  var v = n.db.transaction(n.storeName, c);
@@ -794,10 +794,10 @@ var nt = { exports: {} };
794
794
  if (m > 0 && (!n.db || o.name === "InvalidStateError" || o.name === "NotFoundError"))
795
795
  return d.resolve().then(function() {
796
796
  if (!n.db || o.name === "NotFoundError" && !n.db.objectStoreNames.contains(n.storeName) && n.version <= n.db.version)
797
- return n.db && (n.version = n.db.version + 1), ce(n);
797
+ return n.db && (n.version = n.db.version + 1), ue(n);
798
798
  }).then(function() {
799
- return G(n).then(function() {
800
- X(n, c, a, m - 1);
799
+ return Z(n).then(function() {
800
+ W(n, c, a, m - 1);
801
801
  });
802
802
  }).catch(a);
803
803
  a(o);
@@ -815,7 +815,7 @@ var nt = { exports: {} };
815
815
  deferredOperations: []
816
816
  };
817
817
  }
818
- function se(n) {
818
+ function ce(n) {
819
819
  var c = this, a = {
820
820
  db: null
821
821
  };
@@ -823,7 +823,7 @@ var nt = { exports: {} };
823
823
  for (var m in n)
824
824
  a[m] = n[m];
825
825
  var v = E[a.name];
826
- v || (v = ne(), E[a.name] = v), v.forages.push(c), c._initReady || (c._initReady = c.ready, c.ready = ae);
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
828
  function C() {
829
829
  return d.resolve();
@@ -834,23 +834,23 @@ var nt = { exports: {} };
834
834
  }
835
835
  var F = v.forages.slice(0);
836
836
  return d.all(o).then(function() {
837
- return a.db = v.db, O(a);
837
+ return a.db = v.db, re(a);
838
838
  }).then(function(k) {
839
- return a.db = k, we(a, c._defaultConfig.version) ? ce(a) : k;
839
+ return a.db = k, be(a, c._defaultConfig.version) ? ue(a) : k;
840
840
  }).then(function(k) {
841
841
  a.db = v.db = k, c._dbInfo = a;
842
842
  for (var q = 0; q < F.length; q++) {
843
- var Z = F[q];
844
- Z !== c && (Z._dbInfo.db = a.db, Z._dbInfo.version = a.version);
843
+ var J = F[q];
844
+ J !== c && (J._dbInfo.db = a.db, J._dbInfo.version = a.version);
845
845
  }
846
846
  });
847
847
  }
848
- function fe(n, c) {
848
+ function se(n, c) {
849
849
  var a = this;
850
850
  n = r(n);
851
851
  var m = new d(function(v, o) {
852
852
  a.ready().then(function() {
853
- X(a._dbInfo, M, function(C, R) {
853
+ W(a._dbInfo, M, function(C, R) {
854
854
  if (C)
855
855
  return o(C);
856
856
  try {
@@ -869,10 +869,10 @@ var nt = { exports: {} };
869
869
  });
870
870
  return h(m, c), m;
871
871
  }
872
- function Ee(n, c) {
872
+ function ge(n, c) {
873
873
  var a = this, m = new d(function(v, o) {
874
874
  a.ready().then(function() {
875
- X(a._dbInfo, M, function(C, R) {
875
+ W(a._dbInfo, M, function(C, R) {
876
876
  if (C)
877
877
  return o(C);
878
878
  try {
@@ -880,10 +880,10 @@ var nt = { exports: {} };
880
880
  F.onsuccess = function() {
881
881
  var q = F.result;
882
882
  if (q) {
883
- var Z = q.value;
884
- H(Z) && (Z = Y(Z));
885
- var ee = n(Z, q.key, k++);
886
- ee !== void 0 ? v(ee) : q.continue();
883
+ var J = q.value;
884
+ H(J) && (J = Y(J));
885
+ var p = n(J, q.key, k++);
886
+ p !== void 0 ? v(p) : q.continue();
887
887
  } else
888
888
  v();
889
889
  }, F.onerror = function() {
@@ -897,43 +897,43 @@ var nt = { exports: {} };
897
897
  });
898
898
  return h(m, c), m;
899
899
  }
900
- function $e(n, c, a) {
900
+ function Be(n, c, a) {
901
901
  var m = this;
902
902
  n = r(n);
903
903
  var v = new d(function(o, C) {
904
904
  var R;
905
905
  m.ready().then(function() {
906
906
  return R = m._dbInfo, w.call(c) === "[object Blob]" ? L(R.db).then(function(B) {
907
- return B ? c : W(c);
907
+ return B ? c : G(c);
908
908
  }) : c;
909
909
  }).then(function(B) {
910
- X(m._dbInfo, b, function(F, k) {
910
+ W(m._dbInfo, b, function(F, k) {
911
911
  if (F)
912
912
  return C(F);
913
913
  try {
914
914
  var q = k.objectStore(m._dbInfo.storeName);
915
915
  B === null && (B = void 0);
916
- var Z = q.put(B, n);
916
+ var J = q.put(B, n);
917
917
  k.oncomplete = function() {
918
918
  B === void 0 && (B = null), o(B);
919
919
  }, k.onabort = k.onerror = function() {
920
- var ee = Z.error ? Z.error : Z.transaction.error;
921
- C(ee);
920
+ var p = J.error ? J.error : J.transaction.error;
921
+ C(p);
922
922
  };
923
- } catch (ee) {
924
- C(ee);
923
+ } catch (p) {
924
+ C(p);
925
925
  }
926
926
  });
927
927
  }).catch(C);
928
928
  });
929
929
  return h(v, a), v;
930
930
  }
931
- function Ce(n, c) {
931
+ function $e(n, c) {
932
932
  var a = this;
933
933
  n = r(n);
934
934
  var m = new d(function(v, o) {
935
935
  a.ready().then(function() {
936
- X(a._dbInfo, b, function(C, R) {
936
+ W(a._dbInfo, b, function(C, R) {
937
937
  if (C)
938
938
  return o(C);
939
939
  try {
@@ -954,10 +954,10 @@ var nt = { exports: {} };
954
954
  });
955
955
  return h(m, c), m;
956
956
  }
957
- function rr(n) {
957
+ function Fe(n) {
958
958
  var c = this, a = new d(function(m, v) {
959
959
  c.ready().then(function() {
960
- X(c._dbInfo, b, function(o, C) {
960
+ W(c._dbInfo, b, function(o, C) {
961
961
  if (o)
962
962
  return v(o);
963
963
  try {
@@ -979,7 +979,7 @@ 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
- X(c._dbInfo, M, function(o, C) {
982
+ W(c._dbInfo, M, function(o, C) {
983
983
  if (o)
984
984
  return v(o);
985
985
  try {
@@ -1004,7 +1004,7 @@ var nt = { exports: {} };
1004
1004
  return;
1005
1005
  }
1006
1006
  a.ready().then(function() {
1007
- X(a._dbInfo, M, function(C, R) {
1007
+ W(a._dbInfo, M, function(C, R) {
1008
1008
  if (C)
1009
1009
  return o(C);
1010
1010
  try {
@@ -1027,10 +1027,10 @@ var nt = { exports: {} };
1027
1027
  });
1028
1028
  return h(m, c), m;
1029
1029
  }
1030
- function Pe(n) {
1030
+ function Ce(n) {
1031
1031
  var c = this, a = new d(function(m, v) {
1032
1032
  c.ready().then(function() {
1033
- X(c._dbInfo, M, function(o, C) {
1033
+ W(c._dbInfo, M, function(o, C) {
1034
1034
  if (o)
1035
1035
  return v(o);
1036
1036
  try {
@@ -1061,7 +1061,7 @@ 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) : O(n).then(function(R) {
1064
+ var o = n.name === a.name && m._dbInfo.db, C = 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++)
@@ -1075,31 +1075,31 @@ var nt = { exports: {} };
1075
1075
  var F = E[n.name], k = F.forages;
1076
1076
  R.close();
1077
1077
  for (var q = 0; q < k.length; q++) {
1078
- var Z = k[q];
1079
- Z._dbInfo.db = null, Z._dbInfo.version = B;
1078
+ var J = k[q];
1079
+ J._dbInfo.db = null, J._dbInfo.version = B;
1080
1080
  }
1081
- var ee = new d(function(re, ie) {
1082
- var le = _.open(n.name, B);
1083
- le.onerror = function(ye) {
1084
- var ze = le.result;
1085
- ze.close(), ie(ye);
1086
- }, le.onupgradeneeded = function() {
1087
- var ye = le.result;
1088
- ye.deleteObjectStore(n.storeName);
1089
- }, le.onsuccess = function() {
1090
- var ye = le.result;
1091
- ye.close(), re(ye);
1081
+ var p = new d(function(te, fe) {
1082
+ var ae = _.open(n.name, B);
1083
+ ae.onerror = function(we) {
1084
+ var Ye = ae.result;
1085
+ Ye.close(), fe(we);
1086
+ }, ae.onupgradeneeded = function() {
1087
+ var we = ae.result;
1088
+ we.deleteObjectStore(n.storeName);
1089
+ }, ae.onsuccess = function() {
1090
+ var we = ae.result;
1091
+ we.close(), te(we);
1092
1092
  };
1093
1093
  });
1094
- return ee.then(function(re) {
1095
- F.db = re;
1096
- for (var ie = 0; ie < k.length; ie++) {
1097
- var le = k[ie];
1098
- le._dbInfo.db = re, A(le._dbInfo);
1094
+ return p.then(function(te) {
1095
+ F.db = te;
1096
+ for (var fe = 0; fe < k.length; fe++) {
1097
+ var ae = k[fe];
1098
+ ae._dbInfo.db = te, A(ae._dbInfo);
1099
1099
  }
1100
- }).catch(function(re) {
1101
- throw (J(n, re) || d.resolve()).catch(function() {
1102
- }), re;
1100
+ }).catch(function(te) {
1101
+ throw (j(n, te) || d.resolve()).catch(function() {
1102
+ }), te;
1103
1103
  });
1104
1104
  }
1105
1105
  }) : v = C.then(function(R) {
@@ -1110,27 +1110,27 @@ var nt = { exports: {} };
1110
1110
  var q = F[k];
1111
1111
  q._dbInfo.db = null;
1112
1112
  }
1113
- var Z = new d(function(ee, re) {
1114
- var ie = _.deleteDatabase(n.name);
1115
- ie.onerror = function() {
1116
- var le = ie.result;
1117
- le && le.close(), re(ie.error);
1118
- }, ie.onblocked = function() {
1113
+ var J = new d(function(p, te) {
1114
+ var fe = _.deleteDatabase(n.name);
1115
+ fe.onerror = function() {
1116
+ var ae = fe.result;
1117
+ ae && ae.close(), te(fe.error);
1118
+ }, fe.onblocked = function() {
1119
1119
  console.warn('dropInstance blocked for database "' + n.name + '" until all open connections are closed');
1120
- }, ie.onsuccess = function() {
1121
- var le = ie.result;
1122
- le && le.close(), ee(le);
1120
+ }, fe.onsuccess = function() {
1121
+ var ae = fe.result;
1122
+ ae && ae.close(), p(ae);
1123
1123
  };
1124
1124
  });
1125
- return Z.then(function(ee) {
1126
- B.db = ee;
1127
- for (var re = 0; re < F.length; re++) {
1128
- var ie = F[re];
1129
- A(ie._dbInfo);
1125
+ return J.then(function(p) {
1126
+ B.db = p;
1127
+ for (var te = 0; te < F.length; te++) {
1128
+ var fe = F[te];
1129
+ A(fe._dbInfo);
1130
1130
  }
1131
- }).catch(function(ee) {
1132
- throw (J(n, ee) || d.resolve()).catch(function() {
1133
- }), ee;
1131
+ }).catch(function(p) {
1132
+ throw (j(n, p) || d.resolve()).catch(function() {
1133
+ }), p;
1134
1134
  });
1135
1135
  });
1136
1136
  }
@@ -1138,46 +1138,46 @@ var nt = { exports: {} };
1138
1138
  }
1139
1139
  var lr = {
1140
1140
  _driver: "asyncStorage",
1141
- _initStorage: se,
1141
+ _initStorage: ce,
1142
1142
  _support: N(),
1143
- iterate: Ee,
1144
- getItem: fe,
1145
- setItem: $e,
1146
- removeItem: Ce,
1147
- clear: rr,
1143
+ iterate: ge,
1144
+ getItem: se,
1145
+ setItem: Be,
1146
+ removeItem: $e,
1147
+ clear: Fe,
1148
1148
  length: tr,
1149
1149
  key: nr,
1150
- keys: Pe,
1150
+ keys: Ce,
1151
1151
  dropInstance: ar
1152
1152
  };
1153
1153
  function ur() {
1154
1154
  return typeof openDatabase == "function";
1155
1155
  }
1156
- var be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ir = "~~local_forage_type~", Ze = /^~~local_forage_type~([^~]+)~/, Fe = "__lfsc__:", Ne = Fe.length, We = "arbf", Ie = "blob", Je = "si08", je = "ui08", qe = "uic8", He = "si16", U = "si32", j = "ur16", V = "ui32", p = "fl32", de = "fl64", ge = Ne + We.length, De = Object.prototype.toString;
1157
- function Se(n) {
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
+ function Ae(n) {
1158
1158
  var c = n.length * 0.75, a = n.length, m, v = 0, o, C, 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 = be.indexOf(n[m]), C = be.indexOf(n[m + 1]), R = be.indexOf(n[m + 2]), B = be.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]), 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;
1163
1163
  return F;
1164
1164
  }
1165
1165
  function oe(n) {
1166
1166
  var c = new Uint8Array(n), a = "", m;
1167
1167
  for (m = 0; m < c.length; m += 3)
1168
- a += be[c[m] >> 2], a += be[(c[m] & 3) << 4 | c[m + 1] >> 4], a += be[(c[m + 1] & 15) << 2 | c[m + 2] >> 6], a += be[c[m + 2] & 63];
1168
+ a += Se[c[m] >> 2], a += Se[(c[m] & 3) << 4 | c[m + 1] >> 4], a += Se[(c[m + 1] & 15) << 2 | c[m + 2] >> 6], a += Se[c[m + 2] & 63];
1169
1169
  return c.length % 3 === 2 ? a = a.substring(0, a.length - 1) + "=" : c.length % 3 === 1 && (a = a.substring(0, a.length - 2) + "=="), a;
1170
1170
  }
1171
- function Me(n, c) {
1171
+ function Ne(n, c) {
1172
1172
  var a = "";
1173
1173
  if (n && (a = De.call(n)), n && (a === "[object ArrayBuffer]" || n.buffer && De.call(n.buffer) === "[object ArrayBuffer]")) {
1174
- var m, v = Fe;
1175
- n instanceof ArrayBuffer ? (m = n, v += We) : (m = n.buffer, a === "[object Int8Array]" ? v += Je : a === "[object Uint8Array]" ? v += je : a === "[object Uint8ClampedArray]" ? v += qe : a === "[object Int16Array]" ? v += He : a === "[object Uint16Array]" ? v += j : a === "[object Int32Array]" ? v += U : a === "[object Uint32Array]" ? v += V : a === "[object Float32Array]" ? v += p : a === "[object Float64Array]" ? v += de : c(new Error("Failed to get type for BinaryArray"))), c(v + oe(m));
1174
+ var m, v = ke;
1175
+ n instanceof ArrayBuffer ? (m = n, v += qe) : (m = n.buffer, a === "[object Int8Array]" ? v += je : a === "[object Uint8Array]" ? v += Ke : a === "[object Uint8ClampedArray]" ? v += He : a === "[object Int16Array]" ? v += Ve : a === "[object Uint16Array]" ? v += K : a === "[object Int32Array]" ? v += U : a === "[object Uint32Array]" ? v += V : a === "[object Float32Array]" ? v += O : a === "[object Float64Array]" ? v += de : c(new Error("Failed to get type for BinaryArray"))), c(v + oe(m));
1176
1176
  } else if (a === "[object Blob]") {
1177
1177
  var o = new FileReader();
1178
1178
  o.onload = function() {
1179
1179
  var C = ir + n.type + "~" + oe(this.result);
1180
- c(Fe + Ie + C);
1180
+ c(ke + Ie + C);
1181
1181
  }, o.readAsArrayBuffer(n);
1182
1182
  } else
1183
1183
  try {
@@ -1187,34 +1187,34 @@ var nt = { exports: {} };
1187
1187
  }
1188
1188
  }
1189
1189
  function ct(n) {
1190
- if (n.substring(0, Ne) !== Fe)
1190
+ if (n.substring(0, Pe) !== ke)
1191
1191
  return JSON.parse(n);
1192
- var c = n.substring(ge), a = n.substring(Ne, ge), m;
1193
- if (a === Ie && Ze.test(c)) {
1194
- var v = c.match(Ze);
1192
+ var c = n.substring(ye), a = n.substring(Pe, ye), m;
1193
+ if (a === Ie && Je.test(c)) {
1194
+ var v = c.match(Je);
1195
1195
  m = v[1], c = c.substring(v[0].length);
1196
1196
  }
1197
- var o = Se(c);
1197
+ var o = Ae(c);
1198
1198
  switch (a) {
1199
- case We:
1199
+ case qe:
1200
1200
  return o;
1201
1201
  case Ie:
1202
1202
  return $([o], { type: m });
1203
- case Je:
1204
- return new Int8Array(o);
1205
1203
  case je:
1204
+ return new Int8Array(o);
1205
+ case Ke:
1206
1206
  return new Uint8Array(o);
1207
- case qe:
1208
- return new Uint8ClampedArray(o);
1209
1207
  case He:
1208
+ return new Uint8ClampedArray(o);
1209
+ case Ve:
1210
1210
  return new Int16Array(o);
1211
- case j:
1211
+ case K:
1212
1212
  return new Uint16Array(o);
1213
1213
  case U:
1214
1214
  return new Int32Array(o);
1215
1215
  case V:
1216
1216
  return new Uint32Array(o);
1217
- case p:
1217
+ case O:
1218
1218
  return new Float32Array(o);
1219
1219
  case de:
1220
1220
  return new Float64Array(o);
@@ -1223,9 +1223,9 @@ var nt = { exports: {} };
1223
1223
  }
1224
1224
  }
1225
1225
  var cr = {
1226
- serialize: Me,
1226
+ serialize: Ne,
1227
1227
  deserialize: ct,
1228
- stringToBuffer: Se,
1228
+ stringToBuffer: Ae,
1229
1229
  bufferToString: oe
1230
1230
  };
1231
1231
  function Rr(n, c, a, m) {
@@ -1287,10 +1287,10 @@ var nt = { exports: {} };
1287
1287
  var C = a._dbInfo;
1288
1288
  C.db.transaction(function(R) {
1289
1289
  xe(R, C, "SELECT * FROM " + C.storeName, [], function(B, F) {
1290
- for (var k = F.rows, q = k.length, Z = 0; Z < q; Z++) {
1291
- var ee = k.item(Z), re = ee.value;
1292
- if (re && (re = C.serializer.deserialize(re)), re = n(re, ee.key, Z + 1), re !== void 0) {
1293
- v(re);
1290
+ for (var k = F.rows, q = k.length, J = 0; J < q; J++) {
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) {
1293
+ v(te);
1294
1294
  return;
1295
1295
  }
1296
1296
  }
@@ -1311,19 +1311,19 @@ var nt = { exports: {} };
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
- q ? R(q) : F.db.transaction(function(Z) {
1315
- xe(Z, F, "INSERT OR REPLACE INTO " + F.storeName + " (key, value) VALUES (?, ?)", [n, k], function() {
1314
+ q ? R(q) : F.db.transaction(function(J) {
1315
+ xe(J, F, "INSERT OR REPLACE INTO " + F.storeName + " (key, value) VALUES (?, ?)", [n, k], function() {
1316
1316
  C(B);
1317
- }, function(ee, re) {
1318
- R(re);
1317
+ }, function(p, te) {
1318
+ R(te);
1319
1319
  });
1320
- }, function(Z) {
1321
- if (Z.code === Z.QUOTA_ERR) {
1320
+ }, function(J) {
1321
+ if (J.code === J.QUOTA_ERR) {
1322
1322
  if (m > 0) {
1323
1323
  C(Ur.apply(v, [n, B, a, m - 1]));
1324
1324
  return;
1325
1325
  }
1326
- R(Z);
1326
+ R(J);
1327
1327
  }
1328
1328
  });
1329
1329
  });
@@ -1447,21 +1447,21 @@ var nt = { exports: {} };
1447
1447
  }).then(function(o) {
1448
1448
  return new d(function(C, R) {
1449
1449
  o.db.transaction(function(B) {
1450
- function F(ee) {
1451
- return new d(function(re, ie) {
1452
- B.executeSql("DROP TABLE IF EXISTS " + ee, [], function() {
1453
- re();
1454
- }, function(le, ye) {
1455
- ie(ye);
1450
+ function F(p) {
1451
+ return new d(function(te, fe) {
1452
+ B.executeSql("DROP TABLE IF EXISTS " + p, [], function() {
1453
+ te();
1454
+ }, function(ae, we) {
1455
+ fe(we);
1456
1456
  });
1457
1457
  });
1458
1458
  }
1459
- for (var k = [], q = 0, Z = o.storeNames.length; q < Z; q++)
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
1462
  C();
1463
- }).catch(function(ee) {
1464
- R(ee);
1463
+ }).catch(function(p) {
1464
+ R(p);
1465
1465
  });
1466
1466
  }, function(B) {
1467
1467
  R(B);
@@ -1642,11 +1642,11 @@ var nt = { exports: {} };
1642
1642
  return !1;
1643
1643
  }, $r = Array.isArray || function(n) {
1644
1644
  return Object.prototype.toString.call(n) === "[object Array]";
1645
- }, Ve = {}, Fr = {}, ke = {
1645
+ }, ze = {}, Fr = {}, Ge = {
1646
1646
  INDEXEDDB: lr,
1647
1647
  WEBSQL: St,
1648
1648
  LOCALSTORAGE: Ut
1649
- }, Ft = [ke.INDEXEDDB._driver, ke.WEBSQL._driver, ke.LOCALSTORAGE._driver], Ke = ["dropInstance"], fr = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Ke), kt = {
1649
+ }, Ft = [Ge.INDEXEDDB._driver, Ge.WEBSQL._driver, Ge.LOCALSTORAGE._driver], Qe = ["dropInstance"], fr = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Qe), kt = {
1650
1650
  description: "",
1651
1651
  driver: Ft.slice(),
1652
1652
  name: "localforage",
@@ -1676,10 +1676,10 @@ var nt = { exports: {} };
1676
1676
  var Wt = function() {
1677
1677
  function n(c) {
1678
1678
  x(this, n);
1679
- for (var a in ke)
1680
- if (ke.hasOwnProperty(a)) {
1681
- var m = ke[a], v = m._driver;
1682
- this[a] = v, Ve[v] || this.defineDriver(m);
1679
+ for (var a in Ge)
1680
+ if (Ge.hasOwnProperty(a)) {
1681
+ var m = Ge[a], v = m._driver;
1682
+ this[a] = v, ze[v] || this.defineDriver(m);
1683
1683
  }
1684
1684
  this._defaultConfig = sr({}, kt), this._config = sr({}, this._defaultConfig, c), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
1685
1685
  });
@@ -1704,38 +1704,38 @@ var nt = { exports: {} };
1704
1704
  R(F);
1705
1705
  return;
1706
1706
  }
1707
- for (var k = fr.concat("_initStorage"), q = 0, Z = k.length; q < Z; q++) {
1708
- var ee = k[q], re = !$t(Ke, ee);
1709
- if ((re || a[ee]) && typeof a[ee] != "function") {
1707
+ for (var k = fr.concat("_initStorage"), q = 0, J = k.length; q < J; q++) {
1708
+ var p = k[q], te = !$t(Qe, p);
1709
+ if ((te || a[p]) && typeof a[p] != "function") {
1710
1710
  R(F);
1711
1711
  return;
1712
1712
  }
1713
1713
  }
1714
- var ie = function() {
1715
- for (var ze = function(Vt) {
1714
+ var fe = function() {
1715
+ for (var Ye = function(Vt) {
1716
1716
  return function() {
1717
1717
  var zt = new Error("Method " + Vt + " is not implemented by the current driver"), kr = d.reject(zt);
1718
1718
  return h(kr, arguments[arguments.length - 1]), kr;
1719
1719
  };
1720
- }, or = 0, Ht = Ke.length; or < Ht; or++) {
1721
- var dr = Ke[or];
1722
- a[dr] || (a[dr] = ze(dr));
1720
+ }, or = 0, Ht = Qe.length; or < Ht; or++) {
1721
+ var dr = Qe[or];
1722
+ a[dr] || (a[dr] = Ye(dr));
1723
1723
  }
1724
1724
  };
1725
- ie();
1726
- var le = function(ze) {
1727
- Ve[B] && console.info("Redefining LocalForage driver: " + B), Ve[B] = a, Fr[B] = ze, C();
1725
+ fe();
1726
+ var ae = function(Ye) {
1727
+ ze[B] && console.info("Redefining LocalForage driver: " + B), ze[B] = a, Fr[B] = Ye, C();
1728
1728
  };
1729
- "_support" in a ? a._support && typeof a._support == "function" ? a._support().then(le, R) : le(!!a._support) : le(!0);
1730
- } catch (ye) {
1731
- R(ye);
1729
+ "_support" in a ? a._support && typeof a._support == "function" ? a._support().then(ae, R) : ae(!!a._support) : ae(!0);
1730
+ } catch (we) {
1731
+ R(we);
1732
1732
  }
1733
1733
  });
1734
1734
  return u(o, m, v), o;
1735
1735
  }, n.prototype.driver = function() {
1736
1736
  return this._driver || null;
1737
1737
  }, n.prototype.getDriver = function(a, m, v) {
1738
- var o = Ve[a] ? d.resolve(Ve[a]) : d.reject(new Error("Driver not found."));
1738
+ var o = ze[a] ? d.resolve(ze[a]) : d.reject(new Error("Driver not found."));
1739
1739
  return u(o, m, v), o;
1740
1740
  }, n.prototype.getSerializer = function(a) {
1741
1741
  var m = d.resolve(cr);
@@ -1757,17 +1757,17 @@ var nt = { exports: {} };
1757
1757
  }
1758
1758
  function F(q) {
1759
1759
  return function() {
1760
- var Z = 0;
1761
- function ee() {
1762
- for (; Z < q.length; ) {
1763
- var re = q[Z];
1764
- return Z++, o._dbInfo = null, o._ready = null, o.getDriver(re).then(B).catch(ee);
1760
+ var J = 0;
1761
+ function p() {
1762
+ for (; J < q.length; ) {
1763
+ var te = q[J];
1764
+ return J++, o._dbInfo = null, o._ready = null, o.getDriver(te).then(B).catch(p);
1765
1765
  }
1766
1766
  R();
1767
- var ie = new Error("No available storage method found.");
1768
- return o._driverSet = d.reject(ie), o._driverSet;
1767
+ var fe = new Error("No available storage method found.");
1768
+ return o._driverSet = d.reject(fe), o._driverSet;
1769
1769
  }
1770
- return ee();
1770
+ return p();
1771
1771
  };
1772
1772
  }
1773
1773
  var k = this._driverSet !== null ? this._driverSet.catch(function() {
@@ -1775,8 +1775,8 @@ var nt = { exports: {} };
1775
1775
  }) : d.resolve();
1776
1776
  return this._driverSet = k.then(function() {
1777
1777
  var q = C[0];
1778
- return o._dbInfo = null, o._ready = null, o.getDriver(q).then(function(Z) {
1779
- o._driver = Z._driver, R(), o._wrapLibraryMethodsWithReady(), o._initDriver = F(C);
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);
1780
1780
  });
1781
1781
  }).catch(function() {
1782
1782
  R();
@@ -1806,35 +1806,35 @@ var nt = { exports: {} };
1806
1806
  })(nt);
1807
1807
  var vn = nt.exports;
1808
1808
  const at = /* @__PURE__ */ rn(vn);
1809
- let ue;
1809
+ let le;
1810
1810
  function lt() {
1811
- const e = ue == null ? void 0 : ue.getEnv();
1812
- return ue == null ? e : (ue[e] ?? ue.development).localDbName ?? e;
1811
+ const e = le == null ? void 0 : le.getEnv();
1812
+ return le == null ? e : (le[e] ?? le.development).localDbName ?? e;
1813
1813
  }
1814
1814
  function Wr() {
1815
- const e = ue == null ? void 0 : ue.getEnv();
1816
- return console.log(`env var: ${e}`), ue == null ? "" : (ue[e] ?? ue.development).auth ?? "";
1815
+ const e = le == null ? void 0 : le.getEnv();
1816
+ return console.log(`env var: ${e}`), le == null ? "" : (le[e] ?? le.development).auth ?? "";
1817
1817
  }
1818
1818
  function gn(e) {
1819
- const t = ue == null ? void 0 : ue.getEnv();
1820
- if (ue == null)
1819
+ const t = le == null ? void 0 : le.getEnv();
1820
+ if (le == null)
1821
1821
  return "";
1822
- const l = ue[t] ?? ue.development;
1822
+ const l = le[t] ?? le.development;
1823
1823
  return e == null ? l.data ?? "" : l.other[e] ?? l.data ?? "";
1824
1824
  }
1825
1825
  function ha() {
1826
- return ue;
1826
+ return le;
1827
1827
  }
1828
1828
  function yn(e) {
1829
- return ue = e, ue;
1829
+ return le = e, le;
1830
1830
  }
1831
- let Oe = null;
1831
+ let pe = null;
1832
1832
  at.config({
1833
1833
  name: lt()
1834
1834
  });
1835
1835
  function ve() {
1836
1836
  const e = lt();
1837
- return (Oe == null || Oe.config.name != e) && (Oe = at.createInstance({ name: e })), Oe;
1837
+ return (pe == null || pe.config.name != e) && (pe = at.createInstance({ name: e })), pe;
1838
1838
  }
1839
1839
  function ma() {
1840
1840
  async function e(s) {
@@ -1859,18 +1859,18 @@ function ma() {
1859
1859
  saveAsync: S
1860
1860
  };
1861
1861
  }
1862
- let er;
1862
+ let rr;
1863
1863
  function va(e) {
1864
- return er(e)();
1864
+ return rr(e)();
1865
1865
  }
1866
- function Le(e) {
1867
- return er(e);
1866
+ function Me(e) {
1867
+ return rr(e);
1868
1868
  }
1869
1869
  function wn(e) {
1870
- return er = (t) => bn({
1870
+ return rr = (t) => bn({
1871
1871
  ...e,
1872
1872
  ...t
1873
- }), er;
1873
+ }), rr;
1874
1874
  }
1875
1875
  function bn(e) {
1876
1876
  var t, l, S, s, g;
@@ -1888,11 +1888,11 @@ function bn(e) {
1888
1888
  return An({ ...e, storeName: e.storeName ?? "" });
1889
1889
  }
1890
1890
  const Sn = (e) => {
1891
- let t = K(e.url) ?? void 0;
1892
- if (e.additionalUrl != null && (t == null ? t = e.additionalUrl : t = Be(t, e.additionalUrl)), e.id != null && (t != null && t.includes("{id}") ? t = t.replaceAll("{id}", e.id) : t = Be(t, e.id)), e.params != null) {
1891
+ let t = Q(e.url) ?? void 0;
1892
+ if (e.additionalUrl != null && (t == null ? t = e.additionalUrl : t = Ue(t, e.additionalUrl)), e.id != null && (t != null && t.includes("{id}") ? t = t.replaceAll("{id}", e.id) : t = Ue(t, e.id)), e.params != null) {
1893
1893
  t ?? (t = "");
1894
1894
  let l = new URLSearchParams();
1895
- Object.entries(e.params).sort(Ue.firstBy((s) => s[0])).forEach((s) => {
1895
+ Object.entries(e.params).sort(Re.firstBy((s) => s[0])).forEach((s) => {
1896
1896
  s[1] != null && l.append(s[0], s[1].toString());
1897
1897
  }), t = `${t}?${l.toString()}`;
1898
1898
  }
@@ -1906,7 +1906,7 @@ function An(e) {
1906
1906
  var i, E;
1907
1907
  let y = "";
1908
1908
  const I = r.params ?? {};
1909
- return I != null && (y = Object.entries(I).sort(Ue.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"}`;
1909
+ return I != null && (y = Object.entries(I).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"}`;
1910
1910
  }
1911
1911
  async function P(r) {
1912
1912
  r.additionalUrl ?? (r.additionalUrl = "/getAll"), g(r);
@@ -2109,9 +2109,9 @@ function qr(e) {
2109
2109
  }
2110
2110
  }));
2111
2111
  D == null ? M(D) : (t.value ?? (t.value = []), D.data.forEach((L) => {
2112
- var A, J;
2113
- const f = t.value.findIndex((Q) => Q.id == L.id);
2114
- f >= 0 ? (A = t.value) == null || A.splice(f, 1, L) : (J = t.value) == null || J.push(L);
2112
+ var A, j;
2113
+ const f = t.value.findIndex((X) => X.id == L.id);
2114
+ f >= 0 ? (A = t.value) == null || A.splice(f, 1, L) : (j = t.value) == null || j.push(L);
2115
2115
  }), l.value = t.value.length, g.value = {
2116
2116
  lastUpdate: he.utc().toString(),
2117
2117
  storedOn: S.toString()
@@ -2170,7 +2170,7 @@ function qr(e) {
2170
2170
  const f = await ve().getItem(E);
2171
2171
  if (f != null && parseFloat(f.meta.storedOn) > S - 12) {
2172
2172
  t.value = f.data, l.value = f.data.length, s.value = f.filters ?? [], g.value = f.meta;
2173
- let A = (T = t.value) == null ? void 0 : T.find((J) => J.id == i.id);
2173
+ let A = (T = t.value) == null ? void 0 : T.find((j) => j.id == i.id);
2174
2174
  if (A != null)
2175
2175
  return { data: A };
2176
2176
  }
@@ -2282,8 +2282,8 @@ function En(e) {
2282
2282
  }), r.toString();
2283
2283
  }
2284
2284
  function x(u) {
2285
- let r = K(u.url) ?? void 0, y = K(u.id);
2286
- return r == null && (e == null ? void 0 : e.findPath) != null && (r = e.findPath(u.nav)), u.additionalUrl != null && (r == null ? r = u.additionalUrl : r = Be(r, u.additionalUrl)), y != null && (r != null && r.includes("{id}") ? r = r.replaceAll("{id}", y) : r = Be(r, y)), u.params != null && (r = `${r}?${l(u.params)}`), u.finalUrl = r, u.finalUrl ?? "";
2285
+ let r = Q(u.url) ?? void 0, y = Q(u.id);
2286
+ 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 ?? "";
2287
2287
  }
2288
2288
  function P(u) {
2289
2289
  var y, I;
@@ -2477,7 +2477,7 @@ function ut(e) {
2477
2477
  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);
2478
2478
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2479
2479
  const I = (e == null ? void 0 : e.items) ?? [];
2480
- return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onDeleteAsync ?? (r.onDeleteAsync = () => y().deleteItem(r)) : r.onDeleteAsync ?? (r.onDeleteAsync = () => {
2480
+ return y == null && r.nav != null && (y = Me({ nav: r.nav })), y != null ? r.onDeleteAsync ?? (r.onDeleteAsync = () => y().deleteItem(r)) : r.onDeleteAsync ?? (r.onDeleteAsync = () => {
2481
2481
  var w;
2482
2482
  const i = r.id ?? ((w = r.data) == null ? void 0 : w.id);
2483
2483
  if (i == null)
@@ -2500,7 +2500,7 @@ function ut(e) {
2500
2500
  r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to get this item?" : void 0);
2501
2501
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2502
2502
  const I = (e == null ? void 0 : e.items) ?? [];
2503
- return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onGetAsync ?? (r.onGetAsync = async () => (await y().get(r)).data) : r.onGetAsync ?? (r.onGetAsync = () => {
2503
+ return y == null && r.nav != null && (y = Me({ nav: r.nav })), y != null ? r.onGetAsync ?? (r.onGetAsync = async () => (await y().get(r)).data) : r.onGetAsync ?? (r.onGetAsync = () => {
2504
2504
  var E;
2505
2505
  const i = r.id ?? ((E = r.data) == null ? void 0 : E.id);
2506
2506
  return i == null ? Promise.resolve(void 0) : Promise.resolve(I.find((w) => w.id == i));
@@ -2520,7 +2520,7 @@ function ut(e) {
2520
2520
  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);
2521
2521
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2522
2522
  const I = (e == null ? void 0 : e.items) ?? [];
2523
- return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onGetAsync ?? (r.onGetAsync = () => y().getAll(r)) : r.onGetAsync ?? (r.onGetAsync = () => Promise.resolve(I)), g(async () => {
2523
+ return y == null && r.nav != null && (y = Me({ nav: r.nav })), y != null ? r.onGetAsync ?? (r.onGetAsync = () => y().getAll(r)) : r.onGetAsync ?? (r.onGetAsync = () => Promise.resolve(I)), g(async () => {
2524
2524
  let i;
2525
2525
  return r.onGetAsync != null && (i = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (i = await r.onGetSuccessAsync(i, r)), i;
2526
2526
  }, {
@@ -2535,7 +2535,7 @@ function ut(e) {
2535
2535
  function $(r) {
2536
2536
  r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to restore this item?" : void 0);
2537
2537
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2538
- return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null && (r.onRestoreAsync ?? (r.onRestoreAsync = () => y().restore(r))), g(async () => {
2538
+ return y == null && r.nav != null && (y = Me({ nav: r.nav })), y != null && (r.onRestoreAsync ?? (r.onRestoreAsync = () => y().restore(r))), g(async () => {
2539
2539
  let I, i;
2540
2540
  return r.onCanRestoreAsync != null && (I = await r.onCanRestoreAsync(r.data)), I == null && r.onRestoreAsync != null && (i = await r.onRestoreAsync(r.data)), i != null && r.onRestoreSuccessAsync != null && await r.onRestoreSuccessAsync(i), x(I), i;
2541
2541
  }, {
@@ -2551,7 +2551,7 @@ function ut(e) {
2551
2551
  r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to save this item?" : void 0);
2552
2552
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2553
2553
  const I = (e == null ? void 0 : e.items) ?? [];
2554
- return r.onGetSaveAsync ?? (r.onGetSaveAsync = (i) => i), r.onCanSaveAsync ?? (r.onCanSaveAsync = () => Promise.resolve(void 0)), y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onSaveAsync ?? (r.onSaveAsync = async () => {
2554
+ return r.onGetSaveAsync ?? (r.onGetSaveAsync = (i) => i), r.onCanSaveAsync ?? (r.onCanSaveAsync = () => Promise.resolve(void 0)), y == null && r.nav != null && (y = Me({ nav: r.nav })), y != null ? r.onSaveAsync ?? (r.onSaveAsync = async () => {
2555
2555
  var i;
2556
2556
  return r.mode ?? (r.mode = ((i = r.data) == null ? void 0 : i.id) == null ? "new" : "edit"), r.mode == "new" ? await y().post(r) : await y().patch(r);
2557
2557
  }) : r.onSaveAsync ?? (r.onSaveAsync = (i) => {
@@ -2620,7 +2620,7 @@ function Dn(e) {
2620
2620
  return !1;
2621
2621
  if (L.requiresAuth === !1)
2622
2622
  return !0;
2623
- const f = K(s);
2623
+ const f = Q(s);
2624
2624
  if (f.isSuspended && L.ignoreSuspension !== !0)
2625
2625
  return !1;
2626
2626
  if (f.isGlobalAdmin)
@@ -2633,7 +2633,7 @@ function Dn(e) {
2633
2633
  return !0;
2634
2634
  }
2635
2635
  function x(D) {
2636
- const L = K(s);
2636
+ const L = Q(s);
2637
2637
  if (L.userPermissions != null)
2638
2638
  for (var f = 0; f < L.userPermissions.length; f++) {
2639
2639
  var A = L.userPermissions[f].split(".");
@@ -2650,7 +2650,7 @@ function Dn(e) {
2650
2650
  return !1;
2651
2651
  if (L.requiresAuth === !1)
2652
2652
  return !0;
2653
- const f = K(s);
2653
+ const f = Q(s);
2654
2654
  if (f.isSuspended && L.ignoreSuspension !== !0)
2655
2655
  return !1;
2656
2656
  if (f.isGlobalAdmin)
@@ -2663,7 +2663,7 @@ function Dn(e) {
2663
2663
  return !0;
2664
2664
  }
2665
2665
  function _(D) {
2666
- const L = K(s);
2666
+ const L = Q(s);
2667
2667
  if (L.userPermissions != null)
2668
2668
  for (var f = 0; f < L.userPermissions.length; f++) {
2669
2669
  var A = L.userPermissions[f].split(".");
@@ -2674,23 +2674,23 @@ function Dn(e) {
2674
2674
  }
2675
2675
  function N(D, L, f) {
2676
2676
  let A = !0;
2677
- return K(s).isGlobalAdmin ? !0 : (L != null && L.length > 0 && L.forEach((Q) => {
2678
- f == "edit" ? x(Q) || (A = !1) : _(Q) || (A = !1);
2679
- }), D != null && D.length > 0 && (D.some((Q) => u(Q)) || (A = !1)), A);
2677
+ return Q(s).isGlobalAdmin ? !0 : (L != null && L.length > 0 && L.forEach((X) => {
2678
+ f == "edit" ? x(X) || (A = !1) : _(X) || (A = !1);
2679
+ }), D != null && D.length > 0 && (D.some((X) => u(X)) || (A = !1)), A);
2680
2680
  }
2681
2681
  function $(D, L = !1) {
2682
2682
  var f = e.getAuthItem != null ? e.getAuthItem(D) : null;
2683
2683
  let A = !1;
2684
2684
  if (f == null)
2685
2685
  return !1;
2686
- let J = f.subscriptions ?? [], Q = f.permissions ?? [], O = N(J, Q, "view");
2687
- return O || !L || !_e(f.children) ? O : ((f == null ? void 0 : f.children) != null && f.children.forEach((ce) => {
2688
- $(ce, !0) && (A = !0);
2686
+ let j = f.subscriptions ?? [], X = f.permissions ?? [], re = N(j, X, "view");
2687
+ return re || !L || !_e(f.children) ? re : ((f == null ? void 0 : f.children) != null && f.children.forEach((ue) => {
2688
+ $(ue, !0) && (A = !0);
2689
2689
  }), A);
2690
2690
  }
2691
2691
  function d(D) {
2692
2692
  return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (L, f) => {
2693
- const A = Be(Wr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${f}`);
2693
+ const A = Ue(Wr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${f}`);
2694
2694
  return L ? `${A}&redirect_path=${L}` : A;
2695
2695
  }), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(D, l.value) ?? "" : "";
2696
2696
  }
@@ -2699,7 +2699,7 @@ function Dn(e) {
2699
2699
  return D == null ? 0 : ((f = (e.subscriptionOptions ?? []).find((A) => A.code == D)) == null ? void 0 : f.value) ?? 0;
2700
2700
  }
2701
2701
  function u(D) {
2702
- const L = K(s);
2702
+ const L = Q(s);
2703
2703
  if (L.subscriptionCode == null)
2704
2704
  return !1;
2705
2705
  if (L.subscriptionCode == D)
@@ -2709,8 +2709,8 @@ function Dn(e) {
2709
2709
  }
2710
2710
  function r(D) {
2711
2711
  const f = D.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), A = decodeURIComponent(
2712
- atob(f).split("").map(function(J) {
2713
- return "%" + ("00" + J.charCodeAt(0).toString(16)).slice(-2);
2712
+ atob(f).split("").map(function(j) {
2713
+ return "%" + ("00" + j.charCodeAt(0).toString(16)).slice(-2);
2714
2714
  }).join("")
2715
2715
  );
2716
2716
  return JSON.parse(A);
@@ -2720,24 +2720,24 @@ function Dn(e) {
2720
2720
  }
2721
2721
  function I(D) {
2722
2722
  var f;
2723
- K(s).isLoggedIn || ((f = e.demo) == null || f.endDemo(), T() && (y(), window.location.href = d(D)));
2723
+ Q(s).isLoggedIn || ((f = e.demo) == null || f.endDemo(), T() && (y(), window.location.href = d(D)));
2724
2724
  }
2725
2725
  async function i(D, L) {
2726
2726
  return e.getToken ?? (e.getToken = async () => {
2727
- let f = D, A = L, J = e.oauthGrantType ?? "authorization_token", Q = e.oauthClientID ?? "";
2727
+ let f = D, A = L, j = e.oauthGrantType ?? "authorization_token", X = e.oauthClientID ?? "";
2728
2728
  if (f == null || A == null)
2729
2729
  throw new Error("Code and State required in OAuth token process");
2730
2730
  if (A != l.value)
2731
2731
  throw new Error("state does not match");
2732
- let O = "";
2733
- e.getTokenUrl ?? (e.getTokenUrl = () => Be(Wr(), "token")), O = e.getTokenUrl(f, `${window.location.origin}/authentication`, J, Q);
2734
- const ce = {};
2735
- ce.grant_type = J, ce.code = f, ce.redirect_uri = `${window.location.origin}/authentication`, ce.client_id = Q;
2736
- const W = await Er().post({
2737
- additionalUrl: O,
2738
- data: ce
2732
+ let re = "";
2733
+ e.getTokenUrl ?? (e.getTokenUrl = () => Ue(Wr(), "token")), re = e.getTokenUrl(f, `${window.location.origin}/authentication`, j, X);
2734
+ const ue = {};
2735
+ ue.grant_type = j, ue.code = f, ue.redirect_uri = `${window.location.origin}/authentication`, ue.client_id = X;
2736
+ const G = await Er().post({
2737
+ additionalUrl: re,
2738
+ data: ue
2739
2739
  });
2740
- E(W.access_token);
2740
+ E(G.access_token);
2741
2741
  }), await e.getToken(D, L);
2742
2742
  }
2743
2743
  function E(D) {
@@ -2756,11 +2756,11 @@ function Dn(e) {
2756
2756
  s.value ?? (s.value = {}), (D = s.value).timeZone ?? (D.timeZone = e.defaultTimeZone ?? hr);
2757
2757
  }
2758
2758
  function b() {
2759
- const D = K(s);
2759
+ const D = Q(s);
2760
2760
  return D.isLoggedIn && T() && (y(), window.location.href = d()), D.isLoggedIn;
2761
2761
  }
2762
2762
  function T() {
2763
- const D = K(s);
2763
+ const D = Q(s);
2764
2764
  if (D == null || D.expiresOn == null)
2765
2765
  return !0;
2766
2766
  const L = he.fromFormat(D.expiresOn, t), f = he.utc();
@@ -2777,12 +2777,12 @@ function Dn(e) {
2777
2777
  doShowByNav: $,
2778
2778
  getAuthorizeUrl: d,
2779
2779
  getToken: i,
2780
- isLoggedIn: te(() => s.value.isLoggedIn === !0),
2780
+ isLoggedIn: ee(() => s.value.isLoggedIn === !0),
2781
2781
  login: I,
2782
2782
  logout: y,
2783
2783
  resetAuthState: S,
2784
2784
  setAuth: E,
2785
- timeZone: te(() => s.value.timeZone ?? e.defaultTimeZone ?? hr),
2785
+ timeZone: ee(() => s.value.timeZone ?? e.defaultTimeZone ?? hr),
2786
2786
  tryLogin: b
2787
2787
  }, Ir;
2788
2788
  }
@@ -2794,11 +2794,11 @@ function xn(e, t, l = {}) {
2794
2794
  } = l, x = { capture: l.capture ?? !0 };
2795
2795
  let P = { x: 0, y: 0 }, _ = { x: 0, y: 0 }, N = { x: 0, y: 0 }, $ = [], d = [], h = z(!1);
2796
2796
  function u(M) {
2797
- K(S) && M.preventDefault(), K(s) && M.stopPropagation();
2797
+ Q(S) && M.preventDefault(), Q(s) && M.stopPropagation();
2798
2798
  }
2799
2799
  function r(M) {
2800
2800
  var f;
2801
- const b = K(e);
2801
+ const b = Q(e);
2802
2802
  if (!b)
2803
2803
  return;
2804
2804
  const T = b.$el, L = M.type === "touchstart" && M.touches.length > 0 ? M.touches[0] : M;
@@ -2812,7 +2812,7 @@ function xn(e, t, l = {}) {
2812
2812
  }
2813
2813
  function y(M) {
2814
2814
  var A;
2815
- if (!N || !K(e))
2815
+ if (!N || !Q(e))
2816
2816
  return;
2817
2817
  const D = M.type === "touchmove" && M.touches.length > 0 ? M.touches[0] : M;
2818
2818
  let L = D.clientX - N.x, f = D.clientY - N.y;
@@ -2825,25 +2825,25 @@ function xn(e, t, l = {}) {
2825
2825
  }), d.length = 0, (b = l.onEnd) == null || b.call(l, P, M), u(M);
2826
2826
  }
2827
2827
  function i(M) {
2828
- const b = K(e);
2828
+ const b = Q(e);
2829
2829
  if (!b)
2830
2830
  return;
2831
2831
  const T = b.$el;
2832
2832
  T.style.left = `${M.x}px`, T.style.top = `${M.y}px`;
2833
2833
  }
2834
2834
  function E() {
2835
- if (K(h))
2835
+ if (Q(h))
2836
2836
  return;
2837
- const M = K(t);
2837
+ const M = Q(t);
2838
2838
  if (!M)
2839
2839
  return;
2840
2840
  const b = M.$el;
2841
2841
  b.style.cursor = "move", $.push(me(b, "mousedown", r, x)), $.push(me(b, "touchstart", r, x)), h.value = !0;
2842
2842
  }
2843
2843
  function w() {
2844
- if (!K(h))
2844
+ if (!Q(h))
2845
2845
  return;
2846
- const M = K(t);
2846
+ const M = Q(t);
2847
2847
  if (!M)
2848
2848
  return;
2849
2849
  const b = M.$el;
@@ -2864,148 +2864,148 @@ function _n(e, t = {}) {
2864
2864
  let r = [], y = [];
2865
2865
  const I = z(!1), i = z({ x: 0, y: 0 });
2866
2866
  let E = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, w = {};
2867
- function M(W) {
2868
- Ae(N) && W.preventDefault(), Ae($) && W.stopPropagation();
2867
+ function M(G) {
2868
+ Ee(N) && G.preventDefault(), Ee($) && G.stopPropagation();
2869
2869
  }
2870
- function b(W, Y) {
2871
- h = Y.map(D), h.forEach((H) => W.$el.appendChild(H));
2870
+ function b(G, Y) {
2871
+ h = Y.map(D), h.forEach((H) => G.$el.appendChild(H));
2872
2872
  }
2873
- function T(W) {
2874
- h.forEach((Y) => W.$el.removeChild(Y));
2873
+ function T(G) {
2874
+ h.forEach((Y) => G.$el.removeChild(Y));
2875
2875
  }
2876
- function D(W) {
2877
- const Y = S + "px", H = -S / 2 + "px", ae = s + 1, G = document.createElement("div");
2878
- return G.dataset.handle = W, G.style.position = "absolute", G.style.touchAction = "none", G.style.userSelect = "none", G.style.zIndex = (W.length === 1 ? s : ae).toString(), G.style.cursor = J(W), W.includes("t") && (G.style.top = H, G.style.height = Y, W === "t" && (G.style.left = "0", G.style.width = "100%")), W.includes("b") && (G.style.bottom = H, G.style.height = Y, W === "b" && (G.style.left = "0", G.style.width = "100%")), W.includes("r") && (G.style.right = H, G.style.width = Y, W === "r" && (G.style.top = "0", G.style.height = "100%")), W.includes("l") && (G.style.left = H, G.style.width = Y, W === "l" && (G.style.top = "0", G.style.height = "100%")), G;
2876
+ function D(G) {
2877
+ const Y = S + "px", H = -S / 2 + "px", ie = s + 1, Z = document.createElement("div");
2878
+ 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;
2879
2879
  }
2880
- function L(W) {
2880
+ function L(G) {
2881
2881
  var ne;
2882
- if (!h.some((se) => se == W.target))
2882
+ if (!h.some((ce) => ce == G.target))
2883
2883
  return;
2884
- const Y = Ae(e);
2884
+ const Y = Ee(e);
2885
2885
  if (!Y)
2886
2886
  return;
2887
- const H = Y.$el, G = W.type === "touchstart" && W.touches.length > 0 ? W.touches[0] : W;
2888
- if (i.value.x = G.clientX, i.value.y = G.clientY, E = {
2887
+ const H = Y.$el, Z = G.type === "touchstart" && G.touches.length > 0 ? G.touches[0] : G;
2888
+ if (i.value.x = Z.clientX, i.value.y = Z.clientY, E = {
2889
2889
  left: H.offsetLeft,
2890
2890
  top: H.offsetTop,
2891
2891
  height: parseInt(window.getComputedStyle(H).getPropertyValue("height")),
2892
2892
  width: parseInt(window.getComputedStyle(H).getPropertyValue("width"))
2893
- }, w = Lr(E), ((ne = t.onStart) == null ? void 0 : ne.call(t, i.value, W)) === !1)
2893
+ }, w = Lr(E), ((ne = t.onStart) == null ? void 0 : ne.call(t, i.value, G)) === !1)
2894
2894
  return;
2895
- let X = W.target;
2896
- document.documentElement.style.cursor = J(X.dataset.handle), d = X.dataset.handle, y.push(me("mousemove", f)), y.push(me("mouseup", A)), y.push(me("touchmove", f)), y.push(me("touchend", A)), M(W);
2895
+ let W = G.target;
2896
+ 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)), M(G);
2897
2897
  }
2898
- function f(W) {
2899
- const Y = Ae(e);
2898
+ function f(G) {
2899
+ const Y = Ee(e);
2900
2900
  if (!Y)
2901
2901
  return;
2902
- const H = Y.$el, G = W.type === "touchmove" && W.touches.length > 0 ? W.touches[0] : W;
2903
- let X = G.clientX - i.value.x, ne = G.clientY - i.value.y;
2904
- const se = Ae(E);
2902
+ const H = Y.$el, Z = G.type === "touchmove" && G.touches.length > 0 ? G.touches[0] : G;
2903
+ let W = Z.clientX - i.value.x, ne = Z.clientY - i.value.y;
2904
+ const ce = Ee(E);
2905
2905
  if (d.includes("t")) {
2906
- const fe = Math.min(_, Math.max(P, (se.height ?? 0) - ne));
2907
- w.height = fe, w.top = (se.top ?? 0) + ne;
2906
+ const se = Math.min(_, Math.max(P, (ce.height ?? 0) - ne));
2907
+ w.height = se, w.top = (ce.top ?? 0) + ne;
2908
2908
  }
2909
2909
  if (d.includes("b")) {
2910
- const fe = Math.min(_, Math.max(P, (se.height ?? 0) + ne));
2911
- w.height = fe;
2910
+ const se = Math.min(_, Math.max(P, (ce.height ?? 0) + ne));
2911
+ w.height = se;
2912
2912
  }
2913
2913
  if (d.includes("l")) {
2914
- const fe = Math.min(x, Math.max(g, (se.width ?? 0) - X));
2915
- w.width = fe, w.left = (se.left ?? 0) + X;
2914
+ const se = Math.min(x, Math.max(g, (ce.width ?? 0) - W));
2915
+ w.width = se, w.left = (ce.left ?? 0) + W;
2916
2916
  }
2917
2917
  if (d.includes("r")) {
2918
- const fe = Math.min(x, Math.max(g, (se.width ?? 0) + X));
2919
- w.width = fe;
2918
+ const se = Math.min(x, Math.max(g, (ce.width ?? 0) + W));
2919
+ w.width = se;
2920
2920
  }
2921
- H.dispatchEvent(new CustomEvent("resize")), M(W), O(w);
2921
+ H.dispatchEvent(new CustomEvent("resize")), M(G), re(w);
2922
2922
  }
2923
2923
  function A() {
2924
- document.documentElement.style.cursor = "", d = null, y.forEach((W) => {
2925
- W();
2924
+ document.documentElement.style.cursor = "", d = null, y.forEach((G) => {
2925
+ G();
2926
2926
  }), y.length = 0;
2927
2927
  }
2928
- function J(W) {
2928
+ function j(G) {
2929
2929
  const Y = {
2930
2930
  t: "n",
2931
2931
  r: "e",
2932
2932
  b: "s",
2933
2933
  l: "w"
2934
2934
  };
2935
- return W.split("").map((H) => Y[H]).join("") + "-resize";
2935
+ return G.split("").map((H) => Y[H]).join("") + "-resize";
2936
2936
  }
2937
- function Q(W) {
2938
- const Y = Ae(e);
2937
+ function X(G) {
2938
+ const Y = Ee(e);
2939
2939
  if (!Y)
2940
2940
  return;
2941
2941
  const H = Y.$el;
2942
- if (console.log(l), l !== "page" && W == "page") {
2943
- const ae = Jt(H), G = Ae(ae) ?? null;
2944
- let X = 0;
2945
- if (G != null) {
2946
- const ne = window.getComputedStyle(G);
2947
- X = parseInt(ne.getPropertyValue("width")) - G.offsetLeft;
2942
+ if (console.log(l), l !== "page" && G == "page") {
2943
+ const ie = Jt(H), Z = Ee(ie) ?? null;
2944
+ let W = 0;
2945
+ if (Z != null) {
2946
+ const ne = window.getComputedStyle(Z);
2947
+ W = parseInt(ne.getPropertyValue("width")) - Z.offsetLeft;
2948
2948
  }
2949
- H.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", H.offsetHeight, u.value = !0, O({
2949
+ H.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", H.offsetHeight, u.value = !0, re({
2950
2950
  height: void 0,
2951
- width: X,
2951
+ width: W,
2952
2952
  top: 0,
2953
2953
  left: 0,
2954
2954
  position: void 0
2955
2955
  }), me(H, "transitionend", () => {
2956
2956
  H.style.width = "auto", H.style.top = "", H.style.left = "", H.style.position = "", H.style.transition = "", u.value = !1;
2957
2957
  }, { once: !0 });
2958
- } else if ((l == "page" || Y.$el.style.position !== "absolute") && W !== "page") {
2958
+ } else if ((l == "page" || Y.$el.style.position !== "absolute") && G !== "page") {
2959
2959
  H.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", u.value = !0, E = {
2960
2960
  height: parseInt(window.getComputedStyle(H).getPropertyValue("height")),
2961
2961
  width: parseInt(window.getComputedStyle(H).getPropertyValue("width")),
2962
2962
  top: H.offsetTop,
2963
2963
  left: H.offsetLeft,
2964
2964
  position: "absolute"
2965
- }, O(E), H.offsetHeight;
2966
- const ae = E;
2967
- W == "freestyle" ? w = {
2968
- height: ae.height,
2969
- width: (ae.width ?? 100) / 2,
2970
- top: (ae.top ?? 0) + 2,
2971
- left: (ae.left ?? 0) + 2,
2965
+ }, re(E), H.offsetHeight;
2966
+ const ie = E;
2967
+ G == "freestyle" ? w = {
2968
+ height: ie.height,
2969
+ width: (ie.width ?? 100) / 2,
2970
+ top: (ie.top ?? 0) + 2,
2971
+ left: (ie.left ?? 0) + 2,
2972
2972
  position: "absolute"
2973
- } : W == "blade" && (w = {
2974
- height: ae.height,
2975
- width: (ae.width ?? 100) / 2,
2976
- top: (ae.top ?? 0) + 2,
2977
- left: (ae.left ?? 0) + 2,
2973
+ } : G == "blade" && (w = {
2974
+ height: ie.height,
2975
+ width: (ie.width ?? 100) / 2,
2976
+ top: (ie.top ?? 0) + 2,
2977
+ left: (ie.left ?? 0) + 2,
2978
2978
  position: "absolute"
2979
- }), O(w), me(H, "transitionend", () => {
2979
+ }), re(w), me(H, "transitionend", () => {
2980
2980
  H.style.transition = "", u.value = !1;
2981
2981
  }, { once: !0 });
2982
2982
  }
2983
2983
  }
2984
- function O(W) {
2985
- const Y = Ae(e);
2984
+ function re(G) {
2985
+ const Y = Ee(e);
2986
2986
  if (!Y)
2987
2987
  return;
2988
2988
  const H = Y.$el;
2989
- W.top ? H.style.top = `${W.top}px` : H.style.top = void 0, W.left ? H.style.left = `${W.left}px` : H.style.left = void 0, W.height ? H.style.height = `${W.height}px` : H.style.height = void 0, W.width ? H.style.width = `${W.width}px` : H.style.width = void 0, W.position ? H.style.position = `${W.position}` : H.style.position = void 0, console.log(H.style.position);
2989
+ G.top ? H.style.top = `${G.top}px` : H.style.top = void 0, G.left ? H.style.left = `${G.left}px` : H.style.left = void 0, G.height ? H.style.height = `${G.height}px` : H.style.height = void 0, G.width ? H.style.width = `${G.width}px` : H.style.width = void 0, G.position ? H.style.position = `${G.position}` : H.style.position = void 0, console.log(H.style.position);
2990
2990
  }
2991
- function ce(W, Y) {
2991
+ function ue(G, Y) {
2992
2992
  if (I.value)
2993
2993
  return;
2994
- const H = Ae(e);
2995
- H && (b(H, W ?? Tn), Q(Y), r.push(me(H.$el, "mousedown", L)), r.push(me(H.$el, "touchstart", L)), I.value = !0, l = Y);
2994
+ const H = Ee(e);
2995
+ H && (b(H, G ?? Tn), X(Y), r.push(me(H.$el, "mousedown", L)), r.push(me(H.$el, "touchstart", L)), I.value = !0, l = Y);
2996
2996
  }
2997
- function we(W) {
2997
+ function be(G) {
2998
2998
  if (!I.value)
2999
2999
  return;
3000
- const Y = Ae(e);
3001
- Y && (T(Y), Q(W), r.forEach((H) => {
3000
+ const Y = Ee(e);
3001
+ Y && (T(Y), X(G), r.forEach((H) => {
3002
3002
  H();
3003
3003
  }), r.length = 0, I.value = !1);
3004
3004
  }
3005
3005
  return {
3006
3006
  resizingIsOn: I,
3007
- turnResizingOn: ce,
3008
- turnResizingOff: we
3007
+ turnResizingOn: ue,
3008
+ turnResizingOff: be
3009
3009
  };
3010
3010
  }
3011
3011
  function Cn(e) {
@@ -3360,8 +3360,8 @@ function Ea() {
3360
3360
  return _r;
3361
3361
  }
3362
3362
  function Un(e) {
3363
- function t(f, A, J) {
3364
- return f ? an(f) ? J ?? "" : e.dates.tzString(f, A) : J ?? f ?? "";
3363
+ function t(f, A, j) {
3364
+ return f ? an(f) ? j ?? "" : e.dates.tzString(f, A) : j ?? f ?? "";
3365
3365
  }
3366
3366
  function l(f) {
3367
3367
  if (!f)
@@ -3488,7 +3488,7 @@ function Un(e) {
3488
3488
  }
3489
3489
  function Bn(e, t) {
3490
3490
  const l = z(!1), S = Yt(e);
3491
- let s = g(K(e));
3491
+ let s = g(Q(e));
3492
3492
  (t == null ? void 0 : t.useTracker) !== !1 && Te(S, (P) => {
3493
3493
  l.value = g(P) != s;
3494
3494
  }, { deep: !0 });
@@ -3501,7 +3501,7 @@ function Bn(e, t) {
3501
3501
  })), JSON.stringify(_);
3502
3502
  }
3503
3503
  function x() {
3504
- s = g(K(S)), l.value = !1;
3504
+ s = g(Q(S)), l.value = !1;
3505
3505
  }
3506
3506
  return {
3507
3507
  asyncItem: S,
@@ -3510,121 +3510,125 @@ function Bn(e, t) {
3510
3510
  };
3511
3511
  }
3512
3512
  function Ia(e, t) {
3513
- var ae;
3513
+ var Z;
3514
3514
  const {
3515
3515
  // useBladeSrc = true,
3516
3516
  useRouteSrc: l = !0
3517
- } = 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 = Mr(), P = et(), _ = K(e.proxyQueryKey), N = te(() => {
3518
- var G;
3519
- return K(e.proxyID) ?? (_ != null ? (G = P == null ? void 0 : P.query) == null ? void 0 : G[_] : void 0);
3517
+ } = 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 = Mr(), P = et(), _ = Q(e.proxyQueryKey), N = ee(() => {
3518
+ var W;
3519
+ return Q(e.proxyID) ?? (_ != null ? (W = P == null ? void 0 : P.query) == null ? void 0 : W[_] : void 0);
3520
3520
  }), $ = z(void 0), { actionErrorMsg: d, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: y, restoreItem: I, saveItem: i } = ut({
3521
3521
  nav: g,
3522
3522
  onError: e.onError ?? (t == null ? void 0 : t.onError),
3523
3523
  proxyID: N.value,
3524
- store: Le({
3524
+ store: Me({
3525
3525
  storeMode: S,
3526
3526
  storageMode: s,
3527
3527
  nav: g
3528
3528
  })
3529
- }), E = te(() => e.errorMsg ?? d.value), w = te(() => e.loadingMsg ?? h.value), M = te(() => w.value != null), b = z(e.itemID ?? (l ? (ae = P == null ? void 0 : P.params) == null ? void 0 : ae.id : void 0)), T = z(b.value == "new" ? "new" : e.startEditing ? "edit" : "view"), D = Re(!1), L = te(() => {
3529
+ }), E = ee(() => e.errorMsg ?? d.value), w = ee(() => e.loadingMsg ?? h.value), M = 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"), D = Le(!1), L = ee(() => {
3530
+ let W = e.params != null ? { ...e.params } : {};
3531
+ return e.includeDetails != null && (W.includeDetails = e.includeDetails), W;
3532
+ }), f = ee(() => {
3530
3533
  if (T.value == "new")
3531
3534
  return !1;
3532
- const G = K($);
3533
- return e.onCanDelete != null ? e.onCanDelete(G) : (G == null ? void 0 : G.isInactive) !== !0;
3534
- }), f = te(() => {
3535
+ const W = Q($);
3536
+ return e.onCanDelete != null ? e.onCanDelete(W) : (W == null ? void 0 : W.isInactive) !== !0;
3537
+ }), A = ee(() => {
3535
3538
  if (T.value == "new")
3536
3539
  return !1;
3537
- const G = K($);
3538
- return e.onCanEdit != null ? e.onCanEdit(G) : !0;
3539
- }), A = te(() => {
3540
+ const W = Q($);
3541
+ return e.onCanEdit != null ? e.onCanEdit(W) : !0;
3542
+ }), j = ee(() => {
3540
3543
  if (T.value == "new")
3541
3544
  return !1;
3542
- const G = K($);
3543
- return e.onCanRestore != null ? e.onCanRestore(G) : (G == null ? void 0 : G.isInactive) === !0;
3544
- }), J = te(() => {
3545
- const G = K($);
3546
- return e.onCanSave != null ? e.onCanSave(G) : !0;
3547
- }), { isChanged: Q, restartTracker: O } = Bn($, {
3545
+ const W = Q($);
3546
+ return e.onCanRestore != null ? e.onCanRestore(W) : (W == null ? void 0 : W.isInactive) === !0;
3547
+ }), X = ee(() => {
3548
+ const W = Q($);
3549
+ return e.onCanSave != null ? e.onCanSave(W) : !0;
3550
+ }), { isChanged: re, restartTracker: ue } = Bn($, {
3548
3551
  useTracker: e.trackChanges,
3549
3552
  propsToIgnore: e.trackIgnoreProps,
3550
3553
  propsToTrack: e.trackProps
3551
3554
  });
3552
- function ce(G) {
3555
+ function be(W) {
3553
3556
  const {
3554
- additionalUrl: X,
3555
- onDeleteAsync: ne,
3557
+ additionalUrl: ne,
3558
+ onDeleteAsync: ce,
3556
3559
  onDeleteSuccessAsync: se = () => (x.back(), Promise.resolve(void 0)),
3557
- proxyID: fe
3560
+ proxyID: ge
3558
3561
  } = { ...e };
3559
3562
  u({
3560
- additionalUrl: X,
3561
- data: G,
3563
+ additionalUrl: ne,
3564
+ data: W,
3562
3565
  nav: g,
3563
- onDeleteAsync: ne,
3566
+ onDeleteAsync: ce,
3564
3567
  onDeleteSuccessAsync: se,
3565
- proxyID: fe
3568
+ proxyID: ge
3566
3569
  // ...params.getOptions(),
3567
3570
  //...(useBladeSrc ? bladeData.value : {}),
3568
3571
  //requireConfirmation: true
3569
3572
  });
3570
3573
  }
3571
- function we(G) {
3574
+ function G(W) {
3572
3575
  const {
3573
- additionalUrl: X,
3574
- onRestoreAsync: ne,
3576
+ additionalUrl: ne,
3577
+ onRestoreAsync: ce,
3575
3578
  onRestoreSuccessAsync: se,
3576
- proxyID: fe
3579
+ proxyID: ge
3577
3580
  } = { ...e };
3578
3581
  I({
3579
- additionalUrl: X,
3580
- data: G,
3582
+ additionalUrl: ne,
3583
+ data: W,
3581
3584
  nav: g,
3582
- onRestoreAsync: ne,
3585
+ onRestoreAsync: ce,
3583
3586
  onRestoreSuccessAsync: se,
3584
- proxyID: fe
3587
+ proxyID: ge
3585
3588
  // ...params.getOptions(),
3586
3589
  // ...(useBladeSrc ? bladeData.value : {}),
3587
3590
  });
3588
3591
  }
3589
- async function W(G) {
3592
+ async function Y(W) {
3590
3593
  if (D.value = !1, e.item != null)
3591
3594
  $.value = e.item;
3592
3595
  else {
3593
- const X = {
3596
+ const ne = {
3594
3597
  additionalUrl: e.additionalUrl,
3595
3598
  id: b.value,
3596
3599
  nav: g,
3597
3600
  proxyID: N.value,
3598
- params: e.params,
3601
+ params: L.value,
3602
+ //props.params,
3599
3603
  // ...(useBladeSrc ? bladeData.value : {}),
3600
- refresh: (G == null ? void 0 : G.deepRefresh) ?? !1,
3604
+ refresh: (W == null ? void 0 : W.deepRefresh) ?? !1,
3601
3605
  onGetAsync: e.onGetAsync,
3602
3606
  onGetSuccessAsync: e.onGetSuccessAsync
3603
3607
  };
3604
3608
  if (e.isSingle === !0)
3605
- X.id === "new" ? $.value = e.onGetNew ? e.onGetNew() : {} : $.value = await r(X);
3609
+ ne.id === "new" ? $.value = e.onGetNew ? e.onGetNew() : {} : $.value = await r(ne);
3606
3610
  else {
3607
- const ne = await y(X);
3608
- $.value = ne.data;
3611
+ const ce = await y(ne);
3612
+ $.value = ce.data;
3609
3613
  }
3610
3614
  }
3611
- O();
3615
+ ue();
3612
3616
  }
3613
- function Y(G, X) {
3617
+ function H(W, ne) {
3614
3618
  const {
3615
- additionalUrl: ne,
3619
+ additionalUrl: ce,
3616
3620
  onCanSaveAsync: se,
3617
- onGetSaveAsync: fe,
3618
- onSaveAsync: Ee,
3619
- onSaveSuccessAsync: $e = (Ce) => ((X == null ? void 0 : X.navBack) === !0 ? x.back() : (G.rowVersion != null && Ce.rowVersion != null && (G.rowVersion = Ce.rowVersion), O(), T.value = "view"), Promise.resolve(void 0))
3621
+ onGetSaveAsync: ge,
3622
+ onSaveAsync: Be,
3623
+ 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))
3620
3624
  } = { ...e };
3621
3625
  i({
3622
- additionalUrl: ne,
3623
- data: G,
3626
+ additionalUrl: ce,
3627
+ data: W,
3624
3628
  nav: g,
3625
3629
  onCanSaveAsync: se,
3626
- onGetSaveAsync: fe,
3627
- onSaveAsync: Ee,
3630
+ onGetSaveAsync: ge,
3631
+ onSaveAsync: Be,
3628
3632
  onSaveSuccessAsync: $e,
3629
3633
  proxyID: N.value,
3630
3634
  // ...params.getOptions(),
@@ -3632,36 +3636,36 @@ function Ia(e, t) {
3632
3636
  mode: T.value
3633
3637
  });
3634
3638
  }
3635
- function H() {
3636
- const G = K(T);
3637
- !G || G == "view" ? T.value = "edit" : G == "edit" && (T.value = "view");
3639
+ function ie() {
3640
+ const W = Q(T);
3641
+ !W || W == "view" ? T.value = "edit" : W == "edit" && (T.value = "view");
3638
3642
  }
3639
- return Te(E, (G) => {
3640
- D.value = G != null;
3643
+ return Te(E, (W) => {
3644
+ D.value = W != null;
3641
3645
  }), Te(() => e.refreshToggle, () => {
3642
- W({ deepRefresh: !0 });
3646
+ Y({ deepRefresh: !0 });
3643
3647
  }), Xr(async () => {
3644
- var G;
3645
- e.eager == !0 && await W({ deepRefresh: ((G = P == null ? void 0 : P.params) == null ? void 0 : G.refresh) == "true" });
3648
+ var W;
3649
+ e.eager == !0 && await Y({ deepRefresh: ((W = P == null ? void 0 : P.params) == null ? void 0 : W.refresh) == "true" });
3646
3650
  }), {
3647
3651
  asyncItem: $,
3648
- deleteItem: ce,
3652
+ deleteItem: be,
3649
3653
  errorMsg: E,
3650
- isChanged: Q,
3651
- isDeletable: L,
3652
- isEditing: te(() => T.value == "new" || T.value == "edit"),
3653
- isEditable: f,
3654
+ isChanged: re,
3655
+ isDeletable: f,
3656
+ isEditing: ee(() => T.value == "new" || T.value == "edit"),
3657
+ isEditable: A,
3654
3658
  isLoading: M,
3655
- isNew: te(() => T.value == "new"),
3656
- isRestorable: A,
3657
- isSaveable: J,
3659
+ isNew: ee(() => T.value == "new"),
3660
+ isRestorable: j,
3661
+ isSaveable: X,
3658
3662
  loadingMsg: w,
3659
3663
  mode: T,
3660
- refresh: W,
3661
- restoreItem: we,
3662
- saveItem: Y,
3664
+ refresh: Y,
3665
+ restoreItem: G,
3666
+ saveItem: H,
3663
3667
  showError: D,
3664
- toggleMode: H
3668
+ toggleMode: ie
3665
3669
  };
3666
3670
  }
3667
3671
  const Vr = z(!0), zr = z(!1), Yr = z(), gr = z(!1);
@@ -3708,7 +3712,7 @@ function $n(e) {
3708
3712
  if (u == null)
3709
3713
  return;
3710
3714
  let r = gn(u.microservice ?? "default") ?? "";
3711
- return u.path != null && (r = Be(r, u.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
3715
+ return u.path != null && (r = Ue(r, u.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
3712
3716
  }
3713
3717
  function N(h) {
3714
3718
  const u = P(h);
@@ -3748,141 +3752,141 @@ function $n(e) {
3748
3752
  }, Cr;
3749
3753
  }
3750
3754
  function Da(e, t, l) {
3751
- var qe, He;
3752
- const S = Nn(), s = it(), g = Mr(), x = et(), { bladeData: P } = Cn({}), _ = e.useBladeSrc ?? !0, N = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", d = e.storeMode ?? ((qe = s.findItem($)) == null ? void 0 : qe.storeMode), h = e.storageMode ?? ((He = s.findItem($)) == null ? void 0 : He.storageMode), u = K(e.customFilters) ?? [], r = z([]), y = te(() => Kt([
3755
+ var He, Ve;
3756
+ const S = Nn(), s = it(), g = Mr(), x = et(), { bladeData: P } = Cn({}), _ = e.useBladeSrc ?? !0, N = 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([
3753
3757
  ...u.filter((U) => U.name != null).map((U) => U.name),
3754
3758
  ...e.defaultFilters ?? [],
3755
3759
  ...r.value
3756
3760
  ]).value), I = z((e.defaultFilters ?? []).map((U) => y.value.indexOf(U)));
3757
3761
  let i = z([...I.value]);
3758
- const E = te(() => Gr(i, I).value.length > 0 || Gr(I, i).value.length > 0), w = z(M());
3762
+ const E = ee(() => Gr(i, I).value.length > 0 || Gr(I, i).value.length > 0), w = z(M());
3759
3763
  function M() {
3760
- var U, j;
3764
+ var U, K;
3761
3765
  if (_) {
3762
3766
  const V = (U = P.value) == null ? void 0 : U.page;
3763
3767
  if (V != null)
3764
3768
  return Number.parseInt(V);
3765
3769
  }
3766
3770
  if (N) {
3767
- const V = (j = x == null ? void 0 : x.query) == null ? void 0 : j.page;
3771
+ const V = (K = x == null ? void 0 : x.query) == null ? void 0 : K.page;
3768
3772
  if (V != null)
3769
3773
  return Number.parseInt(typeof V == "string" ? V : V.toString());
3770
3774
  }
3771
3775
  return 1;
3772
3776
  }
3773
- const b = te(() => {
3774
- var U, j;
3777
+ const b = ee(() => {
3778
+ var U, K;
3775
3779
  if (_) {
3776
3780
  const V = (U = P.value) == null ? void 0 : U.proxyID;
3777
3781
  if (V != null)
3778
3782
  return V;
3779
3783
  }
3780
3784
  if (N) {
3781
- const V = (j = x == null ? void 0 : x.query) == null ? void 0 : j.query;
3785
+ const V = (K = x == null ? void 0 : x.query) == null ? void 0 : K.query;
3782
3786
  if (V != null)
3783
3787
  return V;
3784
3788
  }
3785
3789
  return e.proxyID;
3786
3790
  }), T = z(D());
3787
3791
  function D() {
3788
- var U, j;
3792
+ var U, K;
3789
3793
  if (_) {
3790
3794
  const V = (U = P.value) == null ? void 0 : U.search;
3791
3795
  if (V != null)
3792
3796
  return V;
3793
3797
  }
3794
3798
  if (N) {
3795
- const V = (j = x == null ? void 0 : x.query) == null ? void 0 : j.search;
3799
+ const V = (K = x == null ? void 0 : x.query) == null ? void 0 : K.search;
3796
3800
  if (V != null)
3797
3801
  return V;
3798
3802
  }
3799
3803
  }
3800
- const L = z(K(e.startShowingInactive) ?? !1), f = te(() => [
3804
+ const L = z(Q(e.startShowingInactive) ?? !1), f = ee(() => [
3801
3805
  ...e.searchProps ?? [],
3802
3806
  ...(e.headers ?? []).filter((U) => U.searchable != null && U.value != null).map((U) => U.value ?? "")
3803
- ]), A = z([]), J = Re([]), Q = z([]);
3804
- let O;
3805
- const { actionErrorMsg: ce, actionLoadingMsg: we, deleteItem: W, doAction: Y, getItem: H, getAllItems: ae, restoreItem: G } = ut({
3807
+ ]), A = z([]), j = Le([]), X = z([]);
3808
+ let re;
3809
+ const { actionErrorMsg: ue, actionLoadingMsg: be, deleteItem: G, doAction: Y, getItem: H, getAllItems: ie, restoreItem: Z } = ut({
3806
3810
  nav: $,
3807
3811
  onError: e.onError ?? (l == null ? void 0 : l.onError),
3808
3812
  proxyID: b.value,
3809
- store: Le({
3813
+ store: Me({
3810
3814
  storeMode: d,
3811
3815
  storageMode: h,
3812
3816
  nav: $
3813
3817
  })
3814
- }), X = te(() => e.errorMsg ?? ce.value), ne = te(() => e.loadingMsg ?? we.value), se = te(() => ne.value != null), fe = Re(!1), Ee = Re(e.showSearch ?? !0), $e = z(0), Ce = te(() => {
3815
- let U, j = [];
3816
- I.value.forEach((p) => {
3817
- const de = y.value[p], ge = u.find((De) => De.name == de);
3818
- ge != null ? U = U != null ? `${U}ANDALSO${ge.filterFunction()}` : ge.filterFunction() : j.push(de);
3818
+ }), W = ee(() => e.errorMsg ?? ue.value), ne = ee(() => e.loadingMsg ?? be.value), ce = ee(() => ne.value != null), se = Le(!1), ge = Le(e.showSearch ?? !0), Be = z(0), $e = ee(() => {
3819
+ let U, K = [];
3820
+ I.value.forEach((O) => {
3821
+ const de = y.value[O], ye = u.find((De) => De.name == de);
3822
+ ye != null ? U = U != null ? `${U}ANDALSO${ye.filterFunction()}` : ye.filterFunction() : K.push(de);
3819
3823
  });
3820
3824
  const V = {};
3821
- return _e(j) && (V.filterBy = j.toString()), U != null && (V.query = U), V;
3822
- }), rr = te(() => {
3823
- var j;
3825
+ return _e(K) && (V.filterBy = K.toString()), U != null && (V.query = U), V;
3826
+ }), Fe = ee(() => {
3827
+ var K;
3824
3828
  let U = e.params != null ? { ...e.params } : {};
3825
- return e.useServerPagination && e.itemsPerPage != null && (U.includeCount = !0, U.takeAmount = e.itemsPerPage, U.takeFrom = (w.value - 1) * e.itemsPerPage), Ce.value != null && (U = { ...U, ...Ce.value }), L.value && (U.includeInactive = !0), _e(e.selectProps) && (U.properties = (j = e.selectProps) == null ? void 0 : j.toString()), T.value != null && (U.searchString = T.value), U;
3826
- }), tr = te(() => (U) => e.onCanDelete != null ? e.onCanDelete(U) : !(U != null && U.isInactive === !0)), nr = te(() => (U) => L.value ? e.onCanRestore != null ? e.onCanRestore(U) : (U == null ? void 0 : U.isInactive) === !0 : !1), Pe = te(() => Q.value.filter((U) => !U.hide)), ar = te(() => {
3829
+ 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 }), L.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;
3830
+ }), tr = ee(() => (U) => e.onCanDelete != null ? e.onCanDelete(U) : !(U != null && U.isInactive === !0)), nr = ee(() => (U) => L.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(() => {
3827
3831
  let U = new Array();
3828
- return Pe.value.filter((V) => V.sublevel != null).forEach((V) => {
3829
- let p = U.find((de) => de.position == V.sublevel);
3830
- p == null ? U.push({ position: V.sublevel ?? 0, values: [V] }) : p.values.push(V);
3831
- }), U.sort(Ue.firstBy((V) => V.position));
3832
- }), lr = te(() => {
3832
+ return Ce.value.filter((V) => V.sublevel != null).forEach((V) => {
3833
+ let O = U.find((de) => de.position == V.sublevel);
3834
+ O == null ? U.push({ position: V.sublevel ?? 0, values: [V] }) : O.values.push(V);
3835
+ }), U.sort(Re.firstBy((V) => V.position));
3836
+ }), lr = ee(() => {
3833
3837
  let U = new Array();
3834
- return Pe.value.filter((V) => V.level != null).forEach((V) => {
3835
- let p = U.find((de) => de.position == V.level);
3836
- p == null ? U.push({ position: V.level ?? 0, values: [V] }) : p.values.push(V);
3837
- }), U.sort(Ue.firstBy((V) => V.position));
3838
- }), ur = te(() => Pe.value.filter((U) => U.nav != null && U.itemText != null || U.textFilter != null || U.display != null || U.bool != null));
3839
- function be(U) {
3838
+ return Ce.value.filter((V) => V.level != null).forEach((V) => {
3839
+ let O = U.find((de) => de.position == V.level);
3840
+ O == null ? U.push({ position: V.level ?? 0, values: [V] }) : O.values.push(V);
3841
+ }), U.sort(Re.firstBy((V) => V.position));
3842
+ }), ur = ee(() => Ce.value.filter((U) => U.nav != null && U.itemText != null || U.textFilter != null || U.display != null || U.bool != null));
3843
+ function Se(U) {
3840
3844
  if (e.itemBladeName != null) {
3841
- let j = {
3845
+ let K = {
3842
3846
  bladeName: e.itemBladeName,
3843
3847
  id: "new",
3844
3848
  nav: $
3845
3849
  };
3846
3850
  U == "page" && g.push({
3847
- name: j.bladeName,
3851
+ name: K.bladeName,
3848
3852
  params: { id: "new" }
3849
3853
  });
3850
3854
  }
3851
3855
  }
3852
3856
  function ir(U) {
3853
3857
  const {
3854
- additionalUrl: j,
3858
+ additionalUrl: K,
3855
3859
  onDeleteAsync: V
3856
- } = { ...e }, p = K(U), de = p.id, ge = (De) => {
3860
+ } = { ...e }, O = Q(U), de = O.id, ye = (De) => {
3857
3861
  if (De != null) {
3858
- let Se = A.value.findIndex((oe) => oe.id == De);
3859
- if (Se > -1 && A.value.splice(Se, 1), e.items != null) {
3860
- let oe = e.items.findIndex((Me) => Me.id == De);
3862
+ let Ae = A.value.findIndex((oe) => oe.id == De);
3863
+ if (Ae > -1 && A.value.splice(Ae, 1), e.items != null) {
3864
+ let oe = e.items.findIndex((Ne) => Ne.id == De);
3861
3865
  oe > -1 && e.items.splice(oe, 1);
3862
3866
  }
3863
3867
  } else {
3864
- let Se = A.value.findIndex((oe) => oe === p);
3865
- if (Se == -1 && (Se = A.value.findIndex((oe) => oe == p)), Se > -1 && A.value.splice(Se, 1), e.items != null) {
3866
- let oe = e.items.findIndex((Me) => Me === p);
3867
- oe == -1 && (oe = e.items.findIndex((Me) => Me == p)), oe > -1 && e.items.splice(oe, 1);
3868
+ let Ae = A.value.findIndex((oe) => oe === O);
3869
+ if (Ae == -1 && (Ae = A.value.findIndex((oe) => oe == O)), Ae > -1 && A.value.splice(Ae, 1), e.items != null) {
3870
+ let oe = e.items.findIndex((Ne) => Ne === O);
3871
+ oe == -1 && (oe = e.items.findIndex((Ne) => Ne == O)), oe > -1 && e.items.splice(oe, 1);
3868
3872
  }
3869
3873
  }
3870
3874
  };
3871
- e.localOnly == !0 || $ == null ? ge(de) : W({
3872
- additionalUrl: j,
3873
- data: p,
3875
+ e.localOnly == !0 || $ == null ? ye(de) : G({
3876
+ additionalUrl: K,
3877
+ data: O,
3874
3878
  nav: $,
3875
3879
  onCanDeleteAsync: e.onCanDeleteAsync,
3876
3880
  onDeleteAsync: V,
3877
- onDeleteSuccessAsync: async () => (ge(de), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(p) : Promise.resolve(void 0)),
3881
+ onDeleteSuccessAsync: async () => (ye(de), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(O) : Promise.resolve(void 0)),
3878
3882
  proxyID: b.value,
3879
3883
  // ...(useBladeSrc ? bladeData.value : {}),
3880
3884
  requireConfirmation: !0
3881
3885
  }), t && t("deleted", U);
3882
3886
  }
3883
- function Ze(U) {
3884
- G({
3885
- data: K(U),
3887
+ function Je(U) {
3888
+ Z({
3889
+ data: Q(U),
3886
3890
  additionalUrl: e.additionalUrl,
3887
3891
  nav: $,
3888
3892
  onCanRestoreAsync: e.onCanRestoreAsync,
@@ -3892,33 +3896,33 @@ function Da(e, t, l) {
3892
3896
  // ...(useBladeSrc ? bladeData.value : {})
3893
3897
  });
3894
3898
  }
3895
- function Fe() {
3899
+ function ke() {
3896
3900
  Y(() => {
3897
- S.exportToCSV(Pe.value, J.value);
3901
+ S.exportToCSV(Ce.value, j.value);
3898
3902
  }, { loadingMsg: "Exporting to CSV" });
3899
3903
  }
3900
- function Ne() {
3901
- let U = K(A);
3904
+ function Pe() {
3905
+ let U = Q(A);
3902
3906
  if (U = e.onFilter ? e.onFilter(U) : U, T.value != null && T.value.length > 0) {
3903
- let j = [...f.value];
3904
- e.itemText && j.push(e.itemText), _e(j) && (U = U.filter((V) => dn(V, T.value, j)));
3907
+ let K = [...f.value];
3908
+ e.itemText && K.push(e.itemText), _e(K) && (U = U.filter((V) => dn(V, T.value, K)));
3905
3909
  }
3906
- J.value = U;
3910
+ j.value = U;
3907
3911
  }
3908
- function We() {
3912
+ function qe() {
3909
3913
  const U = (l == null ? void 0 : l.hideActions) ?? e.hideActions;
3910
- e.headers != null && (Q.value = [...e.headers], U || Q.value.push({ title: "Actions", value: "itemActions", align: "end" }));
3914
+ e.headers != null && (X.value = [...e.headers], U || X.value.push({ title: "Actions", value: "itemActions", align: "end" }));
3911
3915
  }
3912
3916
  async function Ie(U) {
3913
- if (fe.value = !1, (U == null ? void 0 : U.resetSearch) === !0 && (Ee.value = e.showSearch ?? !1, T.value = void 0), e.items != null) {
3917
+ if (se.value = !1, (U == null ? void 0 : U.resetSearch) === !0 && (ge.value = e.showSearch ?? !1, T.value = void 0), e.items != null) {
3914
3918
  A.value = e.onGetSuccessAsync != null ? await e.onGetSuccessAsync(e.items) : e.items;
3915
3919
  return;
3916
3920
  }
3917
- const j = {
3921
+ const K = {
3918
3922
  additionalUrl: e.additionalUrl,
3919
3923
  id: e.itemID,
3920
3924
  nav: $,
3921
- params: rr.value,
3925
+ params: Fe.value,
3922
3926
  //params,
3923
3927
  // params: params.getParamOptions(),
3924
3928
  proxyID: b.value,
@@ -3929,106 +3933,106 @@ function Da(e, t, l) {
3929
3933
  onGetSuccessAsync: e.onGetSuccessAsync
3930
3934
  };
3931
3935
  if (e.isSingle === !0)
3932
- j.id === "new" ? A.value = [] : A.value = await H(j);
3936
+ K.id === "new" ? A.value = [] : A.value = await H(K);
3933
3937
  else {
3934
- let V = await ae({
3935
- ...j,
3936
- onGetSuccessAsync: async (p, de) => {
3937
- let ge = p == null ? void 0 : p.data;
3938
- return r.value = (p == null ? void 0 : p.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && p.count && ($e.value = Math.ceil(p.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (ge = await e.onGetSuccessAsync(ge, de)), ge;
3938
+ let V = await ie({
3939
+ ...K,
3940
+ onGetSuccessAsync: async (O, de) => {
3941
+ let ye = O == null ? void 0 : O.data;
3942
+ return r.value = (O == null ? void 0 : O.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && O.count && (Be.value = Math.ceil(O.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (ye = await e.onGetSuccessAsync(ye, de)), ye;
3939
3943
  }
3940
3944
  });
3941
3945
  A.value = V, i.value = [...I.value];
3942
3946
  }
3943
- Ne();
3947
+ Pe();
3944
3948
  }
3945
- function Je(U, j) {
3946
- const V = K(U);
3947
- if (V != null && V === O && e.canUnselect ? O = null : O = V, e.canSelect == !0 && (e.onCanSelectItem == null || e.onCanSelectItem(V)))
3949
+ function je(U, K) {
3950
+ const V = Q(U);
3951
+ if (V != null && V === re && e.canUnselect ? re = null : re = V, e.canSelect == !0 && (e.onCanSelectItem == null || e.onCanSelectItem(V)))
3948
3952
  if (e.onSelectItem != null)
3949
- e.onSelectItem(O);
3953
+ e.onSelectItem(re);
3950
3954
  else {
3951
- let p = {
3955
+ let O = {
3952
3956
  bladeName: e.itemBladeName,
3953
3957
  id: V.id,
3954
3958
  nav: $
3955
3959
  };
3956
- j == "page" && g.push({
3957
- name: p.bladeName,
3958
- params: { id: p.id }
3960
+ K == "page" && g.push({
3961
+ name: O.bladeName,
3962
+ params: { id: O.id }
3959
3963
  });
3960
3964
  }
3961
- t != null && (t("select", O), t("confirm", O));
3965
+ t != null && (t("select", re), t("confirm", re));
3962
3966
  }
3963
- function je() {
3964
- Ee.value ? (Ee.value = e.showSearch ?? !1, T.value = void 0, Ie()) : Ee.value = e.showSearch ?? !0;
3967
+ function Ke() {
3968
+ ge.value ? (ge.value = e.showSearch ?? !1, T.value = void 0, Ie()) : ge.value = e.showSearch ?? !0;
3965
3969
  }
3966
- return We(), Qt([T], () => {
3967
- Ne();
3970
+ return qe(), Qt([T], () => {
3971
+ Pe();
3968
3972
  }, { debounce: 500, maxWait: 500 }), Te([L, w], async () => {
3969
3973
  await Ie();
3970
- }), Te([X, () => e.errorMsg], ([U, j]) => {
3971
- fe.value = U != null || j != null;
3974
+ }), Te([W, () => e.errorMsg], ([U, K]) => {
3975
+ se.value = U != null || K != null;
3972
3976
  }), Te(() => e.refreshToggle, () => {
3973
3977
  Ie({ deepRefresh: !0 });
3974
3978
  }), Or([A, () => e.items], () => {
3975
- Ne();
3979
+ Pe();
3976
3980
  }), Xr(async () => {
3977
3981
  var U;
3978
3982
  e.eager == !0 && await Ie({ deepRefresh: ((U = x == null ? void 0 : x.params) == null ? void 0 : U.refresh) == "true" });
3979
3983
  }), {
3980
- add: be,
3984
+ add: Se,
3981
3985
  asyncItems: A,
3982
3986
  currentPage: w,
3983
3987
  deleteItem: ir,
3984
3988
  displayHeaders: ur,
3985
- errorMsg: X,
3986
- exportToCSV: Fe,
3987
- filteredItems: J,
3989
+ errorMsg: W,
3990
+ exportToCSV: ke,
3991
+ filteredItems: j,
3988
3992
  filters: y,
3989
3993
  filtersChanged: E,
3990
- headerOptions: Q,
3994
+ headerOptions: X,
3991
3995
  isDeletable: tr,
3992
- isLoading: se,
3996
+ isLoading: ce,
3993
3997
  isRestorable: nr,
3994
3998
  loadingMsg: ne,
3995
3999
  refresh: Ie,
3996
- restoreItem: Ze,
4000
+ restoreItem: Je,
3997
4001
  searchString: T,
3998
4002
  selectedFilters: I,
3999
- selectItem: Je,
4003
+ selectItem: je,
4000
4004
  // serverFilters,
4001
- showError: fe,
4005
+ showError: se,
4002
4006
  showInactive: L,
4003
- showSearch: Ee,
4007
+ showSearch: ge,
4004
4008
  subtitleOptions: ar,
4005
- tableHeaders: Pe,
4009
+ tableHeaders: Ce,
4006
4010
  titleOptions: lr,
4007
- toggleSearch: je,
4008
- totalPages: $e
4011
+ toggleSearch: Ke,
4012
+ totalPages: Be
4009
4013
  };
4010
4014
  }
4011
- let Ge;
4015
+ let We;
4012
4016
  function Fn(e) {
4013
4017
  const t = z((e == null ? void 0 : e.default) ?? "Admin"), l = z((e == null ? void 0 : e.groups) ?? []);
4014
- return Ge = {
4018
+ return We = {
4015
4019
  currentGroup: t,
4016
4020
  groupOptions: l,
4017
4021
  useRoutes: e == null ? void 0 : e.useRoutes
4018
- }, Ge;
4022
+ }, We;
4019
4023
  }
4020
4024
  function xa() {
4021
4025
  const e = Mr(), t = it(), l = In();
4022
4026
  let S = e.getRoutes();
4023
4027
  return {
4024
- ...Ge,
4025
- sidebarNavItems: te(() => {
4028
+ ...We,
4029
+ sidebarNavItems: ee(() => {
4026
4030
  var g;
4027
4031
  S = S.filter((x) => x.meta != null && x.meta.menuGroup != null);
4028
4032
  const s = [];
4029
4033
  return S.forEach((x) => {
4030
4034
  var d;
4031
- const P = Ge.groupOptions.value.find((h) => h.displayName == x.meta.menuGroup), _ = t.findItem(x.meta.nav), N = x.meta;
4035
+ const P = We.groupOptions.value.find((h) => h.displayName == x.meta.menuGroup), _ = t.findItem(x.meta.nav), N = x.meta;
4032
4036
  let $ = s.find((h) => h.displayName == N.menuGroup);
4033
4037
  $ == null && ($ = {
4034
4038
  displayName: N.menuGroup,
@@ -4046,8 +4050,8 @@ function xa() {
4046
4050
  });
4047
4051
  }), s.forEach((x) => {
4048
4052
  var P;
4049
- x.items = (P = x.items) == null ? void 0 : P.filter((_) => !_.requiresAuth || l.doShow(_.subscriptions, _.permissions, "view")).sort(Ue.firstBy((_) => _.displayName));
4050
- }), Ge.currentGroup.value != null ? ((g = s.find((x) => x.displayName == Ge.currentGroup.value)) == null ? void 0 : g.items) ?? [] : s.filter((x) => !x.requiresAuth || l.doShow(x.subscriptions, x.permissions, "view"));
4053
+ x.items = (P = x.items) == null ? void 0 : P.filter((_) => !_.requiresAuth || l.doShow(_.subscriptions, _.permissions, "view")).sort(Re.firstBy((_) => _.displayName));
4054
+ }), 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"));
4051
4055
  })
4052
4056
  };
4053
4057
  }
@@ -4067,14 +4071,14 @@ function kn(e) {
4067
4071
  }, Pr;
4068
4072
  }
4069
4073
  let Zr, Jr, jr, Kr = !1;
4070
- const wr = z(!1), br = z(!1), Qr = z(), pe = z();
4074
+ const wr = z(!1), br = z(!1), Qr = z(), er = z();
4071
4075
  let Nr;
4072
4076
  function _a() {
4073
4077
  return Nr;
4074
4078
  }
4075
4079
  function Gn() {
4076
4080
  function e(x) {
4077
- pe.value = x.detail, br.value = !0;
4081
+ er.value = x.detail, br.value = !0;
4078
4082
  }
4079
4083
  function t() {
4080
4084
  Kr || (Kr = !0, window.location.reload());
@@ -4090,7 +4094,7 @@ function Gn() {
4090
4094
  x.preventDefault(), wr.value = !0, Qr.value = x;
4091
4095
  }
4092
4096
  function g() {
4093
- br.value = !1, !(!pe.value || !pe.value.waiting) && pe.value.waiting.postMessage({ type: "SKIP_WAITING" });
4097
+ br.value = !1, !(!er.value || !er.value.waiting) && er.value.waiting.postMessage({ type: "SKIP_WAITING" });
4094
4098
  }
4095
4099
  return Xt(() => {
4096
4100
  Zr == null && (Zr = document.addEventListener("swUpdated", e, { once: !0 })), Jr == null && (Jr = navigator.serviceWorker.addEventListener("controllerchange", t)), jr == null && (jr = window.addEventListener("beforeinstallprompt", s));
@@ -4135,7 +4139,7 @@ function Pa(e) {
4135
4139
  export {
4136
4140
  sa as DataURIToBlob,
4137
4141
  aa as addWeekday,
4138
- Be as appendUrl,
4142
+ Ue as appendUrl,
4139
4143
  nn as capitalizeWords,
4140
4144
  On as checkImage,
4141
4145
  fn as containsSearch,
@@ -4213,11 +4217,11 @@ export {
4213
4217
  _n as useResizable,
4214
4218
  Ca as useRules,
4215
4219
  va as useStore,
4216
- Le as useStoreDefinition,
4220
+ Me as useStoreDefinition,
4217
4221
  Bn as useTracker,
4218
4222
  ha as useUrls,
4219
4223
  hn as validEmail,
4220
- Ye as weekdayPairs,
4224
+ Ze as weekdayPairs,
4221
4225
  ta as weekdayShortName,
4222
4226
  ra as weekdayValue
4223
4227
  };