buzzcasting-storage 3.9.9 → 3.9.10

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 O = /* @__PURE__ */ ((p) => (p.MESSAGES = "messages", p.CLOUD = "cloud", p.SERIES = "series", p.TOPICS = "topics", p.WIDGET = "widget", p.WIDGETS = "widgets", p.DASHBOARD = "dashboard", p.DASHBOARDS = "dashboards", p.SLIDE = "slide", p.SLIDES = "slides", p.PRESENTATION = "presentation", p.PRESENTATIONS = "presentations", p.PREFERENCE = "preference", p.PREFERENCES = "preferences", p))(O || {}), c = /* @__PURE__ */ ((p) => (p.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", p.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", p.BROADCAST = "color:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", p.CLOUD = "color:purple;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", p.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", p.ERROR = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", p.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", p.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", p.KO = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", p.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", p.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", p.NONE = "color:transparent;background-color:transparent;", p.OK = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", p.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", p.SERIES = "color:purple;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", p.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", p.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", p.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", p.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", p.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", p))(c || {}), J = /* @__PURE__ */ ((p) => (p.ADD_SLIDE = "addSlide", p.APP_READY = "appReady", p.API_UPDATE = "apiUpdate", p.WS_API_REQUEST = "wsApiRequest", p.WS_API_RESPONSE = "wsApiResponse", p.WS_API_UPDATE = "wsApiRUpdate", p.APPROVE_MESSAGE = "approveMessage", p.CHANNEL = "channel", p.CLEAN_MESSAGES = "cleanMessages", p.CLOSE_MODAL = "closeModal", p.CLOSE_BUILDER_MODAL = "closeBuilderModal", p.DASHBOARD_LOAD = "loadDashboard", p.DASHBOARD_STORE = "storeDashboard", p.ERROR = "error", p.HIDE_MESSAGE = "hideMessage", p.HIDE_LABELS = "hideLabels", p.MAUPPUT_UPDATE = "layoutUpdate", p.PREV_SLIDE = "prevSlide", p.RELOAD_PRESENTATION = "reloadPresentation", p.SHOW_MODAL = "showModal", p.STAR_MESSAGE = "starMessage", p.GOTO_SLIDE = "gotoSlide", p.NEXT_SLIDE = "nextSlide", p.PREFERENCE_LOAD = "loadPreference", p.PREFERENCE_STORE = "storePreference", p.PAUSE_PRESENTATION = "pausePresentation", p.PRESENTATION_READY = "presentationReady", p.PRESENTATION_LOAD = "loadPresentation", p.PRESENTATION_STORE = "storePresentation", p.SHOW_BUILDER_MODAL = "showBuilderModal", p.SLIDE_DID_LOAD = "slideDidLoad", p.SLIDE_GOTO = "slideGoto", p.SLIDE_READY = "slideReady", p.SLIDE_LOAD = "loadSlide", p.SLIDE_STORE = "storeSlide", p.SLIDE_TRANSITIONER = "slideTransitioner", p.START_TRANSITIONER = "startTransitioner", p.STORAGE_INIT = "storageInit", p.SUBSCRIBE = "subscribe", p.SUSPEND_ACCOUNT = "suspendAccount", p.SWITCH_PRESENTATION = "switchPresentation", p.REMOVE_CLOUD = "removeCloud", p.UPDATE = "update", p.VERSION = "version", p.WIDGETS_CLEAR = "widgetsClear", p.WIDGET_LOAD = "widgetLoad", p.WIDGET_STORE = "widgetStore", p.WIDGET_UPDATE = "widgetUpdate", p))(J || {}), qt = /* @__PURE__ */ ((p) => (p.APPROVED = "approved", p.BEFORE = "before", p.DELAYED = "delayed", p.NONE = "none", p.REALTIME = "realtime", p))(qt || {}), he = /* @__PURE__ */ ((p) => (p.KEYVAL = "keyval", p.LOCAL = "local", p.SESSION = "session", p.DEXIE = "dexie", p.WINDOW = "window", p))(he || {});
1
+ var _ = /* @__PURE__ */ ((p) => (p.MESSAGES = "messages", p.CLOUD = "cloud", p.SERIES = "series", p.TOPICS = "topics", p.WIDGET = "widget", p.WIDGETS = "widgets", p.DASHBOARD = "dashboard", p.DASHBOARDS = "dashboards", p.SLIDE = "slide", p.SLIDES = "slides", p.PRESENTATION = "presentation", p.PRESENTATIONS = "presentations", p.PREFERENCE = "preference", p.PREFERENCES = "preferences", p))(_ || {}), c = /* @__PURE__ */ ((p) => (p.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", p.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", p.BROADCAST = "color:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", p.CLOUD = "color:purple;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", p.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", p.ERROR = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", p.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", p.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", p.KO = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", p.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", p.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", p.NONE = "color:transparent;background-color:transparent;", p.OK = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", p.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", p.SERIES = "color:purple;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", p.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", p.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", p.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", p.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", p.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", p))(c || {}), J = /* @__PURE__ */ ((p) => (p.ADD_SLIDE = "addSlide", p.APP_READY = "appReady", p.API_UPDATE = "apiUpdate", p.WS_API_REQUEST = "wsApiRequest", p.WS_API_RESPONSE = "wsApiResponse", p.WS_API_UPDATE = "wsApiRUpdate", p.APPROVE_MESSAGE = "approveMessage", p.CHANNEL = "channel", p.CLEAN_MESSAGES = "cleanMessages", p.CLOSE_MODAL = "closeModal", p.CLOSE_BUILDER_MODAL = "closeBuilderModal", p.DASHBOARD_LOAD = "loadDashboard", p.DASHBOARD_STORE = "storeDashboard", p.ERROR = "error", p.HIDE_MESSAGE = "hideMessage", p.HIDE_LABELS = "hideLabels", p.MAUPPUT_UPDATE = "layoutUpdate", p.PREV_SLIDE = "prevSlide", p.RELOAD_PRESENTATION = "reloadPresentation", p.SHOW_MODAL = "showModal", p.STAR_MESSAGE = "starMessage", p.GOTO_SLIDE = "gotoSlide", p.NEXT_SLIDE = "nextSlide", p.PREFERENCE_LOAD = "loadPreference", p.PREFERENCE_STORE = "storePreference", p.PAUSE_PRESENTATION = "pausePresentation", p.PRESENTATION_READY = "presentationReady", p.PRESENTATION_LOAD = "loadPresentation", p.PRESENTATION_STORE = "storePresentation", p.SHOW_BUILDER_MODAL = "showBuilderModal", p.SLIDE_DID_LOAD = "slideDidLoad", p.SLIDE_GOTO = "slideGoto", p.SLIDE_READY = "slideReady", p.SLIDE_LOAD = "loadSlide", p.SLIDE_STORE = "storeSlide", p.SLIDE_TRANSITIONER = "slideTransitioner", p.START_TRANSITIONER = "startTransitioner", p.STORAGE_INIT = "storageInit", p.SUBSCRIBE = "subscribe", p.SUSPEND_ACCOUNT = "suspendAccount", p.SWITCH_PRESENTATION = "switchPresentation", p.REMOVE_CLOUD = "removeCloud", p.UPDATE = "update", p.VERSION = "version", p.WIDGETS_CLEAR = "widgetsClear", p.WIDGET_LOAD = "widgetLoad", p.WIDGET_STORE = "widgetStore", p.WIDGET_UPDATE = "widgetUpdate", p))(J || {}), qt = /* @__PURE__ */ ((p) => (p.APPROVED = "approved", p.BEFORE = "before", p.DELAYED = "delayed", p.NONE = "none", p.REALTIME = "realtime", p))(qt || {}), he = /* @__PURE__ */ ((p) => (p.KEYVAL = "keyval", p.LOCAL = "local", p.SESSION = "session", p.DEXIE = "dexie", p.WINDOW = "window", p))(he || {});
2
2
  function Pa(p) {
3
3
  const n = {};
4
4
  for (let i = 0; i < p.length; i++) {
@@ -26,8 +26,8 @@ function Oe(p, n) {
26
26
  }
27
27
  function Ra(p, n, i) {
28
28
  return Object.keys(n).sort().reduce(l, p);
29
- function l(E, _) {
30
- return jr(E, n[_], _, i);
29
+ function l(E, O) {
30
+ return jr(E, n[O], O, i);
31
31
  }
32
32
  }
33
33
  function jr(p, n, i, l) {
@@ -40,13 +40,13 @@ function jr(p, n, i, l) {
40
40
  if (l.includes(n))
41
41
  return Oe(E, `[Circular]${i}`);
42
42
  l.push(n);
43
- const _ = Ra(E, n, l);
43
+ const O = Ra(E, n, l);
44
44
  if (!("valueOf" in n) || typeof n.valueOf != "function")
45
- return _;
45
+ return O;
46
46
  try {
47
- return Oe(_, String(n.valueOf()));
47
+ return Oe(O, String(n.valueOf()));
48
48
  } catch (C) {
49
- return Oe(_, `[valueOf exception]${C.stack || C.message}`);
49
+ return Oe(O, `[valueOf exception]${C.stack || C.message}`);
50
50
  }
51
51
  }
52
52
  return Oe(E, n.toString());
@@ -93,11 +93,11 @@ const K = (p = 0, n) => {
93
93
  }
94
94
  }, kr = (p) => {
95
95
  switch (p?.type) {
96
- case O.MESSAGES:
96
+ case _.MESSAGES:
97
97
  return c.MESSAGES;
98
- case O.SERIES:
98
+ case _.SERIES:
99
99
  return c.SERIES;
100
- case O.CLOUD:
100
+ case _.CLOUD:
101
101
  return c.CLOUD;
102
102
  default:
103
103
  return c.NO_UPDATES;
@@ -117,10 +117,10 @@ function Ia(p) {
117
117
  }
118
118
  function St(p, n) {
119
119
  var i;
120
- let l, E, _, C, G;
120
+ let l, E, O, C, G;
121
121
  switch (p.moderation) {
122
122
  case qt.BEFORE:
123
- l = /* @__PURE__ */ new Date(), E = (i = p.beforeTime) == null ? void 0 : i.split(":"), _ = Number.parseInt(E ? E[0] : "00"), C = Number.parseInt(E ? E[1] : "00"), G = Number.parseInt(E ? E[2] : "00"), n.before = l.setHours(_, C, G, 0) / 1e3, n.period || (n.period = l.getDay() === 1 ? 72 : 24);
123
+ l = /* @__PURE__ */ new Date(), E = (i = p.beforeTime) == null ? void 0 : i.split(":"), O = Number.parseInt(E ? E[0] : "00"), C = Number.parseInt(E ? E[1] : "00"), G = Number.parseInt(E ? E[2] : "00"), n.before = l.setHours(O, C, G, 0) / 1e3, n.period || (n.period = l.getDay() === 1 ? 72 : 24);
124
124
  break;
125
125
  case qt.DELAYED:
126
126
  p.delay && p.delay > 0 && (n.delay = `${p.delay}`);
@@ -133,7 +133,7 @@ function St(p, n) {
133
133
  }
134
134
  return n;
135
135
  }
136
- const xa = "3.9.8";
136
+ const xa = "3.9.9";
137
137
  class ka {
138
138
  options;
139
139
  url;
@@ -165,16 +165,16 @@ class ka {
165
165
  async get(n) {
166
166
  const { version: i } = this.options, l = this.headers(), E = Object.assign({}, n);
167
167
  delete E.type, delete E.hash, delete E.order, E.topics = `${E.dashboard}-${E.widget}`, delete E.presentation;
168
- const _ = Object.keys(E).length > 0 ? `?${new URLSearchParams(E).toString()}` : "";
168
+ const O = Object.keys(E).length > 0 ? `?${new URLSearchParams(E).toString()}` : "";
169
169
  let C = "";
170
170
  switch (n.type) {
171
- case O.MESSAGES:
171
+ case _.MESSAGES:
172
172
  C = c.MESSAGES;
173
173
  break;
174
- case O.SERIES:
174
+ case _.SERIES:
175
175
  C = c.SERIES;
176
176
  break;
177
- case O.CLOUD:
177
+ case _.CLOUD:
178
178
  C = c.CLOUD;
179
179
  break;
180
180
  }
@@ -187,7 +187,7 @@ class ka {
187
187
  C,
188
188
  n.widget
189
189
  ]), K(4, [n.type, E]), await fetch(
190
- [this.url, "api", i, n.type].join("/") + _,
190
+ [this.url, "api", i, n.type].join("/") + O,
191
191
  { ...l, method: "get" }
192
192
  ).then(async (G) => {
193
193
  if (!G.ok)
@@ -208,15 +208,15 @@ class ka {
208
208
  ), await fetch(
209
209
  [this.url, "api", i, "messages", n.id].join("/") + E,
210
210
  { ...l, method: "put" }
211
- ).then((_) => {
212
- if (!_.ok)
213
- throw new Error(_.statusText);
214
- return _;
215
- }).then((_) => _.json()).catch((_) => ({ succes: !1, message: _, data: [] }));
211
+ ).then((O) => {
212
+ if (!O.ok)
213
+ throw new Error(O.statusText);
214
+ return O;
215
+ }).then((O) => O.json()).catch((O) => ({ succes: !1, message: O, data: [] }));
216
216
  }
217
217
  async hideLabels(n) {
218
- const { version: i } = this.options, l = this.formHeaders(), E = new URLSearchParams(), _ = n.labels || [];
219
- for (const [C, G] of _.entries())
218
+ const { version: i } = this.options, l = this.formHeaders(), E = new URLSearchParams(), O = n.labels || [];
219
+ for (const [C, G] of O.entries())
220
220
  E.append(`custom_filters[${C}]`, G);
221
221
  return console.info(
222
222
  "%capi%c %cput",
@@ -225,7 +225,7 @@ class ka {
225
225
  c.GET_DATA,
226
226
  J.HIDE_LABELS,
227
227
  n.widget,
228
- _
228
+ O
229
229
  ), await fetch(
230
230
  [this.url, "api", i, n.type, n.widget].join("/"),
231
231
  { ...l, body: E, method: "put" }
@@ -240,11 +240,11 @@ class ka {
240
240
  return delete E.type, delete E.hash, K(3, ["%capi%c %cloadSlide", c.API, c.NONE, c.SLIDE, n.id]), await fetch(
241
241
  [this.url, "api", i, "slides", n.id].join("/"),
242
242
  { ...l, method: "get" }
243
- ).then(async (_) => {
244
- if (!_.ok)
245
- throw new Error(`${_.status}`);
246
- return _;
247
- }).then((_) => _.json()).then((_) => (_.query = n, _)).catch((_) => ({ success: !1, message: `${_}`, data: null }));
243
+ ).then(async (O) => {
244
+ if (!O.ok)
245
+ throw new Error(`${O.status}`);
246
+ return O;
247
+ }).then((O) => O.json()).then((O) => (O.query = n, O.data && O.data.json && (O.data.json = JSON.parse(O.data.json)), O)).catch((O) => ({ success: !1, message: `${O}`, data: null }));
248
248
  }
249
249
  /**
250
250
  * Store slide definition
@@ -269,11 +269,11 @@ class ka {
269
269
  ]), await fetch(
270
270
  [this.url, "api", i, "slides", n.id].join("/"),
271
271
  { ...l, body: E, method: "put" }
272
- ).then((_) => {
273
- if (!_.ok)
274
- throw new Error(_.statusText);
275
- return _;
276
- }).then((_) => _.json()).catch((_) => ({ succes: !1, message: _, data: [] }));
272
+ ).then((O) => {
273
+ if (!O.ok)
274
+ throw new Error(O.statusText);
275
+ return O;
276
+ }).then((O) => O.json()).catch((O) => ({ succes: !1, message: O, data: [] }));
277
277
  }
278
278
  async loadPresentation(n) {
279
279
  const { version: i } = this.options, l = this.headers();
@@ -286,7 +286,7 @@ class ka {
286
286
  c.PRESENTATION,
287
287
  n.id
288
288
  ]), await fetch(
289
- [this.url, "api", i, O.PRESENTATIONS, n.id].join("/"),
289
+ [this.url, "api", i, _.PRESENTATIONS, n.id].join("/"),
290
290
  { ...l, method: "get" }
291
291
  ).then(async (E) => {
292
292
  if (!E.ok)
@@ -306,13 +306,13 @@ class ka {
306
306
  delete n.update;
307
307
  const E = JSON.stringify(n);
308
308
  return K(2, ["%capi%c %cput", c.API, c.NONE, c.PRESENTATION, n.name]), await fetch(
309
- [this.url, "api", i, O.PRESENTATIONS, n.id].join("/"),
309
+ [this.url, "api", i, _.PRESENTATIONS, n.id].join("/"),
310
310
  { ...l, body: E, method: "put" }
311
- ).then((_) => {
312
- if (!_.ok)
313
- throw new Error(_.statusText);
314
- return _;
315
- }).then((_) => _.json()).catch((_) => ({ succes: !1, message: _, data: [] }));
311
+ ).then((O) => {
312
+ if (!O.ok)
313
+ throw new Error(O.statusText);
314
+ return O;
315
+ }).then((O) => O.json()).catch((O) => ({ succes: !1, message: O, data: [] }));
316
316
  }
317
317
  async loadPreference(n) {
318
318
  const { version: i } = this.options, l = this.headers();
@@ -323,7 +323,7 @@ class ka {
323
323
  c.APP,
324
324
  n.id
325
325
  ]), await fetch(
326
- [this.url, "api", i, O.PREFERENCES, n.id].join("/"),
326
+ [this.url, "api", i, _.PREFERENCES, n.id].join("/"),
327
327
  { ...l, method: "get" }
328
328
  ).then(async (E) => {
329
329
  if (!E.ok)
@@ -342,13 +342,13 @@ class ka {
342
342
  c.APP,
343
343
  n.id
344
344
  ), await fetch(
345
- [this.url, "api", i, O.PREFERENCES, n.id].join("/"),
345
+ [this.url, "api", i, _.PREFERENCES, n.id].join("/"),
346
346
  { ...l, body: E, method: "put" }
347
- ).then((_) => {
348
- if (!_.ok)
349
- throw new Error(_.statusText);
350
- return _;
351
- }).then((_) => _.json()).catch((_) => ({ succes: !1, message: _, data: [] }));
347
+ ).then((O) => {
348
+ if (!O.ok)
349
+ throw new Error(O.statusText);
350
+ return O;
351
+ }).then((O) => O.json()).catch((O) => ({ succes: !1, message: O, data: [] }));
352
352
  }
353
353
  /*public async loadDashboardWidgets(query: IQuery): Promise<any> {
354
354
  if (query?.dashboard === undefined)
@@ -390,7 +390,7 @@ class ka {
390
390
  async loadDashboards(n) {
391
391
  const { version: i } = this.options, l = this.headers();
392
392
  return K(3, ["%capi%c %dashboards", c.API, c.NONE, c.WIDGET]), await fetch(
393
- [this.url, "api", i, O.WIDGETS, n?.id || ""].join("/"),
393
+ [this.url, "api", i, _.WIDGETS, n?.id || ""].join("/"),
394
394
  {
395
395
  ...l,
396
396
  method: "get"
@@ -432,13 +432,13 @@ function Ma() {
432
432
  for (var a, s = 0, o = t.length; s < o; s++) !a && s in t || ((a = a || Array.prototype.slice.call(t, 0, s))[s] = t[s]);
433
433
  return e.concat(a || Array.prototype.slice.call(t));
434
434
  }
435
- var _ = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Ca, C = Object.keys, G = Array.isArray;
435
+ var O = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Ca, C = Object.keys, G = Array.isArray;
436
436
  function te(e, t) {
437
437
  return typeof t != "object" || C(t).forEach(function(r) {
438
438
  e[r] = t[r];
439
439
  }), e;
440
440
  }
441
- typeof Promise > "u" || _.Promise || (_.Promise = Promise);
441
+ typeof Promise > "u" || O.Promise || (O.Promise = Promise);
442
442
  var ge = Object.getPrototypeOf, Ce = {}.hasOwnProperty;
443
443
  function oe(e, t) {
444
444
  return Ce.call(e, t);
@@ -468,7 +468,7 @@ function Ma() {
468
468
  if (!e) throw new Error("Assertion Failed");
469
469
  }
470
470
  function Yn(e) {
471
- _.setImmediate ? setImmediate(e) : setTimeout(e, 0);
471
+ O.setImmediate ? setImmediate(e) : setTimeout(e, 0);
472
472
  }
473
473
  function ve(e, t) {
474
474
  if (typeof t == "string" && oe(e, t)) return e[t];
@@ -509,9 +509,9 @@ function Ma() {
509
509
  return t + e + "Array";
510
510
  });
511
511
  }))).filter(function(e) {
512
- return _[e];
512
+ return O[e];
513
513
  }), Jn = new Set(Ke.map(function(e) {
514
- return _[e];
514
+ return O[e];
515
515
  })), ot = null;
516
516
  function $e(e) {
517
517
  return ot = /* @__PURE__ */ new WeakMap(), e = function t(r) {
@@ -929,11 +929,11 @@ function Ma() {
929
929
  var r, a = B;
930
930
  (t ? !ne.echoes || xt++ && e === B : !xt || --xt && e === B) || queueMicrotask(t ? function(s) {
931
931
  ++kt, ne.echoes && --ne.echoes != 0 || (ne.echoes = ne.awaits = ne.id = 0), It.push(B), Re(s, !0);
932
- }.bind(null, e) : sa), e !== B && (B = e, a === Pe && (Pe.env = ar()), cn && (r = Pe.env.Promise, t = e.env, (a.global || e.global) && (Object.defineProperty(_, "Promise", t.PromiseProp), r.all = t.all, r.race = t.race, r.resolve = t.resolve, r.reject = t.reject, t.allSettled && (r.allSettled = t.allSettled), t.any && (r.any = t.any))));
932
+ }.bind(null, e) : sa), e !== B && (B = e, a === Pe && (Pe.env = ar()), cn && (r = Pe.env.Promise, t = e.env, (a.global || e.global) && (Object.defineProperty(O, "Promise", t.PromiseProp), r.all = t.all, r.race = t.race, r.resolve = t.resolve, r.reject = t.reject, t.allSettled && (r.allSettled = t.allSettled), t.any && (r.any = t.any))));
933
933
  }
934
934
  function ar() {
935
- var e = _.Promise;
936
- return cn ? { Promise: e, PromiseProp: Object.getOwnPropertyDescriptor(_, "Promise"), all: e.all, race: e.race, allSettled: e.allSettled, any: e.any, resolve: e.resolve, reject: e.reject } : {};
935
+ var e = O.Promise;
936
+ return cn ? { Promise: e, PromiseProp: Object.getOwnPropertyDescriptor(O, "Promise"), all: e.all, race: e.race, allSettled: e.allSettled, any: e.any, resolve: e.resolve, reject: e.reject } : {};
937
937
  }
938
938
  function We(e, t, r, a, s) {
939
939
  var o = B;
@@ -2314,7 +2314,7 @@ function Ma() {
2314
2314
  !t[o] || (m = t[o].idxByName[v]) && (m.name = h, delete t[o].idxByName[v], t[o].idxByName[h] = m);
2315
2315
  }
2316
2316
  }
2317
- typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && _.WorkerGlobalScope && _ instanceof _.WorkerGlobalScope && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604 && (e._hasGetAll = !1);
2317
+ typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && O.WorkerGlobalScope && O instanceof O.WorkerGlobalScope && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604 && (e._hasGetAll = !1);
2318
2318
  }
2319
2319
  function Er(e) {
2320
2320
  return e.split(",").map(function(t, r) {
@@ -3271,7 +3271,7 @@ function Ma() {
3271
3271
  this._subscribe = e;
3272
3272
  }
3273
3273
  try {
3274
- Jt = { indexedDB: _.indexedDB || _.mozIndexedDB || _.webkitIndexedDB || _.msIndexedDB, IDBKeyRange: _.IDBKeyRange || _.webkitIDBKeyRange };
3274
+ Jt = { indexedDB: O.indexedDB || O.mozIndexedDB || O.webkitIndexedDB || O.msIndexedDB, IDBKeyRange: O.IDBKeyRange || O.webkitIDBKeyRange };
3275
3275
  } catch {
3276
3276
  Jt = { indexedDB: null, IDBKeyRange: null };
3277
3277
  }
@@ -3467,7 +3467,7 @@ class Mr {
3467
3467
  success: !1,
3468
3468
  query: n
3469
3469
  };
3470
- const i = await this.db.table(O.CLOUD).where({ id: n.widget }).last().catch(() => {
3470
+ const i = await this.db.table(_.CLOUD).where({ id: n.widget }).last().catch(() => {
3471
3471
  K(2, ["%capi%C %ccloud", c.API, c.NONE, c.CLOUD, n.widget]);
3472
3472
  });
3473
3473
  if (typeof i > "u")
@@ -3494,7 +3494,7 @@ class Mr {
3494
3494
  * @param data
3495
3495
  * @returns number
3496
3496
  */
3497
- setCloud = async (n, i) => n.type === O.CLOUD && i !== "" ? await this.db.table(O.CLOUD).put({
3497
+ setCloud = async (n, i) => n.type === _.CLOUD && i !== "" ? await this.db.table(_.CLOUD).put({
3498
3498
  id: n.widget,
3499
3499
  dashboard_id: n.dashboard,
3500
3500
  //data: data.data,
@@ -3510,7 +3510,7 @@ class Mr {
3510
3510
  l.message
3511
3511
  ]), 400)) : 400;
3512
3512
  getDashboard = async (n) => {
3513
- const i = await this.db.table(O.DASHBOARD).where({ id: n.id }).last().catch(() => {
3513
+ const i = await this.db.table(_.DASHBOARD).where({ id: n.id }).last().catch(() => {
3514
3514
  K(2, ["%cstorage", c.STORAGE, J.DASHBOARD_LOAD, n.id]);
3515
3515
  });
3516
3516
  return i === void 0 ? {
@@ -3520,8 +3520,8 @@ class Mr {
3520
3520
  } : (i.message = `Dashboard ${n.id} retrieved from storage`, i.success = !0, i);
3521
3521
  };
3522
3522
  getDashboards = async (n) => {
3523
- const i = (_) => n?.id === _.id, l = (_) => n?.name ? _.name.includes(n?.name) : !1;
3524
- let E = await this.db.table(O.DASHBOARD).toArray().then((_) => n?.id ? _.filter(i) : _).then((_) => n?.name ? _.filter(l) : _).catch(() => {
3523
+ const i = (O) => n?.id === O.id, l = (O) => n?.name ? O.name.includes(n?.name) : !1;
3524
+ let E = await this.db.table(_.DASHBOARD).toArray().then((O) => n?.id ? O.filter(i) : O).then((O) => n?.name ? O.filter(l) : O).catch(() => {
3525
3525
  K(2, ["%cstorage", c.STORAGE, J.DASHBOARD_LOAD, n]);
3526
3526
  });
3527
3527
  return E !== void 0 && K(3, [
@@ -3544,7 +3544,7 @@ class Mr {
3544
3544
  */
3545
3545
  setDashboard = async (n) => {
3546
3546
  const i = structuredClone(n);
3547
- return delete i.data.widgets, await this.db.table(O.DASHBOARD).put({
3547
+ return delete i.data.widgets, await this.db.table(_.DASHBOARD).put({
3548
3548
  id: i.id,
3549
3549
  name: i.name,
3550
3550
  data: i.data,
@@ -3553,7 +3553,7 @@ class Mr {
3553
3553
  data: null,
3554
3554
  message: `Dashboard ${i.data.id} saved to storage`,
3555
3555
  success: !0
3556
- })).catch((l) => (K(4, ["%cstorage", c.STORAGE, O.WIDGET, n, l.message]), {
3556
+ })).catch((l) => (K(4, ["%cstorage", c.STORAGE, _.WIDGET, n, l.message]), {
3557
3557
  data: null,
3558
3558
  message: `Dashboard ${i.data.id} save error: ${l.message}`,
3559
3559
  success: !1
@@ -3563,21 +3563,21 @@ class Mr {
3563
3563
  * Wipe Message data after expires timestamp
3564
3564
  */
3565
3565
  cleanMessages = async () => {
3566
- const n = Date.now() / 1e3, i = (_) => _.expires < n, l = (_) => _.expires < n;
3567
- return await this.db.table(O.TOPICS).orderBy("expires").filter(i).delete().catch((_) => (console.error(
3566
+ const n = Date.now() / 1e3, i = (O) => O.expires < n, l = (O) => O.expires < n;
3567
+ return await this.db.table(_.TOPICS).orderBy("expires").filter(i).delete().catch((O) => (console.error(
3568
3568
  "%cstorage%c %cclean",
3569
3569
  c.STORAGE,
3570
3570
  c.NONE,
3571
3571
  c.MESSAGES,
3572
- _.message
3573
- ), 0)), await this.db.table(O.MESSAGES).orderBy("expires").filter(l).delete().catch((_) => (console.error(
3572
+ O.message
3573
+ ), 0)), await this.db.table(_.MESSAGES).orderBy("expires").filter(l).delete().catch((O) => (console.error(
3574
3574
  "%clean%c %cstorage%c %cmessages",
3575
3575
  c.OK,
3576
3576
  c.NONE,
3577
3577
  c.STORAGE,
3578
3578
  c.NONE,
3579
3579
  c.MESSAGES,
3580
- _.message
3580
+ O.message
3581
3581
  ), 0));
3582
3582
  };
3583
3583
  /**
@@ -3603,9 +3603,9 @@ class Mr {
3603
3603
  };
3604
3604
  const i = n?.order ?? "utc", l = Math.floor(Date.now() / 1e3);
3605
3605
  i !== "utc" && (n.since = l - 60 * 60 * 24 * 30), this.options.delay != 0 ? n.before = l - (this.options.delay || 0) : n.before = l;
3606
- const E = (G) => G.utc > (n?.since || 0), _ = (G) => G.utc < (n?.before || l), C = (G) => G?.visible !== 0;
3606
+ const E = (G) => G.utc > (n?.since || 0), O = (G) => G.utc < (n?.before || l), C = (G) => G?.visible !== 0;
3607
3607
  try {
3608
- const te = await this.db.table(O.TOPICS).where("widget_id").equals(n.widget).filter(C).filter(E).filter(_).reverse().limit(n?.limit ?? 25).sortBy(i);
3608
+ const te = await this.db.table(_.TOPICS).where("widget_id").equals(n.widget).filter(C).filter(E).filter(O).reverse().limit(n?.limit ?? 25).sortBy(i);
3609
3609
  if (te.length === 0)
3610
3610
  return {
3611
3611
  data: null,
@@ -3613,7 +3613,7 @@ class Mr {
3613
3613
  success: !1,
3614
3614
  query: n
3615
3615
  };
3616
- let ge = te.map((Ce) => this.db.table(O.MESSAGES).get({ id: Ce.message_id }));
3616
+ let ge = te.map((Ce) => this.db.table(_.MESSAGES).get({ id: Ce.message_id }));
3617
3617
  return tn.Promise.all(ge).then(async (Ce) => {
3618
3618
  const be = {
3619
3619
  data: {
@@ -3647,7 +3647,7 @@ class Mr {
3647
3647
  }
3648
3648
  };
3649
3649
  hideMessage = async (n, i) => {
3650
- await this.db.table(O.TOPICS).where("message_id").equals(n).modify({ visible: i ? 1 : 0 }).catch((l) => (console.error(
3650
+ await this.db.table(_.TOPICS).where("message_id").equals(n).modify({ visible: i ? 1 : 0 }).catch((l) => (console.error(
3651
3651
  "%chide%c %cstorage%c %cmessage",
3652
3652
  c.KO,
3653
3653
  c.NONE,
@@ -3664,22 +3664,22 @@ class Mr {
3664
3664
  * @returns number
3665
3665
  */
3666
3666
  setMessages = async (n, i) => {
3667
- if (n.type !== O.MESSAGES)
3667
+ if (n.type !== _.MESSAGES)
3668
3668
  return 400;
3669
3669
  const l = i.data.title;
3670
3670
  let E = 0;
3671
- return await i.data.messages.forEach(async (_) => {
3672
- _.id !== null && (_.topics[0] = {
3673
- message_id: _.id,
3674
- engagement: _.topics[0]?.engagement || _.dynamics?.engagement || 0,
3675
- impressions: _.topics[0]?.impressions || _.dynamics?.semrush_visits || 0,
3676
- reach: _.topics[0]?.reach || _.dynamics?.potential_reach || 0,
3677
- sentiment: _.topics[0]?.sentiment || 0
3678
- }, await this.db.table(O.MESSAGES).put({
3679
- id: _.id,
3680
- utc: _.utc,
3681
- data: _,
3682
- expires: _.expires
3671
+ return await i.data.messages.forEach(async (O) => {
3672
+ O.id !== null && (O.topics[0] = {
3673
+ message_id: O.id,
3674
+ engagement: O.topics[0]?.engagement || O.dynamics?.engagement || 0,
3675
+ impressions: O.topics[0]?.impressions || O.dynamics?.semrush_visits || 0,
3676
+ reach: O.topics[0]?.reach || O.dynamics?.potential_reach || 0,
3677
+ sentiment: O.topics[0]?.sentiment || 0
3678
+ }, await this.db.table(_.MESSAGES).put({
3679
+ id: O.id,
3680
+ utc: O.utc,
3681
+ data: O,
3682
+ expires: O.expires
3683
3683
  }).catch((C) => {
3684
3684
  E++, K(4, [
3685
3685
  "%cset%c %cstorage",
@@ -3688,20 +3688,20 @@ class Mr {
3688
3688
  c.STORAGE,
3689
3689
  "set message",
3690
3690
  `title: ${l}`,
3691
- _,
3691
+ O,
3692
3692
  C.message
3693
3693
  ]);
3694
- }), await this.db.table(O.TOPICS).put({
3694
+ }), await this.db.table(_.TOPICS).put({
3695
3695
  title: l,
3696
3696
  widget_id: n.widget,
3697
- message_id: _.id,
3697
+ message_id: O.id,
3698
3698
  dashboard_id: n.dashboard,
3699
- engagement: _.topics[0]?.engagement || _.dynamics?.engagement || 0,
3700
- impressions: _.topics[0]?.impressions || _.dynamics?.semrush_visits || 0,
3701
- reach: _.topics[0]?.reach || _.dynamics?.potential_reach || 0,
3702
- sentiment: _.topics[0]?.sentiment || 0,
3703
- utc: _.utc,
3704
- expires: _.expires
3699
+ engagement: O.topics[0]?.engagement || O.dynamics?.engagement || 0,
3700
+ impressions: O.topics[0]?.impressions || O.dynamics?.semrush_visits || 0,
3701
+ reach: O.topics[0]?.reach || O.dynamics?.potential_reach || 0,
3702
+ sentiment: O.topics[0]?.sentiment || 0,
3703
+ utc: O.utc,
3704
+ expires: O.expires
3705
3705
  }).catch((C) => {
3706
3706
  E++, K(4, [
3707
3707
  "%cset%c %cstorage",
@@ -3710,12 +3710,12 @@ class Mr {
3710
3710
  c.STORAGE,
3711
3711
  "set topic",
3712
3712
  `title: ${l}`,
3713
- _,
3713
+ O,
3714
3714
  C.message
3715
3715
  ]);
3716
3716
  }), await i.data.topics.forEach(async (C) => {
3717
3717
  const G = C.message_id, te = C.visible ? 1 : 0, ge = C.title;
3718
- await this.db.table(O.TOPICS).where("message_id").equals(G).modify({ visible: te }).catch((Ce) => {
3718
+ await this.db.table(_.TOPICS).where("message_id").equals(G).modify({ visible: te }).catch((Ce) => {
3719
3719
  E++, K(4, [
3720
3720
  "%cset%c %cstorage",
3721
3721
  c.KO,
@@ -3751,7 +3751,7 @@ class Mr {
3751
3751
  success: !1,
3752
3752
  query: n
3753
3753
  };
3754
- const i = await this.db.table(O.SERIES).where({ id: n.widget }).last().catch(() => {
3754
+ const i = await this.db.table(_.SERIES).where({ id: n.widget }).last().catch(() => {
3755
3755
  K(2, [
3756
3756
  "%cget%c %cstorage%c %cseries",
3757
3757
  c.KO,
@@ -3783,7 +3783,7 @@ class Mr {
3783
3783
  * @param data
3784
3784
  * @returns number
3785
3785
  */
3786
- setSeries = async (n, i) => (delete i?.query, n.type === O.SERIES && i !== "" ? await this.db.table(O.SERIES).put({
3786
+ setSeries = async (n, i) => (delete i?.query, n.type === _.SERIES && i !== "" ? await this.db.table(_.SERIES).put({
3787
3787
  id: n.widget,
3788
3788
  dashboard_id: n.dashboard,
3789
3789
  //data: data.data,
@@ -3819,7 +3819,7 @@ class Mr {
3819
3819
  success: !1,
3820
3820
  query: n
3821
3821
  };
3822
- const i = await this.db.table(O.WIDGET).where({ id: n.id }).last().catch(() => {
3822
+ const i = await this.db.table(_.WIDGET).where({ id: n.id }).last().catch(() => {
3823
3823
  console.warn("%cstorage", c.STORAGE, J.WIDGET_LOAD, n.id);
3824
3824
  });
3825
3825
  return i === void 0 ? {
@@ -3835,10 +3835,10 @@ class Mr {
3835
3835
  */
3836
3836
  getWidgets = async (n) => {
3837
3837
  const i = (C) => n?.dashboard === C.dashboard_id, l = (C) => n?.type === C.type, E = (C) => n?.name ? C.name.includes(n?.name) : !1;
3838
- let _ = await this.db.table(O.WIDGET).toArray().then((C) => n?.dashboard ? C.filter(i) : C).then((C) => n?.type ? C.filter(l) : C).then((C) => n?.name ? C.filter(E) : C).catch(() => {
3838
+ let O = await this.db.table(_.WIDGET).toArray().then((C) => n?.dashboard ? C.filter(i) : C).then((C) => n?.type ? C.filter(l) : C).then((C) => n?.name ? C.filter(E) : C).catch(() => {
3839
3839
  K(2, ["%cstorage", c.STORAGE, J.WIDGET_LOAD, n]);
3840
3840
  });
3841
- return _ !== void 0 && K(3, [
3841
+ return O !== void 0 && K(3, [
3842
3842
  "%cstorage%c %cwidgets",
3843
3843
  c.STORAGE,
3844
3844
  c.NONE,
@@ -3846,9 +3846,9 @@ class Mr {
3846
3846
  n
3847
3847
  ]), {
3848
3848
  // @ts-ignore
3849
- data: _ !== void 0 ? { data: _, query: n } : null,
3850
- message: _ !== void 0 ? "Widgets loaded from storage" : "Widgets load error",
3851
- success: _ !== void 0
3849
+ data: O !== void 0 ? { data: O, query: n } : null,
3850
+ message: O !== void 0 ? "Widgets loaded from storage" : "Widgets load error",
3851
+ success: O !== void 0
3852
3852
  };
3853
3853
  };
3854
3854
  /**
@@ -3856,7 +3856,7 @@ class Mr {
3856
3856
  * @param query IQuery
3857
3857
  * @returns number
3858
3858
  */
3859
- setWidget = async (n) => await this.db.table(O.WIDGET).put({
3859
+ setWidget = async (n) => await this.db.table(_.WIDGET).put({
3860
3860
  id: n.id,
3861
3861
  name: n.title,
3862
3862
  dashboard_id: n.dashboard_id,
@@ -3869,7 +3869,7 @@ class Mr {
3869
3869
  })).catch((i) => (console.error(
3870
3870
  "%cstorage",
3871
3871
  c.STORAGE,
3872
- O.WIDGET,
3872
+ _.WIDGET,
3873
3873
  n,
3874
3874
  i.message
3875
3875
  ), {
@@ -3884,7 +3884,7 @@ class Mr {
3884
3884
  */
3885
3885
  subscribe = (n) => (n = Ia(n), this.subscribers.filter(
3886
3886
  (l) => l.widget === n.widget
3887
- ).length > 0 || (n.type === O.MESSAGES && (n = St(this.options, n)), console.info(
3887
+ ).length > 0 || (n.type === _.MESSAGES && (n = St(this.options, n)), console.info(
3888
3888
  "%cstorage%c %csubscribe",
3889
3889
  c.STORAGE,
3890
3890
  c.NONE,
@@ -3909,7 +3909,7 @@ class Mr {
3909
3909
  * @returns IResponse
3910
3910
  */
3911
3911
  getSlide = async (n) => {
3912
- const i = await this.db.table(O.SLIDE).where({ id: n.id }).last().catch(() => {
3912
+ const i = await this.db.table(_.SLIDE).where({ id: n.id }).last().catch(() => {
3913
3913
  K(2, ["%cstorage", c.STORAGE, J.SLIDE_LOAD, n.id]);
3914
3914
  });
3915
3915
  return {
@@ -3925,12 +3925,12 @@ class Mr {
3925
3925
  * @returns IResponse
3926
3926
  */
3927
3927
  getSlides = async (n) => {
3928
- const i = (C) => n?.id ? n.id = C.id : !1, l = (C) => n?.name ? C.name.includes(n?.name) : !1, _ = await this.db.table(O.SLIDE).toArray().then((C) => n?.id ? C.filter(i) : C).then((C) => n?.name ? C.filter(l) : C);
3929
- return _ !== void 0 && K(3, ["%cstorage%c %cslides", c.STORAGE, c.NONE, c.SLIDE, n]), {
3928
+ const i = (C) => n?.id ? n.id = C.id : !1, l = (C) => n?.name ? C.name.includes(n?.name) : !1, O = await this.db.table(_.SLIDE).toArray().then((C) => n?.id ? C.filter(i) : C).then((C) => n?.name ? C.filter(l) : C);
3929
+ return O !== void 0 && K(3, ["%cstorage%c %cslides", c.STORAGE, c.NONE, c.SLIDE, n]), {
3930
3930
  // @ts-ignore
3931
- data: _ !== void 0 ? { slides: _, query: n } : null,
3932
- message: _ !== void 0 ? "Slides loaded from storage" : "Slides load error",
3933
- success: _ !== void 0
3931
+ data: O !== void 0 ? { slides: O, query: n } : null,
3932
+ message: O !== void 0 ? "Slides loaded from storage" : "Slides load error",
3933
+ success: O !== void 0
3934
3934
  };
3935
3935
  };
3936
3936
  /**
@@ -3938,7 +3938,7 @@ class Mr {
3938
3938
  * @param query IQuery
3939
3939
  * @returns number
3940
3940
  */
3941
- setSlide = async (n) => await this.db.table(O.SLIDE).put({
3941
+ setSlide = async (n) => await this.db.table(_.SLIDE).put({
3942
3942
  id: n.data.id,
3943
3943
  presentation_id: n.data.presentation_id,
3944
3944
  order_index: n.data.order_index,
@@ -3967,7 +3967,7 @@ class Mr {
3967
3967
  * @returns IResponse
3968
3968
  */
3969
3969
  getPresentation = async (n) => {
3970
- const i = await this.db.table(O.PRESENTATION).where({ id: n.id }).last().catch(() => {
3970
+ const i = await this.db.table(_.PRESENTATION).where({ id: n.id }).last().catch(() => {
3971
3971
  console.warn(
3972
3972
  "%cstorage ",
3973
3973
  c.STORAGE,
@@ -3987,7 +3987,7 @@ class Mr {
3987
3987
  * @returns IResponse
3988
3988
  */
3989
3989
  getPresentations = async (n) => {
3990
- const i = (_) => n?.name ? _.name.includes(n?.name) : !1, E = await this.db.table(O.PRESENTATION).toArray().then((_) => n?.name ? _.filter(i) : _);
3990
+ const i = (O) => n?.name ? O.name.includes(n?.name) : !1, E = await this.db.table(_.PRESENTATION).toArray().then((O) => n?.name ? O.filter(i) : O);
3991
3991
  return E !== void 0 && K(3, [
3992
3992
  "%cstorage%c %cpresentations",
3993
3993
  c.STORAGE,
@@ -4006,7 +4006,7 @@ class Mr {
4006
4006
  * @param query IQuery
4007
4007
  * @returns number
4008
4008
  */
4009
- setPresentation = async (n) => await this.db.table(O.PRESENTATION).put({
4009
+ setPresentation = async (n) => await this.db.table(_.PRESENTATION).put({
4010
4010
  id: n.data.id,
4011
4011
  name: n.data.name || "Not set",
4012
4012
  data: n.data,
@@ -4032,7 +4032,7 @@ class Mr {
4032
4032
  * @returns IResponse
4033
4033
  */
4034
4034
  getPreference = async (n) => {
4035
- const i = await this.db.table(O.PREFERENCE).where({ id: n.id }).last().catch(() => {
4035
+ const i = await this.db.table(_.PREFERENCE).where({ id: n.id }).last().catch(() => {
4036
4036
  K(2, [
4037
4037
  "%cstorage",
4038
4038
  c.STORAGE,
@@ -4053,7 +4053,7 @@ class Mr {
4053
4053
  * @returns IResponse
4054
4054
  */
4055
4055
  getPreferences = async (n) => {
4056
- const i = (_) => n?.id ? n.id = _.id : !1, E = await this.db.table(O.SLIDE).toArray().then((_) => n?.id ? _.filter(i) : _);
4056
+ const i = (O) => n?.id ? n.id = O.id : !1, E = await this.db.table(_.SLIDE).toArray().then((O) => n?.id ? O.filter(i) : O);
4057
4057
  return E !== void 0 && K(3, [
4058
4058
  "%cstorage%c %cpreferences",
4059
4059
  c.STORAGE,
@@ -4072,7 +4072,7 @@ class Mr {
4072
4072
  * @param preference IPreference
4073
4073
  * @returns number
4074
4074
  */
4075
- setPreference = async (n) => await this.db.table(O.PREFERENCE).put({
4075
+ setPreference = async (n) => await this.db.table(_.PREFERENCE).put({
4076
4076
  id: n.id,
4077
4077
  value: n.value
4078
4078
  }).then(() => ({
@@ -4100,7 +4100,7 @@ function Ga(p, n) {
4100
4100
  const i = indexedDB.open(p);
4101
4101
  i.onupgradeneeded = () => i.result.createObjectStore(n);
4102
4102
  const l = Hn(i);
4103
- return (E, _) => l.then((C) => _(C.transaction(n, E).objectStore(n)));
4103
+ return (E, O) => l.then((C) => O(C.transaction(n, E).objectStore(n)));
4104
4104
  }
4105
4105
  let Un;
4106
4106
  function Kr() {
@@ -4120,15 +4120,15 @@ class Gr {
4120
4120
  }
4121
4121
  getCloud = async (n) => {
4122
4122
  const i = Y(n);
4123
- return await _e(i).then((l) => l).catch(() => (console.warn("%capi", c.API, O.CLOUD, n.slide, n.widget), { data: null, message: "Cloud Data error", success: !1 }));
4123
+ return await _e(i).then((l) => l).catch(() => (console.warn("%capi", c.API, _.CLOUD, n.slide, n.widget), { data: null, message: "Cloud Data error", success: !1 }));
4124
4124
  };
4125
4125
  getSeries = async (n) => {
4126
4126
  const i = Y(n);
4127
- return await _e(i).then((l) => l).catch(() => (console.warn("%capi", c.API, O.SERIES, n.slide, n.widget), { data: null, message: "Series Data error", success: !1 }));
4127
+ return await _e(i).then((l) => l).catch(() => (console.warn("%capi", c.API, _.SERIES, n.slide, n.widget), { data: null, message: "Series Data error", success: !1 }));
4128
4128
  };
4129
4129
  getMessages = async (n) => {
4130
4130
  const i = Y(n);
4131
- return await _e(i).then((l) => l).catch(() => (console.warn("%capi", c.API, O.MESSAGES, n.slide, n.widget), { data: null, message: "Messages Data error", success: !1 }));
4131
+ return await _e(i).then((l) => l).catch(() => (console.warn("%capi", c.API, _.MESSAGES, n.slide, n.widget), { data: null, message: "Messages Data error", success: !1 }));
4132
4132
  };
4133
4133
  /**
4134
4134
  * Update Cloud
@@ -4143,7 +4143,7 @@ class Gr {
4143
4143
  return delete i.success, delete i.message, await ke(l, i).then(() => 201).catch((E) => (console.error(
4144
4144
  "%cstorage",
4145
4145
  c.STORAGE,
4146
- O.CLOUD,
4146
+ _.CLOUD,
4147
4147
  n,
4148
4148
  E.message
4149
4149
  ), 400));
@@ -4161,7 +4161,7 @@ class Gr {
4161
4161
  return delete i.success, delete i.message, await ke(l, i).then(() => 201).catch((E) => (console.error(
4162
4162
  "%cstorage",
4163
4163
  c.STORAGE,
4164
- O.SERIES,
4164
+ _.SERIES,
4165
4165
  n,
4166
4166
  E.message
4167
4167
  ), 400));
@@ -4179,7 +4179,7 @@ class Gr {
4179
4179
  return delete i.success, delete i.message, await ke(l, i).then(() => 201).catch((E) => (console.error(
4180
4180
  "%cstorage",
4181
4181
  c.STORAGE,
4182
- O.MESSAGES,
4182
+ _.MESSAGES,
4183
4183
  n,
4184
4184
  E.message
4185
4185
  ), 400));
@@ -4192,7 +4192,7 @@ class Gr {
4192
4192
  };
4193
4193
  getDashboard = async (n) => {
4194
4194
  const i = Y(n);
4195
- return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", c.API, O.SLIDE, n.id), {
4195
+ return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", c.API, _.SLIDE, n.id), {
4196
4196
  data: null,
4197
4197
  message: `Widget ${n.data.id} load error: ${l.message}`,
4198
4198
  success: !1
@@ -4220,7 +4220,7 @@ class Gr {
4220
4220
  })).catch((E) => (console.error(
4221
4221
  "%cstorage",
4222
4222
  c.STORAGE,
4223
- O.WIDGET,
4223
+ _.WIDGET,
4224
4224
  n,
4225
4225
  E.message
4226
4226
  ), {
@@ -4231,13 +4231,13 @@ class Gr {
4231
4231
  };
4232
4232
  getWidget = async (n) => {
4233
4233
  const i = Y(n);
4234
- return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", c.API, O.SLIDE, n.id), {
4234
+ return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", c.API, _.SLIDE, n.id), {
4235
4235
  data: null,
4236
4236
  message: `Widget ${n.data.id} load error: ${l.message}`,
4237
4237
  success: !1
4238
4238
  }));
4239
4239
  };
4240
- getWidgets = async (n) => (console.warn("%capi", c.API, O.SLIDE, n?.presentation), {
4240
+ getWidgets = async (n) => (console.warn("%capi", c.API, _.SLIDE, n?.presentation), {
4241
4241
  data: null,
4242
4242
  message: "Widgets load error: ",
4243
4243
  success: !1
@@ -4261,7 +4261,7 @@ class Gr {
4261
4261
  })).catch((E) => (console.error(
4262
4262
  "%cstorage",
4263
4263
  c.STORAGE,
4264
- O.WIDGET,
4264
+ _.WIDGET,
4265
4265
  n,
4266
4266
  E.message
4267
4267
  ), {
@@ -4275,7 +4275,7 @@ class Gr {
4275
4275
  * @param query IQuery
4276
4276
  * @returns null
4277
4277
  */
4278
- subscribe = (n) => (n.type === O.MESSAGES && (n = St(this.options, n)), this.subscribers.filter(
4278
+ subscribe = (n) => (n.type === _.MESSAGES && (n = St(this.options, n)), this.subscribers.filter(
4279
4279
  (l) => l.widget === n.widget
4280
4280
  ).length > 0 || (console.debug(
4281
4281
  "%cstorage%c %csubscribe",
@@ -4292,13 +4292,13 @@ class Gr {
4292
4292
  getSubscribers = async () => await new Promise((n) => n(this.subscribers));
4293
4293
  getSlide = async (n) => {
4294
4294
  const i = Y(n);
4295
- return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", c.API, O.SLIDE, n.id), {
4295
+ return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", c.API, _.SLIDE, n.id), {
4296
4296
  data: null,
4297
4297
  message: `Slide ${n.data.id} load error: ${l.message}`,
4298
4298
  success: !1
4299
4299
  }));
4300
4300
  };
4301
- getSlides = async (n) => (console.warn("%capi", c.API, O.SLIDE, n.presentation), {
4301
+ getSlides = async (n) => (console.warn("%capi", c.API, _.SLIDE, n.presentation), {
4302
4302
  data: null,
4303
4303
  message: `Slided ${n.presentation} load error: `,
4304
4304
  success: !1
@@ -4322,7 +4322,7 @@ class Gr {
4322
4322
  })).catch((E) => (console.error(
4323
4323
  "%cstorage",
4324
4324
  c.STORAGE,
4325
- O.SLIDE,
4325
+ _.SLIDE,
4326
4326
  n,
4327
4327
  E.message
4328
4328
  ), {
@@ -4333,7 +4333,7 @@ class Gr {
4333
4333
  };
4334
4334
  getPresentation = async (n) => {
4335
4335
  const i = Y(n);
4336
- return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", c.API, O.PRESENTATION, n.id), {
4336
+ return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", c.API, _.PRESENTATION, n.id), {
4337
4337
  data: null,
4338
4338
  message: `Slide ${n.data.id} load error: ${l.message}`,
4339
4339
  success: !1
@@ -4358,7 +4358,7 @@ class Gr {
4358
4358
  })).catch((E) => (console.error(
4359
4359
  "%cstorage",
4360
4360
  c.STORAGE,
4361
- O.PRESENTATION,
4361
+ _.PRESENTATION,
4362
4362
  n,
4363
4363
  E.message
4364
4364
  ), {
@@ -4367,12 +4367,12 @@ class Gr {
4367
4367
  success: !1
4368
4368
  }));
4369
4369
  };
4370
- getPreference = async (n) => await _e(`${O.PREFERENCE}.${n.id}`).then((i) => i).catch((i) => (console.warn("%capi", c.API, O.PREFERENCE, n.id), {
4370
+ getPreference = async (n) => await _e(`${_.PREFERENCE}.${n.id}`).then((i) => i).catch((i) => (console.warn("%capi", c.API, _.PREFERENCE, n.id), {
4371
4371
  data: null,
4372
4372
  message: `Preference ${n.id} get error: ${i.message}`,
4373
4373
  success: !1
4374
4374
  }));
4375
- getPreferences = async () => await _e(`${O.PREFERENCE}`).then((n) => n).catch((n) => (console.warn("%capi", c.API, O.PREFERENCE), {
4375
+ getPreferences = async () => await _e(`${_.PREFERENCE}`).then((n) => n).catch((n) => (console.warn("%capi", c.API, _.PREFERENCE), {
4376
4376
  data: null,
4377
4377
  message: `Preferences get error: ${n.message}`,
4378
4378
  success: !1
@@ -4382,14 +4382,14 @@ class Gr {
4382
4382
  * @param preference IPreference
4383
4383
  * @returns number
4384
4384
  */
4385
- setPreference = async (n) => await ke(`${O.PREFERENCE}.${n.id}`, n.value).then(() => ({
4385
+ setPreference = async (n) => await ke(`${_.PREFERENCE}.${n.id}`, n.value).then(() => ({
4386
4386
  data: null,
4387
4387
  message: `Preference ${n.id} save error`,
4388
4388
  success: !0
4389
4389
  })).catch((i) => (console.error(
4390
4390
  "%cstorage",
4391
4391
  c.STORAGE,
4392
- O.PREFERENCE,
4392
+ _.PREFERENCE,
4393
4393
  n,
4394
4394
  i.message
4395
4395
  ), {
@@ -4417,7 +4417,7 @@ class Br {
4417
4417
  return console.warn(
4418
4418
  "%capi",
4419
4419
  c.API,
4420
- O.CLOUD,
4420
+ _.CLOUD,
4421
4421
  n.slide,
4422
4422
  n.widget,
4423
4423
  l
@@ -4432,7 +4432,7 @@ class Br {
4432
4432
  return console.warn(
4433
4433
  "%capi",
4434
4434
  c.API,
4435
- O.SERIES,
4435
+ _.SERIES,
4436
4436
  n.slide,
4437
4437
  n.widget,
4438
4438
  l
@@ -4447,7 +4447,7 @@ class Br {
4447
4447
  return console.warn(
4448
4448
  "%capi",
4449
4449
  c.API,
4450
- O.MESSAGES,
4450
+ _.MESSAGES,
4451
4451
  n.slide,
4452
4452
  n.widget,
4453
4453
  l
@@ -4465,7 +4465,7 @@ class Br {
4465
4465
  try {
4466
4466
  return localStorage.setObject(l, i), 201;
4467
4467
  } catch (E) {
4468
- return console.error("%cstorage", c.STORAGE, O.CLOUD, n, E), 400;
4468
+ return console.error("%cstorage", c.STORAGE, _.CLOUD, n, E), 400;
4469
4469
  }
4470
4470
  };
4471
4471
  /**
@@ -4479,7 +4479,7 @@ class Br {
4479
4479
  try {
4480
4480
  return localStorage.setObject(l, i), 201;
4481
4481
  } catch (E) {
4482
- return console.error("%cstorage", c.STORAGE, O.SERIES, n, E), 400;
4482
+ return console.error("%cstorage", c.STORAGE, _.SERIES, n, E), 400;
4483
4483
  }
4484
4484
  };
4485
4485
  /**
@@ -4493,7 +4493,7 @@ class Br {
4493
4493
  try {
4494
4494
  return localStorage.setObject(l, i), 200;
4495
4495
  } catch (E) {
4496
- return console.error("%cstorage", c.STORAGE, O.MESSAGES, n, E), 400;
4496
+ return console.error("%cstorage", c.STORAGE, _.MESSAGES, n, E), 400;
4497
4497
  }
4498
4498
  };
4499
4499
  cleanMessages = async (n) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((i) => i(0)));
@@ -4504,9 +4504,9 @@ class Br {
4504
4504
  };
4505
4505
  getDashboard = async (n) => {
4506
4506
  try {
4507
- return localStorage.getObject(`${O.DASHBOARD}.${n.id}`);
4507
+ return localStorage.getObject(`${_.DASHBOARD}.${n.id}`);
4508
4508
  } catch (i) {
4509
- return console.warn("%capi", c.API, O.SLIDE, n.id, i), {
4509
+ return console.warn("%capi", c.API, _.SLIDE, n.id, i), {
4510
4510
  data: null,
4511
4511
  message: `Dashboard ${n.id} load error: ${i.message}`,
4512
4512
  success: !1
@@ -4519,7 +4519,7 @@ class Br {
4519
4519
  success: !1
4520
4520
  });
4521
4521
  setDashboard = async (n) => {
4522
- const i = `${O.DASHBOARD}.${n.dashboard}`;
4522
+ const i = `${_.DASHBOARD}.${n.dashboard}`;
4523
4523
  try {
4524
4524
  return localStorage.setObject(i, n), {
4525
4525
  data: null,
@@ -4527,7 +4527,7 @@ class Br {
4527
4527
  success: !0
4528
4528
  };
4529
4529
  } catch (l) {
4530
- return console.error("%cstorage", c.STORAGE, O.WIDGET, n, l), {
4530
+ return console.error("%cstorage", c.STORAGE, _.WIDGET, n, l), {
4531
4531
  data: null,
4532
4532
  message: `Dashboard ${n.data.id} save error: ${l.message}`,
4533
4533
  success: !1
@@ -4536,9 +4536,9 @@ class Br {
4536
4536
  };
4537
4537
  getWidget = async (n) => {
4538
4538
  try {
4539
- return localStorage.getObject(`${O.WIDGET}.${n.id}`);
4539
+ return localStorage.getObject(`${_.WIDGET}.${n.id}`);
4540
4540
  } catch (i) {
4541
- return console.warn("%capi", c.API, O.SLIDE, n.id, i), {
4541
+ return console.warn("%capi", c.API, _.SLIDE, n.id, i), {
4542
4542
  data: null,
4543
4543
  message: `Widget ${n.id} load error: ${i.message}`,
4544
4544
  success: !1
@@ -4559,7 +4559,7 @@ class Br {
4559
4559
  success: !0
4560
4560
  };
4561
4561
  } catch (l) {
4562
- return console.error("%cstorage", c.STORAGE, O.WIDGET, n, l), {
4562
+ return console.error("%cstorage", c.STORAGE, _.WIDGET, n, l), {
4563
4563
  data: null,
4564
4564
  message: `Widget ${n.data.id} save error: ${l.message}`,
4565
4565
  success: !1
@@ -4571,7 +4571,7 @@ class Br {
4571
4571
  * @param query IQuery
4572
4572
  * @returns null
4573
4573
  */
4574
- subscribe = (n) => (n.type === O.MESSAGES && (n = St(this.options, n)), this.subscribers.filter(
4574
+ subscribe = (n) => (n.type === _.MESSAGES && (n = St(this.options, n)), this.subscribers.filter(
4575
4575
  (l) => l.widget === n.widget
4576
4576
  ).length || (console.debug(
4577
4577
  "%cstorage%c %csubscribe",
@@ -4588,9 +4588,9 @@ class Br {
4588
4588
  getSubscribers = async () => await new Promise((n) => n(this.subscribers));
4589
4589
  getSlide = async (n) => {
4590
4590
  try {
4591
- return localStorage.getObject(`${O.SLIDE}.${n.id}`);
4591
+ return localStorage.getObject(`${_.SLIDE}.${n.id}`);
4592
4592
  } catch (i) {
4593
- return console.warn("%capi", c.API, O.SLIDE, n.id, i), {
4593
+ return console.warn("%capi", c.API, _.SLIDE, n.id, i), {
4594
4594
  data: null,
4595
4595
  message: `Slide ${n.id} load error: ${i.message}`,
4596
4596
  success: !1
@@ -4599,9 +4599,9 @@ class Br {
4599
4599
  };
4600
4600
  getSlides = async (n) => {
4601
4601
  try {
4602
- return localStorage.getObject(`${O.SLIDE}.${n.id}`);
4602
+ return localStorage.getObject(`${_.SLIDE}.${n.id}`);
4603
4603
  } catch (i) {
4604
- return console.warn("%capi", c.API, O.SLIDE, n.id, i), {
4604
+ return console.warn("%capi", c.API, _.SLIDE, n.id, i), {
4605
4605
  data: null,
4606
4606
  message: `Slide ${n.id} load error: ${i.message}`,
4607
4607
  success: !1
@@ -4610,7 +4610,7 @@ class Br {
4610
4610
  };
4611
4611
  setSlide = async (n) => {
4612
4612
  try {
4613
- return localStorage.setObject(`${O.SLIDE}.${n.data.id}`, {
4613
+ return localStorage.setObject(`${_.SLIDE}.${n.data.id}`, {
4614
4614
  id: n.data.id,
4615
4615
  title: n.data.title || "Not set",
4616
4616
  json: n.data.json || {},
@@ -4621,7 +4621,7 @@ class Br {
4621
4621
  success: !0
4622
4622
  };
4623
4623
  } catch (i) {
4624
- return console.error("%cstorage", c.STORAGE, O.SLIDE, n, i), {
4624
+ return console.error("%cstorage", c.STORAGE, _.SLIDE, n, i), {
4625
4625
  data: null,
4626
4626
  message: `Slide ${n.data.id} save error: ${i.message}`,
4627
4627
  success: !1
@@ -4630,9 +4630,9 @@ class Br {
4630
4630
  };
4631
4631
  getPresentation = async (n) => {
4632
4632
  try {
4633
- return localStorage.getObject(`${O.PRESENTATION}.${n.presentation}`);
4633
+ return localStorage.getObject(`${_.PRESENTATION}.${n.presentation}`);
4634
4634
  } catch (i) {
4635
- return console.warn("%capi", c.API, O.PRESENTATION, n.presentation, i), {
4635
+ return console.warn("%capi", c.API, _.PRESENTATION, n.presentation, i), {
4636
4636
  data: null,
4637
4637
  message: `Presentations ${n.id} load error: ${i.message}`,
4638
4638
  success: !1
@@ -4641,9 +4641,9 @@ class Br {
4641
4641
  };
4642
4642
  getPresentations = async () => {
4643
4643
  try {
4644
- return localStorage.getObject(`${O.PRESENTATION}.`);
4644
+ return localStorage.getObject(`${_.PRESENTATION}.`);
4645
4645
  } catch (n) {
4646
- return console.warn("%capi", c.API, O.PRESENTATION, n), {
4646
+ return console.warn("%capi", c.API, _.PRESENTATION, n), {
4647
4647
  data: null,
4648
4648
  message: `Presentations get error: ${n.message}`,
4649
4649
  success: !1
@@ -4652,13 +4652,13 @@ class Br {
4652
4652
  };
4653
4653
  setPresentation = async (n) => {
4654
4654
  try {
4655
- return localStorage.setObject(`${O.PRESENTATION}.${n.data.id}`, n.data), {
4655
+ return localStorage.setObject(`${_.PRESENTATION}.${n.data.id}`, n.data), {
4656
4656
  data: null,
4657
4657
  message: `Presentation ${n.data.id} saved to storage`,
4658
4658
  success: !0
4659
4659
  };
4660
4660
  } catch (i) {
4661
- return console.error("%cstorage", c.STORAGE, O.PRESENTATION, n, i), {
4661
+ return console.error("%cstorage", c.STORAGE, _.PRESENTATION, n, i), {
4662
4662
  data: null,
4663
4663
  message: `Presentation ${n.data.id} save error: ${i.message}`,
4664
4664
  success: !1
@@ -4667,9 +4667,9 @@ class Br {
4667
4667
  };
4668
4668
  getPreference = async (n) => {
4669
4669
  try {
4670
- return localStorage.getObject(`${O.PREFERENCE}.${n.id}`);
4670
+ return localStorage.getObject(`${_.PREFERENCE}.${n.id}`);
4671
4671
  } catch (i) {
4672
- return console.warn("%capi", c.API, O.PREFERENCE, n.id, i), {
4672
+ return console.warn("%capi", c.API, _.PREFERENCE, n.id, i), {
4673
4673
  data: null,
4674
4674
  message: `Preference ${n.id} load error: ${i.message}`,
4675
4675
  success: !1
@@ -4678,9 +4678,9 @@ class Br {
4678
4678
  };
4679
4679
  getPreferences = async () => {
4680
4680
  try {
4681
- return localStorage.getObject(`${O.PREFERENCE}.`);
4681
+ return localStorage.getObject(`${_.PREFERENCE}.`);
4682
4682
  } catch (n) {
4683
- return console.warn("%capi", c.API, O.PREFERENCE, n), {
4683
+ return console.warn("%capi", c.API, _.PREFERENCE, n), {
4684
4684
  data: null,
4685
4685
  message: `Preference get error: ${n.message}`,
4686
4686
  success: !1
@@ -4690,7 +4690,7 @@ class Br {
4690
4690
  setPreference = async (n) => {
4691
4691
  try {
4692
4692
  return localStorage.setObject(
4693
- `${O.PREFERENCE}.${n.id}`,
4693
+ `${_.PREFERENCE}.${n.id}`,
4694
4694
  n.value
4695
4695
  ), {
4696
4696
  data: null,
@@ -4701,7 +4701,7 @@ class Br {
4701
4701
  return console.error(
4702
4702
  "%cstorage",
4703
4703
  c.STORAGE,
4704
- O.PREFERENCE,
4704
+ _.PREFERENCE,
4705
4705
  n,
4706
4706
  i
4707
4707
  ), {
@@ -4731,7 +4731,7 @@ class Lr {
4731
4731
  return console.warn(
4732
4732
  "%capi",
4733
4733
  c.API,
4734
- O.CLOUD,
4734
+ _.CLOUD,
4735
4735
  n.slide,
4736
4736
  n.widget,
4737
4737
  l
@@ -4746,7 +4746,7 @@ class Lr {
4746
4746
  return console.warn(
4747
4747
  "%capi",
4748
4748
  c.API,
4749
- O.SERIES,
4749
+ _.SERIES,
4750
4750
  n.slide,
4751
4751
  n.widget,
4752
4752
  l
@@ -4761,7 +4761,7 @@ class Lr {
4761
4761
  return console.warn(
4762
4762
  "%capi",
4763
4763
  c.API,
4764
- O.MESSAGES,
4764
+ _.MESSAGES,
4765
4765
  n.slide,
4766
4766
  n.widget,
4767
4767
  l
@@ -4779,7 +4779,7 @@ class Lr {
4779
4779
  try {
4780
4780
  return sessionStorage.setObject(l, i), 201;
4781
4781
  } catch (E) {
4782
- return console.error("%cstorage", c.STORAGE, O.CLOUD, n, E), 400;
4782
+ return console.error("%cstorage", c.STORAGE, _.CLOUD, n, E), 400;
4783
4783
  }
4784
4784
  };
4785
4785
  /**
@@ -4793,7 +4793,7 @@ class Lr {
4793
4793
  try {
4794
4794
  return sessionStorage.setObject(l, i), 201;
4795
4795
  } catch (E) {
4796
- return console.error("%cstorage", c.STORAGE, O.SERIES, n, E), 400;
4796
+ return console.error("%cstorage", c.STORAGE, _.SERIES, n, E), 400;
4797
4797
  }
4798
4798
  };
4799
4799
  /**
@@ -4807,7 +4807,7 @@ class Lr {
4807
4807
  try {
4808
4808
  return sessionStorage.setObject(l, i), 200;
4809
4809
  } catch (E) {
4810
- return console.error("%cstorage", c.STORAGE, O.MESSAGES, n, E), 400;
4810
+ return console.error("%cstorage", c.STORAGE, _.MESSAGES, n, E), 400;
4811
4811
  }
4812
4812
  };
4813
4813
  cleanMessages = async (n) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((i) => i(0)));
@@ -4818,9 +4818,9 @@ class Lr {
4818
4818
  };
4819
4819
  getDashboard = async (n) => {
4820
4820
  try {
4821
- return sessionStorage.getObject(`${O.DASHBOARD}.${n.id}`);
4821
+ return sessionStorage.getObject(`${_.DASHBOARD}.${n.id}`);
4822
4822
  } catch (i) {
4823
- return console.warn("%capi", c.API, O.SLIDE, n.id, i), {
4823
+ return console.warn("%capi", c.API, _.SLIDE, n.id, i), {
4824
4824
  data: null,
4825
4825
  message: `Dashboard ${n.id} load error: ${i.message}`,
4826
4826
  success: !1
@@ -4833,7 +4833,7 @@ class Lr {
4833
4833
  success: !1
4834
4834
  });
4835
4835
  setDashboard = async (n) => {
4836
- const i = `${O.DASHBOARD}.${n.dashboard}`;
4836
+ const i = `${_.DASHBOARD}.${n.dashboard}`;
4837
4837
  try {
4838
4838
  return sessionStorage.setObject(i, n), {
4839
4839
  data: null,
@@ -4841,7 +4841,7 @@ class Lr {
4841
4841
  success: !0
4842
4842
  };
4843
4843
  } catch (l) {
4844
- return console.error("%cstorage", c.STORAGE, O.WIDGET, n, l), {
4844
+ return console.error("%cstorage", c.STORAGE, _.WIDGET, n, l), {
4845
4845
  data: null,
4846
4846
  message: `Dashboard ${n.data.id} save error: ${l.message}`,
4847
4847
  success: !1
@@ -4850,9 +4850,9 @@ class Lr {
4850
4850
  };
4851
4851
  getWidget = async (n) => {
4852
4852
  try {
4853
- return sessionStorage.getObject(`${O.WIDGET}.${n.id}`);
4853
+ return sessionStorage.getObject(`${_.WIDGET}.${n.id}`);
4854
4854
  } catch (i) {
4855
- return console.warn("%capi", c.API, O.SLIDE, n.id, i), {
4855
+ return console.warn("%capi", c.API, _.SLIDE, n.id, i), {
4856
4856
  data: null,
4857
4857
  message: `Widget ${n.id} load error: ${i.message}`,
4858
4858
  success: !1
@@ -4873,7 +4873,7 @@ class Lr {
4873
4873
  success: !0
4874
4874
  };
4875
4875
  } catch (l) {
4876
- return console.error("%cstorage", c.STORAGE, O.WIDGET, n, l), {
4876
+ return console.error("%cstorage", c.STORAGE, _.WIDGET, n, l), {
4877
4877
  data: null,
4878
4878
  message: `Slide ${n.data.id} save error: ${l.message}`,
4879
4879
  success: !1
@@ -4885,7 +4885,7 @@ class Lr {
4885
4885
  * @param query IQuery
4886
4886
  * @returns null
4887
4887
  */
4888
- subscribe = (n) => (n.type === O.MESSAGES && (n = St(this.options, n)), this.subscribers.filter(
4888
+ subscribe = (n) => (n.type === _.MESSAGES && (n = St(this.options, n)), this.subscribers.filter(
4889
4889
  (l) => l.widget === n.widget
4890
4890
  ).length || (console.debug(
4891
4891
  "%cstorage%c %csubscribe",
@@ -4902,9 +4902,9 @@ class Lr {
4902
4902
  getSubscribers = async () => await new Promise((n) => n(this.subscribers));
4903
4903
  getSlide = async (n) => {
4904
4904
  try {
4905
- return sessionStorage.getObject(`${O.SLIDE}.${n.id}`);
4905
+ return sessionStorage.getObject(`${_.SLIDE}.${n.id}`);
4906
4906
  } catch (i) {
4907
- return console.warn("%capi", c.API, O.SLIDE, n.id, i), {
4907
+ return console.warn("%capi", c.API, _.SLIDE, n.id, i), {
4908
4908
  data: null,
4909
4909
  message: `Slide ${n.id} load error: ${i.message}`,
4910
4910
  success: !1
@@ -4913,9 +4913,9 @@ class Lr {
4913
4913
  };
4914
4914
  getSlides = async (n) => {
4915
4915
  try {
4916
- return sessionStorage.getObject(`${O.SLIDE}.${n.id}`);
4916
+ return sessionStorage.getObject(`${_.SLIDE}.${n.id}`);
4917
4917
  } catch (i) {
4918
- return console.warn("%capi", c.API, O.SLIDE, n.id, i), {
4918
+ return console.warn("%capi", c.API, _.SLIDE, n.id, i), {
4919
4919
  data: null,
4920
4920
  message: `Slide ${n.id} load error: ${i.message}`,
4921
4921
  success: !1
@@ -4929,7 +4929,7 @@ class Lr {
4929
4929
  */
4930
4930
  setSlide = async (n) => {
4931
4931
  try {
4932
- return sessionStorage.setObject(`${O.SLIDE}.${n.data.id}`, {
4932
+ return sessionStorage.setObject(`${_.SLIDE}.${n.data.id}`, {
4933
4933
  id: n.data.id,
4934
4934
  title: n.data.title || "Not set",
4935
4935
  json: n.data.json || {},
@@ -4940,7 +4940,7 @@ class Lr {
4940
4940
  success: !0
4941
4941
  };
4942
4942
  } catch (i) {
4943
- return console.error("%cstorage", c.STORAGE, O.SLIDE, n, i), {
4943
+ return console.error("%cstorage", c.STORAGE, _.SLIDE, n, i), {
4944
4944
  data: null,
4945
4945
  message: `Slide ${n.data.id} save error: ${i.message}`,
4946
4946
  success: !1
@@ -4949,9 +4949,9 @@ class Lr {
4949
4949
  };
4950
4950
  getPresentation = async (n) => {
4951
4951
  try {
4952
- return sessionStorage.getObject(`${O.PRESENTATION}.${n.presentation}`);
4952
+ return sessionStorage.getObject(`${_.PRESENTATION}.${n.presentation}`);
4953
4953
  } catch (i) {
4954
- return console.warn("%capi", c.API, O.PRESENTATION, n.presentation, i), {
4954
+ return console.warn("%capi", c.API, _.PRESENTATION, n.presentation, i), {
4955
4955
  data: null,
4956
4956
  message: `Presentation ${n.presentation} load error: ${i.message}`,
4957
4957
  success: !1
@@ -4960,9 +4960,9 @@ class Lr {
4960
4960
  };
4961
4961
  getPresentations = async () => {
4962
4962
  try {
4963
- return sessionStorage.getObject(`${O.PRESENTATION}.`);
4963
+ return sessionStorage.getObject(`${_.PRESENTATION}.`);
4964
4964
  } catch (n) {
4965
- return console.warn("%capi", c.API, O.PRESENTATION, n), {
4965
+ return console.warn("%capi", c.API, _.PRESENTATION, n), {
4966
4966
  data: null,
4967
4967
  message: `Presentations get error: ${n.message}`,
4968
4968
  success: !1
@@ -4971,13 +4971,13 @@ class Lr {
4971
4971
  };
4972
4972
  setPresentation = async (n) => {
4973
4973
  try {
4974
- return sessionStorage.setObject(`${O.PRESENTATION}.${n.data.id}`, n.data), {
4974
+ return sessionStorage.setObject(`${_.PRESENTATION}.${n.data.id}`, n.data), {
4975
4975
  data: null,
4976
4976
  message: `Presentation ${n.data.id} saved to storage`,
4977
4977
  success: !0
4978
4978
  };
4979
4979
  } catch (i) {
4980
- return console.error("%cstorage", c.STORAGE, O.PRESENTATION, n, i), {
4980
+ return console.error("%cstorage", c.STORAGE, _.PRESENTATION, n, i), {
4981
4981
  data: null,
4982
4982
  message: `Presentation ${n.data.id} save error: ${i.message}`,
4983
4983
  success: !1
@@ -4986,9 +4986,9 @@ class Lr {
4986
4986
  };
4987
4987
  getPreference = async (n) => {
4988
4988
  try {
4989
- return sessionStorage.getObject(`${O.PREFERENCE}.${n.id}`);
4989
+ return sessionStorage.getObject(`${_.PREFERENCE}.${n.id}`);
4990
4990
  } catch (i) {
4991
- return console.warn("%capi", c.API, O.PREFERENCE, n.id, i), {
4991
+ return console.warn("%capi", c.API, _.PREFERENCE, n.id, i), {
4992
4992
  data: null,
4993
4993
  message: `Preference ${n.id} load error: ${i.message}`,
4994
4994
  success: !1
@@ -4997,9 +4997,9 @@ class Lr {
4997
4997
  };
4998
4998
  getPreferences = async () => {
4999
4999
  try {
5000
- return sessionStorage.getObject(`${O.PREFERENCE}`);
5000
+ return sessionStorage.getObject(`${_.PREFERENCE}`);
5001
5001
  } catch (n) {
5002
- return console.warn("%capi", c.API, O.PREFERENCE, n), {
5002
+ return console.warn("%capi", c.API, _.PREFERENCE, n), {
5003
5003
  data: null,
5004
5004
  message: `Preferences get error: ${n.message}`,
5005
5005
  success: !1
@@ -5009,7 +5009,7 @@ class Lr {
5009
5009
  setPreference = async (n) => {
5010
5010
  try {
5011
5011
  return sessionStorage.setObject(
5012
- `${O.PREFERENCE}.${n.id}`,
5012
+ `${_.PREFERENCE}.${n.id}`,
5013
5013
  n.value
5014
5014
  ), {
5015
5015
  data: null,
@@ -5020,7 +5020,7 @@ class Lr {
5020
5020
  return console.error(
5021
5021
  "%cstorage",
5022
5022
  c.STORAGE,
5023
- O.PREFERENCE,
5023
+ _.PREFERENCE,
5024
5024
  n,
5025
5025
  i
5026
5026
  ), {
@@ -5045,7 +5045,7 @@ class Wr {
5045
5045
  return console.warn(
5046
5046
  "%capi",
5047
5047
  c.API,
5048
- O.CLOUD,
5048
+ _.CLOUD,
5049
5049
  n.slide,
5050
5050
  n.widget,
5051
5051
  l
@@ -5060,7 +5060,7 @@ class Wr {
5060
5060
  return console.warn(
5061
5061
  "%capi",
5062
5062
  c.API,
5063
- O.SERIES,
5063
+ _.SERIES,
5064
5064
  n.slide,
5065
5065
  n.widget,
5066
5066
  l
@@ -5075,7 +5075,7 @@ class Wr {
5075
5075
  return console.warn(
5076
5076
  "%capi",
5077
5077
  c.API,
5078
- O.MESSAGES,
5078
+ _.MESSAGES,
5079
5079
  n.slide,
5080
5080
  n.widget,
5081
5081
  l
@@ -5134,7 +5134,7 @@ class Wr {
5134
5134
  try {
5135
5135
  return window.BuzzCasting.DashboardData[n.id];
5136
5136
  } catch (i) {
5137
- return console.warn("%capi", c.API, O.DASHBOARD, n.id, i), {
5137
+ return console.warn("%capi", c.API, _.DASHBOARD, n.id, i), {
5138
5138
  data: null,
5139
5139
  message: `Dashboard ${n.id} load error: ${i.message}`,
5140
5140
  success: !1
@@ -5155,7 +5155,7 @@ class Wr {
5155
5155
  success: !0
5156
5156
  };
5157
5157
  } catch (l) {
5158
- return console.error("%cstorage", c.STORAGE, O.DASHBOARD, n, l), {
5158
+ return console.error("%cstorage", c.STORAGE, _.DASHBOARD, n, l), {
5159
5159
  data: null,
5160
5160
  message: `Dashboard ${n.data.id} save error: ${l.message}`,
5161
5161
  success: !1
@@ -5166,7 +5166,7 @@ class Wr {
5166
5166
  try {
5167
5167
  return window.BuzzCasting.WidgetData[n.id];
5168
5168
  } catch (i) {
5169
- return console.warn("%capi", c.API, O.WIDGET, n.id, i), {
5169
+ return console.warn("%capi", c.API, _.WIDGET, n.id, i), {
5170
5170
  data: null,
5171
5171
  message: `Widget ${n.id} load error: ${i.message}`,
5172
5172
  success: !1
@@ -5187,7 +5187,7 @@ class Wr {
5187
5187
  success: !0
5188
5188
  };
5189
5189
  } catch (l) {
5190
- return console.error("%cstorage", c.STORAGE, O.WIDGET, n, l), {
5190
+ return console.error("%cstorage", c.STORAGE, _.WIDGET, n, l), {
5191
5191
  data: null,
5192
5192
  message: `Slide ${n.data.id} save error: ${l.message}`,
5193
5193
  success: !1
@@ -5199,7 +5199,7 @@ class Wr {
5199
5199
  * @param query IQuery
5200
5200
  * @returns null
5201
5201
  */
5202
- subscribe = (n) => (n.type === O.MESSAGES && (n = St(this.options, n)), this.subscribers.filter(
5202
+ subscribe = (n) => (n.type === _.MESSAGES && (n = St(this.options, n)), this.subscribers.filter(
5203
5203
  (l) => l.widget === n.widget
5204
5204
  ).length || (console.debug(
5205
5205
  "%cstorage%c %csubscribe",
@@ -5218,7 +5218,7 @@ class Wr {
5218
5218
  try {
5219
5219
  return window.BuzzCasting.SlideData[n.id];
5220
5220
  } catch (i) {
5221
- return console.warn("%capi", c.API, O.SLIDE, n.id, i), {
5221
+ return console.warn("%capi", c.API, _.SLIDE, n.id, i), {
5222
5222
  data: null,
5223
5223
  message: `Slide ${n.id} load error: ${i.message}`,
5224
5224
  success: !1
@@ -5229,7 +5229,7 @@ class Wr {
5229
5229
  try {
5230
5230
  return window.BuzzCasting.SlideData.filter((i) => i.presentation_id === n.presentation);
5231
5231
  } catch (i) {
5232
- return console.warn("%capi", c.API, O.PRESENTATION, n.presentation_id, i), {
5232
+ return console.warn("%capi", c.API, _.PRESENTATION, n.presentation_id, i), {
5233
5233
  data: null,
5234
5234
  message: `Slides for presentation ${n.presentation} load error: ${i.message}`,
5235
5235
  success: !1
@@ -5249,7 +5249,7 @@ class Wr {
5249
5249
  success: !0
5250
5250
  };
5251
5251
  } catch (i) {
5252
- return console.error("%cstorage", c.STORAGE, O.SLIDE, n, i), {
5252
+ return console.error("%cstorage", c.STORAGE, _.SLIDE, n, i), {
5253
5253
  data: null,
5254
5254
  message: `Slide ${n.data.id} save error: ${i.message}`,
5255
5255
  success: !1
@@ -5261,7 +5261,7 @@ class Wr {
5261
5261
  const i = n.presentation || "none";
5262
5262
  return window.BuzzCasting.PresentationData[i];
5263
5263
  } catch (i) {
5264
- return console.warn("%capi", c.API, O.PRESENTATION, n.presentation, i), {
5264
+ return console.warn("%capi", c.API, _.PRESENTATION, n.presentation, i), {
5265
5265
  data: null,
5266
5266
  message: `Presentation ${n.presentation} load error: ${i.message}`,
5267
5267
  success: !1
@@ -5272,7 +5272,7 @@ class Wr {
5272
5272
  try {
5273
5273
  return window.BuzzCasting.PresentationData;
5274
5274
  } catch (n) {
5275
- return console.warn("%capi", c.API, O.PRESENTATION, n), {
5275
+ return console.warn("%capi", c.API, _.PRESENTATION, n), {
5276
5276
  data: null,
5277
5277
  message: `Presentations get error: ${n.message}`,
5278
5278
  success: !1
@@ -5287,7 +5287,7 @@ class Wr {
5287
5287
  success: !0
5288
5288
  };
5289
5289
  } catch (i) {
5290
- return console.error("%cstorage", c.STORAGE, O.PRESENTATION, n, i), {
5290
+ return console.error("%cstorage", c.STORAGE, _.PRESENTATION, n, i), {
5291
5291
  data: null,
5292
5292
  message: `Presentation ${n.data.id} save error: ${i.message}`,
5293
5293
  success: !1
@@ -5298,7 +5298,7 @@ class Wr {
5298
5298
  try {
5299
5299
  return window.BuzzCasting.Preferences[n.id];
5300
5300
  } catch (i) {
5301
- return console.warn("%capi", c.API, O.PREFERENCE, n.id, i), {
5301
+ return console.warn("%capi", c.API, _.PREFERENCE, n.id, i), {
5302
5302
  data: null,
5303
5303
  message: `Preference ${n.id} load error: ${i.message}`,
5304
5304
  success: !1
@@ -5309,7 +5309,7 @@ class Wr {
5309
5309
  try {
5310
5310
  return window.BuzzCasting.Preferences;
5311
5311
  } catch (n) {
5312
- return console.warn("%capi", c.API, O.PREFERENCE, n), {
5312
+ return console.warn("%capi", c.API, _.PREFERENCE, n), {
5313
5313
  data: null,
5314
5314
  message: `Preferences get error: ${n.message}`,
5315
5315
  success: !1
@@ -5327,7 +5327,7 @@ class Wr {
5327
5327
  return console.error(
5328
5328
  "%cstorage",
5329
5329
  c.STORAGE,
5330
- O.PREFERENCE,
5330
+ _.PREFERENCE,
5331
5331
  n,
5332
5332
  i
5333
5333
  ), {
@@ -5393,13 +5393,13 @@ class La {
5393
5393
  let i, l = 400;
5394
5394
  if (n.success === !0) {
5395
5395
  const E = this.subscribers[n.query.widget];
5396
- let _ = "";
5396
+ let O = "";
5397
5397
  switch (n.query.type) {
5398
- case O.MESSAGES:
5398
+ case _.MESSAGES:
5399
5399
  let C;
5400
5400
  C = n.data.messages.filter(
5401
5401
  (G) => G.id !== null
5402
- ), n.data.messages = C, _ = n.data.messages.length > 0 ? Fn(n.data.messages[0].utc) : "none", E?.hash && E.hash === _ ? (K(3, [
5402
+ ), n.data.messages = C, O = n.data.messages.length > 0 ? Fn(n.data.messages[0].utc) : "none", E?.hash && E.hash === O ? (K(3, [
5403
5403
  "%cload%c %cmessages%c %cno updates",
5404
5404
  c.OK,
5405
5405
  c.NONE,
@@ -5407,10 +5407,10 @@ class La {
5407
5407
  c.NONE,
5408
5408
  c.NO_UPDATES,
5409
5409
  n.query.widget
5410
- ]), K(4, ["%cmessages", c.MESSAGES, n]), l = 204) : (i = n, E.hash = _, l = await this.sm?.setMessages(n.query, n).then(async (G) => (G = 201, this.broadcastUpdate(G, n))));
5410
+ ]), K(4, ["%cmessages", c.MESSAGES, n]), l = 204) : (i = n, E.hash = O, l = await this.sm?.setMessages(n.query, n).then(async (G) => (G = 201, this.broadcastUpdate(G, n))));
5411
5411
  break;
5412
- case O.CLOUD:
5413
- _ = Fn(n.data.cloud), E?.hash && E.hash === _ ? (K(3, [
5412
+ case _.CLOUD:
5413
+ O = Fn(n.data.cloud), E?.hash && E.hash === O ? (K(3, [
5414
5414
  "%cload%c %ccloud%c %cno updates",
5415
5415
  c.OK,
5416
5416
  c.NONE,
@@ -5418,7 +5418,7 @@ class La {
5418
5418
  c.NONE,
5419
5419
  c.NO_UPDATES,
5420
5420
  n.query.widget
5421
- ]), K(4, ["%ccloud", c.CLOUD, n.query]), l = 204) : (E.hash = _, i = {
5421
+ ]), K(4, ["%ccloud", c.CLOUD, n.query]), l = 204) : (E.hash = O, i = {
5422
5422
  data: {
5423
5423
  cloud: n.data
5424
5424
  },
@@ -5427,8 +5427,8 @@ class La {
5427
5427
  query: n.query
5428
5428
  }, l = await this.sm?.setCloud(n.query, i.data).then((G) => this.broadcastUpdate(G, n)));
5429
5429
  break;
5430
- case O.SERIES:
5431
- _ = Fn(n.data.series), E?.hash && E.hash === _ ? (K(3, [
5430
+ case _.SERIES:
5431
+ O = Fn(n.data.series), E?.hash && E.hash === O ? (K(3, [
5432
5432
  "%cload%c %cseries%c %cno updates",
5433
5433
  c.OK,
5434
5434
  c.NONE,
@@ -5436,7 +5436,7 @@ class La {
5436
5436
  c.NONE,
5437
5437
  c.NO_UPDATES,
5438
5438
  n.query.widget
5439
- ]), K(4, ["%cseries", c.SERIES, n]), l = 204) : (E.hash = _, i = {
5439
+ ]), K(4, ["%cseries", c.SERIES, n]), l = 204) : (E.hash = O, i = {
5440
5440
  data: n.data,
5441
5441
  message: n.message,
5442
5442
  success: n.success,
@@ -5464,15 +5464,15 @@ class La {
5464
5464
  c.NO_UPDATES,
5465
5465
  n.query
5466
5466
  ]), n.query.type) {
5467
- case O.MESSAGES:
5467
+ case _.MESSAGES:
5468
5468
  return await this.sm?.getMessages(n.query).then((E) => {
5469
5469
  this.broadcastUpdate(201, E);
5470
5470
  });
5471
- case O.CLOUD:
5471
+ case _.CLOUD:
5472
5472
  return await this.sm?.getCloud(n.query).then((E) => {
5473
5473
  this.broadcastUpdate(201, E);
5474
5474
  });
5475
- case O.SERIES:
5475
+ case _.SERIES:
5476
5476
  return await this.sm?.getSeries(n.query).then((E) => {
5477
5477
  this.broadcastUpdate(201, E);
5478
5478
  });
@@ -5631,7 +5631,7 @@ class Ba {
5631
5631
  * @param query Widgets parameters, type "cloud"
5632
5632
  * @returns IResponse
5633
5633
  */
5634
- getCloud = async (n) => n.type !== O.CLOUD ? (console.warn(
5634
+ getCloud = async (n) => n.type !== _.CLOUD ? (console.warn(
5635
5635
  "%cget%c %cstorage%c %ccloud",
5636
5636
  c.KO,
5637
5637
  c.NONE,
@@ -5651,7 +5651,7 @@ class Ba {
5651
5651
  * @param query Widgets parameters, type "messages"
5652
5652
  * @returns IResponse
5653
5653
  */
5654
- getMessages = async (n) => n.type !== O.MESSAGES ? (console.warn(
5654
+ getMessages = async (n) => n.type !== _.MESSAGES ? (console.warn(
5655
5655
  "%cget%c %cstorage%c %cmessages",
5656
5656
  c.KO,
5657
5657
  c.NONE,
@@ -5671,7 +5671,7 @@ class Ba {
5671
5671
  * @param query Widgets parameters, type "series"
5672
5672
  * @returns IResponse
5673
5673
  */
5674
- getSeries = async (n) => n.type !== O.SERIES ? (console.warn(
5674
+ getSeries = async (n) => n.type !== _.SERIES ? (console.warn(
5675
5675
  "%cget%c %cstorage%c %cseries",
5676
5676
  c.KO,
5677
5677
  c.NONE,
@@ -5704,8 +5704,8 @@ class Wa {
5704
5704
  this.element = n, this.callbacks = i, l = typeof l < "u" ? l : "buzzcasting-app";
5705
5705
  let E;
5706
5706
  E = { ...n.dataset }, delete E.hmr, E.presentation = n.closest(l)?.getAttribute("presentation") ?? `${l} not found`, this.query = E, Da(n);
5707
- const _ = window.BuzzCasting.getOptions();
5708
- this.storageReader = new Ba(_), this.broadcastChannel = new BroadcastChannel(E.presentation), this.broadcastListener();
5707
+ const O = window.BuzzCasting.getOptions();
5708
+ this.storageReader = new Ba(O), this.broadcastChannel = new BroadcastChannel(E.presentation), this.broadcastListener();
5709
5709
  }
5710
5710
  addCallbackListener(n) {
5711
5711
  this.callbacks.push(n);
@@ -5731,8 +5731,8 @@ class Wa {
5731
5731
  c.NONE,
5732
5732
  c.WIDGET,
5733
5733
  this.query
5734
- ]), this.callbacks.forEach(async (_) => {
5735
- _(E);
5734
+ ]), this.callbacks.forEach(async (O) => {
5735
+ O(E);
5736
5736
  }));
5737
5737
  }
5738
5738
  } catch {
@@ -5769,11 +5769,11 @@ class Wa {
5769
5769
  */
5770
5770
  getData = async () => {
5771
5771
  switch (this.query.type) {
5772
- case O.CLOUD:
5772
+ case _.CLOUD:
5773
5773
  return await this.getCloud();
5774
- case O.MESSAGES:
5774
+ case _.MESSAGES:
5775
5775
  return await this.getMessages();
5776
- case O.SERIES:
5776
+ case _.SERIES:
5777
5777
  return await this.getSeries();
5778
5778
  }
5779
5779
  return {
@@ -5788,7 +5788,7 @@ class Wa {
5788
5788
  *
5789
5789
  * @returns IResponse
5790
5790
  */
5791
- getCloud = async () => this.query.type !== O.CLOUD ? (K(3, [
5791
+ getCloud = async () => this.query.type !== _.CLOUD ? (K(3, [
5792
5792
  "%cget%c %cstorage%c %cwidget",
5793
5793
  c.KO,
5794
5794
  c.NONE,
@@ -5809,7 +5809,7 @@ class Wa {
5809
5809
  *
5810
5810
  * @returns IResponse
5811
5811
  */
5812
- getMessages = async () => this.query.type !== O.MESSAGES ? (K(3, [
5812
+ getMessages = async () => this.query.type !== _.MESSAGES ? (K(3, [
5813
5813
  "%cget%c %cstorage%c %cwidget",
5814
5814
  c.KO,
5815
5815
  c.NONE,
@@ -5829,7 +5829,7 @@ class Wa {
5829
5829
  *
5830
5830
  * @returns IResponse
5831
5831
  */
5832
- getSeries = async () => this.query.type !== O.SERIES ? (K(3, [
5832
+ getSeries = async () => this.query.type !== _.SERIES ? (K(3, [
5833
5833
  "%cget%c %cstorage%c %cwidget",
5834
5834
  c.KO,
5835
5835
  c.NONE,