buzzcasting-storage 2.9.3 → 2.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  var Ei = Object.defineProperty;
2
2
  var Oi = (w, o, h) => o in w ? Ei(w, o, { enumerable: !0, configurable: !0, writable: !0, value: h }) : w[o] = h;
3
3
  var P = (w, o, h) => (Oi(w, typeof o != "symbol" ? o + "" : o, h), h);
4
- const xi = "2.9.2";
4
+ const xi = "2.9.3";
5
5
  class ki {
6
6
  constructor(o) {
7
7
  P(this, "options");
@@ -156,17 +156,17 @@ var Rr = { exports: {} };
156
156
  u !== -1 ? (a = t.substr(0, u), (s = t.substr(u + 1)) === "" ? n === void 0 ? N(e) && !isNaN(parseInt(a)) ? e.splice(a, 1) : delete e[a] : e[a] = n : fe(u = !(u = e[a]) || !ie(e, a) ? e[a] = {} : u, s, n)) : n === void 0 ? N(e) && !isNaN(parseInt(t)) ? e.splice(t, 1) : delete e[t] : e[t] = n;
157
157
  }
158
158
  }
159
- function Vn(e) {
159
+ function Qn(e) {
160
160
  var t, n = {};
161
161
  for (t in e)
162
162
  ie(e, t) && (n[t] = e[t]);
163
163
  return n;
164
164
  }
165
165
  var Ur = [].concat;
166
- function Qn(e) {
166
+ function Vn(e) {
167
167
  return Ur.apply([], e);
168
168
  }
169
- var ge = "BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(Qn([8, 16, 32, 64].map(function(e) {
169
+ var ge = "BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(Vn([8, 16, 32, 64].map(function(e) {
170
170
  return ["Int", "Uint", "Float"].map(function(t) {
171
171
  return t + e + "Array";
172
172
  });
@@ -206,7 +206,7 @@ var Rr = { exports: {} };
206
206
  } : function() {
207
207
  return null;
208
208
  };
209
- function Ke(e, t) {
209
+ function Me(e, t) {
210
210
  return t = e.indexOf(t), 0 <= t && e.splice(t, 1), 0 <= t;
211
211
  }
212
212
  var Ye = {};
@@ -253,14 +253,14 @@ var Rr = { exports: {} };
253
253
  function _t(e, t, n, r) {
254
254
  this.failures = t, this.failedKeys = r, this.successCount = n, this.message = Jn(e, t);
255
255
  }
256
- function Ve(e, t) {
256
+ function Qe(e, t) {
257
257
  this.name = "BulkError", this.failures = Object.keys(t).map(function(n) {
258
258
  return t[n];
259
259
  }), this.failuresByPos = t, this.message = Jn(e, this.failures);
260
260
  }
261
261
  $e(He).from(Error).extend({ toString: function() {
262
262
  return this.name + ": " + this.message;
263
- } }), $e(_t).from(He), $e(Ve).from(He);
263
+ } }), $e(_t).from(He), $e(Qe).from(He);
264
264
  var en = de.reduce(function(e, t) {
265
265
  return e[t] = t + "Error", e;
266
266
  }, {}), Yr = He, F = de.reduce(function(e, t) {
@@ -287,26 +287,26 @@ var Rr = { exports: {} };
287
287
  return t(e(n));
288
288
  };
289
289
  }
290
- function Me(e, t) {
290
+ function Ke(e, t) {
291
291
  return function() {
292
292
  e.apply(this, arguments), t.apply(this, arguments);
293
293
  };
294
294
  }
295
- function Vr(e, t) {
295
+ function Qr(e, t) {
296
296
  return e === H ? t : function() {
297
297
  var n = e.apply(this, arguments);
298
298
  n !== void 0 && (arguments[0] = n);
299
299
  var r = this.onsuccess, i = this.onerror;
300
300
  this.onsuccess = null, this.onerror = null;
301
301
  var a = t.apply(this, arguments);
302
- return r && (this.onsuccess = this.onsuccess ? Me(r, this.onsuccess) : r), i && (this.onerror = this.onerror ? Me(i, this.onerror) : i), a !== void 0 ? a : n;
302
+ return r && (this.onsuccess = this.onsuccess ? Ke(r, this.onsuccess) : r), i && (this.onerror = this.onerror ? Ke(i, this.onerror) : i), a !== void 0 ? a : n;
303
303
  };
304
304
  }
305
- function Qr(e, t) {
305
+ function Vr(e, t) {
306
306
  return e === H ? t : function() {
307
307
  e.apply(this, arguments);
308
308
  var n = this.onsuccess, r = this.onerror;
309
- this.onsuccess = this.onerror = null, t.apply(this, arguments), n && (this.onsuccess = this.onsuccess ? Me(n, this.onsuccess) : n), r && (this.onerror = this.onerror ? Me(r, this.onerror) : r);
309
+ this.onsuccess = this.onerror = null, t.apply(this, arguments), n && (this.onsuccess = this.onsuccess ? Ke(n, this.onsuccess) : n), r && (this.onerror = this.onerror ? Ke(r, this.onerror) : r);
310
310
  };
311
311
  }
312
312
  function Xr(e, t) {
@@ -314,7 +314,7 @@ var Rr = { exports: {} };
314
314
  var r = e.apply(this, arguments);
315
315
  Z(n, r);
316
316
  var i = this.onsuccess, a = this.onerror;
317
- return this.onsuccess = null, this.onerror = null, n = t.apply(this, arguments), i && (this.onsuccess = this.onsuccess ? Me(i, this.onsuccess) : i), a && (this.onerror = this.onerror ? Me(a, this.onerror) : a), r === void 0 ? n === void 0 ? void 0 : n : Z(r, n);
317
+ return this.onsuccess = null, this.onerror = null, n = t.apply(this, arguments), i && (this.onsuccess = this.onsuccess ? Ke(i, this.onsuccess) : i), a && (this.onerror = this.onerror ? Ke(a, this.onerror) : a), r === void 0 ? n === void 0 ? void 0 : n : Z(r, n);
318
318
  };
319
319
  }
320
320
  function Jr(e, t) {
@@ -335,7 +335,7 @@ var Rr = { exports: {} };
335
335
  return t.apply(this, arguments);
336
336
  };
337
337
  }
338
- St.ModifyError = _t, St.DexieError = He, St.BulkError = Ve;
338
+ St.ModifyError = _t, St.DexieError = He, St.BulkError = Qe;
339
339
  var pe = typeof location < "u" && /^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);
340
340
  function qn(e) {
341
341
  pe = e;
@@ -348,12 +348,12 @@ var Rr = { exports: {} };
348
348
  return [t, te(t), e];
349
349
  }(), st = ge[0], de = ge[1], ge = ge[2], de = de && de.then, ut = st && st.constructor, nn = !!ge, ct = function(e, t) {
350
350
  lt.push([e, t]), Et && (queueMicrotask(qr), Et = !1);
351
- }, rn = !0, Et = !0, Be = [], Ot = [], on = ot, De = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: H, pgp: !1, env: {}, finalize: H }, M = De, lt = [], Ne = 0, xt = [];
351
+ }, rn = !0, Et = !0, Be = [], Ot = [], on = ot, De = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: H, pgp: !1, env: {}, finalize: H }, K = De, lt = [], Ne = 0, xt = [];
352
352
  function T(e) {
353
353
  if (typeof this != "object")
354
354
  throw new TypeError("Promises must be constructed via new");
355
355
  this._listeners = [], this._lib = !1;
356
- var t = this._PSD = M;
356
+ var t = this._PSD = K;
357
357
  if (typeof e != "function") {
358
358
  if (e !== at)
359
359
  throw new TypeError("Not a function");
@@ -365,7 +365,7 @@ var Rr = { exports: {} };
365
365
  if (r._state === null) {
366
366
  if (a === r)
367
367
  throw new TypeError("A promise cannot be resolved with itself.");
368
- var s = r._lib && Qe();
368
+ var s = r._lib && Ve();
369
369
  a && typeof a.then == "function" ? n(r, function(u, d) {
370
370
  a instanceof T ? a._then(u, d) : a.then(u, d);
371
371
  }) : (r._state = !0, r._value = a, nr(r)), s && Xe();
@@ -377,9 +377,9 @@ var Rr = { exports: {} };
377
377
  }(this, e);
378
378
  }
379
379
  var an = { get: function() {
380
- var e = M, t = Pt;
380
+ var e = K, t = Pt;
381
381
  function n(r, i) {
382
- var a = this, s = !e.global && (e !== M || t !== Pt), u = s && !Ie(), d = new T(function(l, b) {
382
+ var a = this, s = !e.global && (e !== K || t !== Pt), u = s && !Ie(), d = new T(function(l, b) {
383
383
  un(a, new tr(ir(r, e, s, u), ir(i, e, s, u), l, b, e));
384
384
  });
385
385
  return this._consoleTask && (d._consoleTask = this._consoleTask), d;
@@ -395,7 +395,7 @@ var Rr = { exports: {} };
395
395
  }
396
396
  function sn(e, t) {
397
397
  var n, r;
398
- Ot.push(t), e._state === null && (n = e._lib && Qe(), t = on(t), e._state = !1, e._value = t, r = e, Be.some(function(i) {
398
+ Ot.push(t), e._state === null && (n = e._lib && Ve(), t = on(t), e._state = !1, e._value = t, r = e, Be.some(function(i) {
399
399
  return i._value === r._value;
400
400
  }) || Be.push(r), nr(e), n && Xe());
401
401
  }
@@ -436,10 +436,10 @@ var Rr = { exports: {} };
436
436
  }
437
437
  function qr() {
438
438
  Ge(De, function() {
439
- Qe() && Xe();
439
+ Ve() && Xe();
440
440
  });
441
441
  }
442
- function Qe() {
442
+ function Ve() {
443
443
  var e = rn;
444
444
  return Et = rn = !1, e;
445
445
  }
@@ -466,9 +466,9 @@ var Rr = { exports: {} };
466
466
  return new T(at, !1, e);
467
467
  }
468
468
  function J(e, t) {
469
- var n = M;
469
+ var n = K;
470
470
  return function() {
471
- var r = Qe(), i = M;
471
+ var r = Ve(), i = K;
472
472
  try {
473
473
  return Ce(n, !0), e.apply(this, arguments);
474
474
  } catch (a) {
@@ -479,7 +479,7 @@ var Rr = { exports: {} };
479
479
  };
480
480
  }
481
481
  xe(T.prototype, { then: an, _then: function(e, t) {
482
- un(this, new tr(null, null, e, t, M));
482
+ un(this, new tr(null, null, e, t, K));
483
483
  }, catch: function(e) {
484
484
  if (arguments.length === 1)
485
485
  return this.then(null, e);
@@ -530,9 +530,9 @@ var Rr = { exports: {} };
530
530
  });
531
531
  });
532
532
  }, PSD: { get: function() {
533
- return M;
533
+ return K;
534
534
  }, set: function(e) {
535
- return M = e;
535
+ return K = e;
536
536
  } }, totalEchoes: { get: function() {
537
537
  return Pt;
538
538
  } }, newPSD: Pe, usePSD: Ge, scheduler: { get: function() {
@@ -546,8 +546,8 @@ var Rr = { exports: {} };
546
546
  } }, follow: function(e, t) {
547
547
  return new T(function(n, r) {
548
548
  return Pe(function(i, a) {
549
- var s = M;
550
- s.unhandleds = [], s.onunhandled = a, s.finalize = Me(function() {
549
+ var s = K;
550
+ s.unhandleds = [], s.onunhandled = a, s.finalize = Ke(function() {
551
551
  var u, d = this;
552
552
  u = function() {
553
553
  d.unhandleds.length === 0 ? i() : a(d.unhandleds[0]);
@@ -590,7 +590,7 @@ var Rr = { exports: {} };
590
590
  }));
591
591
  var ne = { awaits: 0, echoes: 0, id: 0 }, ei = 0, At = [], Dt = 0, Pt = 0, ti = 0;
592
592
  function Pe(e, t, n, r) {
593
- var i = M, a = Object.create(i);
593
+ var i = K, a = Object.create(i);
594
594
  return a.parent = i, a.ref = 0, a.global = !1, a.id = ++ti, De.env, a.env = nn ? { Promise: T, PromiseProp: { value: T, configurable: !0, writable: !0 }, all: T.all, race: T.race, allSettled: T.allSettled, any: T.any, resolve: T.resolve, reject: T.reject } : {}, t && Z(a, t), ++i.ref, a.finalize = function() {
595
595
  --this.parent.ref || this.parent.finalize();
596
596
  }, r = Ge(a, e, n, r), a.ref === 0 && a.finalize(), r;
@@ -613,17 +613,17 @@ var Rr = { exports: {} };
613
613
  At.pop(), Ce(e, !1);
614
614
  }
615
615
  function Ce(e, t) {
616
- var n, r = M;
617
- (t ? !ne.echoes || Dt++ && e === M : !Dt || --Dt && e === M) || queueMicrotask(t ? (function(i) {
618
- ++Pt, ne.echoes && --ne.echoes != 0 || (ne.echoes = ne.awaits = ne.id = 0), At.push(M), Ce(i, !0);
619
- }).bind(null, e) : ni), e !== M && (M = e, r === De && (De.env = rr()), nn && (n = De.env.Promise, t = e.env, (r.global || e.global) && (Object.defineProperty(B, "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))));
616
+ var n, r = K;
617
+ (t ? !ne.echoes || Dt++ && e === K : !Dt || --Dt && e === K) || queueMicrotask(t ? (function(i) {
618
+ ++Pt, ne.echoes && --ne.echoes != 0 || (ne.echoes = ne.awaits = ne.id = 0), At.push(K), Ce(i, !0);
619
+ }).bind(null, e) : ni), e !== K && (K = e, r === De && (De.env = rr()), nn && (n = De.env.Promise, t = e.env, (r.global || e.global) && (Object.defineProperty(B, "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))));
620
620
  }
621
621
  function rr() {
622
622
  var e = B.Promise;
623
623
  return nn ? { Promise: e, PromiseProp: Object.getOwnPropertyDescriptor(B, "Promise"), all: e.all, race: e.race, allSettled: e.allSettled, any: e.any, resolve: e.resolve, reject: e.reject } : {};
624
624
  }
625
625
  function Ge(e, t, n, r, i) {
626
- var a = M;
626
+ var a = K;
627
627
  try {
628
628
  return Ce(e, !0), t(n, r, i);
629
629
  } finally {
@@ -632,7 +632,7 @@ var Rr = { exports: {} };
632
632
  }
633
633
  function ir(e, t, n, r) {
634
634
  return typeof e != "function" ? e : function() {
635
- var i = M;
635
+ var i = K;
636
636
  n && Je(), Ce(t, !0);
637
637
  try {
638
638
  return e.apply(this, arguments);
@@ -700,19 +700,19 @@ var Rr = { exports: {} };
700
700
  function cr(e) {
701
701
  return e instanceof Uint8Array ? e : ArrayBuffer.isView(e) ? new Uint8Array(e.buffer, e.byteOffset, e.byteLength) : new Uint8Array(e);
702
702
  }
703
- var lr = (Q.prototype._trans = function(e, t, n) {
704
- var r = this._tx || M.trans, i = this.name, a = pe && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(e === "readonly" ? "read" : "write", " ").concat(this.name));
703
+ var lr = (V.prototype._trans = function(e, t, n) {
704
+ var r = this._tx || K.trans, i = this.name, a = pe && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(e === "readonly" ? "read" : "write", " ").concat(this.name));
705
705
  function s(l, b, c) {
706
706
  if (!c.schema[i])
707
707
  throw new F.NotFound("Table " + i + " not part of transaction");
708
708
  return t(c.idbtrans, c);
709
709
  }
710
- var u = Qe();
710
+ var u = Ve();
711
711
  try {
712
- var d = r && r.db._novip === this.db._novip ? r === M.trans ? r._promise(e, s, n) : Pe(function() {
712
+ var d = r && r.db._novip === this.db._novip ? r === K.trans ? r._promise(e, s, n) : Pe(function() {
713
713
  return r._promise(e, s, n);
714
- }, { trans: r, transless: M.transless || M }) : function l(b, c, f, p) {
715
- if (b.idbdb && (b._state.openComplete || M.letThrough || b._vip)) {
714
+ }, { trans: r, transless: K.transless || K }) : function l(b, c, f, p) {
715
+ if (b.idbdb && (b._state.openComplete || K.letThrough || b._vip)) {
716
716
  var y = b._createTransaction(c, f, b._dbSchema);
717
717
  try {
718
718
  y.create(), b._state.PR1398_maxLoop = 3;
@@ -723,7 +723,7 @@ var Rr = { exports: {} };
723
723
  }
724
724
  return y._promise(c, function(v, g) {
725
725
  return Pe(function() {
726
- return M.trans = y, p(v, g, y);
726
+ return K.trans = y, p(v, g, y);
727
727
  });
728
728
  }).then(function(v) {
729
729
  if (c === "readwrite")
@@ -753,14 +753,14 @@ var Rr = { exports: {} };
753
753
  } finally {
754
754
  u && Xe();
755
755
  }
756
- }, Q.prototype.get = function(e, t) {
756
+ }, V.prototype.get = function(e, t) {
757
757
  var n = this;
758
758
  return e && e.constructor === Object ? this.where(e).first(t) : e == null ? q(new F.Type("Invalid argument to Table.get()")) : this._trans("readonly", function(r) {
759
759
  return n.core.get({ trans: r, key: e }).then(function(i) {
760
760
  return n.hook.reading.fire(i);
761
761
  });
762
762
  }).then(t);
763
- }, Q.prototype.where = function(e) {
763
+ }, V.prototype.where = function(e) {
764
764
  if (typeof e == "string")
765
765
  return new this.db.WhereClause(this, e);
766
766
  if (N(e))
@@ -803,25 +803,25 @@ var Rr = { exports: {} };
803
803
  }) : c];
804
804
  }, [null, null]), s = u[0], u = u[1];
805
805
  return s ? this.where(s.name).equals(e[s.keyPath]).filter(u) : n ? this.filter(u) : this.where(t).equals("");
806
- }, Q.prototype.filter = function(e) {
806
+ }, V.prototype.filter = function(e) {
807
807
  return this.toCollection().and(e);
808
- }, Q.prototype.count = function(e) {
808
+ }, V.prototype.count = function(e) {
809
809
  return this.toCollection().count(e);
810
- }, Q.prototype.offset = function(e) {
810
+ }, V.prototype.offset = function(e) {
811
811
  return this.toCollection().offset(e);
812
- }, Q.prototype.limit = function(e) {
812
+ }, V.prototype.limit = function(e) {
813
813
  return this.toCollection().limit(e);
814
- }, Q.prototype.each = function(e) {
814
+ }, V.prototype.each = function(e) {
815
815
  return this.toCollection().each(e);
816
- }, Q.prototype.toArray = function(e) {
816
+ }, V.prototype.toArray = function(e) {
817
817
  return this.toCollection().toArray(e);
818
- }, Q.prototype.toCollection = function() {
818
+ }, V.prototype.toCollection = function() {
819
819
  return new this.db.Collection(new this.db.WhereClause(this));
820
- }, Q.prototype.orderBy = function(e) {
820
+ }, V.prototype.orderBy = function(e) {
821
821
  return new this.db.Collection(new this.db.WhereClause(this, N(e) ? "[".concat(e.join("+"), "]") : e));
822
- }, Q.prototype.reverse = function() {
822
+ }, V.prototype.reverse = function() {
823
823
  return this.toCollection().reverse();
824
- }, Q.prototype.mapToClass = function(e) {
824
+ }, V.prototype.mapToClass = function(e) {
825
825
  var t, n = this.db, r = this.name;
826
826
  function i() {
827
827
  return t !== null && t.apply(this, arguments) || this;
@@ -855,11 +855,11 @@ var Rr = { exports: {} };
855
855
  return b;
856
856
  }
857
857
  return this.schema.readHook && this.hook.reading.unsubscribe(this.schema.readHook), this.schema.readHook = u, this.hook("reading", u), e;
858
- }, Q.prototype.defineClass = function() {
858
+ }, V.prototype.defineClass = function() {
859
859
  return this.mapToClass(function(e) {
860
860
  Z(this, e);
861
861
  });
862
- }, Q.prototype.add = function(e, t) {
862
+ }, V.prototype.add = function(e, t) {
863
863
  var n = this, r = this.schema.primKey, i = r.auto, a = r.keyPath, s = e;
864
864
  return a && i && (s = Rt(a)(e)), this._trans("readwrite", function(u) {
865
865
  return n.core.mutate({ trans: u, type: "add", keys: t != null ? [t] : null, values: [s] });
@@ -873,9 +873,9 @@ var Rr = { exports: {} };
873
873
  }
874
874
  return u;
875
875
  });
876
- }, Q.prototype.update = function(e, t) {
876
+ }, V.prototype.update = function(e, t) {
877
877
  return typeof e != "object" || N(e) ? this.where(":id").equals(e).modify(t) : (e = ve(e, this.schema.primKey.keyPath), e === void 0 ? q(new F.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(e).modify(t));
878
- }, Q.prototype.put = function(e, t) {
878
+ }, V.prototype.put = function(e, t) {
879
879
  var n = this, r = this.schema.primKey, i = r.auto, a = r.keyPath, s = e;
880
880
  return a && i && (s = Rt(a)(e)), this._trans("readwrite", function(u) {
881
881
  return n.core.mutate({ trans: u, type: "put", values: [s], keys: t != null ? [t] : null });
@@ -889,21 +889,21 @@ var Rr = { exports: {} };
889
889
  }
890
890
  return u;
891
891
  });
892
- }, Q.prototype.delete = function(e) {
892
+ }, V.prototype.delete = function(e) {
893
893
  var t = this;
894
894
  return this._trans("readwrite", function(n) {
895
895
  return t.core.mutate({ trans: n, type: "delete", keys: [e] });
896
896
  }).then(function(n) {
897
897
  return n.numFailures ? T.reject(n.failures[0]) : void 0;
898
898
  });
899
- }, Q.prototype.clear = function() {
899
+ }, V.prototype.clear = function() {
900
900
  var e = this;
901
901
  return this._trans("readwrite", function(t) {
902
902
  return e.core.mutate({ trans: t, type: "deleteRange", range: ar });
903
903
  }).then(function(t) {
904
904
  return t.numFailures ? T.reject(t.failures[0]) : void 0;
905
905
  });
906
- }, Q.prototype.bulkGet = function(e) {
906
+ }, V.prototype.bulkGet = function(e) {
907
907
  var t = this;
908
908
  return this._trans("readonly", function(n) {
909
909
  return t.core.getMany({ keys: e, trans: n }).then(function(r) {
@@ -912,7 +912,7 @@ var Rr = { exports: {} };
912
912
  });
913
913
  });
914
914
  });
915
- }, Q.prototype.bulkAdd = function(e, t, n) {
915
+ }, V.prototype.bulkAdd = function(e, t, n) {
916
916
  var r = this, i = Array.isArray(t) ? t : void 0, a = (n = n || (i ? void 0 : t)) ? n.allKeys : void 0;
917
917
  return this._trans("readwrite", function(s) {
918
918
  var l = r.schema.primKey, u = l.auto, l = l.keyPath;
@@ -925,10 +925,10 @@ var Rr = { exports: {} };
925
925
  var c = y.numFailures, f = y.results, p = y.lastResult, y = y.failures;
926
926
  if (c === 0)
927
927
  return a ? f : p;
928
- throw new Ve("".concat(r.name, ".bulkAdd(): ").concat(c, " of ").concat(d, " operations failed"), y);
928
+ throw new Qe("".concat(r.name, ".bulkAdd(): ").concat(c, " of ").concat(d, " operations failed"), y);
929
929
  });
930
930
  });
931
- }, Q.prototype.bulkPut = function(e, t, n) {
931
+ }, V.prototype.bulkPut = function(e, t, n) {
932
932
  var r = this, i = Array.isArray(t) ? t : void 0, a = (n = n || (i ? void 0 : t)) ? n.allKeys : void 0;
933
933
  return this._trans("readwrite", function(s) {
934
934
  var l = r.schema.primKey, u = l.auto, l = l.keyPath;
@@ -941,10 +941,10 @@ var Rr = { exports: {} };
941
941
  var c = y.numFailures, f = y.results, p = y.lastResult, y = y.failures;
942
942
  if (c === 0)
943
943
  return a ? f : p;
944
- throw new Ve("".concat(r.name, ".bulkPut(): ").concat(c, " of ").concat(d, " operations failed"), y);
944
+ throw new Qe("".concat(r.name, ".bulkPut(): ").concat(c, " of ").concat(d, " operations failed"), y);
945
945
  });
946
946
  });
947
- }, Q.prototype.bulkUpdate = function(e) {
947
+ }, V.prototype.bulkUpdate = function(e) {
948
948
  var t = this, n = this.core, r = e.map(function(s) {
949
949
  return s.key;
950
950
  }), i = e.map(function(s) {
@@ -976,11 +976,11 @@ var Rr = { exports: {} };
976
976
  var g, _ = v[y], S = a[Number(_)];
977
977
  S != null && (g = p[_], delete p[_], p[S] = g);
978
978
  }
979
- throw new Ve("".concat(t.name, ".bulkUpdate(): ").concat(f, " of ").concat(b, " operations failed"), p);
979
+ throw new Qe("".concat(t.name, ".bulkUpdate(): ").concat(f, " of ").concat(b, " operations failed"), p);
980
980
  });
981
981
  });
982
982
  });
983
- }, Q.prototype.bulkDelete = function(e) {
983
+ }, V.prototype.bulkDelete = function(e) {
984
984
  var t = this, n = e.length;
985
985
  return this._trans("readwrite", function(r) {
986
986
  return t.core.mutate({ trans: r, type: "delete", keys: e });
@@ -988,10 +988,10 @@ var Rr = { exports: {} };
988
988
  var i = s.numFailures, a = s.lastResult, s = s.failures;
989
989
  if (i === 0)
990
990
  return a;
991
- throw new Ve("".concat(t.name, ".bulkDelete(): ").concat(i, " of ").concat(n, " operations failed"), s);
991
+ throw new Qe("".concat(t.name, ".bulkDelete(): ").concat(i, " of ").concat(n, " operations failed"), s);
992
992
  });
993
- }, Q);
994
- function Q() {
993
+ }, V);
994
+ function V() {
995
995
  }
996
996
  function ft(e) {
997
997
  function t(s, u) {
@@ -1299,8 +1299,8 @@ var Rr = { exports: {} };
1299
1299
  }
1300
1300
  var Y = qe(n) && n.limit === 1 / 0 && (typeof e != "function" || e === gn) && { index: n.index, range: n.range };
1301
1301
  return Promise.resolve(0 < k.length && d.mutate({ trans: r, type: "add", values: k }).then(function(W) {
1302
- for (var V in W.failures)
1303
- R.splice(parseInt(V), 1);
1302
+ for (var Q in W.failures)
1303
+ R.splice(parseInt(Q), 1);
1304
1304
  u(k.length, W);
1305
1305
  })).then(function() {
1306
1306
  return (0 < C.length || Y && typeof e == "object") && d.mutate({ trans: r, type: "put", keys: A, values: C, criteria: Y, changeSpec: typeof e != "function" && e }).then(function(W) {
@@ -1357,7 +1357,7 @@ var Rr = { exports: {} };
1357
1357
  return hr("");
1358
1358
  }).limit(0);
1359
1359
  }
1360
- function Kt(e, t, n, r) {
1360
+ function Mt(e, t, n, r) {
1361
1361
  var i, a, s, u, d, l, b, c = n.length;
1362
1362
  if (!n.every(function(y) {
1363
1363
  return typeof y == "string";
@@ -1399,11 +1399,11 @@ var Rr = { exports: {} };
1399
1399
  return !0;
1400
1400
  for (var E = null, O = p; O < c; ++O) {
1401
1401
  var k = function(C, A, R, D, G, L) {
1402
- for (var Y = Math.min(C.length, D.length), W = -1, V = 0; V < Y; ++V) {
1403
- var le = A[V];
1404
- if (le !== D[V])
1405
- return G(C[V], R[V]) < 0 ? C.substr(0, V) + R[V] + R.substr(V + 1) : G(C[V], D[V]) < 0 ? C.substr(0, V) + D[V] + R.substr(V + 1) : 0 <= W ? C.substr(0, W) + A[W] + R.substr(W + 1) : null;
1406
- G(C[V], le) < 0 && (W = V);
1402
+ for (var Y = Math.min(C.length, D.length), W = -1, Q = 0; Q < Y; ++Q) {
1403
+ var le = A[Q];
1404
+ if (le !== D[Q])
1405
+ return G(C[Q], R[Q]) < 0 ? C.substr(0, Q) + R[Q] + R.substr(Q + 1) : G(C[Q], D[Q]) < 0 ? C.substr(0, Q) + D[Q] + R.substr(Q + 1) : 0 <= W ? C.substr(0, W) + A[W] + R.substr(W + 1) : null;
1406
+ G(C[Q], le) < 0 && (W = Q);
1407
1407
  }
1408
1408
  return Y < D.length && L === "next" ? C + R.substr(C.length) : Y < C.length && L === "prev" ? C.substr(0, R.length) : W < 0 ? null : C.substr(0, W) + D[W] + R.substr(W + 1);
1409
1409
  }(_, S, u[O], d[O], s, l);
@@ -1454,21 +1454,21 @@ var Rr = { exports: {} };
1454
1454
  }, re.prototype.startsWith = function(e) {
1455
1455
  return typeof e != "string" ? ce(this, or) : this.between(e, e + Fe, !0, !0);
1456
1456
  }, re.prototype.startsWithIgnoreCase = function(e) {
1457
- return e === "" ? this.startsWith(e) : Kt(this, function(t, n) {
1457
+ return e === "" ? this.startsWith(e) : Mt(this, function(t, n) {
1458
1458
  return t.indexOf(n[0]) === 0;
1459
1459
  }, [e], Fe);
1460
1460
  }, re.prototype.equalsIgnoreCase = function(e) {
1461
- return Kt(this, function(t, n) {
1461
+ return Mt(this, function(t, n) {
1462
1462
  return t === n[0];
1463
1463
  }, [e], "");
1464
1464
  }, re.prototype.anyOfIgnoreCase = function() {
1465
1465
  var e = we.apply(Ye, arguments);
1466
- return e.length === 0 ? et(this) : Kt(this, function(t, n) {
1466
+ return e.length === 0 ? et(this) : Mt(this, function(t, n) {
1467
1467
  return n.indexOf(t) !== -1;
1468
1468
  }, e, "");
1469
1469
  }, re.prototype.startsWithAnyOfIgnoreCase = function() {
1470
1470
  var e = we.apply(Ye, arguments);
1471
- return e.length === 0 ? et(this) : Kt(this, function(t, n) {
1471
+ return e.length === 0 ? et(this) : Mt(this, function(t, n) {
1472
1472
  return n.some(function(r) {
1473
1473
  return t.indexOf(r) === 0;
1474
1474
  });
@@ -1578,10 +1578,10 @@ var Rr = { exports: {} };
1578
1578
  e.stopPropagation && e.stopPropagation(), e.preventDefault && e.preventDefault();
1579
1579
  }
1580
1580
  var pt = "storagemutated", yn = "x-storagemutated-1", Te = ft(null, pt), ai = (me.prototype._lock = function() {
1581
- return rt(!M.global), ++this._reculock, this._reculock !== 1 || M.global || (M.lockOwnerFor = this), this;
1581
+ return rt(!K.global), ++this._reculock, this._reculock !== 1 || K.global || (K.lockOwnerFor = this), this;
1582
1582
  }, me.prototype._unlock = function() {
1583
- if (rt(!M.global), --this._reculock == 0)
1584
- for (M.global || (M.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
1583
+ if (rt(!K.global), --this._reculock == 0)
1584
+ for (K.global || (K.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
1585
1585
  var e = this._blockedFuncs.shift();
1586
1586
  try {
1587
1587
  Ge(e[1], e[0]);
@@ -1590,7 +1590,7 @@ var Rr = { exports: {} };
1590
1590
  }
1591
1591
  return this;
1592
1592
  }, me.prototype._locked = function() {
1593
- return this._reculock && M.lockOwnerFor !== this;
1593
+ return this._reculock && K.lockOwnerFor !== this;
1594
1594
  }, me.prototype.create = function(e) {
1595
1595
  var t = this;
1596
1596
  if (!this.mode)
@@ -1624,7 +1624,7 @@ var Rr = { exports: {} };
1624
1624
  return new T(function(a, s) {
1625
1625
  r._blockedFuncs.push([function() {
1626
1626
  r._promise(e, t, n).then(a, s);
1627
- }, M]);
1627
+ }, K]);
1628
1628
  });
1629
1629
  if (n)
1630
1630
  return Pe(function() {
@@ -1745,10 +1745,10 @@ var Rr = { exports: {} };
1745
1745
  function Y(se) {
1746
1746
  ++le, ht(se);
1747
1747
  }
1748
- var W = [], V = [], le = 0;
1748
+ var W = [], Q = [], le = 0;
1749
1749
  if (_ === "deleteRange") {
1750
1750
  if (O.type === 4)
1751
- return k({ numFailures: le, failures: V, results: [], lastResult: void 0 });
1751
+ return k({ numFailures: le, failures: Q, results: [], lastResult: void 0 });
1752
1752
  O.type === 3 ? W.push(G = A.clear()) : W.push(G = A.delete(r(O)));
1753
1753
  } else {
1754
1754
  var R = D ? R ? [E, S] : [E, null] : [S, null], U = R[0], Ee = R[1];
@@ -1759,16 +1759,16 @@ var Rr = { exports: {} };
1759
1759
  for (ae = 0; ae < L; ++ae)
1760
1760
  W.push(G = A[_](U[ae])), G.onerror = Y;
1761
1761
  }
1762
- function Vt(se) {
1762
+ function Qt(se) {
1763
1763
  se = se.target.result, W.forEach(function(ze, Nn) {
1764
- return ze.error != null && (V[Nn] = ze.error);
1765
- }), k({ numFailures: le, failures: V, results: _ === "delete" ? S : W.map(function(ze) {
1764
+ return ze.error != null && (Q[Nn] = ze.error);
1765
+ }), k({ numFailures: le, failures: Q, results: _ === "delete" ? S : W.map(function(ze) {
1766
1766
  return ze.result;
1767
1767
  }), lastResult: se });
1768
1768
  }
1769
1769
  G.onerror = function(se) {
1770
- Y(se), Vt(se);
1771
- }, G.onsuccess = Vt;
1770
+ Y(se), Qt(se);
1771
+ }, G.onsuccess = Qt;
1772
1772
  });
1773
1773
  }, getMany: function(v) {
1774
1774
  var g = v.trans, _ = v.keys;
@@ -1808,8 +1808,8 @@ var Rr = { exports: {} };
1808
1808
  k = J(k);
1809
1809
  var D = S.index, A = S.range, R = g.objectStore(y), R = D.isPrimaryKey ? R : R.index(D.name), D = E ? O ? "prevunique" : "prev" : O ? "nextunique" : "next", G = !_ && "openKeyCursor" in R ? R.openKeyCursor(r(A), D) : R.openCursor(r(A), D);
1810
1810
  G.onerror = ye(C), G.onsuccess = J(function(L) {
1811
- var Y, W, V, le, U = G.result;
1812
- U ? (U.___id = ++si, U.done = !1, Y = U.continue.bind(U), W = (W = U.continuePrimaryKey) && W.bind(U), V = U.advance.bind(U), le = function() {
1811
+ var Y, W, Q, le, U = G.result;
1812
+ U ? (U.___id = ++si, U.done = !1, Y = U.continue.bind(U), W = (W = U.continuePrimaryKey) && W.bind(U), Q = U.advance.bind(U), le = function() {
1813
1813
  throw new Error("Cursor not stopped");
1814
1814
  }, U.trans = g, U.stop = U.continue = U.continuePrimaryKey = U.advance = function() {
1815
1815
  throw new Error("Cursor not started");
@@ -1833,14 +1833,14 @@ var Rr = { exports: {} };
1833
1833
  throw new Error("Cursor behind last entry");
1834
1834
  }, U.stop();
1835
1835
  }
1836
- var Vt = new Promise(function(se, ze) {
1836
+ var Qt = new Promise(function(se, ze) {
1837
1837
  se = J(se), G.onerror = ye(ze), U.fail = ze, U.stop = function(Nn) {
1838
1838
  U.stop = U.continue = U.continuePrimaryKey = U.advance = le, se(Nn);
1839
1839
  };
1840
1840
  });
1841
1841
  return G.onsuccess = J(function(se) {
1842
1842
  G.onsuccess = ae, ae();
1843
- }), U.continue = Y, U.continuePrimaryKey = W, U.advance = V, ae(), Vt;
1843
+ }), U.continue = Y, U.continuePrimaryKey = W, U.advance = Q, ae(), Qt;
1844
1844
  }, k(U)) : k(null);
1845
1845
  }, C);
1846
1846
  });
@@ -1881,7 +1881,7 @@ var Rr = { exports: {} };
1881
1881
  return s = s.create, m(m({}, a), s(a));
1882
1882
  }, r)) };
1883
1883
  }
1884
- function Mt(e, r) {
1884
+ function Kt(e, r) {
1885
1885
  var n = r.db, r = ci(e._middlewares, n, e._deps, r);
1886
1886
  e.core = r.dbcore, e.tables.forEach(function(i) {
1887
1887
  var a = i.name;
@@ -1919,9 +1919,9 @@ var Rr = { exports: {} };
1919
1919
  n.objectStoreNames.contains("$meta") && !i.$meta && (i.$meta = bn("$meta", br("")[0], []), e._storeNames.push("$meta"));
1920
1920
  var a = e._createTransaction("readwrite", e._storeNames, i);
1921
1921
  a.create(n), a._completion.catch(r);
1922
- var s = a._reject.bind(a), u = M.transless || M;
1922
+ var s = a._reject.bind(a), u = K.transless || K;
1923
1923
  Pe(function() {
1924
- return M.trans = a, M.transless = u, t !== 0 ? (Mt(e, n), l = t, ((d = a).storeNames.includes("$meta") ? d.table("$meta").get("version").then(function(b) {
1924
+ return K.trans = a, K.transless = u, t !== 0 ? (Kt(e, n), l = t, ((d = a).storeNames.includes("$meta") ? d.table("$meta").get("version").then(function(b) {
1925
1925
  return b ?? l;
1926
1926
  }) : T.resolve(l)).then(function(b) {
1927
1927
  return f = b, p = a, y = n, v = [], b = (c = e)._versions, g = c._dbSchema = Gt(0, c.idbdb, y), (b = b.filter(function(_) {
@@ -1947,8 +1947,8 @@ var Rr = { exports: {} };
1947
1947
  });
1948
1948
  var k = _._cfg.contentUpgrade;
1949
1949
  if (k && _._cfg.version > f) {
1950
- Mt(c, y), p._memoizedTables = {};
1951
- var C = Vn(E);
1950
+ Kt(c, y), p._memoizedTables = {};
1951
+ var C = Qn(E);
1952
1952
  O.del.forEach(function(D) {
1953
1953
  C[D] = S[D];
1954
1954
  }), wn(c, [c.Transaction.prototype]), Bt(c, [c.Transaction.prototype], j(C), C), p.schema = C;
@@ -1978,7 +1978,7 @@ var Rr = { exports: {} };
1978
1978
  var c, f, p, y, v, g;
1979
1979
  }).catch(s)) : (j(i).forEach(function(b) {
1980
1980
  Sn(n, b, i[b].primKey, i[b].indexes);
1981
- }), Mt(e, n), void T.follow(function() {
1981
+ }), Kt(e, n), void T.follow(function() {
1982
1982
  return e.on.populate.fire(a);
1983
1983
  }).catch(s));
1984
1984
  var d, l;
@@ -2102,7 +2102,7 @@ var Rr = { exports: {} };
2102
2102
  }
2103
2103
  function xn(e) {
2104
2104
  return Pe(function() {
2105
- return M.letThrough = !0, e();
2105
+ return K.letThrough = !0, e();
2106
2106
  });
2107
2107
  }
2108
2108
  function kn(e) {
@@ -2281,7 +2281,7 @@ var Rr = { exports: {} };
2281
2281
  return R.add.length || R.change.length;
2282
2282
  })) && !a)
2283
2283
  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."), k.close(), i = k.version + 1, a = !0, f(u());
2284
- Mt(e, A);
2284
+ Kt(e, A);
2285
2285
  } catch {
2286
2286
  }
2287
2287
  Ze.push(e), k.onversionchange = J(function(R) {
@@ -2423,7 +2423,7 @@ var Rr = { exports: {} };
2423
2423
  return m(m({}, e), { table: function(t) {
2424
2424
  var n = e.table(t), r = n.schema.primaryKey;
2425
2425
  return m(m({}, n), { mutate: function(i) {
2426
- var a = M.trans, s = a.table(t).hook, u = s.deleting, d = s.creating, l = s.updating;
2426
+ var a = K.trans, s = a.table(t).hook, u = s.deleting, d = s.creating, l = s.updating;
2427
2427
  switch (i.type) {
2428
2428
  case "add":
2429
2429
  if (d.fire === H)
@@ -2459,7 +2459,7 @@ var Rr = { exports: {} };
2459
2459
  }
2460
2460
  return n.mutate(i);
2461
2461
  function b(c) {
2462
- var f, p, y, v = M.trans, g = c.keys || jn(r, c);
2462
+ var f, p, y, v = K.trans, g = c.keys || jn(r, c);
2463
2463
  if (!g)
2464
2464
  throw new Error("Keys missing");
2465
2465
  return (c = c.type === "add" || c.type === "put" ? m(m({}, c), { keys: g }) : m({}, c)).type !== "delete" && (c.values = I([], c.values, !0)), c.keys && (c.keys = I([], c.keys, !0)), f = n, y = g, ((p = c).type === "add" ? Promise.resolve([]) : f.getMany({ trans: p.trans, keys: y, cache: "immutable" })).then(function(_) {
@@ -2528,8 +2528,8 @@ var Rr = { exports: {} };
2528
2528
  var bi = { stack: "dbcore", level: 0, name: "Observability", create: function(e) {
2529
2529
  var t = e.schema.name, n = new oe(e.MIN_KEY, e.MAX_KEY);
2530
2530
  return m(m({}, e), { transaction: function(r, i, a) {
2531
- if (M.subscr && i !== "readonly")
2532
- throw new F.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(M.querier));
2531
+ if (K.subscr && i !== "readonly")
2532
+ throw new F.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(K.querier));
2533
2533
  return e.transaction(r, i, a);
2534
2534
  }, table: function(r) {
2535
2535
  function i(p) {
@@ -2549,8 +2549,8 @@ var Rr = { exports: {} };
2549
2549
  return W != null ? D.extractKey(W) : null;
2550
2550
  }
2551
2551
  function Y(W) {
2552
- return D.multiEntry && N(W) ? W.forEach(function(V) {
2553
- return G.addKey(V);
2552
+ return D.multiEntry && N(W) ? W.forEach(function(Q) {
2553
+ return G.addKey(Q);
2554
2554
  }) : G.addKey(W);
2555
2555
  }
2556
2556
  (v || g).forEach(function(W, U) {
@@ -2569,7 +2569,7 @@ var Rr = { exports: {} };
2569
2569
  }, count: i, query: i, openCursor: i };
2570
2570
  return j(c).forEach(function(f) {
2571
2571
  b[f] = function(p) {
2572
- var y = M.subscr, v = !!y, g = Er(M, a) && Or(f, p) ? p.obsSet = {} : y;
2572
+ var y = K.subscr, v = !!y, g = Er(K, a) && Or(f, p) ? p.obsSet = {} : y;
2573
2573
  if (v) {
2574
2574
  var _ = function(A) {
2575
2575
  return A = "idb://".concat(t, "/").concat(r, "/").concat(A), g[A] || (g[A] = new oe());
@@ -2619,7 +2619,7 @@ var Rr = { exports: {} };
2619
2619
  return !(a in n.failures);
2620
2620
  })), t);
2621
2621
  }
2622
- function Kn(e, t) {
2622
+ function Mn(e, t) {
2623
2623
  return n = e, ((r = t).lower === void 0 || (r.lowerOpen ? 0 < $(n, r.lower) : 0 <= $(n, r.lower))) && (e = e, (t = t).upper === void 0 || (t.upperOpen ? $(e, t.upper) < 0 : $(e, t.upper) <= 0));
2624
2624
  var n, r;
2625
2625
  }
@@ -2629,8 +2629,8 @@ var Rr = { exports: {} };
2629
2629
  var s = t.query.index, u = s.multiEntry, d = t.query.range, l = r.schema.primaryKey.extractKey, b = s.extractKey, c = (s.lowLevelIndex || s).extractKey, f = f.reduce(function(p, y) {
2630
2630
  var v = p, g = y.type === "add" || y.type === "put" ? y.values.filter(function(O) {
2631
2631
  return O = b(O), u && N(O) ? O.some(function(k) {
2632
- return Kn(k, d);
2633
- }) : Kn(O, d);
2632
+ return Mn(k, d);
2633
+ }) : Mn(O, d);
2634
2634
  }).map(function(O) {
2635
2635
  return O = Ae(O), a && Object.freeze(O), O;
2636
2636
  }) : [];
@@ -2658,7 +2658,7 @@ var Rr = { exports: {} };
2658
2658
  case "deleteRange":
2659
2659
  var E = y.range;
2660
2660
  v = p.filter(function(k) {
2661
- return !Kn(l(k), E);
2661
+ return !Mn(l(k), E);
2662
2662
  });
2663
2663
  }
2664
2664
  return v;
@@ -2705,7 +2705,7 @@ var Rr = { exports: {} };
2705
2705
  e.subscribers.add(n), r.addEventListener("abort", function() {
2706
2706
  var i, a;
2707
2707
  e.subscribers.delete(n), e.subscribers.size === 0 && (i = e, a = t, setTimeout(function() {
2708
- i.subscribers.size === 0 && Ke(a, i);
2708
+ i.subscribers.size === 0 && Me(a, i);
2709
2709
  }, 3e3));
2710
2710
  });
2711
2711
  }
@@ -2725,7 +2725,7 @@ var Rr = { exports: {} };
2725
2725
  if (u._explicit && d && u.mutatedParts)
2726
2726
  for (var g = 0, _ = Object.values(p.queries.query); g < _.length; g++)
2727
2727
  for (var S = 0, E = (C = _[g]).slice(); S < E.length; S++)
2728
- Dn((A = E[S]).obsSet, u.mutatedParts) && (Ke(C, A), A.subscribers.forEach(function(L) {
2728
+ Dn((A = E[S]).obsSet, u.mutatedParts) && (Me(C, A), A.subscribers.forEach(function(L) {
2729
2729
  return l.add(L);
2730
2730
  }));
2731
2731
  else if (0 < v.length) {
@@ -2734,9 +2734,9 @@ var Rr = { exports: {} };
2734
2734
  });
2735
2735
  for (var O = 0, k = Object.values(p.queries.query); O < k.length; O++)
2736
2736
  for (var C, A, R, D = 0, G = (C = k[O]).slice(); D < G.length; D++)
2737
- (A = G[D]).res != null && u.mutatedParts && (d && !A.dirty ? (R = Object.isFrozen(A.res), R = kr(A.res, A.req, v, y, A, R), A.dirty ? (Ke(C, A), A.subscribers.forEach(function(L) {
2737
+ (A = G[D]).res != null && u.mutatedParts && (d && !A.dirty ? (R = Object.isFrozen(A.res), R = kr(A.res, A.req, v, y, A, R), A.dirty ? (Me(C, A), A.subscribers.forEach(function(L) {
2738
2738
  return l.add(L);
2739
- })) : R !== A.res && (A.res = R, A.promise = T.resolve({ result: R }))) : (A.dirty && Ke(C, A), A.subscribers.forEach(function(L) {
2739
+ })) : R !== A.res && (A.res = R, A.promise = T.resolve({ result: R }))) : (A.dirty && Me(C, A), A.subscribers.forEach(function(L) {
2740
2740
  return l.add(L);
2741
2741
  })));
2742
2742
  }
@@ -2751,16 +2751,16 @@ var Rr = { exports: {} };
2751
2751
  }, table: function(n) {
2752
2752
  var r = e.table(n), i = r.schema.primaryKey;
2753
2753
  return m(m({}, r), { mutate: function(a) {
2754
- var s = M.trans;
2754
+ var s = K.trans;
2755
2755
  if (i.outbound || s.db._options.cache === "disabled" || s.explicit)
2756
2756
  return r.mutate(a);
2757
2757
  var u = Ue["idb://".concat(t, "/").concat(n)];
2758
2758
  return u ? (s = r.mutate(a), a.type !== "add" && a.type !== "put" || !(50 <= a.values.length || jn(i, a).some(function(d) {
2759
2759
  return d == null;
2760
2760
  })) ? (u.optimisticOps.push(a), a.mutatedParts && zt(a.mutatedParts), s.then(function(d) {
2761
- 0 < d.numFailures && (Ke(u.optimisticOps, a), (d = xr(0, a, d)) && u.optimisticOps.push(d), a.mutatedParts && zt(a.mutatedParts));
2761
+ 0 < d.numFailures && (Me(u.optimisticOps, a), (d = xr(0, a, d)) && u.optimisticOps.push(d), a.mutatedParts && zt(a.mutatedParts));
2762
2762
  }), s.catch(function() {
2763
- Ke(u.optimisticOps, a), a.mutatedParts && zt(a.mutatedParts);
2763
+ Me(u.optimisticOps, a), a.mutatedParts && zt(a.mutatedParts);
2764
2764
  })) : s.then(function(d) {
2765
2765
  var l = xr(0, m(m({}, a), { values: a.values.map(function(p, c) {
2766
2766
  var f, p = (f = i.keyPath) !== null && f !== void 0 && f.includes(".") ? Ae(p) : m({}, p);
@@ -2771,9 +2771,9 @@ var Rr = { exports: {} };
2771
2771
  });
2772
2772
  }), s) : r.mutate(a);
2773
2773
  }, query: function(a) {
2774
- if (!Er(M, r) || !Or("query", a))
2774
+ if (!Er(K, r) || !Or("query", a))
2775
2775
  return r.query(a);
2776
- var s = ((l = M.trans) === null || l === void 0 ? void 0 : l.db._options.cache) === "immutable", c = M, u = c.requery, d = c.signal, l = function(y, v, g, _) {
2776
+ var s = ((l = K.trans) === null || l === void 0 ? void 0 : l.db._options.cache) === "immutable", c = K, u = c.requery, d = c.signal, l = function(y, v, g, _) {
2777
2777
  var S = Ue["idb://".concat(y, "/").concat(v)];
2778
2778
  if (!S)
2779
2779
  return [];
@@ -2806,7 +2806,7 @@ var Rr = { exports: {} };
2806
2806
  y.result = Ae(v);
2807
2807
  return y;
2808
2808
  }).catch(function(y) {
2809
- return p && b && Ke(p, b), Promise.reject(y);
2809
+ return p && b && Me(p, b), Promise.reject(y);
2810
2810
  }), b = { obsSet: a.obsSet, promise: c, subscribers: /* @__PURE__ */ new Set(), type: "query", req: a, dirty: !1 }, p ? p.push(b) : (p = [b], (f = f || (Ue["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[a.query.index.name || ""] = p)), wi(b, p, u, d), b.promise.then(function(y) {
2811
2811
  return { result: kr(y.result, a, f == null ? void 0 : f.optimisticOps, r, b, s) };
2812
2812
  });
@@ -2830,7 +2830,7 @@ var Rr = { exports: {} };
2830
2830
  return n || (n = new this.Version(e), t.push(n), t.sort(li), n.stores({}), this._state.autoSchema = !1, n);
2831
2831
  }, ee.prototype._whenReady = function(e) {
2832
2832
  var t = this;
2833
- return this.idbdb && (this._state.openComplete || M.letThrough || this._vip) ? e() : new T(function(n, r) {
2833
+ return this.idbdb && (this._state.openComplete || K.letThrough || this._vip) ? e() : new T(function(n, r) {
2834
2834
  if (t._state.openComplete)
2835
2835
  return r(new F.DatabaseClosed(t._state.dbOpenError));
2836
2836
  if (!t._state.isBeingOpened) {
@@ -2912,11 +2912,11 @@ var Rr = { exports: {} };
2912
2912
  throw new F.InvalidArgument("Too few arguments");
2913
2913
  for (var a = new Array(i - 1); --i; )
2914
2914
  a[i - 1] = arguments[i];
2915
- return r = a.pop(), [t, Qn(a), r];
2915
+ return r = a.pop(), [t, Vn(a), r];
2916
2916
  }).apply(this, arguments);
2917
2917
  return this._transaction.apply(this, e);
2918
2918
  }, ee.prototype._transaction = function(e, t, n) {
2919
- var r = this, i = M.trans;
2919
+ var r = this, i = K.trans;
2920
2920
  i && i.db === this && e.indexOf("!") === -1 || (i = null);
2921
2921
  var a, s, u = e.indexOf("?") !== -1;
2922
2922
  e = e.replace("!", "").replace("?", "");
@@ -2953,7 +2953,7 @@ var Rr = { exports: {} };
2953
2953
  }
2954
2954
  var d = (function l(b, c, f, p, y) {
2955
2955
  return T.resolve().then(function() {
2956
- var v = M.transless || M, g = b._createTransaction(c, f, b._dbSchema, p);
2956
+ var v = K.transless || K, g = b._createTransaction(c, f, b._dbSchema, p);
2957
2957
  if (g.explicit = !0, v = { trans: g, transless: v }, p)
2958
2958
  g.idbtrans = p.idbtrans;
2959
2959
  else
@@ -2981,7 +2981,7 @@ var Rr = { exports: {} };
2981
2981
  });
2982
2982
  });
2983
2983
  }).bind(null, this, a, s, i, n);
2984
- return i ? i._promise(a, d, "lock") : M.trans ? Ge(M.transless, function() {
2984
+ return i ? i._promise(a, d, "lock") : K.trans ? Ge(K.transless, function() {
2985
2985
  return r._whenReady(d);
2986
2986
  }) : this._whenReady(d);
2987
2987
  }, ee.prototype.table = function(e) {
@@ -3020,7 +3020,7 @@ var Rr = { exports: {} };
3020
3020
  var v = _._ctx, g = v.table, _ = g.hook.reading.fire;
3021
3021
  this._ctx = { table: g, index: v.index, isPrimKey: !v.index || g.schema.primKey.keyPath && v.index === g.schema.primKey.name, range: p, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: y, or: v.or, valueMapper: _ !== ot ? _ : null };
3022
3022
  })), this.Table = (a = this, dt(lr.prototype, function(c, f, p) {
3023
- this.db = a, this._tx = p, this.name = c, this.schema = f, this.hook = a._allTables[c] ? a._allTables[c].hook : ft(null, { creating: [Vr, H], reading: [Hr, ot], updating: [Xr, H], deleting: [Qr, H] });
3023
+ this.db = a, this._tx = p, this.name = c, this.schema = f, this.hook = a._allTables[c] ? a._allTables[c].hook : ft(null, { creating: [Qr, H], reading: [Hr, ot], updating: [Xr, H], deleting: [Vr, H] });
3024
3024
  })), this.Transaction = (s = this, dt(ai.prototype, function(c, f, p, y, v) {
3025
3025
  var g = this;
3026
3026
  this.db = s, this.mode = c, this.storeNames = f, this.schema = p, this.chromeTransactionDurability = y, this.idbtrans = null, this.on = ft(this, "complete", "error", "abort"), this.parent = v || 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 T(function(_, S) {
@@ -3073,12 +3073,12 @@ var Rr = { exports: {} };
3073
3073
  return c(n);
3074
3074
  });
3075
3075
  }
3076
- var Ht, de = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", Si = (Mn.prototype.subscribe = function(e, t, n) {
3076
+ var Ht, de = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", Si = (Kn.prototype.subscribe = function(e, t, n) {
3077
3077
  return this._subscribe(e && typeof e != "function" ? e : { next: e, error: t, complete: n });
3078
- }, Mn.prototype[de] = function() {
3078
+ }, Kn.prototype[de] = function() {
3079
3079
  return this;
3080
- }, Mn);
3081
- function Mn(e) {
3080
+ }, Kn);
3081
+ function Kn(e) {
3082
3082
  this._subscribe = e;
3083
3083
  }
3084
3084
  try {
@@ -3101,7 +3101,7 @@ var Rr = { exports: {} };
3101
3101
  }, y = function() {
3102
3102
  var v, g, _;
3103
3103
  !u && Ht.indexedDB && (d = {}, v = {}, s && s.abort(), s = new AbortController(), _ = function(S) {
3104
- var E = Qe();
3104
+ var E = Ve();
3105
3105
  try {
3106
3106
  a && Je();
3107
3107
  var O = Pe(e, S);
@@ -3167,7 +3167,7 @@ var Rr = { exports: {} };
3167
3167
  Z(this, e);
3168
3168
  };
3169
3169
  }, ignoreTransaction: function(e) {
3170
- return M.trans ? Ge(M.transless, e) : e();
3170
+ return K.trans ? Ge(K.transless, e) : e();
3171
3171
  }, vip: xn, async: function(e) {
3172
3172
  return function() {
3173
3173
  try {
@@ -3185,9 +3185,9 @@ var Rr = { exports: {} };
3185
3185
  return q(i);
3186
3186
  }
3187
3187
  }, currentTransaction: { get: function() {
3188
- return M.trans || null;
3188
+ return K.trans || null;
3189
3189
  } }, waitFor: function(e, t) {
3190
- return t = T.resolve(typeof e == "function" ? We.ignoreTransaction(e) : e).timeout(t || 6e4), M.trans ? M.trans.waitFor(t) : t;
3190
+ return t = T.resolve(typeof e == "function" ? We.ignoreTransaction(e) : e).timeout(t || 6e4), K.trans ? K.trans.waitFor(t) : t;
3191
3191
  }, Promise: T, debug: { get: function() {
3192
3192
  return pe;
3193
3193
  }, set: function(e) {
@@ -3196,7 +3196,7 @@ var Rr = { exports: {} };
3196
3196
  typeof t == "string" ? fe(e, t, void 0) : "length" in t && [].map.call(t, function(n) {
3197
3197
  fe(e, n, void 0);
3198
3198
  });
3199
- }, shallowClone: Vn, deepClone: Ae, getObjectDiff: Tn, cmp: $, asap: Hn, minKey: -1 / 0, addons: [], connections: Ze, errnames: en, dependencies: Ht, cache: Ue, semVer: ge, version: ge.split(".").map(function(e) {
3199
+ }, shallowClone: Qn, deepClone: Ae, getObjectDiff: Tn, cmp: $, asap: Hn, minKey: -1 / 0, addons: [], connections: Ze, errnames: en, dependencies: Ht, cache: Ue, semVer: ge, version: ge.split(".").map(function(e) {
3200
3200
  return parseInt(e);
3201
3201
  }).reduce(function(e, t, n) {
3202
3202
  return e + t / Math.pow(10, 2 * n);
@@ -3273,7 +3273,7 @@ class Tr {
3273
3273
  * @returns IResponse
3274
3274
  */
3275
3275
  P(this, "getCloud", async (o) => {
3276
- const h = await this.db.table(K.CLOUD).where({ id: o.widget }).last().catch(() => (console.warn(
3276
+ const h = await this.db.table(M.CLOUD).where({ id: o.widget }).last().catch(() => (console.warn(
3277
3277
  "%capi%C %ccloud",
3278
3278
  x.API,
3279
3279
  x.NONE,
@@ -3289,7 +3289,7 @@ class Tr {
3289
3289
  * @returns IResponse
3290
3290
  */
3291
3291
  P(this, "getSeries", async (o) => {
3292
- const h = await this.db.table(K.SERIES).where({ id: o.widget }).last().catch(() => (console.warn(
3292
+ const h = await this.db.table(M.SERIES).where({ id: o.widget }).last().catch(() => (console.warn(
3293
3293
  "%capi%c %cseries",
3294
3294
  x.API,
3295
3295
  x.NONE,
@@ -3307,7 +3307,7 @@ class Tr {
3307
3307
  P(this, "getMessages", async (o) => {
3308
3308
  const h = (B) => B.widget_id === o.widget, m = (B) => B.utc > ((o == null ? void 0 : o.since) || 0), I = (B) => (B == null ? void 0 : B.visible) !== 0;
3309
3309
  try {
3310
- const B = await this.db.table(K.TOPICS).orderBy("utc").reverse().filter(h).filter(m).filter(I).limit((o == null ? void 0 : o.limit) ?? 25).toArray().catch(() => (console.warn(
3310
+ const B = await this.db.table(M.TOPICS).orderBy("utc").reverse().filter(h).filter(m).filter(I).limit((o == null ? void 0 : o.limit) ?? 25).toArray().catch(() => (console.warn(
3311
3311
  "%capi%c %cmessages",
3312
3312
  x.API,
3313
3313
  x.NONE,
@@ -3316,7 +3316,7 @@ class Tr {
3316
3316
  o.widget
3317
3317
  ), { data: null, message: "Messages Data error", success: !1 })), j = B[0] ? B[0].title : "No title", N = B.map(
3318
3318
  (be) => be.message_id
3319
- ), te = (await this.db.table(K.MESSAGES).where("id").anyOf(N).toArray().then((be) => be.sort((ie, xe) => xe.utc - ie.utc))).map(
3319
+ ), te = (await this.db.table(M.MESSAGES).where("id").anyOf(N).toArray().then((be) => be.sort((ie, xe) => xe.utc - ie.utc))).map(
3320
3320
  (be) => be.data
3321
3321
  );
3322
3322
  return {
@@ -3341,7 +3341,7 @@ class Tr {
3341
3341
  * @param data
3342
3342
  * @returns number
3343
3343
  */
3344
- P(this, "setCloud", async (o, h) => o.type === K.CLOUD && h !== "" ? await this.db.table(K.CLOUD).put({
3344
+ P(this, "setCloud", async (o, h) => o.type === M.CLOUD && h !== "" ? await this.db.table(M.CLOUD).put({
3345
3345
  id: o.widget,
3346
3346
  dashboard_id: o.dashboard,
3347
3347
  data: h.data
@@ -3352,7 +3352,7 @@ class Tr {
3352
3352
  * @param data
3353
3353
  * @returns number
3354
3354
  */
3355
- P(this, "setSeries", async (o, h) => o.type === K.SERIES && h !== "" ? await this.db.table(K.SERIES).put({
3355
+ P(this, "setSeries", async (o, h) => o.type === M.SERIES && h !== "" ? await this.db.table(M.SERIES).put({
3356
3356
  id: o.widget,
3357
3357
  dashboard_id: o.dashboard,
3358
3358
  data: h.data
@@ -3367,13 +3367,13 @@ class Tr {
3367
3367
  * @returns number
3368
3368
  */
3369
3369
  P(this, "setMessages", async (o, h) => {
3370
- if (o.type !== K.MESSAGES)
3370
+ if (o.type !== M.MESSAGES)
3371
3371
  return 400;
3372
3372
  const m = h.title;
3373
3373
  try {
3374
3374
  return h.data.messages.forEach(async (I) => {
3375
3375
  var B, j, N;
3376
- await this.db.table(K.MESSAGES).put({ id: I.id, utc: I.utc, data: I }), await this.db.table(K.TOPICS).put({
3376
+ await this.db.table(M.MESSAGES).put({ id: I.id, utc: I.utc, data: I }), await this.db.table(M.TOPICS).put({
3377
3377
  widget_id: o.widget,
3378
3378
  message_id: I.id,
3379
3379
  dashboard_id: o.dashboard,
@@ -3404,11 +3404,11 @@ class Tr {
3404
3404
  * @param query IQuery
3405
3405
  * @returns number
3406
3406
  */
3407
- P(this, "setWidget", async (o) => await this.db.table(K.WIDGETS).put({
3407
+ P(this, "setWidget", async (o) => await this.db.table(M.WIDGETS).put({
3408
3408
  id: o.widget,
3409
3409
  dashboard_id: o.dashboard,
3410
3410
  type: o.type
3411
- }).then(() => 201).catch((h) => (console.error("%cstorage", x.STORAGE, K.WIDGET, o, h), 400)));
3411
+ }).then(() => 201).catch((h) => (console.error("%cstorage", x.STORAGE, M.WIDGET, o, h), 400)));
3412
3412
  /**
3413
3413
  * Add component subscriber
3414
3414
  * @param query IQuery
@@ -3416,7 +3416,7 @@ class Tr {
3416
3416
  */
3417
3417
  P(this, "subscribe", (o) => (o = nt(o), this.subscribers.filter(
3418
3418
  (m) => m.widget === o.widget
3419
- ).length > 0 || (o.type === K.MESSAGES && (o = vt(this.options, o)), console.debug(
3419
+ ).length > 0 || (o.type === M.MESSAGES && (o = vt(this.options, o)), console.debug(
3420
3420
  "%cstorage%c %csubscribe",
3421
3421
  x.STORAGE,
3422
3422
  x.NONE,
@@ -3461,24 +3461,24 @@ function jr() {
3461
3461
  function Fn(w, o = jr()) {
3462
3462
  return o("readonly", (h) => zn(h.get(w)));
3463
3463
  }
3464
- function Qt(w, o, h = jr()) {
3464
+ function Vt(w, o, h = jr()) {
3465
3465
  return h("readwrite", (m) => (m.put(o, w), zn(m.transaction)));
3466
3466
  }
3467
- class Kr {
3467
+ class Mr {
3468
3468
  constructor(o) {
3469
3469
  P(this, "subscribers", []);
3470
3470
  P(this, "options");
3471
3471
  P(this, "getCloud", async (o) => {
3472
3472
  const h = X(o);
3473
- return await Fn(h).then((m) => m).catch(() => (console.warn("%capi", x.API, K.CLOUD, o.slide, o.widget), { data: null, message: "Cloud Data error", success: !1 }));
3473
+ return await Fn(h).then((m) => m).catch(() => (console.warn("%capi", x.API, M.CLOUD, o.slide, o.widget), { data: null, message: "Cloud Data error", success: !1 }));
3474
3474
  });
3475
3475
  P(this, "getSeries", async (o) => {
3476
3476
  const h = X(o);
3477
- return await Fn(h).then((m) => m).catch(() => (console.warn("%capi", x.API, K.SERIES, o.slide, o.widget), { data: null, message: "Series Data error", success: !1 }));
3477
+ return await Fn(h).then((m) => m).catch(() => (console.warn("%capi", x.API, M.SERIES, o.slide, o.widget), { data: null, message: "Series Data error", success: !1 }));
3478
3478
  });
3479
3479
  P(this, "getMessages", async (o) => {
3480
3480
  const h = X(o);
3481
- return await Fn(h).then((m) => m).catch(() => (console.warn("%capi", x.API, K.MESSAGES, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 }));
3481
+ return await Fn(h).then((m) => m).catch(() => (console.warn("%capi", x.API, M.MESSAGES, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 }));
3482
3482
  });
3483
3483
  /**
3484
3484
  * Update Cloud
@@ -3490,7 +3490,7 @@ class Kr {
3490
3490
  if (!h.success)
3491
3491
  return 400;
3492
3492
  const m = X(o);
3493
- return delete h.success, delete h.message, await Qt(m, h).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, K.CLOUD, o, I), 400));
3493
+ return delete h.success, delete h.message, await Vt(m, h).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, M.CLOUD, o, I), 400));
3494
3494
  });
3495
3495
  /**
3496
3496
  * Update Series
@@ -3502,7 +3502,7 @@ class Kr {
3502
3502
  if (!h.success)
3503
3503
  return 400;
3504
3504
  const m = X(o);
3505
- return delete h.success, delete h.message, await Qt(m, h).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, K.SERIES, o, I), 400));
3505
+ return delete h.success, delete h.message, await Vt(m, h).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, M.SERIES, o, I), 400));
3506
3506
  });
3507
3507
  /**
3508
3508
  * Update Messages
@@ -3514,7 +3514,7 @@ class Kr {
3514
3514
  if (!h.success)
3515
3515
  return 400;
3516
3516
  const m = X(o);
3517
- return delete h.success, delete h.message, await Qt(m, h).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, K.MESSAGES, o, I), 400));
3517
+ return delete h.success, delete h.message, await Vt(m, h).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, M.MESSAGES, o, I), 400));
3518
3518
  });
3519
3519
  P(this, "cleanMessages", async (o) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((h) => h())));
3520
3520
  /**
@@ -3528,14 +3528,14 @@ class Kr {
3528
3528
  dashboard_id: o.dashboard,
3529
3529
  type: o.type
3530
3530
  };
3531
- return await Qt(h, m).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, K.WIDGET, o, I), 400));
3531
+ return await Vt(h, m).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, M.WIDGET, o, I), 400));
3532
3532
  });
3533
3533
  /**
3534
3534
  * Add component subscriber
3535
3535
  * @param query IQuery
3536
3536
  * @returns null
3537
3537
  */
3538
- P(this, "subscribe", (o) => (o = nt(o), o.type === K.MESSAGES && (o = vt(this.options, o)), this.subscribers.filter(
3538
+ P(this, "subscribe", (o) => (o = nt(o), o.type === M.MESSAGES && (o = vt(this.options, o)), this.subscribers.filter(
3539
3539
  (m) => m.widget === o.widget
3540
3540
  ).length > 0 || (console.debug(
3541
3541
  "%cstorage%c %csubscribe",
@@ -3553,7 +3553,7 @@ class Kr {
3553
3553
  this.options = o;
3554
3554
  }
3555
3555
  }
3556
- class Mr {
3556
+ class Kr {
3557
3557
  constructor(o) {
3558
3558
  P(this, "subscribers", []);
3559
3559
  P(this, "options");
@@ -3562,7 +3562,7 @@ class Mr {
3562
3562
  try {
3563
3563
  return localStorage.getObject(h);
3564
3564
  } catch {
3565
- return console.warn("%capi", x.API, K.CLOUD, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 };
3565
+ return console.warn("%capi", x.API, M.CLOUD, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 };
3566
3566
  }
3567
3567
  });
3568
3568
  P(this, "getSeries", async (o) => {
@@ -3570,7 +3570,7 @@ class Mr {
3570
3570
  try {
3571
3571
  return localStorage.getObject(h);
3572
3572
  } catch {
3573
- return console.warn("%capi", x.API, K.SERIES, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 };
3573
+ return console.warn("%capi", x.API, M.SERIES, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 };
3574
3574
  }
3575
3575
  });
3576
3576
  P(this, "getMessages", async (o) => {
@@ -3578,7 +3578,7 @@ class Mr {
3578
3578
  try {
3579
3579
  return localStorage.getObject(h);
3580
3580
  } catch {
3581
- return console.warn("%capi", x.API, K.MESSAGES, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 };
3581
+ return console.warn("%capi", x.API, M.MESSAGES, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 };
3582
3582
  }
3583
3583
  });
3584
3584
  /**
@@ -3592,7 +3592,7 @@ class Mr {
3592
3592
  try {
3593
3593
  return localStorage.setObject(m, h), 201;
3594
3594
  } catch (I) {
3595
- return console.error("%cstorage", x.STORAGE, K.CLOUD, o, I), 400;
3595
+ return console.error("%cstorage", x.STORAGE, M.CLOUD, o, I), 400;
3596
3596
  }
3597
3597
  });
3598
3598
  /**
@@ -3606,7 +3606,7 @@ class Mr {
3606
3606
  try {
3607
3607
  return localStorage.setObject(m, h), 201;
3608
3608
  } catch (I) {
3609
- return console.error("%cstorage", x.STORAGE, K.SERIES, o, I), 400;
3609
+ return console.error("%cstorage", x.STORAGE, M.SERIES, o, I), 400;
3610
3610
  }
3611
3611
  });
3612
3612
  /**
@@ -3620,7 +3620,7 @@ class Mr {
3620
3620
  try {
3621
3621
  return localStorage.setObject(m, h), 200;
3622
3622
  } catch (I) {
3623
- return console.error("%cstorage", x.STORAGE, K.MESSAGES, o, I), 400;
3623
+ return console.error("%cstorage", x.STORAGE, M.MESSAGES, o, I), 400;
3624
3624
  }
3625
3625
  });
3626
3626
  P(this, "cleanMessages", async (o) => {
@@ -3631,7 +3631,7 @@ class Mr {
3631
3631
  try {
3632
3632
  return localStorage.setObject(h, o), 201;
3633
3633
  } catch (m) {
3634
- return console.error("%cstorage", x.STORAGE, K.WIDGET, o, m), 400;
3634
+ return console.error("%cstorage", x.STORAGE, M.WIDGET, o, m), 400;
3635
3635
  }
3636
3636
  });
3637
3637
  /**
@@ -3639,7 +3639,7 @@ class Mr {
3639
3639
  * @param query IQuery
3640
3640
  * @returns null
3641
3641
  */
3642
- P(this, "subscribe", (o) => (o = nt(o), o.type === K.MESSAGES && (o = vt(this.options, o)), this.subscribers.filter(
3642
+ P(this, "subscribe", (o) => (o = nt(o), o.type === M.MESSAGES && (o = vt(this.options, o)), this.subscribers.filter(
3643
3643
  (m) => m.widget === o.widget
3644
3644
  ).length || (console.debug(
3645
3645
  "%cstorage%c %csubscribe",
@@ -3671,7 +3671,7 @@ class Br {
3671
3671
  try {
3672
3672
  return sessionStorage.getObject(h);
3673
3673
  } catch {
3674
- return console.warn("%capi", x.API, K.CLOUD, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 };
3674
+ return console.warn("%capi", x.API, M.CLOUD, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 };
3675
3675
  }
3676
3676
  });
3677
3677
  P(this, "getSeries", async (o) => {
@@ -3679,7 +3679,7 @@ class Br {
3679
3679
  try {
3680
3680
  return sessionStorage.getObject(h);
3681
3681
  } catch {
3682
- return console.warn("%capi", x.API, K.SERIES, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 };
3682
+ return console.warn("%capi", x.API, M.SERIES, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 };
3683
3683
  }
3684
3684
  });
3685
3685
  P(this, "getMessages", async (o) => {
@@ -3687,7 +3687,7 @@ class Br {
3687
3687
  try {
3688
3688
  return sessionStorage.getObject(h);
3689
3689
  } catch {
3690
- return console.warn("%capi", x.API, K.MESSAGES, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 };
3690
+ return console.warn("%capi", x.API, M.MESSAGES, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 };
3691
3691
  }
3692
3692
  });
3693
3693
  /**
@@ -3701,7 +3701,7 @@ class Br {
3701
3701
  try {
3702
3702
  return sessionStorage.setObject(m, h), 201;
3703
3703
  } catch (I) {
3704
- return console.error("%cstorage", x.STORAGE, K.CLOUD, o, I), 400;
3704
+ return console.error("%cstorage", x.STORAGE, M.CLOUD, o, I), 400;
3705
3705
  }
3706
3706
  });
3707
3707
  /**
@@ -3715,7 +3715,7 @@ class Br {
3715
3715
  try {
3716
3716
  return sessionStorage.setObject(m, h), 201;
3717
3717
  } catch (I) {
3718
- return console.error("%cstorage", x.STORAGE, K.SERIES, o, I), 400;
3718
+ return console.error("%cstorage", x.STORAGE, M.SERIES, o, I), 400;
3719
3719
  }
3720
3720
  });
3721
3721
  /**
@@ -3729,7 +3729,7 @@ class Br {
3729
3729
  try {
3730
3730
  return sessionStorage.setObject(m, h), 200;
3731
3731
  } catch (I) {
3732
- return console.error("%cstorage", x.STORAGE, K.MESSAGES, o, I), 400;
3732
+ return console.error("%cstorage", x.STORAGE, M.MESSAGES, o, I), 400;
3733
3733
  }
3734
3734
  });
3735
3735
  P(this, "cleanMessages", async (o) => {
@@ -3740,7 +3740,7 @@ class Br {
3740
3740
  try {
3741
3741
  return sessionStorage.setObject(h, o), 201;
3742
3742
  } catch (m) {
3743
- return console.error("%cstorage", x.STORAGE, K.WIDGET, o, m), 400;
3743
+ return console.error("%cstorage", x.STORAGE, M.WIDGET, o, m), 400;
3744
3744
  }
3745
3745
  });
3746
3746
  /**
@@ -3748,7 +3748,7 @@ class Br {
3748
3748
  * @param query IQuery
3749
3749
  * @returns null
3750
3750
  */
3751
- P(this, "subscribe", (o) => (o = nt(o), o.type === K.MESSAGES && (o = vt(this.options, o)), this.subscribers.filter(
3751
+ P(this, "subscribe", (o) => (o = nt(o), o.type === M.MESSAGES && (o = vt(this.options, o)), this.subscribers.filter(
3752
3752
  (m) => m.widget === o.widget
3753
3753
  ).length || (console.debug(
3754
3754
  "%cstorage%c %csubscribe",
@@ -3780,7 +3780,7 @@ class Nr {
3780
3780
  try {
3781
3781
  return window.BuzzCasting.WidgetData[h];
3782
3782
  } catch {
3783
- return console.warn("%capi", x.API, K.CLOUD, o.slide, o.widget), { data: null, message: "Cloud Data error", success: !1 };
3783
+ return console.warn("%capi", x.API, M.CLOUD, o.slide, o.widget), { data: null, message: "Cloud Data error", success: !1 };
3784
3784
  }
3785
3785
  });
3786
3786
  P(this, "getSeries", async (o) => {
@@ -3788,7 +3788,7 @@ class Nr {
3788
3788
  try {
3789
3789
  return window.BuzzCasting.WidgetData[h];
3790
3790
  } catch {
3791
- return console.warn("%capi", x.API, K.SERIES, o.slide, o.widget), { data: null, message: "Series Data error", success: !1 };
3791
+ return console.warn("%capi", x.API, M.SERIES, o.slide, o.widget), { data: null, message: "Series Data error", success: !1 };
3792
3792
  }
3793
3793
  });
3794
3794
  P(this, "getMessages", async (o) => {
@@ -3796,7 +3796,7 @@ class Nr {
3796
3796
  try {
3797
3797
  return window.BuzzCasting.WidgetData[h];
3798
3798
  } catch {
3799
- return console.warn("%capi", x.API, K.MESSAGES, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 };
3799
+ return console.warn("%capi", x.API, M.MESSAGES, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 };
3800
3800
  }
3801
3801
  });
3802
3802
  /**
@@ -3849,7 +3849,7 @@ class Nr {
3849
3849
  try {
3850
3850
  return window.BuzzCasting.WidgetData[h] = o, 201;
3851
3851
  } catch (m) {
3852
- return console.error("%cstorage", x.STORAGE, K.WIDGET, o, m), 400;
3852
+ return console.error("%cstorage", x.STORAGE, M.WIDGET, o, m), 400;
3853
3853
  }
3854
3854
  });
3855
3855
  /**
@@ -3857,7 +3857,7 @@ class Nr {
3857
3857
  * @param query IQuery
3858
3858
  * @returns null
3859
3859
  */
3860
- P(this, "subscribe", (o) => (o = nt(o), o.type === K.MESSAGES && (o = vt(this.options, o)), this.subscribers.filter(
3860
+ P(this, "subscribe", (o) => (o = nt(o), o.type === M.MESSAGES && (o = vt(this.options, o)), this.subscribers.filter(
3861
3861
  (m) => m.widget === o.widget
3862
3862
  ).length || (console.debug(
3863
3863
  "%cstorage%c %csubscribe",
@@ -3921,7 +3921,7 @@ function Ri(w) {
3921
3921
  function Ln(w) {
3922
3922
  return Ii(Gr(0, w, "", []).toString(16), 8);
3923
3923
  }
3924
- class Mi {
3924
+ class Ki {
3925
3925
  constructor(o) {
3926
3926
  P(this, "sm");
3927
3927
  P(this, "api");
@@ -3949,37 +3949,37 @@ class Mi {
3949
3949
  )[0];
3950
3950
  let te = "";
3951
3951
  switch (N.query.type) {
3952
- case K.MESSAGES:
3952
+ case M.MESSAGES:
3953
3953
  if (te = Ln(N.data.messages), Z.hash === te)
3954
3954
  return console.debug(
3955
3955
  "%capi%c %cno updates",
3956
3956
  x.API,
3957
3957
  x.NONE,
3958
3958
  x.NO_UPDATES,
3959
- K.MESSAGES,
3959
+ M.MESSAGES,
3960
3960
  N.query.slide,
3961
3961
  N.query.widget
3962
3962
  ), 204;
3963
3963
  Z.hash = te, j = await this.sm.setMessages(N.query, N);
3964
3964
  break;
3965
- case K.CLOUD:
3965
+ case M.CLOUD:
3966
3966
  te = Ln(N.data), Z.hash === te ? (console.debug(
3967
3967
  "%capi%c %cno updates",
3968
3968
  x.API,
3969
3969
  x.NONE,
3970
3970
  x.NO_UPDATES,
3971
- K.CLOUD,
3971
+ M.CLOUD,
3972
3972
  N.query.slide,
3973
3973
  N.query.widget
3974
3974
  ), j = 204) : (Z.hash = te, j = await this.sm.setCloud(N.query, N));
3975
3975
  break;
3976
- case K.SERIES:
3976
+ case M.SERIES:
3977
3977
  te = Ln(N.data), Z.hash === te ? (console.debug(
3978
3978
  "%capi%c %cno updates",
3979
3979
  x.API,
3980
3980
  x.NONE,
3981
3981
  x.NO_UPDATES,
3982
- K.SERIES,
3982
+ M.SERIES,
3983
3983
  N.query.slide,
3984
3984
  N.query.widget
3985
3985
  ), j = 204) : (Z.hash = te, j = await this.sm.setSeries(N.query, N));
@@ -4090,10 +4090,10 @@ class Mi {
4090
4090
  this.sm = new Br(o);
4091
4091
  break;
4092
4092
  case he.SESSION:
4093
- this.sm = new Mr(o);
4093
+ this.sm = new Kr(o);
4094
4094
  break;
4095
4095
  case he.KEYVAL:
4096
- this.sm = new Kr(o);
4096
+ this.sm = new Mr(o);
4097
4097
  break;
4098
4098
  case he.WINDOW:
4099
4099
  this.sm = new Nr(o);
@@ -4111,7 +4111,7 @@ class Ti {
4111
4111
  */
4112
4112
  P(this, "getCloud", async (o) => {
4113
4113
  var h;
4114
- return o.type !== K.CLOUD ? (console.warn(
4114
+ return o.type !== M.CLOUD ? (console.warn(
4115
4115
  "%capp%c %get",
4116
4116
  x.APP,
4117
4117
  x.NONE,
@@ -4132,7 +4132,7 @@ class Ti {
4132
4132
  */
4133
4133
  P(this, "getMessages", async (o) => {
4134
4134
  var h;
4135
- return o.type !== K.MESSAGES ? (console.warn(
4135
+ return o.type !== M.MESSAGES ? (console.warn(
4136
4136
  "%capp%c %get",
4137
4137
  x.APP,
4138
4138
  x.NONE,
@@ -4153,7 +4153,7 @@ class Ti {
4153
4153
  */
4154
4154
  P(this, "getSeries", async (o) => {
4155
4155
  var h;
4156
- return o.type !== K.SERIES ? (console.warn(
4156
+ return o.type !== M.SERIES ? (console.warn(
4157
4157
  "%capp%c %get",
4158
4158
  x.APP,
4159
4159
  x.NONE,
@@ -4175,10 +4175,10 @@ class Ti {
4175
4175
  this.sm = new Br(o);
4176
4176
  break;
4177
4177
  case he.SESSION:
4178
- this.sm = new Mr(o);
4178
+ this.sm = new Kr(o);
4179
4179
  break;
4180
4180
  case he.KEYVAL:
4181
- this.sm = new Kr(o);
4181
+ this.sm = new Mr(o);
4182
4182
  break;
4183
4183
  case he.WINDOW:
4184
4184
  this.sm = new Nr(o);
@@ -4186,7 +4186,7 @@ class Ti {
4186
4186
  }
4187
4187
  }
4188
4188
  }
4189
- var K = /* @__PURE__ */ ((w) => (w.MESSAGES = "messages", w.CLOUD = "cloud", w.SERIES = "series", w.TOPICS = "topics", w.WIDGET = "widget", w.WIDGETS = "widgets", w))(K || {}), x = /* @__PURE__ */ ((w) => (w.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", w.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", w.BROADCAST = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", w.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", w.CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", w.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", w.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", w.MESSAGES = "color:grey;background-color:tan;padding:0 4px 0 4px;border-radius:5px;", w.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", w.NONE = "color:transparent;background-color:transparent;", w.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", w.SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", w.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", w.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", w.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", w.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", w.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", w))(x || {}), ue = /* @__PURE__ */ ((w) => (w.ADD_SLIDE = "addSlide", w.APP_READY = "appReady", w.API_UPDATE = "apiUpdate", w.CHANNEL = "channel", w.ERROR = "error", w.GOTO_SLIDE = "gotoSlide", w.HIDE_MESSAGE = "hideMessage", w.NEXT_SLIDE = "nextSlide", w.PAUSE_PRESENTATION = "pausePresentation", w.PRESENTATION_READY = "presentationReady", w.PREV_SLIDE = "prevSlide", w.RELOAD_PRESENTATION = "reloadPresentation", w.SHOW_MODAL = "showModal", w.SLIDE_DID_LOAD = "slideDidLoad", w.SLIDE_GOTO = "slideGoto", w.SLIDE_READY = "slideReady", w.SLIDE_TRANSITIONER = "slideTransitioner", w.START_TRANSITIONER = "startTransitioner", w.STORAGE_INIT = "stroageInit", w.SUBSCRIBE = "subscribe", w.UPDATE = "update", w.VERSION = "version", w.WIDGET_UPDATE = "widgetUpdate", w))(ue || {}), Xt = /* @__PURE__ */ ((w) => (w.APPROVED = "approved", w.BEFORE = "before", w.DELAYED = "delayed", w.NONE = "none", w.REALTIME = "realtime", w))(Xt || {}), he = /* @__PURE__ */ ((w) => (w.KEYVAL = "keyval", w.LOCAL = "local", w.SESSION = "session", w.DEXIE = "dexie", w.WINDOW = "window", w))(he || {});
4189
+ var M = /* @__PURE__ */ ((w) => (w.MESSAGES = "messages", w.CLOUD = "cloud", w.SERIES = "series", w.TOPICS = "topics", w.WIDGET = "widget", w.WIDGETS = "widgets", w))(M || {}), x = /* @__PURE__ */ ((w) => (w.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", w.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", w.BROADCAST = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", w.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", w.CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", w.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", w.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", w.MESSAGES = "color:grey;background-color:tan;padding:0 4px 0 4px;border-radius:5px;", w.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", w.NONE = "color:transparent;background-color:transparent;", w.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", w.SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", w.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", w.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", w.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", w.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", w.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", w))(x || {}), ue = /* @__PURE__ */ ((w) => (w.ADD_SLIDE = "addSlide", w.APP_READY = "appReady", w.API_UPDATE = "apiUpdate", w.APPROVE_MESSAGE = "approveMessage", w.CHANNEL = "channel", w.ERROR = "error", w.GOTO_SLIDE = "gotoSlide", w.HIDE_MESSAGE = "hideMessage", w.NEXT_SLIDE = "nextSlide", w.PAUSE_PRESENTATION = "pausePresentation", w.PRESENTATION_READY = "presentationReady", w.PREV_SLIDE = "prevSlide", w.RELOAD_PRESENTATION = "reloadPresentation", w.SHOW_MODAL = "showModal", w.STAR_MESSAGE = "starMessage", w.SLIDE_DID_LOAD = "slideDidLoad", w.SLIDE_GOTO = "slideGoto", w.SLIDE_READY = "slideReady", w.SLIDE_TRANSITIONER = "slideTransitioner", w.START_TRANSITIONER = "startTransitioner", w.STORAGE_INIT = "stroageInit", w.SUBSCRIBE = "subscribe", w.UPDATE = "update", w.VERSION = "version", w.WIDGET_UPDATE = "widgetUpdate", w))(ue || {}), Xt = /* @__PURE__ */ ((w) => (w.APPROVED = "approved", w.BEFORE = "before", w.DELAYED = "delayed", w.NONE = "none", w.REALTIME = "realtime", w))(Xt || {}), he = /* @__PURE__ */ ((w) => (w.KEYVAL = "keyval", w.LOCAL = "local", w.SESSION = "session", w.DEXIE = "dexie", w.WINDOW = "window", w))(he || {});
4190
4190
  class Bi {
4191
4191
  /**
4192
4192
  * Main container for managing widgets and data updates
@@ -4208,11 +4208,11 @@ class Bi {
4208
4208
  */
4209
4209
  P(this, "getData", async () => {
4210
4210
  switch (this.query.type) {
4211
- case K.CLOUD:
4211
+ case M.CLOUD:
4212
4212
  return await this.getCloud();
4213
- case K.MESSAGES:
4213
+ case M.MESSAGES:
4214
4214
  return await this.getMessages();
4215
- case K.SERIES:
4215
+ case M.SERIES:
4216
4216
  return await this.getSeries();
4217
4217
  }
4218
4218
  return {
@@ -4226,7 +4226,7 @@ class Bi {
4226
4226
  *
4227
4227
  * @returns IResponse
4228
4228
  */
4229
- P(this, "getCloud", async () => this.query.type !== K.CLOUD ? (console.warn(
4229
+ P(this, "getCloud", async () => this.query.type !== M.CLOUD ? (console.warn(
4230
4230
  "%cstorage%c %cwidget",
4231
4231
  x.STORAGE,
4232
4232
  x.NONE,
@@ -4244,7 +4244,7 @@ class Bi {
4244
4244
  *
4245
4245
  * @returns IResponse
4246
4246
  */
4247
- P(this, "getMessages", async () => this.query.type !== K.MESSAGES ? (console.warn(
4247
+ P(this, "getMessages", async () => this.query.type !== M.MESSAGES ? (console.warn(
4248
4248
  "%cstorage%c %cwidget",
4249
4249
  x.STORAGE,
4250
4250
  x.NONE,
@@ -4262,7 +4262,7 @@ class Bi {
4262
4262
  *
4263
4263
  * @returns IResponse
4264
4264
  */
4265
- P(this, "getSeries", async () => this.query.type !== K.SERIES ? (console.warn(
4265
+ P(this, "getSeries", async () => this.query.type !== M.SERIES ? (console.warn(
4266
4266
  "%cstorage%c %cwidget",
4267
4267
  x.STORAGE,
4268
4268
  x.NONE,
@@ -4288,8 +4288,7 @@ class Bi {
4288
4288
  x.WIDGET,
4289
4289
  ue.SHOW_MODAL,
4290
4290
  o.showComponent,
4291
- m,
4292
- h
4291
+ h.widget
4293
4292
  );
4294
4293
  const I = new CustomEvent(ue.SHOW_MODAL, {
4295
4294
  detail: {
@@ -4362,8 +4361,8 @@ function ji(w) {
4362
4361
  return o;
4363
4362
  }
4364
4363
  export {
4365
- K as API,
4366
- Mi as BuzzcastingStorageManager,
4364
+ M as API,
4365
+ Ki as BuzzcastingStorageManager,
4367
4366
  Ti as BuzzcastingStorageReader,
4368
4367
  x as CSS,
4369
4368
  ue as EVENTS,