pollcatch 2.5.6 → 2.5.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/pc.js +77 -79
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pollcatch",
3
3
  "private": false,
4
- "version": "2.5.6",
4
+ "version": "2.5.7",
5
5
  "type": "module",
6
6
  "main": "pc.js",
7
7
  "module": "pc.js",
package/pc.js CHANGED
@@ -22,7 +22,7 @@ let ke = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const Ke = (e) => new ke(typeof e == "string" ? e : e + "", void 0, Yt), B = (e, ...t) => {
25
+ const Ke = (e) => new ke(typeof e == "string" ? e : e + "", void 0, Yt), R = (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;
@@ -279,7 +279,7 @@ et.elementStyles = [], et.shadowRootOptions = { mode: "open" }, et[lt("elementPr
279
279
  * Copyright 2017 Google LLC
280
280
  * SPDX-License-Identifier: BSD-3-Clause
281
281
  */
282
- const ct = globalThis, St = ct.trustedTypes, se = St ? St.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Ee = "$lit$", U = `lit$${Math.random().toFixed(9).slice(2)}$`, Ae = "?" + U, oo = `<${Ae}>`, G = document, pt = () => G.createComment(""), ut = (e) => e === null || typeof e != "object" && typeof e != "function", Wt = Array.isArray, ro = (e) => Wt(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", Mt = `[
282
+ const ct = globalThis, St = ct.trustedTypes, se = St ? St.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Ee = "$lit$", V = `lit$${Math.random().toFixed(9).slice(2)}$`, Ae = "?" + V, oo = `<${Ae}>`, G = document, pt = () => G.createComment(""), ut = (e) => e === null || typeof e != "object" && typeof e != "function", Wt = Array.isArray, ro = (e) => Wt(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", Mt = `[
283
283
  \f\r]`, at = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ie = /-->/g, ae = />/g, K = RegExp(`>|${Mt}(?:([^\\s"'>=/]+)(${Mt}*=${Mt}*(?:[^
284
284
  \f\r"'\`<>=]|("|')|))|$)`, "g"), ne = /'/g, le = /"/g, Pe = /^(?:script|style|textarea|title)$/i, so = (e) => (t, ...o) => ({ _$litType$: e, strings: t, values: o }), c = so(1), q = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), ce = /* @__PURE__ */ new WeakMap(), W = G.createTreeWalker(G, 129);
285
285
  function Te(e, t) {
@@ -294,7 +294,7 @@ const io = (e, t) => {
294
294
  let d, p, h = -1, b = 0;
295
295
  for (; b < n.length && (a.lastIndex = b, p = a.exec(n), p !== null); ) b = a.lastIndex, a === at ? p[1] === "!--" ? a = ie : p[1] !== void 0 ? a = ae : p[2] !== void 0 ? (Pe.test(p[2]) && (s = RegExp("</" + p[2], "g")), a = K) : p[3] !== void 0 && (a = K) : a === K ? p[0] === ">" ? (a = s ?? at, h = -1) : p[1] === void 0 ? h = -2 : (h = a.lastIndex - p[2].length, d = p[1], a = p[3] === void 0 ? K : p[3] === '"' ? le : ne) : a === le || a === ne ? a = K : a === ie || a === ae ? a = at : (a = K, s = void 0);
296
296
  const w = a === K && e[l + 1].startsWith("/>") ? " " : "";
297
- i += a === at ? n + oo : h >= 0 ? (r.push(d), n.slice(0, h) + Ee + n.slice(h) + U + w) : n + U + (h === -2 ? l : w);
297
+ i += a === at ? n + oo : h >= 0 ? (r.push(d), n.slice(0, h) + Ee + n.slice(h) + V + w) : n + V + (h === -2 ? l : w);
298
298
  }
299
299
  return [Te(e, i + (e[o] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
300
300
  };
@@ -311,11 +311,11 @@ let Ht = class _e {
311
311
  for (; (s = W.nextNode()) !== null && n.length < l; ) {
312
312
  if (s.nodeType === 1) {
313
313
  if (s.hasAttributes()) for (const h of s.getAttributeNames()) if (h.endsWith(Ee)) {
314
- const b = p[a++], w = s.getAttribute(h).split(U), E = /([.?@])?(.*)/.exec(b);
314
+ const b = p[a++], w = s.getAttribute(h).split(V), E = /([.?@])?(.*)/.exec(b);
315
315
  n.push({ type: 1, index: i, name: E[2], strings: w, ctor: E[1] === "." ? no : E[1] === "?" ? lo : E[1] === "@" ? co : At }), s.removeAttribute(h);
316
- } else h.startsWith(U) && (n.push({ type: 6, index: i }), s.removeAttribute(h));
316
+ } else h.startsWith(V) && (n.push({ type: 6, index: i }), s.removeAttribute(h));
317
317
  if (Pe.test(s.tagName)) {
318
- const h = s.textContent.split(U), b = h.length - 1;
318
+ const h = s.textContent.split(V), b = h.length - 1;
319
319
  if (b > 0) {
320
320
  s.textContent = St ? St.emptyScript : "";
321
321
  for (let w = 0; w < b; w++) s.append(h[w], pt()), W.nextNode(), n.push({ type: 2, index: ++i });
@@ -325,7 +325,7 @@ let Ht = class _e {
325
325
  } else if (s.nodeType === 8) if (s.data === Ae) n.push({ type: 2, index: i });
326
326
  else {
327
327
  let h = -1;
328
- for (; (h = s.data.indexOf(U, h + 1)) !== -1; ) n.push({ type: 7, index: i }), h += U.length - 1;
328
+ for (; (h = s.data.indexOf(V, h + 1)) !== -1; ) n.push({ type: 7, index: i }), h += V.length - 1;
329
329
  }
330
330
  i++;
331
331
  }
@@ -515,7 +515,7 @@ const uo = (e, t, o) => {
515
515
  * Copyright 2017 Google LLC
516
516
  * SPDX-License-Identifier: BSD-3-Clause
517
517
  */
518
- let D = class extends et {
518
+ let N = class extends et {
519
519
  constructor() {
520
520
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
521
521
  }
@@ -541,9 +541,9 @@ let D = class extends et {
541
541
  }
542
542
  };
543
543
  var Ce;
544
- D._$litElement$ = !0, D.finalized = !0, (Ce = globalThis.litElementHydrateSupport) == null || Ce.call(globalThis, { LitElement: D });
544
+ N._$litElement$ = !0, N.finalized = !0, (Ce = globalThis.litElementHydrateSupport) == null || Ce.call(globalThis, { LitElement: N });
545
545
  const Nt = globalThis.litElementPolyfillSupport;
546
- Nt == null || Nt({ LitElement: D });
546
+ Nt == null || Nt({ LitElement: N });
547
547
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
548
548
  /**
549
549
  * @license
@@ -1091,7 +1091,7 @@ function Vo(e, t) {
1091
1091
  }
1092
1092
  return { avg: s > 0 ? Math.round(r / s * 10) / 10 : 0, count: s, sum: r, breakdown: o };
1093
1093
  }
1094
- function N() {
1094
+ function U() {
1095
1095
  return {
1096
1096
  count: 0,
1097
1097
  sum: 0,
@@ -1103,12 +1103,12 @@ function N() {
1103
1103
  }
1104
1104
  function Uo(e) {
1105
1105
  if (!Xt())
1106
- return N();
1106
+ return U();
1107
1107
  try {
1108
1108
  const t = Ne(e);
1109
- return t ? { ...N(), ...t } : N();
1109
+ return t ? { ...U(), ...t } : U();
1110
1110
  } catch (t) {
1111
- return g.warn("Failed to load localStats from localStorage", t), N();
1111
+ return g.warn("Failed to load localStats from localStorage", t), U();
1112
1112
  }
1113
1113
  }
1114
1114
  function jo(e, t) {
@@ -1137,7 +1137,7 @@ function qo(e, t) {
1137
1137
  }
1138
1138
  function Ho(e, t) {
1139
1139
  if (!e.count && !t.count)
1140
- return N();
1140
+ return U();
1141
1141
  if (!e.count)
1142
1142
  return { ...t };
1143
1143
  const o = {
@@ -1248,7 +1248,7 @@ async function Go(e, t, o) {
1248
1248
  class Zo {
1249
1249
  // Set when a fatal error occurs (e.g. type mismatch for registered widget)
1250
1250
  constructor(t) {
1251
- this.stats = N(), this.localStats = N(), this.prevLocalStats = N(), this.isLoading = !0, this.isLoadingConfig = !1, this.isSubmitting = !1, this.hasInteracted = !1, this.hasError = !1, (this.host = t).addController(this);
1251
+ this.stats = U(), this.localStats = U(), this.isLoading = !0, this.isLoadingConfig = !1, this.isSubmitting = !1, this.hasInteracted = !1, this.hasError = !1, (this.host = t).addController(this);
1252
1252
  }
1253
1253
  hostConnected() {
1254
1254
  this.loadStats();
@@ -1280,28 +1280,28 @@ class Zo {
1280
1280
  */
1281
1281
  applyWidgetAttributes(t) {
1282
1282
  if (!t) return;
1283
- const o = typeof t.attributes == "object" && t.attributes !== null && !Array.isArray(t.attributes) ? t.attributes : t, r = this.host, s = r, i = /* @__PURE__ */ new Set();
1284
- for (let a = 0; a < s.attributes.length; a++) {
1285
- const l = s.attributes[a];
1286
- l && l.name !== "type" && l.name !== "options" && l.name !== "initialized" && i.add(l.name);
1283
+ const o = typeof t.attributes == "object" && t.attributes !== null && !Array.isArray(t.attributes) ? t.attributes : t, r = this.host, s = r, i = /* @__PURE__ */ new Set(["type", "options", "initialized", "num-stars", "multiple"]), a = /* @__PURE__ */ new Set();
1284
+ for (let l = 0; l < s.attributes.length; l++) {
1285
+ const n = s.attributes[l];
1286
+ n && !i.has(n.name) && a.add(n.name);
1287
1287
  }
1288
- for (const [a, l] of Object.entries(o)) {
1289
- if (l == null) continue;
1290
- if (a === "options" && typeof l == "string") {
1291
- const d = Be(l);
1292
- r.options = d.map((p) => ({
1293
- value: p,
1294
- label: p,
1295
- icon: r.type === $.reaction ? p : void 0
1296
- })), g.debug("Applied widget options as property:", d);
1288
+ for (const [l, n] of Object.entries(o)) {
1289
+ if (n == null) continue;
1290
+ if (l === "options" && typeof n == "string") {
1291
+ const p = Be(n);
1292
+ r.options = p.map((h) => ({
1293
+ value: h,
1294
+ label: h,
1295
+ icon: r.type === $.reaction ? h : void 0
1296
+ })), g.debug("Applied widget options as property:", p);
1297
1297
  continue;
1298
1298
  }
1299
- const n = a.replace(/([A-Z])/g, "-$1").toLowerCase();
1300
- if (i.has(n)) {
1301
- g.debug(`Skipping server attribute "${n}" — overridden by inline attribute`);
1299
+ const d = l.replace(/([A-Z])/g, "-$1").toLowerCase();
1300
+ if (a.has(d)) {
1301
+ g.debug(`Skipping server attribute "${d}" — overridden by inline attribute`);
1302
1302
  continue;
1303
1303
  }
1304
- typeof l == "boolean" ? l ? s.setAttribute(n, "") : s.removeAttribute(n) : typeof l == "object" ? s.setAttribute(n, JSON.stringify(l)) : s.setAttribute(n, String(l)), g.debug(`Applied widget attribute: ${n}=${l}`);
1304
+ typeof n == "boolean" ? n ? s.setAttribute(d, "") : s.removeAttribute(d) : typeof n == "object" ? s.setAttribute(d, JSON.stringify(n)) : s.setAttribute(d, String(n)), g.debug(`Applied widget attribute: ${d}=${n}`);
1305
1305
  }
1306
1306
  }
1307
1307
  /**
@@ -1394,9 +1394,9 @@ class Zo {
1394
1394
  const t = await this.getLocalStatsKey();
1395
1395
  try {
1396
1396
  const o = Uo(t);
1397
- g.debug("Loaded localStats from localStorage", o), this.localStats = o, o.submitted && (this.prevLocalStats = { ...o });
1397
+ g.debug("Loaded localStats from localStorage", o), this.localStats = o;
1398
1398
  } catch (o) {
1399
- g.warn("Failed to generate localStorage key for localStats", o), this.localStats = N();
1399
+ g.warn("Failed to generate localStorage key for localStats", o), this.localStats = U();
1400
1400
  }
1401
1401
  this.host.requestUpdate();
1402
1402
  }
@@ -1434,17 +1434,17 @@ class Zo {
1434
1434
  }, o && o.length > 0)
1435
1435
  for (const r of o)
1436
1436
  r && (this.localStats.breakdown[r] = 1);
1437
- this.stats = Ho(this.stats, this.localStats), g.debug("Stats updated - remote: ", this.stats), g.debug("Stats updated - local: ", this.stats), this.persistLocalStats(), this.host.requestUpdate();
1437
+ this.stats = Ho(this.stats, this.localStats), g.debug("Stats updated - remote: ", this.stats), g.debug("Stats updated - local: ", this.localStats), this.persistLocalStats(), this.host.requestUpdate();
1438
1438
  }
1439
1439
  async markStatsAsSubmitted() {
1440
- this.localStats.submitted = (/* @__PURE__ */ new Date()).toISOString(), this.prevLocalStats = { ...this.localStats }, await this.persistLocalStats(), this.host.requestUpdate();
1440
+ this.localStats.submitted = (/* @__PURE__ */ new Date()).toISOString(), await this.persistLocalStats(), this.host.requestUpdate();
1441
1441
  }
1442
1442
  async submitStats() {
1443
1443
  if (!this.hasLocalStats() && !this.hasInteracted)
1444
1444
  throw g.warn("No local stats to submit"), new Error("No local stats to submit");
1445
- const t = this.host, o = Math.floor(Date.now() / 1e3).toString(), r = await xe(), s = this.localStats.sum, i = Object.keys(this.localStats.breakdown || {}), a = this.prevLocalStats.sum, l = Object.keys(this.prevLocalStats.breakdown || {});
1445
+ const t = this.host, o = Math.floor(Date.now() / 1e3).toString(), r = await xe(), s = this.localStats.sum, i = Object.keys(this.localStats.breakdown || {});
1446
1446
  this.isSubmitting = !0, this.host.requestUpdate();
1447
- const n = {
1447
+ const a = {
1448
1448
  sessionId: r,
1449
1449
  widgetId: t.widgetId,
1450
1450
  widgetName: t.name,
@@ -1452,19 +1452,17 @@ class Zo {
1452
1452
  url: window.location.href,
1453
1453
  numericValue: s,
1454
1454
  textValues: i,
1455
- prevNumericValue: a,
1456
- prevTextValues: l,
1457
1455
  metadata: t.metadata,
1458
1456
  timestamp: o
1459
- }, d = Yo(JSON.stringify(n), o);
1457
+ }, l = Yo(JSON.stringify(a), o);
1460
1458
  try {
1461
- await this.sendStats({ ...n, hash: d }), await this.markStatsAsSubmitted(), this.dispatchSubmitEvent(n);
1462
- } catch (p) {
1463
- g.warn("Failed to send stats event", p);
1459
+ await this.sendStats({ ...a, hash: l }), await this.markStatsAsSubmitted(), this.dispatchSubmitEvent(a);
1460
+ } catch (n) {
1461
+ g.warn("Failed to send stats event", n);
1464
1462
  } finally {
1465
1463
  this.isSubmitting = !1, this.host.requestUpdate();
1466
1464
  }
1467
- return n;
1465
+ return a;
1468
1466
  }
1469
1467
  async sendStats(t) {
1470
1468
  const o = this.host, r = this.getWidgetIdentifier();
@@ -1758,7 +1756,7 @@ const yt = {
1758
1756
  mobile: "480px",
1759
1757
  tablet: "768px",
1760
1758
  desktop: "1024px"
1761
- }, Qt = class Qt extends D {
1759
+ }, Qt = class Qt extends N {
1762
1760
  constructor() {
1763
1761
  super(...arguments), this.dataController = new Zo(this), this.displayController = new Xo(this, this.dataController), this.hasEditButton = !0, this.showStats = "never", this.showChart = !1, this.initialized = !1, this.ariaLabel = null, this.minContrast = Le.AA_NORMAL, this.options = [], this.questionPosition = "top", this.statsText = "{count} votes", this.buttonText = "Submit", this.buttonRadius = "sm", this.multiple = !1, this.inline = !1, this.readonly = !1, this.handleEditToggleKeyDown = (t) => {
1764
1762
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), this.handleEnterEditMode());
@@ -1975,7 +1973,7 @@ const yt = {
1975
1973
  }
1976
1974
  };
1977
1975
  Qt.styles = [
1978
- B`
1976
+ R`
1979
1977
  :host {
1980
1978
  /* Default values for CSS variables - can be overridden by external :root or parent definitions */
1981
1979
  --default-font-size-base: 1rem;
@@ -2161,7 +2159,7 @@ v([
2161
2159
  v([
2162
2160
  f({ type: Boolean, reflect: !0 })
2163
2161
  ], m.prototype, "readonly");
2164
- const er = B`
2162
+ const er = R`
2165
2163
  /* CSS variables inherit from parent - defaults are specified at usage sites */
2166
2164
 
2167
2165
  .pc-body {
@@ -2612,7 +2610,7 @@ const er = B`
2612
2610
  animation: none;
2613
2611
  }
2614
2612
  }
2615
- `, _t = B`
2613
+ `, _t = R`
2616
2614
  /* Default values for CSS variables - can be overridden by external :root or parent definitions */
2617
2615
  :host {
2618
2616
  --default-primary-color: #2196f3;
@@ -3331,7 +3329,7 @@ const er = B`
3331
3329
  opacity: 1;
3332
3330
  }
3333
3331
  }
3334
- `, or = B`
3332
+ `, or = R`
3335
3333
  :host {
3336
3334
  --popover-bg: light-dark(#ffffff, #1a1a1a);
3337
3335
  --popover-border: light-dark(#e0e0e0, #333333);
@@ -3453,12 +3451,12 @@ const er = B`
3453
3451
  max-width: 100%;
3454
3452
  }
3455
3453
  `;
3456
- var rr = Object.defineProperty, sr = Object.getOwnPropertyDescriptor, V = (e, t, o, r) => {
3454
+ var rr = Object.defineProperty, sr = Object.getOwnPropertyDescriptor, B = (e, t, o, r) => {
3457
3455
  for (var s = r > 1 ? void 0 : r ? sr(t, o) : t, i = e.length - 1, a; i >= 0; i--)
3458
3456
  (a = e[i]) && (s = (r ? a(t, o, s) : a(s)) || s);
3459
3457
  return r && s && rr(t, o, s), s;
3460
3458
  };
3461
- let _ = class extends D {
3459
+ let _ = class extends N {
3462
3460
  constructor() {
3463
3461
  super(...arguments), this.open = !1, this.position = "auto", this.isClosing = !1, this.computedPosition = "bottom", this.popoverStyles = {}, this.arrowStyles = {}, this.updatePosition = () => {
3464
3462
  var h;
@@ -3548,34 +3546,34 @@ let _ = class extends D {
3548
3546
  }
3549
3547
  };
3550
3548
  _.styles = [or];
3551
- V([
3549
+ B([
3552
3550
  f({ type: Boolean, reflect: !0 })
3553
3551
  ], _.prototype, "open", 2);
3554
- V([
3552
+ B([
3555
3553
  f({ type: String })
3556
3554
  ], _.prototype, "position", 2);
3557
- V([
3555
+ B([
3558
3556
  f({ attribute: !1 })
3559
3557
  ], _.prototype, "anchor", 2);
3560
- V([
3558
+ B([
3561
3559
  k()
3562
3560
  ], _.prototype, "isClosing", 2);
3563
- V([
3561
+ B([
3564
3562
  k()
3565
3563
  ], _.prototype, "computedPosition", 2);
3566
- V([
3564
+ B([
3567
3565
  k()
3568
3566
  ], _.prototype, "popoverStyles", 2);
3569
- V([
3567
+ B([
3570
3568
  k()
3571
3569
  ], _.prototype, "arrowStyles", 2);
3572
- V([
3570
+ B([
3573
3571
  ft(".pc-popover")
3574
3572
  ], _.prototype, "popoverElement", 2);
3575
- _ = V([
3573
+ _ = B([
3576
3574
  F("pc-popover")
3577
3575
  ], _);
3578
- const ir = B`
3576
+ const ir = R`
3579
3577
  :host {
3580
3578
  --sheet-bg: light-dark(#ffffff, #1a1a1a);
3581
3579
  --sheet-border: light-dark(#e0e0e0, #333333);
@@ -3693,7 +3691,7 @@ var ar = Object.defineProperty, nr = Object.getOwnPropertyDescriptor, Q = (e, t,
3693
3691
  (a = e[i]) && (s = (r ? a(t, o, s) : a(s)) || s);
3694
3692
  return r && s && ar(t, o, s), s;
3695
3693
  };
3696
- let R = class extends D {
3694
+ let D = class extends N {
3697
3695
  constructor() {
3698
3696
  super(...arguments), this.open = !1, this.dragToClose = !0, this.isClosing = !1, this.isDragging = !1, this.dragOffset = 0, this.dragStartY = 0, this.sheetHeight = 0, this.handleKeyDown = (e) => {
3699
3697
  if (e.key === "Escape" && this.open && (e.preventDefault(), e.stopPropagation(), this.close()), e.key === "Tab" && this.open && this.sheetElement) {
@@ -3787,35 +3785,35 @@ let R = class extends D {
3787
3785
  `;
3788
3786
  }
3789
3787
  };
3790
- R.styles = [ir];
3788
+ D.styles = [ir];
3791
3789
  Q([
3792
3790
  f({ type: Boolean, reflect: !0 })
3793
- ], R.prototype, "open", 2);
3791
+ ], D.prototype, "open", 2);
3794
3792
  Q([
3795
3793
  f({ type: Boolean, attribute: "drag-to-close" })
3796
- ], R.prototype, "dragToClose", 2);
3794
+ ], D.prototype, "dragToClose", 2);
3797
3795
  Q([
3798
3796
  k()
3799
- ], R.prototype, "isClosing", 2);
3797
+ ], D.prototype, "isClosing", 2);
3800
3798
  Q([
3801
3799
  k()
3802
- ], R.prototype, "isDragging", 2);
3800
+ ], D.prototype, "isDragging", 2);
3803
3801
  Q([
3804
3802
  k()
3805
- ], R.prototype, "dragOffset", 2);
3803
+ ], D.prototype, "dragOffset", 2);
3806
3804
  Q([
3807
3805
  ft(".pc-bottom-sheet")
3808
- ], R.prototype, "sheetElement", 2);
3809
- R = Q([
3806
+ ], D.prototype, "sheetElement", 2);
3807
+ D = Q([
3810
3808
  F("pc-bottom-sheet")
3811
- ], R);
3809
+ ], D);
3812
3810
  var lr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, gt = (e, t, o, r) => {
3813
3811
  for (var s = r > 1 ? void 0 : r ? cr(t, o) : t, i = e.length - 1, a; i >= 0; i--)
3814
3812
  (a = e[i]) && (s = (r ? a(t, o, s) : a(s)) || s);
3815
3813
  return r && s && lr(t, o, s), s;
3816
3814
  };
3817
3815
  const dr = 768;
3818
- let Z = class extends D {
3816
+ let Z = class extends N {
3819
3817
  constructor() {
3820
3818
  super(...arguments), this.open = !1, this.position = "auto", this.isMobile = !1, this.handleMediaChange = (e) => {
3821
3819
  this.isMobile = e.matches;
@@ -3850,7 +3848,7 @@ let Z = class extends D {
3850
3848
  `;
3851
3849
  }
3852
3850
  };
3853
- Z.styles = B`
3851
+ Z.styles = R`
3854
3852
  :host {
3855
3853
  display: contents;
3856
3854
  }
@@ -4256,7 +4254,7 @@ Y([
4256
4254
  I = Y([
4257
4255
  F("pc-nps")
4258
4256
  ], I);
4259
- const hr = B`
4257
+ const hr = R`
4260
4258
  /* CSS variables inherit from parent - defaults are specified at usage sites */
4261
4259
 
4262
4260
  .pc-container {
@@ -5077,7 +5075,7 @@ mt([
5077
5075
  X = mt([
5078
5076
  F("pc-poll")
5079
5077
  ], X);
5080
- const mr = B`
5078
+ const mr = R`
5081
5079
  /* CSS variables inherit from parent - defaults are specified at usage sites */
5082
5080
 
5083
5081
  .pc-section {
@@ -5803,7 +5801,7 @@ it([
5803
5801
  H = it([
5804
5802
  F("pc-stars")
5805
5803
  ], H);
5806
- const wr = B`
5804
+ const wr = R`
5807
5805
  /* Adjust stats text for reactions */
5808
5806
  .pc-stats-text {
5809
5807
  font-size: var(--pc-font-size-small, var(--default-font-size-small));
@@ -6338,7 +6336,7 @@ var Er = Object.defineProperty, Ar = Object.getOwnPropertyDescriptor, vt = (e, t
6338
6336
  (a = e[i]) && (s = (r ? a(t, o, s) : a(s)) || s);
6339
6337
  return r && s && Er(t, o, s), s;
6340
6338
  };
6341
- let J = class extends D {
6339
+ let J = class extends N {
6342
6340
  constructor() {
6343
6341
  super(), this.options = "", this.parsedOptions = [], J.injectGlobalStyle();
6344
6342
  }