buzzcasting-storage 3.14.5 → 3.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var _ = /* @__PURE__ */ ((f) => (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:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", f.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", f))(o || {}), X = /* @__PURE__ */ ((f) => (f.ADD_SLIDE = "addSlide", f.APP_READY = "appReady", f.API_UPDATE = "apiUpdate", f.BACKGROUND_UPDATE = "backgroundUpdate", f.COMPONENT_UPDATE = "componentUpdate", f.WS_API_REQUEST = "wsApiRequest", f.WS_API_RESPONSE = "wsApiResponse", f.WS_API_UPDATE = "wsApiRUpdate", 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.PREFEENCE_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.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))(X || {}), qt = /* @__PURE__ */ ((f) => (f.APPROVED = "approved", f.BEFORE = "before", f.DELAYED = "delayed", f.NONE = "none", f.REALTIME = "realtime", f))(qt || {}), pe = /* @__PURE__ */ ((f) => (f.KEYVAL = "keyval", f.LOCAL = "local", f.SESSION = "session", f.DEXIE = "dexie", f.WINDOW = "window", f))(pe || {});
1
+ var S = /* @__PURE__ */ ((f) => (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))(S || {}), 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:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", f.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", f))(o || {}), X = /* @__PURE__ */ ((f) => (f.ADD_SLIDE = "addSlide", f.APP_READY = "appReady", f.API_UPDATE = "apiUpdate", f.BACKGROUND_UPDATE = "backgroundUpdate", f.COMPONENT_UPDATE = "componentUpdate", f.WS_API_REQUEST = "wsApiRequest", f.WS_API_RESPONSE = "wsApiResponse", f.WS_API_UPDATE = "wsApiRUpdate", 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.PREFEENCE_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.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))(X || {}), qt = /* @__PURE__ */ ((f) => (f.APPROVED = "approved", f.BEFORE = "before", f.DELAYED = "delayed", f.NONE = "none", f.REALTIME = "realtime", f))(qt || {}), pe = /* @__PURE__ */ ((f) => (f.KEYVAL = "keyval", f.LOCAL = "local", f.SESSION = "session", f.DEXIE = "dexie", f.WINDOW = "window", f))(pe || {});
2
2
  function Pa(f) {
3
3
  const t = {};
4
4
  for (let i = 0; i < f.length; i++) {
@@ -7,11 +7,11 @@ function Pa(f) {
7
7
  }
8
8
  return t;
9
9
  }
10
- function Da(f) {
10
+ function Na(f) {
11
11
  const t = document.createRange();
12
12
  t.selectNodeContents(f), t.deleteContents();
13
13
  }
14
- function Na(f, t) {
14
+ function Da(f, t) {
15
15
  for (; f.length < t; )
16
16
  f = `0${f}`;
17
17
  return f;
@@ -54,8 +54,8 @@ function jn(f, t, i, l) {
54
54
  function Ta(f) {
55
55
  return Object.prototype.toString.call(f);
56
56
  }
57
- function er(f) {
58
- return Na(jn(0, f, "", []).toString(16), 8);
57
+ function Ur(f) {
58
+ return Da(jn(0, f, "", []).toString(16), 8);
59
59
  }
60
60
  const at = (f) => {
61
61
  let t = {}, i = f.split(",");
@@ -76,7 +76,7 @@ at(
76
76
  "checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"
77
77
  );
78
78
  at("script,style");
79
- const K = (f = 0, t) => {
79
+ const M = (f = 0, t) => {
80
80
  switch (!0) {
81
81
  case f > 3:
82
82
  console.debug(...t);
@@ -91,13 +91,13 @@ const K = (f = 0, t) => {
91
91
  console.error(...t);
92
92
  break;
93
93
  }
94
- }, Wr = (f) => {
94
+ }, tr = (f) => {
95
95
  switch (f?.type) {
96
- case _.MESSAGES:
96
+ case S.MESSAGES:
97
97
  return o.MESSAGES;
98
- case _.SERIES:
98
+ case S.SERIES:
99
99
  return o.SERIES;
100
- case _.CLOUD:
100
+ case S.CLOUD:
101
101
  return o.CLOUD;
102
102
  default:
103
103
  return o.NO_UPDATES;
@@ -131,7 +131,7 @@ function St(f, t) {
131
131
  }
132
132
  return t;
133
133
  }
134
- const xa = "3.14.4";
134
+ const xa = "3.14.6";
135
135
  class ka {
136
136
  options;
137
137
  url;
@@ -174,17 +174,17 @@ class ka {
174
174
  const b = Object.keys(g).length > 0 ? `?${new URLSearchParams(g).toString()}` : "";
175
175
  let I = "";
176
176
  switch (t.type) {
177
- case _.MESSAGES:
177
+ case S.MESSAGES:
178
178
  I = o.MESSAGES;
179
179
  break;
180
- case _.SERIES:
180
+ case S.SERIES:
181
181
  I = o.SERIES;
182
182
  break;
183
- case _.CLOUD:
183
+ case S.CLOUD:
184
184
  I = o.CLOUD;
185
185
  break;
186
186
  }
187
- return K(3, [
187
+ return M(3, [
188
188
  `%cfetch%c %capi%c %c${t.type}`,
189
189
  o.OK,
190
190
  o.NONE,
@@ -244,7 +244,7 @@ class ka {
244
244
  }
245
245
  async loadSlide(t) {
246
246
  const { version: i } = this.options, l = this.headers(), g = Object.assign({}, t);
247
- return delete g.type, delete g.hash, K(3, [
247
+ return delete g.type, delete g.hash, M(3, [
248
248
  "%cload%c %capi%c %cslide",
249
249
  o.OK,
250
250
  o.NONE,
@@ -277,7 +277,7 @@ class ka {
277
277
  const { version: i } = this.options, l = this.formHeaders();
278
278
  delete t.update, delete t.type;
279
279
  const g = JSON.stringify(t);
280
- return K(3, [
280
+ return M(3, [
281
281
  "%cput%c %capi%c %cslide",
282
282
  o.OK,
283
283
  o.NONE,
@@ -297,7 +297,7 @@ class ka {
297
297
  }
298
298
  async loadPresentation(t) {
299
299
  const { version: i } = this.options, l = this.headers();
300
- return delete t.update, K(3, [
300
+ return delete t.update, M(3, [
301
301
  "%cload%c %capi%c %cpresentation",
302
302
  o.OK,
303
303
  o.NONE,
@@ -306,7 +306,7 @@ class ka {
306
306
  o.PRESENTATION,
307
307
  t.id
308
308
  ]), await fetch(
309
- [this.url, "api", i, _.PRESENTATIONS, t.id].join("/"),
309
+ [this.url, "api", i, S.PRESENTATIONS, t.id].join("/"),
310
310
  { ...l, method: "get" }
311
311
  ).then(async (g) => {
312
312
  if (!g.ok)
@@ -328,8 +328,8 @@ class ka {
328
328
  const { version: i } = this.options, l = this.formHeaders();
329
329
  delete t.update;
330
330
  const g = JSON.stringify(t);
331
- return K(2, ["%capi%c %cput", o.API, o.NONE, o.PRESENTATION, t.name]), await fetch(
332
- [this.url, "api", i, _.PRESENTATIONS, t.id].join("/"),
331
+ return M(2, ["%capi%c %cput", o.API, o.NONE, o.PRESENTATION, t.name]), await fetch(
332
+ [this.url, "api", i, S.PRESENTATIONS, t.id].join("/"),
333
333
  { ...l, body: g, method: "put" }
334
334
  ).then((b) => {
335
335
  if (!b.ok)
@@ -339,7 +339,7 @@ class ka {
339
339
  }
340
340
  async loadPreference(t) {
341
341
  const { version: i } = this.options, l = this.headers();
342
- return K(3, [
342
+ return M(3, [
343
343
  "%cload%c %capi%c %cpreference",
344
344
  o.OK,
345
345
  o.NONE,
@@ -348,7 +348,7 @@ class ka {
348
348
  o.APP,
349
349
  t.id
350
350
  ]), await fetch(
351
- [this.url, "api", i, _.PREFERENCES, t.id].join("/"),
351
+ [this.url, "api", i, S.PREFERENCES, t.id].join("/"),
352
352
  { ...l, method: "get" }
353
353
  ).then(async (g) => {
354
354
  if (!g.ok)
@@ -367,7 +367,7 @@ class ka {
367
367
  o.APP,
368
368
  t.id
369
369
  ), await fetch(
370
- [this.url, "api", i, _.PREFERENCES, t.id].join("/"),
370
+ [this.url, "api", i, S.PREFERENCES, t.id].join("/"),
371
371
  { ...l, body: g, method: "put" }
372
372
  ).then((b) => {
373
373
  if (!b.ok)
@@ -377,8 +377,8 @@ class ka {
377
377
  }
378
378
  async loadDashboards(t) {
379
379
  const { version: i } = this.options, l = this.headers();
380
- return K(3, ["%capi%c %cdashboards", o.API, o.NONE, o.WIDGET]), await fetch(
381
- [this.url, "api", i, _.WIDGETS, t?.id || ""].join("/"),
380
+ return M(3, ["%capi%c %cdashboards", o.API, o.NONE, o.WIDGET]), await fetch(
381
+ [this.url, "api", i, S.WIDGETS, t?.id || ""].join("/"),
382
382
  {
383
383
  ...l,
384
384
  method: "get"
@@ -403,7 +403,7 @@ class ka {
403
403
  o.NONE,
404
404
  o.WIDGET
405
405
  ), await fetch(
406
- `${[this.url, "api", i, _.IMAGES].join(
406
+ `${[this.url, "api", i, S.IMAGES].join(
407
407
  "/"
408
408
  )}?folder=${t}`,
409
409
  {
@@ -429,7 +429,7 @@ class ka {
429
429
  o.WIDGET,
430
430
  t.get("name")
431
431
  ), await fetch(
432
- `${[this.url, "api", i, _.IMAGES].join(
432
+ `${[this.url, "api", i, S.IMAGES].join(
433
433
  "/"
434
434
  )}?folder=${t.get("folder")}`,
435
435
  {
@@ -452,7 +452,7 @@ class ka {
452
452
  o.WIDGET,
453
453
  i
454
454
  ), await fetch(
455
- `${[this.url, "api", l, _.IMAGES, i].join(
455
+ `${[this.url, "api", l, S.IMAGES, i].join(
456
456
  "/"
457
457
  )}?folder=${t}`,
458
458
  { ...g, method: "delete" }
@@ -467,7 +467,7 @@ var Ca = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
467
467
  function $a(f) {
468
468
  return f && f.__esModule && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f;
469
469
  }
470
- var tr = { exports: {} }, ja = tr.exports, Cn;
470
+ var er = { exports: {} }, ja = er.exports, Cn;
471
471
  function Ga() {
472
472
  return Cn || (Cn = 1, function(f, t) {
473
473
  (function(i, l) {
@@ -490,14 +490,14 @@ function Ga() {
490
490
  return e.concat(a || Array.prototype.slice.call(r));
491
491
  }
492
492
  var b = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Ca, I = Object.keys, G = Array.isArray;
493
- function re(e, r) {
493
+ function te(e, r) {
494
494
  return typeof r != "object" || I(r).forEach(function(n) {
495
495
  e[n] = r[n];
496
496
  }), e;
497
497
  }
498
498
  typeof Promise > "u" || b.Promise || (b.Promise = Promise);
499
499
  var se = Object.getPrototypeOf, Ot = {}.hasOwnProperty;
500
- function q(e, r) {
500
+ function re(e, r) {
501
501
  return Ot.call(e, r);
502
502
  }
503
503
  function ge(e, r) {
@@ -507,7 +507,7 @@ function Ga() {
507
507
  }
508
508
  var Hr = Object.defineProperty;
509
509
  function Ae(e, r, n, a) {
510
- Hr(e, r, re(n && q(n, "get") && typeof n.get == "function" ? { get: n.get, set: n.set, configurable: !0 } : { value: n, configurable: !0, writable: !0 }, a));
510
+ Hr(e, r, te(n && re(n, "get") && typeof n.get == "function" ? { get: n.get, set: n.set, configurable: !0 } : { value: n, configurable: !0, writable: !0 }, a));
511
511
  }
512
512
  function Ve(e) {
513
513
  return { from: function(r) {
@@ -528,7 +528,7 @@ function Ga() {
528
528
  b.setImmediate ? setImmediate(e) : setTimeout(e, 0);
529
529
  }
530
530
  function ve(e, r) {
531
- if (typeof r == "string" && q(e, r)) return e[r];
531
+ if (typeof r == "string" && re(e, r)) return e[r];
532
532
  if (!r) return e;
533
533
  if (typeof r != "string") {
534
534
  for (var n = [], a = 0, s = r.length; a < s; ++a) {
@@ -549,12 +549,12 @@ function Ga() {
549
549
  for (var a = 0, s = r.length; a < s; ++a) le(e, r[a], n[a]);
550
550
  } else {
551
551
  var c, u, d = r.indexOf(".");
552
- d !== -1 ? (c = r.substr(0, d), (u = r.substr(d + 1)) === "" ? n === void 0 ? G(e) && !isNaN(parseInt(c)) ? e.splice(c, 1) : delete e[c] : e[c] = n : le(d = !(d = e[c]) || !q(e, c) ? e[c] = {} : d, u, n)) : n === void 0 ? G(e) && !isNaN(parseInt(r)) ? e.splice(r, 1) : delete e[r] : e[r] = n;
552
+ d !== -1 ? (c = r.substr(0, d), (u = r.substr(d + 1)) === "" ? n === void 0 ? G(e) && !isNaN(parseInt(c)) ? e.splice(c, 1) : delete e[c] : e[c] = n : le(d = !(d = e[c]) || !re(e, c) ? e[c] = {} : d, u, n)) : n === void 0 ? G(e) && !isNaN(parseInt(r)) ? e.splice(r, 1) : delete e[r] : e[r] = n;
553
553
  }
554
554
  }
555
555
  function Qr(e) {
556
556
  var r, n = {};
557
- for (r in e) q(e, r) && (n[r] = e[r]);
557
+ for (r in e) re(e, r) && (n[r] = e[r]);
558
558
  return n;
559
559
  }
560
560
  var zn = [].concat;
@@ -581,7 +581,7 @@ function Ga() {
581
581
  } else if (Jr.has(n.constructor)) a = n;
582
582
  else {
583
583
  var u, d = se(n);
584
- for (u in a = d === Object.prototype ? {} : Object.create(d), ot.set(n, a), n) q(n, u) && (a[u] = r(n[u]));
584
+ for (u in a = d === Object.prototype ? {} : Object.create(d), ot.set(n, a), n) re(n, u) && (a[u] = r(n[u]));
585
585
  }
586
586
  return a;
587
587
  }(e), ot = null, e;
@@ -695,9 +695,9 @@ function Ga() {
695
695
  function qn(e, r) {
696
696
  return e === Q ? r : function(n) {
697
697
  var a = e.apply(this, arguments);
698
- re(n, a);
698
+ te(n, a);
699
699
  var s = this.onsuccess, c = this.onerror;
700
- return this.onsuccess = null, this.onerror = null, n = r.apply(this, arguments), s && (this.onsuccess = this.onsuccess ? je(s, this.onsuccess) : s), c && (this.onerror = this.onerror ? je(c, this.onerror) : c), a === void 0 ? n === void 0 ? void 0 : n : re(a, n);
700
+ return this.onsuccess = null, this.onerror = null, n = r.apply(this, arguments), s && (this.onsuccess = this.onsuccess ? je(s, this.onsuccess) : s), c && (this.onerror = this.onerror ? je(c, this.onerror) : c), a === void 0 ? n === void 0 ? void 0 : n : te(a, n);
701
701
  };
702
702
  }
703
703
  function ea(e, r) {
@@ -728,8 +728,8 @@ function Ga() {
728
728
  var r = crypto.subtle.digest("SHA-512", new Uint8Array([0]));
729
729
  return [r, se(r), e];
730
730
  }(), ut = Ge[0], fe = Ge[1], Ge = Ge[2], fe = fe && fe.then, Me = ut && ut.constructor, ir = !!Ge, lt = function(e, r) {
731
- dt.push([e, r]), Dt && (queueMicrotask(ra), Dt = !1);
732
- }, cr = !0, Dt = !0, Ke = [], Nt = [], ur = it, Pe = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: Q, pgp: !1, env: {}, finalize: Q }, B = Pe, dt = [], Be = 0, It = [];
731
+ dt.push([e, r]), Nt && (queueMicrotask(ra), Nt = !1);
732
+ }, cr = !0, Nt = !0, Ke = [], Dt = [], ur = it, Pe = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: Q, pgp: !1, env: {}, finalize: Q }, B = Pe, dt = [], Be = 0, It = [];
733
733
  function j(e) {
734
734
  if (typeof this != "object") throw new TypeError("Promises must be constructed via new");
735
735
  this._listeners = [], this._lib = !1;
@@ -757,7 +757,7 @@ function Ga() {
757
757
  var lr = { get: function() {
758
758
  var e = B, r = kt;
759
759
  function n(a, s) {
760
- var c = this, u = !e.global && (e !== B || r !== kt), d = u && !Ne(), p = new j(function(y, w) {
760
+ var c = this, u = !e.global && (e !== B || r !== kt), d = u && !De(), p = new j(function(y, w) {
761
761
  hr(c, new rn(sn(a, e, u, d), sn(s, e, u, d), y, w, e));
762
762
  });
763
763
  return this._consoleTask && (p._consoleTask = this._consoleTask), p;
@@ -773,7 +773,7 @@ function Ga() {
773
773
  }
774
774
  function dr(e, r) {
775
775
  var n, a;
776
- Nt.push(r), e._state === null && (n = e._lib && Je(), r = ur(r), e._state = !1, e._value = r, a = e, Ke.some(function(s) {
776
+ Dt.push(r), e._state === null && (n = e._lib && Je(), r = ur(r), e._state = !1, e._value = r, a = e, Ke.some(function(s) {
777
777
  return s._value === a._value;
778
778
  }) || Ke.push(a), nn(e), n && Ze());
779
779
  }
@@ -796,9 +796,9 @@ function Ga() {
796
796
  function ta(e, r, n) {
797
797
  try {
798
798
  var a, s = r._value;
799
- !r._state && Nt.length && (Nt = []), a = me && r._consoleTask ? r._consoleTask.run(function() {
799
+ !r._state && Dt.length && (Dt = []), a = me && r._consoleTask ? r._consoleTask.run(function() {
800
800
  return e(s);
801
- }) : e(s), r._state || Nt.indexOf(s) !== -1 || function(c) {
801
+ }) : e(s), r._state || Dt.indexOf(s) !== -1 || function(c) {
802
802
  for (var u = Ke.length; u; ) if (Ke[--u]._value === c._value) return Ke.splice(u, 1);
803
803
  }(r), n.resolve(a);
804
804
  } catch (c) {
@@ -814,7 +814,7 @@ function Ga() {
814
814
  }
815
815
  function Je() {
816
816
  var e = cr;
817
- return Dt = cr = !1, e;
817
+ return Nt = cr = !1, e;
818
818
  }
819
819
  function Ze() {
820
820
  var e, r, n;
@@ -824,7 +824,7 @@ function Ga() {
824
824
  a[0].apply(null, a[1]);
825
825
  }
826
826
  while (0 < dt.length);
827
- Dt = cr = !0;
827
+ Nt = cr = !0;
828
828
  }
829
829
  function fr() {
830
830
  var e = Ke;
@@ -905,7 +905,7 @@ function Ga() {
905
905
  return B = e;
906
906
  } }, totalEchoes: { get: function() {
907
907
  return kt;
908
- } }, newPSD: De, usePSD: Le, scheduler: { get: function() {
908
+ } }, newPSD: Ne, usePSD: Le, scheduler: { get: function() {
909
909
  return lt;
910
910
  }, set: function(e) {
911
911
  lt = e;
@@ -915,7 +915,7 @@ function Ga() {
915
915
  ur = e;
916
916
  } }, follow: function(e, r) {
917
917
  return new j(function(n, a) {
918
- return De(function(s, c) {
918
+ return Ne(function(s, c) {
919
919
  var u = B;
920
920
  u.unhandleds = [], u.onunhandled = c, u.finalize = je(function() {
921
921
  var d, p = this;
@@ -959,23 +959,23 @@ function Ga() {
959
959
  });
960
960
  }), Me.withResolvers && (j.withResolvers = Me.withResolvers));
961
961
  var ne = { awaits: 0, echoes: 0, id: 0 }, na = 0, Rt = [], xt = 0, kt = 0, aa = 0;
962
- function De(e, r, n, a) {
962
+ function Ne(e, r, n, a) {
963
963
  var s = B, c = Object.create(s);
964
- return c.parent = s, c.ref = 0, c.global = !1, c.id = ++aa, Pe.env, c.env = ir ? { Promise: j, PromiseProp: { value: j, configurable: !0, writable: !0 }, all: j.all, race: j.race, allSettled: j.allSettled, any: j.any, resolve: j.resolve, reject: j.reject } : {}, r && re(c, r), ++s.ref, c.finalize = function() {
964
+ return c.parent = s, c.ref = 0, c.global = !1, c.id = ++aa, Pe.env, c.env = ir ? { Promise: j, PromiseProp: { value: j, configurable: !0, writable: !0 }, all: j.all, race: j.race, allSettled: j.allSettled, any: j.any, resolve: j.resolve, reject: j.reject } : {}, r && te(c, r), ++s.ref, c.finalize = function() {
965
965
  --this.parent.ref || this.parent.finalize();
966
966
  }, a = Le(c, e, n, a), c.ref === 0 && c.finalize(), a;
967
967
  }
968
968
  function qe() {
969
969
  return ne.id || (ne.id = ++na), ++ne.awaits, ne.echoes += tn, ne.id;
970
970
  }
971
- function Ne() {
971
+ function De() {
972
972
  return !!ne.awaits && (--ne.awaits == 0 && (ne.id = 0), ne.echoes = ne.awaits * tn, !0);
973
973
  }
974
974
  function Ct(e) {
975
975
  return ne.echoes && e && e.constructor === Me ? (qe(), e.then(function(r) {
976
- return Ne(), r;
976
+ return De(), r;
977
977
  }, function(r) {
978
- return Ne(), ee(r);
978
+ return De(), q(r);
979
979
  })) : e;
980
980
  }
981
981
  function sa() {
@@ -1007,15 +1007,15 @@ function Ga() {
1007
1007
  try {
1008
1008
  return e.apply(this, arguments);
1009
1009
  } finally {
1010
- Ie(s, !1), a && queueMicrotask(Ne);
1010
+ Ie(s, !1), a && queueMicrotask(De);
1011
1011
  }
1012
1012
  };
1013
1013
  }
1014
1014
  function gr(e) {
1015
1015
  Promise === Me && ne.echoes === 0 ? xt === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
1016
1016
  }
1017
- ("" + fe).indexOf("[native code]") === -1 && (qe = Ne = Q);
1018
- var ee = j.reject, Ue = "￿", we = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", on = "String expected.", et = [], $t = "__dbnames", pr = "readonly", mr = "readwrite";
1017
+ ("" + fe).indexOf("[native code]") === -1 && (qe = De = Q);
1018
+ var q = j.reject, Ue = "￿", we = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", on = "String expected.", et = [], $t = "__dbnames", pr = "readonly", mr = "readwrite";
1019
1019
  function We(e, r) {
1020
1020
  return e ? r ? function() {
1021
1021
  return e.apply(this, arguments) && r.apply(this, arguments);
@@ -1074,50 +1074,50 @@ function Ga() {
1074
1074
  }
1075
1075
  var d = Je();
1076
1076
  try {
1077
- var p = a && a.db._novip === this.db._novip ? a === B.trans ? a._promise(e, u, n) : De(function() {
1077
+ var p = a && a.db._novip === this.db._novip ? a === B.trans ? a._promise(e, u, n) : Ne(function() {
1078
1078
  return a._promise(e, u, n);
1079
- }, { trans: a, transless: B.transless || B }) : function y(w, h, O, m) {
1079
+ }, { trans: a, transless: B.transless || B }) : function y(w, h, _, m) {
1080
1080
  if (w.idbdb && (w._state.openComplete || B.letThrough || w._vip)) {
1081
- var E = w._createTransaction(h, O, w._dbSchema);
1081
+ var E = w._createTransaction(h, _, w._dbSchema);
1082
1082
  try {
1083
1083
  E.create(), w._state.PR1398_maxLoop = 3;
1084
- } catch (S) {
1085
- return S.name === sr.InvalidState && w.isOpen() && 0 < --w._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), w.close({ disableAutoOpen: !1 }), w.open().then(function() {
1086
- return y(w, h, O, m);
1087
- })) : ee(S);
1084
+ } catch (O) {
1085
+ return O.name === sr.InvalidState && w.isOpen() && 0 < --w._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), w.close({ disableAutoOpen: !1 }), w.open().then(function() {
1086
+ return y(w, h, _, m);
1087
+ })) : q(O);
1088
1088
  }
1089
- return E._promise(h, function(S, v) {
1090
- return De(function() {
1091
- return B.trans = E, m(S, v, E);
1089
+ return E._promise(h, function(O, v) {
1090
+ return Ne(function() {
1091
+ return B.trans = E, m(O, v, E);
1092
1092
  });
1093
- }).then(function(S) {
1093
+ }).then(function(O) {
1094
1094
  if (h === "readwrite") try {
1095
1095
  E.idbtrans.commit();
1096
1096
  } catch {
1097
1097
  }
1098
- return h === "readonly" ? S : E._completion.then(function() {
1099
- return S;
1098
+ return h === "readonly" ? O : E._completion.then(function() {
1099
+ return O;
1100
1100
  });
1101
1101
  });
1102
1102
  }
1103
- if (w._state.openComplete) return ee(new L.DatabaseClosed(w._state.dbOpenError));
1103
+ if (w._state.openComplete) return q(new L.DatabaseClosed(w._state.dbOpenError));
1104
1104
  if (!w._state.isBeingOpened) {
1105
- if (!w._state.autoOpen) return ee(new L.DatabaseClosed());
1105
+ if (!w._state.autoOpen) return q(new L.DatabaseClosed());
1106
1106
  w.open().catch(Q);
1107
1107
  }
1108
1108
  return w._state.dbReadyPromise.then(function() {
1109
- return y(w, h, O, m);
1109
+ return y(w, h, _, m);
1110
1110
  });
1111
1111
  }(this.db, e, [this.name], u);
1112
1112
  return c && (p._consoleTask = c, p = p.catch(function(y) {
1113
- return console.trace(y), ee(y);
1113
+ return console.trace(y), q(y);
1114
1114
  })), p;
1115
1115
  } finally {
1116
1116
  d && Ze();
1117
1117
  }
1118
1118
  }, J.prototype.get = function(e, r) {
1119
1119
  var n = this;
1120
- return e && e.constructor === Object ? this.where(e).first(r) : e == null ? ee(new L.Type("Invalid argument to Table.get()")) : this._trans("readonly", function(a) {
1120
+ return e && e.constructor === Object ? this.where(e).first(r) : e == null ? q(new L.Type("Invalid argument to Table.get()")) : this._trans("readonly", function(a) {
1121
1121
  return n.core.get({ trans: a, key: e }).then(function(s) {
1122
1122
  return n.hook.reading.fire(s);
1123
1123
  });
@@ -1150,13 +1150,13 @@ function Ga() {
1150
1150
  return H(d, p) === 0;
1151
1151
  }
1152
1152
  var u = r.reduce(function(h, p) {
1153
- var y = h[0], w = h[1], h = a[p], O = e[p];
1153
+ var y = h[0], w = h[1], h = a[p], _ = e[p];
1154
1154
  return [y || h, y || !h ? We(w, h && h.multi ? function(m) {
1155
1155
  return m = ve(m, p), G(m) && m.some(function(E) {
1156
- return s(O, E);
1156
+ return s(_, E);
1157
1157
  });
1158
1158
  } : function(m) {
1159
- return s(O, ve(m, p));
1159
+ return s(_, ve(m, p));
1160
1160
  }) : w];
1161
1161
  }, [null, null]), c = u[0], u = u[1];
1162
1162
  return c ? this.where(c.name).equals(e[c.keyPath]).filter(u) : n ? this.filter(u) : this.where(r).equals("");
@@ -1209,7 +1209,7 @@ function Ga() {
1209
1209
  return this.schema.readHook && this.hook.reading.unsubscribe(this.schema.readHook), this.schema.readHook = d, this.hook("reading", d), e;
1210
1210
  }, J.prototype.defineClass = function() {
1211
1211
  return this.mapToClass(function(e) {
1212
- re(this, e);
1212
+ te(this, e);
1213
1213
  });
1214
1214
  }, J.prototype.add = function(e, r) {
1215
1215
  var n = this, a = this.schema.primKey, s = a.auto, c = a.keyPath, u = e;
@@ -1225,7 +1225,7 @@ function Ga() {
1225
1225
  return d;
1226
1226
  });
1227
1227
  }, J.prototype.update = function(e, r) {
1228
- return typeof e != "object" || G(e) ? this.where(":id").equals(e).modify(r) : (e = ve(e, this.schema.primKey.keyPath), e === void 0 ? ee(new L.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(e).modify(r));
1228
+ return typeof e != "object" || G(e) ? this.where(":id").equals(e).modify(r) : (e = ve(e, this.schema.primKey.keyPath), e === void 0 ? q(new L.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(e).modify(r));
1229
1229
  }, J.prototype.put = function(e, r) {
1230
1230
  var n = this, a = this.schema.primKey, s = a.auto, c = a.keyPath, u = e;
1231
1231
  return c && s && (u = jt(c)(e)), this._trans("readwrite", function(d) {
@@ -1270,8 +1270,8 @@ function Ga() {
1270
1270
  if (s && s.length !== e.length) throw new L.InvalidArgument("Arguments objects and keys must have the same length");
1271
1271
  var p = e.length, y = y && d ? e.map(jt(y)) : e;
1272
1272
  return a.core.mutate({ trans: u, type: "add", keys: s, values: y, wantResults: c }).then(function(E) {
1273
- var h = E.numFailures, O = E.results, m = E.lastResult, E = E.failures;
1274
- if (h === 0) return c ? O : m;
1273
+ var h = E.numFailures, _ = E.results, m = E.lastResult, E = E.failures;
1274
+ if (h === 0) return c ? _ : m;
1275
1275
  throw new Xe("".concat(a.name, ".bulkAdd(): ").concat(h, " of ").concat(p, " operations failed"), E);
1276
1276
  });
1277
1277
  });
@@ -1283,8 +1283,8 @@ function Ga() {
1283
1283
  if (s && s.length !== e.length) throw new L.InvalidArgument("Arguments objects and keys must have the same length");
1284
1284
  var p = e.length, y = y && d ? e.map(jt(y)) : e;
1285
1285
  return a.core.mutate({ trans: u, type: "put", keys: s, values: y, wantResults: c }).then(function(E) {
1286
- var h = E.numFailures, O = E.results, m = E.lastResult, E = E.failures;
1287
- if (h === 0) return c ? O : m;
1286
+ var h = E.numFailures, _ = E.results, m = E.lastResult, E = E.failures;
1287
+ if (h === 0) return c ? _ : m;
1288
1288
  throw new Xe("".concat(a.name, ".bulkPut(): ").concat(h, " of ").concat(p, " operations failed"), E);
1289
1289
  });
1290
1290
  });
@@ -1297,27 +1297,27 @@ function Ga() {
1297
1297
  return this._trans("readwrite", function(u) {
1298
1298
  return n.getMany({ trans: u, keys: a, cache: "clone" }).then(function(d) {
1299
1299
  var p = [], y = [];
1300
- e.forEach(function(h, O) {
1301
- var m = h.key, E = h.changes, S = d[O];
1302
- if (S) {
1300
+ e.forEach(function(h, _) {
1301
+ var m = h.key, E = h.changes, O = d[_];
1302
+ if (O) {
1303
1303
  for (var v = 0, A = Object.keys(E); v < A.length; v++) {
1304
- var P = A[v], D = E[P];
1304
+ var P = A[v], N = E[P];
1305
1305
  if (P === r.schema.primKey.keyPath) {
1306
- if (H(D, m) !== 0) throw new L.Constraint("Cannot update primary key in bulkUpdate()");
1307
- } else le(S, P, D);
1306
+ if (H(N, m) !== 0) throw new L.Constraint("Cannot update primary key in bulkUpdate()");
1307
+ } else le(O, P, N);
1308
1308
  }
1309
- c.push(O), p.push(m), y.push(S);
1309
+ c.push(_), p.push(m), y.push(O);
1310
1310
  }
1311
1311
  });
1312
1312
  var w = p.length;
1313
1313
  return n.mutate({ trans: u, type: "put", keys: p, values: y, updates: { keys: a, changeSpecs: s } }).then(function(h) {
1314
- var O = h.numFailures, m = h.failures;
1315
- if (O === 0) return w;
1316
- for (var E = 0, S = Object.keys(m); E < S.length; E++) {
1317
- var v, A = S[E], P = c[Number(A)];
1314
+ var _ = h.numFailures, m = h.failures;
1315
+ if (_ === 0) return w;
1316
+ for (var E = 0, O = Object.keys(m); E < O.length; E++) {
1317
+ var v, A = O[E], P = c[Number(A)];
1318
1318
  P != null && (v = m[A], delete m[A], m[P] = v);
1319
1319
  }
1320
- throw new Xe("".concat(r.name, ".bulkUpdate(): ").concat(O, " of ").concat(w, " operations failed"), m);
1320
+ throw new Xe("".concat(r.name, ".bulkUpdate(): ").concat(_, " of ").concat(w, " operations failed"), m);
1321
1321
  });
1322
1322
  });
1323
1323
  });
@@ -1352,22 +1352,22 @@ function Ga() {
1352
1352
  var w = { subscribers: [], fire: p = p || Q, subscribe: function(h) {
1353
1353
  w.subscribers.indexOf(h) === -1 && (w.subscribers.push(h), w.fire = d(w.fire, h));
1354
1354
  }, unsubscribe: function(h) {
1355
- w.subscribers = w.subscribers.filter(function(O) {
1356
- return O !== h;
1355
+ w.subscribers = w.subscribers.filter(function(_) {
1356
+ return _ !== h;
1357
1357
  }), w.fire = w.subscribers.reduce(d, p);
1358
1358
  } };
1359
1359
  return n[u] = r[u] = w;
1360
1360
  }
1361
1361
  I(y = u).forEach(function(h) {
1362
- var O = y[h];
1363
- if (G(O)) c(h, y[h][0], y[h][1]);
1362
+ var _ = y[h];
1363
+ if (G(_)) c(h, y[h][0], y[h][1]);
1364
1364
  else {
1365
- if (O !== "asap") throw new L.InvalidArgument("Invalid event config");
1365
+ if (_ !== "asap") throw new L.InvalidArgument("Invalid event config");
1366
1366
  var m = c(h, it, function() {
1367
- for (var E = arguments.length, S = new Array(E); E--; ) S[E] = arguments[E];
1367
+ for (var E = arguments.length, O = new Array(E); E--; ) O[E] = arguments[E];
1368
1368
  m.subscribers.forEach(function(v) {
1369
1369
  Yr(function() {
1370
- v.apply(null, S);
1370
+ v.apply(null, O);
1371
1371
  });
1372
1372
  });
1373
1373
  });
@@ -1405,11 +1405,11 @@ function Ga() {
1405
1405
  if (e.or) {
1406
1406
  var c = {}, u = function(d, p, y) {
1407
1407
  var w, h;
1408
- s && !s(p, y, function(O) {
1409
- return p.stop(O);
1410
- }, function(O) {
1411
- return p.fail(O);
1412
- }) || ((h = "" + (w = p.primaryKey)) == "[object ArrayBuffer]" && (h = "" + new Uint8Array(w)), q(c, h) || (c[h] = !0, r(d, p, y)));
1408
+ s && !s(p, y, function(_) {
1409
+ return p.stop(_);
1410
+ }, function(_) {
1411
+ return p.fail(_);
1412
+ }) || ((h = "" + (w = p.primaryKey)) == "[object ArrayBuffer]" && (h = "" + new Uint8Array(w)), re(c, h) || (c[h] = !0, r(d, p, y)));
1413
1413
  };
1414
1414
  return Promise.all([e.or._iterate(u, n), gn(fn(e, a, n), e.algorithm, u, !e.keysOnly && e.valueMapper)]);
1415
1415
  }
@@ -1469,10 +1469,10 @@ function Ga() {
1469
1469
  }
1470
1470
  var oa = (V.prototype._read = function(e, r) {
1471
1471
  var n = this._ctx;
1472
- return n.error ? n.table._trans(null, ee.bind(null, n.error)) : n.table._trans("readonly", e).then(r);
1472
+ return n.error ? n.table._trans(null, q.bind(null, n.error)) : n.table._trans("readonly", e).then(r);
1473
1473
  }, V.prototype._write = function(e) {
1474
1474
  var r = this._ctx;
1475
- return r.error ? r.table._trans(null, ee.bind(null, r.error)) : r.table._trans("readwrite", e, "locked");
1475
+ return r.error ? r.table._trans(null, q.bind(null, r.error)) : r.table._trans("readwrite", e, "locked");
1476
1476
  }, V.prototype._addAlgorithm = function(e) {
1477
1477
  var r = this._ctx;
1478
1478
  r.algorithm = We(r.algorithm, e);
@@ -1480,7 +1480,7 @@ function Ga() {
1480
1480
  return Mt(this._ctx, e, r, this._ctx.table.core);
1481
1481
  }, V.prototype.clone = function(e) {
1482
1482
  var r = Object.create(this.constructor.prototype), n = Object.create(this._ctx);
1483
- return e && re(n, e), r._ctx = n, r;
1483
+ return e && te(n, e), r._ctx = n, r;
1484
1484
  }, V.prototype.raw = function() {
1485
1485
  return this._ctx.valueMapper = null, this;
1486
1486
  }, V.prototype.each = function(e) {
@@ -1625,7 +1625,7 @@ function Ga() {
1625
1625
  if (!e || !e.multi) return this;
1626
1626
  var r = {};
1627
1627
  return yr(this._ctx, function(s) {
1628
- var a = s.primaryKey.toString(), s = q(r, a);
1628
+ var a = s.primaryKey.toString(), s = re(r, a);
1629
1629
  return r[a] = !0, !s;
1630
1630
  }), this;
1631
1631
  }, V.prototype.modify = function(e) {
@@ -1634,49 +1634,49 @@ function Ga() {
1634
1634
  var s, c, u;
1635
1635
  u = typeof e == "function" ? e : (s = I(e), c = s.length, function(v) {
1636
1636
  for (var A = !1, P = 0; P < c; ++P) {
1637
- var D = s[P], N = e[D], T = ve(v, D);
1638
- N instanceof gt ? (le(v, D, N.execute(T)), A = !0) : T !== N && (le(v, D, N), A = !0);
1637
+ var N = s[P], D = e[N], T = ve(v, N);
1638
+ D instanceof gt ? (le(v, N, D.execute(T)), A = !0) : T !== D && (le(v, N, D), A = !0);
1639
1639
  }
1640
1640
  return A;
1641
1641
  });
1642
1642
  var d = n.table.core, h = d.schema.primaryKey, p = h.outbound, y = h.extractKey, w = 200, h = r.db._options.modifyChunkSize;
1643
1643
  h && (w = typeof h == "object" ? h[d.name] || h["*"] || 200 : h);
1644
- function O(v, D) {
1645
- var P = D.failures, D = D.numFailures;
1646
- E += v - D;
1647
- for (var N = 0, T = I(P); N < T.length; N++) {
1648
- var C = T[N];
1644
+ function _(v, N) {
1645
+ var P = N.failures, N = N.numFailures;
1646
+ E += v - N;
1647
+ for (var D = 0, T = I(P); D < T.length; D++) {
1648
+ var C = T[D];
1649
1649
  m.push(P[C]);
1650
1650
  }
1651
1651
  }
1652
- var m = [], E = 0, S = [];
1652
+ var m = [], E = 0, O = [];
1653
1653
  return r.clone().primaryKeys().then(function(v) {
1654
- function A(D) {
1655
- var N = Math.min(w, v.length - D);
1656
- return d.getMany({ trans: a, keys: v.slice(D, D + N), cache: "immutable" }).then(function(T) {
1657
- for (var C = [], R = [], x = p ? [] : null, $ = [], k = 0; k < N; ++k) {
1658
- var M = T[k], W = { value: Ce(M), primKey: v[D + k] };
1659
- u.call(W, W.value, W) !== !1 && (W.value == null ? $.push(v[D + k]) : p || H(y(M), y(W.value)) === 0 ? (R.push(W.value), p && x.push(v[D + k])) : ($.push(v[D + k]), C.push(W.value)));
1654
+ function A(N) {
1655
+ var D = Math.min(w, v.length - N);
1656
+ return d.getMany({ trans: a, keys: v.slice(N, N + D), cache: "immutable" }).then(function(T) {
1657
+ for (var C = [], R = [], x = p ? [] : null, $ = [], k = 0; k < D; ++k) {
1658
+ var K = T[k], W = { value: Ce(K), primKey: v[N + k] };
1659
+ u.call(W, W.value, W) !== !1 && (W.value == null ? $.push(v[N + k]) : p || H(y(K), y(W.value)) === 0 ? (R.push(W.value), p && x.push(v[N + k])) : ($.push(v[N + k]), C.push(W.value)));
1660
1660
  }
1661
1661
  return Promise.resolve(0 < C.length && d.mutate({ trans: a, type: "add", values: C }).then(function(F) {
1662
1662
  for (var z in F.failures) $.splice(parseInt(z), 1);
1663
- O(C.length, F);
1663
+ _(C.length, F);
1664
1664
  })).then(function() {
1665
- return (0 < R.length || P && typeof e == "object") && d.mutate({ trans: a, type: "put", keys: x, values: R, criteria: P, changeSpec: typeof e != "function" && e, isAdditionalChunk: 0 < D }).then(function(F) {
1666
- return O(R.length, F);
1665
+ return (0 < R.length || P && typeof e == "object") && d.mutate({ trans: a, type: "put", keys: x, values: R, criteria: P, changeSpec: typeof e != "function" && e, isAdditionalChunk: 0 < N }).then(function(F) {
1666
+ return _(R.length, F);
1667
1667
  });
1668
1668
  }).then(function() {
1669
- return (0 < $.length || P && e === vr) && d.mutate({ trans: a, type: "delete", keys: $, criteria: P, isAdditionalChunk: 0 < D }).then(function(F) {
1670
- return O($.length, F);
1669
+ return (0 < $.length || P && e === vr) && d.mutate({ trans: a, type: "delete", keys: $, criteria: P, isAdditionalChunk: 0 < N }).then(function(F) {
1670
+ return _($.length, F);
1671
1671
  });
1672
1672
  }).then(function() {
1673
- return v.length > D + N && A(D + w);
1673
+ return v.length > N + D && A(N + w);
1674
1674
  });
1675
1675
  });
1676
1676
  }
1677
1677
  var P = tt(n) && n.limit === 1 / 0 && (typeof e != "function" || e === vr) && { index: n.index, range: n.range };
1678
1678
  return A(0).then(function() {
1679
- if (0 < m.length) throw new At("Error modifying one or more objects", m, E, S);
1679
+ if (0 < m.length) throw new At("Error modifying one or more objects", m, E, O);
1680
1680
  return v.length;
1681
1681
  });
1682
1682
  });
@@ -1720,7 +1720,7 @@ function Ga() {
1720
1720
  if (!n.every(function(E) {
1721
1721
  return typeof E == "string";
1722
1722
  })) return de(e, on);
1723
- function O(E) {
1723
+ function _(E) {
1724
1724
  s = E === "next" ? function(v) {
1725
1725
  return v.toUpperCase();
1726
1726
  } : function(v) {
@@ -1730,41 +1730,41 @@ function Ga() {
1730
1730
  } : function(v) {
1731
1731
  return v.toUpperCase();
1732
1732
  }, u = E === "next" ? ia : ca;
1733
- var S = n.map(function(v) {
1733
+ var O = n.map(function(v) {
1734
1734
  return { lower: c(v), upper: s(v) };
1735
1735
  }).sort(function(v, A) {
1736
1736
  return u(v.lower, A.lower);
1737
1737
  });
1738
- d = S.map(function(v) {
1738
+ d = O.map(function(v) {
1739
1739
  return v.upper;
1740
- }), p = S.map(function(v) {
1740
+ }), p = O.map(function(v) {
1741
1741
  return v.lower;
1742
1742
  }), w = (y = E) === "next" ? "" : a;
1743
1743
  }
1744
- O("next"), e = new e.Collection(e, function() {
1744
+ _("next"), e = new e.Collection(e, function() {
1745
1745
  return Te(d[0], p[h - 1] + a);
1746
1746
  }), e._ondirectionchange = function(E) {
1747
- O(E);
1747
+ _(E);
1748
1748
  };
1749
1749
  var m = 0;
1750
- return e._addAlgorithm(function(E, S, v) {
1750
+ return e._addAlgorithm(function(E, O, v) {
1751
1751
  var A = E.key;
1752
1752
  if (typeof A != "string") return !1;
1753
1753
  var P = c(A);
1754
1754
  if (r(P, p, m)) return !0;
1755
- for (var D = null, N = m; N < h; ++N) {
1756
- var T = function(C, R, x, $, k, M) {
1755
+ for (var N = null, D = m; D < h; ++D) {
1756
+ var T = function(C, R, x, $, k, K) {
1757
1757
  for (var W = Math.min(C.length, $.length), F = -1, z = 0; z < W; ++z) {
1758
1758
  var he = R[z];
1759
1759
  if (he !== $[z]) return k(C[z], x[z]) < 0 ? C.substr(0, z) + x[z] + x.substr(z + 1) : k(C[z], $[z]) < 0 ? C.substr(0, z) + $[z] + x.substr(z + 1) : 0 <= F ? C.substr(0, F) + R[F] + x.substr(F + 1) : null;
1760
1760
  k(C[z], he) < 0 && (F = z);
1761
1761
  }
1762
- return W < $.length && M === "next" ? C + x.substr(C.length) : W < C.length && M === "prev" ? C.substr(0, x.length) : F < 0 ? null : C.substr(0, F) + $[F] + x.substr(F + 1);
1763
- }(A, P, d[N], p[N], u, y);
1764
- T === null && D === null ? m = N + 1 : (D === null || 0 < u(D, T)) && (D = T);
1762
+ return W < $.length && K === "next" ? C + x.substr(C.length) : W < C.length && K === "prev" ? C.substr(0, x.length) : F < 0 ? null : C.substr(0, F) + $[F] + x.substr(F + 1);
1763
+ }(A, P, d[D], p[D], u, y);
1764
+ T === null && N === null ? m = D + 1 : (N === null || 0 < u(N, T)) && (N = T);
1765
1765
  }
1766
- return S(D !== null ? function() {
1767
- E.continue(D + w);
1766
+ return O(N !== null ? function() {
1767
+ E.continue(N + w);
1768
1768
  } : v), !1;
1769
1769
  }), e;
1770
1770
  }
@@ -1869,20 +1869,20 @@ function Ga() {
1869
1869
  return P[0] !== void 0 && P[1] !== void 0 && s(P[0], P[1]) <= 0;
1870
1870
  })) 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", L.InvalidArgument);
1871
1871
  var p = !r || r.includeLowers !== !1, y = r && r.includeUppers === !0, w, h = s;
1872
- function O(P, D) {
1873
- return h(P[0], D[0]);
1872
+ function _(P, N) {
1873
+ return h(P[0], N[0]);
1874
1874
  }
1875
1875
  try {
1876
- (w = A.reduce(function(P, D) {
1877
- for (var N = 0, T = P.length; N < T; ++N) {
1878
- var C = P[N];
1879
- if (a(D[0], C[1]) < 0 && 0 < a(D[1], C[0])) {
1880
- C[0] = u(C[0], D[0]), C[1] = d(C[1], D[1]);
1876
+ (w = A.reduce(function(P, N) {
1877
+ for (var D = 0, T = P.length; D < T; ++D) {
1878
+ var C = P[D];
1879
+ if (a(N[0], C[1]) < 0 && 0 < a(N[1], C[0])) {
1880
+ C[0] = u(C[0], N[0]), C[1] = d(C[1], N[1]);
1881
1881
  break;
1882
1882
  }
1883
1883
  }
1884
- return N === T && P.push(D), P;
1885
- }, [])).sort(O);
1884
+ return D === T && P.push(N), P;
1885
+ }, [])).sort(_);
1886
1886
  } catch {
1887
1887
  return de(this, we);
1888
1888
  }
@@ -1890,7 +1890,7 @@ function Ga() {
1890
1890
  return 0 < s(P, w[m][1]);
1891
1891
  } : function(P) {
1892
1892
  return 0 <= s(P, w[m][1]);
1893
- }, S = p ? function(P) {
1893
+ }, O = p ? function(P) {
1894
1894
  return 0 < c(P, w[m][0]);
1895
1895
  } : function(P) {
1896
1896
  return 0 <= c(P, w[m][0]);
@@ -1898,10 +1898,10 @@ function Ga() {
1898
1898
  return Te(w[0][0], w[w.length - 1][1], !p, !y);
1899
1899
  });
1900
1900
  return A._ondirectionchange = function(P) {
1901
- h = P === "next" ? (v = E, s) : (v = S, c), w.sort(O);
1902
- }, A._addAlgorithm(function(P, D, N) {
1903
- for (var T, C = P.key; v(C); ) if (++m === w.length) return D(N), !1;
1904
- return !E(T = C) && !S(T) || (n._cmp(C, w[m][1]) === 0 || n._cmp(C, w[m][0]) === 0 || D(function() {
1901
+ h = P === "next" ? (v = E, s) : (v = O, c), w.sort(_);
1902
+ }, A._addAlgorithm(function(P, N, D) {
1903
+ for (var T, C = P.key; v(C); ) if (++m === w.length) return N(D), !1;
1904
+ return !E(T = C) && !O(T) || (n._cmp(C, w[m][1]) === 0 || n._cmp(C, w[m][0]) === 0 || N(function() {
1905
1905
  h === s ? P.continue(w[m][0]) : P.continue(w[m][1]);
1906
1906
  }), !1);
1907
1907
  }), A;
@@ -1958,14 +1958,14 @@ function Ga() {
1958
1958
  }), this;
1959
1959
  }, be.prototype._promise = function(e, r, n) {
1960
1960
  var a = this;
1961
- if (e === "readwrite" && this.mode !== "readwrite") return ee(new L.ReadOnly("Transaction is readonly"));
1962
- if (!this.active) return ee(new L.TransactionInactive());
1961
+ if (e === "readwrite" && this.mode !== "readwrite") return q(new L.ReadOnly("Transaction is readonly"));
1962
+ if (!this.active) return q(new L.TransactionInactive());
1963
1963
  if (this._locked()) return new j(function(c, u) {
1964
1964
  a._blockedFuncs.push([function() {
1965
1965
  a._promise(e, r, n).then(c, u);
1966
1966
  }, B]);
1967
1967
  });
1968
- if (n) return De(function() {
1968
+ if (n) return Ne(function() {
1969
1969
  var c = new j(function(u, d) {
1970
1970
  a._lock();
1971
1971
  var p = r(u, d, a);
@@ -2004,7 +2004,7 @@ function Ga() {
2004
2004
  this.active && (this.active = !1, this.idbtrans && this.idbtrans.abort(), this._reject(new L.Abort()));
2005
2005
  }, be.prototype.table = function(e) {
2006
2006
  var r = this._memoizedTables || (this._memoizedTables = {});
2007
- if (q(r, e)) return r[e];
2007
+ if (re(r, e)) return r[e];
2008
2008
  var n = this.schema[e];
2009
2009
  if (!n) throw new L.NotFound("Table " + e + " not part of transaction");
2010
2010
  return n = new this.db.Table(e, n, this), n.core = this.db.core.table(e), r[e] = n;
@@ -2058,31 +2058,31 @@ function Ga() {
2058
2058
  function a(v) {
2059
2059
  if (v.type === 3) return null;
2060
2060
  if (v.type === 4) throw new Error("Cannot convert never type to IDBKeyRange");
2061
- var m = v.lower, E = v.upper, S = v.lowerOpen, v = v.upperOpen;
2062
- return m === void 0 ? E === void 0 ? null : r.upperBound(E, !!v) : E === void 0 ? r.lowerBound(m, !!S) : r.bound(m, E, !!S, !!v);
2061
+ var m = v.lower, E = v.upper, O = v.lowerOpen, v = v.upperOpen;
2062
+ return m === void 0 ? E === void 0 ? null : r.upperBound(E, !!v) : E === void 0 ? r.lowerBound(m, !!O) : r.bound(m, E, !!O, !!v);
2063
2063
  }
2064
- function s(O) {
2065
- var m, E = O.name;
2066
- return { name: E, schema: O, mutate: function(S) {
2067
- var v = S.trans, A = S.type, P = S.keys, D = S.values, N = S.range;
2064
+ function s(_) {
2065
+ var m, E = _.name;
2066
+ return { name: E, schema: _, mutate: function(O) {
2067
+ var v = O.trans, A = O.type, P = O.keys, N = O.values, D = O.range;
2068
2068
  return new Promise(function(T, C) {
2069
2069
  T = Z(T);
2070
2070
  var R = v.objectStore(E), x = R.keyPath == null, $ = A === "put" || A === "add";
2071
2071
  if (!$ && A !== "delete" && A !== "deleteRange") throw new Error("Invalid operation type: " + A);
2072
- var k, M = (P || D || { length: 1 }).length;
2073
- if (P && D && P.length !== D.length) throw new Error("Given keys array must have same length as given values array.");
2074
- if (M === 0) return T({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
2072
+ var k, K = (P || N || { length: 1 }).length;
2073
+ if (P && N && P.length !== N.length) throw new Error("Given keys array must have same length as given values array.");
2074
+ if (K === 0) return T({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
2075
2075
  function W(ue) {
2076
2076
  ++he, pt(ue);
2077
2077
  }
2078
2078
  var F = [], z = [], he = 0;
2079
2079
  if (A === "deleteRange") {
2080
- if (N.type === 4) return T({ numFailures: he, failures: z, results: [], lastResult: void 0 });
2081
- N.type === 3 ? F.push(k = R.clear()) : F.push(k = R.delete(a(N)));
2080
+ if (D.type === 4) return T({ numFailures: he, failures: z, results: [], lastResult: void 0 });
2081
+ D.type === 3 ? F.push(k = R.clear()) : F.push(k = R.delete(a(D)));
2082
2082
  } else {
2083
- var x = $ ? x ? [D, P] : [D, null] : [P, null], U = x[0], ie = x[1];
2084
- if ($) for (var ce = 0; ce < M; ++ce) F.push(k = ie && ie[ce] !== void 0 ? R[A](U[ce], ie[ce]) : R[A](U[ce])), k.onerror = W;
2085
- else for (ce = 0; ce < M; ++ce) F.push(k = R[A](U[ce])), k.onerror = W;
2083
+ var x = $ ? x ? [N, P] : [N, null] : [P, null], U = x[0], ie = x[1];
2084
+ if ($) for (var ce = 0; ce < K; ++ce) F.push(k = ie && ie[ce] !== void 0 ? R[A](U[ce], ie[ce]) : R[A](U[ce])), k.onerror = W;
2085
+ else for (ce = 0; ce < K; ++ce) F.push(k = R[A](U[ce])), k.onerror = W;
2086
2086
  }
2087
2087
  function Zt(ue) {
2088
2088
  ue = ue.target.result, F.forEach(function(He, Lr) {
@@ -2095,42 +2095,42 @@ function Ga() {
2095
2095
  W(ue), Zt(ue);
2096
2096
  }, k.onsuccess = Zt;
2097
2097
  });
2098
- }, getMany: function(S) {
2099
- var v = S.trans, A = S.keys;
2100
- return new Promise(function(P, D) {
2098
+ }, getMany: function(O) {
2099
+ var v = O.trans, A = O.keys;
2100
+ return new Promise(function(P, N) {
2101
2101
  P = Z(P);
2102
- for (var N, T = v.objectStore(E), C = A.length, R = new Array(C), x = 0, $ = 0, k = function(F) {
2102
+ for (var D, T = v.objectStore(E), C = A.length, R = new Array(C), x = 0, $ = 0, k = function(F) {
2103
2103
  F = F.target, R[F._pos] = F.result, ++$ === x && P(R);
2104
- }, M = ye(D), W = 0; W < C; ++W) A[W] != null && ((N = T.get(A[W]))._pos = W, N.onsuccess = k, N.onerror = M, ++x);
2104
+ }, K = ye(N), W = 0; W < C; ++W) A[W] != null && ((D = T.get(A[W]))._pos = W, D.onsuccess = k, D.onerror = K, ++x);
2105
2105
  x === 0 && P(R);
2106
2106
  });
2107
- }, get: function(S) {
2108
- var v = S.trans, A = S.key;
2109
- return new Promise(function(P, D) {
2107
+ }, get: function(O) {
2108
+ var v = O.trans, A = O.key;
2109
+ return new Promise(function(P, N) {
2110
2110
  P = Z(P);
2111
- var N = v.objectStore(E).get(A);
2112
- N.onsuccess = function(T) {
2111
+ var D = v.objectStore(E).get(A);
2112
+ D.onsuccess = function(T) {
2113
2113
  return P(T.target.result);
2114
- }, N.onerror = ye(D);
2114
+ }, D.onerror = ye(N);
2115
2115
  });
2116
- }, query: (m = y, function(S) {
2116
+ }, query: (m = y, function(O) {
2117
2117
  return new Promise(function(v, A) {
2118
2118
  v = Z(v);
2119
- var P, D, N, x = S.trans, T = S.values, C = S.limit, k = S.query, R = C === 1 / 0 ? void 0 : C, $ = k.index, k = k.range, x = x.objectStore(E), $ = $.isPrimaryKey ? x : x.index($.name), k = a(k);
2119
+ var P, N, D, x = O.trans, T = O.values, C = O.limit, k = O.query, R = C === 1 / 0 ? void 0 : C, $ = k.index, k = k.range, x = x.objectStore(E), $ = $.isPrimaryKey ? x : x.index($.name), k = a(k);
2120
2120
  if (C === 0) return v({ result: [] });
2121
- m ? ((R = T ? $.getAll(k, R) : $.getAllKeys(k, R)).onsuccess = function(M) {
2122
- return v({ result: M.target.result });
2123
- }, R.onerror = ye(A)) : (P = 0, D = !T && "openKeyCursor" in $ ? $.openKeyCursor(k) : $.openCursor(k), N = [], D.onsuccess = function(M) {
2124
- var W = D.result;
2125
- return W ? (N.push(T ? W.value : W.primaryKey), ++P === C ? v({ result: N }) : void W.continue()) : v({ result: N });
2126
- }, D.onerror = ye(A));
2121
+ m ? ((R = T ? $.getAll(k, R) : $.getAllKeys(k, R)).onsuccess = function(K) {
2122
+ return v({ result: K.target.result });
2123
+ }, R.onerror = ye(A)) : (P = 0, N = !T && "openKeyCursor" in $ ? $.openKeyCursor(k) : $.openCursor(k), D = [], N.onsuccess = function(K) {
2124
+ var W = N.result;
2125
+ return W ? (D.push(T ? W.value : W.primaryKey), ++P === C ? v({ result: D }) : void W.continue()) : v({ result: D });
2126
+ }, N.onerror = ye(A));
2127
2127
  });
2128
- }), openCursor: function(S) {
2129
- var v = S.trans, A = S.values, P = S.query, D = S.reverse, N = S.unique;
2128
+ }), openCursor: function(O) {
2129
+ var v = O.trans, A = O.values, P = O.query, N = O.reverse, D = O.unique;
2130
2130
  return new Promise(function(T, C) {
2131
2131
  T = Z(T);
2132
- var $ = P.index, R = P.range, x = v.objectStore(E), x = $.isPrimaryKey ? x : x.index($.name), $ = D ? N ? "prevunique" : "prev" : N ? "nextunique" : "next", k = !A && "openKeyCursor" in x ? x.openKeyCursor(a(R), $) : x.openCursor(a(R), $);
2133
- k.onerror = ye(C), k.onsuccess = Z(function(M) {
2132
+ var $ = P.index, R = P.range, x = v.objectStore(E), x = $.isPrimaryKey ? x : x.index($.name), $ = N ? D ? "prevunique" : "prev" : D ? "nextunique" : "next", k = !A && "openKeyCursor" in x ? x.openKeyCursor(a(R), $) : x.openCursor(a(R), $);
2133
+ k.onerror = ye(C), k.onsuccess = Z(function(K) {
2134
2134
  var W, F, z, he, U = k.result;
2135
2135
  U ? (U.___id = ++la, U.done = !1, W = U.continue.bind(U), F = (F = U.continuePrimaryKey) && F.bind(U), z = U.advance.bind(U), he = function() {
2136
2136
  throw new Error("Cursor not stopped");
@@ -2165,34 +2165,34 @@ function Ga() {
2165
2165
  }, T(U)) : T(null);
2166
2166
  }, C);
2167
2167
  });
2168
- }, count: function(S) {
2169
- var v = S.query, A = S.trans, P = v.index, D = v.range;
2170
- return new Promise(function(N, T) {
2171
- var C = A.objectStore(E), R = P.isPrimaryKey ? C : C.index(P.name), C = a(D), R = C ? R.count(C) : R.count();
2168
+ }, count: function(O) {
2169
+ var v = O.query, A = O.trans, P = v.index, N = v.range;
2170
+ return new Promise(function(D, T) {
2171
+ var C = A.objectStore(E), R = P.isPrimaryKey ? C : C.index(P.name), C = a(N), R = C ? R.count(C) : R.count();
2172
2172
  R.onsuccess = Z(function(x) {
2173
- return N(x.target.result);
2173
+ return D(x.target.result);
2174
2174
  }), R.onerror = ye(T);
2175
2175
  });
2176
2176
  } };
2177
2177
  }
2178
- var c, u, d, w = (u = p, d = vn((c = e).objectStoreNames), { schema: { name: c.name, tables: d.map(function(O) {
2179
- return u.objectStore(O);
2180
- }).map(function(O) {
2181
- var m = O.keyPath, v = O.autoIncrement, E = G(m), S = {}, v = { name: O.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: m == null, compound: E, keyPath: m, autoIncrement: v, unique: !0, extractKey: Or(m) }, indexes: vn(O.indexNames).map(function(A) {
2182
- return O.index(A);
2183
- }).map(function(N) {
2184
- var P = N.name, D = N.unique, T = N.multiEntry, N = N.keyPath, T = { name: P, compound: G(N), keyPath: N, unique: D, multiEntry: T, extractKey: Or(N) };
2185
- return S[bt(N)] = T;
2178
+ var c, u, d, w = (u = p, d = vn((c = e).objectStoreNames), { schema: { name: c.name, tables: d.map(function(_) {
2179
+ return u.objectStore(_);
2180
+ }).map(function(_) {
2181
+ var m = _.keyPath, v = _.autoIncrement, E = G(m), O = {}, v = { name: _.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: m == null, compound: E, keyPath: m, autoIncrement: v, unique: !0, extractKey: Or(m) }, indexes: vn(_.indexNames).map(function(A) {
2182
+ return _.index(A);
2183
+ }).map(function(D) {
2184
+ var P = D.name, N = D.unique, T = D.multiEntry, D = D.keyPath, T = { name: P, compound: G(D), keyPath: D, unique: N, multiEntry: T, extractKey: Or(D) };
2185
+ return O[bt(D)] = T;
2186
2186
  }), getIndexByKeyPath: function(A) {
2187
- return S[bt(A)];
2187
+ return O[bt(A)];
2188
2188
  } };
2189
- return S[":id"] = v.primaryKey, m != null && (S[bt(m)] = v.primaryKey), v;
2189
+ return O[":id"] = v.primaryKey, m != null && (O[bt(m)] = v.primaryKey), v;
2190
2190
  }) }, hasGetAll: 0 < d.length && "getAll" in u.objectStore(d[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) }), p = w.schema, y = w.hasGetAll, w = p.tables.map(s), h = {};
2191
- return w.forEach(function(O) {
2192
- return h[O.name] = O;
2193
- }), { stack: "dbcore", transaction: e.transaction.bind(e), table: function(O) {
2194
- if (!h[O]) throw new Error("Table '".concat(O, "' not found"));
2195
- return h[O];
2191
+ return w.forEach(function(_) {
2192
+ return h[_.name] = _;
2193
+ }), { stack: "dbcore", transaction: e.transaction.bind(e), table: function(_) {
2194
+ if (!h[_]) throw new Error("Table '".concat(_, "' not found"));
2195
+ return h[_];
2196
2196
  }, MIN_KEY: -1 / 0, MAX_KEY: yt(r), schema: p };
2197
2197
  }
2198
2198
  function ha(e, r, n, a) {
@@ -2239,61 +2239,61 @@ function Ga() {
2239
2239
  var c = e._createTransaction("readwrite", e._storeNames, s);
2240
2240
  c.create(n), c._completion.catch(a);
2241
2241
  var u = c._reject.bind(c), d = B.transless || B;
2242
- De(function() {
2242
+ Ne(function() {
2243
2243
  return B.trans = c, B.transless = d, r !== 0 ? (Bt(e, n), y = r, ((p = c).storeNames.includes("$meta") ? p.table("$meta").get("version").then(function(w) {
2244
2244
  return w ?? y;
2245
2245
  }) : j.resolve(y)).then(function(w) {
2246
- return O = w, m = c, E = n, S = [], w = (h = e)._versions, v = h._dbSchema = Wt(0, h.idbdb, E), (w = w.filter(function(A) {
2247
- return A._cfg.version >= O;
2246
+ return _ = w, m = c, E = n, O = [], w = (h = e)._versions, v = h._dbSchema = Wt(0, h.idbdb, E), (w = w.filter(function(A) {
2247
+ return A._cfg.version >= _;
2248
2248
  })).length !== 0 ? (w.forEach(function(A) {
2249
- S.push(function() {
2250
- var P = v, D = A._cfg.dbschema;
2251
- Ft(h, P, E), Ft(h, D, E), v = h._dbSchema = D;
2252
- var N = Ar(P, D);
2253
- N.add.forEach(function($) {
2249
+ O.push(function() {
2250
+ var P = v, N = A._cfg.dbschema;
2251
+ Ft(h, P, E), Ft(h, N, E), v = h._dbSchema = N;
2252
+ var D = Ar(P, N);
2253
+ D.add.forEach(function($) {
2254
2254
  Pr(E, $[0], $[1].primKey, $[1].indexes);
2255
- }), N.change.forEach(function($) {
2255
+ }), D.change.forEach(function($) {
2256
2256
  if ($.recreate) throw new L.Upgrade("Not yet support for changing primary key");
2257
2257
  var k = E.objectStore($.name);
2258
- $.add.forEach(function(M) {
2259
- return Ut(k, M);
2260
- }), $.change.forEach(function(M) {
2261
- k.deleteIndex(M.name), Ut(k, M);
2262
- }), $.del.forEach(function(M) {
2263
- return k.deleteIndex(M);
2258
+ $.add.forEach(function(K) {
2259
+ return Ut(k, K);
2260
+ }), $.change.forEach(function(K) {
2261
+ k.deleteIndex(K.name), Ut(k, K);
2262
+ }), $.del.forEach(function(K) {
2263
+ return k.deleteIndex(K);
2264
2264
  });
2265
2265
  });
2266
2266
  var T = A._cfg.contentUpgrade;
2267
- if (T && A._cfg.version > O) {
2267
+ if (T && A._cfg.version > _) {
2268
2268
  Bt(h, E), m._memoizedTables = {};
2269
- var C = Qr(D);
2270
- N.del.forEach(function($) {
2269
+ var C = Qr(N);
2270
+ D.del.forEach(function($) {
2271
2271
  C[$] = P[$];
2272
2272
  }), _r(h, [h.Transaction.prototype]), Lt(h, [h.Transaction.prototype], I(C), C), m.schema = C;
2273
2273
  var R, x = ar(T);
2274
- return x && qe(), N = j.follow(function() {
2274
+ return x && qe(), D = j.follow(function() {
2275
2275
  var $;
2276
- (R = T(m)) && x && ($ = Ne.bind(null, null), R.then($, $));
2277
- }), R && typeof R.then == "function" ? j.resolve(R) : N.then(function() {
2276
+ (R = T(m)) && x && ($ = De.bind(null, null), R.then($, $));
2277
+ }), R && typeof R.then == "function" ? j.resolve(R) : D.then(function() {
2278
2278
  return R;
2279
2279
  });
2280
2280
  }
2281
- }), S.push(function(P) {
2282
- var D, N, T = A._cfg.dbschema;
2283
- D = T, N = P, [].slice.call(N.db.objectStoreNames).forEach(function(C) {
2284
- return D[C] == null && N.db.deleteObjectStore(C);
2281
+ }), O.push(function(P) {
2282
+ var N, D, T = A._cfg.dbschema;
2283
+ N = T, D = P, [].slice.call(D.db.objectStoreNames).forEach(function(C) {
2284
+ return N[C] == null && D.db.deleteObjectStore(C);
2285
2285
  }), _r(h, [h.Transaction.prototype]), Lt(h, [h.Transaction.prototype], h._storeNames, h._dbSchema), m.schema = h._dbSchema;
2286
- }), S.push(function(P) {
2287
- h.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(h.idbdb.version / 10) === A._cfg.version ? (h.idbdb.deleteObjectStore("$meta"), delete h._dbSchema.$meta, h._storeNames = h._storeNames.filter(function(D) {
2288
- return D !== "$meta";
2286
+ }), O.push(function(P) {
2287
+ h.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(h.idbdb.version / 10) === A._cfg.version ? (h.idbdb.deleteObjectStore("$meta"), delete h._dbSchema.$meta, h._storeNames = h._storeNames.filter(function(N) {
2288
+ return N !== "$meta";
2289
2289
  })) : P.objectStore("$meta").put(A._cfg.version, "version"));
2290
2290
  });
2291
2291
  }), function A() {
2292
- return S.length ? j.resolve(S.shift()(m.idbtrans)).then(A) : j.resolve();
2292
+ return O.length ? j.resolve(O.shift()(m.idbtrans)).then(A) : j.resolve();
2293
2293
  }().then(function() {
2294
2294
  En(v, E);
2295
2295
  })) : j.resolve();
2296
- var h, O, m, E, S, v;
2296
+ var h, _, m, E, O, v;
2297
2297
  }).catch(u)) : (I(s).forEach(function(w) {
2298
2298
  Pr(n, w, s[w].primKey, s[w].indexes);
2299
2299
  }), Bt(e, n), void j.follow(function() {
@@ -2392,25 +2392,25 @@ function Ga() {
2392
2392
  });
2393
2393
  }, zt.prototype.stores = function(n) {
2394
2394
  var r = this.db;
2395
- this._cfg.storesSource = this._cfg.storesSource ? re(this._cfg.storesSource, n) : n;
2395
+ this._cfg.storesSource = this._cfg.storesSource ? te(this._cfg.storesSource, n) : n;
2396
2396
  var n = r._versions, a = {}, s = {};
2397
2397
  return n.forEach(function(c) {
2398
- re(a, c._cfg.storesSource), s = c._cfg.dbschema = {}, c._parseStoresSpec(a, s);
2398
+ te(a, c._cfg.storesSource), s = c._cfg.dbschema = {}, c._parseStoresSpec(a, s);
2399
2399
  }), r._dbSchema = s, _r(r, [r._allTables, r, r.Transaction.prototype]), Lt(r, [r._allTables, r, r.Transaction.prototype, this._cfg.tables], I(s), s), r._storeNames = I(s), this;
2400
2400
  }, zt.prototype.upgrade = function(e) {
2401
2401
  return this._cfg.contentUpgrade = or(this._cfg.contentUpgrade || Q, e), this;
2402
2402
  }, zt);
2403
2403
  function zt() {
2404
2404
  }
2405
- function Dr(e, r) {
2405
+ function Nr(e, r) {
2406
2406
  var n = e._dbNamesDB;
2407
2407
  return n || (n = e._dbNamesDB = new Se($t, { addons: [], indexedDB: e, IDBKeyRange: r })).version(1).stores({ dbnames: "name" }), n.table("dbnames");
2408
2408
  }
2409
- function Nr(e) {
2409
+ function Dr(e) {
2410
2410
  return e && typeof e.databases == "function";
2411
2411
  }
2412
2412
  function Ir(e) {
2413
- return De(function() {
2413
+ return Ne(function() {
2414
2414
  return B.letThrough = !0, e();
2415
2415
  });
2416
2416
  }
@@ -2420,15 +2420,15 @@ function Ga() {
2420
2420
  var oe = function(e, r) {
2421
2421
  if (!this) {
2422
2422
  var n = new oe();
2423
- return e && "d" in e && re(n, e), n;
2423
+ return e && "d" in e && te(n, e), n;
2424
2424
  }
2425
- re(this, arguments.length ? { d: 1, from: e, to: 1 < arguments.length ? r : e } : { d: 0 });
2425
+ te(this, arguments.length ? { d: 1, from: e, to: 1 < arguments.length ? r : e } : { d: 0 });
2426
2426
  };
2427
2427
  function vt(e, r, n) {
2428
2428
  var a = H(r, n);
2429
2429
  if (!isNaN(a)) {
2430
2430
  if (0 < a) throw RangeError();
2431
- if (Tr(e)) return re(e, { from: r, to: n, d: 1 });
2431
+ if (Tr(e)) return te(e, { from: r, to: n, d: 1 });
2432
2432
  var s = e.l, a = e.r;
2433
2433
  if (H(n, e.from) < 0) return s ? vt(s, r, n) : e.l = { from: r, to: n, d: 1, l: null, r: null }, On(e);
2434
2434
  if (0 < H(r, e.to)) return a ? vt(a, r, n) : e.r = { from: r, to: n, d: 1, l: null, r: null }, On(e);
@@ -2482,7 +2482,7 @@ function Ga() {
2482
2482
  return I(r).forEach(function(n) {
2483
2483
  e[n] ? Et(e[n], r[n]) : e[n] = function a(s) {
2484
2484
  var c, u, d = {};
2485
- for (c in s) q(s, c) && (u = s[c], d[c] = !u || typeof u != "object" || Jr.has(u.constructor) ? u : a(u));
2485
+ for (c in s) re(s, c) && (u = s[c], d[c] = !u || typeof u != "object" || Jr.has(u.constructor) ? u : a(u));
2486
2486
  return d;
2487
2487
  }(r[n]);
2488
2488
  }), e;
@@ -2528,22 +2528,22 @@ function Ga() {
2528
2528
  function An(e, r, n, a) {
2529
2529
  for (var s = [], c = 0, u = Object.entries(e.queries.query); c < u.length; c++) {
2530
2530
  for (var d = u[c], p = d[0], y = [], w = 0, h = d[1]; w < h.length; w++) {
2531
- var O = h[w];
2532
- Rr(r, O.obsSet) ? O.subscribers.forEach(function(v) {
2531
+ var _ = h[w];
2532
+ Rr(r, _.obsSet) ? _.subscribers.forEach(function(v) {
2533
2533
  return n.add(v);
2534
- }) : a && y.push(O);
2534
+ }) : a && y.push(_);
2535
2535
  }
2536
2536
  a && s.push([p, y]);
2537
2537
  }
2538
2538
  if (a) for (var m = 0, E = s; m < E.length; m++) {
2539
- var S = E[m], p = S[0], y = S[1];
2539
+ var O = E[m], p = O[0], y = O[1];
2540
2540
  e.queries.query[p] = y;
2541
2541
  }
2542
2542
  }
2543
2543
  function ya(e) {
2544
2544
  var r = e._state, n = e._deps.indexedDB;
2545
2545
  if (r.isBeingOpened || e.idbdb) return r.dbReadyPromise.then(function() {
2546
- return r.dbOpenError ? ee(r.dbOpenError) : e;
2546
+ return r.dbOpenError ? q(r.dbOpenError) : e;
2547
2547
  });
2548
2548
  r.isBeingOpened = !0, r.dbOpenError = null, r.openComplete = !1;
2549
2549
  var a = r.openCanceller, s = Math.round(10 * e.verno), c = !1;
@@ -2551,24 +2551,24 @@ function Ga() {
2551
2551
  if (r.openCanceller !== a) throw new L.DatabaseClosed("db.open() was cancelled");
2552
2552
  }
2553
2553
  function d() {
2554
- return new j(function(O, m) {
2554
+ return new j(function(_, m) {
2555
2555
  if (u(), !n) throw new L.MissingAPI();
2556
- var E = e.name, S = r.autoSchema || !s ? n.open(E) : n.open(E, s);
2557
- if (!S) throw new L.MissingAPI();
2558
- S.onerror = ye(m), S.onblocked = Z(e._fireOnBlocked), S.onupgradeneeded = Z(function(v) {
2556
+ var E = e.name, O = r.autoSchema || !s ? n.open(E) : n.open(E, s);
2557
+ if (!O) throw new L.MissingAPI();
2558
+ O.onerror = ye(m), O.onblocked = Z(e._fireOnBlocked), O.onupgradeneeded = Z(function(v) {
2559
2559
  var A;
2560
- w = S.transaction, r.autoSchema && !e._options.allowEmptyDB ? (S.onerror = pt, w.abort(), S.result.close(), (A = n.deleteDatabase(E)).onsuccess = A.onerror = Z(function() {
2560
+ w = O.transaction, r.autoSchema && !e._options.allowEmptyDB ? (O.onerror = pt, w.abort(), O.result.close(), (A = n.deleteDatabase(E)).onsuccess = A.onerror = Z(function() {
2561
2561
  m(new L.NoSuchDatabase("Database ".concat(E, " doesnt exist")));
2562
- })) : (w.onerror = ye(m), v = v.oldVersion > Math.pow(2, 62) ? 0 : v.oldVersion, h = v < 1, e.idbdb = S.result, c && pa(e, w), ga(e, v / 10, w, m));
2563
- }, m), S.onsuccess = Z(function() {
2562
+ })) : (w.onerror = ye(m), v = v.oldVersion > Math.pow(2, 62) ? 0 : v.oldVersion, h = v < 1, e.idbdb = O.result, c && pa(e, w), ga(e, v / 10, w, m));
2563
+ }, m), O.onsuccess = Z(function() {
2564
2564
  w = null;
2565
- var v, A, P, D, N, T = e.idbdb = S.result, C = _t(T.objectStoreNames);
2565
+ var v, A, P, N, D, T = e.idbdb = O.result, C = _t(T.objectStoreNames);
2566
2566
  if (0 < C.length) try {
2567
- var R = T.transaction((D = C).length === 1 ? D[0] : D, "readonly");
2567
+ var R = T.transaction((N = C).length === 1 ? N[0] : N, "readonly");
2568
2568
  if (r.autoSchema) A = T, P = R, (v = e).verno = A.version / 10, P = v._dbSchema = Wt(0, A, P), v._storeNames = _t(A.objectStoreNames, 0), Lt(v, [v._allTables], I(P), P);
2569
- else if (Ft(e, e._dbSchema, R), ((N = Ar(Wt(0, (N = e).idbdb, R), N._dbSchema)).add.length || N.change.some(function(x) {
2569
+ else if (Ft(e, e._dbSchema, R), ((D = Ar(Wt(0, (D = e).idbdb, R), D._dbSchema)).add.length || D.change.some(function(x) {
2570
2570
  return x.add.length || x.change.length;
2571
- })) && !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."), T.close(), s = T.version + 1, c = !0, O(d());
2571
+ })) && !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."), T.close(), s = T.version + 1, c = !0, _(d());
2572
2572
  Bt(e, R);
2573
2573
  } catch {
2574
2574
  }
@@ -2576,23 +2576,23 @@ function Ga() {
2576
2576
  r.vcFired = !0, e.on("versionchange").fire(x);
2577
2577
  }), T.onclose = Z(function(x) {
2578
2578
  e.on("close").fire(x);
2579
- }), h && (N = e._deps, R = E, T = N.indexedDB, N = N.IDBKeyRange, Nr(T) || R === $t || Dr(T, N).put({ name: R }).catch(Q)), O();
2579
+ }), h && (D = e._deps, R = E, T = D.indexedDB, D = D.IDBKeyRange, Dr(T) || R === $t || Nr(T, D).put({ name: R }).catch(Q)), _();
2580
2580
  }, m);
2581
- }).catch(function(O) {
2582
- switch (O?.name) {
2581
+ }).catch(function(_) {
2582
+ switch (_?.name) {
2583
2583
  case "UnknownError":
2584
2584
  if (0 < r.PR1398_maxLoop) return r.PR1398_maxLoop--, console.warn("Dexie: Workaround for Chrome UnknownError on open()"), d();
2585
2585
  break;
2586
2586
  case "VersionError":
2587
2587
  if (0 < s) return s = 0, d();
2588
2588
  }
2589
- return j.reject(O);
2589
+ return j.reject(_);
2590
2590
  });
2591
2591
  }
2592
2592
  var p, y = r.dbReadyResolve, w = null, h = !1;
2593
- return j.race([a, (typeof navigator > "u" ? j.resolve() : !navigator.userAgentData && /Safari\//.test(navigator.userAgent) && !/Chrom(e|ium)\//.test(navigator.userAgent) && indexedDB.databases ? new Promise(function(O) {
2593
+ return j.race([a, (typeof navigator > "u" ? j.resolve() : !navigator.userAgentData && /Safari\//.test(navigator.userAgent) && !/Chrom(e|ium)\//.test(navigator.userAgent) && indexedDB.databases ? new Promise(function(_) {
2594
2594
  function m() {
2595
- return indexedDB.databases().finally(O);
2595
+ return indexedDB.databases().finally(_);
2596
2596
  }
2597
2597
  p = setInterval(m, 100), m();
2598
2598
  }).finally(function() {
@@ -2600,32 +2600,32 @@ function Ga() {
2600
2600
  }) : Promise.resolve()).then(d)]).then(function() {
2601
2601
  return u(), r.onReadyBeingFired = [], j.resolve(Ir(function() {
2602
2602
  return e.on.ready.fire(e.vip);
2603
- })).then(function O() {
2603
+ })).then(function _() {
2604
2604
  if (0 < r.onReadyBeingFired.length) {
2605
2605
  var m = r.onReadyBeingFired.reduce(or, Q);
2606
2606
  return r.onReadyBeingFired = [], j.resolve(Ir(function() {
2607
2607
  return m(e.vip);
2608
- })).then(O);
2608
+ })).then(_);
2609
2609
  }
2610
2610
  });
2611
2611
  }).finally(function() {
2612
2612
  r.openCanceller === a && (r.onReadyBeingFired = null, r.isBeingOpened = !1);
2613
- }).catch(function(O) {
2614
- r.dbOpenError = O;
2613
+ }).catch(function(_) {
2614
+ r.dbOpenError = _;
2615
2615
  try {
2616
2616
  w && w.abort();
2617
2617
  } catch {
2618
2618
  }
2619
- return a === r.openCanceller && e._close(), ee(O);
2619
+ return a === r.openCanceller && e._close(), q(_);
2620
2620
  }).finally(function() {
2621
2621
  r.openComplete = !0, y();
2622
2622
  }).then(function() {
2623
- var O;
2624
- return h && (O = {}, e.tables.forEach(function(m) {
2623
+ var _;
2624
+ return h && (_ = {}, e.tables.forEach(function(m) {
2625
2625
  m.schema.indexes.forEach(function(E) {
2626
- E.name && (O["idb://".concat(e.name, "/").concat(m.name, "/").concat(E.name)] = new oe(-1 / 0, [[[]]]));
2627
- }), O["idb://".concat(e.name, "/").concat(m.name, "/")] = O["idb://".concat(e.name, "/").concat(m.name, "/:dels")] = new oe(-1 / 0, [[[]]]);
2628
- }), Re(mt).fire(O), Cr(O, !0)), e;
2626
+ E.name && (_["idb://".concat(e.name, "/").concat(m.name, "/").concat(E.name)] = new oe(-1 / 0, [[[]]]));
2627
+ }), _["idb://".concat(e.name, "/").concat(m.name, "/")] = _["idb://".concat(e.name, "/").concat(m.name, "/:dels")] = new oe(-1 / 0, [[[]]]);
2628
+ }), Re(mt).fire(_), Cr(_, !0)), e;
2629
2629
  });
2630
2630
  }
2631
2631
  function $r(e) {
@@ -2650,10 +2650,10 @@ function Ga() {
2650
2650
  var ba = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create: function(e) {
2651
2651
  return l(l({}, e), { table: function(r) {
2652
2652
  var n = e.table(r), a = n.schema, s = {}, c = [];
2653
- function u(h, O, m) {
2654
- var E = bt(h), S = s[E] = s[E] || [], v = h == null ? 0 : typeof h == "string" ? 1 : h.length, A = 0 < O, A = l(l({}, m), { name: A ? "".concat(E, "(virtual-from:").concat(m.name, ")") : m.name, lowLevelIndex: m, isVirtual: A, keyTail: O, keyLength: v, extractKey: Or(h), unique: !A && m.unique });
2655
- return S.push(A), A.isPrimaryKey || c.push(A), 1 < v && u(v === 2 ? h[0] : h.slice(0, v - 1), O + 1, m), S.sort(function(P, D) {
2656
- return P.keyTail - D.keyTail;
2653
+ function u(h, _, m) {
2654
+ var E = bt(h), O = s[E] = s[E] || [], v = h == null ? 0 : typeof h == "string" ? 1 : h.length, A = 0 < _, A = l(l({}, m), { name: A ? "".concat(E, "(virtual-from:").concat(m.name, ")") : m.name, lowLevelIndex: m, isVirtual: A, keyTail: _, keyLength: v, extractKey: Or(h), unique: !A && m.unique });
2655
+ return O.push(A), A.isPrimaryKey || c.push(A), 1 < v && u(v === 2 ? h[0] : h.slice(0, v - 1), _ + 1, m), O.sort(function(P, N) {
2656
+ return P.keyTail - N.keyTail;
2657
2657
  }), A;
2658
2658
  }
2659
2659
  r = u(a.primaryKey.keyPath, 0, a.primaryKey), s[":id"] = [r];
@@ -2662,8 +2662,8 @@ function Ga() {
2662
2662
  u(y.keyPath, 0, y);
2663
2663
  }
2664
2664
  function w(h) {
2665
- var O, m = h.query.index;
2666
- return m.isVirtual ? l(l({}, h), { query: { index: m.lowLevelIndex, range: (O = h.query.range, m = m.keyTail, { type: O.type === 1 ? 2 : O.type, lower: Qt(O.lower, O.lowerOpen ? e.MAX_KEY : e.MIN_KEY, m), lowerOpen: !0, upper: Qt(O.upper, O.upperOpen ? e.MIN_KEY : e.MAX_KEY, m), upperOpen: !0 }) } }) : h;
2665
+ var _, m = h.query.index;
2666
+ return m.isVirtual ? l(l({}, h), { query: { index: m.lowLevelIndex, range: (_ = h.query.range, m = m.keyTail, { type: _.type === 1 ? 2 : _.type, lower: Qt(_.lower, _.lowerOpen ? e.MAX_KEY : e.MIN_KEY, m), lowerOpen: !0, upper: Qt(_.upper, _.upperOpen ? e.MIN_KEY : e.MAX_KEY, m), upperOpen: !0 }) } }) : h;
2667
2667
  }
2668
2668
  return l(l({}, n), { schema: l(l({}, a), { primaryKey: r, indexes: c, getIndexByKeyPath: function(h) {
2669
2669
  return (h = s[bt(h)]) && h[0];
@@ -2672,20 +2672,20 @@ function Ga() {
2672
2672
  }, query: function(h) {
2673
2673
  return n.query(w(h));
2674
2674
  }, openCursor: function(h) {
2675
- var O = h.query.index, m = O.keyTail, E = O.isVirtual, S = O.keyLength;
2675
+ var _ = h.query.index, m = _.keyTail, E = _.isVirtual, O = _.keyLength;
2676
2676
  return E ? n.openCursor(w(h)).then(function(A) {
2677
2677
  return A && v(A);
2678
2678
  }) : n.openCursor(h);
2679
2679
  function v(A) {
2680
2680
  return Object.create(A, { continue: { value: function(P) {
2681
- P != null ? A.continue(Qt(P, h.reverse ? e.MAX_KEY : e.MIN_KEY, m)) : h.unique ? A.continue(A.key.slice(0, S).concat(h.reverse ? e.MIN_KEY : e.MAX_KEY, m)) : A.continue();
2682
- } }, continuePrimaryKey: { value: function(P, D) {
2683
- A.continuePrimaryKey(Qt(P, e.MAX_KEY, m), D);
2681
+ P != null ? A.continue(Qt(P, h.reverse ? e.MAX_KEY : e.MIN_KEY, m)) : h.unique ? A.continue(A.key.slice(0, O).concat(h.reverse ? e.MIN_KEY : e.MAX_KEY, m)) : A.continue();
2682
+ } }, continuePrimaryKey: { value: function(P, N) {
2683
+ A.continuePrimaryKey(Qt(P, e.MAX_KEY, m), N);
2684
2684
  } }, primaryKey: { get: function() {
2685
2685
  return A.primaryKey;
2686
2686
  } }, key: { get: function() {
2687
2687
  var P = A.key;
2688
- return S === 1 ? P[0] : P.slice(0, S);
2688
+ return O === 1 ? P[0] : P.slice(0, O);
2689
2689
  } }, value: { get: function() {
2690
2690
  return A.value;
2691
2691
  } } });
@@ -2696,9 +2696,9 @@ function Ga() {
2696
2696
  function jr(e, r, n, a) {
2697
2697
  return n = n || {}, a = a || "", I(e).forEach(function(s) {
2698
2698
  var c, u, d;
2699
- q(r, s) ? (c = e[s], u = r[s], typeof c == "object" && typeof u == "object" && c && u ? (d = rr(c)) !== rr(u) ? n[a + s] = r[s] : d === "Object" ? jr(c, u, n, a + s + ".") : c !== u && (n[a + s] = r[s]) : c !== u && (n[a + s] = r[s])) : n[a + s] = void 0;
2699
+ re(r, s) ? (c = e[s], u = r[s], typeof c == "object" && typeof u == "object" && c && u ? (d = rr(c)) !== rr(u) ? n[a + s] = r[s] : d === "Object" ? jr(c, u, n, a + s + ".") : c !== u && (n[a + s] = r[s]) : c !== u && (n[a + s] = r[s])) : n[a + s] = void 0;
2700
2700
  }), I(r).forEach(function(s) {
2701
- q(e, s) || (n[a + s] = r[s]);
2701
+ re(e, s) || (n[a + s] = r[s]);
2702
2702
  }), n;
2703
2703
  }
2704
2704
  function Gr(e, r) {
@@ -2728,11 +2728,11 @@ function Ga() {
2728
2728
  case "deleteRange":
2729
2729
  if (d.fire === Q) break;
2730
2730
  return c._promise("readwrite", function() {
2731
- return function h(O, m, E) {
2732
- return n.query({ trans: O, values: !1, query: { index: a, range: m }, limit: E }).then(function(S) {
2733
- var v = S.result;
2734
- return w({ type: "delete", keys: v, trans: O }).then(function(A) {
2735
- return 0 < A.numFailures ? Promise.reject(A.failures[0]) : v.length < E ? { failures: [], numFailures: 0, lastResult: void 0 } : h(O, l(l({}, m), { lower: v[v.length - 1], lowerOpen: !0 }), E);
2731
+ return function h(_, m, E) {
2732
+ return n.query({ trans: _, values: !1, query: { index: a, range: m }, limit: E }).then(function(O) {
2733
+ var v = O.result;
2734
+ return w({ type: "delete", keys: v, trans: _ }).then(function(A) {
2735
+ return 0 < A.numFailures ? Promise.reject(A.failures[0]) : v.length < E ? { failures: [], numFailures: 0, lastResult: void 0 } : h(_, l(l({}, m), { lower: v[v.length - 1], lowerOpen: !0 }), E);
2736
2736
  });
2737
2737
  });
2738
2738
  }(s.trans, s.range, 1e4);
@@ -2740,25 +2740,25 @@ function Ga() {
2740
2740
  }
2741
2741
  return n.mutate(s);
2742
2742
  function w(h) {
2743
- var O, m, E, S = B.trans, v = h.keys || Gr(a, h);
2743
+ var _, m, E, O = B.trans, v = h.keys || Gr(a, h);
2744
2744
  if (!v) throw new Error("Keys missing");
2745
- return (h = h.type === "add" || h.type === "put" ? l(l({}, h), { keys: v }) : l({}, h)).type !== "delete" && (h.values = g([], h.values)), h.keys && (h.keys = g([], h.keys)), O = n, E = v, ((m = h).type === "add" ? Promise.resolve([]) : O.getMany({ trans: m.trans, keys: E, cache: "immutable" })).then(function(A) {
2746
- var P = v.map(function(D, N) {
2747
- var T, C, R, x = A[N], $ = { onerror: null, onsuccess: null };
2748
- return h.type === "delete" ? d.fire.call($, D, x, S) : h.type === "add" || x === void 0 ? (T = p.fire.call($, D, h.values[N], S), D == null && T != null && (h.keys[N] = D = T, a.outbound || le(h.values[N], a.keyPath, D))) : (T = jr(x, h.values[N]), (C = y.fire.call($, T, D, x, S)) && (R = h.values[N], Object.keys(C).forEach(function(k) {
2749
- q(R, k) ? R[k] = C[k] : le(R, k, C[k]);
2745
+ return (h = h.type === "add" || h.type === "put" ? l(l({}, h), { keys: v }) : l({}, h)).type !== "delete" && (h.values = g([], h.values)), h.keys && (h.keys = g([], h.keys)), _ = n, E = v, ((m = h).type === "add" ? Promise.resolve([]) : _.getMany({ trans: m.trans, keys: E, cache: "immutable" })).then(function(A) {
2746
+ var P = v.map(function(N, D) {
2747
+ var T, C, R, x = A[D], $ = { onerror: null, onsuccess: null };
2748
+ return h.type === "delete" ? d.fire.call($, N, x, O) : h.type === "add" || x === void 0 ? (T = p.fire.call($, N, h.values[D], O), N == null && T != null && (h.keys[D] = N = T, a.outbound || le(h.values[D], a.keyPath, N))) : (T = jr(x, h.values[D]), (C = y.fire.call($, T, N, x, O)) && (R = h.values[D], Object.keys(C).forEach(function(k) {
2749
+ re(R, k) ? R[k] = C[k] : le(R, k, C[k]);
2750
2750
  }))), $;
2751
2751
  });
2752
- return n.mutate(h).then(function(D) {
2753
- for (var N = D.failures, T = D.results, C = D.numFailures, D = D.lastResult, R = 0; R < v.length; ++R) {
2752
+ return n.mutate(h).then(function(N) {
2753
+ for (var D = N.failures, T = N.results, C = N.numFailures, N = N.lastResult, R = 0; R < v.length; ++R) {
2754
2754
  var x = (T || v)[R], $ = P[R];
2755
- x == null ? $.onerror && $.onerror(N[R]) : $.onsuccess && $.onsuccess(h.type === "put" && A[R] ? h.values[R] : x);
2755
+ x == null ? $.onerror && $.onerror(D[R]) : $.onsuccess && $.onsuccess(h.type === "put" && A[R] ? h.values[R] : x);
2756
2756
  }
2757
- return { failures: N, results: T, numFailures: C, lastResult: D };
2758
- }).catch(function(D) {
2759
- return P.forEach(function(N) {
2760
- return N.onerror && N.onerror(D);
2761
- }), Promise.reject(D);
2757
+ return { failures: D, results: T, numFailures: C, lastResult: N };
2758
+ }).catch(function(N) {
2759
+ return P.forEach(function(D) {
2760
+ return D.onerror && D.onerror(N);
2761
+ }), Promise.reject(N);
2762
2762
  });
2763
2763
  });
2764
2764
  }
@@ -2788,10 +2788,10 @@ function Ga() {
2788
2788
  } });
2789
2789
  } };
2790
2790
  } };
2791
- function Dn(e, r) {
2791
+ function Nn(e, r) {
2792
2792
  return e.trans.mode === "readonly" && !!e.subscr && !e.trans.explicit && e.trans.db._options.cache !== "disabled" && !r.schema.primaryKey.outbound;
2793
2793
  }
2794
- function Nn(e, r) {
2794
+ function Dn(e, r) {
2795
2795
  switch (e) {
2796
2796
  case "query":
2797
2797
  return r.values && !r.unique;
@@ -2812,77 +2812,77 @@ function Ga() {
2812
2812
  return m.compound && m.keyPath.includes(u.keyPath);
2813
2813
  }), w = l(l({}, s), { mutate: function(m) {
2814
2814
  function E(k) {
2815
- return k = "idb://".concat(r, "/").concat(a, "/").concat(k), D[k] || (D[k] = new oe());
2815
+ return k = "idb://".concat(r, "/").concat(a, "/").concat(k), N[k] || (N[k] = new oe());
2816
2816
  }
2817
- var S, v, A, P = m.trans, D = m.mutatedParts || (m.mutatedParts = {}), N = E(""), T = E(":dels"), C = m.type, $ = m.type === "deleteRange" ? [m.range] : m.type === "delete" ? [m.keys] : m.values.length < 50 ? [Gr(u, m).filter(function(k) {
2817
+ var O, v, A, P = m.trans, N = m.mutatedParts || (m.mutatedParts = {}), D = E(""), T = E(":dels"), C = m.type, $ = m.type === "deleteRange" ? [m.range] : m.type === "delete" ? [m.keys] : m.values.length < 50 ? [Gr(u, m).filter(function(k) {
2818
2818
  return k;
2819
2819
  }), m.values] : [], R = $[0], x = $[1], $ = m.trans._cache;
2820
- return G(R) ? (N.addKeys(R), ($ = C === "delete" || R.length === x.length ? Pn(R, $) : null) || T.addKeys(R), ($ || x) && (S = E, v = $, A = x, c.indexes.forEach(function(k) {
2821
- var M = S(k.name || "");
2820
+ return G(R) ? (D.addKeys(R), ($ = C === "delete" || R.length === x.length ? Pn(R, $) : null) || T.addKeys(R), ($ || x) && (O = E, v = $, A = x, c.indexes.forEach(function(k) {
2821
+ var K = O(k.name || "");
2822
2822
  function W(z) {
2823
2823
  return z != null ? k.extractKey(z) : null;
2824
2824
  }
2825
2825
  function F(z) {
2826
2826
  return k.multiEntry && G(z) ? z.forEach(function(he) {
2827
- return M.addKey(he);
2828
- }) : M.addKey(z);
2827
+ return K.addKey(he);
2828
+ }) : K.addKey(z);
2829
2829
  }
2830
2830
  (v || A).forEach(function(z, ie) {
2831
2831
  var U = v && W(v[ie]), ie = A && W(A[ie]);
2832
2832
  H(U, ie) !== 0 && (U != null && F(U), ie != null && F(ie));
2833
2833
  });
2834
- }))) : R ? (x = { from: (x = R.lower) !== null && x !== void 0 ? x : e.MIN_KEY, to: (x = R.upper) !== null && x !== void 0 ? x : e.MAX_KEY }, T.add(x), N.add(x)) : (N.add(n), T.add(n), c.indexes.forEach(function(k) {
2834
+ }))) : R ? (x = { from: (x = R.lower) !== null && x !== void 0 ? x : e.MIN_KEY, to: (x = R.upper) !== null && x !== void 0 ? x : e.MAX_KEY }, T.add(x), D.add(x)) : (D.add(n), T.add(n), c.indexes.forEach(function(k) {
2835
2835
  return E(k.name).add(n);
2836
2836
  })), s.mutate(m).then(function(k) {
2837
- return !R || m.type !== "add" && m.type !== "put" || (N.addKeys(k.results), y && y.forEach(function(M) {
2837
+ return !R || m.type !== "add" && m.type !== "put" || (D.addKeys(k.results), y && y.forEach(function(K) {
2838
2838
  for (var W = m.values.map(function(U) {
2839
- return M.extractKey(U);
2840
- }), F = M.keyPath.findIndex(function(U) {
2839
+ return K.extractKey(U);
2840
+ }), F = K.keyPath.findIndex(function(U) {
2841
2841
  return U === u.keyPath;
2842
2842
  }), z = 0, he = k.results.length; z < he; ++z) W[z][F] = k.results[z];
2843
- E(M.name).addKeys(W);
2844
- })), P.mutatedParts = Vt(P.mutatedParts || {}, D), k;
2843
+ E(K.name).addKeys(W);
2844
+ })), P.mutatedParts = Vt(P.mutatedParts || {}, N), k;
2845
2845
  });
2846
2846
  } }), h = function(E) {
2847
- var S = E.query, E = S.index, S = S.range;
2848
- return [E, new oe((E = S.lower) !== null && E !== void 0 ? E : e.MIN_KEY, (S = S.upper) !== null && S !== void 0 ? S : e.MAX_KEY)];
2849
- }, O = { get: function(m) {
2847
+ var O = E.query, E = O.index, O = O.range;
2848
+ return [E, new oe((E = O.lower) !== null && E !== void 0 ? E : e.MIN_KEY, (O = O.upper) !== null && O !== void 0 ? O : e.MAX_KEY)];
2849
+ }, _ = { get: function(m) {
2850
2850
  return [u, new oe(m.key)];
2851
2851
  }, getMany: function(m) {
2852
2852
  return [u, new oe().addKeys(m.keys)];
2853
2853
  }, count: h, query: h, openCursor: h };
2854
- return I(O).forEach(function(m) {
2854
+ return I(_).forEach(function(m) {
2855
2855
  w[m] = function(E) {
2856
- var S = B.subscr, v = !!S, A = Dn(B, s) && Nn(m, E) ? E.obsSet = {} : S;
2856
+ var O = B.subscr, v = !!O, A = Nn(B, s) && Dn(m, E) ? E.obsSet = {} : O;
2857
2857
  if (v) {
2858
2858
  var P = function(x) {
2859
2859
  return x = "idb://".concat(r, "/").concat(a, "/").concat(x), A[x] || (A[x] = new oe());
2860
- }, D = P(""), N = P(":dels"), S = O[m](E), v = S[0], S = S[1];
2861
- if ((m === "query" && v.isPrimaryKey && !E.values ? N : P(v.name || "")).add(S), !v.isPrimaryKey) {
2860
+ }, N = P(""), D = P(":dels"), O = _[m](E), v = O[0], O = O[1];
2861
+ if ((m === "query" && v.isPrimaryKey && !E.values ? D : P(v.name || "")).add(O), !v.isPrimaryKey) {
2862
2862
  if (m !== "count") {
2863
2863
  var T = m === "query" && p && E.values && s.query(l(l({}, E), { values: !1 }));
2864
2864
  return s[m].apply(this, arguments).then(function(x) {
2865
2865
  if (m === "query") {
2866
2866
  if (p && E.values) return T.then(function(W) {
2867
- return W = W.result, D.addKeys(W), x;
2867
+ return W = W.result, N.addKeys(W), x;
2868
2868
  });
2869
2869
  var $ = E.values ? x.result.map(d) : x.result;
2870
- (E.values ? D : N).addKeys($);
2870
+ (E.values ? N : D).addKeys($);
2871
2871
  } else if (m === "openCursor") {
2872
- var k = x, M = E.values;
2872
+ var k = x, K = E.values;
2873
2873
  return k && Object.create(k, { key: { get: function() {
2874
- return N.addKey(k.primaryKey), k.key;
2874
+ return D.addKey(k.primaryKey), k.key;
2875
2875
  } }, primaryKey: { get: function() {
2876
2876
  var W = k.primaryKey;
2877
- return N.addKey(W), W;
2877
+ return D.addKey(W), W;
2878
2878
  } }, value: { get: function() {
2879
- return M && D.addKey(k.primaryKey), k.value;
2879
+ return K && N.addKey(k.primaryKey), k.value;
2880
2880
  } } });
2881
2881
  }
2882
2882
  return x;
2883
2883
  });
2884
2884
  }
2885
- N.add(n);
2885
+ D.add(n);
2886
2886
  }
2887
2887
  }
2888
2888
  return s[m].apply(this, arguments);
@@ -2904,55 +2904,55 @@ function Ga() {
2904
2904
  return n = e, ((a = r).lower === void 0 || (a.lowerOpen ? 0 < H(n, a.lower) : 0 <= H(n, a.lower))) && (e = e, (r = r).upper === void 0 || (r.upperOpen ? H(e, r.upper) < 0 : H(e, r.upper) <= 0));
2905
2905
  var n, a;
2906
2906
  }
2907
- function Tn(e, r, O, a, s, c) {
2908
- if (!O || O.length === 0) return e;
2909
- var u = r.query.index, d = u.multiEntry, p = r.query.range, y = a.schema.primaryKey.extractKey, w = u.extractKey, h = (u.lowLevelIndex || u).extractKey, O = O.reduce(function(m, E) {
2910
- var S = m, v = [];
2907
+ function Tn(e, r, _, a, s, c) {
2908
+ if (!_ || _.length === 0) return e;
2909
+ var u = r.query.index, d = u.multiEntry, p = r.query.range, y = a.schema.primaryKey.extractKey, w = u.extractKey, h = (u.lowLevelIndex || u).extractKey, _ = _.reduce(function(m, E) {
2910
+ var O = m, v = [];
2911
2911
  if (E.type === "add" || E.type === "put") for (var A = new oe(), P = E.values.length - 1; 0 <= P; --P) {
2912
- var D, N = E.values[P], T = y(N);
2913
- A.hasKey(T) || (D = w(N), (d && G(D) ? D.some(function(k) {
2912
+ var N, D = E.values[P], T = y(D);
2913
+ A.hasKey(T) || (N = w(D), (d && G(N) ? N.some(function(k) {
2914
2914
  return Mr(k, p);
2915
- }) : Mr(D, p)) && (A.addKey(T), v.push(N)));
2915
+ }) : Mr(N, p)) && (A.addKey(T), v.push(D)));
2916
2916
  }
2917
2917
  switch (E.type) {
2918
2918
  case "add":
2919
- var C = new oe().addKeys(r.values ? m.map(function(M) {
2920
- return y(M);
2921
- }) : m), S = m.concat(r.values ? v.filter(function(M) {
2922
- return M = y(M), !C.hasKey(M) && (C.addKey(M), !0);
2923
- }) : v.map(function(M) {
2924
- return y(M);
2925
- }).filter(function(M) {
2926
- return !C.hasKey(M) && (C.addKey(M), !0);
2919
+ var C = new oe().addKeys(r.values ? m.map(function(K) {
2920
+ return y(K);
2921
+ }) : m), O = m.concat(r.values ? v.filter(function(K) {
2922
+ return K = y(K), !C.hasKey(K) && (C.addKey(K), !0);
2923
+ }) : v.map(function(K) {
2924
+ return y(K);
2925
+ }).filter(function(K) {
2926
+ return !C.hasKey(K) && (C.addKey(K), !0);
2927
2927
  }));
2928
2928
  break;
2929
2929
  case "put":
2930
- var R = new oe().addKeys(E.values.map(function(M) {
2931
- return y(M);
2930
+ var R = new oe().addKeys(E.values.map(function(K) {
2931
+ return y(K);
2932
2932
  }));
2933
- S = m.filter(function(M) {
2934
- return !R.hasKey(r.values ? y(M) : M);
2935
- }).concat(r.values ? v : v.map(function(M) {
2936
- return y(M);
2933
+ O = m.filter(function(K) {
2934
+ return !R.hasKey(r.values ? y(K) : K);
2935
+ }).concat(r.values ? v : v.map(function(K) {
2936
+ return y(K);
2937
2937
  }));
2938
2938
  break;
2939
2939
  case "delete":
2940
2940
  var x = new oe().addKeys(E.keys);
2941
- S = m.filter(function(M) {
2942
- return !x.hasKey(r.values ? y(M) : M);
2941
+ O = m.filter(function(K) {
2942
+ return !x.hasKey(r.values ? y(K) : K);
2943
2943
  });
2944
2944
  break;
2945
2945
  case "deleteRange":
2946
2946
  var $ = E.range;
2947
- S = m.filter(function(M) {
2948
- return !Mr(y(M), $);
2947
+ O = m.filter(function(K) {
2948
+ return !Mr(y(K), $);
2949
2949
  });
2950
2950
  }
2951
- return S;
2951
+ return O;
2952
2952
  }, e);
2953
- return O === e ? e : (O.sort(function(m, E) {
2953
+ return _ === e ? e : (_.sort(function(m, E) {
2954
2954
  return H(h(m), h(E)) || H(y(m), y(E));
2955
- }), 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);
2955
+ }), 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(_) : _);
2956
2956
  }
2957
2957
  function Rn(e, r) {
2958
2958
  return H(e.lower, r.lower) === 0 && H(e.upper, r.upper) === 0 && !!e.lowerOpen == !!r.lowerOpen && !!e.upperOpen == !!r.upperOpen;
@@ -2994,28 +2994,28 @@ function Ga() {
2994
2994
  return function() {
2995
2995
  if (c.abort(), a === "readwrite") {
2996
2996
  for (var y = /* @__PURE__ */ new Set(), w = 0, h = n; w < h.length; w++) {
2997
- var O = h[w], m = Fe["idb://".concat(r, "/").concat(O)];
2997
+ var _ = h[w], m = Fe["idb://".concat(r, "/").concat(_)];
2998
2998
  if (m) {
2999
- var E = e.table(O), S = m.optimisticOps.filter(function(M) {
3000
- return M.trans === d;
2999
+ var E = e.table(_), O = m.optimisticOps.filter(function(K) {
3000
+ return K.trans === d;
3001
3001
  });
3002
- if (d._explicit && p && d.mutatedParts) for (var v = 0, A = Object.values(m.queries.query); v < A.length; v++) for (var P = 0, D = (C = A[v]).slice(); P < D.length; P++) Rr((R = D[P]).obsSet, d.mutatedParts) && ($e(C, R), R.subscribers.forEach(function(M) {
3003
- return y.add(M);
3002
+ if (d._explicit && p && d.mutatedParts) for (var v = 0, A = Object.values(m.queries.query); v < A.length; v++) for (var P = 0, N = (C = A[v]).slice(); P < N.length; P++) Rr((R = N[P]).obsSet, d.mutatedParts) && ($e(C, R), R.subscribers.forEach(function(K) {
3003
+ return y.add(K);
3004
3004
  }));
3005
- else if (0 < S.length) {
3006
- m.optimisticOps = m.optimisticOps.filter(function(M) {
3007
- return M.trans !== d;
3005
+ else if (0 < O.length) {
3006
+ m.optimisticOps = m.optimisticOps.filter(function(K) {
3007
+ return K.trans !== d;
3008
3008
  });
3009
- for (var N = 0, T = Object.values(m.queries.query); N < T.length; N++) for (var C, R, x, $ = 0, k = (C = T[N]).slice(); $ < k.length; $++) (R = k[$]).res != null && d.mutatedParts && (p && !R.dirty ? (x = Object.isFrozen(R.res), x = Tn(R.res, R.req, S, E, R, x), R.dirty ? ($e(C, R), R.subscribers.forEach(function(M) {
3010
- return y.add(M);
3011
- })) : x !== R.res && (R.res = x, R.promise = j.resolve({ result: x }))) : (R.dirty && $e(C, R), R.subscribers.forEach(function(M) {
3012
- return y.add(M);
3009
+ for (var D = 0, T = Object.values(m.queries.query); D < T.length; D++) for (var C, R, x, $ = 0, k = (C = T[D]).slice(); $ < k.length; $++) (R = k[$]).res != null && d.mutatedParts && (p && !R.dirty ? (x = Object.isFrozen(R.res), x = Tn(R.res, R.req, O, E, R, x), R.dirty ? ($e(C, R), R.subscribers.forEach(function(K) {
3010
+ return y.add(K);
3011
+ })) : x !== R.res && (R.res = x, R.promise = j.resolve({ result: x }))) : (R.dirty && $e(C, R), R.subscribers.forEach(function(K) {
3012
+ return y.add(K);
3013
3013
  })));
3014
3014
  }
3015
3015
  }
3016
3016
  }
3017
- y.forEach(function(M) {
3018
- return M();
3017
+ y.forEach(function(K) {
3018
+ return K();
3019
3019
  });
3020
3020
  }
3021
3021
  };
@@ -3034,46 +3034,46 @@ function Ga() {
3034
3034
  $e(d.optimisticOps, c), c.mutatedParts && Yt(c.mutatedParts);
3035
3035
  })) : u.then(function(p) {
3036
3036
  var y = In(0, l(l({}, c), { values: c.values.map(function(w, h) {
3037
- var O;
3038
- 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);
3037
+ var _;
3038
+ return p.failures[h] ? w : (w = (_ = s.keyPath) !== null && _ !== void 0 && _.includes(".") ? Ce(w) : l({}, w), le(w, s.keyPath, p.results[h]), w);
3039
3039
  }) }), p);
3040
3040
  d.optimisticOps.push(y), queueMicrotask(function() {
3041
3041
  return c.mutatedParts && Yt(c.mutatedParts);
3042
3042
  });
3043
3043
  }), u) : a.mutate(c);
3044
3044
  }, query: function(c) {
3045
- if (!Dn(B, a) || !Nn("query", c)) return a.query(c);
3046
- var u = ((y = B.trans) === null || y === void 0 ? void 0 : y.db._options.cache) === "immutable", h = B, d = h.requery, p = h.signal, y = function(E, S, v, A) {
3047
- var P = Fe["idb://".concat(E, "/").concat(S)];
3045
+ if (!Nn(B, a) || !Dn("query", c)) return a.query(c);
3046
+ var u = ((y = B.trans) === null || y === void 0 ? void 0 : y.db._options.cache) === "immutable", h = B, d = h.requery, p = h.signal, y = function(E, O, v, A) {
3047
+ var P = Fe["idb://".concat(E, "/").concat(O)];
3048
3048
  if (!P) return [];
3049
- if (!(S = P.queries[v])) return [null, !1, P, null];
3050
- var D = S[(A.query ? A.query.index.name : null) || ""];
3051
- if (!D) return [null, !1, P, null];
3049
+ if (!(O = P.queries[v])) return [null, !1, P, null];
3050
+ var N = O[(A.query ? A.query.index.name : null) || ""];
3051
+ if (!N) return [null, !1, P, null];
3052
3052
  switch (v) {
3053
3053
  case "query":
3054
- var N = D.find(function(T) {
3054
+ var D = N.find(function(T) {
3055
3055
  return T.req.limit === A.limit && T.req.values === A.values && Rn(T.req.query.range, A.query.range);
3056
3056
  });
3057
- return N ? [N, !0, P, D] : [D.find(function(T) {
3057
+ return D ? [D, !0, P, N] : [N.find(function(T) {
3058
3058
  return ("limit" in T.req ? T.req.limit : 1 / 0) >= A.limit && (!A.values || T.req.values) && Sa(T.req.query.range, A.query.range);
3059
- }), !1, P, D];
3059
+ }), !1, P, N];
3060
3060
  case "count":
3061
- return N = D.find(function(T) {
3061
+ return D = N.find(function(T) {
3062
3062
  return Rn(T.req.query.range, A.query.range);
3063
- }), [N, !!N, P, D];
3063
+ }), [D, !!D, P, N];
3064
3064
  }
3065
- }(r, n, "query", c), w = y[0], h = y[1], O = y[2], m = y[3];
3065
+ }(r, n, "query", c), w = y[0], h = y[1], _ = y[2], m = y[3];
3066
3066
  return w && h ? w.obsSet = c.obsSet : (h = a.query(c).then(function(E) {
3067
- var S = E.result;
3068
- if (w && (w.res = S), u) {
3069
- for (var v = 0, A = S.length; v < A; ++v) Object.freeze(S[v]);
3070
- Object.freeze(S);
3071
- } else E.result = Ce(S);
3067
+ var O = E.result;
3068
+ if (w && (w.res = O), u) {
3069
+ for (var v = 0, A = O.length; v < A; ++v) Object.freeze(O[v]);
3070
+ Object.freeze(O);
3071
+ } else E.result = Ce(O);
3072
3072
  return E;
3073
3073
  }).catch(function(E) {
3074
3074
  return m && w && $e(m, w), Promise.reject(E);
3075
- }), w = { obsSet: c.obsSet, promise: h, subscribers: /* @__PURE__ */ new Set(), type: "query", req: c, dirty: !1 }, m ? m.push(w) : (m = [w], (O = O || (Fe["idb://".concat(r, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[c.query.index.name || ""] = m)), Oa(w, m, d, p), w.promise.then(function(E) {
3076
- return { result: Tn(E.result, c, O?.optimisticOps, a, w, u) };
3075
+ }), w = { obsSet: c.obsSet, promise: h, subscribers: /* @__PURE__ */ new Set(), type: "query", req: c, dirty: !1 }, m ? m.push(w) : (m = [w], (_ = _ || (Fe["idb://".concat(r, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[c.query.index.name || ""] = m)), Oa(w, m, d, p), w.promise.then(function(E) {
3076
+ return { result: Tn(E.result, c, _?.optimisticOps, a, w, u) };
3077
3077
  });
3078
3078
  } });
3079
3079
  } });
@@ -3083,7 +3083,7 @@ function Ga() {
3083
3083
  return a === "db" ? r : Reflect.get(n, a, s);
3084
3084
  } });
3085
3085
  }
3086
- var Se = (te.prototype.version = function(e) {
3086
+ var Se = (ee.prototype.version = function(e) {
3087
3087
  if (isNaN(e) || e < 0.1) throw new L.Type("Given version is not a positive number");
3088
3088
  if (e = Math.round(10 * e) / 10, this.idbdb || this._state.isBeingOpened) throw new L.Schema("Cannot add version when database is open");
3089
3089
  this.verno = Math.max(this.verno, e);
@@ -3091,7 +3091,7 @@ function Ga() {
3091
3091
  return a._cfg.version === e;
3092
3092
  })[0];
3093
3093
  return n || (n = new this.Version(e), r.push(n), r.sort(fa), n.stores({}), this._state.autoSchema = !1, n);
3094
- }, te.prototype._whenReady = function(e) {
3094
+ }, ee.prototype._whenReady = function(e) {
3095
3095
  var r = this;
3096
3096
  return this.idbdb && (this._state.openComplete || B.letThrough || this._vip) ? e() : new j(function(n, a) {
3097
3097
  if (r._state.openComplete) return a(new L.DatabaseClosed(r._state.dbOpenError));
@@ -3101,22 +3101,22 @@ function Ga() {
3101
3101
  }
3102
3102
  r._state.dbReadyPromise.then(n, a);
3103
3103
  }).then(e);
3104
- }, te.prototype.use = function(e) {
3104
+ }, ee.prototype.use = function(e) {
3105
3105
  var r = e.stack, n = e.create, a = e.level, s = e.name;
3106
3106
  return s && this.unuse({ stack: r, name: s }), e = this._middlewares[r] || (this._middlewares[r] = []), e.push({ stack: r, create: n, level: a ?? 10, name: s }), e.sort(function(c, u) {
3107
3107
  return c.level - u.level;
3108
3108
  }), this;
3109
- }, te.prototype.unuse = function(e) {
3109
+ }, ee.prototype.unuse = function(e) {
3110
3110
  var r = e.stack, n = e.name, a = e.create;
3111
3111
  return r && this._middlewares[r] && (this._middlewares[r] = this._middlewares[r].filter(function(s) {
3112
3112
  return a ? s.create !== a : !!n && s.name !== n;
3113
3113
  })), this;
3114
- }, te.prototype.open = function() {
3114
+ }, ee.prototype.open = function() {
3115
3115
  var e = this;
3116
3116
  return Le(Pe, function() {
3117
3117
  return ya(e);
3118
3118
  });
3119
- }, te.prototype._close = function() {
3119
+ }, ee.prototype._close = function() {
3120
3120
  var e = this._state, r = et.indexOf(this);
3121
3121
  if (0 <= r && et.splice(r, 1), this.idbdb) {
3122
3122
  try {
@@ -3130,10 +3130,10 @@ function Ga() {
3130
3130
  }), e.openCanceller = new j(function(n, a) {
3131
3131
  e.cancelOpen = a;
3132
3132
  }));
3133
- }, te.prototype.close = function(n) {
3133
+ }, ee.prototype.close = function(n) {
3134
3134
  var r = (n === void 0 ? { disableAutoOpen: !0 } : n).disableAutoOpen, n = this._state;
3135
3135
  r ? (n.isBeingOpened && n.cancelOpen(new L.DatabaseClosed()), this._close(), n.autoOpen = !1, n.dbOpenError = new L.DatabaseClosed()) : (this._close(), n.autoOpen = this._options.autoOpen || n.isBeingOpened, n.openComplete = !1, n.dbOpenError = null);
3136
- }, te.prototype.delete = function(e) {
3136
+ }, ee.prototype.delete = function(e) {
3137
3137
  var r = this;
3138
3138
  e === void 0 && (e = { disableAutoOpen: !0 });
3139
3139
  var n = 0 < arguments.length && typeof arguments[0] != "object", a = this._state;
@@ -3143,29 +3143,29 @@ function Ga() {
3143
3143
  var d = r._deps.indexedDB.deleteDatabase(r.name);
3144
3144
  d.onsuccess = Z(function() {
3145
3145
  var p, y, w;
3146
- p = r._deps, y = r.name, w = p.indexedDB, p = p.IDBKeyRange, Nr(w) || y === $t || Dr(w, p).delete(y).catch(Q), s();
3146
+ p = r._deps, y = r.name, w = p.indexedDB, p = p.IDBKeyRange, Dr(w) || y === $t || Nr(w, p).delete(y).catch(Q), s();
3147
3147
  }), d.onerror = ye(c), d.onblocked = r._fireOnBlocked;
3148
3148
  }
3149
3149
  if (n) throw new L.InvalidArgument("Invalid closeOptions argument to db.delete()");
3150
3150
  a.isBeingOpened ? a.dbReadyPromise.then(u) : u();
3151
3151
  });
3152
- }, te.prototype.backendDB = function() {
3152
+ }, ee.prototype.backendDB = function() {
3153
3153
  return this.idbdb;
3154
- }, te.prototype.isOpen = function() {
3154
+ }, ee.prototype.isOpen = function() {
3155
3155
  return this.idbdb !== null;
3156
- }, te.prototype.hasBeenClosed = function() {
3156
+ }, ee.prototype.hasBeenClosed = function() {
3157
3157
  var e = this._state.dbOpenError;
3158
3158
  return e && e.name === "DatabaseClosed";
3159
- }, te.prototype.hasFailed = function() {
3159
+ }, ee.prototype.hasFailed = function() {
3160
3160
  return this._state.dbOpenError !== null;
3161
- }, te.prototype.dynamicallyOpened = function() {
3161
+ }, ee.prototype.dynamicallyOpened = function() {
3162
3162
  return this._state.autoSchema;
3163
- }, Object.defineProperty(te.prototype, "tables", { get: function() {
3163
+ }, Object.defineProperty(ee.prototype, "tables", { get: function() {
3164
3164
  var e = this;
3165
3165
  return I(this._allTables).map(function(r) {
3166
3166
  return e._allTables[r];
3167
3167
  });
3168
- }, enumerable: !1, configurable: !0 }), te.prototype.transaction = function() {
3168
+ }, enumerable: !1, configurable: !0 }), ee.prototype.transaction = function() {
3169
3169
  var e = function(r, n, a) {
3170
3170
  var s = arguments.length;
3171
3171
  if (s < 2) throw new L.InvalidArgument("Too few arguments");
@@ -3173,7 +3173,7 @@ function Ga() {
3173
3173
  return a = c.pop(), [r, Xr(c), a];
3174
3174
  }.apply(this, arguments);
3175
3175
  return this._transaction.apply(this, e);
3176
- }, te.prototype._transaction = function(e, r, n) {
3176
+ }, ee.prototype._transaction = function(e, r, n) {
3177
3177
  var a = this, s = B.trans;
3178
3178
  s && s.db === this && e.indexOf("!") === -1 || (s = null);
3179
3179
  var c, u, d = e.indexOf("?") !== -1;
@@ -3202,59 +3202,59 @@ function Ga() {
3202
3202
  } catch (y) {
3203
3203
  return s ? s._promise(null, function(w, h) {
3204
3204
  h(y);
3205
- }) : ee(y);
3205
+ }) : q(y);
3206
3206
  }
3207
- var p = function y(w, h, O, m, E) {
3207
+ var p = function y(w, h, _, m, E) {
3208
3208
  return j.resolve().then(function() {
3209
- var S = B.transless || B, v = w._createTransaction(h, O, w._dbSchema, m);
3210
- if (v.explicit = !0, S = { trans: v, transless: S }, m) v.idbtrans = m.idbtrans;
3209
+ var O = B.transless || B, v = w._createTransaction(h, _, w._dbSchema, m);
3210
+ if (v.explicit = !0, O = { trans: v, transless: O }, m) v.idbtrans = m.idbtrans;
3211
3211
  else try {
3212
3212
  v.create(), v.idbtrans._explicit = !0, w._state.PR1398_maxLoop = 3;
3213
- } catch (D) {
3214
- return D.name === sr.InvalidState && w.isOpen() && 0 < --w._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), w.close({ disableAutoOpen: !1 }), w.open().then(function() {
3215
- return y(w, h, O, null, E);
3216
- })) : ee(D);
3213
+ } catch (N) {
3214
+ return N.name === sr.InvalidState && w.isOpen() && 0 < --w._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), w.close({ disableAutoOpen: !1 }), w.open().then(function() {
3215
+ return y(w, h, _, null, E);
3216
+ })) : q(N);
3217
3217
  }
3218
3218
  var A, P = ar(E);
3219
- return P && qe(), S = j.follow(function() {
3220
- var D;
3221
- (A = E.call(v, v)) && (P ? (D = Ne.bind(null, null), A.then(D, D)) : typeof A.next == "function" && typeof A.throw == "function" && (A = $r(A)));
3222
- }, S), (A && typeof A.then == "function" ? j.resolve(A).then(function(D) {
3223
- return v.active ? D : ee(new L.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"));
3224
- }) : S.then(function() {
3219
+ return P && qe(), O = j.follow(function() {
3220
+ var N;
3221
+ (A = E.call(v, v)) && (P ? (N = De.bind(null, null), A.then(N, N)) : typeof A.next == "function" && typeof A.throw == "function" && (A = $r(A)));
3222
+ }, O), (A && typeof A.then == "function" ? j.resolve(A).then(function(N) {
3223
+ return v.active ? N : q(new L.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"));
3224
+ }) : O.then(function() {
3225
3225
  return A;
3226
- })).then(function(D) {
3226
+ })).then(function(N) {
3227
3227
  return m && v._resolve(), v._completion.then(function() {
3228
- return D;
3228
+ return N;
3229
3229
  });
3230
- }).catch(function(D) {
3231
- return v._reject(D), ee(D);
3230
+ }).catch(function(N) {
3231
+ return v._reject(N), q(N);
3232
3232
  });
3233
3233
  });
3234
3234
  }.bind(null, this, c, u, s, n);
3235
3235
  return s ? s._promise(c, p, "lock") : B.trans ? Le(B.transless, function() {
3236
3236
  return a._whenReady(p);
3237
3237
  }) : this._whenReady(p);
3238
- }, te.prototype.table = function(e) {
3239
- if (!q(this._allTables, e)) throw new L.InvalidTable("Table ".concat(e, " does not exist"));
3238
+ }, ee.prototype.table = function(e) {
3239
+ if (!re(this._allTables, e)) throw new L.InvalidTable("Table ".concat(e, " does not exist"));
3240
3240
  return this._allTables[e];
3241
- }, te);
3242
- function te(e, r) {
3241
+ }, ee);
3242
+ function ee(e, r) {
3243
3243
  var n = this;
3244
3244
  this._middlewares = {}, this.verno = 0;
3245
- var a = te.dependencies;
3246
- this._options = r = l({ addons: te.addons, autoOpen: !0, indexedDB: a.indexedDB, IDBKeyRange: a.IDBKeyRange, cache: "cloned" }, r), this._deps = { indexedDB: r.indexedDB, IDBKeyRange: r.IDBKeyRange }, a = r.addons, this._dbSchema = {}, this._versions = [], this._storeNames = [], this._allTables = {}, this.idbdb = null, this._novip = this;
3245
+ var a = ee.dependencies;
3246
+ this._options = r = l({ addons: ee.addons, autoOpen: !0, indexedDB: a.indexedDB, IDBKeyRange: a.IDBKeyRange, cache: "cloned" }, r), this._deps = { indexedDB: r.indexedDB, IDBKeyRange: r.IDBKeyRange }, a = r.addons, this._dbSchema = {}, this._versions = [], this._storeNames = [], this._allTables = {}, this.idbdb = null, this._novip = this;
3247
3247
  var s, c, u, d, p, y = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: Q, dbReadyPromise: null, cancelOpen: Q, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: r.autoOpen };
3248
3248
  y.dbReadyPromise = new j(function(h) {
3249
3249
  y.dbReadyResolve = h;
3250
- }), y.openCanceller = new j(function(h, O) {
3251
- y.cancelOpen = O;
3250
+ }), y.openCanceller = new j(function(h, _) {
3251
+ y.cancelOpen = _;
3252
3252
  }), this._state = y, this.name = e, this.on = ht(this, "populate", "blocked", "versionchange", "close", { ready: [or, Q] }), this.on.ready.subscribe = Vr(this.on.ready.subscribe, function(h) {
3253
- return function(O, m) {
3254
- te.vip(function() {
3255
- var E, S = n._state;
3256
- S.openComplete ? (S.dbOpenError || j.resolve().then(O), m && h(O)) : S.onReadyBeingFired ? (S.onReadyBeingFired.push(O), m && h(O)) : (h(O), E = n, m || h(function v() {
3257
- E.on.ready.unsubscribe(O), E.on.ready.unsubscribe(v);
3253
+ return function(_, m) {
3254
+ ee.vip(function() {
3255
+ var E, O = n._state;
3256
+ O.openComplete ? (O.dbOpenError || j.resolve().then(_), m && h(_)) : O.onReadyBeingFired ? (O.onReadyBeingFired.push(_), m && h(_)) : (h(_), E = n, m || h(function v() {
3257
+ E.on.ready.unsubscribe(_), E.on.ready.unsubscribe(v);
3258
3258
  }));
3259
3259
  });
3260
3260
  };
@@ -3266,52 +3266,52 @@ function Ga() {
3266
3266
  } catch (P) {
3267
3267
  E = P;
3268
3268
  }
3269
- var S = A._ctx, v = S.table, A = v.hook.reading.fire;
3270
- this._ctx = { table: v, index: S.index, isPrimKey: !S.index || v.schema.primKey.keyPath && S.index === v.schema.primKey.name, range: m, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: E, or: S.or, valueMapper: A !== it ? A : null };
3271
- })), this.Table = (c = this, ft(hn.prototype, function(h, O, m) {
3272
- this.db = c, this._tx = m, this.name = h, this.schema = O, this.hook = c._allTables[h] ? c._allTables[h].hook : ht(null, { creating: [Jn, Q], reading: [Xn, it], updating: [qn, Q], deleting: [Zn, Q] });
3273
- })), this.Transaction = (u = this, ft(ua.prototype, function(h, O, m, E, S) {
3269
+ var O = A._ctx, v = O.table, A = v.hook.reading.fire;
3270
+ this._ctx = { table: v, index: O.index, isPrimKey: !O.index || v.schema.primKey.keyPath && O.index === v.schema.primKey.name, range: m, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: E, or: O.or, valueMapper: A !== it ? A : null };
3271
+ })), this.Table = (c = this, ft(hn.prototype, function(h, _, m) {
3272
+ this.db = c, this._tx = m, this.name = h, this.schema = _, this.hook = c._allTables[h] ? c._allTables[h].hook : ht(null, { creating: [Jn, Q], reading: [Xn, it], updating: [qn, Q], deleting: [Zn, Q] });
3273
+ })), this.Transaction = (u = this, ft(ua.prototype, function(h, _, m, E, O) {
3274
3274
  var v = this;
3275
- this.db = u, this.mode = h, this.storeNames = O, this.schema = m, this.chromeTransactionDurability = E, this.idbtrans = null, this.on = ht(this, "complete", "error", "abort"), this.parent = S || 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 j(function(A, P) {
3275
+ this.db = u, this.mode = h, this.storeNames = _, this.schema = m, this.chromeTransactionDurability = E, this.idbtrans = null, this.on = ht(this, "complete", "error", "abort"), this.parent = O || 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 j(function(A, P) {
3276
3276
  v._resolve = A, v._reject = P;
3277
3277
  }), this._completion.then(function() {
3278
3278
  v.active = !1, v.on.complete.fire();
3279
3279
  }, function(A) {
3280
3280
  var P = v.active;
3281
- return v.active = !1, v.on.error.fire(A), v.parent ? v.parent._reject(A) : P && v.idbtrans && v.idbtrans.abort(), ee(A);
3281
+ return v.active = !1, v.on.error.fire(A), v.parent ? v.parent._reject(A) : P && v.idbtrans && v.idbtrans.abort(), q(A);
3282
3282
  });
3283
3283
  })), this.Version = (d = this, ft(ma.prototype, function(h) {
3284
3284
  this.db = d, this._cfg = { version: h, storesSource: null, dbschema: {}, tables: {}, contentUpgrade: null };
3285
- })), this.WhereClause = (p = this, ft(yn.prototype, function(h, O, m) {
3286
- if (this.db = p, this._ctx = { table: h, index: O === ":id" ? null : O, or: m }, this._cmp = this._ascending = H, this._descending = function(E, S) {
3287
- return H(S, E);
3288
- }, this._max = function(E, S) {
3289
- return 0 < H(E, S) ? E : S;
3290
- }, this._min = function(E, S) {
3291
- return H(E, S) < 0 ? E : S;
3285
+ })), this.WhereClause = (p = this, ft(yn.prototype, function(h, _, m) {
3286
+ if (this.db = p, this._ctx = { table: h, index: _ === ":id" ? null : _, or: m }, this._cmp = this._ascending = H, this._descending = function(E, O) {
3287
+ return H(O, E);
3288
+ }, this._max = function(E, O) {
3289
+ return 0 < H(E, O) ? E : O;
3290
+ }, this._min = function(E, O) {
3291
+ return H(E, O) < 0 ? E : O;
3292
3292
  }, this._IDBKeyRange = p._deps.IDBKeyRange, !this._IDBKeyRange) throw new L.MissingAPI();
3293
3293
  })), this.on("versionchange", function(h) {
3294
3294
  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 });
3295
3295
  }), this.on("blocked", function(h) {
3296
3296
  !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));
3297
- }), this._maxKey = yt(r.IDBKeyRange), this._createTransaction = function(h, O, m, E) {
3298
- return new n.Transaction(h, O, m, n._options.chromeTransactionDurability, E);
3297
+ }), this._maxKey = yt(r.IDBKeyRange), this._createTransaction = function(h, _, m, E) {
3298
+ return new n.Transaction(h, _, m, n._options.chromeTransactionDurability, E);
3299
3299
  }, this._fireOnBlocked = function(h) {
3300
- n.on("blocked").fire(h), et.filter(function(O) {
3301
- return O.name === n.name && O !== n && !O._state.vcFired;
3302
- }).map(function(O) {
3303
- return O.on("versionchange").fire(h);
3300
+ n.on("blocked").fire(h), et.filter(function(_) {
3301
+ return _.name === n.name && _ !== n && !_._state.vcFired;
3302
+ }).map(function(_) {
3303
+ return _.on("versionchange").fire(h);
3304
3304
  });
3305
3305
  }, this.use(Ea), this.use(_a), this.use(wa), this.use(ba), this.use(va);
3306
- var w = new Proxy(this, { get: function(h, O, m) {
3307
- if (O === "_vip") return !0;
3308
- if (O === "table") return function(S) {
3309
- return Xt(n.table(S), w);
3306
+ var w = new Proxy(this, { get: function(h, _, m) {
3307
+ if (_ === "_vip") return !0;
3308
+ if (_ === "table") return function(O) {
3309
+ return Xt(n.table(O), w);
3310
3310
  };
3311
- var E = Reflect.get(h, O, m);
3312
- return E instanceof hn ? Xt(E, w) : O === "tables" ? E.map(function(S) {
3313
- return Xt(S, w);
3314
- }) : O === "_createTransaction" ? function() {
3311
+ var E = Reflect.get(h, _, m);
3312
+ return E instanceof hn ? Xt(E, w) : _ === "tables" ? E.map(function(O) {
3313
+ return Xt(O, w);
3314
+ }) : _ === "_createTransaction" ? function() {
3315
3315
  return Xt(E.apply(this, arguments), w);
3316
3316
  } : E;
3317
3317
  } });
@@ -3340,26 +3340,26 @@ function Ga() {
3340
3340
  d || (d = !0, u && u.abort(), h && Re.storagemutated.unsubscribe(m));
3341
3341
  } };
3342
3342
  s.start && s.start(w);
3343
- var h = !1, O = function() {
3343
+ var h = !1, _ = function() {
3344
3344
  return gr(E);
3345
- }, m = function(S) {
3346
- Vt(p, S), Rr(y, p) && O();
3345
+ }, m = function(O) {
3346
+ Vt(p, O), Rr(y, p) && _();
3347
3347
  }, E = function() {
3348
- var S, v, A;
3349
- !d && Jt.indexedDB && (p = {}, S = {}, u && u.abort(), u = new AbortController(), A = function(P) {
3350
- var D = Je();
3348
+ var O, v, A;
3349
+ !d && Jt.indexedDB && (p = {}, O = {}, u && u.abort(), u = new AbortController(), A = function(P) {
3350
+ var N = Je();
3351
3351
  try {
3352
3352
  c && qe();
3353
- var N = De(e, P);
3354
- return N = c ? N.finally(Ne) : N;
3353
+ var D = Ne(e, P);
3354
+ return D = c ? D.finally(De) : D;
3355
3355
  } finally {
3356
- D && Ze();
3356
+ N && Ze();
3357
3357
  }
3358
- }(v = { subscr: S, signal: u.signal, requery: O, querier: e, trans: null }), Promise.resolve(A).then(function(P) {
3359
- n = !0, r = P, d || v.signal.aborted || (p = {}, function(D) {
3360
- for (var N in D) if (q(D, N)) return;
3358
+ }(v = { subscr: O, signal: u.signal, requery: _, querier: e, trans: null }), Promise.resolve(A).then(function(P) {
3359
+ n = !0, r = P, d || v.signal.aborted || (p = {}, function(N) {
3360
+ for (var D in N) if (re(N, D)) return;
3361
3361
  return 1;
3362
- }(y = S) || h || (Re(mt, m), h = !0), gr(function() {
3362
+ }(y = O) || h || (Re(mt, m), h = !0), gr(function() {
3363
3363
  return !d && s.next && s.next(P);
3364
3364
  }));
3365
3365
  }, function(P) {
@@ -3368,7 +3368,7 @@ function Ga() {
3368
3368
  });
3369
3369
  }));
3370
3370
  };
3371
- return setTimeout(O, 0), w;
3371
+ return setTimeout(_, 0), w;
3372
3372
  });
3373
3373
  return a.hasValue = function() {
3374
3374
  return n;
@@ -3395,20 +3395,20 @@ function Ga() {
3395
3395
  });
3396
3396
  }, getDatabaseNames: function(e) {
3397
3397
  try {
3398
- return r = ze.dependencies, n = r.indexedDB, r = r.IDBKeyRange, (Nr(n) ? Promise.resolve(n.databases()).then(function(a) {
3398
+ return r = ze.dependencies, n = r.indexedDB, r = r.IDBKeyRange, (Dr(n) ? Promise.resolve(n.databases()).then(function(a) {
3399
3399
  return a.map(function(s) {
3400
3400
  return s.name;
3401
3401
  }).filter(function(s) {
3402
3402
  return s !== $t;
3403
3403
  });
3404
- }) : Dr(n, r).toCollection().primaryKeys()).then(e);
3404
+ }) : Nr(n, r).toCollection().primaryKeys()).then(e);
3405
3405
  } catch {
3406
- return ee(new L.MissingAPI());
3406
+ return q(new L.MissingAPI());
3407
3407
  }
3408
3408
  var r, n;
3409
3409
  }, defineClass: function() {
3410
3410
  return function(e) {
3411
- re(this, e);
3411
+ te(this, e);
3412
3412
  };
3413
3413
  }, ignoreTransaction: function(e) {
3414
3414
  return B.trans ? Le(B.transless, e) : e();
@@ -3418,7 +3418,7 @@ function Ga() {
3418
3418
  var r = $r(e.apply(this, arguments));
3419
3419
  return r && typeof r.then == "function" ? r : j.resolve(r);
3420
3420
  } catch (n) {
3421
- return ee(n);
3421
+ return q(n);
3422
3422
  }
3423
3423
  };
3424
3424
  }, spawn: function(e, r, n) {
@@ -3426,7 +3426,7 @@ function Ga() {
3426
3426
  var a = $r(e.apply(n, r || []));
3427
3427
  return a && typeof a.then == "function" ? a : j.resolve(a);
3428
3428
  } catch (s) {
3429
- return ee(s);
3429
+ return q(s);
3430
3430
  }
3431
3431
  }, currentTransaction: { get: function() {
3432
3432
  return B.trans || null;
@@ -3436,7 +3436,7 @@ function Ga() {
3436
3436
  return me;
3437
3437
  }, set: function(e) {
3438
3438
  en(e);
3439
- } }, derive: Ve, extend: re, props: ge, override: Vr, Events: ht, on: Re, liveQuery: xn, extendObservabilitySet: Vt, getByKeyPath: ve, setByKeyPath: le, delByKeyPath: function(e, r) {
3439
+ } }, derive: Ve, extend: te, props: ge, override: Vr, Events: ht, on: Re, liveQuery: xn, extendObservabilitySet: Vt, getByKeyPath: ve, setByKeyPath: le, delByKeyPath: function(e, r) {
3440
3440
  typeof r == "string" ? le(e, r, void 0) : "length" in r && [].map.call(r, function(n) {
3441
3441
  le(e, n, void 0);
3442
3442
  });
@@ -3476,7 +3476,7 @@ function Ga() {
3476
3476
  return new gt({ remove: e });
3477
3477
  }, default: Se, RangeSet: oe, mergeRanges: Et, rangesOverlap: Sn }), { default: Se }), Se;
3478
3478
  });
3479
- }(tr)), tr.exports;
3479
+ }(er)), er.exports;
3480
3480
  }
3481
3481
  var Ma = Ga();
3482
3482
  const Fr = /* @__PURE__ */ $a(Ma), $n = Symbol.for("Dexie"), wt = globalThis[$n] || (globalThis[$n] = Fr);
@@ -3499,9 +3499,10 @@ class Gn {
3499
3499
  subscribers = [];
3500
3500
  options;
3501
3501
  constructor(t) {
3502
- this.options = t, this.db = new wt(t.app), this.db.version(13).stores({
3502
+ this.options = t, this.db = new wt(t.app), this.db.version(14).stores({
3503
+ cards: "id,dashboard_id,hash",
3503
3504
  channel: "id,slide_index",
3504
- cloud: "id,dashboard_id",
3505
+ cloud: "id,dashboard_id,hash",
3505
3506
  dashboard: "id,name,update",
3506
3507
  display: "id,monitor_id,presentation_id,colstart,colend,rowstart,rowend",
3507
3508
  images: "id,basename,extension,size,type,url",
@@ -3510,12 +3511,60 @@ class Gn {
3510
3511
  player: "id,title,name,location",
3511
3512
  preference: "id,value,update",
3512
3513
  presentation: "id,name,update",
3513
- series: "id,dashboard_id",
3514
+ series: "id,dashboard_id,hash",
3514
3515
  slide: "id,name,presentation_id,order_index,json,html,update",
3515
3516
  topics: "[widget_id+message_id],message_id,widget_id,dashboard_id,title,engagement,impressions,reach,sentiment,visible,approved,utc,expires",
3516
3517
  widget: "id,name,dashboard_id,type,update"
3517
3518
  }), this.db.open();
3518
3519
  }
3520
+ getHash = async (t, i) => {
3521
+ const l = await this.db.table(t).where({ id: i.widget }).last().catch(() => {
3522
+ M(2, [`%chash%c %capi%C %c${t}`, o.API, o.NONE, o.APP]);
3523
+ });
3524
+ return M(3, [
3525
+ `%cget%c %chash%c %c${t}`,
3526
+ o.OK,
3527
+ o.NONE,
3528
+ o.API,
3529
+ o.NONE,
3530
+ o.APP,
3531
+ i
3532
+ ]), l?.hash ?? "none";
3533
+ };
3534
+ setHash = async (t, i) => await this.db.table(t).where({
3535
+ id: i.widget
3536
+ }).modify({ hash: i.hash }).then(() => (M(3, [
3537
+ `%cset%c %chash%c %c${t}`,
3538
+ o.OK,
3539
+ o.NONE,
3540
+ o.API,
3541
+ o.NONE,
3542
+ o.APP,
3543
+ i
3544
+ ]), 201)).catch((l) => (M(2, [
3545
+ `%cget%c %chash%c %c${t}`,
3546
+ o.OK,
3547
+ o.NONE,
3548
+ o.API,
3549
+ o.NONE,
3550
+ o.APP,
3551
+ i,
3552
+ l.message
3553
+ ]), 400));
3554
+ setCards = async (t) => await this.db.table("cards").put({
3555
+ id: t.widget,
3556
+ dashboard_id: t.dashboard,
3557
+ hash: t.hash
3558
+ }).then(() => 201).catch((i) => (M(2, [
3559
+ "%cset%c %cstorage%c %ccloud",
3560
+ o.KO,
3561
+ o.NONE,
3562
+ o.STORAGE,
3563
+ o.NONE,
3564
+ o.CLOUD,
3565
+ t,
3566
+ i.message
3567
+ ]), 400));
3519
3568
  /**
3520
3569
  * Retrieve Cloud Data
3521
3570
  * @param query IQuery
@@ -3523,7 +3572,7 @@ class Gn {
3523
3572
  */
3524
3573
  getCloud = async (t) => {
3525
3574
  if (t.widget === "")
3526
- return K(3, [
3575
+ return M(3, [
3527
3576
  "%cget%c %cstorage%c %ccloud",
3528
3577
  o.NO_UPDATES,
3529
3578
  o.NONE,
@@ -3537,18 +3586,18 @@ class Gn {
3537
3586
  success: !1,
3538
3587
  query: t
3539
3588
  };
3540
- const i = await this.db.table(_.CLOUD).where({ id: t.widget }).last().catch(() => {
3541
- K(2, ["%capi%C %ccloud", o.API, o.NONE, o.CLOUD, t.widget]);
3589
+ const i = await this.db.table(S.CLOUD).where({ id: t.widget }).last().catch(() => {
3590
+ M(2, ["%capi%C %ccloud", o.API, o.NONE, o.CLOUD, t.widget]);
3542
3591
  });
3543
3592
  if (typeof i > "u")
3544
3593
  return { data: null, message: "Cloud Data error", success: !1, query: t };
3545
3594
  const l = {
3546
- data: i.data,
3595
+ data: i?.data ?? null,
3547
3596
  message: i !== void 0 ? "Cloud retrieved successfully" : "Cloud Data error",
3548
3597
  success: i !== void 0,
3549
3598
  query: t
3550
3599
  };
3551
- return K(3, [
3600
+ return M(3, [
3552
3601
  "%cget%c %cstorage%c %ccloud",
3553
3602
  o.OK,
3554
3603
  o.NONE,
@@ -3564,7 +3613,7 @@ class Gn {
3564
3613
  * @param data
3565
3614
  * @returns number
3566
3615
  */
3567
- setCloud = async (t, i) => t.type === _.CLOUD && i !== "" ? (K(3, [
3616
+ setCloud = async (t, i) => t.type === S.CLOUD && i !== "" ? (M(3, [
3568
3617
  "%cset%c %cstorage%c %ccloud",
3569
3618
  o.OK,
3570
3619
  o.NONE,
@@ -3572,13 +3621,13 @@ class Gn {
3572
3621
  o.NONE,
3573
3622
  o.CLOUD,
3574
3623
  i?.title ?? t.widget
3575
- ]), await this.db.table(_.CLOUD).put({
3624
+ ]), await this.db.table(S.CLOUD).put({
3576
3625
  id: t.widget,
3577
3626
  dashboard_id: t.dashboard,
3578
3627
  hash: t.hash,
3579
3628
  // data: data.data,
3580
3629
  data: i
3581
- }).then(() => 201).catch((l) => (K(2, [
3630
+ }).then(() => 201).catch((l) => (M(2, [
3582
3631
  "%cset%c %cstorage%c %ccloud",
3583
3632
  o.KO,
3584
3633
  o.NONE,
@@ -3589,8 +3638,8 @@ class Gn {
3589
3638
  l.message
3590
3639
  ]), 400))) : 400;
3591
3640
  getDashboard = async (t) => {
3592
- const i = await this.db.table(_.DASHBOARD).where({ id: t.id }).last().catch(() => {
3593
- K(2, ["%cstorage", o.STORAGE, X.DASHBOARD_LOAD, t.id]);
3641
+ const i = await this.db.table(S.DASHBOARD).where({ id: t.id }).last().catch(() => {
3642
+ M(2, ["%cstorage", o.STORAGE, X.DASHBOARD_LOAD, t.id]);
3594
3643
  });
3595
3644
  return i === void 0 ? {
3596
3645
  data: null,
@@ -3599,10 +3648,10 @@ class Gn {
3599
3648
  } : (i.message = `Dashboard ${t.id} retrieved from storage`, i.success = !0, i);
3600
3649
  };
3601
3650
  getDashboards = async (t) => {
3602
- 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(() => {
3603
- K(2, ["%cstorage", o.STORAGE, X.DASHBOARD_LOAD, t]);
3651
+ const i = (b) => t?.id === b.id, l = (b) => t?.name ? b.name.includes(t?.name) : !1, g = await this.db.table(S.DASHBOARD).toArray().then((b) => t?.id ? b.filter(i) : b).then((b) => t?.name ? b.filter(l) : b).catch(() => {
3652
+ M(2, ["%cstorage", o.STORAGE, X.DASHBOARD_LOAD, t]);
3604
3653
  });
3605
- return g !== void 0 && K(3, [
3654
+ return g !== void 0 && M(3, [
3606
3655
  "%cstorage%c %cdashboards",
3607
3656
  o.STORAGE,
3608
3657
  o.NONE,
@@ -3621,7 +3670,7 @@ class Gn {
3621
3670
  */
3622
3671
  setDashboard = async (t) => {
3623
3672
  const i = structuredClone(t);
3624
- return delete i.data.widgets, await this.db.table(_.DASHBOARD).put({
3673
+ return delete i.data.widgets, await this.db.table(S.DASHBOARD).put({
3625
3674
  id: i.id,
3626
3675
  name: i.name,
3627
3676
  data: i.data,
@@ -3630,7 +3679,7 @@ class Gn {
3630
3679
  data: null,
3631
3680
  message: `Dashboard ${i.data.id} saved to storage`,
3632
3681
  success: !0
3633
- })).catch((l) => (K(4, ["%cstorage", o.STORAGE, _.WIDGET, t, l.message]), {
3682
+ })).catch((l) => (M(4, ["%cstorage", o.STORAGE, S.WIDGET, t, l.message]), {
3634
3683
  data: null,
3635
3684
  message: `Dashboard ${i.data.id} save error: ${l.message}`,
3636
3685
  success: !1
@@ -3641,13 +3690,13 @@ class Gn {
3641
3690
  */
3642
3691
  cleanMessages = async () => {
3643
3692
  const t = Date.now() / 1e3, i = (b) => b.expires < t, l = (b) => b.expires < t;
3644
- return await this.db.table(_.TOPICS).orderBy("expires").filter(i).delete().catch((b) => (console.error(
3693
+ return await this.db.table(S.TOPICS).orderBy("expires").filter(i).delete().catch((b) => (console.error(
3645
3694
  "%cstorage%c %cclean",
3646
3695
  o.STORAGE,
3647
3696
  o.NONE,
3648
3697
  o.MESSAGES,
3649
3698
  b.message
3650
- ), 0)), await this.db.table(_.MESSAGES).orderBy("expires").filter(l).delete().catch((b) => (console.error(
3699
+ ), 0)), await this.db.table(S.MESSAGES).orderBy("expires").filter(l).delete().catch((b) => (console.error(
3651
3700
  "%clean%c %cstorage%c %cmessages",
3652
3701
  o.OK,
3653
3702
  o.NONE,
@@ -3664,7 +3713,7 @@ class Gn {
3664
3713
  */
3665
3714
  getMessages = async (t) => {
3666
3715
  if (t.widget === "")
3667
- return K(3, [
3716
+ return M(3, [
3668
3717
  "%cget%c %cstorage%c %cmessages",
3669
3718
  o.NO_UPDATES,
3670
3719
  o.NONE,
@@ -3682,7 +3731,7 @@ class Gn {
3682
3731
  i !== "utc" && (t.since = l - 60 * 60 * 24 * 30), this.options.delay !== 0 ? t.before = l - (this.options.delay || 0) : t.before = l;
3683
3732
  const g = (I) => I.utc > (t?.since || 0), b = (I) => I.utc < (t?.before || l);
3684
3733
  try {
3685
- const I = this.db.table(_.TOPICS).where("widget_id").equals(t.widget).filter(g).filter(b);
3734
+ const I = this.db.table(S.TOPICS).where("widget_id").equals(t.widget).filter(g).filter(b);
3686
3735
  t?.approved === "true" ? I.and((se) => se.approved === 1) : I.and((se) => se.visible === 1), I.reverse();
3687
3736
  const G = await I.limit(t?.limit ?? 25).sortBy(i);
3688
3737
  if (G.length === 0)
@@ -3692,9 +3741,9 @@ class Gn {
3692
3741
  success: !1,
3693
3742
  query: t
3694
3743
  };
3695
- const re = G.map((se) => this.db.table(_.MESSAGES).get({ id: se.message_id }));
3696
- return wt.Promise.all(re).then(async (se) => {
3697
- const q = {
3744
+ const te = G.map((se) => this.db.table(S.MESSAGES).get({ id: se.message_id }));
3745
+ return wt.Promise.all(te).then(async (se) => {
3746
+ const re = {
3698
3747
  data: {
3699
3748
  messages: se.map((ge) => {
3700
3749
  if (ge !== void 0) return ge.data;
@@ -3704,18 +3753,18 @@ class Gn {
3704
3753
  message: "Messages retrieved successfully",
3705
3754
  success: !0
3706
3755
  };
3707
- return q.query.hash = q.data.messages.length ? er(q.data.messages[0].utc) : "", K(3, [
3756
+ return M(3, [
3708
3757
  "%cget%c %cstorage%c %cmessages",
3709
3758
  o.OK,
3710
3759
  o.NONE,
3711
3760
  o.STORAGE,
3712
3761
  o.NONE,
3713
3762
  o.MESSAGES,
3714
- q
3715
- ]), q;
3763
+ re
3764
+ ]), re;
3716
3765
  });
3717
3766
  } catch (I) {
3718
- return K(2, [
3767
+ return M(2, [
3719
3768
  "%cget%c %cstorage%c %cmessages",
3720
3769
  o.OK,
3721
3770
  o.NONE,
@@ -3728,7 +3777,7 @@ class Gn {
3728
3777
  }
3729
3778
  };
3730
3779
  hideMessage = async (t, i) => {
3731
- await this.db.table(_.TOPICS).where("message_id").equals(t).modify({ visible: i ? 1 : 0 }).catch((l) => (console.error(
3780
+ await this.db.table(S.TOPICS).where("message_id").equals(t).modify({ visible: i ? 1 : 0 }).catch((l) => (console.error(
3732
3781
  "%chide%c %cstorage%c %cmessage",
3733
3782
  o.KO,
3734
3783
  o.NONE,
@@ -3745,11 +3794,11 @@ class Gn {
3745
3794
  * @returns number
3746
3795
  */
3747
3796
  setMessages = async (t, i) => {
3748
- if (t.type !== _.MESSAGES)
3797
+ if (t.type !== S.MESSAGES)
3749
3798
  return 400;
3750
3799
  const l = i.data.title;
3751
3800
  let g = 0;
3752
- return K(3, [
3801
+ return M(3, [
3753
3802
  "%cset%c %cstorage%c %cmessages",
3754
3803
  o.OK,
3755
3804
  o.NONE,
@@ -3767,13 +3816,13 @@ class Gn {
3767
3816
  sentiment: b.topics[0]?.sentiment || 0,
3768
3817
  // @ts-ignore
3769
3818
  approved: b.topics[0]?.approved ? 1 : 0
3770
- }, await this.db.table(_.MESSAGES).put({
3819
+ }, await this.db.table(S.MESSAGES).put({
3771
3820
  id: b.id,
3772
3821
  utc: b.utc,
3773
3822
  data: b,
3774
3823
  expires: b.expires
3775
3824
  }).catch((G) => {
3776
- g++, K(4, [
3825
+ g++, M(4, [
3777
3826
  "%cset%c %cstorage",
3778
3827
  o.KO,
3779
3828
  o.NONE,
@@ -3799,8 +3848,8 @@ class Gn {
3799
3848
  utc: b.utc,
3800
3849
  expires: b.expires
3801
3850
  };
3802
- await this.db.table(_.TOPICS).put(I).catch((G) => {
3803
- g++, K(4, [
3851
+ await this.db.table(S.TOPICS).put(I).catch((G) => {
3852
+ g++, M(4, [
3804
3853
  "%cset%c %cstorage",
3805
3854
  o.KO,
3806
3855
  o.NONE,
@@ -3811,15 +3860,15 @@ class Gn {
3811
3860
  G.message
3812
3861
  ]);
3813
3862
  }), await i.data.topics.forEach(async (G) => {
3814
- const re = G.message_id, se = G.visible ? 1 : 0, Ot = G.approve ? 1 : 0, q = G.title;
3815
- await this.db.table(_.TOPICS).where("message_id").equals(re).modify({ visible: se, approve: Ot }).catch((ge) => {
3816
- g++, K(4, [
3863
+ const te = G.message_id, se = G.visible ? 1 : 0, Ot = G.approve ? 1 : 0, re = G.title;
3864
+ await this.db.table(S.TOPICS).where("message_id").equals(te).modify({ visible: se, approve: Ot }).catch((ge) => {
3865
+ g++, M(4, [
3817
3866
  "%cset%c %cstorage",
3818
3867
  o.KO,
3819
3868
  o.NONE,
3820
3869
  o.STORAGE,
3821
3870
  "update message visibility",
3822
- `title: ${q}`,
3871
+ `title: ${re}`,
3823
3872
  `widget: ${G.widget_id}`,
3824
3873
  ge.message
3825
3874
  ]);
@@ -3835,7 +3884,7 @@ class Gn {
3835
3884
  */
3836
3885
  getSeries = async (t) => {
3837
3886
  if (t.widget === "")
3838
- return K(3, [
3887
+ return M(3, [
3839
3888
  "%cget%c %cstorage%c %cseries",
3840
3889
  o.NO_UPDATES,
3841
3890
  o.NONE,
@@ -3849,8 +3898,8 @@ class Gn {
3849
3898
  success: !1,
3850
3899
  query: t
3851
3900
  };
3852
- const i = await this.db.table(_.SERIES).where({ id: t.widget }).last().catch(() => {
3853
- K(2, [
3901
+ const i = await this.db.table(S.SERIES).where({ id: t.widget }).last().catch(() => {
3902
+ M(2, [
3854
3903
  "%cget%c %cstorage%c %cseries",
3855
3904
  o.KO,
3856
3905
  o.NONE,
@@ -3860,12 +3909,12 @@ class Gn {
3860
3909
  t.widget
3861
3910
  ]);
3862
3911
  }), l = {
3863
- data: i.data,
3912
+ data: i?.data ?? null,
3864
3913
  message: i !== void 0 ? "Get Series success" : "Get Series error",
3865
3914
  success: i !== void 0,
3866
3915
  query: t
3867
3916
  };
3868
- return K(3, [
3917
+ return M(3, [
3869
3918
  "%cget%c %cstorage%c %cseries",
3870
3919
  o.OK,
3871
3920
  o.NONE,
@@ -3881,7 +3930,7 @@ class Gn {
3881
3930
  * @param data
3882
3931
  * @returns number
3883
3932
  */
3884
- setSeries = async (t, i) => (delete i?.query, t.type === _.SERIES && i !== "" ? (K(3, [
3933
+ setSeries = async (t, i) => (delete i?.query, t.type === S.SERIES && i !== "" ? (M(3, [
3885
3934
  "%cset%c %cstorage%c %cseries",
3886
3935
  o.OK,
3887
3936
  o.NONE,
@@ -3889,13 +3938,13 @@ class Gn {
3889
3938
  o.NONE,
3890
3939
  o.SERIES,
3891
3940
  i?.title ?? t.widget
3892
- ]), await this.db.table(_.SERIES).put({
3941
+ ]), await this.db.table(S.SERIES).put({
3893
3942
  id: t.widget,
3894
3943
  dashboard_id: t.dashboard,
3895
3944
  hash: t.hash,
3896
3945
  // data: data.data,
3897
3946
  data: i
3898
- }).then(() => 201).catch((l) => (K(2, [
3947
+ }).then(() => 201).catch((l) => (M(2, [
3899
3948
  "%cset%c %cstorage%c %cseries",
3900
3949
  o.KO,
3901
3950
  o.NONE,
@@ -3912,7 +3961,7 @@ class Gn {
3912
3961
  */
3913
3962
  getWidget = async (t) => {
3914
3963
  if (t.id === "")
3915
- return K(3, [
3964
+ return M(3, [
3916
3965
  "%cget%c %cstorage%c %cwidget",
3917
3966
  o.KO,
3918
3967
  o.NONE,
@@ -3926,7 +3975,7 @@ class Gn {
3926
3975
  success: !1,
3927
3976
  query: t
3928
3977
  };
3929
- const i = await this.db.table(_.WIDGET).where({ id: t.id }).last().catch(() => {
3978
+ const i = await this.db.table(S.WIDGET).where({ id: t.id }).last().catch(() => {
3930
3979
  console.warn("%cstorage", o.STORAGE, X.WIDGET_LOAD, t.id);
3931
3980
  });
3932
3981
  return i === void 0 ? {
@@ -3941,10 +3990,10 @@ class Gn {
3941
3990
  * @returns IResponse
3942
3991
  */
3943
3992
  getWidgets = async (t) => {
3944
- const i = (I) => t?.dashboard === I.dashboard_id, l = (I) => t?.type === I.type, g = (I) => t?.name ? I.name.includes(t?.name) : !1, b = await this.db.table(_.WIDGET).toArray().then((I) => t?.dashboard ? I.filter(i) : I).then((I) => t?.type ? I.filter(l) : I).then((I) => t?.name ? I.filter(g) : I).catch(() => {
3945
- K(2, ["%cstorage", o.STORAGE, X.WIDGET_LOAD, t]);
3993
+ const i = (I) => t?.dashboard === I.dashboard_id, l = (I) => t?.type === I.type, g = (I) => t?.name ? I.name.includes(t?.name) : !1, b = await this.db.table(S.WIDGET).toArray().then((I) => t?.dashboard ? I.filter(i) : I).then((I) => t?.type ? I.filter(l) : I).then((I) => t?.name ? I.filter(g) : I).catch(() => {
3994
+ M(2, ["%cstorage", o.STORAGE, X.WIDGET_LOAD, t]);
3946
3995
  });
3947
- return b !== void 0 && K(3, [
3996
+ return b !== void 0 && M(3, [
3948
3997
  "%cstorage%c %cwidgets",
3949
3998
  o.STORAGE,
3950
3999
  o.NONE,
@@ -3962,7 +4011,7 @@ class Gn {
3962
4011
  * @param query IQuery
3963
4012
  * @returns number
3964
4013
  */
3965
- setWidget = async (t) => await this.db.table(_.WIDGET).put({
4014
+ setWidget = async (t) => await this.db.table(S.WIDGET).put({
3966
4015
  id: t.id,
3967
4016
  name: t.title,
3968
4017
  dashboard_id: t.dashboard_id,
@@ -3975,7 +4024,7 @@ class Gn {
3975
4024
  })).catch((i) => (console.error(
3976
4025
  "%cstorage",
3977
4026
  o.STORAGE,
3978
- _.WIDGET,
4027
+ S.WIDGET,
3979
4028
  t,
3980
4029
  i.message
3981
4030
  ), {
@@ -3990,7 +4039,7 @@ class Gn {
3990
4039
  */
3991
4040
  subscribe = (t) => (t = Ra(t), this.subscribers.filter(
3992
4041
  (l) => l.widget === t.widget
3993
- ).length > 0 || (t.type === _.MESSAGES && (t = St(this.options, t)), console.info(
4042
+ ).length > 0 || (t.type === S.MESSAGES && (t = St(this.options, t)), console.info(
3994
4043
  "%cstorage%c %csubscribe",
3995
4044
  o.STORAGE,
3996
4045
  o.NONE,
@@ -4015,8 +4064,8 @@ class Gn {
4015
4064
  * @returns IResponse
4016
4065
  */
4017
4066
  getSlide = async (t) => {
4018
- const i = await this.db.table(_.SLIDE).where({ id: t.id }).last().catch(() => {
4019
- K(2, ["%cstorage", o.STORAGE, X.SLIDE_LOAD, t.id]);
4067
+ const i = await this.db.table(S.SLIDE).where({ id: t.id }).last().catch(() => {
4068
+ M(2, ["%cstorage", o.STORAGE, X.SLIDE_LOAD, t.id]);
4020
4069
  });
4021
4070
  return {
4022
4071
  data: i,
@@ -4031,8 +4080,8 @@ class Gn {
4031
4080
  * @returns IResponse
4032
4081
  */
4033
4082
  getSlides = async (t) => {
4034
- const i = (G) => t?.id ? G.id === t.id : !1, l = (G) => t?.name ? G.name.includes(t?.name) : !1, g = (G) => t?.presentation_id ? G.presentation_id === t.presentation_id : !1, I = await this.db.table(_.SLIDE).toArray().then((G) => t?.presentation_id ? G.filter(g) : G).then((G) => t?.id ? G.filter(i) : G).then((G) => t?.name ? G.filter(l) : G);
4035
- return I && I.sort((G, re) => G.order_index - re.order_index), I !== void 0 && K(3, ["%cstorage%c %cslides", o.STORAGE, o.NONE, o.SLIDE, t]), {
4083
+ const i = (G) => t?.id ? G.id === t.id : !1, l = (G) => t?.name ? G.name.includes(t?.name) : !1, g = (G) => t?.presentation_id ? G.presentation_id === t.presentation_id : !1, I = await this.db.table(S.SLIDE).toArray().then((G) => t?.presentation_id ? G.filter(g) : G).then((G) => t?.id ? G.filter(i) : G).then((G) => t?.name ? G.filter(l) : G);
4084
+ return I && I.sort((G, te) => G.order_index - te.order_index), I !== void 0 && M(3, ["%cstorage%c %cslides", o.STORAGE, o.NONE, o.SLIDE, t]), {
4036
4085
  // @ts-ignore
4037
4086
  data: I,
4038
4087
  query: t,
@@ -4046,7 +4095,7 @@ class Gn {
4046
4095
  * @param query IQuery
4047
4096
  * @returns number
4048
4097
  */
4049
- setSlide = async (t) => await this.db.table(_.SLIDE).put({
4098
+ setSlide = async (t) => await this.db.table(S.SLIDE).put({
4050
4099
  id: t.data.id,
4051
4100
  presentation_id: t.data.presentation_id,
4052
4101
  order_index: t.data.order_index,
@@ -4075,7 +4124,7 @@ class Gn {
4075
4124
  * @returns IResponse
4076
4125
  */
4077
4126
  getPresentation = async (t) => {
4078
- const i = await this.db.table(_.PRESENTATION).where({ id: t.id }).last().catch(() => {
4127
+ const i = await this.db.table(S.PRESENTATION).where({ id: t.id }).last().catch(() => {
4079
4128
  console.warn(
4080
4129
  "%cstorage ",
4081
4130
  o.STORAGE,
@@ -4095,8 +4144,8 @@ class Gn {
4095
4144
  * @returns IResponse
4096
4145
  */
4097
4146
  getPresentations = async (t) => {
4098
- 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);
4099
- return g !== void 0 && K(3, [
4147
+ const i = (b) => t?.name ? b.name.includes(t?.name) : !1, g = await this.db.table(S.PRESENTATION).toArray().then((b) => t?.name ? b.filter(i) : b);
4148
+ return g !== void 0 && M(3, [
4100
4149
  "%cstorage%c %cpresentations",
4101
4150
  o.STORAGE,
4102
4151
  o.NONE,
@@ -4114,7 +4163,7 @@ class Gn {
4114
4163
  * @param query IQuery
4115
4164
  * @returns number
4116
4165
  */
4117
- setPresentation = async (t) => await this.db.table(_.PRESENTATION).put({
4166
+ setPresentation = async (t) => await this.db.table(S.PRESENTATION).put({
4118
4167
  id: t.data.id,
4119
4168
  name: t.data.name || "Not set",
4120
4169
  data: t.data,
@@ -4142,8 +4191,8 @@ class Gn {
4142
4191
  * @returns IResponse
4143
4192
  */
4144
4193
  getPreference = async (t) => {
4145
- const i = await this.db.table(_.PREFERENCE).where({ id: t.id }).last().catch(() => {
4146
- K(2, [
4194
+ const i = await this.db.table(S.PREFERENCE).where({ id: t.id }).last().catch(() => {
4195
+ M(2, [
4147
4196
  "%cstorage",
4148
4197
  o.STORAGE,
4149
4198
  X.PREFERENCE_LOAD,
@@ -4165,8 +4214,8 @@ class Gn {
4165
4214
  * @returns IResponse
4166
4215
  */
4167
4216
  getPreferences = async (t) => {
4168
- const i = (b) => t?.id ? t.id = b.id : !1, g = await this.db.table(_.SLIDE).toArray().then((b) => t?.id ? b.filter(i) : b);
4169
- return g !== void 0 && K(3, [
4217
+ const i = (b) => t?.id ? t.id = b.id : !1, g = await this.db.table(S.SLIDE).toArray().then((b) => t?.id ? b.filter(i) : b);
4218
+ return g !== void 0 && M(3, [
4170
4219
  "%cstorage%c %cpreferences",
4171
4220
  o.STORAGE,
4172
4221
  o.NONE,
@@ -4184,7 +4233,7 @@ class Gn {
4184
4233
  * @param preference IPreference
4185
4234
  * @returns number
4186
4235
  */
4187
- setPreference = async (t) => await this.db.table(_.PREFERENCE).put({
4236
+ setPreference = async (t) => await this.db.table(S.PREFERENCE).put({
4188
4237
  id: t.id,
4189
4238
  value: t.value,
4190
4239
  update: t.update
@@ -4209,8 +4258,8 @@ class Gn {
4209
4258
  * @returns IResponse
4210
4259
  */
4211
4260
  getImages = async (t) => {
4212
- 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);
4213
- return g !== void 0 && K(3, [
4261
+ const i = (b) => t?.id ? b.includes(t.id) : !1, g = await this.db.table(S.IMAGES).toArray().then((b) => t?.id ? b.filter(i) : b);
4262
+ return g !== void 0 && M(3, [
4214
4263
  "%cstorage%c %cimages",
4215
4264
  o.STORAGE,
4216
4265
  o.NONE,
@@ -4228,7 +4277,7 @@ class Gn {
4228
4277
  * @param query IQuery
4229
4278
  * @returns number
4230
4279
  */
4231
- setImage = async (t) => await this.db.table(_.IMAGES).put({
4280
+ setImage = async (t) => await this.db.table(S.IMAGES).put({
4232
4281
  id: t.data.name,
4233
4282
  basename: t.data.basename,
4234
4283
  extension: t.data.extension,
@@ -4269,9 +4318,9 @@ function Ka(f, t) {
4269
4318
  };
4270
4319
  return (g, b) => l().then((I) => b(I.transaction(t, g).objectStore(t)));
4271
4320
  }
4272
- let Ur;
4321
+ let Wr;
4273
4322
  function Mn() {
4274
- return Ur || (Ur = Ka("keyval-store", "keyval")), Ur;
4323
+ return Wr || (Wr = Ka("keyval-store", "keyval")), Wr;
4275
4324
  }
4276
4325
  function _e(f, t = Mn()) {
4277
4326
  return t("readonly", (i) => zr(i.get(f)));
@@ -4285,17 +4334,20 @@ class Kn {
4285
4334
  constructor(t) {
4286
4335
  this.options = t;
4287
4336
  }
4337
+ getHash = async (t, i) => "none";
4338
+ setHash = async (t, i) => 404;
4339
+ setCards = async (t) => 404;
4288
4340
  getCloud = async (t) => {
4289
4341
  const i = Y(t);
4290
- 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 }));
4342
+ return await _e(i).then((l) => l).catch(() => (console.warn("%capi", o.API, S.CLOUD, t.slide, t.widget), { data: null, message: "Cloud Data error", success: !1 }));
4291
4343
  };
4292
4344
  getSeries = async (t) => {
4293
4345
  const i = Y(t);
4294
- 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 }));
4346
+ return await _e(i).then((l) => l).catch(() => (console.warn("%capi", o.API, S.SERIES, t.slide, t.widget), { data: null, message: "Series Data error", success: !1 }));
4295
4347
  };
4296
4348
  getMessages = async (t) => {
4297
4349
  const i = Y(t);
4298
- 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 }));
4350
+ return await _e(i).then((l) => l).catch(() => (console.warn("%capi", o.API, S.MESSAGES, t.slide, t.widget), { data: null, message: "Messages Data error", success: !1 }));
4299
4351
  };
4300
4352
  /**
4301
4353
  * Update Cloud
@@ -4310,7 +4362,7 @@ class Kn {
4310
4362
  return delete i.success, delete i.message, await ke(l, i).then(() => 201).catch((g) => (console.error(
4311
4363
  "%cstorage",
4312
4364
  o.STORAGE,
4313
- _.CLOUD,
4365
+ S.CLOUD,
4314
4366
  t,
4315
4367
  g.message
4316
4368
  ), 400));
@@ -4328,7 +4380,7 @@ class Kn {
4328
4380
  return delete i.success, delete i.message, await ke(l, i).then(() => 201).catch((g) => (console.error(
4329
4381
  "%cstorage",
4330
4382
  o.STORAGE,
4331
- _.SERIES,
4383
+ S.SERIES,
4332
4384
  t,
4333
4385
  g.message
4334
4386
  ), 400));
@@ -4346,7 +4398,7 @@ class Kn {
4346
4398
  return delete i.success, delete i.message, await ke(l, i).then(() => 201).catch((g) => (console.error(
4347
4399
  "%cstorage",
4348
4400
  o.STORAGE,
4349
- _.MESSAGES,
4401
+ S.MESSAGES,
4350
4402
  t,
4351
4403
  g.message
4352
4404
  ), 400));
@@ -4359,7 +4411,7 @@ class Kn {
4359
4411
  };
4360
4412
  getDashboard = async (t) => {
4361
4413
  const i = Y(t);
4362
- return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, _.SLIDE, t.id), {
4414
+ return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, S.SLIDE, t.id), {
4363
4415
  data: null,
4364
4416
  message: `Widget ${t.data.id} load error: ${l.message}`,
4365
4417
  success: !1
@@ -4387,7 +4439,7 @@ class Kn {
4387
4439
  })).catch((g) => (console.error(
4388
4440
  "%cstorage",
4389
4441
  o.STORAGE,
4390
- _.WIDGET,
4442
+ S.WIDGET,
4391
4443
  t,
4392
4444
  g.message
4393
4445
  ), {
@@ -4398,13 +4450,13 @@ class Kn {
4398
4450
  };
4399
4451
  getWidget = async (t) => {
4400
4452
  const i = Y(t);
4401
- return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, _.SLIDE, t.id), {
4453
+ return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, S.SLIDE, t.id), {
4402
4454
  data: null,
4403
4455
  message: `Widget ${t.data.id} load error: ${l.message}`,
4404
4456
  success: !1
4405
4457
  }));
4406
4458
  };
4407
- getWidgets = async (t) => (console.warn("%capi", o.API, _.SLIDE, t?.presentation), {
4459
+ getWidgets = async (t) => (console.warn("%capi", o.API, S.SLIDE, t?.presentation), {
4408
4460
  data: null,
4409
4461
  message: "Widgets load error: ",
4410
4462
  success: !1
@@ -4428,7 +4480,7 @@ class Kn {
4428
4480
  })).catch((g) => (console.error(
4429
4481
  "%cstorage",
4430
4482
  o.STORAGE,
4431
- _.WIDGET,
4483
+ S.WIDGET,
4432
4484
  t,
4433
4485
  g.message
4434
4486
  ), {
@@ -4442,7 +4494,7 @@ class Kn {
4442
4494
  * @param query IQuery
4443
4495
  * @returns null
4444
4496
  */
4445
- subscribe = (t) => (t.type === _.MESSAGES && (t = St(this.options, t)), this.subscribers.filter(
4497
+ subscribe = (t) => (t.type === S.MESSAGES && (t = St(this.options, t)), this.subscribers.filter(
4446
4498
  (l) => l.widget === t.widget
4447
4499
  ).length > 0 || (console.debug(
4448
4500
  "%cstorage%c %csubscribe",
@@ -4459,13 +4511,13 @@ class Kn {
4459
4511
  getSubscribers = async () => await new Promise((t) => t(this.subscribers));
4460
4512
  getSlide = async (t) => {
4461
4513
  const i = Y(t);
4462
- return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, _.SLIDE, t.id), {
4514
+ return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, S.SLIDE, t.id), {
4463
4515
  data: null,
4464
4516
  message: `Slide ${t.data.id} load error: ${l.message}`,
4465
4517
  success: !1
4466
4518
  }));
4467
4519
  };
4468
- getSlides = async (t) => (console.warn("%capi", o.API, _.SLIDE, t.presentation), {
4520
+ getSlides = async (t) => (console.warn("%capi", o.API, S.SLIDE, t.presentation), {
4469
4521
  data: null,
4470
4522
  message: `Slided ${t.presentation} load error: `,
4471
4523
  success: !1
@@ -4489,7 +4541,7 @@ class Kn {
4489
4541
  })).catch((g) => (console.error(
4490
4542
  "%cstorage",
4491
4543
  o.STORAGE,
4492
- _.SLIDE,
4544
+ S.SLIDE,
4493
4545
  t,
4494
4546
  g.message
4495
4547
  ), {
@@ -4500,7 +4552,7 @@ class Kn {
4500
4552
  };
4501
4553
  getPresentation = async (t) => {
4502
4554
  const i = Y(t);
4503
- return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, _.PRESENTATION, t.id), {
4555
+ return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, S.PRESENTATION, t.id), {
4504
4556
  data: null,
4505
4557
  message: `Slide ${t.data.id} load error: ${l.message}`,
4506
4558
  success: !1
@@ -4525,7 +4577,7 @@ class Kn {
4525
4577
  })).catch((g) => (console.error(
4526
4578
  "%cstorage",
4527
4579
  o.STORAGE,
4528
- _.PRESENTATION,
4580
+ S.PRESENTATION,
4529
4581
  t,
4530
4582
  g.message
4531
4583
  ), {
@@ -4534,12 +4586,12 @@ class Kn {
4534
4586
  success: !1
4535
4587
  }));
4536
4588
  };
4537
- getPreference = async (t) => await _e(`${_.PREFERENCE}.${t.id}`).then((i) => i).catch((i) => (console.warn("%capi", o.API, _.PREFERENCE, t.id), {
4589
+ getPreference = async (t) => await _e(`${S.PREFERENCE}.${t.id}`).then((i) => i).catch((i) => (console.warn("%capi", o.API, S.PREFERENCE, t.id), {
4538
4590
  data: null,
4539
4591
  message: `Preference ${t.id} get error: ${i.message}`,
4540
4592
  success: !1
4541
4593
  }));
4542
- getPreferences = async () => await _e(`${_.PREFERENCE}`).then((t) => t).catch((t) => (console.warn("%capi", o.API, _.PREFERENCE), {
4594
+ getPreferences = async () => await _e(`${S.PREFERENCE}`).then((t) => t).catch((t) => (console.warn("%capi", o.API, S.PREFERENCE), {
4543
4595
  data: null,
4544
4596
  message: `Preferences get error: ${t.message}`,
4545
4597
  success: !1
@@ -4549,14 +4601,14 @@ class Kn {
4549
4601
  * @param preference IPreference
4550
4602
  * @returns number
4551
4603
  */
4552
- setPreference = async (t) => await ke(`${_.PREFERENCE}.${t.id}`, t.value).then(() => ({
4604
+ setPreference = async (t) => await ke(`${S.PREFERENCE}.${t.id}`, t.value).then(() => ({
4553
4605
  data: null,
4554
4606
  message: `Preference ${t.id} save error`,
4555
4607
  success: !0
4556
4608
  })).catch((i) => (console.error(
4557
4609
  "%cstorage",
4558
4610
  o.STORAGE,
4559
- _.PREFERENCE,
4611
+ S.PREFERENCE,
4560
4612
  t,
4561
4613
  i.message
4562
4614
  ), {
@@ -4586,6 +4638,9 @@ class Bn {
4586
4638
  return l && JSON.parse(l);
4587
4639
  };
4588
4640
  }
4641
+ getHash = async (t, i) => "none";
4642
+ setHash = async (t, i) => 404;
4643
+ setCards = async (t) => 404;
4589
4644
  getCloud = async (t) => {
4590
4645
  const i = Y(t);
4591
4646
  try {
@@ -4594,7 +4649,7 @@ class Bn {
4594
4649
  return console.warn(
4595
4650
  "%capi",
4596
4651
  o.API,
4597
- _.CLOUD,
4652
+ S.CLOUD,
4598
4653
  t.slide,
4599
4654
  t.widget,
4600
4655
  l
@@ -4609,7 +4664,7 @@ class Bn {
4609
4664
  return console.warn(
4610
4665
  "%capi",
4611
4666
  o.API,
4612
- _.SERIES,
4667
+ S.SERIES,
4613
4668
  t.slide,
4614
4669
  t.widget,
4615
4670
  l
@@ -4624,7 +4679,7 @@ class Bn {
4624
4679
  return console.warn(
4625
4680
  "%capi",
4626
4681
  o.API,
4627
- _.MESSAGES,
4682
+ S.MESSAGES,
4628
4683
  t.slide,
4629
4684
  t.widget,
4630
4685
  l
@@ -4642,7 +4697,7 @@ class Bn {
4642
4697
  try {
4643
4698
  return localStorage.setObject(l, i), 201;
4644
4699
  } catch (g) {
4645
- return console.error("%cstorage", o.STORAGE, _.CLOUD, t, g), 400;
4700
+ return console.error("%cstorage", o.STORAGE, S.CLOUD, t, g), 400;
4646
4701
  }
4647
4702
  };
4648
4703
  /**
@@ -4656,7 +4711,7 @@ class Bn {
4656
4711
  try {
4657
4712
  return localStorage.setObject(l, i), 201;
4658
4713
  } catch (g) {
4659
- return console.error("%cstorage", o.STORAGE, _.SERIES, t, g), 400;
4714
+ return console.error("%cstorage", o.STORAGE, S.SERIES, t, g), 400;
4660
4715
  }
4661
4716
  };
4662
4717
  /**
@@ -4670,7 +4725,7 @@ class Bn {
4670
4725
  try {
4671
4726
  return localStorage.setObject(l, i), 200;
4672
4727
  } catch (g) {
4673
- return console.error("%cstorage", o.STORAGE, _.MESSAGES, t, g), 400;
4728
+ return console.error("%cstorage", o.STORAGE, S.MESSAGES, t, g), 400;
4674
4729
  }
4675
4730
  };
4676
4731
  cleanMessages = async (t) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((i) => i(0)));
@@ -4681,9 +4736,9 @@ class Bn {
4681
4736
  };
4682
4737
  getDashboard = async (t) => {
4683
4738
  try {
4684
- return localStorage.getObject(`${_.DASHBOARD}.${t.id}`);
4739
+ return localStorage.getObject(`${S.DASHBOARD}.${t.id}`);
4685
4740
  } catch (i) {
4686
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
4741
+ return console.warn("%capi", o.API, S.SLIDE, t.id, i), {
4687
4742
  data: null,
4688
4743
  message: `Dashboard ${t.id} load error: ${i.message}`,
4689
4744
  success: !1
@@ -4696,7 +4751,7 @@ class Bn {
4696
4751
  success: !1
4697
4752
  });
4698
4753
  setDashboard = async (t) => {
4699
- const i = `${_.DASHBOARD}.${t.dashboard}`;
4754
+ const i = `${S.DASHBOARD}.${t.dashboard}`;
4700
4755
  try {
4701
4756
  return localStorage.setObject(i, t), {
4702
4757
  data: null,
@@ -4704,7 +4759,7 @@ class Bn {
4704
4759
  success: !0
4705
4760
  };
4706
4761
  } catch (l) {
4707
- return console.error("%cstorage", o.STORAGE, _.WIDGET, t, l), {
4762
+ return console.error("%cstorage", o.STORAGE, S.WIDGET, t, l), {
4708
4763
  data: null,
4709
4764
  message: `Dashboard ${t.data.id} save error: ${l.message}`,
4710
4765
  success: !1
@@ -4713,9 +4768,9 @@ class Bn {
4713
4768
  };
4714
4769
  getWidget = async (t) => {
4715
4770
  try {
4716
- return localStorage.getObject(`${_.WIDGET}.${t.id}`);
4771
+ return localStorage.getObject(`${S.WIDGET}.${t.id}`);
4717
4772
  } catch (i) {
4718
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
4773
+ return console.warn("%capi", o.API, S.SLIDE, t.id, i), {
4719
4774
  data: null,
4720
4775
  message: `Widget ${t.id} load error: ${i.message}`,
4721
4776
  success: !1
@@ -4736,7 +4791,7 @@ class Bn {
4736
4791
  success: !0
4737
4792
  };
4738
4793
  } catch (l) {
4739
- return console.error("%cstorage", o.STORAGE, _.WIDGET, t, l), {
4794
+ return console.error("%cstorage", o.STORAGE, S.WIDGET, t, l), {
4740
4795
  data: null,
4741
4796
  message: `Widget ${t.data.id} save error: ${l.message}`,
4742
4797
  success: !1
@@ -4748,7 +4803,7 @@ class Bn {
4748
4803
  * @param query IQuery
4749
4804
  * @returns null
4750
4805
  */
4751
- subscribe = (t) => (t.type === _.MESSAGES && (t = St(this.options, t)), this.subscribers.filter(
4806
+ subscribe = (t) => (t.type === S.MESSAGES && (t = St(this.options, t)), this.subscribers.filter(
4752
4807
  (l) => l.widget === t.widget
4753
4808
  ).length || (console.debug(
4754
4809
  "%cstorage%c %csubscribe",
@@ -4765,9 +4820,9 @@ class Bn {
4765
4820
  getSubscribers = async () => await new Promise((t) => t(this.subscribers));
4766
4821
  getSlide = async (t) => {
4767
4822
  try {
4768
- return localStorage.getObject(`${_.SLIDE}.${t.id}`);
4823
+ return localStorage.getObject(`${S.SLIDE}.${t.id}`);
4769
4824
  } catch (i) {
4770
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
4825
+ return console.warn("%capi", o.API, S.SLIDE, t.id, i), {
4771
4826
  data: null,
4772
4827
  message: `Slide ${t.id} load error: ${i.message}`,
4773
4828
  success: !1
@@ -4776,9 +4831,9 @@ class Bn {
4776
4831
  };
4777
4832
  getSlides = async (t) => {
4778
4833
  try {
4779
- return localStorage.getObject(`${_.SLIDE}.${t.id}`);
4834
+ return localStorage.getObject(`${S.SLIDE}.${t.id}`);
4780
4835
  } catch (i) {
4781
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
4836
+ return console.warn("%capi", o.API, S.SLIDE, t.id, i), {
4782
4837
  data: null,
4783
4838
  message: `Slide ${t.id} load error: ${i.message}`,
4784
4839
  success: !1
@@ -4787,7 +4842,7 @@ class Bn {
4787
4842
  };
4788
4843
  setSlide = async (t) => {
4789
4844
  try {
4790
- return localStorage.setObject(`${_.SLIDE}.${t.data.id}`, {
4845
+ return localStorage.setObject(`${S.SLIDE}.${t.data.id}`, {
4791
4846
  id: t.data.id,
4792
4847
  title: t.data.title || "Not set",
4793
4848
  json: t.data.json || {},
@@ -4798,7 +4853,7 @@ class Bn {
4798
4853
  success: !0
4799
4854
  };
4800
4855
  } catch (i) {
4801
- return console.error("%cstorage", o.STORAGE, _.SLIDE, t, i), {
4856
+ return console.error("%cstorage", o.STORAGE, S.SLIDE, t, i), {
4802
4857
  data: null,
4803
4858
  message: `Slide ${t.data.id} save error: ${i.message}`,
4804
4859
  success: !1
@@ -4808,13 +4863,13 @@ class Bn {
4808
4863
  getPresentation = async (t) => {
4809
4864
  try {
4810
4865
  return localStorage.getObject(
4811
- `${_.PRESENTATION}.${t.presentation}`
4866
+ `${S.PRESENTATION}.${t.presentation}`
4812
4867
  );
4813
4868
  } catch (i) {
4814
4869
  return console.warn(
4815
4870
  "%capi",
4816
4871
  o.API,
4817
- _.PRESENTATION,
4872
+ S.PRESENTATION,
4818
4873
  t.presentation,
4819
4874
  i
4820
4875
  ), {
@@ -4826,9 +4881,9 @@ class Bn {
4826
4881
  };
4827
4882
  getPresentations = async () => {
4828
4883
  try {
4829
- return localStorage.getObject(`${_.PRESENTATION}.`);
4884
+ return localStorage.getObject(`${S.PRESENTATION}.`);
4830
4885
  } catch (t) {
4831
- return console.warn("%capi", o.API, _.PRESENTATION, t), {
4886
+ return console.warn("%capi", o.API, S.PRESENTATION, t), {
4832
4887
  data: null,
4833
4888
  message: `Presentations get error: ${t.message}`,
4834
4889
  success: !1
@@ -4838,7 +4893,7 @@ class Bn {
4838
4893
  setPresentation = async (t) => {
4839
4894
  try {
4840
4895
  return localStorage.setObject(
4841
- `${_.PRESENTATION}.${t.data.id}`,
4896
+ `${S.PRESENTATION}.${t.data.id}`,
4842
4897
  t.data
4843
4898
  ), {
4844
4899
  data: null,
@@ -4846,7 +4901,7 @@ class Bn {
4846
4901
  success: !0
4847
4902
  };
4848
4903
  } catch (i) {
4849
- return console.error("%cstorage", o.STORAGE, _.PRESENTATION, t, i), {
4904
+ return console.error("%cstorage", o.STORAGE, S.PRESENTATION, t, i), {
4850
4905
  data: null,
4851
4906
  message: `Presentation ${t.data.id} save error: ${i.message}`,
4852
4907
  success: !1
@@ -4855,9 +4910,9 @@ class Bn {
4855
4910
  };
4856
4911
  getPreference = async (t) => {
4857
4912
  try {
4858
- return localStorage.getObject(`${_.PREFERENCE}.${t.id}`);
4913
+ return localStorage.getObject(`${S.PREFERENCE}.${t.id}`);
4859
4914
  } catch (i) {
4860
- return console.warn("%capi", o.API, _.PREFERENCE, t.id, i), {
4915
+ return console.warn("%capi", o.API, S.PREFERENCE, t.id, i), {
4861
4916
  data: null,
4862
4917
  message: `Preference ${t.id} load error: ${i.message}`,
4863
4918
  success: !1
@@ -4866,9 +4921,9 @@ class Bn {
4866
4921
  };
4867
4922
  getPreferences = async () => {
4868
4923
  try {
4869
- return localStorage.getObject(`${_.PREFERENCE}.`);
4924
+ return localStorage.getObject(`${S.PREFERENCE}.`);
4870
4925
  } catch (t) {
4871
- return console.warn("%capi", o.API, _.PREFERENCE, t), {
4926
+ return console.warn("%capi", o.API, S.PREFERENCE, t), {
4872
4927
  data: null,
4873
4928
  message: `Preference get error: ${t.message}`,
4874
4929
  success: !1
@@ -4878,7 +4933,7 @@ class Bn {
4878
4933
  setPreference = async (t) => {
4879
4934
  try {
4880
4935
  return localStorage.setObject(
4881
- `${_.PREFERENCE}.${t.id}`,
4936
+ `${S.PREFERENCE}.${t.id}`,
4882
4937
  t.value
4883
4938
  ), {
4884
4939
  data: null,
@@ -4889,7 +4944,7 @@ class Bn {
4889
4944
  return console.error(
4890
4945
  "%cstorage",
4891
4946
  o.STORAGE,
4892
- _.PREFERENCE,
4947
+ S.PREFERENCE,
4893
4948
  t,
4894
4949
  i
4895
4950
  ), {
@@ -4921,6 +4976,9 @@ class Ln {
4921
4976
  return l && JSON.parse(l);
4922
4977
  };
4923
4978
  }
4979
+ getHash = async (t, i) => "none";
4980
+ setHash = async (t, i) => 404;
4981
+ setCards = async (t) => 404;
4924
4982
  getCloud = async (t) => {
4925
4983
  const i = Y(t);
4926
4984
  try {
@@ -4929,7 +4987,7 @@ class Ln {
4929
4987
  return console.warn(
4930
4988
  "%capi",
4931
4989
  o.API,
4932
- _.CLOUD,
4990
+ S.CLOUD,
4933
4991
  t.slide,
4934
4992
  t.widget,
4935
4993
  l
@@ -4944,7 +5002,7 @@ class Ln {
4944
5002
  return console.warn(
4945
5003
  "%capi",
4946
5004
  o.API,
4947
- _.SERIES,
5005
+ S.SERIES,
4948
5006
  t.slide,
4949
5007
  t.widget,
4950
5008
  l
@@ -4959,7 +5017,7 @@ class Ln {
4959
5017
  return console.warn(
4960
5018
  "%capi",
4961
5019
  o.API,
4962
- _.MESSAGES,
5020
+ S.MESSAGES,
4963
5021
  t.slide,
4964
5022
  t.widget,
4965
5023
  l
@@ -4977,7 +5035,7 @@ class Ln {
4977
5035
  try {
4978
5036
  return sessionStorage.setObject(l, i), 201;
4979
5037
  } catch (g) {
4980
- return console.error("%cstorage", o.STORAGE, _.CLOUD, t, g), 400;
5038
+ return console.error("%cstorage", o.STORAGE, S.CLOUD, t, g), 400;
4981
5039
  }
4982
5040
  };
4983
5041
  /**
@@ -4991,7 +5049,7 @@ class Ln {
4991
5049
  try {
4992
5050
  return sessionStorage.setObject(l, i), 201;
4993
5051
  } catch (g) {
4994
- return console.error("%cstorage", o.STORAGE, _.SERIES, t, g), 400;
5052
+ return console.error("%cstorage", o.STORAGE, S.SERIES, t, g), 400;
4995
5053
  }
4996
5054
  };
4997
5055
  /**
@@ -5005,7 +5063,7 @@ class Ln {
5005
5063
  try {
5006
5064
  return sessionStorage.setObject(l, i), 200;
5007
5065
  } catch (g) {
5008
- return console.error("%cstorage", o.STORAGE, _.MESSAGES, t, g), 400;
5066
+ return console.error("%cstorage", o.STORAGE, S.MESSAGES, t, g), 400;
5009
5067
  }
5010
5068
  };
5011
5069
  cleanMessages = async (t) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((i) => i(0)));
@@ -5016,9 +5074,9 @@ class Ln {
5016
5074
  };
5017
5075
  getDashboard = async (t) => {
5018
5076
  try {
5019
- return sessionStorage.getObject(`${_.DASHBOARD}.${t.id}`);
5077
+ return sessionStorage.getObject(`${S.DASHBOARD}.${t.id}`);
5020
5078
  } catch (i) {
5021
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
5079
+ return console.warn("%capi", o.API, S.SLIDE, t.id, i), {
5022
5080
  data: null,
5023
5081
  message: `Dashboard ${t.id} load error: ${i.message}`,
5024
5082
  success: !1
@@ -5031,7 +5089,7 @@ class Ln {
5031
5089
  success: !1
5032
5090
  });
5033
5091
  setDashboard = async (t) => {
5034
- const i = `${_.DASHBOARD}.${t.dashboard}`;
5092
+ const i = `${S.DASHBOARD}.${t.dashboard}`;
5035
5093
  try {
5036
5094
  return sessionStorage.setObject(i, t), {
5037
5095
  data: null,
@@ -5039,7 +5097,7 @@ class Ln {
5039
5097
  success: !0
5040
5098
  };
5041
5099
  } catch (l) {
5042
- return console.error("%cstorage", o.STORAGE, _.WIDGET, t, l), {
5100
+ return console.error("%cstorage", o.STORAGE, S.WIDGET, t, l), {
5043
5101
  data: null,
5044
5102
  message: `Dashboard ${t.data.id} save error: ${l.message}`,
5045
5103
  success: !1
@@ -5048,9 +5106,9 @@ class Ln {
5048
5106
  };
5049
5107
  getWidget = async (t) => {
5050
5108
  try {
5051
- return sessionStorage.getObject(`${_.WIDGET}.${t.id}`);
5109
+ return sessionStorage.getObject(`${S.WIDGET}.${t.id}`);
5052
5110
  } catch (i) {
5053
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
5111
+ return console.warn("%capi", o.API, S.SLIDE, t.id, i), {
5054
5112
  data: null,
5055
5113
  message: `Widget ${t.id} load error: ${i.message}`,
5056
5114
  success: !1
@@ -5071,7 +5129,7 @@ class Ln {
5071
5129
  success: !0
5072
5130
  };
5073
5131
  } catch (l) {
5074
- return console.error("%cstorage", o.STORAGE, _.WIDGET, t, l), {
5132
+ return console.error("%cstorage", o.STORAGE, S.WIDGET, t, l), {
5075
5133
  data: null,
5076
5134
  message: `Slide ${t.data.id} save error: ${l.message}`,
5077
5135
  success: !1
@@ -5083,7 +5141,7 @@ class Ln {
5083
5141
  * @param query IQuery
5084
5142
  * @returns null
5085
5143
  */
5086
- subscribe = (t) => (t.type === _.MESSAGES && (t = St(this.options, t)), this.subscribers.filter(
5144
+ subscribe = (t) => (t.type === S.MESSAGES && (t = St(this.options, t)), this.subscribers.filter(
5087
5145
  (l) => l.widget === t.widget
5088
5146
  ).length || (console.debug(
5089
5147
  "%cstorage%c %csubscribe",
@@ -5100,9 +5158,9 @@ class Ln {
5100
5158
  getSubscribers = async () => await new Promise((t) => t(this.subscribers));
5101
5159
  getSlide = async (t) => {
5102
5160
  try {
5103
- return sessionStorage.getObject(`${_.SLIDE}.${t.id}`);
5161
+ return sessionStorage.getObject(`${S.SLIDE}.${t.id}`);
5104
5162
  } catch (i) {
5105
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
5163
+ return console.warn("%capi", o.API, S.SLIDE, t.id, i), {
5106
5164
  data: null,
5107
5165
  message: `Slide ${t.id} load error: ${i.message}`,
5108
5166
  success: !1
@@ -5111,9 +5169,9 @@ class Ln {
5111
5169
  };
5112
5170
  getSlides = async (t) => {
5113
5171
  try {
5114
- return sessionStorage.getObject(`${_.SLIDE}.${t.id}`);
5172
+ return sessionStorage.getObject(`${S.SLIDE}.${t.id}`);
5115
5173
  } catch (i) {
5116
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
5174
+ return console.warn("%capi", o.API, S.SLIDE, t.id, i), {
5117
5175
  data: null,
5118
5176
  message: `Slide ${t.id} load error: ${i.message}`,
5119
5177
  success: !1
@@ -5127,7 +5185,7 @@ class Ln {
5127
5185
  */
5128
5186
  setSlide = async (t) => {
5129
5187
  try {
5130
- return sessionStorage.setObject(`${_.SLIDE}.${t.data.id}`, {
5188
+ return sessionStorage.setObject(`${S.SLIDE}.${t.data.id}`, {
5131
5189
  id: t.data.id,
5132
5190
  title: t.data.title || "Not set",
5133
5191
  json: t.data.json || {},
@@ -5138,7 +5196,7 @@ class Ln {
5138
5196
  success: !0
5139
5197
  };
5140
5198
  } catch (i) {
5141
- return console.error("%cstorage", o.STORAGE, _.SLIDE, t, i), {
5199
+ return console.error("%cstorage", o.STORAGE, S.SLIDE, t, i), {
5142
5200
  data: null,
5143
5201
  message: `Slide ${t.data.id} save error: ${i.message}`,
5144
5202
  success: !1
@@ -5148,13 +5206,13 @@ class Ln {
5148
5206
  getPresentation = async (t) => {
5149
5207
  try {
5150
5208
  return sessionStorage.getObject(
5151
- `${_.PRESENTATION}.${t.presentation}`
5209
+ `${S.PRESENTATION}.${t.presentation}`
5152
5210
  );
5153
5211
  } catch (i) {
5154
5212
  return console.warn(
5155
5213
  "%capi",
5156
5214
  o.API,
5157
- _.PRESENTATION,
5215
+ S.PRESENTATION,
5158
5216
  t.presentation,
5159
5217
  i
5160
5218
  ), {
@@ -5166,9 +5224,9 @@ class Ln {
5166
5224
  };
5167
5225
  getPresentations = async () => {
5168
5226
  try {
5169
- return sessionStorage.getObject(`${_.PRESENTATION}.`);
5227
+ return sessionStorage.getObject(`${S.PRESENTATION}.`);
5170
5228
  } catch (t) {
5171
- return console.warn("%capi", o.API, _.PRESENTATION, t), {
5229
+ return console.warn("%capi", o.API, S.PRESENTATION, t), {
5172
5230
  data: null,
5173
5231
  message: `Presentations get error: ${t.message}`,
5174
5232
  success: !1
@@ -5178,7 +5236,7 @@ class Ln {
5178
5236
  setPresentation = async (t) => {
5179
5237
  try {
5180
5238
  return sessionStorage.setObject(
5181
- `${_.PRESENTATION}.${t.data.id}`,
5239
+ `${S.PRESENTATION}.${t.data.id}`,
5182
5240
  t.data
5183
5241
  ), {
5184
5242
  data: null,
@@ -5186,7 +5244,7 @@ class Ln {
5186
5244
  success: !0
5187
5245
  };
5188
5246
  } catch (i) {
5189
- return console.error("%cstorage", o.STORAGE, _.PRESENTATION, t, i), {
5247
+ return console.error("%cstorage", o.STORAGE, S.PRESENTATION, t, i), {
5190
5248
  data: null,
5191
5249
  message: `Presentation ${t.data.id} save error: ${i.message}`,
5192
5250
  success: !1
@@ -5195,9 +5253,9 @@ class Ln {
5195
5253
  };
5196
5254
  getPreference = async (t) => {
5197
5255
  try {
5198
- return sessionStorage.getObject(`${_.PREFERENCE}.${t.id}`);
5256
+ return sessionStorage.getObject(`${S.PREFERENCE}.${t.id}`);
5199
5257
  } catch (i) {
5200
- return console.warn("%capi", o.API, _.PREFERENCE, t.id, i), {
5258
+ return console.warn("%capi", o.API, S.PREFERENCE, t.id, i), {
5201
5259
  data: null,
5202
5260
  message: `Preference ${t.id} load error: ${i.message}`,
5203
5261
  success: !1
@@ -5206,9 +5264,9 @@ class Ln {
5206
5264
  };
5207
5265
  getPreferences = async () => {
5208
5266
  try {
5209
- return sessionStorage.getObject(`${_.PREFERENCE}`);
5267
+ return sessionStorage.getObject(`${S.PREFERENCE}`);
5210
5268
  } catch (t) {
5211
- return console.warn("%capi", o.API, _.PREFERENCE, t), {
5269
+ return console.warn("%capi", o.API, S.PREFERENCE, t), {
5212
5270
  data: null,
5213
5271
  message: `Preferences get error: ${t.message}`,
5214
5272
  success: !1
@@ -5218,7 +5276,7 @@ class Ln {
5218
5276
  setPreference = async (t) => {
5219
5277
  try {
5220
5278
  return sessionStorage.setObject(
5221
- `${_.PREFERENCE}.${t.id}`,
5279
+ `${S.PREFERENCE}.${t.id}`,
5222
5280
  t.value
5223
5281
  ), {
5224
5282
  data: null,
@@ -5229,7 +5287,7 @@ class Ln {
5229
5287
  return console.error(
5230
5288
  "%cstorage",
5231
5289
  o.STORAGE,
5232
- _.PREFERENCE,
5290
+ S.PREFERENCE,
5233
5291
  t,
5234
5292
  i
5235
5293
  ), {
@@ -5256,6 +5314,9 @@ class Un {
5256
5314
  constructor(t) {
5257
5315
  this.options = t, window.BuzzCasting.WidgetData = /* @__PURE__ */ new Set();
5258
5316
  }
5317
+ getHash = async (t, i) => "none";
5318
+ setHash = async (t, i) => 404;
5319
+ setCards = async (t) => 404;
5259
5320
  getCloud = async (t) => {
5260
5321
  const i = Y(t);
5261
5322
  try {
@@ -5264,7 +5325,7 @@ class Un {
5264
5325
  return console.warn(
5265
5326
  "%capi",
5266
5327
  o.API,
5267
- _.CLOUD,
5328
+ S.CLOUD,
5268
5329
  t.slide,
5269
5330
  t.widget,
5270
5331
  l
@@ -5279,7 +5340,7 @@ class Un {
5279
5340
  return console.warn(
5280
5341
  "%capi",
5281
5342
  o.API,
5282
- _.SERIES,
5343
+ S.SERIES,
5283
5344
  t.slide,
5284
5345
  t.widget,
5285
5346
  l
@@ -5294,7 +5355,7 @@ class Un {
5294
5355
  return console.warn(
5295
5356
  "%capi",
5296
5357
  o.API,
5297
- _.MESSAGES,
5358
+ S.MESSAGES,
5298
5359
  t.slide,
5299
5360
  t.widget,
5300
5361
  l
@@ -5353,7 +5414,7 @@ class Un {
5353
5414
  try {
5354
5415
  return window.BuzzCasting.DashboardData[t.id];
5355
5416
  } catch (i) {
5356
- return console.warn("%capi", o.API, _.DASHBOARD, t.id, i), {
5417
+ return console.warn("%capi", o.API, S.DASHBOARD, t.id, i), {
5357
5418
  data: null,
5358
5419
  message: `Dashboard ${t.id} load error: ${i.message}`,
5359
5420
  success: !1
@@ -5374,7 +5435,7 @@ class Un {
5374
5435
  success: !0
5375
5436
  };
5376
5437
  } catch (l) {
5377
- return console.error("%cstorage", o.STORAGE, _.DASHBOARD, t, l), {
5438
+ return console.error("%cstorage", o.STORAGE, S.DASHBOARD, t, l), {
5378
5439
  data: null,
5379
5440
  message: `Dashboard ${t.data.id} save error: ${l.message}`,
5380
5441
  success: !1
@@ -5385,7 +5446,7 @@ class Un {
5385
5446
  try {
5386
5447
  return window.BuzzCasting.WidgetData[t.id];
5387
5448
  } catch (i) {
5388
- return console.warn("%capi", o.API, _.WIDGET, t.id, i), {
5449
+ return console.warn("%capi", o.API, S.WIDGET, t.id, i), {
5389
5450
  data: null,
5390
5451
  message: `Widget ${t.id} load error: ${i.message}`,
5391
5452
  success: !1
@@ -5406,7 +5467,7 @@ class Un {
5406
5467
  success: !0
5407
5468
  };
5408
5469
  } catch (l) {
5409
- return console.error("%cstorage", o.STORAGE, _.WIDGET, t, l), {
5470
+ return console.error("%cstorage", o.STORAGE, S.WIDGET, t, l), {
5410
5471
  data: null,
5411
5472
  message: `Slide ${t.data.id} save error: ${l.message}`,
5412
5473
  success: !1
@@ -5418,7 +5479,7 @@ class Un {
5418
5479
  * @param query IQuery
5419
5480
  * @returns null
5420
5481
  */
5421
- subscribe = (t) => (t.type === _.MESSAGES && (t = St(this.options, t)), this.subscribers.filter(
5482
+ subscribe = (t) => (t.type === S.MESSAGES && (t = St(this.options, t)), this.subscribers.filter(
5422
5483
  (l) => l.widget === t.widget
5423
5484
  ).length || (console.debug(
5424
5485
  "%cstorage%c %csubscribe",
@@ -5437,7 +5498,7 @@ class Un {
5437
5498
  try {
5438
5499
  return window.BuzzCasting.SlideData[t.id];
5439
5500
  } catch (i) {
5440
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
5501
+ return console.warn("%capi", o.API, S.SLIDE, t.id, i), {
5441
5502
  data: null,
5442
5503
  message: `Slide ${t.id} load error: ${i.message}`,
5443
5504
  success: !1
@@ -5453,7 +5514,7 @@ class Un {
5453
5514
  return console.warn(
5454
5515
  "%capi",
5455
5516
  o.API,
5456
- _.PRESENTATION,
5517
+ S.PRESENTATION,
5457
5518
  t.presentation_id,
5458
5519
  i
5459
5520
  ), {
@@ -5476,7 +5537,7 @@ class Un {
5476
5537
  success: !0
5477
5538
  };
5478
5539
  } catch (i) {
5479
- return console.error("%cstorage", o.STORAGE, _.SLIDE, t, i), {
5540
+ return console.error("%cstorage", o.STORAGE, S.SLIDE, t, i), {
5480
5541
  data: null,
5481
5542
  message: `Slide ${t.data.id} save error: ${i.message}`,
5482
5543
  success: !1
@@ -5491,7 +5552,7 @@ class Un {
5491
5552
  return console.warn(
5492
5553
  "%capi",
5493
5554
  o.API,
5494
- _.PRESENTATION,
5555
+ S.PRESENTATION,
5495
5556
  t.presentation,
5496
5557
  i
5497
5558
  ), {
@@ -5505,7 +5566,7 @@ class Un {
5505
5566
  try {
5506
5567
  return window.BuzzCasting.PresentationData;
5507
5568
  } catch (t) {
5508
- return console.warn("%capi", o.API, _.PRESENTATION, t), {
5569
+ return console.warn("%capi", o.API, S.PRESENTATION, t), {
5509
5570
  data: null,
5510
5571
  message: `Presentations get error: ${t.message}`,
5511
5572
  success: !1
@@ -5520,7 +5581,7 @@ class Un {
5520
5581
  success: !0
5521
5582
  };
5522
5583
  } catch (i) {
5523
- return console.error("%cstorage", o.STORAGE, _.PRESENTATION, t, i), {
5584
+ return console.error("%cstorage", o.STORAGE, S.PRESENTATION, t, i), {
5524
5585
  data: null,
5525
5586
  message: `Presentation ${t.data.id} save error: ${i.message}`,
5526
5587
  success: !1
@@ -5531,7 +5592,7 @@ class Un {
5531
5592
  try {
5532
5593
  return window.BuzzCasting.Preferences[t.id];
5533
5594
  } catch (i) {
5534
- return console.warn("%capi", o.API, _.PREFERENCE, t.id, i), {
5595
+ return console.warn("%capi", o.API, S.PREFERENCE, t.id, i), {
5535
5596
  data: null,
5536
5597
  message: `Preference ${t.id} load error: ${i.message}`,
5537
5598
  success: !1
@@ -5542,7 +5603,7 @@ class Un {
5542
5603
  try {
5543
5604
  return window.BuzzCasting.Preferences;
5544
5605
  } catch (t) {
5545
- return console.warn("%capi", o.API, _.PREFERENCE, t), {
5606
+ return console.warn("%capi", o.API, S.PREFERENCE, t), {
5546
5607
  data: null,
5547
5608
  message: `Preferences get error: ${t.message}`,
5548
5609
  success: !1
@@ -5560,7 +5621,7 @@ class Un {
5560
5621
  return console.error(
5561
5622
  "%cstorage",
5562
5623
  o.STORAGE,
5563
- _.PREFERENCE,
5624
+ S.PREFERENCE,
5564
5625
  t,
5565
5626
  i
5566
5627
  ), {
@@ -5589,7 +5650,7 @@ class Ja {
5589
5650
  subscribers = [];
5590
5651
  // private temp: {[x:string]:any} = []
5591
5652
  constructor(t) {
5592
- switch (K(3, [
5653
+ switch (M(3, [
5593
5654
  "%cpresentation",
5594
5655
  o.PRESENTATION,
5595
5656
  t.presentation,
@@ -5620,7 +5681,7 @@ class Ja {
5620
5681
  delete this.subscribers[t.widget];
5621
5682
  }
5622
5683
  update = async (t) => {
5623
- if (K(3, ["%cupdate%c %cdata", o.NO_UPDATES, o.NONE, o.MESSAGES, t]), this.sm === null || Object.keys(this.subscribers).length === 0)
5684
+ if (M(3, ["%cupdate%c %cdata", o.NO_UPDATES, o.NONE, o.MESSAGES, t]), this.sm === null || Object.keys(this.subscribers).length === 0)
5624
5685
  return;
5625
5686
  const i = [];
5626
5687
  Object.values(this.subscribers).forEach((l) => {
@@ -5635,11 +5696,11 @@ class Ja {
5635
5696
  processResponse = async (t) => {
5636
5697
  let i, l = { code: 400, hash: "" }, g = "", b;
5637
5698
  if (t.success === !0)
5638
- switch (b = t.query.hash, t.query.type) {
5639
- case _.MESSAGES:
5640
- t.data.messages = t.data.messages.filter(
5699
+ switch (t.query.type) {
5700
+ case S.MESSAGES:
5701
+ b = await this.sm?.getHash("cards", t.query), b === "none" && (t.query.hash = "none", await this.sm?.setCards(t.query)), t.data.messages = t.data.messages.filter(
5641
5702
  (I) => I.id !== null
5642
- ), g = t.data.messages.length > 0 ? er(t.data.messages[0].utc) : "none", b === g ? (K(3, [
5703
+ ), g = t.data.messages.length > 0 ? Ur(t.data.messages[0].utc) : "none", b === g ? (M(3, [
5643
5704
  "%cset%c %cstorage%c %cmessages",
5644
5705
  o.NO_UPDATES,
5645
5706
  o.NONE,
@@ -5648,10 +5709,10 @@ class Ja {
5648
5709
  o.MESSAGES,
5649
5710
  t.data?.title ?? t.query.widget,
5650
5711
  `same hash:${g}`
5651
- ]), l.code = 204) : this.sm !== null ? (t.query.hash = g, l.code = await this.sm.setMessages(t.query, t).then(async (I) => (this.broadcastUpdate(I, t), I)).catch((I) => 500)) : l.code = 500;
5712
+ ]), l.code = 204) : this.sm !== null ? (t.query.hash = g, await this.sm?.setHash("cards", t.query), l.code = await this.sm.setMessages(t.query, t).then(async (I) => (this.broadcastUpdate(I, t), I)).catch((I) => 500)) : l.code = 500;
5652
5713
  break;
5653
- case _.CLOUD:
5654
- g = er(t.data.cloud), b === g ? (K(3, [
5714
+ case S.CLOUD:
5715
+ b = await this.sm?.getHash(S.CLOUD, t.query), g = Ur(t.data.cloud), b === g ? (M(3, [
5655
5716
  "%cset%c %cstorage%c %ccloud",
5656
5717
  o.NO_UPDATES,
5657
5718
  o.NONE,
@@ -5660,13 +5721,13 @@ class Ja {
5660
5721
  o.CLOUD,
5661
5722
  t.data?.title ?? t.query.widget,
5662
5723
  `same hash:${g}`
5663
- ]), K(4, [
5664
- "%debug%c %ccloud",
5724
+ ]), M(4, [
5725
+ "%cdebug%c %ccloud",
5665
5726
  o.NO_UPDATES,
5666
5727
  o.NONE,
5667
5728
  o.CLOUD,
5668
5729
  t.query
5669
- ]), l = { code: 204, hash: g }) : (t.query.hash = g, i = {
5730
+ ]), l = { code: 204, hash: g }) : (t.query.hash = g, await this.sm?.setHash(S.CLOUD, t.query), i = {
5670
5731
  data: {
5671
5732
  cloud: t.data
5672
5733
  },
@@ -5675,8 +5736,8 @@ class Ja {
5675
5736
  query: t.query
5676
5737
  }, this.sm !== null ? l.code = await this.sm.setCloud(t.query, i.data).then((I) => (this.broadcastUpdate(I, t), I)).catch((I) => 500) : l.code = 500);
5677
5738
  break;
5678
- case _.SERIES:
5679
- g = er(t.data.series), b === g ? (K(3, [
5739
+ case S.SERIES:
5740
+ b = await this.sm?.getHash(S.SERIES, t.query), g = Ur(t.data.series), b === g ? (M(3, [
5680
5741
  "%cset%c %cstorage%c %cseries",
5681
5742
  o.NO_UPDATES,
5682
5743
  o.NONE,
@@ -5685,7 +5746,13 @@ class Ja {
5685
5746
  o.SERIES,
5686
5747
  t.data?.title ?? t.query.widget,
5687
5748
  `same hash:${g}`
5688
- ]), l = { code: 204, hash: g }) : (t.query.hash = g, i = {
5749
+ ]), M(4, [
5750
+ "%cdebug%c %cseries",
5751
+ o.NO_UPDATES,
5752
+ o.NONE,
5753
+ o.SERIES,
5754
+ t.query
5755
+ ]), l = { code: 204, hash: g }) : (t.query.hash = g, await this.sm?.setHash(S.SERIES, t.query), i = {
5689
5756
  data: t.data,
5690
5757
  message: t.message,
5691
5758
  success: t.success,
@@ -5693,7 +5760,7 @@ class Ja {
5693
5760
  }, this.sm !== null ? l.code = await this.sm?.setSeries(t.query, t.data).then((I) => (this.broadcastUpdate(I, t), I)).catch((I) => 500) : l.code = 500);
5694
5761
  break;
5695
5762
  default:
5696
- K(3, [
5763
+ M(3, [
5697
5764
  `%cfetch%c %capi% %c${t.query.type} `,
5698
5765
  o.KO,
5699
5766
  o.NONE,
@@ -5704,7 +5771,7 @@ class Ja {
5704
5771
  ]), l = { code: 404, hash: g };
5705
5772
  }
5706
5773
  else
5707
- switch (K(3, [
5774
+ switch (M(3, [
5708
5775
  `%cset%c %c${t.query.type}%c %cunauthorized`,
5709
5776
  o.KO,
5710
5777
  o.NONE,
@@ -5713,34 +5780,34 @@ class Ja {
5713
5780
  o.NO_UPDATES,
5714
5781
  t.query
5715
5782
  ]), t.query.type) {
5716
- case _.MESSAGES:
5783
+ case S.MESSAGES:
5717
5784
  return this.sm !== null ? await this.sm?.getMessages(t.query).then((I) => (this.broadcastUpdate(201, I), { code: 201, hash: g })) : { code: 500, hash: g };
5718
- case _.CLOUD:
5785
+ case S.CLOUD:
5719
5786
  return this.sm !== null ? await this.sm?.getCloud(t.query).then((I) => (this.broadcastUpdate(201, I), { code: 201, hash: g })) : { code: 500, hash: g };
5720
- case _.SERIES:
5787
+ case S.SERIES:
5721
5788
  return this.sm !== null ? await this.sm?.getSeries(t.query).then((I) => (this.broadcastUpdate(201, I), { code: 201, hash: g })) : { code: 500, hash: g };
5722
5789
  }
5723
5790
  return l;
5724
5791
  };
5725
5792
  startBroadcastListener = () => {
5726
5793
  const t = this.options.presentation;
5727
- this.bc = new BroadcastChannel(t), K(3, ["%cchannel%c %capi", o.BROADCAST, o.NONE, o.API, t]), this.bc.onmessage = (i) => {
5794
+ this.bc = new BroadcastChannel(t), M(3, ["%cchannel%c %capi", o.BROADCAST, o.NONE, o.API, t]), this.bc.onmessage = (i) => {
5728
5795
  this.actions(i);
5729
5796
  }, this.bc.postMessage({ event: X.STORAGE_INIT, data: {} });
5730
5797
  };
5731
5798
  broadcastUpdate = (t, i) => {
5732
5799
  switch (t) {
5733
5800
  case 201:
5734
- K(3, [
5801
+ M(3, [
5735
5802
  `%cupdate%c %cwidget%c %c${i.query?.type}`,
5736
5803
  o.BROADCAST,
5737
5804
  o.NONE,
5738
5805
  o.WIDGET,
5739
5806
  o.NONE,
5740
- Wr(i.query),
5807
+ tr(i.query),
5741
5808
  // @ts-expect-error query.widget is obligatory but not always
5742
5809
  `${i?.data?.title ?? ""} ${i.query.widget}`
5743
- ]), K(4, [
5810
+ ]), M(4, [
5744
5811
  "%cdebug%c %cevent",
5745
5812
  o.NO_UPDATES,
5746
5813
  o.NONE,
@@ -5754,13 +5821,13 @@ class Ja {
5754
5821
  case 204:
5755
5822
  break;
5756
5823
  default:
5757
- K(2, [
5824
+ M(2, [
5758
5825
  `%cupdate%c %cwidget%c %c${i.query?.type}`,
5759
5826
  o.KO,
5760
5827
  o.NONE,
5761
5828
  o.WIDGET,
5762
5829
  o.NONE,
5763
- Wr(i.query),
5830
+ tr(i.query),
5764
5831
  "Fetch error",
5765
5832
  i.query
5766
5833
  ]);
@@ -5776,7 +5843,7 @@ class Ja {
5776
5843
  this.addSubscriber(t.data.data);
5777
5844
  break;
5778
5845
  case X.UPDATE:
5779
- K(3, [
5846
+ M(3, [
5780
5847
  "%cupdate%c %capi%c %cstorage",
5781
5848
  o.BROADCAST,
5782
5849
  o.NONE,
@@ -5790,7 +5857,7 @@ class Ja {
5790
5857
  };
5791
5858
  cleanMessages = async () => {
5792
5859
  if (this.options?.suspended) {
5793
- K(2, [
5860
+ M(2, [
5794
5861
  "%cclean%c %cstorage%c %cmessages",
5795
5862
  o.KO,
5796
5863
  o.NONE,
@@ -5804,7 +5871,7 @@ class Ja {
5804
5871
  const t = this.options?.retention || 86400 * 4, i = await this.sm?.cleanMessages(
5805
5872
  t
5806
5873
  );
5807
- K(3, [
5874
+ M(3, [
5808
5875
  "%cclean%c %cstorage%c %cmessages",
5809
5876
  o.OK,
5810
5877
  o.NONE,
@@ -5816,7 +5883,7 @@ class Ja {
5816
5883
  };
5817
5884
  hideMessage = async (t) => {
5818
5885
  const i = await this.sm?.hideMessage(t.id, 0);
5819
- return K(3, [
5886
+ return M(3, [
5820
5887
  "%chide%c %cstorage%c %cmessages",
5821
5888
  o.OK,
5822
5889
  o.NONE,
@@ -5859,6 +5926,8 @@ class Ja {
5859
5926
  deleteImage = async (t, i) => await this.api.deleteImage(t, i);
5860
5927
  getImages = async (t) => await this.sm?.getImages(t);
5861
5928
  setImage = async (t) => await this.sm?.setImage(t);
5929
+ getHash = async (t, i) => await this.sm?.getHash(t, i);
5930
+ setHash = async (t, i) => await this.sm?.setHash(t, i) ?? 400;
5862
5931
  }
5863
5932
  class Ba {
5864
5933
  sm;
@@ -5886,7 +5955,7 @@ class Ba {
5886
5955
  * @param query Widgets parameters, type "cloud"
5887
5956
  * @returns IResponse
5888
5957
  */
5889
- getCloud = async (t) => t.type !== _.CLOUD ? (console.warn(
5958
+ getCloud = async (t) => t.type !== S.CLOUD ? (console.warn(
5890
5959
  "%cget%c %cstorage%c %ccloud",
5891
5960
  o.KO,
5892
5961
  o.NONE,
@@ -5906,7 +5975,7 @@ class Ba {
5906
5975
  * @param query Widgets parameters, type "messages"
5907
5976
  * @returns IResponse
5908
5977
  */
5909
- getMessages = async (t) => t.type !== _.MESSAGES ? (console.warn(
5978
+ getMessages = async (t) => t.type !== S.MESSAGES ? (console.warn(
5910
5979
  "%cget%c %cstorage%c %cmessages",
5911
5980
  o.KO,
5912
5981
  o.NONE,
@@ -5926,7 +5995,7 @@ class Ba {
5926
5995
  * @param query Widgets parameters, type "series"
5927
5996
  * @returns IResponse
5928
5997
  */
5929
- getSeries = async (t) => t.type !== _.SERIES ? (console.warn(
5998
+ getSeries = async (t) => t.type !== S.SERIES ? (console.warn(
5930
5999
  "%cget%c %cstorage%c %cseries",
5931
6000
  o.KO,
5932
6001
  o.NONE,
@@ -5960,7 +6029,7 @@ class Za {
5960
6029
  const g = { ...t.dataset };
5961
6030
  delete g.hmr;
5962
6031
  const b = window.BuzzCasting.getOptions();
5963
- g.presentation = b?.presentation ?? `${l} not found`, this.query = g, Da(t), this.storageReader = new Ba(b), this.broadcastChannel = new BroadcastChannel(g.presentation), this.broadcastListener();
6032
+ g.presentation = b?.presentation ?? `${l} not found`, this.query = g, Na(t), this.storageReader = new Ba(b), this.broadcastChannel = new BroadcastChannel(g.presentation), this.broadcastListener();
5964
6033
  }
5965
6034
  addCallbackListener(t) {
5966
6035
  this.callbacks.push(t);
@@ -5978,21 +6047,21 @@ class Za {
5978
6047
  try {
5979
6048
  if (l.dashboard === t.dashboard && l.widget === t.widget) {
5980
6049
  const g = await this.getData();
5981
- g?.success && (K(4, [
6050
+ g?.success && (M(4, [
5982
6051
  `%cset%c %cwidget%c %c${this.query.type}`,
5983
6052
  o.OK,
5984
6053
  o.NONE,
5985
6054
  o.WIDGET,
5986
6055
  o.NONE,
5987
6056
  //@ts-ignore
5988
- Wr(this.query),
6057
+ tr(this.query),
5989
6058
  this.query
5990
6059
  ]), this.callbacks.forEach(async (b) => {
5991
6060
  b(g);
5992
6061
  }));
5993
6062
  }
5994
6063
  } catch (g) {
5995
- K(4, [X.WIDGET_UPDATE, l, g.message, g]);
6064
+ M(4, [X.WIDGET_UPDATE, l, g.message, g]);
5996
6065
  }
5997
6066
  break;
5998
6067
  case X.APP_READY:
@@ -6006,15 +6075,16 @@ class Za {
6006
6075
  * This takes place when the container indicates it has finished loading (ready)
6007
6076
  */
6008
6077
  subscribe() {
6009
- K(3, [
6010
- "%csubscribe%c %cwidget",
6078
+ M(3, [
6079
+ `%csubscribe%c %cwidget%c %c${this.query.type}`,
6011
6080
  o.SUBSCRIBE,
6012
6081
  o.NONE,
6013
6082
  o.WIDGET,
6014
- this.query.presentation,
6083
+ o.NONE,
6084
+ tr(this.query),
6015
6085
  this.query.widget
6016
- ]), K(4, [
6017
- "%debug%c %cwidget",
6086
+ ]), M(4, [
6087
+ "%cdebug%c %cwidget",
6018
6088
  o.NO_UPDATES,
6019
6089
  o.NONE,
6020
6090
  o.WIDGET,
@@ -6024,12 +6094,6 @@ class Za {
6024
6094
  data: this.query
6025
6095
  });
6026
6096
  }
6027
- setHash(t) {
6028
- this.query.hash = t;
6029
- }
6030
- getHash() {
6031
- return this.query.hash;
6032
- }
6033
6097
  /**
6034
6098
  * Generic call to any query type
6035
6099
  *
@@ -6037,11 +6101,11 @@ class Za {
6037
6101
  */
6038
6102
  getData = async () => {
6039
6103
  switch (this.query.type) {
6040
- case _.CLOUD:
6104
+ case S.CLOUD:
6041
6105
  return await this.getCloud();
6042
- case _.MESSAGES:
6106
+ case S.MESSAGES:
6043
6107
  return await this.getMessages();
6044
- case _.SERIES:
6108
+ case S.SERIES:
6045
6109
  return await this.getSeries();
6046
6110
  }
6047
6111
  return {
@@ -6056,7 +6120,7 @@ class Za {
6056
6120
  *
6057
6121
  * @returns IResponse
6058
6122
  */
6059
- getCloud = async () => this.query.type !== _.CLOUD ? (K(3, [
6123
+ getCloud = async () => this.query.type !== S.CLOUD ? (M(3, [
6060
6124
  "%cget%c %cstorage%c %cwidget",
6061
6125
  o.KO,
6062
6126
  o.NONE,
@@ -6066,7 +6130,7 @@ class Za {
6066
6130
  this.query.widget,
6067
6131
  "Wrong method call for getCloud, expected type is",
6068
6132
  this.query.type
6069
- ]), K(4, [
6133
+ ]), M(4, [
6070
6134
  "%cdebug%c %ccloud",
6071
6135
  o.NO_UPDATES,
6072
6136
  o.NONE,
@@ -6083,7 +6147,7 @@ class Za {
6083
6147
  *
6084
6148
  * @returns IResponse
6085
6149
  */
6086
- getMessages = async () => this.query.type !== _.MESSAGES ? (K(3, [
6150
+ getMessages = async () => this.query.type !== S.MESSAGES ? (M(3, [
6087
6151
  "%cget%c %cstorage%c %cwidget",
6088
6152
  o.KO,
6089
6153
  o.NONE,
@@ -6093,7 +6157,7 @@ class Za {
6093
6157
  this.query.widget,
6094
6158
  "Wrong method call for getMessages, expected type is",
6095
6159
  this.query.type
6096
- ]), K(4, [
6160
+ ]), M(4, [
6097
6161
  "%debug%c %cmessages",
6098
6162
  o.NO_UPDATES,
6099
6163
  o.NONE,
@@ -6109,7 +6173,7 @@ class Za {
6109
6173
  *
6110
6174
  * @returns IResponse
6111
6175
  */
6112
- getSeries = async () => this.query.type !== _.SERIES ? (K(3, [
6176
+ getSeries = async () => this.query.type !== S.SERIES ? (M(3, [
6113
6177
  "%cget%c %cstorage%c %cwidget",
6114
6178
  o.KO,
6115
6179
  o.NONE,
@@ -6119,7 +6183,7 @@ class Za {
6119
6183
  this.query.widget,
6120
6184
  "Wrong method call for getSeries, expected type is",
6121
6185
  this.query.type
6122
- ]), K(4, [
6186
+ ]), M(4, [
6123
6187
  "%cdebug%c %cseries",
6124
6188
  o.NO_UPDATES,
6125
6189
  o.NONE,
@@ -6138,8 +6202,8 @@ class Za {
6138
6202
  * @param modal IModal
6139
6203
  */
6140
6204
  showModal = (t) => {
6141
- K(3, [
6142
- "%Cmodal%c %cwidget",
6205
+ M(3, [
6206
+ "%cmodal%c %cwidget",
6143
6207
  o.OK,
6144
6208
  o.NONE,
6145
6209
  o.WIDGET,