@telia-ace/widget-components-widget-header-flamingo 1.1.120-rc.3 → 1.1.120-rc.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-CkP5f2px.js")))};module.exports=r;
1
+ "use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-Pjy4bC3E.js")))};module.exports=r;
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const t = async (e) => {
2
- e.registerComponent("widget-header", import("./widget-header-BPrveym6.mjs"));
2
+ e.registerComponent("widget-header", import("./widget-header-KFs_Gfkt.mjs"));
3
3
  };
4
4
  export {
5
5
  t as default
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-widget-header-flamingo",
3
- "version": "1.1.120-rc.3",
3
+ "version": "1.1.120-rc.5",
4
4
  "dependencies": {
5
5
  "lit": "^3.0.2",
6
- "@telia-ace/widget-core-flamingo": "1.1.120-rc.3",
6
+ "@telia-ace/widget-core-flamingo": "1.1.120-rc.5",
7
7
  "@teliads/components": "^22.1.1",
8
8
  "@teliads/icons": "^8.4.0",
9
9
  "@lit-labs/motion": "^1.0.8",
@@ -21,22 +21,22 @@ function ss(i, t, e, s) {
21
21
  });
22
22
  }
23
23
  return new (e || (e = Promise))(function(r, o) {
24
- function a(u) {
24
+ function a(h) {
25
25
  try {
26
- c(s.next(u));
27
- } catch (h) {
28
- o(h);
26
+ c(s.next(h));
27
+ } catch (u) {
28
+ o(u);
29
29
  }
30
30
  }
31
- function l(u) {
31
+ function l(h) {
32
32
  try {
33
- c(s.throw(u));
34
- } catch (h) {
35
- o(h);
33
+ c(s.throw(h));
34
+ } catch (u) {
35
+ o(u);
36
36
  }
37
37
  }
38
- function c(u) {
39
- u.done ? r(u.value) : n(u.value).then(a, l);
38
+ function c(h) {
39
+ h.done ? r(h.value) : n(h.value).then(a, l);
40
40
  }
41
41
  c((s = s.apply(i, t || [])).next());
42
42
  });
@@ -50,8 +50,8 @@ function ri(i, t) {
50
50
  return this;
51
51
  }), o;
52
52
  function a(c) {
53
- return function(u) {
54
- return l([c, u]);
53
+ return function(h) {
54
+ return l([c, h]);
55
55
  };
56
56
  }
57
57
  function l(c) {
@@ -92,8 +92,8 @@ function ri(i, t) {
92
92
  continue;
93
93
  }
94
94
  c = t.call(i, e);
95
- } catch (u) {
96
- c = [6, u], n = 0;
95
+ } catch (h) {
96
+ c = [6, h], n = 0;
97
97
  } finally {
98
98
  s = r = 0;
99
99
  }
@@ -144,7 +144,7 @@ function ns(i, t, e) {
144
144
  }, n;
145
145
  function o(f) {
146
146
  return function(v) {
147
- return Promise.resolve(v).then(f, h);
147
+ return Promise.resolve(v).then(f, u);
148
148
  };
149
149
  }
150
150
  function a(f, v) {
@@ -162,12 +162,12 @@ function ns(i, t, e) {
162
162
  }
163
163
  }
164
164
  function c(f) {
165
- f.value instanceof q ? Promise.resolve(f.value.v).then(u, h) : d(r[0][2], f);
165
+ f.value instanceof q ? Promise.resolve(f.value.v).then(h, u) : d(r[0][2], f);
166
166
  }
167
- function u(f) {
167
+ function h(f) {
168
168
  l("next", f);
169
169
  }
170
- function h(f) {
170
+ function u(f) {
171
171
  l("throw", f);
172
172
  }
173
173
  function d(f, v) {
@@ -244,18 +244,18 @@ var Tt = function() {
244
244
  }
245
245
  else
246
246
  o.remove(this);
247
- var u = this.initialTeardown;
248
- if ($(u))
247
+ var h = this.initialTeardown;
248
+ if ($(h))
249
249
  try {
250
- u();
250
+ h();
251
251
  } catch (g) {
252
252
  r = g instanceof Nt ? g.errors : [g];
253
253
  }
254
- var h = this._finalizers;
255
- if (h) {
254
+ var u = this._finalizers;
255
+ if (u) {
256
256
  this._finalizers = null;
257
257
  try {
258
- for (var d = Z(h), f = d.next(); !f.done; f = d.next()) {
258
+ for (var d = Z(u), f = d.next(); !f.done; f = d.next()) {
259
259
  var v = f.value;
260
260
  try {
261
261
  _e(v);
@@ -339,7 +339,7 @@ var ie = function(i) {
339
339
  Q(t, i);
340
340
  function t(e) {
341
341
  var s = i.call(this) || this;
342
- return s.isStopped = !1, e ? (s.destination = e, li(e) && e.add(s)) : s.destination = us, s;
342
+ return s.isStopped = !1, e ? (s.destination = e, li(e) && e.add(s)) : s.destination = hs, s;
343
343
  }
344
344
  return t.create = function(e, s, n) {
345
345
  return new Xt(e, s, n);
@@ -415,7 +415,7 @@ function pt(i) {
415
415
  function cs(i) {
416
416
  throw i;
417
417
  }
418
- var us = {
418
+ var hs = {
419
419
  closed: !0,
420
420
  next: we,
421
421
  error: cs,
@@ -423,11 +423,11 @@ var us = {
423
423
  }, se = function() {
424
424
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
425
425
  }();
426
- function ui(i) {
426
+ function hi(i) {
427
427
  return i;
428
428
  }
429
- function hs(i) {
430
- return i.length === 0 ? ui : i.length === 1 ? i[0] : function(e) {
429
+ function us(i) {
430
+ return i.length === 0 ? hi : i.length === 1 ? i[0] : function(e) {
431
431
  return i.reduce(function(s, n) {
432
432
  return n(s);
433
433
  }, e);
@@ -476,7 +476,7 @@ var w = function() {
476
476
  }, i.prototype.pipe = function() {
477
477
  for (var t = [], e = 0; e < arguments.length; e++)
478
478
  t[e] = arguments[e];
479
- return hs(t)(this);
479
+ return us(t)(this);
480
480
  }, i.prototype.toPromise = function(t) {
481
481
  var e = this;
482
482
  return t = xe(t), new t(function(s, n) {
@@ -529,14 +529,14 @@ var gs = function(i) {
529
529
  return l.onFinalize = o, l.shouldUnsubscribe = a, l._next = s ? function(c) {
530
530
  try {
531
531
  s(c);
532
- } catch (u) {
533
- e.error(u);
532
+ } catch (h) {
533
+ e.error(h);
534
534
  }
535
535
  } : i.prototype._next, l._error = r ? function(c) {
536
536
  try {
537
537
  r(c);
538
- } catch (u) {
539
- e.error(u);
538
+ } catch (h) {
539
+ e.error(h);
540
540
  } finally {
541
541
  this.unsubscribe();
542
542
  }
@@ -659,7 +659,7 @@ var gs = function(i) {
659
659
  var s, n;
660
660
  return (n = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(e)) !== null && n !== void 0 ? n : ai;
661
661
  }, t;
662
- }(It), hi = function(i) {
662
+ }(It), ui = function(i) {
663
663
  Q(t, i);
664
664
  function t(e) {
665
665
  var s = i.call(this) || this;
@@ -976,14 +976,14 @@ function Us(i, t) {
976
976
  });
977
977
  }
978
978
  function Ms(i, t, e, s, n, r, o, a) {
979
- var l = [], c = 0, u = 0, h = !1, d = function() {
980
- h && !l.length && !c && t.complete();
979
+ var l = [], c = 0, h = 0, u = !1, d = function() {
980
+ u && !l.length && !c && t.complete();
981
981
  }, f = function(g) {
982
982
  return c < s ? v(g) : l.push(g);
983
983
  }, v = function(g) {
984
984
  c++;
985
985
  var ft = !1;
986
- J(e(g, u++)).subscribe(mt(t, function(tt) {
986
+ J(e(g, h++)).subscribe(mt(t, function(tt) {
987
987
  t.next(tt);
988
988
  }, function() {
989
989
  ft = !0;
@@ -1003,7 +1003,7 @@ function Ms(i, t, e, s, n, r, o, a) {
1003
1003
  }));
1004
1004
  };
1005
1005
  return i.subscribe(mt(t, f, function() {
1006
- h = !0, d();
1006
+ u = !0, d();
1007
1007
  })), function() {
1008
1008
  };
1009
1009
  }
@@ -1017,7 +1017,7 @@ function ki(i, t, e) {
1017
1017
  }));
1018
1018
  }
1019
1019
  function js(i) {
1020
- return i === void 0 && (i = 1 / 0), ki(ui, i);
1020
+ return i === void 0 && (i = 1 / 0), ki(hi, i);
1021
1021
  }
1022
1022
  function Ns() {
1023
1023
  for (var i = [], t = 0; t < arguments.length; t++)
@@ -1321,10 +1321,10 @@ const Qs = (i, t) => {
1321
1321
  let n, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = et;
1322
1322
  for (let a = 0; a < e; a++) {
1323
1323
  const l = i[a];
1324
- let c, u, h = -1, d = 0;
1325
- for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); ) d = o.lastIndex, o === et ? u[1] === "!--" ? o = Te : u[1] !== void 0 ? o = Pe : u[2] !== void 0 ? (Ti.test(u[2]) && (n = RegExp("</" + u[2], "g")), o = I) : u[3] !== void 0 && (o = I) : o === I ? u[0] === ">" ? (o = n ?? et, h = -1) : u[1] === void 0 ? h = -2 : (h = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? I : u[3] === '"' ? Le : Ie) : o === Le || o === Ie ? o = I : o === Te || o === Pe ? o = et : (o = I, n = void 0);
1324
+ let c, h, u = -1, d = 0;
1325
+ for (; d < l.length && (o.lastIndex = d, h = o.exec(l), h !== null); ) d = o.lastIndex, o === et ? h[1] === "!--" ? o = Te : h[1] !== void 0 ? o = Pe : h[2] !== void 0 ? (Ti.test(h[2]) && (n = RegExp("</" + h[2], "g")), o = I) : h[3] !== void 0 && (o = I) : o === I ? h[0] === ">" ? (o = n ?? et, u = -1) : h[1] === void 0 ? u = -2 : (u = o.lastIndex - h[2].length, c = h[1], o = h[3] === void 0 ? I : h[3] === '"' ? Le : Ie) : o === Le || o === Ie ? o = I : o === Te || o === Pe ? o = et : (o = I, n = void 0);
1326
1326
  const f = o === I && i[a + 1].startsWith("/>") ? " " : "";
1327
- r += o === et ? l + Zs : h >= 0 ? (s.push(c), l.slice(0, h) + Ei + l.slice(h) + O + f) : l + O + (h === -2 ? a : f);
1327
+ r += o === et ? l + Zs : u >= 0 ? (s.push(c), l.slice(0, u) + Ei + l.slice(u) + O + f) : l + O + (u === -2 ? a : f);
1328
1328
  }
1329
1329
  return [Pi(i, r + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
1330
1330
  };
@@ -1333,29 +1333,29 @@ let Qt = class Ii {
1333
1333
  let n;
1334
1334
  this.parts = [];
1335
1335
  let r = 0, o = 0;
1336
- const a = t.length - 1, l = this.parts, [c, u] = Qs(t, e);
1336
+ const a = t.length - 1, l = this.parts, [c, h] = Qs(t, e);
1337
1337
  if (this.el = Ii.createElement(c, s), R.currentNode = this.el.content, e === 2 || e === 3) {
1338
- const h = this.el.content.firstChild;
1339
- h.replaceWith(...h.childNodes);
1338
+ const u = this.el.content.firstChild;
1339
+ u.replaceWith(...u.childNodes);
1340
1340
  }
1341
1341
  for (; (n = R.nextNode()) !== null && l.length < a; ) {
1342
1342
  if (n.nodeType === 1) {
1343
- if (n.hasAttributes()) for (const h of n.getAttributeNames()) if (h.endsWith(Ei)) {
1344
- const d = u[o++], f = n.getAttribute(h).split(O), v = /([.?@])?(.*)/.exec(d);
1345
- l.push({ type: 1, index: r, name: v[2], strings: f, ctor: v[1] === "." ? Vs : v[1] === "?" ? tn : v[1] === "@" ? en : Lt }), n.removeAttribute(h);
1346
- } else h.startsWith(O) && (l.push({ type: 6, index: r }), n.removeAttribute(h));
1343
+ if (n.hasAttributes()) for (const u of n.getAttributeNames()) if (u.endsWith(Ei)) {
1344
+ const d = h[o++], f = n.getAttribute(u).split(O), v = /([.?@])?(.*)/.exec(d);
1345
+ l.push({ type: 1, index: r, name: v[2], strings: f, ctor: v[1] === "." ? Vs : v[1] === "?" ? tn : v[1] === "@" ? en : Lt }), n.removeAttribute(u);
1346
+ } else u.startsWith(O) && (l.push({ type: 6, index: r }), n.removeAttribute(u));
1347
1347
  if (Ti.test(n.tagName)) {
1348
- const h = n.textContent.split(O), d = h.length - 1;
1348
+ const u = n.textContent.split(O), d = u.length - 1;
1349
1349
  if (d > 0) {
1350
1350
  n.textContent = bt ? bt.emptyScript : "";
1351
- for (let f = 0; f < d; f++) n.append(h[f], rt()), R.nextNode(), l.push({ type: 2, index: ++r });
1352
- n.append(h[d], rt());
1351
+ for (let f = 0; f < d; f++) n.append(u[f], rt()), R.nextNode(), l.push({ type: 2, index: ++r });
1352
+ n.append(u[d], rt());
1353
1353
  }
1354
1354
  }
1355
1355
  } else if (n.nodeType === 8) if (n.data === Oi) l.push({ type: 2, index: r });
1356
1356
  else {
1357
- let h = -1;
1358
- for (; (h = n.data.indexOf(O, h + 1)) !== -1; ) l.push({ type: 7, index: r }), h += O.length - 1;
1357
+ let u = -1;
1358
+ for (; (u = n.data.indexOf(O, u + 1)) !== -1; ) l.push({ type: 7, index: r }), u += O.length - 1;
1359
1359
  }
1360
1360
  r++;
1361
1361
  }
@@ -1389,7 +1389,7 @@ class Js {
1389
1389
  for (; l !== void 0; ) {
1390
1390
  if (o === l.index) {
1391
1391
  let c;
1392
- l.type === 2 ? c = new ut(r, r.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (c = new sn(r, this, t)), this._$AV.push(c), l = s[++a];
1392
+ l.type === 2 ? c = new ht(r, r.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (c = new sn(r, this, t)), this._$AV.push(c), l = s[++a];
1393
1393
  }
1394
1394
  o !== (l == null ? void 0 : l.index) && (r = R.nextNode(), o++);
1395
1395
  }
@@ -1400,7 +1400,7 @@ class Js {
1400
1400
  for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
1401
1401
  }
1402
1402
  }
1403
- class ut {
1403
+ class ht {
1404
1404
  get _$AU() {
1405
1405
  var t;
1406
1406
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
@@ -1448,7 +1448,7 @@ class ut {
1448
1448
  ae(this._$AH) || (this._$AH = [], this._$AR());
1449
1449
  const e = this._$AH;
1450
1450
  let s, n = 0;
1451
- for (const r of t) n === e.length ? e.push(s = new ut(this.O(rt()), this.O(rt()), this, this.options)) : s = e[n], s._$AI(r), n++;
1451
+ for (const r of t) n === e.length ? e.push(s = new ht(this.O(rt()), this.O(rt()), this, this.options)) : s = e[n], s._$AI(r), n++;
1452
1452
  n < e.length && (this._$AR(s && s._$AB.nextSibling, n), e.length = n);
1453
1453
  }
1454
1454
  _$AR(t = this._$AA.nextSibling, e) {
@@ -1530,13 +1530,13 @@ class sn {
1530
1530
  }
1531
1531
  }
1532
1532
  const Ht = st.litHtmlPolyfillSupport;
1533
- Ht == null || Ht(Qt, ut), (st.litHtmlVersions ?? (st.litHtmlVersions = [])).push("3.3.0");
1533
+ Ht == null || Ht(Qt, ht), (st.litHtmlVersions ?? (st.litHtmlVersions = [])).push("3.3.0");
1534
1534
  const nn = (i, t, e) => {
1535
1535
  const s = (e == null ? void 0 : e.renderBefore) ?? t;
1536
1536
  let n = s._$litPart$;
1537
1537
  if (n === void 0) {
1538
1538
  const r = (e == null ? void 0 : e.renderBefore) ?? null;
1539
- s._$litPart$ = n = new ut(t.insertBefore(rt(), r), r, void 0, e ?? {});
1539
+ s._$litPart$ = n = new ht(t.insertBefore(rt(), r), r, void 0, e ?? {});
1540
1540
  }
1541
1541
  return n._$AI(i), n;
1542
1542
  };
@@ -1709,17 +1709,17 @@ const nt = (i, t) => {
1709
1709
  e.add(i), dn(t);
1710
1710
  }
1711
1711
  };
1712
- function un(i) {
1712
+ function hn(i) {
1713
1713
  this._$AN !== void 0 ? (wt(this), this._$AM = i, Ri(this)) : this._$AM = i;
1714
1714
  }
1715
- function hn(i, t = !1, e = 0) {
1715
+ function un(i, t = !1, e = 0) {
1716
1716
  const s = this._$AH, n = this._$AN;
1717
1717
  if (n !== void 0 && n.size !== 0) if (t) if (Array.isArray(s)) for (let r = e; r < s.length; r++) nt(s[r], !1), wt(s[r]);
1718
1718
  else s != null && (nt(s, !1), wt(s));
1719
1719
  else nt(this, i);
1720
1720
  }
1721
1721
  const dn = (i) => {
1722
- i.type == le.CHILD && (i._$AP ?? (i._$AP = hn), i._$AQ ?? (i._$AQ = un));
1722
+ i.type == le.CHILD && (i._$AP ?? (i._$AP = un), i._$AQ ?? (i._$AQ = hn));
1723
1723
  };
1724
1724
  class Ui extends Li {
1725
1725
  constructor() {
@@ -1907,13 +1907,13 @@ class $n extends Ui {
1907
1907
  let o = !1;
1908
1908
  const a = {};
1909
1909
  for (const l in e) {
1910
- const c = t[l], u = e[l];
1910
+ const c = t[l], h = e[l];
1911
1911
  if (l in Wt) {
1912
- const h = Wt[l];
1913
- if (c === void 0 || u === void 0) continue;
1914
- const d = h(c, u);
1912
+ const u = Wt[l];
1913
+ if (c === void 0 || h === void 0) continue;
1914
+ const d = u(c, h);
1915
1915
  d.transform !== void 0 && (a[l] = d.value, o = !0, n.transform = `${n.transform ?? ""} ${d.transform}`, d.overrideFrom !== void 0 && Object.assign(n, d.overrideFrom));
1916
- } else c !== u && c !== void 0 && u !== void 0 && (o = !0, n[l] = c, r[l] = u);
1916
+ } else c !== h && c !== void 0 && h !== void 0 && (o = !0, n[l] = c, r[l] = h);
1917
1917
  }
1918
1918
  return n.transformOrigin = r.transformOrigin = s ? "center center" : "top left", this.animatingProperties = a, o ? [n, r] : void 0;
1919
1919
  }
@@ -1972,7 +1972,7 @@ const ze = ce(class extends Li {
1972
1972
  }), C = (i, t, e) => {
1973
1973
  i && e.style.setProperty(t, i);
1974
1974
  }, ji = (i, t) => {
1975
- var e, s, n, r, o, a, l, c, u;
1975
+ var e, s, n, r, o, a, l, c, h;
1976
1976
  C((e = i.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), C(
1977
1977
  (s = i.colors) == null ? void 0 : s.textOnPrimaryBackground,
1978
1978
  "--text-on-primary-background",
@@ -2001,7 +2001,7 @@ const ze = ce(class extends Li {
2001
2001
  (c = i.colors) == null ? void 0 : c.interactiveTextOnPrimaryBackground,
2002
2002
  "--interactive-text-on-primary-background",
2003
2003
  t
2004
- ), C((u = i.colors) == null ? void 0 : u.focusColor, "--focus-color", t);
2004
+ ), C((h = i.colors) == null ? void 0 : h.focusColor, "--focus-color", t);
2005
2005
  };
2006
2006
  /**
2007
2007
  * @license
@@ -2038,14 +2038,14 @@ const qt = /* @__PURE__ */ new WeakMap(), St = ce(class extends Ui {
2038
2038
  this.rt(this.ct);
2039
2039
  }
2040
2040
  });
2041
- var wn = Object.defineProperty, ht = (i, t, e, s) => {
2041
+ var wn = Object.defineProperty, ut = (i, t, e, s) => {
2042
2042
  for (var n = void 0, r = i.length - 1, o; r >= 0; r--)
2043
2043
  (o = i[r]) && (n = o(t, e, n) || n);
2044
2044
  return n && wn(t, e, n), n;
2045
2045
  };
2046
2046
  const ve = class ve extends A {
2047
2047
  constructor() {
2048
- super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = xt(), this.widgetActive$ = new hi(!1), this.componentIsDestroyed$ = new It();
2048
+ super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = xt(), this.widgetActive$ = new ui(!1), this.componentIsDestroyed$ = new It();
2049
2049
  }
2050
2050
  async connectedCallback() {
2051
2051
  super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
@@ -2090,13 +2090,13 @@ const ve = class ve extends A {
2090
2090
  const s = (c = this.application) == null ? void 0 : c.triggerIcon;
2091
2091
  if (!s)
2092
2092
  return p;
2093
- const n = async (u) => bn, { type: r, content: o } = s;
2093
+ const n = async (h) => bn, { type: r, content: o } = s;
2094
2094
  switch (r) {
2095
2095
  case "Telia": {
2096
- const u = await n();
2097
- return u ? m`<telia-icon
2096
+ const h = await n();
2097
+ return h ? m`<telia-icon
2098
2098
  class="trigger-icon"
2099
- svg=${u.svg}
2099
+ svg=${h.svg}
2100
2100
  size="lg"
2101
2101
  ></telia-icon>` : p;
2102
2102
  }
@@ -2316,19 +2316,19 @@ ve.styles = [
2316
2316
  `
2317
2317
  ];
2318
2318
  let E = ve;
2319
- ht([
2319
+ ut([
2320
2320
  _({ attribute: !1 })
2321
2321
  ], E.prototype, "application");
2322
- ht([
2322
+ ut([
2323
2323
  x()
2324
2324
  ], E.prototype, "active");
2325
- ht([
2325
+ ut([
2326
2326
  x()
2327
2327
  ], E.prototype, "triggerVisible");
2328
- ht([
2328
+ ut([
2329
2329
  x()
2330
2330
  ], E.prototype, "loaded");
2331
- ht([
2331
+ ut([
2332
2332
  x()
2333
2333
  ], E.prototype, "icon");
2334
2334
  var xn = Object.defineProperty, L = (i, t, e, s) => {
@@ -2541,7 +2541,7 @@ var On = Object.defineProperty, Fi = (i, t, e, s) => {
2541
2541
  };
2542
2542
  const Tn = "application", me = class me extends A {
2543
2543
  constructor() {
2544
- super(...arguments), this.nodes = [], this.wrapperRef = xt(), this.fullscreen = !1, this.isReady = new hi(!1);
2544
+ super(...arguments), this.nodes = [], this.wrapperRef = xt(), this.fullscreen = !1, this.isReady = new ui(!1);
2545
2545
  }
2546
2546
  addChild(t) {
2547
2547
  t.parent = this, this.nodes.push(t);
@@ -2784,7 +2784,7 @@ const Ot = class Ot {
2784
2784
  };
2785
2785
  Ot.endpoint = "https://widgets.ace.teliacompany.net/api";
2786
2786
  let We = Ot;
2787
- var Pn = Object.defineProperty, ue = (i, t, e, s) => {
2787
+ var Pn = Object.defineProperty, he = (i, t, e, s) => {
2788
2788
  for (var n = void 0, r = i.length - 1, o; r >= 0; r--)
2789
2789
  (o = i[r]) && (n = o(t, e, n) || n);
2790
2790
  return n && Pn(t, e, n), n;
@@ -2829,13 +2829,13 @@ ye.styles = [
2829
2829
  `
2830
2830
  ];
2831
2831
  let X = ye;
2832
- ue([
2832
+ he([
2833
2833
  _({ attribute: !0 })
2834
2834
  ], X.prototype, "name");
2835
- ue([
2835
+ he([
2836
2836
  x()
2837
2837
  ], X.prototype, "widget");
2838
- ue([
2838
+ he([
2839
2839
  x()
2840
2840
  ], X.prototype, "status");
2841
2841
  customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", _t);
@@ -2988,7 +2988,7 @@ const z = {
2988
2988
  transformTagName: !1,
2989
2989
  attachStyles: !0
2990
2990
  };
2991
- let D, Bi, Rt, Hi = !1, At = !1, he = !1, b = !1, qe = null, Vt = !1;
2991
+ let D, Bi, Rt, Hi = !1, At = !1, ue = !1, b = !1, qe = null, Vt = !1;
2992
2992
  const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, zi = Ut.HTMLElement || class {
2993
2993
  }, y = {
2994
2994
  $flags$: 0,
@@ -3047,21 +3047,21 @@ const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, z
3047
3047
  s & 10 && (e["s-sc"] = r, e.classList.add(r + "-h"), s & 2 && e.classList.add(r + "-s")), n();
3048
3048
  }, Wi = (i, t) => "sc-" + (t && i.$flags$ & 32 ? i.$tagName$ + "-" + t : i.$tagName$), qn = (i) => yr.map((t) => t(i)).find((t) => !!t), Ze = {}, Gn = "http://www.w3.org/2000/svg", Yn = "http://www.w3.org/1999/xhtml", Zn = (i) => i != null, de = (i) => (i = typeof i, i === "object" || i === "function"), G = (i, t, ...e) => {
3049
3049
  let s = null, n = null, r = null, o = !1, a = !1, l = [];
3050
- const c = (h) => {
3051
- for (let d = 0; d < h.length; d++)
3052
- s = h[d], Array.isArray(s) ? c(s) : s != null && typeof s != "boolean" && ((o = typeof i != "function" && !de(s)) && (s = String(s)), o && a ? l[l.length - 1].$text$ += s : l.push(o ? kt(null, s) : s), a = o);
3050
+ const c = (u) => {
3051
+ for (let d = 0; d < u.length; d++)
3052
+ s = u[d], Array.isArray(s) ? c(s) : s != null && typeof s != "boolean" && ((o = typeof i != "function" && !de(s)) && (s = String(s)), o && a ? l[l.length - 1].$text$ += s : l.push(o ? kt(null, s) : s), a = o);
3053
3053
  };
3054
3054
  if (c(e), t) {
3055
3055
  t.key && (n = t.key), t.name && (r = t.name);
3056
3056
  {
3057
- const h = t.className || t.class;
3058
- h && (t.class = typeof h != "object" ? h : Object.keys(h).filter((d) => h[d]).join(" "));
3057
+ const u = t.className || t.class;
3058
+ u && (t.class = typeof u != "object" ? u : Object.keys(u).filter((d) => u[d]).join(" "));
3059
3059
  }
3060
3060
  }
3061
3061
  if (typeof i == "function")
3062
3062
  return i(t === null ? {} : t, l, Xn);
3063
- const u = kt(i, null);
3064
- return u.$attrs$ = t, l.length > 0 && (u.$children$ = l), u.$key$ = n, u.$name$ = r, u;
3063
+ const h = kt(i, null);
3064
+ return h.$attrs$ = t, l.length > 0 && (h.$children$ = l), h.$key$ = n, h.$name$ = r, h;
3065
3065
  }, kt = (i, t) => {
3066
3066
  const e = {
3067
3067
  $flags$: 0,
@@ -3092,8 +3092,8 @@ const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, z
3092
3092
  if (e !== s) {
3093
3093
  let o = ti(i, t), a = t.toLowerCase();
3094
3094
  if (t === "class") {
3095
- const l = i.classList, c = Qe(e), u = Qe(s);
3096
- l.remove(...c.filter((h) => h && !u.includes(h))), l.add(...u.filter((h) => h && !c.includes(h)));
3095
+ const l = i.classList, c = Qe(e), h = Qe(s);
3096
+ l.remove(...c.filter((u) => u && !h.includes(u))), l.add(...h.filter((u) => u && !c.includes(u)));
3097
3097
  } else if (t === "style") {
3098
3098
  for (const l in e)
3099
3099
  (!s || s[l] == null) && (l.includes("-") ? i.style.removeProperty(l) : i.style[l] = "");
@@ -3111,8 +3111,8 @@ const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, z
3111
3111
  if (i.tagName.includes("-"))
3112
3112
  i[t] = s;
3113
3113
  else {
3114
- let u = s ?? "";
3115
- t === "list" ? o = !1 : (e == null || i[t] != u) && (i[t] = u);
3114
+ let h = s ?? "";
3115
+ t === "list" ? o = !1 : (e == null || i[t] != h) && (i[t] = h);
3116
3116
  }
3117
3117
  } catch {
3118
3118
  }
@@ -3128,7 +3128,7 @@ const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, z
3128
3128
  Xe(n, s, r[s], o[s], e, t.$flags$);
3129
3129
  }, Ct = (i, t, e, s) => {
3130
3130
  let n = t.$children$[e], r = 0, o, a, l;
3131
- if (Hi || (he = !0, n.$tag$ === "slot" && (D && s.classList.add(D + "-s"), n.$flags$ |= n.$children$ ? (
3131
+ if (Hi || (ue = !0, n.$tag$ === "slot" && (D && s.classList.add(D + "-s"), n.$flags$ |= n.$children$ ? (
3132
3132
  // slot element has fallback content
3133
3133
  2
3134
3134
  ) : (
@@ -3150,7 +3150,7 @@ const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, z
3150
3150
  const e = i.childNodes;
3151
3151
  for (let s = e.length - 1; s >= 0; s--) {
3152
3152
  const n = e[s];
3153
- n["s-hn"] !== Rt && n["s-ol"] && (Zi(n).insertBefore(n, pe(n)), n["s-ol"].remove(), n["s-ol"] = void 0, he = !0), t && ct(n, t);
3153
+ n["s-hn"] !== Rt && n["s-ol"] && (Zi(n).insertBefore(n, pe(n)), n["s-ol"].remove(), n["s-ol"] = void 0, ue = !0), t && ct(n, t);
3154
3154
  }
3155
3155
  y.$flags$ &= -2;
3156
3156
  }, Gi = (i, t, e, s, n, r) => {
@@ -3161,24 +3161,24 @@ const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, z
3161
3161
  for (; t <= e; ++t)
3162
3162
  (s = i[t]) && (n = s.$elm$, Qi(s), At = !0, n["s-ol"] ? n["s-ol"].remove() : ct(n, !0), n.remove());
3163
3163
  }, Vn = (i, t, e, s) => {
3164
- let n = 0, r = 0, o = 0, a = 0, l = t.length - 1, c = t[0], u = t[l], h = s.length - 1, d = s[0], f = s[h], v, g;
3165
- for (; n <= l && r <= h; )
3164
+ let n = 0, r = 0, o = 0, a = 0, l = t.length - 1, c = t[0], h = t[l], u = s.length - 1, d = s[0], f = s[u], v, g;
3165
+ for (; n <= l && r <= u; )
3166
3166
  if (c == null)
3167
3167
  c = t[++n];
3168
- else if (u == null)
3169
- u = t[--l];
3168
+ else if (h == null)
3169
+ h = t[--l];
3170
3170
  else if (d == null)
3171
3171
  d = s[++r];
3172
3172
  else if (f == null)
3173
- f = s[--h];
3173
+ f = s[--u];
3174
3174
  else if (gt(c, d))
3175
3175
  W(c, d), c = t[++n], d = s[++r];
3176
- else if (gt(u, f))
3177
- W(u, f), u = t[--l], f = s[--h];
3176
+ else if (gt(h, f))
3177
+ W(h, f), h = t[--l], f = s[--u];
3178
3178
  else if (gt(c, f))
3179
- (c.$tag$ === "slot" || f.$tag$ === "slot") && ct(c.$elm$.parentNode, !1), W(c, f), i.insertBefore(c.$elm$, u.$elm$.nextSibling), c = t[++n], f = s[--h];
3180
- else if (gt(u, d))
3181
- (c.$tag$ === "slot" || f.$tag$ === "slot") && ct(u.$elm$.parentNode, !1), W(u, d), i.insertBefore(u.$elm$, c.$elm$), u = t[--l], d = s[++r];
3179
+ (c.$tag$ === "slot" || f.$tag$ === "slot") && ct(c.$elm$.parentNode, !1), W(c, f), i.insertBefore(c.$elm$, h.$elm$.nextSibling), c = t[++n], f = s[--u];
3180
+ else if (gt(h, d))
3181
+ (c.$tag$ === "slot" || f.$tag$ === "slot") && ct(h.$elm$.parentNode, !1), W(h, d), i.insertBefore(h.$elm$, c.$elm$), h = t[--l], d = s[++r];
3182
3182
  else {
3183
3183
  for (o = -1, a = n; a <= l; ++a)
3184
3184
  if (t[a] && t[a].$key$ !== null && t[a].$key$ === d.$key$) {
@@ -3187,7 +3187,7 @@ const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, z
3187
3187
  }
3188
3188
  o >= 0 ? (g = t[o], g.$tag$ !== d.$tag$ ? v = Ct(t && t[r], e, o, i) : (W(g, d), t[o] = void 0, v = g.$elm$), d = s[++r]) : (v = Ct(t && t[r], e, r, i), d = s[++r]), v && Zi(c.$elm$).insertBefore(v, pe(c.$elm$));
3189
3189
  }
3190
- n > l ? Gi(i, s[h + 1] == null ? null : s[h + 1].$elm$, e, s, r, h) : r > h && Yi(t, n, l);
3190
+ n > l ? Gi(i, s[u + 1] == null ? null : s[u + 1].$elm$, e, s, r, u) : r > u && Yi(t, n, l);
3191
3191
  }, gt = (i, t) => i.$tag$ === t.$tag$ ? i.$tag$ === "slot" ? i.$name$ === t.$name$ : i.$key$ === t.$key$ : !1, pe = (i) => i && i["s-ol"] || i, Zi = (i) => (i["s-ol"] ? i["s-ol"] : i).parentNode, W = (i, t) => {
3192
3192
  const e = t.$elm$ = i.$elm$, s = i.$children$, n = t.$children$, r = t.$tag$, o = t.$text$;
3193
3193
  let a;
@@ -3215,12 +3215,12 @@ const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, z
3215
3215
  for (; a < c; a++) {
3216
3216
  if (t = l[a], t["s-sr"] && (e = t["s-cr"]) && e.parentNode)
3217
3217
  for (s = e.parentNode.childNodes, n = t["s-sn"], o = s.length - 1; o >= 0; o--)
3218
- e = s[o], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== t["s-hn"] && (Je(e, n) ? (r = S.find((u) => u.$nodeToRelocate$ === e), At = !0, e["s-sn"] = e["s-sn"] || n, r ? r.$slotRefNode$ = t : S.push({
3218
+ e = s[o], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== t["s-hn"] && (Je(e, n) ? (r = S.find((h) => h.$nodeToRelocate$ === e), At = !0, e["s-sn"] = e["s-sn"] || n, r ? r.$slotRefNode$ = t : S.push({
3219
3219
  $slotRefNode$: t,
3220
3220
  $nodeToRelocate$: e
3221
- }), e["s-sr"] && S.map((u) => {
3222
- Je(u.$nodeToRelocate$, e["s-sn"]) && (r = S.find((h) => h.$nodeToRelocate$ === e), r && !u.$slotRefNode$ && (u.$slotRefNode$ = r.$slotRefNode$));
3223
- })) : S.some((u) => u.$nodeToRelocate$ === e) || S.push({
3221
+ }), e["s-sr"] && S.map((h) => {
3222
+ Je(h.$nodeToRelocate$, e["s-sn"]) && (r = S.find((u) => u.$nodeToRelocate$ === e), r && !h.$slotRefNode$ && (h.$slotRefNode$ = r.$slotRefNode$));
3223
+ })) : S.some((h) => h.$nodeToRelocate$ === e) || S.push({
3224
3224
  $nodeToRelocate$: e
3225
3225
  }));
3226
3226
  t.nodeType === 1 && Xi(t);
@@ -3231,19 +3231,19 @@ const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, z
3231
3231
  const e = i.$hostElement$, s = i.$cmpMeta$, n = i.$vnode$ || kt(null, null), r = Kn(t) ? t : G(null, null, t);
3232
3232
  Rt = e.tagName, s.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = e[o])), r.$tag$ = null, r.$flags$ |= 4, i.$vnode$ = r, r.$elm$ = n.$elm$ = e.shadowRoot || e, D = e["s-sc"], Bi = e["s-cr"], Hi = (s.$flags$ & 1) !== 0, At = !1, W(n, r);
3233
3233
  {
3234
- if (y.$flags$ |= 1, he) {
3234
+ if (y.$flags$ |= 1, ue) {
3235
3235
  Xi(r.$elm$);
3236
- let o, a, l, c, u, h, d = 0;
3236
+ let o, a, l, c, h, u, d = 0;
3237
3237
  for (; d < S.length; d++)
3238
3238
  o = S[d], a = o.$nodeToRelocate$, a["s-ol"] || (l = k.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
3239
3239
  for (d = 0; d < S.length; d++)
3240
3240
  if (o = S[d], a = o.$nodeToRelocate$, o.$slotRefNode$) {
3241
- for (c = o.$slotRefNode$.parentNode, u = o.$slotRefNode$.nextSibling, l = a["s-ol"]; l = l.previousSibling; )
3242
- if (h = l["s-nr"], h && h["s-sn"] === a["s-sn"] && c === h.parentNode && (h = h.nextSibling, !h || !h["s-nr"])) {
3243
- u = h;
3241
+ for (c = o.$slotRefNode$.parentNode, h = o.$slotRefNode$.nextSibling, l = a["s-ol"]; l = l.previousSibling; )
3242
+ if (u = l["s-nr"], u && u["s-sn"] === a["s-sn"] && c === u.parentNode && (u = u.nextSibling, !u || !u["s-nr"])) {
3243
+ h = u;
3244
3244
  break;
3245
3245
  }
3246
- (!u && c !== a.parentNode || a.nextSibling !== u) && a !== u && (!a["s-hn"] && a["s-ol"] && (a["s-hn"] = a["s-ol"].parentNode.nodeName), c.insertBefore(a, u));
3246
+ (!h && c !== a.parentNode || a.nextSibling !== h) && a !== h && (!a["s-hn"] && a["s-ol"] && (a["s-hn"] = a["s-ol"].parentNode.nodeName), c.insertBefore(a, h));
3247
3247
  } else
3248
3248
  a.nodeType === 1 && (a.hidden = !0);
3249
3249
  }
@@ -3289,7 +3289,7 @@ const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, z
3289
3289
  } catch (s) {
3290
3290
  dt(s);
3291
3291
  }
3292
- }, Ve = (i, t) => i && i.then ? i.then(t) : t(), cr = (i, t) => i != null && !de(i) ? t & 4 ? i === "false" ? !1 : i === "" || !!i : t & 2 ? parseFloat(i) : t & 1 ? String(i) : i : i, ur = (i, t) => Mt(i).$instanceValues$.get(t), hr = (i, t, e, s) => {
3292
+ }, Ve = (i, t) => i && i.then ? i.then(t) : t(), cr = (i, t) => i != null && !de(i) ? t & 4 ? i === "false" ? !1 : i === "" || !!i : t & 2 ? parseFloat(i) : t & 1 ? String(i) : i : i, hr = (i, t) => Mt(i).$instanceValues$.get(t), ur = (i, t, e, s) => {
3293
3293
  const n = Mt(i), r = i, o = n.$instanceValues$.get(t), a = n.$flags$, l = r;
3294
3294
  e = cr(e, s.$members$[t][0]);
3295
3295
  const c = Number.isNaN(o) && Number.isNaN(e);
@@ -3297,8 +3297,8 @@ const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, z
3297
3297
  n.$instanceValues$.set(t, e);
3298
3298
  {
3299
3299
  if (s.$watchers$ && a & 128) {
3300
- const h = s.$watchers$[t];
3301
- h && h.map((d) => {
3300
+ const u = s.$watchers$[t];
3301
+ u && u.map((d) => {
3302
3302
  try {
3303
3303
  l[d](e, o, t);
3304
3304
  } catch (f) {
@@ -3320,10 +3320,10 @@ const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, z
3320
3320
  s.map(([r, [o]]) => {
3321
3321
  (o & 31 || o & 32) && Object.defineProperty(n, r, {
3322
3322
  get() {
3323
- return ur(this, r);
3323
+ return hr(this, r);
3324
3324
  },
3325
3325
  set(a) {
3326
- hr(this, r, a, t);
3326
+ ur(this, r, a, t);
3327
3327
  },
3328
3328
  configurable: !0,
3329
3329
  enumerable: !0
@@ -3544,7 +3544,7 @@ const si = Ni(A), be = class be extends si {
3544
3544
  constructor() {
3545
3545
  super(...arguments), this.optionsIsVisible = !1, this.authState = "non-authenticated", this.UserName = "", this.authUrl = "", this.provider = void 0, this.idref = void 0, this.options = new Un(this), this.optionsRef = xt(), this.optionsTriggerRef = xt(), this._onClickOutside = (t) => {
3546
3546
  !this.optionsTriggerRef.value || !this.optionsRef.value || t.composedPath().includes(this.optionsTriggerRef.value) || t.composedPath().includes(this.optionsRef.value) || (this.optionsIsVisible = !1);
3547
- };
3547
+ }, this.shouldUseAuth = !1;
3548
3548
  }
3549
3549
  addOption(t) {
3550
3550
  return this.options.addOption(t);
@@ -3583,12 +3583,14 @@ const si = Ni(A), be = class be extends si {
3583
3583
  _showLogoutForm() {
3584
3584
  this.provider.showLogoutConfirmDialog();
3585
3585
  }
3586
- _logout() {
3587
- this.application.storage.removeItem("auth"), this.authState = "non-authenticated", this.UserName = "", this.authUrl = "";
3586
+ _logout(t = "non-authenticated") {
3587
+ this.authState = t, this.application.storage.removeItem("auth"), this.UserName = "", this.authUrl = "";
3588
3588
  }
3589
3589
  render() {
3590
- var l, c, u, h, d;
3591
- const t = this.application.branding(), e = (l = t == null ? void 0 : t.graphics) == null ? void 0 : l.logotype, s = this.application.texts, n = s.get("widget-header.header", "ACE Widget"), r = this.application.settings.components.conversation, o = (u = (c = this.application.settings) == null ? void 0 : c.auth) == null ? void 0 : u.shouldUseAuth, a = (d = (h = r == null ? void 0 : r.properties) == null ? void 0 : h.chat) == null ? void 0 : d.isThirdPartyWidget;
3590
+ var a, l, c, h, u;
3591
+ const t = this.application.branding(), e = (a = t == null ? void 0 : t.graphics) == null ? void 0 : a.logotype, s = this.application.texts, n = s.get("widget-header.header", "ACE Widget"), r = this.application.settings.components.conversation;
3592
+ this.shouldUseAuth = (c = (l = this.application.settings) == null ? void 0 : l.auth) == null ? void 0 : c.shouldUseAuth;
3593
+ const o = (u = (h = r == null ? void 0 : r.properties) == null ? void 0 : h.chat) == null ? void 0 : u.isThirdPartyWidget;
3592
3594
  return m` <div class="widget-header">
3593
3595
  ${e ? m` <img
3594
3596
  src=${e}
@@ -3625,7 +3627,7 @@ const si = Ni(A), be = class be extends si {
3625
3627
  <h3>
3626
3628
  ${s.getOrFallback("widget-header.OptionsLabel", "Options")}
3627
3629
  </h3>
3628
- ${o ? m`<div class="options-menu__auth-container">
3630
+ ${this.shouldUseAuth && this.authState !== "chat-ended" ? m`<div class="options-menu__auth-container">
3629
3631
  <p class="options-menu__auth-helper-text">
3630
3632
  ${s.getOrFallback(
3631
3633
  "widget-header.authentication-text",
@@ -3670,23 +3672,23 @@ const si = Ni(A), be = class be extends si {
3670
3672
  </div>`
3671
3673
  )}
3672
3674
  </div>` : p}
3673
- ${this.options.options.map((f) => m`<button
3675
+ ${this.options.options.map((d) => m`<button
3674
3676
  class="options-menu__item"
3675
- data-testid="${f.key}"
3677
+ data-testid="${d.key}"
3676
3678
  @click=${() => {
3677
- f.closeOnClick && this._onToggleOptionsMenuClick(), f.onClick(), this.requestUpdate();
3679
+ d.closeOnClick && this._onToggleOptionsMenuClick(), d.onClick(), this.requestUpdate();
3678
3680
  }}
3679
- ?disabled="${!f.enabled}"
3681
+ ?disabled="${!d.enabled}"
3680
3682
  >
3681
- ${f.icon ? m`<telia-icon
3683
+ ${d.icon ? m`<telia-icon
3682
3684
  class="option-icon"
3683
- svg=${f.icon}
3685
+ svg=${d.icon}
3684
3686
  size="sm"
3685
3687
  ></telia-icon>` : p}
3686
- ${f.label}
3688
+ ${d.label}
3687
3689
  </button>`)}
3688
3690
  </div>` : p}
3689
- ${a ? p : m`<button
3691
+ ${o ? p : m`<button
3690
3692
  @click=${this._onMinimizeClick}
3691
3693
  class="widget-header__action-button"
3692
3694
  title=${s.getOrFallback("widget-header.minimize", "Minimize")}
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Gt=function(i,t){return Gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])},Gt(i,t)};function Q(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Gt(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ss(i,t,e,s){function n(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function a(u){try{c(s.next(u))}catch(h){o(h)}}function l(u){try{c(s.throw(u))}catch(h){o(h)}}function c(u){u.done?r(u.value):n(u.value).then(a,l)}c((s=s.apply(i,t||[])).next())})}function ri(i,t){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},s,n,r,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(s)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(e=0)),e;)try{if(s=1,n&&(r=c[0]&2?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,n=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){e.label=c[1];break}if(c[0]===6&&e.label<r[1]){e.label=r[1],r=c;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(c);break}r[2]&&e.ops.pop(),e.trys.pop();continue}c=t.call(i,e)}catch(u){c=[6,u],n=0}finally{s=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Z(i){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&i[t],s=0;if(e)return e.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yt(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var s=e.call(i),n,r=[],o;try{for(;(t===void 0||t-- >0)&&!(n=s.next()).done;)r.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(e=s.return)&&e.call(s)}finally{if(o)throw o.error}}return r}function Zt(i,t,e){if(e||arguments.length===2)for(var s=0,n=t.length,r;s<n;s++)(r||!(s in t))&&(r||(r=Array.prototype.slice.call(t,0,s)),r[s]=t[s]);return i.concat(r||Array.prototype.slice.call(t))}function q(i){return this instanceof q?(this.v=i,this):new q(i)}function ns(i,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=e.apply(i,t||[]),n,r=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),n[Symbol.asyncIterator]=function(){return this},n;function o(f){return function(v){return Promise.resolve(v).then(f,h)}}function a(f,v){s[f]&&(n[f]=function(g){return new Promise(function(ft,tt){r.push([f,g,ft,tt])>1||l(f,g)})},v&&(n[f]=v(n[f])))}function l(f,v){try{c(s[f](v))}catch(g){d(r[0][3],g)}}function c(f){f.value instanceof q?Promise.resolve(f.value.v).then(u,h):d(r[0][2],f)}function u(f){l("next",f)}function h(f){l("throw",f)}function d(f,v){f(v),r.shift(),r.length&&l(r[0][0],r[0][1])}}function rs(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=i[Symbol.asyncIterator],e;return t?t.call(i):(i=typeof Z=="function"?Z(i):i[Symbol.iterator](),e={},s("next"),s("throw"),s("return"),e[Symbol.asyncIterator]=function(){return this},e);function s(r){e[r]=i[r]&&function(o){return new Promise(function(a,l){o=i[r](o),n(a,l,o.done,o.value)})}}function n(r,o,a,l){Promise.resolve(l).then(function(c){r({value:c,done:a})},o)}}function $(i){return typeof i=="function"}function oi(i){var t=function(s){Error.call(s),s.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Nt=oi(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Gt=function(i,t){return Gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])},Gt(i,t)};function Q(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Gt(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ss(i,t,e,s){function n(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function a(h){try{c(s.next(h))}catch(u){o(u)}}function l(h){try{c(s.throw(h))}catch(u){o(u)}}function c(h){h.done?r(h.value):n(h.value).then(a,l)}c((s=s.apply(i,t||[])).next())})}function ri(i,t){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},s,n,r,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(h){return l([c,h])}}function l(c){if(s)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(e=0)),e;)try{if(s=1,n&&(r=c[0]&2?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,n=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){e.label=c[1];break}if(c[0]===6&&e.label<r[1]){e.label=r[1],r=c;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(c);break}r[2]&&e.ops.pop(),e.trys.pop();continue}c=t.call(i,e)}catch(h){c=[6,h],n=0}finally{s=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Z(i){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&i[t],s=0;if(e)return e.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yt(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var s=e.call(i),n,r=[],o;try{for(;(t===void 0||t-- >0)&&!(n=s.next()).done;)r.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(e=s.return)&&e.call(s)}finally{if(o)throw o.error}}return r}function Zt(i,t,e){if(e||arguments.length===2)for(var s=0,n=t.length,r;s<n;s++)(r||!(s in t))&&(r||(r=Array.prototype.slice.call(t,0,s)),r[s]=t[s]);return i.concat(r||Array.prototype.slice.call(t))}function q(i){return this instanceof q?(this.v=i,this):new q(i)}function ns(i,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=e.apply(i,t||[]),n,r=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),n[Symbol.asyncIterator]=function(){return this},n;function o(f){return function(v){return Promise.resolve(v).then(f,u)}}function a(f,v){s[f]&&(n[f]=function(g){return new Promise(function(ft,tt){r.push([f,g,ft,tt])>1||l(f,g)})},v&&(n[f]=v(n[f])))}function l(f,v){try{c(s[f](v))}catch(g){d(r[0][3],g)}}function c(f){f.value instanceof q?Promise.resolve(f.value.v).then(h,u):d(r[0][2],f)}function h(f){l("next",f)}function u(f){l("throw",f)}function d(f,v){f(v),r.shift(),r.length&&l(r[0][0],r[0][1])}}function rs(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=i[Symbol.asyncIterator],e;return t?t.call(i):(i=typeof Z=="function"?Z(i):i[Symbol.iterator](),e={},s("next"),s("throw"),s("return"),e[Symbol.asyncIterator]=function(){return this},e);function s(r){e[r]=i[r]&&function(o){return new Promise(function(a,l){o=i[r](o),n(a,l,o.done,o.value)})}}function n(r,o,a,l){Promise.resolve(l).then(function(c){r({value:c,done:a})},o)}}function $(i){return typeof i=="function"}function oi(i){var t=function(s){Error.call(s),s.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Nt=oi(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
2
2
  `+e.map(function(s,n){return n+1+") "+s.toString()}).join(`
3
- `):"",this.name="UnsubscriptionError",this.errors=e}});function Kt(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var Tt=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,s,n,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=Z(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if($(u))try{u()}catch(g){r=g instanceof Nt?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=Z(h),f=d.next();!f.done;f=d.next()){var v=f.value;try{_e(v)}catch(g){r=r??[],g instanceof Nt?r=Zt(Zt([],Yt(r)),Yt(g.errors)):r.push(g)}}}catch(g){s={error:g}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(s)throw s.error}}}if(r)throw new Nt(r)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)_e(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Kt(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&Kt(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),ai=Tt.EMPTY;function li(i){return i instanceof Tt||i&&"closed"in i&&$(i.remove)&&$(i.add)&&$(i.unsubscribe)}function _e(i){$(i)?i():i.unsubscribe()}var os={Promise:void 0},as={setTimeout:function(i,t){for(var e=[],s=2;s<arguments.length;s++)e[s-2]=arguments[s];return setTimeout.apply(void 0,Zt([i,t],Yt(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function ci(i){as.setTimeout(function(){throw i})}function we(){}function vt(i){i()}var ie=function(i){Q(t,i);function t(e){var s=i.call(this)||this;return s.isStopped=!1,e?(s.destination=e,li(e)&&e.add(s)):s.destination=us,s}return t.create=function(e,s,n){return new Xt(e,s,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Tt),ls=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(s){pt(s)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(s){pt(s)}else pt(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){pt(e)}},i}(),Xt=function(i){Q(t,i);function t(e,s,n){var r=i.call(this)||this,o;return $(e)||!e?o={next:e??void 0,error:s??void 0,complete:n??void 0}:o=e,r.destination=new ls(o),r}return t}(ie);function pt(i){ci(i)}function cs(i){throw i}var us={closed:!0,next:we,error:cs,complete:we},se=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ui(i){return i}function hs(i){return i.length===0?ui:i.length===1?i[0]:function(e){return i.reduce(function(s,n){return n(s)},e)}}var w=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,s){var n=this,r=fs(t)?t:new Xt(t,e,s);return vt(function(){var o=n,a=o.operator,l=o.source;r.add(a?a.call(r,l):l?n._subscribe(r):n._trySubscribe(r))}),r},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var s=this;return e=xe(e),new e(function(n,r){var o=new Xt({next:function(a){try{t(a)}catch(l){r(l),o.unsubscribe()}},error:r,complete:n});s.subscribe(o)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[se]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return hs(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=xe(t),new t(function(s,n){var r;e.subscribe(function(o){return r=o},function(o){return n(o)},function(){return s(r)})})},i.create=function(t){return new i(t)},i}();function xe(i){var t;return(t=i??os.Promise)!==null&&t!==void 0?t:Promise}function ds(i){return i&&$(i.next)&&$(i.error)&&$(i.complete)}function fs(i){return i&&i instanceof ie||ds(i)&&li(i)}function ps(i){return $(i==null?void 0:i.lift)}function Pt(i){return function(t){if(ps(t))return t.lift(function(e){try{return i(e,this)}catch(s){this.error(s)}});throw new TypeError("Unable to lift unknown Observable type")}}function mt(i,t,e,s,n){return new gs(i,t,e,s,n)}var gs=function(i){Q(t,i);function t(e,s,n,r,o,a){var l=i.call(this,e)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=s?function(c){try{s(c)}catch(u){e.error(u)}}:i.prototype._next,l._error=r?function(c){try{r(c)}catch(u){e.error(u)}finally{this.unsubscribe()}}:i.prototype._error,l._complete=n?function(){try{n()}catch(c){e.error(c)}finally{this.unsubscribe()}}:i.prototype._complete,l}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var s=this.closed;i.prototype.unsubscribe.call(this),!s&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t}(ie),vs=oi(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),It=function(i){Q(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var s=new Se(this,this);return s.operator=e,s},t.prototype._throwIfClosed=function(){if(this.closed)throw new vs},t.prototype.next=function(e){var s=this;vt(function(){var n,r;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var o=Z(s.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(e)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var s=this;vt(function(){if(s._throwIfClosed(),!s.isStopped){s.hasError=s.isStopped=!0,s.thrownError=e;for(var n=s.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;vt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var s=e.observers;s.length;)s.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var s=this,n=this,r=n.hasError,o=n.isStopped,a=n.observers;return r||o?ai:(this.currentObservers=null,a.push(e),new Tt(function(){s.currentObservers=null,Kt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var s=this,n=s.hasError,r=s.thrownError,o=s.isStopped;n?e.error(r):o&&e.complete()},t.prototype.asObservable=function(){var e=new w;return e.source=this,e},t.create=function(e,s){return new Se(e,s)},t}(w),Se=function(i){Q(t,i);function t(e,s){var n=i.call(this)||this;return n.destination=e,n.source=s,n}return t.prototype.next=function(e){var s,n;(n=(s=this.destination)===null||s===void 0?void 0:s.next)===null||n===void 0||n.call(s,e)},t.prototype.error=function(e){var s,n;(n=(s=this.destination)===null||s===void 0?void 0:s.error)===null||n===void 0||n.call(s,e)},t.prototype.complete=function(){var e,s;(s=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||s===void 0||s.call(e)},t.prototype._subscribe=function(e){var s,n;return(n=(s=this.source)===null||s===void 0?void 0:s.subscribe(e))!==null&&n!==void 0?n:ai},t}(It),hi=function(i){Q(t,i);function t(e){var s=i.call(this)||this;return s._value=e,s}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var s=i.prototype._subscribe.call(this,e);return!s.closed&&e.next(this._value),s},t.prototype.getValue=function(){var e=this,s=e.hasError,n=e.thrownError,r=e._value;if(s)throw n;return this._throwIfClosed(),r},t.prototype.next=function(e){i.prototype.next.call(this,this._value=e)},t}(It),$s=new w(function(i){return i.complete()});function ms(i){return i&&$(i.schedule)}function di(i){return i[i.length-1]}function ys(i){return ms(di(i))?i.pop():void 0}function bs(i,t){return typeof di(i)=="number"?i.pop():t}var fi=function(i){return i&&typeof i.length=="number"&&typeof i!="function"};function pi(i){return $(i==null?void 0:i.then)}function gi(i){return $(i[se])}function vi(i){return Symbol.asyncIterator&&$(i==null?void 0:i[Symbol.asyncIterator])}function $i(i){return new TypeError("You provided "+(i!==null&&typeof i=="object"?"an invalid object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function _s(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var mi=_s();function yi(i){return $(i==null?void 0:i[mi])}function bi(i){return ns(this,arguments,function(){var e,s,n,r;return ri(this,function(o){switch(o.label){case 0:e=i.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,q(e.read())];case 3:return s=o.sent(),n=s.value,r=s.done,r?[4,q(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,q(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function _i(i){return $(i==null?void 0:i.getReader)}function J(i){if(i instanceof w)return i;if(i!=null){if(gi(i))return ws(i);if(fi(i))return xs(i);if(pi(i))return Ss(i);if(vi(i))return wi(i);if(yi(i))return As(i);if(_i(i))return ks(i)}throw $i(i)}function ws(i){return new w(function(t){var e=i[se]();if($(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function xs(i){return new w(function(t){for(var e=0;e<i.length&&!t.closed;e++)t.next(i[e]);t.complete()})}function Ss(i){return new w(function(t){i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,ci)})}function As(i){return new w(function(t){var e,s;try{for(var n=Z(i),r=n.next();!r.done;r=n.next()){var o=r.value;if(t.next(o),t.closed)return}}catch(a){e={error:a}}finally{try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(e)throw e.error}}t.complete()})}function wi(i){return new w(function(t){Cs(i,t).catch(function(e){return t.error(e)})})}function ks(i){return wi(bi(i))}function Cs(i,t){var e,s,n,r;return ss(this,void 0,void 0,function(){var o,a;return ri(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),e=rs(i),l.label=1;case 1:return[4,e.next()];case 2:if(s=l.sent(),!!s.done)return[3,4];if(o=s.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),n={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),s&&!s.done&&(r=e.return)?[4,r.call(e)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function U(i,t,e,s,n){s===void 0&&(s=0),n===void 0&&(n=!1);var r=t.schedule(function(){e(),n?i.add(this.schedule(null,s)):this.unsubscribe()},s);if(i.add(r),!n)return r}function xi(i,t){return t===void 0&&(t=0),Pt(function(e,s){e.subscribe(mt(s,function(n){return U(s,i,function(){return s.next(n)},t)},function(){return U(s,i,function(){return s.complete()},t)},function(n){return U(s,i,function(){return s.error(n)},t)}))})}function Si(i,t){return t===void 0&&(t=0),Pt(function(e,s){s.add(i.schedule(function(){return e.subscribe(s)},t))})}function Es(i,t){return J(i).pipe(Si(t),xi(t))}function Os(i,t){return J(i).pipe(Si(t),xi(t))}function Ts(i,t){return new w(function(e){var s=0;return t.schedule(function(){s===i.length?e.complete():(e.next(i[s++]),e.closed||this.schedule())})})}function Ps(i,t){return new w(function(e){var s;return U(e,t,function(){s=i[mi](),U(e,t,function(){var n,r,o;try{n=s.next(),r=n.value,o=n.done}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),function(){return $(s==null?void 0:s.return)&&s.return()}})}function Ai(i,t){if(!i)throw new Error("Iterable cannot be null");return new w(function(e){U(e,t,function(){var s=i[Symbol.asyncIterator]();U(e,t,function(){s.next().then(function(n){n.done?e.complete():e.next(n.value)})},0,!0)})})}function Is(i,t){return Ai(bi(i),t)}function Ls(i,t){if(i!=null){if(gi(i))return Es(i,t);if(fi(i))return Ts(i,t);if(pi(i))return Os(i,t);if(vi(i))return Ai(i,t);if(yi(i))return Ps(i,t);if(_i(i))return Is(i,t)}throw $i(i)}function Rs(i,t){return t?Ls(i,t):J(i)}function Us(i,t){return Pt(function(e,s){var n=0;e.subscribe(mt(s,function(r){s.next(i.call(t,r,n++))}))})}function Ms(i,t,e,s,n,r,o,a){var l=[],c=0,u=0,h=!1,d=function(){h&&!l.length&&!c&&t.complete()},f=function(g){return c<s?v(g):l.push(g)},v=function(g){c++;var ft=!1;J(e(g,u++)).subscribe(mt(t,function(tt){t.next(tt)},function(){ft=!0},void 0,function(){if(ft)try{c--;for(var tt=function(){var jt=l.shift();o||v(jt)};l.length&&c<s;)tt();d()}catch(jt){t.error(jt)}}))};return i.subscribe(mt(t,f,function(){h=!0,d()})),function(){}}function ki(i,t,e){return e===void 0&&(e=1/0),$(t)?ki(function(s,n){return Us(function(r,o){return t(s,r,n,o)})(J(i(s,n)))},e):(typeof t=="number"&&(e=t),Pt(function(s,n){return Ms(s,n,i,e)}))}function js(i){return i===void 0&&(i=1/0),ki(ui,i)}function Ns(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];var e=ys(i),s=bs(i,1/0),n=i;return n.length?n.length===1?J(n[0]):js(s)(Rs(n,e)):$s}/**
3
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function Kt(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var Tt=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,s,n,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=Z(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var h=this.initialTeardown;if($(h))try{h()}catch(g){r=g instanceof Nt?g.errors:[g]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var d=Z(u),f=d.next();!f.done;f=d.next()){var v=f.value;try{_e(v)}catch(g){r=r??[],g instanceof Nt?r=Zt(Zt([],Yt(r)),Yt(g.errors)):r.push(g)}}}catch(g){s={error:g}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(s)throw s.error}}}if(r)throw new Nt(r)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)_e(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Kt(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&Kt(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),ai=Tt.EMPTY;function li(i){return i instanceof Tt||i&&"closed"in i&&$(i.remove)&&$(i.add)&&$(i.unsubscribe)}function _e(i){$(i)?i():i.unsubscribe()}var os={Promise:void 0},as={setTimeout:function(i,t){for(var e=[],s=2;s<arguments.length;s++)e[s-2]=arguments[s];return setTimeout.apply(void 0,Zt([i,t],Yt(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function ci(i){as.setTimeout(function(){throw i})}function we(){}function vt(i){i()}var ie=function(i){Q(t,i);function t(e){var s=i.call(this)||this;return s.isStopped=!1,e?(s.destination=e,li(e)&&e.add(s)):s.destination=hs,s}return t.create=function(e,s,n){return new Xt(e,s,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Tt),ls=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(s){pt(s)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(s){pt(s)}else pt(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){pt(e)}},i}(),Xt=function(i){Q(t,i);function t(e,s,n){var r=i.call(this)||this,o;return $(e)||!e?o={next:e??void 0,error:s??void 0,complete:n??void 0}:o=e,r.destination=new ls(o),r}return t}(ie);function pt(i){ci(i)}function cs(i){throw i}var hs={closed:!0,next:we,error:cs,complete:we},se=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function hi(i){return i}function us(i){return i.length===0?hi:i.length===1?i[0]:function(e){return i.reduce(function(s,n){return n(s)},e)}}var w=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,s){var n=this,r=fs(t)?t:new Xt(t,e,s);return vt(function(){var o=n,a=o.operator,l=o.source;r.add(a?a.call(r,l):l?n._subscribe(r):n._trySubscribe(r))}),r},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var s=this;return e=xe(e),new e(function(n,r){var o=new Xt({next:function(a){try{t(a)}catch(l){r(l),o.unsubscribe()}},error:r,complete:n});s.subscribe(o)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[se]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return us(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=xe(t),new t(function(s,n){var r;e.subscribe(function(o){return r=o},function(o){return n(o)},function(){return s(r)})})},i.create=function(t){return new i(t)},i}();function xe(i){var t;return(t=i??os.Promise)!==null&&t!==void 0?t:Promise}function ds(i){return i&&$(i.next)&&$(i.error)&&$(i.complete)}function fs(i){return i&&i instanceof ie||ds(i)&&li(i)}function ps(i){return $(i==null?void 0:i.lift)}function Pt(i){return function(t){if(ps(t))return t.lift(function(e){try{return i(e,this)}catch(s){this.error(s)}});throw new TypeError("Unable to lift unknown Observable type")}}function mt(i,t,e,s,n){return new gs(i,t,e,s,n)}var gs=function(i){Q(t,i);function t(e,s,n,r,o,a){var l=i.call(this,e)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=s?function(c){try{s(c)}catch(h){e.error(h)}}:i.prototype._next,l._error=r?function(c){try{r(c)}catch(h){e.error(h)}finally{this.unsubscribe()}}:i.prototype._error,l._complete=n?function(){try{n()}catch(c){e.error(c)}finally{this.unsubscribe()}}:i.prototype._complete,l}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var s=this.closed;i.prototype.unsubscribe.call(this),!s&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t}(ie),vs=oi(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),It=function(i){Q(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var s=new Se(this,this);return s.operator=e,s},t.prototype._throwIfClosed=function(){if(this.closed)throw new vs},t.prototype.next=function(e){var s=this;vt(function(){var n,r;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var o=Z(s.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(e)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var s=this;vt(function(){if(s._throwIfClosed(),!s.isStopped){s.hasError=s.isStopped=!0,s.thrownError=e;for(var n=s.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;vt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var s=e.observers;s.length;)s.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var s=this,n=this,r=n.hasError,o=n.isStopped,a=n.observers;return r||o?ai:(this.currentObservers=null,a.push(e),new Tt(function(){s.currentObservers=null,Kt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var s=this,n=s.hasError,r=s.thrownError,o=s.isStopped;n?e.error(r):o&&e.complete()},t.prototype.asObservable=function(){var e=new w;return e.source=this,e},t.create=function(e,s){return new Se(e,s)},t}(w),Se=function(i){Q(t,i);function t(e,s){var n=i.call(this)||this;return n.destination=e,n.source=s,n}return t.prototype.next=function(e){var s,n;(n=(s=this.destination)===null||s===void 0?void 0:s.next)===null||n===void 0||n.call(s,e)},t.prototype.error=function(e){var s,n;(n=(s=this.destination)===null||s===void 0?void 0:s.error)===null||n===void 0||n.call(s,e)},t.prototype.complete=function(){var e,s;(s=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||s===void 0||s.call(e)},t.prototype._subscribe=function(e){var s,n;return(n=(s=this.source)===null||s===void 0?void 0:s.subscribe(e))!==null&&n!==void 0?n:ai},t}(It),ui=function(i){Q(t,i);function t(e){var s=i.call(this)||this;return s._value=e,s}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var s=i.prototype._subscribe.call(this,e);return!s.closed&&e.next(this._value),s},t.prototype.getValue=function(){var e=this,s=e.hasError,n=e.thrownError,r=e._value;if(s)throw n;return this._throwIfClosed(),r},t.prototype.next=function(e){i.prototype.next.call(this,this._value=e)},t}(It),$s=new w(function(i){return i.complete()});function ms(i){return i&&$(i.schedule)}function di(i){return i[i.length-1]}function ys(i){return ms(di(i))?i.pop():void 0}function bs(i,t){return typeof di(i)=="number"?i.pop():t}var fi=function(i){return i&&typeof i.length=="number"&&typeof i!="function"};function pi(i){return $(i==null?void 0:i.then)}function gi(i){return $(i[se])}function vi(i){return Symbol.asyncIterator&&$(i==null?void 0:i[Symbol.asyncIterator])}function $i(i){return new TypeError("You provided "+(i!==null&&typeof i=="object"?"an invalid object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function _s(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var mi=_s();function yi(i){return $(i==null?void 0:i[mi])}function bi(i){return ns(this,arguments,function(){var e,s,n,r;return ri(this,function(o){switch(o.label){case 0:e=i.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,q(e.read())];case 3:return s=o.sent(),n=s.value,r=s.done,r?[4,q(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,q(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function _i(i){return $(i==null?void 0:i.getReader)}function J(i){if(i instanceof w)return i;if(i!=null){if(gi(i))return ws(i);if(fi(i))return xs(i);if(pi(i))return Ss(i);if(vi(i))return wi(i);if(yi(i))return As(i);if(_i(i))return ks(i)}throw $i(i)}function ws(i){return new w(function(t){var e=i[se]();if($(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function xs(i){return new w(function(t){for(var e=0;e<i.length&&!t.closed;e++)t.next(i[e]);t.complete()})}function Ss(i){return new w(function(t){i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,ci)})}function As(i){return new w(function(t){var e,s;try{for(var n=Z(i),r=n.next();!r.done;r=n.next()){var o=r.value;if(t.next(o),t.closed)return}}catch(a){e={error:a}}finally{try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(e)throw e.error}}t.complete()})}function wi(i){return new w(function(t){Cs(i,t).catch(function(e){return t.error(e)})})}function ks(i){return wi(bi(i))}function Cs(i,t){var e,s,n,r;return ss(this,void 0,void 0,function(){var o,a;return ri(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),e=rs(i),l.label=1;case 1:return[4,e.next()];case 2:if(s=l.sent(),!!s.done)return[3,4];if(o=s.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),n={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),s&&!s.done&&(r=e.return)?[4,r.call(e)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function U(i,t,e,s,n){s===void 0&&(s=0),n===void 0&&(n=!1);var r=t.schedule(function(){e(),n?i.add(this.schedule(null,s)):this.unsubscribe()},s);if(i.add(r),!n)return r}function xi(i,t){return t===void 0&&(t=0),Pt(function(e,s){e.subscribe(mt(s,function(n){return U(s,i,function(){return s.next(n)},t)},function(){return U(s,i,function(){return s.complete()},t)},function(n){return U(s,i,function(){return s.error(n)},t)}))})}function Si(i,t){return t===void 0&&(t=0),Pt(function(e,s){s.add(i.schedule(function(){return e.subscribe(s)},t))})}function Es(i,t){return J(i).pipe(Si(t),xi(t))}function Os(i,t){return J(i).pipe(Si(t),xi(t))}function Ts(i,t){return new w(function(e){var s=0;return t.schedule(function(){s===i.length?e.complete():(e.next(i[s++]),e.closed||this.schedule())})})}function Ps(i,t){return new w(function(e){var s;return U(e,t,function(){s=i[mi](),U(e,t,function(){var n,r,o;try{n=s.next(),r=n.value,o=n.done}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),function(){return $(s==null?void 0:s.return)&&s.return()}})}function Ai(i,t){if(!i)throw new Error("Iterable cannot be null");return new w(function(e){U(e,t,function(){var s=i[Symbol.asyncIterator]();U(e,t,function(){s.next().then(function(n){n.done?e.complete():e.next(n.value)})},0,!0)})})}function Is(i,t){return Ai(bi(i),t)}function Ls(i,t){if(i!=null){if(gi(i))return Es(i,t);if(fi(i))return Ts(i,t);if(pi(i))return Os(i,t);if(vi(i))return Ai(i,t);if(yi(i))return Ps(i,t);if(_i(i))return Is(i,t)}throw $i(i)}function Rs(i,t){return t?Ls(i,t):J(i)}function Us(i,t){return Pt(function(e,s){var n=0;e.subscribe(mt(s,function(r){s.next(i.call(t,r,n++))}))})}function Ms(i,t,e,s,n,r,o,a){var l=[],c=0,h=0,u=!1,d=function(){u&&!l.length&&!c&&t.complete()},f=function(g){return c<s?v(g):l.push(g)},v=function(g){c++;var ft=!1;J(e(g,h++)).subscribe(mt(t,function(tt){t.next(tt)},function(){ft=!0},void 0,function(){if(ft)try{c--;for(var tt=function(){var jt=l.shift();o||v(jt)};l.length&&c<s;)tt();d()}catch(jt){t.error(jt)}}))};return i.subscribe(mt(t,f,function(){u=!0,d()})),function(){}}function ki(i,t,e){return e===void 0&&(e=1/0),$(t)?ki(function(s,n){return Us(function(r,o){return t(s,r,n,o)})(J(i(s,n)))},e):(typeof t=="number"&&(e=t),Pt(function(s,n){return Ms(s,n,i,e)}))}function js(i){return i===void 0&&(i=1/0),ki(hi,i)}function Ns(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];var e=ys(i),s=bs(i,1/0),n=i;return n.length?n.length===1?J(n[0]):js(s)(Rs(n,e)):$s}/**
4
4
  * @license
5
5
  * Copyright 2019 Google LLC
6
6
  * SPDX-License-Identifier: BSD-3-Clause
@@ -14,7 +14,7 @@
14
14
  * SPDX-License-Identifier: BSD-3-Clause
15
15
  */const st=globalThis,bt=st.trustedTypes,Oe=bt?bt.createPolicy("lit-html",{createHTML:i=>i}):void 0,Ei="$lit$",T=`lit$${Math.random().toFixed(9).slice(2)}$`,Oi="?"+T,Zs=`<${Oi}>`,j=document,rt=()=>j.createComment(""),ot=i=>i===null||typeof i!="object"&&typeof i!="function",ae=Array.isArray,Ks=i=>ae(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Bt=`[
16
16
  \f\r]`,et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Te=/-->/g,Pe=/>/g,I=RegExp(`>|${Bt}(?:([^\\s"'>=/]+)(${Bt}*=${Bt}*(?:[^
17
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ie=/'/g,Le=/"/g,Ti=/^(?:script|style|textarea|title)$/i,Xs=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),m=Xs(1),N=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),Re=new WeakMap,R=j.createTreeWalker(j,129);function Pi(i,t){if(!ae(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Oe!==void 0?Oe.createHTML(t):t}const Qs=(i,t)=>{const e=i.length-1,s=[];let n,r=t===2?"<svg>":t===3?"<math>":"",o=et;for(let a=0;a<e;a++){const l=i[a];let c,u,h=-1,d=0;for(;d<l.length&&(o.lastIndex=d,u=o.exec(l),u!==null);)d=o.lastIndex,o===et?u[1]==="!--"?o=Te:u[1]!==void 0?o=Pe:u[2]!==void 0?(Ti.test(u[2])&&(n=RegExp("</"+u[2],"g")),o=I):u[3]!==void 0&&(o=I):o===I?u[0]===">"?(o=n??et,h=-1):u[1]===void 0?h=-2:(h=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?I:u[3]==='"'?Le:Ie):o===Le||o===Ie?o=I:o===Te||o===Pe?o=et:(o=I,n=void 0);const f=o===I&&i[a+1].startsWith("/>")?" ":"";r+=o===et?l+Zs:h>=0?(s.push(c),l.slice(0,h)+Ei+l.slice(h)+T+f):l+T+(h===-2?a:f)}return[Pi(i,r+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};let Qt=class Ii{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let r=0,o=0;const a=t.length-1,l=this.parts,[c,u]=Qs(t,e);if(this.el=Ii.createElement(c,s),R.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=R.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(const h of n.getAttributeNames())if(h.endsWith(Ei)){const d=u[o++],f=n.getAttribute(h).split(T),v=/([.?@])?(.*)/.exec(d);l.push({type:1,index:r,name:v[2],strings:f,ctor:v[1]==="."?Vs:v[1]==="?"?tn:v[1]==="@"?en:Lt}),n.removeAttribute(h)}else h.startsWith(T)&&(l.push({type:6,index:r}),n.removeAttribute(h));if(Ti.test(n.tagName)){const h=n.textContent.split(T),d=h.length-1;if(d>0){n.textContent=bt?bt.emptyScript:"";for(let f=0;f<d;f++)n.append(h[f],rt()),R.nextNode(),l.push({type:2,index:++r});n.append(h[d],rt())}}}else if(n.nodeType===8)if(n.data===Oi)l.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf(T,h+1))!==-1;)l.push({type:7,index:r}),h+=T.length-1}r++}}static createElement(t,e){const s=j.createElement("template");return s.innerHTML=t,s}};function K(i,t,e=i,s){var o,a;if(t===N)return t;let n=s!==void 0?(o=e._$Co)==null?void 0:o[s]:e._$Cl;const r=ot(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==r&&((a=n==null?void 0:n._$AO)==null||a.call(n,!1),r===void 0?n=void 0:(n=new r(i),n._$AT(i,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=n:e._$Cl=n),n!==void 0&&(t=K(i,n._$AS(i,t.values),n,s)),t}class Js{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,n=((t==null?void 0:t.creationScope)??j).importNode(e,!0);R.currentNode=n;let r=R.nextNode(),o=0,a=0,l=s[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new ut(r,r.nextSibling,this,t):l.type===1?c=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(c=new sn(r,this,t)),this._$AV.push(c),l=s[++a]}o!==(l==null?void 0:l.index)&&(r=R.nextNode(),o++)}return R.currentNode=j,n}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class ut{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=(n==null?void 0:n.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=K(this,t,e),ot(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==N&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ks(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==p&&ot(this._$AH)?this._$AA.nextSibling.data=t:this.T(j.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Qt.createElement(Pi(s.h,s.h[0]),this.options)),s);if(((r=this._$AH)==null?void 0:r._$AD)===n)this._$AH.p(e);else{const o=new Js(n,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=Re.get(t.strings);return e===void 0&&Re.set(t.strings,e=new Qt(t)),e}k(t){ae(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,n=0;for(const r of t)n===e.length?e.push(s=new ut(this.O(rt()),this.O(rt()),this,this.options)):s=e[n],s._$AI(r),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Lt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,n,r){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=p}_$AI(t,e=this,s,n){const r=this.strings;let o=!1;if(r===void 0)t=K(this,t,e,0),o=!ot(t)||t!==this._$AH&&t!==N,o&&(this._$AH=t);else{const a=t;let l,c;for(t=r[0],l=0;l<r.length-1;l++)c=K(this,a[s+l],e,l),c===N&&(c=this._$AH[l]),o||(o=!ot(c)||c!==this._$AH[l]),c===p?t=p:t!==p&&(t+=(c??"")+r[l+1]),this._$AH[l]=c}o&&!n&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}let Vs=class extends Lt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}};class tn extends Lt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class en extends Lt{constructor(t,e,s,n,r){super(t,e,s,n,r),this.type=5}_$AI(t,e=this){if((t=K(this,t,e,0)??p)===N)return;const s=this._$AH,n=t===p&&s!==p||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==p&&(s===p||n);n&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class sn{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){K(this,t)}}const Ht=st.litHtmlPolyfillSupport;Ht==null||Ht(Qt,ut),(st.litHtmlVersions??(st.litHtmlVersions=[])).push("3.3.0");const nn=(i,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let n=s._$litPart$;if(n===void 0){const r=(e==null?void 0:e.renderBefore)??null;s._$litPart$=n=new ut(t.insertBefore(rt(),r),r,void 0,e??{})}return n._$AI(i),n};/**
17
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ie=/'/g,Le=/"/g,Ti=/^(?:script|style|textarea|title)$/i,Xs=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),m=Xs(1),N=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),Re=new WeakMap,R=j.createTreeWalker(j,129);function Pi(i,t){if(!ae(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Oe!==void 0?Oe.createHTML(t):t}const Qs=(i,t)=>{const e=i.length-1,s=[];let n,r=t===2?"<svg>":t===3?"<math>":"",o=et;for(let a=0;a<e;a++){const l=i[a];let c,h,u=-1,d=0;for(;d<l.length&&(o.lastIndex=d,h=o.exec(l),h!==null);)d=o.lastIndex,o===et?h[1]==="!--"?o=Te:h[1]!==void 0?o=Pe:h[2]!==void 0?(Ti.test(h[2])&&(n=RegExp("</"+h[2],"g")),o=I):h[3]!==void 0&&(o=I):o===I?h[0]===">"?(o=n??et,u=-1):h[1]===void 0?u=-2:(u=o.lastIndex-h[2].length,c=h[1],o=h[3]===void 0?I:h[3]==='"'?Le:Ie):o===Le||o===Ie?o=I:o===Te||o===Pe?o=et:(o=I,n=void 0);const f=o===I&&i[a+1].startsWith("/>")?" ":"";r+=o===et?l+Zs:u>=0?(s.push(c),l.slice(0,u)+Ei+l.slice(u)+T+f):l+T+(u===-2?a:f)}return[Pi(i,r+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};let Qt=class Ii{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let r=0,o=0;const a=t.length-1,l=this.parts,[c,h]=Qs(t,e);if(this.el=Ii.createElement(c,s),R.currentNode=this.el.content,e===2||e===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=R.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(const u of n.getAttributeNames())if(u.endsWith(Ei)){const d=h[o++],f=n.getAttribute(u).split(T),v=/([.?@])?(.*)/.exec(d);l.push({type:1,index:r,name:v[2],strings:f,ctor:v[1]==="."?Vs:v[1]==="?"?tn:v[1]==="@"?en:Lt}),n.removeAttribute(u)}else u.startsWith(T)&&(l.push({type:6,index:r}),n.removeAttribute(u));if(Ti.test(n.tagName)){const u=n.textContent.split(T),d=u.length-1;if(d>0){n.textContent=bt?bt.emptyScript:"";for(let f=0;f<d;f++)n.append(u[f],rt()),R.nextNode(),l.push({type:2,index:++r});n.append(u[d],rt())}}}else if(n.nodeType===8)if(n.data===Oi)l.push({type:2,index:r});else{let u=-1;for(;(u=n.data.indexOf(T,u+1))!==-1;)l.push({type:7,index:r}),u+=T.length-1}r++}}static createElement(t,e){const s=j.createElement("template");return s.innerHTML=t,s}};function K(i,t,e=i,s){var o,a;if(t===N)return t;let n=s!==void 0?(o=e._$Co)==null?void 0:o[s]:e._$Cl;const r=ot(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==r&&((a=n==null?void 0:n._$AO)==null||a.call(n,!1),r===void 0?n=void 0:(n=new r(i),n._$AT(i,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=n:e._$Cl=n),n!==void 0&&(t=K(i,n._$AS(i,t.values),n,s)),t}class Js{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,n=((t==null?void 0:t.creationScope)??j).importNode(e,!0);R.currentNode=n;let r=R.nextNode(),o=0,a=0,l=s[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new ht(r,r.nextSibling,this,t):l.type===1?c=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(c=new sn(r,this,t)),this._$AV.push(c),l=s[++a]}o!==(l==null?void 0:l.index)&&(r=R.nextNode(),o++)}return R.currentNode=j,n}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class ht{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=(n==null?void 0:n.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=K(this,t,e),ot(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==N&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ks(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==p&&ot(this._$AH)?this._$AA.nextSibling.data=t:this.T(j.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Qt.createElement(Pi(s.h,s.h[0]),this.options)),s);if(((r=this._$AH)==null?void 0:r._$AD)===n)this._$AH.p(e);else{const o=new Js(n,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=Re.get(t.strings);return e===void 0&&Re.set(t.strings,e=new Qt(t)),e}k(t){ae(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,n=0;for(const r of t)n===e.length?e.push(s=new ht(this.O(rt()),this.O(rt()),this,this.options)):s=e[n],s._$AI(r),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Lt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,n,r){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=p}_$AI(t,e=this,s,n){const r=this.strings;let o=!1;if(r===void 0)t=K(this,t,e,0),o=!ot(t)||t!==this._$AH&&t!==N,o&&(this._$AH=t);else{const a=t;let l,c;for(t=r[0],l=0;l<r.length-1;l++)c=K(this,a[s+l],e,l),c===N&&(c=this._$AH[l]),o||(o=!ot(c)||c!==this._$AH[l]),c===p?t=p:t!==p&&(t+=(c??"")+r[l+1]),this._$AH[l]=c}o&&!n&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}let Vs=class extends Lt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}};class tn extends Lt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class en extends Lt{constructor(t,e,s,n,r){super(t,e,s,n,r),this.type=5}_$AI(t,e=this){if((t=K(this,t,e,0)??p)===N)return;const s=this._$AH,n=t===p&&s!==p||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==p&&(s===p||n);n&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class sn{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){K(this,t)}}const Ht=st.litHtmlPolyfillSupport;Ht==null||Ht(Qt,ht),(st.litHtmlVersions??(st.litHtmlVersions=[])).push("3.3.0");const nn=(i,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let n=s._$litPart$;if(n===void 0){const r=(e==null?void 0:e.renderBefore)??null;s._$litPart$=n=new ht(t.insertBefore(rt(),r),r,void 0,e??{})}return n._$AI(i),n};/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
@@ -54,17 +54,17 @@
54
54
  * @license
55
55
  * Copyright 2017 Google LLC
56
56
  * SPDX-License-Identifier: BSD-3-Clause
57
- */const nt=(i,t)=>{var s;const e=i._$AN;if(e===void 0)return!1;for(const n of e)(s=n._$AO)==null||s.call(n,t,!1),nt(n,t);return!0},wt=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},Ri=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),dn(t)}};function un(i){this._$AN!==void 0?(wt(this),this._$AM=i,Ri(this)):this._$AM=i}function hn(i,t=!1,e=0){const s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(s))for(let r=e;r<s.length;r++)nt(s[r],!1),wt(s[r]);else s!=null&&(nt(s,!1),wt(s));else nt(this,i)}const dn=i=>{i.type==le.CHILD&&(i._$AP??(i._$AP=hn),i._$AQ??(i._$AQ=un))};class Ui extends Li{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Ri(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,n;t!==this.isConnected&&(this.isConnected=t,t?(s=this.reconnected)==null||s.call(this):(n=this.disconnected)==null||n.call(this)),e&&(nt(this,t),wt(this))}setValue(t){if(cn(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const fn=new WeakMap;let Ue=0;const Dt=new Map,Me=new WeakSet,je=()=>new Promise(i=>requestAnimationFrame(i)),Ne=[{transform:"translateY(-100%) scale(0)",opacity:0}],pn=[{transform:"translateX(100%) scale(0)",opacity:0}],Fe=(i,t)=>{const e=i-t;return e===0?void 0:e},Be=(i,t)=>{const e=i/t;return e===1?void 0:e},Wt={left:(i,t)=>{const e=Fe(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(i,t)=>{const e=Fe(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(i,t)=>{let e;t===0&&(t=1,e={width:"1px"});const s=Be(i,t);return{value:s,overrideFrom:e,transform:s==null||isNaN(s)?void 0:`scaleX(${s})`}},height:(i,t)=>{let e;t===0&&(t=1,e={height:"1px"});const s=Be(i,t);return{value:s,overrideFrom:e,transform:s==null||isNaN(s)?void 0:`scaleY(${s})`}}},gn={duration:333,easing:"ease-in-out"},vn=["left","top","width","height","opacity","color","background"],He=new WeakMap;class $n extends Ui{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===le.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(e=>{this.l=e})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return p}getController(){return fn.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var n;const s=this.u===void 0;return s&&(this.u=(n=t.options)==null?void 0:n.host,this.u.addController(this),this.u.updateComplete.then(r=>this.t=!0),this.element=t.element,He.set(this.element,this)),this.optionsOrCallback=e,(s||typeof e!="function")&&this.p(e),this.render(e)}p(t){t=t??{};const e=this.getController();e!==void 0&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=vn),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach(n=>{const r=e[n]??(Wt[n]?void 0:s[n]),o=Number(r);t[n]=isNaN(o)?r+"":o}),t}v(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((s,n)=>{if(Array.isArray(s)){if(Array.isArray(n)&&n.length===s.length&&s.every((r,o)=>r===n[o]))return!1}else if(n===s)return!1;return!0})(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}hostUpdate(){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)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await je;const e=this.O(),s=this.j(this.options.keyframeOptions,e),n=this.m();if(this.A!==void 0){const{from:r,to:o}=this.N(this.A,n,e);this.log("measured",[this.A,n,r,o]),t=this.calculateKeyframes(r,o)}else{const r=Dt.get(this.options.inId);if(r){Dt.delete(this.options.inId);const{from:o,to:a}=this.N(r,n,e);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Ue++,t.forEach(l=>l.zIndex=Ue)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,s)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,e;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(e=this.webAnimation)==null||e.cancel()}reconnected(){}async disconnected(){var e;if(!this.h||(this.options.id!==void 0&&Dt.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await je(),(e=this.i)==null?void 0:e.isConnected){const s=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,s),this.options.stabilizeOut){const n=this.m();this.log("stabilizing out");const r=this.A.left-n.left,o=this.A.top-n.top;getComputedStyle(this.element).position!=="static"||r===0&&o===0||(this.element.style.position="relative"),r!==0&&(this.element.style.left=r+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,e;(e=(t=this.options).onStart)==null||e.call(t,this)}didFinish(t){var e,s;t&&((s=(e=this.options).onComplete)==null||s.call(e,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let e=this.element.parentNode;e;e=e==null?void 0:e.parentNode){const s=He.get(e);s&&!s.isDisabled()&&s&&t.push(s)}return t}get isHostRendered(){const t=Me.has(this.u);return t||this.u.updateComplete.then(()=>{Me.add(this.u)}),t}j(t,e=this.O()){const s={...gn};return e.forEach(n=>Object.assign(s,n.options.keyframeOptions)),Object.assign(s,t),s}N(t,e,s){t={...t},e={...e};const n=s.map(a=>a.animatingProperties).filter(a=>a!==void 0);let r=1,o=1;return n.length>0&&(n.forEach(a=>{a.width&&(r/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&e.left!==void 0&&(t.left=r*t.left,e.left=r*e.left),t.top!==void 0&&e.top!==void 0&&(t.top=o*t.top,e.top=o*e.top)),{from:t,to:e}}calculateKeyframes(t,e,s=!1){const n={},r={};let o=!1;const a={};for(const l in e){const c=t[l],u=e[l];if(l in Wt){const h=Wt[l];if(c===void 0||u===void 0)continue;const d=h(c,u);d.transform!==void 0&&(a[l]=d.value,o=!0,n.transform=`${n.transform??""} ${d.transform}`,d.overrideFrom!==void 0&&Object.assign(n,d.overrideFrom))}else c!==u&&c!==void 0&&u!==void 0&&(o=!0,n[l]=c,r[l]=u)}return n.transformOrigin=r.transformOrigin=s?"center center":"top left",this.animatingProperties=a,o?[n,r]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let s=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,e]),s=!0,this.webAnimation=this.element.animate(t,e);const n=this.getController();n==null||n.add(this);try{await this.webAnimation.finished}catch{}n==null||n.remove(this)}return this.didFinish(s),s}isAnimating(){var t,e;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((e=this.webAnimation)==null?void 0:e.pending)}log(t,e){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,e)}}const Mi=ce($n),mn={svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>'},yn={svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M18 36C15.7909 36 14 34.2091 14 32C14 29.7909 15.7909 28 18 28C20.2091 28 22 29.7909 22 32C22 34.2091 20.2091 36 18 36ZM28 32C28 34.2091 29.7909 36 32 36C34.2091 36 36 34.2091 36 32C36 29.7909 34.2091 28 32 28C29.7909 28 28 29.7909 28 32ZM46 36C43.7909 36 42 34.2091 42 32C42 29.7909 43.7909 28 46 28C48.2091 28 50 29.7909 50 32C50 34.2091 48.2091 36 46 36Z"/></svg>'},bn={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>'};/**
57
+ */const nt=(i,t)=>{var s;const e=i._$AN;if(e===void 0)return!1;for(const n of e)(s=n._$AO)==null||s.call(n,t,!1),nt(n,t);return!0},wt=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},Ri=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),dn(t)}};function hn(i){this._$AN!==void 0?(wt(this),this._$AM=i,Ri(this)):this._$AM=i}function un(i,t=!1,e=0){const s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(s))for(let r=e;r<s.length;r++)nt(s[r],!1),wt(s[r]);else s!=null&&(nt(s,!1),wt(s));else nt(this,i)}const dn=i=>{i.type==le.CHILD&&(i._$AP??(i._$AP=un),i._$AQ??(i._$AQ=hn))};class Ui extends Li{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Ri(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,n;t!==this.isConnected&&(this.isConnected=t,t?(s=this.reconnected)==null||s.call(this):(n=this.disconnected)==null||n.call(this)),e&&(nt(this,t),wt(this))}setValue(t){if(cn(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const fn=new WeakMap;let Ue=0;const Dt=new Map,Me=new WeakSet,je=()=>new Promise(i=>requestAnimationFrame(i)),Ne=[{transform:"translateY(-100%) scale(0)",opacity:0}],pn=[{transform:"translateX(100%) scale(0)",opacity:0}],Fe=(i,t)=>{const e=i-t;return e===0?void 0:e},Be=(i,t)=>{const e=i/t;return e===1?void 0:e},Wt={left:(i,t)=>{const e=Fe(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(i,t)=>{const e=Fe(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(i,t)=>{let e;t===0&&(t=1,e={width:"1px"});const s=Be(i,t);return{value:s,overrideFrom:e,transform:s==null||isNaN(s)?void 0:`scaleX(${s})`}},height:(i,t)=>{let e;t===0&&(t=1,e={height:"1px"});const s=Be(i,t);return{value:s,overrideFrom:e,transform:s==null||isNaN(s)?void 0:`scaleY(${s})`}}},gn={duration:333,easing:"ease-in-out"},vn=["left","top","width","height","opacity","color","background"],He=new WeakMap;class $n extends Ui{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===le.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(e=>{this.l=e})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return p}getController(){return fn.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var n;const s=this.u===void 0;return s&&(this.u=(n=t.options)==null?void 0:n.host,this.u.addController(this),this.u.updateComplete.then(r=>this.t=!0),this.element=t.element,He.set(this.element,this)),this.optionsOrCallback=e,(s||typeof e!="function")&&this.p(e),this.render(e)}p(t){t=t??{};const e=this.getController();e!==void 0&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=vn),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach(n=>{const r=e[n]??(Wt[n]?void 0:s[n]),o=Number(r);t[n]=isNaN(o)?r+"":o}),t}v(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((s,n)=>{if(Array.isArray(s)){if(Array.isArray(n)&&n.length===s.length&&s.every((r,o)=>r===n[o]))return!1}else if(n===s)return!1;return!0})(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}hostUpdate(){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)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await je;const e=this.O(),s=this.j(this.options.keyframeOptions,e),n=this.m();if(this.A!==void 0){const{from:r,to:o}=this.N(this.A,n,e);this.log("measured",[this.A,n,r,o]),t=this.calculateKeyframes(r,o)}else{const r=Dt.get(this.options.inId);if(r){Dt.delete(this.options.inId);const{from:o,to:a}=this.N(r,n,e);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Ue++,t.forEach(l=>l.zIndex=Ue)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,s)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,e;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(e=this.webAnimation)==null||e.cancel()}reconnected(){}async disconnected(){var e;if(!this.h||(this.options.id!==void 0&&Dt.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await je(),(e=this.i)==null?void 0:e.isConnected){const s=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,s),this.options.stabilizeOut){const n=this.m();this.log("stabilizing out");const r=this.A.left-n.left,o=this.A.top-n.top;getComputedStyle(this.element).position!=="static"||r===0&&o===0||(this.element.style.position="relative"),r!==0&&(this.element.style.left=r+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,e;(e=(t=this.options).onStart)==null||e.call(t,this)}didFinish(t){var e,s;t&&((s=(e=this.options).onComplete)==null||s.call(e,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let e=this.element.parentNode;e;e=e==null?void 0:e.parentNode){const s=He.get(e);s&&!s.isDisabled()&&s&&t.push(s)}return t}get isHostRendered(){const t=Me.has(this.u);return t||this.u.updateComplete.then(()=>{Me.add(this.u)}),t}j(t,e=this.O()){const s={...gn};return e.forEach(n=>Object.assign(s,n.options.keyframeOptions)),Object.assign(s,t),s}N(t,e,s){t={...t},e={...e};const n=s.map(a=>a.animatingProperties).filter(a=>a!==void 0);let r=1,o=1;return n.length>0&&(n.forEach(a=>{a.width&&(r/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&e.left!==void 0&&(t.left=r*t.left,e.left=r*e.left),t.top!==void 0&&e.top!==void 0&&(t.top=o*t.top,e.top=o*e.top)),{from:t,to:e}}calculateKeyframes(t,e,s=!1){const n={},r={};let o=!1;const a={};for(const l in e){const c=t[l],h=e[l];if(l in Wt){const u=Wt[l];if(c===void 0||h===void 0)continue;const d=u(c,h);d.transform!==void 0&&(a[l]=d.value,o=!0,n.transform=`${n.transform??""} ${d.transform}`,d.overrideFrom!==void 0&&Object.assign(n,d.overrideFrom))}else c!==h&&c!==void 0&&h!==void 0&&(o=!0,n[l]=c,r[l]=h)}return n.transformOrigin=r.transformOrigin=s?"center center":"top left",this.animatingProperties=a,o?[n,r]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let s=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,e]),s=!0,this.webAnimation=this.element.animate(t,e);const n=this.getController();n==null||n.add(this);try{await this.webAnimation.finished}catch{}n==null||n.remove(this)}return this.didFinish(s),s}isAnimating(){var t,e;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((e=this.webAnimation)==null?void 0:e.pending)}log(t,e){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,e)}}const Mi=ce($n),mn={svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>'},yn={svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M18 36C15.7909 36 14 34.2091 14 32C14 29.7909 15.7909 28 18 28C20.2091 28 22 29.7909 22 32C22 34.2091 20.2091 36 18 36ZM28 32C28 34.2091 29.7909 36 32 36C34.2091 36 36 34.2091 36 32C36 29.7909 34.2091 28 32 28C29.7909 28 28 29.7909 28 32ZM46 36C43.7909 36 42 34.2091 42 32C42 29.7909 43.7909 28 46 28C48.2091 28 50 29.7909 50 32C50 34.2091 48.2091 36 46 36Z"/></svg>'},bn={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>'};/**
58
58
  * @license
59
59
  * Copyright 2018 Google LLC
60
60
  * SPDX-License-Identifier: BSD-3-Clause
61
- */const ze=ce(class extends Li{constructor(i){var t;if(super(i),i.type!==le.ATTRIBUTE||i.name!=="class"||((t=i.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var s,n;if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(const r in t)t[r]&&!((s=this.nt)!=null&&s.has(r))&&this.st.add(r);return this.render(t)}const e=i.element.classList;for(const r of this.st)r in t||(e.remove(r),this.st.delete(r));for(const r in t){const o=!!t[r];o===this.st.has(r)||(n=this.nt)!=null&&n.has(r)||(o?(e.add(r),this.st.add(r)):(e.remove(r),this.st.delete(r)))}return N}}),E=(i,t,e)=>{i&&e.style.setProperty(t,i)},ji=(i,t)=>{var e,s,n,r,o,a,l,c,u;E((e=i.colors)==null?void 0:e.primaryBackground,"--primary-background",t),E((s=i.colors)==null?void 0:s.textOnPrimaryBackground,"--text-on-primary-background",t),E((n=i.colors)==null?void 0:n.secondaryBackground,"--secondary-background",t),E((r=i.colors)==null?void 0:r.textOnSecondaryBackground,"--text-on-secondary-background",t),E((o=i.colors)==null?void 0:o.interactiveDestructiveBackground,"--destructive-color",t),E((a=i.colors)==null?void 0:a.interactiveTextOnDestructiveBackground,"--text-on-destructive-color",t),E((l=i.colors)==null?void 0:l.interactivePrimaryBackground,"--interactive-primary-background",t),E((c=i.colors)==null?void 0:c.interactiveTextOnPrimaryBackground,"--interactive-text-on-primary-background",t),E((u=i.colors)==null?void 0:u.focusColor,"--focus-color",t)};/**
61
+ */const ze=ce(class extends Li{constructor(i){var t;if(super(i),i.type!==le.ATTRIBUTE||i.name!=="class"||((t=i.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var s,n;if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(const r in t)t[r]&&!((s=this.nt)!=null&&s.has(r))&&this.st.add(r);return this.render(t)}const e=i.element.classList;for(const r of this.st)r in t||(e.remove(r),this.st.delete(r));for(const r in t){const o=!!t[r];o===this.st.has(r)||(n=this.nt)!=null&&n.has(r)||(o?(e.add(r),this.st.add(r)):(e.remove(r),this.st.delete(r)))}return N}}),E=(i,t,e)=>{i&&e.style.setProperty(t,i)},ji=(i,t)=>{var e,s,n,r,o,a,l,c,h;E((e=i.colors)==null?void 0:e.primaryBackground,"--primary-background",t),E((s=i.colors)==null?void 0:s.textOnPrimaryBackground,"--text-on-primary-background",t),E((n=i.colors)==null?void 0:n.secondaryBackground,"--secondary-background",t),E((r=i.colors)==null?void 0:r.textOnSecondaryBackground,"--text-on-secondary-background",t),E((o=i.colors)==null?void 0:o.interactiveDestructiveBackground,"--destructive-color",t),E((a=i.colors)==null?void 0:a.interactiveTextOnDestructiveBackground,"--text-on-destructive-color",t),E((l=i.colors)==null?void 0:l.interactivePrimaryBackground,"--interactive-primary-background",t),E((c=i.colors)==null?void 0:c.interactiveTextOnPrimaryBackground,"--interactive-text-on-primary-background",t),E((h=i.colors)==null?void 0:h.focusColor,"--focus-color",t)};/**
62
62
  * @license
63
63
  * Copyright 2020 Google LLC
64
64
  * SPDX-License-Identifier: BSD-3-Clause
65
- */const xt=()=>new _n;let _n=class{};const qt=new WeakMap,St=ce(class extends Ui{render(i){return p}update(i,[t]){var s;const e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=(s=i.options)==null?void 0:s.host,this.rt(this.ct=i.element)),p}rt(i){if(this.isConnected||(i=void 0),typeof this.G=="function"){const t=this.ht??globalThis;let e=qt.get(t);e===void 0&&(e=new WeakMap,qt.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,i),i!==void 0&&this.G.call(this.ht,i)}else this.G.value=i}get lt(){var i,t;return typeof this.G=="function"?(i=qt.get(this.ht??globalThis))==null?void 0:i.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var wn=Object.defineProperty,ht=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&wn(t,e,n),n};const ve=class ve extends A{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=xt(),this.widgetActive$=new hi(!1),this.componentIsDestroyed$=new It}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}disconnectedCallback(){super.disconnectedCallback(),this.componentIsDestroyed$.next(),this.componentIsDestroyed$.complete()}toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?(this.application.appendToDOM(),this.notify("widget-set-active",{widgetId:this.application.id,active:!0}),this.widgetActive$.next(!0),this.hideTrigger()):(this.application.hide(),this.notify("widget-set-active",{widgetId:this.application.id,active:!1}),this.widgetActive$.next(!1),this.showTrigger())}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&ji(this.application.settings.branding,this)}async _renderSymbol(){var a,l,c;const t=(a=this.application)==null?void 0:a.branding(),e=(l=t==null?void 0:t.graphics)==null?void 0:l.trigger;if(e)return m` <img src=${e} class="trigger-icon" alt="" /> `;const s=(c=this.application)==null?void 0:c.triggerIcon;if(!s)return p;const n=async u=>bn,{type:r,content:o}=s;switch(r){case"Telia":{const u=await n();return u?m`<telia-icon
65
+ */const xt=()=>new _n;let _n=class{};const qt=new WeakMap,St=ce(class extends Ui{render(i){return p}update(i,[t]){var s;const e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=(s=i.options)==null?void 0:s.host,this.rt(this.ct=i.element)),p}rt(i){if(this.isConnected||(i=void 0),typeof this.G=="function"){const t=this.ht??globalThis;let e=qt.get(t);e===void 0&&(e=new WeakMap,qt.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,i),i!==void 0&&this.G.call(this.ht,i)}else this.G.value=i}get lt(){var i,t;return typeof this.G=="function"?(i=qt.get(this.ht??globalThis))==null?void 0:i.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var wn=Object.defineProperty,ut=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&wn(t,e,n),n};const ve=class ve extends A{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=xt(),this.widgetActive$=new ui(!1),this.componentIsDestroyed$=new It}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}disconnectedCallback(){super.disconnectedCallback(),this.componentIsDestroyed$.next(),this.componentIsDestroyed$.complete()}toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?(this.application.appendToDOM(),this.notify("widget-set-active",{widgetId:this.application.id,active:!0}),this.widgetActive$.next(!0),this.hideTrigger()):(this.application.hide(),this.notify("widget-set-active",{widgetId:this.application.id,active:!1}),this.widgetActive$.next(!1),this.showTrigger())}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&ji(this.application.settings.branding,this)}async _renderSymbol(){var a,l,c;const t=(a=this.application)==null?void 0:a.branding(),e=(l=t==null?void 0:t.graphics)==null?void 0:l.trigger;if(e)return m` <img src=${e} class="trigger-icon" alt="" /> `;const s=(c=this.application)==null?void 0:c.triggerIcon;if(!s)return p;const n=async h=>bn,{type:r,content:o}=s;switch(r){case"Telia":{const h=await n();return h?m`<telia-icon
66
66
  class="trigger-icon"
67
- svg=${u.svg}
67
+ svg=${h.svg}
68
68
  size="lg"
69
69
  ></telia-icon>`:p}default:return p}}hideTrigger(){this.triggerVisible=!1}showTrigger(){this.triggerVisible=!0}render(){var t,e,s,n;return m`<div
70
70
  class=${ze({"trigger-container":!0,hidden:!this.triggerVisible})}
@@ -244,7 +244,7 @@
244
244
  .trigger-label:hover {
245
245
  opacity: 0.8;
246
246
  }
247
- `];let O=ve;ht([_({attribute:!1})],O.prototype,"application");ht([x()],O.prototype,"active");ht([x()],O.prototype,"triggerVisible");ht([x()],O.prototype,"loaded");ht([x()],O.prototype,"icon");var xn=Object.defineProperty,L=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&xn(t,e,n),n};const Ni=i=>{const e=class e extends i{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(n){this.properties=n}writeLayout(n){this.layout=n}writeContext(n){this.context=n}addChild(n){n.parent=this,this.nodes.push(n)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`),this.application.mountComponent(this)}};e.styles=[B`
247
+ `];let O=ve;ut([_({attribute:!1})],O.prototype,"application");ut([x()],O.prototype,"active");ut([x()],O.prototype,"triggerVisible");ut([x()],O.prototype,"loaded");ut([x()],O.prototype,"icon");var xn=Object.defineProperty,L=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&xn(t,e,n),n};const Ni=i=>{const e=class e extends i{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(n){this.properties=n}writeLayout(n){this.layout=n}writeContext(n){this.context=n}addChild(n){n.parent=this,this.nodes.push(n)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`),this.application.mountComponent(this)}};e.styles=[B`
248
248
  :host {
249
249
  font-family: var(--font-family);
250
250
  grid-column: span var(--width);
@@ -284,7 +284,7 @@
284
284
  * @license
285
285
  * Copyright 2017 Google LLC
286
286
  * SPDX-License-Identifier: BSD-3-Clause
287
- */function En({context:i}){return(t,e)=>{const s=new WeakMap;if(typeof e=="object")return{get(){return t.get.call(this)},set(n){return s.get(this).setValue(n),t.set.call(this,n)},init(n){return s.set(this,new De(this,{context:i,initialValue:n})),n}};{t.constructor.addInitializer(o=>{s.set(o,new De(o,{context:i}))});const n=Object.getOwnPropertyDescriptor(t,e);let r;if(n===void 0){const o=new WeakMap;r={get(){return o.get(this)},set(a){s.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=n.set;r={...n,set(a){s.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,r)}}}var On=Object.defineProperty,Fi=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&On(t,e,n),n};const Tn="application",me=class me extends A{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=xt(),this.fullscreen=!1,this.isReady=new hi(!1)}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&ji(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([s,n])=>{e.style.setProperty(`--${s}`,n)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var s,n;const t=this.application.settings.components.conversation;return((n=(s=t==null?void 0:t.properties)==null?void 0:s.chat)==null?void 0:n.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===at.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.fullscreen&&this.renderRoot.host.classList.add("fullscreen"),window.self!==window.top&&this.renderRoot.host.classList.add("embedded"),m`<div class="widget-container" ${St(this.wrapperRef)}>
287
+ */function En({context:i}){return(t,e)=>{const s=new WeakMap;if(typeof e=="object")return{get(){return t.get.call(this)},set(n){return s.get(this).setValue(n),t.set.call(this,n)},init(n){return s.set(this,new De(this,{context:i,initialValue:n})),n}};{t.constructor.addInitializer(o=>{s.set(o,new De(o,{context:i}))});const n=Object.getOwnPropertyDescriptor(t,e);let r;if(n===void 0){const o=new WeakMap;r={get(){return o.get(this)},set(a){s.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=n.set;r={...n,set(a){s.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,r)}}}var On=Object.defineProperty,Fi=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&On(t,e,n),n};const Tn="application",me=class me extends A{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=xt(),this.fullscreen=!1,this.isReady=new ui(!1)}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&ji(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([s,n])=>{e.style.setProperty(`--${s}`,n)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var s,n;const t=this.application.settings.components.conversation;return((n=(s=t==null?void 0:t.properties)==null?void 0:s.chat)==null?void 0:n.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===at.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.fullscreen&&this.renderRoot.host.classList.add("fullscreen"),window.self!==window.top&&this.renderRoot.host.classList.add("embedded"),m`<div class="widget-container" ${St(this.wrapperRef)}>
288
288
  ${Sn(this.nodes,r=>r)}
289
289
  </div>`}};me.styles=B`
290
290
  :host {
@@ -451,11 +451,11 @@
451
451
  :host(.expanded.embedded) {
452
452
  animation: none;
453
453
  }
454
- `;let lt=me;Fi([_({attribute:!0})],lt.prototype,"fullscreen");Fi([_({attribute:!1}),En({context:Tn})],lt.prototype,"application");const Ot=class Ot{constructor(t=Ot.endpoint){this._endpoint=t}async getSite(t){const s=await(await fetch(t)).json();return s?{id:s.id,triggers:s.triggers||[],apps:(s.widgets||[]).map(n=>{let r=at.Trigger;n.renderStrategy.toLowerCase()==="inline"&&(r=at.Inline);const o=n.widgetId?n.widgetId:n.id,a=typeof n.autoActivate=="boolean"?n.autoActivate:!1,l=typeof n.anchor=="string"?n.anchor:"BottomRight",c=typeof n.triggerIcon=="string"?n.triggerIcon:"question";return{id:o,widgetId:o,renderStrategy:r,autoActivate:a,anchor:l,triggerIcon:{type:"Telia",content:c}}})}:null}async getWidget(t){const s=await(await fetch(`${this._endpoint}/widget/${t}`)).json();return s?{name:s.name,config:JSON.parse(s.configuration)}:null}};Ot.endpoint="https://widgets.ace.teliacompany.net/api";let We=Ot;var Pn=Object.defineProperty,ue=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&Pn(t,e,n),n};const ye=class ye extends A{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(t){this.widget=t.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const t=globalThis.widgets;t&&(this.widget=t.applications.find(e=>e.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return p;if(this.widget.renderStrategy===at.Trigger){const t=new O;return t.application=this.widget,t}return this.widget.render()}};ye.styles=[B`
454
+ `;let lt=me;Fi([_({attribute:!0})],lt.prototype,"fullscreen");Fi([_({attribute:!1}),En({context:Tn})],lt.prototype,"application");const Ot=class Ot{constructor(t=Ot.endpoint){this._endpoint=t}async getSite(t){const s=await(await fetch(t)).json();return s?{id:s.id,triggers:s.triggers||[],apps:(s.widgets||[]).map(n=>{let r=at.Trigger;n.renderStrategy.toLowerCase()==="inline"&&(r=at.Inline);const o=n.widgetId?n.widgetId:n.id,a=typeof n.autoActivate=="boolean"?n.autoActivate:!1,l=typeof n.anchor=="string"?n.anchor:"BottomRight",c=typeof n.triggerIcon=="string"?n.triggerIcon:"question";return{id:o,widgetId:o,renderStrategy:r,autoActivate:a,anchor:l,triggerIcon:{type:"Telia",content:c}}})}:null}async getWidget(t){const s=await(await fetch(`${this._endpoint}/widget/${t}`)).json();return s?{name:s.name,config:JSON.parse(s.configuration)}:null}};Ot.endpoint="https://widgets.ace.teliacompany.net/api";let We=Ot;var Pn=Object.defineProperty,he=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&Pn(t,e,n),n};const ye=class ye extends A{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(t){this.widget=t.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const t=globalThis.widgets;t&&(this.widget=t.applications.find(e=>e.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return p;if(this.widget.renderStrategy===at.Trigger){const t=new O;return t.application=this.widget,t}return this.widget.render()}};ye.styles=[B`
455
455
  :host {
456
456
  display: block;
457
457
  }
458
- `];let X=ye;ue([_({attribute:!0})],X.prototype,"name");ue([x()],X.prototype,"widget");ue([x()],X.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",_t);customElements.get("ace-trigger")||customElements.define("ace-trigger",O);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Jt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",lt);customElements.get("ace-widget")||customElements.define("ace-widget",X);const In=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>(+i^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+i/4).toString(16)),Ln=()=>typeof crypto.randomUUID=="function"?crypto.randomUUID():In();class Rn{constructor(t,e,s,n,r,o,a=!0){this.label=t,this.icon=e,this.onClick=s,this.closeOnClick=n,this.key=r,this.update=new It,this.id=Ln(),this._controller=o,this.enabled=a}updateLabel(t){this.label=t,this.update.next()}updateIcon(t){this.icon=t,this.update.next()}remove(){this._controller.removeOption(this)}subscribe(){return this.update.asObservable()}}class Un{constructor(t){this._options=[],this._subscription=null,this._host=t,t.addController(this)}hostConnected(){}hostDisconnected(){this._subscription&&this._subscription.unsubscribe(),this._options=[]}addOption(t){const e=new Rn(t.label,t.icon,t.onClick,t.closeOnClick,t.key,this);return this._options.push(e),this.handleUpdate(),e}removeOption(t){this._options=this._options.filter(e=>e.id!==t.id)}handleUpdate(){this._subscription&&this._subscription.unsubscribe();const t=this._options.map(e=>e.subscribe());this._subscription=Ns(t).subscribe(()=>{this._host.requestUpdate()})}set options(t){this._options=t,this._host.requestUpdate()}get options(){return this._options}hasOptions(){return this._options.length>0}}const z={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let D,Bi,Rt,Hi=!1,At=!1,he=!1,b=!1,qe=null,Vt=!1;const Ut=typeof window<"u"?window:{},k=Ut.document||{head:{}},zi=Ut.HTMLElement||class{},y={$flags$:0,$resourcesUrl$:"",jmp:i=>i(),raf:i=>requestAnimationFrame(i),ael:(i,t,e,s)=>i.addEventListener(t,e,s),rel:(i,t,e,s)=>i.removeEventListener(t,e,s),ce:(i,t)=>new CustomEvent(i,t)},Mn=(()=>{let i=!1;try{k.addEventListener("e",null,Object.defineProperty({},"passive",{get(){i=!0}}))}catch{}return i})(),jn=i=>Promise.resolve(i),Nn=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Di=(i,t,e,s)=>{e&&e.map(([n,r,o])=>{const a=Bn(i,n),l=Fn(t,o),c=Hn(n);y.ael(a,r,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>y.rel(a,r,l,c))})},Fn=(i,t)=>e=>{try{z.lazyLoad||i.$hostElement$[t](e)}catch(s){dt(s)}},Bn=(i,t)=>t&4?k:t&8?Ut:t&16?k.body:i,Hn=i=>Mn?{passive:(i&1)!==0,capture:(i&2)!==0}:(i&2)!==0,Ge="http://www.w3.org/1999/xlink",F=(i,t="")=>()=>{},Ye=new WeakMap,zn=(i,t,e)=>{let s=Et.get(i);Nn&&e?(s=s||new CSSStyleSheet,s.replace(t)):s=t,Et.set(i,s)},Dn=(i,t,e,s)=>{let n=Wi(t,e),r=Et.get(n);if(i=i.nodeType===11?i:k,r)if(typeof r=="string"){i=i.head||i;let o=Ye.get(i),a;o||Ye.set(i,o=new Set),o.has(n)||(a=k.createElement("style"),a.innerHTML=r,i.insertBefore(a,i.querySelector("link")),o&&o.add(n))}else i.adoptedStyleSheets.includes(r)||(i.adoptedStyleSheets=[...i.adoptedStyleSheets,r]);return n},Wn=i=>{const t=i.$cmpMeta$,e=i.$hostElement$,s=t.$flags$,n=F("attachStyles",t.$tagName$),r=Dn(e.shadowRoot?e.shadowRoot:e.getRootNode(),t,i.$modeName$);s&10&&(e["s-sc"]=r,e.classList.add(r+"-h"),s&2&&e.classList.add(r+"-s")),n()},Wi=(i,t)=>"sc-"+(t&&i.$flags$&32?i.$tagName$+"-"+t:i.$tagName$),qn=i=>yr.map(t=>t(i)).find(t=>!!t),Ze={},Gn="http://www.w3.org/2000/svg",Yn="http://www.w3.org/1999/xhtml",Zn=i=>i!=null,de=i=>(i=typeof i,i==="object"||i==="function"),G=(i,t,...e)=>{let s=null,n=null,r=null,o=!1,a=!1,l=[];const c=h=>{for(let d=0;d<h.length;d++)s=h[d],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((o=typeof i!="function"&&!de(s))&&(s=String(s)),o&&a?l[l.length-1].$text$+=s:l.push(o?kt(null,s):s),a=o)};if(c(e),t){t.key&&(n=t.key),t.name&&(r=t.name);{const h=t.className||t.class;h&&(t.class=typeof h!="object"?h:Object.keys(h).filter(d=>h[d]).join(" "))}}if(typeof i=="function")return i(t===null?{}:t,l,Xn);const u=kt(i,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=n,u.$name$=r,u},kt=(i,t)=>{const e={$flags$:0,$tag$:i,$text$:t,$elm$:null,$children$:null};return e.$attrs$=null,e.$key$=null,e.$name$=null,e},fe={},Kn=i=>i&&i.$tag$===fe,Xn={forEach:(i,t)=>i.map(Ke).forEach(t),map:(i,t)=>i.map(Ke).map(t).map(Qn)},Ke=i=>({vattrs:i.$attrs$,vchildren:i.$children$,vkey:i.$key$,vname:i.$name$,vtag:i.$tag$,vtext:i.$text$}),Qn=i=>{if(typeof i.vtag=="function"){const e=Object.assign({},i.vattrs);return i.vkey&&(e.key=i.vkey),i.vname&&(e.name=i.vname),G(i.vtag,e,...i.vchildren||[])}const t=kt(i.vtag,i.vtext);return t.$attrs$=i.vattrs,t.$children$=i.vchildren,t.$key$=i.vkey,t.$name$=i.vname,t},Xe=(i,t,e,s,n,r)=>{if(e!==s){let o=ti(i,t),a=t.toLowerCase();if(t==="class"){const l=i.classList,c=Qe(e),u=Qe(s);l.remove(...c.filter(h=>h&&!u.includes(h))),l.add(...u.filter(h=>h&&!c.includes(h)))}else if(t==="style"){for(const l in e)(!s||s[l]==null)&&(l.includes("-")?i.style.removeProperty(l):i.style[l]="");for(const l in s)(!e||s[l]!==e[l])&&(l.includes("-")?i.style.setProperty(l,s[l]):i.style[l]=s[l])}else if(t!=="key")if(t==="ref")s&&s(i);else if(!i.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):ti(Ut,a)?t=a.slice(2):t=a[2]+t.slice(3),e&&y.rel(i,t,e,!1),s&&y.ael(i,t,s,!1);else{const l=de(s);if((o||l&&s!==null)&&!n)try{if(i.tagName.includes("-"))i[t]=s;else{let u=s??"";t==="list"?o=!1:(e==null||i[t]!=u)&&(i[t]=u)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),s==null||s===!1?(s!==!1||i.getAttribute(t)==="")&&(c?i.removeAttributeNS(Ge,t):i.removeAttribute(t)):(!o||r&4||n)&&!l&&(s=s===!0?"":s,c?i.setAttributeNS(Ge,t,s):i.setAttribute(t,s))}}},Jn=/\s/,Qe=i=>i?i.split(Jn):[],qi=(i,t,e,s)=>{const n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=i&&i.$attrs$||Ze,o=t.$attrs$||Ze;for(s in r)s in o||Xe(n,s,r[s],void 0,e,t.$flags$);for(s in o)Xe(n,s,r[s],o[s],e,t.$flags$)},Ct=(i,t,e,s)=>{let n=t.$children$[e],r=0,o,a,l;if(Hi||(he=!0,n.$tag$==="slot"&&(D&&s.classList.add(D+"-s"),n.$flags$|=n.$children$?2:1)),n.$text$!==null)o=n.$elm$=k.createTextNode(n.$text$);else if(n.$flags$&1)o=n.$elm$=k.createTextNode("");else{if(b||(b=n.$tag$==="svg"),o=n.$elm$=k.createElementNS(b?Gn:Yn,n.$flags$&2?"slot-fb":n.$tag$),b&&n.$tag$==="foreignObject"&&(b=!1),qi(null,n,b),Zn(D)&&o["s-si"]!==D&&o.classList.add(o["s-si"]=D),n.$children$)for(r=0;r<n.$children$.length;++r)a=Ct(i,n,r,o),a&&o.appendChild(a);n.$tag$==="svg"?b=!1:o.tagName==="foreignObject"&&(b=!0)}return o["s-hn"]=Rt,n.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=Bi,o["s-sn"]=n.$name$||"",l=i&&i.$children$&&i.$children$[e],l&&l.$tag$===n.$tag$&&i.$elm$&&ct(i.$elm$,!1)),o},ct=(i,t)=>{y.$flags$|=1;const e=i.childNodes;for(let s=e.length-1;s>=0;s--){const n=e[s];n["s-hn"]!==Rt&&n["s-ol"]&&(Zi(n).insertBefore(n,pe(n)),n["s-ol"].remove(),n["s-ol"]=void 0,he=!0),t&&ct(n,t)}y.$flags$&=-2},Gi=(i,t,e,s,n,r)=>{let o=i["s-cr"]&&i["s-cr"].parentNode||i,a;for(o.shadowRoot&&o.tagName===Rt&&(o=o.shadowRoot);n<=r;++n)s[n]&&(a=Ct(null,e,n,i),a&&(s[n].$elm$=a,o.insertBefore(a,pe(t))))},Yi=(i,t,e,s,n)=>{for(;t<=e;++t)(s=i[t])&&(n=s.$elm$,Qi(s),At=!0,n["s-ol"]?n["s-ol"].remove():ct(n,!0),n.remove())},Vn=(i,t,e,s)=>{let n=0,r=0,o=0,a=0,l=t.length-1,c=t[0],u=t[l],h=s.length-1,d=s[0],f=s[h],v,g;for(;n<=l&&r<=h;)if(c==null)c=t[++n];else if(u==null)u=t[--l];else if(d==null)d=s[++r];else if(f==null)f=s[--h];else if(gt(c,d))W(c,d),c=t[++n],d=s[++r];else if(gt(u,f))W(u,f),u=t[--l],f=s[--h];else if(gt(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&ct(c.$elm$.parentNode,!1),W(c,f),i.insertBefore(c.$elm$,u.$elm$.nextSibling),c=t[++n],f=s[--h];else if(gt(u,d))(c.$tag$==="slot"||f.$tag$==="slot")&&ct(u.$elm$.parentNode,!1),W(u,d),i.insertBefore(u.$elm$,c.$elm$),u=t[--l],d=s[++r];else{for(o=-1,a=n;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){o=a;break}o>=0?(g=t[o],g.$tag$!==d.$tag$?v=Ct(t&&t[r],e,o,i):(W(g,d),t[o]=void 0,v=g.$elm$),d=s[++r]):(v=Ct(t&&t[r],e,r,i),d=s[++r]),v&&Zi(c.$elm$).insertBefore(v,pe(c.$elm$))}n>l?Gi(i,s[h+1]==null?null:s[h+1].$elm$,e,s,r,h):r>h&&Yi(t,n,l)},gt=(i,t)=>i.$tag$===t.$tag$?i.$tag$==="slot"?i.$name$===t.$name$:i.$key$===t.$key$:!1,pe=i=>i&&i["s-ol"]||i,Zi=i=>(i["s-ol"]?i["s-ol"]:i).parentNode,W=(i,t)=>{const e=t.$elm$=i.$elm$,s=i.$children$,n=t.$children$,r=t.$tag$,o=t.$text$;let a;o===null?(b=r==="svg"?!0:r==="foreignObject"?!1:b,r==="slot"||qi(i,t,b),s!==null&&n!==null?Vn(e,s,t,n):n!==null?(i.$text$!==null&&(e.textContent=""),Gi(e,null,t,n,0,n.length-1)):s!==null&&Yi(s,0,s.length-1),b&&r==="svg"&&(b=!1)):(a=e["s-cr"])?a.parentNode.textContent=o:i.$text$!==o&&(e.data=o)},Ki=i=>{let t=i.childNodes,e,s,n,r,o,a;for(s=0,n=t.length;s<n;s++)if(e=t[s],e.nodeType===1){if(e["s-sr"]){for(o=e["s-sn"],e.hidden=!1,r=0;r<n;r++)if(a=t[r].nodeType,t[r]["s-hn"]!==e["s-hn"]||o!==""){if(a===1&&o===t[r].getAttribute("slot")){e.hidden=!0;break}}else if(a===1||a===3&&t[r].textContent.trim()!==""){e.hidden=!0;break}}Ki(e)}},S=[],Xi=i=>{let t,e,s,n,r,o,a=0,l=i.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(e=t["s-cr"])&&e.parentNode)for(s=e.parentNode.childNodes,n=t["s-sn"],o=s.length-1;o>=0;o--)e=s[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"]&&(Je(e,n)?(r=S.find(u=>u.$nodeToRelocate$===e),At=!0,e["s-sn"]=e["s-sn"]||n,r?r.$slotRefNode$=t:S.push({$slotRefNode$:t,$nodeToRelocate$:e}),e["s-sr"]&&S.map(u=>{Je(u.$nodeToRelocate$,e["s-sn"])&&(r=S.find(h=>h.$nodeToRelocate$===e),r&&!u.$slotRefNode$&&(u.$slotRefNode$=r.$slotRefNode$))})):S.some(u=>u.$nodeToRelocate$===e)||S.push({$nodeToRelocate$:e}));t.nodeType===1&&Xi(t)}},Je=(i,t)=>i.nodeType===1?i.getAttribute("slot")===null&&t===""||i.getAttribute("slot")===t:i["s-sn"]===t?!0:t==="",Qi=i=>{i.$attrs$&&i.$attrs$.ref&&i.$attrs$.ref(null),i.$children$&&i.$children$.map(Qi)},tr=(i,t)=>{const e=i.$hostElement$,s=i.$cmpMeta$,n=i.$vnode$||kt(null,null),r=Kn(t)?t:G(null,null,t);Rt=e.tagName,s.$attrsToReflect$&&(r.$attrs$=r.$attrs$||{},s.$attrsToReflect$.map(([o,a])=>r.$attrs$[a]=e[o])),r.$tag$=null,r.$flags$|=4,i.$vnode$=r,r.$elm$=n.$elm$=e.shadowRoot||e,D=e["s-sc"],Bi=e["s-cr"],Hi=(s.$flags$&1)!==0,At=!1,W(n,r);{if(y.$flags$|=1,he){Xi(r.$elm$);let o,a,l,c,u,h,d=0;for(;d<S.length;d++)o=S[d],a=o.$nodeToRelocate$,a["s-ol"]||(l=k.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(d=0;d<S.length;d++)if(o=S[d],a=o.$nodeToRelocate$,o.$slotRefNode$){for(c=o.$slotRefNode$.parentNode,u=o.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(h=l["s-nr"],h&&h["s-sn"]===a["s-sn"]&&c===h.parentNode&&(h=h.nextSibling,!h||!h["s-nr"])){u=h;break}(!u&&c!==a.parentNode||a.nextSibling!==u)&&a!==u&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,u))}else a.nodeType===1&&(a.hidden=!0)}At&&Ki(r.$elm$),y.$flags$&=-2,S.length=0}},er=i=>i,ir=(i,t,e)=>{const s=er(i);return{emit:n=>sr(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:n})}},sr=(i,t,e)=>{const s=y.ce(t,e);return i.dispatchEvent(s),s},nr=(i,t)=>{},Ji=(i,t)=>(i.$flags$|=16,nr(i,i.$ancestorComponent$),wr(()=>rr(i,t))),rr=(i,t)=>{const e=i.$hostElement$,s=F("scheduleUpdate",i.$cmpMeta$.$tagName$),n=e;let r;return t?r=Y(n,"componentWillLoad"):r=Y(n,"componentWillUpdate"),r=Ve(r,()=>Y(n,"componentWillRender")),s(),Ve(r,()=>or(i,n,t))},or=async(i,t,e)=>{const s=i.$hostElement$,n=F("update",i.$cmpMeta$.$tagName$);s["s-rc"],e&&Wn(i);const r=F("render",i.$cmpMeta$.$tagName$);ar(i,t,s),r(),n(),lr(i)},ar=(i,t,e)=>{try{qe=t,t=t.render&&t.render(),i.$flags$&=-17,i.$flags$|=2,(z.hasRenderFn||z.reflect)&&(z.vdomRender||z.reflect)&&(z.hydrateServerSide||tr(i,t))}catch(a){dt(a,i.$hostElement$)}return qe=null,null},lr=i=>{const t=i.$cmpMeta$.$tagName$,e=i.$hostElement$,s=F("postUpdate",t),n=e;i.$ancestorComponent$,Y(n,"componentDidRender"),i.$flags$&64?(Y(n,"componentDidUpdate"),s()):(i.$flags$|=64,Y(n,"componentDidLoad"),s())},Y=(i,t,e)=>{if(i&&i[t])try{return i[t](e)}catch(s){dt(s)}},Ve=(i,t)=>i&&i.then?i.then(t):t(),cr=(i,t)=>i!=null&&!de(i)?t&4?i==="false"?!1:i===""||!!i:t&2?parseFloat(i):t&1?String(i):i:i,ur=(i,t)=>Mt(i).$instanceValues$.get(t),hr=(i,t,e,s)=>{const n=Mt(i),r=i,o=n.$instanceValues$.get(t),a=n.$flags$,l=r;e=cr(e,s.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(e);if(e!==o&&!c){n.$instanceValues$.set(t,e);{if(s.$watchers$&&a&128){const h=s.$watchers$[t];h&&h.map(d=>{try{l[d](e,o,t)}catch(f){dt(f,r)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(e,o,t)===!1)return;Ji(n,!1)}}}},dr=(i,t,e)=>{if(t.$members$){i.watchers&&(t.$watchers$=i.watchers);const s=Object.entries(t.$members$),n=i.prototype;s.map(([r,[o]])=>{(o&31||o&32)&&Object.defineProperty(n,r,{get(){return ur(this,r)},set(a){hr(this,r,a,t)},configurable:!0,enumerable:!0})});{const r=new Map;n.attributeChangedCallback=function(o,a,l){y.jmp(()=>{const c=r.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},i.observedAttributes=s.filter(([o,a])=>a[0]&15).map(([o,a])=>{const l=a[1]||o;return r.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return i},fr=async(i,t,e,s,n)=>{if((t.$flags$&32)===0&&(n=i.constructor,t.$flags$|=32,customElements.whenDefined(e.$tagName$).then(()=>t.$flags$|=128),n.style)){let o=n.style;typeof o!="string"&&(o=o[t.$modeName$=qn(i)]);const a=Wi(e,t.$modeName$);if(!Et.has(a)){const l=F("registerStyles",e.$tagName$);zn(a,o,!!(e.$flags$&1)),l()}}t.$ancestorComponent$,Ji(t,!0)},pr=i=>{},gr=i=>{if((y.$flags$&1)===0){const t=Mt(i),e=t.$cmpMeta$,s=F("connectedCallback",e.$tagName$);t.$flags$&1?(Di(i,t,e.$listeners$),pr(t.$lazyInstance$)):(t.$flags$|=1,e.$flags$&12&&vr(i),e.$members$&&Object.entries(e.$members$).map(([n,[r]])=>{if(r&31&&i.hasOwnProperty(n)){const o=i[n];delete i[n],i[n]=o}}),fr(i,t,e)),s()}},vr=i=>{const t=i["s-cr"]=k.createComment("");t["s-cn"]=!0,i.insertBefore(t,i.firstChild)},$r=i=>{if((y.$flags$&1)===0){const t=Mt(i);t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0)}},Vi=(i,t)=>{const e={$flags$:t[0],$tagName$:t[1]};e.$members$=t[2],e.$listeners$=t[3],e.$watchers$=i.$watchers$,e.$attrsToReflect$=[];const s=i.prototype.connectedCallback,n=i.prototype.disconnectedCallback;return Object.assign(i.prototype,{__registerHost(){mr(this,e)},connectedCallback(){gr(this),s&&s.call(this)},disconnectedCallback(){$r(this),n&&n.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(e.$flags$&16)})}}),i.is=e.$tagName$,dr(i,e)},ts=new WeakMap,Mt=i=>ts.get(i),mr=(i,t)=>{const e={$flags$:0,$hostElement$:i,$cmpMeta$:t,$instanceValues$:new Map};return Di(i,e,t.$listeners$),ts.set(i,e)},ti=(i,t)=>t in i,dt=(i,t)=>(0,console.error)(i,t),Et=new Map,yr=[],ei=[],es=[],br=(i,t)=>e=>{i.push(e),Vt||(Vt=!0,t&&y.$flags$&4?_r(te):y.raf(te))},ii=i=>{for(let t=0;t<i.length;t++)try{i[t](performance.now())}catch(e){dt(e)}i.length=0},te=()=>{ii(ei),ii(es),(Vt=ei.length>0)&&y.raf(te)},_r=i=>jn().then(i),wr=br(es,!0),xr=(i={})=>{const{content:t="",title:e,attributes:s=[]}=i;let n="",r=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...s];return e&&(n=`<title>${e}</title>`),`<svg ${r.map(a=>`${a.name}="${a.value}"`).join(" ")}>${n}${t}</svg>`},Sr=i=>i.replace(/<(\/?)svg([^>]*)>/g,"").trim();function Ar(i){return`${i.getFullYear()}.${i.getMonth()+1}`}class kr{constructor(t){this.voca_component=t,this.voca_added=Ar(new Date)}}const Cr="telia-vst{display:none}",Er=Vi(class extends zi{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=ir(this,"vocaInternalUStats")}connectedCallback(){this.vocaInternalUStats.emit(new kr(this.dataTrackingId))}render(){return G(fe,null)}static get style(){return Cr}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function is(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,Er);break}})}is();function ee(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function Or(){if(typeof ee().vocadsIcons!==void 0)return ee().vocadsIcons}function Tr(){return ee().vocadsIconsRegistered}const Pr=".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}",Ir=Vi(class extends zi{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(Tr()&&this.name){const i=Or();return i[this.name]?i[this.name].svg:""}return this.name&&console.warn(this.name,"Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"),""}render(){let i=this.getSvgString(),t=[{name:"viewBox",value:"0 0 64 64"}];this.allyTitle?t=[...t,{name:"role",value:"img"}]:t=[...t,{name:"aria-hidden",value:"true"}];const e=xr({content:Sr(i),attributes:t,title:this.allyTitle});return G(fe,{class:`telia-icon telia-icon--${this.size}`},G("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:e}),G("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return Pr}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function Lr(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,Ir);break;case"telia-vst":customElements.get(t)||is();break}})}Lr();var Rr=Object.defineProperty,V=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&Rr(t,e,n),n};const si=Ni(A),be=class be extends si{constructor(){super(...arguments),this.optionsIsVisible=!1,this.authState="non-authenticated",this.UserName="",this.authUrl="",this.provider=void 0,this.idref=void 0,this.options=new Un(this),this.optionsRef=xt(),this.optionsTriggerRef=xt(),this._onClickOutside=t=>{!this.optionsTriggerRef.value||!this.optionsRef.value||t.composedPath().includes(this.optionsTriggerRef.value)||t.composedPath().includes(this.optionsRef.value)||(this.optionsIsVisible=!1)}}addOption(t){return this.options.addOption(t)}removeOption(t){return this.options.removeOption(t)}_onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}_onMinimizeClick(){this.application.trigger?this.application.trigger.toggleActive():(this.notify("widget-minimize",{widgetId:this.application.id}),this.application.storage.set("open",!1))}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}connectedCallback(){super.connectedCallback();const t=this.application.storage.get("auth");t!=null&&t.authenticated&&(this.UserName=t==null?void 0:t.name,this.authState="authenticated"),document.addEventListener("click",this._onClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onClickOutside)}_onStartAuth(){this.provider.handleAuthentication(this.idref)}_showLogoutForm(){this.provider.showLogoutConfirmDialog()}_logout(){this.application.storage.removeItem("auth"),this.authState="non-authenticated",this.UserName="",this.authUrl=""}render(){var l,c,u,h,d;const t=this.application.branding(),e=(l=t==null?void 0:t.graphics)==null?void 0:l.logotype,s=this.application.texts,n=s.get("widget-header.header","ACE Widget"),r=this.application.settings.components.conversation,o=(u=(c=this.application.settings)==null?void 0:c.auth)==null?void 0:u.shouldUseAuth,a=(d=(h=r==null?void 0:r.properties)==null?void 0:h.chat)==null?void 0:d.isThirdPartyWidget;return m` <div class="widget-header">
458
+ `];let X=ye;he([_({attribute:!0})],X.prototype,"name");he([x()],X.prototype,"widget");he([x()],X.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",_t);customElements.get("ace-trigger")||customElements.define("ace-trigger",O);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Jt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",lt);customElements.get("ace-widget")||customElements.define("ace-widget",X);const In=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>(+i^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+i/4).toString(16)),Ln=()=>typeof crypto.randomUUID=="function"?crypto.randomUUID():In();class Rn{constructor(t,e,s,n,r,o,a=!0){this.label=t,this.icon=e,this.onClick=s,this.closeOnClick=n,this.key=r,this.update=new It,this.id=Ln(),this._controller=o,this.enabled=a}updateLabel(t){this.label=t,this.update.next()}updateIcon(t){this.icon=t,this.update.next()}remove(){this._controller.removeOption(this)}subscribe(){return this.update.asObservable()}}class Un{constructor(t){this._options=[],this._subscription=null,this._host=t,t.addController(this)}hostConnected(){}hostDisconnected(){this._subscription&&this._subscription.unsubscribe(),this._options=[]}addOption(t){const e=new Rn(t.label,t.icon,t.onClick,t.closeOnClick,t.key,this);return this._options.push(e),this.handleUpdate(),e}removeOption(t){this._options=this._options.filter(e=>e.id!==t.id)}handleUpdate(){this._subscription&&this._subscription.unsubscribe();const t=this._options.map(e=>e.subscribe());this._subscription=Ns(t).subscribe(()=>{this._host.requestUpdate()})}set options(t){this._options=t,this._host.requestUpdate()}get options(){return this._options}hasOptions(){return this._options.length>0}}const z={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let D,Bi,Rt,Hi=!1,At=!1,ue=!1,b=!1,qe=null,Vt=!1;const Ut=typeof window<"u"?window:{},k=Ut.document||{head:{}},zi=Ut.HTMLElement||class{},y={$flags$:0,$resourcesUrl$:"",jmp:i=>i(),raf:i=>requestAnimationFrame(i),ael:(i,t,e,s)=>i.addEventListener(t,e,s),rel:(i,t,e,s)=>i.removeEventListener(t,e,s),ce:(i,t)=>new CustomEvent(i,t)},Mn=(()=>{let i=!1;try{k.addEventListener("e",null,Object.defineProperty({},"passive",{get(){i=!0}}))}catch{}return i})(),jn=i=>Promise.resolve(i),Nn=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Di=(i,t,e,s)=>{e&&e.map(([n,r,o])=>{const a=Bn(i,n),l=Fn(t,o),c=Hn(n);y.ael(a,r,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>y.rel(a,r,l,c))})},Fn=(i,t)=>e=>{try{z.lazyLoad||i.$hostElement$[t](e)}catch(s){dt(s)}},Bn=(i,t)=>t&4?k:t&8?Ut:t&16?k.body:i,Hn=i=>Mn?{passive:(i&1)!==0,capture:(i&2)!==0}:(i&2)!==0,Ge="http://www.w3.org/1999/xlink",F=(i,t="")=>()=>{},Ye=new WeakMap,zn=(i,t,e)=>{let s=Et.get(i);Nn&&e?(s=s||new CSSStyleSheet,s.replace(t)):s=t,Et.set(i,s)},Dn=(i,t,e,s)=>{let n=Wi(t,e),r=Et.get(n);if(i=i.nodeType===11?i:k,r)if(typeof r=="string"){i=i.head||i;let o=Ye.get(i),a;o||Ye.set(i,o=new Set),o.has(n)||(a=k.createElement("style"),a.innerHTML=r,i.insertBefore(a,i.querySelector("link")),o&&o.add(n))}else i.adoptedStyleSheets.includes(r)||(i.adoptedStyleSheets=[...i.adoptedStyleSheets,r]);return n},Wn=i=>{const t=i.$cmpMeta$,e=i.$hostElement$,s=t.$flags$,n=F("attachStyles",t.$tagName$),r=Dn(e.shadowRoot?e.shadowRoot:e.getRootNode(),t,i.$modeName$);s&10&&(e["s-sc"]=r,e.classList.add(r+"-h"),s&2&&e.classList.add(r+"-s")),n()},Wi=(i,t)=>"sc-"+(t&&i.$flags$&32?i.$tagName$+"-"+t:i.$tagName$),qn=i=>yr.map(t=>t(i)).find(t=>!!t),Ze={},Gn="http://www.w3.org/2000/svg",Yn="http://www.w3.org/1999/xhtml",Zn=i=>i!=null,de=i=>(i=typeof i,i==="object"||i==="function"),G=(i,t,...e)=>{let s=null,n=null,r=null,o=!1,a=!1,l=[];const c=u=>{for(let d=0;d<u.length;d++)s=u[d],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((o=typeof i!="function"&&!de(s))&&(s=String(s)),o&&a?l[l.length-1].$text$+=s:l.push(o?kt(null,s):s),a=o)};if(c(e),t){t.key&&(n=t.key),t.name&&(r=t.name);{const u=t.className||t.class;u&&(t.class=typeof u!="object"?u:Object.keys(u).filter(d=>u[d]).join(" "))}}if(typeof i=="function")return i(t===null?{}:t,l,Xn);const h=kt(i,null);return h.$attrs$=t,l.length>0&&(h.$children$=l),h.$key$=n,h.$name$=r,h},kt=(i,t)=>{const e={$flags$:0,$tag$:i,$text$:t,$elm$:null,$children$:null};return e.$attrs$=null,e.$key$=null,e.$name$=null,e},fe={},Kn=i=>i&&i.$tag$===fe,Xn={forEach:(i,t)=>i.map(Ke).forEach(t),map:(i,t)=>i.map(Ke).map(t).map(Qn)},Ke=i=>({vattrs:i.$attrs$,vchildren:i.$children$,vkey:i.$key$,vname:i.$name$,vtag:i.$tag$,vtext:i.$text$}),Qn=i=>{if(typeof i.vtag=="function"){const e=Object.assign({},i.vattrs);return i.vkey&&(e.key=i.vkey),i.vname&&(e.name=i.vname),G(i.vtag,e,...i.vchildren||[])}const t=kt(i.vtag,i.vtext);return t.$attrs$=i.vattrs,t.$children$=i.vchildren,t.$key$=i.vkey,t.$name$=i.vname,t},Xe=(i,t,e,s,n,r)=>{if(e!==s){let o=ti(i,t),a=t.toLowerCase();if(t==="class"){const l=i.classList,c=Qe(e),h=Qe(s);l.remove(...c.filter(u=>u&&!h.includes(u))),l.add(...h.filter(u=>u&&!c.includes(u)))}else if(t==="style"){for(const l in e)(!s||s[l]==null)&&(l.includes("-")?i.style.removeProperty(l):i.style[l]="");for(const l in s)(!e||s[l]!==e[l])&&(l.includes("-")?i.style.setProperty(l,s[l]):i.style[l]=s[l])}else if(t!=="key")if(t==="ref")s&&s(i);else if(!i.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):ti(Ut,a)?t=a.slice(2):t=a[2]+t.slice(3),e&&y.rel(i,t,e,!1),s&&y.ael(i,t,s,!1);else{const l=de(s);if((o||l&&s!==null)&&!n)try{if(i.tagName.includes("-"))i[t]=s;else{let h=s??"";t==="list"?o=!1:(e==null||i[t]!=h)&&(i[t]=h)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),s==null||s===!1?(s!==!1||i.getAttribute(t)==="")&&(c?i.removeAttributeNS(Ge,t):i.removeAttribute(t)):(!o||r&4||n)&&!l&&(s=s===!0?"":s,c?i.setAttributeNS(Ge,t,s):i.setAttribute(t,s))}}},Jn=/\s/,Qe=i=>i?i.split(Jn):[],qi=(i,t,e,s)=>{const n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=i&&i.$attrs$||Ze,o=t.$attrs$||Ze;for(s in r)s in o||Xe(n,s,r[s],void 0,e,t.$flags$);for(s in o)Xe(n,s,r[s],o[s],e,t.$flags$)},Ct=(i,t,e,s)=>{let n=t.$children$[e],r=0,o,a,l;if(Hi||(ue=!0,n.$tag$==="slot"&&(D&&s.classList.add(D+"-s"),n.$flags$|=n.$children$?2:1)),n.$text$!==null)o=n.$elm$=k.createTextNode(n.$text$);else if(n.$flags$&1)o=n.$elm$=k.createTextNode("");else{if(b||(b=n.$tag$==="svg"),o=n.$elm$=k.createElementNS(b?Gn:Yn,n.$flags$&2?"slot-fb":n.$tag$),b&&n.$tag$==="foreignObject"&&(b=!1),qi(null,n,b),Zn(D)&&o["s-si"]!==D&&o.classList.add(o["s-si"]=D),n.$children$)for(r=0;r<n.$children$.length;++r)a=Ct(i,n,r,o),a&&o.appendChild(a);n.$tag$==="svg"?b=!1:o.tagName==="foreignObject"&&(b=!0)}return o["s-hn"]=Rt,n.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=Bi,o["s-sn"]=n.$name$||"",l=i&&i.$children$&&i.$children$[e],l&&l.$tag$===n.$tag$&&i.$elm$&&ct(i.$elm$,!1)),o},ct=(i,t)=>{y.$flags$|=1;const e=i.childNodes;for(let s=e.length-1;s>=0;s--){const n=e[s];n["s-hn"]!==Rt&&n["s-ol"]&&(Zi(n).insertBefore(n,pe(n)),n["s-ol"].remove(),n["s-ol"]=void 0,ue=!0),t&&ct(n,t)}y.$flags$&=-2},Gi=(i,t,e,s,n,r)=>{let o=i["s-cr"]&&i["s-cr"].parentNode||i,a;for(o.shadowRoot&&o.tagName===Rt&&(o=o.shadowRoot);n<=r;++n)s[n]&&(a=Ct(null,e,n,i),a&&(s[n].$elm$=a,o.insertBefore(a,pe(t))))},Yi=(i,t,e,s,n)=>{for(;t<=e;++t)(s=i[t])&&(n=s.$elm$,Qi(s),At=!0,n["s-ol"]?n["s-ol"].remove():ct(n,!0),n.remove())},Vn=(i,t,e,s)=>{let n=0,r=0,o=0,a=0,l=t.length-1,c=t[0],h=t[l],u=s.length-1,d=s[0],f=s[u],v,g;for(;n<=l&&r<=u;)if(c==null)c=t[++n];else if(h==null)h=t[--l];else if(d==null)d=s[++r];else if(f==null)f=s[--u];else if(gt(c,d))W(c,d),c=t[++n],d=s[++r];else if(gt(h,f))W(h,f),h=t[--l],f=s[--u];else if(gt(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&ct(c.$elm$.parentNode,!1),W(c,f),i.insertBefore(c.$elm$,h.$elm$.nextSibling),c=t[++n],f=s[--u];else if(gt(h,d))(c.$tag$==="slot"||f.$tag$==="slot")&&ct(h.$elm$.parentNode,!1),W(h,d),i.insertBefore(h.$elm$,c.$elm$),h=t[--l],d=s[++r];else{for(o=-1,a=n;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){o=a;break}o>=0?(g=t[o],g.$tag$!==d.$tag$?v=Ct(t&&t[r],e,o,i):(W(g,d),t[o]=void 0,v=g.$elm$),d=s[++r]):(v=Ct(t&&t[r],e,r,i),d=s[++r]),v&&Zi(c.$elm$).insertBefore(v,pe(c.$elm$))}n>l?Gi(i,s[u+1]==null?null:s[u+1].$elm$,e,s,r,u):r>u&&Yi(t,n,l)},gt=(i,t)=>i.$tag$===t.$tag$?i.$tag$==="slot"?i.$name$===t.$name$:i.$key$===t.$key$:!1,pe=i=>i&&i["s-ol"]||i,Zi=i=>(i["s-ol"]?i["s-ol"]:i).parentNode,W=(i,t)=>{const e=t.$elm$=i.$elm$,s=i.$children$,n=t.$children$,r=t.$tag$,o=t.$text$;let a;o===null?(b=r==="svg"?!0:r==="foreignObject"?!1:b,r==="slot"||qi(i,t,b),s!==null&&n!==null?Vn(e,s,t,n):n!==null?(i.$text$!==null&&(e.textContent=""),Gi(e,null,t,n,0,n.length-1)):s!==null&&Yi(s,0,s.length-1),b&&r==="svg"&&(b=!1)):(a=e["s-cr"])?a.parentNode.textContent=o:i.$text$!==o&&(e.data=o)},Ki=i=>{let t=i.childNodes,e,s,n,r,o,a;for(s=0,n=t.length;s<n;s++)if(e=t[s],e.nodeType===1){if(e["s-sr"]){for(o=e["s-sn"],e.hidden=!1,r=0;r<n;r++)if(a=t[r].nodeType,t[r]["s-hn"]!==e["s-hn"]||o!==""){if(a===1&&o===t[r].getAttribute("slot")){e.hidden=!0;break}}else if(a===1||a===3&&t[r].textContent.trim()!==""){e.hidden=!0;break}}Ki(e)}},S=[],Xi=i=>{let t,e,s,n,r,o,a=0,l=i.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(e=t["s-cr"])&&e.parentNode)for(s=e.parentNode.childNodes,n=t["s-sn"],o=s.length-1;o>=0;o--)e=s[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"]&&(Je(e,n)?(r=S.find(h=>h.$nodeToRelocate$===e),At=!0,e["s-sn"]=e["s-sn"]||n,r?r.$slotRefNode$=t:S.push({$slotRefNode$:t,$nodeToRelocate$:e}),e["s-sr"]&&S.map(h=>{Je(h.$nodeToRelocate$,e["s-sn"])&&(r=S.find(u=>u.$nodeToRelocate$===e),r&&!h.$slotRefNode$&&(h.$slotRefNode$=r.$slotRefNode$))})):S.some(h=>h.$nodeToRelocate$===e)||S.push({$nodeToRelocate$:e}));t.nodeType===1&&Xi(t)}},Je=(i,t)=>i.nodeType===1?i.getAttribute("slot")===null&&t===""||i.getAttribute("slot")===t:i["s-sn"]===t?!0:t==="",Qi=i=>{i.$attrs$&&i.$attrs$.ref&&i.$attrs$.ref(null),i.$children$&&i.$children$.map(Qi)},tr=(i,t)=>{const e=i.$hostElement$,s=i.$cmpMeta$,n=i.$vnode$||kt(null,null),r=Kn(t)?t:G(null,null,t);Rt=e.tagName,s.$attrsToReflect$&&(r.$attrs$=r.$attrs$||{},s.$attrsToReflect$.map(([o,a])=>r.$attrs$[a]=e[o])),r.$tag$=null,r.$flags$|=4,i.$vnode$=r,r.$elm$=n.$elm$=e.shadowRoot||e,D=e["s-sc"],Bi=e["s-cr"],Hi=(s.$flags$&1)!==0,At=!1,W(n,r);{if(y.$flags$|=1,ue){Xi(r.$elm$);let o,a,l,c,h,u,d=0;for(;d<S.length;d++)o=S[d],a=o.$nodeToRelocate$,a["s-ol"]||(l=k.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(d=0;d<S.length;d++)if(o=S[d],a=o.$nodeToRelocate$,o.$slotRefNode$){for(c=o.$slotRefNode$.parentNode,h=o.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(u=l["s-nr"],u&&u["s-sn"]===a["s-sn"]&&c===u.parentNode&&(u=u.nextSibling,!u||!u["s-nr"])){h=u;break}(!h&&c!==a.parentNode||a.nextSibling!==h)&&a!==h&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,h))}else a.nodeType===1&&(a.hidden=!0)}At&&Ki(r.$elm$),y.$flags$&=-2,S.length=0}},er=i=>i,ir=(i,t,e)=>{const s=er(i);return{emit:n=>sr(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:n})}},sr=(i,t,e)=>{const s=y.ce(t,e);return i.dispatchEvent(s),s},nr=(i,t)=>{},Ji=(i,t)=>(i.$flags$|=16,nr(i,i.$ancestorComponent$),wr(()=>rr(i,t))),rr=(i,t)=>{const e=i.$hostElement$,s=F("scheduleUpdate",i.$cmpMeta$.$tagName$),n=e;let r;return t?r=Y(n,"componentWillLoad"):r=Y(n,"componentWillUpdate"),r=Ve(r,()=>Y(n,"componentWillRender")),s(),Ve(r,()=>or(i,n,t))},or=async(i,t,e)=>{const s=i.$hostElement$,n=F("update",i.$cmpMeta$.$tagName$);s["s-rc"],e&&Wn(i);const r=F("render",i.$cmpMeta$.$tagName$);ar(i,t,s),r(),n(),lr(i)},ar=(i,t,e)=>{try{qe=t,t=t.render&&t.render(),i.$flags$&=-17,i.$flags$|=2,(z.hasRenderFn||z.reflect)&&(z.vdomRender||z.reflect)&&(z.hydrateServerSide||tr(i,t))}catch(a){dt(a,i.$hostElement$)}return qe=null,null},lr=i=>{const t=i.$cmpMeta$.$tagName$,e=i.$hostElement$,s=F("postUpdate",t),n=e;i.$ancestorComponent$,Y(n,"componentDidRender"),i.$flags$&64?(Y(n,"componentDidUpdate"),s()):(i.$flags$|=64,Y(n,"componentDidLoad"),s())},Y=(i,t,e)=>{if(i&&i[t])try{return i[t](e)}catch(s){dt(s)}},Ve=(i,t)=>i&&i.then?i.then(t):t(),cr=(i,t)=>i!=null&&!de(i)?t&4?i==="false"?!1:i===""||!!i:t&2?parseFloat(i):t&1?String(i):i:i,hr=(i,t)=>Mt(i).$instanceValues$.get(t),ur=(i,t,e,s)=>{const n=Mt(i),r=i,o=n.$instanceValues$.get(t),a=n.$flags$,l=r;e=cr(e,s.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(e);if(e!==o&&!c){n.$instanceValues$.set(t,e);{if(s.$watchers$&&a&128){const u=s.$watchers$[t];u&&u.map(d=>{try{l[d](e,o,t)}catch(f){dt(f,r)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(e,o,t)===!1)return;Ji(n,!1)}}}},dr=(i,t,e)=>{if(t.$members$){i.watchers&&(t.$watchers$=i.watchers);const s=Object.entries(t.$members$),n=i.prototype;s.map(([r,[o]])=>{(o&31||o&32)&&Object.defineProperty(n,r,{get(){return hr(this,r)},set(a){ur(this,r,a,t)},configurable:!0,enumerable:!0})});{const r=new Map;n.attributeChangedCallback=function(o,a,l){y.jmp(()=>{const c=r.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},i.observedAttributes=s.filter(([o,a])=>a[0]&15).map(([o,a])=>{const l=a[1]||o;return r.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return i},fr=async(i,t,e,s,n)=>{if((t.$flags$&32)===0&&(n=i.constructor,t.$flags$|=32,customElements.whenDefined(e.$tagName$).then(()=>t.$flags$|=128),n.style)){let o=n.style;typeof o!="string"&&(o=o[t.$modeName$=qn(i)]);const a=Wi(e,t.$modeName$);if(!Et.has(a)){const l=F("registerStyles",e.$tagName$);zn(a,o,!!(e.$flags$&1)),l()}}t.$ancestorComponent$,Ji(t,!0)},pr=i=>{},gr=i=>{if((y.$flags$&1)===0){const t=Mt(i),e=t.$cmpMeta$,s=F("connectedCallback",e.$tagName$);t.$flags$&1?(Di(i,t,e.$listeners$),pr(t.$lazyInstance$)):(t.$flags$|=1,e.$flags$&12&&vr(i),e.$members$&&Object.entries(e.$members$).map(([n,[r]])=>{if(r&31&&i.hasOwnProperty(n)){const o=i[n];delete i[n],i[n]=o}}),fr(i,t,e)),s()}},vr=i=>{const t=i["s-cr"]=k.createComment("");t["s-cn"]=!0,i.insertBefore(t,i.firstChild)},$r=i=>{if((y.$flags$&1)===0){const t=Mt(i);t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0)}},Vi=(i,t)=>{const e={$flags$:t[0],$tagName$:t[1]};e.$members$=t[2],e.$listeners$=t[3],e.$watchers$=i.$watchers$,e.$attrsToReflect$=[];const s=i.prototype.connectedCallback,n=i.prototype.disconnectedCallback;return Object.assign(i.prototype,{__registerHost(){mr(this,e)},connectedCallback(){gr(this),s&&s.call(this)},disconnectedCallback(){$r(this),n&&n.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(e.$flags$&16)})}}),i.is=e.$tagName$,dr(i,e)},ts=new WeakMap,Mt=i=>ts.get(i),mr=(i,t)=>{const e={$flags$:0,$hostElement$:i,$cmpMeta$:t,$instanceValues$:new Map};return Di(i,e,t.$listeners$),ts.set(i,e)},ti=(i,t)=>t in i,dt=(i,t)=>(0,console.error)(i,t),Et=new Map,yr=[],ei=[],es=[],br=(i,t)=>e=>{i.push(e),Vt||(Vt=!0,t&&y.$flags$&4?_r(te):y.raf(te))},ii=i=>{for(let t=0;t<i.length;t++)try{i[t](performance.now())}catch(e){dt(e)}i.length=0},te=()=>{ii(ei),ii(es),(Vt=ei.length>0)&&y.raf(te)},_r=i=>jn().then(i),wr=br(es,!0),xr=(i={})=>{const{content:t="",title:e,attributes:s=[]}=i;let n="",r=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...s];return e&&(n=`<title>${e}</title>`),`<svg ${r.map(a=>`${a.name}="${a.value}"`).join(" ")}>${n}${t}</svg>`},Sr=i=>i.replace(/<(\/?)svg([^>]*)>/g,"").trim();function Ar(i){return`${i.getFullYear()}.${i.getMonth()+1}`}class kr{constructor(t){this.voca_component=t,this.voca_added=Ar(new Date)}}const Cr="telia-vst{display:none}",Er=Vi(class extends zi{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=ir(this,"vocaInternalUStats")}connectedCallback(){this.vocaInternalUStats.emit(new kr(this.dataTrackingId))}render(){return G(fe,null)}static get style(){return Cr}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function is(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,Er);break}})}is();function ee(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function Or(){if(typeof ee().vocadsIcons!==void 0)return ee().vocadsIcons}function Tr(){return ee().vocadsIconsRegistered}const Pr=".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}",Ir=Vi(class extends zi{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(Tr()&&this.name){const i=Or();return i[this.name]?i[this.name].svg:""}return this.name&&console.warn(this.name,"Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"),""}render(){let i=this.getSvgString(),t=[{name:"viewBox",value:"0 0 64 64"}];this.allyTitle?t=[...t,{name:"role",value:"img"}]:t=[...t,{name:"aria-hidden",value:"true"}];const e=xr({content:Sr(i),attributes:t,title:this.allyTitle});return G(fe,{class:`telia-icon telia-icon--${this.size}`},G("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:e}),G("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return Pr}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function Lr(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,Ir);break;case"telia-vst":customElements.get(t)||is();break}})}Lr();var Rr=Object.defineProperty,V=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&Rr(t,e,n),n};const si=Ni(A),be=class be extends si{constructor(){super(...arguments),this.optionsIsVisible=!1,this.authState="non-authenticated",this.UserName="",this.authUrl="",this.provider=void 0,this.idref=void 0,this.options=new Un(this),this.optionsRef=xt(),this.optionsTriggerRef=xt(),this._onClickOutside=t=>{!this.optionsTriggerRef.value||!this.optionsRef.value||t.composedPath().includes(this.optionsTriggerRef.value)||t.composedPath().includes(this.optionsRef.value)||(this.optionsIsVisible=!1)},this.shouldUseAuth=!1}addOption(t){return this.options.addOption(t)}removeOption(t){return this.options.removeOption(t)}_onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}_onMinimizeClick(){this.application.trigger?this.application.trigger.toggleActive():(this.notify("widget-minimize",{widgetId:this.application.id}),this.application.storage.set("open",!1))}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}connectedCallback(){super.connectedCallback();const t=this.application.storage.get("auth");t!=null&&t.authenticated&&(this.UserName=t==null?void 0:t.name,this.authState="authenticated"),document.addEventListener("click",this._onClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onClickOutside)}_onStartAuth(){this.provider.handleAuthentication(this.idref)}_showLogoutForm(){this.provider.showLogoutConfirmDialog()}_logout(t="non-authenticated"){this.authState=t,this.application.storage.removeItem("auth"),this.UserName="",this.authUrl=""}render(){var a,l,c,h,u;const t=this.application.branding(),e=(a=t==null?void 0:t.graphics)==null?void 0:a.logotype,s=this.application.texts,n=s.get("widget-header.header","ACE Widget"),r=this.application.settings.components.conversation;this.shouldUseAuth=(c=(l=this.application.settings)==null?void 0:l.auth)==null?void 0:c.shouldUseAuth;const o=(u=(h=r==null?void 0:r.properties)==null?void 0:h.chat)==null?void 0:u.isThirdPartyWidget;return m` <div class="widget-header">
459
459
  ${e?m` <img
460
460
  src=${e}
461
461
  class="logotype"
@@ -485,7 +485,7 @@
485
485
  <h3>
486
486
  ${s.getOrFallback("widget-header.OptionsLabel","Options")}
487
487
  </h3>
488
- ${o?m`<div class="options-menu__auth-container">
488
+ ${this.shouldUseAuth&&this.authState!=="chat-ended"?m`<div class="options-menu__auth-container">
489
489
  <p class="options-menu__auth-helper-text">
490
490
  ${s.getOrFallback("widget-header.authentication-text","AUTHENTICATED AS")}
491
491
  </p>
@@ -515,21 +515,21 @@
515
515
  </button>`:p}
516
516
  </div>`}
517
517
  </div>`:p}
518
- ${this.options.options.map(f=>m`<button
518
+ ${this.options.options.map(d=>m`<button
519
519
  class="options-menu__item"
520
- data-testid="${f.key}"
521
- @click=${()=>{f.closeOnClick&&this._onToggleOptionsMenuClick(),f.onClick(),this.requestUpdate()}}
522
- ?disabled="${!f.enabled}"
520
+ data-testid="${d.key}"
521
+ @click=${()=>{d.closeOnClick&&this._onToggleOptionsMenuClick(),d.onClick(),this.requestUpdate()}}
522
+ ?disabled="${!d.enabled}"
523
523
  >
524
- ${f.icon?m`<telia-icon
524
+ ${d.icon?m`<telia-icon
525
525
  class="option-icon"
526
- svg=${f.icon}
526
+ svg=${d.icon}
527
527
  size="sm"
528
528
  ></telia-icon>`:p}
529
- ${f.label}
529
+ ${d.label}
530
530
  </button>`)}
531
531
  </div>`:p}
532
- ${a?p:m`<button
532
+ ${o?p:m`<button
533
533
  @click=${this._onMinimizeClick}
534
534
  class="widget-header__action-button"
535
535
  title=${s.getOrFallback("widget-header.minimize","Minimize")}
@@ -2,10 +2,11 @@ import { LitElement } from 'lit';
2
2
  import { CreateWidgetHeaderOption } from './types';
3
3
  import { WidgetHeaderOption } from './widget-header-option';
4
4
  declare const WidgetElement: (new (...args: any[]) => import('../../core/src/index.ts').WidgetComponentType) & typeof LitElement;
5
+ type authStateType = 'non-authenticated' | 'authenticating' | 'authenticated' | 'chat-ended';
5
6
  export declare class WidgetHeader extends WidgetElement {
6
7
  static styles: import('lit').CSSResultGroup[];
7
8
  optionsIsVisible: boolean;
8
- authState: 'non-authenticated' | 'authenticating' | 'authenticated';
9
+ authState: authStateType;
9
10
  UserName: string;
10
11
  authUrl: string;
11
12
  provider: any;
@@ -23,7 +24,8 @@ export declare class WidgetHeader extends WidgetElement {
23
24
  private _onClickOutside;
24
25
  private _onStartAuth;
25
26
  private _showLogoutForm;
26
- _logout(): void;
27
+ private shouldUseAuth;
28
+ _logout(state?: authStateType): void;
27
29
  render(): import('lit-html').TemplateResult<1>;
28
30
  }
29
31
  export default WidgetHeader;