@florid-kit/components 0.4.8 → 0.4.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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 X = globalThis, ht = X.ShadowRoot && (X.ShadyCSS === void 0 || X.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, dt = Symbol(), ft = /* @__PURE__ */ new WeakMap();
6
+ const X = globalThis, ht = X.ShadowRoot && (X.ShadyCSS === void 0 || X.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, dt = Symbol(), vt = /* @__PURE__ */ new WeakMap();
7
7
  let St = class {
8
- constructor(t, e, s) {
9
- if (this._$cssResult$ = !0, s !== dt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
8
+ constructor(t, e, o) {
9
+ if (this._$cssResult$ = !0, o !== dt) 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
15
  if (ht && t === void 0) {
16
- const s = e !== void 0 && e.length === 1;
17
- s && (t = ft.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && ft.set(e, t));
16
+ const o = e !== void 0 && e.length === 1;
17
+ o && (t = vt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), o && vt.set(e, t));
18
18
  }
19
19
  return t;
20
20
  }
@@ -23,21 +23,21 @@ let St = class {
23
23
  }
24
24
  };
25
25
  const It = (n) => new St(typeof n == "string" ? n : n + "", void 0, dt), A = (n, ...t) => {
26
- const e = n.length === 1 ? n[0] : t.reduce((s, o, r) => s + ((i) => {
26
+ const e = n.length === 1 ? n[0] : t.reduce((o, s, r) => o + ((i) => {
27
27
  if (i._$cssResult$ === !0) return i.cssText;
28
28
  if (typeof i == "number") return i;
29
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
- })(o) + n[r + 1], n[0]);
30
+ })(s) + n[r + 1], n[0]);
31
31
  return new St(e, n, dt);
32
32
  }, Bt = (n, t) => {
33
33
  if (ht) n.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 = X.litNonce;
36
- o !== void 0 && s.setAttribute("nonce", o), s.textContent = e.cssText, n.appendChild(s);
35
+ const o = document.createElement("style"), s = X.litNonce;
36
+ s !== void 0 && o.setAttribute("nonce", s), o.textContent = e.cssText, n.appendChild(o);
37
37
  }
38
38
  }, bt = ht ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
39
39
  let e = "";
40
- for (const s of t.cssRules) e += s.cssText;
40
+ for (const o of t.cssRules) e += o.cssText;
41
41
  return It(e);
42
42
  })(n) : n;
43
43
  /**
@@ -45,7 +45,7 @@ const It = (n) => new St(typeof n == "string" ? n : n + "", void 0, dt), A = (n,
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: Ot, defineProperty: zt, getOwnPropertyDescriptor: Mt, getOwnPropertyNames: Ht, getOwnPropertySymbols: Tt, getPrototypeOf: Dt } = Object, C = globalThis, gt = C.trustedTypes, Ut = gt ? gt.emptyScript : "", st = C.reactiveElementPolyfillSupport, R = (n, t) => n, J = { toAttribute(n, t) {
48
+ const { is: Ot, defineProperty: zt, getOwnPropertyDescriptor: Ht, getOwnPropertyNames: Mt, getOwnPropertySymbols: Tt, getPrototypeOf: Dt } = Object, C = globalThis, gt = C.trustedTypes, Ut = gt ? gt.emptyScript : "", ot = C.reactiveElementPolyfillSupport, R = (n, t) => n, J = { toAttribute(n, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
51
  n = n ? Ut : null;
@@ -84,19 +84,19 @@ let T = class extends HTMLElement {
84
84
  }
85
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 && zt(this.prototype, t, o);
87
+ const o = Symbol(), s = this.getPropertyDescriptor(t, o, e);
88
+ s !== void 0 && zt(this.prototype, t, s);
89
89
  }
90
90
  }
91
- static getPropertyDescriptor(t, e, s) {
92
- const { get: o, set: r } = Mt(this.prototype, t) ?? { get() {
91
+ static getPropertyDescriptor(t, e, o) {
92
+ const { get: s, set: r } = Ht(this.prototype, t) ?? { get() {
93
93
  return this[e];
94
94
  }, set(i) {
95
95
  this[e] = i;
96
96
  } };
97
- return { get: o, set(i) {
98
- const c = o == null ? void 0 : o.call(this);
99
- r == null || r.call(this, i), this.requestUpdate(t, c, s);
97
+ return { get: s, set(i) {
98
+ const c = s == null ? void 0 : s.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) {
@@ -110,32 +110,32 @@ let T = class extends HTMLElement {
110
110
  static finalize() {
111
111
  if (this.hasOwnProperty(R("finalized"))) return;
112
112
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(R("properties"))) {
113
- const e = this.properties, s = [...Ht(e), ...Tt(e)];
114
- for (const o of s) this.createProperty(o, e[o]);
113
+ const e = this.properties, o = [...Mt(e), ...Tt(e)];
114
+ for (const s of o) this.createProperty(s, e[s]);
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, s] of e) this.elementProperties.set(o, s);
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 s = this._$Eu(e, o);
124
+ s !== void 0 && this._$Eh.set(s, 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(bt(o));
131
+ const o = new Set(t.flat(1 / 0).reverse());
132
+ for (const s of o) e.unshift(bt(s));
133
133
  } else t !== void 0 && e.push(bt(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,7 +154,7 @@ let T = 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() {
@@ -164,8 +164,8 @@ let T = class extends HTMLElement {
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 T = 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
184
  var r;
185
- const s = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, s);
186
- if (o !== void 0 && s.reflect === !0) {
187
- const i = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : J).toAttribute(e, s.type);
188
- this._$Em = t, i == null ? this.removeAttribute(o) : this.setAttribute(o, i), this._$Em = null;
185
+ const o = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, o);
186
+ if (s !== void 0 && o.reflect === !0) {
187
+ const i = (((r = o.converter) == null ? void 0 : r.toAttribute) !== void 0 ? o.converter : J).toAttribute(e, o.type);
188
+ this._$Em = t, i == null ? this.removeAttribute(s) : this.setAttribute(s, i), this._$Em = null;
189
189
  }
190
190
  }
191
191
  _$AK(t, e) {
192
192
  var r, i;
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 } : ((r = c.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? c.converter : J;
196
- this._$Em = o, this[o] = l.fromAttribute(e, c.type) ?? ((i = this._$Ej) == null ? void 0 : i.get(o)) ?? null, this._$Em = null;
193
+ const o = this.constructor, s = o._$Eh.get(t);
194
+ if (s !== void 0 && this._$Em !== s) {
195
+ const c = o.getPropertyOptions(s), l = typeof c.converter == "function" ? { fromAttribute: c.converter } : ((r = c.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? c.converter : J;
196
+ this._$Em = s, this[s] = l.fromAttribute(e, c.type) ?? ((i = this._$Ej) == null ? void 0 : i.get(s)) ?? null, this._$Em = null;
197
197
  }
198
198
  }
199
- requestUpdate(t, e, s) {
200
- var o;
199
+ requestUpdate(t, e, o) {
200
+ var s;
201
201
  if (t !== void 0) {
202
202
  const r = this.constructor, i = this[t];
203
- if (s ?? (s = r.getPropertyOptions(t)), !((s.hasChanged ?? pt)(i, e) || s.useDefault && s.reflect && i === ((o = this._$Ej) == null ? void 0 : o.get(t)) && !this.hasAttribute(r._$Eu(t, s)))) return;
204
- this.C(t, e, s);
203
+ if (o ?? (o = r.getPropertyOptions(t)), !((o.hasChanged ?? pt)(i, e) || o.useDefault && o.reflect && i === ((s = this._$Ej) == null ? void 0 : s.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: r }, i) {
209
- s && !(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 || 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: s, 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)), s === !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,15 +222,15 @@ let T = 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
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 [r, i] of o) {
232
+ const s = this.constructor.elementProperties;
233
+ if (s.size > 0) for (const [r, i] of s) {
234
234
  const { wrapped: c } = i, l = this[r];
235
235
  c !== !0 || this._$AL.has(r) || l === void 0 || this.C(r, void 0, i, l);
236
236
  }
@@ -238,12 +238,12 @@ let T = class extends HTMLElement {
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) => {
241
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (o = this._$EO) == null || o.forEach((s) => {
242
242
  var r;
243
- return (r = o.hostUpdate) == null ? void 0 : r.call(o);
243
+ return (r = s.hostUpdate) == null ? void 0 : r.call(s);
244
244
  }), this.update(e)) : this._$EM();
245
- } catch (o) {
246
- throw t = !1, this._$EM(), o;
245
+ } catch (s) {
246
+ throw t = !1, this._$EM(), s;
247
247
  }
248
248
  t && this._$AE(e);
249
249
  }
@@ -251,9 +251,9 @@ let T = 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 s;
256
+ return (s = o.hostUpdated) == null ? void 0 : s.call(o);
257
257
  }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
258
258
  }
259
259
  _$EM() {
@@ -276,74 +276,74 @@ let T = class extends HTMLElement {
276
276
  firstUpdated(t) {
277
277
  }
278
278
  };
279
- T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[R("elementProperties")] = /* @__PURE__ */ new Map(), T[R("finalized")] = /* @__PURE__ */ new Map(), st == null || st({ ReactiveElement: T }), (C.reactiveElementVersions ?? (C.reactiveElementVersions = [])).push("2.1.0");
279
+ T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[R("elementProperties")] = /* @__PURE__ */ new Map(), T[R("finalized")] = /* @__PURE__ */ new Map(), ot == null || ot({ ReactiveElement: T }), (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 V = globalThis, Q = V.trustedTypes, mt = Q ? Q.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Ct = "$lit$", S = `lit$${Math.random().toFixed(9).slice(2)}$`, Lt = "?" + S, Nt = `<${Lt}>`, B = document, F = () => B.createComment(""), q = (n) => n === null || typeof n != "object" && typeof n != "function", ut = Array.isArray, jt = (n) => ut(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", ot = `[
286
- \f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $t = /-->/g, wt = />/g, P = RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^
285
+ const V = globalThis, Q = V.trustedTypes, mt = Q ? Q.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Ct = "$lit$", S = `lit$${Math.random().toFixed(9).slice(2)}$`, Lt = "?" + S, Nt = `<${Lt}>`, B = document, F = () => B.createComment(""), q = (n) => n === null || typeof n != "object" && typeof n != "function", ut = Array.isArray, jt = (n) => ut(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", st = `[
286
+ \f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $t = /-->/g, wt = />/g, P = RegExp(`>|${st}(?:([^\\s"'>=/]+)(${st}*=${st}*(?:[^
287
287
  \f\r"'\`<>=]|("|')|))|$)`, "g"), xt = /'/g, _t = /"/g, Pt = /^(?:script|style|textarea|title)$/i, Rt = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), h = Rt(1), O = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), At = /* @__PURE__ */ new WeakMap(), k = B.createTreeWalker(B, 129);
288
288
  function kt(n, t) {
289
289
  if (!ut(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
290
290
  return mt !== void 0 ? mt.createHTML(t) : t;
291
291
  }
292
292
  const Vt = (n, t) => {
293
- const e = n.length - 1, s = [];
294
- let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", i = j;
293
+ const e = n.length - 1, o = [];
294
+ let s, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", i = j;
295
295
  for (let c = 0; c < e; c++) {
296
296
  const l = n[c];
297
- let v, f, p = -1, w = 0;
298
- for (; w < l.length && (i.lastIndex = w, f = i.exec(l), f !== null); ) w = i.lastIndex, i === j ? f[1] === "!--" ? i = $t : f[1] !== void 0 ? i = wt : f[2] !== void 0 ? (Pt.test(f[2]) && (o = RegExp("</" + f[2], "g")), i = P) : f[3] !== void 0 && (i = P) : i === P ? f[0] === ">" ? (i = o ?? j, p = -1) : f[1] === void 0 ? p = -2 : (p = i.lastIndex - f[2].length, v = f[1], i = f[3] === void 0 ? P : f[3] === '"' ? _t : xt) : i === _t || i === xt ? i = P : i === $t || i === wt ? i = j : (i = P, o = void 0);
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 ? (Pt.test(b[2]) && (s = RegExp("</" + b[2], "g")), i = P) : b[3] !== void 0 && (i = P) : i === P ? b[0] === ">" ? (i = s ?? j, p = -1) : b[1] === void 0 ? p = -2 : (p = i.lastIndex - b[2].length, f = b[1], i = b[3] === void 0 ? P : b[3] === '"' ? _t : xt) : i === _t || i === xt ? i = P : i === $t || i === wt ? i = j : (i = P, s = void 0);
299
299
  const E = i === P && n[c + 1].startsWith("/>") ? " " : "";
300
- r += i === j ? l + Nt : p >= 0 ? (s.push(v), l.slice(0, p) + Ct + l.slice(p) + S + E) : l + S + (p === -2 ? c : E);
300
+ r += i === j ? l + Nt : p >= 0 ? (o.push(f), l.slice(0, p) + Ct + l.slice(p) + S + E) : l + S + (p === -2 ? c : E);
301
301
  }
302
- return [kt(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
302
+ return [kt(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), o];
303
303
  };
304
304
  class Z {
305
- constructor({ strings: t, _$litType$: e }, s) {
306
- let o;
305
+ constructor({ strings: t, _$litType$: e }, o) {
306
+ let s;
307
307
  this.parts = [];
308
308
  let r = 0, i = 0;
309
- const c = t.length - 1, l = this.parts, [v, f] = Vt(t, e);
310
- if (this.el = Z.createElement(v, s), k.currentNode = this.el.content, e === 2 || e === 3) {
309
+ const c = t.length - 1, l = this.parts, [f, b] = Vt(t, e);
310
+ if (this.el = Z.createElement(f, o), k.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 = k.nextNode()) !== null && l.length < c; ) {
315
- if (o.nodeType === 1) {
316
- if (o.hasAttributes()) for (const p of o.getAttributeNames()) if (p.endsWith(Ct)) {
317
- const w = f[i++], E = o.getAttribute(p).split(S), K = /([.?@])?(.*)/.exec(w);
318
- l.push({ type: 1, index: r, name: K[2], strings: E, ctor: K[1] === "." ? qt : K[1] === "?" ? Zt : K[1] === "@" ? Wt : Y }), o.removeAttribute(p);
319
- } else p.startsWith(S) && (l.push({ type: 6, index: r }), o.removeAttribute(p));
320
- if (Pt.test(o.tagName)) {
321
- const p = o.textContent.split(S), w = p.length - 1;
314
+ for (; (s = k.nextNode()) !== null && l.length < c; ) {
315
+ if (s.nodeType === 1) {
316
+ if (s.hasAttributes()) for (const p of s.getAttributeNames()) if (p.endsWith(Ct)) {
317
+ const w = b[i++], E = s.getAttribute(p).split(S), K = /([.?@])?(.*)/.exec(w);
318
+ l.push({ type: 1, index: r, name: K[2], strings: E, ctor: K[1] === "." ? qt : K[1] === "?" ? Zt : K[1] === "@" ? Wt : Y }), s.removeAttribute(p);
319
+ } else p.startsWith(S) && (l.push({ type: 6, index: r }), s.removeAttribute(p));
320
+ if (Pt.test(s.tagName)) {
321
+ const p = s.textContent.split(S), w = p.length - 1;
322
322
  if (w > 0) {
323
- o.textContent = Q ? Q.emptyScript : "";
324
- for (let E = 0; E < w; E++) o.append(p[E], F()), k.nextNode(), l.push({ type: 2, index: ++r });
325
- o.append(p[w], F());
323
+ s.textContent = Q ? Q.emptyScript : "";
324
+ for (let E = 0; E < w; E++) s.append(p[E], F()), k.nextNode(), l.push({ type: 2, index: ++r });
325
+ s.append(p[w], F());
326
326
  }
327
327
  }
328
- } else if (o.nodeType === 8) if (o.data === Lt) l.push({ type: 2, index: r });
328
+ } else if (s.nodeType === 8) if (s.data === Lt) l.push({ type: 2, index: r });
329
329
  else {
330
330
  let p = -1;
331
- for (; (p = o.data.indexOf(S, p + 1)) !== -1; ) l.push({ type: 7, index: r }), p += S.length - 1;
331
+ for (; (p = s.data.indexOf(S, p + 1)) !== -1; ) l.push({ type: 7, index: r }), p += S.length - 1;
332
332
  }
333
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 = B.createElement("template");
338
+ return o.innerHTML = t, o;
339
339
  }
340
340
  }
341
- function D(n, t, e = n, s) {
341
+ function D(n, t, e = n, o) {
342
342
  var i, c;
343
343
  if (t === O) return t;
344
- let o = s !== void 0 ? (i = e._$Co) == null ? void 0 : i[s] : e._$Cl;
344
+ let s = o !== void 0 ? (i = e._$Co) == null ? void 0 : i[o] : e._$Cl;
345
345
  const r = q(t) ? void 0 : t._$litDirective$;
346
- return (o == null ? void 0 : o.constructor) !== r && ((c = o == null ? void 0 : o._$AO) == null || c.call(o, !1), r === void 0 ? o = void 0 : (o = new r(n), o._$AT(n, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = o : e._$Cl = o), o !== void 0 && (t = D(n, o._$AS(n, t.values), o, s)), t;
346
+ return (s == null ? void 0 : s.constructor) !== r && ((c = s == null ? void 0 : s._$AO) == null || c.call(s, !1), r === void 0 ? s = void 0 : (s = new r(n), s._$AT(n, e, o)), o !== void 0 ? (e._$Co ?? (e._$Co = []))[o] = s : e._$Cl = s), s !== void 0 && (t = D(n, s._$AS(n, t.values), s, o)), t;
347
347
  }
348
348
  class Ft {
349
349
  constructor(t, e) {
@@ -356,21 +356,21 @@ class Ft {
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
- k.currentNode = o;
361
- let r = k.nextNode(), i = 0, c = 0, l = s[0];
359
+ const { el: { content: e }, parts: o } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? B).importNode(e, !0);
360
+ k.currentNode = s;
361
+ let r = k.nextNode(), i = 0, c = 0, l = o[0];
362
362
  for (; l !== void 0; ) {
363
363
  if (i === l.index) {
364
- let v;
365
- l.type === 2 ? v = new G(r, r.nextSibling, this, t) : l.type === 1 ? v = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (v = new Gt(r, this, t)), this._$AV.push(v), l = s[++c];
364
+ let f;
365
+ l.type === 2 ? f = new G(r, r.nextSibling, this, t) : l.type === 1 ? f = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (f = new Gt(r, this, t)), this._$AV.push(f), l = o[++c];
366
366
  }
367
367
  i !== (l == null ? void 0 : l.index) && (r = k.nextNode(), i++);
368
368
  }
369
- return k.currentNode = B, o;
369
+ return k.currentNode = B, s;
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
376
  class G {
@@ -378,8 +378,8 @@ class G {
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 = d, 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, s) {
382
+ this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = o, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
383
383
  }
384
384
  get parentNode() {
385
385
  let t = this._$AA.parentNode;
@@ -406,10 +406,10 @@ class G {
406
406
  }
407
407
  $(t) {
408
408
  var r;
409
- const { values: e, _$litType$: s } = t, o = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = Z.createElement(kt(s.h, s.h[0]), this.options)), s);
410
- if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(e);
409
+ const { values: e, _$litType$: o } = t, s = typeof o == "number" ? this._$AC(t) : (o.el === void 0 && (o.el = Z.createElement(kt(o.h, o.h[0]), this.options)), o);
410
+ if (((r = this._$AH) == null ? void 0 : r._$AD) === s) this._$AH.p(e);
411
411
  else {
412
- const i = new Ft(o, this), c = i.u(this.options);
412
+ const i = new Ft(s, this), c = i.u(this.options);
413
413
  i.p(e), this.T(c), this._$AH = i;
414
414
  }
415
415
  }
@@ -420,15 +420,15 @@ class G {
420
420
  k(t) {
421
421
  ut(this._$AH) || (this._$AH = [], this._$AR());
422
422
  const e = this._$AH;
423
- let s, o = 0;
424
- for (const r of t) o === e.length ? e.push(s = new G(this.O(F()), this.O(F()), this, this.options)) : s = e[o], s._$AI(r), o++;
425
- o < e.length && (this._$AR(s && s._$AB.nextSibling, o), e.length = o);
423
+ let o, s = 0;
424
+ for (const r of t) s === e.length ? e.push(o = new G(this.O(F()), this.O(F()), this, this.options)) : o = e[s], o._$AI(r), s++;
425
+ s < e.length && (this._$AR(o && o._$AB.nextSibling, s), e.length = s);
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 s = t.nextSibling;
431
+ t.remove(), t = s;
432
432
  }
433
433
  }
434
434
  setConnected(t) {
@@ -443,19 +443,19 @@ class Y {
443
443
  get _$AU() {
444
444
  return this._$AM._$AU;
445
445
  }
446
- constructor(t, e, s, o, r) {
447
- this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = o, this.options = r, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = d;
446
+ constructor(t, e, o, s, r) {
447
+ this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = r, o.length > 2 || o[0] !== "" || o[1] !== "" ? (this._$AH = Array(o.length - 1).fill(new String()), this.strings = o) : this._$AH = d;
448
448
  }
449
- _$AI(t, e = this, s, o) {
449
+ _$AI(t, e = this, o, s) {
450
450
  const r = this.strings;
451
451
  let i = !1;
452
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
- let l, v;
456
- for (t = r[0], l = 0; l < r.length - 1; l++) v = D(this, c[s + l], e, l), v === O && (v = this._$AH[l]), i || (i = !q(v) || v !== this._$AH[l]), v === d ? t = d : t !== d && (t += (v ?? "") + r[l + 1]), this._$AH[l] = v;
455
+ let 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 === d ? t = d : t !== d && (t += (f ?? "") + r[l + 1]), this._$AH[l] = f;
457
457
  }
458
- i && !o && this.j(t);
458
+ i && !s && this.j(t);
459
459
  }
460
460
  j(t) {
461
461
  t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
@@ -478,13 +478,13 @@ class Zt extends Y {
478
478
  }
479
479
  }
480
480
  class Wt extends Y {
481
- constructor(t, e, s, o, r) {
482
- super(t, e, s, o, r), this.type = 5;
481
+ constructor(t, e, o, s, r) {
482
+ super(t, e, o, s, r), this.type = 5;
483
483
  }
484
484
  _$AI(t, e = this) {
485
485
  if ((t = D(this, t, e, 0) ?? d) === O) return;
486
- const s = this._$AH, o = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, r = t !== d && (s === d || o);
487
- o && this.element.removeEventListener(this.name, this, s), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
486
+ const o = this._$AH, s = t === d && o !== d || t.capture !== o.capture || t.once !== o.once || t.passive !== o.passive, r = t !== d && (o === d || s);
487
+ s && 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;
@@ -492,8 +492,8 @@ class Wt extends Y {
492
492
  }
493
493
  }
494
494
  class Gt {
495
- constructor(t, e, s) {
496
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
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;
@@ -505,13 +505,13 @@ class Gt {
505
505
  const it = V.litHtmlPolyfillSupport;
506
506
  it == null || it(Z, G), (V.litHtmlVersions ?? (V.litHtmlVersions = [])).push("3.3.0");
507
507
  const Kt = (n, t, e) => {
508
- const s = (e == null ? void 0 : e.renderBefore) ?? t;
509
- let o = s._$litPart$;
510
- if (o === void 0) {
508
+ const o = (e == null ? void 0 : e.renderBefore) ?? t;
509
+ let s = o._$litPart$;
510
+ if (s === void 0) {
511
511
  const r = (e == null ? void 0 : e.renderBefore) ?? null;
512
- s._$litPart$ = o = new G(t.insertBefore(F(), r), r, void 0, e ?? {});
512
+ o._$litPart$ = s = new G(t.insertBefore(F(), r), r, void 0, e ?? {});
513
513
  }
514
- return o._$AI(n), o;
514
+ return s._$AI(n), s;
515
515
  };
516
516
  /**
517
517
  * @license
@@ -565,9 +565,9 @@ const z = (n) => (t, e) => {
565
565
  * SPDX-License-Identifier: BSD-3-Clause
566
566
  */
567
567
  const Xt = { attribute: !0, type: String, converter: J, reflect: !1, hasChanged: pt }, Jt = (n = Xt, t, e) => {
568
- const { kind: s, metadata: o } = e;
569
- let r = globalThis.litPropertyMetadata.get(o);
570
- if (r === void 0 && globalThis.litPropertyMetadata.set(o, r = /* @__PURE__ */ new Map()), s === "setter" && ((n = Object.create(n)).wrapped = !0), r.set(e.name, n), s === "accessor") {
568
+ const { kind: o, metadata: s } = e;
569
+ let r = globalThis.litPropertyMetadata.get(s);
570
+ if (r === void 0 && globalThis.litPropertyMetadata.set(s, r = /* @__PURE__ */ new Map()), o === "setter" && ((n = Object.create(n)).wrapped = !0), r.set(e.name, n), o === "accessor") {
571
571
  const { name: i } = e;
572
572
  return { set(c) {
573
573
  const l = t.get.call(this);
@@ -576,19 +576,19 @@ const Xt = { attribute: !0, type: String, converter: J, reflect: !1, hasChanged:
576
576
  return c !== void 0 && this.C(i, void 0, n, c), c;
577
577
  } };
578
578
  }
579
- if (s === "setter") {
579
+ if (o === "setter") {
580
580
  const { name: i } = e;
581
581
  return function(c) {
582
582
  const l = this[i];
583
583
  t.call(this, c), this.requestUpdate(i, l, n);
584
584
  };
585
585
  }
586
- throw Error("Unsupported decorator location: " + s);
586
+ throw Error("Unsupported decorator location: " + o);
587
587
  };
588
588
  function a(n) {
589
- return (t, e) => typeof e == "object" ? Jt(n, t, e) : ((s, o, r) => {
590
- const i = o.hasOwnProperty(r);
591
- return o.constructor.createProperty(r, s), i ? Object.getOwnPropertyDescriptor(o, r) : void 0;
589
+ return (t, e) => typeof e == "object" ? Jt(n, t, e) : ((o, s, r) => {
590
+ const i = s.hasOwnProperty(r);
591
+ return s.constructor.createProperty(r, o), i ? Object.getOwnPropertyDescriptor(s, r) : void 0;
592
592
  })(n, t, e);
593
593
  }
594
594
  /**
@@ -614,11 +614,11 @@ A`
614
614
  * Copyright 2023 Google LLC
615
615
  * SPDX-License-Identifier: Apache-2.0
616
616
  */
617
- const vt = Symbol("internals"), at = Symbol("privateInternals");
617
+ const ft = Symbol("internals"), at = Symbol("privateInternals");
618
618
  function te(n) {
619
619
  var t;
620
620
  class e extends n {
621
- get [(t = vt, t)]() {
621
+ get [(t = ft, t)]() {
622
622
  return this[at] || (this[at] = this.attachInternals()), this[at];
623
623
  }
624
624
  }
@@ -632,12 +632,12 @@ function te(n) {
632
632
  function ee(n) {
633
633
  n.addInitializer((t) => {
634
634
  const e = t;
635
- e.addEventListener("click", async (s) => {
636
- const { type: o, [vt]: r } = e, { form: i } = r;
637
- if (!(!i || o === "button") && (await new Promise((c) => {
635
+ e.addEventListener("click", async (o) => {
636
+ const { type: s, [ft]: r } = e, { form: i } = r;
637
+ if (!(!i || s === "button") && (await new Promise((c) => {
638
638
  setTimeout(c);
639
- }), !s.defaultPrevented)) {
640
- if (o === "reset") {
639
+ }), !o.defaultPrevented)) {
640
+ if (s === "reset") {
641
641
  i.reset();
642
642
  return;
643
643
  }
@@ -659,10 +659,10 @@ function ee(n) {
659
659
  const ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
660
660
  <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"/>
661
661
  </svg>
662
- `, se = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
662
+ `, oe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
663
663
  <path d="M16 8L4 0V16L16 8Z" fill="#3F2B2E"/>
664
664
  </svg>
665
- `, oe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
665
+ `, se = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
666
666
  <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"/>
667
667
  </svg>
668
668
  `, ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -700,7 +700,7 @@ const ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
700
700
  <path class="st0" d="M40,20c0,0.7-0.6,1.2-1.2,1.2H21.2v17.5c0,0.7-0.6,1.2-1.2,1.2s-1.2-0.6-1.2-1.2V21.2H1.2C0.6,21.2,0,20.7,0,20
701
701
  s0.6-1.2,1.2-1.2h17.5V1.2C18.8,0.6,19.3,0,20,0s1.2,0.6,1.2,1.2v17.5h17.5C39.4,18.8,40,19.3,40,20z"/>
702
702
  </svg>
703
- `, ve = `<?xml version="1.0" encoding="utf-8"?>
703
+ `, fe = `<?xml version="1.0" encoding="utf-8"?>
704
704
  <!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
705
705
  <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"
706
706
  viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
@@ -711,11 +711,11 @@ const ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
711
711
  </svg>
712
712
  `, tt = {
713
713
  wishlist: ne,
714
- playerv: se,
715
- chevronRight: oe,
714
+ playerv: oe,
715
+ chevronRight: se,
716
716
  chevronLeft: ie,
717
717
  icoPlus: ue,
718
- icoMinus: ve,
718
+ icoMinus: fe,
719
719
  "star-0": re,
720
720
  "star-25": ae,
721
721
  "star-50": le,
@@ -729,15 +729,15 @@ const ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
729
729
  * Copyright 2017 Google LLC
730
730
  * SPDX-License-Identifier: BSD-3-Clause
731
731
  */
732
- const fe = { CHILD: 2 }, be = (n) => (...t) => ({ _$litDirective$: n, values: t });
732
+ const ve = { CHILD: 2 }, be = (n) => (...t) => ({ _$litDirective$: n, values: t });
733
733
  class ge {
734
734
  constructor(t) {
735
735
  }
736
736
  get _$AU() {
737
737
  return this._$AM._$AU;
738
738
  }
739
- _$AT(t, e, s) {
740
- this._$Ct = t, this._$AM = e, this._$Ci = s;
739
+ _$AT(t, e, o) {
740
+ this._$Ct = t, this._$AM = e, this._$Ci = o;
741
741
  }
742
742
  _$AS(t, e) {
743
743
  return this.update(t, e);
@@ -753,7 +753,7 @@ class ge {
753
753
  */
754
754
  class lt extends ge {
755
755
  constructor(t) {
756
- if (super(t), this.it = d, t.type !== fe.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
756
+ if (super(t), this.it = d, t.type !== ve.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
757
757
  }
758
758
  render(t) {
759
759
  if (t === d || t == null) return this._t = void 0, this.it = t;
@@ -775,10 +775,10 @@ class ct extends lt {
775
775
  }
776
776
  ct.directiveName = "unsafeSVG", ct.resultType = 2;
777
777
  const W = be(ct);
778
- var ye = Object.defineProperty, me = Object.getOwnPropertyDescriptor, g = (n, t, e, s) => {
779
- for (var o = s > 1 ? void 0 : s ? me(t, e) : t, r = n.length - 1, i; r >= 0; r--)
780
- (i = n[r]) && (o = (s ? i(t, e, o) : i(o)) || o);
781
- return s && o && ye(t, e, o), o;
778
+ var ye = Object.defineProperty, me = Object.getOwnPropertyDescriptor, g = (n, t, e, o) => {
779
+ for (var s = o > 1 ? void 0 : o ? me(t, e) : t, r = n.length - 1, i; r >= 0; r--)
780
+ (i = n[r]) && (s = (o ? i(t, e, s) : i(s)) || s);
781
+ return o && s && ye(t, e, s), s;
782
782
  };
783
783
  const $e = te(m);
784
784
  let u = class extends $e {
@@ -792,7 +792,7 @@ let u = class extends $e {
792
792
  this.setAttribute("name", n);
793
793
  }
794
794
  get form() {
795
- return this[vt].form;
795
+ return this[ft].form;
796
796
  }
797
797
  handleClick() {
798
798
  if (this.panelTarget) {
@@ -1049,10 +1049,10 @@ g([
1049
1049
  u = g([
1050
1050
  z("o-button")
1051
1051
  ], u);
1052
- var we = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, et = (n, t, e, s) => {
1053
- for (var o = s > 1 ? void 0 : s ? xe(t, e) : t, r = n.length - 1, i; r >= 0; r--)
1054
- (i = n[r]) && (o = (s ? i(t, e, o) : i(o)) || o);
1055
- return s && o && we(t, e, o), o;
1052
+ var we = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, et = (n, t, e, o) => {
1053
+ for (var s = o > 1 ? void 0 : o ? xe(t, e) : t, r = n.length - 1, i; r >= 0; r--)
1054
+ (i = n[r]) && (s = (o ? i(t, e, s) : i(s)) || s);
1055
+ return o && s && we(t, e, s), s;
1056
1056
  };
1057
1057
  let U = class extends m {
1058
1058
  constructor() {
@@ -1163,10 +1163,10 @@ et([
1163
1163
  U = et([
1164
1164
  z("o-wishlist-button")
1165
1165
  ], U);
1166
- var _e = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, L = (n, t, e, s) => {
1167
- for (var o = s > 1 ? void 0 : s ? Ae(t, e) : t, r = n.length - 1, i; r >= 0; r--)
1168
- (i = n[r]) && (o = (s ? i(t, e, o) : i(o)) || o);
1169
- return s && o && _e(t, e, o), o;
1166
+ var _e = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, L = (n, t, e, o) => {
1167
+ for (var s = o > 1 ? void 0 : o ? Ae(t, e) : t, r = n.length - 1, i; r >= 0; r--)
1168
+ (i = n[r]) && (s = (o ? i(t, e, s) : i(s)) || s);
1169
+ return o && s && _e(t, e, s), s;
1170
1170
  };
1171
1171
  let $ = class extends m {
1172
1172
  constructor() {
@@ -1422,10 +1422,10 @@ L([
1422
1422
  $ = L([
1423
1423
  z("o-icon-button")
1424
1424
  ], $);
1425
- var Ee = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, M = (n, t, e, s) => {
1426
- for (var o = s > 1 ? void 0 : s ? Se(t, e) : t, r = n.length - 1, i; r >= 0; r--)
1427
- (i = n[r]) && (o = (s ? i(t, e, o) : i(o)) || o);
1428
- return s && o && Ee(t, e, o), o;
1425
+ var Ee = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, H = (n, t, e, o) => {
1426
+ for (var s = o > 1 ? void 0 : o ? Se(t, e) : t, r = n.length - 1, i; r >= 0; r--)
1427
+ (i = n[r]) && (s = (o ? i(t, e, s) : i(s)) || s);
1428
+ return o && s && Ee(t, e, s), s;
1429
1429
  };
1430
1430
  let x = class extends m {
1431
1431
  constructor() {
@@ -1545,31 +1545,31 @@ x.styles = A`
1545
1545
  }
1546
1546
  /* End of underline effect */
1547
1547
  `;
1548
- M([
1548
+ H([
1549
1549
  a({ type: String })
1550
1550
  ], x.prototype, "href", 2);
1551
- M([
1551
+ H([
1552
1552
  a({ type: String })
1553
1553
  ], x.prototype, "target", 2);
1554
- M([
1554
+ H([
1555
1555
  a({ type: String, reflect: !0 })
1556
1556
  ], x.prototype, "template", 2);
1557
- M([
1557
+ H([
1558
1558
  a({ type: Boolean, reflect: !0 })
1559
1559
  ], x.prototype, "inverse", 2);
1560
- M([
1560
+ H([
1561
1561
  a({ type: Boolean, reflect: !0 })
1562
1562
  ], x.prototype, "endIcon", 2);
1563
- M([
1563
+ H([
1564
1564
  a({ type: Boolean, reflect: !0 })
1565
1565
  ], x.prototype, "reverseEndIcon", 2);
1566
- x = M([
1566
+ x = H([
1567
1567
  z("o-link")
1568
1568
  ], x);
1569
- var Ce = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, nt = (n, t, e, s) => {
1570
- for (var o = s > 1 ? void 0 : s ? Le(t, e) : t, r = n.length - 1, i; r >= 0; r--)
1571
- (i = n[r]) && (o = (s ? i(t, e, o) : i(o)) || o);
1572
- return s && o && Ce(t, e, o), o;
1569
+ var Ce = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, nt = (n, t, e, o) => {
1570
+ for (var s = o > 1 ? void 0 : o ? Le(t, e) : t, r = n.length - 1, i; r >= 0; r--)
1571
+ (i = n[r]) && (s = (o ? i(t, e, s) : i(s)) || s);
1572
+ return o && s && Ce(t, e, s), s;
1573
1573
  };
1574
1574
  let N = class extends m {
1575
1575
  constructor() {
@@ -1579,8 +1579,8 @@ let N = class extends m {
1579
1579
  const n = [];
1580
1580
  for (let t = 0; t < 5; t++) {
1581
1581
  const e = this.rating - t;
1582
- let s;
1583
- e >= 1 ? s = 100 : e <= 0 ? s = 0 : s = Math.round(e * 100 / 25) * 25, n.push(`star-${s}`);
1582
+ let o;
1583
+ e >= 1 ? o = 100 : e <= 0 ? o = 0 : o = Math.round(e * 100 / 25) * 25, n.push(`star-${o}`);
1584
1584
  }
1585
1585
  return n;
1586
1586
  }
@@ -1644,19 +1644,21 @@ nt([
1644
1644
  N = nt([
1645
1645
  z("o-rating")
1646
1646
  ], N);
1647
- var Pe = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, y = (n, t, e, s) => {
1648
- for (var o = s > 1 ? void 0 : s ? ke(t, e) : t, r = n.length - 1, i; r >= 0; r--)
1649
- (i = n[r]) && (o = (s ? i(t, e, o) : i(o)) || o);
1650
- return s && o && Pe(t, e, o), o;
1647
+ var Pe = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, y = (n, t, e, o) => {
1648
+ for (var s = o > 1 ? void 0 : o ? ke(t, e) : t, r = n.length - 1, i; r >= 0; r--)
1649
+ (i = n[r]) && (s = (o ? i(t, e, s) : i(s)) || s);
1650
+ return o && s && Pe(t, e, s), s;
1651
1651
  };
1652
- let b = class extends m {
1652
+ let v = class extends m {
1653
1653
  constructor() {
1654
- 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.zIndex = 99, this.previousFocusedElement = null, this.handleKeyDown = (n) => {
1654
+ 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.zIndex = 99, this.initialized = !1, this.previousFocusedElement = null, this.handleKeyDown = (n) => {
1655
1655
  this.open && (n.key === "Escape" ? this.closePanel() : n.key === "Tab" && this.trapFocus(n));
1656
1656
  };
1657
1657
  }
1658
1658
  connectedCallback() {
1659
- super.connectedCallback(), !this.disablePortal && this.parentElement !== document.body && document.body.appendChild(this), window.addEventListener("keydown", this.handleKeyDown);
1659
+ super.connectedCallback(), !this.disablePortal && this.parentElement !== document.body && document.body.appendChild(this), window.addEventListener("keydown", this.handleKeyDown), this.updateComplete.then(() => {
1660
+ this.initialized = !0;
1661
+ });
1660
1662
  }
1661
1663
  disconnectedCallback() {
1662
1664
  document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), window.removeEventListener("keydown", this.handleKeyDown), super.disconnectedCallback();
@@ -1664,8 +1666,8 @@ let b = class extends m {
1664
1666
  trapFocus(n) {
1665
1667
  const t = this.getFocusableElements();
1666
1668
  if (t.length === 0) return;
1667
- const e = t[0], s = t[t.length - 1];
1668
- n.shiftKey && document.activeElement === e ? (n.preventDefault(), s.focus()) : !n.shiftKey && document.activeElement === s && (n.preventDefault(), e.focus());
1669
+ const e = t[0], o = t[t.length - 1];
1670
+ n.shiftKey && document.activeElement === e ? (n.preventDefault(), o.focus()) : !n.shiftKey && document.activeElement === o && (n.preventDefault(), e.focus());
1669
1671
  }
1670
1672
  getFocusableElements() {
1671
1673
  const n = this.renderRoot.querySelector(".panel");
@@ -1743,7 +1745,7 @@ let b = class extends m {
1743
1745
  `;
1744
1746
  }
1745
1747
  };
1746
- b.styles = A`
1748
+ v.styles = A`
1747
1749
  :host {
1748
1750
  --z-overlay: 99;
1749
1751
  --z-panel: 100;
@@ -1756,6 +1758,16 @@ b.styles = A`
1756
1758
  z-index: var(--z-overlay);
1757
1759
  }
1758
1760
 
1761
+ /* Hide content until it is initialized */
1762
+ :host(:not([initialized])) .content {
1763
+ display: none;
1764
+ }
1765
+
1766
+ /* hide the host completely until its initialized */
1767
+ :host(:not([initialized])) {
1768
+ display: none !important;
1769
+ }
1770
+
1759
1771
  .overlay {
1760
1772
  position: absolute;
1761
1773
  inset: 0;
@@ -1843,61 +1855,64 @@ b.styles = A`
1843
1855
  `;
1844
1856
  y([
1845
1857
  a({ type: Boolean, reflect: !0 })
1846
- ], b.prototype, "open", 2);
1858
+ ], v.prototype, "open", 2);
1847
1859
  y([
1848
1860
  a({ type: Boolean, reflect: !0 })
1849
- ], b.prototype, "showHeader", 2);
1861
+ ], v.prototype, "showHeader", 2);
1850
1862
  y([
1851
1863
  a({ type: Boolean, reflect: !0 })
1852
- ], b.prototype, "showFooter", 2);
1864
+ ], v.prototype, "showFooter", 2);
1853
1865
  y([
1854
1866
  a({ type: String, reflect: !0 })
1855
- ], b.prototype, "headerTitle", 2);
1867
+ ], v.prototype, "headerTitle", 2);
1856
1868
  y([
1857
1869
  a({ type: String, reflect: !0 })
1858
- ], b.prototype, "closeButtonLabel", 2);
1870
+ ], v.prototype, "closeButtonLabel", 2);
1859
1871
  y([
1860
1872
  a({ type: String, reflect: !0 })
1861
- ], b.prototype, "firstButtonLabel", 2);
1873
+ ], v.prototype, "firstButtonLabel", 2);
1862
1874
  y([
1863
1875
  a({ type: String, reflect: !0 })
1864
- ], b.prototype, "firstButtonVariant", 2);
1876
+ ], v.prototype, "firstButtonVariant", 2);
1865
1877
  y([
1866
1878
  a({ type: Function })
1867
- ], b.prototype, "onFirstButtonClick", 2);
1879
+ ], v.prototype, "onFirstButtonClick", 2);
1868
1880
  y([
1869
1881
  a({ type: String, reflect: !0 })
1870
- ], b.prototype, "secondaryButtonLabel", 2);
1882
+ ], v.prototype, "secondaryButtonLabel", 2);
1871
1883
  y([
1872
1884
  a({ type: String, reflect: !0 })
1873
- ], b.prototype, "secondaryButtonVariant", 2);
1885
+ ], v.prototype, "secondaryButtonVariant", 2);
1874
1886
  y([
1875
1887
  a({ type: Function })
1876
- ], b.prototype, "onSecondaryButtonClick", 2);
1888
+ ], v.prototype, "onSecondaryButtonClick", 2);
1877
1889
  y([
1878
1890
  a({ type: Boolean, reflect: !0 })
1879
- ], b.prototype, "disablePortal", 2);
1891
+ ], v.prototype, "disablePortal", 2);
1880
1892
  y([
1881
1893
  a({ type: Number, reflect: !0 })
1882
- ], b.prototype, "zIndex", 2);
1883
- b = y([
1894
+ ], v.prototype, "zIndex", 2);
1895
+ y([
1896
+ a({ type: Boolean, reflect: !0 })
1897
+ ], v.prototype, "initialized", 2);
1898
+ v = y([
1884
1899
  z("o-side-panel")
1885
- ], b);
1886
- var Ie = Object.defineProperty, Be = Object.getOwnPropertyDescriptor, H = (n, t, e, s) => {
1887
- for (var o = s > 1 ? void 0 : s ? Be(t, e) : t, r = n.length - 1, i; r >= 0; r--)
1888
- (i = n[r]) && (o = (s ? i(t, e, o) : i(o)) || o);
1889
- return s && o && Ie(t, e, o), o;
1900
+ ], v);
1901
+ var Ie = Object.defineProperty, Be = Object.getOwnPropertyDescriptor, M = (n, t, e, o) => {
1902
+ for (var s = o > 1 ? void 0 : o ? Be(t, e) : t, r = n.length - 1, i; r >= 0; r--)
1903
+ (i = n[r]) && (s = (o ? i(t, e, s) : i(s)) || s);
1904
+ return o && s && Ie(t, e, s), s;
1890
1905
  };
1891
1906
  let _ = class extends m {
1892
1907
  constructor() {
1893
1908
  super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.focusedIndex = 0, this.playerIconTemplate = h`
1894
1909
  <o-icon-button
1895
1910
  icon="playerv"
1896
- size="medium"
1911
+ size="smallxs"
1897
1912
  bgstyle="background-light"
1898
1913
  type="span"
1899
1914
  status="filled"
1900
- strokewidth="1.5"
1915
+ strokewidth="0"
1901
1916
  ></o-icon-button>
1902
1917
  `;
1903
1918
  }
@@ -1927,21 +1942,21 @@ let _ = class extends m {
1927
1942
  return h`
1928
1943
  <div class="scroll-container" style="max-width: ${this.maxWidth};">
1929
1944
  ${this.thumbnails.map((n, t) => {
1930
- const e = this.disabledIndexes.includes(t), s = this.activeIndex === t, o = n.type === "video";
1945
+ const e = this.disabledIndexes.includes(t), o = this.activeIndex === t, s = n.type === "video";
1931
1946
  return h`
1932
1947
  <div class="thumb-wrapper">
1933
1948
  <button
1934
1949
  class="thumb"
1935
1950
  data-index="${t}"
1936
1951
  ?disabled=${e}
1937
- aria-selected=${s}
1952
+ aria-selected=${o}
1938
1953
  tabindex="${this.focusedIndex === t ? 0 : -1}"
1939
1954
  @click=${() => this.selectThumbnail(t)}
1940
1955
  @keydown=${this.handleKeyDown}
1941
1956
  >
1942
1957
  <img src="${n.src}" />
1943
1958
  </button>
1944
- ${o ? h`<div class="play-icon-wrapper">${this.playerIconTemplate}</div>` : null}
1959
+ ${s ? h`<div class="play-icon-wrapper">${this.playerIconTemplate}</div>` : null}
1945
1960
  </div>
1946
1961
  `;
1947
1962
  })}
@@ -2053,24 +2068,24 @@ _.styles = A`
2053
2068
  width: 0;
2054
2069
  }
2055
2070
  `;
2056
- H([
2071
+ M([
2057
2072
  a({ type: Array })
2058
2073
  ], _.prototype, "thumbnails", 2);
2059
- H([
2074
+ M([
2060
2075
  a({ type: Number })
2061
2076
  ], _.prototype, "activeIndex", 2);
2062
- H([
2077
+ M([
2063
2078
  a({ type: Array })
2064
2079
  ], _.prototype, "disabledIndexes", 2);
2065
- H([
2080
+ M([
2066
2081
  a({ type: String })
2067
2082
  ], _.prototype, "maxWidth", 2);
2068
- H([
2083
+ M([
2069
2084
  a({ type: Object })
2070
2085
  ], _.prototype, "swiperInstance", 2);
2071
- H([
2086
+ M([
2072
2087
  Qt()
2073
2088
  ], _.prototype, "focusedIndex", 2);
2074
- _ = H([
2089
+ _ = M([
2075
2090
  z("thumbnail-navigation")
2076
2091
  ], _);