pollcatch 2.3.0 → 2.3.1

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 +130 -108
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pollcatch",
3
3
  "private": false,
4
- "version": "2.3.0",
4
+ "version": "2.3.1",
5
5
  "type": "module",
6
6
  "main": "pc.js",
7
7
  "module": "pc.js",
package/pc.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const yt = globalThis, Ut = yt.ShadowRoot && (yt.ShadyCSS === void 0 || yt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, qt = Symbol(), Xt = /* @__PURE__ */ new WeakMap();
6
+ const yt = globalThis, Ut = yt.ShadowRoot && (yt.ShadyCSS === void 0 || yt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, qt = Symbol(), Jt = /* @__PURE__ */ new WeakMap();
7
7
  let $e = class {
8
8
  constructor(t, o, r) {
9
9
  if (this._$cssResult$ = !0, r !== qt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -14,7 +14,7 @@ let $e = class {
14
14
  const o = this.t;
15
15
  if (Ut && t === void 0) {
16
16
  const r = o !== void 0 && o.length === 1;
17
- r && (t = Xt.get(o)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Xt.set(o, t));
17
+ r && (t = Jt.get(o)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Jt.set(o, t));
18
18
  }
19
19
  return t;
20
20
  }
@@ -35,7 +35,7 @@ const Ve = (e) => new $e(typeof e == "string" ? e : e + "", void 0, qt), R = (e,
35
35
  const r = document.createElement("style"), s = yt.litNonce;
36
36
  s !== void 0 && r.setAttribute("nonce", s), r.textContent = o.cssText, e.appendChild(r);
37
37
  }
38
- }, Jt = Ut ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
38
+ }, Qt = Ut ? (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 Ve(o);
@@ -45,7 +45,7 @@ const Ve = (e) => new $e(typeof e == "string" ? e : e + "", void 0, qt), R = (e,
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: qe, defineProperty: He, getOwnPropertyDescriptor: Fe, getOwnPropertyNames: Ye, getOwnPropertySymbols: Ke, getPrototypeOf: Ge } = Object, V = globalThis, Qt = V.trustedTypes, We = Qt ? Qt.emptyScript : "", _t = V.reactiveElementPolyfillSupport, nt = (e, t) => e, $t = { toAttribute(e, t) {
48
+ const { is: qe, defineProperty: He, getOwnPropertyDescriptor: Fe, getOwnPropertyNames: Ye, getOwnPropertySymbols: Ke, getPrototypeOf: Ge } = Object, V = globalThis, te = V.trustedTypes, We = te ? te.emptyScript : "", _t = V.reactiveElementPolyfillSupport, nt = (e, t) => e, wt = { toAttribute(e, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
51
  e = e ? We : null;
@@ -73,7 +73,7 @@ const { is: qe, defineProperty: He, getOwnPropertyDescriptor: Fe, getOwnProperty
73
73
  }
74
74
  }
75
75
  return o;
76
- } }, Ht = (e, t) => !qe(e, t), te = { attribute: !0, type: String, converter: $t, reflect: !1, hasChanged: Ht };
76
+ } }, Ht = (e, t) => !qe(e, t), ee = { attribute: !0, type: String, converter: wt, reflect: !1, hasChanged: Ht };
77
77
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), V.litPropertyMetadata ?? (V.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
78
  let Q = class extends HTMLElement {
79
79
  static addInitializer(t) {
@@ -82,7 +82,7 @@ let Q = class extends HTMLElement {
82
82
  static get observedAttributes() {
83
83
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
84
  }
85
- static createProperty(t, o = te) {
85
+ static createProperty(t, o = ee) {
86
86
  if (o.state && (o.attribute = !1), this._$Ei(), this.elementProperties.set(t, o), !o.noAccessor) {
87
87
  const r = Symbol(), s = this.getPropertyDescriptor(t, r, o);
88
88
  s !== void 0 && He(this.prototype, t, s);
@@ -102,7 +102,7 @@ let Q = class extends HTMLElement {
102
102
  }, configurable: !0, enumerable: !0 };
103
103
  }
104
104
  static getPropertyOptions(t) {
105
- return this.elementProperties.get(t) ?? te;
105
+ return this.elementProperties.get(t) ?? ee;
106
106
  }
107
107
  static _$Ei() {
108
108
  if (this.hasOwnProperty(nt("elementProperties"))) return;
@@ -131,8 +131,8 @@ let Q = class extends HTMLElement {
131
131
  const o = [];
132
132
  if (Array.isArray(t)) {
133
133
  const r = new Set(t.flat(1 / 0).reverse());
134
- for (const s of r) o.unshift(Jt(s));
135
- } else t !== void 0 && o.push(Jt(t));
134
+ for (const s of r) o.unshift(Qt(s));
135
+ } else t !== void 0 && o.push(Qt(t));
136
136
  return o;
137
137
  }
138
138
  static _$Eu(t, o) {
@@ -186,7 +186,7 @@ let Q = class extends HTMLElement {
186
186
  var i;
187
187
  const r = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, r);
188
188
  if (s !== void 0 && r.reflect === !0) {
189
- const a = (((i = r.converter) == null ? void 0 : i.toAttribute) !== void 0 ? r.converter : $t).toAttribute(o, r.type);
189
+ const a = (((i = r.converter) == null ? void 0 : i.toAttribute) !== void 0 ? r.converter : wt).toAttribute(o, r.type);
190
190
  this._$Em = t, a == null ? this.removeAttribute(s) : this.setAttribute(s, a), this._$Em = null;
191
191
  }
192
192
  }
@@ -194,7 +194,7 @@ let Q = class extends HTMLElement {
194
194
  var i;
195
195
  const r = this.constructor, s = r._$Eh.get(t);
196
196
  if (s !== void 0 && this._$Em !== s) {
197
- const a = r.getPropertyOptions(s), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((i = a.converter) == null ? void 0 : i.fromAttribute) !== void 0 ? a.converter : $t;
197
+ const a = r.getPropertyOptions(s), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((i = a.converter) == null ? void 0 : i.fromAttribute) !== void 0 ? a.converter : wt;
198
198
  this._$Em = s, this[s] = l.fromAttribute(o, a.type), this._$Em = null;
199
199
  }
200
200
  }
@@ -279,12 +279,12 @@ Q.elementStyles = [], Q.shadowRootOptions = { mode: "open" }, Q[nt("elementPrope
279
279
  * Copyright 2017 Google LLC
280
280
  * SPDX-License-Identifier: BSD-3-Clause
281
281
  */
282
- const lt = globalThis, wt = lt.trustedTypes, ee = wt ? wt.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, we = "$lit$", B = `lit$${Math.random().toFixed(9).slice(2)}$`, Se = "?" + B, Ze = `<${Se}>`, G = document, dt = () => G.createComment(""), pt = (e) => e === null || typeof e != "object" && typeof e != "function", Ft = Array.isArray, Xe = (e) => Ft(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", Ot = `[
283
- \f\r]`, it = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, oe = /-->/g, re = />/g, Y = RegExp(`>|${Ot}(?:([^\\s"'>=/]+)(${Ot}*=${Ot}*(?:[^
284
- \f\r"'\`<>=]|("|')|))|$)`, "g"), se = /'/g, ie = /"/g, Ce = /^(?:script|style|textarea|title)$/i, Je = (e) => (t, ...o) => ({ _$litType$: e, strings: t, values: o }), c = Je(1), U = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), ae = /* @__PURE__ */ new WeakMap(), K = G.createTreeWalker(G, 129);
285
- function ke(e, t) {
282
+ const lt = globalThis, $t = lt.trustedTypes, oe = $t ? $t.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Se = "$lit$", B = `lit$${Math.random().toFixed(9).slice(2)}$`, Ce = "?" + B, Ze = `<${Ce}>`, G = document, dt = () => G.createComment(""), pt = (e) => e === null || typeof e != "object" && typeof e != "function", Ft = Array.isArray, Xe = (e) => Ft(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", Ot = `[
283
+ \f\r]`, it = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, re = /-->/g, se = />/g, Y = RegExp(`>|${Ot}(?:([^\\s"'>=/]+)(${Ot}*=${Ot}*(?:[^
284
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), ie = /'/g, ae = /"/g, ke = /^(?:script|style|textarea|title)$/i, Je = (e) => (t, ...o) => ({ _$litType$: e, strings: t, values: o }), c = Je(1), U = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), ne = /* @__PURE__ */ new WeakMap(), K = G.createTreeWalker(G, 129);
285
+ function Ee(e, t) {
286
286
  if (!Ft(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
- return ee !== void 0 ? ee.createHTML(t) : t;
287
+ return oe !== void 0 ? oe.createHTML(t) : t;
288
288
  }
289
289
  const Qe = (e, t) => {
290
290
  const o = e.length - 1, r = [];
@@ -292,37 +292,37 @@ const Qe = (e, t) => {
292
292
  for (let l = 0; l < o; l++) {
293
293
  const n = e[l];
294
294
  let d, p, h = -1, b = 0;
295
- for (; b < n.length && (a.lastIndex = b, p = a.exec(n), p !== null); ) b = a.lastIndex, a === it ? p[1] === "!--" ? a = oe : p[1] !== void 0 ? a = re : p[2] !== void 0 ? (Ce.test(p[2]) && (s = RegExp("</" + p[2], "g")), a = Y) : p[3] !== void 0 && (a = Y) : a === Y ? p[0] === ">" ? (a = s ?? it, h = -1) : p[1] === void 0 ? h = -2 : (h = a.lastIndex - p[2].length, d = p[1], a = p[3] === void 0 ? Y : p[3] === '"' ? ie : se) : a === ie || a === se ? a = Y : a === oe || a === re ? a = it : (a = Y, s = void 0);
295
+ for (; b < n.length && (a.lastIndex = b, p = a.exec(n), p !== null); ) b = a.lastIndex, a === it ? p[1] === "!--" ? a = re : p[1] !== void 0 ? a = se : p[2] !== void 0 ? (ke.test(p[2]) && (s = RegExp("</" + p[2], "g")), a = Y) : p[3] !== void 0 && (a = Y) : a === Y ? p[0] === ">" ? (a = s ?? it, h = -1) : p[1] === void 0 ? h = -2 : (h = a.lastIndex - p[2].length, d = p[1], a = p[3] === void 0 ? Y : p[3] === '"' ? ae : ie) : a === ae || a === ie ? a = Y : a === re || a === se ? a = it : (a = Y, s = void 0);
296
296
  const x = a === Y && e[l + 1].startsWith("/>") ? " " : "";
297
- i += a === it ? n + Ze : h >= 0 ? (r.push(d), n.slice(0, h) + we + n.slice(h) + B + x) : n + B + (h === -2 ? l : x);
297
+ i += a === it ? n + Ze : h >= 0 ? (r.push(d), n.slice(0, h) + Se + n.slice(h) + B + x) : n + B + (h === -2 ? l : x);
298
298
  }
299
- return [ke(e, i + (e[o] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
299
+ return [Ee(e, i + (e[o] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
300
300
  };
301
- let Vt = class Ee {
301
+ let Vt = class Ae {
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 l = t.length - 1, n = this.parts, [d, p] = Qe(t, o);
307
- if (this.el = Ee.createElement(d, r), K.currentNode = this.el.content, o === 2 || o === 3) {
307
+ if (this.el = Ae.createElement(d, r), K.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
311
  for (; (s = K.nextNode()) !== null && n.length < l; ) {
312
312
  if (s.nodeType === 1) {
313
- if (s.hasAttributes()) for (const h of s.getAttributeNames()) if (h.endsWith(we)) {
313
+ if (s.hasAttributes()) for (const h of s.getAttributeNames()) if (h.endsWith(Se)) {
314
314
  const b = p[a++], x = s.getAttribute(h).split(B), E = /([.?@])?(.*)/.exec(b);
315
315
  n.push({ type: 1, index: i, name: E[2], strings: x, ctor: E[1] === "." ? eo : E[1] === "?" ? oo : E[1] === "@" ? ro : kt }), s.removeAttribute(h);
316
316
  } else h.startsWith(B) && (n.push({ type: 6, index: i }), s.removeAttribute(h));
317
- if (Ce.test(s.tagName)) {
317
+ if (ke.test(s.tagName)) {
318
318
  const h = s.textContent.split(B), b = h.length - 1;
319
319
  if (b > 0) {
320
- s.textContent = wt ? wt.emptyScript : "";
320
+ s.textContent = $t ? $t.emptyScript : "";
321
321
  for (let x = 0; x < b; x++) s.append(h[x], dt()), K.nextNode(), n.push({ type: 2, index: ++i });
322
322
  s.append(h[b], dt());
323
323
  }
324
324
  }
325
- } else if (s.nodeType === 8) if (s.data === Se) n.push({ type: 2, index: i });
325
+ } else if (s.nodeType === 8) if (s.data === Ce) n.push({ type: 2, index: i });
326
326
  else {
327
327
  let h = -1;
328
328
  for (; (h = s.data.indexOf(B, h + 1)) !== -1; ) n.push({ type: 7, index: i }), h += B.length - 1;
@@ -403,7 +403,7 @@ class ut {
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 = Vt.createElement(ke(r.h, r.h[0]), this.options)), r);
406
+ const { values: o, _$litType$: r } = t, s = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = Vt.createElement(Ee(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 to(s, this), l = a.u(this.options);
@@ -411,8 +411,8 @@ class ut {
411
411
  }
412
412
  }
413
413
  _$AC(t) {
414
- let o = ae.get(t.strings);
415
- return o === void 0 && ae.set(t.strings, o = new Vt(t)), o;
414
+ let o = ne.get(t.strings);
415
+ return o === void 0 && ne.set(t.strings, o = new Vt(t)), o;
416
416
  }
417
417
  k(t) {
418
418
  Ft(this._$AH) || (this._$AH = [], this._$AR());
@@ -540,8 +540,8 @@ let N = class extends Q {
540
540
  return U;
541
541
  }
542
542
  };
543
- var xe;
544
- N._$litElement$ = !0, N.finalized = !0, (xe = globalThis.litElementHydrateSupport) == null || xe.call(globalThis, { LitElement: N });
543
+ var we;
544
+ N._$litElement$ = !0, N.finalized = !0, (we = globalThis.litElementHydrateSupport) == null || we.call(globalThis, { LitElement: N });
545
545
  const zt = globalThis.litElementPolyfillSupport;
546
546
  zt == null || zt({ LitElement: N });
547
547
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
@@ -560,7 +560,7 @@ const H = (e) => (t, o) => {
560
560
  * Copyright 2017 Google LLC
561
561
  * SPDX-License-Identifier: BSD-3-Clause
562
562
  */
563
- const ao = { attribute: !0, type: String, converter: $t, reflect: !1, hasChanged: Ht }, no = (e = ao, t, o) => {
563
+ const ao = { attribute: !0, type: String, converter: wt, reflect: !1, hasChanged: Ht }, no = (e = ao, 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") {
@@ -640,7 +640,7 @@ const Yt = c`
640
640
  d="M160-160v-440h160v440H160Zm240 0v-400l160 160v240H400Zm160-354L400-674v-126h160v286Zm240 240L640-434v-6h160v166Zm-9 219L55-791l57-57 736 736-57 57Z"
641
641
  />
642
642
  </svg>
643
- `, Ae = c`
643
+ `, Gt = c`
644
644
  <svg
645
645
  xmlns="http://www.w3.org/2000/svg"
646
646
  height="24px"
@@ -667,16 +667,16 @@ const Yt = c`
667
667
  `;
668
668
  var po = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, z = function(e) {
669
669
  return typeof e == "string" ? e.length > 0 : typeof e == "number";
670
- }, w = function(e, t, o) {
670
+ }, $ = function(e, t, o) {
671
671
  return t === void 0 && (t = 0), o === void 0 && (o = Math.pow(10, t)), Math.round(o * e) / o + 0;
672
672
  }, A = function(e, t, o) {
673
673
  return t === void 0 && (t = 0), o === void 0 && (o = 1), e > o ? o : e > t ? e : t;
674
674
  }, Pe = function(e) {
675
675
  return (e = isFinite(e) ? e % 360 : 0) > 0 ? e : e + 360;
676
- }, ne = function(e) {
676
+ }, le = function(e) {
677
677
  return { r: A(e.r, 0, 255), g: A(e.g, 0, 255), b: A(e.b, 0, 255), a: A(e.a) };
678
678
  }, Mt = function(e) {
679
- return { r: w(e.r), g: w(e.g), b: w(e.b), a: w(e.a, 3) };
679
+ return { r: $(e.r), g: $(e.g), b: $(e.b), a: $(e.a, 3) };
680
680
  }, uo = /^#([0-9a-f]{3,8})$/i, vt = function(e) {
681
681
  var t = e.toString(16);
682
682
  return t.length < 2 ? "0" + t : t;
@@ -688,35 +688,35 @@ var po = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, z = function(e) {
688
688
  t = t / 360 * 6, o /= 100, r /= 100;
689
689
  var i = Math.floor(t), a = r * (1 - o), l = r * (1 - (t - i) * o), n = r * (1 - (1 - t + i) * o), d = i % 6;
690
690
  return { r: 255 * [r, l, a, a, n, r][d], g: 255 * [n, r, r, l, a, a][d], b: 255 * [a, a, n, r, r, l][d], a: s };
691
- }, le = function(e) {
692
- return { h: Pe(e.h), s: A(e.s, 0, 100), l: A(e.l, 0, 100), a: A(e.a) };
693
691
  }, ce = function(e) {
694
- return { h: w(e.h), s: w(e.s), l: w(e.l), a: w(e.a, 3) };
692
+ return { h: Pe(e.h), s: A(e.s, 0, 100), l: A(e.l, 0, 100), a: A(e.a) };
695
693
  }, de = function(e) {
694
+ return { h: $(e.h), s: $(e.s), l: $(e.l), a: $(e.a, 3) };
695
+ }, pe = function(e) {
696
696
  return _e((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 }));
697
697
  var t, o, r;
698
698
  }, ct = function(e) {
699
699
  return { h: (t = Te(e)).h, s: (s = (200 - (o = t.s)) * (r = t.v) / 100) > 0 && s < 200 ? o * r / 100 / (s <= 100 ? s : 200 - s) * 100 : 0, l: s / 2, a: t.a };
700
700
  var t, o, r, s;
701
- }, ho = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, fo = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, go = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, mo = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, pe = { string: [[function(e) {
701
+ }, ho = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, fo = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, go = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, mo = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, ue = { string: [[function(e) {
702
702
  var t = uo.exec(e);
703
- 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 ? w(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 ? w(parseInt(e.substr(6, 2), 16) / 255, 2) : 1 } : null : null;
703
+ 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;
704
704
  }, "hex"], [function(e) {
705
705
  var t = go.exec(e) || mo.exec(e);
706
- return t ? t[2] !== t[4] || t[4] !== t[6] ? null : ne({ 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;
706
+ return t ? t[2] !== t[4] || t[4] !== t[6] ? null : le({ 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;
707
707
  }, "rgb"], [function(e) {
708
708
  var t = ho.exec(e) || fo.exec(e);
709
709
  if (!t) return null;
710
- var o, r, s = le({ h: (o = t[1], r = t[2], r === void 0 && (r = "deg"), Number(o) * (po[r] || 1)), s: Number(t[3]), l: Number(t[4]), a: t[5] === void 0 ? 1 : Number(t[5]) / (t[6] ? 100 : 1) });
711
- return de(s);
710
+ var o, r, s = ce({ h: (o = t[1], r = t[2], r === void 0 && (r = "deg"), Number(o) * (po[r] || 1)), s: Number(t[3]), l: Number(t[4]), a: t[5] === void 0 ? 1 : Number(t[5]) / (t[6] ? 100 : 1) });
711
+ return pe(s);
712
712
  }, "hsl"]], object: [[function(e) {
713
713
  var t = e.r, o = e.g, r = e.b, s = e.a, i = s === void 0 ? 1 : s;
714
- return z(t) && z(o) && z(r) ? ne({ r: Number(t), g: Number(o), b: Number(r), a: Number(i) }) : null;
714
+ return z(t) && z(o) && z(r) ? le({ r: Number(t), g: Number(o), b: Number(r), a: Number(i) }) : null;
715
715
  }, "rgb"], [function(e) {
716
716
  var t = e.h, o = e.s, r = e.l, s = e.a, i = s === void 0 ? 1 : s;
717
717
  if (!z(t) || !z(o) || !z(r)) return null;
718
- var a = le({ h: Number(t), s: Number(o), l: Number(r), a: Number(i) });
719
- return de(a);
718
+ var a = ce({ h: Number(t), s: Number(o), l: Number(r), a: Number(i) });
719
+ return pe(a);
720
720
  }, "hsl"], [function(e) {
721
721
  var t = e.h, o = e.s, r = e.v, s = e.a, i = s === void 0 ? 1 : s;
722
722
  if (!z(t) || !z(o) || !z(r)) return null;
@@ -724,36 +724,36 @@ var po = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, z = function(e) {
724
724
  return { h: Pe(l.h), s: A(l.s, 0, 100), v: A(l.v, 0, 100), a: A(l.a) };
725
725
  }({ h: Number(t), s: Number(o), v: Number(r), a: Number(i) });
726
726
  return _e(a);
727
- }, "hsv"]] }, ue = function(e, t) {
727
+ }, "hsv"]] }, he = function(e, t) {
728
728
  for (var o = 0; o < t.length; o++) {
729
729
  var r = t[o][0](e);
730
730
  if (r) return [r, t[o][1]];
731
731
  }
732
732
  return [null, void 0];
733
733
  }, vo = function(e) {
734
- return typeof e == "string" ? ue(e.trim(), pe.string) : typeof e == "object" && e !== null ? ue(e, pe.object) : [null, void 0];
734
+ return typeof e == "string" ? he(e.trim(), ue.string) : typeof e == "object" && e !== null ? he(e, ue.object) : [null, void 0];
735
735
  }, Lt = function(e, t) {
736
736
  var o = ct(e);
737
737
  return { h: o.h, s: A(o.s + 100 * t, 0, 100), l: o.l, a: o.a };
738
738
  }, Nt = function(e) {
739
739
  return (299 * e.r + 587 * e.g + 114 * e.b) / 1e3 / 255;
740
- }, he = function(e, t) {
740
+ }, fe = function(e, t) {
741
741
  var o = ct(e);
742
742
  return { h: o.h, s: o.s, l: A(o.l + 100 * t, 0, 100), a: o.a };
743
- }, fe = function() {
743
+ }, ge = function() {
744
744
  function e(t) {
745
745
  this.parsed = vo(t)[0], this.rgba = this.parsed || { r: 0, g: 0, b: 0, a: 1 };
746
746
  }
747
747
  return e.prototype.isValid = function() {
748
748
  return this.parsed !== null;
749
749
  }, e.prototype.brightness = function() {
750
- return w(Nt(this.rgba), 2);
750
+ return $(Nt(this.rgba), 2);
751
751
  }, e.prototype.isDark = function() {
752
752
  return Nt(this.rgba) < 0.5;
753
753
  }, e.prototype.isLight = function() {
754
754
  return Nt(this.rgba) >= 0.5;
755
755
  }, e.prototype.toHex = function() {
756
- return t = Mt(this.rgba), o = t.r, r = t.g, s = t.b, a = (i = t.a) < 1 ? vt(w(255 * i)) : "", "#" + vt(o) + vt(r) + vt(s) + a;
756
+ return t = Mt(this.rgba), o = t.r, r = t.g, s = t.b, a = (i = t.a) < 1 ? vt($(255 * i)) : "", "#" + vt(o) + vt(r) + vt(s) + a;
757
757
  var t, o, r, s, i, a;
758
758
  }, e.prototype.toRgb = function() {
759
759
  return Mt(this.rgba);
@@ -761,12 +761,12 @@ var po = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, z = function(e) {
761
761
  return t = Mt(this.rgba), o = t.r, r = t.g, s = t.b, (i = t.a) < 1 ? "rgba(" + o + ", " + r + ", " + s + ", " + i + ")" : "rgb(" + o + ", " + r + ", " + s + ")";
762
762
  var t, o, r, s, i;
763
763
  }, e.prototype.toHsl = function() {
764
- return ce(ct(this.rgba));
764
+ return de(ct(this.rgba));
765
765
  }, e.prototype.toHslString = function() {
766
- return t = ce(ct(this.rgba)), o = t.h, r = t.s, s = t.l, (i = t.a) < 1 ? "hsla(" + o + ", " + r + "%, " + s + "%, " + i + ")" : "hsl(" + o + ", " + r + "%, " + s + "%)";
766
+ return t = de(ct(this.rgba)), o = t.h, r = t.s, s = t.l, (i = t.a) < 1 ? "hsla(" + o + ", " + r + "%, " + s + "%, " + i + ")" : "hsl(" + o + ", " + r + "%, " + s + "%)";
767
767
  var t, o, r, s, i;
768
768
  }, e.prototype.toHsv = function() {
769
- return t = Te(this.rgba), { h: w(t.h), s: w(t.s), v: w(t.v), a: w(t.a, 3) };
769
+ return t = Te(this.rgba), { h: $(t.h), s: $(t.s), v: $(t.v), a: $(t.a, 3) };
770
770
  var t;
771
771
  }, e.prototype.invert = function() {
772
772
  return T({ r: 255 - (t = this.rgba).r, g: 255 - t.g, b: 255 - t.b, a: t.a });
@@ -778,22 +778,22 @@ var po = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, z = function(e) {
778
778
  }, e.prototype.grayscale = function() {
779
779
  return T(Lt(this.rgba, -1));
780
780
  }, e.prototype.lighten = function(t) {
781
- return t === void 0 && (t = 0.1), T(he(this.rgba, t));
781
+ return t === void 0 && (t = 0.1), T(fe(this.rgba, t));
782
782
  }, e.prototype.darken = function(t) {
783
- return t === void 0 && (t = 0.1), T(he(this.rgba, -t));
783
+ return t === void 0 && (t = 0.1), T(fe(this.rgba, -t));
784
784
  }, e.prototype.rotate = function(t) {
785
785
  return t === void 0 && (t = 15), this.hue(this.hue() + t);
786
786
  }, e.prototype.alpha = function(t) {
787
- return typeof t == "number" ? T({ r: (o = this.rgba).r, g: o.g, b: o.b, a: t }) : w(this.rgba.a, 3);
787
+ return typeof t == "number" ? T({ r: (o = this.rgba).r, g: o.g, b: o.b, a: t }) : $(this.rgba.a, 3);
788
788
  var o;
789
789
  }, e.prototype.hue = function(t) {
790
790
  var o = ct(this.rgba);
791
- return typeof t == "number" ? T({ h: t, s: o.s, l: o.l, a: o.a }) : w(o.h);
791
+ return typeof t == "number" ? T({ h: t, s: o.s, l: o.l, a: o.a }) : $(o.h);
792
792
  }, e.prototype.isEqual = function(t) {
793
793
  return this.toHex() === T(t).toHex();
794
794
  }, e;
795
795
  }(), T = function(e) {
796
- return e instanceof fe ? e : new fe(e);
796
+ return e instanceof ge ? e : new ge(e);
797
797
  };
798
798
  const Dt = process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
799
799
  function bo(e) {
@@ -836,14 +836,14 @@ function xo(e) {
836
836
  return yo[t] || null;
837
837
  }
838
838
  function Rt(e, t) {
839
- const o = ge(e), r = ge(t), s = Math.max(o, r), i = Math.min(o, r);
839
+ const o = me(e), r = me(t), s = Math.max(o, r), i = Math.min(o, r);
840
840
  return (s + 0.05) / (i + 0.05);
841
841
  }
842
- function ge(e) {
843
- const t = wo(e), o = t.r / 255, r = t.g / 255, s = t.b / 255, i = o <= 0.03928 ? o / 12.92 : Math.pow((o + 0.055) / 1.055, 2.4), a = r <= 0.03928 ? r / 12.92 : Math.pow((r + 0.055) / 1.055, 2.4), l = s <= 0.03928 ? s / 12.92 : Math.pow((s + 0.055) / 1.055, 2.4);
842
+ function me(e) {
843
+ const t = $o(e), o = t.r / 255, r = t.g / 255, s = t.b / 255, i = o <= 0.03928 ? o / 12.92 : Math.pow((o + 0.055) / 1.055, 2.4), a = r <= 0.03928 ? r / 12.92 : Math.pow((r + 0.055) / 1.055, 2.4), l = s <= 0.03928 ? s / 12.92 : Math.pow((s + 0.055) / 1.055, 2.4);
844
844
  return 0.2126 * i + 0.7152 * a + 0.0722 * l;
845
845
  }
846
- function $o(e, t = {}) {
846
+ function wo(e, t = {}) {
847
847
  if (!T(e).isValid())
848
848
  return m.warn(`Invalid color provided: ${e}`), "black";
849
849
  const {
@@ -874,7 +874,7 @@ function $o(e, t = {}) {
874
874
  }
875
875
  return n;
876
876
  }
877
- function wo(e) {
877
+ function $o(e) {
878
878
  const o = xo(e) || e, r = T(o);
879
879
  if (!r.isValid())
880
880
  return m.warn(`Invalid color provided: ${e}`), { r: 0, g: 0, b: 0 };
@@ -983,14 +983,14 @@ function Po(e) {
983
983
  (t, o, r, s, i) => s ? t : `${o}: ${r.trim()} !important${i}`
984
984
  );
985
985
  }
986
- const me = "https://jpxwfjorwcsrqraorpbj.supabase.co/functions/v1/data", To = "pc_session_id", _o = 24 * 60 * 60 * 1e3;
987
- function ve() {
986
+ const ve = "https://jpxwfjorwcsrqraorpbj.supabase.co/functions/v1/data", To = "pc_session_id", _o = 24 * 60 * 60 * 1e3;
987
+ function be() {
988
988
  return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : (m.warn("crypto.randomUUID not available, using fallback UUID generator"), "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
989
989
  const t = Math.random() * 16 | 0;
990
990
  return (e === "x" ? t : t & 3 | 8).toString(16);
991
991
  }));
992
992
  }
993
- function Gt() {
993
+ function Wt() {
994
994
  const e = "test-local-storage";
995
995
  try {
996
996
  return localStorage.setItem(e, e), localStorage.removeItem(e), !0;
@@ -1027,9 +1027,9 @@ async function Oo() {
1027
1027
  }
1028
1028
  m.warn("No project key found in global variable or script tags");
1029
1029
  }
1030
- async function be() {
1030
+ async function ye() {
1031
1031
  const e = To, t = _o;
1032
- if (Gt()) {
1032
+ if (Wt()) {
1033
1033
  const o = Ie(e);
1034
1034
  if (o && o.id && o.timestamp && Date.now() - o.timestamp < t)
1035
1035
  return m.debug("Using existing session ID from localStorage"), o.id;
@@ -1037,13 +1037,13 @@ async function be() {
1037
1037
  o ? "Session ID expired" : "No session ID found",
1038
1038
  "generating new one"
1039
1039
  );
1040
- const r = ve();
1040
+ const r = be();
1041
1041
  return ze(e, {
1042
1042
  id: r,
1043
1043
  timestamp: Date.now()
1044
1044
  }) ? m.debug("Generated and stored new session ID") : m.warn("Generated session ID but failed to store it"), r;
1045
1045
  } else {
1046
- const o = ve();
1046
+ const o = be();
1047
1047
  return m.debug("Generated non-persistent session ID"), o;
1048
1048
  }
1049
1049
  }
@@ -1097,7 +1097,7 @@ function L() {
1097
1097
  };
1098
1098
  }
1099
1099
  function Lo(e) {
1100
- if (!Gt())
1100
+ if (!Wt())
1101
1101
  return L();
1102
1102
  try {
1103
1103
  const t = Ie(e);
@@ -1107,7 +1107,7 @@ function Lo(e) {
1107
1107
  }
1108
1108
  }
1109
1109
  function No(e, t) {
1110
- if (!Gt())
1110
+ if (!Wt())
1111
1111
  return !1;
1112
1112
  try {
1113
1113
  return ze(e, t) ? (m.debug("Saved localStats to localStorage", t), !0) : !1;
@@ -1212,7 +1212,7 @@ class qo {
1212
1212
  return this.host.project || await Oo() || "public";
1213
1213
  }
1214
1214
  async getLocalStatsKey() {
1215
- const t = this.host, o = await be(), r = await this.getProjectId(), s = t.name || "unnamed";
1215
+ const t = this.host, o = await ye(), r = await this.getProjectId(), s = t.name || "unnamed";
1216
1216
  return `pc-local-stats-${o}-${r}-${s}`;
1217
1217
  }
1218
1218
  /**
@@ -1233,10 +1233,10 @@ class qo {
1233
1233
  let i;
1234
1234
  if (t.dataFunc && typeof window < "u") {
1235
1235
  const P = t.dataFunc.replace(/^window\./, "").split(".");
1236
- let $ = window;
1236
+ let w = window;
1237
1237
  for (const mt of P)
1238
- if ($ = $ == null ? void 0 : $[mt], $ === void 0) break;
1239
- i = $;
1238
+ if (w = w == null ? void 0 : w[mt], w === void 0) break;
1239
+ i = w;
1240
1240
  }
1241
1241
  let a, l;
1242
1242
  if (i && typeof i == "function") {
@@ -1252,15 +1252,15 @@ class qo {
1252
1252
  } else
1253
1253
  l = a || {};
1254
1254
  } else {
1255
- const C = t.dataEndpoint || me;
1255
+ const C = t.dataEndpoint || ve;
1256
1256
  if (!r)
1257
1257
  throw new Error("Name parameter is required");
1258
1258
  const P = `${C}/${encodeURIComponent(o)}/${encodeURIComponent(r)}`;
1259
1259
  m.debug(`Fetching stats for: ${r}`, { endpoint: C, projectKey: o });
1260
- const $ = await fetch(P);
1261
- if (!$.ok)
1262
- throw new Error(`API request failed with status: ${$.status}`);
1263
- if (a = await $.json(), !a.success)
1260
+ const w = await fetch(P);
1261
+ if (!w.ok)
1262
+ throw new Error(`API request failed with status: ${w.status}`);
1263
+ if (a = await w.json(), !a.success)
1264
1264
  throw m.error("Backend returned unsuccessful response", a), new Error("Backend returned unsuccessful response");
1265
1265
  l = a.data || {};
1266
1266
  }
@@ -1355,7 +1355,7 @@ class qo {
1355
1355
  async submitStats() {
1356
1356
  if (!this.hasLocalStats() && !this.hasInteracted)
1357
1357
  throw m.warn("No local stats to submit"), new Error("No local stats to submit");
1358
- const t = this.host, o = Math.floor(Date.now() / 1e3).toString(), r = await be(), s = await this.getProjectId(), i = t.name || "", a = this.localStats.sum, l = Object.keys(this.localStats.breakdown || {}), n = this.prevLocalStats.sum, d = Object.keys(this.prevLocalStats.breakdown || {});
1358
+ const t = this.host, o = Math.floor(Date.now() / 1e3).toString(), r = await ye(), s = await this.getProjectId(), i = t.name || "", a = this.localStats.sum, l = Object.keys(this.localStats.breakdown || {}), n = this.prevLocalStats.sum, d = Object.keys(this.prevLocalStats.breakdown || {});
1359
1359
  this.isSubmitting = !0, this.host.requestUpdate();
1360
1360
  const p = {
1361
1361
  sessionId: r,
@@ -1380,7 +1380,7 @@ class qo {
1380
1380
  return p;
1381
1381
  }
1382
1382
  async sendStats(t) {
1383
- const o = JSON.stringify(t), r = this.host, s = r.dataEndpoint || me;
1383
+ const o = JSON.stringify(t), r = this.host, s = r.dataEndpoint || ve;
1384
1384
  if (r.dataFunc) {
1385
1385
  m.debug("Skip sending stats as data function is in use.");
1386
1386
  return;
@@ -1593,7 +1593,7 @@ class Ho {
1593
1593
  return !(this.host.readonly || !this.isEditing);
1594
1594
  }
1595
1595
  }
1596
- var Wt = /* @__PURE__ */ ((e) => (e.DECORATIVE = "decorative", e.FUNCTIONAL = "functional", e.STATUS = "status", e))(Wt || {});
1596
+ var Zt = /* @__PURE__ */ ((e) => (e.DECORATIVE = "decorative", e.FUNCTIONAL = "functional", e.STATUS = "status", e))(Zt || {});
1597
1597
  function Le(e, t = {}) {
1598
1598
  const { type: o = "functional", alt: r, ariaLabel: s, isSelected: i } = t;
1599
1599
  if (!e)
@@ -1679,7 +1679,7 @@ const bt = {
1679
1679
  mobile: "480px",
1680
1680
  tablet: "768px",
1681
1681
  desktop: "1024px"
1682
- }, Zt = class Zt extends N {
1682
+ }, Xt = class Xt extends N {
1683
1683
  constructor() {
1684
1684
  super(...arguments), this.dataController = new qo(this), this.displayController = new Ho(this, this.dataController), this.hasEditButton = !0, this.showStats = "never", this.showChart = !1, this.initialized = !1, this.ariaLabel = null, this.minContrast = Oe.AA_NORMAL, this.options = [], this.project = "public", 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) => {
1685
1685
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), this.handleEnterEditMode());
@@ -1716,7 +1716,7 @@ const bt = {
1716
1716
  const i = J(this.primaryColor);
1717
1717
  o += `--pc-primary-color: ${i} !important;
1718
1718
  `;
1719
- const a = $o(i, {
1719
+ const a = wo(i, {
1720
1720
  minContrast: this.minContrast,
1721
1721
  colorOptions: ["black", "white", "light", "dark"]
1722
1722
  });
@@ -1829,7 +1829,7 @@ const bt = {
1829
1829
  tabindex="0"
1830
1830
  aria-label="Edit vote"
1831
1831
  @keydown="${this.handleEditToggleKeyDown}"
1832
- >${Ae}</span
1832
+ >${Gt}</span
1833
1833
  >
1834
1834
  ` : u;
1835
1835
  }
@@ -1895,7 +1895,7 @@ const bt = {
1895
1895
  `;
1896
1896
  }
1897
1897
  };
1898
- Zt.styles = [
1898
+ Xt.styles = [
1899
1899
  R`
1900
1900
  :host {
1901
1901
  /* Default values for CSS variables - can be overridden by external :root or parent definitions */
@@ -1976,7 +1976,7 @@ Zt.styles = [
1976
1976
  }
1977
1977
  `
1978
1978
  ];
1979
- let g = Zt;
1979
+ let g = Xt;
1980
1980
  v([
1981
1981
  f({ type: String, attribute: "show-stats" })
1982
1982
  ], g.prototype, "showStats");
@@ -2310,6 +2310,24 @@ const Go = R`
2310
2310
  fill: #66bb6a;
2311
2311
  }
2312
2312
 
2313
+ /* Edit icon for inline trigger */
2314
+ .inline-nps-icon {
2315
+ display: inline-flex;
2316
+ align-items: center;
2317
+ justify-content: center;
2318
+ color: var(--pc-primary-color, var(--default-primary-color));
2319
+ opacity: 0.8;
2320
+ }
2321
+
2322
+ .inline-nps-icon svg {
2323
+ width: 0.9em;
2324
+ height: 0.9em;
2325
+ }
2326
+
2327
+ .pc-inline-trigger:hover .inline-nps-icon {
2328
+ opacity: 1;
2329
+ }
2330
+
2313
2331
  /* ========================================
2314
2332
  * NPS-SPECIFIC POPOVER CONTENT STYLES
2315
2333
  * (Shared popover styles are in pc-base-styles.ts)
@@ -3769,10 +3787,10 @@ let I = class extends g {
3769
3787
  * NPS score displayed prominently in the middle
3770
3788
  */
3771
3789
  renderChart() {
3772
- const e = this.dataController.stats, t = (e == null ? void 0 : e.nps) ?? 0, o = 100, r = 100, s = 80, i = ($) => ({
3773
- x: o + s * Math.cos($),
3774
- y: r - s * Math.sin($)
3775
- }), a = i(Math.PI), l = i(Math.PI / 2), n = i(Math.PI / 4), d = i(0), p = ($, mt, Be = 0) => `M ${$.x} ${$.y} A ${s} ${s} 0 ${Be} 1 ${mt.x} ${mt.y}`, h = p(a, l), b = p(l, n), x = p(n, d), C = (($) => Math.PI - ($ + 100) / 200 * Math.PI)(t), P = i(C);
3790
+ const e = this.dataController.stats, t = (e == null ? void 0 : e.nps) ?? 0, o = 100, r = 100, s = 80, i = (w) => ({
3791
+ x: o + s * Math.cos(w),
3792
+ y: r - s * Math.sin(w)
3793
+ }), a = i(Math.PI), l = i(Math.PI / 2), n = i(Math.PI / 4), d = i(0), p = (w, mt, Be = 0) => `M ${w.x} ${w.y} A ${s} ${s} 0 ${Be} 1 ${mt.x} ${mt.y}`, h = p(a, l), b = p(l, n), x = p(n, d), C = ((w) => Math.PI - (w + 100) / 200 * Math.PI)(t), P = i(C);
3776
3794
  return c`
3777
3795
  <div class="nps-semicircle-gauge" data-testid="nps-semicircle-gauge">
3778
3796
  <svg viewBox="0 0 200 115">
@@ -3899,9 +3917,10 @@ let I = class extends g {
3899
3917
  }
3900
3918
  /**
3901
3919
  * Render the inline trigger button
3920
+ * Respects show-stats attribute for controlling stats text visibility
3902
3921
  */
3903
3922
  renderInlineTrigger() {
3904
- const e = this.dataController.formatStatsText(this.statsText || "");
3923
+ const t = this.displayController.shouldShowStats() && this.statsText ? this.dataController.formatStatsText(this.statsText) : "";
3905
3924
  return c`
3906
3925
  <button
3907
3926
  class="pc-inline-trigger"
@@ -3913,7 +3932,8 @@ let I = class extends g {
3913
3932
  data-testid="nps-inline-trigger"
3914
3933
  >
3915
3934
  ${this.renderInlineGauge()}
3916
- ${e ? c`<span class="pc-inline-stats-text">${e}</span>` : u}
3935
+ ${t ? c`<span class="pc-inline-stats-text">${t}</span>` : u}
3936
+ <span class="inline-nps-icon">${Gt}</span>
3917
3937
  </button>
3918
3938
  `;
3919
3939
  }
@@ -3973,17 +3993,18 @@ let I = class extends g {
3973
3993
  /**
3974
3994
  * Render popover content
3975
3995
  * For inline mode popover: show stats text if provided, show chart toggle if show-chart is set
3996
+ * Respects show-stats attribute for controlling stats text visibility
3976
3997
  */
3977
3998
  renderPopoverContent() {
3978
- const e = this.statsText ? this.dataController.formatStatsText(this.statsText) : "", t = this.showChart, o = !!e || t;
3999
+ const t = this.displayController.shouldShowStats() && this.statsText ? this.dataController.formatStatsText(this.statsText) : "", o = this.showChart, r = !!t || o;
3979
4000
  return c`
3980
4001
  <div class="pc-popover-content" data-testid="nps-popover-content">
3981
4002
  ${this.question ? c`<div class="pc-popover-question">${this.question}</div>` : u}
3982
4003
  ${this.renderPopoverNpsButtons()}
3983
- ${o ? c`
4004
+ ${r ? c`
3984
4005
  <div class="pc-popover-footer">
3985
- ${e ? c`<span class="pc-popover-stats-text">${e}</span>` : u}
3986
- ${t ? this.renderPopoverChartToggle() : u}
4006
+ ${t ? c`<span class="pc-popover-stats-text">${t}</span>` : u}
4007
+ ${o ? this.renderPopoverChartToggle() : u}
3987
4008
  </div>
3988
4009
  ` : u}
3989
4010
  ${this.displayController.isChartVisible ? this.renderChart() : u}
@@ -4523,7 +4544,7 @@ let Z = class extends g {
4523
4544
  */
4524
4545
  renderOptionIcon(e) {
4525
4546
  if (!(e != null && e.icon)) return "";
4526
- const t = Wt.DECORATIVE, o = (e == null ? void 0 : e.label) || "", r = e ? this.dataController.isValueSelected(e.value) : !1, s = Le(e == null ? void 0 : e.icon, {
4547
+ const t = Zt.DECORATIVE, o = (e == null ? void 0 : e.label) || "", r = e ? this.dataController.isValueSelected(e.value) : !1, s = Le(e == null ? void 0 : e.icon, {
4527
4548
  type: t,
4528
4549
  alt: o,
4529
4550
  isSelected: r
@@ -4714,9 +4735,10 @@ let Z = class extends g {
4714
4735
  }
4715
4736
  /**
4716
4737
  * Render the inline trigger button
4738
+ * Respects show-stats attribute for controlling stats text visibility
4717
4739
  */
4718
4740
  renderInlineTrigger() {
4719
- const e = this.dataController.hasLocalStats(), t = this.dataController.formatStatsText(this.statsText || "");
4741
+ const t = this.displayController.shouldShowStats() && this.statsText ? this.dataController.formatStatsText(this.statsText) : "";
4720
4742
  return c`
4721
4743
  <button
4722
4744
  class="pc-inline-trigger"
@@ -4729,8 +4751,8 @@ let Z = class extends g {
4729
4751
  data-testid="poll-inline-trigger"
4730
4752
  >
4731
4753
  ${this.question ? c`<span class="inline-poll-question">${this.question}</span>` : u}
4732
- ${t && e ? c`<span class="pc-inline-stats-text">${t}</span>` : u}
4733
- <span class="inline-poll-icon">${Ae}</span>
4754
+ ${t ? c`<span class="pc-inline-stats-text">${t}</span>` : u}
4755
+ <span class="inline-poll-icon">${Gt}</span>
4734
4756
  </button>
4735
4757
  `;
4736
4758
  }
@@ -5107,7 +5129,7 @@ function xt(e, t = {}) {
5107
5129
  </div>
5108
5130
  `;
5109
5131
  }
5110
- const ye = {
5132
+ const xe = {
5111
5133
  // Faces
5112
5134
  smile: "😊",
5113
5135
  laugh: "😄",
@@ -5252,7 +5274,7 @@ const ye = {
5252
5274
  };
5253
5275
  function Ct(e) {
5254
5276
  let t = "❓", o = !1;
5255
- return e ? e in ye ? t = ye[e] : Me(e) ? t = e : Et(e) ? (o = !0, t = e) : /^\w+@\w+$/.test(e) ? t = e : e.endsWith(".svg") && !e.includes("/") ? (t = `https://cdn.jsdelivr.net/npm/@mdi/svg@7.4.47/svg/${e}`, o = !0) : t = e : t = "❓", {
5277
+ return e ? e in xe ? t = xe[e] : Me(e) ? t = e : Et(e) ? (o = !0, t = e) : /^\w+@\w+$/.test(e) ? t = e : e.endsWith(".svg") && !e.includes("/") ? (t = `https://cdn.jsdelivr.net/npm/@mdi/svg@7.4.47/svg/${e}`, o = !0) : t = e : t = "❓", {
5256
5278
  icon: t,
5257
5279
  isRemoteImage: o
5258
5280
  };
@@ -5876,7 +5898,7 @@ let ot = class extends g {
5876
5898
  * Renders the icon for a reaction
5877
5899
  */
5878
5900
  renderReactionIcon(e, t) {
5879
- const { icon: o, isRemoteImage: r } = Ct(e), s = Wt.FUNCTIONAL, i = t.tooltip || `${t.value} reaction`, a = Le(o, {
5901
+ const { icon: o, isRemoteImage: r } = Ct(e), s = Zt.FUNCTIONAL, i = t.tooltip || `${t.value} reaction`, a = Le(o, {
5880
5902
  type: s,
5881
5903
  alt: i,
5882
5904
  ariaLabel: i,