buzzcasting-utils 1.8.7 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,25 +1,25 @@
1
- var h = /* @__PURE__ */ ((e) => (e.CARDS = "cards", e.CLOUD = "cloud", e.DASHBOARD = "dashboard", e.DASHBOARDS = "dashboards", e.IMAGES = "images", e.MESSAGES = "messages", e.PREFERENCE = "preference", e.PREFERENCES = "preferences", e.PRESENTATION = "presentation", e.PRESENTATIONS = "presentations", e.SERIES = "series", e.SLIDE = "slide", e.SLIDES = "slides", e.TOPICS = "topics", e.WIDGET = "widget", e.WIDGETS = "widgets", e))(h || {}), m = /* @__PURE__ */ ((e) => (e.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", e.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", e.BROADCAST = "color:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", e.CLOUD = "color:purple;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", e.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", e.ERROR = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", e.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", e.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", e.KO = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", e.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", e.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", e.NONE = "color:transparent;background-color:transparent;", e.OK = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", e.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", e.SERIES = "color:purple;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", e.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", e.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", e.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", e.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", e.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", e))(m || {}), I = /* @__PURE__ */ ((e) => (e.ADD_SLIDE = "addSlide", e.APP_READY = "appReady", e.API_UPDATE = "apiUpdate", e.BACKGROUND_UPDATE = "backgroundUpdate", e.BUILDER_PREVIEW = "builderPreview", e.COMPONENT_UPDATE = "componentUpdate", e.APPROVE_MESSAGE = "approveMessage", e.CHANNEL = "channel", e.CLEAN_MESSAGES = "cleanMessages", e.CLOSE_BUILDER_DIALOG = "closeBuilderDialog", e.CLOSE_BUILDER_MODAL = "closeBuilderModal", e.CLOSE_MODAL = "closeModal", e.COLOR_UPDATE = "colorUpdate", e.COMPONENT_INDEX = "componentIndex", e.CSS_SET = "setCss", e.CSS_STORE = "storeCss", e.DASHBOARD_LOAD = "loadDashboard", e.DASHBOARD_STORE = "storeDashboard", e.DASHBOARD_UPDATED = "dashboardUpdated", e.ERROR = "error", e.HIDE_MESSAGE = "hideMessage", e.HIDE_LABELS = "hideLabels", e.IMAGE_GET = "getImage", e.IMAGE_SET = "setImage", e.IMAGE_STORED = "imageStored", e.LAUPPUT_UPDATE = "layoutUpdate", e.PREV_SLIDE = "prevSlide", e.RELOAD_PRESENTATION = "reloadPresentation", e.STAR_MESSAGE = "starMessage", e.GOTO_SLIDE = "gotoSlide", e.NEXT_SLIDE = "nextSlide", e.PREFERENCE_LOAD = "loadPreference", e.PREFERENCE_STORE = "storePreference", e.PREFERENCE_UPDATED = "preferenceUpdated", e.PAUSE_PRESENTATION = "pausePresentation", e.PRESENTATION_READY = "presentationReady", e.PRESENTATION_LOAD = "loadPresentation", e.PRESENTATION_STORE = "storePresentation", e.PRESENTATION_UPDATED = "presentationUpdated", e.ROW_COL_UPDATE = "rowcolupdate", e.SCREENSHOT_TAKE = "takeScreenshot", e.SCREENSHOT_STORE = "storeScreenshot", e.SECTION_UPDATE = "sectionUpdate", e.SHOW_BUILDER_DIALOG = "showBuilderDialog", e.SHOW_BUILDER_MODAL = "showBuilderModal", e.SHOW_MODAL = "showModal", e.SLIDE_DID_LOAD = "slideDidLoad", e.SLIDE_GET = "getSlide", e.SLIDE_GOTO = "slideGoto", e.SLIDE_LOAD = "loadSlide", e.SLIDE_READY = "slideReady", e.SLIDE_SAVED = "slideSaved", e.SLIDE_SET = "setSlide", e.SLIDE_STORE = "storeSlide", e.SLIDE_STORED = "slideStored", e.SLIDE_TRANSITIONER = "slideTransitioner", e.SLIDE_UPDATED = "slideUpdated", e.START_TRANSITIONER = "startTransitioner", e.STORAGE_INIT = "storageInit", e.SUBSCRIBE = "subscribe", e.SUSPEND_ACCOUNT = "suspendAccount", e.SWITCH_PRESENTATION = "switchPresentation", e.REMOVE_CLOUD = "removeCloud", e.UPDATE = "update", e.UPLOAD_COMPLETED = "uploadCompleted", e.VERSION = "version", e.WIDGETS_CLEAR = "widgetsClear", e.WIDGET_DID_LOAD = "widgetDidLoad", e.WIDGET_DID_UPDATE = "widgetDidUpdate", e.WIDGET_LOAD = "widgetLoad", e.WIDGET_STORE = "widgetStore", e.WIDGET_UPDATE = "widgetUpdate", e.WS_API_REQUEST = "wsApiRequest", e.WS_API_RESPONSE = "wsApiResponse", e.WS_API_UPDATE = "wsApiRUpdate", e))(I || {}), D = /* @__PURE__ */ ((e) => (e.APPROVED = "approved", e.BEFORE = "before", e.DELAYED = "delayed", e.NONE = "none", e.REALTIME = "realtime", e))(D || {}), P = /* @__PURE__ */ ((e) => (e.KEYVAL = "keyval", e.LOCAL = "local", e.SESSION = "session", e.DEXIE = "dexie", e.WINDOW = "window", e))(P || {});
2
- function J(e) {
1
+ var h = /* @__PURE__ */ ((e) => (e.CARDS = "cards", e.CLOUD = "cloud", e.DASHBOARD = "dashboard", e.DASHBOARDS = "dashboards", e.IMAGES = "images", e.MESSAGES = "messages", e.PREFERENCE = "preference", e.PREFERENCES = "preferences", e.PRESENTATION = "presentation", e.PRESENTATIONS = "presentations", e.SERIES = "series", e.SLIDE = "slide", e.SLIDES = "slides", e.TOPICS = "topics", e.WIDGET = "widget", e.WIDGETS = "widgets", e))(h || {}), g = /* @__PURE__ */ ((e) => (e.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", e.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", e.BROADCAST = "color:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", e.CLOUD = "color:purple;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", e.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", e.ERROR = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", e.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", e.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", e.KO = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", e.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", e.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", e.NONE = "color:transparent;background-color:transparent;", e.OK = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", e.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", e.SERIES = "color:purple;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", e.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", e.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", e.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", e.WIDGET = "color:black;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", e.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", e))(g || {}), v = /* @__PURE__ */ ((e) => (e.ADD_SLIDE = "addSlide", e.APP_READY = "appReady", e.API_UPDATE = "apiUpdate", e.BACKGROUND_UPDATE = "backgroundUpdate", e.BUILDER_PREVIEW = "builderPreview", e.COMPONENT_UPDATE = "componentUpdate", e.APPROVE_MESSAGE = "approveMessage", e.CHANNEL = "channel", e.CLEAN_MESSAGES = "cleanMessages", e.CLOSE_BUILDER_DIALOG = "closeBuilderDialog", e.CLOSE_BUILDER_MODAL = "closeBuilderModal", e.CLOSE_MODAL = "closeModal", e.COLOR_UPDATE = "colorUpdate", e.COMPONENT_INDEX = "componentIndex", e.CSS_SET = "setCss", e.CSS_STORE = "storeCss", e.DASHBOARD_LOAD = "loadDashboard", e.DASHBOARD_STORE = "storeDashboard", e.DASHBOARD_UPDATED = "dashboardUpdated", e.ERROR = "error", e.HIDE_MESSAGE = "hideMessage", e.HIDE_LABELS = "hideLabels", e.IMAGE_GET = "getImage", e.IMAGE_SET = "setImage", e.IMAGE_STORED = "imageStored", e.LAUPPUT_UPDATE = "layoutUpdate", e.PREV_SLIDE = "prevSlide", e.RELOAD_PRESENTATION = "reloadPresentation", e.STAR_MESSAGE = "starMessage", e.GOTO_SLIDE = "gotoSlide", e.NEXT_SLIDE = "nextSlide", e.PREFERENCE_LOAD = "loadPreference", e.PREFERENCE_STORE = "storePreference", e.PREFERENCE_UPDATED = "preferenceUpdated", e.PAUSE_PRESENTATION = "pausePresentation", e.PRESENTATION_READY = "presentationReady", e.PRESENTATION_LOAD = "loadPresentation", e.PRESENTATION_STORE = "storePresentation", e.PRESENTATION_UPDATED = "presentationUpdated", e.ROW_COL_UPDATE = "rowcolupdate", e.SCREENSHOT_TAKE = "takeScreenshot", e.SCREENSHOT_STORE = "storeScreenshot", e.SECTION_UPDATE = "sectionUpdate", e.SHOW_BUILDER_DIALOG = "showBuilderDialog", e.SHOW_BUILDER_MODAL = "showBuilderModal", e.SHOW_MODAL = "showModal", e.SLIDE_DID_LOAD = "slideDidLoad", e.SLIDE_GET = "getSlide", e.SLIDE_GOTO = "slideGoto", e.SLIDE_LOAD = "loadSlide", e.SLIDE_READY = "slideReady", e.SLIDE_SAVED = "slideSaved", e.SLIDE_SET = "setSlide", e.SLIDE_STORE = "storeSlide", e.SLIDE_STORED = "slideStored", e.SLIDE_TRANSITIONER = "slideTransitioner", e.SLIDE_UPDATED = "slideUpdated", e.START_TRANSITIONER = "startTransitioner", e.STORAGE_INIT = "storageInit", e.SUBSCRIBE = "subscribe", e.SUSPEND_ACCOUNT = "suspendAccount", e.SWITCH_PRESENTATION = "switchPresentation", e.REMOVE_CLOUD = "removeCloud", e.UPDATE = "update", e.UPLOAD_COMPLETED = "uploadCompleted", e.VERSION = "version", e.WIDGETS_CLEAR = "widgetsClear", e.WIDGET_DID_LOAD = "widgetDidLoad", e.WIDGET_DID_UPDATE = "widgetDidUpdate", e.WIDGET_LOAD = "widgetLoad", e.WIDGET_STORE = "widgetStore", e.WIDGET_UPDATE = "widgetUpdate", e.WS_API_REQUEST = "wsApiRequest", e.WS_API_RESPONSE = "wsApiResponse", e.WS_API_UPDATE = "wsApiRUpdate", e))(v || {}), D = /* @__PURE__ */ ((e) => (e.APPROVED = "approved", e.BEFORE = "before", e.DELAYED = "delayed", e.NONE = "none", e.REALTIME = "realtime", e))(D || {}), E = /* @__PURE__ */ ((e) => (e.KEYVAL = "keyval", e.LOCAL = "local", e.SESSION = "session", e.DEXIE = "dexie", e.WINDOW = "window", e))(E || {});
2
+ function q(e) {
3
3
  const t = e.toUpperCase().split(/[\s_-]+/);
4
4
  return t.length > 0 ? (t.forEach((r, n) => {
5
5
  t[n] = `${r.charAt(0)}.`;
6
6
  }), t.join(" ")) : "";
7
7
  }
8
- function z(e) {
8
+ function N(e) {
9
9
  let t = "", r = "", n = {
10
10
  backgroundImage: ""
11
11
  };
12
- return typeof e.media < "u" && e.media.forEach((o) => {
13
- (o.type === "photo" || o.type === "image") && (n = {
14
- backgroundImage: `url(${o.url})`
15
- }, r = o.url), o.type === "video" && (t = o.url);
12
+ return typeof e.media < "u" && e.media.forEach((a) => {
13
+ (a.type === "photo" || a.type === "image") && (n = {
14
+ backgroundImage: `url(${a.url})`
15
+ }, r = a.url), a.type === "video" && (t = a.url);
16
16
  }), {
17
17
  image: r,
18
18
  background: n || null,
19
19
  video: t
20
20
  };
21
21
  }
22
- function q(e) {
22
+ function V(e) {
23
23
  const t = {};
24
24
  for (let r = 0; r < e.length; r++) {
25
25
  const n = e.item(r);
@@ -27,7 +27,7 @@ function q(e) {
27
27
  }
28
28
  return t;
29
29
  }
30
- function N(e) {
30
+ function ee(e) {
31
31
  const t = {};
32
32
  for (let r = 0; r < e.length; r++) {
33
33
  const n = e[r];
@@ -35,15 +35,15 @@ function N(e) {
35
35
  }
36
36
  return t;
37
37
  }
38
- function V(e) {
38
+ function te(e) {
39
39
  const t = {};
40
40
  for (let r = 0; r < e.length; r++) {
41
41
  const n = e[r];
42
- n.name !== "class" && (t[n.name] = v(n.value));
42
+ n.name !== "class" && (t[n.name] = P(n.value));
43
43
  }
44
44
  return t;
45
45
  }
46
- const ee = (e) => new Promise((t) => {
46
+ const re = (e) => new Promise((t) => {
47
47
  if (document.querySelector(e))
48
48
  return t(document.querySelector(e));
49
49
  const r = new MutationObserver((n) => {
@@ -51,7 +51,7 @@ const ee = (e) => new Promise((t) => {
51
51
  });
52
52
  r.observe(document.body, { childList: !0, subtree: !0 });
53
53
  });
54
- function te(e, t) {
54
+ function ne(e, t) {
55
55
  switch (e) {
56
56
  case "ax":
57
57
  return '<div class="axa-switch-small bg-center bg-cover w-6 h-6"></div>';
@@ -95,107 +95,113 @@ function te(e, t) {
95
95
  return "";
96
96
  }
97
97
  }
98
- function re(e) {
98
+ function ae(e) {
99
99
  return e.replace(/^\w|[A-Z]|\b\w/g, (t, r) => r === 0 ? t.toLowerCase() : t.toUpperCase()).replace(/\s+/g, "");
100
100
  }
101
- function v(e) {
101
+ function P(e) {
102
102
  return e.toLowerCase().split("-").reduce((t, r) => t + (r.charAt(0).toUpperCase() + r.slice(1)));
103
103
  }
104
- const ne = (e) => e.replace(/([A-Z])/g, "-$1").toLowerCase(), oe = (e) => e.charAt(0).toUpperCase() + e.slice(1);
105
- function ae(e) {
104
+ const oe = (e) => e.replace(/([A-Z])/g, "-$1").toLowerCase(), se = (e) => e.charAt(0).toUpperCase() + e.slice(1);
105
+ function ie(e) {
106
106
  const t = document.createRange();
107
107
  t.selectNodeContents(e), t.deleteContents();
108
108
  }
109
- const ie = () => Math.floor(Math.random() * 16777215).toString(16), se = () => {
109
+ const le = () => Math.floor(Math.random() * 16777215).toString(16), ce = () => {
110
110
  var e = Math.round, t = Math.random, r = 255;
111
111
  return "rgba(" + e(t() * r) + "," + e(t() * r) + "," + e(t() * r) + "," + t().toFixed(1) + ")";
112
- }, le = () => {
112
+ }, de = () => {
113
113
  var e = Math.round, t = Math.random, r = 255;
114
114
  return "rgba(" + e(t() * r) + "," + e(t() * r) + "," + e(t() * r) + ", 0)";
115
- }, ce = () => {
115
+ }, ue = () => {
116
116
  var e = Math.round, t = Math.random, r = 255;
117
117
  return "rgba(" + e(t() * r) + "," + e(t() * r) + "," + e(t() * r) + ")";
118
- }, de = (e, t) => {
118
+ }, fe = (e, t) => {
119
119
  e = e.substring(e.indexOf("(") + 1, e.indexOf(")"));
120
120
  let r = e.split(",");
121
121
  return r = r.map((n) => parseFloat(n.trim()).toString()), e = "background-color: rgba(" + parseInt(r[0]) + "," + parseInt(r[1]) + "," + parseInt(r[2]) + "," + t + ");", e;
122
122
  };
123
- function E(e) {
123
+ function I(e) {
124
124
  e.reduce(
125
125
  (t, r) => Object.keys(r).reduce(
126
- (n, o) => ({
126
+ (n, a) => ({
127
127
  ...n,
128
- [o]: o in t && typeof t[o] == "object" && t[o] !== null && typeof r[o] == "object" && r[o] !== null ? E([t[o], r[o]]) : r[o]
128
+ [a]: a in t && typeof t[a] == "object" && t[a] !== null && typeof r[a] == "object" && r[a] !== null ? I([t[a], r[a]]) : r[a]
129
129
  }),
130
130
  t
131
131
  ),
132
132
  {}
133
133
  );
134
134
  }
135
- const ue = (e) => [...new Set(e)], pe = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
136
- function fe(e, t = "font-bold") {
135
+ const pe = (e) => [...new Set(e)], ge = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
136
+ function be(e, t = "font-bold") {
137
137
  return `${e?.title !== null ? `<div class="${t}">${e.title}</div>` : ""}${e?.content ? e.content.replace(/\n\n/g, `
138
138
  `).replace(/\n/g, "<br/>") : ""}`;
139
139
  }
140
- const ge = () => [b(2), b(1), b(1), b(1), b(3)].join("-"), b = (e) => {
140
+ const k = (e, t = {}, r = "") => {
141
+ for (let n in e) {
142
+ let a = r ? `${r}-${n}` : n;
143
+ typeof e[n] == "object" && !Array.isArray(e[n]) ? k(e[n], t, a) : e[n] !== "" && (t[a] = e[n]);
144
+ }
145
+ return t;
146
+ }, me = () => [m(2), m(1), m(1), m(1), m(3)].join("-"), m = (e) => {
141
147
  let t = "";
142
148
  for (let r = 0; r < e; r++)
143
149
  t += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
144
150
  return t;
145
151
  };
146
- function k(e, t) {
152
+ function y(e, t) {
147
153
  for (; e.length < t; )
148
154
  e = `0${e}`;
149
155
  return e;
150
156
  }
151
- function p(e, t) {
152
- let r, n, o;
157
+ function f(e, t) {
158
+ let r, n, a;
153
159
  if (t.length === 0)
154
160
  return e;
155
- for (r = 0, o = t.length; r < o; r++)
161
+ for (r = 0, a = t.length; r < a; r++)
156
162
  n = t.charCodeAt(r), e = (e << 5) - e + n, e |= 0;
157
163
  return e < 0 ? e * -2 : e;
158
164
  }
159
- function y(e, t, r) {
165
+ function M(e, t, r) {
160
166
  return Object.keys(t).sort().reduce(n, e);
161
- function n(o, a) {
162
- return L(o, t[a], a, r);
167
+ function n(a, o) {
168
+ return R(a, t[o], o, r);
163
169
  }
164
170
  }
165
- function L(e, t, r, n) {
166
- const o = p(p(p(e, r), M(t)), typeof t);
171
+ function R(e, t, r, n) {
172
+ const a = f(f(f(e, r), U(t)), typeof t);
167
173
  if (t === null)
168
- return p(o, "null");
174
+ return f(a, "null");
169
175
  if (t === void 0)
170
- return p(o, "undefined");
176
+ return f(a, "undefined");
171
177
  if (typeof t == "object" || typeof t == "function") {
172
178
  if (n.includes(t))
173
- return p(o, `[Circular]${r}`);
179
+ return f(a, `[Circular]${r}`);
174
180
  n.push(t);
175
- const a = y(o, t, n);
181
+ const o = M(a, t, n);
176
182
  if (!("valueOf" in t) || typeof t.valueOf != "function")
177
- return a;
183
+ return o;
178
184
  try {
179
- return p(a, String(t.valueOf()));
185
+ return f(o, String(t.valueOf()));
180
186
  } catch (l) {
181
- return p(a, `[valueOf exception]${l.stack || l.message}`);
187
+ return f(o, `[valueOf exception]${l.stack || l.message}`);
182
188
  }
183
189
  }
184
- return p(o, t.toString());
190
+ return f(a, t.toString());
185
191
  }
186
- function M(e) {
192
+ function U(e) {
187
193
  return Object.prototype.toString.call(e);
188
194
  }
189
- function be(e) {
190
- return k(L(0, e, "", []).toString(16), 8);
195
+ function he(e) {
196
+ return y(R(0, e, "", []).toString(16), 8);
191
197
  }
192
- const me = (e) => {
198
+ const De = (e) => {
193
199
  let t = "";
194
- return x(e, {
195
- start: function(r, n, o) {
200
+ return w(e, {
201
+ start: function(r, n, a) {
196
202
  t += "<" + r;
197
- for (let a = 0; a < n.length; a++)
198
- t += ` ${n[a].name}="${n[a].escaped}"`;
203
+ for (let o = 0; o < n.length; o++)
204
+ t += ` ${n[o].name}="${n[o].escaped}"`;
199
205
  t += ">";
200
206
  },
201
207
  end: function(r) {
@@ -208,65 +214,65 @@ const me = (e) => {
208
214
  t += `<!-- ${r} -->`;
209
215
  }
210
216
  }), t;
211
- }, he = (e, t) => {
212
- const r = g("html,head,body,title"), n = { link: "head", base: "head" };
217
+ }, _e = (e, t) => {
218
+ const r = b("html,head,body,title"), n = { link: "head", base: "head" };
213
219
  t ? t = t.ownerDocument || t.getOwnerDocument && t.getOwnerDocument() || t : typeof t < "u" ? t = new Document() : typeof document < "u" && document.implementation && document.implementation.createDocument && (t = document.implementation.createDocument("", "", null));
214
- const o = [];
220
+ const a = [];
215
221
  if (!(t.documentElement || t.getDocumentElement && t.getDocumentElement()) && t.createElement && function() {
216
- const i = t.createElement("html"), u = t.createElement("head");
217
- u.appendChild(t.createElement("title")), i.appendChild(u), i.appendChild(t.createElement("body")), t.appendChild(i);
222
+ const s = t.createElement("html"), u = t.createElement("head");
223
+ u.appendChild(t.createElement("title")), s.appendChild(u), s.appendChild(t.createElement("body")), t.appendChild(s);
218
224
  }(), t.getElementsByTagName)
219
- for (let i in r) r[i] = t.getElementsByTagName(i)[0];
225
+ for (let s in r) r[s] = t.getElementsByTagName(s)[0];
220
226
  let l = r.body;
221
- return x(e, {
222
- start: function(i, u, c) {
223
- if (r[i]) {
224
- l = r[i], c || o.push(l);
227
+ return w(e, {
228
+ start: function(s, u, c) {
229
+ if (r[s]) {
230
+ l = r[s], c || a.push(l);
225
231
  return;
226
232
  }
227
- const s = t.createElement(i);
233
+ const i = t.createElement(s);
228
234
  for (let d in u)
229
- s.setAttribute(u[d].name, u[d].value);
230
- n[i] && typeof r[n[i]] != "boolean" ? r[n[i]].appendChild(s) : l && l.appendChild && l.appendChild(s), c || (o.push(s), l = s);
235
+ i.setAttribute(u[d].name, u[d].value);
236
+ n[s] && typeof r[n[s]] != "boolean" ? r[n[s]].appendChild(i) : l && l.appendChild && l.appendChild(i), c || (a.push(i), l = i);
231
237
  },
232
- end: function(i) {
233
- o.length -= 1, l = o[o.length - 1];
238
+ end: function(s) {
239
+ a.length -= 1, l = a[a.length - 1];
234
240
  },
235
- chars: function(i) {
236
- l.appendChild(t.createTextNode(i));
241
+ chars: function(s) {
242
+ l.appendChild(t.createTextNode(s));
237
243
  },
238
- comment: function(i) {
244
+ comment: function(s) {
239
245
  }
240
246
  }), t;
241
- }, g = (e) => {
247
+ }, b = (e) => {
242
248
  let t = {}, r = e.split(",");
243
249
  for (let n = 0; n < r.length; n++) t[r[n]] = !0;
244
250
  return t;
245
- }, w = /^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/, R = /^<\/([-A-Za-z0-9_]+)[^>]*>/, U = /([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g, $ = g(
251
+ }, x = /^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/, L = /^<\/([-A-Za-z0-9_]+)[^>]*>/, $ = /([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g, S = b(
246
252
  "area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"
247
- ), C = g(
253
+ ), C = b(
248
254
  "a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"
249
- ), S = g(
255
+ ), G = b(
250
256
  "abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"
251
- ), G = g("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"), B = g(
257
+ ), B = b("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"), T = b(
252
258
  "checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"
253
- ), T = g("script,style"), x = (e, t) => {
254
- let r, n, o, a = [], l = e;
255
- const i = (c, s) => {
259
+ ), H = b("script,style"), w = (e, t) => {
260
+ let r, n, a, o = [], l = e;
261
+ const s = (c, i) => {
256
262
  let d;
257
- if (!s) d = 0;
263
+ if (!i) d = 0;
258
264
  else
259
- for (d = a.length - 1; d >= 0 && a[d] != s; d--)
265
+ for (d = o.length - 1; d >= 0 && o[d] != i; d--)
260
266
  ;
261
267
  if (d >= 0) {
262
- for (let f = a.length - 1; f >= d; f--)
263
- t.end && t.end(a[f]);
264
- a.length = d;
268
+ for (let p = o.length - 1; p >= d; p--)
269
+ t.end && t.end(o[p]);
270
+ o.length = d;
265
271
  }
266
272
  };
267
273
  for (; e; ) {
268
- if (n = !0, !a.at(-1) || !T[a.at(-1)]) {
269
- if (e.indexOf("<!--") == 0 ? (r = e.indexOf("-->"), r >= 0 && (t.comment && t.comment(e.substring(4, r)), e = e.substring(r + 3), n = !1)) : e.indexOf("</") == 0 ? (o = e.match(R), o && (e = e.substring(o[0].length), o[0].replace(R, i), n = !1)) : e.indexOf("<") == 0 && (o = e.match(w), o && (e = e.substring(o[0].length), o[0].replace(w, u), n = !1)), n) {
274
+ if (n = !0, !o.at(-1) || !H[o.at(-1)]) {
275
+ if (e.indexOf("<!--") == 0 ? (r = e.indexOf("-->"), r >= 0 && (t.comment && t.comment(e.substring(4, r)), e = e.substring(r + 3), n = !1)) : e.indexOf("</") == 0 ? (a = e.match(L), a && (e = e.substring(a[0].length), a[0].replace(L, s), n = !1)) : e.indexOf("<") == 0 && (a = e.match(x), a && (e = e.substring(a[0].length), a[0].replace(x, u), n = !1)), n) {
270
276
  r = e.indexOf("<");
271
277
  let c = r < 0 ? e : e.substring(0, r);
272
278
  e = r < 0 ? "" : e.substring(r), t.chars && t.chars(c);
@@ -274,95 +280,95 @@ const me = (e) => {
274
280
  } else
275
281
  e = e.replace(
276
282
  //@ts-ignore
277
- new RegExp("([\\s\\S]*?)</" + a.at(-1) + "[^>]*>"),
278
- function(c, s) {
279
- return s = s.replace(
283
+ new RegExp("([\\s\\S]*?)</" + o.at(-1) + "[^>]*>"),
284
+ function(c, i) {
285
+ return i = i.replace(
280
286
  /<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,
281
287
  "$1$2"
282
- ), t.chars && t.chars(s), "";
288
+ ), t.chars && t.chars(i), "";
283
289
  }
284
- ), i("", a.at(-1));
290
+ ), s("", o.at(-1));
285
291
  if (e == l) throw "Parse Error: " + e;
286
292
  l = e;
287
293
  }
288
- i();
289
- function u(c, s, d, f) {
290
- if (s = s.toLowerCase(), C[s])
291
- for (; a.at(-1) && S[a.at(-1)]; )
292
- i("", a.at(-1));
293
- if (G[s] && a.at(-1) == s && i("", s), f = $[s] || !!f, f || a.push(s), t.start) {
294
- const O = [];
295
- d.replace(U, function(Q, A) {
296
- let _ = arguments[2] ? arguments[2] : arguments[3] ? arguments[3] : arguments[4] ? arguments[4] : B[A] ? A : "";
297
- O.push({
298
- name: A,
299
- value: _,
300
- escaped: _.replace(/(^|[^\\])"/g, '$1\\"')
294
+ s();
295
+ function u(c, i, d, p) {
296
+ if (i = i.toLowerCase(), C[i])
297
+ for (; o.at(-1) && G[o.at(-1)]; )
298
+ s("", o.at(-1));
299
+ if (B[i] && o.at(-1) == i && s("", i), p = S[i] || !!p, p || o.push(i), t.start) {
300
+ const A = [];
301
+ d.replace($, function(z, _) {
302
+ let O = arguments[2] ? arguments[2] : arguments[3] ? arguments[3] : arguments[4] ? arguments[4] : T[_] ? _ : "";
303
+ A.push({
304
+ name: _,
305
+ value: O,
306
+ escaped: O.replace(/(^|[^\\])"/g, '$1\\"')
301
307
  //"
302
308
  });
303
- }), t.start && t.start(s, O, f);
309
+ }), t.start && t.start(i, A, p);
304
310
  }
305
311
  }
306
312
  };
307
- function H(e) {
313
+ function W(e) {
308
314
  return `"${e}"`;
309
315
  }
310
- function W(e) {
316
+ function F(e) {
311
317
  return e.replace(/<\?xml.*\?>\n/, "").replace(/<!doctype.*\>\n/, "").replace(/<!DOCTYPE.*\>\n/, "");
312
318
  }
313
- const De = (e) => {
314
- e = W(e);
319
+ const we = (e) => {
320
+ e = F(e);
315
321
  const t = [], r = {
316
322
  node: "root",
317
323
  child: []
318
324
  };
319
- return x(e, {
320
- start: function(n, o, a) {
325
+ return w(e, {
326
+ start: function(n, a, o) {
321
327
  let l = {
322
328
  node: "element",
323
329
  tag: n
324
330
  };
325
- if (o.length !== 0 && (l.attr = o.reduce(function(i, u) {
326
- let c = u.name, s = u.value;
327
- return s.match(/ /) && (["title", "transform", "viewBox", "widget"].includes(u.name) || (s = s.split(" "))), i[c] ? Array.isArray(i[c]) ? i[c].push(s) : i[c] = [i[c], s] : i[c] = s, i;
328
- }, {})), a) {
329
- const i = t[0] || r;
330
- i.child === void 0 && (i.child = []), i.child.push(l);
331
+ if (a.length !== 0 && (l.attr = a.reduce(function(s, u) {
332
+ let c = u.name, i = u.value;
333
+ return i.match(/ /) && (["title", "transform", "viewBox", "widget"].includes(u.name) || (i = i.split(" "))), s[c] ? Array.isArray(s[c]) ? s[c].push(i) : s[c] = [s[c], i] : s[c] = i, s;
334
+ }, {})), o) {
335
+ const s = t[0] || r;
336
+ s.child === void 0 && (s.child = []), s.child.push(l);
331
337
  } else
332
338
  t.unshift(l);
333
339
  },
334
340
  end: function(n) {
335
- const o = t.shift();
336
- if (o.tag !== n && console.error("invalid state: mismatch end tag"), t.length === 0)
337
- r.child.push(o);
341
+ const a = t.shift();
342
+ if (a.tag !== n && console.error("invalid state: mismatch end tag"), t.length === 0)
343
+ r.child.push(a);
338
344
  else {
339
- const a = t[0];
340
- a.child === void 0 && (a.child = []), a.child.push(o);
345
+ const o = t[0];
346
+ o.child === void 0 && (o.child = []), o.child.push(a);
341
347
  }
342
348
  },
343
349
  //@ts-ignore
344
350
  chars: function(n) {
345
- let o = {
351
+ let a = {
346
352
  node: "text",
347
353
  text: n
348
354
  };
349
355
  if (t.length === 0)
350
- r.child.push(o);
356
+ r.child.push(a);
351
357
  else {
352
- const a = t[0];
353
- a.child === void 0 && (a.child = []), a.child.push(o);
358
+ const o = t[0];
359
+ o.child === void 0 && (o.child = []), o.child.push(a);
354
360
  }
355
361
  },
356
362
  //@ts-ignore
357
363
  comment: function(n) {
358
- const o = {
364
+ const a = {
359
365
  node: "comment",
360
366
  text: n
361
- }, a = t[0];
362
- a.child === void 0 && (a.child = []), a.child.push(o);
367
+ }, o = t[0];
368
+ o.child === void 0 && (o.child = []), o.child.push(a);
363
369
  }
364
370
  }), r;
365
- }, F = (e) => {
371
+ }, K = (e) => {
366
372
  const t = [
367
373
  "area",
368
374
  "base",
@@ -380,19 +386,19 @@ const De = (e) => {
380
386
  "embed"
381
387
  ];
382
388
  let r = "";
383
- e.child && (r = e.child.map(function(o) {
384
- return F(o);
389
+ e.child && (r = e.child.map(function(a) {
390
+ return K(a);
385
391
  }).join(""));
386
392
  let n = "";
387
- if (e.attr && (n = Object.keys(e.attr).map(function(o) {
388
- let a = e.attr[o];
389
- return Array.isArray(a) && (a = a.join(" ")), `${o}=${H(a)}`;
393
+ if (e.attr && (n = Object.keys(e.attr).map(function(a) {
394
+ let o = e.attr[a];
395
+ return Array.isArray(o) && (o = o.join(" ")), `${a}=${W(o)}`;
390
396
  }).join(" "), n !== "" && (n = ` ${n}`)), e.node === "element") {
391
- let o = e.tag;
392
- if (t.indexOf(o) > -1)
397
+ let a = e.tag;
398
+ if (t.indexOf(a) > -1)
393
399
  return `<${e.tag}${n}/>`;
394
- const a = `<${e.tag}${n}>`, l = `</${e.tag}>`;
395
- return `${a}${r}${l}`;
400
+ const o = `<${e.tag}${n}>`, l = `</${e.tag}>`;
401
+ return `${o}${r}${l}`;
396
402
  }
397
403
  if (e.node === "text")
398
404
  return e.text;
@@ -406,45 +412,85 @@ const De = (e) => {
406
412
  return n !== null ? (n.moveTo(0, 0), n.lineTo(120, 121), n.stroke(), n.getImageData(0, 0, 200, 200).data.join()) : null;
407
413
  };
408
414
  return e(!0) !== e(!1);
409
- }, xe = (e, t = 0, r = !0, n = "en") => {
415
+ }, Oe = (e, t = 0, r = !0, n = "en") => {
410
416
  if (e === void 0) return "";
411
417
  if (e = typeof e == "string" || e instanceof String ? parseFloat(e.replace(/[^0-9.]/g, "")) : e, r === !1)
412
418
  return e.toLocaleString(n);
413
419
  if (e < 1e3)
414
420
  return (Math.round(e * 100) / 100).toFixed(t);
415
421
  e = e.toString().replace(/[^0-9.]/g, "");
416
- let o = [
422
+ let a = [
417
423
  { v: 1e3, s: "K" },
418
424
  { v: 1e6, s: "M" },
419
425
  { v: 1e9, s: "B" },
420
426
  { v: 1e12, s: "T" },
421
427
  { v: 1e15, s: "P" },
422
428
  { v: 1e18, s: "E" }
423
- ], a;
424
- for (a = o.length - 1; a > 0 && !(e >= o[a].v); a--)
429
+ ], o;
430
+ for (o = a.length - 1; o > 0 && !(e >= a[o].v); o--)
425
431
  ;
426
- return (e / o[a].v).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/, "$1") + o[a].s;
427
- }, Oe = (e) => Object.keys(e).length === 0, _e = (e = 0, t) => {
428
- switch (!0) {
429
- case e > 3:
430
- console.debug(...t);
431
- break;
432
- case e > 2:
433
- console.info(...t);
434
- break;
435
- case e > 1:
436
- console.warn(...t);
437
- break;
438
- case e > 0:
439
- console.error(...t);
440
- break;
441
- }
442
- }, we = (e) => e.replace(/\<\!--\s*?[^\s?\[][\s\S]*?--\>/g, "").replace(/\>\s*\</g, "><").replace(/\t/g, ""), Re = (e) => e.replace(/\>\</g, `>
443
- <`), Le = (e) => e.replace(/\/\*.*\*\/|\/\*[\s\S]*?\*\/|\n|\t|\v|\s{2,}/g, "").replace(/\s*\{\s*/g, "{").replace(/\s*\}\s*/g, "}").replace(/\s*\:\s*/g, ":").replace(/\s*\;\s*/g, ";").replace(/\s*\,\s*/g, ",").replace(/\s*\~\s*/g, "~").replace(/\s*\>\s*/g, ">").replace(/\s*\+\s*/g, "+").replace(/\s*\!\s*/g, "!"), Ie = (e) => e.replace(/\,/g, ", ").replace(/\{/g, ` {
432
+ return (e / a[o].v).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/, "$1") + a[o].s;
433
+ }, xe = (e) => Object.keys(e).length === 0, Y = new Blob(
434
+ [
435
+ `const LOG_LEVELS = new Set([1,2,3,4])
436
+ self.onmessage = function(e) {
437
+ switch(e.data.action){
438
+ case 'add':
439
+ LOG_LEVELS.add(e.data.level);
440
+ break;
441
+ case 'clear':
442
+ LOG_LEVELS.clear();
443
+ break;
444
+ case 'delete':
445
+ LOG_LEVELS.delete(e.data.level);
446
+ break;
447
+ case 'list':
448
+ e.data.message.push([...LOG_LEVELS])
449
+ console.log(...e.data.message);
450
+ break;
451
+ case 'log':
452
+ if(LOG_LEVELS.has(e.data.level)) {
453
+ switch (true) {
454
+ case e.data.level > 3:
455
+ console.debug(...e.data.message);
456
+ break;
457
+ case e.data.level > 2:
458
+ console.info(...e.data.message);
459
+ break;
460
+ case e.data.level > 1:
461
+ console.warn(...e.data.message);
462
+ break;
463
+ case e.data.level > 0:
464
+ console.error(...e.data.message);
465
+ break;
466
+ default:
467
+ console.info(...e.data.message);
468
+ }
469
+ }
470
+ break;
471
+ }
472
+ }`
473
+ ],
474
+ { type: "text/javascript" }
475
+ );
476
+ window.__bc = window.__bc || {};
477
+ window.__bc.logger = window.__bc?.logger || new Worker(window.URL.createObjectURL(Y), { name: "logger" });
478
+ const Le = async (e = 0, t) => {
479
+ window.__bc.logger.postMessage({ action: "log", level: e, message: t });
480
+ }, Re = {
481
+ add: (e) => window.__bc.logger.postMessage({ action: "add", level: e }),
482
+ clear: () => window.__bc.logger.postMessage({ action: "delete" }),
483
+ delete: (e) => window.__bc.logger.postMessage({ action: "delete", level: e }),
484
+ list: () => window.__bc.logger.postMessage({
485
+ action: "list",
486
+ message: ["%capp%c %clogging", g.APP, g.NONE, g.OK]
487
+ })
488
+ }, ve = (e) => e.replace(/\<\!--\s*?[^\s?\[][\s\S]*?--\>/g, "").replace(/\>\s*\</g, "><").replace(/\t/g, ""), Ee = (e) => e.replace(/\>\</g, `>
489
+ <`), Pe = (e) => e.replace(/\/\*.*\*\/|\/\*[\s\S]*?\*\/|\n|\t|\v|\s{2,}/g, "").replace(/\s*\{\s*/g, "{").replace(/\s*\}\s*/g, "}").replace(/\s*\:\s*/g, ":").replace(/\s*\;\s*/g, ";").replace(/\s*\,\s*/g, ",").replace(/\s*\~\s*/g, "~").replace(/\s*\>\s*/g, ">").replace(/\s*\+\s*/g, "+").replace(/\s*\!\s*/g, "!"), Ie = (e) => e.replace(/\,/g, ", ").replace(/\{/g, ` {
444
490
  `).replace(/\}/g, `}
445
491
  `).replace(/\;/g, `;
446
492
  `);
447
- function Pe(e, t) {
493
+ function ke(e, t) {
448
494
  const r = [
449
495
  { value: 1, symbol: "" },
450
496
  { value: 1e3, symbol: "K" },
@@ -454,23 +500,23 @@ function Pe(e, t) {
454
500
  { value: 1e15, symbol: "P" },
455
501
  { value: 1e18, symbol: "E" }
456
502
  ], n = /\.0+$|(\.\d*[1-9])0+$/;
457
- let o;
458
- for (o = r.length - 1; o > 0 && !(e >= r[o].value); o--)
503
+ let a;
504
+ for (a = r.length - 1; a > 0 && !(e >= r[a].value); a--)
459
505
  ;
460
- return (e / r[o].value).toFixed(t).replace(n, "$1") + r[o].symbol;
506
+ return (e / r[a].value).toFixed(t).replace(n, "$1") + r[a].symbol;
461
507
  }
462
- function ve(e) {
508
+ function ye(e) {
463
509
  const t = RegExp(`[?&]${e}=([^&]*)`).exec(window.location.search);
464
510
  return t && decodeURIComponent(t[1].replace(/\+/g, " ")) || null;
465
511
  }
466
- const Ee = (e) => new Proxy(new URLSearchParams(window.location.search), {
512
+ const Me = (e) => new Proxy(new URLSearchParams(window.location.search), {
467
513
  // @ts-ignore
468
514
  get: (r, n) => r.get(n)
469
515
  })[e];
470
- function ke(e) {
516
+ function Ue(e) {
471
517
  return e[Math.floor(Math.random() * e.length)];
472
518
  }
473
- function ye(e) {
519
+ function $e(e) {
474
520
  switch (e.language) {
475
521
  case "ar":
476
522
  return {
@@ -481,7 +527,7 @@ function ye(e) {
481
527
  return {};
482
528
  }
483
529
  }
484
- function Me(e) {
530
+ function Se(e) {
485
531
  const t = e.filter(
486
532
  (r) => r !== void 0
487
533
  );
@@ -523,13 +569,13 @@ function Me(e) {
523
569
  }
524
570
  }), t;
525
571
  }
526
- function Ue(e, t, r, n) {
572
+ function Ce(e, t, r, n) {
527
573
  e.stopPropagation(), t.showModal({
528
574
  showComponent: "card-modal",
529
575
  props: { data: r, options: n }
530
576
  });
531
577
  }
532
- function $e(e) {
578
+ function Ge(e) {
533
579
  const t = [...e];
534
580
  for (let r = t.length - 1; r > 0; r--) {
535
581
  const n = Math.floor(Math.random() * (r + 1));
@@ -537,31 +583,31 @@ function $e(e) {
537
583
  }
538
584
  return t;
539
585
  }
540
- function Ce() {
586
+ function Be() {
541
587
  let e = "";
542
588
  const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
543
589
  for (let r = 0; r < 7; r++) e += t.charAt(Math.floor(Math.random() * t.length));
544
590
  return e;
545
591
  }
546
- const Se = (e) => {
592
+ const Te = (e) => {
547
593
  switch (e?.type) {
548
594
  case h.MESSAGES:
549
- return m.MESSAGES;
595
+ return g.MESSAGES;
550
596
  case h.SERIES:
551
- return m.SERIES;
597
+ return g.SERIES;
552
598
  case h.CLOUD:
553
- return m.CLOUD;
599
+ return g.CLOUD;
554
600
  default:
555
- return m.NO_UPDATES;
601
+ return g.NO_UPDATES;
556
602
  }
557
- }, K = (e = 6) => Math.random().toString(36).substring(2, e + 2), Y = (e, t = []) => !t.find(function(n) {
603
+ }, Z = (e = 6) => Math.random().toString(36).substring(2, e + 2), X = (e, t = []) => !t.find(function(n) {
558
604
  return n === e;
559
- }), Ge = (e, t = []) => {
560
- let n = 0, o = "";
561
- for (; o == "" && n < 100; )
562
- o = K(e), Y(o, t) || (o = "", n++);
563
- return o;
564
- }, Be = (e) => {
605
+ }), He = (e, t = []) => {
606
+ let n = 0, a = "";
607
+ for (; a == "" && n < 100; )
608
+ a = Z(e), X(a, t) || (a = "", n++);
609
+ return a;
610
+ }, We = (e) => {
565
611
  switch (!0) {
566
612
  case e < 0:
567
613
  return "text-down text-xs";
@@ -570,23 +616,23 @@ const Se = (e) => {
570
616
  default:
571
617
  return "text-white text-xs";
572
618
  }
573
- }, Te = (e, t, r) => Promise.race([e, Z(t, r)]), Z = (e, t) => new Promise((r, n) => setTimeout(() => t === void 0 ? r("ok") : n(t), e));
574
- function He(e) {
619
+ }, Fe = (e, t, r) => Promise.race([e, Q(t, r)]), Q = (e, t) => new Promise((r, n) => setTimeout(() => t === void 0 ? r("ok") : n(t), e));
620
+ function Ke(e) {
575
621
  let t = `${e.type}.${e.topics}`;
576
622
  return e.order && (t += `.${e.order}`), e.period && (t += `.${e.period}`), t;
577
623
  }
578
- function We(e) {
624
+ function Ye(e) {
579
625
  if (e.widget === void 0) {
580
626
  const t = e.topics?.split("-");
581
627
  t && t.length > 1 ? (e.dashboard = t ? t[0] : "", e.widget = t ? t[1] : "") : (e.widget = e.topics, e.dashboard = e.slide);
582
628
  }
583
629
  return e;
584
630
  }
585
- function Fe(e, t) {
586
- let r, n, o, a, l;
631
+ function Ze(e, t) {
632
+ let r, n, a, o, l;
587
633
  switch (e.moderation) {
588
634
  case D.BEFORE:
589
- r = /* @__PURE__ */ new Date(), n = e.beforeTime?.split(":"), o = Number.parseInt(n ? n[0] : "00"), a = Number.parseInt(n ? n[1] : "00"), l = Number.parseInt(n ? n[2] : "00"), t.before = r.setHours(o, a, l, 0) / 1e3, t.period || (t.period = r.getDay() === 1 ? 72 : 24);
635
+ r = /* @__PURE__ */ new Date(), n = e.beforeTime?.split(":"), a = Number.parseInt(n ? n[0] : "00"), o = Number.parseInt(n ? n[1] : "00"), l = Number.parseInt(n ? n[2] : "00"), t.before = r.setHours(a, o, l, 0) / 1e3, t.period || (t.period = r.getDay() === 1 ? 72 : 24);
590
636
  break;
591
637
  case D.DELAYED:
592
638
  e.delay && e.delay > 0 && (t.delay = `${e.delay}`);
@@ -599,65 +645,67 @@ function Fe(e, t) {
599
645
  }
600
646
  return t;
601
647
  }
602
- var X = /* @__PURE__ */ ((e) => (e.MultiPolygon = "MultiPolygon", e.Polygon = "Polygon", e))(X || {}), j = /* @__PURE__ */ ((e) => (e.MultiPolygon = "MultiPolygon", e.Polygon = "Polygon", e))(j || {});
648
+ var j = /* @__PURE__ */ ((e) => (e.MultiPolygon = "MultiPolygon", e.Polygon = "Polygon", e))(j || {}), J = /* @__PURE__ */ ((e) => (e.MultiPolygon = "MultiPolygon", e.Polygon = "Polygon", e))(J || {});
603
649
  export {
604
650
  h as API,
605
- m as CSS,
606
- I as EVENTS,
607
- x as HTMLParser,
608
- he as HTMLtoDOM,
609
- me as HTMLtoXML,
651
+ g as CSS,
652
+ v as EVENTS,
653
+ j as GeoType,
654
+ w as HTMLParser,
655
+ _e as HTMLtoDOM,
656
+ De as HTMLtoXML,
610
657
  D as MODERATION,
611
- de as RGBAchangeA,
612
- P as STORAGE,
613
- j as ShapeType,
614
- X as Type,
615
- J as anonymize,
616
- z as attachedMedia,
617
- q as attrs,
618
- ee as awaitElement,
619
- te as brandLogo,
620
- v as camelCase,
621
- V as camelCasedProps,
622
- ne as camelToHyphen,
623
- re as camelize,
624
- oe as capitalizeFirstLetter,
625
- ae as clearContents,
626
- E as deepMerge,
627
- pe as escape,
628
- N as filterAttributes,
629
- fe as formatContent,
630
- ge as getGuid,
631
- He as getKey,
632
- ve as getParameterByName,
633
- Ee as getQueryParam,
658
+ fe as RGBAchangeA,
659
+ E as STORAGE,
660
+ J as ShapeType,
661
+ q as anonymize,
662
+ N as attachedMedia,
663
+ V as attrs,
664
+ re as awaitElement,
665
+ ne as brandLogo,
666
+ P as camelCase,
667
+ te as camelCasedProps,
668
+ oe as camelToHyphen,
669
+ ae as camelize,
670
+ se as capitalizeFirstLetter,
671
+ ie as clearContents,
672
+ I as deepMerge,
673
+ ge as escape,
674
+ ee as filterAttributes,
675
+ k as flatten,
676
+ be as formatContent,
677
+ me as getGuid,
678
+ Ke as getKey,
679
+ ye as getParameterByName,
680
+ Me as getQueryParam,
634
681
  Ae as hasHWA,
635
- be as hashSum,
636
- De as html2json,
637
- xe as intToString,
638
- Oe as isEmpty,
639
- F as json2html,
640
- _e as log,
682
+ he as hashSum,
683
+ we as html2json,
684
+ Oe as intToString,
685
+ xe as isEmpty,
686
+ K as json2html,
687
+ Le as log,
688
+ Re as logging,
641
689
  Ie as maxifyCss,
642
- Re as maxifyHtml,
643
- Le as minifyCss,
644
- we as minifyHtml,
645
- Fe as moderation,
646
- Pe as numberFormatter,
647
- ie as randomColor,
648
- ce as randomRGB,
649
- le as randomRGBA,
650
- se as randomRGBAfull,
651
- ke as randomValue,
652
- ye as rtl,
653
- Me as sanitize,
654
- Ue as showModal,
655
- $e as shuffleMessages,
656
- Ce as stringGen,
657
- Se as typeCss,
658
- Ge as uniq,
659
- ue as unique,
660
- Be as upDownColor,
661
- We as widgetParams,
662
- Te as wrapPromise
690
+ Ee as maxifyHtml,
691
+ Pe as minifyCss,
692
+ ve as minifyHtml,
693
+ Ze as moderation,
694
+ ke as numberFormatter,
695
+ le as randomColor,
696
+ ue as randomRGB,
697
+ de as randomRGBA,
698
+ ce as randomRGBAfull,
699
+ Ue as randomValue,
700
+ $e as rtl,
701
+ Se as sanitize,
702
+ Ce as showModal,
703
+ Ge as shuffleMessages,
704
+ Be as stringGen,
705
+ Te as typeCss,
706
+ He as uniq,
707
+ pe as unique,
708
+ We as upDownColor,
709
+ Ye as widgetParams,
710
+ Fe as wrapPromise
663
711
  };