@telia-ace/widget-core-flamingo 1.1.82-rc.5 → 1.1.82-rc.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/index.js +29 -29
  2. package/index.mjs +399 -391
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -27,24 +27,24 @@ function mt(r) {
27
27
  function vt(r, t) {
28
28
  var e = typeof Symbol == "function" && r[Symbol.iterator];
29
29
  if (!e) return r;
30
- var i = e.call(r), s, n = [], o;
30
+ var i = e.call(r), s, o = [], n;
31
31
  try {
32
- for (; (t === void 0 || t-- > 0) && !(s = i.next()).done; ) n.push(s.value);
32
+ for (; (t === void 0 || t-- > 0) && !(s = i.next()).done; ) o.push(s.value);
33
33
  } catch (a) {
34
- o = { error: a };
34
+ n = { error: a };
35
35
  } finally {
36
36
  try {
37
37
  s && !s.done && (e = i.return) && e.call(i);
38
38
  } finally {
39
- if (o) throw o.error;
39
+ if (n) throw n.error;
40
40
  }
41
41
  }
42
- return n;
42
+ return o;
43
43
  }
44
44
  function yt(r, t, e) {
45
- if (e || arguments.length === 2) for (var i = 0, s = t.length, n; i < s; i++)
46
- (n || !(i in t)) && (n || (n = Array.prototype.slice.call(t, 0, i)), n[i] = t[i]);
47
- return r.concat(n || Array.prototype.slice.call(t));
45
+ if (e || arguments.length === 2) for (var i = 0, s = t.length, o; i < s; i++)
46
+ (o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
47
+ return r.concat(o || Array.prototype.slice.call(t));
48
48
  }
49
49
  function _(r) {
50
50
  return typeof r == "function";
@@ -55,7 +55,7 @@ function ae(r) {
55
55
  }, e = r(t);
56
56
  return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
57
57
  }
58
- var ot = ae(function(r) {
58
+ var nt = ae(function(r) {
59
59
  return function(e) {
60
60
  r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
61
61
  ` + e.map(function(i, s) {
@@ -75,16 +75,16 @@ var rt = function() {
75
75
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
76
76
  }
77
77
  return r.prototype.unsubscribe = function() {
78
- var t, e, i, s, n;
78
+ var t, e, i, s, o;
79
79
  if (!this.closed) {
80
80
  this.closed = !0;
81
- var o = this._parentage;
82
- if (o)
83
- if (this._parentage = null, Array.isArray(o))
81
+ var n = this._parentage;
82
+ if (n)
83
+ if (this._parentage = null, Array.isArray(n))
84
84
  try {
85
- for (var a = mt(o), c = a.next(); !c.done; c = a.next()) {
86
- var h = c.value;
87
- h.remove(this);
85
+ for (var a = mt(n), c = a.next(); !c.done; c = a.next()) {
86
+ var l = c.value;
87
+ l.remove(this);
88
88
  }
89
89
  } catch (v) {
90
90
  t = { error: v };
@@ -96,13 +96,13 @@ var rt = function() {
96
96
  }
97
97
  }
98
98
  else
99
- o.remove(this);
100
- var l = this.initialTeardown;
101
- if (_(l))
99
+ n.remove(this);
100
+ var h = this.initialTeardown;
101
+ if (_(h))
102
102
  try {
103
- l();
103
+ h();
104
104
  } catch (v) {
105
- n = v instanceof ot ? v.errors : [v];
105
+ o = v instanceof nt ? v.errors : [v];
106
106
  }
107
107
  var d = this._finalizers;
108
108
  if (d) {
@@ -113,7 +113,7 @@ var rt = function() {
113
113
  try {
114
114
  Ut(g);
115
115
  } catch (v) {
116
- n = n ?? [], v instanceof ot ? n = yt(yt([], vt(n)), vt(v.errors)) : n.push(v);
116
+ o = o ?? [], v instanceof nt ? o = yt(yt([], vt(o)), vt(v.errors)) : o.push(v);
117
117
  }
118
118
  }
119
119
  } catch (v) {
@@ -126,8 +126,8 @@ var rt = function() {
126
126
  }
127
127
  }
128
128
  }
129
- if (n)
130
- throw new ot(n);
129
+ if (o)
130
+ throw new nt(o);
131
131
  }
132
132
  }, r.prototype.add = function(t) {
133
133
  var e;
@@ -171,7 +171,7 @@ var le = {
171
171
  Promise: void 0,
172
172
  useDeprecatedSynchronousErrorHandling: !1,
173
173
  useDeprecatedNextContext: !1
174
- }, Se = {
174
+ }, Ee = {
175
175
  setTimeout: function(r, t) {
176
176
  for (var e = [], i = 2; i < arguments.length; i++)
177
177
  e[i - 2] = arguments[i];
@@ -182,8 +182,8 @@ var le = {
182
182
  },
183
183
  delegate: void 0
184
184
  };
185
- function Ee(r) {
186
- Se.setTimeout(function() {
185
+ function Pe(r) {
186
+ Ee.setTimeout(function() {
187
187
  throw r;
188
188
  });
189
189
  }
@@ -196,7 +196,7 @@ var de = function(r) {
196
196
  Y(t, r);
197
197
  function t(e) {
198
198
  var i = r.call(this) || this;
199
- return i.isStopped = !1, e ? (i.destination = e, he(e) && e.add(i)) : i.destination = Te, i;
199
+ return i.isStopped = !1, e ? (i.destination = e, he(e) && e.add(i)) : i.destination = ke, i;
200
200
  }
201
201
  return t.create = function(e, i, s) {
202
202
  return new wt(e, i, s);
@@ -223,11 +223,11 @@ var de = function(r) {
223
223
  this.unsubscribe();
224
224
  }
225
225
  }, t;
226
- }(rt), Pe = Function.prototype.bind;
226
+ }(rt), Oe = Function.prototype.bind;
227
227
  function at(r, t) {
228
- return Pe.call(r, t);
228
+ return Oe.call(r, t);
229
229
  }
230
- var Oe = function() {
230
+ var Ie = function() {
231
231
  function r(t) {
232
232
  this.partialObserver = t;
233
233
  }
@@ -261,46 +261,46 @@ var Oe = function() {
261
261
  }(), wt = function(r) {
262
262
  Y(t, r);
263
263
  function t(e, i, s) {
264
- var n = r.call(this) || this, o;
264
+ var o = r.call(this) || this, n;
265
265
  if (_(e) || !e)
266
- o = {
266
+ n = {
267
267
  next: e ?? void 0,
268
268
  error: i ?? void 0,
269
269
  complete: s ?? void 0
270
270
  };
271
271
  else {
272
272
  var a;
273
- n && le.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
274
- return n.unsubscribe();
275
- }, o = {
273
+ o && le.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
274
+ return o.unsubscribe();
275
+ }, n = {
276
276
  next: e.next && at(e.next, a),
277
277
  error: e.error && at(e.error, a),
278
278
  complete: e.complete && at(e.complete, a)
279
- }) : o = e;
279
+ }) : n = e;
280
280
  }
281
- return n.destination = new Oe(o), n;
281
+ return o.destination = new Ie(n), o;
282
282
  }
283
283
  return t;
284
284
  }(de);
285
285
  function Z(r) {
286
- Ee(r);
286
+ Pe(r);
287
287
  }
288
- function Ie(r) {
288
+ function Te(r) {
289
289
  throw r;
290
290
  }
291
- var Te = {
291
+ var ke = {
292
292
  closed: !0,
293
293
  next: Lt,
294
- error: Ie,
294
+ error: Te,
295
295
  complete: Lt
296
- }, ke = function() {
296
+ }, Re = function() {
297
297
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
298
298
  }();
299
- function Re(r) {
299
+ function Me(r) {
300
300
  return r;
301
301
  }
302
- function Me(r) {
303
- return r.length === 0 ? Re : r.length === 1 ? r[0] : function(e) {
302
+ function Ne(r) {
303
+ return r.length === 0 ? Me : r.length === 1 ? r[0] : function(e) {
304
304
  return r.reduce(function(i, s) {
305
305
  return s(i);
306
306
  }, e);
@@ -314,11 +314,11 @@ var jt = function() {
314
314
  var e = new r();
315
315
  return e.source = this, e.operator = t, e;
316
316
  }, r.prototype.subscribe = function(t, e, i) {
317
- var s = this, n = Ue(t) ? t : new wt(t, e, i);
317
+ var s = this, o = Le(t) ? t : new wt(t, e, i);
318
318
  return G(function() {
319
- var o = s, a = o.operator, c = o.source;
320
- n.add(a ? a.call(n, c) : c ? s._subscribe(n) : s._trySubscribe(n));
321
- }), n;
319
+ var n = s, a = n.operator, c = n.source;
320
+ o.add(a ? a.call(o, c) : c ? s._subscribe(o) : s._trySubscribe(o));
321
+ }), o;
322
322
  }, r.prototype._trySubscribe = function(t) {
323
323
  try {
324
324
  return this._subscribe(t);
@@ -327,39 +327,39 @@ var jt = function() {
327
327
  }
328
328
  }, r.prototype.forEach = function(t, e) {
329
329
  var i = this;
330
- return e = Ht(e), new e(function(s, n) {
331
- var o = new wt({
330
+ return e = Ht(e), new e(function(s, o) {
331
+ var n = new wt({
332
332
  next: function(a) {
333
333
  try {
334
334
  t(a);
335
335
  } catch (c) {
336
- n(c), o.unsubscribe();
336
+ o(c), n.unsubscribe();
337
337
  }
338
338
  },
339
- error: n,
339
+ error: o,
340
340
  complete: s
341
341
  });
342
- i.subscribe(o);
342
+ i.subscribe(n);
343
343
  });
344
344
  }, r.prototype._subscribe = function(t) {
345
345
  var e;
346
346
  return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
347
- }, r.prototype[ke] = function() {
347
+ }, r.prototype[Re] = function() {
348
348
  return this;
349
349
  }, r.prototype.pipe = function() {
350
350
  for (var t = [], e = 0; e < arguments.length; e++)
351
351
  t[e] = arguments[e];
352
- return Me(t)(this);
352
+ return Ne(t)(this);
353
353
  }, r.prototype.toPromise = function(t) {
354
354
  var e = this;
355
355
  return t = Ht(t), new t(function(i, s) {
356
- var n;
357
- e.subscribe(function(o) {
358
- return n = o;
359
- }, function(o) {
360
- return s(o);
356
+ var o;
357
+ e.subscribe(function(n) {
358
+ return o = n;
359
+ }, function(n) {
360
+ return s(n);
361
361
  }, function() {
362
- return i(n);
362
+ return i(o);
363
363
  });
364
364
  });
365
365
  }, r.create = function(t) {
@@ -370,13 +370,13 @@ function Ht(r) {
370
370
  var t;
371
371
  return (t = r ?? le.Promise) !== null && t !== void 0 ? t : Promise;
372
372
  }
373
- function Ne(r) {
373
+ function Ue(r) {
374
374
  return r && _(r.next) && _(r.error) && _(r.complete);
375
375
  }
376
- function Ue(r) {
377
- return r && r instanceof de || Ne(r) && he(r);
376
+ function Le(r) {
377
+ return r && r instanceof de || Ue(r) && he(r);
378
378
  }
379
- var Le = ae(function(r) {
379
+ var je = ae(function(r) {
380
380
  return function() {
381
381
  r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
382
382
  };
@@ -391,23 +391,23 @@ var Le = ae(function(r) {
391
391
  return i.operator = e, i;
392
392
  }, t.prototype._throwIfClosed = function() {
393
393
  if (this.closed)
394
- throw new Le();
394
+ throw new je();
395
395
  }, t.prototype.next = function(e) {
396
396
  var i = this;
397
397
  G(function() {
398
- var s, n;
398
+ var s, o;
399
399
  if (i._throwIfClosed(), !i.isStopped) {
400
400
  i.currentObservers || (i.currentObservers = Array.from(i.observers));
401
401
  try {
402
- for (var o = mt(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
402
+ for (var n = mt(i.currentObservers), a = n.next(); !a.done; a = n.next()) {
403
403
  var c = a.value;
404
404
  c.next(e);
405
405
  }
406
- } catch (h) {
407
- s = { error: h };
406
+ } catch (l) {
407
+ s = { error: l };
408
408
  } finally {
409
409
  try {
410
- a && !a.done && (n = o.return) && n.call(o);
410
+ a && !a.done && (o = n.return) && o.call(n);
411
411
  } finally {
412
412
  if (s) throw s.error;
413
413
  }
@@ -446,13 +446,13 @@ var Le = ae(function(r) {
446
446
  }, t.prototype._subscribe = function(e) {
447
447
  return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
448
448
  }, t.prototype._innerSubscribe = function(e) {
449
- var i = this, s = this, n = s.hasError, o = s.isStopped, a = s.observers;
450
- return n || o ? ce : (this.currentObservers = null, a.push(e), new rt(function() {
449
+ var i = this, s = this, o = s.hasError, n = s.isStopped, a = s.observers;
450
+ return o || n ? ce : (this.currentObservers = null, a.push(e), new rt(function() {
451
451
  i.currentObservers = null, bt(a, e);
452
452
  }));
453
453
  }, t.prototype._checkFinalizedStatuses = function(e) {
454
- var i = this, s = i.hasError, n = i.thrownError, o = i.isStopped;
455
- s ? e.error(n) : o && e.complete();
454
+ var i = this, s = i.hasError, o = i.thrownError, n = i.isStopped;
455
+ s ? e.error(o) : n && e.complete();
456
456
  }, t.prototype.asObservable = function() {
457
457
  var e = new jt();
458
458
  return e.source = this, e;
@@ -494,10 +494,10 @@ var Le = ae(function(r) {
494
494
  var i = r.prototype._subscribe.call(this, e);
495
495
  return !i.closed && e.next(this._value), i;
496
496
  }, t.prototype.getValue = function() {
497
- var e = this, i = e.hasError, s = e.thrownError, n = e._value;
497
+ var e = this, i = e.hasError, s = e.thrownError, o = e._value;
498
498
  if (i)
499
499
  throw s;
500
- return this._throwIfClosed(), n;
500
+ return this._throwIfClosed(), o;
501
501
  }, t.prototype.next = function(e) {
502
502
  r.prototype.next.call(this, this._value = e);
503
503
  }, t;
@@ -546,14 +546,14 @@ let fe = class {
546
546
  return this.cssText;
547
547
  }
548
548
  };
549
- const je = (r) => new fe(typeof r == "string" ? r : r + "", void 0, Ct), N = (r, ...t) => {
550
- const e = r.length === 1 ? r[0] : t.reduce((i, s, n) => i + ((o) => {
551
- if (o._$cssResult$ === !0) return o.cssText;
552
- if (typeof o == "number") return o;
553
- 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.");
554
- })(s) + r[n + 1], r[0]);
549
+ const He = (r) => new fe(typeof r == "string" ? r : r + "", void 0, Ct), U = (r, ...t) => {
550
+ const e = r.length === 1 ? r[0] : t.reduce((i, s, o) => i + ((n) => {
551
+ if (n._$cssResult$ === !0) return n.cssText;
552
+ if (typeof n == "number") return n;
553
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
554
+ })(s) + r[o + 1], r[0]);
555
555
  return new fe(e, r, Ct);
556
- }, He = (r, t) => {
556
+ }, Be = (r, t) => {
557
557
  if (xt) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
558
558
  else for (const e of t) {
559
559
  const i = document.createElement("style"), s = J.litNonce;
@@ -562,17 +562,17 @@ const je = (r) => new fe(typeof r == "string" ? r : r + "", void 0, Ct), N = (r,
562
562
  }, Ft = xt ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
563
563
  let e = "";
564
564
  for (const i of t.cssRules) e += i.cssText;
565
- return je(e);
565
+ return He(e);
566
566
  })(r) : r;
567
567
  /**
568
568
  * @license
569
569
  * Copyright 2017 Google LLC
570
570
  * SPDX-License-Identifier: BSD-3-Clause
571
571
  */
572
- const { is: Be, defineProperty: De, getOwnPropertyDescriptor: ze, getOwnPropertyNames: Fe, getOwnPropertySymbols: Ve, getPrototypeOf: We } = Object, C = globalThis, Vt = C.trustedTypes, Ye = Vt ? Vt.emptyScript : "", ct = C.reactiveElementPolyfillSupport, j = (r, t) => r, X = { toAttribute(r, t) {
572
+ const { is: De, defineProperty: ze, getOwnPropertyDescriptor: Fe, getOwnPropertyNames: Ve, getOwnPropertySymbols: We, getPrototypeOf: Ye } = Object, C = globalThis, Vt = C.trustedTypes, qe = Vt ? Vt.emptyScript : "", ct = C.reactiveElementPolyfillSupport, H = (r, t) => r, X = { toAttribute(r, t) {
573
573
  switch (t) {
574
574
  case Boolean:
575
- r = r ? Ye : null;
575
+ r = r ? qe : null;
576
576
  break;
577
577
  case Object:
578
578
  case Array:
@@ -597,7 +597,7 @@ const { is: Be, defineProperty: De, getOwnPropertyDescriptor: ze, getOwnProperty
597
597
  }
598
598
  }
599
599
  return e;
600
- } }, St = (r, t) => !Be(r, t), Wt = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: St };
600
+ } }, St = (r, t) => !De(r, t), Wt = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: St };
601
601
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), C.litPropertyMetadata ?? (C.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
602
602
  let T = class extends HTMLElement {
603
603
  static addInitializer(t) {
@@ -609,34 +609,34 @@ let T = class extends HTMLElement {
609
609
  static createProperty(t, e = Wt) {
610
610
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
611
611
  const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
612
- s !== void 0 && De(this.prototype, t, s);
612
+ s !== void 0 && ze(this.prototype, t, s);
613
613
  }
614
614
  }
615
615
  static getPropertyDescriptor(t, e, i) {
616
- const { get: s, set: n } = ze(this.prototype, t) ?? { get() {
616
+ const { get: s, set: o } = Fe(this.prototype, t) ?? { get() {
617
617
  return this[e];
618
- }, set(o) {
619
- this[e] = o;
618
+ }, set(n) {
619
+ this[e] = n;
620
620
  } };
621
621
  return { get() {
622
622
  return s == null ? void 0 : s.call(this);
623
- }, set(o) {
623
+ }, set(n) {
624
624
  const a = s == null ? void 0 : s.call(this);
625
- n.call(this, o), this.requestUpdate(t, a, i);
625
+ o.call(this, n), this.requestUpdate(t, a, i);
626
626
  }, configurable: !0, enumerable: !0 };
627
627
  }
628
628
  static getPropertyOptions(t) {
629
629
  return this.elementProperties.get(t) ?? Wt;
630
630
  }
631
631
  static _$Ei() {
632
- if (this.hasOwnProperty(j("elementProperties"))) return;
633
- const t = We(this);
632
+ if (this.hasOwnProperty(H("elementProperties"))) return;
633
+ const t = Ye(this);
634
634
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
635
635
  }
636
636
  static finalize() {
637
- if (this.hasOwnProperty(j("finalized"))) return;
638
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(j("properties"))) {
639
- const e = this.properties, i = [...Fe(e), ...Ve(e)];
637
+ if (this.hasOwnProperty(H("finalized"))) return;
638
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(H("properties"))) {
639
+ const e = this.properties, i = [...Ve(e), ...We(e)];
640
640
  for (const s of i) this.createProperty(s, e[s]);
641
641
  }
642
642
  const t = this[Symbol.metadata];
@@ -685,7 +685,7 @@ let T = class extends HTMLElement {
685
685
  }
686
686
  createRenderRoot() {
687
687
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
688
- return He(t, this.constructor.elementStyles), t;
688
+ return Be(t, this.constructor.elementStyles), t;
689
689
  }
690
690
  connectedCallback() {
691
691
  var t;
@@ -707,19 +707,19 @@ let T = class extends HTMLElement {
707
707
  this._$AK(t, i);
708
708
  }
709
709
  _$EC(t, e) {
710
- var n;
710
+ var o;
711
711
  const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
712
712
  if (s !== void 0 && i.reflect === !0) {
713
- const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : X).toAttribute(e, i.type);
714
- this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
713
+ const n = (((o = i.converter) == null ? void 0 : o.toAttribute) !== void 0 ? i.converter : X).toAttribute(e, i.type);
714
+ this._$Em = t, n == null ? this.removeAttribute(s) : this.setAttribute(s, n), this._$Em = null;
715
715
  }
716
716
  }
717
717
  _$AK(t, e) {
718
- var n;
718
+ var o;
719
719
  const i = this.constructor, s = i._$Eh.get(t);
720
720
  if (s !== void 0 && this._$Em !== s) {
721
- const o = i.getPropertyOptions(s), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : X;
722
- this._$Em = s, this[s] = a.fromAttribute(e, o.type), this._$Em = null;
721
+ const n = i.getPropertyOptions(s), a = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : X;
722
+ this._$Em = s, this[s] = a.fromAttribute(e, n.type), this._$Em = null;
723
723
  }
724
724
  }
725
725
  requestUpdate(t, e, i) {
@@ -750,18 +750,18 @@ let T = class extends HTMLElement {
750
750
  if (!this.isUpdatePending) return;
751
751
  if (!this.hasUpdated) {
752
752
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
753
- for (const [n, o] of this._$Ep) this[n] = o;
753
+ for (const [o, n] of this._$Ep) this[o] = n;
754
754
  this._$Ep = void 0;
755
755
  }
756
756
  const s = this.constructor.elementProperties;
757
- if (s.size > 0) for (const [n, o] of s) o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], o);
757
+ if (s.size > 0) for (const [o, n] of s) n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n);
758
758
  }
759
759
  let t = !1;
760
760
  const e = this._$AL;
761
761
  try {
762
762
  t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((s) => {
763
- var n;
764
- return (n = s.hostUpdate) == null ? void 0 : n.call(s);
763
+ var o;
764
+ return (o = s.hostUpdate) == null ? void 0 : o.call(s);
765
765
  }), this.update(e)) : this._$EU();
766
766
  } catch (s) {
767
767
  throw t = !1, this._$EU(), s;
@@ -797,61 +797,61 @@ let T = class extends HTMLElement {
797
797
  firstUpdated(t) {
798
798
  }
799
799
  };
800
- T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[j("elementProperties")] = /* @__PURE__ */ new Map(), T[j("finalized")] = /* @__PURE__ */ new Map(), ct == null || ct({ ReactiveElement: T }), (C.reactiveElementVersions ?? (C.reactiveElementVersions = [])).push("2.0.4");
800
+ T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[H("elementProperties")] = /* @__PURE__ */ new Map(), T[H("finalized")] = /* @__PURE__ */ new Map(), ct == null || ct({ ReactiveElement: T }), (C.reactiveElementVersions ?? (C.reactiveElementVersions = [])).push("2.0.4");
801
801
  /**
802
802
  * @license
803
803
  * Copyright 2017 Google LLC
804
804
  * SPDX-License-Identifier: BSD-3-Clause
805
805
  */
806
- const H = globalThis, Q = H.trustedTypes, Yt = Q ? Q.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ge = "$lit$", x = `lit$${Math.random().toFixed(9).slice(2)}$`, me = "?" + x, qe = `<${me}>`, O = document, D = () => O.createComment(""), z = (r) => r === null || typeof r != "object" && typeof r != "function", Et = Array.isArray, Ke = (r) => Et(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", ht = `[
807
- \f\r]`, L = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qt = /-->/g, Kt = />/g, S = RegExp(`>|${ht}(?:([^\\s"'>=/]+)(${ht}*=${ht}*(?:[^
808
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Zt = /'/g, Gt = /"/g, ve = /^(?:script|style|textarea|title)$/i, Ze = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), k = Ze(1), I = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), Jt = /* @__PURE__ */ new WeakMap(), P = O.createTreeWalker(O, 129);
806
+ const B = globalThis, Q = B.trustedTypes, Yt = Q ? Q.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ge = "$lit$", x = `lit$${Math.random().toFixed(9).slice(2)}$`, me = "?" + x, Ke = `<${me}>`, O = document, z = () => O.createComment(""), F = (r) => r === null || typeof r != "object" && typeof r != "function", Et = Array.isArray, Ze = (r) => Et(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", ht = `[
807
+ \f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qt = /-->/g, Kt = />/g, S = RegExp(`>|${ht}(?:([^\\s"'>=/]+)(${ht}*=${ht}*(?:[^
808
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Zt = /'/g, Gt = /"/g, ve = /^(?:script|style|textarea|title)$/i, Ge = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), k = Ge(1), I = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), Jt = /* @__PURE__ */ new WeakMap(), P = O.createTreeWalker(O, 129);
809
809
  function ye(r, t) {
810
810
  if (!Et(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
811
811
  return Yt !== void 0 ? Yt.createHTML(t) : t;
812
812
  }
813
- const Ge = (r, t) => {
813
+ const Je = (r, t) => {
814
814
  const e = r.length - 1, i = [];
815
- let s, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = L;
815
+ let s, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = j;
816
816
  for (let a = 0; a < e; a++) {
817
817
  const c = r[a];
818
- let h, l, d = -1, p = 0;
819
- for (; p < c.length && (o.lastIndex = p, l = o.exec(c), l !== null); ) p = o.lastIndex, o === L ? l[1] === "!--" ? o = qt : l[1] !== void 0 ? o = Kt : l[2] !== void 0 ? (ve.test(l[2]) && (s = RegExp("</" + l[2], "g")), o = S) : l[3] !== void 0 && (o = S) : o === S ? l[0] === ">" ? (o = s ?? L, d = -1) : l[1] === void 0 ? d = -2 : (d = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? S : l[3] === '"' ? Gt : Zt) : o === Gt || o === Zt ? o = S : o === qt || o === Kt ? o = L : (o = S, s = void 0);
820
- const f = o === S && r[a + 1].startsWith("/>") ? " " : "";
821
- n += o === L ? c + qe : d >= 0 ? (i.push(h), c.slice(0, d) + ge + c.slice(d) + x + f) : c + x + (d === -2 ? a : f);
818
+ let l, h, d = -1, p = 0;
819
+ for (; p < c.length && (n.lastIndex = p, h = n.exec(c), h !== null); ) p = n.lastIndex, n === j ? h[1] === "!--" ? n = qt : h[1] !== void 0 ? n = Kt : h[2] !== void 0 ? (ve.test(h[2]) && (s = RegExp("</" + h[2], "g")), n = S) : h[3] !== void 0 && (n = S) : n === S ? h[0] === ">" ? (n = s ?? j, d = -1) : h[1] === void 0 ? d = -2 : (d = n.lastIndex - h[2].length, l = h[1], n = h[3] === void 0 ? S : h[3] === '"' ? Gt : Zt) : n === Gt || n === Zt ? n = S : n === qt || n === Kt ? n = j : (n = S, s = void 0);
820
+ const f = n === S && r[a + 1].startsWith("/>") ? " " : "";
821
+ o += n === j ? c + Ke : d >= 0 ? (i.push(l), c.slice(0, d) + ge + c.slice(d) + x + f) : c + x + (d === -2 ? a : f);
822
822
  }
823
- return [ye(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
823
+ return [ye(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
824
824
  };
825
825
  let $t = class be {
826
826
  constructor({ strings: t, _$litType$: e }, i) {
827
827
  let s;
828
828
  this.parts = [];
829
- let n = 0, o = 0;
830
- const a = t.length - 1, c = this.parts, [h, l] = Ge(t, e);
831
- if (this.el = be.createElement(h, i), P.currentNode = this.el.content, e === 2 || e === 3) {
829
+ let o = 0, n = 0;
830
+ const a = t.length - 1, c = this.parts, [l, h] = Je(t, e);
831
+ if (this.el = be.createElement(l, i), P.currentNode = this.el.content, e === 2 || e === 3) {
832
832
  const d = this.el.content.firstChild;
833
833
  d.replaceWith(...d.childNodes);
834
834
  }
835
835
  for (; (s = P.nextNode()) !== null && c.length < a; ) {
836
836
  if (s.nodeType === 1) {
837
837
  if (s.hasAttributes()) for (const d of s.getAttributeNames()) if (d.endsWith(ge)) {
838
- const p = l[o++], f = s.getAttribute(d).split(x), g = /([.?@])?(.*)/.exec(p);
839
- c.push({ type: 1, index: n, name: g[2], strings: f, ctor: g[1] === "." ? Xe : g[1] === "?" ? Qe : g[1] === "@" ? ti : nt }), s.removeAttribute(d);
840
- } else d.startsWith(x) && (c.push({ type: 6, index: n }), s.removeAttribute(d));
838
+ const p = h[n++], f = s.getAttribute(d).split(x), g = /([.?@])?(.*)/.exec(p);
839
+ c.push({ type: 1, index: o, name: g[2], strings: f, ctor: g[1] === "." ? Qe : g[1] === "?" ? ti : g[1] === "@" ? ei : ot }), s.removeAttribute(d);
840
+ } else d.startsWith(x) && (c.push({ type: 6, index: o }), s.removeAttribute(d));
841
841
  if (ve.test(s.tagName)) {
842
842
  const d = s.textContent.split(x), p = d.length - 1;
843
843
  if (p > 0) {
844
844
  s.textContent = Q ? Q.emptyScript : "";
845
- for (let f = 0; f < p; f++) s.append(d[f], D()), P.nextNode(), c.push({ type: 2, index: ++n });
846
- s.append(d[p], D());
845
+ for (let f = 0; f < p; f++) s.append(d[f], z()), P.nextNode(), c.push({ type: 2, index: ++o });
846
+ s.append(d[p], z());
847
847
  }
848
848
  }
849
- } else if (s.nodeType === 8) if (s.data === me) c.push({ type: 2, index: n });
849
+ } else if (s.nodeType === 8) if (s.data === me) c.push({ type: 2, index: o });
850
850
  else {
851
851
  let d = -1;
852
- for (; (d = s.data.indexOf(x, d + 1)) !== -1; ) c.push({ type: 7, index: n }), d += x.length - 1;
852
+ for (; (d = s.data.indexOf(x, d + 1)) !== -1; ) c.push({ type: 7, index: o }), d += x.length - 1;
853
853
  }
854
- n++;
854
+ o++;
855
855
  }
856
856
  }
857
857
  static createElement(t, e) {
@@ -860,13 +860,13 @@ let $t = class be {
860
860
  }
861
861
  };
862
862
  function R(r, t, e = r, i) {
863
- var o, a;
863
+ var n, a;
864
864
  if (t === I) return t;
865
- let s = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
866
- const n = z(t) ? void 0 : t._$litDirective$;
867
- 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(r), s._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = R(r, s._$AS(r, t.values), s, i)), t;
865
+ let s = i !== void 0 ? (n = e._$Co) == null ? void 0 : n[i] : e._$Cl;
866
+ const o = F(t) ? void 0 : t._$litDirective$;
867
+ return (s == null ? void 0 : s.constructor) !== o && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), o === void 0 ? s = void 0 : (s = new o(r), s._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = R(r, s._$AS(r, t.values), s, i)), t;
868
868
  }
869
- class Je {
869
+ class Xe {
870
870
  constructor(t, e) {
871
871
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
872
872
  }
@@ -879,13 +879,13 @@ class Je {
879
879
  u(t) {
880
880
  const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? O).importNode(e, !0);
881
881
  P.currentNode = s;
882
- let n = P.nextNode(), o = 0, a = 0, c = i[0];
882
+ let o = P.nextNode(), n = 0, a = 0, c = i[0];
883
883
  for (; c !== void 0; ) {
884
- if (o === c.index) {
885
- let h;
886
- c.type === 2 ? h = new q(n, n.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (h = new ei(n, this, t)), this._$AV.push(h), c = i[++a];
884
+ if (n === c.index) {
885
+ let l;
886
+ c.type === 2 ? l = new q(o, o.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(o, c.name, c.strings, this, t) : c.type === 6 && (l = new ii(o, this, t)), this._$AV.push(l), c = i[++a];
887
887
  }
888
- o !== (c == null ? void 0 : c.index) && (n = P.nextNode(), o++);
888
+ n !== (c == null ? void 0 : c.index) && (o = P.nextNode(), n++);
889
889
  }
890
890
  return P.currentNode = O, s;
891
891
  }
@@ -914,7 +914,7 @@ class q {
914
914
  return this._$AB;
915
915
  }
916
916
  _$AI(t, e = this) {
917
- t = R(this, t, e), z(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== I && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ke(t) ? this.k(t) : this._(t);
917
+ t = R(this, t, e), F(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== I && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ze(t) ? this.k(t) : this._(t);
918
918
  }
919
919
  O(t) {
920
920
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -923,15 +923,15 @@ class q {
923
923
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
924
924
  }
925
925
  _(t) {
926
- this._$AH !== u && z(this._$AH) ? this._$AA.nextSibling.data = t : this.T(O.createTextNode(t)), this._$AH = t;
926
+ this._$AH !== u && F(this._$AH) ? this._$AA.nextSibling.data = t : this.T(O.createTextNode(t)), this._$AH = t;
927
927
  }
928
928
  $(t) {
929
- var n;
929
+ var o;
930
930
  const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = $t.createElement(ye(i.h, i.h[0]), this.options)), i);
931
- if (((n = this._$AH) == null ? void 0 : n._$AD) === s) this._$AH.p(e);
931
+ if (((o = this._$AH) == null ? void 0 : o._$AD) === s) this._$AH.p(e);
932
932
  else {
933
- const o = new Je(s, this), a = o.u(this.options);
934
- o.p(e), this.T(a), this._$AH = o;
933
+ const n = new Xe(s, this), a = n.u(this.options);
934
+ n.p(e), this.T(a), this._$AH = n;
935
935
  }
936
936
  }
937
937
  _$AC(t) {
@@ -942,7 +942,7 @@ class q {
942
942
  Et(this._$AH) || (this._$AH = [], this._$AR());
943
943
  const e = this._$AH;
944
944
  let i, s = 0;
945
- for (const n of t) s === e.length ? e.push(i = new q(this.O(D()), this.O(D()), this, this.options)) : i = e[s], i._$AI(n), s++;
945
+ for (const o of t) s === e.length ? e.push(i = new q(this.O(z()), this.O(z()), this, this.options)) : i = e[s], i._$AI(o), s++;
946
946
  s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
947
947
  }
948
948
  _$AR(t = this._$AA.nextSibling, e) {
@@ -957,32 +957,32 @@ class q {
957
957
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
958
958
  }
959
959
  }
960
- class nt {
960
+ class ot {
961
961
  get tagName() {
962
962
  return this.element.tagName;
963
963
  }
964
964
  get _$AU() {
965
965
  return this._$AM._$AU;
966
966
  }
967
- constructor(t, e, i, s, n) {
968
- this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = u;
967
+ constructor(t, e, i, s, o) {
968
+ this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = u;
969
969
  }
970
970
  _$AI(t, e = this, i, s) {
971
- const n = this.strings;
972
- let o = !1;
973
- if (n === void 0) t = R(this, t, e, 0), o = !z(t) || t !== this._$AH && t !== I, o && (this._$AH = t);
971
+ const o = this.strings;
972
+ let n = !1;
973
+ if (o === void 0) t = R(this, t, e, 0), n = !F(t) || t !== this._$AH && t !== I, n && (this._$AH = t);
974
974
  else {
975
975
  const a = t;
976
- let c, h;
977
- for (t = n[0], c = 0; c < n.length - 1; c++) h = R(this, a[i + c], e, c), h === I && (h = this._$AH[c]), o || (o = !z(h) || h !== this._$AH[c]), h === u ? t = u : t !== u && (t += (h ?? "") + n[c + 1]), this._$AH[c] = h;
976
+ let c, l;
977
+ for (t = o[0], c = 0; c < o.length - 1; c++) l = R(this, a[i + c], e, c), l === I && (l = this._$AH[c]), n || (n = !F(l) || l !== this._$AH[c]), l === u ? t = u : t !== u && (t += (l ?? "") + o[c + 1]), this._$AH[c] = l;
978
978
  }
979
- o && !s && this.j(t);
979
+ n && !s && this.j(t);
980
980
  }
981
981
  j(t) {
982
982
  t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
983
983
  }
984
984
  }
985
- class Xe extends nt {
985
+ class Qe extends ot {
986
986
  constructor() {
987
987
  super(...arguments), this.type = 3;
988
988
  }
@@ -990,7 +990,7 @@ class Xe extends nt {
990
990
  this.element[this.name] = t === u ? void 0 : t;
991
991
  }
992
992
  }
993
- class Qe extends nt {
993
+ class ti extends ot {
994
994
  constructor() {
995
995
  super(...arguments), this.type = 4;
996
996
  }
@@ -998,21 +998,21 @@ class Qe extends nt {
998
998
  this.element.toggleAttribute(this.name, !!t && t !== u);
999
999
  }
1000
1000
  }
1001
- class ti extends nt {
1002
- constructor(t, e, i, s, n) {
1003
- super(t, e, i, s, n), this.type = 5;
1001
+ class ei extends ot {
1002
+ constructor(t, e, i, s, o) {
1003
+ super(t, e, i, s, o), this.type = 5;
1004
1004
  }
1005
1005
  _$AI(t, e = this) {
1006
1006
  if ((t = R(this, t, e, 0) ?? u) === I) return;
1007
- const i = this._$AH, s = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== u && (i === u || s);
1008
- s && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
1007
+ const i = this._$AH, s = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== u && (i === u || s);
1008
+ s && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
1009
1009
  }
1010
1010
  handleEvent(t) {
1011
1011
  var e;
1012
1012
  typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
1013
1013
  }
1014
1014
  }
1015
- class ei {
1015
+ class ii {
1016
1016
  constructor(t, e, i) {
1017
1017
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
1018
1018
  }
@@ -1023,14 +1023,14 @@ class ei {
1023
1023
  R(this, t);
1024
1024
  }
1025
1025
  }
1026
- const lt = H.litHtmlPolyfillSupport;
1027
- lt == null || lt($t, q), (H.litHtmlVersions ?? (H.litHtmlVersions = [])).push("3.2.1");
1028
- const ii = (r, t, e) => {
1026
+ const lt = B.litHtmlPolyfillSupport;
1027
+ lt == null || lt($t, q), (B.litHtmlVersions ?? (B.litHtmlVersions = [])).push("3.2.1");
1028
+ const si = (r, t, e) => {
1029
1029
  const i = (e == null ? void 0 : e.renderBefore) ?? t;
1030
1030
  let s = i._$litPart$;
1031
1031
  if (s === void 0) {
1032
- const n = (e == null ? void 0 : e.renderBefore) ?? null;
1033
- i._$litPart$ = s = new q(t.insertBefore(D(), n), n, void 0, e ?? {});
1032
+ const o = (e == null ? void 0 : e.renderBefore) ?? null;
1033
+ i._$litPart$ = s = new q(t.insertBefore(z(), o), o, void 0, e ?? {});
1034
1034
  }
1035
1035
  return s._$AI(r), s;
1036
1036
  };
@@ -1050,7 +1050,7 @@ let A = class extends T {
1050
1050
  }
1051
1051
  update(t) {
1052
1052
  const e = this.render();
1053
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ii(e, this.renderRoot, this.renderOptions);
1053
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = si(e, this.renderRoot, this.renderOptions);
1054
1054
  }
1055
1055
  connectedCallback() {
1056
1056
  var t;
@@ -1064,8 +1064,8 @@ let A = class extends T {
1064
1064
  return I;
1065
1065
  }
1066
1066
  };
1067
- var oe;
1068
- A._$litElement$ = !0, A.finalized = !0, (oe = globalThis.litElementHydrateSupport) == null || oe.call(globalThis, { LitElement: A });
1067
+ var ne;
1068
+ A._$litElement$ = !0, A.finalized = !0, (ne = globalThis.litElementHydrateSupport) == null || ne.call(globalThis, { LitElement: A });
1069
1069
  const dt = globalThis.litElementPolyfillSupport;
1070
1070
  dt == null || dt({ LitElement: A });
1071
1071
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
@@ -1074,31 +1074,31 @@ dt == null || dt({ LitElement: A });
1074
1074
  * Copyright 2017 Google LLC
1075
1075
  * SPDX-License-Identifier: BSD-3-Clause
1076
1076
  */
1077
- const si = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: St }, ri = (r = si, t, e) => {
1077
+ const ri = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: St }, oi = (r = ri, t, e) => {
1078
1078
  const { kind: i, metadata: s } = e;
1079
- let n = globalThis.litPropertyMetadata.get(s);
1080
- if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), n.set(e.name, r), i === "accessor") {
1081
- const { name: o } = e;
1079
+ let o = globalThis.litPropertyMetadata.get(s);
1080
+ if (o === void 0 && globalThis.litPropertyMetadata.set(s, o = /* @__PURE__ */ new Map()), o.set(e.name, r), i === "accessor") {
1081
+ const { name: n } = e;
1082
1082
  return { set(a) {
1083
1083
  const c = t.get.call(this);
1084
- t.set.call(this, a), this.requestUpdate(o, c, r);
1084
+ t.set.call(this, a), this.requestUpdate(n, c, r);
1085
1085
  }, init(a) {
1086
- return a !== void 0 && this.P(o, void 0, r), a;
1086
+ return a !== void 0 && this.P(n, void 0, r), a;
1087
1087
  } };
1088
1088
  }
1089
1089
  if (i === "setter") {
1090
- const { name: o } = e;
1090
+ const { name: n } = e;
1091
1091
  return function(a) {
1092
- const c = this[o];
1093
- t.call(this, a), this.requestUpdate(o, c, r);
1092
+ const c = this[n];
1093
+ t.call(this, a), this.requestUpdate(n, c, r);
1094
1094
  };
1095
1095
  }
1096
1096
  throw Error("Unsupported decorator location: " + i);
1097
1097
  };
1098
1098
  function m(r) {
1099
- return (t, e) => typeof e == "object" ? ri(r, t, e) : ((i, s, n) => {
1100
- const o = s.hasOwnProperty(n);
1101
- return s.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(s, n) : void 0;
1099
+ return (t, e) => typeof e == "object" ? oi(r, t, e) : ((i, s, o) => {
1100
+ const n = s.hasOwnProperty(o);
1101
+ return s.constructor.createProperty(o, n ? { ...i, wrapped: !0 } : i), n ? Object.getOwnPropertyDescriptor(s, o) : void 0;
1102
1102
  })(r, t, e);
1103
1103
  }
1104
1104
  /**
@@ -1106,12 +1106,12 @@ function m(r) {
1106
1106
  * Copyright 2017 Google LLC
1107
1107
  * SPDX-License-Identifier: BSD-3-Clause
1108
1108
  */
1109
- function U(r) {
1109
+ function L(r) {
1110
1110
  return m({ ...r, state: !0, attribute: !1 });
1111
1111
  }
1112
- var ni = Object.defineProperty, oi = (r, t, e, i) => {
1113
- for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
1114
- (o = r[n]) && (s = o(t, e, s) || s);
1112
+ var ni = Object.defineProperty, ai = (r, t, e, i) => {
1113
+ for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
1114
+ (n = r[o]) && (s = n(t, e, s) || s);
1115
1115
  return s && ni(t, e, s), s;
1116
1116
  };
1117
1117
  const Tt = class Tt extends A {
@@ -1127,7 +1127,7 @@ const Tt = class Tt extends A {
1127
1127
  }
1128
1128
  };
1129
1129
  Tt.styles = [
1130
- N`
1130
+ U`
1131
1131
  :host {
1132
1132
  position: fixed;
1133
1133
  display: flex;
@@ -1145,10 +1145,10 @@ Tt.styles = [
1145
1145
  }
1146
1146
  `
1147
1147
  ];
1148
- let F = Tt;
1149
- oi([
1148
+ let V = Tt;
1149
+ ai([
1150
1150
  m({ attribute: !0 })
1151
- ], F.prototype, "anchor");
1151
+ ], V.prototype, "anchor");
1152
1152
  /**
1153
1153
  * @license
1154
1154
  * Copyright 2017 Google LLC
@@ -1176,17 +1176,17 @@ let we = class {
1176
1176
  * Copyright 2020 Google LLC
1177
1177
  * SPDX-License-Identifier: BSD-3-Clause
1178
1178
  */
1179
- const ai = (r) => r.strings === void 0;
1179
+ const ci = (r) => r.strings === void 0;
1180
1180
  /**
1181
1181
  * @license
1182
1182
  * Copyright 2017 Google LLC
1183
1183
  * SPDX-License-Identifier: BSD-3-Clause
1184
1184
  */
1185
- const B = (r, t) => {
1185
+ const D = (r, t) => {
1186
1186
  var i;
1187
1187
  const e = r._$AN;
1188
1188
  if (e === void 0) return !1;
1189
- for (const s of e) (i = s._$AO) == null || i.call(s, t, !1), B(s, t);
1189
+ for (const s of e) (i = s._$AO) == null || i.call(s, t, !1), D(s, t);
1190
1190
  return !0;
1191
1191
  }, tt = (r) => {
1192
1192
  let t, e;
@@ -1199,20 +1199,20 @@ const B = (r, t) => {
1199
1199
  let e = t._$AN;
1200
1200
  if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
1201
1201
  else if (e.has(r)) break;
1202
- e.add(r), li(t);
1202
+ e.add(r), di(t);
1203
1203
  }
1204
1204
  };
1205
- function ci(r) {
1205
+ function hi(r) {
1206
1206
  this._$AN !== void 0 ? (tt(this), this._$AM = r, $e(this)) : this._$AM = r;
1207
1207
  }
1208
- function hi(r, t = !1, e = 0) {
1208
+ function li(r, t = !1, e = 0) {
1209
1209
  const i = this._$AH, s = this._$AN;
1210
- if (s !== void 0 && s.size !== 0) if (t) if (Array.isArray(i)) for (let n = e; n < i.length; n++) B(i[n], !1), tt(i[n]);
1211
- else i != null && (B(i, !1), tt(i));
1212
- else B(this, r);
1210
+ if (s !== void 0 && s.size !== 0) if (t) if (Array.isArray(i)) for (let o = e; o < i.length; o++) D(i[o], !1), tt(i[o]);
1211
+ else i != null && (D(i, !1), tt(i));
1212
+ else D(this, r);
1213
1213
  }
1214
- const li = (r) => {
1215
- r.type == Pt.CHILD && (r._$AP ?? (r._$AP = hi), r._$AQ ?? (r._$AQ = ci));
1214
+ const di = (r) => {
1215
+ r.type == Pt.CHILD && (r._$AP ?? (r._$AP = li), r._$AQ ?? (r._$AQ = hi));
1216
1216
  };
1217
1217
  class _e extends we {
1218
1218
  constructor() {
@@ -1223,10 +1223,10 @@ class _e extends we {
1223
1223
  }
1224
1224
  _$AO(t, e = !0) {
1225
1225
  var i, s;
1226
- t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), e && (B(this, t), tt(this));
1226
+ t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), e && (D(this, t), tt(this));
1227
1227
  }
1228
1228
  setValue(t) {
1229
- if (ai(this._$Ct)) this._$Ct._$AI(t, this);
1229
+ if (ci(this._$Ct)) this._$Ct._$AI(t, this);
1230
1230
  else {
1231
1231
  const e = [...this._$Ct._$AH];
1232
1232
  e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
@@ -1237,9 +1237,9 @@ class _e extends we {
1237
1237
  reconnected() {
1238
1238
  }
1239
1239
  }
1240
- const di = /* @__PURE__ */ new WeakMap();
1240
+ const pi = /* @__PURE__ */ new WeakMap();
1241
1241
  let Xt = 0;
1242
- const pt = /* @__PURE__ */ new Map(), Qt = /* @__PURE__ */ new WeakSet(), te = () => new Promise((r) => requestAnimationFrame(r)), pi = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], ee = (r, t) => {
1242
+ const pt = /* @__PURE__ */ new Map(), Qt = /* @__PURE__ */ new WeakSet(), te = () => new Promise((r) => requestAnimationFrame(r)), ui = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], ee = (r, t) => {
1243
1243
  const e = r - t;
1244
1244
  return e === 0 ? void 0 : e;
1245
1245
  }, ie = (r, t) => {
@@ -1261,8 +1261,8 @@ const pt = /* @__PURE__ */ new Map(), Qt = /* @__PURE__ */ new WeakSet(), te = (
1261
1261
  t === 0 && (t = 1, e = { height: "1px" });
1262
1262
  const i = ie(r, t);
1263
1263
  return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
1264
- } }, ui = { duration: 333, easing: "ease-in-out" }, fi = ["left", "top", "width", "height", "opacity", "color", "background"], se = /* @__PURE__ */ new WeakMap();
1265
- class gi extends _e {
1264
+ } }, fi = { duration: 333, easing: "ease-in-out" }, gi = ["left", "top", "width", "height", "opacity", "color", "background"], se = /* @__PURE__ */ new WeakMap();
1265
+ class mi extends _e {
1266
1266
  constructor(t) {
1267
1267
  if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === Pt.CHILD) throw Error("The `animate` directive must be used in attribute position.");
1268
1268
  this.createFinished();
@@ -1281,7 +1281,7 @@ class gi extends _e {
1281
1281
  return u;
1282
1282
  }
1283
1283
  getController() {
1284
- return di.get(this.u);
1284
+ return pi.get(this.u);
1285
1285
  }
1286
1286
  isDisabled() {
1287
1287
  var t;
@@ -1290,25 +1290,25 @@ class gi extends _e {
1290
1290
  update(t, [e]) {
1291
1291
  var s;
1292
1292
  const i = this.u === void 0;
1293
- 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, se.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
1293
+ return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then((o) => this.t = !0), this.element = t.element, se.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
1294
1294
  }
1295
1295
  p(t) {
1296
1296
  t = t ?? {};
1297
1297
  const e = this.getController();
1298
- e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = fi), this.options = t;
1298
+ e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = gi), this.options = t;
1299
1299
  }
1300
1300
  m() {
1301
1301
  const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
1302
1302
  return this.options.properties.forEach((s) => {
1303
- const n = e[s] ?? (ut[s] ? void 0 : i[s]), o = Number(n);
1304
- t[s] = isNaN(o) ? n + "" : o;
1303
+ const o = e[s] ?? (ut[s] ? void 0 : i[s]), n = Number(o);
1304
+ t[s] = isNaN(n) ? o + "" : n;
1305
1305
  }), t;
1306
1306
  }
1307
1307
  v() {
1308
1308
  let t, e = !0;
1309
1309
  return this.options.guard && (t = this.options.guard(), e = ((i, s) => {
1310
1310
  if (Array.isArray(i)) {
1311
- if (Array.isArray(s) && s.length === i.length && i.every((n, o) => n === s[o])) return !1;
1311
+ if (Array.isArray(s) && s.length === i.length && i.every((o, n) => o === s[n])) return !1;
1312
1312
  } else if (s === i) return !1;
1313
1313
  return !0;
1314
1314
  })(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;
@@ -1322,14 +1322,14 @@ class gi extends _e {
1322
1322
  this.prepare(), await te;
1323
1323
  const e = this.O(), i = this.j(this.options.keyframeOptions, e), s = this.m();
1324
1324
  if (this.A !== void 0) {
1325
- const { from: n, to: o } = this.N(this.A, s, e);
1326
- this.log("measured", [this.A, s, n, o]), t = this.calculateKeyframes(n, o);
1325
+ const { from: o, to: n } = this.N(this.A, s, e);
1326
+ this.log("measured", [this.A, s, o, n]), t = this.calculateKeyframes(o, n);
1327
1327
  } else {
1328
- const n = pt.get(this.options.inId);
1329
- if (n) {
1328
+ const o = pt.get(this.options.inId);
1329
+ if (o) {
1330
1330
  pt.delete(this.options.inId);
1331
- const { from: o, to: a } = this.N(n, s, e);
1332
- t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Xt++, t.forEach((c) => c.zIndex = Xt);
1331
+ const { from: n, to: a } = this.N(o, s, e);
1332
+ t = this.calculateKeyframes(n, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Xt++, t.forEach((c) => c.zIndex = Xt);
1333
1333
  } else this.options.in && (t = [...this.options.in, {}]);
1334
1334
  }
1335
1335
  this.animate(t, i);
@@ -1351,8 +1351,8 @@ class gi extends _e {
1351
1351
  if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
1352
1352
  const s = this.m();
1353
1353
  this.log("stabilizing out");
1354
- const n = this.A.left - s.left, o = this.A.top - s.top;
1355
- 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");
1354
+ const o = this.A.left - s.left, n = this.A.top - s.top;
1355
+ getComputedStyle(this.element).position !== "static" || o === 0 && n === 0 || (this.element.style.position = "relative"), o !== 0 && (this.element.style.left = o + "px"), n !== 0 && (this.element.style.top = n + "px");
1356
1356
  }
1357
1357
  }
1358
1358
  const t = this.j(this.options.keyframeOptions);
@@ -1384,31 +1384,31 @@ class gi extends _e {
1384
1384
  }), t;
1385
1385
  }
1386
1386
  j(t, e = this.O()) {
1387
- const i = { ...ui };
1387
+ const i = { ...fi };
1388
1388
  return e.forEach((s) => Object.assign(i, s.options.keyframeOptions)), Object.assign(i, t), i;
1389
1389
  }
1390
1390
  N(t, e, i) {
1391
1391
  t = { ...t }, e = { ...e };
1392
1392
  const s = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
1393
- let n = 1, o = 1;
1393
+ let o = 1, n = 1;
1394
1394
  return s.length > 0 && (s.forEach((a) => {
1395
- a.width && (n /= a.width), a.height && (o /= a.height);
1396
- }), 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 };
1395
+ a.width && (o /= a.width), a.height && (n /= a.height);
1396
+ }), t.left !== void 0 && e.left !== void 0 && (t.left = o * t.left, e.left = o * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = n * t.top, e.top = n * e.top)), { from: t, to: e };
1397
1397
  }
1398
1398
  calculateKeyframes(t, e, i = !1) {
1399
- const s = {}, n = {};
1400
- let o = !1;
1399
+ const s = {}, o = {};
1400
+ let n = !1;
1401
1401
  const a = {};
1402
1402
  for (const c in e) {
1403
- const h = t[c], l = e[c];
1403
+ const l = t[c], h = e[c];
1404
1404
  if (c in ut) {
1405
1405
  const d = ut[c];
1406
- if (h === void 0 || l === void 0) continue;
1407
- const p = d(h, l);
1408
- p.transform !== void 0 && (a[c] = p.value, o = !0, s.transform = `${s.transform ?? ""} ${p.transform}`, p.overrideFrom !== void 0 && Object.assign(s, p.overrideFrom));
1409
- } else h !== l && h !== void 0 && l !== void 0 && (o = !0, s[c] = h, n[c] = l);
1406
+ if (l === void 0 || h === void 0) continue;
1407
+ const p = d(l, h);
1408
+ p.transform !== void 0 && (a[c] = p.value, n = !0, s.transform = `${s.transform ?? ""} ${p.transform}`, p.overrideFrom !== void 0 && Object.assign(s, p.overrideFrom));
1409
+ } else l !== h && l !== void 0 && h !== void 0 && (n = !0, s[c] = l, o[c] = h);
1410
1410
  }
1411
- return s.transformOrigin = n.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [s, n] : void 0;
1411
+ return s.transformOrigin = o.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, n ? [s, o] : void 0;
1412
1412
  }
1413
1413
  async animate(t, e = this.options.keyframeOptions) {
1414
1414
  this.start(), this.frames = t;
@@ -1433,7 +1433,7 @@ class gi extends _e {
1433
1433
  this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
1434
1434
  }
1435
1435
  }
1436
- const mi = Ot(gi), vi = { 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>' };
1436
+ const vi = Ot(mi), yi = { 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>' };
1437
1437
  /**
1438
1438
  * @license
1439
1439
  * Copyright 2018 Google LLC
@@ -1450,22 +1450,22 @@ const re = Ot(class extends we {
1450
1450
  update(r, [t]) {
1451
1451
  var i, s;
1452
1452
  if (this.st === void 0) {
1453
- this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((n) => n !== "")));
1454
- for (const n in t) t[n] && !((i = this.nt) != null && i.has(n)) && this.st.add(n);
1453
+ this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((o) => o !== "")));
1454
+ for (const o in t) t[o] && !((i = this.nt) != null && i.has(o)) && this.st.add(o);
1455
1455
  return this.render(t);
1456
1456
  }
1457
1457
  const e = r.element.classList;
1458
- for (const n of this.st) n in t || (e.remove(n), this.st.delete(n));
1459
- for (const n in t) {
1460
- const o = !!t[n];
1461
- 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)));
1458
+ for (const o of this.st) o in t || (e.remove(o), this.st.delete(o));
1459
+ for (const o in t) {
1460
+ const n = !!t[o];
1461
+ n === this.st.has(o) || (s = this.nt) != null && s.has(o) || (n ? (e.add(o), this.st.add(o)) : (e.remove(o), this.st.delete(o)));
1462
1462
  }
1463
1463
  return I;
1464
1464
  }
1465
1465
  }), w = (r, t, e) => {
1466
1466
  r && e.style.setProperty(t, r);
1467
1467
  }, Ae = (r, t) => {
1468
- var e, i, s, n, o, a, c, h, l;
1468
+ var e, i, s, o, n, a, c, l, h;
1469
1469
  w((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), w(
1470
1470
  (i = r.colors) == null ? void 0 : i.textOnPrimaryBackground,
1471
1471
  "--text-on-primary-background",
@@ -1475,11 +1475,11 @@ const re = Ot(class extends we {
1475
1475
  "--secondary-background",
1476
1476
  t
1477
1477
  ), w(
1478
- (n = r.colors) == null ? void 0 : n.textOnSecondaryBackground,
1478
+ (o = r.colors) == null ? void 0 : o.textOnSecondaryBackground,
1479
1479
  "--text-on-secondary-background",
1480
1480
  t
1481
1481
  ), w(
1482
- (o = r.colors) == null ? void 0 : o.interactiveDestructiveBackground,
1482
+ (n = r.colors) == null ? void 0 : n.interactiveDestructiveBackground,
1483
1483
  "--destructive-color",
1484
1484
  t
1485
1485
  ), w(
@@ -1491,18 +1491,18 @@ const re = Ot(class extends we {
1491
1491
  "--interactive-primary-background",
1492
1492
  t
1493
1493
  ), w(
1494
- (h = r.colors) == null ? void 0 : h.interactiveTextOnPrimaryBackground,
1494
+ (l = r.colors) == null ? void 0 : l.interactiveTextOnPrimaryBackground,
1495
1495
  "--interactive-text-on-primary-background",
1496
1496
  t
1497
- ), w((l = r.colors) == null ? void 0 : l.focusColor, "--focus-color", t);
1497
+ ), w((h = r.colors) == null ? void 0 : h.focusColor, "--focus-color", t);
1498
1498
  };
1499
1499
  /**
1500
1500
  * @license
1501
1501
  * Copyright 2020 Google LLC
1502
1502
  * SPDX-License-Identifier: BSD-3-Clause
1503
1503
  */
1504
- const xe = () => new yi();
1505
- class yi {
1504
+ const xe = () => new bi();
1505
+ class bi {
1506
1506
  }
1507
1507
  const ft = /* @__PURE__ */ new WeakMap(), Ce = Ot(class extends _e {
1508
1508
  render(r) {
@@ -1531,10 +1531,10 @@ const ft = /* @__PURE__ */ new WeakMap(), Ce = Ot(class extends _e {
1531
1531
  this.rt(this.ct);
1532
1532
  }
1533
1533
  });
1534
- var bi = Object.defineProperty, K = (r, t, e, i) => {
1535
- for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
1536
- (o = r[n]) && (s = o(t, e, s) || s);
1537
- return s && bi(t, e, s), s;
1534
+ var wi = Object.defineProperty, K = (r, t, e, i) => {
1535
+ for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
1536
+ (n = r[o]) && (s = n(t, e, s) || s);
1537
+ return s && wi(t, e, s), s;
1538
1538
  };
1539
1539
  const kt = class kt extends A {
1540
1540
  constructor() {
@@ -1576,20 +1576,20 @@ const kt = class kt extends A {
1576
1576
  (t = this.application) != null && t.settings && Ae(this.application.settings.branding, this);
1577
1577
  }
1578
1578
  async _renderSymbol() {
1579
- var a, c, h;
1579
+ var a, c, l;
1580
1580
  const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
1581
1581
  if (e)
1582
1582
  return k` <img src=${e} class="trigger-icon" alt="" /> `;
1583
- const i = (h = this.application) == null ? void 0 : h.triggerIcon;
1583
+ const i = (l = this.application) == null ? void 0 : l.triggerIcon;
1584
1584
  if (!i)
1585
1585
  return u;
1586
- const s = async (l) => vi, { type: n, content: o } = i;
1587
- switch (n) {
1586
+ const s = async (h) => yi, { type: o, content: n } = i;
1587
+ switch (o) {
1588
1588
  case "Telia": {
1589
- const l = await s();
1590
- return l ? k`<telia-icon
1589
+ const h = await s();
1590
+ return h ? k`<telia-icon
1591
1591
  class="trigger-icon"
1592
- svg=${l.svg}
1592
+ svg=${h.svg}
1593
1593
  size="lg"
1594
1594
  ></telia-icon>` : u;
1595
1595
  }
@@ -1617,9 +1617,9 @@ const kt = class kt extends A {
1617
1617
  label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
1618
1618
  class="trigger-label"
1619
1619
  @click=${this.toggleActive}
1620
- ${mi({
1620
+ ${vi({
1621
1621
  keyframeOptions: {},
1622
- in: pi,
1622
+ in: ui,
1623
1623
  stabilizeOut: !0,
1624
1624
  skipInitial: !1
1625
1625
  })}
@@ -1670,7 +1670,7 @@ const kt = class kt extends A {
1670
1670
  }
1671
1671
  };
1672
1672
  kt.styles = [
1673
- N`
1673
+ U`
1674
1674
  :host {
1675
1675
  --voca-rem-multiplier: 0.625;
1676
1676
  --trigger-label-bg: #f5e0ff;
@@ -1806,23 +1806,23 @@ K([
1806
1806
  m({ attribute: !1 })
1807
1807
  ], b.prototype, "application");
1808
1808
  K([
1809
- U()
1809
+ L()
1810
1810
  ], b.prototype, "active");
1811
1811
  K([
1812
- U()
1812
+ L()
1813
1813
  ], b.prototype, "triggerVisible");
1814
1814
  K([
1815
- U()
1815
+ L()
1816
1816
  ], b.prototype, "loaded");
1817
1817
  K([
1818
- U()
1818
+ L()
1819
1819
  ], b.prototype, "icon");
1820
- var wi = Object.defineProperty, E = (r, t, e, i) => {
1821
- for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
1822
- (o = r[n]) && (s = o(t, e, s) || s);
1823
- return s && wi(t, e, s), s;
1820
+ var $i = Object.defineProperty, E = (r, t, e, i) => {
1821
+ for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
1822
+ (n = r[o]) && (s = n(t, e, s) || s);
1823
+ return s && $i(t, e, s), s;
1824
1824
  };
1825
- const $i = (r) => {
1825
+ const _i = (r) => {
1826
1826
  const e = class e extends r {
1827
1827
  constructor() {
1828
1828
  super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
@@ -1848,7 +1848,7 @@ const $i = (r) => {
1848
1848
  };
1849
1849
  e.styles = [
1850
1850
  // (superClass as unknown as typeof LitElement).styles ?? [],
1851
- N`
1851
+ U`
1852
1852
  :host {
1853
1853
  font-family: var(--font-family);
1854
1854
  grid-column: span var(--width);
@@ -1878,13 +1878,13 @@ const $i = (r) => {
1878
1878
  ], t.prototype, "application"), E([
1879
1879
  m({ attribute: !1 })
1880
1880
  ], t.prototype, "parent"), t;
1881
- }, Rt = class Rt extends $i(A) {
1881
+ }, Rt = class Rt extends _i(A) {
1882
1882
  render() {
1883
1883
  return k`Non resolved component`;
1884
1884
  }
1885
1885
  };
1886
1886
  Rt.styles = [
1887
- N`
1887
+ U`
1888
1888
  :host {
1889
1889
  display: block;
1890
1890
  }
@@ -1896,7 +1896,7 @@ let et = Rt;
1896
1896
  * Copyright 2021 Google LLC
1897
1897
  * SPDX-License-Identifier: BSD-3-Clause
1898
1898
  */
1899
- function* _i(r, t) {
1899
+ function* Ai(r, t) {
1900
1900
  if (r !== void 0) {
1901
1901
  let e = 0;
1902
1902
  for (const i of r) yield t(i, e++);
@@ -1908,7 +1908,7 @@ var $ = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))
1908
1908
  * Copyright 2021 Google LLC
1909
1909
  * SPDX-License-Identifier: BSD-3-Clause
1910
1910
  */
1911
- let Ai = class extends Event {
1911
+ let xi = class extends Event {
1912
1912
  constructor(t, e, i) {
1913
1913
  super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = i ?? !1;
1914
1914
  }
@@ -1923,7 +1923,7 @@ let Ai = class extends Event {
1923
1923
  * Copyright 2021 Google LLC
1924
1924
  * SPDX-License-Identifier: BSD-3-Clause
1925
1925
  */
1926
- class xi {
1926
+ class Ci {
1927
1927
  get value() {
1928
1928
  return this.o;
1929
1929
  }
@@ -1956,30 +1956,30 @@ class xi {
1956
1956
  * Copyright 2021 Google LLC
1957
1957
  * SPDX-License-Identifier: BSD-3-Clause
1958
1958
  */
1959
- let Ci = class extends Event {
1959
+ let Si = class extends Event {
1960
1960
  constructor(t) {
1961
1961
  super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
1962
1962
  }
1963
1963
  };
1964
- class ne extends xi {
1964
+ class oe extends Ci {
1965
1965
  constructor(t, e, i) {
1966
- var s, n;
1967
- super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
1968
- const a = o.composedPath()[0];
1969
- o.context === this.context && a !== this.host && (o.stopPropagation(), this.addCallback(o.callback, a, o.subscribe));
1970
- }, this.onProviderRequest = (o) => {
1971
- const a = o.composedPath()[0];
1972
- if (o.context !== this.context || a === this.host) return;
1966
+ var s, o;
1967
+ super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (n) => {
1968
+ const a = n.composedPath()[0];
1969
+ n.context === this.context && a !== this.host && (n.stopPropagation(), this.addCallback(n.callback, a, n.subscribe));
1970
+ }, this.onProviderRequest = (n) => {
1971
+ const a = n.composedPath()[0];
1972
+ if (n.context !== this.context || a === this.host) return;
1973
1973
  const c = /* @__PURE__ */ new Set();
1974
- for (const [h, { consumerHost: l }] of this.subscriptions) c.has(h) || (c.add(h), l.dispatchEvent(new Ai(this.context, h, !0)));
1975
- o.stopPropagation();
1976
- }, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (n = (s = this.host).addController) == null || n.call(s, this);
1974
+ for (const [l, { consumerHost: h }] of this.subscriptions) c.has(l) || (c.add(l), h.dispatchEvent(new xi(this.context, l, !0)));
1975
+ n.stopPropagation();
1976
+ }, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (o = (s = this.host).addController) == null || o.call(s, this);
1977
1977
  }
1978
1978
  attachListeners() {
1979
1979
  this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
1980
1980
  }
1981
1981
  hostConnected() {
1982
- this.host.dispatchEvent(new Ci(this.context));
1982
+ this.host.dispatchEvent(new Si(this.context));
1983
1983
  }
1984
1984
  }
1985
1985
  /**
@@ -1987,51 +1987,51 @@ class ne extends xi {
1987
1987
  * Copyright 2017 Google LLC
1988
1988
  * SPDX-License-Identifier: BSD-3-Clause
1989
1989
  */
1990
- function Si({ context: r }) {
1990
+ function Ei({ context: r }) {
1991
1991
  return (t, e) => {
1992
1992
  const i = /* @__PURE__ */ new WeakMap();
1993
1993
  if (typeof e == "object") return e.addInitializer(function() {
1994
- i.set(this, new ne(this, { context: r }));
1994
+ i.set(this, new oe(this, { context: r }));
1995
1995
  }), { get() {
1996
1996
  return t.get.call(this);
1997
1997
  }, set(s) {
1998
- var n;
1999
- return (n = i.get(this)) == null || n.setValue(s), t.set.call(this, s);
1998
+ var o;
1999
+ return (o = i.get(this)) == null || o.setValue(s), t.set.call(this, s);
2000
2000
  }, init(s) {
2001
- var n;
2002
- return (n = i.get(this)) == null || n.setValue(s), s;
2001
+ var o;
2002
+ return (o = i.get(this)) == null || o.setValue(s), s;
2003
2003
  } };
2004
2004
  {
2005
- t.constructor.addInitializer((o) => {
2006
- i.set(o, new ne(o, { context: r }));
2005
+ t.constructor.addInitializer((n) => {
2006
+ i.set(n, new oe(n, { context: r }));
2007
2007
  });
2008
2008
  const s = Object.getOwnPropertyDescriptor(t, e);
2009
- let n;
2009
+ let o;
2010
2010
  if (s === void 0) {
2011
- const o = /* @__PURE__ */ new WeakMap();
2012
- n = { get() {
2013
- return o.get(this);
2011
+ const n = /* @__PURE__ */ new WeakMap();
2012
+ o = { get() {
2013
+ return n.get(this);
2014
2014
  }, set(a) {
2015
- i.get(this).setValue(a), o.set(this, a);
2015
+ i.get(this).setValue(a), n.set(this, a);
2016
2016
  }, configurable: !0, enumerable: !0 };
2017
2017
  } else {
2018
- const o = s.set;
2019
- n = { ...s, set(a) {
2020
- i.get(this).setValue(a), o == null || o.call(this, a);
2018
+ const n = s.set;
2019
+ o = { ...s, set(a) {
2020
+ i.get(this).setValue(a), n == null || n.call(this, a);
2021
2021
  } };
2022
2022
  }
2023
- return void Object.defineProperty(t, e, n);
2023
+ return void Object.defineProperty(t, e, o);
2024
2024
  }
2025
2025
  };
2026
2026
  }
2027
- var Ei = Object.defineProperty, Pi = (r, t, e, i) => {
2028
- for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
2029
- (o = r[n]) && (s = o(t, e, s) || s);
2030
- return s && Ei(t, e, s), s;
2027
+ var Pi = Object.defineProperty, Se = (r, t, e, i) => {
2028
+ for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
2029
+ (n = r[o]) && (s = n(t, e, s) || s);
2030
+ return s && Pi(t, e, s), s;
2031
2031
  };
2032
2032
  const Oi = "application", Mt = class Mt extends A {
2033
2033
  constructor() {
2034
- super(...arguments), this.nodes = [], this.wrapperRef = xe();
2034
+ super(...arguments), this.nodes = [], this.wrapperRef = xe(), this.mobile = !1;
2035
2035
  }
2036
2036
  addChild(t) {
2037
2037
  t.parent = this, this.nodes.push(t);
@@ -2057,11 +2057,11 @@ const Oi = "application", Mt = class Mt extends A {
2057
2057
  var i, s;
2058
2058
  const t = this.application.settings.components.conversation;
2059
2059
  return ((s = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === $.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.mobile && this.renderRoot.host.classList.add("mobile"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), k`<div class="widget-container" ${Ce(this.wrapperRef)}>
2060
- ${_i(this.nodes, (n) => n)}
2060
+ ${Ai(this.nodes, (o) => o)}
2061
2061
  </div>`;
2062
2062
  }
2063
2063
  };
2064
- Mt.styles = N`
2064
+ Mt.styles = U`
2065
2065
  :host {
2066
2066
  --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
2067
2067
  --spacing-xs: 0.2rem;
@@ -2209,11 +2209,14 @@ Mt.styles = N`
2209
2209
  pointer-events: none;
2210
2210
  }
2211
2211
  `;
2212
- let V = Mt;
2213
- Pi([
2212
+ let M = Mt;
2213
+ Se([
2214
+ m({ attribute: !0 })
2215
+ ], M.prototype, "mobile");
2216
+ Se([
2214
2217
  m({ attribute: !1 }),
2215
- Si({ context: Oi })
2216
- ], V.prototype, "application");
2218
+ Ei({ context: Oi })
2219
+ ], M.prototype, "application");
2217
2220
  class Ii {
2218
2221
  constructor() {
2219
2222
  this.root = this.createRoot();
@@ -2222,19 +2225,19 @@ class Ii {
2222
2225
  this.root.application = e;
2223
2226
  const i = (a) => {
2224
2227
  if (Array.isArray(a)) {
2225
- const [c, ...h] = a;
2228
+ const [c, ...l] = a;
2226
2229
  return {
2227
2230
  definitionId: c,
2228
- overrides: h
2231
+ overrides: l
2229
2232
  };
2230
2233
  }
2231
2234
  return {
2232
2235
  definitionId: a,
2233
2236
  overrides: []
2234
2237
  };
2235
- }, s = (a, c, h, l) => {
2236
- h.forEach((d) => {
2237
- const p = i(d), f = l[p.definitionId];
2238
+ }, s = (a, c, l, h) => {
2239
+ l.forEach((d) => {
2240
+ const p = i(d), f = h[p.definitionId];
2238
2241
  if (!f) {
2239
2242
  console.error(
2240
2243
  `No definition found for component type '${p.definitionId}'.`
@@ -2246,15 +2249,15 @@ class Ii {
2246
2249
  a,
2247
2250
  g,
2248
2251
  f.children,
2249
- l
2252
+ h
2250
2253
  // views
2251
2254
  ));
2252
2255
  });
2253
- }, { entry: n, components: o } = t;
2254
- return s(this, this.root, [n], o), this.root;
2256
+ }, { entry: o, components: n } = t;
2257
+ return s(this, this.root, [o], n), this.root;
2255
2258
  }
2256
2259
  createRoot() {
2257
- return typeof window < "u" && (window.customElements.get("ace-wrapper") || window.customElements.define("ace-wrapper", V)), document.createElement("ace-wrapper");
2260
+ return typeof window < "u" && (window.customElements.get("ace-wrapper") || window.customElements.define("ace-wrapper", M)), document.createElement("ace-wrapper");
2258
2261
  }
2259
2262
  createNode(t, e) {
2260
2263
  if (!this.resolveComponent(e))
@@ -2312,8 +2315,8 @@ class Ti {
2312
2315
  }
2313
2316
  const s = i.category;
2314
2317
  if (this.policy[s]) {
2315
- const n = { value: e, category: s };
2316
- this.storage.setItem(this._prefixKey(t), JSON.stringify(n));
2318
+ const o = { value: e, category: s };
2319
+ this.storage.setItem(this._prefixKey(t), JSON.stringify(o));
2317
2320
  } else
2318
2321
  console.warn(
2319
2322
  `Storage policy does not allow storing items in category: ${s}`
@@ -2367,7 +2370,7 @@ class ki {
2367
2370
  return this.texts.get(t) || e;
2368
2371
  }
2369
2372
  }
2370
- const Ri = "1.1.82-rc.5";
2373
+ const Ri = "1.1.82-rc.7";
2371
2374
  class Mi {
2372
2375
  constructor(t) {
2373
2376
  this.widget = t, this.name = t.name;
@@ -2391,23 +2394,28 @@ class Mi {
2391
2394
  }
2392
2395
  }
2393
2396
  class Ni {
2394
- constructor(t, e, i, s, n) {
2395
- this.id = t, this.name = e, this.container = i, this.settings = s, this.options = n, this.platform = new Ii(), this.texts = new ki(), this.renderStrategy = $.Inline, this.mobile = !1, this.anchor = "BottomRight", this.autoActivate = !1, this.plugins = [], this.componentResolver = new _t(), this.components = [], this.trigger = null, this.api = new Mi(this), this.onMessageReceived = async (a) => {
2396
- var h;
2397
+ constructor(t, e, i, s, o) {
2398
+ this.id = t, this.name = e, this.container = i, this.settings = s, this.options = o, this.platform = new Ii(), this.texts = new ki(), this.renderStrategy = $.Inline, this.mobile = !1, this.anchor = "BottomRight", this.autoActivate = !1, this.plugins = [], this.componentResolver = new _t(), this.components = [], this.trigger = null, this.api = new Mi(this), this.onMessageReceived = async (a) => {
2399
+ var l;
2397
2400
  const c = a.data;
2398
2401
  switch (c.type) {
2399
2402
  case "set-storage-policies": {
2400
- const { policies: l } = c.data || [], d = {
2401
- [y.Analytics]: l.includes("analytics"),
2402
- [y.Necessary]: l.includes("necessary"),
2403
- [y.Functional]: l.includes("functional")
2403
+ const { policies: h } = c.data || [], d = {
2404
+ [y.Analytics]: h.includes("analytics"),
2405
+ [y.Necessary]: h.includes("necessary"),
2406
+ [y.Functional]: h.includes("functional")
2404
2407
  };
2405
2408
  this.storage.updatePolicy(d);
2406
2409
  return;
2407
2410
  }
2408
2411
  case "disallow-storage-key": {
2409
- const { storageKey: l } = c.data || null;
2410
- l && this.storage.disallowKey(l);
2412
+ const { storageKey: h } = c.data || null;
2413
+ h && this.storage.disallowKey(h);
2414
+ return;
2415
+ }
2416
+ case "set-mobile-mode": {
2417
+ const { value: h } = c.data;
2418
+ typeof h == "boolean" && this.setMobileMode(h);
2411
2419
  return;
2412
2420
  }
2413
2421
  case "open": {
@@ -2419,20 +2427,20 @@ class Ni {
2419
2427
  return;
2420
2428
  }
2421
2429
  case "set-z-index": {
2422
- const { zIndex: l } = c.data || null;
2423
- l && this.setZIndex(l);
2430
+ const { zIndex: h } = c.data || null;
2431
+ h && this.setZIndex(h);
2424
2432
  return;
2425
2433
  }
2426
2434
  case "deactivate-widget": {
2427
- const l = this.storage.get("open");
2428
- this.hide(), (h = this.trigger) == null || h.hideTrigger(), l && this.storage.set("open", !0);
2435
+ const h = this.storage.get("open");
2436
+ this.hide(), (l = this.trigger) == null || l.hideTrigger(), h && this.storage.set("open", !0);
2429
2437
  return;
2430
2438
  }
2431
2439
  default:
2432
2440
  return;
2433
2441
  }
2434
2442
  }, this.renderStrategy = this.options.renderStrategy || $.Inline, this.triggerIcon = this.options.triggerIcon;
2435
- const o = {
2443
+ const n = {
2436
2444
  [y.Necessary]: !0,
2437
2445
  [y.Functional]: !0,
2438
2446
  [y.Analytics]: !0
@@ -2440,9 +2448,9 @@ class Ni {
2440
2448
  this.storage = new Ti(
2441
2449
  this.id,
2442
2450
  "sessionStorage",
2443
- o,
2451
+ n,
2444
2452
  this.settings.storage
2445
- ), typeof n.autoActivate == "boolean" && (this.autoActivate = n.autoActivate), n.anchor && (this.anchor = n.anchor), this.container.register("$settings", s), this.texts.loadTexts(s.texts || {}), window.addEventListener("message", this.onMessageReceived);
2453
+ ), typeof o.autoActivate == "boolean" && (this.autoActivate = o.autoActivate), o.anchor && (this.anchor = o.anchor), this.container.register("$settings", s), this.texts.loadTexts(s.texts || {}), window.addEventListener("message", this.onMessageReceived);
2446
2454
  }
2447
2455
  async activate() {
2448
2456
  if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(ue.Ready), this.autoActivate) {
@@ -2507,7 +2515,7 @@ class Ni {
2507
2515
  let e = document.querySelector(
2508
2516
  `ace-trigger-slot.${t}`
2509
2517
  );
2510
- return e || (e = new F(), e.anchor = this.anchor, document.body.appendChild(e)), e;
2518
+ return e || (e = new V(), e.anchor = this.anchor, document.body.appendChild(e)), e;
2511
2519
  }
2512
2520
  return document.body;
2513
2521
  }
@@ -2515,7 +2523,7 @@ class Ni {
2515
2523
  return window.self !== window.top;
2516
2524
  }
2517
2525
  setMobileMode(t) {
2518
- this.mobile = t;
2526
+ this.mobile = t, this.root && (this.root.mobile = !0);
2519
2527
  }
2520
2528
  render() {
2521
2529
  if (this._isEmbeddedInIFrame())
@@ -2539,18 +2547,18 @@ const Yi = (r) => new W(r), st = class st {
2539
2547
  id: i.id,
2540
2548
  triggers: i.triggers || [],
2541
2549
  apps: (i.widgets || []).map((s) => {
2542
- let n = $.Trigger;
2543
- s.renderStrategy.toLowerCase() === "inline" && (n = $.Inline);
2544
- const o = s.widgetId ? s.widgetId : s.id, a = typeof s.autoActivate == "boolean" ? s.autoActivate : !1, c = typeof s.anchor == "string" ? s.anchor : "BottomRight", h = typeof s.triggerIcon == "string" ? s.triggerIcon : "question";
2550
+ let o = $.Trigger;
2551
+ s.renderStrategy.toLowerCase() === "inline" && (o = $.Inline);
2552
+ const n = s.widgetId ? s.widgetId : s.id, a = typeof s.autoActivate == "boolean" ? s.autoActivate : !1, c = typeof s.anchor == "string" ? s.anchor : "BottomRight", l = typeof s.triggerIcon == "string" ? s.triggerIcon : "question";
2545
2553
  return {
2546
- id: o,
2547
- widgetId: o,
2548
- renderStrategy: n,
2554
+ id: n,
2555
+ widgetId: n,
2556
+ renderStrategy: o,
2549
2557
  autoActivate: a,
2550
2558
  anchor: c,
2551
2559
  triggerIcon: {
2552
2560
  type: "Telia",
2553
- content: h
2561
+ content: l
2554
2562
  }
2555
2563
  };
2556
2564
  })
@@ -2574,12 +2582,12 @@ class Ui {
2574
2582
  var i;
2575
2583
  (((i = this.site.environment) == null ? void 0 : i.applications) || []).forEach((s) => {
2576
2584
  if (s.storage) {
2577
- const n = {
2585
+ const o = {
2578
2586
  [y.Analytics]: t.includes("analytics"),
2579
2587
  [y.Necessary]: t.includes("necessary"),
2580
2588
  [y.Functional]: t.includes("functional")
2581
2589
  };
2582
- s.storage.updatePolicy(n);
2590
+ s.storage.updatePolicy(o);
2583
2591
  }
2584
2592
  });
2585
2593
  }
@@ -2612,24 +2620,24 @@ class Li {
2612
2620
  (i) => i.autoActivate
2613
2621
  );
2614
2622
  (((e = this.site) == null ? void 0 : e.triggers) || []).filter((i) => i.triggerType === "visit").forEach((i) => {
2615
- const s = window.location.pathname, n = i.condition.outputs || [];
2616
- i.condition.type === "url" && n.forEach((o) => {
2617
- const a = o.action.type === "render_widget";
2618
- if ((o.value === s || o.value === "*") && a) {
2619
- let h = { widgetId: "" };
2623
+ const s = window.location.pathname, o = i.condition.outputs || [];
2624
+ i.condition.type === "url" && o.forEach((n) => {
2625
+ const a = n.action.type === "render_widget";
2626
+ if ((n.value === s || n.value === "*") && a) {
2627
+ let l = { widgetId: "" };
2620
2628
  try {
2621
- h = JSON.parse(o.action.data);
2629
+ l = JSON.parse(n.action.data);
2622
2630
  } catch {
2623
- h = {
2631
+ l = {
2624
2632
  widgetId: ""
2625
2633
  };
2626
2634
  }
2627
- const l = t.findIndex(
2628
- (p) => p.id === h.widgetId
2635
+ const h = t.findIndex(
2636
+ (p) => p.id === l.widgetId
2629
2637
  ) > -1, d = this.applications.find(
2630
- (p) => p.id === h.widgetId
2638
+ (p) => p.id === l.widgetId
2631
2639
  );
2632
- d && !l && (d.autoActivate = !0, t.push(d));
2640
+ d && !h && (d.autoActivate = !0, t.push(d));
2633
2641
  }
2634
2642
  });
2635
2643
  });
@@ -2658,16 +2666,16 @@ class Li {
2658
2666
  if (!i) {
2659
2667
  const s = this.widgetAPIHandlers.get(t) || [];
2660
2668
  s.push(() => {
2661
- const n = this.applications.find((o) => o.name === t);
2662
- e(n == null ? void 0 : n.api);
2669
+ const o = this.applications.find((n) => n.name === t);
2670
+ e(o == null ? void 0 : o.api);
2663
2671
  }), this.widgetAPIHandlers.set(t, s);
2664
2672
  return;
2665
2673
  }
2666
2674
  e(i == null ? void 0 : i.api);
2667
2675
  }
2668
2676
  registerApp(t, e, i, s) {
2669
- const n = new Dt(e, this), o = new Ni(t, e, n, i, s);
2670
- this.applications.push(o);
2677
+ const o = new Dt(e, this), n = new Ni(t, e, o, i, s);
2678
+ this.applications.push(n);
2671
2679
  }
2672
2680
  registerSite(t) {
2673
2681
  this.site = t;
@@ -2735,8 +2743,8 @@ class ji {
2735
2743
  }
2736
2744
  }
2737
2745
  var Hi = Object.defineProperty, It = (r, t, e, i) => {
2738
- for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
2739
- (o = r[n]) && (s = o(t, e, s) || s);
2746
+ for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
2747
+ (n = r[o]) && (s = n(t, e, s) || s);
2740
2748
  return s && Hi(t, e, s), s;
2741
2749
  };
2742
2750
  const Nt = class Nt extends A {
@@ -2772,33 +2780,33 @@ const Nt = class Nt extends A {
2772
2780
  }
2773
2781
  };
2774
2782
  Nt.styles = [
2775
- N`
2783
+ U`
2776
2784
  :host {
2777
2785
  display: block;
2778
2786
  }
2779
2787
  `
2780
2788
  ];
2781
- let M = Nt;
2789
+ let N = Nt;
2782
2790
  It([
2783
2791
  m({ attribute: !0 })
2784
- ], M.prototype, "name");
2792
+ ], N.prototype, "name");
2785
2793
  It([
2786
- U()
2787
- ], M.prototype, "widget");
2794
+ L()
2795
+ ], N.prototype, "widget");
2788
2796
  It([
2789
- U()
2790
- ], M.prototype, "status");
2791
- customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", F);
2797
+ L()
2798
+ ], N.prototype, "status");
2799
+ customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", V);
2792
2800
  customElements.get("ace-trigger") || customElements.define("ace-trigger", b);
2793
2801
  customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", et);
2794
- customElements.get("ace-wrapper") || customElements.define("ace-wrapper", V);
2795
- customElements.get("ace-widget") || customElements.define("ace-widget", M);
2802
+ customElements.get("ace-wrapper") || customElements.define("ace-wrapper", M);
2803
+ customElements.get("ace-widget") || customElements.define("ace-widget", N);
2796
2804
  const qi = async (r, t, e = {}) => {
2797
2805
  const i = new ji(r);
2798
2806
  e.httpClient && i.setHttpClient(e.httpClient), await i.bootstrap(t);
2799
2807
  };
2800
2808
  export {
2801
- M as AceWidget,
2809
+ N as AceWidget,
2802
2810
  Ni as Application,
2803
2811
  Dt as Container,
2804
2812
  Li as Environment,
@@ -2807,7 +2815,7 @@ export {
2807
2815
  y as StorageCategory,
2808
2816
  Ti as StorageService,
2809
2817
  b as Trigger,
2810
- $i as WidgetComponent,
2818
+ _i as WidgetComponent,
2811
2819
  Oi as applicationContext,
2812
2820
  qi as bootstrap,
2813
2821
  Yi as createHttpClient