buzzcasting-storage 3.14.0 → 3.14.2

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.
@@ -3,7 +3,7 @@ function Pa(h) {
3
3
  const t = {};
4
4
  for (let o = 0; o < h.length; o++) {
5
5
  const l = h.item(o);
6
- l != null && l.name && (t[l.name] = l.value);
6
+ l?.name && (t[l.name] = l.value);
7
7
  }
8
8
  return t;
9
9
  }
@@ -17,30 +17,30 @@ function Ia(h, t) {
17
17
  return h;
18
18
  }
19
19
  function Oe(h, t) {
20
- let o, l, g;
20
+ let o, l, p;
21
21
  if (t.length === 0)
22
22
  return h;
23
- for (o = 0, g = t.length; o < g; o++)
23
+ for (o = 0, p = t.length; o < p; o++)
24
24
  l = t.charCodeAt(o), h = (h << 5) - h + l, h |= 0;
25
25
  return h < 0 ? h * -2 : h;
26
26
  }
27
27
  function Na(h, t, o) {
28
28
  return Object.keys(t).sort().reduce(l, h);
29
- function l(g, b) {
30
- return jn(g, t[b], b, o);
29
+ function l(p, b) {
30
+ return jn(p, t[b], b, o);
31
31
  }
32
32
  }
33
33
  function jn(h, t, o, l) {
34
- const g = Oe(Oe(Oe(h, o), Ra(t)), typeof t);
34
+ const p = Oe(Oe(Oe(h, o), Ra(t)), typeof t);
35
35
  if (t === null)
36
- return Oe(g, "null");
36
+ return Oe(p, "null");
37
37
  if (t === void 0)
38
- return Oe(g, "undefined");
38
+ return Oe(p, "undefined");
39
39
  if (typeof t == "object" || typeof t == "function") {
40
40
  if (l.includes(t))
41
- return Oe(g, `[Circular]${o}`);
41
+ return Oe(p, `[Circular]${o}`);
42
42
  l.push(t);
43
- const b = Na(g, t, l);
43
+ const b = Na(p, t, l);
44
44
  if (!("valueOf" in t) || typeof t.valueOf != "function")
45
45
  return b;
46
46
  try {
@@ -49,7 +49,7 @@ function jn(h, t, o, l) {
49
49
  return Oe(b, `[valueOf exception]${x.stack || x.message}`);
50
50
  }
51
51
  }
52
- return Oe(g, t.toString());
52
+ return Oe(p, t.toString());
53
53
  }
54
54
  function Ra(h) {
55
55
  return Object.prototype.toString.call(h);
@@ -108,19 +108,17 @@ function Y(h) {
108
108
  return h.order && (t += `.${h.order}`), h.period && (t += `.${h.period}`), t;
109
109
  }
110
110
  function Ta(h) {
111
- var t;
112
111
  if (h.widget === void 0) {
113
- const o = (t = h.topics) == null ? void 0 : t.split("-");
114
- o && o.length > 1 ? (h.dashboard = o ? o[0] : "", h.widget = o ? o[1] : "") : (h.widget = h.topics, h.dashboard = h.slide);
112
+ const t = h.topics?.split("-");
113
+ t && t.length > 1 ? (h.dashboard = t ? t[0] : "", h.widget = t ? t[1] : "") : (h.widget = h.topics, h.dashboard = h.slide);
115
114
  }
116
115
  return h;
117
116
  }
118
117
  function Ot(h, t) {
119
- var o;
120
- let l, g, b, x, $;
118
+ let o, l, p, b, x;
121
119
  switch (h.moderation) {
122
120
  case er.BEFORE:
123
- l = /* @__PURE__ */ new Date(), g = (o = h.beforeTime) == null ? void 0 : o.split(":"), b = Number.parseInt(g ? g[0] : "00"), x = Number.parseInt(g ? g[1] : "00"), $ = Number.parseInt(g ? g[2] : "00"), t.before = l.setHours(b, x, $, 0) / 1e3, t.period || (t.period = l.getDay() === 1 ? 72 : 24);
121
+ o = /* @__PURE__ */ new Date(), l = h.beforeTime?.split(":"), p = Number.parseInt(l ? l[0] : "00"), b = Number.parseInt(l ? l[1] : "00"), x = Number.parseInt(l ? l[2] : "00"), t.before = o.setHours(p, b, x, 0) / 1e3, t.period || (t.period = o.getDay() === 1 ? 72 : 24);
124
122
  break;
125
123
  case er.DELAYED:
126
124
  h.delay && h.delay > 0 && (t.delay = `${h.delay}`);
@@ -133,7 +131,7 @@ function Ot(h, t) {
133
131
  }
134
132
  return t;
135
133
  }
136
- const xa = "3.13.0";
134
+ const xa = "3.14.1";
137
135
  class ka {
138
136
  options;
139
137
  url;
@@ -171,9 +169,9 @@ class ka {
171
169
  };
172
170
  };
173
171
  async get(t) {
174
- const { version: o } = this.options, l = this.headers(), g = Object.assign({}, t);
175
- delete g.type, delete g.hash, delete g.order, g.topics = `${g.dashboard}-${g.widget}`, delete g.presentation;
176
- const b = Object.keys(g).length > 0 ? `?${new URLSearchParams(g).toString()}` : "";
172
+ const { version: o } = this.options, l = this.headers(), p = Object.assign({}, t);
173
+ delete p.type, delete p.hash, delete p.order, p.topics = `${p.dashboard}-${p.widget}`, delete p.presentation;
174
+ const b = Object.keys(p).length > 0 ? `?${new URLSearchParams(p).toString()}` : "";
177
175
  let x = "";
178
176
  switch (t.type) {
179
177
  case _.MESSAGES:
@@ -194,7 +192,7 @@ class ka {
194
192
  c.NONE,
195
193
  x,
196
194
  t.widget
197
- ]), K(4, [t.type, g]), await fetch(
195
+ ]), K(4, [t.type, p]), await fetch(
198
196
  [this.url, "api", o, t.type].join("/") + b,
199
197
  { ...l, method: "get" }
200
198
  ).then(async ($) => {
@@ -204,7 +202,7 @@ class ka {
204
202
  }).then(($) => $.json()).then(($) => ($.query = t, $)).catch(($) => ({ success: !1, message: `${$}`, data: null, query: t }));
205
203
  }
206
204
  async hideMessage(t) {
207
- const { version: o } = this.options, l = this.headers(), g = "?action=visible";
205
+ const { version: o } = this.options, l = this.headers(), p = "?action=visible";
208
206
  return console.info(
209
207
  "%capi%c %cput",
210
208
  c.API,
@@ -214,7 +212,7 @@ class ka {
214
212
  t.widget,
215
213
  t.id
216
214
  ), await fetch(
217
- [this.url, "api", o, "messages", t.id].join("/") + g,
215
+ [this.url, "api", o, "messages", t.id].join("/") + p,
218
216
  { ...l, method: "put" }
219
217
  ).then((b) => {
220
218
  if (!b.ok)
@@ -223,9 +221,9 @@ class ka {
223
221
  }).then((b) => b.json()).catch((b) => ({ succes: !1, message: b, data: [] }));
224
222
  }
225
223
  async hideLabels(t) {
226
- const { version: o } = this.options, l = this.formHeaders(), g = new URLSearchParams(), b = t.labels || [];
224
+ const { version: o } = this.options, l = this.formHeaders(), p = new URLSearchParams(), b = t.labels || [];
227
225
  for (const [x, $] of b.entries())
228
- g.append(`custom_filters[${x}]`, $);
226
+ p.append(`custom_filters[${x}]`, $);
229
227
  return console.info(
230
228
  "%capi%c %cput",
231
229
  c.API,
@@ -236,7 +234,7 @@ class ka {
236
234
  b
237
235
  ), await fetch(
238
236
  [this.url, "api", o, t.type, t.widget].join("/"),
239
- { ...l, body: g, method: "put" }
237
+ { ...l, body: p, method: "put" }
240
238
  ).then((x) => {
241
239
  if (!x.ok)
242
240
  throw new Error(x.statusText);
@@ -244,8 +242,8 @@ class ka {
244
242
  }).then((x) => x.json()).catch((x) => ({ succes: !1, message: x, data: [] }));
245
243
  }
246
244
  async loadSlide(t) {
247
- const { version: o } = this.options, l = this.headers(), g = Object.assign({}, t);
248
- return delete g.type, delete g.hash, K(3, ["%capi%c %cloadSlide", c.API, c.NONE, c.SLIDE, t.id]), await fetch(
245
+ const { version: o } = this.options, l = this.headers(), p = Object.assign({}, t);
246
+ return delete p.type, delete p.hash, K(3, ["%capi%c %cloadSlide", c.API, c.NONE, c.SLIDE, t.id]), await fetch(
249
247
  [this.url, "api", o, "slides", t.id].join("/"),
250
248
  { ...l, method: "get" }
251
249
  ).then(async (b) => {
@@ -269,7 +267,7 @@ class ka {
269
267
  async storeSlide(t) {
270
268
  const { version: o } = this.options, l = this.formHeaders();
271
269
  delete t.update, delete t.type;
272
- const g = JSON.stringify(t);
270
+ const p = JSON.stringify(t);
273
271
  return K(3, [
274
272
  "%cput%c %capi%c %cslide",
275
273
  c.OK,
@@ -281,7 +279,7 @@ class ka {
281
279
  t.id
282
280
  ]), await fetch(
283
281
  [this.url, "api", o, "slides", t.id].join("/"),
284
- { ...l, body: g, method: "put" }
282
+ { ...l, body: p, method: "put" }
285
283
  ).then((b) => {
286
284
  if (!b.ok)
287
285
  throw new Error(b.statusText);
@@ -301,14 +299,14 @@ class ka {
301
299
  ]), await fetch(
302
300
  [this.url, "api", o, _.PRESENTATIONS, t.id].join("/"),
303
301
  { ...l, method: "get" }
304
- ).then(async (g) => {
305
- if (!g.ok)
306
- throw new Error(`${g.status}`);
307
- return g;
308
- }).then((g) => g.json()).then((g) => {
302
+ ).then(async (p) => {
303
+ if (!p.ok)
304
+ throw new Error(`${p.status}`);
305
+ return p;
306
+ }).then((p) => p.json()).then((p) => {
309
307
  let b;
310
- return t.type = "presentations", g.query = t, g?.data && (b = structuredClone(g.data), g.data = b), g;
311
- }).catch((g) => ({ success: !1, message: `${g}`, data: null }));
308
+ return t.type = "presentations", p.query = t, p?.data && (b = structuredClone(p.data), p.data = b), p;
309
+ }).catch((p) => ({ success: !1, message: `${p}`, data: null }));
312
310
  }
313
311
  /**
314
312
  * Store slide definition
@@ -320,10 +318,10 @@ class ka {
320
318
  async storePresentation(t) {
321
319
  const { version: o } = this.options, l = this.formHeaders();
322
320
  delete t.update;
323
- const g = JSON.stringify(t);
321
+ const p = JSON.stringify(t);
324
322
  return K(2, ["%capi%c %cput", c.API, c.NONE, c.PRESENTATION, t.name]), await fetch(
325
323
  [this.url, "api", o, _.PRESENTATIONS, t.id].join("/"),
326
- { ...l, body: g, method: "put" }
324
+ { ...l, body: p, method: "put" }
327
325
  ).then((b) => {
328
326
  if (!b.ok)
329
327
  throw new Error(b.statusText);
@@ -341,16 +339,16 @@ class ka {
341
339
  ]), await fetch(
342
340
  [this.url, "api", o, _.PREFERENCES, t.id].join("/"),
343
341
  { ...l, method: "get" }
344
- ).then(async (g) => {
345
- if (!g.ok)
346
- throw new Error(`${g.status}`);
347
- return g;
348
- }).then((g) => g.json()).then((g) => (t.type = "preference", g.query = t, g)).catch((g) => ({ success: !1, message: `${g}`, data: null }));
342
+ ).then(async (p) => {
343
+ if (!p.ok)
344
+ throw new Error(`${p.status}`);
345
+ return p;
346
+ }).then((p) => p.json()).then((p) => (t.type = "preference", p.query = t, p)).catch((p) => ({ success: !1, message: `${p}`, data: null }));
349
347
  }
350
348
  async storePreference(t) {
351
349
  const { version: o } = this.options, l = this.formHeaders();
352
350
  delete t.update;
353
- const g = JSON.stringify({ data: t });
351
+ const p = JSON.stringify({ data: t });
354
352
  return console.info(
355
353
  "%capi%c %cstorePreference",
356
354
  c.API,
@@ -359,7 +357,7 @@ class ka {
359
357
  t.id
360
358
  ), await fetch(
361
359
  [this.url, "api", o, _.PREFERENCES, t.id].join("/"),
362
- { ...l, body: g, method: "put" }
360
+ { ...l, body: p, method: "put" }
363
361
  ).then((b) => {
364
362
  if (!b.ok)
365
363
  throw new Error(b.statusText);
@@ -411,15 +409,15 @@ class ka {
411
409
  ...l,
412
410
  method: "get"
413
411
  }
414
- ).then(async (g) => {
415
- if (!g.ok)
416
- throw new Error(`${g.status}`);
417
- return g;
418
- }).then((g) => g.json()).then((g) => ({
419
- data: { dashboards: g },
412
+ ).then(async (p) => {
413
+ if (!p.ok)
414
+ throw new Error(`${p.status}`);
415
+ return p;
416
+ }).then((p) => p.json()).then((p) => ({
417
+ data: { dashboards: p },
420
418
  message: "Dashboard Widgets loaded from api",
421
419
  success: !0
422
- })).catch((g) => ({ success: !1, message: `${g}`, data: null }));
420
+ })).catch((p) => ({ success: !1, message: `${p}`, data: null }));
423
421
  }
424
422
  async loadImages(t) {
425
423
  const { version: o } = this.options, l = this.headers();
@@ -431,18 +429,18 @@ class ka {
431
429
  ...l,
432
430
  method: "get"
433
431
  }
434
- ).then(async (g) => {
435
- if (!g.ok)
436
- throw new Error(`${g.status}`);
437
- return g;
438
- }).then((g) => g.json()).then((g) => ({
439
- data: { images: g.data },
432
+ ).then(async (p) => {
433
+ if (!p.ok)
434
+ throw new Error(`${p.status}`);
435
+ return p;
436
+ }).then((p) => p.json()).then((p) => ({
437
+ data: { images: p.data },
440
438
  message: "Images loaded via api",
441
439
  success: !0
442
- })).catch((g) => ({ success: !1, message: `${g}`, data: null }));
440
+ })).catch((p) => ({ success: !1, message: `${p}`, data: null }));
443
441
  }
444
442
  async storeImage(t) {
445
- const { version: o } = this.options, l = this.fileHeaders(), g = t;
443
+ const { version: o } = this.options, l = this.fileHeaders(), p = t;
446
444
  return console.info(
447
445
  "%capi%c %cstoreImage",
448
446
  c.API,
@@ -455,7 +453,7 @@ class ka {
455
453
  )}?folder=${t.get("folder")}`,
456
454
  {
457
455
  ...l,
458
- body: g,
456
+ body: p,
459
457
  method: "post"
460
458
  }
461
459
  ).then((b) => {
@@ -465,7 +463,7 @@ class ka {
465
463
  }).then((b) => b.json()).catch((b) => ({ succes: !1, message: b, data: [] }));
466
464
  }
467
465
  async deleteImage(t, o) {
468
- const { version: l } = this.options, g = this.formHeaders();
466
+ const { version: l } = this.options, p = this.formHeaders();
469
467
  return console.info(
470
468
  "%capi%c %cdeleteImage",
471
469
  c.API,
@@ -476,7 +474,7 @@ class ka {
476
474
  `${[this.url, "api", l, _.IMAGES, o].join(
477
475
  "/"
478
476
  )}?folder=${t}`,
479
- { ...g, method: "delete" }
477
+ { ...p, method: "delete" }
480
478
  ).then((b) => {
481
479
  if (!b.ok)
482
480
  throw new Error(b.statusText);
@@ -506,7 +504,7 @@ function Ma() {
506
504
  return e;
507
505
  }).apply(this, arguments);
508
506
  };
509
- function g(e, r, n) {
507
+ function p(e, r, n) {
510
508
  for (var a, s = 0, i = r.length; s < i; s++) !a && s in r || ((a = a || Array.prototype.slice.call(r, 0, s))[s] = r[s]);
511
509
  return e.concat(a || Array.prototype.slice.call(r));
512
510
  }
@@ -765,8 +763,8 @@ function Ma() {
765
763
  if (a._state === null) {
766
764
  if (i === a) throw new TypeError("A promise cannot be resolved with itself.");
767
765
  var u = a._lib && Ze();
768
- i && typeof i.then == "function" ? n(a, function(d, p) {
769
- i instanceof M ? i._then(d, p) : i.then(d, p);
766
+ i && typeof i.then == "function" ? n(a, function(d, g) {
767
+ i instanceof M ? i._then(d, g) : i.then(d, g);
770
768
  }) : (a._state = !0, a._value = i, rn(a)), u && qe();
771
769
  }
772
770
  }, dr.bind(null, a));
@@ -778,10 +776,10 @@ function Ma() {
778
776
  var lr = { get: function() {
779
777
  var e = B, r = Ct;
780
778
  function n(a, s) {
781
- var i = this, u = !e.global && (e !== B || r !== Ct), d = u && !Ie(), p = new M(function(y, w) {
779
+ var i = this, u = !e.global && (e !== B || r !== Ct), d = u && !Ie(), g = new M(function(y, w) {
782
780
  fr(i, new tn(an(a, e, u, d), an(s, e, u, d), y, w, e));
783
781
  });
784
- return this._consoleTask && (p._consoleTask = this._consoleTask), p;
782
+ return this._consoleTask && (g._consoleTask = this._consoleTask), g;
785
783
  }
786
784
  return n.prototype = ut, n;
787
785
  }, set: function(e) {
@@ -939,9 +937,9 @@ function Ma() {
939
937
  return De(function(s, i) {
940
938
  var u = B;
941
939
  u.unhandleds = [], u.onunhandled = i, u.finalize = Me(function() {
942
- var d, p = this;
940
+ var d, g = this;
943
941
  d = function() {
944
- p.unhandleds.length === 0 ? s() : i(p.unhandleds[0]);
942
+ g.unhandleds.length === 0 ? s() : i(g.unhandleds[0]);
945
943
  }, Rt.push(function y() {
946
944
  d(), Rt.splice(Rt.indexOf(y), 1);
947
945
  }), ++Le, dt(function() {
@@ -1064,12 +1062,12 @@ function Ma() {
1064
1062
  return r < e ? 1 : e < r ? -1 : 0;
1065
1063
  case "binary":
1066
1064
  return function(s, i) {
1067
- for (var u = s.length, d = i.length, p = u < d ? u : d, y = 0; y < p; ++y) if (s[y] !== i[y]) return s[y] < i[y] ? -1 : 1;
1065
+ for (var u = s.length, d = i.length, g = u < d ? u : d, y = 0; y < g; ++y) if (s[y] !== i[y]) return s[y] < i[y] ? -1 : 1;
1068
1066
  return u === d ? 0 : u < d ? -1 : 1;
1069
1067
  }(ln(e), ln(r));
1070
1068
  case "Array":
1071
1069
  return function(s, i) {
1072
- for (var u = s.length, d = i.length, p = u < d ? u : d, y = 0; y < p; ++y) {
1070
+ for (var u = s.length, d = i.length, g = u < d ? u : d, y = 0; y < g; ++y) {
1073
1071
  var w = H(s[y], i[y]);
1074
1072
  if (w !== 0) return w;
1075
1073
  }
@@ -1095,7 +1093,7 @@ function Ma() {
1095
1093
  }
1096
1094
  var d = Ze();
1097
1095
  try {
1098
- var p = a && a.db._novip === this.db._novip ? a === B.trans ? a._promise(e, u, n) : De(function() {
1096
+ var g = a && a.db._novip === this.db._novip ? a === B.trans ? a._promise(e, u, n) : De(function() {
1099
1097
  return a._promise(e, u, n);
1100
1098
  }, { trans: a, transless: B.transless || B }) : function y(w, f, O, m) {
1101
1099
  if (w.idbdb && (w._state.openComplete || B.letThrough || w._vip)) {
@@ -1130,9 +1128,9 @@ function Ma() {
1130
1128
  return y(w, f, O, m);
1131
1129
  });
1132
1130
  }(this.db, e, [this.name], u);
1133
- return i && (p._consoleTask = i, p = p.catch(function(y) {
1131
+ return i && (g._consoleTask = i, g = g.catch(function(y) {
1134
1132
  return console.trace(y), q(y);
1135
- })), p;
1133
+ })), g;
1136
1134
  } finally {
1137
1135
  d && qe();
1138
1136
  }
@@ -1152,32 +1150,32 @@ function Ma() {
1152
1150
  if (d.compound && r.every(function(y) {
1153
1151
  return 0 <= d.keyPath.indexOf(y);
1154
1152
  })) {
1155
- for (var p = 0; p < r.length; ++p) if (r.indexOf(d.keyPath[p]) === -1) return !1;
1153
+ for (var g = 0; g < r.length; ++g) if (r.indexOf(d.keyPath[g]) === -1) return !1;
1156
1154
  return !0;
1157
1155
  }
1158
1156
  return !1;
1159
- }).sort(function(d, p) {
1160
- return d.keyPath.length - p.keyPath.length;
1157
+ }).sort(function(d, g) {
1158
+ return d.keyPath.length - g.keyPath.length;
1161
1159
  })[0];
1162
1160
  if (n && this.db._maxKey !== Fe) {
1163
1161
  var i = n.keyPath.slice(0, r.length);
1164
- return this.where(i).equals(i.map(function(p) {
1165
- return e[p];
1162
+ return this.where(i).equals(i.map(function(g) {
1163
+ return e[g];
1166
1164
  }));
1167
1165
  }
1168
1166
  !n && pe && console.warn("The query ".concat(JSON.stringify(e), " on ").concat(this.name, " would benefit from a ") + "compound index [".concat(r.join("+"), "]"));
1169
1167
  var a = this.schema.idxByName;
1170
- function s(d, p) {
1171
- return H(d, p) === 0;
1168
+ function s(d, g) {
1169
+ return H(d, g) === 0;
1172
1170
  }
1173
- var u = r.reduce(function(f, p) {
1174
- var y = f[0], w = f[1], f = a[p], O = e[p];
1171
+ var u = r.reduce(function(f, g) {
1172
+ var y = f[0], w = f[1], f = a[g], O = e[g];
1175
1173
  return [y || f, y || !f ? Ue(w, f && f.multi ? function(m) {
1176
- return m = ve(m, p), $(m) && m.some(function(E) {
1174
+ return m = ve(m, g), $(m) && m.some(function(E) {
1177
1175
  return s(O, E);
1178
1176
  });
1179
1177
  } : function(m) {
1180
- return s(O, ve(m, p));
1178
+ return s(O, ve(m, g));
1181
1179
  }) : w];
1182
1180
  }, [null, null]), i = u[0], u = u[1];
1183
1181
  return i ? this.where(i.name).equals(e[i.keyPath]).filter(u) : n ? this.filter(u) : this.where(r).equals("");
@@ -1204,25 +1202,25 @@ function Ma() {
1204
1202
  function s() {
1205
1203
  return r !== null && r.apply(this, arguments) || this;
1206
1204
  }
1207
- (this.schema.mappedClass = e).prototype instanceof cn && (function(p, y) {
1205
+ (this.schema.mappedClass = e).prototype instanceof cn && (function(g, y) {
1208
1206
  if (typeof y != "function" && y !== null) throw new TypeError("Class extends value " + String(y) + " is not a constructor or null");
1209
1207
  function w() {
1210
- this.constructor = p;
1208
+ this.constructor = g;
1211
1209
  }
1212
- o(p, y), p.prototype = y === null ? Object.create(y) : (w.prototype = y.prototype, new w());
1210
+ o(g, y), g.prototype = y === null ? Object.create(y) : (w.prototype = y.prototype, new w());
1213
1211
  }(s, r = e), Object.defineProperty(s.prototype, "db", { get: function() {
1214
1212
  return n;
1215
1213
  }, enumerable: !1, configurable: !0 }), s.prototype.table = function() {
1216
1214
  return a;
1217
1215
  }, e = s);
1218
- for (var i = /* @__PURE__ */ new Set(), u = e.prototype; u; u = ge(u)) Object.getOwnPropertyNames(u).forEach(function(p) {
1219
- return i.add(p);
1216
+ for (var i = /* @__PURE__ */ new Set(), u = e.prototype; u; u = ge(u)) Object.getOwnPropertyNames(u).forEach(function(g) {
1217
+ return i.add(g);
1220
1218
  });
1221
- function d(p) {
1222
- if (!p) return p;
1219
+ function d(g) {
1220
+ if (!g) return g;
1223
1221
  var y, w = Object.create(e.prototype);
1224
- for (y in p) if (!i.has(y)) try {
1225
- w[y] = p[y];
1222
+ for (y in g) if (!i.has(y)) try {
1223
+ w[y] = g[y];
1226
1224
  } catch {
1227
1225
  }
1228
1226
  return w;
@@ -1289,11 +1287,11 @@ function Ma() {
1289
1287
  var y = a.schema.primKey, d = y.auto, y = y.keyPath;
1290
1288
  if (y && s) throw new L.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");
1291
1289
  if (s && s.length !== e.length) throw new L.InvalidArgument("Arguments objects and keys must have the same length");
1292
- var p = e.length, y = y && d ? e.map(Mt(y)) : e;
1290
+ var g = e.length, y = y && d ? e.map(Mt(y)) : e;
1293
1291
  return a.core.mutate({ trans: u, type: "add", keys: s, values: y, wantResults: i }).then(function(E) {
1294
1292
  var f = E.numFailures, O = E.results, m = E.lastResult, E = E.failures;
1295
1293
  if (f === 0) return i ? O : m;
1296
- throw new Je("".concat(a.name, ".bulkAdd(): ").concat(f, " of ").concat(p, " operations failed"), E);
1294
+ throw new Je("".concat(a.name, ".bulkAdd(): ").concat(f, " of ").concat(g, " operations failed"), E);
1297
1295
  });
1298
1296
  });
1299
1297
  }, J.prototype.bulkPut = function(e, r, n) {
@@ -1302,11 +1300,11 @@ function Ma() {
1302
1300
  var y = a.schema.primKey, d = y.auto, y = y.keyPath;
1303
1301
  if (y && s) throw new L.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");
1304
1302
  if (s && s.length !== e.length) throw new L.InvalidArgument("Arguments objects and keys must have the same length");
1305
- var p = e.length, y = y && d ? e.map(Mt(y)) : e;
1303
+ var g = e.length, y = y && d ? e.map(Mt(y)) : e;
1306
1304
  return a.core.mutate({ trans: u, type: "put", keys: s, values: y, wantResults: i }).then(function(E) {
1307
1305
  var f = E.numFailures, O = E.results, m = E.lastResult, E = E.failures;
1308
1306
  if (f === 0) return i ? O : m;
1309
- throw new Je("".concat(a.name, ".bulkPut(): ").concat(f, " of ").concat(p, " operations failed"), E);
1307
+ throw new Je("".concat(a.name, ".bulkPut(): ").concat(f, " of ").concat(g, " operations failed"), E);
1310
1308
  });
1311
1309
  });
1312
1310
  }, J.prototype.bulkUpdate = function(e) {
@@ -1317,7 +1315,7 @@ function Ma() {
1317
1315
  }), i = [];
1318
1316
  return this._trans("readwrite", function(u) {
1319
1317
  return n.getMany({ trans: u, keys: a, cache: "clone" }).then(function(d) {
1320
- var p = [], y = [];
1318
+ var g = [], y = [];
1321
1319
  e.forEach(function(f, O) {
1322
1320
  var m = f.key, E = f.changes, S = d[O];
1323
1321
  if (S) {
@@ -1327,11 +1325,11 @@ function Ma() {
1327
1325
  if (H(D, m) !== 0) throw new L.Constraint("Cannot update primary key in bulkUpdate()");
1328
1326
  } else ue(S, P, D);
1329
1327
  }
1330
- i.push(O), p.push(m), y.push(S);
1328
+ i.push(O), g.push(m), y.push(S);
1331
1329
  }
1332
1330
  });
1333
- var w = p.length;
1334
- return n.mutate({ trans: u, type: "put", keys: p, values: y, updates: { keys: a, changeSpecs: s } }).then(function(f) {
1331
+ var w = g.length;
1332
+ return n.mutate({ trans: u, type: "put", keys: g, values: y, updates: { keys: a, changeSpecs: s } }).then(function(f) {
1335
1333
  var O = f.numFailures, m = f.failures;
1336
1334
  if (O === 0) return w;
1337
1335
  for (var E = 0, S = Object.keys(m); E < S.length; E++) {
@@ -1357,7 +1355,7 @@ function Ma() {
1357
1355
  function ht(e) {
1358
1356
  function r(u, d) {
1359
1357
  if (d) {
1360
- for (var p = arguments.length, y = new Array(p - 1); --p; ) y[p - 1] = arguments[p];
1358
+ for (var g = arguments.length, y = new Array(g - 1); --g; ) y[g - 1] = arguments[g];
1361
1359
  return n[u].subscribe.apply(null, y), e;
1362
1360
  }
1363
1361
  if (typeof u == "string") return n[u];
@@ -1366,16 +1364,16 @@ function Ma() {
1366
1364
  r.addEventType = i;
1367
1365
  for (var a = 1, s = arguments.length; a < s; ++a) i(arguments[a]);
1368
1366
  return r;
1369
- function i(u, d, p) {
1367
+ function i(u, d, g) {
1370
1368
  if (typeof u != "object") {
1371
1369
  var y;
1372
1370
  d = d || ea;
1373
- var w = { subscribers: [], fire: p = p || Q, subscribe: function(f) {
1371
+ var w = { subscribers: [], fire: g = g || Q, subscribe: function(f) {
1374
1372
  w.subscribers.indexOf(f) === -1 && (w.subscribers.push(f), w.fire = d(w.fire, f));
1375
1373
  }, unsubscribe: function(f) {
1376
1374
  w.subscribers = w.subscribers.filter(function(O) {
1377
1375
  return O !== f;
1378
- }), w.fire = w.subscribers.reduce(d, p);
1376
+ }), w.fire = w.subscribers.reduce(d, g);
1379
1377
  } };
1380
1378
  return n[u] = r[u] = w;
1381
1379
  }
@@ -1424,13 +1422,13 @@ function Ma() {
1424
1422
  function Kt(e, r, n, a) {
1425
1423
  var s = e.replayFilter ? Ue(e.filter, e.replayFilter()) : e.filter;
1426
1424
  if (e.or) {
1427
- var i = {}, u = function(d, p, y) {
1425
+ var i = {}, u = function(d, g, y) {
1428
1426
  var w, f;
1429
- s && !s(p, y, function(O) {
1430
- return p.stop(O);
1427
+ s && !s(g, y, function(O) {
1428
+ return g.stop(O);
1431
1429
  }, function(O) {
1432
- return p.fail(O);
1433
- }) || ((f = "" + (w = p.primaryKey)) == "[object ArrayBuffer]" && (f = "" + new Uint8Array(w)), ie(i, f) || (i[f] = !0, r(d, p, y)));
1430
+ return g.fail(O);
1431
+ }) || ((f = "" + (w = g.primaryKey)) == "[object ArrayBuffer]" && (f = "" + new Uint8Array(w)), ie(i, f) || (i[f] = !0, r(d, g, y)));
1434
1432
  };
1435
1433
  return Promise.all([e.or._iterate(u, n), hn(fn(e, a, n), e.algorithm, u, !e.keysOnly && e.valueMapper)]);
1436
1434
  }
@@ -1461,7 +1459,7 @@ function Ma() {
1461
1459
  var r = this["@@propmod"];
1462
1460
  if (r.add !== void 0) {
1463
1461
  var n = r.add;
1464
- if ($(n)) return g(g([], $(e) ? e : [], !0), n).sort();
1462
+ if ($(n)) return p(p([], $(e) ? e : [], !0), n).sort();
1465
1463
  if (typeof n == "number") return (Number(e) || 0) + n;
1466
1464
  if (typeof n == "bigint") try {
1467
1465
  return BigInt(e) + n;
@@ -1525,15 +1523,15 @@ function Ma() {
1525
1523
  }).then(e);
1526
1524
  }, V.prototype.sortBy = function(e, r) {
1527
1525
  var n = e.split(".").reverse(), a = n[0], s = n.length - 1;
1528
- function i(p, y) {
1529
- return y ? i(p[n[y]], y - 1) : p[a];
1526
+ function i(g, y) {
1527
+ return y ? i(g[n[y]], y - 1) : g[a];
1530
1528
  }
1531
1529
  var u = this._ctx.dir === "next" ? 1 : -1;
1532
- function d(p, y) {
1533
- return H(i(p, s), i(y, s)) * u;
1530
+ function d(g, y) {
1531
+ return H(i(g, s), i(y, s)) * u;
1534
1532
  }
1535
- return this.toArray(function(p) {
1536
- return p.sort(d);
1533
+ return this.toArray(function(g) {
1534
+ return g.sort(d);
1537
1535
  }).then(r);
1538
1536
  }, V.prototype.toArray = function(e) {
1539
1537
  var r = this;
@@ -1660,7 +1658,7 @@ function Ma() {
1660
1658
  }
1661
1659
  return A;
1662
1660
  });
1663
- var d = n.table.core, f = d.schema.primaryKey, p = f.outbound, y = f.extractKey, w = 200, f = r.db._options.modifyChunkSize;
1661
+ var d = n.table.core, f = d.schema.primaryKey, g = f.outbound, y = f.extractKey, w = 200, f = r.db._options.modifyChunkSize;
1664
1662
  f && (w = typeof f == "object" ? f[d.name] || f["*"] || 200 : f);
1665
1663
  function O(v, D) {
1666
1664
  var P = D.failures, D = D.numFailures;
@@ -1675,9 +1673,9 @@ function Ma() {
1675
1673
  function A(D) {
1676
1674
  var I = Math.min(w, v.length - D);
1677
1675
  return d.getMany({ trans: a, keys: v.slice(D, D + I), cache: "immutable" }).then(function(N) {
1678
- for (var C = [], R = [], T = p ? [] : null, j = [], k = 0; k < I; ++k) {
1676
+ for (var C = [], R = [], T = g ? [] : null, j = [], k = 0; k < I; ++k) {
1679
1677
  var G = N[k], F = { value: $e(G), primKey: v[D + k] };
1680
- u.call(F, F.value, F) !== !1 && (F.value == null ? j.push(v[D + k]) : p || H(y(G), y(F.value)) === 0 ? (R.push(F.value), p && T.push(v[D + k])) : (j.push(v[D + k]), C.push(F.value)));
1678
+ u.call(F, F.value, F) !== !1 && (F.value == null ? j.push(v[D + k]) : g || H(y(G), y(F.value)) === 0 ? (R.push(F.value), g && T.push(v[D + k])) : (j.push(v[D + k]), C.push(F.value)));
1681
1679
  }
1682
1680
  return Promise.resolve(0 < C.length && d.mutate({ trans: a, type: "add", values: C }).then(function(U) {
1683
1681
  for (var z in U.failures) j.splice(parseInt(z), 1);
@@ -1709,8 +1707,8 @@ function Ma() {
1709
1707
  return e.table.core.count({ trans: n, query: { index: a, range: s } }).then(function(i) {
1710
1708
  return e.table.core.mutate({ trans: n, type: "deleteRange", range: s }).then(function(u) {
1711
1709
  var d = u.failures;
1712
- if (u.lastResult, u.results, u = u.numFailures, u) throw new Pt("Could not delete some values", Object.keys(d).map(function(p) {
1713
- return d[p];
1710
+ if (u.lastResult, u.results, u = u.numFailures, u) throw new Pt("Could not delete some values", Object.keys(d).map(function(g) {
1711
+ return d[g];
1714
1712
  }), i - u);
1715
1713
  return i - u;
1716
1714
  });
@@ -1737,7 +1735,7 @@ function Ma() {
1737
1735
  }).limit(0);
1738
1736
  }
1739
1737
  function Bt(e, r, n, a) {
1740
- var s, i, u, d, p, y, w, f = n.length;
1738
+ var s, i, u, d, g, y, w, f = n.length;
1741
1739
  if (!n.every(function(E) {
1742
1740
  return typeof E == "string";
1743
1741
  })) return le(e, sn);
@@ -1758,12 +1756,12 @@ function Ma() {
1758
1756
  });
1759
1757
  d = S.map(function(v) {
1760
1758
  return v.upper;
1761
- }), p = S.map(function(v) {
1759
+ }), g = S.map(function(v) {
1762
1760
  return v.lower;
1763
1761
  }), w = (y = E) === "next" ? "" : a;
1764
1762
  }
1765
1763
  O("next"), e = new e.Collection(e, function() {
1766
- return Re(d[0], p[f - 1] + a);
1764
+ return Re(d[0], g[f - 1] + a);
1767
1765
  }), e._ondirectionchange = function(E) {
1768
1766
  O(E);
1769
1767
  };
@@ -1772,7 +1770,7 @@ function Ma() {
1772
1770
  var A = E.key;
1773
1771
  if (typeof A != "string") return !1;
1774
1772
  var P = i(A);
1775
- if (r(P, p, m)) return !0;
1773
+ if (r(P, g, m)) return !0;
1776
1774
  for (var D = null, I = m; I < f; ++I) {
1777
1775
  var N = function(C, R, T, j, k, G) {
1778
1776
  for (var F = Math.min(C.length, j.length), U = -1, z = 0; z < F; ++z) {
@@ -1781,7 +1779,7 @@ function Ma() {
1781
1779
  k(C[z], de) < 0 && (U = z);
1782
1780
  }
1783
1781
  return F < j.length && G === "next" ? C + T.substr(C.length) : F < C.length && G === "prev" ? C.substr(0, T.length) : U < 0 ? null : C.substr(0, U) + j[U] + T.substr(U + 1);
1784
- }(A, P, d[I], p[I], u, y);
1782
+ }(A, P, d[I], g[I], u, y);
1785
1783
  N === null && D === null ? m = I + 1 : (D === null || 0 < u(D, N)) && (D = N);
1786
1784
  }
1787
1785
  return S(D !== null ? function() {
@@ -1864,8 +1862,8 @@ function Ma() {
1864
1862
  };
1865
1863
  var s = 0;
1866
1864
  return a._addAlgorithm(function(i, u, d) {
1867
- for (var p = i.key; 0 < n(p, r[s]); ) if (++s === r.length) return u(d), !1;
1868
- return n(p, r[s]) === 0 || (u(function() {
1865
+ for (var g = i.key; 0 < n(g, r[s]); ) if (++s === r.length) return u(d), !1;
1866
+ return n(g, r[s]) === 0 || (u(function() {
1869
1867
  i.continue(r[s]);
1870
1868
  }), !1);
1871
1869
  }), a;
@@ -1889,7 +1887,7 @@ function Ma() {
1889
1887
  if (!A.every(function(P) {
1890
1888
  return P[0] !== void 0 && P[1] !== void 0 && s(P[0], P[1]) <= 0;
1891
1889
  })) return le(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", L.InvalidArgument);
1892
- var p = !r || r.includeLowers !== !1, y = r && r.includeUppers === !0, w, f = s;
1890
+ var g = !r || r.includeLowers !== !1, y = r && r.includeUppers === !0, w, f = s;
1893
1891
  function O(P, D) {
1894
1892
  return f(P[0], D[0]);
1895
1893
  }
@@ -1911,12 +1909,12 @@ function Ma() {
1911
1909
  return 0 < s(P, w[m][1]);
1912
1910
  } : function(P) {
1913
1911
  return 0 <= s(P, w[m][1]);
1914
- }, S = p ? function(P) {
1912
+ }, S = g ? function(P) {
1915
1913
  return 0 < i(P, w[m][0]);
1916
1914
  } : function(P) {
1917
1915
  return 0 <= i(P, w[m][0]);
1918
1916
  }, v = E, A = new this.Collection(this, function() {
1919
- return Re(w[0][0], w[w.length - 1][1], !p, !y);
1917
+ return Re(w[0][0], w[w.length - 1][1], !g, !y);
1920
1918
  });
1921
1919
  return A._ondirectionchange = function(P) {
1922
1920
  f = P === "next" ? (v = E, s) : (v = S, i), w.sort(O);
@@ -1989,8 +1987,8 @@ function Ma() {
1989
1987
  if (n) return De(function() {
1990
1988
  var i = new M(function(u, d) {
1991
1989
  a._lock();
1992
- var p = r(u, d, a);
1993
- p && p.then && p.then(u, d);
1990
+ var g = r(u, d, a);
1991
+ g && g.then && g.then(u, d);
1994
1992
  });
1995
1993
  return i.finally(function() {
1996
1994
  return a._unlock();
@@ -2075,7 +2073,7 @@ function Ma() {
2075
2073
  function vt(e) {
2076
2074
  return e == null ? ":id" : typeof e == "string" ? e : "[".concat(e.join("+"), "]");
2077
2075
  }
2078
- function da(e, r, p) {
2076
+ function da(e, r, g) {
2079
2077
  function a(v) {
2080
2078
  if (v.type === 3) return null;
2081
2079
  if (v.type === 4) throw new Error("Cannot convert never type to IDBKeyRange");
@@ -2196,7 +2194,7 @@ function Ma() {
2196
2194
  });
2197
2195
  } };
2198
2196
  }
2199
- var i, u, d, w = (u = p, d = bn((i = e).objectStoreNames), { schema: { name: i.name, tables: d.map(function(O) {
2197
+ var i, u, d, w = (u = g, d = bn((i = e).objectStoreNames), { schema: { name: i.name, tables: d.map(function(O) {
2200
2198
  return u.objectStore(O);
2201
2199
  }).map(function(O) {
2202
2200
  var m = O.keyPath, v = O.autoIncrement, E = $(m), S = {}, v = { name: O.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: m == null, compound: E, keyPath: m, autoIncrement: v, unique: !0, extractKey: Or(m) }, indexes: bn(O.indexNames).map(function(A) {
@@ -2208,13 +2206,13 @@ function Ma() {
2208
2206
  return S[vt(A)];
2209
2207
  } };
2210
2208
  return S[":id"] = v.primaryKey, m != null && (S[vt(m)] = v.primaryKey), v;
2211
- }) }, hasGetAll: 0 < d.length && "getAll" in u.objectStore(d[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) }), p = w.schema, y = w.hasGetAll, w = p.tables.map(s), f = {};
2209
+ }) }, hasGetAll: 0 < d.length && "getAll" in u.objectStore(d[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) }), g = w.schema, y = w.hasGetAll, w = g.tables.map(s), f = {};
2212
2210
  return w.forEach(function(O) {
2213
2211
  return f[O.name] = O;
2214
2212
  }), { stack: "dbcore", transaction: e.transaction.bind(e), table: function(O) {
2215
2213
  if (!f[O]) throw new Error("Table '".concat(O, "' not found"));
2216
2214
  return f[O];
2217
- }, MIN_KEY: -1 / 0, MAX_KEY: bt(r), schema: p };
2215
+ }, MIN_KEY: -1 / 0, MAX_KEY: bt(r), schema: g };
2218
2216
  }
2219
2217
  function fa(e, r, n, a) {
2220
2218
  var s = n.IDBKeyRange;
@@ -2235,13 +2233,13 @@ function Ma() {
2235
2233
  n.forEach(function(s) {
2236
2234
  var i = a[s];
2237
2235
  r.forEach(function(u) {
2238
- var d = function p(y, w) {
2239
- return Fn(y, w) || (y = ge(y)) && p(y, w);
2236
+ var d = function g(y, w) {
2237
+ return Fn(y, w) || (y = ge(y)) && g(y, w);
2240
2238
  }(u, s);
2241
2239
  (!d || "value" in d && d.value === void 0) && (u === e.Transaction.prototype || u instanceof e.Transaction ? Ae(u, s, { get: function() {
2242
2240
  return this.table(s);
2243
- }, set: function(p) {
2244
- _t(this, s, { value: p, writable: !0, configurable: !0, enumerable: !0 });
2241
+ }, set: function(g) {
2242
+ _t(this, s, { value: g, writable: !0, configurable: !0, enumerable: !0 });
2245
2243
  } }) : u[s] = new e.Table(s, i));
2246
2244
  });
2247
2245
  });
@@ -2261,7 +2259,7 @@ function Ma() {
2261
2259
  i.create(n), i._completion.catch(a);
2262
2260
  var u = i._reject.bind(i), d = B.transless || B;
2263
2261
  De(function() {
2264
- return B.trans = i, B.transless = d, r !== 0 ? (Lt(e, n), y = r, ((p = i).storeNames.includes("$meta") ? p.table("$meta").get("version").then(function(w) {
2262
+ return B.trans = i, B.transless = d, r !== 0 ? (Lt(e, n), y = r, ((g = i).storeNames.includes("$meta") ? g.table("$meta").get("version").then(function(w) {
2265
2263
  return w ?? y;
2266
2264
  }) : M.resolve(y)).then(function(w) {
2267
2265
  return O = w, m = i, E = n, S = [], w = (f = e)._versions, v = f._dbSchema = Ut(0, f.idbdb, E), (w = w.filter(function(A) {
@@ -2320,7 +2318,7 @@ function Ma() {
2320
2318
  }), Lt(e, n), void M.follow(function() {
2321
2319
  return e.on.populate.fire(i);
2322
2320
  }).catch(u));
2323
- var p, y;
2321
+ var g, y;
2324
2322
  });
2325
2323
  }
2326
2324
  function pa(e, r) {
@@ -2331,8 +2329,8 @@ function Ma() {
2331
2329
  var i = function(u) {
2332
2330
  if (u.change.length || u.recreate) return console.warn("Unable to patch indexes of table ".concat(u.name, " because it has changes on the type of index or primary key.")), { value: void 0 };
2333
2331
  var d = r.objectStore(u.name);
2334
- u.add.forEach(function(p) {
2335
- pe && console.debug("Dexie upgrade patch: Creating missing index ".concat(u.name, ".").concat(p.src)), Ft(d, p);
2332
+ u.add.forEach(function(g) {
2333
+ pe && console.debug("Dexie upgrade patch: Creating missing index ".concat(u.name, ".").concat(g.src)), Ft(d, g);
2336
2334
  });
2337
2335
  }(s[a]);
2338
2336
  if (typeof i == "object") return i.value;
@@ -2347,10 +2345,10 @@ function Ma() {
2347
2345
  var u = { name: n, def: i, recreate: !1, del: [], add: [], change: [] };
2348
2346
  if ("" + (s.primKey.keyPath || "") != "" + (i.primKey.keyPath || "") || s.primKey.auto !== i.primKey.auto) u.recreate = !0, a.change.push(u);
2349
2347
  else {
2350
- var d = s.idxByName, p = i.idxByName, y = void 0;
2351
- for (y in d) p[y] || u.del.push(y);
2352
- for (y in p) {
2353
- var w = d[y], f = p[y];
2348
+ var d = s.idxByName, g = i.idxByName, y = void 0;
2349
+ for (y in d) g[y] || u.del.push(y);
2350
+ for (y in g) {
2351
+ var w = d[y], f = g[y];
2354
2352
  w ? w.src !== f.src && u.change.push(f) : u.add.push(f);
2355
2353
  }
2356
2354
  (0 < u.del.length || 0 < u.add.length || 0 < u.change.length) && a.change.push(u);
@@ -2376,8 +2374,8 @@ function Ma() {
2376
2374
  function Ut(e, r, n) {
2377
2375
  var a = {};
2378
2376
  return At(r.objectStoreNames, 0).forEach(function(s) {
2379
- for (var i = n.objectStore(s), u = wr(yn(y = i.keyPath), y || "", !0, !1, !!i.autoIncrement, y && typeof y != "string", !0), d = [], p = 0; p < i.indexNames.length; ++p) {
2380
- var w = i.index(i.indexNames[p]), y = w.keyPath, w = wr(w.name, y, !!w.unique, !!w.multiEntry, !1, y && typeof y != "string", !1);
2377
+ for (var i = n.objectStore(s), u = wr(yn(y = i.keyPath), y || "", !0, !1, !!i.autoIncrement, y && typeof y != "string", !0), d = [], g = 0; g < i.indexNames.length; ++g) {
2378
+ var w = i.index(i.indexNames[g]), y = w.keyPath, w = wr(w.name, y, !!w.unique, !!w.multiEntry, !1, y && typeof y != "string", !1);
2381
2379
  d.push(w);
2382
2380
  }
2383
2381
  a[s] = Sr(s, u, d);
@@ -2388,8 +2386,8 @@ function Ma() {
2388
2386
  var i = a[s], u = n.objectStore(i);
2389
2387
  e._hasGetAll = "getAll" in u;
2390
2388
  for (var d = 0; d < u.indexNames.length; ++d) {
2391
- var p = u.indexNames[d], y = u.index(p).keyPath, w = typeof y == "string" ? y : "[" + At(y).join("+") + "]";
2392
- !r[i] || (y = r[i].idxByName[w]) && (y.name = p, delete r[i].idxByName[w], r[i].idxByName[p] = y);
2389
+ var g = u.indexNames[d], y = u.index(g).keyPath, w = typeof y == "string" ? y : "[" + At(y).join("+") + "]";
2390
+ !r[i] || (y = r[i].idxByName[w]) && (y.name = g, delete r[i].idxByName[w], r[i].idxByName[g] = y);
2393
2391
  }
2394
2392
  }
2395
2393
  typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && b.WorkerGlobalScope && b instanceof b.WorkerGlobalScope && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604 && (e._hasGetAll = !1);
@@ -2457,9 +2455,9 @@ function Ma() {
2457
2455
  }
2458
2456
  }
2459
2457
  function wt(e, r) {
2460
- Rr(r) || function n(a, p) {
2461
- var i = p.from, u = p.to, d = p.l, p = p.r;
2462
- Et(a, i, u), d && n(a, d), p && n(a, p);
2458
+ Rr(r) || function n(a, g) {
2459
+ var i = g.from, u = g.to, d = g.l, g = g.r;
2460
+ Et(a, i, u), d && n(a, d), g && n(a, g);
2463
2461
  }(e, r);
2464
2462
  }
2465
2463
  function wn(e, r) {
@@ -2542,23 +2540,23 @@ function Ma() {
2542
2540
  var u, d = /^idb\:\/\/(.*)\/(.*)\//.exec(i);
2543
2541
  d && (i = d[1], d = d[2], (u = ze["idb://".concat(i, "/").concat(d)]) && _n(u, e, n, r));
2544
2542
  }
2545
- n.forEach(function(p) {
2546
- return p();
2543
+ n.forEach(function(g) {
2544
+ return g();
2547
2545
  });
2548
2546
  }
2549
2547
  function _n(e, r, n, a) {
2550
2548
  for (var s = [], i = 0, u = Object.entries(e.queries.query); i < u.length; i++) {
2551
- for (var d = u[i], p = d[0], y = [], w = 0, f = d[1]; w < f.length; w++) {
2549
+ for (var d = u[i], g = d[0], y = [], w = 0, f = d[1]; w < f.length; w++) {
2552
2550
  var O = f[w];
2553
2551
  Tr(r, O.obsSet) ? O.subscribers.forEach(function(v) {
2554
2552
  return n.add(v);
2555
2553
  }) : a && y.push(O);
2556
2554
  }
2557
- a && s.push([p, y]);
2555
+ a && s.push([g, y]);
2558
2556
  }
2559
2557
  if (a) for (var m = 0, E = s; m < E.length; m++) {
2560
- var S = E[m], p = S[0], y = S[1];
2561
- e.queries.query[p] = y;
2558
+ var S = E[m], g = S[0], y = S[1];
2559
+ e.queries.query[g] = y;
2562
2560
  }
2563
2561
  }
2564
2562
  function ya(e) {
@@ -2610,14 +2608,14 @@ function Ma() {
2610
2608
  return M.reject(O);
2611
2609
  });
2612
2610
  }
2613
- var p, y = r.dbReadyResolve, w = null, f = !1;
2611
+ var g, y = r.dbReadyResolve, w = null, f = !1;
2614
2612
  return M.race([a, (typeof navigator > "u" ? M.resolve() : !navigator.userAgentData && /Safari\//.test(navigator.userAgent) && !/Chrom(e|ium)\//.test(navigator.userAgent) && indexedDB.databases ? new Promise(function(O) {
2615
2613
  function m() {
2616
2614
  return indexedDB.databases().finally(O);
2617
2615
  }
2618
- p = setInterval(m, 100), m();
2616
+ g = setInterval(m, 100), m();
2619
2617
  }).finally(function() {
2620
- return clearInterval(p);
2618
+ return clearInterval(g);
2621
2619
  }) : Promise.resolve()).then(d)]).then(function() {
2622
2620
  return u(), r.onReadyBeingFired = [], M.resolve(Nr(function() {
2623
2621
  return e.on.ready.fire(e.vip);
@@ -2657,9 +2655,9 @@ function Ma() {
2657
2655
  return e.throw(i);
2658
2656
  });
2659
2657
  function s(i) {
2660
- return function(p) {
2661
- var d = i(p), p = d.value;
2662
- return d.done ? p : p && typeof p.then == "function" ? p.then(n, a) : $(p) ? Promise.all(p).then(n, a) : n(p);
2658
+ return function(g) {
2659
+ var d = i(g), g = d.value;
2660
+ return d.done ? g : g && typeof g.then == "function" ? g.then(n, a) : $(g) ? Promise.all(g).then(n, a) : n(g);
2663
2661
  };
2664
2662
  }
2665
2663
  return s(r)();
@@ -2678,8 +2676,8 @@ function Ma() {
2678
2676
  }), A;
2679
2677
  }
2680
2678
  r = u(a.primaryKey.keyPath, 0, a.primaryKey), s[":id"] = [r];
2681
- for (var d = 0, p = a.indexes; d < p.length; d++) {
2682
- var y = p[d];
2679
+ for (var d = 0, g = a.indexes; d < g.length; d++) {
2680
+ var y = g[d];
2683
2681
  u(y.keyPath, 0, y);
2684
2682
  }
2685
2683
  function w(f) {
@@ -2729,15 +2727,15 @@ function Ma() {
2729
2727
  return l(l({}, e), { table: function(r) {
2730
2728
  var n = e.table(r), a = n.schema.primaryKey;
2731
2729
  return l(l({}, n), { mutate: function(s) {
2732
- var i = B.trans, u = i.table(r).hook, d = u.deleting, p = u.creating, y = u.updating;
2730
+ var i = B.trans, u = i.table(r).hook, d = u.deleting, g = u.creating, y = u.updating;
2733
2731
  switch (s.type) {
2734
2732
  case "add":
2735
- if (p.fire === Q) break;
2733
+ if (g.fire === Q) break;
2736
2734
  return i._promise("readwrite", function() {
2737
2735
  return w(s);
2738
2736
  }, !0);
2739
2737
  case "put":
2740
- if (p.fire === Q && y.fire === Q) break;
2738
+ if (g.fire === Q && y.fire === Q) break;
2741
2739
  return i._promise("readwrite", function() {
2742
2740
  return w(s);
2743
2741
  }, !0);
@@ -2763,10 +2761,10 @@ function Ma() {
2763
2761
  function w(f) {
2764
2762
  var O, m, E, S = B.trans, v = f.keys || Mr(a, f);
2765
2763
  if (!v) throw new Error("Keys missing");
2766
- return (f = f.type === "add" || f.type === "put" ? l(l({}, f), { keys: v }) : l({}, f)).type !== "delete" && (f.values = g([], f.values)), f.keys && (f.keys = g([], f.keys)), O = n, E = v, ((m = f).type === "add" ? Promise.resolve([]) : O.getMany({ trans: m.trans, keys: E, cache: "immutable" })).then(function(A) {
2764
+ return (f = f.type === "add" || f.type === "put" ? l(l({}, f), { keys: v }) : l({}, f)).type !== "delete" && (f.values = p([], f.values)), f.keys && (f.keys = p([], f.keys)), O = n, E = v, ((m = f).type === "add" ? Promise.resolve([]) : O.getMany({ trans: m.trans, keys: E, cache: "immutable" })).then(function(A) {
2767
2765
  var P = v.map(function(D, I) {
2768
2766
  var N, C, R, T = A[I], j = { onerror: null, onsuccess: null };
2769
- return f.type === "delete" ? d.fire.call(j, D, T, S) : f.type === "add" || T === void 0 ? (N = p.fire.call(j, D, f.values[I], S), D == null && N != null && (f.keys[I] = D = N, a.outbound || ue(f.values[I], a.keyPath, D))) : (N = jr(T, f.values[I]), (C = y.fire.call(j, N, D, T, S)) && (R = f.values[I], Object.keys(C).forEach(function(k) {
2767
+ return f.type === "delete" ? d.fire.call(j, D, T, S) : f.type === "add" || T === void 0 ? (N = g.fire.call(j, D, f.values[I], S), D == null && N != null && (f.keys[I] = D = N, a.outbound || ue(f.values[I], a.keyPath, D))) : (N = jr(T, f.values[I]), (C = y.fire.call(j, N, D, T, S)) && (R = f.values[I], Object.keys(C).forEach(function(k) {
2770
2768
  ie(R, k) ? R[k] = C[k] : ue(R, k, C[k]);
2771
2769
  }))), j;
2772
2770
  });
@@ -2829,7 +2827,7 @@ function Ma() {
2829
2827
  if (B.subscr && s !== "readonly") throw new L.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(B.querier));
2830
2828
  return e.transaction(a, s, i);
2831
2829
  }, table: function(a) {
2832
- var s = e.table(a), i = s.schema, u = i.primaryKey, f = i.indexes, d = u.extractKey, p = u.outbound, y = u.autoIncrement && f.filter(function(m) {
2830
+ var s = e.table(a), i = s.schema, u = i.primaryKey, f = i.indexes, d = u.extractKey, g = u.outbound, y = u.autoIncrement && f.filter(function(m) {
2833
2831
  return m.compound && m.keyPath.includes(u.keyPath);
2834
2832
  }), w = l(l({}, s), { mutate: function(m) {
2835
2833
  function E(k) {
@@ -2881,10 +2879,10 @@ function Ma() {
2881
2879
  }, D = P(""), I = P(":dels"), S = O[m](E), v = S[0], S = S[1];
2882
2880
  if ((m === "query" && v.isPrimaryKey && !E.values ? I : P(v.name || "")).add(S), !v.isPrimaryKey) {
2883
2881
  if (m !== "count") {
2884
- var N = m === "query" && p && E.values && s.query(l(l({}, E), { values: !1 }));
2882
+ var N = m === "query" && g && E.values && s.query(l(l({}, E), { values: !1 }));
2885
2883
  return s[m].apply(this, arguments).then(function(T) {
2886
2884
  if (m === "query") {
2887
- if (p && E.values) return N.then(function(F) {
2885
+ if (g && E.values) return N.then(function(F) {
2888
2886
  return F = F.result, D.addKeys(F), T;
2889
2887
  });
2890
2888
  var j = E.values ? T.result.map(d) : T.result;
@@ -2927,13 +2925,13 @@ function Ma() {
2927
2925
  }
2928
2926
  function Nn(e, r, O, a, s, i) {
2929
2927
  if (!O || O.length === 0) return e;
2930
- var u = r.query.index, d = u.multiEntry, p = r.query.range, y = a.schema.primaryKey.extractKey, w = u.extractKey, f = (u.lowLevelIndex || u).extractKey, O = O.reduce(function(m, E) {
2928
+ var u = r.query.index, d = u.multiEntry, g = r.query.range, y = a.schema.primaryKey.extractKey, w = u.extractKey, f = (u.lowLevelIndex || u).extractKey, O = O.reduce(function(m, E) {
2931
2929
  var S = m, v = [];
2932
2930
  if (E.type === "add" || E.type === "put") for (var A = new ae(), P = E.values.length - 1; 0 <= P; --P) {
2933
2931
  var D, I = E.values[P], N = y(I);
2934
2932
  A.hasKey(N) || (D = w(I), (d && $(D) ? D.some(function(k) {
2935
- return Gr(k, p);
2936
- }) : Gr(D, p)) && (A.addKey(N), v.push(I)));
2933
+ return Gr(k, g);
2934
+ }) : Gr(D, g)) && (A.addKey(N), v.push(I)));
2937
2935
  }
2938
2936
  switch (E.type) {
2939
2937
  case "add":
@@ -3011,7 +3009,7 @@ function Ma() {
3011
3009
  var r = e.schema.name;
3012
3010
  return l(l({}, e), { transaction: function(n, a, s) {
3013
3011
  var i, u, d = e.transaction(n, a, s);
3014
- return a === "readwrite" && (u = (i = new AbortController()).signal, s = function(p) {
3012
+ return a === "readwrite" && (u = (i = new AbortController()).signal, s = function(g) {
3015
3013
  return function() {
3016
3014
  if (i.abort(), a === "readwrite") {
3017
3015
  for (var y = /* @__PURE__ */ new Set(), w = 0, f = n; w < f.length; w++) {
@@ -3020,14 +3018,14 @@ function Ma() {
3020
3018
  var E = e.table(O), S = m.optimisticOps.filter(function(G) {
3021
3019
  return G.trans === d;
3022
3020
  });
3023
- if (d._explicit && p && d.mutatedParts) for (var v = 0, A = Object.values(m.queries.query); v < A.length; v++) for (var P = 0, D = (C = A[v]).slice(); P < D.length; P++) Tr((R = D[P]).obsSet, d.mutatedParts) && (je(C, R), R.subscribers.forEach(function(G) {
3021
+ if (d._explicit && g && d.mutatedParts) for (var v = 0, A = Object.values(m.queries.query); v < A.length; v++) for (var P = 0, D = (C = A[v]).slice(); P < D.length; P++) Tr((R = D[P]).obsSet, d.mutatedParts) && (je(C, R), R.subscribers.forEach(function(G) {
3024
3022
  return y.add(G);
3025
3023
  }));
3026
3024
  else if (0 < S.length) {
3027
3025
  m.optimisticOps = m.optimisticOps.filter(function(G) {
3028
3026
  return G.trans !== d;
3029
3027
  });
3030
- for (var I = 0, N = Object.values(m.queries.query); I < N.length; I++) for (var C, R, T, j = 0, k = (C = N[I]).slice(); j < k.length; j++) (R = k[j]).res != null && d.mutatedParts && (p && !R.dirty ? (T = Object.isFrozen(R.res), T = Nn(R.res, R.req, S, E, R, T), R.dirty ? (je(C, R), R.subscribers.forEach(function(G) {
3028
+ for (var I = 0, N = Object.values(m.queries.query); I < N.length; I++) for (var C, R, T, j = 0, k = (C = N[I]).slice(); j < k.length; j++) (R = k[j]).res != null && d.mutatedParts && (g && !R.dirty ? (T = Object.isFrozen(R.res), T = Nn(R.res, R.req, S, E, R, T), R.dirty ? (je(C, R), R.subscribers.forEach(function(G) {
3031
3029
  return y.add(G);
3032
3030
  })) : T !== R.res && (R.res = T, R.promise = M.resolve({ result: T }))) : (R.dirty && je(C, R), R.subscribers.forEach(function(G) {
3033
3031
  return y.add(G);
@@ -3047,24 +3045,24 @@ function Ma() {
3047
3045
  var u = B.trans;
3048
3046
  if (s.outbound || u.db._options.cache === "disabled" || u.explicit || u.idbtrans.mode !== "readwrite") return a.mutate(i);
3049
3047
  var d = ze["idb://".concat(r, "/").concat(n)];
3050
- return d ? (u = a.mutate(i), i.type !== "add" && i.type !== "put" || !(50 <= i.values.length || Mr(s, i).some(function(p) {
3051
- return p == null;
3052
- })) ? (d.optimisticOps.push(i), i.mutatedParts && Qt(i.mutatedParts), u.then(function(p) {
3053
- 0 < p.numFailures && (je(d.optimisticOps, i), (p = In(0, i, p)) && d.optimisticOps.push(p), i.mutatedParts && Qt(i.mutatedParts));
3048
+ return d ? (u = a.mutate(i), i.type !== "add" && i.type !== "put" || !(50 <= i.values.length || Mr(s, i).some(function(g) {
3049
+ return g == null;
3050
+ })) ? (d.optimisticOps.push(i), i.mutatedParts && Qt(i.mutatedParts), u.then(function(g) {
3051
+ 0 < g.numFailures && (je(d.optimisticOps, i), (g = In(0, i, g)) && d.optimisticOps.push(g), i.mutatedParts && Qt(i.mutatedParts));
3054
3052
  }), u.catch(function() {
3055
3053
  je(d.optimisticOps, i), i.mutatedParts && Qt(i.mutatedParts);
3056
- })) : u.then(function(p) {
3054
+ })) : u.then(function(g) {
3057
3055
  var y = In(0, l(l({}, i), { values: i.values.map(function(w, f) {
3058
3056
  var O;
3059
- return p.failures[f] ? w : (w = (O = s.keyPath) !== null && O !== void 0 && O.includes(".") ? $e(w) : l({}, w), ue(w, s.keyPath, p.results[f]), w);
3060
- }) }), p);
3057
+ return g.failures[f] ? w : (w = (O = s.keyPath) !== null && O !== void 0 && O.includes(".") ? $e(w) : l({}, w), ue(w, s.keyPath, g.results[f]), w);
3058
+ }) }), g);
3061
3059
  d.optimisticOps.push(y), queueMicrotask(function() {
3062
3060
  return i.mutatedParts && Qt(i.mutatedParts);
3063
3061
  });
3064
3062
  }), u) : a.mutate(i);
3065
3063
  }, query: function(i) {
3066
3064
  if (!Pn(B, a) || !Dn("query", i)) return a.query(i);
3067
- var u = ((y = B.trans) === null || y === void 0 ? void 0 : y.db._options.cache) === "immutable", f = B, d = f.requery, p = f.signal, y = function(E, S, v, A) {
3065
+ var u = ((y = B.trans) === null || y === void 0 ? void 0 : y.db._options.cache) === "immutable", f = B, d = f.requery, g = f.signal, y = function(E, S, v, A) {
3068
3066
  var P = ze["idb://".concat(E, "/").concat(S)];
3069
3067
  if (!P) return [];
3070
3068
  if (!(S = P.queries[v])) return [null, !1, P, null];
@@ -3093,7 +3091,7 @@ function Ma() {
3093
3091
  return E;
3094
3092
  }).catch(function(E) {
3095
3093
  return m && w && je(m, w), Promise.reject(E);
3096
- }), w = { obsSet: i.obsSet, promise: f, subscribers: /* @__PURE__ */ new Set(), type: "query", req: i, dirty: !1 }, m ? m.push(w) : (m = [w], (O = O || (ze["idb://".concat(r, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[i.query.index.name || ""] = m)), Oa(w, m, d, p), w.promise.then(function(E) {
3094
+ }), w = { obsSet: i.obsSet, promise: f, subscribers: /* @__PURE__ */ new Set(), type: "query", req: i, dirty: !1 }, m ? m.push(w) : (m = [w], (O = O || (ze["idb://".concat(r, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[i.query.index.name || ""] = m)), Oa(w, m, d, g), w.promise.then(function(E) {
3097
3095
  return { result: Nn(E.result, i, O?.optimisticOps, a, w, u) };
3098
3096
  });
3099
3097
  } });
@@ -3163,8 +3161,8 @@ function Ma() {
3163
3161
  r.close(e);
3164
3162
  var d = r._deps.indexedDB.deleteDatabase(r.name);
3165
3163
  d.onsuccess = Z(function() {
3166
- var p, y, w;
3167
- p = r._deps, y = r.name, w = p.indexedDB, p = p.IDBKeyRange, Ir(w) || y === jt || Dr(w, p).delete(y).catch(Q), s();
3164
+ var g, y, w;
3165
+ g = r._deps, y = r.name, w = g.indexedDB, g = g.IDBKeyRange, Ir(w) || y === jt || Dr(w, g).delete(y).catch(Q), s();
3168
3166
  }), d.onerror = me(i), d.onblocked = r._fireOnBlocked;
3169
3167
  }
3170
3168
  if (n) throw new L.InvalidArgument("Invalid closeOptions argument to db.delete()");
@@ -3225,7 +3223,7 @@ function Ma() {
3225
3223
  f(y);
3226
3224
  }) : q(y);
3227
3225
  }
3228
- var p = function y(w, f, O, m, E) {
3226
+ var g = function y(w, f, O, m, E) {
3229
3227
  return M.resolve().then(function() {
3230
3228
  var S = B.transless || B, v = w._createTransaction(f, O, w._dbSchema, m);
3231
3229
  if (v.explicit = !0, S = { trans: v, transless: S }, m) v.idbtrans = m.idbtrans;
@@ -3253,9 +3251,9 @@ function Ma() {
3253
3251
  });
3254
3252
  });
3255
3253
  }.bind(null, this, i, u, s, n);
3256
- return s ? s._promise(i, p, "lock") : B.trans ? We(B.transless, function() {
3257
- return a._whenReady(p);
3258
- }) : this._whenReady(p);
3254
+ return s ? s._promise(i, g, "lock") : B.trans ? We(B.transless, function() {
3255
+ return a._whenReady(g);
3256
+ }) : this._whenReady(g);
3259
3257
  }, ee.prototype.table = function(e) {
3260
3258
  if (!ie(this._allTables, e)) throw new L.InvalidTable("Table ".concat(e, " does not exist"));
3261
3259
  return this._allTables[e];
@@ -3265,7 +3263,7 @@ function Ma() {
3265
3263
  this._middlewares = {}, this.verno = 0;
3266
3264
  var a = ee.dependencies;
3267
3265
  this._options = r = l({ addons: ee.addons, autoOpen: !0, indexedDB: a.indexedDB, IDBKeyRange: a.IDBKeyRange, cache: "cloned" }, r), this._deps = { indexedDB: r.indexedDB, IDBKeyRange: r.IDBKeyRange }, a = r.addons, this._dbSchema = {}, this._versions = [], this._storeNames = [], this._allTables = {}, this.idbdb = null, this._novip = this;
3268
- var s, i, u, d, p, y = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: Q, dbReadyPromise: null, cancelOpen: Q, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: r.autoOpen };
3266
+ var s, i, u, d, g, y = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: Q, dbReadyPromise: null, cancelOpen: Q, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: r.autoOpen };
3269
3267
  y.dbReadyPromise = new M(function(f) {
3270
3268
  y.dbReadyResolve = f;
3271
3269
  }), y.openCanceller = new M(function(f, O) {
@@ -3303,14 +3301,14 @@ function Ma() {
3303
3301
  });
3304
3302
  })), this.Version = (d = this, gt(ma.prototype, function(f) {
3305
3303
  this.db = d, this._cfg = { version: f, storesSource: null, dbschema: {}, tables: {}, contentUpgrade: null };
3306
- })), this.WhereClause = (p = this, gt(mn.prototype, function(f, O, m) {
3307
- if (this.db = p, this._ctx = { table: f, index: O === ":id" ? null : O, or: m }, this._cmp = this._ascending = H, this._descending = function(E, S) {
3304
+ })), this.WhereClause = (g = this, gt(mn.prototype, function(f, O, m) {
3305
+ if (this.db = g, this._ctx = { table: f, index: O === ":id" ? null : O, or: m }, this._cmp = this._ascending = H, this._descending = function(E, S) {
3308
3306
  return H(S, E);
3309
3307
  }, this._max = function(E, S) {
3310
3308
  return 0 < H(E, S) ? E : S;
3311
3309
  }, this._min = function(E, S) {
3312
3310
  return H(E, S) < 0 ? E : S;
3313
- }, this._IDBKeyRange = p._deps.IDBKeyRange, !this._IDBKeyRange) throw new L.MissingAPI();
3311
+ }, this._IDBKeyRange = g._deps.IDBKeyRange, !this._IDBKeyRange) throw new L.MissingAPI();
3314
3312
  })), this.on("versionchange", function(f) {
3315
3313
  0 < f.newVersion ? console.warn("Another connection wants to upgrade database '".concat(n.name, "'. Closing db now to resume the upgrade.")) : console.warn("Another connection wants to delete database '".concat(n.name, "'. Closing db now to resume the delete request.")), n.close({ disableAutoOpen: !1 });
3316
3314
  }), this.on("blocked", function(f) {
@@ -3355,7 +3353,7 @@ function Ma() {
3355
3353
  }
3356
3354
  function Tn(e) {
3357
3355
  var r, n = !1, a = new Aa(function(s) {
3358
- var i = ar(e), u, d = !1, p = {}, y = {}, w = { get closed() {
3356
+ var i = ar(e), u, d = !1, g = {}, y = {}, w = { get closed() {
3359
3357
  return d;
3360
3358
  }, unsubscribe: function() {
3361
3359
  d || (d = !0, u && u.abort(), f && Te.storagemutated.unsubscribe(m));
@@ -3364,10 +3362,10 @@ function Ma() {
3364
3362
  var f = !1, O = function() {
3365
3363
  return gr(E);
3366
3364
  }, m = function(S) {
3367
- Yt(p, S), Tr(y, p) && O();
3365
+ Yt(g, S), Tr(y, g) && O();
3368
3366
  }, E = function() {
3369
3367
  var S, v, A;
3370
- !d && Zt.indexedDB && (p = {}, S = {}, u && u.abort(), u = new AbortController(), A = function(P) {
3368
+ !d && Zt.indexedDB && (g = {}, S = {}, u && u.abort(), u = new AbortController(), A = function(P) {
3371
3369
  var D = Ze();
3372
3370
  try {
3373
3371
  i && et();
@@ -3377,7 +3375,7 @@ function Ma() {
3377
3375
  D && qe();
3378
3376
  }
3379
3377
  }(v = { subscr: S, signal: u.signal, requery: O, querier: e, trans: null }), Promise.resolve(A).then(function(P) {
3380
- n = !0, r = P, d || v.signal.aborted || (p = {}, function(D) {
3378
+ n = !0, r = P, d || v.signal.aborted || (g = {}, function(D) {
3381
3379
  for (var I in D) if (ie(D, I)) return;
3382
3380
  return 1;
3383
3381
  }(y = S) || f || (Te(yt, m), f = !0), gr(function() {
@@ -3611,10 +3609,10 @@ class Mn {
3611
3609
  } : (o.message = `Dashboard ${t.id} retrieved from storage`, o.success = !0, o);
3612
3610
  };
3613
3611
  getDashboards = async (t) => {
3614
- const o = (b) => t?.id === b.id, l = (b) => t?.name ? b.name.includes(t?.name) : !1, g = await this.db.table(_.DASHBOARD).toArray().then((b) => t?.id ? b.filter(o) : b).then((b) => t?.name ? b.filter(l) : b).catch(() => {
3612
+ const o = (b) => t?.id === b.id, l = (b) => t?.name ? b.name.includes(t?.name) : !1, p = await this.db.table(_.DASHBOARD).toArray().then((b) => t?.id ? b.filter(o) : b).then((b) => t?.name ? b.filter(l) : b).catch(() => {
3615
3613
  K(2, ["%cstorage", c.STORAGE, X.DASHBOARD_LOAD, t]);
3616
3614
  });
3617
- return g !== void 0 && K(3, [
3615
+ return p !== void 0 && K(3, [
3618
3616
  "%cstorage%c %cdashboards",
3619
3617
  c.STORAGE,
3620
3618
  c.NONE,
@@ -3622,9 +3620,9 @@ class Mn {
3622
3620
  t
3623
3621
  ]), {
3624
3622
  // @ts-ignore
3625
- data: g !== void 0 ? { dashboards: g, query: t } : null,
3626
- message: g !== void 0 ? "Dashboards loaded from storage" : "Dashboards load error",
3627
- success: g !== void 0
3623
+ data: p !== void 0 ? { dashboards: p, query: t } : null,
3624
+ message: p !== void 0 ? "Dashboards loaded from storage" : "Dashboards load error",
3625
+ success: p !== void 0
3628
3626
  };
3629
3627
  };
3630
3628
  /**
@@ -3693,9 +3691,9 @@ class Mn {
3693
3691
  };
3694
3692
  const o = t?.order ?? "utc", l = Math.floor(Date.now() / 1e3);
3695
3693
  o !== "utc" && (t.since = l - 60 * 60 * 24 * 30), this.options.delay != 0 ? t.before = l - (this.options.delay || 0) : t.before = l;
3696
- const g = ($) => $.utc > (t?.since || 0), b = ($) => $.utc < (t?.before || l), x = ($) => $?.visible !== 0;
3694
+ const p = ($) => $.utc > (t?.since || 0), b = ($) => $.utc < (t?.before || l), x = ($) => $?.visible !== 0;
3697
3695
  try {
3698
- const te = await this.db.table(_.TOPICS).where("widget_id").equals(t.widget).filter(x).filter(g).filter(b).reverse().limit(t?.limit ?? 25).sortBy(o);
3696
+ const te = await this.db.table(_.TOPICS).where("widget_id").equals(t.widget).filter(x).filter(p).filter(b).reverse().limit(t?.limit ?? 25).sortBy(o);
3699
3697
  if (te.length === 0)
3700
3698
  return {
3701
3699
  data: null,
@@ -3757,7 +3755,7 @@ class Mn {
3757
3755
  if (t.type !== _.MESSAGES)
3758
3756
  return 400;
3759
3757
  const l = o.data.title;
3760
- let g = 0;
3758
+ let p = 0;
3761
3759
  return await o.data.messages.forEach(async (b) => {
3762
3760
  b.id !== null && (b.topics[0] = {
3763
3761
  message_id: b.id,
@@ -3771,7 +3769,7 @@ class Mn {
3771
3769
  data: b,
3772
3770
  expires: b.expires
3773
3771
  }).catch((x) => {
3774
- g++, K(4, [
3772
+ p++, K(4, [
3775
3773
  "%cset%c %cstorage",
3776
3774
  c.KO,
3777
3775
  c.NONE,
@@ -3793,7 +3791,7 @@ class Mn {
3793
3791
  utc: b.utc,
3794
3792
  expires: b.expires
3795
3793
  }).catch((x) => {
3796
- g++, K(4, [
3794
+ p++, K(4, [
3797
3795
  "%cset%c %cstorage",
3798
3796
  c.KO,
3799
3797
  c.NONE,
@@ -3806,7 +3804,7 @@ class Mn {
3806
3804
  }), await o.data.topics.forEach(async (x) => {
3807
3805
  const $ = x.message_id, te = x.visible ? 1 : 0, ge = x.title;
3808
3806
  await this.db.table(_.TOPICS).where("message_id").equals($).modify({ visible: te }).catch((Ce) => {
3809
- g++, K(4, [
3807
+ p++, K(4, [
3810
3808
  "%cset%c %cstorage",
3811
3809
  c.KO,
3812
3810
  c.NONE,
@@ -3818,7 +3816,7 @@ class Mn {
3818
3816
  ]);
3819
3817
  });
3820
3818
  }));
3821
- }), g === 0 ? 201 : 400;
3819
+ }), p === 0 ? 201 : 400;
3822
3820
  };
3823
3821
  /**
3824
3822
  * Retrieve Series Data
@@ -3924,7 +3922,7 @@ class Mn {
3924
3922
  * @returns IResponse
3925
3923
  */
3926
3924
  getWidgets = async (t) => {
3927
- const o = (x) => t?.dashboard === x.dashboard_id, l = (x) => t?.type === x.type, g = (x) => t?.name ? x.name.includes(t?.name) : !1, b = await this.db.table(_.WIDGET).toArray().then((x) => t?.dashboard ? x.filter(o) : x).then((x) => t?.type ? x.filter(l) : x).then((x) => t?.name ? x.filter(g) : x).catch(() => {
3925
+ const o = (x) => t?.dashboard === x.dashboard_id, l = (x) => t?.type === x.type, p = (x) => t?.name ? x.name.includes(t?.name) : !1, b = await this.db.table(_.WIDGET).toArray().then((x) => t?.dashboard ? x.filter(o) : x).then((x) => t?.type ? x.filter(l) : x).then((x) => t?.name ? x.filter(p) : x).catch(() => {
3928
3926
  K(2, ["%cstorage", c.STORAGE, X.WIDGET_LOAD, t]);
3929
3927
  });
3930
3928
  return b !== void 0 && K(3, [
@@ -4014,7 +4012,7 @@ class Mn {
4014
4012
  * @returns IResponse
4015
4013
  */
4016
4014
  getSlides = async (t) => {
4017
- const o = ($) => t?.id ? $.id === t.id : !1, l = ($) => t?.name ? $.name.includes(t?.name) : !1, g = ($) => t?.presentation_id ? $.presentation_id === t.presentation_id : !1, x = await this.db.table(_.SLIDE).toArray().then(($) => t?.presentation_id ? $.filter(g) : $).then(($) => t?.id ? $.filter(o) : $).then(($) => t?.name ? $.filter(l) : $);
4015
+ const o = ($) => t?.id ? $.id === t.id : !1, l = ($) => t?.name ? $.name.includes(t?.name) : !1, p = ($) => t?.presentation_id ? $.presentation_id === t.presentation_id : !1, x = await this.db.table(_.SLIDE).toArray().then(($) => t?.presentation_id ? $.filter(p) : $).then(($) => t?.id ? $.filter(o) : $).then(($) => t?.name ? $.filter(l) : $);
4018
4016
  return x && x.sort(($, te) => $.order_index - te.order_index), x !== void 0 && K(3, ["%cstorage%c %cslides", c.STORAGE, c.NONE, c.SLIDE, t]), {
4019
4017
  // @ts-ignore
4020
4018
  data: x,
@@ -4078,8 +4076,8 @@ class Mn {
4078
4076
  * @returns IResponse
4079
4077
  */
4080
4078
  getPresentations = async (t) => {
4081
- const o = (b) => t?.name ? b.name.includes(t?.name) : !1, g = await this.db.table(_.PRESENTATION).toArray().then((b) => t?.name ? b.filter(o) : b);
4082
- return g !== void 0 && K(3, [
4079
+ const o = (b) => t?.name ? b.name.includes(t?.name) : !1, p = await this.db.table(_.PRESENTATION).toArray().then((b) => t?.name ? b.filter(o) : b);
4080
+ return p !== void 0 && K(3, [
4083
4081
  "%cstorage%c %cpresentations",
4084
4082
  c.STORAGE,
4085
4083
  c.NONE,
@@ -4087,10 +4085,10 @@ class Mn {
4087
4085
  t
4088
4086
  ]), {
4089
4087
  // @ts-ignore
4090
- data: g,
4088
+ data: p,
4091
4089
  query: t,
4092
- message: g !== void 0 ? "Presentations loaded from storage" : "Presentations load error",
4093
- success: g !== void 0
4090
+ message: p !== void 0 ? "Presentations loaded from storage" : "Presentations load error",
4091
+ success: p !== void 0
4094
4092
  };
4095
4093
  };
4096
4094
  /**
@@ -4149,8 +4147,8 @@ class Mn {
4149
4147
  * @returns IResponse
4150
4148
  */
4151
4149
  getPreferences = async (t) => {
4152
- const o = (b) => t?.id ? t.id = b.id : !1, g = await this.db.table(_.SLIDE).toArray().then((b) => t?.id ? b.filter(o) : b);
4153
- return g !== void 0 && K(3, [
4150
+ const o = (b) => t?.id ? t.id = b.id : !1, p = await this.db.table(_.SLIDE).toArray().then((b) => t?.id ? b.filter(o) : b);
4151
+ return p !== void 0 && K(3, [
4154
4152
  "%cstorage%c %cpreferences",
4155
4153
  c.STORAGE,
4156
4154
  c.NONE,
@@ -4158,9 +4156,9 @@ class Mn {
4158
4156
  t
4159
4157
  ]), {
4160
4158
  // @ts-ignore
4161
- data: g !== void 0 ? { prefrences: g, query: t } : null,
4162
- message: g !== void 0 ? "Preferences loaded from storage" : "Preferences load error",
4163
- success: g !== void 0
4159
+ data: p !== void 0 ? { prefrences: p, query: t } : null,
4160
+ message: p !== void 0 ? "Preferences loaded from storage" : "Preferences load error",
4161
+ success: p !== void 0
4164
4162
  };
4165
4163
  };
4166
4164
  /**
@@ -4193,8 +4191,8 @@ class Mn {
4193
4191
  * @returns IResponse
4194
4192
  */
4195
4193
  getImages = async (t) => {
4196
- const o = (b) => t?.id ? b.includes(t.id) : !1, g = await this.db.table(_.IMAGES).toArray().then((b) => t?.id ? b.filter(o) : b);
4197
- return g !== void 0 && K(3, [
4194
+ const o = (b) => t?.id ? b.includes(t.id) : !1, p = await this.db.table(_.IMAGES).toArray().then((b) => t?.id ? b.filter(o) : b);
4195
+ return p !== void 0 && K(3, [
4198
4196
  "%cstorage%c %cimages",
4199
4197
  c.STORAGE,
4200
4198
  c.NONE,
@@ -4202,9 +4200,9 @@ class Mn {
4202
4200
  t
4203
4201
  ]), {
4204
4202
  // @ts-ignore
4205
- data: g !== void 0 ? { images: g, query: t } : null,
4206
- message: g !== void 0 ? "Images loaded from storage" : "Images load error",
4207
- success: g !== void 0
4203
+ data: p !== void 0 ? { images: p, query: t } : null,
4204
+ message: p !== void 0 ? "Images loaded from storage" : "Images load error",
4205
+ success: p !== void 0
4208
4206
  };
4209
4207
  };
4210
4208
  /**
@@ -4245,13 +4243,13 @@ function Ka(h, t) {
4245
4243
  const l = () => {
4246
4244
  if (o)
4247
4245
  return o;
4248
- const g = indexedDB.open(h);
4249
- return g.onupgradeneeded = () => g.result.createObjectStore(t), o = zr(g), o.then((b) => {
4246
+ const p = indexedDB.open(h);
4247
+ return p.onupgradeneeded = () => p.result.createObjectStore(t), o = zr(p), o.then((b) => {
4250
4248
  b.onclose = () => o = void 0;
4251
4249
  }, () => {
4252
4250
  }), o;
4253
4251
  };
4254
- return (g, b) => l().then((x) => b(x.transaction(t, g).objectStore(t)));
4252
+ return (p, b) => l().then((x) => b(x.transaction(t, p).objectStore(t)));
4255
4253
  }
4256
4254
  let Fr;
4257
4255
  function Gn() {
@@ -4291,12 +4289,12 @@ class Kn {
4291
4289
  if (!o.success)
4292
4290
  return 400;
4293
4291
  const l = Y(t);
4294
- return delete o.success, delete o.message, await ke(l, o).then(() => 201).catch((g) => (console.error(
4292
+ return delete o.success, delete o.message, await ke(l, o).then(() => 201).catch((p) => (console.error(
4295
4293
  "%cstorage",
4296
4294
  c.STORAGE,
4297
4295
  _.CLOUD,
4298
4296
  t,
4299
- g.message
4297
+ p.message
4300
4298
  ), 400));
4301
4299
  };
4302
4300
  /**
@@ -4309,12 +4307,12 @@ class Kn {
4309
4307
  if (!o.success)
4310
4308
  return 400;
4311
4309
  const l = Y(t);
4312
- return delete o.success, delete o.message, await ke(l, o).then(() => 201).catch((g) => (console.error(
4310
+ return delete o.success, delete o.message, await ke(l, o).then(() => 201).catch((p) => (console.error(
4313
4311
  "%cstorage",
4314
4312
  c.STORAGE,
4315
4313
  _.SERIES,
4316
4314
  t,
4317
- g.message
4315
+ p.message
4318
4316
  ), 400));
4319
4317
  };
4320
4318
  /**
@@ -4327,12 +4325,12 @@ class Kn {
4327
4325
  if (!o.success)
4328
4326
  return 400;
4329
4327
  const l = Y(t);
4330
- return delete o.success, delete o.message, await ke(l, o).then(() => 201).catch((g) => (console.error(
4328
+ return delete o.success, delete o.message, await ke(l, o).then(() => 201).catch((p) => (console.error(
4331
4329
  "%cstorage",
4332
4330
  c.STORAGE,
4333
4331
  _.MESSAGES,
4334
4332
  t,
4335
- g.message
4333
+ p.message
4336
4334
  ), 400));
4337
4335
  };
4338
4336
  cleanMessages = async (t) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((o) => o(0)));
@@ -4368,15 +4366,15 @@ class Kn {
4368
4366
  data: null,
4369
4367
  message: `Dashboard ${t.data.id} saved to storage`,
4370
4368
  success: !0
4371
- })).catch((g) => (console.error(
4369
+ })).catch((p) => (console.error(
4372
4370
  "%cstorage",
4373
4371
  c.STORAGE,
4374
4372
  _.WIDGET,
4375
4373
  t,
4376
- g.message
4374
+ p.message
4377
4375
  ), {
4378
4376
  data: null,
4379
- message: `Slide ${t.data.id} save error: ${g.message}`,
4377
+ message: `Slide ${t.data.id} save error: ${p.message}`,
4380
4378
  success: !1
4381
4379
  }));
4382
4380
  };
@@ -4409,15 +4407,15 @@ class Kn {
4409
4407
  data: null,
4410
4408
  message: `Widget ${t.data.id} saved to storage`,
4411
4409
  success: !0
4412
- })).catch((g) => (console.error(
4410
+ })).catch((p) => (console.error(
4413
4411
  "%cstorage",
4414
4412
  c.STORAGE,
4415
4413
  _.WIDGET,
4416
4414
  t,
4417
- g.message
4415
+ p.message
4418
4416
  ), {
4419
4417
  data: null,
4420
- message: `Slide ${t.data.id} save error: ${g.message}`,
4418
+ message: `Slide ${t.data.id} save error: ${p.message}`,
4421
4419
  success: !1
4422
4420
  }));
4423
4421
  };
@@ -4470,15 +4468,15 @@ class Kn {
4470
4468
  data: null,
4471
4469
  message: `Slide ${t.data.id} saved to storage`,
4472
4470
  success: !0
4473
- })).catch((g) => (console.error(
4471
+ })).catch((p) => (console.error(
4474
4472
  "%cstorage",
4475
4473
  c.STORAGE,
4476
4474
  _.SLIDE,
4477
4475
  t,
4478
- g.message
4476
+ p.message
4479
4477
  ), {
4480
4478
  data: null,
4481
- message: `Slide ${t.data.id} save error: ${g.message}`,
4479
+ message: `Slide ${t.data.id} save error: ${p.message}`,
4482
4480
  success: !1
4483
4481
  }));
4484
4482
  };
@@ -4506,15 +4504,15 @@ class Kn {
4506
4504
  data: null,
4507
4505
  message: `Presentation ${t.data.id} saved to storage`,
4508
4506
  success: !0
4509
- })).catch((g) => (console.error(
4507
+ })).catch((p) => (console.error(
4510
4508
  "%cstorage",
4511
4509
  c.STORAGE,
4512
4510
  _.PRESENTATION,
4513
4511
  t,
4514
- g.message
4512
+ p.message
4515
4513
  ), {
4516
4514
  data: null,
4517
- message: `Presentation ${t.data.id} save error: ${g.message}`,
4515
+ message: `Presentation ${t.data.id} save error: ${p.message}`,
4518
4516
  success: !1
4519
4517
  }));
4520
4518
  };
@@ -4625,8 +4623,8 @@ class Bn {
4625
4623
  const l = Y(t);
4626
4624
  try {
4627
4625
  return localStorage.setObject(l, o), 201;
4628
- } catch (g) {
4629
- return console.error("%cstorage", c.STORAGE, _.CLOUD, t, g), 400;
4626
+ } catch (p) {
4627
+ return console.error("%cstorage", c.STORAGE, _.CLOUD, t, p), 400;
4630
4628
  }
4631
4629
  };
4632
4630
  /**
@@ -4639,8 +4637,8 @@ class Bn {
4639
4637
  const l = Y(t);
4640
4638
  try {
4641
4639
  return localStorage.setObject(l, o), 201;
4642
- } catch (g) {
4643
- return console.error("%cstorage", c.STORAGE, _.SERIES, t, g), 400;
4640
+ } catch (p) {
4641
+ return console.error("%cstorage", c.STORAGE, _.SERIES, t, p), 400;
4644
4642
  }
4645
4643
  };
4646
4644
  /**
@@ -4653,8 +4651,8 @@ class Bn {
4653
4651
  const l = Y(t);
4654
4652
  try {
4655
4653
  return localStorage.setObject(l, o), 200;
4656
- } catch (g) {
4657
- return console.error("%cstorage", c.STORAGE, _.MESSAGES, t, g), 400;
4654
+ } catch (p) {
4655
+ return console.error("%cstorage", c.STORAGE, _.MESSAGES, t, p), 400;
4658
4656
  }
4659
4657
  };
4660
4658
  cleanMessages = async (t) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((o) => o(0)));
@@ -4960,8 +4958,8 @@ class Ln {
4960
4958
  const l = Y(t);
4961
4959
  try {
4962
4960
  return sessionStorage.setObject(l, o), 201;
4963
- } catch (g) {
4964
- return console.error("%cstorage", c.STORAGE, _.CLOUD, t, g), 400;
4961
+ } catch (p) {
4962
+ return console.error("%cstorage", c.STORAGE, _.CLOUD, t, p), 400;
4965
4963
  }
4966
4964
  };
4967
4965
  /**
@@ -4974,8 +4972,8 @@ class Ln {
4974
4972
  const l = Y(t);
4975
4973
  try {
4976
4974
  return sessionStorage.setObject(l, o), 201;
4977
- } catch (g) {
4978
- return console.error("%cstorage", c.STORAGE, _.SERIES, t, g), 400;
4975
+ } catch (p) {
4976
+ return console.error("%cstorage", c.STORAGE, _.SERIES, t, p), 400;
4979
4977
  }
4980
4978
  };
4981
4979
  /**
@@ -4988,8 +4986,8 @@ class Ln {
4988
4986
  const l = Y(t);
4989
4987
  try {
4990
4988
  return sessionStorage.setObject(l, o), 200;
4991
- } catch (g) {
4992
- return console.error("%cstorage", c.STORAGE, _.MESSAGES, t, g), 400;
4989
+ } catch (p) {
4990
+ return console.error("%cstorage", c.STORAGE, _.MESSAGES, t, p), 400;
4993
4991
  }
4994
4992
  };
4995
4993
  cleanMessages = async (t) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((o) => o(0)));
@@ -5295,8 +5293,8 @@ class Wn {
5295
5293
  const l = Y(t);
5296
5294
  try {
5297
5295
  return window.BuzzCasting.WidgetData[l] = o, 201;
5298
- } catch (g) {
5299
- return console.error("%cstorage", c.STORAGE, "set", t, g), 400;
5296
+ } catch (p) {
5297
+ return console.error("%cstorage", c.STORAGE, "set", t, p), 400;
5300
5298
  }
5301
5299
  };
5302
5300
  /**
@@ -5309,8 +5307,8 @@ class Wn {
5309
5307
  const l = Y(t);
5310
5308
  try {
5311
5309
  return window.BuzzCasting.WidgetData[l] = o, 201;
5312
- } catch (g) {
5313
- return console.error("%cstorage", c.STORAGE, "set", t, g), 400;
5310
+ } catch (p) {
5311
+ return console.error("%cstorage", c.STORAGE, "set", t, p), 400;
5314
5312
  }
5315
5313
  };
5316
5314
  /**
@@ -5323,8 +5321,8 @@ class Wn {
5323
5321
  const l = Y(t);
5324
5322
  try {
5325
5323
  return window.BuzzCasting.WidgetData[l] = o, 201;
5326
- } catch (g) {
5327
- return console.error("%cstorage", c.STORAGE, "set", t, g), 400;
5324
+ } catch (p) {
5325
+ return console.error("%cstorage", c.STORAGE, "set", t, p), 400;
5328
5326
  }
5329
5327
  };
5330
5328
  cleanMessages = async (t) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((o) => o(0)));
@@ -5615,36 +5613,36 @@ class Ja {
5615
5613
  o.push(this.api.get(l));
5616
5614
  }), o.forEach(async (l) => {
5617
5615
  await l.then(
5618
- async (g) => await this.processResponse(g)
5616
+ async (p) => await this.processResponse(p)
5619
5617
  );
5620
5618
  });
5621
5619
  };
5622
5620
  processResponse = async (t) => {
5623
5621
  let o, l = 400;
5624
5622
  if (t.success === !0) {
5625
- const g = this.subscribers[t.query.widget];
5623
+ const p = this.subscribers[t.query.widget];
5626
5624
  let b = "";
5627
5625
  switch (t.query.type) {
5628
5626
  case _.MESSAGES:
5629
5627
  let x;
5630
5628
  x = t.data.messages.filter(
5631
5629
  ($) => $.id !== null
5632
- ), t.data.messages = x, b = t.data.messages.length > 0 ? Wr(t.data.messages[0].utc) : "none", g?.hash && g.hash === b ? (K(3, [
5630
+ ), t.data.messages = x, b = t.data.messages.length > 0 ? Wr(t.data.messages[0].utc) : "none", p?.hash && p.hash === b ? (K(3, [
5633
5631
  "%cload%c %cleanMessages",
5634
5632
  c.NO_UPDATES,
5635
5633
  c.NONE,
5636
5634
  c.MESSAGES,
5637
5635
  t.query.widget
5638
- ]), K(4, ["%cmessages", c.MESSAGES, t]), l = 204) : (o = t, g.hash = b, l = await this.sm?.setMessages(t.query, t).then(async ($) => ($ = 201, this.broadcastUpdate($, t))));
5636
+ ]), K(4, ["%cmessages", c.MESSAGES, t]), l = 204) : (o = t, p.hash = b, l = await this.sm?.setMessages(t.query, t).then(async ($) => ($ = 201, this.broadcastUpdate($, t))));
5639
5637
  break;
5640
5638
  case _.CLOUD:
5641
- b = Wr(t.data.cloud), g?.hash && g.hash === b ? (K(3, [
5639
+ b = Wr(t.data.cloud), p?.hash && p.hash === b ? (K(3, [
5642
5640
  "%cload%c %ccloud",
5643
5641
  c.NO_UPDATES,
5644
5642
  c.NONE,
5645
5643
  c.CLOUD,
5646
5644
  t.query.widget
5647
- ]), K(4, ["%ccloud", c.CLOUD, t.query]), l = 204) : (g.hash = b, o = {
5645
+ ]), K(4, ["%ccloud", c.CLOUD, t.query]), l = 204) : (p.hash = b, o = {
5648
5646
  data: {
5649
5647
  cloud: t.data
5650
5648
  },
@@ -5654,13 +5652,13 @@ class Ja {
5654
5652
  }, l = await this.sm?.setCloud(t.query, o.data).then(($) => this.broadcastUpdate($, t)));
5655
5653
  break;
5656
5654
  case _.SERIES:
5657
- b = Wr(t.data.series), g?.hash && g.hash === b ? (K(3, [
5655
+ b = Wr(t.data.series), p?.hash && p.hash === b ? (K(3, [
5658
5656
  "%cload%c %cseries",
5659
5657
  c.NO_UPDATES,
5660
5658
  c.NONE,
5661
5659
  c.SERIES,
5662
5660
  t.query.widget
5663
- ]), K(4, ["%cseries", c.SERIES, t]), l = 204) : (g.hash = b, o = {
5661
+ ]), K(4, ["%cseries", c.SERIES, t]), l = 204) : (p.hash = b, o = {
5664
5662
  data: t.data,
5665
5663
  message: t.message,
5666
5664
  success: t.success,
@@ -5687,16 +5685,16 @@ class Ja {
5687
5685
  t.query
5688
5686
  ]), t.query.type) {
5689
5687
  case _.MESSAGES:
5690
- return await this.sm?.getMessages(t.query).then((g) => {
5691
- this.broadcastUpdate(201, g);
5688
+ return await this.sm?.getMessages(t.query).then((p) => {
5689
+ this.broadcastUpdate(201, p);
5692
5690
  });
5693
5691
  case _.CLOUD:
5694
- return await this.sm?.getCloud(t.query).then((g) => {
5695
- this.broadcastUpdate(201, g);
5692
+ return await this.sm?.getCloud(t.query).then((p) => {
5693
+ this.broadcastUpdate(201, p);
5696
5694
  });
5697
5695
  case _.SERIES:
5698
- return await this.sm?.getSeries(t.query).then((g) => {
5699
- this.broadcastUpdate(201, g);
5696
+ return await this.sm?.getSeries(t.query).then((p) => {
5697
+ this.broadcastUpdate(201, p);
5700
5698
  });
5701
5699
  }
5702
5700
  return l;
@@ -5930,10 +5928,10 @@ class Za {
5930
5928
  */
5931
5929
  constructor(t, o, l) {
5932
5930
  this.element = t, this.callbacks = o, l = typeof l < "u" ? l : "buzzcasting-app";
5933
- let g;
5934
- g = { ...t.dataset }, delete g.hmr, g.presentation = window.BuzzCasting.getOptions()?.presentation ?? `${l} not found`, this.query = g, Da(t);
5931
+ let p;
5932
+ p = { ...t.dataset }, delete p.hmr, p.presentation = window.BuzzCasting.getOptions()?.presentation ?? `${l} not found`, this.query = p, Da(t);
5935
5933
  const b = window.BuzzCasting.getOptions();
5936
- this.storageReader = new Ba(b), this.broadcastChannel = new BroadcastChannel(g.presentation), this.broadcastListener();
5934
+ this.storageReader = new Ba(b), this.broadcastChannel = new BroadcastChannel(p.presentation), this.broadcastListener();
5937
5935
  }
5938
5936
  addCallbackListener(t) {
5939
5937
  this.callbacks.push(t);
@@ -5950,8 +5948,8 @@ class Za {
5950
5948
  case X.WIDGET_UPDATE:
5951
5949
  try {
5952
5950
  if (l.dashboard === t.dashboard && l.widget === t.widget) {
5953
- const g = await this.getData();
5954
- g?.success && (K(4, [
5951
+ const p = await this.getData();
5952
+ p?.success && (K(4, [
5955
5953
  "%cset%c %cbroadcast%c %cwidget",
5956
5954
  c.OK,
5957
5955
  c.NONE,
@@ -5960,7 +5958,7 @@ class Za {
5960
5958
  c.WIDGET,
5961
5959
  this.query
5962
5960
  ]), this.callbacks.forEach(async (b) => {
5963
- b(g);
5961
+ b(p);
5964
5962
  }));
5965
5963
  }
5966
5964
  } catch {