buzzcasting-storage 2.11.7 → 2.12.0

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,12 +1,12 @@
1
1
  var Ei = Object.defineProperty;
2
2
  var Oi = (g, i, c) => i in g ? Ei(g, i, { enumerable: !0, configurable: !0, writable: !0, value: c }) : g[i] = c;
3
- var C = (g, i, c) => (Oi(g, typeof i != "symbol" ? i + "" : i, c), c);
4
- const xi = "2.11.6";
3
+ var P = (g, i, c) => (Oi(g, typeof i != "symbol" ? i + "" : i, c), c);
4
+ const xi = "2.11.7";
5
5
  class ki {
6
6
  constructor(i) {
7
- C(this, "options");
8
- C(this, "url");
9
- C(this, "headers", () => {
7
+ P(this, "options");
8
+ P(this, "url");
9
+ P(this, "headers", () => {
10
10
  const i = `Bearer ${this.options.bearer}`;
11
11
  return {
12
12
  headers: new Headers({
@@ -19,9 +19,9 @@ class ki {
19
19
  this.options = i, this.url = `https://${i.app}.buzzcasting.net`;
20
20
  }
21
21
  async get(i) {
22
- const { version: c } = this.options, h = this.headers(), A = Object.assign({}, i);
23
- delete A.slide, delete A.type, delete A.hash;
24
- const R = Object.keys(A).length > 0 ? `?${new URLSearchParams(A).toString()}` : "";
22
+ const { version: c } = this.options, h = this.headers(), D = Object.assign({}, i);
23
+ delete D.slide, delete D.type, delete D.hash;
24
+ const R = Object.keys(D).length > 0 ? `?${new URLSearchParams(D).toString()}` : "";
25
25
  return console.debug(
26
26
  "%capi%c %cget",
27
27
  x.API,
@@ -32,14 +32,14 @@ class ki {
32
32
  ), await fetch(
33
33
  [this.url, "api", c, i.type].join("/") + R,
34
34
  { ...h, method: "get" }
35
- ).then(async (B) => {
36
- if (!B.ok)
37
- throw new Error(`${B.status}`);
38
- return B;
39
- }).then((B) => B.json()).then((B) => (B.query = i, B)).catch((B) => ({ success: !1, message: `${B}`, data: null }));
35
+ ).then(async (K) => {
36
+ if (!K.ok)
37
+ throw new Error(`${K.status}`);
38
+ return K;
39
+ }).then((K) => K.json()).then((K) => (K.query = i, K)).catch((K) => ({ success: !1, message: `${K}`, data: null }));
40
40
  }
41
41
  async hideMessage(i) {
42
- const { version: c } = this.options, h = this.headers(), A = "?action=visible";
42
+ const { version: c } = this.options, h = this.headers(), D = "?action=visible";
43
43
  return console.info(
44
44
  "%capi%c %cput",
45
45
  x.API,
@@ -49,7 +49,7 @@ class ki {
49
49
  i.widget,
50
50
  i.id
51
51
  ), await fetch(
52
- [this.url, "api", c, i.type, i.id].join("/") + A,
52
+ [this.url, "api", c, i.type, i.id].join("/") + D,
53
53
  { ...h, method: "put" }
54
54
  ).then((R) => {
55
55
  if (!R.ok)
@@ -58,7 +58,7 @@ class ki {
58
58
  }).then((R) => R.json()).catch((R) => ({ succes: !1, message: R, data: [] }));
59
59
  }
60
60
  async hideLabels(i) {
61
- const { version: c } = this.options, h = this.headers(), A = JSON.stringify(i.labels);
61
+ const { version: c } = this.options, h = this.headers(), D = JSON.stringify(i.labels);
62
62
  return console.info(
63
63
  "%capi%c %cput",
64
64
  x.API,
@@ -66,10 +66,10 @@ class ki {
66
66
  x.GET_DATA,
67
67
  se.HIDE_LABELS,
68
68
  i.widget,
69
- A
69
+ D
70
70
  ), await fetch(
71
71
  [this.url, "api", c, i.type, i.widget].join("/"),
72
- { ...h, body: A, method: "put" }
72
+ { ...h, body: D, method: "put" }
73
73
  ).then((R) => {
74
74
  if (!R.ok)
75
75
  throw new Error(R.statusText);
@@ -101,15 +101,15 @@ var Rr = { exports: {} };
101
101
  return e;
102
102
  }).apply(this, arguments);
103
103
  };
104
- function A(e, t, n) {
104
+ function D(e, t, n) {
105
105
  if (n || arguments.length === 2)
106
106
  for (var r, o = 0, a = t.length; o < a; o++)
107
107
  !r && o in t || ((r = r || Array.prototype.slice.call(t, 0, o))[o] = t[o]);
108
108
  return e.concat(r || Array.prototype.slice.call(t));
109
109
  }
110
- var R = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Cr, B = Object.keys, N = Array.isArray;
110
+ var R = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Cr, K = Object.keys, N = Array.isArray;
111
111
  function Z(e, t) {
112
- return typeof t != "object" || B(t).forEach(function(n) {
112
+ return typeof t != "object" || K(t).forEach(function(n) {
113
113
  e[n] = t[n];
114
114
  }), e;
115
115
  }
@@ -119,7 +119,7 @@ var Rr = { exports: {} };
119
119
  return be.call(e, t);
120
120
  }
121
121
  function xe(e, t) {
122
- typeof t == "function" && (t = t(te(e))), (typeof Reflect > "u" ? B : Reflect.ownKeys)(t).forEach(function(n) {
122
+ typeof t == "function" && (t = t(te(e))), (typeof Reflect > "u" ? K : Reflect.ownKeys)(t).forEach(function(n) {
123
123
  ke(e, n, t[n]);
124
124
  });
125
125
  }
@@ -367,12 +367,12 @@ var Rr = { exports: {} };
367
367
  return [t, te(t), e];
368
368
  }(), st = ge[0], de = ge[1], ge = ge[2], de = de && de.then, ut = st && st.constructor, nn = !!ge, ct = function(e, t) {
369
369
  lt.push([e, t]), Et && (queueMicrotask(qr), Et = !1);
370
- }, 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 = [];
370
+ }, rn = !0, Et = !0, Be = [], Ot = [], on = ot, De = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: H, pgp: !1, env: {}, finalize: H }, B = De, lt = [], Ne = 0, xt = [];
371
371
  function j(e) {
372
372
  if (typeof this != "object")
373
373
  throw new TypeError("Promises must be constructed via new");
374
374
  this._listeners = [], this._lib = !1;
375
- var t = this._PSD = K;
375
+ var t = this._PSD = B;
376
376
  if (typeof e != "function") {
377
377
  if (e !== at)
378
378
  throw new TypeError("Not a function");
@@ -396,9 +396,9 @@ var Rr = { exports: {} };
396
396
  }(this, e);
397
397
  }
398
398
  var an = { get: function() {
399
- var e = K, t = Pt;
399
+ var e = B, t = Pt;
400
400
  function n(r, o) {
401
- var a = this, s = !e.global && (e !== K || t !== Pt), u = s && !Ce(), p = new j(function(f, v) {
401
+ var a = this, s = !e.global && (e !== B || t !== Pt), u = s && !Ce(), p = new j(function(f, v) {
402
402
  un(a, new tr(ir(r, e, s, u), ir(o, e, s, u), f, v, e));
403
403
  });
404
404
  return this._consoleTask && (p._consoleTask = this._consoleTask), p;
@@ -485,9 +485,9 @@ var Rr = { exports: {} };
485
485
  return new j(at, !1, e);
486
486
  }
487
487
  function J(e, t) {
488
- var n = K;
488
+ var n = B;
489
489
  return function() {
490
- var r = Xe(), o = K;
490
+ var r = Xe(), o = B;
491
491
  try {
492
492
  return Ie(n, !0), e.apply(this, arguments);
493
493
  } catch (a) {
@@ -498,7 +498,7 @@ var Rr = { exports: {} };
498
498
  };
499
499
  }
500
500
  xe(j.prototype, { then: an, _then: function(e, t) {
501
- un(this, new tr(null, null, e, t, K));
501
+ un(this, new tr(null, null, e, t, B));
502
502
  }, catch: function(e) {
503
503
  if (arguments.length === 1)
504
504
  return this.then(null, e);
@@ -549,9 +549,9 @@ var Rr = { exports: {} };
549
549
  });
550
550
  });
551
551
  }, PSD: { get: function() {
552
- return K;
552
+ return B;
553
553
  }, set: function(e) {
554
- return K = e;
554
+ return B = e;
555
555
  } }, totalEchoes: { get: function() {
556
556
  return Pt;
557
557
  } }, newPSD: Pe, usePSD: Le, scheduler: { get: function() {
@@ -565,7 +565,7 @@ var Rr = { exports: {} };
565
565
  } }, follow: function(e, t) {
566
566
  return new j(function(n, r) {
567
567
  return Pe(function(o, a) {
568
- var s = K;
568
+ var s = B;
569
569
  s.unhandleds = [], s.onunhandled = a, s.finalize = Ke(function() {
570
570
  var u, p = this;
571
571
  u = function() {
@@ -609,7 +609,7 @@ var Rr = { exports: {} };
609
609
  }));
610
610
  var ne = { awaits: 0, echoes: 0, id: 0 }, ei = 0, At = [], Dt = 0, Pt = 0, ti = 0;
611
611
  function Pe(e, t, n, r) {
612
- var o = K, a = Object.create(o);
612
+ var o = B, a = Object.create(o);
613
613
  return a.parent = o, a.ref = 0, a.global = !1, a.id = ++ti, De.env, a.env = nn ? { Promise: j, PromiseProp: { value: j, configurable: !0, writable: !0 }, all: j.all, race: j.race, allSettled: j.allSettled, any: j.any, resolve: j.resolve, reject: j.reject } : {}, t && Z(a, t), ++o.ref, a.finalize = function() {
614
614
  --this.parent.ref || this.parent.finalize();
615
615
  }, r = Le(a, e, n, r), a.ref === 0 && a.finalize(), r;
@@ -632,17 +632,17 @@ var Rr = { exports: {} };
632
632
  At.pop(), Ie(e, !1);
633
633
  }
634
634
  function Ie(e, t) {
635
- var n, r = K;
636
- (t ? !ne.echoes || Dt++ && e === K : !Dt || --Dt && e === K) || queueMicrotask(t ? (function(o) {
637
- ++Pt, ne.echoes && --ne.echoes != 0 || (ne.echoes = ne.awaits = ne.id = 0), At.push(K), Ie(o, !0);
638
- }).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(R, "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))));
635
+ var n, r = B;
636
+ (t ? !ne.echoes || Dt++ && e === B : !Dt || --Dt && e === B) || queueMicrotask(t ? (function(o) {
637
+ ++Pt, ne.echoes && --ne.echoes != 0 || (ne.echoes = ne.awaits = ne.id = 0), At.push(B), Ie(o, !0);
638
+ }).bind(null, e) : ni), e !== B && (B = e, r === De && (De.env = rr()), nn && (n = De.env.Promise, t = e.env, (r.global || e.global) && (Object.defineProperty(R, "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))));
639
639
  }
640
640
  function rr() {
641
641
  var e = R.Promise;
642
642
  return nn ? { Promise: e, PromiseProp: Object.getOwnPropertyDescriptor(R, "Promise"), all: e.all, race: e.race, allSettled: e.allSettled, any: e.any, resolve: e.resolve, reject: e.reject } : {};
643
643
  }
644
644
  function Le(e, t, n, r, o) {
645
- var a = K;
645
+ var a = B;
646
646
  try {
647
647
  return Ie(e, !0), t(n, r, o);
648
648
  } finally {
@@ -651,7 +651,7 @@ var Rr = { exports: {} };
651
651
  }
652
652
  function ir(e, t, n, r) {
653
653
  return typeof e != "function" ? e : function() {
654
- var o = K;
654
+ var o = B;
655
655
  n && Je(), Ie(t, !0);
656
656
  try {
657
657
  return e.apply(this, arguments);
@@ -720,7 +720,7 @@ var Rr = { exports: {} };
720
720
  return e instanceof Uint8Array ? e : ArrayBuffer.isView(e) ? new Uint8Array(e.buffer, e.byteOffset, e.byteLength) : new Uint8Array(e);
721
721
  }
722
722
  var lr = (X.prototype._trans = function(e, t, n) {
723
- var r = this._tx || K.trans, o = this.name, a = pe && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(e === "readonly" ? "read" : "write", " ").concat(this.name));
723
+ var r = this._tx || B.trans, o = this.name, a = pe && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(e === "readonly" ? "read" : "write", " ").concat(this.name));
724
724
  function s(f, v, l) {
725
725
  if (!l.schema[o])
726
726
  throw new G.NotFound("Table " + o + " not part of transaction");
@@ -728,10 +728,10 @@ var Rr = { exports: {} };
728
728
  }
729
729
  var u = Xe();
730
730
  try {
731
- var p = r && r.db._novip === this.db._novip ? r === K.trans ? r._promise(e, s, n) : Pe(function() {
731
+ var p = r && r.db._novip === this.db._novip ? r === B.trans ? r._promise(e, s, n) : Pe(function() {
732
732
  return r._promise(e, s, n);
733
- }, { trans: r, transless: K.transless || K }) : function f(v, l, d, y) {
734
- if (v.idbdb && (v._state.openComplete || K.letThrough || v._vip)) {
733
+ }, { trans: r, transless: B.transless || B }) : function f(v, l, d, y) {
734
+ if (v.idbdb && (v._state.openComplete || B.letThrough || v._vip)) {
735
735
  var b = v._createTransaction(l, d, v._dbSchema);
736
736
  try {
737
737
  b.create(), v._state.PR1398_maxLoop = 3;
@@ -742,7 +742,7 @@ var Rr = { exports: {} };
742
742
  }
743
743
  return b._promise(l, function(w, m) {
744
744
  return Pe(function() {
745
- return K.trans = b, y(w, m, b);
745
+ return B.trans = b, y(w, m, b);
746
746
  });
747
747
  }).then(function(w) {
748
748
  if (l === "readwrite")
@@ -784,7 +784,7 @@ var Rr = { exports: {} };
784
784
  return new this.db.WhereClause(this, e);
785
785
  if (N(e))
786
786
  return new this.db.WhereClause(this, "[".concat(e.join("+"), "]"));
787
- var t = B(e);
787
+ var t = K(e);
788
788
  if (t.length === 1)
789
789
  return this.where(t[0]).equals(e[t[0]]);
790
790
  var n = this.schema.indexes.concat(this.schema.primKey).filter(function(p) {
@@ -1040,7 +1040,7 @@ var Rr = { exports: {} };
1040
1040
  } };
1041
1041
  return n[s] = t[s] = v;
1042
1042
  }
1043
- B(f = s).forEach(function(l) {
1043
+ K(f = s).forEach(function(l) {
1044
1044
  var d = f[l];
1045
1045
  if (N(d))
1046
1046
  a(l, f[l][0], f[l][1]);
@@ -1292,7 +1292,7 @@ var Rr = { exports: {} };
1292
1292
  var t = this, n = this._ctx;
1293
1293
  return this._write(function(r) {
1294
1294
  var o, a, s;
1295
- s = typeof e == "function" ? e : (o = B(e), a = o.length, function(m) {
1295
+ s = typeof e == "function" ? e : (o = K(e), a = o.length, function(m) {
1296
1296
  for (var _ = !1, S = 0; S < a; ++S) {
1297
1297
  var E = o[S], O = e[E];
1298
1298
  ve(m, E) !== O && (fe(m, E, O), _ = !0);
@@ -1302,7 +1302,7 @@ var Rr = { exports: {} };
1302
1302
  function u(m, E) {
1303
1303
  var S = E.failures, E = E.numFailures;
1304
1304
  b += m - E;
1305
- for (var O = 0, k = B(S); O < k.length; O++) {
1305
+ for (var O = 0, k = K(S); O < k.length; O++) {
1306
1306
  var I = k[O];
1307
1307
  y.push(S[I]);
1308
1308
  }
@@ -1312,9 +1312,9 @@ var Rr = { exports: {} };
1312
1312
  function _(S) {
1313
1313
  var E = Math.min(d, m.length - S);
1314
1314
  return p.getMany({ trans: r, keys: m.slice(S, S + E), cache: "immutable" }).then(function(O) {
1315
- for (var k = [], I = [], D = v ? [] : null, T = [], P = 0; P < E; ++P) {
1316
- var L = O[P], F = { value: Ae(L), primKey: m[S + P] };
1317
- s.call(F, F.value, F) !== !1 && (F.value == null ? T.push(m[S + P]) : v || z(l(L), l(F.value)) === 0 ? (I.push(F.value), v && D.push(m[S + P])) : (T.push(m[S + P]), k.push(F.value)));
1315
+ for (var k = [], I = [], A = v ? [] : null, T = [], C = 0; C < E; ++C) {
1316
+ var L = O[C], F = { value: Ae(L), primKey: m[S + C] };
1317
+ s.call(F, F.value, F) !== !1 && (F.value == null ? T.push(m[S + C]) : v || z(l(L), l(F.value)) === 0 ? (I.push(F.value), v && A.push(m[S + C])) : (T.push(m[S + C]), k.push(F.value)));
1318
1318
  }
1319
1319
  var Y = qe(n) && n.limit === 1 / 0 && (typeof e != "function" || e === gn) && { index: n.index, range: n.range };
1320
1320
  return Promise.resolve(0 < k.length && p.mutate({ trans: r, type: "add", values: k }).then(function($) {
@@ -1322,7 +1322,7 @@ var Rr = { exports: {} };
1322
1322
  T.splice(parseInt(Q), 1);
1323
1323
  u(k.length, $);
1324
1324
  })).then(function() {
1325
- return (0 < I.length || Y && typeof e == "object") && p.mutate({ trans: r, type: "put", keys: D, values: I, criteria: Y, changeSpec: typeof e != "function" && e }).then(function($) {
1325
+ return (0 < I.length || Y && typeof e == "object") && p.mutate({ trans: r, type: "put", keys: A, values: I, criteria: Y, changeSpec: typeof e != "function" && e }).then(function($) {
1326
1326
  return u(I.length, $);
1327
1327
  });
1328
1328
  }).then(function() {
@@ -1417,14 +1417,14 @@ var Rr = { exports: {} };
1417
1417
  if (t(S, p, y))
1418
1418
  return !0;
1419
1419
  for (var E = null, O = y; O < l; ++O) {
1420
- var k = function(I, D, T, P, L, F) {
1421
- for (var Y = Math.min(I.length, P.length), $ = -1, Q = 0; Q < Y; ++Q) {
1422
- var le = D[Q];
1423
- if (le !== P[Q])
1424
- return L(I[Q], T[Q]) < 0 ? I.substr(0, Q) + T[Q] + T.substr(Q + 1) : L(I[Q], P[Q]) < 0 ? I.substr(0, Q) + P[Q] + T.substr(Q + 1) : 0 <= $ ? I.substr(0, $) + D[$] + T.substr($ + 1) : null;
1420
+ var k = function(I, A, T, C, L, F) {
1421
+ for (var Y = Math.min(I.length, C.length), $ = -1, Q = 0; Q < Y; ++Q) {
1422
+ var le = A[Q];
1423
+ if (le !== C[Q])
1424
+ return L(I[Q], T[Q]) < 0 ? I.substr(0, Q) + T[Q] + T.substr(Q + 1) : L(I[Q], C[Q]) < 0 ? I.substr(0, Q) + C[Q] + T.substr(Q + 1) : 0 <= $ ? I.substr(0, $) + A[$] + T.substr($ + 1) : null;
1425
1425
  L(I[Q], le) < 0 && ($ = Q);
1426
1426
  }
1427
- return Y < P.length && F === "next" ? I + T.substr(I.length) : Y < I.length && F === "prev" ? I.substr(0, T.length) : $ < 0 ? null : I.substr(0, $) + P[$] + T.substr($ + 1);
1427
+ return Y < C.length && F === "next" ? I + T.substr(I.length) : Y < I.length && F === "prev" ? I.substr(0, T.length) : $ < 0 ? null : I.substr(0, $) + C[$] + T.substr($ + 1);
1428
1428
  }(_, S, u[O], p[O], s, f);
1429
1429
  k === null && E === null ? y = O + 1 : (E === null || 0 < s(E, k)) && (E = k);
1430
1430
  }
@@ -1597,10 +1597,10 @@ var Rr = { exports: {} };
1597
1597
  e.stopPropagation && e.stopPropagation(), e.preventDefault && e.preventDefault();
1598
1598
  }
1599
1599
  var pt = "storagemutated", yn = "x-storagemutated-1", Te = ft(null, pt), ai = (me.prototype._lock = function() {
1600
- return rt(!K.global), ++this._reculock, this._reculock !== 1 || K.global || (K.lockOwnerFor = this), this;
1600
+ return rt(!B.global), ++this._reculock, this._reculock !== 1 || B.global || (B.lockOwnerFor = this), this;
1601
1601
  }, me.prototype._unlock = function() {
1602
- if (rt(!K.global), --this._reculock == 0)
1603
- for (K.global || (K.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
1602
+ if (rt(!B.global), --this._reculock == 0)
1603
+ for (B.global || (B.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
1604
1604
  var e = this._blockedFuncs.shift();
1605
1605
  try {
1606
1606
  Le(e[1], e[0]);
@@ -1609,7 +1609,7 @@ var Rr = { exports: {} };
1609
1609
  }
1610
1610
  return this;
1611
1611
  }, me.prototype._locked = function() {
1612
- return this._reculock && K.lockOwnerFor !== this;
1612
+ return this._reculock && B.lockOwnerFor !== this;
1613
1613
  }, me.prototype.create = function(e) {
1614
1614
  var t = this;
1615
1615
  if (!this.mode)
@@ -1643,7 +1643,7 @@ var Rr = { exports: {} };
1643
1643
  return new j(function(a, s) {
1644
1644
  r._blockedFuncs.push([function() {
1645
1645
  r._promise(e, t, n).then(a, s);
1646
- }, K]);
1646
+ }, B]);
1647
1647
  });
1648
1648
  if (n)
1649
1649
  return Pe(function() {
@@ -1753,8 +1753,8 @@ var Rr = { exports: {} };
1753
1753
  var m = w.trans, _ = w.type, S = w.keys, E = w.values, O = w.range;
1754
1754
  return new Promise(function(k, I) {
1755
1755
  k = J(k);
1756
- var D = m.objectStore(b), T = D.keyPath == null, P = _ === "put" || _ === "add";
1757
- if (!P && _ !== "delete" && _ !== "deleteRange")
1756
+ var A = m.objectStore(b), T = A.keyPath == null, C = _ === "put" || _ === "add";
1757
+ if (!C && _ !== "delete" && _ !== "deleteRange")
1758
1758
  throw new Error("Invalid operation type: " + _);
1759
1759
  var L, F = (S || E || { length: 1 }).length;
1760
1760
  if (S && E && S.length !== E.length)
@@ -1768,15 +1768,15 @@ var Rr = { exports: {} };
1768
1768
  if (_ === "deleteRange") {
1769
1769
  if (O.type === 4)
1770
1770
  return k({ numFailures: le, failures: Q, results: [], lastResult: void 0 });
1771
- O.type === 3 ? $.push(L = D.clear()) : $.push(L = D.delete(r(O)));
1771
+ O.type === 3 ? $.push(L = A.clear()) : $.push(L = A.delete(r(O)));
1772
1772
  } else {
1773
- var T = P ? T ? [E, S] : [E, null] : [S, null], U = T[0], Ee = T[1];
1774
- if (P)
1773
+ var T = C ? T ? [E, S] : [E, null] : [S, null], U = T[0], Ee = T[1];
1774
+ if (C)
1775
1775
  for (var ae = 0; ae < F; ++ae)
1776
- $.push(L = Ee && Ee[ae] !== void 0 ? D[_](U[ae], Ee[ae]) : D[_](U[ae])), L.onerror = Y;
1776
+ $.push(L = Ee && Ee[ae] !== void 0 ? A[_](U[ae], Ee[ae]) : A[_](U[ae])), L.onerror = Y;
1777
1777
  else
1778
1778
  for (ae = 0; ae < F; ++ae)
1779
- $.push(L = D[_](U[ae])), L.onerror = Y;
1779
+ $.push(L = A[_](U[ae])), L.onerror = Y;
1780
1780
  }
1781
1781
  function Qt(ue) {
1782
1782
  ue = ue.target.result, $.forEach(function(We, Nn) {
@@ -1793,11 +1793,11 @@ var Rr = { exports: {} };
1793
1793
  var m = w.trans, _ = w.keys;
1794
1794
  return new Promise(function(S, E) {
1795
1795
  S = J(S);
1796
- for (var O, k = m.objectStore(b), I = _.length, D = new Array(I), T = 0, P = 0, L = function($) {
1797
- $ = $.target, D[$._pos] = $.result, ++P === T && S(D);
1796
+ for (var O, k = m.objectStore(b), I = _.length, A = new Array(I), T = 0, C = 0, L = function($) {
1797
+ $ = $.target, A[$._pos] = $.result, ++C === T && S(A);
1798
1798
  }, F = ye(E), Y = 0; Y < I; ++Y)
1799
1799
  _[Y] != null && ((O = k.get(_[Y]))._pos = Y, O.onsuccess = L, O.onerror = F, ++T);
1800
- T === 0 && S(D);
1800
+ T === 0 && S(A);
1801
1801
  });
1802
1802
  }, get: function(w) {
1803
1803
  var m = w.trans, _ = w.key;
@@ -1811,12 +1811,12 @@ var Rr = { exports: {} };
1811
1811
  }, query: (y = f, function(w) {
1812
1812
  return new Promise(function(m, _) {
1813
1813
  m = J(m);
1814
- var S, E, O, T = w.trans, k = w.values, I = w.limit, L = w.query, D = I === 1 / 0 ? void 0 : I, P = L.index, L = L.range, T = T.objectStore(b), P = P.isPrimaryKey ? T : T.index(P.name), L = r(L);
1814
+ var S, E, O, T = w.trans, k = w.values, I = w.limit, L = w.query, A = I === 1 / 0 ? void 0 : I, C = L.index, L = L.range, T = T.objectStore(b), C = C.isPrimaryKey ? T : T.index(C.name), L = r(L);
1815
1815
  if (I === 0)
1816
1816
  return m({ result: [] });
1817
- y ? ((D = k ? P.getAll(L, D) : P.getAllKeys(L, D)).onsuccess = function(F) {
1817
+ y ? ((A = k ? C.getAll(L, A) : C.getAllKeys(L, A)).onsuccess = function(F) {
1818
1818
  return m({ result: F.target.result });
1819
- }, D.onerror = ye(_)) : (S = 0, E = !k && "openKeyCursor" in P ? P.openKeyCursor(L) : P.openCursor(L), O = [], E.onsuccess = function(F) {
1819
+ }, A.onerror = ye(_)) : (S = 0, E = !k && "openKeyCursor" in C ? C.openKeyCursor(L) : C.openCursor(L), O = [], E.onsuccess = function(F) {
1820
1820
  var Y = E.result;
1821
1821
  return Y ? (O.push(k ? Y.value : Y.primaryKey), ++S === I ? m({ result: O }) : void Y.continue()) : m({ result: O });
1822
1822
  }, E.onerror = ye(_));
@@ -1825,7 +1825,7 @@ var Rr = { exports: {} };
1825
1825
  var m = w.trans, _ = w.values, S = w.query, E = w.reverse, O = w.unique;
1826
1826
  return new Promise(function(k, I) {
1827
1827
  k = J(k);
1828
- var P = S.index, D = S.range, T = m.objectStore(b), T = P.isPrimaryKey ? T : T.index(P.name), P = E ? O ? "prevunique" : "prev" : O ? "nextunique" : "next", L = !_ && "openKeyCursor" in T ? T.openKeyCursor(r(D), P) : T.openCursor(r(D), P);
1828
+ var C = S.index, A = S.range, T = m.objectStore(b), T = C.isPrimaryKey ? T : T.index(C.name), C = E ? O ? "prevunique" : "prev" : O ? "nextunique" : "next", L = !_ && "openKeyCursor" in T ? T.openKeyCursor(r(A), C) : T.openCursor(r(A), C);
1829
1829
  L.onerror = ye(I), L.onsuccess = J(function(F) {
1830
1830
  var Y, $, Q, le, U = L.result;
1831
1831
  U ? (U.___id = ++si, U.done = !1, Y = U.continue.bind(U), $ = ($ = U.continuePrimaryKey) && $.bind(U), Q = U.advance.bind(U), le = function() {
@@ -1866,10 +1866,10 @@ var Rr = { exports: {} };
1866
1866
  }, count: function(w) {
1867
1867
  var m = w.query, _ = w.trans, S = m.index, E = m.range;
1868
1868
  return new Promise(function(O, k) {
1869
- var I = _.objectStore(b), D = S.isPrimaryKey ? I : I.index(S.name), I = r(E), D = I ? D.count(I) : D.count();
1870
- D.onsuccess = J(function(T) {
1869
+ var I = _.objectStore(b), A = S.isPrimaryKey ? I : I.index(S.name), I = r(E), A = I ? A.count(I) : A.count();
1870
+ A.onsuccess = J(function(T) {
1871
1871
  return O(T.target.result);
1872
- }), D.onerror = ye(k);
1872
+ }), A.onerror = ye(k);
1873
1873
  });
1874
1874
  } };
1875
1875
  }
@@ -1938,9 +1938,9 @@ var Rr = { exports: {} };
1938
1938
  n.objectStoreNames.contains("$meta") && !o.$meta && (o.$meta = bn("$meta", br("")[0], []), e._storeNames.push("$meta"));
1939
1939
  var a = e._createTransaction("readwrite", e._storeNames, o);
1940
1940
  a.create(n), a._completion.catch(r);
1941
- var s = a._reject.bind(a), u = K.transless || K;
1941
+ var s = a._reject.bind(a), u = B.transless || B;
1942
1942
  Pe(function() {
1943
- return K.trans = a, K.transless = u, t !== 0 ? (Kt(e, n), f = t, ((p = a).storeNames.includes("$meta") ? p.table("$meta").get("version").then(function(v) {
1943
+ return B.trans = a, B.transless = u, t !== 0 ? (Kt(e, n), f = t, ((p = a).storeNames.includes("$meta") ? p.table("$meta").get("version").then(function(v) {
1944
1944
  return v ?? f;
1945
1945
  }) : j.resolve(f)).then(function(v) {
1946
1946
  return d = v, y = a, b = n, w = [], v = (l = e)._versions, m = l._dbSchema = Lt(0, l.idbdb, b), (v = v.filter(function(_) {
@@ -1950,17 +1950,17 @@ var Rr = { exports: {} };
1950
1950
  var S = m, E = _._cfg.dbschema;
1951
1951
  Gt(l, S, b), Gt(l, E, b), m = l._dbSchema = E;
1952
1952
  var O = _n(S, E);
1953
- O.add.forEach(function(P) {
1954
- Sn(b, P[0], P[1].primKey, P[1].indexes);
1955
- }), O.change.forEach(function(P) {
1956
- if (P.recreate)
1953
+ O.add.forEach(function(C) {
1954
+ Sn(b, C[0], C[1].primKey, C[1].indexes);
1955
+ }), O.change.forEach(function(C) {
1956
+ if (C.recreate)
1957
1957
  throw new G.Upgrade("Not yet support for changing primary key");
1958
- var L = b.objectStore(P.name);
1959
- P.add.forEach(function(F) {
1958
+ var L = b.objectStore(C.name);
1959
+ C.add.forEach(function(F) {
1960
1960
  return Nt(L, F);
1961
- }), P.change.forEach(function(F) {
1961
+ }), C.change.forEach(function(F) {
1962
1962
  L.deleteIndex(F.name), Nt(L, F);
1963
- }), P.del.forEach(function(F) {
1963
+ }), C.del.forEach(function(F) {
1964
1964
  return L.deleteIndex(F);
1965
1965
  });
1966
1966
  });
@@ -1968,15 +1968,15 @@ var Rr = { exports: {} };
1968
1968
  if (k && _._cfg.version > d) {
1969
1969
  Kt(l, b), y._memoizedTables = {};
1970
1970
  var I = Qn(E);
1971
- O.del.forEach(function(P) {
1972
- I[P] = S[P];
1973
- }), wn(l, [l.Transaction.prototype]), Bt(l, [l.Transaction.prototype], B(I), I), y.schema = I;
1974
- var D, T = qt(k);
1971
+ O.del.forEach(function(C) {
1972
+ I[C] = S[C];
1973
+ }), wn(l, [l.Transaction.prototype]), Bt(l, [l.Transaction.prototype], K(I), I), y.schema = I;
1974
+ var A, T = qt(k);
1975
1975
  return T && Je(), O = j.follow(function() {
1976
- var P;
1977
- (D = k(y)) && T && (P = Ce.bind(null, null), D.then(P, P));
1978
- }), D && typeof D.then == "function" ? j.resolve(D) : O.then(function() {
1979
- return D;
1976
+ var C;
1977
+ (A = k(y)) && T && (C = Ce.bind(null, null), A.then(C, C));
1978
+ }), A && typeof A.then == "function" ? j.resolve(A) : O.then(function() {
1979
+ return A;
1980
1980
  });
1981
1981
  }
1982
1982
  }), w.push(function(S) {
@@ -1995,7 +1995,7 @@ var Rr = { exports: {} };
1995
1995
  mr(m, b);
1996
1996
  })) : j.resolve();
1997
1997
  var l, d, y, b, w, m;
1998
- }).catch(s)) : (B(o).forEach(function(v) {
1998
+ }).catch(s)) : (K(o).forEach(function(v) {
1999
1999
  Sn(n, v, o[v].primKey, o[v].indexes);
2000
2000
  }), Kt(e, n), void j.follow(function() {
2001
2001
  return e.on.populate.fire(a);
@@ -2052,7 +2052,7 @@ var Rr = { exports: {} };
2052
2052
  }), o;
2053
2053
  }
2054
2054
  function mr(e, t) {
2055
- B(e).forEach(function(n) {
2055
+ K(e).forEach(function(n) {
2056
2056
  t.db.objectStoreNames.contains(n) || (pe && console.debug("Dexie: Creating missing table", n), Sn(t, n, e[n].primKey, e[n].indexes));
2057
2057
  });
2058
2058
  }
@@ -2087,7 +2087,7 @@ var Rr = { exports: {} };
2087
2087
  });
2088
2088
  }
2089
2089
  var hi = (Ft.prototype._parseStoresSpec = function(e, t) {
2090
- B(e).forEach(function(n) {
2090
+ K(e).forEach(function(n) {
2091
2091
  if (e[n] !== null) {
2092
2092
  var r = br(e[n]), o = r.shift();
2093
2093
  if (o.unique = !0, o.multi)
@@ -2106,7 +2106,7 @@ var Rr = { exports: {} };
2106
2106
  var n = t._versions, r = {}, o = {};
2107
2107
  return n.forEach(function(a) {
2108
2108
  Z(r, a._cfg.storesSource), o = a._cfg.dbschema = {}, a._parseStoresSpec(r, o);
2109
- }), t._dbSchema = o, wn(t, [t._allTables, t, t.Transaction.prototype]), Bt(t, [t._allTables, t, t.Transaction.prototype, this._cfg.tables], B(o), o), t._storeNames = B(o), this;
2109
+ }), t._dbSchema = o, wn(t, [t._allTables, t, t.Transaction.prototype]), Bt(t, [t._allTables, t, t.Transaction.prototype, this._cfg.tables], K(o), o), t._storeNames = K(o), this;
2110
2110
  }, Ft.prototype.upgrade = function(e) {
2111
2111
  return this._cfg.contentUpgrade = tn(this._cfg.contentUpgrade || H, e), this;
2112
2112
  }, Ft);
@@ -2121,7 +2121,7 @@ var Rr = { exports: {} };
2121
2121
  }
2122
2122
  function xn(e) {
2123
2123
  return Pe(function() {
2124
- return K.letThrough = !0, e();
2124
+ return B.letThrough = !0, e();
2125
2125
  });
2126
2126
  }
2127
2127
  function kn(e) {
@@ -2201,7 +2201,7 @@ var Rr = { exports: {} };
2201
2201
  return (t ? n ? Math.max(t.d, n.d) : t.d : n ? n.d : 0) + 1;
2202
2202
  }
2203
2203
  function $t(e, t) {
2204
- return B(t).forEach(function(n) {
2204
+ return K(t).forEach(function(n) {
2205
2205
  e[n] ? bt(e[n], t[n]) : e[n] = function r(o) {
2206
2206
  var a, s, u = {};
2207
2207
  for (a in o)
@@ -2293,21 +2293,21 @@ var Rr = { exports: {} };
2293
2293
  var m, _, S, E, O, k = e.idbdb = w.result, I = wt(k.objectStoreNames);
2294
2294
  if (0 < I.length)
2295
2295
  try {
2296
- var D = k.transaction((E = I).length === 1 ? E[0] : E, "readonly");
2296
+ var A = k.transaction((E = I).length === 1 ? E[0] : E, "readonly");
2297
2297
  if (t.autoSchema)
2298
- _ = k, S = D, (m = e).verno = _.version / 10, S = m._dbSchema = Lt(0, _, S), m._storeNames = wt(_.objectStoreNames, 0), Bt(m, [m._allTables], B(S), S);
2299
- else if (Gt(e, e._dbSchema, D), ((O = _n(Lt(0, (O = e).idbdb, D), O._dbSchema)).add.length || O.change.some(function(T) {
2298
+ _ = k, S = A, (m = e).verno = _.version / 10, S = m._dbSchema = Lt(0, _, S), m._storeNames = wt(_.objectStoreNames, 0), Bt(m, [m._allTables], K(S), S);
2299
+ else if (Gt(e, e._dbSchema, A), ((O = _n(Lt(0, (O = e).idbdb, A), O._dbSchema)).add.length || O.change.some(function(T) {
2300
2300
  return T.add.length || T.change.length;
2301
2301
  })) && !a)
2302
2302
  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(), o = k.version + 1, a = !0, d(u());
2303
- Kt(e, D);
2303
+ Kt(e, A);
2304
2304
  } catch {
2305
2305
  }
2306
2306
  Ze.push(e), k.onversionchange = J(function(T) {
2307
2307
  t.vcFired = !0, e.on("versionchange").fire(T);
2308
2308
  }), k.onclose = J(function(T) {
2309
2309
  e.on("close").fire(T);
2310
- }), l && (O = e._deps, D = b, k = O.indexedDB, O = O.IDBKeyRange, On(k) || D === It || En(k, O).put({ name: D }).catch(H)), d();
2310
+ }), l && (O = e._deps, A = b, k = O.indexedDB, O = O.IDBKeyRange, On(k) || A === It || En(k, O).put({ name: A }).catch(H)), d();
2311
2311
  }, y);
2312
2312
  }).catch(function(d) {
2313
2313
  switch (d == null ? void 0 : d.name) {
@@ -2428,10 +2428,10 @@ var Rr = { exports: {} };
2428
2428
  } });
2429
2429
  } };
2430
2430
  function Tn(e, t, n, r) {
2431
- return n = n || {}, r = r || "", B(e).forEach(function(o) {
2431
+ return n = n || {}, r = r || "", K(e).forEach(function(o) {
2432
2432
  var a, s, u;
2433
2433
  ie(t, o) ? (a = e[o], s = t[o], typeof a == "object" && typeof s == "object" && a && s ? (u = Jt(a)) !== Jt(s) ? n[r + o] = t[o] : u === "Object" ? Tn(a, s, n, r + o + ".") : a !== s && (n[r + o] = t[o]) : a !== s && (n[r + o] = t[o])) : n[r + o] = void 0;
2434
- }), B(t).forEach(function(o) {
2434
+ }), K(t).forEach(function(o) {
2435
2435
  ie(e, o) || (n[r + o] = t[o]);
2436
2436
  }), n;
2437
2437
  }
@@ -2442,7 +2442,7 @@ var Rr = { exports: {} };
2442
2442
  return h(h({}, e), { table: function(t) {
2443
2443
  var n = e.table(t), r = n.schema.primaryKey;
2444
2444
  return h(h({}, n), { mutate: function(o) {
2445
- var a = K.trans, s = a.table(t).hook, u = s.deleting, p = s.creating, f = s.updating;
2445
+ var a = B.trans, s = a.table(t).hook, u = s.deleting, p = s.creating, f = s.updating;
2446
2446
  switch (o.type) {
2447
2447
  case "add":
2448
2448
  if (p.fire === H)
@@ -2478,20 +2478,20 @@ var Rr = { exports: {} };
2478
2478
  }
2479
2479
  return n.mutate(o);
2480
2480
  function v(l) {
2481
- var d, y, b, w = K.trans, m = l.keys || jn(r, l);
2481
+ var d, y, b, w = B.trans, m = l.keys || jn(r, l);
2482
2482
  if (!m)
2483
2483
  throw new Error("Keys missing");
2484
- return (l = l.type === "add" || l.type === "put" ? h(h({}, l), { keys: m }) : h({}, l)).type !== "delete" && (l.values = A([], l.values, !0)), l.keys && (l.keys = A([], l.keys, !0)), d = n, b = m, ((y = l).type === "add" ? Promise.resolve([]) : d.getMany({ trans: y.trans, keys: b, cache: "immutable" })).then(function(_) {
2484
+ return (l = l.type === "add" || l.type === "put" ? h(h({}, l), { keys: m }) : h({}, l)).type !== "delete" && (l.values = D([], l.values, !0)), l.keys && (l.keys = D([], l.keys, !0)), d = n, b = m, ((y = l).type === "add" ? Promise.resolve([]) : d.getMany({ trans: y.trans, keys: b, cache: "immutable" })).then(function(_) {
2485
2485
  var S = m.map(function(E, O) {
2486
- var k, I, D, T = _[O], P = { onerror: null, onsuccess: null };
2487
- return l.type === "delete" ? u.fire.call(P, E, T, w) : l.type === "add" || T === void 0 ? (k = p.fire.call(P, E, l.values[O], w), E == null && k != null && (l.keys[O] = E = k, r.outbound || fe(l.values[O], r.keyPath, E))) : (k = Tn(T, l.values[O]), (I = f.fire.call(P, k, E, T, w)) && (D = l.values[O], Object.keys(I).forEach(function(L) {
2488
- ie(D, L) ? D[L] = I[L] : fe(D, L, I[L]);
2489
- }))), P;
2486
+ var k, I, A, T = _[O], C = { onerror: null, onsuccess: null };
2487
+ return l.type === "delete" ? u.fire.call(C, E, T, w) : l.type === "add" || T === void 0 ? (k = p.fire.call(C, E, l.values[O], w), E == null && k != null && (l.keys[O] = E = k, r.outbound || fe(l.values[O], r.keyPath, E))) : (k = Tn(T, l.values[O]), (I = f.fire.call(C, k, E, T, w)) && (A = l.values[O], Object.keys(I).forEach(function(L) {
2488
+ ie(A, L) ? A[L] = I[L] : fe(A, L, I[L]);
2489
+ }))), C;
2490
2490
  });
2491
2491
  return n.mutate(l).then(function(E) {
2492
- for (var O = E.failures, k = E.results, I = E.numFailures, E = E.lastResult, D = 0; D < m.length; ++D) {
2493
- var T = (k || m)[D], P = S[D];
2494
- T == null ? P.onerror && P.onerror(O[D]) : P.onsuccess && P.onsuccess(l.type === "put" && _[D] ? l.values[D] : T);
2492
+ for (var O = E.failures, k = E.results, I = E.numFailures, E = E.lastResult, A = 0; A < m.length; ++A) {
2493
+ var T = (k || m)[A], C = S[A];
2494
+ T == null ? C.onerror && C.onerror(O[A]) : C.onsuccess && C.onsuccess(l.type === "put" && _[A] ? l.values[A] : T);
2495
2495
  }
2496
2496
  return { failures: O, results: k, numFailures: I, lastResult: E };
2497
2497
  }).catch(function(E) {
@@ -2547,8 +2547,8 @@ var Rr = { exports: {} };
2547
2547
  var bi = { stack: "dbcore", level: 0, name: "Observability", create: function(e) {
2548
2548
  var t = e.schema.name, n = new oe(e.MIN_KEY, e.MAX_KEY);
2549
2549
  return h(h({}, e), { transaction: function(r, o, a) {
2550
- if (K.subscr && o !== "readonly")
2551
- throw new G.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(K.querier));
2550
+ if (B.subscr && o !== "readonly")
2551
+ throw new G.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(B.querier));
2552
2552
  return e.transaction(r, o, a);
2553
2553
  }, table: function(r) {
2554
2554
  function o(y) {
@@ -2556,19 +2556,19 @@ var Rr = { exports: {} };
2556
2556
  return [y, new oe((y = b.lower) !== null && y !== void 0 ? y : e.MIN_KEY, (b = b.upper) !== null && b !== void 0 ? b : e.MAX_KEY)];
2557
2557
  }
2558
2558
  var a = e.table(r), s = a.schema, u = s.primaryKey, p = u.extractKey, f = u.outbound, v = h(h({}, a), { mutate: function(d) {
2559
- function y(P) {
2560
- return P = "idb://".concat(t, "/").concat(r, "/").concat(P), S[P] || (S[P] = new oe());
2559
+ function y(C) {
2560
+ return C = "idb://".concat(t, "/").concat(r, "/").concat(C), S[C] || (S[C] = new oe());
2561
2561
  }
2562
- var b, w, m, _ = d.trans, S = d.mutatedParts || (d.mutatedParts = {}), E = y(""), O = y(":dels"), k = d.type, T = d.type === "deleteRange" ? [d.range] : d.type === "delete" ? [d.keys] : d.values.length < 50 ? [jn(u, d).filter(function(P) {
2563
- return P;
2564
- }), d.values] : [], I = T[0], D = T[1], T = d.trans._cache;
2565
- return N(I) ? (E.addKeys(I), (T = k === "delete" || I.length === D.length ? Sr(I, T) : null) || O.addKeys(I), (T || D) && (b = y, w = T, m = D, s.indexes.forEach(function(P) {
2566
- var L = b(P.name || "");
2562
+ var b, w, m, _ = d.trans, S = d.mutatedParts || (d.mutatedParts = {}), E = y(""), O = y(":dels"), k = d.type, T = d.type === "deleteRange" ? [d.range] : d.type === "delete" ? [d.keys] : d.values.length < 50 ? [jn(u, d).filter(function(C) {
2563
+ return C;
2564
+ }), d.values] : [], I = T[0], A = T[1], T = d.trans._cache;
2565
+ return N(I) ? (E.addKeys(I), (T = k === "delete" || I.length === A.length ? Sr(I, T) : null) || O.addKeys(I), (T || A) && (b = y, w = T, m = A, s.indexes.forEach(function(C) {
2566
+ var L = b(C.name || "");
2567
2567
  function F($) {
2568
- return $ != null ? P.extractKey($) : null;
2568
+ return $ != null ? C.extractKey($) : null;
2569
2569
  }
2570
2570
  function Y($) {
2571
- return P.multiEntry && N($) ? $.forEach(function(Q) {
2571
+ return C.multiEntry && N($) ? $.forEach(function(Q) {
2572
2572
  return L.addKey(Q);
2573
2573
  }) : L.addKey($);
2574
2574
  }
@@ -2576,46 +2576,46 @@ var Rr = { exports: {} };
2576
2576
  var le = w && F(w[U]), U = m && F(m[U]);
2577
2577
  z(le, U) !== 0 && (le != null && Y(le), U != null && Y(U));
2578
2578
  });
2579
- }))) : I ? (D = { from: I.lower, to: I.upper }, O.add(D), E.add(D)) : (E.add(n), O.add(n), s.indexes.forEach(function(P) {
2580
- return y(P.name).add(n);
2581
- })), a.mutate(d).then(function(P) {
2582
- return !I || d.type !== "add" && d.type !== "put" || E.addKeys(P.results), _.mutatedParts = $t(_.mutatedParts || {}, S), P;
2579
+ }))) : I ? (A = { from: I.lower, to: I.upper }, O.add(A), E.add(A)) : (E.add(n), O.add(n), s.indexes.forEach(function(C) {
2580
+ return y(C.name).add(n);
2581
+ })), a.mutate(d).then(function(C) {
2582
+ return !I || d.type !== "add" && d.type !== "put" || E.addKeys(C.results), _.mutatedParts = $t(_.mutatedParts || {}, S), C;
2583
2583
  });
2584
2584
  } }), l = { get: function(d) {
2585
2585
  return [u, new oe(d.key)];
2586
2586
  }, getMany: function(d) {
2587
2587
  return [u, new oe().addKeys(d.keys)];
2588
2588
  }, count: o, query: o, openCursor: o };
2589
- return B(l).forEach(function(d) {
2589
+ return K(l).forEach(function(d) {
2590
2590
  v[d] = function(y) {
2591
- var b = K.subscr, w = !!b, m = Er(K, a) && Or(d, y) ? y.obsSet = {} : b;
2591
+ var b = B.subscr, w = !!b, m = Er(B, a) && Or(d, y) ? y.obsSet = {} : b;
2592
2592
  if (w) {
2593
- var _ = function(D) {
2594
- return D = "idb://".concat(t, "/").concat(r, "/").concat(D), m[D] || (m[D] = new oe());
2593
+ var _ = function(A) {
2594
+ return A = "idb://".concat(t, "/").concat(r, "/").concat(A), m[A] || (m[A] = new oe());
2595
2595
  }, S = _(""), E = _(":dels"), b = l[d](y), w = b[0], b = b[1];
2596
2596
  if ((d === "query" && w.isPrimaryKey && !y.values ? E : _(w.name || "")).add(b), !w.isPrimaryKey) {
2597
2597
  if (d !== "count") {
2598
2598
  var O = d === "query" && f && y.values && a.query(h(h({}, y), { values: !1 }));
2599
- return a[d].apply(this, arguments).then(function(D) {
2599
+ return a[d].apply(this, arguments).then(function(A) {
2600
2600
  if (d === "query") {
2601
2601
  if (f && y.values)
2602
2602
  return O.then(function(F) {
2603
- return F = F.result, S.addKeys(F), D;
2603
+ return F = F.result, S.addKeys(F), A;
2604
2604
  });
2605
- var T = y.values ? D.result.map(p) : D.result;
2605
+ var T = y.values ? A.result.map(p) : A.result;
2606
2606
  (y.values ? S : E).addKeys(T);
2607
2607
  } else if (d === "openCursor") {
2608
- var P = D, L = y.values;
2609
- return P && Object.create(P, { key: { get: function() {
2610
- return E.addKey(P.primaryKey), P.key;
2608
+ var C = A, L = y.values;
2609
+ return C && Object.create(C, { key: { get: function() {
2610
+ return E.addKey(C.primaryKey), C.key;
2611
2611
  } }, primaryKey: { get: function() {
2612
- var F = P.primaryKey;
2612
+ var F = C.primaryKey;
2613
2613
  return E.addKey(F), F;
2614
2614
  } }, value: { get: function() {
2615
- return L && S.addKey(P.primaryKey), P.value;
2615
+ return L && S.addKey(C.primaryKey), C.value;
2616
2616
  } } });
2617
2617
  }
2618
- return D;
2618
+ return A;
2619
2619
  });
2620
2620
  }
2621
2621
  E.add(n);
@@ -2744,7 +2744,7 @@ var Rr = { exports: {} };
2744
2744
  if (u._explicit && p && u.mutatedParts)
2745
2745
  for (var m = 0, _ = Object.values(y.queries.query); m < _.length; m++)
2746
2746
  for (var S = 0, E = (I = _[m]).slice(); S < E.length; S++)
2747
- Dn((D = E[S]).obsSet, u.mutatedParts) && (Me(I, D), D.subscribers.forEach(function(F) {
2747
+ Dn((A = E[S]).obsSet, u.mutatedParts) && (Me(I, A), A.subscribers.forEach(function(F) {
2748
2748
  return f.add(F);
2749
2749
  }));
2750
2750
  else if (0 < w.length) {
@@ -2752,10 +2752,10 @@ var Rr = { exports: {} };
2752
2752
  return F.trans !== u;
2753
2753
  });
2754
2754
  for (var O = 0, k = Object.values(y.queries.query); O < k.length; O++)
2755
- for (var I, D, T, P = 0, L = (I = k[O]).slice(); P < L.length; P++)
2756
- (D = L[P]).res != null && u.mutatedParts && (p && !D.dirty ? (T = Object.isFrozen(D.res), T = kr(D.res, D.req, w, b, D, T), D.dirty ? (Me(I, D), D.subscribers.forEach(function(F) {
2755
+ for (var I, A, T, C = 0, L = (I = k[O]).slice(); C < L.length; C++)
2756
+ (A = L[C]).res != null && u.mutatedParts && (p && !A.dirty ? (T = Object.isFrozen(A.res), T = kr(A.res, A.req, w, b, A, T), A.dirty ? (Me(I, A), A.subscribers.forEach(function(F) {
2757
2757
  return f.add(F);
2758
- })) : T !== D.res && (D.res = T, D.promise = j.resolve({ result: T }))) : (D.dirty && Me(I, D), D.subscribers.forEach(function(F) {
2758
+ })) : T !== A.res && (A.res = T, A.promise = j.resolve({ result: T }))) : (A.dirty && Me(I, A), A.subscribers.forEach(function(F) {
2759
2759
  return f.add(F);
2760
2760
  })));
2761
2761
  }
@@ -2770,7 +2770,7 @@ var Rr = { exports: {} };
2770
2770
  }, table: function(n) {
2771
2771
  var r = e.table(n), o = r.schema.primaryKey;
2772
2772
  return h(h({}, r), { mutate: function(a) {
2773
- var s = K.trans;
2773
+ var s = B.trans;
2774
2774
  if (o.outbound || s.db._options.cache === "disabled" || s.explicit)
2775
2775
  return r.mutate(a);
2776
2776
  var u = Ue["idb://".concat(t, "/").concat(n)];
@@ -2790,9 +2790,9 @@ var Rr = { exports: {} };
2790
2790
  });
2791
2791
  }), s) : r.mutate(a);
2792
2792
  }, query: function(a) {
2793
- if (!Er(K, r) || !Or("query", a))
2793
+ if (!Er(B, r) || !Or("query", a))
2794
2794
  return r.query(a);
2795
- var s = ((f = K.trans) === null || f === void 0 ? void 0 : f.db._options.cache) === "immutable", l = K, u = l.requery, p = l.signal, f = function(b, w, m, _) {
2795
+ var s = ((f = B.trans) === null || f === void 0 ? void 0 : f.db._options.cache) === "immutable", l = B, u = l.requery, p = l.signal, f = function(b, w, m, _) {
2796
2796
  var S = Ue["idb://".concat(b, "/").concat(w)];
2797
2797
  if (!S)
2798
2798
  return [];
@@ -2849,7 +2849,7 @@ var Rr = { exports: {} };
2849
2849
  return n || (n = new this.Version(e), t.push(n), t.sort(li), n.stores({}), this._state.autoSchema = !1, n);
2850
2850
  }, ee.prototype._whenReady = function(e) {
2851
2851
  var t = this;
2852
- return this.idbdb && (this._state.openComplete || K.letThrough || this._vip) ? e() : new j(function(n, r) {
2852
+ return this.idbdb && (this._state.openComplete || B.letThrough || this._vip) ? e() : new j(function(n, r) {
2853
2853
  if (t._state.openComplete)
2854
2854
  return r(new G.DatabaseClosed(t._state.dbOpenError));
2855
2855
  if (!t._state.isBeingOpened) {
@@ -2921,7 +2921,7 @@ var Rr = { exports: {} };
2921
2921
  return this._state.autoSchema;
2922
2922
  }, Object.defineProperty(ee.prototype, "tables", { get: function() {
2923
2923
  var e = this;
2924
- return B(this._allTables).map(function(t) {
2924
+ return K(this._allTables).map(function(t) {
2925
2925
  return e._allTables[t];
2926
2926
  });
2927
2927
  }, enumerable: !1, configurable: !0 }), ee.prototype.transaction = function() {
@@ -2935,7 +2935,7 @@ var Rr = { exports: {} };
2935
2935
  }).apply(this, arguments);
2936
2936
  return this._transaction.apply(this, e);
2937
2937
  }, ee.prototype._transaction = function(e, t, n) {
2938
- var r = this, o = K.trans;
2938
+ var r = this, o = B.trans;
2939
2939
  o && o.db === this && e.indexOf("!") === -1 || (o = null);
2940
2940
  var a, s, u = e.indexOf("?") !== -1;
2941
2941
  e = e.replace("!", "").replace("?", "");
@@ -2972,7 +2972,7 @@ var Rr = { exports: {} };
2972
2972
  }
2973
2973
  var p = (function f(v, l, d, y, b) {
2974
2974
  return j.resolve().then(function() {
2975
- var w = K.transless || K, m = v._createTransaction(l, d, v._dbSchema, y);
2975
+ var w = B.transless || B, m = v._createTransaction(l, d, v._dbSchema, y);
2976
2976
  if (m.explicit = !0, w = { trans: m, transless: w }, y)
2977
2977
  m.idbtrans = y.idbtrans;
2978
2978
  else
@@ -3000,7 +3000,7 @@ var Rr = { exports: {} };
3000
3000
  });
3001
3001
  });
3002
3002
  }).bind(null, this, a, s, o, n);
3003
- return o ? o._promise(a, p, "lock") : K.trans ? Le(K.transless, function() {
3003
+ return o ? o._promise(a, p, "lock") : B.trans ? Le(B.transless, function() {
3004
3004
  return r._whenReady(p);
3005
3005
  }) : this._whenReady(p);
3006
3006
  }, ee.prototype.table = function(e) {
@@ -3186,7 +3186,7 @@ var Rr = { exports: {} };
3186
3186
  Z(this, e);
3187
3187
  };
3188
3188
  }, ignoreTransaction: function(e) {
3189
- return K.trans ? Le(K.transless, e) : e();
3189
+ return B.trans ? Le(B.transless, e) : e();
3190
3190
  }, vip: xn, async: function(e) {
3191
3191
  return function() {
3192
3192
  try {
@@ -3204,9 +3204,9 @@ var Rr = { exports: {} };
3204
3204
  return q(o);
3205
3205
  }
3206
3206
  }, currentTransaction: { get: function() {
3207
- return K.trans || null;
3207
+ return B.trans || null;
3208
3208
  } }, waitFor: function(e, t) {
3209
- return t = j.resolve(typeof e == "function" ? $e.ignoreTransaction(e) : e).timeout(t || 6e4), K.trans ? K.trans.waitFor(t) : t;
3209
+ return t = j.resolve(typeof e == "function" ? $e.ignoreTransaction(e) : e).timeout(t || 6e4), B.trans ? B.trans.waitFor(t) : t;
3210
3210
  }, Promise: j, debug: { get: function() {
3211
3211
  return pe;
3212
3212
  }, set: function(e) {
@@ -3266,10 +3266,10 @@ function nt(g) {
3266
3266
  }
3267
3267
  function vt(g, i) {
3268
3268
  var N;
3269
- let c, h, A, R, B;
3269
+ let c, h, D, R, K;
3270
3270
  switch (g.moderation) {
3271
3271
  case Vt.BEFORE:
3272
- c = /* @__PURE__ */ new Date(), h = (N = g.beforeTime) == null ? void 0 : N.split(":"), A = Number.parseInt(h ? h[0] : "00"), R = Number.parseInt(h ? h[1] : "00"), B = Number.parseInt(h ? h[2] : "00"), i.before = c.setHours(A, R, B, 0) / 1e3, i.period || (i.period = c.getDay() === 1 ? 72 : 24);
3272
+ c = /* @__PURE__ */ new Date(), h = (N = g.beforeTime) == null ? void 0 : N.split(":"), D = Number.parseInt(h ? h[0] : "00"), R = Number.parseInt(h ? h[1] : "00"), K = Number.parseInt(h ? h[2] : "00"), i.before = c.setHours(D, R, K, 0) / 1e3, i.period || (i.period = c.getDay() === 1 ? 72 : 24);
3273
3273
  break;
3274
3274
  case Vt.DELAYED:
3275
3275
  g.delay && g.delay > 0 && (i.delay = `${g.delay}`);
@@ -3284,15 +3284,15 @@ function vt(g, i) {
3284
3284
  }
3285
3285
  class Tr {
3286
3286
  constructor(i) {
3287
- C(this, "db");
3288
- C(this, "subscribers", []);
3289
- C(this, "options");
3287
+ P(this, "db");
3288
+ P(this, "subscribers", []);
3289
+ P(this, "options");
3290
3290
  /**
3291
3291
  * Retrieve Cloud Data
3292
3292
  * @param query IQuery
3293
3293
  * @returns IResponse
3294
3294
  */
3295
- C(this, "getCloud", async (i) => {
3295
+ P(this, "getCloud", async (i) => {
3296
3296
  const c = await this.db.table(M.CLOUD).where({ id: i.widget }).last().catch(() => {
3297
3297
  console.warn(
3298
3298
  "%capi%C %ccloud",
@@ -3310,7 +3310,7 @@ class Tr {
3310
3310
  * @param query IQuery
3311
3311
  * @returns IResponse
3312
3312
  */
3313
- C(this, "getSeries", async (i) => {
3313
+ P(this, "getSeries", async (i) => {
3314
3314
  const c = await this.db.table(M.SERIES).where({ id: i.widget }).last().catch(() => {
3315
3315
  console.warn(
3316
3316
  "%capi%c %cseries",
@@ -3328,10 +3328,10 @@ class Tr {
3328
3328
  * @param query IQuery
3329
3329
  * @returns IResponse
3330
3330
  */
3331
- C(this, "getMessages", async (i) => {
3332
- const c = (R) => R.widget_id === i.widget, h = (R) => R.utc > ((i == null ? void 0 : i.since) || 0), A = (R) => (R == null ? void 0 : R.visible) !== 0;
3331
+ P(this, "getMessages", async (i) => {
3332
+ const c = (R) => R.widget_id === i.widget, h = (R) => R.utc > ((i == null ? void 0 : i.since) || 0), D = (R) => (R == null ? void 0 : R.visible) !== 0;
3333
3333
  try {
3334
- const R = await this.db.table(M.TOPICS).orderBy("utc").reverse().filter(c).filter(h).filter(A).limit((i == null ? void 0 : i.limit) ?? 25).toArray().catch(() => {
3334
+ const R = await this.db.table(M.TOPICS).orderBy("utc").reverse().filter(c).filter(h).filter(D).limit((i == null ? void 0 : i.limit) ?? 25).toArray().catch(() => {
3335
3335
  console.warn(
3336
3336
  "%capi%c %cmessages",
3337
3337
  x.API,
@@ -3343,7 +3343,7 @@ class Tr {
3343
3343
  });
3344
3344
  if (R.length === 0)
3345
3345
  return { data: null, message: "No Messages error", success: !1 };
3346
- const B = R[0] ? R[0].title : "No title", N = R.map(
3346
+ const K = R[0] ? R[0].title : "No title", N = R.map(
3347
3347
  (be) => be.message_id
3348
3348
  ), te = (await this.db.table(M.MESSAGES).where("id").anyOf(N).toArray().then((be) => be.sort((ie, xe) => xe.utc - ie.utc))).map(
3349
3349
  (be) => be.data
@@ -3353,7 +3353,7 @@ class Tr {
3353
3353
  presentation: (i == null ? void 0 : i.presentation) || "not set",
3354
3354
  slide: (i == null ? void 0 : i.slide) || "not set",
3355
3355
  messages: te,
3356
- title: B,
3356
+ title: K,
3357
3357
  topics: [i.dashboard, i.widget].join("-"),
3358
3358
  query: i
3359
3359
  },
@@ -3370,7 +3370,7 @@ class Tr {
3370
3370
  * @param data
3371
3371
  * @returns number
3372
3372
  */
3373
- C(this, "setCloud", async (i, c) => i.type === M.CLOUD && c !== "" ? await this.db.table(M.CLOUD).put({
3373
+ P(this, "setCloud", async (i, c) => i.type === M.CLOUD && c !== "" ? await this.db.table(M.CLOUD).put({
3374
3374
  id: i.widget,
3375
3375
  dashboard_id: i.dashboard,
3376
3376
  data: c.data
@@ -3381,7 +3381,7 @@ class Tr {
3381
3381
  * @param data
3382
3382
  * @returns number
3383
3383
  */
3384
- C(this, "setSeries", async (i, c) => i.type === M.SERIES && c !== "" ? await this.db.table(M.SERIES).put({
3384
+ P(this, "setSeries", async (i, c) => i.type === M.SERIES && c !== "" ? await this.db.table(M.SERIES).put({
3385
3385
  id: i.widget,
3386
3386
  dashboard_id: i.dashboard,
3387
3387
  data: c.data
@@ -3395,45 +3395,50 @@ class Tr {
3395
3395
  * @param data.data.messages IMessages
3396
3396
  * @returns number
3397
3397
  */
3398
- C(this, "setMessages", async (i, c) => {
3398
+ P(this, "setMessages", async (i, c) => {
3399
3399
  if (i.type !== M.MESSAGES)
3400
3400
  return 400;
3401
3401
  const h = c.title;
3402
3402
  try {
3403
- return c.data.messages.forEach(async (A) => {
3404
- var R, B, N;
3405
- await this.db.table(M.MESSAGES).put({ id: A.id, utc: A.utc, data: A }), await this.db.table(M.TOPICS).put({
3403
+ return c.data.messages.forEach(async (D) => {
3404
+ var R, K, N;
3405
+ await this.db.table(M.MESSAGES).put({ id: D.id, utc: D.utc, data: D }), await this.db.table(M.TOPICS).put({
3406
3406
  widget_id: i.widget,
3407
- message_id: A.id,
3407
+ message_id: D.id,
3408
3408
  dashboard_id: i.dashboard,
3409
3409
  title: h,
3410
- engagement: (R = A.dynamics) == null ? void 0 : R.engagement,
3411
- impressions: (B = A.dynamics) == null ? void 0 : B.semrush_visits,
3412
- reach: (N = A.dynamics) == null ? void 0 : N.potential_reach,
3413
- sentiment: A.topics[0].sentiment,
3414
- utc: A.utc
3410
+ engagement: (R = D.dynamics) == null ? void 0 : R.engagement,
3411
+ impressions: (K = D.dynamics) == null ? void 0 : K.semrush_visits,
3412
+ reach: (N = D.dynamics) == null ? void 0 : N.potential_reach,
3413
+ sentiment: D.topics[0].sentiment,
3414
+ utc: D.utc
3415
3415
  });
3416
3416
  }), 201;
3417
- } catch (A) {
3418
- return console.error("%cstorage", x.STORAGE, "set", i, A), 400;
3417
+ } catch (D) {
3418
+ return console.error("%cstorage", x.STORAGE, "set", i, D), 400;
3419
3419
  }
3420
3420
  });
3421
3421
  /**
3422
3422
  * Wipe Message data after number of seconds
3423
3423
  * @param retentionDuration
3424
3424
  */
3425
- C(this, "cleanMessages", async (i) => {
3426
- const c = Date.now() / 1e3, h = (A) => A.utc < i - c;
3427
- await this.db.table("topics").orderBy("utc").filter(h).modify((A, R) => {
3428
- delete R.value;
3425
+ P(this, "cleanMessages", async (i) => {
3426
+ const c = Date.now() / 1e3, h = (R) => R.utc < c - i, D = (R) => R.utc < c - i;
3427
+ await this.db.table(M.TOPICS).orderBy("utc").filter(h).modify((R, K) => {
3428
+ delete K.value;
3429
+ }), await this.db.table(M.MESSAGES).orderBy("utc").filter(D).modify((R, K) => {
3430
+ delete K.value;
3429
3431
  });
3430
3432
  });
3433
+ P(this, "hideMessage", async (i, c) => {
3434
+ await this.db.table(M.TOPICS).where("message_id").equals(i).modify({ visible: c });
3435
+ });
3431
3436
  /**
3432
3437
  * Update Cloud
3433
3438
  * @param query IQuery
3434
3439
  * @returns number
3435
3440
  */
3436
- C(this, "setWidget", async (i) => await this.db.table(M.WIDGETS).put({
3441
+ P(this, "setWidget", async (i) => await this.db.table(M.WIDGETS).put({
3437
3442
  id: i.widget,
3438
3443
  dashboard_id: i.dashboard,
3439
3444
  type: i.type
@@ -3443,7 +3448,7 @@ class Tr {
3443
3448
  * @param query IQuery
3444
3449
  * @returns null
3445
3450
  */
3446
- C(this, "subscribe", (i) => (i = nt(i), this.subscribers.filter(
3451
+ P(this, "subscribe", (i) => (i = nt(i), this.subscribers.filter(
3447
3452
  (h) => h.widget === i.widget
3448
3453
  ).length > 0 || (i.type === M.MESSAGES && (i = vt(this.options, i)), console.debug(
3449
3454
  "%cstorage%c %csubscribe",
@@ -3457,7 +3462,7 @@ class Tr {
3457
3462
  * Get current subscribers
3458
3463
  * @returns IQuery[]
3459
3464
  */
3460
- C(this, "getSubscribers", async () => await new Promise((i) => i(this.subscribers)));
3465
+ P(this, "getSubscribers", async () => await new Promise((i) => i(this.subscribers)));
3461
3466
  this.options = i, this.db = new $n(i.app), this.db.version(2).stores({
3462
3467
  player: "id,title,name,location",
3463
3468
  monitor: "id,player_id,cols,rows,order,width,height,physicalwidth,physicalheight,devicePixelRatio,screenLeft,screenTop,orientation,monitor",
@@ -3481,7 +3486,7 @@ function Pi(g, i) {
3481
3486
  const c = indexedDB.open(g);
3482
3487
  c.onupgradeneeded = () => c.result.createObjectStore(i);
3483
3488
  const h = Wn(c);
3484
- return (A, R) => h.then((B) => R(B.transaction(i, A).objectStore(i)));
3489
+ return (D, R) => h.then((K) => R(K.transaction(i, D).objectStore(i)));
3485
3490
  }
3486
3491
  let Ln;
3487
3492
  function jr() {
@@ -3495,17 +3500,17 @@ function Xt(g, i, c = jr()) {
3495
3500
  }
3496
3501
  class Mr {
3497
3502
  constructor(i) {
3498
- C(this, "subscribers", []);
3499
- C(this, "options");
3500
- C(this, "getCloud", async (i) => {
3503
+ P(this, "subscribers", []);
3504
+ P(this, "options");
3505
+ P(this, "getCloud", async (i) => {
3501
3506
  const c = V(i);
3502
3507
  return await Gn(c).then((h) => h).catch(() => (console.warn("%capi", x.API, M.CLOUD, i.slide, i.widget), { data: null, message: "Cloud Data error", success: !1 }));
3503
3508
  });
3504
- C(this, "getSeries", async (i) => {
3509
+ P(this, "getSeries", async (i) => {
3505
3510
  const c = V(i);
3506
3511
  return await Gn(c).then((h) => h).catch(() => (console.warn("%capi", x.API, M.SERIES, i.slide, i.widget), { data: null, message: "Series Data error", success: !1 }));
3507
3512
  });
3508
- C(this, "getMessages", async (i) => {
3513
+ P(this, "getMessages", async (i) => {
3509
3514
  const c = V(i);
3510
3515
  return await Gn(c).then((h) => h).catch(() => (console.warn("%capi", x.API, M.MESSAGES, i.slide, i.widget), { data: null, message: "Messages Data error", success: !1 }));
3511
3516
  });
@@ -3515,11 +3520,11 @@ class Mr {
3515
3520
  * @param data
3516
3521
  * @returns number
3517
3522
  */
3518
- C(this, "setCloud", async (i, c) => {
3523
+ P(this, "setCloud", async (i, c) => {
3519
3524
  if (!c.success)
3520
3525
  return 400;
3521
3526
  const h = V(i);
3522
- return delete c.success, delete c.message, await Xt(h, c).then(() => 201).catch((A) => (console.error("%cstorage", x.STORAGE, M.CLOUD, i, A), 400));
3527
+ return delete c.success, delete c.message, await Xt(h, c).then(() => 201).catch((D) => (console.error("%cstorage", x.STORAGE, M.CLOUD, i, D), 400));
3523
3528
  });
3524
3529
  /**
3525
3530
  * Update Series
@@ -3527,11 +3532,11 @@ class Mr {
3527
3532
  * @param data
3528
3533
  * @returns bumber
3529
3534
  */
3530
- C(this, "setSeries", async (i, c) => {
3535
+ P(this, "setSeries", async (i, c) => {
3531
3536
  if (!c.success)
3532
3537
  return 400;
3533
3538
  const h = V(i);
3534
- return delete c.success, delete c.message, await Xt(h, c).then(() => 201).catch((A) => (console.error("%cstorage", x.STORAGE, M.SERIES, i, A), 400));
3539
+ return delete c.success, delete c.message, await Xt(h, c).then(() => 201).catch((D) => (console.error("%cstorage", x.STORAGE, M.SERIES, i, D), 400));
3535
3540
  });
3536
3541
  /**
3537
3542
  * Update Messages
@@ -3539,32 +3544,32 @@ class Mr {
3539
3544
  * @param data
3540
3545
  * @returns number
3541
3546
  */
3542
- C(this, "setMessages", async (i, c) => {
3547
+ P(this, "setMessages", async (i, c) => {
3543
3548
  if (!c.success)
3544
3549
  return 400;
3545
3550
  const h = V(i);
3546
- return delete c.success, delete c.message, await Xt(h, c).then(() => 201).catch((A) => (console.error("%cstorage", x.STORAGE, M.MESSAGES, i, A), 400));
3551
+ return delete c.success, delete c.message, await Xt(h, c).then(() => 201).catch((D) => (console.error("%cstorage", x.STORAGE, M.MESSAGES, i, D), 400));
3547
3552
  });
3548
- C(this, "cleanMessages", async (i) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((c) => c())));
3553
+ P(this, "cleanMessages", async (i) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((c) => c())));
3549
3554
  /**
3550
3555
  * Update Cloud
3551
3556
  * @param query IQuery
3552
3557
  * @returns number
3553
3558
  */
3554
- C(this, "setWidget", async (i) => {
3559
+ P(this, "setWidget", async (i) => {
3555
3560
  const c = V(i), h = {
3556
3561
  id: i.widget,
3557
3562
  dashboard_id: i.dashboard,
3558
3563
  type: i.type
3559
3564
  };
3560
- return await Xt(c, h).then(() => 201).catch((A) => (console.error("%cstorage", x.STORAGE, M.WIDGET, i, A), 400));
3565
+ return await Xt(c, h).then(() => 201).catch((D) => (console.error("%cstorage", x.STORAGE, M.WIDGET, i, D), 400));
3561
3566
  });
3562
3567
  /**
3563
3568
  * Add component subscriber
3564
3569
  * @param query IQuery
3565
3570
  * @returns null
3566
3571
  */
3567
- C(this, "subscribe", (i) => (i = nt(i), i.type === M.MESSAGES && (i = vt(this.options, i)), this.subscribers.filter(
3572
+ P(this, "subscribe", (i) => (i = nt(i), i.type === M.MESSAGES && (i = vt(this.options, i)), this.subscribers.filter(
3568
3573
  (h) => h.widget === i.widget
3569
3574
  ).length > 0 || (console.debug(
3570
3575
  "%cstorage%c %csubscribe",
@@ -3578,15 +3583,15 @@ class Mr {
3578
3583
  * Get current subscribers
3579
3584
  * @returns IQuery[]
3580
3585
  */
3581
- C(this, "getSubscribers", async () => await new Promise((i) => i(this.subscribers)));
3586
+ P(this, "getSubscribers", async () => await new Promise((i) => i(this.subscribers)));
3582
3587
  this.options = i;
3583
3588
  }
3584
3589
  }
3585
3590
  class Kr {
3586
3591
  constructor(i) {
3587
- C(this, "subscribers", []);
3588
- C(this, "options");
3589
- C(this, "getCloud", async (i) => {
3592
+ P(this, "subscribers", []);
3593
+ P(this, "options");
3594
+ P(this, "getCloud", async (i) => {
3590
3595
  const c = V(i);
3591
3596
  try {
3592
3597
  return localStorage.getObject(c);
@@ -3594,7 +3599,7 @@ class Kr {
3594
3599
  return console.warn("%capi", x.API, M.CLOUD, i.slide, i.widget), { data: null, message: "Messages Data error", success: !1 };
3595
3600
  }
3596
3601
  });
3597
- C(this, "getSeries", async (i) => {
3602
+ P(this, "getSeries", async (i) => {
3598
3603
  const c = V(i);
3599
3604
  try {
3600
3605
  return localStorage.getObject(c);
@@ -3602,7 +3607,7 @@ class Kr {
3602
3607
  return console.warn("%capi", x.API, M.SERIES, i.slide, i.widget), { data: null, message: "Messages Data error", success: !1 };
3603
3608
  }
3604
3609
  });
3605
- C(this, "getMessages", async (i) => {
3610
+ P(this, "getMessages", async (i) => {
3606
3611
  const c = V(i);
3607
3612
  try {
3608
3613
  return localStorage.getObject(c);
@@ -3616,12 +3621,12 @@ class Kr {
3616
3621
  * @param data
3617
3622
  * @returns number
3618
3623
  */
3619
- C(this, "setCloud", async (i, c) => {
3624
+ P(this, "setCloud", async (i, c) => {
3620
3625
  const h = V(i);
3621
3626
  try {
3622
3627
  return localStorage.setObject(h, c), 201;
3623
- } catch (A) {
3624
- return console.error("%cstorage", x.STORAGE, M.CLOUD, i, A), 400;
3628
+ } catch (D) {
3629
+ return console.error("%cstorage", x.STORAGE, M.CLOUD, i, D), 400;
3625
3630
  }
3626
3631
  });
3627
3632
  /**
@@ -3630,12 +3635,12 @@ class Kr {
3630
3635
  * @param data
3631
3636
  * @returns number
3632
3637
  */
3633
- C(this, "setSeries", async (i, c) => {
3638
+ P(this, "setSeries", async (i, c) => {
3634
3639
  const h = V(i);
3635
3640
  try {
3636
3641
  return localStorage.setObject(h, c), 201;
3637
- } catch (A) {
3638
- return console.error("%cstorage", x.STORAGE, M.SERIES, i, A), 400;
3642
+ } catch (D) {
3643
+ return console.error("%cstorage", x.STORAGE, M.SERIES, i, D), 400;
3639
3644
  }
3640
3645
  });
3641
3646
  /**
@@ -3644,18 +3649,18 @@ class Kr {
3644
3649
  * @param data
3645
3650
  * @returns number
3646
3651
  */
3647
- C(this, "setMessages", async (i, c) => {
3652
+ P(this, "setMessages", async (i, c) => {
3648
3653
  const h = V(i);
3649
3654
  try {
3650
3655
  return localStorage.setObject(h, c), 200;
3651
- } catch (A) {
3652
- return console.error("%cstorage", x.STORAGE, M.MESSAGES, i, A), 400;
3656
+ } catch (D) {
3657
+ return console.error("%cstorage", x.STORAGE, M.MESSAGES, i, D), 400;
3653
3658
  }
3654
3659
  });
3655
- C(this, "cleanMessages", async (i) => {
3660
+ P(this, "cleanMessages", async (i) => {
3656
3661
  console.log("cleanMessages not implemented for ", this.options.storage);
3657
3662
  });
3658
- C(this, "setWidget", async (i) => {
3663
+ P(this, "setWidget", async (i) => {
3659
3664
  const c = `widget.${i.widget}`;
3660
3665
  try {
3661
3666
  return localStorage.setObject(c, i), 201;
@@ -3668,7 +3673,7 @@ class Kr {
3668
3673
  * @param query IQuery
3669
3674
  * @returns null
3670
3675
  */
3671
- C(this, "subscribe", (i) => (i = nt(i), i.type === M.MESSAGES && (i = vt(this.options, i)), this.subscribers.filter(
3676
+ P(this, "subscribe", (i) => (i = nt(i), i.type === M.MESSAGES && (i = vt(this.options, i)), this.subscribers.filter(
3672
3677
  (h) => h.widget === i.widget
3673
3678
  ).length || (console.debug(
3674
3679
  "%cstorage%c %csubscribe",
@@ -3682,7 +3687,7 @@ class Kr {
3682
3687
  * Get current subscribers
3683
3688
  * @returns IQuery[]
3684
3689
  */
3685
- C(this, "getSubscribers", async () => await new Promise((i) => i(this.subscribers)));
3690
+ P(this, "getSubscribers", async () => await new Promise((i) => i(this.subscribers)));
3686
3691
  this.options = i, Storage.prototype.setObject = function(c, h) {
3687
3692
  this.setObject(c, JSON.stringify(h));
3688
3693
  }, Storage.prototype.getObject = function(c) {
@@ -3693,9 +3698,9 @@ class Kr {
3693
3698
  }
3694
3699
  class Br {
3695
3700
  constructor(i) {
3696
- C(this, "subscribers", []);
3697
- C(this, "options");
3698
- C(this, "getCloud", async (i) => {
3701
+ P(this, "subscribers", []);
3702
+ P(this, "options");
3703
+ P(this, "getCloud", async (i) => {
3699
3704
  const c = V(i);
3700
3705
  try {
3701
3706
  return sessionStorage.getObject(c);
@@ -3703,7 +3708,7 @@ class Br {
3703
3708
  return console.warn("%capi", x.API, M.CLOUD, i.slide, i.widget), { data: null, message: "Messages Data error", success: !1 };
3704
3709
  }
3705
3710
  });
3706
- C(this, "getSeries", async (i) => {
3711
+ P(this, "getSeries", async (i) => {
3707
3712
  const c = V(i);
3708
3713
  try {
3709
3714
  return sessionStorage.getObject(c);
@@ -3711,7 +3716,7 @@ class Br {
3711
3716
  return console.warn("%capi", x.API, M.SERIES, i.slide, i.widget), { data: null, message: "Messages Data error", success: !1 };
3712
3717
  }
3713
3718
  });
3714
- C(this, "getMessages", async (i) => {
3719
+ P(this, "getMessages", async (i) => {
3715
3720
  const c = V(i);
3716
3721
  try {
3717
3722
  return sessionStorage.getObject(c);
@@ -3725,12 +3730,12 @@ class Br {
3725
3730
  * @param data
3726
3731
  * @returns number
3727
3732
  */
3728
- C(this, "setCloud", async (i, c) => {
3733
+ P(this, "setCloud", async (i, c) => {
3729
3734
  const h = V(i);
3730
3735
  try {
3731
3736
  return sessionStorage.setObject(h, c), 201;
3732
- } catch (A) {
3733
- return console.error("%cstorage", x.STORAGE, M.CLOUD, i, A), 400;
3737
+ } catch (D) {
3738
+ return console.error("%cstorage", x.STORAGE, M.CLOUD, i, D), 400;
3734
3739
  }
3735
3740
  });
3736
3741
  /**
@@ -3739,12 +3744,12 @@ class Br {
3739
3744
  * @param data
3740
3745
  * @returns number
3741
3746
  */
3742
- C(this, "setSeries", async (i, c) => {
3747
+ P(this, "setSeries", async (i, c) => {
3743
3748
  const h = V(i);
3744
3749
  try {
3745
3750
  return sessionStorage.setObject(h, c), 201;
3746
- } catch (A) {
3747
- return console.error("%cstorage", x.STORAGE, M.SERIES, i, A), 400;
3751
+ } catch (D) {
3752
+ return console.error("%cstorage", x.STORAGE, M.SERIES, i, D), 400;
3748
3753
  }
3749
3754
  });
3750
3755
  /**
@@ -3753,18 +3758,18 @@ class Br {
3753
3758
  * @param data
3754
3759
  * @returns number
3755
3760
  */
3756
- C(this, "setMessages", async (i, c) => {
3761
+ P(this, "setMessages", async (i, c) => {
3757
3762
  const h = V(i);
3758
3763
  try {
3759
3764
  return sessionStorage.setObject(h, c), 200;
3760
- } catch (A) {
3761
- return console.error("%cstorage", x.STORAGE, M.MESSAGES, i, A), 400;
3765
+ } catch (D) {
3766
+ return console.error("%cstorage", x.STORAGE, M.MESSAGES, i, D), 400;
3762
3767
  }
3763
3768
  });
3764
- C(this, "cleanMessages", async (i) => {
3769
+ P(this, "cleanMessages", async (i) => {
3765
3770
  console.log("cleanMessages not implemented for ", this.options.storage);
3766
3771
  });
3767
- C(this, "setWidget", async (i) => {
3772
+ P(this, "setWidget", async (i) => {
3768
3773
  const c = `widget.${i.widget}`;
3769
3774
  try {
3770
3775
  return sessionStorage.setObject(c, i), 201;
@@ -3777,7 +3782,7 @@ class Br {
3777
3782
  * @param query IQuery
3778
3783
  * @returns null
3779
3784
  */
3780
- C(this, "subscribe", (i) => (i = nt(i), i.type === M.MESSAGES && (i = vt(this.options, i)), this.subscribers.filter(
3785
+ P(this, "subscribe", (i) => (i = nt(i), i.type === M.MESSAGES && (i = vt(this.options, i)), this.subscribers.filter(
3781
3786
  (h) => h.widget === i.widget
3782
3787
  ).length || (console.debug(
3783
3788
  "%cstorage%c %csubscribe",
@@ -3791,7 +3796,7 @@ class Br {
3791
3796
  * Get current subscribers
3792
3797
  * @returns IQuery[]
3793
3798
  */
3794
- C(this, "getSubscribers", async () => await new Promise((i) => i(this.subscribers)));
3799
+ P(this, "getSubscribers", async () => await new Promise((i) => i(this.subscribers)));
3795
3800
  this.options = i, Storage.prototype.setObject = function(c, h) {
3796
3801
  this.setItem(c, JSON.stringify(h));
3797
3802
  }, Storage.prototype.getObject = function(c) {
@@ -3802,9 +3807,9 @@ class Br {
3802
3807
  }
3803
3808
  class Nr {
3804
3809
  constructor(i) {
3805
- C(this, "subscribers", []);
3806
- C(this, "options");
3807
- C(this, "getCloud", async (i) => {
3810
+ P(this, "subscribers", []);
3811
+ P(this, "options");
3812
+ P(this, "getCloud", async (i) => {
3808
3813
  const c = V(i);
3809
3814
  try {
3810
3815
  return window.BuzzCasting.WidgetData[c];
@@ -3812,7 +3817,7 @@ class Nr {
3812
3817
  return console.warn("%capi", x.API, M.CLOUD, i.slide, i.widget), { data: null, message: "Cloud Data error", success: !1 };
3813
3818
  }
3814
3819
  });
3815
- C(this, "getSeries", async (i) => {
3820
+ P(this, "getSeries", async (i) => {
3816
3821
  const c = V(i);
3817
3822
  try {
3818
3823
  return window.BuzzCasting.WidgetData[c];
@@ -3820,7 +3825,7 @@ class Nr {
3820
3825
  return console.warn("%capi", x.API, M.SERIES, i.slide, i.widget), { data: null, message: "Series Data error", success: !1 };
3821
3826
  }
3822
3827
  });
3823
- C(this, "getMessages", async (i) => {
3828
+ P(this, "getMessages", async (i) => {
3824
3829
  const c = V(i);
3825
3830
  try {
3826
3831
  return window.BuzzCasting.WidgetData[c];
@@ -3834,12 +3839,12 @@ class Nr {
3834
3839
  * @param data
3835
3840
  * @returns number
3836
3841
  */
3837
- C(this, "setCloud", async (i, c) => {
3842
+ P(this, "setCloud", async (i, c) => {
3838
3843
  const h = V(i);
3839
3844
  try {
3840
3845
  return window.BuzzCasting.WidgetData[h] = c, 201;
3841
- } catch (A) {
3842
- return console.error("%cstorage", x.STORAGE, "set", i, A), 400;
3846
+ } catch (D) {
3847
+ return console.error("%cstorage", x.STORAGE, "set", i, D), 400;
3843
3848
  }
3844
3849
  });
3845
3850
  /**
@@ -3848,12 +3853,12 @@ class Nr {
3848
3853
  * @param data
3849
3854
  * @returns number
3850
3855
  */
3851
- C(this, "setSeries", async (i, c) => {
3856
+ P(this, "setSeries", async (i, c) => {
3852
3857
  const h = V(i);
3853
3858
  try {
3854
3859
  return window.BuzzCasting.WidgetData[h] = c, 201;
3855
- } catch (A) {
3856
- return console.error("%cstorage", x.STORAGE, "set", i, A), 400;
3860
+ } catch (D) {
3861
+ return console.error("%cstorage", x.STORAGE, "set", i, D), 400;
3857
3862
  }
3858
3863
  });
3859
3864
  /**
@@ -3862,18 +3867,18 @@ class Nr {
3862
3867
  * @param data
3863
3868
  * @returns number
3864
3869
  */
3865
- C(this, "setMessages", async (i, c) => {
3870
+ P(this, "setMessages", async (i, c) => {
3866
3871
  const h = V(i);
3867
3872
  try {
3868
3873
  return window.BuzzCasting.WidgetData[h] = c, 201;
3869
- } catch (A) {
3870
- return console.error("%cstorage", x.STORAGE, "set", i, A), 400;
3874
+ } catch (D) {
3875
+ return console.error("%cstorage", x.STORAGE, "set", i, D), 400;
3871
3876
  }
3872
3877
  });
3873
- C(this, "cleanMessages", async (i) => {
3878
+ P(this, "cleanMessages", async (i) => {
3874
3879
  console.log("cleanMessages not implemented for ", this.options.storage);
3875
3880
  });
3876
- C(this, "setWidget", async (i) => {
3881
+ P(this, "setWidget", async (i) => {
3877
3882
  const c = `widget.${i.widget}`;
3878
3883
  try {
3879
3884
  return window.BuzzCasting.WidgetData[c] = i, 201;
@@ -3886,7 +3891,7 @@ class Nr {
3886
3891
  * @param query IQuery
3887
3892
  * @returns null
3888
3893
  */
3889
- C(this, "subscribe", (i) => (i = nt(i), i.type === M.MESSAGES && (i = vt(this.options, i)), this.subscribers.filter(
3894
+ P(this, "subscribe", (i) => (i = nt(i), i.type === M.MESSAGES && (i = vt(this.options, i)), this.subscribers.filter(
3890
3895
  (h) => h.widget === i.widget
3891
3896
  ).length || (console.debug(
3892
3897
  "%cstorage%c %csubscribe",
@@ -3900,7 +3905,7 @@ class Nr {
3900
3905
  * Get current subscribers
3901
3906
  * @returns IQuery[]
3902
3907
  */
3903
- C(this, "getSubscribers", async () => await new Promise((i) => i(this.subscribers)));
3908
+ P(this, "getSubscribers", async () => await new Promise((i) => i(this.subscribers)));
3904
3909
  this.options = i, window.BuzzCasting.WidgetData = /* @__PURE__ */ new Set();
3905
3910
  }
3906
3911
  }
@@ -3974,39 +3979,39 @@ function Ii(g, i) {
3974
3979
  return g;
3975
3980
  }
3976
3981
  function Oe(g, i) {
3977
- let c, h, A;
3982
+ let c, h, D;
3978
3983
  if (i.length === 0)
3979
3984
  return g;
3980
- for (c = 0, A = i.length; c < A; c++)
3985
+ for (c = 0, D = i.length; c < D; c++)
3981
3986
  h = i.charCodeAt(c), g = (g << 5) - g + h, g |= 0;
3982
3987
  return g < 0 ? g * -2 : g;
3983
3988
  }
3984
3989
  function Ri(g, i, c) {
3985
3990
  return Object.keys(i).sort().reduce(h, g);
3986
- function h(A, R) {
3987
- return Lr(A, i[R], R, c);
3991
+ function h(D, R) {
3992
+ return Lr(D, i[R], R, c);
3988
3993
  }
3989
3994
  }
3990
3995
  function Lr(g, i, c, h) {
3991
- const A = Oe(Oe(Oe(g, c), Ti(i)), typeof i);
3996
+ const D = Oe(Oe(Oe(g, c), Ti(i)), typeof i);
3992
3997
  if (i === null)
3993
- return Oe(A, "null");
3998
+ return Oe(D, "null");
3994
3999
  if (i === void 0)
3995
- return Oe(A, "undefined");
4000
+ return Oe(D, "undefined");
3996
4001
  if (typeof i == "object" || typeof i == "function") {
3997
4002
  if (h.includes(i))
3998
- return Oe(A, `[Circular]${c}`);
4003
+ return Oe(D, `[Circular]${c}`);
3999
4004
  h.push(i);
4000
- const R = Ri(A, i, h);
4005
+ const R = Ri(D, i, h);
4001
4006
  if (!("valueOf" in i) || typeof i.valueOf != "function")
4002
4007
  return R;
4003
4008
  try {
4004
4009
  return Oe(R, String(i.valueOf()));
4005
- } catch (B) {
4006
- return Oe(R, `[valueOf exception]${B.stack || B.message}`);
4010
+ } catch (K) {
4011
+ return Oe(R, `[valueOf exception]${K.stack || K.message}`);
4007
4012
  }
4008
4013
  }
4009
- return Oe(A, i.toString());
4014
+ return Oe(D, i.toString());
4010
4015
  }
4011
4016
  function Ti(g) {
4012
4017
  return Object.prototype.toString.call(g);
@@ -4046,10 +4051,10 @@ function Wi(g, i) {
4046
4051
  { value: 1e15, symbol: "P" },
4047
4052
  { value: 1e18, symbol: "E" }
4048
4053
  ], h = /\.0+$|(\.[0-9]*[1-9])0+$/;
4049
- let A;
4050
- for (A = c.length - 1; A > 0 && !(g >= c[A].value); A--)
4054
+ let D;
4055
+ for (D = c.length - 1; D > 0 && !(g >= c[D].value); D--)
4051
4056
  ;
4052
- return (g / c[A].value).toFixed(i).replace(h, "$1") + c[A].symbol;
4057
+ return (g / c[D].value).toFixed(i).replace(h, "$1") + c[D].symbol;
4053
4058
  }
4054
4059
  function zi(g, i) {
4055
4060
  if (g = g.toString().replace(/[^0-9.]/g, ""), g < 1e3)
@@ -4069,22 +4074,22 @@ function zi(g, i) {
4069
4074
  }
4070
4075
  class Yi {
4071
4076
  constructor(i) {
4072
- C(this, "sm");
4073
- C(this, "api");
4074
- C(this, "bc");
4075
- C(this, "options");
4076
- C(this, "update", async (i) => {
4077
+ P(this, "sm");
4078
+ P(this, "api");
4079
+ P(this, "bc");
4080
+ P(this, "options");
4081
+ P(this, "update", async (i) => {
4077
4082
  if (this.sm === null)
4078
4083
  return;
4079
4084
  const c = await this.sm.getSubscribers();
4080
4085
  if (c.length === 0)
4081
4086
  return;
4082
4087
  const h = [];
4083
- i ? h.push(this.api.get(i)) : c == null || c.forEach((A) => {
4084
- h.push(this.api.get(A));
4088
+ i ? h.push(this.api.get(i)) : c == null || c.forEach((D) => {
4089
+ h.push(this.api.get(D));
4085
4090
  }), await Promise.allSettled(h).then(
4086
- (A) => A.forEach(async (R) => {
4087
- let B = 400;
4091
+ (D) => D.forEach(async (R) => {
4092
+ let K = 400;
4088
4093
  if (R.status === "fulfilled") {
4089
4094
  const N = R.value;
4090
4095
  if (this.sm === null)
@@ -4106,7 +4111,7 @@ class Yi {
4106
4111
  N.query.slide,
4107
4112
  N.query.widget
4108
4113
  ), 204;
4109
- Z.hash = te, B = await this.sm.setMessages(N.query, N);
4114
+ Z.hash = te, K = await this.sm.setMessages(N.query, N);
4110
4115
  break;
4111
4116
  case M.CLOUD:
4112
4117
  te = Fn(N.data), Z.hash === te ? (console.debug(
@@ -4117,7 +4122,7 @@ class Yi {
4117
4122
  M.CLOUD,
4118
4123
  N.query.slide,
4119
4124
  N.query.widget
4120
- ), B = 204) : (Z.hash = te, B = await this.sm.setCloud(N.query, N));
4125
+ ), K = 204) : (Z.hash = te, K = await this.sm.setCloud(N.query, N));
4121
4126
  break;
4122
4127
  case M.SERIES:
4123
4128
  te = Fn(N.data), Z.hash === te ? (console.debug(
@@ -4128,7 +4133,7 @@ class Yi {
4128
4133
  M.SERIES,
4129
4134
  N.query.slide,
4130
4135
  N.query.widget
4131
- ), B = 204) : (Z.hash = te, B = await this.sm.setSeries(N.query, N));
4136
+ ), K = 204) : (Z.hash = te, K = await this.sm.setSeries(N.query, N));
4132
4137
  break;
4133
4138
  default:
4134
4139
  console.warn(
@@ -4141,8 +4146,8 @@ class Yi {
4141
4146
  );
4142
4147
  }
4143
4148
  } else
4144
- B = 401;
4145
- switch (B) {
4149
+ K = 401;
4150
+ switch (K) {
4146
4151
  case 201:
4147
4152
  console.info(
4148
4153
  "%capp%c %cbroadcast",
@@ -4164,7 +4169,7 @@ class Yi {
4164
4169
  );
4165
4170
  break;
4166
4171
  }
4167
- return B;
4172
+ return K;
4168
4173
  } else
4169
4174
  return console.warn(
4170
4175
  "%capi%c %cstorage",
@@ -4176,10 +4181,10 @@ class Yi {
4176
4181
  })
4177
4182
  );
4178
4183
  });
4179
- C(this, "hide", (i) => {
4184
+ P(this, "hide", (i) => {
4180
4185
  this.api.hideMessage(i);
4181
4186
  });
4182
- C(this, "actions", async (i) => {
4187
+ P(this, "actions", async (i) => {
4183
4188
  var c;
4184
4189
  switch (i.data.event) {
4185
4190
  case se.SUBSCRIBE:
@@ -4197,14 +4202,14 @@ class Yi {
4197
4202
  break;
4198
4203
  }
4199
4204
  });
4200
- C(this, "cleanMessages", async () => {
4205
+ P(this, "cleanMessages", async () => {
4201
4206
  var c, h;
4202
4207
  const i = ((c = this.options) == null ? void 0 : c.retention) || 345600;
4203
4208
  return await ((h = this.sm) == null ? void 0 : h.cleanMessages(i));
4204
4209
  });
4205
- C(this, "hideMessage", async (i) => await this.api.hideMessage(i));
4206
- C(this, "hideLabels", async (i) => await this.api.hideLabels(i));
4207
- C(this, "getSubscribers", async () => {
4210
+ P(this, "hideMessage", async (i) => await this.api.hideMessage(i));
4211
+ P(this, "hideLabels", async (i) => await this.api.hideLabels(i));
4212
+ P(this, "getSubscribers", async () => {
4208
4213
  var i;
4209
4214
  return await ((i = this.sm) == null ? void 0 : i.getSubscribers());
4210
4215
  });
@@ -4248,13 +4253,13 @@ class Yi {
4248
4253
  }
4249
4254
  class Mi {
4250
4255
  constructor(i) {
4251
- C(this, "sm");
4256
+ P(this, "sm");
4252
4257
  /**
4253
4258
  * Retieve Cloud Data
4254
4259
  * @param query Widgets parameters, type "cloud"
4255
4260
  * @returns IResponse
4256
4261
  */
4257
- C(this, "getCloud", async (i) => {
4262
+ P(this, "getCloud", async (i) => {
4258
4263
  var c;
4259
4264
  return i.type !== M.CLOUD ? (console.warn(
4260
4265
  "%capp%c %get",
@@ -4275,7 +4280,7 @@ class Mi {
4275
4280
  * @param query Widgets parameters, type "messages"
4276
4281
  * @returns IResponse
4277
4282
  */
4278
- C(this, "getMessages", async (i) => {
4283
+ P(this, "getMessages", async (i) => {
4279
4284
  var c;
4280
4285
  return i.type !== M.MESSAGES ? (console.warn(
4281
4286
  "%capp%c %get",
@@ -4296,7 +4301,7 @@ class Mi {
4296
4301
  * @param query Widgets parameters, type "series"
4297
4302
  * @returns IResponse
4298
4303
  */
4299
- C(this, "getSeries", async (i) => {
4304
+ P(this, "getSeries", async (i) => {
4300
4305
  var c;
4301
4306
  return i.type !== M.SERIES ? (console.warn(
4302
4307
  "%capp%c %get",
@@ -4340,17 +4345,17 @@ class Hi {
4340
4345
  * @param selector container for the element - by default buzzcasting-slide (optional)
4341
4346
  */
4342
4347
  constructor(i, c, h) {
4343
- C(this, "storageReader");
4344
- C(this, "broadcastChannel");
4345
- C(this, "element");
4346
- C(this, "query");
4347
- C(this, "listeners");
4348
+ P(this, "storageReader");
4349
+ P(this, "broadcastChannel");
4350
+ P(this, "element");
4351
+ P(this, "query");
4352
+ P(this, "listeners");
4348
4353
  /**
4349
4354
  * Generic call to any query type
4350
4355
  *
4351
4356
  * @returns IResponse
4352
4357
  */
4353
- C(this, "getData", async () => {
4358
+ P(this, "getData", async () => {
4354
4359
  switch (this.query.type) {
4355
4360
  case M.CLOUD:
4356
4361
  return await this.getCloud();
@@ -4370,7 +4375,7 @@ class Hi {
4370
4375
  *
4371
4376
  * @returns IResponse
4372
4377
  */
4373
- C(this, "getCloud", async () => this.query.type !== M.CLOUD ? (console.warn(
4378
+ P(this, "getCloud", async () => this.query.type !== M.CLOUD ? (console.warn(
4374
4379
  "%cstorage%c %cwidget",
4375
4380
  x.STORAGE,
4376
4381
  x.NONE,
@@ -4388,7 +4393,7 @@ class Hi {
4388
4393
  *
4389
4394
  * @returns IResponse
4390
4395
  */
4391
- C(this, "getMessages", async () => this.query.type !== M.MESSAGES ? (console.warn(
4396
+ P(this, "getMessages", async () => this.query.type !== M.MESSAGES ? (console.warn(
4392
4397
  "%cstorage%c %cwidget",
4393
4398
  x.STORAGE,
4394
4399
  x.NONE,
@@ -4406,7 +4411,7 @@ class Hi {
4406
4411
  *
4407
4412
  * @returns IResponse
4408
4413
  */
4409
- C(this, "getSeries", async () => this.query.type !== M.SERIES ? (console.warn(
4414
+ P(this, "getSeries", async () => this.query.type !== M.SERIES ? (console.warn(
4410
4415
  "%cstorage%c %cwidget",
4411
4416
  x.STORAGE,
4412
4417
  x.NONE,
@@ -4425,7 +4430,7 @@ class Hi {
4425
4430
  *
4426
4431
  * @param modal IModal
4427
4432
  */
4428
- C(this, "showModal", (i) => {
4433
+ P(this, "showModal", (i) => {
4429
4434
  const c = Ci(this.element.attributes);
4430
4435
  if (Object.prototype.hasOwnProperty.call(c, "data-topics")) {
4431
4436
  const R = c["data-topics"].split("-");
@@ -4440,7 +4445,7 @@ class Hi {
4440
4445
  // @ts-expect-error cannot get string type out of IFilteredAttributes props
4441
4446
  c["data-widget"]
4442
4447
  );
4443
- const A = new CustomEvent(se.SHOW_MODAL, {
4448
+ const D = new CustomEvent(se.SHOW_MODAL, {
4444
4449
  detail: {
4445
4450
  component: i.showComponent,
4446
4451
  props: h,
@@ -4450,14 +4455,14 @@ class Hi {
4450
4455
  cancelable: !0,
4451
4456
  composed: !0
4452
4457
  });
4453
- window.dispatchEvent(A);
4458
+ window.dispatchEvent(D);
4454
4459
  });
4455
- var B;
4460
+ var K;
4456
4461
  this.element = i, this.listeners = c, h = typeof h < "u" ? h : "buzzcasting-slide";
4457
- let A;
4458
- A = { ...i.dataset }, delete A.hmr, A.slide = ((B = i.closest(h.toUpperCase())) == null ? void 0 : B.id) ?? `${h} not found`, A = nt(A), this.query = A, ji(i);
4462
+ let D;
4463
+ D = { ...i.dataset }, delete D.hmr, D.slide = ((K = i.closest(h.toUpperCase())) == null ? void 0 : K.id) ?? `${h} not found`, D = nt(D), this.query = D, ji(i);
4459
4464
  const R = window.BuzzCasting.getOptions();
4460
- this.storageReader = new Mi(R), this.broadcastChannel = new BroadcastChannel(A.slide), this.startListener();
4465
+ this.storageReader = new Mi(R), this.broadcastChannel = new BroadcastChannel(D.slide), this.startListener();
4461
4466
  }
4462
4467
  addListener(i) {
4463
4468
  this.listeners.push(i);
@@ -4471,8 +4476,8 @@ class Hi {
4471
4476
  const h = c.data.data;
4472
4477
  switch (c.data.event) {
4473
4478
  case se.WIDGET_UPDATE:
4474
- h.query.slide === i.slide && h.query.widget === i.widget && this.listeners.forEach((A) => {
4475
- A(c.data.data);
4479
+ h.query.slide === i.slide && h.query.widget === i.widget && this.listeners.forEach((D) => {
4480
+ D(c.data.data);
4476
4481
  });
4477
4482
  break;
4478
4483
  case se.SLIDE_READY: