@rainte/js 0.0.17 → 0.0.19

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.
package/dist/index.js CHANGED
@@ -1,17 +1,17 @@
1
- var fs = Object.defineProperty;
2
- var ds = (r, o, u) => o in r ? fs(r, o, { enumerable: !0, configurable: !0, writable: !0, value: u }) : r[o] = u;
3
- var ji = (r, o, u) => ds(r, typeof o != "symbol" ? o + "" : o, u);
4
- var hs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1
+ var As = Object.defineProperty;
2
+ var Ps = (r, o, u) => o in r ? As(r, o, { enumerable: !0, configurable: !0, writable: !0, value: u }) : r[o] = u;
3
+ var Br = (r, o, u) => Ps(r, typeof o != "symbol" ? o + "" : o, u);
4
+ var $s = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5
5
  function Ct(r) {
6
6
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
7
7
  }
8
- var qn = { exports: {} }, ps = qn.exports, Mi;
9
- function ms() {
10
- return Mi || (Mi = 1, function(r, o) {
8
+ var Bn = { exports: {} }, Ds = Bn.exports, Fi;
9
+ function Cs() {
10
+ return Fi || (Fi = 1, function(r, o) {
11
11
  (function(u, a) {
12
12
  r.exports = a();
13
- })(ps, function() {
14
- var u = 1e3, a = 6e4, l = 36e5, d = "millisecond", h = "second", S = "minute", P = "hour", C = "day", $ = "week", M = "month", ae = "quarter", ue = "year", N = "date", j = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, J = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, re = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(Q) {
13
+ })(Ds, function() {
14
+ var u = 1e3, a = 6e4, l = 36e5, d = "millisecond", h = "second", S = "minute", P = "hour", C = "day", D = "week", M = "month", ae = "quarter", ue = "year", N = "date", j = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, J = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, re = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(Q) {
15
15
  var H = ["th", "st", "nd", "rd"], I = Q % 100;
16
16
  return "[" + Q + (H[(I - 20) % 10] || H[I] || H[0]) + "]";
17
17
  } }, G = function(Q, H, I) {
@@ -27,7 +27,7 @@ function ms() {
27
27
  }, a: function(Q) {
28
28
  return Q < 0 ? Math.ceil(Q) || 0 : Math.floor(Q);
29
29
  }, p: function(Q) {
30
- return { M, y: ue, w: $, d: C, D: N, h: P, m: S, s: h, ms: d, Q: ae }[Q] || String(Q || "").toLowerCase().replace(/s$/, "");
30
+ return { M, y: ue, w: D, d: C, D: N, h: P, m: S, s: h, ms: d, Q: ae }[Q] || String(Q || "").toLowerCase().replace(/s$/, "");
31
31
  }, u: function(Q) {
32
32
  return Q === void 0;
33
33
  } }, fe = "en", te = {};
@@ -96,18 +96,18 @@ function ms() {
96
96
  }, H.valueOf = function() {
97
97
  return this.$d.getTime();
98
98
  }, H.startOf = function(I, ee) {
99
- var L = this, oe = !!ne.u(ee) || ee, se = ne.p(I), de = function(Z, $e) {
100
- var Ne = ne.w(L.$u ? Date.UTC(L.$y, $e, Z) : new Date(L.$y, $e, Z), L);
99
+ var L = this, oe = !!ne.u(ee) || ee, se = ne.p(I), de = function(Z, De) {
100
+ var Ne = ne.w(L.$u ? Date.UTC(L.$y, De, Z) : new Date(L.$y, De, Z), L);
101
101
  return oe ? Ne : Ne.endOf(C);
102
- }, Ee = function(Z, $e) {
103
- return ne.w(L.toDate()[Z].apply(L.toDate("s"), (oe ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($e)), L);
102
+ }, Ee = function(Z, De) {
103
+ return ne.w(L.toDate()[Z].apply(L.toDate("s"), (oe ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(De)), L);
104
104
  }, Oe = this.$W, Re = this.$M, Ce = this.$D, Ie = "set" + (this.$u ? "UTC" : "");
105
105
  switch (se) {
106
106
  case ue:
107
107
  return oe ? de(1, 0) : de(31, 11);
108
108
  case M:
109
109
  return oe ? de(1, Re) : de(0, Re + 1);
110
- case $:
110
+ case D:
111
111
  var He = this.$locale().weekStart || 0, nt = (Oe < He ? Oe + 7 : Oe) - He;
112
112
  return de(oe ? Ce - nt : Ce + (6 - nt), Re);
113
113
  case C:
@@ -145,7 +145,7 @@ function ms() {
145
145
  if (se === M) return this.set(M, this.$M + I);
146
146
  if (se === ue) return this.set(ue, this.$y + I);
147
147
  if (se === C) return de(1);
148
- if (se === $) return de(7);
148
+ if (se === D) return de(7);
149
149
  var Ee = (L = {}, L[S] = a, L[P] = l, L[h] = u, L)[se] || 1, Oe = this.$d.getTime() + I * Ee;
150
150
  return ne.w(Oe, this);
151
151
  }, H.subtract = function(I, ee) {
@@ -153,15 +153,15 @@ function ms() {
153
153
  }, H.format = function(I) {
154
154
  var ee = this, L = this.$locale();
155
155
  if (!this.isValid()) return L.invalidDate || j;
156
- var oe = I || "YYYY-MM-DDTHH:mm:ssZ", se = ne.z(this), de = this.$H, Ee = this.$m, Oe = this.$M, Re = L.weekdays, Ce = L.months, Ie = L.meridiem, He = function($e, Ne, ye, Ue) {
157
- return $e && ($e[Ne] || $e(ee, oe)) || ye[Ne].slice(0, Ue);
158
- }, nt = function($e) {
159
- return ne.s(de % 12 || 12, $e, "0");
160
- }, Z = Ie || function($e, Ne, ye) {
161
- var Ue = $e < 12 ? "AM" : "PM";
156
+ var oe = I || "YYYY-MM-DDTHH:mm:ssZ", se = ne.z(this), de = this.$H, Ee = this.$m, Oe = this.$M, Re = L.weekdays, Ce = L.months, Ie = L.meridiem, He = function(De, Ne, ye, Ue) {
157
+ return De && (De[Ne] || De(ee, oe)) || ye[Ne].slice(0, Ue);
158
+ }, nt = function(De) {
159
+ return ne.s(de % 12 || 12, De, "0");
160
+ }, Z = Ie || function(De, Ne, ye) {
161
+ var Ue = De < 12 ? "AM" : "PM";
162
162
  return ye ? Ue.toLowerCase() : Ue;
163
163
  };
164
- return oe.replace(J, function($e, Ne) {
164
+ return oe.replace(J, function(De, Ne) {
165
165
  return Ne || function(ye) {
166
166
  switch (ye) {
167
167
  case "YY":
@@ -214,7 +214,7 @@ function ms() {
214
214
  return se;
215
215
  }
216
216
  return null;
217
- }($e) || se.replace(":", "");
217
+ }(De) || se.replace(":", "");
218
218
  });
219
219
  }, H.utcOffset = function() {
220
220
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
@@ -232,7 +232,7 @@ function ms() {
232
232
  case ae:
233
233
  oe = Ce() / 3;
234
234
  break;
235
- case $:
235
+ case D:
236
236
  oe = (Re - Oe) / 6048e5;
237
237
  break;
238
238
  case C:
@@ -281,19 +281,19 @@ function ms() {
281
281
  return le(1e3 * Q);
282
282
  }, le.en = te[fe], le.Ls = te, le.p = {}, le;
283
283
  });
284
- }(qn)), qn.exports;
284
+ }(Bn)), Bn.exports;
285
285
  }
286
- var ys = ms();
287
- const Jn = /* @__PURE__ */ Ct(ys);
288
- var Fn = { exports: {} }, vs = Fn.exports, Ni;
289
- function gs() {
290
- return Ni || (Ni = 1, function(r, o) {
286
+ var js = Cs();
287
+ const nn = /* @__PURE__ */ Ct(js);
288
+ var Kn = { exports: {} }, Ms = Kn.exports, Bi;
289
+ function Ns() {
290
+ return Bi || (Bi = 1, function(r, o) {
291
291
  (function(u, a) {
292
292
  r.exports = a();
293
- })(vs, function() {
293
+ })(Ms, function() {
294
294
  var u = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, a = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, l = /\d/, d = /\d\d/, h = /\d\d?/, S = /\d*[^-_:/,()\s\d]+/, P = {}, C = function(E) {
295
295
  return (E = +E) + (E > 68 ? 1900 : 2e3);
296
- }, $ = function(E) {
296
+ }, D = function(E) {
297
297
  return function(J) {
298
298
  this[E] = +J;
299
299
  };
@@ -327,10 +327,10 @@ function gs() {
327
327
  this.milliseconds = 10 * +E;
328
328
  }], SSS: [/\d{3}/, function(E) {
329
329
  this.milliseconds = +E;
330
- }], s: [h, $("seconds")], ss: [h, $("seconds")], m: [h, $("minutes")], mm: [h, $("minutes")], H: [h, $("hours")], h: [h, $("hours")], HH: [h, $("hours")], hh: [h, $("hours")], D: [h, $("day")], DD: [d, $("day")], Do: [S, function(E) {
330
+ }], s: [h, D("seconds")], ss: [h, D("seconds")], m: [h, D("minutes")], mm: [h, D("minutes")], H: [h, D("hours")], h: [h, D("hours")], HH: [h, D("hours")], hh: [h, D("hours")], D: [h, D("day")], DD: [d, D("day")], Do: [S, function(E) {
331
331
  var J = P.ordinal, re = E.match(/\d+/);
332
332
  if (this.day = re[0], J) for (var G = 1; G <= 31; G += 1) J(G).replace(/\[|\]/g, "") === E && (this.day = G);
333
- }], w: [h, $("week")], ww: [d, $("week")], M: [h, $("month")], MM: [d, $("month")], MMM: [S, function(E) {
333
+ }], w: [h, D("week")], ww: [d, D("week")], M: [h, D("month")], MM: [d, D("month")], MMM: [S, function(E) {
334
334
  var J = ae("months"), re = (ae("monthsShort") || J.map(function(G) {
335
335
  return G.slice(0, 3);
336
336
  })).indexOf(E) + 1;
@@ -340,9 +340,9 @@ function gs() {
340
340
  var J = ae("months").indexOf(E) + 1;
341
341
  if (J < 1) throw new Error();
342
342
  this.month = J % 12 || J;
343
- }], Y: [/[+-]?\d+/, $("year")], YY: [d, function(E) {
343
+ }], Y: [/[+-]?\d+/, D("year")], YY: [d, function(E) {
344
344
  this.year = C(E);
345
- }], YYYY: [/\d{4}/, $("year")], Z: M, ZZ: M };
345
+ }], YYYY: [/\d{4}/, D("year")], Z: M, ZZ: M };
346
346
  function j(E) {
347
347
  var J, re;
348
348
  J = E, re = P && P.formats;
@@ -385,10 +385,10 @@ function gs() {
385
385
  ne && (we = K[2]), P = this.$locale(), !le && we && (P = re.Ls[we]), this.$d = function(ee, L, oe, se) {
386
386
  try {
387
387
  if (["x", "X"].indexOf(L) > -1) return new Date((L === "X" ? 1e3 : 1) * ee);
388
- var de = j(L)(ee), Ee = de.year, Oe = de.month, Re = de.day, Ce = de.hours, Ie = de.minutes, He = de.seconds, nt = de.milliseconds, Z = de.zone, $e = de.week, Ne = /* @__PURE__ */ new Date(), ye = Re || (Ee || Oe ? 1 : Ne.getDate()), Ue = Ee || Ne.getFullYear(), Et = 0;
388
+ var de = j(L)(ee), Ee = de.year, Oe = de.month, Re = de.day, Ce = de.hours, Ie = de.minutes, He = de.seconds, nt = de.milliseconds, Z = de.zone, De = de.week, Ne = /* @__PURE__ */ new Date(), ye = Re || (Ee || Oe ? 1 : Ne.getDate()), Ue = Ee || Ne.getFullYear(), Et = 0;
389
389
  Ee && !Oe || (Et = Oe > 0 ? Oe - 1 : Ne.getMonth());
390
390
  var Je, Nt = Ce || 0, qt = Ie || 0, Ft = He || 0, Bt = nt || 0;
391
- return Z ? new Date(Date.UTC(Ue, Et, ye, Nt, qt, Ft, Bt + 60 * Z.offset * 1e3)) : oe ? new Date(Date.UTC(Ue, Et, ye, Nt, qt, Ft, Bt)) : (Je = new Date(Ue, Et, ye, Nt, qt, Ft, Bt), $e && (Je = se(Je).week($e).toDate()), Je);
391
+ return Z ? new Date(Date.UTC(Ue, Et, ye, Nt, qt, Ft, Bt + 60 * Z.offset * 1e3)) : oe ? new Date(Date.UTC(Ue, Et, ye, Nt, qt, Ft, Bt)) : (Je = new Date(Ue, Et, ye, Nt, qt, Ft, Bt), De && (Je = se(Je).week(De).toDate()), Je);
392
392
  } catch {
393
393
  return /* @__PURE__ */ new Date("");
394
394
  }
@@ -406,17 +406,17 @@ function gs() {
406
406
  };
407
407
  };
408
408
  });
409
- }(Fn)), Fn.exports;
409
+ }(Kn)), Kn.exports;
410
410
  }
411
- var bs = gs();
412
- const ws = /* @__PURE__ */ Ct(bs);
413
- var Bn = { exports: {} }, _s = Bn.exports, qi;
414
- function xs() {
415
- return qi || (qi = 1, function(r, o) {
411
+ var qs = Ns();
412
+ const Fs = /* @__PURE__ */ Ct(qs);
413
+ var In = { exports: {} }, Bs = In.exports, Ki;
414
+ function Ks() {
415
+ return Ki || (Ki = 1, function(r, o) {
416
416
  (function(u, a) {
417
417
  r.exports = a();
418
- })(_s, function() {
419
- var u, a, l = 1e3, d = 6e4, h = 36e5, S = 864e5, P = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = 31536e6, $ = 2628e6, M = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, ae = { years: C, months: $, days: S, hours: h, minutes: d, seconds: l, milliseconds: 1, weeks: 6048e5 }, ue = function(te) {
418
+ })(Bs, function() {
419
+ var u, a, l = 1e3, d = 6e4, h = 36e5, S = 864e5, P = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = 31536e6, D = 2628e6, M = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, ae = { years: C, months: D, days: S, hours: h, minutes: d, seconds: l, milliseconds: 1, weeks: 6048e5 }, ue = function(te) {
420
420
  return te instanceof _e;
421
421
  }, N = function(te, U, K) {
422
422
  return new _e(te, K, U.$l);
@@ -457,7 +457,7 @@ function xs() {
457
457
  }, 0);
458
458
  }, U.parseFromMilliseconds = function() {
459
459
  var K = this.$ms;
460
- this.$d.years = J(K / C), K %= C, this.$d.months = J(K / $), K %= $, this.$d.days = J(K / S), K %= S, this.$d.hours = J(K / h), K %= h, this.$d.minutes = J(K / d), K %= d, this.$d.seconds = J(K / l), K %= l, this.$d.milliseconds = K;
460
+ this.$d.years = J(K / C), K %= C, this.$d.months = J(K / D), K %= D, this.$d.days = J(K / S), K %= S, this.$d.hours = J(K / h), K %= h, this.$d.minutes = J(K / d), K %= d, this.$d.seconds = J(K / l), K %= l, this.$d.milliseconds = K;
461
461
  }, U.toISOString = function() {
462
462
  var K = G(this.$d.years, "Y"), ce = G(this.$d.months, "M"), le = +this.$d.days || 0;
463
463
  this.$d.weeks && (le += 7 * this.$d.weeks);
@@ -540,16 +540,16 @@ function xs() {
540
540
  };
541
541
  };
542
542
  });
543
- }(Bn)), Bn.exports;
543
+ }(In)), In.exports;
544
544
  }
545
- var Ss = xs();
546
- const Os = /* @__PURE__ */ Ct(Ss);
547
- var Kn = { exports: {} }, Es = Kn.exports, Fi;
548
- function ks() {
549
- return Fi || (Fi = 1, function(r, o) {
545
+ var Is = Ks();
546
+ const Ls = /* @__PURE__ */ Ct(Is);
547
+ var Ln = { exports: {} }, Us = Ln.exports, Ii;
548
+ function Ys() {
549
+ return Ii || (Ii = 1, function(r, o) {
550
550
  (function(u, a) {
551
551
  r.exports = a();
552
- })(Es, function() {
552
+ })(Us, function() {
553
553
  var u = "minute", a = /[+-]\d\d(?::?\d\d)?/g, l = /([+-]|\d\d)/g;
554
554
  return function(d, h, S) {
555
555
  var P = h.prototype;
@@ -566,12 +566,12 @@ function ks() {
566
566
  P.parse = function(j) {
567
567
  j.utc && (this.$u = !0), this.$utils().u(j.$offset) || (this.$offset = j.$offset), C.call(this, j);
568
568
  };
569
- var $ = P.init;
569
+ var D = P.init;
570
570
  P.init = function() {
571
571
  if (this.$u) {
572
572
  var j = this.$d;
573
573
  this.$y = j.getUTCFullYear(), this.$M = j.getUTCMonth(), this.$D = j.getUTCDate(), this.$W = j.getUTCDay(), this.$H = j.getUTCHours(), this.$m = j.getUTCMinutes(), this.$s = j.getUTCSeconds(), this.$ms = j.getUTCMilliseconds();
574
- } else $.call(this);
574
+ } else D.call(this);
575
575
  };
576
576
  var M = P.utcOffset;
577
577
  P.utcOffset = function(j, E) {
@@ -618,14 +618,14 @@ function ks() {
618
618
  };
619
619
  };
620
620
  });
621
- }(Kn)), Kn.exports;
621
+ }(Ln)), Ln.exports;
622
622
  }
623
- var Ts = ks();
624
- const Rs = /* @__PURE__ */ Ct(Ts);
625
- Jn.extend(ws);
626
- Jn.extend(Os);
627
- Jn.extend(Rs);
628
- const As = {
623
+ var Hs = Ys();
624
+ const zs = /* @__PURE__ */ Ct(Hs);
625
+ nn.extend(Fs);
626
+ nn.extend(Ls);
627
+ nn.extend(zs);
628
+ const uo = {
629
629
  DATETIME: "YYYY-MM-DD HH:mm:ss",
630
630
  DATE: "YYYY-MM-DD",
631
631
  TIME: "HH:mm:ss",
@@ -633,17 +633,21 @@ const As = {
633
633
  MONTH: "YYYY-MM",
634
634
  HOUR: "YYYY-MM-DD HH",
635
635
  MINUTE: "YYYY-MM-DD HH:mm"
636
- }, Pu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
636
+ }, Vs = {
637
+ dayjs: nn,
638
+ FORMAT: uo
639
+ }, Iu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
637
640
  __proto__: null,
638
- FORMAT: As,
639
- dayjs: Jn
641
+ FORMAT: uo,
642
+ dayjs: nn,
643
+ default: Vs
640
644
  }, Symbol.toStringTag, { value: "Module" }));
641
- var In = { exports: {} }, Ps = In.exports, Bi;
642
- function Ds() {
643
- return Bi || (Bi = 1, function(r, o) {
645
+ var Un = { exports: {} }, Ws = Un.exports, Li;
646
+ function Js() {
647
+ return Li || (Li = 1, function(r, o) {
644
648
  (function(u, a) {
645
649
  r.exports = a();
646
- })(Ps, function() {
650
+ })(Ws, function() {
647
651
  var u = function(e, t) {
648
652
  return (u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
649
653
  n.__proto__ = i;
@@ -660,16 +664,16 @@ function Ds() {
660
664
  for (var i, s = 0, c = t.length; s < c; s++) !i && s in t || ((i = i || Array.prototype.slice.call(t, 0, s))[s] = t[s]);
661
665
  return e.concat(i || Array.prototype.slice.call(t));
662
666
  }
663
- var d = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : hs, h = Object.keys, S = Array.isArray;
667
+ var d = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : $s, h = Object.keys, S = Array.isArray;
664
668
  function P(e, t) {
665
669
  return typeof t != "object" || h(t).forEach(function(n) {
666
670
  e[n] = t[n];
667
671
  }), e;
668
672
  }
669
673
  typeof Promise > "u" || d.Promise || (d.Promise = Promise);
670
- var C = Object.getPrototypeOf, $ = {}.hasOwnProperty;
674
+ var C = Object.getPrototypeOf, D = {}.hasOwnProperty;
671
675
  function M(e, t) {
672
- return $.call(e, t);
676
+ return D.call(e, t);
673
677
  }
674
678
  function ae(e, t) {
675
679
  typeof t == "function" && (t = t(C(e))), (typeof Reflect > "u" ? h : Reflect.ownKeys)(t).forEach(function(n) {
@@ -826,7 +830,7 @@ function Ds() {
826
830
  return j(i).from(nt), e[t] = i, e;
827
831
  }, {});
828
832
  Z.Syntax = SyntaxError, Z.Type = TypeError, Z.Range = RangeError;
829
- var $e = It.reduce(function(e, t) {
833
+ var De = It.reduce(function(e, t) {
830
834
  return e[t + "Error"] = Z[t], e;
831
835
  }, {}), Ne = Ge.reduce(function(e, t) {
832
836
  return ["Syntax", "Type", "Range"].indexOf(t) === -1 && (e[t + "Error"] = Z[t]), e;
@@ -876,7 +880,7 @@ function Ds() {
876
880
  return t.apply(this, arguments) !== !1 && e.apply(this, arguments);
877
881
  };
878
882
  }
879
- function sn(e, t) {
883
+ function un(e, t) {
880
884
  return e === ye ? t : function() {
881
885
  var n = e.apply(this, arguments);
882
886
  if (n && typeof n.then == "function") {
@@ -890,24 +894,24 @@ function Ds() {
890
894
  }
891
895
  Ne.ModifyError = Ce, Ne.DexieError = Oe, Ne.BulkError = Ie;
892
896
  var Qe = typeof location < "u" && /^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);
893
- function ti(e) {
897
+ function oi(e) {
894
898
  Qe = e;
895
899
  }
896
- var Kt = {}, ni = 100, dt = typeof Promise > "u" ? [] : function() {
900
+ var Kt = {}, si = 100, dt = typeof Promise > "u" ? [] : function() {
897
901
  var e = Promise.resolve();
898
902
  if (typeof crypto > "u" || !crypto.subtle) return [e, C(e), e];
899
903
  var t = crypto.subtle.digest("SHA-512", new Uint8Array([0]));
900
904
  return [t, C(t), e];
901
- }(), It = dt[0], Ge = dt[1], dt = dt[2], Ge = Ge && Ge.then, ht = It && It.constructor, rr = !!dt, Lt = function(e, t) {
902
- Ut.push([e, t]), an && (queueMicrotask(Io), an = !1);
903
- }, ir = !0, an = !0, pt = [], un = [], or = Ue, ot = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: ye, pgp: !1, env: {}, finalize: ye }, ie = ot, Ut = [], mt = 0, cn = [];
905
+ }(), It = dt[0], Ge = dt[1], dt = dt[2], Ge = Ge && Ge.then, ht = It && It.constructor, ir = !!dt, Lt = function(e, t) {
906
+ Ut.push([e, t]), cn && (queueMicrotask(os), cn = !1);
907
+ }, or = !0, cn = !0, pt = [], ln = [], sr = Ue, ot = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: ye, pgp: !1, env: {}, finalize: ye }, ie = ot, Ut = [], mt = 0, fn = [];
904
908
  function W(e) {
905
909
  if (typeof this != "object") throw new TypeError("Promises must be constructed via new");
906
910
  this._listeners = [], this._lib = !1;
907
911
  var t = this._PSD = ie;
908
912
  if (typeof e != "function") {
909
913
  if (e !== Kt) throw new TypeError("Not a function");
910
- return this._state = arguments[1], this._value = arguments[2], void (this._state === !1 && ar(this, this._value));
914
+ return this._state = arguments[1], this._value = arguments[2], void (this._state === !1 && ur(this, this._value));
911
915
  }
912
916
  this._state = null, this._value = null, ++t.ref, function n(i, s) {
913
917
  try {
@@ -917,75 +921,75 @@ function Ds() {
917
921
  var f = i._lib && kt();
918
922
  c && typeof c.then == "function" ? n(i, function(p, y) {
919
923
  c instanceof W ? c._then(p, y) : c.then(p, y);
920
- }) : (i._state = !0, i._value = c, ii(i)), f && Tt();
924
+ }) : (i._state = !0, i._value = c, ui(i)), f && Tt();
921
925
  }
922
- }, ar.bind(null, i));
926
+ }, ur.bind(null, i));
923
927
  } catch (c) {
924
- ar(i, c);
928
+ ur(i, c);
925
929
  }
926
930
  }(this, e);
927
931
  }
928
- var sr = { get: function() {
929
- var e = ie, t = hn;
932
+ var ar = { get: function() {
933
+ var e = ie, t = mn;
930
934
  function n(i, s) {
931
- var c = this, f = !e.global && (e !== ie || t !== hn), p = f && !at(), y = new W(function(g, _) {
932
- ur(c, new ri(si(i, e, f, p), si(s, e, f, p), g, _, e));
935
+ var c = this, f = !e.global && (e !== ie || t !== mn), p = f && !at(), y = new W(function(g, _) {
936
+ cr(c, new ai(li(i, e, f, p), li(s, e, f, p), g, _, e));
933
937
  });
934
938
  return this._consoleTask && (y._consoleTask = this._consoleTask), y;
935
939
  }
936
940
  return n.prototype = Kt, n;
937
941
  }, set: function(e) {
938
- N(this, "then", e && e.prototype === Kt ? sr : { get: function() {
942
+ N(this, "then", e && e.prototype === Kt ? ar : { get: function() {
939
943
  return e;
940
- }, set: sr.set });
944
+ }, set: ar.set });
941
945
  } };
942
- function ri(e, t, n, i, s) {
946
+ function ai(e, t, n, i, s) {
943
947
  this.onFulfilled = typeof e == "function" ? e : null, this.onRejected = typeof t == "function" ? t : null, this.resolve = n, this.reject = i, this.psd = s;
944
948
  }
945
- function ar(e, t) {
949
+ function ur(e, t) {
946
950
  var n, i;
947
- un.push(t), e._state === null && (n = e._lib && kt(), t = or(t), e._state = !1, e._value = t, i = e, pt.some(function(s) {
951
+ ln.push(t), e._state === null && (n = e._lib && kt(), t = sr(t), e._state = !1, e._value = t, i = e, pt.some(function(s) {
948
952
  return s._value === i._value;
949
- }) || pt.push(i), ii(e), n && Tt());
953
+ }) || pt.push(i), ui(e), n && Tt());
950
954
  }
951
- function ii(e) {
955
+ function ui(e) {
952
956
  var t = e._listeners;
953
957
  e._listeners = [];
954
- for (var n = 0, i = t.length; n < i; ++n) ur(e, t[n]);
958
+ for (var n = 0, i = t.length; n < i; ++n) cr(e, t[n]);
955
959
  var s = e._PSD;
956
960
  --s.ref || s.finalize(), mt === 0 && (++mt, Lt(function() {
957
- --mt == 0 && cr();
961
+ --mt == 0 && lr();
958
962
  }, []));
959
963
  }
960
- function ur(e, t) {
964
+ function cr(e, t) {
961
965
  if (e._state !== null) {
962
966
  var n = e._state ? t.onFulfilled : t.onRejected;
963
967
  if (n === null) return (e._state ? t.resolve : t.reject)(e._value);
964
- ++t.psd.ref, ++mt, Lt(Ko, [n, e, t]);
968
+ ++t.psd.ref, ++mt, Lt(is, [n, e, t]);
965
969
  } else e._listeners.push(t);
966
970
  }
967
- function Ko(e, t, n) {
971
+ function is(e, t, n) {
968
972
  try {
969
973
  var i, s = t._value;
970
- !t._state && un.length && (un = []), i = Qe && t._consoleTask ? t._consoleTask.run(function() {
974
+ !t._state && ln.length && (ln = []), i = Qe && t._consoleTask ? t._consoleTask.run(function() {
971
975
  return e(s);
972
- }) : e(s), t._state || un.indexOf(s) !== -1 || function(c) {
976
+ }) : e(s), t._state || ln.indexOf(s) !== -1 || function(c) {
973
977
  for (var f = pt.length; f; ) if (pt[--f]._value === c._value) return pt.splice(f, 1);
974
978
  }(t), n.resolve(i);
975
979
  } catch (c) {
976
980
  n.reject(c);
977
981
  } finally {
978
- --mt == 0 && cr(), --n.psd.ref || n.psd.finalize();
982
+ --mt == 0 && lr(), --n.psd.ref || n.psd.finalize();
979
983
  }
980
984
  }
981
- function Io() {
985
+ function os() {
982
986
  yt(ot, function() {
983
987
  kt() && Tt();
984
988
  });
985
989
  }
986
990
  function kt() {
987
- var e = ir;
988
- return an = ir = !1, e;
991
+ var e = or;
992
+ return cn = or = !1, e;
989
993
  }
990
994
  function Tt() {
991
995
  var e, t, n;
@@ -995,16 +999,16 @@ function Ds() {
995
999
  i[0].apply(null, i[1]);
996
1000
  }
997
1001
  while (0 < Ut.length);
998
- an = ir = !0;
1002
+ cn = or = !0;
999
1003
  }
1000
- function cr() {
1004
+ function lr() {
1001
1005
  var e = pt;
1002
1006
  pt = [], e.forEach(function(i) {
1003
1007
  i._PSD.onunhandled.call(null, i._value, i);
1004
1008
  });
1005
- for (var t = cn.slice(0), n = t.length; n; ) t[--n]();
1009
+ for (var t = fn.slice(0), n = t.length; n; ) t[--n]();
1006
1010
  }
1007
- function ln(e) {
1011
+ function dn(e) {
1008
1012
  return new W(Kt, !1, e);
1009
1013
  }
1010
1014
  function Te(e, t) {
@@ -1020,15 +1024,15 @@ function Ds() {
1020
1024
  }
1021
1025
  };
1022
1026
  }
1023
- ae(W.prototype, { then: sr, _then: function(e, t) {
1024
- ur(this, new ri(null, null, e, t, ie));
1027
+ ae(W.prototype, { then: ar, _then: function(e, t) {
1028
+ cr(this, new ai(null, null, e, t, ie));
1025
1029
  }, catch: function(e) {
1026
1030
  if (arguments.length === 1) return this.then(null, e);
1027
1031
  var t = e, n = arguments[1];
1028
1032
  return typeof t == "function" ? this.then(null, function(i) {
1029
- return (i instanceof t ? n : ln)(i);
1033
+ return (i instanceof t ? n : dn)(i);
1030
1034
  }) : this.then(null, function(i) {
1031
- return (i && i.name === t ? n : ln)(i);
1035
+ return (i && i.name === t ? n : dn)(i);
1032
1036
  });
1033
1037
  }, finally: function(e) {
1034
1038
  return this.then(function(t) {
@@ -1037,7 +1041,7 @@ function Ds() {
1037
1041
  });
1038
1042
  }, function(t) {
1039
1043
  return W.resolve(e()).then(function() {
1040
- return ln(t);
1044
+ return dn(t);
1041
1045
  });
1042
1046
  });
1043
1047
  }, timeout: function(e, t) {
@@ -1048,8 +1052,8 @@ function Ds() {
1048
1052
  }, e);
1049
1053
  n.then(i, s).finally(clearTimeout.bind(null, c));
1050
1054
  }) : this;
1051
- } }), typeof Symbol < "u" && Symbol.toStringTag && N(W.prototype, Symbol.toStringTag, "Dexie.Promise"), ot.env = oi(), ae(W, { all: function() {
1052
- var e = se.apply(null, arguments).map(pn);
1055
+ } }), typeof Symbol < "u" && Symbol.toStringTag && N(W.prototype, Symbol.toStringTag, "Dexie.Promise"), ot.env = ci(), ae(W, { all: function() {
1056
+ var e = se.apply(null, arguments).map(yn);
1053
1057
  return new W(function(t, n) {
1054
1058
  e.length === 0 && t([]);
1055
1059
  var i = e.length;
@@ -1063,8 +1067,8 @@ function Ds() {
1063
1067
  return e instanceof W ? e : e && typeof e.then == "function" ? new W(function(t, n) {
1064
1068
  e.then(t, n);
1065
1069
  }) : new W(Kt, !0, e);
1066
- }, reject: ln, race: function() {
1067
- var e = se.apply(null, arguments).map(pn);
1070
+ }, reject: dn, race: function() {
1071
+ var e = se.apply(null, arguments).map(yn);
1068
1072
  return new W(function(t, n) {
1069
1073
  e.map(function(i) {
1070
1074
  return W.resolve(i).then(t, n);
@@ -1075,15 +1079,15 @@ function Ds() {
1075
1079
  }, set: function(e) {
1076
1080
  return ie = e;
1077
1081
  } }, totalEchoes: { get: function() {
1078
- return hn;
1082
+ return mn;
1079
1083
  } }, newPSD: st, usePSD: yt, scheduler: { get: function() {
1080
1084
  return Lt;
1081
1085
  }, set: function(e) {
1082
1086
  Lt = e;
1083
1087
  } }, rejectionMapper: { get: function() {
1084
- return or;
1088
+ return sr;
1085
1089
  }, set: function(e) {
1086
- or = e;
1090
+ sr = e;
1087
1091
  } }, follow: function(e, t) {
1088
1092
  return new W(function(n, i) {
1089
1093
  return st(function(s, c) {
@@ -1092,16 +1096,16 @@ function Ds() {
1092
1096
  var p, y = this;
1093
1097
  p = function() {
1094
1098
  y.unhandleds.length === 0 ? s() : c(y.unhandleds[0]);
1095
- }, cn.push(function g() {
1096
- p(), cn.splice(cn.indexOf(g), 1);
1099
+ }, fn.push(function g() {
1100
+ p(), fn.splice(fn.indexOf(g), 1);
1097
1101
  }), ++mt, Lt(function() {
1098
- --mt == 0 && cr();
1102
+ --mt == 0 && lr();
1099
1103
  }, []);
1100
1104
  }, f.finalize), e();
1101
1105
  }, t, n, i);
1102
1106
  });
1103
1107
  } }), ht && (ht.allSettled && N(W, "allSettled", function() {
1104
- var e = se.apply(null, arguments).map(pn);
1108
+ var e = se.apply(null, arguments).map(yn);
1105
1109
  return new W(function(t) {
1106
1110
  e.length === 0 && t([]);
1107
1111
  var n = e.length, i = new Array(n);
@@ -1116,7 +1120,7 @@ function Ds() {
1116
1120
  });
1117
1121
  });
1118
1122
  }), ht.any && typeof AggregateError < "u" && N(W, "any", function() {
1119
- var e = se.apply(null, arguments).map(pn);
1123
+ var e = se.apply(null, arguments).map(yn);
1120
1124
  return new W(function(t, n) {
1121
1125
  e.length === 0 && n(new AggregateError([]));
1122
1126
  var i = e.length, s = new Array(i);
@@ -1129,39 +1133,39 @@ function Ds() {
1129
1133
  });
1130
1134
  });
1131
1135
  }), ht.withResolvers && (W.withResolvers = ht.withResolvers));
1132
- var je = { awaits: 0, echoes: 0, id: 0 }, Lo = 0, fn = [], dn = 0, hn = 0, Uo = 0;
1136
+ var je = { awaits: 0, echoes: 0, id: 0 }, ss = 0, hn = [], pn = 0, mn = 0, as = 0;
1133
1137
  function st(e, t, n, i) {
1134
1138
  var s = ie, c = Object.create(s);
1135
- return c.parent = s, c.ref = 0, c.global = !1, c.id = ++Uo, ot.env, c.env = rr ? { Promise: W, PromiseProp: { value: W, configurable: !0, writable: !0 }, all: W.all, race: W.race, allSettled: W.allSettled, any: W.any, resolve: W.resolve, reject: W.reject } : {}, t && P(c, t), ++s.ref, c.finalize = function() {
1139
+ return c.parent = s, c.ref = 0, c.global = !1, c.id = ++as, ot.env, c.env = ir ? { Promise: W, PromiseProp: { value: W, configurable: !0, writable: !0 }, all: W.all, race: W.race, allSettled: W.allSettled, any: W.any, resolve: W.resolve, reject: W.reject } : {}, t && P(c, t), ++s.ref, c.finalize = function() {
1136
1140
  --this.parent.ref || this.parent.finalize();
1137
1141
  }, i = yt(c, e, n, i), c.ref === 0 && c.finalize(), i;
1138
1142
  }
1139
1143
  function Rt() {
1140
- return je.id || (je.id = ++Lo), ++je.awaits, je.echoes += ni, je.id;
1144
+ return je.id || (je.id = ++ss), ++je.awaits, je.echoes += si, je.id;
1141
1145
  }
1142
1146
  function at() {
1143
- return !!je.awaits && (--je.awaits == 0 && (je.id = 0), je.echoes = je.awaits * ni, !0);
1147
+ return !!je.awaits && (--je.awaits == 0 && (je.id = 0), je.echoes = je.awaits * si, !0);
1144
1148
  }
1145
- function pn(e) {
1149
+ function yn(e) {
1146
1150
  return je.echoes && e && e.constructor === ht ? (Rt(), e.then(function(t) {
1147
1151
  return at(), t;
1148
1152
  }, function(t) {
1149
1153
  return at(), Ae(t);
1150
1154
  })) : e;
1151
1155
  }
1152
- function Yo() {
1153
- var e = fn[fn.length - 1];
1154
- fn.pop(), ut(e, !1);
1156
+ function us() {
1157
+ var e = hn[hn.length - 1];
1158
+ hn.pop(), ut(e, !1);
1155
1159
  }
1156
1160
  function ut(e, t) {
1157
1161
  var n, i = ie;
1158
- (t ? !je.echoes || dn++ && e === ie : !dn || --dn && e === ie) || queueMicrotask(t ? (function(s) {
1159
- ++hn, je.echoes && --je.echoes != 0 || (je.echoes = je.awaits = je.id = 0), fn.push(ie), ut(s, !0);
1160
- }).bind(null, e) : Yo), e !== ie && (ie = e, i === ot && (ot.env = oi()), rr && (n = ot.env.Promise, t = e.env, (i.global || e.global) && (Object.defineProperty(d, "Promise", t.PromiseProp), n.all = t.all, n.race = t.race, n.resolve = t.resolve, n.reject = t.reject, t.allSettled && (n.allSettled = t.allSettled), t.any && (n.any = t.any))));
1162
+ (t ? !je.echoes || pn++ && e === ie : !pn || --pn && e === ie) || queueMicrotask(t ? (function(s) {
1163
+ ++mn, je.echoes && --je.echoes != 0 || (je.echoes = je.awaits = je.id = 0), hn.push(ie), ut(s, !0);
1164
+ }).bind(null, e) : us), e !== ie && (ie = e, i === ot && (ot.env = ci()), ir && (n = ot.env.Promise, t = e.env, (i.global || e.global) && (Object.defineProperty(d, "Promise", t.PromiseProp), n.all = t.all, n.race = t.race, n.resolve = t.resolve, n.reject = t.reject, t.allSettled && (n.allSettled = t.allSettled), t.any && (n.any = t.any))));
1161
1165
  }
1162
- function oi() {
1166
+ function ci() {
1163
1167
  var e = d.Promise;
1164
- return rr ? { Promise: e, PromiseProp: Object.getOwnPropertyDescriptor(d, "Promise"), all: e.all, race: e.race, allSettled: e.allSettled, any: e.any, resolve: e.resolve, reject: e.reject } : {};
1168
+ return ir ? { Promise: e, PromiseProp: Object.getOwnPropertyDescriptor(d, "Promise"), all: e.all, race: e.race, allSettled: e.allSettled, any: e.any, resolve: e.resolve, reject: e.reject } : {};
1165
1169
  }
1166
1170
  function yt(e, t, n, i, s) {
1167
1171
  var c = ie;
@@ -1171,7 +1175,7 @@ function Ds() {
1171
1175
  ut(c, !1);
1172
1176
  }
1173
1177
  }
1174
- function si(e, t, n, i) {
1178
+ function li(e, t, n, i) {
1175
1179
  return typeof e != "function" ? e : function() {
1176
1180
  var s = ie;
1177
1181
  n && Rt(), ut(t, !0);
@@ -1182,30 +1186,30 @@ function Ds() {
1182
1186
  }
1183
1187
  };
1184
1188
  }
1185
- function lr(e) {
1186
- Promise === ht && je.echoes === 0 ? dn === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
1189
+ function fr(e) {
1190
+ Promise === ht && je.echoes === 0 ? pn === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
1187
1191
  }
1188
1192
  ("" + Ge).indexOf("[native code]") === -1 && (Rt = at = ye);
1189
- var Ae = W.reject, vt = "￿", rt = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", ai = "String expected.", At = [], mn = "__dbnames", fr = "readonly", dr = "readwrite";
1193
+ var Ae = W.reject, vt = "￿", rt = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", fi = "String expected.", At = [], vn = "__dbnames", dr = "readonly", hr = "readwrite";
1190
1194
  function gt(e, t) {
1191
1195
  return e ? t ? function() {
1192
1196
  return e.apply(this, arguments) && t.apply(this, arguments);
1193
1197
  } : e : t;
1194
1198
  }
1195
- var ui = { type: 3, lower: -1 / 0, lowerOpen: !1, upper: [[]], upperOpen: !1 };
1196
- function yn(e) {
1199
+ var di = { type: 3, lower: -1 / 0, lowerOpen: !1, upper: [[]], upperOpen: !1 };
1200
+ function gn(e) {
1197
1201
  return typeof e != "string" || /\./.test(e) ? function(t) {
1198
1202
  return t;
1199
1203
  } : function(t) {
1200
1204
  return t[e] === void 0 && e in t && delete (t = we(t))[e], t;
1201
1205
  };
1202
1206
  }
1203
- function ci() {
1207
+ function hi() {
1204
1208
  throw Z.Type();
1205
1209
  }
1206
1210
  function xe(e, t) {
1207
1211
  try {
1208
- var n = li(e), i = li(t);
1212
+ var n = pi(e), i = pi(t);
1209
1213
  if (n !== i) return n === "Array" ? 1 : i === "Array" ? -1 : n === "binary" ? 1 : i === "binary" ? -1 : n === "string" ? 1 : i === "string" ? -1 : n === "Date" ? 1 : i !== "Date" ? NaN : -1;
1210
1214
  switch (n) {
1211
1215
  case "number":
@@ -1216,7 +1220,7 @@ function Ds() {
1216
1220
  return function(s, c) {
1217
1221
  for (var f = s.length, p = c.length, y = f < p ? f : p, g = 0; g < y; ++g) if (s[g] !== c[g]) return s[g] < c[g] ? -1 : 1;
1218
1222
  return f === p ? 0 : f < p ? -1 : 1;
1219
- }(fi(e), fi(t));
1223
+ }(mi(e), mi(t));
1220
1224
  case "Array":
1221
1225
  return function(s, c) {
1222
1226
  for (var f = s.length, p = c.length, y = f < p ? f : p, g = 0; g < y; ++g) {
@@ -1230,14 +1234,14 @@ function Ds() {
1230
1234
  }
1231
1235
  return NaN;
1232
1236
  }
1233
- function li(e) {
1237
+ function pi(e) {
1234
1238
  var t = typeof e;
1235
1239
  return t != "object" ? t : ArrayBuffer.isView(e) ? "binary" : (e = H(e), e === "ArrayBuffer" ? "binary" : e);
1236
1240
  }
1237
- function fi(e) {
1241
+ function mi(e) {
1238
1242
  return e instanceof Uint8Array ? e : ArrayBuffer.isView(e) ? new Uint8Array(e.buffer, e.byteOffset, e.byteLength) : new Uint8Array(e);
1239
1243
  }
1240
- var di = (ke.prototype._trans = function(e, t, n) {
1244
+ var yi = (ke.prototype._trans = function(e, t, n) {
1241
1245
  var i = this._tx || ie.trans, s = this.name, c = Qe && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(e === "readonly" ? "read" : "write", " ").concat(this.name));
1242
1246
  function f(g, _, m) {
1243
1247
  if (!m.schema[s]) throw new Z.NotFound("Table " + s + " not part of transaction");
@@ -1354,7 +1358,7 @@ function Ds() {
1354
1358
  function s() {
1355
1359
  return t !== null && t.apply(this, arguments) || this;
1356
1360
  }
1357
- (this.schema.mappedClass = e).prototype instanceof ci && (function(y, g) {
1361
+ (this.schema.mappedClass = e).prototype instanceof hi && (function(y, g) {
1358
1362
  if (typeof g != "function" && g !== null) throw new TypeError("Class extends value " + String(g) + " is not a constructor or null");
1359
1363
  function _() {
1360
1364
  this.constructor = y;
@@ -1384,7 +1388,7 @@ function Ds() {
1384
1388
  });
1385
1389
  }, ke.prototype.add = function(e, t) {
1386
1390
  var n = this, i = this.schema.primKey, s = i.auto, c = i.keyPath, f = e;
1387
- return c && s && (f = yn(c)(e)), this._trans("readwrite", function(p) {
1391
+ return c && s && (f = gn(c)(e)), this._trans("readwrite", function(p) {
1388
1392
  return n.core.mutate({ trans: p, type: "add", keys: t != null ? [t] : null, values: [f] });
1389
1393
  }).then(function(p) {
1390
1394
  return p.numFailures ? W.reject(p.failures[0]) : p.lastResult;
@@ -1399,7 +1403,7 @@ function Ds() {
1399
1403
  return typeof e != "object" || S(e) ? this.where(":id").equals(e).modify(t) : (e = te(e, this.schema.primKey.keyPath), e === void 0 ? Ae(new Z.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(e).modify(t));
1400
1404
  }, ke.prototype.put = function(e, t) {
1401
1405
  var n = this, i = this.schema.primKey, s = i.auto, c = i.keyPath, f = e;
1402
- return c && s && (f = yn(c)(e)), this._trans("readwrite", function(p) {
1406
+ return c && s && (f = gn(c)(e)), this._trans("readwrite", function(p) {
1403
1407
  return n.core.mutate({ trans: p, type: "put", values: [f], keys: t != null ? [t] : null });
1404
1408
  }).then(function(p) {
1405
1409
  return p.numFailures ? W.reject(p.failures[0]) : p.lastResult;
@@ -1420,7 +1424,7 @@ function Ds() {
1420
1424
  }, ke.prototype.clear = function() {
1421
1425
  var e = this;
1422
1426
  return this._trans("readwrite", function(t) {
1423
- return e.core.mutate({ trans: t, type: "deleteRange", range: ui });
1427
+ return e.core.mutate({ trans: t, type: "deleteRange", range: di });
1424
1428
  }).then(function(t) {
1425
1429
  return t.numFailures ? W.reject(t.failures[0]) : void 0;
1426
1430
  });
@@ -1439,7 +1443,7 @@ function Ds() {
1439
1443
  var g = i.schema.primKey, p = g.auto, g = g.keyPath;
1440
1444
  if (g && s) throw new Z.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");
1441
1445
  if (s && s.length !== e.length) throw new Z.InvalidArgument("Arguments objects and keys must have the same length");
1442
- var y = e.length, g = g && p ? e.map(yn(g)) : e;
1446
+ var y = e.length, g = g && p ? e.map(gn(g)) : e;
1443
1447
  return i.core.mutate({ trans: f, type: "add", keys: s, values: g, wantResults: c }).then(function(w) {
1444
1448
  var m = w.numFailures, O = w.results, v = w.lastResult, w = w.failures;
1445
1449
  if (m === 0) return c ? O : v;
@@ -1452,7 +1456,7 @@ function Ds() {
1452
1456
  var g = i.schema.primKey, p = g.auto, g = g.keyPath;
1453
1457
  if (g && s) throw new Z.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");
1454
1458
  if (s && s.length !== e.length) throw new Z.InvalidArgument("Arguments objects and keys must have the same length");
1455
- var y = e.length, g = g && p ? e.map(yn(g)) : e;
1459
+ var y = e.length, g = g && p ? e.map(gn(g)) : e;
1456
1460
  return i.core.mutate({ trans: f, type: "put", keys: s, values: g, wantResults: c }).then(function(w) {
1457
1461
  var m = w.numFailures, O = w.results, v = w.lastResult, w = w.failures;
1458
1462
  if (m === 0) return c ? O : v;
@@ -1552,26 +1556,26 @@ function Ds() {
1552
1556
  function Pt(e, t) {
1553
1557
  return !(e.filter || e.algorithm || e.or) && (t ? e.justLimit : !e.replayFilter);
1554
1558
  }
1555
- function hr(e, t) {
1559
+ function pr(e, t) {
1556
1560
  e.filter = gt(e.filter, t);
1557
1561
  }
1558
- function pr(e, t, n) {
1562
+ function mr(e, t, n) {
1559
1563
  var i = e.replayFilter;
1560
1564
  e.replayFilter = i ? function() {
1561
1565
  return gt(i(), t());
1562
1566
  } : t, e.justLimit = n && !i;
1563
1567
  }
1564
- function vn(e, t) {
1568
+ function bn(e, t) {
1565
1569
  if (e.isPrimKey) return t.primaryKey;
1566
1570
  var n = t.getIndexByKeyPath(e.index);
1567
1571
  if (!n) throw new Z.Schema("KeyPath " + e.index + " on object store " + t.name + " is not indexed");
1568
1572
  return n;
1569
1573
  }
1570
- function hi(e, t, n) {
1571
- var i = vn(e, t.schema);
1574
+ function vi(e, t, n) {
1575
+ var i = bn(e, t.schema);
1572
1576
  return t.openCursor({ trans: n, values: !e.keysOnly, reverse: e.dir === "prev", unique: !!e.unique, query: { index: i, range: e.range } });
1573
1577
  }
1574
- function gn(e, t, n, i) {
1578
+ function wn(e, t, n, i) {
1575
1579
  var s = e.replayFilter ? gt(e.filter, e.replayFilter()) : e.filter;
1576
1580
  if (e.or) {
1577
1581
  var c = {}, f = function(p, y, g) {
@@ -1582,11 +1586,11 @@ function Ds() {
1582
1586
  return y.fail(O);
1583
1587
  }) || ((m = "" + (_ = y.primaryKey)) == "[object ArrayBuffer]" && (m = "" + new Uint8Array(_)), M(c, m) || (c[m] = !0, t(p, y, g)));
1584
1588
  };
1585
- return Promise.all([e.or._iterate(f, n), pi(hi(e, i, n), e.algorithm, f, !e.keysOnly && e.valueMapper)]);
1589
+ return Promise.all([e.or._iterate(f, n), gi(vi(e, i, n), e.algorithm, f, !e.keysOnly && e.valueMapper)]);
1586
1590
  }
1587
- return pi(hi(e, i, n), gt(e.algorithm, s), t, !e.keysOnly && e.valueMapper);
1591
+ return gi(vi(e, i, n), gt(e.algorithm, s), t, !e.keysOnly && e.valueMapper);
1588
1592
  }
1589
- function pi(e, t, n, i) {
1593
+ function gi(e, t, n, i) {
1590
1594
  var s = Te(i ? function(c, f, p) {
1591
1595
  return n(i(c), f, p);
1592
1596
  } : n);
@@ -1607,7 +1611,7 @@ function Ds() {
1607
1611
  });
1608
1612
  });
1609
1613
  }
1610
- var zt = (mi.prototype.execute = function(e) {
1614
+ var zt = (bi.prototype.execute = function(e) {
1611
1615
  var t = this["@@propmod"];
1612
1616
  if (t.add !== void 0) {
1613
1617
  var n = t.add;
@@ -1634,11 +1638,11 @@ function Ds() {
1634
1638
  throw new TypeError("Invalid subtrahend ".concat(i));
1635
1639
  }
1636
1640
  return n = (n = t.replacePrefix) === null || n === void 0 ? void 0 : n[0], n && typeof e == "string" && e.startsWith(n) ? t.replacePrefix[1] + e.substring(n.length) : e;
1637
- }, mi);
1638
- function mi(e) {
1641
+ }, bi);
1642
+ function bi(e) {
1639
1643
  this["@@propmod"] = e;
1640
1644
  }
1641
- var Ho = (Se.prototype._read = function(e, t) {
1645
+ var cs = (Se.prototype._read = function(e, t) {
1642
1646
  var n = this._ctx;
1643
1647
  return n.error ? n.table._trans(null, Ae.bind(null, n.error)) : n.table._trans("readonly", e).then(t);
1644
1648
  }, Se.prototype._write = function(e) {
@@ -1648,7 +1652,7 @@ function Ds() {
1648
1652
  var t = this._ctx;
1649
1653
  t.algorithm = gt(t.algorithm, e);
1650
1654
  }, Se.prototype._iterate = function(e, t) {
1651
- return gn(this._ctx, e, t, this._ctx.table.core);
1655
+ return wn(this._ctx, e, t, this._ctx.table.core);
1652
1656
  }, Se.prototype.clone = function(e) {
1653
1657
  var t = Object.create(this.constructor.prototype), n = Object.create(this._ctx);
1654
1658
  return e && P(n, e), t._ctx = n, t;
@@ -1657,17 +1661,17 @@ function Ds() {
1657
1661
  }, Se.prototype.each = function(e) {
1658
1662
  var t = this._ctx;
1659
1663
  return this._read(function(n) {
1660
- return gn(t, e, n, t.table.core);
1664
+ return wn(t, e, n, t.table.core);
1661
1665
  });
1662
1666
  }, Se.prototype.count = function(e) {
1663
1667
  var t = this;
1664
1668
  return this._read(function(n) {
1665
1669
  var i = t._ctx, s = i.table.core;
1666
- if (Pt(i, !0)) return s.count({ trans: n, query: { index: vn(i, s.schema), range: i.range } }).then(function(f) {
1670
+ if (Pt(i, !0)) return s.count({ trans: n, query: { index: bn(i, s.schema), range: i.range } }).then(function(f) {
1667
1671
  return Math.min(f, i.limit);
1668
1672
  });
1669
1673
  var c = 0;
1670
- return gn(i, function() {
1674
+ return wn(i, function() {
1671
1675
  return ++c, !1;
1672
1676
  }, n, s).then(function() {
1673
1677
  return c;
@@ -1690,13 +1694,13 @@ function Ds() {
1690
1694
  return this._read(function(n) {
1691
1695
  var i = t._ctx;
1692
1696
  if (i.dir === "next" && Pt(i, !0) && 0 < i.limit) {
1693
- var s = i.valueMapper, c = vn(i, i.table.core.schema);
1697
+ var s = i.valueMapper, c = bn(i, i.table.core.schema);
1694
1698
  return i.table.core.query({ trans: n, limit: i.limit, values: !0, query: { index: c, range: i.range } }).then(function(p) {
1695
1699
  return p = p.result, s ? p.map(s) : p;
1696
1700
  });
1697
1701
  }
1698
1702
  var f = [];
1699
- return gn(i, function(p) {
1703
+ return wn(i, function(p) {
1700
1704
  return f.push(p);
1701
1705
  }, n, i.table.core).then(function() {
1702
1706
  return f;
@@ -1704,28 +1708,28 @@ function Ds() {
1704
1708
  }, e);
1705
1709
  }, Se.prototype.offset = function(e) {
1706
1710
  var t = this._ctx;
1707
- return e <= 0 || (t.offset += e, Pt(t) ? pr(t, function() {
1711
+ return e <= 0 || (t.offset += e, Pt(t) ? mr(t, function() {
1708
1712
  var n = e;
1709
1713
  return function(i, s) {
1710
1714
  return n === 0 || (n === 1 ? --n : s(function() {
1711
1715
  i.advance(n), n = 0;
1712
1716
  }), !1);
1713
1717
  };
1714
- }) : pr(t, function() {
1718
+ }) : mr(t, function() {
1715
1719
  var n = e;
1716
1720
  return function() {
1717
1721
  return --n < 0;
1718
1722
  };
1719
1723
  })), this;
1720
1724
  }, Se.prototype.limit = function(e) {
1721
- return this._ctx.limit = Math.min(this._ctx.limit, e), pr(this._ctx, function() {
1725
+ return this._ctx.limit = Math.min(this._ctx.limit, e), mr(this._ctx, function() {
1722
1726
  var t = e;
1723
1727
  return function(n, i, s) {
1724
1728
  return --t <= 0 && i(s), 0 <= t;
1725
1729
  };
1726
1730
  }, !0), this;
1727
1731
  }, Se.prototype.until = function(e, t) {
1728
- return hr(this._ctx, function(n, i, s) {
1732
+ return pr(this._ctx, function(n, i, s) {
1729
1733
  return !e(n.value) || (i(s), t);
1730
1734
  }), this;
1731
1735
  }, Se.prototype.first = function(e) {
@@ -1736,7 +1740,7 @@ function Ds() {
1736
1740
  return this.reverse().first(e);
1737
1741
  }, Se.prototype.filter = function(e) {
1738
1742
  var t;
1739
- return hr(this._ctx, function(n) {
1743
+ return pr(this._ctx, function(n) {
1740
1744
  return e(n.value);
1741
1745
  }), (t = this._ctx).isMatch = gt(t.isMatch, e), this;
1742
1746
  }, Se.prototype.and = function(e) {
@@ -1771,7 +1775,7 @@ function Ds() {
1771
1775
  }, Se.prototype.primaryKeys = function(e) {
1772
1776
  var t = this._ctx;
1773
1777
  if (t.dir === "next" && Pt(t, !0) && 0 < t.limit) return this._read(function(i) {
1774
- var s = vn(t, t.table.core.schema);
1778
+ var s = bn(t, t.table.core.schema);
1775
1779
  return t.table.core.query({ trans: i, values: !1, limit: t.limit, query: { index: s, range: t.range } });
1776
1780
  }).then(function(i) {
1777
1781
  return i.result;
@@ -1795,7 +1799,7 @@ function Ds() {
1795
1799
  var e = this._ctx, e = e.index && e.table.schema.idxByName[e.index];
1796
1800
  if (!e || !e.multi) return this;
1797
1801
  var t = {};
1798
- return hr(this._ctx, function(s) {
1802
+ return pr(this._ctx, function(s) {
1799
1803
  var i = s.primaryKey.toString(), s = M(t, i);
1800
1804
  return t[i] = !0, !s;
1801
1805
  }), this;
@@ -1805,8 +1809,8 @@ function Ds() {
1805
1809
  var s, c, f;
1806
1810
  f = typeof e == "function" ? e : (s = h(e), c = s.length, function(b) {
1807
1811
  for (var k = !1, T = 0; T < c; ++T) {
1808
- var R = s[T], D = e[R], q = te(b, R);
1809
- D instanceof zt ? (U(b, R, D.execute(q)), k = !0) : q !== D && (U(b, R, D), k = !0);
1812
+ var R = s[T], $ = e[R], q = te(b, R);
1813
+ $ instanceof zt ? (U(b, R, $.execute(q)), k = !0) : q !== $ && (U(b, R, $), k = !0);
1810
1814
  }
1811
1815
  return k;
1812
1816
  });
@@ -1815,17 +1819,17 @@ function Ds() {
1815
1819
  function O(b, R) {
1816
1820
  var T = R.failures, R = R.numFailures;
1817
1821
  w += b - R;
1818
- for (var D = 0, q = h(T); D < q.length; D++) {
1819
- var z = q[D];
1822
+ for (var $ = 0, q = h(T); $ < q.length; $++) {
1823
+ var z = q[$];
1820
1824
  v.push(T[z]);
1821
1825
  }
1822
1826
  }
1823
1827
  var v = [], w = 0, x = [];
1824
1828
  return t.clone().primaryKeys().then(function(b) {
1825
1829
  function k(R) {
1826
- var D = Math.min(_, b.length - R);
1827
- return p.getMany({ trans: i, keys: b.slice(R, R + D), cache: "immutable" }).then(function(q) {
1828
- for (var z = [], F = [], B = y ? [] : null, V = [], Y = 0; Y < D; ++Y) {
1830
+ var $ = Math.min(_, b.length - R);
1831
+ return p.getMany({ trans: i, keys: b.slice(R, R + $), cache: "immutable" }).then(function(q) {
1832
+ for (var z = [], F = [], B = y ? [] : null, V = [], Y = 0; Y < $; ++Y) {
1829
1833
  var X = q[Y], pe = { value: we(X), primKey: b[R + Y] };
1830
1834
  f.call(pe, pe.value, pe) !== !1 && (pe.value == null ? V.push(b[R + Y]) : y || xe(g(X), g(pe.value)) === 0 ? (F.push(pe.value), y && B.push(b[R + Y])) : (V.push(b[R + Y]), z.push(pe.value)));
1831
1835
  }
@@ -1837,15 +1841,15 @@ function Ds() {
1837
1841
  return O(F.length, ve);
1838
1842
  });
1839
1843
  }).then(function() {
1840
- return (0 < V.length || T && e === mr) && p.mutate({ trans: i, type: "delete", keys: V, criteria: T, isAdditionalChunk: 0 < R }).then(function(ve) {
1844
+ return (0 < V.length || T && e === yr) && p.mutate({ trans: i, type: "delete", keys: V, criteria: T, isAdditionalChunk: 0 < R }).then(function(ve) {
1841
1845
  return O(V.length, ve);
1842
1846
  });
1843
1847
  }).then(function() {
1844
- return b.length > R + D && k(R + _);
1848
+ return b.length > R + $ && k(R + _);
1845
1849
  });
1846
1850
  });
1847
1851
  }
1848
- var T = Pt(n) && n.limit === 1 / 0 && (typeof e != "function" || e === mr) && { index: n.index, range: n.range };
1852
+ var T = Pt(n) && n.limit === 1 / 0 && (typeof e != "function" || e === yr) && { index: n.index, range: n.range };
1849
1853
  return k(0).then(function() {
1850
1854
  if (0 < v.length) throw new Ce("Error modifying one or more objects", v, w, x);
1851
1855
  return b.length;
@@ -1865,32 +1869,32 @@ function Ds() {
1865
1869
  return c - f;
1866
1870
  });
1867
1871
  });
1868
- }) : this.modify(mr);
1872
+ }) : this.modify(yr);
1869
1873
  }, Se);
1870
1874
  function Se() {
1871
1875
  }
1872
- var mr = function(e, t) {
1876
+ var yr = function(e, t) {
1873
1877
  return t.value = null;
1874
1878
  };
1875
- function zo(e, t) {
1879
+ function ls(e, t) {
1876
1880
  return e < t ? -1 : e === t ? 0 : 1;
1877
1881
  }
1878
- function Vo(e, t) {
1882
+ function fs(e, t) {
1879
1883
  return t < e ? -1 : e === t ? 0 : 1;
1880
1884
  }
1881
1885
  function ze(e, t, n) {
1882
- return e = e instanceof vi ? new e.Collection(e) : e, e._ctx.error = new (n || TypeError)(t), e;
1886
+ return e = e instanceof _i ? new e.Collection(e) : e, e._ctx.error = new (n || TypeError)(t), e;
1883
1887
  }
1884
- function Dt(e) {
1888
+ function $t(e) {
1885
1889
  return new e.Collection(e, function() {
1886
- return yi("");
1890
+ return wi("");
1887
1891
  }).limit(0);
1888
1892
  }
1889
- function bn(e, t, n, i) {
1893
+ function _n(e, t, n, i) {
1890
1894
  var s, c, f, p, y, g, _, m = n.length;
1891
1895
  if (!n.every(function(w) {
1892
1896
  return typeof w == "string";
1893
- })) return ze(e, ai);
1897
+ })) return ze(e, fi);
1894
1898
  function O(w) {
1895
1899
  s = w === "next" ? function(b) {
1896
1900
  return b.toUpperCase();
@@ -1900,7 +1904,7 @@ function Ds() {
1900
1904
  return b.toLowerCase();
1901
1905
  } : function(b) {
1902
1906
  return b.toUpperCase();
1903
- }, f = w === "next" ? zo : Vo;
1907
+ }, f = w === "next" ? ls : fs;
1904
1908
  var x = n.map(function(b) {
1905
1909
  return { lower: c(b), upper: s(b) };
1906
1910
  }).sort(function(b, k) {
@@ -1923,7 +1927,7 @@ function Ds() {
1923
1927
  if (typeof k != "string") return !1;
1924
1928
  var T = c(k);
1925
1929
  if (t(T, y, v)) return !0;
1926
- for (var R = null, D = v; D < m; ++D) {
1930
+ for (var R = null, $ = v; $ < m; ++$) {
1927
1931
  var q = function(z, F, B, V, Y, X) {
1928
1932
  for (var pe = Math.min(z.length, V.length), ve = -1, ge = 0; ge < pe; ++ge) {
1929
1933
  var Ve = F[ge];
@@ -1931,8 +1935,8 @@ function Ds() {
1931
1935
  Y(z[ge], Ve) < 0 && (ve = ge);
1932
1936
  }
1933
1937
  return pe < V.length && X === "next" ? z + B.substr(z.length) : pe < z.length && X === "prev" ? z.substr(0, B.length) : ve < 0 ? null : z.substr(0, ve) + V[ve] + B.substr(ve + 1);
1934
- }(k, T, p[D], y[D], f, g);
1935
- q === null && R === null ? v = D + 1 : (R === null || 0 < f(R, q)) && (R = q);
1938
+ }(k, T, p[$], y[$], f, g);
1939
+ q === null && R === null ? v = $ + 1 : (R === null || 0 < f(R, q)) && (R = q);
1936
1940
  }
1937
1941
  return x(R !== null ? function() {
1938
1942
  w.continue(R + _);
@@ -1942,15 +1946,15 @@ function Ds() {
1942
1946
  function ct(e, t, n, i) {
1943
1947
  return { type: 2, lower: e, upper: t, lowerOpen: n, upperOpen: i };
1944
1948
  }
1945
- function yi(e) {
1949
+ function wi(e) {
1946
1950
  return { type: 1, lower: e, upper: e };
1947
1951
  }
1948
- var vi = (Object.defineProperty(Me.prototype, "Collection", { get: function() {
1952
+ var _i = (Object.defineProperty(Me.prototype, "Collection", { get: function() {
1949
1953
  return this._ctx.table.db.Collection;
1950
1954
  }, enumerable: !1, configurable: !0 }), Me.prototype.between = function(e, t, n, i) {
1951
1955
  n = n !== !1, i = i === !0;
1952
1956
  try {
1953
- return 0 < this._cmp(e, t) || this._cmp(e, t) === 0 && (n || i) && (!n || !i) ? Dt(this) : new this.Collection(this, function() {
1957
+ return 0 < this._cmp(e, t) || this._cmp(e, t) === 0 && (n || i) && (!n || !i) ? $t(this) : new this.Collection(this, function() {
1954
1958
  return ct(e, t, !n, !i);
1955
1959
  });
1956
1960
  } catch {
@@ -1958,7 +1962,7 @@ function Ds() {
1958
1962
  }
1959
1963
  }, Me.prototype.equals = function(e) {
1960
1964
  return e == null ? ze(this, rt) : new this.Collection(this, function() {
1961
- return yi(e);
1965
+ return wi(e);
1962
1966
  });
1963
1967
  }, Me.prototype.above = function(e) {
1964
1968
  return e == null ? ze(this, rt) : new this.Collection(this, function() {
@@ -1977,23 +1981,23 @@ function Ds() {
1977
1981
  return ct(void 0, e);
1978
1982
  });
1979
1983
  }, Me.prototype.startsWith = function(e) {
1980
- return typeof e != "string" ? ze(this, ai) : this.between(e, e + vt, !0, !0);
1984
+ return typeof e != "string" ? ze(this, fi) : this.between(e, e + vt, !0, !0);
1981
1985
  }, Me.prototype.startsWithIgnoreCase = function(e) {
1982
- return e === "" ? this.startsWith(e) : bn(this, function(t, n) {
1986
+ return e === "" ? this.startsWith(e) : _n(this, function(t, n) {
1983
1987
  return t.indexOf(n[0]) === 0;
1984
1988
  }, [e], vt);
1985
1989
  }, Me.prototype.equalsIgnoreCase = function(e) {
1986
- return bn(this, function(t, n) {
1990
+ return _n(this, function(t, n) {
1987
1991
  return t === n[0];
1988
1992
  }, [e], "");
1989
1993
  }, Me.prototype.anyOfIgnoreCase = function() {
1990
1994
  var e = se.apply(oe, arguments);
1991
- return e.length === 0 ? Dt(this) : bn(this, function(t, n) {
1995
+ return e.length === 0 ? $t(this) : _n(this, function(t, n) {
1992
1996
  return n.indexOf(t) !== -1;
1993
1997
  }, e, "");
1994
1998
  }, Me.prototype.startsWithAnyOfIgnoreCase = function() {
1995
1999
  var e = se.apply(oe, arguments);
1996
- return e.length === 0 ? Dt(this) : bn(this, function(t, n) {
2000
+ return e.length === 0 ? $t(this) : _n(this, function(t, n) {
1997
2001
  return n.some(function(i) {
1998
2002
  return t.indexOf(i) === 0;
1999
2003
  });
@@ -2005,7 +2009,7 @@ function Ds() {
2005
2009
  } catch {
2006
2010
  return ze(this, rt);
2007
2011
  }
2008
- if (t.length === 0) return Dt(this);
2012
+ if (t.length === 0) return $t(this);
2009
2013
  var i = new this.Collection(this, function() {
2010
2014
  return ct(t[0], t[t.length - 1]);
2011
2015
  });
@@ -2035,7 +2039,7 @@ function Ds() {
2035
2039
  return t.push([e[e.length - 1], this.db._maxKey]), this.inAnyRange(t, { includeLowers: !1, includeUppers: !1 });
2036
2040
  }, Me.prototype.inAnyRange = function(k, t) {
2037
2041
  var n = this, i = this._cmp, s = this._ascending, c = this._descending, f = this._min, p = this._max;
2038
- if (k.length === 0) return Dt(this);
2042
+ if (k.length === 0) return $t(this);
2039
2043
  if (!k.every(function(T) {
2040
2044
  return T[0] !== void 0 && T[1] !== void 0 && s(T[0], T[1]) <= 0;
2041
2045
  })) return ze(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", Z.InvalidArgument);
@@ -2045,14 +2049,14 @@ function Ds() {
2045
2049
  }
2046
2050
  try {
2047
2051
  (_ = k.reduce(function(T, R) {
2048
- for (var D = 0, q = T.length; D < q; ++D) {
2049
- var z = T[D];
2052
+ for (var $ = 0, q = T.length; $ < q; ++$) {
2053
+ var z = T[$];
2050
2054
  if (i(R[0], z[1]) < 0 && 0 < i(R[1], z[0])) {
2051
2055
  z[0] = f(z[0], R[0]), z[1] = p(z[1], R[1]);
2052
2056
  break;
2053
2057
  }
2054
2058
  }
2055
- return D === q && T.push(R), T;
2059
+ return $ === q && T.push(R), T;
2056
2060
  }, [])).sort(O);
2057
2061
  } catch {
2058
2062
  return ze(this, rt);
@@ -2070,8 +2074,8 @@ function Ds() {
2070
2074
  });
2071
2075
  return k._ondirectionchange = function(T) {
2072
2076
  m = T === "next" ? (b = w, s) : (b = x, c), _.sort(O);
2073
- }, k._addAlgorithm(function(T, R, D) {
2074
- for (var q, z = T.key; b(z); ) if (++v === _.length) return R(D), !1;
2077
+ }, k._addAlgorithm(function(T, R, $) {
2078
+ for (var q, z = T.key; b(z); ) if (++v === _.length) return R($), !1;
2075
2079
  return !w(q = z) && !x(q) || (n._cmp(z, _[v][1]) === 0 || n._cmp(z, _[v][0]) === 0 || R(function() {
2076
2080
  m === s ? T.continue(_[v][0]) : T.continue(_[v][1]);
2077
2081
  }), !1);
@@ -2080,7 +2084,7 @@ function Ds() {
2080
2084
  var e = se.apply(oe, arguments);
2081
2085
  return e.every(function(t) {
2082
2086
  return typeof t == "string";
2083
- }) ? e.length === 0 ? Dt(this) : this.inAnyRange(e.map(function(t) {
2087
+ }) ? e.length === 0 ? $t(this) : this.inAnyRange(e.map(function(t) {
2084
2088
  return [t, t + vt];
2085
2089
  })) : ze(this, "startsWithAnyOf() only works with strings");
2086
2090
  }, Me);
@@ -2094,7 +2098,7 @@ function Ds() {
2094
2098
  function Vt(e) {
2095
2099
  e.stopPropagation && e.stopPropagation(), e.preventDefault && e.preventDefault();
2096
2100
  }
2097
- var Wt = "storagemutated", yr = "x-storagemutated-1", lt = Yt(null, Wt), Wo = (et.prototype._lock = function() {
2101
+ var Wt = "storagemutated", vr = "x-storagemutated-1", lt = Yt(null, Wt), ds = (et.prototype._lock = function() {
2098
2102
  return _e(!ie.global), ++this._reculock, this._reculock !== 1 || ie.global || (ie.lockOwnerFor = this), this;
2099
2103
  }, et.prototype._unlock = function() {
2100
2104
  if (_e(!ie.global), --this._reculock == 0) for (ie.global || (ie.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
@@ -2182,13 +2186,13 @@ function Ds() {
2182
2186
  }, et);
2183
2187
  function et() {
2184
2188
  }
2185
- function vr(e, t, n, i, s, c, f) {
2186
- return { name: e, keyPath: t, unique: n, multi: i, auto: s, compound: c, src: (n && !f ? "&" : "") + (i ? "*" : "") + (s ? "++" : "") + gi(t) };
2189
+ function gr(e, t, n, i, s, c, f) {
2190
+ return { name: e, keyPath: t, unique: n, multi: i, auto: s, compound: c, src: (n && !f ? "&" : "") + (i ? "*" : "") + (s ? "++" : "") + xi(t) };
2187
2191
  }
2188
- function gi(e) {
2192
+ function xi(e) {
2189
2193
  return typeof e == "string" ? e : e ? "[" + [].join.call(e, "+") + "]" : "";
2190
2194
  }
2191
- function gr(e, t, n) {
2195
+ function br(e, t, n) {
2192
2196
  return { name: e, primKey: t, indexes: n, mappedClass: null, idxByName: (i = function(s) {
2193
2197
  return [s.name, s];
2194
2198
  }, n.reduce(function(s, c, f) {
@@ -2207,7 +2211,7 @@ function Ds() {
2207
2211
  }, vt;
2208
2212
  }
2209
2213
  };
2210
- function br(e) {
2214
+ function wr(e) {
2211
2215
  return e == null ? function() {
2212
2216
  } : typeof e == "string" ? (t = e).split(".").length === 1 ? function(n) {
2213
2217
  return n[t];
@@ -2218,14 +2222,14 @@ function Ds() {
2218
2222
  };
2219
2223
  var t;
2220
2224
  }
2221
- function bi(e) {
2225
+ function Si(e) {
2222
2226
  return [].slice.call(e);
2223
2227
  }
2224
- var Jo = 0;
2228
+ var hs = 0;
2225
2229
  function Gt(e) {
2226
2230
  return e == null ? ":id" : typeof e == "string" ? e : "[".concat(e.join("+"), "]");
2227
2231
  }
2228
- function Go(e, t, y) {
2232
+ function ps(e, t, y) {
2229
2233
  function i(b) {
2230
2234
  if (b.type === 3) return null;
2231
2235
  if (b.type === 4) throw new Error("Cannot convert never type to IDBKeyRange");
@@ -2235,7 +2239,7 @@ function Ds() {
2235
2239
  function s(O) {
2236
2240
  var v, w = O.name;
2237
2241
  return { name: w, schema: O, mutate: function(x) {
2238
- var b = x.trans, k = x.type, T = x.keys, R = x.values, D = x.range;
2242
+ var b = x.trans, k = x.type, T = x.keys, R = x.values, $ = x.range;
2239
2243
  return new Promise(function(q, z) {
2240
2244
  q = Te(q);
2241
2245
  var F = b.objectStore(w), B = F.keyPath == null, V = k === "put" || k === "add";
@@ -2248,62 +2252,62 @@ function Ds() {
2248
2252
  }
2249
2253
  var ve = [], ge = [], Ve = 0;
2250
2254
  if (k === "deleteRange") {
2251
- if (D.type === 4) return q({ numFailures: Ve, failures: ge, results: [], lastResult: void 0 });
2252
- D.type === 3 ? ve.push(Y = F.clear()) : ve.push(Y = F.delete(i(D)));
2255
+ if ($.type === 4) return q({ numFailures: Ve, failures: ge, results: [], lastResult: void 0 });
2256
+ $.type === 3 ? ve.push(Y = F.clear()) : ve.push(Y = F.delete(i($)));
2253
2257
  } else {
2254
2258
  var B = V ? B ? [R, T] : [R, null] : [T, null], he = B[0], Fe = B[1];
2255
2259
  if (V) for (var Be = 0; Be < X; ++Be) ve.push(Y = Fe && Fe[Be] !== void 0 ? F[k](he[Be], Fe[Be]) : F[k](he[Be])), Y.onerror = pe;
2256
2260
  else for (Be = 0; Be < X; ++Be) ve.push(Y = F[k](he[Be])), Y.onerror = pe;
2257
2261
  }
2258
- function $n(Le) {
2259
- Le = Le.target.result, ve.forEach(function(_t, qr) {
2260
- return _t.error != null && (ge[qr] = _t.error);
2262
+ function jn(Le) {
2263
+ Le = Le.target.result, ve.forEach(function(_t, Fr) {
2264
+ return _t.error != null && (ge[Fr] = _t.error);
2261
2265
  }), q({ numFailures: Ve, failures: ge, results: k === "delete" ? T : ve.map(function(_t) {
2262
2266
  return _t.result;
2263
2267
  }), lastResult: Le });
2264
2268
  }
2265
2269
  Y.onerror = function(Le) {
2266
- pe(Le), $n(Le);
2267
- }, Y.onsuccess = $n;
2270
+ pe(Le), jn(Le);
2271
+ }, Y.onsuccess = jn;
2268
2272
  });
2269
2273
  }, getMany: function(x) {
2270
2274
  var b = x.trans, k = x.keys;
2271
2275
  return new Promise(function(T, R) {
2272
2276
  T = Te(T);
2273
- for (var D, q = b.objectStore(w), z = k.length, F = new Array(z), B = 0, V = 0, Y = function(ve) {
2277
+ for (var $, q = b.objectStore(w), z = k.length, F = new Array(z), B = 0, V = 0, Y = function(ve) {
2274
2278
  ve = ve.target, F[ve._pos] = ve.result, ++V === B && T(F);
2275
- }, X = Ze(R), pe = 0; pe < z; ++pe) k[pe] != null && ((D = q.get(k[pe]))._pos = pe, D.onsuccess = Y, D.onerror = X, ++B);
2279
+ }, X = Ze(R), pe = 0; pe < z; ++pe) k[pe] != null && (($ = q.get(k[pe]))._pos = pe, $.onsuccess = Y, $.onerror = X, ++B);
2276
2280
  B === 0 && T(F);
2277
2281
  });
2278
2282
  }, get: function(x) {
2279
2283
  var b = x.trans, k = x.key;
2280
2284
  return new Promise(function(T, R) {
2281
2285
  T = Te(T);
2282
- var D = b.objectStore(w).get(k);
2283
- D.onsuccess = function(q) {
2286
+ var $ = b.objectStore(w).get(k);
2287
+ $.onsuccess = function(q) {
2284
2288
  return T(q.target.result);
2285
- }, D.onerror = Ze(R);
2289
+ }, $.onerror = Ze(R);
2286
2290
  });
2287
2291
  }, query: (v = g, function(x) {
2288
2292
  return new Promise(function(b, k) {
2289
2293
  b = Te(b);
2290
- var T, R, D, B = x.trans, q = x.values, z = x.limit, Y = x.query, F = z === 1 / 0 ? void 0 : z, V = Y.index, Y = Y.range, B = B.objectStore(w), V = V.isPrimaryKey ? B : B.index(V.name), Y = i(Y);
2294
+ var T, R, $, B = x.trans, q = x.values, z = x.limit, Y = x.query, F = z === 1 / 0 ? void 0 : z, V = Y.index, Y = Y.range, B = B.objectStore(w), V = V.isPrimaryKey ? B : B.index(V.name), Y = i(Y);
2291
2295
  if (z === 0) return b({ result: [] });
2292
2296
  v ? ((F = q ? V.getAll(Y, F) : V.getAllKeys(Y, F)).onsuccess = function(X) {
2293
2297
  return b({ result: X.target.result });
2294
- }, F.onerror = Ze(k)) : (T = 0, R = !q && "openKeyCursor" in V ? V.openKeyCursor(Y) : V.openCursor(Y), D = [], R.onsuccess = function(X) {
2298
+ }, F.onerror = Ze(k)) : (T = 0, R = !q && "openKeyCursor" in V ? V.openKeyCursor(Y) : V.openCursor(Y), $ = [], R.onsuccess = function(X) {
2295
2299
  var pe = R.result;
2296
- return pe ? (D.push(q ? pe.value : pe.primaryKey), ++T === z ? b({ result: D }) : void pe.continue()) : b({ result: D });
2300
+ return pe ? ($.push(q ? pe.value : pe.primaryKey), ++T === z ? b({ result: $ }) : void pe.continue()) : b({ result: $ });
2297
2301
  }, R.onerror = Ze(k));
2298
2302
  });
2299
2303
  }), openCursor: function(x) {
2300
- var b = x.trans, k = x.values, T = x.query, R = x.reverse, D = x.unique;
2304
+ var b = x.trans, k = x.values, T = x.query, R = x.reverse, $ = x.unique;
2301
2305
  return new Promise(function(q, z) {
2302
2306
  q = Te(q);
2303
- var V = T.index, F = T.range, B = b.objectStore(w), B = V.isPrimaryKey ? B : B.index(V.name), V = R ? D ? "prevunique" : "prev" : D ? "nextunique" : "next", Y = !k && "openKeyCursor" in B ? B.openKeyCursor(i(F), V) : B.openCursor(i(F), V);
2307
+ var V = T.index, F = T.range, B = b.objectStore(w), B = V.isPrimaryKey ? B : B.index(V.name), V = R ? $ ? "prevunique" : "prev" : $ ? "nextunique" : "next", Y = !k && "openKeyCursor" in B ? B.openKeyCursor(i(F), V) : B.openCursor(i(F), V);
2304
2308
  Y.onerror = Ze(z), Y.onsuccess = Te(function(X) {
2305
2309
  var pe, ve, ge, Ve, he = Y.result;
2306
- he ? (he.___id = ++Jo, he.done = !1, pe = he.continue.bind(he), ve = (ve = he.continuePrimaryKey) && ve.bind(he), ge = he.advance.bind(he), Ve = function() {
2310
+ he ? (he.___id = ++hs, he.done = !1, pe = he.continue.bind(he), ve = (ve = he.continuePrimaryKey) && ve.bind(he), ge = he.advance.bind(he), Ve = function() {
2307
2311
  throw new Error("Cursor not stopped");
2308
2312
  }, he.trans = b, he.stop = he.continue = he.continuePrimaryKey = he.advance = function() {
2309
2313
  throw new Error("Cursor not started");
@@ -2325,35 +2329,35 @@ function Ds() {
2325
2329
  throw new Error("Cursor behind last entry");
2326
2330
  }, he.stop();
2327
2331
  }
2328
- var $n = new Promise(function(Le, _t) {
2329
- Le = Te(Le), Y.onerror = Ze(_t), he.fail = _t, he.stop = function(qr) {
2330
- he.stop = he.continue = he.continuePrimaryKey = he.advance = Ve, Le(qr);
2332
+ var jn = new Promise(function(Le, _t) {
2333
+ Le = Te(Le), Y.onerror = Ze(_t), he.fail = _t, he.stop = function(Fr) {
2334
+ he.stop = he.continue = he.continuePrimaryKey = he.advance = Ve, Le(Fr);
2331
2335
  };
2332
2336
  });
2333
2337
  return Y.onsuccess = Te(function(Le) {
2334
2338
  Y.onsuccess = Be, Be();
2335
- }), he.continue = pe, he.continuePrimaryKey = ve, he.advance = ge, Be(), $n;
2339
+ }), he.continue = pe, he.continuePrimaryKey = ve, he.advance = ge, Be(), jn;
2336
2340
  }, q(he)) : q(null);
2337
2341
  }, z);
2338
2342
  });
2339
2343
  }, count: function(x) {
2340
2344
  var b = x.query, k = x.trans, T = b.index, R = b.range;
2341
- return new Promise(function(D, q) {
2345
+ return new Promise(function($, q) {
2342
2346
  var z = k.objectStore(w), F = T.isPrimaryKey ? z : z.index(T.name), z = i(R), F = z ? F.count(z) : F.count();
2343
2347
  F.onsuccess = Te(function(B) {
2344
- return D(B.target.result);
2348
+ return $(B.target.result);
2345
2349
  }), F.onerror = Ze(q);
2346
2350
  });
2347
2351
  } };
2348
2352
  }
2349
- var c, f, p, _ = (f = y, p = bi((c = e).objectStoreNames), { schema: { name: c.name, tables: p.map(function(O) {
2353
+ var c, f, p, _ = (f = y, p = Si((c = e).objectStoreNames), { schema: { name: c.name, tables: p.map(function(O) {
2350
2354
  return f.objectStore(O);
2351
2355
  }).map(function(O) {
2352
- var v = O.keyPath, b = O.autoIncrement, w = S(v), x = {}, b = { name: O.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: v == null, compound: w, keyPath: v, autoIncrement: b, unique: !0, extractKey: br(v) }, indexes: bi(O.indexNames).map(function(k) {
2356
+ var v = O.keyPath, b = O.autoIncrement, w = S(v), x = {}, b = { name: O.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: v == null, compound: w, keyPath: v, autoIncrement: b, unique: !0, extractKey: wr(v) }, indexes: Si(O.indexNames).map(function(k) {
2353
2357
  return O.index(k);
2354
- }).map(function(D) {
2355
- var T = D.name, R = D.unique, q = D.multiEntry, D = D.keyPath, q = { name: T, compound: S(D), keyPath: D, unique: R, multiEntry: q, extractKey: br(D) };
2356
- return x[Gt(D)] = q;
2358
+ }).map(function($) {
2359
+ var T = $.name, R = $.unique, q = $.multiEntry, $ = $.keyPath, q = { name: T, compound: S($), keyPath: $, unique: R, multiEntry: q, extractKey: wr($) };
2360
+ return x[Gt($)] = q;
2357
2361
  }), getIndexByKeyPath: function(k) {
2358
2362
  return x[Gt(k)];
2359
2363
  } };
@@ -2366,14 +2370,14 @@ function Ds() {
2366
2370
  return m[O];
2367
2371
  }, MIN_KEY: -1 / 0, MAX_KEY: Jt(t), schema: y };
2368
2372
  }
2369
- function Xo(e, t, n, i) {
2373
+ function ms(e, t, n, i) {
2370
2374
  var s = n.IDBKeyRange;
2371
- return n.indexedDB, { dbcore: (i = Go(t, s, i), e.dbcore.reduce(function(c, f) {
2375
+ return n.indexedDB, { dbcore: (i = ps(t, s, i), e.dbcore.reduce(function(c, f) {
2372
2376
  return f = f.create, a(a({}, c), f(c));
2373
2377
  }, i)) };
2374
2378
  }
2375
- function wn(e, i) {
2376
- var n = i.db, i = Xo(e._middlewares, n, e._deps, i);
2379
+ function xn(e, i) {
2380
+ var n = i.db, i = ms(e._middlewares, n, e._deps, i);
2377
2381
  e.core = i.dbcore, e.tables.forEach(function(s) {
2378
2382
  var c = s.name;
2379
2383
  e.core.schema.tables.some(function(f) {
@@ -2381,7 +2385,7 @@ function Ds() {
2381
2385
  }) && (s.core = e.core.table(c), e[c] instanceof e.Table && (e[c].core = s.core));
2382
2386
  });
2383
2387
  }
2384
- function _n(e, t, n, i) {
2388
+ function Sn(e, t, n, i) {
2385
2389
  n.forEach(function(s) {
2386
2390
  var c = i[s];
2387
2391
  t.forEach(function(f) {
@@ -2396,64 +2400,64 @@ function Ds() {
2396
2400
  });
2397
2401
  });
2398
2402
  }
2399
- function wr(e, t) {
2403
+ function _r(e, t) {
2400
2404
  t.forEach(function(n) {
2401
2405
  for (var i in n) n[i] instanceof e.Table && delete n[i];
2402
2406
  });
2403
2407
  }
2404
- function Qo(e, t) {
2408
+ function ys(e, t) {
2405
2409
  return e._cfg.version - t._cfg.version;
2406
2410
  }
2407
- function Zo(e, t, n, i) {
2411
+ function vs(e, t, n, i) {
2408
2412
  var s = e._dbSchema;
2409
- n.objectStoreNames.contains("$meta") && !s.$meta && (s.$meta = gr("$meta", _i("")[0], []), e._storeNames.push("$meta"));
2413
+ n.objectStoreNames.contains("$meta") && !s.$meta && (s.$meta = br("$meta", Ei("")[0], []), e._storeNames.push("$meta"));
2410
2414
  var c = e._createTransaction("readwrite", e._storeNames, s);
2411
2415
  c.create(n), c._completion.catch(i);
2412
2416
  var f = c._reject.bind(c), p = ie.transless || ie;
2413
2417
  st(function() {
2414
- return ie.trans = c, ie.transless = p, t !== 0 ? (wn(e, n), g = t, ((y = c).storeNames.includes("$meta") ? y.table("$meta").get("version").then(function(_) {
2418
+ return ie.trans = c, ie.transless = p, t !== 0 ? (xn(e, n), g = t, ((y = c).storeNames.includes("$meta") ? y.table("$meta").get("version").then(function(_) {
2415
2419
  return _ ?? g;
2416
2420
  }) : W.resolve(g)).then(function(_) {
2417
- return O = _, v = c, w = n, x = [], _ = (m = e)._versions, b = m._dbSchema = Sn(0, m.idbdb, w), (_ = _.filter(function(k) {
2421
+ return O = _, v = c, w = n, x = [], _ = (m = e)._versions, b = m._dbSchema = En(0, m.idbdb, w), (_ = _.filter(function(k) {
2418
2422
  return k._cfg.version >= O;
2419
2423
  })).length !== 0 ? (_.forEach(function(k) {
2420
2424
  x.push(function() {
2421
2425
  var T = b, R = k._cfg.dbschema;
2422
- On(m, T, w), On(m, R, w), b = m._dbSchema = R;
2423
- var D = _r(T, R);
2424
- D.add.forEach(function(V) {
2425
- xr(w, V[0], V[1].primKey, V[1].indexes);
2426
- }), D.change.forEach(function(V) {
2426
+ kn(m, T, w), kn(m, R, w), b = m._dbSchema = R;
2427
+ var $ = xr(T, R);
2428
+ $.add.forEach(function(V) {
2429
+ Sr(w, V[0], V[1].primKey, V[1].indexes);
2430
+ }), $.change.forEach(function(V) {
2427
2431
  if (V.recreate) throw new Z.Upgrade("Not yet support for changing primary key");
2428
2432
  var Y = w.objectStore(V.name);
2429
2433
  V.add.forEach(function(X) {
2430
- return xn(Y, X);
2434
+ return On(Y, X);
2431
2435
  }), V.change.forEach(function(X) {
2432
- Y.deleteIndex(X.name), xn(Y, X);
2436
+ Y.deleteIndex(X.name), On(Y, X);
2433
2437
  }), V.del.forEach(function(X) {
2434
2438
  return Y.deleteIndex(X);
2435
2439
  });
2436
2440
  });
2437
2441
  var q = k._cfg.contentUpgrade;
2438
2442
  if (q && k._cfg.version > O) {
2439
- wn(m, w), v._memoizedTables = {};
2443
+ xn(m, w), v._memoizedTables = {};
2440
2444
  var z = K(R);
2441
- D.del.forEach(function(V) {
2445
+ $.del.forEach(function(V) {
2442
2446
  z[V] = T[V];
2443
- }), wr(m, [m.Transaction.prototype]), _n(m, [m.Transaction.prototype], h(z), z), v.schema = z;
2447
+ }), _r(m, [m.Transaction.prototype]), Sn(m, [m.Transaction.prototype], h(z), z), v.schema = z;
2444
2448
  var F, B = de(q);
2445
- return B && Rt(), D = W.follow(function() {
2449
+ return B && Rt(), $ = W.follow(function() {
2446
2450
  var V;
2447
2451
  (F = q(v)) && B && (V = at.bind(null, null), F.then(V, V));
2448
- }), F && typeof F.then == "function" ? W.resolve(F) : D.then(function() {
2452
+ }), F && typeof F.then == "function" ? W.resolve(F) : $.then(function() {
2449
2453
  return F;
2450
2454
  });
2451
2455
  }
2452
2456
  }), x.push(function(T) {
2453
- var R, D, q = k._cfg.dbschema;
2454
- R = q, D = T, [].slice.call(D.db.objectStoreNames).forEach(function(z) {
2455
- return R[z] == null && D.db.deleteObjectStore(z);
2456
- }), wr(m, [m.Transaction.prototype]), _n(m, [m.Transaction.prototype], m._storeNames, m._dbSchema), v.schema = m._dbSchema;
2457
+ var R, $, q = k._cfg.dbschema;
2458
+ R = q, $ = T, [].slice.call($.db.objectStoreNames).forEach(function(z) {
2459
+ return R[z] == null && $.db.deleteObjectStore(z);
2460
+ }), _r(m, [m.Transaction.prototype]), Sn(m, [m.Transaction.prototype], m._storeNames, m._dbSchema), v.schema = m._dbSchema;
2457
2461
  }), x.push(function(T) {
2458
2462
  m.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(m.idbdb.version / 10) === k._cfg.version ? (m.idbdb.deleteObjectStore("$meta"), delete m._dbSchema.$meta, m._storeNames = m._storeNames.filter(function(R) {
2459
2463
  return R !== "$meta";
@@ -2462,33 +2466,33 @@ function Ds() {
2462
2466
  }), function k() {
2463
2467
  return x.length ? W.resolve(x.shift()(v.idbtrans)).then(k) : W.resolve();
2464
2468
  }().then(function() {
2465
- wi(b, w);
2469
+ Oi(b, w);
2466
2470
  })) : W.resolve();
2467
2471
  var m, O, v, w, x, b;
2468
2472
  }).catch(f)) : (h(s).forEach(function(_) {
2469
- xr(n, _, s[_].primKey, s[_].indexes);
2470
- }), wn(e, n), void W.follow(function() {
2473
+ Sr(n, _, s[_].primKey, s[_].indexes);
2474
+ }), xn(e, n), void W.follow(function() {
2471
2475
  return e.on.populate.fire(c);
2472
2476
  }).catch(f));
2473
2477
  var y, g;
2474
2478
  });
2475
2479
  }
2476
- function es(e, t) {
2477
- wi(e._dbSchema, t), t.db.version % 10 != 0 || t.objectStoreNames.contains("$meta") || t.db.createObjectStore("$meta").add(Math.ceil(t.db.version / 10 - 1), "version");
2478
- var n = Sn(0, e.idbdb, t);
2479
- On(e, e._dbSchema, t);
2480
- for (var i = 0, s = _r(n, e._dbSchema).change; i < s.length; i++) {
2480
+ function gs(e, t) {
2481
+ Oi(e._dbSchema, t), t.db.version % 10 != 0 || t.objectStoreNames.contains("$meta") || t.db.createObjectStore("$meta").add(Math.ceil(t.db.version / 10 - 1), "version");
2482
+ var n = En(0, e.idbdb, t);
2483
+ kn(e, e._dbSchema, t);
2484
+ for (var i = 0, s = xr(n, e._dbSchema).change; i < s.length; i++) {
2481
2485
  var c = function(f) {
2482
2486
  if (f.change.length || f.recreate) return console.warn("Unable to patch indexes of table ".concat(f.name, " because it has changes on the type of index or primary key.")), { value: void 0 };
2483
2487
  var p = t.objectStore(f.name);
2484
2488
  f.add.forEach(function(y) {
2485
- Qe && console.debug("Dexie upgrade patch: Creating missing index ".concat(f.name, ".").concat(y.src)), xn(p, y);
2489
+ Qe && console.debug("Dexie upgrade patch: Creating missing index ".concat(f.name, ".").concat(y.src)), On(p, y);
2486
2490
  });
2487
2491
  }(s[i]);
2488
2492
  if (typeof c == "object") return c.value;
2489
2493
  }
2490
2494
  }
2491
- function _r(e, t) {
2495
+ function xr(e, t) {
2492
2496
  var n, i = { del: [], add: [], change: [] };
2493
2497
  for (n in e) t[n] || i.del.push(n);
2494
2498
  for (n in t) {
@@ -2509,31 +2513,31 @@ function Ds() {
2509
2513
  }
2510
2514
  return i;
2511
2515
  }
2512
- function xr(e, t, n, i) {
2516
+ function Sr(e, t, n, i) {
2513
2517
  var s = e.db.createObjectStore(t, n.keyPath ? { keyPath: n.keyPath, autoIncrement: n.auto } : { autoIncrement: n.auto });
2514
2518
  return i.forEach(function(c) {
2515
- return xn(s, c);
2519
+ return On(s, c);
2516
2520
  }), s;
2517
2521
  }
2518
- function wi(e, t) {
2522
+ function Oi(e, t) {
2519
2523
  h(e).forEach(function(n) {
2520
- t.db.objectStoreNames.contains(n) || (Qe && console.debug("Dexie: Creating missing table", n), xr(t, n, e[n].primKey, e[n].indexes));
2524
+ t.db.objectStoreNames.contains(n) || (Qe && console.debug("Dexie: Creating missing table", n), Sr(t, n, e[n].primKey, e[n].indexes));
2521
2525
  });
2522
2526
  }
2523
- function xn(e, t) {
2527
+ function On(e, t) {
2524
2528
  e.createIndex(t.name, t.keyPath, { unique: t.unique, multiEntry: t.multi });
2525
2529
  }
2526
- function Sn(e, t, n) {
2530
+ function En(e, t, n) {
2527
2531
  var i = {};
2528
2532
  return re(t.objectStoreNames, 0).forEach(function(s) {
2529
- for (var c = n.objectStore(s), f = vr(gi(g = c.keyPath), g || "", !0, !1, !!c.autoIncrement, g && typeof g != "string", !0), p = [], y = 0; y < c.indexNames.length; ++y) {
2530
- var _ = c.index(c.indexNames[y]), g = _.keyPath, _ = vr(_.name, g, !!_.unique, !!_.multiEntry, !1, g && typeof g != "string", !1);
2533
+ for (var c = n.objectStore(s), f = gr(xi(g = c.keyPath), g || "", !0, !1, !!c.autoIncrement, g && typeof g != "string", !0), p = [], y = 0; y < c.indexNames.length; ++y) {
2534
+ var _ = c.index(c.indexNames[y]), g = _.keyPath, _ = gr(_.name, g, !!_.unique, !!_.multiEntry, !1, g && typeof g != "string", !1);
2531
2535
  p.push(_);
2532
2536
  }
2533
- i[s] = gr(s, f, p);
2537
+ i[s] = br(s, f, p);
2534
2538
  }), i;
2535
2539
  }
2536
- function On(e, t, n) {
2540
+ function kn(e, t, n) {
2537
2541
  for (var i = n.db.objectStoreNames, s = 0; s < i.length; ++s) {
2538
2542
  var c = i[s], f = n.objectStore(c);
2539
2543
  e._hasGetAll = "getAll" in f;
@@ -2544,48 +2548,48 @@ function Ds() {
2544
2548
  }
2545
2549
  typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && d.WorkerGlobalScope && d instanceof d.WorkerGlobalScope && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604 && (e._hasGetAll = !1);
2546
2550
  }
2547
- function _i(e) {
2551
+ function Ei(e) {
2548
2552
  return e.split(",").map(function(t, n) {
2549
2553
  var i = (t = t.trim()).replace(/([&*]|\+\+)/g, ""), s = /^\[/.test(i) ? i.match(/^\[(.*)\]$/)[1].split("+") : i;
2550
- return vr(i, s || null, /\&/.test(t), /\*/.test(t), /\+\+/.test(t), S(s), n === 0);
2554
+ return gr(i, s || null, /\&/.test(t), /\*/.test(t), /\+\+/.test(t), S(s), n === 0);
2551
2555
  });
2552
2556
  }
2553
- var ts = (En.prototype._parseStoresSpec = function(e, t) {
2557
+ var bs = (Tn.prototype._parseStoresSpec = function(e, t) {
2554
2558
  h(e).forEach(function(n) {
2555
2559
  if (e[n] !== null) {
2556
- var i = _i(e[n]), s = i.shift();
2560
+ var i = Ei(e[n]), s = i.shift();
2557
2561
  if (s.unique = !0, s.multi) throw new Z.Schema("Primary key cannot be multi-valued");
2558
2562
  i.forEach(function(c) {
2559
2563
  if (c.auto) throw new Z.Schema("Only primary key can be marked as autoIncrement (++)");
2560
2564
  if (!c.keyPath) throw new Z.Schema("Index must have a name and cannot be an empty string");
2561
- }), t[n] = gr(n, s, i);
2565
+ }), t[n] = br(n, s, i);
2562
2566
  }
2563
2567
  });
2564
- }, En.prototype.stores = function(n) {
2568
+ }, Tn.prototype.stores = function(n) {
2565
2569
  var t = this.db;
2566
2570
  this._cfg.storesSource = this._cfg.storesSource ? P(this._cfg.storesSource, n) : n;
2567
2571
  var n = t._versions, i = {}, s = {};
2568
2572
  return n.forEach(function(c) {
2569
2573
  P(i, c._cfg.storesSource), s = c._cfg.dbschema = {}, c._parseStoresSpec(i, s);
2570
- }), t._dbSchema = s, wr(t, [t._allTables, t, t.Transaction.prototype]), _n(t, [t._allTables, t, t.Transaction.prototype, this._cfg.tables], h(s), s), t._storeNames = h(s), this;
2571
- }, En.prototype.upgrade = function(e) {
2572
- return this._cfg.contentUpgrade = sn(this._cfg.contentUpgrade || ye, e), this;
2573
- }, En);
2574
- function En() {
2574
+ }), t._dbSchema = s, _r(t, [t._allTables, t, t.Transaction.prototype]), Sn(t, [t._allTables, t, t.Transaction.prototype, this._cfg.tables], h(s), s), t._storeNames = h(s), this;
2575
+ }, Tn.prototype.upgrade = function(e) {
2576
+ return this._cfg.contentUpgrade = un(this._cfg.contentUpgrade || ye, e), this;
2577
+ }, Tn);
2578
+ function Tn() {
2575
2579
  }
2576
- function Sr(e, t) {
2580
+ function Or(e, t) {
2577
2581
  var n = e._dbNamesDB;
2578
- return n || (n = e._dbNamesDB = new it(mn, { addons: [], indexedDB: e, IDBKeyRange: t })).version(1).stores({ dbnames: "name" }), n.table("dbnames");
2582
+ return n || (n = e._dbNamesDB = new it(vn, { addons: [], indexedDB: e, IDBKeyRange: t })).version(1).stores({ dbnames: "name" }), n.table("dbnames");
2579
2583
  }
2580
- function Or(e) {
2584
+ function Er(e) {
2581
2585
  return e && typeof e.databases == "function";
2582
2586
  }
2583
- function Er(e) {
2587
+ function kr(e) {
2584
2588
  return st(function() {
2585
2589
  return ie.letThrough = !0, e();
2586
2590
  });
2587
2591
  }
2588
- function kr(e) {
2592
+ function Tr(e) {
2589
2593
  return !("from" in e);
2590
2594
  }
2591
2595
  var qe = function(e, t) {
@@ -2599,30 +2603,30 @@ function Ds() {
2599
2603
  var i = xe(t, n);
2600
2604
  if (!isNaN(i)) {
2601
2605
  if (0 < i) throw RangeError();
2602
- if (kr(e)) return P(e, { from: t, to: n, d: 1 });
2606
+ if (Tr(e)) return P(e, { from: t, to: n, d: 1 });
2603
2607
  var s = e.l, i = e.r;
2604
- if (xe(n, e.from) < 0) return s ? Xt(s, t, n) : e.l = { from: t, to: n, d: 1, l: null, r: null }, Si(e);
2605
- if (0 < xe(t, e.to)) return i ? Xt(i, t, n) : e.r = { from: t, to: n, d: 1, l: null, r: null }, Si(e);
2608
+ if (xe(n, e.from) < 0) return s ? Xt(s, t, n) : e.l = { from: t, to: n, d: 1, l: null, r: null }, Ti(e);
2609
+ if (0 < xe(t, e.to)) return i ? Xt(i, t, n) : e.r = { from: t, to: n, d: 1, l: null, r: null }, Ti(e);
2606
2610
  xe(t, e.from) < 0 && (e.from = t, e.l = null, e.d = i ? i.d + 1 : 1), 0 < xe(n, e.to) && (e.to = n, e.r = null, e.d = e.l ? e.l.d + 1 : 1), n = !e.r, s && !e.l && Qt(e, s), i && n && Qt(e, i);
2607
2611
  }
2608
2612
  }
2609
2613
  function Qt(e, t) {
2610
- kr(t) || function n(i, y) {
2614
+ Tr(t) || function n(i, y) {
2611
2615
  var c = y.from, f = y.to, p = y.l, y = y.r;
2612
2616
  Xt(i, c, f), p && n(i, p), y && n(i, y);
2613
2617
  }(e, t);
2614
2618
  }
2615
- function xi(e, t) {
2616
- var n = kn(t), i = n.next();
2619
+ function ki(e, t) {
2620
+ var n = Rn(t), i = n.next();
2617
2621
  if (i.done) return !1;
2618
- for (var s = i.value, c = kn(e), f = c.next(s.from), p = f.value; !i.done && !f.done; ) {
2622
+ for (var s = i.value, c = Rn(e), f = c.next(s.from), p = f.value; !i.done && !f.done; ) {
2619
2623
  if (xe(p.from, s.to) <= 0 && 0 <= xe(p.to, s.from)) return !0;
2620
2624
  xe(s.from, p.from) < 0 ? s = (i = n.next(p.from)).value : p = (f = c.next(s.from)).value;
2621
2625
  }
2622
2626
  return !1;
2623
2627
  }
2624
- function kn(e) {
2625
- var t = kr(e) ? null : { s: 0, n: e };
2628
+ function Rn(e) {
2629
+ var t = Tr(e) ? null : { s: 0, n: e };
2626
2630
  return { next: function(n) {
2627
2631
  for (var i = 0 < arguments.length; t; ) switch (t.s) {
2628
2632
  case 0:
@@ -2641,15 +2645,15 @@ function Ds() {
2641
2645
  return { done: !0 };
2642
2646
  } };
2643
2647
  }
2644
- function Si(e) {
2648
+ function Ti(e) {
2645
2649
  var t, n, i = (((t = e.r) === null || t === void 0 ? void 0 : t.d) || 0) - (((n = e.l) === null || n === void 0 ? void 0 : n.d) || 0), s = 1 < i ? "r" : i < -1 ? "l" : "";
2646
- s && (t = s == "r" ? "l" : "r", n = a({}, e), i = e[s], e.from = i.from, e.to = i.to, e[s] = i[s], n[s] = i[t], (e[t] = n).d = Oi(n)), e.d = Oi(e);
2650
+ s && (t = s == "r" ? "l" : "r", n = a({}, e), i = e[s], e.from = i.from, e.to = i.to, e[s] = i[s], n[s] = i[t], (e[t] = n).d = Ri(n)), e.d = Ri(e);
2647
2651
  }
2648
- function Oi(n) {
2652
+ function Ri(n) {
2649
2653
  var t = n.r, n = n.l;
2650
2654
  return (t ? n ? Math.max(t.d, n.d) : t.d : n ? n.d : 0) + 1;
2651
2655
  }
2652
- function Tn(e, t) {
2656
+ function An(e, t) {
2653
2657
  return h(t).forEach(function(n) {
2654
2658
  e[n] ? Qt(e[n], t[n]) : e[n] = function i(s) {
2655
2659
  var c, f, p = {};
@@ -2658,9 +2662,9 @@ function Ds() {
2658
2662
  }(t[n]);
2659
2663
  }), e;
2660
2664
  }
2661
- function Tr(e, t) {
2665
+ function Rr(e, t) {
2662
2666
  return e.all || t.all || Object.keys(e).some(function(n) {
2663
- return t[n] && xi(t[n], e[n]);
2667
+ return t[n] && ki(t[n], e[n]);
2664
2668
  });
2665
2669
  }
2666
2670
  ae(qe.prototype, ((Ge = { add: function(e) {
@@ -2673,34 +2677,34 @@ function Ds() {
2673
2677
  return Xt(t, n, n);
2674
2678
  }), this;
2675
2679
  }, hasKey: function(e) {
2676
- var t = kn(this).next(e).value;
2680
+ var t = Rn(this).next(e).value;
2677
2681
  return t && xe(t.from, e) <= 0 && 0 <= xe(t.to, e);
2678
2682
  } })[I] = function() {
2679
- return kn(this);
2683
+ return Rn(this);
2680
2684
  }, Ge));
2681
- var bt = {}, Rr = {}, Ar = !1;
2682
- function Rn(e) {
2683
- Tn(Rr, e), Ar || (Ar = !0, setTimeout(function() {
2684
- Ar = !1, Pr(Rr, !(Rr = {}));
2685
+ var bt = {}, Ar = {}, Pr = !1;
2686
+ function Pn(e) {
2687
+ An(Ar, e), Pr || (Pr = !0, setTimeout(function() {
2688
+ Pr = !1, $r(Ar, !(Ar = {}));
2685
2689
  }, 0));
2686
2690
  }
2687
- function Pr(e, t) {
2691
+ function $r(e, t) {
2688
2692
  t === void 0 && (t = !1);
2689
2693
  var n = /* @__PURE__ */ new Set();
2690
- if (e.all) for (var i = 0, s = Object.values(bt); i < s.length; i++) Ei(f = s[i], e, n, t);
2694
+ if (e.all) for (var i = 0, s = Object.values(bt); i < s.length; i++) Ai(f = s[i], e, n, t);
2691
2695
  else for (var c in e) {
2692
2696
  var f, p = /^idb\:\/\/(.*)\/(.*)\//.exec(c);
2693
- p && (c = p[1], p = p[2], (f = bt["idb://".concat(c, "/").concat(p)]) && Ei(f, e, n, t));
2697
+ p && (c = p[1], p = p[2], (f = bt["idb://".concat(c, "/").concat(p)]) && Ai(f, e, n, t));
2694
2698
  }
2695
2699
  n.forEach(function(y) {
2696
2700
  return y();
2697
2701
  });
2698
2702
  }
2699
- function Ei(e, t, n, i) {
2703
+ function Ai(e, t, n, i) {
2700
2704
  for (var s = [], c = 0, f = Object.entries(e.queries.query); c < f.length; c++) {
2701
2705
  for (var p = f[c], y = p[0], g = [], _ = 0, m = p[1]; _ < m.length; _++) {
2702
2706
  var O = m[_];
2703
- Tr(t, O.obsSet) ? O.subscribers.forEach(function(b) {
2707
+ Rr(t, O.obsSet) ? O.subscribers.forEach(function(b) {
2704
2708
  return n.add(b);
2705
2709
  }) : i && g.push(O);
2706
2710
  }
@@ -2711,7 +2715,7 @@ function Ds() {
2711
2715
  e.queries.query[y] = g;
2712
2716
  }
2713
2717
  }
2714
- function ns(e) {
2718
+ function ws(e) {
2715
2719
  var t = e._state, n = e._deps.indexedDB;
2716
2720
  if (t.isBeingOpened || e.idbdb) return t.dbReadyPromise.then(function() {
2717
2721
  return t.dbOpenError ? Ae(t.dbOpenError) : e;
@@ -2730,24 +2734,24 @@ function Ds() {
2730
2734
  var k;
2731
2735
  _ = x.transaction, t.autoSchema && !e._options.allowEmptyDB ? (x.onerror = Vt, _.abort(), x.result.close(), (k = n.deleteDatabase(w)).onsuccess = k.onerror = Te(function() {
2732
2736
  v(new Z.NoSuchDatabase("Database ".concat(w, " doesnt exist")));
2733
- })) : (_.onerror = Ze(v), b = b.oldVersion > Math.pow(2, 62) ? 0 : b.oldVersion, m = b < 1, e.idbdb = x.result, c && es(e, _), Zo(e, b / 10, _, v));
2737
+ })) : (_.onerror = Ze(v), b = b.oldVersion > Math.pow(2, 62) ? 0 : b.oldVersion, m = b < 1, e.idbdb = x.result, c && gs(e, _), vs(e, b / 10, _, v));
2734
2738
  }, v), x.onsuccess = Te(function() {
2735
2739
  _ = null;
2736
- var b, k, T, R, D, q = e.idbdb = x.result, z = re(q.objectStoreNames);
2740
+ var b, k, T, R, $, q = e.idbdb = x.result, z = re(q.objectStoreNames);
2737
2741
  if (0 < z.length) try {
2738
2742
  var F = q.transaction((R = z).length === 1 ? R[0] : R, "readonly");
2739
- if (t.autoSchema) k = q, T = F, (b = e).verno = k.version / 10, T = b._dbSchema = Sn(0, k, T), b._storeNames = re(k.objectStoreNames, 0), _n(b, [b._allTables], h(T), T);
2740
- else if (On(e, e._dbSchema, F), ((D = _r(Sn(0, (D = e).idbdb, F), D._dbSchema)).add.length || D.change.some(function(B) {
2743
+ if (t.autoSchema) k = q, T = F, (b = e).verno = k.version / 10, T = b._dbSchema = En(0, k, T), b._storeNames = re(k.objectStoreNames, 0), Sn(b, [b._allTables], h(T), T);
2744
+ else if (kn(e, e._dbSchema, F), (($ = xr(En(0, ($ = e).idbdb, F), $._dbSchema)).add.length || $.change.some(function(B) {
2741
2745
  return B.add.length || B.change.length;
2742
2746
  })) && !c) return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."), q.close(), s = q.version + 1, c = !0, O(p());
2743
- wn(e, F);
2747
+ xn(e, F);
2744
2748
  } catch {
2745
2749
  }
2746
2750
  At.push(e), q.onversionchange = Te(function(B) {
2747
2751
  t.vcFired = !0, e.on("versionchange").fire(B);
2748
2752
  }), q.onclose = Te(function(B) {
2749
2753
  e.on("close").fire(B);
2750
- }), m && (D = e._deps, F = w, q = D.indexedDB, D = D.IDBKeyRange, Or(q) || F === mn || Sr(q, D).put({ name: F }).catch(ye)), O();
2754
+ }), m && ($ = e._deps, F = w, q = $.indexedDB, $ = $.IDBKeyRange, Er(q) || F === vn || Or(q, $).put({ name: F }).catch(ye)), O();
2751
2755
  }, v);
2752
2756
  }).catch(function(O) {
2753
2757
  switch (O == null ? void 0 : O.name) {
@@ -2769,12 +2773,12 @@ function Ds() {
2769
2773
  }).finally(function() {
2770
2774
  return clearInterval(y);
2771
2775
  }) : Promise.resolve()).then(p)]).then(function() {
2772
- return f(), t.onReadyBeingFired = [], W.resolve(Er(function() {
2776
+ return f(), t.onReadyBeingFired = [], W.resolve(kr(function() {
2773
2777
  return e.on.ready.fire(e.vip);
2774
2778
  })).then(function O() {
2775
2779
  if (0 < t.onReadyBeingFired.length) {
2776
- var v = t.onReadyBeingFired.reduce(sn, ye);
2777
- return t.onReadyBeingFired = [], W.resolve(Er(function() {
2780
+ var v = t.onReadyBeingFired.reduce(un, ye);
2781
+ return t.onReadyBeingFired = [], W.resolve(kr(function() {
2778
2782
  return v(e.vip);
2779
2783
  })).then(O);
2780
2784
  }
@@ -2796,7 +2800,7 @@ function Ds() {
2796
2800
  v.schema.indexes.forEach(function(w) {
2797
2801
  w.name && (O["idb://".concat(e.name, "/").concat(v.name, "/").concat(w.name)] = new qe(-1 / 0, [[[]]]));
2798
2802
  }), O["idb://".concat(e.name, "/").concat(v.name, "/")] = O["idb://".concat(e.name, "/").concat(v.name, "/:dels")] = new qe(-1 / 0, [[[]]]);
2799
- }), lt(Wt).fire(O), Pr(O, !0)), e;
2803
+ }), lt(Wt).fire(O), $r(O, !0)), e;
2800
2804
  });
2801
2805
  }
2802
2806
  function Dr(e) {
@@ -2814,15 +2818,15 @@ function Ds() {
2814
2818
  }
2815
2819
  return s(t)();
2816
2820
  }
2817
- function An(e, t, n) {
2821
+ function $n(e, t, n) {
2818
2822
  for (var i = S(e) ? e.slice() : [e], s = 0; s < n; ++s) i.push(t);
2819
2823
  return i;
2820
2824
  }
2821
- var rs = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create: function(e) {
2825
+ var _s = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create: function(e) {
2822
2826
  return a(a({}, e), { table: function(t) {
2823
2827
  var n = e.table(t), i = n.schema, s = {}, c = [];
2824
2828
  function f(m, O, v) {
2825
- var w = Gt(m), x = s[w] = s[w] || [], b = m == null ? 0 : typeof m == "string" ? 1 : m.length, k = 0 < O, k = a(a({}, v), { name: k ? "".concat(w, "(virtual-from:").concat(v.name, ")") : v.name, lowLevelIndex: v, isVirtual: k, keyTail: O, keyLength: b, extractKey: br(m), unique: !k && v.unique });
2829
+ var w = Gt(m), x = s[w] = s[w] || [], b = m == null ? 0 : typeof m == "string" ? 1 : m.length, k = 0 < O, k = a(a({}, v), { name: k ? "".concat(w, "(virtual-from:").concat(v.name, ")") : v.name, lowLevelIndex: v, isVirtual: k, keyTail: O, keyLength: b, extractKey: wr(m), unique: !k && v.unique });
2826
2830
  return x.push(k), k.isPrimaryKey || c.push(k), 1 < b && f(b === 2 ? m[0] : m.slice(0, b - 1), O + 1, v), x.sort(function(T, R) {
2827
2831
  return T.keyTail - R.keyTail;
2828
2832
  }), k;
@@ -2834,7 +2838,7 @@ function Ds() {
2834
2838
  }
2835
2839
  function _(m) {
2836
2840
  var O, v = m.query.index;
2837
- return v.isVirtual ? a(a({}, m), { query: { index: v.lowLevelIndex, range: (O = m.query.range, v = v.keyTail, { type: O.type === 1 ? 2 : O.type, lower: An(O.lower, O.lowerOpen ? e.MAX_KEY : e.MIN_KEY, v), lowerOpen: !0, upper: An(O.upper, O.upperOpen ? e.MIN_KEY : e.MAX_KEY, v), upperOpen: !0 }) } }) : m;
2841
+ return v.isVirtual ? a(a({}, m), { query: { index: v.lowLevelIndex, range: (O = m.query.range, v = v.keyTail, { type: O.type === 1 ? 2 : O.type, lower: $n(O.lower, O.lowerOpen ? e.MAX_KEY : e.MIN_KEY, v), lowerOpen: !0, upper: $n(O.upper, O.upperOpen ? e.MIN_KEY : e.MAX_KEY, v), upperOpen: !0 }) } }) : m;
2838
2842
  }
2839
2843
  return a(a({}, n), { schema: a(a({}, i), { primaryKey: t, indexes: c, getIndexByKeyPath: function(m) {
2840
2844
  return (m = s[Gt(m)]) && m[0];
@@ -2849,9 +2853,9 @@ function Ds() {
2849
2853
  }) : n.openCursor(m);
2850
2854
  function b(k) {
2851
2855
  return Object.create(k, { continue: { value: function(T) {
2852
- T != null ? k.continue(An(T, m.reverse ? e.MAX_KEY : e.MIN_KEY, v)) : m.unique ? k.continue(k.key.slice(0, x).concat(m.reverse ? e.MIN_KEY : e.MAX_KEY, v)) : k.continue();
2856
+ T != null ? k.continue($n(T, m.reverse ? e.MAX_KEY : e.MIN_KEY, v)) : m.unique ? k.continue(k.key.slice(0, x).concat(m.reverse ? e.MIN_KEY : e.MAX_KEY, v)) : k.continue();
2853
2857
  } }, continuePrimaryKey: { value: function(T, R) {
2854
- k.continuePrimaryKey(An(T, e.MAX_KEY, v), R);
2858
+ k.continuePrimaryKey($n(T, e.MAX_KEY, v), R);
2855
2859
  } }, primaryKey: { get: function() {
2856
2860
  return k.primaryKey;
2857
2861
  } }, key: { get: function() {
@@ -2864,18 +2868,18 @@ function Ds() {
2864
2868
  } });
2865
2869
  } });
2866
2870
  } };
2867
- function $r(e, t, n, i) {
2871
+ function Cr(e, t, n, i) {
2868
2872
  return n = n || {}, i = i || "", h(e).forEach(function(s) {
2869
2873
  var c, f, p;
2870
- M(t, s) ? (c = e[s], f = t[s], typeof c == "object" && typeof f == "object" && c && f ? (p = H(c)) !== H(f) ? n[i + s] = t[s] : p === "Object" ? $r(c, f, n, i + s + ".") : c !== f && (n[i + s] = t[s]) : c !== f && (n[i + s] = t[s])) : n[i + s] = void 0;
2874
+ M(t, s) ? (c = e[s], f = t[s], typeof c == "object" && typeof f == "object" && c && f ? (p = H(c)) !== H(f) ? n[i + s] = t[s] : p === "Object" ? Cr(c, f, n, i + s + ".") : c !== f && (n[i + s] = t[s]) : c !== f && (n[i + s] = t[s])) : n[i + s] = void 0;
2871
2875
  }), h(t).forEach(function(s) {
2872
2876
  M(e, s) || (n[i + s] = t[s]);
2873
2877
  }), n;
2874
2878
  }
2875
- function Cr(e, t) {
2879
+ function jr(e, t) {
2876
2880
  return t.type === "delete" ? t.keys : t.keys || t.values.map(e.extractKey);
2877
2881
  }
2878
- var is = { stack: "dbcore", name: "HooksMiddleware", level: 2, create: function(e) {
2882
+ var xs = { stack: "dbcore", name: "HooksMiddleware", level: 2, create: function(e) {
2879
2883
  return a(a({}, e), { table: function(t) {
2880
2884
  var n = e.table(t), i = n.schema.primaryKey;
2881
2885
  return a(a({}, n), { mutate: function(s) {
@@ -2911,24 +2915,24 @@ function Ds() {
2911
2915
  }
2912
2916
  return n.mutate(s);
2913
2917
  function _(m) {
2914
- var O, v, w, x = ie.trans, b = m.keys || Cr(i, m);
2918
+ var O, v, w, x = ie.trans, b = m.keys || jr(i, m);
2915
2919
  if (!b) throw new Error("Keys missing");
2916
2920
  return (m = m.type === "add" || m.type === "put" ? a(a({}, m), { keys: b }) : a({}, m)).type !== "delete" && (m.values = l([], m.values)), m.keys && (m.keys = l([], m.keys)), O = n, w = b, ((v = m).type === "add" ? Promise.resolve([]) : O.getMany({ trans: v.trans, keys: w, cache: "immutable" })).then(function(k) {
2917
- var T = b.map(function(R, D) {
2918
- var q, z, F, B = k[D], V = { onerror: null, onsuccess: null };
2919
- return m.type === "delete" ? p.fire.call(V, R, B, x) : m.type === "add" || B === void 0 ? (q = y.fire.call(V, R, m.values[D], x), R == null && q != null && (m.keys[D] = R = q, i.outbound || U(m.values[D], i.keyPath, R))) : (q = $r(B, m.values[D]), (z = g.fire.call(V, q, R, B, x)) && (F = m.values[D], Object.keys(z).forEach(function(Y) {
2921
+ var T = b.map(function(R, $) {
2922
+ var q, z, F, B = k[$], V = { onerror: null, onsuccess: null };
2923
+ return m.type === "delete" ? p.fire.call(V, R, B, x) : m.type === "add" || B === void 0 ? (q = y.fire.call(V, R, m.values[$], x), R == null && q != null && (m.keys[$] = R = q, i.outbound || U(m.values[$], i.keyPath, R))) : (q = Cr(B, m.values[$]), (z = g.fire.call(V, q, R, B, x)) && (F = m.values[$], Object.keys(z).forEach(function(Y) {
2920
2924
  M(F, Y) ? F[Y] = z[Y] : U(F, Y, z[Y]);
2921
2925
  }))), V;
2922
2926
  });
2923
2927
  return n.mutate(m).then(function(R) {
2924
- for (var D = R.failures, q = R.results, z = R.numFailures, R = R.lastResult, F = 0; F < b.length; ++F) {
2928
+ for (var $ = R.failures, q = R.results, z = R.numFailures, R = R.lastResult, F = 0; F < b.length; ++F) {
2925
2929
  var B = (q || b)[F], V = T[F];
2926
- B == null ? V.onerror && V.onerror(D[F]) : V.onsuccess && V.onsuccess(m.type === "put" && k[F] ? m.values[F] : B);
2930
+ B == null ? V.onerror && V.onerror($[F]) : V.onsuccess && V.onsuccess(m.type === "put" && k[F] ? m.values[F] : B);
2927
2931
  }
2928
- return { failures: D, results: q, numFailures: z, lastResult: R };
2932
+ return { failures: $, results: q, numFailures: z, lastResult: R };
2929
2933
  }).catch(function(R) {
2930
- return T.forEach(function(D) {
2931
- return D.onerror && D.onerror(R);
2934
+ return T.forEach(function($) {
2935
+ return $.onerror && $.onerror(R);
2932
2936
  }), Promise.reject(R);
2933
2937
  });
2934
2938
  });
@@ -2936,7 +2940,7 @@ function Ds() {
2936
2940
  } });
2937
2941
  } });
2938
2942
  } };
2939
- function ki(e, t, n) {
2943
+ function Pi(e, t, n) {
2940
2944
  try {
2941
2945
  if (!t || t.keys.length < e.length) return null;
2942
2946
  for (var i = [], s = 0, c = 0; s < t.keys.length && c < e.length; ++s) xe(t.keys[s], e[c]) === 0 && (i.push(n ? we(t.values[s]) : t.values[s]), ++c);
@@ -2945,12 +2949,12 @@ function Ds() {
2945
2949
  return null;
2946
2950
  }
2947
2951
  }
2948
- var os = { stack: "dbcore", level: -1, create: function(e) {
2952
+ var Ss = { stack: "dbcore", level: -1, create: function(e) {
2949
2953
  return { table: function(t) {
2950
2954
  var n = e.table(t);
2951
2955
  return a(a({}, n), { getMany: function(i) {
2952
2956
  if (!i.cache) return n.getMany(i);
2953
- var s = ki(i.keys, i.trans._cache, i.cache === "clone");
2957
+ var s = Pi(i.keys, i.trans._cache, i.cache === "clone");
2954
2958
  return s ? W.resolve(s) : n.getMany(i).then(function(c) {
2955
2959
  return i.trans._cache = { keys: i.keys, values: i.cache === "clone" ? we(c) : c }, c;
2956
2960
  });
@@ -2959,10 +2963,10 @@ function Ds() {
2959
2963
  } });
2960
2964
  } };
2961
2965
  } };
2962
- function Ti(e, t) {
2966
+ function $i(e, t) {
2963
2967
  return e.trans.mode === "readonly" && !!e.subscr && !e.trans.explicit && e.trans.db._options.cache !== "disabled" && !t.schema.primaryKey.outbound;
2964
2968
  }
2965
- function Ri(e, t) {
2969
+ function Di(e, t) {
2966
2970
  switch (e) {
2967
2971
  case "query":
2968
2972
  return t.values && !t.unique;
@@ -2973,7 +2977,7 @@ function Ds() {
2973
2977
  return !1;
2974
2978
  }
2975
2979
  }
2976
- var ss = { stack: "dbcore", level: 0, name: "Observability", create: function(e) {
2980
+ var Os = { stack: "dbcore", level: 0, name: "Observability", create: function(e) {
2977
2981
  var t = e.schema.name, n = new qe(e.MIN_KEY, e.MAX_KEY);
2978
2982
  return a(a({}, e), { transaction: function(i, s, c) {
2979
2983
  if (ie.subscr && s !== "readonly") throw new Z.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(ie.querier));
@@ -2985,10 +2989,10 @@ function Ds() {
2985
2989
  function w(Y) {
2986
2990
  return Y = "idb://".concat(t, "/").concat(i, "/").concat(Y), R[Y] || (R[Y] = new qe());
2987
2991
  }
2988
- var x, b, k, T = v.trans, R = v.mutatedParts || (v.mutatedParts = {}), D = w(""), q = w(":dels"), z = v.type, V = v.type === "deleteRange" ? [v.range] : v.type === "delete" ? [v.keys] : v.values.length < 50 ? [Cr(f, v).filter(function(Y) {
2992
+ var x, b, k, T = v.trans, R = v.mutatedParts || (v.mutatedParts = {}), $ = w(""), q = w(":dels"), z = v.type, V = v.type === "deleteRange" ? [v.range] : v.type === "delete" ? [v.keys] : v.values.length < 50 ? [jr(f, v).filter(function(Y) {
2989
2993
  return Y;
2990
2994
  }), v.values] : [], F = V[0], B = V[1], V = v.trans._cache;
2991
- return S(F) ? (D.addKeys(F), (V = z === "delete" || F.length === B.length ? ki(F, V) : null) || q.addKeys(F), (V || B) && (x = w, b = V, k = B, c.indexes.forEach(function(Y) {
2995
+ return S(F) ? ($.addKeys(F), (V = z === "delete" || F.length === B.length ? Pi(F, V) : null) || q.addKeys(F), (V || B) && (x = w, b = V, k = B, c.indexes.forEach(function(Y) {
2992
2996
  var X = x(Y.name || "");
2993
2997
  function pe(ge) {
2994
2998
  return ge != null ? Y.extractKey(ge) : null;
@@ -3002,17 +3006,17 @@ function Ds() {
3002
3006
  var he = b && pe(b[Fe]), Fe = k && pe(k[Fe]);
3003
3007
  xe(he, Fe) !== 0 && (he != null && ve(he), Fe != null && ve(Fe));
3004
3008
  });
3005
- }))) : F ? (B = { from: (B = F.lower) !== null && B !== void 0 ? B : e.MIN_KEY, to: (B = F.upper) !== null && B !== void 0 ? B : e.MAX_KEY }, q.add(B), D.add(B)) : (D.add(n), q.add(n), c.indexes.forEach(function(Y) {
3009
+ }))) : F ? (B = { from: (B = F.lower) !== null && B !== void 0 ? B : e.MIN_KEY, to: (B = F.upper) !== null && B !== void 0 ? B : e.MAX_KEY }, q.add(B), $.add(B)) : ($.add(n), q.add(n), c.indexes.forEach(function(Y) {
3006
3010
  return w(Y.name).add(n);
3007
3011
  })), s.mutate(v).then(function(Y) {
3008
- return !F || v.type !== "add" && v.type !== "put" || (D.addKeys(Y.results), g && g.forEach(function(X) {
3012
+ return !F || v.type !== "add" && v.type !== "put" || ($.addKeys(Y.results), g && g.forEach(function(X) {
3009
3013
  for (var pe = v.values.map(function(he) {
3010
3014
  return X.extractKey(he);
3011
3015
  }), ve = X.keyPath.findIndex(function(he) {
3012
3016
  return he === f.keyPath;
3013
3017
  }), ge = 0, Ve = Y.results.length; ge < Ve; ++ge) pe[ge][ve] = Y.results[ge];
3014
3018
  w(X.name).addKeys(pe);
3015
- })), T.mutatedParts = Tn(T.mutatedParts || {}, R), Y;
3019
+ })), T.mutatedParts = An(T.mutatedParts || {}, R), Y;
3016
3020
  });
3017
3021
  } }), m = function(w) {
3018
3022
  var x = w.query, w = x.index, x = x.range;
@@ -3024,12 +3028,12 @@ function Ds() {
3024
3028
  }, count: m, query: m, openCursor: m };
3025
3029
  return h(O).forEach(function(v) {
3026
3030
  _[v] = function(w) {
3027
- var x = ie.subscr, b = !!x, k = Ti(ie, s) && Ri(v, w) ? w.obsSet = {} : x;
3031
+ var x = ie.subscr, b = !!x, k = $i(ie, s) && Di(v, w) ? w.obsSet = {} : x;
3028
3032
  if (b) {
3029
3033
  var T = function(B) {
3030
3034
  return B = "idb://".concat(t, "/").concat(i, "/").concat(B), k[B] || (k[B] = new qe());
3031
- }, R = T(""), D = T(":dels"), x = O[v](w), b = x[0], x = x[1];
3032
- if ((v === "query" && b.isPrimaryKey && !w.values ? D : T(b.name || "")).add(x), !b.isPrimaryKey) {
3035
+ }, R = T(""), $ = T(":dels"), x = O[v](w), b = x[0], x = x[1];
3036
+ if ((v === "query" && b.isPrimaryKey && !w.values ? $ : T(b.name || "")).add(x), !b.isPrimaryKey) {
3033
3037
  if (v !== "count") {
3034
3038
  var q = v === "query" && y && w.values && s.query(a(a({}, w), { values: !1 }));
3035
3039
  return s[v].apply(this, arguments).then(function(B) {
@@ -3038,14 +3042,14 @@ function Ds() {
3038
3042
  return pe = pe.result, R.addKeys(pe), B;
3039
3043
  });
3040
3044
  var V = w.values ? B.result.map(p) : B.result;
3041
- (w.values ? R : D).addKeys(V);
3045
+ (w.values ? R : $).addKeys(V);
3042
3046
  } else if (v === "openCursor") {
3043
3047
  var Y = B, X = w.values;
3044
3048
  return Y && Object.create(Y, { key: { get: function() {
3045
- return D.addKey(Y.primaryKey), Y.key;
3049
+ return $.addKey(Y.primaryKey), Y.key;
3046
3050
  } }, primaryKey: { get: function() {
3047
3051
  var pe = Y.primaryKey;
3048
- return D.addKey(pe), pe;
3052
+ return $.addKey(pe), pe;
3049
3053
  } }, value: { get: function() {
3050
3054
  return X && R.addKey(Y.primaryKey), Y.value;
3051
3055
  } } });
@@ -3053,7 +3057,7 @@ function Ds() {
3053
3057
  return B;
3054
3058
  });
3055
3059
  }
3056
- D.add(n);
3060
+ $.add(n);
3057
3061
  }
3058
3062
  }
3059
3063
  return s[v].apply(this, arguments);
@@ -3061,7 +3065,7 @@ function Ds() {
3061
3065
  }), _;
3062
3066
  } });
3063
3067
  } };
3064
- function Ai(e, t, n) {
3068
+ function Ci(e, t, n) {
3065
3069
  if (n.numFailures === 0) return t;
3066
3070
  if (t.type === "deleteRange") return null;
3067
3071
  var i = t.keys ? t.keys.length : "values" in t && t.values ? t.values.length : 1;
@@ -3071,19 +3075,19 @@ function Ds() {
3071
3075
  return !(c in n.failures);
3072
3076
  })), t);
3073
3077
  }
3074
- function jr(e, t) {
3078
+ function Mr(e, t) {
3075
3079
  return n = e, ((i = t).lower === void 0 || (i.lowerOpen ? 0 < xe(n, i.lower) : 0 <= xe(n, i.lower))) && (e = e, (t = t).upper === void 0 || (t.upperOpen ? xe(e, t.upper) < 0 : xe(e, t.upper) <= 0));
3076
3080
  var n, i;
3077
3081
  }
3078
- function Pi(e, t, O, i, s, c) {
3082
+ function ji(e, t, O, i, s, c) {
3079
3083
  if (!O || O.length === 0) return e;
3080
3084
  var f = t.query.index, p = f.multiEntry, y = t.query.range, g = i.schema.primaryKey.extractKey, _ = f.extractKey, m = (f.lowLevelIndex || f).extractKey, O = O.reduce(function(v, w) {
3081
3085
  var x = v, b = [];
3082
3086
  if (w.type === "add" || w.type === "put") for (var k = new qe(), T = w.values.length - 1; 0 <= T; --T) {
3083
- var R, D = w.values[T], q = g(D);
3084
- k.hasKey(q) || (R = _(D), (p && S(R) ? R.some(function(Y) {
3085
- return jr(Y, y);
3086
- }) : jr(R, y)) && (k.addKey(q), b.push(D)));
3087
+ var R, $ = w.values[T], q = g($);
3088
+ k.hasKey(q) || (R = _($), (p && S(R) ? R.some(function(Y) {
3089
+ return Mr(Y, y);
3090
+ }) : Mr(R, y)) && (k.addKey(q), b.push($)));
3087
3091
  }
3088
3092
  switch (w.type) {
3089
3093
  case "add":
@@ -3116,7 +3120,7 @@ function Ds() {
3116
3120
  case "deleteRange":
3117
3121
  var V = w.range;
3118
3122
  x = v.filter(function(X) {
3119
- return !jr(g(X), V);
3123
+ return !Mr(g(X), V);
3120
3124
  });
3121
3125
  }
3122
3126
  return x;
@@ -3125,10 +3129,10 @@ function Ds() {
3125
3129
  return xe(m(v), m(w)) || xe(g(v), g(w));
3126
3130
  }), t.limit && t.limit < 1 / 0 && (O.length > t.limit ? O.length = t.limit : e.length === t.limit && O.length < t.limit && (s.dirty = !0)), c ? Object.freeze(O) : O);
3127
3131
  }
3128
- function Di(e, t) {
3132
+ function Mi(e, t) {
3129
3133
  return xe(e.lower, t.lower) === 0 && xe(e.upper, t.upper) === 0 && !!e.lowerOpen == !!t.lowerOpen && !!e.upperOpen == !!t.upperOpen;
3130
3134
  }
3131
- function as(e, t) {
3135
+ function Es(e, t) {
3132
3136
  return function(n, i, s, c) {
3133
3137
  if (n === void 0) return i !== void 0 ? -1 : 0;
3134
3138
  if (i === void 0) return 1;
@@ -3149,7 +3153,7 @@ function Ds() {
3149
3153
  return i;
3150
3154
  }(e.upper, t.upper, e.upperOpen, t.upperOpen);
3151
3155
  }
3152
- function us(e, t, n, i) {
3156
+ function ks(e, t, n, i) {
3153
3157
  e.subscribers.add(n), i.addEventListener("abort", function() {
3154
3158
  var s, c;
3155
3159
  e.subscribers.delete(n), e.subscribers.size === 0 && (s = e, c = t, setTimeout(function() {
@@ -3157,7 +3161,7 @@ function Ds() {
3157
3161
  }, 3e3));
3158
3162
  });
3159
3163
  }
3160
- var cs = { stack: "dbcore", level: 0, name: "Cache", create: function(e) {
3164
+ var Ts = { stack: "dbcore", level: 0, name: "Cache", create: function(e) {
3161
3165
  var t = e.schema.name;
3162
3166
  return a(a({}, e), { transaction: function(n, i, s) {
3163
3167
  var c, f, p = e.transaction(n, i, s);
@@ -3170,14 +3174,14 @@ function Ds() {
3170
3174
  var w = e.table(O), x = v.optimisticOps.filter(function(X) {
3171
3175
  return X.trans === p;
3172
3176
  });
3173
- if (p._explicit && y && p.mutatedParts) for (var b = 0, k = Object.values(v.queries.query); b < k.length; b++) for (var T = 0, R = (z = k[b]).slice(); T < R.length; T++) Tr((F = R[T]).obsSet, p.mutatedParts) && (L(z, F), F.subscribers.forEach(function(X) {
3177
+ if (p._explicit && y && p.mutatedParts) for (var b = 0, k = Object.values(v.queries.query); b < k.length; b++) for (var T = 0, R = (z = k[b]).slice(); T < R.length; T++) Rr((F = R[T]).obsSet, p.mutatedParts) && (L(z, F), F.subscribers.forEach(function(X) {
3174
3178
  return g.add(X);
3175
3179
  }));
3176
3180
  else if (0 < x.length) {
3177
3181
  v.optimisticOps = v.optimisticOps.filter(function(X) {
3178
3182
  return X.trans !== p;
3179
3183
  });
3180
- for (var D = 0, q = Object.values(v.queries.query); D < q.length; D++) for (var z, F, B, V = 0, Y = (z = q[D]).slice(); V < Y.length; V++) (F = Y[V]).res != null && p.mutatedParts && (y && !F.dirty ? (B = Object.isFrozen(F.res), B = Pi(F.res, F.req, x, w, F, B), F.dirty ? (L(z, F), F.subscribers.forEach(function(X) {
3184
+ for (var $ = 0, q = Object.values(v.queries.query); $ < q.length; $++) for (var z, F, B, V = 0, Y = (z = q[$]).slice(); V < Y.length; V++) (F = Y[V]).res != null && p.mutatedParts && (y && !F.dirty ? (B = Object.isFrozen(F.res), B = ji(F.res, F.req, x, w, F, B), F.dirty ? (L(z, F), F.subscribers.forEach(function(X) {
3181
3185
  return g.add(X);
3182
3186
  })) : B !== F.res && (F.res = B, F.promise = W.resolve({ result: B }))) : (F.dirty && L(z, F), F.subscribers.forEach(function(X) {
3183
3187
  return g.add(X);
@@ -3197,23 +3201,23 @@ function Ds() {
3197
3201
  var f = ie.trans;
3198
3202
  if (s.outbound || f.db._options.cache === "disabled" || f.explicit || f.idbtrans.mode !== "readwrite") return i.mutate(c);
3199
3203
  var p = bt["idb://".concat(t, "/").concat(n)];
3200
- return p ? (f = i.mutate(c), c.type !== "add" && c.type !== "put" || !(50 <= c.values.length || Cr(s, c).some(function(y) {
3204
+ return p ? (f = i.mutate(c), c.type !== "add" && c.type !== "put" || !(50 <= c.values.length || jr(s, c).some(function(y) {
3201
3205
  return y == null;
3202
- })) ? (p.optimisticOps.push(c), c.mutatedParts && Rn(c.mutatedParts), f.then(function(y) {
3203
- 0 < y.numFailures && (L(p.optimisticOps, c), (y = Ai(0, c, y)) && p.optimisticOps.push(y), c.mutatedParts && Rn(c.mutatedParts));
3206
+ })) ? (p.optimisticOps.push(c), c.mutatedParts && Pn(c.mutatedParts), f.then(function(y) {
3207
+ 0 < y.numFailures && (L(p.optimisticOps, c), (y = Ci(0, c, y)) && p.optimisticOps.push(y), c.mutatedParts && Pn(c.mutatedParts));
3204
3208
  }), f.catch(function() {
3205
- L(p.optimisticOps, c), c.mutatedParts && Rn(c.mutatedParts);
3209
+ L(p.optimisticOps, c), c.mutatedParts && Pn(c.mutatedParts);
3206
3210
  })) : f.then(function(y) {
3207
- var g = Ai(0, a(a({}, c), { values: c.values.map(function(_, m) {
3211
+ var g = Ci(0, a(a({}, c), { values: c.values.map(function(_, m) {
3208
3212
  var O;
3209
3213
  return y.failures[m] ? _ : (_ = (O = s.keyPath) !== null && O !== void 0 && O.includes(".") ? we(_) : a({}, _), U(_, s.keyPath, y.results[m]), _);
3210
3214
  }) }), y);
3211
3215
  p.optimisticOps.push(g), queueMicrotask(function() {
3212
- return c.mutatedParts && Rn(c.mutatedParts);
3216
+ return c.mutatedParts && Pn(c.mutatedParts);
3213
3217
  });
3214
3218
  }), f) : i.mutate(c);
3215
3219
  }, query: function(c) {
3216
- if (!Ti(ie, i) || !Ri("query", c)) return i.query(c);
3220
+ if (!$i(ie, i) || !Di("query", c)) return i.query(c);
3217
3221
  var f = ((g = ie.trans) === null || g === void 0 ? void 0 : g.db._options.cache) === "immutable", m = ie, p = m.requery, y = m.signal, g = function(w, x, b, k) {
3218
3222
  var T = bt["idb://".concat(w, "/").concat(x)];
3219
3223
  if (!T) return [];
@@ -3222,16 +3226,16 @@ function Ds() {
3222
3226
  if (!R) return [null, !1, T, null];
3223
3227
  switch (b) {
3224
3228
  case "query":
3225
- var D = R.find(function(q) {
3226
- return q.req.limit === k.limit && q.req.values === k.values && Di(q.req.query.range, k.query.range);
3229
+ var $ = R.find(function(q) {
3230
+ return q.req.limit === k.limit && q.req.values === k.values && Mi(q.req.query.range, k.query.range);
3227
3231
  });
3228
- return D ? [D, !0, T, R] : [R.find(function(q) {
3229
- return ("limit" in q.req ? q.req.limit : 1 / 0) >= k.limit && (!k.values || q.req.values) && as(q.req.query.range, k.query.range);
3232
+ return $ ? [$, !0, T, R] : [R.find(function(q) {
3233
+ return ("limit" in q.req ? q.req.limit : 1 / 0) >= k.limit && (!k.values || q.req.values) && Es(q.req.query.range, k.query.range);
3230
3234
  }), !1, T, R];
3231
3235
  case "count":
3232
- return D = R.find(function(q) {
3233
- return Di(q.req.query.range, k.query.range);
3234
- }), [D, !!D, T, R];
3236
+ return $ = R.find(function(q) {
3237
+ return Mi(q.req.query.range, k.query.range);
3238
+ }), [$, !!$, T, R];
3235
3239
  }
3236
3240
  }(t, n, "query", c), _ = g[0], m = g[1], O = g[2], v = g[3];
3237
3241
  return _ && m ? _.obsSet = c.obsSet : (m = i.query(c).then(function(w) {
@@ -3243,13 +3247,13 @@ function Ds() {
3243
3247
  return w;
3244
3248
  }).catch(function(w) {
3245
3249
  return v && _ && L(v, _), Promise.reject(w);
3246
- }), _ = { obsSet: c.obsSet, promise: m, subscribers: /* @__PURE__ */ new Set(), type: "query", req: c, dirty: !1 }, v ? v.push(_) : (v = [_], (O = O || (bt["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[c.query.index.name || ""] = v)), us(_, v, p, y), _.promise.then(function(w) {
3247
- return { result: Pi(w.result, c, O == null ? void 0 : O.optimisticOps, i, _, f) };
3250
+ }), _ = { obsSet: c.obsSet, promise: m, subscribers: /* @__PURE__ */ new Set(), type: "query", req: c, dirty: !1 }, v ? v.push(_) : (v = [_], (O = O || (bt["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[c.query.index.name || ""] = v)), ks(_, v, p, y), _.promise.then(function(w) {
3251
+ return { result: ji(w.result, c, O == null ? void 0 : O.optimisticOps, i, _, f) };
3248
3252
  });
3249
3253
  } });
3250
3254
  } });
3251
3255
  } };
3252
- function Pn(e, t) {
3256
+ function Dn(e, t) {
3253
3257
  return new Proxy(e, { get: function(n, i, s) {
3254
3258
  return i === "db" ? t : Reflect.get(n, i, s);
3255
3259
  } });
@@ -3261,7 +3265,7 @@ function Ds() {
3261
3265
  var t = this._versions, n = t.filter(function(i) {
3262
3266
  return i._cfg.version === e;
3263
3267
  })[0];
3264
- return n || (n = new this.Version(e), t.push(n), t.sort(Qo), n.stores({}), this._state.autoSchema = !1, n);
3268
+ return n || (n = new this.Version(e), t.push(n), t.sort(ys), n.stores({}), this._state.autoSchema = !1, n);
3265
3269
  }, Pe.prototype._whenReady = function(e) {
3266
3270
  var t = this;
3267
3271
  return this.idbdb && (this._state.openComplete || ie.letThrough || this._vip) ? e() : new W(function(n, i) {
@@ -3285,7 +3289,7 @@ function Ds() {
3285
3289
  }, Pe.prototype.open = function() {
3286
3290
  var e = this;
3287
3291
  return yt(ot, function() {
3288
- return ns(e);
3292
+ return ws(e);
3289
3293
  });
3290
3294
  }, Pe.prototype._close = function() {
3291
3295
  var e = this._state, t = At.indexOf(this);
@@ -3314,7 +3318,7 @@ function Ds() {
3314
3318
  var p = t._deps.indexedDB.deleteDatabase(t.name);
3315
3319
  p.onsuccess = Te(function() {
3316
3320
  var y, g, _;
3317
- y = t._deps, g = t.name, _ = y.indexedDB, y = y.IDBKeyRange, Or(_) || g === mn || Sr(_, y).delete(g).catch(ye), s();
3321
+ y = t._deps, g = t.name, _ = y.indexedDB, y = y.IDBKeyRange, Er(_) || g === vn || Or(_, y).delete(g).catch(ye), s();
3318
3322
  }), p.onerror = Ze(c), p.onblocked = t._fireOnBlocked;
3319
3323
  }
3320
3324
  if (n) throw new Z.InvalidArgument("Invalid closeOptions argument to db.delete()");
@@ -3353,13 +3357,13 @@ function Ds() {
3353
3357
  if (f = t.map(function(g) {
3354
3358
  if (g = g instanceof i.Table ? g.name : g, typeof g != "string") throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");
3355
3359
  return g;
3356
- }), e == "r" || e === fr) c = fr;
3360
+ }), e == "r" || e === dr) c = dr;
3357
3361
  else {
3358
- if (e != "rw" && e != dr) throw new Z.InvalidArgument("Invalid transaction mode: " + e);
3359
- c = dr;
3362
+ if (e != "rw" && e != hr) throw new Z.InvalidArgument("Invalid transaction mode: " + e);
3363
+ c = hr;
3360
3364
  }
3361
3365
  if (s) {
3362
- if (s.mode === fr && c === dr) {
3366
+ if (s.mode === dr && c === hr) {
3363
3367
  if (!p) throw new Z.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");
3364
3368
  s = null;
3365
3369
  }
@@ -3420,7 +3424,7 @@ function Ds() {
3420
3424
  g.dbReadyResolve = m;
3421
3425
  }), g.openCanceller = new W(function(m, O) {
3422
3426
  g.cancelOpen = O;
3423
- }), this._state = g, this.name = e, this.on = Yt(this, "populate", "blocked", "versionchange", "close", { ready: [sn, ye] }), this.on.ready.subscribe = G(this.on.ready.subscribe, function(m) {
3427
+ }), this._state = g, this.name = e, this.on = Yt(this, "populate", "blocked", "versionchange", "close", { ready: [un, ye] }), this.on.ready.subscribe = G(this.on.ready.subscribe, function(m) {
3424
3428
  return function(O, v) {
3425
3429
  Pe.vip(function() {
3426
3430
  var w, x = n._state;
@@ -3429,9 +3433,9 @@ function Ds() {
3429
3433
  }));
3430
3434
  });
3431
3435
  };
3432
- }), this.Collection = (s = this, Ht(Ho.prototype, function(k, b) {
3436
+ }), this.Collection = (s = this, Ht(cs.prototype, function(k, b) {
3433
3437
  this.db = s;
3434
- var v = ui, w = null;
3438
+ var v = di, w = null;
3435
3439
  if (b) try {
3436
3440
  v = b();
3437
3441
  } catch (T) {
@@ -3439,9 +3443,9 @@ function Ds() {
3439
3443
  }
3440
3444
  var x = k._ctx, b = x.table, k = b.hook.reading.fire;
3441
3445
  this._ctx = { table: b, index: x.index, isPrimKey: !x.index || b.schema.primKey.keyPath && x.index === b.schema.primKey.name, range: v, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: w, or: x.or, valueMapper: k !== Ue ? k : null };
3442
- })), this.Table = (c = this, Ht(di.prototype, function(m, O, v) {
3446
+ })), this.Table = (c = this, Ht(yi.prototype, function(m, O, v) {
3443
3447
  this.db = c, this._tx = v, this.name = m, this.schema = O, this.hook = c._allTables[m] ? c._allTables[m].hook : Yt(null, { creating: [Nt, ye], reading: [Et, Ue], updating: [Ft, ye], deleting: [qt, ye] });
3444
- })), this.Transaction = (f = this, Ht(Wo.prototype, function(m, O, v, w, x) {
3448
+ })), this.Transaction = (f = this, Ht(ds.prototype, function(m, O, v, w, x) {
3445
3449
  var b = this;
3446
3450
  this.db = f, this.mode = m, this.storeNames = O, this.schema = v, this.chromeTransactionDurability = w, this.idbtrans = null, this.on = Yt(this, "complete", "error", "abort"), this.parent = x || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new W(function(k, T) {
3447
3451
  b._resolve = k, b._reject = T;
@@ -3451,9 +3455,9 @@ function Ds() {
3451
3455
  var T = b.active;
3452
3456
  return b.active = !1, b.on.error.fire(k), b.parent ? b.parent._reject(k) : T && b.idbtrans && b.idbtrans.abort(), Ae(k);
3453
3457
  });
3454
- })), this.Version = (p = this, Ht(ts.prototype, function(m) {
3458
+ })), this.Version = (p = this, Ht(bs.prototype, function(m) {
3455
3459
  this.db = p, this._cfg = { version: m, storesSource: null, dbschema: {}, tables: {}, contentUpgrade: null };
3456
- })), this.WhereClause = (y = this, Ht(vi.prototype, function(m, O, v) {
3460
+ })), this.WhereClause = (y = this, Ht(_i.prototype, function(m, O, v) {
3457
3461
  if (this.db = y, this._ctx = { table: m, index: O === ":id" ? null : O, or: v }, this._cmp = this._ascending = xe, this._descending = function(w, x) {
3458
3462
  return xe(x, w);
3459
3463
  }, this._max = function(w, x) {
@@ -3473,38 +3477,38 @@ function Ds() {
3473
3477
  }).map(function(O) {
3474
3478
  return O.on("versionchange").fire(m);
3475
3479
  });
3476
- }, this.use(os), this.use(cs), this.use(ss), this.use(rs), this.use(is);
3480
+ }, this.use(Ss), this.use(Ts), this.use(Os), this.use(_s), this.use(xs);
3477
3481
  var _ = new Proxy(this, { get: function(m, O, v) {
3478
3482
  if (O === "_vip") return !0;
3479
3483
  if (O === "table") return function(x) {
3480
- return Pn(n.table(x), _);
3484
+ return Dn(n.table(x), _);
3481
3485
  };
3482
3486
  var w = Reflect.get(m, O, v);
3483
- return w instanceof di ? Pn(w, _) : O === "tables" ? w.map(function(x) {
3484
- return Pn(x, _);
3487
+ return w instanceof yi ? Dn(w, _) : O === "tables" ? w.map(function(x) {
3488
+ return Dn(x, _);
3485
3489
  }) : O === "_createTransaction" ? function() {
3486
- return Pn(w.apply(this, arguments), _);
3490
+ return Dn(w.apply(this, arguments), _);
3487
3491
  } : w;
3488
3492
  } });
3489
3493
  this.vip = _, i.forEach(function(m) {
3490
3494
  return m(n);
3491
3495
  });
3492
3496
  }
3493
- var Dn, Ge = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", ls = (Mr.prototype.subscribe = function(e, t, n) {
3497
+ var Cn, Ge = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", Rs = (Nr.prototype.subscribe = function(e, t, n) {
3494
3498
  return this._subscribe(e && typeof e != "function" ? e : { next: e, error: t, complete: n });
3495
- }, Mr.prototype[Ge] = function() {
3499
+ }, Nr.prototype[Ge] = function() {
3496
3500
  return this;
3497
- }, Mr);
3498
- function Mr(e) {
3501
+ }, Nr);
3502
+ function Nr(e) {
3499
3503
  this._subscribe = e;
3500
3504
  }
3501
3505
  try {
3502
- Dn = { indexedDB: d.indexedDB || d.mozIndexedDB || d.webkitIndexedDB || d.msIndexedDB, IDBKeyRange: d.IDBKeyRange || d.webkitIDBKeyRange };
3506
+ Cn = { indexedDB: d.indexedDB || d.mozIndexedDB || d.webkitIndexedDB || d.msIndexedDB, IDBKeyRange: d.IDBKeyRange || d.webkitIDBKeyRange };
3503
3507
  } catch {
3504
- Dn = { indexedDB: null, IDBKeyRange: null };
3508
+ Cn = { indexedDB: null, IDBKeyRange: null };
3505
3509
  }
3506
- function $i(e) {
3507
- var t, n = !1, i = new ls(function(s) {
3510
+ function Ni(e) {
3511
+ var t, n = !1, i = new Rs(function(s) {
3508
3512
  var c = de(e), f, p = !1, y = {}, g = {}, _ = { get closed() {
3509
3513
  return p;
3510
3514
  }, unsubscribe: function() {
@@ -3512,29 +3516,29 @@ function Ds() {
3512
3516
  } };
3513
3517
  s.start && s.start(_);
3514
3518
  var m = !1, O = function() {
3515
- return lr(w);
3519
+ return fr(w);
3516
3520
  }, v = function(x) {
3517
- Tn(y, x), Tr(g, y) && O();
3521
+ An(y, x), Rr(g, y) && O();
3518
3522
  }, w = function() {
3519
3523
  var x, b, k;
3520
- !p && Dn.indexedDB && (y = {}, x = {}, f && f.abort(), f = new AbortController(), k = function(T) {
3524
+ !p && Cn.indexedDB && (y = {}, x = {}, f && f.abort(), f = new AbortController(), k = function(T) {
3521
3525
  var R = kt();
3522
3526
  try {
3523
3527
  c && Rt();
3524
- var D = st(e, T);
3525
- return D = c ? D.finally(at) : D;
3528
+ var $ = st(e, T);
3529
+ return $ = c ? $.finally(at) : $;
3526
3530
  } finally {
3527
3531
  R && Tt();
3528
3532
  }
3529
3533
  }(b = { subscr: x, signal: f.signal, requery: O, querier: e, trans: null }), Promise.resolve(k).then(function(T) {
3530
3534
  n = !0, t = T, p || b.signal.aborted || (y = {}, function(R) {
3531
- for (var D in R) if (M(R, D)) return;
3535
+ for (var $ in R) if (M(R, $)) return;
3532
3536
  return 1;
3533
- }(g = x) || m || (lt(Wt, v), m = !0), lr(function() {
3537
+ }(g = x) || m || (lt(Wt, v), m = !0), fr(function() {
3534
3538
  return !p && s.next && s.next(T);
3535
3539
  }));
3536
3540
  }, function(T) {
3537
- n = !1, ["DatabaseClosedError", "AbortError"].includes(T == null ? void 0 : T.name) || p || lr(function() {
3541
+ n = !1, ["DatabaseClosedError", "AbortError"].includes(T == null ? void 0 : T.name) || p || fr(function() {
3538
3542
  p || s.error && s.error(T);
3539
3543
  });
3540
3544
  }));
@@ -3548,10 +3552,10 @@ function Ds() {
3548
3552
  }, i;
3549
3553
  }
3550
3554
  var wt = it;
3551
- function Nr(e) {
3555
+ function qr(e) {
3552
3556
  var t = ft;
3553
3557
  try {
3554
- ft = !0, lt.storagemutated.fire(e), Pr(e, !0);
3558
+ ft = !0, lt.storagemutated.fire(e), $r(e, !0);
3555
3559
  } finally {
3556
3560
  ft = t;
3557
3561
  }
@@ -3566,13 +3570,13 @@ function Ds() {
3566
3570
  });
3567
3571
  }, getDatabaseNames: function(e) {
3568
3572
  try {
3569
- return t = wt.dependencies, n = t.indexedDB, t = t.IDBKeyRange, (Or(n) ? Promise.resolve(n.databases()).then(function(i) {
3573
+ return t = wt.dependencies, n = t.indexedDB, t = t.IDBKeyRange, (Er(n) ? Promise.resolve(n.databases()).then(function(i) {
3570
3574
  return i.map(function(s) {
3571
3575
  return s.name;
3572
3576
  }).filter(function(s) {
3573
- return s !== mn;
3577
+ return s !== vn;
3574
3578
  });
3575
- }) : Sr(n, t).toCollection().primaryKeys()).then(e);
3579
+ }) : Or(n, t).toCollection().primaryKeys()).then(e);
3576
3580
  } catch {
3577
3581
  return Ae(new Z.MissingAPI());
3578
3582
  }
@@ -3583,7 +3587,7 @@ function Ds() {
3583
3587
  };
3584
3588
  }, ignoreTransaction: function(e) {
3585
3589
  return ie.trans ? yt(ie.transless, e) : e();
3586
- }, vip: Er, async: function(e) {
3590
+ }, vip: kr, async: function(e) {
3587
3591
  return function() {
3588
3592
  try {
3589
3593
  var t = Dr(e.apply(this, arguments));
@@ -3606,102 +3610,103 @@ function Ds() {
3606
3610
  }, Promise: W, debug: { get: function() {
3607
3611
  return Qe;
3608
3612
  }, set: function(e) {
3609
- ti(e);
3610
- } }, derive: j, extend: P, props: ae, override: G, Events: Yt, on: lt, liveQuery: $i, extendObservabilitySet: Tn, getByKeyPath: te, setByKeyPath: U, delByKeyPath: function(e, t) {
3613
+ oi(e);
3614
+ } }, derive: j, extend: P, props: ae, override: G, Events: Yt, on: lt, liveQuery: Ni, extendObservabilitySet: An, getByKeyPath: te, setByKeyPath: U, delByKeyPath: function(e, t) {
3611
3615
  typeof t == "string" ? U(e, t, void 0) : "length" in t && [].map.call(t, function(n) {
3612
3616
  U(e, n, void 0);
3613
3617
  });
3614
- }, shallowClone: K, deepClone: we, getObjectDiff: $r, cmp: xe, asap: fe, minKey: -1 / 0, addons: [], connections: At, errnames: He, dependencies: Dn, cache: bt, semVer: "4.0.11", version: "4.0.11".split(".").map(function(e) {
3618
+ }, shallowClone: K, deepClone: we, getObjectDiff: Cr, cmp: xe, asap: fe, minKey: -1 / 0, addons: [], connections: At, errnames: He, dependencies: Cn, cache: bt, semVer: "4.0.11", version: "4.0.11".split(".").map(function(e) {
3615
3619
  return parseInt(e);
3616
3620
  }).reduce(function(e, t, n) {
3617
3621
  return e + t / Math.pow(10, 2 * n);
3618
3622
  }) })), wt.maxKey = Jt(wt.dependencies.IDBKeyRange), typeof dispatchEvent < "u" && typeof addEventListener < "u" && (lt(Wt, function(e) {
3619
- ft || (e = new CustomEvent(yr, { detail: e }), ft = !0, dispatchEvent(e), ft = !1);
3620
- }), addEventListener(yr, function(e) {
3621
- e = e.detail, ft || Nr(e);
3623
+ ft || (e = new CustomEvent(vr, { detail: e }), ft = !0, dispatchEvent(e), ft = !1);
3624
+ }), addEventListener(vr, function(e) {
3625
+ e = e.detail, ft || qr(e);
3622
3626
  }));
3623
- var $t, ft = !1, Ci = function() {
3627
+ var Dt, ft = !1, qi = function() {
3624
3628
  };
3625
- return typeof BroadcastChannel < "u" && ((Ci = function() {
3626
- ($t = new BroadcastChannel(yr)).onmessage = function(e) {
3627
- return e.data && Nr(e.data);
3629
+ return typeof BroadcastChannel < "u" && ((qi = function() {
3630
+ (Dt = new BroadcastChannel(vr)).onmessage = function(e) {
3631
+ return e.data && qr(e.data);
3628
3632
  };
3629
- })(), typeof $t.unref == "function" && $t.unref(), lt(Wt, function(e) {
3630
- ft || $t.postMessage(e);
3633
+ })(), typeof Dt.unref == "function" && Dt.unref(), lt(Wt, function(e) {
3634
+ ft || Dt.postMessage(e);
3631
3635
  })), typeof addEventListener < "u" && (addEventListener("pagehide", function(e) {
3632
3636
  if (!it.disableBfCache && e.persisted) {
3633
- Qe && console.debug("Dexie: handling persisted pagehide"), $t != null && $t.close();
3637
+ Qe && console.debug("Dexie: handling persisted pagehide"), Dt != null && Dt.close();
3634
3638
  for (var t = 0, n = At; t < n.length; t++) n[t].close({ disableAutoOpen: !1 });
3635
3639
  }
3636
3640
  }), addEventListener("pageshow", function(e) {
3637
- !it.disableBfCache && e.persisted && (Qe && console.debug("Dexie: handling persisted pageshow"), Ci(), Nr({ all: new qe(-1 / 0, [[]]) }));
3641
+ !it.disableBfCache && e.persisted && (Qe && console.debug("Dexie: handling persisted pageshow"), qi(), qr({ all: new qe(-1 / 0, [[]]) }));
3638
3642
  })), W.rejectionMapper = function(e, t) {
3639
- return !e || e instanceof Oe || e instanceof TypeError || e instanceof SyntaxError || !e.name || !$e[e.name] ? e : (t = new $e[e.name](t || e.message, e), "stack" in e && N(t, "stack", { get: function() {
3643
+ return !e || e instanceof Oe || e instanceof TypeError || e instanceof SyntaxError || !e.name || !De[e.name] ? e : (t = new De[e.name](t || e.message, e), "stack" in e && N(t, "stack", { get: function() {
3640
3644
  return this.inner.stack;
3641
3645
  } }), t);
3642
- }, ti(Qe), a(it, Object.freeze({ __proto__: null, Dexie: it, liveQuery: $i, Entity: ci, cmp: xe, PropModification: zt, replacePrefix: function(e, t) {
3646
+ }, oi(Qe), a(it, Object.freeze({ __proto__: null, Dexie: it, liveQuery: Ni, Entity: hi, cmp: xe, PropModification: zt, replacePrefix: function(e, t) {
3643
3647
  return new zt({ replacePrefix: [e, t] });
3644
3648
  }, add: function(e) {
3645
3649
  return new zt({ add: e });
3646
3650
  }, remove: function(e) {
3647
3651
  return new zt({ remove: e });
3648
- }, default: it, RangeSet: qe, mergeRanges: Qt, rangesOverlap: xi }), { default: it }), it;
3652
+ }, default: it, RangeSet: qe, mergeRanges: Qt, rangesOverlap: ki }), { default: it }), it;
3649
3653
  });
3650
- }(In)), In.exports;
3654
+ }(Un)), Un.exports;
3651
3655
  }
3652
- var $s = Ds();
3653
- const Ur = /* @__PURE__ */ Ct($s), Ki = Symbol.for("Dexie"), Hn = globalThis[Ki] || (globalThis[Ki] = Ur);
3654
- if (Ur.semVer !== Hn.semVer)
3655
- throw new Error(`Two different versions of Dexie loaded in the same app: ${Ur.semVer} and ${Hn.semVer}`);
3656
+ var Gs = Js();
3657
+ const Hr = /* @__PURE__ */ Ct(Gs), Ui = Symbol.for("Dexie"), Vn = globalThis[Ui] || (globalThis[Ui] = Hr);
3658
+ if (Hr.semVer !== Vn.semVer)
3659
+ throw new Error(`Two different versions of Dexie loaded in the same app: ${Hr.semVer} and ${Vn.semVer}`);
3656
3660
  const {
3657
- liveQuery: Du,
3658
- mergeRanges: $u,
3659
- rangesOverlap: Cu,
3660
- RangeSet: ju,
3661
- cmp: Mu,
3662
- Entity: Nu,
3663
- PropModification: qu,
3664
- replacePrefix: Fu,
3665
- add: Bu,
3666
- remove: Ku
3667
- } = Hn;
3668
- class oo extends Hn {
3661
+ liveQuery: Lu,
3662
+ mergeRanges: Uu,
3663
+ rangesOverlap: Yu,
3664
+ RangeSet: Hu,
3665
+ cmp: zu,
3666
+ Entity: Vu,
3667
+ PropModification: Wu,
3668
+ replacePrefix: Ju,
3669
+ add: Gu,
3670
+ remove: Xu
3671
+ } = Vn;
3672
+ class co extends Vn {
3669
3673
  constructor() {
3670
3674
  super("db");
3671
- ji(this, "rows");
3675
+ Br(this, "rows");
3672
3676
  this.version(1).stores({
3673
3677
  rows: "++id, key"
3674
3678
  });
3675
3679
  }
3676
3680
  }
3677
- const zn = new oo(), so = (r, o = !0) => zn.rows.where({ key: r }).first().then((u) => o ? u == null ? void 0 : u.value : u), Cs = async (r, o) => {
3678
- await so(r, !1) ? await zn.rows.where({ key: r }).modify({ value: o }) : await zn.rows.add({ key: r, value: o });
3679
- }, Iu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3681
+ const Wn = new co(), Zr = (r, o = !0) => Wn.rows.where({ key: r }).first().then((u) => o ? u == null ? void 0 : u.value : u), lo = async (r, o) => {
3682
+ await Zr(r, !1) ? await Wn.rows.where({ key: r }).modify({ value: o }) : await Wn.rows.add({ key: r, value: o });
3683
+ }, Xs = {
3684
+ get: Zr,
3685
+ set: lo
3686
+ }, Qu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3680
3687
  __proto__: null,
3681
- SubDexie: oo,
3682
- db: zn,
3683
- get: so,
3684
- set: Cs
3685
- }, Symbol.toStringTag, { value: "Module" })), js = (r, o, u = "") => {
3686
- var a;
3687
- return ((a = r.find((l) => l.value == (Array.isArray(o) ? o[0] : o))) == null ? void 0 : a.label) ?? u;
3688
- }, Ms = {
3689
- search: () => new URLSearchParams(location.search),
3690
- open: (r, o, u) => {
3691
- o = o || "_blank", window.open(r, o, u);
3692
- }
3693
- }, Ns = (r) => new Promise((o) => setTimeout(o, r)), qs = (r, o) => {
3688
+ SubDexie: co,
3689
+ db: Wn,
3690
+ default: Xs,
3691
+ get: Zr,
3692
+ set: lo
3693
+ }, Symbol.toStringTag, { value: "Module" })), fo = (r, o) => r.find((u) => u.value == (Array.isArray(o) ? o[0] : o)), ho = (r) => new Promise((o) => setTimeout(o, r)), po = (r, o) => {
3694
3694
  o ? console.log(o, r) : console.log(r);
3695
- }, Fs = (r) => {
3695
+ }, mo = (r) => {
3696
3696
  throw new Error(r);
3697
- }, Lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3697
+ }, Qs = {
3698
+ findByValue: fo,
3699
+ sleep: ho,
3700
+ log: po,
3701
+ fail: mo
3702
+ }, Zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3698
3703
  __proto__: null,
3699
- fail: Fs,
3700
- find: js,
3701
- log: qs,
3702
- sleep: Ns,
3703
- url: Ms
3704
- }, Symbol.toStringTag, { value: "Module" })), Bs = (r) => new Promise((o, u) => {
3704
+ default: Qs,
3705
+ fail: mo,
3706
+ findByValue: fo,
3707
+ log: po,
3708
+ sleep: ho
3709
+ }, Symbol.toStringTag, { value: "Module" })), yo = (r) => new Promise((o, u) => {
3705
3710
  const a = new FileReader();
3706
3711
  a.onload = (l) => {
3707
3712
  var d;
@@ -3710,24 +3715,29 @@ const zn = new oo(), so = (r, o = !0) => zn.rows.where({ key: r }).first().then(
3710
3715
  var d;
3711
3716
  return u((d = l.target) == null ? void 0 : d.error);
3712
3717
  }, a.readAsDataURL(r);
3713
- }).then((o) => o), Ks = (r) => {
3718
+ }).then((o) => o), vo = (r) => {
3714
3719
  const o = atob(r.split(",")[1] || r), u = new Uint8Array(o.length);
3715
3720
  for (let a = 0; a < o.length; a++)
3716
3721
  u[a] = o.charCodeAt(a);
3717
3722
  return new Blob([u]);
3718
- }, Is = (r, o) => {
3723
+ }, go = (r, o) => {
3719
3724
  const u = document.createElement("a");
3720
3725
  u.href = URL.createObjectURL(o), u.download = r, u.click(), URL.revokeObjectURL(u.href);
3721
- }, Uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3726
+ }, Zs = {
3727
+ toBase64: yo,
3728
+ toBlob: vo,
3729
+ download: go
3730
+ }, ec = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3722
3731
  __proto__: null,
3723
- download: Is,
3724
- toBase64: Bs,
3725
- toBlob: Ks
3732
+ default: Zs,
3733
+ download: go,
3734
+ toBase64: yo,
3735
+ toBlob: vo
3726
3736
  }, Symbol.toStringTag, { value: "Module" }));
3727
- var Cn = {}, jn = {}, Fr, Ii;
3728
- function ao() {
3729
- if (Ii) return Fr;
3730
- Ii = 1, Fr = r;
3737
+ var Mn = {}, Nn = {}, Kr, Yi;
3738
+ function bo() {
3739
+ if (Yi) return Kr;
3740
+ Yi = 1, Kr = r;
3731
3741
  function r(u, a) {
3732
3742
  if (a !== "$")
3733
3743
  for (var l = o(a), d = 0; d < l.length; d++)
@@ -3739,13 +3749,13 @@ function ao() {
3739
3749
  l.push(d[1] || d[2] || d[3]);
3740
3750
  return l;
3741
3751
  }
3742
- return Fr;
3752
+ return Kr;
3743
3753
  }
3744
- var Zt = {}, Li;
3745
- function Ls() {
3746
- if (Li) return Zt;
3747
- Li = 1;
3748
- var r = ao(), o = uo();
3754
+ var Zt = {}, Hi;
3755
+ function ea() {
3756
+ if (Hi) return Zt;
3757
+ Hi = 1;
3758
+ var r = bo(), o = wo();
3749
3759
  return Zt.getRegexFlags = function(a) {
3750
3760
  var l = "";
3751
3761
  return a.ignoreCase && (l += "i"), a.global && (l += "g"), a.multiline && (l += "m"), l;
@@ -3765,12 +3775,12 @@ function Ls() {
3765
3775
  case "d":
3766
3776
  return /* @__PURE__ */ new Date(+h);
3767
3777
  case "f":
3768
- var $ = function() {
3778
+ var D = function() {
3769
3779
  throw new Error("can't run jsan parsed function");
3770
3780
  };
3771
- return $.toString = function() {
3781
+ return D.toString = function() {
3772
3782
  return h;
3773
- }, $;
3783
+ }, D;
3774
3784
  case "u":
3775
3785
  return;
3776
3786
  case "e":
@@ -3795,11 +3805,11 @@ function Ls() {
3795
3805
  }
3796
3806
  }, Zt;
3797
3807
  }
3798
- var Ui;
3799
- function Us() {
3800
- if (Ui) return jn;
3801
- Ui = 1, ao();
3802
- var r = Ls(), o = typeof WeakMap < "u" ? WeakMap : function() {
3808
+ var zi;
3809
+ function ta() {
3810
+ if (zi) return Nn;
3811
+ zi = 1, bo();
3812
+ var r = ea(), o = typeof WeakMap < "u" ? WeakMap : function() {
3803
3813
  var u = [], a = [];
3804
3814
  return {
3805
3815
  set: function(l, d) {
@@ -3812,11 +3822,11 @@ function Us() {
3812
3822
  }
3813
3823
  };
3814
3824
  };
3815
- return jn.decycle = function u(a, l, d, h) {
3825
+ return Nn.decycle = function u(a, l, d, h) {
3816
3826
  h = h || new o();
3817
3827
  var S = !Object.prototype.hasOwnProperty.call(l, "circular"), P = l.refs !== !1;
3818
- return function C($, M, ae) {
3819
- var ue, N, j, E = typeof d == "function" ? d(ae || "", $) : $;
3828
+ return function C(D, M, ae) {
3829
+ var ue, N, j, E = typeof d == "function" ? d(ae || "", D) : D;
3820
3830
  if (l.date && E instanceof Date)
3821
3831
  return { $jsan: "d" + E.getTime() };
3822
3832
  if (l.regex && E instanceof RegExp)
@@ -3876,7 +3886,7 @@ function Us() {
3876
3886
  }
3877
3887
  return E;
3878
3888
  }(a, "$");
3879
- }, jn.retrocycle = function(a) {
3889
+ }, Nn.retrocycle = function(a) {
3880
3890
  return function l(d) {
3881
3891
  var h, S, P;
3882
3892
  if (d && typeof d == "object")
@@ -3891,14 +3901,14 @@ function Us() {
3891
3901
  }
3892
3902
  return d;
3893
3903
  }(a);
3894
- }, jn;
3904
+ }, Nn;
3895
3905
  }
3896
- var Yi;
3897
- function uo() {
3898
- if (Yi) return Cn;
3899
- Yi = 1;
3900
- var r = Us();
3901
- return Cn.stringify = function(u, a, l, d) {
3906
+ var Vi;
3907
+ function wo() {
3908
+ if (Vi) return Mn;
3909
+ Vi = 1;
3910
+ var r = ta();
3911
+ return Mn.stringify = function(u, a, l, d) {
3902
3912
  if (arguments.length < 4)
3903
3913
  try {
3904
3914
  return arguments.length === 1 ? JSON.stringify(u) : JSON.stringify.apply(JSON, arguments);
@@ -3919,64 +3929,71 @@ function uo() {
3919
3929
  });
3920
3930
  var S = r.decycle(u, h, a);
3921
3931
  return arguments.length === 1 ? JSON.stringify(S) : JSON.stringify(S, Array.isArray(a) ? a : null, l);
3922
- }, Cn.parse = function(u, a) {
3932
+ }, Mn.parse = function(u, a) {
3923
3933
  var l = /"\$jsan"/.test(u), d;
3924
3934
  return arguments.length === 1 ? d = JSON.parse(u) : d = JSON.parse(u, a), l && (d = r.retrocycle(d)), d;
3925
- }, Cn;
3935
+ }, Mn;
3926
3936
  }
3927
- var Br, Hi;
3928
- function Ys() {
3929
- return Hi || (Hi = 1, Br = uo()), Br;
3937
+ var Ir, Wi;
3938
+ function na() {
3939
+ return Wi || (Wi = 1, Ir = wo()), Ir;
3930
3940
  }
3931
- var Hs = Ys();
3932
- const co = /* @__PURE__ */ Ct(Hs), Xr = (r = null, o, u, a = !0) => co.stringify(r, o, u, a), lo = (r, o) => co.parse(r, o), Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3941
+ var ra = na();
3942
+ const _o = /* @__PURE__ */ Ct(ra), xo = (r = null, o, u, a = !0) => _o.stringify(r, o, u, a), So = (r, o) => _o.parse(r, o), Jn = {
3943
+ stringify: xo,
3944
+ parse: So
3945
+ }, tc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3933
3946
  __proto__: null,
3934
- parse: lo,
3935
- stringify: Xr
3947
+ default: Jn,
3948
+ parse: So,
3949
+ stringify: xo
3936
3950
  }, Symbol.toStringTag, { value: "Module" }));
3937
- let Yr;
3938
- typeof window > "u" && (Yr = require("crypto"));
3939
- const zs = async (r, o = !0) => {
3940
- const u = o ? Xr(r) : r;
3951
+ let zr;
3952
+ typeof window > "u" && (zr = require("crypto"));
3953
+ const Oo = async (r, o = !0) => {
3954
+ const u = o ? Jn.stringify(r) : r;
3941
3955
  if (typeof window < "u") {
3942
- const l = new TextEncoder().encode(u), d = await Yr.subtle.digest("SHA-256", l);
3956
+ const l = new TextEncoder().encode(u), d = await zr.subtle.digest("SHA-256", l);
3943
3957
  return Array.from(new Uint8Array(d)).map((P) => P.toString(16).padStart(2, "0")).join("");
3944
3958
  } else {
3945
- const a = Yr.createHash("sha256");
3959
+ const a = zr.createHash("sha256");
3946
3960
  return a.update(u), a.digest("hex");
3947
3961
  }
3948
- }, Hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3962
+ }, ia = {
3963
+ SHA256: Oo
3964
+ }, nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3949
3965
  __proto__: null,
3950
- SHA256: zs
3966
+ SHA256: Oo,
3967
+ default: ia
3951
3968
  }, Symbol.toStringTag, { value: "Module" }));
3952
- function fo(r, o) {
3969
+ function Eo(r, o) {
3953
3970
  return function() {
3954
3971
  return r.apply(o, arguments);
3955
3972
  };
3956
3973
  }
3957
- const { toString: Vs } = Object.prototype, { getPrototypeOf: Qr } = Object, Gn = /* @__PURE__ */ ((r) => (o) => {
3958
- const u = Vs.call(o);
3974
+ const { toString: oa } = Object.prototype, { getPrototypeOf: ei } = Object, Qn = /* @__PURE__ */ ((r) => (o) => {
3975
+ const u = oa.call(o);
3959
3976
  return r[u] || (r[u] = u.slice(8, -1).toLowerCase());
3960
- })(/* @__PURE__ */ Object.create(null)), Xe = (r) => (r = r.toLowerCase(), (o) => Gn(o) === r), Xn = (r) => (o) => typeof o === r, { isArray: jt } = Array, tn = Xn("undefined");
3961
- function Ws(r) {
3977
+ })(/* @__PURE__ */ Object.create(null)), Xe = (r) => (r = r.toLowerCase(), (o) => Qn(o) === r), Zn = (r) => (o) => typeof o === r, { isArray: jt } = Array, tn = Zn("undefined");
3978
+ function sa(r) {
3962
3979
  return r !== null && !tn(r) && r.constructor !== null && !tn(r.constructor) && We(r.constructor.isBuffer) && r.constructor.isBuffer(r);
3963
3980
  }
3964
- const ho = Xe("ArrayBuffer");
3965
- function Js(r) {
3981
+ const ko = Xe("ArrayBuffer");
3982
+ function aa(r) {
3966
3983
  let o;
3967
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? o = ArrayBuffer.isView(r) : o = r && r.buffer && ho(r.buffer), o;
3984
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? o = ArrayBuffer.isView(r) : o = r && r.buffer && ko(r.buffer), o;
3968
3985
  }
3969
- const Gs = Xn("string"), We = Xn("function"), po = Xn("number"), Qn = (r) => r !== null && typeof r == "object", Xs = (r) => r === !0 || r === !1, Ln = (r) => {
3970
- if (Gn(r) !== "object")
3986
+ const ua = Zn("string"), We = Zn("function"), To = Zn("number"), er = (r) => r !== null && typeof r == "object", ca = (r) => r === !0 || r === !1, Yn = (r) => {
3987
+ if (Qn(r) !== "object")
3971
3988
  return !1;
3972
- const o = Qr(r);
3989
+ const o = ei(r);
3973
3990
  return (o === null || o === Object.prototype || Object.getPrototypeOf(o) === null) && !(Symbol.toStringTag in r) && !(Symbol.iterator in r);
3974
- }, Qs = Xe("Date"), Zs = Xe("File"), ea = Xe("Blob"), ta = Xe("FileList"), na = (r) => Qn(r) && We(r.pipe), ra = (r) => {
3991
+ }, la = Xe("Date"), fa = Xe("File"), da = Xe("Blob"), ha = Xe("FileList"), pa = (r) => er(r) && We(r.pipe), ma = (r) => {
3975
3992
  let o;
3976
- return r && (typeof FormData == "function" && r instanceof FormData || We(r.append) && ((o = Gn(r)) === "formdata" || // detect form-data instance
3993
+ return r && (typeof FormData == "function" && r instanceof FormData || We(r.append) && ((o = Qn(r)) === "formdata" || // detect form-data instance
3977
3994
  o === "object" && We(r.toString) && r.toString() === "[object FormData]"));
3978
- }, ia = Xe("URLSearchParams"), [oa, sa, aa, ua] = ["ReadableStream", "Request", "Response", "Headers"].map(Xe), ca = (r) => r.trim ? r.trim() : r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
3979
- function nn(r, o, { allOwnKeys: u = !1 } = {}) {
3995
+ }, ya = Xe("URLSearchParams"), [va, ga, ba, wa] = ["ReadableStream", "Request", "Response", "Headers"].map(Xe), _a = (r) => r.trim ? r.trim() : r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
3996
+ function rn(r, o, { allOwnKeys: u = !1 } = {}) {
3980
3997
  if (r === null || typeof r > "u")
3981
3998
  return;
3982
3999
  let a, l;
@@ -3990,7 +4007,7 @@ function nn(r, o, { allOwnKeys: u = !1 } = {}) {
3990
4007
  S = d[a], o.call(null, r[S], S, r);
3991
4008
  }
3992
4009
  }
3993
- function mo(r, o) {
4010
+ function Ro(r, o) {
3994
4011
  o = o.toLowerCase();
3995
4012
  const u = Object.keys(r);
3996
4013
  let a = u.length, l;
@@ -3999,71 +4016,71 @@ function mo(r, o) {
3999
4016
  return l;
4000
4017
  return null;
4001
4018
  }
4002
- const xt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, yo = (r) => !tn(r) && r !== xt;
4003
- function Hr() {
4004
- const { caseless: r } = yo(this) && this || {}, o = {}, u = (a, l) => {
4005
- const d = r && mo(o, l) || l;
4006
- Ln(o[d]) && Ln(a) ? o[d] = Hr(o[d], a) : Ln(a) ? o[d] = Hr({}, a) : jt(a) ? o[d] = a.slice() : o[d] = a;
4019
+ const xt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ao = (r) => !tn(r) && r !== xt;
4020
+ function Vr() {
4021
+ const { caseless: r } = Ao(this) && this || {}, o = {}, u = (a, l) => {
4022
+ const d = r && Ro(o, l) || l;
4023
+ Yn(o[d]) && Yn(a) ? o[d] = Vr(o[d], a) : Yn(a) ? o[d] = Vr({}, a) : jt(a) ? o[d] = a.slice() : o[d] = a;
4007
4024
  };
4008
4025
  for (let a = 0, l = arguments.length; a < l; a++)
4009
- arguments[a] && nn(arguments[a], u);
4026
+ arguments[a] && rn(arguments[a], u);
4010
4027
  return o;
4011
4028
  }
4012
- const la = (r, o, u, { allOwnKeys: a } = {}) => (nn(o, (l, d) => {
4013
- u && We(l) ? r[d] = fo(l, u) : r[d] = l;
4014
- }, { allOwnKeys: a }), r), fa = (r) => (r.charCodeAt(0) === 65279 && (r = r.slice(1)), r), da = (r, o, u, a) => {
4029
+ const xa = (r, o, u, { allOwnKeys: a } = {}) => (rn(o, (l, d) => {
4030
+ u && We(l) ? r[d] = Eo(l, u) : r[d] = l;
4031
+ }, { allOwnKeys: a }), r), Sa = (r) => (r.charCodeAt(0) === 65279 && (r = r.slice(1)), r), Oa = (r, o, u, a) => {
4015
4032
  r.prototype = Object.create(o.prototype, a), r.prototype.constructor = r, Object.defineProperty(r, "super", {
4016
4033
  value: o.prototype
4017
4034
  }), u && Object.assign(r.prototype, u);
4018
- }, ha = (r, o, u, a) => {
4035
+ }, Ea = (r, o, u, a) => {
4019
4036
  let l, d, h;
4020
4037
  const S = {};
4021
4038
  if (o = o || {}, r == null) return o;
4022
4039
  do {
4023
4040
  for (l = Object.getOwnPropertyNames(r), d = l.length; d-- > 0; )
4024
4041
  h = l[d], (!a || a(h, r, o)) && !S[h] && (o[h] = r[h], S[h] = !0);
4025
- r = u !== !1 && Qr(r);
4042
+ r = u !== !1 && ei(r);
4026
4043
  } while (r && (!u || u(r, o)) && r !== Object.prototype);
4027
4044
  return o;
4028
- }, pa = (r, o, u) => {
4045
+ }, ka = (r, o, u) => {
4029
4046
  r = String(r), (u === void 0 || u > r.length) && (u = r.length), u -= o.length;
4030
4047
  const a = r.indexOf(o, u);
4031
4048
  return a !== -1 && a === u;
4032
- }, ma = (r) => {
4049
+ }, Ta = (r) => {
4033
4050
  if (!r) return null;
4034
4051
  if (jt(r)) return r;
4035
4052
  let o = r.length;
4036
- if (!po(o)) return null;
4053
+ if (!To(o)) return null;
4037
4054
  const u = new Array(o);
4038
4055
  for (; o-- > 0; )
4039
4056
  u[o] = r[o];
4040
4057
  return u;
4041
- }, ya = /* @__PURE__ */ ((r) => (o) => r && o instanceof r)(typeof Uint8Array < "u" && Qr(Uint8Array)), va = (r, o) => {
4058
+ }, Ra = /* @__PURE__ */ ((r) => (o) => r && o instanceof r)(typeof Uint8Array < "u" && ei(Uint8Array)), Aa = (r, o) => {
4042
4059
  const a = (r && r[Symbol.iterator]).call(r);
4043
4060
  let l;
4044
4061
  for (; (l = a.next()) && !l.done; ) {
4045
4062
  const d = l.value;
4046
4063
  o.call(r, d[0], d[1]);
4047
4064
  }
4048
- }, ga = (r, o) => {
4065
+ }, Pa = (r, o) => {
4049
4066
  let u;
4050
4067
  const a = [];
4051
4068
  for (; (u = r.exec(o)) !== null; )
4052
4069
  a.push(u);
4053
4070
  return a;
4054
- }, ba = Xe("HTMLFormElement"), wa = (r) => r.toLowerCase().replace(
4071
+ }, $a = Xe("HTMLFormElement"), Da = (r) => r.toLowerCase().replace(
4055
4072
  /[-_\s]([a-z\d])(\w*)/g,
4056
4073
  function(u, a, l) {
4057
4074
  return a.toUpperCase() + l;
4058
4075
  }
4059
- ), zi = (({ hasOwnProperty: r }) => (o, u) => r.call(o, u))(Object.prototype), _a = Xe("RegExp"), vo = (r, o) => {
4076
+ ), Ji = (({ hasOwnProperty: r }) => (o, u) => r.call(o, u))(Object.prototype), Ca = Xe("RegExp"), Po = (r, o) => {
4060
4077
  const u = Object.getOwnPropertyDescriptors(r), a = {};
4061
- nn(u, (l, d) => {
4078
+ rn(u, (l, d) => {
4062
4079
  let h;
4063
4080
  (h = o(l, d, r)) !== !1 && (a[d] = h || l);
4064
4081
  }), Object.defineProperties(r, a);
4065
- }, xa = (r) => {
4066
- vo(r, (o, u) => {
4082
+ }, ja = (r) => {
4083
+ Po(r, (o, u) => {
4067
4084
  if (We(r) && ["arguments", "caller", "callee"].indexOf(u) !== -1)
4068
4085
  return !1;
4069
4086
  const a = r[u];
@@ -4077,27 +4094,27 @@ const la = (r, o, u, { allOwnKeys: a } = {}) => (nn(o, (l, d) => {
4077
4094
  });
4078
4095
  }
4079
4096
  });
4080
- }, Sa = (r, o) => {
4097
+ }, Ma = (r, o) => {
4081
4098
  const u = {}, a = (l) => {
4082
4099
  l.forEach((d) => {
4083
4100
  u[d] = !0;
4084
4101
  });
4085
4102
  };
4086
4103
  return jt(r) ? a(r) : a(String(r).split(o)), u;
4087
- }, Oa = () => {
4088
- }, Ea = (r, o) => r != null && Number.isFinite(r = +r) ? r : o;
4089
- function ka(r) {
4104
+ }, Na = () => {
4105
+ }, qa = (r, o) => r != null && Number.isFinite(r = +r) ? r : o;
4106
+ function Fa(r) {
4090
4107
  return !!(r && We(r.append) && r[Symbol.toStringTag] === "FormData" && r[Symbol.iterator]);
4091
4108
  }
4092
- const Ta = (r) => {
4109
+ const Ba = (r) => {
4093
4110
  const o = new Array(10), u = (a, l) => {
4094
- if (Qn(a)) {
4111
+ if (er(a)) {
4095
4112
  if (o.indexOf(a) >= 0)
4096
4113
  return;
4097
4114
  if (!("toJSON" in a)) {
4098
4115
  o[l] = a;
4099
4116
  const d = jt(a) ? [] : {};
4100
- return nn(a, (h, S) => {
4117
+ return rn(a, (h, S) => {
4101
4118
  const P = u(h, l + 1);
4102
4119
  !tn(P) && (d[S] = P);
4103
4120
  }), o[l] = void 0, d;
@@ -4106,70 +4123,70 @@ const Ta = (r) => {
4106
4123
  return a;
4107
4124
  };
4108
4125
  return u(r, 0);
4109
- }, Ra = Xe("AsyncFunction"), Aa = (r) => r && (Qn(r) || We(r)) && We(r.then) && We(r.catch), go = ((r, o) => r ? setImmediate : o ? ((u, a) => (xt.addEventListener("message", ({ source: l, data: d }) => {
4126
+ }, Ka = Xe("AsyncFunction"), Ia = (r) => r && (er(r) || We(r)) && We(r.then) && We(r.catch), $o = ((r, o) => r ? setImmediate : o ? ((u, a) => (xt.addEventListener("message", ({ source: l, data: d }) => {
4110
4127
  l === xt && d === u && a.length && a.shift()();
4111
4128
  }, !1), (l) => {
4112
4129
  a.push(l), xt.postMessage(u, "*");
4113
4130
  }))(`axios@${Math.random()}`, []) : (u) => setTimeout(u))(
4114
4131
  typeof setImmediate == "function",
4115
4132
  We(xt.postMessage)
4116
- ), Pa = typeof queueMicrotask < "u" ? queueMicrotask.bind(xt) : typeof process < "u" && process.nextTick || go, A = {
4133
+ ), La = typeof queueMicrotask < "u" ? queueMicrotask.bind(xt) : typeof process < "u" && process.nextTick || $o, A = {
4117
4134
  isArray: jt,
4118
- isArrayBuffer: ho,
4119
- isBuffer: Ws,
4120
- isFormData: ra,
4121
- isArrayBufferView: Js,
4122
- isString: Gs,
4123
- isNumber: po,
4124
- isBoolean: Xs,
4125
- isObject: Qn,
4126
- isPlainObject: Ln,
4127
- isReadableStream: oa,
4128
- isRequest: sa,
4129
- isResponse: aa,
4130
- isHeaders: ua,
4135
+ isArrayBuffer: ko,
4136
+ isBuffer: sa,
4137
+ isFormData: ma,
4138
+ isArrayBufferView: aa,
4139
+ isString: ua,
4140
+ isNumber: To,
4141
+ isBoolean: ca,
4142
+ isObject: er,
4143
+ isPlainObject: Yn,
4144
+ isReadableStream: va,
4145
+ isRequest: ga,
4146
+ isResponse: ba,
4147
+ isHeaders: wa,
4131
4148
  isUndefined: tn,
4132
- isDate: Qs,
4133
- isFile: Zs,
4134
- isBlob: ea,
4135
- isRegExp: _a,
4149
+ isDate: la,
4150
+ isFile: fa,
4151
+ isBlob: da,
4152
+ isRegExp: Ca,
4136
4153
  isFunction: We,
4137
- isStream: na,
4138
- isURLSearchParams: ia,
4139
- isTypedArray: ya,
4140
- isFileList: ta,
4141
- forEach: nn,
4142
- merge: Hr,
4143
- extend: la,
4144
- trim: ca,
4145
- stripBOM: fa,
4146
- inherits: da,
4147
- toFlatObject: ha,
4148
- kindOf: Gn,
4154
+ isStream: pa,
4155
+ isURLSearchParams: ya,
4156
+ isTypedArray: Ra,
4157
+ isFileList: ha,
4158
+ forEach: rn,
4159
+ merge: Vr,
4160
+ extend: xa,
4161
+ trim: _a,
4162
+ stripBOM: Sa,
4163
+ inherits: Oa,
4164
+ toFlatObject: Ea,
4165
+ kindOf: Qn,
4149
4166
  kindOfTest: Xe,
4150
- endsWith: pa,
4151
- toArray: ma,
4152
- forEachEntry: va,
4153
- matchAll: ga,
4154
- isHTMLForm: ba,
4155
- hasOwnProperty: zi,
4156
- hasOwnProp: zi,
4167
+ endsWith: ka,
4168
+ toArray: Ta,
4169
+ forEachEntry: Aa,
4170
+ matchAll: Pa,
4171
+ isHTMLForm: $a,
4172
+ hasOwnProperty: Ji,
4173
+ hasOwnProp: Ji,
4157
4174
  // an alias to avoid ESLint no-prototype-builtins detection
4158
- reduceDescriptors: vo,
4159
- freezeMethods: xa,
4160
- toObjectSet: Sa,
4161
- toCamelCase: wa,
4162
- noop: Oa,
4163
- toFiniteNumber: Ea,
4164
- findKey: mo,
4175
+ reduceDescriptors: Po,
4176
+ freezeMethods: ja,
4177
+ toObjectSet: Ma,
4178
+ toCamelCase: Da,
4179
+ noop: Na,
4180
+ toFiniteNumber: qa,
4181
+ findKey: Ro,
4165
4182
  global: xt,
4166
- isContextDefined: yo,
4167
- isSpecCompliantForm: ka,
4168
- toJSONObject: Ta,
4169
- isAsyncFn: Ra,
4170
- isThenable: Aa,
4171
- setImmediate: go,
4172
- asap: Pa
4183
+ isContextDefined: Ao,
4184
+ isSpecCompliantForm: Fa,
4185
+ toJSONObject: Ba,
4186
+ isAsyncFn: Ka,
4187
+ isThenable: Ia,
4188
+ setImmediate: $o,
4189
+ asap: La
4173
4190
  };
4174
4191
  function me(r, o, u, a, l) {
4175
4192
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = r, this.name = "AxiosError", o && (this.code = o), u && (this.config = u), a && (this.request = a), l && (this.response = l, this.status = l.status ? l.status : null);
@@ -4195,7 +4212,7 @@ A.inherits(me, Error, {
4195
4212
  };
4196
4213
  }
4197
4214
  });
4198
- const bo = me.prototype, wo = {};
4215
+ const Do = me.prototype, Co = {};
4199
4216
  [
4200
4217
  "ERR_BAD_OPTION_VALUE",
4201
4218
  "ERR_BAD_OPTION",
@@ -4211,35 +4228,35 @@ const bo = me.prototype, wo = {};
4211
4228
  "ERR_INVALID_URL"
4212
4229
  // eslint-disable-next-line func-names
4213
4230
  ].forEach((r) => {
4214
- wo[r] = { value: r };
4231
+ Co[r] = { value: r };
4215
4232
  });
4216
- Object.defineProperties(me, wo);
4217
- Object.defineProperty(bo, "isAxiosError", { value: !0 });
4233
+ Object.defineProperties(me, Co);
4234
+ Object.defineProperty(Do, "isAxiosError", { value: !0 });
4218
4235
  me.from = (r, o, u, a, l, d) => {
4219
- const h = Object.create(bo);
4236
+ const h = Object.create(Do);
4220
4237
  return A.toFlatObject(r, h, function(P) {
4221
4238
  return P !== Error.prototype;
4222
4239
  }, (S) => S !== "isAxiosError"), me.call(h, r.message, o, u, a, l), h.cause = r, h.name = r.name, d && Object.assign(h, d), h;
4223
4240
  };
4224
- const Da = null;
4225
- function zr(r) {
4241
+ const Ua = null;
4242
+ function Wr(r) {
4226
4243
  return A.isPlainObject(r) || A.isArray(r);
4227
4244
  }
4228
- function _o(r) {
4245
+ function jo(r) {
4229
4246
  return A.endsWith(r, "[]") ? r.slice(0, -2) : r;
4230
4247
  }
4231
- function Vi(r, o, u) {
4248
+ function Gi(r, o, u) {
4232
4249
  return r ? r.concat(o).map(function(l, d) {
4233
- return l = _o(l), !u && d ? "[" + l + "]" : l;
4250
+ return l = jo(l), !u && d ? "[" + l + "]" : l;
4234
4251
  }).join(u ? "." : "") : o;
4235
4252
  }
4236
- function $a(r) {
4237
- return A.isArray(r) && !r.some(zr);
4253
+ function Ya(r) {
4254
+ return A.isArray(r) && !r.some(Wr);
4238
4255
  }
4239
- const Ca = A.toFlatObject(A, {}, null, function(o) {
4256
+ const Ha = A.toFlatObject(A, {}, null, function(o) {
4240
4257
  return /^is[A-Z]/.test(o);
4241
4258
  });
4242
- function Zn(r, o, u) {
4259
+ function tr(r, o, u) {
4243
4260
  if (!A.isObject(r))
4244
4261
  throw new TypeError("target must be an object");
4245
4262
  o = o || new FormData(), u = A.toFlatObject(u, {
@@ -4249,7 +4266,7 @@ function Zn(r, o, u) {
4249
4266
  }, !1, function(j, E) {
4250
4267
  return !A.isUndefined(E[j]);
4251
4268
  });
4252
- const a = u.metaTokens, l = u.visitor || $, d = u.dots, h = u.indexes, P = (u.Blob || typeof Blob < "u" && Blob) && A.isSpecCompliantForm(o);
4269
+ const a = u.metaTokens, l = u.visitor || D, d = u.dots, h = u.indexes, P = (u.Blob || typeof Blob < "u" && Blob) && A.isSpecCompliantForm(o);
4253
4270
  if (!A.isFunction(l))
4254
4271
  throw new TypeError("visitor must be a function");
4255
4272
  function C(N) {
@@ -4260,26 +4277,26 @@ function Zn(r, o, u) {
4260
4277
  throw new me("Blob is not supported. Use a Buffer instead.");
4261
4278
  return A.isArrayBuffer(N) || A.isTypedArray(N) ? P && typeof Blob == "function" ? new Blob([N]) : Buffer.from(N) : N;
4262
4279
  }
4263
- function $(N, j, E) {
4280
+ function D(N, j, E) {
4264
4281
  let J = N;
4265
4282
  if (N && !E && typeof N == "object") {
4266
4283
  if (A.endsWith(j, "{}"))
4267
4284
  j = a ? j : j.slice(0, -2), N = JSON.stringify(N);
4268
- else if (A.isArray(N) && $a(N) || (A.isFileList(N) || A.endsWith(j, "[]")) && (J = A.toArray(N)))
4269
- return j = _o(j), J.forEach(function(G, _e) {
4285
+ else if (A.isArray(N) && Ya(N) || (A.isFileList(N) || A.endsWith(j, "[]")) && (J = A.toArray(N)))
4286
+ return j = jo(j), J.forEach(function(G, _e) {
4270
4287
  !(A.isUndefined(G) || G === null) && o.append(
4271
4288
  // eslint-disable-next-line no-nested-ternary
4272
- h === !0 ? Vi([j], _e, d) : h === null ? j : j + "[]",
4289
+ h === !0 ? Gi([j], _e, d) : h === null ? j : j + "[]",
4273
4290
  C(G)
4274
4291
  );
4275
4292
  }), !1;
4276
4293
  }
4277
- return zr(N) ? !0 : (o.append(Vi(E, j, d), C(N)), !1);
4294
+ return Wr(N) ? !0 : (o.append(Gi(E, j, d), C(N)), !1);
4278
4295
  }
4279
- const M = [], ae = Object.assign(Ca, {
4280
- defaultVisitor: $,
4296
+ const M = [], ae = Object.assign(Ha, {
4297
+ defaultVisitor: D,
4281
4298
  convertValue: C,
4282
- isVisitable: zr
4299
+ isVisitable: Wr
4283
4300
  });
4284
4301
  function ue(N, j) {
4285
4302
  if (!A.isUndefined(N)) {
@@ -4300,7 +4317,7 @@ function Zn(r, o, u) {
4300
4317
  throw new TypeError("data must be an object");
4301
4318
  return ue(r), o;
4302
4319
  }
4303
- function Wi(r) {
4320
+ function Xi(r) {
4304
4321
  const o = {
4305
4322
  "!": "%21",
4306
4323
  "'": "%27",
@@ -4314,40 +4331,40 @@ function Wi(r) {
4314
4331
  return o[a];
4315
4332
  });
4316
4333
  }
4317
- function Zr(r, o) {
4318
- this._pairs = [], r && Zn(r, this, o);
4334
+ function ti(r, o) {
4335
+ this._pairs = [], r && tr(r, this, o);
4319
4336
  }
4320
- const xo = Zr.prototype;
4321
- xo.append = function(o, u) {
4337
+ const Mo = ti.prototype;
4338
+ Mo.append = function(o, u) {
4322
4339
  this._pairs.push([o, u]);
4323
4340
  };
4324
- xo.toString = function(o) {
4341
+ Mo.toString = function(o) {
4325
4342
  const u = o ? function(a) {
4326
- return o.call(this, a, Wi);
4327
- } : Wi;
4343
+ return o.call(this, a, Xi);
4344
+ } : Xi;
4328
4345
  return this._pairs.map(function(l) {
4329
4346
  return u(l[0]) + "=" + u(l[1]);
4330
4347
  }, "").join("&");
4331
4348
  };
4332
- function ja(r) {
4349
+ function za(r) {
4333
4350
  return encodeURIComponent(r).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
4334
4351
  }
4335
- function So(r, o, u) {
4352
+ function No(r, o, u) {
4336
4353
  if (!o)
4337
4354
  return r;
4338
- const a = u && u.encode || ja;
4355
+ const a = u && u.encode || za;
4339
4356
  A.isFunction(u) && (u = {
4340
4357
  serialize: u
4341
4358
  });
4342
4359
  const l = u && u.serialize;
4343
4360
  let d;
4344
- if (l ? d = l(o, u) : d = A.isURLSearchParams(o) ? o.toString() : new Zr(o, u).toString(a), d) {
4361
+ if (l ? d = l(o, u) : d = A.isURLSearchParams(o) ? o.toString() : new ti(o, u).toString(a), d) {
4345
4362
  const h = r.indexOf("#");
4346
4363
  h !== -1 && (r = r.slice(0, h)), r += (r.indexOf("?") === -1 ? "?" : "&") + d;
4347
4364
  }
4348
4365
  return r;
4349
4366
  }
4350
- class Ji {
4367
+ class Qi {
4351
4368
  constructor() {
4352
4369
  this.handlers = [];
4353
4370
  }
@@ -4401,41 +4418,41 @@ class Ji {
4401
4418
  });
4402
4419
  }
4403
4420
  }
4404
- const Oo = {
4421
+ const qo = {
4405
4422
  silentJSONParsing: !0,
4406
4423
  forcedJSONParsing: !0,
4407
4424
  clarifyTimeoutError: !1
4408
- }, Ma = typeof URLSearchParams < "u" ? URLSearchParams : Zr, Na = typeof FormData < "u" ? FormData : null, qa = typeof Blob < "u" ? Blob : null, Fa = {
4425
+ }, Va = typeof URLSearchParams < "u" ? URLSearchParams : ti, Wa = typeof FormData < "u" ? FormData : null, Ja = typeof Blob < "u" ? Blob : null, Ga = {
4409
4426
  isBrowser: !0,
4410
4427
  classes: {
4411
- URLSearchParams: Ma,
4412
- FormData: Na,
4413
- Blob: qa
4428
+ URLSearchParams: Va,
4429
+ FormData: Wa,
4430
+ Blob: Ja
4414
4431
  },
4415
4432
  protocols: ["http", "https", "file", "blob", "url", "data"]
4416
- }, ei = typeof window < "u" && typeof document < "u", Vr = typeof navigator == "object" && navigator || void 0, Ba = ei && (!Vr || ["ReactNative", "NativeScript", "NS"].indexOf(Vr.product) < 0), Ka = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
4417
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ia = ei && window.location.href || "http://localhost", La = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4433
+ }, ni = typeof window < "u" && typeof document < "u", Jr = typeof navigator == "object" && navigator || void 0, Xa = ni && (!Jr || ["ReactNative", "NativeScript", "NS"].indexOf(Jr.product) < 0), Qa = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
4434
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Za = ni && window.location.href || "http://localhost", eu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4418
4435
  __proto__: null,
4419
- hasBrowserEnv: ei,
4420
- hasStandardBrowserEnv: Ba,
4421
- hasStandardBrowserWebWorkerEnv: Ka,
4422
- navigator: Vr,
4423
- origin: Ia
4436
+ hasBrowserEnv: ni,
4437
+ hasStandardBrowserEnv: Xa,
4438
+ hasStandardBrowserWebWorkerEnv: Qa,
4439
+ navigator: Jr,
4440
+ origin: Za
4424
4441
  }, Symbol.toStringTag, { value: "Module" })), Ke = {
4425
- ...La,
4426
- ...Fa
4442
+ ...eu,
4443
+ ...Ga
4427
4444
  };
4428
- function Ua(r, o) {
4429
- return Zn(r, new Ke.classes.URLSearchParams(), Object.assign({
4445
+ function tu(r, o) {
4446
+ return tr(r, new Ke.classes.URLSearchParams(), Object.assign({
4430
4447
  visitor: function(u, a, l, d) {
4431
4448
  return Ke.isNode && A.isBuffer(u) ? (this.append(a, u.toString("base64")), !1) : d.defaultVisitor.apply(this, arguments);
4432
4449
  }
4433
4450
  }, o));
4434
4451
  }
4435
- function Ya(r) {
4452
+ function nu(r) {
4436
4453
  return A.matchAll(/\w+|\[(\w*)]/g, r).map((o) => o[0] === "[]" ? "" : o[1] || o[0]);
4437
4454
  }
4438
- function Ha(r) {
4455
+ function ru(r) {
4439
4456
  const o = {}, u = Object.keys(r);
4440
4457
  let a;
4441
4458
  const l = u.length;
@@ -4444,22 +4461,22 @@ function Ha(r) {
4444
4461
  d = u[a], o[d] = r[d];
4445
4462
  return o;
4446
4463
  }
4447
- function Eo(r) {
4464
+ function Fo(r) {
4448
4465
  function o(u, a, l, d) {
4449
4466
  let h = u[d++];
4450
4467
  if (h === "__proto__") return !0;
4451
4468
  const S = Number.isFinite(+h), P = d >= u.length;
4452
- return h = !h && A.isArray(l) ? l.length : h, P ? (A.hasOwnProp(l, h) ? l[h] = [l[h], a] : l[h] = a, !S) : ((!l[h] || !A.isObject(l[h])) && (l[h] = []), o(u, a, l[h], d) && A.isArray(l[h]) && (l[h] = Ha(l[h])), !S);
4469
+ return h = !h && A.isArray(l) ? l.length : h, P ? (A.hasOwnProp(l, h) ? l[h] = [l[h], a] : l[h] = a, !S) : ((!l[h] || !A.isObject(l[h])) && (l[h] = []), o(u, a, l[h], d) && A.isArray(l[h]) && (l[h] = ru(l[h])), !S);
4453
4470
  }
4454
4471
  if (A.isFormData(r) && A.isFunction(r.entries)) {
4455
4472
  const u = {};
4456
4473
  return A.forEachEntry(r, (a, l) => {
4457
- o(Ya(a), l, u, 0);
4474
+ o(nu(a), l, u, 0);
4458
4475
  }), u;
4459
4476
  }
4460
4477
  return null;
4461
4478
  }
4462
- function za(r, o, u) {
4479
+ function iu(r, o, u) {
4463
4480
  if (A.isString(r))
4464
4481
  try {
4465
4482
  return (o || JSON.parse)(r), A.trim(r);
@@ -4469,13 +4486,13 @@ function za(r, o, u) {
4469
4486
  }
4470
4487
  return (u || JSON.stringify)(r);
4471
4488
  }
4472
- const rn = {
4473
- transitional: Oo,
4489
+ const on = {
4490
+ transitional: qo,
4474
4491
  adapter: ["xhr", "http", "fetch"],
4475
4492
  transformRequest: [function(o, u) {
4476
4493
  const a = u.getContentType() || "", l = a.indexOf("application/json") > -1, d = A.isObject(o);
4477
4494
  if (d && A.isHTMLForm(o) && (o = new FormData(o)), A.isFormData(o))
4478
- return l ? JSON.stringify(Eo(o)) : o;
4495
+ return l ? JSON.stringify(Fo(o)) : o;
4479
4496
  if (A.isArrayBuffer(o) || A.isBuffer(o) || A.isStream(o) || A.isFile(o) || A.isBlob(o) || A.isReadableStream(o))
4480
4497
  return o;
4481
4498
  if (A.isArrayBufferView(o))
@@ -4485,20 +4502,20 @@ const rn = {
4485
4502
  let S;
4486
4503
  if (d) {
4487
4504
  if (a.indexOf("application/x-www-form-urlencoded") > -1)
4488
- return Ua(o, this.formSerializer).toString();
4505
+ return tu(o, this.formSerializer).toString();
4489
4506
  if ((S = A.isFileList(o)) || a.indexOf("multipart/form-data") > -1) {
4490
4507
  const P = this.env && this.env.FormData;
4491
- return Zn(
4508
+ return tr(
4492
4509
  S ? { "files[]": o } : o,
4493
4510
  P && new P(),
4494
4511
  this.formSerializer
4495
4512
  );
4496
4513
  }
4497
4514
  }
4498
- return d || l ? (u.setContentType("application/json", !1), za(o)) : o;
4515
+ return d || l ? (u.setContentType("application/json", !1), iu(o)) : o;
4499
4516
  }],
4500
4517
  transformResponse: [function(o) {
4501
- const u = this.transitional || rn.transitional, a = u && u.forcedJSONParsing, l = this.responseType === "json";
4518
+ const u = this.transitional || on.transitional, a = u && u.forcedJSONParsing, l = this.responseType === "json";
4502
4519
  if (A.isResponse(o) || A.isReadableStream(o))
4503
4520
  return o;
4504
4521
  if (o && A.isString(o) && (a && !this.responseType || l)) {
@@ -4536,9 +4553,9 @@ const rn = {
4536
4553
  }
4537
4554
  };
4538
4555
  A.forEach(["delete", "get", "head", "post", "put", "patch"], (r) => {
4539
- rn.headers[r] = {};
4556
+ on.headers[r] = {};
4540
4557
  });
4541
- const Va = A.toObjectSet([
4558
+ const ou = A.toObjectSet([
4542
4559
  "age",
4543
4560
  "authorization",
4544
4561
  "content-length",
@@ -4556,29 +4573,29 @@ const Va = A.toObjectSet([
4556
4573
  "referer",
4557
4574
  "retry-after",
4558
4575
  "user-agent"
4559
- ]), Wa = (r) => {
4576
+ ]), su = (r) => {
4560
4577
  const o = {};
4561
4578
  let u, a, l;
4562
4579
  return r && r.split(`
4563
4580
  `).forEach(function(h) {
4564
- l = h.indexOf(":"), u = h.substring(0, l).trim().toLowerCase(), a = h.substring(l + 1).trim(), !(!u || o[u] && Va[u]) && (u === "set-cookie" ? o[u] ? o[u].push(a) : o[u] = [a] : o[u] = o[u] ? o[u] + ", " + a : a);
4581
+ l = h.indexOf(":"), u = h.substring(0, l).trim().toLowerCase(), a = h.substring(l + 1).trim(), !(!u || o[u] && ou[u]) && (u === "set-cookie" ? o[u] ? o[u].push(a) : o[u] = [a] : o[u] = o[u] ? o[u] + ", " + a : a);
4565
4582
  }), o;
4566
- }, Gi = Symbol("internals");
4583
+ }, Zi = Symbol("internals");
4567
4584
  function en(r) {
4568
4585
  return r && String(r).trim().toLowerCase();
4569
4586
  }
4570
- function Un(r) {
4571
- return r === !1 || r == null ? r : A.isArray(r) ? r.map(Un) : String(r);
4587
+ function Hn(r) {
4588
+ return r === !1 || r == null ? r : A.isArray(r) ? r.map(Hn) : String(r);
4572
4589
  }
4573
- function Ja(r) {
4590
+ function au(r) {
4574
4591
  const o = /* @__PURE__ */ Object.create(null), u = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
4575
4592
  let a;
4576
4593
  for (; a = u.exec(r); )
4577
4594
  o[a[1]] = a[2];
4578
4595
  return o;
4579
4596
  }
4580
- const Ga = (r) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());
4581
- function Kr(r, o, u, a, l) {
4597
+ const uu = (r) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());
4598
+ function Lr(r, o, u, a, l) {
4582
4599
  if (A.isFunction(a))
4583
4600
  return a.call(this, o, u);
4584
4601
  if (l && (o = u), !!A.isString(o)) {
@@ -4588,10 +4605,10 @@ function Kr(r, o, u, a, l) {
4588
4605
  return a.test(o);
4589
4606
  }
4590
4607
  }
4591
- function Xa(r) {
4608
+ function cu(r) {
4592
4609
  return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (o, u, a) => u.toUpperCase() + a);
4593
4610
  }
4594
- function Qa(r, o) {
4611
+ function lu(r, o) {
4595
4612
  const u = A.toCamelCase(" " + o);
4596
4613
  ["get", "set", "has"].forEach((a) => {
4597
4614
  Object.defineProperty(r, a + u, {
@@ -4609,17 +4626,17 @@ let Ye = class {
4609
4626
  set(o, u, a) {
4610
4627
  const l = this;
4611
4628
  function d(S, P, C) {
4612
- const $ = en(P);
4613
- if (!$)
4629
+ const D = en(P);
4630
+ if (!D)
4614
4631
  throw new Error("header name must be a non-empty string");
4615
- const M = A.findKey(l, $);
4616
- (!M || l[M] === void 0 || C === !0 || C === void 0 && l[M] !== !1) && (l[M || P] = Un(S));
4632
+ const M = A.findKey(l, D);
4633
+ (!M || l[M] === void 0 || C === !0 || C === void 0 && l[M] !== !1) && (l[M || P] = Hn(S));
4617
4634
  }
4618
- const h = (S, P) => A.forEach(S, (C, $) => d(C, $, P));
4635
+ const h = (S, P) => A.forEach(S, (C, D) => d(C, D, P));
4619
4636
  if (A.isPlainObject(o) || o instanceof this.constructor)
4620
4637
  h(o, u);
4621
- else if (A.isString(o) && (o = o.trim()) && !Ga(o))
4622
- h(Wa(o), u);
4638
+ else if (A.isString(o) && (o = o.trim()) && !uu(o))
4639
+ h(su(o), u);
4623
4640
  else if (A.isHeaders(o))
4624
4641
  for (const [S, P] of o.entries())
4625
4642
  d(P, S, a);
@@ -4635,7 +4652,7 @@ let Ye = class {
4635
4652
  if (!u)
4636
4653
  return l;
4637
4654
  if (u === !0)
4638
- return Ja(l);
4655
+ return au(l);
4639
4656
  if (A.isFunction(u))
4640
4657
  return u.call(this, l, a);
4641
4658
  if (A.isRegExp(u))
@@ -4647,7 +4664,7 @@ let Ye = class {
4647
4664
  has(o, u) {
4648
4665
  if (o = en(o), o) {
4649
4666
  const a = A.findKey(this, o);
4650
- return !!(a && this[a] !== void 0 && (!u || Kr(this, this[a], a, u)));
4667
+ return !!(a && this[a] !== void 0 && (!u || Lr(this, this[a], a, u)));
4651
4668
  }
4652
4669
  return !1;
4653
4670
  }
@@ -4657,7 +4674,7 @@ let Ye = class {
4657
4674
  function d(h) {
4658
4675
  if (h = en(h), h) {
4659
4676
  const S = A.findKey(a, h);
4660
- S && (!u || Kr(a, a[S], S, u)) && (delete a[S], l = !0);
4677
+ S && (!u || Lr(a, a[S], S, u)) && (delete a[S], l = !0);
4661
4678
  }
4662
4679
  }
4663
4680
  return A.isArray(o) ? o.forEach(d) : d(o), l;
@@ -4667,7 +4684,7 @@ let Ye = class {
4667
4684
  let a = u.length, l = !1;
4668
4685
  for (; a--; ) {
4669
4686
  const d = u[a];
4670
- (!o || Kr(this, this[d], d, o, !0)) && (delete this[d], l = !0);
4687
+ (!o || Lr(this, this[d], d, o, !0)) && (delete this[d], l = !0);
4671
4688
  }
4672
4689
  return l;
4673
4690
  }
@@ -4676,11 +4693,11 @@ let Ye = class {
4676
4693
  return A.forEach(this, (l, d) => {
4677
4694
  const h = A.findKey(a, d);
4678
4695
  if (h) {
4679
- u[h] = Un(l), delete u[d];
4696
+ u[h] = Hn(l), delete u[d];
4680
4697
  return;
4681
4698
  }
4682
- const S = o ? Xa(d) : String(d).trim();
4683
- S !== d && delete u[d], u[S] = Un(l), a[S] = !0;
4699
+ const S = o ? cu(d) : String(d).trim();
4700
+ S !== d && delete u[d], u[S] = Hn(l), a[S] = !0;
4684
4701
  }), this;
4685
4702
  }
4686
4703
  concat(...o) {
@@ -4710,12 +4727,12 @@ let Ye = class {
4710
4727
  return u.forEach((l) => a.set(l)), a;
4711
4728
  }
4712
4729
  static accessor(o) {
4713
- const a = (this[Gi] = this[Gi] = {
4730
+ const a = (this[Zi] = this[Zi] = {
4714
4731
  accessors: {}
4715
4732
  }).accessors, l = this.prototype;
4716
4733
  function d(h) {
4717
4734
  const S = en(h);
4718
- a[S] || (Qa(l, h), a[S] = !0);
4735
+ a[S] || (lu(l, h), a[S] = !0);
4719
4736
  }
4720
4737
  return A.isArray(o) ? o.forEach(d) : d(o), this;
4721
4738
  }
@@ -4731,14 +4748,14 @@ A.reduceDescriptors(Ye.prototype, ({ value: r }, o) => {
4731
4748
  };
4732
4749
  });
4733
4750
  A.freezeMethods(Ye);
4734
- function Ir(r, o) {
4735
- const u = this || rn, a = o || u, l = Ye.from(a.headers);
4751
+ function Ur(r, o) {
4752
+ const u = this || on, a = o || u, l = Ye.from(a.headers);
4736
4753
  let d = a.data;
4737
4754
  return A.forEach(r, function(S) {
4738
4755
  d = S.call(u, d, l.normalize(), o ? o.status : void 0);
4739
4756
  }), l.normalize(), d;
4740
4757
  }
4741
- function ko(r) {
4758
+ function Bo(r) {
4742
4759
  return !!(r && r.__CANCEL__);
4743
4760
  }
4744
4761
  function Mt(r, o, u) {
@@ -4747,7 +4764,7 @@ function Mt(r, o, u) {
4747
4764
  A.inherits(Mt, me, {
4748
4765
  __CANCEL__: !0
4749
4766
  });
4750
- function To(r, o, u) {
4767
+ function Ko(r, o, u) {
4751
4768
  const a = u.config.validateStatus;
4752
4769
  !u.status || !a || a(u.status) ? r(u) : o(new me(
4753
4770
  "Request failed with status code " + u.status,
@@ -4757,43 +4774,43 @@ function To(r, o, u) {
4757
4774
  u
4758
4775
  ));
4759
4776
  }
4760
- function Za(r) {
4777
+ function fu(r) {
4761
4778
  const o = /^([-+\w]{1,25})(:?\/\/|:)/.exec(r);
4762
4779
  return o && o[1] || "";
4763
4780
  }
4764
- function eu(r, o) {
4781
+ function du(r, o) {
4765
4782
  r = r || 10;
4766
4783
  const u = new Array(r), a = new Array(r);
4767
4784
  let l = 0, d = 0, h;
4768
4785
  return o = o !== void 0 ? o : 1e3, function(P) {
4769
- const C = Date.now(), $ = a[d];
4786
+ const C = Date.now(), D = a[d];
4770
4787
  h || (h = C), u[l] = P, a[l] = C;
4771
4788
  let M = d, ae = 0;
4772
4789
  for (; M !== l; )
4773
4790
  ae += u[M++], M = M % r;
4774
4791
  if (l = (l + 1) % r, l === d && (d = (d + 1) % r), C - h < o)
4775
4792
  return;
4776
- const ue = $ && C - $;
4793
+ const ue = D && C - D;
4777
4794
  return ue ? Math.round(ae * 1e3 / ue) : void 0;
4778
4795
  };
4779
4796
  }
4780
- function tu(r, o) {
4797
+ function hu(r, o) {
4781
4798
  let u = 0, a = 1e3 / o, l, d;
4782
- const h = (C, $ = Date.now()) => {
4783
- u = $, l = null, d && (clearTimeout(d), d = null), r.apply(null, C);
4799
+ const h = (C, D = Date.now()) => {
4800
+ u = D, l = null, d && (clearTimeout(d), d = null), r.apply(null, C);
4784
4801
  };
4785
4802
  return [(...C) => {
4786
- const $ = Date.now(), M = $ - u;
4787
- M >= a ? h(C, $) : (l = C, d || (d = setTimeout(() => {
4803
+ const D = Date.now(), M = D - u;
4804
+ M >= a ? h(C, D) : (l = C, d || (d = setTimeout(() => {
4788
4805
  d = null, h(l);
4789
4806
  }, a - M)));
4790
4807
  }, () => l && h(l)];
4791
4808
  }
4792
- const Vn = (r, o, u = 3) => {
4809
+ const Gn = (r, o, u = 3) => {
4793
4810
  let a = 0;
4794
- const l = eu(50, 250);
4795
- return tu((d) => {
4796
- const h = d.loaded, S = d.lengthComputable ? d.total : void 0, P = h - a, C = l(P), $ = h <= S;
4811
+ const l = du(50, 250);
4812
+ return hu((d) => {
4813
+ const h = d.loaded, S = d.lengthComputable ? d.total : void 0, P = h - a, C = l(P), D = h <= S;
4797
4814
  a = h;
4798
4815
  const M = {
4799
4816
  loaded: h,
@@ -4801,24 +4818,24 @@ const Vn = (r, o, u = 3) => {
4801
4818
  progress: S ? h / S : void 0,
4802
4819
  bytes: P,
4803
4820
  rate: C || void 0,
4804
- estimated: C && S && $ ? (S - h) / C : void 0,
4821
+ estimated: C && S && D ? (S - h) / C : void 0,
4805
4822
  event: d,
4806
4823
  lengthComputable: S != null,
4807
4824
  [o ? "download" : "upload"]: !0
4808
4825
  };
4809
4826
  r(M);
4810
4827
  }, u);
4811
- }, Xi = (r, o) => {
4828
+ }, eo = (r, o) => {
4812
4829
  const u = r != null;
4813
4830
  return [(a) => o[0]({
4814
4831
  lengthComputable: u,
4815
4832
  total: r,
4816
4833
  loaded: a
4817
4834
  }), o[1]];
4818
- }, Qi = (r) => (...o) => A.asap(() => r(...o)), nu = Ke.hasStandardBrowserEnv ? /* @__PURE__ */ ((r, o) => (u) => (u = new URL(u, Ke.origin), r.protocol === u.protocol && r.host === u.host && (o || r.port === u.port)))(
4835
+ }, to = (r) => (...o) => A.asap(() => r(...o)), pu = Ke.hasStandardBrowserEnv ? /* @__PURE__ */ ((r, o) => (u) => (u = new URL(u, Ke.origin), r.protocol === u.protocol && r.host === u.host && (o || r.port === u.port)))(
4819
4836
  new URL(Ke.origin),
4820
4837
  Ke.navigator && /(msie|trident)/i.test(Ke.navigator.userAgent)
4821
- ) : () => !0, ru = Ke.hasStandardBrowserEnv ? (
4838
+ ) : () => !0, mu = Ke.hasStandardBrowserEnv ? (
4822
4839
  // Standard browser envs support document.cookie
4823
4840
  {
4824
4841
  write(r, o, u, a, l, d) {
@@ -4845,42 +4862,42 @@ const Vn = (r, o, u = 3) => {
4845
4862
  }
4846
4863
  }
4847
4864
  );
4848
- function iu(r) {
4865
+ function yu(r) {
4849
4866
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(r);
4850
4867
  }
4851
- function ou(r, o) {
4868
+ function vu(r, o) {
4852
4869
  return o ? r.replace(/\/?\/$/, "") + "/" + o.replace(/^\/+/, "") : r;
4853
4870
  }
4854
- function Ro(r, o, u) {
4855
- let a = !iu(o);
4856
- return r && a || u == !1 ? ou(r, o) : o;
4871
+ function Io(r, o, u) {
4872
+ let a = !yu(o);
4873
+ return r && a || u == !1 ? vu(r, o) : o;
4857
4874
  }
4858
- const Zi = (r) => r instanceof Ye ? { ...r } : r;
4875
+ const no = (r) => r instanceof Ye ? { ...r } : r;
4859
4876
  function Ot(r, o) {
4860
4877
  o = o || {};
4861
4878
  const u = {};
4862
- function a(C, $, M, ae) {
4863
- return A.isPlainObject(C) && A.isPlainObject($) ? A.merge.call({ caseless: ae }, C, $) : A.isPlainObject($) ? A.merge({}, $) : A.isArray($) ? $.slice() : $;
4879
+ function a(C, D, M, ae) {
4880
+ return A.isPlainObject(C) && A.isPlainObject(D) ? A.merge.call({ caseless: ae }, C, D) : A.isPlainObject(D) ? A.merge({}, D) : A.isArray(D) ? D.slice() : D;
4864
4881
  }
4865
- function l(C, $, M, ae) {
4866
- if (A.isUndefined($)) {
4882
+ function l(C, D, M, ae) {
4883
+ if (A.isUndefined(D)) {
4867
4884
  if (!A.isUndefined(C))
4868
4885
  return a(void 0, C, M, ae);
4869
- } else return a(C, $, M, ae);
4886
+ } else return a(C, D, M, ae);
4870
4887
  }
4871
- function d(C, $) {
4872
- if (!A.isUndefined($))
4873
- return a(void 0, $);
4888
+ function d(C, D) {
4889
+ if (!A.isUndefined(D))
4890
+ return a(void 0, D);
4874
4891
  }
4875
- function h(C, $) {
4876
- if (A.isUndefined($)) {
4892
+ function h(C, D) {
4893
+ if (A.isUndefined(D)) {
4877
4894
  if (!A.isUndefined(C))
4878
4895
  return a(void 0, C);
4879
- } else return a(void 0, $);
4896
+ } else return a(void 0, D);
4880
4897
  }
4881
- function S(C, $, M) {
4898
+ function S(C, D, M) {
4882
4899
  if (M in o)
4883
- return a(C, $);
4900
+ return a(C, D);
4884
4901
  if (M in r)
4885
4902
  return a(void 0, C);
4886
4903
  }
@@ -4913,17 +4930,17 @@ function Ot(r, o) {
4913
4930
  socketPath: h,
4914
4931
  responseEncoding: h,
4915
4932
  validateStatus: S,
4916
- headers: (C, $, M) => l(Zi(C), Zi($), M, !0)
4933
+ headers: (C, D, M) => l(no(C), no(D), M, !0)
4917
4934
  };
4918
- return A.forEach(Object.keys(Object.assign({}, r, o)), function($) {
4919
- const M = P[$] || l, ae = M(r[$], o[$], $);
4920
- A.isUndefined(ae) && M !== S || (u[$] = ae);
4935
+ return A.forEach(Object.keys(Object.assign({}, r, o)), function(D) {
4936
+ const M = P[D] || l, ae = M(r[D], o[D], D);
4937
+ A.isUndefined(ae) && M !== S || (u[D] = ae);
4921
4938
  }), u;
4922
4939
  }
4923
- const Ao = (r) => {
4940
+ const Lo = (r) => {
4924
4941
  const o = Ot({}, r);
4925
4942
  let { data: u, withXSRFToken: a, xsrfHeaderName: l, xsrfCookieName: d, headers: h, auth: S } = o;
4926
- o.headers = h = Ye.from(h), o.url = So(Ro(o.baseURL, o.url), r.params, r.paramsSerializer), S && h.set(
4943
+ o.headers = h = Ye.from(h), o.url = No(Io(o.baseURL, o.url, o.allowAbsoluteUrls), r.params, r.paramsSerializer), S && h.set(
4927
4944
  "Authorization",
4928
4945
  "Basic " + btoa((S.username || "") + ":" + (S.password ? unescape(encodeURIComponent(S.password)) : ""))
4929
4946
  );
@@ -4932,23 +4949,23 @@ const Ao = (r) => {
4932
4949
  if (Ke.hasStandardBrowserEnv || Ke.hasStandardBrowserWebWorkerEnv)
4933
4950
  h.setContentType(void 0);
4934
4951
  else if ((P = h.getContentType()) !== !1) {
4935
- const [C, ...$] = P ? P.split(";").map((M) => M.trim()).filter(Boolean) : [];
4936
- h.setContentType([C || "multipart/form-data", ...$].join("; "));
4952
+ const [C, ...D] = P ? P.split(";").map((M) => M.trim()).filter(Boolean) : [];
4953
+ h.setContentType([C || "multipart/form-data", ...D].join("; "));
4937
4954
  }
4938
4955
  }
4939
- if (Ke.hasStandardBrowserEnv && (a && A.isFunction(a) && (a = a(o)), a || a !== !1 && nu(o.url))) {
4940
- const C = l && d && ru.read(d);
4956
+ if (Ke.hasStandardBrowserEnv && (a && A.isFunction(a) && (a = a(o)), a || a !== !1 && pu(o.url))) {
4957
+ const C = l && d && mu.read(d);
4941
4958
  C && h.set(l, C);
4942
4959
  }
4943
4960
  return o;
4944
- }, su = typeof XMLHttpRequest < "u", au = su && function(r) {
4961
+ }, gu = typeof XMLHttpRequest < "u", bu = gu && function(r) {
4945
4962
  return new Promise(function(u, a) {
4946
- const l = Ao(r);
4963
+ const l = Lo(r);
4947
4964
  let d = l.data;
4948
4965
  const h = Ye.from(l.headers).normalize();
4949
- let { responseType: S, onUploadProgress: P, onDownloadProgress: C } = l, $, M, ae, ue, N;
4966
+ let { responseType: S, onUploadProgress: P, onDownloadProgress: C } = l, D, M, ae, ue, N;
4950
4967
  function j() {
4951
- ue && ue(), N && N(), l.cancelToken && l.cancelToken.unsubscribe($), l.signal && l.signal.removeEventListener("abort", $);
4968
+ ue && ue(), N && N(), l.cancelToken && l.cancelToken.unsubscribe(D), l.signal && l.signal.removeEventListener("abort", D);
4952
4969
  }
4953
4970
  let E = new XMLHttpRequest();
4954
4971
  E.open(l.method.toUpperCase(), l.url, !0), E.timeout = l.timeout;
@@ -4965,7 +4982,7 @@ const Ao = (r) => {
4965
4982
  config: r,
4966
4983
  request: E
4967
4984
  };
4968
- To(function(U) {
4985
+ Ko(function(U) {
4969
4986
  u(U), j();
4970
4987
  }, function(U) {
4971
4988
  a(U), j();
@@ -4979,7 +4996,7 @@ const Ao = (r) => {
4979
4996
  a(new me("Network Error", me.ERR_NETWORK, r, E)), E = null;
4980
4997
  }, E.ontimeout = function() {
4981
4998
  let _e = l.timeout ? "timeout of " + l.timeout + "ms exceeded" : "timeout exceeded";
4982
- const fe = l.transitional || Oo;
4999
+ const fe = l.transitional || qo;
4983
5000
  l.timeoutErrorMessage && (_e = l.timeoutErrorMessage), a(new me(
4984
5001
  _e,
4985
5002
  fe.clarifyTimeoutError ? me.ETIMEDOUT : me.ECONNABORTED,
@@ -4988,25 +5005,25 @@ const Ao = (r) => {
4988
5005
  )), E = null;
4989
5006
  }, d === void 0 && h.setContentType(null), "setRequestHeader" in E && A.forEach(h.toJSON(), function(_e, fe) {
4990
5007
  E.setRequestHeader(fe, _e);
4991
- }), A.isUndefined(l.withCredentials) || (E.withCredentials = !!l.withCredentials), S && S !== "json" && (E.responseType = l.responseType), C && ([ae, N] = Vn(C, !0), E.addEventListener("progress", ae)), P && E.upload && ([M, ue] = Vn(P), E.upload.addEventListener("progress", M), E.upload.addEventListener("loadend", ue)), (l.cancelToken || l.signal) && ($ = (G) => {
5008
+ }), A.isUndefined(l.withCredentials) || (E.withCredentials = !!l.withCredentials), S && S !== "json" && (E.responseType = l.responseType), C && ([ae, N] = Gn(C, !0), E.addEventListener("progress", ae)), P && E.upload && ([M, ue] = Gn(P), E.upload.addEventListener("progress", M), E.upload.addEventListener("loadend", ue)), (l.cancelToken || l.signal) && (D = (G) => {
4992
5009
  E && (a(!G || G.type ? new Mt(null, r, E) : G), E.abort(), E = null);
4993
- }, l.cancelToken && l.cancelToken.subscribe($), l.signal && (l.signal.aborted ? $() : l.signal.addEventListener("abort", $)));
4994
- const re = Za(l.url);
5010
+ }, l.cancelToken && l.cancelToken.subscribe(D), l.signal && (l.signal.aborted ? D() : l.signal.addEventListener("abort", D)));
5011
+ const re = fu(l.url);
4995
5012
  if (re && Ke.protocols.indexOf(re) === -1) {
4996
5013
  a(new me("Unsupported protocol " + re + ":", me.ERR_BAD_REQUEST, r));
4997
5014
  return;
4998
5015
  }
4999
5016
  E.send(d || null);
5000
5017
  });
5001
- }, uu = (r, o) => {
5018
+ }, wu = (r, o) => {
5002
5019
  const { length: u } = r = r ? r.filter(Boolean) : [];
5003
5020
  if (o || u) {
5004
5021
  let a = new AbortController(), l;
5005
5022
  const d = function(C) {
5006
5023
  if (!l) {
5007
5024
  l = !0, S();
5008
- const $ = C instanceof Error ? C : this.reason;
5009
- a.abort($ instanceof me ? $ : new Mt($ instanceof Error ? $.message : $));
5025
+ const D = C instanceof Error ? C : this.reason;
5026
+ a.abort(D instanceof me ? D : new Mt(D instanceof Error ? D.message : D));
5010
5027
  }
5011
5028
  };
5012
5029
  let h = o && setTimeout(() => {
@@ -5021,7 +5038,7 @@ const Ao = (r) => {
5021
5038
  const { signal: P } = a;
5022
5039
  return P.unsubscribe = () => A.asap(S), P;
5023
5040
  }
5024
- }, cu = function* (r, o) {
5041
+ }, _u = function* (r, o) {
5025
5042
  let u = r.byteLength;
5026
5043
  if (u < o) {
5027
5044
  yield r;
@@ -5030,10 +5047,10 @@ const Ao = (r) => {
5030
5047
  let a = 0, l;
5031
5048
  for (; a < u; )
5032
5049
  l = a + o, yield r.slice(a, l), a = l;
5033
- }, lu = async function* (r, o) {
5034
- for await (const u of fu(r))
5035
- yield* cu(u, o);
5036
- }, fu = async function* (r) {
5050
+ }, xu = async function* (r, o) {
5051
+ for await (const u of Su(r))
5052
+ yield* _u(u, o);
5053
+ }, Su = async function* (r) {
5037
5054
  if (r[Symbol.asyncIterator]) {
5038
5055
  yield* r;
5039
5056
  return;
@@ -5049,25 +5066,25 @@ const Ao = (r) => {
5049
5066
  } finally {
5050
5067
  await o.cancel();
5051
5068
  }
5052
- }, eo = (r, o, u, a) => {
5053
- const l = lu(r, o);
5069
+ }, ro = (r, o, u, a) => {
5070
+ const l = xu(r, o);
5054
5071
  let d = 0, h, S = (P) => {
5055
5072
  h || (h = !0, a && a(P));
5056
5073
  };
5057
5074
  return new ReadableStream({
5058
5075
  async pull(P) {
5059
5076
  try {
5060
- const { done: C, value: $ } = await l.next();
5077
+ const { done: C, value: D } = await l.next();
5061
5078
  if (C) {
5062
5079
  S(), P.close();
5063
5080
  return;
5064
5081
  }
5065
- let M = $.byteLength;
5082
+ let M = D.byteLength;
5066
5083
  if (u) {
5067
5084
  let ae = d += M;
5068
5085
  u(ae);
5069
5086
  }
5070
- P.enqueue(new Uint8Array($));
5087
+ P.enqueue(new Uint8Array(D));
5071
5088
  } catch (C) {
5072
5089
  throw S(C), C;
5073
5090
  }
@@ -5078,13 +5095,13 @@ const Ao = (r) => {
5078
5095
  }, {
5079
5096
  highWaterMark: 2
5080
5097
  });
5081
- }, er = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Po = er && typeof ReadableStream == "function", du = er && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((r) => (o) => r.encode(o))(new TextEncoder()) : async (r) => new Uint8Array(await new Response(r).arrayBuffer())), Do = (r, ...o) => {
5098
+ }, nr = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Uo = nr && typeof ReadableStream == "function", Ou = nr && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((r) => (o) => r.encode(o))(new TextEncoder()) : async (r) => new Uint8Array(await new Response(r).arrayBuffer())), Yo = (r, ...o) => {
5082
5099
  try {
5083
5100
  return !!r(...o);
5084
5101
  } catch {
5085
5102
  return !1;
5086
5103
  }
5087
- }, hu = Po && Do(() => {
5104
+ }, Eu = Uo && Yo(() => {
5088
5105
  let r = !1;
5089
5106
  const o = new Request(Ke.origin, {
5090
5107
  body: new ReadableStream(),
@@ -5094,17 +5111,17 @@ const Ao = (r) => {
5094
5111
  }
5095
5112
  }).headers.has("Content-Type");
5096
5113
  return r && !o;
5097
- }), to = 64 * 1024, Wr = Po && Do(() => A.isReadableStream(new Response("").body)), Wn = {
5098
- stream: Wr && ((r) => r.body)
5114
+ }), io = 64 * 1024, Gr = Uo && Yo(() => A.isReadableStream(new Response("").body)), Xn = {
5115
+ stream: Gr && ((r) => r.body)
5099
5116
  };
5100
- er && ((r) => {
5117
+ nr && ((r) => {
5101
5118
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((o) => {
5102
- !Wn[o] && (Wn[o] = A.isFunction(r[o]) ? (u) => u[o]() : (u, a) => {
5119
+ !Xn[o] && (Xn[o] = A.isFunction(r[o]) ? (u) => u[o]() : (u, a) => {
5103
5120
  throw new me(`Response type '${o}' is not supported`, me.ERR_NOT_SUPPORT, a);
5104
5121
  });
5105
5122
  });
5106
5123
  })(new Response());
5107
- const pu = async (r) => {
5124
+ const ku = async (r) => {
5108
5125
  if (r == null)
5109
5126
  return 0;
5110
5127
  if (A.isBlob(r))
@@ -5117,11 +5134,11 @@ const pu = async (r) => {
5117
5134
  if (A.isArrayBufferView(r) || A.isArrayBuffer(r))
5118
5135
  return r.byteLength;
5119
5136
  if (A.isURLSearchParams(r) && (r = r + ""), A.isString(r))
5120
- return (await du(r)).byteLength;
5121
- }, mu = async (r, o) => {
5137
+ return (await Ou(r)).byteLength;
5138
+ }, Tu = async (r, o) => {
5122
5139
  const u = A.toFiniteNumber(r.getContentLength());
5123
- return u ?? pu(o);
5124
- }, yu = er && (async (r) => {
5140
+ return u ?? ku(o);
5141
+ }, Ru = nr && (async (r) => {
5125
5142
  let {
5126
5143
  url: o,
5127
5144
  method: u,
@@ -5132,29 +5149,29 @@ const pu = async (r) => {
5132
5149
  onDownloadProgress: S,
5133
5150
  onUploadProgress: P,
5134
5151
  responseType: C,
5135
- headers: $,
5152
+ headers: D,
5136
5153
  withCredentials: M = "same-origin",
5137
5154
  fetchOptions: ae
5138
- } = Ao(r);
5155
+ } = Lo(r);
5139
5156
  C = C ? (C + "").toLowerCase() : "text";
5140
- let ue = uu([l, d && d.toAbortSignal()], h), N;
5157
+ let ue = wu([l, d && d.toAbortSignal()], h), N;
5141
5158
  const j = ue && ue.unsubscribe && (() => {
5142
5159
  ue.unsubscribe();
5143
5160
  });
5144
5161
  let E;
5145
5162
  try {
5146
- if (P && hu && u !== "get" && u !== "head" && (E = await mu($, a)) !== 0) {
5163
+ if (P && Eu && u !== "get" && u !== "head" && (E = await Tu(D, a)) !== 0) {
5147
5164
  let fe = new Request(o, {
5148
5165
  method: "POST",
5149
5166
  body: a,
5150
5167
  duplex: "half"
5151
5168
  }), te;
5152
- if (A.isFormData(a) && (te = fe.headers.get("content-type")) && $.setContentType(te), fe.body) {
5153
- const [U, K] = Xi(
5169
+ if (A.isFormData(a) && (te = fe.headers.get("content-type")) && D.setContentType(te), fe.body) {
5170
+ const [U, K] = eo(
5154
5171
  E,
5155
- Vn(Qi(P))
5172
+ Gn(to(P))
5156
5173
  );
5157
- a = eo(fe.body, to, U, K);
5174
+ a = ro(fe.body, io, U, K);
5158
5175
  }
5159
5176
  }
5160
5177
  A.isString(M) || (M = M ? "include" : "omit");
@@ -5163,33 +5180,33 @@ const pu = async (r) => {
5163
5180
  ...ae,
5164
5181
  signal: ue,
5165
5182
  method: u.toUpperCase(),
5166
- headers: $.normalize().toJSON(),
5183
+ headers: D.normalize().toJSON(),
5167
5184
  body: a,
5168
5185
  duplex: "half",
5169
5186
  credentials: J ? M : void 0
5170
5187
  });
5171
5188
  let re = await fetch(N);
5172
- const G = Wr && (C === "stream" || C === "response");
5173
- if (Wr && (S || G && j)) {
5189
+ const G = Gr && (C === "stream" || C === "response");
5190
+ if (Gr && (S || G && j)) {
5174
5191
  const fe = {};
5175
5192
  ["status", "statusText", "headers"].forEach((ce) => {
5176
5193
  fe[ce] = re[ce];
5177
5194
  });
5178
- const te = A.toFiniteNumber(re.headers.get("content-length")), [U, K] = S && Xi(
5195
+ const te = A.toFiniteNumber(re.headers.get("content-length")), [U, K] = S && eo(
5179
5196
  te,
5180
- Vn(Qi(S), !0)
5197
+ Gn(to(S), !0)
5181
5198
  ) || [];
5182
5199
  re = new Response(
5183
- eo(re.body, to, U, () => {
5200
+ ro(re.body, io, U, () => {
5184
5201
  K && K(), j && j();
5185
5202
  }),
5186
5203
  fe
5187
5204
  );
5188
5205
  }
5189
5206
  C = C || "text";
5190
- let _e = await Wn[A.findKey(Wn, C) || "text"](re, r);
5207
+ let _e = await Xn[A.findKey(Xn, C) || "text"](re, r);
5191
5208
  return !G && j && j(), await new Promise((fe, te) => {
5192
- To(fe, te, {
5209
+ Ko(fe, te, {
5193
5210
  data: _e,
5194
5211
  headers: Ye.from(re.headers),
5195
5212
  status: re.status,
@@ -5206,12 +5223,12 @@ const pu = async (r) => {
5206
5223
  }
5207
5224
  ) : me.from(J, J && J.code, r, N);
5208
5225
  }
5209
- }), Jr = {
5210
- http: Da,
5211
- xhr: au,
5212
- fetch: yu
5226
+ }), Xr = {
5227
+ http: Ua,
5228
+ xhr: bu,
5229
+ fetch: Ru
5213
5230
  };
5214
- A.forEach(Jr, (r, o) => {
5231
+ A.forEach(Xr, (r, o) => {
5215
5232
  if (r) {
5216
5233
  try {
5217
5234
  Object.defineProperty(r, "name", { value: o });
@@ -5220,7 +5237,7 @@ A.forEach(Jr, (r, o) => {
5220
5237
  Object.defineProperty(r, "adapterName", { value: o });
5221
5238
  }
5222
5239
  });
5223
- const no = (r) => `- ${r}`, vu = (r) => A.isFunction(r) || r === null || r === !1, $o = {
5240
+ const oo = (r) => `- ${r}`, Au = (r) => A.isFunction(r) || r === null || r === !1, Ho = {
5224
5241
  getAdapter: (r) => {
5225
5242
  r = A.isArray(r) ? r : [r];
5226
5243
  const { length: o } = r;
@@ -5229,7 +5246,7 @@ const no = (r) => `- ${r}`, vu = (r) => A.isFunction(r) || r === null || r === !
5229
5246
  for (let d = 0; d < o; d++) {
5230
5247
  u = r[d];
5231
5248
  let h;
5232
- if (a = u, !vu(u) && (a = Jr[(h = String(u)).toLowerCase()], a === void 0))
5249
+ if (a = u, !Au(u) && (a = Xr[(h = String(u)).toLowerCase()], a === void 0))
5233
5250
  throw new me(`Unknown adapter '${h}'`);
5234
5251
  if (a)
5235
5252
  break;
@@ -5240,8 +5257,8 @@ const no = (r) => `- ${r}`, vu = (r) => A.isFunction(r) || r === null || r === !
5240
5257
  ([S, P]) => `adapter ${S} ` + (P === !1 ? "is not supported by the environment" : "is not available in the build")
5241
5258
  );
5242
5259
  let h = o ? d.length > 1 ? `since :
5243
- ` + d.map(no).join(`
5244
- `) : " " + no(d[0]) : "as no adapter specified";
5260
+ ` + d.map(oo).join(`
5261
+ `) : " " + oo(d[0]) : "as no adapter specified";
5245
5262
  throw new me(
5246
5263
  "There is no suitable adapter to dispatch the request " + h,
5247
5264
  "ERR_NOT_SUPPORT"
@@ -5249,40 +5266,40 @@ const no = (r) => `- ${r}`, vu = (r) => A.isFunction(r) || r === null || r === !
5249
5266
  }
5250
5267
  return a;
5251
5268
  },
5252
- adapters: Jr
5269
+ adapters: Xr
5253
5270
  };
5254
- function Lr(r) {
5271
+ function Yr(r) {
5255
5272
  if (r.cancelToken && r.cancelToken.throwIfRequested(), r.signal && r.signal.aborted)
5256
5273
  throw new Mt(null, r);
5257
5274
  }
5258
- function ro(r) {
5259
- return Lr(r), r.headers = Ye.from(r.headers), r.data = Ir.call(
5275
+ function so(r) {
5276
+ return Yr(r), r.headers = Ye.from(r.headers), r.data = Ur.call(
5260
5277
  r,
5261
5278
  r.transformRequest
5262
- ), ["post", "put", "patch"].indexOf(r.method) !== -1 && r.headers.setContentType("application/x-www-form-urlencoded", !1), $o.getAdapter(r.adapter || rn.adapter)(r).then(function(a) {
5263
- return Lr(r), a.data = Ir.call(
5279
+ ), ["post", "put", "patch"].indexOf(r.method) !== -1 && r.headers.setContentType("application/x-www-form-urlencoded", !1), Ho.getAdapter(r.adapter || on.adapter)(r).then(function(a) {
5280
+ return Yr(r), a.data = Ur.call(
5264
5281
  r,
5265
5282
  r.transformResponse,
5266
5283
  a
5267
5284
  ), a.headers = Ye.from(a.headers), a;
5268
5285
  }, function(a) {
5269
- return ko(a) || (Lr(r), a && a.response && (a.response.data = Ir.call(
5286
+ return Bo(a) || (Yr(r), a && a.response && (a.response.data = Ur.call(
5270
5287
  r,
5271
5288
  r.transformResponse,
5272
5289
  a.response
5273
5290
  ), a.response.headers = Ye.from(a.response.headers))), Promise.reject(a);
5274
5291
  });
5275
5292
  }
5276
- const Co = "1.8.2", tr = {};
5293
+ const zo = "1.8.3", rr = {};
5277
5294
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((r, o) => {
5278
- tr[r] = function(a) {
5295
+ rr[r] = function(a) {
5279
5296
  return typeof a === r || "a" + (o < 1 ? "n " : " ") + r;
5280
5297
  };
5281
5298
  });
5282
- const io = {};
5283
- tr.transitional = function(o, u, a) {
5299
+ const ao = {};
5300
+ rr.transitional = function(o, u, a) {
5284
5301
  function l(d, h) {
5285
- return "[Axios v" + Co + "] Transitional option '" + d + "'" + h + (a ? ". " + a : "");
5302
+ return "[Axios v" + zo + "] Transitional option '" + d + "'" + h + (a ? ". " + a : "");
5286
5303
  }
5287
5304
  return (d, h, S) => {
5288
5305
  if (o === !1)
@@ -5290,7 +5307,7 @@ tr.transitional = function(o, u, a) {
5290
5307
  l(h, " has been removed" + (u ? " in " + u : "")),
5291
5308
  me.ERR_DEPRECATED
5292
5309
  );
5293
- return u && !io[h] && (io[h] = !0, console.warn(
5310
+ return u && !ao[h] && (ao[h] = !0, console.warn(
5294
5311
  l(
5295
5312
  h,
5296
5313
  " has been deprecated since v" + u + " and will be removed in the near future"
@@ -5298,10 +5315,10 @@ tr.transitional = function(o, u, a) {
5298
5315
  )), o ? o(d, h, S) : !0;
5299
5316
  };
5300
5317
  };
5301
- tr.spelling = function(o) {
5318
+ rr.spelling = function(o) {
5302
5319
  return (u, a) => (console.warn(`${a} is likely a misspelling of ${o}`), !0);
5303
5320
  };
5304
- function gu(r, o, u) {
5321
+ function Pu(r, o, u) {
5305
5322
  if (typeof r != "object")
5306
5323
  throw new me("options must be an object", me.ERR_BAD_OPTION_VALUE);
5307
5324
  const a = Object.keys(r);
@@ -5318,15 +5335,15 @@ function gu(r, o, u) {
5318
5335
  throw new me("Unknown option " + d, me.ERR_BAD_OPTION);
5319
5336
  }
5320
5337
  }
5321
- const Yn = {
5322
- assertOptions: gu,
5323
- validators: tr
5324
- }, tt = Yn.validators;
5338
+ const zn = {
5339
+ assertOptions: Pu,
5340
+ validators: rr
5341
+ }, tt = zn.validators;
5325
5342
  let St = class {
5326
5343
  constructor(o) {
5327
5344
  this.defaults = o, this.interceptors = {
5328
- request: new Ji(),
5329
- response: new Ji()
5345
+ request: new Qi(),
5346
+ response: new Qi()
5330
5347
  };
5331
5348
  }
5332
5349
  /**
@@ -5357,16 +5374,16 @@ let St = class {
5357
5374
  _request(o, u) {
5358
5375
  typeof o == "string" ? (u = u || {}, u.url = o) : u = o || {}, u = Ot(this.defaults, u);
5359
5376
  const { transitional: a, paramsSerializer: l, headers: d } = u;
5360
- a !== void 0 && Yn.assertOptions(a, {
5377
+ a !== void 0 && zn.assertOptions(a, {
5361
5378
  silentJSONParsing: tt.transitional(tt.boolean),
5362
5379
  forcedJSONParsing: tt.transitional(tt.boolean),
5363
5380
  clarifyTimeoutError: tt.transitional(tt.boolean)
5364
5381
  }, !1), l != null && (A.isFunction(l) ? u.paramsSerializer = {
5365
5382
  serialize: l
5366
- } : Yn.assertOptions(l, {
5383
+ } : zn.assertOptions(l, {
5367
5384
  encode: tt.function,
5368
5385
  serialize: tt.function
5369
- }, !0)), u.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? u.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : u.allowAbsoluteUrls = !0), Yn.assertOptions(u, {
5386
+ }, !0)), u.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? u.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : u.allowAbsoluteUrls = !0), zn.assertOptions(u, {
5370
5387
  baseUrl: tt.spelling("baseURL"),
5371
5388
  withXsrfToken: tt.spelling("withXSRFToken")
5372
5389
  }, !0), u.method = (u.method || this.defaults.method || "get").toLowerCase();
@@ -5389,12 +5406,12 @@ let St = class {
5389
5406
  this.interceptors.response.forEach(function(j) {
5390
5407
  C.push(j.fulfilled, j.rejected);
5391
5408
  });
5392
- let $, M = 0, ae;
5409
+ let D, M = 0, ae;
5393
5410
  if (!P) {
5394
- const N = [ro.bind(this), void 0];
5395
- for (N.unshift.apply(N, S), N.push.apply(N, C), ae = N.length, $ = Promise.resolve(u); M < ae; )
5396
- $ = $.then(N[M++], N[M++]);
5397
- return $;
5411
+ const N = [so.bind(this), void 0];
5412
+ for (N.unshift.apply(N, S), N.push.apply(N, C), ae = N.length, D = Promise.resolve(u); M < ae; )
5413
+ D = D.then(N[M++], N[M++]);
5414
+ return D;
5398
5415
  }
5399
5416
  ae = S.length;
5400
5417
  let ue = u;
@@ -5408,18 +5425,18 @@ let St = class {
5408
5425
  }
5409
5426
  }
5410
5427
  try {
5411
- $ = ro.call(this, ue);
5428
+ D = so.call(this, ue);
5412
5429
  } catch (N) {
5413
5430
  return Promise.reject(N);
5414
5431
  }
5415
5432
  for (M = 0, ae = C.length; M < ae; )
5416
- $ = $.then(C[M++], C[M++]);
5417
- return $;
5433
+ D = D.then(C[M++], C[M++]);
5434
+ return D;
5418
5435
  }
5419
5436
  getUri(o) {
5420
5437
  o = Ot(this.defaults, o);
5421
- const u = Ro(o.baseURL, o.url, o.allowAbsoluteUrls);
5422
- return So(u, o.params, o.paramsSerializer);
5438
+ const u = Io(o.baseURL, o.url, o.allowAbsoluteUrls);
5439
+ return No(u, o.params, o.paramsSerializer);
5423
5440
  }
5424
5441
  };
5425
5442
  A.forEach(["delete", "get", "head", "options"], function(o) {
@@ -5446,7 +5463,7 @@ A.forEach(["post", "put", "patch"], function(o) {
5446
5463
  }
5447
5464
  St.prototype[o] = u(), St.prototype[o + "Form"] = u(!0);
5448
5465
  });
5449
- let bu = class jo {
5466
+ let $u = class Vo {
5450
5467
  constructor(o) {
5451
5468
  if (typeof o != "function")
5452
5469
  throw new TypeError("executor must be a function.");
@@ -5512,22 +5529,22 @@ let bu = class jo {
5512
5529
  static source() {
5513
5530
  let o;
5514
5531
  return {
5515
- token: new jo(function(l) {
5532
+ token: new Vo(function(l) {
5516
5533
  o = l;
5517
5534
  }),
5518
5535
  cancel: o
5519
5536
  };
5520
5537
  }
5521
5538
  };
5522
- function wu(r) {
5539
+ function Du(r) {
5523
5540
  return function(u) {
5524
5541
  return r.apply(null, u);
5525
5542
  };
5526
5543
  }
5527
- function _u(r) {
5544
+ function Cu(r) {
5528
5545
  return A.isObject(r) && r.isAxiosError === !0;
5529
5546
  }
5530
- const Gr = {
5547
+ const Qr = {
5531
5548
  Continue: 100,
5532
5549
  SwitchingProtocols: 101,
5533
5550
  Processing: 102,
@@ -5592,119 +5609,158 @@ const Gr = {
5592
5609
  NotExtended: 510,
5593
5610
  NetworkAuthenticationRequired: 511
5594
5611
  };
5595
- Object.entries(Gr).forEach(([r, o]) => {
5596
- Gr[o] = r;
5612
+ Object.entries(Qr).forEach(([r, o]) => {
5613
+ Qr[o] = r;
5597
5614
  });
5598
- function Mo(r) {
5599
- const o = new St(r), u = fo(St.prototype.request, o);
5615
+ function Wo(r) {
5616
+ const o = new St(r), u = Eo(St.prototype.request, o);
5600
5617
  return A.extend(u, St.prototype, o, { allOwnKeys: !0 }), A.extend(u, o, null, { allOwnKeys: !0 }), u.create = function(l) {
5601
- return Mo(Ot(r, l));
5618
+ return Wo(Ot(r, l));
5602
5619
  }, u;
5603
5620
  }
5604
- const De = Mo(rn);
5605
- De.Axios = St;
5606
- De.CanceledError = Mt;
5607
- De.CancelToken = bu;
5608
- De.isCancel = ko;
5609
- De.VERSION = Co;
5610
- De.toFormData = Zn;
5611
- De.AxiosError = me;
5612
- De.Cancel = De.CanceledError;
5613
- De.all = function(o) {
5621
+ const $e = Wo(on);
5622
+ $e.Axios = St;
5623
+ $e.CanceledError = Mt;
5624
+ $e.CancelToken = $u;
5625
+ $e.isCancel = Bo;
5626
+ $e.VERSION = zo;
5627
+ $e.toFormData = tr;
5628
+ $e.AxiosError = me;
5629
+ $e.Cancel = $e.CanceledError;
5630
+ $e.all = function(o) {
5614
5631
  return Promise.all(o);
5615
5632
  };
5616
- De.spread = wu;
5617
- De.isAxiosError = _u;
5618
- De.mergeConfig = Ot;
5619
- De.AxiosHeaders = Ye;
5620
- De.formToJSON = (r) => Eo(A.isHTMLForm(r) ? new FormData(r) : r);
5621
- De.getAdapter = $o.getAdapter;
5622
- De.HttpStatusCode = Gr;
5623
- De.default = De;
5633
+ $e.spread = Du;
5634
+ $e.isAxiosError = Cu;
5635
+ $e.mergeConfig = Ot;
5636
+ $e.AxiosHeaders = Ye;
5637
+ $e.formToJSON = (r) => Fo(A.isHTMLForm(r) ? new FormData(r) : r);
5638
+ $e.getAdapter = Ho.getAdapter;
5639
+ $e.HttpStatusCode = Qr;
5640
+ $e.default = $e;
5624
5641
  const {
5625
- Axios: Wu,
5626
- AxiosError: Ju,
5627
- CanceledError: Gu,
5628
- isCancel: Xu,
5629
- CancelToken: Qu,
5630
- VERSION: Zu,
5631
- all: ec,
5632
- Cancel: tc,
5633
- isAxiosError: nc,
5634
- spread: rc,
5635
- toFormData: ic,
5636
- AxiosHeaders: oc,
5637
- HttpStatusCode: sc,
5638
- formToJSON: ac,
5639
- getAdapter: uc,
5640
- mergeConfig: cc
5641
- } = De, No = (r) => ({
5642
- getRaw: (o, u = null) => (r == null ? void 0 : r.getItem(o)) || u,
5643
- setRaw: (o, u) => {
5644
- r == null || r.setItem(o, u);
5645
- },
5646
- get: (o, u = null) => {
5647
- const a = r == null ? void 0 : r.getItem(o);
5648
- return a ? lo(a) : u;
5649
- },
5650
- set: (o, u) => {
5651
- r == null || r.setItem(o, Xr(u));
5652
- },
5653
- del: (o) => {
5654
- r == null || r.removeItem(o);
5655
- },
5656
- clear: () => {
5657
- r == null || r.clear();
5642
+ Axios: oc,
5643
+ AxiosError: sc,
5644
+ CanceledError: ac,
5645
+ isCancel: uc,
5646
+ CancelToken: cc,
5647
+ VERSION: lc,
5648
+ all: fc,
5649
+ Cancel: dc,
5650
+ isAxiosError: hc,
5651
+ spread: pc,
5652
+ toFormData: mc,
5653
+ AxiosHeaders: yc,
5654
+ HttpStatusCode: vc,
5655
+ formToJSON: gc,
5656
+ getAdapter: bc,
5657
+ mergeConfig: wc
5658
+ } = $e;
5659
+ class Jo {
5660
+ constructor(o) {
5661
+ Br(this, "storage");
5662
+ this.storage = o;
5663
+ }
5664
+ getRaw(o, u = null) {
5665
+ return this.storage.getItem(o) || u;
5666
+ }
5667
+ setRaw(o, u) {
5668
+ this.storage.setItem(o, u);
5658
5669
  }
5659
- }), xu = No(sessionStorage), qo = No(localStorage), lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5670
+ get(o, u = null) {
5671
+ const a = this.getRaw(o);
5672
+ return a ? Jn.parse(a) : u;
5673
+ }
5674
+ set(o, u) {
5675
+ this.setRaw(o, Jn.stringify(u));
5676
+ }
5677
+ del(o) {
5678
+ this.storage.removeItem(o);
5679
+ }
5680
+ clear() {
5681
+ this.storage.clear();
5682
+ }
5683
+ }
5684
+ const ri = new Jo(localStorage), Go = new Jo(sessionStorage), ju = {
5685
+ local: ri,
5686
+ session: Go
5687
+ }, _c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5660
5688
  __proto__: null,
5661
- local: qo,
5662
- session: xu
5663
- }, Symbol.toStringTag, { value: "Module" })), Fo = "access_token", Bo = (r, o = "请求异常.") => r.message || r.msg || o, on = De.create({
5689
+ default: ju,
5690
+ local: ri,
5691
+ session: Go
5692
+ }, Symbol.toStringTag, { value: "Module" })), Xo = "access_token", Qo = (r, o = "请求异常.") => r.message || r.msg || o, sn = $e.create({
5664
5693
  baseURL: "",
5665
5694
  timeout: 3e3,
5666
5695
  headers: { "Content-Type": "application/json" }
5667
- }), Su = () => on.interceptors.request.use((r) => {
5668
- const o = qo.get(Fo);
5696
+ }), Mu = () => sn.interceptors.request.use((r) => {
5697
+ const o = ri.get(Xo);
5669
5698
  return o && (r.headers.Authorization = `Bearer ${o}`), r;
5670
- }), Ou = (r) => on.interceptors.response.use(
5699
+ }), Nu = (r) => sn.interceptors.response.use(
5671
5700
  (o) => {
5672
5701
  const u = o.data;
5673
5702
  if (o.status === 200)
5674
5703
  return u.data;
5675
- const a = new Error(Bo(u));
5704
+ const a = new Error(Qo(u));
5676
5705
  return r ? r(a) : Promise.reject(a);
5677
5706
  },
5678
5707
  (o) => r ? r(o) : Promise.reject(o)
5679
5708
  );
5680
- let Mn = !1, Nn = [];
5681
- const Eu = (r, o, u) => {
5709
+ let qn = !1, Fn = [];
5710
+ const qu = (r, o, u) => {
5682
5711
  const { response: a } = r;
5683
- return a.config.url == o ? (Mn = !1, Nn = [], Promise.reject(r)) : (Mn || (Mn = !0, u().then(() => Nn.forEach((l) => l())).finally(() => {
5684
- Mn = !1, Nn = [];
5712
+ return a.config.url == o ? (qn = !1, Fn = [], Promise.reject(r)) : (qn || (qn = !0, u().then(() => Fn.forEach((l) => l())).finally(() => {
5713
+ qn = !1, Fn = [];
5685
5714
  })), new Promise((l) => {
5686
- Nn.push(() => l(on(a.config)));
5715
+ Fn.push(() => l(sn(a.config)));
5687
5716
  }));
5688
- }, ku = (r, o) => nr({ url: r, method: "GET", params: o }), Tu = (r, o) => nr({ url: r, method: "POST", data: o }), Ru = (r) => (r.responseType = r.responseType || "blob", nr(r)), nr = (r) => on.request(r), fc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5717
+ }, Zo = (r, o) => an({ url: r, method: "GET", params: o }), es = (r, o) => an({ url: r, method: "POST", data: o }), ts = (r) => (r.responseType = r.responseType || "blob", an(r)), an = (r) => sn.request(r), Fu = {
5718
+ get: Zo,
5719
+ post: es,
5720
+ download: ts,
5721
+ request: an
5722
+ }, xc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5723
+ __proto__: null,
5724
+ ACCESS_TOKEN: Xo,
5725
+ axios: sn,
5726
+ default: Fu,
5727
+ download: ts,
5728
+ get: Zo,
5729
+ message: Qo,
5730
+ post: es,
5731
+ request: an,
5732
+ responseInterceptor: Nu,
5733
+ retry: qu,
5734
+ tokenRequestInterceptor: Mu
5735
+ }, Symbol.toStringTag, { value: "Module" })), ii = () => {
5736
+ const r = decodeURIComponent(location.search);
5737
+ return new URLSearchParams(r);
5738
+ }, ns = () => {
5739
+ let r = {};
5740
+ for (let [o, u] of ii().entries())
5741
+ r[o] = u;
5742
+ return r;
5743
+ }, rs = (r, o, u) => {
5744
+ o = o || "_blank", window.open(r, o, u);
5745
+ }, Bu = {
5746
+ search: ii,
5747
+ all: ns,
5748
+ open: rs
5749
+ }, Sc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5689
5750
  __proto__: null,
5690
- ACCESS_TOKEN: Fo,
5691
- axios: on,
5692
- download: Ru,
5693
- get: ku,
5694
- message: Bo,
5695
- post: Tu,
5696
- request: nr,
5697
- responseInterceptor: Ou,
5698
- retry: Eu,
5699
- tokenRequestInterceptor: Su
5751
+ all: ns,
5752
+ default: Bu,
5753
+ open: rs,
5754
+ search: ii
5700
5755
  }, Symbol.toStringTag, { value: "Module" }));
5701
5756
  export {
5702
- Pu as date,
5703
- Iu as db,
5704
- Lu as fast,
5705
- Uu as file,
5706
- Hu as hash,
5707
- fc as http,
5708
- Yu as json,
5709
- lc as storage
5757
+ Iu as date,
5758
+ Qu as db,
5759
+ Zu as fast,
5760
+ ec as file,
5761
+ nc as hash,
5762
+ xc as http,
5763
+ tc as json,
5764
+ _c as storage,
5765
+ Sc as url
5710
5766
  };