buzzcasting-storage 3.18.4 → 3.19.2

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,5 +1,5 @@
1
- var _ = /* @__PURE__ */ ((f) => (f.CARDS = "cards", f.CLOUD = "cloud", f.DASHBOARD = "dashboard", f.DASHBOARDS = "dashboards", f.IMAGES = "images", f.MESSAGES = "messages", f.PREFERENCE = "preference", f.PREFERENCES = "preferences", f.PRESENTATION = "presentation", f.PRESENTATIONS = "presentations", f.SERIES = "series", f.SLIDE = "slide", f.SLIDES = "slides", f.TOPICS = "topics", f.WIDGET = "widget", f.WIDGETS = "widgets", f))(_ || {}), o = /* @__PURE__ */ ((f) => (f.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", f.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", f.BROADCAST = "color:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", f.CLOUD = "color:purple;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", f.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", f.ERROR = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.KO = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", f.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", f.NONE = "color:transparent;background-color:transparent;", f.OK = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", f.SERIES = "color:purple;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", f.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", f.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", f.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", f.WIDGET = "color:black;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", f.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", f))(o || {}), J = /* @__PURE__ */ ((f) => (f.ADD_SLIDE = "addSlide", f.APP_READY = "appReady", f.API_UPDATE = "apiUpdate", f.BACKGROUND_UPDATE = "backgroundUpdate", f.BUILDER_PREVIEW = "builderPreview", f.COMPONENT_UPDATE = "componentUpdate", f.APPROVE_MESSAGE = "approveMessage", f.CHANNEL = "channel", f.CLEAN_MESSAGES = "cleanMessages", f.CLOSE_BUILDER_DIALOG = "closeBuilderDialog", f.CLOSE_BUILDER_MODAL = "closeBuilderModal", f.CLOSE_MODAL = "closeModal", f.COLOR_UPDATE = "colorUpdate", f.COMPONENT_INDEX = "componentIndex", f.CSS_SET = "setCss", f.CSS_STORE = "storeCss", f.DASHBOARD_LOAD = "loadDashboard", f.DASHBOARD_STORE = "storeDashboard", f.DASHBOARD_UPDATED = "dashboardUpdated", f.ERROR = "error", f.HIDE_MESSAGE = "hideMessage", f.HIDE_LABELS = "hideLabels", f.IMAGE_GET = "getImage", f.IMAGE_SET = "setImage", f.IMAGE_STORED = "imageStored", f.LAUPPUT_UPDATE = "layoutUpdate", f.PREV_SLIDE = "prevSlide", f.RELOAD_PRESENTATION = "reloadPresentation", f.STAR_MESSAGE = "starMessage", f.GOTO_SLIDE = "gotoSlide", f.NEXT_SLIDE = "nextSlide", f.PREFERENCE_LOAD = "loadPreference", f.PREFERENCE_STORE = "storePreference", f.PREFERENCE_UPDATED = "preferenceUpdated", f.PAUSE_PRESENTATION = "pausePresentation", f.PRESENTATION_READY = "presentationReady", f.PRESENTATION_LOAD = "loadPresentation", f.PRESENTATION_STORE = "storePresentation", f.PRESENTATION_UPDATED = "presentationUpdated", f.ROW_COL_UPDATE = "rowcolupdate", f.SCREENSHOT_TAKE = "takeScreenshot", f.SCREENSHOT_STORE = "storeScreenshot", f.SECTION_UPDATE = "sectionUpdate", f.SHOW_BUILDER_DIALOG = "showBuilderDialog", f.SHOW_BUILDER_MODAL = "showBuilderModal", f.SHOW_MODAL = "showModal", f.SLIDE_DID_LOAD = "slideDidLoad", f.SLIDE_GET = "getSlide", f.SLIDE_GOTO = "slideGoto", f.SLIDE_LOAD = "loadSlide", f.SLIDE_READY = "slideReady", f.SLIDE_SAVED = "slideSaved", f.SLIDE_SET = "setSlide", f.SLIDE_STORE = "storeSlide", f.SLIDE_STORED = "slideStored", f.SLIDE_TRANSITIONER = "slideTransitioner", f.SLIDE_UPDATED = "slideUpdated", f.START_TRANSITIONER = "startTransitioner", f.STORAGE_INIT = "storageInit", f.STREAM = "stream", f.SUBSCRIBE = "subscribe", f.SUSPEND_ACCOUNT = "suspendAccount", f.SWITCH_PRESENTATION = "switchPresentation", f.REMOVE_CLOUD = "removeCloud", f.UPDATE = "update", f.UPLOAD_COMPLETED = "uploadCompleted", f.VERSION = "version", f.WIDGETS_CLEAR = "widgetsClear", f.WIDGET_DID_LOAD = "widgetDidLoad", f.WIDGET_DID_UPDATE = "widgetDidUpdate", f.WIDGET_LOAD = "widgetLoad", f.WIDGET_STORE = "widgetStore", f.WIDGET_UPDATE = "widgetUpdate", f.WS_API_REQUEST = "wsApiRequest", f.WS_API_RESPONSE = "wsApiResponse", f.WS_API_UPDATE = "wsApiRUpdate", f))(J || {}), rr = /* @__PURE__ */ ((f) => (f.APPROVED = "approved", f.BEFORE = "before", f.DELAYED = "delayed", f.NONE = "none", f.REALTIME = "realtime", f))(rr || {}), pe = /* @__PURE__ */ ((f) => (f.KEYVAL = "keyval", f.LOCAL = "local", f.SESSION = "session", f.DEXIE = "dexie", f.WINDOW = "window", f))(pe || {});
2
- function Da(f) {
1
+ var w = /* @__PURE__ */ ((f) => (f.CARDS = "cards", f.CLOUD = "cloud", f.DASHBOARD = "dashboard", f.DASHBOARDS = "dashboards", f.IMAGES = "images", f.MESSAGES = "messages", f.PREFERENCE = "preference", f.PREFERENCES = "preferences", f.PRESENTATION = "presentation", f.PRESENTATIONS = "presentations", f.SERIES = "series", f.SLIDE = "slide", f.SLIDES = "slides", f.TOPICS = "topics", f.WIDGET = "widget", f.WIDGETS = "widgets", f))(w || {}), o = /* @__PURE__ */ ((f) => (f.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", f.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", f.BROADCAST = "color:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", f.CLOUD = "color:purple;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", f.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", f.ERROR = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.KO = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", f.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", f.NONE = "color:transparent;background-color:transparent;", f.OK = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", f.SERIES = "color:purple;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", f.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", f.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", f.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", f.WIDGET = "color:black;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", f.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", f))(o || {}), J = /* @__PURE__ */ ((f) => (f.ADD_SLIDE = "addSlide", f.APP_READY = "appReady", f.API_UPDATE = "apiUpdate", f.BACKGROUND_UPDATE = "backgroundUpdate", f.BUILDER_PREVIEW = "builderPreview", f.COMPONENT_UPDATE = "componentUpdate", f.APPROVE_MESSAGE = "approveMessage", f.CHANNEL = "channel", f.CLEAN_MESSAGES = "cleanMessages", f.CLOSE_BUILDER_DIALOG = "closeBuilderDialog", f.CLOSE_BUILDER_MODAL = "closeBuilderModal", f.CLOSE_MODAL = "closeModal", f.COLOR_UPDATE = "colorUpdate", f.COMPONENT_INDEX = "componentIndex", f.CSS_SET = "setCss", f.CSS_STORE = "storeCss", f.DASHBOARD_LOAD = "loadDashboard", f.DASHBOARD_STORE = "storeDashboard", f.DASHBOARD_UPDATED = "dashboardUpdated", f.ERROR = "error", f.HIDE_MESSAGE = "hideMessage", f.HIDE_LABELS = "hideLabels", f.IMAGE_GET = "getImage", f.IMAGE_SET = "setImage", f.IMAGE_STORED = "imageStored", f.LAUPPUT_UPDATE = "layoutUpdate", f.PREV_SLIDE = "prevSlide", f.RELOAD_PRESENTATION = "reloadPresentation", f.STAR_MESSAGE = "starMessage", f.GOTO_SLIDE = "gotoSlide", f.NEXT_SLIDE = "nextSlide", f.PREFERENCE_LOAD = "loadPreference", f.PREFERENCE_STORE = "storePreference", f.PREFERENCE_UPDATED = "preferenceUpdated", f.PAUSE_PRESENTATION = "pausePresentation", f.PRESENTATION_READY = "presentationReady", f.PRESENTATION_LOAD = "loadPresentation", f.PRESENTATION_STORE = "storePresentation", f.PRESENTATION_UPDATED = "presentationUpdated", f.ROW_COL_UPDATE = "rowcolupdate", f.SCREENSHOT_TAKE = "takeScreenshot", f.SCREENSHOT_STORE = "storeScreenshot", f.SECTION_UPDATE = "sectionUpdate", f.SHOW_BUILDER_DIALOG = "showBuilderDialog", f.SHOW_BUILDER_MODAL = "showBuilderModal", f.SHOW_MODAL = "showModal", f.SLIDE_DID_LOAD = "slideDidLoad", f.SLIDE_GET = "getSlide", f.SLIDE_GOTO = "slideGoto", f.SLIDE_LOAD = "loadSlide", f.SLIDE_READY = "slideReady", f.SLIDE_SAVED = "slideSaved", f.SLIDE_SET = "setSlide", f.SLIDE_STORE = "storeSlide", f.SLIDE_STORED = "slideStored", f.SLIDE_TRANSITIONER = "slideTransitioner", f.SLIDE_UPDATED = "slideUpdated", f.START_TRANSITIONER = "startTransitioner", f.STORAGE_INIT = "storageInit", f.STREAM = "stream", f.SUBSCRIBE = "subscribe", f.SUSPEND_ACCOUNT = "suspendAccount", f.SWITCH_PRESENTATION = "switchPresentation", f.REMOVE_CLOUD = "removeCloud", f.UPDATE = "update", f.UPLOAD_COMPLETED = "uploadCompleted", f.VERSION = "version", f.WIDGETS_CLEAR = "widgetsClear", f.WIDGET_DID_LOAD = "widgetDidLoad", f.WIDGET_DID_UPDATE = "widgetDidUpdate", f.WIDGET_LOAD = "widgetLoad", f.WIDGET_STORE = "widgetStore", f.WIDGET_UPDATE = "widgetUpdate", f.WS_API_REQUEST = "wsApiRequest", f.WS_API_RESPONSE = "wsApiResponse", f.WS_API_UPDATE = "wsApiRUpdate", f))(J || {}), rr = /* @__PURE__ */ ((f) => (f.APPROVED = "approved", f.BEFORE = "before", f.DELAYED = "delayed", f.NONE = "none", f.REALTIME = "realtime", f))(rr || {}), pe = /* @__PURE__ */ ((f) => (f.KEYVAL = "keyval", f.LOCAL = "local", f.SESSION = "session", f.DEXIE = "dexie", f.WINDOW = "window", f))(pe || {});
2
+ function Na(f) {
3
3
  const t = {};
4
4
  for (let i = 0; i < f.length; i++) {
5
5
  const l = f.item(i);
@@ -7,11 +7,11 @@ function Da(f) {
7
7
  }
8
8
  return t;
9
9
  }
10
- function Ia(f) {
10
+ function Ta(f) {
11
11
  const t = document.createRange();
12
12
  t.selectNodeContents(f), t.deleteContents();
13
13
  }
14
- function Ta(f, t) {
14
+ function Ia(f, t) {
15
15
  for (; f.length < t; )
16
16
  f = `0${f}`;
17
17
  return f;
@@ -45,8 +45,8 @@ function Mn(f, t, i, l) {
45
45
  return b;
46
46
  try {
47
47
  return _e(b, String(t.valueOf()));
48
- } catch (I) {
49
- return _e(b, `[valueOf exception]${I.stack || I.message}`);
48
+ } catch (T) {
49
+ return _e(b, `[valueOf exception]${T.stack || T.message}`);
50
50
  }
51
51
  }
52
52
  return _e(g, t.toString());
@@ -54,8 +54,8 @@ function Mn(f, t, i, l) {
54
54
  function xa(f) {
55
55
  return Object.prototype.toString.call(f);
56
56
  }
57
- function Wr(f) {
58
- return Ta(Mn(0, f, "", []).toString(16), 8);
57
+ function Ur(f) {
58
+ return Ia(Mn(0, f, "", []).toString(16), 8);
59
59
  }
60
60
  const ot = (f) => {
61
61
  let t = {}, i = f.split(",");
@@ -76,15 +76,15 @@ ot(
76
76
  "checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"
77
77
  );
78
78
  ot("script,style");
79
- const ka = new BroadcastChannel("logging"), G = async (f = 0, t) => {
79
+ const ka = new BroadcastChannel("logging"), j = async (f = 0, t) => {
80
80
  ka.postMessage({ action: "log", level: f, message: t });
81
81
  }, _t = (f) => {
82
82
  switch (f?.type) {
83
- case _.MESSAGES:
83
+ case w.MESSAGES:
84
84
  return o.MESSAGES;
85
- case _.SERIES:
85
+ case w.SERIES:
86
86
  return o.SERIES;
87
- case _.CLOUD:
87
+ case w.CLOUD:
88
88
  return o.CLOUD;
89
89
  default:
90
90
  return o.NO_UPDATES;
@@ -102,10 +102,10 @@ function Ca(f) {
102
102
  return f;
103
103
  }
104
104
  function Pt(f, t) {
105
- let i, l, g, b, I;
105
+ let i, l, g, b, T;
106
106
  switch (f.moderation) {
107
107
  case rr.BEFORE:
108
- i = /* @__PURE__ */ new Date(), l = f.beforeTime?.split(":"), g = Number.parseInt(l ? l[0] : "00"), b = Number.parseInt(l ? l[1] : "00"), I = Number.parseInt(l ? l[2] : "00"), t.before = i.setHours(g, b, I, 0) / 1e3, t.period || (t.period = i.getDay() === 1 ? 72 : 24);
108
+ i = /* @__PURE__ */ new Date(), l = f.beforeTime?.split(":"), g = Number.parseInt(l ? l[0] : "00"), b = Number.parseInt(l ? l[1] : "00"), T = Number.parseInt(l ? l[2] : "00"), t.before = i.setHours(g, b, T, 0) / 1e3, t.period || (t.period = i.getDay() === 1 ? 72 : 24);
109
109
  break;
110
110
  case rr.DELAYED:
111
111
  f.delay && f.delay > 0 && (t.delay = `${f.delay}`);
@@ -118,8 +118,8 @@ function Pt(f, t) {
118
118
  }
119
119
  return t;
120
120
  }
121
- const $a = "3.18.3";
122
- async function* ja(f) {
121
+ const $a = "3.19.1";
122
+ async function* Ga(f) {
123
123
  const t = f.pipeThrough(new TextDecoderStream("utf-8")).getReader();
124
124
  let i = "";
125
125
  for (; ; ) {
@@ -133,7 +133,7 @@ async function* ja(f) {
133
133
  }
134
134
  }
135
135
  }
136
- class Ga {
136
+ class ja {
137
137
  options;
138
138
  url;
139
139
  constructor(t) {
@@ -173,35 +173,35 @@ class Ga {
173
173
  const { version: i } = this.options, l = this.headers(), g = Object.assign({}, t);
174
174
  delete g.type, delete g.hash, delete g.order, g.topics = `${g.dashboard}-${g.widget}`, delete g.presentation;
175
175
  const b = Object.keys(g).length > 0 ? `?${new URLSearchParams(g).toString()}` : "";
176
- let I = "";
176
+ let T = "";
177
177
  switch (t.type) {
178
- case _.MESSAGES:
179
- I = o.MESSAGES;
178
+ case w.MESSAGES:
179
+ T = o.MESSAGES;
180
180
  break;
181
- case _.SERIES:
182
- I = o.SERIES;
181
+ case w.SERIES:
182
+ T = o.SERIES;
183
183
  break;
184
- case _.CLOUD:
185
- I = o.CLOUD;
184
+ case w.CLOUD:
185
+ T = o.CLOUD;
186
186
  break;
187
187
  }
188
- return G(3, [
188
+ return j(3, [
189
189
  `%cfetch%c %capi%c %c${t.type}`,
190
190
  o.OK,
191
191
  o.NONE,
192
192
  o.API,
193
193
  o.NONE,
194
- I,
194
+ T,
195
195
  t.widget,
196
196
  g
197
197
  ]), await fetch(
198
198
  [this.url, "api", i, t.type].join("/") + b,
199
199
  { ...l, method: "get" }
200
- ).then(async (T) => {
201
- if (!T.ok)
202
- throw new Error(`${T.status}`);
203
- return T;
204
- }).then((T) => T.json()).then((T) => (T.query = t, T)).catch((T) => ({ success: !1, message: `${T}`, data: null, query: t }));
200
+ ).then(async (I) => {
201
+ if (!I.ok)
202
+ throw new Error(`${I.status}`);
203
+ return I;
204
+ }).then((I) => I.json()).then((I) => (I.query = t, I)).catch((I) => ({ success: !1, message: `${I}`, data: null, query: t }));
205
205
  }
206
206
  async ndjson(t) {
207
207
  const { version: i } = this.options, l = this.headers(), g = await fetch(
@@ -212,12 +212,12 @@ class Ga {
212
212
  method: "post"
213
213
  }
214
214
  );
215
- for await (const b of ja(g.body))
215
+ for await (const b of Ga(g.body))
216
216
  console.log("Received", b);
217
217
  }
218
218
  async hideMessage(t) {
219
219
  const { version: i } = this.options, l = this.headers(), g = "?action=visible";
220
- return G(3, [
220
+ return j(3, [
221
221
  "%capi%c %cput",
222
222
  o.API,
223
223
  o.NONE,
@@ -236,8 +236,8 @@ class Ga {
236
236
  }
237
237
  async hideLabels(t) {
238
238
  const { version: i } = this.options, l = this.formHeaders(), g = new URLSearchParams(), b = t.labels || [];
239
- for (const [I, T] of b.entries())
240
- g.append(`custom_filters[${I}]`, T);
239
+ for (const [T, I] of b.entries())
240
+ g.append(`custom_filters[${T}]`, I);
241
241
  return console.info(
242
242
  "%capi%c %cput",
243
243
  o.API,
@@ -249,15 +249,15 @@ class Ga {
249
249
  ), await fetch(
250
250
  [this.url, "api", i, t.type, t.widget].join("/"),
251
251
  { ...l, body: g, method: "put" }
252
- ).then((I) => {
253
- if (!I.ok)
254
- throw new Error(I.statusText);
255
- return I;
256
- }).then((I) => I.json()).catch((I) => ({ succes: !1, message: I, data: [] }));
252
+ ).then((T) => {
253
+ if (!T.ok)
254
+ throw new Error(T.statusText);
255
+ return T;
256
+ }).then((T) => T.json()).catch((T) => ({ succes: !1, message: T, data: [] }));
257
257
  }
258
258
  async loadSlide(t) {
259
259
  const { version: i } = this.options, l = this.headers(), g = Object.assign({}, t);
260
- return delete g.type, delete g.hash, G(3, [
260
+ return delete g.type, delete g.hash, j(3, [
261
261
  "%cload%c %capi%c %cslide",
262
262
  o.OK,
263
263
  o.NONE,
@@ -273,10 +273,10 @@ class Ga {
273
273
  throw new Error(`${b.status}`);
274
274
  return b;
275
275
  }).then((b) => b.json()).then((b) => {
276
- let I;
277
- return t.type = "slides", b.query = t, b?.data && (Array.isArray(b.data) ? (I = structuredClone(b.data), I.forEach((T) => {
278
- typeof T.json == "string" && (T.json = JSON.parse(T.json));
279
- })) : (I = structuredClone(b.data), I.json = JSON.parse(I.json)), b.data = I), b;
276
+ let T;
277
+ return t.type = "slides", b.query = t, b?.data && (Array.isArray(b.data) ? (T = structuredClone(b.data), T.forEach((I) => {
278
+ typeof I.json == "string" && (I.json = JSON.parse(I.json));
279
+ })) : (T = structuredClone(b.data), T.json = JSON.parse(T.json)), b.data = T), b;
280
280
  }).catch((b) => ({ success: !1, message: `${b}`, data: null }));
281
281
  }
282
282
  /**
@@ -290,7 +290,7 @@ class Ga {
290
290
  const { version: i } = this.options, l = this.formHeaders();
291
291
  delete t.update, delete t.type;
292
292
  const g = JSON.stringify(t);
293
- return G(3, [
293
+ return j(3, [
294
294
  "%cput%c %capi%c %cslide",
295
295
  o.OK,
296
296
  o.NONE,
@@ -310,7 +310,7 @@ class Ga {
310
310
  }
311
311
  async loadPresentation(t) {
312
312
  const { version: i } = this.options, l = this.headers();
313
- return delete t.update, G(3, [
313
+ return delete t.update, j(3, [
314
314
  "%cload%c %capi%c %cpresentation",
315
315
  o.OK,
316
316
  o.NONE,
@@ -319,7 +319,7 @@ class Ga {
319
319
  o.PRESENTATION,
320
320
  t.id
321
321
  ]), await fetch(
322
- [this.url, "api", i, _.PRESENTATIONS, t.id].join("/"),
322
+ [this.url, "api", i, w.PRESENTATIONS, t.id].join("/"),
323
323
  { ...l, method: "get" }
324
324
  ).then(async (g) => {
325
325
  if (!g.ok)
@@ -341,8 +341,8 @@ class Ga {
341
341
  const { version: i } = this.options, l = this.formHeaders();
342
342
  delete t.update;
343
343
  const g = JSON.stringify(t);
344
- return G(2, ["%capi%c %cput", o.API, o.NONE, o.PRESENTATION, t.name]), await fetch(
345
- [this.url, "api", i, _.PRESENTATIONS, t.id].join("/"),
344
+ return j(2, ["%capi%c %cput", o.API, o.NONE, o.PRESENTATION, t.name]), await fetch(
345
+ [this.url, "api", i, w.PRESENTATIONS, t.id].join("/"),
346
346
  { ...l, body: g, method: "put" }
347
347
  ).then((b) => {
348
348
  if (!b.ok)
@@ -352,7 +352,7 @@ class Ga {
352
352
  }
353
353
  async loadPreference(t) {
354
354
  const { version: i } = this.options, l = this.headers();
355
- return G(3, [
355
+ return j(3, [
356
356
  "%cload%c %capi%c %cpreference",
357
357
  o.OK,
358
358
  o.NONE,
@@ -361,7 +361,7 @@ class Ga {
361
361
  o.APP,
362
362
  t.id
363
363
  ]), await fetch(
364
- [this.url, "api", i, _.PREFERENCES, t.id].join("/"),
364
+ [this.url, "api", i, w.PREFERENCES, t.id].join("/"),
365
365
  { ...l, method: "get" }
366
366
  ).then(async (g) => {
367
367
  if (!g.ok)
@@ -373,14 +373,14 @@ class Ga {
373
373
  const { version: i } = this.options, l = this.formHeaders();
374
374
  delete t.update;
375
375
  const g = JSON.stringify({ data: t });
376
- return G(3, [
376
+ return j(3, [
377
377
  "%capi%c %cstorePreference",
378
378
  o.API,
379
379
  o.NONE,
380
380
  o.APP,
381
381
  t.id
382
382
  ]), await fetch(
383
- [this.url, "api", i, _.PREFERENCES, t.id].join("/"),
383
+ [this.url, "api", i, w.PREFERENCES, t.id].join("/"),
384
384
  { ...l, body: g, method: "put" }
385
385
  ).then((b) => {
386
386
  if (!b.ok)
@@ -390,8 +390,8 @@ class Ga {
390
390
  }
391
391
  async loadDashboards(t) {
392
392
  const { version: i } = this.options, l = this.headers();
393
- return G(3, ["%capi%c %cdashboards", o.API, o.NONE, o.WIDGET]), await fetch(
394
- [this.url, "api", i, _.WIDGETS, t?.id || ""].join("/"),
393
+ return j(3, ["%capi%c %cdashboards", o.API, o.NONE, o.WIDGET]), await fetch(
394
+ [this.url, "api", i, w.WIDGETS, t?.id || ""].join("/"),
395
395
  {
396
396
  ...l,
397
397
  method: "get"
@@ -408,7 +408,7 @@ class Ga {
408
408
  }
409
409
  async loadImages(t) {
410
410
  const { version: i } = this.options, l = this.headers();
411
- return G(3, [
411
+ return j(3, [
412
412
  "%cload%c %capi%c %cimage",
413
413
  o.OK,
414
414
  o.NONE,
@@ -416,7 +416,7 @@ class Ga {
416
416
  o.NONE,
417
417
  o.WIDGET
418
418
  ]), await fetch(
419
- `${[this.url, "api", i, _.IMAGES].join(
419
+ `${[this.url, "api", i, w.IMAGES].join(
420
420
  "/"
421
421
  )}?folder=${t}`,
422
422
  {
@@ -442,7 +442,7 @@ class Ga {
442
442
  o.WIDGET,
443
443
  t.get("name")
444
444
  ), await fetch(
445
- `${[this.url, "api", i, _.IMAGES].join(
445
+ `${[this.url, "api", i, w.IMAGES].join(
446
446
  "/"
447
447
  )}?folder=${t.get("folder")}`,
448
448
  {
@@ -465,7 +465,7 @@ class Ga {
465
465
  o.WIDGET,
466
466
  i
467
467
  ), await fetch(
468
- `${[this.url, "api", l, _.IMAGES, i].join(
468
+ `${[this.url, "api", l, w.IMAGES, i].join(
469
469
  "/"
470
470
  )}?folder=${t}`,
471
471
  { ...g, method: "delete" }
@@ -480,9 +480,9 @@ var Ma = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
480
480
  function Ka(f) {
481
481
  return f && f.__esModule && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f;
482
482
  }
483
- var nr = { exports: {} }, La = nr.exports, jn;
483
+ var nr = { exports: {} }, La = nr.exports, Gn;
484
484
  function Ba() {
485
- return jn || (jn = 1, (function(f, t) {
485
+ return Gn || (Gn = 1, (function(f, t) {
486
486
  (function(i, l) {
487
487
  f.exports = l();
488
488
  })(La, function() {
@@ -502,9 +502,9 @@ function Ba() {
502
502
  for (var a, s = 0, c = r.length; s < c; s++) !a && s in r || ((a = a || Array.prototype.slice.call(r, 0, s))[s] = r[s]);
503
503
  return e.concat(a || Array.prototype.slice.call(r));
504
504
  }
505
- var b = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Ma, I = Object.keys, T = Array.isArray;
505
+ var b = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Ma, T = Object.keys, I = Array.isArray;
506
506
  function te(e, r) {
507
- return typeof r != "object" || I(r).forEach(function(n) {
507
+ return typeof r != "object" || T(r).forEach(function(n) {
508
508
  e[n] = r[n];
509
509
  }), e;
510
510
  }
@@ -514,7 +514,7 @@ function Ba() {
514
514
  return fe.call(e, r);
515
515
  }
516
516
  function ge(e, r) {
517
- typeof r == "function" && (r = r(me(e))), (typeof Reflect > "u" ? I : Reflect.ownKeys)(r).forEach(function(n) {
517
+ typeof r == "function" && (r = r(me(e))), (typeof Reflect > "u" ? T : Reflect.ownKeys)(r).forEach(function(n) {
518
518
  Pe(e, n, r[n]);
519
519
  });
520
520
  }
@@ -528,7 +528,7 @@ function Ba() {
528
528
  } };
529
529
  }
530
530
  var Hn = Object.getOwnPropertyDescriptor, Vn = [].slice;
531
- function Nt(e, r, n) {
531
+ function Dt(e, r, n) {
532
532
  return Vn.call(e, r, n);
533
533
  }
534
534
  function zr(e, r) {
@@ -562,7 +562,7 @@ function Ba() {
562
562
  for (var a = 0, s = r.length; a < s; ++a) ue(e, r[a], n[a]);
563
563
  } else {
564
564
  var c, u, d = r.indexOf(".");
565
- d !== -1 ? (c = r.substr(0, d), (u = r.substr(d + 1)) === "" ? n === void 0 ? T(e) && !isNaN(parseInt(c)) ? e.splice(c, 1) : delete e[c] : e[c] = n : ue(d = !(d = e[c]) || !ae(e, c) ? e[c] = {} : d, u, n)) : n === void 0 ? T(e) && !isNaN(parseInt(r)) ? e.splice(r, 1) : delete e[r] : e[r] = n;
565
+ d !== -1 ? (c = r.substr(0, d), (u = r.substr(d + 1)) === "" ? n === void 0 ? I(e) && !isNaN(parseInt(c)) ? e.splice(c, 1) : delete e[c] : e[c] = n : ue(d = !(d = e[c]) || !ae(e, c) ? e[c] = {} : d, u, n)) : n === void 0 ? I(e) && !isNaN(parseInt(r)) ? e.splice(r, 1) : delete e[r] : e[r] = n;
566
566
  }
567
567
  }
568
568
  function Xr(e) {
@@ -588,7 +588,7 @@ function Ba() {
588
588
  if (!n || typeof n != "object") return n;
589
589
  var a = ut.get(n);
590
590
  if (a) return a;
591
- if (T(n)) {
591
+ if (I(n)) {
592
592
  a = [], ut.set(n, a);
593
593
  for (var s = 0, c = n.length; s < c; ++s) a.push(r(n[s]));
594
594
  } else if (Jr.has(n.constructor)) a = n;
@@ -609,14 +609,14 @@ function Ba() {
609
609
  } : function() {
610
610
  return null;
611
611
  };
612
- function je(e, r) {
612
+ function Ge(e, r) {
613
613
  return r = e.indexOf(r), 0 <= r && e.splice(r, 1), 0 <= r;
614
614
  }
615
615
  var Xe = {};
616
616
  function we(e) {
617
617
  var r, n, a, s;
618
618
  if (arguments.length === 1) {
619
- if (T(e)) return e.slice();
619
+ if (I(e)) return e.slice();
620
620
  if (this === Xe && typeof e == "string") return [e];
621
621
  if (s = Xn(e)) {
622
622
  for (n = []; !(a = s.next()).done; ) n.push(a.value);
@@ -646,7 +646,7 @@ function Ba() {
646
646
  }).join(`
647
647
  `);
648
648
  }
649
- function Dt(e, r, n, a) {
649
+ function Nt(e, r, n, a) {
650
650
  this.failures = r, this.failedKeys = a, this.successCount = n, this.message = Zr(e, r);
651
651
  }
652
652
  function Je(e, r) {
@@ -656,7 +656,7 @@ function Ba() {
656
656
  }
657
657
  Ye(Qe).from(Error).extend({ toString: function() {
658
658
  return this.name + ": " + this.message;
659
- } }), Ye(Dt).from(Qe), Ye(Je).from(Qe);
659
+ } }), Ye(Nt).from(Qe), Ye(Je).from(Qe);
660
660
  var ir = he.reduce(function(e, r) {
661
661
  return e[r] = r + "Error", e;
662
662
  }, {}), Jn = Qe, B = he.reduce(function(e, r) {
@@ -670,7 +670,7 @@ function Ba() {
670
670
  B.Syntax = SyntaxError, B.Type = TypeError, B.Range = RangeError;
671
671
  var qr = ht.reduce(function(e, r) {
672
672
  return e[r + "Error"] = B[r], e;
673
- }, {}), It = he.reduce(function(e, r) {
673
+ }, {}), Tt = he.reduce(function(e, r) {
674
674
  return ["Syntax", "Type", "Range"].indexOf(r) === -1 && (e[r + "Error"] = B[r]), e;
675
675
  }, {});
676
676
  function X() {
@@ -683,7 +683,7 @@ function Ba() {
683
683
  return r(e(n));
684
684
  };
685
685
  }
686
- function Ge(e, r) {
686
+ function je(e, r) {
687
687
  return function() {
688
688
  e.apply(this, arguments), r.apply(this, arguments);
689
689
  };
@@ -695,14 +695,14 @@ function Ba() {
695
695
  var a = this.onsuccess, s = this.onerror;
696
696
  this.onsuccess = null, this.onerror = null;
697
697
  var c = r.apply(this, arguments);
698
- return a && (this.onsuccess = this.onsuccess ? Ge(a, this.onsuccess) : a), s && (this.onerror = this.onerror ? Ge(s, this.onerror) : s), c !== void 0 ? c : n;
698
+ return a && (this.onsuccess = this.onsuccess ? je(a, this.onsuccess) : a), s && (this.onerror = this.onerror ? je(s, this.onerror) : s), c !== void 0 ? c : n;
699
699
  };
700
700
  }
701
701
  function ea(e, r) {
702
702
  return e === X ? r : function() {
703
703
  e.apply(this, arguments);
704
704
  var n = this.onsuccess, a = this.onerror;
705
- this.onsuccess = this.onerror = null, r.apply(this, arguments), n && (this.onsuccess = this.onsuccess ? Ge(n, this.onsuccess) : n), a && (this.onerror = this.onerror ? Ge(a, this.onerror) : a);
705
+ this.onsuccess = this.onerror = null, r.apply(this, arguments), n && (this.onsuccess = this.onsuccess ? je(n, this.onsuccess) : n), a && (this.onerror = this.onerror ? je(a, this.onerror) : a);
706
706
  };
707
707
  }
708
708
  function ta(e, r) {
@@ -710,7 +710,7 @@ function Ba() {
710
710
  var a = e.apply(this, arguments);
711
711
  te(n, a);
712
712
  var s = this.onsuccess, c = this.onerror;
713
- return this.onsuccess = null, this.onerror = null, n = r.apply(this, arguments), s && (this.onsuccess = this.onsuccess ? Ge(s, this.onsuccess) : s), c && (this.onerror = this.onerror ? Ge(c, this.onerror) : c), a === void 0 ? n === void 0 ? void 0 : n : te(a, n);
713
+ return this.onsuccess = null, this.onerror = null, n = r.apply(this, arguments), s && (this.onsuccess = this.onsuccess ? je(s, this.onsuccess) : s), c && (this.onerror = this.onerror ? je(c, this.onerror) : c), a === void 0 ? n === void 0 ? void 0 : n : te(a, n);
714
714
  };
715
715
  }
716
716
  function ra(e, r) {
@@ -730,7 +730,7 @@ function Ba() {
730
730
  return r.apply(this, arguments);
731
731
  };
732
732
  }
733
- It.ModifyError = Dt, It.DexieError = Qe, It.BulkError = Je;
733
+ Tt.ModifyError = Nt, Tt.DexieError = Qe, Tt.BulkError = Je;
734
734
  var ye = typeof location < "u" && /^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);
735
735
  function en(e) {
736
736
  ye = e;
@@ -741,8 +741,8 @@ function Ba() {
741
741
  var r = crypto.subtle.digest("SHA-512", new Uint8Array([0]));
742
742
  return [r, me(r), e];
743
743
  })(), ht = Me[0], he = Me[1], Me = Me[2], he = he && he.then, Ke = ht && ht.constructor, ur = !!Me, ft = function(e, r) {
744
- gt.push([e, r]), Tt && (queueMicrotask(aa), Tt = !1);
745
- }, lr = !0, Tt = !0, Le = [], Rt = [], dr = lt, Ne = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: X, pgp: !1, env: {}, finalize: X }, L = Ne, gt = [], Be = 0, xt = [];
744
+ gt.push([e, r]), It && (queueMicrotask(aa), It = !1);
745
+ }, lr = !0, It = !0, Le = [], Rt = [], dr = lt, De = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: X, pgp: !1, env: {}, finalize: X }, L = De, gt = [], Be = 0, xt = [];
746
746
  function M(e) {
747
747
  if (typeof this != "object") throw new TypeError("Promises must be constructed via new");
748
748
  this._listeners = [], this._lib = !1;
@@ -768,10 +768,10 @@ function Ba() {
768
768
  })(this, e);
769
769
  }
770
770
  var hr = { get: function() {
771
- var e = L, r = jt;
771
+ var e = L, r = Gt;
772
772
  function n(a, s) {
773
- var c = this, u = !e.global && (e !== L || r !== jt), d = u && !Ie(), p = new M(function(m, w) {
774
- gr(c, new rn(sn(a, e, u, d), sn(s, e, u, d), m, w, e));
773
+ var c = this, u = !e.global && (e !== L || r !== Gt), d = u && !Te(), p = new M(function(m, S) {
774
+ gr(c, new rn(sn(a, e, u, d), sn(s, e, u, d), m, S, e));
775
775
  });
776
776
  return this._consoleTask && (p._consoleTask = this._consoleTask), p;
777
777
  }
@@ -821,13 +821,13 @@ function Ba() {
821
821
  }
822
822
  }
823
823
  function aa() {
824
- Ue(Ne, function() {
824
+ We(De, function() {
825
825
  Ze() && qe();
826
826
  });
827
827
  }
828
828
  function Ze() {
829
829
  var e = lr;
830
- return Tt = lr = !1, e;
830
+ return It = lr = !1, e;
831
831
  }
832
832
  function qe() {
833
833
  var e, r, n;
@@ -837,7 +837,7 @@ function Ba() {
837
837
  a[0].apply(null, a[1]);
838
838
  }
839
839
  while (0 < gt.length);
840
- Tt = lr = !0;
840
+ It = lr = !0;
841
841
  }
842
842
  function pr() {
843
843
  var e = Le;
@@ -854,11 +854,11 @@ function Ba() {
854
854
  return function() {
855
855
  var a = Ze(), s = L;
856
856
  try {
857
- return Te(n, !0), e.apply(this, arguments);
857
+ return Ie(n, !0), e.apply(this, arguments);
858
858
  } catch (c) {
859
859
  r && r(c);
860
860
  } finally {
861
- Te(s, !1), a && qe();
861
+ Ie(s, !1), a && qe();
862
862
  }
863
863
  };
864
864
  }
@@ -890,8 +890,8 @@ function Ba() {
890
890
  }, e);
891
891
  n.then(a, s).finally(clearTimeout.bind(null, c));
892
892
  }) : this;
893
- } }), typeof Symbol < "u" && Symbol.toStringTag && Pe(M.prototype, Symbol.toStringTag, "Dexie.Promise"), Ne.env = an(), ge(M, { all: function() {
894
- var e = we.apply(null, arguments).map(Gt);
893
+ } }), typeof Symbol < "u" && Symbol.toStringTag && Pe(M.prototype, Symbol.toStringTag, "Dexie.Promise"), De.env = an(), ge(M, { all: function() {
894
+ var e = we.apply(null, arguments).map(jt);
895
895
  return new M(function(r, n) {
896
896
  e.length === 0 && r([]);
897
897
  var a = e.length;
@@ -906,7 +906,7 @@ function Ba() {
906
906
  e.then(r, n);
907
907
  }) : new M(dt, !0, e);
908
908
  }, reject: kt, race: function() {
909
- var e = we.apply(null, arguments).map(Gt);
909
+ var e = we.apply(null, arguments).map(jt);
910
910
  return new M(function(r, n) {
911
911
  e.map(function(a) {
912
912
  return M.resolve(a).then(r, n);
@@ -917,8 +917,8 @@ function Ba() {
917
917
  }, set: function(e) {
918
918
  return L = e;
919
919
  } }, totalEchoes: { get: function() {
920
- return jt;
921
- } }, newPSD: De, usePSD: Ue, scheduler: { get: function() {
920
+ return Gt;
921
+ } }, newPSD: Ne, usePSD: We, scheduler: { get: function() {
922
922
  return ft;
923
923
  }, set: function(e) {
924
924
  ft = e;
@@ -928,9 +928,9 @@ function Ba() {
928
928
  dr = e;
929
929
  } }, follow: function(e, r) {
930
930
  return new M(function(n, a) {
931
- return De(function(s, c) {
931
+ return Ne(function(s, c) {
932
932
  var u = L;
933
- u.unhandleds = [], u.onunhandled = c, u.finalize = Ge(function() {
933
+ u.unhandleds = [], u.onunhandled = c, u.finalize = je(function() {
934
934
  var d, p = this;
935
935
  d = function() {
936
936
  p.unhandleds.length === 0 ? s() : c(p.unhandleds[0]);
@@ -943,7 +943,7 @@ function Ba() {
943
943
  }, r, n, a);
944
944
  });
945
945
  } }), Ke && (Ke.allSettled && Pe(M, "allSettled", function() {
946
- var e = we.apply(null, arguments).map(Gt);
946
+ var e = we.apply(null, arguments).map(jt);
947
947
  return new M(function(r) {
948
948
  e.length === 0 && r([]);
949
949
  var n = e.length, a = new Array(n);
@@ -958,7 +958,7 @@ function Ba() {
958
958
  });
959
959
  });
960
960
  }), Ke.any && typeof AggregateError < "u" && Pe(M, "any", function() {
961
- var e = we.apply(null, arguments).map(Gt);
961
+ var e = we.apply(null, arguments).map(jt);
962
962
  return new M(function(r, n) {
963
963
  e.length === 0 && n(new AggregateError([]));
964
964
  var a = e.length, s = new Array(a);
@@ -971,64 +971,64 @@ function Ba() {
971
971
  });
972
972
  });
973
973
  }), Ke.withResolvers && (M.withResolvers = Ke.withResolvers));
974
- var re = { awaits: 0, echoes: 0, id: 0 }, sa = 0, Ct = [], $t = 0, jt = 0, oa = 0;
975
- function De(e, r, n, a) {
974
+ var re = { awaits: 0, echoes: 0, id: 0 }, sa = 0, Ct = [], $t = 0, Gt = 0, oa = 0;
975
+ function Ne(e, r, n, a) {
976
976
  var s = L, c = Object.create(s);
977
- return c.parent = s, c.ref = 0, c.global = !1, c.id = ++oa, Ne.env, c.env = ur ? { Promise: M, PromiseProp: { value: M, configurable: !0, writable: !0 }, all: M.all, race: M.race, allSettled: M.allSettled, any: M.any, resolve: M.resolve, reject: M.reject } : {}, r && te(c, r), ++s.ref, c.finalize = function() {
977
+ return c.parent = s, c.ref = 0, c.global = !1, c.id = ++oa, De.env, c.env = ur ? { Promise: M, PromiseProp: { value: M, configurable: !0, writable: !0 }, all: M.all, race: M.race, allSettled: M.allSettled, any: M.any, resolve: M.resolve, reject: M.reject } : {}, r && te(c, r), ++s.ref, c.finalize = function() {
978
978
  --this.parent.ref || this.parent.finalize();
979
- }, a = Ue(c, e, n, a), c.ref === 0 && c.finalize(), a;
979
+ }, a = We(c, e, n, a), c.ref === 0 && c.finalize(), a;
980
980
  }
981
981
  function et() {
982
982
  return re.id || (re.id = ++sa), ++re.awaits, re.echoes += tn, re.id;
983
983
  }
984
- function Ie() {
984
+ function Te() {
985
985
  return !!re.awaits && (--re.awaits == 0 && (re.id = 0), re.echoes = re.awaits * tn, !0);
986
986
  }
987
- function Gt(e) {
987
+ function jt(e) {
988
988
  return re.echoes && e && e.constructor === Ke ? (et(), e.then(function(r) {
989
- return Ie(), r;
989
+ return Te(), r;
990
990
  }, function(r) {
991
- return Ie(), q(r);
991
+ return Te(), q(r);
992
992
  })) : e;
993
993
  }
994
994
  function ia() {
995
995
  var e = Ct[Ct.length - 1];
996
- Ct.pop(), Te(e, !1);
996
+ Ct.pop(), Ie(e, !1);
997
997
  }
998
- function Te(e, r) {
998
+ function Ie(e, r) {
999
999
  var n, a = L;
1000
1000
  (r ? !re.echoes || $t++ && e === L : !$t || --$t && e === L) || queueMicrotask(r ? function(s) {
1001
- ++jt, re.echoes && --re.echoes != 0 || (re.echoes = re.awaits = re.id = 0), Ct.push(L), Te(s, !0);
1002
- }.bind(null, e) : ia), e !== L && (L = e, a === Ne && (Ne.env = an()), ur && (n = Ne.env.Promise, r = e.env, (a.global || e.global) && (Object.defineProperty(b, "Promise", r.PromiseProp), n.all = r.all, n.race = r.race, n.resolve = r.resolve, n.reject = r.reject, r.allSettled && (n.allSettled = r.allSettled), r.any && (n.any = r.any))));
1001
+ ++Gt, re.echoes && --re.echoes != 0 || (re.echoes = re.awaits = re.id = 0), Ct.push(L), Ie(s, !0);
1002
+ }.bind(null, e) : ia), e !== L && (L = e, a === De && (De.env = an()), ur && (n = De.env.Promise, r = e.env, (a.global || e.global) && (Object.defineProperty(b, "Promise", r.PromiseProp), n.all = r.all, n.race = r.race, n.resolve = r.resolve, n.reject = r.reject, r.allSettled && (n.allSettled = r.allSettled), r.any && (n.any = r.any))));
1003
1003
  }
1004
1004
  function an() {
1005
1005
  var e = b.Promise;
1006
1006
  return ur ? { Promise: e, PromiseProp: Object.getOwnPropertyDescriptor(b, "Promise"), all: e.all, race: e.race, allSettled: e.allSettled, any: e.any, resolve: e.resolve, reject: e.reject } : {};
1007
1007
  }
1008
- function Ue(e, r, n, a, s) {
1008
+ function We(e, r, n, a, s) {
1009
1009
  var c = L;
1010
1010
  try {
1011
- return Te(e, !0), r(n, a, s);
1011
+ return Ie(e, !0), r(n, a, s);
1012
1012
  } finally {
1013
- Te(c, !1);
1013
+ Ie(c, !1);
1014
1014
  }
1015
1015
  }
1016
1016
  function sn(e, r, n, a) {
1017
1017
  return typeof e != "function" ? e : function() {
1018
1018
  var s = L;
1019
- n && et(), Te(r, !0);
1019
+ n && et(), Ie(r, !0);
1020
1020
  try {
1021
1021
  return e.apply(this, arguments);
1022
1022
  } finally {
1023
- Te(s, !1), a && queueMicrotask(Ie);
1023
+ Ie(s, !1), a && queueMicrotask(Te);
1024
1024
  }
1025
1025
  };
1026
1026
  }
1027
1027
  function mr(e) {
1028
1028
  Promise === Ke && re.echoes === 0 ? $t === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
1029
1029
  }
1030
- ("" + he).indexOf("[native code]") === -1 && (et = Ie = X);
1031
- var q = M.reject, We = "￿", Se = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", on = "String expected.", tt = [], Mt = "__dbnames", yr = "readonly", br = "readwrite";
1030
+ ("" + he).indexOf("[native code]") === -1 && (et = Te = X);
1031
+ var q = M.reject, Ue = "￿", Se = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", on = "String expected.", tt = [], Mt = "__dbnames", yr = "readonly", br = "readwrite";
1032
1032
  function Fe(e, r) {
1033
1033
  return e ? r ? function() {
1034
1034
  return e.apply(this, arguments) && r.apply(this, arguments);
@@ -1062,8 +1062,8 @@ function Ba() {
1062
1062
  case "Array":
1063
1063
  return (function(s, c) {
1064
1064
  for (var u = s.length, d = c.length, p = u < d ? u : d, m = 0; m < p; ++m) {
1065
- var w = V(s[m], c[m]);
1066
- if (w !== 0) return w;
1065
+ var S = V(s[m], c[m]);
1066
+ if (S !== 0) return S;
1067
1067
  }
1068
1068
  return u === d ? 0 : u < d ? -1 : 1;
1069
1069
  })(e, r);
@@ -1093,7 +1093,7 @@ function Ba() {
1093
1093
  var r = this["@@propmod"];
1094
1094
  if (r.add !== void 0) {
1095
1095
  var n = r.add;
1096
- if (T(n)) return g(g([], T(e) ? e : [], !0), n).sort();
1096
+ if (I(n)) return g(g([], I(e) ? e : [], !0), n).sort();
1097
1097
  if (typeof n == "number") return (Number(e) || 0) + n;
1098
1098
  if (typeof n == "bigint") try {
1099
1099
  return BigInt(e) + n;
@@ -1104,7 +1104,7 @@ function Ba() {
1104
1104
  }
1105
1105
  if (r.remove !== void 0) {
1106
1106
  var a = r.remove;
1107
- if (T(a)) return T(e) ? e.filter(function(s) {
1107
+ if (I(a)) return I(e) ? e.filter(function(s) {
1108
1108
  return !a.includes(s);
1109
1109
  }).sort() : [];
1110
1110
  if (typeof a == "number") return Number(e) - a;
@@ -1121,7 +1121,7 @@ function Ba() {
1121
1121
  this["@@propmod"] = e;
1122
1122
  }
1123
1123
  function fn(e, r) {
1124
- for (var n = I(r), a = n.length, s = !1, c = 0; c < a; ++c) {
1124
+ for (var n = T(r), a = n.length, s = !1, c = 0; c < a; ++c) {
1125
1125
  var u = n[c], d = r[u], p = Ee(e, u);
1126
1126
  d instanceof pt ? (ue(e, u, d.execute(p)), s = !0) : p !== d && (ue(e, u, d), s = !0);
1127
1127
  }
@@ -1129,27 +1129,27 @@ function Ba() {
1129
1129
  }
1130
1130
  var gn = (Q.prototype._trans = function(e, r, n) {
1131
1131
  var a = this._tx || L.trans, s = this.name, c = ye && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(e === "readonly" ? "read" : "write", " ").concat(this.name));
1132
- function u(m, w, h) {
1132
+ function u(m, S, h) {
1133
1133
  if (!h.schema[s]) throw new B.NotFound("Table " + s + " not part of transaction");
1134
1134
  return r(h.idbtrans, h);
1135
1135
  }
1136
1136
  var d = Ze();
1137
1137
  try {
1138
- var p = a && a.db._novip === this.db._novip ? a === L.trans ? a._promise(e, u, n) : De(function() {
1138
+ var p = a && a.db._novip === this.db._novip ? a === L.trans ? a._promise(e, u, n) : Ne(function() {
1139
1139
  return a._promise(e, u, n);
1140
- }, { trans: a, transless: L.transless || L }) : (function m(w, h, O, y) {
1141
- if (w.idbdb && (w._state.openComplete || L.letThrough || w._vip)) {
1142
- var v = w._createTransaction(h, O, w._dbSchema);
1140
+ }, { trans: a, transless: L.transless || L }) : (function m(S, h, _, y) {
1141
+ if (S.idbdb && (S._state.openComplete || L.letThrough || S._vip)) {
1142
+ var v = S._createTransaction(h, _, S._dbSchema);
1143
1143
  try {
1144
- v.create(), w._state.PR1398_maxLoop = 3;
1144
+ v.create(), S._state.PR1398_maxLoop = 3;
1145
1145
  } catch (E) {
1146
- return E.name === ir.InvalidState && w.isOpen() && 0 < --w._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), w.close({ disableAutoOpen: !1 }), w.open().then(function() {
1147
- return m(w, h, O, y);
1146
+ return E.name === ir.InvalidState && S.isOpen() && 0 < --S._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), S.close({ disableAutoOpen: !1 }), S.open().then(function() {
1147
+ return m(S, h, _, y);
1148
1148
  })) : q(E);
1149
1149
  }
1150
- return v._promise(h, function(E, S) {
1151
- return De(function() {
1152
- return L.trans = v, y(E, S, v);
1150
+ return v._promise(h, function(E, O) {
1151
+ return Ne(function() {
1152
+ return L.trans = v, y(E, O, v);
1153
1153
  });
1154
1154
  }).then(function(E) {
1155
1155
  if (h === "readwrite") try {
@@ -1161,13 +1161,13 @@ function Ba() {
1161
1161
  });
1162
1162
  });
1163
1163
  }
1164
- if (w._state.openComplete) return q(new B.DatabaseClosed(w._state.dbOpenError));
1165
- if (!w._state.isBeingOpened) {
1166
- if (!w._state.autoOpen) return q(new B.DatabaseClosed());
1167
- w.open().catch(X);
1164
+ if (S._state.openComplete) return q(new B.DatabaseClosed(S._state.dbOpenError));
1165
+ if (!S._state.isBeingOpened) {
1166
+ if (!S._state.autoOpen) return q(new B.DatabaseClosed());
1167
+ S.open().catch(X);
1168
1168
  }
1169
- return w._state.dbReadyPromise.then(function() {
1170
- return m(w, h, O, y);
1169
+ return S._state.dbReadyPromise.then(function() {
1170
+ return m(S, h, _, y);
1171
1171
  });
1172
1172
  })(this.db, e, [this.name], u);
1173
1173
  return c && (p._consoleTask = c, p = p.catch(function(m) {
@@ -1185,8 +1185,8 @@ function Ba() {
1185
1185
  }).then(r);
1186
1186
  }, Q.prototype.where = function(e) {
1187
1187
  if (typeof e == "string") return new this.db.WhereClause(this, e);
1188
- if (T(e)) return new this.db.WhereClause(this, "[".concat(e.join("+"), "]"));
1189
- var r = I(e);
1188
+ if (I(e)) return new this.db.WhereClause(this, "[".concat(e.join("+"), "]"));
1189
+ var r = T(e);
1190
1190
  if (r.length === 1) return this.where(r[0]).equals(e[r[0]]);
1191
1191
  var n = this.schema.indexes.concat(this.schema.primKey).filter(function(d) {
1192
1192
  if (d.compound && r.every(function(m) {
@@ -1199,7 +1199,7 @@ function Ba() {
1199
1199
  }).sort(function(d, p) {
1200
1200
  return d.keyPath.length - p.keyPath.length;
1201
1201
  })[0];
1202
- if (n && this.db._maxKey !== We) {
1202
+ if (n && this.db._maxKey !== Ue) {
1203
1203
  var c = n.keyPath.slice(0, r.length);
1204
1204
  return this.where(c).equals(c.map(function(p) {
1205
1205
  return e[p];
@@ -1211,14 +1211,14 @@ function Ba() {
1211
1211
  return V(d, p) === 0;
1212
1212
  }
1213
1213
  var u = r.reduce(function(h, p) {
1214
- var m = h[0], w = h[1], h = a[p], O = e[p];
1215
- return [m || h, m || !h ? Fe(w, h && h.multi ? function(y) {
1216
- return y = Ee(y, p), T(y) && y.some(function(v) {
1217
- return s(O, v);
1214
+ var m = h[0], S = h[1], h = a[p], _ = e[p];
1215
+ return [m || h, m || !h ? Fe(S, h && h.multi ? function(y) {
1216
+ return y = Ee(y, p), I(y) && y.some(function(v) {
1217
+ return s(_, v);
1218
1218
  });
1219
1219
  } : function(y) {
1220
- return s(O, Ee(y, p));
1221
- }) : w];
1220
+ return s(_, Ee(y, p));
1221
+ }) : S];
1222
1222
  }, [null, null]), c = u[0], u = u[1];
1223
1223
  return c ? this.where(c.name).equals(e[c.keyPath]).filter(u) : n ? this.filter(u) : this.where(r).equals("");
1224
1224
  }, Q.prototype.filter = function(e) {
@@ -1236,7 +1236,7 @@ function Ba() {
1236
1236
  }, Q.prototype.toCollection = function() {
1237
1237
  return new this.db.Collection(new this.db.WhereClause(this));
1238
1238
  }, Q.prototype.orderBy = function(e) {
1239
- return new this.db.Collection(new this.db.WhereClause(this, T(e) ? "[".concat(e.join("+"), "]") : e));
1239
+ return new this.db.Collection(new this.db.WhereClause(this, I(e) ? "[".concat(e.join("+"), "]") : e));
1240
1240
  }, Q.prototype.reverse = function() {
1241
1241
  return this.toCollection().reverse();
1242
1242
  }, Q.prototype.mapToClass = function(e) {
@@ -1246,10 +1246,10 @@ function Ba() {
1246
1246
  }
1247
1247
  (this.schema.mappedClass = e).prototype instanceof un && ((function(p, m) {
1248
1248
  if (typeof m != "function" && m !== null) throw new TypeError("Class extends value " + String(m) + " is not a constructor or null");
1249
- function w() {
1249
+ function S() {
1250
1250
  this.constructor = p;
1251
1251
  }
1252
- i(p, m), p.prototype = m === null ? Object.create(m) : (w.prototype = m.prototype, new w());
1252
+ i(p, m), p.prototype = m === null ? Object.create(m) : (S.prototype = m.prototype, new S());
1253
1253
  })(s, r = e), Object.defineProperty(s.prototype, "db", { get: function() {
1254
1254
  return n;
1255
1255
  }, enumerable: !1, configurable: !0 }), s.prototype.table = function() {
@@ -1260,12 +1260,12 @@ function Ba() {
1260
1260
  });
1261
1261
  function d(p) {
1262
1262
  if (!p) return p;
1263
- var m, w = Object.create(e.prototype);
1263
+ var m, S = Object.create(e.prototype);
1264
1264
  for (m in p) if (!c.has(m)) try {
1265
- w[m] = p[m];
1265
+ S[m] = p[m];
1266
1266
  } catch {
1267
1267
  }
1268
- return w;
1268
+ return S;
1269
1269
  }
1270
1270
  return this.schema.readHook && this.hook.reading.unsubscribe(this.schema.readHook), this.schema.readHook = d, this.hook("reading", d), e;
1271
1271
  }, Q.prototype.defineClass = function() {
@@ -1296,7 +1296,7 @@ function Ba() {
1296
1296
  });
1297
1297
  });
1298
1298
  }, Q.prototype.update = function(e, r) {
1299
- return typeof e != "object" || T(e) ? this.where(":id").equals(e).modify(r) : (e = Ee(e, this.schema.primKey.keyPath), e === void 0 ? q(new B.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(e).modify(r));
1299
+ return typeof e != "object" || I(e) ? this.where(":id").equals(e).modify(r) : (e = Ee(e, this.schema.primKey.keyPath), e === void 0 ? q(new B.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(e).modify(r));
1300
1300
  }, Q.prototype.put = function(e, r) {
1301
1301
  var n = this, a = this.schema.primKey, s = a.auto, c = a.keyPath, u = e;
1302
1302
  return c && s && (u = Kt(c)(e)), this._trans("readwrite", function(d) {
@@ -1345,8 +1345,8 @@ function Ba() {
1345
1345
  if (s && s.length !== e.length) throw new B.InvalidArgument("Arguments objects and keys must have the same length");
1346
1346
  var p = e.length, m = m && d ? e.map(Kt(m)) : e;
1347
1347
  return a.core.mutate({ trans: u, type: "add", keys: s, values: m, wantResults: c }).then(function(v) {
1348
- var h = v.numFailures, O = v.results, y = v.lastResult, v = v.failures;
1349
- if (h === 0) return c ? O : y;
1348
+ var h = v.numFailures, _ = v.results, y = v.lastResult, v = v.failures;
1349
+ if (h === 0) return c ? _ : y;
1350
1350
  throw new Je("".concat(a.name, ".bulkAdd(): ").concat(h, " of ").concat(p, " operations failed"), v);
1351
1351
  });
1352
1352
  });
@@ -1358,8 +1358,8 @@ function Ba() {
1358
1358
  if (s && s.length !== e.length) throw new B.InvalidArgument("Arguments objects and keys must have the same length");
1359
1359
  var p = e.length, m = m && d ? e.map(Kt(m)) : e;
1360
1360
  return a.core.mutate({ trans: u, type: "put", keys: s, values: m, wantResults: c }).then(function(v) {
1361
- var h = v.numFailures, O = v.results, y = v.lastResult, v = v.failures;
1362
- if (h === 0) return c ? O : y;
1361
+ var h = v.numFailures, _ = v.results, y = v.lastResult, v = v.failures;
1362
+ if (h === 0) return c ? _ : y;
1363
1363
  throw new Je("".concat(a.name, ".bulkPut(): ").concat(h, " of ").concat(p, " operations failed"), v);
1364
1364
  });
1365
1365
  });
@@ -1372,27 +1372,27 @@ function Ba() {
1372
1372
  return this._trans("readwrite", function(u) {
1373
1373
  return n.getMany({ trans: u, keys: a, cache: "clone" }).then(function(d) {
1374
1374
  var p = [], m = [];
1375
- e.forEach(function(h, O) {
1376
- var y = h.key, v = h.changes, E = d[O];
1375
+ e.forEach(function(h, _) {
1376
+ var y = h.key, v = h.changes, E = d[_];
1377
1377
  if (E) {
1378
- for (var S = 0, A = Object.keys(v); S < A.length; S++) {
1379
- var P = A[S], N = v[P];
1378
+ for (var O = 0, A = Object.keys(v); O < A.length; O++) {
1379
+ var P = A[O], D = v[P];
1380
1380
  if (P === r.schema.primKey.keyPath) {
1381
- if (V(N, y) !== 0) throw new B.Constraint("Cannot update primary key in bulkUpdate()");
1382
- } else ue(E, P, N);
1381
+ if (V(D, y) !== 0) throw new B.Constraint("Cannot update primary key in bulkUpdate()");
1382
+ } else ue(E, P, D);
1383
1383
  }
1384
- c.push(O), p.push(y), m.push(E);
1384
+ c.push(_), p.push(y), m.push(E);
1385
1385
  }
1386
1386
  });
1387
- var w = p.length;
1387
+ var S = p.length;
1388
1388
  return n.mutate({ trans: u, type: "put", keys: p, values: m, updates: { keys: a, changeSpecs: s } }).then(function(h) {
1389
- var O = h.numFailures, y = h.failures;
1390
- if (O === 0) return w;
1389
+ var _ = h.numFailures, y = h.failures;
1390
+ if (_ === 0) return S;
1391
1391
  for (var v = 0, E = Object.keys(y); v < E.length; v++) {
1392
- var S, A = E[v], P = c[Number(A)];
1393
- P != null && (S = y[A], delete y[A], y[P] = S);
1392
+ var O, A = E[v], P = c[Number(A)];
1393
+ P != null && (O = y[A], delete y[A], y[P] = O);
1394
1394
  }
1395
- throw new Je("".concat(r.name, ".bulkUpdate(): ").concat(O, " of ").concat(w, " operations failed"), y);
1395
+ throw new Je("".concat(r.name, ".bulkUpdate(): ").concat(_, " of ").concat(S, " operations failed"), y);
1396
1396
  });
1397
1397
  });
1398
1398
  });
@@ -1426,25 +1426,25 @@ function Ba() {
1426
1426
  if (typeof u != "object") {
1427
1427
  var m;
1428
1428
  d = d || ra;
1429
- var w = { subscribers: [], fire: p = p || X, subscribe: function(h) {
1430
- w.subscribers.indexOf(h) === -1 && (w.subscribers.push(h), w.fire = d(w.fire, h));
1429
+ var S = { subscribers: [], fire: p = p || X, subscribe: function(h) {
1430
+ S.subscribers.indexOf(h) === -1 && (S.subscribers.push(h), S.fire = d(S.fire, h));
1431
1431
  }, unsubscribe: function(h) {
1432
- w.subscribers = w.subscribers.filter(function(O) {
1433
- return O !== h;
1434
- }), w.fire = w.subscribers.reduce(d, p);
1432
+ S.subscribers = S.subscribers.filter(function(_) {
1433
+ return _ !== h;
1434
+ }), S.fire = S.subscribers.reduce(d, p);
1435
1435
  } };
1436
- return n[u] = r[u] = w;
1436
+ return n[u] = r[u] = S;
1437
1437
  }
1438
- I(m = u).forEach(function(h) {
1439
- var O = m[h];
1440
- if (T(O)) c(h, m[h][0], m[h][1]);
1438
+ T(m = u).forEach(function(h) {
1439
+ var _ = m[h];
1440
+ if (I(_)) c(h, m[h][0], m[h][1]);
1441
1441
  else {
1442
- if (O !== "asap") throw new B.InvalidArgument("Invalid event config");
1442
+ if (_ !== "asap") throw new B.InvalidArgument("Invalid event config");
1443
1443
  var y = c(h, lt, function() {
1444
1444
  for (var v = arguments.length, E = new Array(v); v--; ) E[v] = arguments[v];
1445
- y.subscribers.forEach(function(S) {
1445
+ y.subscribers.forEach(function(O) {
1446
1446
  Yr(function() {
1447
- S.apply(null, E);
1447
+ O.apply(null, E);
1448
1448
  });
1449
1449
  });
1450
1450
  });
@@ -1477,16 +1477,16 @@ function Ba() {
1477
1477
  var a = Bt(e, r.schema);
1478
1478
  return r.openCursor({ trans: n, values: !e.keysOnly, reverse: e.dir === "prev", unique: !!e.unique, query: { index: a, range: e.range } });
1479
1479
  }
1480
- function Ut(e, r, n, a) {
1480
+ function Wt(e, r, n, a) {
1481
1481
  var s = e.replayFilter ? Fe(e.filter, e.replayFilter()) : e.filter;
1482
1482
  if (e.or) {
1483
1483
  var c = {}, u = function(d, p, m) {
1484
- var w, h;
1485
- s && !s(p, m, function(O) {
1486
- return p.stop(O);
1487
- }, function(O) {
1488
- return p.fail(O);
1489
- }) || ((h = "" + (w = p.primaryKey)) == "[object ArrayBuffer]" && (h = "" + new Uint8Array(w)), ae(c, h) || (c[h] = !0, r(d, p, m)));
1484
+ var S, h;
1485
+ s && !s(p, m, function(_) {
1486
+ return p.stop(_);
1487
+ }, function(_) {
1488
+ return p.fail(_);
1489
+ }) || ((h = "" + (S = p.primaryKey)) == "[object ArrayBuffer]" && (h = "" + new Uint8Array(S)), ae(c, h) || (c[h] = !0, r(d, p, m)));
1490
1490
  };
1491
1491
  return Promise.all([e.or._iterate(u, n), mn(pn(e, a, n), e.algorithm, u, !e.keysOnly && e.valueMapper)]);
1492
1492
  }
@@ -1523,7 +1523,7 @@ function Ba() {
1523
1523
  var r = this._ctx;
1524
1524
  r.algorithm = Fe(r.algorithm, e);
1525
1525
  }, z.prototype._iterate = function(e, r) {
1526
- return Ut(this._ctx, e, r, this._ctx.table.core);
1526
+ return Wt(this._ctx, e, r, this._ctx.table.core);
1527
1527
  }, z.prototype.clone = function(e) {
1528
1528
  var r = Object.create(this.constructor.prototype), n = Object.create(this._ctx);
1529
1529
  return e && te(n, e), r._ctx = n, r;
@@ -1532,7 +1532,7 @@ function Ba() {
1532
1532
  }, z.prototype.each = function(e) {
1533
1533
  var r = this._ctx;
1534
1534
  return this._read(function(n) {
1535
- return Ut(r, e, n, r.table.core);
1535
+ return Wt(r, e, n, r.table.core);
1536
1536
  });
1537
1537
  }, z.prototype.count = function(e) {
1538
1538
  var r = this;
@@ -1542,7 +1542,7 @@ function Ba() {
1542
1542
  return Math.min(u, a.limit);
1543
1543
  });
1544
1544
  var c = 0;
1545
- return Ut(a, function() {
1545
+ return Wt(a, function() {
1546
1546
  return ++c, !1;
1547
1547
  }, n, s).then(function() {
1548
1548
  return c;
@@ -1571,7 +1571,7 @@ function Ba() {
1571
1571
  });
1572
1572
  }
1573
1573
  var u = [];
1574
- return Ut(a, function(d) {
1574
+ return Wt(a, function(d) {
1575
1575
  return u.push(d);
1576
1576
  }, n, a.table.core).then(function() {
1577
1577
  return u;
@@ -1681,45 +1681,45 @@ function Ba() {
1681
1681
  return fn(E, e);
1682
1682
  }, c = n.table.core, m = c.schema.primaryKey, u = m.outbound, d = m.extractKey, p = 200, m = r.db._options.modifyChunkSize;
1683
1683
  m && (p = typeof m == "object" ? m[c.name] || m["*"] || 200 : m);
1684
- function w(E, P) {
1684
+ function S(E, P) {
1685
1685
  var A = P.failures, P = P.numFailures;
1686
- O += E - P;
1687
- for (var N = 0, D = I(A); N < D.length; N++) {
1688
- var x = D[N];
1686
+ _ += E - P;
1687
+ for (var D = 0, N = T(A); D < N.length; D++) {
1688
+ var x = N[D];
1689
1689
  h.push(A[x]);
1690
1690
  }
1691
1691
  }
1692
- var h = [], O = 0, y = [], v = e === yn;
1692
+ var h = [], _ = 0, y = [], v = e === yn;
1693
1693
  return r.clone().primaryKeys().then(function(E) {
1694
- function S(P) {
1695
- var N = Math.min(p, E.length - P), D = E.slice(P, P + N);
1696
- return (v ? Promise.resolve([]) : c.getMany({ trans: a, keys: D, cache: "immutable" })).then(function(x) {
1697
- var $ = [], R = [], k = u ? [] : null, j = v ? D : [];
1698
- if (!v) for (var C = 0; C < N; ++C) {
1699
- var K = x[C], W = { value: $e(K), primKey: E[P + C] };
1700
- s.call(W, W.value, W) !== !1 && (W.value == null ? j.push(E[P + C]) : u || V(d(K), d(W.value)) === 0 ? (R.push(W.value), u && k.push(E[P + C])) : (j.push(E[P + C]), $.push(W.value)));
1694
+ function O(P) {
1695
+ var D = Math.min(p, E.length - P), N = E.slice(P, P + D);
1696
+ return (v ? Promise.resolve([]) : c.getMany({ trans: a, keys: N, cache: "immutable" })).then(function(x) {
1697
+ var $ = [], R = [], k = u ? [] : null, G = v ? N : [];
1698
+ if (!v) for (var C = 0; C < D; ++C) {
1699
+ var K = x[C], U = { value: $e(K), primKey: E[P + C] };
1700
+ s.call(U, U.value, U) !== !1 && (U.value == null ? G.push(E[P + C]) : u || V(d(K), d(U.value)) === 0 ? (R.push(U.value), u && k.push(E[P + C])) : (G.push(E[P + C]), $.push(U.value)));
1701
1701
  }
1702
1702
  return Promise.resolve(0 < $.length && c.mutate({ trans: a, type: "add", values: $ }).then(function(F) {
1703
- for (var H in F.failures) j.splice(parseInt(H), 1);
1704
- w($.length, F);
1703
+ for (var H in F.failures) G.splice(parseInt(H), 1);
1704
+ S($.length, F);
1705
1705
  })).then(function() {
1706
1706
  return (0 < R.length || A && typeof e == "object") && c.mutate({ trans: a, type: "put", keys: k, values: R, criteria: A, changeSpec: typeof e != "function" && e, isAdditionalChunk: 0 < P }).then(function(F) {
1707
- return w(R.length, F);
1707
+ return S(R.length, F);
1708
1708
  });
1709
1709
  }).then(function() {
1710
- return (0 < j.length || A && v) && c.mutate({ trans: a, type: "delete", keys: j, criteria: A, isAdditionalChunk: 0 < P }).then(function(F) {
1711
- return Lt(n.table, j, F);
1710
+ return (0 < G.length || A && v) && c.mutate({ trans: a, type: "delete", keys: G, criteria: A, isAdditionalChunk: 0 < P }).then(function(F) {
1711
+ return Lt(n.table, G, F);
1712
1712
  }).then(function(F) {
1713
- return w(j.length, F);
1713
+ return S(G.length, F);
1714
1714
  });
1715
1715
  }).then(function() {
1716
- return E.length > P + N && S(P + p);
1716
+ return E.length > P + D && O(P + p);
1717
1717
  });
1718
1718
  });
1719
1719
  }
1720
1720
  var A = rt(n) && n.limit === 1 / 0 && (typeof e != "function" || v) && { index: n.index, range: n.range };
1721
- return S(0).then(function() {
1722
- if (0 < h.length) throw new Dt("Error modifying one or more objects", h, O, y);
1721
+ return O(0).then(function() {
1722
+ if (0 < h.length) throw new Nt("Error modifying one or more objects", h, _, y);
1723
1723
  return E.length;
1724
1724
  });
1725
1725
  });
@@ -1731,7 +1731,7 @@ function Ba() {
1731
1731
  return e.table.core.count({ trans: n, query: { index: a, range: s } }).then(function(c) {
1732
1732
  return e.table.core.mutate({ trans: n, type: "deleteRange", range: s }).then(function(p) {
1733
1733
  var d = p.failures, p = p.numFailures;
1734
- if (p) throw new Dt("Could not delete some values", Object.keys(d).map(function(m) {
1734
+ if (p) throw new Nt("Could not delete some values", Object.keys(d).map(function(m) {
1735
1735
  return d[m];
1736
1736
  }), c - p);
1737
1737
  return c - p;
@@ -1758,57 +1758,57 @@ function Ba() {
1758
1758
  return bn("");
1759
1759
  }).limit(0);
1760
1760
  }
1761
- function Wt(e, r, n, a) {
1762
- var s, c, u, d, p, m, w, h = n.length;
1761
+ function Ut(e, r, n, a) {
1762
+ var s, c, u, d, p, m, S, h = n.length;
1763
1763
  if (!n.every(function(v) {
1764
1764
  return typeof v == "string";
1765
1765
  })) return le(e, on);
1766
- function O(v) {
1767
- s = v === "next" ? function(S) {
1768
- return S.toUpperCase();
1769
- } : function(S) {
1770
- return S.toLowerCase();
1771
- }, c = v === "next" ? function(S) {
1772
- return S.toLowerCase();
1773
- } : function(S) {
1774
- return S.toUpperCase();
1766
+ function _(v) {
1767
+ s = v === "next" ? function(O) {
1768
+ return O.toUpperCase();
1769
+ } : function(O) {
1770
+ return O.toLowerCase();
1771
+ }, c = v === "next" ? function(O) {
1772
+ return O.toLowerCase();
1773
+ } : function(O) {
1774
+ return O.toUpperCase();
1775
1775
  }, u = v === "next" ? ua : la;
1776
- var E = n.map(function(S) {
1777
- return { lower: c(S), upper: s(S) };
1778
- }).sort(function(S, A) {
1779
- return u(S.lower, A.lower);
1776
+ var E = n.map(function(O) {
1777
+ return { lower: c(O), upper: s(O) };
1778
+ }).sort(function(O, A) {
1779
+ return u(O.lower, A.lower);
1780
1780
  });
1781
- d = E.map(function(S) {
1782
- return S.upper;
1783
- }), p = E.map(function(S) {
1784
- return S.lower;
1785
- }), w = (m = v) === "next" ? "" : a;
1781
+ d = E.map(function(O) {
1782
+ return O.upper;
1783
+ }), p = E.map(function(O) {
1784
+ return O.lower;
1785
+ }), S = (m = v) === "next" ? "" : a;
1786
1786
  }
1787
- O("next"), e = new e.Collection(e, function() {
1787
+ _("next"), e = new e.Collection(e, function() {
1788
1788
  return Re(d[0], p[h - 1] + a);
1789
1789
  }), e._ondirectionchange = function(v) {
1790
- O(v);
1790
+ _(v);
1791
1791
  };
1792
1792
  var y = 0;
1793
- return e._addAlgorithm(function(v, E, S) {
1793
+ return e._addAlgorithm(function(v, E, O) {
1794
1794
  var A = v.key;
1795
1795
  if (typeof A != "string") return !1;
1796
1796
  var P = c(A);
1797
1797
  if (r(P, p, y)) return !0;
1798
- for (var N = null, D = y; D < h; ++D) {
1799
- var x = (function($, R, k, j, C, K) {
1800
- for (var W = Math.min($.length, j.length), F = -1, H = 0; H < W; ++H) {
1798
+ for (var D = null, N = y; N < h; ++N) {
1799
+ var x = (function($, R, k, G, C, K) {
1800
+ for (var U = Math.min($.length, G.length), F = -1, H = 0; H < U; ++H) {
1801
1801
  var de = R[H];
1802
- if (de !== j[H]) return C($[H], k[H]) < 0 ? $.substr(0, H) + k[H] + k.substr(H + 1) : C($[H], j[H]) < 0 ? $.substr(0, H) + j[H] + k.substr(H + 1) : 0 <= F ? $.substr(0, F) + R[F] + k.substr(F + 1) : null;
1802
+ if (de !== G[H]) return C($[H], k[H]) < 0 ? $.substr(0, H) + k[H] + k.substr(H + 1) : C($[H], G[H]) < 0 ? $.substr(0, H) + G[H] + k.substr(H + 1) : 0 <= F ? $.substr(0, F) + R[F] + k.substr(F + 1) : null;
1803
1803
  C($[H], de) < 0 && (F = H);
1804
1804
  }
1805
- return W < j.length && K === "next" ? $ + k.substr($.length) : W < $.length && K === "prev" ? $.substr(0, k.length) : F < 0 ? null : $.substr(0, F) + j[F] + k.substr(F + 1);
1806
- })(A, P, d[D], p[D], u, m);
1807
- x === null && N === null ? y = D + 1 : (N === null || 0 < u(N, x)) && (N = x);
1805
+ return U < G.length && K === "next" ? $ + k.substr($.length) : U < $.length && K === "prev" ? $.substr(0, k.length) : F < 0 ? null : $.substr(0, F) + G[F] + k.substr(F + 1);
1806
+ })(A, P, d[N], p[N], u, m);
1807
+ x === null && D === null ? y = N + 1 : (D === null || 0 < u(D, x)) && (D = x);
1808
1808
  }
1809
- return E(N !== null ? function() {
1810
- v.continue(N + w);
1811
- } : S), !1;
1809
+ return E(D !== null ? function() {
1810
+ v.continue(D + S);
1811
+ } : O), !1;
1812
1812
  }), e;
1813
1813
  }
1814
1814
  function Re(e, r, n, a) {
@@ -1849,27 +1849,27 @@ function Ba() {
1849
1849
  return Re(void 0, e);
1850
1850
  });
1851
1851
  }, ne.prototype.startsWith = function(e) {
1852
- return typeof e != "string" ? le(this, on) : this.between(e, e + We, !0, !0);
1852
+ return typeof e != "string" ? le(this, on) : this.between(e, e + Ue, !0, !0);
1853
1853
  }, ne.prototype.startsWithIgnoreCase = function(e) {
1854
- return e === "" ? this.startsWith(e) : Wt(this, function(r, n) {
1854
+ return e === "" ? this.startsWith(e) : Ut(this, function(r, n) {
1855
1855
  return r.indexOf(n[0]) === 0;
1856
- }, [e], We);
1856
+ }, [e], Ue);
1857
1857
  }, ne.prototype.equalsIgnoreCase = function(e) {
1858
- return Wt(this, function(r, n) {
1858
+ return Ut(this, function(r, n) {
1859
1859
  return r === n[0];
1860
1860
  }, [e], "");
1861
1861
  }, ne.prototype.anyOfIgnoreCase = function() {
1862
1862
  var e = we.apply(Xe, arguments);
1863
- return e.length === 0 ? nt(this) : Wt(this, function(r, n) {
1863
+ return e.length === 0 ? nt(this) : Ut(this, function(r, n) {
1864
1864
  return n.indexOf(r) !== -1;
1865
1865
  }, e, "");
1866
1866
  }, ne.prototype.startsWithAnyOfIgnoreCase = function() {
1867
1867
  var e = we.apply(Xe, arguments);
1868
- return e.length === 0 ? nt(this) : Wt(this, function(r, n) {
1868
+ return e.length === 0 ? nt(this) : Ut(this, function(r, n) {
1869
1869
  return n.some(function(a) {
1870
1870
  return r.indexOf(a) === 0;
1871
1871
  });
1872
- }, e, We);
1872
+ }, e, Ue);
1873
1873
  }, ne.prototype.anyOf = function() {
1874
1874
  var e = this, r = we.apply(Xe, arguments), n = this._cmp;
1875
1875
  try {
@@ -1911,41 +1911,41 @@ function Ba() {
1911
1911
  if (!A.every(function(P) {
1912
1912
  return P[0] !== void 0 && P[1] !== void 0 && s(P[0], P[1]) <= 0;
1913
1913
  })) return le(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", B.InvalidArgument);
1914
- var p = !r || r.includeLowers !== !1, m = r && r.includeUppers === !0, w, h = s;
1915
- function O(P, N) {
1916
- return h(P[0], N[0]);
1914
+ var p = !r || r.includeLowers !== !1, m = r && r.includeUppers === !0, S, h = s;
1915
+ function _(P, D) {
1916
+ return h(P[0], D[0]);
1917
1917
  }
1918
1918
  try {
1919
- (w = A.reduce(function(P, N) {
1920
- for (var D = 0, x = P.length; D < x; ++D) {
1921
- var $ = P[D];
1922
- if (a(N[0], $[1]) < 0 && 0 < a(N[1], $[0])) {
1923
- $[0] = u($[0], N[0]), $[1] = d($[1], N[1]);
1919
+ (S = A.reduce(function(P, D) {
1920
+ for (var N = 0, x = P.length; N < x; ++N) {
1921
+ var $ = P[N];
1922
+ if (a(D[0], $[1]) < 0 && 0 < a(D[1], $[0])) {
1923
+ $[0] = u($[0], D[0]), $[1] = d($[1], D[1]);
1924
1924
  break;
1925
1925
  }
1926
1926
  }
1927
- return D === x && P.push(N), P;
1928
- }, [])).sort(O);
1927
+ return N === x && P.push(D), P;
1928
+ }, [])).sort(_);
1929
1929
  } catch {
1930
1930
  return le(this, Se);
1931
1931
  }
1932
1932
  var y = 0, v = m ? function(P) {
1933
- return 0 < s(P, w[y][1]);
1933
+ return 0 < s(P, S[y][1]);
1934
1934
  } : function(P) {
1935
- return 0 <= s(P, w[y][1]);
1935
+ return 0 <= s(P, S[y][1]);
1936
1936
  }, E = p ? function(P) {
1937
- return 0 < c(P, w[y][0]);
1937
+ return 0 < c(P, S[y][0]);
1938
1938
  } : function(P) {
1939
- return 0 <= c(P, w[y][0]);
1940
- }, S = v, A = new this.Collection(this, function() {
1941
- return Re(w[0][0], w[w.length - 1][1], !p, !m);
1939
+ return 0 <= c(P, S[y][0]);
1940
+ }, O = v, A = new this.Collection(this, function() {
1941
+ return Re(S[0][0], S[S.length - 1][1], !p, !m);
1942
1942
  });
1943
1943
  return A._ondirectionchange = function(P) {
1944
- h = P === "next" ? (S = v, s) : (S = E, c), w.sort(O);
1945
- }, A._addAlgorithm(function(P, N, D) {
1946
- for (var x, $ = P.key; S($); ) if (++y === w.length) return N(D), !1;
1947
- return !v(x = $) && !E(x) || (n._cmp($, w[y][1]) === 0 || n._cmp($, w[y][0]) === 0 || N(function() {
1948
- h === s ? P.continue(w[y][0]) : P.continue(w[y][1]);
1944
+ h = P === "next" ? (O = v, s) : (O = E, c), S.sort(_);
1945
+ }, A._addAlgorithm(function(P, D, N) {
1946
+ for (var x, $ = P.key; O($); ) if (++y === S.length) return D(N), !1;
1947
+ return !v(x = $) && !E(x) || (n._cmp($, S[y][1]) === 0 || n._cmp($, S[y][0]) === 0 || D(function() {
1948
+ h === s ? P.continue(S[y][0]) : P.continue(S[y][1]);
1949
1949
  }), !1);
1950
1950
  }), A;
1951
1951
  }, ne.prototype.startsWithAnyOf = function() {
@@ -1953,7 +1953,7 @@ function Ba() {
1953
1953
  return e.every(function(r) {
1954
1954
  return typeof r == "string";
1955
1955
  }) ? e.length === 0 ? nt(this) : this.inAnyRange(e.map(function(r) {
1956
- return [r, r + We];
1956
+ return [r, r + Ue];
1957
1957
  })) : le(this, "startsWithAnyOf() only works with strings");
1958
1958
  }, ne);
1959
1959
  function ne() {
@@ -1972,7 +1972,7 @@ function Ba() {
1972
1972
  if (ct(!L.global), --this._reculock == 0) for (L.global || (L.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
1973
1973
  var e = this._blockedFuncs.shift();
1974
1974
  try {
1975
- Ue(e[1], e[0]);
1975
+ We(e[1], e[0]);
1976
1976
  } catch {
1977
1977
  }
1978
1978
  }
@@ -2008,7 +2008,7 @@ function Ba() {
2008
2008
  a._promise(e, r, n).then(c, u);
2009
2009
  }, L]);
2010
2010
  });
2011
- if (n) return De(function() {
2011
+ if (n) return Ne(function() {
2012
2012
  var c = new M(function(u, d) {
2013
2013
  a._lock();
2014
2014
  var p = r(u, d, a);
@@ -2075,8 +2075,8 @@ function Ba() {
2075
2075
  }, [[]];
2076
2076
  } catch {
2077
2077
  return Et = function() {
2078
- return We;
2079
- }, We;
2078
+ return Ue;
2079
+ }, Ue;
2080
2080
  }
2081
2081
  };
2082
2082
  function _r(e) {
@@ -2098,144 +2098,144 @@ function Ba() {
2098
2098
  return e == null ? ":id" : typeof e == "string" ? e : "[".concat(e.join("+"), "]");
2099
2099
  }
2100
2100
  function fa(e, r, p) {
2101
- function a(S) {
2102
- if (S.type === 3) return null;
2103
- if (S.type === 4) throw new Error("Cannot convert never type to IDBKeyRange");
2104
- var y = S.lower, v = S.upper, E = S.lowerOpen, S = S.upperOpen;
2105
- return y === void 0 ? v === void 0 ? null : r.upperBound(v, !!S) : v === void 0 ? r.lowerBound(y, !!E) : r.bound(y, v, !!E, !!S);
2101
+ function a(O) {
2102
+ if (O.type === 3) return null;
2103
+ if (O.type === 4) throw new Error("Cannot convert never type to IDBKeyRange");
2104
+ var y = O.lower, v = O.upper, E = O.lowerOpen, O = O.upperOpen;
2105
+ return y === void 0 ? v === void 0 ? null : r.upperBound(v, !!O) : v === void 0 ? r.lowerBound(y, !!E) : r.bound(y, v, !!E, !!O);
2106
2106
  }
2107
- function s(O) {
2108
- var y, v = O.name;
2109
- return { name: v, schema: O, mutate: function(E) {
2110
- var S = E.trans, A = E.type, P = E.keys, N = E.values, D = E.range;
2107
+ function s(_) {
2108
+ var y, v = _.name;
2109
+ return { name: v, schema: _, mutate: function(E) {
2110
+ var O = E.trans, A = E.type, P = E.keys, D = E.values, N = E.range;
2111
2111
  return new Promise(function(x, $) {
2112
2112
  x = Z(x);
2113
- var R = S.objectStore(v), k = R.keyPath == null, j = A === "put" || A === "add";
2114
- if (!j && A !== "delete" && A !== "deleteRange") throw new Error("Invalid operation type: " + A);
2115
- var C, K = (P || N || { length: 1 }).length;
2116
- if (P && N && P.length !== N.length) throw new Error("Given keys array must have same length as given values array.");
2113
+ var R = O.objectStore(v), k = R.keyPath == null, G = A === "put" || A === "add";
2114
+ if (!G && A !== "delete" && A !== "deleteRange") throw new Error("Invalid operation type: " + A);
2115
+ var C, K = (P || D || { length: 1 }).length;
2116
+ if (P && D && P.length !== D.length) throw new Error("Given keys array must have same length as given values array.");
2117
2117
  if (K === 0) return x({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
2118
- function W(ce) {
2118
+ function U(ce) {
2119
2119
  ++de, bt(ce);
2120
2120
  }
2121
2121
  var F = [], H = [], de = 0;
2122
2122
  if (A === "deleteRange") {
2123
- if (D.type === 4) return x({ numFailures: de, failures: H, results: [], lastResult: void 0 });
2124
- D.type === 3 ? F.push(C = R.clear()) : F.push(C = R.delete(a(D)));
2123
+ if (N.type === 4) return x({ numFailures: de, failures: H, results: [], lastResult: void 0 });
2124
+ N.type === 3 ? F.push(C = R.clear()) : F.push(C = R.delete(a(N)));
2125
2125
  } else {
2126
- var k = j ? k ? [N, P] : [N, null] : [P, null], U = k[0], oe = k[1];
2127
- if (j) for (var ie = 0; ie < K; ++ie) F.push(C = oe && oe[ie] !== void 0 ? R[A](U[ie], oe[ie]) : R[A](U[ie])), C.onerror = W;
2128
- else for (ie = 0; ie < K; ++ie) F.push(C = R[A](U[ie])), C.onerror = W;
2126
+ var k = G ? k ? [D, P] : [D, null] : [P, null], W = k[0], oe = k[1];
2127
+ if (G) for (var ie = 0; ie < K; ++ie) F.push(C = oe && oe[ie] !== void 0 ? R[A](W[ie], oe[ie]) : R[A](W[ie])), C.onerror = U;
2128
+ else for (ie = 0; ie < K; ++ie) F.push(C = R[A](W[ie])), C.onerror = U;
2129
2129
  }
2130
2130
  function tr(ce) {
2131
- ce = ce.target.result, F.forEach(function(ze, Ur) {
2132
- return ze.error != null && (H[Ur] = ze.error);
2131
+ ce = ce.target.result, F.forEach(function(ze, Wr) {
2132
+ return ze.error != null && (H[Wr] = ze.error);
2133
2133
  }), x({ numFailures: de, failures: H, results: A === "delete" ? P : F.map(function(ze) {
2134
2134
  return ze.result;
2135
2135
  }), lastResult: ce });
2136
2136
  }
2137
2137
  C.onerror = function(ce) {
2138
- W(ce), tr(ce);
2138
+ U(ce), tr(ce);
2139
2139
  }, C.onsuccess = tr;
2140
2140
  });
2141
2141
  }, getMany: function(E) {
2142
- var S = E.trans, A = E.keys;
2143
- return new Promise(function(P, N) {
2142
+ var O = E.trans, A = E.keys;
2143
+ return new Promise(function(P, D) {
2144
2144
  P = Z(P);
2145
- for (var D, x = S.objectStore(v), $ = A.length, R = new Array($), k = 0, j = 0, C = function(F) {
2146
- F = F.target, R[F._pos] = F.result, ++j === k && P(R);
2147
- }, K = be(N), W = 0; W < $; ++W) A[W] != null && ((D = x.get(A[W]))._pos = W, D.onsuccess = C, D.onerror = K, ++k);
2145
+ for (var N, x = O.objectStore(v), $ = A.length, R = new Array($), k = 0, G = 0, C = function(F) {
2146
+ F = F.target, R[F._pos] = F.result, ++G === k && P(R);
2147
+ }, K = be(D), U = 0; U < $; ++U) A[U] != null && ((N = x.get(A[U]))._pos = U, N.onsuccess = C, N.onerror = K, ++k);
2148
2148
  k === 0 && P(R);
2149
2149
  });
2150
2150
  }, get: function(E) {
2151
- var S = E.trans, A = E.key;
2152
- return new Promise(function(P, N) {
2151
+ var O = E.trans, A = E.key;
2152
+ return new Promise(function(P, D) {
2153
2153
  P = Z(P);
2154
- var D = S.objectStore(v).get(A);
2155
- D.onsuccess = function(x) {
2154
+ var N = O.objectStore(v).get(A);
2155
+ N.onsuccess = function(x) {
2156
2156
  return P(x.target.result);
2157
- }, D.onerror = be(N);
2157
+ }, N.onerror = be(D);
2158
2158
  });
2159
2159
  }, query: (y = m, function(E) {
2160
- return new Promise(function(S, A) {
2161
- S = Z(S);
2162
- var P, N, D, k = E.trans, x = E.values, $ = E.limit, C = E.query, R = $ === 1 / 0 ? void 0 : $, j = C.index, C = C.range, k = k.objectStore(v), j = j.isPrimaryKey ? k : k.index(j.name), C = a(C);
2163
- if ($ === 0) return S({ result: [] });
2164
- y ? ((R = x ? j.getAll(C, R) : j.getAllKeys(C, R)).onsuccess = function(K) {
2165
- return S({ result: K.target.result });
2166
- }, R.onerror = be(A)) : (P = 0, N = !x && "openKeyCursor" in j ? j.openKeyCursor(C) : j.openCursor(C), D = [], N.onsuccess = function(K) {
2167
- var W = N.result;
2168
- return W ? (D.push(x ? W.value : W.primaryKey), ++P === $ ? S({ result: D }) : void W.continue()) : S({ result: D });
2169
- }, N.onerror = be(A));
2160
+ return new Promise(function(O, A) {
2161
+ O = Z(O);
2162
+ var P, D, N, k = E.trans, x = E.values, $ = E.limit, C = E.query, R = $ === 1 / 0 ? void 0 : $, G = C.index, C = C.range, k = k.objectStore(v), G = G.isPrimaryKey ? k : k.index(G.name), C = a(C);
2163
+ if ($ === 0) return O({ result: [] });
2164
+ y ? ((R = x ? G.getAll(C, R) : G.getAllKeys(C, R)).onsuccess = function(K) {
2165
+ return O({ result: K.target.result });
2166
+ }, R.onerror = be(A)) : (P = 0, D = !x && "openKeyCursor" in G ? G.openKeyCursor(C) : G.openCursor(C), N = [], D.onsuccess = function(K) {
2167
+ var U = D.result;
2168
+ return U ? (N.push(x ? U.value : U.primaryKey), ++P === $ ? O({ result: N }) : void U.continue()) : O({ result: N });
2169
+ }, D.onerror = be(A));
2170
2170
  });
2171
2171
  }), openCursor: function(E) {
2172
- var S = E.trans, A = E.values, P = E.query, N = E.reverse, D = E.unique;
2172
+ var O = E.trans, A = E.values, P = E.query, D = E.reverse, N = E.unique;
2173
2173
  return new Promise(function(x, $) {
2174
2174
  x = Z(x);
2175
- var j = P.index, R = P.range, k = S.objectStore(v), k = j.isPrimaryKey ? k : k.index(j.name), j = N ? D ? "prevunique" : "prev" : D ? "nextunique" : "next", C = !A && "openKeyCursor" in k ? k.openKeyCursor(a(R), j) : k.openCursor(a(R), j);
2175
+ var G = P.index, R = P.range, k = O.objectStore(v), k = G.isPrimaryKey ? k : k.index(G.name), G = D ? N ? "prevunique" : "prev" : N ? "nextunique" : "next", C = !A && "openKeyCursor" in k ? k.openKeyCursor(a(R), G) : k.openCursor(a(R), G);
2176
2176
  C.onerror = be($), C.onsuccess = Z(function(K) {
2177
- var W, F, H, de, U = C.result;
2178
- U ? (U.___id = ++ha, U.done = !1, W = U.continue.bind(U), F = (F = U.continuePrimaryKey) && F.bind(U), H = U.advance.bind(U), de = function() {
2177
+ var U, F, H, de, W = C.result;
2178
+ W ? (W.___id = ++ha, W.done = !1, U = W.continue.bind(W), F = (F = W.continuePrimaryKey) && F.bind(W), H = W.advance.bind(W), de = function() {
2179
2179
  throw new Error("Cursor not stopped");
2180
- }, U.trans = S, U.stop = U.continue = U.continuePrimaryKey = U.advance = function() {
2180
+ }, W.trans = O, W.stop = W.continue = W.continuePrimaryKey = W.advance = function() {
2181
2181
  throw new Error("Cursor not started");
2182
- }, U.fail = Z($), U.next = function() {
2182
+ }, W.fail = Z($), W.next = function() {
2183
2183
  var oe = this, ie = 1;
2184
2184
  return this.start(function() {
2185
2185
  return ie-- ? oe.continue() : oe.stop();
2186
2186
  }).then(function() {
2187
2187
  return oe;
2188
2188
  });
2189
- }, U.start = function(oe) {
2189
+ }, W.start = function(oe) {
2190
2190
  function ie() {
2191
2191
  if (C.result) try {
2192
2192
  oe();
2193
2193
  } catch (ce) {
2194
- U.fail(ce);
2194
+ W.fail(ce);
2195
2195
  }
2196
- else U.done = !0, U.start = function() {
2196
+ else W.done = !0, W.start = function() {
2197
2197
  throw new Error("Cursor behind last entry");
2198
- }, U.stop();
2198
+ }, W.stop();
2199
2199
  }
2200
2200
  var tr = new Promise(function(ce, ze) {
2201
- ce = Z(ce), C.onerror = be(ze), U.fail = ze, U.stop = function(Ur) {
2202
- U.stop = U.continue = U.continuePrimaryKey = U.advance = de, ce(Ur);
2201
+ ce = Z(ce), C.onerror = be(ze), W.fail = ze, W.stop = function(Wr) {
2202
+ W.stop = W.continue = W.continuePrimaryKey = W.advance = de, ce(Wr);
2203
2203
  };
2204
2204
  });
2205
2205
  return C.onsuccess = Z(function(ce) {
2206
2206
  C.onsuccess = ie, ie();
2207
- }), U.continue = W, U.continuePrimaryKey = F, U.advance = H, ie(), tr;
2208
- }, x(U)) : x(null);
2207
+ }), W.continue = U, W.continuePrimaryKey = F, W.advance = H, ie(), tr;
2208
+ }, x(W)) : x(null);
2209
2209
  }, $);
2210
2210
  });
2211
2211
  }, count: function(E) {
2212
- var S = E.query, A = E.trans, P = S.index, N = S.range;
2213
- return new Promise(function(D, x) {
2214
- var $ = A.objectStore(v), R = P.isPrimaryKey ? $ : $.index(P.name), $ = a(N), R = $ ? R.count($) : R.count();
2212
+ var O = E.query, A = E.trans, P = O.index, D = O.range;
2213
+ return new Promise(function(N, x) {
2214
+ var $ = A.objectStore(v), R = P.isPrimaryKey ? $ : $.index(P.name), $ = a(D), R = $ ? R.count($) : R.count();
2215
2215
  R.onsuccess = Z(function(k) {
2216
- return D(k.target.result);
2216
+ return N(k.target.result);
2217
2217
  }), R.onerror = be(x);
2218
2218
  });
2219
2219
  } };
2220
2220
  }
2221
- var c, u, d, w = (u = p, d = wn((c = e).objectStoreNames), { schema: { name: c.name, tables: d.map(function(O) {
2222
- return u.objectStore(O);
2223
- }).map(function(O) {
2224
- var y = O.keyPath, S = O.autoIncrement, v = T(y), E = {}, S = { name: O.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: y == null, compound: v, keyPath: y, autoIncrement: S, unique: !0, extractKey: _r(y) }, indexes: wn(O.indexNames).map(function(A) {
2225
- return O.index(A);
2226
- }).map(function(D) {
2227
- var P = D.name, N = D.unique, x = D.multiEntry, D = D.keyPath, x = { name: P, compound: T(D), keyPath: D, unique: N, multiEntry: x, extractKey: _r(D) };
2228
- return E[wt(D)] = x;
2221
+ var c, u, d, S = (u = p, d = wn((c = e).objectStoreNames), { schema: { name: c.name, tables: d.map(function(_) {
2222
+ return u.objectStore(_);
2223
+ }).map(function(_) {
2224
+ var y = _.keyPath, O = _.autoIncrement, v = I(y), E = {}, O = { name: _.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: y == null, compound: v, keyPath: y, autoIncrement: O, unique: !0, extractKey: _r(y) }, indexes: wn(_.indexNames).map(function(A) {
2225
+ return _.index(A);
2226
+ }).map(function(N) {
2227
+ var P = N.name, D = N.unique, x = N.multiEntry, N = N.keyPath, x = { name: P, compound: I(N), keyPath: N, unique: D, multiEntry: x, extractKey: _r(N) };
2228
+ return E[wt(N)] = x;
2229
2229
  }), getIndexByKeyPath: function(A) {
2230
2230
  return E[wt(A)];
2231
2231
  } };
2232
- return E[":id"] = S.primaryKey, y != null && (E[wt(y)] = S.primaryKey), S;
2233
- }) }, hasGetAll: 0 < d.length && "getAll" in u.objectStore(d[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) }), p = w.schema, m = w.hasGetAll, w = p.tables.map(s), h = {};
2234
- return w.forEach(function(O) {
2235
- return h[O.name] = O;
2236
- }), { stack: "dbcore", transaction: e.transaction.bind(e), table: function(O) {
2237
- if (!h[O]) throw new Error("Table '".concat(O, "' not found"));
2238
- return h[O];
2232
+ return E[":id"] = O.primaryKey, y != null && (E[wt(y)] = O.primaryKey), O;
2233
+ }) }, hasGetAll: 0 < d.length && "getAll" in u.objectStore(d[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) }), p = S.schema, m = S.hasGetAll, S = p.tables.map(s), h = {};
2234
+ return S.forEach(function(_) {
2235
+ return h[_.name] = _;
2236
+ }), { stack: "dbcore", transaction: e.transaction.bind(e), table: function(_) {
2237
+ if (!h[_]) throw new Error("Table '".concat(_, "' not found"));
2238
+ return h[_];
2239
2239
  }, MIN_KEY: -1 / 0, MAX_KEY: Et(r), schema: p };
2240
2240
  }
2241
2241
  function ga(e, r, n, a) {
@@ -2257,8 +2257,8 @@ function Ba() {
2257
2257
  n.forEach(function(s) {
2258
2258
  var c = a[s];
2259
2259
  r.forEach(function(u) {
2260
- var d = (function p(m, w) {
2261
- return Hn(m, w) || (m = me(m)) && p(m, w);
2260
+ var d = (function p(m, S) {
2261
+ return Hn(m, S) || (m = me(m)) && p(m, S);
2262
2262
  })(u, s);
2263
2263
  (!d || "value" in d && d.value === void 0) && (u === e.Transaction.prototype || u instanceof e.Transaction ? Pe(u, s, { get: function() {
2264
2264
  return this.table(s);
@@ -2282,63 +2282,63 @@ function Ba() {
2282
2282
  var c = e._createTransaction("readwrite", e._storeNames, s);
2283
2283
  c.create(n), c._completion.catch(a);
2284
2284
  var u = c._reject.bind(c), d = L.transless || L;
2285
- De(function() {
2286
- return L.trans = c, L.transless = d, r !== 0 ? (Ft(e, n), m = r, ((p = c).storeNames.includes("$meta") ? p.table("$meta").get("version").then(function(w) {
2287
- return w ?? m;
2288
- }) : M.resolve(m)).then(function(w) {
2289
- return O = w, y = c, v = n, E = [], w = (h = e)._versions, S = h._dbSchema = zt(0, h.idbdb, v), (w = w.filter(function(A) {
2290
- return A._cfg.version >= O;
2291
- })).length !== 0 ? (w.forEach(function(A) {
2285
+ Ne(function() {
2286
+ return L.trans = c, L.transless = d, r !== 0 ? (Ft(e, n), m = r, ((p = c).storeNames.includes("$meta") ? p.table("$meta").get("version").then(function(S) {
2287
+ return S ?? m;
2288
+ }) : M.resolve(m)).then(function(S) {
2289
+ return _ = S, y = c, v = n, E = [], S = (h = e)._versions, O = h._dbSchema = zt(0, h.idbdb, v), (S = S.filter(function(A) {
2290
+ return A._cfg.version >= _;
2291
+ })).length !== 0 ? (S.forEach(function(A) {
2292
2292
  E.push(function() {
2293
- var P = S, N = A._cfg.dbschema;
2294
- Yt(h, P, v), Yt(h, N, v), S = h._dbSchema = N;
2295
- var D = Pr(P, N);
2296
- D.add.forEach(function(j) {
2297
- Nr(v, j[0], j[1].primKey, j[1].indexes);
2298
- }), D.change.forEach(function(j) {
2299
- if (j.recreate) throw new B.Upgrade("Not yet support for changing primary key");
2300
- var C = v.objectStore(j.name);
2301
- j.add.forEach(function(K) {
2293
+ var P = O, D = A._cfg.dbschema;
2294
+ Yt(h, P, v), Yt(h, D, v), O = h._dbSchema = D;
2295
+ var N = Pr(P, D);
2296
+ N.add.forEach(function(G) {
2297
+ Dr(v, G[0], G[1].primKey, G[1].indexes);
2298
+ }), N.change.forEach(function(G) {
2299
+ if (G.recreate) throw new B.Upgrade("Not yet support for changing primary key");
2300
+ var C = v.objectStore(G.name);
2301
+ G.add.forEach(function(K) {
2302
2302
  return Vt(C, K);
2303
- }), j.change.forEach(function(K) {
2303
+ }), G.change.forEach(function(K) {
2304
2304
  C.deleteIndex(K.name), Vt(C, K);
2305
- }), j.del.forEach(function(K) {
2305
+ }), G.del.forEach(function(K) {
2306
2306
  return C.deleteIndex(K);
2307
2307
  });
2308
2308
  });
2309
2309
  var x = A._cfg.contentUpgrade;
2310
- if (x && A._cfg.version > O) {
2310
+ if (x && A._cfg.version > _) {
2311
2311
  Ft(h, v), y._memoizedTables = {};
2312
- var $ = Xr(N);
2313
- D.del.forEach(function(j) {
2314
- $[j] = P[j];
2315
- }), Ar(h, [h.Transaction.prototype]), Ht(h, [h.Transaction.prototype], I($), $), y.schema = $;
2312
+ var $ = Xr(D);
2313
+ N.del.forEach(function(G) {
2314
+ $[G] = P[G];
2315
+ }), Ar(h, [h.Transaction.prototype]), Ht(h, [h.Transaction.prototype], T($), $), y.schema = $;
2316
2316
  var R, k = or(x);
2317
- return k && et(), D = M.follow(function() {
2318
- var j;
2319
- (R = x(y)) && k && (j = Ie.bind(null, null), R.then(j, j));
2320
- }), R && typeof R.then == "function" ? M.resolve(R) : D.then(function() {
2317
+ return k && et(), N = M.follow(function() {
2318
+ var G;
2319
+ (R = x(y)) && k && (G = Te.bind(null, null), R.then(G, G));
2320
+ }), R && typeof R.then == "function" ? M.resolve(R) : N.then(function() {
2321
2321
  return R;
2322
2322
  });
2323
2323
  }
2324
2324
  }), E.push(function(P) {
2325
- var N, D, x = A._cfg.dbschema;
2326
- N = x, D = P, [].slice.call(D.db.objectStoreNames).forEach(function($) {
2327
- return N[$] == null && D.db.deleteObjectStore($);
2325
+ var D, N, x = A._cfg.dbschema;
2326
+ D = x, N = P, [].slice.call(N.db.objectStoreNames).forEach(function($) {
2327
+ return D[$] == null && N.db.deleteObjectStore($);
2328
2328
  }), Ar(h, [h.Transaction.prototype]), Ht(h, [h.Transaction.prototype], h._storeNames, h._dbSchema), y.schema = h._dbSchema;
2329
2329
  }), E.push(function(P) {
2330
- h.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(h.idbdb.version / 10) === A._cfg.version ? (h.idbdb.deleteObjectStore("$meta"), delete h._dbSchema.$meta, h._storeNames = h._storeNames.filter(function(N) {
2331
- return N !== "$meta";
2330
+ h.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(h.idbdb.version / 10) === A._cfg.version ? (h.idbdb.deleteObjectStore("$meta"), delete h._dbSchema.$meta, h._storeNames = h._storeNames.filter(function(D) {
2331
+ return D !== "$meta";
2332
2332
  })) : P.objectStore("$meta").put(A._cfg.version, "version"));
2333
2333
  });
2334
2334
  }), (function A() {
2335
2335
  return E.length ? M.resolve(E.shift()(y.idbtrans)).then(A) : M.resolve();
2336
2336
  })().then(function() {
2337
- Sn(S, v);
2337
+ Sn(O, v);
2338
2338
  })) : M.resolve();
2339
- var h, O, y, v, E, S;
2340
- }).catch(u)) : (I(s).forEach(function(w) {
2341
- Nr(n, w, s[w].primKey, s[w].indexes);
2339
+ var h, _, y, v, E, O;
2340
+ }).catch(u)) : (T(s).forEach(function(S) {
2341
+ Dr(n, S, s[S].primKey, s[S].indexes);
2342
2342
  }), Ft(e, n), void M.follow(function() {
2343
2343
  return e.on.populate.fire(c);
2344
2344
  }).catch(u));
@@ -2372,8 +2372,8 @@ function Ba() {
2372
2372
  var d = s.idxByName, p = c.idxByName, m = void 0;
2373
2373
  for (m in d) p[m] || u.del.push(m);
2374
2374
  for (m in p) {
2375
- var w = d[m], h = p[m];
2376
- w ? w.src !== h.src && u.change.push(h) : u.add.push(h);
2375
+ var S = d[m], h = p[m];
2376
+ S ? S.src !== h.src && u.change.push(h) : u.add.push(h);
2377
2377
  }
2378
2378
  (0 < u.del.length || 0 < u.add.length || 0 < u.change.length) && a.change.push(u);
2379
2379
  }
@@ -2381,15 +2381,15 @@ function Ba() {
2381
2381
  }
2382
2382
  return a;
2383
2383
  }
2384
- function Nr(e, r, n, a) {
2384
+ function Dr(e, r, n, a) {
2385
2385
  var s = e.db.createObjectStore(r, n.keyPath ? { keyPath: n.keyPath, autoIncrement: n.auto } : { autoIncrement: n.auto });
2386
2386
  return a.forEach(function(c) {
2387
2387
  return Vt(s, c);
2388
2388
  }), s;
2389
2389
  }
2390
2390
  function Sn(e, r) {
2391
- I(e).forEach(function(n) {
2392
- r.db.objectStoreNames.contains(n) || (ye && console.debug("Dexie: Creating missing table", n), Nr(r, n, e[n].primKey, e[n].indexes));
2391
+ T(e).forEach(function(n) {
2392
+ r.db.objectStoreNames.contains(n) || (ye && console.debug("Dexie: Creating missing table", n), Dr(r, n, e[n].primKey, e[n].indexes));
2393
2393
  });
2394
2394
  }
2395
2395
  function Vt(e, r) {
@@ -2397,10 +2397,10 @@ function Ba() {
2397
2397
  }
2398
2398
  function zt(e, r, n) {
2399
2399
  var a = {};
2400
- return Nt(r.objectStoreNames, 0).forEach(function(s) {
2400
+ return Dt(r.objectStoreNames, 0).forEach(function(s) {
2401
2401
  for (var c = n.objectStore(s), u = Sr(En(m = c.keyPath), m || "", !0, !1, !!c.autoIncrement, m && typeof m != "string", !0), d = [], p = 0; p < c.indexNames.length; ++p) {
2402
- var w = c.index(c.indexNames[p]), m = w.keyPath, w = Sr(w.name, m, !!w.unique, !!w.multiEntry, !1, m && typeof m != "string", !1);
2403
- d.push(w);
2402
+ var S = c.index(c.indexNames[p]), m = S.keyPath, S = Sr(S.name, m, !!S.unique, !!S.multiEntry, !1, m && typeof m != "string", !1);
2403
+ d.push(S);
2404
2404
  }
2405
2405
  a[s] = Or(s, u, d);
2406
2406
  }), a;
@@ -2410,8 +2410,8 @@ function Ba() {
2410
2410
  var c = a[s], u = n.objectStore(c);
2411
2411
  e._hasGetAll = "getAll" in u;
2412
2412
  for (var d = 0; d < u.indexNames.length; ++d) {
2413
- var p = u.indexNames[d], m = u.index(p).keyPath, w = typeof m == "string" ? m : "[" + Nt(m).join("+") + "]";
2414
- !r[c] || (m = r[c].idxByName[w]) && (m.name = p, delete r[c].idxByName[w], r[c].idxByName[p] = m);
2413
+ var p = u.indexNames[d], m = u.index(p).keyPath, S = typeof m == "string" ? m : "[" + Dt(m).join("+") + "]";
2414
+ !r[c] || (m = r[c].idxByName[S]) && (m.name = p, delete r[c].idxByName[S], r[c].idxByName[p] = m);
2415
2415
  }
2416
2416
  }
2417
2417
  typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && b.WorkerGlobalScope && b instanceof b.WorkerGlobalScope && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604 && (e._hasGetAll = !1);
@@ -2419,12 +2419,12 @@ function Ba() {
2419
2419
  function On(e) {
2420
2420
  return e.split(",").map(function(r, n) {
2421
2421
  var c = r.split(":"), a = (s = c[1]) === null || s === void 0 ? void 0 : s.trim(), s = (r = c[0].trim()).replace(/([&*]|\+\+)/g, ""), c = /^\[/.test(s) ? s.match(/^\[(.*)\]$/)[1].split("+") : s;
2422
- return Sr(s, c || null, /\&/.test(r), /\*/.test(r), /\+\+/.test(r), T(c), n === 0, a);
2422
+ return Sr(s, c || null, /\&/.test(r), /\*/.test(r), /\+\+/.test(r), I(c), n === 0, a);
2423
2423
  });
2424
2424
  }
2425
2425
  var ba = (at.prototype._createTableSchema = Or, at.prototype._parseIndexSyntax = On, at.prototype._parseStoresSpec = function(e, r) {
2426
2426
  var n = this;
2427
- I(e).forEach(function(a) {
2427
+ T(e).forEach(function(a) {
2428
2428
  if (e[a] !== null) {
2429
2429
  var s = n._parseIndexSyntax(e[a]), c = s.shift();
2430
2430
  if (!c) throw new B.Schema("Invalid schema for table " + a + ": " + e[a]);
@@ -2441,21 +2441,21 @@ function Ba() {
2441
2441
  var n = r._versions, a = {}, s = {};
2442
2442
  return n.forEach(function(c) {
2443
2443
  te(a, c._cfg.storesSource), s = c._cfg.dbschema = {}, c._parseStoresSpec(a, s);
2444
- }), r._dbSchema = s, Ar(r, [r._allTables, r, r.Transaction.prototype]), Ht(r, [r._allTables, r, r.Transaction.prototype, this._cfg.tables], I(s), s), r._storeNames = I(s), this;
2444
+ }), r._dbSchema = s, Ar(r, [r._allTables, r, r.Transaction.prototype]), Ht(r, [r._allTables, r, r.Transaction.prototype, this._cfg.tables], T(s), s), r._storeNames = T(s), this;
2445
2445
  }, at.prototype.upgrade = function(e) {
2446
2446
  return this._cfg.contentUpgrade = cr(this._cfg.contentUpgrade || X, e), this;
2447
2447
  }, at);
2448
2448
  function at() {
2449
2449
  }
2450
- function Dr(e, r) {
2450
+ function Nr(e, r) {
2451
2451
  var n = e._dbNamesDB;
2452
2452
  return n || (n = e._dbNamesDB = new Oe(Mt, { addons: [], indexedDB: e, IDBKeyRange: r })).version(1).stores({ dbnames: "name" }), n.table("dbnames");
2453
2453
  }
2454
- function Ir(e) {
2454
+ function Tr(e) {
2455
2455
  return e && typeof e.databases == "function";
2456
2456
  }
2457
- function Tr(e) {
2458
- return De(function() {
2457
+ function Ir(e) {
2458
+ return Ne(function() {
2459
2459
  return L.letThrough = !0, e();
2460
2460
  });
2461
2461
  }
@@ -2524,7 +2524,7 @@ function Ba() {
2524
2524
  return (r ? n ? Math.max(r.d, n.d) : r.d : n ? n.d : 0) + 1;
2525
2525
  }
2526
2526
  function Qt(e, r) {
2527
- return I(r).forEach(function(n) {
2527
+ return T(r).forEach(function(n) {
2528
2528
  e[n] ? Ot(e[n], r[n]) : e[n] = (function a(s) {
2529
2529
  var c, u, d = {};
2530
2530
  for (c in s) ae(s, c) && (u = s[c], d[c] = !u || typeof u != "object" || Jr.has(u.constructor) ? u : a(u));
@@ -2561,22 +2561,22 @@ function Ba() {
2561
2561
  function $r(e, r) {
2562
2562
  r === void 0 && (r = !1);
2563
2563
  var n = /* @__PURE__ */ new Set();
2564
- if (e.all) for (var a = 0, s = Object.values(He); a < s.length; a++) Nn(u = s[a], e, n, r);
2564
+ if (e.all) for (var a = 0, s = Object.values(He); a < s.length; a++) Dn(u = s[a], e, n, r);
2565
2565
  else for (var c in e) {
2566
2566
  var u, d = /^idb\:\/\/(.*)\/(.*)\//.exec(c);
2567
- d && (c = d[1], d = d[2], (u = He["idb://".concat(c, "/").concat(d)]) && Nn(u, e, n, r));
2567
+ d && (c = d[1], d = d[2], (u = He["idb://".concat(c, "/").concat(d)]) && Dn(u, e, n, r));
2568
2568
  }
2569
2569
  n.forEach(function(p) {
2570
2570
  return p();
2571
2571
  });
2572
2572
  }
2573
- function Nn(e, r, n, a) {
2573
+ function Dn(e, r, n, a) {
2574
2574
  for (var s = [], c = 0, u = Object.entries(e.queries.query); c < u.length; c++) {
2575
- for (var d = u[c], p = d[0], m = [], w = 0, h = d[1]; w < h.length; w++) {
2576
- var O = h[w];
2577
- xr(r, O.obsSet) ? O.subscribers.forEach(function(S) {
2578
- return n.add(S);
2579
- }) : a && m.push(O);
2575
+ for (var d = u[c], p = d[0], m = [], S = 0, h = d[1]; S < h.length; S++) {
2576
+ var _ = h[S];
2577
+ xr(r, _.obsSet) ? _.subscribers.forEach(function(O) {
2578
+ return n.add(O);
2579
+ }) : a && m.push(_);
2580
2580
  }
2581
2581
  a && s.push([p, m]);
2582
2582
  }
@@ -2596,24 +2596,24 @@ function Ba() {
2596
2596
  if (r.openCanceller !== a) throw new B.DatabaseClosed("db.open() was cancelled");
2597
2597
  }
2598
2598
  function d() {
2599
- return new M(function(O, y) {
2599
+ return new M(function(_, y) {
2600
2600
  if (u(), !n) throw new B.MissingAPI();
2601
2601
  var v = e.name, E = r.autoSchema || !s ? n.open(v) : n.open(v, s);
2602
2602
  if (!E) throw new B.MissingAPI();
2603
- E.onerror = be(y), E.onblocked = Z(e._fireOnBlocked), E.onupgradeneeded = Z(function(S) {
2603
+ E.onerror = be(y), E.onblocked = Z(e._fireOnBlocked), E.onupgradeneeded = Z(function(O) {
2604
2604
  var A;
2605
- w = E.transaction, r.autoSchema && !e._options.allowEmptyDB ? (E.onerror = bt, w.abort(), E.result.close(), (A = n.deleteDatabase(v)).onsuccess = A.onerror = Z(function() {
2605
+ S = E.transaction, r.autoSchema && !e._options.allowEmptyDB ? (E.onerror = bt, S.abort(), E.result.close(), (A = n.deleteDatabase(v)).onsuccess = A.onerror = Z(function() {
2606
2606
  y(new B.NoSuchDatabase("Database ".concat(v, " doesnt exist")));
2607
- })) : (w.onerror = be(y), S = S.oldVersion > Math.pow(2, 62) ? 0 : S.oldVersion, h = S < 1, e.idbdb = E.result, c && ya(e, w), ma(e, S / 10, w, y));
2607
+ })) : (S.onerror = be(y), O = O.oldVersion > Math.pow(2, 62) ? 0 : O.oldVersion, h = O < 1, e.idbdb = E.result, c && ya(e, S), ma(e, O / 10, S, y));
2608
2608
  }, y), E.onsuccess = Z(function() {
2609
- w = null;
2610
- var S, A, P, N, D, x = e.idbdb = E.result, $ = Nt(x.objectStoreNames);
2609
+ S = null;
2610
+ var O, A, P, D, N, x = e.idbdb = E.result, $ = Dt(x.objectStoreNames);
2611
2611
  if (0 < $.length) try {
2612
- var R = x.transaction((N = $).length === 1 ? N[0] : N, "readonly");
2613
- if (r.autoSchema) A = x, P = R, (S = e).verno = A.version / 10, P = S._dbSchema = zt(0, A, P), S._storeNames = Nt(A.objectStoreNames, 0), Ht(S, [S._allTables], I(P), P);
2614
- else if (Yt(e, e._dbSchema, R), ((D = Pr(zt(0, (D = e).idbdb, R), D._dbSchema)).add.length || D.change.some(function(k) {
2612
+ var R = x.transaction((D = $).length === 1 ? D[0] : D, "readonly");
2613
+ if (r.autoSchema) A = x, P = R, (O = e).verno = A.version / 10, P = O._dbSchema = zt(0, A, P), O._storeNames = Dt(A.objectStoreNames, 0), Ht(O, [O._allTables], T(P), P);
2614
+ else if (Yt(e, e._dbSchema, R), ((N = Pr(zt(0, (N = e).idbdb, R), N._dbSchema)).add.length || N.change.some(function(k) {
2615
2615
  return k.add.length || k.change.length;
2616
- })) && !c) return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."), x.close(), s = x.version + 1, c = !0, O(d());
2616
+ })) && !c) return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."), x.close(), s = x.version + 1, c = !0, _(d());
2617
2617
  Ft(e, R);
2618
2618
  } catch {
2619
2619
  }
@@ -2621,59 +2621,59 @@ function Ba() {
2621
2621
  r.vcFired = !0, e.on("versionchange").fire(k);
2622
2622
  }), x.onclose = Z(function() {
2623
2623
  e.close({ disableAutoOpen: !1 });
2624
- }), h && (D = e._deps, R = v, x = D.indexedDB, D = D.IDBKeyRange, Ir(x) || R === Mt || Dr(x, D).put({ name: R }).catch(X)), O();
2624
+ }), h && (N = e._deps, R = v, x = N.indexedDB, N = N.IDBKeyRange, Tr(x) || R === Mt || Nr(x, N).put({ name: R }).catch(X)), _();
2625
2625
  }, y);
2626
- }).catch(function(O) {
2627
- switch (O?.name) {
2626
+ }).catch(function(_) {
2627
+ switch (_?.name) {
2628
2628
  case "UnknownError":
2629
2629
  if (0 < r.PR1398_maxLoop) return r.PR1398_maxLoop--, console.warn("Dexie: Workaround for Chrome UnknownError on open()"), d();
2630
2630
  break;
2631
2631
  case "VersionError":
2632
2632
  if (0 < s) return s = 0, d();
2633
2633
  }
2634
- return M.reject(O);
2634
+ return M.reject(_);
2635
2635
  });
2636
2636
  }
2637
- var p, m = r.dbReadyResolve, w = null, h = !1;
2638
- return M.race([a, (typeof navigator > "u" ? M.resolve() : !navigator.userAgentData && /Safari\//.test(navigator.userAgent) && !/Chrom(e|ium)\//.test(navigator.userAgent) && indexedDB.databases ? new Promise(function(O) {
2637
+ var p, m = r.dbReadyResolve, S = null, h = !1;
2638
+ return M.race([a, (typeof navigator > "u" ? M.resolve() : !navigator.userAgentData && /Safari\//.test(navigator.userAgent) && !/Chrom(e|ium)\//.test(navigator.userAgent) && indexedDB.databases ? new Promise(function(_) {
2639
2639
  function y() {
2640
- return indexedDB.databases().finally(O);
2640
+ return indexedDB.databases().finally(_);
2641
2641
  }
2642
2642
  p = setInterval(y, 100), y();
2643
2643
  }).finally(function() {
2644
2644
  return clearInterval(p);
2645
2645
  }) : Promise.resolve()).then(d)]).then(function() {
2646
- return u(), r.onReadyBeingFired = [], M.resolve(Tr(function() {
2646
+ return u(), r.onReadyBeingFired = [], M.resolve(Ir(function() {
2647
2647
  return e.on.ready.fire(e.vip);
2648
- })).then(function O() {
2648
+ })).then(function _() {
2649
2649
  if (0 < r.onReadyBeingFired.length) {
2650
2650
  var y = r.onReadyBeingFired.reduce(cr, X);
2651
- return r.onReadyBeingFired = [], M.resolve(Tr(function() {
2651
+ return r.onReadyBeingFired = [], M.resolve(Ir(function() {
2652
2652
  return y(e.vip);
2653
- })).then(O);
2653
+ })).then(_);
2654
2654
  }
2655
2655
  });
2656
2656
  }).finally(function() {
2657
2657
  r.openCanceller === a && (r.onReadyBeingFired = null, r.isBeingOpened = !1);
2658
- }).catch(function(O) {
2659
- r.dbOpenError = O;
2658
+ }).catch(function(_) {
2659
+ r.dbOpenError = _;
2660
2660
  try {
2661
- w && w.abort();
2661
+ S && S.abort();
2662
2662
  } catch {
2663
2663
  }
2664
- return a === r.openCanceller && e._close(), q(O);
2664
+ return a === r.openCanceller && e._close(), q(_);
2665
2665
  }).finally(function() {
2666
2666
  r.openComplete = !0, m();
2667
2667
  }).then(function() {
2668
- var O;
2669
- return h && (O = {}, e.tables.forEach(function(y) {
2668
+ var _;
2669
+ return h && (_ = {}, e.tables.forEach(function(y) {
2670
2670
  y.schema.indexes.forEach(function(v) {
2671
- v.name && (O["idb://".concat(e.name, "/").concat(y.name, "/").concat(v.name)] = new se(-1 / 0, [[[]]]));
2672
- }), O["idb://".concat(e.name, "/").concat(y.name, "/")] = O["idb://".concat(e.name, "/").concat(y.name, "/:dels")] = new se(-1 / 0, [[[]]]);
2673
- }), xe(vt).fire(O), $r(O, !0)), e;
2671
+ v.name && (_["idb://".concat(e.name, "/").concat(y.name, "/").concat(v.name)] = new se(-1 / 0, [[[]]]));
2672
+ }), _["idb://".concat(e.name, "/").concat(y.name, "/")] = _["idb://".concat(e.name, "/").concat(y.name, "/:dels")] = new se(-1 / 0, [[[]]]);
2673
+ }), xe(vt).fire(_), $r(_, !0)), e;
2674
2674
  });
2675
2675
  }
2676
- function jr(e) {
2676
+ function Gr(e) {
2677
2677
  function r(c) {
2678
2678
  return e.next(c);
2679
2679
  }
@@ -2683,22 +2683,22 @@ function Ba() {
2683
2683
  function s(c) {
2684
2684
  return function(p) {
2685
2685
  var d = c(p), p = d.value;
2686
- return d.done ? p : p && typeof p.then == "function" ? p.then(n, a) : T(p) ? Promise.all(p).then(n, a) : n(p);
2686
+ return d.done ? p : p && typeof p.then == "function" ? p.then(n, a) : I(p) ? Promise.all(p).then(n, a) : n(p);
2687
2687
  };
2688
2688
  }
2689
2689
  return s(r)();
2690
2690
  }
2691
2691
  function Zt(e, r, n) {
2692
- for (var a = T(e) ? e.slice() : [e], s = 0; s < n; ++s) a.push(r);
2692
+ for (var a = I(e) ? e.slice() : [e], s = 0; s < n; ++s) a.push(r);
2693
2693
  return a;
2694
2694
  }
2695
2695
  var Ea = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create: function(e) {
2696
2696
  return l(l({}, e), { table: function(r) {
2697
2697
  var n = e.table(r), a = n.schema, s = {}, c = [];
2698
- function u(h, O, y) {
2699
- var v = wt(h), E = s[v] = s[v] || [], S = h == null ? 0 : typeof h == "string" ? 1 : h.length, A = 0 < O, A = l(l({}, y), { name: A ? "".concat(v, "(virtual-from:").concat(y.name, ")") : y.name, lowLevelIndex: y, isVirtual: A, keyTail: O, keyLength: S, extractKey: _r(h), unique: !A && y.unique });
2700
- return E.push(A), A.isPrimaryKey || c.push(A), 1 < S && u(S === 2 ? h[0] : h.slice(0, S - 1), O + 1, y), E.sort(function(P, N) {
2701
- return P.keyTail - N.keyTail;
2698
+ function u(h, _, y) {
2699
+ var v = wt(h), E = s[v] = s[v] || [], O = h == null ? 0 : typeof h == "string" ? 1 : h.length, A = 0 < _, A = l(l({}, y), { name: A ? "".concat(v, "(virtual-from:").concat(y.name, ")") : y.name, lowLevelIndex: y, isVirtual: A, keyTail: _, keyLength: O, extractKey: _r(h), unique: !A && y.unique });
2700
+ return E.push(A), A.isPrimaryKey || c.push(A), 1 < O && u(O === 2 ? h[0] : h.slice(0, O - 1), _ + 1, y), E.sort(function(P, D) {
2701
+ return P.keyTail - D.keyTail;
2702
2702
  }), A;
2703
2703
  }
2704
2704
  r = u(a.primaryKey.keyPath, 0, a.primaryKey), s[":id"] = [r];
@@ -2706,26 +2706,26 @@ function Ba() {
2706
2706
  var m = p[d];
2707
2707
  u(m.keyPath, 0, m);
2708
2708
  }
2709
- function w(h) {
2710
- var O, y = h.query.index;
2711
- return y.isVirtual ? l(l({}, h), { query: { index: y.lowLevelIndex, range: (O = h.query.range, y = y.keyTail, { type: O.type === 1 ? 2 : O.type, lower: Zt(O.lower, O.lowerOpen ? e.MAX_KEY : e.MIN_KEY, y), lowerOpen: !0, upper: Zt(O.upper, O.upperOpen ? e.MIN_KEY : e.MAX_KEY, y), upperOpen: !0 }) } }) : h;
2709
+ function S(h) {
2710
+ var _, y = h.query.index;
2711
+ return y.isVirtual ? l(l({}, h), { query: { index: y.lowLevelIndex, range: (_ = h.query.range, y = y.keyTail, { type: _.type === 1 ? 2 : _.type, lower: Zt(_.lower, _.lowerOpen ? e.MAX_KEY : e.MIN_KEY, y), lowerOpen: !0, upper: Zt(_.upper, _.upperOpen ? e.MIN_KEY : e.MAX_KEY, y), upperOpen: !0 }) } }) : h;
2712
2712
  }
2713
2713
  return l(l({}, n), { schema: l(l({}, a), { primaryKey: r, indexes: c, getIndexByKeyPath: function(h) {
2714
2714
  return (h = s[wt(h)]) && h[0];
2715
2715
  } }), count: function(h) {
2716
- return n.count(w(h));
2716
+ return n.count(S(h));
2717
2717
  }, query: function(h) {
2718
- return n.query(w(h));
2718
+ return n.query(S(h));
2719
2719
  }, openCursor: function(h) {
2720
- var O = h.query.index, y = O.keyTail, v = O.isVirtual, E = O.keyLength;
2721
- return v ? n.openCursor(w(h)).then(function(A) {
2722
- return A && S(A);
2720
+ var _ = h.query.index, y = _.keyTail, v = _.isVirtual, E = _.keyLength;
2721
+ return v ? n.openCursor(S(h)).then(function(A) {
2722
+ return A && O(A);
2723
2723
  }) : n.openCursor(h);
2724
- function S(A) {
2724
+ function O(A) {
2725
2725
  return Object.create(A, { continue: { value: function(P) {
2726
2726
  P != null ? A.continue(Zt(P, h.reverse ? e.MAX_KEY : e.MIN_KEY, y)) : h.unique ? A.continue(A.key.slice(0, E).concat(h.reverse ? e.MIN_KEY : e.MAX_KEY, y)) : A.continue();
2727
- } }, continuePrimaryKey: { value: function(P, N) {
2728
- A.continuePrimaryKey(Zt(P, e.MAX_KEY, y), N);
2727
+ } }, continuePrimaryKey: { value: function(P, D) {
2728
+ A.continuePrimaryKey(Zt(P, e.MAX_KEY, y), D);
2729
2729
  } }, primaryKey: { get: function() {
2730
2730
  return A.primaryKey;
2731
2731
  } }, key: { get: function() {
@@ -2738,11 +2738,11 @@ function Ba() {
2738
2738
  } });
2739
2739
  } });
2740
2740
  } };
2741
- function Gr(e, r, n, a) {
2742
- return n = n || {}, a = a || "", I(e).forEach(function(s) {
2741
+ function jr(e, r, n, a) {
2742
+ return n = n || {}, a = a || "", T(e).forEach(function(s) {
2743
2743
  var c, u, d;
2744
- ae(r, s) ? (c = e[s], u = r[s], typeof c == "object" && typeof u == "object" && c && u ? (d = ar(c)) !== ar(u) ? n[a + s] = r[s] : d === "Object" ? Gr(c, u, n, a + s + ".") : c !== u && (n[a + s] = r[s]) : c !== u && (n[a + s] = r[s])) : n[a + s] = void 0;
2745
- }), I(r).forEach(function(s) {
2744
+ ae(r, s) ? (c = e[s], u = r[s], typeof c == "object" && typeof u == "object" && c && u ? (d = ar(c)) !== ar(u) ? n[a + s] = r[s] : d === "Object" ? jr(c, u, n, a + s + ".") : c !== u && (n[a + s] = r[s]) : c !== u && (n[a + s] = r[s])) : n[a + s] = void 0;
2745
+ }), T(r).forEach(function(s) {
2746
2746
  ae(e, s) || (n[a + s] = r[s]);
2747
2747
  }), n;
2748
2748
  }
@@ -2758,59 +2758,59 @@ function Ba() {
2758
2758
  case "add":
2759
2759
  if (p.fire === X) break;
2760
2760
  return c._promise("readwrite", function() {
2761
- return w(s);
2761
+ return S(s);
2762
2762
  }, !0);
2763
2763
  case "put":
2764
2764
  if (p.fire === X && m.fire === X) break;
2765
2765
  return c._promise("readwrite", function() {
2766
- return w(s);
2766
+ return S(s);
2767
2767
  }, !0);
2768
2768
  case "delete":
2769
2769
  if (d.fire === X) break;
2770
2770
  return c._promise("readwrite", function() {
2771
- return w(s);
2771
+ return S(s);
2772
2772
  }, !0);
2773
2773
  case "deleteRange":
2774
2774
  if (d.fire === X) break;
2775
2775
  return c._promise("readwrite", function() {
2776
- return (function h(O, y, v) {
2777
- return n.query({ trans: O, values: !1, query: { index: a, range: y }, limit: v }).then(function(E) {
2778
- var S = E.result;
2779
- return w({ type: "delete", keys: S, trans: O }).then(function(A) {
2780
- return 0 < A.numFailures ? Promise.reject(A.failures[0]) : S.length < v ? { failures: [], numFailures: 0, lastResult: void 0 } : h(O, l(l({}, y), { lower: S[S.length - 1], lowerOpen: !0 }), v);
2776
+ return (function h(_, y, v) {
2777
+ return n.query({ trans: _, values: !1, query: { index: a, range: y }, limit: v }).then(function(E) {
2778
+ var O = E.result;
2779
+ return S({ type: "delete", keys: O, trans: _ }).then(function(A) {
2780
+ return 0 < A.numFailures ? Promise.reject(A.failures[0]) : O.length < v ? { failures: [], numFailures: 0, lastResult: void 0 } : h(_, l(l({}, y), { lower: O[O.length - 1], lowerOpen: !0 }), v);
2781
2781
  });
2782
2782
  });
2783
2783
  })(s.trans, s.range, 1e4);
2784
2784
  }, !0);
2785
2785
  }
2786
2786
  return n.mutate(s);
2787
- function w(h) {
2788
- var O, y, v, E = L.trans, S = h.keys || Mr(a, h);
2789
- if (!S) throw new Error("Keys missing");
2790
- return (h = h.type === "add" || h.type === "put" ? l(l({}, h), { keys: S }) : l({}, h)).type !== "delete" && (h.values = g([], h.values)), h.keys && (h.keys = g([], h.keys)), O = n, v = S, ((y = h).type === "add" ? Promise.resolve([]) : O.getMany({ trans: y.trans, keys: v, cache: "immutable" })).then(function(A) {
2791
- var P = S.map(function(N, D) {
2792
- var x, $, R, k = A[D], j = { onerror: null, onsuccess: null };
2793
- return h.type === "delete" ? d.fire.call(j, N, k, E) : h.type === "add" || k === void 0 ? (x = p.fire.call(j, N, h.values[D], E), N == null && x != null && (h.keys[D] = N = x, a.outbound || ue(h.values[D], a.keyPath, N))) : (x = Gr(k, h.values[D]), ($ = m.fire.call(j, x, N, k, E)) && (R = h.values[D], Object.keys($).forEach(function(C) {
2787
+ function S(h) {
2788
+ var _, y, v, E = L.trans, O = h.keys || Mr(a, h);
2789
+ if (!O) throw new Error("Keys missing");
2790
+ return (h = h.type === "add" || h.type === "put" ? l(l({}, h), { keys: O }) : l({}, h)).type !== "delete" && (h.values = g([], h.values)), h.keys && (h.keys = g([], h.keys)), _ = n, v = O, ((y = h).type === "add" ? Promise.resolve([]) : _.getMany({ trans: y.trans, keys: v, cache: "immutable" })).then(function(A) {
2791
+ var P = O.map(function(D, N) {
2792
+ var x, $, R, k = A[N], G = { onerror: null, onsuccess: null };
2793
+ return h.type === "delete" ? d.fire.call(G, D, k, E) : h.type === "add" || k === void 0 ? (x = p.fire.call(G, D, h.values[N], E), D == null && x != null && (h.keys[N] = D = x, a.outbound || ue(h.values[N], a.keyPath, D))) : (x = jr(k, h.values[N]), ($ = m.fire.call(G, x, D, k, E)) && (R = h.values[N], Object.keys($).forEach(function(C) {
2794
2794
  ae(R, C) ? R[C] = $[C] : ue(R, C, $[C]);
2795
- }))), j;
2795
+ }))), G;
2796
2796
  });
2797
- return n.mutate(h).then(function(N) {
2798
- for (var D = N.failures, x = N.results, $ = N.numFailures, N = N.lastResult, R = 0; R < S.length; ++R) {
2799
- var k = (x || S)[R], j = P[R];
2800
- k == null ? j.onerror && j.onerror(D[R]) : j.onsuccess && j.onsuccess(h.type === "put" && A[R] ? h.values[R] : k);
2797
+ return n.mutate(h).then(function(D) {
2798
+ for (var N = D.failures, x = D.results, $ = D.numFailures, D = D.lastResult, R = 0; R < O.length; ++R) {
2799
+ var k = (x || O)[R], G = P[R];
2800
+ k == null ? G.onerror && G.onerror(N[R]) : G.onsuccess && G.onsuccess(h.type === "put" && A[R] ? h.values[R] : k);
2801
2801
  }
2802
- return { failures: D, results: x, numFailures: $, lastResult: N };
2803
- }).catch(function(N) {
2804
- return P.forEach(function(D) {
2805
- return D.onerror && D.onerror(N);
2806
- }), Promise.reject(N);
2802
+ return { failures: N, results: x, numFailures: $, lastResult: D };
2803
+ }).catch(function(D) {
2804
+ return P.forEach(function(N) {
2805
+ return N.onerror && N.onerror(D);
2806
+ }), Promise.reject(D);
2807
2807
  });
2808
2808
  });
2809
2809
  }
2810
2810
  } });
2811
2811
  } });
2812
2812
  } };
2813
- function Dn(e, r, n) {
2813
+ function Nn(e, r, n) {
2814
2814
  try {
2815
2815
  if (!r || r.keys.length < e.length) return null;
2816
2816
  for (var a = [], s = 0, c = 0; s < r.keys.length && c < e.length; ++s) V(r.keys[s], e[c]) === 0 && (a.push(n ? $e(r.values[s]) : r.values[s]), ++c);
@@ -2824,7 +2824,7 @@ function Ba() {
2824
2824
  var n = e.table(r);
2825
2825
  return l(l({}, n), { getMany: function(a) {
2826
2826
  if (!a.cache) return n.getMany(a);
2827
- var s = Dn(a.keys, a.trans._cache, a.cache === "clone");
2827
+ var s = Nn(a.keys, a.trans._cache, a.cache === "clone");
2828
2828
  return s ? M.resolve(s) : n.getMany(a).then(function(c) {
2829
2829
  return a.trans._cache = { keys: a.keys, values: a.cache === "clone" ? $e(c) : c }, c;
2830
2830
  });
@@ -2833,10 +2833,10 @@ function Ba() {
2833
2833
  } });
2834
2834
  } };
2835
2835
  } };
2836
- function In(e, r) {
2836
+ function Tn(e, r) {
2837
2837
  return e.trans.mode === "readonly" && !!e.subscr && !e.trans.explicit && e.trans.db._options.cache !== "disabled" && !r.schema.primaryKey.outbound;
2838
2838
  }
2839
- function Tn(e, r) {
2839
+ function In(e, r) {
2840
2840
  switch (e) {
2841
2841
  case "query":
2842
2842
  return r.values && !r.unique;
@@ -2855,93 +2855,93 @@ function Ba() {
2855
2855
  }, table: function(a) {
2856
2856
  var s = e.table(a), c = s.schema, u = c.primaryKey, h = c.indexes, d = u.extractKey, p = u.outbound, m = u.autoIncrement && h.filter(function(y) {
2857
2857
  return y.compound && y.keyPath.includes(u.keyPath);
2858
- }), w = l(l({}, s), { mutate: function(y) {
2858
+ }), S = l(l({}, s), { mutate: function(y) {
2859
2859
  function v(C) {
2860
- return C = "idb://".concat(r, "/").concat(a, "/").concat(C), N[C] || (N[C] = new se());
2860
+ return C = "idb://".concat(r, "/").concat(a, "/").concat(C), D[C] || (D[C] = new se());
2861
2861
  }
2862
- var E, S, A, P = y.trans, N = y.mutatedParts || (y.mutatedParts = {}), D = v(""), x = v(":dels"), $ = y.type, j = y.type === "deleteRange" ? [y.range] : y.type === "delete" ? [y.keys] : y.values.length < 50 ? [Mr(u, y).filter(function(C) {
2862
+ var E, O, A, P = y.trans, D = y.mutatedParts || (y.mutatedParts = {}), N = v(""), x = v(":dels"), $ = y.type, G = y.type === "deleteRange" ? [y.range] : y.type === "delete" ? [y.keys] : y.values.length < 50 ? [Mr(u, y).filter(function(C) {
2863
2863
  return C;
2864
- }), y.values] : [], R = j[0], k = j[1], j = y.trans._cache;
2865
- return T(R) ? (D.addKeys(R), (j = $ === "delete" || R.length === k.length ? Dn(R, j) : null) || x.addKeys(R), (j || k) && (E = v, S = j, A = k, c.indexes.forEach(function(C) {
2864
+ }), y.values] : [], R = G[0], k = G[1], G = y.trans._cache;
2865
+ return I(R) ? (N.addKeys(R), (G = $ === "delete" || R.length === k.length ? Nn(R, G) : null) || x.addKeys(R), (G || k) && (E = v, O = G, A = k, c.indexes.forEach(function(C) {
2866
2866
  var K = E(C.name || "");
2867
- function W(H) {
2867
+ function U(H) {
2868
2868
  return H != null ? C.extractKey(H) : null;
2869
2869
  }
2870
2870
  function F(H) {
2871
- return C.multiEntry && T(H) ? H.forEach(function(de) {
2871
+ return C.multiEntry && I(H) ? H.forEach(function(de) {
2872
2872
  return K.addKey(de);
2873
2873
  }) : K.addKey(H);
2874
2874
  }
2875
- (S || A).forEach(function(H, oe) {
2876
- var U = S && W(S[oe]), oe = A && W(A[oe]);
2877
- V(U, oe) !== 0 && (U != null && F(U), oe != null && F(oe));
2875
+ (O || A).forEach(function(H, oe) {
2876
+ var W = O && U(O[oe]), oe = A && U(A[oe]);
2877
+ V(W, oe) !== 0 && (W != null && F(W), oe != null && F(oe));
2878
2878
  });
2879
- }))) : R ? (k = { from: (k = R.lower) !== null && k !== void 0 ? k : e.MIN_KEY, to: (k = R.upper) !== null && k !== void 0 ? k : e.MAX_KEY }, x.add(k), D.add(k)) : (D.add(n), x.add(n), c.indexes.forEach(function(C) {
2879
+ }))) : R ? (k = { from: (k = R.lower) !== null && k !== void 0 ? k : e.MIN_KEY, to: (k = R.upper) !== null && k !== void 0 ? k : e.MAX_KEY }, x.add(k), N.add(k)) : (N.add(n), x.add(n), c.indexes.forEach(function(C) {
2880
2880
  return v(C.name).add(n);
2881
2881
  })), s.mutate(y).then(function(C) {
2882
- return !R || y.type !== "add" && y.type !== "put" || (D.addKeys(C.results), m && m.forEach(function(K) {
2883
- for (var W = y.values.map(function(U) {
2884
- return K.extractKey(U);
2885
- }), F = K.keyPath.findIndex(function(U) {
2886
- return U === u.keyPath;
2887
- }), H = 0, de = C.results.length; H < de; ++H) W[H][F] = C.results[H];
2888
- v(K.name).addKeys(W);
2889
- })), P.mutatedParts = Qt(P.mutatedParts || {}, N), C;
2882
+ return !R || y.type !== "add" && y.type !== "put" || (N.addKeys(C.results), m && m.forEach(function(K) {
2883
+ for (var U = y.values.map(function(W) {
2884
+ return K.extractKey(W);
2885
+ }), F = K.keyPath.findIndex(function(W) {
2886
+ return W === u.keyPath;
2887
+ }), H = 0, de = C.results.length; H < de; ++H) U[H][F] = C.results[H];
2888
+ v(K.name).addKeys(U);
2889
+ })), P.mutatedParts = Qt(P.mutatedParts || {}, D), C;
2890
2890
  });
2891
2891
  } }), h = function(v) {
2892
2892
  var E = v.query, v = E.index, E = E.range;
2893
2893
  return [v, new se((v = E.lower) !== null && v !== void 0 ? v : e.MIN_KEY, (E = E.upper) !== null && E !== void 0 ? E : e.MAX_KEY)];
2894
- }, O = { get: function(y) {
2894
+ }, _ = { get: function(y) {
2895
2895
  return [u, new se(y.key)];
2896
2896
  }, getMany: function(y) {
2897
2897
  return [u, new se().addKeys(y.keys)];
2898
2898
  }, count: h, query: h, openCursor: h };
2899
- return I(O).forEach(function(y) {
2900
- w[y] = function(v) {
2901
- var E = L.subscr, S = !!E, A = In(L, s) && Tn(y, v) ? v.obsSet = {} : E;
2902
- if (S) {
2899
+ return T(_).forEach(function(y) {
2900
+ S[y] = function(v) {
2901
+ var E = L.subscr, O = !!E, A = Tn(L, s) && In(y, v) ? v.obsSet = {} : E;
2902
+ if (O) {
2903
2903
  var P = function(k) {
2904
2904
  return k = "idb://".concat(r, "/").concat(a, "/").concat(k), A[k] || (A[k] = new se());
2905
- }, N = P(""), D = P(":dels"), E = O[y](v), S = E[0], E = E[1];
2906
- if ((y === "query" && S.isPrimaryKey && !v.values ? D : P(S.name || "")).add(E), !S.isPrimaryKey) {
2905
+ }, D = P(""), N = P(":dels"), E = _[y](v), O = E[0], E = E[1];
2906
+ if ((y === "query" && O.isPrimaryKey && !v.values ? N : P(O.name || "")).add(E), !O.isPrimaryKey) {
2907
2907
  if (y !== "count") {
2908
2908
  var x = y === "query" && p && v.values && s.query(l(l({}, v), { values: !1 }));
2909
2909
  return s[y].apply(this, arguments).then(function(k) {
2910
2910
  if (y === "query") {
2911
- if (p && v.values) return x.then(function(W) {
2912
- return W = W.result, N.addKeys(W), k;
2911
+ if (p && v.values) return x.then(function(U) {
2912
+ return U = U.result, D.addKeys(U), k;
2913
2913
  });
2914
- var j = v.values ? k.result.map(d) : k.result;
2915
- (v.values ? N : D).addKeys(j);
2914
+ var G = v.values ? k.result.map(d) : k.result;
2915
+ (v.values ? D : N).addKeys(G);
2916
2916
  } else if (y === "openCursor") {
2917
2917
  var C = k, K = v.values;
2918
2918
  return C && Object.create(C, { key: { get: function() {
2919
- return D.addKey(C.primaryKey), C.key;
2919
+ return N.addKey(C.primaryKey), C.key;
2920
2920
  } }, primaryKey: { get: function() {
2921
- var W = C.primaryKey;
2922
- return D.addKey(W), W;
2921
+ var U = C.primaryKey;
2922
+ return N.addKey(U), U;
2923
2923
  } }, value: { get: function() {
2924
- return K && N.addKey(C.primaryKey), C.value;
2924
+ return K && D.addKey(C.primaryKey), C.value;
2925
2925
  } } });
2926
2926
  }
2927
2927
  return k;
2928
2928
  });
2929
2929
  }
2930
- D.add(n);
2930
+ N.add(n);
2931
2931
  }
2932
2932
  }
2933
2933
  return s[y].apply(this, arguments);
2934
2934
  };
2935
- }), w;
2935
+ }), S;
2936
2936
  } });
2937
2937
  } };
2938
2938
  function Rn(e, r, n) {
2939
2939
  if (n.numFailures === 0) return r;
2940
2940
  if (r.type === "deleteRange") return null;
2941
2941
  var a = r.keys ? r.keys.length : "values" in r && r.values ? r.values.length : 1;
2942
- return n.numFailures === a ? null : (r = l({}, r), T(r.keys) && (r.keys = r.keys.filter(function(s, c) {
2942
+ return n.numFailures === a ? null : (r = l({}, r), I(r.keys) && (r.keys = r.keys.filter(function(s, c) {
2943
2943
  return !(c in n.failures);
2944
- })), "values" in r && T(r.values) && (r.values = r.values.filter(function(s, c) {
2944
+ })), "values" in r && I(r.values) && (r.values = r.values.filter(function(s, c) {
2945
2945
  return !(c in n.failures);
2946
2946
  })), r);
2947
2947
  }
@@ -2949,23 +2949,23 @@ function Ba() {
2949
2949
  return n = e, ((a = r).lower === void 0 || (a.lowerOpen ? 0 < V(n, a.lower) : 0 <= V(n, a.lower))) && (e = e, (r = r).upper === void 0 || (r.upperOpen ? V(e, r.upper) < 0 : V(e, r.upper) <= 0));
2950
2950
  var n, a;
2951
2951
  }
2952
- function xn(e, r, O, a, s, c) {
2953
- if (!O || O.length === 0) return e;
2954
- var u = r.query.index, d = u.multiEntry, p = r.query.range, m = a.schema.primaryKey.extractKey, w = u.extractKey, h = (u.lowLevelIndex || u).extractKey, O = O.reduce(function(y, v) {
2955
- var E = y, S = [];
2952
+ function xn(e, r, _, a, s, c) {
2953
+ if (!_ || _.length === 0) return e;
2954
+ var u = r.query.index, d = u.multiEntry, p = r.query.range, m = a.schema.primaryKey.extractKey, S = u.extractKey, h = (u.lowLevelIndex || u).extractKey, _ = _.reduce(function(y, v) {
2955
+ var E = y, O = [];
2956
2956
  if (v.type === "add" || v.type === "put") for (var A = new se(), P = v.values.length - 1; 0 <= P; --P) {
2957
- var N, D = v.values[P], x = m(D);
2958
- A.hasKey(x) || (N = w(D), (d && T(N) ? N.some(function(C) {
2957
+ var D, N = v.values[P], x = m(N);
2958
+ A.hasKey(x) || (D = S(N), (d && I(D) ? D.some(function(C) {
2959
2959
  return Kr(C, p);
2960
- }) : Kr(N, p)) && (A.addKey(x), S.push(D)));
2960
+ }) : Kr(D, p)) && (A.addKey(x), O.push(N)));
2961
2961
  }
2962
2962
  switch (v.type) {
2963
2963
  case "add":
2964
2964
  var $ = new se().addKeys(r.values ? y.map(function(K) {
2965
2965
  return m(K);
2966
- }) : y), E = y.concat(r.values ? S.filter(function(K) {
2966
+ }) : y), E = y.concat(r.values ? O.filter(function(K) {
2967
2967
  return K = m(K), !$.hasKey(K) && ($.addKey(K), !0);
2968
- }) : S.map(function(K) {
2968
+ }) : O.map(function(K) {
2969
2969
  return m(K);
2970
2970
  }).filter(function(K) {
2971
2971
  return !$.hasKey(K) && ($.addKey(K), !0);
@@ -2977,7 +2977,7 @@ function Ba() {
2977
2977
  }));
2978
2978
  E = y.filter(function(K) {
2979
2979
  return !R.hasKey(r.values ? m(K) : K);
2980
- }).concat(r.values ? S : S.map(function(K) {
2980
+ }).concat(r.values ? O : O.map(function(K) {
2981
2981
  return m(K);
2982
2982
  }));
2983
2983
  break;
@@ -2988,16 +2988,16 @@ function Ba() {
2988
2988
  });
2989
2989
  break;
2990
2990
  case "deleteRange":
2991
- var j = v.range;
2991
+ var G = v.range;
2992
2992
  E = y.filter(function(K) {
2993
- return !Kr(m(K), j);
2993
+ return !Kr(m(K), G);
2994
2994
  });
2995
2995
  }
2996
2996
  return E;
2997
2997
  }, e);
2998
- return O === e ? e : (O.sort(function(y, v) {
2998
+ return _ === e ? e : (_.sort(function(y, v) {
2999
2999
  return V(h(y), h(v)) || V(m(y), m(v));
3000
- }), r.limit && r.limit < 1 / 0 && (O.length > r.limit ? O.length = r.limit : e.length === r.limit && O.length < r.limit && (s.dirty = !0)), c ? Object.freeze(O) : O);
3000
+ }), r.limit && r.limit < 1 / 0 && (_.length > r.limit ? _.length = r.limit : e.length === r.limit && _.length < r.limit && (s.dirty = !0)), c ? Object.freeze(_) : _);
3001
3001
  }
3002
3002
  function kn(e, r) {
3003
3003
  return V(e.lower, r.lower) === 0 && V(e.upper, r.upper) === 0 && !!e.lowerOpen == !!r.lowerOpen && !!e.upperOpen == !!r.upperOpen;
@@ -3027,7 +3027,7 @@ function Ba() {
3027
3027
  e.subscribers.add(n), a.addEventListener("abort", function() {
3028
3028
  var s, c;
3029
3029
  e.subscribers.delete(n), e.subscribers.size === 0 && (s = e, c = r, setTimeout(function() {
3030
- s.subscribers.size === 0 && je(c, s);
3030
+ s.subscribers.size === 0 && Ge(c, s);
3031
3031
  }, 3e3));
3032
3032
  });
3033
3033
  }
@@ -3038,22 +3038,22 @@ function Ba() {
3038
3038
  return a === "readwrite" && (u = (c = new AbortController()).signal, s = function(p) {
3039
3039
  return function() {
3040
3040
  if (c.abort(), a === "readwrite") {
3041
- for (var m = /* @__PURE__ */ new Set(), w = 0, h = n; w < h.length; w++) {
3042
- var O = h[w], y = He["idb://".concat(r, "/").concat(O)];
3041
+ for (var m = /* @__PURE__ */ new Set(), S = 0, h = n; S < h.length; S++) {
3042
+ var _ = h[S], y = He["idb://".concat(r, "/").concat(_)];
3043
3043
  if (y) {
3044
- var v = e.table(O), E = y.optimisticOps.filter(function(K) {
3044
+ var v = e.table(_), E = y.optimisticOps.filter(function(K) {
3045
3045
  return K.trans === d;
3046
3046
  });
3047
- if (d._explicit && p && d.mutatedParts) for (var S = 0, A = Object.values(y.queries.query); S < A.length; S++) for (var P = 0, N = ($ = A[S]).slice(); P < N.length; P++) xr((R = N[P]).obsSet, d.mutatedParts) && (je($, R), R.subscribers.forEach(function(K) {
3047
+ if (d._explicit && p && d.mutatedParts) for (var O = 0, A = Object.values(y.queries.query); O < A.length; O++) for (var P = 0, D = ($ = A[O]).slice(); P < D.length; P++) xr((R = D[P]).obsSet, d.mutatedParts) && (Ge($, R), R.subscribers.forEach(function(K) {
3048
3048
  return m.add(K);
3049
3049
  }));
3050
3050
  else if (0 < E.length) {
3051
3051
  y.optimisticOps = y.optimisticOps.filter(function(K) {
3052
3052
  return K.trans !== d;
3053
3053
  });
3054
- for (var D = 0, x = Object.values(y.queries.query); D < x.length; D++) for (var $, R, k, j = 0, C = ($ = x[D]).slice(); j < C.length; j++) (R = C[j]).res != null && d.mutatedParts && (p && !R.dirty ? (k = Object.isFrozen(R.res), k = xn(R.res, R.req, E, v, R, k), R.dirty ? (je($, R), R.subscribers.forEach(function(K) {
3054
+ for (var N = 0, x = Object.values(y.queries.query); N < x.length; N++) for (var $, R, k, G = 0, C = ($ = x[N]).slice(); G < C.length; G++) (R = C[G]).res != null && d.mutatedParts && (p && !R.dirty ? (k = Object.isFrozen(R.res), k = xn(R.res, R.req, E, v, R, k), R.dirty ? (Ge($, R), R.subscribers.forEach(function(K) {
3055
3055
  return m.add(K);
3056
- })) : k !== R.res && (R.res = k, R.promise = M.resolve({ result: k }))) : (R.dirty && je($, R), R.subscribers.forEach(function(K) {
3056
+ })) : k !== R.res && (R.res = k, R.promise = M.resolve({ result: k }))) : (R.dirty && Ge($, R), R.subscribers.forEach(function(K) {
3057
3057
  return m.add(K);
3058
3058
  })));
3059
3059
  }
@@ -3074,51 +3074,51 @@ function Ba() {
3074
3074
  return d ? (u = a.mutate(c), c.type !== "add" && c.type !== "put" || !(50 <= c.values.length || Mr(s, c).some(function(p) {
3075
3075
  return p == null;
3076
3076
  })) ? (d.optimisticOps.push(c), c.mutatedParts && Jt(c.mutatedParts), u.then(function(p) {
3077
- 0 < p.numFailures && (je(d.optimisticOps, c), (p = Rn(0, c, p)) && d.optimisticOps.push(p), c.mutatedParts && Jt(c.mutatedParts));
3077
+ 0 < p.numFailures && (Ge(d.optimisticOps, c), (p = Rn(0, c, p)) && d.optimisticOps.push(p), c.mutatedParts && Jt(c.mutatedParts));
3078
3078
  }), u.catch(function() {
3079
- je(d.optimisticOps, c), c.mutatedParts && Jt(c.mutatedParts);
3079
+ Ge(d.optimisticOps, c), c.mutatedParts && Jt(c.mutatedParts);
3080
3080
  })) : u.then(function(p) {
3081
- var m = Rn(0, l(l({}, c), { values: c.values.map(function(w, h) {
3082
- var O;
3083
- return p.failures[h] ? w : (w = (O = s.keyPath) !== null && O !== void 0 && O.includes(".") ? $e(w) : l({}, w), ue(w, s.keyPath, p.results[h]), w);
3081
+ var m = Rn(0, l(l({}, c), { values: c.values.map(function(S, h) {
3082
+ var _;
3083
+ return p.failures[h] ? S : (S = (_ = s.keyPath) !== null && _ !== void 0 && _.includes(".") ? $e(S) : l({}, S), ue(S, s.keyPath, p.results[h]), S);
3084
3084
  }) }), p);
3085
3085
  d.optimisticOps.push(m), queueMicrotask(function() {
3086
3086
  return c.mutatedParts && Jt(c.mutatedParts);
3087
3087
  });
3088
3088
  }), u) : a.mutate(c);
3089
3089
  }, query: function(c) {
3090
- if (!In(L, a) || !Tn("query", c)) return a.query(c);
3091
- var u = ((m = L.trans) === null || m === void 0 ? void 0 : m.db._options.cache) === "immutable", h = L, d = h.requery, p = h.signal, m = (function(v, E, S, A) {
3090
+ if (!Tn(L, a) || !In("query", c)) return a.query(c);
3091
+ var u = ((m = L.trans) === null || m === void 0 ? void 0 : m.db._options.cache) === "immutable", h = L, d = h.requery, p = h.signal, m = (function(v, E, O, A) {
3092
3092
  var P = He["idb://".concat(v, "/").concat(E)];
3093
3093
  if (!P) return [];
3094
- if (!(E = P.queries[S])) return [null, !1, P, null];
3095
- var N = E[(A.query ? A.query.index.name : null) || ""];
3096
- if (!N) return [null, !1, P, null];
3097
- switch (S) {
3094
+ if (!(E = P.queries[O])) return [null, !1, P, null];
3095
+ var D = E[(A.query ? A.query.index.name : null) || ""];
3096
+ if (!D) return [null, !1, P, null];
3097
+ switch (O) {
3098
3098
  case "query":
3099
- var D = N.find(function(x) {
3099
+ var N = D.find(function(x) {
3100
3100
  return x.req.limit === A.limit && x.req.values === A.values && kn(x.req.query.range, A.query.range);
3101
3101
  });
3102
- return D ? [D, !0, P, N] : [N.find(function(x) {
3102
+ return N ? [N, !0, P, D] : [D.find(function(x) {
3103
3103
  return ("limit" in x.req ? x.req.limit : 1 / 0) >= A.limit && (!A.values || x.req.values) && _a(x.req.query.range, A.query.range);
3104
- }), !1, P, N];
3104
+ }), !1, P, D];
3105
3105
  case "count":
3106
- return D = N.find(function(x) {
3106
+ return N = D.find(function(x) {
3107
3107
  return kn(x.req.query.range, A.query.range);
3108
- }), [D, !!D, P, N];
3108
+ }), [N, !!N, P, D];
3109
3109
  }
3110
- })(r, n, "query", c), w = m[0], h = m[1], O = m[2], y = m[3];
3111
- return w && h ? w.obsSet = c.obsSet : (h = a.query(c).then(function(v) {
3110
+ })(r, n, "query", c), S = m[0], h = m[1], _ = m[2], y = m[3];
3111
+ return S && h ? S.obsSet = c.obsSet : (h = a.query(c).then(function(v) {
3112
3112
  var E = v.result;
3113
- if (w && (w.res = E), u) {
3114
- for (var S = 0, A = E.length; S < A; ++S) Object.freeze(E[S]);
3113
+ if (S && (S.res = E), u) {
3114
+ for (var O = 0, A = E.length; O < A; ++O) Object.freeze(E[O]);
3115
3115
  Object.freeze(E);
3116
3116
  } else v.result = $e(E);
3117
3117
  return v;
3118
3118
  }).catch(function(v) {
3119
- return y && w && je(y, w), Promise.reject(v);
3120
- }), w = { obsSet: c.obsSet, promise: h, subscribers: /* @__PURE__ */ new Set(), type: "query", req: c, dirty: !1 }, y ? y.push(w) : (y = [w], (O = O || (He["idb://".concat(r, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[c.query.index.name || ""] = y)), Aa(w, y, d, p), w.promise.then(function(v) {
3121
- return { result: xn(v.result, c, O?.optimisticOps, a, w, u) };
3119
+ return y && S && Ge(y, S), Promise.reject(v);
3120
+ }), S = { obsSet: c.obsSet, promise: h, subscribers: /* @__PURE__ */ new Set(), type: "query", req: c, dirty: !1 }, y ? y.push(S) : (y = [S], (_ = _ || (He["idb://".concat(r, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[c.query.index.name || ""] = y)), Aa(S, y, d, p), S.promise.then(function(v) {
3121
+ return { result: xn(v.result, c, _?.optimisticOps, a, S, u) };
3122
3122
  });
3123
3123
  } });
3124
3124
  } });
@@ -3158,7 +3158,7 @@ function Ba() {
3158
3158
  })), this;
3159
3159
  }, ee.prototype.open = function() {
3160
3160
  var e = this;
3161
- return Ue(Ne, function() {
3161
+ return We(De, function() {
3162
3162
  return va(e);
3163
3163
  });
3164
3164
  }, ee.prototype._close = function() {
@@ -3188,8 +3188,8 @@ function Ba() {
3188
3188
  r.close(e);
3189
3189
  var d = r._deps.indexedDB.deleteDatabase(r.name);
3190
3190
  d.onsuccess = Z(function() {
3191
- var p, m, w;
3192
- p = r._deps, m = r.name, w = p.indexedDB, p = p.IDBKeyRange, Ir(w) || m === Mt || Dr(w, p).delete(m).catch(X), s();
3191
+ var p, m, S;
3192
+ p = r._deps, m = r.name, S = p.indexedDB, p = p.IDBKeyRange, Tr(S) || m === Mt || Nr(S, p).delete(m).catch(X), s();
3193
3193
  }), d.onerror = be(c), d.onblocked = r._fireOnBlocked;
3194
3194
  }
3195
3195
  if (n) throw new B.InvalidArgument("Invalid closeOptions argument to db.delete()");
@@ -3208,7 +3208,7 @@ function Ba() {
3208
3208
  return this._state.autoSchema;
3209
3209
  }, Object.defineProperty(ee.prototype, "tables", { get: function() {
3210
3210
  var e = this;
3211
- return I(this._allTables).map(function(r) {
3211
+ return T(this._allTables).map(function(r) {
3212
3212
  return e._allTables[r];
3213
3213
  });
3214
3214
  }, enumerable: !1, configurable: !0 }), ee.prototype.transaction = function() {
@@ -3246,39 +3246,39 @@ function Ba() {
3246
3246
  }), d && s && !s.active && (s = null);
3247
3247
  }
3248
3248
  } catch (m) {
3249
- return s ? s._promise(null, function(w, h) {
3249
+ return s ? s._promise(null, function(S, h) {
3250
3250
  h(m);
3251
3251
  }) : q(m);
3252
3252
  }
3253
- var p = function m(w, h, O, y, v) {
3253
+ var p = function m(S, h, _, y, v) {
3254
3254
  return M.resolve().then(function() {
3255
- var E = L.transless || L, S = w._createTransaction(h, O, w._dbSchema, y);
3256
- if (S.explicit = !0, E = { trans: S, transless: E }, y) S.idbtrans = y.idbtrans;
3255
+ var E = L.transless || L, O = S._createTransaction(h, _, S._dbSchema, y);
3256
+ if (O.explicit = !0, E = { trans: O, transless: E }, y) O.idbtrans = y.idbtrans;
3257
3257
  else try {
3258
- S.create(), S.idbtrans._explicit = !0, w._state.PR1398_maxLoop = 3;
3259
- } catch (N) {
3260
- return N.name === ir.InvalidState && w.isOpen() && 0 < --w._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), w.close({ disableAutoOpen: !1 }), w.open().then(function() {
3261
- return m(w, h, O, null, v);
3262
- })) : q(N);
3258
+ O.create(), O.idbtrans._explicit = !0, S._state.PR1398_maxLoop = 3;
3259
+ } catch (D) {
3260
+ return D.name === ir.InvalidState && S.isOpen() && 0 < --S._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), S.close({ disableAutoOpen: !1 }), S.open().then(function() {
3261
+ return m(S, h, _, null, v);
3262
+ })) : q(D);
3263
3263
  }
3264
3264
  var A, P = or(v);
3265
3265
  return P && et(), E = M.follow(function() {
3266
- var N;
3267
- (A = v.call(S, S)) && (P ? (N = Ie.bind(null, null), A.then(N, N)) : typeof A.next == "function" && typeof A.throw == "function" && (A = jr(A)));
3268
- }, E), (A && typeof A.then == "function" ? M.resolve(A).then(function(N) {
3269
- return S.active ? N : q(new B.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"));
3266
+ var D;
3267
+ (A = v.call(O, O)) && (P ? (D = Te.bind(null, null), A.then(D, D)) : typeof A.next == "function" && typeof A.throw == "function" && (A = Gr(A)));
3268
+ }, E), (A && typeof A.then == "function" ? M.resolve(A).then(function(D) {
3269
+ return O.active ? D : q(new B.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"));
3270
3270
  }) : E.then(function() {
3271
3271
  return A;
3272
- })).then(function(N) {
3273
- return y && S._resolve(), S._completion.then(function() {
3274
- return N;
3272
+ })).then(function(D) {
3273
+ return y && O._resolve(), O._completion.then(function() {
3274
+ return D;
3275
3275
  });
3276
- }).catch(function(N) {
3277
- return S._reject(N), q(N);
3276
+ }).catch(function(D) {
3277
+ return O._reject(D), q(D);
3278
3278
  });
3279
3279
  });
3280
3280
  }.bind(null, this, c, u, s, n);
3281
- return s ? s._promise(c, p, "lock") : L.trans ? Ue(L.transless, function() {
3281
+ return s ? s._promise(c, p, "lock") : L.trans ? We(L.transless, function() {
3282
3282
  return a._whenReady(p);
3283
3283
  }) : this._whenReady(p);
3284
3284
  }, ee.prototype.table = function(e) {
@@ -3293,53 +3293,53 @@ function Ba() {
3293
3293
  var s, c, u, d, p, m = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: X, dbReadyPromise: null, cancelOpen: X, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: r.autoOpen };
3294
3294
  m.dbReadyPromise = new M(function(h) {
3295
3295
  m.dbReadyResolve = h;
3296
- }), m.openCanceller = new M(function(h, O) {
3297
- m.cancelOpen = O;
3298
- }), this._state = m, this.name = e, this.on = mt(this, "populate", "blocked", "versionchange", "close", { ready: [cr, X] }), this.once = function(h, O) {
3296
+ }), m.openCanceller = new M(function(h, _) {
3297
+ m.cancelOpen = _;
3298
+ }), this._state = m, this.name = e, this.on = mt(this, "populate", "blocked", "versionchange", "close", { ready: [cr, X] }), this.once = function(h, _) {
3299
3299
  var y = function() {
3300
3300
  for (var v = [], E = 0; E < arguments.length; E++) v[E] = arguments[E];
3301
- n.on(h).unsubscribe(y), O.apply(n, v);
3301
+ n.on(h).unsubscribe(y), _.apply(n, v);
3302
3302
  };
3303
3303
  return n.on(h, y);
3304
3304
  }, this.on.ready.subscribe = zr(this.on.ready.subscribe, function(h) {
3305
- return function(O, y) {
3305
+ return function(_, y) {
3306
3306
  ee.vip(function() {
3307
3307
  var v, E = n._state;
3308
- E.openComplete ? (E.dbOpenError || M.resolve().then(O), y && h(O)) : E.onReadyBeingFired ? (E.onReadyBeingFired.push(O), y && h(O)) : (h(O), v = n, y || h(function S() {
3309
- v.on.ready.unsubscribe(O), v.on.ready.unsubscribe(S);
3308
+ E.openComplete ? (E.dbOpenError || M.resolve().then(_), y && h(_)) : E.onReadyBeingFired ? (E.onReadyBeingFired.push(_), y && h(_)) : (h(_), v = n, y || h(function O() {
3309
+ v.on.ready.unsubscribe(_), v.on.ready.unsubscribe(O);
3310
3310
  }));
3311
3311
  });
3312
3312
  };
3313
- }), this.Collection = (s = this, yt(ca.prototype, function(A, S) {
3313
+ }), this.Collection = (s = this, yt(ca.prototype, function(A, O) {
3314
3314
  this.db = s;
3315
3315
  var y = cn, v = null;
3316
- if (S) try {
3317
- y = S();
3316
+ if (O) try {
3317
+ y = O();
3318
3318
  } catch (P) {
3319
3319
  v = P;
3320
3320
  }
3321
- var E = A._ctx, S = E.table, A = S.hook.reading.fire;
3322
- this._ctx = { table: S, index: E.index, isPrimKey: !E.index || S.schema.primKey.keyPath && E.index === S.schema.primKey.name, range: y, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: v, or: E.or, valueMapper: A !== lt ? A : null };
3323
- })), this.Table = (c = this, yt(gn.prototype, function(h, O, y) {
3324
- this.db = c, this._tx = y, this.name = h, this.schema = O, this.hook = c._allTables[h] ? c._allTables[h].hook : mt(null, { creating: [qn, X], reading: [Zn, lt], updating: [ta, X], deleting: [ea, X] });
3325
- })), this.Transaction = (u = this, yt(da.prototype, function(h, O, y, v, E) {
3326
- var S = this;
3327
- h !== "readonly" && O.forEach(function(A) {
3328
- A = (A = y[A]) === null || A === void 0 ? void 0 : A.yProps, A && (O = O.concat(A.map(function(P) {
3321
+ var E = A._ctx, O = E.table, A = O.hook.reading.fire;
3322
+ this._ctx = { table: O, index: E.index, isPrimKey: !E.index || O.schema.primKey.keyPath && E.index === O.schema.primKey.name, range: y, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: v, or: E.or, valueMapper: A !== lt ? A : null };
3323
+ })), this.Table = (c = this, yt(gn.prototype, function(h, _, y) {
3324
+ this.db = c, this._tx = y, this.name = h, this.schema = _, this.hook = c._allTables[h] ? c._allTables[h].hook : mt(null, { creating: [qn, X], reading: [Zn, lt], updating: [ta, X], deleting: [ea, X] });
3325
+ })), this.Transaction = (u = this, yt(da.prototype, function(h, _, y, v, E) {
3326
+ var O = this;
3327
+ h !== "readonly" && _.forEach(function(A) {
3328
+ A = (A = y[A]) === null || A === void 0 ? void 0 : A.yProps, A && (_ = _.concat(A.map(function(P) {
3329
3329
  return P.updatesTable;
3330
3330
  })));
3331
- }), this.db = u, this.mode = h, this.storeNames = O, this.schema = y, this.chromeTransactionDurability = v, this.idbtrans = null, this.on = mt(this, "complete", "error", "abort"), this.parent = E || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new M(function(A, P) {
3332
- S._resolve = A, S._reject = P;
3331
+ }), this.db = u, this.mode = h, this.storeNames = _, this.schema = y, this.chromeTransactionDurability = v, this.idbtrans = null, this.on = mt(this, "complete", "error", "abort"), this.parent = E || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new M(function(A, P) {
3332
+ O._resolve = A, O._reject = P;
3333
3333
  }), this._completion.then(function() {
3334
- S.active = !1, S.on.complete.fire();
3334
+ O.active = !1, O.on.complete.fire();
3335
3335
  }, function(A) {
3336
- var P = S.active;
3337
- return S.active = !1, S.on.error.fire(A), S.parent ? S.parent._reject(A) : P && S.idbtrans && S.idbtrans.abort(), q(A);
3336
+ var P = O.active;
3337
+ return O.active = !1, O.on.error.fire(A), O.parent ? O.parent._reject(A) : P && O.idbtrans && O.idbtrans.abort(), q(A);
3338
3338
  });
3339
3339
  })), this.Version = (d = this, yt(ba.prototype, function(h) {
3340
3340
  this.db = d, this._cfg = { version: h, storesSource: null, dbschema: {}, tables: {}, contentUpgrade: null };
3341
- })), this.WhereClause = (p = this, yt(vn.prototype, function(h, O, y) {
3342
- if (this.db = p, this._ctx = { table: h, index: O === ":id" ? null : O, or: y }, this._cmp = this._ascending = V, this._descending = function(v, E) {
3341
+ })), this.WhereClause = (p = this, yt(vn.prototype, function(h, _, y) {
3342
+ if (this.db = p, this._ctx = { table: h, index: _ === ":id" ? null : _, or: y }, this._cmp = this._ascending = V, this._descending = function(v, E) {
3343
3343
  return V(E, v);
3344
3344
  }, this._max = function(v, E) {
3345
3345
  return 0 < V(v, E) ? v : E;
@@ -3350,32 +3350,32 @@ function Ba() {
3350
3350
  0 < h.newVersion ? console.warn("Another connection wants to upgrade database '".concat(n.name, "'. Closing db now to resume the upgrade.")) : console.warn("Another connection wants to delete database '".concat(n.name, "'. Closing db now to resume the delete request.")), n.close({ disableAutoOpen: !1 });
3351
3351
  }), this.on("blocked", function(h) {
3352
3352
  !h.newVersion || h.newVersion < h.oldVersion ? console.warn("Dexie.delete('".concat(n.name, "') was blocked")) : console.warn("Upgrade '".concat(n.name, "' blocked by other connection holding version ").concat(h.oldVersion / 10));
3353
- }), this._maxKey = Et(r.IDBKeyRange), this._createTransaction = function(h, O, y, v) {
3354
- return new n.Transaction(h, O, y, n._options.chromeTransactionDurability, v);
3353
+ }), this._maxKey = Et(r.IDBKeyRange), this._createTransaction = function(h, _, y, v) {
3354
+ return new n.Transaction(h, _, y, n._options.chromeTransactionDurability, v);
3355
3355
  }, this._fireOnBlocked = function(h) {
3356
- n.on("blocked").fire(h), tt.filter(function(O) {
3357
- return O.name === n.name && O !== n && !O._state.vcFired;
3358
- }).map(function(O) {
3359
- return O.on("versionchange").fire(h);
3356
+ n.on("blocked").fire(h), tt.filter(function(_) {
3357
+ return _.name === n.name && _ !== n && !_._state.vcFired;
3358
+ }).map(function(_) {
3359
+ return _.on("versionchange").fire(h);
3360
3360
  });
3361
3361
  }, this.use(Sa), this.use(Pa), this.use(Oa), this.use(Ea), this.use(wa);
3362
- var w = new Proxy(this, { get: function(h, O, y) {
3363
- if (O === "_vip") return !0;
3364
- if (O === "table") return function(E) {
3365
- return qt(n.table(E), w);
3362
+ var S = new Proxy(this, { get: function(h, _, y) {
3363
+ if (_ === "_vip") return !0;
3364
+ if (_ === "table") return function(E) {
3365
+ return qt(n.table(E), S);
3366
3366
  };
3367
- var v = Reflect.get(h, O, y);
3368
- return v instanceof gn ? qt(v, w) : O === "tables" ? v.map(function(E) {
3369
- return qt(E, w);
3370
- }) : O === "_createTransaction" ? function() {
3371
- return qt(v.apply(this, arguments), w);
3367
+ var v = Reflect.get(h, _, y);
3368
+ return v instanceof gn ? qt(v, S) : _ === "tables" ? v.map(function(E) {
3369
+ return qt(E, S);
3370
+ }) : _ === "_createTransaction" ? function() {
3371
+ return qt(v.apply(this, arguments), S);
3372
3372
  } : v;
3373
3373
  } });
3374
- this.vip = w, a.forEach(function(h) {
3374
+ this.vip = S, a.forEach(function(h) {
3375
3375
  return h(n);
3376
3376
  });
3377
3377
  }
3378
- var er, he = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", Na = (Lr.prototype.subscribe = function(e, r, n) {
3378
+ var er, he = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", Da = (Lr.prototype.subscribe = function(e, r, n) {
3379
3379
  return this._subscribe(e && typeof e != "function" ? e : { next: e, error: r, complete: n });
3380
3380
  }, Lr.prototype[he] = function() {
3381
3381
  return this;
@@ -3389,31 +3389,31 @@ function Ba() {
3389
3389
  er = { indexedDB: null, IDBKeyRange: null };
3390
3390
  }
3391
3391
  function Cn(e) {
3392
- var r, n = !1, a = new Na(function(s) {
3393
- var c = or(e), u, d = !1, p = {}, m = {}, w = { get closed() {
3392
+ var r, n = !1, a = new Da(function(s) {
3393
+ var c = or(e), u, d = !1, p = {}, m = {}, S = { get closed() {
3394
3394
  return d;
3395
3395
  }, unsubscribe: function() {
3396
3396
  d || (d = !0, u && u.abort(), h && xe.storagemutated.unsubscribe(y));
3397
3397
  } };
3398
- s.start && s.start(w);
3399
- var h = !1, O = function() {
3398
+ s.start && s.start(S);
3399
+ var h = !1, _ = function() {
3400
3400
  return mr(v);
3401
3401
  }, y = function(E) {
3402
- Qt(p, E), xr(m, p) && O();
3402
+ Qt(p, E), xr(m, p) && _();
3403
3403
  }, v = function() {
3404
- var E, S, A;
3404
+ var E, O, A;
3405
3405
  !d && er.indexedDB && (p = {}, E = {}, u && u.abort(), u = new AbortController(), A = (function(P) {
3406
- var N = Ze();
3406
+ var D = Ze();
3407
3407
  try {
3408
3408
  c && et();
3409
- var D = De(e, P);
3410
- return D = c ? D.finally(Ie) : D;
3409
+ var N = Ne(e, P);
3410
+ return N = c ? N.finally(Te) : N;
3411
3411
  } finally {
3412
- N && qe();
3412
+ D && qe();
3413
3413
  }
3414
- })(S = { subscr: E, signal: u.signal, requery: O, querier: e, trans: null }), Promise.resolve(A).then(function(P) {
3415
- n = !0, r = P, d || S.signal.aborted || (p = {}, (function(N) {
3416
- for (var D in N) if (ae(N, D)) return;
3414
+ })(O = { subscr: E, signal: u.signal, requery: _, querier: e, trans: null }), Promise.resolve(A).then(function(P) {
3415
+ n = !0, r = P, d || O.signal.aborted || (p = {}, (function(D) {
3416
+ for (var N in D) if (ae(D, N)) return;
3417
3417
  return 1;
3418
3418
  })(m = E) || h || (xe(vt, y), h = !0), mr(function() {
3419
3419
  return !d && s.next && s.next(P);
@@ -3424,7 +3424,7 @@ function Ba() {
3424
3424
  });
3425
3425
  }));
3426
3426
  };
3427
- return setTimeout(O, 0), w;
3427
+ return setTimeout(_, 0), S;
3428
3428
  });
3429
3429
  return a.hasValue = function() {
3430
3430
  return n;
@@ -3441,7 +3441,7 @@ function Ba() {
3441
3441
  ke = r;
3442
3442
  }
3443
3443
  }
3444
- ge(Ve, l(l({}, It), { delete: function(e) {
3444
+ ge(Ve, l(l({}, Tt), { delete: function(e) {
3445
3445
  return new Ve(e, { addons: [] }).delete();
3446
3446
  }, exists: function(e) {
3447
3447
  return new Ve(e, { addons: [] }).open().then(function(r) {
@@ -3451,13 +3451,13 @@ function Ba() {
3451
3451
  });
3452
3452
  }, getDatabaseNames: function(e) {
3453
3453
  try {
3454
- return r = Ve.dependencies, n = r.indexedDB, r = r.IDBKeyRange, (Ir(n) ? Promise.resolve(n.databases()).then(function(a) {
3454
+ return r = Ve.dependencies, n = r.indexedDB, r = r.IDBKeyRange, (Tr(n) ? Promise.resolve(n.databases()).then(function(a) {
3455
3455
  return a.map(function(s) {
3456
3456
  return s.name;
3457
3457
  }).filter(function(s) {
3458
3458
  return s !== Mt;
3459
3459
  });
3460
- }) : Dr(n, r).toCollection().primaryKeys()).then(e);
3460
+ }) : Nr(n, r).toCollection().primaryKeys()).then(e);
3461
3461
  } catch {
3462
3462
  return q(new B.MissingAPI());
3463
3463
  }
@@ -3467,11 +3467,11 @@ function Ba() {
3467
3467
  te(this, e);
3468
3468
  };
3469
3469
  }, ignoreTransaction: function(e) {
3470
- return L.trans ? Ue(L.transless, e) : e();
3471
- }, vip: Tr, async: function(e) {
3470
+ return L.trans ? We(L.transless, e) : e();
3471
+ }, vip: Ir, async: function(e) {
3472
3472
  return function() {
3473
3473
  try {
3474
- var r = jr(e.apply(this, arguments));
3474
+ var r = Gr(e.apply(this, arguments));
3475
3475
  return r && typeof r.then == "function" ? r : M.resolve(r);
3476
3476
  } catch (n) {
3477
3477
  return q(n);
@@ -3479,7 +3479,7 @@ function Ba() {
3479
3479
  };
3480
3480
  }, spawn: function(e, r, n) {
3481
3481
  try {
3482
- var a = jr(e.apply(n, r || []));
3482
+ var a = Gr(e.apply(n, r || []));
3483
3483
  return a && typeof a.then == "function" ? a : M.resolve(a);
3484
3484
  } catch (s) {
3485
3485
  return q(s);
@@ -3496,7 +3496,7 @@ function Ba() {
3496
3496
  typeof r == "string" ? ue(e, r, void 0) : "length" in r && [].map.call(r, function(n) {
3497
3497
  ue(e, n, void 0);
3498
3498
  });
3499
- }, shallowClone: Xr, deepClone: $e, getObjectDiff: Gr, cmp: V, asap: Yr, minKey: -1 / 0, addons: [], connections: tt, errnames: ir, dependencies: er, cache: He, semVer: "4.2.1", version: "4.2.1".split(".").map(function(e) {
3499
+ }, shallowClone: Xr, deepClone: $e, getObjectDiff: jr, cmp: V, asap: Yr, minKey: -1 / 0, addons: [], connections: tt, errnames: ir, dependencies: er, cache: He, semVer: "4.2.1", version: "4.2.1".split(".").map(function(e) {
3500
3500
  return parseInt(e);
3501
3501
  }).reduce(function(e, r, n) {
3502
3502
  return e + r / Math.pow(10, 2 * n);
@@ -3534,8 +3534,8 @@ function Ba() {
3534
3534
  });
3535
3535
  })(nr)), nr.exports;
3536
3536
  }
3537
- var Ua = Ba();
3538
- const Hr = /* @__PURE__ */ Ka(Ua), Gn = /* @__PURE__ */ Symbol.for("Dexie"), At = globalThis[Gn] || (globalThis[Gn] = Hr);
3537
+ var Wa = Ba();
3538
+ const Hr = /* @__PURE__ */ Ka(Wa), jn = /* @__PURE__ */ Symbol.for("Dexie"), At = globalThis[jn] || (globalThis[jn] = Hr);
3539
3539
  if (Hr.semVer !== At.semVer)
3540
3540
  throw new Error(`Two different versions of Dexie loaded in the same app: ${Hr.semVer} and ${At.semVer}`);
3541
3541
  const {
@@ -3576,9 +3576,9 @@ class Kn {
3576
3576
  }
3577
3577
  getHash = async (t) => {
3578
3578
  const i = await this.db.table("hashtable").where({ id: t.widget }).last().catch(() => {
3579
- G(2, ["%chash%c %capi%C %chash", o.API, o.NONE, o.APP]);
3579
+ j(2, ["%chash%c %capi%C %chash", o.API, o.NONE, o.APP]);
3580
3580
  });
3581
- return G(3, [
3581
+ return j(3, [
3582
3582
  "%cget%c %chash%c %chash",
3583
3583
  o.OK,
3584
3584
  o.NONE,
@@ -3590,7 +3590,7 @@ class Kn {
3590
3590
  };
3591
3591
  setHash = async (t) => await this.db.table("hashtable").where({
3592
3592
  id: t.widget
3593
- }).modify({ hash: t.hash }).then(() => (G(3, [
3593
+ }).modify({ hash: t.hash }).then(() => (j(3, [
3594
3594
  "%cset%c %chash%c %chash}",
3595
3595
  o.OK,
3596
3596
  o.NONE,
@@ -3598,7 +3598,7 @@ class Kn {
3598
3598
  o.NONE,
3599
3599
  o.WIDGET,
3600
3600
  t
3601
- ]), 201)).catch((i) => (G(2, [
3601
+ ]), 201)).catch((i) => (j(2, [
3602
3602
  "%cget%c %chash%c %chash",
3603
3603
  o.OK,
3604
3604
  o.NONE,
@@ -3608,7 +3608,7 @@ class Kn {
3608
3608
  t,
3609
3609
  i.message
3610
3610
  ]), 400));
3611
- clearHash = async () => await this.db.table("hashtable").clear().then(() => 201).catch((t) => (G(2, [
3611
+ clearHash = async () => await this.db.table("hashtable").clear().then(() => 201).catch((t) => (j(2, [
3612
3612
  "%cclear%c %cstorage%c %chash",
3613
3613
  o.KO,
3614
3614
  o.NONE,
@@ -3617,7 +3617,7 @@ class Kn {
3617
3617
  o.WIDGET,
3618
3618
  "clear hashes"
3619
3619
  ]), 400));
3620
- deleteHash = async (t) => await this.db.table("hashtable").where({ id: t.widget }).delete().then(() => 201).catch((i) => (G(2, [
3620
+ deleteHash = async (t) => await this.db.table("hashtable").where({ id: t.widget }).delete().then(() => 201).catch((i) => (j(2, [
3621
3621
  "%cdelete%c %cstorage%c %chash",
3622
3622
  o.KO,
3623
3623
  o.NONE,
@@ -3630,7 +3630,7 @@ class Kn {
3630
3630
  createHash = async (t) => await this.db.table("hashtable").put({
3631
3631
  id: t.widget,
3632
3632
  hash: t.hash
3633
- }).then(() => 201).catch((i) => (G(2, [
3633
+ }).then(() => 201).catch((i) => (j(2, [
3634
3634
  "%cset%c %cstorage%c %chash",
3635
3635
  o.KO,
3636
3636
  o.NONE,
@@ -3647,7 +3647,7 @@ class Kn {
3647
3647
  */
3648
3648
  getCloud = async (t) => {
3649
3649
  if (t.widget === "")
3650
- return G(3, [
3650
+ return j(3, [
3651
3651
  "%cget%c %cstorage%c %ccloud",
3652
3652
  o.NO_UPDATES,
3653
3653
  o.NONE,
@@ -3661,8 +3661,8 @@ class Kn {
3661
3661
  success: !1,
3662
3662
  query: t
3663
3663
  };
3664
- const i = await this.db.table(_.CLOUD).where({ id: t.widget }).last().catch(() => {
3665
- G(2, ["%capi%C %ccloud", o.API, o.NONE, o.CLOUD, t.widget]);
3664
+ const i = await this.db.table(w.CLOUD).where({ id: t.widget }).last().catch(() => {
3665
+ j(2, ["%capi%C %ccloud", o.API, o.NONE, o.CLOUD, t.widget]);
3666
3666
  });
3667
3667
  if (typeof i > "u")
3668
3668
  return { data: null, message: "Cloud Data error", success: !1, query: t };
@@ -3672,7 +3672,7 @@ class Kn {
3672
3672
  success: i !== void 0,
3673
3673
  query: t
3674
3674
  };
3675
- return G(3, [
3675
+ return j(3, [
3676
3676
  "%cget%c %cstorage%c %ccloud",
3677
3677
  o.OK,
3678
3678
  o.NONE,
@@ -3688,7 +3688,7 @@ class Kn {
3688
3688
  * @param data
3689
3689
  * @returns number
3690
3690
  */
3691
- setCloud = async (t, i) => t.type === _.CLOUD && i !== "" ? (G(3, [
3691
+ setCloud = async (t, i) => t.type === w.CLOUD && i !== "" ? (j(3, [
3692
3692
  "%cset%c %cstorage%c %ccloud",
3693
3693
  o.OK,
3694
3694
  o.NONE,
@@ -3696,13 +3696,13 @@ class Kn {
3696
3696
  o.NONE,
3697
3697
  o.CLOUD,
3698
3698
  i?.title ?? t.widget
3699
- ]), await this.db.table(_.CLOUD).put({
3699
+ ]), await this.db.table(w.CLOUD).put({
3700
3700
  id: t.widget,
3701
3701
  dashboard_id: t.dashboard,
3702
3702
  hash: t.hash,
3703
3703
  // data: data.data,
3704
3704
  data: i
3705
- }).then(() => 201).catch((l) => (G(2, [
3705
+ }).then(() => 201).catch((l) => (j(2, [
3706
3706
  "%cset%c %cstorage%c %ccloud",
3707
3707
  o.KO,
3708
3708
  o.NONE,
@@ -3713,8 +3713,8 @@ class Kn {
3713
3713
  l.message
3714
3714
  ]), 400))) : 400;
3715
3715
  getDashboard = async (t) => {
3716
- const i = await this.db.table(_.DASHBOARD).where({ id: t.id }).last().catch(() => {
3717
- G(2, ["%cstorage", o.STORAGE, J.DASHBOARD_LOAD, t.id]);
3716
+ const i = await this.db.table(w.DASHBOARD).where({ id: t.id }).last().catch(() => {
3717
+ j(2, ["%cstorage", o.STORAGE, J.DASHBOARD_LOAD, t.id]);
3718
3718
  });
3719
3719
  return i === void 0 ? {
3720
3720
  data: null,
@@ -3723,10 +3723,10 @@ class Kn {
3723
3723
  } : (i.message = `Dashboard ${t.id} retrieved from storage`, i.success = !0, i);
3724
3724
  };
3725
3725
  getDashboards = async (t) => {
3726
- const i = (b) => t?.id === b.id, l = (b) => t?.name ? b.name.includes(t?.name) : !1, g = await this.db.table(_.DASHBOARD).toArray().then((b) => t?.id ? b.filter(i) : b).then((b) => t?.name ? b.filter(l) : b).catch(() => {
3727
- G(2, ["%cstorage", o.STORAGE, J.DASHBOARD_LOAD, t]);
3726
+ const i = (b) => t?.id === b.id, l = (b) => t?.name ? b.name.includes(t?.name) : !1, g = await this.db.table(w.DASHBOARD).toArray().then((b) => t?.id ? b.filter(i) : b).then((b) => t?.name ? b.filter(l) : b).catch(() => {
3727
+ j(2, ["%cstorage", o.STORAGE, J.DASHBOARD_LOAD, t]);
3728
3728
  });
3729
- return g !== void 0 && G(3, [
3729
+ return g !== void 0 && j(3, [
3730
3730
  "%cstorage%c %cdashboards",
3731
3731
  o.STORAGE,
3732
3732
  o.NONE,
@@ -3745,7 +3745,7 @@ class Kn {
3745
3745
  */
3746
3746
  setDashboard = async (t) => {
3747
3747
  const i = structuredClone(t);
3748
- return delete i.data.widgets, await this.db.table(_.DASHBOARD).put({
3748
+ return delete i.data.widgets, await this.db.table(w.DASHBOARD).put({
3749
3749
  id: i.id,
3750
3750
  name: i.name,
3751
3751
  data: i.data,
@@ -3754,24 +3754,48 @@ class Kn {
3754
3754
  data: null,
3755
3755
  message: `Dashboard ${i.data.id} saved to storage`,
3756
3756
  success: !0
3757
- })).catch((l) => (G(4, ["%cstorage", o.STORAGE, _.WIDGET, t, l.message]), {
3757
+ })).catch((l) => (j(4, ["%cstorage", o.STORAGE, w.WIDGET, t, l.message]), {
3758
3758
  data: null,
3759
3759
  message: `Dashboard ${i.data.id} save error: ${l.message}`,
3760
3760
  success: !1
3761
3761
  }));
3762
3762
  };
3763
+ deleteDashboard = async (t) => await this.db.table(w.DASHBOARD).where({ id: t.id }).delete().then(() => ({
3764
+ data: null,
3765
+ message: `Dashboard ${t.id} deleted`,
3766
+ success: !0
3767
+ })).catch((i) => (j(4, ["%cstorage", o.STORAGE, w.DASHBOARD, t, i.message]), {
3768
+ data: null,
3769
+ message: `Dashboard ${t.id} delete error: ${i.message}`,
3770
+ success: !1
3771
+ }));
3772
+ deleteDashboards = async () => await this.db.table(w.DASHBOARD).delete("id").then(() => ({
3773
+ data: null,
3774
+ message: "Dashboard table deleted from storage",
3775
+ success: !0
3776
+ })).catch((t) => (console.error(
3777
+ "%cstorage",
3778
+ o.STORAGE,
3779
+ w.DASHBOARD,
3780
+ "deleted",
3781
+ t.message
3782
+ ), {
3783
+ data: null,
3784
+ message: `Dashboard table deleted error: ${t.message}`,
3785
+ success: !1
3786
+ }));
3763
3787
  /**
3764
3788
  * Wipe Message data after expires timestamp
3765
3789
  */
3766
3790
  cleanMessages = async () => {
3767
3791
  const t = Date.now() / 1e3, i = (b) => b.expires < t, l = (b) => b.expires < t;
3768
- return await this.db.table(_.TOPICS).orderBy("expires").filter(i).delete().catch((b) => (console.error(
3792
+ return await this.db.table(w.TOPICS).orderBy("expires").filter(i).delete().catch((b) => (console.error(
3769
3793
  "%cstorage%c %cclean",
3770
3794
  o.STORAGE,
3771
3795
  o.NONE,
3772
3796
  o.MESSAGES,
3773
3797
  b.message
3774
- ), 0)), await this.db.table(_.MESSAGES).orderBy("expires").filter(l).delete().catch((b) => (console.error(
3798
+ ), 0)), await this.db.table(w.MESSAGES).orderBy("expires").filter(l).delete().catch((b) => (console.error(
3775
3799
  "%clean%c %cstorage%c %cmessages",
3776
3800
  o.OK,
3777
3801
  o.NONE,
@@ -3788,7 +3812,7 @@ class Kn {
3788
3812
  */
3789
3813
  getMessages = async (t) => {
3790
3814
  if (t.widget === "")
3791
- return G(3, [
3815
+ return j(3, [
3792
3816
  "%cget%c %cstorage%c %cmessages",
3793
3817
  o.NO_UPDATES,
3794
3818
  o.NONE,
@@ -3804,11 +3828,11 @@ class Kn {
3804
3828
  };
3805
3829
  const i = t?.order ?? "utc", l = Math.floor(Date.now() / 1e3), g = t?.period ?? 0;
3806
3830
  t.since = g === 0 ? l - 3600 * 24 * 30 : l - g, this.options.delay !== 0 ? t.before = l - (this.options.delay || 0) : t.before = l;
3807
- const b = (T) => T.utc > (t?.since || 0), I = (T) => T.utc < (t?.before || l);
3831
+ const b = (I) => I.utc > (t?.since || 0), T = (I) => I.utc < (t?.before || l);
3808
3832
  try {
3809
- const T = this.db.table(_.TOPICS).where("widget_id").equals(t.widget).filter(b).filter(I);
3810
- t?.approved === "true" ? T.and((fe) => fe.approved === 1) : T.and((fe) => fe.visible === 1), T.reverse();
3811
- const te = await T.limit(t?.limit ?? 25).sortBy(i);
3833
+ const I = this.db.table(w.TOPICS).where("widget_id").equals(t.widget).filter(b).filter(T);
3834
+ t?.approved === "true" ? I.and((fe) => fe.approved === 1) : I.and((fe) => fe.visible === 1), I.reverse();
3835
+ const te = await I.limit(t?.limit ?? 25).sortBy(i);
3812
3836
  if (te.length === 0)
3813
3837
  return {
3814
3838
  data: null,
@@ -3816,7 +3840,7 @@ class Kn {
3816
3840
  success: !1,
3817
3841
  query: t
3818
3842
  };
3819
- const me = te.map((fe) => this.db.table(_.MESSAGES).get({ id: fe.message_id }));
3843
+ const me = te.map((fe) => this.db.table(w.MESSAGES).get({ id: fe.message_id }));
3820
3844
  return At.Promise.all(me).then(async (fe) => {
3821
3845
  const ge = {
3822
3846
  data: {
@@ -3828,7 +3852,7 @@ class Kn {
3828
3852
  message: "Messages retrieved successfully",
3829
3853
  success: !0
3830
3854
  };
3831
- return G(3, [
3855
+ return j(3, [
3832
3856
  "%cget%c %cstorage%c %cmessages",
3833
3857
  o.OK,
3834
3858
  o.NONE,
@@ -3838,8 +3862,8 @@ class Kn {
3838
3862
  ge
3839
3863
  ]), ge;
3840
3864
  });
3841
- } catch (T) {
3842
- return G(2, [
3865
+ } catch (I) {
3866
+ return j(2, [
3843
3867
  "%cget%c %cstorage%c %cmessages",
3844
3868
  o.OK,
3845
3869
  o.NONE,
@@ -3847,12 +3871,12 @@ class Kn {
3847
3871
  o.NONE,
3848
3872
  o.NO_UPDATES,
3849
3873
  t,
3850
- T.message
3874
+ I.message
3851
3875
  ]), { data: null, message: "Messages Data error", success: !1 };
3852
3876
  }
3853
3877
  };
3854
3878
  hideMessage = async (t, i) => {
3855
- await this.db.table(_.TOPICS).where("message_id").equals(t).modify({ visible: i ? 1 : 0 }).catch((l) => (console.error(
3879
+ await this.db.table(w.TOPICS).where("message_id").equals(t).modify({ visible: i ? 1 : 0 }).catch((l) => (console.error(
3856
3880
  "%chide%c %cstorage%c %cmessage",
3857
3881
  o.KO,
3858
3882
  o.NONE,
@@ -3869,11 +3893,11 @@ class Kn {
3869
3893
  * @returns number
3870
3894
  */
3871
3895
  setMessages = async (t, i) => {
3872
- if (t.type !== _.MESSAGES)
3896
+ if (t.type !== w.MESSAGES)
3873
3897
  return 400;
3874
3898
  const l = i.data.title;
3875
3899
  let g = 0;
3876
- return G(3, [
3900
+ return j(3, [
3877
3901
  "%cset%c %cstorage%c %cmessages",
3878
3902
  o.OK,
3879
3903
  o.NONE,
@@ -3891,13 +3915,13 @@ class Kn {
3891
3915
  sentiment: b.topics[0]?.sentiment || 0,
3892
3916
  // @ts-ignore
3893
3917
  approved: b.topics[0]?.approved ? 1 : 0
3894
- }, await this.db.table(_.MESSAGES).put({
3918
+ }, await this.db.table(w.MESSAGES).put({
3895
3919
  id: b.id,
3896
3920
  utc: b.utc,
3897
3921
  data: b,
3898
3922
  expires: b.expires
3899
- }).catch((T) => {
3900
- g++, G(4, [
3923
+ }).catch((I) => {
3924
+ g++, j(4, [
3901
3925
  "%cset%c %cstorage",
3902
3926
  o.KO,
3903
3927
  o.NONE,
@@ -3905,10 +3929,10 @@ class Kn {
3905
3929
  "set message",
3906
3930
  `title: ${l}`,
3907
3931
  b,
3908
- T.message
3932
+ I.message
3909
3933
  ]);
3910
3934
  });
3911
- const I = {
3935
+ const T = {
3912
3936
  title: l,
3913
3937
  widget_id: t.widget,
3914
3938
  visible: b.topics[0]?.visible || 1,
@@ -3923,8 +3947,8 @@ class Kn {
3923
3947
  utc: b.utc,
3924
3948
  expires: b.expires
3925
3949
  };
3926
- await this.db.table(_.TOPICS).put(I).catch((T) => {
3927
- g++, G(4, [
3950
+ await this.db.table(w.TOPICS).put(T).catch((I) => {
3951
+ g++, j(4, [
3928
3952
  "%cset%c %cstorage",
3929
3953
  o.KO,
3930
3954
  o.NONE,
@@ -3932,19 +3956,19 @@ class Kn {
3932
3956
  "set topic",
3933
3957
  `title: ${l}`,
3934
3958
  b,
3935
- T.message
3959
+ I.message
3936
3960
  ]);
3937
- }), await i.data.topics.forEach(async (T) => {
3938
- const te = T.message_id, me = T.visible ? 1 : 0, fe = T.approve ? 1 : 0, ae = T.title;
3939
- await this.db.table(_.TOPICS).where("message_id").equals(te).modify({ visible: me, approve: fe }).catch((ge) => {
3940
- g++, G(4, [
3961
+ }), await i.data.topics.forEach(async (I) => {
3962
+ const te = I.message_id, me = I.visible ? 1 : 0, fe = I.approve ? 1 : 0, ae = I.title;
3963
+ await this.db.table(w.TOPICS).where("message_id").equals(te).modify({ visible: me, approve: fe }).catch((ge) => {
3964
+ g++, j(4, [
3941
3965
  "%cset%c %cstorage",
3942
3966
  o.KO,
3943
3967
  o.NONE,
3944
3968
  o.STORAGE,
3945
3969
  "update message visibility",
3946
3970
  `title: ${ae}`,
3947
- `widget: ${T.widget_id}`,
3971
+ `widget: ${I.widget_id}`,
3948
3972
  ge.message
3949
3973
  ]);
3950
3974
  });
@@ -3959,7 +3983,7 @@ class Kn {
3959
3983
  */
3960
3984
  getSeries = async (t) => {
3961
3985
  if (t.widget === "")
3962
- return G(3, [
3986
+ return j(3, [
3963
3987
  "%cget%c %cstorage%c %cseries",
3964
3988
  o.NO_UPDATES,
3965
3989
  o.NONE,
@@ -3973,8 +3997,8 @@ class Kn {
3973
3997
  success: !1,
3974
3998
  query: t
3975
3999
  };
3976
- const i = await this.db.table(_.SERIES).where({ id: t.widget }).last().catch(() => {
3977
- G(2, [
4000
+ const i = await this.db.table(w.SERIES).where({ id: t.widget }).last().catch(() => {
4001
+ j(2, [
3978
4002
  "%cget%c %cstorage%c %cseries",
3979
4003
  o.KO,
3980
4004
  o.NONE,
@@ -3989,7 +4013,7 @@ class Kn {
3989
4013
  success: i !== void 0,
3990
4014
  query: t
3991
4015
  };
3992
- return G(3, [
4016
+ return j(3, [
3993
4017
  "%cget%c %cstorage%c %cseries",
3994
4018
  o.OK,
3995
4019
  o.NONE,
@@ -4005,7 +4029,7 @@ class Kn {
4005
4029
  * @param data
4006
4030
  * @returns number
4007
4031
  */
4008
- setSeries = async (t, i) => (delete i?.query, t.type === _.SERIES && i !== "" ? (G(3, [
4032
+ setSeries = async (t, i) => (delete i?.query, t.type === w.SERIES && i !== "" ? (j(3, [
4009
4033
  "%cset%c %cstorage%c %cseries",
4010
4034
  o.OK,
4011
4035
  o.NONE,
@@ -4013,13 +4037,13 @@ class Kn {
4013
4037
  o.NONE,
4014
4038
  o.SERIES,
4015
4039
  i?.title ?? t.widget
4016
- ]), await this.db.table(_.SERIES).put({
4040
+ ]), await this.db.table(w.SERIES).put({
4017
4041
  id: t.widget,
4018
4042
  dashboard_id: t.dashboard,
4019
4043
  hash: t.hash,
4020
4044
  // data: data.data,
4021
4045
  data: i
4022
- }).then(() => 201).catch((l) => (G(2, [
4046
+ }).then(() => 201).catch((l) => (j(2, [
4023
4047
  "%cset%c %cstorage%c %cseries",
4024
4048
  o.KO,
4025
4049
  o.NONE,
@@ -4036,7 +4060,7 @@ class Kn {
4036
4060
  */
4037
4061
  getWidget = async (t) => {
4038
4062
  if (t.id === "")
4039
- return G(3, [
4063
+ return j(3, [
4040
4064
  "%cget%c %cstorage%c %cwidget",
4041
4065
  o.KO,
4042
4066
  o.NONE,
@@ -4050,7 +4074,7 @@ class Kn {
4050
4074
  success: !1,
4051
4075
  query: t
4052
4076
  };
4053
- const i = await this.db.table(_.WIDGET).where({ id: t.id }).last().catch(() => {
4077
+ const i = await this.db.table(w.WIDGET).where({ id: t.id }).last().catch(() => {
4054
4078
  console.warn("%cstorage", o.STORAGE, J.WIDGET_LOAD, t.id);
4055
4079
  });
4056
4080
  return i === void 0 ? {
@@ -4065,10 +4089,10 @@ class Kn {
4065
4089
  * @returns IResponse
4066
4090
  */
4067
4091
  getWidgets = async (t) => {
4068
- const i = (I) => t?.dashboard === I.dashboard_id, l = (I) => t?.type === I.type, g = (I) => t?.name ? I.name.includes(t?.name) : !1, b = await this.db.table(_.WIDGET).toArray().then((I) => t?.dashboard ? I.filter(i) : I).then((I) => t?.type ? I.filter(l) : I).then((I) => t?.name ? I.filter(g) : I).catch(() => {
4069
- G(2, ["%cstorage", o.STORAGE, J.WIDGET_LOAD, t]);
4092
+ const i = (T) => t?.dashboard === T.dashboard_id, l = (T) => t?.type === T.type, g = (T) => t?.name ? T.name.includes(t?.name) : !1, b = await this.db.table(w.WIDGET).toArray().then((T) => t?.dashboard ? T.filter(i) : T).then((T) => t?.type ? T.filter(l) : T).then((T) => t?.name ? T.filter(g) : T).catch(() => {
4093
+ j(2, ["%cstorage", o.STORAGE, J.WIDGET_LOAD, t]);
4070
4094
  });
4071
- return b !== void 0 && G(3, [
4095
+ return b !== void 0 && j(3, [
4072
4096
  "%cstorage%c %cwidgets",
4073
4097
  o.STORAGE,
4074
4098
  o.NONE,
@@ -4086,7 +4110,7 @@ class Kn {
4086
4110
  * @param query IQuery
4087
4111
  * @returns number
4088
4112
  */
4089
- setWidget = async (t) => await this.db.table(_.WIDGET).put({
4113
+ setWidget = async (t) => await this.db.table(w.WIDGET).put({
4090
4114
  id: t.id,
4091
4115
  name: t.title,
4092
4116
  dashboard_id: t.dashboard_id,
@@ -4099,7 +4123,24 @@ class Kn {
4099
4123
  })).catch((i) => (console.error(
4100
4124
  "%cstorage",
4101
4125
  o.STORAGE,
4102
- _.WIDGET,
4126
+ w.WIDGET,
4127
+ t,
4128
+ i.message
4129
+ ), {
4130
+ data: null,
4131
+ message: `Widget ${t.data.id} save error: ${i.message}`,
4132
+ success: !1
4133
+ }));
4134
+ deleteWidget = async (t) => await this.db.table(w.WIDGET).where({
4135
+ id: t.id
4136
+ }).delete().then(() => ({
4137
+ data: null,
4138
+ message: `Widget ${t.data.id} deleted from storage`,
4139
+ success: !0
4140
+ })).catch((i) => (console.error(
4141
+ "%cstorage",
4142
+ o.STORAGE,
4143
+ w.WIDGET,
4103
4144
  t,
4104
4145
  i.message
4105
4146
  ), {
@@ -4107,6 +4148,21 @@ class Kn {
4107
4148
  message: `Widget ${t.data.id} save error: ${i.message}`,
4108
4149
  success: !1
4109
4150
  }));
4151
+ deleteWidgets = async () => await this.db.table(w.WIDGET).delete("id").then(() => ({
4152
+ data: null,
4153
+ message: "Widgets table deleted from storage",
4154
+ success: !0
4155
+ })).catch((t) => (console.error(
4156
+ "%cstorage",
4157
+ o.STORAGE,
4158
+ w.WIDGETS,
4159
+ "deleted",
4160
+ t.message
4161
+ ), {
4162
+ data: null,
4163
+ message: `Widgets table deleted error: ${t.message}`,
4164
+ success: !1
4165
+ }));
4110
4166
  /**
4111
4167
  * Add component subscriber
4112
4168
  * @param query IQuery
@@ -4114,7 +4170,7 @@ class Kn {
4114
4170
  */
4115
4171
  subscribe = (t) => (t = Ca(t), this.subscribers.filter(
4116
4172
  (l) => l.widget === t.widget
4117
- ).length > 0 || (t.type === _.MESSAGES && (t = Pt(this.options, t)), console.info(
4173
+ ).length > 0 || (t.type === w.MESSAGES && (t = Pt(this.options, t)), console.info(
4118
4174
  "%cstorage%c %csubscribe",
4119
4175
  o.STORAGE,
4120
4176
  o.NONE,
@@ -4139,8 +4195,8 @@ class Kn {
4139
4195
  * @returns IResponse
4140
4196
  */
4141
4197
  getSlide = async (t) => {
4142
- const i = await this.db.table(_.SLIDE).where({ id: t.id }).last().catch(() => {
4143
- G(2, ["%cstorage", o.STORAGE, J.SLIDE_LOAD, t.id]);
4198
+ const i = await this.db.table(w.SLIDE).where({ id: t.id }).last().catch(() => {
4199
+ j(2, ["%cstorage", o.STORAGE, J.SLIDE_LOAD, t.id]);
4144
4200
  });
4145
4201
  return {
4146
4202
  data: i,
@@ -4155,14 +4211,14 @@ class Kn {
4155
4211
  * @returns IResponse
4156
4212
  */
4157
4213
  getSlides = async (t) => {
4158
- const i = (T) => t?.id ? T.id === t.id : !1, l = (T) => t?.name ? T.name.includes(t?.name) : !1, g = (T) => t?.presentation_id ? T.presentation_id === t.presentation_id : !1, I = await this.db.table(_.SLIDE).toArray().then((T) => t?.presentation_id ? T.filter(g) : T).then((T) => t?.id ? T.filter(i) : T).then((T) => t?.name ? T.filter(l) : T);
4159
- return I && I.sort((T, te) => T.order_index - te.order_index), I !== void 0 && G(3, ["%cstorage%c %cslides", o.STORAGE, o.NONE, o.SLIDE, t]), {
4214
+ const i = (I) => t?.id ? I.id === t.id : !1, l = (I) => t?.name ? I.name.includes(t?.name) : !1, g = (I) => t?.presentation_id ? I.presentation_id === t.presentation_id : !1, T = await this.db.table(w.SLIDE).toArray().then((I) => t?.presentation_id ? I.filter(g) : I).then((I) => t?.id ? I.filter(i) : I).then((I) => t?.name ? I.filter(l) : I);
4215
+ return T && T.sort((I, te) => I.order_index - te.order_index), T !== void 0 && j(3, ["%cstorage%c %cslides", o.STORAGE, o.NONE, o.SLIDE, t]), {
4160
4216
  // @ts-ignore
4161
- data: I,
4217
+ data: T,
4162
4218
  query: t,
4163
4219
  // : data !== undefined ? { data, query } : null,
4164
- message: I !== void 0 ? "Slides loaded from storage" : "Slides load error",
4165
- success: I !== void 0
4220
+ message: T !== void 0 ? "Slides loaded from storage" : "Slides load error",
4221
+ success: T !== void 0
4166
4222
  };
4167
4223
  };
4168
4224
  /**
@@ -4170,7 +4226,7 @@ class Kn {
4170
4226
  * @param query IQuery
4171
4227
  * @returns number
4172
4228
  */
4173
- setSlide = async (t) => await this.db.table(_.SLIDE).put({
4229
+ setSlide = async (t) => await this.db.table(w.SLIDE).put({
4174
4230
  id: t.data.id,
4175
4231
  presentation_id: t.data.presentation_id,
4176
4232
  order_index: t.data.order_index,
@@ -4193,13 +4249,45 @@ class Kn {
4193
4249
  message: `Slide ${t.data.id} save error: ${i.message}`,
4194
4250
  success: !1
4195
4251
  }));
4252
+ deleteSlide = async (t) => await this.db.table(w.SLIDE).where({
4253
+ id: t.id
4254
+ }).delete().then(() => ({
4255
+ data: null,
4256
+ message: `Slide ${t.data.id} deleted from storage`,
4257
+ success: !0
4258
+ })).catch((i) => (console.error(
4259
+ "%cstorage",
4260
+ o.STORAGE,
4261
+ w.WIDGET,
4262
+ t,
4263
+ i.message
4264
+ ), {
4265
+ data: null,
4266
+ message: `Widget ${t.data.id} save error: ${i.message}`,
4267
+ success: !1
4268
+ }));
4269
+ deleteSlides = async () => await this.db.table(w.SLIDE).delete("id").then(() => ({
4270
+ data: null,
4271
+ message: "Slide table deleted from storage",
4272
+ success: !0
4273
+ })).catch((t) => (console.error(
4274
+ "%cstorage",
4275
+ o.STORAGE,
4276
+ w.SLIDES,
4277
+ "deleted",
4278
+ t.message
4279
+ ), {
4280
+ data: null,
4281
+ message: `Slide table deleted error: ${t.message}`,
4282
+ success: !1
4283
+ }));
4196
4284
  /**
4197
4285
  * Retrieve Presentation from Storage
4198
4286
  * @param query IQuery
4199
4287
  * @returns IResponse
4200
4288
  */
4201
4289
  getPresentation = async (t) => {
4202
- const i = await this.db.table(_.PRESENTATION).where({ id: t.id }).last().catch(() => {
4290
+ const i = await this.db.table(w.PRESENTATION).where({ id: t.id }).last().catch(() => {
4203
4291
  console.warn(
4204
4292
  "%cstorage ",
4205
4293
  o.STORAGE,
@@ -4219,8 +4307,8 @@ class Kn {
4219
4307
  * @returns IResponse
4220
4308
  */
4221
4309
  getPresentations = async (t) => {
4222
- const i = (b) => t?.name ? b.name.includes(t?.name) : !1, g = await this.db.table(_.PRESENTATION).toArray().then((b) => t?.name ? b.filter(i) : b);
4223
- return g !== void 0 && G(3, [
4310
+ const i = (b) => t?.name ? b.name.includes(t?.name) : !1, g = await this.db.table(w.PRESENTATION).toArray().then((b) => t?.name ? b.filter(i) : b);
4311
+ return g !== void 0 && j(3, [
4224
4312
  "%cstorage%c %cpresentations",
4225
4313
  o.STORAGE,
4226
4314
  o.NONE,
@@ -4238,7 +4326,7 @@ class Kn {
4238
4326
  * @param query IQuery
4239
4327
  * @returns number
4240
4328
  */
4241
- setPresentation = async (t) => await this.db.table(_.PRESENTATION).put({
4329
+ setPresentation = async (t) => await this.db.table(w.PRESENTATION).put({
4242
4330
  id: t.data.id,
4243
4331
  name: t.data.name || "Not set",
4244
4332
  data: t.data,
@@ -4260,14 +4348,46 @@ class Kn {
4260
4348
  message: `Presentation ${t.data.id} save error: ${i.message}`,
4261
4349
  success: !1
4262
4350
  }));
4351
+ deletePresentation = async (t) => await this.db.table(w.PRESENTATION).where({
4352
+ id: t.id
4353
+ }).delete().then(() => ({
4354
+ data: null,
4355
+ message: `Slide ${t.data.id} deleted from storage`,
4356
+ success: !0
4357
+ })).catch((i) => (console.error(
4358
+ "%cstorage",
4359
+ o.STORAGE,
4360
+ w.WIDGET,
4361
+ t,
4362
+ i.message
4363
+ ), {
4364
+ data: null,
4365
+ message: `Widget ${t.data.id} save error: ${i.message}`,
4366
+ success: !1
4367
+ }));
4368
+ deletePresentations = async () => await this.db.table(w.PRESENTATION).delete("id").then(() => ({
4369
+ data: null,
4370
+ message: "Presentation table deleted from storage",
4371
+ success: !0
4372
+ })).catch((t) => (console.error(
4373
+ "%cstorage",
4374
+ o.STORAGE,
4375
+ w.PRESENTATION,
4376
+ "deleted",
4377
+ t.message
4378
+ ), {
4379
+ data: null,
4380
+ message: `Presentation table deleted error: ${t.message}`,
4381
+ success: !1
4382
+ }));
4263
4383
  /**
4264
4384
  * Retrieve Preference from Storage
4265
4385
  * @param preference IPreference
4266
4386
  * @returns IResponse
4267
4387
  */
4268
4388
  getPreference = async (t) => {
4269
- const i = await this.db.table(_.PREFERENCE).where({ id: t.id }).last().catch(() => {
4270
- G(2, [
4389
+ const i = await this.db.table(w.PREFERENCE).where({ id: t.id }).last().catch(() => {
4390
+ j(2, [
4271
4391
  "%cstorage",
4272
4392
  o.STORAGE,
4273
4393
  J.PREFERENCE_LOAD,
@@ -4289,8 +4409,8 @@ class Kn {
4289
4409
  * @returns IResponse
4290
4410
  */
4291
4411
  getPreferences = async (t) => {
4292
- const i = (b) => t?.id ? t.id = b.id : !1, g = await this.db.table(_.PREFERENCE).toArray().then((b) => t?.id ? b.filter(i) : b);
4293
- return g !== void 0 && G(3, [
4412
+ const i = (b) => t?.id ? t.id = b.id : !1, g = await this.db.table(w.PREFERENCE).toArray().then((b) => t?.id ? b.filter(i) : b);
4413
+ return g !== void 0 && j(3, [
4294
4414
  "%cstorage%c %cpreferences",
4295
4415
  o.STORAGE,
4296
4416
  o.NONE,
@@ -4308,7 +4428,7 @@ class Kn {
4308
4428
  * @param preference IPreference
4309
4429
  * @returns number
4310
4430
  */
4311
- setPreference = async (t) => await this.db.table(_.PREFERENCE).put({
4431
+ setPreference = async (t) => await this.db.table(w.PREFERENCE).put({
4312
4432
  id: t.id,
4313
4433
  value: t.value,
4314
4434
  update: t.update
@@ -4333,8 +4453,8 @@ class Kn {
4333
4453
  * @returns IResponse
4334
4454
  */
4335
4455
  getImages = async (t) => {
4336
- const i = (b) => t?.id ? b.includes(t.id) : !1, g = await this.db.table(_.IMAGES).toArray().then((b) => t?.id ? b.filter(i) : b);
4337
- return g !== void 0 && G(3, [
4456
+ const i = (b) => t?.id ? b.includes(t.id) : !1, g = await this.db.table(w.IMAGES).toArray().then((b) => t?.id ? b.filter(i) : b);
4457
+ return g !== void 0 && j(3, [
4338
4458
  "%cstorage%c %cimages",
4339
4459
  o.STORAGE,
4340
4460
  o.NONE,
@@ -4352,7 +4472,7 @@ class Kn {
4352
4472
  * @param query IQuery
4353
4473
  * @returns number
4354
4474
  */
4355
- setImage = async (t) => await this.db.table(_.IMAGES).put({
4475
+ setImage = async (t) => await this.db.table(w.IMAGES).put({
4356
4476
  id: t.data.name,
4357
4477
  basename: t.data.basename,
4358
4478
  extension: t.data.extension,
@@ -4380,7 +4500,7 @@ function Vr(f) {
4380
4500
  f.oncomplete = f.onsuccess = () => t(f.result), f.onabort = f.onerror = () => i(f.error);
4381
4501
  });
4382
4502
  }
4383
- function Wa(f, t) {
4503
+ function Ua(f, t) {
4384
4504
  let i;
4385
4505
  const l = () => {
4386
4506
  if (i)
@@ -4391,11 +4511,11 @@ function Wa(f, t) {
4391
4511
  }, () => {
4392
4512
  }), i;
4393
4513
  };
4394
- return (g, b) => l().then((I) => b(I.transaction(t, g).objectStore(t)));
4514
+ return (g, b) => l().then((T) => b(T.transaction(t, g).objectStore(t)));
4395
4515
  }
4396
4516
  let Fr;
4397
4517
  function Ln() {
4398
- return Fr || (Fr = Wa("keyval-store", "keyval")), Fr;
4518
+ return Fr || (Fr = Ua("keyval-store", "keyval")), Fr;
4399
4519
  }
4400
4520
  function Ae(f, t = Ln()) {
4401
4521
  return t("readonly", (i) => Vr(i.get(f)));
@@ -4416,15 +4536,15 @@ class Bn {
4416
4536
  deleteHash = async (t) => 404;
4417
4537
  getCloud = async (t) => {
4418
4538
  const i = Y(t);
4419
- return await Ae(i).then((l) => l).catch(() => (console.warn("%capi", o.API, _.CLOUD, t.slide, t.widget), { data: null, message: "Cloud Data error", success: !1 }));
4539
+ return await Ae(i).then((l) => l).catch(() => (console.warn("%capi", o.API, w.CLOUD, t.slide, t.widget), { data: null, message: "Cloud Data error", success: !1 }));
4420
4540
  };
4421
4541
  getSeries = async (t) => {
4422
4542
  const i = Y(t);
4423
- return await Ae(i).then((l) => l).catch(() => (console.warn("%capi", o.API, _.SERIES, t.slide, t.widget), { data: null, message: "Series Data error", success: !1 }));
4543
+ return await Ae(i).then((l) => l).catch(() => (console.warn("%capi", o.API, w.SERIES, t.slide, t.widget), { data: null, message: "Series Data error", success: !1 }));
4424
4544
  };
4425
4545
  getMessages = async (t) => {
4426
4546
  const i = Y(t);
4427
- return await Ae(i).then((l) => l).catch(() => (console.warn("%capi", o.API, _.MESSAGES, t.slide, t.widget), { data: null, message: "Messages Data error", success: !1 }));
4547
+ return await Ae(i).then((l) => l).catch(() => (console.warn("%capi", o.API, w.MESSAGES, t.slide, t.widget), { data: null, message: "Messages Data error", success: !1 }));
4428
4548
  };
4429
4549
  /**
4430
4550
  * Update Cloud
@@ -4439,7 +4559,7 @@ class Bn {
4439
4559
  return delete i.success, delete i.message, await Ce(l, i).then(() => 201).catch((g) => (console.error(
4440
4560
  "%cstorage",
4441
4561
  o.STORAGE,
4442
- _.CLOUD,
4562
+ w.CLOUD,
4443
4563
  t,
4444
4564
  g.message
4445
4565
  ), 400));
@@ -4457,7 +4577,7 @@ class Bn {
4457
4577
  return delete i.success, delete i.message, await Ce(l, i).then(() => 201).catch((g) => (console.error(
4458
4578
  "%cstorage",
4459
4579
  o.STORAGE,
4460
- _.SERIES,
4580
+ w.SERIES,
4461
4581
  t,
4462
4582
  g.message
4463
4583
  ), 400));
@@ -4475,7 +4595,7 @@ class Bn {
4475
4595
  return delete i.success, delete i.message, await Ce(l, i).then(() => 201).catch((g) => (console.error(
4476
4596
  "%cstorage",
4477
4597
  o.STORAGE,
4478
- _.MESSAGES,
4598
+ w.MESSAGES,
4479
4599
  t,
4480
4600
  g.message
4481
4601
  ), 400));
@@ -4488,7 +4608,7 @@ class Bn {
4488
4608
  };
4489
4609
  getDashboard = async (t) => {
4490
4610
  const i = Y(t);
4491
- return await Ae(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, _.SLIDE, t.id), {
4611
+ return await Ae(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, w.SLIDE, t.id), {
4492
4612
  data: null,
4493
4613
  message: `Widget ${t.data.id} load error: ${l.message}`,
4494
4614
  success: !1
@@ -4516,7 +4636,7 @@ class Bn {
4516
4636
  })).catch((g) => (console.error(
4517
4637
  "%cstorage",
4518
4638
  o.STORAGE,
4519
- _.WIDGET,
4639
+ w.WIDGET,
4520
4640
  t,
4521
4641
  g.message
4522
4642
  ), {
@@ -4527,13 +4647,13 @@ class Bn {
4527
4647
  };
4528
4648
  getWidget = async (t) => {
4529
4649
  const i = Y(t);
4530
- return await Ae(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, _.SLIDE, t.id), {
4650
+ return await Ae(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, w.SLIDE, t.id), {
4531
4651
  data: null,
4532
4652
  message: `Widget ${t.data.id} load error: ${l.message}`,
4533
4653
  success: !1
4534
4654
  }));
4535
4655
  };
4536
- getWidgets = async (t) => (console.warn("%capi", o.API, _.SLIDE, t?.presentation), {
4656
+ getWidgets = async (t) => (console.warn("%capi", o.API, w.SLIDE, t?.presentation), {
4537
4657
  data: null,
4538
4658
  message: "Widgets load error: ",
4539
4659
  success: !1
@@ -4557,7 +4677,7 @@ class Bn {
4557
4677
  })).catch((g) => (console.error(
4558
4678
  "%cstorage",
4559
4679
  o.STORAGE,
4560
- _.WIDGET,
4680
+ w.WIDGET,
4561
4681
  t,
4562
4682
  g.message
4563
4683
  ), {
@@ -4566,12 +4686,28 @@ class Bn {
4566
4686
  success: !1
4567
4687
  }));
4568
4688
  };
4689
+ deleteDashboard = async (t) => ({
4690
+ data: null,
4691
+ message: "Dashboards delete error: ",
4692
+ success: !1
4693
+ });
4694
+ deleteDashboards = async () => ({
4695
+ data: null,
4696
+ message: "Dashboards delete error: ",
4697
+ success: !1
4698
+ });
4699
+ deleteWidget = async (t) => 404;
4700
+ deleteWidgets = async () => 404;
4701
+ deleteSlide = async (t) => 404;
4702
+ deleteSlides = async () => 404;
4703
+ deletePresentation = async (t) => 404;
4704
+ deletePresentations = async () => 404;
4569
4705
  /**
4570
4706
  * Add component subscriber
4571
4707
  * @param query IQuery
4572
4708
  * @returns null
4573
4709
  */
4574
- subscribe = (t) => (t.type === _.MESSAGES && (t = Pt(this.options, t)), this.subscribers.filter(
4710
+ subscribe = (t) => (t.type === w.MESSAGES && (t = Pt(this.options, t)), this.subscribers.filter(
4575
4711
  (l) => l.widget === t.widget
4576
4712
  ).length > 0 || (console.debug(
4577
4713
  "%cstorage%c %csubscribe",
@@ -4588,13 +4724,13 @@ class Bn {
4588
4724
  getSubscribers = async () => await new Promise((t) => t(this.subscribers));
4589
4725
  getSlide = async (t) => {
4590
4726
  const i = Y(t);
4591
- return await Ae(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, _.SLIDE, t.id), {
4727
+ return await Ae(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, w.SLIDE, t.id), {
4592
4728
  data: null,
4593
4729
  message: `Slide ${t.data.id} load error: ${l.message}`,
4594
4730
  success: !1
4595
4731
  }));
4596
4732
  };
4597
- getSlides = async (t) => (console.warn("%capi", o.API, _.SLIDE, t.presentation), {
4733
+ getSlides = async (t) => (console.warn("%capi", o.API, w.SLIDE, t.presentation), {
4598
4734
  data: null,
4599
4735
  message: `Slided ${t.presentation} load error: `,
4600
4736
  success: !1
@@ -4618,7 +4754,7 @@ class Bn {
4618
4754
  })).catch((g) => (console.error(
4619
4755
  "%cstorage",
4620
4756
  o.STORAGE,
4621
- _.SLIDE,
4757
+ w.SLIDE,
4622
4758
  t,
4623
4759
  g.message
4624
4760
  ), {
@@ -4629,7 +4765,7 @@ class Bn {
4629
4765
  };
4630
4766
  getPresentation = async (t) => {
4631
4767
  const i = Y(t);
4632
- return await Ae(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, _.PRESENTATION, t.id), {
4768
+ return await Ae(i).then((l) => l).catch((l) => (console.warn("%capi", o.API, w.PRESENTATION, t.id), {
4633
4769
  data: null,
4634
4770
  message: `Slide ${t.data.id} load error: ${l.message}`,
4635
4771
  success: !1
@@ -4654,7 +4790,7 @@ class Bn {
4654
4790
  })).catch((g) => (console.error(
4655
4791
  "%cstorage",
4656
4792
  o.STORAGE,
4657
- _.PRESENTATION,
4793
+ w.PRESENTATION,
4658
4794
  t,
4659
4795
  g.message
4660
4796
  ), {
@@ -4663,12 +4799,12 @@ class Bn {
4663
4799
  success: !1
4664
4800
  }));
4665
4801
  };
4666
- getPreference = async (t) => await Ae(`${_.PREFERENCE}.${t.id}`).then((i) => i).catch((i) => (console.warn("%capi", o.API, _.PREFERENCE, t.id), {
4802
+ getPreference = async (t) => await Ae(`${w.PREFERENCE}.${t.id}`).then((i) => i).catch((i) => (console.warn("%capi", o.API, w.PREFERENCE, t.id), {
4667
4803
  data: null,
4668
4804
  message: `Preference ${t.id} get error: ${i.message}`,
4669
4805
  success: !1
4670
4806
  }));
4671
- getPreferences = async () => await Ae(`${_.PREFERENCE}`).then((t) => t).catch((t) => (console.warn("%capi", o.API, _.PREFERENCE), {
4807
+ getPreferences = async () => await Ae(`${w.PREFERENCE}`).then((t) => t).catch((t) => (console.warn("%capi", o.API, w.PREFERENCE), {
4672
4808
  data: null,
4673
4809
  message: `Preferences get error: ${t.message}`,
4674
4810
  success: !1
@@ -4678,14 +4814,14 @@ class Bn {
4678
4814
  * @param preference IPreference
4679
4815
  * @returns number
4680
4816
  */
4681
- setPreference = async (t) => await Ce(`${_.PREFERENCE}.${t.id}`, t.value).then(() => ({
4817
+ setPreference = async (t) => await Ce(`${w.PREFERENCE}.${t.id}`, t.value).then(() => ({
4682
4818
  data: null,
4683
4819
  message: `Preference ${t.id} save error`,
4684
4820
  success: !0
4685
4821
  })).catch((i) => (console.error(
4686
4822
  "%cstorage",
4687
4823
  o.STORAGE,
4688
- _.PREFERENCE,
4824
+ w.PREFERENCE,
4689
4825
  t,
4690
4826
  i.message
4691
4827
  ), {
@@ -4704,7 +4840,7 @@ class Bn {
4704
4840
  success: !1
4705
4841
  });
4706
4842
  }
4707
- class Un {
4843
+ class Wn {
4708
4844
  subscribers = [];
4709
4845
  options;
4710
4846
  constructor(t) {
@@ -4728,7 +4864,7 @@ class Un {
4728
4864
  return console.warn(
4729
4865
  "%capi",
4730
4866
  o.API,
4731
- _.CLOUD,
4867
+ w.CLOUD,
4732
4868
  t.slide,
4733
4869
  t.widget,
4734
4870
  l
@@ -4743,7 +4879,7 @@ class Un {
4743
4879
  return console.warn(
4744
4880
  "%capi",
4745
4881
  o.API,
4746
- _.SERIES,
4882
+ w.SERIES,
4747
4883
  t.slide,
4748
4884
  t.widget,
4749
4885
  l
@@ -4758,7 +4894,7 @@ class Un {
4758
4894
  return console.warn(
4759
4895
  "%capi",
4760
4896
  o.API,
4761
- _.MESSAGES,
4897
+ w.MESSAGES,
4762
4898
  t.slide,
4763
4899
  t.widget,
4764
4900
  l
@@ -4776,7 +4912,7 @@ class Un {
4776
4912
  try {
4777
4913
  return localStorage.setObject(l, i), 201;
4778
4914
  } catch (g) {
4779
- return console.error("%cstorage", o.STORAGE, _.CLOUD, t, g), 400;
4915
+ return console.error("%cstorage", o.STORAGE, w.CLOUD, t, g), 400;
4780
4916
  }
4781
4917
  };
4782
4918
  /**
@@ -4790,7 +4926,7 @@ class Un {
4790
4926
  try {
4791
4927
  return localStorage.setObject(l, i), 201;
4792
4928
  } catch (g) {
4793
- return console.error("%cstorage", o.STORAGE, _.SERIES, t, g), 400;
4929
+ return console.error("%cstorage", o.STORAGE, w.SERIES, t, g), 400;
4794
4930
  }
4795
4931
  };
4796
4932
  /**
@@ -4804,7 +4940,7 @@ class Un {
4804
4940
  try {
4805
4941
  return localStorage.setObject(l, i), 200;
4806
4942
  } catch (g) {
4807
- return console.error("%cstorage", o.STORAGE, _.MESSAGES, t, g), 400;
4943
+ return console.error("%cstorage", o.STORAGE, w.MESSAGES, t, g), 400;
4808
4944
  }
4809
4945
  };
4810
4946
  cleanMessages = async (t) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((i) => i(0)));
@@ -4815,9 +4951,9 @@ class Un {
4815
4951
  };
4816
4952
  getDashboard = async (t) => {
4817
4953
  try {
4818
- return localStorage.getObject(`${_.DASHBOARD}.${t.id}`);
4954
+ return localStorage.getObject(`${w.DASHBOARD}.${t.id}`);
4819
4955
  } catch (i) {
4820
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
4956
+ return console.warn("%capi", o.API, w.SLIDE, t.id, i), {
4821
4957
  data: null,
4822
4958
  message: `Dashboard ${t.id} load error: ${i.message}`,
4823
4959
  success: !1
@@ -4830,7 +4966,7 @@ class Un {
4830
4966
  success: !1
4831
4967
  });
4832
4968
  setDashboard = async (t) => {
4833
- const i = `${_.DASHBOARD}.${t.dashboard}`;
4969
+ const i = `${w.DASHBOARD}.${t.dashboard}`;
4834
4970
  try {
4835
4971
  return localStorage.setObject(i, t), {
4836
4972
  data: null,
@@ -4838,18 +4974,20 @@ class Un {
4838
4974
  success: !0
4839
4975
  };
4840
4976
  } catch (l) {
4841
- return console.error("%cstorage", o.STORAGE, _.WIDGET, t, l), {
4977
+ return console.error("%cstorage", o.STORAGE, w.WIDGET, t, l), {
4842
4978
  data: null,
4843
4979
  message: `Dashboard ${t.data.id} save error: ${l.message}`,
4844
4980
  success: !1
4845
4981
  };
4846
4982
  }
4847
4983
  };
4984
+ deleteDashboard = async (t) => 404;
4985
+ deleteDashboards = async () => 404;
4848
4986
  getWidget = async (t) => {
4849
4987
  try {
4850
- return localStorage.getObject(`${_.WIDGET}.${t.id}`);
4988
+ return localStorage.getObject(`${w.WIDGET}.${t.id}`);
4851
4989
  } catch (i) {
4852
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
4990
+ return console.warn("%capi", o.API, w.SLIDE, t.id, i), {
4853
4991
  data: null,
4854
4992
  message: `Widget ${t.id} load error: ${i.message}`,
4855
4993
  success: !1
@@ -4870,19 +5008,25 @@ class Un {
4870
5008
  success: !0
4871
5009
  };
4872
5010
  } catch (l) {
4873
- return console.error("%cstorage", o.STORAGE, _.WIDGET, t, l), {
5011
+ return console.error("%cstorage", o.STORAGE, w.WIDGET, t, l), {
4874
5012
  data: null,
4875
5013
  message: `Widget ${t.data.id} save error: ${l.message}`,
4876
5014
  success: !1
4877
5015
  };
4878
5016
  }
4879
5017
  };
5018
+ deleteWidget = async (t) => 404;
5019
+ deleteWidgets = async () => 404;
5020
+ deleteSlide = async (t) => 404;
5021
+ deleteSlides = async () => 404;
5022
+ deletePresentation = async (t) => 404;
5023
+ deletePresentations = async () => 404;
4880
5024
  /**
4881
5025
  * Add component subscriber
4882
5026
  * @param query IQuery
4883
5027
  * @returns null
4884
5028
  */
4885
- subscribe = (t) => (t.type === _.MESSAGES && (t = Pt(this.options, t)), this.subscribers.filter(
5029
+ subscribe = (t) => (t.type === w.MESSAGES && (t = Pt(this.options, t)), this.subscribers.filter(
4886
5030
  (l) => l.widget === t.widget
4887
5031
  ).length || (console.debug(
4888
5032
  "%cstorage%c %csubscribe",
@@ -4899,9 +5043,9 @@ class Un {
4899
5043
  getSubscribers = async () => await new Promise((t) => t(this.subscribers));
4900
5044
  getSlide = async (t) => {
4901
5045
  try {
4902
- return localStorage.getObject(`${_.SLIDE}.${t.id}`);
5046
+ return localStorage.getObject(`${w.SLIDE}.${t.id}`);
4903
5047
  } catch (i) {
4904
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
5048
+ return console.warn("%capi", o.API, w.SLIDE, t.id, i), {
4905
5049
  data: null,
4906
5050
  message: `Slide ${t.id} load error: ${i.message}`,
4907
5051
  success: !1
@@ -4910,9 +5054,9 @@ class Un {
4910
5054
  };
4911
5055
  getSlides = async (t) => {
4912
5056
  try {
4913
- return localStorage.getObject(`${_.SLIDE}.${t.id}`);
5057
+ return localStorage.getObject(`${w.SLIDE}.${t.id}`);
4914
5058
  } catch (i) {
4915
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
5059
+ return console.warn("%capi", o.API, w.SLIDE, t.id, i), {
4916
5060
  data: null,
4917
5061
  message: `Slide ${t.id} load error: ${i.message}`,
4918
5062
  success: !1
@@ -4921,7 +5065,7 @@ class Un {
4921
5065
  };
4922
5066
  setSlide = async (t) => {
4923
5067
  try {
4924
- return localStorage.setObject(`${_.SLIDE}.${t.data.id}`, {
5068
+ return localStorage.setObject(`${w.SLIDE}.${t.data.id}`, {
4925
5069
  id: t.data.id,
4926
5070
  title: t.data.title || "Not set",
4927
5071
  json: t.data.json || {},
@@ -4932,7 +5076,7 @@ class Un {
4932
5076
  success: !0
4933
5077
  };
4934
5078
  } catch (i) {
4935
- return console.error("%cstorage", o.STORAGE, _.SLIDE, t, i), {
5079
+ return console.error("%cstorage", o.STORAGE, w.SLIDE, t, i), {
4936
5080
  data: null,
4937
5081
  message: `Slide ${t.data.id} save error: ${i.message}`,
4938
5082
  success: !1
@@ -4942,13 +5086,13 @@ class Un {
4942
5086
  getPresentation = async (t) => {
4943
5087
  try {
4944
5088
  return localStorage.getObject(
4945
- `${_.PRESENTATION}.${t.presentation}`
5089
+ `${w.PRESENTATION}.${t.presentation}`
4946
5090
  );
4947
5091
  } catch (i) {
4948
5092
  return console.warn(
4949
5093
  "%capi",
4950
5094
  o.API,
4951
- _.PRESENTATION,
5095
+ w.PRESENTATION,
4952
5096
  t.presentation,
4953
5097
  i
4954
5098
  ), {
@@ -4960,9 +5104,9 @@ class Un {
4960
5104
  };
4961
5105
  getPresentations = async () => {
4962
5106
  try {
4963
- return localStorage.getObject(`${_.PRESENTATION}.`);
5107
+ return localStorage.getObject(`${w.PRESENTATION}.`);
4964
5108
  } catch (t) {
4965
- return console.warn("%capi", o.API, _.PRESENTATION, t), {
5109
+ return console.warn("%capi", o.API, w.PRESENTATION, t), {
4966
5110
  data: null,
4967
5111
  message: `Presentations get error: ${t.message}`,
4968
5112
  success: !1
@@ -4972,7 +5116,7 @@ class Un {
4972
5116
  setPresentation = async (t) => {
4973
5117
  try {
4974
5118
  return localStorage.setObject(
4975
- `${_.PRESENTATION}.${t.data.id}`,
5119
+ `${w.PRESENTATION}.${t.data.id}`,
4976
5120
  t.data
4977
5121
  ), {
4978
5122
  data: null,
@@ -4980,7 +5124,7 @@ class Un {
4980
5124
  success: !0
4981
5125
  };
4982
5126
  } catch (i) {
4983
- return console.error("%cstorage", o.STORAGE, _.PRESENTATION, t, i), {
5127
+ return console.error("%cstorage", o.STORAGE, w.PRESENTATION, t, i), {
4984
5128
  data: null,
4985
5129
  message: `Presentation ${t.data.id} save error: ${i.message}`,
4986
5130
  success: !1
@@ -4989,9 +5133,9 @@ class Un {
4989
5133
  };
4990
5134
  getPreference = async (t) => {
4991
5135
  try {
4992
- return localStorage.getObject(`${_.PREFERENCE}.${t.id}`);
5136
+ return localStorage.getObject(`${w.PREFERENCE}.${t.id}`);
4993
5137
  } catch (i) {
4994
- return console.warn("%capi", o.API, _.PREFERENCE, t.id, i), {
5138
+ return console.warn("%capi", o.API, w.PREFERENCE, t.id, i), {
4995
5139
  data: null,
4996
5140
  message: `Preference ${t.id} load error: ${i.message}`,
4997
5141
  success: !1
@@ -5000,9 +5144,9 @@ class Un {
5000
5144
  };
5001
5145
  getPreferences = async () => {
5002
5146
  try {
5003
- return localStorage.getObject(`${_.PREFERENCE}.`);
5147
+ return localStorage.getObject(`${w.PREFERENCE}.`);
5004
5148
  } catch (t) {
5005
- return console.warn("%capi", o.API, _.PREFERENCE, t), {
5149
+ return console.warn("%capi", o.API, w.PREFERENCE, t), {
5006
5150
  data: null,
5007
5151
  message: `Preference get error: ${t.message}`,
5008
5152
  success: !1
@@ -5012,7 +5156,7 @@ class Un {
5012
5156
  setPreference = async (t) => {
5013
5157
  try {
5014
5158
  return localStorage.setObject(
5015
- `${_.PREFERENCE}.${t.id}`,
5159
+ `${w.PREFERENCE}.${t.id}`,
5016
5160
  t.value
5017
5161
  ), {
5018
5162
  data: null,
@@ -5023,7 +5167,7 @@ class Un {
5023
5167
  return console.error(
5024
5168
  "%cstorage",
5025
5169
  o.STORAGE,
5026
- _.PREFERENCE,
5170
+ w.PREFERENCE,
5027
5171
  t,
5028
5172
  i
5029
5173
  ), {
@@ -5044,7 +5188,7 @@ class Un {
5044
5188
  success: !1
5045
5189
  });
5046
5190
  }
5047
- class Wn {
5191
+ class Un {
5048
5192
  subscribers = [];
5049
5193
  options;
5050
5194
  constructor(t) {
@@ -5068,7 +5212,7 @@ class Wn {
5068
5212
  return console.warn(
5069
5213
  "%capi",
5070
5214
  o.API,
5071
- _.CLOUD,
5215
+ w.CLOUD,
5072
5216
  t.slide,
5073
5217
  t.widget,
5074
5218
  l
@@ -5083,7 +5227,7 @@ class Wn {
5083
5227
  return console.warn(
5084
5228
  "%capi",
5085
5229
  o.API,
5086
- _.SERIES,
5230
+ w.SERIES,
5087
5231
  t.slide,
5088
5232
  t.widget,
5089
5233
  l
@@ -5098,7 +5242,7 @@ class Wn {
5098
5242
  return console.warn(
5099
5243
  "%capi",
5100
5244
  o.API,
5101
- _.MESSAGES,
5245
+ w.MESSAGES,
5102
5246
  t.slide,
5103
5247
  t.widget,
5104
5248
  l
@@ -5116,7 +5260,7 @@ class Wn {
5116
5260
  try {
5117
5261
  return sessionStorage.setObject(l, i), 201;
5118
5262
  } catch (g) {
5119
- return console.error("%cstorage", o.STORAGE, _.CLOUD, t, g), 400;
5263
+ return console.error("%cstorage", o.STORAGE, w.CLOUD, t, g), 400;
5120
5264
  }
5121
5265
  };
5122
5266
  /**
@@ -5130,7 +5274,7 @@ class Wn {
5130
5274
  try {
5131
5275
  return sessionStorage.setObject(l, i), 201;
5132
5276
  } catch (g) {
5133
- return console.error("%cstorage", o.STORAGE, _.SERIES, t, g), 400;
5277
+ return console.error("%cstorage", o.STORAGE, w.SERIES, t, g), 400;
5134
5278
  }
5135
5279
  };
5136
5280
  /**
@@ -5144,7 +5288,7 @@ class Wn {
5144
5288
  try {
5145
5289
  return sessionStorage.setObject(l, i), 200;
5146
5290
  } catch (g) {
5147
- return console.error("%cstorage", o.STORAGE, _.MESSAGES, t, g), 400;
5291
+ return console.error("%cstorage", o.STORAGE, w.MESSAGES, t, g), 400;
5148
5292
  }
5149
5293
  };
5150
5294
  cleanMessages = async (t) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((i) => i(0)));
@@ -5155,9 +5299,9 @@ class Wn {
5155
5299
  };
5156
5300
  getDashboard = async (t) => {
5157
5301
  try {
5158
- return sessionStorage.getObject(`${_.DASHBOARD}.${t.id}`);
5302
+ return sessionStorage.getObject(`${w.DASHBOARD}.${t.id}`);
5159
5303
  } catch (i) {
5160
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
5304
+ return console.warn("%capi", o.API, w.SLIDE, t.id, i), {
5161
5305
  data: null,
5162
5306
  message: `Dashboard ${t.id} load error: ${i.message}`,
5163
5307
  success: !1
@@ -5169,8 +5313,10 @@ class Wn {
5169
5313
  message: "Dashboards get error: ",
5170
5314
  success: !1
5171
5315
  });
5316
+ deleteDashboard = async (t) => 404;
5317
+ deleteDashboards = async () => 404;
5172
5318
  setDashboard = async (t) => {
5173
- const i = `${_.DASHBOARD}.${t.dashboard}`;
5319
+ const i = `${w.DASHBOARD}.${t.dashboard}`;
5174
5320
  try {
5175
5321
  return sessionStorage.setObject(i, t), {
5176
5322
  data: null,
@@ -5178,7 +5324,7 @@ class Wn {
5178
5324
  success: !0
5179
5325
  };
5180
5326
  } catch (l) {
5181
- return console.error("%cstorage", o.STORAGE, _.WIDGET, t, l), {
5327
+ return console.error("%cstorage", o.STORAGE, w.WIDGET, t, l), {
5182
5328
  data: null,
5183
5329
  message: `Dashboard ${t.data.id} save error: ${l.message}`,
5184
5330
  success: !1
@@ -5187,9 +5333,9 @@ class Wn {
5187
5333
  };
5188
5334
  getWidget = async (t) => {
5189
5335
  try {
5190
- return sessionStorage.getObject(`${_.WIDGET}.${t.id}`);
5336
+ return sessionStorage.getObject(`${w.WIDGET}.${t.id}`);
5191
5337
  } catch (i) {
5192
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
5338
+ return console.warn("%capi", o.API, w.SLIDE, t.id, i), {
5193
5339
  data: null,
5194
5340
  message: `Widget ${t.id} load error: ${i.message}`,
5195
5341
  success: !1
@@ -5210,19 +5356,25 @@ class Wn {
5210
5356
  success: !0
5211
5357
  };
5212
5358
  } catch (l) {
5213
- return console.error("%cstorage", o.STORAGE, _.WIDGET, t, l), {
5359
+ return console.error("%cstorage", o.STORAGE, w.WIDGET, t, l), {
5214
5360
  data: null,
5215
5361
  message: `Slide ${t.data.id} save error: ${l.message}`,
5216
5362
  success: !1
5217
5363
  };
5218
5364
  }
5219
5365
  };
5366
+ deleteWidget = async (t) => 404;
5367
+ deleteWidgets = async () => 404;
5368
+ deleteSlide = async (t) => 404;
5369
+ deleteSlides = async () => 404;
5370
+ deletePresentation = async (t) => 404;
5371
+ deletePresentations = async () => 404;
5220
5372
  /**
5221
5373
  * Add component subscriber
5222
5374
  * @param query IQuery
5223
5375
  * @returns null
5224
5376
  */
5225
- subscribe = (t) => (t.type === _.MESSAGES && (t = Pt(this.options, t)), this.subscribers.filter(
5377
+ subscribe = (t) => (t.type === w.MESSAGES && (t = Pt(this.options, t)), this.subscribers.filter(
5226
5378
  (l) => l.widget === t.widget
5227
5379
  ).length || (console.debug(
5228
5380
  "%cstorage%c %csubscribe",
@@ -5239,9 +5391,9 @@ class Wn {
5239
5391
  getSubscribers = async () => await new Promise((t) => t(this.subscribers));
5240
5392
  getSlide = async (t) => {
5241
5393
  try {
5242
- return sessionStorage.getObject(`${_.SLIDE}.${t.id}`);
5394
+ return sessionStorage.getObject(`${w.SLIDE}.${t.id}`);
5243
5395
  } catch (i) {
5244
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
5396
+ return console.warn("%capi", o.API, w.SLIDE, t.id, i), {
5245
5397
  data: null,
5246
5398
  message: `Slide ${t.id} load error: ${i.message}`,
5247
5399
  success: !1
@@ -5250,9 +5402,9 @@ class Wn {
5250
5402
  };
5251
5403
  getSlides = async (t) => {
5252
5404
  try {
5253
- return sessionStorage.getObject(`${_.SLIDE}.${t.id}`);
5405
+ return sessionStorage.getObject(`${w.SLIDE}.${t.id}`);
5254
5406
  } catch (i) {
5255
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
5407
+ return console.warn("%capi", o.API, w.SLIDE, t.id, i), {
5256
5408
  data: null,
5257
5409
  message: `Slide ${t.id} load error: ${i.message}`,
5258
5410
  success: !1
@@ -5266,7 +5418,7 @@ class Wn {
5266
5418
  */
5267
5419
  setSlide = async (t) => {
5268
5420
  try {
5269
- return sessionStorage.setObject(`${_.SLIDE}.${t.data.id}`, {
5421
+ return sessionStorage.setObject(`${w.SLIDE}.${t.data.id}`, {
5270
5422
  id: t.data.id,
5271
5423
  title: t.data.title || "Not set",
5272
5424
  json: t.data.json || {},
@@ -5277,7 +5429,7 @@ class Wn {
5277
5429
  success: !0
5278
5430
  };
5279
5431
  } catch (i) {
5280
- return console.error("%cstorage", o.STORAGE, _.SLIDE, t, i), {
5432
+ return console.error("%cstorage", o.STORAGE, w.SLIDE, t, i), {
5281
5433
  data: null,
5282
5434
  message: `Slide ${t.data.id} save error: ${i.message}`,
5283
5435
  success: !1
@@ -5287,13 +5439,13 @@ class Wn {
5287
5439
  getPresentation = async (t) => {
5288
5440
  try {
5289
5441
  return sessionStorage.getObject(
5290
- `${_.PRESENTATION}.${t.presentation}`
5442
+ `${w.PRESENTATION}.${t.presentation}`
5291
5443
  );
5292
5444
  } catch (i) {
5293
5445
  return console.warn(
5294
5446
  "%capi",
5295
5447
  o.API,
5296
- _.PRESENTATION,
5448
+ w.PRESENTATION,
5297
5449
  t.presentation,
5298
5450
  i
5299
5451
  ), {
@@ -5305,9 +5457,9 @@ class Wn {
5305
5457
  };
5306
5458
  getPresentations = async () => {
5307
5459
  try {
5308
- return sessionStorage.getObject(`${_.PRESENTATION}.`);
5460
+ return sessionStorage.getObject(`${w.PRESENTATION}.`);
5309
5461
  } catch (t) {
5310
- return console.warn("%capi", o.API, _.PRESENTATION, t), {
5462
+ return console.warn("%capi", o.API, w.PRESENTATION, t), {
5311
5463
  data: null,
5312
5464
  message: `Presentations get error: ${t.message}`,
5313
5465
  success: !1
@@ -5317,7 +5469,7 @@ class Wn {
5317
5469
  setPresentation = async (t) => {
5318
5470
  try {
5319
5471
  return sessionStorage.setObject(
5320
- `${_.PRESENTATION}.${t.data.id}`,
5472
+ `${w.PRESENTATION}.${t.data.id}`,
5321
5473
  t.data
5322
5474
  ), {
5323
5475
  data: null,
@@ -5325,7 +5477,7 @@ class Wn {
5325
5477
  success: !0
5326
5478
  };
5327
5479
  } catch (i) {
5328
- return console.error("%cstorage", o.STORAGE, _.PRESENTATION, t, i), {
5480
+ return console.error("%cstorage", o.STORAGE, w.PRESENTATION, t, i), {
5329
5481
  data: null,
5330
5482
  message: `Presentation ${t.data.id} save error: ${i.message}`,
5331
5483
  success: !1
@@ -5334,9 +5486,9 @@ class Wn {
5334
5486
  };
5335
5487
  getPreference = async (t) => {
5336
5488
  try {
5337
- return sessionStorage.getObject(`${_.PREFERENCE}.${t.id}`);
5489
+ return sessionStorage.getObject(`${w.PREFERENCE}.${t.id}`);
5338
5490
  } catch (i) {
5339
- return console.warn("%capi", o.API, _.PREFERENCE, t.id, i), {
5491
+ return console.warn("%capi", o.API, w.PREFERENCE, t.id, i), {
5340
5492
  data: null,
5341
5493
  message: `Preference ${t.id} load error: ${i.message}`,
5342
5494
  success: !1
@@ -5345,9 +5497,9 @@ class Wn {
5345
5497
  };
5346
5498
  getPreferences = async () => {
5347
5499
  try {
5348
- return sessionStorage.getObject(`${_.PREFERENCE}`);
5500
+ return sessionStorage.getObject(`${w.PREFERENCE}`);
5349
5501
  } catch (t) {
5350
- return console.warn("%capi", o.API, _.PREFERENCE, t), {
5502
+ return console.warn("%capi", o.API, w.PREFERENCE, t), {
5351
5503
  data: null,
5352
5504
  message: `Preferences get error: ${t.message}`,
5353
5505
  success: !1
@@ -5357,7 +5509,7 @@ class Wn {
5357
5509
  setPreference = async (t) => {
5358
5510
  try {
5359
5511
  return sessionStorage.setObject(
5360
- `${_.PREFERENCE}.${t.id}`,
5512
+ `${w.PREFERENCE}.${t.id}`,
5361
5513
  t.value
5362
5514
  ), {
5363
5515
  data: null,
@@ -5368,7 +5520,7 @@ class Wn {
5368
5520
  return console.error(
5369
5521
  "%cstorage",
5370
5522
  o.STORAGE,
5371
- _.PREFERENCE,
5523
+ w.PREFERENCE,
5372
5524
  t,
5373
5525
  i
5374
5526
  ), {
@@ -5408,7 +5560,7 @@ class Fn {
5408
5560
  return console.warn(
5409
5561
  "%capi",
5410
5562
  o.API,
5411
- _.CLOUD,
5563
+ w.CLOUD,
5412
5564
  t.slide,
5413
5565
  t.widget,
5414
5566
  l
@@ -5423,7 +5575,7 @@ class Fn {
5423
5575
  return console.warn(
5424
5576
  "%capi",
5425
5577
  o.API,
5426
- _.SERIES,
5578
+ w.SERIES,
5427
5579
  t.slide,
5428
5580
  t.widget,
5429
5581
  l
@@ -5438,7 +5590,7 @@ class Fn {
5438
5590
  return console.warn(
5439
5591
  "%capi",
5440
5592
  o.API,
5441
- _.MESSAGES,
5593
+ w.MESSAGES,
5442
5594
  t.slide,
5443
5595
  t.widget,
5444
5596
  l
@@ -5497,7 +5649,7 @@ class Fn {
5497
5649
  try {
5498
5650
  return window.__bc.DashboardData[t.id];
5499
5651
  } catch (i) {
5500
- return console.warn("%capi", o.API, _.DASHBOARD, t.id, i), {
5652
+ return console.warn("%capi", o.API, w.DASHBOARD, t.id, i), {
5501
5653
  data: null,
5502
5654
  message: `Dashboard ${t.id} load error: ${i.message}`,
5503
5655
  success: !1
@@ -5518,18 +5670,20 @@ class Fn {
5518
5670
  success: !0
5519
5671
  };
5520
5672
  } catch (l) {
5521
- return console.error("%cstorage", o.STORAGE, _.DASHBOARD, t, l), {
5673
+ return console.error("%cstorage", o.STORAGE, w.DASHBOARD, t, l), {
5522
5674
  data: null,
5523
5675
  message: `Dashboard ${t.data.id} save error: ${l.message}`,
5524
5676
  success: !1
5525
5677
  };
5526
5678
  }
5527
5679
  };
5680
+ deleteDashboard = async (t) => 404;
5681
+ deleteDashboards = async () => 404;
5528
5682
  getWidget = async (t) => {
5529
5683
  try {
5530
5684
  return window.__bc.WidgetData[t.id];
5531
5685
  } catch (i) {
5532
- return console.warn("%capi", o.API, _.WIDGET, t.id, i), {
5686
+ return console.warn("%capi", o.API, w.WIDGET, t.id, i), {
5533
5687
  data: null,
5534
5688
  message: `Widget ${t.id} load error: ${i.message}`,
5535
5689
  success: !1
@@ -5550,19 +5704,25 @@ class Fn {
5550
5704
  success: !0
5551
5705
  };
5552
5706
  } catch (l) {
5553
- return console.error("%cstorage", o.STORAGE, _.WIDGET, t, l), {
5707
+ return console.error("%cstorage", o.STORAGE, w.WIDGET, t, l), {
5554
5708
  data: null,
5555
5709
  message: `Slide ${t.data.id} save error: ${l.message}`,
5556
5710
  success: !1
5557
5711
  };
5558
5712
  }
5559
5713
  };
5714
+ deleteWidget = async (t) => 404;
5715
+ deleteWidgets = async () => 404;
5716
+ deleteSlide = async (t) => 404;
5717
+ deleteSlides = async () => 404;
5718
+ deletePresentation = async (t) => 404;
5719
+ deletePresentations = async () => 404;
5560
5720
  /**
5561
5721
  * Add component subscriber
5562
5722
  * @param query IQuery
5563
5723
  * @returns null
5564
5724
  */
5565
- subscribe = (t) => (t.type === _.MESSAGES && (t = Pt(this.options, t)), this.subscribers.filter(
5725
+ subscribe = (t) => (t.type === w.MESSAGES && (t = Pt(this.options, t)), this.subscribers.filter(
5566
5726
  (l) => l.widget === t.widget
5567
5727
  ).length || (console.debug(
5568
5728
  "%cstorage%c %csubscribe",
@@ -5581,7 +5741,7 @@ class Fn {
5581
5741
  try {
5582
5742
  return window.__bc.SlideData[t.id];
5583
5743
  } catch (i) {
5584
- return console.warn("%capi", o.API, _.SLIDE, t.id, i), {
5744
+ return console.warn("%capi", o.API, w.SLIDE, t.id, i), {
5585
5745
  data: null,
5586
5746
  message: `Slide ${t.id} load error: ${i.message}`,
5587
5747
  success: !1
@@ -5597,7 +5757,7 @@ class Fn {
5597
5757
  return console.warn(
5598
5758
  "%capi",
5599
5759
  o.API,
5600
- _.PRESENTATION,
5760
+ w.PRESENTATION,
5601
5761
  t.presentation_id,
5602
5762
  i
5603
5763
  ), {
@@ -5620,7 +5780,7 @@ class Fn {
5620
5780
  success: !0
5621
5781
  };
5622
5782
  } catch (i) {
5623
- return console.error("%cstorage", o.STORAGE, _.SLIDE, t, i), {
5783
+ return console.error("%cstorage", o.STORAGE, w.SLIDE, t, i), {
5624
5784
  data: null,
5625
5785
  message: `Slide ${t.data.id} save error: ${i.message}`,
5626
5786
  success: !1
@@ -5635,7 +5795,7 @@ class Fn {
5635
5795
  return console.warn(
5636
5796
  "%capi",
5637
5797
  o.API,
5638
- _.PRESENTATION,
5798
+ w.PRESENTATION,
5639
5799
  t.presentation,
5640
5800
  i
5641
5801
  ), {
@@ -5649,7 +5809,7 @@ class Fn {
5649
5809
  try {
5650
5810
  return window.__bc.PresentationData;
5651
5811
  } catch (t) {
5652
- return console.warn("%capi", o.API, _.PRESENTATION, t), {
5812
+ return console.warn("%capi", o.API, w.PRESENTATION, t), {
5653
5813
  data: null,
5654
5814
  message: `Presentations get error: ${t.message}`,
5655
5815
  success: !1
@@ -5664,7 +5824,7 @@ class Fn {
5664
5824
  success: !0
5665
5825
  };
5666
5826
  } catch (i) {
5667
- return console.error("%cstorage", o.STORAGE, _.PRESENTATION, t, i), {
5827
+ return console.error("%cstorage", o.STORAGE, w.PRESENTATION, t, i), {
5668
5828
  data: null,
5669
5829
  message: `Presentation ${t.data.id} save error: ${i.message}`,
5670
5830
  success: !1
@@ -5675,7 +5835,7 @@ class Fn {
5675
5835
  try {
5676
5836
  return window.__bc.Preferences[t.id];
5677
5837
  } catch (i) {
5678
- return console.warn("%capi", o.API, _.PREFERENCE, t.id, i), {
5838
+ return console.warn("%capi", o.API, w.PREFERENCE, t.id, i), {
5679
5839
  data: null,
5680
5840
  message: `Preference ${t.id} load error: ${i.message}`,
5681
5841
  success: !1
@@ -5686,7 +5846,7 @@ class Fn {
5686
5846
  try {
5687
5847
  return window.__bc.Preferences;
5688
5848
  } catch (t) {
5689
- return console.warn("%capi", o.API, _.PREFERENCE, t), {
5849
+ return console.warn("%capi", o.API, w.PREFERENCE, t), {
5690
5850
  data: null,
5691
5851
  message: `Preferences get error: ${t.message}`,
5692
5852
  success: !1
@@ -5704,7 +5864,7 @@ class Fn {
5704
5864
  return console.error(
5705
5865
  "%cstorage",
5706
5866
  o.STORAGE,
5707
- _.PREFERENCE,
5867
+ w.PREFERENCE,
5708
5868
  t,
5709
5869
  i
5710
5870
  ), {
@@ -5733,21 +5893,21 @@ class rs {
5733
5893
  subscribers = [];
5734
5894
  // private temp: {[x:string]:any} = []
5735
5895
  constructor(t) {
5736
- switch (G(3, [
5896
+ switch (j(3, [
5737
5897
  "%cpresentation",
5738
5898
  o.PRESENTATION,
5739
5899
  t.presentation,
5740
5900
  J.VERSION,
5741
5901
  $a
5742
- ]), this.options = t, this.sm = null, this.bc = new BroadcastChannel(this.options.presentation), this.api = new Ga(t), t.storage) {
5902
+ ]), this.options = t, this.sm = null, this.bc = new BroadcastChannel(this.options.presentation), this.api = new ja(t), t.storage) {
5743
5903
  case pe.DEXIE:
5744
5904
  this.sm = new Kn(t);
5745
5905
  break;
5746
5906
  case pe.LOCAL:
5747
- this.sm = new Wn(t);
5907
+ this.sm = new Un(t);
5748
5908
  break;
5749
5909
  case pe.SESSION:
5750
- this.sm = new Un(t);
5910
+ this.sm = new Wn(t);
5751
5911
  break;
5752
5912
  case pe.KEYVAL:
5753
5913
  this.sm = new Bn(t);
@@ -5764,7 +5924,7 @@ class rs {
5764
5924
  delete this.subscribers[t.widget];
5765
5925
  }
5766
5926
  update = async (t) => {
5767
- if (G(3, ["%cupdate%c %cdata", o.NO_UPDATES, o.NONE, o.MESSAGES, t]), this.sm === null || Object.keys(this.subscribers).length === 0)
5927
+ if (j(3, ["%cupdate%c %cdata", o.NO_UPDATES, o.NONE, o.MESSAGES, t]), this.sm === null || Object.keys(this.subscribers).length === 0)
5768
5928
  return;
5769
5929
  const i = [];
5770
5930
  Object.values(this.subscribers).forEach((l) => {
@@ -5785,12 +5945,12 @@ class rs {
5785
5945
  processResponse = async (t) => {
5786
5946
  let i, l = { code: 400, hash: "" }, g = "", b;
5787
5947
  if (t.success === !0) {
5788
- const I = t.query;
5789
- switch (I.type) {
5790
- case _.MESSAGES:
5791
- b = await this.sm?.getHash(I), b === "none" && (I.hash = "temp", await this.sm?.createHash(I)), t.data.messages = t.data.messages.filter(
5792
- (T) => T.id !== null
5793
- ), g = t.data.messages.length > 0 ? Wr(t.data.messages[0].utc) : "none", b === g ? (G(3, [
5948
+ const T = t.query;
5949
+ switch (T.type) {
5950
+ case w.MESSAGES:
5951
+ b = await this.sm?.getHash(T), b === "none" && (T.hash = "temp", await this.sm?.createHash(T)), t.data.messages = t.data.messages.filter(
5952
+ (I) => I.id !== null
5953
+ ), g = t.data.messages.length > 0 ? Ur(t.data.messages[0].utc) : "none", b === g ? (j(3, [
5794
5954
  "%cset%c %cstorage%c %cmessages",
5795
5955
  o.NO_UPDATES,
5796
5956
  o.NONE,
@@ -5799,35 +5959,35 @@ class rs {
5799
5959
  o.MESSAGES,
5800
5960
  t.data?.title ?? t.query.widget,
5801
5961
  `same hash:${g}`
5802
- ]), l.code = 204) : this.sm !== null ? (I.hash = g, await this.sm?.setHash(I), l.code = await this.sm.setMessages(t.query, t).then(async (T) => (this.broadcastUpdate(T, t), T)).catch((T) => 500)) : l.code = 500;
5962
+ ]), l.code = 204) : this.sm !== null ? (T.hash = g, await this.sm?.setHash(T), l.code = await this.sm.setMessages(t.query, t).then(async (I) => (this.broadcastUpdate(I, t), I)).catch((I) => 500)) : l.code = 500;
5803
5963
  break;
5804
- case _.CLOUD:
5805
- b = await this.sm?.getHash(I), b === "none" && (I.hash = "temp", await this.sm?.createHash(I)), g = Wr(t.data.cloud), b === g ? (G(3, [
5964
+ case w.CLOUD:
5965
+ b = await this.sm?.getHash(T), b === "none" && (T.hash = "temp", await this.sm?.createHash(T)), g = Ur(t.data.cloud), b === g ? (j(3, [
5806
5966
  "%cset%c %cstorage%c %ccloud",
5807
5967
  o.NO_UPDATES,
5808
5968
  o.NONE,
5809
5969
  o.STORAGE,
5810
5970
  o.NONE,
5811
5971
  o.CLOUD,
5812
- t.data?.title ?? I.widget,
5972
+ t.data?.title ?? T.widget,
5813
5973
  `same hash:${g}`
5814
- ]), G(4, [
5974
+ ]), j(4, [
5815
5975
  "%cdebug%c %ccloud",
5816
5976
  o.NO_UPDATES,
5817
5977
  o.NONE,
5818
5978
  o.CLOUD,
5819
5979
  t.query
5820
- ]), l = { code: 204, hash: g }) : (I.hash = g, await this.sm?.setHash(I), i = {
5980
+ ]), l = { code: 204, hash: g }) : (T.hash = g, await this.sm?.setHash(T), i = {
5821
5981
  data: {
5822
5982
  cloud: t.data
5823
5983
  },
5824
5984
  message: t.message,
5825
5985
  success: t.success,
5826
5986
  query: t.query
5827
- }, this.sm !== null ? l.code = await this.sm.setCloud(t.query, i.data).then((T) => (this.broadcastUpdate(T, t), T)).catch((T) => 500) : l.code = 500);
5987
+ }, this.sm !== null ? l.code = await this.sm.setCloud(t.query, i.data).then((I) => (this.broadcastUpdate(I, t), I)).catch((I) => 500) : l.code = 500);
5828
5988
  break;
5829
- case _.SERIES:
5830
- b = await this.sm?.getHash(I), b === "none" && (I.hash = "temp", await this.sm?.createHash(I)), g = Wr(t.data.series), b === g ? (G(3, [
5989
+ case w.SERIES:
5990
+ b = await this.sm?.getHash(T), b === "none" && (T.hash = "temp", await this.sm?.createHash(T)), g = Ur(t.data.series), b === g ? (j(3, [
5831
5991
  "%cset%c %cstorage%c %cseries",
5832
5992
  o.NO_UPDATES,
5833
5993
  o.NONE,
@@ -5836,32 +5996,32 @@ class rs {
5836
5996
  o.SERIES,
5837
5997
  t.data?.title ?? t.query.widget,
5838
5998
  `same hash:${g}`
5839
- ]), G(4, [
5999
+ ]), j(4, [
5840
6000
  "%cdebug%c %cseries",
5841
6001
  o.NO_UPDATES,
5842
6002
  o.NONE,
5843
6003
  o.SERIES,
5844
- I
5845
- ]), l = { code: 204, hash: g }) : (I.hash = g, await this.sm?.setHash(I), i = {
6004
+ T
6005
+ ]), l = { code: 204, hash: g }) : (T.hash = g, await this.sm?.setHash(T), i = {
5846
6006
  data: t.data,
5847
6007
  message: t.message,
5848
6008
  success: t.success,
5849
6009
  query: t.query
5850
- }, this.sm !== null ? l.code = await this.sm?.setSeries(I, t.data).then((T) => (this.broadcastUpdate(T, t), T)).catch((T) => 500) : l.code = 500);
6010
+ }, this.sm !== null ? l.code = await this.sm?.setSeries(T, t.data).then((I) => (this.broadcastUpdate(I, t), I)).catch((I) => 500) : l.code = 500);
5851
6011
  break;
5852
6012
  default:
5853
- G(3, [
5854
- `%cfetch%c %capi% %c${I.type} `,
6013
+ j(3, [
6014
+ `%cfetch%c %capi% %c${T.type} `,
5855
6015
  o.KO,
5856
6016
  o.NONE,
5857
6017
  o.API,
5858
6018
  o.NONE,
5859
6019
  o.NO_UPDATES,
5860
- `Bad request: type ${I.type} unknown`
6020
+ `Bad request: type ${T.type} unknown`
5861
6021
  ]), l = { code: 404, hash: g };
5862
6022
  }
5863
6023
  } else
5864
- switch (G(3, [
6024
+ switch (j(3, [
5865
6025
  `%cset%c %c${t.query.type}%c %cunauthorized`,
5866
6026
  o.KO,
5867
6027
  o.NONE,
@@ -5870,18 +6030,18 @@ class rs {
5870
6030
  o.NO_UPDATES,
5871
6031
  t.query
5872
6032
  ]), t.query.type) {
5873
- case _.MESSAGES:
5874
- return this.sm !== null ? await this.sm?.getMessages(t.query).then((I) => (this.broadcastUpdate(201, I), { code: 201, hash: g })) : { code: 500, hash: g };
5875
- case _.CLOUD:
5876
- return this.sm !== null ? await this.sm?.getCloud(t.query).then((I) => (this.broadcastUpdate(201, I), { code: 201, hash: g })) : { code: 500, hash: g };
5877
- case _.SERIES:
5878
- return this.sm !== null ? await this.sm?.getSeries(t.query).then((I) => (this.broadcastUpdate(201, I), { code: 201, hash: g })) : { code: 500, hash: g };
6033
+ case w.MESSAGES:
6034
+ return this.sm !== null ? await this.sm?.getMessages(t.query).then((T) => (this.broadcastUpdate(201, T), { code: 201, hash: g })) : { code: 500, hash: g };
6035
+ case w.CLOUD:
6036
+ return this.sm !== null ? await this.sm?.getCloud(t.query).then((T) => (this.broadcastUpdate(201, T), { code: 201, hash: g })) : { code: 500, hash: g };
6037
+ case w.SERIES:
6038
+ return this.sm !== null ? await this.sm?.getSeries(t.query).then((T) => (this.broadcastUpdate(201, T), { code: 201, hash: g })) : { code: 500, hash: g };
5879
6039
  }
5880
6040
  return t = null, l;
5881
6041
  };
5882
6042
  startBroadcastListener = () => {
5883
6043
  const t = this.options.presentation;
5884
- G(3, ["%cchannel%c %capi", o.BROADCAST, o.NONE, o.API, t]), this.bc && (this.bc.onmessage = (i) => {
6044
+ j(3, ["%cchannel%c %capi", o.BROADCAST, o.NONE, o.API, t]), this.bc && (this.bc.onmessage = (i) => {
5885
6045
  this.actions(i);
5886
6046
  }, this.bc.postMessage({ event: J.STORAGE_INIT, data: {} }));
5887
6047
  };
@@ -5891,7 +6051,7 @@ class rs {
5891
6051
  broadcastUpdate = (t, i) => {
5892
6052
  switch (t) {
5893
6053
  case 201:
5894
- G(3, [
6054
+ j(3, [
5895
6055
  `%cupdate%c %cwidget%c %c${i.query?.type}`,
5896
6056
  o.BROADCAST,
5897
6057
  o.NONE,
@@ -5900,7 +6060,7 @@ class rs {
5900
6060
  _t(i.query),
5901
6061
  // @ts-expect-error query.widget is obligatory but not always
5902
6062
  `${i?.data?.title ?? ""} ${i.query.widget}`
5903
- ]), G(4, [
6063
+ ]), j(4, [
5904
6064
  "%cdebug%c %cevent",
5905
6065
  o.NO_UPDATES,
5906
6066
  o.NONE,
@@ -5914,7 +6074,7 @@ class rs {
5914
6074
  case 204:
5915
6075
  break;
5916
6076
  default:
5917
- G(2, [
6077
+ j(2, [
5918
6078
  `%cupdate%c %cwidget%c %c${i.query?.type}`,
5919
6079
  o.KO,
5920
6080
  o.NONE,
@@ -5934,7 +6094,7 @@ class rs {
5934
6094
  switch (t.data.event) {
5935
6095
  case J.SUBSCRIBE:
5936
6096
  const i = t.data.data;
5937
- i.widget !== void 0 && (G(3, [
6097
+ i.widget !== void 0 && (j(3, [
5938
6098
  `%csubscribe%c %cwidget%c %c${t.data.data.type}`,
5939
6099
  o.BROADCAST,
5940
6100
  o.NONE,
@@ -5945,7 +6105,7 @@ class rs {
5945
6105
  ]), this.addSubscriber(i));
5946
6106
  break;
5947
6107
  case J.UPDATE:
5948
- G(3, [
6108
+ j(3, [
5949
6109
  "%cupdate%c %capi%c %cstorage",
5950
6110
  o.BROADCAST,
5951
6111
  o.NONE,
@@ -5956,7 +6116,7 @@ class rs {
5956
6116
  ]), await this.update(t.data.data);
5957
6117
  break;
5958
6118
  case "stream":
5959
- G(3, [
6119
+ j(3, [
5960
6120
  "%cupdate%c %capi%c %cstorage",
5961
6121
  o.BROADCAST,
5962
6122
  o.NONE,
@@ -5970,7 +6130,7 @@ class rs {
5970
6130
  };
5971
6131
  cleanMessages = async () => {
5972
6132
  if (this.options?.suspended) {
5973
- G(2, [
6133
+ j(2, [
5974
6134
  "%cclean%c %cstorage%c %cmessages",
5975
6135
  o.KO,
5976
6136
  o.NONE,
@@ -5981,10 +6141,8 @@ class rs {
5981
6141
  ]);
5982
6142
  return;
5983
6143
  }
5984
- const t = this.options?.retention || 86400 * 40, i = await this.sm?.cleanMessages(
5985
- t
5986
- );
5987
- G(3, [
6144
+ const t = this.options?.retention || 86400 * 40, i = await this.sm?.cleanMessages(t);
6145
+ j(3, [
5988
6146
  "%cclean%c %cstorage%c %cmessages",
5989
6147
  o.OK,
5990
6148
  o.NONE,
@@ -5996,7 +6154,7 @@ class rs {
5996
6154
  };
5997
6155
  hideMessage = async (t) => {
5998
6156
  const i = await this.sm?.hideMessage(t.id, 0);
5999
- return G(3, [
6157
+ return j(3, [
6000
6158
  "%chide%c %cstorage%c %cmessages",
6001
6159
  o.OK,
6002
6160
  o.NONE,
@@ -6014,11 +6172,15 @@ class rs {
6014
6172
  setSlide = async (t) => await this.sm?.setSlide(t);
6015
6173
  loadSlide = async (t) => await this.api.loadSlide(t);
6016
6174
  storeSlide = async (t) => await this.api.storeSlide(t);
6175
+ deleteSlide = async (t) => await this.sm?.deleteSlide(t);
6176
+ deleteSlides = async () => await this.sm?.deleteSlides();
6017
6177
  getPresentation = async (t) => await this.sm?.getPresentation(t);
6018
6178
  getPresentations = async (t) => await this.sm?.getPresentations(t);
6019
6179
  setPresentation = async (t) => await this.sm?.setPresentation(t);
6020
6180
  loadPresentation = async (t) => await this.api.loadPresentation(t);
6021
6181
  storePresentation = async (t) => await this.api.storePresentation(t);
6182
+ deletePresentation = async (t) => await this.sm?.deletePresentation(t);
6183
+ deleteWPresentations = async () => await this.sm?.deletePresentations();
6022
6184
  getPreference = async (t) => await this.sm?.getPreference(t);
6023
6185
  getPreferences = async (t) => await this.sm?.getPreferences(t);
6024
6186
  setPreference = async (t) => await this.sm?.setPreference(t);
@@ -6030,8 +6192,12 @@ class rs {
6030
6192
  getWidget = async (t) => await this.sm?.getWidget(t);
6031
6193
  getWidgets = async (t) => await this.sm?.getWidgets(t);
6032
6194
  setWidget = async (t) => await this.sm?.setWidget(t);
6195
+ deleteWidget = async (t) => await this.sm?.deleteWidget(t);
6196
+ deleteWidgets = async () => await this.sm?.deleteWidgets();
6033
6197
  loadDashboards = async (t) => await this.api.loadDashboards(t);
6034
6198
  getDashboard = async (t) => await this.sm?.getDashboard(t);
6199
+ deleteDashboard = async (t) => await this.sm?.deleteDashboard(t);
6200
+ deleteWDashboards = async () => await this.sm?.deleteDashboards();
6035
6201
  getDashboards = async () => await this.sm?.getDashboards();
6036
6202
  setDashboard = async (t) => await this.sm?.setDashboard(t);
6037
6203
  loadImages = async (t) => await this.api.loadImages(t);
@@ -6051,10 +6217,10 @@ class Fa {
6051
6217
  this.sm = new Kn(t);
6052
6218
  break;
6053
6219
  case pe.LOCAL:
6054
- this.sm = new Wn(t);
6220
+ this.sm = new Un(t);
6055
6221
  break;
6056
6222
  case pe.SESSION:
6057
- this.sm = new Un(t);
6223
+ this.sm = new Wn(t);
6058
6224
  break;
6059
6225
  case pe.KEYVAL:
6060
6226
  this.sm = new Bn(t);
@@ -6069,7 +6235,7 @@ class Fa {
6069
6235
  * @param query Widgets parameters, type "cloud"
6070
6236
  * @returns IResponse
6071
6237
  */
6072
- getCloud = async (t) => t.type !== _.CLOUD ? (console.warn(
6238
+ getCloud = async (t) => t.type !== w.CLOUD ? (console.warn(
6073
6239
  "%cget%c %cstorage%c %ccloud",
6074
6240
  o.KO,
6075
6241
  o.NONE,
@@ -6089,7 +6255,7 @@ class Fa {
6089
6255
  * @param query Widgets parameters, type "messages"
6090
6256
  * @returns IResponse
6091
6257
  */
6092
- getMessages = async (t) => t.type !== _.MESSAGES ? (console.warn(
6258
+ getMessages = async (t) => t.type !== w.MESSAGES ? (console.warn(
6093
6259
  "%cget%c %cstorage%c %cmessages",
6094
6260
  o.KO,
6095
6261
  o.NONE,
@@ -6109,7 +6275,7 @@ class Fa {
6109
6275
  * @param query Widgets parameters, type "series"
6110
6276
  * @returns IResponse
6111
6277
  */
6112
- getSeries = async (t) => t.type !== _.SERIES ? (console.warn(
6278
+ getSeries = async (t) => t.type !== w.SERIES ? (console.warn(
6113
6279
  "%cget%c %cstorage%c %cseries",
6114
6280
  o.KO,
6115
6281
  o.NONE,
@@ -6143,7 +6309,7 @@ class ns {
6143
6309
  const g = { ...t.dataset };
6144
6310
  delete g.hmr;
6145
6311
  const b = window.__bc.opts;
6146
- g.presentation = b?.presentation ?? `${l} not found`, this.query = g, Ia(t), this.storageReader = new Fa(b), this.broadcastChannel = new BroadcastChannel(g.presentation), this.broadcastListener();
6312
+ g.presentation = b?.presentation ?? `${l} not found`, this.query = g, Ta(t), this.storageReader = new Fa(b), this.broadcastChannel = new BroadcastChannel(g.presentation), this.broadcastListener();
6147
6313
  }
6148
6314
  addCallbackListener(t) {
6149
6315
  this.callbacks.push(t);
@@ -6163,7 +6329,7 @@ class ns {
6163
6329
  try {
6164
6330
  if (l.dashboard === t.dashboard && l.widget === t.widget) {
6165
6331
  const g = await this.getData();
6166
- g?.success && (G(4, [
6332
+ g?.success && (j(4, [
6167
6333
  `%cset%c %cwidget%c %c${this.query.type}`,
6168
6334
  o.OK,
6169
6335
  o.NONE,
@@ -6177,7 +6343,7 @@ class ns {
6177
6343
  }));
6178
6344
  }
6179
6345
  } catch (g) {
6180
- G(4, [J.WIDGET_UPDATE, l, g.message, g]);
6346
+ j(4, [J.WIDGET_UPDATE, l, g.message, g]);
6181
6347
  }
6182
6348
  break;
6183
6349
  case J.APP_READY:
@@ -6194,7 +6360,7 @@ class ns {
6194
6360
  this.query.dashboard?.length && this.query.widget?.length && this.query.type?.length && (this.broadcastChannel.postMessage({
6195
6361
  event: J.SUBSCRIBE,
6196
6362
  data: this.query
6197
- }), G(3, [
6363
+ }), j(3, [
6198
6364
  `%csubscribe%c %cwidget%c %c${this.query.type}`,
6199
6365
  o.SUBSCRIBE,
6200
6366
  o.NONE,
@@ -6202,7 +6368,7 @@ class ns {
6202
6368
  o.NONE,
6203
6369
  _t(this.query),
6204
6370
  this.query.widget
6205
- ]), G(4, [
6371
+ ]), j(4, [
6206
6372
  "%cdebug%c %cwidget",
6207
6373
  o.NO_UPDATES,
6208
6374
  o.NONE,
@@ -6217,11 +6383,11 @@ class ns {
6217
6383
  */
6218
6384
  getData = async () => {
6219
6385
  switch (this.query.type) {
6220
- case _.CLOUD:
6386
+ case w.CLOUD:
6221
6387
  return await this.getCloud();
6222
- case _.MESSAGES:
6388
+ case w.MESSAGES:
6223
6389
  return await this.getMessages();
6224
- case _.SERIES:
6390
+ case w.SERIES:
6225
6391
  return await this.getSeries();
6226
6392
  }
6227
6393
  return {
@@ -6236,7 +6402,7 @@ class ns {
6236
6402
  *
6237
6403
  * @returns IResponse
6238
6404
  */
6239
- getCloud = async () => this.query.type !== _.CLOUD ? (G(3, [
6405
+ getCloud = async () => this.query.type !== w.CLOUD ? (j(3, [
6240
6406
  "%cget%c %cstorage%c %cwidget",
6241
6407
  o.KO,
6242
6408
  o.NONE,
@@ -6246,7 +6412,7 @@ class ns {
6246
6412
  this.query.widget,
6247
6413
  "Wrong method call for getCloud, expected type is",
6248
6414
  this.query.type
6249
- ]), G(4, [
6415
+ ]), j(4, [
6250
6416
  "%cdebug%c %ccloud",
6251
6417
  o.NO_UPDATES,
6252
6418
  o.NONE,
@@ -6263,7 +6429,7 @@ class ns {
6263
6429
  *
6264
6430
  * @returns IResponse
6265
6431
  */
6266
- getMessages = async () => this.query.type !== _.MESSAGES ? (G(3, [
6432
+ getMessages = async () => this.query.type !== w.MESSAGES ? (j(3, [
6267
6433
  "%cget%c %cstorage%c %cwidget",
6268
6434
  o.KO,
6269
6435
  o.NONE,
@@ -6273,7 +6439,7 @@ class ns {
6273
6439
  this.query.widget,
6274
6440
  "Wrong method call for getMessages, expected type is",
6275
6441
  this.query.type
6276
- ]), G(4, [
6442
+ ]), j(4, [
6277
6443
  "%debug%c %cmessages",
6278
6444
  o.NO_UPDATES,
6279
6445
  o.NONE,
@@ -6289,7 +6455,7 @@ class ns {
6289
6455
  *
6290
6456
  * @returns IResponse
6291
6457
  */
6292
- getSeries = async () => this.query.type !== _.SERIES ? (G(3, [
6458
+ getSeries = async () => this.query.type !== w.SERIES ? (j(3, [
6293
6459
  "%cget%c %cstorage%c %cwidget",
6294
6460
  o.KO,
6295
6461
  o.NONE,
@@ -6299,7 +6465,7 @@ class ns {
6299
6465
  this.query.widget,
6300
6466
  "Wrong method call for getSeries, expected type is",
6301
6467
  this.query.type
6302
- ]), G(4, [
6468
+ ]), j(4, [
6303
6469
  "%cdebug%c %cseries",
6304
6470
  o.NO_UPDATES,
6305
6471
  o.NONE,
@@ -6318,14 +6484,14 @@ class ns {
6318
6484
  * @param modal IModal
6319
6485
  */
6320
6486
  showModal = (t) => {
6321
- G(3, [
6487
+ j(3, [
6322
6488
  "%cmodal%c %cwidget",
6323
6489
  o.OK,
6324
6490
  o.NONE,
6325
6491
  o.WIDGET,
6326
6492
  J.SHOW_MODAL,
6327
6493
  t.showComponent,
6328
- Da(this.element.attributes)
6494
+ Na(this.element.attributes)
6329
6495
  // props['data-widget'],
6330
6496
  ]);
6331
6497
  const i = new CustomEvent(J.SHOW_MODAL, {