@telia-ace/widget-core-flamingo 1.1.56-rc.1 → 1.1.56-rc.3

Sign up to get free protection for your applications and to get access to all the features.
package/index.mjs CHANGED
@@ -1,21 +1,21 @@
1
- var ut = function(r, t) {
2
- return ut = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
1
+ var ft = function(r, t) {
2
+ return ft = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
3
3
  e.__proto__ = i;
4
4
  } || function(e, i) {
5
5
  for (var s in i)
6
6
  Object.prototype.hasOwnProperty.call(i, s) && (e[s] = i[s]);
7
- }, ut(r, t);
7
+ }, ft(r, t);
8
8
  };
9
9
  function B(r, t) {
10
10
  if (typeof t != "function" && t !== null)
11
11
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
12
- ut(r, t);
12
+ ft(r, t);
13
13
  function e() {
14
14
  this.constructor = r;
15
15
  }
16
16
  r.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
17
17
  }
18
- function ft(r) {
18
+ function gt(r) {
19
19
  var t = typeof Symbol == "function" && Symbol.iterator, e = t && r[t], i = 0;
20
20
  if (e)
21
21
  return e.call(r);
@@ -27,7 +27,7 @@ function ft(r) {
27
27
  };
28
28
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
29
29
  }
30
- function Y(r, t) {
30
+ function K(r, t) {
31
31
  var e = typeof Symbol == "function" && r[Symbol.iterator];
32
32
  if (!e)
33
33
  return r;
@@ -47,7 +47,7 @@ function Y(r, t) {
47
47
  }
48
48
  return n;
49
49
  }
50
- function K(r, t, e) {
50
+ function G(r, t, e) {
51
51
  if (e || arguments.length === 2)
52
52
  for (var i = 0, s = t.length, n; i < s; i++)
53
53
  (n || !(i in t)) && (n || (n = Array.prototype.slice.call(t, 0, i)), n[i] = t[i]);
@@ -56,13 +56,13 @@ function K(r, t, e) {
56
56
  function b(r) {
57
57
  return typeof r == "function";
58
58
  }
59
- function Kt(r) {
59
+ function Gt(r) {
60
60
  var t = function(i) {
61
61
  Error.call(i), i.stack = new Error().stack;
62
62
  }, e = r(t);
63
63
  return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
64
64
  }
65
- var st = Kt(function(r) {
65
+ var nt = Gt(function(r) {
66
66
  return function(e) {
67
67
  r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
68
68
  ` + e.map(function(i, s) {
@@ -71,13 +71,13 @@ var st = Kt(function(r) {
71
71
  `) : "", this.name = "UnsubscriptionError", this.errors = e;
72
72
  };
73
73
  });
74
- function gt(r, t) {
74
+ function mt(r, t) {
75
75
  if (r) {
76
76
  var e = r.indexOf(t);
77
77
  0 <= e && r.splice(e, 1);
78
78
  }
79
79
  }
80
- var Q = function() {
80
+ var tt = function() {
81
81
  function r(t) {
82
82
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
83
83
  }
@@ -89,9 +89,9 @@ var Q = function() {
89
89
  if (o)
90
90
  if (this._parentage = null, Array.isArray(o))
91
91
  try {
92
- for (var a = ft(o), c = a.next(); !c.done; c = a.next()) {
93
- var l = c.value;
94
- l.remove(this);
92
+ for (var a = gt(o), c = a.next(); !c.done; c = a.next()) {
93
+ var h = c.value;
94
+ h.remove(this);
95
95
  }
96
96
  } catch (v) {
97
97
  t = { error: v };
@@ -105,23 +105,23 @@ var Q = function() {
105
105
  }
106
106
  else
107
107
  o.remove(this);
108
- var h = this.initialTeardown;
109
- if (b(h))
108
+ var l = this.initialTeardown;
109
+ if (b(l))
110
110
  try {
111
- h();
111
+ l();
112
112
  } catch (v) {
113
- n = v instanceof st ? v.errors : [v];
113
+ n = v instanceof nt ? v.errors : [v];
114
114
  }
115
115
  var p = this._finalizers;
116
116
  if (p) {
117
117
  this._finalizers = null;
118
118
  try {
119
- for (var f = ft(p), u = f.next(); !u.done; u = f.next()) {
119
+ for (var f = gt(p), u = f.next(); !u.done; u = f.next()) {
120
120
  var g = u.value;
121
121
  try {
122
122
  xt(g);
123
123
  } catch (v) {
124
- n = n ?? [], v instanceof st ? n = K(K([], Y(n)), Y(v.errors)) : n.push(v);
124
+ n = n ?? [], v instanceof nt ? n = G(G([], K(n)), K(v.errors)) : n.push(v);
125
125
  }
126
126
  }
127
127
  } catch (v) {
@@ -136,7 +136,7 @@ var Q = function() {
136
136
  }
137
137
  }
138
138
  if (n)
139
- throw new st(n);
139
+ throw new nt(n);
140
140
  }
141
141
  }, r.prototype.add = function(t) {
142
142
  var e;
@@ -159,17 +159,17 @@ var Q = function() {
159
159
  this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
160
160
  }, r.prototype._removeParent = function(t) {
161
161
  var e = this._parentage;
162
- e === t ? this._parentage = null : Array.isArray(e) && gt(e, t);
162
+ e === t ? this._parentage = null : Array.isArray(e) && mt(e, t);
163
163
  }, r.prototype.remove = function(t) {
164
164
  var e = this._finalizers;
165
- e && gt(e, t), t instanceof r && t._removeParent(this);
165
+ e && mt(e, t), t instanceof r && t._removeParent(this);
166
166
  }, r.EMPTY = function() {
167
167
  var t = new r();
168
168
  return t.closed = !0, t;
169
169
  }(), r;
170
- }(), Zt = Q.EMPTY;
170
+ }(), Zt = tt.EMPTY;
171
171
  function Jt(r) {
172
- return r instanceof Q || r && "closed" in r && b(r.remove) && b(r.add) && b(r.unsubscribe);
172
+ return r instanceof tt || r && "closed" in r && b(r.remove) && b(r.add) && b(r.unsubscribe);
173
173
  }
174
174
  function xt(r) {
175
175
  b(r) ? r() : r.unsubscribe();
@@ -180,21 +180,21 @@ var Xt = {
180
180
  Promise: void 0,
181
181
  useDeprecatedSynchronousErrorHandling: !1,
182
182
  useDeprecatedNextContext: !1
183
- }, mt = {
183
+ }, vt = {
184
184
  setTimeout: function(r, t) {
185
185
  for (var e = [], i = 2; i < arguments.length; i++)
186
186
  e[i - 2] = arguments[i];
187
- var s = mt.delegate;
188
- return s != null && s.setTimeout ? s.setTimeout.apply(s, K([r, t], Y(e))) : setTimeout.apply(void 0, K([r, t], Y(e)));
187
+ var s = vt.delegate;
188
+ return s != null && s.setTimeout ? s.setTimeout.apply(s, G([r, t], K(e))) : setTimeout.apply(void 0, G([r, t], K(e)));
189
189
  },
190
190
  clearTimeout: function(r) {
191
- var t = mt.delegate;
191
+ var t = vt.delegate;
192
192
  return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(r);
193
193
  },
194
194
  delegate: void 0
195
195
  };
196
196
  function ve(r) {
197
- mt.setTimeout(function() {
197
+ vt.setTimeout(function() {
198
198
  throw r;
199
199
  });
200
200
  }
@@ -210,7 +210,7 @@ var Qt = function(r) {
210
210
  return i.isStopped = !1, e ? (i.destination = e, Jt(e) && e.add(i)) : i.destination = _e, i;
211
211
  }
212
212
  return t.create = function(e, i, s) {
213
- return new vt(e, i, s);
213
+ return new yt(e, i, s);
214
214
  }, t.prototype.next = function(e) {
215
215
  this.isStopped || this._next(e);
216
216
  }, t.prototype.error = function(e) {
@@ -234,8 +234,8 @@ var Qt = function(r) {
234
234
  this.unsubscribe();
235
235
  }
236
236
  }, t;
237
- }(Q), ye = Function.prototype.bind;
238
- function nt(r, t) {
237
+ }(tt), ye = Function.prototype.bind;
238
+ function ot(r, t) {
239
239
  return ye.call(r, t);
240
240
  }
241
241
  var be = function() {
@@ -248,7 +248,7 @@ var be = function() {
248
248
  try {
249
249
  e.next(t);
250
250
  } catch (i) {
251
- W(i);
251
+ F(i);
252
252
  }
253
253
  }, r.prototype.error = function(t) {
254
254
  var e = this.partialObserver;
@@ -256,20 +256,20 @@ var be = function() {
256
256
  try {
257
257
  e.error(t);
258
258
  } catch (i) {
259
- W(i);
259
+ F(i);
260
260
  }
261
261
  else
262
- W(t);
262
+ F(t);
263
263
  }, r.prototype.complete = function() {
264
264
  var t = this.partialObserver;
265
265
  if (t.complete)
266
266
  try {
267
267
  t.complete();
268
268
  } catch (e) {
269
- W(e);
269
+ F(e);
270
270
  }
271
271
  }, r;
272
- }(), vt = function(r) {
272
+ }(), yt = function(r) {
273
273
  B(t, r);
274
274
  function t(e, i, s) {
275
275
  var n = r.call(this) || this, o;
@@ -284,16 +284,16 @@ var be = function() {
284
284
  n && Xt.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
285
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 && ot(e.next, a),
288
+ error: e.error && ot(e.error, a),
289
+ complete: e.complete && ot(e.complete, a)
290
290
  }) : o = e;
291
291
  }
292
292
  return n.destination = new be(o), n;
293
293
  }
294
294
  return t;
295
295
  }(Qt);
296
- function W(r) {
296
+ function F(r) {
297
297
  ve(r);
298
298
  }
299
299
  function $e(r) {
@@ -317,7 +317,7 @@ function Ce(r) {
317
317
  }, e);
318
318
  };
319
319
  }
320
- var Ot = function() {
320
+ var Pt = function() {
321
321
  function r(t) {
322
322
  t && (this._subscribe = t);
323
323
  }
@@ -325,7 +325,7 @@ var Ot = function() {
325
325
  var e = new r();
326
326
  return e.source = this, e.operator = t, e;
327
327
  }, r.prototype.subscribe = function(t, e, i) {
328
- var s = this, n = xe(t) ? t : new vt(t, e, i);
328
+ var s = this, n = xe(t) ? t : new yt(t, e, i);
329
329
  return q(function() {
330
330
  var o = s, a = o.operator, c = o.source;
331
331
  n.add(a ? a.call(n, c) : c ? s._subscribe(n) : s._trySubscribe(n));
@@ -338,8 +338,8 @@ var Ot = function() {
338
338
  }
339
339
  }, r.prototype.forEach = function(t, e) {
340
340
  var i = this;
341
- return e = Pt(e), new e(function(s, n) {
342
- var o = new vt({
341
+ return e = Ot(e), new e(function(s, n) {
342
+ var o = new yt({
343
343
  next: function(a) {
344
344
  try {
345
345
  t(a);
@@ -363,7 +363,7 @@ var Ot = function() {
363
363
  return Ce(t)(this);
364
364
  }, r.prototype.toPromise = function(t) {
365
365
  var e = this;
366
- return t = Pt(t), new t(function(i, s) {
366
+ return t = Ot(t), new t(function(i, s) {
367
367
  var n;
368
368
  e.subscribe(function(o) {
369
369
  return n = o;
@@ -377,7 +377,7 @@ var Ot = function() {
377
377
  return new r(t);
378
378
  }, r;
379
379
  }();
380
- function Pt(r) {
380
+ function Ot(r) {
381
381
  var t;
382
382
  return (t = r ?? Xt.Promise) !== null && t !== void 0 ? t : Promise;
383
383
  }
@@ -387,7 +387,7 @@ function Se(r) {
387
387
  function xe(r) {
388
388
  return r && r instanceof Qt || Se(r) && Jt(r);
389
389
  }
390
- var Ee = Kt(function(r) {
390
+ var Ee = Gt(function(r) {
391
391
  return function() {
392
392
  r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
393
393
  };
@@ -410,12 +410,12 @@ var Ee = Kt(function(r) {
410
410
  if (i._throwIfClosed(), !i.isStopped) {
411
411
  i.currentObservers || (i.currentObservers = Array.from(i.observers));
412
412
  try {
413
- for (var o = ft(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
413
+ for (var o = gt(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
414
414
  var c = a.value;
415
415
  c.next(e);
416
416
  }
417
- } catch (l) {
418
- s = { error: l };
417
+ } catch (h) {
418
+ s = { error: h };
419
419
  } finally {
420
420
  try {
421
421
  a && !a.done && (n = o.return) && n.call(o);
@@ -459,19 +459,19 @@ var Ee = Kt(function(r) {
459
459
  return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
460
460
  }, t.prototype._innerSubscribe = function(e) {
461
461
  var i = this, s = this, n = s.hasError, o = s.isStopped, a = s.observers;
462
- return n || o ? Zt : (this.currentObservers = null, a.push(e), new Q(function() {
463
- i.currentObservers = null, gt(a, e);
462
+ return n || o ? Zt : (this.currentObservers = null, a.push(e), new tt(function() {
463
+ i.currentObservers = null, mt(a, e);
464
464
  }));
465
465
  }, t.prototype._checkFinalizedStatuses = function(e) {
466
466
  var i = this, s = i.hasError, n = i.thrownError, o = i.isStopped;
467
467
  s ? e.error(n) : o && e.complete();
468
468
  }, t.prototype.asObservable = function() {
469
- var e = new Ot();
469
+ var e = new Pt();
470
470
  return e.source = this, e;
471
471
  }, t.create = function(e, i) {
472
472
  return new Tt(e, i);
473
473
  }, t;
474
- }(Ot), Tt = function(r) {
474
+ }(Pt), Tt = function(r) {
475
475
  B(t, r);
476
476
  function t(e, i) {
477
477
  var s = r.call(this) || this;
@@ -490,7 +490,7 @@ var Ee = Kt(function(r) {
490
490
  var i, s;
491
491
  return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && s !== void 0 ? s : Zt;
492
492
  }, t;
493
- }(te), Oe = function(r) {
493
+ }(te), Pe = function(r) {
494
494
  B(t, r);
495
495
  function t(e) {
496
496
  var i = r.call(this) || this;
@@ -516,7 +516,7 @@ var Ee = Kt(function(r) {
516
516
  }(te), ee = /* @__PURE__ */ ((r) => (r.Loading = "loading", r.Ready = "ready", r))(ee || {});
517
517
  class Rt {
518
518
  constructor(t, e) {
519
- this.state = new Oe(
519
+ this.state = new Pe(
520
520
  "loading"
521
521
  /* Loading */
522
522
  ), this.resolvers = /* @__PURE__ */ new Map(), this.name = t, this.environment = e, this.state.next(
@@ -559,7 +559,7 @@ let ie = class {
559
559
  return this.cssText;
560
560
  }
561
561
  };
562
- const Pe = (r) => new ie(typeof r == "string" ? r : r + "", void 0, $t), U = (r, ...t) => {
562
+ const Oe = (r) => new ie(typeof r == "string" ? r : r + "", void 0, $t), U = (r, ...t) => {
563
563
  const e = r.length === 1 ? r[0] : t.reduce((i, s, n) => i + ((o) => {
564
564
  if (o._$cssResult$ === !0)
565
565
  return o.cssText;
@@ -580,17 +580,17 @@ const Pe = (r) => new ie(typeof r == "string" ? r : r + "", void 0, $t), U = (r,
580
580
  let e = "";
581
581
  for (const i of t.cssRules)
582
582
  e += i.cssText;
583
- return Pe(e);
583
+ return Oe(e);
584
584
  })(r) : r;
585
585
  /**
586
586
  * @license
587
587
  * Copyright 2017 Google LLC
588
588
  * SPDX-License-Identifier: BSD-3-Clause
589
589
  */
590
- const { is: Re, defineProperty: Ue, getOwnPropertyDescriptor: Ie, getOwnPropertyNames: ke, getOwnPropertySymbols: Me, getPrototypeOf: Ne } = Object, w = globalThis, kt = w.trustedTypes, je = kt ? kt.emptyScript : "", ot = w.reactiveElementPolyfillSupport, k = (r, t) => r, Z = { toAttribute(r, t) {
590
+ const { is: Re, defineProperty: Ue, getOwnPropertyDescriptor: Ie, getOwnPropertyNames: Ne, getOwnPropertySymbols: je, getPrototypeOf: ke } = Object, w = globalThis, Nt = w.trustedTypes, Me = Nt ? Nt.emptyScript : "", at = w.reactiveElementPolyfillSupport, N = (r, t) => r, Z = { toAttribute(r, t) {
591
591
  switch (t) {
592
592
  case Boolean:
593
- r = r ? je : null;
593
+ r = r ? Me : null;
594
594
  break;
595
595
  case Object:
596
596
  case Array:
@@ -615,16 +615,16 @@ const { is: Re, defineProperty: Ue, getOwnPropertyDescriptor: Ie, getOwnProperty
615
615
  }
616
616
  }
617
617
  return e;
618
- } }, _t = (r, t) => !Re(r, t), Mt = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: _t };
618
+ } }, _t = (r, t) => !Re(r, t), jt = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: _t };
619
619
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), w.litPropertyMetadata ?? (w.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
620
- let P = class extends HTMLElement {
620
+ let O = class extends HTMLElement {
621
621
  static addInitializer(t) {
622
622
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
623
623
  }
624
624
  static get observedAttributes() {
625
625
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
626
626
  }
627
- static createProperty(t, e = Mt) {
627
+ static createProperty(t, e = jt) {
628
628
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
629
629
  const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
630
630
  s !== void 0 && Ue(this.prototype, t, s);
@@ -644,19 +644,19 @@ let P = class extends HTMLElement {
644
644
  }, configurable: !0, enumerable: !0 };
645
645
  }
646
646
  static getPropertyOptions(t) {
647
- return this.elementProperties.get(t) ?? Mt;
647
+ return this.elementProperties.get(t) ?? jt;
648
648
  }
649
649
  static _$Ei() {
650
- if (this.hasOwnProperty(k("elementProperties")))
650
+ if (this.hasOwnProperty(N("elementProperties")))
651
651
  return;
652
- const t = Ne(this);
652
+ const t = ke(this);
653
653
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
654
654
  }
655
655
  static finalize() {
656
- if (this.hasOwnProperty(k("finalized")))
656
+ if (this.hasOwnProperty(N("finalized")))
657
657
  return;
658
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(k("properties"))) {
659
- const e = this.properties, i = [...ke(e), ...Me(e)];
658
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(N("properties"))) {
659
+ const e = this.properties, i = [...Ne(e), ...je(e)];
660
660
  for (const s of i)
661
661
  this.createProperty(s, e[s]);
662
662
  }
@@ -693,15 +693,15 @@ let P = class extends HTMLElement {
693
693
  }
694
694
  _$Ev() {
695
695
  var t;
696
- this._$Eg = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
696
+ this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
697
697
  }
698
698
  addController(t) {
699
699
  var e;
700
- (this._$ES ?? (this._$ES = [])).push(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
700
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
701
701
  }
702
702
  removeController(t) {
703
703
  var e;
704
- (e = this._$ES) == null || e.splice(this._$ES.indexOf(t) >>> 0, 1);
704
+ (e = this._$EO) == null || e.delete(t);
705
705
  }
706
706
  _$E_() {
707
707
  const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
@@ -715,7 +715,7 @@ let P = class extends HTMLElement {
715
715
  }
716
716
  connectedCallback() {
717
717
  var t;
718
- this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) == null || t.forEach((e) => {
718
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
719
719
  var i;
720
720
  return (i = e.hostConnected) == null ? void 0 : i.call(e);
721
721
  });
@@ -724,7 +724,7 @@ let P = class extends HTMLElement {
724
724
  }
725
725
  disconnectedCallback() {
726
726
  var t;
727
- (t = this._$ES) == null || t.forEach((e) => {
727
+ (t = this._$EO) == null || t.forEach((e) => {
728
728
  var i;
729
729
  return (i = e.hostDisconnected) == null ? void 0 : i.call(e);
730
730
  });
@@ -732,7 +732,7 @@ let P = class extends HTMLElement {
732
732
  attributeChangedCallback(t, e, i) {
733
733
  this._$AK(t, i);
734
734
  }
735
- _$EO(t, e) {
735
+ _$EC(t, e) {
736
736
  var n;
737
737
  const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
738
738
  if (s !== void 0 && i.reflect === !0) {
@@ -748,21 +748,21 @@ let P = class extends HTMLElement {
748
748
  this._$Em = s, this[s] = a.fromAttribute(e, o.type), this._$Em = null;
749
749
  }
750
750
  }
751
- requestUpdate(t, e, i, s = !1, n) {
751
+ requestUpdate(t, e, i) {
752
752
  if (t !== void 0) {
753
- if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? _t)(s ? n : this[t], e))
753
+ if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? _t)(this[t], e))
754
754
  return;
755
- this.C(t, e, i);
755
+ this.P(t, e, i);
756
756
  }
757
- this.isUpdatePending === !1 && (this._$Eg = this._$EP());
757
+ this.isUpdatePending === !1 && (this._$ES = this._$ET());
758
758
  }
759
- C(t, e, i) {
759
+ P(t, e, i) {
760
760
  this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
761
761
  }
762
- async _$EP() {
762
+ async _$ET() {
763
763
  this.isUpdatePending = !0;
764
764
  try {
765
- await this._$Eg;
765
+ await this._$ES;
766
766
  } catch (e) {
767
767
  Promise.reject(e);
768
768
  }
@@ -777,7 +777,7 @@ let P = class extends HTMLElement {
777
777
  if (!this.isUpdatePending)
778
778
  return;
779
779
  if (!this.hasUpdated) {
780
- if (this._$Ep) {
780
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
781
781
  for (const [n, o] of this._$Ep)
782
782
  this[n] = o;
783
783
  this._$Ep = void 0;
@@ -785,17 +785,17 @@ let P = class extends HTMLElement {
785
785
  const s = this.constructor.elementProperties;
786
786
  if (s.size > 0)
787
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);
788
+ o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(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), (i = this._$ES) == null || i.forEach((s) => {
793
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((s) => {
794
794
  var n;
795
795
  return (n = s.hostUpdate) == null ? void 0 : n.call(s);
796
- }), this.update(e)) : this._$ET();
796
+ }), this.update(e)) : this._$EU();
797
797
  } catch (s) {
798
- throw t = !1, this._$ET(), s;
798
+ throw t = !1, this._$EU(), s;
799
799
  }
800
800
  t && this._$AE(e);
801
801
  }
@@ -803,55 +803,55 @@ let P = class extends HTMLElement {
803
803
  }
804
804
  _$AE(t) {
805
805
  var e;
806
- (e = this._$ES) == null || e.forEach((i) => {
806
+ (e = this._$EO) == null || e.forEach((i) => {
807
807
  var s;
808
808
  return (s = i.hostUpdated) == null ? void 0 : s.call(i);
809
809
  }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
810
810
  }
811
- _$ET() {
811
+ _$EU() {
812
812
  this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
813
813
  }
814
814
  get updateComplete() {
815
815
  return this.getUpdateComplete();
816
816
  }
817
817
  getUpdateComplete() {
818
- return this._$Eg;
818
+ return this._$ES;
819
819
  }
820
820
  shouldUpdate(t) {
821
821
  return !0;
822
822
  }
823
823
  update(t) {
824
- this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EO(e, this[e]))), this._$ET();
824
+ this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
825
825
  }
826
826
  updated(t) {
827
827
  }
828
828
  firstUpdated(t) {
829
829
  }
830
830
  };
831
- P.elementStyles = [], P.shadowRootOptions = { mode: "open" }, P[k("elementProperties")] = /* @__PURE__ */ new Map(), P[k("finalized")] = /* @__PURE__ */ new Map(), ot == null || ot({ ReactiveElement: P }), (w.reactiveElementVersions ?? (w.reactiveElementVersions = [])).push("2.0.1");
831
+ O.elementStyles = [], O.shadowRootOptions = { mode: "open" }, O[N("elementProperties")] = /* @__PURE__ */ new Map(), O[N("finalized")] = /* @__PURE__ */ new Map(), at == null || at({ ReactiveElement: O }), (w.reactiveElementVersions ?? (w.reactiveElementVersions = [])).push("2.0.4");
832
832
  /**
833
833
  * @license
834
834
  * Copyright 2017 Google LLC
835
835
  * SPDX-License-Identifier: BSD-3-Clause
836
836
  */
837
- const M = globalThis, J = M.trustedTypes, Nt = J ? J.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, re = "$lit$", _ = `lit$${(Math.random() + "").slice(9)}$`, se = "?" + _, Le = `<${se}>`, E = document, j = () => E.createComment(""), L = (r) => r === null || typeof r != "object" && typeof r != "function", ne = Array.isArray, He = (r) => ne(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", at = `[
838
- \f\r]`, I = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, jt = /-->/g, Lt = />/g, C = RegExp(`>|${at}(?:([^\\s"'>=/]+)(${at}*=${at}*(?:[^
839
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Ht = /'/g, Bt = /"/g, oe = /^(?:script|style|textarea|title)$/i, Be = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), T = Be(1), O = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Dt = /* @__PURE__ */ new WeakMap(), x = E.createTreeWalker(E, 129);
837
+ const j = globalThis, J = j.trustedTypes, kt = J ? J.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, re = "$lit$", _ = `lit$${(Math.random() + "").slice(9)}$`, se = "?" + _, Le = `<${se}>`, E = document, M = () => E.createComment(""), L = (r) => r === null || typeof r != "object" && typeof r != "function", ne = Array.isArray, He = (r) => ne(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", ct = `[
838
+ \f\r]`, I = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Mt = /-->/g, Lt = />/g, C = RegExp(`>|${ct}(?:([^\\s"'>=/]+)(${ct}*=${ct}*(?:[^
839
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Ht = /'/g, Bt = /"/g, oe = /^(?:script|style|textarea|title)$/i, Be = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), T = Be(1), P = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Dt = /* @__PURE__ */ new WeakMap(), x = E.createTreeWalker(E, 129);
840
840
  function ae(r, t) {
841
841
  if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
842
842
  throw Error("invalid template strings array");
843
- return Nt !== void 0 ? Nt.createHTML(t) : t;
843
+ return kt !== void 0 ? kt.createHTML(t) : t;
844
844
  }
845
845
  const De = (r, t) => {
846
846
  const e = r.length - 1, i = [];
847
847
  let s, n = t === 2 ? "<svg>" : "", o = I;
848
848
  for (let a = 0; a < e; a++) {
849
849
  const c = r[a];
850
- let l, h, p = -1, f = 0;
851
- for (; f < c.length && (o.lastIndex = f, h = o.exec(c), h !== null); )
852
- f = o.lastIndex, o === I ? h[1] === "!--" ? o = jt : h[1] !== void 0 ? o = Lt : h[2] !== void 0 ? (oe.test(h[2]) && (s = RegExp("</" + h[2], "g")), o = C) : h[3] !== void 0 && (o = C) : o === C ? h[0] === ">" ? (o = s ?? I, p = -1) : h[1] === void 0 ? p = -2 : (p = o.lastIndex - h[2].length, l = h[1], o = h[3] === void 0 ? C : h[3] === '"' ? Bt : Ht) : o === Bt || o === Ht ? o = C : o === jt || o === Lt ? o = I : (o = C, s = void 0);
850
+ let h, l, p = -1, f = 0;
851
+ for (; f < c.length && (o.lastIndex = f, l = o.exec(c), l !== null); )
852
+ f = o.lastIndex, o === I ? l[1] === "!--" ? o = Mt : l[1] !== void 0 ? o = Lt : l[2] !== void 0 ? (oe.test(l[2]) && (s = RegExp("</" + l[2], "g")), o = C) : l[3] !== void 0 && (o = C) : o === C ? l[0] === ">" ? (o = s ?? I, p = -1) : l[1] === void 0 ? p = -2 : (p = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? C : l[3] === '"' ? Bt : Ht) : o === Bt || o === Ht ? o = C : o === Mt || o === Lt ? o = I : (o = C, s = void 0);
853
853
  const u = o === C && r[a + 1].startsWith("/>") ? " " : "";
854
- n += o === I ? c + Le : p >= 0 ? (i.push(l), c.slice(0, p) + re + c.slice(p) + _ + u) : c + _ + (p === -2 ? a : u);
854
+ n += o === I ? c + Le : p >= 0 ? (i.push(h), c.slice(0, p) + re + c.slice(p) + _ + u) : c + _ + (p === -2 ? a : u);
855
855
  }
856
856
  return [ae(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
857
857
  };
@@ -860,8 +860,8 @@ class H {
860
860
  let s;
861
861
  this.parts = [];
862
862
  let n = 0, o = 0;
863
- const a = t.length - 1, c = this.parts, [l, h] = De(t, e);
864
- if (this.el = H.createElement(l, i), x.currentNode = this.el.content, e === 2) {
863
+ const a = t.length - 1, c = this.parts, [h, l] = De(t, e);
864
+ if (this.el = H.createElement(h, i), x.currentNode = this.el.content, e === 2) {
865
865
  const p = this.el.content.firstChild;
866
866
  p.replaceWith(...p.childNodes);
867
867
  }
@@ -870,8 +870,8 @@ class H {
870
870
  if (s.hasAttributes())
871
871
  for (const p of s.getAttributeNames())
872
872
  if (p.endsWith(re)) {
873
- const f = h[o++], u = s.getAttribute(p).split(_), g = /([.?@])?(.*)/.exec(f);
874
- c.push({ type: 1, index: n, name: g[2], strings: u, ctor: g[1] === "." ? Fe : g[1] === "?" ? We : g[1] === "@" ? Ge : tt }), s.removeAttribute(p);
873
+ const f = l[o++], u = s.getAttribute(p).split(_), g = /([.?@])?(.*)/.exec(f);
874
+ c.push({ type: 1, index: n, name: g[2], strings: u, ctor: g[1] === "." ? We : g[1] === "?" ? Fe : g[1] === "@" ? Ye : et }), s.removeAttribute(p);
875
875
  } else
876
876
  p.startsWith(_) && (c.push({ type: 6, index: n }), s.removeAttribute(p));
877
877
  if (oe.test(s.tagName)) {
@@ -879,8 +879,8 @@ class H {
879
879
  if (f > 0) {
880
880
  s.textContent = J ? J.emptyScript : "";
881
881
  for (let u = 0; u < f; u++)
882
- s.append(p[u], j()), x.nextNode(), c.push({ type: 2, index: ++n });
883
- s.append(p[f], j());
882
+ s.append(p[u], M()), x.nextNode(), c.push({ type: 2, index: ++n });
883
+ s.append(p[f], M());
884
884
  }
885
885
  }
886
886
  } else if (s.nodeType === 8)
@@ -901,7 +901,7 @@ class H {
901
901
  }
902
902
  function R(r, t, e = r, i) {
903
903
  var o, a;
904
- if (t === O)
904
+ if (t === P)
905
905
  return t;
906
906
  let s = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
907
907
  const n = L(t) ? void 0 : t._$litDirective$;
@@ -923,8 +923,8 @@ class ze {
923
923
  let n = x.nextNode(), o = 0, a = 0, c = i[0];
924
924
  for (; c !== void 0; ) {
925
925
  if (o === c.index) {
926
- let l;
927
- c.type === 2 ? l = new D(n, n.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (l = new qe(n, this, t)), this._$AV.push(l), c = i[++a];
926
+ let h;
927
+ c.type === 2 ? h = new D(n, n.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (h = new qe(n, this, t)), this._$AV.push(h), c = i[++a];
928
928
  }
929
929
  o !== (c == null ? void 0 : c.index) && (n = x.nextNode(), o++);
930
930
  }
@@ -956,37 +956,37 @@ class D {
956
956
  return this._$AB;
957
957
  }
958
958
  _$AI(t, e = this) {
959
- t = R(this, t, e), L(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== O && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : He(t) ? this.T(t) : this._(t);
959
+ t = R(this, t, e), L(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.$(t) : t.nodeType !== void 0 ? this.T(t) : He(t) ? this.k(t) : this._(t);
960
960
  }
961
- k(t) {
961
+ S(t) {
962
962
  return this._$AA.parentNode.insertBefore(t, this._$AB);
963
963
  }
964
- $(t) {
965
- this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
964
+ T(t) {
965
+ this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
966
966
  }
967
967
  _(t) {
968
- this._$AH !== d && L(this._$AH) ? this._$AA.nextSibling.data = t : this.$(E.createTextNode(t)), this._$AH = t;
968
+ this._$AH !== d && L(this._$AH) ? this._$AA.nextSibling.data = t : this.T(E.createTextNode(t)), this._$AH = t;
969
969
  }
970
- g(t) {
970
+ $(t) {
971
971
  var n;
972
972
  const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = H.createElement(ae(i.h, i.h[0]), this.options)), i);
973
973
  if (((n = this._$AH) == null ? void 0 : n._$AD) === s)
974
974
  this._$AH.p(e);
975
975
  else {
976
976
  const o = new ze(s, this), a = o.u(this.options);
977
- o.p(e), this.$(a), this._$AH = o;
977
+ o.p(e), this.T(a), this._$AH = o;
978
978
  }
979
979
  }
980
980
  _$AC(t) {
981
981
  let e = Dt.get(t.strings);
982
982
  return e === void 0 && Dt.set(t.strings, e = new H(t)), e;
983
983
  }
984
- T(t) {
984
+ k(t) {
985
985
  ne(this._$AH) || (this._$AH = [], this._$AR());
986
986
  const e = this._$AH;
987
987
  let i, s = 0;
988
988
  for (const n of t)
989
- s === e.length ? e.push(i = new D(this.k(j()), this.k(j()), this, this.options)) : i = e[s], i._$AI(n), s++;
989
+ s === e.length ? e.push(i = new D(this.S(M()), this.S(M()), this, this.options)) : i = e[s], i._$AI(n), s++;
990
990
  s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
991
991
  }
992
992
  _$AR(t = this._$AA.nextSibling, e) {
@@ -1001,7 +1001,7 @@ class D {
1001
1001
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
1002
1002
  }
1003
1003
  }
1004
- class tt {
1004
+ class et {
1005
1005
  get tagName() {
1006
1006
  return this.element.tagName;
1007
1007
  }
@@ -1015,41 +1015,41 @@ class tt {
1015
1015
  const n = this.strings;
1016
1016
  let o = !1;
1017
1017
  if (n === void 0)
1018
- t = R(this, t, e, 0), o = !L(t) || t !== this._$AH && t !== O, o && (this._$AH = t);
1018
+ t = R(this, t, e, 0), o = !L(t) || t !== this._$AH && t !== P, o && (this._$AH = t);
1019
1019
  else {
1020
1020
  const a = t;
1021
- let c, l;
1021
+ let c, h;
1022
1022
  for (t = n[0], c = 0; c < n.length - 1; c++)
1023
- l = R(this, a[i + c], e, c), l === O && (l = this._$AH[c]), o || (o = !L(l) || l !== this._$AH[c]), l === d ? t = d : t !== d && (t += (l ?? "") + n[c + 1]), this._$AH[c] = l;
1023
+ h = R(this, a[i + c], e, c), h === P && (h = this._$AH[c]), o || (o = !L(h) || h !== this._$AH[c]), h === d ? t = d : t !== d && (t += (h ?? "") + n[c + 1]), this._$AH[c] = h;
1024
1024
  }
1025
- o && !s && this.O(t);
1025
+ o && !s && this.j(t);
1026
1026
  }
1027
- O(t) {
1027
+ j(t) {
1028
1028
  t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
1029
1029
  }
1030
1030
  }
1031
- class Fe extends tt {
1031
+ class We extends et {
1032
1032
  constructor() {
1033
1033
  super(...arguments), this.type = 3;
1034
1034
  }
1035
- O(t) {
1035
+ j(t) {
1036
1036
  this.element[this.name] = t === d ? void 0 : t;
1037
1037
  }
1038
1038
  }
1039
- class We extends tt {
1039
+ class Fe extends et {
1040
1040
  constructor() {
1041
1041
  super(...arguments), this.type = 4;
1042
1042
  }
1043
- O(t) {
1043
+ j(t) {
1044
1044
  this.element.toggleAttribute(this.name, !!t && t !== d);
1045
1045
  }
1046
1046
  }
1047
- class Ge extends tt {
1047
+ class Ye extends et {
1048
1048
  constructor(t, e, i, s, n) {
1049
1049
  super(t, e, i, s, n), this.type = 5;
1050
1050
  }
1051
1051
  _$AI(t, e = this) {
1052
- if ((t = R(this, t, e, 0) ?? d) === O)
1052
+ if ((t = R(this, t, e, 0) ?? d) === P)
1053
1053
  return;
1054
1054
  const i = this._$AH, s = t === d && i !== d || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== d && (i === d || s);
1055
1055
  s && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
@@ -1070,14 +1070,14 @@ class qe {
1070
1070
  R(this, t);
1071
1071
  }
1072
1072
  }
1073
- const ct = M.litHtmlPolyfillSupport;
1074
- ct == null || ct(H, D), (M.litHtmlVersions ?? (M.litHtmlVersions = [])).push("3.0.2");
1073
+ const ht = j.litHtmlPolyfillSupport;
1074
+ ht == null || ht(H, D), (j.litHtmlVersions ?? (j.litHtmlVersions = [])).push("3.1.2");
1075
1075
  const Ve = (r, t, e) => {
1076
1076
  const i = (e == null ? void 0 : e.renderBefore) ?? t;
1077
1077
  let s = i._$litPart$;
1078
1078
  if (s === void 0) {
1079
1079
  const n = (e == null ? void 0 : e.renderBefore) ?? null;
1080
- i._$litPart$ = s = new D(t.insertBefore(j(), n), n, void 0, e ?? {});
1080
+ i._$litPart$ = s = new D(t.insertBefore(M(), n), n, void 0, e ?? {});
1081
1081
  }
1082
1082
  return s._$AI(r), s;
1083
1083
  };
@@ -1086,7 +1086,7 @@ const Ve = (r, t, e) => {
1086
1086
  * Copyright 2017 Google LLC
1087
1087
  * SPDX-License-Identifier: BSD-3-Clause
1088
1088
  */
1089
- let $ = class extends P {
1089
+ let $ = class extends O {
1090
1090
  constructor() {
1091
1091
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
1092
1092
  }
@@ -1108,20 +1108,20 @@ let $ = class extends P {
1108
1108
  super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
1109
1109
  }
1110
1110
  render() {
1111
- return O;
1111
+ return P;
1112
1112
  }
1113
1113
  };
1114
- var Yt;
1115
- $._$litElement$ = !0, $.finalized = !0, (Yt = globalThis.litElementHydrateSupport) == null || Yt.call(globalThis, { LitElement: $ });
1114
+ var Kt;
1115
+ $._$litElement$ = !0, $.finalized = !0, (Kt = globalThis.litElementHydrateSupport) == null || Kt.call(globalThis, { LitElement: $ });
1116
1116
  const lt = globalThis.litElementPolyfillSupport;
1117
1117
  lt == null || lt({ LitElement: $ });
1118
- (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
1118
+ (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
1119
1119
  /**
1120
1120
  * @license
1121
1121
  * Copyright 2017 Google LLC
1122
1122
  * SPDX-License-Identifier: BSD-3-Clause
1123
1123
  */
1124
- const Ye = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: _t }, Ke = (r = Ye, t, e) => {
1124
+ const Ke = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: _t }, Ge = (r = Ke, t, e) => {
1125
1125
  const { kind: i, metadata: s } = e;
1126
1126
  let n = globalThis.litPropertyMetadata.get(s);
1127
1127
  if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), n.set(e.name, r), i === "accessor") {
@@ -1130,7 +1130,7 @@ const Ye = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged:
1130
1130
  const c = t.get.call(this);
1131
1131
  t.set.call(this, a), this.requestUpdate(o, c, r);
1132
1132
  }, init(a) {
1133
- return a !== void 0 && this.C(o, void 0, r), a;
1133
+ return a !== void 0 && this.P(o, void 0, r), a;
1134
1134
  } };
1135
1135
  }
1136
1136
  if (i === "setter") {
@@ -1143,7 +1143,7 @@ const Ye = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged:
1143
1143
  throw Error("Unsupported decorator location: " + i);
1144
1144
  };
1145
1145
  function m(r) {
1146
- return (t, e) => typeof e == "object" ? Ke(r, t, e) : ((i, s, n) => {
1146
+ return (t, e) => typeof e == "object" ? Ge(r, t, e) : ((i, s, n) => {
1147
1147
  const o = s.hasOwnProperty(n);
1148
1148
  return s.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(s, n) : void 0;
1149
1149
  })(r, t, e);
@@ -1161,7 +1161,7 @@ var Ze = Object.defineProperty, Je = Object.getOwnPropertyDescriptor, Xe = (r, t
1161
1161
  (o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
1162
1162
  return i && s && Ze(t, e, s), s;
1163
1163
  };
1164
- class et extends $ {
1164
+ class it extends $ {
1165
1165
  constructor() {
1166
1166
  super(...arguments), this.anchor = "BottomRight";
1167
1167
  }
@@ -1173,7 +1173,7 @@ class et extends $ {
1173
1173
  return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), d;
1174
1174
  }
1175
1175
  }
1176
- et.styles = [
1176
+ it.styles = [
1177
1177
  U`
1178
1178
  :host {
1179
1179
  position: fixed;
@@ -1194,7 +1194,7 @@ et.styles = [
1194
1194
  ];
1195
1195
  Xe([
1196
1196
  m({ attribute: !0 })
1197
- ], et.prototype, "anchor", 2);
1197
+ ], it.prototype, "anchor", 2);
1198
1198
  /**
1199
1199
  * @license
1200
1200
  * Copyright 2017 Google LLC
@@ -1228,13 +1228,13 @@ const Qe = (r) => r.strings === void 0;
1228
1228
  * Copyright 2017 Google LLC
1229
1229
  * SPDX-License-Identifier: BSD-3-Clause
1230
1230
  */
1231
- const N = (r, t) => {
1231
+ const k = (r, t) => {
1232
1232
  var i;
1233
1233
  const e = r._$AN;
1234
1234
  if (e === void 0)
1235
1235
  return !1;
1236
1236
  for (const s of e)
1237
- (i = s._$AO) == null || i.call(s, t, !1), N(s, t);
1237
+ (i = s._$AO) == null || i.call(s, t, !1), k(s, t);
1238
1238
  return !0;
1239
1239
  }, X = (r) => {
1240
1240
  let t, e;
@@ -1243,7 +1243,7 @@ const N = (r, t) => {
1243
1243
  break;
1244
1244
  e = t._$AN, e.delete(r), r = t;
1245
1245
  } while ((e == null ? void 0 : e.size) === 0);
1246
- }, le = (r) => {
1246
+ }, he = (r) => {
1247
1247
  for (let t; t = r._$AM; r = t) {
1248
1248
  let e = t._$AN;
1249
1249
  if (e === void 0)
@@ -1254,7 +1254,7 @@ const N = (r, t) => {
1254
1254
  }
1255
1255
  };
1256
1256
  function ti(r) {
1257
- this._$AN !== void 0 ? (X(this), this._$AM = r, le(this)) : this._$AM = r;
1257
+ this._$AN !== void 0 ? (X(this), this._$AM = r, he(this)) : this._$AM = r;
1258
1258
  }
1259
1259
  function ei(r, t = !1, e = 0) {
1260
1260
  const i = this._$AH, s = this._$AN;
@@ -1262,25 +1262,25 @@ function ei(r, t = !1, e = 0) {
1262
1262
  if (t)
1263
1263
  if (Array.isArray(i))
1264
1264
  for (let n = e; n < i.length; n++)
1265
- N(i[n], !1), X(i[n]);
1265
+ k(i[n], !1), X(i[n]);
1266
1266
  else
1267
- i != null && (N(i, !1), X(i));
1267
+ i != null && (k(i, !1), X(i));
1268
1268
  else
1269
- N(this, r);
1269
+ k(this, r);
1270
1270
  }
1271
1271
  const ii = (r) => {
1272
1272
  r.type == wt.CHILD && (r._$AP ?? (r._$AP = ei), r._$AQ ?? (r._$AQ = ti));
1273
1273
  };
1274
- class he extends ce {
1274
+ class le extends ce {
1275
1275
  constructor() {
1276
1276
  super(...arguments), this._$AN = void 0;
1277
1277
  }
1278
1278
  _$AT(t, e, i) {
1279
- super._$AT(t, e, i), le(this), this.isConnected = t._$AU;
1279
+ super._$AT(t, e, i), he(this), this.isConnected = t._$AU;
1280
1280
  }
1281
1281
  _$AO(t, e = !0) {
1282
1282
  var i, s;
1283
- t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), e && (N(this, t), X(this));
1283
+ t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), e && (k(this, t), X(this));
1284
1284
  }
1285
1285
  setValue(t) {
1286
1286
  if (Qe(this._$Ct))
@@ -1297,17 +1297,17 @@ class he extends ce {
1297
1297
  }
1298
1298
  const ri = /* @__PURE__ */ new WeakMap();
1299
1299
  let zt = 0;
1300
- const ht = /* @__PURE__ */ new Map(), Ft = /* @__PURE__ */ new WeakSet(), Wt = () => new Promise((r) => requestAnimationFrame(r)), si = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Gt = (r, t) => {
1300
+ const pt = /* @__PURE__ */ new Map(), Wt = /* @__PURE__ */ new WeakSet(), Ft = () => new Promise((r) => requestAnimationFrame(r)), si = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Yt = (r, t) => {
1301
1301
  const e = r - t;
1302
1302
  return e === 0 ? void 0 : e;
1303
1303
  }, qt = (r, t) => {
1304
1304
  const e = r / t;
1305
1305
  return e === 1 ? void 0 : e;
1306
- }, pt = { left: (r, t) => {
1307
- const e = Gt(r, t);
1306
+ }, dt = { left: (r, t) => {
1307
+ const e = Yt(r, t);
1308
1308
  return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
1309
1309
  }, top: (r, t) => {
1310
- const e = Gt(r, t);
1310
+ const e = Yt(r, t);
1311
1311
  return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
1312
1312
  }, width: (r, t) => {
1313
1313
  let e;
@@ -1320,27 +1320,27 @@ const ht = /* @__PURE__ */ new Map(), Ft = /* @__PURE__ */ new WeakSet(), Wt = (
1320
1320
  const i = qt(r, t);
1321
1321
  return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
1322
1322
  } }, ni = { duration: 333, easing: "ease-in-out" }, oi = ["left", "top", "width", "height", "opacity", "color", "background"], Vt = /* @__PURE__ */ new WeakMap();
1323
- class ai extends he {
1323
+ class ai extends le {
1324
1324
  constructor(t) {
1325
- if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === wt.CHILD)
1325
+ if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === wt.CHILD)
1326
1326
  throw Error("The `animate` directive must be used in attribute position.");
1327
1327
  this.createFinished();
1328
1328
  }
1329
1329
  createFinished() {
1330
1330
  var t;
1331
1331
  (t = this.resolveFinished) == null || t.call(this), this.finished = new Promise((e) => {
1332
- this.h = e;
1332
+ this.l = e;
1333
1333
  });
1334
1334
  }
1335
1335
  async resolveFinished() {
1336
1336
  var t;
1337
- (t = this.h) == null || t.call(this), this.h = void 0;
1337
+ (t = this.l) == null || t.call(this), this.l = void 0;
1338
1338
  }
1339
1339
  render(t) {
1340
1340
  return d;
1341
1341
  }
1342
1342
  getController() {
1343
- return ri.get(this.l);
1343
+ return ri.get(this.u);
1344
1344
  }
1345
1345
  isDisabled() {
1346
1346
  var t;
@@ -1348,22 +1348,22 @@ class ai extends he {
1348
1348
  }
1349
1349
  update(t, [e]) {
1350
1350
  var s;
1351
- const i = this.l === void 0;
1352
- return i && (this.l = (s = t.options) == null ? void 0 : s.host, this.l.addController(this), this.element = t.element, Vt.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.u(e), this.render(e);
1351
+ const i = this.u === void 0;
1352
+ return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then((n) => this.t = !0), this.element = t.element, Vt.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
1353
1353
  }
1354
- u(t) {
1354
+ p(t) {
1355
1355
  t = t ?? {};
1356
1356
  const e = this.getController();
1357
1357
  e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = oi), this.options = t;
1358
1358
  }
1359
- p() {
1359
+ m() {
1360
1360
  const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
1361
1361
  return this.options.properties.forEach((s) => {
1362
- const n = e[s] ?? (pt[s] ? void 0 : i[s]), o = Number(n);
1362
+ const n = e[s] ?? (dt[s] ? void 0 : i[s]), o = Number(n);
1363
1363
  t[s] = isNaN(o) ? n + "" : o;
1364
1364
  }), t;
1365
1365
  }
1366
- m() {
1366
+ v() {
1367
1367
  let t, e = !0;
1368
1368
  return this.options.guard && (t = this.options.guard(), e = ((i, s) => {
1369
1369
  if (Array.isArray(i)) {
@@ -1372,25 +1372,25 @@ class ai extends he {
1372
1372
  } else if (s === i)
1373
1373
  return !1;
1374
1374
  return !0;
1375
- })(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;
1375
+ })(t, this._)), this.h = this.t && !this.isDisabled() && !this.isAnimating() && e && this.element.isConnected, this.h && (this._ = Array.isArray(t) ? Array.from(t) : t), this.h;
1376
1376
  }
1377
1377
  hostUpdate() {
1378
- 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);
1378
+ typeof this.optionsOrCallback == "function" && this.p(this.optionsOrCallback()), this.v() && (this.A = this.m(), this.i = this.i ?? this.element.parentNode, this.o = this.element.nextSibling);
1379
1379
  }
1380
1380
  async hostUpdated() {
1381
- if (!this.o || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
1381
+ if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
1382
1382
  return;
1383
1383
  let t;
1384
- this.prepare(), await Wt;
1385
- const e = this._(), i = this.A(this.options.keyframeOptions, e), s = this.p();
1386
- if (this.g !== void 0) {
1387
- const { from: n, to: o } = this.O(this.g, s, e);
1388
- this.log("measured", [this.g, s, n, o]), t = this.calculateKeyframes(n, o);
1384
+ this.prepare(), await Ft;
1385
+ const e = this.O(), i = this.j(this.options.keyframeOptions, e), s = this.m();
1386
+ if (this.A !== void 0) {
1387
+ const { from: n, to: o } = this.N(this.A, s, e);
1388
+ this.log("measured", [this.A, s, n, o]), t = this.calculateKeyframes(n, o);
1389
1389
  } else {
1390
- const n = ht.get(this.options.inId);
1390
+ const n = pt.get(this.options.inId);
1391
1391
  if (n) {
1392
- ht.delete(this.options.inId);
1393
- const { from: o, to: a } = this.O(n, s, e);
1392
+ pt.delete(this.options.inId);
1393
+ const { from: o, to: a } = this.N(n, s, e);
1394
1394
  t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, zt++, t.forEach((c) => c.zIndex = zt);
1395
1395
  } else
1396
1396
  this.options.in && (t = [...this.options.in, {}]);
@@ -1398,28 +1398,28 @@ class ai extends he {
1398
1398
  this.animate(t, i);
1399
1399
  }
1400
1400
  resetStyles() {
1401
- this.j !== void 0 && (this.element.setAttribute("style", this.j ?? ""), this.j = void 0);
1401
+ this.P !== void 0 && (this.element.setAttribute("style", this.P ?? ""), this.P = void 0);
1402
1402
  }
1403
1403
  commitStyles() {
1404
1404
  var t, e;
1405
- this.j = this.element.getAttribute("style"), (t = this.webAnimation) == null || t.commitStyles(), (e = this.webAnimation) == null || e.cancel();
1405
+ this.P = this.element.getAttribute("style"), (t = this.webAnimation) == null || t.commitStyles(), (e = this.webAnimation) == null || e.cancel();
1406
1406
  }
1407
1407
  reconnected() {
1408
1408
  }
1409
1409
  async disconnected() {
1410
1410
  var e;
1411
- if (!this.o || (this.options.id !== void 0 && ht.set(this.options.id, this.g), this.options.out === void 0))
1411
+ if (!this.h || (this.options.id !== void 0 && pt.set(this.options.id, this.A), this.options.out === void 0))
1412
1412
  return;
1413
- if (this.prepare(), await Wt(), (e = this.t) == null ? void 0 : e.isConnected) {
1414
- const i = this.i && this.i.parentNode === this.t ? this.i : null;
1415
- if (this.t.insertBefore(this.element, i), this.options.stabilizeOut) {
1416
- const s = this.p();
1413
+ if (this.prepare(), await Ft(), (e = this.i) == null ? void 0 : e.isConnected) {
1414
+ const i = this.o && this.o.parentNode === this.i ? this.o : null;
1415
+ if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
1416
+ const s = this.m();
1417
1417
  this.log("stabilizing out");
1418
- const n = this.g.left - s.left, o = this.g.top - s.top;
1418
+ const n = this.A.left - s.left, o = this.A.top - s.top;
1419
1419
  getComputedStyle(this.element).position !== "static" || n === 0 && o === 0 || (this.element.style.position = "relative"), n !== 0 && (this.element.style.left = n + "px"), o !== 0 && (this.element.style.top = o + "px");
1420
1420
  }
1421
1421
  }
1422
- const t = this.A(this.options.keyframeOptions);
1422
+ const t = this.j(this.options.keyframeOptions);
1423
1423
  await this.animate(this.options.out, t), this.element.remove();
1424
1424
  }
1425
1425
  prepare() {
@@ -1431,9 +1431,9 @@ class ai extends he {
1431
1431
  }
1432
1432
  didFinish(t) {
1433
1433
  var e, i;
1434
- t && ((i = (e = this.options).onComplete) == null || i.call(e, this)), this.g = void 0, this.animatingProperties = void 0, this.frames = void 0, this.resolveFinished();
1434
+ t && ((i = (e = this.options).onComplete) == null || i.call(e, this)), this.A = void 0, this.animatingProperties = void 0, this.frames = void 0, this.resolveFinished();
1435
1435
  }
1436
- _() {
1436
+ O() {
1437
1437
  const t = [];
1438
1438
  for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
1439
1439
  const i = Vt.get(e);
@@ -1442,20 +1442,20 @@ class ai extends he {
1442
1442
  return t;
1443
1443
  }
1444
1444
  get isHostRendered() {
1445
- const t = Ft.has(this.l);
1446
- return t || this.l.updateComplete.then(() => {
1447
- Ft.add(this.l);
1445
+ const t = Wt.has(this.u);
1446
+ return t || this.u.updateComplete.then(() => {
1447
+ Wt.add(this.u);
1448
1448
  }), t;
1449
1449
  }
1450
- A(t, e = this._()) {
1450
+ j(t, e = this.O()) {
1451
1451
  const i = { ...ni };
1452
1452
  return e.forEach((s) => Object.assign(i, s.options.keyframeOptions)), Object.assign(i, t), i;
1453
1453
  }
1454
- O(t, e, i) {
1454
+ N(t, e, i) {
1455
1455
  t = { ...t }, e = { ...e };
1456
1456
  const s = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
1457
1457
  let n = 1, o = 1;
1458
- return s !== void 0 && (s.forEach((a) => {
1458
+ return s.length > 0 && (s.forEach((a) => {
1459
1459
  a.width && (n /= a.width), a.height && (o /= a.height);
1460
1460
  }), t.left !== void 0 && e.left !== void 0 && (t.left = n * t.left, e.left = n * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = o * t.top, e.top = o * e.top)), { from: t, to: e };
1461
1461
  }
@@ -1464,15 +1464,15 @@ class ai extends he {
1464
1464
  let o = !1;
1465
1465
  const a = {};
1466
1466
  for (const c in e) {
1467
- const l = t[c], h = e[c];
1468
- if (c in pt) {
1469
- const p = pt[c];
1470
- if (l === void 0 || h === void 0)
1467
+ const h = t[c], l = e[c];
1468
+ if (c in dt) {
1469
+ const p = dt[c];
1470
+ if (h === void 0 || l === void 0)
1471
1471
  continue;
1472
- const f = p(l, h);
1472
+ const f = p(h, l);
1473
1473
  f.transform !== void 0 && (a[c] = f.value, o = !0, s.transform = `${s.transform ?? ""} ${f.transform}`, f.overrideFrom !== void 0 && Object.assign(s, f.overrideFrom));
1474
1474
  } else
1475
- l !== h && l !== void 0 && h !== void 0 && (o = !0, s[c] = l, n[c] = h);
1475
+ h !== l && h !== void 0 && l !== void 0 && (o = !0, s[c] = h, n[c] = l);
1476
1476
  }
1477
1477
  return s.transformOrigin = n.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [s, n] : void 0;
1478
1478
  }
@@ -1499,13 +1499,13 @@ class ai extends he {
1499
1499
  this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
1500
1500
  }
1501
1501
  }
1502
- const ci = At(ai), li = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' };
1502
+ const ci = At(ai), hi = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' };
1503
1503
  /**
1504
1504
  * @license
1505
1505
  * Copyright 2018 Google LLC
1506
1506
  * SPDX-License-Identifier: BSD-3-Clause
1507
1507
  */
1508
- const hi = At(class extends ce {
1508
+ const li = At(class extends ce {
1509
1509
  constructor(r) {
1510
1510
  var t;
1511
1511
  if (super(r), r.type !== wt.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
@@ -1516,34 +1516,34 @@ const hi = At(class extends ce {
1516
1516
  }
1517
1517
  update(r, [t]) {
1518
1518
  var i, s;
1519
- if (this.it === void 0) {
1520
- this.it = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.st = new Set(r.strings.join(" ").split(/\s/).filter((n) => n !== "")));
1519
+ if (this.st === void 0) {
1520
+ this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((n) => n !== "")));
1521
1521
  for (const n in t)
1522
- t[n] && !((i = this.st) != null && i.has(n)) && this.it.add(n);
1522
+ t[n] && !((i = this.nt) != null && i.has(n)) && this.st.add(n);
1523
1523
  return this.render(t);
1524
1524
  }
1525
1525
  const e = r.element.classList;
1526
- for (const n of this.it)
1527
- n in t || (e.remove(n), this.it.delete(n));
1526
+ for (const n of this.st)
1527
+ n in t || (e.remove(n), this.st.delete(n));
1528
1528
  for (const n in t) {
1529
1529
  const o = !!t[n];
1530
- 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)));
1530
+ o === this.st.has(n) || (s = this.nt) != null && s.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
1531
1531
  }
1532
- return O;
1532
+ return P;
1533
1533
  }
1534
- }), G = (r, t, e) => {
1534
+ }), Y = (r, t, e) => {
1535
1535
  r && e.style.setProperty(t, r);
1536
1536
  }, pe = (r, t) => {
1537
1537
  var e, i, s, n;
1538
- G((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), G(
1538
+ Y((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), Y(
1539
1539
  (i = r.colors) == null ? void 0 : i.textOnPrimaryBackground,
1540
1540
  "--text-on-primary-background",
1541
1541
  t
1542
- ), G(
1542
+ ), Y(
1543
1543
  (s = r.colors) == null ? void 0 : s.secondaryBackground,
1544
1544
  "--secondary-background",
1545
1545
  t
1546
- ), G(
1546
+ ), Y(
1547
1547
  (n = r.colors) == null ? void 0 : n.textOnSecondaryBackground,
1548
1548
  "--text-on-secondary-background",
1549
1549
  t
@@ -1557,35 +1557,35 @@ const hi = At(class extends ce {
1557
1557
  const de = () => new pi();
1558
1558
  class pi {
1559
1559
  }
1560
- const dt = /* @__PURE__ */ new WeakMap(), ue = At(class extends he {
1560
+ const ut = /* @__PURE__ */ new WeakMap(), ue = At(class extends le {
1561
1561
  render(r) {
1562
1562
  return d;
1563
1563
  }
1564
1564
  update(r, [t]) {
1565
1565
  var i;
1566
- const e = t !== this.G;
1567
- return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (i = r.options) == null ? void 0 : i.host, this.ot(this.lt = r.element)), d;
1568
- }
1569
- ot(r) {
1570
- if (typeof this.G == "function") {
1571
- const t = this.ct ?? globalThis;
1572
- let e = dt.get(t);
1573
- e === void 0 && (e = /* @__PURE__ */ new WeakMap(), dt.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);
1566
+ const e = t !== this.Y;
1567
+ return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i = r.options) == null ? void 0 : i.host, this.rt(this.ct = r.element)), d;
1568
+ }
1569
+ rt(r) {
1570
+ if (typeof this.Y == "function") {
1571
+ const t = this.ht ?? globalThis;
1572
+ let e = ut.get(t);
1573
+ e === void 0 && (e = /* @__PURE__ */ new WeakMap(), ut.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y, r), r !== void 0 && this.Y.call(this.ht, r);
1574
1574
  } else
1575
- this.G.value = r;
1575
+ this.Y.value = r;
1576
1576
  }
1577
- get rt() {
1577
+ get lt() {
1578
1578
  var r, t;
1579
- return typeof this.G == "function" ? (r = dt.get(this.ct ?? globalThis)) == null ? void 0 : r.get(this.G) : (t = this.G) == null ? void 0 : t.value;
1579
+ return typeof this.Y == "function" ? (r = ut.get(this.ht ?? globalThis)) == null ? void 0 : r.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
1580
1580
  }
1581
1581
  disconnected() {
1582
- this.rt === this.lt && this.ot(void 0);
1582
+ this.lt === this.ct && this.rt(void 0);
1583
1583
  }
1584
1584
  reconnected() {
1585
- this.ot(this.lt);
1585
+ this.rt(this.ct);
1586
1586
  }
1587
1587
  });
1588
- var di = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, it = (r, t, e, i) => {
1588
+ var di = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, rt = (r, t, e, i) => {
1589
1589
  for (var s = i > 1 ? void 0 : i ? ui(t, e) : t, n = r.length - 1, o; n >= 0; n--)
1590
1590
  (o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
1591
1591
  return i && s && di(t, e, s), s;
@@ -1612,20 +1612,20 @@ class A extends $ {
1612
1612
  (t = this.application) != null && t.settings && pe(this.application.settings.branding, this);
1613
1613
  }
1614
1614
  async _renderSymbol() {
1615
- var a, c, l;
1615
+ var a, c, h;
1616
1616
  const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
1617
1617
  if (e)
1618
1618
  return T` <img src=${e} class="trigger-icon" alt="" /> `;
1619
- const i = (l = this.application) == null ? void 0 : l.triggerIcon;
1619
+ const i = (h = this.application) == null ? void 0 : h.triggerIcon;
1620
1620
  if (!i)
1621
1621
  return d;
1622
- const s = async (h) => li, { type: n, content: o } = i;
1622
+ const s = async (l) => hi, { type: n, content: o } = i;
1623
1623
  switch (n) {
1624
1624
  case "Telia": {
1625
- const h = await s();
1626
- return h ? T`<telia-icon
1625
+ const l = await s();
1626
+ return l ? T`<telia-icon
1627
1627
  class="trigger-icon"
1628
- svg=${h.svg}
1628
+ svg=${l.svg}
1629
1629
  size="lg"
1630
1630
  ></telia-icon>` : d;
1631
1631
  }
@@ -1638,6 +1638,7 @@ class A extends $ {
1638
1638
  return T`<div class="trigger-container" ${ue(this.containerRef)}>
1639
1639
  ${!this.active && ((s = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && s.showButtonLabel) ? T`
1640
1640
  <button
1641
+ label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
1641
1642
  class="trigger-label"
1642
1643
  @click=${this.toggleActive}
1643
1644
  ${ci({
@@ -1652,7 +1653,8 @@ class A extends $ {
1652
1653
  ` : d}
1653
1654
 
1654
1655
  <button
1655
- class=${hi({
1656
+ label="Widget trigger"
1657
+ class=${li({
1656
1658
  trigger: !0,
1657
1659
  active: this.active,
1658
1660
  rendered: this.loaded
@@ -1798,16 +1800,16 @@ A.styles = [
1798
1800
  }
1799
1801
  `
1800
1802
  ];
1801
- it([
1803
+ rt([
1802
1804
  m({ attribute: !1 })
1803
1805
  ], A.prototype, "application", 2);
1804
- it([
1806
+ rt([
1805
1807
  z()
1806
1808
  ], A.prototype, "active", 2);
1807
- it([
1809
+ rt([
1808
1810
  z()
1809
1811
  ], A.prototype, "loaded", 2);
1810
- it([
1812
+ rt([
1811
1813
  z()
1812
1814
  ], A.prototype, "icon", 2);
1813
1815
  var fi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, S = (r, t, e, i) => {
@@ -1899,7 +1901,7 @@ var y = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))
1899
1901
  (o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
1900
1902
  return i && s && yi(t, e, s), s;
1901
1903
  };
1902
- class rt extends $ {
1904
+ class st extends $ {
1903
1905
  constructor() {
1904
1906
  super(...arguments), this.nodes = [], this.wrapperRef = de();
1905
1907
  }
@@ -1929,7 +1931,7 @@ class rt extends $ {
1929
1931
  </div>`;
1930
1932
  }
1931
1933
  }
1932
- rt.styles = U`
1934
+ st.styles = U`
1933
1935
  :host {
1934
1936
  --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
1935
1937
  --spacing-xs: 0.2rem;
@@ -2029,7 +2031,7 @@ rt.styles = U`
2029
2031
  `;
2030
2032
  $i([
2031
2033
  m({ attribute: !1 })
2032
- ], rt.prototype, "application", 2);
2034
+ ], st.prototype, "application", 2);
2033
2035
  class _i {
2034
2036
  constructor() {
2035
2037
  this.root = this.createRoot();
@@ -2038,19 +2040,19 @@ class _i {
2038
2040
  this.root.application = e;
2039
2041
  const i = (a) => {
2040
2042
  if (Array.isArray(a)) {
2041
- const [c, ...l] = a;
2043
+ const [c, ...h] = a;
2042
2044
  return {
2043
2045
  definitionId: c,
2044
- overrides: l
2046
+ overrides: h
2045
2047
  };
2046
2048
  }
2047
2049
  return {
2048
2050
  definitionId: a,
2049
2051
  overrides: []
2050
2052
  };
2051
- }, s = (a, c, l, h) => {
2052
- l.forEach((p) => {
2053
- const f = i(p), u = h[f.definitionId];
2053
+ }, s = (a, c, h, l) => {
2054
+ h.forEach((p) => {
2055
+ const f = i(p), u = l[f.definitionId];
2054
2056
  if (!u) {
2055
2057
  console.error(
2056
2058
  `No definition found for component type '${f.definitionId}'.`
@@ -2062,7 +2064,7 @@ class _i {
2062
2064
  a,
2063
2065
  g,
2064
2066
  u.children,
2065
- h
2067
+ l
2066
2068
  // views
2067
2069
  ));
2068
2070
  });
@@ -2070,7 +2072,7 @@ class _i {
2070
2072
  return s(this, this.root, [n], o), this.root;
2071
2073
  }
2072
2074
  createRoot() {
2073
- return new rt();
2075
+ return new st();
2074
2076
  }
2075
2077
  createNode(t, e) {
2076
2078
  const i = this.resolveComponent(e);
@@ -2202,7 +2204,7 @@ class Ci {
2202
2204
  let e = document.querySelector(
2203
2205
  `ace-trigger-slot.${t}`
2204
2206
  );
2205
- return e || (e = new et(), e.anchor = this.anchor, document.body.appendChild(e)), e;
2207
+ return e || (e = new it(), e.anchor = this.anchor, document.body.appendChild(e)), e;
2206
2208
  }
2207
2209
  return document.body;
2208
2210
  }
@@ -2214,9 +2216,12 @@ class Ci {
2214
2216
  return this.root;
2215
2217
  }
2216
2218
  }
2217
- const me = class {
2219
+ const Ii = (r) => new Q(r), me = class {
2218
2220
  // TODO:
2219
2221
  // private static endpoint = 'http://localhost:5299/api'; // TODO:
2222
+ constructor(r = me.endpoint) {
2223
+ this._endpoint = r;
2224
+ }
2220
2225
  async getSite(r) {
2221
2226
  const e = await (await fetch(r)).json();
2222
2227
  return e ? {
@@ -2238,15 +2243,15 @@ const me = class {
2238
2243
  } : null;
2239
2244
  }
2240
2245
  async getWidget(r) {
2241
- const e = await (await fetch(`${me.endpoint}/widget/${r}`)).json();
2246
+ const e = await (await fetch(`${this._endpoint}/widget/${r}`)).json();
2242
2247
  return e ? {
2243
2248
  name: e.name,
2244
2249
  config: JSON.parse(e.configuration)
2245
2250
  } : null;
2246
2251
  }
2247
2252
  };
2248
- let yt = me;
2249
- yt.endpoint = "https://widgets.ace.teliacompany.net/api";
2253
+ let Q = me;
2254
+ Q.endpoint = "https://widgets.ace.teliacompany.net/api";
2250
2255
  class Si {
2251
2256
  constructor() {
2252
2257
  this.applications = [], this.container = new Rt("environment", this), setTimeout(() => {
@@ -2285,7 +2290,7 @@ class Si {
2285
2290
  }
2286
2291
  class xi {
2287
2292
  constructor(t) {
2288
- this.configurations = [], this.httpClient = new yt(), this.httpClient = new yt(), typeof t == "string" ? this.url = t : (t.httpClient && (this.httpClient = t.httpClient), this.loadFromConfig(t));
2293
+ this.configurations = [], this.httpClient = new Q(), this.httpClient = new Q(), typeof t == "string" ? this.url = t : (t.httpClient && (this.httpClient = t.httpClient), this.loadFromConfig(t));
2289
2294
  }
2290
2295
  async load(t) {
2291
2296
  const e = await this.httpClient.getSite(t);
@@ -2331,12 +2336,12 @@ class xi {
2331
2336
  globalThis.widgets = t;
2332
2337
  }
2333
2338
  }
2334
- var Ei = Object.defineProperty, Oi = Object.getOwnPropertyDescriptor, St = (r, t, e, i) => {
2335
- for (var s = i > 1 ? void 0 : i ? Oi(t, e) : t, n = r.length - 1, o; n >= 0; n--)
2339
+ var Ei = Object.defineProperty, Pi = Object.getOwnPropertyDescriptor, St = (r, t, e, i) => {
2340
+ for (var s = i > 1 ? void 0 : i ? Pi(t, e) : t, n = r.length - 1, o; n >= 0; n--)
2336
2341
  (o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
2337
2342
  return i && s && Ei(t, e, s), s;
2338
2343
  };
2339
- class F extends $ {
2344
+ class W extends $ {
2340
2345
  constructor() {
2341
2346
  super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
2342
2347
  }
@@ -2368,7 +2373,7 @@ class F extends $ {
2368
2373
  return this.widget.render();
2369
2374
  }
2370
2375
  }
2371
- F.styles = [
2376
+ W.styles = [
2372
2377
  U`
2373
2378
  :host {
2374
2379
  display: block;
@@ -2377,30 +2382,31 @@ F.styles = [
2377
2382
  ];
2378
2383
  St([
2379
2384
  m({ attribute: !0 })
2380
- ], F.prototype, "name", 2);
2385
+ ], W.prototype, "name", 2);
2381
2386
  St([
2382
2387
  z()
2383
- ], F.prototype, "widget", 2);
2388
+ ], W.prototype, "widget", 2);
2384
2389
  St([
2385
2390
  z()
2386
- ], F.prototype, "status", 2);
2387
- customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", et);
2391
+ ], W.prototype, "status", 2);
2392
+ customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", it);
2388
2393
  customElements.get("ace-trigger") || customElements.define("ace-trigger", A);
2389
2394
  customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Ct);
2390
- customElements.get("ace-wrapper") || customElements.define("ace-wrapper", rt);
2391
- customElements.get("ace-widget") || customElements.define("ace-widget", F);
2392
- const Ii = async (r, t) => {
2395
+ customElements.get("ace-wrapper") || customElements.define("ace-wrapper", st);
2396
+ customElements.get("ace-widget") || customElements.define("ace-widget", W);
2397
+ const Ni = async (r, t) => {
2393
2398
  await new xi(r).bootstrap(t);
2394
2399
  };
2395
2400
  export {
2396
- F as AceWidget,
2401
+ W as AceWidget,
2397
2402
  Ci as Application,
2398
2403
  Rt as Container,
2399
2404
  Si as Environment,
2400
- yt as HttpClient,
2405
+ Q as HttpClient,
2401
2406
  xi as Site,
2402
2407
  wi as StorageService,
2403
2408
  A as Trigger,
2404
2409
  mi as WidgetComponent,
2405
- Ii as bootstrap
2410
+ Ni as bootstrap,
2411
+ Ii as createHttpClient
2406
2412
  };