@telia-ace/widget-core-flamingo 1.1.22-rc.0 → 1.1.22-rc.2

Sign up to get free protection for your applications and to get access to all the features.
package/index.mjs CHANGED
@@ -2,8 +2,8 @@ var ht = function(i, t) {
2
2
  return ht = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
3
3
  e.__proto__ = r;
4
4
  } || function(e, r) {
5
- for (var n in r)
6
- Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
5
+ for (var s in r)
6
+ Object.prototype.hasOwnProperty.call(r, s) && (e[s] = r[s]);
7
7
  }, ht(i, t);
8
8
  };
9
9
  function L(i, t) {
@@ -31,27 +31,27 @@ function F(i, t) {
31
31
  var e = typeof Symbol == "function" && i[Symbol.iterator];
32
32
  if (!e)
33
33
  return i;
34
- var r = e.call(i), n, s = [], o;
34
+ var r = e.call(i), s, n = [], o;
35
35
  try {
36
- for (; (t === void 0 || t-- > 0) && !(n = r.next()).done; )
37
- s.push(n.value);
36
+ for (; (t === void 0 || t-- > 0) && !(s = r.next()).done; )
37
+ n.push(s.value);
38
38
  } catch (a) {
39
39
  o = { error: a };
40
40
  } finally {
41
41
  try {
42
- n && !n.done && (e = r.return) && e.call(r);
42
+ s && !s.done && (e = r.return) && e.call(r);
43
43
  } finally {
44
44
  if (o)
45
45
  throw o.error;
46
46
  }
47
47
  }
48
- return s;
48
+ return n;
49
49
  }
50
50
  function J(i, t, e) {
51
51
  if (e || arguments.length === 2)
52
- for (var r = 0, n = t.length, s; r < n; r++)
53
- (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
54
- return i.concat(s || Array.prototype.slice.call(t));
52
+ for (var r = 0, s = t.length, n; r < s; r++)
53
+ (n || !(r in t)) && (n || (n = Array.prototype.slice.call(t, 0, r)), n[r] = t[r]);
54
+ return i.concat(n || Array.prototype.slice.call(t));
55
55
  }
56
56
  function m(i) {
57
57
  return typeof i == "function";
@@ -65,8 +65,8 @@ function Nt(i) {
65
65
  var it = Nt(function(i) {
66
66
  return function(e) {
67
67
  i(this), this.message = e ? e.length + ` errors occurred during unsubscription:
68
- ` + e.map(function(r, n) {
69
- return n + 1 + ") " + r.toString();
68
+ ` + e.map(function(r, s) {
69
+ return s + 1 + ") " + r.toString();
70
70
  }).join(`
71
71
  `) : "", this.name = "UnsubscriptionError", this.errors = e;
72
72
  };
@@ -82,7 +82,7 @@ var X = function() {
82
82
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
83
83
  }
84
84
  return i.prototype.unsubscribe = function() {
85
- var t, e, r, n, s;
85
+ var t, e, r, s, n;
86
86
  if (!this.closed) {
87
87
  this.closed = !0;
88
88
  var o = this._parentage;
@@ -110,7 +110,7 @@ var X = function() {
110
110
  try {
111
111
  p();
112
112
  } catch (v) {
113
- s = v instanceof it ? v.errors : [v];
113
+ n = v instanceof it ? v.errors : [v];
114
114
  }
115
115
  var l = this._finalizers;
116
116
  if (l) {
@@ -121,22 +121,22 @@ var X = function() {
121
121
  try {
122
122
  $t(g);
123
123
  } catch (v) {
124
- s = s ?? [], v instanceof it ? s = J(J([], F(s)), F(v.errors)) : s.push(v);
124
+ n = n ?? [], v instanceof it ? n = J(J([], F(n)), F(v.errors)) : n.push(v);
125
125
  }
126
126
  }
127
127
  } catch (v) {
128
128
  r = { error: v };
129
129
  } finally {
130
130
  try {
131
- u && !u.done && (n = f.return) && n.call(f);
131
+ u && !u.done && (s = f.return) && s.call(f);
132
132
  } finally {
133
133
  if (r)
134
134
  throw r.error;
135
135
  }
136
136
  }
137
137
  }
138
- if (s)
139
- throw new it(s);
138
+ if (n)
139
+ throw new it(n);
140
140
  }
141
141
  }, i.prototype.add = function(t) {
142
142
  var e;
@@ -184,8 +184,8 @@ var Bt = {
184
184
  setTimeout: function(i, t) {
185
185
  for (var e = [], r = 2; r < arguments.length; r++)
186
186
  e[r - 2] = arguments[r];
187
- var n = dt.delegate;
188
- return n != null && n.setTimeout ? n.setTimeout.apply(n, J([i, t], F(e))) : setTimeout.apply(void 0, J([i, t], F(e)));
187
+ var s = dt.delegate;
188
+ return s != null && s.setTimeout ? s.setTimeout.apply(s, J([i, t], F(e))) : setTimeout.apply(void 0, J([i, t], F(e)));
189
189
  },
190
190
  clearTimeout: function(i) {
191
191
  var t = dt.delegate;
@@ -193,7 +193,7 @@ var Bt = {
193
193
  },
194
194
  delegate: void 0
195
195
  };
196
- function se(i) {
196
+ function ne(i) {
197
197
  dt.setTimeout(function() {
198
198
  throw i;
199
199
  });
@@ -209,8 +209,8 @@ var zt = function(i) {
209
209
  var r = i.call(this) || this;
210
210
  return r.isStopped = !1, e ? (r.destination = e, Dt(e) && e.add(r)) : r.destination = le, r;
211
211
  }
212
- return t.create = function(e, r, n) {
213
- return new ft(e, r, n);
212
+ return t.create = function(e, r, s) {
213
+ return new ft(e, r, s);
214
214
  }, t.prototype.next = function(e) {
215
215
  this.isStopped || this._next(e);
216
216
  }, t.prototype.error = function(e) {
@@ -235,7 +235,7 @@ var zt = function(i) {
235
235
  }
236
236
  }, t;
237
237
  }(X), oe = Function.prototype.bind;
238
- function nt(i, t) {
238
+ function st(i, t) {
239
239
  return oe.call(i, t);
240
240
  }
241
241
  var ae = function() {
@@ -271,30 +271,30 @@ var ae = function() {
271
271
  }, i;
272
272
  }(), ft = function(i) {
273
273
  L(t, i);
274
- function t(e, r, n) {
275
- var s = i.call(this) || this, o;
274
+ function t(e, r, s) {
275
+ var n = i.call(this) || this, o;
276
276
  if (m(e) || !e)
277
277
  o = {
278
278
  next: e ?? void 0,
279
279
  error: r ?? void 0,
280
- complete: n ?? void 0
280
+ complete: s ?? void 0
281
281
  };
282
282
  else {
283
283
  var a;
284
- s && Bt.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
285
- return s.unsubscribe();
284
+ n && Bt.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
285
+ return n.unsubscribe();
286
286
  }, o = {
287
- next: e.next && nt(e.next, a),
288
- error: e.error && nt(e.error, a),
289
- complete: e.complete && nt(e.complete, a)
287
+ next: e.next && st(e.next, a),
288
+ error: e.error && st(e.error, a),
289
+ complete: e.complete && st(e.complete, a)
290
290
  }) : o = e;
291
291
  }
292
- return s.destination = new ae(o), s;
292
+ return n.destination = new ae(o), n;
293
293
  }
294
294
  return t;
295
295
  }(zt);
296
296
  function G(i) {
297
- se(i);
297
+ ne(i);
298
298
  }
299
299
  function ce(i) {
300
300
  throw i;
@@ -312,8 +312,8 @@ function pe(i) {
312
312
  }
313
313
  function ue(i) {
314
314
  return i.length === 0 ? pe : i.length === 1 ? i[0] : function(e) {
315
- return i.reduce(function(r, n) {
316
- return n(r);
315
+ return i.reduce(function(r, s) {
316
+ return s(r);
317
317
  }, e);
318
318
  };
319
319
  }
@@ -325,11 +325,11 @@ var At = function() {
325
325
  var e = new i();
326
326
  return e.source = this, e.operator = t, e;
327
327
  }, i.prototype.subscribe = function(t, e, r) {
328
- var n = this, s = fe(t) ? t : new ft(t, e, r);
328
+ var s = this, n = fe(t) ? t : new ft(t, e, r);
329
329
  return Y(function() {
330
- var o = n, a = o.operator, c = o.source;
331
- s.add(a ? a.call(s, c) : c ? n._subscribe(s) : n._trySubscribe(s));
332
- }), s;
330
+ var o = s, a = o.operator, c = o.source;
331
+ n.add(a ? a.call(n, c) : c ? s._subscribe(n) : s._trySubscribe(n));
332
+ }), n;
333
333
  }, i.prototype._trySubscribe = function(t) {
334
334
  try {
335
335
  return this._subscribe(t);
@@ -338,17 +338,17 @@ var At = function() {
338
338
  }
339
339
  }, i.prototype.forEach = function(t, e) {
340
340
  var r = this;
341
- return e = St(e), new e(function(n, s) {
341
+ return e = St(e), new e(function(s, n) {
342
342
  var o = new ft({
343
343
  next: function(a) {
344
344
  try {
345
345
  t(a);
346
346
  } catch (c) {
347
- s(c), o.unsubscribe();
347
+ n(c), o.unsubscribe();
348
348
  }
349
349
  },
350
- error: s,
351
- complete: n
350
+ error: n,
351
+ complete: s
352
352
  });
353
353
  r.subscribe(o);
354
354
  });
@@ -363,14 +363,14 @@ var At = function() {
363
363
  return ue(t)(this);
364
364
  }, i.prototype.toPromise = function(t) {
365
365
  var e = this;
366
- return t = St(t), new t(function(r, n) {
367
- var s;
366
+ return t = St(t), new t(function(r, s) {
367
+ var n;
368
368
  e.subscribe(function(o) {
369
- return s = o;
369
+ return n = o;
370
370
  }, function(o) {
371
- return n(o);
371
+ return s(o);
372
372
  }, function() {
373
- return r(s);
373
+ return r(n);
374
374
  });
375
375
  });
376
376
  }, i.create = function(t) {
@@ -406,7 +406,7 @@ var ge = Nt(function(i) {
406
406
  }, t.prototype.next = function(e) {
407
407
  var r = this;
408
408
  Y(function() {
409
- var n, s;
409
+ var s, n;
410
410
  if (r._throwIfClosed(), !r.isStopped) {
411
411
  r.currentObservers || (r.currentObservers = Array.from(r.observers));
412
412
  try {
@@ -415,13 +415,13 @@ var ge = Nt(function(i) {
415
415
  c.next(e);
416
416
  }
417
417
  } catch (h) {
418
- n = { error: h };
418
+ s = { error: h };
419
419
  } finally {
420
420
  try {
421
- a && !a.done && (s = o.return) && s.call(o);
421
+ a && !a.done && (n = o.return) && n.call(o);
422
422
  } finally {
423
- if (n)
424
- throw n.error;
423
+ if (s)
424
+ throw s.error;
425
425
  }
426
426
  }
427
427
  }
@@ -431,8 +431,8 @@ var ge = Nt(function(i) {
431
431
  Y(function() {
432
432
  if (r._throwIfClosed(), !r.isStopped) {
433
433
  r.hasError = r.isStopped = !0, r.thrownError = e;
434
- for (var n = r.observers; n.length; )
435
- n.shift().error(e);
434
+ for (var s = r.observers; s.length; )
435
+ s.shift().error(e);
436
436
  }
437
437
  });
438
438
  }, t.prototype.complete = function() {
@@ -458,13 +458,13 @@ var ge = Nt(function(i) {
458
458
  }, t.prototype._subscribe = function(e) {
459
459
  return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
460
460
  }, t.prototype._innerSubscribe = function(e) {
461
- var r = this, n = this, s = n.hasError, o = n.isStopped, a = n.observers;
462
- return s || o ? Lt : (this.currentObservers = null, a.push(e), new X(function() {
461
+ var r = this, s = this, n = s.hasError, o = s.isStopped, a = s.observers;
462
+ return n || o ? Lt : (this.currentObservers = null, a.push(e), new X(function() {
463
463
  r.currentObservers = null, ut(a, e);
464
464
  }));
465
465
  }, t.prototype._checkFinalizedStatuses = function(e) {
466
- var r = this, n = r.hasError, s = r.thrownError, o = r.isStopped;
467
- n ? e.error(s) : o && e.complete();
466
+ var r = this, s = r.hasError, n = r.thrownError, o = r.isStopped;
467
+ s ? e.error(n) : o && e.complete();
468
468
  }, t.prototype.asObservable = function() {
469
469
  var e = new At();
470
470
  return e.source = this, e;
@@ -474,21 +474,21 @@ var ge = Nt(function(i) {
474
474
  }(At), Et = function(i) {
475
475
  L(t, i);
476
476
  function t(e, r) {
477
- var n = i.call(this) || this;
478
- return n.destination = e, n.source = r, n;
477
+ var s = i.call(this) || this;
478
+ return s.destination = e, s.source = r, s;
479
479
  }
480
480
  return t.prototype.next = function(e) {
481
- var r, n;
482
- (n = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || n === void 0 || n.call(r, e);
481
+ var r, s;
482
+ (s = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || s === void 0 || s.call(r, e);
483
483
  }, t.prototype.error = function(e) {
484
- var r, n;
485
- (n = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || n === void 0 || n.call(r, e);
484
+ var r, s;
485
+ (s = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || s === void 0 || s.call(r, e);
486
486
  }, t.prototype.complete = function() {
487
487
  var e, r;
488
488
  (r = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || r === void 0 || r.call(e);
489
489
  }, t.prototype._subscribe = function(e) {
490
- var r, n;
491
- return (n = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(e)) !== null && n !== void 0 ? n : Lt;
490
+ var r, s;
491
+ return (s = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(e)) !== null && s !== void 0 ? s : Lt;
492
492
  }, t;
493
493
  }(Wt), ve = function(i) {
494
494
  L(t, i);
@@ -506,15 +506,15 @@ var ge = Nt(function(i) {
506
506
  var r = i.prototype._subscribe.call(this, e);
507
507
  return !r.closed && e.next(this._value), r;
508
508
  }, t.prototype.getValue = function() {
509
- var e = this, r = e.hasError, n = e.thrownError, s = e._value;
509
+ var e = this, r = e.hasError, s = e.thrownError, n = e._value;
510
510
  if (r)
511
- throw n;
512
- return this._throwIfClosed(), s;
511
+ throw s;
512
+ return this._throwIfClosed(), n;
513
513
  }, t.prototype.next = function(e) {
514
514
  i.prototype.next.call(this, this._value = e);
515
515
  }, t;
516
516
  }(Wt), Gt = /* @__PURE__ */ ((i) => (i.Loading = "loading", i.Ready = "ready", i))(Gt || {});
517
- class Ct {
517
+ class xt {
518
518
  constructor(t, e) {
519
519
  this.state = new ve(
520
520
  "loading"
@@ -539,7 +539,7 @@ class Ct {
539
539
  * Copyright 2019 Google LLC
540
540
  * SPDX-License-Identifier: BSD-3-Clause
541
541
  */
542
- const q = globalThis, vt = q.ShadowRoot && (q.ShadyCSS === void 0 || q.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, yt = Symbol(), xt = /* @__PURE__ */ new WeakMap();
542
+ const q = globalThis, vt = q.ShadowRoot && (q.ShadyCSS === void 0 || q.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, yt = Symbol(), Ct = /* @__PURE__ */ new WeakMap();
543
543
  let Vt = class {
544
544
  constructor(t, e, r) {
545
545
  if (this._$cssResult$ = !0, r !== yt)
@@ -551,7 +551,7 @@ let Vt = class {
551
551
  const e = this.t;
552
552
  if (vt && t === void 0) {
553
553
  const r = e !== void 0 && e.length === 1;
554
- r && (t = xt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && xt.set(e, t));
554
+ r && (t = Ct.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Ct.set(e, t));
555
555
  }
556
556
  return t;
557
557
  }
@@ -560,21 +560,21 @@ let Vt = class {
560
560
  }
561
561
  };
562
562
  const ye = (i) => new Vt(typeof i == "string" ? i : i + "", void 0, yt), D = (i, ...t) => {
563
- const e = i.length === 1 ? i[0] : t.reduce((r, n, s) => r + ((o) => {
563
+ const e = i.length === 1 ? i[0] : t.reduce((r, s, n) => r + ((o) => {
564
564
  if (o._$cssResult$ === !0)
565
565
  return o.cssText;
566
566
  if (typeof o == "number")
567
567
  return o;
568
568
  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.");
569
- })(n) + i[s + 1], i[0]);
569
+ })(s) + i[n + 1], i[0]);
570
570
  return new Vt(e, i, yt);
571
571
  }, me = (i, t) => {
572
572
  if (vt)
573
573
  i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
574
574
  else
575
575
  for (const e of t) {
576
- const r = document.createElement("style"), n = q.litNonce;
577
- n !== void 0 && r.setAttribute("nonce", n), r.textContent = e.cssText, i.appendChild(r);
576
+ const r = document.createElement("style"), s = q.litNonce;
577
+ s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, i.appendChild(r);
578
578
  }
579
579
  }, Pt = vt ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
580
580
  let e = "";
@@ -587,7 +587,7 @@ const ye = (i) => new Vt(typeof i == "string" ? i : i + "", void 0, yt), D = (i,
587
587
  * Copyright 2017 Google LLC
588
588
  * SPDX-License-Identifier: BSD-3-Clause
589
589
  */
590
- const { is: be, defineProperty: _e, getOwnPropertyDescriptor: $e, getOwnPropertyNames: we, getOwnPropertySymbols: Ae, getPrototypeOf: Se } = Object, _ = globalThis, Tt = _.trustedTypes, Ee = Tt ? Tt.emptyScript : "", st = _.reactiveElementPolyfillSupport, R = (i, t) => i, K = { toAttribute(i, t) {
590
+ const { is: be, defineProperty: _e, getOwnPropertyDescriptor: $e, getOwnPropertyNames: we, getOwnPropertySymbols: Ae, getPrototypeOf: Se } = Object, _ = globalThis, Tt = _.trustedTypes, Ee = Tt ? Tt.emptyScript : "", nt = _.reactiveElementPolyfillSupport, R = (i, t) => i, K = { toAttribute(i, t) {
591
591
  switch (t) {
592
592
  case Boolean:
593
593
  i = i ? Ee : null;
@@ -626,21 +626,21 @@ class T extends HTMLElement {
626
626
  }
627
627
  static createProperty(t, e = Ot) {
628
628
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
629
- const r = Symbol(), n = this.getPropertyDescriptor(t, r, e);
630
- n !== void 0 && _e(this.prototype, t, n);
629
+ const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
630
+ s !== void 0 && _e(this.prototype, t, s);
631
631
  }
632
632
  }
633
633
  static getPropertyDescriptor(t, e, r) {
634
- const { get: n, set: s } = $e(this.prototype, t) ?? { get() {
634
+ const { get: s, set: n } = $e(this.prototype, t) ?? { get() {
635
635
  return this[e];
636
636
  }, set(o) {
637
637
  this[e] = o;
638
638
  } };
639
639
  return { get() {
640
- return n == null ? void 0 : n.call(this);
640
+ return s == null ? void 0 : s.call(this);
641
641
  }, set(o) {
642
- const a = n == null ? void 0 : n.call(this);
643
- s.call(this, o), this.requestUpdate(t, a, r);
642
+ const a = s == null ? void 0 : s.call(this);
643
+ n.call(this, o), this.requestUpdate(t, a, r);
644
644
  }, configurable: !0, enumerable: !0 };
645
645
  }
646
646
  static getPropertyOptions(t) {
@@ -657,20 +657,20 @@ class T extends HTMLElement {
657
657
  return;
658
658
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(R("properties"))) {
659
659
  const e = this.properties, r = [...we(e), ...Ae(e)];
660
- for (const n of r)
661
- this.createProperty(n, e[n]);
660
+ for (const s of r)
661
+ this.createProperty(s, e[s]);
662
662
  }
663
663
  const t = this[Symbol.metadata];
664
664
  if (t !== null) {
665
665
  const e = litPropertyMetadata.get(t);
666
666
  if (e !== void 0)
667
- for (const [r, n] of e)
668
- this.elementProperties.set(r, n);
667
+ for (const [r, s] of e)
668
+ this.elementProperties.set(r, s);
669
669
  }
670
670
  this._$Eh = /* @__PURE__ */ new Map();
671
671
  for (const [e, r] of this.elementProperties) {
672
- const n = this._$Eu(e, r);
673
- n !== void 0 && this._$Eh.set(n, e);
672
+ const s = this._$Eu(e, r);
673
+ s !== void 0 && this._$Eh.set(s, e);
674
674
  }
675
675
  this.elementStyles = this.finalizeStyles(this.styles);
676
676
  }
@@ -678,8 +678,8 @@ class T extends HTMLElement {
678
678
  const e = [];
679
679
  if (Array.isArray(t)) {
680
680
  const r = new Set(t.flat(1 / 0).reverse());
681
- for (const n of r)
682
- e.unshift(Pt(n));
681
+ for (const s of r)
682
+ e.unshift(Pt(s));
683
683
  } else
684
684
  t !== void 0 && e.push(Pt(t));
685
685
  return e;
@@ -733,24 +733,24 @@ class T extends HTMLElement {
733
733
  this._$AK(t, r);
734
734
  }
735
735
  _$EO(t, e) {
736
- var s;
737
- const r = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, r);
738
- if (n !== void 0 && r.reflect === !0) {
739
- const o = (((s = r.converter) == null ? void 0 : s.toAttribute) !== void 0 ? r.converter : K).toAttribute(e, r.type);
740
- this._$Em = t, o == null ? this.removeAttribute(n) : this.setAttribute(n, o), this._$Em = null;
736
+ var n;
737
+ const r = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, r);
738
+ if (s !== void 0 && r.reflect === !0) {
739
+ const o = (((n = r.converter) == null ? void 0 : n.toAttribute) !== void 0 ? r.converter : K).toAttribute(e, r.type);
740
+ this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
741
741
  }
742
742
  }
743
743
  _$AK(t, e) {
744
- var s;
745
- const r = this.constructor, n = r._$Eh.get(t);
746
- if (n !== void 0 && this._$Em !== n) {
747
- const o = r.getPropertyOptions(n), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? o.converter : K;
748
- this._$Em = n, this[n] = a.fromAttribute(e, o.type), this._$Em = null;
744
+ var n;
745
+ const r = this.constructor, s = r._$Eh.get(t);
746
+ if (s !== void 0 && this._$Em !== s) {
747
+ const o = r.getPropertyOptions(s), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : K;
748
+ this._$Em = s, this[s] = a.fromAttribute(e, o.type), this._$Em = null;
749
749
  }
750
750
  }
751
- requestUpdate(t, e, r, n = !1, s) {
751
+ requestUpdate(t, e, r, s = !1, n) {
752
752
  if (t !== void 0) {
753
- if (r ?? (r = this.constructor.getPropertyOptions(t)), !(r.hasChanged ?? mt)(n ? s : this[t], e))
753
+ if (r ?? (r = this.constructor.getPropertyOptions(t)), !(r.hasChanged ?? mt)(s ? n : this[t], e))
754
754
  return;
755
755
  this.C(t, e, r);
756
756
  }
@@ -778,24 +778,24 @@ class T extends HTMLElement {
778
778
  return;
779
779
  if (!this.hasUpdated) {
780
780
  if (this._$Ep) {
781
- for (const [s, o] of this._$Ep)
782
- this[s] = o;
781
+ for (const [n, o] of this._$Ep)
782
+ this[n] = o;
783
783
  this._$Ep = void 0;
784
784
  }
785
- const n = this.constructor.elementProperties;
786
- if (n.size > 0)
787
- for (const [s, o] of n)
788
- o.wrapped !== !0 || this._$AL.has(s) || this[s] === void 0 || this.C(s, this[s], o);
785
+ const s = this.constructor.elementProperties;
786
+ if (s.size > 0)
787
+ for (const [n, o] of s)
788
+ o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.C(n, this[n], o);
789
789
  }
790
790
  let t = !1;
791
791
  const e = this._$AL;
792
792
  try {
793
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), (r = this._$ES) == null || r.forEach((n) => {
794
- var s;
795
- return (s = n.hostUpdate) == null ? void 0 : s.call(n);
793
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (r = this._$ES) == null || r.forEach((s) => {
794
+ var n;
795
+ return (n = s.hostUpdate) == null ? void 0 : n.call(s);
796
796
  }), this.update(e)) : this._$ET();
797
- } catch (n) {
798
- throw t = !1, this._$ET(), n;
797
+ } catch (s) {
798
+ throw t = !1, this._$ET(), s;
799
799
  }
800
800
  t && this._$AE(e);
801
801
  }
@@ -804,8 +804,8 @@ class T extends HTMLElement {
804
804
  _$AE(t) {
805
805
  var e;
806
806
  (e = this._$ES) == null || e.forEach((r) => {
807
- var n;
808
- return (n = r.hostUpdated) == null ? void 0 : n.call(r);
807
+ var s;
808
+ return (s = r.hostUpdated) == null ? void 0 : s.call(r);
809
809
  }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
810
810
  }
811
811
  _$ET() {
@@ -828,15 +828,15 @@ class T extends HTMLElement {
828
828
  firstUpdated(t) {
829
829
  }
830
830
  }
831
- T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[R("elementProperties")] = /* @__PURE__ */ new Map(), T[R("finalized")] = /* @__PURE__ */ new Map(), st == null || st({ ReactiveElement: T }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.0.1");
831
+ T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[R("elementProperties")] = /* @__PURE__ */ new Map(), T[R("finalized")] = /* @__PURE__ */ new Map(), nt == null || nt({ ReactiveElement: T }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.0.1");
832
832
  /**
833
833
  * @license
834
834
  * Copyright 2017 Google LLC
835
835
  * SPDX-License-Identifier: BSD-3-Clause
836
836
  */
837
- const I = globalThis, Z = I.trustedTypes, Ut = Z ? Z.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Yt = "$lit$", b = `lit$${(Math.random() + "").slice(9)}$`, qt = "?" + b, Ce = `<${qt}>`, x = document, j = () => x.createComment(""), H = (i) => i === null || typeof i != "object" && typeof i != "function", Ft = Array.isArray, xe = (i) => Ft(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", ot = `[
837
+ const I = globalThis, Z = I.trustedTypes, Ut = Z ? Z.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Yt = "$lit$", b = `lit$${(Math.random() + "").slice(9)}$`, qt = "?" + b, xe = `<${qt}>`, C = document, j = () => C.createComment(""), H = (i) => i === null || typeof i != "object" && typeof i != "function", Ft = Array.isArray, Ce = (i) => Ft(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", ot = `[
838
838
  \f\r]`, U = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Rt = /-->/g, It = />/g, S = RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^
839
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Mt = /'/g, kt = /"/g, Jt = /^(?:script|style|textarea|title)$/i, Pe = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), M = Pe(1), P = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), jt = /* @__PURE__ */ new WeakMap(), C = x.createTreeWalker(x, 129);
839
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Mt = /'/g, kt = /"/g, Jt = /^(?:script|style|textarea|title)$/i, Pe = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), M = Pe(1), P = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), jt = /* @__PURE__ */ new WeakMap(), x = C.createTreeWalker(C, 129);
840
840
  function Kt(i, t) {
841
841
  if (!Array.isArray(i) || !i.hasOwnProperty("raw"))
842
842
  throw Error("invalid template strings array");
@@ -844,58 +844,58 @@ function Kt(i, t) {
844
844
  }
845
845
  const Te = (i, t) => {
846
846
  const e = i.length - 1, r = [];
847
- let n, s = t === 2 ? "<svg>" : "", o = U;
847
+ let s, n = t === 2 ? "<svg>" : "", o = U;
848
848
  for (let a = 0; a < e; a++) {
849
849
  const c = i[a];
850
850
  let h, p, l = -1, f = 0;
851
851
  for (; f < c.length && (o.lastIndex = f, p = o.exec(c), p !== null); )
852
- f = o.lastIndex, o === U ? p[1] === "!--" ? o = Rt : p[1] !== void 0 ? o = It : p[2] !== void 0 ? (Jt.test(p[2]) && (n = RegExp("</" + p[2], "g")), o = S) : p[3] !== void 0 && (o = S) : o === S ? p[0] === ">" ? (o = n ?? U, l = -1) : p[1] === void 0 ? l = -2 : (l = o.lastIndex - p[2].length, h = p[1], o = p[3] === void 0 ? S : p[3] === '"' ? kt : Mt) : o === kt || o === Mt ? o = S : o === Rt || o === It ? o = U : (o = S, n = void 0);
852
+ f = o.lastIndex, o === U ? p[1] === "!--" ? o = Rt : p[1] !== void 0 ? o = It : p[2] !== void 0 ? (Jt.test(p[2]) && (s = RegExp("</" + p[2], "g")), o = S) : p[3] !== void 0 && (o = S) : o === S ? p[0] === ">" ? (o = s ?? U, l = -1) : p[1] === void 0 ? l = -2 : (l = o.lastIndex - p[2].length, h = p[1], o = p[3] === void 0 ? S : p[3] === '"' ? kt : Mt) : o === kt || o === Mt ? o = S : o === Rt || o === It ? o = U : (o = S, s = void 0);
853
853
  const u = o === S && i[a + 1].startsWith("/>") ? " " : "";
854
- s += o === U ? c + Ce : l >= 0 ? (r.push(h), c.slice(0, l) + Yt + c.slice(l) + b + u) : c + b + (l === -2 ? a : u);
854
+ n += o === U ? c + xe : l >= 0 ? (r.push(h), c.slice(0, l) + Yt + c.slice(l) + b + u) : c + b + (l === -2 ? a : u);
855
855
  }
856
- return [Kt(i, s + (i[e] || "<?>") + (t === 2 ? "</svg>" : "")), r];
856
+ return [Kt(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : "")), r];
857
857
  };
858
858
  class N {
859
859
  constructor({ strings: t, _$litType$: e }, r) {
860
- let n;
860
+ let s;
861
861
  this.parts = [];
862
- let s = 0, o = 0;
862
+ let n = 0, o = 0;
863
863
  const a = t.length - 1, c = this.parts, [h, p] = Te(t, e);
864
- if (this.el = N.createElement(h, r), C.currentNode = this.el.content, e === 2) {
864
+ if (this.el = N.createElement(h, r), x.currentNode = this.el.content, e === 2) {
865
865
  const l = this.el.content.firstChild;
866
866
  l.replaceWith(...l.childNodes);
867
867
  }
868
- for (; (n = C.nextNode()) !== null && c.length < a; ) {
869
- if (n.nodeType === 1) {
870
- if (n.hasAttributes())
871
- for (const l of n.getAttributeNames())
868
+ for (; (s = x.nextNode()) !== null && c.length < a; ) {
869
+ if (s.nodeType === 1) {
870
+ if (s.hasAttributes())
871
+ for (const l of s.getAttributeNames())
872
872
  if (l.endsWith(Yt)) {
873
- const f = p[o++], u = n.getAttribute(l).split(b), g = /([.?@])?(.*)/.exec(f);
874
- c.push({ type: 1, index: s, name: g[2], strings: u, ctor: g[1] === "." ? Ue : g[1] === "?" ? Re : g[1] === "@" ? Ie : tt }), n.removeAttribute(l);
873
+ const f = p[o++], u = s.getAttribute(l).split(b), g = /([.?@])?(.*)/.exec(f);
874
+ c.push({ type: 1, index: n, name: g[2], strings: u, ctor: g[1] === "." ? Ue : g[1] === "?" ? Re : g[1] === "@" ? Ie : tt }), s.removeAttribute(l);
875
875
  } else
876
- l.startsWith(b) && (c.push({ type: 6, index: s }), n.removeAttribute(l));
877
- if (Jt.test(n.tagName)) {
878
- const l = n.textContent.split(b), f = l.length - 1;
876
+ l.startsWith(b) && (c.push({ type: 6, index: n }), s.removeAttribute(l));
877
+ if (Jt.test(s.tagName)) {
878
+ const l = s.textContent.split(b), f = l.length - 1;
879
879
  if (f > 0) {
880
- n.textContent = Z ? Z.emptyScript : "";
880
+ s.textContent = Z ? Z.emptyScript : "";
881
881
  for (let u = 0; u < f; u++)
882
- n.append(l[u], j()), C.nextNode(), c.push({ type: 2, index: ++s });
883
- n.append(l[f], j());
882
+ s.append(l[u], j()), x.nextNode(), c.push({ type: 2, index: ++n });
883
+ s.append(l[f], j());
884
884
  }
885
885
  }
886
- } else if (n.nodeType === 8)
887
- if (n.data === qt)
888
- c.push({ type: 2, index: s });
886
+ } else if (s.nodeType === 8)
887
+ if (s.data === qt)
888
+ c.push({ type: 2, index: n });
889
889
  else {
890
890
  let l = -1;
891
- for (; (l = n.data.indexOf(b, l + 1)) !== -1; )
892
- c.push({ type: 7, index: s }), l += b.length - 1;
891
+ for (; (l = s.data.indexOf(b, l + 1)) !== -1; )
892
+ c.push({ type: 7, index: n }), l += b.length - 1;
893
893
  }
894
- s++;
894
+ n++;
895
895
  }
896
896
  }
897
897
  static createElement(t, e) {
898
- const r = x.createElement("template");
898
+ const r = C.createElement("template");
899
899
  return r.innerHTML = t, r;
900
900
  }
901
901
  }
@@ -903,9 +903,9 @@ function O(i, t, e = i, r) {
903
903
  var o, a;
904
904
  if (t === P)
905
905
  return t;
906
- let n = r !== void 0 ? (o = e._$Co) == null ? void 0 : o[r] : e._$Cl;
907
- const s = H(t) ? void 0 : t._$litDirective$;
908
- return (n == null ? void 0 : n.constructor) !== s && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), s === void 0 ? n = void 0 : (n = new s(i), n._$AT(i, e, r)), r !== void 0 ? (e._$Co ?? (e._$Co = []))[r] = n : e._$Cl = n), n !== void 0 && (t = O(i, n._$AS(i, t.values), n, r)), t;
906
+ let s = r !== void 0 ? (o = e._$Co) == null ? void 0 : o[r] : e._$Cl;
907
+ const n = H(t) ? void 0 : t._$litDirective$;
908
+ return (s == null ? void 0 : s.constructor) !== n && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), n === void 0 ? s = void 0 : (s = new n(i), s._$AT(i, e, r)), r !== void 0 ? (e._$Co ?? (e._$Co = []))[r] = s : e._$Cl = s), s !== void 0 && (t = O(i, s._$AS(i, t.values), s, r)), t;
909
909
  }
910
910
  class Oe {
911
911
  constructor(t, e) {
@@ -918,17 +918,17 @@ class Oe {
918
918
  return this._$AM._$AU;
919
919
  }
920
920
  u(t) {
921
- const { el: { content: e }, parts: r } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ?? x).importNode(e, !0);
922
- C.currentNode = n;
923
- let s = C.nextNode(), o = 0, a = 0, c = r[0];
921
+ const { el: { content: e }, parts: r } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? C).importNode(e, !0);
922
+ x.currentNode = s;
923
+ let n = x.nextNode(), o = 0, a = 0, c = r[0];
924
924
  for (; c !== void 0; ) {
925
925
  if (o === c.index) {
926
926
  let h;
927
- c.type === 2 ? h = new B(s, s.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(s, c.name, c.strings, this, t) : c.type === 6 && (h = new Me(s, this, t)), this._$AV.push(h), c = r[++a];
927
+ c.type === 2 ? h = new B(n, n.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (h = new Me(n, this, t)), this._$AV.push(h), c = r[++a];
928
928
  }
929
- o !== (c == null ? void 0 : c.index) && (s = C.nextNode(), o++);
929
+ o !== (c == null ? void 0 : c.index) && (n = x.nextNode(), o++);
930
930
  }
931
- return C.currentNode = x, n;
931
+ return x.currentNode = C, s;
932
932
  }
933
933
  p(t) {
934
934
  let e = 0;
@@ -941,8 +941,8 @@ class B {
941
941
  var t;
942
942
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
943
943
  }
944
- constructor(t, e, r, n) {
945
- this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = r, this.options = n, this._$Cv = (n == null ? void 0 : n.isConnected) ?? !0;
944
+ constructor(t, e, r, s) {
945
+ this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = r, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
946
946
  }
947
947
  get parentNode() {
948
948
  let t = this._$AA.parentNode;
@@ -956,7 +956,7 @@ class B {
956
956
  return this._$AB;
957
957
  }
958
958
  _$AI(t, e = this) {
959
- t = O(this, t, e), H(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : xe(t) ? this.T(t) : this._(t);
959
+ t = O(this, t, e), H(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Ce(t) ? this.T(t) : this._(t);
960
960
  }
961
961
  k(t) {
962
962
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -965,15 +965,15 @@ class B {
965
965
  this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
966
966
  }
967
967
  _(t) {
968
- this._$AH !== d && H(this._$AH) ? this._$AA.nextSibling.data = t : this.$(x.createTextNode(t)), this._$AH = t;
968
+ this._$AH !== d && H(this._$AH) ? this._$AA.nextSibling.data = t : this.$(C.createTextNode(t)), this._$AH = t;
969
969
  }
970
970
  g(t) {
971
- var s;
972
- const { values: e, _$litType$: r } = t, n = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = N.createElement(Kt(r.h, r.h[0]), this.options)), r);
973
- if (((s = this._$AH) == null ? void 0 : s._$AD) === n)
971
+ var n;
972
+ const { values: e, _$litType$: r } = t, s = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = N.createElement(Kt(r.h, r.h[0]), this.options)), r);
973
+ if (((n = this._$AH) == null ? void 0 : n._$AD) === s)
974
974
  this._$AH.p(e);
975
975
  else {
976
- const o = new Oe(n, this), a = o.u(this.options);
976
+ const o = new Oe(s, this), a = o.u(this.options);
977
977
  o.p(e), this.$(a), this._$AH = o;
978
978
  }
979
979
  }
@@ -984,16 +984,16 @@ class B {
984
984
  T(t) {
985
985
  Ft(this._$AH) || (this._$AH = [], this._$AR());
986
986
  const e = this._$AH;
987
- let r, n = 0;
988
- for (const s of t)
989
- n === e.length ? e.push(r = new B(this.k(j()), this.k(j()), this, this.options)) : r = e[n], r._$AI(s), n++;
990
- n < e.length && (this._$AR(r && r._$AB.nextSibling, n), e.length = n);
987
+ let r, s = 0;
988
+ for (const n of t)
989
+ s === e.length ? e.push(r = new B(this.k(j()), this.k(j()), this, this.options)) : r = e[s], r._$AI(n), s++;
990
+ s < e.length && (this._$AR(r && r._$AB.nextSibling, s), e.length = s);
991
991
  }
992
992
  _$AR(t = this._$AA.nextSibling, e) {
993
993
  var r;
994
994
  for ((r = this._$AP) == null ? void 0 : r.call(this, !1, !0, e); t && t !== this._$AB; ) {
995
- const n = t.nextSibling;
996
- t.remove(), t = n;
995
+ const s = t.nextSibling;
996
+ t.remove(), t = s;
997
997
  }
998
998
  }
999
999
  setConnected(t) {
@@ -1008,21 +1008,21 @@ class tt {
1008
1008
  get _$AU() {
1009
1009
  return this._$AM._$AU;
1010
1010
  }
1011
- constructor(t, e, r, n, s) {
1012
- this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = n, this.options = s, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = d;
1011
+ constructor(t, e, r, s, n) {
1012
+ this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = n, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = d;
1013
1013
  }
1014
- _$AI(t, e = this, r, n) {
1015
- const s = this.strings;
1014
+ _$AI(t, e = this, r, s) {
1015
+ const n = this.strings;
1016
1016
  let o = !1;
1017
- if (s === void 0)
1017
+ if (n === void 0)
1018
1018
  t = O(this, t, e, 0), o = !H(t) || t !== this._$AH && t !== P, o && (this._$AH = t);
1019
1019
  else {
1020
1020
  const a = t;
1021
1021
  let c, h;
1022
- for (t = s[0], c = 0; c < s.length - 1; c++)
1023
- h = O(this, a[r + c], e, c), h === P && (h = this._$AH[c]), o || (o = !H(h) || h !== this._$AH[c]), h === d ? t = d : t !== d && (t += (h ?? "") + s[c + 1]), this._$AH[c] = h;
1022
+ for (t = n[0], c = 0; c < n.length - 1; c++)
1023
+ h = O(this, a[r + c], e, c), h === P && (h = this._$AH[c]), o || (o = !H(h) || h !== this._$AH[c]), h === d ? t = d : t !== d && (t += (h ?? "") + n[c + 1]), this._$AH[c] = h;
1024
1024
  }
1025
- o && !n && this.O(t);
1025
+ o && !s && this.O(t);
1026
1026
  }
1027
1027
  O(t) {
1028
1028
  t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
@@ -1045,14 +1045,14 @@ class Re extends tt {
1045
1045
  }
1046
1046
  }
1047
1047
  class Ie extends tt {
1048
- constructor(t, e, r, n, s) {
1049
- super(t, e, r, n, s), this.type = 5;
1048
+ constructor(t, e, r, s, n) {
1049
+ super(t, e, r, s, n), this.type = 5;
1050
1050
  }
1051
1051
  _$AI(t, e = this) {
1052
1052
  if ((t = O(this, t, e, 0) ?? d) === P)
1053
1053
  return;
1054
- const r = this._$AH, n = t === d && r !== d || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, s = t !== d && (r === d || n);
1055
- n && this.element.removeEventListener(this.name, this, r), s && this.element.addEventListener(this.name, this, t), this._$AH = t;
1054
+ const r = this._$AH, s = t === d && r !== d || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, n = t !== d && (r === d || s);
1055
+ s && this.element.removeEventListener(this.name, this, r), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
1056
1056
  }
1057
1057
  handleEvent(t) {
1058
1058
  var e;
@@ -1074,12 +1074,12 @@ const at = I.litHtmlPolyfillSupport;
1074
1074
  at == null || at(N, B), (I.litHtmlVersions ?? (I.litHtmlVersions = [])).push("3.0.2");
1075
1075
  const ke = (i, t, e) => {
1076
1076
  const r = (e == null ? void 0 : e.renderBefore) ?? t;
1077
- let n = r._$litPart$;
1078
- if (n === void 0) {
1079
- const s = (e == null ? void 0 : e.renderBefore) ?? null;
1080
- r._$litPart$ = n = new B(t.insertBefore(j(), s), s, void 0, e ?? {});
1077
+ let s = r._$litPart$;
1078
+ if (s === void 0) {
1079
+ const n = (e == null ? void 0 : e.renderBefore) ?? null;
1080
+ r._$litPart$ = s = new B(t.insertBefore(j(), n), n, void 0, e ?? {});
1081
1081
  }
1082
- return n._$AI(i), n;
1082
+ return s._$AI(i), s;
1083
1083
  };
1084
1084
  /**
1085
1085
  * @license
@@ -1122,9 +1122,9 @@ ct == null || ct({ LitElement: $ });
1122
1122
  * SPDX-License-Identifier: BSD-3-Clause
1123
1123
  */
1124
1124
  const je = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: mt }, He = (i = je, t, e) => {
1125
- const { kind: r, metadata: n } = e;
1126
- let s = globalThis.litPropertyMetadata.get(n);
1127
- if (s === void 0 && globalThis.litPropertyMetadata.set(n, s = /* @__PURE__ */ new Map()), s.set(e.name, i), r === "accessor") {
1125
+ const { kind: r, metadata: s } = e;
1126
+ let n = globalThis.litPropertyMetadata.get(s);
1127
+ if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), n.set(e.name, i), r === "accessor") {
1128
1128
  const { name: o } = e;
1129
1129
  return { set(a) {
1130
1130
  const c = t.get.call(this);
@@ -1143,9 +1143,9 @@ const je = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged:
1143
1143
  throw Error("Unsupported decorator location: " + r);
1144
1144
  };
1145
1145
  function y(i) {
1146
- return (t, e) => typeof e == "object" ? He(i, t, e) : ((r, n, s) => {
1147
- const o = n.hasOwnProperty(s);
1148
- return n.constructor.createProperty(s, o ? { ...r, wrapped: !0 } : r), o ? Object.getOwnPropertyDescriptor(n, s) : void 0;
1146
+ return (t, e) => typeof e == "object" ? He(i, t, e) : ((r, s, n) => {
1147
+ const o = s.hasOwnProperty(n);
1148
+ return s.constructor.createProperty(n, o ? { ...r, wrapped: !0 } : r), o ? Object.getOwnPropertyDescriptor(s, n) : void 0;
1149
1149
  })(i, t, e);
1150
1150
  }
1151
1151
  /**
@@ -1193,44 +1193,44 @@ const Ne = Qt(class extends Xt {
1193
1193
  return " " + Object.keys(i).filter((t) => i[t]).join(" ") + " ";
1194
1194
  }
1195
1195
  update(i, [t]) {
1196
- var r, n;
1196
+ var r, s;
1197
1197
  if (this.it === void 0) {
1198
- this.it = /* @__PURE__ */ new Set(), i.strings !== void 0 && (this.st = new Set(i.strings.join(" ").split(/\s/).filter((s) => s !== "")));
1199
- for (const s in t)
1200
- t[s] && !((r = this.st) != null && r.has(s)) && this.it.add(s);
1198
+ this.it = /* @__PURE__ */ new Set(), i.strings !== void 0 && (this.st = new Set(i.strings.join(" ").split(/\s/).filter((n) => n !== "")));
1199
+ for (const n in t)
1200
+ t[n] && !((r = this.st) != null && r.has(n)) && this.it.add(n);
1201
1201
  return this.render(t);
1202
1202
  }
1203
1203
  const e = i.element.classList;
1204
- for (const s of this.it)
1205
- s in t || (e.remove(s), this.it.delete(s));
1206
- for (const s in t) {
1207
- const o = !!t[s];
1208
- o === this.it.has(s) || (n = this.st) != null && n.has(s) || (o ? (e.add(s), this.it.add(s)) : (e.remove(s), this.it.delete(s)));
1204
+ for (const n of this.it)
1205
+ n in t || (e.remove(n), this.it.delete(n));
1206
+ for (const n in t) {
1207
+ const o = !!t[n];
1208
+ o === this.it.has(n) || (s = this.st) != null && s.has(n) || (o ? (e.add(n), this.it.add(n)) : (e.remove(n), this.it.delete(n)));
1209
1209
  }
1210
1210
  return P;
1211
1211
  }
1212
1212
  }), V = (i, t, e) => {
1213
1213
  i && e.style.setProperty(t, i);
1214
1214
  }, te = (i, t) => {
1215
- var e, r, n, s;
1215
+ var e, r, s, n;
1216
1216
  V((e = i.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), V(
1217
1217
  (r = i.colors) == null ? void 0 : r.textOnPrimaryBackground,
1218
1218
  "--text-on-primary-background",
1219
1219
  t
1220
1220
  ), V(
1221
- (n = i.colors) == null ? void 0 : n.secondaryBackground,
1221
+ (s = i.colors) == null ? void 0 : s.secondaryBackground,
1222
1222
  "--secondary-background",
1223
1223
  t
1224
1224
  ), V(
1225
- (s = i.colors) == null ? void 0 : s.textOnSecondaryBackground,
1225
+ (n = i.colors) == null ? void 0 : n.textOnSecondaryBackground,
1226
1226
  "--text-on-secondary-background",
1227
1227
  t
1228
1228
  );
1229
1229
  };
1230
1230
  var Le = Object.defineProperty, De = Object.getOwnPropertyDescriptor, et = (i, t, e, r) => {
1231
- for (var n = r > 1 ? void 0 : r ? De(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1232
- (o = i[s]) && (n = (r ? o(t, e, n) : o(n)) || n);
1233
- return r && n && Le(t, e, n), n;
1231
+ for (var s = r > 1 ? void 0 : r ? De(t, e) : t, n = i.length - 1, o; n >= 0; n--)
1232
+ (o = i[n]) && (s = (r ? o(t, e, s) : o(s)) || s);
1233
+ return r && s && Le(t, e, s), s;
1234
1234
  };
1235
1235
  class A extends $ {
1236
1236
  constructor() {
@@ -1261,12 +1261,12 @@ class A extends $ {
1261
1261
  const r = (h = this.application) == null ? void 0 : h.triggerIcon;
1262
1262
  if (!r)
1263
1263
  return d;
1264
- const n = async (p) => await import("./index-5087564d.mjs").then(
1264
+ const s = async (p) => await import("./index-5087564d.mjs").then(
1265
1265
  (f) => f[p]
1266
- ), { type: s, content: o } = r;
1267
- switch (s) {
1266
+ ), { type: n, content: o } = r;
1267
+ switch (n) {
1268
1268
  case "Telia": {
1269
- const p = await n(o);
1269
+ const p = await s(o);
1270
1270
  return p ? M`<telia-icon
1271
1271
  class="trigger-icon"
1272
1272
  svg=${p.svg}
@@ -1405,9 +1405,9 @@ et([
1405
1405
  z()
1406
1406
  ], A.prototype, "icon", 2);
1407
1407
  var Be = Object.defineProperty, ze = Object.getOwnPropertyDescriptor, E = (i, t, e, r) => {
1408
- for (var n = r > 1 ? void 0 : r ? ze(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1409
- (o = i[s]) && (n = (r ? o(t, e, n) : o(n)) || n);
1410
- return r && n && Be(t, e, n), n;
1408
+ for (var s = r > 1 ? void 0 : r ? ze(t, e) : t, n = i.length - 1, o; n >= 0; n--)
1409
+ (o = i[n]) && (s = (r ? o(t, e, s) : o(s)) || s);
1410
+ return r && s && Be(t, e, s), s;
1411
1411
  };
1412
1412
  const We = (i) => {
1413
1413
  class t extends i {
@@ -1492,8 +1492,8 @@ const k = (i, t) => {
1492
1492
  const e = i._$AN;
1493
1493
  if (e === void 0)
1494
1494
  return !1;
1495
- for (const n of e)
1496
- (r = n._$AO) == null || r.call(n, t, !1), k(n, t);
1495
+ for (const s of e)
1496
+ (r = s._$AO) == null || r.call(s, t, !1), k(s, t);
1497
1497
  return !0;
1498
1498
  }, Q = (i) => {
1499
1499
  let t, e;
@@ -1516,12 +1516,12 @@ function Ve(i) {
1516
1516
  this._$AN !== void 0 ? (Q(this), this._$AM = i, ee(this)) : this._$AM = i;
1517
1517
  }
1518
1518
  function Ye(i, t = !1, e = 0) {
1519
- const r = this._$AH, n = this._$AN;
1520
- if (n !== void 0 && n.size !== 0)
1519
+ const r = this._$AH, s = this._$AN;
1520
+ if (s !== void 0 && s.size !== 0)
1521
1521
  if (t)
1522
1522
  if (Array.isArray(r))
1523
- for (let s = e; s < r.length; s++)
1524
- k(r[s], !1), Q(r[s]);
1523
+ for (let n = e; n < r.length; n++)
1524
+ k(r[n], !1), Q(r[n]);
1525
1525
  else
1526
1526
  r != null && (k(r, !1), Q(r));
1527
1527
  else
@@ -1538,8 +1538,8 @@ class Fe extends Xt {
1538
1538
  super._$AT(t, e, r), ee(this), this.isConnected = t._$AU;
1539
1539
  }
1540
1540
  _$AO(t, e = !0) {
1541
- var r, n;
1542
- t !== this.isConnected && (this.isConnected = t, t ? (r = this.reconnected) == null || r.call(this) : (n = this.disconnected) == null || n.call(this)), e && (k(this, t), Q(this));
1541
+ var r, s;
1542
+ t !== this.isConnected && (this.isConnected = t, t ? (r = this.reconnected) == null || r.call(this) : (s = this.disconnected) == null || s.call(this)), e && (k(this, t), Q(this));
1543
1543
  }
1544
1544
  setValue(t) {
1545
1545
  if (Ge(this._$Ct))
@@ -1603,9 +1603,9 @@ function* Qe(i, t) {
1603
1603
  }
1604
1604
  }
1605
1605
  var w = /* @__PURE__ */ ((i) => (i.Inline = "inline", i.Trigger = "trigger", i))(w || {}), Xe = Object.defineProperty, tr = Object.getOwnPropertyDescriptor, er = (i, t, e, r) => {
1606
- for (var n = r > 1 ? void 0 : r ? tr(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1607
- (o = i[s]) && (n = (r ? o(t, e, n) : o(n)) || n);
1608
- return r && n && Xe(t, e, n), n;
1606
+ for (var s = r > 1 ? void 0 : r ? tr(t, e) : t, n = i.length - 1, o; n >= 0; n--)
1607
+ (o = i[n]) && (s = (r ? o(t, e, s) : o(s)) || s);
1608
+ return r && s && Xe(t, e, s), s;
1609
1609
  };
1610
1610
  class rt extends $ {
1611
1611
  constructor() {
@@ -1654,23 +1654,34 @@ rt.styles = D`
1654
1654
  display: block;
1655
1655
  }
1656
1656
 
1657
- :host(.floating) {
1657
+ :host(.inline) {
1658
+ height: 100%;
1658
1659
  position: fixed;
1660
+ inset: 0 0 0 0;
1661
+ }
1662
+
1663
+ :host(.floating) {
1659
1664
  z-index: 6;
1660
- inset: auto 20px 95px auto;
1661
- max-height: calc(100vh - 120px);
1662
- width: 400px;
1663
- height: 700px;
1665
+ position: fixed;
1664
1666
  }
1667
+ @media screen and (max-width: 800px) {
1668
+ :host(.floating) {
1669
+ inset: 0 0 95px 0;
1670
+ }
1671
+ }
1672
+ @media screen and (min-width: 801px) {
1673
+ :host(.floating) {
1674
+ inset: auto 20px 95px auto;
1675
+ max-height: calc(100vh - 120px);
1676
+ width: 400px;
1677
+ height: 700px;
1678
+ }
1679
+ }
1680
+
1665
1681
  :host(.floating) .widget-container {
1666
1682
  box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
1667
1683
  border-radius: 0.7rem;
1668
1684
  }
1669
- :host(.inline) {
1670
- height: 100%;
1671
- position: fixed;
1672
- inset: 0 0 0 0;
1673
- }
1674
1685
 
1675
1686
  * {
1676
1687
  box-sizing: border-box;
@@ -1730,7 +1741,7 @@ class rr {
1730
1741
  definitionId: a,
1731
1742
  overrides: []
1732
1743
  };
1733
- }, n = (a, c, h, p) => {
1744
+ }, s = (a, c, h, p) => {
1734
1745
  h.forEach((l) => {
1735
1746
  const f = r(l), u = p[f.definitionId];
1736
1747
  if (!u) {
@@ -1740,7 +1751,7 @@ class rr {
1740
1751
  return;
1741
1752
  }
1742
1753
  const g = a.createNode(u.type, u.type);
1743
- g && (g.name = f.definitionId, g.application = e, u.properties && g.writeProperties(u.properties), u.context && g.writeContext(u.context), u.layout && g.writeLayout(u.layout), c.addChild(g), u.children && n(
1754
+ g && (g.name = f.definitionId, g.application = e, u.properties && g.writeProperties(u.properties), u.context && g.writeContext(u.context), u.layout && g.writeLayout(u.layout), c.addChild(g), u.children && s(
1744
1755
  a,
1745
1756
  g,
1746
1757
  u.children,
@@ -1748,8 +1759,8 @@ class rr {
1748
1759
  // views
1749
1760
  ));
1750
1761
  });
1751
- }, { entry: s, components: o } = t;
1752
- return n(this, this.root, [s], o), this.root;
1762
+ }, { entry: n, components: o } = t;
1763
+ return s(this, this.root, [n], o), this.root;
1753
1764
  }
1754
1765
  createRoot() {
1755
1766
  return new rt();
@@ -1758,8 +1769,8 @@ class rr {
1758
1769
  const r = this.resolveComponent(e);
1759
1770
  if (!r)
1760
1771
  return console.warn(`Unable to resolve component: ${e}`), new bt();
1761
- const n = new r();
1762
- return n.type = e, n.name = t, n;
1772
+ const s = new r();
1773
+ return s.type = e, s.name = t, s;
1763
1774
  }
1764
1775
  resolveComponent(t) {
1765
1776
  return customElements.get(`ace-${t}`);
@@ -1795,8 +1806,20 @@ const re = class {
1795
1806
  let ie = re;
1796
1807
  ie.ResolveWebComponentName = (i) => `ace-${i}`;
1797
1808
  class ir {
1798
- constructor(t, e, r, n) {
1799
- this.name = t, this.container = e, this.settings = r, this.options = n, this.platform = new rr(), this.renderStrategy = w.Inline, this.autoActivate = !1, this.plugins = [], this.componentResolver = new ie(), this.renderStrategy = this.options.renderStrategy || w.Inline, this.triggerIcon = this.options.triggerIcon, typeof n.autoActivate == "boolean" && (this.autoActivate = n.autoActivate), this.container.register("$settings", r);
1809
+ constructor() {
1810
+ this.texts = /* @__PURE__ */ new Map();
1811
+ }
1812
+ loadTexts(t) {
1813
+ this.texts = new Map(Object.entries(t));
1814
+ }
1815
+ get(t, e) {
1816
+ const r = this.texts.get(t);
1817
+ return r || e || null;
1818
+ }
1819
+ }
1820
+ class sr {
1821
+ constructor(t, e, r, s) {
1822
+ this.name = t, this.container = e, this.settings = r, this.options = s, this.platform = new rr(), this.texts = new ir(), this.renderStrategy = w.Inline, this.autoActivate = !1, this.plugins = [], this.componentResolver = new ie(), this.renderStrategy = this.options.renderStrategy || w.Inline, this.triggerIcon = this.options.triggerIcon, typeof s.autoActivate == "boolean" && (this.autoActivate = s.autoActivate), this.container.register("$settings", r), this.texts.loadTexts(r.texts || {});
1800
1823
  }
1801
1824
  async activate() {
1802
1825
  if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(Gt.Ready), this.autoActivate) {
@@ -1834,7 +1857,7 @@ class ir {
1834
1857
  return this.root;
1835
1858
  }
1836
1859
  }
1837
- const ne = class {
1860
+ const se = class {
1838
1861
  // TODO:
1839
1862
  // private static endpoint = 'http://localhost:5299/api'; // TODO:
1840
1863
  async getSite(i) {
@@ -1842,11 +1865,11 @@ const ne = class {
1842
1865
  return e ? {
1843
1866
  id: e.id,
1844
1867
  apps: e.widgets.map((r) => {
1845
- let n = w.Inline;
1846
- return r.renderStrategy === "Trigger" && (n = w.Trigger), {
1868
+ let s = w.Inline;
1869
+ return r.renderStrategy === "Trigger" && (s = w.Trigger), {
1847
1870
  id: r.id,
1848
1871
  widgetId: r.widgetId,
1849
- renderStrategy: n,
1872
+ renderStrategy: s,
1850
1873
  autoActivate: r.autoActivate,
1851
1874
  triggerIcon: {
1852
1875
  type: "Telia",
@@ -1857,18 +1880,18 @@ const ne = class {
1857
1880
  } : null;
1858
1881
  }
1859
1882
  async getWidget(i) {
1860
- const e = await (await fetch(`${ne.endpoint}/widget/${i}`)).json();
1883
+ const e = await (await fetch(`${se.endpoint}/widget/${i}`)).json();
1861
1884
  return e ? {
1862
1885
  name: e.name,
1863
1886
  config: JSON.parse(e.configuration)
1864
1887
  } : null;
1865
1888
  }
1866
1889
  };
1867
- let gt = ne;
1890
+ let gt = se;
1868
1891
  gt.endpoint = "https://widgets.ace.teliacompany.net/api";
1869
1892
  class nr {
1870
1893
  constructor() {
1871
- this.applications = [], this.container = new Ct("environment", this), setTimeout(() => {
1894
+ this.applications = [], this.container = new xt("environment", this), setTimeout(() => {
1872
1895
  this.notifyWidgetsOfCreation();
1873
1896
  }, 1e3);
1874
1897
  }
@@ -1884,7 +1907,7 @@ class nr {
1884
1907
  }
1885
1908
  notifyWidgetsOfCreation() {
1886
1909
  document.querySelectorAll("ace-widget").forEach((e) => {
1887
- const r = this.applications.find((n) => n.name === e.name);
1910
+ const r = this.applications.find((s) => s.name === e.name);
1888
1911
  r && e.dispatchEvent(
1889
1912
  new CustomEvent("environment-created", {
1890
1913
  detail: { widget: r }
@@ -1893,11 +1916,11 @@ class nr {
1893
1916
  });
1894
1917
  }
1895
1918
  registerApp(t, e, r) {
1896
- const n = new Ct(t, this), s = new ir(t, n, e, r);
1897
- this.applications.push(s);
1919
+ const s = new xt(t, this), n = new sr(t, s, e, r);
1920
+ this.applications.push(n);
1898
1921
  }
1899
1922
  }
1900
- class sr {
1923
+ class or {
1901
1924
  constructor(t) {
1902
1925
  this.configurations = [], this.httpClient = new gt(), this.httpClient = new gt(), typeof t == "string" ? this.url = t : (t.httpClient && (this.httpClient = t.httpClient), this.loadFromConfig(t));
1903
1926
  }
@@ -1925,8 +1948,8 @@ class sr {
1925
1948
  var e;
1926
1949
  this.url && await this.load(this.url), this.environment = new nr(), this.addGlobal(this.environment);
1927
1950
  for await (const r of this.configurations) {
1928
- const n = await this.httpClient.getWidget(r.widgetId);
1929
- n && ((e = this.environment) == null || e.registerApp(n.name, n.config, {
1951
+ const s = await this.httpClient.getWidget(r.widgetId);
1952
+ s && ((e = this.environment) == null || e.registerApp(s.name, s.config, {
1930
1953
  renderStrategy: r.renderStrategy,
1931
1954
  triggerIcon: r.triggerIcon,
1932
1955
  autoActivate: r.autoActivate
@@ -1938,10 +1961,10 @@ class sr {
1938
1961
  globalThis.widgets = t;
1939
1962
  }
1940
1963
  }
1941
- var or = Object.defineProperty, ar = Object.getOwnPropertyDescriptor, _t = (i, t, e, r) => {
1942
- for (var n = r > 1 ? void 0 : r ? ar(t, e) : t, s = i.length - 1, o; s >= 0; s--)
1943
- (o = i[s]) && (n = (r ? o(t, e, n) : o(n)) || n);
1944
- return r && n && or(t, e, n), n;
1964
+ var ar = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, _t = (i, t, e, r) => {
1965
+ for (var s = r > 1 ? void 0 : r ? cr(t, e) : t, n = i.length - 1, o; n >= 0; n--)
1966
+ (o = i[n]) && (s = (r ? o(t, e, s) : o(s)) || s);
1967
+ return r && s && ar(t, e, s), s;
1945
1968
  };
1946
1969
  class W extends $ {
1947
1970
  constructor() {
@@ -1995,17 +2018,17 @@ customElements.get("ace-trigger") || customElements.define("ace-trigger", A);
1995
2018
  customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", bt);
1996
2019
  customElements.get("ace-wrapper") || customElements.define("ace-wrapper", rt);
1997
2020
  customElements.get("ace-widget") || customElements.define("ace-widget", W);
1998
- const hr = async (i, t) => {
1999
- await new sr(i).bootstrap(t);
2021
+ const pr = async (i, t) => {
2022
+ await new or(i).bootstrap(t);
2000
2023
  };
2001
2024
  export {
2002
2025
  W as AceWidget,
2003
- ir as Application,
2004
- Ct as Container,
2026
+ sr as Application,
2027
+ xt as Container,
2005
2028
  nr as Environment,
2006
2029
  gt as HttpClient,
2007
- sr as Site,
2030
+ or as Site,
2008
2031
  A as Trigger,
2009
2032
  We as WidgetComponent,
2010
- hr as bootstrap
2033
+ pr as bootstrap
2011
2034
  };