buzzcasting-storage 3.0.9 → 3.0.11

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 Ai = (d, r, s) => r in d ? xi(d, r, { enumerable: !0, configurable: !0, writable: !0, value: s }) : d[r] = s;
3
3
  var k = (d, r, s) => Ai(d, typeof r != "symbol" ? r + "" : r, s);
4
- var N = /* @__PURE__ */ ((d) => (d.MESSAGES = "messages", d.CLOUD = "cloud", d.SERIES = "series", d.TOPICS = "topics", d.WIDGET = "widget", d.WIDGETS = "widgets", d.SLIDE = "slide", d))(N || {}), w = /* @__PURE__ */ ((d) => (d.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", d.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", d.BROADCAST = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", d.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", d.CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", d.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", d.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", d.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", d.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", d.NONE = "color:transparent;background-color:transparent;", d.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", d.SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", d.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", d.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", d.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", d.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", d.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", d))(w || {}), re = /* @__PURE__ */ ((d) => (d.ADD_SLIDE = "addSlide", d.APP_READY = "appReady", d.API_UPDATE = "apiUpdate", d.APPROVE_MESSAGE = "approveMessage", d.CHANNEL = "channel", d.CLEAN_MESSAGES = "cleanMessages", d.CLOSE_MODAL = "closeModal", d.CLOSE_BUILDER_MODAL = "closeBuilderModal", d.ERROR = "error", d.HIDE_MESSAGE = "hideMessage", d.HIDE_LABELS = "hideLabels", d.PAUSE_PRESENTATION = "pausePresentation", d.PRESENTATION_READY = "presentationReady", d.PREV_SLIDE = "prevSlide", d.RELOAD_PRESENTATION = "reloadPresentation", d.SHOW_MODAL = "showModal", d.STAR_MESSAGE = "starMessage", d.GOTO_SLIDE = "gotoSlide", d.NEXT_SLIDE = "nextSlide", d.SHOW_BUILDER_MODAL = "showBuilderModal", d.SLIDE_DID_LOAD = "slideDidLoad", d.SLIDE_GOTO = "slideGoto", d.SLIDE_READY = "slideReady", d.SLIDE_LOAD = "loadSlide", d.SLIDE_STORE = "storeSlide", d.SLIDE_TRANSITIONER = "slideTransitioner", d.START_TRANSITIONER = "startTransitioner", d.STORAGE_INIT = "storageInit", d.SUBSCRIBE = "subscribe", d.SUSPEND_ACCOUNT = "suspendAccount", d.REMOVE_CLOUD = "removeCloud", d.UPDATE = "update", d.VERSION = "version", d.WIDGET_UPDATE = "widgetUpdate", d))(re || {}), Zt = /* @__PURE__ */ ((d) => (d.APPROVED = "approved", d.BEFORE = "before", d.DELAYED = "delayed", d.NONE = "none", d.REALTIME = "realtime", d))(Zt || {}), ge = /* @__PURE__ */ ((d) => (d.KEYVAL = "keyval", d.LOCAL = "local", d.SESSION = "session", d.DEXIE = "dexie", d.WINDOW = "window", d))(ge || {});
5
- const ki = "3.0.8";
4
+ var K = /* @__PURE__ */ ((d) => (d.MESSAGES = "messages", d.CLOUD = "cloud", d.SERIES = "series", d.TOPICS = "topics", d.WIDGET = "widget", d.WIDGETS = "widgets", d.SLIDE = "slide", d))(K || {}), v = /* @__PURE__ */ ((d) => (d.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", d.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", d.BROADCAST = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", d.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", d.CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", d.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", d.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", d.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", d.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", d.NONE = "color:transparent;background-color:transparent;", d.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", d.SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", d.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", d.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", d.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", d.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", d.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", d))(v || {}), re = /* @__PURE__ */ ((d) => (d.ADD_SLIDE = "addSlide", d.APP_READY = "appReady", d.API_UPDATE = "apiUpdate", d.APPROVE_MESSAGE = "approveMessage", d.CHANNEL = "channel", d.CLEAN_MESSAGES = "cleanMessages", d.CLOSE_MODAL = "closeModal", d.CLOSE_BUILDER_MODAL = "closeBuilderModal", d.ERROR = "error", d.HIDE_MESSAGE = "hideMessage", d.HIDE_LABELS = "hideLabels", d.PAUSE_PRESENTATION = "pausePresentation", d.PRESENTATION_READY = "presentationReady", d.PREV_SLIDE = "prevSlide", d.RELOAD_PRESENTATION = "reloadPresentation", d.SHOW_MODAL = "showModal", d.STAR_MESSAGE = "starMessage", d.GOTO_SLIDE = "gotoSlide", d.NEXT_SLIDE = "nextSlide", d.SHOW_BUILDER_MODAL = "showBuilderModal", d.SLIDE_DID_LOAD = "slideDidLoad", d.SLIDE_GOTO = "slideGoto", d.SLIDE_READY = "slideReady", d.SLIDE_LOAD = "loadSlide", d.SLIDE_STORE = "storeSlide", d.SLIDE_TRANSITIONER = "slideTransitioner", d.START_TRANSITIONER = "startTransitioner", d.STORAGE_INIT = "storageInit", d.SUBSCRIBE = "subscribe", d.SUSPEND_ACCOUNT = "suspendAccount", d.REMOVE_CLOUD = "removeCloud", d.UPDATE = "update", d.VERSION = "version", d.WIDGET_UPDATE = "widgetUpdate", d))(re || {}), Zt = /* @__PURE__ */ ((d) => (d.APPROVED = "approved", d.BEFORE = "before", d.DELAYED = "delayed", d.NONE = "none", d.REALTIME = "realtime", d))(Zt || {}), ye = /* @__PURE__ */ ((d) => (d.KEYVAL = "keyval", d.LOCAL = "local", d.SESSION = "session", d.DEXIE = "dexie", d.WINDOW = "window", d))(ye || {});
5
+ const ki = "3.0.10";
6
6
  class Di {
7
7
  constructor(r) {
8
8
  k(this, "options");
@@ -37,11 +37,11 @@ class Di {
37
37
  const D = Object.keys(x).length > 0 ? `?${new URLSearchParams(x).toString()}` : "";
38
38
  return console.info(
39
39
  "%capi%c %cfetch",
40
- w.API,
41
- w.NONE,
42
- w.GET_DATA,
40
+ v.API,
41
+ v.NONE,
42
+ v.GET_DATA,
43
43
  r.widget
44
- ), console.debug("%capi%c %cfetch", w.API, w.NONE, w.GET_DATA, x), await fetch(
44
+ ), console.debug("%capi%c %cfetch", v.API, v.NONE, v.GET_DATA, x), await fetch(
45
45
  [this.url, "api", s, r.type].join("/") + D,
46
46
  { ...l, method: "get" }
47
47
  ).then(async (j) => {
@@ -54,9 +54,9 @@ class Di {
54
54
  const { version: s } = this.options, l = this.headers(), x = "?action=visible";
55
55
  return console.info(
56
56
  "%capi%c %cput",
57
- w.API,
58
- w.NONE,
59
- w.GET_DATA,
57
+ v.API,
58
+ v.NONE,
59
+ v.GET_DATA,
60
60
  re.HIDE_MESSAGE,
61
61
  r.widget,
62
62
  r.id
@@ -71,13 +71,13 @@ class Di {
71
71
  }
72
72
  async hideLabels(r) {
73
73
  const { version: s } = this.options, l = this.formHeaders(), x = new URLSearchParams(), D = r.labels || [];
74
- for (const [j, P] of D.entries())
75
- x.append(`custom_filters[${j}]`, P);
74
+ for (const [j, F] of D.entries())
75
+ x.append(`custom_filters[${j}]`, F);
76
76
  return console.info(
77
77
  "%capi%c %cput",
78
- w.API,
79
- w.NONE,
80
- w.GET_DATA,
78
+ v.API,
79
+ v.NONE,
80
+ v.GET_DATA,
81
81
  re.HIDE_LABELS,
82
82
  r.widget,
83
83
  D
@@ -94,9 +94,9 @@ class Di {
94
94
  const { version: s } = this.options, l = this.headers(), x = Object.assign({}, r);
95
95
  return delete x.slide, delete x.type, delete x.hash, console.debug(
96
96
  "%capi%c %cloadSlide",
97
- w.API,
98
- w.NONE,
99
- w.SLIDE,
97
+ v.API,
98
+ v.NONE,
99
+ v.SLIDE,
100
100
  re.SLIDE_LOAD,
101
101
  r.slide
102
102
  ), await fetch(
@@ -121,9 +121,9 @@ class Di {
121
121
  const x = JSON.stringify(r);
122
122
  return console.info(
123
123
  "%capi%c %cput",
124
- w.API,
125
- w.NONE,
126
- w.SLIDE,
124
+ v.API,
125
+ v.NONE,
126
+ v.SLIDE,
127
127
  re.SLIDE_STORE,
128
128
  r.id
129
129
  ), await fetch(
@@ -161,33 +161,33 @@ var Tr = { exports: {} };
161
161
  for (var i, o = 0, a = t.length; o < a; o++) !i && o in t || ((i = i || Array.prototype.slice.call(t, 0, o))[o] = t[o]);
162
162
  return e.concat(i || Array.prototype.slice.call(t));
163
163
  }
164
- var D = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Cr, j = Object.keys, P = Array.isArray;
165
- function Y(e, t) {
164
+ var D = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Cr, j = Object.keys, F = Array.isArray;
165
+ function N(e, t) {
166
166
  return typeof t != "object" || j(t).forEach(function(n) {
167
167
  e[n] = t[n];
168
168
  }), e;
169
169
  }
170
170
  typeof Promise > "u" || D.Promise || (D.Promise = Promise);
171
- var Z = Object.getPrototypeOf, ve = {}.hasOwnProperty;
172
- function X(e, t) {
173
- return ve.call(e, t);
171
+ var X = Object.getPrototypeOf, ae = {}.hasOwnProperty;
172
+ function ee(e, t) {
173
+ return ae.call(e, t);
174
174
  }
175
- function pe(e, t) {
176
- typeof t == "function" && (t = t(Z(e))), (typeof Reflect > "u" ? j : Reflect.ownKeys)(t).forEach(function(n) {
175
+ function le(e, t) {
176
+ typeof t == "function" && (t = t(X(e))), (typeof Reflect > "u" ? j : Reflect.ownKeys)(t).forEach(function(n) {
177
177
  Ae(e, n, t[n]);
178
178
  });
179
179
  }
180
180
  var He = Object.defineProperty;
181
181
  function Ae(e, t, n, i) {
182
- He(e, t, Y(n && X(n, "get") && typeof n.get == "function" ? { get: n.get, set: n.set, configurable: !0 } : { value: n, configurable: !0, writable: !0 }, i));
182
+ He(e, t, N(n && ee(n, "get") && typeof n.get == "function" ? { get: n.get, set: n.set, configurable: !0 } : { value: n, configurable: !0, writable: !0 }, i));
183
183
  }
184
184
  function Ye(e) {
185
185
  return { from: function(t) {
186
- return e.prototype = Object.create(t.prototype), Ae(e.prototype, "constructor", e), { extend: pe.bind(null, e.prototype) };
186
+ return e.prototype = Object.create(t.prototype), Ae(e.prototype, "constructor", e), { extend: le.bind(null, e.prototype) };
187
187
  } };
188
188
  }
189
189
  var Fr = Object.getOwnPropertyDescriptor, Ur = [].slice;
190
- function St(e, t, n) {
190
+ function _t(e, t, n) {
191
191
  return Ur.call(e, t, n);
192
192
  }
193
193
  function zn(e, t) {
@@ -200,7 +200,7 @@ var Tr = { exports: {} };
200
200
  D.setImmediate ? setImmediate(e) : setTimeout(e, 0);
201
201
  }
202
202
  function we(e, t) {
203
- if (typeof t == "string" && X(e, t)) return e[t];
203
+ if (typeof t == "string" && ee(e, t)) return e[t];
204
204
  if (!t) return e;
205
205
  if (typeof t != "string") {
206
206
  for (var n = [], i = 0, o = t.length; i < o; ++i) {
@@ -215,18 +215,18 @@ var Tr = { exports: {} };
215
215
  return u == null ? void 0 : we(u, t.substr(c + 1));
216
216
  }
217
217
  }
218
- function le(e, t, n) {
218
+ function fe(e, t, n) {
219
219
  if (e && t !== void 0 && !("isFrozen" in Object && Object.isFrozen(e))) if (typeof t != "string" && "length" in t) {
220
220
  it(typeof n != "string" && "length" in n);
221
- for (var i = 0, o = t.length; i < o; ++i) le(e, t[i], n[i]);
221
+ for (var i = 0, o = t.length; i < o; ++i) fe(e, t[i], n[i]);
222
222
  } else {
223
223
  var a, c, u = t.indexOf(".");
224
- u !== -1 ? (a = t.substr(0, u), (c = t.substr(u + 1)) === "" ? n === void 0 ? P(e) && !isNaN(parseInt(a)) ? e.splice(a, 1) : delete e[a] : e[a] = n : le(u = !(u = e[a]) || !X(e, a) ? e[a] = {} : u, c, n)) : n === void 0 ? P(e) && !isNaN(parseInt(t)) ? e.splice(t, 1) : delete e[t] : e[t] = n;
224
+ u !== -1 ? (a = t.substr(0, u), (c = t.substr(u + 1)) === "" ? n === void 0 ? F(e) && !isNaN(parseInt(a)) ? e.splice(a, 1) : delete e[a] : e[a] = n : fe(u = !(u = e[a]) || !ee(e, a) ? e[a] = {} : u, c, n)) : n === void 0 ? F(e) && !isNaN(parseInt(t)) ? e.splice(t, 1) : delete e[t] : e[t] = n;
225
225
  }
226
226
  }
227
227
  function Yn(e) {
228
228
  var t, n = {};
229
- for (t in e) X(e, t) && (n[t] = e[t]);
229
+ for (t in e) ee(e, t) && (n[t] = e[t]);
230
230
  return n;
231
231
  }
232
232
  var Wr = [].concat;
@@ -247,13 +247,13 @@ var Tr = { exports: {} };
247
247
  if (!n || typeof n != "object") return n;
248
248
  var i = ot.get(n);
249
249
  if (i) return i;
250
- if (P(n)) {
250
+ if (F(n)) {
251
251
  i = [], ot.set(n, i);
252
252
  for (var o = 0, a = n.length; o < a; ++o) i.push(t(n[o]));
253
253
  } else if (Xn.has(n.constructor)) i = n;
254
254
  else {
255
- var c, u = Z(n);
256
- for (c in i = u === Object.prototype ? {} : Object.create(u), ot.set(n, i), n) X(n, c) && (i[c] = t(n[c]));
255
+ var c, u = X(n);
256
+ for (c in i = u === Object.prototype ? {} : Object.create(u), ot.set(n, i), n) ee(n, c) && (i[c] = t(n[c]));
257
257
  }
258
258
  return i;
259
259
  }(e), ot = null, e;
@@ -272,10 +272,10 @@ var Tr = { exports: {} };
272
272
  return t = e.indexOf(t), 0 <= t && e.splice(t, 1), 0 <= t;
273
273
  }
274
274
  var Qe = {};
275
- function _e(e) {
275
+ function Se(e) {
276
276
  var t, n, i, o;
277
277
  if (arguments.length === 1) {
278
- if (P(e)) return e.slice();
278
+ if (F(e)) return e.slice();
279
279
  if (this === Qe && typeof e == "string") return [e];
280
280
  if (o = Hr(e)) {
281
281
  for (n = []; !(i = o.next()).done; ) n.push(i.value);
@@ -293,7 +293,7 @@ var Tr = { exports: {} };
293
293
  return e[Symbol.toStringTag] === "AsyncFunction";
294
294
  } : function() {
295
295
  return !1;
296
- }, ct = ["Unknown", "Constraint", "Data", "TransactionInactive", "ReadOnly", "Version", "NotFound", "InvalidState", "InvalidAccess", "Abort", "Timeout", "QuotaExceeded", "Syntax", "DataClone"], he = ["Modify", "Bulk", "OpenFailed", "VersionChange", "Schema", "Upgrade", "InvalidTable", "MissingAPI", "NoSuchDatabase", "InvalidArgument", "SubTransaction", "Unsupported", "Internal", "DatabaseClosed", "PrematureCommit", "ForeignAwait"].concat(ct), Yr = { VersionChanged: "Database version changed by other database connection", DatabaseClosed: "Database has been closed", Abort: "Transaction aborted", TransactionInactive: "Transaction has already completed or failed", MissingAPI: "IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb" };
296
+ }, ct = ["Unknown", "Constraint", "Data", "TransactionInactive", "ReadOnly", "Version", "NotFound", "InvalidState", "InvalidAccess", "Abort", "Timeout", "QuotaExceeded", "Syntax", "DataClone"], ge = ["Modify", "Bulk", "OpenFailed", "VersionChange", "Schema", "Upgrade", "InvalidTable", "MissingAPI", "NoSuchDatabase", "InvalidArgument", "SubTransaction", "Unsupported", "Internal", "DatabaseClosed", "PrematureCommit", "ForeignAwait"].concat(ct), Yr = { VersionChanged: "Database version changed by other database connection", DatabaseClosed: "Database has been closed", Abort: "Transaction aborted", TransactionInactive: "Transaction has already completed or failed", MissingAPI: "IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb" };
297
297
  function Xe(e, t) {
298
298
  this.name = e, this.message = t;
299
299
  }
@@ -316,9 +316,9 @@ var Tr = { exports: {} };
316
316
  Ye(Xe).from(Error).extend({ toString: function() {
317
317
  return this.name + ": " + this.message;
318
318
  } }), Ye(Et).from(Xe), Ye(Je).from(Xe);
319
- var rn = he.reduce(function(e, t) {
319
+ var rn = ge.reduce(function(e, t) {
320
320
  return e[t] = t + "Error", e;
321
- }, {}), Qr = Xe, $ = he.reduce(function(e, t) {
321
+ }, {}), Qr = Xe, $ = ge.reduce(function(e, t) {
322
322
  var n = t + "Error";
323
323
  function i(o, a) {
324
324
  this.name = n, o ? typeof o == "string" ? (this.message = "".concat(o).concat(a ? `
@@ -329,7 +329,7 @@ var Tr = { exports: {} };
329
329
  $.Syntax = SyntaxError, $.Type = TypeError, $.Range = RangeError;
330
330
  var Vn = ct.reduce(function(e, t) {
331
331
  return e[t + "Error"] = $[t], e;
332
- }, {}), Ot = he.reduce(function(e, t) {
332
+ }, {}), Ot = ge.reduce(function(e, t) {
333
333
  return ["Syntax", "Type", "Range"].indexOf(t) === -1 && (e[t + "Error"] = $[t]), e;
334
334
  }, {});
335
335
  function J() {
@@ -342,7 +342,7 @@ var Tr = { exports: {} };
342
342
  return t(e(n));
343
343
  };
344
344
  }
345
- function Ke(e, t) {
345
+ function Ne(e, t) {
346
346
  return function() {
347
347
  e.apply(this, arguments), t.apply(this, arguments);
348
348
  };
@@ -354,22 +354,22 @@ var Tr = { exports: {} };
354
354
  var i = this.onsuccess, o = this.onerror;
355
355
  this.onsuccess = null, this.onerror = null;
356
356
  var a = t.apply(this, arguments);
357
- return i && (this.onsuccess = this.onsuccess ? Ke(i, this.onsuccess) : i), o && (this.onerror = this.onerror ? Ke(o, this.onerror) : o), a !== void 0 ? a : n;
357
+ return i && (this.onsuccess = this.onsuccess ? Ne(i, this.onsuccess) : i), o && (this.onerror = this.onerror ? Ne(o, this.onerror) : o), a !== void 0 ? a : n;
358
358
  };
359
359
  }
360
360
  function Vr(e, t) {
361
361
  return e === J ? t : function() {
362
362
  e.apply(this, arguments);
363
363
  var n = this.onsuccess, i = this.onerror;
364
- this.onsuccess = this.onerror = null, t.apply(this, arguments), n && (this.onsuccess = this.onsuccess ? Ke(n, this.onsuccess) : n), i && (this.onerror = this.onerror ? Ke(i, this.onerror) : i);
364
+ this.onsuccess = this.onerror = null, t.apply(this, arguments), n && (this.onsuccess = this.onsuccess ? Ne(n, this.onsuccess) : n), i && (this.onerror = this.onerror ? Ne(i, this.onerror) : i);
365
365
  };
366
366
  }
367
367
  function Zr(e, t) {
368
368
  return e === J ? t : function(n) {
369
369
  var i = e.apply(this, arguments);
370
- Y(n, i);
370
+ N(n, i);
371
371
  var o = this.onsuccess, a = this.onerror;
372
- return this.onsuccess = null, this.onerror = null, n = t.apply(this, arguments), o && (this.onsuccess = this.onsuccess ? Ke(o, this.onsuccess) : o), a && (this.onerror = this.onerror ? Ke(a, this.onerror) : a), i === void 0 ? n === void 0 ? void 0 : n : Y(i, n);
372
+ return this.onsuccess = null, this.onerror = null, n = t.apply(this, arguments), o && (this.onsuccess = this.onsuccess ? Ne(o, this.onsuccess) : o), a && (this.onerror = this.onerror ? Ne(a, this.onerror) : a), i === void 0 ? n === void 0 ? void 0 : n : N(i, n);
373
373
  };
374
374
  }
375
375
  function qr(e, t) {
@@ -390,16 +390,16 @@ var Tr = { exports: {} };
390
390
  };
391
391
  }
392
392
  Ot.ModifyError = Et, Ot.DexieError = Xe, Ot.BulkError = Je;
393
- var ye = typeof location < "u" && /^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);
393
+ var me = typeof location < "u" && /^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);
394
394
  function Zn(e) {
395
- ye = e;
395
+ me = e;
396
396
  }
397
397
  var st = {}, qn = 100, Ee = typeof Promise > "u" ? [] : function() {
398
398
  var e = Promise.resolve();
399
- if (typeof crypto > "u" || !crypto.subtle) return [e, Z(e), e];
399
+ if (typeof crypto > "u" || !crypto.subtle) return [e, X(e), e];
400
400
  var t = crypto.subtle.digest("SHA-512", new Uint8Array([0]));
401
- return [t, Z(t), e];
402
- }(), ct = Ee[0], he = Ee[1], Ee = Ee[2], he = he && he.then, Ne = ct && ct.constructor, an = !!Ee, ut = function(e, t) {
401
+ return [t, X(t), e];
402
+ }(), ct = Ee[0], ge = Ee[1], Ee = Ee[2], ge = ge && ge.then, Ke = ct && ct.constructor, an = !!Ee, ut = function(e, t) {
403
403
  lt.push([e, t]), xt && (queueMicrotask(ti), xt = !1);
404
404
  }, sn = !0, xt = !0, Be = [], At = [], cn = at, ke = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: J, pgp: !1, env: {}, finalize: J }, G = ke, lt = [], Le = 0, kt = [];
405
405
  function B(e) {
@@ -468,7 +468,7 @@ var Tr = { exports: {} };
468
468
  function ei(e, t, n) {
469
469
  try {
470
470
  var i, o = t._value;
471
- !t._state && At.length && (At = []), i = ye && t._consoleTask ? t._consoleTask.run(function() {
471
+ !t._state && At.length && (At = []), i = me && t._consoleTask ? t._consoleTask.run(function() {
472
472
  return e(o);
473
473
  }) : e(o), t._state || At.indexOf(o) !== -1 || function(a) {
474
474
  for (var c = Be.length; c; ) if (Be[--c]._value === a._value) return Be.splice(c, 1);
@@ -508,7 +508,7 @@ var Tr = { exports: {} };
508
508
  function Dt(e) {
509
509
  return new B(st, !1, e);
510
510
  }
511
- function ee(e, t) {
511
+ function q(e, t) {
512
512
  var n = G;
513
513
  return function() {
514
514
  var i = Ve(), o = G;
@@ -521,7 +521,7 @@ var Tr = { exports: {} };
521
521
  }
522
522
  };
523
523
  }
524
- pe(B.prototype, { then: un, _then: function(e, t) {
524
+ le(B.prototype, { then: un, _then: function(e, t) {
525
525
  dn(this, new er(null, null, e, t, G));
526
526
  }, catch: function(e) {
527
527
  if (arguments.length === 1) return this.then(null, e);
@@ -549,8 +549,8 @@ var Tr = { exports: {} };
549
549
  }, e);
550
550
  n.then(i, o).finally(clearTimeout.bind(null, a));
551
551
  }) : this;
552
- } }), typeof Symbol < "u" && Symbol.toStringTag && Ae(B.prototype, Symbol.toStringTag, "Dexie.Promise"), ke.env = nr(), pe(B, { all: function() {
553
- var e = _e.apply(null, arguments).map(Rt);
552
+ } }), typeof Symbol < "u" && Symbol.toStringTag && Ae(B.prototype, Symbol.toStringTag, "Dexie.Promise"), ke.env = nr(), le(B, { all: function() {
553
+ var e = Se.apply(null, arguments).map(Rt);
554
554
  return new B(function(t, n) {
555
555
  e.length === 0 && t([]);
556
556
  var i = e.length;
@@ -565,7 +565,7 @@ var Tr = { exports: {} };
565
565
  e.then(t, n);
566
566
  }) : new B(st, !0, e);
567
567
  }, reject: Dt, race: function() {
568
- var e = _e.apply(null, arguments).map(Rt);
568
+ var e = Se.apply(null, arguments).map(Rt);
569
569
  return new B(function(t, n) {
570
570
  e.map(function(i) {
571
571
  return B.resolve(i).then(t, n);
@@ -589,7 +589,7 @@ var Tr = { exports: {} };
589
589
  return new B(function(n, i) {
590
590
  return De(function(o, a) {
591
591
  var c = G;
592
- c.unhandleds = [], c.onunhandled = a, c.finalize = Ke(function() {
592
+ c.unhandleds = [], c.onunhandled = a, c.finalize = Ne(function() {
593
593
  var u, h = this;
594
594
  u = function() {
595
595
  h.unhandleds.length === 0 ? o() : a(h.unhandleds[0]);
@@ -601,8 +601,8 @@ var Tr = { exports: {} };
601
601
  }, c.finalize), e();
602
602
  }, t, n, i);
603
603
  });
604
- } }), Ne && (Ne.allSettled && Ae(B, "allSettled", function() {
605
- var e = _e.apply(null, arguments).map(Rt);
604
+ } }), Ke && (Ke.allSettled && Ae(B, "allSettled", function() {
605
+ var e = Se.apply(null, arguments).map(Rt);
606
606
  return new B(function(t) {
607
607
  e.length === 0 && t([]);
608
608
  var n = e.length, i = new Array(n);
@@ -616,8 +616,8 @@ var Tr = { exports: {} };
616
616
  });
617
617
  });
618
618
  });
619
- }), Ne.any && typeof AggregateError < "u" && Ae(B, "any", function() {
620
- var e = _e.apply(null, arguments).map(Rt);
619
+ }), Ke.any && typeof AggregateError < "u" && Ae(B, "any", function() {
620
+ var e = Se.apply(null, arguments).map(Rt);
621
621
  return new B(function(t, n) {
622
622
  e.length === 0 && n(new AggregateError([]));
623
623
  var i = e.length, o = new Array(i);
@@ -629,11 +629,11 @@ var Tr = { exports: {} };
629
629
  });
630
630
  });
631
631
  });
632
- }), Ne.withResolvers && (B.withResolvers = Ne.withResolvers));
632
+ }), Ke.withResolvers && (B.withResolvers = Ke.withResolvers));
633
633
  var ie = { awaits: 0, echoes: 0, id: 0 }, ni = 0, Pt = [], It = 0, Ct = 0, ri = 0;
634
634
  function De(e, t, n, i) {
635
635
  var o = G, a = Object.create(o);
636
- return a.parent = o, a.ref = 0, a.global = !1, a.id = ++ri, ke.env, a.env = an ? { Promise: B, PromiseProp: { value: B, configurable: !0, writable: !0 }, all: B.all, race: B.race, allSettled: B.allSettled, any: B.any, resolve: B.resolve, reject: B.reject } : {}, t && Y(a, t), ++o.ref, a.finalize = function() {
636
+ return a.parent = o, a.ref = 0, a.global = !1, a.id = ++ri, ke.env, a.env = an ? { Promise: B, PromiseProp: { value: B, configurable: !0, writable: !0 }, all: B.all, race: B.race, allSettled: B.allSettled, any: B.any, resolve: B.resolve, reject: B.reject } : {}, t && N(a, t), ++o.ref, a.finalize = function() {
637
637
  --this.parent.ref || this.parent.finalize();
638
638
  }, i = Ge(a, e, n, i), a.ref === 0 && a.finalize(), i;
639
639
  }
@@ -644,7 +644,7 @@ var Tr = { exports: {} };
644
644
  return !!ie.awaits && (--ie.awaits == 0 && (ie.id = 0), ie.echoes = ie.awaits * qn, !0);
645
645
  }
646
646
  function Rt(e) {
647
- return ie.echoes && e && e.constructor === Ne ? (qe(), e.then(function(t) {
647
+ return ie.echoes && e && e.constructor === Ke ? (qe(), e.then(function(t) {
648
648
  return Pe(), t;
649
649
  }, function(t) {
650
650
  return Pe(), te(t);
@@ -684,10 +684,10 @@ var Tr = { exports: {} };
684
684
  };
685
685
  }
686
686
  function hn(e) {
687
- Promise === Ne && ie.echoes === 0 ? It === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
687
+ Promise === Ke && ie.echoes === 0 ? It === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
688
688
  }
689
- ("" + he).indexOf("[native code]") === -1 && (qe = Pe = J);
690
- var te = B.reject, $e = "￿", Se = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", ir = "String expected.", et = [], Tt = "__dbnames", pn = "readonly", gn = "readwrite";
689
+ ("" + ge).indexOf("[native code]") === -1 && (qe = Pe = J);
690
+ var te = B.reject, $e = "￿", _e = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", ir = "String expected.", et = [], Tt = "__dbnames", pn = "readonly", gn = "readwrite";
691
691
  function Fe(e, t) {
692
692
  return e ? t ? function() {
693
693
  return e.apply(this, arguments) && t.apply(this, arguments);
@@ -704,7 +704,7 @@ var Tr = { exports: {} };
704
704
  function ar() {
705
705
  throw $.Type();
706
706
  }
707
- function H(e, t) {
707
+ function Y(e, t) {
708
708
  try {
709
709
  var n = sr(e), i = sr(t);
710
710
  if (n !== i) return n === "Array" ? 1 : i === "Array" ? -1 : n === "binary" ? 1 : i === "binary" ? -1 : n === "string" ? 1 : i === "string" ? -1 : n === "Date" ? 1 : i !== "Date" ? NaN : -1;
@@ -721,7 +721,7 @@ var Tr = { exports: {} };
721
721
  case "Array":
722
722
  return function(o, a) {
723
723
  for (var c = o.length, u = a.length, h = c < u ? c : u, g = 0; g < h; ++g) {
724
- var b = H(o[g], a[g]);
724
+ var b = Y(o[g], a[g]);
725
725
  if (b !== 0) return b;
726
726
  }
727
727
  return c === u ? 0 : c < u ? -1 : 1;
@@ -738,8 +738,8 @@ var Tr = { exports: {} };
738
738
  function cr(e) {
739
739
  return e instanceof Uint8Array ? e : ArrayBuffer.isView(e) ? new Uint8Array(e.buffer, e.byteOffset, e.byteLength) : new Uint8Array(e);
740
740
  }
741
- var ur = (q.prototype._trans = function(e, t, n) {
742
- var i = this._tx || G.trans, o = this.name, a = ye && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(e === "readonly" ? "read" : "write", " ").concat(this.name));
741
+ var ur = (Z.prototype._trans = function(e, t, n) {
742
+ var i = this._tx || G.trans, o = this.name, a = me && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(e === "readonly" ? "read" : "write", " ").concat(this.name));
743
743
  function c(g, b, f) {
744
744
  if (!f.schema[o]) throw new $.NotFound("Table " + o + " not part of transaction");
745
745
  return t(f.idbtrans, f);
@@ -748,27 +748,27 @@ var Tr = { exports: {} };
748
748
  try {
749
749
  var h = i && i.db._novip === this.db._novip ? i === G.trans ? i._promise(e, c, n) : De(function() {
750
750
  return i._promise(e, c, n);
751
- }, { trans: i, transless: G.transless || G }) : function g(b, f, _, p) {
751
+ }, { trans: i, transless: G.transless || G }) : function g(b, f, S, p) {
752
752
  if (b.idbdb && (b._state.openComplete || G.letThrough || b._vip)) {
753
- var m = b._createTransaction(f, _, b._dbSchema);
753
+ var m = b._createTransaction(f, S, b._dbSchema);
754
754
  try {
755
755
  m.create(), b._state.PR1398_maxLoop = 3;
756
- } catch (v) {
757
- return v.name === rn.InvalidState && b.isOpen() && 0 < --b._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), b.close({ disableAutoOpen: !1 }), b.open().then(function() {
758
- return g(b, f, _, p);
759
- })) : te(v);
756
+ } catch (w) {
757
+ return w.name === rn.InvalidState && b.isOpen() && 0 < --b._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), b.close({ disableAutoOpen: !1 }), b.open().then(function() {
758
+ return g(b, f, S, p);
759
+ })) : te(w);
760
760
  }
761
- return m._promise(f, function(v, y) {
761
+ return m._promise(f, function(w, y) {
762
762
  return De(function() {
763
- return G.trans = m, p(v, y, m);
763
+ return G.trans = m, p(w, y, m);
764
764
  });
765
- }).then(function(v) {
765
+ }).then(function(w) {
766
766
  if (f === "readwrite") try {
767
767
  m.idbtrans.commit();
768
768
  } catch {
769
769
  }
770
- return f === "readonly" ? v : m._completion.then(function() {
771
- return v;
770
+ return f === "readonly" ? w : m._completion.then(function() {
771
+ return w;
772
772
  });
773
773
  });
774
774
  }
@@ -778,7 +778,7 @@ var Tr = { exports: {} };
778
778
  b.open().catch(J);
779
779
  }
780
780
  return b._state.dbReadyPromise.then(function() {
781
- return g(b, f, _, p);
781
+ return g(b, f, S, p);
782
782
  });
783
783
  }(this.db, e, [this.name], c);
784
784
  return a && (h._consoleTask = a, h = h.catch(function(g) {
@@ -787,16 +787,16 @@ var Tr = { exports: {} };
787
787
  } finally {
788
788
  u && Ze();
789
789
  }
790
- }, q.prototype.get = function(e, t) {
790
+ }, Z.prototype.get = function(e, t) {
791
791
  var n = this;
792
792
  return e && e.constructor === Object ? this.where(e).first(t) : e == null ? te(new $.Type("Invalid argument to Table.get()")) : this._trans("readonly", function(i) {
793
793
  return n.core.get({ trans: i, key: e }).then(function(o) {
794
794
  return n.hook.reading.fire(o);
795
795
  });
796
796
  }).then(t);
797
- }, q.prototype.where = function(e) {
797
+ }, Z.prototype.where = function(e) {
798
798
  if (typeof e == "string") return new this.db.WhereClause(this, e);
799
- if (P(e)) return new this.db.WhereClause(this, "[".concat(e.join("+"), "]"));
799
+ if (F(e)) return new this.db.WhereClause(this, "[".concat(e.join("+"), "]"));
800
800
  var t = j(e);
801
801
  if (t.length === 1) return this.where(t[0]).equals(e[t[0]]);
802
802
  var n = this.schema.indexes.concat(this.schema.primKey).filter(function(u) {
@@ -816,41 +816,41 @@ var Tr = { exports: {} };
816
816
  return e[h];
817
817
  }));
818
818
  }
819
- !n && ye && console.warn("The query ".concat(JSON.stringify(e), " on ").concat(this.name, " would benefit from a ") + "compound index [".concat(t.join("+"), "]"));
819
+ !n && me && console.warn("The query ".concat(JSON.stringify(e), " on ").concat(this.name, " would benefit from a ") + "compound index [".concat(t.join("+"), "]"));
820
820
  var i = this.schema.idxByName;
821
821
  function o(u, h) {
822
- return H(u, h) === 0;
822
+ return Y(u, h) === 0;
823
823
  }
824
824
  var c = t.reduce(function(f, h) {
825
- var g = f[0], b = f[1], f = i[h], _ = e[h];
825
+ var g = f[0], b = f[1], f = i[h], S = e[h];
826
826
  return [g || f, g || !f ? Fe(b, f && f.multi ? function(p) {
827
- return p = we(p, h), P(p) && p.some(function(m) {
828
- return o(_, m);
827
+ return p = we(p, h), F(p) && p.some(function(m) {
828
+ return o(S, m);
829
829
  });
830
830
  } : function(p) {
831
- return o(_, we(p, h));
831
+ return o(S, we(p, h));
832
832
  }) : b];
833
833
  }, [null, null]), a = c[0], c = c[1];
834
834
  return a ? this.where(a.name).equals(e[a.keyPath]).filter(c) : n ? this.filter(c) : this.where(t).equals("");
835
- }, q.prototype.filter = function(e) {
835
+ }, Z.prototype.filter = function(e) {
836
836
  return this.toCollection().and(e);
837
- }, q.prototype.count = function(e) {
837
+ }, Z.prototype.count = function(e) {
838
838
  return this.toCollection().count(e);
839
- }, q.prototype.offset = function(e) {
839
+ }, Z.prototype.offset = function(e) {
840
840
  return this.toCollection().offset(e);
841
- }, q.prototype.limit = function(e) {
841
+ }, Z.prototype.limit = function(e) {
842
842
  return this.toCollection().limit(e);
843
- }, q.prototype.each = function(e) {
843
+ }, Z.prototype.each = function(e) {
844
844
  return this.toCollection().each(e);
845
- }, q.prototype.toArray = function(e) {
845
+ }, Z.prototype.toArray = function(e) {
846
846
  return this.toCollection().toArray(e);
847
- }, q.prototype.toCollection = function() {
847
+ }, Z.prototype.toCollection = function() {
848
848
  return new this.db.Collection(new this.db.WhereClause(this));
849
- }, q.prototype.orderBy = function(e) {
850
- return new this.db.Collection(new this.db.WhereClause(this, P(e) ? "[".concat(e.join("+"), "]") : e));
851
- }, q.prototype.reverse = function() {
849
+ }, Z.prototype.orderBy = function(e) {
850
+ return new this.db.Collection(new this.db.WhereClause(this, F(e) ? "[".concat(e.join("+"), "]") : e));
851
+ }, Z.prototype.reverse = function() {
852
852
  return this.toCollection().reverse();
853
- }, q.prototype.mapToClass = function(e) {
853
+ }, Z.prototype.mapToClass = function(e) {
854
854
  var t, n = this.db, i = this.name;
855
855
  function o() {
856
856
  return t !== null && t.apply(this, arguments) || this;
@@ -866,7 +866,7 @@ var Tr = { exports: {} };
866
866
  }, enumerable: !1, configurable: !0 }), o.prototype.table = function() {
867
867
  return i;
868
868
  }, e = o);
869
- for (var a = /* @__PURE__ */ new Set(), c = e.prototype; c; c = Z(c)) Object.getOwnPropertyNames(c).forEach(function(h) {
869
+ for (var a = /* @__PURE__ */ new Set(), c = e.prototype; c; c = X(c)) Object.getOwnPropertyNames(c).forEach(function(h) {
870
870
  return a.add(h);
871
871
  });
872
872
  function u(h) {
@@ -879,11 +879,11 @@ var Tr = { exports: {} };
879
879
  return b;
880
880
  }
881
881
  return this.schema.readHook && this.hook.reading.unsubscribe(this.schema.readHook), this.schema.readHook = u, this.hook("reading", u), e;
882
- }, q.prototype.defineClass = function() {
882
+ }, Z.prototype.defineClass = function() {
883
883
  return this.mapToClass(function(e) {
884
- Y(this, e);
884
+ N(this, e);
885
885
  });
886
- }, q.prototype.add = function(e, t) {
886
+ }, Z.prototype.add = function(e, t) {
887
887
  var n = this, i = this.schema.primKey, o = i.auto, a = i.keyPath, c = e;
888
888
  return a && o && (c = Mt(a)(e)), this._trans("readwrite", function(u) {
889
889
  return n.core.mutate({ trans: u, type: "add", keys: t != null ? [t] : null, values: [c] });
@@ -891,14 +891,14 @@ var Tr = { exports: {} };
891
891
  return u.numFailures ? B.reject(u.failures[0]) : u.lastResult;
892
892
  }).then(function(u) {
893
893
  if (a) try {
894
- le(e, a, u);
894
+ fe(e, a, u);
895
895
  } catch {
896
896
  }
897
897
  return u;
898
898
  });
899
- }, q.prototype.update = function(e, t) {
900
- return typeof e != "object" || P(e) ? this.where(":id").equals(e).modify(t) : (e = we(e, this.schema.primKey.keyPath), e === void 0 ? te(new $.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(e).modify(t));
901
- }, q.prototype.put = function(e, t) {
899
+ }, Z.prototype.update = function(e, t) {
900
+ return typeof e != "object" || F(e) ? this.where(":id").equals(e).modify(t) : (e = we(e, this.schema.primKey.keyPath), e === void 0 ? te(new $.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(e).modify(t));
901
+ }, Z.prototype.put = function(e, t) {
902
902
  var n = this, i = this.schema.primKey, o = i.auto, a = i.keyPath, c = e;
903
903
  return a && o && (c = Mt(a)(e)), this._trans("readwrite", function(u) {
904
904
  return n.core.mutate({ trans: u, type: "put", values: [c], keys: t != null ? [t] : null });
@@ -906,26 +906,26 @@ var Tr = { exports: {} };
906
906
  return u.numFailures ? B.reject(u.failures[0]) : u.lastResult;
907
907
  }).then(function(u) {
908
908
  if (a) try {
909
- le(e, a, u);
909
+ fe(e, a, u);
910
910
  } catch {
911
911
  }
912
912
  return u;
913
913
  });
914
- }, q.prototype.delete = function(e) {
914
+ }, Z.prototype.delete = function(e) {
915
915
  var t = this;
916
916
  return this._trans("readwrite", function(n) {
917
917
  return t.core.mutate({ trans: n, type: "delete", keys: [e] });
918
918
  }).then(function(n) {
919
919
  return n.numFailures ? B.reject(n.failures[0]) : void 0;
920
920
  });
921
- }, q.prototype.clear = function() {
921
+ }, Z.prototype.clear = function() {
922
922
  var e = this;
923
923
  return this._trans("readwrite", function(t) {
924
924
  return e.core.mutate({ trans: t, type: "deleteRange", range: or });
925
925
  }).then(function(t) {
926
926
  return t.numFailures ? B.reject(t.failures[0]) : void 0;
927
927
  });
928
- }, q.prototype.bulkGet = function(e) {
928
+ }, Z.prototype.bulkGet = function(e) {
929
929
  var t = this;
930
930
  return this._trans("readonly", function(n) {
931
931
  return t.core.getMany({ keys: e, trans: n }).then(function(i) {
@@ -934,7 +934,7 @@ var Tr = { exports: {} };
934
934
  });
935
935
  });
936
936
  });
937
- }, q.prototype.bulkAdd = function(e, t, n) {
937
+ }, Z.prototype.bulkAdd = function(e, t, n) {
938
938
  var i = this, o = Array.isArray(t) ? t : void 0, a = (n = n || (o ? void 0 : t)) ? n.allKeys : void 0;
939
939
  return this._trans("readwrite", function(c) {
940
940
  var g = i.schema.primKey, u = g.auto, g = g.keyPath;
@@ -942,12 +942,12 @@ var Tr = { exports: {} };
942
942
  if (o && o.length !== e.length) throw new $.InvalidArgument("Arguments objects and keys must have the same length");
943
943
  var h = e.length, g = g && u ? e.map(Mt(g)) : e;
944
944
  return i.core.mutate({ trans: c, type: "add", keys: o, values: g, wantResults: a }).then(function(m) {
945
- var f = m.numFailures, _ = m.results, p = m.lastResult, m = m.failures;
946
- if (f === 0) return a ? _ : p;
945
+ var f = m.numFailures, S = m.results, p = m.lastResult, m = m.failures;
946
+ if (f === 0) return a ? S : p;
947
947
  throw new Je("".concat(i.name, ".bulkAdd(): ").concat(f, " of ").concat(h, " operations failed"), m);
948
948
  });
949
949
  });
950
- }, q.prototype.bulkPut = function(e, t, n) {
950
+ }, Z.prototype.bulkPut = function(e, t, n) {
951
951
  var i = this, o = Array.isArray(t) ? t : void 0, a = (n = n || (o ? void 0 : t)) ? n.allKeys : void 0;
952
952
  return this._trans("readwrite", function(c) {
953
953
  var g = i.schema.primKey, u = g.auto, g = g.keyPath;
@@ -955,12 +955,12 @@ var Tr = { exports: {} };
955
955
  if (o && o.length !== e.length) throw new $.InvalidArgument("Arguments objects and keys must have the same length");
956
956
  var h = e.length, g = g && u ? e.map(Mt(g)) : e;
957
957
  return i.core.mutate({ trans: c, type: "put", keys: o, values: g, wantResults: a }).then(function(m) {
958
- var f = m.numFailures, _ = m.results, p = m.lastResult, m = m.failures;
959
- if (f === 0) return a ? _ : p;
958
+ var f = m.numFailures, S = m.results, p = m.lastResult, m = m.failures;
959
+ if (f === 0) return a ? S : p;
960
960
  throw new Je("".concat(i.name, ".bulkPut(): ").concat(f, " of ").concat(h, " operations failed"), m);
961
961
  });
962
962
  });
963
- }, q.prototype.bulkUpdate = function(e) {
963
+ }, Z.prototype.bulkUpdate = function(e) {
964
964
  var t = this, n = this.core, i = e.map(function(c) {
965
965
  return c.key;
966
966
  }), o = e.map(function(c) {
@@ -969,31 +969,31 @@ var Tr = { exports: {} };
969
969
  return this._trans("readwrite", function(c) {
970
970
  return n.getMany({ trans: c, keys: i, cache: "clone" }).then(function(u) {
971
971
  var h = [], g = [];
972
- e.forEach(function(f, _) {
973
- var p = f.key, m = f.changes, v = u[_];
974
- if (v) {
975
- for (var y = 0, S = Object.keys(m); y < S.length; y++) {
976
- var E = S[y], O = m[E];
972
+ e.forEach(function(f, S) {
973
+ var p = f.key, m = f.changes, w = u[S];
974
+ if (w) {
975
+ for (var y = 0, _ = Object.keys(m); y < _.length; y++) {
976
+ var E = _[y], O = m[E];
977
977
  if (E === t.schema.primKey.keyPath) {
978
- if (H(O, p) !== 0) throw new $.Constraint("Cannot update primary key in bulkUpdate()");
979
- } else le(v, E, O);
978
+ if (Y(O, p) !== 0) throw new $.Constraint("Cannot update primary key in bulkUpdate()");
979
+ } else fe(w, E, O);
980
980
  }
981
- a.push(_), h.push(p), g.push(v);
981
+ a.push(S), h.push(p), g.push(w);
982
982
  }
983
983
  });
984
984
  var b = h.length;
985
985
  return n.mutate({ trans: c, type: "put", keys: h, values: g, updates: { keys: i, changeSpecs: o } }).then(function(f) {
986
- var _ = f.numFailures, p = f.failures;
987
- if (_ === 0) return b;
988
- for (var m = 0, v = Object.keys(p); m < v.length; m++) {
989
- var y, S = v[m], E = a[Number(S)];
990
- E != null && (y = p[S], delete p[S], p[E] = y);
986
+ var S = f.numFailures, p = f.failures;
987
+ if (S === 0) return b;
988
+ for (var m = 0, w = Object.keys(p); m < w.length; m++) {
989
+ var y, _ = w[m], E = a[Number(_)];
990
+ E != null && (y = p[_], delete p[_], p[E] = y);
991
991
  }
992
- throw new Je("".concat(t.name, ".bulkUpdate(): ").concat(_, " of ").concat(b, " operations failed"), p);
992
+ throw new Je("".concat(t.name, ".bulkUpdate(): ").concat(S, " of ").concat(b, " operations failed"), p);
993
993
  });
994
994
  });
995
995
  });
996
- }, q.prototype.bulkDelete = function(e) {
996
+ }, Z.prototype.bulkDelete = function(e) {
997
997
  var t = this, n = e.length;
998
998
  return this._trans("readwrite", function(i) {
999
999
  return t.core.mutate({ trans: i, type: "delete", keys: e });
@@ -1002,8 +1002,8 @@ var Tr = { exports: {} };
1002
1002
  if (o === 0) return a;
1003
1003
  throw new Je("".concat(t.name, ".bulkDelete(): ").concat(o, " of ").concat(n, " operations failed"), c);
1004
1004
  });
1005
- }, q);
1006
- function q() {
1005
+ }, Z);
1006
+ function Z() {
1007
1007
  }
1008
1008
  function dt(e) {
1009
1009
  function t(c, u) {
@@ -1024,22 +1024,22 @@ var Tr = { exports: {} };
1024
1024
  var b = { subscribers: [], fire: h = h || J, subscribe: function(f) {
1025
1025
  b.subscribers.indexOf(f) === -1 && (b.subscribers.push(f), b.fire = u(b.fire, f));
1026
1026
  }, unsubscribe: function(f) {
1027
- b.subscribers = b.subscribers.filter(function(_) {
1028
- return _ !== f;
1027
+ b.subscribers = b.subscribers.filter(function(S) {
1028
+ return S !== f;
1029
1029
  }), b.fire = b.subscribers.reduce(u, h);
1030
1030
  } };
1031
1031
  return n[c] = t[c] = b;
1032
1032
  }
1033
1033
  j(g = c).forEach(function(f) {
1034
- var _ = g[f];
1035
- if (P(_)) a(f, g[f][0], g[f][1]);
1034
+ var S = g[f];
1035
+ if (F(S)) a(f, g[f][0], g[f][1]);
1036
1036
  else {
1037
- if (_ !== "asap") throw new $.InvalidArgument("Invalid event config");
1037
+ if (S !== "asap") throw new $.InvalidArgument("Invalid event config");
1038
1038
  var p = a(f, at, function() {
1039
- for (var m = arguments.length, v = new Array(m); m--; ) v[m] = arguments[m];
1039
+ for (var m = arguments.length, w = new Array(m); m--; ) w[m] = arguments[m];
1040
1040
  p.subscribers.forEach(function(y) {
1041
1041
  Hn(function() {
1042
- y.apply(null, v);
1042
+ y.apply(null, w);
1043
1043
  });
1044
1044
  });
1045
1045
  });
@@ -1072,23 +1072,23 @@ var Tr = { exports: {} };
1072
1072
  var i = jt(e, t.schema);
1073
1073
  return t.openCursor({ trans: n, values: !e.keysOnly, reverse: e.dir === "prev", unique: !!e.unique, query: { index: i, range: e.range } });
1074
1074
  }
1075
- function Kt(e, t, n, i) {
1075
+ function Nt(e, t, n, i) {
1076
1076
  var o = e.replayFilter ? Fe(e.filter, e.replayFilter()) : e.filter;
1077
1077
  if (e.or) {
1078
1078
  var a = {}, c = function(u, h, g) {
1079
1079
  var b, f;
1080
- o && !o(h, g, function(_) {
1081
- return h.stop(_);
1082
- }, function(_) {
1083
- return h.fail(_);
1084
- }) || ((f = "" + (b = h.primaryKey)) == "[object ArrayBuffer]" && (f = "" + new Uint8Array(b)), X(a, f) || (a[f] = !0, t(u, h, g)));
1080
+ o && !o(h, g, function(S) {
1081
+ return h.stop(S);
1082
+ }, function(S) {
1083
+ return h.fail(S);
1084
+ }) || ((f = "" + (b = h.primaryKey)) == "[object ArrayBuffer]" && (f = "" + new Uint8Array(b)), ee(a, f) || (a[f] = !0, t(u, h, g)));
1085
1085
  };
1086
1086
  return Promise.all([e.or._iterate(c, n), dr(lr(e, i, n), e.algorithm, c, !e.keysOnly && e.valueMapper)]);
1087
1087
  }
1088
1088
  return dr(lr(e, i, n), Fe(e.algorithm, o), t, !e.keysOnly && e.valueMapper);
1089
1089
  }
1090
1090
  function dr(e, t, n, i) {
1091
- var o = ee(i ? function(a, c, u) {
1091
+ var o = q(i ? function(a, c, u) {
1092
1092
  return n(i(a), c, u);
1093
1093
  } : n);
1094
1094
  return e.then(function(a) {
@@ -1111,7 +1111,7 @@ var Tr = { exports: {} };
1111
1111
  var Ee = Symbol(), ht = (fr.prototype.execute = function(e) {
1112
1112
  if (this.add !== void 0) {
1113
1113
  var t = this.add;
1114
- if (P(t)) return x(x([], P(e) ? e : [], !0), t).sort();
1114
+ if (F(t)) return x(x([], F(e) ? e : [], !0), t).sort();
1115
1115
  if (typeof t == "number") return (Number(e) || 0) + t;
1116
1116
  if (typeof t == "bigint") try {
1117
1117
  return BigInt(e) + t;
@@ -1122,7 +1122,7 @@ var Tr = { exports: {} };
1122
1122
  }
1123
1123
  if (this.remove !== void 0) {
1124
1124
  var n = this.remove;
1125
- if (P(n)) return P(e) ? e.filter(function(i) {
1125
+ if (F(n)) return F(e) ? e.filter(function(i) {
1126
1126
  return !n.includes(i);
1127
1127
  }).sort() : [];
1128
1128
  if (typeof n == "number") return Number(e) - n;
@@ -1148,16 +1148,16 @@ var Tr = { exports: {} };
1148
1148
  var t = this._ctx;
1149
1149
  t.algorithm = Fe(t.algorithm, e);
1150
1150
  }, Q.prototype._iterate = function(e, t) {
1151
- return Kt(this._ctx, e, t, this._ctx.table.core);
1151
+ return Nt(this._ctx, e, t, this._ctx.table.core);
1152
1152
  }, Q.prototype.clone = function(e) {
1153
1153
  var t = Object.create(this.constructor.prototype), n = Object.create(this._ctx);
1154
- return e && Y(n, e), t._ctx = n, t;
1154
+ return e && N(n, e), t._ctx = n, t;
1155
1155
  }, Q.prototype.raw = function() {
1156
1156
  return this._ctx.valueMapper = null, this;
1157
1157
  }, Q.prototype.each = function(e) {
1158
1158
  var t = this._ctx;
1159
1159
  return this._read(function(n) {
1160
- return Kt(t, e, n, t.table.core);
1160
+ return Nt(t, e, n, t.table.core);
1161
1161
  });
1162
1162
  }, Q.prototype.count = function(e) {
1163
1163
  var t = this;
@@ -1167,7 +1167,7 @@ var Tr = { exports: {} };
1167
1167
  return Math.min(c, i.limit);
1168
1168
  });
1169
1169
  var a = 0;
1170
- return Kt(i, function() {
1170
+ return Nt(i, function() {
1171
1171
  return ++a, !1;
1172
1172
  }, n, o).then(function() {
1173
1173
  return a;
@@ -1180,7 +1180,7 @@ var Tr = { exports: {} };
1180
1180
  }
1181
1181
  var c = this._ctx.dir === "next" ? 1 : -1;
1182
1182
  function u(h, g) {
1183
- return H(a(h, o), a(g, o)) * c;
1183
+ return Y(a(h, o), a(g, o)) * c;
1184
1184
  }
1185
1185
  return this.toArray(function(h) {
1186
1186
  return h.sort(u);
@@ -1196,7 +1196,7 @@ var Tr = { exports: {} };
1196
1196
  });
1197
1197
  }
1198
1198
  var c = [];
1199
- return Kt(i, function(u) {
1199
+ return Nt(i, function(u) {
1200
1200
  return c.push(u);
1201
1201
  }, n, i.table.core).then(function() {
1202
1202
  return c;
@@ -1296,7 +1296,7 @@ var Tr = { exports: {} };
1296
1296
  if (!e || !e.multi) return this;
1297
1297
  var t = {};
1298
1298
  return yn(this._ctx, function(o) {
1299
- var i = o.primaryKey.toString(), o = X(t, i);
1299
+ var i = o.primaryKey.toString(), o = ee(t, i);
1300
1300
  return t[i] = !0, !o;
1301
1301
  }), this;
1302
1302
  }, Q.prototype.modify = function(e) {
@@ -1304,50 +1304,50 @@ var Tr = { exports: {} };
1304
1304
  return this._write(function(i) {
1305
1305
  var o, a, c;
1306
1306
  c = typeof e == "function" ? e : (o = j(e), a = o.length, function(y) {
1307
- for (var S = !1, E = 0; E < a; ++E) {
1308
- var O = o[E], A = e[O], I = we(y, O);
1309
- A instanceof ht ? (le(y, O, A.execute(I)), S = !0) : I !== A && (le(y, O, A), S = !0);
1307
+ for (var _ = !1, E = 0; E < a; ++E) {
1308
+ var O = o[E], A = e[O], P = we(y, O);
1309
+ A instanceof ht ? (fe(y, O, A.execute(P)), _ = !0) : P !== A && (fe(y, O, A), _ = !0);
1310
1310
  }
1311
- return S;
1311
+ return _;
1312
1312
  });
1313
1313
  var u = n.table.core, f = u.schema.primaryKey, h = f.outbound, g = f.extractKey, b = 200, f = t.db._options.modifyChunkSize;
1314
1314
  f && (b = typeof f == "object" ? f[u.name] || f["*"] || 200 : f);
1315
- function _(y, O) {
1315
+ function S(y, O) {
1316
1316
  var E = O.failures, O = O.numFailures;
1317
1317
  m += y - O;
1318
- for (var A = 0, I = j(E); A < I.length; A++) {
1319
- var M = I[A];
1320
- p.push(E[M]);
1318
+ for (var A = 0, P = j(E); A < P.length; A++) {
1319
+ var T = P[A];
1320
+ p.push(E[T]);
1321
1321
  }
1322
1322
  }
1323
- var p = [], m = 0, v = [];
1323
+ var p = [], m = 0, w = [];
1324
1324
  return t.clone().primaryKeys().then(function(y) {
1325
- function S(O) {
1325
+ function _(O) {
1326
1326
  var A = Math.min(b, y.length - O);
1327
- return u.getMany({ trans: i, keys: y.slice(O, O + A), cache: "immutable" }).then(function(I) {
1328
- for (var M = [], C = [], R = h ? [] : null, K = [], T = 0; T < A; ++T) {
1329
- var L = I[T], U = { value: Me(L), primKey: y[O + T] };
1330
- c.call(U, U.value, U) !== !1 && (U.value == null ? K.push(y[O + T]) : h || H(g(L), g(U.value)) === 0 ? (C.push(U.value), h && R.push(y[O + T])) : (K.push(y[O + T]), M.push(U.value)));
1327
+ return u.getMany({ trans: i, keys: y.slice(O, O + A), cache: "immutable" }).then(function(P) {
1328
+ for (var T = [], I = [], C = h ? [] : null, M = [], R = 0; R < A; ++R) {
1329
+ var L = P[R], W = { value: Me(L), primKey: y[O + R] };
1330
+ c.call(W, W.value, W) !== !1 && (W.value == null ? M.push(y[O + R]) : h || Y(g(L), g(W.value)) === 0 ? (I.push(W.value), h && C.push(y[O + R])) : (M.push(y[O + R]), T.push(W.value)));
1331
1331
  }
1332
- return Promise.resolve(0 < M.length && u.mutate({ trans: i, type: "add", values: M }).then(function(W) {
1333
- for (var z in W.failures) K.splice(parseInt(z), 1);
1334
- _(M.length, W);
1332
+ return Promise.resolve(0 < T.length && u.mutate({ trans: i, type: "add", values: T }).then(function(z) {
1333
+ for (var H in z.failures) M.splice(parseInt(H), 1);
1334
+ S(T.length, z);
1335
1335
  })).then(function() {
1336
- return (0 < C.length || E && typeof e == "object") && u.mutate({ trans: i, type: "put", keys: R, values: C, criteria: E, changeSpec: typeof e != "function" && e, isAdditionalChunk: 0 < O }).then(function(W) {
1337
- return _(C.length, W);
1336
+ return (0 < I.length || E && typeof e == "object") && u.mutate({ trans: i, type: "put", keys: C, values: I, criteria: E, changeSpec: typeof e != "function" && e, isAdditionalChunk: 0 < O }).then(function(z) {
1337
+ return S(I.length, z);
1338
1338
  });
1339
1339
  }).then(function() {
1340
- return (0 < K.length || E && e === bn) && u.mutate({ trans: i, type: "delete", keys: K, criteria: E, isAdditionalChunk: 0 < O }).then(function(W) {
1341
- return _(K.length, W);
1340
+ return (0 < M.length || E && e === bn) && u.mutate({ trans: i, type: "delete", keys: M, criteria: E, isAdditionalChunk: 0 < O }).then(function(z) {
1341
+ return S(M.length, z);
1342
1342
  });
1343
1343
  }).then(function() {
1344
- return y.length > O + A && S(O + b);
1344
+ return y.length > O + A && _(O + b);
1345
1345
  });
1346
1346
  });
1347
1347
  }
1348
1348
  var E = tt(n) && n.limit === 1 / 0 && (typeof e != "function" || e === bn) && { index: n.index, range: n.range };
1349
- return S(0).then(function() {
1350
- if (0 < p.length) throw new Et("Error modifying one or more objects", p, m, v);
1349
+ return _(0).then(function() {
1350
+ if (0 < p.length) throw new Et("Error modifying one or more objects", p, m, w);
1351
1351
  return y.length;
1352
1352
  });
1353
1353
  });
@@ -1378,7 +1378,7 @@ var Tr = { exports: {} };
1378
1378
  function si(e, t) {
1379
1379
  return t < e ? -1 : e === t ? 0 : 1;
1380
1380
  }
1381
- function de(e, t, n) {
1381
+ function he(e, t, n) {
1382
1382
  return e = e instanceof pr ? new e.Collection(e) : e, e._ctx.error = new (n || TypeError)(t), e;
1383
1383
  }
1384
1384
  function nt(e) {
@@ -1386,12 +1386,12 @@ var Tr = { exports: {} };
1386
1386
  return hr("");
1387
1387
  }).limit(0);
1388
1388
  }
1389
- function Nt(e, t, n, i) {
1389
+ function Kt(e, t, n, i) {
1390
1390
  var o, a, c, u, h, g, b, f = n.length;
1391
1391
  if (!n.every(function(m) {
1392
1392
  return typeof m == "string";
1393
- })) return de(e, ir);
1394
- function _(m) {
1393
+ })) return he(e, ir);
1394
+ function S(m) {
1395
1395
  o = m === "next" ? function(y) {
1396
1396
  return y.toUpperCase();
1397
1397
  } : function(y) {
@@ -1401,40 +1401,40 @@ var Tr = { exports: {} };
1401
1401
  } : function(y) {
1402
1402
  return y.toUpperCase();
1403
1403
  }, c = m === "next" ? ai : si;
1404
- var v = n.map(function(y) {
1404
+ var w = n.map(function(y) {
1405
1405
  return { lower: a(y), upper: o(y) };
1406
- }).sort(function(y, S) {
1407
- return c(y.lower, S.lower);
1406
+ }).sort(function(y, _) {
1407
+ return c(y.lower, _.lower);
1408
1408
  });
1409
- u = v.map(function(y) {
1409
+ u = w.map(function(y) {
1410
1410
  return y.upper;
1411
- }), h = v.map(function(y) {
1411
+ }), h = w.map(function(y) {
1412
1412
  return y.lower;
1413
1413
  }), b = (g = m) === "next" ? "" : i;
1414
1414
  }
1415
- _("next"), e = new e.Collection(e, function() {
1415
+ S("next"), e = new e.Collection(e, function() {
1416
1416
  return Ce(u[0], h[f - 1] + i);
1417
1417
  }), e._ondirectionchange = function(m) {
1418
- _(m);
1418
+ S(m);
1419
1419
  };
1420
1420
  var p = 0;
1421
- return e._addAlgorithm(function(m, v, y) {
1422
- var S = m.key;
1423
- if (typeof S != "string") return !1;
1424
- var E = a(S);
1421
+ return e._addAlgorithm(function(m, w, y) {
1422
+ var _ = m.key;
1423
+ if (typeof _ != "string") return !1;
1424
+ var E = a(_);
1425
1425
  if (t(E, h, p)) return !0;
1426
1426
  for (var O = null, A = p; A < f; ++A) {
1427
- var I = function(M, C, R, K, T, L) {
1428
- for (var U = Math.min(M.length, K.length), W = -1, z = 0; z < U; ++z) {
1429
- var fe = C[z];
1430
- if (fe !== K[z]) return T(M[z], R[z]) < 0 ? M.substr(0, z) + R[z] + R.substr(z + 1) : T(M[z], K[z]) < 0 ? M.substr(0, z) + K[z] + R.substr(z + 1) : 0 <= W ? M.substr(0, W) + C[W] + R.substr(W + 1) : null;
1431
- T(M[z], fe) < 0 && (W = z);
1427
+ var P = function(T, I, C, M, R, L) {
1428
+ for (var W = Math.min(T.length, M.length), z = -1, H = 0; H < W; ++H) {
1429
+ var pe = I[H];
1430
+ if (pe !== M[H]) return R(T[H], C[H]) < 0 ? T.substr(0, H) + C[H] + C.substr(H + 1) : R(T[H], M[H]) < 0 ? T.substr(0, H) + M[H] + C.substr(H + 1) : 0 <= z ? T.substr(0, z) + I[z] + C.substr(z + 1) : null;
1431
+ R(T[H], pe) < 0 && (z = H);
1432
1432
  }
1433
- return U < K.length && L === "next" ? M + R.substr(M.length) : U < M.length && L === "prev" ? M.substr(0, R.length) : W < 0 ? null : M.substr(0, W) + K[W] + R.substr(W + 1);
1434
- }(S, E, u[A], h[A], c, g);
1435
- I === null && O === null ? p = A + 1 : (O === null || 0 < c(O, I)) && (O = I);
1433
+ return W < M.length && L === "next" ? T + C.substr(T.length) : W < T.length && L === "prev" ? T.substr(0, C.length) : z < 0 ? null : T.substr(0, z) + M[z] + C.substr(z + 1);
1434
+ }(_, E, u[A], h[A], c, g);
1435
+ P === null && O === null ? p = A + 1 : (O === null || 0 < c(O, P)) && (O = P);
1436
1436
  }
1437
- return v(O !== null ? function() {
1437
+ return w(O !== null ? function() {
1438
1438
  m.continue(O + b);
1439
1439
  } : y), !1;
1440
1440
  }), e;
@@ -1454,56 +1454,56 @@ var Tr = { exports: {} };
1454
1454
  return Ce(e, t, !n, !i);
1455
1455
  });
1456
1456
  } catch {
1457
- return de(this, Se);
1457
+ return he(this, _e);
1458
1458
  }
1459
1459
  }, oe.prototype.equals = function(e) {
1460
- return e == null ? de(this, Se) : new this.Collection(this, function() {
1460
+ return e == null ? he(this, _e) : new this.Collection(this, function() {
1461
1461
  return hr(e);
1462
1462
  });
1463
1463
  }, oe.prototype.above = function(e) {
1464
- return e == null ? de(this, Se) : new this.Collection(this, function() {
1464
+ return e == null ? he(this, _e) : new this.Collection(this, function() {
1465
1465
  return Ce(e, void 0, !0);
1466
1466
  });
1467
1467
  }, oe.prototype.aboveOrEqual = function(e) {
1468
- return e == null ? de(this, Se) : new this.Collection(this, function() {
1468
+ return e == null ? he(this, _e) : new this.Collection(this, function() {
1469
1469
  return Ce(e, void 0, !1);
1470
1470
  });
1471
1471
  }, oe.prototype.below = function(e) {
1472
- return e == null ? de(this, Se) : new this.Collection(this, function() {
1472
+ return e == null ? he(this, _e) : new this.Collection(this, function() {
1473
1473
  return Ce(void 0, e, !1, !0);
1474
1474
  });
1475
1475
  }, oe.prototype.belowOrEqual = function(e) {
1476
- return e == null ? de(this, Se) : new this.Collection(this, function() {
1476
+ return e == null ? he(this, _e) : new this.Collection(this, function() {
1477
1477
  return Ce(void 0, e);
1478
1478
  });
1479
1479
  }, oe.prototype.startsWith = function(e) {
1480
- return typeof e != "string" ? de(this, ir) : this.between(e, e + $e, !0, !0);
1480
+ return typeof e != "string" ? he(this, ir) : this.between(e, e + $e, !0, !0);
1481
1481
  }, oe.prototype.startsWithIgnoreCase = function(e) {
1482
- return e === "" ? this.startsWith(e) : Nt(this, function(t, n) {
1482
+ return e === "" ? this.startsWith(e) : Kt(this, function(t, n) {
1483
1483
  return t.indexOf(n[0]) === 0;
1484
1484
  }, [e], $e);
1485
1485
  }, oe.prototype.equalsIgnoreCase = function(e) {
1486
- return Nt(this, function(t, n) {
1486
+ return Kt(this, function(t, n) {
1487
1487
  return t === n[0];
1488
1488
  }, [e], "");
1489
1489
  }, oe.prototype.anyOfIgnoreCase = function() {
1490
- var e = _e.apply(Qe, arguments);
1491
- return e.length === 0 ? nt(this) : Nt(this, function(t, n) {
1490
+ var e = Se.apply(Qe, arguments);
1491
+ return e.length === 0 ? nt(this) : Kt(this, function(t, n) {
1492
1492
  return n.indexOf(t) !== -1;
1493
1493
  }, e, "");
1494
1494
  }, oe.prototype.startsWithAnyOfIgnoreCase = function() {
1495
- var e = _e.apply(Qe, arguments);
1496
- return e.length === 0 ? nt(this) : Nt(this, function(t, n) {
1495
+ var e = Se.apply(Qe, arguments);
1496
+ return e.length === 0 ? nt(this) : Kt(this, function(t, n) {
1497
1497
  return n.some(function(i) {
1498
1498
  return t.indexOf(i) === 0;
1499
1499
  });
1500
1500
  }, e, $e);
1501
1501
  }, oe.prototype.anyOf = function() {
1502
- var e = this, t = _e.apply(Qe, arguments), n = this._cmp;
1502
+ var e = this, t = Se.apply(Qe, arguments), n = this._cmp;
1503
1503
  try {
1504
1504
  t.sort(n);
1505
1505
  } catch {
1506
- return de(this, Se);
1506
+ return he(this, _e);
1507
1507
  }
1508
1508
  if (t.length === 0) return nt(this);
1509
1509
  var i = new this.Collection(this, function() {
@@ -1522,81 +1522,81 @@ var Tr = { exports: {} };
1522
1522
  }, oe.prototype.notEqual = function(e) {
1523
1523
  return this.inAnyRange([[-1 / 0, e], [e, this.db._maxKey]], { includeLowers: !1, includeUppers: !1 });
1524
1524
  }, oe.prototype.noneOf = function() {
1525
- var e = _e.apply(Qe, arguments);
1525
+ var e = Se.apply(Qe, arguments);
1526
1526
  if (e.length === 0) return new this.Collection(this);
1527
1527
  try {
1528
1528
  e.sort(this._ascending);
1529
1529
  } catch {
1530
- return de(this, Se);
1530
+ return he(this, _e);
1531
1531
  }
1532
1532
  var t = e.reduce(function(n, i) {
1533
1533
  return n ? n.concat([[n[n.length - 1][1], i]]) : [[-1 / 0, i]];
1534
1534
  }, null);
1535
1535
  return t.push([e[e.length - 1], this.db._maxKey]), this.inAnyRange(t, { includeLowers: !1, includeUppers: !1 });
1536
- }, oe.prototype.inAnyRange = function(S, t) {
1536
+ }, oe.prototype.inAnyRange = function(_, t) {
1537
1537
  var n = this, i = this._cmp, o = this._ascending, a = this._descending, c = this._min, u = this._max;
1538
- if (S.length === 0) return nt(this);
1539
- if (!S.every(function(E) {
1538
+ if (_.length === 0) return nt(this);
1539
+ if (!_.every(function(E) {
1540
1540
  return E[0] !== void 0 && E[1] !== void 0 && o(E[0], E[1]) <= 0;
1541
- })) return de(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", $.InvalidArgument);
1541
+ })) return he(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", $.InvalidArgument);
1542
1542
  var h = !t || t.includeLowers !== !1, g = t && t.includeUppers === !0, b, f = o;
1543
- function _(E, O) {
1543
+ function S(E, O) {
1544
1544
  return f(E[0], O[0]);
1545
1545
  }
1546
1546
  try {
1547
- (b = S.reduce(function(E, O) {
1548
- for (var A = 0, I = E.length; A < I; ++A) {
1549
- var M = E[A];
1550
- if (i(O[0], M[1]) < 0 && 0 < i(O[1], M[0])) {
1551
- M[0] = c(M[0], O[0]), M[1] = u(M[1], O[1]);
1547
+ (b = _.reduce(function(E, O) {
1548
+ for (var A = 0, P = E.length; A < P; ++A) {
1549
+ var T = E[A];
1550
+ if (i(O[0], T[1]) < 0 && 0 < i(O[1], T[0])) {
1551
+ T[0] = c(T[0], O[0]), T[1] = u(T[1], O[1]);
1552
1552
  break;
1553
1553
  }
1554
1554
  }
1555
- return A === I && E.push(O), E;
1556
- }, [])).sort(_);
1555
+ return A === P && E.push(O), E;
1556
+ }, [])).sort(S);
1557
1557
  } catch {
1558
- return de(this, Se);
1558
+ return he(this, _e);
1559
1559
  }
1560
1560
  var p = 0, m = g ? function(E) {
1561
1561
  return 0 < o(E, b[p][1]);
1562
1562
  } : function(E) {
1563
1563
  return 0 <= o(E, b[p][1]);
1564
- }, v = h ? function(E) {
1564
+ }, w = h ? function(E) {
1565
1565
  return 0 < a(E, b[p][0]);
1566
1566
  } : function(E) {
1567
1567
  return 0 <= a(E, b[p][0]);
1568
- }, y = m, S = new this.Collection(this, function() {
1568
+ }, y = m, _ = new this.Collection(this, function() {
1569
1569
  return Ce(b[0][0], b[b.length - 1][1], !h, !g);
1570
1570
  });
1571
- return S._ondirectionchange = function(E) {
1572
- f = E === "next" ? (y = m, o) : (y = v, a), b.sort(_);
1573
- }, S._addAlgorithm(function(E, O, A) {
1574
- for (var I, M = E.key; y(M); ) if (++p === b.length) return O(A), !1;
1575
- return !m(I = M) && !v(I) || (n._cmp(M, b[p][1]) === 0 || n._cmp(M, b[p][0]) === 0 || O(function() {
1571
+ return _._ondirectionchange = function(E) {
1572
+ f = E === "next" ? (y = m, o) : (y = w, a), b.sort(S);
1573
+ }, _._addAlgorithm(function(E, O, A) {
1574
+ for (var P, T = E.key; y(T); ) if (++p === b.length) return O(A), !1;
1575
+ return !m(P = T) && !w(P) || (n._cmp(T, b[p][1]) === 0 || n._cmp(T, b[p][0]) === 0 || O(function() {
1576
1576
  f === o ? E.continue(b[p][0]) : E.continue(b[p][1]);
1577
1577
  }), !1);
1578
- }), S;
1578
+ }), _;
1579
1579
  }, oe.prototype.startsWithAnyOf = function() {
1580
- var e = _e.apply(Qe, arguments);
1580
+ var e = Se.apply(Qe, arguments);
1581
1581
  return e.every(function(t) {
1582
1582
  return typeof t == "string";
1583
1583
  }) ? e.length === 0 ? nt(this) : this.inAnyRange(e.map(function(t) {
1584
1584
  return [t, t + $e];
1585
- })) : de(this, "startsWithAnyOf() only works with strings");
1585
+ })) : he(this, "startsWithAnyOf() only works with strings");
1586
1586
  }, oe);
1587
1587
  function oe() {
1588
1588
  }
1589
- function me(e) {
1590
- return ee(function(t) {
1589
+ function be(e) {
1590
+ return q(function(t) {
1591
1591
  return pt(t), e(t.target.error), !1;
1592
1592
  });
1593
1593
  }
1594
1594
  function pt(e) {
1595
1595
  e.stopPropagation && e.stopPropagation(), e.preventDefault && e.preventDefault();
1596
1596
  }
1597
- var gt = "storagemutated", vn = "x-storagemutated-1", Re = dt(null, gt), ci = (be.prototype._lock = function() {
1597
+ var gt = "storagemutated", vn = "x-storagemutated-1", Re = dt(null, gt), ci = (ve.prototype._lock = function() {
1598
1598
  return it(!G.global), ++this._reculock, this._reculock !== 1 || G.global || (G.lockOwnerFor = this), this;
1599
- }, be.prototype._unlock = function() {
1599
+ }, ve.prototype._unlock = function() {
1600
1600
  if (it(!G.global), --this._reculock == 0) for (G.global || (G.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
1601
1601
  var e = this._blockedFuncs.shift();
1602
1602
  try {
@@ -1605,9 +1605,9 @@ var Tr = { exports: {} };
1605
1605
  }
1606
1606
  }
1607
1607
  return this;
1608
- }, be.prototype._locked = function() {
1608
+ }, ve.prototype._locked = function() {
1609
1609
  return this._reculock && G.lockOwnerFor !== this;
1610
- }, be.prototype.create = function(e) {
1610
+ }, ve.prototype.create = function(e) {
1611
1611
  var t = this;
1612
1612
  if (!this.mode) return this;
1613
1613
  var n = this.db.idbdb, i = this.db._state.dbOpenError;
@@ -1620,14 +1620,14 @@ var Tr = { exports: {} };
1620
1620
  throw new $.OpenFailed(i);
1621
1621
  }
1622
1622
  if (!this.active) throw new $.TransactionInactive();
1623
- return it(this._completion._state === null), (e = this.idbtrans = e || (this.db.core || n).transaction(this.storeNames, this.mode, { durability: this.chromeTransactionDurability })).onerror = ee(function(o) {
1623
+ return it(this._completion._state === null), (e = this.idbtrans = e || (this.db.core || n).transaction(this.storeNames, this.mode, { durability: this.chromeTransactionDurability })).onerror = q(function(o) {
1624
1624
  pt(o), t._reject(e.error);
1625
- }), e.onabort = ee(function(o) {
1625
+ }), e.onabort = q(function(o) {
1626
1626
  pt(o), t.active && t._reject(new $.Abort(e.error)), t.active = !1, t.on("abort").fire(o);
1627
- }), e.oncomplete = ee(function() {
1627
+ }), e.oncomplete = q(function() {
1628
1628
  t.active = !1, t._resolve(), "mutatedParts" in e && Re.storagemutated.fire(e.mutatedParts);
1629
1629
  }), this;
1630
- }, be.prototype._promise = function(e, t, n) {
1630
+ }, ve.prototype._promise = function(e, t, n) {
1631
1631
  var i = this;
1632
1632
  if (e === "readwrite" && this.mode !== "readwrite") return te(new $.ReadOnly("Transaction is readonly"));
1633
1633
  if (!this.active) return te(new $.TransactionInactive());
@@ -1651,9 +1651,9 @@ var Tr = { exports: {} };
1651
1651
  u && u.then && u.then(a, c);
1652
1652
  });
1653
1653
  return o._lib = !0, o;
1654
- }, be.prototype._root = function() {
1654
+ }, ve.prototype._root = function() {
1655
1655
  return this.parent ? this.parent._root() : this;
1656
- }, be.prototype.waitFor = function(e) {
1656
+ }, ve.prototype.waitFor = function(e) {
1657
1657
  var t, n = this._root(), i = B.resolve(e);
1658
1658
  n._waitingFor ? n._waitingFor = n._waitingFor.then(function() {
1659
1659
  return i;
@@ -1664,23 +1664,23 @@ var Tr = { exports: {} };
1664
1664
  var o = n._waitingFor;
1665
1665
  return new B(function(a, c) {
1666
1666
  i.then(function(u) {
1667
- return n._waitingQueue.push(ee(a.bind(null, u)));
1667
+ return n._waitingQueue.push(q(a.bind(null, u)));
1668
1668
  }, function(u) {
1669
- return n._waitingQueue.push(ee(c.bind(null, u)));
1669
+ return n._waitingQueue.push(q(c.bind(null, u)));
1670
1670
  }).finally(function() {
1671
1671
  n._waitingFor === o && (n._waitingFor = null);
1672
1672
  });
1673
1673
  });
1674
- }, be.prototype.abort = function() {
1674
+ }, ve.prototype.abort = function() {
1675
1675
  this.active && (this.active = !1, this.idbtrans && this.idbtrans.abort(), this._reject(new $.Abort()));
1676
- }, be.prototype.table = function(e) {
1676
+ }, ve.prototype.table = function(e) {
1677
1677
  var t = this._memoizedTables || (this._memoizedTables = {});
1678
- if (X(t, e)) return t[e];
1678
+ if (ee(t, e)) return t[e];
1679
1679
  var n = this.schema[e];
1680
1680
  if (!n) throw new $.NotFound("Table " + e + " not part of transaction");
1681
1681
  return n = new this.db.Table(e, n, this), n.core = this.db.core.table(e), t[e] = n;
1682
- }, be);
1683
- function be() {
1682
+ }, ve);
1683
+ function ve() {
1684
1684
  }
1685
1685
  function wn(e, t, n, i, o, a, c) {
1686
1686
  return { name: e, keyPath: t, unique: n, multi: i, auto: o, compound: a, src: (n && !c ? "&" : "") + (i ? "*" : "") + (o ? "++" : "") + gr(t) };
@@ -1688,7 +1688,7 @@ var Tr = { exports: {} };
1688
1688
  function gr(e) {
1689
1689
  return typeof e == "string" ? e : e ? "[" + [].join.call(e, "+") + "]" : "";
1690
1690
  }
1691
- function _n(e, t, n) {
1691
+ function Sn(e, t, n) {
1692
1692
  return { name: e, primKey: t, indexes: n, mappedClass: null, idxByName: (i = function(o) {
1693
1693
  return [o.name, o];
1694
1694
  }, n.reduce(function(o, a, c) {
@@ -1707,7 +1707,7 @@ var Tr = { exports: {} };
1707
1707
  }, $e;
1708
1708
  }
1709
1709
  };
1710
- function Sn(e) {
1710
+ function _n(e) {
1711
1711
  return e == null ? function() {
1712
1712
  } : typeof e == "string" ? (t = e).split(".").length === 1 ? function(n) {
1713
1713
  return n[t];
@@ -1729,141 +1729,141 @@ var Tr = { exports: {} };
1729
1729
  function i(y) {
1730
1730
  if (y.type === 3) return null;
1731
1731
  if (y.type === 4) throw new Error("Cannot convert never type to IDBKeyRange");
1732
- var p = y.lower, m = y.upper, v = y.lowerOpen, y = y.upperOpen;
1733
- return p === void 0 ? m === void 0 ? null : t.upperBound(m, !!y) : m === void 0 ? t.lowerBound(p, !!v) : t.bound(p, m, !!v, !!y);
1732
+ var p = y.lower, m = y.upper, w = y.lowerOpen, y = y.upperOpen;
1733
+ return p === void 0 ? m === void 0 ? null : t.upperBound(m, !!y) : m === void 0 ? t.lowerBound(p, !!w) : t.bound(p, m, !!w, !!y);
1734
1734
  }
1735
- function o(_) {
1736
- var p, m = _.name;
1737
- return { name: m, schema: _, mutate: function(v) {
1738
- var y = v.trans, S = v.type, E = v.keys, O = v.values, A = v.range;
1739
- return new Promise(function(I, M) {
1740
- I = ee(I);
1741
- var C = y.objectStore(m), R = C.keyPath == null, K = S === "put" || S === "add";
1742
- if (!K && S !== "delete" && S !== "deleteRange") throw new Error("Invalid operation type: " + S);
1743
- var T, L = (E || O || { length: 1 }).length;
1735
+ function o(S) {
1736
+ var p, m = S.name;
1737
+ return { name: m, schema: S, mutate: function(w) {
1738
+ var y = w.trans, _ = w.type, E = w.keys, O = w.values, A = w.range;
1739
+ return new Promise(function(P, T) {
1740
+ P = q(P);
1741
+ var I = y.objectStore(m), C = I.keyPath == null, M = _ === "put" || _ === "add";
1742
+ if (!M && _ !== "delete" && _ !== "deleteRange") throw new Error("Invalid operation type: " + _);
1743
+ var R, L = (E || O || { length: 1 }).length;
1744
1744
  if (E && O && E.length !== O.length) throw new Error("Given keys array must have same length as given values array.");
1745
- if (L === 0) return I({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
1746
- function U(ue) {
1747
- ++fe, pt(ue);
1745
+ if (L === 0) return P({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
1746
+ function W(de) {
1747
+ ++pe, pt(de);
1748
1748
  }
1749
- var W = [], z = [], fe = 0;
1750
- if (S === "deleteRange") {
1751
- if (A.type === 4) return I({ numFailures: fe, failures: z, results: [], lastResult: void 0 });
1752
- A.type === 3 ? W.push(T = C.clear()) : W.push(T = C.delete(i(A)));
1749
+ var z = [], H = [], pe = 0;
1750
+ if (_ === "deleteRange") {
1751
+ if (A.type === 4) return P({ numFailures: pe, failures: H, results: [], lastResult: void 0 });
1752
+ A.type === 3 ? z.push(R = I.clear()) : z.push(R = I.delete(i(A)));
1753
1753
  } else {
1754
- var R = K ? R ? [O, E] : [O, null] : [E, null], F = R[0], se = R[1];
1755
- if (K) for (var ce = 0; ce < L; ++ce) W.push(T = se && se[ce] !== void 0 ? C[S](F[ce], se[ce]) : C[S](F[ce])), T.onerror = U;
1756
- else for (ce = 0; ce < L; ++ce) W.push(T = C[S](F[ce])), T.onerror = U;
1754
+ var C = M ? C ? [O, E] : [O, null] : [E, null], U = C[0], ce = C[1];
1755
+ if (M) for (var ue = 0; ue < L; ++ue) z.push(R = ce && ce[ue] !== void 0 ? I[_](U[ue], ce[ue]) : I[_](U[ue])), R.onerror = W;
1756
+ else for (ue = 0; ue < L; ++ue) z.push(R = I[_](U[ue])), R.onerror = W;
1757
1757
  }
1758
- function Jt(ue) {
1759
- ue = ue.target.result, W.forEach(function(ze, Gn) {
1760
- return ze.error != null && (z[Gn] = ze.error);
1761
- }), I({ numFailures: fe, failures: z, results: S === "delete" ? E : W.map(function(ze) {
1758
+ function Jt(de) {
1759
+ de = de.target.result, z.forEach(function(ze, Gn) {
1760
+ return ze.error != null && (H[Gn] = ze.error);
1761
+ }), P({ numFailures: pe, failures: H, results: _ === "delete" ? E : z.map(function(ze) {
1762
1762
  return ze.result;
1763
- }), lastResult: ue });
1763
+ }), lastResult: de });
1764
1764
  }
1765
- T.onerror = function(ue) {
1766
- U(ue), Jt(ue);
1767
- }, T.onsuccess = Jt;
1765
+ R.onerror = function(de) {
1766
+ W(de), Jt(de);
1767
+ }, R.onsuccess = Jt;
1768
1768
  });
1769
- }, getMany: function(v) {
1770
- var y = v.trans, S = v.keys;
1769
+ }, getMany: function(w) {
1770
+ var y = w.trans, _ = w.keys;
1771
1771
  return new Promise(function(E, O) {
1772
- E = ee(E);
1773
- for (var A, I = y.objectStore(m), M = S.length, C = new Array(M), R = 0, K = 0, T = function(W) {
1774
- W = W.target, C[W._pos] = W.result, ++K === R && E(C);
1775
- }, L = me(O), U = 0; U < M; ++U) S[U] != null && ((A = I.get(S[U]))._pos = U, A.onsuccess = T, A.onerror = L, ++R);
1776
- R === 0 && E(C);
1772
+ E = q(E);
1773
+ for (var A, P = y.objectStore(m), T = _.length, I = new Array(T), C = 0, M = 0, R = function(z) {
1774
+ z = z.target, I[z._pos] = z.result, ++M === C && E(I);
1775
+ }, L = be(O), W = 0; W < T; ++W) _[W] != null && ((A = P.get(_[W]))._pos = W, A.onsuccess = R, A.onerror = L, ++C);
1776
+ C === 0 && E(I);
1777
1777
  });
1778
- }, get: function(v) {
1779
- var y = v.trans, S = v.key;
1778
+ }, get: function(w) {
1779
+ var y = w.trans, _ = w.key;
1780
1780
  return new Promise(function(E, O) {
1781
- E = ee(E);
1782
- var A = y.objectStore(m).get(S);
1783
- A.onsuccess = function(I) {
1784
- return E(I.target.result);
1785
- }, A.onerror = me(O);
1781
+ E = q(E);
1782
+ var A = y.objectStore(m).get(_);
1783
+ A.onsuccess = function(P) {
1784
+ return E(P.target.result);
1785
+ }, A.onerror = be(O);
1786
1786
  });
1787
- }, query: (p = g, function(v) {
1788
- return new Promise(function(y, S) {
1789
- y = ee(y);
1790
- var E, O, A, R = v.trans, I = v.values, M = v.limit, T = v.query, C = M === 1 / 0 ? void 0 : M, K = T.index, T = T.range, R = R.objectStore(m), K = K.isPrimaryKey ? R : R.index(K.name), T = i(T);
1791
- if (M === 0) return y({ result: [] });
1792
- p ? ((C = I ? K.getAll(T, C) : K.getAllKeys(T, C)).onsuccess = function(L) {
1787
+ }, query: (p = g, function(w) {
1788
+ return new Promise(function(y, _) {
1789
+ y = q(y);
1790
+ var E, O, A, C = w.trans, P = w.values, T = w.limit, R = w.query, I = T === 1 / 0 ? void 0 : T, M = R.index, R = R.range, C = C.objectStore(m), M = M.isPrimaryKey ? C : C.index(M.name), R = i(R);
1791
+ if (T === 0) return y({ result: [] });
1792
+ p ? ((I = P ? M.getAll(R, I) : M.getAllKeys(R, I)).onsuccess = function(L) {
1793
1793
  return y({ result: L.target.result });
1794
- }, C.onerror = me(S)) : (E = 0, O = !I && "openKeyCursor" in K ? K.openKeyCursor(T) : K.openCursor(T), A = [], O.onsuccess = function(L) {
1795
- var U = O.result;
1796
- return U ? (A.push(I ? U.value : U.primaryKey), ++E === M ? y({ result: A }) : void U.continue()) : y({ result: A });
1797
- }, O.onerror = me(S));
1794
+ }, I.onerror = be(_)) : (E = 0, O = !P && "openKeyCursor" in M ? M.openKeyCursor(R) : M.openCursor(R), A = [], O.onsuccess = function(L) {
1795
+ var W = O.result;
1796
+ return W ? (A.push(P ? W.value : W.primaryKey), ++E === T ? y({ result: A }) : void W.continue()) : y({ result: A });
1797
+ }, O.onerror = be(_));
1798
1798
  });
1799
- }), openCursor: function(v) {
1800
- var y = v.trans, S = v.values, E = v.query, O = v.reverse, A = v.unique;
1801
- return new Promise(function(I, M) {
1802
- I = ee(I);
1803
- var K = E.index, C = E.range, R = y.objectStore(m), R = K.isPrimaryKey ? R : R.index(K.name), K = O ? A ? "prevunique" : "prev" : A ? "nextunique" : "next", T = !S && "openKeyCursor" in R ? R.openKeyCursor(i(C), K) : R.openCursor(i(C), K);
1804
- T.onerror = me(M), T.onsuccess = ee(function(L) {
1805
- var U, W, z, fe, F = T.result;
1806
- F ? (F.___id = ++ui, F.done = !1, U = F.continue.bind(F), W = (W = F.continuePrimaryKey) && W.bind(F), z = F.advance.bind(F), fe = function() {
1799
+ }), openCursor: function(w) {
1800
+ var y = w.trans, _ = w.values, E = w.query, O = w.reverse, A = w.unique;
1801
+ return new Promise(function(P, T) {
1802
+ P = q(P);
1803
+ var M = E.index, I = E.range, C = y.objectStore(m), C = M.isPrimaryKey ? C : C.index(M.name), M = O ? A ? "prevunique" : "prev" : A ? "nextunique" : "next", R = !_ && "openKeyCursor" in C ? C.openKeyCursor(i(I), M) : C.openCursor(i(I), M);
1804
+ R.onerror = be(T), R.onsuccess = q(function(L) {
1805
+ var W, z, H, pe, U = R.result;
1806
+ U ? (U.___id = ++ui, U.done = !1, W = U.continue.bind(U), z = (z = U.continuePrimaryKey) && z.bind(U), H = U.advance.bind(U), pe = function() {
1807
1807
  throw new Error("Cursor not stopped");
1808
- }, F.trans = y, F.stop = F.continue = F.continuePrimaryKey = F.advance = function() {
1808
+ }, U.trans = y, U.stop = U.continue = U.continuePrimaryKey = U.advance = function() {
1809
1809
  throw new Error("Cursor not started");
1810
- }, F.fail = ee(M), F.next = function() {
1811
- var se = this, ce = 1;
1810
+ }, U.fail = q(T), U.next = function() {
1811
+ var ce = this, ue = 1;
1812
1812
  return this.start(function() {
1813
- return ce-- ? se.continue() : se.stop();
1813
+ return ue-- ? ce.continue() : ce.stop();
1814
1814
  }).then(function() {
1815
- return se;
1815
+ return ce;
1816
1816
  });
1817
- }, F.start = function(se) {
1818
- function ce() {
1819
- if (T.result) try {
1820
- se();
1821
- } catch (ue) {
1822
- F.fail(ue);
1817
+ }, U.start = function(ce) {
1818
+ function ue() {
1819
+ if (R.result) try {
1820
+ ce();
1821
+ } catch (de) {
1822
+ U.fail(de);
1823
1823
  }
1824
- else F.done = !0, F.start = function() {
1824
+ else U.done = !0, U.start = function() {
1825
1825
  throw new Error("Cursor behind last entry");
1826
- }, F.stop();
1826
+ }, U.stop();
1827
1827
  }
1828
- var Jt = new Promise(function(ue, ze) {
1829
- ue = ee(ue), T.onerror = me(ze), F.fail = ze, F.stop = function(Gn) {
1830
- F.stop = F.continue = F.continuePrimaryKey = F.advance = fe, ue(Gn);
1828
+ var Jt = new Promise(function(de, ze) {
1829
+ de = q(de), R.onerror = be(ze), U.fail = ze, U.stop = function(Gn) {
1830
+ U.stop = U.continue = U.continuePrimaryKey = U.advance = pe, de(Gn);
1831
1831
  };
1832
1832
  });
1833
- return T.onsuccess = ee(function(ue) {
1834
- T.onsuccess = ce, ce();
1835
- }), F.continue = U, F.continuePrimaryKey = W, F.advance = z, ce(), Jt;
1836
- }, I(F)) : I(null);
1837
- }, M);
1833
+ return R.onsuccess = q(function(de) {
1834
+ R.onsuccess = ue, ue();
1835
+ }), U.continue = W, U.continuePrimaryKey = z, U.advance = H, ue(), Jt;
1836
+ }, P(U)) : P(null);
1837
+ }, T);
1838
1838
  });
1839
- }, count: function(v) {
1840
- var y = v.query, S = v.trans, E = y.index, O = y.range;
1841
- return new Promise(function(A, I) {
1842
- var M = S.objectStore(m), C = E.isPrimaryKey ? M : M.index(E.name), M = i(O), C = M ? C.count(M) : C.count();
1843
- C.onsuccess = ee(function(R) {
1844
- return A(R.target.result);
1845
- }), C.onerror = me(I);
1839
+ }, count: function(w) {
1840
+ var y = w.query, _ = w.trans, E = y.index, O = y.range;
1841
+ return new Promise(function(A, P) {
1842
+ var T = _.objectStore(m), I = E.isPrimaryKey ? T : T.index(E.name), T = i(O), I = T ? I.count(T) : I.count();
1843
+ I.onsuccess = q(function(C) {
1844
+ return A(C.target.result);
1845
+ }), I.onerror = be(P);
1846
1846
  });
1847
1847
  } };
1848
1848
  }
1849
- var a, c, u, b = (c = h, u = yr((a = e).objectStoreNames), { schema: { name: a.name, tables: u.map(function(_) {
1850
- return c.objectStore(_);
1851
- }).map(function(_) {
1852
- var p = _.keyPath, y = _.autoIncrement, m = P(p), v = {}, y = { name: _.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: p == null, compound: m, keyPath: p, autoIncrement: y, unique: !0, extractKey: Sn(p) }, indexes: yr(_.indexNames).map(function(S) {
1853
- return _.index(S);
1849
+ var a, c, u, b = (c = h, u = yr((a = e).objectStoreNames), { schema: { name: a.name, tables: u.map(function(S) {
1850
+ return c.objectStore(S);
1851
+ }).map(function(S) {
1852
+ var p = S.keyPath, y = S.autoIncrement, m = F(p), w = {}, y = { name: S.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: p == null, compound: m, keyPath: p, autoIncrement: y, unique: !0, extractKey: _n(p) }, indexes: yr(S.indexNames).map(function(_) {
1853
+ return S.index(_);
1854
1854
  }).map(function(A) {
1855
- var E = A.name, O = A.unique, I = A.multiEntry, A = A.keyPath, I = { name: E, compound: P(A), keyPath: A, unique: O, multiEntry: I, extractKey: Sn(A) };
1856
- return v[mt(A)] = I;
1857
- }), getIndexByKeyPath: function(S) {
1858
- return v[mt(S)];
1855
+ var E = A.name, O = A.unique, P = A.multiEntry, A = A.keyPath, P = { name: E, compound: F(A), keyPath: A, unique: O, multiEntry: P, extractKey: _n(A) };
1856
+ return w[mt(A)] = P;
1857
+ }), getIndexByKeyPath: function(_) {
1858
+ return w[mt(_)];
1859
1859
  } };
1860
- return v[":id"] = y.primaryKey, p != null && (v[mt(p)] = y.primaryKey), y;
1860
+ return w[":id"] = y.primaryKey, p != null && (w[mt(p)] = y.primaryKey), y;
1861
1861
  }) }, hasGetAll: 0 < u.length && "getAll" in c.objectStore(u[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) }), h = b.schema, g = b.hasGetAll, b = h.tables.map(o), f = {};
1862
- return b.forEach(function(_) {
1863
- return f[_.name] = _;
1864
- }), { stack: "dbcore", transaction: e.transaction.bind(e), table: function(_) {
1865
- if (!f[_]) throw new Error("Table '".concat(_, "' not found"));
1866
- return f[_];
1862
+ return b.forEach(function(S) {
1863
+ return f[S.name] = S;
1864
+ }), { stack: "dbcore", transaction: e.transaction.bind(e), table: function(S) {
1865
+ if (!f[S]) throw new Error("Table '".concat(S, "' not found"));
1866
+ return f[S];
1867
1867
  }, MIN_KEY: -1 / 0, MAX_KEY: yt(t), schema: h };
1868
1868
  }
1869
1869
  function di(e, t, n, i) {
@@ -1886,7 +1886,7 @@ var Tr = { exports: {} };
1886
1886
  var a = i[o];
1887
1887
  t.forEach(function(c) {
1888
1888
  var u = function h(g, b) {
1889
- return Fr(g, b) || (g = Z(g)) && h(g, b);
1889
+ return Fr(g, b) || (g = X(g)) && h(g, b);
1890
1890
  }(c, o);
1891
1891
  (!u || "value" in u && u.value === void 0) && (c === e.Transaction.prototype || c instanceof e.Transaction ? Ae(c, o, { get: function() {
1892
1892
  return this.table(o);
@@ -1906,7 +1906,7 @@ var Tr = { exports: {} };
1906
1906
  }
1907
1907
  function hi(e, t, n, i) {
1908
1908
  var o = e._dbSchema;
1909
- n.objectStoreNames.contains("$meta") && !o.$meta && (o.$meta = _n("$meta", br("")[0], []), e._storeNames.push("$meta"));
1909
+ n.objectStoreNames.contains("$meta") && !o.$meta && (o.$meta = Sn("$meta", br("")[0], []), e._storeNames.push("$meta"));
1910
1910
  var a = e._createTransaction("readwrite", e._storeNames, o);
1911
1911
  a.create(n), a._completion.catch(i);
1912
1912
  var c = a._reject.bind(a), u = G.transless || G;
@@ -1914,57 +1914,57 @@ var Tr = { exports: {} };
1914
1914
  return G.trans = a, G.transless = u, t !== 0 ? (Bt(e, n), g = t, ((h = a).storeNames.includes("$meta") ? h.table("$meta").get("version").then(function(b) {
1915
1915
  return b ?? g;
1916
1916
  }) : B.resolve(g)).then(function(b) {
1917
- return _ = b, p = a, m = n, v = [], b = (f = e)._versions, y = f._dbSchema = $t(0, f.idbdb, m), (b = b.filter(function(S) {
1918
- return S._cfg.version >= _;
1919
- })).length !== 0 ? (b.forEach(function(S) {
1920
- v.push(function() {
1921
- var E = y, O = S._cfg.dbschema;
1917
+ return S = b, p = a, m = n, w = [], b = (f = e)._versions, y = f._dbSchema = $t(0, f.idbdb, m), (b = b.filter(function(_) {
1918
+ return _._cfg.version >= S;
1919
+ })).length !== 0 ? (b.forEach(function(_) {
1920
+ w.push(function() {
1921
+ var E = y, O = _._cfg.dbschema;
1922
1922
  Ft(f, E, m), Ft(f, O, m), y = f._dbSchema = O;
1923
1923
  var A = On(E, O);
1924
- A.add.forEach(function(K) {
1925
- xn(m, K[0], K[1].primKey, K[1].indexes);
1926
- }), A.change.forEach(function(K) {
1927
- if (K.recreate) throw new $.Upgrade("Not yet support for changing primary key");
1928
- var T = m.objectStore(K.name);
1929
- K.add.forEach(function(L) {
1930
- return Gt(T, L);
1931
- }), K.change.forEach(function(L) {
1932
- T.deleteIndex(L.name), Gt(T, L);
1933
- }), K.del.forEach(function(L) {
1934
- return T.deleteIndex(L);
1924
+ A.add.forEach(function(M) {
1925
+ xn(m, M[0], M[1].primKey, M[1].indexes);
1926
+ }), A.change.forEach(function(M) {
1927
+ if (M.recreate) throw new $.Upgrade("Not yet support for changing primary key");
1928
+ var R = m.objectStore(M.name);
1929
+ M.add.forEach(function(L) {
1930
+ return Gt(R, L);
1931
+ }), M.change.forEach(function(L) {
1932
+ R.deleteIndex(L.name), Gt(R, L);
1933
+ }), M.del.forEach(function(L) {
1934
+ return R.deleteIndex(L);
1935
1935
  });
1936
1936
  });
1937
- var I = S._cfg.contentUpgrade;
1938
- if (I && S._cfg.version > _) {
1937
+ var P = _._cfg.contentUpgrade;
1938
+ if (P && _._cfg.version > S) {
1939
1939
  Bt(f, m), p._memoizedTables = {};
1940
- var M = Yn(O);
1941
- A.del.forEach(function(K) {
1942
- M[K] = E[K];
1943
- }), En(f, [f.Transaction.prototype]), Lt(f, [f.Transaction.prototype], j(M), M), p.schema = M;
1944
- var C, R = nn(I);
1945
- return R && qe(), A = B.follow(function() {
1946
- var K;
1947
- (C = I(p)) && R && (K = Pe.bind(null, null), C.then(K, K));
1948
- }), C && typeof C.then == "function" ? B.resolve(C) : A.then(function() {
1949
- return C;
1940
+ var T = Yn(O);
1941
+ A.del.forEach(function(M) {
1942
+ T[M] = E[M];
1943
+ }), En(f, [f.Transaction.prototype]), Lt(f, [f.Transaction.prototype], j(T), T), p.schema = T;
1944
+ var I, C = nn(P);
1945
+ return C && qe(), A = B.follow(function() {
1946
+ var M;
1947
+ (I = P(p)) && C && (M = Pe.bind(null, null), I.then(M, M));
1948
+ }), I && typeof I.then == "function" ? B.resolve(I) : A.then(function() {
1949
+ return I;
1950
1950
  });
1951
1951
  }
1952
- }), v.push(function(E) {
1953
- var O, A, I = S._cfg.dbschema;
1954
- O = I, A = E, [].slice.call(A.db.objectStoreNames).forEach(function(M) {
1955
- return O[M] == null && A.db.deleteObjectStore(M);
1952
+ }), w.push(function(E) {
1953
+ var O, A, P = _._cfg.dbschema;
1954
+ O = P, A = E, [].slice.call(A.db.objectStoreNames).forEach(function(T) {
1955
+ return O[T] == null && A.db.deleteObjectStore(T);
1956
1956
  }), En(f, [f.Transaction.prototype]), Lt(f, [f.Transaction.prototype], f._storeNames, f._dbSchema), p.schema = f._dbSchema;
1957
- }), v.push(function(E) {
1958
- f.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(f.idbdb.version / 10) === S._cfg.version ? (f.idbdb.deleteObjectStore("$meta"), delete f._dbSchema.$meta, f._storeNames = f._storeNames.filter(function(O) {
1957
+ }), w.push(function(E) {
1958
+ f.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(f.idbdb.version / 10) === _._cfg.version ? (f.idbdb.deleteObjectStore("$meta"), delete f._dbSchema.$meta, f._storeNames = f._storeNames.filter(function(O) {
1959
1959
  return O !== "$meta";
1960
- })) : E.objectStore("$meta").put(S._cfg.version, "version"));
1960
+ })) : E.objectStore("$meta").put(_._cfg.version, "version"));
1961
1961
  });
1962
- }), function S() {
1963
- return v.length ? B.resolve(v.shift()(p.idbtrans)).then(S) : B.resolve();
1962
+ }), function _() {
1963
+ return w.length ? B.resolve(w.shift()(p.idbtrans)).then(_) : B.resolve();
1964
1964
  }().then(function() {
1965
1965
  mr(y, m);
1966
1966
  })) : B.resolve();
1967
- var f, _, p, m, v, y;
1967
+ var f, S, p, m, w, y;
1968
1968
  }).catch(c)) : (j(o).forEach(function(b) {
1969
1969
  xn(n, b, o[b].primKey, o[b].indexes);
1970
1970
  }), Bt(e, n), void B.follow(function() {
@@ -1982,7 +1982,7 @@ var Tr = { exports: {} };
1982
1982
  if (c.change.length || c.recreate) return console.warn("Unable to patch indexes of table ".concat(c.name, " because it has changes on the type of index or primary key.")), { value: void 0 };
1983
1983
  var u = t.objectStore(c.name);
1984
1984
  c.add.forEach(function(h) {
1985
- ye && console.debug("Dexie upgrade patch: Creating missing index ".concat(c.name, ".").concat(h.src)), Gt(u, h);
1985
+ me && console.debug("Dexie upgrade patch: Creating missing index ".concat(c.name, ".").concat(h.src)), Gt(u, h);
1986
1986
  });
1987
1987
  }(o[i]);
1988
1988
  if (typeof a == "object") return a.value;
@@ -2017,7 +2017,7 @@ var Tr = { exports: {} };
2017
2017
  }
2018
2018
  function mr(e, t) {
2019
2019
  j(e).forEach(function(n) {
2020
- t.db.objectStoreNames.contains(n) || (ye && console.debug("Dexie: Creating missing table", n), xn(t, n, e[n].primKey, e[n].indexes));
2020
+ t.db.objectStoreNames.contains(n) || (me && console.debug("Dexie: Creating missing table", n), xn(t, n, e[n].primKey, e[n].indexes));
2021
2021
  });
2022
2022
  }
2023
2023
  function Gt(e, t) {
@@ -2025,12 +2025,12 @@ var Tr = { exports: {} };
2025
2025
  }
2026
2026
  function $t(e, t, n) {
2027
2027
  var i = {};
2028
- return St(t.objectStoreNames, 0).forEach(function(o) {
2028
+ return _t(t.objectStoreNames, 0).forEach(function(o) {
2029
2029
  for (var a = n.objectStore(o), c = wn(gr(g = a.keyPath), g || "", !0, !1, !!a.autoIncrement, g && typeof g != "string", !0), u = [], h = 0; h < a.indexNames.length; ++h) {
2030
2030
  var b = a.index(a.indexNames[h]), g = b.keyPath, b = wn(b.name, g, !!b.unique, !!b.multiEntry, !1, g && typeof g != "string", !1);
2031
2031
  u.push(b);
2032
2032
  }
2033
- i[o] = _n(o, c, u);
2033
+ i[o] = Sn(o, c, u);
2034
2034
  }), i;
2035
2035
  }
2036
2036
  function Ft(e, t, n) {
@@ -2038,7 +2038,7 @@ var Tr = { exports: {} };
2038
2038
  var a = i[o], c = n.objectStore(a);
2039
2039
  e._hasGetAll = "getAll" in c;
2040
2040
  for (var u = 0; u < c.indexNames.length; ++u) {
2041
- var h = c.indexNames[u], g = c.index(h).keyPath, b = typeof g == "string" ? g : "[" + St(g).join("+") + "]";
2041
+ var h = c.indexNames[u], g = c.index(h).keyPath, b = typeof g == "string" ? g : "[" + _t(g).join("+") + "]";
2042
2042
  !t[a] || (g = t[a].idxByName[b]) && (g.name = h, delete t[a].idxByName[b], t[a].idxByName[h] = g);
2043
2043
  }
2044
2044
  }
@@ -2047,7 +2047,7 @@ var Tr = { exports: {} };
2047
2047
  function br(e) {
2048
2048
  return e.split(",").map(function(t, n) {
2049
2049
  var i = (t = t.trim()).replace(/([&*]|\+\+)/g, ""), o = /^\[/.test(i) ? i.match(/^\[(.*)\]$/)[1].split("+") : i;
2050
- return wn(i, o || null, /\&/.test(t), /\*/.test(t), /\+\+/.test(t), P(o), n === 0);
2050
+ return wn(i, o || null, /\&/.test(t), /\*/.test(t), /\+\+/.test(t), F(o), n === 0);
2051
2051
  });
2052
2052
  }
2053
2053
  var gi = (Ut.prototype._parseStoresSpec = function(e, t) {
@@ -2058,15 +2058,15 @@ var Tr = { exports: {} };
2058
2058
  i.forEach(function(a) {
2059
2059
  if (a.auto) throw new $.Schema("Only primary key can be marked as autoIncrement (++)");
2060
2060
  if (!a.keyPath) throw new $.Schema("Index must have a name and cannot be an empty string");
2061
- }), t[n] = _n(n, o, i);
2061
+ }), t[n] = Sn(n, o, i);
2062
2062
  }
2063
2063
  });
2064
2064
  }, Ut.prototype.stores = function(n) {
2065
2065
  var t = this.db;
2066
- this._cfg.storesSource = this._cfg.storesSource ? Y(this._cfg.storesSource, n) : n;
2066
+ this._cfg.storesSource = this._cfg.storesSource ? N(this._cfg.storesSource, n) : n;
2067
2067
  var n = t._versions, i = {}, o = {};
2068
2068
  return n.forEach(function(a) {
2069
- Y(i, a._cfg.storesSource), o = a._cfg.dbschema = {}, a._parseStoresSpec(i, o);
2069
+ N(i, a._cfg.storesSource), o = a._cfg.dbschema = {}, a._parseStoresSpec(i, o);
2070
2070
  }), t._dbSchema = o, En(t, [t._allTables, t, t.Transaction.prototype]), Lt(t, [t._allTables, t, t.Transaction.prototype, this._cfg.tables], j(o), o), t._storeNames = j(o), this;
2071
2071
  }, Ut.prototype.upgrade = function(e) {
2072
2072
  return this._cfg.contentUpgrade = on(this._cfg.contentUpgrade || J, e), this;
@@ -2088,22 +2088,22 @@ var Tr = { exports: {} };
2088
2088
  function Pn(e) {
2089
2089
  return !("from" in e);
2090
2090
  }
2091
- var ae = function(e, t) {
2091
+ var se = function(e, t) {
2092
2092
  if (!this) {
2093
- var n = new ae();
2094
- return e && "d" in e && Y(n, e), n;
2093
+ var n = new se();
2094
+ return e && "d" in e && N(n, e), n;
2095
2095
  }
2096
- Y(this, arguments.length ? { d: 1, from: e, to: 1 < arguments.length ? t : e } : { d: 0 });
2096
+ N(this, arguments.length ? { d: 1, from: e, to: 1 < arguments.length ? t : e } : { d: 0 });
2097
2097
  };
2098
2098
  function bt(e, t, n) {
2099
- var i = H(t, n);
2099
+ var i = Y(t, n);
2100
2100
  if (!isNaN(i)) {
2101
2101
  if (0 < i) throw RangeError();
2102
- if (Pn(e)) return Y(e, { from: t, to: n, d: 1 });
2102
+ if (Pn(e)) return N(e, { from: t, to: n, d: 1 });
2103
2103
  var o = e.l, i = e.r;
2104
- if (H(n, e.from) < 0) return o ? bt(o, t, n) : e.l = { from: t, to: n, d: 1, l: null, r: null }, wr(e);
2105
- if (0 < H(t, e.to)) return i ? bt(i, t, n) : e.r = { from: t, to: n, d: 1, l: null, r: null }, wr(e);
2106
- H(t, e.from) < 0 && (e.from = t, e.l = null, e.d = i ? i.d + 1 : 1), 0 < H(n, e.to) && (e.to = n, e.r = null, e.d = e.l ? e.l.d + 1 : 1), n = !e.r, o && !e.l && vt(e, o), i && n && vt(e, i);
2104
+ if (Y(n, e.from) < 0) return o ? bt(o, t, n) : e.l = { from: t, to: n, d: 1, l: null, r: null }, wr(e);
2105
+ if (0 < Y(t, e.to)) return i ? bt(i, t, n) : e.r = { from: t, to: n, d: 1, l: null, r: null }, wr(e);
2106
+ Y(t, e.from) < 0 && (e.from = t, e.l = null, e.d = i ? i.d + 1 : 1), 0 < Y(n, e.to) && (e.to = n, e.r = null, e.d = e.l ? e.l.d + 1 : 1), n = !e.r, o && !e.l && vt(e, o), i && n && vt(e, i);
2107
2107
  }
2108
2108
  }
2109
2109
  function vt(e, t) {
@@ -2116,8 +2116,8 @@ var Tr = { exports: {} };
2116
2116
  var n = Wt(t), i = n.next();
2117
2117
  if (i.done) return !1;
2118
2118
  for (var o = i.value, a = Wt(e), c = a.next(o.from), u = c.value; !i.done && !c.done; ) {
2119
- if (H(u.from, o.to) <= 0 && 0 <= H(u.to, o.from)) return !0;
2120
- H(o.from, u.from) < 0 ? o = (i = n.next(u.from)).value : u = (c = a.next(o.from)).value;
2119
+ if (Y(u.from, o.to) <= 0 && 0 <= Y(u.to, o.from)) return !0;
2120
+ Y(o.from, u.from) < 0 ? o = (i = n.next(u.from)).value : u = (c = a.next(o.from)).value;
2121
2121
  }
2122
2122
  return !1;
2123
2123
  }
@@ -2126,10 +2126,10 @@ var Tr = { exports: {} };
2126
2126
  return { next: function(n) {
2127
2127
  for (var i = 0 < arguments.length; t; ) switch (t.s) {
2128
2128
  case 0:
2129
- if (t.s = 1, i) for (; t.n.l && H(n, t.n.from) < 0; ) t = { up: t, n: t.n.l, s: 1 };
2129
+ if (t.s = 1, i) for (; t.n.l && Y(n, t.n.from) < 0; ) t = { up: t, n: t.n.l, s: 1 };
2130
2130
  else for (; t.n.l; ) t = { up: t, n: t.n.l, s: 1 };
2131
2131
  case 1:
2132
- if (t.s = 2, !i || H(n, t.n.to) <= 0) return { value: t.n, done: !1 };
2132
+ if (t.s = 2, !i || Y(n, t.n.to) <= 0) return { value: t.n, done: !1 };
2133
2133
  case 2:
2134
2134
  if (t.n.r) {
2135
2135
  t.s = 3, t = { up: t, n: t.n.r, s: 0 };
@@ -2143,9 +2143,9 @@ var Tr = { exports: {} };
2143
2143
  }
2144
2144
  function wr(e) {
2145
2145
  var t, n, i = (((t = e.r) === null || t === void 0 ? void 0 : t.d) || 0) - (((n = e.l) === null || n === void 0 ? void 0 : n.d) || 0), o = 1 < i ? "r" : i < -1 ? "l" : "";
2146
- o && (t = o == "r" ? "l" : "r", n = l({}, e), i = e[o], e.from = i.from, e.to = i.to, e[o] = i[o], n[o] = i[t], (e[t] = n).d = _r(n)), e.d = _r(e);
2146
+ o && (t = o == "r" ? "l" : "r", n = l({}, e), i = e[o], e.from = i.from, e.to = i.to, e[o] = i[o], n[o] = i[t], (e[t] = n).d = Sr(n)), e.d = Sr(e);
2147
2147
  }
2148
- function _r(n) {
2148
+ function Sr(n) {
2149
2149
  var t = n.r, n = n.l;
2150
2150
  return (t ? n ? Math.max(t.d, n.d) : t.d : n ? n.d : 0) + 1;
2151
2151
  }
@@ -2153,7 +2153,7 @@ var Tr = { exports: {} };
2153
2153
  return j(t).forEach(function(n) {
2154
2154
  e[n] ? vt(e[n], t[n]) : e[n] = function i(o) {
2155
2155
  var a, c, u = {};
2156
- for (a in o) X(o, a) && (c = o[a], u[a] = !c || typeof c != "object" || Xn.has(c.constructor) ? c : i(c));
2156
+ for (a in o) ee(o, a) && (c = o[a], u[a] = !c || typeof c != "object" || Xn.has(c.constructor) ? c : i(c));
2157
2157
  return u;
2158
2158
  }(t[n]);
2159
2159
  }), e;
@@ -2163,7 +2163,7 @@ var Tr = { exports: {} };
2163
2163
  return t[n] && vr(t[n], e[n]);
2164
2164
  });
2165
2165
  }
2166
- pe(ae.prototype, ((he = { add: function(e) {
2166
+ le(se.prototype, ((ge = { add: function(e) {
2167
2167
  return vt(this, e), this;
2168
2168
  }, addKey: function(e) {
2169
2169
  return bt(this, e, e), this;
@@ -2174,10 +2174,10 @@ var Tr = { exports: {} };
2174
2174
  }), this;
2175
2175
  }, hasKey: function(e) {
2176
2176
  var t = Wt(this).next(e).value;
2177
- return t && H(t.from, e) <= 0 && 0 <= H(t.to, e);
2177
+ return t && Y(t.from, e) <= 0 && 0 <= Y(t.to, e);
2178
2178
  } })[tn] = function() {
2179
2179
  return Wt(this);
2180
- }, he));
2180
+ }, ge));
2181
2181
  var Ue = {}, Cn = {}, Rn = !1;
2182
2182
  function Ht(e) {
2183
2183
  zt(Cn, e), Rn || (Rn = !0, setTimeout(function() {
@@ -2187,27 +2187,27 @@ var Tr = { exports: {} };
2187
2187
  function Tn(e, t) {
2188
2188
  t === void 0 && (t = !1);
2189
2189
  var n = /* @__PURE__ */ new Set();
2190
- if (e.all) for (var i = 0, o = Object.values(Ue); i < o.length; i++) Sr(c = o[i], e, n, t);
2190
+ if (e.all) for (var i = 0, o = Object.values(Ue); i < o.length; i++) _r(c = o[i], e, n, t);
2191
2191
  else for (var a in e) {
2192
2192
  var c, u = /^idb\:\/\/(.*)\/(.*)\//.exec(a);
2193
- u && (a = u[1], u = u[2], (c = Ue["idb://".concat(a, "/").concat(u)]) && Sr(c, e, n, t));
2193
+ u && (a = u[1], u = u[2], (c = Ue["idb://".concat(a, "/").concat(u)]) && _r(c, e, n, t));
2194
2194
  }
2195
2195
  n.forEach(function(h) {
2196
2196
  return h();
2197
2197
  });
2198
2198
  }
2199
- function Sr(e, t, n, i) {
2199
+ function _r(e, t, n, i) {
2200
2200
  for (var o = [], a = 0, c = Object.entries(e.queries.query); a < c.length; a++) {
2201
2201
  for (var u = c[a], h = u[0], g = [], b = 0, f = u[1]; b < f.length; b++) {
2202
- var _ = f[b];
2203
- In(t, _.obsSet) ? _.subscribers.forEach(function(y) {
2202
+ var S = f[b];
2203
+ In(t, S.obsSet) ? S.subscribers.forEach(function(y) {
2204
2204
  return n.add(y);
2205
- }) : i && g.push(_);
2205
+ }) : i && g.push(S);
2206
2206
  }
2207
2207
  i && o.push([h, g]);
2208
2208
  }
2209
2209
  if (i) for (var p = 0, m = o; p < m.length; p++) {
2210
- var v = m[p], h = v[0], g = v[1];
2210
+ var w = m[p], h = w[0], g = w[1];
2211
2211
  e.queries.query[h] = g;
2212
2212
  }
2213
2213
  }
@@ -2222,48 +2222,48 @@ var Tr = { exports: {} };
2222
2222
  if (t.openCanceller !== i) throw new $.DatabaseClosed("db.open() was cancelled");
2223
2223
  }
2224
2224
  function u() {
2225
- return new B(function(_, p) {
2225
+ return new B(function(S, p) {
2226
2226
  if (c(), !n) throw new $.MissingAPI();
2227
- var m = e.name, v = t.autoSchema || !o ? n.open(m) : n.open(m, o);
2228
- if (!v) throw new $.MissingAPI();
2229
- v.onerror = me(p), v.onblocked = ee(e._fireOnBlocked), v.onupgradeneeded = ee(function(y) {
2230
- var S;
2231
- b = v.transaction, t.autoSchema && !e._options.allowEmptyDB ? (v.onerror = pt, b.abort(), v.result.close(), (S = n.deleteDatabase(m)).onsuccess = S.onerror = ee(function() {
2227
+ var m = e.name, w = t.autoSchema || !o ? n.open(m) : n.open(m, o);
2228
+ if (!w) throw new $.MissingAPI();
2229
+ w.onerror = be(p), w.onblocked = q(e._fireOnBlocked), w.onupgradeneeded = q(function(y) {
2230
+ var _;
2231
+ b = w.transaction, t.autoSchema && !e._options.allowEmptyDB ? (w.onerror = pt, b.abort(), w.result.close(), (_ = n.deleteDatabase(m)).onsuccess = _.onerror = q(function() {
2232
2232
  p(new $.NoSuchDatabase("Database ".concat(m, " doesnt exist")));
2233
- })) : (b.onerror = me(p), y = y.oldVersion > Math.pow(2, 62) ? 0 : y.oldVersion, f = y < 1, e.idbdb = v.result, a && pi(e, b), hi(e, y / 10, b, p));
2234
- }, p), v.onsuccess = ee(function() {
2233
+ })) : (b.onerror = be(p), y = y.oldVersion > Math.pow(2, 62) ? 0 : y.oldVersion, f = y < 1, e.idbdb = w.result, a && pi(e, b), hi(e, y / 10, b, p));
2234
+ }, p), w.onsuccess = q(function() {
2235
2235
  b = null;
2236
- var y, S, E, O, A, I = e.idbdb = v.result, M = St(I.objectStoreNames);
2237
- if (0 < M.length) try {
2238
- var C = I.transaction((O = M).length === 1 ? O[0] : O, "readonly");
2239
- if (t.autoSchema) S = I, E = C, (y = e).verno = S.version / 10, E = y._dbSchema = $t(0, S, E), y._storeNames = St(S.objectStoreNames, 0), Lt(y, [y._allTables], j(E), E);
2240
- else if (Ft(e, e._dbSchema, C), ((A = On($t(0, (A = e).idbdb, C), A._dbSchema)).add.length || A.change.some(function(R) {
2241
- return R.add.length || R.change.length;
2242
- })) && !a) return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."), I.close(), o = I.version + 1, a = !0, _(u());
2243
- Bt(e, C);
2236
+ var y, _, E, O, A, P = e.idbdb = w.result, T = _t(P.objectStoreNames);
2237
+ if (0 < T.length) try {
2238
+ var I = P.transaction((O = T).length === 1 ? O[0] : O, "readonly");
2239
+ if (t.autoSchema) _ = P, E = I, (y = e).verno = _.version / 10, E = y._dbSchema = $t(0, _, E), y._storeNames = _t(_.objectStoreNames, 0), Lt(y, [y._allTables], j(E), E);
2240
+ else if (Ft(e, e._dbSchema, I), ((A = On($t(0, (A = e).idbdb, I), A._dbSchema)).add.length || A.change.some(function(C) {
2241
+ return C.add.length || C.change.length;
2242
+ })) && !a) return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."), P.close(), o = P.version + 1, a = !0, S(u());
2243
+ Bt(e, I);
2244
2244
  } catch {
2245
2245
  }
2246
- et.push(e), I.onversionchange = ee(function(R) {
2247
- t.vcFired = !0, e.on("versionchange").fire(R);
2248
- }), I.onclose = ee(function(R) {
2249
- e.on("close").fire(R);
2250
- }), f && (A = e._deps, C = m, I = A.indexedDB, A = A.IDBKeyRange, kn(I) || C === Tt || An(I, A).put({ name: C }).catch(J)), _();
2246
+ et.push(e), P.onversionchange = q(function(C) {
2247
+ t.vcFired = !0, e.on("versionchange").fire(C);
2248
+ }), P.onclose = q(function(C) {
2249
+ e.on("close").fire(C);
2250
+ }), f && (A = e._deps, I = m, P = A.indexedDB, A = A.IDBKeyRange, kn(P) || I === Tt || An(P, A).put({ name: I }).catch(J)), S();
2251
2251
  }, p);
2252
- }).catch(function(_) {
2253
- switch (_ == null ? void 0 : _.name) {
2252
+ }).catch(function(S) {
2253
+ switch (S == null ? void 0 : S.name) {
2254
2254
  case "UnknownError":
2255
2255
  if (0 < t.PR1398_maxLoop) return t.PR1398_maxLoop--, console.warn("Dexie: Workaround for Chrome UnknownError on open()"), u();
2256
2256
  break;
2257
2257
  case "VersionError":
2258
2258
  if (0 < o) return o = 0, u();
2259
2259
  }
2260
- return B.reject(_);
2260
+ return B.reject(S);
2261
2261
  });
2262
2262
  }
2263
2263
  var h, g = t.dbReadyResolve, b = null, f = !1;
2264
- return B.race([i, (typeof navigator > "u" ? B.resolve() : !navigator.userAgentData && /Safari\//.test(navigator.userAgent) && !/Chrom(e|ium)\//.test(navigator.userAgent) && indexedDB.databases ? new Promise(function(_) {
2264
+ return B.race([i, (typeof navigator > "u" ? B.resolve() : !navigator.userAgentData && /Safari\//.test(navigator.userAgent) && !/Chrom(e|ium)\//.test(navigator.userAgent) && indexedDB.databases ? new Promise(function(S) {
2265
2265
  function p() {
2266
- return indexedDB.databases().finally(_);
2266
+ return indexedDB.databases().finally(S);
2267
2267
  }
2268
2268
  h = setInterval(p, 100), p();
2269
2269
  }).finally(function() {
@@ -2271,32 +2271,32 @@ var Tr = { exports: {} };
2271
2271
  }) : Promise.resolve()).then(u)]).then(function() {
2272
2272
  return c(), t.onReadyBeingFired = [], B.resolve(Dn(function() {
2273
2273
  return e.on.ready.fire(e.vip);
2274
- })).then(function _() {
2274
+ })).then(function S() {
2275
2275
  if (0 < t.onReadyBeingFired.length) {
2276
2276
  var p = t.onReadyBeingFired.reduce(on, J);
2277
2277
  return t.onReadyBeingFired = [], B.resolve(Dn(function() {
2278
2278
  return p(e.vip);
2279
- })).then(_);
2279
+ })).then(S);
2280
2280
  }
2281
2281
  });
2282
2282
  }).finally(function() {
2283
2283
  t.openCanceller === i && (t.onReadyBeingFired = null, t.isBeingOpened = !1);
2284
- }).catch(function(_) {
2285
- t.dbOpenError = _;
2284
+ }).catch(function(S) {
2285
+ t.dbOpenError = S;
2286
2286
  try {
2287
2287
  b && b.abort();
2288
2288
  } catch {
2289
2289
  }
2290
- return i === t.openCanceller && e._close(), te(_);
2290
+ return i === t.openCanceller && e._close(), te(S);
2291
2291
  }).finally(function() {
2292
2292
  t.openComplete = !0, g();
2293
2293
  }).then(function() {
2294
- var _;
2295
- return f && (_ = {}, e.tables.forEach(function(p) {
2294
+ var S;
2295
+ return f && (S = {}, e.tables.forEach(function(p) {
2296
2296
  p.schema.indexes.forEach(function(m) {
2297
- m.name && (_["idb://".concat(e.name, "/").concat(p.name, "/").concat(m.name)] = new ae(-1 / 0, [[[]]]));
2298
- }), _["idb://".concat(e.name, "/").concat(p.name, "/")] = _["idb://".concat(e.name, "/").concat(p.name, "/:dels")] = new ae(-1 / 0, [[[]]]);
2299
- }), Re(gt).fire(_), Tn(_, !0)), e;
2297
+ m.name && (S["idb://".concat(e.name, "/").concat(p.name, "/").concat(m.name)] = new se(-1 / 0, [[[]]]));
2298
+ }), S["idb://".concat(e.name, "/").concat(p.name, "/")] = S["idb://".concat(e.name, "/").concat(p.name, "/:dels")] = new se(-1 / 0, [[[]]]);
2299
+ }), Re(gt).fire(S), Tn(S, !0)), e;
2300
2300
  });
2301
2301
  }
2302
2302
  function Mn(e) {
@@ -2309,23 +2309,23 @@ var Tr = { exports: {} };
2309
2309
  function o(a) {
2310
2310
  return function(h) {
2311
2311
  var u = a(h), h = u.value;
2312
- return u.done ? h : h && typeof h.then == "function" ? h.then(n, i) : P(h) ? Promise.all(h).then(n, i) : n(h);
2312
+ return u.done ? h : h && typeof h.then == "function" ? h.then(n, i) : F(h) ? Promise.all(h).then(n, i) : n(h);
2313
2313
  };
2314
2314
  }
2315
2315
  return o(t)();
2316
2316
  }
2317
2317
  function Yt(e, t, n) {
2318
- for (var i = P(e) ? e.slice() : [e], o = 0; o < n; ++o) i.push(t);
2318
+ for (var i = F(e) ? e.slice() : [e], o = 0; o < n; ++o) i.push(t);
2319
2319
  return i;
2320
2320
  }
2321
2321
  var mi = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create: function(e) {
2322
2322
  return l(l({}, e), { table: function(t) {
2323
2323
  var n = e.table(t), i = n.schema, o = {}, a = [];
2324
- function c(f, _, p) {
2325
- var m = mt(f), v = o[m] = o[m] || [], y = f == null ? 0 : typeof f == "string" ? 1 : f.length, S = 0 < _, S = l(l({}, p), { name: S ? "".concat(m, "(virtual-from:").concat(p.name, ")") : p.name, lowLevelIndex: p, isVirtual: S, keyTail: _, keyLength: y, extractKey: Sn(f), unique: !S && p.unique });
2326
- return v.push(S), S.isPrimaryKey || a.push(S), 1 < y && c(y === 2 ? f[0] : f.slice(0, y - 1), _ + 1, p), v.sort(function(E, O) {
2324
+ function c(f, S, p) {
2325
+ var m = mt(f), w = o[m] = o[m] || [], y = f == null ? 0 : typeof f == "string" ? 1 : f.length, _ = 0 < S, _ = l(l({}, p), { name: _ ? "".concat(m, "(virtual-from:").concat(p.name, ")") : p.name, lowLevelIndex: p, isVirtual: _, keyTail: S, keyLength: y, extractKey: _n(f), unique: !_ && p.unique });
2326
+ return w.push(_), _.isPrimaryKey || a.push(_), 1 < y && c(y === 2 ? f[0] : f.slice(0, y - 1), S + 1, p), w.sort(function(E, O) {
2327
2327
  return E.keyTail - O.keyTail;
2328
- }), S;
2328
+ }), _;
2329
2329
  }
2330
2330
  t = c(i.primaryKey.keyPath, 0, i.primaryKey), o[":id"] = [t];
2331
2331
  for (var u = 0, h = i.indexes; u < h.length; u++) {
@@ -2333,8 +2333,8 @@ var Tr = { exports: {} };
2333
2333
  c(g.keyPath, 0, g);
2334
2334
  }
2335
2335
  function b(f) {
2336
- var _, p = f.query.index;
2337
- return p.isVirtual ? l(l({}, f), { query: { index: p.lowLevelIndex, range: (_ = f.query.range, p = p.keyTail, { type: _.type === 1 ? 2 : _.type, lower: Yt(_.lower, _.lowerOpen ? e.MAX_KEY : e.MIN_KEY, p), lowerOpen: !0, upper: Yt(_.upper, _.upperOpen ? e.MIN_KEY : e.MAX_KEY, p), upperOpen: !0 }) } }) : f;
2336
+ var S, p = f.query.index;
2337
+ return p.isVirtual ? l(l({}, f), { query: { index: p.lowLevelIndex, range: (S = f.query.range, p = p.keyTail, { type: S.type === 1 ? 2 : S.type, lower: Yt(S.lower, S.lowerOpen ? e.MAX_KEY : e.MIN_KEY, p), lowerOpen: !0, upper: Yt(S.upper, S.upperOpen ? e.MIN_KEY : e.MAX_KEY, p), upperOpen: !0 }) } }) : f;
2338
2338
  }
2339
2339
  return l(l({}, n), { schema: l(l({}, i), { primaryKey: t, indexes: a, getIndexByKeyPath: function(f) {
2340
2340
  return (f = o[mt(f)]) && f[0];
@@ -2343,22 +2343,22 @@ var Tr = { exports: {} };
2343
2343
  }, query: function(f) {
2344
2344
  return n.query(b(f));
2345
2345
  }, openCursor: function(f) {
2346
- var _ = f.query.index, p = _.keyTail, m = _.isVirtual, v = _.keyLength;
2347
- return m ? n.openCursor(b(f)).then(function(S) {
2348
- return S && y(S);
2346
+ var S = f.query.index, p = S.keyTail, m = S.isVirtual, w = S.keyLength;
2347
+ return m ? n.openCursor(b(f)).then(function(_) {
2348
+ return _ && y(_);
2349
2349
  }) : n.openCursor(f);
2350
- function y(S) {
2351
- return Object.create(S, { continue: { value: function(E) {
2352
- E != null ? S.continue(Yt(E, f.reverse ? e.MAX_KEY : e.MIN_KEY, p)) : f.unique ? S.continue(S.key.slice(0, v).concat(f.reverse ? e.MIN_KEY : e.MAX_KEY, p)) : S.continue();
2350
+ function y(_) {
2351
+ return Object.create(_, { continue: { value: function(E) {
2352
+ E != null ? _.continue(Yt(E, f.reverse ? e.MAX_KEY : e.MIN_KEY, p)) : f.unique ? _.continue(_.key.slice(0, w).concat(f.reverse ? e.MIN_KEY : e.MAX_KEY, p)) : _.continue();
2353
2353
  } }, continuePrimaryKey: { value: function(E, O) {
2354
- S.continuePrimaryKey(Yt(E, e.MAX_KEY, p), O);
2354
+ _.continuePrimaryKey(Yt(E, e.MAX_KEY, p), O);
2355
2355
  } }, primaryKey: { get: function() {
2356
- return S.primaryKey;
2356
+ return _.primaryKey;
2357
2357
  } }, key: { get: function() {
2358
- var E = S.key;
2359
- return v === 1 ? E[0] : E.slice(0, v);
2358
+ var E = _.key;
2359
+ return w === 1 ? E[0] : E.slice(0, w);
2360
2360
  } }, value: { get: function() {
2361
- return S.value;
2361
+ return _.value;
2362
2362
  } } });
2363
2363
  }
2364
2364
  } });
@@ -2367,12 +2367,12 @@ var Tr = { exports: {} };
2367
2367
  function jn(e, t, n, i) {
2368
2368
  return n = n || {}, i = i || "", j(e).forEach(function(o) {
2369
2369
  var a, c, u;
2370
- X(t, o) ? (a = e[o], c = t[o], typeof a == "object" && typeof c == "object" && a && c ? (u = en(a)) !== en(c) ? n[i + o] = t[o] : u === "Object" ? jn(a, c, n, i + o + ".") : a !== c && (n[i + o] = t[o]) : a !== c && (n[i + o] = t[o])) : n[i + o] = void 0;
2370
+ ee(t, o) ? (a = e[o], c = t[o], typeof a == "object" && typeof c == "object" && a && c ? (u = en(a)) !== en(c) ? n[i + o] = t[o] : u === "Object" ? jn(a, c, n, i + o + ".") : a !== c && (n[i + o] = t[o]) : a !== c && (n[i + o] = t[o])) : n[i + o] = void 0;
2371
2371
  }), j(t).forEach(function(o) {
2372
- X(e, o) || (n[i + o] = t[o]);
2372
+ ee(e, o) || (n[i + o] = t[o]);
2373
2373
  }), n;
2374
2374
  }
2375
- function Kn(e, t) {
2375
+ function Nn(e, t) {
2376
2376
  return t.type === "delete" ? t.keys : t.keys || t.values.map(e.extractKey);
2377
2377
  }
2378
2378
  var bi = { stack: "dbcore", name: "HooksMiddleware", level: 2, create: function(e) {
@@ -2399,11 +2399,11 @@ var Tr = { exports: {} };
2399
2399
  case "deleteRange":
2400
2400
  if (u.fire === J) break;
2401
2401
  return a._promise("readwrite", function() {
2402
- return function f(_, p, m) {
2403
- return n.query({ trans: _, values: !1, query: { index: i, range: p }, limit: m }).then(function(v) {
2404
- var y = v.result;
2405
- return b({ type: "delete", keys: y, trans: _ }).then(function(S) {
2406
- return 0 < S.numFailures ? Promise.reject(S.failures[0]) : y.length < m ? { failures: [], numFailures: 0, lastResult: void 0 } : f(_, l(l({}, p), { lower: y[y.length - 1], lowerOpen: !0 }), m);
2402
+ return function f(S, p, m) {
2403
+ return n.query({ trans: S, values: !1, query: { index: i, range: p }, limit: m }).then(function(w) {
2404
+ var y = w.result;
2405
+ return b({ type: "delete", keys: y, trans: S }).then(function(_) {
2406
+ return 0 < _.numFailures ? Promise.reject(_.failures[0]) : y.length < m ? { failures: [], numFailures: 0, lastResult: void 0 } : f(S, l(l({}, p), { lower: y[y.length - 1], lowerOpen: !0 }), m);
2407
2407
  });
2408
2408
  });
2409
2409
  }(o.trans, o.range, 1e4);
@@ -2411,21 +2411,21 @@ var Tr = { exports: {} };
2411
2411
  }
2412
2412
  return n.mutate(o);
2413
2413
  function b(f) {
2414
- var _, p, m, v = G.trans, y = f.keys || Kn(i, f);
2414
+ var S, p, m, w = G.trans, y = f.keys || Nn(i, f);
2415
2415
  if (!y) throw new Error("Keys missing");
2416
- return (f = f.type === "add" || f.type === "put" ? l(l({}, f), { keys: y }) : l({}, f)).type !== "delete" && (f.values = x([], f.values)), f.keys && (f.keys = x([], f.keys)), _ = n, m = y, ((p = f).type === "add" ? Promise.resolve([]) : _.getMany({ trans: p.trans, keys: m, cache: "immutable" })).then(function(S) {
2416
+ return (f = f.type === "add" || f.type === "put" ? l(l({}, f), { keys: y }) : l({}, f)).type !== "delete" && (f.values = x([], f.values)), f.keys && (f.keys = x([], f.keys)), S = n, m = y, ((p = f).type === "add" ? Promise.resolve([]) : S.getMany({ trans: p.trans, keys: m, cache: "immutable" })).then(function(_) {
2417
2417
  var E = y.map(function(O, A) {
2418
- var I, M, C, R = S[A], K = { onerror: null, onsuccess: null };
2419
- return f.type === "delete" ? u.fire.call(K, O, R, v) : f.type === "add" || R === void 0 ? (I = h.fire.call(K, O, f.values[A], v), O == null && I != null && (f.keys[A] = O = I, i.outbound || le(f.values[A], i.keyPath, O))) : (I = jn(R, f.values[A]), (M = g.fire.call(K, I, O, R, v)) && (C = f.values[A], Object.keys(M).forEach(function(T) {
2420
- X(C, T) ? C[T] = M[T] : le(C, T, M[T]);
2421
- }))), K;
2418
+ var P, T, I, C = _[A], M = { onerror: null, onsuccess: null };
2419
+ return f.type === "delete" ? u.fire.call(M, O, C, w) : f.type === "add" || C === void 0 ? (P = h.fire.call(M, O, f.values[A], w), O == null && P != null && (f.keys[A] = O = P, i.outbound || fe(f.values[A], i.keyPath, O))) : (P = jn(C, f.values[A]), (T = g.fire.call(M, P, O, C, w)) && (I = f.values[A], Object.keys(T).forEach(function(R) {
2420
+ ee(I, R) ? I[R] = T[R] : fe(I, R, T[R]);
2421
+ }))), M;
2422
2422
  });
2423
2423
  return n.mutate(f).then(function(O) {
2424
- for (var A = O.failures, I = O.results, M = O.numFailures, O = O.lastResult, C = 0; C < y.length; ++C) {
2425
- var R = (I || y)[C], K = E[C];
2426
- R == null ? K.onerror && K.onerror(A[C]) : K.onsuccess && K.onsuccess(f.type === "put" && S[C] ? f.values[C] : R);
2424
+ for (var A = O.failures, P = O.results, T = O.numFailures, O = O.lastResult, I = 0; I < y.length; ++I) {
2425
+ var C = (P || y)[I], M = E[I];
2426
+ C == null ? M.onerror && M.onerror(A[I]) : M.onsuccess && M.onsuccess(f.type === "put" && _[I] ? f.values[I] : C);
2427
2427
  }
2428
- return { failures: A, results: I, numFailures: M, lastResult: O };
2428
+ return { failures: A, results: P, numFailures: T, lastResult: O };
2429
2429
  }).catch(function(O) {
2430
2430
  return E.forEach(function(A) {
2431
2431
  return A.onerror && A.onerror(O);
@@ -2439,7 +2439,7 @@ var Tr = { exports: {} };
2439
2439
  function Er(e, t, n) {
2440
2440
  try {
2441
2441
  if (!t || t.keys.length < e.length) return null;
2442
- for (var i = [], o = 0, a = 0; o < t.keys.length && a < e.length; ++o) H(t.keys[o], e[a]) === 0 && (i.push(n ? Me(t.values[o]) : t.values[o]), ++a);
2442
+ for (var i = [], o = 0, a = 0; o < t.keys.length && a < e.length; ++o) Y(t.keys[o], e[a]) === 0 && (i.push(n ? Me(t.values[o]) : t.values[o]), ++a);
2443
2443
  return i.length === e.length ? i : null;
2444
2444
  } catch {
2445
2445
  return null;
@@ -2474,7 +2474,7 @@ var Tr = { exports: {} };
2474
2474
  }
2475
2475
  }
2476
2476
  var wi = { stack: "dbcore", level: 0, name: "Observability", create: function(e) {
2477
- var t = e.schema.name, n = new ae(e.MIN_KEY, e.MAX_KEY);
2477
+ var t = e.schema.name, n = new se(e.MIN_KEY, e.MAX_KEY);
2478
2478
  return l(l({}, e), { transaction: function(i, o, a) {
2479
2479
  if (G.subscr && o !== "readonly") throw new $.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(G.querier));
2480
2480
  return e.transaction(i, o, a);
@@ -2482,75 +2482,75 @@ var Tr = { exports: {} };
2482
2482
  var o = e.table(i), a = o.schema, c = a.primaryKey, f = a.indexes, u = c.extractKey, h = c.outbound, g = c.autoIncrement && f.filter(function(p) {
2483
2483
  return p.compound && p.keyPath.includes(c.keyPath);
2484
2484
  }), b = l(l({}, o), { mutate: function(p) {
2485
- function m(T) {
2486
- return T = "idb://".concat(t, "/").concat(i, "/").concat(T), O[T] || (O[T] = new ae());
2485
+ function m(R) {
2486
+ return R = "idb://".concat(t, "/").concat(i, "/").concat(R), O[R] || (O[R] = new se());
2487
2487
  }
2488
- var v, y, S, E = p.trans, O = p.mutatedParts || (p.mutatedParts = {}), A = m(""), I = m(":dels"), M = p.type, K = p.type === "deleteRange" ? [p.range] : p.type === "delete" ? [p.keys] : p.values.length < 50 ? [Kn(c, p).filter(function(T) {
2489
- return T;
2490
- }), p.values] : [], C = K[0], R = K[1], K = p.trans._cache;
2491
- return P(C) ? (A.addKeys(C), (K = M === "delete" || C.length === R.length ? Er(C, K) : null) || I.addKeys(C), (K || R) && (v = m, y = K, S = R, a.indexes.forEach(function(T) {
2492
- var L = v(T.name || "");
2493
- function U(z) {
2494
- return z != null ? T.extractKey(z) : null;
2488
+ var w, y, _, E = p.trans, O = p.mutatedParts || (p.mutatedParts = {}), A = m(""), P = m(":dels"), T = p.type, M = p.type === "deleteRange" ? [p.range] : p.type === "delete" ? [p.keys] : p.values.length < 50 ? [Nn(c, p).filter(function(R) {
2489
+ return R;
2490
+ }), p.values] : [], I = M[0], C = M[1], M = p.trans._cache;
2491
+ return F(I) ? (A.addKeys(I), (M = T === "delete" || I.length === C.length ? Er(I, M) : null) || P.addKeys(I), (M || C) && (w = m, y = M, _ = C, a.indexes.forEach(function(R) {
2492
+ var L = w(R.name || "");
2493
+ function W(H) {
2494
+ return H != null ? R.extractKey(H) : null;
2495
2495
  }
2496
- function W(z) {
2497
- return T.multiEntry && P(z) ? z.forEach(function(fe) {
2498
- return L.addKey(fe);
2499
- }) : L.addKey(z);
2496
+ function z(H) {
2497
+ return R.multiEntry && F(H) ? H.forEach(function(pe) {
2498
+ return L.addKey(pe);
2499
+ }) : L.addKey(H);
2500
2500
  }
2501
- (y || S).forEach(function(z, se) {
2502
- var F = y && U(y[se]), se = S && U(S[se]);
2503
- H(F, se) !== 0 && (F != null && W(F), se != null && W(se));
2501
+ (y || _).forEach(function(H, ce) {
2502
+ var U = y && W(y[ce]), ce = _ && W(_[ce]);
2503
+ Y(U, ce) !== 0 && (U != null && z(U), ce != null && z(ce));
2504
2504
  });
2505
- }))) : C ? (R = { from: (R = C.lower) !== null && R !== void 0 ? R : e.MIN_KEY, to: (R = C.upper) !== null && R !== void 0 ? R : e.MAX_KEY }, I.add(R), A.add(R)) : (A.add(n), I.add(n), a.indexes.forEach(function(T) {
2506
- return m(T.name).add(n);
2507
- })), o.mutate(p).then(function(T) {
2508
- return !C || p.type !== "add" && p.type !== "put" || (A.addKeys(T.results), g && g.forEach(function(L) {
2509
- for (var U = p.values.map(function(F) {
2510
- return L.extractKey(F);
2511
- }), W = L.keyPath.findIndex(function(F) {
2512
- return F === c.keyPath;
2513
- }), z = 0, fe = T.results.length; z < fe; ++z) U[z][W] = T.results[z];
2514
- m(L.name).addKeys(U);
2515
- })), E.mutatedParts = zt(E.mutatedParts || {}, O), T;
2505
+ }))) : I ? (C = { from: (C = I.lower) !== null && C !== void 0 ? C : e.MIN_KEY, to: (C = I.upper) !== null && C !== void 0 ? C : e.MAX_KEY }, P.add(C), A.add(C)) : (A.add(n), P.add(n), a.indexes.forEach(function(R) {
2506
+ return m(R.name).add(n);
2507
+ })), o.mutate(p).then(function(R) {
2508
+ return !I || p.type !== "add" && p.type !== "put" || (A.addKeys(R.results), g && g.forEach(function(L) {
2509
+ for (var W = p.values.map(function(U) {
2510
+ return L.extractKey(U);
2511
+ }), z = L.keyPath.findIndex(function(U) {
2512
+ return U === c.keyPath;
2513
+ }), H = 0, pe = R.results.length; H < pe; ++H) W[H][z] = R.results[H];
2514
+ m(L.name).addKeys(W);
2515
+ })), E.mutatedParts = zt(E.mutatedParts || {}, O), R;
2516
2516
  });
2517
2517
  } }), f = function(m) {
2518
- var v = m.query, m = v.index, v = v.range;
2519
- return [m, new ae((m = v.lower) !== null && m !== void 0 ? m : e.MIN_KEY, (v = v.upper) !== null && v !== void 0 ? v : e.MAX_KEY)];
2520
- }, _ = { get: function(p) {
2521
- return [c, new ae(p.key)];
2518
+ var w = m.query, m = w.index, w = w.range;
2519
+ return [m, new se((m = w.lower) !== null && m !== void 0 ? m : e.MIN_KEY, (w = w.upper) !== null && w !== void 0 ? w : e.MAX_KEY)];
2520
+ }, S = { get: function(p) {
2521
+ return [c, new se(p.key)];
2522
2522
  }, getMany: function(p) {
2523
- return [c, new ae().addKeys(p.keys)];
2523
+ return [c, new se().addKeys(p.keys)];
2524
2524
  }, count: f, query: f, openCursor: f };
2525
- return j(_).forEach(function(p) {
2525
+ return j(S).forEach(function(p) {
2526
2526
  b[p] = function(m) {
2527
- var v = G.subscr, y = !!v, S = Or(G, o) && xr(p, m) ? m.obsSet = {} : v;
2527
+ var w = G.subscr, y = !!w, _ = Or(G, o) && xr(p, m) ? m.obsSet = {} : w;
2528
2528
  if (y) {
2529
- var E = function(R) {
2530
- return R = "idb://".concat(t, "/").concat(i, "/").concat(R), S[R] || (S[R] = new ae());
2531
- }, O = E(""), A = E(":dels"), v = _[p](m), y = v[0], v = v[1];
2532
- if ((p === "query" && y.isPrimaryKey && !m.values ? A : E(y.name || "")).add(v), !y.isPrimaryKey) {
2529
+ var E = function(C) {
2530
+ return C = "idb://".concat(t, "/").concat(i, "/").concat(C), _[C] || (_[C] = new se());
2531
+ }, O = E(""), A = E(":dels"), w = S[p](m), y = w[0], w = w[1];
2532
+ if ((p === "query" && y.isPrimaryKey && !m.values ? A : E(y.name || "")).add(w), !y.isPrimaryKey) {
2533
2533
  if (p !== "count") {
2534
- var I = p === "query" && h && m.values && o.query(l(l({}, m), { values: !1 }));
2535
- return o[p].apply(this, arguments).then(function(R) {
2534
+ var P = p === "query" && h && m.values && o.query(l(l({}, m), { values: !1 }));
2535
+ return o[p].apply(this, arguments).then(function(C) {
2536
2536
  if (p === "query") {
2537
- if (h && m.values) return I.then(function(U) {
2538
- return U = U.result, O.addKeys(U), R;
2537
+ if (h && m.values) return P.then(function(W) {
2538
+ return W = W.result, O.addKeys(W), C;
2539
2539
  });
2540
- var K = m.values ? R.result.map(u) : R.result;
2541
- (m.values ? O : A).addKeys(K);
2540
+ var M = m.values ? C.result.map(u) : C.result;
2541
+ (m.values ? O : A).addKeys(M);
2542
2542
  } else if (p === "openCursor") {
2543
- var T = R, L = m.values;
2544
- return T && Object.create(T, { key: { get: function() {
2545
- return A.addKey(T.primaryKey), T.key;
2543
+ var R = C, L = m.values;
2544
+ return R && Object.create(R, { key: { get: function() {
2545
+ return A.addKey(R.primaryKey), R.key;
2546
2546
  } }, primaryKey: { get: function() {
2547
- var U = T.primaryKey;
2548
- return A.addKey(U), U;
2547
+ var W = R.primaryKey;
2548
+ return A.addKey(W), W;
2549
2549
  } }, value: { get: function() {
2550
- return L && O.addKey(T.primaryKey), T.value;
2550
+ return L && O.addKey(R.primaryKey), R.value;
2551
2551
  } } });
2552
2552
  }
2553
- return R;
2553
+ return C;
2554
2554
  });
2555
2555
  }
2556
2556
  A.add(n);
@@ -2565,74 +2565,74 @@ var Tr = { exports: {} };
2565
2565
  if (n.numFailures === 0) return t;
2566
2566
  if (t.type === "deleteRange") return null;
2567
2567
  var i = t.keys ? t.keys.length : "values" in t && t.values ? t.values.length : 1;
2568
- return n.numFailures === i ? null : (t = l({}, t), P(t.keys) && (t.keys = t.keys.filter(function(o, a) {
2568
+ return n.numFailures === i ? null : (t = l({}, t), F(t.keys) && (t.keys = t.keys.filter(function(o, a) {
2569
2569
  return !(a in n.failures);
2570
- })), "values" in t && P(t.values) && (t.values = t.values.filter(function(o, a) {
2570
+ })), "values" in t && F(t.values) && (t.values = t.values.filter(function(o, a) {
2571
2571
  return !(a in n.failures);
2572
2572
  })), t);
2573
2573
  }
2574
- function Nn(e, t) {
2575
- return n = e, ((i = t).lower === void 0 || (i.lowerOpen ? 0 < H(n, i.lower) : 0 <= H(n, i.lower))) && (e = e, (t = t).upper === void 0 || (t.upperOpen ? H(e, t.upper) < 0 : H(e, t.upper) <= 0));
2574
+ function Kn(e, t) {
2575
+ return n = e, ((i = t).lower === void 0 || (i.lowerOpen ? 0 < Y(n, i.lower) : 0 <= Y(n, i.lower))) && (e = e, (t = t).upper === void 0 || (t.upperOpen ? Y(e, t.upper) < 0 : Y(e, t.upper) <= 0));
2576
2576
  var n, i;
2577
2577
  }
2578
- function kr(e, t, _, i, o, a) {
2579
- if (!_ || _.length === 0) return e;
2580
- var c = t.query.index, u = c.multiEntry, h = t.query.range, g = i.schema.primaryKey.extractKey, b = c.extractKey, f = (c.lowLevelIndex || c).extractKey, _ = _.reduce(function(p, m) {
2581
- var v = p, y = [];
2582
- if (m.type === "add" || m.type === "put") for (var S = new ae(), E = m.values.length - 1; 0 <= E; --E) {
2583
- var O, A = m.values[E], I = g(A);
2584
- S.hasKey(I) || (O = b(A), (u && P(O) ? O.some(function(T) {
2585
- return Nn(T, h);
2586
- }) : Nn(O, h)) && (S.addKey(I), y.push(A)));
2578
+ function kr(e, t, S, i, o, a) {
2579
+ if (!S || S.length === 0) return e;
2580
+ var c = t.query.index, u = c.multiEntry, h = t.query.range, g = i.schema.primaryKey.extractKey, b = c.extractKey, f = (c.lowLevelIndex || c).extractKey, S = S.reduce(function(p, m) {
2581
+ var w = p, y = [];
2582
+ if (m.type === "add" || m.type === "put") for (var _ = new se(), E = m.values.length - 1; 0 <= E; --E) {
2583
+ var O, A = m.values[E], P = g(A);
2584
+ _.hasKey(P) || (O = b(A), (u && F(O) ? O.some(function(R) {
2585
+ return Kn(R, h);
2586
+ }) : Kn(O, h)) && (_.addKey(P), y.push(A)));
2587
2587
  }
2588
2588
  switch (m.type) {
2589
2589
  case "add":
2590
- var M = new ae().addKeys(t.values ? p.map(function(L) {
2590
+ var T = new se().addKeys(t.values ? p.map(function(L) {
2591
2591
  return g(L);
2592
- }) : p), v = p.concat(t.values ? y.filter(function(L) {
2593
- return L = g(L), !M.hasKey(L) && (M.addKey(L), !0);
2592
+ }) : p), w = p.concat(t.values ? y.filter(function(L) {
2593
+ return L = g(L), !T.hasKey(L) && (T.addKey(L), !0);
2594
2594
  }) : y.map(function(L) {
2595
2595
  return g(L);
2596
2596
  }).filter(function(L) {
2597
- return !M.hasKey(L) && (M.addKey(L), !0);
2597
+ return !T.hasKey(L) && (T.addKey(L), !0);
2598
2598
  }));
2599
2599
  break;
2600
2600
  case "put":
2601
- var C = new ae().addKeys(m.values.map(function(L) {
2601
+ var I = new se().addKeys(m.values.map(function(L) {
2602
2602
  return g(L);
2603
2603
  }));
2604
- v = p.filter(function(L) {
2605
- return !C.hasKey(t.values ? g(L) : L);
2604
+ w = p.filter(function(L) {
2605
+ return !I.hasKey(t.values ? g(L) : L);
2606
2606
  }).concat(t.values ? y : y.map(function(L) {
2607
2607
  return g(L);
2608
2608
  }));
2609
2609
  break;
2610
2610
  case "delete":
2611
- var R = new ae().addKeys(m.keys);
2612
- v = p.filter(function(L) {
2613
- return !R.hasKey(t.values ? g(L) : L);
2611
+ var C = new se().addKeys(m.keys);
2612
+ w = p.filter(function(L) {
2613
+ return !C.hasKey(t.values ? g(L) : L);
2614
2614
  });
2615
2615
  break;
2616
2616
  case "deleteRange":
2617
- var K = m.range;
2618
- v = p.filter(function(L) {
2619
- return !Nn(g(L), K);
2617
+ var M = m.range;
2618
+ w = p.filter(function(L) {
2619
+ return !Kn(g(L), M);
2620
2620
  });
2621
2621
  }
2622
- return v;
2622
+ return w;
2623
2623
  }, e);
2624
- return _ === e ? e : (_.sort(function(p, m) {
2625
- return H(f(p), f(m)) || H(g(p), g(m));
2626
- }), t.limit && t.limit < 1 / 0 && (_.length > t.limit ? _.length = t.limit : e.length === t.limit && _.length < t.limit && (o.dirty = !0)), a ? Object.freeze(_) : _);
2624
+ return S === e ? e : (S.sort(function(p, m) {
2625
+ return Y(f(p), f(m)) || Y(g(p), g(m));
2626
+ }), t.limit && t.limit < 1 / 0 && (S.length > t.limit ? S.length = t.limit : e.length === t.limit && S.length < t.limit && (o.dirty = !0)), a ? Object.freeze(S) : S);
2627
2627
  }
2628
2628
  function Dr(e, t) {
2629
- return H(e.lower, t.lower) === 0 && H(e.upper, t.upper) === 0 && !!e.lowerOpen == !!t.lowerOpen && !!e.upperOpen == !!t.upperOpen;
2629
+ return Y(e.lower, t.lower) === 0 && Y(e.upper, t.upper) === 0 && !!e.lowerOpen == !!t.lowerOpen && !!e.upperOpen == !!t.upperOpen;
2630
2630
  }
2631
- function _i(e, t) {
2631
+ function Si(e, t) {
2632
2632
  return function(n, i, o, a) {
2633
2633
  if (n === void 0) return i !== void 0 ? -1 : 0;
2634
2634
  if (i === void 0) return 1;
2635
- if ((i = H(n, i)) === 0) {
2635
+ if ((i = Y(n, i)) === 0) {
2636
2636
  if (o && a) return 0;
2637
2637
  if (o) return 1;
2638
2638
  if (a) return -1;
@@ -2641,7 +2641,7 @@ var Tr = { exports: {} };
2641
2641
  }(e.lower, t.lower, e.lowerOpen, t.lowerOpen) <= 0 && 0 <= function(n, i, o, a) {
2642
2642
  if (n === void 0) return i !== void 0 ? 1 : 0;
2643
2643
  if (i === void 0) return -1;
2644
- if ((i = H(n, i)) === 0) {
2644
+ if ((i = Y(n, i)) === 0) {
2645
2645
  if (o && a) return 0;
2646
2646
  if (o) return -1;
2647
2647
  if (a) return 1;
@@ -2649,7 +2649,7 @@ var Tr = { exports: {} };
2649
2649
  return i;
2650
2650
  }(e.upper, t.upper, e.upperOpen, t.upperOpen);
2651
2651
  }
2652
- function Si(e, t, n, i) {
2652
+ function _i(e, t, n, i) {
2653
2653
  e.subscribers.add(n), i.addEventListener("abort", function() {
2654
2654
  var o, a;
2655
2655
  e.subscribers.delete(n), e.subscribers.size === 0 && (o = e, a = t, setTimeout(function() {
@@ -2665,21 +2665,21 @@ var Tr = { exports: {} };
2665
2665
  return function() {
2666
2666
  if (a.abort(), i === "readwrite") {
2667
2667
  for (var g = /* @__PURE__ */ new Set(), b = 0, f = n; b < f.length; b++) {
2668
- var _ = f[b], p = Ue["idb://".concat(t, "/").concat(_)];
2668
+ var S = f[b], p = Ue["idb://".concat(t, "/").concat(S)];
2669
2669
  if (p) {
2670
- var m = e.table(_), v = p.optimisticOps.filter(function(L) {
2670
+ var m = e.table(S), w = p.optimisticOps.filter(function(L) {
2671
2671
  return L.trans === u;
2672
2672
  });
2673
- if (u._explicit && h && u.mutatedParts) for (var y = 0, S = Object.values(p.queries.query); y < S.length; y++) for (var E = 0, O = (M = S[y]).slice(); E < O.length; E++) In((C = O[E]).obsSet, u.mutatedParts) && (je(M, C), C.subscribers.forEach(function(L) {
2673
+ if (u._explicit && h && u.mutatedParts) for (var y = 0, _ = Object.values(p.queries.query); y < _.length; y++) for (var E = 0, O = (T = _[y]).slice(); E < O.length; E++) In((I = O[E]).obsSet, u.mutatedParts) && (je(T, I), I.subscribers.forEach(function(L) {
2674
2674
  return g.add(L);
2675
2675
  }));
2676
- else if (0 < v.length) {
2676
+ else if (0 < w.length) {
2677
2677
  p.optimisticOps = p.optimisticOps.filter(function(L) {
2678
2678
  return L.trans !== u;
2679
2679
  });
2680
- for (var A = 0, I = Object.values(p.queries.query); A < I.length; A++) for (var M, C, R, K = 0, T = (M = I[A]).slice(); K < T.length; K++) (C = T[K]).res != null && u.mutatedParts && (h && !C.dirty ? (R = Object.isFrozen(C.res), R = kr(C.res, C.req, v, m, C, R), C.dirty ? (je(M, C), C.subscribers.forEach(function(L) {
2680
+ for (var A = 0, P = Object.values(p.queries.query); A < P.length; A++) for (var T, I, C, M = 0, R = (T = P[A]).slice(); M < R.length; M++) (I = R[M]).res != null && u.mutatedParts && (h && !I.dirty ? (C = Object.isFrozen(I.res), C = kr(I.res, I.req, w, m, I, C), I.dirty ? (je(T, I), I.subscribers.forEach(function(L) {
2681
2681
  return g.add(L);
2682
- })) : R !== C.res && (C.res = R, C.promise = B.resolve({ result: R }))) : (C.dirty && je(M, C), C.subscribers.forEach(function(L) {
2682
+ })) : C !== I.res && (I.res = C, I.promise = B.resolve({ result: C }))) : (I.dirty && je(T, I), I.subscribers.forEach(function(L) {
2683
2683
  return g.add(L);
2684
2684
  })));
2685
2685
  }
@@ -2697,7 +2697,7 @@ var Tr = { exports: {} };
2697
2697
  var c = G.trans;
2698
2698
  if (o.outbound || c.db._options.cache === "disabled" || c.explicit || c.idbtrans.mode !== "readwrite") return i.mutate(a);
2699
2699
  var u = Ue["idb://".concat(t, "/").concat(n)];
2700
- return u ? (c = i.mutate(a), a.type !== "add" && a.type !== "put" || !(50 <= a.values.length || Kn(o, a).some(function(h) {
2700
+ return u ? (c = i.mutate(a), a.type !== "add" && a.type !== "put" || !(50 <= a.values.length || Nn(o, a).some(function(h) {
2701
2701
  return h == null;
2702
2702
  })) ? (u.optimisticOps.push(a), a.mutatedParts && Ht(a.mutatedParts), c.then(function(h) {
2703
2703
  0 < h.numFailures && (je(u.optimisticOps, a), (h = Ar(0, a, h)) && u.optimisticOps.push(h), a.mutatedParts && Ht(a.mutatedParts));
@@ -2705,8 +2705,8 @@ var Tr = { exports: {} };
2705
2705
  je(u.optimisticOps, a), a.mutatedParts && Ht(a.mutatedParts);
2706
2706
  })) : c.then(function(h) {
2707
2707
  var g = Ar(0, l(l({}, a), { values: a.values.map(function(b, f) {
2708
- var _;
2709
- return h.failures[f] ? b : (b = (_ = o.keyPath) !== null && _ !== void 0 && _.includes(".") ? Me(b) : l({}, b), le(b, o.keyPath, h.results[f]), b);
2708
+ var S;
2709
+ return h.failures[f] ? b : (b = (S = o.keyPath) !== null && S !== void 0 && S.includes(".") ? Me(b) : l({}, b), fe(b, o.keyPath, h.results[f]), b);
2710
2710
  }) }), h);
2711
2711
  u.optimisticOps.push(g), queueMicrotask(function() {
2712
2712
  return a.mutatedParts && Ht(a.mutatedParts);
@@ -2714,37 +2714,37 @@ var Tr = { exports: {} };
2714
2714
  }), c) : i.mutate(a);
2715
2715
  }, query: function(a) {
2716
2716
  if (!Or(G, i) || !xr("query", a)) return i.query(a);
2717
- var c = ((g = G.trans) === null || g === void 0 ? void 0 : g.db._options.cache) === "immutable", f = G, u = f.requery, h = f.signal, g = function(m, v, y, S) {
2718
- var E = Ue["idb://".concat(m, "/").concat(v)];
2717
+ var c = ((g = G.trans) === null || g === void 0 ? void 0 : g.db._options.cache) === "immutable", f = G, u = f.requery, h = f.signal, g = function(m, w, y, _) {
2718
+ var E = Ue["idb://".concat(m, "/").concat(w)];
2719
2719
  if (!E) return [];
2720
- if (!(v = E.queries[y])) return [null, !1, E, null];
2721
- var O = v[(S.query ? S.query.index.name : null) || ""];
2720
+ if (!(w = E.queries[y])) return [null, !1, E, null];
2721
+ var O = w[(_.query ? _.query.index.name : null) || ""];
2722
2722
  if (!O) return [null, !1, E, null];
2723
2723
  switch (y) {
2724
2724
  case "query":
2725
- var A = O.find(function(I) {
2726
- return I.req.limit === S.limit && I.req.values === S.values && Dr(I.req.query.range, S.query.range);
2725
+ var A = O.find(function(P) {
2726
+ return P.req.limit === _.limit && P.req.values === _.values && Dr(P.req.query.range, _.query.range);
2727
2727
  });
2728
- return A ? [A, !0, E, O] : [O.find(function(I) {
2729
- return ("limit" in I.req ? I.req.limit : 1 / 0) >= S.limit && (!S.values || I.req.values) && _i(I.req.query.range, S.query.range);
2728
+ return A ? [A, !0, E, O] : [O.find(function(P) {
2729
+ return ("limit" in P.req ? P.req.limit : 1 / 0) >= _.limit && (!_.values || P.req.values) && Si(P.req.query.range, _.query.range);
2730
2730
  }), !1, E, O];
2731
2731
  case "count":
2732
- return A = O.find(function(I) {
2733
- return Dr(I.req.query.range, S.query.range);
2732
+ return A = O.find(function(P) {
2733
+ return Dr(P.req.query.range, _.query.range);
2734
2734
  }), [A, !!A, E, O];
2735
2735
  }
2736
- }(t, n, "query", a), b = g[0], f = g[1], _ = g[2], p = g[3];
2736
+ }(t, n, "query", a), b = g[0], f = g[1], S = g[2], p = g[3];
2737
2737
  return b && f ? b.obsSet = a.obsSet : (f = i.query(a).then(function(m) {
2738
- var v = m.result;
2739
- if (b && (b.res = v), c) {
2740
- for (var y = 0, S = v.length; y < S; ++y) Object.freeze(v[y]);
2741
- Object.freeze(v);
2742
- } else m.result = Me(v);
2738
+ var w = m.result;
2739
+ if (b && (b.res = w), c) {
2740
+ for (var y = 0, _ = w.length; y < _; ++y) Object.freeze(w[y]);
2741
+ Object.freeze(w);
2742
+ } else m.result = Me(w);
2743
2743
  return m;
2744
2744
  }).catch(function(m) {
2745
2745
  return p && b && je(p, b), Promise.reject(m);
2746
- }), b = { obsSet: a.obsSet, promise: f, subscribers: /* @__PURE__ */ new Set(), type: "query", req: a, dirty: !1 }, p ? p.push(b) : (p = [b], (_ = _ || (Ue["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[a.query.index.name || ""] = p)), Si(b, p, u, h), b.promise.then(function(m) {
2747
- return { result: kr(m.result, a, _ == null ? void 0 : _.optimisticOps, i, b, c) };
2746
+ }), b = { obsSet: a.obsSet, promise: f, subscribers: /* @__PURE__ */ new Set(), type: "query", req: a, dirty: !1 }, p ? p.push(b) : (p = [b], (S = S || (Ue["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[a.query.index.name || ""] = p)), _i(b, p, u, h), b.promise.then(function(m) {
2747
+ return { result: kr(m.result, a, S == null ? void 0 : S.optimisticOps, i, b, c) };
2748
2748
  });
2749
2749
  } });
2750
2750
  } });
@@ -2812,10 +2812,10 @@ var Tr = { exports: {} };
2812
2812
  function c() {
2813
2813
  t.close(e);
2814
2814
  var u = t._deps.indexedDB.deleteDatabase(t.name);
2815
- u.onsuccess = ee(function() {
2815
+ u.onsuccess = q(function() {
2816
2816
  var h, g, b;
2817
2817
  h = t._deps, g = t.name, b = h.indexedDB, h = h.IDBKeyRange, kn(b) || g === Tt || An(b, h).delete(g).catch(J), o();
2818
- }), u.onerror = me(a), u.onblocked = t._fireOnBlocked;
2818
+ }), u.onerror = be(a), u.onblocked = t._fireOnBlocked;
2819
2819
  }
2820
2820
  if (n) throw new $.InvalidArgument("Invalid closeOptions argument to db.delete()");
2821
2821
  i.isBeingOpened ? i.dbReadyPromise.then(c) : c();
@@ -2875,25 +2875,25 @@ var Tr = { exports: {} };
2875
2875
  f(g);
2876
2876
  }) : te(g);
2877
2877
  }
2878
- var h = (function g(b, f, _, p, m) {
2878
+ var h = (function g(b, f, S, p, m) {
2879
2879
  return B.resolve().then(function() {
2880
- var v = G.transless || G, y = b._createTransaction(f, _, b._dbSchema, p);
2881
- if (y.explicit = !0, v = { trans: y, transless: v }, p) y.idbtrans = p.idbtrans;
2880
+ var w = G.transless || G, y = b._createTransaction(f, S, b._dbSchema, p);
2881
+ if (y.explicit = !0, w = { trans: y, transless: w }, p) y.idbtrans = p.idbtrans;
2882
2882
  else try {
2883
2883
  y.create(), y.idbtrans._explicit = !0, b._state.PR1398_maxLoop = 3;
2884
2884
  } catch (O) {
2885
2885
  return O.name === rn.InvalidState && b.isOpen() && 0 < --b._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), b.close({ disableAutoOpen: !1 }), b.open().then(function() {
2886
- return g(b, f, _, null, m);
2886
+ return g(b, f, S, null, m);
2887
2887
  })) : te(O);
2888
2888
  }
2889
- var S, E = nn(m);
2890
- return E && qe(), v = B.follow(function() {
2889
+ var _, E = nn(m);
2890
+ return E && qe(), w = B.follow(function() {
2891
2891
  var O;
2892
- (S = m.call(y, y)) && (E ? (O = Pe.bind(null, null), S.then(O, O)) : typeof S.next == "function" && typeof S.throw == "function" && (S = Mn(S)));
2893
- }, v), (S && typeof S.then == "function" ? B.resolve(S).then(function(O) {
2892
+ (_ = m.call(y, y)) && (E ? (O = Pe.bind(null, null), _.then(O, O)) : typeof _.next == "function" && typeof _.throw == "function" && (_ = Mn(_)));
2893
+ }, w), (_ && typeof _.then == "function" ? B.resolve(_).then(function(O) {
2894
2894
  return y.active ? O : te(new $.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"));
2895
- }) : v.then(function() {
2896
- return S;
2895
+ }) : w.then(function() {
2896
+ return _;
2897
2897
  })).then(function(O) {
2898
2898
  return p && y._resolve(), y._completion.then(function() {
2899
2899
  return O;
@@ -2907,7 +2907,7 @@ var Tr = { exports: {} };
2907
2907
  return i._whenReady(h);
2908
2908
  }) : this._whenReady(h);
2909
2909
  }, ne.prototype.table = function(e) {
2910
- if (!X(this._allTables, e)) throw new $.InvalidTable("Table ".concat(e, " does not exist"));
2910
+ if (!ee(this._allTables, e)) throw new $.InvalidTable("Table ".concat(e, " does not exist"));
2911
2911
  return this._allTables[e];
2912
2912
  }, ne);
2913
2913
  function ne(e, t) {
@@ -2918,18 +2918,18 @@ var Tr = { exports: {} };
2918
2918
  var o, a, c, u, h, g = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: J, dbReadyPromise: null, cancelOpen: J, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: t.autoOpen };
2919
2919
  g.dbReadyPromise = new B(function(f) {
2920
2920
  g.dbReadyResolve = f;
2921
- }), g.openCanceller = new B(function(f, _) {
2922
- g.cancelOpen = _;
2921
+ }), g.openCanceller = new B(function(f, S) {
2922
+ g.cancelOpen = S;
2923
2923
  }), this._state = g, this.name = e, this.on = dt(this, "populate", "blocked", "versionchange", "close", { ready: [on, J] }), this.on.ready.subscribe = zn(this.on.ready.subscribe, function(f) {
2924
- return function(_, p) {
2924
+ return function(S, p) {
2925
2925
  ne.vip(function() {
2926
- var m, v = n._state;
2927
- v.openComplete ? (v.dbOpenError || B.resolve().then(_), p && f(_)) : v.onReadyBeingFired ? (v.onReadyBeingFired.push(_), p && f(_)) : (f(_), m = n, p || f(function y() {
2928
- m.on.ready.unsubscribe(_), m.on.ready.unsubscribe(y);
2926
+ var m, w = n._state;
2927
+ w.openComplete ? (w.dbOpenError || B.resolve().then(S), p && f(S)) : w.onReadyBeingFired ? (w.onReadyBeingFired.push(S), p && f(S)) : (f(S), m = n, p || f(function y() {
2928
+ m.on.ready.unsubscribe(S), m.on.ready.unsubscribe(y);
2929
2929
  }));
2930
2930
  });
2931
2931
  };
2932
- }), this.Collection = (o = this, ft(oi.prototype, function(S, y) {
2932
+ }), this.Collection = (o = this, ft(oi.prototype, function(_, y) {
2933
2933
  this.db = o;
2934
2934
  var p = or, m = null;
2935
2935
  if (y) try {
@@ -2937,52 +2937,52 @@ var Tr = { exports: {} };
2937
2937
  } catch (E) {
2938
2938
  m = E;
2939
2939
  }
2940
- var v = S._ctx, y = v.table, S = y.hook.reading.fire;
2941
- this._ctx = { table: y, index: v.index, isPrimKey: !v.index || y.schema.primKey.keyPath && v.index === y.schema.primKey.name, range: p, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: m, or: v.or, valueMapper: S !== at ? S : null };
2942
- })), this.Table = (a = this, ft(ur.prototype, function(f, _, p) {
2943
- this.db = a, this._tx = p, this.name = f, this.schema = _, this.hook = a._allTables[f] ? a._allTables[f].hook : dt(null, { creating: [Jr, J], reading: [Xr, at], updating: [Zr, J], deleting: [Vr, J] });
2944
- })), this.Transaction = (c = this, ft(ci.prototype, function(f, _, p, m, v) {
2940
+ var w = _._ctx, y = w.table, _ = y.hook.reading.fire;
2941
+ this._ctx = { table: y, index: w.index, isPrimKey: !w.index || y.schema.primKey.keyPath && w.index === y.schema.primKey.name, range: p, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: m, or: w.or, valueMapper: _ !== at ? _ : null };
2942
+ })), this.Table = (a = this, ft(ur.prototype, function(f, S, p) {
2943
+ this.db = a, this._tx = p, this.name = f, this.schema = S, this.hook = a._allTables[f] ? a._allTables[f].hook : dt(null, { creating: [Jr, J], reading: [Xr, at], updating: [Zr, J], deleting: [Vr, J] });
2944
+ })), this.Transaction = (c = this, ft(ci.prototype, function(f, S, p, m, w) {
2945
2945
  var y = this;
2946
- this.db = c, this.mode = f, this.storeNames = _, this.schema = p, this.chromeTransactionDurability = m, this.idbtrans = null, this.on = dt(this, "complete", "error", "abort"), this.parent = v || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new B(function(S, E) {
2947
- y._resolve = S, y._reject = E;
2946
+ this.db = c, this.mode = f, this.storeNames = S, this.schema = p, this.chromeTransactionDurability = m, this.idbtrans = null, this.on = dt(this, "complete", "error", "abort"), this.parent = w || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new B(function(_, E) {
2947
+ y._resolve = _, y._reject = E;
2948
2948
  }), this._completion.then(function() {
2949
2949
  y.active = !1, y.on.complete.fire();
2950
- }, function(S) {
2950
+ }, function(_) {
2951
2951
  var E = y.active;
2952
- return y.active = !1, y.on.error.fire(S), y.parent ? y.parent._reject(S) : E && y.idbtrans && y.idbtrans.abort(), te(S);
2952
+ return y.active = !1, y.on.error.fire(_), y.parent ? y.parent._reject(_) : E && y.idbtrans && y.idbtrans.abort(), te(_);
2953
2953
  });
2954
2954
  })), this.Version = (u = this, ft(gi.prototype, function(f) {
2955
2955
  this.db = u, this._cfg = { version: f, storesSource: null, dbschema: {}, tables: {}, contentUpgrade: null };
2956
- })), this.WhereClause = (h = this, ft(pr.prototype, function(f, _, p) {
2957
- if (this.db = h, this._ctx = { table: f, index: _ === ":id" ? null : _, or: p }, this._cmp = this._ascending = H, this._descending = function(m, v) {
2958
- return H(v, m);
2959
- }, this._max = function(m, v) {
2960
- return 0 < H(m, v) ? m : v;
2961
- }, this._min = function(m, v) {
2962
- return H(m, v) < 0 ? m : v;
2956
+ })), this.WhereClause = (h = this, ft(pr.prototype, function(f, S, p) {
2957
+ if (this.db = h, this._ctx = { table: f, index: S === ":id" ? null : S, or: p }, this._cmp = this._ascending = Y, this._descending = function(m, w) {
2958
+ return Y(w, m);
2959
+ }, this._max = function(m, w) {
2960
+ return 0 < Y(m, w) ? m : w;
2961
+ }, this._min = function(m, w) {
2962
+ return Y(m, w) < 0 ? m : w;
2963
2963
  }, this._IDBKeyRange = h._deps.IDBKeyRange, !this._IDBKeyRange) throw new $.MissingAPI();
2964
2964
  })), this.on("versionchange", function(f) {
2965
2965
  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 });
2966
2966
  }), this.on("blocked", function(f) {
2967
2967
  !f.newVersion || f.newVersion < f.oldVersion ? console.warn("Dexie.delete('".concat(n.name, "') was blocked")) : console.warn("Upgrade '".concat(n.name, "' blocked by other connection holding version ").concat(f.oldVersion / 10));
2968
- }), this._maxKey = yt(t.IDBKeyRange), this._createTransaction = function(f, _, p, m) {
2969
- return new n.Transaction(f, _, p, n._options.chromeTransactionDurability, m);
2968
+ }), this._maxKey = yt(t.IDBKeyRange), this._createTransaction = function(f, S, p, m) {
2969
+ return new n.Transaction(f, S, p, n._options.chromeTransactionDurability, m);
2970
2970
  }, this._fireOnBlocked = function(f) {
2971
- n.on("blocked").fire(f), et.filter(function(_) {
2972
- return _.name === n.name && _ !== n && !_._state.vcFired;
2973
- }).map(function(_) {
2974
- return _.on("versionchange").fire(f);
2971
+ n.on("blocked").fire(f), et.filter(function(S) {
2972
+ return S.name === n.name && S !== n && !S._state.vcFired;
2973
+ }).map(function(S) {
2974
+ return S.on("versionchange").fire(f);
2975
2975
  });
2976
2976
  }, this.use(vi), this.use(Ei), this.use(wi), this.use(mi), this.use(bi);
2977
- var b = new Proxy(this, { get: function(f, _, p) {
2978
- if (_ === "_vip") return !0;
2979
- if (_ === "table") return function(v) {
2980
- return Qt(n.table(v), b);
2977
+ var b = new Proxy(this, { get: function(f, S, p) {
2978
+ if (S === "_vip") return !0;
2979
+ if (S === "table") return function(w) {
2980
+ return Qt(n.table(w), b);
2981
2981
  };
2982
- var m = Reflect.get(f, _, p);
2983
- return m instanceof ur ? Qt(m, b) : _ === "tables" ? m.map(function(v) {
2984
- return Qt(v, b);
2985
- }) : _ === "_createTransaction" ? function() {
2982
+ var m = Reflect.get(f, S, p);
2983
+ return m instanceof ur ? Qt(m, b) : S === "tables" ? m.map(function(w) {
2984
+ return Qt(w, b);
2985
+ }) : S === "_createTransaction" ? function() {
2986
2986
  return Qt(m.apply(this, arguments), b);
2987
2987
  } : m;
2988
2988
  } });
@@ -2990,9 +2990,9 @@ var Tr = { exports: {} };
2990
2990
  return f(n);
2991
2991
  });
2992
2992
  }
2993
- var Xt, he = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", Oi = (Bn.prototype.subscribe = function(e, t, n) {
2993
+ var Xt, ge = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", Oi = (Bn.prototype.subscribe = function(e, t, n) {
2994
2994
  return this._subscribe(e && typeof e != "function" ? e : { next: e, error: t, complete: n });
2995
- }, Bn.prototype[he] = function() {
2995
+ }, Bn.prototype[ge] = function() {
2996
2996
  return this;
2997
2997
  }, Bn);
2998
2998
  function Bn(e) {
@@ -3011,13 +3011,13 @@ var Tr = { exports: {} };
3011
3011
  u || (u = !0, c && c.abort(), f && Re.storagemutated.unsubscribe(p));
3012
3012
  } };
3013
3013
  o.start && o.start(b);
3014
- var f = !1, _ = function() {
3014
+ var f = !1, S = function() {
3015
3015
  return hn(m);
3016
- }, p = function(v) {
3017
- zt(h, v), In(g, h) && _();
3016
+ }, p = function(w) {
3017
+ zt(h, w), In(g, h) && S();
3018
3018
  }, m = function() {
3019
- var v, y, S;
3020
- !u && Xt.indexedDB && (h = {}, v = {}, c && c.abort(), c = new AbortController(), S = function(E) {
3019
+ var w, y, _;
3020
+ !u && Xt.indexedDB && (h = {}, w = {}, c && c.abort(), c = new AbortController(), _ = function(E) {
3021
3021
  var O = Ve();
3022
3022
  try {
3023
3023
  a && qe();
@@ -3026,11 +3026,11 @@ var Tr = { exports: {} };
3026
3026
  } finally {
3027
3027
  O && Ze();
3028
3028
  }
3029
- }(y = { subscr: v, signal: c.signal, requery: _, querier: e, trans: null }), Promise.resolve(S).then(function(E) {
3029
+ }(y = { subscr: w, signal: c.signal, requery: S, querier: e, trans: null }), Promise.resolve(_).then(function(E) {
3030
3030
  n = !0, t = E, u || y.signal.aborted || (h = {}, function(O) {
3031
- for (var A in O) if (X(O, A)) return;
3031
+ for (var A in O) if (ee(O, A)) return;
3032
3032
  return 1;
3033
- }(g = v) || f || (Re(gt, p), f = !0), hn(function() {
3033
+ }(g = w) || f || (Re(gt, p), f = !0), hn(function() {
3034
3034
  return !u && o.next && o.next(E);
3035
3035
  }));
3036
3036
  }, function(E) {
@@ -3039,7 +3039,7 @@ var Tr = { exports: {} };
3039
3039
  });
3040
3040
  }));
3041
3041
  };
3042
- return setTimeout(_, 0), b;
3042
+ return setTimeout(S, 0), b;
3043
3043
  });
3044
3044
  return i.hasValue = function() {
3045
3045
  return n;
@@ -3056,7 +3056,7 @@ var Tr = { exports: {} };
3056
3056
  Te = t;
3057
3057
  }
3058
3058
  }
3059
- pe(We, l(l({}, Ot), { delete: function(e) {
3059
+ le(We, l(l({}, Ot), { delete: function(e) {
3060
3060
  return new We(e, { addons: [] }).delete();
3061
3061
  }, exists: function(e) {
3062
3062
  return new We(e, { addons: [] }).open().then(function(t) {
@@ -3079,7 +3079,7 @@ var Tr = { exports: {} };
3079
3079
  var t, n;
3080
3080
  }, defineClass: function() {
3081
3081
  return function(e) {
3082
- Y(this, e);
3082
+ N(this, e);
3083
3083
  };
3084
3084
  }, ignoreTransaction: function(e) {
3085
3085
  return G.trans ? Ge(G.transless, e) : e();
@@ -3104,14 +3104,14 @@ var Tr = { exports: {} };
3104
3104
  } }, waitFor: function(e, t) {
3105
3105
  return t = B.resolve(typeof e == "function" ? We.ignoreTransaction(e) : e).timeout(t || 6e4), G.trans ? G.trans.waitFor(t) : t;
3106
3106
  }, Promise: B, debug: { get: function() {
3107
- return ye;
3107
+ return me;
3108
3108
  }, set: function(e) {
3109
3109
  Zn(e);
3110
- } }, derive: Ye, extend: Y, props: pe, override: zn, Events: dt, on: Re, liveQuery: Pr, extendObservabilitySet: zt, getByKeyPath: we, setByKeyPath: le, delByKeyPath: function(e, t) {
3111
- typeof t == "string" ? le(e, t, void 0) : "length" in t && [].map.call(t, function(n) {
3112
- le(e, n, void 0);
3110
+ } }, derive: Ye, extend: N, props: le, override: zn, Events: dt, on: Re, liveQuery: Pr, extendObservabilitySet: zt, getByKeyPath: we, setByKeyPath: fe, delByKeyPath: function(e, t) {
3111
+ typeof t == "string" ? fe(e, t, void 0) : "length" in t && [].map.call(t, function(n) {
3112
+ fe(e, n, void 0);
3113
3113
  });
3114
- }, shallowClone: Yn, deepClone: Me, getObjectDiff: jn, cmp: H, asap: Hn, minKey: -1 / 0, addons: [], connections: et, errnames: rn, dependencies: Xt, cache: Ue, semVer: "4.0.10", version: "4.0.10".split(".").map(function(e) {
3114
+ }, shallowClone: Yn, deepClone: Me, getObjectDiff: jn, cmp: Y, asap: Hn, minKey: -1 / 0, addons: [], connections: et, errnames: rn, dependencies: Xt, cache: Ue, semVer: "4.0.10", version: "4.0.10".split(".").map(function(e) {
3115
3115
  return parseInt(e);
3116
3116
  }).reduce(function(e, t, n) {
3117
3117
  return e + t / Math.pow(10, 2 * n);
@@ -3130,22 +3130,22 @@ var Tr = { exports: {} };
3130
3130
  Te || rt.postMessage(e);
3131
3131
  })), typeof addEventListener < "u" && (addEventListener("pagehide", function(e) {
3132
3132
  if (!Oe.disableBfCache && e.persisted) {
3133
- ye && console.debug("Dexie: handling persisted pagehide"), rt != null && rt.close();
3133
+ me && console.debug("Dexie: handling persisted pagehide"), rt != null && rt.close();
3134
3134
  for (var t = 0, n = et; t < n.length; t++) n[t].close({ disableAutoOpen: !1 });
3135
3135
  }
3136
3136
  }), addEventListener("pageshow", function(e) {
3137
- !Oe.disableBfCache && e.persisted && (ye && console.debug("Dexie: handling persisted pageshow"), Ir(), Ln({ all: new ae(-1 / 0, [[]]) }));
3137
+ !Oe.disableBfCache && e.persisted && (me && console.debug("Dexie: handling persisted pageshow"), Ir(), Ln({ all: new se(-1 / 0, [[]]) }));
3138
3138
  })), B.rejectionMapper = function(e, t) {
3139
3139
  return !e || e instanceof Xe || e instanceof TypeError || e instanceof SyntaxError || !e.name || !Vn[e.name] ? e : (t = new Vn[e.name](t || e.message, e), "stack" in e && Ae(t, "stack", { get: function() {
3140
3140
  return this.inner.stack;
3141
3141
  } }), t);
3142
- }, Zn(ye), l(Oe, Object.freeze({ __proto__: null, Dexie: Oe, liveQuery: Pr, Entity: ar, cmp: H, PropModSymbol: Ee, PropModification: ht, replacePrefix: function(e, t) {
3142
+ }, Zn(me), l(Oe, Object.freeze({ __proto__: null, Dexie: Oe, liveQuery: Pr, Entity: ar, cmp: Y, PropModSymbol: Ee, PropModification: ht, replacePrefix: function(e, t) {
3143
3143
  return new ht({ replacePrefix: [e, t] });
3144
3144
  }, add: function(e) {
3145
3145
  return new ht({ add: e });
3146
3146
  }, remove: function(e) {
3147
3147
  return new ht({ remove: e });
3148
- }, default: Oe, RangeSet: ae, mergeRanges: vt, rangesOverlap: vr }), { default: Oe }), Oe;
3148
+ }, default: Oe, RangeSet: se, mergeRanges: vt, rangesOverlap: vr }), { default: Oe }), Oe;
3149
3149
  });
3150
3150
  })(Tr);
3151
3151
  var Ii = Tr.exports;
@@ -3164,12 +3164,12 @@ function Mr(d) {
3164
3164
  }
3165
3165
  return d.topics === void 0 && (d.topics = `${d.dashboard}-${d.widget}`), d;
3166
3166
  }
3167
- function _t(d, r) {
3168
- var P;
3167
+ function St(d, r) {
3168
+ var F;
3169
3169
  let s, l, x, D, j;
3170
3170
  switch (d.moderation) {
3171
3171
  case Zt.BEFORE:
3172
- s = /* @__PURE__ */ new Date(), l = (P = d.beforeTime) == null ? void 0 : P.split(":"), x = Number.parseInt(l ? l[0] : "00"), D = Number.parseInt(l ? l[1] : "00"), j = Number.parseInt(l ? l[2] : "00"), r.before = s.setHours(x, D, j, 0) / 1e3, r.period || (r.period = s.getDay() === 1 ? 72 : 24);
3172
+ s = /* @__PURE__ */ new Date(), l = (F = d.beforeTime) == null ? void 0 : F.split(":"), x = Number.parseInt(l ? l[0] : "00"), D = Number.parseInt(l ? l[1] : "00"), j = Number.parseInt(l ? l[2] : "00"), r.before = s.setHours(x, D, j, 0) / 1e3, r.period || (r.period = s.getDay() === 1 ? 72 : 24);
3173
3173
  break;
3174
3174
  case Zt.DELAYED:
3175
3175
  d.delay && d.delay > 0 && (r.delay = `${d.delay}`);
@@ -3193,38 +3193,38 @@ class jr {
3193
3193
  * @returns IResponse
3194
3194
  */
3195
3195
  k(this, "getCloud", async (r) => {
3196
- const s = await this.db.table(N.CLOUD).where({ id: r.widget }).last().catch(() => {
3196
+ const s = await this.db.table(K.CLOUD).where({ id: r.widget }).last().catch(() => {
3197
3197
  console.warn(
3198
3198
  "%capi%C %ccloud",
3199
- w.API,
3200
- w.NONE,
3201
- w.CLOUD,
3199
+ v.API,
3200
+ v.NONE,
3201
+ v.CLOUD,
3202
3202
  r.slide,
3203
3203
  r.widget
3204
3204
  );
3205
3205
  });
3206
- return typeof s > "u" ? { data: null, message: "Cloud Data error", success: !1 } : (s.data.presentation = (r == null ? void 0 : r.presentation) || "not set", s.data.slide = (r == null ? void 0 : r.slide) || "not set", s.message = "Messages retrieved successfully", s.success = !0, s);
3206
+ return typeof s > "u" ? { data: null, message: "Cloud Data error", success: !1 } : (s.data.presentation = (r == null ? void 0 : r.presentation) || "not set", s.data.slide = (r == null ? void 0 : r.slide) || "not set", s.data.query = r, s.query = r, s.message = "Messages retrieved successfully", s.success = !0, s);
3207
3207
  });
3208
3208
  /**
3209
- * Retrieve Cloud Data
3209
+ * Retrieve Series Data
3210
3210
  * @param query IQuery
3211
3211
  * @returns IResponse
3212
3212
  */
3213
3213
  k(this, "getSeries", async (r) => {
3214
- const s = await this.db.table(N.SERIES).where({ id: r.widget }).last().catch(() => {
3214
+ const s = await this.db.table(K.SERIES).where({ id: r.widget }).last().catch(() => {
3215
3215
  console.warn(
3216
3216
  "%capi%c %cseries",
3217
- w.API,
3218
- w.NONE,
3219
- w.SERIES,
3217
+ v.API,
3218
+ v.NONE,
3219
+ v.SERIES,
3220
3220
  r.slide,
3221
3221
  r.widget
3222
3222
  );
3223
3223
  });
3224
- return s === void 0 ? { data: null, message: "Series Data error", success: !1 } : (s.data.presentation = (r == null ? void 0 : r.presentation) || "not set", s.data.slide = (r == null ? void 0 : r.slide) || "not set", s.message = "Messages retrieved successfully", s.success = !0, s);
3224
+ return s === void 0 ? { data: null, message: "Series Data error", success: !1 } : (s.data.presentation = (r == null ? void 0 : r.presentation) || "not set", s.data.slide = (r == null ? void 0 : r.slide) || "not set", s.data.query = r, s.query = r, s.message = "Messages retrieved successfully", s.success = !0, s);
3225
3225
  });
3226
3226
  /**
3227
- * Retrieve Cloud Data
3227
+ * Retrieve Messages Data
3228
3228
  * @param query IQuery
3229
3229
  * @returns IResponse
3230
3230
  */
@@ -3233,16 +3233,16 @@ class jr {
3233
3233
  s !== "utc" && (r.since = Math.floor(Date.now() / 1e3) - 60 * 60 * 24 * 7), this.options.delay != 0 ? r.before = Math.floor(Date.now() / 1e3) - (this.options.delay || 0) : r.before = Math.floor(Date.now() / 1e3);
3234
3234
  const l = (j) => j.utc > ((r == null ? void 0 : r.since) || 0), x = (j) => j.utc < ((r == null ? void 0 : r.before) || Date.now() / 1e3), D = (j) => (j == null ? void 0 : j.visible) !== 0;
3235
3235
  try {
3236
- const P = await this.db.table(N.TOPICS).where("widget_id").equals(r.widget).filter(D).filter(l).filter(x).reverse().limit((r == null ? void 0 : r.limit) ?? 25).sortBy(s);
3237
- if (P.length === 0)
3236
+ const F = await this.db.table(K.TOPICS).where("widget_id").equals(r.widget).filter(D).filter(l).filter(x).reverse().limit((r == null ? void 0 : r.limit) ?? 25).sortBy(s);
3237
+ if (F.length === 0)
3238
3238
  return { data: null, message: "No Messages error", success: !1 };
3239
- let Y = P.map((Z) => this.db.table(N.MESSAGES).get({ id: Z.message_id }));
3240
- return qt.Promise.all(Y).then(async (Z) => {
3241
- const ve = Z.map((pe) => pe.data), X = {
3239
+ let N = F.map((X) => this.db.table(K.MESSAGES).get({ id: X.message_id }));
3240
+ return qt.Promise.all(N).then(async (X) => {
3241
+ const ae = X.map((le) => le.data), ee = {
3242
3242
  data: {
3243
3243
  presentation: (r == null ? void 0 : r.presentation) || "not set",
3244
3244
  slide: (r == null ? void 0 : r.slide) || "not set",
3245
- messages: ve,
3245
+ messages: ae,
3246
3246
  dashboard: r.dashboard,
3247
3247
  widget: r.widget,
3248
3248
  query: r
@@ -3252,18 +3252,18 @@ class jr {
3252
3252
  };
3253
3253
  return console.debug(
3254
3254
  "%cstorage%c %cmessages",
3255
- w.STORAGE,
3256
- w.NONE,
3257
- w.MESSAGES,
3258
- X
3259
- ), X;
3255
+ v.STORAGE,
3256
+ v.NONE,
3257
+ v.MESSAGES,
3258
+ ee
3259
+ ), ee;
3260
3260
  });
3261
3261
  } catch (j) {
3262
3262
  return console.warn(
3263
3263
  "%cstorage%c %cmessages",
3264
- w.STORAGE,
3265
- w.NONE,
3266
- w.MESSAGES,
3264
+ v.STORAGE,
3265
+ v.NONE,
3266
+ v.MESSAGES,
3267
3267
  r,
3268
3268
  j
3269
3269
  ), { data: null, message: "Messages Data error", success: !1 };
@@ -3275,24 +3275,24 @@ class jr {
3275
3275
  * @param data
3276
3276
  * @returns number
3277
3277
  */
3278
- k(this, "setCloud", async (r, s) => r.type === N.CLOUD && s !== "" ? await this.db.table(N.CLOUD).put({
3278
+ k(this, "setCloud", async (r, s) => r.type === K.CLOUD && s !== "" ? await this.db.table(K.CLOUD).put({
3279
3279
  id: r.widget,
3280
3280
  dashboard_id: r.dashboard,
3281
3281
  //data: data.data,
3282
3282
  data: s
3283
- }).then(() => 201).catch((l) => (console.error("%cstorage", w.STORAGE, "set", r, l.message), 400)) : 400);
3283
+ }).then(() => 201).catch((l) => (console.error("%cstorage", v.STORAGE, "set", r, l.message), 400)) : 400);
3284
3284
  /**
3285
3285
  * Update Series
3286
3286
  * @param query IQuery
3287
3287
  * @param data
3288
3288
  * @returns number
3289
3289
  */
3290
- k(this, "setSeries", async (r, s) => r.type === N.SERIES && s !== "" ? await this.db.table(N.SERIES).put({
3290
+ k(this, "setSeries", async (r, s) => r.type === K.SERIES && s !== "" ? await this.db.table(K.SERIES).put({
3291
3291
  id: r.widget,
3292
3292
  dashboard_id: r.dashboard,
3293
3293
  //data: data.data,
3294
3294
  data: s
3295
- }).then(() => 201).catch((l) => (console.error("%cstorage", w.STORAGE, "set", r, l.message), 400)) : 400);
3295
+ }).then(() => 201).catch((l) => (console.error("%cstorage", v.STORAGE, "set", r, l.message), 400)) : 400);
3296
3296
  /**
3297
3297
  * Update Messages
3298
3298
  * @param query IQuery
@@ -3300,13 +3300,13 @@ class jr {
3300
3300
  * @returns number
3301
3301
  */
3302
3302
  k(this, "setMessages", async (r, s) => {
3303
- if (r.type !== N.MESSAGES)
3303
+ if (r.type !== K.MESSAGES)
3304
3304
  return 400;
3305
3305
  const l = s.data.title;
3306
3306
  let x = 0;
3307
3307
  return s.data.messages.forEach(async (D) => {
3308
- var j, P, Y, Z, ve, X, pe;
3309
- D.id !== null && (await this.db.table(N.MESSAGES).put({
3308
+ var j, F, N, X, ae, ee, le;
3309
+ D.id !== null && (await this.db.table(K.MESSAGES).put({
3310
3310
  id: D.id,
3311
3311
  utc: D.utc,
3312
3312
  data: D,
@@ -3314,27 +3314,27 @@ class jr {
3314
3314
  }).catch((He) => {
3315
3315
  x++, console.error(
3316
3316
  "%cstorage",
3317
- w.STORAGE,
3317
+ v.STORAGE,
3318
3318
  "set message",
3319
3319
  `title: ${l}`,
3320
3320
  D,
3321
3321
  He.message
3322
3322
  );
3323
- }), await this.db.table(N.TOPICS).put({
3323
+ }), await this.db.table(K.TOPICS).put({
3324
3324
  title: l,
3325
3325
  widget_id: r.widget,
3326
3326
  message_id: D.id,
3327
3327
  dashboard_id: r.dashboard,
3328
- engagement: ((j = D.topics[0]) == null ? void 0 : j.engagement) || ((P = D.dynamics) == null ? void 0 : P.engagement) || 0,
3329
- impressions: ((Y = D.topics[0]) == null ? void 0 : Y.impressions) || ((Z = D.dynamics) == null ? void 0 : Z.semrush_visits) || 0,
3330
- reach: ((ve = D.topics[0]) == null ? void 0 : ve.reach) || ((X = D.dynamics) == null ? void 0 : X.potential_reach) || 0,
3331
- sentiment: ((pe = D.topics[0]) == null ? void 0 : pe.sentiment) || 0,
3328
+ engagement: ((j = D.topics[0]) == null ? void 0 : j.engagement) || ((F = D.dynamics) == null ? void 0 : F.engagement) || 0,
3329
+ impressions: ((N = D.topics[0]) == null ? void 0 : N.impressions) || ((X = D.dynamics) == null ? void 0 : X.semrush_visits) || 0,
3330
+ reach: ((ae = D.topics[0]) == null ? void 0 : ae.reach) || ((ee = D.dynamics) == null ? void 0 : ee.potential_reach) || 0,
3331
+ sentiment: ((le = D.topics[0]) == null ? void 0 : le.sentiment) || 0,
3332
3332
  utc: D.utc,
3333
3333
  expires: D.expires
3334
3334
  }).catch((He) => {
3335
3335
  x++, console.error(
3336
3336
  "%cstorage",
3337
- w.STORAGE,
3337
+ v.STORAGE,
3338
3338
  "set topic",
3339
3339
  `title: ${l}`,
3340
3340
  D,
@@ -3342,15 +3342,15 @@ class jr {
3342
3342
  );
3343
3343
  }));
3344
3344
  }), s.data.topics.forEach(async (D) => {
3345
- const j = D.message_id, P = D.visible ? 1 : 0, Y = D.title;
3346
- await this.db.table(N.TOPICS).where("message_id").equals(j).modify({ visible: P }).catch((Z) => {
3345
+ const j = D.message_id, F = D.visible ? 1 : 0, N = D.title;
3346
+ await this.db.table(K.TOPICS).where("message_id").equals(j).modify({ visible: F }).catch((X) => {
3347
3347
  x++, console.error(
3348
3348
  "%cstorage",
3349
- w.STORAGE,
3349
+ v.STORAGE,
3350
3350
  "update message visibility",
3351
- `title: ${Y}`,
3351
+ `title: ${N}`,
3352
3352
  `widget: ${D.widget_id}`,
3353
- Z.message
3353
+ X.message
3354
3354
  );
3355
3355
  });
3356
3356
  }), x === 0 ? 201 : 400;
@@ -3360,26 +3360,26 @@ class jr {
3360
3360
  */
3361
3361
  k(this, "cleanMessages", async () => {
3362
3362
  const r = Date.now() / 1e3, s = (D) => D.expires < r, l = (D) => D.expires < r;
3363
- return await this.db.table(N.TOPICS).orderBy("expires").filter(s).delete().catch((D) => (console.error(
3363
+ return await this.db.table(K.TOPICS).orderBy("expires").filter(s).delete().catch((D) => (console.error(
3364
3364
  "%cstorage%c %cclean",
3365
- w.STORAGE,
3366
- w.NONE,
3367
- w.MESSAGES,
3365
+ v.STORAGE,
3366
+ v.NONE,
3367
+ v.MESSAGES,
3368
3368
  D.message
3369
- ), 0)), await this.db.table(N.MESSAGES).orderBy("expires").filter(l).delete().catch((D) => (console.error(
3369
+ ), 0)), await this.db.table(K.MESSAGES).orderBy("expires").filter(l).delete().catch((D) => (console.error(
3370
3370
  "%cstorage%c %clean",
3371
- w.STORAGE,
3372
- w.NONE,
3373
- w.MESSAGES,
3371
+ v.STORAGE,
3372
+ v.NONE,
3373
+ v.MESSAGES,
3374
3374
  D.message
3375
3375
  ), 0));
3376
3376
  });
3377
3377
  k(this, "hideMessage", async (r, s) => {
3378
- await this.db.table(N.TOPICS).where("message_id").equals(r).modify({ visible: s ? 1 : 0 }).catch((l) => (console.error(
3378
+ await this.db.table(K.TOPICS).where("message_id").equals(r).modify({ visible: s ? 1 : 0 }).catch((l) => (console.error(
3379
3379
  "%cstorage%c %chide",
3380
- w.STORAGE,
3381
- w.NONE,
3382
- w.HIDE,
3380
+ v.STORAGE,
3381
+ v.NONE,
3382
+ v.HIDE,
3383
3383
  l.message
3384
3384
  ), 0));
3385
3385
  });
@@ -3388,14 +3388,14 @@ class jr {
3388
3388
  * @param query IQuery
3389
3389
  * @returns number
3390
3390
  */
3391
- k(this, "setWidget", async (r) => await this.db.table(N.WIDGETS).put({
3391
+ k(this, "setWidget", async (r) => await this.db.table(K.WIDGETS).put({
3392
3392
  id: r.widget,
3393
3393
  dashboard_id: r.dashboard,
3394
3394
  type: r.type
3395
3395
  }).then(() => 201).catch((s) => (console.error(
3396
3396
  "%cstorage",
3397
- w.STORAGE,
3398
- N.WIDGET,
3397
+ v.STORAGE,
3398
+ K.WIDGET,
3399
3399
  r,
3400
3400
  s.message
3401
3401
  ), 400)));
@@ -3406,13 +3406,19 @@ class jr {
3406
3406
  */
3407
3407
  k(this, "subscribe", (r) => (r = Mr(r), this.subscribers.filter(
3408
3408
  (l) => l.widget === r.widget
3409
- ).length > 0 || (r.type === N.MESSAGES && (r = _t(this.options, r)), console.debug(
3409
+ ).length > 0 || (r.type === K.MESSAGES && (r = St(this.options, r)), console.info(
3410
3410
  "%cstorage%c %csubscribe",
3411
- w.STORAGE,
3412
- w.NONE,
3413
- w.SUBSCRIBE,
3411
+ v.STORAGE,
3412
+ v.NONE,
3413
+ v.SUBSCRIBE,
3414
3414
  r.slide,
3415
3415
  r.widget
3416
+ ), console.debug(
3417
+ "%cstorage%c %csubscribe",
3418
+ v.STORAGE,
3419
+ v.NONE,
3420
+ v.SUBSCRIBE,
3421
+ r
3416
3422
  ), this.subscribers.push(r)), null));
3417
3423
  /**
3418
3424
  * Get current subscribers
@@ -3425,12 +3431,12 @@ class jr {
3425
3431
  * @returns IResponse
3426
3432
  */
3427
3433
  k(this, "loadSlide", async (r) => {
3428
- const s = await this.db.table(N.SLIDE).where({ id: r.id }).last().catch(() => {
3434
+ const s = await this.db.table(K.SLIDE).where({ id: r.id }).last().catch(() => {
3429
3435
  console.warn(
3430
3436
  "%capi%c %cseries",
3431
- w.API,
3432
- w.NONE,
3433
- w.SERIES,
3437
+ v.API,
3438
+ v.NONE,
3439
+ v.SERIES,
3434
3440
  r.id
3435
3441
  );
3436
3442
  });
@@ -3441,7 +3447,7 @@ class jr {
3441
3447
  * @param query IQuery
3442
3448
  * @returns number
3443
3449
  */
3444
- k(this, "storeSlide", async (r) => r.type === N.SLIDE && r.data !== "" ? await this.db.table(N.SLIDE).put({
3450
+ k(this, "storeSlide", async (r) => r.type === K.SLIDE && r.data !== "" ? await this.db.table(K.SLIDE).put({
3445
3451
  id: r.id,
3446
3452
  title: r.data.title || "Not set",
3447
3453
  json: r.data.json || {},
@@ -3449,7 +3455,7 @@ class jr {
3449
3455
  css: r.data.css || ""
3450
3456
  }).then(() => 200).catch((s) => (console.error(
3451
3457
  "%cstorage",
3452
- w.STORAGE,
3458
+ v.STORAGE,
3453
3459
  re.SLIDE_STORE,
3454
3460
  r,
3455
3461
  s.message
@@ -3481,30 +3487,30 @@ function Ci(d, r) {
3481
3487
  return (x, D) => l.then((j) => D(j.transaction(r, x).objectStore(r)));
3482
3488
  }
3483
3489
  let $n;
3484
- function Kr() {
3490
+ function Nr() {
3485
3491
  return $n || ($n = Ci("keyval-store", "keyval")), $n;
3486
3492
  }
3487
- function Vt(d, r = Kr()) {
3493
+ function Vt(d, r = Nr()) {
3488
3494
  return r("readonly", (s) => Wn(s.get(d)));
3489
3495
  }
3490
- function wt(d, r, s = Kr()) {
3496
+ function wt(d, r, s = Nr()) {
3491
3497
  return s("readwrite", (l) => (l.put(r, d), Wn(l.transaction)));
3492
3498
  }
3493
- class Nr {
3499
+ class Kr {
3494
3500
  constructor(r) {
3495
3501
  k(this, "subscribers", []);
3496
3502
  k(this, "options");
3497
3503
  k(this, "getCloud", async (r) => {
3498
3504
  const s = V(r);
3499
- return await Vt(s).then((l) => l).catch(() => (console.warn("%capi", w.API, N.CLOUD, r.slide, r.widget), { data: null, message: "Cloud Data error", success: !1 }));
3505
+ return await Vt(s).then((l) => l).catch(() => (console.warn("%capi", v.API, K.CLOUD, r.slide, r.widget), { data: null, message: "Cloud Data error", success: !1 }));
3500
3506
  });
3501
3507
  k(this, "getSeries", async (r) => {
3502
3508
  const s = V(r);
3503
- return await Vt(s).then((l) => l).catch(() => (console.warn("%capi", w.API, N.SERIES, r.slide, r.widget), { data: null, message: "Series Data error", success: !1 }));
3509
+ return await Vt(s).then((l) => l).catch(() => (console.warn("%capi", v.API, K.SERIES, r.slide, r.widget), { data: null, message: "Series Data error", success: !1 }));
3504
3510
  });
3505
3511
  k(this, "getMessages", async (r) => {
3506
3512
  const s = V(r);
3507
- return await Vt(s).then((l) => l).catch(() => (console.warn("%capi", w.API, N.MESSAGES, r.slide, r.widget), { data: null, message: "Messages Data error", success: !1 }));
3513
+ return await Vt(s).then((l) => l).catch(() => (console.warn("%capi", v.API, K.MESSAGES, r.slide, r.widget), { data: null, message: "Messages Data error", success: !1 }));
3508
3514
  });
3509
3515
  /**
3510
3516
  * Update Cloud
@@ -3516,7 +3522,7 @@ class Nr {
3516
3522
  if (!s.success)
3517
3523
  return 400;
3518
3524
  const l = V(r);
3519
- return delete s.success, delete s.message, await wt(l, s).then(() => 201).catch((x) => (console.error("%cstorage", w.STORAGE, N.CLOUD, r, x.message), 400));
3525
+ return delete s.success, delete s.message, await wt(l, s).then(() => 201).catch((x) => (console.error("%cstorage", v.STORAGE, K.CLOUD, r, x.message), 400));
3520
3526
  });
3521
3527
  /**
3522
3528
  * Update Series
@@ -3528,7 +3534,7 @@ class Nr {
3528
3534
  if (!s.success)
3529
3535
  return 400;
3530
3536
  const l = V(r);
3531
- return delete s.success, delete s.message, await wt(l, s).then(() => 201).catch((x) => (console.error("%cstorage", w.STORAGE, N.SERIES, r, x.message), 400));
3537
+ return delete s.success, delete s.message, await wt(l, s).then(() => 201).catch((x) => (console.error("%cstorage", v.STORAGE, K.SERIES, r, x.message), 400));
3532
3538
  });
3533
3539
  /**
3534
3540
  * Update Messages
@@ -3540,7 +3546,7 @@ class Nr {
3540
3546
  if (!s.success)
3541
3547
  return 400;
3542
3548
  const l = V(r);
3543
- return delete s.success, delete s.message, await wt(l, s).then(() => 201).catch((x) => (console.error("%cstorage", w.STORAGE, N.MESSAGES, r, x.message), 400));
3549
+ return delete s.success, delete s.message, await wt(l, s).then(() => 201).catch((x) => (console.error("%cstorage", v.STORAGE, K.MESSAGES, r, x.message), 400));
3544
3550
  });
3545
3551
  k(this, "cleanMessages", async (r) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((s) => s(0))));
3546
3552
  k(this, "hideMessage", async (r, s) => {
@@ -3559,20 +3565,20 @@ class Nr {
3559
3565
  dashboard_id: r.dashboard,
3560
3566
  type: r.type
3561
3567
  };
3562
- return await wt(s, l).then(() => 201).catch((x) => (console.error("%cstorage", w.STORAGE, N.WIDGET, r, x.message), 400));
3568
+ return await wt(s, l).then(() => 201).catch((x) => (console.error("%cstorage", v.STORAGE, K.WIDGET, r, x.message), 400));
3563
3569
  });
3564
3570
  /**
3565
3571
  * Add component subscriber
3566
3572
  * @param query IQuery
3567
3573
  * @returns null
3568
3574
  */
3569
- k(this, "subscribe", (r) => (r.type === N.MESSAGES && (r = _t(this.options, r)), this.subscribers.filter(
3575
+ k(this, "subscribe", (r) => (r.type === K.MESSAGES && (r = St(this.options, r)), this.subscribers.filter(
3570
3576
  (l) => l.widget === r.widget
3571
3577
  ).length > 0 || (console.debug(
3572
3578
  "%cstorage%c %csubscribe",
3573
- w.STORAGE,
3574
- w.NONE,
3575
- w.SUBSCRIBE,
3579
+ v.STORAGE,
3580
+ v.NONE,
3581
+ v.SUBSCRIBE,
3576
3582
  r.slide,
3577
3583
  r.widget
3578
3584
  ), this.subscribers.push(r)), null));
@@ -3583,7 +3589,7 @@ class Nr {
3583
3589
  k(this, "getSubscribers", async () => await new Promise((r) => r(this.subscribers)));
3584
3590
  k(this, "loadSlide", async (r) => {
3585
3591
  const s = V(r);
3586
- return await Vt(s).then((l) => l).catch(() => (console.warn("%capi", w.API, N.SLIDE, r.slide), { data: null, message: "Slide Load error", success: !1 }));
3592
+ return await Vt(s).then((l) => l).catch(() => (console.warn("%capi", v.API, K.SLIDE, r.slide), { data: null, message: "Slide Load error", success: !1 }));
3587
3593
  });
3588
3594
  /**
3589
3595
  * Update Slide
@@ -3598,7 +3604,7 @@ class Nr {
3598
3604
  html: r.data.html || "",
3599
3605
  css: r.data.css || ""
3600
3606
  };
3601
- return await wt(s, l).then(() => 201).catch((x) => (console.error("%cstorage", w.STORAGE, N.SLIDE, r, x.message), 400));
3607
+ return await wt(s, l).then(() => 201).catch((x) => (console.error("%cstorage", v.STORAGE, K.SLIDE, r, x.message), 400));
3602
3608
  });
3603
3609
  this.options = r;
3604
3610
  }
@@ -3612,7 +3618,7 @@ class Br {
3612
3618
  try {
3613
3619
  return localStorage.getObject(s);
3614
3620
  } catch (l) {
3615
- return console.warn("%capi", w.API, N.CLOUD, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3621
+ return console.warn("%capi", v.API, K.CLOUD, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3616
3622
  }
3617
3623
  });
3618
3624
  k(this, "getSeries", async (r) => {
@@ -3620,7 +3626,7 @@ class Br {
3620
3626
  try {
3621
3627
  return localStorage.getObject(s);
3622
3628
  } catch (l) {
3623
- return console.warn("%capi", w.API, N.SERIES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3629
+ return console.warn("%capi", v.API, K.SERIES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3624
3630
  }
3625
3631
  });
3626
3632
  k(this, "getMessages", async (r) => {
@@ -3628,7 +3634,7 @@ class Br {
3628
3634
  try {
3629
3635
  return localStorage.getObject(s);
3630
3636
  } catch (l) {
3631
- return console.warn("%capi", w.API, N.MESSAGES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3637
+ return console.warn("%capi", v.API, K.MESSAGES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3632
3638
  }
3633
3639
  });
3634
3640
  /**
@@ -3642,7 +3648,7 @@ class Br {
3642
3648
  try {
3643
3649
  return localStorage.setObject(l, s), 201;
3644
3650
  } catch (x) {
3645
- return console.error("%cstorage", w.STORAGE, N.CLOUD, r, x), 400;
3651
+ return console.error("%cstorage", v.STORAGE, K.CLOUD, r, x), 400;
3646
3652
  }
3647
3653
  });
3648
3654
  /**
@@ -3656,7 +3662,7 @@ class Br {
3656
3662
  try {
3657
3663
  return localStorage.setObject(l, s), 201;
3658
3664
  } catch (x) {
3659
- return console.error("%cstorage", w.STORAGE, N.SERIES, r, x), 400;
3665
+ return console.error("%cstorage", v.STORAGE, K.SERIES, r, x), 400;
3660
3666
  }
3661
3667
  });
3662
3668
  /**
@@ -3670,7 +3676,7 @@ class Br {
3670
3676
  try {
3671
3677
  return localStorage.setObject(l, s), 200;
3672
3678
  } catch (x) {
3673
- return console.error("%cstorage", w.STORAGE, N.MESSAGES, r, x), 400;
3679
+ return console.error("%cstorage", v.STORAGE, K.MESSAGES, r, x), 400;
3674
3680
  }
3675
3681
  });
3676
3682
  k(this, "cleanMessages", async (r) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((s) => s(0))));
@@ -3682,7 +3688,7 @@ class Br {
3682
3688
  try {
3683
3689
  return localStorage.setObject(s, r), 201;
3684
3690
  } catch (l) {
3685
- return console.error("%cstorage", w.STORAGE, N.WIDGET, r, l), 400;
3691
+ return console.error("%cstorage", v.STORAGE, K.WIDGET, r, l), 400;
3686
3692
  }
3687
3693
  });
3688
3694
  /**
@@ -3690,13 +3696,13 @@ class Br {
3690
3696
  * @param query IQuery
3691
3697
  * @returns null
3692
3698
  */
3693
- k(this, "subscribe", (r) => (r.type === N.MESSAGES && (r = _t(this.options, r)), this.subscribers.filter(
3699
+ k(this, "subscribe", (r) => (r.type === K.MESSAGES && (r = St(this.options, r)), this.subscribers.filter(
3694
3700
  (l) => l.widget === r.widget
3695
3701
  ).length || (console.debug(
3696
3702
  "%cstorage%c %csubscribe",
3697
- w.STORAGE,
3698
- w.NONE,
3699
- w.SUBSCRIBE,
3703
+ v.STORAGE,
3704
+ v.NONE,
3705
+ v.SUBSCRIBE,
3700
3706
  r.slide,
3701
3707
  r.widget
3702
3708
  ), this.subscribers.push(r)), null));
@@ -3709,7 +3715,7 @@ class Br {
3709
3715
  try {
3710
3716
  return localStorage.getObject(`${r.type}.${r.id}`);
3711
3717
  } catch (s) {
3712
- return console.warn("%capi", w.API, N.SLIDE, r.id, s), { data: null, message: "Slide Load error", success: !1 };
3718
+ return console.warn("%capi", v.API, K.SLIDE, r.id, s), { data: null, message: "Slide Load error", success: !1 };
3713
3719
  }
3714
3720
  });
3715
3721
  k(this, "storeSlide", async (r) => {
@@ -3722,7 +3728,7 @@ class Br {
3722
3728
  css: r.data.css || ""
3723
3729
  }), 201;
3724
3730
  } catch (s) {
3725
- return console.error("%cstorage", w.STORAGE, N.SLIDE, r, s), 400;
3731
+ return console.error("%cstorage", v.STORAGE, K.SLIDE, r, s), 400;
3726
3732
  }
3727
3733
  });
3728
3734
  this.options = r, Storage.prototype.setObject = function(s, l) {
@@ -3742,7 +3748,7 @@ class Lr {
3742
3748
  try {
3743
3749
  return sessionStorage.getObject(s);
3744
3750
  } catch (l) {
3745
- return console.warn("%capi", w.API, N.CLOUD, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3751
+ return console.warn("%capi", v.API, K.CLOUD, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3746
3752
  }
3747
3753
  });
3748
3754
  k(this, "getSeries", async (r) => {
@@ -3750,7 +3756,7 @@ class Lr {
3750
3756
  try {
3751
3757
  return sessionStorage.getObject(s);
3752
3758
  } catch (l) {
3753
- return console.warn("%capi", w.API, N.SERIES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3759
+ return console.warn("%capi", v.API, K.SERIES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3754
3760
  }
3755
3761
  });
3756
3762
  k(this, "getMessages", async (r) => {
@@ -3758,7 +3764,7 @@ class Lr {
3758
3764
  try {
3759
3765
  return sessionStorage.getObject(s);
3760
3766
  } catch (l) {
3761
- return console.warn("%capi", w.API, N.MESSAGES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3767
+ return console.warn("%capi", v.API, K.MESSAGES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3762
3768
  }
3763
3769
  });
3764
3770
  /**
@@ -3772,7 +3778,7 @@ class Lr {
3772
3778
  try {
3773
3779
  return sessionStorage.setObject(l, s), 201;
3774
3780
  } catch (x) {
3775
- return console.error("%cstorage", w.STORAGE, N.CLOUD, r, x), 400;
3781
+ return console.error("%cstorage", v.STORAGE, K.CLOUD, r, x), 400;
3776
3782
  }
3777
3783
  });
3778
3784
  /**
@@ -3786,7 +3792,7 @@ class Lr {
3786
3792
  try {
3787
3793
  return sessionStorage.setObject(l, s), 201;
3788
3794
  } catch (x) {
3789
- return console.error("%cstorage", w.STORAGE, N.SERIES, r, x), 400;
3795
+ return console.error("%cstorage", v.STORAGE, K.SERIES, r, x), 400;
3790
3796
  }
3791
3797
  });
3792
3798
  /**
@@ -3800,7 +3806,7 @@ class Lr {
3800
3806
  try {
3801
3807
  return sessionStorage.setObject(l, s), 200;
3802
3808
  } catch (x) {
3803
- return console.error("%cstorage", w.STORAGE, N.MESSAGES, r, x), 400;
3809
+ return console.error("%cstorage", v.STORAGE, K.MESSAGES, r, x), 400;
3804
3810
  }
3805
3811
  });
3806
3812
  k(this, "cleanMessages", async (r) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((s) => s(0))));
@@ -3812,7 +3818,7 @@ class Lr {
3812
3818
  try {
3813
3819
  return sessionStorage.setObject(s, r), 201;
3814
3820
  } catch (l) {
3815
- return console.error("%cstorage", w.STORAGE, N.WIDGET, r, l), 400;
3821
+ return console.error("%cstorage", v.STORAGE, K.WIDGET, r, l), 400;
3816
3822
  }
3817
3823
  });
3818
3824
  /**
@@ -3820,13 +3826,13 @@ class Lr {
3820
3826
  * @param query IQuery
3821
3827
  * @returns null
3822
3828
  */
3823
- k(this, "subscribe", (r) => (r.type === N.MESSAGES && (r = _t(this.options, r)), this.subscribers.filter(
3829
+ k(this, "subscribe", (r) => (r.type === K.MESSAGES && (r = St(this.options, r)), this.subscribers.filter(
3824
3830
  (l) => l.widget === r.widget
3825
3831
  ).length || (console.debug(
3826
3832
  "%cstorage%c %csubscribe",
3827
- w.STORAGE,
3828
- w.NONE,
3829
- w.SUBSCRIBE,
3833
+ v.STORAGE,
3834
+ v.NONE,
3835
+ v.SUBSCRIBE,
3830
3836
  r.slide,
3831
3837
  r.widget
3832
3838
  ), this.subscribers.push(r)), null));
@@ -3839,7 +3845,7 @@ class Lr {
3839
3845
  try {
3840
3846
  return sessionStorage.getObject(`${r.type}.${r.id}`);
3841
3847
  } catch (s) {
3842
- return console.warn("%capi", w.API, N.SLIDE, r.id, s), { data: null, message: "Store Load error", success: !1 };
3848
+ return console.warn("%capi", v.API, K.SLIDE, r.id, s), { data: null, message: "Store Load error", success: !1 };
3843
3849
  }
3844
3850
  });
3845
3851
  /**
@@ -3857,7 +3863,7 @@ class Lr {
3857
3863
  css: r.data.css || ""
3858
3864
  }), 200;
3859
3865
  } catch (s) {
3860
- return console.error("%cstorage", w.STORAGE, N.SLIDE, r, s), 400;
3866
+ return console.error("%cstorage", v.STORAGE, K.SLIDE, r, s), 400;
3861
3867
  }
3862
3868
  });
3863
3869
  this.options = r, Storage.prototype.setObject = function(s, l) {
@@ -3877,7 +3883,7 @@ class Gr {
3877
3883
  try {
3878
3884
  return window.BuzzCasting.WidgetData[s];
3879
3885
  } catch (l) {
3880
- return console.warn("%capi", w.API, N.CLOUD, r.slide, r.widget, l), { data: null, message: "Cloud Data error", success: !1 };
3886
+ return console.warn("%capi", v.API, K.CLOUD, r.slide, r.widget, l), { data: null, message: "Cloud Data error", success: !1 };
3881
3887
  }
3882
3888
  });
3883
3889
  k(this, "getSeries", async (r) => {
@@ -3885,7 +3891,7 @@ class Gr {
3885
3891
  try {
3886
3892
  return window.BuzzCasting.WidgetData[s];
3887
3893
  } catch (l) {
3888
- return console.warn("%capi", w.API, N.SERIES, r.slide, r.widget, l), { data: null, message: "Series Data error", success: !1 };
3894
+ return console.warn("%capi", v.API, K.SERIES, r.slide, r.widget, l), { data: null, message: "Series Data error", success: !1 };
3889
3895
  }
3890
3896
  });
3891
3897
  k(this, "getMessages", async (r) => {
@@ -3893,7 +3899,7 @@ class Gr {
3893
3899
  try {
3894
3900
  return window.BuzzCasting.WidgetData[s];
3895
3901
  } catch (l) {
3896
- return console.warn("%capi", w.API, N.MESSAGES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3902
+ return console.warn("%capi", v.API, K.MESSAGES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3897
3903
  }
3898
3904
  });
3899
3905
  /**
@@ -3907,7 +3913,7 @@ class Gr {
3907
3913
  try {
3908
3914
  return window.BuzzCasting.WidgetData[l] = s, 201;
3909
3915
  } catch (x) {
3910
- return console.error("%cstorage", w.STORAGE, "set", r, x), 400;
3916
+ return console.error("%cstorage", v.STORAGE, "set", r, x), 400;
3911
3917
  }
3912
3918
  });
3913
3919
  /**
@@ -3921,7 +3927,7 @@ class Gr {
3921
3927
  try {
3922
3928
  return window.BuzzCasting.WidgetData[l] = s, 201;
3923
3929
  } catch (x) {
3924
- return console.error("%cstorage", w.STORAGE, "set", r, x), 400;
3930
+ return console.error("%cstorage", v.STORAGE, "set", r, x), 400;
3925
3931
  }
3926
3932
  });
3927
3933
  /**
@@ -3935,7 +3941,7 @@ class Gr {
3935
3941
  try {
3936
3942
  return window.BuzzCasting.WidgetData[l] = s, 201;
3937
3943
  } catch (x) {
3938
- return console.error("%cstorage", w.STORAGE, "set", r, x), 400;
3944
+ return console.error("%cstorage", v.STORAGE, "set", r, x), 400;
3939
3945
  }
3940
3946
  });
3941
3947
  k(this, "cleanMessages", async (r) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((s) => s(0))));
@@ -3947,7 +3953,7 @@ class Gr {
3947
3953
  try {
3948
3954
  return window.BuzzCasting.WidgetData[s] = r, 201;
3949
3955
  } catch (l) {
3950
- return console.error("%cstorage", w.STORAGE, N.WIDGET, r, l), 400;
3956
+ return console.error("%cstorage", v.STORAGE, K.WIDGET, r, l), 400;
3951
3957
  }
3952
3958
  });
3953
3959
  /**
@@ -3955,13 +3961,13 @@ class Gr {
3955
3961
  * @param query IQuery
3956
3962
  * @returns null
3957
3963
  */
3958
- k(this, "subscribe", (r) => (r.type === N.MESSAGES && (r = _t(this.options, r)), this.subscribers.filter(
3964
+ k(this, "subscribe", (r) => (r.type === K.MESSAGES && (r = St(this.options, r)), this.subscribers.filter(
3959
3965
  (l) => l.widget === r.widget
3960
3966
  ).length || (console.debug(
3961
3967
  "%cstorage%c %csubscribe",
3962
- w.STORAGE,
3963
- w.NONE,
3964
- w.SUBSCRIBE,
3968
+ v.STORAGE,
3969
+ v.NONE,
3970
+ v.SUBSCRIBE,
3965
3971
  r.slide,
3966
3972
  r.widget
3967
3973
  ), this.subscribers.push(r)), null));
@@ -3974,7 +3980,7 @@ class Gr {
3974
3980
  try {
3975
3981
  return window.BuzzCasting.SlideData[r.id];
3976
3982
  } catch (s) {
3977
- return console.warn("%capi", w.API, N.SLIDE, r.id, s), { data: null, message: "Slide Load error", success: !1 };
3983
+ return console.warn("%capi", v.API, K.SLIDE, r.id, s), { data: null, message: "Slide Load error", success: !1 };
3978
3984
  }
3979
3985
  });
3980
3986
  k(this, "storeSlide", async (r) => {
@@ -3987,7 +3993,7 @@ class Gr {
3987
3993
  css: r.data.css || ""
3988
3994
  }, 201;
3989
3995
  } catch (s) {
3990
- return console.error("%cstorage", w.STORAGE, N.SLIDE, r, s), 400;
3996
+ return console.error("%cstorage", v.STORAGE, K.SLIDE, r, s), 400;
3991
3997
  }
3992
3998
  });
3993
3999
  this.options = r, window.BuzzCasting.WidgetData = /* @__PURE__ */ new Set();
@@ -4111,14 +4117,14 @@ function xe(d, r) {
4111
4117
  l = r.charCodeAt(s), d = (d << 5) - d + l, d |= 0;
4112
4118
  return d < 0 ? d * -2 : d;
4113
4119
  }
4114
- function Ki(d, r, s) {
4120
+ function Ni(d, r, s) {
4115
4121
  return Object.keys(r).sort().reduce(l, d);
4116
4122
  function l(x, D) {
4117
4123
  return $r(x, r[D], D, s);
4118
4124
  }
4119
4125
  }
4120
4126
  function $r(d, r, s, l) {
4121
- const x = xe(xe(xe(d, s), Ni(r)), typeof r);
4127
+ const x = xe(xe(xe(d, s), Ki(r)), typeof r);
4122
4128
  if (r === null)
4123
4129
  return xe(x, "null");
4124
4130
  if (r === void 0)
@@ -4127,7 +4133,7 @@ function $r(d, r, s, l) {
4127
4133
  if (l.includes(r))
4128
4134
  return xe(x, `[Circular]${s}`);
4129
4135
  l.push(r);
4130
- const D = Ki(x, r, l);
4136
+ const D = Ni(x, r, l);
4131
4137
  if (!("valueOf" in r) || typeof r.valueOf != "function")
4132
4138
  return D;
4133
4139
  try {
@@ -4138,7 +4144,7 @@ function $r(d, r, s, l) {
4138
4144
  }
4139
4145
  return xe(x, r.toString());
4140
4146
  }
4141
- function Ni(d) {
4147
+ function Ki(d) {
4142
4148
  return Object.prototype.toString.call(d);
4143
4149
  }
4144
4150
  function Fn(d) {
@@ -4189,10 +4195,10 @@ function Ji(d) {
4189
4195
  function Vi(d) {
4190
4196
  const r = window.BuzzCasting.getOptions().suspended ?? !1;
4191
4197
  return d.forEach((s) => {
4192
- var l, x, D, j, P;
4193
- if (r ? s.content = "License suspended, please contact your Sales Representative to restore service" : s.content = ((l = s.content) == null ? void 0 : l.replace(/(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)((\?.*)?)/g, "")) || "", s.sender !== null ? ((((x = s.sender) == null ? void 0 : x.title) === "Unknown author" || ((D = s.sender) == null ? void 0 : D.title) === null) && (s.sender.title = ""), ((j = s.sender) == null ? void 0 : j.name) !== "" && s.sender.title === "" && (s.sender.title = s.sender.name), ((P = s.sender) == null ? void 0 : P.name) !== "" && s.channel === "tw" && (s.sender.name = `@${s.sender.name}`)) : s.sender = { title: "", name: "", id: "", avatar: "default", bio: "", location: "", following: 0, verified: 0, listed: 0, followers: 0, favourites: 0, messages: 0, influence: 0 }, s.sender.title === "" && s.link !== "") {
4194
- const Y = new URL(s.link);
4195
- s.sender.title = Y.hostname.replace("www.", "");
4198
+ var l, x, D, j, F;
4199
+ if (r ? s.content = "License suspended, please contact your Sales Representative to restore service" : s.content = ((l = s.content) == null ? void 0 : l.replace(/(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)((\?.*)?)/g, "")) || "", s.sender !== null ? ((((x = s.sender) == null ? void 0 : x.title) === "Unknown author" || ((D = s.sender) == null ? void 0 : D.title) === null) && (s.sender.title = ""), ((j = s.sender) == null ? void 0 : j.name) !== "" && s.sender.title === "" && (s.sender.title = s.sender.name), ((F = s.sender) == null ? void 0 : F.name) !== "" && s.channel === "tw" && (s.sender.name = `@${s.sender.name}`)) : s.sender = { title: "", name: "", id: "", avatar: "default", bio: "", location: "", following: 0, verified: 0, listed: 0, followers: 0, favourites: 0, messages: 0, influence: 0 }, s.sender.title === "" && s.link !== "") {
4200
+ const N = new URL(s.link);
4201
+ s.sender.title = N.hostname.replace("www.", "");
4196
4202
  }
4197
4203
  }), d;
4198
4204
  }
@@ -4246,153 +4252,147 @@ class ro {
4246
4252
  l.push(this.api.get(x));
4247
4253
  }), await Promise.allSettled(l).then(
4248
4254
  (x) => x.forEach(async (D) => {
4249
- let j = 400;
4255
+ let j, F = 400;
4250
4256
  if (D.status === "fulfilled") {
4251
- let P = D.value;
4257
+ let N = D.value;
4252
4258
  if (this.sm === null)
4253
4259
  return 400;
4254
- if (P.success === !0) {
4255
- const Y = this.sm.subscribers.filter(
4256
- (X) => X.widget === P.query.widget
4260
+ if (N.success === !0) {
4261
+ const X = this.sm.subscribers.filter(
4262
+ (le) => le.widget === N.query.widget
4257
4263
  )[0];
4258
- let Z = "", ve;
4259
- switch (P.query.type) {
4260
- case N.MESSAGES:
4261
- if (ve = P.data.messages.filter(
4262
- (X) => X.id !== null
4263
- ), P.data.messages = ve, Z = Fn(P.data.messages), Y.hash === Z)
4264
+ let ae = "", ee;
4265
+ switch (N.query.type) {
4266
+ case K.MESSAGES:
4267
+ if (ee = N.data.messages.filter(
4268
+ (le) => le.id !== null
4269
+ ), N.data.messages = ee, ae = Fn(N.data.messages), X.hash === ae)
4264
4270
  return console.debug(
4265
4271
  "%capi%c %cno updates",
4266
- w.API,
4267
- w.NONE,
4268
- w.NO_UPDATES,
4269
- N.MESSAGES,
4270
- P.query.slide,
4271
- P.query.widget
4272
+ v.API,
4273
+ v.NONE,
4274
+ v.NO_UPDATES,
4275
+ K.MESSAGES,
4276
+ N.query.slide,
4277
+ N.query.widget
4272
4278
  ), 204;
4273
- Y.hash = Z, j = await this.sm.setMessages(P.query, P);
4279
+ j = N, X.hash = ae, F = await this.sm.setMessages(N.query, N);
4274
4280
  break;
4275
- case N.CLOUD:
4276
- if (Z = Fn(P.data), Y.hash === Z)
4277
- console.debug(
4278
- "%capi%c %cno updates",
4279
- w.API,
4280
- w.NONE,
4281
- w.NO_UPDATES,
4282
- N.CLOUD,
4283
- P.query.slide,
4284
- P.query.widget
4285
- ), j = 204;
4286
- else {
4287
- Y.hash = Z;
4288
- const X = {
4289
- data: {
4290
- dashboard: P.query.dashboard,
4291
- cloud: P.data,
4292
- query: P.query,
4293
- slide: P.query.slide
4294
- },
4295
- query: P.query,
4296
- message: P.message,
4297
- success: P.success
4298
- };
4299
- j = await this.sm.setCloud(P.query, X.data.cloud);
4300
- }
4281
+ case K.CLOUD:
4282
+ ae = Fn(N.data), X.hash === ae ? (console.debug(
4283
+ "%capi%c %cno updates",
4284
+ v.API,
4285
+ v.NONE,
4286
+ v.NO_UPDATES,
4287
+ K.CLOUD,
4288
+ N.query.slide,
4289
+ N.query.widget
4290
+ ), F = 204) : (X.hash = ae, j = {
4291
+ data: {
4292
+ dashboard: N.query.dashboard,
4293
+ cloud: N.data,
4294
+ query: N.query,
4295
+ slide: N.query.slide
4296
+ },
4297
+ query: N.query,
4298
+ message: N.message,
4299
+ success: N.success
4300
+ }, F = await this.sm.setCloud(N.query, j.data.cloud));
4301
4301
  break;
4302
- case N.SERIES:
4303
- if (Z = Fn(P.data), Y.hash === Z)
4304
- console.debug(
4305
- "%capi%c %cno updates",
4306
- w.API,
4307
- w.NONE,
4308
- w.NO_UPDATES,
4309
- N.SERIES,
4310
- P.query.slide,
4311
- P.query.widget
4312
- ), j = 204;
4313
- else {
4314
- Y.hash = Z;
4315
- const X = {
4316
- data: {
4317
- dashboard: P.query.dashboard,
4318
- series: P.data,
4319
- query: P.query,
4320
- slide: P.query.slide
4321
- },
4322
- query: P.query,
4323
- message: P.message,
4324
- success: P.success
4325
- };
4326
- j = await this.sm.setSeries(P.query, X.data.series);
4327
- }
4302
+ case K.SERIES:
4303
+ ae = Fn(N.data), X.hash === ae ? (console.debug(
4304
+ "%capi%c %cno updates",
4305
+ v.API,
4306
+ v.NONE,
4307
+ v.NO_UPDATES,
4308
+ K.SERIES,
4309
+ N.query.slide,
4310
+ N.query.widget
4311
+ ), F = 204) : (X.hash = ae, j = {
4312
+ data: {
4313
+ dashboard: N.query.dashboard,
4314
+ series: N.data,
4315
+ query: N.query,
4316
+ slide: N.query.slide
4317
+ },
4318
+ query: N.query,
4319
+ message: N.message,
4320
+ success: N.success
4321
+ }, F = await this.sm.setSeries(N.query, j.data.series));
4328
4322
  break;
4329
4323
  default:
4330
4324
  console.warn(
4331
4325
  "%capi%c %cstorage",
4332
- w.API,
4333
- w.NONE,
4334
- w.STORAGE,
4326
+ v.API,
4327
+ v.NONE,
4328
+ v.STORAGE,
4335
4329
  "error",
4336
- `data type ${P.query.type} unknown`
4330
+ `data type ${N.query.type} unknown`
4337
4331
  );
4338
4332
  }
4339
4333
  } else
4340
- j = 401;
4341
- switch (j) {
4334
+ F = 401;
4335
+ switch (F) {
4342
4336
  case 201:
4343
4337
  console.info(
4344
4338
  "%capp%c %cbroadcast",
4345
- w.API,
4346
- w.NONE,
4347
- w.BROADCAST,
4348
- P.query.slide,
4349
- P.data.title ?? P.query.widget
4339
+ v.API,
4340
+ v.NONE,
4341
+ v.BROADCAST,
4342
+ N.query.slide,
4343
+ N.data.title ?? N.query.widget
4344
+ ), console.debug(
4345
+ "%capp%c %cbroadcast",
4346
+ v.API,
4347
+ v.NONE,
4348
+ v.BROADCAST,
4349
+ N
4350
4350
  );
4351
- const Y = structuredClone(P.query);
4352
- switch (console.log("status", j, Y), P.query.type) {
4351
+ const X = structuredClone(j.query);
4352
+ switch (N.query.type) {
4353
4353
  case "messages":
4354
- P = await this.sm.getMessages(P.query);
4354
+ N = await this.sm.getMessages(X);
4355
4355
  break;
4356
4356
  case "cloud":
4357
- P = await this.sm.getCloud(P.query), P && (P.query = Y);
4357
+ N = await this.sm.getCloud(X), N && (N.query = X);
4358
4358
  break;
4359
4359
  case "series":
4360
- P = await this.sm.getSeries(P.query), P && (P.query = Y);
4360
+ N = await this.sm.getSeries(X), N && (N.query = X);
4361
4361
  break;
4362
4362
  default:
4363
4363
  console.warn(
4364
4364
  "%capp%c %cbroadcast",
4365
- w.API,
4366
- w.NONE,
4367
- w.BROADCAST,
4365
+ v.API,
4366
+ v.NONE,
4367
+ v.BROADCAST,
4368
4368
  "Unhandled data type",
4369
- P.query
4369
+ N.query
4370
4370
  );
4371
4371
  }
4372
- P && this.bc.postMessage({
4372
+ N && this.bc.postMessage({
4373
4373
  event: re.WIDGET_UPDATE,
4374
- data: P.data
4374
+ data: N.data
4375
4375
  });
4376
4376
  break;
4377
4377
  default:
4378
4378
  console.warn(
4379
4379
  "%capp%c %cbroadcast",
4380
- w.API,
4381
- w.NONE,
4382
- w.BROADCAST,
4380
+ v.API,
4381
+ v.NONE,
4382
+ v.BROADCAST,
4383
4383
  "Fetch error",
4384
- P.query.slide,
4385
- P.data.title ?? P.query.widget
4384
+ N.query.slide,
4385
+ N.data.title ?? N.query.widget
4386
4386
  );
4387
4387
  break;
4388
4388
  }
4389
- return j;
4389
+ return F;
4390
4390
  } else
4391
4391
  return console.warn(
4392
4392
  "%capi%c %cstorage",
4393
- w.API,
4394
- w.NONE,
4395
- w.STORAGE,
4393
+ v.API,
4394
+ v.NONE,
4395
+ v.STORAGE,
4396
4396
  re.ERROR
4397
4397
  ), 400;
4398
4398
  })
@@ -4410,9 +4410,9 @@ class ro {
4410
4410
  case re.UPDATE:
4411
4411
  console.debug(
4412
4412
  "%capi%c %cstorage",
4413
- w.API,
4414
- w.NONE,
4415
- w.STORAGE,
4413
+ v.API,
4414
+ v.NONE,
4415
+ v.STORAGE,
4416
4416
  re.UPDATE,
4417
4417
  r.data
4418
4418
  ), await this.update();
@@ -4424,9 +4424,9 @@ class ro {
4424
4424
  if ((l = this.options) != null && l.suspended) {
4425
4425
  console.info(
4426
4426
  "%cstorage%c %cstorage",
4427
- w.STORAGE,
4428
- w.NONE,
4429
- w.MESSAGES,
4427
+ v.STORAGE,
4428
+ v.NONE,
4429
+ v.MESSAGES,
4430
4430
  "Account suspended"
4431
4431
  );
4432
4432
  return;
@@ -4436,9 +4436,9 @@ class ro {
4436
4436
  ));
4437
4437
  console.info(
4438
4438
  "%cstorage%c %cstorage",
4439
- w.STORAGE,
4440
- w.NONE,
4441
- w.MESSAGES,
4439
+ v.STORAGE,
4440
+ v.NONE,
4441
+ v.MESSAGES,
4442
4442
  `${s} messages deleted`
4443
4443
  );
4444
4444
  });
@@ -4447,9 +4447,9 @@ class ro {
4447
4447
  const s = await ((l = this.sm) == null ? void 0 : l.hideMessage(r.id, 0));
4448
4448
  return console.info(
4449
4449
  "%cstorage%c %cstorage",
4450
- w.STORAGE,
4451
- w.NONE,
4452
- w.HIDE,
4450
+ v.STORAGE,
4451
+ v.NONE,
4452
+ v.HIDE,
4453
4453
  `${s} messages hidden`
4454
4454
  ), await this.api.hideMessage(r);
4455
4455
  });
@@ -4461,15 +4461,15 @@ class ro {
4461
4461
  k(this, "loadSlide", async (r) => await this.api.loadSlide(r));
4462
4462
  k(this, "storeSlide", async (r) => {
4463
4463
  var s;
4464
- return console.log(r), await ((s = this.sm) == null ? void 0 : s.storeSlide(r).then(async () => r != null && r.update && r.update ? await this.api.storeSlide(r) : new Promise((l, x) => {
4464
+ return await ((s = this.sm) == null ? void 0 : s.storeSlide(r).then(async () => r != null && r.update && r.update ? await this.api.storeSlide(r) : new Promise((l, x) => {
4465
4465
  l(201);
4466
4466
  })));
4467
4467
  });
4468
4468
  console.info(
4469
4469
  "%cstorage%c %cslide",
4470
- w.STORAGE,
4471
- w.NONE,
4472
- w.SLIDE,
4470
+ v.STORAGE,
4471
+ v.NONE,
4472
+ v.SLIDE,
4473
4473
  r.slide,
4474
4474
  re.VERSION,
4475
4475
  ki
@@ -4477,27 +4477,27 @@ class ro {
4477
4477
  const s = (r == null ? void 0 : r.slide) || r.app;
4478
4478
  switch (this.bc = new BroadcastChannel(s), console.info(
4479
4479
  "%capi%c %cbroadcast",
4480
- w.API,
4481
- w.NONE,
4482
- w.BROADCAST,
4480
+ v.API,
4481
+ v.NONE,
4482
+ v.BROADCAST,
4483
4483
  re.CHANNEL,
4484
4484
  s
4485
4485
  ), this.bc.onmessage = (l) => {
4486
4486
  this.actions(l);
4487
4487
  }, this.bc.postMessage({ event: re.STORAGE_INIT, data: {} }), this.api = new Di(r), r.storage) {
4488
- case ge.DEXIE:
4488
+ case ye.DEXIE:
4489
4489
  this.sm = new jr(r);
4490
4490
  break;
4491
- case ge.LOCAL:
4491
+ case ye.LOCAL:
4492
4492
  this.sm = new Lr(r);
4493
4493
  break;
4494
- case ge.SESSION:
4494
+ case ye.SESSION:
4495
4495
  this.sm = new Br(r);
4496
4496
  break;
4497
- case ge.KEYVAL:
4498
- this.sm = new Nr(r);
4497
+ case ye.KEYVAL:
4498
+ this.sm = new Kr(r);
4499
4499
  break;
4500
- case ge.WINDOW:
4500
+ case ye.WINDOW:
4501
4501
  this.sm = new Gr(r);
4502
4502
  break;
4503
4503
  }
@@ -4513,11 +4513,11 @@ class Bi {
4513
4513
  */
4514
4514
  k(this, "getCloud", async (r) => {
4515
4515
  var s;
4516
- return r.type !== N.CLOUD ? (console.warn(
4516
+ return r.type !== K.CLOUD ? (console.warn(
4517
4517
  "%capp%c %get",
4518
- w.APP,
4519
- w.NONE,
4520
- w.GET_DATA,
4518
+ v.APP,
4519
+ v.NONE,
4520
+ v.GET_DATA,
4521
4521
  r.widget,
4522
4522
  "wrong method call for getMessages, type used is",
4523
4523
  r.type
@@ -4534,11 +4534,11 @@ class Bi {
4534
4534
  */
4535
4535
  k(this, "getMessages", async (r) => {
4536
4536
  var s;
4537
- return r.type !== N.MESSAGES ? (console.warn(
4537
+ return r.type !== K.MESSAGES ? (console.warn(
4538
4538
  "%capp%c %get",
4539
- w.APP,
4540
- w.NONE,
4541
- w.GET_DATA,
4539
+ v.APP,
4540
+ v.NONE,
4541
+ v.GET_DATA,
4542
4542
  r.widget,
4543
4543
  "wrong method call for getMessages, type used is",
4544
4544
  r.type
@@ -4555,11 +4555,11 @@ class Bi {
4555
4555
  */
4556
4556
  k(this, "getSeries", async (r) => {
4557
4557
  var s;
4558
- return r.type !== N.SERIES ? (console.warn(
4558
+ return r.type !== K.SERIES ? (console.warn(
4559
4559
  "%capp%c %get",
4560
- w.APP,
4561
- w.NONE,
4562
- w.GET_DATA,
4560
+ v.APP,
4561
+ v.NONE,
4562
+ v.GET_DATA,
4563
4563
  r.widget,
4564
4564
  "wrong method call for getMessages, type used is",
4565
4565
  r.type
@@ -4570,19 +4570,19 @@ class Bi {
4570
4570
  }) : await ((s = this.sm) == null ? void 0 : s.getSeries(r));
4571
4571
  });
4572
4572
  switch (this.sm = null, r.storage) {
4573
- case ge.DEXIE:
4573
+ case ye.DEXIE:
4574
4574
  this.sm = new jr(r);
4575
4575
  break;
4576
- case ge.LOCAL:
4576
+ case ye.LOCAL:
4577
4577
  this.sm = new Lr(r);
4578
4578
  break;
4579
- case ge.SESSION:
4579
+ case ye.SESSION:
4580
4580
  this.sm = new Br(r);
4581
4581
  break;
4582
- case ge.KEYVAL:
4583
- this.sm = new Nr(r);
4582
+ case ye.KEYVAL:
4583
+ this.sm = new Kr(r);
4584
4584
  break;
4585
- case ge.WINDOW:
4585
+ case ye.WINDOW:
4586
4586
  this.sm = new Gr(r);
4587
4587
  break;
4588
4588
  }
@@ -4609,11 +4609,11 @@ class io {
4609
4609
  */
4610
4610
  k(this, "getData", async () => {
4611
4611
  switch (this.query.type) {
4612
- case N.CLOUD:
4612
+ case K.CLOUD:
4613
4613
  return await this.getCloud();
4614
- case N.MESSAGES:
4614
+ case K.MESSAGES:
4615
4615
  return await this.getMessages();
4616
- case N.SERIES:
4616
+ case K.SERIES:
4617
4617
  return await this.getSeries();
4618
4618
  }
4619
4619
  return {
@@ -4627,11 +4627,11 @@ class io {
4627
4627
  *
4628
4628
  * @returns IResponse
4629
4629
  */
4630
- k(this, "getCloud", async () => this.query.type !== N.CLOUD ? (console.warn(
4630
+ k(this, "getCloud", async () => this.query.type !== K.CLOUD ? (console.warn(
4631
4631
  "%cstorage%c %cwidget",
4632
- w.STORAGE,
4633
- w.NONE,
4634
- w.WIDGET,
4632
+ v.STORAGE,
4633
+ v.NONE,
4634
+ v.WIDGET,
4635
4635
  this.query.widget,
4636
4636
  "Wrong method call for getCloud, expected type is",
4637
4637
  this.query.type
@@ -4645,11 +4645,11 @@ class io {
4645
4645
  *
4646
4646
  * @returns IResponse
4647
4647
  */
4648
- k(this, "getMessages", async () => this.query.type !== N.MESSAGES ? (console.warn(
4648
+ k(this, "getMessages", async () => this.query.type !== K.MESSAGES ? (console.warn(
4649
4649
  "%cstorage%c %cwidget",
4650
- w.STORAGE,
4651
- w.NONE,
4652
- w.WIDGET,
4650
+ v.STORAGE,
4651
+ v.NONE,
4652
+ v.WIDGET,
4653
4653
  this.query.widget,
4654
4654
  "Wrong method call for getMessages, expected type is",
4655
4655
  this.query.type
@@ -4659,9 +4659,9 @@ class io {
4659
4659
  success: !1
4660
4660
  }) : (console.debug(
4661
4661
  "%cstorage%c %cwidget",
4662
- w.API,
4663
- w.NONE,
4664
- w.MESSAGES,
4662
+ v.API,
4663
+ v.NONE,
4664
+ v.MESSAGES,
4665
4665
  this.query
4666
4666
  ), await this.storageReader.getMessages(this.query)));
4667
4667
  /**
@@ -4669,11 +4669,11 @@ class io {
4669
4669
  *
4670
4670
  * @returns IResponse
4671
4671
  */
4672
- k(this, "getSeries", async () => this.query.type !== N.SERIES ? (console.warn(
4672
+ k(this, "getSeries", async () => this.query.type !== K.SERIES ? (console.warn(
4673
4673
  "%cstorage%c %cwidget",
4674
- w.STORAGE,
4675
- w.NONE,
4676
- w.WIDGET,
4674
+ v.STORAGE,
4675
+ v.NONE,
4676
+ v.WIDGET,
4677
4677
  this.query.widget,
4678
4678
  "Wrong method call for getSeries, expected type is",
4679
4679
  this.query.type
@@ -4691,7 +4691,7 @@ class io {
4691
4691
  k(this, "showModal", (r) => {
4692
4692
  console.debug(
4693
4693
  "%cwidget",
4694
- w.WIDGET,
4694
+ v.WIDGET,
4695
4695
  re.SHOW_MODAL,
4696
4696
  r.showComponent,
4697
4697
  // @ts-ignore
@@ -4728,7 +4728,7 @@ class io {
4728
4728
  const r = this.query;
4729
4729
  this.broadcastChannel.onmessage = async (s) => {
4730
4730
  const l = s.data.data;
4731
- switch (console.debug(s.data.event, s.data), s.data.event) {
4731
+ switch (s.data.event) {
4732
4732
  case re.WIDGET_UPDATE:
4733
4733
  l.query.slide === r.slide && l.query.widget === r.widget && this.listeners.forEach((x) => {
4734
4734
  x(s.data);
@@ -4747,16 +4747,16 @@ class io {
4747
4747
  subscribe() {
4748
4748
  console.info(
4749
4749
  "%cwidget%c %csubscribe",
4750
- w.WIDGET,
4751
- w.NONE,
4752
- w.SUBSCRIBE,
4750
+ v.WIDGET,
4751
+ v.NONE,
4752
+ v.SUBSCRIBE,
4753
4753
  this.query.slide,
4754
4754
  this.query.widget
4755
4755
  ), console.debug(
4756
4756
  "%cwidget%c %csubscribe",
4757
- w.WIDGET,
4758
- w.NONE,
4759
- w.SUBSCRIBE,
4757
+ v.WIDGET,
4758
+ v.NONE,
4759
+ v.SUBSCRIBE,
4760
4760
  this.query
4761
4761
  ), this.broadcastChannel.postMessage({
4762
4762
  event: re.SUBSCRIBE,
@@ -4768,13 +4768,13 @@ class io {
4768
4768
  }
4769
4769
  }
4770
4770
  export {
4771
- N as API,
4771
+ K as API,
4772
4772
  ro as BuzzcastingStorageManager,
4773
4773
  Bi as BuzzcastingStorageReader,
4774
- w as CSS,
4774
+ v as CSS,
4775
4775
  re as EVENTS,
4776
4776
  Zt as MODERATION,
4777
- ge as STORAGE,
4777
+ ye as STORAGE,
4778
4778
  io as Widget,
4779
4779
  Gi as anonymize,
4780
4780
  $i as attachedMedia,