pollcatch 2.1.1 → 2.1.3
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.
- package/package.json +1 -1
- package/pc.js +170 -158
package/package.json
CHANGED
package/pc.js
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const it = globalThis,
|
|
6
|
+
const it = globalThis, At = it.ShadowRoot && (it.ShadyCSS === void 0 || it.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, _t = Symbol(), Lt = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
let ae = class {
|
|
8
8
|
constructor(t, o, r) {
|
|
9
|
-
if (this._$cssResult$ = !0, r !==
|
|
9
|
+
if (this._$cssResult$ = !0, r !== _t) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = t, this.t = o;
|
|
11
11
|
}
|
|
12
12
|
get styleSheet() {
|
|
13
13
|
let t = this.o;
|
|
14
14
|
const o = this.t;
|
|
15
|
-
if (
|
|
15
|
+
if (At && t === void 0) {
|
|
16
16
|
const r = o !== void 0 && o.length === 1;
|
|
17
17
|
r && (t = Lt.get(o)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Lt.set(o, t));
|
|
18
18
|
}
|
|
@@ -22,20 +22,20 @@ let ae = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const ke = (e) => new ae(typeof e == "string" ? e : e + "", void 0,
|
|
25
|
+
const ke = (e) => new ae(typeof e == "string" ? e : e + "", void 0, _t), F = (e, ...t) => {
|
|
26
26
|
const o = e.length === 1 ? e[0] : t.reduce((r, s, i) => r + ((a) => {
|
|
27
27
|
if (a._$cssResult$ === !0) return a.cssText;
|
|
28
28
|
if (typeof a == "number") return a;
|
|
29
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + a + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
30
|
})(s) + e[i + 1], e[0]);
|
|
31
|
-
return new ae(o, e,
|
|
31
|
+
return new ae(o, e, _t);
|
|
32
32
|
}, Ae = (e, t) => {
|
|
33
|
-
if (
|
|
33
|
+
if (At) e.adoptedStyleSheets = t.map((o) => o instanceof CSSStyleSheet ? o : o.styleSheet);
|
|
34
34
|
else for (const o of t) {
|
|
35
35
|
const r = document.createElement("style"), s = it.litNonce;
|
|
36
36
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = o.cssText, e.appendChild(r);
|
|
37
37
|
}
|
|
38
|
-
}, Rt =
|
|
38
|
+
}, Rt = At ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
|
|
39
39
|
let o = "";
|
|
40
40
|
for (const r of t.cssRules) o += r.cssText;
|
|
41
41
|
return ke(o);
|
|
@@ -45,7 +45,7 @@ const ke = (e) => new ae(typeof e == "string" ? e : e + "", void 0, At), F = (e,
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is: _e, defineProperty: Ee, getOwnPropertyDescriptor: Pe, getOwnPropertyNames: Oe, getOwnPropertySymbols: Te, getPrototypeOf: ze } = Object,
|
|
48
|
+
const { is: _e, defineProperty: Ee, getOwnPropertyDescriptor: Pe, getOwnPropertyNames: Oe, getOwnPropertySymbols: Te, getPrototypeOf: ze } = Object, T = globalThis, Ut = T.trustedTypes, Ie = Ut ? Ut.emptyScript : "", mt = T.reactiveElementPolyfillSupport, K = (e, t) => e, at = { toAttribute(e, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
e = e ? Ie : null;
|
|
@@ -73,8 +73,8 @@ const { is: _e, defineProperty: Ee, getOwnPropertyDescriptor: Pe, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return o;
|
|
76
|
-
} },
|
|
77
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
76
|
+
} }, Et = (e, t) => !_e(e, t), jt = { attribute: !0, type: String, converter: at, reflect: !1, hasChanged: Et };
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), T.litPropertyMetadata ?? (T.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
78
|
let U = class extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
@@ -200,7 +200,7 @@ let U = class extends HTMLElement {
|
|
|
200
200
|
}
|
|
201
201
|
requestUpdate(t, o, r) {
|
|
202
202
|
if (t !== void 0) {
|
|
203
|
-
if (r ?? (r = this.constructor.getPropertyOptions(t)), !(r.hasChanged ??
|
|
203
|
+
if (r ?? (r = this.constructor.getPropertyOptions(t)), !(r.hasChanged ?? Et)(this[t], o)) return;
|
|
204
204
|
this.P(t, o, r);
|
|
205
205
|
}
|
|
206
206
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -273,17 +273,17 @@ let U = class extends HTMLElement {
|
|
|
273
273
|
firstUpdated(t) {
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
|
-
U.elementStyles = [], U.shadowRootOptions = { mode: "open" }, U[K("elementProperties")] = /* @__PURE__ */ new Map(), U[K("finalized")] = /* @__PURE__ */ new Map(),
|
|
276
|
+
U.elementStyles = [], U.shadowRootOptions = { mode: "open" }, U[K("elementProperties")] = /* @__PURE__ */ new Map(), U[K("finalized")] = /* @__PURE__ */ new Map(), mt == null || mt({ ReactiveElement: U }), (T.reactiveElementVersions ?? (T.reactiveElementVersions = [])).push("2.0.4");
|
|
277
277
|
/**
|
|
278
278
|
* @license
|
|
279
279
|
* Copyright 2017 Google LLC
|
|
280
280
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
281
281
|
*/
|
|
282
|
-
const W = globalThis, nt = W.trustedTypes, Bt = nt ? nt.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, ne = "$lit$",
|
|
283
|
-
\f\r]`, Z = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Dt = /-->/g, Vt = />/g,
|
|
284
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), qt = /'/g, Ht = /"/g, ce = /^(?:script|style|textarea|title)$/i, Le = (e) => (t, ...o) => ({ _$litType$: e, strings: t, values: o }), d = Le(1),
|
|
282
|
+
const W = globalThis, nt = W.trustedTypes, Bt = nt ? nt.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, ne = "$lit$", P = `lit$${Math.random().toFixed(9).slice(2)}$`, le = "?" + P, Ne = `<${le}>`, L = document, X = () => L.createComment(""), Q = (e) => e === null || typeof e != "object" && typeof e != "function", Pt = Array.isArray, Me = (e) => Pt(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", bt = `[
|
|
283
|
+
\f\r]`, Z = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Dt = /-->/g, Vt = />/g, N = RegExp(`>|${bt}(?:([^\\s"'>=/]+)(${bt}*=${bt}*(?:[^
|
|
284
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), qt = /'/g, Ht = /"/g, ce = /^(?:script|style|textarea|title)$/i, Le = (e) => (t, ...o) => ({ _$litType$: e, strings: t, values: o }), d = Le(1), z = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), Ft = /* @__PURE__ */ new WeakMap(), M = L.createTreeWalker(L, 129);
|
|
285
285
|
function de(e, t) {
|
|
286
|
-
if (!
|
|
286
|
+
if (!Pt(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
287
287
|
return Bt !== void 0 ? Bt.createHTML(t) : t;
|
|
288
288
|
}
|
|
289
289
|
const Re = (e, t) => {
|
|
@@ -292,52 +292,52 @@ const Re = (e, t) => {
|
|
|
292
292
|
for (let n = 0; n < o; n++) {
|
|
293
293
|
const l = e[n];
|
|
294
294
|
let p, c, h = -1, w = 0;
|
|
295
|
-
for (; w < l.length && (a.lastIndex = w, c = a.exec(l), c !== null); ) w = a.lastIndex, a === Z ? c[1] === "!--" ? a = Dt : c[1] !== void 0 ? a = Vt : c[2] !== void 0 ? (ce.test(c[2]) && (s = RegExp("</" + c[2], "g")), a =
|
|
296
|
-
const
|
|
297
|
-
i += a === Z ? l + Ne : h >= 0 ? (r.push(p), l.slice(0, h) + ne + l.slice(h) +
|
|
295
|
+
for (; w < l.length && (a.lastIndex = w, c = a.exec(l), c !== null); ) w = a.lastIndex, a === Z ? c[1] === "!--" ? a = Dt : c[1] !== void 0 ? a = Vt : c[2] !== void 0 ? (ce.test(c[2]) && (s = RegExp("</" + c[2], "g")), a = N) : c[3] !== void 0 && (a = N) : a === N ? c[0] === ">" ? (a = s ?? Z, h = -1) : c[1] === void 0 ? h = -2 : (h = a.lastIndex - c[2].length, p = c[1], a = c[3] === void 0 ? N : c[3] === '"' ? Ht : qt) : a === Ht || a === qt ? a = N : a === Dt || a === Vt ? a = Z : (a = N, s = void 0);
|
|
296
|
+
const v = a === N && e[n + 1].startsWith("/>") ? " " : "";
|
|
297
|
+
i += a === Z ? l + Ne : h >= 0 ? (r.push(p), l.slice(0, h) + ne + l.slice(h) + P + v) : l + P + (h === -2 ? n : v);
|
|
298
298
|
}
|
|
299
299
|
return [de(e, i + (e[o] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
|
|
300
300
|
};
|
|
301
|
-
let
|
|
301
|
+
let kt = class pe {
|
|
302
302
|
constructor({ strings: t, _$litType$: o }, r) {
|
|
303
303
|
let s;
|
|
304
304
|
this.parts = [];
|
|
305
305
|
let i = 0, a = 0;
|
|
306
306
|
const n = t.length - 1, l = this.parts, [p, c] = Re(t, o);
|
|
307
|
-
if (this.el = pe.createElement(p, r),
|
|
307
|
+
if (this.el = pe.createElement(p, r), M.currentNode = this.el.content, o === 2 || o === 3) {
|
|
308
308
|
const h = this.el.content.firstChild;
|
|
309
309
|
h.replaceWith(...h.childNodes);
|
|
310
310
|
}
|
|
311
|
-
for (; (s =
|
|
311
|
+
for (; (s = M.nextNode()) !== null && l.length < n; ) {
|
|
312
312
|
if (s.nodeType === 1) {
|
|
313
313
|
if (s.hasAttributes()) for (const h of s.getAttributeNames()) if (h.endsWith(ne)) {
|
|
314
|
-
const w = c[a++],
|
|
315
|
-
l.push({ type: 1, index: i, name:
|
|
316
|
-
} else h.startsWith(
|
|
314
|
+
const w = c[a++], v = s.getAttribute(h).split(P), E = /([.?@])?(.*)/.exec(w);
|
|
315
|
+
l.push({ type: 1, index: i, name: E[2], strings: v, ctor: E[1] === "." ? je : E[1] === "?" ? Be : E[1] === "@" ? De : ct }), s.removeAttribute(h);
|
|
316
|
+
} else h.startsWith(P) && (l.push({ type: 6, index: i }), s.removeAttribute(h));
|
|
317
317
|
if (ce.test(s.tagName)) {
|
|
318
|
-
const h = s.textContent.split(
|
|
318
|
+
const h = s.textContent.split(P), w = h.length - 1;
|
|
319
319
|
if (w > 0) {
|
|
320
320
|
s.textContent = nt ? nt.emptyScript : "";
|
|
321
|
-
for (let
|
|
321
|
+
for (let v = 0; v < w; v++) s.append(h[v], X()), M.nextNode(), l.push({ type: 2, index: ++i });
|
|
322
322
|
s.append(h[w], X());
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
} else if (s.nodeType === 8) if (s.data === le) l.push({ type: 2, index: i });
|
|
326
326
|
else {
|
|
327
327
|
let h = -1;
|
|
328
|
-
for (; (h = s.data.indexOf(
|
|
328
|
+
for (; (h = s.data.indexOf(P, h + 1)) !== -1; ) l.push({ type: 7, index: i }), h += P.length - 1;
|
|
329
329
|
}
|
|
330
330
|
i++;
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
static createElement(t, o) {
|
|
334
|
-
const r =
|
|
334
|
+
const r = L.createElement("template");
|
|
335
335
|
return r.innerHTML = t, r;
|
|
336
336
|
}
|
|
337
337
|
};
|
|
338
338
|
function D(e, t, o = e, r) {
|
|
339
339
|
var a, n;
|
|
340
|
-
if (t ===
|
|
340
|
+
if (t === z) return t;
|
|
341
341
|
let s = r !== void 0 ? (a = o._$Co) == null ? void 0 : a[r] : o._$Cl;
|
|
342
342
|
const i = Q(t) ? void 0 : t._$litDirective$;
|
|
343
343
|
return (s == null ? void 0 : s.constructor) !== i && ((n = s == null ? void 0 : s._$AO) == null || n.call(s, !1), i === void 0 ? s = void 0 : (s = new i(e), s._$AT(e, o, r)), r !== void 0 ? (o._$Co ?? (o._$Co = []))[r] = s : o._$Cl = s), s !== void 0 && (t = D(e, s._$AS(e, t.values), s, r)), t;
|
|
@@ -353,17 +353,17 @@ let Ue = class {
|
|
|
353
353
|
return this._$AM._$AU;
|
|
354
354
|
}
|
|
355
355
|
u(t) {
|
|
356
|
-
const { el: { content: o }, parts: r } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ??
|
|
357
|
-
|
|
358
|
-
let i =
|
|
356
|
+
const { el: { content: o }, parts: r } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? L).importNode(o, !0);
|
|
357
|
+
M.currentNode = s;
|
|
358
|
+
let i = M.nextNode(), a = 0, n = 0, l = r[0];
|
|
359
359
|
for (; l !== void 0; ) {
|
|
360
360
|
if (a === l.index) {
|
|
361
361
|
let p;
|
|
362
362
|
l.type === 2 ? p = new et(i, i.nextSibling, this, t) : l.type === 1 ? p = new l.ctor(i, l.name, l.strings, this, t) : l.type === 6 && (p = new Ve(i, this, t)), this._$AV.push(p), l = r[++n];
|
|
363
363
|
}
|
|
364
|
-
a !== (l == null ? void 0 : l.index) && (i =
|
|
364
|
+
a !== (l == null ? void 0 : l.index) && (i = M.nextNode(), a++);
|
|
365
365
|
}
|
|
366
|
-
return
|
|
366
|
+
return M.currentNode = L, s;
|
|
367
367
|
}
|
|
368
368
|
p(t) {
|
|
369
369
|
let o = 0;
|
|
@@ -390,7 +390,7 @@ class et {
|
|
|
390
390
|
return this._$AB;
|
|
391
391
|
}
|
|
392
392
|
_$AI(t, o = this) {
|
|
393
|
-
t = D(this, t, o), Q(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !==
|
|
393
|
+
t = D(this, t, o), Q(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== z && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Me(t) ? this.k(t) : this._(t);
|
|
394
394
|
}
|
|
395
395
|
O(t) {
|
|
396
396
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -399,11 +399,11 @@ class et {
|
|
|
399
399
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
400
400
|
}
|
|
401
401
|
_(t) {
|
|
402
|
-
this._$AH !== u && Q(this._$AH) ? this._$AA.nextSibling.data = t : this.T(
|
|
402
|
+
this._$AH !== u && Q(this._$AH) ? this._$AA.nextSibling.data = t : this.T(L.createTextNode(t)), this._$AH = t;
|
|
403
403
|
}
|
|
404
404
|
$(t) {
|
|
405
405
|
var i;
|
|
406
|
-
const { values: o, _$litType$: r } = t, s = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el =
|
|
406
|
+
const { values: o, _$litType$: r } = t, s = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = kt.createElement(de(r.h, r.h[0]), this.options)), r);
|
|
407
407
|
if (((i = this._$AH) == null ? void 0 : i._$AD) === s) this._$AH.p(o);
|
|
408
408
|
else {
|
|
409
409
|
const a = new Ue(s, this), n = a.u(this.options);
|
|
@@ -412,10 +412,10 @@ class et {
|
|
|
412
412
|
}
|
|
413
413
|
_$AC(t) {
|
|
414
414
|
let o = Ft.get(t.strings);
|
|
415
|
-
return o === void 0 && Ft.set(t.strings, o = new
|
|
415
|
+
return o === void 0 && Ft.set(t.strings, o = new kt(t)), o;
|
|
416
416
|
}
|
|
417
417
|
k(t) {
|
|
418
|
-
|
|
418
|
+
Pt(this._$AH) || (this._$AH = [], this._$AR());
|
|
419
419
|
const o = this._$AH;
|
|
420
420
|
let r, s = 0;
|
|
421
421
|
for (const i of t) s === o.length ? o.push(r = new et(this.O(X()), this.O(X()), this, this.options)) : r = o[s], r._$AI(i), s++;
|
|
@@ -446,11 +446,11 @@ class ct {
|
|
|
446
446
|
_$AI(t, o = this, r, s) {
|
|
447
447
|
const i = this.strings;
|
|
448
448
|
let a = !1;
|
|
449
|
-
if (i === void 0) t = D(this, t, o, 0), a = !Q(t) || t !== this._$AH && t !==
|
|
449
|
+
if (i === void 0) t = D(this, t, o, 0), a = !Q(t) || t !== this._$AH && t !== z, a && (this._$AH = t);
|
|
450
450
|
else {
|
|
451
451
|
const n = t;
|
|
452
452
|
let l, p;
|
|
453
|
-
for (t = i[0], l = 0; l < i.length - 1; l++) p = D(this, n[r + l], o, l), p ===
|
|
453
|
+
for (t = i[0], l = 0; l < i.length - 1; l++) p = D(this, n[r + l], o, l), p === z && (p = this._$AH[l]), a || (a = !Q(p) || p !== this._$AH[l]), p === u ? t = u : t !== u && (t += (p ?? "") + i[l + 1]), this._$AH[l] = p;
|
|
454
454
|
}
|
|
455
455
|
a && !s && this.j(t);
|
|
456
456
|
}
|
|
@@ -479,7 +479,7 @@ class De extends ct {
|
|
|
479
479
|
super(t, o, r, s, i), this.type = 5;
|
|
480
480
|
}
|
|
481
481
|
_$AI(t, o = this) {
|
|
482
|
-
if ((t = D(this, t, o, 0) ?? u) ===
|
|
482
|
+
if ((t = D(this, t, o, 0) ?? u) === z) return;
|
|
483
483
|
const r = this._$AH, s = t === u && r !== u || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, i = t !== u && (r === u || s);
|
|
484
484
|
s && this.element.removeEventListener(this.name, this, r), i && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
485
485
|
}
|
|
@@ -499,8 +499,8 @@ class Ve {
|
|
|
499
499
|
D(this, t);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
const
|
|
503
|
-
|
|
502
|
+
const gt = W.litHtmlPolyfillSupport;
|
|
503
|
+
gt == null || gt(kt, et), (W.litHtmlVersions ?? (W.litHtmlVersions = [])).push("3.2.1");
|
|
504
504
|
const qe = (e, t, o) => {
|
|
505
505
|
const r = (o == null ? void 0 : o.renderBefore) ?? t;
|
|
506
506
|
let s = r._$litPart$;
|
|
@@ -537,13 +537,13 @@ let j = class extends U {
|
|
|
537
537
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
538
538
|
}
|
|
539
539
|
render() {
|
|
540
|
-
return
|
|
540
|
+
return z;
|
|
541
541
|
}
|
|
542
542
|
};
|
|
543
543
|
var ie;
|
|
544
544
|
j._$litElement$ = !0, j.finalized = !0, (ie = globalThis.litElementHydrateSupport) == null || ie.call(globalThis, { LitElement: j });
|
|
545
|
-
const
|
|
546
|
-
|
|
545
|
+
const vt = globalThis.litElementPolyfillSupport;
|
|
546
|
+
vt == null || vt({ LitElement: j });
|
|
547
547
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
|
548
548
|
/**
|
|
549
549
|
* @license
|
|
@@ -560,7 +560,7 @@ const ot = (e) => (t, o) => {
|
|
|
560
560
|
* Copyright 2017 Google LLC
|
|
561
561
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
562
562
|
*/
|
|
563
|
-
const He = { attribute: !0, type: String, converter: at, reflect: !1, hasChanged:
|
|
563
|
+
const He = { attribute: !0, type: String, converter: at, reflect: !1, hasChanged: Et }, Fe = (e = He, t, o) => {
|
|
564
564
|
const { kind: r, metadata: s } = o;
|
|
565
565
|
let i = globalThis.litPropertyMetadata.get(s);
|
|
566
566
|
if (i === void 0 && globalThis.litPropertyMetadata.set(s, i = /* @__PURE__ */ new Map()), i.set(o.name, e), r === "accessor") {
|
|
@@ -592,14 +592,14 @@ function f(e) {
|
|
|
592
592
|
* Copyright 2017 Google LLC
|
|
593
593
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
594
594
|
*/
|
|
595
|
-
function
|
|
595
|
+
function Ot(e) {
|
|
596
596
|
return f({ ...e, state: !0, attribute: !1 });
|
|
597
597
|
}
|
|
598
598
|
var x = /* @__PURE__ */ ((e) => (e.reaction = "reaction", e.stars = "stars", e.poll = "poll", e.text = "text", e.nps = "nps", e))(x || {});
|
|
599
599
|
const Ye = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23434343'%3e%3cpath%20d='M640-160v-280h160v280H640Zm-240%200v-640h160v640H400Zm-240%200v-440h160v440H160Z'/%3e%3c/svg%3e", Ze = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23434343'%3e%3cpath%20d='M160-160v-440h160v440H160Zm240%200v-400l160%20160v240H400Zm160-354L400-674v-126h160v286Zm240%20240L640-434v-6h160v166Zm-9%20219L55-791l57-57%20736%20736-57%2057Z'/%3e%3c/svg%3e", Ge = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='currentColor'%3e%3cpath%20d='M200-200h57l391-391-57-57-391%20391v57Zm-80%2080v-170l528-527q12-11%2026.5-17t30.5-6q16%200%2031%206t26%2018l55%2056q12%2011%2017.5%2026t5.5%2030q0%2016-5.5%2030.5T817-647L290-120H120Zm640-584-56-56%2056%2056Zm-141%2085-28-29%2057%2057-29-28Z'/%3e%3c/svg%3e", Ke = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='%23666666'%20class='bi%20bi-x'%20viewBox='0%200%2016%2016'%3e%3cpath%20d='M4.646%204.646a.5.5%200%200%201%20.708%200L8%207.293l2.646-2.647a.5.5%200%200%201%20.708.708L8.707%208l2.647%202.646a.5.5%200%200%201-.708.708L8%208.707l-2.646%202.647a.5.5%200%200%201-.708-.708L7.293%208%204.646%205.354a.5.5%200%200%201%200-.708'/%3e%3c/svg%3e";
|
|
600
600
|
var We = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, A = function(e) {
|
|
601
601
|
return typeof e == "string" ? e.length > 0 : typeof e == "number";
|
|
602
|
-
},
|
|
602
|
+
}, $ = function(e, t, o) {
|
|
603
603
|
return t === void 0 && (t = 0), o === void 0 && (o = Math.pow(10, t)), Math.round(o * e) / o + 0;
|
|
604
604
|
}, S = function(e, t, o) {
|
|
605
605
|
return t === void 0 && (t = 0), o === void 0 && (o = 1), e > o ? o : e > t ? e : t;
|
|
@@ -607,8 +607,8 @@ var We = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, A = function(e) {
|
|
|
607
607
|
return (e = isFinite(e) ? e % 360 : 0) > 0 ? e : e + 360;
|
|
608
608
|
}, Yt = function(e) {
|
|
609
609
|
return { r: S(e.r, 0, 255), g: S(e.g, 0, 255), b: S(e.b, 0, 255), a: S(e.a) };
|
|
610
|
-
},
|
|
611
|
-
return { r:
|
|
610
|
+
}, yt = function(e) {
|
|
611
|
+
return { r: $(e.r), g: $(e.g), b: $(e.b), a: $(e.a, 3) };
|
|
612
612
|
}, Je = /^#([0-9a-f]{3,8})$/i, rt = function(e) {
|
|
613
613
|
var t = e.toString(16);
|
|
614
614
|
return t.length < 2 ? "0" + t : t;
|
|
@@ -623,7 +623,7 @@ var We = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, A = function(e) {
|
|
|
623
623
|
}, Zt = function(e) {
|
|
624
624
|
return { h: ue(e.h), s: S(e.s, 0, 100), l: S(e.l, 0, 100), a: S(e.a) };
|
|
625
625
|
}, Gt = function(e) {
|
|
626
|
-
return { h:
|
|
626
|
+
return { h: $(e.h), s: $(e.s), l: $(e.l), a: $(e.a, 3) };
|
|
627
627
|
}, Kt = function(e) {
|
|
628
628
|
return fe((o = (t = e).s, { h: t.h, s: (o *= ((r = t.l) < 50 ? r : 100 - r) / 100) > 0 ? 2 * o / (r + o) * 100 : 0, v: r + o, a: t.a }));
|
|
629
629
|
var t, o, r;
|
|
@@ -632,7 +632,7 @@ var We = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, A = function(e) {
|
|
|
632
632
|
var t, o, r, s;
|
|
633
633
|
}, Xe = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, Qe = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, to = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, eo = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, Wt = { string: [[function(e) {
|
|
634
634
|
var t = Je.exec(e);
|
|
635
|
-
return t ? (e = t[1]).length <= 4 ? { r: parseInt(e[0] + e[0], 16), g: parseInt(e[1] + e[1], 16), b: parseInt(e[2] + e[2], 16), a: e.length === 4 ?
|
|
635
|
+
return t ? (e = t[1]).length <= 4 ? { r: parseInt(e[0] + e[0], 16), g: parseInt(e[1] + e[1], 16), b: parseInt(e[2] + e[2], 16), a: e.length === 4 ? $(parseInt(e[3] + e[3], 16) / 255, 2) : 1 } : e.length === 6 || e.length === 8 ? { r: parseInt(e.substr(0, 2), 16), g: parseInt(e.substr(2, 2), 16), b: parseInt(e.substr(4, 2), 16), a: e.length === 8 ? $(parseInt(e.substr(6, 2), 16) / 255, 2) : 1 } : null : null;
|
|
636
636
|
}, "hex"], [function(e) {
|
|
637
637
|
var t = to.exec(e) || eo.exec(e);
|
|
638
638
|
return t ? t[2] !== t[4] || t[4] !== t[6] ? null : Yt({ r: Number(t[1]) / (t[2] ? 100 / 255 : 1), g: Number(t[3]) / (t[4] ? 100 / 255 : 1), b: Number(t[5]) / (t[6] ? 100 / 255 : 1), a: t[7] === void 0 ? 1 : Number(t[7]) / (t[8] ? 100 : 1) }) : null;
|
|
@@ -664,10 +664,10 @@ var We = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, A = function(e) {
|
|
|
664
664
|
return [null, void 0];
|
|
665
665
|
}, oo = function(e) {
|
|
666
666
|
return typeof e == "string" ? Jt(e.trim(), Wt.string) : typeof e == "object" && e !== null ? Jt(e, Wt.object) : [null, void 0];
|
|
667
|
-
},
|
|
667
|
+
}, wt = function(e, t) {
|
|
668
668
|
var o = J(e);
|
|
669
669
|
return { h: o.h, s: S(o.s + 100 * t, 0, 100), l: o.l, a: o.a };
|
|
670
|
-
},
|
|
670
|
+
}, $t = function(e) {
|
|
671
671
|
return (299 * e.r + 587 * e.g + 114 * e.b) / 1e3 / 255;
|
|
672
672
|
}, Xt = function(e, t) {
|
|
673
673
|
var o = J(e);
|
|
@@ -679,18 +679,18 @@ var We = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, A = function(e) {
|
|
|
679
679
|
return e.prototype.isValid = function() {
|
|
680
680
|
return this.parsed !== null;
|
|
681
681
|
}, e.prototype.brightness = function() {
|
|
682
|
-
return
|
|
682
|
+
return $($t(this.rgba), 2);
|
|
683
683
|
}, e.prototype.isDark = function() {
|
|
684
|
-
return
|
|
684
|
+
return $t(this.rgba) < 0.5;
|
|
685
685
|
}, e.prototype.isLight = function() {
|
|
686
|
-
return
|
|
686
|
+
return $t(this.rgba) >= 0.5;
|
|
687
687
|
}, e.prototype.toHex = function() {
|
|
688
|
-
return t =
|
|
688
|
+
return t = yt(this.rgba), o = t.r, r = t.g, s = t.b, a = (i = t.a) < 1 ? rt($(255 * i)) : "", "#" + rt(o) + rt(r) + rt(s) + a;
|
|
689
689
|
var t, o, r, s, i, a;
|
|
690
690
|
}, e.prototype.toRgb = function() {
|
|
691
|
-
return
|
|
691
|
+
return yt(this.rgba);
|
|
692
692
|
}, e.prototype.toRgbString = function() {
|
|
693
|
-
return t =
|
|
693
|
+
return t = yt(this.rgba), o = t.r, r = t.g, s = t.b, (i = t.a) < 1 ? "rgba(" + o + ", " + r + ", " + s + ", " + i + ")" : "rgb(" + o + ", " + r + ", " + s + ")";
|
|
694
694
|
var t, o, r, s, i;
|
|
695
695
|
}, e.prototype.toHsl = function() {
|
|
696
696
|
return Gt(J(this.rgba));
|
|
@@ -698,17 +698,17 @@ var We = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, A = function(e) {
|
|
|
698
698
|
return t = Gt(J(this.rgba)), o = t.h, r = t.s, s = t.l, (i = t.a) < 1 ? "hsla(" + o + ", " + r + "%, " + s + "%, " + i + ")" : "hsl(" + o + ", " + r + "%, " + s + "%)";
|
|
699
699
|
var t, o, r, s, i;
|
|
700
700
|
}, e.prototype.toHsv = function() {
|
|
701
|
-
return t = he(this.rgba), { h:
|
|
701
|
+
return t = he(this.rgba), { h: $(t.h), s: $(t.s), v: $(t.v), a: $(t.a, 3) };
|
|
702
702
|
var t;
|
|
703
703
|
}, e.prototype.invert = function() {
|
|
704
704
|
return C({ r: 255 - (t = this.rgba).r, g: 255 - t.g, b: 255 - t.b, a: t.a });
|
|
705
705
|
var t;
|
|
706
706
|
}, e.prototype.saturate = function(t) {
|
|
707
|
-
return t === void 0 && (t = 0.1), C(
|
|
707
|
+
return t === void 0 && (t = 0.1), C(wt(this.rgba, t));
|
|
708
708
|
}, e.prototype.desaturate = function(t) {
|
|
709
|
-
return t === void 0 && (t = 0.1), C(
|
|
709
|
+
return t === void 0 && (t = 0.1), C(wt(this.rgba, -t));
|
|
710
710
|
}, e.prototype.grayscale = function() {
|
|
711
|
-
return C(
|
|
711
|
+
return C(wt(this.rgba, -1));
|
|
712
712
|
}, e.prototype.lighten = function(t) {
|
|
713
713
|
return t === void 0 && (t = 0.1), C(Xt(this.rgba, t));
|
|
714
714
|
}, e.prototype.darken = function(t) {
|
|
@@ -716,28 +716,28 @@ var We = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, A = function(e) {
|
|
|
716
716
|
}, e.prototype.rotate = function(t) {
|
|
717
717
|
return t === void 0 && (t = 15), this.hue(this.hue() + t);
|
|
718
718
|
}, e.prototype.alpha = function(t) {
|
|
719
|
-
return typeof t == "number" ? C({ r: (o = this.rgba).r, g: o.g, b: o.b, a: t }) :
|
|
719
|
+
return typeof t == "number" ? C({ r: (o = this.rgba).r, g: o.g, b: o.b, a: t }) : $(this.rgba.a, 3);
|
|
720
720
|
var o;
|
|
721
721
|
}, e.prototype.hue = function(t) {
|
|
722
722
|
var o = J(this.rgba);
|
|
723
|
-
return typeof t == "number" ? C({ h: t, s: o.s, l: o.l, a: o.a }) :
|
|
723
|
+
return typeof t == "number" ? C({ h: t, s: o.s, l: o.l, a: o.a }) : $(o.h);
|
|
724
724
|
}, e.prototype.isEqual = function(t) {
|
|
725
725
|
return this.toHex() === C(t).toHex();
|
|
726
726
|
}, e;
|
|
727
727
|
}(), C = function(e) {
|
|
728
728
|
return e instanceof Qt ? e : new Qt(e);
|
|
729
729
|
};
|
|
730
|
-
const
|
|
730
|
+
const xt = process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
|
|
731
731
|
function ro(e) {
|
|
732
732
|
return {
|
|
733
733
|
debug: (t, ...o) => {
|
|
734
|
-
|
|
734
|
+
xt && console.debug(`[${e}]`, t, ...o);
|
|
735
735
|
},
|
|
736
736
|
info: (t, ...o) => {
|
|
737
|
-
|
|
737
|
+
xt && console.info(`[${e}]`, t, ...o);
|
|
738
738
|
},
|
|
739
739
|
warn: (t, ...o) => {
|
|
740
|
-
|
|
740
|
+
xt && console.warn(`[${e}]`, t, ...o);
|
|
741
741
|
},
|
|
742
742
|
error: (t, ...o) => {
|
|
743
743
|
console.error(`[${e}]`, t, ...o);
|
|
@@ -767,7 +767,7 @@ function io(e) {
|
|
|
767
767
|
const t = e.toLowerCase().trim();
|
|
768
768
|
return so[t] || null;
|
|
769
769
|
}
|
|
770
|
-
function
|
|
770
|
+
function St(e, t) {
|
|
771
771
|
const o = te(e), r = te(t), s = Math.max(o, r), i = Math.min(o, r);
|
|
772
772
|
return (s + 0.05) / (i + 0.05);
|
|
773
773
|
}
|
|
@@ -789,15 +789,15 @@ function ao(e, t = {}) {
|
|
|
789
789
|
} = t, n = s.map((c) => c === "black" ? "#000000" : c === "white" ? "#ffffff" : c === "light" ? i.light || "#f8f9fa" : c === "dark" ? i.dark || "#343a40" : c);
|
|
790
790
|
let l = a, p = 0;
|
|
791
791
|
for (const c of n) {
|
|
792
|
-
const h =
|
|
792
|
+
const h = St(e, c);
|
|
793
793
|
h >= r && h > p && (p = h, l = c);
|
|
794
794
|
}
|
|
795
795
|
if (p === 0) {
|
|
796
|
-
const c =
|
|
796
|
+
const c = St(e, a);
|
|
797
797
|
l = a, p = c;
|
|
798
798
|
for (const h of n) {
|
|
799
799
|
if (h === a) continue;
|
|
800
|
-
const w =
|
|
800
|
+
const w = St(e, h);
|
|
801
801
|
w > p && (p = w, l = h);
|
|
802
802
|
}
|
|
803
803
|
b.warn(
|
|
@@ -891,7 +891,7 @@ function uo(e, t, o, r = !1) {
|
|
|
891
891
|
ariaDisabled: o
|
|
892
892
|
});
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function Ct(e, t, o) {
|
|
895
895
|
typeof o == "boolean" ? e.setAttribute(t, o ? "true" : "false") : e.setAttribute(t, o);
|
|
896
896
|
}
|
|
897
897
|
function ho(e) {
|
|
@@ -916,7 +916,7 @@ function oe() {
|
|
|
916
916
|
return (e === "x" ? t : t & 3 | 8).toString(16);
|
|
917
917
|
}));
|
|
918
918
|
}
|
|
919
|
-
function
|
|
919
|
+
function Tt() {
|
|
920
920
|
const e = "test-local-storage";
|
|
921
921
|
try {
|
|
922
922
|
return localStorage.setItem(e, e), localStorage.removeItem(e), !0;
|
|
@@ -955,7 +955,7 @@ async function go() {
|
|
|
955
955
|
}
|
|
956
956
|
async function re() {
|
|
957
957
|
const e = mo, t = bo;
|
|
958
|
-
if (
|
|
958
|
+
if (Tt()) {
|
|
959
959
|
const o = be(e);
|
|
960
960
|
if (o && o.id && o.timestamp && Date.now() - o.timestamp < t)
|
|
961
961
|
return b.debug("Using existing session ID from localStorage"), o.id;
|
|
@@ -986,7 +986,7 @@ function lt(e) {
|
|
|
986
986
|
const s = t / r * 100, i = o / r * 100;
|
|
987
987
|
return Math.round(s - i);
|
|
988
988
|
}
|
|
989
|
-
function
|
|
989
|
+
function O() {
|
|
990
990
|
return {
|
|
991
991
|
count: 0,
|
|
992
992
|
sum: 0,
|
|
@@ -997,17 +997,17 @@ function P() {
|
|
|
997
997
|
};
|
|
998
998
|
}
|
|
999
999
|
function vo(e) {
|
|
1000
|
-
if (!
|
|
1001
|
-
return
|
|
1000
|
+
if (!Tt())
|
|
1001
|
+
return O();
|
|
1002
1002
|
try {
|
|
1003
1003
|
const t = be(e);
|
|
1004
|
-
return t ? { ...
|
|
1004
|
+
return t ? { ...O(), ...t } : O();
|
|
1005
1005
|
} catch (t) {
|
|
1006
|
-
return b.warn("Failed to load localStats from localStorage", t),
|
|
1006
|
+
return b.warn("Failed to load localStats from localStorage", t), O();
|
|
1007
1007
|
}
|
|
1008
1008
|
}
|
|
1009
1009
|
function yo(e, t) {
|
|
1010
|
-
if (!
|
|
1010
|
+
if (!Tt())
|
|
1011
1011
|
return !1;
|
|
1012
1012
|
try {
|
|
1013
1013
|
return ge(e, t) ? (b.debug("Saved localStats to localStorage", t), !0) : !1;
|
|
@@ -1032,7 +1032,7 @@ function wo(e, t) {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
function $o(e, t) {
|
|
1034
1034
|
if (!e.count && !t.count)
|
|
1035
|
-
return
|
|
1035
|
+
return O();
|
|
1036
1036
|
if (!e.count)
|
|
1037
1037
|
return { ...t };
|
|
1038
1038
|
const o = {
|
|
@@ -1054,7 +1054,7 @@ function $o(e, t) {
|
|
|
1054
1054
|
function ve(e) {
|
|
1055
1055
|
return !e || typeof e != "string" ? !1 : /^[\p{Emoji}]$/u.test(e) ? !0 : new RegExp("^\\p{Emoji}(\\p{Emoji_Modifier}|\\u200D\\p{Emoji})*$", "u").test(e);
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function dt(e) {
|
|
1058
1058
|
if (!e || typeof e != "string")
|
|
1059
1059
|
return !1;
|
|
1060
1060
|
const t = e.trim();
|
|
@@ -1100,7 +1100,7 @@ function ko(e, t = 50) {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
class Ao {
|
|
1102
1102
|
constructor(t) {
|
|
1103
|
-
this.stats =
|
|
1103
|
+
this.stats = O(), this.localStats = O(), this.isLoading = !0, this.isSubmitting = !1, (this.host = t).addController(this);
|
|
1104
1104
|
}
|
|
1105
1105
|
hostConnected() {
|
|
1106
1106
|
this.loadStats();
|
|
@@ -1130,7 +1130,13 @@ class Ao {
|
|
|
1130
1130
|
if (!r)
|
|
1131
1131
|
throw new Error("Name parameter is required");
|
|
1132
1132
|
let i;
|
|
1133
|
-
t.dataFunc && typeof window < "u"
|
|
1133
|
+
if (t.dataFunc && typeof window < "u") {
|
|
1134
|
+
const w = t.dataFunc.replace(/^window\./, "").split(".");
|
|
1135
|
+
let v = window;
|
|
1136
|
+
for (const E of w)
|
|
1137
|
+
if (v = v == null ? void 0 : v[E], v === void 0) break;
|
|
1138
|
+
i = v;
|
|
1139
|
+
}
|
|
1134
1140
|
let a;
|
|
1135
1141
|
if (i && typeof i == "function")
|
|
1136
1142
|
b.debug(`Using data function for: ${r}`, {
|
|
@@ -1140,10 +1146,10 @@ class Ao {
|
|
|
1140
1146
|
else {
|
|
1141
1147
|
const h = t.dataEndpoint || ee, w = `${h}/${encodeURIComponent(o)}/${encodeURIComponent(r)}`;
|
|
1142
1148
|
b.debug(`Fetching stats for: ${r}`, { endpoint: h, projectKey: o });
|
|
1143
|
-
const
|
|
1144
|
-
if (
|
|
1145
|
-
throw new Error(`API request failed with status: ${
|
|
1146
|
-
a = await
|
|
1149
|
+
const v = await fetch(w);
|
|
1150
|
+
if (!v.ok)
|
|
1151
|
+
throw new Error(`API request failed with status: ${v.status}`);
|
|
1152
|
+
a = await v.json();
|
|
1147
1153
|
}
|
|
1148
1154
|
if (!a.success)
|
|
1149
1155
|
throw b.error("Backend returned unsuccessful response", a), new Error("Backend returned unsuccessful response");
|
|
@@ -1172,7 +1178,7 @@ class Ao {
|
|
|
1172
1178
|
const o = vo(t);
|
|
1173
1179
|
b.debug("Loaded localStats from localStorage", o), this.localStats = o;
|
|
1174
1180
|
} catch (o) {
|
|
1175
|
-
b.warn("Failed to generate localStorage key for localStats", o), this.localStats =
|
|
1181
|
+
b.warn("Failed to generate localStorage key for localStats", o), this.localStats = O();
|
|
1176
1182
|
}
|
|
1177
1183
|
this.host.requestUpdate();
|
|
1178
1184
|
}
|
|
@@ -1243,7 +1249,13 @@ class Ao {
|
|
|
1243
1249
|
return l;
|
|
1244
1250
|
}
|
|
1245
1251
|
async sendStats(t) {
|
|
1246
|
-
const o = JSON.stringify(t),
|
|
1252
|
+
const o = JSON.stringify(t), r = this.host, s = r.dataEndpoint || ee;
|
|
1253
|
+
if (r.dataFunc) {
|
|
1254
|
+
b.debug("Skip sending stats as data function is in use.");
|
|
1255
|
+
return;
|
|
1256
|
+
}
|
|
1257
|
+
if (!dt(s))
|
|
1258
|
+
throw b.error("Invalid data endpoint", { dataEndpoint: s }), new Error(`Invalid data endpoint: ${s}`);
|
|
1247
1259
|
try {
|
|
1248
1260
|
if (b.debug("Sending stats", { endpoint: s, event: t }), typeof navigator < "u" && navigator.sendBeacon)
|
|
1249
1261
|
if (navigator.sendBeacon(s, o)) {
|
|
@@ -1461,7 +1473,7 @@ function ye(e, t = {}) {
|
|
|
1461
1473
|
o === "functional" && !r && !s && console.warn(
|
|
1462
1474
|
"No alt text or aria-label provided for functional icon. This may cause accessibility issues."
|
|
1463
1475
|
);
|
|
1464
|
-
const a = i ? " (selected)" : "", n =
|
|
1476
|
+
const a = i ? " (selected)" : "", n = dt(e) && !r ? "" : r || e, l = s || (n ? `${n}${a}` : a);
|
|
1465
1477
|
return {
|
|
1466
1478
|
alt: n,
|
|
1467
1479
|
ariaLabel: l,
|
|
@@ -1504,7 +1516,7 @@ let xe = class {
|
|
|
1504
1516
|
* Copyright 2018 Google LLC
|
|
1505
1517
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1506
1518
|
*/
|
|
1507
|
-
const
|
|
1519
|
+
const y = $e(class extends xe {
|
|
1508
1520
|
constructor(e) {
|
|
1509
1521
|
var t;
|
|
1510
1522
|
if (super(e), e.type !== we.ATTRIBUTE || e.name !== "class" || ((t = e.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
@@ -1525,7 +1537,7 @@ const v = $e(class extends xe {
|
|
|
1525
1537
|
const a = !!t[i];
|
|
1526
1538
|
a === this.st.has(i) || (s = this.nt) != null && s.has(i) || (a ? (o.add(i), this.st.add(i)) : (o.remove(i), this.st.delete(i)));
|
|
1527
1539
|
}
|
|
1528
|
-
return
|
|
1540
|
+
return z;
|
|
1529
1541
|
}
|
|
1530
1542
|
});
|
|
1531
1543
|
var Oo = Object.defineProperty, g = (e, t, o, r) => {
|
|
@@ -1621,7 +1633,7 @@ const st = {
|
|
|
1621
1633
|
* Update ARIA attributes for accessibility
|
|
1622
1634
|
*/
|
|
1623
1635
|
updateAriaAttributes() {
|
|
1624
|
-
this.ariaLabel &&
|
|
1636
|
+
this.ariaLabel && Ct(this, "aria-label", this.ariaLabel), this.ariaDescribedby && Ct(this, "aria-describedby", this.ariaDescribedby), Ct(this, "aria-busy", this.dataController.isLoading ? "true" : "false");
|
|
1625
1637
|
}
|
|
1626
1638
|
/**
|
|
1627
1639
|
* Update host CSS classes based on state
|
|
@@ -1707,7 +1719,7 @@ const st = {
|
|
|
1707
1719
|
"pc-status": !0,
|
|
1708
1720
|
[`pc-flex-content-${k(this.statsPosition, this.statsAlign)}`]: !0
|
|
1709
1721
|
};
|
|
1710
|
-
return d`<div class="${
|
|
1722
|
+
return d`<div class="${y(o)}" data-testid="pc-status">
|
|
1711
1723
|
${this.renderStatsText()} ${this.renderChartToggle()} ${this.renderEditToggleIcon()}
|
|
1712
1724
|
</div>`;
|
|
1713
1725
|
}
|
|
@@ -2079,7 +2091,7 @@ const To = F`
|
|
|
2079
2091
|
}
|
|
2080
2092
|
|
|
2081
2093
|
/* Removed unused responsive styles for action buttons */
|
|
2082
|
-
`,
|
|
2094
|
+
`, pt = F`
|
|
2083
2095
|
/* Default values for CSS variables - can be overridden by external :root or parent definitions */
|
|
2084
2096
|
:host {
|
|
2085
2097
|
--default-primary-color: #2196f3;
|
|
@@ -2593,7 +2605,7 @@ var zo = Object.defineProperty, Io = Object.getOwnPropertyDescriptor, Y = (e, t,
|
|
|
2593
2605
|
(a = e[i]) && (s = (r ? a(t, o, s) : a(s)) || s);
|
|
2594
2606
|
return r && s && zo(t, o, s), s;
|
|
2595
2607
|
};
|
|
2596
|
-
let
|
|
2608
|
+
let I = class extends m {
|
|
2597
2609
|
constructor() {
|
|
2598
2610
|
super(), this.min = 0, this.max = 10, this.type = x.nps, this.minLabel = "Not at all", this.maxLabel = "Extremely", this.minMaxPosition = "top", this.hoverValue = -1, this.handleNumberLeave = () => {
|
|
2599
2611
|
this.hoverValue = -1;
|
|
@@ -2618,7 +2630,7 @@ let z = class extends m {
|
|
|
2618
2630
|
<button
|
|
2619
2631
|
data-testid="nps-button-${s}"
|
|
2620
2632
|
?disabled=${!this.displayController.allowEdit()}
|
|
2621
|
-
class=${
|
|
2633
|
+
class=${y(a)}
|
|
2622
2634
|
@click="${() => this.handleNumberClick(s)}"
|
|
2623
2635
|
@mouseenter="${() => this.handleNumberHover(s)}"
|
|
2624
2636
|
@focus="${() => this.handleNumberHover(s)}"
|
|
@@ -2711,9 +2723,9 @@ let z = class extends m {
|
|
|
2711
2723
|
[`pc-flex-align-${k(this.statsPosition, this.statsAlign)}`]: !0
|
|
2712
2724
|
};
|
|
2713
2725
|
return d`
|
|
2714
|
-
<div class="pc-container ${
|
|
2726
|
+
<div class="pc-container ${y(e)}" data-testid="nps-container">
|
|
2715
2727
|
${this.renderLabelAtStart()}
|
|
2716
|
-
<div class="pc-body ${
|
|
2728
|
+
<div class="pc-body ${y(t)}" data-testid="nps-body">
|
|
2717
2729
|
${this.renderStatusAtStart()} ${this.renderContent()} ${this.renderStatusAtEnd()}
|
|
2718
2730
|
</div>
|
|
2719
2731
|
${this.renderLabelAtEnd()}
|
|
@@ -2721,25 +2733,25 @@ let z = class extends m {
|
|
|
2721
2733
|
`;
|
|
2722
2734
|
}
|
|
2723
2735
|
};
|
|
2724
|
-
|
|
2736
|
+
I.styles = [...m.styles, pt, To];
|
|
2725
2737
|
Y([
|
|
2726
2738
|
f({ type: String, attribute: "min-label" })
|
|
2727
|
-
],
|
|
2739
|
+
], I.prototype, "minLabel", 2);
|
|
2728
2740
|
Y([
|
|
2729
2741
|
f({ type: String, attribute: "max-label" })
|
|
2730
|
-
],
|
|
2742
|
+
], I.prototype, "maxLabel", 2);
|
|
2731
2743
|
Y([
|
|
2732
2744
|
f({ type: String, attribute: "thank-you-msg" })
|
|
2733
|
-
],
|
|
2745
|
+
], I.prototype, "thankYouMsg", 2);
|
|
2734
2746
|
Y([
|
|
2735
2747
|
f({ type: String, attribute: "min-max-position" })
|
|
2736
|
-
],
|
|
2748
|
+
], I.prototype, "minMaxPosition", 2);
|
|
2737
2749
|
Y([
|
|
2738
|
-
|
|
2739
|
-
],
|
|
2740
|
-
|
|
2750
|
+
Ot()
|
|
2751
|
+
], I.prototype, "hoverValue", 2);
|
|
2752
|
+
I = Y([
|
|
2741
2753
|
ot("pc-nps")
|
|
2742
|
-
],
|
|
2754
|
+
], I);
|
|
2743
2755
|
const No = F`
|
|
2744
2756
|
/* CSS variables inherit from parent - defaults are specified at usage sites */
|
|
2745
2757
|
|
|
@@ -3011,7 +3023,7 @@ let tt = class extends m {
|
|
|
3011
3023
|
"pc-status": !0,
|
|
3012
3024
|
[`pc-flex-content-${k("bottom", this.statsAlign)}`]: !0
|
|
3013
3025
|
};
|
|
3014
|
-
return d`<div class="${
|
|
3026
|
+
return d`<div class="${y(t)}" data-testid="pc-status">
|
|
3015
3027
|
<span>${this.renderStatsText()} ${this.renderEditToggleIcon("stats-edit-button")}</span>
|
|
3016
3028
|
</div>`;
|
|
3017
3029
|
}
|
|
@@ -3026,7 +3038,7 @@ let tt = class extends m {
|
|
|
3026
3038
|
}, t = this.displayController.shouldDisableSubmitButton();
|
|
3027
3039
|
return d`
|
|
3028
3040
|
<button
|
|
3029
|
-
class="${
|
|
3041
|
+
class="${y(e)}"
|
|
3030
3042
|
data-testid="pc-submit-button"
|
|
3031
3043
|
@click="${this.handleSubmit}"
|
|
3032
3044
|
?disabled="${t}"
|
|
@@ -3069,7 +3081,7 @@ let tt = class extends m {
|
|
|
3069
3081
|
class="poll-option-icon"
|
|
3070
3082
|
aria-hidden="${s.ariaHidden ? "true" : "false"}"
|
|
3071
3083
|
>${e == null ? void 0 : e.icon}</span
|
|
3072
|
-
>` :
|
|
3084
|
+
>` : dt(e == null ? void 0 : e.icon) ? d`<img
|
|
3073
3085
|
src="${e == null ? void 0 : e.icon}"
|
|
3074
3086
|
alt="${s.alt}"
|
|
3075
3087
|
class="poll-option-icon-img"
|
|
@@ -3107,7 +3119,7 @@ let tt = class extends m {
|
|
|
3107
3119
|
return d`
|
|
3108
3120
|
<button
|
|
3109
3121
|
data-testid="poll-option-i${t}"
|
|
3110
|
-
class="${
|
|
3122
|
+
class="${y(s)}"
|
|
3111
3123
|
@click="${() => this.handleClick(e)}"
|
|
3112
3124
|
?disabled="${r}"
|
|
3113
3125
|
id="${a}-option-${t}"
|
|
@@ -3134,7 +3146,7 @@ let tt = class extends m {
|
|
|
3134
3146
|
});
|
|
3135
3147
|
return d`
|
|
3136
3148
|
<div
|
|
3137
|
-
class="${
|
|
3149
|
+
class="${y({
|
|
3138
3150
|
"poll-container": !0
|
|
3139
3151
|
})}"
|
|
3140
3152
|
data-testid="poll-option-container"
|
|
@@ -3151,13 +3163,13 @@ let tt = class extends m {
|
|
|
3151
3163
|
renderBarChart() {
|
|
3152
3164
|
var l, p;
|
|
3153
3165
|
const e = ((l = this.dataController.stats) == null ? void 0 : l.breakdown) || {}, t = ((p = this.dataController.localStats) == null ? void 0 : p.breakdown) || {}, o = Object.values(e).reduce((c, h) => c + h, 0), r = this.options.map((c, h) => {
|
|
3154
|
-
const w = e[c.value] || 0,
|
|
3166
|
+
const w = e[c.value] || 0, v = o > 0 ? Math.round(w / o * 100) : 0, E = (t[c.value] || 0) > 0;
|
|
3155
3167
|
return {
|
|
3156
3168
|
option: c,
|
|
3157
3169
|
index: h,
|
|
3158
3170
|
voteCount: w,
|
|
3159
|
-
percentage:
|
|
3160
|
-
isSelected:
|
|
3171
|
+
percentage: v,
|
|
3172
|
+
isSelected: E
|
|
3161
3173
|
};
|
|
3162
3174
|
}), s = this.multiple ? _.GROUP : _.RADIOGROUP, i = this.question || this.name || "Options", a = B({
|
|
3163
3175
|
role: s,
|
|
@@ -3165,7 +3177,7 @@ let tt = class extends m {
|
|
|
3165
3177
|
});
|
|
3166
3178
|
return d`
|
|
3167
3179
|
<div
|
|
3168
|
-
class="${
|
|
3180
|
+
class="${y({
|
|
3169
3181
|
"poll-container": !0
|
|
3170
3182
|
})}"
|
|
3171
3183
|
data-testid="poll-chart-container"
|
|
@@ -3181,7 +3193,7 @@ let tt = class extends m {
|
|
|
3181
3193
|
};
|
|
3182
3194
|
return d`
|
|
3183
3195
|
<div
|
|
3184
|
-
class="${
|
|
3196
|
+
class="${y(h)}"
|
|
3185
3197
|
data-testid="poll-chart-item-${c.index}"
|
|
3186
3198
|
role="listitem"
|
|
3187
3199
|
aria-label="${c.option.label}: ${c.percentage}% (${c.voteCount} votes)"
|
|
@@ -3252,12 +3264,12 @@ let tt = class extends m {
|
|
|
3252
3264
|
});
|
|
3253
3265
|
return d`
|
|
3254
3266
|
<div
|
|
3255
|
-
class="pc-container ${
|
|
3267
|
+
class="pc-container ${y(t)}"
|
|
3256
3268
|
data-testid="poll-container"
|
|
3257
3269
|
...=${s}
|
|
3258
3270
|
>
|
|
3259
3271
|
${this.renderLabelAtStart()}
|
|
3260
|
-
<div class="${
|
|
3272
|
+
<div class="${y(r)}" data-testid="poll-body">
|
|
3261
3273
|
${this.renderContent()} ${this.renderFooter()}
|
|
3262
3274
|
</div>
|
|
3263
3275
|
${this.renderLabelAtEnd()}
|
|
@@ -3265,7 +3277,7 @@ let tt = class extends m {
|
|
|
3265
3277
|
`;
|
|
3266
3278
|
}
|
|
3267
3279
|
};
|
|
3268
|
-
tt.styles = [...m.styles,
|
|
3280
|
+
tt.styles = [...m.styles, pt, No];
|
|
3269
3281
|
Nt([
|
|
3270
3282
|
f({ type: Boolean })
|
|
3271
3283
|
], tt.prototype, "multiple", 2);
|
|
@@ -3380,10 +3392,10 @@ const Se = "important", Uo = " !" + Se, jo = $e(class extends xe {
|
|
|
3380
3392
|
r.includes("-") || i ? o.setProperty(r, i ? s.slice(0, -11) : s, i ? Se : "") : o[r] = s;
|
|
3381
3393
|
}
|
|
3382
3394
|
}
|
|
3383
|
-
return
|
|
3395
|
+
return z;
|
|
3384
3396
|
}
|
|
3385
3397
|
});
|
|
3386
|
-
var Bo = Object.defineProperty, Do = Object.getOwnPropertyDescriptor,
|
|
3398
|
+
var Bo = Object.defineProperty, Do = Object.getOwnPropertyDescriptor, ut = (e, t, o, r) => {
|
|
3387
3399
|
for (var s = r > 1 ? void 0 : r ? Do(t, o) : t, i = e.length - 1, a; i >= 0; i--)
|
|
3388
3400
|
(a = e[i]) && (s = (r ? a(t, o, s) : a(s)) || s);
|
|
3389
3401
|
return r && s && Bo(t, o, s), s;
|
|
@@ -3424,7 +3436,7 @@ let V = class extends m {
|
|
|
3424
3436
|
<div class="pc-section" data-testid="pc-section">
|
|
3425
3437
|
<span
|
|
3426
3438
|
data-testid="stars-view-star-${n}"
|
|
3427
|
-
class=${
|
|
3439
|
+
class=${y(c)}
|
|
3428
3440
|
style=${jo(h)}
|
|
3429
3441
|
role="${r ? "button" : "presentation"}"
|
|
3430
3442
|
tabindex="${r ? "0" : ""}"
|
|
@@ -3474,9 +3486,9 @@ let V = class extends m {
|
|
|
3474
3486
|
[`pc-flex-align-${o}`]: !0
|
|
3475
3487
|
};
|
|
3476
3488
|
return d`
|
|
3477
|
-
<div class="pc-container ${
|
|
3489
|
+
<div class="pc-container ${y(t)}" data-testid="pc-container">
|
|
3478
3490
|
${this.renderLabelAtStart()}
|
|
3479
|
-
<div class="${
|
|
3491
|
+
<div class="${y(r)}" data-testid="stars-body">
|
|
3480
3492
|
${this.renderStatusAtStart()} ${this.renderChart()} ${this.renderStars()}
|
|
3481
3493
|
${this.renderStatusAtEnd()}
|
|
3482
3494
|
</div>
|
|
@@ -3485,17 +3497,17 @@ let V = class extends m {
|
|
|
3485
3497
|
`;
|
|
3486
3498
|
}
|
|
3487
3499
|
};
|
|
3488
|
-
V.styles = [...m.styles,
|
|
3489
|
-
|
|
3500
|
+
V.styles = [...m.styles, pt, Ro];
|
|
3501
|
+
ut([
|
|
3490
3502
|
f({ type: String })
|
|
3491
3503
|
], V.prototype, "icon", 2);
|
|
3492
|
-
|
|
3504
|
+
ut([
|
|
3493
3505
|
f({ type: Number, attribute: "num-stars" })
|
|
3494
3506
|
], V.prototype, "numStars", 2);
|
|
3495
|
-
|
|
3496
|
-
|
|
3507
|
+
ut([
|
|
3508
|
+
Ot()
|
|
3497
3509
|
], V.prototype, "hoverValue", 2);
|
|
3498
|
-
V =
|
|
3510
|
+
V = ut([
|
|
3499
3511
|
ot("pc-stars")
|
|
3500
3512
|
], V);
|
|
3501
3513
|
const Vo = F`
|
|
@@ -3836,13 +3848,13 @@ const Vo = F`
|
|
|
3836
3848
|
};
|
|
3837
3849
|
function Ce(e) {
|
|
3838
3850
|
let t = "❓", o = !1;
|
|
3839
|
-
return e ? e in se ? t = se[e] : ve(e) ? t = e :
|
|
3851
|
+
return e ? e in se ? t = se[e] : ve(e) ? t = e : dt(e) ? (o = !0, t = e) : /^\w+@\w+$/.test(e) ? t = e : e.endsWith(".svg") ? (t = `https://cdn.jsdelivr.net/npm/@mdi/svg@7.4.47/svg/${e}`, o = !0) : t = e : t = "❓", {
|
|
3840
3852
|
icon: t,
|
|
3841
3853
|
isRemoteImage: o
|
|
3842
3854
|
};
|
|
3843
3855
|
}
|
|
3844
3856
|
const qo = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23434343'%3e%3cpath%20d='M480-480Zm0%20400q-83%200-156-31.5T197-197q-54-54-85.5-127T80-480q0-83%2031.5-156T197-763q54-54%20127-85.5T480-880q43%200%2083%208.5t77%2024.5v90q-35-20-75.5-31.5T480-800q-133%200-226.5%2093.5T160-480q0%20133%2093.5%20226.5T480-160q133%200%20226.5-93.5T800-480q0-32-6.5-62T776-600h86q9%2029%2013.5%2058.5T880-480q0%2083-31.5%20156T763-197q-54%2054-127%2085.5T480-80Zm320-600v-80h-80v-80h80v-80h80v80h80v80h-80v80h-80ZM620-520q25%200%2042.5-17.5T680-580q0-25-17.5-42.5T620-640q-25%200-42.5%2017.5T560-580q0%2025%2017.5%2042.5T620-520Zm-280%200q25%200%2042.5-17.5T400-580q0-25-17.5-42.5T340-640q-25%200-42.5%2017.5T280-580q0%2025%2017.5%2042.5T340-520Zm140%20260q68%200%20123.5-38.5T684-400H276q25%2063%2080.5%20101.5T480-260Z'/%3e%3c/svg%3e";
|
|
3845
|
-
var Ho = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor,
|
|
3857
|
+
var Ho = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, ht = (e, t, o, r) => {
|
|
3846
3858
|
for (var s = r > 1 ? void 0 : r ? Fo(t, o) : t, i = e.length - 1, a; i >= 0; i--)
|
|
3847
3859
|
(a = e[i]) && (s = (r ? a(t, o, s) : a(s)) || s);
|
|
3848
3860
|
return r && s && Ho(t, o, s), s;
|
|
@@ -3899,7 +3911,7 @@ let q = class extends m {
|
|
|
3899
3911
|
}, n = `${e.tooltip || e.value} reaction${o ? ", selected" : ""}${t ? `, ${r} votes` : ""}`;
|
|
3900
3912
|
return d`
|
|
3901
3913
|
<button
|
|
3902
|
-
class="${
|
|
3914
|
+
class="${y(a)}"
|
|
3903
3915
|
@click="${() => this.handleReactionClick(e)}"
|
|
3904
3916
|
?disabled="${s}"
|
|
3905
3917
|
aria-pressed="${o}"
|
|
@@ -3941,7 +3953,7 @@ let q = class extends m {
|
|
|
3941
3953
|
bottom: this.popupPosition === "bottom" || this.popupPosition === "auto" && !this.shouldShowPopoverOnTop()
|
|
3942
3954
|
};
|
|
3943
3955
|
return d`
|
|
3944
|
-
<div class="${
|
|
3956
|
+
<div class="${y(e)}" role="menu">
|
|
3945
3957
|
<div class="popover-content">
|
|
3946
3958
|
${this.options.map((t) => {
|
|
3947
3959
|
const o = this.displayController.shouldDisableOption(t);
|
|
@@ -3988,7 +4000,7 @@ let q = class extends m {
|
|
|
3988
4000
|
(o) => this.getReactionCount(o.value) > 0
|
|
3989
4001
|
);
|
|
3990
4002
|
return d`
|
|
3991
|
-
<div class="${
|
|
4003
|
+
<div class="${y(e)}">
|
|
3992
4004
|
${this.renderTriggerButton()}
|
|
3993
4005
|
${t.length > 0 ? d`
|
|
3994
4006
|
<div class="reaction-list">
|
|
@@ -4002,7 +4014,7 @@ let q = class extends m {
|
|
|
4002
4014
|
`;
|
|
4003
4015
|
} else
|
|
4004
4016
|
return d`
|
|
4005
|
-
<div class="${
|
|
4017
|
+
<div class="${y(e)}">
|
|
4006
4018
|
<div class="reaction-list">
|
|
4007
4019
|
${this.options.map((t) => this.renderReactionButton(t, this.showCounts))}
|
|
4008
4020
|
</div>
|
|
@@ -4046,9 +4058,9 @@ let q = class extends m {
|
|
|
4046
4058
|
[`pc-flex-align-${o}`]: !0
|
|
4047
4059
|
};
|
|
4048
4060
|
return d`
|
|
4049
|
-
<div class="${
|
|
4061
|
+
<div class="${y(t)}" data-testid="reaction-container">
|
|
4050
4062
|
${this.renderLabelAtStart()}
|
|
4051
|
-
<div class="${
|
|
4063
|
+
<div class="${y(r)}" data-testid="reaction-body">
|
|
4052
4064
|
${this.renderStatusAtStart()} ${this.renderChart()} ${this.renderReactions()}
|
|
4053
4065
|
${this.renderStatusAtEnd()}
|
|
4054
4066
|
</div>
|
|
@@ -4057,17 +4069,17 @@ let q = class extends m {
|
|
|
4057
4069
|
`;
|
|
4058
4070
|
}
|
|
4059
4071
|
};
|
|
4060
|
-
q.styles = [...m.styles,
|
|
4061
|
-
|
|
4072
|
+
q.styles = [...m.styles, pt, Vo];
|
|
4073
|
+
ht([
|
|
4062
4074
|
f({ type: Boolean, attribute: "show-counts" })
|
|
4063
4075
|
], q.prototype, "showCounts", 2);
|
|
4064
|
-
|
|
4076
|
+
ht([
|
|
4065
4077
|
f({ type: Boolean, reflect: !0 })
|
|
4066
4078
|
], q.prototype, "compact", 2);
|
|
4067
|
-
|
|
4079
|
+
ht([
|
|
4068
4080
|
f({ type: String, attribute: "popup-position" })
|
|
4069
4081
|
], q.prototype, "popupPosition", 2);
|
|
4070
|
-
q =
|
|
4082
|
+
q = ht([
|
|
4071
4083
|
ot("pc-reaction")
|
|
4072
4084
|
], q);
|
|
4073
4085
|
function G(e, t, o = void 0) {
|
|
@@ -4078,7 +4090,7 @@ function Yo(e, t = void 0) {
|
|
|
4078
4090
|
const o = e.textContent;
|
|
4079
4091
|
return o === "" || o === null ? t : o == null ? void 0 : o.trim();
|
|
4080
4092
|
}
|
|
4081
|
-
var Zo = Object.defineProperty, Go = Object.getOwnPropertyDescriptor,
|
|
4093
|
+
var Zo = Object.defineProperty, Go = Object.getOwnPropertyDescriptor, ft = (e, t, o, r) => {
|
|
4082
4094
|
for (var s = r > 1 ? void 0 : r ? Go(t, o) : t, i = e.length - 1, a; i >= 0; i--)
|
|
4083
4095
|
(a = e[i]) && (s = (r ? a(t, o, s) : a(s)) || s);
|
|
4084
4096
|
return r && s && Zo(t, o, s), s;
|
|
@@ -4179,16 +4191,16 @@ let H = class extends j {
|
|
|
4179
4191
|
}
|
|
4180
4192
|
}
|
|
4181
4193
|
};
|
|
4182
|
-
|
|
4194
|
+
ft([
|
|
4183
4195
|
f({ type: String })
|
|
4184
4196
|
], H.prototype, "type", 2);
|
|
4185
|
-
|
|
4197
|
+
ft([
|
|
4186
4198
|
f({ type: String })
|
|
4187
4199
|
], H.prototype, "options", 2);
|
|
4188
|
-
|
|
4189
|
-
|
|
4200
|
+
ft([
|
|
4201
|
+
Ot()
|
|
4190
4202
|
], H.prototype, "parsedOptions", 2);
|
|
4191
|
-
H =
|
|
4203
|
+
H = ft([
|
|
4192
4204
|
ot("poll-catch")
|
|
4193
4205
|
], H);
|
|
4194
4206
|
export {
|