bt-core-app 1.4.70 → 1.4.71

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,28 +1,28 @@
1
- import { ref as z, shallowRef as Re, computed as te, toValue as K, watch as _e, toRef as Zt, onMounted as Or } from "vue";
2
- import { watchArray as pr, useStorage as Jt, useEventListener as he, toValue as Ae, useParentElement as jt, useResizeObserver as Kt, useArrayUnique as Qt, useArrayDifference as Wr, watchDebounced as Xt, tryOnMounted as Ot } from "@vueuse/core";
3
- import { defineStore as et } from "pinia";
4
- import { DateTime as de } from "luxon";
5
- import { useRouter as Mr, useRoute as rt } from "vue-router";
6
- function pt(e) {
7
- return (e || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g, en);
1
+ import { ref as z, shallowRef as Re, computed as te, toValue as K, watch as Te, toRef as Yt, onMounted as Xr } from "vue";
2
+ import { watchArray as Or, useStorage as Zt, useEventListener as me, toValue as Ae, useParentElement as Jt, useResizeObserver as jt, useArrayUnique as Kt, useArrayDifference as Gr, watchDebounced as Qt, tryOnMounted as Xt } from "@vueuse/core";
3
+ import { defineStore as pr } from "pinia";
4
+ import { DateTime as he } from "luxon";
5
+ import { useRouter as Mr, useRoute as et } from "vue-router";
6
+ function Ot(e) {
7
+ return (e || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g, pt);
8
8
  }
9
- function en(e) {
9
+ function pt(e) {
10
10
  const t = Math.random() * 16 | 0;
11
11
  return (e == "x" ? t : t & 3 | 8).toString(16);
12
12
  }
13
- function rn(e) {
13
+ function en(e) {
14
14
  const t = z([]), l = Re(), S = Re(), s = Re(), g = te(() => l.value != null);
15
15
  function x(d) {
16
16
  t.value = t.value.filter((h) => h.id != d);
17
17
  }
18
18
  function P(d) {
19
19
  const h = {
20
- id: pt(),
20
+ id: Ot(),
21
21
  msg: d ?? "Loading"
22
22
  };
23
23
  return t.value.push(h), h.id;
24
24
  }
25
- function T(d) {
25
+ function _(d) {
26
26
  d != null && (S.value = d.toString());
27
27
  }
28
28
  function N() {
@@ -41,13 +41,13 @@ function rn(e) {
41
41
  else {
42
42
  if (u.throwError == !0)
43
43
  return I;
44
- T(u.errorMsg ?? I ?? "error");
44
+ _(u.errorMsg ?? I ?? "error");
45
45
  }
46
46
  } finally {
47
47
  x(r);
48
48
  }
49
49
  }
50
- return pr(t, (d) => {
50
+ return Or(t, (d) => {
51
51
  l.value = d.length > 0 ? d[0].msg : void 0;
52
52
  }, { deep: !0 }), {
53
53
  actionErrorMsg: S,
@@ -56,11 +56,11 @@ function rn(e) {
56
56
  clearErrors: N,
57
57
  doAction: $,
58
58
  isLoading: g,
59
- logError: T
59
+ logError: _
60
60
  };
61
61
  }
62
62
  var Qe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
63
- function tn(e) {
63
+ function rn(e) {
64
64
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
65
65
  }
66
66
  var Ue = function() {
@@ -78,11 +78,11 @@ var Ue = function() {
78
78
  };
79
79
  }
80
80
  if (s.length === 1) {
81
- var P = s, T = g.ignoreCase ? t : e, N = g.cmp || function(d, h) {
81
+ var P = s, _ = g.ignoreCase ? t : e, N = g.cmp || function(d, h) {
82
82
  return d < h ? -1 : d > h ? 1 : 0;
83
83
  };
84
84
  s = function(d, h) {
85
- return N(T(P(d)), T(P(h)));
85
+ return N(_(P(d)), _(P(h)));
86
86
  };
87
87
  }
88
88
  const $ = { "-1": "", desc: "" };
@@ -91,10 +91,10 @@ var Ue = function() {
91
91
  } : s;
92
92
  }
93
93
  function S(s, g) {
94
- var x = typeof this == "function" && !this.firstBy ? this : !1, P = l(s, g), T = x ? function(N, $) {
94
+ var x = typeof this == "function" && !this.firstBy ? this : !1, P = l(s, g), _ = x ? function(N, $) {
95
95
  return x(N, $) || P(N, $);
96
96
  } : P;
97
- return T.thenBy = S, T;
97
+ return _.thenBy = S, _;
98
98
  }
99
99
  return S.firstBy = S, S;
100
100
  }();
@@ -110,18 +110,18 @@ function Be(e, t) {
110
110
  while (S.startsWith("/"));
111
111
  return `${l}/${S}`;
112
112
  }
113
- function Jn(e) {
113
+ function Zn(e) {
114
114
  return e == null || !Array.isArray(e) ? e : [...new Set(e.map((t) => t))];
115
115
  }
116
- function jn(e = "blitzItExtensionExists") {
116
+ function Jn(e = "blitzItExtensionExists") {
117
117
  try {
118
118
  var t = document.getElementById(e);
119
119
  return t != null;
120
120
  } catch (l) {
121
- return console.log(on(l)), !1;
121
+ return console.log(sn(l)), !1;
122
122
  }
123
123
  }
124
- function Kn(e, t) {
124
+ function jn(e, t) {
125
125
  return [
126
126
  { lat: e.lat - t, lng: e.lng + t },
127
127
  { lat: e.lat - t, lng: e.lng - t },
@@ -129,7 +129,7 @@ function Kn(e, t) {
129
129
  { lat: e.lat + t, lng: e.lng + t }
130
130
  ];
131
131
  }
132
- function Qn(e, t) {
132
+ function Kn(e, t) {
133
133
  return [
134
134
  { lat: e.lat - t * 2, lng: e.lng + t },
135
135
  { lat: e.lat - t * 2, lng: e.lng - t },
@@ -137,7 +137,7 @@ function Qn(e, t) {
137
137
  { lat: e.lat, lng: e.lng + t }
138
138
  ];
139
139
  }
140
- function Xn(e, t) {
140
+ function Qn(e, t) {
141
141
  return [
142
142
  { lat: e.lat, lng: e.lng + t },
143
143
  { lat: e.lat, lng: e.lng - t },
@@ -145,11 +145,11 @@ function Xn(e, t) {
145
145
  { lat: e.lat + t * 2, lng: e.lng + t }
146
146
  ];
147
147
  }
148
- function On(e) {
149
- var t = tt(e, !0);
148
+ function Xn(e) {
149
+ var t = rt(e, !0);
150
150
  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(" ", "");
151
151
  }
152
- function tt(e, t = !1) {
152
+ function rt(e, t = !1) {
153
153
  if (e == null)
154
154
  return "";
155
155
  if (typeof e != "object")
@@ -157,13 +157,13 @@ function tt(e, t = !1) {
157
157
  var l = "";
158
158
  return e.addressLineOne != null && !t && (l = e.addressLineOne + " "), e.streetNumber != null && (l = l + e.streetNumber + " "), e.streetName != null && (l = l + e.streetName + ", "), e.suburb != null && (l = l + e.suburb + " "), e.state != null && (l = l + e.state + " "), e.postcode != null && (l = l + e.postcode), l;
159
159
  }
160
- function pn(e, t, l) {
160
+ function On(e, t, l) {
161
161
  if (e) {
162
162
  var S = new Image();
163
163
  S.onload = t, S.onerror = l, S.src = e;
164
164
  }
165
165
  }
166
- async function ea(e, t = !0) {
166
+ async function pn(e, t = !0) {
167
167
  return new Promise((l, S) => {
168
168
  e == null && S("no url given");
169
169
  var s = new Image();
@@ -177,16 +177,16 @@ async function ea(e, t = !0) {
177
177
  }, e != null && (s.src = e);
178
178
  });
179
179
  }
180
- function nn(e) {
180
+ function tn(e) {
181
181
  return e && e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase());
182
182
  }
183
- function ra(e) {
183
+ function ea(e) {
184
184
  if (e != null && typeof e == "object")
185
185
  for (var t in e)
186
186
  /^[A-Z]/.test(t) && Object.hasOwnProperty.call(e, t) && (e[t.charAt(0).toLowerCase() + t.substring(1)] = e[t], delete e[t]);
187
187
  return e;
188
188
  }
189
- function an(e) {
189
+ function nn(e) {
190
190
  return e == null ? e : e.replace(/\w\S*/g, (t) => t.replace(/^\w/, (l) => l.toUpperCase()));
191
191
  }
192
192
  const Ye = [
@@ -199,25 +199,25 @@ const Ye = [
199
199
  { value: 7, short: "sat", values: ["sat", "saturday"] },
200
200
  { value: 0, short: "always", values: ["always", null, void 0] }
201
201
  ];
202
- function ta(e) {
202
+ function ra(e) {
203
203
  if (e == null)
204
204
  return 0;
205
205
  const t = e.replaceAll(" ", "").split(",").map((S) => S.toLowerCase()), l = Ye.filter((S) => S.values.some((s) => t.some((g) => s == g))).map((S) => S.value);
206
206
  return l.length == 0 ? 8 : Math.min(...l);
207
207
  }
208
- function na(e) {
208
+ function ta(e) {
209
209
  return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((t) => {
210
210
  let l = Ye.find((S) => S.values.some((s) => s == t));
211
211
  return l != null ? l.short : "";
212
212
  }).filter((t) => t != null && t.length > 0).toString();
213
213
  }
214
- function aa(e, t) {
214
+ function na(e, t) {
215
215
  if (e == null || t == null)
216
216
  return !0;
217
217
  const l = e.replaceAll(" ", "").split(",").map((g) => g.toLowerCase()), S = t.replaceAll(" ", "").toLowerCase(), s = Ye.find((g) => g.values.some((x) => x == S));
218
218
  return s != null && l.some((g) => g == s.short || s.values.some((x) => x == g));
219
219
  }
220
- function la(e, t) {
220
+ function aa(e, t) {
221
221
  if (t == null)
222
222
  return e;
223
223
  let l = e ?? "";
@@ -225,28 +225,28 @@ function la(e, t) {
225
225
  let S = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((s) => Ye.find((g) => g.values.some((x) => x == s))).filter((s) => s != null).sort(Ue.firstBy((s) => (s == null ? void 0 : s.value) ?? 0)).map((s) => s == null ? void 0 : s.short))].toString();
226
226
  return S.length > 0 ? S : void 0;
227
227
  }
228
- function ua(e, t) {
228
+ function la(e, t) {
229
229
  if (t == null || e == null)
230
230
  return e;
231
231
  let l = e ?? "", S = t.replaceAll(" ", "").toLowerCase(), s = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((g) => Ye.find((x) => x.values.some((P) => P == g && P != S))).filter((g) => g != null).sort(Ue.firstBy((g) => (g == null ? void 0 : g.value) ?? 0)).map((g) => g == null ? void 0 : g.short))].toString();
232
232
  return s.length > 0 ? s : void 0;
233
233
  }
234
- function ia(e, t) {
234
+ function ua(e, t) {
235
235
  return e != null && Array.isArray(e) && e.length == t;
236
236
  }
237
- function Te(e, t = 0) {
237
+ function _e(e, t = 0) {
238
238
  return e != null && Array.isArray(e) && e.length > t;
239
239
  }
240
- function ln(e) {
240
+ function an(e) {
241
241
  return e == "0001-01-01T00:00:00Z";
242
242
  }
243
- function ca() {
243
+ function ia() {
244
244
  return (/* @__PURE__ */ new Date("0001-01-01T00:00:00Z")).getTime();
245
245
  }
246
- function un() {
246
+ function ln() {
247
247
  return "0001-01-01T00:00:00Z";
248
248
  }
249
- function fa(e, t) {
249
+ function ca(e, t) {
250
250
  let l = "1", S = 0;
251
251
  if (S < t)
252
252
  do
@@ -255,11 +255,11 @@ function fa(e, t) {
255
255
  let s = Number.parseInt(l);
256
256
  return Math.round(e * s) / s;
257
257
  }
258
- function sa(e, t) {
258
+ function fa(e, t) {
259
259
  let l = e ?? "";
260
- return t != null && (cn(l, t) ? l = l.split(",").filter((S) => S != t).toString() : l != null ? l = `${l},${t}` : l = t), l != null && l.length > 0 ? l : null;
260
+ return t != null && (un(l, t) ? l = l.split(",").filter((S) => S != t).toString() : l != null ? l = `${l},${t}` : l = t), l != null && l.length > 0 ? l : null;
261
261
  }
262
- function cn(e, t) {
262
+ function un(e, t) {
263
263
  if (e == null || e.length == 0)
264
264
  return !1;
265
265
  if (!t)
@@ -275,32 +275,32 @@ function Lr(e) {
275
275
  t = e[S], l[S] = typeof t == "object" ? Lr(t) : t;
276
276
  return l;
277
277
  }
278
- function fn(e) {
278
+ function cn(e) {
279
279
  return e && Object.keys(e).sort().reduce(function(t, l) {
280
280
  let S = e[l];
281
- return t[l] = typeof S == "object" && S !== null ? fn(S) : S, t;
281
+ return t[l] = typeof S == "object" && S !== null ? cn(S) : S, t;
282
282
  }, Array.isArray(e) ? [] : {});
283
283
  }
284
- function sn(e, t) {
284
+ function fn(e, t) {
285
285
  return t == null ? !0 : e == null ? !1 : e.toLowerCase().includes(t.toLowerCase());
286
286
  }
287
- function nt(e, t = (l) => l) {
287
+ function tt(e, t = (l) => l) {
288
288
  if (e == null)
289
289
  return [];
290
290
  const l = Array.isArray(e) ? e : t(e);
291
- return Te(l) ? [...l.reduce((S, s) => {
291
+ return _e(l) ? [...l.reduce((S, s) => {
292
292
  S.push(s);
293
- const g = nt(s, t);
294
- return Te(g) && S.push(...g), S;
293
+ const g = tt(s, t);
294
+ return _e(g) && S.push(...g), S;
295
295
  }, [])] : [];
296
296
  }
297
- function oa(e) {
297
+ function sa(e) {
298
298
  const t = e.split(","), l = t[0].indexOf("base64") >= 0 ? atob(t[1]) : decodeURI(t[1]), S = t[0].split(":")[1].split(";")[0], s = new Uint8Array(l.length);
299
299
  for (let g = 0; g < l.length; g++)
300
300
  s[g] = l.charCodeAt(g);
301
301
  return new Blob([s], { type: S });
302
302
  }
303
- function on(e) {
303
+ function sn(e) {
304
304
  var t = "";
305
305
  if (e) {
306
306
  if (e.message && (t = e.message), e.response && e.response.data) {
@@ -313,11 +313,11 @@ function on(e) {
313
313
  }
314
314
  return "hmmm no error was supplied";
315
315
  }
316
- function dn() {
316
+ function on() {
317
317
  const e = "#" + Math.floor(Math.random() * 16777215).toString(16);
318
- return e.length !== 7 ? dn() : e;
318
+ return e.length !== 7 ? on() : e;
319
319
  }
320
- function hn(e, t, l) {
320
+ function dn(e, t, l) {
321
321
  if (t == null)
322
322
  return !0;
323
323
  if (e == null || l == null)
@@ -325,15 +325,15 @@ function hn(e, t, l) {
325
325
  for (let s = 0; s < l.length; s++) {
326
326
  const g = l[s];
327
327
  var S = Sr(e, g);
328
- if (S != null && typeof S == "string" && sn(S, t))
328
+ if (S != null && typeof S == "string" && fn(S, t))
329
329
  return !0;
330
330
  }
331
331
  return !1;
332
332
  }
333
- function da(e) {
333
+ function oa(e) {
334
334
  return e != null ? e.replaceAll(" ", "").toLowerCase() : null;
335
335
  }
336
- function ha(e = 2e3) {
336
+ function da(e = 2e3) {
337
337
  return new Promise((t) => {
338
338
  setTimeout(() => t(), e);
339
339
  });
@@ -348,16 +348,16 @@ function Sr(e, t) {
348
348
  return null;
349
349
  return s;
350
350
  }
351
- function mn(e) {
351
+ function hn(e) {
352
352
  return e ? /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(e) : !1;
353
353
  }
354
- function vn(e) {
354
+ function mn(e) {
355
355
  return e.endsWith("ies") ? e.slice(0, e.length - 3) : e.endsWith("s") ? e.slice(0, e.length - 1) : e;
356
356
  }
357
357
  function Xe(e) {
358
358
  throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
359
359
  }
360
- var at = { exports: {} };
360
+ var nt = { exports: {} };
361
361
  /*!
362
362
  localForage -- Offline Storage, Improved
363
363
  Version 1.10.0
@@ -388,18 +388,18 @@ var at = { exports: {} };
388
388
  }
389
389
  return s[N].exports;
390
390
  }
391
- for (var P = typeof Xe == "function" && Xe, T = 0; T < g.length; T++)
392
- x(g[T]);
391
+ for (var P = typeof Xe == "function" && Xe, _ = 0; _ < g.length; _++)
392
+ x(g[_]);
393
393
  return x;
394
394
  }({ 1: [function(l, S, s) {
395
395
  (function(g) {
396
396
  var x = g.MutationObserver || g.WebKitMutationObserver, P;
397
397
  if (x) {
398
- var T = 0, N = new x(r), $ = g.document.createTextNode("");
398
+ var _ = 0, N = new x(r), $ = g.document.createTextNode("");
399
399
  N.observe($, {
400
400
  characterData: !0
401
401
  }), P = function() {
402
- $.data = T = ++T % 2;
402
+ $.data = _ = ++_ % 2;
403
403
  };
404
404
  } else if (!g.setImmediate && typeof g.MessageChannel < "u") {
405
405
  var d = new g.MessageChannel();
@@ -434,7 +434,7 @@ var at = { exports: {} };
434
434
  var g = l(1);
435
435
  function x() {
436
436
  }
437
- var P = {}, T = ["REJECTED"], N = ["FULFILLED"], $ = ["PENDING"];
437
+ var P = {}, _ = ["REJECTED"], N = ["FULFILLED"], $ = ["PENDING"];
438
438
  S.exports = d;
439
439
  function d(b) {
440
440
  if (typeof b != "function")
@@ -443,19 +443,19 @@ var at = { exports: {} };
443
443
  }
444
444
  d.prototype.catch = function(b) {
445
445
  return this.then(null, b);
446
- }, d.prototype.then = function(b, _) {
447
- if (typeof b != "function" && this.state === N || typeof _ != "function" && this.state === T)
446
+ }, d.prototype.then = function(b, T) {
447
+ if (typeof b != "function" && this.state === N || typeof T != "function" && this.state === _)
448
448
  return this;
449
449
  var D = new this.constructor(x);
450
450
  if (this.state !== $) {
451
- var L = this.state === N ? b : _;
451
+ var L = this.state === N ? b : T;
452
452
  u(D, L, this.outcome);
453
453
  } else
454
- this.queue.push(new h(D, b, _));
454
+ this.queue.push(new h(D, b, T));
455
455
  return D;
456
456
  };
457
- function h(b, _, D) {
458
- this.promise = b, typeof _ == "function" && (this.onFulfilled = _, this.callFulfilled = this.otherCallFulfilled), typeof D == "function" && (this.onRejected = D, this.callRejected = this.otherCallRejected);
457
+ function h(b, T, D) {
458
+ this.promise = b, typeof T == "function" && (this.onFulfilled = T, this.callFulfilled = this.otherCallFulfilled), typeof D == "function" && (this.onRejected = D, this.callRejected = this.otherCallRejected);
459
459
  }
460
460
  h.prototype.callFulfilled = function(b) {
461
461
  P.resolve(this.promise, b);
@@ -466,44 +466,44 @@ var at = { exports: {} };
466
466
  }, h.prototype.otherCallRejected = function(b) {
467
467
  u(this.promise, this.onRejected, b);
468
468
  };
469
- function u(b, _, D) {
469
+ function u(b, T, D) {
470
470
  g(function() {
471
471
  var L;
472
472
  try {
473
- L = _(D);
473
+ L = T(D);
474
474
  } catch (f) {
475
475
  return P.reject(b, f);
476
476
  }
477
477
  L === b ? P.reject(b, new TypeError("Cannot resolve promise with itself")) : P.resolve(b, L);
478
478
  });
479
479
  }
480
- P.resolve = function(b, _) {
481
- var D = I(r, _);
480
+ P.resolve = function(b, T) {
481
+ var D = I(r, T);
482
482
  if (D.status === "error")
483
483
  return P.reject(b, D.value);
484
484
  var L = D.value;
485
485
  if (L)
486
486
  y(b, L);
487
487
  else {
488
- b.state = N, b.outcome = _;
488
+ b.state = N, b.outcome = T;
489
489
  for (var f = -1, A = b.queue.length; ++f < A; )
490
- b.queue[f].callFulfilled(_);
490
+ b.queue[f].callFulfilled(T);
491
491
  }
492
492
  return b;
493
- }, P.reject = function(b, _) {
494
- b.state = T, b.outcome = _;
493
+ }, P.reject = function(b, T) {
494
+ b.state = _, b.outcome = T;
495
495
  for (var D = -1, L = b.queue.length; ++D < L; )
496
- b.queue[D].callRejected(_);
496
+ b.queue[D].callRejected(T);
497
497
  return b;
498
498
  };
499
499
  function r(b) {
500
- var _ = b && b.then;
501
- if (b && (typeof b == "object" || typeof b == "function") && typeof _ == "function")
500
+ var T = b && b.then;
501
+ if (b && (typeof b == "object" || typeof b == "function") && typeof T == "function")
502
502
  return function() {
503
- _.apply(b, arguments);
503
+ T.apply(b, arguments);
504
504
  };
505
505
  }
506
- function y(b, _) {
506
+ function y(b, T) {
507
507
  var D = !1;
508
508
  function L(Q) {
509
509
  D || (D = !0, P.reject(b, Q));
@@ -512,15 +512,15 @@ var at = { exports: {} };
512
512
  D || (D = !0, P.resolve(b, Q));
513
513
  }
514
514
  function A() {
515
- _(f, L);
515
+ T(f, L);
516
516
  }
517
517
  var J = I(A);
518
518
  J.status === "error" && L(J.value);
519
519
  }
520
- function I(b, _) {
520
+ function I(b, T) {
521
521
  var D = {};
522
522
  try {
523
- D.value = b(_), D.status = "success";
523
+ D.value = b(T), D.status = "success";
524
524
  } catch (L) {
525
525
  D.status = "error", D.value = L;
526
526
  }
@@ -532,12 +532,12 @@ var at = { exports: {} };
532
532
  }
533
533
  d.reject = E;
534
534
  function E(b) {
535
- var _ = new this(x);
536
- return P.reject(_, b);
535
+ var T = new this(x);
536
+ return P.reject(T, b);
537
537
  }
538
538
  d.all = w;
539
539
  function w(b) {
540
- var _ = this;
540
+ var T = this;
541
541
  if (Object.prototype.toString.call(b) !== "[object Array]")
542
542
  return this.reject(new TypeError("must be an array"));
543
543
  var D = b.length, L = !1;
@@ -547,7 +547,7 @@ var at = { exports: {} };
547
547
  ee(b[J], J);
548
548
  return Q;
549
549
  function ee(ie, we) {
550
- _.resolve(ie).then(W, function(Y) {
550
+ T.resolve(ie).then(W, function(Y) {
551
551
  L || (L = !0, P.reject(Q, Y));
552
552
  });
553
553
  function W(Y) {
@@ -557,7 +557,7 @@ var at = { exports: {} };
557
557
  }
558
558
  d.race = M;
559
559
  function M(b) {
560
- var _ = this;
560
+ var T = this;
561
561
  if (Object.prototype.toString.call(b) !== "[object Array]")
562
562
  return this.reject(new TypeError("must be an array"));
563
563
  var D = b.length, L = !1;
@@ -567,7 +567,7 @@ var at = { exports: {} };
567
567
  J(b[f]);
568
568
  return A;
569
569
  function J(Q) {
570
- _.resolve(Q).then(function(ee) {
570
+ T.resolve(Q).then(function(ee) {
571
571
  L || (L = !0, P.resolve(A, ee));
572
572
  }, function(ee) {
573
573
  L || (L = !0, P.reject(A, ee));
@@ -604,10 +604,10 @@ var at = { exports: {} };
604
604
  return;
605
605
  }
606
606
  }
607
- var T = P();
607
+ var _ = P();
608
608
  function N() {
609
609
  try {
610
- if (!T || !T.open)
610
+ if (!_ || !_.open)
611
611
  return !1;
612
612
  var n = typeof openDatabase < "u" && /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), c = typeof fetch == "function" && fetch.toString().indexOf("[native code") !== -1;
613
613
  return (!n || c) && typeof indexedDB < "u" && // some outdated implementations of IDB that appear on Samsung
@@ -651,7 +651,7 @@ var at = { exports: {} };
651
651
  return arguments[arguments.length - 1];
652
652
  }
653
653
  var I = "local-forage-detect-blob-support", i = void 0, E = {}, w = Object.prototype.toString, M = "readonly", b = "readwrite";
654
- function _(n) {
654
+ function T(n) {
655
655
  for (var c = n.length, a = new ArrayBuffer(c), m = new Uint8Array(a), v = 0; v < c; v++)
656
656
  m[v] = n.charCodeAt(v);
657
657
  return a;
@@ -701,7 +701,7 @@ var at = { exports: {} };
701
701
  return a(n.db);
702
702
  var v = [n.name];
703
703
  c && v.push(n.version);
704
- var o = T.open.apply(T, v);
704
+ var o = _.open.apply(_, v);
705
705
  c && (o.onupgradeneeded = function(C) {
706
706
  var R = o.result;
707
707
  try {
@@ -755,10 +755,10 @@ var at = { exports: {} };
755
755
  });
756
756
  }
757
757
  function Y(n) {
758
- var c = _(atob(n.data));
758
+ var c = T(atob(n.data));
759
759
  return $([c], { type: n.type });
760
760
  }
761
- function V(n) {
761
+ function H(n) {
762
762
  return n && n.__local_forage_encoded_blob;
763
763
  }
764
764
  function ae(n) {
@@ -857,7 +857,7 @@ var at = { exports: {} };
857
857
  var B = R.objectStore(a._dbInfo.storeName), F = B.get(n);
858
858
  F.onsuccess = function() {
859
859
  var k = F.result;
860
- k === void 0 && (k = null), V(k) && (k = Y(k)), v(k);
860
+ k === void 0 && (k = null), H(k) && (k = Y(k)), v(k);
861
861
  }, F.onerror = function() {
862
862
  o(F.error);
863
863
  };
@@ -881,7 +881,7 @@ var at = { exports: {} };
881
881
  var q = F.result;
882
882
  if (q) {
883
883
  var Z = q.value;
884
- V(Z) && (Z = Y(Z));
884
+ H(Z) && (Z = Y(Z));
885
885
  var p = n(Z, q.key, k++);
886
886
  p !== void 0 ? v(p) : q.continue();
887
887
  } else
@@ -1079,16 +1079,16 @@ var at = { exports: {} };
1079
1079
  Z._dbInfo.db = null, Z._dbInfo.version = B;
1080
1080
  }
1081
1081
  var p = new d(function(re, ue) {
1082
- var le = T.open(n.name, B);
1083
- le.onerror = function(ge) {
1082
+ var le = _.open(n.name, B);
1083
+ le.onerror = function(ye) {
1084
1084
  var ze = le.result;
1085
- ze.close(), ue(ge);
1085
+ ze.close(), ue(ye);
1086
1086
  }, le.onupgradeneeded = function() {
1087
- var ge = le.result;
1088
- ge.deleteObjectStore(n.storeName);
1087
+ var ye = le.result;
1088
+ ye.deleteObjectStore(n.storeName);
1089
1089
  }, le.onsuccess = function() {
1090
- var ge = le.result;
1091
- ge.close(), re(ge);
1090
+ var ye = le.result;
1091
+ ye.close(), re(ye);
1092
1092
  };
1093
1093
  });
1094
1094
  return p.then(function(re) {
@@ -1111,7 +1111,7 @@ var at = { exports: {} };
1111
1111
  q._dbInfo.db = null;
1112
1112
  }
1113
1113
  var Z = new d(function(p, re) {
1114
- var ue = T.deleteDatabase(n.name);
1114
+ var ue = _.deleteDatabase(n.name);
1115
1115
  ue.onerror = function() {
1116
1116
  var le = ue.result;
1117
1117
  le && le.close(), re(ue.error);
@@ -1153,7 +1153,7 @@ var at = { exports: {} };
1153
1153
  function ur() {
1154
1154
  return typeof openDatabase == "function";
1155
1155
  }
1156
- var be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ir = "~~local_forage_type~", Ze = /^~~local_forage_type~([^~]+)~/, Fe = "__lfsc__:", Ne = Fe.length, We = "arbf", Ie = "blob", Je = "si08", je = "ui08", qe = "uic8", Ve = "si16", U = "si32", j = "ur16", H = "ui32", O = "fl32", oe = "fl64", ve = Ne + We.length, De = Object.prototype.toString;
1156
+ var be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ir = "~~local_forage_type~", Ze = /^~~local_forage_type~([^~]+)~/, Fe = "__lfsc__:", Ne = Fe.length, We = "arbf", Ie = "blob", Je = "si08", je = "ui08", qe = "uic8", He = "si16", U = "si32", j = "ur16", V = "ui32", O = "fl32", de = "fl64", ge = Ne + We.length, De = Object.prototype.toString;
1157
1157
  function Se(n) {
1158
1158
  var c = n.length * 0.75, a = n.length, m, v = 0, o, C, R, B;
1159
1159
  n[n.length - 1] === "=" && (c--, n[n.length - 2] === "=" && c--);
@@ -1172,7 +1172,7 @@ var at = { exports: {} };
1172
1172
  var a = "";
1173
1173
  if (n && (a = De.call(n)), n && (a === "[object ArrayBuffer]" || n.buffer && De.call(n.buffer) === "[object ArrayBuffer]")) {
1174
1174
  var m, v = Fe;
1175
- n instanceof ArrayBuffer ? (m = n, v += We) : (m = n.buffer, a === "[object Int8Array]" ? v += Je : a === "[object Uint8Array]" ? v += je : a === "[object Uint8ClampedArray]" ? v += qe : a === "[object Int16Array]" ? v += Ve : a === "[object Uint16Array]" ? v += j : a === "[object Int32Array]" ? v += U : a === "[object Uint32Array]" ? v += H : a === "[object Float32Array]" ? v += O : a === "[object Float64Array]" ? v += oe : c(new Error("Failed to get type for BinaryArray"))), c(v + se(m));
1175
+ n instanceof ArrayBuffer ? (m = n, v += We) : (m = n.buffer, a === "[object Int8Array]" ? v += Je : a === "[object Uint8Array]" ? v += je : a === "[object Uint8ClampedArray]" ? v += qe : a === "[object Int16Array]" ? v += He : a === "[object Uint16Array]" ? v += j : a === "[object Int32Array]" ? v += U : a === "[object Uint32Array]" ? v += V : a === "[object Float32Array]" ? v += O : a === "[object Float64Array]" ? v += de : c(new Error("Failed to get type for BinaryArray"))), c(v + se(m));
1176
1176
  } else if (a === "[object Blob]") {
1177
1177
  var o = new FileReader();
1178
1178
  o.onload = function() {
@@ -1186,10 +1186,10 @@ var at = { exports: {} };
1186
1186
  console.error("Couldn't convert value into a JSON string: ", n), c(null, C);
1187
1187
  }
1188
1188
  }
1189
- function ft(n) {
1189
+ function ct(n) {
1190
1190
  if (n.substring(0, Ne) !== Fe)
1191
1191
  return JSON.parse(n);
1192
- var c = n.substring(ve), a = n.substring(Ne, ve), m;
1192
+ var c = n.substring(ge), a = n.substring(Ne, ge), m;
1193
1193
  if (a === Ie && Ze.test(c)) {
1194
1194
  var v = c.match(Ze);
1195
1195
  m = v[1], c = c.substring(v[0].length);
@@ -1206,17 +1206,17 @@ var at = { exports: {} };
1206
1206
  return new Uint8Array(o);
1207
1207
  case qe:
1208
1208
  return new Uint8ClampedArray(o);
1209
- case Ve:
1209
+ case He:
1210
1210
  return new Int16Array(o);
1211
1211
  case j:
1212
1212
  return new Uint16Array(o);
1213
1213
  case U:
1214
1214
  return new Int32Array(o);
1215
- case H:
1215
+ case V:
1216
1216
  return new Uint32Array(o);
1217
1217
  case O:
1218
1218
  return new Float32Array(o);
1219
- case oe:
1219
+ case de:
1220
1220
  return new Float64Array(o);
1221
1221
  default:
1222
1222
  throw new Error("Unkown type: " + a);
@@ -1224,14 +1224,14 @@ var at = { exports: {} };
1224
1224
  }
1225
1225
  var cr = {
1226
1226
  serialize: Me,
1227
- deserialize: ft,
1227
+ deserialize: ct,
1228
1228
  stringToBuffer: Se,
1229
1229
  bufferToString: se
1230
1230
  };
1231
- function Ur(n, c, a, m) {
1231
+ function Rr(n, c, a, m) {
1232
1232
  n.executeSql("CREATE TABLE IF NOT EXISTS " + c.storeName + " (id INTEGER PRIMARY KEY, key unique, value)", [], a, m);
1233
1233
  }
1234
- function st(n) {
1234
+ function ft(n) {
1235
1235
  var c = this, a = {
1236
1236
  db: null
1237
1237
  };
@@ -1245,7 +1245,7 @@ var at = { exports: {} };
1245
1245
  return C(R);
1246
1246
  }
1247
1247
  a.db.transaction(function(R) {
1248
- Ur(R, a, function() {
1248
+ Rr(R, a, function() {
1249
1249
  c._dbInfo = a, o();
1250
1250
  }, function(B, F) {
1251
1251
  C(F);
@@ -1257,13 +1257,13 @@ var at = { exports: {} };
1257
1257
  function xe(n, c, a, m, v, o) {
1258
1258
  n.executeSql(a, m, v, function(C, R) {
1259
1259
  R.code === R.SYNTAX_ERR ? C.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [c.storeName], function(B, F) {
1260
- F.rows.length ? o(B, R) : Ur(B, c, function() {
1260
+ F.rows.length ? o(B, R) : Rr(B, c, function() {
1261
1261
  B.executeSql(a, m, v, o);
1262
1262
  }, o);
1263
1263
  }, o) : o(C, R);
1264
1264
  }, o);
1265
1265
  }
1266
- function ot(n, c) {
1266
+ function st(n, c) {
1267
1267
  var a = this;
1268
1268
  n = r(n);
1269
1269
  var m = new d(function(v, o) {
@@ -1281,7 +1281,7 @@ var at = { exports: {} };
1281
1281
  });
1282
1282
  return h(m, c), m;
1283
1283
  }
1284
- function dt(n, c) {
1284
+ function ot(n, c) {
1285
1285
  var a = this, m = new d(function(v, o) {
1286
1286
  a.ready().then(function() {
1287
1287
  var C = a._dbInfo;
@@ -1303,7 +1303,7 @@ var at = { exports: {} };
1303
1303
  });
1304
1304
  return h(m, c), m;
1305
1305
  }
1306
- function Br(n, c, a, m) {
1306
+ function Ur(n, c, a, m) {
1307
1307
  var v = this;
1308
1308
  n = r(n);
1309
1309
  var o = new d(function(C, R) {
@@ -1320,7 +1320,7 @@ var at = { exports: {} };
1320
1320
  }, function(Z) {
1321
1321
  if (Z.code === Z.QUOTA_ERR) {
1322
1322
  if (m > 0) {
1323
- C(Br.apply(v, [n, B, a, m - 1]));
1323
+ C(Ur.apply(v, [n, B, a, m - 1]));
1324
1324
  return;
1325
1325
  }
1326
1326
  R(Z);
@@ -1331,10 +1331,10 @@ var at = { exports: {} };
1331
1331
  });
1332
1332
  return h(o, a), o;
1333
1333
  }
1334
- function ht(n, c, a) {
1335
- return Br.apply(this, [n, c, a, 1]);
1334
+ function dt(n, c, a) {
1335
+ return Ur.apply(this, [n, c, a, 1]);
1336
1336
  }
1337
- function mt(n, c) {
1337
+ function ht(n, c) {
1338
1338
  var a = this;
1339
1339
  n = r(n);
1340
1340
  var m = new d(function(v, o) {
@@ -1351,7 +1351,7 @@ var at = { exports: {} };
1351
1351
  });
1352
1352
  return h(m, c), m;
1353
1353
  }
1354
- function vt(n) {
1354
+ function mt(n) {
1355
1355
  var c = this, a = new d(function(m, v) {
1356
1356
  c.ready().then(function() {
1357
1357
  var o = c._dbInfo;
@@ -1366,7 +1366,7 @@ var at = { exports: {} };
1366
1366
  });
1367
1367
  return h(a, n), a;
1368
1368
  }
1369
- function gt(n) {
1369
+ function vt(n) {
1370
1370
  var c = this, a = new d(function(m, v) {
1371
1371
  c.ready().then(function() {
1372
1372
  var o = c._dbInfo;
@@ -1382,7 +1382,7 @@ var at = { exports: {} };
1382
1382
  });
1383
1383
  return h(a, n), a;
1384
1384
  }
1385
- function yt(n, c) {
1385
+ function gt(n, c) {
1386
1386
  var a = this, m = new d(function(v, o) {
1387
1387
  a.ready().then(function() {
1388
1388
  var C = a._dbInfo;
@@ -1398,7 +1398,7 @@ var at = { exports: {} };
1398
1398
  });
1399
1399
  return h(m, c), m;
1400
1400
  }
1401
- function wt(n) {
1401
+ function yt(n) {
1402
1402
  var c = this, a = new d(function(m, v) {
1403
1403
  c.ready().then(function() {
1404
1404
  var o = c._dbInfo;
@@ -1415,7 +1415,7 @@ var at = { exports: {} };
1415
1415
  });
1416
1416
  return h(a, n), a;
1417
1417
  }
1418
- function bt(n) {
1418
+ function wt(n) {
1419
1419
  return new d(function(c, a) {
1420
1420
  n.transaction(function(m) {
1421
1421
  m.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'", [], function(v, o) {
@@ -1433,7 +1433,7 @@ var at = { exports: {} };
1433
1433
  });
1434
1434
  });
1435
1435
  }
1436
- function St(n, c) {
1436
+ function bt(n, c) {
1437
1437
  c = y.apply(this, arguments);
1438
1438
  var a = this.config();
1439
1439
  n = typeof n != "function" && n || {}, n.name || (n.name = n.name || a.name, n.storeName = n.storeName || a.storeName);
@@ -1443,7 +1443,7 @@ var at = { exports: {} };
1443
1443
  n.name === a.name ? C = m._dbInfo.db : C = openDatabase(n.name, "", "", 0), n.storeName ? o({
1444
1444
  db: C,
1445
1445
  storeNames: [n.storeName]
1446
- }) : o(bt(C));
1446
+ }) : o(wt(C));
1447
1447
  }).then(function(o) {
1448
1448
  return new d(function(C, R) {
1449
1449
  o.db.transaction(function(B) {
@@ -1451,8 +1451,8 @@ var at = { exports: {} };
1451
1451
  return new d(function(re, ue) {
1452
1452
  B.executeSql("DROP TABLE IF EXISTS " + p, [], function() {
1453
1453
  re();
1454
- }, function(le, ge) {
1455
- ue(ge);
1454
+ }, function(le, ye) {
1455
+ ue(ye);
1456
1456
  });
1457
1457
  });
1458
1458
  }
@@ -1469,21 +1469,21 @@ var at = { exports: {} };
1469
1469
  });
1470
1470
  }) : v = d.reject("Invalid arguments"), h(v, c), v;
1471
1471
  }
1472
- var At = {
1472
+ var St = {
1473
1473
  _driver: "webSQLStorage",
1474
- _initStorage: st,
1474
+ _initStorage: ft,
1475
1475
  _support: ur(),
1476
- iterate: dt,
1477
- getItem: ot,
1478
- setItem: ht,
1479
- removeItem: mt,
1480
- clear: vt,
1481
- length: gt,
1482
- key: yt,
1483
- keys: wt,
1484
- dropInstance: St
1476
+ iterate: ot,
1477
+ getItem: st,
1478
+ setItem: dt,
1479
+ removeItem: ht,
1480
+ clear: mt,
1481
+ length: vt,
1482
+ key: gt,
1483
+ keys: yt,
1484
+ dropInstance: bt
1485
1485
  };
1486
- function Et() {
1486
+ function At() {
1487
1487
  try {
1488
1488
  return typeof localStorage < "u" && "setItem" in localStorage && // in IE8 typeof localStorage.setItem === 'object'
1489
1489
  !!localStorage.setItem;
@@ -1491,11 +1491,11 @@ var at = { exports: {} };
1491
1491
  return !1;
1492
1492
  }
1493
1493
  }
1494
- function $r(n, c) {
1494
+ function Br(n, c) {
1495
1495
  var a = n.name + "/";
1496
1496
  return n.storeName !== c.storeName && (a += n.storeName + "/"), a;
1497
1497
  }
1498
- function It() {
1498
+ function Et() {
1499
1499
  var n = "_localforage_support_test";
1500
1500
  try {
1501
1501
  return localStorage.setItem(n, !0), localStorage.removeItem(n), !1;
@@ -1503,17 +1503,17 @@ var at = { exports: {} };
1503
1503
  return !0;
1504
1504
  }
1505
1505
  }
1506
- function Dt() {
1507
- return !It() || localStorage.length > 0;
1506
+ function It() {
1507
+ return !Et() || localStorage.length > 0;
1508
1508
  }
1509
- function xt(n) {
1509
+ function Dt(n) {
1510
1510
  var c = this, a = {};
1511
1511
  if (n)
1512
1512
  for (var m in n)
1513
1513
  a[m] = n[m];
1514
- return a.keyPrefix = $r(n, c._defaultConfig), Dt() ? (c._dbInfo = a, a.serializer = cr, d.resolve()) : d.reject();
1514
+ return a.keyPrefix = Br(n, c._defaultConfig), It() ? (c._dbInfo = a, a.serializer = cr, d.resolve()) : d.reject();
1515
1515
  }
1516
- function _t(n) {
1516
+ function xt(n) {
1517
1517
  var c = this, a = c.ready().then(function() {
1518
1518
  for (var m = c._dbInfo.keyPrefix, v = localStorage.length - 1; v >= 0; v--) {
1519
1519
  var o = localStorage.key(v);
@@ -1531,7 +1531,7 @@ var at = { exports: {} };
1531
1531
  });
1532
1532
  return h(m, c), m;
1533
1533
  }
1534
- function Ct(n, c) {
1534
+ function _t(n, c) {
1535
1535
  var a = this, m = a.ready().then(function() {
1536
1536
  for (var v = a._dbInfo, o = v.keyPrefix, C = o.length, R = localStorage.length, B = 1, F = 0; F < R; F++) {
1537
1537
  var k = localStorage.key(F);
@@ -1544,7 +1544,7 @@ var at = { exports: {} };
1544
1544
  });
1545
1545
  return h(m, c), m;
1546
1546
  }
1547
- function Pt(n, c) {
1547
+ function Ct(n, c) {
1548
1548
  var a = this, m = a.ready().then(function() {
1549
1549
  var v = a._dbInfo, o;
1550
1550
  try {
@@ -1556,7 +1556,7 @@ var at = { exports: {} };
1556
1556
  });
1557
1557
  return h(m, c), m;
1558
1558
  }
1559
- function Nt(n) {
1559
+ function Pt(n) {
1560
1560
  var c = this, a = c.ready().then(function() {
1561
1561
  for (var m = c._dbInfo, v = localStorage.length, o = [], C = 0; C < v; C++) {
1562
1562
  var R = localStorage.key(C);
@@ -1566,13 +1566,13 @@ var at = { exports: {} };
1566
1566
  });
1567
1567
  return h(a, n), a;
1568
1568
  }
1569
- function Mt(n) {
1569
+ function Nt(n) {
1570
1570
  var c = this, a = c.keys().then(function(m) {
1571
1571
  return m.length;
1572
1572
  });
1573
1573
  return h(a, n), a;
1574
1574
  }
1575
- function Lt(n, c) {
1575
+ function Mt(n, c) {
1576
1576
  var a = this;
1577
1577
  n = r(n);
1578
1578
  var m = a.ready().then(function() {
@@ -1581,7 +1581,7 @@ var at = { exports: {} };
1581
1581
  });
1582
1582
  return h(m, c), m;
1583
1583
  }
1584
- function Rt(n, c, a) {
1584
+ function Lt(n, c, a) {
1585
1585
  var m = this;
1586
1586
  n = r(n);
1587
1587
  var v = m.ready().then(function() {
@@ -1603,14 +1603,14 @@ var at = { exports: {} };
1603
1603
  });
1604
1604
  return h(v, a), v;
1605
1605
  }
1606
- function Ut(n, c) {
1606
+ function Rt(n, c) {
1607
1607
  if (c = y.apply(this, arguments), n = typeof n != "function" && n || {}, !n.name) {
1608
1608
  var a = this.config();
1609
1609
  n.name = n.name || a.name, n.storeName = n.storeName || a.storeName;
1610
1610
  }
1611
1611
  var m = this, v;
1612
1612
  return n.name ? v = new d(function(o) {
1613
- n.storeName ? o($r(n, m._defaultConfig)) : o(n.name + "/");
1613
+ n.storeName ? o(Br(n, m._defaultConfig)) : o(n.name + "/");
1614
1614
  }).then(function(o) {
1615
1615
  for (var C = localStorage.length - 1; C >= 0; C--) {
1616
1616
  var R = localStorage.key(C);
@@ -1618,37 +1618,37 @@ var at = { exports: {} };
1618
1618
  }
1619
1619
  }) : v = d.reject("Invalid arguments"), h(v, c), v;
1620
1620
  }
1621
- var Bt = {
1621
+ var Ut = {
1622
1622
  _driver: "localStorageWrapper",
1623
- _initStorage: xt,
1624
- _support: Et(),
1625
- iterate: Ct,
1623
+ _initStorage: Dt,
1624
+ _support: At(),
1625
+ iterate: _t,
1626
1626
  getItem: Tt,
1627
- setItem: Rt,
1628
- removeItem: Lt,
1629
- clear: _t,
1630
- length: Mt,
1631
- key: Pt,
1632
- keys: Nt,
1633
- dropInstance: Ut
1634
- }, $t = function(c, a) {
1627
+ setItem: Lt,
1628
+ removeItem: Mt,
1629
+ clear: xt,
1630
+ length: Nt,
1631
+ key: Ct,
1632
+ keys: Pt,
1633
+ dropInstance: Rt
1634
+ }, Bt = function(c, a) {
1635
1635
  return c === a || typeof c == "number" && typeof a == "number" && isNaN(c) && isNaN(a);
1636
- }, Ft = function(c, a) {
1636
+ }, $t = function(c, a) {
1637
1637
  for (var m = c.length, v = 0; v < m; ) {
1638
- if ($t(c[v], a))
1638
+ if (Bt(c[v], a))
1639
1639
  return !0;
1640
1640
  v++;
1641
1641
  }
1642
1642
  return !1;
1643
- }, Fr = Array.isArray || function(n) {
1643
+ }, $r = Array.isArray || function(n) {
1644
1644
  return Object.prototype.toString.call(n) === "[object Array]";
1645
- }, He = {}, kr = {}, ke = {
1645
+ }, Ve = {}, Fr = {}, ke = {
1646
1646
  INDEXEDDB: lr,
1647
- WEBSQL: At,
1648
- LOCALSTORAGE: Bt
1649
- }, kt = [ke.INDEXEDDB._driver, ke.WEBSQL._driver, ke.LOCALSTORAGE._driver], Ke = ["dropInstance"], fr = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Ke), Gt = {
1647
+ WEBSQL: St,
1648
+ LOCALSTORAGE: Ut
1649
+ }, Ft = [ke.INDEXEDDB._driver, ke.WEBSQL._driver, ke.LOCALSTORAGE._driver], Ke = ["dropInstance"], fr = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Ke), kt = {
1650
1650
  description: "",
1651
- driver: kt.slice(),
1651
+ driver: Ft.slice(),
1652
1652
  name: "localforage",
1653
1653
  // Default DB size is _JUST UNDER_ 5MB, as it's the highest size
1654
1654
  // we can use without a prompt.
@@ -1656,7 +1656,7 @@ var at = { exports: {} };
1656
1656
  storeName: "keyvaluepairs",
1657
1657
  version: 1
1658
1658
  };
1659
- function Wt(n, c) {
1659
+ function Gt(n, c) {
1660
1660
  n[c] = function() {
1661
1661
  var a = arguments;
1662
1662
  return n.ready().then(function() {
@@ -1669,19 +1669,19 @@ var at = { exports: {} };
1669
1669
  var c = arguments[n];
1670
1670
  if (c)
1671
1671
  for (var a in c)
1672
- c.hasOwnProperty(a) && (Fr(c[a]) ? arguments[0][a] = c[a].slice() : arguments[0][a] = c[a]);
1672
+ c.hasOwnProperty(a) && ($r(c[a]) ? arguments[0][a] = c[a].slice() : arguments[0][a] = c[a]);
1673
1673
  }
1674
1674
  return arguments[0];
1675
1675
  }
1676
- var qt = function() {
1676
+ var Wt = function() {
1677
1677
  function n(c) {
1678
1678
  x(this, n);
1679
1679
  for (var a in ke)
1680
1680
  if (ke.hasOwnProperty(a)) {
1681
1681
  var m = ke[a], v = m._driver;
1682
- this[a] = v, He[v] || this.defineDriver(m);
1682
+ this[a] = v, Ve[v] || this.defineDriver(m);
1683
1683
  }
1684
- this._defaultConfig = sr({}, Gt), this._config = sr({}, this._defaultConfig, c), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
1684
+ this._defaultConfig = sr({}, kt), this._config = sr({}, this._defaultConfig, c), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
1685
1685
  });
1686
1686
  }
1687
1687
  return n.prototype.config = function(a) {
@@ -1705,17 +1705,17 @@ var at = { exports: {} };
1705
1705
  return;
1706
1706
  }
1707
1707
  for (var k = fr.concat("_initStorage"), q = 0, Z = k.length; q < Z; q++) {
1708
- var p = k[q], re = !Ft(Ke, p);
1708
+ var p = k[q], re = !$t(Ke, p);
1709
1709
  if ((re || a[p]) && typeof a[p] != "function") {
1710
1710
  R(F);
1711
1711
  return;
1712
1712
  }
1713
1713
  }
1714
1714
  var ue = function() {
1715
- for (var ze = function(zt) {
1715
+ for (var ze = function(Vt) {
1716
1716
  return function() {
1717
- var Yt = new Error("Method " + zt + " is not implemented by the current driver"), Gr = d.reject(Yt);
1718
- return h(Gr, arguments[arguments.length - 1]), Gr;
1717
+ var zt = new Error("Method " + Vt + " is not implemented by the current driver"), kr = d.reject(zt);
1718
+ return h(kr, arguments[arguments.length - 1]), kr;
1719
1719
  };
1720
1720
  }, or = 0, Ht = Ke.length; or < Ht; or++) {
1721
1721
  var dr = Ke[or];
@@ -1724,18 +1724,18 @@ var at = { exports: {} };
1724
1724
  };
1725
1725
  ue();
1726
1726
  var le = function(ze) {
1727
- He[B] && console.info("Redefining LocalForage driver: " + B), He[B] = a, kr[B] = ze, C();
1727
+ Ve[B] && console.info("Redefining LocalForage driver: " + B), Ve[B] = a, Fr[B] = ze, C();
1728
1728
  };
1729
1729
  "_support" in a ? a._support && typeof a._support == "function" ? a._support().then(le, R) : le(!!a._support) : le(!0);
1730
- } catch (ge) {
1731
- R(ge);
1730
+ } catch (ye) {
1731
+ R(ye);
1732
1732
  }
1733
1733
  });
1734
1734
  return u(o, m, v), o;
1735
1735
  }, n.prototype.driver = function() {
1736
1736
  return this._driver || null;
1737
1737
  }, n.prototype.getDriver = function(a, m, v) {
1738
- var o = He[a] ? d.resolve(He[a]) : d.reject(new Error("Driver not found."));
1738
+ var o = Ve[a] ? d.resolve(Ve[a]) : d.reject(new Error("Driver not found."));
1739
1739
  return u(o, m, v), o;
1740
1740
  }, n.prototype.getSerializer = function(a) {
1741
1741
  var m = d.resolve(cr);
@@ -1747,7 +1747,7 @@ var at = { exports: {} };
1747
1747
  return u(v, a, a), v;
1748
1748
  }, n.prototype.setDriver = function(a, m, v) {
1749
1749
  var o = this;
1750
- Fr(a) || (a = [a]);
1750
+ $r(a) || (a = [a]);
1751
1751
  var C = this._getSupportedDrivers(a);
1752
1752
  function R() {
1753
1753
  o._config.driver = o.driver();
@@ -1784,7 +1784,7 @@ var at = { exports: {} };
1784
1784
  return o._driverSet = d.reject(q), o._driverSet;
1785
1785
  }), u(this._driverSet, m, v), this._driverSet;
1786
1786
  }, n.prototype.supports = function(a) {
1787
- return !!kr[a];
1787
+ return !!Fr[a];
1788
1788
  }, n.prototype._extend = function(a) {
1789
1789
  sr(this, a);
1790
1790
  }, n.prototype._getSupportedDrivers = function(a) {
@@ -1795,63 +1795,62 @@ var at = { exports: {} };
1795
1795
  return m;
1796
1796
  }, n.prototype._wrapLibraryMethodsWithReady = function() {
1797
1797
  for (var a = 0, m = fr.length; a < m; a++)
1798
- Wt(this, fr[a]);
1798
+ Gt(this, fr[a]);
1799
1799
  }, n.prototype.createInstance = function(a) {
1800
1800
  return new n(a);
1801
1801
  }, n;
1802
- }(), Vt = new qt();
1803
- S.exports = Vt;
1802
+ }(), qt = new Wt();
1803
+ S.exports = qt;
1804
1804
  }, { 3: 3 }] }, {}, [4])(4);
1805
1805
  });
1806
- })(at);
1807
- var gn = at.exports;
1808
- const lt = /* @__PURE__ */ tn(gn);
1809
- var Rr = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
1810
- let ye;
1811
- function ut() {
1812
- const e = Rr.VITE_NODE_ENV;
1813
- return ye == null ? e : (ye[e] ?? ye.development).localDbName ?? e;
1806
+ })(nt);
1807
+ var vn = nt.exports;
1808
+ const at = /* @__PURE__ */ rn(vn);
1809
+ let oe;
1810
+ function lt() {
1811
+ const e = oe.getEnv();
1812
+ return oe == null ? e : (oe[e] ?? oe.development).localDbName ?? e;
1814
1813
  }
1815
- function qr() {
1816
- const e = Rr.VITE_NODE_ENV;
1817
- return console.log(`env var: ${e}`), ye == null ? "" : (ye[e] ?? ye.development).auth ?? "";
1814
+ function Wr() {
1815
+ const e = oe.getEnv();
1816
+ return console.log(`env var: ${e}`), oe == null ? "" : (oe[e] ?? oe.development).auth ?? "";
1818
1817
  }
1819
- function yn(e) {
1820
- const t = Rr.VITE_NODE_ENV;
1821
- if (ye == null)
1818
+ function gn(e) {
1819
+ const t = oe.getEnv();
1820
+ if (oe == null)
1822
1821
  return "";
1823
- const l = ye[t] ?? ye.development;
1822
+ const l = oe[t] ?? oe.development;
1824
1823
  return e == null ? l.data ?? "" : l.other[e] ?? l.data ?? "";
1825
1824
  }
1826
- function ma() {
1827
- return ye;
1825
+ function ha() {
1826
+ return oe;
1828
1827
  }
1829
- function wn(e) {
1830
- return ye = e, ye;
1828
+ function yn(e) {
1829
+ return oe = e, oe;
1831
1830
  }
1832
1831
  let Oe = null;
1833
- lt.config({
1834
- name: ut()
1832
+ at.config({
1833
+ name: lt()
1835
1834
  });
1836
- function me() {
1837
- const e = ut();
1838
- return (Oe == null || Oe.config.name != e) && (Oe = lt.createInstance({ name: e })), Oe;
1835
+ function ve() {
1836
+ const e = lt();
1837
+ return (Oe == null || Oe.config.name != e) && (Oe = at.createInstance({ name: e })), Oe;
1839
1838
  }
1840
- function va() {
1839
+ function ma() {
1841
1840
  async function e(s) {
1842
- const g = me();
1843
- (await g.keys()).filter((T) => T.startsWith(s)).forEach((T) => {
1844
- g.removeItem(T);
1841
+ const g = ve();
1842
+ (await g.keys()).filter((_) => _.startsWith(s)).forEach((_) => {
1843
+ g.removeItem(_);
1845
1844
  });
1846
1845
  }
1847
1846
  async function t(s) {
1848
- return await me().getItem(s);
1847
+ return await ve().getItem(s);
1849
1848
  }
1850
1849
  async function l(s) {
1851
- return await me().removeItem(s);
1850
+ return await ve().removeItem(s);
1852
1851
  }
1853
1852
  async function S(s, g) {
1854
- await me().setItem(g, s);
1853
+ await ve().setItem(g, s);
1855
1854
  }
1856
1855
  return {
1857
1856
  clearAsync: e,
@@ -1861,34 +1860,34 @@ function va() {
1861
1860
  };
1862
1861
  }
1863
1862
  let er;
1864
- function ga(e) {
1863
+ function va(e) {
1865
1864
  return er(e)();
1866
1865
  }
1867
1866
  function Le(e) {
1868
1867
  return er(e);
1869
1868
  }
1870
- function bn(e) {
1871
- return er = (t) => Sn({
1869
+ function wn(e) {
1870
+ return er = (t) => bn({
1872
1871
  ...e,
1873
1872
  ...t
1874
1873
  }), er;
1875
1874
  }
1876
- function Sn(e) {
1875
+ function bn(e) {
1877
1876
  var t, l, S, s, g;
1878
1877
  if (e.storeMode ?? (e.storeMode = ((l = (t = e.navigation) == null ? void 0 : t.findItem(e.nav)) == null ? void 0 : l.storeMode) ?? "session"), e.storageMode ?? (e.storageMode = ((s = (S = e.navigation) == null ? void 0 : S.findItem(e.nav)) == null ? void 0 : s.storageMode) ?? "local-cache"), e.storeName ?? (e.storeName = ((g = e.navigation) == null ? void 0 : g.findStoreName(e.nav)) ?? e.nav), e.storeName == null)
1879
1878
  throw new Error("no store name provided");
1880
1879
  if (e.storeMode == "whole-last-updated") {
1881
1880
  if (e.api == null)
1882
1881
  throw new Error("Must supply an api object to use store");
1883
- return Vr({ ...e, storeName: e.storeName ?? "" });
1882
+ return qr({ ...e, storeName: e.storeName ?? "" });
1884
1883
  } else if (e.storeMode == "partial-last-updated") {
1885
1884
  if (e.api == null)
1886
1885
  throw new Error("Must supply an api object to use store");
1887
- return Vr({ ...e, storeName: e.storeName ?? "" });
1886
+ return qr({ ...e, storeName: e.storeName ?? "" });
1888
1887
  } else
1889
- return En({ ...e, storeName: e.storeName ?? "" });
1888
+ return An({ ...e, storeName: e.storeName ?? "" });
1890
1889
  }
1891
- const An = (e) => {
1890
+ const Sn = (e) => {
1892
1891
  let t = K(e.url) ?? void 0;
1893
1892
  if (e.additionalUrl != null && (t == null ? t = e.additionalUrl : t = Be(t, e.additionalUrl)), e.id != null && (t != null && t.includes("{id}") ? t = t.replaceAll("{id}", e.id) : t = Be(t, e.id)), e.params != null) {
1894
1893
  t ?? (t = "");
@@ -1899,10 +1898,10 @@ const An = (e) => {
1899
1898
  }
1900
1899
  return e.finalUrl = t, e.finalUrl ?? "";
1901
1900
  };
1902
- function En(e) {
1903
- return et(e.storeName, () => {
1901
+ function An(e) {
1902
+ return pr(e.storeName, () => {
1904
1903
  var u;
1905
- const t = de.utc().toSeconds() / 86400, l = z({}), S = z({}), s = e.storageMode == "local-cache", g = e.buildUrl ?? ((u = e.api) == null ? void 0 : u.buildUrl) ?? An;
1904
+ const t = he.utc().toSeconds() / 86400, l = z({}), S = z({}), s = e.storageMode == "local-cache", g = e.buildUrl ?? ((u = e.api) == null ? void 0 : u.buildUrl) ?? Sn;
1906
1905
  function x(r) {
1907
1906
  var i, E;
1908
1907
  let y = "";
@@ -1915,7 +1914,7 @@ function En(e) {
1915
1914
  if (!I && l.value[y] !== void 0)
1916
1915
  return l.value[y];
1917
1916
  if (!I && s == !0) {
1918
- const i = await me().getItem(y);
1917
+ const i = await ve().getItem(y);
1919
1918
  if (i != null && (e.api == null || parseFloat(i.meta.storedOn) > t - 7))
1920
1919
  return l.value[y] = i, i;
1921
1920
  }
@@ -1926,15 +1925,15 @@ function En(e) {
1926
1925
  i == null && (i = new Promise(async (w, M) => {
1927
1926
  var b;
1928
1927
  try {
1929
- const _ = await ((b = e.api) == null ? void 0 : b.getAll(r)), D = {
1928
+ const T = await ((b = e.api) == null ? void 0 : b.getAll(r)), D = {
1930
1929
  meta: { storedOn: t.toString() },
1931
- data: _ == null ? void 0 : _.data,
1932
- count: _ == null ? void 0 : _.count,
1933
- filters: (_ == null ? void 0 : _.filters) ?? []
1930
+ data: T == null ? void 0 : T.data,
1931
+ count: T == null ? void 0 : T.count,
1932
+ filters: (T == null ? void 0 : T.filters) ?? []
1934
1933
  };
1935
- s == !0 && await me().setItem(y, D), w(D);
1936
- } catch (_) {
1937
- M(_);
1934
+ s == !0 && await ve().setItem(y, D), w(D);
1935
+ } catch (T) {
1936
+ M(T);
1938
1937
  } finally {
1939
1938
  delete S.value[y];
1940
1939
  }
@@ -1949,13 +1948,13 @@ function En(e) {
1949
1948
  throw i;
1950
1949
  }
1951
1950
  }
1952
- async function T(r) {
1951
+ async function _(r) {
1953
1952
  r.additionalUrl ?? (r.additionalUrl = "/get"), g(r);
1954
1953
  const y = x(r), I = r.refresh;
1955
1954
  if (!I && l.value[y] !== void 0)
1956
1955
  return l.value[y];
1957
1956
  if (!I && s == !0) {
1958
- const i = await me().getItem(y);
1957
+ const i = await ve().getItem(y);
1959
1958
  if (i != null && (e.api == null || parseFloat(i.meta.storedOn) > t - 7))
1960
1959
  return l.value[y] = i, { data: i.data };
1961
1960
  }
@@ -1966,14 +1965,14 @@ function En(e) {
1966
1965
  i == null && (i = new Promise(async (w, M) => {
1967
1966
  var b;
1968
1967
  try {
1969
- let _ = await ((b = e.api) == null ? void 0 : b.get(r));
1968
+ let T = await ((b = e.api) == null ? void 0 : b.get(r));
1970
1969
  const D = {
1971
1970
  meta: { storedOn: t.toString() },
1972
- data: _ == null ? void 0 : _.data
1971
+ data: T == null ? void 0 : T.data
1973
1972
  };
1974
- s == !0 && await me().setItem(y, D), w(D);
1975
- } catch (_) {
1976
- M(_);
1973
+ s == !0 && await ve().setItem(y, D), w(D);
1974
+ } catch (T) {
1975
+ M(T);
1977
1976
  } finally {
1978
1977
  delete S.value[y];
1979
1978
  }
@@ -2003,12 +2002,12 @@ function En(e) {
2003
2002
  meta: { storedOn: t.toString() },
2004
2003
  data: { ...(i = l.value[y]) == null ? void 0 : i.data, ...I }
2005
2004
  };
2006
- return l.value[y] = E, s == !0 && await me().setItem(y, E), I.id != null && I.rowVersion != null && Object.entries(l.value).forEach((M) => {
2005
+ return l.value[y] = E, s == !0 && await ve().setItem(y, E), I.id != null && I.rowVersion != null && Object.entries(l.value).forEach((M) => {
2007
2006
  const b = M[1].data;
2008
2007
  if (b != null)
2009
2008
  if (Array.isArray(b))
2010
- for (let _ = 0; _ < b.length; _++)
2011
- b[_].id == I.id && b.splice(_, 1, E.data);
2009
+ for (let T = 0; T < b.length; T++)
2010
+ b[T].id == I.id && b.splice(T, 1, E.data);
2012
2011
  else
2013
2012
  b.id == I.id && (l.value[M[0]] = E);
2014
2013
  }), E.data;
@@ -2033,7 +2032,7 @@ function En(e) {
2033
2032
  meta: { storedOn: t.toString() },
2034
2033
  data: I
2035
2034
  };
2036
- return s == !0 && await me().setItem(y, i), l.value[y] = i, i.data;
2035
+ return s == !0 && await ve().setItem(y, i), l.value[y] = i, i.data;
2037
2036
  }
2038
2037
  return I;
2039
2038
  }
@@ -2059,7 +2058,7 @@ function En(e) {
2059
2058
  M[b].id == I && M.splice(b, 1);
2060
2059
  else
2061
2060
  delete l.value[w[0]];
2062
- }), s == !0 && await me().removeItem(y);
2061
+ }), s == !0 && await ve().removeItem(y);
2063
2062
  }
2064
2063
  async function h(r) {
2065
2064
  if (r.additionalUrl ?? (r.additionalUrl = `/patch/restore?id=${r.data.id}`), g(r), e.api != null)
@@ -2072,7 +2071,7 @@ function En(e) {
2072
2071
  }
2073
2072
  return {
2074
2073
  deleteItem: d,
2075
- get: T,
2074
+ get: _,
2076
2075
  getAll: P,
2077
2076
  patch: N,
2078
2077
  post: $,
@@ -2082,15 +2081,15 @@ function En(e) {
2082
2081
  };
2083
2082
  });
2084
2083
  }
2085
- function Vr(e) {
2086
- return et(e.storeName, () => {
2087
- const t = z(), l = z(0), S = de.utc().toSeconds() / 3600, s = z(), g = z(), x = z({}), P = e.storageMode == "local-cache";
2088
- function T() {
2084
+ function qr(e) {
2085
+ return pr(e.storeName, () => {
2086
+ const t = z(), l = z(0), S = he.utc().toSeconds() / 3600, s = z(), g = z(), x = z({}), P = e.storageMode == "local-cache";
2087
+ function _() {
2089
2088
  var i;
2090
2089
  return `${e.storeName}_${((i = e.auth) == null ? void 0 : i.credentials.value.userID) ?? "no-user-id"}`;
2091
2090
  }
2092
2091
  async function N() {
2093
- P == !0 && await me().setItem(T(), {
2092
+ P == !0 && await ve().setItem(_(), {
2094
2093
  meta: g.value,
2095
2094
  data: t.value,
2096
2095
  count: l.value,
@@ -2098,15 +2097,15 @@ function Vr(e) {
2098
2097
  });
2099
2098
  }
2100
2099
  function $(i) {
2101
- const E = T();
2100
+ const E = _();
2102
2101
  return x.value[E] || (x.value[E] = new Promise(async (w, M) => {
2103
- var b, _;
2102
+ var b, T;
2104
2103
  try {
2105
- let D = await ((_ = e.api) == null ? void 0 : _.getAll({
2104
+ let D = await ((T = e.api) == null ? void 0 : T.getAll({
2106
2105
  additionalUrl: "/getAll",
2107
2106
  nav: i.nav,
2108
2107
  params: {
2109
- lastUpdate: ((b = g.value) == null ? void 0 : b.lastUpdate) ?? un()
2108
+ lastUpdate: ((b = g.value) == null ? void 0 : b.lastUpdate) ?? ln()
2110
2109
  }
2111
2110
  }));
2112
2111
  D == null ? M(D) : (t.value ?? (t.value = []), D.data.forEach((L) => {
@@ -2114,7 +2113,7 @@ function Vr(e) {
2114
2113
  const f = t.value.findIndex((Q) => Q.id == L.id);
2115
2114
  f >= 0 ? (A = t.value) == null || A.splice(f, 1, L) : (J = t.value) == null || J.push(L);
2116
2115
  }), l.value = t.value.length, g.value = {
2117
- lastUpdate: de.utc().toString(),
2116
+ lastUpdate: he.utc().toString(),
2118
2117
  storedOn: S.toString()
2119
2118
  }, await N(), w(D));
2120
2119
  } catch (D) {
@@ -2125,8 +2124,8 @@ function Vr(e) {
2125
2124
  })), x.value[E];
2126
2125
  }
2127
2126
  async function d(i) {
2128
- var M, b, _;
2129
- const E = T(), w = i.refresh;
2127
+ var M, b, T;
2128
+ const E = _(), w = i.refresh;
2130
2129
  if (!w && t.value != null)
2131
2130
  return {
2132
2131
  count: (M = t.value) == null ? void 0 : M.length,
@@ -2134,7 +2133,7 @@ function Vr(e) {
2134
2133
  filters: []
2135
2134
  };
2136
2135
  if (!w && P == !0) {
2137
- const D = await me().getItem(E);
2136
+ const D = await ve().getItem(E);
2138
2137
  if (D != null && parseFloat(D.meta.storedOn) > S - 7)
2139
2138
  return t.value = D.data, l.value = D.data.length, s.value = D.filters ?? [], g.value = D.meta, {
2140
2139
  count: (b = t.value) == null ? void 0 : b.length,
@@ -2144,7 +2143,7 @@ function Vr(e) {
2144
2143
  }
2145
2144
  if (e.api == null)
2146
2145
  return {
2147
- count: (_ = t.value) == null ? void 0 : _.length,
2146
+ count: (T = t.value) == null ? void 0 : T.length,
2148
2147
  data: t.value ?? [],
2149
2148
  filters: s.value
2150
2149
  };
@@ -2157,8 +2156,8 @@ function Vr(e) {
2157
2156
  }
2158
2157
  }
2159
2158
  async function h(i) {
2160
- var b, _, D, L;
2161
- const E = T(), w = i.id ?? ((b = i.data) == null ? void 0 : b.id);
2159
+ var b, T, D, L;
2160
+ const E = _(), w = i.id ?? ((b = i.data) == null ? void 0 : b.id);
2162
2161
  if (w == null)
2163
2162
  throw new Error("no id provided");
2164
2163
  let M = i.refresh;
@@ -2168,10 +2167,10 @@ function Vr(e) {
2168
2167
  return { data: f };
2169
2168
  }
2170
2169
  if (!M && P == !0) {
2171
- const f = await me().getItem(E);
2170
+ const f = await ve().getItem(E);
2172
2171
  if (f != null && parseFloat(f.meta.storedOn) > S - 12) {
2173
2172
  t.value = f.data, l.value = f.data.length, s.value = f.filters ?? [], g.value = f.meta;
2174
- let A = (_ = t.value) == null ? void 0 : _.find((J) => J.id == i.id);
2173
+ let A = (T = t.value) == null ? void 0 : T.find((J) => J.id == i.id);
2175
2174
  if (A != null)
2176
2175
  return { data: A };
2177
2176
  }
@@ -2194,19 +2193,19 @@ function Vr(e) {
2194
2193
  let E;
2195
2194
  if (e.api != null)
2196
2195
  try {
2197
- let _ = await e.api.patch(i);
2198
- E = { ...i.data, ..._ == null ? void 0 : _.data };
2199
- } catch (_) {
2200
- let D = _;
2196
+ let T = await e.api.patch(i);
2197
+ E = { ...i.data, ...T == null ? void 0 : T.data };
2198
+ } catch (T) {
2199
+ let D = T;
2201
2200
  throw new Error(D.message ?? "Patch Problem");
2202
2201
  }
2203
2202
  else
2204
2203
  E = i.data;
2205
2204
  if (E != null) {
2206
- let _ = (w = t.value) == null ? void 0 : w.findIndex((D) => D.id == E.id);
2207
- _ != null && _ >= 0 && (t.value ?? (t.value = []), (M = t.value) == null || M.splice(_, 1, E), await N());
2205
+ let T = (w = t.value) == null ? void 0 : w.findIndex((D) => D.id == E.id);
2206
+ T != null && T >= 0 && (t.value ?? (t.value = []), (M = t.value) == null || M.splice(T, 1, E), await N());
2208
2207
  }
2209
- return (b = t.value) == null ? void 0 : b.find((_) => _.id == (i.id ?? i.data.id));
2208
+ return (b = t.value) == null ? void 0 : b.find((T) => T.id == (i.id ?? i.data.id));
2210
2209
  }
2211
2210
  async function r(i) {
2212
2211
  var w, M;
@@ -2217,8 +2216,8 @@ function Vr(e) {
2217
2216
  let b = await e.api.post(i);
2218
2217
  E = b == null ? void 0 : b.data;
2219
2218
  } catch (b) {
2220
- let _ = b;
2221
- throw new Error(_.message ?? "Patch Problem");
2219
+ let T = b;
2220
+ throw new Error(T.message ?? "Patch Problem");
2222
2221
  }
2223
2222
  else
2224
2223
  E = i.data;
@@ -2232,12 +2231,12 @@ function Vr(e) {
2232
2231
  if (b != null)
2233
2232
  return b;
2234
2233
  } catch (b) {
2235
- let _ = b;
2236
- throw new Error(_.message ?? "Patch Problem");
2234
+ let T = b;
2235
+ throw new Error(T.message ?? "Patch Problem");
2237
2236
  }
2238
2237
  const E = i.id ?? i.data.id;
2239
2238
  if (E != null) {
2240
- let b = (w = t.value) == null ? void 0 : w.findIndex((_) => _.id == E);
2239
+ let b = (w = t.value) == null ? void 0 : w.findIndex((T) => T.id == E);
2241
2240
  b != null && b >= 0 && (t.value ?? (t.value = []), (M = t.value) == null || M.splice(b, 1), await N());
2242
2241
  }
2243
2242
  }
@@ -2272,7 +2271,7 @@ let Ar;
2272
2271
  function Er() {
2273
2272
  return Ar;
2274
2273
  }
2275
- function In(e) {
2274
+ function En(e) {
2276
2275
  const t = (e == null ? void 0 : e.buildHeaders) ?? P, l = (e == null ? void 0 : e.buildQuery) ?? g, S = (e == null ? void 0 : e.buildUrl) ?? x, s = e == null ? void 0 : e.demo;
2277
2276
  function g(u) {
2278
2277
  let r = new URLSearchParams();
@@ -2291,7 +2290,7 @@ function In(e) {
2291
2290
  let r = { ...u.headers };
2292
2291
  return u.proxyID && (r.ManagedCompanyAccountID ?? (r.ManagedCompanyAccountID = u.proxyID)), (e == null ? void 0 : e.useBearerToken) != !1 && ((y = e == null ? void 0 : e.auth) == null ? void 0 : y.isLoggedIn.value) == !0 && (r.authorization ?? (r.authorization = `bearer ${(I = e == null ? void 0 : e.auth) == null ? void 0 : I.credentials.value.token}`)), r["Content-Type"] ?? (r["Content-Type"] = u.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), r;
2293
2292
  }
2294
- async function T(u) {
2293
+ async function _(u) {
2295
2294
  const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2296
2295
  let i = u.finalUrl, E = u.headers;
2297
2296
  if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
@@ -2466,14 +2465,14 @@ function In(e) {
2466
2465
  buildQuery: l,
2467
2466
  buildUrl: S,
2468
2467
  deleteItem: h,
2469
- get: T,
2468
+ get: _,
2470
2469
  getAll: N,
2471
2470
  patch: d,
2472
2471
  post: $
2473
2472
  }, Ar;
2474
2473
  }
2475
- function it(e) {
2476
- const { actionErrorMsg: t, actionLoadingMsg: l, clearErrors: S, isLoading: s, doAction: g, logError: x } = rn(e);
2474
+ function ut(e) {
2475
+ const { actionErrorMsg: t, actionLoadingMsg: l, clearErrors: S, isLoading: s, doAction: g, logError: x } = en(e);
2477
2476
  function P(r) {
2478
2477
  r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to delete this item?" : void 0);
2479
2478
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
@@ -2497,7 +2496,7 @@ function it(e) {
2497
2496
  throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
2498
2497
  });
2499
2498
  }
2500
- function T(r) {
2499
+ function _(r) {
2501
2500
  r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to get this item?" : void 0);
2502
2501
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2503
2502
  const I = (e == null ? void 0 : e.items) ?? [];
@@ -2593,7 +2592,7 @@ function it(e) {
2593
2592
  deleteItem: P,
2594
2593
  doAction: g,
2595
2594
  getAllItems: N,
2596
- getItem: T,
2595
+ getItem: _,
2597
2596
  isLoading: s,
2598
2597
  logError: x,
2599
2598
  restoreItem: $,
@@ -2602,17 +2601,17 @@ function it(e) {
2602
2601
  }
2603
2602
  let hr = "Australia/Melbourne", Ir;
2604
2603
  const Hr = "auth-credentials-state";
2605
- function Dn() {
2604
+ function In() {
2606
2605
  return Ir;
2607
2606
  }
2608
- function xn(e) {
2607
+ function Dn(e) {
2609
2608
  const t = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a";
2610
2609
  let l = z(localStorage.getItem(Hr) ?? "");
2611
2610
  l.value.length == 0 && S();
2612
2611
  function S() {
2613
2612
  l.value = Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11), localStorage.setItem(Hr, l.value);
2614
2613
  }
2615
- const s = Jt("auth-credentials", {});
2614
+ const s = Zt("auth-credentials", {});
2616
2615
  function g(D) {
2617
2616
  if (D == null)
2618
2617
  return !0;
@@ -2658,12 +2657,12 @@ function xn(e) {
2658
2657
  return !0;
2659
2658
  if (L.permissions != null) {
2660
2659
  for (var A = 0; A < L.permissions.length; A++)
2661
- if (!T(L.permissions[A]))
2660
+ if (!_(L.permissions[A]))
2662
2661
  return !1;
2663
2662
  }
2664
2663
  return !0;
2665
2664
  }
2666
- function T(D) {
2665
+ function _(D) {
2667
2666
  const L = K(s);
2668
2667
  if (L.userPermissions != null)
2669
2668
  for (var f = 0; f < L.userPermissions.length; f++) {
@@ -2676,7 +2675,7 @@ function xn(e) {
2676
2675
  function N(D, L, f) {
2677
2676
  let A = !0;
2678
2677
  return K(s).isGlobalAdmin ? !0 : (L != null && L.length > 0 && L.forEach((Q) => {
2679
- f == "edit" ? x(Q) || (A = !1) : T(Q) || (A = !1);
2678
+ f == "edit" ? x(Q) || (A = !1) : _(Q) || (A = !1);
2680
2679
  }), D != null && D.length > 0 && (D.some((Q) => u(Q)) || (A = !1)), A);
2681
2680
  }
2682
2681
  function $(D, L = !1) {
@@ -2685,13 +2684,13 @@ function xn(e) {
2685
2684
  if (f == null)
2686
2685
  return !1;
2687
2686
  let J = f.subscriptions ?? [], Q = f.permissions ?? [], ee = N(J, Q, "view");
2688
- return ee || !L || !Te(f.children) ? ee : ((f == null ? void 0 : f.children) != null && f.children.forEach((ie) => {
2687
+ return ee || !L || !_e(f.children) ? ee : ((f == null ? void 0 : f.children) != null && f.children.forEach((ie) => {
2689
2688
  $(ie, !0) && (A = !0);
2690
2689
  }), A);
2691
2690
  }
2692
2691
  function d(D) {
2693
2692
  return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (L, f) => {
2694
- const A = Be(qr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${f}`);
2693
+ const A = Be(Wr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${f}`);
2695
2694
  return L ? `${A}&redirect_path=${L}` : A;
2696
2695
  }), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(D, l.value) ?? "" : "";
2697
2696
  }
@@ -2721,7 +2720,7 @@ function xn(e) {
2721
2720
  }
2722
2721
  function I(D) {
2723
2722
  var f;
2724
- K(s).isLoggedIn || ((f = e.demo) == null || f.endDemo(), _() && (y(), window.location.href = d(D)));
2723
+ K(s).isLoggedIn || ((f = e.demo) == null || f.endDemo(), T() && (y(), window.location.href = d(D)));
2725
2724
  }
2726
2725
  async function i(D, L) {
2727
2726
  return e.getToken ?? (e.getToken = async () => {
@@ -2731,7 +2730,7 @@ function xn(e) {
2731
2730
  if (A != l.value)
2732
2731
  throw new Error("state does not match");
2733
2732
  let ee = "";
2734
- e.getTokenUrl ?? (e.getTokenUrl = () => Be(qr(), "token")), ee = e.getTokenUrl(f, `${window.location.origin}/authentication`, J, Q);
2733
+ e.getTokenUrl ?? (e.getTokenUrl = () => Be(Wr(), "token")), ee = e.getTokenUrl(f, `${window.location.origin}/authentication`, J, Q);
2735
2734
  const ie = {};
2736
2735
  ie.grant_type = J, ie.code = f, ie.redirect_uri = `${window.location.origin}/authentication`, ie.client_id = Q;
2737
2736
  const W = await Er().post({
@@ -2758,13 +2757,13 @@ function xn(e) {
2758
2757
  }
2759
2758
  function b() {
2760
2759
  const D = K(s);
2761
- return D.isLoggedIn && _() && (y(), window.location.href = d()), D.isLoggedIn;
2760
+ return D.isLoggedIn && T() && (y(), window.location.href = d()), D.isLoggedIn;
2762
2761
  }
2763
- function _() {
2762
+ function T() {
2764
2763
  const D = K(s);
2765
2764
  if (D == null || D.expiresOn == null)
2766
2765
  return !0;
2767
- const L = de.fromFormat(D.expiresOn, t), f = de.utc();
2766
+ const L = he.fromFormat(D.expiresOn, t), f = he.utc();
2768
2767
  return L <= f;
2769
2768
  }
2770
2769
  return M(), Ir = {
@@ -2772,7 +2771,7 @@ function xn(e) {
2772
2771
  canEdit: g,
2773
2772
  canEditPermit: x,
2774
2773
  canView: P,
2775
- canViewPermit: T,
2774
+ canViewPermit: _,
2776
2775
  credentials: s,
2777
2776
  doShow: N,
2778
2777
  doShowByNav: $,
@@ -2787,13 +2786,13 @@ function xn(e) {
2787
2786
  tryLogin: b
2788
2787
  }, Ir;
2789
2788
  }
2790
- function _n(e, t, l = {}) {
2789
+ function xn(e, t, l = {}) {
2791
2790
  const {
2792
2791
  preventDefault: S = !1,
2793
2792
  stopPropagation: s = !1,
2794
2793
  axis: g = "both"
2795
2794
  } = l, x = { capture: l.capture ?? !0 };
2796
- let P = { x: 0, y: 0 }, T = { x: 0, y: 0 }, N = { x: 0, y: 0 }, $ = [], d = [], h = z(!1);
2795
+ let P = { x: 0, y: 0 }, _ = { x: 0, y: 0 }, N = { x: 0, y: 0 }, $ = [], d = [], h = z(!1);
2797
2796
  function u(M) {
2798
2797
  K(S) && M.preventDefault(), K(s) && M.stopPropagation();
2799
2798
  }
@@ -2802,14 +2801,14 @@ function _n(e, t, l = {}) {
2802
2801
  const b = K(e);
2803
2802
  if (!b)
2804
2803
  return;
2805
- const _ = b.$el, L = M.type === "touchstart" && M.touches.length > 0 ? M.touches[0] : M;
2806
- N = { x: L.clientX, y: L.clientY }, T = {
2807
- x: _.offsetLeft,
2808
- y: _.offsetTop
2804
+ const T = b.$el, L = M.type === "touchstart" && M.touches.length > 0 ? M.touches[0] : M;
2805
+ N = { x: L.clientX, y: L.clientY }, _ = {
2806
+ x: T.offsetLeft,
2807
+ y: T.offsetTop
2809
2808
  }, P = {
2810
- x: _.offsetLeft,
2811
- y: _.offsetTop
2812
- }, ((f = l.onStart) == null ? void 0 : f.call(l, N, M)) !== !1 && (d.push(he("mousemove", y)), d.push(he("touchmove", y)), d.push(he("mouseup", I)), d.push(he("touchend", I)), u(M));
2809
+ x: T.offsetLeft,
2810
+ y: T.offsetTop
2811
+ }, ((f = l.onStart) == null ? void 0 : f.call(l, N, M)) !== !1 && (d.push(me("mousemove", y)), d.push(me("touchmove", y)), d.push(me("mouseup", I)), d.push(me("touchend", I)), u(M));
2813
2812
  }
2814
2813
  function y(M) {
2815
2814
  var A;
@@ -2817,20 +2816,20 @@ function _n(e, t, l = {}) {
2817
2816
  return;
2818
2817
  const D = M.type === "touchmove" && M.touches.length > 0 ? M.touches[0] : M;
2819
2818
  let L = D.clientX - N.x, f = D.clientY - N.y;
2820
- (g === "x" || g === "both") && (P.x = T.x + L), (g === "y" || g === "both") && (P.y = T.y + f), (A = l.onMove) == null || A.call(l, P, M), u(M), i(P);
2819
+ (g === "x" || g === "both") && (P.x = _.x + L), (g === "y" || g === "both") && (P.y = _.y + f), (A = l.onMove) == null || A.call(l, P, M), u(M), i(P);
2821
2820
  }
2822
2821
  function I(M) {
2823
2822
  var b;
2824
- document.documentElement.style.cursor = "", d.forEach((_) => {
2825
- _();
2823
+ document.documentElement.style.cursor = "", d.forEach((T) => {
2824
+ T();
2826
2825
  }), d.length = 0, (b = l.onEnd) == null || b.call(l, P, M), u(M);
2827
2826
  }
2828
2827
  function i(M) {
2829
2828
  const b = K(e);
2830
2829
  if (!b)
2831
2830
  return;
2832
- const _ = b.$el;
2833
- _.style.left = `${M.x}px`, _.style.top = `${M.y}px`;
2831
+ const T = b.$el;
2832
+ T.style.left = `${M.x}px`, T.style.top = `${M.y}px`;
2834
2833
  }
2835
2834
  function E() {
2836
2835
  if (K(h))
@@ -2839,7 +2838,7 @@ function _n(e, t, l = {}) {
2839
2838
  if (!M)
2840
2839
  return;
2841
2840
  const b = M.$el;
2842
- b.style.cursor = "move", $.push(he(b, "mousedown", r, x)), $.push(he(b, "touchstart", r, x)), h.value = !0;
2841
+ b.style.cursor = "move", $.push(me(b, "mousedown", r, x)), $.push(me(b, "touchstart", r, x)), h.value = !0;
2843
2842
  }
2844
2843
  function w() {
2845
2844
  if (!K(h))
@@ -2848,8 +2847,8 @@ function _n(e, t, l = {}) {
2848
2847
  if (!M)
2849
2848
  return;
2850
2849
  const b = M.$el;
2851
- b.style.cursor = "", $.forEach((_) => {
2852
- _();
2850
+ b.style.cursor = "", $.forEach((T) => {
2851
+ T();
2853
2852
  }), $.length = 0, h.value = !1;
2854
2853
  }
2855
2854
  return {
@@ -2859,8 +2858,8 @@ function _n(e, t, l = {}) {
2859
2858
  };
2860
2859
  }
2861
2860
  const Tn = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
2862
- function Cn(e, t = {}) {
2863
- let l, S = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, g = t.minWidth ?? 0, x = t.maxWidth ?? Number.MAX_SAFE_INTEGER, P = t.minHeight ?? 0, T = t.maxHeight ?? Number.MAX_SAFE_INTEGER, N = t.preventDefault ?? !1, $ = t.stopPropagation ?? !1, d, h = [];
2861
+ function _n(e, t = {}) {
2862
+ let l, S = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, g = t.minWidth ?? 0, x = t.maxWidth ?? Number.MAX_SAFE_INTEGER, P = t.minHeight ?? 0, _ = t.maxHeight ?? Number.MAX_SAFE_INTEGER, N = t.preventDefault ?? !1, $ = t.stopPropagation ?? !1, d, h = [];
2864
2863
  const u = z(!1);
2865
2864
  let r = [], y = [];
2866
2865
  const I = z(!1), i = z({ x: 0, y: 0 });
@@ -2869,14 +2868,14 @@ function Cn(e, t = {}) {
2869
2868
  Ae(N) && W.preventDefault(), Ae($) && W.stopPropagation();
2870
2869
  }
2871
2870
  function b(W, Y) {
2872
- h = Y.map(D), h.forEach((V) => W.$el.appendChild(V));
2871
+ h = Y.map(D), h.forEach((H) => W.$el.appendChild(H));
2873
2872
  }
2874
- function _(W) {
2873
+ function T(W) {
2875
2874
  h.forEach((Y) => W.$el.removeChild(Y));
2876
2875
  }
2877
2876
  function D(W) {
2878
- const Y = S + "px", V = -S / 2 + "px", ae = s + 1, G = document.createElement("div");
2879
- return G.dataset.handle = W, G.style.position = "absolute", G.style.touchAction = "none", G.style.userSelect = "none", G.style.zIndex = (W.length === 1 ? s : ae).toString(), G.style.cursor = J(W), W.includes("t") && (G.style.top = V, G.style.height = Y, W === "t" && (G.style.left = "0", G.style.width = "100%")), W.includes("b") && (G.style.bottom = V, G.style.height = Y, W === "b" && (G.style.left = "0", G.style.width = "100%")), W.includes("r") && (G.style.right = V, G.style.width = Y, W === "r" && (G.style.top = "0", G.style.height = "100%")), W.includes("l") && (G.style.left = V, G.style.width = Y, W === "l" && (G.style.top = "0", G.style.height = "100%")), G;
2877
+ const Y = S + "px", H = -S / 2 + "px", ae = s + 1, G = document.createElement("div");
2878
+ return G.dataset.handle = W, G.style.position = "absolute", G.style.touchAction = "none", G.style.userSelect = "none", G.style.zIndex = (W.length === 1 ? s : ae).toString(), G.style.cursor = J(W), W.includes("t") && (G.style.top = H, G.style.height = Y, W === "t" && (G.style.left = "0", G.style.width = "100%")), W.includes("b") && (G.style.bottom = H, G.style.height = Y, W === "b" && (G.style.left = "0", G.style.width = "100%")), W.includes("r") && (G.style.right = H, G.style.width = Y, W === "r" && (G.style.top = "0", G.style.height = "100%")), W.includes("l") && (G.style.left = H, G.style.width = Y, W === "l" && (G.style.top = "0", G.style.height = "100%")), G;
2880
2879
  }
2881
2880
  function L(W) {
2882
2881
  var ne;
@@ -2885,30 +2884,30 @@ function Cn(e, t = {}) {
2885
2884
  const Y = Ae(e);
2886
2885
  if (!Y)
2887
2886
  return;
2888
- const V = Y.$el, G = W.type === "touchstart" && W.touches.length > 0 ? W.touches[0] : W;
2887
+ const H = Y.$el, G = W.type === "touchstart" && W.touches.length > 0 ? W.touches[0] : W;
2889
2888
  if (i.value.x = G.clientX, i.value.y = G.clientY, E = {
2890
- left: V.offsetLeft,
2891
- top: V.offsetTop,
2892
- height: parseInt(window.getComputedStyle(V).getPropertyValue("height")),
2893
- width: parseInt(window.getComputedStyle(V).getPropertyValue("width"))
2889
+ left: H.offsetLeft,
2890
+ top: H.offsetTop,
2891
+ height: parseInt(window.getComputedStyle(H).getPropertyValue("height")),
2892
+ width: parseInt(window.getComputedStyle(H).getPropertyValue("width"))
2894
2893
  }, w = Lr(E), ((ne = t.onStart) == null ? void 0 : ne.call(t, i.value, W)) === !1)
2895
2894
  return;
2896
2895
  let X = W.target;
2897
- document.documentElement.style.cursor = J(X.dataset.handle), d = X.dataset.handle, y.push(he("mousemove", f)), y.push(he("mouseup", A)), y.push(he("touchmove", f)), y.push(he("touchend", A)), M(W);
2896
+ document.documentElement.style.cursor = J(X.dataset.handle), d = X.dataset.handle, y.push(me("mousemove", f)), y.push(me("mouseup", A)), y.push(me("touchmove", f)), y.push(me("touchend", A)), M(W);
2898
2897
  }
2899
2898
  function f(W) {
2900
2899
  const Y = Ae(e);
2901
2900
  if (!Y)
2902
2901
  return;
2903
- const V = Y.$el, G = W.type === "touchmove" && W.touches.length > 0 ? W.touches[0] : W;
2902
+ const H = Y.$el, G = W.type === "touchmove" && W.touches.length > 0 ? W.touches[0] : W;
2904
2903
  let X = G.clientX - i.value.x, ne = G.clientY - i.value.y;
2905
2904
  const fe = Ae(E);
2906
2905
  if (d.includes("t")) {
2907
- const ce = Math.min(T, Math.max(P, (fe.height ?? 0) - ne));
2906
+ const ce = Math.min(_, Math.max(P, (fe.height ?? 0) - ne));
2908
2907
  w.height = ce, w.top = (fe.top ?? 0) + ne;
2909
2908
  }
2910
2909
  if (d.includes("b")) {
2911
- const ce = Math.min(T, Math.max(P, (fe.height ?? 0) + ne));
2910
+ const ce = Math.min(_, Math.max(P, (fe.height ?? 0) + ne));
2912
2911
  w.height = ce;
2913
2912
  }
2914
2913
  if (d.includes("l")) {
@@ -2919,7 +2918,7 @@ function Cn(e, t = {}) {
2919
2918
  const ce = Math.min(x, Math.max(g, (fe.width ?? 0) + X));
2920
2919
  w.width = ce;
2921
2920
  }
2922
- V.dispatchEvent(new CustomEvent("resize")), M(W), ee(w);
2921
+ H.dispatchEvent(new CustomEvent("resize")), M(W), ee(w);
2923
2922
  }
2924
2923
  function A() {
2925
2924
  document.documentElement.style.cursor = "", d = null, y.forEach((W) => {
@@ -2933,37 +2932,37 @@ function Cn(e, t = {}) {
2933
2932
  b: "s",
2934
2933
  l: "w"
2935
2934
  };
2936
- return W.split("").map((V) => Y[V]).join("") + "-resize";
2935
+ return W.split("").map((H) => Y[H]).join("") + "-resize";
2937
2936
  }
2938
2937
  function Q(W) {
2939
2938
  const Y = Ae(e);
2940
2939
  if (!Y)
2941
2940
  return;
2942
- const V = Y.$el;
2941
+ const H = Y.$el;
2943
2942
  if (console.log(l), l !== "page" && W == "page") {
2944
- const ae = jt(V), G = Ae(ae) ?? null;
2943
+ const ae = Jt(H), G = Ae(ae) ?? null;
2945
2944
  let X = 0;
2946
2945
  if (G != null) {
2947
2946
  const ne = window.getComputedStyle(G);
2948
2947
  X = parseInt(ne.getPropertyValue("width")) - G.offsetLeft;
2949
2948
  }
2950
- V.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", V.offsetHeight, u.value = !0, ee({
2949
+ H.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", H.offsetHeight, u.value = !0, ee({
2951
2950
  height: void 0,
2952
2951
  width: X,
2953
2952
  top: 0,
2954
2953
  left: 0,
2955
2954
  position: void 0
2956
- }), he(V, "transitionend", () => {
2957
- V.style.width = "auto", V.style.top = "", V.style.left = "", V.style.position = "", V.style.transition = "", u.value = !1;
2955
+ }), me(H, "transitionend", () => {
2956
+ H.style.width = "auto", H.style.top = "", H.style.left = "", H.style.position = "", H.style.transition = "", u.value = !1;
2958
2957
  }, { once: !0 });
2959
2958
  } else if ((l == "page" || Y.$el.style.position !== "absolute") && W !== "page") {
2960
- V.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", u.value = !0, E = {
2961
- height: parseInt(window.getComputedStyle(V).getPropertyValue("height")),
2962
- width: parseInt(window.getComputedStyle(V).getPropertyValue("width")),
2963
- top: V.offsetTop,
2964
- left: V.offsetLeft,
2959
+ H.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", u.value = !0, E = {
2960
+ height: parseInt(window.getComputedStyle(H).getPropertyValue("height")),
2961
+ width: parseInt(window.getComputedStyle(H).getPropertyValue("width")),
2962
+ top: H.offsetTop,
2963
+ left: H.offsetLeft,
2965
2964
  position: "absolute"
2966
- }, ee(E), V.offsetHeight;
2965
+ }, ee(E), H.offsetHeight;
2967
2966
  const ae = E;
2968
2967
  W == "freestyle" ? w = {
2969
2968
  height: ae.height,
@@ -2977,8 +2976,8 @@ function Cn(e, t = {}) {
2977
2976
  top: (ae.top ?? 0) + 2,
2978
2977
  left: (ae.left ?? 0) + 2,
2979
2978
  position: "absolute"
2980
- }), ee(w), he(V, "transitionend", () => {
2981
- V.style.transition = "", u.value = !1;
2979
+ }), ee(w), me(H, "transitionend", () => {
2980
+ H.style.transition = "", u.value = !1;
2982
2981
  }, { once: !0 });
2983
2982
  }
2984
2983
  }
@@ -2986,21 +2985,21 @@ function Cn(e, t = {}) {
2986
2985
  const Y = Ae(e);
2987
2986
  if (!Y)
2988
2987
  return;
2989
- const V = Y.$el;
2990
- 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);
2988
+ const H = Y.$el;
2989
+ W.top ? H.style.top = `${W.top}px` : H.style.top = void 0, W.left ? H.style.left = `${W.left}px` : H.style.left = void 0, W.height ? H.style.height = `${W.height}px` : H.style.height = void 0, W.width ? H.style.width = `${W.width}px` : H.style.width = void 0, W.position ? H.style.position = `${W.position}` : H.style.position = void 0, console.log(H.style.position);
2991
2990
  }
2992
2991
  function ie(W, Y) {
2993
2992
  if (I.value)
2994
2993
  return;
2995
- const V = Ae(e);
2996
- V && (b(V, W ?? Tn), Q(Y), r.push(he(V.$el, "mousedown", L)), r.push(he(V.$el, "touchstart", L)), I.value = !0, l = Y);
2994
+ const H = Ae(e);
2995
+ H && (b(H, W ?? Tn), Q(Y), r.push(me(H.$el, "mousedown", L)), r.push(me(H.$el, "touchstart", L)), I.value = !0, l = Y);
2997
2996
  }
2998
2997
  function we(W) {
2999
2998
  if (!I.value)
3000
2999
  return;
3001
3000
  const Y = Ae(e);
3002
- Y && (_(Y), Q(W), r.forEach((V) => {
3003
- V();
3001
+ Y && (T(Y), Q(W), r.forEach((H) => {
3002
+ H();
3004
3003
  }), r.length = 0, I.value = !1);
3005
3004
  }
3006
3005
  return {
@@ -3009,16 +3008,16 @@ function Cn(e, t = {}) {
3009
3008
  turnResizingOff: we
3010
3009
  };
3011
3010
  }
3012
- function Pn(e) {
3013
- const t = (e == null ? void 0 : e.blade) ?? z(null), l = (e == null ? void 0 : e.handle) ?? z(null), S = z(!1), s = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, g = z((e == null ? void 0 : e.defaultVariant) ?? "page"), x = z({}), { turnResizingOff: P, turnResizingOn: T } = Cn(t), { turnDraggableOff: N, turnDraggableOn: $ } = _n(t, l);
3014
- Kt(t, (h) => {
3011
+ function Cn(e) {
3012
+ const t = (e == null ? void 0 : e.blade) ?? z(null), l = (e == null ? void 0 : e.handle) ?? z(null), S = z(!1), s = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, g = z((e == null ? void 0 : e.defaultVariant) ?? "page"), x = z({}), { turnResizingOff: P, turnResizingOn: _ } = _n(t), { turnDraggableOff: N, turnDraggableOn: $ } = xn(t, l);
3013
+ jt(t, (h) => {
3015
3014
  const u = h[0], { width: r } = u.contentRect;
3016
3015
  S.value = r < s;
3017
3016
  });
3018
3017
  function d(h) {
3019
- N(), h == "page" ? P(h) : h == "blade" ? T(["l", "r"], h) : h == "freestyle" ? (P(), T(void 0, h), $()) : h == "inline" && P();
3018
+ N(), h == "page" ? P(h) : h == "blade" ? _(["l", "r"], h) : h == "freestyle" ? (P(), _(void 0, h), $()) : h == "inline" && P();
3020
3019
  }
3021
- return d(g.value), _e(g, (h) => d(h)), {
3020
+ return d(g.value), Te(g, (h) => d(h)), {
3022
3021
  isMobile: S,
3023
3022
  variant: g,
3024
3023
  bladeData: x
@@ -3042,10 +3041,10 @@ const mr = {
3042
3041
  warning: "#FB8C00"
3043
3042
  };
3044
3043
  let Dr;
3045
- function ya() {
3044
+ function ga() {
3046
3045
  return Dr;
3047
3046
  }
3048
- function wa(e) {
3047
+ function ya(e) {
3049
3048
  const t = localStorage.getItem("cosmetics");
3050
3049
  let l;
3051
3050
  return t != null && t.length > 0 && (l = JSON.parse(t)), l ?? (l = {}), l.dark ?? (l.dark = e == null ? void 0 : e.dark), l.light ?? (l.light = e == null ? void 0 : e.light), l.theme ?? (l.theme = e == null ? void 0 : e.defaultTheme), {
@@ -3060,7 +3059,7 @@ function wa(e) {
3060
3059
  }
3061
3060
  };
3062
3061
  }
3063
- function Nn(e) {
3062
+ function Pn(e) {
3064
3063
  const t = z({});
3065
3064
  let l = e.vuetifyInstance;
3066
3065
  function S() {
@@ -3101,7 +3100,7 @@ function Nn(e) {
3101
3100
  function P() {
3102
3101
  t.value.drawer = !t.value.drawer;
3103
3102
  }
3104
- function T() {
3103
+ function _() {
3105
3104
  t.value.drawerStick = !t.value.drawerStick;
3106
3105
  }
3107
3106
  function N() {
@@ -3114,22 +3113,22 @@ function Nn(e) {
3114
3113
  h.colors.primary = (t.value.dark ?? { ...vr, ...e.defaultDarkTheme }).primary, u.colors.primary = (t.value.light ?? { ...mr, ...e.defaultLightTheme }).primary, (d = document.querySelector('meta[name="theme-color"]')) == null || d.setAttribute("content", "");
3115
3114
  }
3116
3115
  }
3117
- return S(), _e(t, () => {
3116
+ return S(), Te(t, () => {
3118
3117
  s();
3119
3118
  }), Dr = {
3120
3119
  state: t,
3121
3120
  resetCosmetics: g,
3122
3121
  setTemporaryColor: x,
3123
3122
  toggleDrawer: P,
3124
- toggleDrawerStick: T,
3123
+ toggleDrawerStick: _,
3125
3124
  toggleLightDark: N,
3126
3125
  undoTemporaryColor: $
3127
3126
  }, Dr;
3128
3127
  }
3129
- const ba = {
3128
+ const wa = {
3130
3129
  canExportCSV: !1
3131
3130
  };
3132
- function Mn() {
3131
+ function Nn() {
3133
3132
  function e(t) {
3134
3133
  const {
3135
3134
  items: l,
@@ -3137,24 +3136,24 @@ function Mn() {
3137
3136
  fileName: s = "data.csv",
3138
3137
  format: g = "file"
3139
3138
  } = t;
3140
- if (!Te(l))
3139
+ if (!_e(l))
3141
3140
  return;
3142
3141
  let x = [];
3143
3142
  S != null ? x = S == null ? void 0 : S.filter((I) => (I.csv ?? I.csvText ?? I.csvFilter ?? I.csvArray) != null).map((I) => ({
3144
3143
  header: I.title ?? I.value ?? "",
3145
3144
  itemText: I.itemText,
3146
3145
  value: I.value
3147
- })) : x = Object.keys(l[0]).map((I) => ({ header: nn(I) ?? "", value: I })), x = x.filter((I) => I.header.length > 0);
3146
+ })) : x = Object.keys(l[0]).map((I) => ({ header: tn(I) ?? "", value: I })), x = x.filter((I) => I.header.length > 0);
3148
3147
  var P = [];
3149
3148
  for (let I = 0; I < l.length; I++) {
3150
3149
  const i = l[I];
3151
- var T = {}, N = [];
3150
+ var _ = {}, N = [];
3152
3151
  for (let E = 0; E < x.length; E++) {
3153
3152
  const w = x[E];
3154
3153
  var $ = null;
3155
- typeof w.value == "function" ? $ = w.value(i) : typeof w.value == "string" && ($ = Sr(i, w.value)), w.itemText != null ? T[w.header] = Sr($, w.itemText) : T[w.header] = $;
3154
+ typeof w.value == "function" ? $ = w.value(i) : typeof w.value == "string" && ($ = Sr(i, w.value)), w.itemText != null ? _[w.header] = Sr($, w.itemText) : _[w.header] = $;
3156
3155
  }
3157
- P.push(T), Te(N) && N.forEach((E) => {
3156
+ P.push(_), _e(N) && N.forEach((E) => {
3158
3157
  P.push(E);
3159
3158
  }), N = [];
3160
3159
  }
@@ -3183,38 +3182,38 @@ function Mn() {
3183
3182
  };
3184
3183
  }
3185
3184
  let xr;
3186
- function Sa() {
3185
+ function ba() {
3187
3186
  return xr;
3188
3187
  }
3189
- function Ln(e) {
3190
- const t = e.getUTC ?? de.utc;
3188
+ function Mn(e) {
3189
+ const t = e.getUTC ?? he.utc;
3191
3190
  function l() {
3192
3191
  return s().startOf("day").toUTC().toString() ?? "";
3193
3192
  }
3194
3193
  function S() {
3195
3194
  return s().startOf("day").plus({ day: 1 }).toUTC().toString() ?? "";
3196
3195
  }
3197
- function s(T, N) {
3198
- return T == null ? t().setZone(e.getTimeZone()) : N ? de.fromFormat(T, N, { zone: e.getTimeZone() }) : de.fromISO(T, { zone: e.getTimeZone() });
3196
+ function s(_, N) {
3197
+ return _ == null ? t().setZone(e.getTimeZone()) : N ? he.fromFormat(_, N, { zone: e.getTimeZone() }) : he.fromISO(_, { zone: e.getTimeZone() });
3199
3198
  }
3200
- function g(T, N, $) {
3201
- if (T == null) {
3199
+ function g(_, N, $) {
3200
+ if (_ == null) {
3202
3201
  const h = t().setZone(e.getTimeZone());
3203
3202
  return N ? h.toFormat(N) : h.toString();
3204
3203
  }
3205
- if (T == "Invalid DateTime")
3204
+ if (_ == "Invalid DateTime")
3206
3205
  return "";
3207
- const d = $ ? de.fromFormat(T, $, { zone: e.getTimeZone() }) : de.fromISO(T, { zone: e.getTimeZone() });
3206
+ const d = $ ? he.fromFormat(_, $, { zone: e.getTimeZone() }) : he.fromISO(_, { zone: e.getTimeZone() });
3208
3207
  return N ? d.toFormat(N) : d == null ? void 0 : d.toString();
3209
3208
  }
3210
- function x(T, N) {
3211
- return T == null ? t() : N ? de.fromFormat(T, N) : de.fromISO(T);
3209
+ function x(_, N) {
3210
+ return _ == null ? t() : N ? he.fromFormat(_, N) : he.fromISO(_);
3212
3211
  }
3213
- function P(T, N, $) {
3214
- if (T == null)
3212
+ function P(_, N, $) {
3213
+ if (_ == null)
3215
3214
  return N ? t().toFormat(N) : t().toString();
3216
3215
  {
3217
- const d = $ ? de.fromFormat(T, $) : de.fromISO(T);
3216
+ const d = $ ? he.fromFormat(_, $) : he.fromISO(_);
3218
3217
  return N ? d.toFormat(N) : d.toString();
3219
3218
  }
3220
3219
  }
@@ -3227,11 +3226,11 @@ function Ln(e) {
3227
3226
  utcString: P
3228
3227
  }, xr;
3229
3228
  }
3230
- let _r;
3231
- function Aa() {
3232
- return _r;
3229
+ let Tr;
3230
+ function Sa() {
3231
+ return Tr;
3233
3232
  }
3234
- function Rn(e) {
3233
+ function Ln(e) {
3235
3234
  const t = z(!1), l = (e == null ? void 0 : e.apis) ?? [];
3236
3235
  function S() {
3237
3236
  t.value = !0;
@@ -3276,7 +3275,7 @@ function Rn(e) {
3276
3275
  });
3277
3276
  });
3278
3277
  }
3279
- function T(d) {
3278
+ function _(d) {
3280
3279
  if (l == null)
3281
3280
  throw new Error("no demo data available for this api");
3282
3281
  const h = g(d);
@@ -3327,27 +3326,27 @@ function Rn(e) {
3327
3326
  });
3328
3327
  });
3329
3328
  }
3330
- return _r = {
3329
+ return Tr = {
3331
3330
  endDemo: s,
3332
3331
  isDemoing: t,
3333
3332
  startDemo: S,
3334
3333
  data: l,
3335
3334
  deleteItem: x,
3336
3335
  get: P,
3337
- getAll: T,
3336
+ getAll: _,
3338
3337
  post: N,
3339
3338
  patch: $
3340
- }, _r;
3339
+ }, Tr;
3341
3340
  }
3342
- var Un = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
3343
- function Ea(e) {
3341
+ var Rn = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
3342
+ function Aa(e) {
3344
3343
  function t(l) {
3345
3344
  var s;
3346
3345
  const S = l.matched.slice().reverse().find((g) => g.meta && g.meta.title);
3347
3346
  if (S)
3348
3347
  document.title = S.meta.title;
3349
3348
  else {
3350
- const g = Un.VITE_NODE_ENV;
3349
+ const g = Rn.VITE_NODE_ENV;
3351
3350
  let x = "";
3352
3351
  g == "development" ? x = "BWeb Dev" : g == "staging" ? x = "BlitzIt Sandpit" : x = "BlitzIt Web | Cloud-Based Wholesale Logistics Platform", ((s = e == null ? void 0 : e.demo) == null ? void 0 : s.isDemoing.value) == !0 && (x = `Training: ${x}`), document.title = x;
3353
3352
  }
@@ -3356,13 +3355,13 @@ function Ea(e) {
3356
3355
  updateMeta: t
3357
3356
  };
3358
3357
  }
3359
- let Tr;
3360
- function Ia() {
3361
- return Tr;
3358
+ let _r;
3359
+ function Ea() {
3360
+ return _r;
3362
3361
  }
3363
- function Bn(e) {
3362
+ function Un(e) {
3364
3363
  function t(f, A, J) {
3365
- return f ? ln(f) ? J ?? "" : e.dates.tzString(f, A) : J ?? f ?? "";
3364
+ return f ? an(f) ? J ?? "" : e.dates.tzString(f, A) : J ?? f ?? "";
3366
3365
  }
3367
3366
  function l(f) {
3368
3367
  if (!f)
@@ -3394,7 +3393,7 @@ function Bn(e) {
3394
3393
  function P(f, A) {
3395
3394
  return t(f, "ccc dd LLL yyyy", A);
3396
3395
  }
3397
- function T(f, A) {
3396
+ function _(f, A) {
3398
3397
  return t(f, "ccc dd LLL @ hh:mm a", A);
3399
3398
  }
3400
3399
  function N(f) {
@@ -3413,7 +3412,7 @@ function Bn(e) {
3413
3412
  return e.dates.utcString(f, A);
3414
3413
  }
3415
3414
  function u(f) {
3416
- return tt(f, !1);
3415
+ return rt(f, !1);
3417
3416
  }
3418
3417
  function r(f) {
3419
3418
  if (!f)
@@ -3448,7 +3447,7 @@ function Bn(e) {
3448
3447
  function b(f, A) {
3449
3448
  return t(f, "hh:mm a", A);
3450
3449
  }
3451
- function _(f) {
3450
+ function T(f) {
3452
3451
  return f == null ? "" : typeof f == "number" ? e.dates.tzDate().startOf("day").plus({ minutes: f }).toFormat("T") : typeof f == "string" ? e.dates.tzString(f, "t") : "unknown";
3453
3452
  }
3454
3453
  const D = {
@@ -3458,7 +3457,7 @@ function Bn(e) {
3458
3457
  toDayMonth: g,
3459
3458
  toDayOfWeek: x,
3460
3459
  toDayShortDate: P,
3461
- toDayShortDateAndTime: T,
3460
+ toDayShortDateAndTime: _,
3462
3461
  toDisplayNumber: N,
3463
3462
  toDisplayNumberOver: $,
3464
3463
  toDisplayNumberSigned: d,
@@ -3472,7 +3471,7 @@ function Bn(e) {
3472
3471
  toShortDate: w,
3473
3472
  toShortDateAndTime: M,
3474
3473
  toTime: b,
3475
- toTimeOfDay: _
3474
+ toTimeOfDay: T
3476
3475
  };
3477
3476
  function L(f) {
3478
3477
  if (f != null) {
@@ -3482,24 +3481,24 @@ function Bn(e) {
3482
3481
  }
3483
3482
  return (A) => A;
3484
3483
  }
3485
- return Tr = {
3484
+ return _r = {
3486
3485
  findFilter: L,
3487
3486
  ...D
3488
- }, Tr;
3487
+ }, _r;
3489
3488
  }
3490
- function $n(e, t) {
3491
- const l = z(!1), S = Zt(e);
3489
+ function Bn(e, t) {
3490
+ const l = z(!1), S = Yt(e);
3492
3491
  let s = g(K(e));
3493
- (t == null ? void 0 : t.useTracker) !== !1 && _e(S, (P) => {
3492
+ (t == null ? void 0 : t.useTracker) !== !1 && Te(S, (P) => {
3494
3493
  l.value = g(P) != s;
3495
3494
  }, { deep: !0 });
3496
3495
  function g(P) {
3497
- const T = Lr(P);
3496
+ const _ = Lr(P);
3498
3497
  return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((N) => {
3499
- delete T[N];
3498
+ delete _[N];
3500
3499
  }) : t.propsToTrack != null && Object.keys(P).forEach(($) => {
3501
- t.propsToTrack.some((d) => d == $) || delete T[$];
3502
- })), JSON.stringify(T);
3500
+ t.propsToTrack.some((d) => d == $) || delete _[$];
3501
+ })), JSON.stringify(_);
3503
3502
  }
3504
3503
  function x() {
3505
3504
  s = g(K(S)), l.value = !1;
@@ -3510,15 +3509,15 @@ function $n(e, t) {
3510
3509
  restartTracker: x
3511
3510
  };
3512
3511
  }
3513
- function Da(e, t) {
3512
+ function Ia(e, t) {
3514
3513
  var ae;
3515
3514
  const {
3516
3515
  // useBladeSrc = true,
3517
3516
  useRouteSrc: l = !0
3518
- } = t ?? {}, S = e.storeMode ?? (t == null ? void 0 : t.storeMode), s = e.storageMode ?? (t == null ? void 0 : t.storageMode), g = e.nav ?? e.bladeName ?? "basic", x = Mr(), P = rt(), T = K(e.proxyQueryKey), N = te(() => {
3517
+ } = t ?? {}, S = e.storeMode ?? (t == null ? void 0 : t.storeMode), s = e.storageMode ?? (t == null ? void 0 : t.storageMode), g = e.nav ?? e.bladeName ?? "basic", x = Mr(), P = et(), _ = K(e.proxyQueryKey), N = te(() => {
3519
3518
  var G;
3520
- return K(e.proxyID) ?? (T != null ? (G = P == null ? void 0 : P.query) == null ? void 0 : G[T] : void 0);
3521
- }), $ = z(void 0), { actionErrorMsg: d, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: y, restoreItem: I, saveItem: i } = it({
3519
+ return K(e.proxyID) ?? (_ != null ? (G = P == null ? void 0 : P.query) == null ? void 0 : G[_] : void 0);
3520
+ }), $ = z(void 0), { actionErrorMsg: d, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: y, restoreItem: I, saveItem: i } = ut({
3522
3521
  nav: g,
3523
3522
  onError: e.onError ?? (t == null ? void 0 : t.onError),
3524
3523
  proxyID: N.value,
@@ -3527,25 +3526,25 @@ function Da(e, t) {
3527
3526
  storageMode: s,
3528
3527
  nav: g
3529
3528
  })
3530
- }), E = te(() => e.errorMsg ?? d.value), w = te(() => e.loadingMsg ?? h.value), M = te(() => w.value != null), b = z(e.itemID ?? (l ? (ae = P == null ? void 0 : P.params) == null ? void 0 : ae.id : void 0)), _ = z(b.value == "new" ? "new" : e.startEditing ? "edit" : "view"), D = Re(!1), L = te(() => {
3531
- if (_.value == "new")
3529
+ }), E = te(() => e.errorMsg ?? d.value), w = te(() => e.loadingMsg ?? h.value), M = te(() => w.value != null), b = z(e.itemID ?? (l ? (ae = P == null ? void 0 : P.params) == null ? void 0 : ae.id : void 0)), T = z(b.value == "new" ? "new" : e.startEditing ? "edit" : "view"), D = Re(!1), L = te(() => {
3530
+ if (T.value == "new")
3532
3531
  return !1;
3533
3532
  const G = K($);
3534
3533
  return e.onCanDelete != null ? e.onCanDelete(G) : (G == null ? void 0 : G.isInactive) !== !0;
3535
3534
  }), f = te(() => {
3536
- if (_.value == "new")
3535
+ if (T.value == "new")
3537
3536
  return !1;
3538
3537
  const G = K($);
3539
3538
  return e.onCanEdit != null ? e.onCanEdit(G) : !0;
3540
3539
  }), A = te(() => {
3541
- if (_.value == "new")
3540
+ if (T.value == "new")
3542
3541
  return !1;
3543
3542
  const G = K($);
3544
3543
  return e.onCanRestore != null ? e.onCanRestore(G) : (G == null ? void 0 : G.isInactive) === !0;
3545
3544
  }), J = te(() => {
3546
3545
  const G = K($);
3547
3546
  return e.onCanSave != null ? e.onCanSave(G) : !0;
3548
- }), { isChanged: Q, restartTracker: ee } = $n($, {
3547
+ }), { isChanged: Q, restartTracker: ee } = Bn($, {
3549
3548
  useTracker: e.trackChanges,
3550
3549
  propsToIgnore: e.trackIgnoreProps,
3551
3550
  propsToTrack: e.trackProps
@@ -3617,7 +3616,7 @@ function Da(e, t) {
3617
3616
  onCanSaveAsync: fe,
3618
3617
  onGetSaveAsync: ce,
3619
3618
  onSaveAsync: Ee,
3620
- onSaveSuccessAsync: $e = (Ce) => ((X == null ? void 0 : X.navBack) === !0 ? x.back() : (G.rowVersion != null && Ce.rowVersion != null && (G.rowVersion = Ce.rowVersion), ee(), _.value = "view"), Promise.resolve(void 0))
3619
+ onSaveSuccessAsync: $e = (Ce) => ((X == null ? void 0 : X.navBack) === !0 ? x.back() : (G.rowVersion != null && Ce.rowVersion != null && (G.rowVersion = Ce.rowVersion), ee(), T.value = "view"), Promise.resolve(void 0))
3621
3620
  } = { ...e };
3622
3621
  i({
3623
3622
  additionalUrl: ne,
@@ -3630,18 +3629,18 @@ function Da(e, t) {
3630
3629
  proxyID: N.value,
3631
3630
  // ...params.getOptions(),
3632
3631
  // ...(useBladeSrc ? bladeData.value : {}),
3633
- mode: _.value
3632
+ mode: T.value
3634
3633
  });
3635
3634
  }
3636
- function V() {
3637
- const G = K(_);
3638
- !G || G == "view" ? _.value = "edit" : G == "edit" && (_.value = "view");
3635
+ function H() {
3636
+ const G = K(T);
3637
+ !G || G == "view" ? T.value = "edit" : G == "edit" && (T.value = "view");
3639
3638
  }
3640
- return _e(E, (G) => {
3639
+ return Te(E, (G) => {
3641
3640
  D.value = G != null;
3642
- }), _e(() => e.refreshToggle, () => {
3641
+ }), Te(() => e.refreshToggle, () => {
3643
3642
  W({ deepRefresh: !0 });
3644
- }), Or(async () => {
3643
+ }), Xr(async () => {
3645
3644
  var G;
3646
3645
  e.eager == !0 && await W({ deepRefresh: ((G = P == null ? void 0 : P.params) == null ? void 0 : G.refresh) == "true" });
3647
3646
  }), {
@@ -3650,33 +3649,33 @@ function Da(e, t) {
3650
3649
  errorMsg: E,
3651
3650
  isChanged: Q,
3652
3651
  isDeletable: L,
3653
- isEditing: te(() => _.value == "new" || _.value == "edit"),
3652
+ isEditing: te(() => T.value == "new" || T.value == "edit"),
3654
3653
  isEditable: f,
3655
3654
  isLoading: M,
3656
- isNew: te(() => _.value == "new"),
3655
+ isNew: te(() => T.value == "new"),
3657
3656
  isRestorable: A,
3658
3657
  isSaveable: J,
3659
3658
  loadingMsg: w,
3660
- mode: _,
3659
+ mode: T,
3661
3660
  refresh: W,
3662
3661
  restoreItem: we,
3663
3662
  saveItem: Y,
3664
3663
  showError: D,
3665
- toggleMode: V
3664
+ toggleMode: H
3666
3665
  };
3667
3666
  }
3668
- const zr = z(!0), Yr = z(!1), Zr = z(), gr = z(!1);
3667
+ const Vr = z(!0), zr = z(!1), Yr = z(), gr = z(!1);
3669
3668
  let yr = null, Cr;
3670
- function ct() {
3669
+ function it() {
3671
3670
  return Cr;
3672
3671
  }
3673
- function Fn(e) {
3672
+ function $n(e) {
3674
3673
  const t = e.defaultCacheExpiryHours ?? 7;
3675
3674
  e.getDisplayName ?? (e.getDisplayName = (h) => {
3676
3675
  if (h.displayName != null)
3677
3676
  return h.displayName;
3678
3677
  if (h.name != null)
3679
- return an(h.name.replaceAll("-", " "));
3678
+ return nn(h.name.replaceAll("-", " "));
3680
3679
  });
3681
3680
  const l = (e.navItems ?? []).map((h) => ({
3682
3681
  displayName: h.displayName ?? e.getDisplayName(h),
@@ -3699,16 +3698,16 @@ function Fn(e) {
3699
3698
  return (u = P(h)) == null ? void 0 : u.icon;
3700
3699
  }
3701
3700
  function P(h) {
3702
- return h == null ? null : typeof h != "string" ? h : nt(l, (r) => r.children).find((r) => {
3701
+ return h == null ? null : typeof h != "string" ? h : tt(l, (r) => r.children).find((r) => {
3703
3702
  var y;
3704
3703
  return r.name == h || r.singleName == h || ((y = r.aliases) == null ? void 0 : y.some((I) => I == h));
3705
3704
  }) ?? null;
3706
3705
  }
3707
- function T(h) {
3706
+ function _(h) {
3708
3707
  const u = P(h);
3709
3708
  if (u == null)
3710
3709
  return;
3711
- let r = yn(u.microservice ?? "default") ?? "";
3710
+ let r = gn(u.microservice ?? "default") ?? "";
3712
3711
  return u.path != null && (r = Be(r, u.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
3713
3712
  }
3714
3713
  function N(h) {
@@ -3717,7 +3716,7 @@ function Fn(e) {
3717
3716
  return u.singleName;
3718
3717
  const r = u == null ? void 0 : u.displayName;
3719
3718
  if (r != null)
3720
- return vn(r);
3719
+ return mn(r);
3721
3720
  }
3722
3721
  function $(h) {
3723
3722
  const u = P(h);
@@ -3727,14 +3726,14 @@ function Fn(e) {
3727
3726
  if (h == null)
3728
3727
  return;
3729
3728
  const u = typeof h == "string" ? P(h) : h;
3730
- Zr.value = u == null ? void 0 : u.background, Yr.value = (u == null ? void 0 : u.hideNavigation) !== !0, zr.value = (u == null ? void 0 : u.hideAppBar) !== !0, yr != null && yr(), gr.value = (u == null ? void 0 : u.hesitate) === !0, gr.value && (yr = window.addEventListener("beforeunload", (r) => {
3729
+ Yr.value = u == null ? void 0 : u.background, zr.value = (u == null ? void 0 : u.hideNavigation) !== !0, Vr.value = (u == null ? void 0 : u.hideAppBar) !== !0, yr != null && yr(), gr.value = (u == null ? void 0 : u.hesitate) === !0, gr.value && (yr = window.addEventListener("beforeunload", (r) => {
3731
3730
  r.preventDefault();
3732
3731
  }));
3733
3732
  }
3734
3733
  return Cr = {
3735
- showAppBar: zr,
3736
- showAppNavigation: Yr,
3737
- backgroundName: Zr,
3734
+ showAppBar: Vr,
3735
+ showAppNavigation: zr,
3736
+ backgroundName: Yr,
3738
3737
  hesitate: gr,
3739
3738
  navigationItems: l,
3740
3739
  findArchiveName: S,
@@ -3743,59 +3742,59 @@ function Fn(e) {
3743
3742
  findIcon: x,
3744
3743
  findItem: P,
3745
3744
  findStoreName: $,
3746
- findPath: T,
3745
+ findPath: _,
3747
3746
  findSingleDisplay: N,
3748
3747
  updateNavigationProperties: d
3749
3748
  }, Cr;
3750
3749
  }
3751
- function xa(e, t, l) {
3752
- var qe, Ve;
3753
- const S = Mn(), s = ct(), g = Mr(), x = rt(), { bladeData: P } = Pn({}), T = e.useBladeSrc ?? !0, N = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", d = e.storeMode ?? ((qe = s.findItem($)) == null ? void 0 : qe.storeMode), h = e.storageMode ?? ((Ve = s.findItem($)) == null ? void 0 : Ve.storageMode), u = K(e.customFilters) ?? [], r = z([]), y = te(() => Qt([
3750
+ function Da(e, t, l) {
3751
+ var qe, He;
3752
+ const S = Nn(), s = it(), g = Mr(), x = et(), { bladeData: P } = Cn({}), _ = e.useBladeSrc ?? !0, N = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", d = e.storeMode ?? ((qe = s.findItem($)) == null ? void 0 : qe.storeMode), h = e.storageMode ?? ((He = s.findItem($)) == null ? void 0 : He.storageMode), u = K(e.customFilters) ?? [], r = z([]), y = te(() => Kt([
3754
3753
  ...u.filter((U) => U.name != null).map((U) => U.name),
3755
3754
  ...e.defaultFilters ?? [],
3756
3755
  ...r.value
3757
3756
  ]).value), I = z((e.defaultFilters ?? []).map((U) => y.value.indexOf(U)));
3758
3757
  let i = z([...I.value]);
3759
- const E = te(() => Wr(i, I).value.length > 0 || Wr(I, i).value.length > 0), w = z(M());
3758
+ const E = te(() => Gr(i, I).value.length > 0 || Gr(I, i).value.length > 0), w = z(M());
3760
3759
  function M() {
3761
3760
  var U, j;
3762
- if (T) {
3763
- const H = (U = P.value) == null ? void 0 : U.page;
3764
- if (H != null)
3765
- return Number.parseInt(H);
3761
+ if (_) {
3762
+ const V = (U = P.value) == null ? void 0 : U.page;
3763
+ if (V != null)
3764
+ return Number.parseInt(V);
3766
3765
  }
3767
3766
  if (N) {
3768
- const H = (j = x == null ? void 0 : x.query) == null ? void 0 : j.page;
3769
- if (H != null)
3770
- return Number.parseInt(typeof H == "string" ? H : H.toString());
3767
+ const V = (j = x == null ? void 0 : x.query) == null ? void 0 : j.page;
3768
+ if (V != null)
3769
+ return Number.parseInt(typeof V == "string" ? V : V.toString());
3771
3770
  }
3772
3771
  return 1;
3773
3772
  }
3774
3773
  const b = te(() => {
3775
3774
  var U, j;
3776
- if (T) {
3777
- const H = (U = P.value) == null ? void 0 : U.proxyID;
3778
- if (H != null)
3779
- return H;
3775
+ if (_) {
3776
+ const V = (U = P.value) == null ? void 0 : U.proxyID;
3777
+ if (V != null)
3778
+ return V;
3780
3779
  }
3781
3780
  if (N) {
3782
- const H = (j = x == null ? void 0 : x.query) == null ? void 0 : j.query;
3783
- if (H != null)
3784
- return H;
3781
+ const V = (j = x == null ? void 0 : x.query) == null ? void 0 : j.query;
3782
+ if (V != null)
3783
+ return V;
3785
3784
  }
3786
3785
  return e.proxyID;
3787
- }), _ = z(D());
3786
+ }), T = z(D());
3788
3787
  function D() {
3789
3788
  var U, j;
3790
- if (T) {
3791
- const H = (U = P.value) == null ? void 0 : U.search;
3792
- if (H != null)
3793
- return H;
3789
+ if (_) {
3790
+ const V = (U = P.value) == null ? void 0 : U.search;
3791
+ if (V != null)
3792
+ return V;
3794
3793
  }
3795
3794
  if (N) {
3796
- const H = (j = x == null ? void 0 : x.query) == null ? void 0 : j.search;
3797
- if (H != null)
3798
- return H;
3795
+ const V = (j = x == null ? void 0 : x.query) == null ? void 0 : j.search;
3796
+ if (V != null)
3797
+ return V;
3799
3798
  }
3800
3799
  }
3801
3800
  const L = z(K(e.startShowingInactive) ?? !1), f = te(() => [
@@ -3803,7 +3802,7 @@ function xa(e, t, l) {
3803
3802
  ...(e.headers ?? []).filter((U) => U.searchable != null && U.value != null).map((U) => U.value ?? "")
3804
3803
  ]), A = z([]), J = Re([]), Q = z([]);
3805
3804
  let ee;
3806
- const { actionErrorMsg: ie, actionLoadingMsg: we, deleteItem: W, doAction: Y, getItem: V, getAllItems: ae, restoreItem: G } = it({
3805
+ const { actionErrorMsg: ie, actionLoadingMsg: we, deleteItem: W, doAction: Y, getItem: H, getAllItems: ae, restoreItem: G } = ut({
3807
3806
  nav: $,
3808
3807
  onError: e.onError ?? (l == null ? void 0 : l.onError),
3809
3808
  proxyID: b.value,
@@ -3815,27 +3814,27 @@ function xa(e, t, l) {
3815
3814
  }), X = te(() => e.errorMsg ?? ie.value), ne = te(() => e.loadingMsg ?? we.value), fe = te(() => ne.value != null), ce = Re(!1), Ee = Re(e.showSearch ?? !0), $e = z(0), Ce = te(() => {
3816
3815
  let U, j = [];
3817
3816
  I.value.forEach((O) => {
3818
- const oe = y.value[O], ve = u.find((De) => De.name == oe);
3819
- ve != null ? U = U != null ? `${U}ANDALSO${ve.filterFunction()}` : ve.filterFunction() : j.push(oe);
3817
+ const de = y.value[O], ge = u.find((De) => De.name == de);
3818
+ ge != null ? U = U != null ? `${U}ANDALSO${ge.filterFunction()}` : ge.filterFunction() : j.push(de);
3820
3819
  });
3821
- const H = {};
3822
- return Te(j) && (H.filterBy = j.toString()), U != null && (H.query = U), H;
3820
+ const V = {};
3821
+ return _e(j) && (V.filterBy = j.toString()), U != null && (V.query = U), V;
3823
3822
  }), rr = te(() => {
3824
3823
  var j;
3825
3824
  let U = e.params != null ? { ...e.params } : {};
3826
- return e.useServerPagination && e.itemsPerPage != null && (U.includeCount = !0, U.takeAmount = e.itemsPerPage, U.takeFrom = (w.value - 1) * e.itemsPerPage), Ce.value != null && (U = { ...U, ...Ce.value }), L.value && (U.includeInactive = !0), Te(e.selectProps) && (U.properties = (j = e.selectProps) == null ? void 0 : j.toString()), _.value != null && (U.searchString = _.value), U;
3825
+ return e.useServerPagination && e.itemsPerPage != null && (U.includeCount = !0, U.takeAmount = e.itemsPerPage, U.takeFrom = (w.value - 1) * e.itemsPerPage), Ce.value != null && (U = { ...U, ...Ce.value }), L.value && (U.includeInactive = !0), _e(e.selectProps) && (U.properties = (j = e.selectProps) == null ? void 0 : j.toString()), T.value != null && (U.searchString = T.value), U;
3827
3826
  }), tr = te(() => (U) => e.onCanDelete != null ? e.onCanDelete(U) : !(U != null && U.isInactive === !0)), nr = te(() => (U) => L.value ? e.onCanRestore != null ? e.onCanRestore(U) : (U == null ? void 0 : U.isInactive) === !0 : !1), Pe = te(() => Q.value.filter((U) => !U.hide)), ar = te(() => {
3828
3827
  let U = new Array();
3829
- return Pe.value.filter((H) => H.sublevel != null).forEach((H) => {
3830
- let O = U.find((oe) => oe.position == H.sublevel);
3831
- O == null ? U.push({ position: H.sublevel ?? 0, values: [H] }) : O.values.push(H);
3832
- }), U.sort(Ue.firstBy((H) => H.position));
3828
+ return Pe.value.filter((V) => V.sublevel != null).forEach((V) => {
3829
+ let O = U.find((de) => de.position == V.sublevel);
3830
+ O == null ? U.push({ position: V.sublevel ?? 0, values: [V] }) : O.values.push(V);
3831
+ }), U.sort(Ue.firstBy((V) => V.position));
3833
3832
  }), lr = te(() => {
3834
3833
  let U = new Array();
3835
- return Pe.value.filter((H) => H.level != null).forEach((H) => {
3836
- let O = U.find((oe) => oe.position == H.level);
3837
- O == null ? U.push({ position: H.level ?? 0, values: [H] }) : O.values.push(H);
3838
- }), U.sort(Ue.firstBy((H) => H.position));
3834
+ return Pe.value.filter((V) => V.level != null).forEach((V) => {
3835
+ let O = U.find((de) => de.position == V.level);
3836
+ O == null ? U.push({ position: V.level ?? 0, values: [V] }) : O.values.push(V);
3837
+ }), U.sort(Ue.firstBy((V) => V.position));
3839
3838
  }), ur = te(() => Pe.value.filter((U) => U.nav != null && U.itemText != null || U.textFilter != null || U.display != null || U.bool != null));
3840
3839
  function be(U) {
3841
3840
  if (e.itemBladeName != null) {
@@ -3853,8 +3852,8 @@ function xa(e, t, l) {
3853
3852
  function ir(U) {
3854
3853
  const {
3855
3854
  additionalUrl: j,
3856
- onDeleteAsync: H
3857
- } = { ...e }, O = K(U), oe = O.id, ve = (De) => {
3855
+ onDeleteAsync: V
3856
+ } = { ...e }, O = K(U), de = O.id, ge = (De) => {
3858
3857
  if (De != null) {
3859
3858
  let Se = A.value.findIndex((se) => se.id == De);
3860
3859
  if (Se > -1 && A.value.splice(Se, 1), e.items != null) {
@@ -3869,13 +3868,13 @@ function xa(e, t, l) {
3869
3868
  }
3870
3869
  }
3871
3870
  };
3872
- e.localOnly == !0 || $ == null ? ve(oe) : W({
3871
+ e.localOnly == !0 || $ == null ? ge(de) : W({
3873
3872
  additionalUrl: j,
3874
3873
  data: O,
3875
3874
  nav: $,
3876
3875
  onCanDeleteAsync: e.onCanDeleteAsync,
3877
- onDeleteAsync: H,
3878
- onDeleteSuccessAsync: async () => (ve(oe), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(O) : Promise.resolve(void 0)),
3876
+ onDeleteAsync: V,
3877
+ onDeleteSuccessAsync: async () => (ge(de), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(O) : Promise.resolve(void 0)),
3879
3878
  proxyID: b.value,
3880
3879
  // ...(useBladeSrc ? bladeData.value : {}),
3881
3880
  requireConfirmation: !0
@@ -3900,9 +3899,9 @@ function xa(e, t, l) {
3900
3899
  }
3901
3900
  function Ne() {
3902
3901
  let U = K(A);
3903
- if (U = e.onFilter ? e.onFilter(U) : U, _.value != null && _.value.length > 0) {
3902
+ if (U = e.onFilter ? e.onFilter(U) : U, T.value != null && T.value.length > 0) {
3904
3903
  let j = [...f.value];
3905
- e.itemText && j.push(e.itemText), Te(j) && (U = U.filter((H) => hn(H, _.value, j)));
3904
+ e.itemText && j.push(e.itemText), _e(j) && (U = U.filter((V) => dn(V, T.value, j)));
3906
3905
  }
3907
3906
  J.value = U;
3908
3907
  }
@@ -3911,7 +3910,7 @@ function xa(e, t, l) {
3911
3910
  e.headers != null && (Q.value = [...e.headers], U || Q.value.push({ title: "Actions", value: "itemActions", align: "end" }));
3912
3911
  }
3913
3912
  async function Ie(U) {
3914
- if (ce.value = !1, (U == null ? void 0 : U.resetSearch) === !0 && (Ee.value = e.showSearch ?? !1, _.value = void 0), e.items != null) {
3913
+ if (ce.value = !1, (U == null ? void 0 : U.resetSearch) === !0 && (Ee.value = e.showSearch ?? !1, T.value = void 0), e.items != null) {
3915
3914
  A.value = e.onGetSuccessAsync != null ? await e.onGetSuccessAsync(e.items) : e.items;
3916
3915
  return;
3917
3916
  }
@@ -3930,28 +3929,28 @@ function xa(e, t, l) {
3930
3929
  onGetSuccessAsync: e.onGetSuccessAsync
3931
3930
  };
3932
3931
  if (e.isSingle === !0)
3933
- j.id === "new" ? A.value = [] : A.value = await V(j);
3932
+ j.id === "new" ? A.value = [] : A.value = await H(j);
3934
3933
  else {
3935
- let H = await ae({
3934
+ let V = await ae({
3936
3935
  ...j,
3937
- onGetSuccessAsync: async (O, oe) => {
3938
- let ve = O == null ? void 0 : O.data;
3939
- return r.value = (O == null ? void 0 : O.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && O.count && ($e.value = Math.ceil(O.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (ve = await e.onGetSuccessAsync(ve, oe)), ve;
3936
+ onGetSuccessAsync: async (O, de) => {
3937
+ let ge = O == null ? void 0 : O.data;
3938
+ return r.value = (O == null ? void 0 : O.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && O.count && ($e.value = Math.ceil(O.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (ge = await e.onGetSuccessAsync(ge, de)), ge;
3940
3939
  }
3941
3940
  });
3942
- A.value = H, i.value = [...I.value];
3941
+ A.value = V, i.value = [...I.value];
3943
3942
  }
3944
3943
  Ne();
3945
3944
  }
3946
3945
  function Je(U, j) {
3947
- const H = K(U);
3948
- if (H != null && H === ee && e.canUnselect ? ee = null : ee = H, t != null && t("select", ee), !(!e.canSelect || e.onCanSelectItem != null && !e.onCanSelectItem(H)))
3946
+ const V = K(U);
3947
+ if (V != null && V === ee && e.canUnselect ? ee = null : ee = V, t != null && t("select", ee), !(!e.canSelect || e.onCanSelectItem != null && !e.onCanSelectItem(V)))
3949
3948
  if (e.onSelectItem != null)
3950
3949
  e.onSelectItem(ee);
3951
3950
  else {
3952
3951
  let O = {
3953
3952
  bladeName: e.itemBladeName,
3954
- id: H.id,
3953
+ id: V.id,
3955
3954
  nav: $
3956
3955
  };
3957
3956
  j == "page" && g.push({
@@ -3961,19 +3960,19 @@ function xa(e, t, l) {
3961
3960
  }
3962
3961
  }
3963
3962
  function je() {
3964
- Ee.value ? (Ee.value = e.showSearch ?? !1, _.value = void 0, Ie()) : Ee.value = e.showSearch ?? !0;
3963
+ Ee.value ? (Ee.value = e.showSearch ?? !1, T.value = void 0, Ie()) : Ee.value = e.showSearch ?? !0;
3965
3964
  }
3966
- return We(), Xt([_], () => {
3965
+ return We(), Qt([T], () => {
3967
3966
  Ne();
3968
- }, { debounce: 500, maxWait: 500 }), _e([L, w], async () => {
3967
+ }, { debounce: 500, maxWait: 500 }), Te([L, w], async () => {
3969
3968
  await Ie();
3970
- }), _e([X, () => e.errorMsg], ([U, j]) => {
3969
+ }), Te([X, () => e.errorMsg], ([U, j]) => {
3971
3970
  ce.value = U != null || j != null;
3972
- }), _e(() => e.refreshToggle, () => {
3971
+ }), Te(() => e.refreshToggle, () => {
3973
3972
  Ie({ deepRefresh: !0 });
3974
- }), pr([A, () => e.items], () => {
3973
+ }), Or([A, () => e.items], () => {
3975
3974
  Ne();
3976
- }), Or(async () => {
3975
+ }), Xr(async () => {
3977
3976
  var U;
3978
3977
  e.eager == !0 && await Ie({ deepRefresh: ((U = x == null ? void 0 : x.params) == null ? void 0 : U.refresh) == "true" });
3979
3978
  }), {
@@ -3994,7 +3993,7 @@ function xa(e, t, l) {
3994
3993
  loadingMsg: ne,
3995
3994
  refresh: Ie,
3996
3995
  restoreItem: Ze,
3997
- searchString: _,
3996
+ searchString: T,
3998
3997
  selectedFilters: I,
3999
3998
  selectItem: Je,
4000
3999
  // serverFilters,
@@ -4009,7 +4008,7 @@ function xa(e, t, l) {
4009
4008
  };
4010
4009
  }
4011
4010
  let Ge;
4012
- function kn(e) {
4011
+ function Fn(e) {
4013
4012
  const t = z((e == null ? void 0 : e.default) ?? "Admin"), l = z((e == null ? void 0 : e.groups) ?? []);
4014
4013
  return Ge = {
4015
4014
  currentGroup: t,
@@ -4017,8 +4016,8 @@ function kn(e) {
4017
4016
  useRoutes: e == null ? void 0 : e.useRoutes
4018
4017
  }, Ge;
4019
4018
  }
4020
- function _a() {
4021
- const e = Mr(), t = ct(), l = Dn();
4019
+ function xa() {
4020
+ const e = Mr(), t = it(), l = In();
4022
4021
  let S = e.getRoutes();
4023
4022
  return {
4024
4023
  ...Ge,
@@ -4028,25 +4027,25 @@ function _a() {
4028
4027
  const s = [];
4029
4028
  return S.forEach((x) => {
4030
4029
  var d;
4031
- const P = Ge.groupOptions.value.find((h) => h.displayName == x.meta.menuGroup), T = t.findItem(x.meta.nav), N = x.meta;
4030
+ const P = Ge.groupOptions.value.find((h) => h.displayName == x.meta.menuGroup), _ = t.findItem(x.meta.nav), N = x.meta;
4032
4031
  let $ = s.find((h) => h.displayName == N.menuGroup);
4033
4032
  $ == null && ($ = {
4034
4033
  displayName: N.menuGroup,
4035
- icon: (P == null ? void 0 : P.icon) ?? (N == null ? void 0 : N.icon) ?? (T == null ? void 0 : T.icon),
4034
+ icon: (P == null ? void 0 : P.icon) ?? (N == null ? void 0 : N.icon) ?? (_ == null ? void 0 : _.icon),
4036
4035
  isGroup: !0,
4037
4036
  items: []
4038
4037
  }, s.push($)), (d = $.items) == null || d.push({
4039
- displayName: (N == null ? void 0 : N.displayName) ?? t.findDisplay(T ?? void 0),
4040
- icon: (N == null ? void 0 : N.icon) ?? t.findIcon(T ?? void 0),
4041
- permissions: (N == null ? void 0 : N.permissions) ?? (T == null ? void 0 : T.permissions) ?? [],
4038
+ displayName: (N == null ? void 0 : N.displayName) ?? t.findDisplay(_ ?? void 0),
4039
+ icon: (N == null ? void 0 : N.icon) ?? t.findIcon(_ ?? void 0),
4040
+ permissions: (N == null ? void 0 : N.permissions) ?? (_ == null ? void 0 : _.permissions) ?? [],
4042
4041
  requiresAuth: (N == null ? void 0 : N.requiresAuth) !== !1,
4043
- subscriptions: (N == null ? void 0 : N.subscriptions) ?? (T == null ? void 0 : T.subscriptions) ?? [],
4044
- subFilters: (N == null ? void 0 : N.subFilters) ?? (T == null ? void 0 : T.subFilters) ?? [],
4042
+ subscriptions: (N == null ? void 0 : N.subscriptions) ?? (_ == null ? void 0 : _.subscriptions) ?? [],
4043
+ subFilters: (N == null ? void 0 : N.subFilters) ?? (_ == null ? void 0 : _.subFilters) ?? [],
4045
4044
  routeName: x.name
4046
4045
  });
4047
4046
  }), s.forEach((x) => {
4048
4047
  var P;
4049
- x.items = (P = x.items) == null ? void 0 : P.filter((T) => !T.requiresAuth || l.doShow(T.subscriptions, T.permissions, "view")).sort(Ue.firstBy((T) => T.displayName));
4048
+ x.items = (P = x.items) == null ? void 0 : P.filter((_) => !_.requiresAuth || l.doShow(_.subscriptions, _.permissions, "view")).sort(Ue.firstBy((_) => _.displayName));
4050
4049
  }), Ge.currentGroup.value != null ? ((g = s.find((x) => x.displayName == Ge.currentGroup.value)) == null ? void 0 : g.items) ?? [] : s.filter((x) => !x.requiresAuth || l.doShow(x.subscriptions, x.permissions, "view"));
4051
4050
  })
4052
4051
  };
@@ -4055,7 +4054,7 @@ let Pr;
4055
4054
  function Ta(e) {
4056
4055
  return Pr.usePresets(e);
4057
4056
  }
4058
- function Gn(e) {
4057
+ function kn(e) {
4059
4058
  function t(l) {
4060
4059
  if (!l)
4061
4060
  return {};
@@ -4066,34 +4065,34 @@ function Gn(e) {
4066
4065
  usePresets: t
4067
4066
  }, Pr;
4068
4067
  }
4069
- let Jr, jr, Kr, Qr = !1;
4070
- const wr = z(!1), br = z(!1), Xr = z(), pe = z();
4068
+ let Zr, Jr, jr, Kr = !1;
4069
+ const wr = z(!1), br = z(!1), Qr = z(), pe = z();
4071
4070
  let Nr;
4072
- function Ca() {
4071
+ function _a() {
4073
4072
  return Nr;
4074
4073
  }
4075
- function Wn() {
4074
+ function Gn() {
4076
4075
  function e(x) {
4077
4076
  pe.value = x.detail, br.value = !0;
4078
4077
  }
4079
4078
  function t() {
4080
- Qr || (Qr = !0, window.location.reload());
4079
+ Kr || (Kr = !0, window.location.reload());
4081
4080
  }
4082
4081
  function l() {
4083
4082
  var x;
4084
- (x = Xr.value) == null || x.prompt(), wr.value = !1;
4083
+ (x = Qr.value) == null || x.prompt(), wr.value = !1;
4085
4084
  }
4086
4085
  function S() {
4087
4086
  return !!window.matchMedia("(display-mode: standalone)").matches;
4088
4087
  }
4089
4088
  function s(x) {
4090
- x.preventDefault(), wr.value = !0, Xr.value = x;
4089
+ x.preventDefault(), wr.value = !0, Qr.value = x;
4091
4090
  }
4092
4091
  function g() {
4093
4092
  br.value = !1, !(!pe.value || !pe.value.waiting) && pe.value.waiting.postMessage({ type: "SKIP_WAITING" });
4094
4093
  }
4095
- return Ot(() => {
4096
- Jr == null && (Jr = document.addEventListener("swUpdated", e, { once: !0 })), jr == null && (jr = navigator.serviceWorker.addEventListener("controllerchange", t)), Kr == null && (Kr = window.addEventListener("beforeinstallprompt", s));
4094
+ return Xt(() => {
4095
+ Zr == null && (Zr = document.addEventListener("swUpdated", e, { once: !0 })), Jr == null && (Jr = navigator.serviceWorker.addEventListener("controllerchange", t)), jr == null && (jr = window.addEventListener("beforeinstallprompt", s));
4097
4096
  }), Nr = {
4098
4097
  canInstallApp: wr,
4099
4098
  canUpdateApp: br,
@@ -4102,122 +4101,122 @@ function Wn() {
4102
4101
  updateApp: g
4103
4102
  }, Nr;
4104
4103
  }
4105
- function Pa(e) {
4104
+ function Ca(e) {
4106
4105
  const t = [];
4107
- return (e == null ? void 0 : e.required) == !0 && t.push((l) => !!l || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? t.push(...e.otherRules) : t.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (t.push((l) => !!l || "Password is required"), t.push((l) => l != null && l.length > 9 || "Password must be 10 or more characters"), t.push((l) => /^(.*[a-z].*)$/.test(l) || "Password must contain a lowercase letter"), t.push((l) => /^(.*[A-Z].*)$/.test(l) || "Password must contain an uppercase letter"), t.push((l) => /^(.*\d.*)$/.test(l) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((l) => !!l || "Email is required"), t.push((l) => mn(l) || "Email must be valid")), t;
4106
+ return (e == null ? void 0 : e.required) == !0 && t.push((l) => !!l || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? t.push(...e.otherRules) : t.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (t.push((l) => !!l || "Password is required"), t.push((l) => l != null && l.length > 9 || "Password must be 10 or more characters"), t.push((l) => /^(.*[a-z].*)$/.test(l) || "Password must contain a lowercase letter"), t.push((l) => /^(.*[A-Z].*)$/.test(l) || "Password must contain an uppercase letter"), t.push((l) => /^(.*\d.*)$/.test(l) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((l) => !!l || "Email is required"), t.push((l) => hn(l) || "Email must be valid")), t;
4108
4107
  }
4109
- function Na(e) {
4108
+ function Pa(e) {
4110
4109
  return {
4111
4110
  install(t, l) {
4112
- var T;
4113
- console.log(t), e.vuetifyInstance ?? (e.vuetifyInstance = l.vuetifyInstance), Nn(e);
4114
- const S = Rn(), s = Fn(e);
4115
- Gn(e), (T = e.auth).demo ?? (T.demo = S), e.auth.getAuthItem = s.findItem;
4116
- const g = xn(e.auth);
4117
- kn(e.menu);
4118
- const x = In({
4111
+ var _;
4112
+ console.log(t), e.vuetifyInstance ?? (e.vuetifyInstance = l.vuetifyInstance), Pn(e);
4113
+ const S = Ln(), s = $n(e);
4114
+ kn(e), (_ = e.auth).demo ?? (_.demo = S), e.auth.getAuthItem = s.findItem;
4115
+ const g = Dn(e.auth);
4116
+ Fn(e.menu);
4117
+ const x = En({
4119
4118
  auth: g,
4120
4119
  findPath: s.findPath,
4121
4120
  useBearerToken: !0
4122
- }), P = Ln({
4121
+ }), P = Mn({
4123
4122
  getTimeZone: () => g.timeZone.value
4124
4123
  });
4125
- Bn({
4124
+ Un({
4126
4125
  dates: P
4127
- }), Wn(), bn({
4126
+ }), Gn(), wn({
4128
4127
  api: x,
4129
4128
  auth: g,
4130
4129
  navigation: s
4131
- }), wn(e.urls);
4130
+ }), yn(e.urls);
4132
4131
  }
4133
4132
  };
4134
4133
  }
4135
4134
  export {
4136
- oa as DataURIToBlob,
4137
- la as addWeekday,
4135
+ sa as DataURIToBlob,
4136
+ aa as addWeekday,
4138
4137
  Be as appendUrl,
4139
- an as capitalizeWords,
4140
- pn as checkImage,
4141
- sn as containsSearch,
4142
- aa as containsWeekday,
4138
+ nn as capitalizeWords,
4139
+ On as checkImage,
4140
+ fn as containsSearch,
4141
+ na as containsWeekday,
4143
4142
  Lr as copyDeep,
4144
- fn as copyItemByAlphabet,
4145
- In as createApi,
4146
- xn as createAuth,
4147
- Na as createCore,
4148
- Nn as createCosmetics,
4149
- Ln as createDates,
4150
- Rn as createDemo,
4151
- Bn as createFilters,
4152
- kn as createMenu,
4153
- Fn as createNavigation,
4154
- Wn as createPWA,
4155
- Gn as createPresets,
4156
- En as createSessionStoreDefinition,
4157
- bn as createStoreBuilder,
4158
- wn as createUrl,
4159
- Vr as createWholeLastUpdateStoreDefinition,
4160
- cn as csvContains,
4161
- ba as csvDefaults,
4162
- nt as deepSelect,
4163
- Jn as distinct,
4164
- jn as extensionExists,
4165
- on as extractErrorDescription,
4166
- nn as fromCamelCase,
4167
- Kn as getAreaAround,
4168
- Qn as getAreaToLeft,
4169
- Xn as getAreaToRight,
4170
- On as getGoogleMapsLocationLine,
4171
- ea as getImageData,
4172
- tt as getLocationLine,
4173
- ca as getMinDate,
4174
- un as getMinDateString,
4175
- dn as getRandomColor,
4176
- hn as hasSearch,
4177
- ia as isArrayOfLength,
4178
- Te as isLengthyArray,
4179
- ln as isMinDate,
4143
+ cn as copyItemByAlphabet,
4144
+ En as createApi,
4145
+ Dn as createAuth,
4146
+ Pa as createCore,
4147
+ Pn as createCosmetics,
4148
+ Mn as createDates,
4149
+ Ln as createDemo,
4150
+ Un as createFilters,
4151
+ Fn as createMenu,
4152
+ $n as createNavigation,
4153
+ Gn as createPWA,
4154
+ kn as createPresets,
4155
+ An as createSessionStoreDefinition,
4156
+ wn as createStoreBuilder,
4157
+ yn as createUrl,
4158
+ qr as createWholeLastUpdateStoreDefinition,
4159
+ un as csvContains,
4160
+ wa as csvDefaults,
4161
+ tt as deepSelect,
4162
+ Zn as distinct,
4163
+ Jn as extensionExists,
4164
+ sn as extractErrorDescription,
4165
+ tn as fromCamelCase,
4166
+ jn as getAreaAround,
4167
+ Kn as getAreaToLeft,
4168
+ Qn as getAreaToRight,
4169
+ Xn as getGoogleMapsLocationLine,
4170
+ pn as getImageData,
4171
+ rt as getLocationLine,
4172
+ ia as getMinDate,
4173
+ ln as getMinDateString,
4174
+ on as getRandomColor,
4175
+ dn as hasSearch,
4176
+ ua as isArrayOfLength,
4177
+ _e as isLengthyArray,
4178
+ an as isMinDate,
4180
4179
  Sr as nestedValue,
4181
- ua as removeWeekday,
4182
- fa as roundTo,
4183
- vn as singularize,
4184
- ra as toCamelCase,
4185
- da as toCompareString,
4186
- sa as toggleCSV,
4187
- ha as twiddleThumbs,
4188
- it as useActions,
4189
- rn as useActionsTracker,
4180
+ la as removeWeekday,
4181
+ ca as roundTo,
4182
+ mn as singularize,
4183
+ ea as toCamelCase,
4184
+ oa as toCompareString,
4185
+ fa as toggleCSV,
4186
+ da as twiddleThumbs,
4187
+ ut as useActions,
4188
+ en as useActionsTracker,
4190
4189
  Er as useApi,
4191
- Dn as useAuth,
4192
- qr as useAuthUrl,
4193
- Pn as useBlade,
4194
- Mn as useCSV,
4195
- ya as useCosmetics,
4196
- yn as useDataUrl,
4197
- Sa as useDates,
4198
- ut as useDbName,
4199
- Aa as useDemo,
4200
- Ea as useDocumentMeta,
4201
- _n as useDraggable,
4202
- Ia as useFilters,
4203
- pt as useId,
4204
- Da as useItem,
4205
- xa as useList,
4206
- va as useLocalCache,
4207
- wa as useLocalCosmetics,
4208
- me as useLocalDb,
4209
- _a as useMenu,
4210
- ct as useNavigation,
4211
- Ca as usePWA,
4190
+ In as useAuth,
4191
+ Wr as useAuthUrl,
4192
+ Cn as useBlade,
4193
+ Nn as useCSV,
4194
+ ga as useCosmetics,
4195
+ gn as useDataUrl,
4196
+ ba as useDates,
4197
+ lt as useDbName,
4198
+ Sa as useDemo,
4199
+ Aa as useDocumentMeta,
4200
+ xn as useDraggable,
4201
+ Ea as useFilters,
4202
+ Ot as useId,
4203
+ Ia as useItem,
4204
+ Da as useList,
4205
+ ma as useLocalCache,
4206
+ ya as useLocalCosmetics,
4207
+ ve as useLocalDb,
4208
+ xa as useMenu,
4209
+ it as useNavigation,
4210
+ _a as usePWA,
4212
4211
  Ta as usePresets,
4213
- Cn as useResizable,
4214
- Pa as useRules,
4215
- ga as useStore,
4212
+ _n as useResizable,
4213
+ Ca as useRules,
4214
+ va as useStore,
4216
4215
  Le as useStoreDefinition,
4217
- $n as useTracker,
4218
- ma as useUrls,
4219
- mn as validEmail,
4216
+ Bn as useTracker,
4217
+ ha as useUrls,
4218
+ hn as validEmail,
4220
4219
  Ye as weekdayPairs,
4221
- na as weekdayShortName,
4222
- ta as weekdayValue
4220
+ ta as weekdayShortName,
4221
+ ra as weekdayValue
4223
4222
  };