buzzcasting-storage 3.17.2 → 3.17.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var _ = /* @__PURE__ */ ((f) => (f.CARDS = "cards", f.CLOUD = "cloud", f.DASHBOARD = "dashboard", f.DASHBOARDS = "dashboards", f.IMAGES = "images", f.MESSAGES = "messages", f.PREFERENCE = "preference", f.PREFERENCES = "preferences", f.PRESENTATION = "presentation", f.PRESENTATIONS = "presentations", f.SERIES = "series", f.SLIDE = "slide", f.SLIDES = "slides", f.TOPICS = "topics", f.WIDGET = "widget", f.WIDGETS = "widgets", f))(_ || {}), o = /* @__PURE__ */ ((f) => (f.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", f.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", f.BROADCAST = "color:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", f.CLOUD = "color:purple;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", f.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", f.ERROR = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.KO = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", f.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", f.NONE = "color:transparent;background-color:transparent;", f.OK = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", f.SERIES = "color:purple;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", f.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", f.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", f.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", f.WIDGET = "color:black;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", f.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", f))(o || {}), J = /* @__PURE__ */ ((f) => (f.ADD_SLIDE = "addSlide", f.APP_READY = "appReady", f.API_UPDATE = "apiUpdate", f.BACKGROUND_UPDATE = "backgroundUpdate", f.BUILDER_PREVIEW = "builderPreview", f.COMPONENT_UPDATE = "componentUpdate", f.APPROVE_MESSAGE = "approveMessage", f.CHANNEL = "channel", f.CLEAN_MESSAGES = "cleanMessages", f.CLOSE_BUILDER_DIALOG = "closeBuilderDialog", f.CLOSE_BUILDER_MODAL = "closeBuilderModal", f.CLOSE_MODAL = "closeModal", f.COLOR_UPDATE = "colorUpdate", f.COMPONENT_INDEX = "componentIndex", f.CSS_SET = "setCss", f.CSS_STORE = "storeCss", f.DASHBOARD_LOAD = "loadDashboard", f.DASHBOARD_STORE = "storeDashboard", f.DASHBOARD_UPDATED = "dashboardUpdated", f.ERROR = "error", f.HIDE_MESSAGE = "hideMessage", f.HIDE_LABELS = "hideLabels", f.IMAGE_GET = "getImage", f.IMAGE_SET = "setImage", f.IMAGE_STORED = "imageStored", f.LAUPPUT_UPDATE = "layoutUpdate", f.PREV_SLIDE = "prevSlide", f.RELOAD_PRESENTATION = "reloadPresentation", f.STAR_MESSAGE = "starMessage", f.GOTO_SLIDE = "gotoSlide", f.NEXT_SLIDE = "nextSlide", f.PREFERENCE_LOAD = "loadPreference", f.PREFERENCE_STORE = "storePreference", f.PREFERENCE_UPDATED = "preferenceUpdated", f.PAUSE_PRESENTATION = "pausePresentation", f.PRESENTATION_READY = "presentationReady", f.PRESENTATION_LOAD = "loadPresentation", f.PRESENTATION_STORE = "storePresentation", f.PRESENTATION_UPDATED = "presentationUpdated", f.ROW_COL_UPDATE = "rowcolupdate", f.SCREENSHOT_TAKE = "takeScreenshot", f.SCREENSHOT_STORE = "storeScreenshot", f.SECTION_UPDATE = "sectionUpdate", f.SHOW_BUILDER_DIALOG = "showBuilderDialog", f.SHOW_BUILDER_MODAL = "showBuilderModal", f.SHOW_MODAL = "showModal", f.SLIDE_DID_LOAD = "slideDidLoad", f.SLIDE_GET = "getSlide", f.SLIDE_GOTO = "slideGoto", f.SLIDE_LOAD = "loadSlide", f.SLIDE_READY = "slideReady", f.SLIDE_SAVED = "slideSaved", f.SLIDE_SET = "setSlide", f.SLIDE_STORE = "storeSlide", f.SLIDE_STORED = "slideStored", f.SLIDE_TRANSITIONER = "slideTransitioner", f.SLIDE_UPDATED = "slideUpdated", f.START_TRANSITIONER = "startTransitioner", f.STORAGE_INIT = "storageInit", f.STREAM = "stream", f.SUBSCRIBE = "subscribe", f.SUSPEND_ACCOUNT = "suspendAccount", f.SWITCH_PRESENTATION = "switchPresentation", f.REMOVE_CLOUD = "removeCloud", f.UPDATE = "update", f.UPLOAD_COMPLETED = "uploadCompleted", f.VERSION = "version", f.WIDGETS_CLEAR = "widgetsClear", f.WIDGET_DID_LOAD = "widgetDidLoad", f.WIDGET_DID_UPDATE = "widgetDidUpdate", f.WIDGET_LOAD = "widgetLoad", f.WIDGET_STORE = "widgetStore", f.WIDGET_UPDATE = "widgetUpdate", f.WS_API_REQUEST = "wsApiRequest", f.WS_API_RESPONSE = "wsApiResponse", f.WS_API_UPDATE = "wsApiRUpdate", f))(J || {}), tr = /* @__PURE__ */ ((f) => (f.APPROVED = "approved", f.BEFORE = "before", f.DELAYED = "delayed", f.NONE = "none", f.REALTIME = "realtime", f))(tr || {}), pe = /* @__PURE__ */ ((f) => (f.KEYVAL = "keyval", f.LOCAL = "local", f.SESSION = "session", f.DEXIE = "dexie", f.WINDOW = "window", f))(pe || {});
1
+ var O = /* @__PURE__ */ ((f) => (f.CARDS = "cards", f.CLOUD = "cloud", f.DASHBOARD = "dashboard", f.DASHBOARDS = "dashboards", f.IMAGES = "images", f.MESSAGES = "messages", f.PREFERENCE = "preference", f.PREFERENCES = "preferences", f.PRESENTATION = "presentation", f.PRESENTATIONS = "presentations", f.SERIES = "series", f.SLIDE = "slide", f.SLIDES = "slides", f.TOPICS = "topics", f.WIDGET = "widget", f.WIDGETS = "widgets", f))(O || {}), o = /* @__PURE__ */ ((f) => (f.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", f.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", f.BROADCAST = "color:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", f.CLOUD = "color:purple;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", f.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", f.ERROR = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.KO = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", f.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", f.NONE = "color:transparent;background-color:transparent;", f.OK = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", f.SERIES = "color:purple;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", f.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", f.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", f.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", f.WIDGET = "color:black;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", f.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", f))(o || {}), J = /* @__PURE__ */ ((f) => (f.ADD_SLIDE = "addSlide", f.APP_READY = "appReady", f.API_UPDATE = "apiUpdate", f.BACKGROUND_UPDATE = "backgroundUpdate", f.BUILDER_PREVIEW = "builderPreview", f.COMPONENT_UPDATE = "componentUpdate", f.APPROVE_MESSAGE = "approveMessage", f.CHANNEL = "channel", f.CLEAN_MESSAGES = "cleanMessages", f.CLOSE_BUILDER_DIALOG = "closeBuilderDialog", f.CLOSE_BUILDER_MODAL = "closeBuilderModal", f.CLOSE_MODAL = "closeModal", f.COLOR_UPDATE = "colorUpdate", f.COMPONENT_INDEX = "componentIndex", f.CSS_SET = "setCss", f.CSS_STORE = "storeCss", f.DASHBOARD_LOAD = "loadDashboard", f.DASHBOARD_STORE = "storeDashboard", f.DASHBOARD_UPDATED = "dashboardUpdated", f.ERROR = "error", f.HIDE_MESSAGE = "hideMessage", f.HIDE_LABELS = "hideLabels", f.IMAGE_GET = "getImage", f.IMAGE_SET = "setImage", f.IMAGE_STORED = "imageStored", f.LAUPPUT_UPDATE = "layoutUpdate", f.PREV_SLIDE = "prevSlide", f.RELOAD_PRESENTATION = "reloadPresentation", f.STAR_MESSAGE = "starMessage", f.GOTO_SLIDE = "gotoSlide", f.NEXT_SLIDE = "nextSlide", f.PREFERENCE_LOAD = "loadPreference", f.PREFERENCE_STORE = "storePreference", f.PREFERENCE_UPDATED = "preferenceUpdated", f.PAUSE_PRESENTATION = "pausePresentation", f.PRESENTATION_READY = "presentationReady", f.PRESENTATION_LOAD = "loadPresentation", f.PRESENTATION_STORE = "storePresentation", f.PRESENTATION_UPDATED = "presentationUpdated", f.ROW_COL_UPDATE = "rowcolupdate", f.SCREENSHOT_TAKE = "takeScreenshot", f.SCREENSHOT_STORE = "storeScreenshot", f.SECTION_UPDATE = "sectionUpdate", f.SHOW_BUILDER_DIALOG = "showBuilderDialog", f.SHOW_BUILDER_MODAL = "showBuilderModal", f.SHOW_MODAL = "showModal", f.SLIDE_DID_LOAD = "slideDidLoad", f.SLIDE_GET = "getSlide", f.SLIDE_GOTO = "slideGoto", f.SLIDE_LOAD = "loadSlide", f.SLIDE_READY = "slideReady", f.SLIDE_SAVED = "slideSaved", f.SLIDE_SET = "setSlide", f.SLIDE_STORE = "storeSlide", f.SLIDE_STORED = "slideStored", f.SLIDE_TRANSITIONER = "slideTransitioner", f.SLIDE_UPDATED = "slideUpdated", f.START_TRANSITIONER = "startTransitioner", f.STORAGE_INIT = "storageInit", f.STREAM = "stream", f.SUBSCRIBE = "subscribe", f.SUSPEND_ACCOUNT = "suspendAccount", f.SWITCH_PRESENTATION = "switchPresentation", f.REMOVE_CLOUD = "removeCloud", f.UPDATE = "update", f.UPLOAD_COMPLETED = "uploadCompleted", f.VERSION = "version", f.WIDGETS_CLEAR = "widgetsClear", f.WIDGET_DID_LOAD = "widgetDidLoad", f.WIDGET_DID_UPDATE = "widgetDidUpdate", f.WIDGET_LOAD = "widgetLoad", f.WIDGET_STORE = "widgetStore", f.WIDGET_UPDATE = "widgetUpdate", f.WS_API_REQUEST = "wsApiRequest", f.WS_API_RESPONSE = "wsApiResponse", f.WS_API_UPDATE = "wsApiRUpdate", f))(J || {}), tr = /* @__PURE__ */ ((f) => (f.APPROVED = "approved", f.BEFORE = "before", f.DELAYED = "delayed", f.NONE = "none", f.REALTIME = "realtime", f))(tr || {}), pe = /* @__PURE__ */ ((f) => (f.KEYVAL = "keyval", f.LOCAL = "local", f.SESSION = "session", f.DEXIE = "dexie", f.WINDOW = "window", f))(pe || {});
2
2
  function Da(f) {
3
3
  const t = {};
4
4
  for (let i = 0; i < f.length; i++) {
@@ -80,11 +80,11 @@ const ka = new BroadcastChannel("logging"), G = async (f = 0, t) => {
80
80
  ka.postMessage({ action: "log", level: f, message: t });
81
81
  }, St = (f) => {
82
82
  switch (f?.type) {
83
- case _.MESSAGES:
83
+ case O.MESSAGES:
84
84
  return o.MESSAGES;
85
- case _.SERIES:
85
+ case O.SERIES:
86
86
  return o.SERIES;
87
- case _.CLOUD:
87
+ case O.CLOUD:
88
88
  return o.CLOUD;
89
89
  default:
90
90
  return o.NO_UPDATES;
@@ -118,7 +118,7 @@ function _t(f, t) {
118
118
  }
119
119
  return t;
120
120
  }
121
- const $a = "3.17.1";
121
+ const $a = "3.17.3";
122
122
  async function* ja(f) {
123
123
  const t = f.pipeThrough(new TextDecoderStream("utf-8")).getReader();
124
124
  let i = "";
@@ -175,13 +175,13 @@ class Ga {
175
175
  const b = Object.keys(g).length > 0 ? `?${new URLSearchParams(g).toString()}` : "";
176
176
  let D = "";
177
177
  switch (t.type) {
178
- case _.MESSAGES:
178
+ case O.MESSAGES:
179
179
  D = o.MESSAGES;
180
180
  break;
181
- case _.SERIES:
181
+ case O.SERIES:
182
182
  D = o.SERIES;
183
183
  break;
184
- case _.CLOUD:
184
+ case O.CLOUD:
185
185
  D = o.CLOUD;
186
186
  break;
187
187
  }
@@ -319,7 +319,7 @@ class Ga {
319
319
  o.PRESENTATION,
320
320
  t.id
321
321
  ]), await fetch(
322
- [this.url, "api", i, _.PRESENTATIONS, t.id].join("/"),
322
+ [this.url, "api", i, O.PRESENTATIONS, t.id].join("/"),
323
323
  { ...l, method: "get" }
324
324
  ).then(async (g) => {
325
325
  if (!g.ok)
@@ -342,7 +342,7 @@ class Ga {
342
342
  delete t.update;
343
343
  const g = JSON.stringify(t);
344
344
  return G(2, ["%capi%c %cput", o.API, o.NONE, o.PRESENTATION, t.name]), await fetch(
345
- [this.url, "api", i, _.PRESENTATIONS, t.id].join("/"),
345
+ [this.url, "api", i, O.PRESENTATIONS, t.id].join("/"),
346
346
  { ...l, body: g, method: "put" }
347
347
  ).then((b) => {
348
348
  if (!b.ok)
@@ -361,7 +361,7 @@ class Ga {
361
361
  o.APP,
362
362
  t.id
363
363
  ]), await fetch(
364
- [this.url, "api", i, _.PREFERENCES, t.id].join("/"),
364
+ [this.url, "api", i, O.PREFERENCES, t.id].join("/"),
365
365
  { ...l, method: "get" }
366
366
  ).then(async (g) => {
367
367
  if (!g.ok)
@@ -380,7 +380,7 @@ class Ga {
380
380
  o.APP,
381
381
  t.id
382
382
  ]), await fetch(
383
- [this.url, "api", i, _.PREFERENCES, t.id].join("/"),
383
+ [this.url, "api", i, O.PREFERENCES, t.id].join("/"),
384
384
  { ...l, body: g, method: "put" }
385
385
  ).then((b) => {
386
386
  if (!b.ok)
@@ -391,7 +391,7 @@ class Ga {
391
391
  async loadDashboards(t) {
392
392
  const { version: i } = this.options, l = this.headers();
393
393
  return G(3, ["%capi%c %cdashboards", o.API, o.NONE, o.WIDGET]), await fetch(
394
- [this.url, "api", i, _.WIDGETS, t?.id || ""].join("/"),
394
+ [this.url, "api", i, O.WIDGETS, t?.id || ""].join("/"),
395
395
  {
396
396
  ...l,
397
397
  method: "get"
@@ -416,7 +416,7 @@ class Ga {
416
416
  o.NONE,
417
417
  o.WIDGET
418
418
  ]), await fetch(
419
- `${[this.url, "api", i, _.IMAGES].join(
419
+ `${[this.url, "api", i, O.IMAGES].join(
420
420
  "/"
421
421
  )}?folder=${t}`,
422
422
  {
@@ -442,7 +442,7 @@ class Ga {
442
442
  o.WIDGET,
443
443
  t.get("name")
444
444
  ), await fetch(
445
- `${[this.url, "api", i, _.IMAGES].join(
445
+ `${[this.url, "api", i, O.IMAGES].join(
446
446
  "/"
447
447
  )}?folder=${t.get("folder")}`,
448
448
  {
@@ -465,7 +465,7 @@ class Ga {
465
465
  o.WIDGET,
466
466
  i
467
467
  ), await fetch(
468
- `${[this.url, "api", l, _.IMAGES, i].join(
468
+ `${[this.url, "api", l, O.IMAGES, i].join(
469
469
  "/"
470
470
  )}?folder=${t}`,
471
471
  { ...g, method: "delete" }
@@ -1137,14 +1137,14 @@ function Ba() {
1137
1137
  try {
1138
1138
  var p = a && a.db._novip === this.db._novip ? a === L.trans ? a._promise(e, u, n) : Ne(function() {
1139
1139
  return a._promise(e, u, n);
1140
- }, { trans: a, transless: L.transless || L }) : (function m(w, h, O, y) {
1140
+ }, { trans: a, transless: L.transless || L }) : (function m(w, h, _, y) {
1141
1141
  if (w.idbdb && (w._state.openComplete || L.letThrough || w._vip)) {
1142
- var v = w._createTransaction(h, O, w._dbSchema);
1142
+ var v = w._createTransaction(h, _, w._dbSchema);
1143
1143
  try {
1144
1144
  v.create(), w._state.PR1398_maxLoop = 3;
1145
1145
  } catch (E) {
1146
1146
  return E.name === or.InvalidState && w.isOpen() && 0 < --w._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), w.close({ disableAutoOpen: !1 }), w.open().then(function() {
1147
- return m(w, h, O, y);
1147
+ return m(w, h, _, y);
1148
1148
  })) : q(E);
1149
1149
  }
1150
1150
  return v._promise(h, function(E, S) {
@@ -1167,7 +1167,7 @@ function Ba() {
1167
1167
  w.open().catch(X);
1168
1168
  }
1169
1169
  return w._state.dbReadyPromise.then(function() {
1170
- return m(w, h, O, y);
1170
+ return m(w, h, _, y);
1171
1171
  });
1172
1172
  })(this.db, e, [this.name], u);
1173
1173
  return c && (p._consoleTask = c, p = p.catch(function(m) {
@@ -1211,13 +1211,13 @@ function Ba() {
1211
1211
  return V(d, p) === 0;
1212
1212
  }
1213
1213
  var u = r.reduce(function(h, p) {
1214
- var m = h[0], w = h[1], h = a[p], O = e[p];
1214
+ var m = h[0], w = h[1], h = a[p], _ = e[p];
1215
1215
  return [m || h, m || !h ? We(w, h && h.multi ? function(y) {
1216
1216
  return y = ve(y, p), x(y) && y.some(function(v) {
1217
- return s(O, v);
1217
+ return s(_, v);
1218
1218
  });
1219
1219
  } : function(y) {
1220
- return s(O, ve(y, p));
1220
+ return s(_, ve(y, p));
1221
1221
  }) : w];
1222
1222
  }, [null, null]), c = u[0], u = u[1];
1223
1223
  return c ? this.where(c.name).equals(e[c.keyPath]).filter(u) : n ? this.filter(u) : this.where(r).equals("");
@@ -1345,8 +1345,8 @@ function Ba() {
1345
1345
  if (s && s.length !== e.length) throw new B.InvalidArgument("Arguments objects and keys must have the same length");
1346
1346
  var p = e.length, m = m && d ? e.map(Mt(m)) : e;
1347
1347
  return a.core.mutate({ trans: u, type: "add", keys: s, values: m, wantResults: c }).then(function(v) {
1348
- var h = v.numFailures, O = v.results, y = v.lastResult, v = v.failures;
1349
- if (h === 0) return c ? O : y;
1348
+ var h = v.numFailures, _ = v.results, y = v.lastResult, v = v.failures;
1349
+ if (h === 0) return c ? _ : y;
1350
1350
  throw new Qe("".concat(a.name, ".bulkAdd(): ").concat(h, " of ").concat(p, " operations failed"), v);
1351
1351
  });
1352
1352
  });
@@ -1358,8 +1358,8 @@ function Ba() {
1358
1358
  if (s && s.length !== e.length) throw new B.InvalidArgument("Arguments objects and keys must have the same length");
1359
1359
  var p = e.length, m = m && d ? e.map(Mt(m)) : e;
1360
1360
  return a.core.mutate({ trans: u, type: "put", keys: s, values: m, wantResults: c }).then(function(v) {
1361
- var h = v.numFailures, O = v.results, y = v.lastResult, v = v.failures;
1362
- if (h === 0) return c ? O : y;
1361
+ var h = v.numFailures, _ = v.results, y = v.lastResult, v = v.failures;
1362
+ if (h === 0) return c ? _ : y;
1363
1363
  throw new Qe("".concat(a.name, ".bulkPut(): ").concat(h, " of ").concat(p, " operations failed"), v);
1364
1364
  });
1365
1365
  });
@@ -1372,8 +1372,8 @@ function Ba() {
1372
1372
  return this._trans("readwrite", function(u) {
1373
1373
  return n.getMany({ trans: u, keys: a, cache: "clone" }).then(function(d) {
1374
1374
  var p = [], m = [];
1375
- e.forEach(function(h, O) {
1376
- var y = h.key, v = h.changes, E = d[O];
1375
+ e.forEach(function(h, _) {
1376
+ var y = h.key, v = h.changes, E = d[_];
1377
1377
  if (E) {
1378
1378
  for (var S = 0, A = Object.keys(v); S < A.length; S++) {
1379
1379
  var P = A[S], N = v[P];
@@ -1381,18 +1381,18 @@ function Ba() {
1381
1381
  if (V(N, y) !== 0) throw new B.Constraint("Cannot update primary key in bulkUpdate()");
1382
1382
  } else le(E, P, N);
1383
1383
  }
1384
- c.push(O), p.push(y), m.push(E);
1384
+ c.push(_), p.push(y), m.push(E);
1385
1385
  }
1386
1386
  });
1387
1387
  var w = p.length;
1388
1388
  return n.mutate({ trans: u, type: "put", keys: p, values: m, updates: { keys: a, changeSpecs: s } }).then(function(h) {
1389
- var O = h.numFailures, y = h.failures;
1390
- if (O === 0) return w;
1389
+ var _ = h.numFailures, y = h.failures;
1390
+ if (_ === 0) return w;
1391
1391
  for (var v = 0, E = Object.keys(y); v < E.length; v++) {
1392
1392
  var S, A = E[v], P = c[Number(A)];
1393
1393
  P != null && (S = y[A], delete y[A], y[P] = S);
1394
1394
  }
1395
- throw new Qe("".concat(r.name, ".bulkUpdate(): ").concat(O, " of ").concat(w, " operations failed"), y);
1395
+ throw new Qe("".concat(r.name, ".bulkUpdate(): ").concat(_, " of ").concat(w, " operations failed"), y);
1396
1396
  });
1397
1397
  });
1398
1398
  });
@@ -1429,17 +1429,17 @@ function Ba() {
1429
1429
  var w = { subscribers: [], fire: p = p || X, subscribe: function(h) {
1430
1430
  w.subscribers.indexOf(h) === -1 && (w.subscribers.push(h), w.fire = d(w.fire, h));
1431
1431
  }, unsubscribe: function(h) {
1432
- w.subscribers = w.subscribers.filter(function(O) {
1433
- return O !== h;
1432
+ w.subscribers = w.subscribers.filter(function(_) {
1433
+ return _ !== h;
1434
1434
  }), w.fire = w.subscribers.reduce(d, p);
1435
1435
  } };
1436
1436
  return n[u] = r[u] = w;
1437
1437
  }
1438
1438
  D(m = u).forEach(function(h) {
1439
- var O = m[h];
1440
- if (x(O)) c(h, m[h][0], m[h][1]);
1439
+ var _ = m[h];
1440
+ if (x(_)) c(h, m[h][0], m[h][1]);
1441
1441
  else {
1442
- if (O !== "asap") throw new B.InvalidArgument("Invalid event config");
1442
+ if (_ !== "asap") throw new B.InvalidArgument("Invalid event config");
1443
1443
  var y = c(h, ct, function() {
1444
1444
  for (var v = arguments.length, E = new Array(v); v--; ) E[v] = arguments[v];
1445
1445
  y.subscribers.forEach(function(S) {
@@ -1482,10 +1482,10 @@ function Ba() {
1482
1482
  if (e.or) {
1483
1483
  var c = {}, u = function(d, p, m) {
1484
1484
  var w, h;
1485
- s && !s(p, m, function(O) {
1486
- return p.stop(O);
1487
- }, function(O) {
1488
- return p.fail(O);
1485
+ s && !s(p, m, function(_) {
1486
+ return p.stop(_);
1487
+ }, function(_) {
1488
+ return p.fail(_);
1489
1489
  }) || ((h = "" + (w = p.primaryKey)) == "[object ArrayBuffer]" && (h = "" + new Uint8Array(w)), re(c, h) || (c[h] = !0, r(d, p, m)));
1490
1490
  };
1491
1491
  return Promise.all([e.or._iterate(u, n), mn(pn(e, a, n), e.algorithm, u, !e.keysOnly && e.valueMapper)]);
@@ -1683,13 +1683,13 @@ function Ba() {
1683
1683
  m && (p = typeof m == "object" ? m[c.name] || m["*"] || 200 : m);
1684
1684
  function w(E, P) {
1685
1685
  var A = P.failures, P = P.numFailures;
1686
- O += E - P;
1686
+ _ += E - P;
1687
1687
  for (var N = 0, I = D(A); N < I.length; N++) {
1688
1688
  var R = I[N];
1689
1689
  h.push(A[R]);
1690
1690
  }
1691
1691
  }
1692
- var h = [], O = 0, y = [], v = e === yn;
1692
+ var h = [], _ = 0, y = [], v = e === yn;
1693
1693
  return r.clone().primaryKeys().then(function(E) {
1694
1694
  function S(P) {
1695
1695
  var N = Math.min(p, E.length - P), I = E.slice(P, P + N);
@@ -1719,7 +1719,7 @@ function Ba() {
1719
1719
  }
1720
1720
  var A = tt(n) && n.limit === 1 / 0 && (typeof e != "function" || v) && { index: n.index, range: n.range };
1721
1721
  return S(0).then(function() {
1722
- if (0 < h.length) throw new Nt("Error modifying one or more objects", h, O, y);
1722
+ if (0 < h.length) throw new Nt("Error modifying one or more objects", h, _, y);
1723
1723
  return E.length;
1724
1724
  });
1725
1725
  });
@@ -1763,7 +1763,7 @@ function Ba() {
1763
1763
  if (!n.every(function(v) {
1764
1764
  return typeof v == "string";
1765
1765
  })) return de(e, on);
1766
- function O(v) {
1766
+ function _(v) {
1767
1767
  s = v === "next" ? function(S) {
1768
1768
  return S.toUpperCase();
1769
1769
  } : function(S) {
@@ -1784,10 +1784,10 @@ function Ba() {
1784
1784
  return S.lower;
1785
1785
  }), w = (m = v) === "next" ? "" : a;
1786
1786
  }
1787
- O("next"), e = new e.Collection(e, function() {
1787
+ _("next"), e = new e.Collection(e, function() {
1788
1788
  return Te(d[0], p[h - 1] + a);
1789
1789
  }), e._ondirectionchange = function(v) {
1790
- O(v);
1790
+ _(v);
1791
1791
  };
1792
1792
  var y = 0;
1793
1793
  return e._addAlgorithm(function(v, E, S) {
@@ -1912,7 +1912,7 @@ function Ba() {
1912
1912
  return P[0] !== void 0 && P[1] !== void 0 && s(P[0], P[1]) <= 0;
1913
1913
  })) 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", B.InvalidArgument);
1914
1914
  var p = !r || r.includeLowers !== !1, m = r && r.includeUppers === !0, w, h = s;
1915
- function O(P, N) {
1915
+ function _(P, N) {
1916
1916
  return h(P[0], N[0]);
1917
1917
  }
1918
1918
  try {
@@ -1925,7 +1925,7 @@ function Ba() {
1925
1925
  }
1926
1926
  }
1927
1927
  return I === R && P.push(N), P;
1928
- }, [])).sort(O);
1928
+ }, [])).sort(_);
1929
1929
  } catch {
1930
1930
  return de(this, we);
1931
1931
  }
@@ -1941,7 +1941,7 @@ function Ba() {
1941
1941
  return Te(w[0][0], w[w.length - 1][1], !p, !m);
1942
1942
  });
1943
1943
  return A._ondirectionchange = function(P) {
1944
- h = P === "next" ? (S = v, s) : (S = E, c), w.sort(O);
1944
+ h = P === "next" ? (S = v, s) : (S = E, c), w.sort(_);
1945
1945
  }, A._addAlgorithm(function(P, N, I) {
1946
1946
  for (var R, $ = P.key; S($); ) if (++y === w.length) return N(I), !1;
1947
1947
  return !v(R = $) && !E(R) || (n._cmp($, w[y][1]) === 0 || n._cmp($, w[y][0]) === 0 || N(function() {
@@ -2104,9 +2104,9 @@ function Ba() {
2104
2104
  var y = S.lower, v = S.upper, E = S.lowerOpen, S = S.upperOpen;
2105
2105
  return y === void 0 ? v === void 0 ? null : r.upperBound(v, !!S) : v === void 0 ? r.lowerBound(y, !!E) : r.bound(y, v, !!E, !!S);
2106
2106
  }
2107
- function s(O) {
2108
- var y, v = O.name;
2109
- return { name: v, schema: O, mutate: function(E) {
2107
+ function s(_) {
2108
+ var y, v = _.name;
2109
+ return { name: v, schema: _, mutate: function(E) {
2110
2110
  var S = E.trans, A = E.type, P = E.keys, N = E.values, I = E.range;
2111
2111
  return new Promise(function(R, $) {
2112
2112
  R = Z(R);
@@ -2218,11 +2218,11 @@ function Ba() {
2218
2218
  });
2219
2219
  } };
2220
2220
  }
2221
- var c, u, d, w = (u = p, d = wn((c = e).objectStoreNames), { schema: { name: c.name, tables: d.map(function(O) {
2222
- return u.objectStore(O);
2223
- }).map(function(O) {
2224
- var y = O.keyPath, S = O.autoIncrement, v = x(y), E = {}, S = { name: O.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: y == null, compound: v, keyPath: y, autoIncrement: S, unique: !0, extractKey: Or(y) }, indexes: wn(O.indexNames).map(function(A) {
2225
- return O.index(A);
2221
+ var c, u, d, w = (u = p, d = wn((c = e).objectStoreNames), { schema: { name: c.name, tables: d.map(function(_) {
2222
+ return u.objectStore(_);
2223
+ }).map(function(_) {
2224
+ var y = _.keyPath, S = _.autoIncrement, v = x(y), E = {}, S = { name: _.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: y == null, compound: v, keyPath: y, autoIncrement: S, unique: !0, extractKey: Or(y) }, indexes: wn(_.indexNames).map(function(A) {
2225
+ return _.index(A);
2226
2226
  }).map(function(I) {
2227
2227
  var P = I.name, N = I.unique, R = I.multiEntry, I = I.keyPath, R = { name: P, compound: x(I), keyPath: I, unique: N, multiEntry: R, extractKey: Or(I) };
2228
2228
  return E[vt(I)] = R;
@@ -2231,11 +2231,11 @@ function Ba() {
2231
2231
  } };
2232
2232
  return E[":id"] = S.primaryKey, y != null && (E[vt(y)] = S.primaryKey), S;
2233
2233
  }) }, hasGetAll: 0 < d.length && "getAll" in u.objectStore(d[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) }), p = w.schema, m = w.hasGetAll, w = p.tables.map(s), h = {};
2234
- return w.forEach(function(O) {
2235
- return h[O.name] = O;
2236
- }), { stack: "dbcore", transaction: e.transaction.bind(e), table: function(O) {
2237
- if (!h[O]) throw new Error("Table '".concat(O, "' not found"));
2238
- return h[O];
2234
+ return w.forEach(function(_) {
2235
+ return h[_.name] = _;
2236
+ }), { stack: "dbcore", transaction: e.transaction.bind(e), table: function(_) {
2237
+ if (!h[_]) throw new Error("Table '".concat(_, "' not found"));
2238
+ return h[_];
2239
2239
  }, MIN_KEY: -1 / 0, MAX_KEY: bt(r), schema: p };
2240
2240
  }
2241
2241
  function ga(e, r, n, a) {
@@ -2286,8 +2286,8 @@ function Ba() {
2286
2286
  return L.trans = c, L.transless = d, r !== 0 ? (Wt(e, n), m = r, ((p = c).storeNames.includes("$meta") ? p.table("$meta").get("version").then(function(w) {
2287
2287
  return w ?? m;
2288
2288
  }) : M.resolve(m)).then(function(w) {
2289
- return O = w, y = c, v = n, E = [], w = (h = e)._versions, S = h._dbSchema = Vt(0, h.idbdb, v), (w = w.filter(function(A) {
2290
- return A._cfg.version >= O;
2289
+ return _ = w, y = c, v = n, E = [], w = (h = e)._versions, S = h._dbSchema = Vt(0, h.idbdb, v), (w = w.filter(function(A) {
2290
+ return A._cfg.version >= _;
2291
2291
  })).length !== 0 ? (w.forEach(function(A) {
2292
2292
  E.push(function() {
2293
2293
  var P = S, N = A._cfg.dbschema;
@@ -2307,7 +2307,7 @@ function Ba() {
2307
2307
  });
2308
2308
  });
2309
2309
  var R = A._cfg.contentUpgrade;
2310
- if (R && A._cfg.version > O) {
2310
+ if (R && A._cfg.version > _) {
2311
2311
  Wt(h, v), y._memoizedTables = {};
2312
2312
  var $ = Xr(N);
2313
2313
  I.del.forEach(function(j) {
@@ -2336,7 +2336,7 @@ function Ba() {
2336
2336
  })().then(function() {
2337
2337
  Sn(S, v);
2338
2338
  })) : M.resolve();
2339
- var h, O, y, v, E, S;
2339
+ var h, _, y, v, E, S;
2340
2340
  }).catch(u)) : (D(s).forEach(function(w) {
2341
2341
  Pr(n, w, s[w].primKey, s[w].indexes);
2342
2342
  }), Wt(e, n), void M.follow(function() {
@@ -2573,10 +2573,10 @@ function Ba() {
2573
2573
  function Nn(e, r, n, a) {
2574
2574
  for (var s = [], c = 0, u = Object.entries(e.queries.query); c < u.length; c++) {
2575
2575
  for (var d = u[c], p = d[0], m = [], w = 0, h = d[1]; w < h.length; w++) {
2576
- var O = h[w];
2577
- Rr(r, O.obsSet) ? O.subscribers.forEach(function(S) {
2576
+ var _ = h[w];
2577
+ Rr(r, _.obsSet) ? _.subscribers.forEach(function(S) {
2578
2578
  return n.add(S);
2579
- }) : a && m.push(O);
2579
+ }) : a && m.push(_);
2580
2580
  }
2581
2581
  a && s.push([p, m]);
2582
2582
  }
@@ -2596,7 +2596,7 @@ function Ba() {
2596
2596
  if (r.openCanceller !== a) throw new B.DatabaseClosed("db.open() was cancelled");
2597
2597
  }
2598
2598
  function d() {
2599
- return new M(function(O, y) {
2599
+ return new M(function(_, y) {
2600
2600
  if (u(), !n) throw new B.MissingAPI();
2601
2601
  var v = e.name, E = r.autoSchema || !s ? n.open(v) : n.open(v, s);
2602
2602
  if (!E) throw new B.MissingAPI();
@@ -2613,7 +2613,7 @@ function Ba() {
2613
2613
  if (r.autoSchema) A = R, P = T, (S = e).verno = A.version / 10, P = S._dbSchema = Vt(0, A, P), S._storeNames = Pt(A.objectStoreNames, 0), Ft(S, [S._allTables], D(P), P);
2614
2614
  else if (zt(e, e._dbSchema, T), ((I = Ar(Vt(0, (I = e).idbdb, T), I._dbSchema)).add.length || I.change.some(function(k) {
2615
2615
  return k.add.length || k.change.length;
2616
- })) && !c) 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."), R.close(), s = R.version + 1, c = !0, O(d());
2616
+ })) && !c) 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."), R.close(), s = R.version + 1, c = !0, _(d());
2617
2617
  Wt(e, T);
2618
2618
  } catch {
2619
2619
  }
@@ -2621,23 +2621,23 @@ function Ba() {
2621
2621
  r.vcFired = !0, e.on("versionchange").fire(k);
2622
2622
  }), R.onclose = Z(function() {
2623
2623
  e.close({ disableAutoOpen: !1 });
2624
- }), h && (I = e._deps, T = v, R = I.indexedDB, I = I.IDBKeyRange, Dr(R) || T === Gt || Nr(R, I).put({ name: T }).catch(X)), O();
2624
+ }), h && (I = e._deps, T = v, R = I.indexedDB, I = I.IDBKeyRange, Dr(R) || T === Gt || Nr(R, I).put({ name: T }).catch(X)), _();
2625
2625
  }, y);
2626
- }).catch(function(O) {
2627
- switch (O?.name) {
2626
+ }).catch(function(_) {
2627
+ switch (_?.name) {
2628
2628
  case "UnknownError":
2629
2629
  if (0 < r.PR1398_maxLoop) return r.PR1398_maxLoop--, console.warn("Dexie: Workaround for Chrome UnknownError on open()"), d();
2630
2630
  break;
2631
2631
  case "VersionError":
2632
2632
  if (0 < s) return s = 0, d();
2633
2633
  }
2634
- return M.reject(O);
2634
+ return M.reject(_);
2635
2635
  });
2636
2636
  }
2637
2637
  var p, m = r.dbReadyResolve, w = null, h = !1;
2638
- return M.race([a, (typeof navigator > "u" ? M.resolve() : !navigator.userAgentData && /Safari\//.test(navigator.userAgent) && !/Chrom(e|ium)\//.test(navigator.userAgent) && indexedDB.databases ? new Promise(function(O) {
2638
+ return M.race([a, (typeof navigator > "u" ? M.resolve() : !navigator.userAgentData && /Safari\//.test(navigator.userAgent) && !/Chrom(e|ium)\//.test(navigator.userAgent) && indexedDB.databases ? new Promise(function(_) {
2639
2639
  function y() {
2640
- return indexedDB.databases().finally(O);
2640
+ return indexedDB.databases().finally(_);
2641
2641
  }
2642
2642
  p = setInterval(y, 100), y();
2643
2643
  }).finally(function() {
@@ -2645,32 +2645,32 @@ function Ba() {
2645
2645
  }) : Promise.resolve()).then(d)]).then(function() {
2646
2646
  return u(), r.onReadyBeingFired = [], M.resolve(Ir(function() {
2647
2647
  return e.on.ready.fire(e.vip);
2648
- })).then(function O() {
2648
+ })).then(function _() {
2649
2649
  if (0 < r.onReadyBeingFired.length) {
2650
2650
  var y = r.onReadyBeingFired.reduce(ir, X);
2651
2651
  return r.onReadyBeingFired = [], M.resolve(Ir(function() {
2652
2652
  return y(e.vip);
2653
- })).then(O);
2653
+ })).then(_);
2654
2654
  }
2655
2655
  });
2656
2656
  }).finally(function() {
2657
2657
  r.openCanceller === a && (r.onReadyBeingFired = null, r.isBeingOpened = !1);
2658
- }).catch(function(O) {
2659
- r.dbOpenError = O;
2658
+ }).catch(function(_) {
2659
+ r.dbOpenError = _;
2660
2660
  try {
2661
2661
  w && w.abort();
2662
2662
  } catch {
2663
2663
  }
2664
- return a === r.openCanceller && e._close(), q(O);
2664
+ return a === r.openCanceller && e._close(), q(_);
2665
2665
  }).finally(function() {
2666
2666
  r.openComplete = !0, m();
2667
2667
  }).then(function() {
2668
- var O;
2669
- return h && (O = {}, e.tables.forEach(function(y) {
2668
+ var _;
2669
+ return h && (_ = {}, e.tables.forEach(function(y) {
2670
2670
  y.schema.indexes.forEach(function(v) {
2671
- v.name && (O["idb://".concat(e.name, "/").concat(y.name, "/").concat(v.name)] = new oe(-1 / 0, [[[]]]));
2672
- }), O["idb://".concat(e.name, "/").concat(y.name, "/")] = O["idb://".concat(e.name, "/").concat(y.name, "/:dels")] = new oe(-1 / 0, [[[]]]);
2673
- }), Re(yt).fire(O), Cr(O, !0)), e;
2671
+ v.name && (_["idb://".concat(e.name, "/").concat(y.name, "/").concat(v.name)] = new oe(-1 / 0, [[[]]]));
2672
+ }), _["idb://".concat(e.name, "/").concat(y.name, "/")] = _["idb://".concat(e.name, "/").concat(y.name, "/:dels")] = new oe(-1 / 0, [[[]]]);
2673
+ }), Re(yt).fire(_), Cr(_, !0)), e;
2674
2674
  });
2675
2675
  }
2676
2676
  function $r(e) {
@@ -2695,9 +2695,9 @@ function Ba() {
2695
2695
  var Ea = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create: function(e) {
2696
2696
  return l(l({}, e), { table: function(r) {
2697
2697
  var n = e.table(r), a = n.schema, s = {}, c = [];
2698
- function u(h, O, y) {
2699
- var v = vt(h), E = s[v] = s[v] || [], S = h == null ? 0 : typeof h == "string" ? 1 : h.length, A = 0 < O, A = l(l({}, y), { name: A ? "".concat(v, "(virtual-from:").concat(y.name, ")") : y.name, lowLevelIndex: y, isVirtual: A, keyTail: O, keyLength: S, extractKey: Or(h), unique: !A && y.unique });
2700
- return E.push(A), A.isPrimaryKey || c.push(A), 1 < S && u(S === 2 ? h[0] : h.slice(0, S - 1), O + 1, y), E.sort(function(P, N) {
2698
+ function u(h, _, y) {
2699
+ var v = vt(h), E = s[v] = s[v] || [], S = h == null ? 0 : typeof h == "string" ? 1 : h.length, A = 0 < _, A = l(l({}, y), { name: A ? "".concat(v, "(virtual-from:").concat(y.name, ")") : y.name, lowLevelIndex: y, isVirtual: A, keyTail: _, keyLength: S, extractKey: Or(h), unique: !A && y.unique });
2700
+ return E.push(A), A.isPrimaryKey || c.push(A), 1 < S && u(S === 2 ? h[0] : h.slice(0, S - 1), _ + 1, y), E.sort(function(P, N) {
2701
2701
  return P.keyTail - N.keyTail;
2702
2702
  }), A;
2703
2703
  }
@@ -2707,8 +2707,8 @@ function Ba() {
2707
2707
  u(m.keyPath, 0, m);
2708
2708
  }
2709
2709
  function w(h) {
2710
- var O, y = h.query.index;
2711
- return y.isVirtual ? l(l({}, h), { query: { index: y.lowLevelIndex, range: (O = h.query.range, y = y.keyTail, { type: O.type === 1 ? 2 : O.type, lower: Jt(O.lower, O.lowerOpen ? e.MAX_KEY : e.MIN_KEY, y), lowerOpen: !0, upper: Jt(O.upper, O.upperOpen ? e.MIN_KEY : e.MAX_KEY, y), upperOpen: !0 }) } }) : h;
2710
+ var _, y = h.query.index;
2711
+ return y.isVirtual ? l(l({}, h), { query: { index: y.lowLevelIndex, range: (_ = h.query.range, y = y.keyTail, { type: _.type === 1 ? 2 : _.type, lower: Jt(_.lower, _.lowerOpen ? e.MAX_KEY : e.MIN_KEY, y), lowerOpen: !0, upper: Jt(_.upper, _.upperOpen ? e.MIN_KEY : e.MAX_KEY, y), upperOpen: !0 }) } }) : h;
2712
2712
  }
2713
2713
  return l(l({}, n), { schema: l(l({}, a), { primaryKey: r, indexes: c, getIndexByKeyPath: function(h) {
2714
2714
  return (h = s[vt(h)]) && h[0];
@@ -2717,7 +2717,7 @@ function Ba() {
2717
2717
  }, query: function(h) {
2718
2718
  return n.query(w(h));
2719
2719
  }, openCursor: function(h) {
2720
- var O = h.query.index, y = O.keyTail, v = O.isVirtual, E = O.keyLength;
2720
+ var _ = h.query.index, y = _.keyTail, v = _.isVirtual, E = _.keyLength;
2721
2721
  return v ? n.openCursor(w(h)).then(function(A) {
2722
2722
  return A && S(A);
2723
2723
  }) : n.openCursor(h);
@@ -2773,11 +2773,11 @@ function Ba() {
2773
2773
  case "deleteRange":
2774
2774
  if (d.fire === X) break;
2775
2775
  return c._promise("readwrite", function() {
2776
- return (function h(O, y, v) {
2777
- return n.query({ trans: O, values: !1, query: { index: a, range: y }, limit: v }).then(function(E) {
2776
+ return (function h(_, y, v) {
2777
+ return n.query({ trans: _, values: !1, query: { index: a, range: y }, limit: v }).then(function(E) {
2778
2778
  var S = E.result;
2779
- return w({ type: "delete", keys: S, trans: O }).then(function(A) {
2780
- return 0 < A.numFailures ? Promise.reject(A.failures[0]) : S.length < v ? { failures: [], numFailures: 0, lastResult: void 0 } : h(O, l(l({}, y), { lower: S[S.length - 1], lowerOpen: !0 }), v);
2779
+ return w({ type: "delete", keys: S, trans: _ }).then(function(A) {
2780
+ return 0 < A.numFailures ? Promise.reject(A.failures[0]) : S.length < v ? { failures: [], numFailures: 0, lastResult: void 0 } : h(_, l(l({}, y), { lower: S[S.length - 1], lowerOpen: !0 }), v);
2781
2781
  });
2782
2782
  });
2783
2783
  })(s.trans, s.range, 1e4);
@@ -2785,9 +2785,9 @@ function Ba() {
2785
2785
  }
2786
2786
  return n.mutate(s);
2787
2787
  function w(h) {
2788
- var O, y, v, E = L.trans, S = h.keys || Gr(a, h);
2788
+ var _, y, v, E = L.trans, S = h.keys || Gr(a, h);
2789
2789
  if (!S) throw new Error("Keys missing");
2790
- return (h = h.type === "add" || h.type === "put" ? l(l({}, h), { keys: S }) : l({}, h)).type !== "delete" && (h.values = g([], h.values)), h.keys && (h.keys = g([], h.keys)), O = n, v = S, ((y = h).type === "add" ? Promise.resolve([]) : O.getMany({ trans: y.trans, keys: v, cache: "immutable" })).then(function(A) {
2790
+ return (h = h.type === "add" || h.type === "put" ? l(l({}, h), { keys: S }) : l({}, h)).type !== "delete" && (h.values = g([], h.values)), h.keys && (h.keys = g([], h.keys)), _ = n, v = S, ((y = h).type === "add" ? Promise.resolve([]) : _.getMany({ trans: y.trans, keys: v, cache: "immutable" })).then(function(A) {
2791
2791
  var P = S.map(function(N, I) {
2792
2792
  var R, $, T, k = A[I], j = { onerror: null, onsuccess: null };
2793
2793
  return h.type === "delete" ? d.fire.call(j, N, k, E) : h.type === "add" || k === void 0 ? (R = p.fire.call(j, N, h.values[I], E), N == null && R != null && (h.keys[I] = N = R, a.outbound || le(h.values[I], a.keyPath, N))) : (R = jr(k, h.values[I]), ($ = m.fire.call(j, R, N, k, E)) && (T = h.values[I], Object.keys($).forEach(function(C) {
@@ -2891,18 +2891,18 @@ function Ba() {
2891
2891
  } }), h = function(v) {
2892
2892
  var E = v.query, v = E.index, E = E.range;
2893
2893
  return [v, new oe((v = E.lower) !== null && v !== void 0 ? v : e.MIN_KEY, (E = E.upper) !== null && E !== void 0 ? E : e.MAX_KEY)];
2894
- }, O = { get: function(y) {
2894
+ }, _ = { get: function(y) {
2895
2895
  return [u, new oe(y.key)];
2896
2896
  }, getMany: function(y) {
2897
2897
  return [u, new oe().addKeys(y.keys)];
2898
2898
  }, count: h, query: h, openCursor: h };
2899
- return D(O).forEach(function(y) {
2899
+ return D(_).forEach(function(y) {
2900
2900
  w[y] = function(v) {
2901
2901
  var E = L.subscr, S = !!E, A = In(L, s) && Tn(y, v) ? v.obsSet = {} : E;
2902
2902
  if (S) {
2903
2903
  var P = function(k) {
2904
2904
  return k = "idb://".concat(r, "/").concat(a, "/").concat(k), A[k] || (A[k] = new oe());
2905
- }, N = P(""), I = P(":dels"), E = O[y](v), S = E[0], E = E[1];
2905
+ }, N = P(""), I = P(":dels"), E = _[y](v), S = E[0], E = E[1];
2906
2906
  if ((y === "query" && S.isPrimaryKey && !v.values ? I : P(S.name || "")).add(E), !S.isPrimaryKey) {
2907
2907
  if (y !== "count") {
2908
2908
  var R = y === "query" && p && v.values && s.query(l(l({}, v), { values: !1 }));
@@ -2949,9 +2949,9 @@ function Ba() {
2949
2949
  return n = e, ((a = r).lower === void 0 || (a.lowerOpen ? 0 < V(n, a.lower) : 0 <= V(n, a.lower))) && (e = e, (r = r).upper === void 0 || (r.upperOpen ? V(e, r.upper) < 0 : V(e, r.upper) <= 0));
2950
2950
  var n, a;
2951
2951
  }
2952
- function xn(e, r, O, a, s, c) {
2953
- if (!O || O.length === 0) return e;
2954
- var u = r.query.index, d = u.multiEntry, p = r.query.range, m = a.schema.primaryKey.extractKey, w = u.extractKey, h = (u.lowLevelIndex || u).extractKey, O = O.reduce(function(y, v) {
2952
+ function xn(e, r, _, a, s, c) {
2953
+ if (!_ || _.length === 0) return e;
2954
+ var u = r.query.index, d = u.multiEntry, p = r.query.range, m = a.schema.primaryKey.extractKey, w = u.extractKey, h = (u.lowLevelIndex || u).extractKey, _ = _.reduce(function(y, v) {
2955
2955
  var E = y, S = [];
2956
2956
  if (v.type === "add" || v.type === "put") for (var A = new oe(), P = v.values.length - 1; 0 <= P; --P) {
2957
2957
  var N, I = v.values[P], R = m(I);
@@ -2995,9 +2995,9 @@ function Ba() {
2995
2995
  }
2996
2996
  return E;
2997
2997
  }, e);
2998
- return O === e ? e : (O.sort(function(y, v) {
2998
+ return _ === e ? e : (_.sort(function(y, v) {
2999
2999
  return V(h(y), h(v)) || V(m(y), m(v));
3000
- }), r.limit && r.limit < 1 / 0 && (O.length > r.limit ? O.length = r.limit : e.length === r.limit && O.length < r.limit && (s.dirty = !0)), c ? Object.freeze(O) : O);
3000
+ }), r.limit && r.limit < 1 / 0 && (_.length > r.limit ? _.length = r.limit : e.length === r.limit && _.length < r.limit && (s.dirty = !0)), c ? Object.freeze(_) : _);
3001
3001
  }
3002
3002
  function kn(e, r) {
3003
3003
  return V(e.lower, r.lower) === 0 && V(e.upper, r.upper) === 0 && !!e.lowerOpen == !!r.lowerOpen && !!e.upperOpen == !!r.upperOpen;
@@ -3039,9 +3039,9 @@ function Ba() {
3039
3039
  return function() {
3040
3040
  if (c.abort(), a === "readwrite") {
3041
3041
  for (var m = /* @__PURE__ */ new Set(), w = 0, h = n; w < h.length; w++) {
3042
- var O = h[w], y = Fe["idb://".concat(r, "/").concat(O)];
3042
+ var _ = h[w], y = Fe["idb://".concat(r, "/").concat(_)];
3043
3043
  if (y) {
3044
- var v = e.table(O), E = y.optimisticOps.filter(function(K) {
3044
+ var v = e.table(_), E = y.optimisticOps.filter(function(K) {
3045
3045
  return K.trans === d;
3046
3046
  });
3047
3047
  if (d._explicit && p && d.mutatedParts) for (var S = 0, A = Object.values(y.queries.query); S < A.length; S++) for (var P = 0, N = ($ = A[S]).slice(); P < N.length; P++) Rr((T = N[P]).obsSet, d.mutatedParts) && ($e($, T), T.subscribers.forEach(function(K) {
@@ -3079,8 +3079,8 @@ function Ba() {
3079
3079
  $e(d.optimisticOps, c), c.mutatedParts && Qt(c.mutatedParts);
3080
3080
  })) : u.then(function(p) {
3081
3081
  var m = Rn(0, l(l({}, c), { values: c.values.map(function(w, h) {
3082
- var O;
3083
- return p.failures[h] ? w : (w = (O = s.keyPath) !== null && O !== void 0 && O.includes(".") ? Ce(w) : l({}, w), le(w, s.keyPath, p.results[h]), w);
3082
+ var _;
3083
+ return p.failures[h] ? w : (w = (_ = s.keyPath) !== null && _ !== void 0 && _.includes(".") ? Ce(w) : l({}, w), le(w, s.keyPath, p.results[h]), w);
3084
3084
  }) }), p);
3085
3085
  d.optimisticOps.push(m), queueMicrotask(function() {
3086
3086
  return c.mutatedParts && Qt(c.mutatedParts);
@@ -3107,7 +3107,7 @@ function Ba() {
3107
3107
  return kn(R.req.query.range, A.query.range);
3108
3108
  }), [I, !!I, P, N];
3109
3109
  }
3110
- })(r, n, "query", c), w = m[0], h = m[1], O = m[2], y = m[3];
3110
+ })(r, n, "query", c), w = m[0], h = m[1], _ = m[2], y = m[3];
3111
3111
  return w && h ? w.obsSet = c.obsSet : (h = a.query(c).then(function(v) {
3112
3112
  var E = v.result;
3113
3113
  if (w && (w.res = E), u) {
@@ -3117,8 +3117,8 @@ function Ba() {
3117
3117
  return v;
3118
3118
  }).catch(function(v) {
3119
3119
  return y && w && $e(y, w), Promise.reject(v);
3120
- }), w = { obsSet: c.obsSet, promise: h, subscribers: /* @__PURE__ */ new Set(), type: "query", req: c, dirty: !1 }, y ? y.push(w) : (y = [w], (O = O || (Fe["idb://".concat(r, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[c.query.index.name || ""] = y)), Aa(w, y, d, p), w.promise.then(function(v) {
3121
- return { result: xn(v.result, c, O?.optimisticOps, a, w, u) };
3120
+ }), w = { obsSet: c.obsSet, promise: h, subscribers: /* @__PURE__ */ new Set(), type: "query", req: c, dirty: !1 }, y ? y.push(w) : (y = [w], (_ = _ || (Fe["idb://".concat(r, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[c.query.index.name || ""] = y)), Aa(w, y, d, p), w.promise.then(function(v) {
3121
+ return { result: xn(v.result, c, _?.optimisticOps, a, w, u) };
3122
3122
  });
3123
3123
  } });
3124
3124
  } });
@@ -3250,15 +3250,15 @@ function Ba() {
3250
3250
  h(m);
3251
3251
  }) : q(m);
3252
3252
  }
3253
- var p = function m(w, h, O, y, v) {
3253
+ var p = function m(w, h, _, y, v) {
3254
3254
  return M.resolve().then(function() {
3255
- var E = L.transless || L, S = w._createTransaction(h, O, w._dbSchema, y);
3255
+ var E = L.transless || L, S = w._createTransaction(h, _, w._dbSchema, y);
3256
3256
  if (S.explicit = !0, E = { trans: S, transless: E }, y) S.idbtrans = y.idbtrans;
3257
3257
  else try {
3258
3258
  S.create(), S.idbtrans._explicit = !0, w._state.PR1398_maxLoop = 3;
3259
3259
  } catch (N) {
3260
3260
  return N.name === or.InvalidState && w.isOpen() && 0 < --w._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), w.close({ disableAutoOpen: !1 }), w.open().then(function() {
3261
- return m(w, h, O, null, v);
3261
+ return m(w, h, _, null, v);
3262
3262
  })) : q(N);
3263
3263
  }
3264
3264
  var A, P = sr(v);
@@ -3293,20 +3293,20 @@ function Ba() {
3293
3293
  var s, c, u, d, p, m = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: X, dbReadyPromise: null, cancelOpen: X, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: r.autoOpen };
3294
3294
  m.dbReadyPromise = new M(function(h) {
3295
3295
  m.dbReadyResolve = h;
3296
- }), m.openCanceller = new M(function(h, O) {
3297
- m.cancelOpen = O;
3298
- }), this._state = m, this.name = e, this.on = gt(this, "populate", "blocked", "versionchange", "close", { ready: [ir, X] }), this.once = function(h, O) {
3296
+ }), m.openCanceller = new M(function(h, _) {
3297
+ m.cancelOpen = _;
3298
+ }), this._state = m, this.name = e, this.on = gt(this, "populate", "blocked", "versionchange", "close", { ready: [ir, X] }), this.once = function(h, _) {
3299
3299
  var y = function() {
3300
3300
  for (var v = [], E = 0; E < arguments.length; E++) v[E] = arguments[E];
3301
- n.on(h).unsubscribe(y), O.apply(n, v);
3301
+ n.on(h).unsubscribe(y), _.apply(n, v);
3302
3302
  };
3303
3303
  return n.on(h, y);
3304
3304
  }, this.on.ready.subscribe = zr(this.on.ready.subscribe, function(h) {
3305
- return function(O, y) {
3305
+ return function(_, y) {
3306
3306
  ee.vip(function() {
3307
3307
  var v, E = n._state;
3308
- E.openComplete ? (E.dbOpenError || M.resolve().then(O), y && h(O)) : E.onReadyBeingFired ? (E.onReadyBeingFired.push(O), y && h(O)) : (h(O), v = n, y || h(function S() {
3309
- v.on.ready.unsubscribe(O), v.on.ready.unsubscribe(S);
3308
+ E.openComplete ? (E.dbOpenError || M.resolve().then(_), y && h(_)) : E.onReadyBeingFired ? (E.onReadyBeingFired.push(_), y && h(_)) : (h(_), v = n, y || h(function S() {
3309
+ v.on.ready.unsubscribe(_), v.on.ready.unsubscribe(S);
3310
3310
  }));
3311
3311
  });
3312
3312
  };
@@ -3320,15 +3320,15 @@ function Ba() {
3320
3320
  }
3321
3321
  var E = A._ctx, S = E.table, A = S.hook.reading.fire;
3322
3322
  this._ctx = { table: S, index: E.index, isPrimKey: !E.index || S.schema.primKey.keyPath && E.index === S.schema.primKey.name, range: y, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: v, or: E.or, valueMapper: A !== ct ? A : null };
3323
- })), this.Table = (c = this, pt(gn.prototype, function(h, O, y) {
3324
- this.db = c, this._tx = y, this.name = h, this.schema = O, this.hook = c._allTables[h] ? c._allTables[h].hook : gt(null, { creating: [qn, X], reading: [Zn, ct], updating: [ta, X], deleting: [ea, X] });
3325
- })), this.Transaction = (u = this, pt(da.prototype, function(h, O, y, v, E) {
3323
+ })), this.Table = (c = this, pt(gn.prototype, function(h, _, y) {
3324
+ this.db = c, this._tx = y, this.name = h, this.schema = _, this.hook = c._allTables[h] ? c._allTables[h].hook : gt(null, { creating: [qn, X], reading: [Zn, ct], updating: [ta, X], deleting: [ea, X] });
3325
+ })), this.Transaction = (u = this, pt(da.prototype, function(h, _, y, v, E) {
3326
3326
  var S = this;
3327
- h !== "readonly" && O.forEach(function(A) {
3328
- A = (A = y[A]) === null || A === void 0 ? void 0 : A.yProps, A && (O = O.concat(A.map(function(P) {
3327
+ h !== "readonly" && _.forEach(function(A) {
3328
+ A = (A = y[A]) === null || A === void 0 ? void 0 : A.yProps, A && (_ = _.concat(A.map(function(P) {
3329
3329
  return P.updatesTable;
3330
3330
  })));
3331
- }), this.db = u, this.mode = h, this.storeNames = O, this.schema = y, this.chromeTransactionDurability = v, this.idbtrans = null, this.on = gt(this, "complete", "error", "abort"), this.parent = E || 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 M(function(A, P) {
3331
+ }), this.db = u, this.mode = h, this.storeNames = _, this.schema = y, this.chromeTransactionDurability = v, this.idbtrans = null, this.on = gt(this, "complete", "error", "abort"), this.parent = E || 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 M(function(A, P) {
3332
3332
  S._resolve = A, S._reject = P;
3333
3333
  }), this._completion.then(function() {
3334
3334
  S.active = !1, S.on.complete.fire();
@@ -3338,8 +3338,8 @@ function Ba() {
3338
3338
  });
3339
3339
  })), this.Version = (d = this, pt(ba.prototype, function(h) {
3340
3340
  this.db = d, this._cfg = { version: h, storesSource: null, dbschema: {}, tables: {}, contentUpgrade: null };
3341
- })), this.WhereClause = (p = this, pt(vn.prototype, function(h, O, y) {
3342
- if (this.db = p, this._ctx = { table: h, index: O === ":id" ? null : O, or: y }, this._cmp = this._ascending = V, this._descending = function(v, E) {
3341
+ })), this.WhereClause = (p = this, pt(vn.prototype, function(h, _, y) {
3342
+ if (this.db = p, this._ctx = { table: h, index: _ === ":id" ? null : _, or: y }, this._cmp = this._ascending = V, this._descending = function(v, E) {
3343
3343
  return V(E, v);
3344
3344
  }, this._max = function(v, E) {
3345
3345
  return 0 < V(v, E) ? v : E;
@@ -3350,24 +3350,24 @@ function Ba() {
3350
3350
  0 < h.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 });
3351
3351
  }), this.on("blocked", function(h) {
3352
3352
  !h.newVersion || h.newVersion < h.oldVersion ? console.warn("Dexie.delete('".concat(n.name, "') was blocked")) : console.warn("Upgrade '".concat(n.name, "' blocked by other connection holding version ").concat(h.oldVersion / 10));
3353
- }), this._maxKey = bt(r.IDBKeyRange), this._createTransaction = function(h, O, y, v) {
3354
- return new n.Transaction(h, O, y, n._options.chromeTransactionDurability, v);
3353
+ }), this._maxKey = bt(r.IDBKeyRange), this._createTransaction = function(h, _, y, v) {
3354
+ return new n.Transaction(h, _, y, n._options.chromeTransactionDurability, v);
3355
3355
  }, this._fireOnBlocked = function(h) {
3356
- n.on("blocked").fire(h), et.filter(function(O) {
3357
- return O.name === n.name && O !== n && !O._state.vcFired;
3358
- }).map(function(O) {
3359
- return O.on("versionchange").fire(h);
3356
+ n.on("blocked").fire(h), et.filter(function(_) {
3357
+ return _.name === n.name && _ !== n && !_._state.vcFired;
3358
+ }).map(function(_) {
3359
+ return _.on("versionchange").fire(h);
3360
3360
  });
3361
3361
  }, this.use(Sa), this.use(Pa), this.use(Oa), this.use(Ea), this.use(wa);
3362
- var w = new Proxy(this, { get: function(h, O, y) {
3363
- if (O === "_vip") return !0;
3364
- if (O === "table") return function(E) {
3362
+ var w = new Proxy(this, { get: function(h, _, y) {
3363
+ if (_ === "_vip") return !0;
3364
+ if (_ === "table") return function(E) {
3365
3365
  return Zt(n.table(E), w);
3366
3366
  };
3367
- var v = Reflect.get(h, O, y);
3368
- return v instanceof gn ? Zt(v, w) : O === "tables" ? v.map(function(E) {
3367
+ var v = Reflect.get(h, _, y);
3368
+ return v instanceof gn ? Zt(v, w) : _ === "tables" ? v.map(function(E) {
3369
3369
  return Zt(E, w);
3370
- }) : O === "_createTransaction" ? function() {
3370
+ }) : _ === "_createTransaction" ? function() {
3371
3371
  return Zt(v.apply(this, arguments), w);
3372
3372
  } : v;
3373
3373
  } });
@@ -3396,10 +3396,10 @@ function Ba() {
3396
3396
  d || (d = !0, u && u.abort(), h && Re.storagemutated.unsubscribe(y));
3397
3397
  } };
3398
3398
  s.start && s.start(w);
3399
- var h = !1, O = function() {
3399
+ var h = !1, _ = function() {
3400
3400
  return pr(v);
3401
3401
  }, y = function(E) {
3402
- Xt(p, E), Rr(m, p) && O();
3402
+ Xt(p, E), Rr(m, p) && _();
3403
3403
  }, v = function() {
3404
3404
  var E, S, A;
3405
3405
  !d && qt.indexedDB && (p = {}, E = {}, u && u.abort(), u = new AbortController(), A = (function(P) {
@@ -3411,7 +3411,7 @@ function Ba() {
3411
3411
  } finally {
3412
3412
  N && Ze();
3413
3413
  }
3414
- })(S = { subscr: E, signal: u.signal, requery: O, querier: e, trans: null }), Promise.resolve(A).then(function(P) {
3414
+ })(S = { subscr: E, signal: u.signal, requery: _, querier: e, trans: null }), Promise.resolve(A).then(function(P) {
3415
3415
  n = !0, r = P, d || S.signal.aborted || (p = {}, (function(N) {
3416
3416
  for (var I in N) if (re(N, I)) return;
3417
3417
  return 1;
@@ -3424,7 +3424,7 @@ function Ba() {
3424
3424
  });
3425
3425
  }));
3426
3426
  };
3427
- return setTimeout(O, 0), w;
3427
+ return setTimeout(_, 0), w;
3428
3428
  });
3429
3429
  return a.hasValue = function() {
3430
3430
  return n;
@@ -3561,7 +3561,7 @@ class Kn {
3561
3561
  cloud: "id,dashboard_id",
3562
3562
  dashboard: "id,name,update",
3563
3563
  display: "id,monitor_id,presentation_id,colstart,colend,rowstart,rowend",
3564
- hash: "[id+presentation_id], id, presentation_id, hash",
3564
+ hashes: "[id+presentation_id], id, presentation_id, hash",
3565
3565
  images: "id,basename,extension,size,type,url",
3566
3566
  messages: "id,utc,expires",
3567
3567
  monitor: "id,player_id,cols,rows,order,width,height,physicalwidth,physicalheight,devicePixelRatio,screenLeft,screenTop,orientation,monitor",
@@ -3575,7 +3575,7 @@ class Kn {
3575
3575
  }), this.db.open();
3576
3576
  }
3577
3577
  getHash = async (t) => {
3578
- const i = await this.db.table("hash").where({ id: t.widget, presentation_id: t.presentation }).last().catch(() => {
3578
+ const i = await this.db.table(O.HASH).where({ id: t.widget, presentation_id: t.presentation }).last().catch(() => {
3579
3579
  G(2, ["%chash%c %capi%C %chash", o.API, o.NONE, o.APP]);
3580
3580
  });
3581
3581
  return G(3, [
@@ -3588,7 +3588,7 @@ class Kn {
3588
3588
  t
3589
3589
  ]), i?.hash ?? "none";
3590
3590
  };
3591
- setHash = async (t) => await this.db.table("hash").where({
3591
+ setHash = async (t) => await this.db.table(O.HASH).where({
3592
3592
  id: t.widget,
3593
3593
  presentation_id: t.presentation
3594
3594
  }).modify({ hash: t.hash }).then(() => (G(3, [
@@ -3609,7 +3609,7 @@ class Kn {
3609
3609
  t,
3610
3610
  i.message
3611
3611
  ]), 400));
3612
- clearHash = async () => await this.db.table("hash").clear().then(() => 201).catch((t) => (G(2, [
3612
+ clearHash = async () => await this.db.table(O.HASH).clear().then(() => 201).catch((t) => (G(2, [
3613
3613
  "%cclear%c %cstorage%c %chash",
3614
3614
  o.KO,
3615
3615
  o.NONE,
@@ -3618,7 +3618,7 @@ class Kn {
3618
3618
  o.WIDGET,
3619
3619
  "clear hashes"
3620
3620
  ]), 400));
3621
- deleteHash = async (t) => await this.db.table("hash").where({ presentation_id: t.presentation }).delete().then(() => 201).catch((i) => (G(2, [
3621
+ deleteHash = async (t) => await this.db.table(O.HASH).where({ presentation_id: t.presentation }).delete().then(() => 201).catch((i) => (G(2, [
3622
3622
  "%cdelete%c %cstorage%c %chash",
3623
3623
  o.KO,
3624
3624
  o.NONE,
@@ -3628,7 +3628,7 @@ class Kn {
3628
3628
  "clear dashboard hashes",
3629
3629
  t.dashboard
3630
3630
  ]), 400));
3631
- createHash = async (t) => await this.db.table("hash").put({
3631
+ createHash = async (t) => await this.db.table(O.HASH).put({
3632
3632
  id: t.widget,
3633
3633
  presentation_id: t.presentation,
3634
3634
  hash: t.hash
@@ -3663,7 +3663,7 @@ class Kn {
3663
3663
  success: !1,
3664
3664
  query: t
3665
3665
  };
3666
- const i = await this.db.table(_.CLOUD).where({ id: t.widget }).last().catch(() => {
3666
+ const i = await this.db.table(O.CLOUD).where({ id: t.widget }).last().catch(() => {
3667
3667
  G(2, ["%capi%C %ccloud", o.API, o.NONE, o.CLOUD, t.widget]);
3668
3668
  });
3669
3669
  if (typeof i > "u")
@@ -3690,7 +3690,7 @@ class Kn {
3690
3690
  * @param data
3691
3691
  * @returns number
3692
3692
  */
3693
- setCloud = async (t, i) => t.type === _.CLOUD && i !== "" ? (G(3, [
3693
+ setCloud = async (t, i) => t.type === O.CLOUD && i !== "" ? (G(3, [
3694
3694
  "%cset%c %cstorage%c %ccloud",
3695
3695
  o.OK,
3696
3696
  o.NONE,
@@ -3698,7 +3698,7 @@ class Kn {
3698
3698
  o.NONE,
3699
3699
  o.CLOUD,
3700
3700
  i?.title ?? t.widget
3701
- ]), await this.db.table(_.CLOUD).put({
3701
+ ]), await this.db.table(O.CLOUD).put({
3702
3702
  id: t.widget,
3703
3703
  dashboard_id: t.dashboard,
3704
3704
  hash: t.hash,
@@ -3715,7 +3715,7 @@ class Kn {
3715
3715
  l.message
3716
3716
  ]), 400))) : 400;
3717
3717
  getDashboard = async (t) => {
3718
- const i = await this.db.table(_.DASHBOARD).where({ id: t.id }).last().catch(() => {
3718
+ const i = await this.db.table(O.DASHBOARD).where({ id: t.id }).last().catch(() => {
3719
3719
  G(2, ["%cstorage", o.STORAGE, J.DASHBOARD_LOAD, t.id]);
3720
3720
  });
3721
3721
  return i === void 0 ? {
@@ -3725,7 +3725,7 @@ class Kn {
3725
3725
  } : (i.message = `Dashboard ${t.id} retrieved from storage`, i.success = !0, i);
3726
3726
  };
3727
3727
  getDashboards = async (t) => {
3728
- const i = (b) => t?.id === b.id, l = (b) => t?.name ? b.name.includes(t?.name) : !1, g = await this.db.table(_.DASHBOARD).toArray().then((b) => t?.id ? b.filter(i) : b).then((b) => t?.name ? b.filter(l) : b).catch(() => {
3728
+ const i = (b) => t?.id === b.id, l = (b) => t?.name ? b.name.includes(t?.name) : !1, g = await this.db.table(O.DASHBOARD).toArray().then((b) => t?.id ? b.filter(i) : b).then((b) => t?.name ? b.filter(l) : b).catch(() => {
3729
3729
  G(2, ["%cstorage", o.STORAGE, J.DASHBOARD_LOAD, t]);
3730
3730
  });
3731
3731
  return g !== void 0 && G(3, [
@@ -3747,7 +3747,7 @@ class Kn {
3747
3747
  */
3748
3748
  setDashboard = async (t) => {
3749
3749
  const i = structuredClone(t);
3750
- return delete i.data.widgets, await this.db.table(_.DASHBOARD).put({
3750
+ return delete i.data.widgets, await this.db.table(O.DASHBOARD).put({
3751
3751
  id: i.id,
3752
3752
  name: i.name,
3753
3753
  data: i.data,
@@ -3756,7 +3756,7 @@ class Kn {
3756
3756
  data: null,
3757
3757
  message: `Dashboard ${i.data.id} saved to storage`,
3758
3758
  success: !0
3759
- })).catch((l) => (G(4, ["%cstorage", o.STORAGE, _.WIDGET, t, l.message]), {
3759
+ })).catch((l) => (G(4, ["%cstorage", o.STORAGE, O.WIDGET, t, l.message]), {
3760
3760
  data: null,
3761
3761
  message: `Dashboard ${i.data.id} save error: ${l.message}`,
3762
3762
  success: !1
@@ -3767,13 +3767,13 @@ class Kn {
3767
3767
  */
3768
3768
  cleanMessages = async () => {
3769
3769
  const t = Date.now() / 1e3, i = (b) => b.expires < t, l = (b) => b.expires < t;
3770
- return await this.db.table(_.TOPICS).orderBy("expires").filter(i).delete().catch((b) => (console.error(
3770
+ return await this.db.table(O.TOPICS).orderBy("expires").filter(i).delete().catch((b) => (console.error(
3771
3771
  "%cstorage%c %cclean",
3772
3772
  o.STORAGE,
3773
3773
  o.NONE,
3774
3774
  o.MESSAGES,
3775
3775
  b.message
3776
- ), 0)), await this.db.table(_.MESSAGES).orderBy("expires").filter(l).delete().catch((b) => (console.error(
3776
+ ), 0)), await this.db.table(O.MESSAGES).orderBy("expires").filter(l).delete().catch((b) => (console.error(
3777
3777
  "%clean%c %cstorage%c %cmessages",
3778
3778
  o.OK,
3779
3779
  o.NONE,
@@ -3808,7 +3808,7 @@ class Kn {
3808
3808
  i !== "utc" && (t.since = l - 3600 * 24 * 30), this.options.delay !== 0 ? t.before = l - (this.options.delay || 0) : t.before = l;
3809
3809
  const g = (D) => D.utc > (t?.since || 0), b = (D) => D.utc < (t?.before || l);
3810
3810
  try {
3811
- const D = this.db.table(_.TOPICS).where("widget_id").equals(t.widget).filter(g).filter(b);
3811
+ const D = this.db.table(O.TOPICS).where("widget_id").equals(t.widget).filter(g).filter(b);
3812
3812
  t?.approved === "true" ? D.and((se) => se.approved === 1) : D.and((se) => se.visible === 1), D.reverse();
3813
3813
  const x = await D.limit(t?.limit ?? 25).sortBy(i);
3814
3814
  if (x.length === 0)
@@ -3818,7 +3818,7 @@ class Kn {
3818
3818
  success: !1,
3819
3819
  query: t
3820
3820
  };
3821
- const te = x.map((se) => this.db.table(_.MESSAGES).get({ id: se.message_id }));
3821
+ const te = x.map((se) => this.db.table(O.MESSAGES).get({ id: se.message_id }));
3822
3822
  return Ot.Promise.all(te).then(async (se) => {
3823
3823
  const re = {
3824
3824
  data: {
@@ -3854,7 +3854,7 @@ class Kn {
3854
3854
  }
3855
3855
  };
3856
3856
  hideMessage = async (t, i) => {
3857
- await this.db.table(_.TOPICS).where("message_id").equals(t).modify({ visible: i ? 1 : 0 }).catch((l) => (console.error(
3857
+ await this.db.table(O.TOPICS).where("message_id").equals(t).modify({ visible: i ? 1 : 0 }).catch((l) => (console.error(
3858
3858
  "%chide%c %cstorage%c %cmessage",
3859
3859
  o.KO,
3860
3860
  o.NONE,
@@ -3871,7 +3871,7 @@ class Kn {
3871
3871
  * @returns number
3872
3872
  */
3873
3873
  setMessages = async (t, i) => {
3874
- if (t.type !== _.MESSAGES)
3874
+ if (t.type !== O.MESSAGES)
3875
3875
  return 400;
3876
3876
  const l = i.data.title;
3877
3877
  let g = 0;
@@ -3893,7 +3893,7 @@ class Kn {
3893
3893
  sentiment: b.topics[0]?.sentiment || 0,
3894
3894
  // @ts-ignore
3895
3895
  approved: b.topics[0]?.approved ? 1 : 0
3896
- }, await this.db.table(_.MESSAGES).put({
3896
+ }, await this.db.table(O.MESSAGES).put({
3897
3897
  id: b.id,
3898
3898
  utc: b.utc,
3899
3899
  data: b,
@@ -3925,7 +3925,7 @@ class Kn {
3925
3925
  utc: b.utc,
3926
3926
  expires: b.expires
3927
3927
  };
3928
- await this.db.table(_.TOPICS).put(D).catch((x) => {
3928
+ await this.db.table(O.TOPICS).put(D).catch((x) => {
3929
3929
  g++, G(4, [
3930
3930
  "%cset%c %cstorage",
3931
3931
  o.KO,
@@ -3938,7 +3938,7 @@ class Kn {
3938
3938
  ]);
3939
3939
  }), await i.data.topics.forEach(async (x) => {
3940
3940
  const te = x.message_id, se = x.visible ? 1 : 0, At = x.approve ? 1 : 0, re = x.title;
3941
- await this.db.table(_.TOPICS).where("message_id").equals(te).modify({ visible: se, approve: At }).catch((ge) => {
3941
+ await this.db.table(O.TOPICS).where("message_id").equals(te).modify({ visible: se, approve: At }).catch((ge) => {
3942
3942
  g++, G(4, [
3943
3943
  "%cset%c %cstorage",
3944
3944
  o.KO,
@@ -3975,7 +3975,7 @@ class Kn {
3975
3975
  success: !1,
3976
3976
  query: t
3977
3977
  };
3978
- const i = await this.db.table(_.SERIES).where({ id: t.widget }).last().catch(() => {
3978
+ const i = await this.db.table(O.SERIES).where({ id: t.widget }).last().catch(() => {
3979
3979
  G(2, [
3980
3980
  "%cget%c %cstorage%c %cseries",
3981
3981
  o.KO,
@@ -4007,7 +4007,7 @@ class Kn {
4007
4007
  * @param data
4008
4008
  * @returns number
4009
4009
  */
4010
- setSeries = async (t, i) => (delete i?.query, t.type === _.SERIES && i !== "" ? (G(3, [
4010
+ setSeries = async (t, i) => (delete i?.query, t.type === O.SERIES && i !== "" ? (G(3, [
4011
4011
  "%cset%c %cstorage%c %cseries",
4012
4012
  o.OK,
4013
4013
  o.NONE,
@@ -4015,7 +4015,7 @@ class Kn {
4015
4015
  o.NONE,
4016
4016
  o.SERIES,
4017
4017
  i?.title ?? t.widget
4018
- ]), await this.db.table(_.SERIES).put({
4018
+ ]), await this.db.table(O.SERIES).put({
4019
4019
  id: t.widget,
4020
4020
  dashboard_id: t.dashboard,
4021
4021
  hash: t.hash,
@@ -4052,7 +4052,7 @@ class Kn {
4052
4052
  success: !1,
4053
4053
  query: t
4054
4054
  };
4055
- const i = await this.db.table(_.WIDGET).where({ id: t.id }).last().catch(() => {
4055
+ const i = await this.db.table(O.WIDGET).where({ id: t.id }).last().catch(() => {
4056
4056
  console.warn("%cstorage", o.STORAGE, J.WIDGET_LOAD, t.id);
4057
4057
  });
4058
4058
  return i === void 0 ? {
@@ -4067,7 +4067,7 @@ class Kn {
4067
4067
  * @returns IResponse
4068
4068
  */
4069
4069
  getWidgets = async (t) => {
4070
- const i = (D) => t?.dashboard === D.dashboard_id, l = (D) => t?.type === D.type, g = (D) => t?.name ? D.name.includes(t?.name) : !1, b = await this.db.table(_.WIDGET).toArray().then((D) => t?.dashboard ? D.filter(i) : D).then((D) => t?.type ? D.filter(l) : D).then((D) => t?.name ? D.filter(g) : D).catch(() => {
4070
+ const i = (D) => t?.dashboard === D.dashboard_id, l = (D) => t?.type === D.type, g = (D) => t?.name ? D.name.includes(t?.name) : !1, b = await this.db.table(O.WIDGET).toArray().then((D) => t?.dashboard ? D.filter(i) : D).then((D) => t?.type ? D.filter(l) : D).then((D) => t?.name ? D.filter(g) : D).catch(() => {
4071
4071
  G(2, ["%cstorage", o.STORAGE, J.WIDGET_LOAD, t]);
4072
4072
  });
4073
4073
  return b !== void 0 && G(3, [
@@ -4088,7 +4088,7 @@ class Kn {
4088
4088
  * @param query IQuery
4089
4089
  * @returns number
4090
4090
  */
4091
- setWidget = async (t) => await this.db.table(_.WIDGET).put({
4091
+ setWidget = async (t) => await this.db.table(O.WIDGET).put({
4092
4092
  id: t.id,
4093
4093
  name: t.title,
4094
4094
  dashboard_id: t.dashboard_id,
@@ -4101,7 +4101,7 @@ class Kn {
4101
4101
  })).catch((i) => (console.error(
4102
4102
  "%cstorage",
4103
4103
  o.STORAGE,
4104
- _.WIDGET,
4104
+ O.WIDGET,
4105
4105
  t,
4106
4106
  i.message
4107
4107
  ), {
@@ -4116,7 +4116,7 @@ class Kn {
4116
4116
  */
4117
4117
  subscribe = (t) => (t = Ca(t), this.subscribers.filter(
4118
4118
  (l) => l.widget === t.widget
4119
- ).length > 0 || (t.type === _.MESSAGES && (t = _t(this.options, t)), console.info(
4119
+ ).length > 0 || (t.type === O.MESSAGES && (t = _t(this.options, t)), console.info(
4120
4120
  "%cstorage%c %csubscribe",
4121
4121
  o.STORAGE,
4122
4122
  o.NONE,
@@ -4141,7 +4141,7 @@ class Kn {
4141
4141
  * @returns IResponse
4142
4142
  */
4143
4143
  getSlide = async (t) => {
4144
- const i = await this.db.table(_.SLIDE).where({ id: t.id }).last().catch(() => {
4144
+ const i = await this.db.table(O.SLIDE).where({ id: t.id }).last().catch(() => {
4145
4145
  G(2, ["%cstorage", o.STORAGE, J.SLIDE_LOAD, t.id]);
4146
4146
  });
4147
4147
  return {
@@ -4157,7 +4157,7 @@ class Kn {
4157
4157
  * @returns IResponse
4158
4158
  */
4159
4159
  getSlides = async (t) => {
4160
- const i = (x) => t?.id ? x.id === t.id : !1, l = (x) => t?.name ? x.name.includes(t?.name) : !1, g = (x) => t?.presentation_id ? x.presentation_id === t.presentation_id : !1, D = await this.db.table(_.SLIDE).toArray().then((x) => t?.presentation_id ? x.filter(g) : x).then((x) => t?.id ? x.filter(i) : x).then((x) => t?.name ? x.filter(l) : x);
4160
+ const i = (x) => t?.id ? x.id === t.id : !1, l = (x) => t?.name ? x.name.includes(t?.name) : !1, g = (x) => t?.presentation_id ? x.presentation_id === t.presentation_id : !1, D = await this.db.table(O.SLIDE).toArray().then((x) => t?.presentation_id ? x.filter(g) : x).then((x) => t?.id ? x.filter(i) : x).then((x) => t?.name ? x.filter(l) : x);
4161
4161
  return D && D.sort((x, te) => x.order_index - te.order_index), D !== void 0 && G(3, ["%cstorage%c %cslides", o.STORAGE, o.NONE, o.SLIDE, t]), {
4162
4162
  // @ts-ignore
4163
4163
  data: D,
@@ -4172,7 +4172,7 @@ class Kn {
4172
4172
  * @param query IQuery
4173
4173
  * @returns number
4174
4174
  */
4175
- setSlide = async (t) => await this.db.table(_.SLIDE).put({
4175
+ setSlide = async (t) => await this.db.table(O.SLIDE).put({
4176
4176
  id: t.data.id,
4177
4177
  presentation_id: t.data.presentation_id,
4178
4178
  order_index: t.data.order_index,
@@ -4201,7 +4201,7 @@ class Kn {
4201
4201
  * @returns IResponse
4202
4202
  */
4203
4203
  getPresentation = async (t) => {
4204
- const i = await this.db.table(_.PRESENTATION).where({ id: t.id }).last().catch(() => {
4204
+ const i = await this.db.table(O.PRESENTATION).where({ id: t.id }).last().catch(() => {
4205
4205
  console.warn(
4206
4206
  "%cstorage ",
4207
4207
  o.STORAGE,
@@ -4221,7 +4221,7 @@ class Kn {
4221
4221
  * @returns IResponse
4222
4222
  */
4223
4223
  getPresentations = async (t) => {
4224
- const i = (b) => t?.name ? b.name.includes(t?.name) : !1, g = await this.db.table(_.PRESENTATION).toArray().then((b) => t?.name ? b.filter(i) : b);
4224
+ const i = (b) => t?.name ? b.name.includes(t?.name) : !1, g = await this.db.table(O.PRESENTATION).toArray().then((b) => t?.name ? b.filter(i) : b);
4225
4225
  return g !== void 0 && G(3, [
4226
4226
  "%cstorage%c %cpresentations",
4227
4227
  o.STORAGE,
@@ -4240,7 +4240,7 @@ class Kn {
4240
4240
  * @param query IQuery
4241
4241
  * @returns number
4242
4242
  */
4243
- setPresentation = async (t) => await this.db.table(_.PRESENTATION).put({
4243
+ setPresentation = async (t) => await this.db.table(O.PRESENTATION).put({
4244
4244
  id: t.data.id,
4245
4245
  name: t.data.name || "Not set",
4246
4246
  data: t.data,
@@ -4268,7 +4268,7 @@ class Kn {
4268
4268
  * @returns IResponse
4269
4269
  */
4270
4270
  getPreference = async (t) => {
4271
- const i = await this.db.table(_.PREFERENCE).where({ id: t.id }).last().catch(() => {
4271
+ const i = await this.db.table(O.PREFERENCE).where({ id: t.id }).last().catch(() => {
4272
4272
  G(2, [
4273
4273
  "%cstorage",
4274
4274
  o.STORAGE,
@@ -4291,7 +4291,7 @@ class Kn {
4291
4291
  * @returns IResponse
4292
4292
  */
4293
4293
  getPreferences = async (t) => {
4294
- const i = (b) => t?.id ? t.id = b.id : !1, g = await this.db.table(_.PREFERENCE).toArray().then((b) => t?.id ? b.filter(i) : b);
4294
+ const i = (b) => t?.id ? t.id = b.id : !1, g = await this.db.table(O.PREFERENCE).toArray().then((b) => t?.id ? b.filter(i) : b);
4295
4295
  return g !== void 0 && G(3, [
4296
4296
  "%cstorage%c %cpreferences",
4297
4297
  o.STORAGE,
@@ -4310,7 +4310,7 @@ class Kn {
4310
4310
  * @param preference IPreference
4311
4311
  * @returns number
4312
4312
  */
4313
- setPreference = async (t) => await this.db.table(_.PREFERENCE).put({
4313
+ setPreference = async (t) => await this.db.table(O.PREFERENCE).put({
4314
4314
  id: t.id,
4315
4315
  value: t.value,
4316
4316
  update: t.update
@@ -4335,7 +4335,7 @@ class Kn {
4335
4335
  * @returns IResponse
4336
4336
  */
4337
4337
  getImages = async (t) => {
4338
- const i = (b) => t?.id ? b.includes(t.id) : !1, g = await this.db.table(_.IMAGES).toArray().then((b) => t?.id ? b.filter(i) : b);
4338
+ const i = (b) => t?.id ? b.includes(t.id) : !1, g = await this.db.table(O.IMAGES).toArray().then((b) => t?.id ? b.filter(i) : b);
4339
4339
  return g !== void 0 && G(3, [
4340
4340
  "%cstorage%c %cimages",
4341
4341
  o.STORAGE,
@@ -4354,7 +4354,7 @@ class Kn {
4354
4354
  * @param query IQuery
4355
4355
  * @returns number
4356
4356
  */
4357
- setImage = async (t) => await this.db.table(_.IMAGES).put({
4357
+ setImage = async (t) => await this.db.table(O.IMAGES).put({
4358
4358
  id: t.data.name,
4359
4359
  basename: t.data.basename,
4360
4360
  extension: t.data.extension,
@@ -4418,15 +4418,15 @@ class Bn {
4418
4418
  deleteHash = async (t) => 404;
4419
4419
  getCloud = async (t) => {
4420
4420
  const i = Y(t);
4421
- return await _e(i).then((l) => l).catch(() => (console.warn("%capi", o.API, _.CLOUD, t.slide, t.widget), { data: null, message: "Cloud Data error", success: !1 }));
4421
+ return await _e(i).then((l) => l).catch(() => (console.warn("%capi", o.API, O.CLOUD, t.slide, t.widget), { data: null, message: "Cloud Data error", success: !1 }));
4422
4422
  };
4423
4423
  getSeries = async (t) => {
4424
4424
  const i = Y(t);
4425
- return await _e(i).then((l) => l).catch(() => (console.warn("%capi", o.API, _.SERIES, t.slide, t.widget), { data: null, message: "Series Data error", success: !1 }));
4425
+ return await _e(i).then((l) => l).catch(() => (console.warn("%capi", o.API, O.SERIES, t.slide, t.widget), { data: null, message: "Series Data error", success: !1 }));
4426
4426
  };
4427
4427
  getMessages = async (t) => {
4428
4428
  const i = Y(t);
4429
- return await _e(i).then((l) => l).catch(() => (console.warn("%capi", o.API, _.MESSAGES, t.slide, t.widget), { data: null, message: "Messages Data error", success: !1 }));
4429
+ return await _e(i).then((l) => l).catch(() => (console.warn("%capi", o.API, O.MESSAGES, t.slide, t.widget), { data: null, message: "Messages Data error", success: !1 }));
4430
4430
  };
4431
4431
  /**
4432
4432
  * Update Cloud
@@ -4441,7 +4441,7 @@ class Bn {
4441
4441
  return delete i.success, delete i.message, await ke(l, i).then(() => 201).catch((g) => (console.error(
4442
4442
  "%cstorage",
4443
4443
  o.STORAGE,
4444
- _.CLOUD,
4444
+ O.CLOUD,
4445
4445
  t,
4446
4446
  g.message
4447
4447
  ), 400));
@@ -4459,7 +4459,7 @@ class Bn {
4459
4459
  return delete i.success, delete i.message, await ke(l, i).then(() => 201).catch((g) => (console.error(
4460
4460
  "%cstorage",
4461
4461
  o.STORAGE,
4462
- _.SERIES,
4462
+ O.SERIES,
4463
4463
  t,
4464
4464
  g.message
4465
4465
  ), 400));
@@ -4477,7 +4477,7 @@ class Bn {
4477
4477
  return delete i.success, delete i.message, await ke(l, i).then(() => 201).catch((g) => (console.error(
4478
4478
  "%cstorage",
4479
4479
  o.STORAGE,
4480
- _.MESSAGES,
4480
+ O.MESSAGES,
4481
4481
  t,
4482
4482
  g.message
4483
4483
  ), 400));
@@ -4490,7 +4490,7 @@ class Bn {
4490
4490
  };
4491
4491
  getDashboard = async (t) => {
4492
4492
  const i = Y(t);
4493
- return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, _.SLIDE, t.id), {
4493
+ return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, O.SLIDE, t.id), {
4494
4494
  data: null,
4495
4495
  message: `Widget ${t.data.id} load error: ${l.message}`,
4496
4496
  success: !1
@@ -4518,7 +4518,7 @@ class Bn {
4518
4518
  })).catch((g) => (console.error(
4519
4519
  "%cstorage",
4520
4520
  o.STORAGE,
4521
- _.WIDGET,
4521
+ O.WIDGET,
4522
4522
  t,
4523
4523
  g.message
4524
4524
  ), {
@@ -4529,13 +4529,13 @@ class Bn {
4529
4529
  };
4530
4530
  getWidget = async (t) => {
4531
4531
  const i = Y(t);
4532
- return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, _.SLIDE, t.id), {
4532
+ return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, O.SLIDE, t.id), {
4533
4533
  data: null,
4534
4534
  message: `Widget ${t.data.id} load error: ${l.message}`,
4535
4535
  success: !1
4536
4536
  }));
4537
4537
  };
4538
- getWidgets = async (t) => (console.warn("%capi", o.API, _.SLIDE, t?.presentation), {
4538
+ getWidgets = async (t) => (console.warn("%capi", o.API, O.SLIDE, t?.presentation), {
4539
4539
  data: null,
4540
4540
  message: "Widgets load error: ",
4541
4541
  success: !1
@@ -4559,7 +4559,7 @@ class Bn {
4559
4559
  })).catch((g) => (console.error(
4560
4560
  "%cstorage",
4561
4561
  o.STORAGE,
4562
- _.WIDGET,
4562
+ O.WIDGET,
4563
4563
  t,
4564
4564
  g.message
4565
4565
  ), {
@@ -4573,7 +4573,7 @@ class Bn {
4573
4573
  * @param query IQuery
4574
4574
  * @returns null
4575
4575
  */
4576
- subscribe = (t) => (t.type === _.MESSAGES && (t = _t(this.options, t)), this.subscribers.filter(
4576
+ subscribe = (t) => (t.type === O.MESSAGES && (t = _t(this.options, t)), this.subscribers.filter(
4577
4577
  (l) => l.widget === t.widget
4578
4578
  ).length > 0 || (console.debug(
4579
4579
  "%cstorage%c %csubscribe",
@@ -4590,13 +4590,13 @@ class Bn {
4590
4590
  getSubscribers = async () => await new Promise((t) => t(this.subscribers));
4591
4591
  getSlide = async (t) => {
4592
4592
  const i = Y(t);
4593
- return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, _.SLIDE, t.id), {
4593
+ return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, O.SLIDE, t.id), {
4594
4594
  data: null,
4595
4595
  message: `Slide ${t.data.id} load error: ${l.message}`,
4596
4596
  success: !1
4597
4597
  }));
4598
4598
  };
4599
- getSlides = async (t) => (console.warn("%capi", o.API, _.SLIDE, t.presentation), {
4599
+ getSlides = async (t) => (console.warn("%capi", o.API, O.SLIDE, t.presentation), {
4600
4600
  data: null,
4601
4601
  message: `Slided ${t.presentation} load error: `,
4602
4602
  success: !1
@@ -4620,7 +4620,7 @@ class Bn {
4620
4620
  })).catch((g) => (console.error(
4621
4621
  "%cstorage",
4622
4622
  o.STORAGE,
4623
- _.SLIDE,
4623
+ O.SLIDE,
4624
4624
  t,
4625
4625
  g.message
4626
4626
  ), {
@@ -4631,7 +4631,7 @@ class Bn {
4631
4631
  };
4632
4632
  getPresentation = async (t) => {
4633
4633
  const i = Y(t);
4634
- return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, _.PRESENTATION, t.id), {
4634
+ return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, O.PRESENTATION, t.id), {
4635
4635
  data: null,
4636
4636
  message: `Slide ${t.data.id} load error: ${l.message}`,
4637
4637
  success: !1
@@ -4656,7 +4656,7 @@ class Bn {
4656
4656
  })).catch((g) => (console.error(
4657
4657
  "%cstorage",
4658
4658
  o.STORAGE,
4659
- _.PRESENTATION,
4659
+ O.PRESENTATION,
4660
4660
  t,
4661
4661
  g.message
4662
4662
  ), {
@@ -4665,12 +4665,12 @@ class Bn {
4665
4665
  success: !1
4666
4666
  }));
4667
4667
  };
4668
- getPreference = async (t) => await _e(`${_.PREFERENCE}.${t.id}`).then((i) => i).catch((i) => (console.warn("%capi", o.API, _.PREFERENCE, t.id), {
4668
+ getPreference = async (t) => await _e(`${O.PREFERENCE}.${t.id}`).then((i) => i).catch((i) => (console.warn("%capi", o.API, O.PREFERENCE, t.id), {
4669
4669
  data: null,
4670
4670
  message: `Preference ${t.id} get error: ${i.message}`,
4671
4671
  success: !1
4672
4672
  }));
4673
- getPreferences = async () => await _e(`${_.PREFERENCE}`).then((t) => t).catch((t) => (console.warn("%capi", o.API, _.PREFERENCE), {
4673
+ getPreferences = async () => await _e(`${O.PREFERENCE}`).then((t) => t).catch((t) => (console.warn("%capi", o.API, O.PREFERENCE), {
4674
4674
  data: null,
4675
4675
  message: `Preferences get error: ${t.message}`,
4676
4676
  success: !1
@@ -4680,14 +4680,14 @@ class Bn {
4680
4680
  * @param preference IPreference
4681
4681
  * @returns number
4682
4682
  */
4683
- setPreference = async (t) => await ke(`${_.PREFERENCE}.${t.id}`, t.value).then(() => ({
4683
+ setPreference = async (t) => await ke(`${O.PREFERENCE}.${t.id}`, t.value).then(() => ({
4684
4684
  data: null,
4685
4685
  message: `Preference ${t.id} save error`,
4686
4686
  success: !0
4687
4687
  })).catch((i) => (console.error(
4688
4688
  "%cstorage",
4689
4689
  o.STORAGE,
4690
- _.PREFERENCE,
4690
+ O.PREFERENCE,
4691
4691
  t,
4692
4692
  i.message
4693
4693
  ), {
@@ -4730,7 +4730,7 @@ class Un {
4730
4730
  return console.warn(
4731
4731
  "%capi",
4732
4732
  o.API,
4733
- _.CLOUD,
4733
+ O.CLOUD,
4734
4734
  t.slide,
4735
4735
  t.widget,
4736
4736
  l
@@ -4745,7 +4745,7 @@ class Un {
4745
4745
  return console.warn(
4746
4746
  "%capi",
4747
4747
  o.API,
4748
- _.SERIES,
4748
+ O.SERIES,
4749
4749
  t.slide,
4750
4750
  t.widget,
4751
4751
  l
@@ -4760,7 +4760,7 @@ class Un {
4760
4760
  return console.warn(
4761
4761
  "%capi",
4762
4762
  o.API,
4763
- _.MESSAGES,
4763
+ O.MESSAGES,
4764
4764
  t.slide,
4765
4765
  t.widget,
4766
4766
  l
@@ -4778,7 +4778,7 @@ class Un {
4778
4778
  try {
4779
4779
  return localStorage.setObject(l, i), 201;
4780
4780
  } catch (g) {
4781
- return console.error("%cstorage", o.STORAGE, _.CLOUD, t, g), 400;
4781
+ return console.error("%cstorage", o.STORAGE, O.CLOUD, t, g), 400;
4782
4782
  }
4783
4783
  };
4784
4784
  /**
@@ -4792,7 +4792,7 @@ class Un {
4792
4792
  try {
4793
4793
  return localStorage.setObject(l, i), 201;
4794
4794
  } catch (g) {
4795
- return console.error("%cstorage", o.STORAGE, _.SERIES, t, g), 400;
4795
+ return console.error("%cstorage", o.STORAGE, O.SERIES, t, g), 400;
4796
4796
  }
4797
4797
  };
4798
4798
  /**
@@ -4806,7 +4806,7 @@ class Un {
4806
4806
  try {
4807
4807
  return localStorage.setObject(l, i), 200;
4808
4808
  } catch (g) {
4809
- return console.error("%cstorage", o.STORAGE, _.MESSAGES, t, g), 400;
4809
+ return console.error("%cstorage", o.STORAGE, O.MESSAGES, t, g), 400;
4810
4810
  }
4811
4811
  };
4812
4812
  cleanMessages = async (t) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((i) => i(0)));
@@ -4817,9 +4817,9 @@ class Un {
4817
4817
  };
4818
4818
  getDashboard = async (t) => {
4819
4819
  try {
4820
- return localStorage.getObject(`${_.DASHBOARD}.${t.id}`);
4820
+ return localStorage.getObject(`${O.DASHBOARD}.${t.id}`);
4821
4821
  } catch (i) {
4822
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
4822
+ return console.warn("%capi", o.API, O.SLIDE, t.id, i), {
4823
4823
  data: null,
4824
4824
  message: `Dashboard ${t.id} load error: ${i.message}`,
4825
4825
  success: !1
@@ -4832,7 +4832,7 @@ class Un {
4832
4832
  success: !1
4833
4833
  });
4834
4834
  setDashboard = async (t) => {
4835
- const i = `${_.DASHBOARD}.${t.dashboard}`;
4835
+ const i = `${O.DASHBOARD}.${t.dashboard}`;
4836
4836
  try {
4837
4837
  return localStorage.setObject(i, t), {
4838
4838
  data: null,
@@ -4840,7 +4840,7 @@ class Un {
4840
4840
  success: !0
4841
4841
  };
4842
4842
  } catch (l) {
4843
- return console.error("%cstorage", o.STORAGE, _.WIDGET, t, l), {
4843
+ return console.error("%cstorage", o.STORAGE, O.WIDGET, t, l), {
4844
4844
  data: null,
4845
4845
  message: `Dashboard ${t.data.id} save error: ${l.message}`,
4846
4846
  success: !1
@@ -4849,9 +4849,9 @@ class Un {
4849
4849
  };
4850
4850
  getWidget = async (t) => {
4851
4851
  try {
4852
- return localStorage.getObject(`${_.WIDGET}.${t.id}`);
4852
+ return localStorage.getObject(`${O.WIDGET}.${t.id}`);
4853
4853
  } catch (i) {
4854
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
4854
+ return console.warn("%capi", o.API, O.SLIDE, t.id, i), {
4855
4855
  data: null,
4856
4856
  message: `Widget ${t.id} load error: ${i.message}`,
4857
4857
  success: !1
@@ -4872,7 +4872,7 @@ class Un {
4872
4872
  success: !0
4873
4873
  };
4874
4874
  } catch (l) {
4875
- return console.error("%cstorage", o.STORAGE, _.WIDGET, t, l), {
4875
+ return console.error("%cstorage", o.STORAGE, O.WIDGET, t, l), {
4876
4876
  data: null,
4877
4877
  message: `Widget ${t.data.id} save error: ${l.message}`,
4878
4878
  success: !1
@@ -4884,7 +4884,7 @@ class Un {
4884
4884
  * @param query IQuery
4885
4885
  * @returns null
4886
4886
  */
4887
- subscribe = (t) => (t.type === _.MESSAGES && (t = _t(this.options, t)), this.subscribers.filter(
4887
+ subscribe = (t) => (t.type === O.MESSAGES && (t = _t(this.options, t)), this.subscribers.filter(
4888
4888
  (l) => l.widget === t.widget
4889
4889
  ).length || (console.debug(
4890
4890
  "%cstorage%c %csubscribe",
@@ -4901,9 +4901,9 @@ class Un {
4901
4901
  getSubscribers = async () => await new Promise((t) => t(this.subscribers));
4902
4902
  getSlide = async (t) => {
4903
4903
  try {
4904
- return localStorage.getObject(`${_.SLIDE}.${t.id}`);
4904
+ return localStorage.getObject(`${O.SLIDE}.${t.id}`);
4905
4905
  } catch (i) {
4906
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
4906
+ return console.warn("%capi", o.API, O.SLIDE, t.id, i), {
4907
4907
  data: null,
4908
4908
  message: `Slide ${t.id} load error: ${i.message}`,
4909
4909
  success: !1
@@ -4912,9 +4912,9 @@ class Un {
4912
4912
  };
4913
4913
  getSlides = async (t) => {
4914
4914
  try {
4915
- return localStorage.getObject(`${_.SLIDE}.${t.id}`);
4915
+ return localStorage.getObject(`${O.SLIDE}.${t.id}`);
4916
4916
  } catch (i) {
4917
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
4917
+ return console.warn("%capi", o.API, O.SLIDE, t.id, i), {
4918
4918
  data: null,
4919
4919
  message: `Slide ${t.id} load error: ${i.message}`,
4920
4920
  success: !1
@@ -4923,7 +4923,7 @@ class Un {
4923
4923
  };
4924
4924
  setSlide = async (t) => {
4925
4925
  try {
4926
- return localStorage.setObject(`${_.SLIDE}.${t.data.id}`, {
4926
+ return localStorage.setObject(`${O.SLIDE}.${t.data.id}`, {
4927
4927
  id: t.data.id,
4928
4928
  title: t.data.title || "Not set",
4929
4929
  json: t.data.json || {},
@@ -4934,7 +4934,7 @@ class Un {
4934
4934
  success: !0
4935
4935
  };
4936
4936
  } catch (i) {
4937
- return console.error("%cstorage", o.STORAGE, _.SLIDE, t, i), {
4937
+ return console.error("%cstorage", o.STORAGE, O.SLIDE, t, i), {
4938
4938
  data: null,
4939
4939
  message: `Slide ${t.data.id} save error: ${i.message}`,
4940
4940
  success: !1
@@ -4944,13 +4944,13 @@ class Un {
4944
4944
  getPresentation = async (t) => {
4945
4945
  try {
4946
4946
  return localStorage.getObject(
4947
- `${_.PRESENTATION}.${t.presentation}`
4947
+ `${O.PRESENTATION}.${t.presentation}`
4948
4948
  );
4949
4949
  } catch (i) {
4950
4950
  return console.warn(
4951
4951
  "%capi",
4952
4952
  o.API,
4953
- _.PRESENTATION,
4953
+ O.PRESENTATION,
4954
4954
  t.presentation,
4955
4955
  i
4956
4956
  ), {
@@ -4962,9 +4962,9 @@ class Un {
4962
4962
  };
4963
4963
  getPresentations = async () => {
4964
4964
  try {
4965
- return localStorage.getObject(`${_.PRESENTATION}.`);
4965
+ return localStorage.getObject(`${O.PRESENTATION}.`);
4966
4966
  } catch (t) {
4967
- return console.warn("%capi", o.API, _.PRESENTATION, t), {
4967
+ return console.warn("%capi", o.API, O.PRESENTATION, t), {
4968
4968
  data: null,
4969
4969
  message: `Presentations get error: ${t.message}`,
4970
4970
  success: !1
@@ -4974,7 +4974,7 @@ class Un {
4974
4974
  setPresentation = async (t) => {
4975
4975
  try {
4976
4976
  return localStorage.setObject(
4977
- `${_.PRESENTATION}.${t.data.id}`,
4977
+ `${O.PRESENTATION}.${t.data.id}`,
4978
4978
  t.data
4979
4979
  ), {
4980
4980
  data: null,
@@ -4982,7 +4982,7 @@ class Un {
4982
4982
  success: !0
4983
4983
  };
4984
4984
  } catch (i) {
4985
- return console.error("%cstorage", o.STORAGE, _.PRESENTATION, t, i), {
4985
+ return console.error("%cstorage", o.STORAGE, O.PRESENTATION, t, i), {
4986
4986
  data: null,
4987
4987
  message: `Presentation ${t.data.id} save error: ${i.message}`,
4988
4988
  success: !1
@@ -4991,9 +4991,9 @@ class Un {
4991
4991
  };
4992
4992
  getPreference = async (t) => {
4993
4993
  try {
4994
- return localStorage.getObject(`${_.PREFERENCE}.${t.id}`);
4994
+ return localStorage.getObject(`${O.PREFERENCE}.${t.id}`);
4995
4995
  } catch (i) {
4996
- return console.warn("%capi", o.API, _.PREFERENCE, t.id, i), {
4996
+ return console.warn("%capi", o.API, O.PREFERENCE, t.id, i), {
4997
4997
  data: null,
4998
4998
  message: `Preference ${t.id} load error: ${i.message}`,
4999
4999
  success: !1
@@ -5002,9 +5002,9 @@ class Un {
5002
5002
  };
5003
5003
  getPreferences = async () => {
5004
5004
  try {
5005
- return localStorage.getObject(`${_.PREFERENCE}.`);
5005
+ return localStorage.getObject(`${O.PREFERENCE}.`);
5006
5006
  } catch (t) {
5007
- return console.warn("%capi", o.API, _.PREFERENCE, t), {
5007
+ return console.warn("%capi", o.API, O.PREFERENCE, t), {
5008
5008
  data: null,
5009
5009
  message: `Preference get error: ${t.message}`,
5010
5010
  success: !1
@@ -5014,7 +5014,7 @@ class Un {
5014
5014
  setPreference = async (t) => {
5015
5015
  try {
5016
5016
  return localStorage.setObject(
5017
- `${_.PREFERENCE}.${t.id}`,
5017
+ `${O.PREFERENCE}.${t.id}`,
5018
5018
  t.value
5019
5019
  ), {
5020
5020
  data: null,
@@ -5025,7 +5025,7 @@ class Un {
5025
5025
  return console.error(
5026
5026
  "%cstorage",
5027
5027
  o.STORAGE,
5028
- _.PREFERENCE,
5028
+ O.PREFERENCE,
5029
5029
  t,
5030
5030
  i
5031
5031
  ), {
@@ -5070,7 +5070,7 @@ class Wn {
5070
5070
  return console.warn(
5071
5071
  "%capi",
5072
5072
  o.API,
5073
- _.CLOUD,
5073
+ O.CLOUD,
5074
5074
  t.slide,
5075
5075
  t.widget,
5076
5076
  l
@@ -5085,7 +5085,7 @@ class Wn {
5085
5085
  return console.warn(
5086
5086
  "%capi",
5087
5087
  o.API,
5088
- _.SERIES,
5088
+ O.SERIES,
5089
5089
  t.slide,
5090
5090
  t.widget,
5091
5091
  l
@@ -5100,7 +5100,7 @@ class Wn {
5100
5100
  return console.warn(
5101
5101
  "%capi",
5102
5102
  o.API,
5103
- _.MESSAGES,
5103
+ O.MESSAGES,
5104
5104
  t.slide,
5105
5105
  t.widget,
5106
5106
  l
@@ -5118,7 +5118,7 @@ class Wn {
5118
5118
  try {
5119
5119
  return sessionStorage.setObject(l, i), 201;
5120
5120
  } catch (g) {
5121
- return console.error("%cstorage", o.STORAGE, _.CLOUD, t, g), 400;
5121
+ return console.error("%cstorage", o.STORAGE, O.CLOUD, t, g), 400;
5122
5122
  }
5123
5123
  };
5124
5124
  /**
@@ -5132,7 +5132,7 @@ class Wn {
5132
5132
  try {
5133
5133
  return sessionStorage.setObject(l, i), 201;
5134
5134
  } catch (g) {
5135
- return console.error("%cstorage", o.STORAGE, _.SERIES, t, g), 400;
5135
+ return console.error("%cstorage", o.STORAGE, O.SERIES, t, g), 400;
5136
5136
  }
5137
5137
  };
5138
5138
  /**
@@ -5146,7 +5146,7 @@ class Wn {
5146
5146
  try {
5147
5147
  return sessionStorage.setObject(l, i), 200;
5148
5148
  } catch (g) {
5149
- return console.error("%cstorage", o.STORAGE, _.MESSAGES, t, g), 400;
5149
+ return console.error("%cstorage", o.STORAGE, O.MESSAGES, t, g), 400;
5150
5150
  }
5151
5151
  };
5152
5152
  cleanMessages = async (t) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((i) => i(0)));
@@ -5157,9 +5157,9 @@ class Wn {
5157
5157
  };
5158
5158
  getDashboard = async (t) => {
5159
5159
  try {
5160
- return sessionStorage.getObject(`${_.DASHBOARD}.${t.id}`);
5160
+ return sessionStorage.getObject(`${O.DASHBOARD}.${t.id}`);
5161
5161
  } catch (i) {
5162
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
5162
+ return console.warn("%capi", o.API, O.SLIDE, t.id, i), {
5163
5163
  data: null,
5164
5164
  message: `Dashboard ${t.id} load error: ${i.message}`,
5165
5165
  success: !1
@@ -5172,7 +5172,7 @@ class Wn {
5172
5172
  success: !1
5173
5173
  });
5174
5174
  setDashboard = async (t) => {
5175
- const i = `${_.DASHBOARD}.${t.dashboard}`;
5175
+ const i = `${O.DASHBOARD}.${t.dashboard}`;
5176
5176
  try {
5177
5177
  return sessionStorage.setObject(i, t), {
5178
5178
  data: null,
@@ -5180,7 +5180,7 @@ class Wn {
5180
5180
  success: !0
5181
5181
  };
5182
5182
  } catch (l) {
5183
- return console.error("%cstorage", o.STORAGE, _.WIDGET, t, l), {
5183
+ return console.error("%cstorage", o.STORAGE, O.WIDGET, t, l), {
5184
5184
  data: null,
5185
5185
  message: `Dashboard ${t.data.id} save error: ${l.message}`,
5186
5186
  success: !1
@@ -5189,9 +5189,9 @@ class Wn {
5189
5189
  };
5190
5190
  getWidget = async (t) => {
5191
5191
  try {
5192
- return sessionStorage.getObject(`${_.WIDGET}.${t.id}`);
5192
+ return sessionStorage.getObject(`${O.WIDGET}.${t.id}`);
5193
5193
  } catch (i) {
5194
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
5194
+ return console.warn("%capi", o.API, O.SLIDE, t.id, i), {
5195
5195
  data: null,
5196
5196
  message: `Widget ${t.id} load error: ${i.message}`,
5197
5197
  success: !1
@@ -5212,7 +5212,7 @@ class Wn {
5212
5212
  success: !0
5213
5213
  };
5214
5214
  } catch (l) {
5215
- return console.error("%cstorage", o.STORAGE, _.WIDGET, t, l), {
5215
+ return console.error("%cstorage", o.STORAGE, O.WIDGET, t, l), {
5216
5216
  data: null,
5217
5217
  message: `Slide ${t.data.id} save error: ${l.message}`,
5218
5218
  success: !1
@@ -5224,7 +5224,7 @@ class Wn {
5224
5224
  * @param query IQuery
5225
5225
  * @returns null
5226
5226
  */
5227
- subscribe = (t) => (t.type === _.MESSAGES && (t = _t(this.options, t)), this.subscribers.filter(
5227
+ subscribe = (t) => (t.type === O.MESSAGES && (t = _t(this.options, t)), this.subscribers.filter(
5228
5228
  (l) => l.widget === t.widget
5229
5229
  ).length || (console.debug(
5230
5230
  "%cstorage%c %csubscribe",
@@ -5241,9 +5241,9 @@ class Wn {
5241
5241
  getSubscribers = async () => await new Promise((t) => t(this.subscribers));
5242
5242
  getSlide = async (t) => {
5243
5243
  try {
5244
- return sessionStorage.getObject(`${_.SLIDE}.${t.id}`);
5244
+ return sessionStorage.getObject(`${O.SLIDE}.${t.id}`);
5245
5245
  } catch (i) {
5246
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
5246
+ return console.warn("%capi", o.API, O.SLIDE, t.id, i), {
5247
5247
  data: null,
5248
5248
  message: `Slide ${t.id} load error: ${i.message}`,
5249
5249
  success: !1
@@ -5252,9 +5252,9 @@ class Wn {
5252
5252
  };
5253
5253
  getSlides = async (t) => {
5254
5254
  try {
5255
- return sessionStorage.getObject(`${_.SLIDE}.${t.id}`);
5255
+ return sessionStorage.getObject(`${O.SLIDE}.${t.id}`);
5256
5256
  } catch (i) {
5257
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
5257
+ return console.warn("%capi", o.API, O.SLIDE, t.id, i), {
5258
5258
  data: null,
5259
5259
  message: `Slide ${t.id} load error: ${i.message}`,
5260
5260
  success: !1
@@ -5268,7 +5268,7 @@ class Wn {
5268
5268
  */
5269
5269
  setSlide = async (t) => {
5270
5270
  try {
5271
- return sessionStorage.setObject(`${_.SLIDE}.${t.data.id}`, {
5271
+ return sessionStorage.setObject(`${O.SLIDE}.${t.data.id}`, {
5272
5272
  id: t.data.id,
5273
5273
  title: t.data.title || "Not set",
5274
5274
  json: t.data.json || {},
@@ -5279,7 +5279,7 @@ class Wn {
5279
5279
  success: !0
5280
5280
  };
5281
5281
  } catch (i) {
5282
- return console.error("%cstorage", o.STORAGE, _.SLIDE, t, i), {
5282
+ return console.error("%cstorage", o.STORAGE, O.SLIDE, t, i), {
5283
5283
  data: null,
5284
5284
  message: `Slide ${t.data.id} save error: ${i.message}`,
5285
5285
  success: !1
@@ -5289,13 +5289,13 @@ class Wn {
5289
5289
  getPresentation = async (t) => {
5290
5290
  try {
5291
5291
  return sessionStorage.getObject(
5292
- `${_.PRESENTATION}.${t.presentation}`
5292
+ `${O.PRESENTATION}.${t.presentation}`
5293
5293
  );
5294
5294
  } catch (i) {
5295
5295
  return console.warn(
5296
5296
  "%capi",
5297
5297
  o.API,
5298
- _.PRESENTATION,
5298
+ O.PRESENTATION,
5299
5299
  t.presentation,
5300
5300
  i
5301
5301
  ), {
@@ -5307,9 +5307,9 @@ class Wn {
5307
5307
  };
5308
5308
  getPresentations = async () => {
5309
5309
  try {
5310
- return sessionStorage.getObject(`${_.PRESENTATION}.`);
5310
+ return sessionStorage.getObject(`${O.PRESENTATION}.`);
5311
5311
  } catch (t) {
5312
- return console.warn("%capi", o.API, _.PRESENTATION, t), {
5312
+ return console.warn("%capi", o.API, O.PRESENTATION, t), {
5313
5313
  data: null,
5314
5314
  message: `Presentations get error: ${t.message}`,
5315
5315
  success: !1
@@ -5319,7 +5319,7 @@ class Wn {
5319
5319
  setPresentation = async (t) => {
5320
5320
  try {
5321
5321
  return sessionStorage.setObject(
5322
- `${_.PRESENTATION}.${t.data.id}`,
5322
+ `${O.PRESENTATION}.${t.data.id}`,
5323
5323
  t.data
5324
5324
  ), {
5325
5325
  data: null,
@@ -5327,7 +5327,7 @@ class Wn {
5327
5327
  success: !0
5328
5328
  };
5329
5329
  } catch (i) {
5330
- return console.error("%cstorage", o.STORAGE, _.PRESENTATION, t, i), {
5330
+ return console.error("%cstorage", o.STORAGE, O.PRESENTATION, t, i), {
5331
5331
  data: null,
5332
5332
  message: `Presentation ${t.data.id} save error: ${i.message}`,
5333
5333
  success: !1
@@ -5336,9 +5336,9 @@ class Wn {
5336
5336
  };
5337
5337
  getPreference = async (t) => {
5338
5338
  try {
5339
- return sessionStorage.getObject(`${_.PREFERENCE}.${t.id}`);
5339
+ return sessionStorage.getObject(`${O.PREFERENCE}.${t.id}`);
5340
5340
  } catch (i) {
5341
- return console.warn("%capi", o.API, _.PREFERENCE, t.id, i), {
5341
+ return console.warn("%capi", o.API, O.PREFERENCE, t.id, i), {
5342
5342
  data: null,
5343
5343
  message: `Preference ${t.id} load error: ${i.message}`,
5344
5344
  success: !1
@@ -5347,9 +5347,9 @@ class Wn {
5347
5347
  };
5348
5348
  getPreferences = async () => {
5349
5349
  try {
5350
- return sessionStorage.getObject(`${_.PREFERENCE}`);
5350
+ return sessionStorage.getObject(`${O.PREFERENCE}`);
5351
5351
  } catch (t) {
5352
- return console.warn("%capi", o.API, _.PREFERENCE, t), {
5352
+ return console.warn("%capi", o.API, O.PREFERENCE, t), {
5353
5353
  data: null,
5354
5354
  message: `Preferences get error: ${t.message}`,
5355
5355
  success: !1
@@ -5359,7 +5359,7 @@ class Wn {
5359
5359
  setPreference = async (t) => {
5360
5360
  try {
5361
5361
  return sessionStorage.setObject(
5362
- `${_.PREFERENCE}.${t.id}`,
5362
+ `${O.PREFERENCE}.${t.id}`,
5363
5363
  t.value
5364
5364
  ), {
5365
5365
  data: null,
@@ -5370,7 +5370,7 @@ class Wn {
5370
5370
  return console.error(
5371
5371
  "%cstorage",
5372
5372
  o.STORAGE,
5373
- _.PREFERENCE,
5373
+ O.PREFERENCE,
5374
5374
  t,
5375
5375
  i
5376
5376
  ), {
@@ -5410,7 +5410,7 @@ class Fn {
5410
5410
  return console.warn(
5411
5411
  "%capi",
5412
5412
  o.API,
5413
- _.CLOUD,
5413
+ O.CLOUD,
5414
5414
  t.slide,
5415
5415
  t.widget,
5416
5416
  l
@@ -5425,7 +5425,7 @@ class Fn {
5425
5425
  return console.warn(
5426
5426
  "%capi",
5427
5427
  o.API,
5428
- _.SERIES,
5428
+ O.SERIES,
5429
5429
  t.slide,
5430
5430
  t.widget,
5431
5431
  l
@@ -5440,7 +5440,7 @@ class Fn {
5440
5440
  return console.warn(
5441
5441
  "%capi",
5442
5442
  o.API,
5443
- _.MESSAGES,
5443
+ O.MESSAGES,
5444
5444
  t.slide,
5445
5445
  t.widget,
5446
5446
  l
@@ -5499,7 +5499,7 @@ class Fn {
5499
5499
  try {
5500
5500
  return window.__bc.DashboardData[t.id];
5501
5501
  } catch (i) {
5502
- return console.warn("%capi", o.API, _.DASHBOARD, t.id, i), {
5502
+ return console.warn("%capi", o.API, O.DASHBOARD, t.id, i), {
5503
5503
  data: null,
5504
5504
  message: `Dashboard ${t.id} load error: ${i.message}`,
5505
5505
  success: !1
@@ -5520,7 +5520,7 @@ class Fn {
5520
5520
  success: !0
5521
5521
  };
5522
5522
  } catch (l) {
5523
- return console.error("%cstorage", o.STORAGE, _.DASHBOARD, t, l), {
5523
+ return console.error("%cstorage", o.STORAGE, O.DASHBOARD, t, l), {
5524
5524
  data: null,
5525
5525
  message: `Dashboard ${t.data.id} save error: ${l.message}`,
5526
5526
  success: !1
@@ -5531,7 +5531,7 @@ class Fn {
5531
5531
  try {
5532
5532
  return window.__bc.WidgetData[t.id];
5533
5533
  } catch (i) {
5534
- return console.warn("%capi", o.API, _.WIDGET, t.id, i), {
5534
+ return console.warn("%capi", o.API, O.WIDGET, t.id, i), {
5535
5535
  data: null,
5536
5536
  message: `Widget ${t.id} load error: ${i.message}`,
5537
5537
  success: !1
@@ -5552,7 +5552,7 @@ class Fn {
5552
5552
  success: !0
5553
5553
  };
5554
5554
  } catch (l) {
5555
- return console.error("%cstorage", o.STORAGE, _.WIDGET, t, l), {
5555
+ return console.error("%cstorage", o.STORAGE, O.WIDGET, t, l), {
5556
5556
  data: null,
5557
5557
  message: `Slide ${t.data.id} save error: ${l.message}`,
5558
5558
  success: !1
@@ -5564,7 +5564,7 @@ class Fn {
5564
5564
  * @param query IQuery
5565
5565
  * @returns null
5566
5566
  */
5567
- subscribe = (t) => (t.type === _.MESSAGES && (t = _t(this.options, t)), this.subscribers.filter(
5567
+ subscribe = (t) => (t.type === O.MESSAGES && (t = _t(this.options, t)), this.subscribers.filter(
5568
5568
  (l) => l.widget === t.widget
5569
5569
  ).length || (console.debug(
5570
5570
  "%cstorage%c %csubscribe",
@@ -5583,7 +5583,7 @@ class Fn {
5583
5583
  try {
5584
5584
  return window.__bc.SlideData[t.id];
5585
5585
  } catch (i) {
5586
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
5586
+ return console.warn("%capi", o.API, O.SLIDE, t.id, i), {
5587
5587
  data: null,
5588
5588
  message: `Slide ${t.id} load error: ${i.message}`,
5589
5589
  success: !1
@@ -5599,7 +5599,7 @@ class Fn {
5599
5599
  return console.warn(
5600
5600
  "%capi",
5601
5601
  o.API,
5602
- _.PRESENTATION,
5602
+ O.PRESENTATION,
5603
5603
  t.presentation_id,
5604
5604
  i
5605
5605
  ), {
@@ -5622,7 +5622,7 @@ class Fn {
5622
5622
  success: !0
5623
5623
  };
5624
5624
  } catch (i) {
5625
- return console.error("%cstorage", o.STORAGE, _.SLIDE, t, i), {
5625
+ return console.error("%cstorage", o.STORAGE, O.SLIDE, t, i), {
5626
5626
  data: null,
5627
5627
  message: `Slide ${t.data.id} save error: ${i.message}`,
5628
5628
  success: !1
@@ -5637,7 +5637,7 @@ class Fn {
5637
5637
  return console.warn(
5638
5638
  "%capi",
5639
5639
  o.API,
5640
- _.PRESENTATION,
5640
+ O.PRESENTATION,
5641
5641
  t.presentation,
5642
5642
  i
5643
5643
  ), {
@@ -5651,7 +5651,7 @@ class Fn {
5651
5651
  try {
5652
5652
  return window.__bc.PresentationData;
5653
5653
  } catch (t) {
5654
- return console.warn("%capi", o.API, _.PRESENTATION, t), {
5654
+ return console.warn("%capi", o.API, O.PRESENTATION, t), {
5655
5655
  data: null,
5656
5656
  message: `Presentations get error: ${t.message}`,
5657
5657
  success: !1
@@ -5666,7 +5666,7 @@ class Fn {
5666
5666
  success: !0
5667
5667
  };
5668
5668
  } catch (i) {
5669
- return console.error("%cstorage", o.STORAGE, _.PRESENTATION, t, i), {
5669
+ return console.error("%cstorage", o.STORAGE, O.PRESENTATION, t, i), {
5670
5670
  data: null,
5671
5671
  message: `Presentation ${t.data.id} save error: ${i.message}`,
5672
5672
  success: !1
@@ -5677,7 +5677,7 @@ class Fn {
5677
5677
  try {
5678
5678
  return window.__bc.Preferences[t.id];
5679
5679
  } catch (i) {
5680
- return console.warn("%capi", o.API, _.PREFERENCE, t.id, i), {
5680
+ return console.warn("%capi", o.API, O.PREFERENCE, t.id, i), {
5681
5681
  data: null,
5682
5682
  message: `Preference ${t.id} load error: ${i.message}`,
5683
5683
  success: !1
@@ -5688,7 +5688,7 @@ class Fn {
5688
5688
  try {
5689
5689
  return window.__bc.Preferences;
5690
5690
  } catch (t) {
5691
- return console.warn("%capi", o.API, _.PREFERENCE, t), {
5691
+ return console.warn("%capi", o.API, O.PREFERENCE, t), {
5692
5692
  data: null,
5693
5693
  message: `Preferences get error: ${t.message}`,
5694
5694
  success: !1
@@ -5706,7 +5706,7 @@ class Fn {
5706
5706
  return console.error(
5707
5707
  "%cstorage",
5708
5708
  o.STORAGE,
5709
- _.PREFERENCE,
5709
+ O.PREFERENCE,
5710
5710
  t,
5711
5711
  i
5712
5712
  ), {
@@ -5789,7 +5789,7 @@ class rs {
5789
5789
  if (t.success === !0) {
5790
5790
  const D = t.query;
5791
5791
  switch (D.type) {
5792
- case _.MESSAGES:
5792
+ case O.MESSAGES:
5793
5793
  b = await this.sm?.getHash(D), b === "none" && (D.hash = "temp", await this.sm?.createHash(D)), t.data.messages = t.data.messages.filter(
5794
5794
  (x) => x.id !== null
5795
5795
  ), g = t.data.messages.length > 0 ? Ur(t.data.messages[0].utc) : "none", b === g ? (G(3, [
@@ -5803,7 +5803,7 @@ class rs {
5803
5803
  `same hash:${g}`
5804
5804
  ]), l.code = 204) : this.sm !== null ? (D.hash = g, await this.sm?.setHash(D), l.code = await this.sm.setMessages(t.query, t).then(async (x) => (this.broadcastUpdate(x, t), x)).catch((x) => 500)) : l.code = 500;
5805
5805
  break;
5806
- case _.CLOUD:
5806
+ case O.CLOUD:
5807
5807
  b = await this.sm?.getHash(D), b === "none" && (D.hash = "temp", await this.sm?.createHash(D)), g = Ur(t.data.cloud), b === g ? (G(3, [
5808
5808
  "%cset%c %cstorage%c %ccloud",
5809
5809
  o.NO_UPDATES,
@@ -5828,7 +5828,7 @@ class rs {
5828
5828
  query: t.query
5829
5829
  }, this.sm !== null ? l.code = await this.sm.setCloud(t.query, i.data).then((x) => (this.broadcastUpdate(x, t), x)).catch((x) => 500) : l.code = 500);
5830
5830
  break;
5831
- case _.SERIES:
5831
+ case O.SERIES:
5832
5832
  b = await this.sm?.getHash(D), b === "none" && (D.hash = "temp", await this.sm?.createHash(D)), g = Ur(t.data.series), b === g ? (G(3, [
5833
5833
  "%cset%c %cstorage%c %cseries",
5834
5834
  o.NO_UPDATES,
@@ -5872,11 +5872,11 @@ class rs {
5872
5872
  o.NO_UPDATES,
5873
5873
  t.query
5874
5874
  ]), t.query.type) {
5875
- case _.MESSAGES:
5875
+ case O.MESSAGES:
5876
5876
  return this.sm !== null ? await this.sm?.getMessages(t.query).then((D) => (this.broadcastUpdate(201, D), { code: 201, hash: g })) : { code: 500, hash: g };
5877
- case _.CLOUD:
5877
+ case O.CLOUD:
5878
5878
  return this.sm !== null ? await this.sm?.getCloud(t.query).then((D) => (this.broadcastUpdate(201, D), { code: 201, hash: g })) : { code: 500, hash: g };
5879
- case _.SERIES:
5879
+ case O.SERIES:
5880
5880
  return this.sm !== null ? await this.sm?.getSeries(t.query).then((D) => (this.broadcastUpdate(201, D), { code: 201, hash: g })) : { code: 500, hash: g };
5881
5881
  }
5882
5882
  return t = null, l;
@@ -6071,7 +6071,7 @@ class Fa {
6071
6071
  * @param query Widgets parameters, type "cloud"
6072
6072
  * @returns IResponse
6073
6073
  */
6074
- getCloud = async (t) => t.type !== _.CLOUD ? (console.warn(
6074
+ getCloud = async (t) => t.type !== O.CLOUD ? (console.warn(
6075
6075
  "%cget%c %cstorage%c %ccloud",
6076
6076
  o.KO,
6077
6077
  o.NONE,
@@ -6091,7 +6091,7 @@ class Fa {
6091
6091
  * @param query Widgets parameters, type "messages"
6092
6092
  * @returns IResponse
6093
6093
  */
6094
- getMessages = async (t) => t.type !== _.MESSAGES ? (console.warn(
6094
+ getMessages = async (t) => t.type !== O.MESSAGES ? (console.warn(
6095
6095
  "%cget%c %cstorage%c %cmessages",
6096
6096
  o.KO,
6097
6097
  o.NONE,
@@ -6111,7 +6111,7 @@ class Fa {
6111
6111
  * @param query Widgets parameters, type "series"
6112
6112
  * @returns IResponse
6113
6113
  */
6114
- getSeries = async (t) => t.type !== _.SERIES ? (console.warn(
6114
+ getSeries = async (t) => t.type !== O.SERIES ? (console.warn(
6115
6115
  "%cget%c %cstorage%c %cseries",
6116
6116
  o.KO,
6117
6117
  o.NONE,
@@ -6219,11 +6219,11 @@ class ns {
6219
6219
  */
6220
6220
  getData = async () => {
6221
6221
  switch (this.query.type) {
6222
- case _.CLOUD:
6222
+ case O.CLOUD:
6223
6223
  return await this.getCloud();
6224
- case _.MESSAGES:
6224
+ case O.MESSAGES:
6225
6225
  return await this.getMessages();
6226
- case _.SERIES:
6226
+ case O.SERIES:
6227
6227
  return await this.getSeries();
6228
6228
  }
6229
6229
  return {
@@ -6238,7 +6238,7 @@ class ns {
6238
6238
  *
6239
6239
  * @returns IResponse
6240
6240
  */
6241
- getCloud = async () => this.query.type !== _.CLOUD ? (G(3, [
6241
+ getCloud = async () => this.query.type !== O.CLOUD ? (G(3, [
6242
6242
  "%cget%c %cstorage%c %cwidget",
6243
6243
  o.KO,
6244
6244
  o.NONE,
@@ -6265,7 +6265,7 @@ class ns {
6265
6265
  *
6266
6266
  * @returns IResponse
6267
6267
  */
6268
- getMessages = async () => this.query.type !== _.MESSAGES ? (G(3, [
6268
+ getMessages = async () => this.query.type !== O.MESSAGES ? (G(3, [
6269
6269
  "%cget%c %cstorage%c %cwidget",
6270
6270
  o.KO,
6271
6271
  o.NONE,
@@ -6291,7 +6291,7 @@ class ns {
6291
6291
  *
6292
6292
  * @returns IResponse
6293
6293
  */
6294
- getSeries = async () => this.query.type !== _.SERIES ? (G(3, [
6294
+ getSeries = async () => this.query.type !== O.SERIES ? (G(3, [
6295
6295
  "%cget%c %cstorage%c %cwidget",
6296
6296
  o.KO,
6297
6297
  o.NONE,