@florid-kit/components 0.3.34 → 0.3.36

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 (3) hide show
  1. package/index.js +144 -49
  2. package/index.mjs +583 -424
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3,18 +3,18 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const W = globalThis, at = W.ShadowRoot && (W.ShadyCSS === void 0 || W.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, lt = Symbol(), ut = /* @__PURE__ */ new WeakMap();
7
- let At = class {
8
- constructor(t, e, s) {
9
- if (this._$cssResult$ = !0, s !== lt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
6
+ const G = globalThis, ct = G.ShadowRoot && (G.ShadyCSS === void 0 || G.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ht = Symbol(), bt = /* @__PURE__ */ new WeakMap();
7
+ let Et = class {
8
+ constructor(t, e, o) {
9
+ if (this._$cssResult$ = !0, o !== ht) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
10
  this.cssText = t, this.t = e;
11
11
  }
12
12
  get styleSheet() {
13
13
  let t = this.o;
14
14
  const e = this.t;
15
- if (at && t === void 0) {
16
- const s = e !== void 0 && e.length === 1;
17
- s && (t = ut.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && ut.set(e, t));
15
+ if (ct && t === void 0) {
16
+ const o = e !== void 0 && e.length === 1;
17
+ o && (t = bt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), o && bt.set(e, t));
18
18
  }
19
19
  return t;
20
20
  }
@@ -22,120 +22,120 @@ let At = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const Pt = (n) => new At(typeof n == "string" ? n : n + "", void 0, lt), E = (n, ...t) => {
26
- const e = n.length === 1 ? n[0] : t.reduce((s, o, i) => s + ((r) => {
27
- if (r._$cssResult$ === !0) return r.cssText;
28
- if (typeof r == "number") return r;
29
- throw Error("Value passed to 'css' function must be a 'css' function result: " + r + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
- })(o) + n[i + 1], n[0]);
31
- return new At(e, n, lt);
32
- }, kt = (n, t) => {
33
- if (at) n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
25
+ const Bt = (s) => new Et(typeof s == "string" ? s : s + "", void 0, ht), A = (s, ...t) => {
26
+ const e = s.length === 1 ? s[0] : t.reduce((o, n, r) => o + ((i) => {
27
+ if (i._$cssResult$ === !0) return i.cssText;
28
+ if (typeof i == "number") return i;
29
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + i + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
+ })(n) + s[r + 1], s[0]);
31
+ return new Et(e, s, ht);
32
+ }, It = (s, t) => {
33
+ if (ct) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
34
34
  else for (const e of t) {
35
- const s = document.createElement("style"), o = W.litNonce;
36
- o !== void 0 && s.setAttribute("nonce", o), s.textContent = e.cssText, n.appendChild(s);
35
+ const o = document.createElement("style"), n = G.litNonce;
36
+ n !== void 0 && o.setAttribute("nonce", n), o.textContent = e.cssText, s.appendChild(o);
37
37
  }
38
- }, ft = at ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
38
+ }, vt = ct ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
39
39
  let e = "";
40
- for (const s of t.cssRules) e += s.cssText;
41
- return Pt(e);
42
- })(n) : n;
40
+ for (const o of t.cssRules) e += o.cssText;
41
+ return Bt(e);
42
+ })(s) : s;
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: Bt, defineProperty: Ot, getOwnPropertyDescriptor: Ht, getOwnPropertyNames: Mt, getOwnPropertySymbols: It, getPrototypeOf: Tt } = Object, S = globalThis, gt = S.trustedTypes, zt = gt ? gt.emptyScript : "", tt = S.reactiveElementPolyfillSupport, N = (n, t) => n, K = { toAttribute(n, t) {
48
+ const { is: Ot, defineProperty: Ht, getOwnPropertyDescriptor: Mt, getOwnPropertyNames: Tt, getOwnPropertySymbols: zt, getPrototypeOf: Dt } = Object, C = globalThis, gt = C.trustedTypes, Ut = gt ? gt.emptyScript : "", st = C.reactiveElementPolyfillSupport, R = (s, t) => s, X = { toAttribute(s, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
- n = n ? zt : null;
51
+ s = s ? Ut : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
55
- n = n == null ? n : JSON.stringify(n);
55
+ s = s == null ? s : JSON.stringify(s);
56
56
  }
57
- return n;
58
- }, fromAttribute(n, t) {
59
- let e = n;
57
+ return s;
58
+ }, fromAttribute(s, t) {
59
+ let e = s;
60
60
  switch (t) {
61
61
  case Boolean:
62
- e = n !== null;
62
+ e = s !== null;
63
63
  break;
64
64
  case Number:
65
- e = n === null ? null : Number(n);
65
+ e = s === null ? null : Number(s);
66
66
  break;
67
67
  case Object:
68
68
  case Array:
69
69
  try {
70
- e = JSON.parse(n);
70
+ e = JSON.parse(s);
71
71
  } catch {
72
72
  e = null;
73
73
  }
74
74
  }
75
75
  return e;
76
- } }, ct = (n, t) => !Bt(n, t), vt = { attribute: !0, type: String, converter: K, reflect: !1, useDefault: !1, hasChanged: ct };
77
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), S.litPropertyMetadata ?? (S.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
- let M = class extends HTMLElement {
76
+ } }, dt = (s, t) => !Ot(s, t), yt = { attribute: !0, type: String, converter: X, reflect: !1, useDefault: !1, hasChanged: dt };
77
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), C.litPropertyMetadata ?? (C.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
+ let z = class extends HTMLElement {
79
79
  static addInitializer(t) {
80
80
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
81
81
  }
82
82
  static get observedAttributes() {
83
83
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
84
  }
85
- static createProperty(t, e = vt) {
85
+ static createProperty(t, e = yt) {
86
86
  if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
87
- const s = Symbol(), o = this.getPropertyDescriptor(t, s, e);
88
- o !== void 0 && Ot(this.prototype, t, o);
87
+ const o = Symbol(), n = this.getPropertyDescriptor(t, o, e);
88
+ n !== void 0 && Ht(this.prototype, t, n);
89
89
  }
90
90
  }
91
- static getPropertyDescriptor(t, e, s) {
92
- const { get: o, set: i } = Ht(this.prototype, t) ?? { get() {
91
+ static getPropertyDescriptor(t, e, o) {
92
+ const { get: n, set: r } = Mt(this.prototype, t) ?? { get() {
93
93
  return this[e];
94
- }, set(r) {
95
- this[e] = r;
94
+ }, set(i) {
95
+ this[e] = i;
96
96
  } };
97
- return { get: o, set(r) {
98
- const c = o == null ? void 0 : o.call(this);
99
- i == null || i.call(this, r), this.requestUpdate(t, c, s);
97
+ return { get: n, set(i) {
98
+ const c = n == null ? void 0 : n.call(this);
99
+ r == null || r.call(this, i), this.requestUpdate(t, c, o);
100
100
  }, configurable: !0, enumerable: !0 };
101
101
  }
102
102
  static getPropertyOptions(t) {
103
- return this.elementProperties.get(t) ?? vt;
103
+ return this.elementProperties.get(t) ?? yt;
104
104
  }
105
105
  static _$Ei() {
106
- if (this.hasOwnProperty(N("elementProperties"))) return;
107
- const t = Tt(this);
106
+ if (this.hasOwnProperty(R("elementProperties"))) return;
107
+ const t = Dt(this);
108
108
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
109
109
  }
110
110
  static finalize() {
111
- if (this.hasOwnProperty(N("finalized"))) return;
112
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(N("properties"))) {
113
- const e = this.properties, s = [...Mt(e), ...It(e)];
114
- for (const o of s) this.createProperty(o, e[o]);
111
+ if (this.hasOwnProperty(R("finalized"))) return;
112
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(R("properties"))) {
113
+ const e = this.properties, o = [...Tt(e), ...zt(e)];
114
+ for (const n of o) this.createProperty(n, e[n]);
115
115
  }
116
116
  const t = this[Symbol.metadata];
117
117
  if (t !== null) {
118
118
  const e = litPropertyMetadata.get(t);
119
- if (e !== void 0) for (const [s, o] of e) this.elementProperties.set(s, o);
119
+ if (e !== void 0) for (const [o, n] of e) this.elementProperties.set(o, n);
120
120
  }
121
121
  this._$Eh = /* @__PURE__ */ new Map();
122
- for (const [e, s] of this.elementProperties) {
123
- const o = this._$Eu(e, s);
124
- o !== void 0 && this._$Eh.set(o, e);
122
+ for (const [e, o] of this.elementProperties) {
123
+ const n = this._$Eu(e, o);
124
+ n !== void 0 && this._$Eh.set(n, e);
125
125
  }
126
126
  this.elementStyles = this.finalizeStyles(this.styles);
127
127
  }
128
128
  static finalizeStyles(t) {
129
129
  const e = [];
130
130
  if (Array.isArray(t)) {
131
- const s = new Set(t.flat(1 / 0).reverse());
132
- for (const o of s) e.unshift(ft(o));
133
- } else t !== void 0 && e.push(ft(t));
131
+ const o = new Set(t.flat(1 / 0).reverse());
132
+ for (const n of o) e.unshift(vt(n));
133
+ } else t !== void 0 && e.push(vt(t));
134
134
  return e;
135
135
  }
136
136
  static _$Eu(t, e) {
137
- const s = e.attribute;
138
- return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
137
+ const o = e.attribute;
138
+ return o === !1 ? void 0 : typeof o == "string" ? o : typeof t == "string" ? t.toLowerCase() : void 0;
139
139
  }
140
140
  constructor() {
141
141
  super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
@@ -154,18 +154,18 @@ let M = class extends HTMLElement {
154
154
  }
155
155
  _$E_() {
156
156
  const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
157
- for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
157
+ for (const o of e.keys()) this.hasOwnProperty(o) && (t.set(o, this[o]), delete this[o]);
158
158
  t.size > 0 && (this._$Ep = t);
159
159
  }
160
160
  createRenderRoot() {
161
161
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
162
- return kt(t, this.constructor.elementStyles), t;
162
+ return It(t, this.constructor.elementStyles), t;
163
163
  }
164
164
  connectedCallback() {
165
165
  var t;
166
166
  this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
167
- var s;
168
- return (s = e.hostConnected) == null ? void 0 : s.call(e);
167
+ var o;
168
+ return (o = e.hostConnected) == null ? void 0 : o.call(e);
169
169
  });
170
170
  }
171
171
  enableUpdating(t) {
@@ -173,40 +173,40 @@ let M = class extends HTMLElement {
173
173
  disconnectedCallback() {
174
174
  var t;
175
175
  (t = this._$EO) == null || t.forEach((e) => {
176
- var s;
177
- return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
176
+ var o;
177
+ return (o = e.hostDisconnected) == null ? void 0 : o.call(e);
178
178
  });
179
179
  }
180
- attributeChangedCallback(t, e, s) {
181
- this._$AK(t, s);
180
+ attributeChangedCallback(t, e, o) {
181
+ this._$AK(t, o);
182
182
  }
183
183
  _$ET(t, e) {
184
- var i;
185
- const s = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, s);
186
- if (o !== void 0 && s.reflect === !0) {
187
- const r = (((i = s.converter) == null ? void 0 : i.toAttribute) !== void 0 ? s.converter : K).toAttribute(e, s.type);
188
- this._$Em = t, r == null ? this.removeAttribute(o) : this.setAttribute(o, r), this._$Em = null;
184
+ var r;
185
+ const o = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, o);
186
+ if (n !== void 0 && o.reflect === !0) {
187
+ const i = (((r = o.converter) == null ? void 0 : r.toAttribute) !== void 0 ? o.converter : X).toAttribute(e, o.type);
188
+ this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
189
189
  }
190
190
  }
191
191
  _$AK(t, e) {
192
- var i, r;
193
- const s = this.constructor, o = s._$Eh.get(t);
194
- if (o !== void 0 && this._$Em !== o) {
195
- const c = s.getPropertyOptions(o), l = typeof c.converter == "function" ? { fromAttribute: c.converter } : ((i = c.converter) == null ? void 0 : i.fromAttribute) !== void 0 ? c.converter : K;
196
- this._$Em = o, this[o] = l.fromAttribute(e, c.type) ?? ((r = this._$Ej) == null ? void 0 : r.get(o)) ?? null, this._$Em = null;
192
+ var r, i;
193
+ const o = this.constructor, n = o._$Eh.get(t);
194
+ if (n !== void 0 && this._$Em !== n) {
195
+ const c = o.getPropertyOptions(n), l = typeof c.converter == "function" ? { fromAttribute: c.converter } : ((r = c.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? c.converter : X;
196
+ this._$Em = n, this[n] = l.fromAttribute(e, c.type) ?? ((i = this._$Ej) == null ? void 0 : i.get(n)) ?? null, this._$Em = null;
197
197
  }
198
198
  }
199
- requestUpdate(t, e, s) {
200
- var o;
199
+ requestUpdate(t, e, o) {
200
+ var n;
201
201
  if (t !== void 0) {
202
- const i = this.constructor, r = this[t];
203
- if (s ?? (s = i.getPropertyOptions(t)), !((s.hasChanged ?? ct)(r, e) || s.useDefault && s.reflect && r === ((o = this._$Ej) == null ? void 0 : o.get(t)) && !this.hasAttribute(i._$Eu(t, s)))) return;
204
- this.C(t, e, s);
202
+ const r = this.constructor, i = this[t];
203
+ if (o ?? (o = r.getPropertyOptions(t)), !((o.hasChanged ?? dt)(i, e) || o.useDefault && o.reflect && i === ((n = this._$Ej) == null ? void 0 : n.get(t)) && !this.hasAttribute(r._$Eu(t, o)))) return;
204
+ this.C(t, e, o);
205
205
  }
206
206
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
207
207
  }
208
- C(t, e, { useDefault: s, reflect: o, wrapped: i }, r) {
209
- s && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, r ?? e ?? this[t]), i !== !0 || r !== void 0) || (this._$AL.has(t) || (this.hasUpdated || s || (e = void 0), this._$AL.set(t, e)), o === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
208
+ C(t, e, { useDefault: o, reflect: n, wrapped: r }, i) {
209
+ o && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, i ?? e ?? this[t]), r !== !0 || i !== void 0) || (this._$AL.has(t) || (this.hasUpdated || o || (e = void 0), this._$AL.set(t, e)), n === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
210
210
  }
211
211
  async _$EP() {
212
212
  this.isUpdatePending = !0;
@@ -222,28 +222,28 @@ let M = class extends HTMLElement {
222
222
  return this.performUpdate();
223
223
  }
224
224
  performUpdate() {
225
- var s;
225
+ var o;
226
226
  if (!this.isUpdatePending) return;
227
227
  if (!this.hasUpdated) {
228
228
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
229
- for (const [i, r] of this._$Ep) this[i] = r;
229
+ for (const [r, i] of this._$Ep) this[r] = i;
230
230
  this._$Ep = void 0;
231
231
  }
232
- const o = this.constructor.elementProperties;
233
- if (o.size > 0) for (const [i, r] of o) {
234
- const { wrapped: c } = r, l = this[i];
235
- c !== !0 || this._$AL.has(i) || l === void 0 || this.C(i, void 0, r, l);
232
+ const n = this.constructor.elementProperties;
233
+ if (n.size > 0) for (const [r, i] of n) {
234
+ const { wrapped: c } = i, l = this[r];
235
+ c !== !0 || this._$AL.has(r) || l === void 0 || this.C(r, void 0, i, l);
236
236
  }
237
237
  }
238
238
  let t = !1;
239
239
  const e = this._$AL;
240
240
  try {
241
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((o) => {
242
- var i;
243
- return (i = o.hostUpdate) == null ? void 0 : i.call(o);
241
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (o = this._$EO) == null || o.forEach((n) => {
242
+ var r;
243
+ return (r = n.hostUpdate) == null ? void 0 : r.call(n);
244
244
  }), this.update(e)) : this._$EM();
245
- } catch (o) {
246
- throw t = !1, this._$EM(), o;
245
+ } catch (n) {
246
+ throw t = !1, this._$EM(), n;
247
247
  }
248
248
  t && this._$AE(e);
249
249
  }
@@ -251,9 +251,9 @@ let M = class extends HTMLElement {
251
251
  }
252
252
  _$AE(t) {
253
253
  var e;
254
- (e = this._$EO) == null || e.forEach((s) => {
255
- var o;
256
- return (o = s.hostUpdated) == null ? void 0 : o.call(s);
254
+ (e = this._$EO) == null || e.forEach((o) => {
255
+ var n;
256
+ return (n = o.hostUpdated) == null ? void 0 : n.call(o);
257
257
  }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
258
258
  }
259
259
  _$EM() {
@@ -276,76 +276,76 @@ let M = class extends HTMLElement {
276
276
  firstUpdated(t) {
277
277
  }
278
278
  };
279
- M.elementStyles = [], M.shadowRootOptions = { mode: "open" }, M[N("elementProperties")] = /* @__PURE__ */ new Map(), M[N("finalized")] = /* @__PURE__ */ new Map(), tt == null || tt({ ReactiveElement: M }), (S.reactiveElementVersions ?? (S.reactiveElementVersions = [])).push("2.1.0");
279
+ z.elementStyles = [], z.shadowRootOptions = { mode: "open" }, z[R("elementProperties")] = /* @__PURE__ */ new Map(), z[R("finalized")] = /* @__PURE__ */ new Map(), st == null || st({ ReactiveElement: z }), (C.reactiveElementVersions ?? (C.reactiveElementVersions = [])).push("2.1.0");
280
280
  /**
281
281
  * @license
282
282
  * Copyright 2017 Google LLC
283
283
  * SPDX-License-Identifier: BSD-3-Clause
284
284
  */
285
- const j = globalThis, G = j.trustedTypes, bt = G ? G.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, St = "$lit$", A = `lit$${Math.random().toFixed(9).slice(2)}$`, Et = "?" + A, Ut = `<${Et}>`, B = document, R = () => B.createComment(""), F = (n) => n === null || typeof n != "object" && typeof n != "function", ht = Array.isArray, Dt = (n) => ht(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", et = `[
286
- \f\r]`, D = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, yt = /-->/g, mt = />/g, L = RegExp(`>|${et}(?:([^\\s"'>=/]+)(${et}*=${et}*(?:[^
287
- \f\r"'\`<>=]|("|')|))|$)`, "g"), $t = /'/g, wt = /"/g, Ct = /^(?:script|style|textarea|title)$/i, Nt = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), d = Nt(1), O = Symbol.for("lit-noChange"), h = Symbol.for("lit-nothing"), _t = /* @__PURE__ */ new WeakMap(), P = B.createTreeWalker(B, 129);
288
- function Lt(n, t) {
289
- if (!ht(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
290
- return bt !== void 0 ? bt.createHTML(t) : t;
285
+ const F = globalThis, J = F.trustedTypes, mt = J ? J.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Ct = "$lit$", E = `lit$${Math.random().toFixed(9).slice(2)}$`, Lt = "?" + E, Nt = `<${Lt}>`, I = document, V = () => I.createComment(""), q = (s) => s === null || typeof s != "object" && typeof s != "function", pt = Array.isArray, jt = (s) => pt(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", ot = `[
286
+ \f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $t = /-->/g, wt = />/g, k = RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^
287
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), xt = /'/g, _t = /"/g, kt = /^(?:script|style|textarea|title)$/i, Rt = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), d = Rt(1), O = Symbol.for("lit-noChange"), h = Symbol.for("lit-nothing"), At = /* @__PURE__ */ new WeakMap(), P = I.createTreeWalker(I, 129);
288
+ function Pt(s, t) {
289
+ if (!pt(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
290
+ return mt !== void 0 ? mt.createHTML(t) : t;
291
291
  }
292
- const jt = (n, t) => {
293
- const e = n.length - 1, s = [];
294
- let o, i = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = D;
292
+ const Ft = (s, t) => {
293
+ const e = s.length - 1, o = [];
294
+ let n, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", i = j;
295
295
  for (let c = 0; c < e; c++) {
296
- const l = n[c];
297
- let f, g, p = -1, w = 0;
298
- for (; w < l.length && (r.lastIndex = w, g = r.exec(l), g !== null); ) w = r.lastIndex, r === D ? g[1] === "!--" ? r = yt : g[1] !== void 0 ? r = mt : g[2] !== void 0 ? (Ct.test(g[2]) && (o = RegExp("</" + g[2], "g")), r = L) : g[3] !== void 0 && (r = L) : r === L ? g[0] === ">" ? (r = o ?? D, p = -1) : g[1] === void 0 ? p = -2 : (p = r.lastIndex - g[2].length, f = g[1], r = g[3] === void 0 ? L : g[3] === '"' ? wt : $t) : r === wt || r === $t ? r = L : r === yt || r === mt ? r = D : (r = L, o = void 0);
299
- const x = r === L && n[c + 1].startsWith("/>") ? " " : "";
300
- i += r === D ? l + Ut : p >= 0 ? (s.push(f), l.slice(0, p) + St + l.slice(p) + A + x) : l + A + (p === -2 ? c : x);
296
+ const l = s[c];
297
+ let f, b, p = -1, w = 0;
298
+ for (; w < l.length && (i.lastIndex = w, b = i.exec(l), b !== null); ) w = i.lastIndex, i === j ? b[1] === "!--" ? i = $t : b[1] !== void 0 ? i = wt : b[2] !== void 0 ? (kt.test(b[2]) && (n = RegExp("</" + b[2], "g")), i = k) : b[3] !== void 0 && (i = k) : i === k ? b[0] === ">" ? (i = n ?? j, p = -1) : b[1] === void 0 ? p = -2 : (p = i.lastIndex - b[2].length, f = b[1], i = b[3] === void 0 ? k : b[3] === '"' ? _t : xt) : i === _t || i === xt ? i = k : i === $t || i === wt ? i = j : (i = k, n = void 0);
299
+ const S = i === k && s[c + 1].startsWith("/>") ? " " : "";
300
+ r += i === j ? l + Nt : p >= 0 ? (o.push(f), l.slice(0, p) + Ct + l.slice(p) + E + S) : l + E + (p === -2 ? c : S);
301
301
  }
302
- return [Lt(n, i + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
302
+ return [Pt(s, r + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), o];
303
303
  };
304
- class V {
305
- constructor({ strings: t, _$litType$: e }, s) {
306
- let o;
304
+ class Z {
305
+ constructor({ strings: t, _$litType$: e }, o) {
306
+ let n;
307
307
  this.parts = [];
308
- let i = 0, r = 0;
309
- const c = t.length - 1, l = this.parts, [f, g] = jt(t, e);
310
- if (this.el = V.createElement(f, s), P.currentNode = this.el.content, e === 2 || e === 3) {
308
+ let r = 0, i = 0;
309
+ const c = t.length - 1, l = this.parts, [f, b] = Ft(t, e);
310
+ if (this.el = Z.createElement(f, o), P.currentNode = this.el.content, e === 2 || e === 3) {
311
311
  const p = this.el.content.firstChild;
312
312
  p.replaceWith(...p.childNodes);
313
313
  }
314
- for (; (o = P.nextNode()) !== null && l.length < c; ) {
315
- if (o.nodeType === 1) {
316
- if (o.hasAttributes()) for (const p of o.getAttributeNames()) if (p.endsWith(St)) {
317
- const w = g[r++], x = o.getAttribute(p).split(A), q = /([.?@])?(.*)/.exec(w);
318
- l.push({ type: 1, index: i, name: q[2], strings: x, ctor: q[1] === "." ? Ft : q[1] === "?" ? Vt : q[1] === "@" ? Zt : J }), o.removeAttribute(p);
319
- } else p.startsWith(A) && (l.push({ type: 6, index: i }), o.removeAttribute(p));
320
- if (Ct.test(o.tagName)) {
321
- const p = o.textContent.split(A), w = p.length - 1;
314
+ for (; (n = P.nextNode()) !== null && l.length < c; ) {
315
+ if (n.nodeType === 1) {
316
+ if (n.hasAttributes()) for (const p of n.getAttributeNames()) if (p.endsWith(Ct)) {
317
+ const w = b[i++], S = n.getAttribute(p).split(E), K = /([.?@])?(.*)/.exec(w);
318
+ l.push({ type: 1, index: r, name: K[2], strings: S, ctor: K[1] === "." ? qt : K[1] === "?" ? Zt : K[1] === "@" ? Wt : Y }), n.removeAttribute(p);
319
+ } else p.startsWith(E) && (l.push({ type: 6, index: r }), n.removeAttribute(p));
320
+ if (kt.test(n.tagName)) {
321
+ const p = n.textContent.split(E), w = p.length - 1;
322
322
  if (w > 0) {
323
- o.textContent = G ? G.emptyScript : "";
324
- for (let x = 0; x < w; x++) o.append(p[x], R()), P.nextNode(), l.push({ type: 2, index: ++i });
325
- o.append(p[w], R());
323
+ n.textContent = J ? J.emptyScript : "";
324
+ for (let S = 0; S < w; S++) n.append(p[S], V()), P.nextNode(), l.push({ type: 2, index: ++r });
325
+ n.append(p[w], V());
326
326
  }
327
327
  }
328
- } else if (o.nodeType === 8) if (o.data === Et) l.push({ type: 2, index: i });
328
+ } else if (n.nodeType === 8) if (n.data === Lt) l.push({ type: 2, index: r });
329
329
  else {
330
330
  let p = -1;
331
- for (; (p = o.data.indexOf(A, p + 1)) !== -1; ) l.push({ type: 7, index: i }), p += A.length - 1;
331
+ for (; (p = n.data.indexOf(E, p + 1)) !== -1; ) l.push({ type: 7, index: r }), p += E.length - 1;
332
332
  }
333
- i++;
333
+ r++;
334
334
  }
335
335
  }
336
336
  static createElement(t, e) {
337
- const s = B.createElement("template");
338
- return s.innerHTML = t, s;
337
+ const o = I.createElement("template");
338
+ return o.innerHTML = t, o;
339
339
  }
340
340
  }
341
- function I(n, t, e = n, s) {
342
- var r, c;
341
+ function D(s, t, e = s, o) {
342
+ var i, c;
343
343
  if (t === O) return t;
344
- let o = s !== void 0 ? (r = e._$Co) == null ? void 0 : r[s] : e._$Cl;
345
- const i = F(t) ? void 0 : t._$litDirective$;
346
- return (o == null ? void 0 : o.constructor) !== i && ((c = o == null ? void 0 : o._$AO) == null || c.call(o, !1), i === void 0 ? o = void 0 : (o = new i(n), o._$AT(n, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = o : e._$Cl = o), o !== void 0 && (t = I(n, o._$AS(n, t.values), o, s)), t;
344
+ let n = o !== void 0 ? (i = e._$Co) == null ? void 0 : i[o] : e._$Cl;
345
+ const r = q(t) ? void 0 : t._$litDirective$;
346
+ return (n == null ? void 0 : n.constructor) !== r && ((c = n == null ? void 0 : n._$AO) == null || c.call(n, !1), r === void 0 ? n = void 0 : (n = new r(s), n._$AT(s, e, o)), o !== void 0 ? (e._$Co ?? (e._$Co = []))[o] = n : e._$Cl = n), n !== void 0 && (t = D(s, n._$AS(s, t.values), n, o)), t;
347
347
  }
348
- class Rt {
348
+ class Vt {
349
349
  constructor(t, e) {
350
350
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
351
351
  }
@@ -356,30 +356,30 @@ class Rt {
356
356
  return this._$AM._$AU;
357
357
  }
358
358
  u(t) {
359
- const { el: { content: e }, parts: s } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? B).importNode(e, !0);
360
- P.currentNode = o;
361
- let i = P.nextNode(), r = 0, c = 0, l = s[0];
359
+ const { el: { content: e }, parts: o } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ?? I).importNode(e, !0);
360
+ P.currentNode = n;
361
+ let r = P.nextNode(), i = 0, c = 0, l = o[0];
362
362
  for (; l !== void 0; ) {
363
- if (r === l.index) {
363
+ if (i === l.index) {
364
364
  let f;
365
- l.type === 2 ? f = new Z(i, i.nextSibling, this, t) : l.type === 1 ? f = new l.ctor(i, l.name, l.strings, this, t) : l.type === 6 && (f = new qt(i, this, t)), this._$AV.push(f), l = s[++c];
365
+ l.type === 2 ? f = new W(r, r.nextSibling, this, t) : l.type === 1 ? f = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (f = new Kt(r, this, t)), this._$AV.push(f), l = o[++c];
366
366
  }
367
- r !== (l == null ? void 0 : l.index) && (i = P.nextNode(), r++);
367
+ i !== (l == null ? void 0 : l.index) && (r = P.nextNode(), i++);
368
368
  }
369
- return P.currentNode = B, o;
369
+ return P.currentNode = I, n;
370
370
  }
371
371
  p(t) {
372
372
  let e = 0;
373
- for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
373
+ for (const o of this._$AV) o !== void 0 && (o.strings !== void 0 ? (o._$AI(t, o, e), e += o.strings.length - 2) : o._$AI(t[e])), e++;
374
374
  }
375
375
  }
376
- class Z {
376
+ class W {
377
377
  get _$AU() {
378
378
  var t;
379
379
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
380
380
  }
381
- constructor(t, e, s, o) {
382
- this.type = 2, this._$AH = h, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = o, this._$Cv = (o == null ? void 0 : o.isConnected) ?? !0;
381
+ constructor(t, e, o, n) {
382
+ this.type = 2, this._$AH = h, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = o, this.options = n, this._$Cv = (n == null ? void 0 : n.isConnected) ?? !0;
383
383
  }
384
384
  get parentNode() {
385
385
  let t = this._$AA.parentNode;
@@ -393,7 +393,7 @@ class Z {
393
393
  return this._$AB;
394
394
  }
395
395
  _$AI(t, e = this) {
396
- t = I(this, t, e), F(t) ? t === h || t == null || t === "" ? (this._$AH !== h && this._$AR(), this._$AH = h) : t !== this._$AH && t !== O && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Dt(t) ? this.k(t) : this._(t);
396
+ t = D(this, t, e), q(t) ? t === h || t == null || t === "" ? (this._$AH !== h && this._$AR(), this._$AH = h) : t !== this._$AH && t !== O && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : jt(t) ? this.k(t) : this._(t);
397
397
  }
398
398
  O(t) {
399
399
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -402,33 +402,33 @@ class Z {
402
402
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
403
403
  }
404
404
  _(t) {
405
- this._$AH !== h && F(this._$AH) ? this._$AA.nextSibling.data = t : this.T(B.createTextNode(t)), this._$AH = t;
405
+ this._$AH !== h && q(this._$AH) ? this._$AA.nextSibling.data = t : this.T(I.createTextNode(t)), this._$AH = t;
406
406
  }
407
407
  $(t) {
408
- var i;
409
- const { values: e, _$litType$: s } = t, o = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = V.createElement(Lt(s.h, s.h[0]), this.options)), s);
410
- if (((i = this._$AH) == null ? void 0 : i._$AD) === o) this._$AH.p(e);
408
+ var r;
409
+ const { values: e, _$litType$: o } = t, n = typeof o == "number" ? this._$AC(t) : (o.el === void 0 && (o.el = Z.createElement(Pt(o.h, o.h[0]), this.options)), o);
410
+ if (((r = this._$AH) == null ? void 0 : r._$AD) === n) this._$AH.p(e);
411
411
  else {
412
- const r = new Rt(o, this), c = r.u(this.options);
413
- r.p(e), this.T(c), this._$AH = r;
412
+ const i = new Vt(n, this), c = i.u(this.options);
413
+ i.p(e), this.T(c), this._$AH = i;
414
414
  }
415
415
  }
416
416
  _$AC(t) {
417
- let e = _t.get(t.strings);
418
- return e === void 0 && _t.set(t.strings, e = new V(t)), e;
417
+ let e = At.get(t.strings);
418
+ return e === void 0 && At.set(t.strings, e = new Z(t)), e;
419
419
  }
420
420
  k(t) {
421
- ht(this._$AH) || (this._$AH = [], this._$AR());
421
+ pt(this._$AH) || (this._$AH = [], this._$AR());
422
422
  const e = this._$AH;
423
- let s, o = 0;
424
- for (const i of t) o === e.length ? e.push(s = new Z(this.O(R()), this.O(R()), this, this.options)) : s = e[o], s._$AI(i), o++;
425
- o < e.length && (this._$AR(s && s._$AB.nextSibling, o), e.length = o);
423
+ let o, n = 0;
424
+ for (const r of t) n === e.length ? e.push(o = new W(this.O(V()), this.O(V()), this, this.options)) : o = e[n], o._$AI(r), n++;
425
+ n < e.length && (this._$AR(o && o._$AB.nextSibling, n), e.length = n);
426
426
  }
427
427
  _$AR(t = this._$AA.nextSibling, e) {
428
- var s;
429
- for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
430
- const o = t.nextSibling;
431
- t.remove(), t = o;
428
+ var o;
429
+ for ((o = this._$AP) == null ? void 0 : o.call(this, !1, !0, e); t && t !== this._$AB; ) {
430
+ const n = t.nextSibling;
431
+ t.remove(), t = n;
432
432
  }
433
433
  }
434
434
  setConnected(t) {
@@ -436,32 +436,32 @@ class Z {
436
436
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
437
437
  }
438
438
  }
439
- class J {
439
+ class Y {
440
440
  get tagName() {
441
441
  return this.element.tagName;
442
442
  }
443
443
  get _$AU() {
444
444
  return this._$AM._$AU;
445
445
  }
446
- constructor(t, e, s, o, i) {
447
- this.type = 1, this._$AH = h, this._$AN = void 0, this.element = t, this.name = e, this._$AM = o, this.options = i, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = h;
446
+ constructor(t, e, o, n, r) {
447
+ this.type = 1, this._$AH = h, this._$AN = void 0, this.element = t, this.name = e, this._$AM = n, this.options = r, o.length > 2 || o[0] !== "" || o[1] !== "" ? (this._$AH = Array(o.length - 1).fill(new String()), this.strings = o) : this._$AH = h;
448
448
  }
449
- _$AI(t, e = this, s, o) {
450
- const i = this.strings;
451
- let r = !1;
452
- if (i === void 0) t = I(this, t, e, 0), r = !F(t) || t !== this._$AH && t !== O, r && (this._$AH = t);
449
+ _$AI(t, e = this, o, n) {
450
+ const r = this.strings;
451
+ let i = !1;
452
+ if (r === void 0) t = D(this, t, e, 0), i = !q(t) || t !== this._$AH && t !== O, i && (this._$AH = t);
453
453
  else {
454
454
  const c = t;
455
455
  let l, f;
456
- for (t = i[0], l = 0; l < i.length - 1; l++) f = I(this, c[s + l], e, l), f === O && (f = this._$AH[l]), r || (r = !F(f) || f !== this._$AH[l]), f === h ? t = h : t !== h && (t += (f ?? "") + i[l + 1]), this._$AH[l] = f;
456
+ for (t = r[0], l = 0; l < r.length - 1; l++) f = D(this, c[o + l], e, l), f === O && (f = this._$AH[l]), i || (i = !q(f) || f !== this._$AH[l]), f === h ? t = h : t !== h && (t += (f ?? "") + r[l + 1]), this._$AH[l] = f;
457
457
  }
458
- r && !o && this.j(t);
458
+ i && !n && this.j(t);
459
459
  }
460
460
  j(t) {
461
461
  t === h ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
462
462
  }
463
463
  }
464
- class Ft extends J {
464
+ class qt extends Y {
465
465
  constructor() {
466
466
  super(...arguments), this.type = 3;
467
467
  }
@@ -469,7 +469,7 @@ class Ft extends J {
469
469
  this.element[this.name] = t === h ? void 0 : t;
470
470
  }
471
471
  }
472
- class Vt extends J {
472
+ class Zt extends Y {
473
473
  constructor() {
474
474
  super(...arguments), this.type = 4;
475
475
  }
@@ -477,49 +477,49 @@ class Vt extends J {
477
477
  this.element.toggleAttribute(this.name, !!t && t !== h);
478
478
  }
479
479
  }
480
- class Zt extends J {
481
- constructor(t, e, s, o, i) {
482
- super(t, e, s, o, i), this.type = 5;
480
+ class Wt extends Y {
481
+ constructor(t, e, o, n, r) {
482
+ super(t, e, o, n, r), this.type = 5;
483
483
  }
484
484
  _$AI(t, e = this) {
485
- if ((t = I(this, t, e, 0) ?? h) === O) return;
486
- const s = this._$AH, o = t === h && s !== h || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, i = t !== h && (s === h || o);
487
- o && this.element.removeEventListener(this.name, this, s), i && this.element.addEventListener(this.name, this, t), this._$AH = t;
485
+ if ((t = D(this, t, e, 0) ?? h) === O) return;
486
+ const o = this._$AH, n = t === h && o !== h || t.capture !== o.capture || t.once !== o.once || t.passive !== o.passive, r = t !== h && (o === h || n);
487
+ n && this.element.removeEventListener(this.name, this, o), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
488
488
  }
489
489
  handleEvent(t) {
490
490
  var e;
491
491
  typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
492
492
  }
493
493
  }
494
- class qt {
495
- constructor(t, e, s) {
496
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
494
+ class Kt {
495
+ constructor(t, e, o) {
496
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = o;
497
497
  }
498
498
  get _$AU() {
499
499
  return this._$AM._$AU;
500
500
  }
501
501
  _$AI(t) {
502
- I(this, t);
502
+ D(this, t);
503
503
  }
504
504
  }
505
- const st = j.litHtmlPolyfillSupport;
506
- st == null || st(V, Z), (j.litHtmlVersions ?? (j.litHtmlVersions = [])).push("3.3.0");
507
- const Wt = (n, t, e) => {
508
- const s = (e == null ? void 0 : e.renderBefore) ?? t;
509
- let o = s._$litPart$;
510
- if (o === void 0) {
511
- const i = (e == null ? void 0 : e.renderBefore) ?? null;
512
- s._$litPart$ = o = new Z(t.insertBefore(R(), i), i, void 0, e ?? {});
513
- }
514
- return o._$AI(n), o;
505
+ const nt = F.litHtmlPolyfillSupport;
506
+ nt == null || nt(Z, W), (F.litHtmlVersions ?? (F.litHtmlVersions = [])).push("3.3.0");
507
+ const Gt = (s, t, e) => {
508
+ const o = (e == null ? void 0 : e.renderBefore) ?? t;
509
+ let n = o._$litPart$;
510
+ if (n === void 0) {
511
+ const r = (e == null ? void 0 : e.renderBefore) ?? null;
512
+ o._$litPart$ = n = new W(t.insertBefore(V(), r), r, void 0, e ?? {});
513
+ }
514
+ return n._$AI(s), n;
515
515
  };
516
516
  /**
517
517
  * @license
518
518
  * Copyright 2017 Google LLC
519
519
  * SPDX-License-Identifier: BSD-3-Clause
520
520
  */
521
- const k = globalThis;
522
- let m = class extends M {
521
+ const B = globalThis;
522
+ let m = class extends z {
523
523
  constructor() {
524
524
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
525
525
  }
@@ -530,7 +530,7 @@ let m = class extends M {
530
530
  }
531
531
  update(t) {
532
532
  const e = this.render();
533
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Wt(e, this.renderRoot, this.renderOptions);
533
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Gt(e, this.renderRoot, this.renderOptions);
534
534
  }
535
535
  connectedCallback() {
536
536
  var t;
@@ -544,59 +544,67 @@ let m = class extends M {
544
544
  return O;
545
545
  }
546
546
  };
547
- var xt;
548
- m._$litElement$ = !0, m.finalized = !0, (xt = k.litElementHydrateSupport) == null || xt.call(k, { LitElement: m });
549
- const ot = k.litElementPolyfillSupport;
550
- ot == null || ot({ LitElement: m });
551
- (k.litElementVersions ?? (k.litElementVersions = [])).push("4.2.0");
547
+ var St;
548
+ m._$litElement$ = !0, m.finalized = !0, (St = B.litElementHydrateSupport) == null || St.call(B, { LitElement: m });
549
+ const it = B.litElementPolyfillSupport;
550
+ it == null || it({ LitElement: m });
551
+ (B.litElementVersions ?? (B.litElementVersions = [])).push("4.2.0");
552
552
  /**
553
553
  * @license
554
554
  * Copyright 2017 Google LLC
555
555
  * SPDX-License-Identifier: BSD-3-Clause
556
556
  */
557
- const U = (n) => (t, e) => {
557
+ const H = (s) => (t, e) => {
558
558
  e !== void 0 ? e.addInitializer(() => {
559
- customElements.define(n, t);
560
- }) : customElements.define(n, t);
559
+ customElements.define(s, t);
560
+ }) : customElements.define(s, t);
561
561
  };
562
562
  /**
563
563
  * @license
564
564
  * Copyright 2017 Google LLC
565
565
  * SPDX-License-Identifier: BSD-3-Clause
566
566
  */
567
- const Kt = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: ct }, Gt = (n = Kt, t, e) => {
568
- const { kind: s, metadata: o } = e;
569
- let i = globalThis.litPropertyMetadata.get(o);
570
- if (i === void 0 && globalThis.litPropertyMetadata.set(o, i = /* @__PURE__ */ new Map()), s === "setter" && ((n = Object.create(n)).wrapped = !0), i.set(e.name, n), s === "accessor") {
571
- const { name: r } = e;
567
+ const Xt = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: dt }, Jt = (s = Xt, t, e) => {
568
+ const { kind: o, metadata: n } = e;
569
+ let r = globalThis.litPropertyMetadata.get(n);
570
+ if (r === void 0 && globalThis.litPropertyMetadata.set(n, r = /* @__PURE__ */ new Map()), o === "setter" && ((s = Object.create(s)).wrapped = !0), r.set(e.name, s), o === "accessor") {
571
+ const { name: i } = e;
572
572
  return { set(c) {
573
573
  const l = t.get.call(this);
574
- t.set.call(this, c), this.requestUpdate(r, l, n);
574
+ t.set.call(this, c), this.requestUpdate(i, l, s);
575
575
  }, init(c) {
576
- return c !== void 0 && this.C(r, void 0, n, c), c;
576
+ return c !== void 0 && this.C(i, void 0, s, c), c;
577
577
  } };
578
578
  }
579
- if (s === "setter") {
580
- const { name: r } = e;
579
+ if (o === "setter") {
580
+ const { name: i } = e;
581
581
  return function(c) {
582
- const l = this[r];
583
- t.call(this, c), this.requestUpdate(r, l, n);
582
+ const l = this[i];
583
+ t.call(this, c), this.requestUpdate(i, l, s);
584
584
  };
585
585
  }
586
- throw Error("Unsupported decorator location: " + s);
586
+ throw Error("Unsupported decorator location: " + o);
587
587
  };
588
- function a(n) {
589
- return (t, e) => typeof e == "object" ? Gt(n, t, e) : ((s, o, i) => {
590
- const r = o.hasOwnProperty(i);
591
- return o.constructor.createProperty(i, s), r ? Object.getOwnPropertyDescriptor(o, i) : void 0;
592
- })(n, t, e);
588
+ function a(s) {
589
+ return (t, e) => typeof e == "object" ? Jt(s, t, e) : ((o, n, r) => {
590
+ const i = n.hasOwnProperty(r);
591
+ return n.constructor.createProperty(r, o), i ? Object.getOwnPropertyDescriptor(n, r) : void 0;
592
+ })(s, t, e);
593
+ }
594
+ /**
595
+ * @license
596
+ * Copyright 2017 Google LLC
597
+ * SPDX-License-Identifier: BSD-3-Clause
598
+ */
599
+ function Qt(s) {
600
+ return a({ ...s, state: !0, attribute: !1 });
593
601
  }
594
- const Xt = E`
602
+ const Yt = A`
595
603
  outline: 1px dashed var(--button-border-color);
596
604
  outline-offset: 2px;
597
605
  outline: dashed black;
598
606
  `;
599
- E`
607
+ A`
600
608
  :host * {
601
609
  box-sizing: border-box;
602
610
  }
@@ -606,12 +614,12 @@ E`
606
614
  * Copyright 2023 Google LLC
607
615
  * SPDX-License-Identifier: Apache-2.0
608
616
  */
609
- const dt = Symbol("internals"), nt = Symbol("privateInternals");
610
- function Jt(n) {
617
+ const ut = Symbol("internals"), rt = Symbol("privateInternals");
618
+ function te(s) {
611
619
  var t;
612
- class e extends n {
613
- get [(t = dt, t)]() {
614
- return this[nt] || (this[nt] = this.attachInternals()), this[nt];
620
+ class e extends s {
621
+ get [(t = ut, t)]() {
622
+ return this[rt] || (this[rt] = this.attachInternals()), this[rt];
615
623
  }
616
624
  }
617
625
  return e;
@@ -621,19 +629,19 @@ function Jt(n) {
621
629
  * Copyright 2023 Google LLC
622
630
  * SPDX-License-Identifier: Apache-2.0
623
631
  */
624
- function Qt(n) {
625
- n.addInitializer((t) => {
632
+ function ee(s) {
633
+ s.addInitializer((t) => {
626
634
  const e = t;
627
- e.addEventListener("click", async (s) => {
628
- const { type: o, [dt]: i } = e, { form: r } = i;
629
- if (!(!r || o === "button") && (await new Promise((c) => {
635
+ e.addEventListener("click", async (o) => {
636
+ const { type: n, [ut]: r } = e, { form: i } = r;
637
+ if (!(!i || n === "button") && (await new Promise((c) => {
630
638
  setTimeout(c);
631
- }), !s.defaultPrevented)) {
632
- if (o === "reset") {
633
- r.reset();
639
+ }), !o.defaultPrevented)) {
640
+ if (n === "reset") {
641
+ i.reset();
634
642
  return;
635
643
  }
636
- r.addEventListener(
644
+ i.addEventListener(
637
645
  "submit",
638
646
  (c) => {
639
647
  Object.defineProperty(c, "submitter", {
@@ -643,7 +651,7 @@ function Qt(n) {
643
651
  });
644
652
  },
645
653
  { capture: !0, once: !0 }
646
- ), i.setFormValue(e.value), r.requestSubmit();
654
+ ), r.setFormValue(e.value), i.requestSubmit();
647
655
  }
648
656
  });
649
657
  });
@@ -653,15 +661,15 @@ function Qt(n) {
653
661
  * Copyright 2017 Google LLC
654
662
  * SPDX-License-Identifier: BSD-3-Clause
655
663
  */
656
- const Yt = { CHILD: 2 }, te = (n) => (...t) => ({ _$litDirective$: n, values: t });
657
- class ee {
664
+ const se = { CHILD: 2 }, oe = (s) => (...t) => ({ _$litDirective$: s, values: t });
665
+ class ne {
658
666
  constructor(t) {
659
667
  }
660
668
  get _$AU() {
661
669
  return this._$AM._$AU;
662
670
  }
663
- _$AT(t, e, s) {
664
- this._$Ct = t, this._$AM = e, this._$Ci = s;
671
+ _$AT(t, e, o) {
672
+ this._$Ct = t, this._$AM = e, this._$Ci = o;
665
673
  }
666
674
  _$AS(t, e) {
667
675
  return this.update(t, e);
@@ -675,9 +683,9 @@ class ee {
675
683
  * Copyright 2017 Google LLC
676
684
  * SPDX-License-Identifier: BSD-3-Clause
677
685
  */
678
- class rt extends ee {
686
+ class at extends ne {
679
687
  constructor(t) {
680
- if (super(t), this.it = h, t.type !== Yt.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
688
+ if (super(t), this.it = h, t.type !== se.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
681
689
  }
682
690
  render(t) {
683
691
  if (t === h || t == null) return this._t = void 0, this.it = t;
@@ -689,50 +697,50 @@ class rt extends ee {
689
697
  return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
690
698
  }
691
699
  }
692
- rt.directiveName = "unsafeHTML", rt.resultType = 1;
700
+ at.directiveName = "unsafeHTML", at.resultType = 1;
693
701
  /**
694
702
  * @license
695
703
  * Copyright 2017 Google LLC
696
704
  * SPDX-License-Identifier: BSD-3-Clause
697
705
  */
698
- class it extends rt {
706
+ class lt extends at {
699
707
  }
700
- it.directiveName = "unsafeSVG", it.resultType = 2;
701
- const X = te(it), se = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
708
+ lt.directiveName = "unsafeSVG", lt.resultType = 2;
709
+ const Q = oe(lt), ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
702
710
  <path d="M8 3.6275C7.06799 0.971489 3.25399 -0.0226278 1.67414 2.30983C0.0877404 4.65197 1.67414 6.99412 2.62598 8.33249C3.0147 8.87905 8 14 8 14C8 14 12.9853 8.87905 13.374 8.33249C14.3259 6.99412 15.9123 4.65197 14.3259 2.30983C12.746 -0.0226277 8.97167 0.971489 8 3.6275Z" stroke="#3F2B2E" stroke-linecap="round"/>
703
711
  </svg>
704
- `, oe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
712
+ `, re = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
705
713
  <path d="M16 8L4 0V16L16 8Z" fill="#3F2B2E"/>
706
714
  </svg>
707
- `, ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
715
+ `, ae = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
708
716
  <path d="M12.2266 8.16162C11.0953 9.26599 8.72489 11.8788 5.11546 16L4.63062 15.7172C5.78886 13.4007 7.17607 10.8283 8.79223 8C7.17607 5.17172 5.78886 2.59933 4.63062 0.282827L5.11546 0C8.72489 4.12121 11.0953 6.73401 12.2266 7.83838V8.16162Z" fill="#3F2B2E"/>
709
717
  </svg>
710
- `, re = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
718
+ `, le = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
711
719
  <path d="M5 7.83838C6.02128 6.73401 8.16109 4.12121 11.4195 0L11.8571 0.282829C10.8116 2.59933 9.55927 5.17172 8.1003 8C9.55927 10.8283 10.8115 13.4007 11.8571 15.7172L11.4195 16C8.16109 11.8788 6.02128 9.266 5 8.16162L5 7.83838Z" fill="#3F2B2E"/>
712
720
  </svg>
713
- `, ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
721
+ `, ce = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
714
722
  <path d="M12.2834 14.4585L7.98873 11.3928L3.69404 14.4585L5.33977 9.4972L1 6.39639H6.36554L8 1.4585L9.63446 6.39639H15L10.6602 9.4972L12.306 14.4585H12.2834ZM7.98873 10.328L10.6602 12.2353L9.64573 9.15787L12.2721 7.28568H9.02576L8 4.17317L6.97424 7.28568H3.72786L6.35427 9.15787L5.33977 12.2353L8.01127 10.328H7.98873Z" fill="#3F2B2E"/>
715
723
  </svg>
716
- `, ae = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
724
+ `, he = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
717
725
  <path d="M15 6.43789H9.63446L8 1.5L6.36554 6.43789H1L5.33977 9.5387L3.69404 14.5L7.98873 11.4343L12.2834 14.5H12.306L10.6602 9.5387L15 6.43789ZM6.36554 11.5396V7.32718H6.97424L8 4.21467L9.02576 7.32718H12.2721L9.64573 9.19937L10.6602 12.2768L8 10.3812L6.36554 11.5513V11.5396Z" fill="#3F2B2E"/>
718
726
  </svg>
719
- `, le = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
727
+ `, de = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
720
728
  <path d="M15 6.39639H9.63446L8 1.4585L6.36554 6.39639H1L5.33977 9.4972L3.69404 14.4585L7.98873 11.3928L12.2834 14.4585L10.6377 9.4972L14.9775 6.39639H15ZM10.6715 12.2353L8.05636 10.3631V4.32528L9.03704 7.27398H12.2834L9.65701 9.14616L10.6715 12.2236V12.2353Z" fill="#3F2B2E"/>
721
729
  </svg>
722
- `, ce = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
730
+ `, pe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
723
731
  <path d="M15 6.43789H9.63446L8 1.5L6.36554 6.43789H1L5.33977 9.5387L3.69404 14.5L7.98873 11.4343L9.46538 12.4874L12.2834 14.5H12.306L10.6602 9.5387L15 6.43789ZM9.46538 11.4226V7.32718H12.2721L9.64573 9.19937L10.6602 12.2768L9.46538 11.4226Z" fill="#3F2B2E"/>
724
732
  </svg>
725
- `, he = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
733
+ `, ue = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
726
734
  <path d="M12.2834 14.4585L7.98873 11.3928L3.69404 14.4585L5.33977 9.4972L1 6.39639H6.36554L8 1.4585L9.63446 6.39639H15L10.6602 9.4972L12.306 14.4585H12.2834Z" fill="#3F2B2E"/>
727
735
  </svg>
728
- `, de = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
736
+ `, fe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
729
737
  <path d="M2 2L14 14" stroke="#3F2B2E"/>
730
738
  <path d="M14 2L2 14" stroke="#3F2B2E"/>
731
739
  </svg>
732
- `, pe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
740
+ `, be = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
733
741
  <path d="M7.12506 1C10.5018 1 13.2509 3.74834 13.251 7.125C13.2511 8.59738 12.7172 10.0206 11.7491 11.1299L14.8731 14.2539C15.0433 14.4253 15.0435 14.7018 14.8731 14.873C14.7913 14.9555 14.6797 15.002 14.5635 15.002C14.4475 15.0019 14.3357 14.9554 14.254 14.873L11.1309 11.749C10.0555 12.6818 8.6564 13.251 7.12506 13.251C3.7484 13.2508 1.00006 10.5017 1.00006 7.125C1.00025 3.74846 3.74852 1.00019 7.12506 1ZM7.12506 1.875C4.22971 1.87522 1.87506 4.23058 1.87506 7.12598C1.87532 10.0212 4.22987 12.3758 7.12506 12.376C10.0204 12.376 12.3758 10.0213 12.376 7.12598C12.376 4.23044 10.0206 1.875 7.12506 1.875Z" fill="#3F2B2E"/>
734
742
  </svg>
735
- `, ue = `<?xml version="1.0" encoding="utf-8"?>
743
+ `, ve = `<?xml version="1.0" encoding="utf-8"?>
736
744
  <!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
737
745
  <svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
738
746
  viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
@@ -742,7 +750,7 @@ const X = te(it), se = `<svg width="16" height="16" viewBox="0 0 16 16" fill="no
742
750
  <path class="st0" d="M27.3,19.3h-6.7v-6.7c0-0.4-0.3-0.7-0.7-0.7s-0.7,0.3-0.7,0.7v6.7h-6.7c-0.4,0-0.7,0.3-0.7,0.7s0.3,0.7,0.7,0.7
743
751
  h6.7v6.7c0,0.4,0.3,0.7,0.7,0.7s0.7-0.3,0.7-0.7v-6.7h6.7c0.4,0,0.7-0.3,0.7-0.7S27.7,19.3,27.3,19.3z"/>
744
752
  </svg>
745
- `, fe = `<?xml version="1.0" encoding="utf-8"?>
753
+ `, ge = `<?xml version="1.0" encoding="utf-8"?>
746
754
  <!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
747
755
  <svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
748
756
  viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
@@ -751,42 +759,42 @@ const X = te(it), se = `<svg width="16" height="16" viewBox="0 0 16 16" fill="no
751
759
  </style>
752
760
  <path class="st0" d="M27.3,20.7H12.7c-0.4,0-0.7-0.3-0.7-0.7s0.3-0.7,0.7-0.7h14.7c0.4,0,0.7,0.3,0.7,0.7S27.7,20.7,27.3,20.7z"/>
753
761
  </svg>
754
- `, pt = {
755
- wishlist: se,
756
- playerv: oe,
757
- chevronRight: ne,
758
- chevronLeft: re,
759
- icoPlus: ue,
760
- icoMinus: fe,
761
- "star-0": ie,
762
- "star-25": ae,
763
- "star-50": le,
764
- "star-75": ce,
765
- "star-100": he,
766
- cross: de,
767
- search: pe
762
+ `, ft = {
763
+ wishlist: ie,
764
+ playerv: re,
765
+ chevronRight: ae,
766
+ chevronLeft: le,
767
+ icoPlus: ve,
768
+ icoMinus: ge,
769
+ "star-0": ce,
770
+ "star-25": he,
771
+ "star-50": de,
772
+ "star-75": pe,
773
+ "star-100": ue,
774
+ cross: fe,
775
+ search: be
768
776
  };
769
- var ge = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, C = (n, t, e, s) => {
770
- for (var o = s > 1 ? void 0 : s ? ve(t, e) : t, i = n.length - 1, r; i >= 0; i--)
771
- (r = n[i]) && (o = (s ? r(t, e, o) : r(o)) || o);
772
- return s && o && ge(t, e, o), o;
777
+ var ye = Object.defineProperty, me = Object.getOwnPropertyDescriptor, L = (s, t, e, o) => {
778
+ for (var n = o > 1 ? void 0 : o ? me(t, e) : t, r = s.length - 1, i; r >= 0; r--)
779
+ (i = s[r]) && (n = (o ? i(t, e, n) : i(n)) || n);
780
+ return o && n && ye(t, e, n), n;
773
781
  };
774
782
  let $ = class extends m {
775
783
  constructor() {
776
784
  super(...arguments), this.bgstyle = "background-light", this.size = "medium", this.status = "empty", this.type = "button", this.strokewidth = "1", this.icon = "wishlist", this.disabled = !1;
777
785
  }
778
- updated(n) {
779
- super.updated(n), this.style.setProperty("--icon-stroke-width", this.strokewidth);
786
+ updated(s) {
787
+ super.updated(s), this.style.setProperty("--icon-stroke-width", this.strokewidth);
780
788
  }
781
789
  render() {
782
- const n = pt[this.icon] ?? "", t = `icon-${this.icon}`, e = n.replace(
790
+ const s = ft[this.icon] ?? "", t = `icon-${this.icon}`, e = s.replace(
783
791
  "<svg",
784
792
  '<svg aria-hidden="true" focusable="false" part="svg"'
785
793
  );
786
794
  return d`
787
795
  ${this.type === "span" ? d`
788
796
  <span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
789
- ${X(e)}
797
+ ${Q(e)}
790
798
  </span>
791
799
  ` : d`
792
800
  <button
@@ -795,13 +803,13 @@ let $ = class extends m {
795
803
  class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
796
804
  ?disabled="${this.disabled}"
797
805
  >
798
- ${X(e)}
806
+ ${Q(e)}
799
807
  </button>
800
808
  `}
801
809
  `;
802
810
  }
803
811
  };
804
- $.styles = E`
812
+ $.styles = A`
805
813
  :host {
806
814
  display: inline-flex;
807
815
  justify-content: center;
@@ -959,61 +967,61 @@ $.styles = E`
959
967
 
960
968
  }
961
969
  `;
962
- C([
970
+ L([
963
971
  a({ type: String, reflect: !0 })
964
972
  ], $.prototype, "bgstyle", 2);
965
- C([
973
+ L([
966
974
  a({ type: String, reflect: !0 })
967
975
  ], $.prototype, "size", 2);
968
- C([
976
+ L([
969
977
  a({ type: String, reflect: !0 })
970
978
  ], $.prototype, "status", 2);
971
- C([
979
+ L([
972
980
  a({ type: String, reflect: !0 })
973
981
  ], $.prototype, "type", 2);
974
- C([
982
+ L([
975
983
  a({ type: String })
976
984
  ], $.prototype, "strokewidth", 2);
977
- C([
985
+ L([
978
986
  a({ type: String })
979
987
  ], $.prototype, "icon", 2);
980
- C([
988
+ L([
981
989
  a({ type: Boolean, reflect: !0 })
982
990
  ], $.prototype, "disabled", 2);
983
- $ = C([
984
- U("o-icon-button")
991
+ $ = L([
992
+ H("o-icon-button")
985
993
  ], $);
986
- var be = Object.defineProperty, ye = Object.getOwnPropertyDescriptor, v = (n, t, e, s) => {
987
- for (var o = s > 1 ? void 0 : s ? ye(t, e) : t, i = n.length - 1, r; i >= 0; i--)
988
- (r = n[i]) && (o = (s ? r(t, e, o) : r(o)) || o);
989
- return s && o && be(t, e, o), o;
994
+ var $e = Object.defineProperty, we = Object.getOwnPropertyDescriptor, v = (s, t, e, o) => {
995
+ for (var n = o > 1 ? void 0 : o ? we(t, e) : t, r = s.length - 1, i; r >= 0; r--)
996
+ (i = s[r]) && (n = (o ? i(t, e, n) : i(n)) || n);
997
+ return o && n && $e(t, e, n), n;
990
998
  };
991
- const me = Jt(m);
992
- let u = class extends me {
999
+ const xe = te(m);
1000
+ let u = class extends xe {
993
1001
  constructor() {
994
1002
  super(...arguments), this.type = "submit", this.value = "", this.variant = "primary", this.text = "", this.textsecond = "", this.fullwidth = !1, this.disabled = !1, this.iconstrokewidth = "1", this.icon = "", this.startIcon = !1, this.endIcon = !1, this.iconSize = "small", this.panelTarget = "", this.href = "", this.target = "";
995
1003
  }
996
1004
  get name() {
997
1005
  return this.getAttribute("name") ?? "";
998
1006
  }
999
- set name(n) {
1000
- this.setAttribute("name", n);
1007
+ set name(s) {
1008
+ this.setAttribute("name", s);
1001
1009
  }
1002
1010
  get form() {
1003
- return this[dt].form;
1011
+ return this[ut].form;
1004
1012
  }
1005
1013
  handleClick() {
1006
1014
  if (this.panelTarget) {
1007
- const n = document.getElementById(this.panelTarget);
1008
- n != null && n.openPanel && typeof n.openPanel == "function" ? n.openPanel() : console.warn(`[o-button] No side panel with id="${this.panelTarget}" found or it does not have an openPanel method.`);
1015
+ const s = document.getElementById(this.panelTarget);
1016
+ s != null && s.openPanel && typeof s.openPanel == "function" ? s.openPanel() : console.warn(`[o-button] No side panel with id="${this.panelTarget}" found or it does not have an openPanel method.`);
1009
1017
  }
1010
1018
  }
1011
1019
  render() {
1012
1020
  return this.href ? this.renderLink() : this.renderButton();
1013
1021
  }
1014
- renderIcon(n) {
1022
+ renderIcon(s) {
1015
1023
  return this.icon ? d`<o-icon-button
1016
- class=${n === "start" ? "icon-start" : "icon-end"}
1024
+ class=${s === "start" ? "icon-start" : "icon-end"}
1017
1025
  icon=${this.icon}
1018
1026
  bgstyle="${this.variant === "primary" ? "none-light" : "none-contrast"}"
1019
1027
  size="${this.iconSize}"
@@ -1024,11 +1032,11 @@ let u = class extends me {
1024
1032
  ></o-icon-button>` : h;
1025
1033
  }
1026
1034
  renderButton() {
1027
- const n = this.text || this.textsecond;
1035
+ const s = this.text || this.textsecond;
1028
1036
  return d`
1029
1037
  <button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick}>
1030
1038
  ${this.startIcon ? this.renderIcon("start") : h}
1031
- ${n ? d`
1039
+ ${s ? d`
1032
1040
  ${this.text ? d`<span>${this.text}</span>` : h}
1033
1041
  ${this.textsecond ? d`<span>${this.textsecond}</span>` : h}
1034
1042
  ` : d`<slot></slot>`}
@@ -1037,7 +1045,7 @@ let u = class extends me {
1037
1045
  `;
1038
1046
  }
1039
1047
  renderLink() {
1040
- const n = this.text || this.textsecond;
1048
+ const s = this.text || this.textsecond;
1041
1049
  return d`
1042
1050
  <a
1043
1051
  href=${this.href}
@@ -1046,7 +1054,7 @@ let u = class extends me {
1046
1054
  ?disabled=${this.disabled}
1047
1055
  >
1048
1056
  ${this.startIcon ? this.renderIcon("start") : h}
1049
- ${n ? d`
1057
+ ${s ? d`
1050
1058
  ${this.text ? d`<span>${this.text}</span>` : h}
1051
1059
  ${this.textsecond ? d`<span>${this.textsecond}</span>` : h}
1052
1060
  ` : d`<slot></slot>`}
@@ -1055,9 +1063,9 @@ let u = class extends me {
1055
1063
  `;
1056
1064
  }
1057
1065
  };
1058
- Qt(u);
1066
+ ee(u);
1059
1067
  u.formAssociated = !0;
1060
- u.styles = E`
1068
+ u.styles = A`
1061
1069
  :host {
1062
1070
  --button-border: transparent;
1063
1071
  cursor: pointer;
@@ -1156,7 +1164,7 @@ u.styles = E`
1156
1164
  }
1157
1165
 
1158
1166
  .button:focus-visible {
1159
- ${Xt};
1167
+ ${Yt};
1160
1168
  }
1161
1169
 
1162
1170
  span + span::before {
@@ -1235,14 +1243,14 @@ v([
1235
1243
  a({ type: String })
1236
1244
  ], u.prototype, "target", 2);
1237
1245
  u = v([
1238
- U("o-button")
1246
+ H("o-button")
1239
1247
  ], u);
1240
- var $e = Object.defineProperty, we = Object.getOwnPropertyDescriptor, Q = (n, t, e, s) => {
1241
- for (var o = s > 1 ? void 0 : s ? we(t, e) : t, i = n.length - 1, r; i >= 0; i--)
1242
- (r = n[i]) && (o = (s ? r(t, e, o) : r(o)) || o);
1243
- return s && o && $e(t, e, o), o;
1248
+ var _e = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, tt = (s, t, e, o) => {
1249
+ for (var n = o > 1 ? void 0 : o ? Ae(t, e) : t, r = s.length - 1, i; r >= 0; r--)
1250
+ (i = s[r]) && (n = (o ? i(t, e, n) : i(n)) || n);
1251
+ return o && n && _e(t, e, n), n;
1244
1252
  };
1245
- let T = class extends m {
1253
+ let U = class extends m {
1246
1254
  constructor() {
1247
1255
  super(...arguments), this.status = "empty", this.ariaDescribedBy = "a-product-name", this.label = "Add to wishlist", this.toggleStatus = () => {
1248
1256
  this.status = this.status === "empty" ? "filled" : "empty", this.setAttribute("aria-pressed", String(this.status === "filled")), this.dispatchEvent(new CustomEvent("wishlist-toggle", {
@@ -1258,32 +1266,32 @@ let T = class extends m {
1258
1266
  firstUpdated() {
1259
1267
  this.addEventListener("click", this.toggleStatus), this.addEventListener("keydown", this.handleKeydown);
1260
1268
  }
1261
- handleKeydown(n) {
1262
- (n.key === "Enter" || n.key === " ") && (n.preventDefault(), this.toggleStatus());
1269
+ handleKeydown(s) {
1270
+ (s.key === "Enter" || s.key === " ") && (s.preventDefault(), this.toggleStatus());
1263
1271
  }
1264
1272
  render() {
1265
- const n = pt.wishlist.replace(
1273
+ const s = ft.wishlist.replace(
1266
1274
  "<svg",
1267
1275
  '<svg aria-hidden="true" focusable="false" part="svg"'
1268
1276
  );
1269
1277
  return d`
1270
1278
  <button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
1271
1279
  <span class="sr-only">${this.label}</span>
1272
- ${X(n)}
1280
+ ${Q(s)}
1273
1281
  </button>
1274
1282
  `;
1275
1283
  }
1276
- setStatus(n) {
1277
- this.status = n, this.setAttribute("aria-pressed", String(this.status === "filled")), this.requestUpdate();
1284
+ setStatus(s) {
1285
+ this.status = s, this.setAttribute("aria-pressed", String(this.status === "filled")), this.requestUpdate();
1278
1286
  }
1279
- setAriaDescribedBy(n) {
1280
- this.ariaDescribedBy = n, this.requestUpdate();
1287
+ setAriaDescribedBy(s) {
1288
+ this.ariaDescribedBy = s, this.requestUpdate();
1281
1289
  }
1282
- setLabel(n) {
1283
- this.label = n, this.requestUpdate();
1290
+ setLabel(s) {
1291
+ this.label = s, this.requestUpdate();
1284
1292
  }
1285
1293
  };
1286
- T.styles = E`
1294
+ U.styles = A`
1287
1295
  :host {
1288
1296
  display: inline-flex;
1289
1297
  justify-content: center;
@@ -1343,24 +1351,24 @@ T.styles = E`
1343
1351
  white-space: nowrap !important;
1344
1352
  }
1345
1353
  `;
1346
- Q([
1354
+ tt([
1347
1355
  a({ type: String, reflect: !0 })
1348
- ], T.prototype, "status", 2);
1349
- Q([
1356
+ ], U.prototype, "status", 2);
1357
+ tt([
1350
1358
  a({ type: String, reflect: !0 })
1351
- ], T.prototype, "ariaDescribedBy", 2);
1352
- Q([
1359
+ ], U.prototype, "ariaDescribedBy", 2);
1360
+ tt([
1353
1361
  a({ type: String, reflect: !0 })
1354
- ], T.prototype, "label", 2);
1355
- T = Q([
1356
- U("o-wishlist-button")
1357
- ], T);
1358
- var _e = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, H = (n, t, e, s) => {
1359
- for (var o = s > 1 ? void 0 : s ? xe(t, e) : t, i = n.length - 1, r; i >= 0; i--)
1360
- (r = n[i]) && (o = (s ? r(t, e, o) : r(o)) || o);
1361
- return s && o && _e(t, e, o), o;
1362
+ ], U.prototype, "label", 2);
1363
+ U = tt([
1364
+ H("o-wishlist-button")
1365
+ ], U);
1366
+ var Se = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, M = (s, t, e, o) => {
1367
+ for (var n = o > 1 ? void 0 : o ? Ee(t, e) : t, r = s.length - 1, i; r >= 0; r--)
1368
+ (i = s[r]) && (n = (o ? i(t, e, n) : i(n)) || n);
1369
+ return o && n && Se(t, e, n), n;
1362
1370
  };
1363
- let _ = class extends m {
1371
+ let x = class extends m {
1364
1372
  constructor() {
1365
1373
  super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
1366
1374
  }
@@ -1390,7 +1398,7 @@ let _ = class extends m {
1390
1398
  `;
1391
1399
  }
1392
1400
  };
1393
- _.styles = E`
1401
+ x.styles = A`
1394
1402
  :host([template="standard"]) a {
1395
1403
  color: var(--color-content-action-secondary);
1396
1404
  font-size: var(--font-size-200);
@@ -1478,52 +1486,52 @@ _.styles = E`
1478
1486
  }
1479
1487
  /* End of underline effect */
1480
1488
  `;
1481
- H([
1489
+ M([
1482
1490
  a({ type: String })
1483
- ], _.prototype, "href", 2);
1484
- H([
1491
+ ], x.prototype, "href", 2);
1492
+ M([
1485
1493
  a({ type: String })
1486
- ], _.prototype, "target", 2);
1487
- H([
1494
+ ], x.prototype, "target", 2);
1495
+ M([
1488
1496
  a({ type: String, reflect: !0 })
1489
- ], _.prototype, "template", 2);
1490
- H([
1497
+ ], x.prototype, "template", 2);
1498
+ M([
1491
1499
  a({ type: Boolean, reflect: !0 })
1492
- ], _.prototype, "inverse", 2);
1493
- H([
1500
+ ], x.prototype, "inverse", 2);
1501
+ M([
1494
1502
  a({ type: Boolean, reflect: !0 })
1495
- ], _.prototype, "endIcon", 2);
1496
- H([
1503
+ ], x.prototype, "endIcon", 2);
1504
+ M([
1497
1505
  a({ type: Boolean, reflect: !0 })
1498
- ], _.prototype, "reverseEndIcon", 2);
1499
- _ = H([
1500
- U("o-link")
1501
- ], _);
1502
- var Ae = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, Y = (n, t, e, s) => {
1503
- for (var o = s > 1 ? void 0 : s ? Se(t, e) : t, i = n.length - 1, r; i >= 0; i--)
1504
- (r = n[i]) && (o = (s ? r(t, e, o) : r(o)) || o);
1505
- return s && o && Ae(t, e, o), o;
1506
+ ], x.prototype, "reverseEndIcon", 2);
1507
+ x = M([
1508
+ H("o-link")
1509
+ ], x);
1510
+ var Ce = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, et = (s, t, e, o) => {
1511
+ for (var n = o > 1 ? void 0 : o ? Le(t, e) : t, r = s.length - 1, i; r >= 0; r--)
1512
+ (i = s[r]) && (n = (o ? i(t, e, n) : i(n)) || n);
1513
+ return o && n && Ce(t, e, n), n;
1506
1514
  };
1507
- let z = class extends m {
1515
+ let N = class extends m {
1508
1516
  constructor() {
1509
1517
  super(...arguments), this.rating = 0;
1510
1518
  }
1511
1519
  getStarKeys() {
1512
- const n = [];
1520
+ const s = [];
1513
1521
  for (let t = 0; t < 5; t++) {
1514
1522
  const e = this.rating - t;
1515
- let s;
1516
- e >= 1 ? s = 100 : e <= 0 ? s = 0 : s = Math.round(e * 100 / 25) * 25, n.push(`star-${s}`);
1523
+ let o;
1524
+ e >= 1 ? o = 100 : e <= 0 ? o = 0 : o = Math.round(e * 100 / 25) * 25, s.push(`star-${o}`);
1517
1525
  }
1518
- return n;
1526
+ return s;
1519
1527
  }
1520
1528
  render() {
1521
- const n = this.getStarKeys();
1529
+ const s = this.getStarKeys();
1522
1530
  return d`
1523
1531
  <div class="rating">
1524
1532
  <div class="stars">
1525
- ${n.map(
1526
- (t) => d`<span class="star">${X(pt[t] ?? "")}</span>`
1533
+ ${s.map(
1534
+ (t) => d`<span class="star">${Q(ft[t] ?? "")}</span>`
1527
1535
  )}
1528
1536
  </div>
1529
1537
  ${this.reviewCount != null && this.href != null ? d`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
@@ -1531,7 +1539,7 @@ let z = class extends m {
1531
1539
  `;
1532
1540
  }
1533
1541
  };
1534
- z.styles = E`
1542
+ N.styles = A`
1535
1543
  svg {
1536
1544
  width: 12px;
1537
1545
  height: 12px;
@@ -1565,27 +1573,27 @@ z.styles = E`
1565
1573
  cursor: pointer;
1566
1574
  }
1567
1575
  `;
1568
- Y([
1576
+ et([
1569
1577
  a({ type: Number })
1570
- ], z.prototype, "rating", 2);
1571
- Y([
1578
+ ], N.prototype, "rating", 2);
1579
+ et([
1572
1580
  a({ type: String })
1573
- ], z.prototype, "reviewCount", 2);
1574
- Y([
1581
+ ], N.prototype, "reviewCount", 2);
1582
+ et([
1575
1583
  a({ type: String })
1576
- ], z.prototype, "href", 2);
1577
- z = Y([
1578
- U("o-rating")
1579
- ], z);
1580
- var Ee = Object.defineProperty, Ce = Object.getOwnPropertyDescriptor, y = (n, t, e, s) => {
1581
- for (var o = s > 1 ? void 0 : s ? Ce(t, e) : t, i = n.length - 1, r; i >= 0; i--)
1582
- (r = n[i]) && (o = (s ? r(t, e, o) : r(o)) || o);
1583
- return s && o && Ee(t, e, o), o;
1584
+ ], N.prototype, "href", 2);
1585
+ N = et([
1586
+ H("o-rating")
1587
+ ], N);
1588
+ var ke = Object.defineProperty, Pe = Object.getOwnPropertyDescriptor, y = (s, t, e, o) => {
1589
+ for (var n = o > 1 ? void 0 : o ? Pe(t, e) : t, r = s.length - 1, i; r >= 0; r--)
1590
+ (i = s[r]) && (n = (o ? i(t, e, n) : i(n)) || n);
1591
+ return o && n && ke(t, e, n), n;
1584
1592
  };
1585
- let b = class extends m {
1593
+ let g = class extends m {
1586
1594
  constructor() {
1587
- super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !1, this.headerTitle = "", this.closeButtonLabel = "Close the modal", this.firstButtonLabel = "Close", this.firstButtonVariant = "primary", this.secondaryButtonLabel = "", this.secondaryButtonVariant = "secondary", this.disablePortal = !1, this.previousFocusedElement = null, this.handleKeyDown = (n) => {
1588
- this.open && (n.key === "Escape" ? this.closePanel() : n.key === "Tab" && this.trapFocus(n));
1595
+ super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !1, this.headerTitle = "", this.closeButtonLabel = "Close the modal", this.firstButtonLabel = "Close", this.firstButtonVariant = "primary", this.secondaryButtonLabel = "", this.secondaryButtonVariant = "secondary", this.disablePortal = !1, this.previousFocusedElement = null, this.handleKeyDown = (s) => {
1596
+ this.open && (s.key === "Escape" ? this.closePanel() : s.key === "Tab" && this.trapFocus(s));
1589
1597
  };
1590
1598
  }
1591
1599
  connectedCallback() {
@@ -1594,29 +1602,29 @@ let b = class extends m {
1594
1602
  disconnectedCallback() {
1595
1603
  document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), window.removeEventListener("keydown", this.handleKeyDown), super.disconnectedCallback();
1596
1604
  }
1597
- trapFocus(n) {
1605
+ trapFocus(s) {
1598
1606
  const t = this.getFocusableElements();
1599
1607
  if (t.length === 0) return;
1600
- const e = t[0], s = t[t.length - 1];
1601
- n.shiftKey && document.activeElement === e ? (n.preventDefault(), s.focus()) : !n.shiftKey && document.activeElement === s && (n.preventDefault(), e.focus());
1608
+ const e = t[0], o = t[t.length - 1];
1609
+ s.shiftKey && document.activeElement === e ? (s.preventDefault(), o.focus()) : !s.shiftKey && document.activeElement === o && (s.preventDefault(), e.focus());
1602
1610
  }
1603
1611
  getFocusableElements() {
1604
- const n = this.renderRoot.querySelector(".panel");
1605
- return n ? Array.from(
1606
- n.querySelectorAll(
1612
+ const s = this.renderRoot.querySelector(".panel");
1613
+ return s ? Array.from(
1614
+ s.querySelectorAll(
1607
1615
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
1608
1616
  )
1609
1617
  ).filter((t) => !t.hasAttribute("disabled")) : [];
1610
1618
  }
1611
1619
  openPanel() {
1612
1620
  this.previousFocusedElement = document.activeElement, this.open = !0, document.body.style.overflow = "hidden", document.body.setAttribute("data-side-panel", "open"), this.updateComplete.then(() => {
1613
- const n = this.getFocusableElements()[0];
1614
- n == null || n.focus();
1621
+ const s = this.getFocusableElements()[0];
1622
+ s == null || s.focus();
1615
1623
  });
1616
1624
  }
1617
1625
  closePanel() {
1618
- var n;
1619
- this.open = !1, document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), (n = this.previousFocusedElement) == null || n.focus(), this.dispatchEvent(
1626
+ var s;
1627
+ this.open = !1, document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), (s = this.previousFocusedElement) == null || s.focus(), this.dispatchEvent(
1620
1628
  new CustomEvent("close", { bubbles: !0, composed: !0 })
1621
1629
  );
1622
1630
  }
@@ -1672,7 +1680,7 @@ let b = class extends m {
1672
1680
  `;
1673
1681
  }
1674
1682
  };
1675
- b.styles = E`
1683
+ g.styles = A`
1676
1684
  :host {
1677
1685
  position: fixed;
1678
1686
  top: 0;
@@ -1773,40 +1781,191 @@ b.styles = E`
1773
1781
  `;
1774
1782
  y([
1775
1783
  a({ type: Boolean, reflect: !0 })
1776
- ], b.prototype, "open", 2);
1784
+ ], g.prototype, "open", 2);
1777
1785
  y([
1778
1786
  a({ type: Boolean, reflect: !0 })
1779
- ], b.prototype, "showHeader", 2);
1787
+ ], g.prototype, "showHeader", 2);
1780
1788
  y([
1781
1789
  a({ type: Boolean, reflect: !0 })
1782
- ], b.prototype, "showFooter", 2);
1790
+ ], g.prototype, "showFooter", 2);
1783
1791
  y([
1784
1792
  a({ type: String, reflect: !0 })
1785
- ], b.prototype, "headerTitle", 2);
1793
+ ], g.prototype, "headerTitle", 2);
1786
1794
  y([
1787
1795
  a({ type: String, reflect: !0 })
1788
- ], b.prototype, "closeButtonLabel", 2);
1796
+ ], g.prototype, "closeButtonLabel", 2);
1789
1797
  y([
1790
1798
  a({ type: String, reflect: !0 })
1791
- ], b.prototype, "firstButtonLabel", 2);
1799
+ ], g.prototype, "firstButtonLabel", 2);
1792
1800
  y([
1793
1801
  a({ type: String, reflect: !0 })
1794
- ], b.prototype, "firstButtonVariant", 2);
1802
+ ], g.prototype, "firstButtonVariant", 2);
1795
1803
  y([
1796
1804
  a({ type: Function })
1797
- ], b.prototype, "onFirstButtonClick", 2);
1805
+ ], g.prototype, "onFirstButtonClick", 2);
1798
1806
  y([
1799
1807
  a({ type: String, reflect: !0 })
1800
- ], b.prototype, "secondaryButtonLabel", 2);
1808
+ ], g.prototype, "secondaryButtonLabel", 2);
1801
1809
  y([
1802
1810
  a({ type: String, reflect: !0 })
1803
- ], b.prototype, "secondaryButtonVariant", 2);
1811
+ ], g.prototype, "secondaryButtonVariant", 2);
1804
1812
  y([
1805
1813
  a({ type: Function })
1806
- ], b.prototype, "onSecondaryButtonClick", 2);
1814
+ ], g.prototype, "onSecondaryButtonClick", 2);
1807
1815
  y([
1808
1816
  a({ type: Boolean, reflect: !0 })
1809
- ], b.prototype, "disablePortal", 2);
1810
- b = y([
1811
- U("o-side-panel")
1812
- ], b);
1817
+ ], g.prototype, "disablePortal", 2);
1818
+ g = y([
1819
+ H("o-side-panel")
1820
+ ], g);
1821
+ var Be = Object.defineProperty, Ie = Object.getOwnPropertyDescriptor, T = (s, t, e, o) => {
1822
+ for (var n = o > 1 ? void 0 : o ? Ie(t, e) : t, r = s.length - 1, i; r >= 0; r--)
1823
+ (i = s[r]) && (n = (o ? i(t, e, n) : i(n)) || n);
1824
+ return o && n && Be(t, e, n), n;
1825
+ };
1826
+ let _ = class extends m {
1827
+ constructor() {
1828
+ super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.focusedIndex = 0;
1829
+ }
1830
+ handleKeyDown(s) {
1831
+ s.key === "ArrowRight" ? (s.preventDefault(), this.focusNext()) : s.key === "ArrowLeft" ? (s.preventDefault(), this.focusPrevious()) : (s.key === "Enter" || s.key === " ") && (s.preventDefault(), this.selectThumbnail(this.focusedIndex));
1832
+ }
1833
+ focusNext() {
1834
+ let s = this.focusedIndex + 1;
1835
+ for (; this.disabledIndexes.includes(s) && s < this.thumbnails.length; )
1836
+ s++;
1837
+ s < this.thumbnails.length && (this.focusedIndex = s, this.focusThumbnail(s));
1838
+ }
1839
+ focusPrevious() {
1840
+ let s = this.focusedIndex - 1;
1841
+ for (; this.disabledIndexes.includes(s) && s >= 0; )
1842
+ s--;
1843
+ s >= 0 && (this.focusedIndex = s, this.focusThumbnail(s));
1844
+ }
1845
+ focusThumbnail(s) {
1846
+ const t = this.renderRoot.querySelector(`[data-index="${s}"]`);
1847
+ t == null || t.focus();
1848
+ }
1849
+ selectThumbnail(s) {
1850
+ this.disabledIndexes.includes(s) || (this.activeIndex = s, this.dispatchEvent(new CustomEvent("thumbnail-select", { detail: { index: s } })));
1851
+ }
1852
+ render() {
1853
+ return d`
1854
+ <div class="scroll-container" style="max-width: ${this.maxWidth};">
1855
+ ${this.thumbnails.map((s, t) => {
1856
+ const e = this.disabledIndexes.includes(t), o = this.activeIndex === t, n = s.type === "video";
1857
+ return d`
1858
+ <div class="thumb-wrapper">
1859
+ <button
1860
+ class="thumb"
1861
+ data-index="${t}"
1862
+ ?disabled=${e}
1863
+ aria-selected=${o}
1864
+ tabindex="${this.focusedIndex === t ? 0 : -1}"
1865
+ @click=${() => this.selectThumbnail(t)}
1866
+ @keydown=${this.handleKeyDown}
1867
+ >
1868
+ <img src="${s.src}" />
1869
+ </button>
1870
+ ${n && this.playIcon ? d`<div class="play-icon-wrapper">${this.playIcon}</div>` : null}
1871
+ </div>
1872
+ `;
1873
+ })}
1874
+ </div>
1875
+ `;
1876
+ }
1877
+ };
1878
+ _.styles = A`
1879
+ :host {
1880
+ display: flex;
1881
+ gap: 8px;
1882
+ }
1883
+
1884
+ .thumb-wrapper {
1885
+ position: relative;
1886
+ display: inline-block;
1887
+ }
1888
+
1889
+ .thumb {
1890
+ width: 56px;
1891
+ height: 70px;
1892
+ background-size: cover;
1893
+ background-position: center;
1894
+ border: 1px solid var(--color-border-normal, #ccc);
1895
+ opacity: 1;
1896
+ cursor: pointer;
1897
+ outline: none;
1898
+ transition: border 0.2s, opacity 0.2s;
1899
+ padding: 0;
1900
+ margin: 0;
1901
+
1902
+ img {
1903
+ width: 100%;
1904
+ }
1905
+ }
1906
+
1907
+ .thumb[aria-selected="true"] {
1908
+ border: 2px solid black;
1909
+ }
1910
+
1911
+ .thumb[disabled] {
1912
+ border: 1px solid var(--color-border-disabled, #eee);
1913
+ opacity: 0.4;
1914
+ pointer-events: none;
1915
+ }
1916
+
1917
+ .thumb:focus-visible {
1918
+ outline: 2px solid black;
1919
+ }
1920
+
1921
+ .play-icon-wrapper {
1922
+ position: absolute;
1923
+ left: 50%;
1924
+ top: 50%;
1925
+ transform: translate(-50%, -50%);
1926
+ pointer-events: none;
1927
+ }
1928
+
1929
+ .scroll-container {
1930
+ display: flex;
1931
+ gap: 8px;
1932
+ overflow-x: auto;
1933
+ padding-bottom: 4px;
1934
+ scrollbar-width: thin;
1935
+ scrollbar-color: var(--color-border-normal, #ccc) transparent;
1936
+ }
1937
+
1938
+ .scroll-container::-webkit-scrollbar {
1939
+ height: 6px;
1940
+ }
1941
+
1942
+ .scroll-container::-webkit-scrollbar-track {
1943
+ background: transparent;
1944
+ }
1945
+
1946
+ .scroll-container::-webkit-scrollbar-thumb {
1947
+ background-color: var(--color-border-normal, #ccc);
1948
+ border-radius: 3px;
1949
+ }
1950
+ `;
1951
+ T([
1952
+ a({ type: Array })
1953
+ ], _.prototype, "thumbnails", 2);
1954
+ T([
1955
+ a({ type: Number })
1956
+ ], _.prototype, "activeIndex", 2);
1957
+ T([
1958
+ a({ type: Array })
1959
+ ], _.prototype, "disabledIndexes", 2);
1960
+ T([
1961
+ a({ type: Object })
1962
+ ], _.prototype, "playIcon", 2);
1963
+ T([
1964
+ a({ type: String })
1965
+ ], _.prototype, "maxWidth", 2);
1966
+ T([
1967
+ Qt()
1968
+ ], _.prototype, "focusedIndex", 2);
1969
+ _ = T([
1970
+ H("thumbnail-navigation")
1971
+ ], _);