buzzcasting-storage 2.16.11 → 2.16.13

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,8 +1,8 @@
1
1
  var xi = Object.defineProperty;
2
2
  var ki = (f, r, c) => r in f ? xi(f, r, { enumerable: !0, configurable: !0, writable: !0, value: c }) : f[r] = c;
3
3
  var D = (f, r, c) => ki(f, typeof r != "symbol" ? r + "" : r, c);
4
- var M = /* @__PURE__ */ ((f) => (f.MESSAGES = "messages", f.CLOUD = "cloud", f.SERIES = "series", f.TOPICS = "topics", f.WIDGET = "widget", f.WIDGETS = "widgets", f.SLIDE = "slide", f))(M || {}), S = /* @__PURE__ */ ((f) => (f.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", f.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", f.BROADCAST = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", f.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", f.CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", f.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.MESSAGES = "color:grey;background-color:tan;padding:0 4px 0 4px;border-radius:5px;", f.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", f.NONE = "color:transparent;background-color:transparent;", f.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", f.SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", f.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", f.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", f.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", f.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", f.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", f))(S || {}), ne = /* @__PURE__ */ ((f) => (f.ADD_SLIDE = "addSlide", f.APP_READY = "appReady", f.API_UPDATE = "apiUpdate", f.APPROVE_MESSAGE = "approveMessage", f.CHANNEL = "channel", f.CLEAN_MESSAGES = "cleanMessages", f.CLOSE_MODAL = "closeModal", f.ERROR = "error", f.HIDE_MESSAGE = "hideMessage", f.HIDE_LABELS = "hideLabels", f.PAUSE_PRESENTATION = "pausePresentation", f.PRESENTATION_READY = "presentationReady", f.PREV_SLIDE = "prevSlide", f.RELOAD_PRESENTATION = "reloadPresentation", f.SHOW_MODAL = "showModal", f.STAR_MESSAGE = "starMessage", f.GOTO_SLIDE = "gotoSlide", f.NEXT_SLIDE = "nextSlide", f.SLIDE_DID_LOAD = "slideDidLoad", f.SLIDE_GOTO = "slideGoto", f.SLIDE_READY = "slideReady", f.SLIDE_LOAD = "loadSlide", f.SLIDE_STORE = "storeSlide", f.SLIDE_TRANSITIONER = "slideTransitioner", f.START_TRANSITIONER = "startTransitioner", f.STORAGE_INIT = "storageInit", f.SUBSCRIBE = "subscribe", f.REMOVE_CLOUD = "removeCloud", f.UPDATE = "update", f.VERSION = "version", f.WIDGET_UPDATE = "widgetUpdate", f))(ne || {}), Zt = /* @__PURE__ */ ((f) => (f.APPROVED = "approved", f.BEFORE = "before", f.DELAYED = "delayed", f.NONE = "none", f.REALTIME = "realtime", f))(Zt || {}), ge = /* @__PURE__ */ ((f) => (f.KEYVAL = "keyval", f.LOCAL = "local", f.SESSION = "session", f.DEXIE = "dexie", f.WINDOW = "window", f))(ge || {});
5
- const Ai = "2.16.10";
4
+ var M = /* @__PURE__ */ ((f) => (f.MESSAGES = "messages", f.CLOUD = "cloud", f.SERIES = "series", f.TOPICS = "topics", f.WIDGET = "widget", f.WIDGETS = "widgets", f.SLIDE = "slide", f))(M || {}), S = /* @__PURE__ */ ((f) => (f.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", f.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", f.BROADCAST = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", f.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", f.CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", f.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.MESSAGES = "color:grey;background-color:tan;padding:0 4px 0 4px;border-radius:5px;", f.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", f.NONE = "color:transparent;background-color:transparent;", f.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", f.SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", f.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", f.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", f.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", f.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", f.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", f))(S || {}), re = /* @__PURE__ */ ((f) => (f.ADD_SLIDE = "addSlide", f.APP_READY = "appReady", f.API_UPDATE = "apiUpdate", f.APPROVE_MESSAGE = "approveMessage", f.CHANNEL = "channel", f.CLEAN_MESSAGES = "cleanMessages", f.CLOSE_MODAL = "closeModal", f.ERROR = "error", f.HIDE_MESSAGE = "hideMessage", f.HIDE_LABELS = "hideLabels", f.PAUSE_PRESENTATION = "pausePresentation", f.PRESENTATION_READY = "presentationReady", f.PREV_SLIDE = "prevSlide", f.RELOAD_PRESENTATION = "reloadPresentation", f.SHOW_MODAL = "showModal", f.STAR_MESSAGE = "starMessage", f.GOTO_SLIDE = "gotoSlide", f.NEXT_SLIDE = "nextSlide", f.SLIDE_DID_LOAD = "slideDidLoad", f.SLIDE_GOTO = "slideGoto", f.SLIDE_READY = "slideReady", f.SLIDE_LOAD = "loadSlide", f.SLIDE_STORE = "storeSlide", f.SLIDE_TRANSITIONER = "slideTransitioner", f.START_TRANSITIONER = "startTransitioner", f.STORAGE_INIT = "storageInit", f.SUBSCRIBE = "subscribe", f.REMOVE_CLOUD = "removeCloud", f.UPDATE = "update", f.VERSION = "version", f.WIDGET_UPDATE = "widgetUpdate", f))(re || {}), Zt = /* @__PURE__ */ ((f) => (f.APPROVED = "approved", f.BEFORE = "before", f.DELAYED = "delayed", f.NONE = "none", f.REALTIME = "realtime", f))(Zt || {}), ge = /* @__PURE__ */ ((f) => (f.KEYVAL = "keyval", f.LOCAL = "local", f.SESSION = "session", f.DEXIE = "dexie", f.WINDOW = "window", f))(ge || {});
5
+ const Ai = "2.16.12";
6
6
  class Di {
7
7
  constructor(r) {
8
8
  D(this, "options");
@@ -58,7 +58,7 @@ class Di {
58
58
  S.API,
59
59
  S.NONE,
60
60
  S.GET_DATA,
61
- ne.HIDE_MESSAGE,
61
+ re.HIDE_MESSAGE,
62
62
  r.widget,
63
63
  r.id
64
64
  ), await fetch(
@@ -79,7 +79,7 @@ class Di {
79
79
  S.API,
80
80
  S.NONE,
81
81
  S.GET_DATA,
82
- ne.HIDE_LABELS,
82
+ re.HIDE_LABELS,
83
83
  r.widget,
84
84
  k
85
85
  ), await fetch(
@@ -98,7 +98,7 @@ class Di {
98
98
  S.API,
99
99
  S.NONE,
100
100
  S.SLIDE,
101
- ne.SLIDE_LOAD,
101
+ re.SLIDE_LOAD,
102
102
  r.slide
103
103
  ), await fetch(
104
104
  [this.url, "api", c, "slides", r.id].join("/"),
@@ -125,7 +125,7 @@ class Di {
125
125
  S.API,
126
126
  S.NONE,
127
127
  S.SLIDE,
128
- ne.SLIDE_STORE,
128
+ re.SLIDE_STORE,
129
129
  r.id
130
130
  ), await fetch(
131
131
  [this.url, "api", c, "slides", r.id].join("/"),
@@ -169,9 +169,9 @@ var jr = { exports: {} };
169
169
  }), e;
170
170
  }
171
171
  typeof Promise > "u" || k.Promise || (k.Promise = Promise);
172
- var q = Object.getPrototypeOf, ce = {}.hasOwnProperty;
173
- function re(e, t) {
174
- return ce.call(e, t);
172
+ var q = Object.getPrototypeOf, le = {}.hasOwnProperty;
173
+ function ne(e, t) {
174
+ return le.call(e, t);
175
175
  }
176
176
  function xe(e, t) {
177
177
  typeof t == "function" && (t = t(q(e))), (typeof Reflect > "u" ? N : Reflect.ownKeys)(t).forEach(function(n) {
@@ -180,7 +180,7 @@ var jr = { exports: {} };
180
180
  }
181
181
  var zn = Object.defineProperty;
182
182
  function ke(e, t, n, i) {
183
- zn(e, t, J(n && re(n, "get") && typeof n.get == "function" ? { get: n.get, set: n.set, configurable: !0 } : { value: n, configurable: !0, writable: !0 }, i));
183
+ zn(e, t, J(n && ne(n, "get") && typeof n.get == "function" ? { get: n.get, set: n.set, configurable: !0 } : { value: n, configurable: !0, writable: !0 }, i));
184
184
  }
185
185
  function ze(e) {
186
186
  return { from: function(t) {
@@ -201,7 +201,7 @@ var jr = { exports: {} };
201
201
  k.setImmediate ? setImmediate(e) : setTimeout(e, 0);
202
202
  }
203
203
  function ve(e, t) {
204
- if (typeof t == "string" && re(e, t)) return e[t];
204
+ if (typeof t == "string" && ne(e, t)) return e[t];
205
205
  if (!t) return e;
206
206
  if (typeof t != "string") {
207
207
  for (var n = [], i = 0, a = t.length; i < a; ++i) {
@@ -222,12 +222,12 @@ var jr = { exports: {} };
222
222
  for (var i = 0, a = t.length; i < a; ++i) de(e, t[i], n[i]);
223
223
  } else {
224
224
  var o, s, u = t.indexOf(".");
225
- u !== -1 ? (o = t.substr(0, u), (s = t.substr(u + 1)) === "" ? n === void 0 ? B(e) && !isNaN(parseInt(o)) ? e.splice(o, 1) : delete e[o] : e[o] = n : de(u = !(u = e[o]) || !re(e, o) ? e[o] = {} : u, s, n)) : n === void 0 ? B(e) && !isNaN(parseInt(t)) ? e.splice(t, 1) : delete e[t] : e[t] = n;
225
+ u !== -1 ? (o = t.substr(0, u), (s = t.substr(u + 1)) === "" ? n === void 0 ? B(e) && !isNaN(parseInt(o)) ? e.splice(o, 1) : delete e[o] : e[o] = n : de(u = !(u = e[o]) || !ne(e, o) ? e[o] = {} : u, s, n)) : n === void 0 ? B(e) && !isNaN(parseInt(t)) ? e.splice(t, 1) : delete e[t] : e[t] = n;
226
226
  }
227
227
  }
228
228
  function Qn(e) {
229
229
  var t, n = {};
230
- for (t in e) re(e, t) && (n[t] = e[t]);
230
+ for (t in e) ne(e, t) && (n[t] = e[t]);
231
231
  return n;
232
232
  }
233
233
  var Wr = [].concat;
@@ -254,7 +254,7 @@ var jr = { exports: {} };
254
254
  } else if (Vn.has(n.constructor)) i = n;
255
255
  else {
256
256
  var s, u = q(n);
257
- for (s in i = u === Object.prototype ? {} : Object.create(u), it.set(n, i), n) re(n, s) && (i[s] = t(n[s]));
257
+ for (s in i = u === Object.prototype ? {} : Object.create(u), it.set(n, i), n) ne(n, s) && (i[s] = t(n[s]));
258
258
  }
259
259
  return i;
260
260
  }(e), it = null, e;
@@ -1082,7 +1082,7 @@ var jr = { exports: {} };
1082
1082
  return g.stop(v);
1083
1083
  }, function(v) {
1084
1084
  return g.fail(v);
1085
- }) || ((d = "" + (b = g.primaryKey)) == "[object ArrayBuffer]" && (d = "" + new Uint8Array(b)), re(o, d) || (o[d] = !0, t(u, g, h)));
1085
+ }) || ((d = "" + (b = g.primaryKey)) == "[object ArrayBuffer]" && (d = "" + new Uint8Array(b)), ne(o, d) || (o[d] = !0, t(u, g, h)));
1086
1086
  };
1087
1087
  return Promise.all([e.or._iterate(s, n), fr(dr(e, i, n), e.algorithm, s, !e.keysOnly && e.valueMapper)]);
1088
1088
  }
@@ -1297,7 +1297,7 @@ var jr = { exports: {} };
1297
1297
  if (!e || !e.multi) return this;
1298
1298
  var t = {};
1299
1299
  return gn(this._ctx, function(a) {
1300
- var i = a.primaryKey.toString(), a = re(t, i);
1300
+ var i = a.primaryKey.toString(), a = ne(t, i);
1301
1301
  return t[i] = !0, !a;
1302
1302
  }), this;
1303
1303
  }, Y.prototype.modify = function(e) {
@@ -1674,7 +1674,7 @@ var jr = { exports: {} };
1674
1674
  this.active && (this.active = !1, this.idbtrans && this.idbtrans.abort(), this._reject(new G.Abort()));
1675
1675
  }, be.prototype.table = function(e) {
1676
1676
  var t = this._memoizedTables || (this._memoizedTables = {});
1677
- if (re(t, e)) return t[e];
1677
+ if (ne(t, e)) return t[e];
1678
1678
  var n = this.schema[e];
1679
1679
  if (!n) throw new G.NotFound("Table " + e + " not part of transaction");
1680
1680
  return n = new this.db.Table(e, n, this), n.core = this.db.core.table(e), t[e] = n;
@@ -1742,8 +1742,8 @@ var jr = { exports: {} };
1742
1742
  var P, $ = (E || O || { length: 1 }).length;
1743
1743
  if (E && O && E.length !== O.length) throw new Error("Given keys array must have same length as given values array.");
1744
1744
  if ($ === 0) return I({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
1745
- function F(le) {
1746
- ++pe, pt(le);
1745
+ function F(ue) {
1746
+ ++pe, pt(ue);
1747
1747
  }
1748
1748
  var z = [], U = [], pe = 0;
1749
1749
  if (_ === "deleteRange") {
@@ -1754,15 +1754,15 @@ var jr = { exports: {} };
1754
1754
  if (j) for (var se = 0; se < $; ++se) z.push(P = oe && oe[se] !== void 0 ? C[_](W[se], oe[se]) : C[_](W[se])), P.onerror = F;
1755
1755
  else for (se = 0; se < $; ++se) z.push(P = C[_](W[se])), P.onerror = F;
1756
1756
  }
1757
- function Vt(le) {
1758
- le = le.target.result, z.forEach(function(We, Ln) {
1757
+ function Vt(ue) {
1758
+ ue = ue.target.result, z.forEach(function(We, Ln) {
1759
1759
  return We.error != null && (U[Ln] = We.error);
1760
1760
  }), I({ numFailures: pe, failures: U, results: _ === "delete" ? E : z.map(function(We) {
1761
1761
  return We.result;
1762
- }), lastResult: le });
1762
+ }), lastResult: ue });
1763
1763
  }
1764
- P.onerror = function(le) {
1765
- F(le), Vt(le);
1764
+ P.onerror = function(ue) {
1765
+ F(ue), Vt(ue);
1766
1766
  }, P.onsuccess = Vt;
1767
1767
  });
1768
1768
  }, getMany: function(w) {
@@ -1817,19 +1817,19 @@ var jr = { exports: {} };
1817
1817
  function se() {
1818
1818
  if (P.result) try {
1819
1819
  oe();
1820
- } catch (le) {
1821
- W.fail(le);
1820
+ } catch (ue) {
1821
+ W.fail(ue);
1822
1822
  }
1823
1823
  else W.done = !0, W.start = function() {
1824
1824
  throw new Error("Cursor behind last entry");
1825
1825
  }, W.stop();
1826
1826
  }
1827
- var Vt = new Promise(function(le, We) {
1828
- le = Z(le), P.onerror = me(We), W.fail = We, W.stop = function(Ln) {
1829
- W.stop = W.continue = W.continuePrimaryKey = W.advance = pe, le(Ln);
1827
+ var Vt = new Promise(function(ue, We) {
1828
+ ue = Z(ue), P.onerror = me(We), W.fail = We, W.stop = function(Ln) {
1829
+ W.stop = W.continue = W.continuePrimaryKey = W.advance = pe, ue(Ln);
1830
1830
  };
1831
1831
  });
1832
- return P.onsuccess = Z(function(le) {
1832
+ return P.onsuccess = Z(function(ue) {
1833
1833
  P.onsuccess = se, se();
1834
1834
  }), W.continue = F, W.continuePrimaryKey = z, W.advance = U, se(), Vt;
1835
1835
  }, I(W)) : I(null);
@@ -2087,9 +2087,9 @@ var jr = { exports: {} };
2087
2087
  function Dn(e) {
2088
2088
  return !("from" in e);
2089
2089
  }
2090
- var ue = function(e, t) {
2090
+ var ce = function(e, t) {
2091
2091
  if (!this) {
2092
- var n = new ue();
2092
+ var n = new ce();
2093
2093
  return e && "d" in e && J(n, e), n;
2094
2094
  }
2095
2095
  J(this, arguments.length ? { d: 1, from: e, to: 1 < arguments.length ? t : e } : { d: 0 });
@@ -2152,7 +2152,7 @@ var jr = { exports: {} };
2152
2152
  return N(t).forEach(function(n) {
2153
2153
  e[n] ? vt(e[n], t[n]) : e[n] = function i(a) {
2154
2154
  var o, s, u = {};
2155
- for (o in a) re(a, o) && (s = a[o], u[o] = !s || typeof s != "object" || Vn.has(s.constructor) ? s : i(s));
2155
+ for (o in a) ne(a, o) && (s = a[o], u[o] = !s || typeof s != "object" || Vn.has(s.constructor) ? s : i(s));
2156
2156
  return u;
2157
2157
  }(t[n]);
2158
2158
  }), e;
@@ -2162,7 +2162,7 @@ var jr = { exports: {} };
2162
2162
  return t[n] && wr(t[n], e[n]);
2163
2163
  });
2164
2164
  }
2165
- xe(ue.prototype, ((he = { add: function(e) {
2165
+ xe(ce.prototype, ((he = { add: function(e) {
2166
2166
  return vt(this, e), this;
2167
2167
  }, addKey: function(e) {
2168
2168
  return bt(this, e, e), this;
@@ -2293,8 +2293,8 @@ var jr = { exports: {} };
2293
2293
  var v;
2294
2294
  return d && (v = {}, e.tables.forEach(function(p) {
2295
2295
  p.schema.indexes.forEach(function(m) {
2296
- m.name && (v["idb://".concat(e.name, "/").concat(p.name, "/").concat(m.name)] = new ue(-1 / 0, [[[]]]));
2297
- }), v["idb://".concat(e.name, "/").concat(p.name, "/")] = v["idb://".concat(e.name, "/").concat(p.name, "/:dels")] = new ue(-1 / 0, [[[]]]);
2296
+ m.name && (v["idb://".concat(e.name, "/").concat(p.name, "/").concat(m.name)] = new ce(-1 / 0, [[[]]]));
2297
+ }), v["idb://".concat(e.name, "/").concat(p.name, "/")] = v["idb://".concat(e.name, "/").concat(p.name, "/:dels")] = new ce(-1 / 0, [[[]]]);
2298
2298
  }), Re(gt).fire(v), Rn(v, !0)), e;
2299
2299
  });
2300
2300
  }
@@ -2366,9 +2366,9 @@ var jr = { exports: {} };
2366
2366
  function jn(e, t, n, i) {
2367
2367
  return n = n || {}, i = i || "", N(e).forEach(function(a) {
2368
2368
  var o, s, u;
2369
- re(t, a) ? (o = e[a], s = t[a], typeof o == "object" && typeof s == "object" && o && s ? (u = qt(o)) !== qt(s) ? n[i + a] = t[a] : u === "Object" ? jn(o, s, n, i + a + ".") : o !== s && (n[i + a] = t[a]) : o !== s && (n[i + a] = t[a])) : n[i + a] = void 0;
2369
+ ne(t, a) ? (o = e[a], s = t[a], typeof o == "object" && typeof s == "object" && o && s ? (u = qt(o)) !== qt(s) ? n[i + a] = t[a] : u === "Object" ? jn(o, s, n, i + a + ".") : o !== s && (n[i + a] = t[a]) : o !== s && (n[i + a] = t[a])) : n[i + a] = void 0;
2370
2370
  }), N(t).forEach(function(a) {
2371
- re(e, a) || (n[i + a] = t[a]);
2371
+ ne(e, a) || (n[i + a] = t[a]);
2372
2372
  }), n;
2373
2373
  }
2374
2374
  function Mn(e, t) {
@@ -2416,7 +2416,7 @@ var jr = { exports: {} };
2416
2416
  var E = y.map(function(O, x) {
2417
2417
  var I, T, C, R = _[x], j = { onerror: null, onsuccess: null };
2418
2418
  return d.type === "delete" ? u.fire.call(j, O, R, w) : d.type === "add" || R === void 0 ? (I = g.fire.call(j, O, d.values[x], w), O == null && I != null && (d.keys[x] = O = I, i.outbound || de(d.values[x], i.keyPath, O))) : (I = jn(R, d.values[x]), (T = h.fire.call(j, I, O, R, w)) && (C = d.values[x], Object.keys(T).forEach(function(P) {
2419
- re(C, P) ? C[P] = T[P] : de(C, P, T[P]);
2419
+ ne(C, P) ? C[P] = T[P] : de(C, P, T[P]);
2420
2420
  }))), j;
2421
2421
  });
2422
2422
  return n.mutate(d).then(function(O) {
@@ -2473,7 +2473,7 @@ var jr = { exports: {} };
2473
2473
  }
2474
2474
  }
2475
2475
  var wi = { stack: "dbcore", level: 0, name: "Observability", create: function(e) {
2476
- var t = e.schema.name, n = new ue(e.MIN_KEY, e.MAX_KEY);
2476
+ var t = e.schema.name, n = new ce(e.MIN_KEY, e.MAX_KEY);
2477
2477
  return l(l({}, e), { transaction: function(i, a, o) {
2478
2478
  if (L.subscr && a !== "readonly") throw new G.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(L.querier));
2479
2479
  return e.transaction(i, a, o);
@@ -2482,7 +2482,7 @@ var jr = { exports: {} };
2482
2482
  return p.compound && p.keyPath.includes(s.keyPath);
2483
2483
  }), b = l(l({}, a), { mutate: function(p) {
2484
2484
  function m(P) {
2485
- return P = "idb://".concat(t, "/").concat(i, "/").concat(P), O[P] || (O[P] = new ue());
2485
+ return P = "idb://".concat(t, "/").concat(i, "/").concat(P), O[P] || (O[P] = new ce());
2486
2486
  }
2487
2487
  var w, y, _, E = p.trans, O = p.mutatedParts || (p.mutatedParts = {}), x = m(""), I = m(":dels"), T = p.type, j = p.type === "deleteRange" ? [p.range] : p.type === "delete" ? [p.keys] : p.values.length < 50 ? [Mn(s, p).filter(function(P) {
2488
2488
  return P;
@@ -2517,18 +2517,18 @@ var jr = { exports: {} };
2517
2517
  });
2518
2518
  } }), d = function(m) {
2519
2519
  var w = m.query, m = w.index, w = w.range;
2520
- return [m, new ue((m = w.lower) !== null && m !== void 0 ? m : e.MIN_KEY, (w = w.upper) !== null && w !== void 0 ? w : e.MAX_KEY)];
2520
+ return [m, new ce((m = w.lower) !== null && m !== void 0 ? m : e.MIN_KEY, (w = w.upper) !== null && w !== void 0 ? w : e.MAX_KEY)];
2521
2521
  }, v = { get: function(p) {
2522
- return [s, new ue(p.key)];
2522
+ return [s, new ce(p.key)];
2523
2523
  }, getMany: function(p) {
2524
- return [s, new ue().addKeys(p.keys)];
2524
+ return [s, new ce().addKeys(p.keys)];
2525
2525
  }, count: d, query: d, openCursor: d };
2526
2526
  return N(v).forEach(function(p) {
2527
2527
  b[p] = function(m) {
2528
2528
  var w = L.subscr, y = !!w, _ = xr(L, a) && kr(p, m) ? m.obsSet = {} : w;
2529
2529
  if (y) {
2530
2530
  var E = function(R) {
2531
- return R = "idb://".concat(t, "/").concat(i, "/").concat(R), _[R] || (_[R] = new ue());
2531
+ return R = "idb://".concat(t, "/").concat(i, "/").concat(R), _[R] || (_[R] = new ce());
2532
2532
  }, O = E(""), x = E(":dels"), w = v[p](m), y = w[0], w = w[1];
2533
2533
  if ((p === "query" && y.isPrimaryKey && !m.values ? x : E(y.name || "")).add(w), !y.isPrimaryKey) {
2534
2534
  if (p !== "count") {
@@ -2580,7 +2580,7 @@ var jr = { exports: {} };
2580
2580
  if (!v || v.length === 0) return e;
2581
2581
  var s = t.query.index, u = s.multiEntry, g = t.query.range, h = i.schema.primaryKey.extractKey, b = s.extractKey, d = (s.lowLevelIndex || s).extractKey, v = v.reduce(function(p, m) {
2582
2582
  var w = p, y = [];
2583
- if (m.type === "add" || m.type === "put") for (var _ = new ue(), E = m.values.length - 1; 0 <= E; --E) {
2583
+ if (m.type === "add" || m.type === "put") for (var _ = new ce(), E = m.values.length - 1; 0 <= E; --E) {
2584
2584
  var O, x = m.values[E], I = h(x);
2585
2585
  _.hasKey(I) || (O = b(x), (u && B(O) ? O.some(function(j) {
2586
2586
  return Kn(j, g);
@@ -2593,7 +2593,7 @@ var jr = { exports: {} };
2593
2593
  }));
2594
2594
  break;
2595
2595
  case "put":
2596
- var T = new ue().addKeys(m.values.map(function(P) {
2596
+ var T = new ce().addKeys(m.values.map(function(P) {
2597
2597
  return h(P);
2598
2598
  })), w = p.filter(function(P) {
2599
2599
  return !T.hasKey(t.values ? h(P) : P);
@@ -2602,7 +2602,7 @@ var jr = { exports: {} };
2602
2602
  }));
2603
2603
  break;
2604
2604
  case "delete":
2605
- var C = new ue().addKeys(m.keys);
2605
+ var C = new ce().addKeys(m.keys);
2606
2606
  w = p.filter(function(P) {
2607
2607
  return !C.hasKey(t.values ? h(P) : P);
2608
2608
  });
@@ -2901,7 +2901,7 @@ var jr = { exports: {} };
2901
2901
  return i._whenReady(g);
2902
2902
  }) : this._whenReady(g);
2903
2903
  }, te.prototype.table = function(e) {
2904
- if (!re(this._allTables, e)) throw new G.InvalidTable("Table ".concat(e, " does not exist"));
2904
+ if (!ne(this._allTables, e)) throw new G.InvalidTable("Table ".concat(e, " does not exist"));
2905
2905
  return this._allTables[e];
2906
2906
  }, te);
2907
2907
  function te(e, t) {
@@ -3022,7 +3022,7 @@ var jr = { exports: {} };
3022
3022
  }
3023
3023
  }(y = { subscr: w, signal: s.signal, requery: v, querier: e, trans: null }), Promise.resolve(_).then(function(E) {
3024
3024
  n = !0, t = E, u || y.signal.aborted || (g = {}, function(O) {
3025
- for (var x in O) if (re(O, x)) return;
3025
+ for (var x in O) if (ne(O, x)) return;
3026
3026
  return 1;
3027
3027
  }(h = w) || d || (Re(gt, p), d = !0), fn(function() {
3028
3028
  return !u && a.next && a.next(E);
@@ -3128,7 +3128,7 @@ var jr = { exports: {} };
3128
3128
  for (var t = 0, n = Ze; t < n.length; t++) n[t].close({ disableAutoOpen: !1 });
3129
3129
  }
3130
3130
  }), addEventListener("pageshow", function(e) {
3131
- !Ee.disableBfCache && e.persisted && (ye && console.debug("Dexie: handling persisted pageshow"), Cr(), Bn({ all: new ue(-1 / 0, [[]]) }));
3131
+ !Ee.disableBfCache && e.persisted && (ye && console.debug("Dexie: handling persisted pageshow"), Cr(), Bn({ all: new ce(-1 / 0, [[]]) }));
3132
3132
  })), K.rejectionMapper = function(e, t) {
3133
3133
  return !e || e instanceof Ye || e instanceof TypeError || e instanceof SyntaxError || !e.name || !Zn[e.name] ? e : (t = new Zn[e.name](t || e.message, e), "stack" in e && ke(t, "stack", { get: function() {
3134
3134
  return this.inner.stack;
@@ -3139,7 +3139,7 @@ var jr = { exports: {} };
3139
3139
  return new ht({ add: e });
3140
3140
  }, remove: function(e) {
3141
3141
  return new ht({ remove: e });
3142
- }, default: Ee, RangeSet: ue, mergeRanges: vt, rangesOverlap: wr }), { default: Ee }), Ee;
3142
+ }, default: Ee, RangeSet: ce, mergeRanges: vt, rangesOverlap: wr }), { default: Ee }), Ee;
3143
3143
  });
3144
3144
  })(jr);
3145
3145
  var Ii = jr.exports;
@@ -3238,9 +3238,9 @@ class Mr {
3238
3238
  if (k.length === 0)
3239
3239
  return { data: null, message: "No Messages error", success: !1 };
3240
3240
  const N = k[0] ? k[0].title : "No title", B = k.map(
3241
- (ce) => ce.message_id
3242
- ), q = (await this.db.table(M.MESSAGES).where("id").anyOf(B).toArray().then((ce) => ce.sort((re, xe) => xe.utc - re.utc))).map(
3243
- (ce) => ce.data
3241
+ (le) => le.message_id
3242
+ ), q = (await this.db.table(M.MESSAGES).where("id").anyOf(B).toArray().then((le) => le.sort((ne, xe) => xe.utc - ne.utc))).map(
3243
+ (le) => le.data
3244
3244
  );
3245
3245
  return {
3246
3246
  data: {
@@ -3293,14 +3293,14 @@ class Mr {
3293
3293
  let A = 0;
3294
3294
  return c.data.messages.forEach(async (k) => {
3295
3295
  var N, B, J, q;
3296
- k.id !== null && (await this.db.table(M.MESSAGES).put({ id: k.id, utc: k.utc, data: k, expires: k.expires }).catch((ce) => {
3296
+ k.id !== null && (await this.db.table(M.MESSAGES).put({ id: k.id, utc: k.utc, data: k, expires: k.expires }).catch((le) => {
3297
3297
  A++, console.error(
3298
3298
  "%cstorage",
3299
3299
  S.STORAGE,
3300
3300
  "set message",
3301
3301
  `title: ${l}`,
3302
3302
  k,
3303
- ce.message
3303
+ le.message
3304
3304
  );
3305
3305
  }), await this.db.table(M.TOPICS).put({
3306
3306
  widget_id: r.widget,
@@ -3313,14 +3313,14 @@ class Mr {
3313
3313
  sentiment: ((q = k.topics[0]) == null ? void 0 : q.sentiment) || 0,
3314
3314
  utc: k.utc,
3315
3315
  expires: k.expires
3316
- }).catch((ce) => {
3316
+ }).catch((le) => {
3317
3317
  A++, console.error(
3318
3318
  "%cstorage",
3319
3319
  S.STORAGE,
3320
3320
  "set topic",
3321
3321
  `title: ${l}`,
3322
3322
  k,
3323
- ce.message
3323
+ le.message
3324
3324
  );
3325
3325
  }));
3326
3326
  }), A === 0 ? 201 : 400;
@@ -3420,11 +3420,11 @@ class Mr {
3420
3420
  }).then(() => 200).catch((c) => (console.error(
3421
3421
  "%cstorage",
3422
3422
  S.STORAGE,
3423
- ne.SLIDE_STORE,
3423
+ re.SLIDE_STORE,
3424
3424
  r,
3425
3425
  c.message
3426
3426
  ), 422)) : 422);
3427
- this.options = r, this.db = new Un(r.app), this.db.version(4).stores({
3427
+ this.options = r, this.db = new Un(r.app), this.db.version(5).stores({
3428
3428
  player: "id,title,name,location",
3429
3429
  monitor: "id,player_id,cols,rows,order,width,height,physicalwidth,physicalheight,devicePixelRatio,screenLeft,screenTop,orientation,monitor",
3430
3430
  display: "id,monitor_id,presentation_id,colstart,colend,rowstart,rowend",
@@ -3434,7 +3434,7 @@ class Mr {
3434
3434
  cloud: "id,dashboard_id,data",
3435
3435
  messages: "id,utc,expires,data",
3436
3436
  series: "id,dashboard_id,data",
3437
- topics: "[widget_id+message_id],widget_id,dashboard_id,title,engagement,impressions,reach,sentiment,visible,utc,expires",
3437
+ topics: "[widget_id+message_id],message_id,widget_id,dashboard_id,title,engagement,impressions,reach,sentiment,visible,utc,expires",
3438
3438
  widgets: "id,dashboard_id,type"
3439
3439
  }), this.db.open();
3440
3440
  }
@@ -4184,13 +4184,12 @@ class Ji {
4184
4184
  return 400;
4185
4185
  if (B.success === !0) {
4186
4186
  const J = this.sm.subscribers.filter(
4187
- (ce) => ce.widget === B.query.widget
4187
+ (ne) => ne.widget === B.query.widget
4188
4188
  )[0];
4189
- let q = "";
4189
+ let q = "", le;
4190
4190
  switch (B.query.type) {
4191
4191
  case M.MESSAGES:
4192
- let ce = B.data.messages.filter((re) => re.id !== null);
4193
- if (B.data.messages = ce, q = $n(B.data.messages), J.hash === q)
4192
+ if (le = B.data.messages.filter((ne) => ne.id !== null), B.data.messages = le, q = $n(B.data.messages), J.hash === q)
4194
4193
  return console.debug(
4195
4194
  "%capi%c %cno updates",
4196
4195
  S.API,
@@ -4245,7 +4244,7 @@ class Ji {
4245
4244
  S.BROADCAST,
4246
4245
  B.query.slide,
4247
4246
  B.data.title ?? B.query.widget
4248
- ), this.bc.postMessage({ event: ne.WIDGET_UPDATE, data: B });
4247
+ ), this.bc.postMessage({ event: re.WIDGET_UPDATE, data: B });
4249
4248
  break;
4250
4249
  case 400:
4251
4250
  console.warn(
@@ -4265,7 +4264,7 @@ class Ji {
4265
4264
  S.API,
4266
4265
  S.NONE,
4267
4266
  S.STORAGE,
4268
- ne.ERROR
4267
+ re.ERROR
4269
4268
  ), 400;
4270
4269
  })
4271
4270
  );
@@ -4276,16 +4275,16 @@ class Ji {
4276
4275
  D(this, "actions", async (r) => {
4277
4276
  var c;
4278
4277
  switch (r.data.event) {
4279
- case ne.SUBSCRIBE:
4278
+ case re.SUBSCRIBE:
4280
4279
  (c = this.sm) == null || c.subscribe(r.data.data);
4281
4280
  break;
4282
- case ne.UPDATE:
4281
+ case re.UPDATE:
4283
4282
  console.debug(
4284
4283
  "%capi%c %cstorage",
4285
4284
  S.API,
4286
4285
  S.NONE,
4287
4286
  S.STORAGE,
4288
- ne.UPDATE,
4287
+ re.UPDATE,
4289
4288
  r.data
4290
4289
  ), await this.update();
4291
4290
  break;
@@ -4333,7 +4332,7 @@ class Ji {
4333
4332
  S.NONE,
4334
4333
  S.SLIDE,
4335
4334
  r.slide,
4336
- ne.VERSION,
4335
+ re.VERSION,
4337
4336
  Ai
4338
4337
  ), this.options = r, this.sm = null;
4339
4338
  const c = (r == null ? void 0 : r.slide) || r.app;
@@ -4342,11 +4341,11 @@ class Ji {
4342
4341
  S.API,
4343
4342
  S.NONE,
4344
4343
  S.BROADCAST,
4345
- ne.CHANNEL,
4344
+ re.CHANNEL,
4346
4345
  c
4347
4346
  ), this.bc.onmessage = (l) => {
4348
4347
  this.actions(l);
4349
- }, this.bc.postMessage({ event: ne.STORAGE_INIT, data: {} }), this.api = new Di(r), r.storage) {
4348
+ }, this.bc.postMessage({ event: re.STORAGE_INIT, data: {} }), this.api = new Di(r), r.storage) {
4350
4349
  case ge.DEXIE:
4351
4350
  this.sm = new Mr(r);
4352
4351
  break;
@@ -4554,12 +4553,12 @@ class Zi {
4554
4553
  console.debug(
4555
4554
  "%cwidget",
4556
4555
  S.WIDGET,
4557
- ne.SHOW_MODAL,
4556
+ re.SHOW_MODAL,
4558
4557
  r.showComponent,
4559
4558
  // @ts-expect-error cannot get string type out of IFilteredAttributes props
4560
4559
  c["data-widget"]
4561
4560
  );
4562
- const A = new CustomEvent(ne.SHOW_MODAL, {
4561
+ const A = new CustomEvent(re.SHOW_MODAL, {
4563
4562
  detail: {
4564
4563
  component: r.showComponent,
4565
4564
  props: l,
@@ -4589,12 +4588,12 @@ class Zi {
4589
4588
  this.broadcastChannel.onmessage = async (c) => {
4590
4589
  const l = c.data.data;
4591
4590
  switch (c.data.event) {
4592
- case ne.WIDGET_UPDATE:
4591
+ case re.WIDGET_UPDATE:
4593
4592
  l.query.slide === r.slide && l.query.widget === r.widget && this.listeners.forEach((A) => {
4594
4593
  A(c.data.data);
4595
4594
  });
4596
4595
  break;
4597
- case ne.SLIDE_READY:
4596
+ case re.SLIDE_READY:
4598
4597
  this.subscribe();
4599
4598
  break;
4600
4599
  }
@@ -4613,7 +4612,7 @@ class Zi {
4613
4612
  this.query.slide,
4614
4613
  this.query.widget
4615
4614
  ), this.broadcastChannel.postMessage({
4616
- event: ne.SUBSCRIBE,
4615
+ event: re.SUBSCRIBE,
4617
4616
  data: this.query
4618
4617
  });
4619
4618
  }
@@ -4626,7 +4625,7 @@ export {
4626
4625
  Ji as BuzzcastingStorageManager,
4627
4626
  Ni as BuzzcastingStorageReader,
4628
4627
  S as CSS,
4629
- ne as EVENTS,
4628
+ re as EVENTS,
4630
4629
  Zt as MODERATION,
4631
4630
  ge as STORAGE,
4632
4631
  Zi as Widget,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buzzcasting-storage",
3
3
  "type": "module",
4
- "version": "2.16.11",
4
+ "version": "2.16.13",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "Mark Tamis, TouchFlows SAS",