@telia-ace/widget-components-area-flamingo 1.1.28-rc.2 → 1.1.28

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,19 +3,19 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const I = globalThis, tt = I.ShadowRoot && (I.ShadyCSS === void 0 || I.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, et = Symbol(), ht = /* @__PURE__ */ new WeakMap();
7
- let Ct = class {
6
+ const I = globalThis, Q = I.ShadowRoot && (I.ShadyCSS === void 0 || I.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, X = Symbol(), rt = /* @__PURE__ */ new WeakMap();
7
+ let ft = class {
8
8
  constructor(t, e, s) {
9
- if (this._$cssResult$ = !0, s !== et)
9
+ if (this._$cssResult$ = !0, s !== X)
10
10
  throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
11
11
  this.cssText = t, this.t = e;
12
12
  }
13
13
  get styleSheet() {
14
14
  let t = this.o;
15
15
  const e = this.t;
16
- if (tt && t === void 0) {
16
+ if (Q && t === void 0) {
17
17
  const s = e !== void 0 && e.length === 1;
18
- s && (t = ht.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && ht.set(e, t));
18
+ s && (t = rt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && rt.set(e, t));
19
19
  }
20
20
  return t;
21
21
  }
@@ -23,38 +23,38 @@ let Ct = class {
23
23
  return this.cssText;
24
24
  }
25
25
  };
26
- const zt = (r) => new Ct(typeof r == "string" ? r : r + "", void 0, et), P = (r, ...t) => {
27
- const e = r.length === 1 ? r[0] : t.reduce((s, i, o) => s + ((n) => {
28
- if (n._$cssResult$ === !0)
29
- return n.cssText;
30
- if (typeof n == "number")
31
- return n;
32
- throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
33
- })(i) + r[o + 1], r[0]);
34
- return new Ct(e, r, et);
35
- }, Bt = (r, t) => {
36
- if (tt)
26
+ const Ut = (r) => new ft(typeof r == "string" ? r : r + "", void 0, X), P = (r, ...t) => {
27
+ const e = r.length === 1 ? r[0] : t.reduce((s, i, n) => s + ((o) => {
28
+ if (o._$cssResult$ === !0)
29
+ return o.cssText;
30
+ if (typeof o == "number")
31
+ return o;
32
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
33
+ })(i) + r[n + 1], r[0]);
34
+ return new ft(e, r, X);
35
+ }, Rt = (r, t) => {
36
+ if (Q)
37
37
  r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
38
38
  else
39
39
  for (const e of t) {
40
40
  const s = document.createElement("style"), i = I.litNonce;
41
41
  i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
42
42
  }
43
- }, lt = tt ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
43
+ }, nt = Q ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
44
44
  let e = "";
45
45
  for (const s of t.cssRules)
46
46
  e += s.cssText;
47
- return zt(e);
47
+ return Ut(e);
48
48
  })(r) : r;
49
49
  /**
50
50
  * @license
51
51
  * Copyright 2017 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
53
53
  */
54
- const { is: It, defineProperty: Ft, getOwnPropertyDescriptor: Wt, getOwnPropertyNames: Gt, getOwnPropertySymbols: Vt, getPrototypeOf: qt } = Object, y = globalThis, ct = y.trustedTypes, Yt = ct ? ct.emptyScript : "", q = y.reactiveElementPolyfillSupport, k = (r, t) => r, F = { toAttribute(r, t) {
54
+ const { is: kt, defineProperty: Nt, getOwnPropertyDescriptor: Mt, getOwnPropertyNames: Ht, getOwnPropertySymbols: Lt, getPrototypeOf: jt } = Object, y = globalThis, ot = y.trustedTypes, zt = ot ? ot.emptyScript : "", Y = y.reactiveElementPolyfillSupport, U = (r, t) => r, G = { toAttribute(r, t) {
55
55
  switch (t) {
56
56
  case Boolean:
57
- r = r ? Yt : null;
57
+ r = r ? zt : null;
58
58
  break;
59
59
  case Object:
60
60
  case Array:
@@ -79,48 +79,48 @@ const { is: It, defineProperty: Ft, getOwnPropertyDescriptor: Wt, getOwnProperty
79
79
  }
80
80
  }
81
81
  return e;
82
- } }, st = (r, t) => !It(r, t), dt = { attribute: !0, type: String, converter: F, reflect: !1, hasChanged: st };
82
+ } }, tt = (r, t) => !kt(r, t), at = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: tt };
83
83
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), y.litPropertyMetadata ?? (y.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
84
- let E = class extends HTMLElement {
84
+ class C extends HTMLElement {
85
85
  static addInitializer(t) {
86
86
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
87
87
  }
88
88
  static get observedAttributes() {
89
89
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
90
90
  }
91
- static createProperty(t, e = dt) {
91
+ static createProperty(t, e = at) {
92
92
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
93
93
  const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
94
- i !== void 0 && Ft(this.prototype, t, i);
94
+ i !== void 0 && Nt(this.prototype, t, i);
95
95
  }
96
96
  }
97
97
  static getPropertyDescriptor(t, e, s) {
98
- const { get: i, set: o } = Wt(this.prototype, t) ?? { get() {
98
+ const { get: i, set: n } = Mt(this.prototype, t) ?? { get() {
99
99
  return this[e];
100
- }, set(n) {
101
- this[e] = n;
100
+ }, set(o) {
101
+ this[e] = o;
102
102
  } };
103
103
  return { get() {
104
104
  return i == null ? void 0 : i.call(this);
105
- }, set(n) {
106
- const h = i == null ? void 0 : i.call(this);
107
- o.call(this, n), this.requestUpdate(t, h, s);
105
+ }, set(o) {
106
+ const c = i == null ? void 0 : i.call(this);
107
+ n.call(this, o), this.requestUpdate(t, c, s);
108
108
  }, configurable: !0, enumerable: !0 };
109
109
  }
110
110
  static getPropertyOptions(t) {
111
- return this.elementProperties.get(t) ?? dt;
111
+ return this.elementProperties.get(t) ?? at;
112
112
  }
113
113
  static _$Ei() {
114
- if (this.hasOwnProperty(k("elementProperties")))
114
+ if (this.hasOwnProperty(U("elementProperties")))
115
115
  return;
116
- const t = qt(this);
116
+ const t = jt(this);
117
117
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
118
118
  }
119
119
  static finalize() {
120
- if (this.hasOwnProperty(k("finalized")))
120
+ if (this.hasOwnProperty(U("finalized")))
121
121
  return;
122
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(k("properties"))) {
123
- const e = this.properties, s = [...Gt(e), ...Vt(e)];
122
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(U("properties"))) {
123
+ const e = this.properties, s = [...Ht(e), ...Lt(e)];
124
124
  for (const i of s)
125
125
  this.createProperty(i, e[i]);
126
126
  }
@@ -143,9 +143,9 @@ let E = class extends HTMLElement {
143
143
  if (Array.isArray(t)) {
144
144
  const s = new Set(t.flat(1 / 0).reverse());
145
145
  for (const i of s)
146
- e.unshift(lt(i));
146
+ e.unshift(nt(i));
147
147
  } else
148
- t !== void 0 && e.push(lt(t));
148
+ t !== void 0 && e.push(nt(t));
149
149
  return e;
150
150
  }
151
151
  static _$Eu(t, e) {
@@ -175,7 +175,7 @@ let E = class extends HTMLElement {
175
175
  }
176
176
  createRenderRoot() {
177
177
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
178
- return Bt(t, this.constructor.elementStyles), t;
178
+ return Rt(t, this.constructor.elementStyles), t;
179
179
  }
180
180
  connectedCallback() {
181
181
  var t;
@@ -197,24 +197,24 @@ let E = class extends HTMLElement {
197
197
  this._$AK(t, s);
198
198
  }
199
199
  _$EO(t, e) {
200
- var o;
200
+ var n;
201
201
  const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
202
202
  if (i !== void 0 && s.reflect === !0) {
203
- const n = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : F).toAttribute(e, s.type);
204
- this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
203
+ const o = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : G).toAttribute(e, s.type);
204
+ this._$Em = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
205
205
  }
206
206
  }
207
207
  _$AK(t, e) {
208
- var o;
208
+ var n;
209
209
  const s = this.constructor, i = s._$Eh.get(t);
210
210
  if (i !== void 0 && this._$Em !== i) {
211
- const n = s.getPropertyOptions(i), h = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : F;
212
- this._$Em = i, this[i] = h.fromAttribute(e, n.type), this._$Em = null;
211
+ const o = s.getPropertyOptions(i), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : G;
212
+ this._$Em = i, this[i] = c.fromAttribute(e, o.type), this._$Em = null;
213
213
  }
214
214
  }
215
- requestUpdate(t, e, s, i = !1, o) {
215
+ requestUpdate(t, e, s, i = !1, n) {
216
216
  if (t !== void 0) {
217
- if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? st)(i ? o : this[t], e))
217
+ if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? tt)(i ? n : this[t], e))
218
218
  return;
219
219
  this.C(t, e, s);
220
220
  }
@@ -242,21 +242,21 @@ let E = class extends HTMLElement {
242
242
  return;
243
243
  if (!this.hasUpdated) {
244
244
  if (this._$Ep) {
245
- for (const [o, n] of this._$Ep)
246
- this[o] = n;
245
+ for (const [n, o] of this._$Ep)
246
+ this[n] = o;
247
247
  this._$Ep = void 0;
248
248
  }
249
249
  const i = this.constructor.elementProperties;
250
250
  if (i.size > 0)
251
- for (const [o, n] of i)
252
- n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.C(o, this[o], n);
251
+ for (const [n, o] of i)
252
+ o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.C(n, this[n], o);
253
253
  }
254
254
  let t = !1;
255
255
  const e = this._$AL;
256
256
  try {
257
257
  t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$ES) == null || s.forEach((i) => {
258
- var o;
259
- return (o = i.hostUpdate) == null ? void 0 : o.call(i);
258
+ var n;
259
+ return (n = i.hostUpdate) == null ? void 0 : n.call(i);
260
260
  }), this.update(e)) : this._$ET();
261
261
  } catch (i) {
262
262
  throw t = !1, this._$ET(), i;
@@ -291,71 +291,71 @@ let E = class extends HTMLElement {
291
291
  }
292
292
  firstUpdated(t) {
293
293
  }
294
- };
295
- E.elementStyles = [], E.shadowRootOptions = { mode: "open" }, E[k("elementProperties")] = /* @__PURE__ */ new Map(), E[k("finalized")] = /* @__PURE__ */ new Map(), q == null || q({ ReactiveElement: E }), (y.reactiveElementVersions ?? (y.reactiveElementVersions = [])).push("2.0.1");
294
+ }
295
+ C.elementStyles = [], C.shadowRootOptions = { mode: "open" }, C[U("elementProperties")] = /* @__PURE__ */ new Map(), C[U("finalized")] = /* @__PURE__ */ new Map(), Y == null || Y({ ReactiveElement: C }), (y.reactiveElementVersions ?? (y.reactiveElementVersions = [])).push("2.0.1");
296
296
  /**
297
297
  * @license
298
298
  * Copyright 2017 Google LLC
299
299
  * SPDX-License-Identifier: BSD-3-Clause
300
300
  */
301
- const N = globalThis, W = N.trustedTypes, pt = W ? W.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Et = "$lit$", $ = `lit$${(Math.random() + "").slice(9)}$`, St = "?" + $, Kt = `<${St}>`, x = document, R = () => x.createComment(""), M = (r) => r === null || typeof r != "object" && typeof r != "function", Pt = Array.isArray, Xt = (r) => Pt(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", Y = `[
302
- \f\r]`, T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ut = /-->/g, gt = />/g, _ = RegExp(`>|${Y}(?:([^\\s"'>=/]+)(${Y}*=${Y}*(?:[^
303
- \f\r"'\`<>=]|("|')|))|$)`, "g"), ft = /'/g, mt = /"/g, Ot = /^(?:script|style|textarea|title)$/i, Jt = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), A = Jt(1), C = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), $t = /* @__PURE__ */ new WeakMap(), w = x.createTreeWalker(x, 129);
304
- function Tt(r, t) {
301
+ const R = globalThis, W = R.trustedTypes, ct = W ? W.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, $t = "$lit$", m = `lit$${(Math.random() + "").slice(9)}$`, mt = "?" + m, Bt = `<${mt}>`, x = document, N = () => x.createComment(""), M = (r) => r === null || typeof r != "object" && typeof r != "function", yt = Array.isArray, Dt = (r) => yt(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", J = `[
302
+ \f\r]`, T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, lt = /-->/g, ht = />/g, v = RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^
303
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), dt = /'/g, pt = /"/g, _t = /^(?:script|style|textarea|title)$/i, It = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), A = It(1), E = Symbol.for("lit-noChange"), h = Symbol.for("lit-nothing"), ut = /* @__PURE__ */ new WeakMap(), w = x.createTreeWalker(x, 129);
304
+ function vt(r, t) {
305
305
  if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
306
306
  throw Error("invalid template strings array");
307
- return pt !== void 0 ? pt.createHTML(t) : t;
307
+ return ct !== void 0 ? ct.createHTML(t) : t;
308
308
  }
309
- const Zt = (r, t) => {
309
+ const Gt = (r, t) => {
310
310
  const e = r.length - 1, s = [];
311
- let i, o = t === 2 ? "<svg>" : "", n = T;
312
- for (let h = 0; h < e; h++) {
313
- const a = r[h];
314
- let l, c, d = -1, u = 0;
315
- for (; u < a.length && (n.lastIndex = u, c = n.exec(a), c !== null); )
316
- u = n.lastIndex, n === T ? c[1] === "!--" ? n = ut : c[1] !== void 0 ? n = gt : c[2] !== void 0 ? (Ot.test(c[2]) && (i = RegExp("</" + c[2], "g")), n = _) : c[3] !== void 0 && (n = _) : n === _ ? c[0] === ">" ? (n = i ?? T, d = -1) : c[1] === void 0 ? d = -2 : (d = n.lastIndex - c[2].length, l = c[1], n = c[3] === void 0 ? _ : c[3] === '"' ? mt : ft) : n === mt || n === ft ? n = _ : n === ut || n === gt ? n = T : (n = _, i = void 0);
317
- const m = n === _ && r[h + 1].startsWith("/>") ? " " : "";
318
- o += n === T ? a + Kt : d >= 0 ? (s.push(l), a.slice(0, d) + Et + a.slice(d) + $ + m) : a + $ + (d === -2 ? h : m);
319
- }
320
- return [Tt(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
311
+ let i, n = t === 2 ? "<svg>" : "", o = T;
312
+ for (let c = 0; c < e; c++) {
313
+ const a = r[c];
314
+ let d, p, l = -1, u = 0;
315
+ for (; u < a.length && (o.lastIndex = u, p = o.exec(a), p !== null); )
316
+ u = o.lastIndex, o === T ? p[1] === "!--" ? o = lt : p[1] !== void 0 ? o = ht : p[2] !== void 0 ? (_t.test(p[2]) && (i = RegExp("</" + p[2], "g")), o = v) : p[3] !== void 0 && (o = v) : o === v ? p[0] === ">" ? (o = i ?? T, l = -1) : p[1] === void 0 ? l = -2 : (l = o.lastIndex - p[2].length, d = p[1], o = p[3] === void 0 ? v : p[3] === '"' ? pt : dt) : o === pt || o === dt ? o = v : o === lt || o === ht ? o = T : (o = v, i = void 0);
317
+ const $ = o === v && r[c + 1].startsWith("/>") ? " " : "";
318
+ n += o === T ? a + Bt : l >= 0 ? (s.push(d), a.slice(0, l) + $t + a.slice(l) + m + $) : a + m + (l === -2 ? c : $);
319
+ }
320
+ return [vt(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
321
321
  };
322
322
  class H {
323
323
  constructor({ strings: t, _$litType$: e }, s) {
324
324
  let i;
325
325
  this.parts = [];
326
- let o = 0, n = 0;
327
- const h = t.length - 1, a = this.parts, [l, c] = Zt(t, e);
328
- if (this.el = H.createElement(l, s), w.currentNode = this.el.content, e === 2) {
329
- const d = this.el.content.firstChild;
330
- d.replaceWith(...d.childNodes);
326
+ let n = 0, o = 0;
327
+ const c = t.length - 1, a = this.parts, [d, p] = Gt(t, e);
328
+ if (this.el = H.createElement(d, s), w.currentNode = this.el.content, e === 2) {
329
+ const l = this.el.content.firstChild;
330
+ l.replaceWith(...l.childNodes);
331
331
  }
332
- for (; (i = w.nextNode()) !== null && a.length < h; ) {
332
+ for (; (i = w.nextNode()) !== null && a.length < c; ) {
333
333
  if (i.nodeType === 1) {
334
334
  if (i.hasAttributes())
335
- for (const d of i.getAttributeNames())
336
- if (d.endsWith(Et)) {
337
- const u = c[n++], m = i.getAttribute(d).split($), z = /([.?@])?(.*)/.exec(u);
338
- a.push({ type: 1, index: o, name: z[2], strings: m, ctor: z[1] === "." ? te : z[1] === "?" ? ee : z[1] === "@" ? se : V }), i.removeAttribute(d);
335
+ for (const l of i.getAttributeNames())
336
+ if (l.endsWith($t)) {
337
+ const u = p[o++], $ = i.getAttribute(l).split(m), B = /([.?@])?(.*)/.exec(u);
338
+ a.push({ type: 1, index: n, name: B[2], strings: $, ctor: B[1] === "." ? Vt : B[1] === "?" ? qt : B[1] === "@" ? Yt : q }), i.removeAttribute(l);
339
339
  } else
340
- d.startsWith($) && (a.push({ type: 6, index: o }), i.removeAttribute(d));
341
- if (Ot.test(i.tagName)) {
342
- const d = i.textContent.split($), u = d.length - 1;
340
+ l.startsWith(m) && (a.push({ type: 6, index: n }), i.removeAttribute(l));
341
+ if (_t.test(i.tagName)) {
342
+ const l = i.textContent.split(m), u = l.length - 1;
343
343
  if (u > 0) {
344
344
  i.textContent = W ? W.emptyScript : "";
345
- for (let m = 0; m < u; m++)
346
- i.append(d[m], R()), w.nextNode(), a.push({ type: 2, index: ++o });
347
- i.append(d[u], R());
345
+ for (let $ = 0; $ < u; $++)
346
+ i.append(l[$], N()), w.nextNode(), a.push({ type: 2, index: ++n });
347
+ i.append(l[u], N());
348
348
  }
349
349
  }
350
350
  } else if (i.nodeType === 8)
351
- if (i.data === St)
352
- a.push({ type: 2, index: o });
351
+ if (i.data === mt)
352
+ a.push({ type: 2, index: n });
353
353
  else {
354
- let d = -1;
355
- for (; (d = i.data.indexOf($, d + 1)) !== -1; )
356
- a.push({ type: 7, index: o }), d += $.length - 1;
354
+ let l = -1;
355
+ for (; (l = i.data.indexOf(m, l + 1)) !== -1; )
356
+ a.push({ type: 7, index: n }), l += m.length - 1;
357
357
  }
358
- o++;
358
+ n++;
359
359
  }
360
360
  }
361
361
  static createElement(t, e) {
@@ -364,14 +364,14 @@ class H {
364
364
  }
365
365
  }
366
366
  function S(r, t, e = r, s) {
367
- var n, h;
368
- if (t === C)
367
+ var o, c;
368
+ if (t === E)
369
369
  return t;
370
- let i = s !== void 0 ? (n = e._$Co) == null ? void 0 : n[s] : e._$Cl;
371
- const o = M(t) ? void 0 : t._$litDirective$;
372
- return (i == null ? void 0 : i.constructor) !== o && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), o === void 0 ? i = void 0 : (i = new o(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = S(r, i._$AS(r, t.values), i, s)), t;
370
+ let i = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
371
+ const n = M(t) ? void 0 : t._$litDirective$;
372
+ return (i == null ? void 0 : i.constructor) !== n && ((c = i == null ? void 0 : i._$AO) == null || c.call(i, !1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = S(r, i._$AS(r, t.values), i, s)), t;
373
373
  }
374
- class Qt {
374
+ class Wt {
375
375
  constructor(t, e) {
376
376
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
377
377
  }
@@ -384,13 +384,13 @@ class Qt {
384
384
  u(t) {
385
385
  const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? x).importNode(e, !0);
386
386
  w.currentNode = i;
387
- let o = w.nextNode(), n = 0, h = 0, a = s[0];
387
+ let n = w.nextNode(), o = 0, c = 0, a = s[0];
388
388
  for (; a !== void 0; ) {
389
- if (n === a.index) {
390
- let l;
391
- a.type === 2 ? l = new j(o, o.nextSibling, this, t) : a.type === 1 ? l = new a.ctor(o, a.name, a.strings, this, t) : a.type === 6 && (l = new ie(o, this, t)), this._$AV.push(l), a = s[++h];
389
+ if (o === a.index) {
390
+ let d;
391
+ a.type === 2 ? d = new L(n, n.nextSibling, this, t) : a.type === 1 ? d = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (d = new Jt(n, this, t)), this._$AV.push(d), a = s[++c];
392
392
  }
393
- n !== (a == null ? void 0 : a.index) && (o = w.nextNode(), n++);
393
+ o !== (a == null ? void 0 : a.index) && (n = w.nextNode(), o++);
394
394
  }
395
395
  return w.currentNode = x, i;
396
396
  }
@@ -400,13 +400,13 @@ class Qt {
400
400
  s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
401
401
  }
402
402
  }
403
- class j {
403
+ class L {
404
404
  get _$AU() {
405
405
  var t;
406
406
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
407
407
  }
408
408
  constructor(t, e, s, i) {
409
- this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
409
+ this.type = 2, this._$AH = h, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
410
410
  }
411
411
  get parentNode() {
412
412
  let t = this._$AA.parentNode;
@@ -420,7 +420,7 @@ class j {
420
420
  return this._$AB;
421
421
  }
422
422
  _$AI(t, e = this) {
423
- t = S(this, t, e), M(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== C && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Xt(t) ? this.T(t) : this._(t);
423
+ t = S(this, t, e), M(t) ? t === h || t == null || t === "" ? (this._$AH !== h && this._$AR(), this._$AH = h) : t !== this._$AH && t !== E && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Dt(t) ? this.T(t) : this._(t);
424
424
  }
425
425
  k(t) {
426
426
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -429,28 +429,28 @@ class j {
429
429
  this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
430
430
  }
431
431
  _(t) {
432
- this._$AH !== p && M(this._$AH) ? this._$AA.nextSibling.data = t : this.$(x.createTextNode(t)), this._$AH = t;
432
+ this._$AH !== h && M(this._$AH) ? this._$AA.nextSibling.data = t : this.$(x.createTextNode(t)), this._$AH = t;
433
433
  }
434
434
  g(t) {
435
- var o;
436
- const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = H.createElement(Tt(s.h, s.h[0]), this.options)), s);
437
- if (((o = this._$AH) == null ? void 0 : o._$AD) === i)
435
+ var n;
436
+ const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = H.createElement(vt(s.h, s.h[0]), this.options)), s);
437
+ if (((n = this._$AH) == null ? void 0 : n._$AD) === i)
438
438
  this._$AH.p(e);
439
439
  else {
440
- const n = new Qt(i, this), h = n.u(this.options);
441
- n.p(e), this.$(h), this._$AH = n;
440
+ const o = new Wt(i, this), c = o.u(this.options);
441
+ o.p(e), this.$(c), this._$AH = o;
442
442
  }
443
443
  }
444
444
  _$AC(t) {
445
- let e = $t.get(t.strings);
446
- return e === void 0 && $t.set(t.strings, e = new H(t)), e;
445
+ let e = ut.get(t.strings);
446
+ return e === void 0 && ut.set(t.strings, e = new H(t)), e;
447
447
  }
448
448
  T(t) {
449
- Pt(this._$AH) || (this._$AH = [], this._$AR());
449
+ yt(this._$AH) || (this._$AH = [], this._$AR());
450
450
  const e = this._$AH;
451
451
  let s, i = 0;
452
- for (const o of t)
453
- i === e.length ? e.push(s = new j(this.k(R()), this.k(R()), this, this.options)) : s = e[i], s._$AI(o), i++;
452
+ for (const n of t)
453
+ i === e.length ? e.push(s = new L(this.k(N()), this.k(N()), this, this.options)) : s = e[i], s._$AI(n), i++;
454
454
  i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
455
455
  }
456
456
  _$AR(t = this._$AA.nextSibling, e) {
@@ -465,65 +465,65 @@ class j {
465
465
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
466
466
  }
467
467
  }
468
- class V {
468
+ class q {
469
469
  get tagName() {
470
470
  return this.element.tagName;
471
471
  }
472
472
  get _$AU() {
473
473
  return this._$AM._$AU;
474
474
  }
475
- constructor(t, e, s, i, o) {
476
- this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = o, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = p;
475
+ constructor(t, e, s, i, n) {
476
+ this.type = 1, this._$AH = h, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = h;
477
477
  }
478
478
  _$AI(t, e = this, s, i) {
479
- const o = this.strings;
480
- let n = !1;
481
- if (o === void 0)
482
- t = S(this, t, e, 0), n = !M(t) || t !== this._$AH && t !== C, n && (this._$AH = t);
479
+ const n = this.strings;
480
+ let o = !1;
481
+ if (n === void 0)
482
+ t = S(this, t, e, 0), o = !M(t) || t !== this._$AH && t !== E, o && (this._$AH = t);
483
483
  else {
484
- const h = t;
485
- let a, l;
486
- for (t = o[0], a = 0; a < o.length - 1; a++)
487
- l = S(this, h[s + a], e, a), l === C && (l = this._$AH[a]), n || (n = !M(l) || l !== this._$AH[a]), l === p ? t = p : t !== p && (t += (l ?? "") + o[a + 1]), this._$AH[a] = l;
484
+ const c = t;
485
+ let a, d;
486
+ for (t = n[0], a = 0; a < n.length - 1; a++)
487
+ d = S(this, c[s + a], e, a), d === E && (d = this._$AH[a]), o || (o = !M(d) || d !== this._$AH[a]), d === h ? t = h : t !== h && (t += (d ?? "") + n[a + 1]), this._$AH[a] = d;
488
488
  }
489
- n && !i && this.O(t);
489
+ o && !i && this.O(t);
490
490
  }
491
491
  O(t) {
492
- t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
492
+ t === h ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
493
493
  }
494
494
  }
495
- class te extends V {
495
+ class Vt extends q {
496
496
  constructor() {
497
497
  super(...arguments), this.type = 3;
498
498
  }
499
499
  O(t) {
500
- this.element[this.name] = t === p ? void 0 : t;
500
+ this.element[this.name] = t === h ? void 0 : t;
501
501
  }
502
502
  }
503
- class ee extends V {
503
+ class qt extends q {
504
504
  constructor() {
505
505
  super(...arguments), this.type = 4;
506
506
  }
507
507
  O(t) {
508
- this.element.toggleAttribute(this.name, !!t && t !== p);
508
+ this.element.toggleAttribute(this.name, !!t && t !== h);
509
509
  }
510
510
  }
511
- class se extends V {
512
- constructor(t, e, s, i, o) {
513
- super(t, e, s, i, o), this.type = 5;
511
+ class Yt extends q {
512
+ constructor(t, e, s, i, n) {
513
+ super(t, e, s, i, n), this.type = 5;
514
514
  }
515
515
  _$AI(t, e = this) {
516
- if ((t = S(this, t, e, 0) ?? p) === C)
516
+ if ((t = S(this, t, e, 0) ?? h) === E)
517
517
  return;
518
- const s = this._$AH, i = t === p && s !== p || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== p && (s === p || i);
519
- i && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
518
+ const s = this._$AH, i = t === h && s !== h || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== h && (s === h || i);
519
+ i && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
520
520
  }
521
521
  handleEvent(t) {
522
522
  var e;
523
523
  typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
524
524
  }
525
525
  }
526
- class ie {
526
+ class Jt {
527
527
  constructor(t, e, s) {
528
528
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
529
529
  }
@@ -534,14 +534,14 @@ class ie {
534
534
  S(this, t);
535
535
  }
536
536
  }
537
- const K = N.litHtmlPolyfillSupport;
538
- K == null || K(H, j), (N.litHtmlVersions ?? (N.litHtmlVersions = [])).push("3.0.2");
539
- const re = (r, t, e) => {
537
+ const K = R.litHtmlPolyfillSupport;
538
+ K == null || K(H, L), (R.litHtmlVersions ?? (R.litHtmlVersions = [])).push("3.0.2");
539
+ const Kt = (r, t, e) => {
540
540
  const s = (e == null ? void 0 : e.renderBefore) ?? t;
541
541
  let i = s._$litPart$;
542
542
  if (i === void 0) {
543
- const o = (e == null ? void 0 : e.renderBefore) ?? null;
544
- s._$litPart$ = i = new j(t.insertBefore(R(), o), o, void 0, e ?? {});
543
+ const n = (e == null ? void 0 : e.renderBefore) ?? null;
544
+ s._$litPart$ = i = new L(t.insertBefore(N(), n), n, void 0, e ?? {});
545
545
  }
546
546
  return i._$AI(r), i;
547
547
  };
@@ -550,7 +550,7 @@ const re = (r, t, e) => {
550
550
  * Copyright 2017 Google LLC
551
551
  * SPDX-License-Identifier: BSD-3-Clause
552
552
  */
553
- let f = class extends E {
553
+ let f = class extends C {
554
554
  constructor() {
555
555
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
556
556
  }
@@ -561,7 +561,7 @@ let f = class extends E {
561
561
  }
562
562
  update(t) {
563
563
  const e = this.render();
564
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = re(e, this.renderRoot, this.renderOptions);
564
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Kt(e, this.renderRoot, this.renderOptions);
565
565
  }
566
566
  connectedCallback() {
567
567
  var t;
@@ -572,20 +572,20 @@ let f = class extends E {
572
572
  super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
573
573
  }
574
574
  render() {
575
- return C;
575
+ return E;
576
576
  }
577
577
  };
578
- var xt;
579
- f._$litElement$ = !0, f.finalized = !0, (xt = globalThis.litElementHydrateSupport) == null || xt.call(globalThis, { LitElement: f });
580
- const X = globalThis.litElementPolyfillSupport;
581
- X == null || X({ LitElement: f });
578
+ var gt;
579
+ f._$litElement$ = !0, f.finalized = !0, (gt = globalThis.litElementHydrateSupport) == null || gt.call(globalThis, { LitElement: f });
580
+ const Z = globalThis.litElementPolyfillSupport;
581
+ Z == null || Z({ LitElement: f });
582
582
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
583
583
  /**
584
584
  * @license
585
585
  * Copyright 2021 Google LLC
586
586
  * SPDX-License-Identifier: BSD-3-Clause
587
587
  */
588
- function* kt(r, t) {
588
+ function* bt(r, t) {
589
589
  if (r !== void 0) {
590
590
  let e = 0;
591
591
  for (const s of r)
@@ -597,8 +597,48 @@ function* kt(r, t) {
597
597
  * Copyright 2017 Google LLC
598
598
  * SPDX-License-Identifier: BSD-3-Clause
599
599
  */
600
- const it = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, rt = (r) => (...t) => ({ _$litDirective$: r, values: t });
601
- let Nt = class {
600
+ const Zt = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: tt }, Ft = (r = Zt, t, e) => {
601
+ const { kind: s, metadata: i } = e;
602
+ let n = globalThis.litPropertyMetadata.get(i);
603
+ if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), n.set(e.name, r), s === "accessor") {
604
+ const { name: o } = e;
605
+ return { set(c) {
606
+ const a = t.get.call(this);
607
+ t.set.call(this, c), this.requestUpdate(o, a, r);
608
+ }, init(c) {
609
+ return c !== void 0 && this.C(o, void 0, r), c;
610
+ } };
611
+ }
612
+ if (s === "setter") {
613
+ const { name: o } = e;
614
+ return function(c) {
615
+ const a = this[o];
616
+ t.call(this, c), this.requestUpdate(o, a, r);
617
+ };
618
+ }
619
+ throw Error("Unsupported decorator location: " + s);
620
+ };
621
+ function g(r) {
622
+ return (t, e) => typeof e == "object" ? Ft(r, t, e) : ((s, i, n) => {
623
+ const o = i.hasOwnProperty(n);
624
+ return i.constructor.createProperty(n, o ? { ...s, wrapped: !0 } : s), o ? Object.getOwnPropertyDescriptor(i, n) : void 0;
625
+ })(r, t, e);
626
+ }
627
+ /**
628
+ * @license
629
+ * Copyright 2017 Google LLC
630
+ * SPDX-License-Identifier: BSD-3-Clause
631
+ */
632
+ function O(r) {
633
+ return g({ ...r, state: !0, attribute: !1 });
634
+ }
635
+ /**
636
+ * @license
637
+ * Copyright 2017 Google LLC
638
+ * SPDX-License-Identifier: BSD-3-Clause
639
+ */
640
+ const At = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, wt = (r) => (...t) => ({ _$litDirective$: r, values: t });
641
+ class xt {
602
642
  constructor(t) {
603
643
  }
604
644
  get _$AU() {
@@ -613,74 +653,123 @@ let Nt = class {
613
653
  update(t, e) {
614
654
  return this.render(...e);
615
655
  }
656
+ }
657
+ /**
658
+ * @license
659
+ * Copyright 2018 Google LLC
660
+ * SPDX-License-Identifier: BSD-3-Clause
661
+ */
662
+ const Qt = wt(class extends xt {
663
+ constructor(r) {
664
+ var t;
665
+ if (super(r), r.type !== At.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
666
+ throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
667
+ }
668
+ render(r) {
669
+ return " " + Object.keys(r).filter((t) => r[t]).join(" ") + " ";
670
+ }
671
+ update(r, [t]) {
672
+ var s, i;
673
+ if (this.it === void 0) {
674
+ this.it = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.st = new Set(r.strings.join(" ").split(/\s/).filter((n) => n !== "")));
675
+ for (const n in t)
676
+ t[n] && !((s = this.st) != null && s.has(n)) && this.it.add(n);
677
+ return this.render(t);
678
+ }
679
+ const e = r.element.classList;
680
+ for (const n of this.it)
681
+ n in t || (e.remove(n), this.it.delete(n));
682
+ for (const n in t) {
683
+ const o = !!t[n];
684
+ o === this.it.has(n) || (i = this.st) != null && i.has(n) || (o ? (e.add(n), this.it.add(n)) : (e.remove(n), this.it.delete(n)));
685
+ }
686
+ return E;
687
+ }
688
+ }), D = (r, t, e) => {
689
+ r && e.style.setProperty(t, r);
690
+ }, Et = (r, t) => {
691
+ var e, s, i, n;
692
+ D((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), D(
693
+ (s = r.colors) == null ? void 0 : s.textOnPrimaryBackground,
694
+ "--text-on-primary-background",
695
+ t
696
+ ), D(
697
+ (i = r.colors) == null ? void 0 : i.secondaryBackground,
698
+ "--secondary-background",
699
+ t
700
+ ), D(
701
+ (n = r.colors) == null ? void 0 : n.textOnSecondaryBackground,
702
+ "--text-on-secondary-background",
703
+ t
704
+ );
616
705
  };
617
706
  /**
618
707
  * @license
619
708
  * Copyright 2020 Google LLC
620
709
  * SPDX-License-Identifier: BSD-3-Clause
621
710
  */
622
- const oe = (r) => r.strings === void 0;
711
+ const Xt = (r) => r.strings === void 0;
623
712
  /**
624
713
  * @license
625
714
  * Copyright 2017 Google LLC
626
715
  * SPDX-License-Identifier: BSD-3-Clause
627
716
  */
628
- const U = (r, t) => {
717
+ const k = (r, t) => {
629
718
  var s;
630
719
  const e = r._$AN;
631
720
  if (e === void 0)
632
721
  return !1;
633
722
  for (const i of e)
634
- (s = i._$AO) == null || s.call(i, t, !1), U(i, t);
723
+ (s = i._$AO) == null || s.call(i, t, !1), k(i, t);
635
724
  return !0;
636
- }, G = (r) => {
725
+ }, V = (r) => {
637
726
  let t, e;
638
727
  do {
639
728
  if ((t = r._$AM) === void 0)
640
729
  break;
641
730
  e = t._$AN, e.delete(r), r = t;
642
731
  } while ((e == null ? void 0 : e.size) === 0);
643
- }, Ut = (r) => {
732
+ }, Ct = (r) => {
644
733
  for (let t; t = r._$AM; r = t) {
645
734
  let e = t._$AN;
646
735
  if (e === void 0)
647
736
  t._$AN = e = /* @__PURE__ */ new Set();
648
737
  else if (e.has(r))
649
738
  break;
650
- e.add(r), he(t);
739
+ e.add(r), se(t);
651
740
  }
652
741
  };
653
- function ne(r) {
654
- this._$AN !== void 0 ? (G(this), this._$AM = r, Ut(this)) : this._$AM = r;
742
+ function te(r) {
743
+ this._$AN !== void 0 ? (V(this), this._$AM = r, Ct(this)) : this._$AM = r;
655
744
  }
656
- function ae(r, t = !1, e = 0) {
745
+ function ee(r, t = !1, e = 0) {
657
746
  const s = this._$AH, i = this._$AN;
658
747
  if (i !== void 0 && i.size !== 0)
659
748
  if (t)
660
749
  if (Array.isArray(s))
661
- for (let o = e; o < s.length; o++)
662
- U(s[o], !1), G(s[o]);
750
+ for (let n = e; n < s.length; n++)
751
+ k(s[n], !1), V(s[n]);
663
752
  else
664
- s != null && (U(s, !1), G(s));
753
+ s != null && (k(s, !1), V(s));
665
754
  else
666
- U(this, r);
755
+ k(this, r);
667
756
  }
668
- const he = (r) => {
669
- r.type == it.CHILD && (r._$AP ?? (r._$AP = ae), r._$AQ ?? (r._$AQ = ne));
757
+ const se = (r) => {
758
+ r.type == At.CHILD && (r._$AP ?? (r._$AP = ee), r._$AQ ?? (r._$AQ = te));
670
759
  };
671
- class Rt extends Nt {
760
+ class ie extends xt {
672
761
  constructor() {
673
762
  super(...arguments), this._$AN = void 0;
674
763
  }
675
764
  _$AT(t, e, s) {
676
- super._$AT(t, e, s), Ut(this), this.isConnected = t._$AU;
765
+ super._$AT(t, e, s), Ct(this), this.isConnected = t._$AU;
677
766
  }
678
767
  _$AO(t, e = !0) {
679
768
  var s, i;
680
- t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (i = this.disconnected) == null || i.call(this)), e && (U(this, t), G(this));
769
+ t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (i = this.disconnected) == null || i.call(this)), e && (k(this, t), V(this));
681
770
  }
682
771
  setValue(t) {
683
- if (oe(this._$Ct))
772
+ if (Xt(this._$Ct))
684
773
  this._$Ct._$AI(t, this);
685
774
  else {
686
775
  const e = [...this._$Ct._$AH];
@@ -692,328 +781,34 @@ class Rt extends Nt {
692
781
  reconnected() {
693
782
  }
694
783
  }
695
- const le = /* @__PURE__ */ new WeakMap();
696
- let yt = 0;
697
- const J = /* @__PURE__ */ new Map(), vt = /* @__PURE__ */ new WeakSet(), _t = () => new Promise((r) => requestAnimationFrame(r)), ce = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], bt = (r, t) => {
698
- const e = r - t;
699
- return e === 0 ? void 0 : e;
700
- }, At = (r, t) => {
701
- const e = r / t;
702
- return e === 1 ? void 0 : e;
703
- }, Z = { left: (r, t) => {
704
- const e = bt(r, t);
705
- return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
706
- }, top: (r, t) => {
707
- const e = bt(r, t);
708
- return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
709
- }, width: (r, t) => {
710
- let e;
711
- t === 0 && (t = 1, e = { width: "1px" });
712
- const s = At(r, t);
713
- return { value: s, overrideFrom: e, transform: s == null || isNaN(s) ? void 0 : `scaleX(${s})` };
714
- }, height: (r, t) => {
715
- let e;
716
- t === 0 && (t = 1, e = { height: "1px" });
717
- const s = At(r, t);
718
- return { value: s, overrideFrom: e, transform: s == null || isNaN(s) ? void 0 : `scaleY(${s})` };
719
- } }, de = { duration: 333, easing: "ease-in-out" }, pe = ["left", "top", "width", "height", "opacity", "color", "background"], wt = /* @__PURE__ */ new WeakMap();
720
- class ue extends Rt {
721
- constructor(t) {
722
- if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === it.CHILD)
723
- throw Error("The `animate` directive must be used in attribute position.");
724
- this.createFinished();
725
- }
726
- createFinished() {
727
- var t;
728
- (t = this.resolveFinished) == null || t.call(this), this.finished = new Promise((e) => {
729
- this.h = e;
730
- });
731
- }
732
- async resolveFinished() {
733
- var t;
734
- (t = this.h) == null || t.call(this), this.h = void 0;
735
- }
736
- render(t) {
737
- return p;
738
- }
739
- getController() {
740
- return le.get(this.l);
741
- }
742
- isDisabled() {
743
- var t;
744
- return this.options.disabled || ((t = this.getController()) == null ? void 0 : t.disabled);
745
- }
746
- update(t, [e]) {
747
- var i;
748
- const s = this.l === void 0;
749
- return s && (this.l = (i = t.options) == null ? void 0 : i.host, this.l.addController(this), this.element = t.element, wt.set(this.element, this)), this.optionsOrCallback = e, (s || typeof e != "function") && this.u(e), this.render(e);
750
- }
751
- u(t) {
752
- t = t ?? {};
753
- const e = this.getController();
754
- e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = pe), this.options = t;
755
- }
756
- p() {
757
- const t = {}, e = this.element.getBoundingClientRect(), s = getComputedStyle(this.element);
758
- return this.options.properties.forEach((i) => {
759
- const o = e[i] ?? (Z[i] ? void 0 : s[i]), n = Number(o);
760
- t[i] = isNaN(n) ? o + "" : n;
761
- }), t;
762
- }
763
- m() {
764
- let t, e = !0;
765
- return this.options.guard && (t = this.options.guard(), e = ((s, i) => {
766
- if (Array.isArray(s)) {
767
- if (Array.isArray(i) && i.length === s.length && s.every((o, n) => o === i[n]))
768
- return !1;
769
- } else if (i === s)
770
- return !1;
771
- return !0;
772
- })(t, this.v)), this.o = this.l.hasUpdated && !this.isDisabled() && !this.isAnimating() && e && this.element.isConnected, this.o && (this.v = Array.isArray(t) ? Array.from(t) : t), this.o;
773
- }
774
- hostUpdate() {
775
- typeof this.optionsOrCallback == "function" && this.u(this.optionsOrCallback()), this.m() && (this.g = this.p(), this.t = this.t ?? this.element.parentNode, this.i = this.element.nextSibling);
776
- }
777
- async hostUpdated() {
778
- if (!this.o || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
779
- return;
780
- let t;
781
- this.prepare(), await _t;
782
- const e = this._(), s = this.A(this.options.keyframeOptions, e), i = this.p();
783
- if (this.g !== void 0) {
784
- const { from: o, to: n } = this.O(this.g, i, e);
785
- this.log("measured", [this.g, i, o, n]), t = this.calculateKeyframes(o, n);
786
- } else {
787
- const o = J.get(this.options.inId);
788
- if (o) {
789
- J.delete(this.options.inId);
790
- const { from: n, to: h } = this.O(o, i, e);
791
- t = this.calculateKeyframes(n, h), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, yt++, t.forEach((a) => a.zIndex = yt);
792
- } else
793
- this.options.in && (t = [...this.options.in, {}]);
794
- }
795
- this.animate(t, s);
796
- }
797
- resetStyles() {
798
- this.j !== void 0 && (this.element.setAttribute("style", this.j ?? ""), this.j = void 0);
799
- }
800
- commitStyles() {
801
- var t, e;
802
- this.j = this.element.getAttribute("style"), (t = this.webAnimation) == null || t.commitStyles(), (e = this.webAnimation) == null || e.cancel();
803
- }
804
- reconnected() {
805
- }
806
- async disconnected() {
807
- var e;
808
- if (!this.o || (this.options.id !== void 0 && J.set(this.options.id, this.g), this.options.out === void 0))
809
- return;
810
- if (this.prepare(), await _t(), (e = this.t) == null ? void 0 : e.isConnected) {
811
- const s = this.i && this.i.parentNode === this.t ? this.i : null;
812
- if (this.t.insertBefore(this.element, s), this.options.stabilizeOut) {
813
- const i = this.p();
814
- this.log("stabilizing out");
815
- const o = this.g.left - i.left, n = this.g.top - i.top;
816
- getComputedStyle(this.element).position !== "static" || o === 0 && n === 0 || (this.element.style.position = "relative"), o !== 0 && (this.element.style.left = o + "px"), n !== 0 && (this.element.style.top = n + "px");
817
- }
818
- }
819
- const t = this.A(this.options.keyframeOptions);
820
- await this.animate(this.options.out, t), this.element.remove();
821
- }
822
- prepare() {
823
- this.createFinished();
824
- }
825
- start() {
826
- var t, e;
827
- (e = (t = this.options).onStart) == null || e.call(t, this);
828
- }
829
- didFinish(t) {
830
- var e, s;
831
- t && ((s = (e = this.options).onComplete) == null || s.call(e, this)), this.g = void 0, this.animatingProperties = void 0, this.frames = void 0, this.resolveFinished();
832
- }
833
- _() {
834
- const t = [];
835
- for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
836
- const s = wt.get(e);
837
- s && !s.isDisabled() && s && t.push(s);
838
- }
839
- return t;
840
- }
841
- get isHostRendered() {
842
- const t = vt.has(this.l);
843
- return t || this.l.updateComplete.then(() => {
844
- vt.add(this.l);
845
- }), t;
846
- }
847
- A(t, e = this._()) {
848
- const s = { ...de };
849
- return e.forEach((i) => Object.assign(s, i.options.keyframeOptions)), Object.assign(s, t), s;
850
- }
851
- O(t, e, s) {
852
- t = { ...t }, e = { ...e };
853
- const i = s.map((h) => h.animatingProperties).filter((h) => h !== void 0);
854
- let o = 1, n = 1;
855
- return i !== void 0 && (i.forEach((h) => {
856
- h.width && (o /= h.width), h.height && (n /= h.height);
857
- }), t.left !== void 0 && e.left !== void 0 && (t.left = o * t.left, e.left = o * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = n * t.top, e.top = n * e.top)), { from: t, to: e };
858
- }
859
- calculateKeyframes(t, e, s = !1) {
860
- const i = {}, o = {};
861
- let n = !1;
862
- const h = {};
863
- for (const a in e) {
864
- const l = t[a], c = e[a];
865
- if (a in Z) {
866
- const d = Z[a];
867
- if (l === void 0 || c === void 0)
868
- continue;
869
- const u = d(l, c);
870
- u.transform !== void 0 && (h[a] = u.value, n = !0, i.transform = `${i.transform ?? ""} ${u.transform}`, u.overrideFrom !== void 0 && Object.assign(i, u.overrideFrom));
871
- } else
872
- l !== c && l !== void 0 && c !== void 0 && (n = !0, i[a] = l, o[a] = c);
873
- }
874
- return i.transformOrigin = o.transformOrigin = s ? "center center" : "top left", this.animatingProperties = h, n ? [i, o] : void 0;
875
- }
876
- async animate(t, e = this.options.keyframeOptions) {
877
- this.start(), this.frames = t;
878
- let s = !1;
879
- if (!this.isAnimating() && !this.isDisabled() && (this.options.onFrames && (this.frames = t = this.options.onFrames(this), this.log("modified frames", t)), t !== void 0)) {
880
- this.log("animate", [t, e]), s = !0, this.webAnimation = this.element.animate(t, e);
881
- const i = this.getController();
882
- i == null || i.add(this);
883
- try {
884
- await this.webAnimation.finished;
885
- } catch {
886
- }
887
- i == null || i.remove(this);
888
- }
889
- return this.didFinish(s), s;
890
- }
891
- isAnimating() {
892
- var t, e;
893
- return ((t = this.webAnimation) == null ? void 0 : t.playState) === "running" || ((e = this.webAnimation) == null ? void 0 : e.pending);
894
- }
895
- log(t, e) {
896
- this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
897
- }
898
- }
899
- const ge = rt(ue);
900
- /**
901
- * @license
902
- * Copyright 2017 Google LLC
903
- * SPDX-License-Identifier: BSD-3-Clause
904
- */
905
- const fe = { attribute: !0, type: String, converter: F, reflect: !1, hasChanged: st }, me = (r = fe, t, e) => {
906
- const { kind: s, metadata: i } = e;
907
- let o = globalThis.litPropertyMetadata.get(i);
908
- if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), o.set(e.name, r), s === "accessor") {
909
- const { name: n } = e;
910
- return { set(h) {
911
- const a = t.get.call(this);
912
- t.set.call(this, h), this.requestUpdate(n, a, r);
913
- }, init(h) {
914
- return h !== void 0 && this.C(n, void 0, r), h;
915
- } };
916
- }
917
- if (s === "setter") {
918
- const { name: n } = e;
919
- return function(h) {
920
- const a = this[n];
921
- t.call(this, h), this.requestUpdate(n, a, r);
922
- };
923
- }
924
- throw Error("Unsupported decorator location: " + s);
925
- };
926
- function g(r) {
927
- return (t, e) => typeof e == "object" ? me(r, t, e) : ((s, i, o) => {
928
- const n = i.hasOwnProperty(o);
929
- return i.constructor.createProperty(o, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(i, o) : void 0;
930
- })(r, t, e);
931
- }
932
- /**
933
- * @license
934
- * Copyright 2017 Google LLC
935
- * SPDX-License-Identifier: BSD-3-Clause
936
- */
937
- function O(r) {
938
- return g({ ...r, state: !0, attribute: !1 });
939
- }
940
- /**
941
- * @license
942
- * Copyright 2018 Google LLC
943
- * SPDX-License-Identifier: BSD-3-Clause
944
- */
945
- const $e = rt(class extends Nt {
946
- constructor(r) {
947
- var t;
948
- if (super(r), r.type !== it.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
949
- throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
950
- }
951
- render(r) {
952
- return " " + Object.keys(r).filter((t) => r[t]).join(" ") + " ";
953
- }
954
- update(r, [t]) {
955
- var s, i;
956
- if (this.it === void 0) {
957
- this.it = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.st = new Set(r.strings.join(" ").split(/\s/).filter((o) => o !== "")));
958
- for (const o in t)
959
- t[o] && !((s = this.st) != null && s.has(o)) && this.it.add(o);
960
- return this.render(t);
961
- }
962
- const e = r.element.classList;
963
- for (const o of this.it)
964
- o in t || (e.remove(o), this.it.delete(o));
965
- for (const o in t) {
966
- const n = !!t[o];
967
- n === this.it.has(o) || (i = this.st) != null && i.has(o) || (n ? (e.add(o), this.it.add(o)) : (e.remove(o), this.it.delete(o)));
968
- }
969
- return C;
970
- }
971
- }), B = (r, t, e) => {
972
- r && e.style.setProperty(t, r);
973
- }, Mt = (r, t) => {
974
- var e, s, i, o;
975
- B((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), B(
976
- (s = r.colors) == null ? void 0 : s.textOnPrimaryBackground,
977
- "--text-on-primary-background",
978
- t
979
- ), B(
980
- (i = r.colors) == null ? void 0 : i.secondaryBackground,
981
- "--secondary-background",
982
- t
983
- ), B(
984
- (o = r.colors) == null ? void 0 : o.textOnSecondaryBackground,
985
- "--text-on-secondary-background",
986
- t
987
- );
988
- };
989
784
  /**
990
785
  * @license
991
786
  * Copyright 2020 Google LLC
992
787
  * SPDX-License-Identifier: BSD-3-Clause
993
788
  */
994
- const Ht = () => new ye();
995
- class ye {
789
+ const St = () => new re();
790
+ class re {
996
791
  }
997
- const Q = /* @__PURE__ */ new WeakMap(), jt = rt(class extends Rt {
792
+ const F = /* @__PURE__ */ new WeakMap(), Pt = wt(class extends ie {
998
793
  render(r) {
999
- return p;
794
+ return h;
1000
795
  }
1001
796
  update(r, [t]) {
1002
797
  var s;
1003
798
  const e = t !== this.G;
1004
- return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (s = r.options) == null ? void 0 : s.host, this.ot(this.lt = r.element)), p;
799
+ return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (s = r.options) == null ? void 0 : s.host, this.ot(this.lt = r.element)), h;
1005
800
  }
1006
801
  ot(r) {
1007
802
  if (typeof this.G == "function") {
1008
803
  const t = this.ct ?? globalThis;
1009
- let e = Q.get(t);
1010
- e === void 0 && (e = /* @__PURE__ */ new WeakMap(), Q.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ct, void 0), e.set(this.G, r), r !== void 0 && this.G.call(this.ct, r);
804
+ let e = F.get(t);
805
+ e === void 0 && (e = /* @__PURE__ */ new WeakMap(), F.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ct, void 0), e.set(this.G, r), r !== void 0 && this.G.call(this.ct, r);
1011
806
  } else
1012
807
  this.G.value = r;
1013
808
  }
1014
809
  get rt() {
1015
810
  var r, t;
1016
- return typeof this.G == "function" ? (r = Q.get(this.ct ?? globalThis)) == null ? void 0 : r.get(this.G) : (t = this.G) == null ? void 0 : t.value;
811
+ return typeof this.G == "function" ? (r = F.get(this.ct ?? globalThis)) == null ? void 0 : r.get(this.G) : (t = this.G) == null ? void 0 : t.value;
1017
812
  }
1018
813
  disconnected() {
1019
814
  this.rt === this.lt && this.ot(void 0);
@@ -1022,14 +817,14 @@ const Q = /* @__PURE__ */ new WeakMap(), jt = rt(class extends Rt {
1022
817
  this.ot(this.lt);
1023
818
  }
1024
819
  });
1025
- var ve = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, L = (r, t, e, s) => {
1026
- for (var i = s > 1 ? void 0 : s ? _e(t, e) : t, o = r.length - 1, n; o >= 0; o--)
1027
- (n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
1028
- return s && i && ve(t, e, i), i;
820
+ var ne = Object.defineProperty, oe = Object.getOwnPropertyDescriptor, j = (r, t, e, s) => {
821
+ for (var i = s > 1 ? void 0 : s ? oe(t, e) : t, n = r.length - 1, o; n >= 0; n--)
822
+ (o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
823
+ return s && i && ne(t, e, i), i;
1029
824
  };
1030
- class v extends f {
825
+ class _ extends f {
1031
826
  constructor() {
1032
- super(...arguments), this.active = !1, this.loaded = !1, this.offset = 0, this.buttonRef = Ht();
827
+ super(...arguments), this.active = !1, this.loaded = !1, this.offset = 0, this.buttonRef = St();
1033
828
  }
1034
829
  async connectedCallback() {
1035
830
  super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding(), this.offset > 0 && this.buttonRef.value && (this.buttonRef.value.style.right = `calc(${this.offset}px + 20px)`);
@@ -1046,30 +841,30 @@ class v extends f {
1046
841
  }
1047
842
  _applyBranding() {
1048
843
  var t;
1049
- (t = this.application) != null && t.settings && Mt(this.application.settings.branding, this);
844
+ (t = this.application) != null && t.settings && Et(this.application.settings.branding, this);
1050
845
  }
1051
846
  async _renderSymbol() {
1052
- var h, a, l;
1053
- const t = (h = this.application) == null ? void 0 : h.branding(), e = (a = t == null ? void 0 : t.graphics) == null ? void 0 : a.trigger;
847
+ var c, a, d;
848
+ const t = (c = this.application) == null ? void 0 : c.branding(), e = (a = t == null ? void 0 : t.graphics) == null ? void 0 : a.trigger;
1054
849
  if (e)
1055
850
  return A` <img src=${e} class="trigger-icon" alt="" /> `;
1056
- const s = (l = this.application) == null ? void 0 : l.triggerIcon;
851
+ const s = (d = this.application) == null ? void 0 : d.triggerIcon;
1057
852
  if (!s)
1058
- return p;
1059
- const i = async (c) => await import("./index-5087564d.mjs").then(
1060
- (u) => u[c]
1061
- ), { type: o, content: n } = s;
1062
- switch (o) {
853
+ return h;
854
+ const i = async (p) => await import("./index-5087564d.mjs").then(
855
+ (u) => u[p]
856
+ ), { type: n, content: o } = s;
857
+ switch (n) {
1063
858
  case "Telia": {
1064
- const c = await i(n);
1065
- return c ? A`<telia-icon
859
+ const p = await i(o);
860
+ return p ? A`<telia-icon
1066
861
  class="trigger-icon"
1067
- svg=${c.svg}
862
+ svg=${p.svg}
1068
863
  size="lg"
1069
- ></telia-icon>` : p;
864
+ ></telia-icon>` : h;
1070
865
  }
1071
866
  default:
1072
- return p;
867
+ return h;
1073
868
  }
1074
869
  }
1075
870
  setOffset(t) {
@@ -1078,29 +873,20 @@ class v extends f {
1078
873
  render() {
1079
874
  var t, e, s, i;
1080
875
  return A`<div class="trigger-container">
1081
- ${!this.active && ((i = (s = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : s.other) != null && i.showButtonLabel) ? A`
1082
- <button
1083
- class="trigger-label"
1084
- @click=${this._toggleActive}
1085
- ${ge({
1086
- keyframeOptions: {},
1087
- in: ce,
1088
- stabilizeOut: !0,
1089
- skipInitial: !1
1090
- })}
1091
- >
876
+ ${(i = (s = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : s.other) != null && i.showButtonLabel ? A`
877
+ <button class="trigger-label" @click=${this._toggleActive}>
1092
878
  ${this.application.settings.branding.other.buttonLabelText}
1093
879
  </button>
1094
- ` : p}
880
+ ` : h}
1095
881
 
1096
882
  <button
1097
- class=${$e({
883
+ class=${Qt({
1098
884
  trigger: !0,
1099
885
  active: this.active,
1100
886
  rendered: this.loaded
1101
887
  })}
1102
888
  @click=${this._toggleActive}
1103
- ${jt(this.buttonRef)}
889
+ ${Pt(this.buttonRef)}
1104
890
  >
1105
891
  ${this.icon}
1106
892
  <span class="trigger-close">
@@ -1134,7 +920,7 @@ class v extends f {
1134
920
  </div>`;
1135
921
  }
1136
922
  }
1137
- v.styles = [
923
+ _.styles = [
1138
924
  P`
1139
925
  :host {
1140
926
  --voca-rem-multiplier: 0.625;
@@ -1175,10 +961,7 @@ v.styles = [
1175
961
  box-sizing: border-box;
1176
962
  transition: transform 200ms ease-out;
1177
963
  }
1178
- .trigger:active {
1179
- transform: scale(0.8) !important;
1180
- }
1181
- .trigger:hover:not(:active) {
964
+ .trigger:hover {
1182
965
  transform: scale(1.1) !important;
1183
966
  }
1184
967
  .trigger.rendered {
@@ -1244,27 +1027,27 @@ v.styles = [
1244
1027
  }
1245
1028
  `
1246
1029
  ];
1247
- L([
1030
+ j([
1248
1031
  g({ attribute: !1 })
1249
- ], v.prototype, "application", 2);
1250
- L([
1032
+ ], _.prototype, "application", 2);
1033
+ j([
1251
1034
  O()
1252
- ], v.prototype, "active", 2);
1253
- L([
1035
+ ], _.prototype, "active", 2);
1036
+ j([
1254
1037
  O()
1255
- ], v.prototype, "loaded", 2);
1256
- L([
1038
+ ], _.prototype, "loaded", 2);
1039
+ j([
1257
1040
  O()
1258
- ], v.prototype, "icon", 2);
1259
- L([
1041
+ ], _.prototype, "icon", 2);
1042
+ j([
1260
1043
  O()
1261
- ], v.prototype, "offset", 2);
1262
- var be = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, b = (r, t, e, s) => {
1263
- for (var i = s > 1 ? void 0 : s ? Ae(t, e) : t, o = r.length - 1, n; o >= 0; o--)
1264
- (n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
1265
- return s && i && be(t, e, i), i;
1044
+ ], _.prototype, "offset", 2);
1045
+ var ae = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, b = (r, t, e, s) => {
1046
+ for (var i = s > 1 ? void 0 : s ? ce(t, e) : t, n = r.length - 1, o; n >= 0; n--)
1047
+ (o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
1048
+ return s && i && ae(t, e, i), i;
1266
1049
  };
1267
- const Lt = (r) => {
1050
+ const Ot = (r) => {
1268
1051
  class t extends r {
1269
1052
  constructor() {
1270
1053
  super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
@@ -1319,26 +1102,26 @@ const Lt = (r) => {
1319
1102
  g({ attribute: !1 })
1320
1103
  ], t.prototype, "parent", 2), t;
1321
1104
  };
1322
- class Dt extends Lt(f) {
1105
+ class Tt extends Ot(f) {
1323
1106
  render() {
1324
1107
  return A`Non resolved component`;
1325
1108
  }
1326
1109
  }
1327
- Dt.styles = [
1110
+ Tt.styles = [
1328
1111
  P`
1329
1112
  :host {
1330
1113
  display: block;
1331
1114
  }
1332
1115
  `
1333
1116
  ];
1334
- var ot = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(ot || {}), we = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, Ce = (r, t, e, s) => {
1335
- for (var i = s > 1 ? void 0 : s ? xe(t, e) : t, o = r.length - 1, n; o >= 0; o--)
1336
- (n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
1337
- return s && i && we(t, e, i), i;
1117
+ var et = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(et || {}), le = Object.defineProperty, he = Object.getOwnPropertyDescriptor, de = (r, t, e, s) => {
1118
+ for (var i = s > 1 ? void 0 : s ? he(t, e) : t, n = r.length - 1, o; n >= 0; n--)
1119
+ (o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
1120
+ return s && i && le(t, e, i), i;
1338
1121
  };
1339
- class nt extends f {
1122
+ class st extends f {
1340
1123
  constructor() {
1341
- super(...arguments), this.nodes = [], this.wrapperRef = Ht();
1124
+ super(...arguments), this.nodes = [], this.wrapperRef = St();
1342
1125
  }
1343
1126
  addChild(t) {
1344
1127
  t.parent = this, this.nodes.push(t);
@@ -1347,7 +1130,7 @@ class nt extends f {
1347
1130
  if (!this.wrapperRef.value)
1348
1131
  return;
1349
1132
  const t = this.application.settings;
1350
- t != null && t.branding && Mt(t.branding, this.wrapperRef.value);
1133
+ t != null && t.branding && Et(t.branding, this.wrapperRef.value);
1351
1134
  }
1352
1135
  applyStyles() {
1353
1136
  if (!this.wrapperRef.value)
@@ -1361,12 +1144,12 @@ class nt extends f {
1361
1144
  this.applyBranding(), this.applyStyles();
1362
1145
  }
1363
1146
  render() {
1364
- return this.application.renderStrategy === ot.Trigger && this.renderRoot.host.classList.add("floating"), A`<div class="widget-container" ${jt(this.wrapperRef)}>
1365
- ${kt(this.nodes, (t) => t)}
1147
+ return this.application.renderStrategy === et.Trigger && this.renderRoot.host.classList.add("floating"), A`<div class="widget-container" ${Pt(this.wrapperRef)}>
1148
+ ${bt(this.nodes, (t) => t)}
1366
1149
  </div>`;
1367
1150
  }
1368
1151
  }
1369
- nt.styles = P`
1152
+ st.styles = P`
1370
1153
  :host {
1371
1154
  --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
1372
1155
  --spacing-xs: 0.2rem;
@@ -1458,15 +1241,15 @@ nt.styles = P`
1458
1241
  animation: slideDown 0.3s linear;
1459
1242
  }
1460
1243
  `;
1461
- Ce([
1244
+ de([
1462
1245
  g({ attribute: !1 })
1463
- ], nt.prototype, "application", 2);
1464
- var Ee = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, at = (r, t, e, s) => {
1465
- for (var i = s > 1 ? void 0 : s ? Se(t, e) : t, o = r.length - 1, n; o >= 0; o--)
1466
- (n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
1467
- return s && i && Ee(t, e, i), i;
1246
+ ], st.prototype, "application", 2);
1247
+ var pe = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, it = (r, t, e, s) => {
1248
+ for (var i = s > 1 ? void 0 : s ? ue(t, e) : t, n = r.length - 1, o; n >= 0; n--)
1249
+ (o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
1250
+ return s && i && pe(t, e, i), i;
1468
1251
  };
1469
- class D extends f {
1252
+ class z extends f {
1470
1253
  constructor() {
1471
1254
  super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
1472
1255
  }
@@ -1490,58 +1273,58 @@ class D extends f {
1490
1273
  }
1491
1274
  render() {
1492
1275
  if (!this.widget || this.status !== "activated")
1493
- return p;
1494
- if (this.widget.renderStrategy === ot.Trigger) {
1495
- const t = new v();
1276
+ return h;
1277
+ if (this.widget.renderStrategy === et.Trigger) {
1278
+ const t = new _();
1496
1279
  return t.application = this.widget, t;
1497
1280
  }
1498
1281
  return this.widget.render();
1499
1282
  }
1500
1283
  }
1501
- D.styles = [
1284
+ z.styles = [
1502
1285
  P`
1503
1286
  :host {
1504
1287
  display: block;
1505
1288
  }
1506
1289
  `
1507
1290
  ];
1508
- at([
1291
+ it([
1509
1292
  g({ attribute: !0 })
1510
- ], D.prototype, "name", 2);
1511
- at([
1293
+ ], z.prototype, "name", 2);
1294
+ it([
1512
1295
  O()
1513
- ], D.prototype, "widget", 2);
1514
- at([
1296
+ ], z.prototype, "widget", 2);
1297
+ it([
1515
1298
  O()
1516
- ], D.prototype, "status", 2);
1517
- customElements.get("ace-trigger") || customElements.define("ace-trigger", v);
1518
- customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Dt);
1519
- customElements.get("ace-wrapper") || customElements.define("ace-wrapper", nt);
1520
- customElements.get("ace-widget") || customElements.define("ace-widget", D);
1521
- const Pe = (r) => {
1299
+ ], z.prototype, "status", 2);
1300
+ customElements.get("ace-trigger") || customElements.define("ace-trigger", _);
1301
+ customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Tt);
1302
+ customElements.get("ace-wrapper") || customElements.define("ace-wrapper", st);
1303
+ customElements.get("ace-widget") || customElements.define("ace-widget", z);
1304
+ const ge = (r) => {
1522
1305
  const t = {};
1523
1306
  return Object.keys(r).forEach((e) => {
1524
1307
  e.indexOf("css-") > -1 && (t[e] = r[e]);
1525
1308
  }), t;
1526
- }, Oe = (r, t) => {
1527
- const e = Pe(t);
1309
+ }, fe = (r, t) => {
1310
+ const e = ge(t);
1528
1311
  Object.entries(e).forEach(([s, i]) => {
1529
1312
  r.style.setProperty(s.replace("css-", ""), i);
1530
1313
  });
1531
1314
  };
1532
- class Te extends Lt(f) {
1315
+ class $e extends Ot(f) {
1533
1316
  constructor() {
1534
1317
  super(...arguments), this.nodes = [];
1535
1318
  }
1536
1319
  render() {
1537
1320
  var t;
1538
- return Oe(this.renderRoot.host, this.properties), this.renderRoot.host.style.setProperty(
1321
+ return fe(this.renderRoot.host, this.properties), this.renderRoot.host.style.setProperty(
1539
1322
  "--columns",
1540
1323
  ((t = this.properties.columns) == null ? void 0 : t.toString()) || "1"
1541
- ), A`${kt(this.nodes, (e) => e)}`;
1324
+ ), A`${bt(this.nodes, (e) => e)}`;
1542
1325
  }
1543
1326
  }
1544
- Te.styles = [
1327
+ $e.styles = [
1545
1328
  P`
1546
1329
  :host {
1547
1330
  height: 100%;
@@ -1555,6 +1338,6 @@ Te.styles = [
1555
1338
  `
1556
1339
  ];
1557
1340
  export {
1558
- Te as Area,
1559
- Te as default
1341
+ $e as Area,
1342
+ $e as default
1560
1343
  };