bt-core-app 1.4.21 → 1.4.23

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,20 +1,20 @@
1
1
  import { onMounted as jr, nextTick as nr, computed as le, watch as Ee, unref as xn, getCurrentInstance as Gr, getCurrentScope as xt, onScopeDispose as Nt, ref as Z, readonly as Nn, customRef as Tn, shallowRef as xe, onUpdated as Cn, toValue as K, inject as qr, hasInjectionContext as Pn, reactive as Ln, markRaw as We, effectScope as Mn, isRef as qe, isReactive as Hr, toRef as tr, toRaw as Rn, toRefs as lt } from "vue";
2
2
  import { DateTime as ie } from "luxon";
3
- function Un(e, t) {
3
+ function Un(e, r) {
4
4
  let n, l, s;
5
- const h = Z(!0), D = () => {
5
+ const h = Z(!0), A = () => {
6
6
  h.value = !0, s();
7
7
  };
8
- Ee(e, D, { flush: "sync" });
9
- const S = typeof t == "function" ? t : t.get, T = typeof t == "function" ? void 0 : t.set, L = Tn((R, b) => (l = R, s = b, {
8
+ Ee(e, A, { flush: "sync" });
9
+ const E = typeof r == "function" ? r : r.get, T = typeof r == "function" ? void 0 : r.set, L = Tn((R, y) => (l = R, s = y, {
10
10
  get() {
11
- return h.value && (n = S(), h.value = !1), l(), n;
11
+ return h.value && (n = E(), h.value = !1), l(), n;
12
12
  },
13
13
  set(c) {
14
14
  T == null || T(c);
15
15
  }
16
16
  }));
17
- return Object.isExtensible(L) && (L.trigger = D), L;
17
+ return Object.isExtensible(L) && (L.trigger = A), L;
18
18
  }
19
19
  function Bn(e) {
20
20
  return xt() ? (Nt(e), !0) : !1;
@@ -26,48 +26,48 @@ const $n = typeof window < "u" && typeof document < "u";
26
26
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
27
27
  const Fn = Object.prototype.toString, kn = (e) => Fn.call(e) === "[object Object]", Nr = () => {
28
28
  };
29
- function Vn(e, t) {
29
+ function Vn(e, r) {
30
30
  function n(...l) {
31
31
  return new Promise((s, h) => {
32
- Promise.resolve(e(() => t.apply(this, l), { fn: t, thisArg: this, args: l })).then(s).catch(h);
32
+ Promise.resolve(e(() => r.apply(this, l), { fn: r, thisArg: this, args: l })).then(s).catch(h);
33
33
  });
34
34
  }
35
35
  return n;
36
36
  }
37
37
  const Tt = (e) => e();
38
- function Wn(e, t = {}) {
38
+ function Wn(e, r = {}) {
39
39
  let n, l, s = Nr;
40
- const h = (S) => {
41
- clearTimeout(S), s(), s = Nr;
40
+ const h = (E) => {
41
+ clearTimeout(E), s(), s = Nr;
42
42
  };
43
- return (S) => {
44
- const T = ae(e), L = ae(t.maxWait);
45
- return n && h(n), T <= 0 || L !== void 0 && L <= 0 ? (l && (h(l), l = null), Promise.resolve(S())) : new Promise((R, b) => {
46
- s = t.rejectOnCancel ? b : R, L && !l && (l = setTimeout(() => {
47
- n && h(n), l = null, R(S());
43
+ return (E) => {
44
+ const T = ae(e), L = ae(r.maxWait);
45
+ return n && h(n), T <= 0 || L !== void 0 && L <= 0 ? (l && (h(l), l = null), Promise.resolve(E())) : new Promise((R, y) => {
46
+ s = r.rejectOnCancel ? y : R, L && !l && (l = setTimeout(() => {
47
+ n && h(n), l = null, R(E());
48
48
  }, L)), n = setTimeout(() => {
49
- l && h(l), l = null, R(S());
49
+ l && h(l), l = null, R(E());
50
50
  }, T);
51
51
  });
52
52
  };
53
53
  }
54
54
  function jn(e = Tt) {
55
- const t = Z(!0);
55
+ const r = Z(!0);
56
56
  function n() {
57
- t.value = !1;
57
+ r.value = !1;
58
58
  }
59
59
  function l() {
60
- t.value = !0;
60
+ r.value = !0;
61
61
  }
62
62
  const s = (...h) => {
63
- t.value && e(...h);
63
+ r.value && e(...h);
64
64
  };
65
- return { isActive: Nn(t), pause: n, resume: l, eventFilter: s };
65
+ return { isActive: Nn(r), pause: n, resume: l, eventFilter: s };
66
66
  }
67
67
  function Gn(e) {
68
68
  return e || Gr();
69
69
  }
70
- function Ct(e, t, n = {}) {
70
+ function Ct(e, r, n = {}) {
71
71
  const {
72
72
  eventFilter: l = Tt,
73
73
  ...s
@@ -76,71 +76,71 @@ function Ct(e, t, n = {}) {
76
76
  e,
77
77
  Vn(
78
78
  l,
79
- t
79
+ r
80
80
  ),
81
81
  s
82
82
  );
83
83
  }
84
- function qn(e, t, n = {}) {
84
+ function qn(e, r, n = {}) {
85
85
  const {
86
86
  eventFilter: l,
87
87
  ...s
88
- } = n, { eventFilter: h, pause: D, resume: S, isActive: T } = jn(l);
88
+ } = n, { eventFilter: h, pause: A, resume: E, isActive: T } = jn(l);
89
89
  return { stop: Ct(
90
90
  e,
91
- t,
91
+ r,
92
92
  {
93
93
  ...s,
94
94
  eventFilter: h
95
95
  }
96
- ), pause: D, resume: S, isActive: T };
96
+ ), pause: A, resume: E, isActive: T };
97
97
  }
98
- function zr(e, t = !0, n) {
99
- Gn() ? jr(e, n) : t ? e() : nr(e);
98
+ function zr(e, r = !0, n) {
99
+ Gn() ? jr(e, n) : r ? e() : nr(e);
100
100
  }
101
- function Hn(e, t) {
102
- return e === t;
101
+ function Hn(e, r) {
102
+ return e === r;
103
103
  }
104
104
  function ct(...e) {
105
- var t;
105
+ var r;
106
106
  const n = e[0], l = e[1];
107
- let s = (t = e[2]) != null ? t : Hn;
107
+ let s = (r = e[2]) != null ? r : Hn;
108
108
  if (typeof s == "string") {
109
109
  const h = s;
110
- s = (D, S) => D[h] === S[h];
110
+ s = (A, E) => A[h] === E[h];
111
111
  }
112
- return le(() => ae(n).filter((h) => ae(l).findIndex((D) => s(h, D)) === -1));
112
+ return le(() => ae(n).filter((h) => ae(l).findIndex((A) => s(h, A)) === -1));
113
113
  }
114
114
  function zn(e) {
115
115
  return Array.from(new Set(e));
116
116
  }
117
- function Zn(e, t) {
118
- return e.reduce((n, l) => (n.some((s) => t(l, s, e)) || n.push(l), n), []);
117
+ function Zn(e, r) {
118
+ return e.reduce((n, l) => (n.some((s) => r(l, s, e)) || n.push(l), n), []);
119
119
  }
120
- function Yn(e, t) {
120
+ function Yn(e, r) {
121
121
  return le(() => {
122
122
  const n = ae(e).map((l) => ae(l));
123
- return t ? Zn(n, t) : zn(n);
123
+ return r ? Zn(n, r) : zn(n);
124
124
  });
125
125
  }
126
- function Pt(e, t, n) {
126
+ function Pt(e, r, n) {
127
127
  let l = n != null && n.immediate ? [] : [...e instanceof Function ? e() : Array.isArray(e) ? e : ae(e)];
128
- return Ee(e, (s, h, D) => {
129
- const S = Array.from({ length: l.length }), T = [];
128
+ return Ee(e, (s, h, A) => {
129
+ const E = Array.from({ length: l.length }), T = [];
130
130
  for (const R of s) {
131
- let b = !1;
131
+ let y = !1;
132
132
  for (let c = 0; c < l.length; c++)
133
- if (!S[c] && R === l[c]) {
134
- S[c] = !0, b = !0;
133
+ if (!E[c] && R === l[c]) {
134
+ E[c] = !0, y = !0;
135
135
  break;
136
136
  }
137
- b || T.push(R);
137
+ y || T.push(R);
138
138
  }
139
- const L = l.filter((R, b) => !S[b]);
140
- t(s, l, T, L, D), l = [...s];
139
+ const L = l.filter((R, y) => !E[y]);
140
+ r(s, l, T, L, A), l = [...s];
141
141
  }, n);
142
142
  }
143
- function Jn(e, t, n = {}) {
143
+ function Jn(e, r, n = {}) {
144
144
  const {
145
145
  debounce: l = 0,
146
146
  maxWait: s = void 0,
@@ -148,7 +148,7 @@ function Jn(e, t, n = {}) {
148
148
  } = n;
149
149
  return Ct(
150
150
  e,
151
- t,
151
+ r,
152
152
  {
153
153
  ...h,
154
154
  eventFilter: Wn(l, { maxWait: s })
@@ -156,31 +156,31 @@ function Jn(e, t, n = {}) {
156
156
  );
157
157
  }
158
158
  function Zr(e) {
159
- var t;
159
+ var r;
160
160
  const n = ae(e);
161
- return (t = n == null ? void 0 : n.$el) != null ? t : n;
161
+ return (r = n == null ? void 0 : n.$el) != null ? r : n;
162
162
  }
163
163
  const Tr = $n ? window : void 0;
164
164
  function oe(...e) {
165
- let t, n, l, s;
166
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, l, s] = e, t = Tr) : [t, n, l, s] = e, !t)
165
+ let r, n, l, s;
166
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, l, s] = e, r = Tr) : [r, n, l, s] = e, !r)
167
167
  return Nr;
168
168
  Array.isArray(n) || (n = [n]), Array.isArray(l) || (l = [l]);
169
- const h = [], D = () => {
169
+ const h = [], A = () => {
170
170
  h.forEach((R) => R()), h.length = 0;
171
- }, S = (R, b, c, o) => (R.addEventListener(b, c, o), () => R.removeEventListener(b, c, o)), T = Ee(
172
- () => [Zr(t), ae(s)],
173
- ([R, b]) => {
174
- if (D(), !R)
171
+ }, E = (R, y, c, o) => (R.addEventListener(y, c, o), () => R.removeEventListener(y, c, o)), T = Ee(
172
+ () => [Zr(r), ae(s)],
173
+ ([R, y]) => {
174
+ if (A(), !R)
175
175
  return;
176
- const c = kn(b) ? { ...b } : b;
176
+ const c = kn(y) ? { ...y } : y;
177
177
  h.push(
178
- ...n.flatMap((o) => l.map((r) => S(R, o, r, c)))
178
+ ...n.flatMap((o) => l.map((t) => E(R, o, t, c)))
179
179
  );
180
180
  },
181
181
  { immediate: !0, flush: "post" }
182
182
  ), L = () => {
183
- T(), D();
183
+ T(), A();
184
184
  };
185
185
  return Bn(L), L;
186
186
  }
@@ -188,8 +188,8 @@ const Je = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window :
188
188
  function Qn() {
189
189
  return Ke in Je || (Je[Ke] = Je[Ke] || {}), Je[Ke];
190
190
  }
191
- function Xn(e, t) {
192
- return Kn[e] || t;
191
+ function Xn(e, r) {
192
+ return Kn[e] || r;
193
193
  }
194
194
  function On(e) {
195
195
  return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
@@ -228,22 +228,22 @@ const pn = {
228
228
  write: (e) => e.toISOString()
229
229
  }
230
230
  }, it = "vueuse-storage";
231
- function ft(e, t, n, l = {}) {
231
+ function ft(e, r, n, l = {}) {
232
232
  var s;
233
233
  const {
234
234
  flush: h = "pre",
235
- deep: D = !0,
236
- listenToStorageChanges: S = !0,
235
+ deep: A = !0,
236
+ listenToStorageChanges: E = !0,
237
237
  writeDefaults: T = !0,
238
238
  mergeDefaults: L = !1,
239
239
  shallow: R,
240
- window: b = Tr,
240
+ window: y = Tr,
241
241
  eventFilter: c,
242
242
  onError: o = (f) => {
243
243
  console.error(f);
244
244
  },
245
- initOnMounted: r
246
- } = l, x = (R ? xe : Z)(typeof t == "function" ? t() : t);
245
+ initOnMounted: t
246
+ } = l, x = (R ? xe : Z)(typeof r == "function" ? r() : r);
247
247
  if (!n)
248
248
  try {
249
249
  n = Xn("getDefaultStorage", () => {
@@ -255,16 +255,16 @@ function ft(e, t, n, l = {}) {
255
255
  }
256
256
  if (!n)
257
257
  return x;
258
- const E = ae(t), y = On(E), I = (s = l.serializer) != null ? s : pn[y], { pause: B, resume: U } = qn(
258
+ const S = ae(r), w = On(S), I = (s = l.serializer) != null ? s : pn[w], { pause: B, resume: U } = qn(
259
259
  x,
260
260
  () => P(x.value),
261
- { flush: h, deep: D, eventFilter: c }
261
+ { flush: h, deep: A, eventFilter: c }
262
262
  );
263
- b && S && zr(() => {
264
- oe(b, "storage", A), oe(b, it, g), r && A();
265
- }), r || A();
263
+ y && E && zr(() => {
264
+ oe(y, "storage", D), oe(y, it, g), t && D();
265
+ }), t || D();
266
266
  function _(f, C) {
267
- b && b.dispatchEvent(new CustomEvent(it, {
267
+ y && y.dispatchEvent(new CustomEvent(it, {
268
268
  detail: {
269
269
  key: e,
270
270
  oldValue: f,
@@ -289,17 +289,17 @@ function ft(e, t, n, l = {}) {
289
289
  function m(f) {
290
290
  const C = f ? f.newValue : n.getItem(e);
291
291
  if (C == null)
292
- return T && E != null && n.setItem(e, I.write(E)), E;
292
+ return T && S != null && n.setItem(e, I.write(S)), S;
293
293
  if (!f && L) {
294
294
  const G = I.read(C);
295
- return typeof L == "function" ? L(G, E) : y === "object" && !Array.isArray(G) ? { ...E, ...G } : G;
295
+ return typeof L == "function" ? L(G, S) : w === "object" && !Array.isArray(G) ? { ...S, ...G } : G;
296
296
  } else
297
297
  return typeof C != "string" ? C : I.read(C);
298
298
  }
299
- function A(f) {
299
+ function D(f) {
300
300
  if (!(f && f.storageArea !== n)) {
301
301
  if (f && f.key == null) {
302
- x.value = E;
302
+ x.value = S;
303
303
  return;
304
304
  }
305
305
  if (!(f && f.key !== e)) {
@@ -315,66 +315,66 @@ function ft(e, t, n, l = {}) {
315
315
  }
316
316
  }
317
317
  function g(f) {
318
- A(f.detail);
318
+ D(f.detail);
319
319
  }
320
320
  return x;
321
321
  }
322
322
  function ea(e) {
323
- const t = Gr(), n = Un(
323
+ const r = Gr(), n = Un(
324
324
  () => null,
325
- () => e ? Zr(e) : t.proxy.$el
325
+ () => e ? Zr(e) : r.proxy.$el
326
326
  );
327
327
  return Cn(n.trigger), jr(n.trigger), n;
328
328
  }
329
329
  function ra(e = ea()) {
330
- const t = xe(), n = () => {
330
+ const r = xe(), n = () => {
331
331
  const l = Zr(e);
332
- l && (t.value = l.parentElement);
332
+ l && (r.value = l.parentElement);
333
333
  };
334
- return zr(n), Ee(() => ae(e), n), t;
334
+ return zr(n), Ee(() => ae(e), n), r;
335
335
  }
336
336
  function ta(e) {
337
337
  return (e || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g, na);
338
338
  }
339
339
  function na(e) {
340
- const t = Math.random() * 16 | 0;
341
- return (e == "x" ? t : t & 3 | 8).toString(16);
340
+ const r = Math.random() * 16 | 0;
341
+ return (e == "x" ? r : r & 3 | 8).toString(16);
342
342
  }
343
343
  function aa(e) {
344
- const t = Z([]), n = xe(), l = xe(), s = xe(), h = le(() => n.value != null);
345
- function D(b) {
346
- t.value = t.value.filter((c) => c.id != b);
344
+ const r = Z([]), n = xe(), l = xe(), s = xe(), h = le(() => n.value != null);
345
+ function A(y) {
346
+ r.value = r.value.filter((c) => c.id != y);
347
347
  }
348
- function S(b) {
348
+ function E(y) {
349
349
  const c = {
350
350
  id: ta(),
351
- msg: b ?? "Loading"
351
+ msg: y ?? "Loading"
352
352
  };
353
- return t.value.push(c), c.id;
353
+ return r.value.push(c), c.id;
354
354
  }
355
- function T(b) {
356
- b != null && (l.value = b.toString());
355
+ function T(y) {
356
+ y != null && (l.value = y.toString());
357
357
  }
358
358
  function L() {
359
359
  l.value = void 0;
360
360
  }
361
- async function R(b, c) {
361
+ async function R(y, c) {
362
362
  const o = { ...c };
363
363
  o.completionMsg ?? (o.completionMsg = e == null ? void 0 : e.completionMsg), o.confirmationMsg ?? (o.confirmationMsg = e == null ? void 0 : e.confirmationMsg), o.errorMsg ?? (o.errorMsg = e == null ? void 0 : e.errorMsg), o.loadingMsg ?? (o.loadingMsg = (e == null ? void 0 : e.loadingMsg) ?? "Loading"), o.requireConfirmation ?? (o.requireConfirmation = e == null ? void 0 : e.requireConfirmation);
364
- const r = S(o.loadingMsg);
364
+ const t = E(o.loadingMsg);
365
365
  let x = null;
366
366
  try {
367
- return o.requireConfirmation || o.confirmationMsg, x = await b(), o.completionMsg != null && (s.value = o.completionMsg), x;
368
- } catch (E) {
367
+ return o.requireConfirmation || o.confirmationMsg, x = await y(), o.completionMsg != null && (s.value = o.completionMsg), x;
368
+ } catch (S) {
369
369
  if (o.throwError == !0)
370
370
  return x;
371
- T(o.errorMsg ?? E ?? "error");
371
+ T(o.errorMsg ?? S ?? "error");
372
372
  } finally {
373
- D(r);
373
+ A(t);
374
374
  }
375
375
  }
376
- return Pt(t, (b) => {
377
- n.value = b.length > 0 ? b[0].msg : void 0;
376
+ return Pt(r, (y) => {
377
+ n.value = y.length > 0 ? y[0].msg : void 0;
378
378
  }, { deep: !0 }), {
379
379
  actionErrorMsg: l,
380
380
  actionLoadingMsg: n,
@@ -386,110 +386,110 @@ function aa(e) {
386
386
  };
387
387
  }
388
388
  function ua(e) {
389
- const { actionErrorMsg: t, actionLoadingMsg: n, clearErrors: l, isLoading: s, doAction: h, logError: D } = aa(e);
390
- function S(r) {
391
- r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to delete this item?" : void 0), r.store ?? (r.store = e == null ? void 0 : e.store);
392
- const x = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
393
- return r.nav != null && x != null && (r.onDeleteAsync ?? (r.onDeleteAsync = () => x().deleteItem(r))), h(async () => {
394
- let E;
395
- r.onCanDeleteAsync != null && (E = await r.onCanDeleteAsync(r.data)), E == null && r.onDeleteAsync != null && (E = await r.onDeleteAsync(r.data)), E == null && r.onDeleteSuccessAsync != null && await r.onDeleteSuccessAsync(r.data), D(E);
389
+ const { actionErrorMsg: r, actionLoadingMsg: n, clearErrors: l, isLoading: s, doAction: h, logError: A } = aa(e);
390
+ function E(t) {
391
+ t.nav ?? (t.nav = e == null ? void 0 : e.nav), t.proxyID ?? (t.proxyID = e == null ? void 0 : e.proxyID), t.refresh ?? (t.refresh = e == null ? void 0 : e.refresh), t.throwError ?? (t.throwError = e == null ? void 0 : e.throwError), t.url ?? (t.url = e == null ? void 0 : e.url), t.confirmationMsg ?? (t.confirmationMsg = t.requireConfirmation === !0 ? "Are you sure you want to delete this item?" : void 0), t.store ?? (t.store = e == null ? void 0 : e.store);
392
+ const x = (t == null ? void 0 : t.store) ?? (e == null ? void 0 : e.store);
393
+ return t.nav != null && x != null && (t.onDeleteAsync ?? (t.onDeleteAsync = () => x().deleteItem(t))), h(async () => {
394
+ let S;
395
+ t.onCanDeleteAsync != null && (S = await t.onCanDeleteAsync(t.data)), S == null && t.onDeleteAsync != null && (S = await t.onDeleteAsync(t.data)), S == null && t.onDeleteSuccessAsync != null && await t.onDeleteSuccessAsync(t.data), A(S);
396
396
  }, {
397
- completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
398
- confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
399
- errorMsg: r.errorMsg ?? (e == null ? void 0 : e.errorMsg),
400
- loadingMsg: r.loadingMsg ?? (e == null ? void 0 : e.loadingMsg) ?? "Deleting",
401
- requireConfirmation: r.requireConfirmation ?? (e == null ? void 0 : e.requireConfirmation),
402
- throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
397
+ completionMsg: t.completionMsg ?? (e == null ? void 0 : e.completionMsg),
398
+ confirmationMsg: t.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
399
+ errorMsg: t.errorMsg ?? (e == null ? void 0 : e.errorMsg),
400
+ loadingMsg: t.loadingMsg ?? (e == null ? void 0 : e.loadingMsg) ?? "Deleting",
401
+ requireConfirmation: t.requireConfirmation ?? (e == null ? void 0 : e.requireConfirmation),
402
+ throwError: t.throwError ?? (e == null ? void 0 : e.throwError)
403
403
  });
404
404
  }
405
- function T(r) {
406
- 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);
407
- const x = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
408
- return r.nav != null && x != null && (r.onGetAsync ?? (r.onGetAsync = async () => (await x().get(r)).data)), h(async () => {
409
- let E;
410
- return r.onGetAsync != null && (E = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (E = await r.onGetSuccessAsync(E, r)), E;
405
+ function T(t) {
406
+ t.nav ?? (t.nav = e == null ? void 0 : e.nav), t.proxyID ?? (t.proxyID = e == null ? void 0 : e.proxyID), t.refresh ?? (t.refresh = e == null ? void 0 : e.refresh), t.throwError ?? (t.throwError = e == null ? void 0 : e.throwError), t.url ?? (t.url = e == null ? void 0 : e.url), t.confirmationMsg ?? (t.confirmationMsg = t.requireConfirmation === !0 ? "Are you sure you want to get this item?" : void 0);
407
+ const x = (t == null ? void 0 : t.store) ?? (e == null ? void 0 : e.store);
408
+ return t.nav != null && x != null && (t.onGetAsync ?? (t.onGetAsync = async () => (await x().get(t)).data)), h(async () => {
409
+ let S;
410
+ return t.onGetAsync != null && (S = await t.onGetAsync(t)), t.onGetSuccessAsync != null && (S = await t.onGetSuccessAsync(S, t)), S;
411
411
  }, {
412
- completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
413
- confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
414
- errorMsg: r.errorMsg ?? (e == null ? void 0 : e.errorMsg),
415
- loadingMsg: r.loadingMsg ?? (e == null ? void 0 : e.loadingMsg) ?? "Retrieving",
416
- requireConfirmation: r.requireConfirmation ?? (e == null ? void 0 : e.requireConfirmation),
417
- throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
412
+ completionMsg: t.completionMsg ?? (e == null ? void 0 : e.completionMsg),
413
+ confirmationMsg: t.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
414
+ errorMsg: t.errorMsg ?? (e == null ? void 0 : e.errorMsg),
415
+ loadingMsg: t.loadingMsg ?? (e == null ? void 0 : e.loadingMsg) ?? "Retrieving",
416
+ requireConfirmation: t.requireConfirmation ?? (e == null ? void 0 : e.requireConfirmation),
417
+ throwError: t.throwError ?? (e == null ? void 0 : e.throwError)
418
418
  });
419
419
  }
420
- function L(r) {
421
- 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);
422
- const x = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
423
- return r.nav != null && x != null && (r.onGetAsync ?? (r.onGetAsync = () => x().getAll(r))), h(async () => {
424
- let E;
425
- return r.onGetAsync != null && (E = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (E = await r.onGetSuccessAsync(E, r)), E;
420
+ function L(t) {
421
+ t.nav ?? (t.nav = e == null ? void 0 : e.nav), t.proxyID ?? (t.proxyID = e == null ? void 0 : e.proxyID), t.refresh ?? (t.refresh = e == null ? void 0 : e.refresh), t.throwError ?? (t.throwError = e == null ? void 0 : e.throwError), t.url ?? (t.url = e == null ? void 0 : e.url), t.confirmationMsg ?? (t.confirmationMsg = t.requireConfirmation === !0 ? "Are you sure you want to get these items?" : void 0);
422
+ const x = (t == null ? void 0 : t.store) ?? (e == null ? void 0 : e.store);
423
+ return t.nav != null && x != null && (t.onGetAsync ?? (t.onGetAsync = () => x().getAll(t))), h(async () => {
424
+ let S;
425
+ return t.onGetAsync != null && (S = await t.onGetAsync(t)), t.onGetSuccessAsync != null && (S = await t.onGetSuccessAsync(S, t)), S;
426
426
  }, {
427
- completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
428
- confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
429
- errorMsg: r.errorMsg ?? (e == null ? void 0 : e.errorMsg),
430
- loadingMsg: r.loadingMsg ?? (e == null ? void 0 : e.loadingMsg) ?? "Retrieving",
431
- requireConfirmation: r.requireConfirmation ?? (e == null ? void 0 : e.requireConfirmation),
432
- throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
427
+ completionMsg: t.completionMsg ?? (e == null ? void 0 : e.completionMsg),
428
+ confirmationMsg: t.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
429
+ errorMsg: t.errorMsg ?? (e == null ? void 0 : e.errorMsg),
430
+ loadingMsg: t.loadingMsg ?? (e == null ? void 0 : e.loadingMsg) ?? "Retrieving",
431
+ requireConfirmation: t.requireConfirmation ?? (e == null ? void 0 : e.requireConfirmation),
432
+ throwError: t.throwError ?? (e == null ? void 0 : e.throwError)
433
433
  });
434
434
  }
435
- function R(r) {
436
- 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);
437
- const x = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
438
- return r.nav != null && x != null && (r.onRestoreAsync ?? (r.onRestoreAsync = () => x().restore(r))), h(async () => {
439
- let E, y;
440
- return r.onCanRestoreAsync != null && (E = await r.onCanRestoreAsync(r.data)), E == null && r.onRestoreAsync != null && (y = await r.onRestoreAsync(r.data)), y != null && r.onRestoreSuccessAsync != null && await r.onRestoreSuccessAsync(y), D(E), y;
435
+ function R(t) {
436
+ t.nav ?? (t.nav = e == null ? void 0 : e.nav), t.proxyID ?? (t.proxyID = e == null ? void 0 : e.proxyID), t.refresh ?? (t.refresh = e == null ? void 0 : e.refresh), t.throwError ?? (t.throwError = e == null ? void 0 : e.throwError), t.url ?? (t.url = e == null ? void 0 : e.url), t.confirmationMsg ?? (t.confirmationMsg = t.requireConfirmation === !0 ? "Are you sure you want to restore this item?" : void 0);
437
+ const x = (t == null ? void 0 : t.store) ?? (e == null ? void 0 : e.store);
438
+ return t.nav != null && x != null && (t.onRestoreAsync ?? (t.onRestoreAsync = () => x().restore(t))), h(async () => {
439
+ let S, w;
440
+ return t.onCanRestoreAsync != null && (S = await t.onCanRestoreAsync(t.data)), S == null && t.onRestoreAsync != null && (w = await t.onRestoreAsync(t.data)), w != null && t.onRestoreSuccessAsync != null && await t.onRestoreSuccessAsync(w), A(S), w;
441
441
  }, {
442
- completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
443
- confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
444
- errorMsg: r.errorMsg ?? (e == null ? void 0 : e.errorMsg),
445
- loadingMsg: r.loadingMsg ?? (e == null ? void 0 : e.loadingMsg) ?? "Restoring",
446
- requireConfirmation: r.requireConfirmation ?? (e == null ? void 0 : e.requireConfirmation),
447
- throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
442
+ completionMsg: t.completionMsg ?? (e == null ? void 0 : e.completionMsg),
443
+ confirmationMsg: t.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
444
+ errorMsg: t.errorMsg ?? (e == null ? void 0 : e.errorMsg),
445
+ loadingMsg: t.loadingMsg ?? (e == null ? void 0 : e.loadingMsg) ?? "Restoring",
446
+ requireConfirmation: t.requireConfirmation ?? (e == null ? void 0 : e.requireConfirmation),
447
+ throwError: t.throwError ?? (e == null ? void 0 : e.throwError)
448
448
  });
449
449
  }
450
- function b(r) {
451
- 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);
452
- const x = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
453
- return r.onGetSaveAsync ?? (r.onGetSaveAsync = (E) => E), r.onCanSaveAsync ?? (r.onCanSaveAsync = () => Promise.resolve(void 0)), r.nav != null && x != null && (r.onSaveAsync ?? (r.onSaveAsync = async () => r.mode == "new" ? await x().post(r) : await x().patch(r))), h(async () => {
454
- let E;
455
- if (r.onGetSaveAsync != null && (E = await r.onGetSaveAsync(r.data)), E == null)
450
+ function y(t) {
451
+ t.nav ?? (t.nav = e == null ? void 0 : e.nav), t.proxyID ?? (t.proxyID = e == null ? void 0 : e.proxyID), t.refresh ?? (t.refresh = e == null ? void 0 : e.refresh), t.throwError ?? (t.throwError = e == null ? void 0 : e.throwError), t.url ?? (t.url = e == null ? void 0 : e.url), t.confirmationMsg ?? (t.confirmationMsg = t.requireConfirmation === !0 ? "Are you sure you want to save this item?" : void 0);
452
+ const x = (t == null ? void 0 : t.store) ?? (e == null ? void 0 : e.store);
453
+ return t.onGetSaveAsync ?? (t.onGetSaveAsync = (S) => S), t.onCanSaveAsync ?? (t.onCanSaveAsync = () => Promise.resolve(void 0)), t.nav != null && x != null && (t.onSaveAsync ?? (t.onSaveAsync = async () => t.mode == "new" ? await x().post(t) : await x().patch(t))), h(async () => {
454
+ let S;
455
+ if (t.onGetSaveAsync != null && (S = await t.onGetSaveAsync(t.data)), S == null)
456
456
  return;
457
- if (r.onCanSaveAsync != null) {
458
- let I = await r.onCanSaveAsync(E);
459
- if (D(I), I == null)
457
+ if (t.onCanSaveAsync != null) {
458
+ let I = await t.onCanSaveAsync(S);
459
+ if (A(I), I == null)
460
460
  return;
461
461
  }
462
- let y;
463
- return r.onSaveAsync != null && (y = await r.onSaveAsync(E), y = y.data), r.onSaveSuccessAsync != null && (y = await r.onSaveSuccessAsync(y)), y;
462
+ let w;
463
+ return t.onSaveAsync != null && (w = await t.onSaveAsync(S), w = w.data), t.onSaveSuccessAsync != null && (w = await t.onSaveSuccessAsync(w)), w;
464
464
  }, {
465
- completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
466
- confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
467
- errorMsg: r.errorMsg ?? (e == null ? void 0 : e.errorMsg),
468
- loadingMsg: r.loadingMsg ?? (e == null ? void 0 : e.loadingMsg) ?? "Saving",
469
- requireConfirmation: r.requireConfirmation ?? (e == null ? void 0 : e.requireConfirmation),
470
- throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
465
+ completionMsg: t.completionMsg ?? (e == null ? void 0 : e.completionMsg),
466
+ confirmationMsg: t.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
467
+ errorMsg: t.errorMsg ?? (e == null ? void 0 : e.errorMsg),
468
+ loadingMsg: t.loadingMsg ?? (e == null ? void 0 : e.loadingMsg) ?? "Saving",
469
+ requireConfirmation: t.requireConfirmation ?? (e == null ? void 0 : e.requireConfirmation),
470
+ throwError: t.throwError ?? (e == null ? void 0 : e.throwError)
471
471
  });
472
472
  }
473
- function c(r) {
474
- return 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), h(async () => await r.api.post(r), e);
473
+ function c(t) {
474
+ return t.nav ?? (t.nav = e == null ? void 0 : e.nav), t.proxyID ?? (t.proxyID = e == null ? void 0 : e.proxyID), t.refresh ?? (t.refresh = e == null ? void 0 : e.refresh), t.throwError ?? (t.throwError = e == null ? void 0 : e.throwError), t.url ?? (t.url = e == null ? void 0 : e.url), h(async () => await t.api.post(t), e);
475
475
  }
476
- function o(r) {
477
- return 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), h(async () => await r.api.get(r), e);
476
+ function o(t) {
477
+ return t.nav ?? (t.nav = e == null ? void 0 : e.nav), t.proxyID ?? (t.proxyID = e == null ? void 0 : e.proxyID), t.refresh ?? (t.refresh = e == null ? void 0 : e.refresh), t.throwError ?? (t.throwError = e == null ? void 0 : e.throwError), t.url ?? (t.url = e == null ? void 0 : e.url), h(async () => await t.api.get(t), e);
478
478
  }
479
479
  return {
480
480
  apiGet: o,
481
481
  apiPost: c,
482
482
  actionLoadingMsg: n,
483
- actionErrorMsg: t,
483
+ actionErrorMsg: r,
484
484
  clearErrors: l,
485
- deleteItem: S,
485
+ deleteItem: E,
486
486
  doAction: h,
487
487
  getAllItems: L,
488
488
  getItem: T,
489
489
  isLoading: s,
490
- logError: D,
490
+ logError: A,
491
491
  restoreItem: R,
492
- saveItem: b
492
+ saveItem: y
493
493
  };
494
494
  }
495
495
  var Qe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -500,39 +500,39 @@ var He = function() {
500
500
  function e(s) {
501
501
  return s;
502
502
  }
503
- function t(s) {
503
+ function r(s) {
504
504
  return typeof s == "string" ? s.toLowerCase() : s;
505
505
  }
506
506
  function n(s, h) {
507
507
  if (h = typeof h == "object" ? h : { direction: h }, typeof s != "function") {
508
- var D = s;
509
- s = function(b) {
510
- return b[D] ? b[D] : "";
508
+ var A = s;
509
+ s = function(y) {
510
+ return y[A] ? y[A] : "";
511
511
  };
512
512
  }
513
513
  if (s.length === 1) {
514
- var S = s, T = h.ignoreCase ? t : e, L = h.cmp || function(b, c) {
515
- return b < c ? -1 : b > c ? 1 : 0;
514
+ var E = s, T = h.ignoreCase ? r : e, L = h.cmp || function(y, c) {
515
+ return y < c ? -1 : y > c ? 1 : 0;
516
516
  };
517
- s = function(b, c) {
518
- return L(T(S(b)), T(S(c)));
517
+ s = function(y, c) {
518
+ return L(T(E(y)), T(E(c)));
519
519
  };
520
520
  }
521
521
  const R = { "-1": "", desc: "" };
522
- return h.direction in R ? function(b, c) {
523
- return -s(b, c);
522
+ return h.direction in R ? function(y, c) {
523
+ return -s(y, c);
524
524
  } : s;
525
525
  }
526
526
  function l(s, h) {
527
- var D = typeof this == "function" && !this.firstBy ? this : !1, S = n(s, h), T = D ? function(L, R) {
528
- return D(L, R) || S(L, R);
529
- } : S;
527
+ var A = typeof this == "function" && !this.firstBy ? this : !1, E = n(s, h), T = A ? function(L, R) {
528
+ return A(L, R) || E(L, R);
529
+ } : E;
530
530
  return T.thenBy = l, T;
531
531
  }
532
532
  return l.firstBy = l, l;
533
533
  }();
534
- function Te(e, t) {
535
- let n = e ?? "", l = t ?? "";
534
+ function Te(e, r) {
535
+ let n = e ?? "", l = r ?? "";
536
536
  if (n.endsWith("/"))
537
537
  do
538
538
  n = n.slice(0, n.length - 1);
@@ -544,83 +544,83 @@ function Te(e, t) {
544
544
  return `${n}/${l}`;
545
545
  }
546
546
  function Ya(e) {
547
- return e == null || !Array.isArray(e) ? e : [...new Set(e.map((t) => t))];
547
+ return e == null || !Array.isArray(e) ? e : [...new Set(e.map((r) => r))];
548
548
  }
549
549
  function Ja(e = "blitzItExtensionExists") {
550
550
  try {
551
- var t = document.getElementById(e);
552
- return t != null;
551
+ var r = document.getElementById(e);
552
+ return r != null;
553
553
  } catch (n) {
554
554
  return console.log(ma(n)), !1;
555
555
  }
556
556
  }
557
- function Ka(e, t) {
557
+ function Ka(e, r) {
558
558
  return [
559
- { lat: e.lat - t, lng: e.lng + t },
560
- { lat: e.lat - t, lng: e.lng - t },
561
- { lat: e.lat + t, lng: e.lng - t },
562
- { lat: e.lat + t, lng: e.lng + t }
559
+ { lat: e.lat - r, lng: e.lng + r },
560
+ { lat: e.lat - r, lng: e.lng - r },
561
+ { lat: e.lat + r, lng: e.lng - r },
562
+ { lat: e.lat + r, lng: e.lng + r }
563
563
  ];
564
564
  }
565
- function Qa(e, t) {
565
+ function Qa(e, r) {
566
566
  return [
567
- { lat: e.lat - t * 2, lng: e.lng + t },
568
- { lat: e.lat - t * 2, lng: e.lng - t },
569
- { lat: e.lat, lng: e.lng - t },
570
- { lat: e.lat, lng: e.lng + t }
567
+ { lat: e.lat - r * 2, lng: e.lng + r },
568
+ { lat: e.lat - r * 2, lng: e.lng - r },
569
+ { lat: e.lat, lng: e.lng - r },
570
+ { lat: e.lat, lng: e.lng + r }
571
571
  ];
572
572
  }
573
- function Xa(e, t) {
573
+ function Xa(e, r) {
574
574
  return [
575
- { lat: e.lat, lng: e.lng + t },
576
- { lat: e.lat, lng: e.lng - t },
577
- { lat: e.lat + t * 2, lng: e.lng - t },
578
- { lat: e.lat + t * 2, lng: e.lng + t }
575
+ { lat: e.lat, lng: e.lng + r },
576
+ { lat: e.lat, lng: e.lng - r },
577
+ { lat: e.lat + r * 2, lng: e.lng - r },
578
+ { lat: e.lat + r * 2, lng: e.lng + r }
579
579
  ];
580
580
  }
581
581
  function Oa(e) {
582
- var t = Lt(e, !0);
583
- return t = t.toLowerCase(), t = t.replace(" victoria ", "vic"), t = t.replace(" queensland ", "qld"), t = t.replace(" new south wales ", "nsw"), t = t.replace(" northern territory ", "nt"), t = t.replace(" western australia ", "wa"), t = t.replace(" tasmania ", "tas"), t = t.replace(" south australia ", "sa"), t = t.replace(" australian captial territory ", "act"), t = t.replace(" & ", " and "), t = t.replace(" road", " rd"), t = t.replace(" street", " st"), t = t.replace(" lane", " ln"), t = t.replace(" alley", " aly"), t = t.replace(" arcade", " arc"), t = t.replace(" boulevard", " blvd"), t = t.replace(" court", " ct"), t = t.replace(" cove", " cv"), t = t.replace(" highway", " hwy"), t.replaceAll(" ", "");
582
+ var r = Lt(e, !0);
583
+ return r = r.toLowerCase(), r = r.replace(" victoria ", "vic"), r = r.replace(" queensland ", "qld"), r = r.replace(" new south wales ", "nsw"), r = r.replace(" northern territory ", "nt"), r = r.replace(" western australia ", "wa"), r = r.replace(" tasmania ", "tas"), r = r.replace(" south australia ", "sa"), r = r.replace(" australian captial territory ", "act"), r = r.replace(" & ", " and "), r = r.replace(" road", " rd"), r = r.replace(" street", " st"), r = r.replace(" lane", " ln"), r = r.replace(" alley", " aly"), r = r.replace(" arcade", " arc"), r = r.replace(" boulevard", " blvd"), r = r.replace(" court", " ct"), r = r.replace(" cove", " cv"), r = r.replace(" highway", " hwy"), r.replaceAll(" ", "");
584
584
  }
585
- function Lt(e, t = !1) {
585
+ function Lt(e, r = !1) {
586
586
  if (e == null)
587
587
  return "";
588
588
  if (typeof e != "object")
589
589
  return e;
590
590
  var n = "";
591
- return e.addressLineOne != null && !t && (n = e.addressLineOne + " "), e.streetNumber != null && (n = n + e.streetNumber + " "), e.streetName != null && (n = n + e.streetName + ", "), e.suburb != null && (n = n + e.suburb + " "), e.state != null && (n = n + e.state + " "), e.postcode != null && (n = n + e.postcode), n;
591
+ return e.addressLineOne != null && !r && (n = e.addressLineOne + " "), e.streetNumber != null && (n = n + e.streetNumber + " "), e.streetName != null && (n = n + e.streetName + ", "), e.suburb != null && (n = n + e.suburb + " "), e.state != null && (n = n + e.state + " "), e.postcode != null && (n = n + e.postcode), n;
592
592
  }
593
- function pa(e, t, n) {
593
+ function pa(e, r, n) {
594
594
  if (e) {
595
595
  var l = new Image();
596
- l.onload = t, l.onerror = n, l.src = e;
596
+ l.onload = r, l.onerror = n, l.src = e;
597
597
  }
598
598
  }
599
- async function eu(e, t = !0) {
599
+ async function eu(e, r = !0) {
600
600
  return new Promise((n, l) => {
601
601
  e == null && l("no url given");
602
602
  var s = new Image();
603
603
  s.setAttribute("crossOrigin", "anonymous"), s.onload = function() {
604
604
  var h = document.createElement("canvas");
605
605
  h.width = this.width, h.height = this.height;
606
- var D = h.getContext("2d");
607
- D == null || D.drawImage(this, 0, 0), n(h.toDataURL("image/png"));
606
+ var A = h.getContext("2d");
607
+ A == null || A.drawImage(this, 0, 0), n(h.toDataURL("image/png"));
608
608
  }, s.onerror = function() {
609
- console.log("errr"), t ? l("image could not be loaded for some reason") : n(null);
609
+ console.log("errr"), r ? l("image could not be loaded for some reason") : n(null);
610
610
  }, e != null && (s.src = e);
611
611
  });
612
612
  }
613
613
  function ca(e) {
614
- return e && e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase());
614
+ return e && e.replace(/([A-Z])/g, " $1").replace(/^./, (r) => r.toUpperCase());
615
615
  }
616
616
  function ru(e) {
617
617
  if (e != null && typeof e == "object")
618
- for (var t in e)
619
- /^[A-Z]/.test(t) && Object.hasOwnProperty.call(e, t) && (e[t.charAt(0).toLowerCase() + t.substring(1)] = e[t], delete e[t]);
618
+ for (var r in e)
619
+ /^[A-Z]/.test(r) && Object.hasOwnProperty.call(e, r) && (e[r.charAt(0).toLowerCase() + r.substring(1)] = e[r], delete e[r]);
620
620
  return e;
621
621
  }
622
622
  function ia(e) {
623
- return e == null ? e : e.replace(/\w\S*/g, (t) => t.replace(/^\w/, (n) => n.toUpperCase()));
623
+ return e == null ? e : e.replace(/\w\S*/g, (r) => r.replace(/^\w/, (n) => n.toUpperCase()));
624
624
  }
625
625
  const ze = [
626
626
  { value: 1, short: "sun", values: ["sun", "sunday"] },
@@ -635,40 +635,40 @@ const ze = [
635
635
  function tu(e) {
636
636
  if (e == null)
637
637
  return 0;
638
- const t = e.replaceAll(" ", "").split(",").map((l) => l.toLowerCase()), n = ze.filter((l) => l.values.some((s) => t.some((h) => s == h))).map((l) => l.value);
638
+ const r = e.replaceAll(" ", "").split(",").map((l) => l.toLowerCase()), n = ze.filter((l) => l.values.some((s) => r.some((h) => s == h))).map((l) => l.value);
639
639
  return n.length == 0 ? 8 : Math.min(...n);
640
640
  }
641
641
  function nu(e) {
642
- return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((t) => {
643
- let n = ze.find((l) => l.values.some((s) => s == t));
642
+ return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((r) => {
643
+ let n = ze.find((l) => l.values.some((s) => s == r));
644
644
  return n != null ? n.short : "";
645
- }).filter((t) => t != null && t.length > 0).toString();
645
+ }).filter((r) => r != null && r.length > 0).toString();
646
646
  }
647
- function au(e, t) {
648
- if (e == null || t == null)
647
+ function au(e, r) {
648
+ if (e == null || r == null)
649
649
  return !0;
650
- const n = e.replaceAll(" ", "").split(",").map((h) => h.toLowerCase()), l = t.replaceAll(" ", "").toLowerCase(), s = ze.find((h) => h.values.some((D) => D == l));
651
- return s != null && n.some((h) => h == s.short || s.values.some((D) => D == h));
650
+ const n = e.replaceAll(" ", "").split(",").map((h) => h.toLowerCase()), l = r.replaceAll(" ", "").toLowerCase(), s = ze.find((h) => h.values.some((A) => A == l));
651
+ return s != null && n.some((h) => h == s.short || s.values.some((A) => A == h));
652
652
  }
653
- function uu(e, t) {
654
- if (t == null)
653
+ function uu(e, r) {
654
+ if (r == null)
655
655
  return e;
656
656
  let n = e ?? "";
657
- n = `${n},${t}`;
658
- let l = [...new Set(n.replaceAll(" ", "").toLowerCase().split(",").map((s) => ze.find((h) => h.values.some((D) => D == s))).filter((s) => s != null).sort(He.firstBy((s) => (s == null ? void 0 : s.value) ?? 0)).map((s) => s == null ? void 0 : s.short))].toString();
657
+ n = `${n},${r}`;
658
+ let l = [...new Set(n.replaceAll(" ", "").toLowerCase().split(",").map((s) => ze.find((h) => h.values.some((A) => A == s))).filter((s) => s != null).sort(He.firstBy((s) => (s == null ? void 0 : s.value) ?? 0)).map((s) => s == null ? void 0 : s.short))].toString();
659
659
  return l.length > 0 ? l : void 0;
660
660
  }
661
- function lu(e, t) {
662
- if (t == null || e == null)
661
+ function lu(e, r) {
662
+ if (r == null || e == null)
663
663
  return e;
664
- let n = e ?? "", l = t.replaceAll(" ", "").toLowerCase(), s = [...new Set(n.replaceAll(" ", "").toLowerCase().split(",").map((h) => ze.find((D) => D.values.some((S) => S == h && S != l))).filter((h) => h != null).sort(He.firstBy((h) => (h == null ? void 0 : h.value) ?? 0)).map((h) => h == null ? void 0 : h.short))].toString();
664
+ let n = e ?? "", l = r.replaceAll(" ", "").toLowerCase(), s = [...new Set(n.replaceAll(" ", "").toLowerCase().split(",").map((h) => ze.find((A) => A.values.some((E) => E == h && E != l))).filter((h) => h != null).sort(He.firstBy((h) => (h == null ? void 0 : h.value) ?? 0)).map((h) => h == null ? void 0 : h.short))].toString();
665
665
  return s.length > 0 ? s : void 0;
666
666
  }
667
- function cu(e, t) {
668
- return e != null && Array.isArray(e) && e.length == t;
667
+ function cu(e, r) {
668
+ return e != null && Array.isArray(e) && e.length == r;
669
669
  }
670
- function $e(e, t = 0) {
671
- return e != null && Array.isArray(e) && e.length > t;
670
+ function $e(e, r = 0) {
671
+ return e != null && Array.isArray(e) && e.length > r;
672
672
  }
673
673
  function fa(e) {
674
674
  return e == "0001-01-01T00:00:00Z";
@@ -679,70 +679,70 @@ function iu() {
679
679
  function sa() {
680
680
  return "0001-01-01T00:00:00Z";
681
681
  }
682
- function fu(e, t) {
682
+ function fu(e, r) {
683
683
  let n = "1", l = 0;
684
- if (l < t)
684
+ if (l < r)
685
685
  do
686
686
  n = n + "0", l += 1;
687
- while (l < t);
687
+ while (l < r);
688
688
  let s = Number.parseInt(n);
689
689
  return Math.round(e * s) / s;
690
690
  }
691
- function su(e, t) {
691
+ function su(e, r) {
692
692
  let n = e ?? "";
693
- return t != null && (oa(n, t) ? n = n.split(",").filter((l) => l != t).toString() : n != null ? n = `${n},${t}` : n = t), n != null && n.length > 0 ? n : null;
693
+ return r != null && (oa(n, r) ? n = n.split(",").filter((l) => l != r).toString() : n != null ? n = `${n},${r}` : n = r), n != null && n.length > 0 ? n : null;
694
694
  }
695
- function oa(e, t) {
695
+ function oa(e, r) {
696
696
  if (e == null || e.length == 0)
697
697
  return !1;
698
- if (!t)
698
+ if (!r)
699
699
  return !0;
700
- var n = e.split(","), l = t.split(",");
700
+ var n = e.split(","), l = r.split(",");
701
701
  return n.some((s) => l.some((h) => h == s));
702
702
  }
703
703
  function Yr(e) {
704
704
  if (!e)
705
705
  return e;
706
- let t, n = Array.isArray(e) ? [] : {};
706
+ let r, n = Array.isArray(e) ? [] : {};
707
707
  for (const l in e)
708
- t = e[l], n[l] = typeof t == "object" ? Yr(t) : t;
708
+ r = e[l], n[l] = typeof r == "object" ? Yr(r) : r;
709
709
  return n;
710
710
  }
711
711
  function ha(e) {
712
- return e && Object.keys(e).sort().reduce(function(t, n) {
712
+ return e && Object.keys(e).sort().reduce(function(r, n) {
713
713
  let l = e[n];
714
- return t[n] = typeof l == "object" && l !== null ? ha(l) : l, t;
714
+ return r[n] = typeof l == "object" && l !== null ? ha(l) : l, r;
715
715
  }, Array.isArray(e) ? [] : {});
716
716
  }
717
- function da(e, t) {
718
- return t == null ? !0 : e == null ? !1 : e.toLowerCase().includes(t.toLowerCase());
717
+ function da(e, r) {
718
+ return r == null ? !0 : e == null ? !1 : e.toLowerCase().includes(r.toLowerCase());
719
719
  }
720
- function Mt(e, t = (n) => n) {
720
+ function Mt(e, r = (n) => n) {
721
721
  if (e == null)
722
722
  return [];
723
- const n = Array.isArray(e) ? e : t(e);
723
+ const n = Array.isArray(e) ? e : r(e);
724
724
  return $e(n) ? [...n.reduce((l, s) => {
725
725
  l.push(s);
726
- const h = Mt(s, t);
726
+ const h = Mt(s, r);
727
727
  return $e(h) && l.push(...h), l;
728
728
  }, [])] : [];
729
729
  }
730
730
  function ou(e) {
731
- const t = e.split(","), n = t[0].indexOf("base64") >= 0 ? atob(t[1]) : decodeURI(t[1]), l = t[0].split(":")[1].split(";")[0], s = new Uint8Array(n.length);
731
+ const r = e.split(","), n = r[0].indexOf("base64") >= 0 ? atob(r[1]) : decodeURI(r[1]), l = r[0].split(":")[1].split(";")[0], s = new Uint8Array(n.length);
732
732
  for (let h = 0; h < n.length; h++)
733
733
  s[h] = n.charCodeAt(h);
734
734
  return new Blob([s], { type: l });
735
735
  }
736
736
  function ma(e) {
737
- var t = "";
737
+ var r = "";
738
738
  if (e) {
739
- if (e.message && (t = e.message), e.response && e.response.data) {
739
+ if (e.message && (r = e.message), e.response && e.response.data) {
740
740
  if (e.response.data.errors)
741
741
  for (var n = 0; n < e.response.data.errors.length; n++)
742
- t = t + " | " + e.response.data.errors[n];
743
- e.response.data.message && (t = t + " | " + e.response.data.message), t = t + " | " + JSON.stringify(e.response.data);
742
+ r = r + " | " + e.response.data.errors[n];
743
+ e.response.data.message && (r = r + " | " + e.response.data.message), r = r + " | " + JSON.stringify(e.response.data);
744
744
  }
745
- return t;
745
+ return r;
746
746
  }
747
747
  return "hmmm no error was supplied";
748
748
  }
@@ -750,15 +750,15 @@ function va() {
750
750
  const e = "#" + Math.floor(Math.random() * 16777215).toString(16);
751
751
  return e.length !== 7 ? va() : e;
752
752
  }
753
- function ga(e, t, n) {
754
- if (t == null)
753
+ function ga(e, r, n) {
754
+ if (r == null)
755
755
  return !0;
756
756
  if (e == null || n == null)
757
757
  return !1;
758
758
  for (let s = 0; s < n.length; s++) {
759
759
  const h = n[s];
760
760
  var l = Cr(e, h);
761
- if (l != null && typeof l == "string" && da(l, t))
761
+ if (l != null && typeof l == "string" && da(l, r))
762
762
  return !0;
763
763
  }
764
764
  return !1;
@@ -767,14 +767,14 @@ function hu(e) {
767
767
  return e != null ? e.replaceAll(" ", "").toLowerCase() : null;
768
768
  }
769
769
  function du(e = 2e3) {
770
- return new Promise((t) => {
771
- setTimeout(() => t(), e);
770
+ return new Promise((r) => {
771
+ setTimeout(() => r(), e);
772
772
  });
773
773
  }
774
- function Cr(e, t) {
775
- if (e == null || e == null || !t)
774
+ function Cr(e, r) {
775
+ if (e == null || e == null || !r)
776
776
  return null;
777
- var n = t.split(".");
777
+ var n = r.split(".");
778
778
  let l = n.length;
779
779
  for (var s = e, h = 0; h < l; h++)
780
780
  if (s = s[n[h]], s == null)
@@ -789,40 +789,40 @@ function wa() {
789
789
  return Pr;
790
790
  }
791
791
  function ba(e) {
792
- const t = (e == null ? void 0 : e.buildHeaders) ?? D, n = (e == null ? void 0 : e.buildQuery) ?? s, l = (e == null ? void 0 : e.buildUrl) ?? h;
792
+ const r = (e == null ? void 0 : e.buildHeaders) ?? A, n = (e == null ? void 0 : e.buildQuery) ?? s, l = (e == null ? void 0 : e.buildUrl) ?? h;
793
793
  function s(c) {
794
794
  let o = new URLSearchParams();
795
- return Object.entries(c).forEach((r) => {
796
- r[1] != null && o.append(r[0], r[1]);
797
- }), c.filterBy && o.set("filterBy", c.filterBy), c.includeCount && o.set("includeCount", c.includeCount.toString()), c.includeDetails != null && o.set("includeDetails", c.includeDetails.toString()), c.includeInactive && o.set("includeInactive", c.includeInactive.toString()), c.properties && o.set("properties", c.properties.toString()), c.query && o.set("query", c.query.toString()), c.searchString && o.set("searchString", c.searchString), c.sortOrder && o.set("sortOrder", c.sortOrder), c.sortBy && o.set("sortBy", c.sortBy), c.takeFrom && o.set("takeFrom", c.takeFrom.toString()), c.takeAmount && o.set("takeAmount", c.takeAmount.toString()), c.other && Object.entries(c.other).forEach((r) => {
798
- r[1] != null && o.append(r[0], r[1].toString());
795
+ return Object.entries(c).forEach((t) => {
796
+ t[1] != null && o.append(t[0], t[1]);
797
+ }), c.filterBy && o.set("filterBy", c.filterBy), c.includeCount && o.set("includeCount", c.includeCount.toString()), c.includeDetails != null && o.set("includeDetails", c.includeDetails.toString()), c.includeInactive && o.set("includeInactive", c.includeInactive.toString()), c.properties && o.set("properties", c.properties.toString()), c.query && o.set("query", c.query.toString()), c.searchString && o.set("searchString", c.searchString), c.sortOrder && o.set("sortOrder", c.sortOrder), c.sortBy && o.set("sortBy", c.sortBy), c.takeFrom && o.set("takeFrom", c.takeFrom.toString()), c.takeAmount && o.set("takeAmount", c.takeAmount.toString()), c.other && Object.entries(c.other).forEach((t) => {
798
+ t[1] != null && o.append(t[0], t[1].toString());
799
799
  }), o.toString();
800
800
  }
801
801
  function h(c) {
802
- let o = K(c.url) ?? void 0, r = K(c.id);
803
- return o == null && c.nav != null && (e == null ? void 0 : e.findPath) != null && (o = e.findPath(c.nav)), c.additionalUrl != null && (o == null ? o = c.additionalUrl : o = Te(o, c.additionalUrl)), r != null && (o != null && o.includes("{id}") ? o = o.replaceAll("{id}", r) : o = Te(o, r)), c.params != null && (o = `${o}?${n(c.params)}`), c.finalUrl = o, c.finalUrl ?? "";
802
+ let o = K(c.url) ?? void 0, t = K(c.id);
803
+ return o == null && c.nav != null && (e == null ? void 0 : e.findPath) != null && (o = e.findPath(c.nav)), c.additionalUrl != null && (o == null ? o = c.additionalUrl : o = Te(o, c.additionalUrl)), t != null && (o != null && o.includes("{id}") ? o = o.replaceAll("{id}", t) : o = Te(o, t)), c.params != null && (o = `${o}?${n(c.params)}`), c.finalUrl = o, c.finalUrl ?? "";
804
804
  }
805
- function D(c) {
806
- var r, x;
805
+ function A(c) {
806
+ var t, x;
807
807
  let o = { ...c.headers };
808
- return c.proxyID && (o.ManagedCompanyAccountID ?? (o.ManagedCompanyAccountID = c.proxyID)), (e == null ? void 0 : e.useBearerToken) != !1 && ((r = e == null ? void 0 : e.auth) == null ? void 0 : r.isLoggedIn.value) == !0 && (o.authorization ?? (o.authorization = `bearer ${(x = e == null ? void 0 : e.auth) == null ? void 0 : x.credentials.value.token}`)), o["Content-Type"] ?? (o["Content-Type"] = c.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), o;
808
+ return c.proxyID && (o.ManagedCompanyAccountID ?? (o.ManagedCompanyAccountID = c.proxyID)), (e == null ? void 0 : e.useBearerToken) != !1 && ((t = e == null ? void 0 : e.auth) == null ? void 0 : t.isLoggedIn.value) == !0 && (o.authorization ?? (o.authorization = `bearer ${(x = e == null ? void 0 : e.auth) == null ? void 0 : x.credentials.value.token}`)), o["Content-Type"] ?? (o["Content-Type"] = c.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), o;
809
809
  }
810
- async function S(c) {
811
- const o = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
812
- let E = c.finalUrl, y = c.headers;
813
- E == null && (E = l(c)), c.overrideHeaders !== !0 && (y = t(c)), console.log(`Get from ${E}`);
810
+ async function E(c) {
811
+ const o = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, t = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
812
+ let S = c.finalUrl, w = c.headers;
813
+ S == null && (S = l(c)), c.overrideHeaders !== !0 && (w = r(c)), console.log(`Get from ${S}`);
814
814
  let I;
815
815
  try {
816
- if (I = await fetch(E, {
816
+ if (I = await fetch(S, {
817
817
  method: "GET",
818
818
  mode: "cors",
819
819
  cache: "no-cache",
820
- headers: y
820
+ headers: w
821
821
  }), !I.ok) {
822
822
  let B = await I.text();
823
823
  throw new Error(B ?? I.statusText ?? "Get error");
824
824
  }
825
- return x ? await I.text() : r ? await I.json() : I;
825
+ return x ? await I.text() : t ? await I.json() : I;
826
826
  } catch (B) {
827
827
  if (!o)
828
828
  return I;
@@ -830,21 +830,21 @@ function ba(e) {
830
830
  }
831
831
  }
832
832
  async function T(c) {
833
- const o = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
834
- let E = c.finalUrl, y = c.headers;
835
- E == null && (E = l(c)), c.overrideHeaders !== !0 && (y = t(c)), console.log(`Get all from ${E}`);
833
+ const o = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, t = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
834
+ let S = c.finalUrl, w = c.headers;
835
+ S == null && (S = l(c)), c.overrideHeaders !== !0 && (w = r(c)), console.log(`Get all from ${S}`);
836
836
  let I;
837
837
  try {
838
- if (I = await fetch(E, {
838
+ if (I = await fetch(S, {
839
839
  method: "GET",
840
840
  mode: "cors",
841
841
  cache: "no-cache",
842
- headers: y
842
+ headers: w
843
843
  }), !I.ok) {
844
844
  let B = await I.text();
845
845
  throw new Error(B ?? I.statusText ?? "Get all error");
846
846
  }
847
- return x ? await I.text() : r ? await I.json() : I;
847
+ return x ? await I.text() : t ? await I.json() : I;
848
848
  } catch (B) {
849
849
  if (!o)
850
850
  return I;
@@ -852,22 +852,22 @@ function ba(e) {
852
852
  }
853
853
  }
854
854
  async function L(c) {
855
- const o = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
856
- let E = c.finalUrl, y = c.headers;
857
- E == null && (E = l(c)), c.overrideHeaders !== !0 && (y = t(c)), console.log(`Post to ${E}`);
855
+ const o = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, t = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
856
+ let S = c.finalUrl, w = c.headers;
857
+ S == null && (S = l(c)), c.overrideHeaders !== !0 && (w = r(c)), console.log(`Post to ${S}`);
858
858
  let I;
859
859
  try {
860
- if (I = await fetch(E, {
860
+ if (I = await fetch(S, {
861
861
  method: "POST",
862
862
  mode: "cors",
863
863
  cache: "no-cache",
864
- headers: y,
864
+ headers: w,
865
865
  body: JSON.stringify(c.data)
866
866
  }), !I.ok) {
867
867
  let B = await I.text();
868
868
  throw new Error(B ?? I.statusText ?? "Post error!");
869
869
  }
870
- return x ? await I.text() : r ? await I.json() : I;
870
+ return x ? await I.text() : t ? await I.json() : I;
871
871
  } catch (B) {
872
872
  if (!o)
873
873
  return I;
@@ -877,22 +877,22 @@ function ba(e) {
877
877
  }
878
878
  }
879
879
  async function R(c) {
880
- const o = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
881
- let E = c.finalUrl, y = c.headers;
882
- E == null && (E = l(c)), c.overrideHeaders !== !0 && (y = t(c)), console.log(`Patch to ${E}`);
880
+ const o = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, t = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
881
+ let S = c.finalUrl, w = c.headers;
882
+ S == null && (S = l(c)), c.overrideHeaders !== !0 && (w = r(c)), console.log(`Patch to ${S}`);
883
883
  let I;
884
884
  try {
885
- if (I = await fetch(E, {
885
+ if (I = await fetch(S, {
886
886
  method: "PATCH",
887
887
  mode: "cors",
888
888
  cache: "no-cache",
889
- headers: y,
889
+ headers: w,
890
890
  body: JSON.stringify(c.data)
891
891
  }), !I.ok) {
892
892
  let B = await I.text();
893
893
  throw new Error(B ?? I.statusText ?? "Patch error!");
894
894
  }
895
- return x ? await I.text() : r ? await I.json() : I;
895
+ return x ? await I.text() : t ? await I.json() : I;
896
896
  } catch (B) {
897
897
  if (!o)
898
898
  return I;
@@ -901,31 +901,31 @@ function ba(e) {
901
901
  throw new Error(B);
902
902
  }
903
903
  }
904
- async function b(c) {
904
+ async function y(c) {
905
905
  const o = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0;
906
- let r = c.finalUrl, x = c.headers;
907
- r == null && (r = l(c)), c.overrideHeaders !== !0 && (x = t(c)), console.log(`Delete ${r}`);
908
- let E;
906
+ let t = c.finalUrl, x = c.headers;
907
+ t == null && (t = l(c)), c.overrideHeaders !== !0 && (x = r(c)), console.log(`Delete ${t}`);
908
+ let S;
909
909
  try {
910
- return E = await fetch(r, {
910
+ return S = await fetch(t, {
911
911
  method: "DELETE",
912
912
  mode: "cors",
913
913
  cache: "no-cache",
914
914
  headers: x,
915
915
  body: JSON.stringify(c.data)
916
- }), E.status == 200 ? void 0 : E.statusText;
917
- } catch (y) {
916
+ }), S.status == 200 ? void 0 : S.statusText;
917
+ } catch (w) {
918
918
  if (!o)
919
- return E;
920
- throw new Error(y);
919
+ return S;
920
+ throw new Error(w);
921
921
  }
922
922
  }
923
923
  return Pr = {
924
- buildHeaders: t,
924
+ buildHeaders: r,
925
925
  buildQuery: n,
926
926
  buildUrl: l,
927
- deleteItem: b,
928
- get: S,
927
+ deleteItem: y,
928
+ get: E,
929
929
  getAll: T,
930
930
  patch: R,
931
931
  post: L
@@ -970,10 +970,10 @@ function dt() {
970
970
  return ge == null ? "" : (ge[e] ?? ge.development).auth ?? "";
971
971
  }
972
972
  function Aa(e) {
973
- const t = Jr.NODE_ENV;
973
+ const r = Jr.NODE_ENV;
974
974
  if (ge == null)
975
975
  return "";
976
- const n = ge[t] ?? ge.development;
976
+ const n = ge[r] ?? ge.development;
977
977
  return e == null ? n.data ?? "" : n.other[e] ?? n.data ?? "";
978
978
  }
979
979
  function mu() {
@@ -987,100 +987,100 @@ function vu() {
987
987
  return Lr;
988
988
  }
989
989
  function Ia(e) {
990
- const t = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a", n = ft("auth-credentials-state", Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11)), l = ft("auth-credentials", {});
990
+ const r = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a", n = ft("auth-credentials-state", Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11)), l = ft("auth-credentials", {});
991
991
  function s(m) {
992
992
  if (m == null)
993
993
  return !0;
994
- var A = e.getAuthItem != null ? e.getAuthItem(m) : null;
995
- if (A == null)
994
+ var D = e.getAuthItem != null ? e.getAuthItem(m) : null;
995
+ if (D == null)
996
996
  return !1;
997
- if (A.requiresAuth === !1)
997
+ if (D.requiresAuth === !1)
998
998
  return !0;
999
999
  const g = K(l);
1000
- if (g.isSuspended && A.ignoreSuspension !== !0)
1000
+ if (g.isSuspended && D.ignoreSuspension !== !0)
1001
1001
  return !1;
1002
1002
  if (g.isGlobalAdmin)
1003
1003
  return !0;
1004
- if (A.permissions != null) {
1005
- for (var f = 0; f < A.permissions.length; f++)
1006
- if (!h(A.permissions[f]))
1004
+ if (D.permissions != null) {
1005
+ for (var f = 0; f < D.permissions.length; f++)
1006
+ if (!h(D.permissions[f]))
1007
1007
  return !1;
1008
1008
  }
1009
1009
  return !0;
1010
1010
  }
1011
1011
  function h(m) {
1012
- const A = K(l);
1013
- if (A.userPermissions != null)
1014
- for (var g = 0; g < A.userPermissions.length; g++) {
1015
- var f = A.userPermissions[g].split(".");
1016
- if (A.userPermissions[g] == "everything.edit" || m == f[0] && f.length > 1 && f[1] == "edit")
1012
+ const D = K(l);
1013
+ if (D.userPermissions != null)
1014
+ for (var g = 0; g < D.userPermissions.length; g++) {
1015
+ var f = D.userPermissions[g].split(".");
1016
+ if (D.userPermissions[g] == "everything.edit" || m == f[0] && f.length > 1 && f[1] == "edit")
1017
1017
  return !0;
1018
1018
  }
1019
1019
  return !1;
1020
1020
  }
1021
- function D(m) {
1021
+ function A(m) {
1022
1022
  if (m == null)
1023
1023
  return !0;
1024
- var A = e.getAuthItem != null ? e.getAuthItem(m) : null;
1025
- if (A == null)
1024
+ var D = e.getAuthItem != null ? e.getAuthItem(m) : null;
1025
+ if (D == null)
1026
1026
  return !1;
1027
- if (A.requiresAuth === !1)
1027
+ if (D.requiresAuth === !1)
1028
1028
  return !0;
1029
1029
  const g = K(l);
1030
- if (g.isSuspended && A.ignoreSuspension !== !0)
1030
+ if (g.isSuspended && D.ignoreSuspension !== !0)
1031
1031
  return !1;
1032
1032
  if (g.isGlobalAdmin)
1033
1033
  return !0;
1034
- if (A.permissions != null) {
1035
- for (var f = 0; f < A.permissions.length; f++)
1036
- if (!S(A.permissions[f]))
1034
+ if (D.permissions != null) {
1035
+ for (var f = 0; f < D.permissions.length; f++)
1036
+ if (!E(D.permissions[f]))
1037
1037
  return !1;
1038
1038
  }
1039
1039
  return !0;
1040
1040
  }
1041
- function S(m) {
1042
- const A = K(l);
1043
- if (A.userPermissions != null)
1044
- for (var g = 0; g < A.userPermissions.length; g++) {
1045
- var f = A.userPermissions[g].split(".");
1046
- if (m == f[0] || m == "everything" || A.userPermissions[g] == "everything.view" || A.userPermissions[g] == "everything.edit")
1041
+ function E(m) {
1042
+ const D = K(l);
1043
+ if (D.userPermissions != null)
1044
+ for (var g = 0; g < D.userPermissions.length; g++) {
1045
+ var f = D.userPermissions[g].split(".");
1046
+ if (m == f[0] || m == "everything" || D.userPermissions[g] == "everything.view" || D.userPermissions[g] == "everything.edit")
1047
1047
  return !0;
1048
1048
  }
1049
1049
  return !1;
1050
1050
  }
1051
- function T(m, A, g) {
1051
+ function T(m, D, g) {
1052
1052
  let f = !0;
1053
- return K(l).isGlobalAdmin ? !0 : (A != null && A.length > 0 && A.forEach((G) => {
1054
- g == "edit" ? h(G) || (f = !1) : S(G) || (f = !1);
1053
+ return K(l).isGlobalAdmin ? !0 : (D != null && D.length > 0 && D.forEach((G) => {
1054
+ g == "edit" ? h(G) || (f = !1) : E(G) || (f = !1);
1055
1055
  }), m != null && m.length > 0 && (m.some((G) => c(G)) || (f = !1)), f);
1056
1056
  }
1057
- function L(m, A = !1) {
1057
+ function L(m, D = !1) {
1058
1058
  var g = e.getAuthItem != null ? e.getAuthItem(m) : null;
1059
1059
  let f = !1;
1060
1060
  if (g == null)
1061
1061
  return !1;
1062
1062
  let C = g.subscriptions ?? [], G = g.permissions ?? [], J = T(C, G, "view");
1063
- return J || !A || !$e(g.children) ? J : ((g == null ? void 0 : g.children) != null && g.children.forEach((ee) => {
1063
+ return J || !D || !$e(g.children) ? J : ((g == null ? void 0 : g.children) != null && g.children.forEach((ee) => {
1064
1064
  L(ee, !0) && (f = !0);
1065
1065
  }), f);
1066
1066
  }
1067
1067
  function R(m) {
1068
- return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (A, g) => {
1068
+ return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (D, g) => {
1069
1069
  const f = Te(dt(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${g}`);
1070
- return A ? `${f}&redirect_path=${A}` : f;
1070
+ return D ? `${f}&redirect_path=${D}` : f;
1071
1071
  }), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(m, n.value) ?? "" : "";
1072
1072
  }
1073
- function b(m) {
1073
+ function y(m) {
1074
1074
  var g;
1075
1075
  return m == null ? 0 : ((g = (e.subscriptionOptions ?? []).find((f) => f.code == m)) == null ? void 0 : g.value) ?? 0;
1076
1076
  }
1077
1077
  function c(m) {
1078
- const A = K(l);
1079
- if (A.subscriptionCode == null)
1078
+ const D = K(l);
1079
+ if (D.subscriptionCode == null)
1080
1080
  return !1;
1081
- if (A.subscriptionCode == m)
1081
+ if (D.subscriptionCode == m)
1082
1082
  return !0;
1083
- const g = b(m), f = b(A.subscriptionCode);
1083
+ const g = y(m), f = y(D.subscriptionCode);
1084
1084
  return g <= f;
1085
1085
  }
1086
1086
  function o(m) {
@@ -1091,19 +1091,19 @@ function Ia(e) {
1091
1091
  );
1092
1092
  return JSON.parse(f);
1093
1093
  }
1094
- function r(m) {
1094
+ function t(m) {
1095
1095
  if (l.value = void 0, B(), m != null) {
1096
- const A = Rt();
1097
- A.currentRoute.value.name != m && A.push({ name: m });
1096
+ const D = Rt();
1097
+ D.currentRoute.value.name != m && D.push({ name: m });
1098
1098
  }
1099
1099
  }
1100
1100
  function x(m) {
1101
1101
  var g;
1102
- K(l).isLoggedIn || ((g = e.demo) == null || g.endDemo(), P() && (r(), window.location.href = R(m)));
1102
+ K(l).isLoggedIn || ((g = e.demo) == null || g.endDemo(), P() && (t(), window.location.href = R(m)));
1103
1103
  }
1104
- async function E(m, A) {
1104
+ async function S(m, D) {
1105
1105
  return e.getToken ?? (e.getToken = async () => {
1106
- let g = m, f = A, C = e.oauthGrantType ?? "authorization_token", G = e.oauthClientID ?? "";
1106
+ let g = m, f = D, C = e.oauthGrantType ?? "authorization_token", G = e.oauthClientID ?? "";
1107
1107
  if (g == null || f == null)
1108
1108
  throw new Error("Code and State required in OAuth token process");
1109
1109
  if (f != n.value)
@@ -1116,19 +1116,19 @@ function Ia(e) {
1116
1116
  additionalUrl: J,
1117
1117
  data: ee
1118
1118
  });
1119
- y(W.access_token);
1120
- }), await e.getToken(m, A);
1119
+ w(W.access_token);
1120
+ }), await e.getToken(m, D);
1121
1121
  }
1122
- function y(m) {
1122
+ function w(m) {
1123
1123
  if (m != null && (e.demo == null || !e.demo.isDemoing.value)) {
1124
- const A = o(m);
1125
- I(A), e.processTokenPayload != null && e.processTokenPayload(l, A);
1124
+ const D = o(m);
1125
+ I(D), e.processTokenPayload != null && e.processTokenPayload(l, D);
1126
1126
  }
1127
1127
  }
1128
1128
  function I(m) {
1129
1129
  var g;
1130
- const A = l.value;
1131
- A.expiresOn = m.ExpiresOn, A.isGlobalAdmin = m.IsGlobalAdmin == "True", A.isLoggedIn = !0, A.permissions = m.Permissions, A.subscriptionCode = m.Subscription, A.timeZone ?? (A.timeZone = e.defaultTimeZone ?? Xe), A.token = m, A.userID = m.UserLoginID, A.userPermissions = ((g = m.Permissions) == null ? void 0 : g.split(",")) ?? [];
1130
+ const D = l.value;
1131
+ D.expiresOn = m.ExpiresOn, D.isGlobalAdmin = m.IsGlobalAdmin == "True", D.isLoggedIn = !0, D.permissions = m.Permissions, D.subscriptionCode = m.Subscription, D.timeZone ?? (D.timeZone = e.defaultTimeZone ?? Xe), D.token = m, D.userID = m.UserLoginID, D.userPermissions = ((g = m.Permissions) == null ? void 0 : g.split(",")) ?? [];
1132
1132
  }
1133
1133
  function B() {
1134
1134
  var m;
@@ -1139,31 +1139,31 @@ function Ia(e) {
1139
1139
  }
1140
1140
  function _() {
1141
1141
  const m = K(l);
1142
- return m.isLoggedIn && P() && (r(), window.location.href = R()), m.isLoggedIn;
1142
+ return m.isLoggedIn && P() && (t(), window.location.href = R()), m.isLoggedIn;
1143
1143
  }
1144
1144
  function P() {
1145
1145
  const m = K(l);
1146
1146
  if (m == null || m.expiresOn == null)
1147
1147
  return !0;
1148
- const A = ie.fromFormat(m.expiresOn, t), g = ie.utc();
1149
- return A <= g;
1148
+ const D = ie.fromFormat(m.expiresOn, r), g = ie.utc();
1149
+ return D <= g;
1150
1150
  }
1151
1151
  return B(), Lr = {
1152
1152
  authState: n.value,
1153
1153
  canEdit: s,
1154
1154
  canEditPermit: h,
1155
- canView: D,
1156
- canViewPermit: S,
1155
+ canView: A,
1156
+ canViewPermit: E,
1157
1157
  credentials: l,
1158
1158
  doShow: T,
1159
1159
  doShowByNav: L,
1160
1160
  getAuthorizeUrl: R,
1161
1161
  getTimeZone: U,
1162
- getToken: E,
1162
+ getToken: S,
1163
1163
  isLoggedIn: le(() => l.value.isLoggedIn === !0),
1164
1164
  login: x,
1165
- logout: r,
1166
- setAuth: y,
1165
+ logout: t,
1166
+ setAuth: w,
1167
1167
  timeZone: le(() => l.value.timeZone ?? e.defaultTimeZone ?? Xe),
1168
1168
  tryLogin: _
1169
1169
  }, Lr;
@@ -1189,12 +1189,17 @@ let Mr;
1189
1189
  function gu() {
1190
1190
  return Mr;
1191
1191
  }
1192
+ function yu(e) {
1193
+ const r = localStorage.getItem("cosmetics");
1194
+ let n;
1195
+ return r != null && r.length > 0 && (n = JSON.parse(r)), n ?? (n = {}), n.dark ?? (n.dark = e == null ? void 0 : e.dark), n.light ?? (n.light = e == null ? void 0 : e.light), n.theme ?? (n.theme = e == null ? void 0 : e.defaultTheme), n;
1196
+ }
1192
1197
  function xa(e) {
1193
- const t = Z();
1198
+ const r = Z({});
1194
1199
  let n = e.vuetifyInstance;
1195
1200
  function l() {
1196
- const c = localStorage.getItem("cosmetics");
1197
- c != null && c.length > 0 ? t.value = JSON.parse(c) : t.value = {
1201
+ const y = localStorage.getItem("cosmetics");
1202
+ y != null && y.length > 0 ? r.value = JSON.parse(y) : r.value = {
1198
1203
  theme: e.defaultTheme ?? "light",
1199
1204
  light: e.defaultLightTheme ?? br,
1200
1205
  dark: e.defaultDarkTheme ?? Er,
@@ -1203,102 +1208,99 @@ function xa(e) {
1203
1208
  };
1204
1209
  }
1205
1210
  function s() {
1206
- localStorage.setItem("cosmetics", JSON.stringify(t.value));
1211
+ localStorage.setItem("cosmetics", JSON.stringify(r.value));
1207
1212
  }
1208
- function h(c) {
1209
- n = c;
1210
- }
1211
- function D(c) {
1212
- n != null && (n.global.name.value = t.value.theme, n.global.name.value == "dark" ? (c && (t.value.dark = { ...e.defaultDarkTheme ?? Er }), n.themes.value.dark = {
1213
+ function h(y) {
1214
+ n != null && (n.global.name.value = r.value.theme, n.global.name.value == "dark" ? (y && (r.value.dark = { ...e.defaultDarkTheme ?? Er }), n.themes.value.dark = {
1213
1215
  ...n.themes.value.dark,
1214
1216
  colors: {
1215
1217
  ...n.themes.value.dark.colors,
1216
- ...t.value.dark
1218
+ ...r.value.dark
1217
1219
  }
1218
- }) : (c && (t.value.light = { ...e.defaultLightTheme ?? br }), n.themes.value.light = {
1220
+ }) : (y && (r.value.light = { ...e.defaultLightTheme ?? br }), n.themes.value.light = {
1219
1221
  ...n.themes.value.light,
1220
1222
  colors: {
1221
1223
  ...n.themes.value.light.colors,
1222
- ...t.value.light
1224
+ ...r.value.light
1223
1225
  }
1224
1226
  }));
1225
1227
  }
1226
- function S(c) {
1227
- var o;
1228
+ function A(y) {
1229
+ var c;
1228
1230
  if (n != null) {
1229
- const r = n.themes.value.dark, x = n.themes.value.light;
1230
- r.colors.primary = c, x.colors.primary = c, (o = document.querySelector('meta[name="theme-color"]')) == null || o.setAttribute("content", c);
1231
+ const o = n.themes.value.dark, t = n.themes.value.light;
1232
+ o.colors.primary = y, t.colors.primary = y, (c = document.querySelector('meta[name="theme-color"]')) == null || c.setAttribute("content", y);
1231
1233
  }
1232
1234
  }
1235
+ function E() {
1236
+ r.value.drawer = !r.value.drawer;
1237
+ }
1233
1238
  function T() {
1234
- t.value.drawer = !t.value.drawer;
1239
+ r.value.drawerStick = !r.value.drawerStick;
1235
1240
  }
1236
1241
  function L() {
1237
- t.value.drawerStick = !t.value.drawerStick;
1242
+ r.value.theme = r.value.theme == "dark" ? "light" : "dark", n != null && (n.global.name.value = r.value.theme);
1238
1243
  }
1239
1244
  function R() {
1240
- t.value.theme = t.value.theme == "dark" ? "light" : "dark", n != null && (n.global.name.value = t.value.theme);
1241
- }
1242
- function b() {
1243
- var c;
1245
+ var y;
1244
1246
  if (n != null) {
1245
- const o = n.themes.value.dark, r = n.themes.value.light;
1246
- o.colors.primary = (t.value.dark ?? e.defaultDarkTheme ?? Er).primary, r.colors.primary = (t.value.light ?? e.defaultLightTheme ?? br).primary, (c = document.querySelector('meta[name="theme-color"]')) == null || c.setAttribute("content", "");
1247
+ const c = n.themes.value.dark, o = n.themes.value.light;
1248
+ c.colors.primary = (r.value.dark ?? e.defaultDarkTheme ?? Er).primary, o.colors.primary = (r.value.light ?? e.defaultLightTheme ?? br).primary, (y = document.querySelector('meta[name="theme-color"]')) == null || y.setAttribute("content", "");
1247
1249
  }
1248
1250
  }
1249
- return l(), Ee(t, () => {
1251
+ return l(), Ee(r, () => {
1250
1252
  s();
1251
1253
  }), Mr = {
1252
- state: t,
1253
- resetCosmetics: D,
1254
- setTemporaryColor: S,
1255
- setVuetifyInstance: h,
1256
- toggleDrawer: T,
1257
- toggleDrawerStick: L,
1258
- toggleLightDark: R,
1259
- undoTemporaryColor: b
1254
+ state: r,
1255
+ resetCosmetics: h,
1256
+ setTemporaryColor: A,
1257
+ // setVuetifyInstance,
1258
+ toggleDrawer: E,
1259
+ toggleDrawerStick: T,
1260
+ toggleLightDark: L,
1261
+ undoTemporaryColor: R
1260
1262
  }, Mr;
1261
1263
  }
1262
- const yu = {
1264
+ const wu = {
1263
1265
  canExportCSV: !1
1264
1266
  };
1265
1267
  function Na() {
1266
- function e(t, n, l = "csvData.csv") {
1267
- if (!$e(t))
1268
+ function e(r, n, l = "csvData.csv") {
1269
+ if (!$e(r))
1268
1270
  return;
1269
1271
  let s = [];
1270
- n != null ? s = n == null ? void 0 : n.filter((r) => (r.csv ?? r.csvText ?? r.csvFilter ?? r.csvArray) != null).map((r) => ({
1271
- header: r.title ?? "",
1272
- itemText: r.itemText,
1273
- value: r.value
1274
- })) : s = Object.keys(t[0]).map((r) => ({ header: ca(r) ?? "", value: r })), s = s.filter((r) => r.header.length > 0);
1272
+ n != null ? s = n == null ? void 0 : n.filter((t) => (t.csv ?? t.csvText ?? t.csvFilter ?? t.csvArray) != null).map((t) => ({
1273
+ header: t.title ?? "",
1274
+ itemText: t.itemText,
1275
+ value: t.value
1276
+ })) : s = Object.keys(r[0]).map((t) => ({ header: ca(t) ?? "", value: t })), s = s.filter((t) => t.header.length > 0);
1275
1277
  var h = [];
1276
- for (let r = 0; r < t.length; r++) {
1277
- const x = t[r];
1278
- var D = {}, S = [];
1279
- for (let E = 0; E < s.length; E++) {
1280
- const y = s[E];
1278
+ for (let t = 0; t < r.length; t++) {
1279
+ const x = r[t];
1280
+ var A = {}, E = [];
1281
+ for (let S = 0; S < s.length; S++) {
1282
+ const w = s[S];
1281
1283
  var T = null;
1282
- typeof y.value == "function" ? T = y.value(x) : typeof y.value == "string" && (T = Cr(x, y.value)), y.itemText != null ? D[y.header] = Cr(T, y.itemText) : D[y.header] = T;
1284
+ typeof w.value == "function" ? T = w.value(x) : typeof w.value == "string" && (T = Cr(x, w.value)), w.itemText != null ? A[w.header] = Cr(T, w.itemText) : A[w.header] = T;
1283
1285
  }
1284
- h.push(D), $e(S) && S.forEach((E) => {
1285
- h.push(E);
1286
- }), S = [];
1286
+ h.push(A), $e(E) && E.forEach((S) => {
1287
+ h.push(S);
1288
+ }), E = [];
1287
1289
  }
1288
1290
  var L = [];
1289
- L.push(s.map((r) => r.header)), h.forEach((r) => {
1291
+ L.push(s.map((t) => t.header)), h.forEach((t) => {
1290
1292
  let x = [];
1291
- s.forEach(function(E) {
1292
- var y = r[E.header];
1293
- x.push(y ?? "");
1293
+ s.forEach(function(S) {
1294
+ var w = t[S.header];
1295
+ x.push(w ?? "");
1294
1296
  }), L.push(x.join(","));
1295
1297
  });
1296
1298
  var R = L.join(`
1297
- `), b = new Blob([R], { type: "text/plain;charset=utf-8" });
1299
+ `), y = new Blob([R], { type: "text/plain;charset=utf-8" });
1298
1300
  if (window.navigator.msSaveOrOpenBlob)
1299
- window.navigator.msSaveOrOpenBlob(b, l);
1301
+ window.navigator.msSaveOrOpenBlob(y, l);
1300
1302
  else {
1301
- var c = document.createElement("a"), o = URL.createObjectURL(b);
1303
+ var c = document.createElement("a"), o = URL.createObjectURL(y);
1302
1304
  c.href = o, c.download = l, document.body.appendChild(c), c.click(), setTimeout(function() {
1303
1305
  document.body.removeChild(c), window.URL.revokeObjectURL(o);
1304
1306
  }, 0);
@@ -1309,123 +1311,123 @@ function Na() {
1309
1311
  };
1310
1312
  }
1311
1313
  let Rr;
1312
- function wu() {
1314
+ function bu() {
1313
1315
  return Rr;
1314
1316
  }
1315
1317
  function Ta(e) {
1316
- function t() {
1317
- var S;
1318
- return ((S = l()) == null ? void 0 : S.startOf("day").toUTC().toString()) ?? "";
1318
+ function r() {
1319
+ var E;
1320
+ return ((E = l()) == null ? void 0 : E.startOf("day").toUTC().toString()) ?? "";
1319
1321
  }
1320
1322
  function n() {
1321
- var S;
1322
- return ((S = l()) == null ? void 0 : S.endOf("day").toUTC().toString()) ?? "";
1323
+ var E;
1324
+ return ((E = l()) == null ? void 0 : E.endOf("day").toUTC().toString()) ?? "";
1323
1325
  }
1324
- function l(S, T) {
1325
- return S == null ? ie.utc().setZone(e.getTimeZone()) : T ? ie.fromFormat(S, T, { zone: e.getTimeZone() }) : ie.fromISO(S, { zone: e.getTimeZone() });
1326
+ function l(E, T) {
1327
+ return E == null ? ie.utc().setZone(e.getTimeZone()) : T ? ie.fromFormat(E, T, { zone: e.getTimeZone() }) : ie.fromISO(E, { zone: e.getTimeZone() });
1326
1328
  }
1327
- function s(S, T, L) {
1328
- if (S == null) {
1329
- const b = ie.utc().setZone(e.getTimeZone());
1330
- return T ? b.toFormat(T) : b.toString();
1329
+ function s(E, T, L) {
1330
+ if (E == null) {
1331
+ const y = ie.utc().setZone(e.getTimeZone());
1332
+ return T ? y.toFormat(T) : y.toString();
1331
1333
  }
1332
- if (S == "Invalid DateTime")
1334
+ if (E == "Invalid DateTime")
1333
1335
  return "";
1334
- const R = L ? ie.fromFormat(S, L, { zone: e.getTimeZone() }) : ie.fromISO(S, { zone: e.getTimeZone() });
1336
+ const R = L ? ie.fromFormat(E, L, { zone: e.getTimeZone() }) : ie.fromISO(E, { zone: e.getTimeZone() });
1335
1337
  return T ? R.toFormat(T) : R == null ? void 0 : R.toString();
1336
1338
  }
1337
- function h(S, T) {
1338
- return S == null ? ie.utc() : T ? ie.fromFormat(S, T) : ie.fromISO(S);
1339
+ function h(E, T) {
1340
+ return E == null ? ie.utc() : T ? ie.fromFormat(E, T) : ie.fromISO(E);
1339
1341
  }
1340
- function D(S, T, L) {
1341
- if (S == null)
1342
+ function A(E, T, L) {
1343
+ if (E == null)
1342
1344
  return T ? ie.utc().toFormat(T) : ie.utc().toString();
1343
1345
  {
1344
- const R = L ? ie.fromFormat(S, L) : ie.fromISO(S);
1346
+ const R = L ? ie.fromFormat(E, L) : ie.fromISO(E);
1345
1347
  return T ? R.toFormat(T) : R.toString();
1346
1348
  }
1347
1349
  }
1348
1350
  return Rr = {
1349
- getToday: t,
1351
+ getToday: r,
1350
1352
  getTomorrow: n,
1351
1353
  tzDate: l,
1352
1354
  tzString: s,
1353
1355
  utcDate: h,
1354
- utcString: D
1356
+ utcString: A
1355
1357
  }, Rr;
1356
1358
  }
1357
1359
  let Ur;
1358
- function bu() {
1360
+ function Eu() {
1359
1361
  return Ur;
1360
1362
  }
1361
1363
  function Ca() {
1362
1364
  const e = Z(!1);
1363
- function t() {
1365
+ function r() {
1364
1366
  }
1365
1367
  function n() {
1366
1368
  }
1367
1369
  return Ur = {
1368
1370
  endDemo: n,
1369
1371
  isDemoing: e,
1370
- startDemo: t
1372
+ startDemo: r
1371
1373
  }, Ur;
1372
1374
  }
1373
1375
  var Pa = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
1374
- function Eu(e) {
1375
- function t(n) {
1376
+ function Su(e) {
1377
+ function r(n) {
1376
1378
  var s;
1377
1379
  const l = n.matched.slice().reverse().find((h) => h.meta && h.meta.title);
1378
1380
  if (l)
1379
1381
  document.title = l.meta.title;
1380
1382
  else {
1381
1383
  const h = Pa.NODE_ENV;
1382
- let D = "";
1383
- h == "development" ? D = "BWeb Dev" : h == "staging" ? D = "BlitzIt Sandpit" : D = "BlitzIt Web | Cloud-Based Wholesale Logistics Platform", ((s = e == null ? void 0 : e.demo) == null ? void 0 : s.isDemoing.value) == !0 && (D = `Training: ${D}`), document.title = D;
1384
+ let A = "";
1385
+ h == "development" ? A = "BWeb Dev" : h == "staging" ? A = "BlitzIt Sandpit" : A = "BlitzIt Web | Cloud-Based Wholesale Logistics Platform", ((s = e == null ? void 0 : e.demo) == null ? void 0 : s.isDemoing.value) == !0 && (A = `Training: ${A}`), document.title = A;
1384
1386
  }
1385
1387
  }
1386
1388
  return {
1387
- updateMeta: t
1389
+ updateMeta: r
1388
1390
  };
1389
1391
  }
1390
- function Su(e, t, n = {}) {
1392
+ function _u(e, r, n = {}) {
1391
1393
  const {
1392
1394
  preventDefault: l = !1,
1393
1395
  stopPropagation: s = !1,
1394
1396
  axis: h = "both"
1395
- } = n, D = { capture: n.capture ?? !0 };
1396
- let S = { x: 0, y: 0 }, T = { x: 0, y: 0 }, L = { x: 0, y: 0 }, R = [], b = [], c = Z(!1);
1397
+ } = n, A = { capture: n.capture ?? !0 };
1398
+ let E = { x: 0, y: 0 }, T = { x: 0, y: 0 }, L = { x: 0, y: 0 }, R = [], y = [], c = Z(!1);
1397
1399
  function o(U) {
1398
1400
  K(l) && U.preventDefault(), K(s) && U.stopPropagation();
1399
1401
  }
1400
- function r(U) {
1402
+ function t(U) {
1401
1403
  var g;
1402
1404
  const _ = K(e);
1403
1405
  if (!_)
1404
1406
  return;
1405
- const P = _.$el, A = U.type === "touchstart" && U.touches.length > 0 ? U.touches[0] : U;
1406
- L = { x: A.clientX, y: A.clientY }, T = {
1407
+ const P = _.$el, D = U.type === "touchstart" && U.touches.length > 0 ? U.touches[0] : U;
1408
+ L = { x: D.clientX, y: D.clientY }, T = {
1407
1409
  x: P.offsetLeft,
1408
1410
  y: P.offsetTop
1409
- }, S = {
1411
+ }, E = {
1410
1412
  x: P.offsetLeft,
1411
1413
  y: P.offsetTop
1412
- }, ((g = n.onStart) == null ? void 0 : g.call(n, L, U)) !== !1 && (b.push(oe("mousemove", x)), b.push(oe("touchmove", x)), b.push(oe("mouseup", E)), b.push(oe("touchend", E)), o(U));
1414
+ }, ((g = n.onStart) == null ? void 0 : g.call(n, L, U)) !== !1 && (y.push(oe("mousemove", x)), y.push(oe("touchmove", x)), y.push(oe("mouseup", S)), y.push(oe("touchend", S)), o(U));
1413
1415
  }
1414
1416
  function x(U) {
1415
1417
  var f;
1416
1418
  if (!L || !K(e))
1417
1419
  return;
1418
1420
  const m = U.type === "touchmove" && U.touches.length > 0 ? U.touches[0] : U;
1419
- let A = m.clientX - L.x, g = m.clientY - L.y;
1420
- (h === "x" || h === "both") && (S.x = T.x + A), (h === "y" || h === "both") && (S.y = T.y + g), (f = n.onMove) == null || f.call(n, S, U), o(U), y(S);
1421
+ let D = m.clientX - L.x, g = m.clientY - L.y;
1422
+ (h === "x" || h === "both") && (E.x = T.x + D), (h === "y" || h === "both") && (E.y = T.y + g), (f = n.onMove) == null || f.call(n, E, U), o(U), w(E);
1421
1423
  }
1422
- function E(U) {
1424
+ function S(U) {
1423
1425
  var _;
1424
- document.documentElement.style.cursor = "", b.forEach((P) => {
1426
+ document.documentElement.style.cursor = "", y.forEach((P) => {
1425
1427
  P();
1426
- }), b.length = 0, (_ = n.onEnd) == null || _.call(n, S, U), o(U);
1428
+ }), y.length = 0, (_ = n.onEnd) == null || _.call(n, E, U), o(U);
1427
1429
  }
1428
- function y(U) {
1430
+ function w(U) {
1429
1431
  const _ = K(e);
1430
1432
  if (!_)
1431
1433
  return;
@@ -1435,16 +1437,16 @@ function Su(e, t, n = {}) {
1435
1437
  function I() {
1436
1438
  if (K(c))
1437
1439
  return;
1438
- const U = K(t);
1440
+ const U = K(r);
1439
1441
  if (!U)
1440
1442
  return;
1441
1443
  const _ = U.$el;
1442
- _.style.cursor = "move", R.push(oe(_, "mousedown", r, D)), R.push(oe(_, "touchstart", r, D)), c.value = !0;
1444
+ _.style.cursor = "move", R.push(oe(_, "mousedown", t, A)), R.push(oe(_, "touchstart", t, A)), c.value = !0;
1443
1445
  }
1444
1446
  function B() {
1445
1447
  if (!K(c))
1446
1448
  return;
1447
- const U = K(t);
1449
+ const U = K(r);
1448
1450
  if (!U)
1449
1451
  return;
1450
1452
  const _ = U.$el;
@@ -1459,11 +1461,11 @@ function Su(e, t, n = {}) {
1459
1461
  };
1460
1462
  }
1461
1463
  let Br;
1462
- function _u() {
1464
+ function Au() {
1463
1465
  return Br;
1464
1466
  }
1465
1467
  function La(e) {
1466
- function t(g, f, C) {
1468
+ function r(g, f, C) {
1467
1469
  return g ? fa(g) ? C ?? "" : e.dates.tzString(g, f) : C ?? g ?? "";
1468
1470
  }
1469
1471
  function n(g) {
@@ -1485,19 +1487,19 @@ function La(e) {
1485
1487
  return f.format(g);
1486
1488
  }
1487
1489
  function s(g, f) {
1488
- return t(g, "ccc | d LLL", f);
1490
+ return r(g, "ccc | d LLL", f);
1489
1491
  }
1490
1492
  function h(g, f) {
1491
- return t(g, "d LLL", f);
1493
+ return r(g, "d LLL", f);
1492
1494
  }
1493
- function D(g, f) {
1494
- return t(g, "ccc", f);
1495
+ function A(g, f) {
1496
+ return r(g, "ccc", f);
1495
1497
  }
1496
- function S(g, f) {
1497
- return t(g, "ccc dd LLL yyyy", f);
1498
+ function E(g, f) {
1499
+ return r(g, "ccc dd LLL yyyy", f);
1498
1500
  }
1499
1501
  function T(g, f) {
1500
- return t(g, "ccc dd LLL @ hh:mm a", f);
1502
+ return r(g, "ccc dd LLL @ hh:mm a", f);
1501
1503
  }
1502
1504
  function L(g) {
1503
1505
  return new Intl.NumberFormat().format(g);
@@ -1505,7 +1507,7 @@ function La(e) {
1505
1507
  function R(g) {
1506
1508
  return g == 0 ? "" : new Intl.NumberFormat().format(g);
1507
1509
  }
1508
- function b(g) {
1510
+ function y(g) {
1509
1511
  if (g == 0)
1510
1512
  return "";
1511
1513
  var f = new Intl.NumberFormat().format(g);
@@ -1517,7 +1519,7 @@ function La(e) {
1517
1519
  function o(g) {
1518
1520
  return Lt(g, !1);
1519
1521
  }
1520
- function r(g) {
1522
+ function t(g) {
1521
1523
  if (!g)
1522
1524
  return "";
1523
1525
  if (typeof g != "object")
@@ -1526,12 +1528,12 @@ function La(e) {
1526
1528
  return g.addressLineOne != null && (f = g.addressLineOne + " "), g.streetNumber != null && (f = f + g.streetNumber + " "), g.streetName != null && (f = f + g.streetName + " "), g.suburb != null && (f = f + g.suburb + " "), g.state != null && (f = f + g.state + " "), g.postcode != null && (f = f + g.postcode), f = f.replaceAll(",", " "), f;
1527
1529
  }
1528
1530
  function x(g, f) {
1529
- return t(g, "ddd DD MMM YYYY", f);
1531
+ return r(g, "ddd DD MMM YYYY", f);
1530
1532
  }
1531
- function E(g, f) {
1532
- return t(g, "ccc dd LLL yyyy hh:mm a", f);
1533
+ function S(g, f) {
1534
+ return r(g, "ccc dd LLL yyyy hh:mm a", f);
1533
1535
  }
1534
- function y(g) {
1536
+ function w(g) {
1535
1537
  var f = new Intl.NumberFormat("en-US", {
1536
1538
  style: "percent",
1537
1539
  minimumFractionDigits: 2
@@ -1542,13 +1544,13 @@ function La(e) {
1542
1544
  return g.replaceAll(",", " ");
1543
1545
  }
1544
1546
  function B(g, f) {
1545
- return t(g, "dd LLL yyyy", f);
1547
+ return r(g, "dd LLL yyyy", f);
1546
1548
  }
1547
1549
  function U(g, f) {
1548
- return t(g, "dd LLL yyyy hh:mm a", f);
1550
+ return r(g, "dd LLL yyyy hh:mm a", f);
1549
1551
  }
1550
1552
  function _(g, f) {
1551
- return t(g, "hh:mm a", f);
1553
+ return r(g, "hh:mm a", f);
1552
1554
  }
1553
1555
  function P(g) {
1554
1556
  return g == null ? "" : typeof g == "number" ? e.dates.tzDate().startOf("day").plus({ minutes: g }).toFormat("T") : typeof g == "string" ? e.dates.tzString(g, "t") : "unknown";
@@ -1558,25 +1560,25 @@ function La(e) {
1558
1560
  toCurrency: l,
1559
1561
  toDayDate: s,
1560
1562
  toDayMonth: h,
1561
- toDayOfWeek: D,
1562
- toDayShortDate: S,
1563
+ toDayOfWeek: A,
1564
+ toDayShortDate: E,
1563
1565
  toDayShortDateAndTime: T,
1564
1566
  toDisplayNumber: L,
1565
1567
  toDisplayNumberOver: R,
1566
- toDisplayNumberSigned: b,
1568
+ toDisplayNumberSigned: y,
1567
1569
  toFormat: c,
1568
1570
  toLocationLine: o,
1569
- toLocationLineNoCommas: r,
1571
+ toLocationLineNoCommas: t,
1570
1572
  toLongDate: x,
1571
- toLongDateAndTime: E,
1572
- toPercent: y,
1573
+ toLongDateAndTime: S,
1574
+ toPercent: w,
1573
1575
  toPrettyCSV: I,
1574
1576
  toShortDate: B,
1575
1577
  toShortDateAndTime: U,
1576
1578
  toTime: _,
1577
1579
  toTimeOfDay: P
1578
1580
  };
1579
- function A(g) {
1581
+ function D(g) {
1580
1582
  if (g != null) {
1581
1583
  let f = g;
1582
1584
  if (f != null && m[f] != null)
@@ -1585,7 +1587,7 @@ function La(e) {
1585
1587
  return (f) => f;
1586
1588
  }
1587
1589
  return Br = {
1588
- findFilter: A,
1590
+ findFilter: D,
1589
1591
  ...m
1590
1592
  }, Br;
1591
1593
  }
@@ -1599,92 +1601,92 @@ var Bt = { exports: {} };
1599
1601
  https://localforage.github.io/localForage
1600
1602
  (c) 2013-2017 Mozilla, Apache License 2.0
1601
1603
  */
1602
- (function(e, t) {
1604
+ (function(e, r) {
1603
1605
  (function(n) {
1604
1606
  e.exports = n();
1605
1607
  })(function() {
1606
1608
  return function n(l, s, h) {
1607
- function D(L, R) {
1609
+ function A(L, R) {
1608
1610
  if (!s[L]) {
1609
1611
  if (!l[L]) {
1610
- var b = typeof Oe == "function" && Oe;
1611
- if (!R && b)
1612
- return b(L, !0);
1613
- if (S)
1614
- return S(L, !0);
1612
+ var y = typeof Oe == "function" && Oe;
1613
+ if (!R && y)
1614
+ return y(L, !0);
1615
+ if (E)
1616
+ return E(L, !0);
1615
1617
  var c = new Error("Cannot find module '" + L + "'");
1616
1618
  throw c.code = "MODULE_NOT_FOUND", c;
1617
1619
  }
1618
1620
  var o = s[L] = { exports: {} };
1619
- l[L][0].call(o.exports, function(r) {
1620
- var x = l[L][1][r];
1621
- return D(x || r);
1621
+ l[L][0].call(o.exports, function(t) {
1622
+ var x = l[L][1][t];
1623
+ return A(x || t);
1622
1624
  }, o, o.exports, n, l, s, h);
1623
1625
  }
1624
1626
  return s[L].exports;
1625
1627
  }
1626
- for (var S = typeof Oe == "function" && Oe, T = 0; T < h.length; T++)
1627
- D(h[T]);
1628
- return D;
1628
+ for (var E = typeof Oe == "function" && Oe, T = 0; T < h.length; T++)
1629
+ A(h[T]);
1630
+ return A;
1629
1631
  }({ 1: [function(n, l, s) {
1630
1632
  (function(h) {
1631
- var D = h.MutationObserver || h.WebKitMutationObserver, S;
1632
- if (D) {
1633
- var T = 0, L = new D(r), R = h.document.createTextNode("");
1633
+ var A = h.MutationObserver || h.WebKitMutationObserver, E;
1634
+ if (A) {
1635
+ var T = 0, L = new A(t), R = h.document.createTextNode("");
1634
1636
  L.observe(R, {
1635
1637
  characterData: !0
1636
- }), S = function() {
1638
+ }), E = function() {
1637
1639
  R.data = T = ++T % 2;
1638
1640
  };
1639
1641
  } else if (!h.setImmediate && typeof h.MessageChannel < "u") {
1640
- var b = new h.MessageChannel();
1641
- b.port1.onmessage = r, S = function() {
1642
- b.port2.postMessage(0);
1642
+ var y = new h.MessageChannel();
1643
+ y.port1.onmessage = t, E = function() {
1644
+ y.port2.postMessage(0);
1643
1645
  };
1644
1646
  } else
1645
- "document" in h && "onreadystatechange" in h.document.createElement("script") ? S = function() {
1646
- var E = h.document.createElement("script");
1647
- E.onreadystatechange = function() {
1648
- r(), E.onreadystatechange = null, E.parentNode.removeChild(E), E = null;
1649
- }, h.document.documentElement.appendChild(E);
1650
- } : S = function() {
1651
- setTimeout(r, 0);
1647
+ "document" in h && "onreadystatechange" in h.document.createElement("script") ? E = function() {
1648
+ var S = h.document.createElement("script");
1649
+ S.onreadystatechange = function() {
1650
+ t(), S.onreadystatechange = null, S.parentNode.removeChild(S), S = null;
1651
+ }, h.document.documentElement.appendChild(S);
1652
+ } : E = function() {
1653
+ setTimeout(t, 0);
1652
1654
  };
1653
1655
  var c, o = [];
1654
- function r() {
1656
+ function t() {
1655
1657
  c = !0;
1656
- for (var E, y, I = o.length; I; ) {
1657
- for (y = o, o = [], E = -1; ++E < I; )
1658
- y[E]();
1658
+ for (var S, w, I = o.length; I; ) {
1659
+ for (w = o, o = [], S = -1; ++S < I; )
1660
+ w[S]();
1659
1661
  I = o.length;
1660
1662
  }
1661
1663
  c = !1;
1662
1664
  }
1663
1665
  l.exports = x;
1664
- function x(E) {
1665
- o.push(E) === 1 && !c && S();
1666
+ function x(S) {
1667
+ o.push(S) === 1 && !c && E();
1666
1668
  }
1667
1669
  }).call(this, typeof Qe < "u" ? Qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
1668
1670
  }, {}], 2: [function(n, l, s) {
1669
1671
  var h = n(1);
1670
- function D() {
1672
+ function A() {
1671
1673
  }
1672
- var S = {}, T = ["REJECTED"], L = ["FULFILLED"], R = ["PENDING"];
1673
- l.exports = b;
1674
- function b(_) {
1674
+ var E = {}, T = ["REJECTED"], L = ["FULFILLED"], R = ["PENDING"];
1675
+ l.exports = y;
1676
+ function y(_) {
1675
1677
  if (typeof _ != "function")
1676
1678
  throw new TypeError("resolver must be a function");
1677
- this.state = R, this.queue = [], this.outcome = void 0, _ !== D && x(this, _);
1679
+ this.state = R, this.queue = [], this.outcome = void 0, _ !== A && x(this, _);
1678
1680
  }
1679
- b.prototype.catch = function(_) {
1681
+ y.prototype.catch = function(_) {
1680
1682
  return this.then(null, _);
1681
- }, b.prototype.then = function(_, P) {
1683
+ }, y.prototype.then = function(_, P) {
1682
1684
  if (typeof _ != "function" && this.state === L || typeof P != "function" && this.state === T)
1683
1685
  return this;
1684
- var m = new this.constructor(D);
1686
+ var m = new this.constructor(A);
1685
1687
  if (this.state !== R) {
1686
- var A = this.state === L ? _ : P;
1687
- o(m, A, this.outcome);
1688
+ var D = this.state === L ? _ : P;
1689
+ o(m, D, this.outcome);
1688
1690
  } else
1689
1691
  this.queue.push(new c(m, _, P));
1690
1692
  return m;
@@ -1693,45 +1695,45 @@ var Bt = { exports: {} };
1693
1695
  this.promise = _, typeof P == "function" && (this.onFulfilled = P, this.callFulfilled = this.otherCallFulfilled), typeof m == "function" && (this.onRejected = m, this.callRejected = this.otherCallRejected);
1694
1696
  }
1695
1697
  c.prototype.callFulfilled = function(_) {
1696
- S.resolve(this.promise, _);
1698
+ E.resolve(this.promise, _);
1697
1699
  }, c.prototype.otherCallFulfilled = function(_) {
1698
1700
  o(this.promise, this.onFulfilled, _);
1699
1701
  }, c.prototype.callRejected = function(_) {
1700
- S.reject(this.promise, _);
1702
+ E.reject(this.promise, _);
1701
1703
  }, c.prototype.otherCallRejected = function(_) {
1702
1704
  o(this.promise, this.onRejected, _);
1703
1705
  };
1704
1706
  function o(_, P, m) {
1705
1707
  h(function() {
1706
- var A;
1708
+ var D;
1707
1709
  try {
1708
- A = P(m);
1710
+ D = P(m);
1709
1711
  } catch (g) {
1710
- return S.reject(_, g);
1712
+ return E.reject(_, g);
1711
1713
  }
1712
- A === _ ? S.reject(_, new TypeError("Cannot resolve promise with itself")) : S.resolve(_, A);
1714
+ D === _ ? E.reject(_, new TypeError("Cannot resolve promise with itself")) : E.resolve(_, D);
1713
1715
  });
1714
1716
  }
1715
- S.resolve = function(_, P) {
1716
- var m = E(r, P);
1717
+ E.resolve = function(_, P) {
1718
+ var m = S(t, P);
1717
1719
  if (m.status === "error")
1718
- return S.reject(_, m.value);
1719
- var A = m.value;
1720
- if (A)
1721
- x(_, A);
1720
+ return E.reject(_, m.value);
1721
+ var D = m.value;
1722
+ if (D)
1723
+ x(_, D);
1722
1724
  else {
1723
1725
  _.state = L, _.outcome = P;
1724
1726
  for (var g = -1, f = _.queue.length; ++g < f; )
1725
1727
  _.queue[g].callFulfilled(P);
1726
1728
  }
1727
1729
  return _;
1728
- }, S.reject = function(_, P) {
1730
+ }, E.reject = function(_, P) {
1729
1731
  _.state = T, _.outcome = P;
1730
- for (var m = -1, A = _.queue.length; ++m < A; )
1732
+ for (var m = -1, D = _.queue.length; ++m < D; )
1731
1733
  _.queue[m].callRejected(P);
1732
1734
  return _;
1733
1735
  };
1734
- function r(_) {
1736
+ function t(_) {
1735
1737
  var P = _ && _.then;
1736
1738
  if (_ && (typeof _ == "object" || typeof _ == "function") && typeof P == "function")
1737
1739
  return function() {
@@ -1740,72 +1742,72 @@ var Bt = { exports: {} };
1740
1742
  }
1741
1743
  function x(_, P) {
1742
1744
  var m = !1;
1743
- function A(G) {
1744
- m || (m = !0, S.reject(_, G));
1745
+ function D(G) {
1746
+ m || (m = !0, E.reject(_, G));
1745
1747
  }
1746
1748
  function g(G) {
1747
- m || (m = !0, S.resolve(_, G));
1749
+ m || (m = !0, E.resolve(_, G));
1748
1750
  }
1749
1751
  function f() {
1750
- P(g, A);
1752
+ P(g, D);
1751
1753
  }
1752
- var C = E(f);
1753
- C.status === "error" && A(C.value);
1754
+ var C = S(f);
1755
+ C.status === "error" && D(C.value);
1754
1756
  }
1755
- function E(_, P) {
1757
+ function S(_, P) {
1756
1758
  var m = {};
1757
1759
  try {
1758
1760
  m.value = _(P), m.status = "success";
1759
- } catch (A) {
1760
- m.status = "error", m.value = A;
1761
+ } catch (D) {
1762
+ m.status = "error", m.value = D;
1761
1763
  }
1762
1764
  return m;
1763
1765
  }
1764
- b.resolve = y;
1765
- function y(_) {
1766
- return _ instanceof this ? _ : S.resolve(new this(D), _);
1766
+ y.resolve = w;
1767
+ function w(_) {
1768
+ return _ instanceof this ? _ : E.resolve(new this(A), _);
1767
1769
  }
1768
- b.reject = I;
1770
+ y.reject = I;
1769
1771
  function I(_) {
1770
- var P = new this(D);
1771
- return S.reject(P, _);
1772
+ var P = new this(A);
1773
+ return E.reject(P, _);
1772
1774
  }
1773
- b.all = B;
1775
+ y.all = B;
1774
1776
  function B(_) {
1775
1777
  var P = this;
1776
1778
  if (Object.prototype.toString.call(_) !== "[object Array]")
1777
1779
  return this.reject(new TypeError("must be an array"));
1778
- var m = _.length, A = !1;
1780
+ var m = _.length, D = !1;
1779
1781
  if (!m)
1780
1782
  return this.resolve([]);
1781
- for (var g = new Array(m), f = 0, C = -1, G = new this(D); ++C < m; )
1783
+ for (var g = new Array(m), f = 0, C = -1, G = new this(A); ++C < m; )
1782
1784
  J(_[C], C);
1783
1785
  return G;
1784
1786
  function J(ee, ye) {
1785
1787
  P.resolve(ee).then(W, function(H) {
1786
- A || (A = !0, S.reject(G, H));
1788
+ D || (D = !0, E.reject(G, H));
1787
1789
  });
1788
1790
  function W(H) {
1789
- g[ye] = H, ++f === m && !A && (A = !0, S.resolve(G, g));
1791
+ g[ye] = H, ++f === m && !D && (D = !0, E.resolve(G, g));
1790
1792
  }
1791
1793
  }
1792
1794
  }
1793
- b.race = U;
1795
+ y.race = U;
1794
1796
  function U(_) {
1795
1797
  var P = this;
1796
1798
  if (Object.prototype.toString.call(_) !== "[object Array]")
1797
1799
  return this.reject(new TypeError("must be an array"));
1798
- var m = _.length, A = !1;
1800
+ var m = _.length, D = !1;
1799
1801
  if (!m)
1800
1802
  return this.resolve([]);
1801
- for (var g = -1, f = new this(D); ++g < m; )
1803
+ for (var g = -1, f = new this(A); ++g < m; )
1802
1804
  C(_[g]);
1803
1805
  return f;
1804
1806
  function C(G) {
1805
1807
  P.resolve(G).then(function(J) {
1806
- A || (A = !0, S.resolve(f, J));
1808
+ D || (D = !0, E.resolve(f, J));
1807
1809
  }, function(J) {
1808
- A || (A = !0, S.reject(f, J));
1810
+ D || (D = !0, E.reject(f, J));
1809
1811
  });
1810
1812
  }
1811
1813
  }
@@ -1819,11 +1821,11 @@ var Bt = { exports: {} };
1819
1821
  } : function(a) {
1820
1822
  return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
1821
1823
  };
1822
- function D(a, i) {
1824
+ function A(a, i) {
1823
1825
  if (!(a instanceof i))
1824
1826
  throw new TypeError("Cannot call a class as a function");
1825
1827
  }
1826
- function S() {
1828
+ function E() {
1827
1829
  try {
1828
1830
  if (typeof indexedDB < "u")
1829
1831
  return indexedDB;
@@ -1839,7 +1841,7 @@ var Bt = { exports: {} };
1839
1841
  return;
1840
1842
  }
1841
1843
  }
1842
- var T = S();
1844
+ var T = E();
1843
1845
  function L() {
1844
1846
  try {
1845
1847
  if (!T || !T.open)
@@ -1861,13 +1863,13 @@ var Bt = { exports: {} };
1861
1863
  } catch (d) {
1862
1864
  if (d.name !== "TypeError")
1863
1865
  throw d;
1864
- for (var u = typeof BlobBuilder < "u" ? BlobBuilder : typeof MSBlobBuilder < "u" ? MSBlobBuilder : typeof MozBlobBuilder < "u" ? MozBlobBuilder : WebKitBlobBuilder, v = new u(), w = 0; w < a.length; w += 1)
1865
- v.append(a[w]);
1866
+ for (var u = typeof BlobBuilder < "u" ? BlobBuilder : typeof MSBlobBuilder < "u" ? MSBlobBuilder : typeof MozBlobBuilder < "u" ? MozBlobBuilder : WebKitBlobBuilder, v = new u(), b = 0; b < a.length; b += 1)
1867
+ v.append(a[b]);
1866
1868
  return v.getBlob(i.type);
1867
1869
  }
1868
1870
  }
1869
1871
  typeof Promise > "u" && n(3);
1870
- var b = Promise;
1872
+ var y = Promise;
1871
1873
  function c(a, i) {
1872
1874
  i && a.then(function(u) {
1873
1875
  i(null, u);
@@ -1878,41 +1880,41 @@ var Bt = { exports: {} };
1878
1880
  function o(a, i, u) {
1879
1881
  typeof i == "function" && a.then(i), typeof u == "function" && a.catch(u);
1880
1882
  }
1881
- function r(a) {
1883
+ function t(a) {
1882
1884
  return typeof a != "string" && (console.warn(a + " used as a key, but it is not a string."), a = String(a)), a;
1883
1885
  }
1884
1886
  function x() {
1885
1887
  if (arguments.length && typeof arguments[arguments.length - 1] == "function")
1886
1888
  return arguments[arguments.length - 1];
1887
1889
  }
1888
- var E = "local-forage-detect-blob-support", y = void 0, I = {}, B = Object.prototype.toString, U = "readonly", _ = "readwrite";
1890
+ var S = "local-forage-detect-blob-support", w = void 0, I = {}, B = Object.prototype.toString, U = "readonly", _ = "readwrite";
1889
1891
  function P(a) {
1890
- for (var i = a.length, u = new ArrayBuffer(i), v = new Uint8Array(u), w = 0; w < i; w++)
1891
- v[w] = a.charCodeAt(w);
1892
+ for (var i = a.length, u = new ArrayBuffer(i), v = new Uint8Array(u), b = 0; b < i; b++)
1893
+ v[b] = a.charCodeAt(b);
1892
1894
  return u;
1893
1895
  }
1894
1896
  function m(a) {
1895
- return new b(function(i) {
1896
- var u = a.transaction(E, _), v = R([""]);
1897
- u.objectStore(E).put(v, "key"), u.onabort = function(w) {
1898
- w.preventDefault(), w.stopPropagation(), i(!1);
1897
+ return new y(function(i) {
1898
+ var u = a.transaction(S, _), v = R([""]);
1899
+ u.objectStore(S).put(v, "key"), u.onabort = function(b) {
1900
+ b.preventDefault(), b.stopPropagation(), i(!1);
1899
1901
  }, u.oncomplete = function() {
1900
- var w = navigator.userAgent.match(/Chrome\/(\d+)/), d = navigator.userAgent.match(/Edge\//);
1901
- i(d || !w || parseInt(w[1], 10) >= 43);
1902
+ var b = navigator.userAgent.match(/Chrome\/(\d+)/), d = navigator.userAgent.match(/Edge\//);
1903
+ i(d || !b || parseInt(b[1], 10) >= 43);
1902
1904
  };
1903
1905
  }).catch(function() {
1904
1906
  return !1;
1905
1907
  });
1906
1908
  }
1907
- function A(a) {
1908
- return typeof y == "boolean" ? b.resolve(y) : m(a).then(function(i) {
1909
- return y = i, y;
1909
+ function D(a) {
1910
+ return typeof w == "boolean" ? y.resolve(w) : m(a).then(function(i) {
1911
+ return w = i, w;
1910
1912
  });
1911
1913
  }
1912
1914
  function g(a) {
1913
1915
  var i = I[a.name], u = {};
1914
- u.promise = new b(function(v, w) {
1915
- u.resolve = v, u.reject = w;
1916
+ u.promise = new y(function(v, b) {
1917
+ u.resolve = v, u.reject = b;
1916
1918
  }), i.deferredOperations.push(u), i.dbReady ? i.dbReady = i.dbReady.then(function() {
1917
1919
  return u.promise;
1918
1920
  }) : i.dbReady = u.promise;
@@ -1928,19 +1930,19 @@ var Bt = { exports: {} };
1928
1930
  return v.reject(i), v.promise;
1929
1931
  }
1930
1932
  function G(a, i) {
1931
- return new b(function(u, v) {
1933
+ return new y(function(u, v) {
1932
1934
  if (I[a.name] = I[a.name] || fe(), a.db)
1933
1935
  if (i)
1934
1936
  g(a), a.db.close();
1935
1937
  else
1936
1938
  return u(a.db);
1937
- var w = [a.name];
1938
- i && w.push(a.version);
1939
- var d = T.open.apply(T, w);
1939
+ var b = [a.name];
1940
+ i && b.push(a.version);
1941
+ var d = T.open.apply(T, b);
1940
1942
  i && (d.onupgradeneeded = function(N) {
1941
1943
  var M = d.result;
1942
1944
  try {
1943
- M.createObjectStore(a.storeName), N.oldVersion <= 1 && M.createObjectStore(E);
1945
+ M.createObjectStore(a.storeName), N.oldVersion <= 1 && M.createObjectStore(S);
1944
1946
  } catch ($) {
1945
1947
  if ($.name === "ConstraintError")
1946
1948
  console.warn('The database "' + a.name + '" has been upgraded from version ' + N.oldVersion + " to version " + N.newVersion + ', but the storage "' + a.storeName + '" already exists.');
@@ -1966,8 +1968,8 @@ var Bt = { exports: {} };
1966
1968
  function ye(a, i) {
1967
1969
  if (!a.db)
1968
1970
  return !0;
1969
- var u = !a.db.objectStoreNames.contains(a.storeName), v = a.version < a.db.version, w = a.version > a.db.version;
1970
- if (v && (a.version !== i && console.warn('The database "' + a.name + `" can't be downgraded from version ` + a.db.version + " to version " + a.version + "."), a.version = a.db.version), w || u) {
1971
+ var u = !a.db.objectStoreNames.contains(a.storeName), v = a.version < a.db.version, b = a.version > a.db.version;
1972
+ if (v && (a.version !== i && console.warn('The database "' + a.name + `" can't be downgraded from version ` + a.db.version + " to version " + a.version + "."), a.version = a.db.version), b || u) {
1971
1973
  if (u) {
1972
1974
  var d = a.db.version + 1;
1973
1975
  d > a.version && (a.version = d);
@@ -1977,10 +1979,10 @@ var Bt = { exports: {} };
1977
1979
  return !1;
1978
1980
  }
1979
1981
  function W(a) {
1980
- return new b(function(i, u) {
1982
+ return new y(function(i, u) {
1981
1983
  var v = new FileReader();
1982
- v.onerror = u, v.onloadend = function(w) {
1983
- var d = btoa(w.target.result || "");
1984
+ v.onerror = u, v.onloadend = function(b) {
1985
+ var d = btoa(b.target.result || "");
1984
1986
  i({
1985
1987
  __local_forage_encoded_blob: !0,
1986
1988
  data: d,
@@ -2007,8 +2009,8 @@ var Bt = { exports: {} };
2007
2009
  function Y(a) {
2008
2010
  g(a);
2009
2011
  for (var i = I[a.name], u = i.forages, v = 0; v < u.length; v++) {
2010
- var w = u[v];
2011
- w._dbInfo.db && (w._dbInfo.db.close(), w._dbInfo.db = null);
2012
+ var b = u[v];
2013
+ b._dbInfo.db && (b._dbInfo.db.close(), b._dbInfo.db = null);
2012
2014
  }
2013
2015
  return a.db = null, J(a).then(function(d) {
2014
2016
  return a.db = d, ye(a) ? ee(a) : d;
@@ -2023,11 +2025,11 @@ var Bt = { exports: {} };
2023
2025
  function re(a, i, u, v) {
2024
2026
  v === void 0 && (v = 1);
2025
2027
  try {
2026
- var w = a.db.transaction(a.storeName, i);
2027
- u(null, w);
2028
+ var b = a.db.transaction(a.storeName, i);
2029
+ u(null, b);
2028
2030
  } catch (d) {
2029
2031
  if (v > 0 && (!a.db || d.name === "InvalidStateError" || d.name === "NotFoundError"))
2030
- return b.resolve().then(function() {
2032
+ return y.resolve().then(function() {
2031
2033
  if (!a.db || d.name === "NotFoundError" && !a.db.objectStoreNames.contains(a.storeName) && a.version <= a.db.version)
2032
2034
  return a.db && (a.version = a.db.version + 1), ee(a);
2033
2035
  }).then(function() {
@@ -2057,23 +2059,23 @@ var Bt = { exports: {} };
2057
2059
  if (a)
2058
2060
  for (var v in a)
2059
2061
  u[v] = a[v];
2060
- var w = I[u.name];
2061
- w || (w = fe(), I[u.name] = w), w.forages.push(i), i._initReady || (i._initReady = i.ready, i.ready = ce);
2062
+ var b = I[u.name];
2063
+ b || (b = fe(), I[u.name] = b), b.forages.push(i), i._initReady || (i._initReady = i.ready, i.ready = ce);
2062
2064
  var d = [];
2063
2065
  function N() {
2064
- return b.resolve();
2066
+ return y.resolve();
2065
2067
  }
2066
- for (var M = 0; M < w.forages.length; M++) {
2067
- var $ = w.forages[M];
2068
+ for (var M = 0; M < b.forages.length; M++) {
2069
+ var $ = b.forages[M];
2068
2070
  $ !== i && d.push($._initReady().catch(N));
2069
2071
  }
2070
- var F = w.forages.slice(0);
2071
- return b.all(d).then(function() {
2072
- return u.db = w.db, J(u);
2072
+ var F = b.forages.slice(0);
2073
+ return y.all(d).then(function() {
2074
+ return u.db = b.db, J(u);
2073
2075
  }).then(function(k) {
2074
2076
  return u.db = k, ye(u, i._defaultConfig.version) ? ee(u) : k;
2075
2077
  }).then(function(k) {
2076
- u.db = w.db = k, i._dbInfo = u;
2078
+ u.db = b.db = k, i._dbInfo = u;
2077
2079
  for (var q = 0; q < F.length; q++) {
2078
2080
  var z = F[q];
2079
2081
  z !== i && (z._dbInfo.db = u.db, z._dbInfo.version = u.version);
@@ -2082,8 +2084,8 @@ var Bt = { exports: {} };
2082
2084
  }
2083
2085
  function we(a, i) {
2084
2086
  var u = this;
2085
- a = r(a);
2086
- var v = new b(function(w, d) {
2087
+ a = t(a);
2088
+ var v = new y(function(b, d) {
2087
2089
  u.ready().then(function() {
2088
2090
  re(u._dbInfo, U, function(N, M) {
2089
2091
  if (N)
@@ -2092,7 +2094,7 @@ var Bt = { exports: {} };
2092
2094
  var $ = M.objectStore(u._dbInfo.storeName), F = $.get(a);
2093
2095
  F.onsuccess = function() {
2094
2096
  var k = F.result;
2095
- k === void 0 && (k = null), V(k) && (k = H(k)), w(k);
2097
+ k === void 0 && (k = null), V(k) && (k = H(k)), b(k);
2096
2098
  }, F.onerror = function() {
2097
2099
  d(F.error);
2098
2100
  };
@@ -2105,7 +2107,7 @@ var Bt = { exports: {} };
2105
2107
  return c(v, i), v;
2106
2108
  }
2107
2109
  function ur(a, i) {
2108
- var u = this, v = new b(function(w, d) {
2110
+ var u = this, v = new y(function(b, d) {
2109
2111
  u.ready().then(function() {
2110
2112
  re(u._dbInfo, U, function(N, M) {
2111
2113
  if (N)
@@ -2118,9 +2120,9 @@ var Bt = { exports: {} };
2118
2120
  var z = q.value;
2119
2121
  V(z) && (z = H(z));
2120
2122
  var X = a(z, q.key, k++);
2121
- X !== void 0 ? w(X) : q.continue();
2123
+ X !== void 0 ? b(X) : q.continue();
2122
2124
  } else
2123
- w();
2125
+ b();
2124
2126
  }, F.onerror = function() {
2125
2127
  d(F.error);
2126
2128
  };
@@ -2134,11 +2136,11 @@ var Bt = { exports: {} };
2134
2136
  }
2135
2137
  function Pe(a, i, u) {
2136
2138
  var v = this;
2137
- a = r(a);
2138
- var w = new b(function(d, N) {
2139
+ a = t(a);
2140
+ var b = new y(function(d, N) {
2139
2141
  var M;
2140
2142
  v.ready().then(function() {
2141
- return M = v._dbInfo, B.call(i) === "[object Blob]" ? A(M.db).then(function($) {
2143
+ return M = v._dbInfo, B.call(i) === "[object Blob]" ? D(M.db).then(function($) {
2142
2144
  return $ ? i : W(i);
2143
2145
  }) : i;
2144
2146
  }).then(function($) {
@@ -2161,12 +2163,12 @@ var Bt = { exports: {} };
2161
2163
  });
2162
2164
  }).catch(N);
2163
2165
  });
2164
- return c(w, u), w;
2166
+ return c(b, u), b;
2165
2167
  }
2166
2168
  function lr(a, i) {
2167
2169
  var u = this;
2168
- a = r(a);
2169
- var v = new b(function(w, d) {
2170
+ a = t(a);
2171
+ var v = new y(function(b, d) {
2170
2172
  u.ready().then(function() {
2171
2173
  re(u._dbInfo, _, function(N, M) {
2172
2174
  if (N)
@@ -2174,7 +2176,7 @@ var Bt = { exports: {} };
2174
2176
  try {
2175
2177
  var $ = M.objectStore(u._dbInfo.storeName), F = $.delete(a);
2176
2178
  M.oncomplete = function() {
2177
- w();
2179
+ b();
2178
2180
  }, M.onerror = function() {
2179
2181
  d(F.error);
2180
2182
  }, M.onabort = function() {
@@ -2190,52 +2192,52 @@ var Bt = { exports: {} };
2190
2192
  return c(v, i), v;
2191
2193
  }
2192
2194
  function cr(a) {
2193
- var i = this, u = new b(function(v, w) {
2195
+ var i = this, u = new y(function(v, b) {
2194
2196
  i.ready().then(function() {
2195
2197
  re(i._dbInfo, _, function(d, N) {
2196
2198
  if (d)
2197
- return w(d);
2199
+ return b(d);
2198
2200
  try {
2199
2201
  var M = N.objectStore(i._dbInfo.storeName), $ = M.clear();
2200
2202
  N.oncomplete = function() {
2201
2203
  v();
2202
2204
  }, N.onabort = N.onerror = function() {
2203
2205
  var F = $.error ? $.error : $.transaction.error;
2204
- w(F);
2206
+ b(F);
2205
2207
  };
2206
2208
  } catch (F) {
2207
- w(F);
2209
+ b(F);
2208
2210
  }
2209
2211
  });
2210
- }).catch(w);
2212
+ }).catch(b);
2211
2213
  });
2212
2214
  return c(u, a), u;
2213
2215
  }
2214
2216
  function ir(a) {
2215
- var i = this, u = new b(function(v, w) {
2217
+ var i = this, u = new y(function(v, b) {
2216
2218
  i.ready().then(function() {
2217
2219
  re(i._dbInfo, U, function(d, N) {
2218
2220
  if (d)
2219
- return w(d);
2221
+ return b(d);
2220
2222
  try {
2221
2223
  var M = N.objectStore(i._dbInfo.storeName), $ = M.count();
2222
2224
  $.onsuccess = function() {
2223
2225
  v($.result);
2224
2226
  }, $.onerror = function() {
2225
- w($.error);
2227
+ b($.error);
2226
2228
  };
2227
2229
  } catch (F) {
2228
- w(F);
2230
+ b(F);
2229
2231
  }
2230
2232
  });
2231
- }).catch(w);
2233
+ }).catch(b);
2232
2234
  });
2233
2235
  return c(u, a), u;
2234
2236
  }
2235
2237
  function fr(a, i) {
2236
- var u = this, v = new b(function(w, d) {
2238
+ var u = this, v = new y(function(b, d) {
2237
2239
  if (a < 0) {
2238
- w(null);
2240
+ b(null);
2239
2241
  return;
2240
2242
  }
2241
2243
  u.ready().then(function() {
@@ -2247,10 +2249,10 @@ var Bt = { exports: {} };
2247
2249
  k.onsuccess = function() {
2248
2250
  var q = k.result;
2249
2251
  if (!q) {
2250
- w(null);
2252
+ b(null);
2251
2253
  return;
2252
2254
  }
2253
- a === 0 || F ? w(q.key) : (F = !0, q.advance(a));
2255
+ a === 0 || F ? b(q.key) : (F = !0, q.advance(a));
2254
2256
  }, k.onerror = function() {
2255
2257
  d(k.error);
2256
2258
  };
@@ -2263,11 +2265,11 @@ var Bt = { exports: {} };
2263
2265
  return c(v, i), v;
2264
2266
  }
2265
2267
  function sr(a) {
2266
- var i = this, u = new b(function(v, w) {
2268
+ var i = this, u = new y(function(v, b) {
2267
2269
  i.ready().then(function() {
2268
2270
  re(i._dbInfo, U, function(d, N) {
2269
2271
  if (d)
2270
- return w(d);
2272
+ return b(d);
2271
2273
  try {
2272
2274
  var M = N.objectStore(i._dbInfo.storeName), $ = M.openKeyCursor(), F = [];
2273
2275
  $.onsuccess = function() {
@@ -2278,13 +2280,13 @@ var Bt = { exports: {} };
2278
2280
  }
2279
2281
  F.push(k.key), k.continue();
2280
2282
  }, $.onerror = function() {
2281
- w($.error);
2283
+ b($.error);
2282
2284
  };
2283
2285
  } catch (k) {
2284
- w(k);
2286
+ b(k);
2285
2287
  }
2286
2288
  });
2287
- }).catch(w);
2289
+ }).catch(b);
2288
2290
  });
2289
2291
  return c(u, a), u;
2290
2292
  }
@@ -2292,18 +2294,18 @@ var Bt = { exports: {} };
2292
2294
  i = x.apply(this, arguments);
2293
2295
  var u = this.config();
2294
2296
  a = typeof a != "function" && a || {}, a.name || (a.name = a.name || u.name, a.storeName = a.storeName || u.storeName);
2295
- var v = this, w;
2297
+ var v = this, b;
2296
2298
  if (!a.name)
2297
- w = b.reject("Invalid arguments");
2299
+ b = y.reject("Invalid arguments");
2298
2300
  else {
2299
- var d = a.name === u.name && v._dbInfo.db, N = d ? b.resolve(v._dbInfo.db) : J(a).then(function(M) {
2301
+ var d = a.name === u.name && v._dbInfo.db, N = d ? y.resolve(v._dbInfo.db) : J(a).then(function(M) {
2300
2302
  var $ = I[a.name], F = $.forages;
2301
2303
  $.db = M;
2302
2304
  for (var k = 0; k < F.length; k++)
2303
2305
  F[k]._dbInfo.db = M;
2304
2306
  return M;
2305
2307
  });
2306
- a.storeName ? w = N.then(function(M) {
2308
+ a.storeName ? b = N.then(function(M) {
2307
2309
  if (M.objectStoreNames.contains(a.storeName)) {
2308
2310
  var $ = M.version + 1;
2309
2311
  g(a);
@@ -2313,7 +2315,7 @@ var Bt = { exports: {} };
2313
2315
  var z = k[q];
2314
2316
  z._dbInfo.db = null, z._dbInfo.version = $;
2315
2317
  }
2316
- var X = new b(function(O, ue) {
2318
+ var X = new y(function(O, ue) {
2317
2319
  var ne = T.open(a.name, $);
2318
2320
  ne.onerror = function(me) {
2319
2321
  var Ve = ne.result;
@@ -2333,11 +2335,11 @@ var Bt = { exports: {} };
2333
2335
  ne._dbInfo.db = O, f(ne._dbInfo);
2334
2336
  }
2335
2337
  }).catch(function(O) {
2336
- throw (C(a, O) || b.resolve()).catch(function() {
2338
+ throw (C(a, O) || y.resolve()).catch(function() {
2337
2339
  }), O;
2338
2340
  });
2339
2341
  }
2340
- }) : w = N.then(function(M) {
2342
+ }) : b = N.then(function(M) {
2341
2343
  g(a);
2342
2344
  var $ = I[a.name], F = $.forages;
2343
2345
  M.close();
@@ -2345,7 +2347,7 @@ var Bt = { exports: {} };
2345
2347
  var q = F[k];
2346
2348
  q._dbInfo.db = null;
2347
2349
  }
2348
- var z = new b(function(X, O) {
2350
+ var z = new y(function(X, O) {
2349
2351
  var ue = T.deleteDatabase(a.name);
2350
2352
  ue.onerror = function() {
2351
2353
  var ne = ue.result;
@@ -2364,12 +2366,12 @@ var Bt = { exports: {} };
2364
2366
  f(ue._dbInfo);
2365
2367
  }
2366
2368
  }).catch(function(X) {
2367
- throw (C(a, X) || b.resolve()).catch(function() {
2369
+ throw (C(a, X) || y.resolve()).catch(function() {
2368
2370
  }), X;
2369
2371
  });
2370
2372
  });
2371
2373
  }
2372
- return c(w, i), w;
2374
+ return c(b, i), b;
2373
2375
  }
2374
2376
  var hr = {
2375
2377
  _driver: "asyncStorage",
@@ -2390,11 +2392,11 @@ var Bt = { exports: {} };
2390
2392
  }
2391
2393
  var Se = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ne = "~~local_forage_type~", Ze = /^~~local_forage_type~([^~]+)~/, Le = "__lfsc__:", Me = Le.length, j = "arbf", te = "blob", Q = "si08", p = "ui08", be = "uic8", Ae = "si16", Re = "si32", _e = "ur16", se = "ui32", De = "fl32", Qr = "fl64", Xr = Me + j.length, Or = Object.prototype.toString;
2392
2394
  function pr(a) {
2393
- var i = a.length * 0.75, u = a.length, v, w = 0, d, N, M, $;
2395
+ var i = a.length * 0.75, u = a.length, v, b = 0, d, N, M, $;
2394
2396
  a[a.length - 1] === "=" && (i--, a[a.length - 2] === "=" && i--);
2395
2397
  var F = new ArrayBuffer(i), k = new Uint8Array(F);
2396
2398
  for (v = 0; v < u; v += 4)
2397
- d = Se.indexOf(a[v]), N = Se.indexOf(a[v + 1]), M = Se.indexOf(a[v + 2]), $ = Se.indexOf(a[v + 3]), k[w++] = d << 2 | N >> 4, k[w++] = (N & 15) << 4 | M >> 2, k[w++] = (M & 3) << 6 | $ & 63;
2399
+ d = Se.indexOf(a[v]), N = Se.indexOf(a[v + 1]), M = Se.indexOf(a[v + 2]), $ = Se.indexOf(a[v + 3]), k[b++] = d << 2 | N >> 4, k[b++] = (N & 15) << 4 | M >> 2, k[b++] = (M & 3) << 6 | $ & 63;
2398
2400
  return F;
2399
2401
  }
2400
2402
  function dr(a) {
@@ -2406,8 +2408,8 @@ var Bt = { exports: {} };
2406
2408
  function jt(a, i) {
2407
2409
  var u = "";
2408
2410
  if (a && (u = Or.call(a)), a && (u === "[object ArrayBuffer]" || a.buffer && Or.call(a.buffer) === "[object ArrayBuffer]")) {
2409
- var v, w = Le;
2410
- a instanceof ArrayBuffer ? (v = a, w += j) : (v = a.buffer, u === "[object Int8Array]" ? w += Q : u === "[object Uint8Array]" ? w += p : u === "[object Uint8ClampedArray]" ? w += be : u === "[object Int16Array]" ? w += Ae : u === "[object Uint16Array]" ? w += _e : u === "[object Int32Array]" ? w += Re : u === "[object Uint32Array]" ? w += se : u === "[object Float32Array]" ? w += De : u === "[object Float64Array]" ? w += Qr : i(new Error("Failed to get type for BinaryArray"))), i(w + dr(v));
2411
+ var v, b = Le;
2412
+ a instanceof ArrayBuffer ? (v = a, b += j) : (v = a.buffer, u === "[object Int8Array]" ? b += Q : u === "[object Uint8Array]" ? b += p : u === "[object Uint8ClampedArray]" ? b += be : u === "[object Int16Array]" ? b += Ae : u === "[object Uint16Array]" ? b += _e : u === "[object Int32Array]" ? b += Re : u === "[object Uint32Array]" ? b += se : u === "[object Float32Array]" ? b += De : u === "[object Float64Array]" ? b += Qr : i(new Error("Failed to get type for BinaryArray"))), i(b + dr(v));
2411
2413
  } else if (u === "[object Blob]") {
2412
2414
  var d = new FileReader();
2413
2415
  d.onload = function() {
@@ -2426,8 +2428,8 @@ var Bt = { exports: {} };
2426
2428
  return JSON.parse(a);
2427
2429
  var i = a.substring(Xr), u = a.substring(Me, Xr), v;
2428
2430
  if (u === te && Ze.test(i)) {
2429
- var w = i.match(Ze);
2430
- v = w[1], i = i.substring(w[0].length);
2431
+ var b = i.match(Ze);
2432
+ v = b[1], i = i.substring(b[0].length);
2431
2433
  }
2432
2434
  var d = pr(i);
2433
2435
  switch (u) {
@@ -2473,7 +2475,7 @@ var Bt = { exports: {} };
2473
2475
  if (a)
2474
2476
  for (var v in a)
2475
2477
  u[v] = typeof a[v] != "string" ? a[v].toString() : a[v];
2476
- var w = new b(function(d, N) {
2478
+ var b = new y(function(d, N) {
2477
2479
  try {
2478
2480
  u.db = openDatabase(u.name, String(u.version), u.description, u.size);
2479
2481
  } catch (M) {
@@ -2487,27 +2489,27 @@ var Bt = { exports: {} };
2487
2489
  });
2488
2490
  }, N);
2489
2491
  });
2490
- return u.serializer = mr, w;
2492
+ return u.serializer = mr, b;
2491
2493
  }
2492
- function Ie(a, i, u, v, w, d) {
2493
- a.executeSql(u, v, w, function(N, M) {
2494
+ function Ie(a, i, u, v, b, d) {
2495
+ a.executeSql(u, v, b, function(N, M) {
2494
2496
  M.code === M.SYNTAX_ERR ? N.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [i.storeName], function($, F) {
2495
2497
  F.rows.length ? d($, M) : et($, i, function() {
2496
- $.executeSql(u, v, w, d);
2498
+ $.executeSql(u, v, b, d);
2497
2499
  }, d);
2498
2500
  }, d) : d(N, M);
2499
2501
  }, d);
2500
2502
  }
2501
2503
  function Ht(a, i) {
2502
2504
  var u = this;
2503
- a = r(a);
2504
- var v = new b(function(w, d) {
2505
+ a = t(a);
2506
+ var v = new y(function(b, d) {
2505
2507
  u.ready().then(function() {
2506
2508
  var N = u._dbInfo;
2507
2509
  N.db.transaction(function(M) {
2508
2510
  Ie(M, N, "SELECT * FROM " + N.storeName + " WHERE key = ? LIMIT 1", [a], function($, F) {
2509
2511
  var k = F.rows.length ? F.rows.item(0).value : null;
2510
- k && (k = N.serializer.deserialize(k)), w(k);
2512
+ k && (k = N.serializer.deserialize(k)), b(k);
2511
2513
  }, function($, F) {
2512
2514
  d(F);
2513
2515
  });
@@ -2517,7 +2519,7 @@ var Bt = { exports: {} };
2517
2519
  return c(v, i), v;
2518
2520
  }
2519
2521
  function zt(a, i) {
2520
- var u = this, v = new b(function(w, d) {
2522
+ var u = this, v = new y(function(b, d) {
2521
2523
  u.ready().then(function() {
2522
2524
  var N = u._dbInfo;
2523
2525
  N.db.transaction(function(M) {
@@ -2525,11 +2527,11 @@ var Bt = { exports: {} };
2525
2527
  for (var k = F.rows, q = k.length, z = 0; z < q; z++) {
2526
2528
  var X = k.item(z), O = X.value;
2527
2529
  if (O && (O = N.serializer.deserialize(O)), O = a(O, X.key, z + 1), O !== void 0) {
2528
- w(O);
2530
+ b(O);
2529
2531
  return;
2530
2532
  }
2531
2533
  }
2532
- w();
2534
+ b();
2533
2535
  }, function($, F) {
2534
2536
  d(F);
2535
2537
  });
@@ -2539,12 +2541,12 @@ var Bt = { exports: {} };
2539
2541
  return c(v, i), v;
2540
2542
  }
2541
2543
  function rt(a, i, u, v) {
2542
- var w = this;
2543
- a = r(a);
2544
- var d = new b(function(N, M) {
2545
- w.ready().then(function() {
2544
+ var b = this;
2545
+ a = t(a);
2546
+ var d = new y(function(N, M) {
2547
+ b.ready().then(function() {
2546
2548
  i === void 0 && (i = null);
2547
- var $ = i, F = w._dbInfo;
2549
+ var $ = i, F = b._dbInfo;
2548
2550
  F.serializer.serialize(i, function(k, q) {
2549
2551
  q ? M(q) : F.db.transaction(function(z) {
2550
2552
  Ie(z, F, "INSERT OR REPLACE INTO " + F.storeName + " (key, value) VALUES (?, ?)", [a, k], function() {
@@ -2555,7 +2557,7 @@ var Bt = { exports: {} };
2555
2557
  }, function(z) {
2556
2558
  if (z.code === z.QUOTA_ERR) {
2557
2559
  if (v > 0) {
2558
- N(rt.apply(w, [a, $, u, v - 1]));
2560
+ N(rt.apply(b, [a, $, u, v - 1]));
2559
2561
  return;
2560
2562
  }
2561
2563
  M(z);
@@ -2571,13 +2573,13 @@ var Bt = { exports: {} };
2571
2573
  }
2572
2574
  function Yt(a, i) {
2573
2575
  var u = this;
2574
- a = r(a);
2575
- var v = new b(function(w, d) {
2576
+ a = t(a);
2577
+ var v = new y(function(b, d) {
2576
2578
  u.ready().then(function() {
2577
2579
  var N = u._dbInfo;
2578
2580
  N.db.transaction(function(M) {
2579
2581
  Ie(M, N, "DELETE FROM " + N.storeName + " WHERE key = ?", [a], function() {
2580
- w();
2582
+ b();
2581
2583
  }, function($, F) {
2582
2584
  d(F);
2583
2585
  });
@@ -2587,22 +2589,22 @@ var Bt = { exports: {} };
2587
2589
  return c(v, i), v;
2588
2590
  }
2589
2591
  function Jt(a) {
2590
- var i = this, u = new b(function(v, w) {
2592
+ var i = this, u = new y(function(v, b) {
2591
2593
  i.ready().then(function() {
2592
2594
  var d = i._dbInfo;
2593
2595
  d.db.transaction(function(N) {
2594
2596
  Ie(N, d, "DELETE FROM " + d.storeName, [], function() {
2595
2597
  v();
2596
2598
  }, function(M, $) {
2597
- w($);
2599
+ b($);
2598
2600
  });
2599
2601
  });
2600
- }).catch(w);
2602
+ }).catch(b);
2601
2603
  });
2602
2604
  return c(u, a), u;
2603
2605
  }
2604
2606
  function Kt(a) {
2605
- var i = this, u = new b(function(v, w) {
2607
+ var i = this, u = new y(function(v, b) {
2606
2608
  i.ready().then(function() {
2607
2609
  var d = i._dbInfo;
2608
2610
  d.db.transaction(function(N) {
@@ -2610,21 +2612,21 @@ var Bt = { exports: {} };
2610
2612
  var F = $.rows.item(0).c;
2611
2613
  v(F);
2612
2614
  }, function(M, $) {
2613
- w($);
2615
+ b($);
2614
2616
  });
2615
2617
  });
2616
- }).catch(w);
2618
+ }).catch(b);
2617
2619
  });
2618
2620
  return c(u, a), u;
2619
2621
  }
2620
2622
  function Qt(a, i) {
2621
- var u = this, v = new b(function(w, d) {
2623
+ var u = this, v = new y(function(b, d) {
2622
2624
  u.ready().then(function() {
2623
2625
  var N = u._dbInfo;
2624
2626
  N.db.transaction(function(M) {
2625
2627
  Ie(M, N, "SELECT key FROM " + N.storeName + " WHERE id = ? LIMIT 1", [a + 1], function($, F) {
2626
2628
  var k = F.rows.length ? F.rows.item(0).key : null;
2627
- w(k);
2629
+ b(k);
2628
2630
  }, function($, F) {
2629
2631
  d(F);
2630
2632
  });
@@ -2634,7 +2636,7 @@ var Bt = { exports: {} };
2634
2636
  return c(v, i), v;
2635
2637
  }
2636
2638
  function Xt(a) {
2637
- var i = this, u = new b(function(v, w) {
2639
+ var i = this, u = new y(function(v, b) {
2638
2640
  i.ready().then(function() {
2639
2641
  var d = i._dbInfo;
2640
2642
  d.db.transaction(function(N) {
@@ -2643,24 +2645,24 @@ var Bt = { exports: {} };
2643
2645
  F.push($.rows.item(k).key);
2644
2646
  v(F);
2645
2647
  }, function(M, $) {
2646
- w($);
2648
+ b($);
2647
2649
  });
2648
2650
  });
2649
- }).catch(w);
2651
+ }).catch(b);
2650
2652
  });
2651
2653
  return c(u, a), u;
2652
2654
  }
2653
2655
  function Ot(a) {
2654
- return new b(function(i, u) {
2656
+ return new y(function(i, u) {
2655
2657
  a.transaction(function(v) {
2656
- v.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'", [], function(w, d) {
2658
+ v.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'", [], function(b, d) {
2657
2659
  for (var N = [], M = 0; M < d.rows.length; M++)
2658
2660
  N.push(d.rows.item(M).name);
2659
2661
  i({
2660
2662
  db: a,
2661
2663
  storeNames: N
2662
2664
  });
2663
- }, function(w, d) {
2665
+ }, function(b, d) {
2664
2666
  u(d);
2665
2667
  });
2666
2668
  }, function(v) {
@@ -2672,18 +2674,18 @@ var Bt = { exports: {} };
2672
2674
  i = x.apply(this, arguments);
2673
2675
  var u = this.config();
2674
2676
  a = typeof a != "function" && a || {}, a.name || (a.name = a.name || u.name, a.storeName = a.storeName || u.storeName);
2675
- var v = this, w;
2676
- return a.name ? w = new b(function(d) {
2677
+ var v = this, b;
2678
+ return a.name ? b = new y(function(d) {
2677
2679
  var N;
2678
2680
  a.name === u.name ? N = v._dbInfo.db : N = openDatabase(a.name, "", "", 0), a.storeName ? d({
2679
2681
  db: N,
2680
2682
  storeNames: [a.storeName]
2681
2683
  }) : d(Ot(N));
2682
2684
  }).then(function(d) {
2683
- return new b(function(N, M) {
2685
+ return new y(function(N, M) {
2684
2686
  d.db.transaction(function($) {
2685
2687
  function F(X) {
2686
- return new b(function(O, ue) {
2688
+ return new y(function(O, ue) {
2687
2689
  $.executeSql("DROP TABLE IF EXISTS " + X, [], function() {
2688
2690
  O();
2689
2691
  }, function(ne, me) {
@@ -2693,7 +2695,7 @@ var Bt = { exports: {} };
2693
2695
  }
2694
2696
  for (var k = [], q = 0, z = d.storeNames.length; q < z; q++)
2695
2697
  k.push(F(d.storeNames[q]));
2696
- b.all(k).then(function() {
2698
+ y.all(k).then(function() {
2697
2699
  N();
2698
2700
  }).catch(function(X) {
2699
2701
  M(X);
@@ -2702,7 +2704,7 @@ var Bt = { exports: {} };
2702
2704
  M($);
2703
2705
  });
2704
2706
  });
2705
- }) : w = b.reject("Invalid arguments"), c(w, i), w;
2707
+ }) : b = y.reject("Invalid arguments"), c(b, i), b;
2706
2708
  }
2707
2709
  var en = {
2708
2710
  _driver: "webSQLStorage",
@@ -2746,12 +2748,12 @@ var Bt = { exports: {} };
2746
2748
  if (a)
2747
2749
  for (var v in a)
2748
2750
  u[v] = a[v];
2749
- return u.keyPrefix = tt(a, i._defaultConfig), nn() ? (i._dbInfo = u, u.serializer = mr, b.resolve()) : b.reject();
2751
+ return u.keyPrefix = tt(a, i._defaultConfig), nn() ? (i._dbInfo = u, u.serializer = mr, y.resolve()) : y.reject();
2750
2752
  }
2751
2753
  function un(a) {
2752
2754
  var i = this, u = i.ready().then(function() {
2753
- for (var v = i._dbInfo.keyPrefix, w = localStorage.length - 1; w >= 0; w--) {
2754
- var d = localStorage.key(w);
2755
+ for (var v = i._dbInfo.keyPrefix, b = localStorage.length - 1; b >= 0; b--) {
2756
+ var d = localStorage.key(b);
2755
2757
  d.indexOf(v) === 0 && localStorage.removeItem(d);
2756
2758
  }
2757
2759
  });
@@ -2759,20 +2761,20 @@ var Bt = { exports: {} };
2759
2761
  }
2760
2762
  function ln(a, i) {
2761
2763
  var u = this;
2762
- a = r(a);
2764
+ a = t(a);
2763
2765
  var v = u.ready().then(function() {
2764
- var w = u._dbInfo, d = localStorage.getItem(w.keyPrefix + a);
2765
- return d && (d = w.serializer.deserialize(d)), d;
2766
+ var b = u._dbInfo, d = localStorage.getItem(b.keyPrefix + a);
2767
+ return d && (d = b.serializer.deserialize(d)), d;
2766
2768
  });
2767
2769
  return c(v, i), v;
2768
2770
  }
2769
2771
  function cn(a, i) {
2770
2772
  var u = this, v = u.ready().then(function() {
2771
- for (var w = u._dbInfo, d = w.keyPrefix, N = d.length, M = localStorage.length, $ = 1, F = 0; F < M; F++) {
2773
+ for (var b = u._dbInfo, d = b.keyPrefix, N = d.length, M = localStorage.length, $ = 1, F = 0; F < M; F++) {
2772
2774
  var k = localStorage.key(F);
2773
2775
  if (k.indexOf(d) === 0) {
2774
2776
  var q = localStorage.getItem(k);
2775
- if (q && (q = w.serializer.deserialize(q)), q = a(q, k.substring(N), $++), q !== void 0)
2777
+ if (q && (q = b.serializer.deserialize(q)), q = a(q, k.substring(N), $++), q !== void 0)
2776
2778
  return q;
2777
2779
  }
2778
2780
  }
@@ -2781,19 +2783,19 @@ var Bt = { exports: {} };
2781
2783
  }
2782
2784
  function fn(a, i) {
2783
2785
  var u = this, v = u.ready().then(function() {
2784
- var w = u._dbInfo, d;
2786
+ var b = u._dbInfo, d;
2785
2787
  try {
2786
2788
  d = localStorage.key(a);
2787
2789
  } catch {
2788
2790
  d = null;
2789
2791
  }
2790
- return d && (d = d.substring(w.keyPrefix.length)), d;
2792
+ return d && (d = d.substring(b.keyPrefix.length)), d;
2791
2793
  });
2792
2794
  return c(v, i), v;
2793
2795
  }
2794
2796
  function sn(a) {
2795
2797
  var i = this, u = i.ready().then(function() {
2796
- for (var v = i._dbInfo, w = localStorage.length, d = [], N = 0; N < w; N++) {
2798
+ for (var v = i._dbInfo, b = localStorage.length, d = [], N = 0; N < b; N++) {
2797
2799
  var M = localStorage.key(N);
2798
2800
  M.indexOf(v.keyPrefix) === 0 && d.push(M.substring(v.keyPrefix.length));
2799
2801
  }
@@ -2809,20 +2811,20 @@ var Bt = { exports: {} };
2809
2811
  }
2810
2812
  function hn(a, i) {
2811
2813
  var u = this;
2812
- a = r(a);
2814
+ a = t(a);
2813
2815
  var v = u.ready().then(function() {
2814
- var w = u._dbInfo;
2815
- localStorage.removeItem(w.keyPrefix + a);
2816
+ var b = u._dbInfo;
2817
+ localStorage.removeItem(b.keyPrefix + a);
2816
2818
  });
2817
2819
  return c(v, i), v;
2818
2820
  }
2819
2821
  function dn(a, i, u) {
2820
2822
  var v = this;
2821
- a = r(a);
2822
- var w = v.ready().then(function() {
2823
+ a = t(a);
2824
+ var b = v.ready().then(function() {
2823
2825
  i === void 0 && (i = null);
2824
2826
  var d = i;
2825
- return new b(function(N, M) {
2827
+ return new y(function(N, M) {
2826
2828
  var $ = v._dbInfo;
2827
2829
  $.serializer.serialize(i, function(F, k) {
2828
2830
  if (k)
@@ -2836,22 +2838,22 @@ var Bt = { exports: {} };
2836
2838
  });
2837
2839
  });
2838
2840
  });
2839
- return c(w, u), w;
2841
+ return c(b, u), b;
2840
2842
  }
2841
2843
  function mn(a, i) {
2842
2844
  if (i = x.apply(this, arguments), a = typeof a != "function" && a || {}, !a.name) {
2843
2845
  var u = this.config();
2844
2846
  a.name = a.name || u.name, a.storeName = a.storeName || u.storeName;
2845
2847
  }
2846
- var v = this, w;
2847
- return a.name ? w = new b(function(d) {
2848
+ var v = this, b;
2849
+ return a.name ? b = new y(function(d) {
2848
2850
  a.storeName ? d(tt(a, v._defaultConfig)) : d(a.name + "/");
2849
2851
  }).then(function(d) {
2850
2852
  for (var N = localStorage.length - 1; N >= 0; N--) {
2851
2853
  var M = localStorage.key(N);
2852
2854
  M.indexOf(d) === 0 && localStorage.removeItem(M);
2853
2855
  }
2854
- }) : w = b.reject("Invalid arguments"), c(w, i), w;
2856
+ }) : b = y.reject("Invalid arguments"), c(b, i), b;
2855
2857
  }
2856
2858
  var vn = {
2857
2859
  _driver: "localStorageWrapper",
@@ -2869,10 +2871,10 @@ var Bt = { exports: {} };
2869
2871
  }, gn = function(i, u) {
2870
2872
  return i === u || typeof i == "number" && typeof u == "number" && isNaN(i) && isNaN(u);
2871
2873
  }, yn = function(i, u) {
2872
- for (var v = i.length, w = 0; w < v; ) {
2873
- if (gn(i[w], u))
2874
+ for (var v = i.length, b = 0; b < v; ) {
2875
+ if (gn(i[b], u))
2874
2876
  return !0;
2875
- w++;
2877
+ b++;
2876
2878
  }
2877
2879
  return !1;
2878
2880
  }, nt = Array.isArray || function(a) {
@@ -2910,11 +2912,11 @@ var Bt = { exports: {} };
2910
2912
  }
2911
2913
  var Sn = function() {
2912
2914
  function a(i) {
2913
- D(this, a);
2915
+ A(this, a);
2914
2916
  for (var u in Ue)
2915
2917
  if (Ue.hasOwnProperty(u)) {
2916
- var v = Ue[u], w = v._driver;
2917
- this[u] = w, ke[w] || this.defineDriver(v);
2918
+ var v = Ue[u], b = v._driver;
2919
+ this[u] = b, ke[b] || this.defineDriver(v);
2918
2920
  }
2919
2921
  this._defaultConfig = gr({}, bn), this._config = gr({}, this._defaultConfig, i), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
2920
2922
  });
@@ -2931,8 +2933,8 @@ var Bt = { exports: {} };
2931
2933
  return "driver" in u && u.driver ? this.setDriver(this._config.driver) : !0;
2932
2934
  } else
2933
2935
  return typeof u == "string" ? this._config[u] : this._config;
2934
- }, a.prototype.defineDriver = function(u, v, w) {
2935
- var d = new b(function(N, M) {
2936
+ }, a.prototype.defineDriver = function(u, v, b) {
2937
+ var d = new y(function(N, M) {
2936
2938
  try {
2937
2939
  var $ = u._driver, F = new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");
2938
2940
  if (!u._driver) {
@@ -2949,7 +2951,7 @@ var Bt = { exports: {} };
2949
2951
  var ue = function() {
2950
2952
  for (var Ve = function(Dn) {
2951
2953
  return function() {
2952
- var In = new Error("Method " + Dn + " is not implemented by the current driver"), ut = b.reject(In);
2954
+ var In = new Error("Method " + Dn + " is not implemented by the current driver"), ut = y.reject(In);
2953
2955
  return c(ut, arguments[arguments.length - 1]), ut;
2954
2956
  };
2955
2957
  }, yr = 0, An = Ye.length; yr < An; yr++) {
@@ -2966,21 +2968,21 @@ var Bt = { exports: {} };
2966
2968
  M(me);
2967
2969
  }
2968
2970
  });
2969
- return o(d, v, w), d;
2971
+ return o(d, v, b), d;
2970
2972
  }, a.prototype.driver = function() {
2971
2973
  return this._driver || null;
2972
- }, a.prototype.getDriver = function(u, v, w) {
2973
- var d = ke[u] ? b.resolve(ke[u]) : b.reject(new Error("Driver not found."));
2974
- return o(d, v, w), d;
2974
+ }, a.prototype.getDriver = function(u, v, b) {
2975
+ var d = ke[u] ? y.resolve(ke[u]) : y.reject(new Error("Driver not found."));
2976
+ return o(d, v, b), d;
2975
2977
  }, a.prototype.getSerializer = function(u) {
2976
- var v = b.resolve(mr);
2978
+ var v = y.resolve(mr);
2977
2979
  return o(v, u), v;
2978
2980
  }, a.prototype.ready = function(u) {
2979
- var v = this, w = v._driverSet.then(function() {
2981
+ var v = this, b = v._driverSet.then(function() {
2980
2982
  return v._ready === null && (v._ready = v._initDriver()), v._ready;
2981
2983
  });
2982
- return o(w, u, u), w;
2983
- }, a.prototype.setDriver = function(u, v, w) {
2984
+ return o(b, u, u), b;
2985
+ }, a.prototype.setDriver = function(u, v, b) {
2984
2986
  var d = this;
2985
2987
  nt(u) || (u = [u]);
2986
2988
  var N = this._getSupportedDrivers(u);
@@ -3000,14 +3002,14 @@ var Bt = { exports: {} };
3000
3002
  }
3001
3003
  M();
3002
3004
  var ue = new Error("No available storage method found.");
3003
- return d._driverSet = b.reject(ue), d._driverSet;
3005
+ return d._driverSet = y.reject(ue), d._driverSet;
3004
3006
  }
3005
3007
  return X();
3006
3008
  };
3007
3009
  }
3008
3010
  var k = this._driverSet !== null ? this._driverSet.catch(function() {
3009
- return b.resolve();
3010
- }) : b.resolve();
3011
+ return y.resolve();
3012
+ }) : y.resolve();
3011
3013
  return this._driverSet = k.then(function() {
3012
3014
  var q = N[0];
3013
3015
  return d._dbInfo = null, d._ready = null, d.getDriver(q).then(function(z) {
@@ -3016,15 +3018,15 @@ var Bt = { exports: {} };
3016
3018
  }).catch(function() {
3017
3019
  M();
3018
3020
  var q = new Error("No available storage method found.");
3019
- return d._driverSet = b.reject(q), d._driverSet;
3020
- }), o(this._driverSet, v, w), this._driverSet;
3021
+ return d._driverSet = y.reject(q), d._driverSet;
3022
+ }), o(this._driverSet, v, b), this._driverSet;
3021
3023
  }, a.prototype.supports = function(u) {
3022
3024
  return !!at[u];
3023
3025
  }, a.prototype._extend = function(u) {
3024
3026
  gr(this, u);
3025
3027
  }, a.prototype._getSupportedDrivers = function(u) {
3026
- for (var v = [], w = 0, d = u.length; w < d; w++) {
3027
- var N = u[w];
3028
+ for (var v = [], b = 0, d = u.length; b < d; b++) {
3029
+ var N = u[b];
3028
3030
  this.supports(N) && v.push(N);
3029
3031
  }
3030
3032
  return v;
@@ -3049,14 +3051,14 @@ function he() {
3049
3051
  const e = Ut();
3050
3052
  return (pe == null || pe.config.name != e) && (pe = $t.createInstance({ name: e })), pe;
3051
3053
  }
3052
- function Au() {
3054
+ function Du() {
3053
3055
  async function e(s) {
3054
3056
  const h = he();
3055
3057
  (await h.keys()).filter((T) => T.startsWith(s)).forEach((T) => {
3056
3058
  h.removeItem(T);
3057
3059
  });
3058
3060
  }
3059
- async function t(s) {
3061
+ async function r(s) {
3060
3062
  return await he().getItem(s);
3061
3063
  }
3062
3064
  async function n(s) {
@@ -3067,21 +3069,21 @@ function Au() {
3067
3069
  }
3068
3070
  return {
3069
3071
  clearAsync: e,
3070
- getAsync: t,
3072
+ getAsync: r,
3071
3073
  removeAsync: n,
3072
3074
  saveAsync: l
3073
3075
  };
3074
3076
  }
3075
3077
  var Ra = !1;
3076
- function er(e, t, n) {
3077
- return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
3078
+ function er(e, r, n) {
3079
+ return Array.isArray(e) ? (e.length = Math.max(e.length, r), e.splice(r, 1, n), n) : (e[r] = n, n);
3078
3080
  }
3079
- function Sr(e, t) {
3081
+ function Sr(e, r) {
3080
3082
  if (Array.isArray(e)) {
3081
- e.splice(t, 1);
3083
+ e.splice(r, 1);
3082
3084
  return;
3083
3085
  }
3084
- delete e[t];
3086
+ delete e[r];
3085
3087
  }
3086
3088
  /*!
3087
3089
  * pinia v2.1.7
@@ -3101,9 +3103,9 @@ var Ge;
3101
3103
  e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
3102
3104
  })(Ge || (Ge = {}));
3103
3105
  const Kr = typeof window < "u", _r = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && Kr;
3104
- function Ft(e, t) {
3105
- for (const n in t) {
3106
- const l = t[n];
3106
+ function Ft(e, r) {
3107
+ for (const n in r) {
3108
+ const l = r[n];
3107
3109
  if (!(n in e))
3108
3110
  continue;
3109
3111
  const s = e[n];
@@ -3113,26 +3115,26 @@ function Ft(e, t) {
3113
3115
  }
3114
3116
  const kt = () => {
3115
3117
  };
3116
- function mt(e, t, n, l = kt) {
3117
- e.push(t);
3118
+ function mt(e, r, n, l = kt) {
3119
+ e.push(r);
3118
3120
  const s = () => {
3119
- const h = e.indexOf(t);
3121
+ const h = e.indexOf(r);
3120
3122
  h > -1 && (e.splice(h, 1), l());
3121
3123
  };
3122
3124
  return !n && xt() && Nt(s), s;
3123
3125
  }
3124
- function Be(e, ...t) {
3126
+ function Be(e, ...r) {
3125
3127
  e.slice().forEach((n) => {
3126
- n(...t);
3128
+ n(...r);
3127
3129
  });
3128
3130
  }
3129
3131
  const Ba = (e) => e();
3130
- function $r(e, t) {
3131
- e instanceof Map && t instanceof Map && t.forEach((n, l) => e.set(l, n)), e instanceof Set && t instanceof Set && t.forEach(e.add, e);
3132
- for (const n in t) {
3133
- if (!t.hasOwnProperty(n))
3132
+ function $r(e, r) {
3133
+ e instanceof Map && r instanceof Map && r.forEach((n, l) => e.set(l, n)), e instanceof Set && r instanceof Set && r.forEach(e.add, e);
3134
+ for (const n in r) {
3135
+ if (!r.hasOwnProperty(n))
3134
3136
  continue;
3135
- const l = t[n], s = e[n];
3137
+ const l = r[n], s = e[n];
3136
3138
  Ce(s) && Ce(l) && e.hasOwnProperty(n) && !qe(l) && !Hr(l) ? e[n] = $r(s, l) : e[n] = l;
3137
3139
  }
3138
3140
  return e;
@@ -3148,26 +3150,26 @@ const { assign: ve } = Object;
3148
3150
  function vt(e) {
3149
3151
  return !!(qe(e) && e.effect);
3150
3152
  }
3151
- function gt(e, t, n, l) {
3152
- const { state: s, actions: h, getters: D } = t, S = n.state.value[e];
3153
+ function gt(e, r, n, l) {
3154
+ const { state: s, actions: h, getters: A } = r, E = n.state.value[e];
3153
3155
  let T;
3154
3156
  function L() {
3155
- !S && (process.env.NODE_ENV === "production" || !l) && (n.state.value[e] = s ? s() : {});
3157
+ !E && (process.env.NODE_ENV === "production" || !l) && (n.state.value[e] = s ? s() : {});
3156
3158
  const R = process.env.NODE_ENV !== "production" && l ? (
3157
3159
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
3158
3160
  lt(Z(s ? s() : {}).value)
3159
3161
  ) : lt(n.state.value[e]);
3160
- return ve(R, h, Object.keys(D || {}).reduce((b, c) => (process.env.NODE_ENV !== "production" && c in R && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${c}" in store "${e}".`), b[c] = We(le(() => {
3162
+ return ve(R, h, Object.keys(A || {}).reduce((y, c) => (process.env.NODE_ENV !== "production" && c in R && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${c}" in store "${e}".`), y[c] = We(le(() => {
3161
3163
  ar(n);
3162
3164
  const o = n._s.get(e);
3163
- return D[c].call(o, o);
3164
- })), b), {}));
3165
+ return A[c].call(o, o);
3166
+ })), y), {}));
3165
3167
  }
3166
- return T = Fr(e, L, t, n, l, !0), T;
3168
+ return T = Fr(e, L, r, n, l, !0), T;
3167
3169
  }
3168
- function Fr(e, t, n = {}, l, s, h) {
3169
- let D;
3170
- const S = ve({ actions: {} }, n);
3170
+ function Fr(e, r, n = {}, l, s, h) {
3171
+ let A;
3172
+ const E = ve({ actions: {} }, n);
3171
3173
  if (process.env.NODE_ENV !== "production" && !l._e.active)
3172
3174
  throw new Error("Pinia destroyed");
3173
3175
  const T = {
@@ -3177,12 +3179,12 @@ function Fr(e, t, n = {}, l, s, h) {
3177
3179
  process.env.NODE_ENV !== "production" && !Ra && (T.onTrigger = (f) => {
3178
3180
  L ? o = f : L == !1 && !m._hotUpdating && (Array.isArray(o) ? o.push(f) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
3179
3181
  });
3180
- let L, R, b = [], c = [], o;
3181
- const r = l.state.value[e];
3182
- !h && !r && (process.env.NODE_ENV === "production" || !s) && (l.state.value[e] = {});
3182
+ let L, R, y = [], c = [], o;
3183
+ const t = l.state.value[e];
3184
+ !h && !t && (process.env.NODE_ENV === "production" || !s) && (l.state.value[e] = {});
3183
3185
  const x = Z({});
3184
- let E;
3185
- function y(f) {
3186
+ let S;
3187
+ function w(f) {
3186
3188
  let C;
3187
3189
  L = R = !1, process.env.NODE_ENV !== "production" && (o = []), typeof f == "function" ? (f(l.state.value[e]), C = {
3188
3190
  type: Ge.patchFunction,
@@ -3194,10 +3196,10 @@ function Fr(e, t, n = {}, l, s, h) {
3194
3196
  storeId: e,
3195
3197
  events: o
3196
3198
  });
3197
- const G = E = Symbol();
3199
+ const G = S = Symbol();
3198
3200
  nr().then(() => {
3199
- E === G && (L = !0);
3200
- }), R = !0, Be(b, C, l.state.value[e]);
3201
+ S === G && (L = !0);
3202
+ }), R = !0, Be(y, C, l.state.value[e]);
3201
3203
  }
3202
3204
  const I = h ? function() {
3203
3205
  const { state: C } = n, G = C ? C() : {};
@@ -3211,7 +3213,7 @@ function Fr(e, t, n = {}, l, s, h) {
3211
3213
  } : kt
3212
3214
  );
3213
3215
  function B() {
3214
- D.stop(), b = [], c = [], l._s.delete(e);
3216
+ A.stop(), y = [], c = [], l._s.delete(e);
3215
3217
  }
3216
3218
  function U(f, C) {
3217
3219
  return function() {
@@ -3249,10 +3251,10 @@ function Fr(e, t, n = {}, l, s, h) {
3249
3251
  // _s: scope,
3250
3252
  $id: e,
3251
3253
  $onAction: mt.bind(null, c),
3252
- $patch: y,
3254
+ $patch: w,
3253
3255
  $reset: I,
3254
3256
  $subscribe(f, C = {}) {
3255
- const G = mt(b, f, C.detached, () => J()), J = D.run(() => Ee(() => l.state.value[e], (ee) => {
3257
+ const G = mt(y, f, C.detached, () => J()), J = A.run(() => Ee(() => l.state.value[e], (ee) => {
3256
3258
  (C.flush === "sync" ? R : L) && f({
3257
3259
  storeId: e,
3258
3260
  type: Ge.direct,
@@ -3273,14 +3275,14 @@ function Fr(e, t, n = {}, l, s, h) {
3273
3275
  // setupStore
3274
3276
  ) : P);
3275
3277
  l._s.set(e, m);
3276
- const g = (l._a && l._a.runWithContext || Ba)(() => l._e.run(() => (D = Mn()).run(t)));
3278
+ const g = (l._a && l._a.runWithContext || Ba)(() => l._e.run(() => (A = Mn()).run(r)));
3277
3279
  for (const f in g) {
3278
3280
  const C = g[f];
3279
3281
  if (qe(C) && !vt(C) || Hr(C))
3280
- process.env.NODE_ENV !== "production" && s ? er(x.value, f, tr(g, f)) : h || (r && Fa(C) && (qe(C) ? C.value = r[f] : $r(C, r[f])), l.state.value[e][f] = C), process.env.NODE_ENV !== "production" && _.state.push(f);
3282
+ process.env.NODE_ENV !== "production" && s ? er(x.value, f, tr(g, f)) : h || (t && Fa(C) && (qe(C) ? C.value = t[f] : $r(C, t[f])), l.state.value[e][f] = C), process.env.NODE_ENV !== "production" && _.state.push(f);
3281
3283
  else if (typeof C == "function") {
3282
3284
  const G = process.env.NODE_ENV !== "production" && s ? C : U(f, C);
3283
- g[f] = G, process.env.NODE_ENV !== "production" && (_.actions[f] = C), S.actions[f] = C;
3285
+ g[f] = G, process.env.NODE_ENV !== "production" && (_.actions[f] = C), E.actions[f] = C;
3284
3286
  } else
3285
3287
  process.env.NODE_ENV !== "production" && vt(C) && (_.getters[f] = h ? (
3286
3288
  // @ts-expect-error
@@ -3293,7 +3295,7 @@ function Fr(e, t, n = {}, l, s, h) {
3293
3295
  set: (f) => {
3294
3296
  if (process.env.NODE_ENV !== "production" && s)
3295
3297
  throw new Error("cannot set hotState");
3296
- y((C) => {
3298
+ w((C) => {
3297
3299
  ve(C, f);
3298
3300
  });
3299
3301
  }
@@ -3338,58 +3340,58 @@ function Fr(e, t, n = {}, l, s, h) {
3338
3340
  }
3339
3341
  return l._p.forEach((f) => {
3340
3342
  if (_r) {
3341
- const C = D.run(() => f({
3343
+ const C = A.run(() => f({
3342
3344
  store: m,
3343
3345
  app: l._a,
3344
3346
  pinia: l,
3345
- options: S
3347
+ options: E
3346
3348
  }));
3347
3349
  Object.keys(C || {}).forEach((G) => m._customProperties.add(G)), ve(m, C);
3348
3350
  } else
3349
- ve(m, D.run(() => f({
3351
+ ve(m, A.run(() => f({
3350
3352
  store: m,
3351
3353
  app: l._a,
3352
3354
  pinia: l,
3353
- options: S
3355
+ options: E
3354
3356
  })));
3355
3357
  }), process.env.NODE_ENV !== "production" && m.$state && typeof m.$state == "object" && typeof m.$state.constructor == "function" && !m.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
3356
3358
  state: () => new MyClass()
3357
- Found in store "${m.$id}".`), r && h && n.hydrate && n.hydrate(m.$state, r), L = !0, R = !0, m;
3359
+ Found in store "${m.$id}".`), t && h && n.hydrate && n.hydrate(m.$state, t), L = !0, R = !0, m;
3358
3360
  }
3359
- function Vt(e, t, n) {
3361
+ function Vt(e, r, n) {
3360
3362
  let l, s;
3361
- const h = typeof t == "function";
3363
+ const h = typeof r == "function";
3362
3364
  if (typeof e == "string")
3363
- l = e, s = h ? n : t;
3365
+ l = e, s = h ? n : r;
3364
3366
  else if (s = e, l = e.id, process.env.NODE_ENV !== "production" && typeof l != "string")
3365
3367
  throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');
3366
- function D(S, T) {
3368
+ function A(E, T) {
3367
3369
  const L = Pn();
3368
- if (S = // in test mode, ignore the argument provided as we can always retrieve a
3370
+ if (E = // in test mode, ignore the argument provided as we can always retrieve a
3369
3371
  // pinia instance with getActivePinia()
3370
- (process.env.NODE_ENV === "test" && je && je._testing ? null : S) || (L ? qr(Ua, null) : null), S && ar(S), process.env.NODE_ENV !== "production" && !je)
3372
+ (process.env.NODE_ENV === "test" && je && je._testing ? null : E) || (L ? qr(Ua, null) : null), E && ar(E), process.env.NODE_ENV !== "production" && !je)
3371
3373
  throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
3372
3374
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
3373
3375
  This will fail in production.`);
3374
- S = je, S._s.has(l) || (h ? Fr(l, t, s, S) : gt(l, s, S), process.env.NODE_ENV !== "production" && (D._pinia = S));
3375
- const R = S._s.get(l);
3376
+ E = je, E._s.has(l) || (h ? Fr(l, r, s, E) : gt(l, s, E), process.env.NODE_ENV !== "production" && (A._pinia = E));
3377
+ const R = E._s.get(l);
3376
3378
  if (process.env.NODE_ENV !== "production" && T) {
3377
- const b = "__hot:" + l, c = h ? Fr(b, t, s, S, !0) : gt(b, ve({}, s), S, !0);
3378
- T._hotUpdate(c), delete S.state.value[b], S._s.delete(b);
3379
+ const y = "__hot:" + l, c = h ? Fr(y, r, s, E, !0) : gt(y, ve({}, s), E, !0);
3380
+ T._hotUpdate(c), delete E.state.value[y], E._s.delete(y);
3379
3381
  }
3380
3382
  if (process.env.NODE_ENV !== "production" && Kr) {
3381
- const b = Gr();
3382
- if (b && b.proxy && // avoid adding stores that are just built for hot module replacement
3383
+ const y = Gr();
3384
+ if (y && y.proxy && // avoid adding stores that are just built for hot module replacement
3383
3385
  !T) {
3384
- const c = b.proxy, o = "_pStores" in c ? c._pStores : c._pStores = {};
3386
+ const c = y.proxy, o = "_pStores" in c ? c._pStores : c._pStores = {};
3385
3387
  o[l] = R;
3386
3388
  }
3387
3389
  }
3388
3390
  return R;
3389
3391
  }
3390
- return D.$id = l, D;
3392
+ return A.$id = l, A;
3391
3393
  }
3392
- function Du(e) {
3394
+ function Iu(e) {
3393
3395
  return Wt(e)();
3394
3396
  }
3395
3397
  function Wt(e) {
@@ -3405,80 +3407,80 @@ function Wt(e) {
3405
3407
  return Va(e);
3406
3408
  }
3407
3409
  const ka = (e) => {
3408
- let t = K(e.url) ?? void 0;
3409
- if (e.additionalUrl != null && (t == null ? t = e.additionalUrl : t = Te(t, e.additionalUrl)), e.id != null && (t != null && t.includes("{id}") ? t = t.replaceAll("{id}", e.id) : t = Te(t, e.id)), e.params != null) {
3410
- t ?? (t = "");
3410
+ let r = K(e.url) ?? void 0;
3411
+ if (e.additionalUrl != null && (r == null ? r = e.additionalUrl : r = Te(r, e.additionalUrl)), e.id != null && (r != null && r.includes("{id}") ? r = r.replaceAll("{id}", e.id) : r = Te(r, e.id)), e.params != null) {
3412
+ r ?? (r = "");
3411
3413
  let n = new URLSearchParams();
3412
3414
  Object.entries(e.params).sort(He.firstBy((s) => s[0])).forEach((s) => {
3413
3415
  s[1] != null && n.append(s[0], s[1].toString());
3414
- }), t = `${t}?${n.toString()}`;
3416
+ }), r = `${r}?${n.toString()}`;
3415
3417
  }
3416
- return e.finalUrl = t, e.finalUrl ?? "";
3418
+ return e.finalUrl = r, e.finalUrl ?? "";
3417
3419
  };
3418
3420
  function Va(e) {
3419
3421
  return Vt(e.storeName, () => {
3420
3422
  var o;
3421
- const t = ie.utc().toSeconds() / 86400, n = Z({}), l = Z({}), s = e.storageMode == "local-cache", h = e.buildUrl ?? ((o = e.api) == null ? void 0 : o.buildUrl) ?? ka;
3422
- function D(r) {
3423
- var x, E;
3424
- return `${e.storeName}_${((x = e.auth) == null ? void 0 : x.credentials.value.userID) ?? "no-user-id"}_${r.id ?? ((E = r.data) == null ? void 0 : E.id) ?? "no-item-id"}`;
3423
+ const r = ie.utc().toSeconds() / 86400, n = Z({}), l = Z({}), s = e.storageMode == "local-cache", h = e.buildUrl ?? ((o = e.api) == null ? void 0 : o.buildUrl) ?? ka;
3424
+ function A(t) {
3425
+ var x, S;
3426
+ return `${e.storeName}_${((x = e.auth) == null ? void 0 : x.credentials.value.userID) ?? "no-user-id"}_${t.id ?? ((S = t.data) == null ? void 0 : S.id) ?? "no-item-id"}`;
3425
3427
  }
3426
- async function S(r) {
3428
+ async function E(t) {
3427
3429
  var I;
3428
- r.additionalUrl ?? (r.additionalUrl = "/getAll");
3429
- const x = h(r), E = `${e.storeName}_${((I = e.auth) == null ? void 0 : I.credentials.value.userID) ?? "no-user-id"}_${x}`, y = r.refresh;
3430
- if (!y && n.value[E] !== void 0)
3431
- return n.value[E] ?? null;
3432
- if (!y && s == !0) {
3433
- const B = await he().getItem(E);
3434
- if (B != null && (e.api == null || parseFloat(B.meta.storedOn) > t - 7))
3435
- return n.value[E] = B, B;
3430
+ t.additionalUrl ?? (t.additionalUrl = "/getAll");
3431
+ const x = h(t), S = `${e.storeName}_${((I = e.auth) == null ? void 0 : I.credentials.value.userID) ?? "no-user-id"}_${x}`, w = t.refresh;
3432
+ if (!w && n.value[S] !== void 0)
3433
+ return n.value[S] ?? null;
3434
+ if (!w && s == !0) {
3435
+ const B = await he().getItem(S);
3436
+ if (B != null && (e.api == null || parseFloat(B.meta.storedOn) > r - 7))
3437
+ return n.value[S] = B, B;
3436
3438
  }
3437
3439
  if (e.api == null)
3438
- return n.value[E];
3440
+ return n.value[S];
3439
3441
  try {
3440
- let B = l.value[E];
3442
+ let B = l.value[S];
3441
3443
  B == null && (B = new Promise(async (_, P) => {
3442
3444
  var m;
3443
3445
  try {
3444
- let A = await ((m = e.api) == null ? void 0 : m.getAll(r));
3445
- s == !0 && await he().setItem(E, {
3446
- meta: { storedOn: t },
3447
- ...A
3448
- }), _(A);
3449
- } catch (A) {
3450
- P(A);
3446
+ let D = await ((m = e.api) == null ? void 0 : m.getAll(t));
3447
+ s == !0 && await he().setItem(S, {
3448
+ meta: { storedOn: r },
3449
+ ...D
3450
+ }), _(D);
3451
+ } catch (D) {
3452
+ P(D);
3451
3453
  } finally {
3452
- delete l.value[E];
3454
+ delete l.value[S];
3453
3455
  }
3454
- }), l.value[E] = B);
3456
+ }), l.value[S] = B);
3455
3457
  const U = await B;
3456
- return n.value[E] = U, U;
3458
+ return n.value[S] = U, U;
3457
3459
  } catch (B) {
3458
3460
  let U = B;
3459
3461
  throw new Error(U.message ?? "Problem");
3460
3462
  }
3461
3463
  }
3462
- async function T(r) {
3463
- r.additionalUrl ?? (r.additionalUrl = "/get");
3464
- const x = D(r), E = r.refresh;
3465
- if (!E && n.value[x] !== void 0)
3464
+ async function T(t) {
3465
+ t.additionalUrl ?? (t.additionalUrl = "/get");
3466
+ const x = A(t), S = t.refresh;
3467
+ if (!S && n.value[x] !== void 0)
3466
3468
  return n.value[x] ?? [];
3467
- if (!E && s == !0) {
3468
- const y = await he().getItem(x);
3469
- if (y != null && (e.api == null || parseFloat(y.meta.storedOn) > t - 7))
3470
- return n.value[x] = y, y;
3469
+ if (!S && s == !0) {
3470
+ const w = await he().getItem(x);
3471
+ if (w != null && (e.api == null || parseFloat(w.meta.storedOn) > r - 7))
3472
+ return n.value[x] = w, w;
3471
3473
  }
3472
3474
  if (e.api == null)
3473
3475
  return n.value[x];
3474
3476
  try {
3475
- let y = l.value[x];
3476
- y == null && (y = new Promise(async (B, U) => {
3477
+ let w = l.value[x];
3478
+ w == null && (w = new Promise(async (B, U) => {
3477
3479
  var _;
3478
3480
  try {
3479
- let P = await ((_ = e.api) == null ? void 0 : _.get(r));
3481
+ let P = await ((_ = e.api) == null ? void 0 : _.get(t));
3480
3482
  s == !0 && await he().setItem(x, {
3481
- meta: { storedOn: t },
3483
+ meta: { storedOn: r },
3482
3484
  ...P
3483
3485
  }), B(P);
3484
3486
  } catch (P) {
@@ -3486,94 +3488,94 @@ function Va(e) {
3486
3488
  } finally {
3487
3489
  delete l.value[x];
3488
3490
  }
3489
- }), l.value[x] = y);
3490
- const I = await y;
3491
+ }), l.value[x] = w);
3492
+ const I = await w;
3491
3493
  return n.value[x] = I, I;
3492
- } catch (y) {
3493
- let I = y;
3494
+ } catch (w) {
3495
+ let I = w;
3494
3496
  throw new Error(I.message ?? "Problem");
3495
3497
  }
3496
3498
  }
3497
- async function L(r) {
3498
- r.additionalUrl ?? (r.additionalUrl = "/patch");
3499
- const x = D(r);
3500
- let E;
3499
+ async function L(t) {
3500
+ t.additionalUrl ?? (t.additionalUrl = "/patch");
3501
+ const x = A(t);
3502
+ let S;
3501
3503
  if (e.api != null)
3502
3504
  try {
3503
- let y = await e.api.patch(r);
3504
- E = y == null ? void 0 : y.data;
3505
- } catch (y) {
3506
- let I = y;
3505
+ let w = await e.api.patch(t);
3506
+ S = w == null ? void 0 : w.data;
3507
+ } catch (w) {
3508
+ let I = w;
3507
3509
  throw new Error(I.message ?? "Patch Problem");
3508
3510
  }
3509
3511
  else
3510
- E = r.data;
3511
- if (E != null) {
3512
- const y = n.value[x];
3513
- y != null && (y.data = { ...y.data, ...E }, s == !0 && await he().setItem(x, {
3514
- meta: { storedOn: t },
3515
- ...y
3516
- })), E.id != null && E.rowVersion != null && Object.entries(n.value).forEach((B) => {
3512
+ S = t.data;
3513
+ if (S != null) {
3514
+ const w = n.value[x];
3515
+ w != null && (w.data = { ...w.data, ...S }, s == !0 && await he().setItem(x, {
3516
+ meta: { storedOn: r },
3517
+ ...w
3518
+ })), S.id != null && S.rowVersion != null && Object.entries(n.value).forEach((B) => {
3517
3519
  let U = B[1];
3518
3520
  if (U = U.data, U != null)
3519
3521
  if (Array.isArray(U))
3520
3522
  for (let _ = 0; _ < U.length; _++) {
3521
3523
  const P = U[_];
3522
- P.id == E.id && U.splice(_, 1, { ...P, ...E });
3524
+ P.id == S.id && U.splice(_, 1, { ...P, ...S });
3523
3525
  }
3524
3526
  else
3525
- U.id == E.id && (n.value[B[0]].data = { ...U, ...E });
3527
+ U.id == S.id && (n.value[B[0]].data = { ...U, ...S });
3526
3528
  });
3527
3529
  }
3528
- return E;
3530
+ return S;
3529
3531
  }
3530
- async function R(r) {
3531
- r.additionalUrl ?? (r.additionalUrl = "/post");
3532
- const x = D(r);
3533
- let E;
3532
+ async function R(t) {
3533
+ t.additionalUrl ?? (t.additionalUrl = "/post");
3534
+ const x = A(t);
3535
+ let S;
3534
3536
  if (e.api != null)
3535
3537
  try {
3536
- let y = await e.api.post(r);
3537
- E = y == null ? void 0 : y.data;
3538
- } catch (y) {
3539
- let I = y;
3538
+ let w = await e.api.post(t);
3539
+ S = w == null ? void 0 : w.data;
3540
+ } catch (w) {
3541
+ let I = w;
3540
3542
  throw new Error(I.message ?? "Patch Problem");
3541
3543
  }
3542
3544
  else
3543
- E = r.data;
3545
+ S = t.data;
3544
3546
  return n.value[x] = {
3545
- meta: { storedOn: t },
3546
- data: E
3547
- }, s == !0 && await he().setItem(x, n.value[x]), E;
3547
+ meta: { storedOn: r },
3548
+ data: S
3549
+ }, s == !0 && await he().setItem(x, n.value[x]), S;
3548
3550
  }
3549
- async function b(r) {
3550
- r.additionalUrl ?? (r.additionalUrl = "/delete");
3551
- const x = D(r);
3551
+ async function y(t) {
3552
+ t.additionalUrl ?? (t.additionalUrl = "/delete");
3553
+ const x = A(t);
3552
3554
  if (e.api != null)
3553
3555
  try {
3554
- let E = await e.api.deleteItem(r);
3555
- if (E != null)
3556
- return E;
3557
- } catch (E) {
3558
- let y = E;
3559
- throw new Error(y.message ?? "Patch Problem");
3556
+ let S = await e.api.deleteItem(t);
3557
+ if (S != null)
3558
+ return S;
3559
+ } catch (S) {
3560
+ let w = S;
3561
+ throw new Error(w.message ?? "Patch Problem");
3560
3562
  }
3561
3563
  delete n.value[x], s == !0 && await he().removeItem(x);
3562
3564
  }
3563
- async function c(r) {
3564
- if (r.additionalUrl ?? (r.additionalUrl = `/patch/restore?id=${r.data.id}`), h(r), e.api != null)
3565
+ async function c(t) {
3566
+ if (t.additionalUrl ?? (t.additionalUrl = `/patch/restore?id=${t.data.id}`), h(t), e.api != null)
3565
3567
  try {
3566
- let x = await e.api.patch(r);
3568
+ let x = await e.api.patch(t);
3567
3569
  return x == null ? void 0 : x.data;
3568
3570
  } catch (x) {
3569
- let E = x;
3570
- throw new Error(E.message ?? "Patch Problem");
3571
+ let S = x;
3572
+ throw new Error(S.message ?? "Patch Problem");
3571
3573
  }
3572
3574
  }
3573
3575
  return {
3574
- deleteItem: b,
3576
+ deleteItem: y,
3575
3577
  get: T,
3576
- getAll: S,
3578
+ getAll: E,
3577
3579
  patch: L,
3578
3580
  post: R,
3579
3581
  restore: c,
@@ -3584,205 +3586,205 @@ function Va(e) {
3584
3586
  }
3585
3587
  function yt(e) {
3586
3588
  return Vt(e.storeName, () => {
3587
- const t = Z(), n = Z(0), l = ie.utc().toSeconds() / 3600, s = Z(), h = Z(), D = Z({}), S = e.storageMode == "local-cache";
3589
+ const r = Z(), n = Z(0), l = ie.utc().toSeconds() / 3600, s = Z(), h = Z(), A = Z({}), E = e.storageMode == "local-cache";
3588
3590
  function T() {
3589
- var y;
3590
- return `${e.storeName}_${((y = e.auth) == null ? void 0 : y.credentials.value.userID) ?? "no-user-id"}`;
3591
+ var w;
3592
+ return `${e.storeName}_${((w = e.auth) == null ? void 0 : w.credentials.value.userID) ?? "no-user-id"}`;
3591
3593
  }
3592
3594
  async function L() {
3593
- S == !0 && await he().setItem(T(), {
3595
+ E == !0 && await he().setItem(T(), {
3594
3596
  meta: h.value,
3595
- data: t.value,
3597
+ data: r.value,
3596
3598
  count: n.value,
3597
3599
  filters: []
3598
3600
  });
3599
3601
  }
3600
- function R(y) {
3602
+ function R(w) {
3601
3603
  const I = T();
3602
- return D.value[I] || (D.value[I] = new Promise(async (B, U) => {
3604
+ return A.value[I] || (A.value[I] = new Promise(async (B, U) => {
3603
3605
  var _, P;
3604
3606
  try {
3605
3607
  let m = await ((P = e.api) == null ? void 0 : P.getAll({
3606
3608
  additionalUrl: "/getAll",
3607
- nav: y.nav,
3609
+ nav: w.nav,
3608
3610
  params: {
3609
3611
  lastUpdate: ((_ = h.value) == null ? void 0 : _.lastUpdate) ?? sa()
3610
3612
  }
3611
3613
  }));
3612
- m == null ? U(m) : (t.value ?? (t.value = []), m.data.forEach((A) => {
3614
+ m == null ? U(m) : (r.value ?? (r.value = []), m.data.forEach((D) => {
3613
3615
  var f, C;
3614
- const g = t.value.findIndex((G) => G.id == A.id);
3615
- g >= 0 ? (f = t.value) == null || f.splice(g, 1, A) : (C = t.value) == null || C.push(A);
3616
- }), n.value = t.value.length, h.value = {
3616
+ const g = r.value.findIndex((G) => G.id == D.id);
3617
+ g >= 0 ? (f = r.value) == null || f.splice(g, 1, D) : (C = r.value) == null || C.push(D);
3618
+ }), n.value = r.value.length, h.value = {
3617
3619
  lastUpdate: ie.utc().toString(),
3618
3620
  storedOn: l.toString()
3619
3621
  }, await L(), B(m));
3620
3622
  } catch (m) {
3621
3623
  U(m);
3622
3624
  } finally {
3623
- delete D.value[I];
3625
+ delete A.value[I];
3624
3626
  }
3625
- })), D.value[I];
3627
+ })), A.value[I];
3626
3628
  }
3627
- async function b(y) {
3629
+ async function y(w) {
3628
3630
  var U, _, P;
3629
- const I = T(), B = y.refresh;
3630
- if (y.nav ?? (y.nav = e.storeName), !B && t.value != null)
3631
+ const I = T(), B = w.refresh;
3632
+ if (w.nav ?? (w.nav = e.storeName), !B && r.value != null)
3631
3633
  return {
3632
- count: (U = t.value) == null ? void 0 : U.length,
3633
- data: t.value,
3634
+ count: (U = r.value) == null ? void 0 : U.length,
3635
+ data: r.value,
3634
3636
  filters: []
3635
3637
  };
3636
- if (!B && S == !0) {
3638
+ if (!B && E == !0) {
3637
3639
  const m = await he().getItem(I);
3638
3640
  if (m != null && parseFloat(m.meta.storedOn) > l - 12)
3639
- return t.value = m.data, n.value = m.data.length, s.value = m.filters ?? [], h.value = m.meta, {
3640
- count: (_ = t.value) == null ? void 0 : _.length,
3641
- data: t.value,
3641
+ return r.value = m.data, n.value = m.data.length, s.value = m.filters ?? [], h.value = m.meta, {
3642
+ count: (_ = r.value) == null ? void 0 : _.length,
3643
+ data: r.value,
3642
3644
  filters: []
3643
3645
  };
3644
3646
  }
3645
3647
  if (e.api == null)
3646
3648
  return {
3647
- count: (P = t.value) == null ? void 0 : P.length,
3648
- data: t.value ?? [],
3649
+ count: (P = r.value) == null ? void 0 : P.length,
3650
+ data: r.value ?? [],
3649
3651
  filters: s.value
3650
3652
  };
3651
- t.value ?? (t.value = []);
3653
+ r.value ?? (r.value = []);
3652
3654
  try {
3653
- return await R(y);
3655
+ return await R(w);
3654
3656
  } catch (m) {
3655
- let A = m;
3656
- throw new Error(A.message ?? "Problem");
3657
+ let D = m;
3658
+ throw new Error(D.message ?? "Problem");
3657
3659
  }
3658
3660
  }
3659
- async function c(y) {
3661
+ async function c(w) {
3660
3662
  var U, _;
3661
- const I = T(), B = y.refresh;
3662
- if (y.nav ?? (y.nav = e.storeName), !B && t.value != null)
3663
+ const I = T(), B = w.refresh;
3664
+ if (w.nav ?? (w.nav = e.storeName), !B && r.value != null)
3663
3665
  return {
3664
- data: t.value.find((P) => P.id == y.id)
3666
+ data: r.value.find((P) => P.id == w.id)
3665
3667
  };
3666
- if (!B && S == !0) {
3668
+ if (!B && E == !0) {
3667
3669
  const P = await he().getItem(I);
3668
3670
  if (P != null && parseFloat(P.meta.storedOn) > l - 12) {
3669
- t.value = P.data, n.value = P.data.length, s.value = P.filters ?? [], h.value = P.meta;
3670
- let m = t.value.find((A) => A.id == y.id);
3671
+ r.value = P.data, n.value = P.data.length, s.value = P.filters ?? [], h.value = P.meta;
3672
+ let m = r.value.find((D) => D.id == w.id);
3671
3673
  if (m != null)
3672
3674
  return { data: m };
3673
3675
  }
3674
3676
  }
3675
3677
  if (e.api == null)
3676
3678
  return {
3677
- data: (U = t.value) == null ? void 0 : U.find((P) => P.id == y.id)
3679
+ data: (U = r.value) == null ? void 0 : U.find((P) => P.id == w.id)
3678
3680
  };
3679
- t.value ?? (t.value = []);
3681
+ r.value ?? (r.value = []);
3680
3682
  try {
3681
- return await R(y), { data: (_ = t.value) == null ? void 0 : _.find((P) => P.id == y.id) };
3683
+ return await R(w), { data: (_ = r.value) == null ? void 0 : _.find((P) => P.id == w.id) };
3682
3684
  } catch (P) {
3683
3685
  let m = P;
3684
3686
  throw new Error(m.message ?? "Problem");
3685
3687
  }
3686
3688
  }
3687
- async function o(y) {
3689
+ async function o(w) {
3688
3690
  var B, U, _;
3689
- y.additionalUrl ?? (y.additionalUrl = "/patch"), y.nav ?? (y.nav = e.storeName);
3691
+ w.additionalUrl ?? (w.additionalUrl = "/patch"), w.nav ?? (w.nav = e.storeName);
3690
3692
  let I;
3691
3693
  if (e.api != null)
3692
3694
  try {
3693
- let P = await e.api.patch(y);
3694
- I = { ...y.data, ...P == null ? void 0 : P.data };
3695
+ let P = await e.api.patch(w);
3696
+ I = { ...w.data, ...P == null ? void 0 : P.data };
3695
3697
  } catch (P) {
3696
3698
  let m = P;
3697
3699
  throw new Error(m.message ?? "Patch Problem");
3698
3700
  }
3699
3701
  else
3700
- I = y.data;
3702
+ I = w.data;
3701
3703
  if (I != null) {
3702
- let P = (B = t.value) == null ? void 0 : B.findIndex((m) => m.id == I.id);
3703
- P != null && P >= 0 && (t.value ?? (t.value = []), (U = t.value) == null || U.splice(P, 1, I), await L());
3704
+ let P = (B = r.value) == null ? void 0 : B.findIndex((m) => m.id == I.id);
3705
+ P != null && P >= 0 && (r.value ?? (r.value = []), (U = r.value) == null || U.splice(P, 1, I), await L());
3704
3706
  }
3705
- return (_ = t.value) == null ? void 0 : _.find((P) => P.id == (y.id ?? y.data.id));
3707
+ return (_ = r.value) == null ? void 0 : _.find((P) => P.id == (w.id ?? w.data.id));
3706
3708
  }
3707
- async function r(y) {
3709
+ async function t(w) {
3708
3710
  var B, U;
3709
- y.additionalUrl ?? (y.additionalUrl = "/post"), y.nav ?? (y.nav = e.storeName);
3711
+ w.additionalUrl ?? (w.additionalUrl = "/post"), w.nav ?? (w.nav = e.storeName);
3710
3712
  let I;
3711
3713
  if (e.api != null)
3712
3714
  try {
3713
- let _ = await e.api.post(y);
3715
+ let _ = await e.api.post(w);
3714
3716
  I = _ == null ? void 0 : _.data;
3715
3717
  } catch (_) {
3716
3718
  let P = _;
3717
3719
  throw new Error(P.message ?? "Patch Problem");
3718
3720
  }
3719
3721
  else
3720
- I = y.data;
3721
- return I != null && (t.value ?? (t.value = []), (B = t.value) == null || B.unshift(I), n.value += 1, await L()), (U = t.value) == null ? void 0 : U.find((_) => _.id == (y.id ?? y.data.id));
3722
+ I = w.data;
3723
+ return I != null && (r.value ?? (r.value = []), (B = r.value) == null || B.unshift(I), n.value += 1, await L()), (U = r.value) == null ? void 0 : U.find((_) => _.id == (w.id ?? w.data.id));
3722
3724
  }
3723
- async function x(y) {
3725
+ async function x(w) {
3724
3726
  var B, U;
3725
- if (y.additionalUrl ?? (y.additionalUrl = "/delete"), y.nav ?? (y.nav = e.storeName), e.api != null)
3727
+ if (w.additionalUrl ?? (w.additionalUrl = "/delete"), w.nav ?? (w.nav = e.storeName), e.api != null)
3726
3728
  try {
3727
- let _ = await e.api.deleteItem(y);
3729
+ let _ = await e.api.deleteItem(w);
3728
3730
  if (_ != null)
3729
3731
  return _;
3730
3732
  } catch (_) {
3731
3733
  let P = _;
3732
3734
  throw new Error(P.message ?? "Patch Problem");
3733
3735
  }
3734
- const I = y.id ?? y.data.id;
3736
+ const I = w.id ?? w.data.id;
3735
3737
  if (I != null) {
3736
- let _ = (B = t.value) == null ? void 0 : B.findIndex((P) => P.id == I);
3737
- _ != null && _ >= 0 && (t.value ?? (t.value = []), (U = t.value) == null || U.splice(_, 1), await L());
3738
+ let _ = (B = r.value) == null ? void 0 : B.findIndex((P) => P.id == I);
3739
+ _ != null && _ >= 0 && (r.value ?? (r.value = []), (U = r.value) == null || U.splice(_, 1), await L());
3738
3740
  }
3739
3741
  }
3740
- async function E(y) {
3742
+ async function S(w) {
3741
3743
  var I;
3742
- if (y.additionalUrl ?? (y.additionalUrl = `/patch/restore?id=${y.data.id}`), y.nav ?? (y.nav = e.storeName), e.api != null)
3744
+ if (w.additionalUrl ?? (w.additionalUrl = `/patch/restore?id=${w.data.id}`), w.nav ?? (w.nav = e.storeName), e.api != null)
3743
3745
  try {
3744
- await e.api.patch(y);
3746
+ await e.api.patch(w);
3745
3747
  } catch (B) {
3746
3748
  let U = B;
3747
3749
  throw new Error(U.message ?? "Patch Problem");
3748
3750
  }
3749
3751
  try {
3750
- y.additionalUrl = "/getAll", await R(y);
3752
+ w.additionalUrl = "/getAll", await R(w);
3751
3753
  } catch (B) {
3752
3754
  let U = B;
3753
3755
  throw new Error(U.message ?? "Problem");
3754
3756
  }
3755
- return (I = t.value) == null ? void 0 : I.find((B) => B.id == (y.id ?? y.data.id));
3757
+ return (I = r.value) == null ? void 0 : I.find((B) => B.id == (w.id ?? w.data.id));
3756
3758
  }
3757
3759
  return {
3758
3760
  deleteItem: x,
3759
3761
  get: c,
3760
- getAll: b,
3762
+ getAll: y,
3761
3763
  patch: o,
3762
- post: r,
3763
- restore: E
3764
+ post: t,
3765
+ restore: S
3764
3766
  };
3765
3767
  });
3766
3768
  }
3767
- function Iu(e, t, n) {
3769
+ function xu(e, r, n) {
3768
3770
  var Me;
3769
- const l = e.storeMode ?? (n == null ? void 0 : n.storeMode) ?? "session", s = e.storageMode ?? (n == null ? void 0 : n.storageMode) ?? "local-cache", h = e.nav ?? e.nav ?? "basic", D = Na(), S = Rt(), T = _a(), L = Z(1), R = K(e.customFilters) ?? [], b = Z([]);
3771
+ const l = e.storeMode ?? (n == null ? void 0 : n.storeMode) ?? "session", s = e.storageMode ?? (n == null ? void 0 : n.storageMode) ?? "local-cache", h = e.nav ?? e.nav ?? "basic", A = Na(), E = Rt(), T = _a(), L = Z(1), R = K(e.customFilters) ?? [], y = Z([]);
3770
3772
  let c = Z(new Array());
3771
3773
  const o = le(() => Yn([
3772
3774
  ...R.filter((j) => j.name != null).map((j) => j.name),
3773
3775
  ...e.defaultFilters ?? [],
3774
- ...b.value
3775
- ]).value), r = Z((e.defaultFilters ?? []).map((j) => o.value.indexOf(j))), x = le(() => ct(c, r).value.length > 0 || ct(r, c).value.length > 0), E = K(e.proxyQueryKey), y = le(() => {
3776
+ ...y.value
3777
+ ]).value), t = Z((e.defaultFilters ?? []).map((j) => o.value.indexOf(j))), x = le(() => ct(c, t).value.length > 0 || ct(t, c).value.length > 0), S = K(e.proxyQueryKey), w = le(() => {
3776
3778
  var j;
3777
- return K(e.proxyID) ?? (E != null ? (j = T.query) == null ? void 0 : j[E] : void 0);
3779
+ return K(e.proxyID) ?? (S != null ? (j = T.query) == null ? void 0 : j[S] : void 0);
3778
3780
  }), I = K(e.searchQueryKey), B = Z(I != null ? (Me = T.query) == null ? void 0 : Me[I] : void 0), U = Z(K(e.startShowingInactive) ?? !1), _ = Z(K(e.sortOrder)), P = le(() => [
3779
3781
  ...e.searchProps ?? [],
3780
3782
  ...(e.headers ?? []).filter((j) => j.searchable != null && j.value != null).map((j) => j.value ?? "")
3781
- ]), m = Z([]), A = xe([]), g = Z([]);
3783
+ ]), m = Z([]), D = xe([]), g = Z([]);
3782
3784
  let f;
3783
3785
  const { actionErrorMsg: C, actionLoadingMsg: G, deleteItem: J, doAction: ee, getItem: ye, getAllItems: W, restoreItem: H } = ua({
3784
3786
  nav: e.nav ?? e.bladeName ?? e.itemBladeName,
3785
- proxyID: y.value,
3787
+ proxyID: w.value,
3786
3788
  store: Wt({
3787
3789
  storeMode: l,
3788
3790
  storageMode: s,
@@ -3808,7 +3810,7 @@ function Iu(e, t, n) {
3808
3810
  id: "new",
3809
3811
  nav: h
3810
3812
  };
3811
- j == "page" && S.push({
3813
+ j == "page" && E.push({
3812
3814
  name: te.bladeName,
3813
3815
  params: { id: "new" }
3814
3816
  });
@@ -3840,10 +3842,10 @@ function Iu(e, t, n) {
3840
3842
  onCanDeleteAsync: e.onCanDeleteAsync,
3841
3843
  onDeleteAsync: Q,
3842
3844
  onDeleteSuccessAsync: async () => (Ae(be), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(p) : Promise.resolve(void 0)),
3843
- proxyID: y.value,
3845
+ proxyID: w.value,
3844
3846
  // ...(useBladeSrc ? bladeData.value : {}),
3845
3847
  requireConfirmation: !0
3846
- }), t && t("deleted", j);
3848
+ }), r && r("deleted", j);
3847
3849
  }
3848
3850
  function or(j) {
3849
3851
  H({
@@ -3853,13 +3855,13 @@ function Iu(e, t, n) {
3853
3855
  onCanRestoreAsync: e.onCanRestoreAsync,
3854
3856
  onRestoreAsync: e.onRestoreAsync,
3855
3857
  onRestoreSuccessAsync: e.onRestoreSuccessAsync,
3856
- proxyID: y.value
3858
+ proxyID: w.value
3857
3859
  // ...(useBladeSrc ? bladeData.value : {})
3858
3860
  });
3859
3861
  }
3860
3862
  function hr() {
3861
3863
  ee(() => {
3862
- D.exportToCSV(Pe.value, A.value);
3864
+ A.exportToCSV(Pe.value, D.value);
3863
3865
  }, { loadingMsg: "Exporting to CSV" });
3864
3866
  }
3865
3867
  function Fe() {
@@ -3868,7 +3870,7 @@ function Iu(e, t, n) {
3868
3870
  let te = [...P.value];
3869
3871
  e.itemText && te.push(e.itemText), $e(te) && (j = j.filter((Q) => ga(Q, B.value, te)));
3870
3872
  }
3871
- A.value = j;
3873
+ D.value = j;
3872
3874
  }
3873
3875
  function Se() {
3874
3876
  e.headers != null && (g.value = [...e.headers], e.hideActions || g.value.push({ title: "Actions", value: "itemActions", align: "end" }));
@@ -3883,7 +3885,7 @@ function Iu(e, t, n) {
3883
3885
  id: e.itemID,
3884
3886
  nav: e.nav,
3885
3887
  // params: params.getParamOptions(),
3886
- proxyID: y.value,
3888
+ proxyID: w.value,
3887
3889
  // ...(useBladeSrc ? bladeData.value : {}),
3888
3890
  // ...(props.useInterEvents ? eventData : {}),
3889
3891
  refresh: (j == null ? void 0 : j.deepRefresh) ?? !1,
@@ -3897,7 +3899,7 @@ function Iu(e, t, n) {
3897
3899
  ...te,
3898
3900
  onGetSuccessAsync: async (p, be) => {
3899
3901
  let Ae = p == null ? void 0 : p.data;
3900
- return b.value = (p == null ? void 0 : p.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && p.count && (de.value = Math.ceil(p.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (Ae = await e.onGetSuccessAsync(Ae, be)), Ae;
3902
+ return y.value = (p == null ? void 0 : p.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && p.count && (de.value = Math.ceil(p.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (Ae = await e.onGetSuccessAsync(Ae, be)), Ae;
3901
3903
  }
3902
3904
  });
3903
3905
  m.value = Q;
@@ -3906,7 +3908,7 @@ function Iu(e, t, n) {
3906
3908
  }
3907
3909
  function Ze(j, te) {
3908
3910
  const Q = K(j);
3909
- if (Q != null && Q === f && e.canUnselect ? f = null : f = Q, t != null && t("select", f), !(!e.canSelect || e.onCanSelectItem != null && !e.onCanSelectItem(Q)))
3911
+ if (Q != null && Q === f && e.canUnselect ? f = null : f = Q, r != null && r("select", f), !(!e.canSelect || e.onCanSelectItem != null && !e.onCanSelectItem(Q)))
3910
3912
  if (e.onSelectItem != null)
3911
3913
  e.onSelectItem(f);
3912
3914
  else {
@@ -3915,7 +3917,7 @@ function Iu(e, t, n) {
3915
3917
  id: Q.id,
3916
3918
  nav: e.nav
3917
3919
  };
3918
- te == "page" && S.push({
3920
+ te == "page" && E.push({
3919
3921
  name: p.bladeName,
3920
3922
  params: { id: p.id }
3921
3923
  });
@@ -3945,7 +3947,7 @@ function Iu(e, t, n) {
3945
3947
  displayHeaders: ir,
3946
3948
  errorMsg: V,
3947
3949
  exportToCSV: hr,
3948
- filteredItems: A,
3950
+ filteredItems: D,
3949
3951
  filters: o,
3950
3952
  filtersChanged: x,
3951
3953
  headerOptions: g,
@@ -3956,9 +3958,9 @@ function Iu(e, t, n) {
3956
3958
  refresh: Ne,
3957
3959
  restoreItem: or,
3958
3960
  searchString: B,
3959
- selectedFilters: r,
3961
+ selectedFilters: t,
3960
3962
  selectItem: Ze,
3961
- serverFilters: b,
3963
+ serverFilters: y,
3962
3964
  showError: re,
3963
3965
  showInactive: U,
3964
3966
  showSearch: fe,
@@ -3972,11 +3974,11 @@ function Iu(e, t, n) {
3972
3974
  }
3973
3975
  const wt = Z(!0), bt = Z(!1), Et = Z(), Ar = Z(!1);
3974
3976
  let Dr = null, kr;
3975
- function xu() {
3977
+ function Nu() {
3976
3978
  return kr;
3977
3979
  }
3978
3980
  function Wa(e) {
3979
- const t = e.defaultCacheExpiryHours ?? 7;
3981
+ const r = e.defaultCacheExpiryHours ?? 7;
3980
3982
  e.getDisplayName ?? (e.getDisplayName = (c) => {
3981
3983
  if (c.displayName != null)
3982
3984
  return c.displayName;
@@ -3989,51 +3991,51 @@ function Wa(e) {
3989
3991
  }));
3990
3992
  function l(c) {
3991
3993
  var o;
3992
- return (o = S(c)) == null ? void 0 : o.archiveName;
3994
+ return (o = E(c)) == null ? void 0 : o.archiveName;
3993
3995
  }
3994
3996
  function s(c) {
3995
3997
  var o;
3996
- return ((o = S(c)) == null ? void 0 : o.cacheExpiryHours) ?? t;
3998
+ return ((o = E(c)) == null ? void 0 : o.cacheExpiryHours) ?? r;
3997
3999
  }
3998
4000
  function h(c) {
3999
4001
  var o;
4000
- return (o = S(c)) == null ? void 0 : o.displayName;
4002
+ return (o = E(c)) == null ? void 0 : o.displayName;
4001
4003
  }
4002
- function D(c) {
4004
+ function A(c) {
4003
4005
  var o;
4004
- return (o = S(c)) == null ? void 0 : o.icon;
4006
+ return (o = E(c)) == null ? void 0 : o.icon;
4005
4007
  }
4006
- function S(c) {
4007
- return c == null ? null : typeof c != "string" ? c : Mt(n, (r) => r.children).find((r) => {
4008
+ function E(c) {
4009
+ return c == null ? null : typeof c != "string" ? c : Mt(n, (t) => t.children).find((t) => {
4008
4010
  var x;
4009
- return r.name == c || r.singleName == c || ((x = r.aliases) == null ? void 0 : x.some((E) => E == c));
4011
+ return t.name == c || t.singleName == c || ((x = t.aliases) == null ? void 0 : x.some((S) => S == c));
4010
4012
  }) ?? null;
4011
4013
  }
4012
4014
  function T(c) {
4013
- const o = S(c);
4015
+ const o = E(c);
4014
4016
  if (o == null)
4015
4017
  return;
4016
- let r = Aa(o.microservice ?? "default") ?? "";
4017
- return o.path != null && (r = Te(r, o.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
4018
+ let t = Aa(o.microservice ?? "default") ?? "";
4019
+ return o.path != null && (t = Te(t, o.path)), t != null && t.endsWith("/") && (t = t.slice(0, t.length - 1)), t;
4018
4020
  }
4019
4021
  function L(c) {
4020
- const o = S(c);
4022
+ const o = E(c);
4021
4023
  if ((o == null ? void 0 : o.singleName) != null)
4022
4024
  return o.singleName;
4023
- const r = o == null ? void 0 : o.displayName;
4024
- if (r != null)
4025
- return r.endsWith("ies") ? r.slice(0, r.length - 3) : r.endsWith("es") ? r.slice(0, r.length - 2) : r.endsWith("s") ? r.slice(0, r.length - 1) : r;
4025
+ const t = o == null ? void 0 : o.displayName;
4026
+ if (t != null)
4027
+ return t.endsWith("ies") ? t.slice(0, t.length - 3) : t.endsWith("es") ? t.slice(0, t.length - 2) : t.endsWith("s") ? t.slice(0, t.length - 1) : t;
4026
4028
  }
4027
4029
  function R(c) {
4028
- const o = S(c);
4030
+ const o = E(c);
4029
4031
  return (o == null ? void 0 : o.name) ?? (o == null ? void 0 : o.singleName) ?? "store";
4030
4032
  }
4031
- function b(c) {
4033
+ function y(c) {
4032
4034
  if (c == null)
4033
4035
  return;
4034
- const o = typeof c == "string" ? S(c) : c;
4035
- Et.value = o == null ? void 0 : o.background, bt.value = (o == null ? void 0 : o.hideNavigation) !== !0, wt.value = (o == null ? void 0 : o.hideAppBar) !== !0, Dr != null && Dr(), Ar.value = (o == null ? void 0 : o.hesitate) === !0, Ar.value && (Dr = window.addEventListener("beforeunload", (r) => {
4036
- r.preventDefault();
4036
+ const o = typeof c == "string" ? E(c) : c;
4037
+ Et.value = o == null ? void 0 : o.background, bt.value = (o == null ? void 0 : o.hideNavigation) !== !0, wt.value = (o == null ? void 0 : o.hideAppBar) !== !0, Dr != null && Dr(), Ar.value = (o == null ? void 0 : o.hesitate) === !0, Ar.value && (Dr = window.addEventListener("beforeunload", (t) => {
4038
+ t.preventDefault();
4037
4039
  }));
4038
4040
  }
4039
4041
  return kr = {
@@ -4045,57 +4047,57 @@ function Wa(e) {
4045
4047
  findArchiveName: l,
4046
4048
  findCacheHours: s,
4047
4049
  findDisplay: h,
4048
- findIcon: D,
4049
- findItem: S,
4050
+ findIcon: A,
4051
+ findItem: E,
4050
4052
  findStoreName: R,
4051
4053
  findPath: T,
4052
4054
  findSingleDisplay: L,
4053
- updateNavigationProperties: b
4055
+ updateNavigationProperties: y
4054
4056
  }, kr;
4055
4057
  }
4056
4058
  let Vr;
4057
- function Nu(e) {
4059
+ function Tu(e) {
4058
4060
  return Vr.usePresets(e);
4059
4061
  }
4060
4062
  function ja(e) {
4061
- function t(n) {
4063
+ function r(n) {
4062
4064
  if (!n)
4063
4065
  return {};
4064
4066
  let l = n;
4065
4067
  return e.presets[l] ?? {};
4066
4068
  }
4067
4069
  return Vr = {
4068
- usePresets: t
4070
+ usePresets: r
4069
4071
  }, Vr;
4070
4072
  }
4071
4073
  let St, _t, At, Dt = !1;
4072
4074
  const Ir = Z(!1), xr = Z(!1), It = Z(), rr = Z();
4073
4075
  let Wr;
4074
- function Tu() {
4076
+ function Cu() {
4075
4077
  return Wr;
4076
4078
  }
4077
4079
  function Ga() {
4078
- function e(D) {
4079
- rr.value = D.detail, xr.value = !0;
4080
+ function e(A) {
4081
+ rr.value = A.detail, xr.value = !0;
4080
4082
  }
4081
- function t() {
4083
+ function r() {
4082
4084
  Dt || (Dt = !0, window.location.reload());
4083
4085
  }
4084
4086
  function n() {
4085
- var D;
4086
- (D = It.value) == null || D.prompt(), Ir.value = !1;
4087
+ var A;
4088
+ (A = It.value) == null || A.prompt(), Ir.value = !1;
4087
4089
  }
4088
4090
  function l() {
4089
4091
  return !!window.matchMedia("(display-mode: standalone)").matches;
4090
4092
  }
4091
- function s(D) {
4092
- D.preventDefault(), Ir.value = !0, It.value = D;
4093
+ function s(A) {
4094
+ A.preventDefault(), Ir.value = !0, It.value = A;
4093
4095
  }
4094
4096
  function h() {
4095
4097
  xr.value = !1, !(!rr.value || !rr.value.waiting) && rr.value.waiting.postMessage({ type: "SKIP_WAITING" });
4096
4098
  }
4097
4099
  return zr(() => {
4098
- St == null && (St = document.addEventListener("swUpdated", e, { once: !0 })), _t == null && (_t = navigator.serviceWorker.addEventListener("controllerchange", t)), At == null && (At = window.addEventListener("beforeinstallprompt", s));
4100
+ St == null && (St = document.addEventListener("swUpdated", e, { once: !0 })), _t == null && (_t = navigator.serviceWorker.addEventListener("controllerchange", r)), At == null && (At = window.addEventListener("beforeinstallprompt", s));
4099
4101
  }), Wr = {
4100
4102
  canInstallApp: Ir,
4101
4103
  canUpdateApp: xr,
@@ -4105,11 +4107,11 @@ function Ga() {
4105
4107
  }, Wr;
4106
4108
  }
4107
4109
  const qa = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
4108
- function Cu(e, t = {}) {
4109
- let n, l = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, h = t.minWidth ?? 0, D = t.maxWidth ?? Number.MAX_SAFE_INTEGER, S = t.minHeight ?? 0, T = t.maxHeight ?? Number.MAX_SAFE_INTEGER, L = t.preventDefault ?? !1, R = t.stopPropagation ?? !1, b, c = [];
4110
+ function Pu(e, r = {}) {
4111
+ let n, l = r.handleWidth ?? 12, s = r.handleZIndex ?? 100, h = r.minWidth ?? 0, A = r.maxWidth ?? Number.MAX_SAFE_INTEGER, E = r.minHeight ?? 0, T = r.maxHeight ?? Number.MAX_SAFE_INTEGER, L = r.preventDefault ?? !1, R = r.stopPropagation ?? !1, y, c = [];
4110
4112
  const o = Z(!1);
4111
- let r = [], x = [];
4112
- const E = Z(!1), y = Z({ x: 0, y: 0 });
4113
+ let t = [], x = [];
4114
+ const S = Z(!1), w = Z({ x: 0, y: 0 });
4113
4115
  let I = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, B = {};
4114
4116
  function U(W) {
4115
4117
  ae(L) && W.preventDefault(), ae(R) && W.stopPropagation();
@@ -4124,7 +4126,7 @@ function Cu(e, t = {}) {
4124
4126
  const H = l + "px", V = -l / 2 + "px", ce = s + 1, Y = document.createElement("div");
4125
4127
  return Y.dataset.handle = W, Y.style.position = "absolute", Y.style.touchAction = "none", Y.style.userSelect = "none", Y.style.zIndex = (W.length === 1 ? s : ce).toString(), Y.style.cursor = C(W), W.includes("t") && (Y.style.top = V, Y.style.height = H, W === "t" && (Y.style.left = "0", Y.style.width = "100%")), W.includes("b") && (Y.style.bottom = V, Y.style.height = H, W === "b" && (Y.style.left = "0", Y.style.width = "100%")), W.includes("r") && (Y.style.right = V, Y.style.width = H, W === "r" && (Y.style.top = "0", Y.style.height = "100%")), W.includes("l") && (Y.style.left = V, Y.style.width = H, W === "l" && (Y.style.top = "0", Y.style.height = "100%")), Y;
4126
4128
  }
4127
- function A(W) {
4129
+ function D(W) {
4128
4130
  var fe;
4129
4131
  if (!c.some((de) => de == W.target))
4130
4132
  return;
@@ -4132,43 +4134,43 @@ function Cu(e, t = {}) {
4132
4134
  if (!H)
4133
4135
  return;
4134
4136
  const V = H.$el, Y = W.type === "touchstart" && W.touches.length > 0 ? W.touches[0] : W;
4135
- if (y.value.x = Y.clientX, y.value.y = Y.clientY, I = {
4137
+ if (w.value.x = Y.clientX, w.value.y = Y.clientY, I = {
4136
4138
  left: V.offsetLeft,
4137
4139
  top: V.offsetTop,
4138
4140
  height: parseInt(window.getComputedStyle(V).getPropertyValue("height")),
4139
4141
  width: parseInt(window.getComputedStyle(V).getPropertyValue("width"))
4140
- }, B = Yr(I), ((fe = t.onStart) == null ? void 0 : fe.call(t, y.value, W)) === !1)
4142
+ }, B = Yr(I), ((fe = r.onStart) == null ? void 0 : fe.call(r, w.value, W)) === !1)
4141
4143
  return;
4142
4144
  let re = W.target;
4143
- document.documentElement.style.cursor = C(re.dataset.handle), b = re.dataset.handle, x.push(oe("mousemove", g)), x.push(oe("mouseup", f)), x.push(oe("touchmove", g)), x.push(oe("touchend", f)), U(W);
4145
+ document.documentElement.style.cursor = C(re.dataset.handle), y = re.dataset.handle, x.push(oe("mousemove", g)), x.push(oe("mouseup", f)), x.push(oe("touchmove", g)), x.push(oe("touchend", f)), U(W);
4144
4146
  }
4145
4147
  function g(W) {
4146
4148
  const H = ae(e);
4147
4149
  if (!H)
4148
4150
  return;
4149
4151
  const V = H.$el, Y = W.type === "touchmove" && W.touches.length > 0 ? W.touches[0] : W;
4150
- let re = Y.clientX - y.value.x, fe = Y.clientY - y.value.y;
4152
+ let re = Y.clientX - w.value.x, fe = Y.clientY - w.value.y;
4151
4153
  const de = ae(I);
4152
- if (b.includes("t")) {
4153
- const we = Math.min(T, Math.max(S, (de.height ?? 0) - fe));
4154
+ if (y.includes("t")) {
4155
+ const we = Math.min(T, Math.max(E, (de.height ?? 0) - fe));
4154
4156
  B.height = we, B.top = (de.top ?? 0) + fe;
4155
4157
  }
4156
- if (b.includes("b")) {
4157
- const we = Math.min(T, Math.max(S, (de.height ?? 0) + fe));
4158
+ if (y.includes("b")) {
4159
+ const we = Math.min(T, Math.max(E, (de.height ?? 0) + fe));
4158
4160
  B.height = we;
4159
4161
  }
4160
- if (b.includes("l")) {
4161
- const we = Math.min(D, Math.max(h, (de.width ?? 0) - re));
4162
+ if (y.includes("l")) {
4163
+ const we = Math.min(A, Math.max(h, (de.width ?? 0) - re));
4162
4164
  B.width = we, B.left = (de.left ?? 0) + re;
4163
4165
  }
4164
- if (b.includes("r")) {
4165
- const we = Math.min(D, Math.max(h, (de.width ?? 0) + re));
4166
+ if (y.includes("r")) {
4167
+ const we = Math.min(A, Math.max(h, (de.width ?? 0) + re));
4166
4168
  B.width = we;
4167
4169
  }
4168
4170
  V.dispatchEvent(new CustomEvent("resize")), U(W), J(B);
4169
4171
  }
4170
4172
  function f() {
4171
- document.documentElement.style.cursor = "", b = null, x.forEach((W) => {
4173
+ document.documentElement.style.cursor = "", y = null, x.forEach((W) => {
4172
4174
  W();
4173
4175
  }), x.length = 0;
4174
4176
  }
@@ -4236,70 +4238,70 @@ function Cu(e, t = {}) {
4236
4238
  W.top ? V.style.top = `${W.top}px` : V.style.top = void 0, W.left ? V.style.left = `${W.left}px` : V.style.left = void 0, W.height ? V.style.height = `${W.height}px` : V.style.height = void 0, W.width ? V.style.width = `${W.width}px` : V.style.width = void 0, W.position ? V.style.position = `${W.position}` : V.style.position = void 0, console.log(V.style.position);
4237
4239
  }
4238
4240
  function ee(W, H) {
4239
- if (E.value)
4241
+ if (S.value)
4240
4242
  return;
4241
4243
  const V = ae(e);
4242
- V && (_(V, W ?? qa), G(H), r.push(oe(V.$el, "mousedown", A)), r.push(oe(V.$el, "touchstart", A)), E.value = !0, n = H);
4244
+ V && (_(V, W ?? qa), G(H), t.push(oe(V.$el, "mousedown", D)), t.push(oe(V.$el, "touchstart", D)), S.value = !0, n = H);
4243
4245
  }
4244
4246
  function ye(W) {
4245
- if (!E.value)
4247
+ if (!S.value)
4246
4248
  return;
4247
4249
  const H = ae(e);
4248
- H && (P(H), G(W), r.forEach((V) => {
4250
+ H && (P(H), G(W), t.forEach((V) => {
4249
4251
  V();
4250
- }), r.length = 0, E.value = !1);
4252
+ }), t.length = 0, S.value = !1);
4251
4253
  }
4252
4254
  return {
4253
- resizingIsOn: E,
4255
+ resizingIsOn: S,
4254
4256
  turnResizingOn: ee,
4255
4257
  turnResizingOff: ye
4256
4258
  };
4257
4259
  }
4258
- function Pu(e) {
4259
- const t = [];
4260
- return (e == null ? void 0 : e.required) == !0 && t.push((n) => !!n || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? t.push(...e.otherRules) : t.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (t.push((n) => !!n || "Password is required"), t.push((n) => n != null && n.length > 9 || "Password must be 10 or more characters"), t.push((n) => /^(.*[a-z].*)$/.test(n) || "Password must contain a lowercase letter"), t.push((n) => /^(.*[A-Z].*)$/.test(n) || "Password must contain an uppercase letter"), t.push((n) => /^(.*\d.*)$/.test(n) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((n) => !!n || "Email is required"), t.push((n) => ya(n) || "Email must be valid")), t;
4260
+ function Lu(e) {
4261
+ const r = [];
4262
+ return (e == null ? void 0 : e.required) == !0 && r.push((n) => !!n || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? r.push(...e.otherRules) : r.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (r.push((n) => !!n || "Password is required"), r.push((n) => n != null && n.length > 9 || "Password must be 10 or more characters"), r.push((n) => /^(.*[a-z].*)$/.test(n) || "Password must contain a lowercase letter"), r.push((n) => /^(.*[A-Z].*)$/.test(n) || "Password must contain an uppercase letter"), r.push((n) => /^(.*\d.*)$/.test(n) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (r.push((n) => !!n || "Email is required"), r.push((n) => ya(n) || "Email must be valid")), r;
4261
4263
  }
4262
- function Lu(e, t) {
4264
+ function Mu(e, r) {
4263
4265
  const n = Z(!1), l = tr(e);
4264
4266
  let s = h(K(e));
4265
- (t == null ? void 0 : t.useTracker) !== !1 && Ee(l, (S) => {
4266
- n.value = h(S) != s;
4267
+ (r == null ? void 0 : r.useTracker) !== !1 && Ee(l, (E) => {
4268
+ n.value = h(E) != s;
4267
4269
  }, { deep: !0 });
4268
- function h(S) {
4269
- const T = Yr(S);
4270
- return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((L) => {
4270
+ function h(E) {
4271
+ const T = Yr(E);
4272
+ return r != null && (r.propsToIgnore != null ? r.propsToIgnore.forEach((L) => {
4271
4273
  delete T[L];
4272
- }) : t.propsToTrack != null && Object.keys(S).forEach((R) => {
4273
- t.propsToTrack.some((b) => b == R) || delete T[R];
4274
+ }) : r.propsToTrack != null && Object.keys(E).forEach((R) => {
4275
+ r.propsToTrack.some((y) => y == R) || delete T[R];
4274
4276
  })), JSON.stringify(T);
4275
4277
  }
4276
- function D() {
4278
+ function A() {
4277
4279
  s = h(K(l)), n.value = !1;
4278
4280
  }
4279
4281
  return {
4280
4282
  asyncItem: l,
4281
4283
  isChanged: n,
4282
- restartTracker: D
4284
+ restartTracker: A
4283
4285
  };
4284
4286
  }
4285
- function Mu(e) {
4287
+ function Ru(e) {
4286
4288
  return {
4287
- install() {
4288
- var h;
4289
- xa(e);
4290
- const t = Ca(), n = Wa(e);
4291
- ja(e), (h = e.auth).demo ?? (h.demo = t), e.auth.getAuthItem = n.findItem;
4292
- const l = Ia(e.auth);
4289
+ install(r, n) {
4290
+ var E;
4291
+ console.log(r), e.vuetifyInstance ?? (e.vuetifyInstance = n.vuetifyInstance), xa(e);
4292
+ const l = Ca(), s = Wa(e);
4293
+ ja(e), (E = e.auth).demo ?? (E.demo = l), e.auth.getAuthItem = s.findItem;
4294
+ const h = Ia(e.auth);
4293
4295
  ba({
4294
- auth: l,
4295
- findPath: n.findPath,
4296
+ auth: h,
4297
+ findPath: s.findPath,
4296
4298
  useBearerToken: !0
4297
4299
  });
4298
- const s = Ta({
4299
- getTimeZone: l.getTimeZone
4300
+ const A = Ta({
4301
+ getTimeZone: h.getTimeZone
4300
4302
  });
4301
4303
  La({
4302
- dates: s
4304
+ dates: A
4303
4305
  }), Ga(), Da(e.urls);
4304
4306
  }
4305
4307
  };
@@ -4316,7 +4318,7 @@ export {
4316
4318
  ha as copyItemByAlphabet,
4317
4319
  ba as createApi,
4318
4320
  Ia as createAuth,
4319
- Mu as createCore,
4321
+ Ru as createCore,
4320
4322
  xa as createCosmetics,
4321
4323
  Ta as createDates,
4322
4324
  Ca as createDemo,
@@ -4328,7 +4330,7 @@ export {
4328
4330
  Da as createUrl,
4329
4331
  yt as createWholeLastUpdateStoreDefinition,
4330
4332
  oa as csvContains,
4331
- yu as csvDefaults,
4333
+ wu as csvDefaults,
4332
4334
  Mt as deepSelect,
4333
4335
  Ya as distinct,
4334
4336
  Ja as extensionExists,
@@ -4362,24 +4364,25 @@ export {
4362
4364
  Na as useCSV,
4363
4365
  gu as useCosmetics,
4364
4366
  Aa as useDataUrl,
4365
- wu as useDates,
4367
+ bu as useDates,
4366
4368
  Ut as useDbName,
4367
- bu as useDemo,
4368
- Eu as useDocumentMeta,
4369
- Su as useDraggable,
4370
- _u as useFilters,
4369
+ Eu as useDemo,
4370
+ Su as useDocumentMeta,
4371
+ _u as useDraggable,
4372
+ Au as useFilters,
4371
4373
  ta as useId,
4372
- Iu as useList,
4373
- Au as useLocalCache,
4374
+ xu as useList,
4375
+ Du as useLocalCache,
4376
+ yu as useLocalCosmetics,
4374
4377
  he as useLocalDb,
4375
- xu as useNavigation,
4376
- Tu as usePWA,
4377
- Nu as usePresets,
4378
- Cu as useResizable,
4379
- Pu as useRules,
4380
- Du as useStore,
4378
+ Nu as useNavigation,
4379
+ Cu as usePWA,
4380
+ Tu as usePresets,
4381
+ Pu as useResizable,
4382
+ Lu as useRules,
4383
+ Iu as useStore,
4381
4384
  Wt as useStoreDefinition,
4382
- Lu as useTracker,
4385
+ Mu as useTracker,
4383
4386
  mu as useUrls,
4384
4387
  ya as validEmail,
4385
4388
  ze as weekdayPairs,