buzzcasting-storage 3.9.11 → 3.9.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- 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 || {});
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 || {}), en = /* @__PURE__ */ ((p) => (p.APPROVED = "approved", p.BEFORE = "before", p.DELAYED = "delayed", p.NONE = "none", p.REALTIME = "realtime", p))(en || {}), 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
- for (let i = 0; i < p.length; i++) {
5
- const l = p.item(i);
4
+ for (let o = 0; o < p.length; o++) {
5
+ const l = p.item(o);
6
6
  l != null && l.name && (n[l.name] = l.value);
7
7
  }
8
8
  return n;
@@ -17,28 +17,28 @@ function Na(p, n) {
17
17
  return p;
18
18
  }
19
19
  function Oe(p, n) {
20
- let i, l, E;
20
+ let o, l, E;
21
21
  if (n.length === 0)
22
22
  return p;
23
- for (i = 0, E = n.length; i < E; i++)
24
- l = n.charCodeAt(i), p = (p << 5) - p + l, p |= 0;
23
+ for (o = 0, E = n.length; o < E; o++)
24
+ l = n.charCodeAt(o), p = (p << 5) - p + l, p |= 0;
25
25
  return p < 0 ? p * -2 : p;
26
26
  }
27
- function Ra(p, n, i) {
27
+ function Ra(p, n, o) {
28
28
  return Object.keys(n).sort().reduce(l, p);
29
29
  function l(E, O) {
30
- return jr(E, n[O], O, i);
30
+ return jr(E, n[O], O, o);
31
31
  }
32
32
  }
33
- function jr(p, n, i, l) {
34
- const E = Oe(Oe(Oe(p, i), Ta(n)), typeof n);
33
+ function jr(p, n, o, l) {
34
+ const E = Oe(Oe(Oe(p, o), Ta(n)), typeof n);
35
35
  if (n === null)
36
36
  return Oe(E, "null");
37
37
  if (n === void 0)
38
38
  return Oe(E, "undefined");
39
39
  if (typeof n == "object" || typeof n == "function") {
40
40
  if (l.includes(n))
41
- return Oe(E, `[Circular]${i}`);
41
+ return Oe(E, `[Circular]${o}`);
42
42
  l.push(n);
43
43
  const O = Ra(E, n, l);
44
44
  if (!("valueOf" in n) || typeof n.valueOf != "function")
@@ -58,8 +58,8 @@ function Fn(p) {
58
58
  return Na(jr(0, p, "", []).toString(16), 8);
59
59
  }
60
60
  const st = (p) => {
61
- let n = {}, i = p.split(",");
62
- for (let l = 0; l < i.length; l++) n[i[l]] = !0;
61
+ let n = {}, o = p.split(",");
62
+ for (let l = 0; l < o.length; l++) n[o[l]] = !0;
63
63
  return n;
64
64
  };
65
65
  st(
@@ -110,22 +110,22 @@ function Y(p) {
110
110
  function Ia(p) {
111
111
  var n;
112
112
  if (p.widget === void 0) {
113
- const i = (n = p.topics) == null ? void 0 : n.split("-");
114
- i && i.length > 1 ? (p.dashboard = i ? i[0] : "", p.widget = i ? i[1] : "") : (p.widget = p.topics, p.dashboard = p.slide);
113
+ const o = (n = p.topics) == null ? void 0 : n.split("-");
114
+ o && o.length > 1 ? (p.dashboard = o ? o[0] : "", p.widget = o ? o[1] : "") : (p.widget = p.topics, p.dashboard = p.slide);
115
115
  }
116
116
  return p;
117
117
  }
118
- function St(p, n) {
119
- var i;
120
- let l, E, O, C, G;
118
+ function Ot(p, n) {
119
+ var o;
120
+ let l, E, O, C, B;
121
121
  switch (p.moderation) {
122
- case qt.BEFORE:
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);
122
+ case en.BEFORE:
123
+ l = /* @__PURE__ */ new Date(), E = (o = p.beforeTime) == null ? void 0 : o.split(":"), O = Number.parseInt(E ? E[0] : "00"), C = Number.parseInt(E ? E[1] : "00"), B = Number.parseInt(E ? E[2] : "00"), n.before = l.setHours(O, C, B, 0) / 1e3, n.period || (n.period = l.getDay() === 1 ? 72 : 24);
124
124
  break;
125
- case qt.DELAYED:
125
+ case en.DELAYED:
126
126
  p.delay && p.delay > 0 && (n.delay = `${p.delay}`);
127
127
  break;
128
- case qt.APPROVED:
128
+ case en.APPROVED:
129
129
  n.approved = "1";
130
130
  break;
131
131
  default:
@@ -133,7 +133,7 @@ function St(p, n) {
133
133
  }
134
134
  return n;
135
135
  }
136
- const xa = "3.9.10";
136
+ const xa = "3.9.12";
137
137
  class ka {
138
138
  options;
139
139
  url;
@@ -163,7 +163,7 @@ class ka {
163
163
  };
164
164
  };
165
165
  async get(n) {
166
- const { version: i } = this.options, l = this.headers(), E = Object.assign({}, n);
166
+ const { version: o } = 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
168
  const O = Object.keys(E).length > 0 ? `?${new URLSearchParams(E).toString()}` : "";
169
169
  let C = "";
@@ -187,16 +187,16 @@ 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("/") + O,
190
+ [this.url, "api", o, n.type].join("/") + O,
191
191
  { ...l, method: "get" }
192
- ).then(async (G) => {
193
- if (!G.ok)
194
- throw new Error(`${G.status}`);
195
- return G;
196
- }).then((G) => G.json()).then((G) => (G.query = n, G)).catch((G) => ({ success: !1, message: `${G}`, data: null, query: n }));
192
+ ).then(async (B) => {
193
+ if (!B.ok)
194
+ throw new Error(`${B.status}`);
195
+ return B;
196
+ }).then((B) => B.json()).then((B) => (B.query = n, B)).catch((B) => ({ success: !1, message: `${B}`, data: null, query: n }));
197
197
  }
198
198
  async hideMessage(n) {
199
- const { version: i } = this.options, l = this.headers(), E = "?action=visible";
199
+ const { version: o } = this.options, l = this.headers(), E = "?action=visible";
200
200
  return console.info(
201
201
  "%capi%c %cput",
202
202
  c.API,
@@ -206,7 +206,7 @@ class ka {
206
206
  n.widget,
207
207
  n.id
208
208
  ), await fetch(
209
- [this.url, "api", i, "messages", n.id].join("/") + E,
209
+ [this.url, "api", o, "messages", n.id].join("/") + E,
210
210
  { ...l, method: "put" }
211
211
  ).then((O) => {
212
212
  if (!O.ok)
@@ -215,9 +215,9 @@ class ka {
215
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(), O = n.labels || [];
219
- for (const [C, G] of O.entries())
220
- E.append(`custom_filters[${C}]`, G);
218
+ const { version: o } = this.options, l = this.formHeaders(), E = new URLSearchParams(), O = n.labels || [];
219
+ for (const [C, B] of O.entries())
220
+ E.append(`custom_filters[${C}]`, B);
221
221
  return console.info(
222
222
  "%capi%c %cput",
223
223
  c.API,
@@ -227,7 +227,7 @@ class ka {
227
227
  n.widget,
228
228
  O
229
229
  ), await fetch(
230
- [this.url, "api", i, n.type, n.widget].join("/"),
230
+ [this.url, "api", o, n.type, n.widget].join("/"),
231
231
  { ...l, body: E, method: "put" }
232
232
  ).then((C) => {
233
233
  if (!C.ok)
@@ -236,9 +236,9 @@ class ka {
236
236
  }).then((C) => C.json()).catch((C) => ({ succes: !1, message: C, data: [] }));
237
237
  }
238
238
  async loadSlide(n) {
239
- const { version: i } = this.options, l = this.headers(), E = Object.assign({}, n);
239
+ const { version: o } = this.options, l = this.headers(), E = Object.assign({}, n);
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
- [this.url, "api", i, "slides", n.id].join("/"),
241
+ [this.url, "api", o, "slides", n.id].join("/"),
242
242
  { ...l, method: "get" }
243
243
  ).then(async (O) => {
244
244
  if (!O.ok)
@@ -254,7 +254,7 @@ class ka {
254
254
  * @returns
255
255
  */
256
256
  async storeSlide(n) {
257
- const { version: i } = this.options, l = this.formHeaders();
257
+ const { version: o } = this.options, l = this.formHeaders();
258
258
  delete n.update, delete n.type;
259
259
  const E = JSON.stringify(n);
260
260
  return K(3, [
@@ -267,7 +267,7 @@ class ka {
267
267
  J.SLIDE_STORE,
268
268
  n.id
269
269
  ]), await fetch(
270
- [this.url, "api", i, "slides", n.id].join("/"),
270
+ [this.url, "api", o, "slides", n.id].join("/"),
271
271
  { ...l, body: E, method: "put" }
272
272
  ).then((O) => {
273
273
  if (!O.ok)
@@ -276,7 +276,7 @@ class ka {
276
276
  }).then((O) => O.json()).catch((O) => ({ succes: !1, message: O, data: [] }));
277
277
  }
278
278
  async loadPresentation(n) {
279
- const { version: i } = this.options, l = this.headers();
279
+ const { version: o } = this.options, l = this.headers();
280
280
  return delete n.update, K(3, [
281
281
  "%cload%c %capi%c %cloadPresentation",
282
282
  c.OK,
@@ -286,7 +286,7 @@ class ka {
286
286
  c.PRESENTATION,
287
287
  n.id
288
288
  ]), await fetch(
289
- [this.url, "api", i, _.PRESENTATIONS, n.id].join("/"),
289
+ [this.url, "api", o, _.PRESENTATIONS, n.id].join("/"),
290
290
  { ...l, method: "get" }
291
291
  ).then(async (E) => {
292
292
  if (!E.ok)
@@ -302,11 +302,11 @@ class ka {
302
302
  * @returns
303
303
  */
304
304
  async storePresentation(n) {
305
- const { version: i } = this.options, l = this.formHeaders();
305
+ const { version: o } = this.options, l = this.formHeaders();
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, _.PRESENTATIONS, n.id].join("/"),
309
+ [this.url, "api", o, _.PRESENTATIONS, n.id].join("/"),
310
310
  { ...l, body: E, method: "put" }
311
311
  ).then((O) => {
312
312
  if (!O.ok)
@@ -315,7 +315,7 @@ class ka {
315
315
  }).then((O) => O.json()).catch((O) => ({ succes: !1, message: O, data: [] }));
316
316
  }
317
317
  async loadPreference(n) {
318
- const { version: i } = this.options, l = this.headers();
318
+ const { version: o } = this.options, l = this.headers();
319
319
  return K(3, [
320
320
  "%capi%c %cloadPreference",
321
321
  c.API,
@@ -323,7 +323,7 @@ class ka {
323
323
  c.APP,
324
324
  n.id
325
325
  ]), await fetch(
326
- [this.url, "api", i, _.PREFERENCES, n.id].join("/"),
326
+ [this.url, "api", o, _.PREFERENCES, n.id].join("/"),
327
327
  { ...l, method: "get" }
328
328
  ).then(async (E) => {
329
329
  if (!E.ok)
@@ -332,7 +332,7 @@ class ka {
332
332
  }).then((E) => E.json()).then((E) => E).catch((E) => ({ success: !1, message: `${E}`, data: null }));
333
333
  }
334
334
  async storePreference(n) {
335
- const { version: i } = this.options, l = this.formHeaders();
335
+ const { version: o } = this.options, l = this.formHeaders();
336
336
  delete n.update;
337
337
  const E = JSON.stringify({ data: n });
338
338
  return console.info(
@@ -342,7 +342,7 @@ class ka {
342
342
  c.APP,
343
343
  n.id
344
344
  ), await fetch(
345
- [this.url, "api", i, _.PREFERENCES, n.id].join("/"),
345
+ [this.url, "api", o, _.PREFERENCES, n.id].join("/"),
346
346
  { ...l, body: E, method: "put" }
347
347
  ).then((O) => {
348
348
  if (!O.ok)
@@ -388,9 +388,9 @@ class ka {
388
388
  });
389
389
  }*/
390
390
  async loadDashboards(n) {
391
- const { version: i } = this.options, l = this.headers();
391
+ const { version: o } = 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, _.WIDGETS, n?.id || ""].join("/"),
393
+ [this.url, "api", o, _.WIDGETS, n?.id || ""].join("/"),
394
394
  {
395
395
  ...l,
396
396
  method: "get"
@@ -410,14 +410,14 @@ var Ca = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
410
410
  function $a(p) {
411
411
  return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, "default") ? p.default : p;
412
412
  }
413
- var en = { exports: {} }, ja = en.exports, Cr;
413
+ var tn = { exports: {} }, ja = tn.exports, Cr;
414
414
  function Ma() {
415
415
  return Cr || (Cr = 1, function(p, n) {
416
- (function(i, l) {
416
+ (function(o, l) {
417
417
  p.exports = l();
418
418
  })(ja, function() {
419
- var i = function(e, t) {
420
- return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, a) {
419
+ var o = function(e, t) {
420
+ return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, a) {
421
421
  r.__proto__ = a;
422
422
  } || function(r, a) {
423
423
  for (var s in a) Object.prototype.hasOwnProperty.call(a, s) && (r[s] = a[s]);
@@ -429,10 +429,10 @@ function Ma() {
429
429
  }).apply(this, arguments);
430
430
  };
431
431
  function E(e, t, r) {
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]);
432
+ for (var a, s = 0, i = t.length; s < i; 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 O = 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, B = 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];
@@ -440,7 +440,7 @@ function Ma() {
440
440
  }
441
441
  typeof Promise > "u" || O.Promise || (O.Promise = Promise);
442
442
  var ge = Object.getPrototypeOf, Ce = {}.hasOwnProperty;
443
- function oe(e, t) {
443
+ function ie(e, t) {
444
444
  return Ce.call(e, t);
445
445
  }
446
446
  function be(e, t) {
@@ -448,9 +448,9 @@ function Ma() {
448
448
  Ae(e, r, t[r]);
449
449
  });
450
450
  }
451
- var Ot = Object.defineProperty;
451
+ var _t = Object.defineProperty;
452
452
  function Ae(e, t, r, a) {
453
- Ot(e, t, te(r && oe(r, "get") && typeof r.get == "function" ? { get: r.get, set: r.set, configurable: !0 } : { value: r, configurable: !0, writable: !0 }, a));
453
+ _t(e, t, te(r && ie(r, "get") && typeof r.get == "function" ? { get: r.get, set: r.set, configurable: !0 } : { value: r, configurable: !0, writable: !0 }, a));
454
454
  }
455
455
  function Ye(e) {
456
456
  return { from: function(t) {
@@ -458,25 +458,25 @@ function Ma() {
458
458
  } };
459
459
  }
460
460
  var Fr = Object.getOwnPropertyDescriptor, Ur = [].slice;
461
- function _t(e, t, r) {
461
+ function At(e, t, r) {
462
462
  return Ur.call(e, t, r);
463
463
  }
464
464
  function Vn(e, t) {
465
465
  return t(e);
466
466
  }
467
- function it(e) {
467
+ function ot(e) {
468
468
  if (!e) throw new Error("Assertion Failed");
469
469
  }
470
470
  function Yn(e) {
471
471
  O.setImmediate ? setImmediate(e) : setTimeout(e, 0);
472
472
  }
473
473
  function ve(e, t) {
474
- if (typeof t == "string" && oe(e, t)) return e[t];
474
+ if (typeof t == "string" && ie(e, t)) return e[t];
475
475
  if (!t) return e;
476
476
  if (typeof t != "string") {
477
477
  for (var r = [], a = 0, s = t.length; a < s; ++a) {
478
- var o = ve(e, t[a]);
479
- r.push(o);
478
+ var i = ve(e, t[a]);
479
+ r.push(i);
480
480
  }
481
481
  return r;
482
482
  }
@@ -488,16 +488,16 @@ function Ma() {
488
488
  }
489
489
  function ue(e, t, r) {
490
490
  if (e && t !== void 0 && !("isFrozen" in Object && Object.isFrozen(e))) if (typeof t != "string" && "length" in t) {
491
- it(typeof r != "string" && "length" in r);
491
+ ot(typeof r != "string" && "length" in r);
492
492
  for (var a = 0, s = t.length; a < s; ++a) ue(e, t[a], r[a]);
493
493
  } else {
494
- var o, u, d = t.indexOf(".");
495
- d !== -1 ? (o = t.substr(0, d), (u = t.substr(d + 1)) === "" ? r === void 0 ? G(e) && !isNaN(parseInt(o)) ? e.splice(o, 1) : delete e[o] : e[o] = r : ue(d = !(d = e[o]) || !oe(e, o) ? e[o] = {} : d, u, r)) : r === void 0 ? G(e) && !isNaN(parseInt(t)) ? e.splice(t, 1) : delete e[t] : e[t] = r;
494
+ var i, u, d = t.indexOf(".");
495
+ d !== -1 ? (i = t.substr(0, d), (u = t.substr(d + 1)) === "" ? r === void 0 ? B(e) && !isNaN(parseInt(i)) ? e.splice(i, 1) : delete e[i] : e[i] = r : ue(d = !(d = e[i]) || !ie(e, i) ? e[i] = {} : d, u, r)) : r === void 0 ? B(e) && !isNaN(parseInt(t)) ? e.splice(t, 1) : delete e[t] : e[t] = r;
496
496
  }
497
497
  }
498
498
  function Qn(e) {
499
499
  var t, r = {};
500
- for (t in e) oe(e, t) && (r[t] = e[t]);
500
+ for (t in e) ie(e, t) && (r[t] = e[t]);
501
501
  return r;
502
502
  }
503
503
  var zr = [].concat;
@@ -512,22 +512,22 @@ function Ma() {
512
512
  return O[e];
513
513
  }), Jn = new Set(Ke.map(function(e) {
514
514
  return O[e];
515
- })), ot = null;
515
+ })), it = null;
516
516
  function $e(e) {
517
- return ot = /* @__PURE__ */ new WeakMap(), e = function t(r) {
517
+ return it = /* @__PURE__ */ new WeakMap(), e = function t(r) {
518
518
  if (!r || typeof r != "object") return r;
519
- var a = ot.get(r);
519
+ var a = it.get(r);
520
520
  if (a) return a;
521
- if (G(r)) {
522
- a = [], ot.set(r, a);
523
- for (var s = 0, o = r.length; s < o; ++s) a.push(t(r[s]));
521
+ if (B(r)) {
522
+ a = [], it.set(r, a);
523
+ for (var s = 0, i = r.length; s < i; ++s) a.push(t(r[s]));
524
524
  } else if (Jn.has(r.constructor)) a = r;
525
525
  else {
526
526
  var u, d = ge(r);
527
- for (u in a = d === Object.prototype ? {} : Object.create(d), ot.set(r, a), r) oe(r, u) && (a[u] = t(r[u]));
527
+ for (u in a = d === Object.prototype ? {} : Object.create(d), it.set(r, a), r) ie(r, u) && (a[u] = t(r[u]));
528
528
  }
529
529
  return a;
530
- }(e), ot = null, e;
530
+ }(e), it = null, e;
531
531
  }
532
532
  var Hr = {}.toString;
533
533
  function nn(e) {
@@ -546,7 +546,7 @@ function Ma() {
546
546
  function Ee(e) {
547
547
  var t, r, a, s;
548
548
  if (arguments.length === 1) {
549
- if (G(e)) return e.slice();
549
+ if (B(e)) return e.slice();
550
550
  if (this === Qe && typeof e == "string") return [e];
551
551
  if (s = Vr(e)) {
552
552
  for (r = []; !(a = s.next()).done; ) r.push(a.value);
@@ -576,7 +576,7 @@ function Ma() {
576
576
  }).join(`
577
577
  `);
578
578
  }
579
- function At(e, t, r, a) {
579
+ function Pt(e, t, r, a) {
580
580
  this.failures = t, this.failedKeys = a, this.successCount = r, this.message = Zn(e, t);
581
581
  }
582
582
  function Je(e, t) {
@@ -586,21 +586,21 @@ function Ma() {
586
586
  }
587
587
  Ye(Xe).from(Error).extend({ toString: function() {
588
588
  return this.name + ": " + this.message;
589
- } }), Ye(At).from(Xe), Ye(Je).from(Xe);
589
+ } }), Ye(Pt).from(Xe), Ye(Je).from(Xe);
590
590
  var sn = fe.reduce(function(e, t) {
591
591
  return e[t] = t + "Error", e;
592
592
  }, {}), Qr = Xe, L = fe.reduce(function(e, t) {
593
593
  var r = t + "Error";
594
- function a(s, o) {
595
- this.name = r, s ? typeof s == "string" ? (this.message = "".concat(s).concat(o ? `
596
- ` + o : ""), this.inner = o || null) : typeof s == "object" && (this.message = "".concat(s.name, " ").concat(s.message), this.inner = s) : (this.message = Yr[t] || r, this.inner = null);
594
+ function a(s, i) {
595
+ this.name = r, s ? typeof s == "string" ? (this.message = "".concat(s).concat(i ? `
596
+ ` + i : ""), this.inner = i || null) : typeof s == "object" && (this.message = "".concat(s.name, " ").concat(s.message), this.inner = s) : (this.message = Yr[t] || r, this.inner = null);
597
597
  }
598
598
  return Ye(a).from(Qr), e[t] = a, e;
599
599
  }, {});
600
600
  L.Syntax = SyntaxError, L.Type = TypeError, L.Range = RangeError;
601
601
  var qn = lt.reduce(function(e, t) {
602
602
  return e[t + "Error"] = L[t], e;
603
- }, {}), Pt = fe.reduce(function(e, t) {
603
+ }, {}), Dt = fe.reduce(function(e, t) {
604
604
  return ["Syntax", "Type", "Range"].indexOf(t) === -1 && (e[t + "Error"] = L[t]), e;
605
605
  }, {});
606
606
  function Q() {
@@ -624,8 +624,8 @@ function Ma() {
624
624
  r !== void 0 && (arguments[0] = r);
625
625
  var a = this.onsuccess, s = this.onerror;
626
626
  this.onsuccess = null, this.onerror = null;
627
- var o = t.apply(this, arguments);
628
- return a && (this.onsuccess = this.onsuccess ? Me(a, this.onsuccess) : a), s && (this.onerror = this.onerror ? Me(s, this.onerror) : s), o !== void 0 ? o : r;
627
+ var i = t.apply(this, arguments);
628
+ return a && (this.onsuccess = this.onsuccess ? Me(a, this.onsuccess) : a), s && (this.onerror = this.onerror ? Me(s, this.onerror) : s), i !== void 0 ? i : r;
629
629
  };
630
630
  }
631
631
  function Zr(e, t) {
@@ -639,8 +639,8 @@ function Ma() {
639
639
  return e === Q ? t : function(r) {
640
640
  var a = e.apply(this, arguments);
641
641
  te(r, a);
642
- var s = this.onsuccess, o = this.onerror;
643
- return this.onsuccess = null, this.onerror = null, r = t.apply(this, arguments), s && (this.onsuccess = this.onsuccess ? Me(s, this.onsuccess) : s), o && (this.onerror = this.onerror ? Me(o, this.onerror) : o), a === void 0 ? r === void 0 ? void 0 : r : te(a, r);
642
+ var s = this.onsuccess, i = this.onerror;
643
+ return this.onsuccess = null, this.onerror = null, r = t.apply(this, arguments), s && (this.onsuccess = this.onsuccess ? Me(s, this.onsuccess) : s), i && (this.onerror = this.onerror ? Me(i, this.onerror) : i), a === void 0 ? r === void 0 ? void 0 : r : te(a, r);
644
644
  };
645
645
  }
646
646
  function ea(e, t) {
@@ -652,15 +652,15 @@ function Ma() {
652
652
  return e === Q ? t : function() {
653
653
  var r = e.apply(this, arguments);
654
654
  if (r && typeof r.then == "function") {
655
- for (var a = this, s = arguments.length, o = new Array(s); s--; ) o[s] = arguments[s];
655
+ for (var a = this, s = arguments.length, i = new Array(s); s--; ) i[s] = arguments[s];
656
656
  return r.then(function() {
657
- return t.apply(a, o);
657
+ return t.apply(a, i);
658
658
  });
659
659
  }
660
660
  return t.apply(this, arguments);
661
661
  };
662
662
  }
663
- Pt.ModifyError = At, Pt.DexieError = Xe, Pt.BulkError = Je;
663
+ Dt.ModifyError = Pt, Dt.DexieError = Xe, Dt.BulkError = Je;
664
664
  var pe = typeof location < "u" && /^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);
665
665
  function er(e) {
666
666
  pe = e;
@@ -670,38 +670,38 @@ function Ma() {
670
670
  if (typeof crypto > "u" || !crypto.subtle) return [e, ge(e), e];
671
671
  var t = crypto.subtle.digest("SHA-512", new Uint8Array([0]));
672
672
  return [t, ge(t), e];
673
- }(), lt = Ke[0], fe = Ke[1], Ke = Ke[2], fe = fe && fe.then, Ge = lt && lt.constructor, cn = !!Ke, dt = function(e, t) {
674
- ft.push([e, t]), Dt && (queueMicrotask(na), Dt = !1);
675
- }, un = !0, Dt = !0, Be = [], Nt = [], ln = ct, Pe = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: Q, pgp: !1, env: {}, finalize: Q }, B = Pe, ft = [], Le = 0, Rt = [];
673
+ }(), lt = Ke[0], fe = Ke[1], Ke = Ke[2], fe = fe && fe.then, Be = lt && lt.constructor, cn = !!Ke, dt = function(e, t) {
674
+ ft.push([e, t]), Nt && (queueMicrotask(na), Nt = !1);
675
+ }, un = !0, Nt = !0, Ge = [], Rt = [], ln = ct, Pe = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: Q, pgp: !1, env: {}, finalize: Q }, G = Pe, ft = [], Le = 0, Tt = [];
676
676
  function j(e) {
677
677
  if (typeof this != "object") throw new TypeError("Promises must be constructed via new");
678
678
  this._listeners = [], this._lib = !1;
679
- var t = this._PSD = B;
679
+ var t = this._PSD = G;
680
680
  if (typeof e != "function") {
681
681
  if (e !== ut) throw new TypeError("Not a function");
682
682
  return this._state = arguments[1], this._value = arguments[2], void (this._state === !1 && fn(this, this._value));
683
683
  }
684
684
  this._state = null, this._value = null, ++t.ref, function r(a, s) {
685
685
  try {
686
- s(function(o) {
686
+ s(function(i) {
687
687
  if (a._state === null) {
688
- if (o === a) throw new TypeError("A promise cannot be resolved with itself.");
688
+ if (i === a) throw new TypeError("A promise cannot be resolved with itself.");
689
689
  var u = a._lib && Ze();
690
- o && typeof o.then == "function" ? r(a, function(d, h) {
691
- o instanceof j ? o._then(d, h) : o.then(d, h);
692
- }) : (a._state = !0, a._value = o, rr(a)), u && qe();
690
+ i && typeof i.then == "function" ? r(a, function(d, h) {
691
+ i instanceof j ? i._then(d, h) : i.then(d, h);
692
+ }) : (a._state = !0, a._value = i, rr(a)), u && qe();
693
693
  }
694
694
  }, fn.bind(null, a));
695
- } catch (o) {
696
- fn(a, o);
695
+ } catch (i) {
696
+ fn(a, i);
697
697
  }
698
698
  }(this, e);
699
699
  }
700
700
  var dn = { get: function() {
701
- var e = B, t = kt;
701
+ var e = G, t = Ct;
702
702
  function r(a, s) {
703
- var o = this, u = !e.global && (e !== B || t !== kt), d = u && !Ne(), h = new j(function(m, v) {
704
- hn(o, new nr(sr(a, e, u, d), sr(s, e, u, d), m, v, e));
703
+ var i = this, u = !e.global && (e !== G || t !== Ct), d = u && !Ne(), h = new j(function(m, v) {
704
+ hn(i, new nr(sr(a, e, u, d), sr(s, e, u, d), m, v, e));
705
705
  });
706
706
  return this._consoleTask && (h._consoleTask = this._consoleTask), h;
707
707
  }
@@ -716,9 +716,9 @@ function Ma() {
716
716
  }
717
717
  function fn(e, t) {
718
718
  var r, a;
719
- Nt.push(t), e._state === null && (r = e._lib && Ze(), t = ln(t), e._state = !1, e._value = t, a = e, Be.some(function(s) {
719
+ Rt.push(t), e._state === null && (r = e._lib && Ze(), t = ln(t), e._state = !1, e._value = t, a = e, Ge.some(function(s) {
720
720
  return s._value === a._value;
721
- }) || Be.push(a), rr(e), r && qe());
721
+ }) || Ge.push(a), rr(e), r && qe());
722
722
  }
723
723
  function rr(e) {
724
724
  var t = e._listeners;
@@ -739,13 +739,13 @@ function Ma() {
739
739
  function ta(e, t, r) {
740
740
  try {
741
741
  var a, s = t._value;
742
- !t._state && Nt.length && (Nt = []), a = pe && t._consoleTask ? t._consoleTask.run(function() {
742
+ !t._state && Rt.length && (Rt = []), a = pe && t._consoleTask ? t._consoleTask.run(function() {
743
743
  return e(s);
744
- }) : e(s), t._state || Nt.indexOf(s) !== -1 || function(o) {
745
- for (var u = Be.length; u; ) if (Be[--u]._value === o._value) return Be.splice(u, 1);
744
+ }) : e(s), t._state || Rt.indexOf(s) !== -1 || function(i) {
745
+ for (var u = Ge.length; u; ) if (Ge[--u]._value === i._value) return Ge.splice(u, 1);
746
746
  }(t), r.resolve(a);
747
- } catch (o) {
748
- r.reject(o);
747
+ } catch (i) {
748
+ r.reject(i);
749
749
  } finally {
750
750
  --Le == 0 && gn(), --r.psd.ref || r.psd.finalize();
751
751
  }
@@ -757,7 +757,7 @@ function Ma() {
757
757
  }
758
758
  function Ze() {
759
759
  var e = un;
760
- return Dt = un = !1, e;
760
+ return Nt = un = !1, e;
761
761
  }
762
762
  function qe() {
763
763
  var e, t, r;
@@ -767,40 +767,40 @@ function Ma() {
767
767
  a[0].apply(null, a[1]);
768
768
  }
769
769
  while (0 < ft.length);
770
- Dt = un = !0;
770
+ Nt = un = !0;
771
771
  }
772
772
  function gn() {
773
- var e = Be;
774
- Be = [], e.forEach(function(a) {
773
+ var e = Ge;
774
+ Ge = [], e.forEach(function(a) {
775
775
  a._PSD.onunhandled.call(null, a._value, a);
776
776
  });
777
- for (var t = Rt.slice(0), r = t.length; r; ) t[--r]();
777
+ for (var t = Tt.slice(0), r = t.length; r; ) t[--r]();
778
778
  }
779
- function Tt(e) {
779
+ function It(e) {
780
780
  return new j(ut, !1, e);
781
781
  }
782
782
  function Z(e, t) {
783
- var r = B;
783
+ var r = G;
784
784
  return function() {
785
- var a = Ze(), s = B;
785
+ var a = Ze(), s = G;
786
786
  try {
787
787
  return Re(r, !0), e.apply(this, arguments);
788
- } catch (o) {
789
- t && t(o);
788
+ } catch (i) {
789
+ t && t(i);
790
790
  } finally {
791
791
  Re(s, !1), a && qe();
792
792
  }
793
793
  };
794
794
  }
795
795
  be(j.prototype, { then: dn, _then: function(e, t) {
796
- hn(this, new nr(null, null, e, t, B));
796
+ hn(this, new nr(null, null, e, t, G));
797
797
  }, catch: function(e) {
798
798
  if (arguments.length === 1) return this.then(null, e);
799
799
  var t = e, r = arguments[1];
800
800
  return typeof t == "function" ? this.then(null, function(a) {
801
- return (a instanceof t ? r : Tt)(a);
801
+ return (a instanceof t ? r : It)(a);
802
802
  }) : this.then(null, function(a) {
803
- return (a && a.name === t ? r : Tt)(a);
803
+ return (a && a.name === t ? r : It)(a);
804
804
  });
805
805
  }, finally: function(e) {
806
806
  return this.then(function(t) {
@@ -809,25 +809,25 @@ function Ma() {
809
809
  });
810
810
  }, function(t) {
811
811
  return j.resolve(e()).then(function() {
812
- return Tt(t);
812
+ return It(t);
813
813
  });
814
814
  });
815
815
  }, timeout: function(e, t) {
816
816
  var r = this;
817
817
  return e < 1 / 0 ? new j(function(a, s) {
818
- var o = setTimeout(function() {
818
+ var i = setTimeout(function() {
819
819
  return s(new L.Timeout(t));
820
820
  }, e);
821
- r.then(a, s).finally(clearTimeout.bind(null, o));
821
+ r.then(a, s).finally(clearTimeout.bind(null, i));
822
822
  }) : this;
823
823
  } }), typeof Symbol < "u" && Symbol.toStringTag && Ae(j.prototype, Symbol.toStringTag, "Dexie.Promise"), Pe.env = ar(), be(j, { all: function() {
824
- var e = Ee.apply(null, arguments).map(Ct);
824
+ var e = Ee.apply(null, arguments).map($t);
825
825
  return new j(function(t, r) {
826
826
  e.length === 0 && t([]);
827
827
  var a = e.length;
828
- e.forEach(function(s, o) {
828
+ e.forEach(function(s, i) {
829
829
  return j.resolve(s).then(function(u) {
830
- e[o] = u, --a || t(e);
830
+ e[i] = u, --a || t(e);
831
831
  }, r);
832
832
  });
833
833
  });
@@ -835,19 +835,19 @@ function Ma() {
835
835
  return e instanceof j ? e : e && typeof e.then == "function" ? new j(function(t, r) {
836
836
  e.then(t, r);
837
837
  }) : new j(ut, !0, e);
838
- }, reject: Tt, race: function() {
839
- var e = Ee.apply(null, arguments).map(Ct);
838
+ }, reject: It, race: function() {
839
+ var e = Ee.apply(null, arguments).map($t);
840
840
  return new j(function(t, r) {
841
841
  e.map(function(a) {
842
842
  return j.resolve(a).then(t, r);
843
843
  });
844
844
  });
845
845
  }, PSD: { get: function() {
846
- return B;
846
+ return G;
847
847
  }, set: function(e) {
848
- return B = e;
848
+ return G = e;
849
849
  } }, totalEchoes: { get: function() {
850
- return kt;
850
+ return Ct;
851
851
  } }, newPSD: De, usePSD: We, scheduler: { get: function() {
852
852
  return dt;
853
853
  }, set: function(e) {
@@ -858,55 +858,55 @@ function Ma() {
858
858
  ln = e;
859
859
  } }, follow: function(e, t) {
860
860
  return new j(function(r, a) {
861
- return De(function(s, o) {
862
- var u = B;
863
- u.unhandleds = [], u.onunhandled = o, u.finalize = Me(function() {
861
+ return De(function(s, i) {
862
+ var u = G;
863
+ u.unhandleds = [], u.onunhandled = i, u.finalize = Me(function() {
864
864
  var d, h = this;
865
865
  d = function() {
866
- h.unhandleds.length === 0 ? s() : o(h.unhandleds[0]);
867
- }, Rt.push(function m() {
868
- d(), Rt.splice(Rt.indexOf(m), 1);
866
+ h.unhandleds.length === 0 ? s() : i(h.unhandleds[0]);
867
+ }, Tt.push(function m() {
868
+ d(), Tt.splice(Tt.indexOf(m), 1);
869
869
  }), ++Le, dt(function() {
870
870
  --Le == 0 && gn();
871
871
  }, []);
872
872
  }, u.finalize), e();
873
873
  }, t, r, a);
874
874
  });
875
- } }), Ge && (Ge.allSettled && Ae(j, "allSettled", function() {
876
- var e = Ee.apply(null, arguments).map(Ct);
875
+ } }), Be && (Be.allSettled && Ae(j, "allSettled", function() {
876
+ var e = Ee.apply(null, arguments).map($t);
877
877
  return new j(function(t) {
878
878
  e.length === 0 && t([]);
879
879
  var r = e.length, a = new Array(r);
880
- e.forEach(function(s, o) {
880
+ e.forEach(function(s, i) {
881
881
  return j.resolve(s).then(function(u) {
882
- return a[o] = { status: "fulfilled", value: u };
882
+ return a[i] = { status: "fulfilled", value: u };
883
883
  }, function(u) {
884
- return a[o] = { status: "rejected", reason: u };
884
+ return a[i] = { status: "rejected", reason: u };
885
885
  }).then(function() {
886
886
  return --r || t(a);
887
887
  });
888
888
  });
889
889
  });
890
- }), Ge.any && typeof AggregateError < "u" && Ae(j, "any", function() {
891
- var e = Ee.apply(null, arguments).map(Ct);
890
+ }), Be.any && typeof AggregateError < "u" && Ae(j, "any", function() {
891
+ var e = Ee.apply(null, arguments).map($t);
892
892
  return new j(function(t, r) {
893
893
  e.length === 0 && r(new AggregateError([]));
894
894
  var a = e.length, s = new Array(a);
895
- e.forEach(function(o, u) {
896
- return j.resolve(o).then(function(d) {
895
+ e.forEach(function(i, u) {
896
+ return j.resolve(i).then(function(d) {
897
897
  return t(d);
898
898
  }, function(d) {
899
899
  s[u] = d, --a || r(new AggregateError(s));
900
900
  });
901
901
  });
902
902
  });
903
- }), Ge.withResolvers && (j.withResolvers = Ge.withResolvers));
904
- var ne = { awaits: 0, echoes: 0, id: 0 }, ra = 0, It = [], xt = 0, kt = 0, aa = 0;
903
+ }), Be.withResolvers && (j.withResolvers = Be.withResolvers));
904
+ var ne = { awaits: 0, echoes: 0, id: 0 }, ra = 0, xt = [], kt = 0, Ct = 0, aa = 0;
905
905
  function De(e, t, r, a) {
906
- var s = B, o = Object.create(s);
907
- return o.parent = s, o.ref = 0, o.global = !1, o.id = ++aa, Pe.env, o.env = cn ? { 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 } : {}, t && te(o, t), ++s.ref, o.finalize = function() {
906
+ var s = G, i = Object.create(s);
907
+ return i.parent = s, i.ref = 0, i.global = !1, i.id = ++aa, Pe.env, i.env = cn ? { 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 } : {}, t && te(i, t), ++s.ref, i.finalize = function() {
908
908
  --this.parent.ref || this.parent.finalize();
909
- }, a = We(o, e, r, a), o.ref === 0 && o.finalize(), a;
909
+ }, a = We(i, e, r, a), i.ref === 0 && i.finalize(), a;
910
910
  }
911
911
  function et() {
912
912
  return ne.id || (ne.id = ++ra), ++ne.awaits, ne.echoes += tr, ne.id;
@@ -914,38 +914,38 @@ function Ma() {
914
914
  function Ne() {
915
915
  return !!ne.awaits && (--ne.awaits == 0 && (ne.id = 0), ne.echoes = ne.awaits * tr, !0);
916
916
  }
917
- function Ct(e) {
918
- return ne.echoes && e && e.constructor === Ge ? (et(), e.then(function(t) {
917
+ function $t(e) {
918
+ return ne.echoes && e && e.constructor === Be ? (et(), e.then(function(t) {
919
919
  return Ne(), t;
920
920
  }, function(t) {
921
921
  return Ne(), q(t);
922
922
  })) : e;
923
923
  }
924
924
  function sa() {
925
- var e = It[It.length - 1];
926
- It.pop(), Re(e, !1);
925
+ var e = xt[xt.length - 1];
926
+ xt.pop(), Re(e, !1);
927
927
  }
928
928
  function Re(e, t) {
929
- var r, a = B;
930
- (t ? !ne.echoes || xt++ && e === B : !xt || --xt && e === B) || queueMicrotask(t ? function(s) {
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(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))));
929
+ var r, a = G;
930
+ (t ? !ne.echoes || kt++ && e === G : !kt || --kt && e === G) || queueMicrotask(t ? function(s) {
931
+ ++Ct, ne.echoes && --ne.echoes != 0 || (ne.echoes = ne.awaits = ne.id = 0), xt.push(G), Re(s, !0);
932
+ }.bind(null, e) : sa), e !== G && (G = 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
935
  var e = O.Promise;
936
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
- var o = B;
939
+ var i = G;
940
940
  try {
941
941
  return Re(e, !0), t(r, a, s);
942
942
  } finally {
943
- Re(o, !1);
943
+ Re(i, !1);
944
944
  }
945
945
  }
946
946
  function sr(e, t, r, a) {
947
947
  return typeof e != "function" ? e : function() {
948
- var s = B;
948
+ var s = G;
949
949
  r && et(), Re(t, !0);
950
950
  try {
951
951
  return e.apply(this, arguments);
@@ -955,17 +955,17 @@ function Ma() {
955
955
  };
956
956
  }
957
957
  function pn(e) {
958
- Promise === Ge && ne.echoes === 0 ? xt === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
958
+ Promise === Be && ne.echoes === 0 ? kt === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
959
959
  }
960
960
  ("" + fe).indexOf("[native code]") === -1 && (et = Ne = Q);
961
- var q = j.reject, Fe = "￿", we = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", ir = "String expected.", tt = [], $t = "__dbnames", mn = "readonly", yn = "readwrite";
961
+ var q = j.reject, Fe = "￿", we = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", or = "String expected.", tt = [], jt = "__dbnames", mn = "readonly", yn = "readwrite";
962
962
  function Ue(e, t) {
963
963
  return e ? t ? function() {
964
964
  return e.apply(this, arguments) && t.apply(this, arguments);
965
965
  } : e : t;
966
966
  }
967
- var or = { type: 3, lower: -1 / 0, lowerOpen: !1, upper: [[]], upperOpen: !1 };
968
- function jt(e) {
967
+ var ir = { type: 3, lower: -1 / 0, lowerOpen: !1, upper: [[]], upperOpen: !1 };
968
+ function Mt(e) {
969
969
  return typeof e != "string" || /\./.test(e) ? function(t) {
970
970
  return t;
971
971
  } : function(t) {
@@ -985,14 +985,14 @@ function Ma() {
985
985
  case "string":
986
986
  return t < e ? 1 : e < t ? -1 : 0;
987
987
  case "binary":
988
- return function(s, o) {
989
- for (var u = s.length, d = o.length, h = u < d ? u : d, m = 0; m < h; ++m) if (s[m] !== o[m]) return s[m] < o[m] ? -1 : 1;
988
+ return function(s, i) {
989
+ for (var u = s.length, d = i.length, h = u < d ? u : d, m = 0; m < h; ++m) if (s[m] !== i[m]) return s[m] < i[m] ? -1 : 1;
990
990
  return u === d ? 0 : u < d ? -1 : 1;
991
991
  }(lr(e), lr(t));
992
992
  case "Array":
993
- return function(s, o) {
994
- for (var u = s.length, d = o.length, h = u < d ? u : d, m = 0; m < h; ++m) {
995
- var v = H(s[m], o[m]);
993
+ return function(s, i) {
994
+ for (var u = s.length, d = i.length, h = u < d ? u : d, m = 0; m < h; ++m) {
995
+ var v = H(s[m], i[m]);
996
996
  if (v !== 0) return v;
997
997
  }
998
998
  return u === d ? 0 : u < d ? -1 : 1;
@@ -1010,17 +1010,17 @@ function Ma() {
1010
1010
  return e instanceof Uint8Array ? e : ArrayBuffer.isView(e) ? new Uint8Array(e.buffer, e.byteOffset, e.byteLength) : new Uint8Array(e);
1011
1011
  }
1012
1012
  var dr = (X.prototype._trans = function(e, t, r) {
1013
- var a = this._tx || B.trans, s = this.name, o = pe && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(e === "readonly" ? "read" : "write", " ").concat(this.name));
1013
+ var a = this._tx || G.trans, s = this.name, i = pe && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(e === "readonly" ? "read" : "write", " ").concat(this.name));
1014
1014
  function u(m, v, f) {
1015
1015
  if (!f.schema[s]) throw new L.NotFound("Table " + s + " not part of transaction");
1016
1016
  return t(f.idbtrans, f);
1017
1017
  }
1018
1018
  var d = Ze();
1019
1019
  try {
1020
- var h = a && a.db._novip === this.db._novip ? a === B.trans ? a._promise(e, u, r) : De(function() {
1020
+ var h = a && a.db._novip === this.db._novip ? a === G.trans ? a._promise(e, u, r) : De(function() {
1021
1021
  return a._promise(e, u, r);
1022
- }, { trans: a, transless: B.transless || B }) : function m(v, f, S, g) {
1023
- if (v.idbdb && (v._state.openComplete || B.letThrough || v._vip)) {
1022
+ }, { trans: a, transless: G.transless || G }) : function m(v, f, S, g) {
1023
+ if (v.idbdb && (v._state.openComplete || G.letThrough || v._vip)) {
1024
1024
  var b = v._createTransaction(f, S, v._dbSchema);
1025
1025
  try {
1026
1026
  b.create(), v._state.PR1398_maxLoop = 3;
@@ -1031,7 +1031,7 @@ function Ma() {
1031
1031
  }
1032
1032
  return b._promise(f, function(w, y) {
1033
1033
  return De(function() {
1034
- return B.trans = b, g(w, y, b);
1034
+ return G.trans = b, g(w, y, b);
1035
1035
  });
1036
1036
  }).then(function(w) {
1037
1037
  if (f === "readwrite") try {
@@ -1052,7 +1052,7 @@ function Ma() {
1052
1052
  return m(v, f, S, g);
1053
1053
  });
1054
1054
  }(this.db, e, [this.name], u);
1055
- return o && (h._consoleTask = o, h = h.catch(function(m) {
1055
+ return i && (h._consoleTask = i, h = h.catch(function(m) {
1056
1056
  return console.trace(m), q(m);
1057
1057
  })), h;
1058
1058
  } finally {
@@ -1067,7 +1067,7 @@ function Ma() {
1067
1067
  }).then(t);
1068
1068
  }, X.prototype.where = function(e) {
1069
1069
  if (typeof e == "string") return new this.db.WhereClause(this, e);
1070
- if (G(e)) return new this.db.WhereClause(this, "[".concat(e.join("+"), "]"));
1070
+ if (B(e)) return new this.db.WhereClause(this, "[".concat(e.join("+"), "]"));
1071
1071
  var t = C(e);
1072
1072
  if (t.length === 1) return this.where(t[0]).equals(e[t[0]]);
1073
1073
  var r = this.schema.indexes.concat(this.schema.primKey).filter(function(d) {
@@ -1082,8 +1082,8 @@ function Ma() {
1082
1082
  return d.keyPath.length - h.keyPath.length;
1083
1083
  })[0];
1084
1084
  if (r && this.db._maxKey !== Fe) {
1085
- var o = r.keyPath.slice(0, t.length);
1086
- return this.where(o).equals(o.map(function(h) {
1085
+ var i = r.keyPath.slice(0, t.length);
1086
+ return this.where(i).equals(i.map(function(h) {
1087
1087
  return e[h];
1088
1088
  }));
1089
1089
  }
@@ -1095,14 +1095,14 @@ function Ma() {
1095
1095
  var u = t.reduce(function(f, h) {
1096
1096
  var m = f[0], v = f[1], f = a[h], S = e[h];
1097
1097
  return [m || f, m || !f ? Ue(v, f && f.multi ? function(g) {
1098
- return g = ve(g, h), G(g) && g.some(function(b) {
1098
+ return g = ve(g, h), B(g) && g.some(function(b) {
1099
1099
  return s(S, b);
1100
1100
  });
1101
1101
  } : function(g) {
1102
1102
  return s(S, ve(g, h));
1103
1103
  }) : v];
1104
- }, [null, null]), o = u[0], u = u[1];
1105
- return o ? this.where(o.name).equals(e[o.keyPath]).filter(u) : r ? this.filter(u) : this.where(t).equals("");
1104
+ }, [null, null]), i = u[0], u = u[1];
1105
+ return i ? this.where(i.name).equals(e[i.keyPath]).filter(u) : r ? this.filter(u) : this.where(t).equals("");
1106
1106
  }, X.prototype.filter = function(e) {
1107
1107
  return this.toCollection().and(e);
1108
1108
  }, X.prototype.count = function(e) {
@@ -1118,7 +1118,7 @@ function Ma() {
1118
1118
  }, X.prototype.toCollection = function() {
1119
1119
  return new this.db.Collection(new this.db.WhereClause(this));
1120
1120
  }, X.prototype.orderBy = function(e) {
1121
- return new this.db.Collection(new this.db.WhereClause(this, G(e) ? "[".concat(e.join("+"), "]") : e));
1121
+ return new this.db.Collection(new this.db.WhereClause(this, B(e) ? "[".concat(e.join("+"), "]") : e));
1122
1122
  }, X.prototype.reverse = function() {
1123
1123
  return this.toCollection().reverse();
1124
1124
  }, X.prototype.mapToClass = function(e) {
@@ -1131,19 +1131,19 @@ function Ma() {
1131
1131
  function v() {
1132
1132
  this.constructor = h;
1133
1133
  }
1134
- i(h, m), h.prototype = m === null ? Object.create(m) : (v.prototype = m.prototype, new v());
1134
+ o(h, m), h.prototype = m === null ? Object.create(m) : (v.prototype = m.prototype, new v());
1135
1135
  }(s, t = e), Object.defineProperty(s.prototype, "db", { get: function() {
1136
1136
  return r;
1137
1137
  }, enumerable: !1, configurable: !0 }), s.prototype.table = function() {
1138
1138
  return a;
1139
1139
  }, e = s);
1140
- for (var o = /* @__PURE__ */ new Set(), u = e.prototype; u; u = ge(u)) Object.getOwnPropertyNames(u).forEach(function(h) {
1141
- return o.add(h);
1140
+ for (var i = /* @__PURE__ */ new Set(), u = e.prototype; u; u = ge(u)) Object.getOwnPropertyNames(u).forEach(function(h) {
1141
+ return i.add(h);
1142
1142
  });
1143
1143
  function d(h) {
1144
1144
  if (!h) return h;
1145
1145
  var m, v = Object.create(e.prototype);
1146
- for (m in h) if (!o.has(m)) try {
1146
+ for (m in h) if (!i.has(m)) try {
1147
1147
  v[m] = h[m];
1148
1148
  } catch {
1149
1149
  }
@@ -1155,29 +1155,29 @@ function Ma() {
1155
1155
  te(this, e);
1156
1156
  });
1157
1157
  }, X.prototype.add = function(e, t) {
1158
- var r = this, a = this.schema.primKey, s = a.auto, o = a.keyPath, u = e;
1159
- return o && s && (u = jt(o)(e)), this._trans("readwrite", function(d) {
1158
+ var r = this, a = this.schema.primKey, s = a.auto, i = a.keyPath, u = e;
1159
+ return i && s && (u = Mt(i)(e)), this._trans("readwrite", function(d) {
1160
1160
  return r.core.mutate({ trans: d, type: "add", keys: t != null ? [t] : null, values: [u] });
1161
1161
  }).then(function(d) {
1162
1162
  return d.numFailures ? j.reject(d.failures[0]) : d.lastResult;
1163
1163
  }).then(function(d) {
1164
- if (o) try {
1165
- ue(e, o, d);
1164
+ if (i) try {
1165
+ ue(e, i, d);
1166
1166
  } catch {
1167
1167
  }
1168
1168
  return d;
1169
1169
  });
1170
1170
  }, X.prototype.update = function(e, t) {
1171
- return typeof e != "object" || G(e) ? this.where(":id").equals(e).modify(t) : (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(t));
1171
+ return typeof e != "object" || B(e) ? this.where(":id").equals(e).modify(t) : (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(t));
1172
1172
  }, X.prototype.put = function(e, t) {
1173
- var r = this, a = this.schema.primKey, s = a.auto, o = a.keyPath, u = e;
1174
- return o && s && (u = jt(o)(e)), this._trans("readwrite", function(d) {
1173
+ var r = this, a = this.schema.primKey, s = a.auto, i = a.keyPath, u = e;
1174
+ return i && s && (u = Mt(i)(e)), this._trans("readwrite", function(d) {
1175
1175
  return r.core.mutate({ trans: d, type: "put", values: [u], keys: t != null ? [t] : null });
1176
1176
  }).then(function(d) {
1177
1177
  return d.numFailures ? j.reject(d.failures[0]) : d.lastResult;
1178
1178
  }).then(function(d) {
1179
- if (o) try {
1180
- ue(e, o, d);
1179
+ if (i) try {
1180
+ ue(e, i, d);
1181
1181
  } catch {
1182
1182
  }
1183
1183
  return d;
@@ -1192,7 +1192,7 @@ function Ma() {
1192
1192
  }, X.prototype.clear = function() {
1193
1193
  var e = this;
1194
1194
  return this._trans("readwrite", function(t) {
1195
- return e.core.mutate({ trans: t, type: "deleteRange", range: or });
1195
+ return e.core.mutate({ trans: t, type: "deleteRange", range: ir });
1196
1196
  }).then(function(t) {
1197
1197
  return t.numFailures ? j.reject(t.failures[0]) : void 0;
1198
1198
  });
@@ -1206,28 +1206,28 @@ function Ma() {
1206
1206
  });
1207
1207
  });
1208
1208
  }, X.prototype.bulkAdd = function(e, t, r) {
1209
- var a = this, s = Array.isArray(t) ? t : void 0, o = (r = r || (s ? void 0 : t)) ? r.allKeys : void 0;
1209
+ var a = this, s = Array.isArray(t) ? t : void 0, i = (r = r || (s ? void 0 : t)) ? r.allKeys : void 0;
1210
1210
  return this._trans("readwrite", function(u) {
1211
1211
  var m = a.schema.primKey, d = m.auto, m = m.keyPath;
1212
1212
  if (m && s) throw new L.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");
1213
1213
  if (s && s.length !== e.length) throw new L.InvalidArgument("Arguments objects and keys must have the same length");
1214
- var h = e.length, m = m && d ? e.map(jt(m)) : e;
1215
- return a.core.mutate({ trans: u, type: "add", keys: s, values: m, wantResults: o }).then(function(b) {
1214
+ var h = e.length, m = m && d ? e.map(Mt(m)) : e;
1215
+ return a.core.mutate({ trans: u, type: "add", keys: s, values: m, wantResults: i }).then(function(b) {
1216
1216
  var f = b.numFailures, S = b.results, g = b.lastResult, b = b.failures;
1217
- if (f === 0) return o ? S : g;
1217
+ if (f === 0) return i ? S : g;
1218
1218
  throw new Je("".concat(a.name, ".bulkAdd(): ").concat(f, " of ").concat(h, " operations failed"), b);
1219
1219
  });
1220
1220
  });
1221
1221
  }, X.prototype.bulkPut = function(e, t, r) {
1222
- var a = this, s = Array.isArray(t) ? t : void 0, o = (r = r || (s ? void 0 : t)) ? r.allKeys : void 0;
1222
+ var a = this, s = Array.isArray(t) ? t : void 0, i = (r = r || (s ? void 0 : t)) ? r.allKeys : void 0;
1223
1223
  return this._trans("readwrite", function(u) {
1224
1224
  var m = a.schema.primKey, d = m.auto, m = m.keyPath;
1225
1225
  if (m && s) throw new L.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");
1226
1226
  if (s && s.length !== e.length) throw new L.InvalidArgument("Arguments objects and keys must have the same length");
1227
- var h = e.length, m = m && d ? e.map(jt(m)) : e;
1228
- return a.core.mutate({ trans: u, type: "put", keys: s, values: m, wantResults: o }).then(function(b) {
1227
+ var h = e.length, m = m && d ? e.map(Mt(m)) : e;
1228
+ return a.core.mutate({ trans: u, type: "put", keys: s, values: m, wantResults: i }).then(function(b) {
1229
1229
  var f = b.numFailures, S = b.results, g = b.lastResult, b = b.failures;
1230
- if (f === 0) return o ? S : g;
1230
+ if (f === 0) return i ? S : g;
1231
1231
  throw new Je("".concat(a.name, ".bulkPut(): ").concat(f, " of ").concat(h, " operations failed"), b);
1232
1232
  });
1233
1233
  });
@@ -1236,7 +1236,7 @@ function Ma() {
1236
1236
  return u.key;
1237
1237
  }), s = e.map(function(u) {
1238
1238
  return u.changes;
1239
- }), o = [];
1239
+ }), i = [];
1240
1240
  return this._trans("readwrite", function(u) {
1241
1241
  return r.getMany({ trans: u, keys: a, cache: "clone" }).then(function(d) {
1242
1242
  var h = [], m = [];
@@ -1249,7 +1249,7 @@ function Ma() {
1249
1249
  if (H(D, g) !== 0) throw new L.Constraint("Cannot update primary key in bulkUpdate()");
1250
1250
  } else ue(w, P, D);
1251
1251
  }
1252
- o.push(S), h.push(g), m.push(w);
1252
+ i.push(S), h.push(g), m.push(w);
1253
1253
  }
1254
1254
  });
1255
1255
  var v = h.length;
@@ -1257,7 +1257,7 @@ function Ma() {
1257
1257
  var S = f.numFailures, g = f.failures;
1258
1258
  if (S === 0) return v;
1259
1259
  for (var b = 0, w = Object.keys(g); b < w.length; b++) {
1260
- var y, A = w[b], P = o[Number(A)];
1260
+ var y, A = w[b], P = i[Number(A)];
1261
1261
  P != null && (y = g[A], delete g[A], g[P] = y);
1262
1262
  }
1263
1263
  throw new Je("".concat(t.name, ".bulkUpdate(): ").concat(S, " of ").concat(v, " operations failed"), g);
@@ -1269,8 +1269,8 @@ function Ma() {
1269
1269
  return this._trans("readwrite", function(a) {
1270
1270
  return t.core.mutate({ trans: a, type: "delete", keys: e });
1271
1271
  }).then(function(u) {
1272
- var s = u.numFailures, o = u.lastResult, u = u.failures;
1273
- if (s === 0) return o;
1272
+ var s = u.numFailures, i = u.lastResult, u = u.failures;
1273
+ if (s === 0) return i;
1274
1274
  throw new Je("".concat(t.name, ".bulkDelete(): ").concat(s, " of ").concat(r, " operations failed"), u);
1275
1275
  });
1276
1276
  }, X);
@@ -1285,10 +1285,10 @@ function Ma() {
1285
1285
  if (typeof u == "string") return r[u];
1286
1286
  }
1287
1287
  var r = {};
1288
- t.addEventType = o;
1289
- for (var a = 1, s = arguments.length; a < s; ++a) o(arguments[a]);
1288
+ t.addEventType = i;
1289
+ for (var a = 1, s = arguments.length; a < s; ++a) i(arguments[a]);
1290
1290
  return t;
1291
- function o(u, d, h) {
1291
+ function i(u, d, h) {
1292
1292
  if (typeof u != "object") {
1293
1293
  var m;
1294
1294
  d = d || ea;
@@ -1303,10 +1303,10 @@ function Ma() {
1303
1303
  }
1304
1304
  C(m = u).forEach(function(f) {
1305
1305
  var S = m[f];
1306
- if (G(S)) o(f, m[f][0], m[f][1]);
1306
+ if (B(S)) i(f, m[f][0], m[f][1]);
1307
1307
  else {
1308
1308
  if (S !== "asap") throw new L.InvalidArgument("Invalid event config");
1309
- var g = o(f, ct, function() {
1309
+ var g = i(f, ct, function() {
1310
1310
  for (var b = arguments.length, w = new Array(b); b--; ) w[b] = arguments[b];
1311
1311
  g.subscribers.forEach(function(y) {
1312
1312
  Yn(function() {
@@ -1333,47 +1333,47 @@ function Ma() {
1333
1333
  return Ue(a(), t());
1334
1334
  } : t, e.justLimit = r && !a;
1335
1335
  }
1336
- function Mt(e, t) {
1336
+ function Kt(e, t) {
1337
1337
  if (e.isPrimKey) return t.primaryKey;
1338
1338
  var r = t.getIndexByKeyPath(e.index);
1339
1339
  if (!r) throw new L.Schema("KeyPath " + e.index + " on object store " + t.name + " is not indexed");
1340
1340
  return r;
1341
1341
  }
1342
1342
  function fr(e, t, r) {
1343
- var a = Mt(e, t.schema);
1343
+ var a = Kt(e, t.schema);
1344
1344
  return t.openCursor({ trans: r, values: !e.keysOnly, reverse: e.dir === "prev", unique: !!e.unique, query: { index: a, range: e.range } });
1345
1345
  }
1346
- function Kt(e, t, r, a) {
1346
+ function Bt(e, t, r, a) {
1347
1347
  var s = e.replayFilter ? Ue(e.filter, e.replayFilter()) : e.filter;
1348
1348
  if (e.or) {
1349
- var o = {}, u = function(d, h, m) {
1349
+ var i = {}, u = function(d, h, m) {
1350
1350
  var v, f;
1351
1351
  s && !s(h, m, function(S) {
1352
1352
  return h.stop(S);
1353
1353
  }, function(S) {
1354
1354
  return h.fail(S);
1355
- }) || ((f = "" + (v = h.primaryKey)) == "[object ArrayBuffer]" && (f = "" + new Uint8Array(v)), oe(o, f) || (o[f] = !0, t(d, h, m)));
1355
+ }) || ((f = "" + (v = h.primaryKey)) == "[object ArrayBuffer]" && (f = "" + new Uint8Array(v)), ie(i, f) || (i[f] = !0, t(d, h, m)));
1356
1356
  };
1357
1357
  return Promise.all([e.or._iterate(u, r), hr(fr(e, a, r), e.algorithm, u, !e.keysOnly && e.valueMapper)]);
1358
1358
  }
1359
1359
  return hr(fr(e, a, r), Ue(e.algorithm, s), t, !e.keysOnly && e.valueMapper);
1360
1360
  }
1361
1361
  function hr(e, t, r, a) {
1362
- var s = Z(a ? function(o, u, d) {
1363
- return r(a(o), u, d);
1362
+ var s = Z(a ? function(i, u, d) {
1363
+ return r(a(i), u, d);
1364
1364
  } : r);
1365
- return e.then(function(o) {
1366
- if (o) return o.start(function() {
1365
+ return e.then(function(i) {
1366
+ if (i) return i.start(function() {
1367
1367
  var u = function() {
1368
- return o.continue();
1368
+ return i.continue();
1369
1369
  };
1370
- t && !t(o, function(d) {
1370
+ t && !t(i, function(d) {
1371
1371
  return u = d;
1372
1372
  }, function(d) {
1373
- o.stop(d), u = Q;
1373
+ i.stop(d), u = Q;
1374
1374
  }, function(d) {
1375
- o.fail(d), u = Q;
1376
- }) || s(o.value, o, function(d) {
1375
+ i.fail(d), u = Q;
1376
+ }) || s(i.value, i, function(d) {
1377
1377
  return u = d;
1378
1378
  }), u();
1379
1379
  });
@@ -1383,7 +1383,7 @@ function Ma() {
1383
1383
  var t = this["@@propmod"];
1384
1384
  if (t.add !== void 0) {
1385
1385
  var r = t.add;
1386
- if (G(r)) return E(E([], G(e) ? e : [], !0), r).sort();
1386
+ if (B(r)) return E(E([], B(e) ? e : [], !0), r).sort();
1387
1387
  if (typeof r == "number") return (Number(e) || 0) + r;
1388
1388
  if (typeof r == "bigint") try {
1389
1389
  return BigInt(e) + r;
@@ -1394,7 +1394,7 @@ function Ma() {
1394
1394
  }
1395
1395
  if (t.remove !== void 0) {
1396
1396
  var a = t.remove;
1397
- if (G(a)) return G(e) ? e.filter(function(s) {
1397
+ if (B(a)) return B(e) ? e.filter(function(s) {
1398
1398
  return !a.includes(s);
1399
1399
  }).sort() : [];
1400
1400
  if (typeof a == "number") return Number(e) - a;
@@ -1410,7 +1410,7 @@ function Ma() {
1410
1410
  function gr(e) {
1411
1411
  this["@@propmod"] = e;
1412
1412
  }
1413
- var ia = (V.prototype._read = function(e, t) {
1413
+ var oa = (V.prototype._read = function(e, t) {
1414
1414
  var r = this._ctx;
1415
1415
  return r.error ? r.table._trans(null, q.bind(null, r.error)) : r.table._trans("readonly", e).then(t);
1416
1416
  }, V.prototype._write = function(e) {
@@ -1420,7 +1420,7 @@ function Ma() {
1420
1420
  var t = this._ctx;
1421
1421
  t.algorithm = Ue(t.algorithm, e);
1422
1422
  }, V.prototype._iterate = function(e, t) {
1423
- return Kt(this._ctx, e, t, this._ctx.table.core);
1423
+ return Bt(this._ctx, e, t, this._ctx.table.core);
1424
1424
  }, V.prototype.clone = function(e) {
1425
1425
  var t = Object.create(this.constructor.prototype), r = Object.create(this._ctx);
1426
1426
  return e && te(r, e), t._ctx = r, t;
@@ -1429,30 +1429,30 @@ function Ma() {
1429
1429
  }, V.prototype.each = function(e) {
1430
1430
  var t = this._ctx;
1431
1431
  return this._read(function(r) {
1432
- return Kt(t, e, r, t.table.core);
1432
+ return Bt(t, e, r, t.table.core);
1433
1433
  });
1434
1434
  }, V.prototype.count = function(e) {
1435
1435
  var t = this;
1436
1436
  return this._read(function(r) {
1437
1437
  var a = t._ctx, s = a.table.core;
1438
- if (nt(a, !0)) return s.count({ trans: r, query: { index: Mt(a, s.schema), range: a.range } }).then(function(u) {
1438
+ if (nt(a, !0)) return s.count({ trans: r, query: { index: Kt(a, s.schema), range: a.range } }).then(function(u) {
1439
1439
  return Math.min(u, a.limit);
1440
1440
  });
1441
- var o = 0;
1442
- return Kt(a, function() {
1443
- return ++o, !1;
1441
+ var i = 0;
1442
+ return Bt(a, function() {
1443
+ return ++i, !1;
1444
1444
  }, r, s).then(function() {
1445
- return o;
1445
+ return i;
1446
1446
  });
1447
1447
  }).then(e);
1448
1448
  }, V.prototype.sortBy = function(e, t) {
1449
1449
  var r = e.split(".").reverse(), a = r[0], s = r.length - 1;
1450
- function o(h, m) {
1451
- return m ? o(h[r[m]], m - 1) : h[a];
1450
+ function i(h, m) {
1451
+ return m ? i(h[r[m]], m - 1) : h[a];
1452
1452
  }
1453
1453
  var u = this._ctx.dir === "next" ? 1 : -1;
1454
1454
  function d(h, m) {
1455
- return H(o(h, s), o(m, s)) * u;
1455
+ return H(i(h, s), i(m, s)) * u;
1456
1456
  }
1457
1457
  return this.toArray(function(h) {
1458
1458
  return h.sort(d);
@@ -1462,13 +1462,13 @@ function Ma() {
1462
1462
  return this._read(function(r) {
1463
1463
  var a = t._ctx;
1464
1464
  if (a.dir === "next" && nt(a, !0) && 0 < a.limit) {
1465
- var s = a.valueMapper, o = Mt(a, a.table.core.schema);
1466
- return a.table.core.query({ trans: r, limit: a.limit, values: !0, query: { index: o, range: a.range } }).then(function(d) {
1465
+ var s = a.valueMapper, i = Kt(a, a.table.core.schema);
1466
+ return a.table.core.query({ trans: r, limit: a.limit, values: !0, query: { index: i, range: a.range } }).then(function(d) {
1467
1467
  return d = d.result, s ? d.map(s) : d;
1468
1468
  });
1469
1469
  }
1470
1470
  var u = [];
1471
- return Kt(a, function(d) {
1471
+ return Bt(a, function(d) {
1472
1472
  return u.push(d);
1473
1473
  }, r, a.table.core).then(function() {
1474
1474
  return u;
@@ -1543,7 +1543,7 @@ function Ma() {
1543
1543
  }, V.prototype.primaryKeys = function(e) {
1544
1544
  var t = this._ctx;
1545
1545
  if (t.dir === "next" && nt(t, !0) && 0 < t.limit) return this._read(function(a) {
1546
- var s = Mt(t, t.table.core.schema);
1546
+ var s = Kt(t, t.table.core.schema);
1547
1547
  return t.table.core.query({ trans: a, values: !1, limit: t.limit, query: { index: s, range: t.range } });
1548
1548
  }).then(function(a) {
1549
1549
  return a.result;
@@ -1568,15 +1568,15 @@ function Ma() {
1568
1568
  if (!e || !e.multi) return this;
1569
1569
  var t = {};
1570
1570
  return bn(this._ctx, function(s) {
1571
- var a = s.primaryKey.toString(), s = oe(t, a);
1571
+ var a = s.primaryKey.toString(), s = ie(t, a);
1572
1572
  return t[a] = !0, !s;
1573
1573
  }), this;
1574
1574
  }, V.prototype.modify = function(e) {
1575
1575
  var t = this, r = this._ctx;
1576
1576
  return this._write(function(a) {
1577
- var s, o, u;
1578
- u = typeof e == "function" ? e : (s = C(e), o = s.length, function(y) {
1579
- for (var A = !1, P = 0; P < o; ++P) {
1577
+ var s, i, u;
1578
+ u = typeof e == "function" ? e : (s = C(e), i = s.length, function(y) {
1579
+ for (var A = !1, P = 0; P < i; ++P) {
1580
1580
  var D = s[P], N = e[D], R = ve(y, D);
1581
1581
  N instanceof pt ? (ue(y, D, N.execute(R)), A = !0) : R !== N && (ue(y, D, N), A = !0);
1582
1582
  }
@@ -1619,7 +1619,7 @@ function Ma() {
1619
1619
  }
1620
1620
  var P = nt(r) && r.limit === 1 / 0 && (typeof e != "function" || e === En) && { index: r.index, range: r.range };
1621
1621
  return A(0).then(function() {
1622
- if (0 < g.length) throw new At("Error modifying one or more objects", g, b, w);
1622
+ if (0 < g.length) throw new Pt("Error modifying one or more objects", g, b, w);
1623
1623
  return y.length;
1624
1624
  });
1625
1625
  });
@@ -1628,13 +1628,13 @@ function Ma() {
1628
1628
  var e = this._ctx, t = e.range;
1629
1629
  return nt(e) && (e.isPrimKey || t.type === 3) ? this._write(function(r) {
1630
1630
  var a = e.table.core.schema.primaryKey, s = t;
1631
- return e.table.core.count({ trans: r, query: { index: a, range: s } }).then(function(o) {
1631
+ return e.table.core.count({ trans: r, query: { index: a, range: s } }).then(function(i) {
1632
1632
  return e.table.core.mutate({ trans: r, type: "deleteRange", range: s }).then(function(u) {
1633
1633
  var d = u.failures;
1634
- if (u.lastResult, u.results, u = u.numFailures, u) throw new At("Could not delete some values", Object.keys(d).map(function(h) {
1634
+ if (u.lastResult, u.results, u = u.numFailures, u) throw new Pt("Could not delete some values", Object.keys(d).map(function(h) {
1635
1635
  return d[h];
1636
- }), o - u);
1637
- return o - u;
1636
+ }), i - u);
1637
+ return i - u;
1638
1638
  });
1639
1639
  });
1640
1640
  }) : this.modify(En);
@@ -1644,7 +1644,7 @@ function Ma() {
1644
1644
  var En = function(e, t) {
1645
1645
  return t.value = null;
1646
1646
  };
1647
- function oa(e, t) {
1647
+ function ia(e, t) {
1648
1648
  return e < t ? -1 : e === t ? 0 : 1;
1649
1649
  }
1650
1650
  function ca(e, t) {
@@ -1659,22 +1659,22 @@ function Ma() {
1659
1659
  }).limit(0);
1660
1660
  }
1661
1661
  function Gt(e, t, r, a) {
1662
- var s, o, u, d, h, m, v, f = r.length;
1662
+ var s, i, u, d, h, m, v, f = r.length;
1663
1663
  if (!r.every(function(b) {
1664
1664
  return typeof b == "string";
1665
- })) return le(e, ir);
1665
+ })) return le(e, or);
1666
1666
  function S(b) {
1667
1667
  s = b === "next" ? function(y) {
1668
1668
  return y.toUpperCase();
1669
1669
  } : function(y) {
1670
1670
  return y.toLowerCase();
1671
- }, o = b === "next" ? function(y) {
1671
+ }, i = b === "next" ? function(y) {
1672
1672
  return y.toLowerCase();
1673
1673
  } : function(y) {
1674
1674
  return y.toUpperCase();
1675
- }, u = b === "next" ? oa : ca;
1675
+ }, u = b === "next" ? ia : ca;
1676
1676
  var w = r.map(function(y) {
1677
- return { lower: o(y), upper: s(y) };
1677
+ return { lower: i(y), upper: s(y) };
1678
1678
  }).sort(function(y, A) {
1679
1679
  return u(y.lower, A.lower);
1680
1680
  });
@@ -1693,7 +1693,7 @@ function Ma() {
1693
1693
  return e._addAlgorithm(function(b, w, y) {
1694
1694
  var A = b.key;
1695
1695
  if (typeof A != "string") return !1;
1696
- var P = o(A);
1696
+ var P = i(A);
1697
1697
  if (t(P, h, g)) return !0;
1698
1698
  for (var D = null, N = g; N < f; ++N) {
1699
1699
  var R = function(k, T, I, $, x, M) {
@@ -1749,7 +1749,7 @@ function Ma() {
1749
1749
  return Te(void 0, e);
1750
1750
  });
1751
1751
  }, re.prototype.startsWith = function(e) {
1752
- return typeof e != "string" ? le(this, ir) : this.between(e, e + Fe, !0, !0);
1752
+ return typeof e != "string" ? le(this, or) : this.between(e, e + Fe, !0, !0);
1753
1753
  }, re.prototype.startsWithIgnoreCase = function(e) {
1754
1754
  return e === "" ? this.startsWith(e) : Gt(this, function(t, r) {
1755
1755
  return t.indexOf(r[0]) === 0;
@@ -1781,14 +1781,14 @@ function Ma() {
1781
1781
  var a = new this.Collection(this, function() {
1782
1782
  return Te(t[0], t[t.length - 1]);
1783
1783
  });
1784
- a._ondirectionchange = function(o) {
1785
- r = o === "next" ? e._ascending : e._descending, t.sort(r);
1784
+ a._ondirectionchange = function(i) {
1785
+ r = i === "next" ? e._ascending : e._descending, t.sort(r);
1786
1786
  };
1787
1787
  var s = 0;
1788
- return a._addAlgorithm(function(o, u, d) {
1789
- for (var h = o.key; 0 < r(h, t[s]); ) if (++s === t.length) return u(d), !1;
1788
+ return a._addAlgorithm(function(i, u, d) {
1789
+ for (var h = i.key; 0 < r(h, t[s]); ) if (++s === t.length) return u(d), !1;
1790
1790
  return r(h, t[s]) === 0 || (u(function() {
1791
- o.continue(t[s]);
1791
+ i.continue(t[s]);
1792
1792
  }), !1);
1793
1793
  }), a;
1794
1794
  }, re.prototype.notEqual = function(e) {
@@ -1806,7 +1806,7 @@ function Ma() {
1806
1806
  }, null);
1807
1807
  return t.push([e[e.length - 1], this.db._maxKey]), this.inAnyRange(t, { includeLowers: !1, includeUppers: !1 });
1808
1808
  }, re.prototype.inAnyRange = function(A, t) {
1809
- var r = this, a = this._cmp, s = this._ascending, o = this._descending, u = this._min, d = this._max;
1809
+ var r = this, a = this._cmp, s = this._ascending, i = this._descending, u = this._min, d = this._max;
1810
1810
  if (A.length === 0) return rt(this);
1811
1811
  if (!A.every(function(P) {
1812
1812
  return P[0] !== void 0 && P[1] !== void 0 && s(P[0], P[1]) <= 0;
@@ -1834,14 +1834,14 @@ function Ma() {
1834
1834
  } : function(P) {
1835
1835
  return 0 <= s(P, v[g][1]);
1836
1836
  }, w = h ? function(P) {
1837
- return 0 < o(P, v[g][0]);
1837
+ return 0 < i(P, v[g][0]);
1838
1838
  } : function(P) {
1839
- return 0 <= o(P, v[g][0]);
1839
+ return 0 <= i(P, v[g][0]);
1840
1840
  }, y = b, A = new this.Collection(this, function() {
1841
1841
  return Te(v[0][0], v[v.length - 1][1], !h, !m);
1842
1842
  });
1843
1843
  return A._ondirectionchange = function(P) {
1844
- f = P === "next" ? (y = b, s) : (y = w, o), v.sort(S);
1844
+ f = P === "next" ? (y = b, s) : (y = w, i), v.sort(S);
1845
1845
  }, A._addAlgorithm(function(P, D, N) {
1846
1846
  for (var R, k = P.key; y(k); ) if (++g === v.length) return D(N), !1;
1847
1847
  return !b(R = k) && !w(R) || (r._cmp(k, v[g][1]) === 0 || r._cmp(k, v[g][0]) === 0 || D(function() {
@@ -1867,9 +1867,9 @@ function Ma() {
1867
1867
  e.stopPropagation && e.stopPropagation(), e.preventDefault && e.preventDefault();
1868
1868
  }
1869
1869
  var yt = "storagemutated", wn = "x-storagemutated-1", Ie = ht(null, yt), ua = (ye.prototype._lock = function() {
1870
- return it(!B.global), ++this._reculock, this._reculock !== 1 || B.global || (B.lockOwnerFor = this), this;
1870
+ return ot(!G.global), ++this._reculock, this._reculock !== 1 || G.global || (G.lockOwnerFor = this), this;
1871
1871
  }, ye.prototype._unlock = function() {
1872
- if (it(!B.global), --this._reculock == 0) for (B.global || (B.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
1872
+ if (ot(!G.global), --this._reculock == 0) for (G.global || (G.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
1873
1873
  var e = this._blockedFuncs.shift();
1874
1874
  try {
1875
1875
  We(e[1], e[0]);
@@ -1878,12 +1878,12 @@ function Ma() {
1878
1878
  }
1879
1879
  return this;
1880
1880
  }, ye.prototype._locked = function() {
1881
- return this._reculock && B.lockOwnerFor !== this;
1881
+ return this._reculock && G.lockOwnerFor !== this;
1882
1882
  }, ye.prototype.create = function(e) {
1883
1883
  var t = this;
1884
1884
  if (!this.mode) return this;
1885
1885
  var r = this.db.idbdb, a = this.db._state.dbOpenError;
1886
- if (it(!this.idbtrans), !e && !r) switch (a && a.name) {
1886
+ if (ot(!this.idbtrans), !e && !r) switch (a && a.name) {
1887
1887
  case "DatabaseClosedError":
1888
1888
  throw new L.DatabaseClosed(a);
1889
1889
  case "MissingAPIError":
@@ -1892,7 +1892,7 @@ function Ma() {
1892
1892
  throw new L.OpenFailed(a);
1893
1893
  }
1894
1894
  if (!this.active) throw new L.TransactionInactive();
1895
- return it(this._completion._state === null), (e = this.idbtrans = e || (this.db.core || r).transaction(this.storeNames, this.mode, { durability: this.chromeTransactionDurability })).onerror = Z(function(s) {
1895
+ return ot(this._completion._state === null), (e = this.idbtrans = e || (this.db.core || r).transaction(this.storeNames, this.mode, { durability: this.chromeTransactionDurability })).onerror = Z(function(s) {
1896
1896
  mt(s), t._reject(e.error);
1897
1897
  }), e.onabort = Z(function(s) {
1898
1898
  mt(s), t.active && t._reject(new L.Abort(e.error)), t.active = !1, t.on("abort").fire(s);
@@ -1903,24 +1903,24 @@ function Ma() {
1903
1903
  var a = this;
1904
1904
  if (e === "readwrite" && this.mode !== "readwrite") return q(new L.ReadOnly("Transaction is readonly"));
1905
1905
  if (!this.active) return q(new L.TransactionInactive());
1906
- if (this._locked()) return new j(function(o, u) {
1906
+ if (this._locked()) return new j(function(i, u) {
1907
1907
  a._blockedFuncs.push([function() {
1908
- a._promise(e, t, r).then(o, u);
1909
- }, B]);
1908
+ a._promise(e, t, r).then(i, u);
1909
+ }, G]);
1910
1910
  });
1911
1911
  if (r) return De(function() {
1912
- var o = new j(function(u, d) {
1912
+ var i = new j(function(u, d) {
1913
1913
  a._lock();
1914
1914
  var h = t(u, d, a);
1915
1915
  h && h.then && h.then(u, d);
1916
1916
  });
1917
- return o.finally(function() {
1917
+ return i.finally(function() {
1918
1918
  return a._unlock();
1919
- }), o._lib = !0, o;
1919
+ }), i._lib = !0, i;
1920
1920
  });
1921
- var s = new j(function(o, u) {
1922
- var d = t(o, u, a);
1923
- d && d.then && d.then(o, u);
1921
+ var s = new j(function(i, u) {
1922
+ var d = t(i, u, a);
1923
+ d && d.then && d.then(i, u);
1924
1924
  });
1925
1925
  return s._lib = !0, s;
1926
1926
  }, ye.prototype._root = function() {
@@ -1929,14 +1929,14 @@ function Ma() {
1929
1929
  var t, r = this._root(), a = j.resolve(e);
1930
1930
  r._waitingFor ? r._waitingFor = r._waitingFor.then(function() {
1931
1931
  return a;
1932
- }) : (r._waitingFor = a, r._waitingQueue = [], t = r.idbtrans.objectStore(r.storeNames[0]), function o() {
1932
+ }) : (r._waitingFor = a, r._waitingQueue = [], t = r.idbtrans.objectStore(r.storeNames[0]), function i() {
1933
1933
  for (++r._spinCount; r._waitingQueue.length; ) r._waitingQueue.shift()();
1934
- r._waitingFor && (t.get(-1 / 0).onsuccess = o);
1934
+ r._waitingFor && (t.get(-1 / 0).onsuccess = i);
1935
1935
  }());
1936
1936
  var s = r._waitingFor;
1937
- return new j(function(o, u) {
1937
+ return new j(function(i, u) {
1938
1938
  a.then(function(d) {
1939
- return r._waitingQueue.push(Z(o.bind(null, d)));
1939
+ return r._waitingQueue.push(Z(i.bind(null, d)));
1940
1940
  }, function(d) {
1941
1941
  return r._waitingQueue.push(Z(u.bind(null, d)));
1942
1942
  }).finally(function() {
@@ -1947,15 +1947,15 @@ function Ma() {
1947
1947
  this.active && (this.active = !1, this.idbtrans && this.idbtrans.abort(), this._reject(new L.Abort()));
1948
1948
  }, ye.prototype.table = function(e) {
1949
1949
  var t = this._memoizedTables || (this._memoizedTables = {});
1950
- if (oe(t, e)) return t[e];
1950
+ if (ie(t, e)) return t[e];
1951
1951
  var r = this.schema[e];
1952
1952
  if (!r) throw new L.NotFound("Table " + e + " not part of transaction");
1953
1953
  return r = new this.db.Table(e, r, this), r.core = this.db.core.table(e), t[e] = r;
1954
1954
  }, ye);
1955
1955
  function ye() {
1956
1956
  }
1957
- function Sn(e, t, r, a, s, o, u) {
1958
- return { name: e, keyPath: t, unique: r, multi: a, auto: s, compound: o, src: (r && !u ? "&" : "") + (a ? "*" : "") + (s ? "++" : "") + yr(t) };
1957
+ function Sn(e, t, r, a, s, i, u) {
1958
+ return { name: e, keyPath: t, unique: r, multi: a, auto: s, compound: i, src: (r && !u ? "&" : "") + (a ? "*" : "") + (s ? "++" : "") + yr(t) };
1959
1959
  }
1960
1960
  function yr(e) {
1961
1961
  return typeof e == "string" ? e : e ? "[" + [].join.call(e, "+") + "]" : "";
@@ -1963,8 +1963,8 @@ function Ma() {
1963
1963
  function On(e, t, r) {
1964
1964
  return { name: e, primKey: t, indexes: r, mappedClass: null, idxByName: (a = function(s) {
1965
1965
  return [s.name, s];
1966
- }, r.reduce(function(s, o, u) {
1967
- return u = a(o, u), u && (s[u[0]] = u[1]), s;
1966
+ }, r.reduce(function(s, i, u) {
1967
+ return u = a(i, u), u && (s[u[0]] = u[1]), s;
1968
1968
  }, {})) };
1969
1969
  var a;
1970
1970
  }
@@ -2024,10 +2024,10 @@ function Ma() {
2024
2024
  N.type === 3 ? U.push(x = T.clear()) : U.push(x = T.delete(a(N)));
2025
2025
  } else {
2026
2026
  var I = $ ? I ? [D, P] : [D, null] : [P, null], W = I[0], se = I[1];
2027
- if ($) for (var ie = 0; ie < M; ++ie) U.push(x = se && se[ie] !== void 0 ? T[A](W[ie], se[ie]) : T[A](W[ie])), x.onerror = F;
2028
- else for (ie = 0; ie < M; ++ie) U.push(x = T[A](W[ie])), x.onerror = F;
2027
+ if ($) for (var oe = 0; oe < M; ++oe) U.push(x = se && se[oe] !== void 0 ? T[A](W[oe], se[oe]) : T[A](W[oe])), x.onerror = F;
2028
+ else for (oe = 0; oe < M; ++oe) U.push(x = T[A](W[oe])), x.onerror = F;
2029
2029
  }
2030
- function Zt(ce) {
2030
+ function qt(ce) {
2031
2031
  ce = ce.target.result, U.forEach(function(Ve, Wn) {
2032
2032
  return Ve.error != null && (z[Wn] = Ve.error);
2033
2033
  }), R({ numFailures: de, failures: z, results: A === "delete" ? P : U.map(function(Ve) {
@@ -2035,8 +2035,8 @@ function Ma() {
2035
2035
  }), lastResult: ce });
2036
2036
  }
2037
2037
  x.onerror = function(ce) {
2038
- F(ce), Zt(ce);
2039
- }, x.onsuccess = Zt;
2038
+ F(ce), qt(ce);
2039
+ }, x.onsuccess = qt;
2040
2040
  });
2041
2041
  }, getMany: function(w) {
2042
2042
  var y = w.trans, A = w.keys;
@@ -2080,14 +2080,14 @@ function Ma() {
2080
2080
  }, W.trans = y, W.stop = W.continue = W.continuePrimaryKey = W.advance = function() {
2081
2081
  throw new Error("Cursor not started");
2082
2082
  }, W.fail = Z(k), W.next = function() {
2083
- var se = this, ie = 1;
2083
+ var se = this, oe = 1;
2084
2084
  return this.start(function() {
2085
- return ie-- ? se.continue() : se.stop();
2085
+ return oe-- ? se.continue() : se.stop();
2086
2086
  }).then(function() {
2087
2087
  return se;
2088
2088
  });
2089
2089
  }, W.start = function(se) {
2090
- function ie() {
2090
+ function oe() {
2091
2091
  if (x.result) try {
2092
2092
  se();
2093
2093
  } catch (ce) {
@@ -2097,14 +2097,14 @@ function Ma() {
2097
2097
  throw new Error("Cursor behind last entry");
2098
2098
  }, W.stop();
2099
2099
  }
2100
- var Zt = new Promise(function(ce, Ve) {
2100
+ var qt = new Promise(function(ce, Ve) {
2101
2101
  ce = Z(ce), x.onerror = me(Ve), W.fail = Ve, W.stop = function(Wn) {
2102
2102
  W.stop = W.continue = W.continuePrimaryKey = W.advance = de, ce(Wn);
2103
2103
  };
2104
2104
  });
2105
2105
  return x.onsuccess = Z(function(ce) {
2106
- x.onsuccess = ie, ie();
2107
- }), W.continue = F, W.continuePrimaryKey = U, W.advance = z, ie(), Zt;
2106
+ x.onsuccess = oe, oe();
2107
+ }), W.continue = F, W.continuePrimaryKey = U, W.advance = z, oe(), qt;
2108
2108
  }, R(W)) : R(null);
2109
2109
  }, k);
2110
2110
  });
@@ -2118,13 +2118,13 @@ function Ma() {
2118
2118
  });
2119
2119
  } };
2120
2120
  }
2121
- var o, u, d, v = (u = h, d = br((o = e).objectStoreNames), { schema: { name: o.name, tables: d.map(function(S) {
2121
+ var i, u, d, v = (u = h, d = br((i = e).objectStoreNames), { schema: { name: i.name, tables: d.map(function(S) {
2122
2122
  return u.objectStore(S);
2123
2123
  }).map(function(S) {
2124
- var g = S.keyPath, y = S.autoIncrement, b = G(g), w = {}, y = { name: S.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: g == null, compound: b, keyPath: g, autoIncrement: y, unique: !0, extractKey: _n(g) }, indexes: br(S.indexNames).map(function(A) {
2124
+ var g = S.keyPath, y = S.autoIncrement, b = B(g), w = {}, y = { name: S.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: g == null, compound: b, keyPath: g, autoIncrement: y, unique: !0, extractKey: _n(g) }, indexes: br(S.indexNames).map(function(A) {
2125
2125
  return S.index(A);
2126
2126
  }).map(function(N) {
2127
- var P = N.name, D = N.unique, R = N.multiEntry, N = N.keyPath, R = { name: P, compound: G(N), keyPath: N, unique: D, multiEntry: R, extractKey: _n(N) };
2127
+ var P = N.name, D = N.unique, R = N.multiEntry, N = N.keyPath, R = { name: P, compound: B(N), keyPath: N, unique: D, multiEntry: R, extractKey: _n(N) };
2128
2128
  return w[vt(N)] = R;
2129
2129
  }), getIndexByKeyPath: function(A) {
2130
2130
  return w[vt(A)];
@@ -2140,22 +2140,22 @@ function Ma() {
2140
2140
  }
2141
2141
  function fa(e, t, r, a) {
2142
2142
  var s = r.IDBKeyRange;
2143
- return r.indexedDB, { dbcore: (a = da(t, s, a), e.dbcore.reduce(function(o, u) {
2144
- return u = u.create, l(l({}, o), u(o));
2143
+ return r.indexedDB, { dbcore: (a = da(t, s, a), e.dbcore.reduce(function(i, u) {
2144
+ return u = u.create, l(l({}, i), u(i));
2145
2145
  }, a)) };
2146
2146
  }
2147
- function Bt(e, a) {
2147
+ function Lt(e, a) {
2148
2148
  var r = a.db, a = fa(e._middlewares, r, e._deps, a);
2149
2149
  e.core = a.dbcore, e.tables.forEach(function(s) {
2150
- var o = s.name;
2150
+ var i = s.name;
2151
2151
  e.core.schema.tables.some(function(u) {
2152
- return u.name === o;
2153
- }) && (s.core = e.core.table(o), e[o] instanceof e.Table && (e[o].core = s.core));
2152
+ return u.name === i;
2153
+ }) && (s.core = e.core.table(i), e[i] instanceof e.Table && (e[i].core = s.core));
2154
2154
  });
2155
2155
  }
2156
- function Lt(e, t, r, a) {
2156
+ function Wt(e, t, r, a) {
2157
2157
  r.forEach(function(s) {
2158
- var o = a[s];
2158
+ var i = a[s];
2159
2159
  t.forEach(function(u) {
2160
2160
  var d = function h(m, v) {
2161
2161
  return Fr(m, v) || (m = ge(m)) && h(m, v);
@@ -2163,8 +2163,8 @@ function Ma() {
2163
2163
  (!d || "value" in d && d.value === void 0) && (u === e.Transaction.prototype || u instanceof e.Transaction ? Ae(u, s, { get: function() {
2164
2164
  return this.table(s);
2165
2165
  }, set: function(h) {
2166
- Ot(this, s, { value: h, writable: !0, configurable: !0, enumerable: !0 });
2167
- } }) : u[s] = new e.Table(s, o));
2166
+ _t(this, s, { value: h, writable: !0, configurable: !0, enumerable: !0 });
2167
+ } }) : u[s] = new e.Table(s, i));
2168
2168
  });
2169
2169
  });
2170
2170
  }
@@ -2179,19 +2179,19 @@ function Ma() {
2179
2179
  function ga(e, t, r, a) {
2180
2180
  var s = e._dbSchema;
2181
2181
  r.objectStoreNames.contains("$meta") && !s.$meta && (s.$meta = On("$meta", Er("")[0], []), e._storeNames.push("$meta"));
2182
- var o = e._createTransaction("readwrite", e._storeNames, s);
2183
- o.create(r), o._completion.catch(a);
2184
- var u = o._reject.bind(o), d = B.transless || B;
2182
+ var i = e._createTransaction("readwrite", e._storeNames, s);
2183
+ i.create(r), i._completion.catch(a);
2184
+ var u = i._reject.bind(i), d = G.transless || G;
2185
2185
  De(function() {
2186
- return B.trans = o, B.transless = d, t !== 0 ? (Bt(e, r), m = t, ((h = o).storeNames.includes("$meta") ? h.table("$meta").get("version").then(function(v) {
2186
+ return G.trans = i, G.transless = d, t !== 0 ? (Lt(e, r), m = t, ((h = i).storeNames.includes("$meta") ? h.table("$meta").get("version").then(function(v) {
2187
2187
  return v ?? m;
2188
2188
  }) : j.resolve(m)).then(function(v) {
2189
- return S = v, g = o, b = r, w = [], v = (f = e)._versions, y = f._dbSchema = Ft(0, f.idbdb, b), (v = v.filter(function(A) {
2189
+ return S = v, g = i, b = r, w = [], v = (f = e)._versions, y = f._dbSchema = Ut(0, f.idbdb, b), (v = v.filter(function(A) {
2190
2190
  return A._cfg.version >= S;
2191
2191
  })).length !== 0 ? (v.forEach(function(A) {
2192
2192
  w.push(function() {
2193
2193
  var P = y, D = A._cfg.dbschema;
2194
- Ut(f, P, b), Ut(f, D, b), y = f._dbSchema = D;
2194
+ zt(f, P, b), zt(f, D, b), y = f._dbSchema = D;
2195
2195
  var N = Pn(P, D);
2196
2196
  N.add.forEach(function($) {
2197
2197
  Dn(b, $[0], $[1].primKey, $[1].indexes);
@@ -2199,20 +2199,20 @@ function Ma() {
2199
2199
  if ($.recreate) throw new L.Upgrade("Not yet support for changing primary key");
2200
2200
  var x = b.objectStore($.name);
2201
2201
  $.add.forEach(function(M) {
2202
- return Wt(x, M);
2202
+ return Ft(x, M);
2203
2203
  }), $.change.forEach(function(M) {
2204
- x.deleteIndex(M.name), Wt(x, M);
2204
+ x.deleteIndex(M.name), Ft(x, M);
2205
2205
  }), $.del.forEach(function(M) {
2206
2206
  return x.deleteIndex(M);
2207
2207
  });
2208
2208
  });
2209
2209
  var R = A._cfg.contentUpgrade;
2210
2210
  if (R && A._cfg.version > S) {
2211
- Bt(f, b), g._memoizedTables = {};
2211
+ Lt(f, b), g._memoizedTables = {};
2212
2212
  var k = Qn(D);
2213
2213
  N.del.forEach(function($) {
2214
2214
  k[$] = P[$];
2215
- }), An(f, [f.Transaction.prototype]), Lt(f, [f.Transaction.prototype], C(k), k), g.schema = k;
2215
+ }), An(f, [f.Transaction.prototype]), Wt(f, [f.Transaction.prototype], C(k), k), g.schema = k;
2216
2216
  var T, I = an(R);
2217
2217
  return I && et(), N = j.follow(function() {
2218
2218
  var $;
@@ -2225,7 +2225,7 @@ function Ma() {
2225
2225
  var D, N, R = A._cfg.dbschema;
2226
2226
  D = R, N = P, [].slice.call(N.db.objectStoreNames).forEach(function(k) {
2227
2227
  return D[k] == null && N.db.deleteObjectStore(k);
2228
- }), An(f, [f.Transaction.prototype]), Lt(f, [f.Transaction.prototype], f._storeNames, f._dbSchema), g.schema = f._dbSchema;
2228
+ }), An(f, [f.Transaction.prototype]), Wt(f, [f.Transaction.prototype], f._storeNames, f._dbSchema), g.schema = f._dbSchema;
2229
2229
  }), w.push(function(P) {
2230
2230
  f.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(f.idbdb.version / 10) === A._cfg.version ? (f.idbdb.deleteObjectStore("$meta"), delete f._dbSchema.$meta, f._storeNames = f._storeNames.filter(function(D) {
2231
2231
  return D !== "$meta";
@@ -2239,37 +2239,37 @@ function Ma() {
2239
2239
  var f, S, g, b, w, y;
2240
2240
  }).catch(u)) : (C(s).forEach(function(v) {
2241
2241
  Dn(r, v, s[v].primKey, s[v].indexes);
2242
- }), Bt(e, r), void j.follow(function() {
2243
- return e.on.populate.fire(o);
2242
+ }), Lt(e, r), void j.follow(function() {
2243
+ return e.on.populate.fire(i);
2244
2244
  }).catch(u));
2245
2245
  var h, m;
2246
2246
  });
2247
2247
  }
2248
2248
  function pa(e, t) {
2249
2249
  vr(e._dbSchema, t), t.db.version % 10 != 0 || t.objectStoreNames.contains("$meta") || t.db.createObjectStore("$meta").add(Math.ceil(t.db.version / 10 - 1), "version");
2250
- var r = Ft(0, e.idbdb, t);
2251
- Ut(e, e._dbSchema, t);
2250
+ var r = Ut(0, e.idbdb, t);
2251
+ zt(e, e._dbSchema, t);
2252
2252
  for (var a = 0, s = Pn(r, e._dbSchema).change; a < s.length; a++) {
2253
- var o = function(u) {
2253
+ var i = function(u) {
2254
2254
  if (u.change.length || u.recreate) return console.warn("Unable to patch indexes of table ".concat(u.name, " because it has changes on the type of index or primary key.")), { value: void 0 };
2255
2255
  var d = t.objectStore(u.name);
2256
2256
  u.add.forEach(function(h) {
2257
- pe && console.debug("Dexie upgrade patch: Creating missing index ".concat(u.name, ".").concat(h.src)), Wt(d, h);
2257
+ pe && console.debug("Dexie upgrade patch: Creating missing index ".concat(u.name, ".").concat(h.src)), Ft(d, h);
2258
2258
  });
2259
2259
  }(s[a]);
2260
- if (typeof o == "object") return o.value;
2260
+ if (typeof i == "object") return i.value;
2261
2261
  }
2262
2262
  }
2263
2263
  function Pn(e, t) {
2264
2264
  var r, a = { del: [], add: [], change: [] };
2265
2265
  for (r in e) t[r] || a.del.push(r);
2266
2266
  for (r in t) {
2267
- var s = e[r], o = t[r];
2267
+ var s = e[r], i = t[r];
2268
2268
  if (s) {
2269
- var u = { name: r, def: o, recreate: !1, del: [], add: [], change: [] };
2270
- if ("" + (s.primKey.keyPath || "") != "" + (o.primKey.keyPath || "") || s.primKey.auto !== o.primKey.auto) u.recreate = !0, a.change.push(u);
2269
+ var u = { name: r, def: i, recreate: !1, del: [], add: [], change: [] };
2270
+ if ("" + (s.primKey.keyPath || "") != "" + (i.primKey.keyPath || "") || s.primKey.auto !== i.primKey.auto) u.recreate = !0, a.change.push(u);
2271
2271
  else {
2272
- var d = s.idxByName, h = o.idxByName, m = void 0;
2272
+ var d = s.idxByName, h = i.idxByName, m = void 0;
2273
2273
  for (m in d) h[m] || u.del.push(m);
2274
2274
  for (m in h) {
2275
2275
  var v = d[m], f = h[m];
@@ -2277,14 +2277,14 @@ function Ma() {
2277
2277
  }
2278
2278
  (0 < u.del.length || 0 < u.add.length || 0 < u.change.length) && a.change.push(u);
2279
2279
  }
2280
- } else a.add.push([r, o]);
2280
+ } else a.add.push([r, i]);
2281
2281
  }
2282
2282
  return a;
2283
2283
  }
2284
2284
  function Dn(e, t, r, a) {
2285
2285
  var s = e.db.createObjectStore(t, r.keyPath ? { keyPath: r.keyPath, autoIncrement: r.auto } : { autoIncrement: r.auto });
2286
- return a.forEach(function(o) {
2287
- return Wt(s, o);
2286
+ return a.forEach(function(i) {
2287
+ return Ft(s, i);
2288
2288
  }), s;
2289
2289
  }
2290
2290
  function vr(e, t) {
@@ -2292,26 +2292,26 @@ function Ma() {
2292
2292
  t.db.objectStoreNames.contains(r) || (pe && console.debug("Dexie: Creating missing table", r), Dn(t, r, e[r].primKey, e[r].indexes));
2293
2293
  });
2294
2294
  }
2295
- function Wt(e, t) {
2295
+ function Ft(e, t) {
2296
2296
  e.createIndex(t.name, t.keyPath, { unique: t.unique, multiEntry: t.multi });
2297
2297
  }
2298
- function Ft(e, t, r) {
2298
+ function Ut(e, t, r) {
2299
2299
  var a = {};
2300
- return _t(t.objectStoreNames, 0).forEach(function(s) {
2301
- for (var o = r.objectStore(s), u = Sn(yr(m = o.keyPath), m || "", !0, !1, !!o.autoIncrement, m && typeof m != "string", !0), d = [], h = 0; h < o.indexNames.length; ++h) {
2302
- var v = o.index(o.indexNames[h]), m = v.keyPath, v = Sn(v.name, m, !!v.unique, !!v.multiEntry, !1, m && typeof m != "string", !1);
2300
+ return At(t.objectStoreNames, 0).forEach(function(s) {
2301
+ for (var i = r.objectStore(s), u = Sn(yr(m = i.keyPath), m || "", !0, !1, !!i.autoIncrement, m && typeof m != "string", !0), d = [], h = 0; h < i.indexNames.length; ++h) {
2302
+ var v = i.index(i.indexNames[h]), m = v.keyPath, v = Sn(v.name, m, !!v.unique, !!v.multiEntry, !1, m && typeof m != "string", !1);
2303
2303
  d.push(v);
2304
2304
  }
2305
2305
  a[s] = On(s, u, d);
2306
2306
  }), a;
2307
2307
  }
2308
- function Ut(e, t, r) {
2308
+ function zt(e, t, r) {
2309
2309
  for (var a = r.db.objectStoreNames, s = 0; s < a.length; ++s) {
2310
- var o = a[s], u = r.objectStore(o);
2310
+ var i = a[s], u = r.objectStore(i);
2311
2311
  e._hasGetAll = "getAll" in u;
2312
2312
  for (var d = 0; d < u.indexNames.length; ++d) {
2313
- var h = u.indexNames[d], m = u.index(h).keyPath, v = typeof m == "string" ? m : "[" + _t(m).join("+") + "]";
2314
- !t[o] || (m = t[o].idxByName[v]) && (m.name = h, delete t[o].idxByName[v], t[o].idxByName[h] = m);
2313
+ var h = u.indexNames[d], m = u.index(h).keyPath, v = typeof m == "string" ? m : "[" + At(m).join("+") + "]";
2314
+ !t[i] || (m = t[i].idxByName[v]) && (m.name = h, delete t[i].idxByName[v], t[i].idxByName[h] = m);
2315
2315
  }
2316
2316
  }
2317
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);
@@ -2319,42 +2319,42 @@ function Ma() {
2319
2319
  function Er(e) {
2320
2320
  return e.split(",").map(function(t, r) {
2321
2321
  var a = (t = t.trim()).replace(/([&*]|\+\+)/g, ""), s = /^\[/.test(a) ? a.match(/^\[(.*)\]$/)[1].split("+") : a;
2322
- return Sn(a, s || null, /\&/.test(t), /\*/.test(t), /\+\+/.test(t), G(s), r === 0);
2322
+ return Sn(a, s || null, /\&/.test(t), /\*/.test(t), /\+\+/.test(t), B(s), r === 0);
2323
2323
  });
2324
2324
  }
2325
- var ma = (zt.prototype._parseStoresSpec = function(e, t) {
2325
+ var ma = (Ht.prototype._parseStoresSpec = function(e, t) {
2326
2326
  C(e).forEach(function(r) {
2327
2327
  if (e[r] !== null) {
2328
2328
  var a = Er(e[r]), s = a.shift();
2329
2329
  if (s.unique = !0, s.multi) throw new L.Schema("Primary key cannot be multi-valued");
2330
- a.forEach(function(o) {
2331
- if (o.auto) throw new L.Schema("Only primary key can be marked as autoIncrement (++)");
2332
- if (!o.keyPath) throw new L.Schema("Index must have a name and cannot be an empty string");
2330
+ a.forEach(function(i) {
2331
+ if (i.auto) throw new L.Schema("Only primary key can be marked as autoIncrement (++)");
2332
+ if (!i.keyPath) throw new L.Schema("Index must have a name and cannot be an empty string");
2333
2333
  }), t[r] = On(r, s, a);
2334
2334
  }
2335
2335
  });
2336
- }, zt.prototype.stores = function(r) {
2336
+ }, Ht.prototype.stores = function(r) {
2337
2337
  var t = this.db;
2338
2338
  this._cfg.storesSource = this._cfg.storesSource ? te(this._cfg.storesSource, r) : r;
2339
2339
  var r = t._versions, a = {}, s = {};
2340
- return r.forEach(function(o) {
2341
- te(a, o._cfg.storesSource), s = o._cfg.dbschema = {}, o._parseStoresSpec(a, s);
2342
- }), t._dbSchema = s, An(t, [t._allTables, t, t.Transaction.prototype]), Lt(t, [t._allTables, t, t.Transaction.prototype, this._cfg.tables], C(s), s), t._storeNames = C(s), this;
2343
- }, zt.prototype.upgrade = function(e) {
2340
+ return r.forEach(function(i) {
2341
+ te(a, i._cfg.storesSource), s = i._cfg.dbschema = {}, i._parseStoresSpec(a, s);
2342
+ }), t._dbSchema = s, An(t, [t._allTables, t, t.Transaction.prototype]), Wt(t, [t._allTables, t, t.Transaction.prototype, this._cfg.tables], C(s), s), t._storeNames = C(s), this;
2343
+ }, Ht.prototype.upgrade = function(e) {
2344
2344
  return this._cfg.contentUpgrade = on(this._cfg.contentUpgrade || Q, e), this;
2345
- }, zt);
2346
- function zt() {
2345
+ }, Ht);
2346
+ function Ht() {
2347
2347
  }
2348
2348
  function Nn(e, t) {
2349
2349
  var r = e._dbNamesDB;
2350
- return r || (r = e._dbNamesDB = new Se($t, { addons: [], indexedDB: e, IDBKeyRange: t })).version(1).stores({ dbnames: "name" }), r.table("dbnames");
2350
+ return r || (r = e._dbNamesDB = new Se(jt, { addons: [], indexedDB: e, IDBKeyRange: t })).version(1).stores({ dbnames: "name" }), r.table("dbnames");
2351
2351
  }
2352
2352
  function Rn(e) {
2353
2353
  return e && typeof e.databases == "function";
2354
2354
  }
2355
2355
  function Tn(e) {
2356
2356
  return De(function() {
2357
- return B.letThrough = !0, e();
2357
+ return G.letThrough = !0, e();
2358
2358
  });
2359
2359
  }
2360
2360
  function In(e) {
@@ -2380,20 +2380,20 @@ function Ma() {
2380
2380
  }
2381
2381
  function wt(e, t) {
2382
2382
  In(t) || function r(a, h) {
2383
- var o = h.from, u = h.to, d = h.l, h = h.r;
2384
- Et(a, o, u), d && r(a, d), h && r(a, h);
2383
+ var i = h.from, u = h.to, d = h.l, h = h.r;
2384
+ Et(a, i, u), d && r(a, d), h && r(a, h);
2385
2385
  }(e, t);
2386
2386
  }
2387
2387
  function wr(e, t) {
2388
- var r = Ht(t), a = r.next();
2388
+ var r = Vt(t), a = r.next();
2389
2389
  if (a.done) return !1;
2390
- for (var s = a.value, o = Ht(e), u = o.next(s.from), d = u.value; !a.done && !u.done; ) {
2390
+ for (var s = a.value, i = Vt(e), u = i.next(s.from), d = u.value; !a.done && !u.done; ) {
2391
2391
  if (H(d.from, s.to) <= 0 && 0 <= H(d.to, s.from)) return !0;
2392
- H(s.from, d.from) < 0 ? s = (a = r.next(d.from)).value : d = (u = o.next(s.from)).value;
2392
+ H(s.from, d.from) < 0 ? s = (a = r.next(d.from)).value : d = (u = i.next(s.from)).value;
2393
2393
  }
2394
2394
  return !1;
2395
2395
  }
2396
- function Ht(e) {
2396
+ function Vt(e) {
2397
2397
  var t = In(e) ? null : { s: 0, n: e };
2398
2398
  return { next: function(r) {
2399
2399
  for (var a = 0 < arguments.length; t; ) switch (t.s) {
@@ -2421,11 +2421,11 @@ function Ma() {
2421
2421
  var t = r.r, r = r.l;
2422
2422
  return (t ? r ? Math.max(t.d, r.d) : t.d : r ? r.d : 0) + 1;
2423
2423
  }
2424
- function Vt(e, t) {
2424
+ function Yt(e, t) {
2425
2425
  return C(t).forEach(function(r) {
2426
2426
  e[r] ? wt(e[r], t[r]) : e[r] = function a(s) {
2427
- var o, u, d = {};
2428
- for (o in s) oe(s, o) && (u = s[o], d[o] = !u || typeof u != "object" || Jn.has(u.constructor) ? u : a(u));
2427
+ var i, u, d = {};
2428
+ for (i in s) ie(s, i) && (u = s[i], d[i] = !u || typeof u != "object" || Jn.has(u.constructor) ? u : a(u));
2429
2429
  return d;
2430
2430
  }(t[r]);
2431
2431
  }), e;
@@ -2445,14 +2445,14 @@ function Ma() {
2445
2445
  return Et(t, r, r);
2446
2446
  }), this;
2447
2447
  }, hasKey: function(e) {
2448
- var t = Ht(this).next(e).value;
2448
+ var t = Vt(this).next(e).value;
2449
2449
  return t && H(t.from, e) <= 0 && 0 <= H(t.to, e);
2450
2450
  } })[rn] = function() {
2451
- return Ht(this);
2451
+ return Vt(this);
2452
2452
  }, fe));
2453
2453
  var ze = {}, kn = {}, Cn = !1;
2454
- function Yt(e) {
2455
- Vt(kn, e), Cn || (Cn = !0, setTimeout(function() {
2454
+ function Qt(e) {
2455
+ Yt(kn, e), Cn || (Cn = !0, setTimeout(function() {
2456
2456
  Cn = !1, $n(kn, !(kn = {}));
2457
2457
  }, 0));
2458
2458
  }
@@ -2460,17 +2460,17 @@ function Ma() {
2460
2460
  t === void 0 && (t = !1);
2461
2461
  var r = /* @__PURE__ */ new Set();
2462
2462
  if (e.all) for (var a = 0, s = Object.values(ze); a < s.length; a++) _r(u = s[a], e, r, t);
2463
- else for (var o in e) {
2464
- var u, d = /^idb\:\/\/(.*)\/(.*)\//.exec(o);
2465
- d && (o = d[1], d = d[2], (u = ze["idb://".concat(o, "/").concat(d)]) && _r(u, e, r, t));
2463
+ else for (var i in e) {
2464
+ var u, d = /^idb\:\/\/(.*)\/(.*)\//.exec(i);
2465
+ d && (i = d[1], d = d[2], (u = ze["idb://".concat(i, "/").concat(d)]) && _r(u, e, r, t));
2466
2466
  }
2467
2467
  r.forEach(function(h) {
2468
2468
  return h();
2469
2469
  });
2470
2470
  }
2471
2471
  function _r(e, t, r, a) {
2472
- for (var s = [], o = 0, u = Object.entries(e.queries.query); o < u.length; o++) {
2473
- for (var d = u[o], h = d[0], m = [], v = 0, f = d[1]; v < f.length; v++) {
2472
+ for (var s = [], i = 0, u = Object.entries(e.queries.query); i < u.length; i++) {
2473
+ for (var d = u[i], h = d[0], m = [], v = 0, f = d[1]; v < f.length; v++) {
2474
2474
  var S = f[v];
2475
2475
  xn(t, S.obsSet) ? S.subscribers.forEach(function(y) {
2476
2476
  return r.add(y);
@@ -2489,7 +2489,7 @@ function Ma() {
2489
2489
  return t.dbOpenError ? q(t.dbOpenError) : e;
2490
2490
  });
2491
2491
  t.isBeingOpened = !0, t.dbOpenError = null, t.openComplete = !1;
2492
- var a = t.openCanceller, s = Math.round(10 * e.verno), o = !1;
2492
+ var a = t.openCanceller, s = Math.round(10 * e.verno), i = !1;
2493
2493
  function u() {
2494
2494
  if (t.openCanceller !== a) throw new L.DatabaseClosed("db.open() was cancelled");
2495
2495
  }
@@ -2502,24 +2502,24 @@ function Ma() {
2502
2502
  var A;
2503
2503
  v = w.transaction, t.autoSchema && !e._options.allowEmptyDB ? (w.onerror = mt, v.abort(), w.result.close(), (A = r.deleteDatabase(b)).onsuccess = A.onerror = Z(function() {
2504
2504
  g(new L.NoSuchDatabase("Database ".concat(b, " doesnt exist")));
2505
- })) : (v.onerror = me(g), y = y.oldVersion > Math.pow(2, 62) ? 0 : y.oldVersion, f = y < 1, e.idbdb = w.result, o && pa(e, v), ga(e, y / 10, v, g));
2505
+ })) : (v.onerror = me(g), y = y.oldVersion > Math.pow(2, 62) ? 0 : y.oldVersion, f = y < 1, e.idbdb = w.result, i && pa(e, v), ga(e, y / 10, v, g));
2506
2506
  }, g), w.onsuccess = Z(function() {
2507
2507
  v = null;
2508
- var y, A, P, D, N, R = e.idbdb = w.result, k = _t(R.objectStoreNames);
2508
+ var y, A, P, D, N, R = e.idbdb = w.result, k = At(R.objectStoreNames);
2509
2509
  if (0 < k.length) try {
2510
2510
  var T = R.transaction((D = k).length === 1 ? D[0] : D, "readonly");
2511
- if (t.autoSchema) A = R, P = T, (y = e).verno = A.version / 10, P = y._dbSchema = Ft(0, A, P), y._storeNames = _t(A.objectStoreNames, 0), Lt(y, [y._allTables], C(P), P);
2512
- else if (Ut(e, e._dbSchema, T), ((N = Pn(Ft(0, (N = e).idbdb, T), N._dbSchema)).add.length || N.change.some(function(I) {
2511
+ if (t.autoSchema) A = R, P = T, (y = e).verno = A.version / 10, P = y._dbSchema = Ut(0, A, P), y._storeNames = At(A.objectStoreNames, 0), Wt(y, [y._allTables], C(P), P);
2512
+ else if (zt(e, e._dbSchema, T), ((N = Pn(Ut(0, (N = e).idbdb, T), N._dbSchema)).add.length || N.change.some(function(I) {
2513
2513
  return I.add.length || I.change.length;
2514
- })) && !o) return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."), R.close(), s = R.version + 1, o = !0, S(d());
2515
- Bt(e, T);
2514
+ })) && !i) return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."), R.close(), s = R.version + 1, i = !0, S(d());
2515
+ Lt(e, T);
2516
2516
  } catch {
2517
2517
  }
2518
2518
  tt.push(e), R.onversionchange = Z(function(I) {
2519
2519
  t.vcFired = !0, e.on("versionchange").fire(I);
2520
2520
  }), R.onclose = Z(function(I) {
2521
2521
  e.on("close").fire(I);
2522
- }), f && (N = e._deps, T = b, R = N.indexedDB, N = N.IDBKeyRange, Rn(R) || T === $t || Nn(R, N).put({ name: T }).catch(Q)), S();
2522
+ }), f && (N = e._deps, T = b, R = N.indexedDB, N = N.IDBKeyRange, Rn(R) || T === jt || Nn(R, N).put({ name: T }).catch(Q)), S();
2523
2523
  }, g);
2524
2524
  }).catch(function(S) {
2525
2525
  switch (S?.name) {
@@ -2572,30 +2572,30 @@ function Ma() {
2572
2572
  });
2573
2573
  }
2574
2574
  function jn(e) {
2575
- function t(o) {
2576
- return e.next(o);
2575
+ function t(i) {
2576
+ return e.next(i);
2577
2577
  }
2578
- var r = s(t), a = s(function(o) {
2579
- return e.throw(o);
2578
+ var r = s(t), a = s(function(i) {
2579
+ return e.throw(i);
2580
2580
  });
2581
- function s(o) {
2581
+ function s(i) {
2582
2582
  return function(h) {
2583
- var d = o(h), h = d.value;
2584
- return d.done ? h : h && typeof h.then == "function" ? h.then(r, a) : G(h) ? Promise.all(h).then(r, a) : r(h);
2583
+ var d = i(h), h = d.value;
2584
+ return d.done ? h : h && typeof h.then == "function" ? h.then(r, a) : B(h) ? Promise.all(h).then(r, a) : r(h);
2585
2585
  };
2586
2586
  }
2587
2587
  return s(t)();
2588
2588
  }
2589
- function Qt(e, t, r) {
2590
- for (var a = G(e) ? e.slice() : [e], s = 0; s < r; ++s) a.push(t);
2589
+ function Xt(e, t, r) {
2590
+ for (var a = B(e) ? e.slice() : [e], s = 0; s < r; ++s) a.push(t);
2591
2591
  return a;
2592
2592
  }
2593
2593
  var ba = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create: function(e) {
2594
2594
  return l(l({}, e), { table: function(t) {
2595
- var r = e.table(t), a = r.schema, s = {}, o = [];
2595
+ var r = e.table(t), a = r.schema, s = {}, i = [];
2596
2596
  function u(f, S, g) {
2597
2597
  var b = vt(f), w = s[b] = s[b] || [], y = f == null ? 0 : typeof f == "string" ? 1 : f.length, A = 0 < S, A = l(l({}, g), { name: A ? "".concat(b, "(virtual-from:").concat(g.name, ")") : g.name, lowLevelIndex: g, isVirtual: A, keyTail: S, keyLength: y, extractKey: _n(f), unique: !A && g.unique });
2598
- return w.push(A), A.isPrimaryKey || o.push(A), 1 < y && u(y === 2 ? f[0] : f.slice(0, y - 1), S + 1, g), w.sort(function(P, D) {
2598
+ return w.push(A), A.isPrimaryKey || i.push(A), 1 < y && u(y === 2 ? f[0] : f.slice(0, y - 1), S + 1, g), w.sort(function(P, D) {
2599
2599
  return P.keyTail - D.keyTail;
2600
2600
  }), A;
2601
2601
  }
@@ -2606,9 +2606,9 @@ function Ma() {
2606
2606
  }
2607
2607
  function v(f) {
2608
2608
  var S, g = f.query.index;
2609
- return g.isVirtual ? l(l({}, f), { query: { index: g.lowLevelIndex, range: (S = f.query.range, g = g.keyTail, { type: S.type === 1 ? 2 : S.type, lower: Qt(S.lower, S.lowerOpen ? e.MAX_KEY : e.MIN_KEY, g), lowerOpen: !0, upper: Qt(S.upper, S.upperOpen ? e.MIN_KEY : e.MAX_KEY, g), upperOpen: !0 }) } }) : f;
2609
+ return g.isVirtual ? l(l({}, f), { query: { index: g.lowLevelIndex, range: (S = f.query.range, g = g.keyTail, { type: S.type === 1 ? 2 : S.type, lower: Xt(S.lower, S.lowerOpen ? e.MAX_KEY : e.MIN_KEY, g), lowerOpen: !0, upper: Xt(S.upper, S.upperOpen ? e.MIN_KEY : e.MAX_KEY, g), upperOpen: !0 }) } }) : f;
2610
2610
  }
2611
- return l(l({}, r), { schema: l(l({}, a), { primaryKey: t, indexes: o, getIndexByKeyPath: function(f) {
2611
+ return l(l({}, r), { schema: l(l({}, a), { primaryKey: t, indexes: i, getIndexByKeyPath: function(f) {
2612
2612
  return (f = s[vt(f)]) && f[0];
2613
2613
  } }), count: function(f) {
2614
2614
  return r.count(v(f));
@@ -2621,9 +2621,9 @@ function Ma() {
2621
2621
  }) : r.openCursor(f);
2622
2622
  function y(A) {
2623
2623
  return Object.create(A, { continue: { value: function(P) {
2624
- P != null ? A.continue(Qt(P, f.reverse ? e.MAX_KEY : e.MIN_KEY, g)) : f.unique ? A.continue(A.key.slice(0, w).concat(f.reverse ? e.MIN_KEY : e.MAX_KEY, g)) : A.continue();
2624
+ P != null ? A.continue(Xt(P, f.reverse ? e.MAX_KEY : e.MIN_KEY, g)) : f.unique ? A.continue(A.key.slice(0, w).concat(f.reverse ? e.MIN_KEY : e.MAX_KEY, g)) : A.continue();
2625
2625
  } }, continuePrimaryKey: { value: function(P, D) {
2626
- A.continuePrimaryKey(Qt(P, e.MAX_KEY, g), D);
2626
+ A.continuePrimaryKey(Xt(P, e.MAX_KEY, g), D);
2627
2627
  } }, primaryKey: { get: function() {
2628
2628
  return A.primaryKey;
2629
2629
  } }, key: { get: function() {
@@ -2638,10 +2638,10 @@ function Ma() {
2638
2638
  } };
2639
2639
  function Mn(e, t, r, a) {
2640
2640
  return r = r || {}, a = a || "", C(e).forEach(function(s) {
2641
- var o, u, d;
2642
- oe(t, s) ? (o = e[s], u = t[s], typeof o == "object" && typeof u == "object" && o && u ? (d = nn(o)) !== nn(u) ? r[a + s] = t[s] : d === "Object" ? Mn(o, u, r, a + s + ".") : o !== u && (r[a + s] = t[s]) : o !== u && (r[a + s] = t[s])) : r[a + s] = void 0;
2641
+ var i, u, d;
2642
+ ie(t, s) ? (i = e[s], u = t[s], typeof i == "object" && typeof u == "object" && i && u ? (d = nn(i)) !== nn(u) ? r[a + s] = t[s] : d === "Object" ? Mn(i, u, r, a + s + ".") : i !== u && (r[a + s] = t[s]) : i !== u && (r[a + s] = t[s])) : r[a + s] = void 0;
2643
2643
  }), C(t).forEach(function(s) {
2644
- oe(e, s) || (r[a + s] = t[s]);
2644
+ ie(e, s) || (r[a + s] = t[s]);
2645
2645
  }), r;
2646
2646
  }
2647
2647
  function Kn(e, t) {
@@ -2651,26 +2651,26 @@ function Ma() {
2651
2651
  return l(l({}, e), { table: function(t) {
2652
2652
  var r = e.table(t), a = r.schema.primaryKey;
2653
2653
  return l(l({}, r), { mutate: function(s) {
2654
- var o = B.trans, u = o.table(t).hook, d = u.deleting, h = u.creating, m = u.updating;
2654
+ var i = G.trans, u = i.table(t).hook, d = u.deleting, h = u.creating, m = u.updating;
2655
2655
  switch (s.type) {
2656
2656
  case "add":
2657
2657
  if (h.fire === Q) break;
2658
- return o._promise("readwrite", function() {
2658
+ return i._promise("readwrite", function() {
2659
2659
  return v(s);
2660
2660
  }, !0);
2661
2661
  case "put":
2662
2662
  if (h.fire === Q && m.fire === Q) break;
2663
- return o._promise("readwrite", function() {
2663
+ return i._promise("readwrite", function() {
2664
2664
  return v(s);
2665
2665
  }, !0);
2666
2666
  case "delete":
2667
2667
  if (d.fire === Q) break;
2668
- return o._promise("readwrite", function() {
2668
+ return i._promise("readwrite", function() {
2669
2669
  return v(s);
2670
2670
  }, !0);
2671
2671
  case "deleteRange":
2672
2672
  if (d.fire === Q) break;
2673
- return o._promise("readwrite", function() {
2673
+ return i._promise("readwrite", function() {
2674
2674
  return function f(S, g, b) {
2675
2675
  return r.query({ trans: S, values: !1, query: { index: a, range: g }, limit: b }).then(function(w) {
2676
2676
  var y = w.result;
@@ -2683,13 +2683,13 @@ function Ma() {
2683
2683
  }
2684
2684
  return r.mutate(s);
2685
2685
  function v(f) {
2686
- var S, g, b, w = B.trans, y = f.keys || Kn(a, f);
2686
+ var S, g, b, w = G.trans, y = f.keys || Kn(a, f);
2687
2687
  if (!y) throw new Error("Keys missing");
2688
2688
  return (f = f.type === "add" || f.type === "put" ? l(l({}, f), { keys: y }) : l({}, f)).type !== "delete" && (f.values = E([], f.values)), f.keys && (f.keys = E([], f.keys)), S = r, b = y, ((g = f).type === "add" ? Promise.resolve([]) : S.getMany({ trans: g.trans, keys: b, cache: "immutable" })).then(function(A) {
2689
2689
  var P = y.map(function(D, N) {
2690
2690
  var R, k, T, I = A[N], $ = { onerror: null, onsuccess: null };
2691
2691
  return f.type === "delete" ? d.fire.call($, D, I, w) : f.type === "add" || I === void 0 ? (R = h.fire.call($, D, f.values[N], w), D == null && R != null && (f.keys[N] = D = R, a.outbound || ue(f.values[N], a.keyPath, D))) : (R = Mn(I, f.values[N]), (k = m.fire.call($, R, D, I, w)) && (T = f.values[N], Object.keys(k).forEach(function(x) {
2692
- oe(T, x) ? T[x] = k[x] : ue(T, x, k[x]);
2692
+ ie(T, x) ? T[x] = k[x] : ue(T, x, k[x]);
2693
2693
  }))), $;
2694
2694
  });
2695
2695
  return r.mutate(f).then(function(D) {
@@ -2711,7 +2711,7 @@ function Ma() {
2711
2711
  function Ar(e, t, r) {
2712
2712
  try {
2713
2713
  if (!t || t.keys.length < e.length) return null;
2714
- for (var a = [], s = 0, o = 0; s < t.keys.length && o < e.length; ++s) H(t.keys[s], e[o]) === 0 && (a.push(r ? $e(t.values[s]) : t.values[s]), ++o);
2714
+ for (var a = [], s = 0, i = 0; s < t.keys.length && i < e.length; ++s) H(t.keys[s], e[i]) === 0 && (a.push(r ? $e(t.values[s]) : t.values[s]), ++i);
2715
2715
  return a.length === e.length ? a : null;
2716
2716
  } catch {
2717
2717
  return null;
@@ -2723,8 +2723,8 @@ function Ma() {
2723
2723
  return l(l({}, r), { getMany: function(a) {
2724
2724
  if (!a.cache) return r.getMany(a);
2725
2725
  var s = Ar(a.keys, a.trans._cache, a.cache === "clone");
2726
- return s ? j.resolve(s) : r.getMany(a).then(function(o) {
2727
- return a.trans._cache = { keys: a.keys, values: a.cache === "clone" ? $e(o) : o }, o;
2726
+ return s ? j.resolve(s) : r.getMany(a).then(function(i) {
2727
+ return a.trans._cache = { keys: a.keys, values: a.cache === "clone" ? $e(i) : i }, i;
2728
2728
  });
2729
2729
  }, mutate: function(a) {
2730
2730
  return a.type !== "add" && (a.trans._cache = null), r.mutate(a);
@@ -2747,11 +2747,11 @@ function Ma() {
2747
2747
  }
2748
2748
  var wa = { stack: "dbcore", level: 0, name: "Observability", create: function(e) {
2749
2749
  var t = e.schema.name, r = new ae(e.MIN_KEY, e.MAX_KEY);
2750
- return l(l({}, e), { transaction: function(a, s, o) {
2751
- if (B.subscr && s !== "readonly") throw new L.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(B.querier));
2752
- return e.transaction(a, s, o);
2750
+ return l(l({}, e), { transaction: function(a, s, i) {
2751
+ if (G.subscr && s !== "readonly") throw new L.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(G.querier));
2752
+ return e.transaction(a, s, i);
2753
2753
  }, table: function(a) {
2754
- var s = e.table(a), o = s.schema, u = o.primaryKey, f = o.indexes, d = u.extractKey, h = u.outbound, m = u.autoIncrement && f.filter(function(g) {
2754
+ var s = e.table(a), i = s.schema, u = i.primaryKey, f = i.indexes, d = u.extractKey, h = u.outbound, m = u.autoIncrement && f.filter(function(g) {
2755
2755
  return g.compound && g.keyPath.includes(u.keyPath);
2756
2756
  }), v = l(l({}, s), { mutate: function(g) {
2757
2757
  function b(x) {
@@ -2760,13 +2760,13 @@ function Ma() {
2760
2760
  var w, y, A, P = g.trans, D = g.mutatedParts || (g.mutatedParts = {}), N = b(""), R = b(":dels"), k = g.type, $ = g.type === "deleteRange" ? [g.range] : g.type === "delete" ? [g.keys] : g.values.length < 50 ? [Kn(u, g).filter(function(x) {
2761
2761
  return x;
2762
2762
  }), g.values] : [], T = $[0], I = $[1], $ = g.trans._cache;
2763
- return G(T) ? (N.addKeys(T), ($ = k === "delete" || T.length === I.length ? Ar(T, $) : null) || R.addKeys(T), ($ || I) && (w = b, y = $, A = I, o.indexes.forEach(function(x) {
2763
+ return B(T) ? (N.addKeys(T), ($ = k === "delete" || T.length === I.length ? Ar(T, $) : null) || R.addKeys(T), ($ || I) && (w = b, y = $, A = I, i.indexes.forEach(function(x) {
2764
2764
  var M = w(x.name || "");
2765
2765
  function F(z) {
2766
2766
  return z != null ? x.extractKey(z) : null;
2767
2767
  }
2768
2768
  function U(z) {
2769
- return x.multiEntry && G(z) ? z.forEach(function(de) {
2769
+ return x.multiEntry && B(z) ? z.forEach(function(de) {
2770
2770
  return M.addKey(de);
2771
2771
  }) : M.addKey(z);
2772
2772
  }
@@ -2774,7 +2774,7 @@ function Ma() {
2774
2774
  var W = y && F(y[se]), se = A && F(A[se]);
2775
2775
  H(W, se) !== 0 && (W != null && U(W), se != null && U(se));
2776
2776
  });
2777
- }))) : T ? (I = { from: (I = T.lower) !== null && I !== void 0 ? I : e.MIN_KEY, to: (I = T.upper) !== null && I !== void 0 ? I : e.MAX_KEY }, R.add(I), N.add(I)) : (N.add(r), R.add(r), o.indexes.forEach(function(x) {
2777
+ }))) : T ? (I = { from: (I = T.lower) !== null && I !== void 0 ? I : e.MIN_KEY, to: (I = T.upper) !== null && I !== void 0 ? I : e.MAX_KEY }, R.add(I), N.add(I)) : (N.add(r), R.add(r), i.indexes.forEach(function(x) {
2778
2778
  return b(x.name).add(r);
2779
2779
  })), s.mutate(g).then(function(x) {
2780
2780
  return !T || g.type !== "add" && g.type !== "put" || (N.addKeys(x.results), m && m.forEach(function(M) {
@@ -2784,7 +2784,7 @@ function Ma() {
2784
2784
  return W === u.keyPath;
2785
2785
  }), z = 0, de = x.results.length; z < de; ++z) F[z][U] = x.results[z];
2786
2786
  b(M.name).addKeys(F);
2787
- })), P.mutatedParts = Vt(P.mutatedParts || {}, D), x;
2787
+ })), P.mutatedParts = Yt(P.mutatedParts || {}, D), x;
2788
2788
  });
2789
2789
  } }), f = function(b) {
2790
2790
  var w = b.query, b = w.index, w = w.range;
@@ -2796,7 +2796,7 @@ function Ma() {
2796
2796
  }, count: f, query: f, openCursor: f };
2797
2797
  return C(S).forEach(function(g) {
2798
2798
  v[g] = function(b) {
2799
- var w = B.subscr, y = !!w, A = Pr(B, s) && Dr(g, b) ? b.obsSet = {} : w;
2799
+ var w = G.subscr, y = !!w, A = Pr(G, s) && Dr(g, b) ? b.obsSet = {} : w;
2800
2800
  if (y) {
2801
2801
  var P = function(I) {
2802
2802
  return I = "idb://".concat(t, "/").concat(a, "/").concat(I), A[I] || (A[I] = new ae());
@@ -2837,25 +2837,25 @@ function Ma() {
2837
2837
  if (r.numFailures === 0) return t;
2838
2838
  if (t.type === "deleteRange") return null;
2839
2839
  var a = t.keys ? t.keys.length : "values" in t && t.values ? t.values.length : 1;
2840
- return r.numFailures === a ? null : (t = l({}, t), G(t.keys) && (t.keys = t.keys.filter(function(s, o) {
2841
- return !(o in r.failures);
2842
- })), "values" in t && G(t.values) && (t.values = t.values.filter(function(s, o) {
2843
- return !(o in r.failures);
2840
+ return r.numFailures === a ? null : (t = l({}, t), B(t.keys) && (t.keys = t.keys.filter(function(s, i) {
2841
+ return !(i in r.failures);
2842
+ })), "values" in t && B(t.values) && (t.values = t.values.filter(function(s, i) {
2843
+ return !(i in r.failures);
2844
2844
  })), t);
2845
2845
  }
2846
- function Gn(e, t) {
2846
+ function Bn(e, t) {
2847
2847
  return r = e, ((a = t).lower === void 0 || (a.lowerOpen ? 0 < H(r, a.lower) : 0 <= H(r, a.lower))) && (e = e, (t = t).upper === void 0 || (t.upperOpen ? H(e, t.upper) < 0 : H(e, t.upper) <= 0));
2848
2848
  var r, a;
2849
2849
  }
2850
- function Rr(e, t, S, a, s, o) {
2850
+ function Rr(e, t, S, a, s, i) {
2851
2851
  if (!S || S.length === 0) return e;
2852
2852
  var u = t.query.index, d = u.multiEntry, h = t.query.range, m = a.schema.primaryKey.extractKey, v = u.extractKey, f = (u.lowLevelIndex || u).extractKey, S = S.reduce(function(g, b) {
2853
2853
  var w = g, y = [];
2854
2854
  if (b.type === "add" || b.type === "put") for (var A = new ae(), P = b.values.length - 1; 0 <= P; --P) {
2855
2855
  var D, N = b.values[P], R = m(N);
2856
- A.hasKey(R) || (D = v(N), (d && G(D) ? D.some(function(x) {
2857
- return Gn(x, h);
2858
- }) : Gn(D, h)) && (A.addKey(R), y.push(N)));
2856
+ A.hasKey(R) || (D = v(N), (d && B(D) ? D.some(function(x) {
2857
+ return Bn(x, h);
2858
+ }) : Bn(D, h)) && (A.addKey(R), y.push(N)));
2859
2859
  }
2860
2860
  switch (b.type) {
2861
2861
  case "add":
@@ -2888,54 +2888,54 @@ function Ma() {
2888
2888
  case "deleteRange":
2889
2889
  var $ = b.range;
2890
2890
  w = g.filter(function(M) {
2891
- return !Gn(m(M), $);
2891
+ return !Bn(m(M), $);
2892
2892
  });
2893
2893
  }
2894
2894
  return w;
2895
2895
  }, e);
2896
2896
  return S === e ? e : (S.sort(function(g, b) {
2897
2897
  return H(f(g), f(b)) || H(m(g), m(b));
2898
- }), t.limit && t.limit < 1 / 0 && (S.length > t.limit ? S.length = t.limit : e.length === t.limit && S.length < t.limit && (s.dirty = !0)), o ? Object.freeze(S) : S);
2898
+ }), t.limit && t.limit < 1 / 0 && (S.length > t.limit ? S.length = t.limit : e.length === t.limit && S.length < t.limit && (s.dirty = !0)), i ? Object.freeze(S) : S);
2899
2899
  }
2900
2900
  function Tr(e, t) {
2901
2901
  return H(e.lower, t.lower) === 0 && H(e.upper, t.upper) === 0 && !!e.lowerOpen == !!t.lowerOpen && !!e.upperOpen == !!t.upperOpen;
2902
2902
  }
2903
2903
  function Sa(e, t) {
2904
- return function(r, a, s, o) {
2904
+ return function(r, a, s, i) {
2905
2905
  if (r === void 0) return a !== void 0 ? -1 : 0;
2906
2906
  if (a === void 0) return 1;
2907
2907
  if ((a = H(r, a)) === 0) {
2908
- if (s && o) return 0;
2908
+ if (s && i) return 0;
2909
2909
  if (s) return 1;
2910
- if (o) return -1;
2910
+ if (i) return -1;
2911
2911
  }
2912
2912
  return a;
2913
- }(e.lower, t.lower, e.lowerOpen, t.lowerOpen) <= 0 && 0 <= function(r, a, s, o) {
2913
+ }(e.lower, t.lower, e.lowerOpen, t.lowerOpen) <= 0 && 0 <= function(r, a, s, i) {
2914
2914
  if (r === void 0) return a !== void 0 ? 1 : 0;
2915
2915
  if (a === void 0) return -1;
2916
2916
  if ((a = H(r, a)) === 0) {
2917
- if (s && o) return 0;
2917
+ if (s && i) return 0;
2918
2918
  if (s) return -1;
2919
- if (o) return 1;
2919
+ if (i) return 1;
2920
2920
  }
2921
2921
  return a;
2922
2922
  }(e.upper, t.upper, e.upperOpen, t.upperOpen);
2923
2923
  }
2924
2924
  function Oa(e, t, r, a) {
2925
2925
  e.subscribers.add(r), a.addEventListener("abort", function() {
2926
- var s, o;
2927
- e.subscribers.delete(r), e.subscribers.size === 0 && (s = e, o = t, setTimeout(function() {
2928
- s.subscribers.size === 0 && je(o, s);
2926
+ var s, i;
2927
+ e.subscribers.delete(r), e.subscribers.size === 0 && (s = e, i = t, setTimeout(function() {
2928
+ s.subscribers.size === 0 && je(i, s);
2929
2929
  }, 3e3));
2930
2930
  });
2931
2931
  }
2932
2932
  var _a = { stack: "dbcore", level: 0, name: "Cache", create: function(e) {
2933
2933
  var t = e.schema.name;
2934
2934
  return l(l({}, e), { transaction: function(r, a, s) {
2935
- var o, u, d = e.transaction(r, a, s);
2936
- return a === "readwrite" && (u = (o = new AbortController()).signal, s = function(h) {
2935
+ var i, u, d = e.transaction(r, a, s);
2936
+ return a === "readwrite" && (u = (i = new AbortController()).signal, s = function(h) {
2937
2937
  return function() {
2938
- if (o.abort(), a === "readwrite") {
2938
+ if (i.abort(), a === "readwrite") {
2939
2939
  for (var m = /* @__PURE__ */ new Set(), v = 0, f = r; v < f.length; v++) {
2940
2940
  var S = f[v], g = ze["idb://".concat(t, "/").concat(S)];
2941
2941
  if (g) {
@@ -2965,28 +2965,28 @@ function Ma() {
2965
2965
  }, d.addEventListener("abort", s(!1), { signal: u }), d.addEventListener("error", s(!1), { signal: u }), d.addEventListener("complete", s(!0), { signal: u })), d;
2966
2966
  }, table: function(r) {
2967
2967
  var a = e.table(r), s = a.schema.primaryKey;
2968
- return l(l({}, a), { mutate: function(o) {
2969
- var u = B.trans;
2970
- if (s.outbound || u.db._options.cache === "disabled" || u.explicit || u.idbtrans.mode !== "readwrite") return a.mutate(o);
2968
+ return l(l({}, a), { mutate: function(i) {
2969
+ var u = G.trans;
2970
+ if (s.outbound || u.db._options.cache === "disabled" || u.explicit || u.idbtrans.mode !== "readwrite") return a.mutate(i);
2971
2971
  var d = ze["idb://".concat(t, "/").concat(r)];
2972
- return d ? (u = a.mutate(o), o.type !== "add" && o.type !== "put" || !(50 <= o.values.length || Kn(s, o).some(function(h) {
2972
+ return d ? (u = a.mutate(i), i.type !== "add" && i.type !== "put" || !(50 <= i.values.length || Kn(s, i).some(function(h) {
2973
2973
  return h == null;
2974
- })) ? (d.optimisticOps.push(o), o.mutatedParts && Yt(o.mutatedParts), u.then(function(h) {
2975
- 0 < h.numFailures && (je(d.optimisticOps, o), (h = Nr(0, o, h)) && d.optimisticOps.push(h), o.mutatedParts && Yt(o.mutatedParts));
2974
+ })) ? (d.optimisticOps.push(i), i.mutatedParts && Qt(i.mutatedParts), u.then(function(h) {
2975
+ 0 < h.numFailures && (je(d.optimisticOps, i), (h = Nr(0, i, h)) && d.optimisticOps.push(h), i.mutatedParts && Qt(i.mutatedParts));
2976
2976
  }), u.catch(function() {
2977
- je(d.optimisticOps, o), o.mutatedParts && Yt(o.mutatedParts);
2977
+ je(d.optimisticOps, i), i.mutatedParts && Qt(i.mutatedParts);
2978
2978
  })) : u.then(function(h) {
2979
- var m = Nr(0, l(l({}, o), { values: o.values.map(function(v, f) {
2979
+ var m = Nr(0, l(l({}, i), { values: i.values.map(function(v, f) {
2980
2980
  var S;
2981
2981
  return h.failures[f] ? v : (v = (S = s.keyPath) !== null && S !== void 0 && S.includes(".") ? $e(v) : l({}, v), ue(v, s.keyPath, h.results[f]), v);
2982
2982
  }) }), h);
2983
2983
  d.optimisticOps.push(m), queueMicrotask(function() {
2984
- return o.mutatedParts && Yt(o.mutatedParts);
2984
+ return i.mutatedParts && Qt(i.mutatedParts);
2985
2985
  });
2986
- }), u) : a.mutate(o);
2987
- }, query: function(o) {
2988
- if (!Pr(B, a) || !Dr("query", o)) return a.query(o);
2989
- var u = ((m = B.trans) === null || m === void 0 ? void 0 : m.db._options.cache) === "immutable", f = B, d = f.requery, h = f.signal, m = function(b, w, y, A) {
2986
+ }), u) : a.mutate(i);
2987
+ }, query: function(i) {
2988
+ if (!Pr(G, a) || !Dr("query", i)) return a.query(i);
2989
+ var u = ((m = G.trans) === null || m === void 0 ? void 0 : m.db._options.cache) === "immutable", f = G, d = f.requery, h = f.signal, m = function(b, w, y, A) {
2990
2990
  var P = ze["idb://".concat(b, "/").concat(w)];
2991
2991
  if (!P) return [];
2992
2992
  if (!(w = P.queries[y])) return [null, !1, P, null];
@@ -3005,8 +3005,8 @@ function Ma() {
3005
3005
  return Tr(R.req.query.range, A.query.range);
3006
3006
  }), [N, !!N, P, D];
3007
3007
  }
3008
- }(t, r, "query", o), v = m[0], f = m[1], S = m[2], g = m[3];
3009
- return v && f ? v.obsSet = o.obsSet : (f = a.query(o).then(function(b) {
3008
+ }(t, r, "query", i), v = m[0], f = m[1], S = m[2], g = m[3];
3009
+ return v && f ? v.obsSet = i.obsSet : (f = a.query(i).then(function(b) {
3010
3010
  var w = b.result;
3011
3011
  if (v && (v.res = w), u) {
3012
3012
  for (var y = 0, A = w.length; y < A; ++y) Object.freeze(w[y]);
@@ -3015,13 +3015,13 @@ function Ma() {
3015
3015
  return b;
3016
3016
  }).catch(function(b) {
3017
3017
  return g && v && je(g, v), Promise.reject(b);
3018
- }), v = { obsSet: o.obsSet, promise: f, subscribers: /* @__PURE__ */ new Set(), type: "query", req: o, dirty: !1 }, g ? g.push(v) : (g = [v], (S = S || (ze["idb://".concat(t, "/").concat(r)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[o.query.index.name || ""] = g)), Oa(v, g, d, h), v.promise.then(function(b) {
3019
- return { result: Rr(b.result, o, S?.optimisticOps, a, v, u) };
3018
+ }), v = { obsSet: i.obsSet, promise: f, subscribers: /* @__PURE__ */ new Set(), type: "query", req: i, dirty: !1 }, g ? g.push(v) : (g = [v], (S = S || (ze["idb://".concat(t, "/").concat(r)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[i.query.index.name || ""] = g)), Oa(v, g, d, h), v.promise.then(function(b) {
3019
+ return { result: Rr(b.result, i, S?.optimisticOps, a, v, u) };
3020
3020
  });
3021
3021
  } });
3022
3022
  } });
3023
3023
  } };
3024
- function Xt(e, t) {
3024
+ function Jt(e, t) {
3025
3025
  return new Proxy(e, { get: function(r, a, s) {
3026
3026
  return a === "db" ? t : Reflect.get(r, a, s);
3027
3027
  } });
@@ -3036,7 +3036,7 @@ function Ma() {
3036
3036
  return r || (r = new this.Version(e), t.push(r), t.sort(ha), r.stores({}), this._state.autoSchema = !1, r);
3037
3037
  }, ee.prototype._whenReady = function(e) {
3038
3038
  var t = this;
3039
- return this.idbdb && (this._state.openComplete || B.letThrough || this._vip) ? e() : new j(function(r, a) {
3039
+ return this.idbdb && (this._state.openComplete || G.letThrough || this._vip) ? e() : new j(function(r, a) {
3040
3040
  if (t._state.openComplete) return a(new L.DatabaseClosed(t._state.dbOpenError));
3041
3041
  if (!t._state.isBeingOpened) {
3042
3042
  if (!t._state.autoOpen) return void a(new L.DatabaseClosed());
@@ -3046,8 +3046,8 @@ function Ma() {
3046
3046
  }).then(e);
3047
3047
  }, ee.prototype.use = function(e) {
3048
3048
  var t = e.stack, r = e.create, a = e.level, s = e.name;
3049
- return s && this.unuse({ stack: t, name: s }), e = this._middlewares[t] || (this._middlewares[t] = []), e.push({ stack: t, create: r, level: a ?? 10, name: s }), e.sort(function(o, u) {
3050
- return o.level - u.level;
3049
+ return s && this.unuse({ stack: t, name: s }), e = this._middlewares[t] || (this._middlewares[t] = []), e.push({ stack: t, create: r, level: a ?? 10, name: s }), e.sort(function(i, u) {
3050
+ return i.level - u.level;
3051
3051
  }), this;
3052
3052
  }, ee.prototype.unuse = function(e) {
3053
3053
  var t = e.stack, r = e.name, a = e.create;
@@ -3080,14 +3080,14 @@ function Ma() {
3080
3080
  var t = this;
3081
3081
  e === void 0 && (e = { disableAutoOpen: !0 });
3082
3082
  var r = 0 < arguments.length && typeof arguments[0] != "object", a = this._state;
3083
- return new j(function(s, o) {
3083
+ return new j(function(s, i) {
3084
3084
  function u() {
3085
3085
  t.close(e);
3086
3086
  var d = t._deps.indexedDB.deleteDatabase(t.name);
3087
3087
  d.onsuccess = Z(function() {
3088
3088
  var h, m, v;
3089
- h = t._deps, m = t.name, v = h.indexedDB, h = h.IDBKeyRange, Rn(v) || m === $t || Nn(v, h).delete(m).catch(Q), s();
3090
- }), d.onerror = me(o), d.onblocked = t._fireOnBlocked;
3089
+ h = t._deps, m = t.name, v = h.indexedDB, h = h.IDBKeyRange, Rn(v) || m === jt || Nn(v, h).delete(m).catch(Q), s();
3090
+ }), d.onerror = me(i), d.onblocked = t._fireOnBlocked;
3091
3091
  }
3092
3092
  if (r) throw new L.InvalidArgument("Invalid closeOptions argument to db.delete()");
3093
3093
  a.isBeingOpened ? a.dbReadyPromise.then(u) : u();
@@ -3112,26 +3112,26 @@ function Ma() {
3112
3112
  var e = function(t, r, a) {
3113
3113
  var s = arguments.length;
3114
3114
  if (s < 2) throw new L.InvalidArgument("Too few arguments");
3115
- for (var o = new Array(s - 1); --s; ) o[s - 1] = arguments[s];
3116
- return a = o.pop(), [t, Xn(o), a];
3115
+ for (var i = new Array(s - 1); --s; ) i[s - 1] = arguments[s];
3116
+ return a = i.pop(), [t, Xn(i), a];
3117
3117
  }.apply(this, arguments);
3118
3118
  return this._transaction.apply(this, e);
3119
3119
  }, ee.prototype._transaction = function(e, t, r) {
3120
- var a = this, s = B.trans;
3120
+ var a = this, s = G.trans;
3121
3121
  s && s.db === this && e.indexOf("!") === -1 || (s = null);
3122
- var o, u, d = e.indexOf("?") !== -1;
3122
+ var i, u, d = e.indexOf("?") !== -1;
3123
3123
  e = e.replace("!", "").replace("?", "");
3124
3124
  try {
3125
3125
  if (u = t.map(function(m) {
3126
3126
  if (m = m instanceof a.Table ? m.name : m, typeof m != "string") throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");
3127
3127
  return m;
3128
- }), e == "r" || e === mn) o = mn;
3128
+ }), e == "r" || e === mn) i = mn;
3129
3129
  else {
3130
3130
  if (e != "rw" && e != yn) throw new L.InvalidArgument("Invalid transaction mode: " + e);
3131
- o = yn;
3131
+ i = yn;
3132
3132
  }
3133
3133
  if (s) {
3134
- if (s.mode === mn && o === yn) {
3134
+ if (s.mode === mn && i === yn) {
3135
3135
  if (!d) throw new L.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");
3136
3136
  s = null;
3137
3137
  }
@@ -3149,7 +3149,7 @@ function Ma() {
3149
3149
  }
3150
3150
  var h = function m(v, f, S, g, b) {
3151
3151
  return j.resolve().then(function() {
3152
- var w = B.transless || B, y = v._createTransaction(f, S, v._dbSchema, g);
3152
+ var w = G.transless || G, y = v._createTransaction(f, S, v._dbSchema, g);
3153
3153
  if (y.explicit = !0, w = { trans: y, transless: w }, g) y.idbtrans = g.idbtrans;
3154
3154
  else try {
3155
3155
  y.create(), y.idbtrans._explicit = !0, v._state.PR1398_maxLoop = 3;
@@ -3174,12 +3174,12 @@ function Ma() {
3174
3174
  return y._reject(D), q(D);
3175
3175
  });
3176
3176
  });
3177
- }.bind(null, this, o, u, s, r);
3178
- return s ? s._promise(o, h, "lock") : B.trans ? We(B.transless, function() {
3177
+ }.bind(null, this, i, u, s, r);
3178
+ return s ? s._promise(i, h, "lock") : G.trans ? We(G.transless, function() {
3179
3179
  return a._whenReady(h);
3180
3180
  }) : this._whenReady(h);
3181
3181
  }, ee.prototype.table = function(e) {
3182
- if (!oe(this._allTables, e)) throw new L.InvalidTable("Table ".concat(e, " does not exist"));
3182
+ if (!ie(this._allTables, e)) throw new L.InvalidTable("Table ".concat(e, " does not exist"));
3183
3183
  return this._allTables[e];
3184
3184
  }, ee);
3185
3185
  function ee(e, t) {
@@ -3187,7 +3187,7 @@ function Ma() {
3187
3187
  this._middlewares = {}, this.verno = 0;
3188
3188
  var a = ee.dependencies;
3189
3189
  this._options = t = l({ addons: ee.addons, autoOpen: !0, indexedDB: a.indexedDB, IDBKeyRange: a.IDBKeyRange, cache: "cloned" }, t), this._deps = { indexedDB: t.indexedDB, IDBKeyRange: t.IDBKeyRange }, a = t.addons, this._dbSchema = {}, this._versions = [], this._storeNames = [], this._allTables = {}, this.idbdb = null, this._novip = this;
3190
- var s, o, u, d, h, m = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: Q, dbReadyPromise: null, cancelOpen: Q, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: t.autoOpen };
3190
+ var s, i, u, d, h, m = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: Q, dbReadyPromise: null, cancelOpen: Q, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: t.autoOpen };
3191
3191
  m.dbReadyPromise = new j(function(f) {
3192
3192
  m.dbReadyResolve = f;
3193
3193
  }), m.openCanceller = new j(function(f, S) {
@@ -3201,9 +3201,9 @@ function Ma() {
3201
3201
  }));
3202
3202
  });
3203
3203
  };
3204
- }), this.Collection = (s = this, gt(ia.prototype, function(A, y) {
3204
+ }), this.Collection = (s = this, gt(oa.prototype, function(A, y) {
3205
3205
  this.db = s;
3206
- var g = or, b = null;
3206
+ var g = ir, b = null;
3207
3207
  if (y) try {
3208
3208
  g = y();
3209
3209
  } catch (P) {
@@ -3211,8 +3211,8 @@ function Ma() {
3211
3211
  }
3212
3212
  var w = A._ctx, y = w.table, A = y.hook.reading.fire;
3213
3213
  this._ctx = { table: y, index: w.index, isPrimKey: !w.index || y.schema.primKey.keyPath && w.index === y.schema.primKey.name, range: g, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: b, or: w.or, valueMapper: A !== ct ? A : null };
3214
- })), this.Table = (o = this, gt(dr.prototype, function(f, S, g) {
3215
- this.db = o, this._tx = g, this.name = f, this.schema = S, this.hook = o._allTables[f] ? o._allTables[f].hook : ht(null, { creating: [Jr, Q], reading: [Xr, ct], updating: [qr, Q], deleting: [Zr, Q] });
3214
+ })), this.Table = (i = this, gt(dr.prototype, function(f, S, g) {
3215
+ this.db = i, this._tx = g, this.name = f, this.schema = S, this.hook = i._allTables[f] ? i._allTables[f].hook : ht(null, { creating: [Jr, Q], reading: [Xr, ct], updating: [qr, Q], deleting: [Zr, Q] });
3216
3216
  })), this.Transaction = (u = this, gt(ua.prototype, function(f, S, g, b, w) {
3217
3217
  var y = this;
3218
3218
  this.db = u, this.mode = f, this.storeNames = S, this.schema = g, this.chromeTransactionDurability = b, this.idbtrans = null, this.on = ht(this, "complete", "error", "abort"), this.parent = w || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new j(function(A, P) {
@@ -3249,35 +3249,35 @@ function Ma() {
3249
3249
  var v = new Proxy(this, { get: function(f, S, g) {
3250
3250
  if (S === "_vip") return !0;
3251
3251
  if (S === "table") return function(w) {
3252
- return Xt(r.table(w), v);
3252
+ return Jt(r.table(w), v);
3253
3253
  };
3254
3254
  var b = Reflect.get(f, S, g);
3255
- return b instanceof dr ? Xt(b, v) : S === "tables" ? b.map(function(w) {
3256
- return Xt(w, v);
3255
+ return b instanceof dr ? Jt(b, v) : S === "tables" ? b.map(function(w) {
3256
+ return Jt(w, v);
3257
3257
  }) : S === "_createTransaction" ? function() {
3258
- return Xt(b.apply(this, arguments), v);
3258
+ return Jt(b.apply(this, arguments), v);
3259
3259
  } : b;
3260
3260
  } });
3261
3261
  this.vip = v, a.forEach(function(f) {
3262
3262
  return f(r);
3263
3263
  });
3264
3264
  }
3265
- var Jt, fe = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", Aa = (Bn.prototype.subscribe = function(e, t, r) {
3265
+ var Zt, fe = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", Aa = (Gn.prototype.subscribe = function(e, t, r) {
3266
3266
  return this._subscribe(e && typeof e != "function" ? e : { next: e, error: t, complete: r });
3267
- }, Bn.prototype[fe] = function() {
3267
+ }, Gn.prototype[fe] = function() {
3268
3268
  return this;
3269
- }, Bn);
3270
- function Bn(e) {
3269
+ }, Gn);
3270
+ function Gn(e) {
3271
3271
  this._subscribe = e;
3272
3272
  }
3273
3273
  try {
3274
- Jt = { indexedDB: O.indexedDB || O.mozIndexedDB || O.webkitIndexedDB || O.msIndexedDB, IDBKeyRange: O.IDBKeyRange || O.webkitIDBKeyRange };
3274
+ Zt = { indexedDB: O.indexedDB || O.mozIndexedDB || O.webkitIndexedDB || O.msIndexedDB, IDBKeyRange: O.IDBKeyRange || O.webkitIDBKeyRange };
3275
3275
  } catch {
3276
- Jt = { indexedDB: null, IDBKeyRange: null };
3276
+ Zt = { indexedDB: null, IDBKeyRange: null };
3277
3277
  }
3278
3278
  function Ir(e) {
3279
3279
  var t, r = !1, a = new Aa(function(s) {
3280
- var o = an(e), u, d = !1, h = {}, m = {}, v = { get closed() {
3280
+ var i = an(e), u, d = !1, h = {}, m = {}, v = { get closed() {
3281
3281
  return d;
3282
3282
  }, unsubscribe: function() {
3283
3283
  d || (d = !0, u && u.abort(), f && Ie.storagemutated.unsubscribe(g));
@@ -3286,21 +3286,21 @@ function Ma() {
3286
3286
  var f = !1, S = function() {
3287
3287
  return pn(b);
3288
3288
  }, g = function(w) {
3289
- Vt(h, w), xn(m, h) && S();
3289
+ Yt(h, w), xn(m, h) && S();
3290
3290
  }, b = function() {
3291
3291
  var w, y, A;
3292
- !d && Jt.indexedDB && (h = {}, w = {}, u && u.abort(), u = new AbortController(), A = function(P) {
3292
+ !d && Zt.indexedDB && (h = {}, w = {}, u && u.abort(), u = new AbortController(), A = function(P) {
3293
3293
  var D = Ze();
3294
3294
  try {
3295
- o && et();
3295
+ i && et();
3296
3296
  var N = De(e, P);
3297
- return N = o ? N.finally(Ne) : N;
3297
+ return N = i ? N.finally(Ne) : N;
3298
3298
  } finally {
3299
3299
  D && qe();
3300
3300
  }
3301
3301
  }(y = { subscr: w, signal: u.signal, requery: S, querier: e, trans: null }), Promise.resolve(A).then(function(P) {
3302
3302
  r = !0, t = P, d || y.signal.aborted || (h = {}, function(D) {
3303
- for (var N in D) if (oe(D, N)) return;
3303
+ for (var N in D) if (ie(D, N)) return;
3304
3304
  return 1;
3305
3305
  }(m = w) || f || (Ie(yt, g), f = !0), pn(function() {
3306
3306
  return !d && s.next && s.next(P);
@@ -3328,7 +3328,7 @@ function Ma() {
3328
3328
  xe = t;
3329
3329
  }
3330
3330
  }
3331
- be(He, l(l({}, Pt), { delete: function(e) {
3331
+ be(He, l(l({}, Dt), { delete: function(e) {
3332
3332
  return new He(e, { addons: [] }).delete();
3333
3333
  }, exists: function(e) {
3334
3334
  return new He(e, { addons: [] }).open().then(function(t) {
@@ -3342,7 +3342,7 @@ function Ma() {
3342
3342
  return a.map(function(s) {
3343
3343
  return s.name;
3344
3344
  }).filter(function(s) {
3345
- return s !== $t;
3345
+ return s !== jt;
3346
3346
  });
3347
3347
  }) : Nn(r, t).toCollection().primaryKeys()).then(e);
3348
3348
  } catch {
@@ -3354,7 +3354,7 @@ function Ma() {
3354
3354
  te(this, e);
3355
3355
  };
3356
3356
  }, ignoreTransaction: function(e) {
3357
- return B.trans ? We(B.transless, e) : e();
3357
+ return G.trans ? We(G.transless, e) : e();
3358
3358
  }, vip: Tn, async: function(e) {
3359
3359
  return function() {
3360
3360
  try {
@@ -3372,18 +3372,18 @@ function Ma() {
3372
3372
  return q(s);
3373
3373
  }
3374
3374
  }, currentTransaction: { get: function() {
3375
- return B.trans || null;
3375
+ return G.trans || null;
3376
3376
  } }, waitFor: function(e, t) {
3377
- return t = j.resolve(typeof e == "function" ? He.ignoreTransaction(e) : e).timeout(t || 6e4), B.trans ? B.trans.waitFor(t) : t;
3377
+ return t = j.resolve(typeof e == "function" ? He.ignoreTransaction(e) : e).timeout(t || 6e4), G.trans ? G.trans.waitFor(t) : t;
3378
3378
  }, Promise: j, debug: { get: function() {
3379
3379
  return pe;
3380
3380
  }, set: function(e) {
3381
3381
  er(e);
3382
- } }, derive: Ye, extend: te, props: be, override: Vn, Events: ht, on: Ie, liveQuery: Ir, extendObservabilitySet: Vt, getByKeyPath: ve, setByKeyPath: ue, delByKeyPath: function(e, t) {
3382
+ } }, derive: Ye, extend: te, props: be, override: Vn, Events: ht, on: Ie, liveQuery: Ir, extendObservabilitySet: Yt, getByKeyPath: ve, setByKeyPath: ue, delByKeyPath: function(e, t) {
3383
3383
  typeof t == "string" ? ue(e, t, void 0) : "length" in t && [].map.call(t, function(r) {
3384
3384
  ue(e, r, void 0);
3385
3385
  });
3386
- }, shallowClone: Qn, deepClone: $e, getObjectDiff: Mn, cmp: H, asap: Yn, minKey: -1 / 0, addons: [], connections: tt, errnames: sn, dependencies: Jt, cache: ze, semVer: "4.0.11", version: "4.0.11".split(".").map(function(e) {
3386
+ }, shallowClone: Qn, deepClone: $e, getObjectDiff: Mn, cmp: H, asap: Yn, minKey: -1 / 0, addons: [], connections: tt, errnames: sn, dependencies: Zt, cache: ze, semVer: "4.0.11", version: "4.0.11".split(".").map(function(e) {
3387
3387
  return parseInt(e);
3388
3388
  }).reduce(function(e, t, r) {
3389
3389
  return e + t / Math.pow(10, 2 * r);
@@ -3419,18 +3419,30 @@ function Ma() {
3419
3419
  return new pt({ remove: e });
3420
3420
  }, default: Se, RangeSet: ae, mergeRanges: wt, rangesOverlap: wr }), { default: Se }), Se;
3421
3421
  });
3422
- }(en)), en.exports;
3422
+ }(tn)), tn.exports;
3423
3423
  }
3424
3424
  var Ka = Ma();
3425
- const zn = /* @__PURE__ */ $a(Ka), $r = Symbol.for("Dexie"), tn = globalThis[$r] || (globalThis[$r] = zn);
3426
- if (zn.semVer !== tn.semVer)
3427
- throw new Error(`Two different versions of Dexie loaded in the same app: ${zn.semVer} and ${tn.semVer}`);
3425
+ const zn = /* @__PURE__ */ $a(Ka), $r = Symbol.for("Dexie"), St = globalThis[$r] || (globalThis[$r] = zn);
3426
+ if (zn.semVer !== St.semVer)
3427
+ throw new Error(`Two different versions of Dexie loaded in the same app: ${zn.semVer} and ${St.semVer}`);
3428
+ const {
3429
+ liveQuery: La,
3430
+ mergeRanges: Wa,
3431
+ rangesOverlap: Fa,
3432
+ RangeSet: Ua,
3433
+ cmp: za,
3434
+ Entity: Ha,
3435
+ PropModification: Va,
3436
+ replacePrefix: Ya,
3437
+ add: Qa,
3438
+ remove: Xa
3439
+ } = St;
3428
3440
  class Mr {
3429
3441
  db;
3430
3442
  subscribers = [];
3431
3443
  options;
3432
3444
  constructor(n) {
3433
- this.options = n, this.db = new tn(n.app), this.db.version(11).stores({
3445
+ this.options = n, this.db = new St(n.app), this.db.version(11).stores({
3434
3446
  channel: "id,slide_index",
3435
3447
  cloud: "id,dashboard_id",
3436
3448
  dashboard: "id,name,update",
@@ -3467,15 +3479,15 @@ class Mr {
3467
3479
  success: !1,
3468
3480
  query: n
3469
3481
  };
3470
- const i = await this.db.table(_.CLOUD).where({ id: n.widget }).last().catch(() => {
3482
+ const o = await this.db.table(_.CLOUD).where({ id: n.widget }).last().catch(() => {
3471
3483
  K(2, ["%capi%C %ccloud", c.API, c.NONE, c.CLOUD, n.widget]);
3472
3484
  });
3473
- if (typeof i > "u")
3485
+ if (typeof o > "u")
3474
3486
  return { data: null, message: "Cloud Data error", success: !1, query: n };
3475
3487
  const l = {
3476
- data: i.data,
3477
- message: i !== void 0 ? "Cloud retrieved successfully" : "Cloud Data error",
3478
- success: i !== void 0,
3488
+ data: o.data,
3489
+ message: o !== void 0 ? "Cloud retrieved successfully" : "Cloud Data error",
3490
+ success: o !== void 0,
3479
3491
  query: n
3480
3492
  };
3481
3493
  return K(3, [
@@ -3494,11 +3506,11 @@ class Mr {
3494
3506
  * @param data
3495
3507
  * @returns number
3496
3508
  */
3497
- setCloud = async (n, i) => n.type === _.CLOUD && i !== "" ? await this.db.table(_.CLOUD).put({
3509
+ setCloud = async (n, o) => n.type === _.CLOUD && o !== "" ? await this.db.table(_.CLOUD).put({
3498
3510
  id: n.widget,
3499
3511
  dashboard_id: n.dashboard,
3500
3512
  //data: data.data,
3501
- data: i
3513
+ data: o
3502
3514
  }).then(() => 201).catch((l) => (K(2, [
3503
3515
  "%cset%c %cstorage%c %ccloud",
3504
3516
  c.KO,
@@ -3510,18 +3522,18 @@ class Mr {
3510
3522
  l.message
3511
3523
  ]), 400)) : 400;
3512
3524
  getDashboard = async (n) => {
3513
- const i = await this.db.table(_.DASHBOARD).where({ id: n.id }).last().catch(() => {
3525
+ const o = await this.db.table(_.DASHBOARD).where({ id: n.id }).last().catch(() => {
3514
3526
  K(2, ["%cstorage", c.STORAGE, J.DASHBOARD_LOAD, n.id]);
3515
3527
  });
3516
- return i === void 0 ? {
3528
+ return o === void 0 ? {
3517
3529
  data: null,
3518
3530
  message: `Dashboard ${n.id} Load error`,
3519
3531
  success: !1
3520
- } : (i.message = `Dashboard ${n.id} retrieved from storage`, i.success = !0, i);
3532
+ } : (o.message = `Dashboard ${n.id} retrieved from storage`, o.success = !0, o);
3521
3533
  };
3522
3534
  getDashboards = async (n) => {
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(() => {
3535
+ const o = (O) => n?.id === O.id, l = (O) => n?.name ? O.name.includes(n?.name) : !1;
3536
+ let E = await this.db.table(_.DASHBOARD).toArray().then((O) => n?.id ? O.filter(o) : O).then((O) => n?.name ? O.filter(l) : O).catch(() => {
3525
3537
  K(2, ["%cstorage", c.STORAGE, J.DASHBOARD_LOAD, n]);
3526
3538
  });
3527
3539
  return E !== void 0 && K(3, [
@@ -3543,19 +3555,19 @@ class Mr {
3543
3555
  * @returns number
3544
3556
  */
3545
3557
  setDashboard = async (n) => {
3546
- const i = structuredClone(n);
3547
- return delete i.data.widgets, await this.db.table(_.DASHBOARD).put({
3548
- id: i.id,
3549
- name: i.name,
3550
- data: i.data,
3551
- update: i.update
3558
+ const o = structuredClone(n);
3559
+ return delete o.data.widgets, await this.db.table(_.DASHBOARD).put({
3560
+ id: o.id,
3561
+ name: o.name,
3562
+ data: o.data,
3563
+ update: o.update
3552
3564
  }).then(() => ({
3553
3565
  data: null,
3554
- message: `Dashboard ${i.data.id} saved to storage`,
3566
+ message: `Dashboard ${o.data.id} saved to storage`,
3555
3567
  success: !0
3556
3568
  })).catch((l) => (K(4, ["%cstorage", c.STORAGE, _.WIDGET, n, l.message]), {
3557
3569
  data: null,
3558
- message: `Dashboard ${i.data.id} save error: ${l.message}`,
3570
+ message: `Dashboard ${o.data.id} save error: ${l.message}`,
3559
3571
  success: !1
3560
3572
  }));
3561
3573
  };
@@ -3563,8 +3575,8 @@ class Mr {
3563
3575
  * Wipe Message data after expires timestamp
3564
3576
  */
3565
3577
  cleanMessages = async () => {
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(
3578
+ const n = Date.now() / 1e3, o = (O) => O.expires < n, l = (O) => O.expires < n;
3579
+ return await this.db.table(_.TOPICS).orderBy("expires").filter(o).delete().catch((O) => (console.error(
3568
3580
  "%cstorage%c %cclean",
3569
3581
  c.STORAGE,
3570
3582
  c.NONE,
@@ -3601,11 +3613,11 @@ class Mr {
3601
3613
  success: !1,
3602
3614
  query: n
3603
3615
  };
3604
- const i = n?.order ?? "utc", l = Math.floor(Date.now() / 1e3);
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), O = (G) => G.utc < (n?.before || l), C = (G) => G?.visible !== 0;
3616
+ const o = n?.order ?? "utc", l = Math.floor(Date.now() / 1e3);
3617
+ o !== "utc" && (n.since = l - 60 * 60 * 24 * 30), this.options.delay != 0 ? n.before = l - (this.options.delay || 0) : n.before = l;
3618
+ const E = (B) => B.utc > (n?.since || 0), O = (B) => B.utc < (n?.before || l), C = (B) => B?.visible !== 0;
3607
3619
  try {
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);
3620
+ 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(o);
3609
3621
  if (te.length === 0)
3610
3622
  return {
3611
3623
  data: null,
@@ -3614,10 +3626,10 @@ class Mr {
3614
3626
  query: n
3615
3627
  };
3616
3628
  let ge = te.map((Ce) => this.db.table(_.MESSAGES).get({ id: Ce.message_id }));
3617
- return tn.Promise.all(ge).then(async (Ce) => {
3629
+ return St.Promise.all(ge).then(async (Ce) => {
3618
3630
  const be = {
3619
3631
  data: {
3620
- messages: Ce.map((Ot) => Ot.data)
3632
+ messages: Ce.map((_t) => _t.data)
3621
3633
  },
3622
3634
  query: n,
3623
3635
  message: "Messages retrieved successfully",
@@ -3633,7 +3645,7 @@ class Mr {
3633
3645
  be
3634
3646
  ]), be;
3635
3647
  });
3636
- } catch (G) {
3648
+ } catch (B) {
3637
3649
  return K(2, [
3638
3650
  "%cget%c %cstorage%c %cmessages",
3639
3651
  c.OK,
@@ -3642,12 +3654,12 @@ class Mr {
3642
3654
  c.NONE,
3643
3655
  c.NO_UPDATES,
3644
3656
  n,
3645
- G.message
3657
+ B.message
3646
3658
  ]), { data: null, message: "Messages Data error", success: !1 };
3647
3659
  }
3648
3660
  };
3649
- hideMessage = async (n, i) => {
3650
- await this.db.table(_.TOPICS).where("message_id").equals(n).modify({ visible: i ? 1 : 0 }).catch((l) => (console.error(
3661
+ hideMessage = async (n, o) => {
3662
+ await this.db.table(_.TOPICS).where("message_id").equals(n).modify({ visible: o ? 1 : 0 }).catch((l) => (console.error(
3651
3663
  "%chide%c %cstorage%c %cmessage",
3652
3664
  c.KO,
3653
3665
  c.NONE,
@@ -3663,12 +3675,12 @@ class Mr {
3663
3675
  * @param data any
3664
3676
  * @returns number
3665
3677
  */
3666
- setMessages = async (n, i) => {
3678
+ setMessages = async (n, o) => {
3667
3679
  if (n.type !== _.MESSAGES)
3668
3680
  return 400;
3669
- const l = i.data.title;
3681
+ const l = o.data.title;
3670
3682
  let E = 0;
3671
- return await i.data.messages.forEach(async (O) => {
3683
+ return await o.data.messages.forEach(async (O) => {
3672
3684
  O.id !== null && (O.topics[0] = {
3673
3685
  message_id: O.id,
3674
3686
  engagement: O.topics[0]?.engagement || O.dynamics?.engagement || 0,
@@ -3713,9 +3725,9 @@ class Mr {
3713
3725
  O,
3714
3726
  C.message
3715
3727
  ]);
3716
- }), await i.data.topics.forEach(async (C) => {
3717
- const G = C.message_id, te = C.visible ? 1 : 0, ge = C.title;
3718
- await this.db.table(_.TOPICS).where("message_id").equals(G).modify({ visible: te }).catch((Ce) => {
3728
+ }), await o.data.topics.forEach(async (C) => {
3729
+ const B = C.message_id, te = C.visible ? 1 : 0, ge = C.title;
3730
+ await this.db.table(_.TOPICS).where("message_id").equals(B).modify({ visible: te }).catch((Ce) => {
3719
3731
  E++, K(4, [
3720
3732
  "%cset%c %cstorage",
3721
3733
  c.KO,
@@ -3751,7 +3763,7 @@ class Mr {
3751
3763
  success: !1,
3752
3764
  query: n
3753
3765
  };
3754
- const i = await this.db.table(_.SERIES).where({ id: n.widget }).last().catch(() => {
3766
+ const o = await this.db.table(_.SERIES).where({ id: n.widget }).last().catch(() => {
3755
3767
  K(2, [
3756
3768
  "%cget%c %cstorage%c %cseries",
3757
3769
  c.KO,
@@ -3762,9 +3774,9 @@ class Mr {
3762
3774
  n.widget
3763
3775
  ]);
3764
3776
  }), l = {
3765
- data: i.data,
3766
- message: i !== void 0 ? "Get Series success" : "Get Series error",
3767
- success: i !== void 0,
3777
+ data: o.data,
3778
+ message: o !== void 0 ? "Get Series success" : "Get Series error",
3779
+ success: o !== void 0,
3768
3780
  query: n
3769
3781
  };
3770
3782
  return K(3, [
@@ -3783,11 +3795,11 @@ class Mr {
3783
3795
  * @param data
3784
3796
  * @returns number
3785
3797
  */
3786
- setSeries = async (n, i) => (delete i?.query, n.type === _.SERIES && i !== "" ? await this.db.table(_.SERIES).put({
3798
+ setSeries = async (n, o) => (delete o?.query, n.type === _.SERIES && o !== "" ? await this.db.table(_.SERIES).put({
3787
3799
  id: n.widget,
3788
3800
  dashboard_id: n.dashboard,
3789
3801
  //data: data.data,
3790
- data: i
3802
+ data: o
3791
3803
  }).then(() => 201).catch((l) => (K(2, [
3792
3804
  "%cset%c %cstorage%c %cseries",
3793
3805
  c.KO,
@@ -3819,14 +3831,14 @@ class Mr {
3819
3831
  success: !1,
3820
3832
  query: n
3821
3833
  };
3822
- const i = await this.db.table(_.WIDGET).where({ id: n.id }).last().catch(() => {
3834
+ const o = await this.db.table(_.WIDGET).where({ id: n.id }).last().catch(() => {
3823
3835
  console.warn("%cstorage", c.STORAGE, J.WIDGET_LOAD, n.id);
3824
3836
  });
3825
- return i === void 0 ? {
3837
+ return o === void 0 ? {
3826
3838
  data: null,
3827
3839
  message: `Widget ${n.id} Load error`,
3828
3840
  success: !1
3829
- } : (i.message = `Widget ${n.id} retrieved from storage`, i.success = !0, i);
3841
+ } : (o.message = `Widget ${n.id} retrieved from storage`, o.success = !0, o);
3830
3842
  };
3831
3843
  /**
3832
3844
  * Retrieve Widgets from Storage
@@ -3834,8 +3846,8 @@ class Mr {
3834
3846
  * @returns IResponse
3835
3847
  */
3836
3848
  getWidgets = async (n) => {
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 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(() => {
3849
+ const o = (C) => n?.dashboard === C.dashboard_id, l = (C) => n?.type === C.type, E = (C) => n?.name ? C.name.includes(n?.name) : !1;
3850
+ let O = await this.db.table(_.WIDGET).toArray().then((C) => n?.dashboard ? C.filter(o) : C).then((C) => n?.type ? C.filter(l) : C).then((C) => n?.name ? C.filter(E) : C).catch(() => {
3839
3851
  K(2, ["%cstorage", c.STORAGE, J.WIDGET_LOAD, n]);
3840
3852
  });
3841
3853
  return O !== void 0 && K(3, [
@@ -3866,15 +3878,15 @@ class Mr {
3866
3878
  data: null,
3867
3879
  message: `Widget ${n.data.id} saved to storage`,
3868
3880
  success: !0
3869
- })).catch((i) => (console.error(
3881
+ })).catch((o) => (console.error(
3870
3882
  "%cstorage",
3871
3883
  c.STORAGE,
3872
3884
  _.WIDGET,
3873
3885
  n,
3874
- i.message
3886
+ o.message
3875
3887
  ), {
3876
3888
  data: null,
3877
- message: `Widget ${n.data.id} save error: ${i.message}`,
3889
+ message: `Widget ${n.data.id} save error: ${o.message}`,
3878
3890
  success: !1
3879
3891
  }));
3880
3892
  /**
@@ -3884,7 +3896,7 @@ class Mr {
3884
3896
  */
3885
3897
  subscribe = (n) => (n = Ia(n), this.subscribers.filter(
3886
3898
  (l) => l.widget === n.widget
3887
- ).length > 0 || (n.type === _.MESSAGES && (n = St(this.options, n)), console.info(
3899
+ ).length > 0 || (n.type === _.MESSAGES && (n = Ot(this.options, n)), console.info(
3888
3900
  "%cstorage%c %csubscribe",
3889
3901
  c.STORAGE,
3890
3902
  c.NONE,
@@ -3909,14 +3921,14 @@ class Mr {
3909
3921
  * @returns IResponse
3910
3922
  */
3911
3923
  getSlide = async (n) => {
3912
- const i = await this.db.table(_.SLIDE).where({ id: n.id }).last().catch(() => {
3924
+ const o = await this.db.table(_.SLIDE).where({ id: n.id }).last().catch(() => {
3913
3925
  K(2, ["%cstorage", c.STORAGE, J.SLIDE_LOAD, n.id]);
3914
3926
  });
3915
3927
  return {
3916
3928
  // @ts-ignore
3917
- data: i !== void 0 ? { slides: i, query: n } : null,
3918
- message: i !== void 0 ? "Slide loaded from storage" : "Slide load error",
3919
- success: i !== void 0
3929
+ data: o !== void 0 ? { slides: o, query: n } : null,
3930
+ message: o !== void 0 ? "Slide loaded from storage" : "Slide load error",
3931
+ success: o !== void 0
3920
3932
  };
3921
3933
  };
3922
3934
  /**
@@ -3925,7 +3937,7 @@ class Mr {
3925
3937
  * @returns IResponse
3926
3938
  */
3927
3939
  getSlides = async (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);
3940
+ const o = (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(o) : C).then((C) => n?.name ? C.filter(l) : C);
3929
3941
  return O !== void 0 && K(3, ["%cstorage%c %cslides", c.STORAGE, c.NONE, c.SLIDE, n]), {
3930
3942
  // @ts-ignore
3931
3943
  data: O !== void 0 ? { slides: O, query: n } : null,
@@ -3950,15 +3962,15 @@ class Mr {
3950
3962
  data: null,
3951
3963
  message: `Slide ${n.data.id} saved to storage`,
3952
3964
  success: !0
3953
- })).catch((i) => (console.error(
3965
+ })).catch((o) => (console.error(
3954
3966
  "%cstorage",
3955
3967
  c.STORAGE,
3956
3968
  J.SLIDE_STORE,
3957
3969
  n,
3958
- i.message
3970
+ o.message
3959
3971
  ), {
3960
3972
  data: null,
3961
- message: `Slide ${n.data.id} save error: ${i.message}`,
3973
+ message: `Slide ${n.data.id} save error: ${o.message}`,
3962
3974
  success: !1
3963
3975
  }));
3964
3976
  /**
@@ -3967,7 +3979,7 @@ class Mr {
3967
3979
  * @returns IResponse
3968
3980
  */
3969
3981
  getPresentation = async (n) => {
3970
- const i = await this.db.table(_.PRESENTATION).where({ id: n.id }).last().catch(() => {
3982
+ const o = await this.db.table(_.PRESENTATION).where({ id: n.id }).last().catch(() => {
3971
3983
  console.warn(
3972
3984
  "%cstorage ",
3973
3985
  c.STORAGE,
@@ -3975,11 +3987,11 @@ class Mr {
3975
3987
  n.id
3976
3988
  );
3977
3989
  });
3978
- return i === void 0 ? {
3990
+ return o === void 0 ? {
3979
3991
  data: null,
3980
3992
  message: `Presentation ${n.id} Load error`,
3981
3993
  success: !1
3982
- } : (i.message = `Presentation ${n.id} retrieved from storage`, i.success = !0, i);
3994
+ } : (o.message = `Presentation ${n.id} retrieved from storage`, o.success = !0, o);
3983
3995
  };
3984
3996
  /**
3985
3997
  * Retrieve Presentations from Storage
@@ -3987,7 +3999,7 @@ class Mr {
3987
3999
  * @returns IResponse
3988
4000
  */
3989
4001
  getPresentations = async (n) => {
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);
4002
+ const o = (O) => n?.name ? O.name.includes(n?.name) : !1, E = await this.db.table(_.PRESENTATION).toArray().then((O) => n?.name ? O.filter(o) : O);
3991
4003
  return E !== void 0 && K(3, [
3992
4004
  "%cstorage%c %cpresentations",
3993
4005
  c.STORAGE,
@@ -4015,15 +4027,15 @@ class Mr {
4015
4027
  data: null,
4016
4028
  message: `Presentation ${n.data.id} saved to storage`,
4017
4029
  success: !0
4018
- })).catch((i) => (console.error(
4030
+ })).catch((o) => (console.error(
4019
4031
  "%cstorage",
4020
4032
  c.STORAGE,
4021
4033
  J.PRESENTATION_STORE,
4022
4034
  n,
4023
- i.message
4035
+ o.message
4024
4036
  ), {
4025
4037
  data: null,
4026
- message: `Presentation ${n.data.id} save error: ${i.message}`,
4038
+ message: `Presentation ${n.data.id} save error: ${o.message}`,
4027
4039
  success: !1
4028
4040
  }));
4029
4041
  /**
@@ -4032,7 +4044,7 @@ class Mr {
4032
4044
  * @returns IResponse
4033
4045
  */
4034
4046
  getPreference = async (n) => {
4035
- const i = await this.db.table(_.PREFERENCE).where({ id: n.id }).last().catch(() => {
4047
+ const o = await this.db.table(_.PREFERENCE).where({ id: n.id }).last().catch(() => {
4036
4048
  K(2, [
4037
4049
  "%cstorage",
4038
4050
  c.STORAGE,
@@ -4042,9 +4054,9 @@ class Mr {
4042
4054
  });
4043
4055
  return {
4044
4056
  // @ts-ignore
4045
- data: i !== void 0 ? { preferences: i, query } : null,
4046
- message: i !== void 0 ? "Preference loaded from storage" : "Preference load error",
4047
- success: i !== void 0
4057
+ data: o !== void 0 ? { preferences: o, query: n } : null,
4058
+ message: o !== void 0 ? "Preference loaded from storage" : "Preference load error",
4059
+ success: o !== void 0
4048
4060
  };
4049
4061
  };
4050
4062
  /**
@@ -4053,7 +4065,7 @@ class Mr {
4053
4065
  * @returns IResponse
4054
4066
  */
4055
4067
  getPreferences = async (n) => {
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);
4068
+ const o = (O) => n?.id ? n.id = O.id : !1, E = await this.db.table(_.SLIDE).toArray().then((O) => n?.id ? O.filter(o) : O);
4057
4069
  return E !== void 0 && K(3, [
4058
4070
  "%cstorage%c %cpreferences",
4059
4071
  c.STORAGE,
@@ -4079,56 +4091,56 @@ class Mr {
4079
4091
  data: null,
4080
4092
  message: `Preference ${n.id} saved to storage`,
4081
4093
  success: !0
4082
- })).catch((i) => (console.error(
4094
+ })).catch((o) => (console.error(
4083
4095
  "%cstorage",
4084
4096
  c.STORAGE,
4085
4097
  J.PREFERENCE_STORE,
4086
4098
  n,
4087
- i.message
4099
+ o.message
4088
4100
  ), {
4089
4101
  data: null,
4090
- message: `Preference ${n.id} save error: ${i.message}`,
4102
+ message: `Preference ${n.id} save error: ${o.message}`,
4091
4103
  success: !1
4092
4104
  }));
4093
4105
  }
4094
4106
  function Hn(p) {
4095
- return new Promise((n, i) => {
4096
- p.oncomplete = p.onsuccess = () => n(p.result), p.onabort = p.onerror = () => i(p.error);
4107
+ return new Promise((n, o) => {
4108
+ p.oncomplete = p.onsuccess = () => n(p.result), p.onabort = p.onerror = () => o(p.error);
4097
4109
  });
4098
4110
  }
4099
- function Ga(p, n) {
4100
- const i = indexedDB.open(p);
4101
- i.onupgradeneeded = () => i.result.createObjectStore(n);
4102
- const l = Hn(i);
4111
+ function Ba(p, n) {
4112
+ const o = indexedDB.open(p);
4113
+ o.onupgradeneeded = () => o.result.createObjectStore(n);
4114
+ const l = Hn(o);
4103
4115
  return (E, O) => l.then((C) => O(C.transaction(n, E).objectStore(n)));
4104
4116
  }
4105
4117
  let Un;
4106
4118
  function Kr() {
4107
- return Un || (Un = Ga("keyval-store", "keyval")), Un;
4119
+ return Un || (Un = Ba("keyval-store", "keyval")), Un;
4108
4120
  }
4109
4121
  function _e(p, n = Kr()) {
4110
- return n("readonly", (i) => Hn(i.get(p)));
4122
+ return n("readonly", (o) => Hn(o.get(p)));
4111
4123
  }
4112
- function ke(p, n, i = Kr()) {
4113
- return i("readwrite", (l) => (l.put(n, p), Hn(l.transaction)));
4124
+ function ke(p, n, o = Kr()) {
4125
+ return o("readwrite", (l) => (l.put(n, p), Hn(l.transaction)));
4114
4126
  }
4115
- class Gr {
4127
+ class Br {
4116
4128
  subscribers = [];
4117
4129
  options;
4118
4130
  constructor(n) {
4119
4131
  this.options = n;
4120
4132
  }
4121
4133
  getCloud = async (n) => {
4122
- const i = Y(n);
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 }));
4134
+ const o = Y(n);
4135
+ return await _e(o).then((l) => l).catch(() => (console.warn("%capi", c.API, _.CLOUD, n.slide, n.widget), { data: null, message: "Cloud Data error", success: !1 }));
4124
4136
  };
4125
4137
  getSeries = async (n) => {
4126
- const i = Y(n);
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 }));
4138
+ const o = Y(n);
4139
+ return await _e(o).then((l) => l).catch(() => (console.warn("%capi", c.API, _.SERIES, n.slide, n.widget), { data: null, message: "Series Data error", success: !1 }));
4128
4140
  };
4129
4141
  getMessages = async (n) => {
4130
- const i = Y(n);
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 }));
4142
+ const o = Y(n);
4143
+ return await _e(o).then((l) => l).catch(() => (console.warn("%capi", c.API, _.MESSAGES, n.slide, n.widget), { data: null, message: "Messages Data error", success: !1 }));
4132
4144
  };
4133
4145
  /**
4134
4146
  * Update Cloud
@@ -4136,11 +4148,11 @@ class Gr {
4136
4148
  * @param data
4137
4149
  * @returns number
4138
4150
  */
4139
- setCloud = async (n, i) => {
4140
- if (!i.success)
4151
+ setCloud = async (n, o) => {
4152
+ if (!o.success)
4141
4153
  return 400;
4142
4154
  const l = Y(n);
4143
- return delete i.success, delete i.message, await ke(l, i).then(() => 201).catch((E) => (console.error(
4155
+ return delete o.success, delete o.message, await ke(l, o).then(() => 201).catch((E) => (console.error(
4144
4156
  "%cstorage",
4145
4157
  c.STORAGE,
4146
4158
  _.CLOUD,
@@ -4154,11 +4166,11 @@ class Gr {
4154
4166
  * @param data
4155
4167
  * @returns bumber
4156
4168
  */
4157
- setSeries = async (n, i) => {
4158
- if (!i.success)
4169
+ setSeries = async (n, o) => {
4170
+ if (!o.success)
4159
4171
  return 400;
4160
4172
  const l = Y(n);
4161
- return delete i.success, delete i.message, await ke(l, i).then(() => 201).catch((E) => (console.error(
4173
+ return delete o.success, delete o.message, await ke(l, o).then(() => 201).catch((E) => (console.error(
4162
4174
  "%cstorage",
4163
4175
  c.STORAGE,
4164
4176
  _.SERIES,
@@ -4172,11 +4184,11 @@ class Gr {
4172
4184
  * @param data
4173
4185
  * @returns number
4174
4186
  */
4175
- setMessages = async (n, i) => {
4176
- if (!i.success)
4187
+ setMessages = async (n, o) => {
4188
+ if (!o.success)
4177
4189
  return 400;
4178
4190
  const l = Y(n);
4179
- return delete i.success, delete i.message, await ke(l, i).then(() => 201).catch((E) => (console.error(
4191
+ return delete o.success, delete o.message, await ke(l, o).then(() => 201).catch((E) => (console.error(
4180
4192
  "%cstorage",
4181
4193
  c.STORAGE,
4182
4194
  _.MESSAGES,
@@ -4184,15 +4196,15 @@ class Gr {
4184
4196
  E.message
4185
4197
  ), 400));
4186
4198
  };
4187
- cleanMessages = async (n) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((i) => i(0)));
4188
- hideMessage = async (n, i) => {
4199
+ cleanMessages = async (n) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((o) => o(0)));
4200
+ hideMessage = async (n, o) => {
4189
4201
  console.debug(
4190
- `hideMessage ${n} ${i} not implemented for ${this.options.storage}`
4202
+ `hideMessage ${n} ${o} not implemented for ${this.options.storage}`
4191
4203
  );
4192
4204
  };
4193
4205
  getDashboard = async (n) => {
4194
- const i = Y(n);
4195
- return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", c.API, _.SLIDE, n.id), {
4206
+ const o = Y(n);
4207
+ return await _e(o).then((l) => l).catch((l) => (console.warn("%capi", c.API, _.SLIDE, n.id), {
4196
4208
  data: null,
4197
4209
  message: `Widget ${n.data.id} load error: ${l.message}`,
4198
4210
  success: !1
@@ -4209,11 +4221,11 @@ class Gr {
4209
4221
  * @returns number
4210
4222
  */
4211
4223
  setDashboard = async (n) => {
4212
- const i = Y(n), l = {
4224
+ const o = Y(n), l = {
4213
4225
  id: n.dashboard,
4214
4226
  name: n.name
4215
4227
  };
4216
- return await ke(i, l).then(() => ({
4228
+ return await ke(o, l).then(() => ({
4217
4229
  data: null,
4218
4230
  message: `Dashboard ${n.data.id} saved to storage`,
4219
4231
  success: !0
@@ -4230,8 +4242,8 @@ class Gr {
4230
4242
  }));
4231
4243
  };
4232
4244
  getWidget = async (n) => {
4233
- const i = Y(n);
4234
- return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", c.API, _.SLIDE, n.id), {
4245
+ const o = Y(n);
4246
+ return await _e(o).then((l) => l).catch((l) => (console.warn("%capi", c.API, _.SLIDE, n.id), {
4235
4247
  data: null,
4236
4248
  message: `Widget ${n.data.id} load error: ${l.message}`,
4237
4249
  success: !1
@@ -4248,13 +4260,13 @@ class Gr {
4248
4260
  * @returns number
4249
4261
  */
4250
4262
  setWidget = async (n) => {
4251
- const i = Y(n), l = {
4263
+ const o = Y(n), l = {
4252
4264
  id: n.widget,
4253
4265
  name: n.name,
4254
4266
  dashboard_id: n.dashboard,
4255
4267
  type: n.type
4256
4268
  };
4257
- return await ke(i, l).then(() => ({
4269
+ return await ke(o, l).then(() => ({
4258
4270
  data: null,
4259
4271
  message: `Widget ${n.data.id} saved to storage`,
4260
4272
  success: !0
@@ -4275,7 +4287,7 @@ class Gr {
4275
4287
  * @param query IQuery
4276
4288
  * @returns null
4277
4289
  */
4278
- subscribe = (n) => (n.type === _.MESSAGES && (n = St(this.options, n)), this.subscribers.filter(
4290
+ subscribe = (n) => (n.type === _.MESSAGES && (n = Ot(this.options, n)), this.subscribers.filter(
4279
4291
  (l) => l.widget === n.widget
4280
4292
  ).length > 0 || (console.debug(
4281
4293
  "%cstorage%c %csubscribe",
@@ -4291,8 +4303,8 @@ class Gr {
4291
4303
  */
4292
4304
  getSubscribers = async () => await new Promise((n) => n(this.subscribers));
4293
4305
  getSlide = async (n) => {
4294
- const i = Y(n);
4295
- return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", c.API, _.SLIDE, n.id), {
4306
+ const o = Y(n);
4307
+ return await _e(o).then((l) => l).catch((l) => (console.warn("%capi", c.API, _.SLIDE, n.id), {
4296
4308
  data: null,
4297
4309
  message: `Slide ${n.data.id} load error: ${l.message}`,
4298
4310
  success: !1
@@ -4309,13 +4321,13 @@ class Gr {
4309
4321
  * @returns number
4310
4322
  */
4311
4323
  setSlide = async (n) => {
4312
- const i = Y(n), l = {
4324
+ const o = Y(n), l = {
4313
4325
  id: n.data.id,
4314
4326
  title: n.data.title || "Not set",
4315
4327
  json: n.data.json || {},
4316
4328
  html: n.data.html || ""
4317
4329
  };
4318
- return await ke(i, l).then(() => ({
4330
+ return await ke(o, l).then(() => ({
4319
4331
  data: null,
4320
4332
  message: `Slide ${n.data.id} saved to storage`,
4321
4333
  success: !0
@@ -4332,8 +4344,8 @@ class Gr {
4332
4344
  }));
4333
4345
  };
4334
4346
  getPresentation = async (n) => {
4335
- const i = Y(n);
4336
- return await _e(i).then((l) => l).catch((l) => (console.warn("%capi", c.API, _.PRESENTATION, n.id), {
4347
+ const o = Y(n);
4348
+ return await _e(o).then((l) => l).catch((l) => (console.warn("%capi", c.API, _.PRESENTATION, n.id), {
4337
4349
  data: null,
4338
4350
  message: `Slide ${n.data.id} load error: ${l.message}`,
4339
4351
  success: !1
@@ -4350,8 +4362,8 @@ class Gr {
4350
4362
  * @returns number
4351
4363
  */
4352
4364
  setPresentation = async (n) => {
4353
- const i = Y(n), l = n.data;
4354
- return await ke(i, l).then(() => ({
4365
+ const o = Y(n), l = n.data;
4366
+ return await ke(o, l).then(() => ({
4355
4367
  data: null,
4356
4368
  message: `Presentation ${n.data.id} saved to storage`,
4357
4369
  success: !0
@@ -4367,9 +4379,9 @@ class Gr {
4367
4379
  success: !1
4368
4380
  }));
4369
4381
  };
4370
- getPreference = async (n) => await _e(`${_.PREFERENCE}.${n.id}`).then((i) => i).catch((i) => (console.warn("%capi", c.API, _.PREFERENCE, n.id), {
4382
+ getPreference = async (n) => await _e(`${_.PREFERENCE}.${n.id}`).then((o) => o).catch((o) => (console.warn("%capi", c.API, _.PREFERENCE, n.id), {
4371
4383
  data: null,
4372
- message: `Preference ${n.id} get error: ${i.message}`,
4384
+ message: `Preference ${n.id} get error: ${o.message}`,
4373
4385
  success: !1
4374
4386
  }));
4375
4387
  getPreferences = async () => await _e(`${_.PREFERENCE}`).then((n) => n).catch((n) => (console.warn("%capi", c.API, _.PREFERENCE), {
@@ -4386,33 +4398,33 @@ class Gr {
4386
4398
  data: null,
4387
4399
  message: `Preference ${n.id} save error`,
4388
4400
  success: !0
4389
- })).catch((i) => (console.error(
4401
+ })).catch((o) => (console.error(
4390
4402
  "%cstorage",
4391
4403
  c.STORAGE,
4392
4404
  _.PREFERENCE,
4393
4405
  n,
4394
- i.message
4406
+ o.message
4395
4407
  ), {
4396
4408
  data: null,
4397
- message: `Preference ${n.id} save error: ${i.message}`,
4409
+ message: `Preference ${n.id} save error: ${o.message}`,
4398
4410
  success: !1
4399
4411
  }));
4400
4412
  }
4401
- class Br {
4413
+ class Gr {
4402
4414
  subscribers = [];
4403
4415
  options;
4404
4416
  constructor(n) {
4405
- this.options = n, Storage.prototype.setObject = function(i, l) {
4406
- this.setObject(i, JSON.stringify(l));
4407
- }, Storage.prototype.getObject = function(i) {
4408
- const l = this.getObject(i);
4417
+ this.options = n, Storage.prototype.setObject = function(o, l) {
4418
+ this.setObject(o, JSON.stringify(l));
4419
+ }, Storage.prototype.getObject = function(o) {
4420
+ const l = this.getObject(o);
4409
4421
  return l && JSON.parse(l);
4410
4422
  };
4411
4423
  }
4412
4424
  getCloud = async (n) => {
4413
- const i = Y(n);
4425
+ const o = Y(n);
4414
4426
  try {
4415
- return localStorage.getObject(i);
4427
+ return localStorage.getObject(o);
4416
4428
  } catch (l) {
4417
4429
  return console.warn(
4418
4430
  "%capi",
@@ -4425,9 +4437,9 @@ class Br {
4425
4437
  }
4426
4438
  };
4427
4439
  getSeries = async (n) => {
4428
- const i = Y(n);
4440
+ const o = Y(n);
4429
4441
  try {
4430
- return localStorage.getObject(i);
4442
+ return localStorage.getObject(o);
4431
4443
  } catch (l) {
4432
4444
  return console.warn(
4433
4445
  "%capi",
@@ -4440,9 +4452,9 @@ class Br {
4440
4452
  }
4441
4453
  };
4442
4454
  getMessages = async (n) => {
4443
- const i = Y(n);
4455
+ const o = Y(n);
4444
4456
  try {
4445
- return localStorage.getObject(i);
4457
+ return localStorage.getObject(o);
4446
4458
  } catch (l) {
4447
4459
  return console.warn(
4448
4460
  "%capi",
@@ -4460,10 +4472,10 @@ class Br {
4460
4472
  * @param data
4461
4473
  * @returns number
4462
4474
  */
4463
- setCloud = async (n, i) => {
4475
+ setCloud = async (n, o) => {
4464
4476
  const l = Y(n);
4465
4477
  try {
4466
- return localStorage.setObject(l, i), 201;
4478
+ return localStorage.setObject(l, o), 201;
4467
4479
  } catch (E) {
4468
4480
  return console.error("%cstorage", c.STORAGE, _.CLOUD, n, E), 400;
4469
4481
  }
@@ -4474,10 +4486,10 @@ class Br {
4474
4486
  * @param data
4475
4487
  * @returns number
4476
4488
  */
4477
- setSeries = async (n, i) => {
4489
+ setSeries = async (n, o) => {
4478
4490
  const l = Y(n);
4479
4491
  try {
4480
- return localStorage.setObject(l, i), 201;
4492
+ return localStorage.setObject(l, o), 201;
4481
4493
  } catch (E) {
4482
4494
  return console.error("%cstorage", c.STORAGE, _.SERIES, n, E), 400;
4483
4495
  }
@@ -4488,27 +4500,27 @@ class Br {
4488
4500
  * @param data
4489
4501
  * @returns number
4490
4502
  */
4491
- setMessages = async (n, i) => {
4503
+ setMessages = async (n, o) => {
4492
4504
  const l = Y(n);
4493
4505
  try {
4494
- return localStorage.setObject(l, i), 200;
4506
+ return localStorage.setObject(l, o), 200;
4495
4507
  } catch (E) {
4496
4508
  return console.error("%cstorage", c.STORAGE, _.MESSAGES, n, E), 400;
4497
4509
  }
4498
4510
  };
4499
- cleanMessages = async (n) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((i) => i(0)));
4500
- hideMessage = async (n, i) => {
4511
+ cleanMessages = async (n) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((o) => o(0)));
4512
+ hideMessage = async (n, o) => {
4501
4513
  console.debug(
4502
- `hideMessage ${n} ${i} not implemented for ${this.options.storage}`
4514
+ `hideMessage ${n} ${o} not implemented for ${this.options.storage}`
4503
4515
  );
4504
4516
  };
4505
4517
  getDashboard = async (n) => {
4506
4518
  try {
4507
4519
  return localStorage.getObject(`${_.DASHBOARD}.${n.id}`);
4508
- } catch (i) {
4509
- return console.warn("%capi", c.API, _.SLIDE, n.id, i), {
4520
+ } catch (o) {
4521
+ return console.warn("%capi", c.API, _.SLIDE, n.id, o), {
4510
4522
  data: null,
4511
- message: `Dashboard ${n.id} load error: ${i.message}`,
4523
+ message: `Dashboard ${n.id} load error: ${o.message}`,
4512
4524
  success: !1
4513
4525
  };
4514
4526
  }
@@ -4519,9 +4531,9 @@ class Br {
4519
4531
  success: !1
4520
4532
  });
4521
4533
  setDashboard = async (n) => {
4522
- const i = `${_.DASHBOARD}.${n.dashboard}`;
4534
+ const o = `${_.DASHBOARD}.${n.dashboard}`;
4523
4535
  try {
4524
- return localStorage.setObject(i, n), {
4536
+ return localStorage.setObject(o, n), {
4525
4537
  data: null,
4526
4538
  message: `Dashboard ${n.data.id} saved to storage`,
4527
4539
  success: !0
@@ -4537,10 +4549,10 @@ class Br {
4537
4549
  getWidget = async (n) => {
4538
4550
  try {
4539
4551
  return localStorage.getObject(`${_.WIDGET}.${n.id}`);
4540
- } catch (i) {
4541
- return console.warn("%capi", c.API, _.SLIDE, n.id, i), {
4552
+ } catch (o) {
4553
+ return console.warn("%capi", c.API, _.SLIDE, n.id, o), {
4542
4554
  data: null,
4543
- message: `Widget ${n.id} load error: ${i.message}`,
4555
+ message: `Widget ${n.id} load error: ${o.message}`,
4544
4556
  success: !1
4545
4557
  };
4546
4558
  }
@@ -4551,9 +4563,9 @@ class Br {
4551
4563
  success: !1
4552
4564
  });
4553
4565
  setWidget = async (n) => {
4554
- const i = `widget.${n.widget}`;
4566
+ const o = `widget.${n.widget}`;
4555
4567
  try {
4556
- return localStorage.setObject(i, n), {
4568
+ return localStorage.setObject(o, n), {
4557
4569
  data: null,
4558
4570
  message: `Widget ${n.data.id} saved to storage`,
4559
4571
  success: !0
@@ -4571,7 +4583,7 @@ class Br {
4571
4583
  * @param query IQuery
4572
4584
  * @returns null
4573
4585
  */
4574
- subscribe = (n) => (n.type === _.MESSAGES && (n = St(this.options, n)), this.subscribers.filter(
4586
+ subscribe = (n) => (n.type === _.MESSAGES && (n = Ot(this.options, n)), this.subscribers.filter(
4575
4587
  (l) => l.widget === n.widget
4576
4588
  ).length || (console.debug(
4577
4589
  "%cstorage%c %csubscribe",
@@ -4589,10 +4601,10 @@ class Br {
4589
4601
  getSlide = async (n) => {
4590
4602
  try {
4591
4603
  return localStorage.getObject(`${_.SLIDE}.${n.id}`);
4592
- } catch (i) {
4593
- return console.warn("%capi", c.API, _.SLIDE, n.id, i), {
4604
+ } catch (o) {
4605
+ return console.warn("%capi", c.API, _.SLIDE, n.id, o), {
4594
4606
  data: null,
4595
- message: `Slide ${n.id} load error: ${i.message}`,
4607
+ message: `Slide ${n.id} load error: ${o.message}`,
4596
4608
  success: !1
4597
4609
  };
4598
4610
  }
@@ -4600,10 +4612,10 @@ class Br {
4600
4612
  getSlides = async (n) => {
4601
4613
  try {
4602
4614
  return localStorage.getObject(`${_.SLIDE}.${n.id}`);
4603
- } catch (i) {
4604
- return console.warn("%capi", c.API, _.SLIDE, n.id, i), {
4615
+ } catch (o) {
4616
+ return console.warn("%capi", c.API, _.SLIDE, n.id, o), {
4605
4617
  data: null,
4606
- message: `Slide ${n.id} load error: ${i.message}`,
4618
+ message: `Slide ${n.id} load error: ${o.message}`,
4607
4619
  success: !1
4608
4620
  };
4609
4621
  }
@@ -4620,10 +4632,10 @@ class Br {
4620
4632
  message: `Slide ${n.data.id} saved to storage`,
4621
4633
  success: !0
4622
4634
  };
4623
- } catch (i) {
4624
- return console.error("%cstorage", c.STORAGE, _.SLIDE, n, i), {
4635
+ } catch (o) {
4636
+ return console.error("%cstorage", c.STORAGE, _.SLIDE, n, o), {
4625
4637
  data: null,
4626
- message: `Slide ${n.data.id} save error: ${i.message}`,
4638
+ message: `Slide ${n.data.id} save error: ${o.message}`,
4627
4639
  success: !1
4628
4640
  };
4629
4641
  }
@@ -4631,10 +4643,10 @@ class Br {
4631
4643
  getPresentation = async (n) => {
4632
4644
  try {
4633
4645
  return localStorage.getObject(`${_.PRESENTATION}.${n.presentation}`);
4634
- } catch (i) {
4635
- return console.warn("%capi", c.API, _.PRESENTATION, n.presentation, i), {
4646
+ } catch (o) {
4647
+ return console.warn("%capi", c.API, _.PRESENTATION, n.presentation, o), {
4636
4648
  data: null,
4637
- message: `Presentations ${n.id} load error: ${i.message}`,
4649
+ message: `Presentations ${n.id} load error: ${o.message}`,
4638
4650
  success: !1
4639
4651
  };
4640
4652
  }
@@ -4657,10 +4669,10 @@ class Br {
4657
4669
  message: `Presentation ${n.data.id} saved to storage`,
4658
4670
  success: !0
4659
4671
  };
4660
- } catch (i) {
4661
- return console.error("%cstorage", c.STORAGE, _.PRESENTATION, n, i), {
4672
+ } catch (o) {
4673
+ return console.error("%cstorage", c.STORAGE, _.PRESENTATION, n, o), {
4662
4674
  data: null,
4663
- message: `Presentation ${n.data.id} save error: ${i.message}`,
4675
+ message: `Presentation ${n.data.id} save error: ${o.message}`,
4664
4676
  success: !1
4665
4677
  };
4666
4678
  }
@@ -4668,10 +4680,10 @@ class Br {
4668
4680
  getPreference = async (n) => {
4669
4681
  try {
4670
4682
  return localStorage.getObject(`${_.PREFERENCE}.${n.id}`);
4671
- } catch (i) {
4672
- return console.warn("%capi", c.API, _.PREFERENCE, n.id, i), {
4683
+ } catch (o) {
4684
+ return console.warn("%capi", c.API, _.PREFERENCE, n.id, o), {
4673
4685
  data: null,
4674
- message: `Preference ${n.id} load error: ${i.message}`,
4686
+ message: `Preference ${n.id} load error: ${o.message}`,
4675
4687
  success: !1
4676
4688
  };
4677
4689
  }
@@ -4697,16 +4709,16 @@ class Br {
4697
4709
  message: `Preference ${n.id} saved to storage`,
4698
4710
  success: !0
4699
4711
  };
4700
- } catch (i) {
4712
+ } catch (o) {
4701
4713
  return console.error(
4702
4714
  "%cstorage",
4703
4715
  c.STORAGE,
4704
4716
  _.PREFERENCE,
4705
4717
  n,
4706
- i
4718
+ o
4707
4719
  ), {
4708
4720
  data: null,
4709
- message: `Preference ${n.id} save error: ${i.message}`,
4721
+ message: `Preference ${n.id} save error: ${o.message}`,
4710
4722
  success: !1
4711
4723
  };
4712
4724
  }
@@ -4716,17 +4728,17 @@ class Lr {
4716
4728
  subscribers = [];
4717
4729
  options;
4718
4730
  constructor(n) {
4719
- this.options = n, Storage.prototype.setObject = function(i, l) {
4720
- this.setItem(i, JSON.stringify(l));
4721
- }, Storage.prototype.getObject = function(i) {
4722
- const l = this.getItem(i);
4731
+ this.options = n, Storage.prototype.setObject = function(o, l) {
4732
+ this.setItem(o, JSON.stringify(l));
4733
+ }, Storage.prototype.getObject = function(o) {
4734
+ const l = this.getItem(o);
4723
4735
  return l && JSON.parse(l);
4724
4736
  };
4725
4737
  }
4726
4738
  getCloud = async (n) => {
4727
- const i = Y(n);
4739
+ const o = Y(n);
4728
4740
  try {
4729
- return sessionStorage.getObject(i);
4741
+ return sessionStorage.getObject(o);
4730
4742
  } catch (l) {
4731
4743
  return console.warn(
4732
4744
  "%capi",
@@ -4739,9 +4751,9 @@ class Lr {
4739
4751
  }
4740
4752
  };
4741
4753
  getSeries = async (n) => {
4742
- const i = Y(n);
4754
+ const o = Y(n);
4743
4755
  try {
4744
- return sessionStorage.getObject(i);
4756
+ return sessionStorage.getObject(o);
4745
4757
  } catch (l) {
4746
4758
  return console.warn(
4747
4759
  "%capi",
@@ -4754,9 +4766,9 @@ class Lr {
4754
4766
  }
4755
4767
  };
4756
4768
  getMessages = async (n) => {
4757
- const i = Y(n);
4769
+ const o = Y(n);
4758
4770
  try {
4759
- return sessionStorage.getObject(i);
4771
+ return sessionStorage.getObject(o);
4760
4772
  } catch (l) {
4761
4773
  return console.warn(
4762
4774
  "%capi",
@@ -4774,10 +4786,10 @@ class Lr {
4774
4786
  * @param data
4775
4787
  * @returns number
4776
4788
  */
4777
- setCloud = async (n, i) => {
4789
+ setCloud = async (n, o) => {
4778
4790
  const l = Y(n);
4779
4791
  try {
4780
- return sessionStorage.setObject(l, i), 201;
4792
+ return sessionStorage.setObject(l, o), 201;
4781
4793
  } catch (E) {
4782
4794
  return console.error("%cstorage", c.STORAGE, _.CLOUD, n, E), 400;
4783
4795
  }
@@ -4788,10 +4800,10 @@ class Lr {
4788
4800
  * @param data
4789
4801
  * @returns number
4790
4802
  */
4791
- setSeries = async (n, i) => {
4803
+ setSeries = async (n, o) => {
4792
4804
  const l = Y(n);
4793
4805
  try {
4794
- return sessionStorage.setObject(l, i), 201;
4806
+ return sessionStorage.setObject(l, o), 201;
4795
4807
  } catch (E) {
4796
4808
  return console.error("%cstorage", c.STORAGE, _.SERIES, n, E), 400;
4797
4809
  }
@@ -4802,27 +4814,27 @@ class Lr {
4802
4814
  * @param data
4803
4815
  * @returns number
4804
4816
  */
4805
- setMessages = async (n, i) => {
4817
+ setMessages = async (n, o) => {
4806
4818
  const l = Y(n);
4807
4819
  try {
4808
- return sessionStorage.setObject(l, i), 200;
4820
+ return sessionStorage.setObject(l, o), 200;
4809
4821
  } catch (E) {
4810
4822
  return console.error("%cstorage", c.STORAGE, _.MESSAGES, n, E), 400;
4811
4823
  }
4812
4824
  };
4813
- cleanMessages = async (n) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((i) => i(0)));
4814
- hideMessage = async (n, i) => {
4825
+ cleanMessages = async (n) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((o) => o(0)));
4826
+ hideMessage = async (n, o) => {
4815
4827
  console.debug(
4816
- `hideMessage ${n} ${i} not implemented for ${this.options.storage}`
4828
+ `hideMessage ${n} ${o} not implemented for ${this.options.storage}`
4817
4829
  );
4818
4830
  };
4819
4831
  getDashboard = async (n) => {
4820
4832
  try {
4821
4833
  return sessionStorage.getObject(`${_.DASHBOARD}.${n.id}`);
4822
- } catch (i) {
4823
- return console.warn("%capi", c.API, _.SLIDE, n.id, i), {
4834
+ } catch (o) {
4835
+ return console.warn("%capi", c.API, _.SLIDE, n.id, o), {
4824
4836
  data: null,
4825
- message: `Dashboard ${n.id} load error: ${i.message}`,
4837
+ message: `Dashboard ${n.id} load error: ${o.message}`,
4826
4838
  success: !1
4827
4839
  };
4828
4840
  }
@@ -4833,9 +4845,9 @@ class Lr {
4833
4845
  success: !1
4834
4846
  });
4835
4847
  setDashboard = async (n) => {
4836
- const i = `${_.DASHBOARD}.${n.dashboard}`;
4848
+ const o = `${_.DASHBOARD}.${n.dashboard}`;
4837
4849
  try {
4838
- return sessionStorage.setObject(i, n), {
4850
+ return sessionStorage.setObject(o, n), {
4839
4851
  data: null,
4840
4852
  message: `Dashboard ${n.data.id} saved to storage`,
4841
4853
  success: !0
@@ -4851,10 +4863,10 @@ class Lr {
4851
4863
  getWidget = async (n) => {
4852
4864
  try {
4853
4865
  return sessionStorage.getObject(`${_.WIDGET}.${n.id}`);
4854
- } catch (i) {
4855
- return console.warn("%capi", c.API, _.SLIDE, n.id, i), {
4866
+ } catch (o) {
4867
+ return console.warn("%capi", c.API, _.SLIDE, n.id, o), {
4856
4868
  data: null,
4857
- message: `Widget ${n.id} load error: ${i.message}`,
4869
+ message: `Widget ${n.id} load error: ${o.message}`,
4858
4870
  success: !1
4859
4871
  };
4860
4872
  }
@@ -4865,9 +4877,9 @@ class Lr {
4865
4877
  success: !1
4866
4878
  });
4867
4879
  setWidget = async (n) => {
4868
- const i = `widget.${n.widget}`;
4880
+ const o = `widget.${n.widget}`;
4869
4881
  try {
4870
- return sessionStorage.setObject(i, n), {
4882
+ return sessionStorage.setObject(o, n), {
4871
4883
  data: null,
4872
4884
  message: `Widget ${n.data.id} saved to storage`,
4873
4885
  success: !0
@@ -4885,7 +4897,7 @@ class Lr {
4885
4897
  * @param query IQuery
4886
4898
  * @returns null
4887
4899
  */
4888
- subscribe = (n) => (n.type === _.MESSAGES && (n = St(this.options, n)), this.subscribers.filter(
4900
+ subscribe = (n) => (n.type === _.MESSAGES && (n = Ot(this.options, n)), this.subscribers.filter(
4889
4901
  (l) => l.widget === n.widget
4890
4902
  ).length || (console.debug(
4891
4903
  "%cstorage%c %csubscribe",
@@ -4903,10 +4915,10 @@ class Lr {
4903
4915
  getSlide = async (n) => {
4904
4916
  try {
4905
4917
  return sessionStorage.getObject(`${_.SLIDE}.${n.id}`);
4906
- } catch (i) {
4907
- return console.warn("%capi", c.API, _.SLIDE, n.id, i), {
4918
+ } catch (o) {
4919
+ return console.warn("%capi", c.API, _.SLIDE, n.id, o), {
4908
4920
  data: null,
4909
- message: `Slide ${n.id} load error: ${i.message}`,
4921
+ message: `Slide ${n.id} load error: ${o.message}`,
4910
4922
  success: !1
4911
4923
  };
4912
4924
  }
@@ -4914,10 +4926,10 @@ class Lr {
4914
4926
  getSlides = async (n) => {
4915
4927
  try {
4916
4928
  return sessionStorage.getObject(`${_.SLIDE}.${n.id}`);
4917
- } catch (i) {
4918
- return console.warn("%capi", c.API, _.SLIDE, n.id, i), {
4929
+ } catch (o) {
4930
+ return console.warn("%capi", c.API, _.SLIDE, n.id, o), {
4919
4931
  data: null,
4920
- message: `Slide ${n.id} load error: ${i.message}`,
4932
+ message: `Slide ${n.id} load error: ${o.message}`,
4921
4933
  success: !1
4922
4934
  };
4923
4935
  }
@@ -4939,10 +4951,10 @@ class Lr {
4939
4951
  message: `Slide ${n.data.id} saved to storage`,
4940
4952
  success: !0
4941
4953
  };
4942
- } catch (i) {
4943
- return console.error("%cstorage", c.STORAGE, _.SLIDE, n, i), {
4954
+ } catch (o) {
4955
+ return console.error("%cstorage", c.STORAGE, _.SLIDE, n, o), {
4944
4956
  data: null,
4945
- message: `Slide ${n.data.id} save error: ${i.message}`,
4957
+ message: `Slide ${n.data.id} save error: ${o.message}`,
4946
4958
  success: !1
4947
4959
  };
4948
4960
  }
@@ -4950,10 +4962,10 @@ class Lr {
4950
4962
  getPresentation = async (n) => {
4951
4963
  try {
4952
4964
  return sessionStorage.getObject(`${_.PRESENTATION}.${n.presentation}`);
4953
- } catch (i) {
4954
- return console.warn("%capi", c.API, _.PRESENTATION, n.presentation, i), {
4965
+ } catch (o) {
4966
+ return console.warn("%capi", c.API, _.PRESENTATION, n.presentation, o), {
4955
4967
  data: null,
4956
- message: `Presentation ${n.presentation} load error: ${i.message}`,
4968
+ message: `Presentation ${n.presentation} load error: ${o.message}`,
4957
4969
  success: !1
4958
4970
  };
4959
4971
  }
@@ -4976,10 +4988,10 @@ class Lr {
4976
4988
  message: `Presentation ${n.data.id} saved to storage`,
4977
4989
  success: !0
4978
4990
  };
4979
- } catch (i) {
4980
- return console.error("%cstorage", c.STORAGE, _.PRESENTATION, n, i), {
4991
+ } catch (o) {
4992
+ return console.error("%cstorage", c.STORAGE, _.PRESENTATION, n, o), {
4981
4993
  data: null,
4982
- message: `Presentation ${n.data.id} save error: ${i.message}`,
4994
+ message: `Presentation ${n.data.id} save error: ${o.message}`,
4983
4995
  success: !1
4984
4996
  };
4985
4997
  }
@@ -4987,10 +4999,10 @@ class Lr {
4987
4999
  getPreference = async (n) => {
4988
5000
  try {
4989
5001
  return sessionStorage.getObject(`${_.PREFERENCE}.${n.id}`);
4990
- } catch (i) {
4991
- return console.warn("%capi", c.API, _.PREFERENCE, n.id, i), {
5002
+ } catch (o) {
5003
+ return console.warn("%capi", c.API, _.PREFERENCE, n.id, o), {
4992
5004
  data: null,
4993
- message: `Preference ${n.id} load error: ${i.message}`,
5005
+ message: `Preference ${n.id} load error: ${o.message}`,
4994
5006
  success: !1
4995
5007
  };
4996
5008
  }
@@ -5016,16 +5028,16 @@ class Lr {
5016
5028
  message: `Preference ${n.id} saved to storage`,
5017
5029
  success: !0
5018
5030
  };
5019
- } catch (i) {
5031
+ } catch (o) {
5020
5032
  return console.error(
5021
5033
  "%cstorage",
5022
5034
  c.STORAGE,
5023
5035
  _.PREFERENCE,
5024
5036
  n,
5025
- i
5037
+ o
5026
5038
  ), {
5027
5039
  data: null,
5028
- message: `Preference ${n.id} save error: ${i.message}`,
5040
+ message: `Preference ${n.id} save error: ${o.message}`,
5029
5041
  success: !1
5030
5042
  };
5031
5043
  }
@@ -5038,9 +5050,9 @@ class Wr {
5038
5050
  this.options = n, window.BuzzCasting.WidgetData = /* @__PURE__ */ new Set();
5039
5051
  }
5040
5052
  getCloud = async (n) => {
5041
- const i = Y(n);
5053
+ const o = Y(n);
5042
5054
  try {
5043
- return window.BuzzCasting.WidgetData[i];
5055
+ return window.BuzzCasting.WidgetData[o];
5044
5056
  } catch (l) {
5045
5057
  return console.warn(
5046
5058
  "%capi",
@@ -5053,9 +5065,9 @@ class Wr {
5053
5065
  }
5054
5066
  };
5055
5067
  getSeries = async (n) => {
5056
- const i = Y(n);
5068
+ const o = Y(n);
5057
5069
  try {
5058
- return window.BuzzCasting.WidgetData[i];
5070
+ return window.BuzzCasting.WidgetData[o];
5059
5071
  } catch (l) {
5060
5072
  return console.warn(
5061
5073
  "%capi",
@@ -5068,9 +5080,9 @@ class Wr {
5068
5080
  }
5069
5081
  };
5070
5082
  getMessages = async (n) => {
5071
- const i = Y(n);
5083
+ const o = Y(n);
5072
5084
  try {
5073
- return window.BuzzCasting.WidgetData[i];
5085
+ return window.BuzzCasting.WidgetData[o];
5074
5086
  } catch (l) {
5075
5087
  return console.warn(
5076
5088
  "%capi",
@@ -5088,10 +5100,10 @@ class Wr {
5088
5100
  * @param data
5089
5101
  * @returns number
5090
5102
  */
5091
- setCloud = async (n, i) => {
5103
+ setCloud = async (n, o) => {
5092
5104
  const l = Y(n);
5093
5105
  try {
5094
- return window.BuzzCasting.WidgetData[l] = i, 201;
5106
+ return window.BuzzCasting.WidgetData[l] = o, 201;
5095
5107
  } catch (E) {
5096
5108
  return console.error("%cstorage", c.STORAGE, "set", n, E), 400;
5097
5109
  }
@@ -5102,10 +5114,10 @@ class Wr {
5102
5114
  * @param data
5103
5115
  * @returns number
5104
5116
  */
5105
- setSeries = async (n, i) => {
5117
+ setSeries = async (n, o) => {
5106
5118
  const l = Y(n);
5107
5119
  try {
5108
- return window.BuzzCasting.WidgetData[l] = i, 201;
5120
+ return window.BuzzCasting.WidgetData[l] = o, 201;
5109
5121
  } catch (E) {
5110
5122
  return console.error("%cstorage", c.STORAGE, "set", n, E), 400;
5111
5123
  }
@@ -5116,27 +5128,27 @@ class Wr {
5116
5128
  * @param data
5117
5129
  * @returns number
5118
5130
  */
5119
- setMessages = async (n, i) => {
5131
+ setMessages = async (n, o) => {
5120
5132
  const l = Y(n);
5121
5133
  try {
5122
- return window.BuzzCasting.WidgetData[l] = i, 201;
5134
+ return window.BuzzCasting.WidgetData[l] = o, 201;
5123
5135
  } catch (E) {
5124
5136
  return console.error("%cstorage", c.STORAGE, "set", n, E), 400;
5125
5137
  }
5126
5138
  };
5127
- cleanMessages = async (n) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((i) => i(0)));
5128
- hideMessage = async (n, i) => {
5139
+ cleanMessages = async (n) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((o) => o(0)));
5140
+ hideMessage = async (n, o) => {
5129
5141
  console.debug(
5130
- `hideMessage ${n} ${i} not implemented for ${this.options.storage}`
5142
+ `hideMessage ${n} ${o} not implemented for ${this.options.storage}`
5131
5143
  );
5132
5144
  };
5133
5145
  getDashboard = async (n) => {
5134
5146
  try {
5135
5147
  return window.BuzzCasting.DashboardData[n.id];
5136
- } catch (i) {
5137
- return console.warn("%capi", c.API, _.DASHBOARD, n.id, i), {
5148
+ } catch (o) {
5149
+ return console.warn("%capi", c.API, _.DASHBOARD, n.id, o), {
5138
5150
  data: null,
5139
- message: `Dashboard ${n.id} load error: ${i.message}`,
5151
+ message: `Dashboard ${n.id} load error: ${o.message}`,
5140
5152
  success: !1
5141
5153
  };
5142
5154
  }
@@ -5147,9 +5159,9 @@ class Wr {
5147
5159
  success: !1
5148
5160
  });
5149
5161
  setDashboard = async (n) => {
5150
- const i = `widget.${n.widget}`;
5162
+ const o = `widget.${n.widget}`;
5151
5163
  try {
5152
- return window.BuzzCasting.DashboardData[i] = n, {
5164
+ return window.BuzzCasting.DashboardData[o] = n, {
5153
5165
  data: null,
5154
5166
  message: `Dashboard ${n.data.id} saved to storage`,
5155
5167
  success: !0
@@ -5165,10 +5177,10 @@ class Wr {
5165
5177
  getWidget = async (n) => {
5166
5178
  try {
5167
5179
  return window.BuzzCasting.WidgetData[n.id];
5168
- } catch (i) {
5169
- return console.warn("%capi", c.API, _.WIDGET, n.id, i), {
5180
+ } catch (o) {
5181
+ return console.warn("%capi", c.API, _.WIDGET, n.id, o), {
5170
5182
  data: null,
5171
- message: `Widget ${n.id} load error: ${i.message}`,
5183
+ message: `Widget ${n.id} load error: ${o.message}`,
5172
5184
  success: !1
5173
5185
  };
5174
5186
  }
@@ -5179,9 +5191,9 @@ class Wr {
5179
5191
  success: !1
5180
5192
  });
5181
5193
  setWidget = async (n) => {
5182
- const i = `widget.${n.widget}`;
5194
+ const o = `widget.${n.widget}`;
5183
5195
  try {
5184
- return window.BuzzCasting.WidgetData[i] = n, {
5196
+ return window.BuzzCasting.WidgetData[o] = n, {
5185
5197
  data: null,
5186
5198
  message: `Widget ${n.data.id} saved to storage`,
5187
5199
  success: !0
@@ -5199,7 +5211,7 @@ class Wr {
5199
5211
  * @param query IQuery
5200
5212
  * @returns null
5201
5213
  */
5202
- subscribe = (n) => (n.type === _.MESSAGES && (n = St(this.options, n)), this.subscribers.filter(
5214
+ subscribe = (n) => (n.type === _.MESSAGES && (n = Ot(this.options, n)), this.subscribers.filter(
5203
5215
  (l) => l.widget === n.widget
5204
5216
  ).length || (console.debug(
5205
5217
  "%cstorage%c %csubscribe",
@@ -5217,21 +5229,21 @@ class Wr {
5217
5229
  getSlide = async (n) => {
5218
5230
  try {
5219
5231
  return window.BuzzCasting.SlideData[n.id];
5220
- } catch (i) {
5221
- return console.warn("%capi", c.API, _.SLIDE, n.id, i), {
5232
+ } catch (o) {
5233
+ return console.warn("%capi", c.API, _.SLIDE, n.id, o), {
5222
5234
  data: null,
5223
- message: `Slide ${n.id} load error: ${i.message}`,
5235
+ message: `Slide ${n.id} load error: ${o.message}`,
5224
5236
  success: !1
5225
5237
  };
5226
5238
  }
5227
5239
  };
5228
5240
  getSlides = async (n) => {
5229
5241
  try {
5230
- return window.BuzzCasting.SlideData.filter((i) => i.presentation_id === n.presentation);
5231
- } catch (i) {
5232
- return console.warn("%capi", c.API, _.PRESENTATION, n.presentation_id, i), {
5242
+ return window.BuzzCasting.SlideData.filter((o) => o.presentation_id === n.presentation);
5243
+ } catch (o) {
5244
+ return console.warn("%capi", c.API, _.PRESENTATION, n.presentation_id, o), {
5233
5245
  data: null,
5234
- message: `Slides for presentation ${n.presentation} load error: ${i.message}`,
5246
+ message: `Slides for presentation ${n.presentation} load error: ${o.message}`,
5235
5247
  success: !1
5236
5248
  };
5237
5249
  }
@@ -5248,22 +5260,22 @@ class Wr {
5248
5260
  message: `Slide ${n.data.id} saved to storage`,
5249
5261
  success: !0
5250
5262
  };
5251
- } catch (i) {
5252
- return console.error("%cstorage", c.STORAGE, _.SLIDE, n, i), {
5263
+ } catch (o) {
5264
+ return console.error("%cstorage", c.STORAGE, _.SLIDE, n, o), {
5253
5265
  data: null,
5254
- message: `Slide ${n.data.id} save error: ${i.message}`,
5266
+ message: `Slide ${n.data.id} save error: ${o.message}`,
5255
5267
  success: !1
5256
5268
  };
5257
5269
  }
5258
5270
  };
5259
5271
  getPresentation = async (n) => {
5260
5272
  try {
5261
- const i = n.presentation || "none";
5262
- return window.BuzzCasting.PresentationData[i];
5263
- } catch (i) {
5264
- return console.warn("%capi", c.API, _.PRESENTATION, n.presentation, i), {
5273
+ const o = n.presentation || "none";
5274
+ return window.BuzzCasting.PresentationData[o];
5275
+ } catch (o) {
5276
+ return console.warn("%capi", c.API, _.PRESENTATION, n.presentation, o), {
5265
5277
  data: null,
5266
- message: `Presentation ${n.presentation} load error: ${i.message}`,
5278
+ message: `Presentation ${n.presentation} load error: ${o.message}`,
5267
5279
  success: !1
5268
5280
  };
5269
5281
  }
@@ -5286,10 +5298,10 @@ class Wr {
5286
5298
  message: `Presentation ${n.data.id} saved to storage`,
5287
5299
  success: !0
5288
5300
  };
5289
- } catch (i) {
5290
- return console.error("%cstorage", c.STORAGE, _.PRESENTATION, n, i), {
5301
+ } catch (o) {
5302
+ return console.error("%cstorage", c.STORAGE, _.PRESENTATION, n, o), {
5291
5303
  data: null,
5292
- message: `Presentation ${n.data.id} save error: ${i.message}`,
5304
+ message: `Presentation ${n.data.id} save error: ${o.message}`,
5293
5305
  success: !1
5294
5306
  };
5295
5307
  }
@@ -5297,10 +5309,10 @@ class Wr {
5297
5309
  getPreference = async (n) => {
5298
5310
  try {
5299
5311
  return window.BuzzCasting.Preferences[n.id];
5300
- } catch (i) {
5301
- return console.warn("%capi", c.API, _.PREFERENCE, n.id, i), {
5312
+ } catch (o) {
5313
+ return console.warn("%capi", c.API, _.PREFERENCE, n.id, o), {
5302
5314
  data: null,
5303
- message: `Preference ${n.id} load error: ${i.message}`,
5315
+ message: `Preference ${n.id} load error: ${o.message}`,
5304
5316
  success: !1
5305
5317
  };
5306
5318
  }
@@ -5323,22 +5335,22 @@ class Wr {
5323
5335
  message: `Preference ${n.id} saved to storage`,
5324
5336
  success: !0
5325
5337
  };
5326
- } catch (i) {
5338
+ } catch (o) {
5327
5339
  return console.error(
5328
5340
  "%cstorage",
5329
5341
  c.STORAGE,
5330
5342
  _.PREFERENCE,
5331
5343
  n,
5332
- i
5344
+ o
5333
5345
  ), {
5334
5346
  data: null,
5335
- message: `Preference ${n.id} save error: ${i.message}`,
5347
+ message: `Preference ${n.id} save error: ${o.message}`,
5336
5348
  success: !1
5337
5349
  };
5338
5350
  }
5339
5351
  };
5340
5352
  }
5341
- class La {
5353
+ class Ja {
5342
5354
  sm;
5343
5355
  api;
5344
5356
  bc;
@@ -5353,8 +5365,8 @@ class La {
5353
5365
  J.VERSION,
5354
5366
  xa
5355
5367
  ]), this.options = n, this.sm = null;
5356
- const i = n.presentation;
5357
- switch (this.bc = new BroadcastChannel(i), K(3, ["%cchannel%c %capi", c.BROADCAST, c.NONE, c.API, i]), this.bc.onmessage = (l) => {
5368
+ const o = n.presentation;
5369
+ switch (this.bc = new BroadcastChannel(o), K(3, ["%cchannel%c %capi", c.BROADCAST, c.NONE, c.API, o]), this.bc.onmessage = (l) => {
5358
5370
  this.actions(l);
5359
5371
  }, this.bc.postMessage({ event: J.STORAGE_INIT, data: {} }), this.api = new ka(n), n.storage) {
5360
5372
  case he.DEXIE:
@@ -5364,10 +5376,10 @@ class La {
5364
5376
  this.sm = new Lr(n);
5365
5377
  break;
5366
5378
  case he.SESSION:
5367
- this.sm = new Br(n);
5379
+ this.sm = new Gr(n);
5368
5380
  break;
5369
5381
  case he.KEYVAL:
5370
- this.sm = new Gr(n);
5382
+ this.sm = new Br(n);
5371
5383
  break;
5372
5384
  case he.WINDOW:
5373
5385
  this.sm = new Wr(n);
@@ -5380,17 +5392,17 @@ class La {
5380
5392
  update = async (n) => {
5381
5393
  if (this.sm === null || Object.keys(this.subscribers).length === 0)
5382
5394
  return;
5383
- const i = [];
5395
+ const o = [];
5384
5396
  Object.values(this.subscribers).forEach((l) => {
5385
- i.push(this.api.get(l));
5386
- }), i.forEach(async (l) => {
5397
+ o.push(this.api.get(l));
5398
+ }), o.forEach(async (l) => {
5387
5399
  await l.then(
5388
5400
  async (E) => await this.processResponse(E)
5389
5401
  );
5390
5402
  });
5391
5403
  };
5392
5404
  processResponse = async (n) => {
5393
- let i, l = 400;
5405
+ let o, l = 400;
5394
5406
  if (n.success === !0) {
5395
5407
  const E = this.subscribers[n.query.widget];
5396
5408
  let O = "";
@@ -5398,7 +5410,7 @@ class La {
5398
5410
  case _.MESSAGES:
5399
5411
  let C;
5400
5412
  C = n.data.messages.filter(
5401
- (G) => G.id !== null
5413
+ (B) => B.id !== null
5402
5414
  ), 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
5415
  "%cload%c %cmessages%c %cno updates",
5404
5416
  c.OK,
@@ -5407,7 +5419,7 @@ class La {
5407
5419
  c.NONE,
5408
5420
  c.NO_UPDATES,
5409
5421
  n.query.widget
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))));
5422
+ ]), K(4, ["%cmessages", c.MESSAGES, n]), l = 204) : (o = n, E.hash = O, l = await this.sm?.setMessages(n.query, n).then(async (B) => (B = 201, this.broadcastUpdate(B, n))));
5411
5423
  break;
5412
5424
  case _.CLOUD:
5413
5425
  O = Fn(n.data.cloud), E?.hash && E.hash === O ? (K(3, [
@@ -5418,14 +5430,14 @@ class La {
5418
5430
  c.NONE,
5419
5431
  c.NO_UPDATES,
5420
5432
  n.query.widget
5421
- ]), K(4, ["%ccloud", c.CLOUD, n.query]), l = 204) : (E.hash = O, i = {
5433
+ ]), K(4, ["%ccloud", c.CLOUD, n.query]), l = 204) : (E.hash = O, o = {
5422
5434
  data: {
5423
5435
  cloud: n.data
5424
5436
  },
5425
5437
  message: n.message,
5426
5438
  success: n.success,
5427
5439
  query: n.query
5428
- }, l = await this.sm?.setCloud(n.query, i.data).then((G) => this.broadcastUpdate(G, n)));
5440
+ }, l = await this.sm?.setCloud(n.query, o.data).then((B) => this.broadcastUpdate(B, n)));
5429
5441
  break;
5430
5442
  case _.SERIES:
5431
5443
  O = Fn(n.data.series), E?.hash && E.hash === O ? (K(3, [
@@ -5436,12 +5448,12 @@ class La {
5436
5448
  c.NONE,
5437
5449
  c.NO_UPDATES,
5438
5450
  n.query.widget
5439
- ]), K(4, ["%cseries", c.SERIES, n]), l = 204) : (E.hash = O, i = {
5451
+ ]), K(4, ["%cseries", c.SERIES, n]), l = 204) : (E.hash = O, o = {
5440
5452
  data: n.data,
5441
5453
  message: n.message,
5442
5454
  success: n.success,
5443
5455
  query: n.query
5444
- }, l = await this.sm?.setSeries(n.query, n.data).then((G) => this.broadcastUpdate(G, n)));
5456
+ }, l = await this.sm?.setSeries(n.query, n.data).then((B) => this.broadcastUpdate(B, n)));
5445
5457
  break;
5446
5458
  default:
5447
5459
  return K(4, [
@@ -5479,40 +5491,40 @@ class La {
5479
5491
  }
5480
5492
  return l;
5481
5493
  };
5482
- broadcastUpdate = (n, i) => {
5494
+ broadcastUpdate = (n, o) => {
5483
5495
  switch (n) {
5484
5496
  case 201:
5485
5497
  K(3, [
5486
- `%cupdate%c %cwidget%c %c${i.query?.type}`,
5498
+ `%cupdate%c %cwidget%c %c${o.query?.type}`,
5487
5499
  c.BROADCAST,
5488
5500
  c.NONE,
5489
5501
  c.WIDGET,
5490
5502
  c.NONE,
5491
- kr(i.query),
5503
+ kr(o.query),
5492
5504
  //@ts-ignore
5493
- `${i.data?.title ?? ""} ${i.query.widget}`
5505
+ `${o.data?.title ?? ""} ${o.query.widget}`
5494
5506
  ]), K(4, [
5495
5507
  "%cevent",
5496
5508
  c.BROADCAST,
5497
5509
  //@ts-ignore
5498
- i
5510
+ o
5499
5511
  ]), this.bc.postMessage({
5500
5512
  event: J.WIDGET_UPDATE,
5501
- data: i.query
5513
+ data: o.query
5502
5514
  });
5503
5515
  break;
5504
5516
  case 204:
5505
5517
  break;
5506
5518
  default:
5507
5519
  K(2, [
5508
- `%cupdate%c %cwidget%c %c${i.query?.type}`,
5520
+ `%cupdate%c %cwidget%c %c${o.query?.type}`,
5509
5521
  c.KO,
5510
5522
  c.NONE,
5511
5523
  c.WIDGET,
5512
5524
  c.NONE,
5513
- kr(i.query),
5525
+ kr(o.query),
5514
5526
  "Fetch error",
5515
- i.query
5527
+ o.query
5516
5528
  ]);
5517
5529
  break;
5518
5530
  }
@@ -5552,7 +5564,7 @@ class La {
5552
5564
  ]);
5553
5565
  return;
5554
5566
  }
5555
- const n = this.options?.retention || 86400 * 4, i = await this.sm?.cleanMessages(
5567
+ const n = this.options?.retention || 86400 * 4, o = await this.sm?.cleanMessages(
5556
5568
  n
5557
5569
  );
5558
5570
  K(3, [
@@ -5562,11 +5574,11 @@ class La {
5562
5574
  c.STORAGE,
5563
5575
  c.NONE,
5564
5576
  c.MESSAGES,
5565
- `${i} messages deleted`
5577
+ `${o} messages deleted`
5566
5578
  ]);
5567
5579
  };
5568
5580
  hideMessage = async (n) => {
5569
- const i = await this.sm?.hideMessage(n.id, 0);
5581
+ const o = await this.sm?.hideMessage(n.id, 0);
5570
5582
  return K(3, [
5571
5583
  "%chide%c %cstorage%c %cmessages",
5572
5584
  c.OK,
@@ -5574,7 +5586,7 @@ class La {
5574
5586
  c.STORAGE,
5575
5587
  c.NONE,
5576
5588
  c.MESSAGES,
5577
- `${i} messages hidden`
5589
+ `${o} messages hidden`
5578
5590
  ]), await this.api.hideMessage(n);
5579
5591
  };
5580
5592
  hideLabels = async (n) => await this.api.hideLabels(n);
@@ -5605,7 +5617,7 @@ class La {
5605
5617
  getDashboards = async (n) => await this.sm?.getDashboards();
5606
5618
  setDashboard = async (n) => await this.sm?.setDashboard(n);
5607
5619
  }
5608
- class Ba {
5620
+ class Ga {
5609
5621
  sm;
5610
5622
  constructor(n) {
5611
5623
  switch (this.sm = null, n.storage) {
@@ -5616,10 +5628,10 @@ class Ba {
5616
5628
  this.sm = new Lr(n);
5617
5629
  break;
5618
5630
  case he.SESSION:
5619
- this.sm = new Br(n);
5631
+ this.sm = new Gr(n);
5620
5632
  break;
5621
5633
  case he.KEYVAL:
5622
- this.sm = new Gr(n);
5634
+ this.sm = new Br(n);
5623
5635
  break;
5624
5636
  case he.WINDOW:
5625
5637
  this.sm = new Wr(n);
@@ -5687,7 +5699,7 @@ class Ba {
5687
5699
  success: !1
5688
5700
  }) : await this.sm?.getSeries(n);
5689
5701
  }
5690
- class Wa {
5702
+ class Za {
5691
5703
  storageReader;
5692
5704
  broadcastChannel;
5693
5705
  element;
@@ -5700,12 +5712,12 @@ class Wa {
5700
5712
  * @param callbacks functions in the widget that will receive the update
5701
5713
  * @param selector container for the element - by default buzzcasting-app (optional)
5702
5714
  */
5703
- constructor(n, i, l) {
5704
- this.element = n, this.callbacks = i, l = typeof l < "u" ? l : "buzzcasting-app";
5715
+ constructor(n, o, l) {
5716
+ this.element = n, this.callbacks = o, l = typeof l < "u" ? l : "buzzcasting-app";
5705
5717
  let E;
5706
5718
  E = { ...n.dataset }, delete E.hmr, E.presentation = n.closest(l)?.getAttribute("presentation") ?? `${l} not found`, this.query = E, Da(n);
5707
5719
  const O = window.BuzzCasting.getOptions();
5708
- this.storageReader = new Ba(O), this.broadcastChannel = new BroadcastChannel(E.presentation), this.broadcastListener();
5720
+ this.storageReader = new Ga(O), this.broadcastChannel = new BroadcastChannel(E.presentation), this.broadcastListener();
5709
5721
  }
5710
5722
  addCallbackListener(n) {
5711
5723
  this.callbacks.push(n);
@@ -5716,9 +5728,9 @@ class Wa {
5716
5728
  */
5717
5729
  broadcastListener() {
5718
5730
  const n = this.query;
5719
- this.broadcastChannel.onmessage = async (i) => {
5720
- const l = i.data.data;
5721
- switch (i.data.event) {
5731
+ this.broadcastChannel.onmessage = async (o) => {
5732
+ const l = o.data.data;
5733
+ switch (o.data.event) {
5722
5734
  case J.WIDGET_UPDATE:
5723
5735
  try {
5724
5736
  if (l.dashboard === n.dashboard && l.widget === n.widget) {
@@ -5861,7 +5873,7 @@ class Wa {
5861
5873
  Pa(this.element.attributes)
5862
5874
  //props['data-widget'],
5863
5875
  ]);
5864
- const i = new CustomEvent(J.SHOW_MODAL, {
5876
+ const o = new CustomEvent(J.SHOW_MODAL, {
5865
5877
  detail: {
5866
5878
  component: n.showComponent,
5867
5879
  props: n.props,
@@ -5872,14 +5884,14 @@ class Wa {
5872
5884
  cancelable: !0,
5873
5885
  composed: !0
5874
5886
  });
5875
- window.dispatchEvent(i);
5887
+ window.dispatchEvent(o);
5876
5888
  };
5877
5889
  destroy() {
5878
5890
  this.broadcastChannel.close();
5879
5891
  }
5880
5892
  }
5881
5893
  export {
5882
- La as BuzzcastingStorageManager,
5883
- Ba as BuzzcastingStorageReader,
5884
- Wa as Widget
5894
+ Ja as BuzzcastingStorageManager,
5895
+ Ga as BuzzcastingStorageReader,
5896
+ Za as Widget
5885
5897
  };