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

Sign up to get free protection for your applications and to get access to all the features.
package/index.mjs CHANGED
@@ -1,45 +1,45 @@
1
- var ft = function(r, t) {
1
+ var ft = function(s, t) {
2
2
  return ft = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
3
3
  e.__proto__ = i;
4
4
  } || function(e, i) {
5
- for (var s in i)
6
- Object.prototype.hasOwnProperty.call(i, s) && (e[s] = i[s]);
7
- }, ft(r, t);
5
+ for (var r in i)
6
+ Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]);
7
+ }, ft(s, t);
8
8
  };
9
- function B(r, t) {
9
+ function B(s, t) {
10
10
  if (typeof t != "function" && t !== null)
11
11
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
12
- ft(r, t);
12
+ ft(s, t);
13
13
  function e() {
14
- this.constructor = r;
14
+ this.constructor = s;
15
15
  }
16
- r.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
16
+ s.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
17
17
  }
18
- function gt(r) {
19
- var t = typeof Symbol == "function" && Symbol.iterator, e = t && r[t], i = 0;
18
+ function gt(s) {
19
+ var t = typeof Symbol == "function" && Symbol.iterator, e = t && s[t], i = 0;
20
20
  if (e)
21
- return e.call(r);
22
- if (r && typeof r.length == "number")
21
+ return e.call(s);
22
+ if (s && typeof s.length == "number")
23
23
  return {
24
24
  next: function() {
25
- return r && i >= r.length && (r = void 0), { value: r && r[i++], done: !r };
25
+ return s && i >= s.length && (s = void 0), { value: s && s[i++], done: !s };
26
26
  }
27
27
  };
28
28
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
29
29
  }
30
- function K(r, t) {
31
- var e = typeof Symbol == "function" && r[Symbol.iterator];
30
+ function K(s, t) {
31
+ var e = typeof Symbol == "function" && s[Symbol.iterator];
32
32
  if (!e)
33
- return r;
34
- var i = e.call(r), s, n = [], o;
33
+ return s;
34
+ var i = e.call(s), r, n = [], o;
35
35
  try {
36
- for (; (t === void 0 || t-- > 0) && !(s = i.next()).done; )
37
- n.push(s.value);
36
+ for (; (t === void 0 || t-- > 0) && !(r = i.next()).done; )
37
+ n.push(r.value);
38
38
  } catch (a) {
39
39
  o = { error: a };
40
40
  } finally {
41
41
  try {
42
- s && !s.done && (e = i.return) && e.call(i);
42
+ r && !r.done && (e = i.return) && e.call(i);
43
43
  } finally {
44
44
  if (o)
45
45
  throw o.error;
@@ -47,42 +47,42 @@ function K(r, t) {
47
47
  }
48
48
  return n;
49
49
  }
50
- function G(r, t, e) {
50
+ function G(s, t, e) {
51
51
  if (e || arguments.length === 2)
52
- for (var i = 0, s = t.length, n; i < s; i++)
52
+ for (var i = 0, r = t.length, n; i < r; i++)
53
53
  (n || !(i in t)) && (n || (n = Array.prototype.slice.call(t, 0, i)), n[i] = t[i]);
54
- return r.concat(n || Array.prototype.slice.call(t));
54
+ return s.concat(n || Array.prototype.slice.call(t));
55
55
  }
56
- function b(r) {
57
- return typeof r == "function";
56
+ function b(s) {
57
+ return typeof s == "function";
58
58
  }
59
- function Gt(r) {
59
+ function Zt(s) {
60
60
  var t = function(i) {
61
61
  Error.call(i), i.stack = new Error().stack;
62
- }, e = r(t);
62
+ }, e = s(t);
63
63
  return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
64
64
  }
65
- var nt = Gt(function(r) {
65
+ var nt = Zt(function(s) {
66
66
  return function(e) {
67
- r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
68
- ` + e.map(function(i, s) {
69
- return s + 1 + ") " + i.toString();
67
+ s(this), this.message = e ? e.length + ` errors occurred during unsubscription:
68
+ ` + e.map(function(i, r) {
69
+ return r + 1 + ") " + i.toString();
70
70
  }).join(`
71
71
  `) : "", this.name = "UnsubscriptionError", this.errors = e;
72
72
  };
73
73
  });
74
- function mt(r, t) {
75
- if (r) {
76
- var e = r.indexOf(t);
77
- 0 <= e && r.splice(e, 1);
74
+ function mt(s, t) {
75
+ if (s) {
76
+ var e = s.indexOf(t);
77
+ 0 <= e && s.splice(e, 1);
78
78
  }
79
79
  }
80
80
  var tt = function() {
81
- function r(t) {
81
+ function s(t) {
82
82
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
83
83
  }
84
- return r.prototype.unsubscribe = function() {
85
- var t, e, i, s, n;
84
+ return s.prototype.unsubscribe = function() {
85
+ var t, e, i, r, n;
86
86
  if (!this.closed) {
87
87
  this.closed = !0;
88
88
  var o = this._parentage;
@@ -90,8 +90,8 @@ var tt = function() {
90
90
  if (this._parentage = null, Array.isArray(o))
91
91
  try {
92
92
  for (var a = gt(o), c = a.next(); !c.done; c = a.next()) {
93
- var l = c.value;
94
- l.remove(this);
93
+ var h = c.value;
94
+ h.remove(this);
95
95
  }
96
96
  } catch (v) {
97
97
  t = { error: v };
@@ -105,10 +105,10 @@ var tt = function() {
105
105
  }
106
106
  else
107
107
  o.remove(this);
108
- var h = this.initialTeardown;
109
- if (b(h))
108
+ var l = this.initialTeardown;
109
+ if (b(l))
110
110
  try {
111
- h();
111
+ l();
112
112
  } catch (v) {
113
113
  n = v instanceof nt ? v.errors : [v];
114
114
  }
@@ -116,8 +116,8 @@ var tt = function() {
116
116
  if (p) {
117
117
  this._finalizers = null;
118
118
  try {
119
- for (var f = gt(p), u = f.next(); !u.done; u = f.next()) {
120
- var g = u.value;
119
+ for (var f = gt(p), d = f.next(); !d.done; d = f.next()) {
120
+ var g = d.value;
121
121
  try {
122
122
  St(g);
123
123
  } catch (v) {
@@ -128,7 +128,7 @@ var tt = function() {
128
128
  i = { error: v };
129
129
  } finally {
130
130
  try {
131
- u && !u.done && (s = f.return) && s.call(f);
131
+ d && !d.done && (r = f.return) && r.call(f);
132
132
  } finally {
133
133
  if (i)
134
134
  throw i.error;
@@ -138,79 +138,79 @@ var tt = function() {
138
138
  if (n)
139
139
  throw new nt(n);
140
140
  }
141
- }, r.prototype.add = function(t) {
141
+ }, s.prototype.add = function(t) {
142
142
  var e;
143
143
  if (t && t !== this)
144
144
  if (this.closed)
145
145
  St(t);
146
146
  else {
147
- if (t instanceof r) {
147
+ if (t instanceof s) {
148
148
  if (t.closed || t._hasParent(this))
149
149
  return;
150
150
  t._addParent(this);
151
151
  }
152
152
  (this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t);
153
153
  }
154
- }, r.prototype._hasParent = function(t) {
154
+ }, s.prototype._hasParent = function(t) {
155
155
  var e = this._parentage;
156
156
  return e === t || Array.isArray(e) && e.includes(t);
157
- }, r.prototype._addParent = function(t) {
157
+ }, s.prototype._addParent = function(t) {
158
158
  var e = this._parentage;
159
159
  this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
160
- }, r.prototype._removeParent = function(t) {
160
+ }, s.prototype._removeParent = function(t) {
161
161
  var e = this._parentage;
162
162
  e === t ? this._parentage = null : Array.isArray(e) && mt(e, t);
163
- }, r.prototype.remove = function(t) {
163
+ }, s.prototype.remove = function(t) {
164
164
  var e = this._finalizers;
165
- e && mt(e, t), t instanceof r && t._removeParent(this);
166
- }, r.EMPTY = function() {
167
- var t = new r();
165
+ e && mt(e, t), t instanceof s && t._removeParent(this);
166
+ }, s.EMPTY = function() {
167
+ var t = new s();
168
168
  return t.closed = !0, t;
169
- }(), r;
170
- }(), Zt = tt.EMPTY;
171
- function Jt(r) {
172
- return r instanceof tt || r && "closed" in r && b(r.remove) && b(r.add) && b(r.unsubscribe);
169
+ }(), s;
170
+ }(), Jt = tt.EMPTY;
171
+ function Xt(s) {
172
+ return s instanceof tt || s && "closed" in s && b(s.remove) && b(s.add) && b(s.unsubscribe);
173
173
  }
174
- function St(r) {
175
- b(r) ? r() : r.unsubscribe();
174
+ function St(s) {
175
+ b(s) ? s() : s.unsubscribe();
176
176
  }
177
- var Xt = {
177
+ var Qt = {
178
178
  onUnhandledError: null,
179
179
  onStoppedNotification: null,
180
180
  Promise: void 0,
181
181
  useDeprecatedSynchronousErrorHandling: !1,
182
182
  useDeprecatedNextContext: !1
183
183
  }, vt = {
184
- setTimeout: function(r, t) {
184
+ setTimeout: function(s, t) {
185
185
  for (var e = [], i = 2; i < arguments.length; i++)
186
186
  e[i - 2] = arguments[i];
187
- var s = vt.delegate;
188
- return s != null && s.setTimeout ? s.setTimeout.apply(s, G([r, t], K(e))) : setTimeout.apply(void 0, G([r, t], K(e)));
187
+ var r = vt.delegate;
188
+ return r != null && r.setTimeout ? r.setTimeout.apply(r, G([s, t], K(e))) : setTimeout.apply(void 0, G([s, t], K(e)));
189
189
  },
190
- clearTimeout: function(r) {
190
+ clearTimeout: function(s) {
191
191
  var t = vt.delegate;
192
- return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(r);
192
+ return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(s);
193
193
  },
194
194
  delegate: void 0
195
195
  };
196
- function ve(r) {
196
+ function ye(s) {
197
197
  vt.setTimeout(function() {
198
- throw r;
198
+ throw s;
199
199
  });
200
200
  }
201
201
  function Et() {
202
202
  }
203
- function q(r) {
204
- r();
203
+ function V(s) {
204
+ s();
205
205
  }
206
- var Qt = function(r) {
207
- B(t, r);
206
+ var te = function(s) {
207
+ B(t, s);
208
208
  function t(e) {
209
- var i = r.call(this) || this;
210
- return i.isStopped = !1, e ? (i.destination = e, Jt(e) && e.add(i)) : i.destination = _e, i;
209
+ var i = s.call(this) || this;
210
+ return i.isStopped = !1, e ? (i.destination = e, Xt(e) && e.add(i)) : i.destination = we, i;
211
211
  }
212
- return t.create = function(e, i, s) {
213
- return new yt(e, i, s);
212
+ return t.create = function(e, i, r) {
213
+ return new yt(e, i, r);
214
214
  }, t.prototype.next = function(e) {
215
215
  this.isStopped || this._next(e);
216
216
  }, t.prototype.error = function(e) {
@@ -218,7 +218,7 @@ var Qt = function(r) {
218
218
  }, t.prototype.complete = function() {
219
219
  this.isStopped || (this.isStopped = !0, this._complete());
220
220
  }, t.prototype.unsubscribe = function() {
221
- this.closed || (this.isStopped = !0, r.prototype.unsubscribe.call(this), this.destination = null);
221
+ this.closed || (this.isStopped = !0, s.prototype.unsubscribe.call(this), this.destination = null);
222
222
  }, t.prototype._next = function(e) {
223
223
  this.destination.next(e);
224
224
  }, t.prototype._error = function(e) {
@@ -234,15 +234,15 @@ var Qt = function(r) {
234
234
  this.unsubscribe();
235
235
  }
236
236
  }, t;
237
- }(tt), ye = Function.prototype.bind;
238
- function ot(r, t) {
239
- return ye.call(r, t);
237
+ }(tt), be = Function.prototype.bind;
238
+ function ot(s, t) {
239
+ return be.call(s, t);
240
240
  }
241
- var be = function() {
242
- function r(t) {
241
+ var $e = function() {
242
+ function s(t) {
243
243
  this.partialObserver = t;
244
244
  }
245
- return r.prototype.next = function(t) {
245
+ return s.prototype.next = function(t) {
246
246
  var e = this.partialObserver;
247
247
  if (e.next)
248
248
  try {
@@ -250,7 +250,7 @@ var be = function() {
250
250
  } catch (i) {
251
251
  F(i);
252
252
  }
253
- }, r.prototype.error = function(t) {
253
+ }, s.prototype.error = function(t) {
254
254
  var e = this.partialObserver;
255
255
  if (e.error)
256
256
  try {
@@ -260,7 +260,7 @@ var be = function() {
260
260
  }
261
261
  else
262
262
  F(t);
263
- }, r.prototype.complete = function() {
263
+ }, s.prototype.complete = function() {
264
264
  var t = this.partialObserver;
265
265
  if (t.complete)
266
266
  try {
@@ -268,20 +268,20 @@ var be = function() {
268
268
  } catch (e) {
269
269
  F(e);
270
270
  }
271
- }, r;
272
- }(), yt = function(r) {
273
- B(t, r);
274
- function t(e, i, s) {
275
- var n = r.call(this) || this, o;
271
+ }, s;
272
+ }(), yt = function(s) {
273
+ B(t, s);
274
+ function t(e, i, r) {
275
+ var n = s.call(this) || this, o;
276
276
  if (b(e) || !e)
277
277
  o = {
278
278
  next: e ?? void 0,
279
279
  error: i ?? void 0,
280
- complete: s ?? void 0
280
+ complete: r ?? void 0
281
281
  };
282
282
  else {
283
283
  var a;
284
- n && Xt.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
284
+ n && Qt.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
285
285
  return n.unsubscribe();
286
286
  }, o = {
287
287
  next: e.next && ot(e.next, a),
@@ -289,56 +289,56 @@ var be = function() {
289
289
  complete: e.complete && ot(e.complete, a)
290
290
  }) : o = e;
291
291
  }
292
- return n.destination = new be(o), n;
292
+ return n.destination = new $e(o), n;
293
293
  }
294
294
  return t;
295
- }(Qt);
296
- function F(r) {
297
- ve(r);
295
+ }(te);
296
+ function F(s) {
297
+ ye(s);
298
298
  }
299
- function $e(r) {
300
- throw r;
299
+ function _e(s) {
300
+ throw s;
301
301
  }
302
- var _e = {
302
+ var we = {
303
303
  closed: !0,
304
304
  next: Et,
305
- error: $e,
305
+ error: _e,
306
306
  complete: Et
307
- }, we = function() {
307
+ }, Ae = function() {
308
308
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
309
309
  }();
310
- function Ae(r) {
311
- return r;
310
+ function xe(s) {
311
+ return s;
312
312
  }
313
- function Ce(r) {
314
- return r.length === 0 ? Ae : r.length === 1 ? r[0] : function(e) {
315
- return r.reduce(function(i, s) {
316
- return s(i);
313
+ function Ce(s) {
314
+ return s.length === 0 ? xe : s.length === 1 ? s[0] : function(e) {
315
+ return s.reduce(function(i, r) {
316
+ return r(i);
317
317
  }, e);
318
318
  };
319
319
  }
320
320
  var Pt = function() {
321
- function r(t) {
321
+ function s(t) {
322
322
  t && (this._subscribe = t);
323
323
  }
324
- return r.prototype.lift = function(t) {
325
- var e = new r();
324
+ return s.prototype.lift = function(t) {
325
+ var e = new s();
326
326
  return e.source = this, e.operator = t, e;
327
- }, r.prototype.subscribe = function(t, e, i) {
328
- var s = this, n = Se(t) ? t : new yt(t, e, i);
329
- return q(function() {
330
- var o = s, a = o.operator, c = o.source;
331
- n.add(a ? a.call(n, c) : c ? s._subscribe(n) : s._trySubscribe(n));
327
+ }, s.prototype.subscribe = function(t, e, i) {
328
+ var r = this, n = Ee(t) ? t : new yt(t, e, i);
329
+ return V(function() {
330
+ var o = r, a = o.operator, c = o.source;
331
+ n.add(a ? a.call(n, c) : c ? r._subscribe(n) : r._trySubscribe(n));
332
332
  }), n;
333
- }, r.prototype._trySubscribe = function(t) {
333
+ }, s.prototype._trySubscribe = function(t) {
334
334
  try {
335
335
  return this._subscribe(t);
336
336
  } catch (e) {
337
337
  t.error(e);
338
338
  }
339
- }, r.prototype.forEach = function(t, e) {
339
+ }, s.prototype.forEach = function(t, e) {
340
340
  var i = this;
341
- return e = Ot(e), new e(function(s, n) {
341
+ return e = Ot(e), new e(function(r, n) {
342
342
  var o = new yt({
343
343
  next: function(a) {
344
344
  try {
@@ -348,53 +348,53 @@ var Pt = function() {
348
348
  }
349
349
  },
350
350
  error: n,
351
- complete: s
351
+ complete: r
352
352
  });
353
353
  i.subscribe(o);
354
354
  });
355
- }, r.prototype._subscribe = function(t) {
355
+ }, s.prototype._subscribe = function(t) {
356
356
  var e;
357
357
  return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
358
- }, r.prototype[we] = function() {
358
+ }, s.prototype[Ae] = function() {
359
359
  return this;
360
- }, r.prototype.pipe = function() {
360
+ }, s.prototype.pipe = function() {
361
361
  for (var t = [], e = 0; e < arguments.length; e++)
362
362
  t[e] = arguments[e];
363
363
  return Ce(t)(this);
364
- }, r.prototype.toPromise = function(t) {
364
+ }, s.prototype.toPromise = function(t) {
365
365
  var e = this;
366
- return t = Ot(t), new t(function(i, s) {
366
+ return t = Ot(t), new t(function(i, r) {
367
367
  var n;
368
368
  e.subscribe(function(o) {
369
369
  return n = o;
370
370
  }, function(o) {
371
- return s(o);
371
+ return r(o);
372
372
  }, function() {
373
373
  return i(n);
374
374
  });
375
375
  });
376
- }, r.create = function(t) {
377
- return new r(t);
378
- }, r;
376
+ }, s.create = function(t) {
377
+ return new s(t);
378
+ }, s;
379
379
  }();
380
- function Ot(r) {
380
+ function Ot(s) {
381
381
  var t;
382
- return (t = r ?? Xt.Promise) !== null && t !== void 0 ? t : Promise;
382
+ return (t = s ?? Qt.Promise) !== null && t !== void 0 ? t : Promise;
383
383
  }
384
- function xe(r) {
385
- return r && b(r.next) && b(r.error) && b(r.complete);
384
+ function Se(s) {
385
+ return s && b(s.next) && b(s.error) && b(s.complete);
386
386
  }
387
- function Se(r) {
388
- return r && r instanceof Qt || xe(r) && Jt(r);
387
+ function Ee(s) {
388
+ return s && s instanceof te || Se(s) && Xt(s);
389
389
  }
390
- var Ee = Gt(function(r) {
390
+ var Pe = Zt(function(s) {
391
391
  return function() {
392
- r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
392
+ s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
393
393
  };
394
- }), te = function(r) {
395
- B(t, r);
394
+ }), ee = function(s) {
395
+ B(t, s);
396
396
  function t() {
397
- var e = r.call(this) || this;
397
+ var e = s.call(this) || this;
398
398
  return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
399
399
  }
400
400
  return t.prototype.lift = function(e) {
@@ -402,11 +402,11 @@ var Ee = Gt(function(r) {
402
402
  return i.operator = e, i;
403
403
  }, t.prototype._throwIfClosed = function() {
404
404
  if (this.closed)
405
- throw new Ee();
405
+ throw new Pe();
406
406
  }, t.prototype.next = function(e) {
407
407
  var i = this;
408
- q(function() {
409
- var s, n;
408
+ V(function() {
409
+ var r, n;
410
410
  if (i._throwIfClosed(), !i.isStopped) {
411
411
  i.currentObservers || (i.currentObservers = Array.from(i.observers));
412
412
  try {
@@ -414,30 +414,30 @@ var Ee = Gt(function(r) {
414
414
  var c = a.value;
415
415
  c.next(e);
416
416
  }
417
- } catch (l) {
418
- s = { error: l };
417
+ } catch (h) {
418
+ r = { error: h };
419
419
  } finally {
420
420
  try {
421
421
  a && !a.done && (n = o.return) && n.call(o);
422
422
  } finally {
423
- if (s)
424
- throw s.error;
423
+ if (r)
424
+ throw r.error;
425
425
  }
426
426
  }
427
427
  }
428
428
  });
429
429
  }, t.prototype.error = function(e) {
430
430
  var i = this;
431
- q(function() {
431
+ V(function() {
432
432
  if (i._throwIfClosed(), !i.isStopped) {
433
433
  i.hasError = i.isStopped = !0, i.thrownError = e;
434
- for (var s = i.observers; s.length; )
435
- s.shift().error(e);
434
+ for (var r = i.observers; r.length; )
435
+ r.shift().error(e);
436
436
  }
437
437
  });
438
438
  }, t.prototype.complete = function() {
439
439
  var e = this;
440
- q(function() {
440
+ V(function() {
441
441
  if (e._throwIfClosed(), !e.isStopped) {
442
442
  e.isStopped = !0;
443
443
  for (var i = e.observers; i.length; )
@@ -454,46 +454,46 @@ var Ee = Gt(function(r) {
454
454
  enumerable: !1,
455
455
  configurable: !0
456
456
  }), t.prototype._trySubscribe = function(e) {
457
- return this._throwIfClosed(), r.prototype._trySubscribe.call(this, e);
457
+ return this._throwIfClosed(), s.prototype._trySubscribe.call(this, e);
458
458
  }, t.prototype._subscribe = function(e) {
459
459
  return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
460
460
  }, t.prototype._innerSubscribe = function(e) {
461
- var i = this, s = this, n = s.hasError, o = s.isStopped, a = s.observers;
462
- return n || o ? Zt : (this.currentObservers = null, a.push(e), new tt(function() {
461
+ var i = this, r = this, n = r.hasError, o = r.isStopped, a = r.observers;
462
+ return n || o ? Jt : (this.currentObservers = null, a.push(e), new tt(function() {
463
463
  i.currentObservers = null, mt(a, e);
464
464
  }));
465
465
  }, t.prototype._checkFinalizedStatuses = function(e) {
466
- var i = this, s = i.hasError, n = i.thrownError, o = i.isStopped;
467
- s ? e.error(n) : o && e.complete();
466
+ var i = this, r = i.hasError, n = i.thrownError, o = i.isStopped;
467
+ r ? e.error(n) : o && e.complete();
468
468
  }, t.prototype.asObservable = function() {
469
469
  var e = new Pt();
470
470
  return e.source = this, e;
471
471
  }, t.create = function(e, i) {
472
472
  return new Tt(e, i);
473
473
  }, t;
474
- }(Pt), Tt = function(r) {
475
- B(t, r);
474
+ }(Pt), Tt = function(s) {
475
+ B(t, s);
476
476
  function t(e, i) {
477
- var s = r.call(this) || this;
478
- return s.destination = e, s.source = i, s;
477
+ var r = s.call(this) || this;
478
+ return r.destination = e, r.source = i, r;
479
479
  }
480
480
  return t.prototype.next = function(e) {
481
- var i, s;
482
- (s = (i = this.destination) === null || i === void 0 ? void 0 : i.next) === null || s === void 0 || s.call(i, e);
481
+ var i, r;
482
+ (r = (i = this.destination) === null || i === void 0 ? void 0 : i.next) === null || r === void 0 || r.call(i, e);
483
483
  }, t.prototype.error = function(e) {
484
- var i, s;
485
- (s = (i = this.destination) === null || i === void 0 ? void 0 : i.error) === null || s === void 0 || s.call(i, e);
484
+ var i, r;
485
+ (r = (i = this.destination) === null || i === void 0 ? void 0 : i.error) === null || r === void 0 || r.call(i, e);
486
486
  }, t.prototype.complete = function() {
487
487
  var e, i;
488
488
  (i = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || i === void 0 || i.call(e);
489
489
  }, t.prototype._subscribe = function(e) {
490
- var i, s;
491
- return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && s !== void 0 ? s : Zt;
490
+ var i, r;
491
+ return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r : Jt;
492
492
  }, t;
493
- }(te), Pe = function(r) {
494
- B(t, r);
493
+ }(ee), Oe = function(s) {
494
+ B(t, s);
495
495
  function t(e) {
496
- var i = r.call(this) || this;
496
+ var i = s.call(this) || this;
497
497
  return i._value = e, i;
498
498
  }
499
499
  return Object.defineProperty(t.prototype, "value", {
@@ -503,20 +503,20 @@ var Ee = Gt(function(r) {
503
503
  enumerable: !1,
504
504
  configurable: !0
505
505
  }), t.prototype._subscribe = function(e) {
506
- var i = r.prototype._subscribe.call(this, e);
506
+ var i = s.prototype._subscribe.call(this, e);
507
507
  return !i.closed && e.next(this._value), i;
508
508
  }, t.prototype.getValue = function() {
509
- var e = this, i = e.hasError, s = e.thrownError, n = e._value;
509
+ var e = this, i = e.hasError, r = e.thrownError, n = e._value;
510
510
  if (i)
511
- throw s;
511
+ throw r;
512
512
  return this._throwIfClosed(), n;
513
513
  }, t.prototype.next = function(e) {
514
- r.prototype.next.call(this, this._value = e);
514
+ s.prototype.next.call(this, this._value = e);
515
515
  }, t;
516
- }(te), ee = /* @__PURE__ */ ((r) => (r.Loading = "loading", r.Ready = "ready", r))(ee || {});
516
+ }(ee), ie = /* @__PURE__ */ ((s) => (s.Loading = "loading", s.Ready = "ready", s))(ie || {});
517
517
  class Rt {
518
518
  constructor(t, e) {
519
- this.state = new Pe(
519
+ this.state = new Oe(
520
520
  "loading"
521
521
  /* Loading */
522
522
  ), this.resolvers = /* @__PURE__ */ new Map(), this.name = t, this.environment = e, this.state.next(
@@ -539,8 +539,8 @@ class Rt {
539
539
  * Copyright 2019 Google LLC
540
540
  * SPDX-License-Identifier: BSD-3-Clause
541
541
  */
542
- const V = globalThis, bt = V.ShadowRoot && (V.ShadyCSS === void 0 || V.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, $t = Symbol(), Ut = /* @__PURE__ */ new WeakMap();
543
- let ie = class {
542
+ const q = globalThis, bt = q.ShadowRoot && (q.ShadyCSS === void 0 || q.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, $t = Symbol(), Ut = /* @__PURE__ */ new WeakMap();
543
+ let se = class {
544
544
  constructor(t, e, i) {
545
545
  if (this._$cssResult$ = !0, i !== $t)
546
546
  throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -559,63 +559,63 @@ let ie = class {
559
559
  return this.cssText;
560
560
  }
561
561
  };
562
- const Oe = (r) => new ie(typeof r == "string" ? r : r + "", void 0, $t), U = (r, ...t) => {
563
- const e = r.length === 1 ? r[0] : t.reduce((i, s, n) => i + ((o) => {
562
+ const Te = (s) => new se(typeof s == "string" ? s : s + "", void 0, $t), U = (s, ...t) => {
563
+ const e = s.length === 1 ? s[0] : t.reduce((i, r, n) => i + ((o) => {
564
564
  if (o._$cssResult$ === !0)
565
565
  return o.cssText;
566
566
  if (typeof o == "number")
567
567
  return o;
568
568
  throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
569
- })(s) + r[n + 1], r[0]);
570
- return new ie(e, r, $t);
571
- }, Te = (r, t) => {
569
+ })(r) + s[n + 1], s[0]);
570
+ return new se(e, s, $t);
571
+ }, Re = (s, t) => {
572
572
  if (bt)
573
- r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
573
+ s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
574
574
  else
575
575
  for (const e of t) {
576
- const i = document.createElement("style"), s = V.litNonce;
577
- s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, r.appendChild(i);
576
+ const i = document.createElement("style"), r = q.litNonce;
577
+ r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
578
578
  }
579
- }, It = bt ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
579
+ }, It = bt ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
580
580
  let e = "";
581
581
  for (const i of t.cssRules)
582
582
  e += i.cssText;
583
- return Oe(e);
584
- })(r) : r;
583
+ return Te(e);
584
+ })(s) : s;
585
585
  /**
586
586
  * @license
587
587
  * Copyright 2017 Google LLC
588
588
  * SPDX-License-Identifier: BSD-3-Clause
589
589
  */
590
- const { is: Re, defineProperty: Ue, getOwnPropertyDescriptor: Ie, getOwnPropertyNames: Ne, getOwnPropertySymbols: je, getPrototypeOf: ke } = Object, w = globalThis, Nt = w.trustedTypes, Me = Nt ? Nt.emptyScript : "", at = w.reactiveElementPolyfillSupport, N = (r, t) => r, Z = { toAttribute(r, t) {
590
+ const { is: Ue, defineProperty: Ie, getOwnPropertyDescriptor: ke, getOwnPropertyNames: je, getOwnPropertySymbols: Me, getPrototypeOf: Ne } = Object, w = globalThis, kt = w.trustedTypes, Le = kt ? kt.emptyScript : "", at = w.reactiveElementPolyfillSupport, k = (s, t) => s, Z = { toAttribute(s, t) {
591
591
  switch (t) {
592
592
  case Boolean:
593
- r = r ? Me : null;
593
+ s = s ? Le : null;
594
594
  break;
595
595
  case Object:
596
596
  case Array:
597
- r = r == null ? r : JSON.stringify(r);
597
+ s = s == null ? s : JSON.stringify(s);
598
598
  }
599
- return r;
600
- }, fromAttribute(r, t) {
601
- let e = r;
599
+ return s;
600
+ }, fromAttribute(s, t) {
601
+ let e = s;
602
602
  switch (t) {
603
603
  case Boolean:
604
- e = r !== null;
604
+ e = s !== null;
605
605
  break;
606
606
  case Number:
607
- e = r === null ? null : Number(r);
607
+ e = s === null ? null : Number(s);
608
608
  break;
609
609
  case Object:
610
610
  case Array:
611
611
  try {
612
- e = JSON.parse(r);
612
+ e = JSON.parse(s);
613
613
  } catch {
614
614
  e = null;
615
615
  }
616
616
  }
617
617
  return e;
618
- } }, _t = (r, t) => !Re(r, t), jt = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: _t };
618
+ } }, _t = (s, t) => !Ue(s, t), jt = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: _t };
619
619
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), w.litPropertyMetadata ?? (w.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
620
620
  let O = class extends HTMLElement {
621
621
  static addInitializer(t) {
@@ -626,20 +626,20 @@ let O = class extends HTMLElement {
626
626
  }
627
627
  static createProperty(t, e = jt) {
628
628
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
629
- const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
630
- s !== void 0 && Ue(this.prototype, t, s);
629
+ const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
630
+ r !== void 0 && Ie(this.prototype, t, r);
631
631
  }
632
632
  }
633
633
  static getPropertyDescriptor(t, e, i) {
634
- const { get: s, set: n } = Ie(this.prototype, t) ?? { get() {
634
+ const { get: r, set: n } = ke(this.prototype, t) ?? { get() {
635
635
  return this[e];
636
636
  }, set(o) {
637
637
  this[e] = o;
638
638
  } };
639
639
  return { get() {
640
- return s == null ? void 0 : s.call(this);
640
+ return r == null ? void 0 : r.call(this);
641
641
  }, set(o) {
642
- const a = s == null ? void 0 : s.call(this);
642
+ const a = r == null ? void 0 : r.call(this);
643
643
  n.call(this, o), this.requestUpdate(t, a, i);
644
644
  }, configurable: !0, enumerable: !0 };
645
645
  }
@@ -647,30 +647,30 @@ let O = class extends HTMLElement {
647
647
  return this.elementProperties.get(t) ?? jt;
648
648
  }
649
649
  static _$Ei() {
650
- if (this.hasOwnProperty(N("elementProperties")))
650
+ if (this.hasOwnProperty(k("elementProperties")))
651
651
  return;
652
- const t = ke(this);
652
+ const t = Ne(this);
653
653
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
654
654
  }
655
655
  static finalize() {
656
- if (this.hasOwnProperty(N("finalized")))
656
+ if (this.hasOwnProperty(k("finalized")))
657
657
  return;
658
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(N("properties"))) {
659
- const e = this.properties, i = [...Ne(e), ...je(e)];
660
- for (const s of i)
661
- this.createProperty(s, e[s]);
658
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(k("properties"))) {
659
+ const e = this.properties, i = [...je(e), ...Me(e)];
660
+ for (const r of i)
661
+ this.createProperty(r, e[r]);
662
662
  }
663
663
  const t = this[Symbol.metadata];
664
664
  if (t !== null) {
665
665
  const e = litPropertyMetadata.get(t);
666
666
  if (e !== void 0)
667
- for (const [i, s] of e)
668
- this.elementProperties.set(i, s);
667
+ for (const [i, r] of e)
668
+ this.elementProperties.set(i, r);
669
669
  }
670
670
  this._$Eh = /* @__PURE__ */ new Map();
671
671
  for (const [e, i] of this.elementProperties) {
672
- const s = this._$Eu(e, i);
673
- s !== void 0 && this._$Eh.set(s, e);
672
+ const r = this._$Eu(e, i);
673
+ r !== void 0 && this._$Eh.set(r, e);
674
674
  }
675
675
  this.elementStyles = this.finalizeStyles(this.styles);
676
676
  }
@@ -678,8 +678,8 @@ let O = class extends HTMLElement {
678
678
  const e = [];
679
679
  if (Array.isArray(t)) {
680
680
  const i = new Set(t.flat(1 / 0).reverse());
681
- for (const s of i)
682
- e.unshift(It(s));
681
+ for (const r of i)
682
+ e.unshift(It(r));
683
683
  } else
684
684
  t !== void 0 && e.push(It(t));
685
685
  return e;
@@ -711,7 +711,7 @@ let O = class extends HTMLElement {
711
711
  }
712
712
  createRenderRoot() {
713
713
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
714
- return Te(t, this.constructor.elementStyles), t;
714
+ return Re(t, this.constructor.elementStyles), t;
715
715
  }
716
716
  connectedCallback() {
717
717
  var t;
@@ -734,18 +734,18 @@ let O = class extends HTMLElement {
734
734
  }
735
735
  _$EC(t, e) {
736
736
  var n;
737
- const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
738
- if (s !== void 0 && i.reflect === !0) {
737
+ const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
738
+ if (r !== void 0 && i.reflect === !0) {
739
739
  const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : Z).toAttribute(e, i.type);
740
- this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
740
+ this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
741
741
  }
742
742
  }
743
743
  _$AK(t, e) {
744
744
  var n;
745
- const i = this.constructor, s = i._$Eh.get(t);
746
- if (s !== void 0 && this._$Em !== s) {
747
- const o = i.getPropertyOptions(s), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : Z;
748
- this._$Em = s, this[s] = a.fromAttribute(e, o.type), this._$Em = null;
745
+ const i = this.constructor, r = i._$Eh.get(t);
746
+ if (r !== void 0 && this._$Em !== r) {
747
+ const o = i.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : Z;
748
+ this._$Em = r, this[r] = a.fromAttribute(e, o.type), this._$Em = null;
749
749
  }
750
750
  }
751
751
  requestUpdate(t, e, i) {
@@ -782,20 +782,20 @@ let O = class extends HTMLElement {
782
782
  this[n] = o;
783
783
  this._$Ep = void 0;
784
784
  }
785
- const s = this.constructor.elementProperties;
786
- if (s.size > 0)
787
- for (const [n, o] of s)
785
+ const r = this.constructor.elementProperties;
786
+ if (r.size > 0)
787
+ for (const [n, o] of r)
788
788
  o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], o);
789
789
  }
790
790
  let t = !1;
791
791
  const e = this._$AL;
792
792
  try {
793
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((s) => {
793
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((r) => {
794
794
  var n;
795
- return (n = s.hostUpdate) == null ? void 0 : n.call(s);
795
+ return (n = r.hostUpdate) == null ? void 0 : n.call(r);
796
796
  }), this.update(e)) : this._$EU();
797
- } catch (s) {
798
- throw t = !1, this._$EU(), s;
797
+ } catch (r) {
798
+ throw t = !1, this._$EU(), r;
799
799
  }
800
800
  t && this._$AE(e);
801
801
  }
@@ -804,8 +804,8 @@ let O = class extends HTMLElement {
804
804
  _$AE(t) {
805
805
  var e;
806
806
  (e = this._$EO) == null || e.forEach((i) => {
807
- var s;
808
- return (s = i.hostUpdated) == null ? void 0 : s.call(i);
807
+ var r;
808
+ return (r = i.hostUpdated) == null ? void 0 : r.call(i);
809
809
  }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
810
810
  }
811
811
  _$EU() {
@@ -828,67 +828,67 @@ let O = class extends HTMLElement {
828
828
  firstUpdated(t) {
829
829
  }
830
830
  };
831
- O.elementStyles = [], O.shadowRootOptions = { mode: "open" }, O[N("elementProperties")] = /* @__PURE__ */ new Map(), O[N("finalized")] = /* @__PURE__ */ new Map(), at == null || at({ ReactiveElement: O }), (w.reactiveElementVersions ?? (w.reactiveElementVersions = [])).push("2.0.4");
831
+ O.elementStyles = [], O.shadowRootOptions = { mode: "open" }, O[k("elementProperties")] = /* @__PURE__ */ new Map(), O[k("finalized")] = /* @__PURE__ */ new Map(), at == null || at({ ReactiveElement: O }), (w.reactiveElementVersions ?? (w.reactiveElementVersions = [])).push("2.0.4");
832
832
  /**
833
833
  * @license
834
834
  * Copyright 2017 Google LLC
835
835
  * SPDX-License-Identifier: BSD-3-Clause
836
836
  */
837
- const j = globalThis, J = j.trustedTypes, kt = J ? J.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, re = "$lit$", _ = `lit$${(Math.random() + "").slice(9)}$`, se = "?" + _, Le = `<${se}>`, E = document, M = () => E.createComment(""), L = (r) => r === null || typeof r != "object" && typeof r != "function", ne = Array.isArray, He = (r) => ne(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", ct = `[
838
- \f\r]`, I = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Mt = /-->/g, Lt = />/g, C = RegExp(`>|${ct}(?:([^\\s"'>=/]+)(${ct}*=${ct}*(?:[^
839
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Ht = /'/g, Bt = /"/g, oe = /^(?:script|style|textarea|title)$/i, Be = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), T = Be(1), P = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Dt = /* @__PURE__ */ new WeakMap(), S = E.createTreeWalker(E, 129);
840
- function ae(r, t) {
841
- if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
837
+ const j = globalThis, J = j.trustedTypes, Mt = J ? J.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, re = "$lit$", _ = `lit$${(Math.random() + "").slice(9)}$`, ne = "?" + _, He = `<${ne}>`, E = document, N = () => E.createComment(""), L = (s) => s === null || typeof s != "object" && typeof s != "function", oe = Array.isArray, Be = (s) => oe(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", ct = `[
838
+ \f\r]`, I = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Nt = /-->/g, Lt = />/g, x = RegExp(`>|${ct}(?:([^\\s"'>=/]+)(${ct}*=${ct}*(?:[^
839
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Ht = /'/g, Bt = /"/g, ae = /^(?:script|style|textarea|title)$/i, De = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), T = De(1), P = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), Dt = /* @__PURE__ */ new WeakMap(), S = E.createTreeWalker(E, 129);
840
+ function ce(s, t) {
841
+ if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
842
842
  throw Error("invalid template strings array");
843
- return kt !== void 0 ? kt.createHTML(t) : t;
843
+ return Mt !== void 0 ? Mt.createHTML(t) : t;
844
844
  }
845
- const De = (r, t) => {
846
- const e = r.length - 1, i = [];
847
- let s, n = t === 2 ? "<svg>" : "", o = I;
845
+ const ze = (s, t) => {
846
+ const e = s.length - 1, i = [];
847
+ let r, n = t === 2 ? "<svg>" : "", o = I;
848
848
  for (let a = 0; a < e; a++) {
849
- const c = r[a];
850
- let l, h, p = -1, f = 0;
851
- for (; f < c.length && (o.lastIndex = f, h = o.exec(c), h !== null); )
852
- f = o.lastIndex, o === I ? h[1] === "!--" ? o = Mt : h[1] !== void 0 ? o = Lt : h[2] !== void 0 ? (oe.test(h[2]) && (s = RegExp("</" + h[2], "g")), o = C) : h[3] !== void 0 && (o = C) : o === C ? h[0] === ">" ? (o = s ?? I, p = -1) : h[1] === void 0 ? p = -2 : (p = o.lastIndex - h[2].length, l = h[1], o = h[3] === void 0 ? C : h[3] === '"' ? Bt : Ht) : o === Bt || o === Ht ? o = C : o === Mt || o === Lt ? o = I : (o = C, s = void 0);
853
- const u = o === C && r[a + 1].startsWith("/>") ? " " : "";
854
- n += o === I ? c + Le : p >= 0 ? (i.push(l), c.slice(0, p) + re + c.slice(p) + _ + u) : c + _ + (p === -2 ? a : u);
855
- }
856
- return [ae(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
849
+ const c = s[a];
850
+ let h, l, p = -1, f = 0;
851
+ for (; f < c.length && (o.lastIndex = f, l = o.exec(c), l !== null); )
852
+ f = o.lastIndex, o === I ? l[1] === "!--" ? o = Nt : l[1] !== void 0 ? o = Lt : l[2] !== void 0 ? (ae.test(l[2]) && (r = RegExp("</" + l[2], "g")), o = x) : l[3] !== void 0 && (o = x) : o === x ? l[0] === ">" ? (o = r ?? I, p = -1) : l[1] === void 0 ? p = -2 : (p = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? x : l[3] === '"' ? Bt : Ht) : o === Bt || o === Ht ? o = x : o === Nt || o === Lt ? o = I : (o = x, r = void 0);
853
+ const d = o === x && s[a + 1].startsWith("/>") ? " " : "";
854
+ n += o === I ? c + He : p >= 0 ? (i.push(h), c.slice(0, p) + re + c.slice(p) + _ + d) : c + _ + (p === -2 ? a : d);
855
+ }
856
+ return [ce(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
857
857
  };
858
858
  class H {
859
859
  constructor({ strings: t, _$litType$: e }, i) {
860
- let s;
860
+ let r;
861
861
  this.parts = [];
862
862
  let n = 0, o = 0;
863
- const a = t.length - 1, c = this.parts, [l, h] = De(t, e);
864
- if (this.el = H.createElement(l, i), S.currentNode = this.el.content, e === 2) {
863
+ const a = t.length - 1, c = this.parts, [h, l] = ze(t, e);
864
+ if (this.el = H.createElement(h, i), S.currentNode = this.el.content, e === 2) {
865
865
  const p = this.el.content.firstChild;
866
866
  p.replaceWith(...p.childNodes);
867
867
  }
868
- for (; (s = S.nextNode()) !== null && c.length < a; ) {
869
- if (s.nodeType === 1) {
870
- if (s.hasAttributes())
871
- for (const p of s.getAttributeNames())
868
+ for (; (r = S.nextNode()) !== null && c.length < a; ) {
869
+ if (r.nodeType === 1) {
870
+ if (r.hasAttributes())
871
+ for (const p of r.getAttributeNames())
872
872
  if (p.endsWith(re)) {
873
- const f = h[o++], u = s.getAttribute(p).split(_), g = /([.?@])?(.*)/.exec(f);
874
- c.push({ type: 1, index: n, name: g[2], strings: u, ctor: g[1] === "." ? We : g[1] === "?" ? Fe : g[1] === "@" ? Ye : et }), s.removeAttribute(p);
873
+ const f = l[o++], d = r.getAttribute(p).split(_), g = /([.?@])?(.*)/.exec(f);
874
+ c.push({ type: 1, index: n, name: g[2], strings: d, ctor: g[1] === "." ? Fe : g[1] === "?" ? Ye : g[1] === "@" ? Ve : et }), r.removeAttribute(p);
875
875
  } else
876
- p.startsWith(_) && (c.push({ type: 6, index: n }), s.removeAttribute(p));
877
- if (oe.test(s.tagName)) {
878
- const p = s.textContent.split(_), f = p.length - 1;
876
+ p.startsWith(_) && (c.push({ type: 6, index: n }), r.removeAttribute(p));
877
+ if (ae.test(r.tagName)) {
878
+ const p = r.textContent.split(_), f = p.length - 1;
879
879
  if (f > 0) {
880
- s.textContent = J ? J.emptyScript : "";
881
- for (let u = 0; u < f; u++)
882
- s.append(p[u], M()), S.nextNode(), c.push({ type: 2, index: ++n });
883
- s.append(p[f], M());
880
+ r.textContent = J ? J.emptyScript : "";
881
+ for (let d = 0; d < f; d++)
882
+ r.append(p[d], N()), S.nextNode(), c.push({ type: 2, index: ++n });
883
+ r.append(p[f], N());
884
884
  }
885
885
  }
886
- } else if (s.nodeType === 8)
887
- if (s.data === se)
886
+ } else if (r.nodeType === 8)
887
+ if (r.data === ne)
888
888
  c.push({ type: 2, index: n });
889
889
  else {
890
890
  let p = -1;
891
- for (; (p = s.data.indexOf(_, p + 1)) !== -1; )
891
+ for (; (p = r.data.indexOf(_, p + 1)) !== -1; )
892
892
  c.push({ type: 7, index: n }), p += _.length - 1;
893
893
  }
894
894
  n++;
@@ -899,15 +899,15 @@ class H {
899
899
  return i.innerHTML = t, i;
900
900
  }
901
901
  }
902
- function R(r, t, e = r, i) {
902
+ function R(s, t, e = s, i) {
903
903
  var o, a;
904
904
  if (t === P)
905
905
  return t;
906
- let s = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
906
+ let r = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
907
907
  const n = L(t) ? void 0 : t._$litDirective$;
908
- return (s == null ? void 0 : s.constructor) !== n && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), n === void 0 ? s = void 0 : (s = new n(r), s._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = R(r, s._$AS(r, t.values), s, i)), t;
908
+ return (r == null ? void 0 : r.constructor) !== n && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), n === void 0 ? r = void 0 : (r = new n(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = R(s, r._$AS(s, t.values), r, i)), t;
909
909
  }
910
- class ze {
910
+ class We {
911
911
  constructor(t, e) {
912
912
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
913
913
  }
@@ -918,17 +918,17 @@ class ze {
918
918
  return this._$AM._$AU;
919
919
  }
920
920
  u(t) {
921
- const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? E).importNode(e, !0);
922
- S.currentNode = s;
921
+ const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? E).importNode(e, !0);
922
+ S.currentNode = r;
923
923
  let n = S.nextNode(), o = 0, a = 0, c = i[0];
924
924
  for (; c !== void 0; ) {
925
925
  if (o === c.index) {
926
- let l;
927
- c.type === 2 ? l = new D(n, n.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (l = new qe(n, this, t)), this._$AV.push(l), c = i[++a];
926
+ let h;
927
+ c.type === 2 ? h = new D(n, n.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (h = new qe(n, this, t)), this._$AV.push(h), c = i[++a];
928
928
  }
929
929
  o !== (c == null ? void 0 : c.index) && (n = S.nextNode(), o++);
930
930
  }
931
- return S.currentNode = E, s;
931
+ return S.currentNode = E, r;
932
932
  }
933
933
  p(t) {
934
934
  let e = 0;
@@ -941,8 +941,8 @@ class D {
941
941
  var t;
942
942
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
943
943
  }
944
- constructor(t, e, i, s) {
945
- this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
944
+ constructor(t, e, i, r) {
945
+ this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
946
946
  }
947
947
  get parentNode() {
948
948
  let t = this._$AA.parentNode;
@@ -956,7 +956,7 @@ class D {
956
956
  return this._$AB;
957
957
  }
958
958
  _$AI(t, e = this) {
959
- t = R(this, t, e), L(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : He(t) ? this.k(t) : this._(t);
959
+ t = R(this, t, e), L(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Be(t) ? this.k(t) : this._(t);
960
960
  }
961
961
  S(t) {
962
962
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -965,15 +965,15 @@ class D {
965
965
  this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
966
966
  }
967
967
  _(t) {
968
- this._$AH !== d && L(this._$AH) ? this._$AA.nextSibling.data = t : this.T(E.createTextNode(t)), this._$AH = t;
968
+ this._$AH !== u && L(this._$AH) ? this._$AA.nextSibling.data = t : this.T(E.createTextNode(t)), this._$AH = t;
969
969
  }
970
970
  $(t) {
971
971
  var n;
972
- const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = H.createElement(ae(i.h, i.h[0]), this.options)), i);
973
- if (((n = this._$AH) == null ? void 0 : n._$AD) === s)
972
+ const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = H.createElement(ce(i.h, i.h[0]), this.options)), i);
973
+ if (((n = this._$AH) == null ? void 0 : n._$AD) === r)
974
974
  this._$AH.p(e);
975
975
  else {
976
- const o = new ze(s, this), a = o.u(this.options);
976
+ const o = new We(r, this), a = o.u(this.options);
977
977
  o.p(e), this.T(a), this._$AH = o;
978
978
  }
979
979
  }
@@ -982,18 +982,18 @@ class D {
982
982
  return e === void 0 && Dt.set(t.strings, e = new H(t)), e;
983
983
  }
984
984
  k(t) {
985
- ne(this._$AH) || (this._$AH = [], this._$AR());
985
+ oe(this._$AH) || (this._$AH = [], this._$AR());
986
986
  const e = this._$AH;
987
- let i, s = 0;
987
+ let i, r = 0;
988
988
  for (const n of t)
989
- s === e.length ? e.push(i = new D(this.S(M()), this.S(M()), this, this.options)) : i = e[s], i._$AI(n), s++;
990
- s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
989
+ r === e.length ? e.push(i = new D(this.S(N()), this.S(N()), this, this.options)) : i = e[r], i._$AI(n), r++;
990
+ r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
991
991
  }
992
992
  _$AR(t = this._$AA.nextSibling, e) {
993
993
  var i;
994
994
  for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
995
- const s = t.nextSibling;
996
- t.remove(), t = s;
995
+ const r = t.nextSibling;
996
+ t.remove(), t = r;
997
997
  }
998
998
  }
999
999
  setConnected(t) {
@@ -1008,51 +1008,51 @@ class et {
1008
1008
  get _$AU() {
1009
1009
  return this._$AM._$AU;
1010
1010
  }
1011
- constructor(t, e, i, s, n) {
1012
- this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = d;
1011
+ constructor(t, e, i, r, n) {
1012
+ this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = u;
1013
1013
  }
1014
- _$AI(t, e = this, i, s) {
1014
+ _$AI(t, e = this, i, r) {
1015
1015
  const n = this.strings;
1016
1016
  let o = !1;
1017
1017
  if (n === void 0)
1018
1018
  t = R(this, t, e, 0), o = !L(t) || t !== this._$AH && t !== P, o && (this._$AH = t);
1019
1019
  else {
1020
1020
  const a = t;
1021
- let c, l;
1021
+ let c, h;
1022
1022
  for (t = n[0], c = 0; c < n.length - 1; c++)
1023
- l = R(this, a[i + c], e, c), l === P && (l = this._$AH[c]), o || (o = !L(l) || l !== this._$AH[c]), l === d ? t = d : t !== d && (t += (l ?? "") + n[c + 1]), this._$AH[c] = l;
1023
+ h = R(this, a[i + c], e, c), h === P && (h = this._$AH[c]), o || (o = !L(h) || h !== this._$AH[c]), h === u ? t = u : t !== u && (t += (h ?? "") + n[c + 1]), this._$AH[c] = h;
1024
1024
  }
1025
- o && !s && this.j(t);
1025
+ o && !r && this.j(t);
1026
1026
  }
1027
1027
  j(t) {
1028
- t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
1028
+ t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
1029
1029
  }
1030
1030
  }
1031
- class We extends et {
1031
+ class Fe extends et {
1032
1032
  constructor() {
1033
1033
  super(...arguments), this.type = 3;
1034
1034
  }
1035
1035
  j(t) {
1036
- this.element[this.name] = t === d ? void 0 : t;
1036
+ this.element[this.name] = t === u ? void 0 : t;
1037
1037
  }
1038
1038
  }
1039
- class Fe extends et {
1039
+ class Ye extends et {
1040
1040
  constructor() {
1041
1041
  super(...arguments), this.type = 4;
1042
1042
  }
1043
1043
  j(t) {
1044
- this.element.toggleAttribute(this.name, !!t && t !== d);
1044
+ this.element.toggleAttribute(this.name, !!t && t !== u);
1045
1045
  }
1046
1046
  }
1047
- class Ye extends et {
1048
- constructor(t, e, i, s, n) {
1049
- super(t, e, i, s, n), this.type = 5;
1047
+ class Ve extends et {
1048
+ constructor(t, e, i, r, n) {
1049
+ super(t, e, i, r, n), this.type = 5;
1050
1050
  }
1051
1051
  _$AI(t, e = this) {
1052
- if ((t = R(this, t, e, 0) ?? d) === P)
1052
+ if ((t = R(this, t, e, 0) ?? u) === P)
1053
1053
  return;
1054
- const i = this._$AH, s = t === d && i !== d || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== d && (i === d || s);
1055
- s && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
1054
+ const i = this._$AH, r = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== u && (i === u || r);
1055
+ r && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
1056
1056
  }
1057
1057
  handleEvent(t) {
1058
1058
  var e;
@@ -1070,16 +1070,16 @@ class qe {
1070
1070
  R(this, t);
1071
1071
  }
1072
1072
  }
1073
- const lt = j.litHtmlPolyfillSupport;
1074
- lt == null || lt(H, D), (j.litHtmlVersions ?? (j.litHtmlVersions = [])).push("3.1.2");
1075
- const Ve = (r, t, e) => {
1073
+ const ht = j.litHtmlPolyfillSupport;
1074
+ ht == null || ht(H, D), (j.litHtmlVersions ?? (j.litHtmlVersions = [])).push("3.1.2");
1075
+ const Ke = (s, t, e) => {
1076
1076
  const i = (e == null ? void 0 : e.renderBefore) ?? t;
1077
- let s = i._$litPart$;
1078
- if (s === void 0) {
1077
+ let r = i._$litPart$;
1078
+ if (r === void 0) {
1079
1079
  const n = (e == null ? void 0 : e.renderBefore) ?? null;
1080
- i._$litPart$ = s = new D(t.insertBefore(M(), n), n, void 0, e ?? {});
1080
+ i._$litPart$ = r = new D(t.insertBefore(N(), n), n, void 0, e ?? {});
1081
1081
  }
1082
- return s._$AI(r), s;
1082
+ return r._$AI(s), r;
1083
1083
  };
1084
1084
  /**
1085
1085
  * @license
@@ -1097,7 +1097,7 @@ let $ = class extends O {
1097
1097
  }
1098
1098
  update(t) {
1099
1099
  const e = this.render();
1100
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Ve(e, this.renderRoot, this.renderOptions);
1100
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Ke(e, this.renderRoot, this.renderOptions);
1101
1101
  }
1102
1102
  connectedCallback() {
1103
1103
  var t;
@@ -1111,55 +1111,55 @@ let $ = class extends O {
1111
1111
  return P;
1112
1112
  }
1113
1113
  };
1114
- var Kt;
1115
- $._$litElement$ = !0, $.finalized = !0, (Kt = globalThis.litElementHydrateSupport) == null || Kt.call(globalThis, { LitElement: $ });
1116
- const ht = globalThis.litElementPolyfillSupport;
1117
- ht == null || ht({ LitElement: $ });
1114
+ var Gt;
1115
+ $._$litElement$ = !0, $.finalized = !0, (Gt = globalThis.litElementHydrateSupport) == null || Gt.call(globalThis, { LitElement: $ });
1116
+ const lt = globalThis.litElementPolyfillSupport;
1117
+ lt == null || lt({ LitElement: $ });
1118
1118
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
1119
1119
  /**
1120
1120
  * @license
1121
1121
  * Copyright 2017 Google LLC
1122
1122
  * SPDX-License-Identifier: BSD-3-Clause
1123
1123
  */
1124
- const Ke = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: _t }, Ge = (r = Ke, t, e) => {
1125
- const { kind: i, metadata: s } = e;
1126
- let n = globalThis.litPropertyMetadata.get(s);
1127
- if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), n.set(e.name, r), i === "accessor") {
1124
+ const Ge = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: _t }, Ze = (s = Ge, t, e) => {
1125
+ const { kind: i, metadata: r } = e;
1126
+ let n = globalThis.litPropertyMetadata.get(r);
1127
+ if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, s), i === "accessor") {
1128
1128
  const { name: o } = e;
1129
1129
  return { set(a) {
1130
1130
  const c = t.get.call(this);
1131
- t.set.call(this, a), this.requestUpdate(o, c, r);
1131
+ t.set.call(this, a), this.requestUpdate(o, c, s);
1132
1132
  }, init(a) {
1133
- return a !== void 0 && this.P(o, void 0, r), a;
1133
+ return a !== void 0 && this.P(o, void 0, s), a;
1134
1134
  } };
1135
1135
  }
1136
1136
  if (i === "setter") {
1137
1137
  const { name: o } = e;
1138
1138
  return function(a) {
1139
1139
  const c = this[o];
1140
- t.call(this, a), this.requestUpdate(o, c, r);
1140
+ t.call(this, a), this.requestUpdate(o, c, s);
1141
1141
  };
1142
1142
  }
1143
1143
  throw Error("Unsupported decorator location: " + i);
1144
1144
  };
1145
- function m(r) {
1146
- return (t, e) => typeof e == "object" ? Ge(r, t, e) : ((i, s, n) => {
1147
- const o = s.hasOwnProperty(n);
1148
- return s.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(s, n) : void 0;
1149
- })(r, t, e);
1145
+ function m(s) {
1146
+ return (t, e) => typeof e == "object" ? Ze(s, t, e) : ((i, r, n) => {
1147
+ const o = r.hasOwnProperty(n);
1148
+ return r.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
1149
+ })(s, t, e);
1150
1150
  }
1151
1151
  /**
1152
1152
  * @license
1153
1153
  * Copyright 2017 Google LLC
1154
1154
  * SPDX-License-Identifier: BSD-3-Clause
1155
1155
  */
1156
- function z(r) {
1157
- return m({ ...r, state: !0, attribute: !1 });
1156
+ function z(s) {
1157
+ return m({ ...s, state: !0, attribute: !1 });
1158
1158
  }
1159
- var Ze = Object.defineProperty, Je = Object.getOwnPropertyDescriptor, Xe = (r, t, e, i) => {
1160
- for (var s = i > 1 ? void 0 : i ? Je(t, e) : t, n = r.length - 1, o; n >= 0; n--)
1161
- (o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
1162
- return i && s && Ze(t, e, s), s;
1159
+ var Je = Object.defineProperty, Xe = Object.getOwnPropertyDescriptor, Qe = (s, t, e, i) => {
1160
+ for (var r = i > 1 ? void 0 : i ? Xe(t, e) : t, n = s.length - 1, o; n >= 0; n--)
1161
+ (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
1162
+ return i && r && Je(t, e, r), r;
1163
1163
  };
1164
1164
  class it extends $ {
1165
1165
  constructor() {
@@ -1170,7 +1170,7 @@ class it extends $ {
1170
1170
  return (e = this.shadowRoot) == null || e.appendChild(t), t;
1171
1171
  }
1172
1172
  render() {
1173
- return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), d;
1173
+ return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), u;
1174
1174
  }
1175
1175
  }
1176
1176
  it.styles = [
@@ -1192,7 +1192,7 @@ it.styles = [
1192
1192
  }
1193
1193
  `
1194
1194
  ];
1195
- Xe([
1195
+ Qe([
1196
1196
  m({ attribute: !0 })
1197
1197
  ], it.prototype, "anchor", 2);
1198
1198
  /**
@@ -1200,8 +1200,8 @@ Xe([
1200
1200
  * Copyright 2017 Google LLC
1201
1201
  * SPDX-License-Identifier: BSD-3-Clause
1202
1202
  */
1203
- const wt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, At = (r) => (...t) => ({ _$litDirective$: r, values: t });
1204
- let ce = class {
1203
+ const wt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, At = (s) => (...t) => ({ _$litDirective$: s, values: t });
1204
+ let he = class {
1205
1205
  constructor(t) {
1206
1206
  }
1207
1207
  get _$AU() {
@@ -1222,56 +1222,56 @@ let ce = class {
1222
1222
  * Copyright 2020 Google LLC
1223
1223
  * SPDX-License-Identifier: BSD-3-Clause
1224
1224
  */
1225
- const Qe = (r) => r.strings === void 0;
1225
+ const ti = (s) => s.strings === void 0;
1226
1226
  /**
1227
1227
  * @license
1228
1228
  * Copyright 2017 Google LLC
1229
1229
  * SPDX-License-Identifier: BSD-3-Clause
1230
1230
  */
1231
- const k = (r, t) => {
1231
+ const M = (s, t) => {
1232
1232
  var i;
1233
- const e = r._$AN;
1233
+ const e = s._$AN;
1234
1234
  if (e === void 0)
1235
1235
  return !1;
1236
- for (const s of e)
1237
- (i = s._$AO) == null || i.call(s, t, !1), k(s, t);
1236
+ for (const r of e)
1237
+ (i = r._$AO) == null || i.call(r, t, !1), M(r, t);
1238
1238
  return !0;
1239
- }, X = (r) => {
1239
+ }, X = (s) => {
1240
1240
  let t, e;
1241
1241
  do {
1242
- if ((t = r._$AM) === void 0)
1242
+ if ((t = s._$AM) === void 0)
1243
1243
  break;
1244
- e = t._$AN, e.delete(r), r = t;
1244
+ e = t._$AN, e.delete(s), s = t;
1245
1245
  } while ((e == null ? void 0 : e.size) === 0);
1246
- }, le = (r) => {
1247
- for (let t; t = r._$AM; r = t) {
1246
+ }, le = (s) => {
1247
+ for (let t; t = s._$AM; s = t) {
1248
1248
  let e = t._$AN;
1249
1249
  if (e === void 0)
1250
1250
  t._$AN = e = /* @__PURE__ */ new Set();
1251
- else if (e.has(r))
1251
+ else if (e.has(s))
1252
1252
  break;
1253
- e.add(r), ii(t);
1253
+ e.add(s), si(t);
1254
1254
  }
1255
1255
  };
1256
- function ti(r) {
1257
- this._$AN !== void 0 ? (X(this), this._$AM = r, le(this)) : this._$AM = r;
1256
+ function ei(s) {
1257
+ this._$AN !== void 0 ? (X(this), this._$AM = s, le(this)) : this._$AM = s;
1258
1258
  }
1259
- function ei(r, t = !1, e = 0) {
1260
- const i = this._$AH, s = this._$AN;
1261
- if (s !== void 0 && s.size !== 0)
1259
+ function ii(s, t = !1, e = 0) {
1260
+ const i = this._$AH, r = this._$AN;
1261
+ if (r !== void 0 && r.size !== 0)
1262
1262
  if (t)
1263
1263
  if (Array.isArray(i))
1264
1264
  for (let n = e; n < i.length; n++)
1265
- k(i[n], !1), X(i[n]);
1265
+ M(i[n], !1), X(i[n]);
1266
1266
  else
1267
- i != null && (k(i, !1), X(i));
1267
+ i != null && (M(i, !1), X(i));
1268
1268
  else
1269
- k(this, r);
1269
+ M(this, s);
1270
1270
  }
1271
- const ii = (r) => {
1272
- r.type == wt.CHILD && (r._$AP ?? (r._$AP = ei), r._$AQ ?? (r._$AQ = ti));
1271
+ const si = (s) => {
1272
+ s.type == wt.CHILD && (s._$AP ?? (s._$AP = ii), s._$AQ ?? (s._$AQ = ei));
1273
1273
  };
1274
- class he extends ce {
1274
+ class pe extends he {
1275
1275
  constructor() {
1276
1276
  super(...arguments), this._$AN = void 0;
1277
1277
  }
@@ -1279,11 +1279,11 @@ class he extends ce {
1279
1279
  super._$AT(t, e, i), le(this), this.isConnected = t._$AU;
1280
1280
  }
1281
1281
  _$AO(t, e = !0) {
1282
- var i, s;
1283
- t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), e && (k(this, t), X(this));
1282
+ var i, r;
1283
+ t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (M(this, t), X(this));
1284
1284
  }
1285
1285
  setValue(t) {
1286
- if (Qe(this._$Ct))
1286
+ if (ti(this._$Ct))
1287
1287
  this._$Ct._$AI(t, this);
1288
1288
  else {
1289
1289
  const e = [...this._$Ct._$AH];
@@ -1297,30 +1297,30 @@ class he extends ce {
1297
1297
  }
1298
1298
  const ri = /* @__PURE__ */ new WeakMap();
1299
1299
  let zt = 0;
1300
- const pt = /* @__PURE__ */ new Map(), Wt = /* @__PURE__ */ new WeakSet(), Ft = () => new Promise((r) => requestAnimationFrame(r)), si = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Yt = (r, t) => {
1301
- const e = r - t;
1300
+ const pt = /* @__PURE__ */ new Map(), Wt = /* @__PURE__ */ new WeakSet(), Ft = () => new Promise((s) => requestAnimationFrame(s)), ni = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Yt = (s, t) => {
1301
+ const e = s - t;
1302
1302
  return e === 0 ? void 0 : e;
1303
- }, qt = (r, t) => {
1304
- const e = r / t;
1303
+ }, Vt = (s, t) => {
1304
+ const e = s / t;
1305
1305
  return e === 1 ? void 0 : e;
1306
- }, dt = { left: (r, t) => {
1307
- const e = Yt(r, t);
1306
+ }, ut = { left: (s, t) => {
1307
+ const e = Yt(s, t);
1308
1308
  return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
1309
- }, top: (r, t) => {
1310
- const e = Yt(r, t);
1309
+ }, top: (s, t) => {
1310
+ const e = Yt(s, t);
1311
1311
  return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
1312
- }, width: (r, t) => {
1312
+ }, width: (s, t) => {
1313
1313
  let e;
1314
1314
  t === 0 && (t = 1, e = { width: "1px" });
1315
- const i = qt(r, t);
1315
+ const i = Vt(s, t);
1316
1316
  return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
1317
- }, height: (r, t) => {
1317
+ }, height: (s, t) => {
1318
1318
  let e;
1319
1319
  t === 0 && (t = 1, e = { height: "1px" });
1320
- const i = qt(r, t);
1320
+ const i = Vt(s, t);
1321
1321
  return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
1322
- } }, ni = { duration: 333, easing: "ease-in-out" }, oi = ["left", "top", "width", "height", "opacity", "color", "background"], Vt = /* @__PURE__ */ new WeakMap();
1323
- class ai extends he {
1322
+ } }, oi = { duration: 333, easing: "ease-in-out" }, ai = ["left", "top", "width", "height", "opacity", "color", "background"], qt = /* @__PURE__ */ new WeakMap();
1323
+ class ci extends pe {
1324
1324
  constructor(t) {
1325
1325
  if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === wt.CHILD)
1326
1326
  throw Error("The `animate` directive must be used in attribute position.");
@@ -1337,7 +1337,7 @@ class ai extends he {
1337
1337
  (t = this.l) == null || t.call(this), this.l = void 0;
1338
1338
  }
1339
1339
  render(t) {
1340
- return d;
1340
+ return u;
1341
1341
  }
1342
1342
  getController() {
1343
1343
  return ri.get(this.u);
@@ -1347,29 +1347,29 @@ class ai extends he {
1347
1347
  return this.options.disabled || ((t = this.getController()) == null ? void 0 : t.disabled);
1348
1348
  }
1349
1349
  update(t, [e]) {
1350
- var s;
1350
+ var r;
1351
1351
  const i = this.u === void 0;
1352
- return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then((n) => this.t = !0), this.element = t.element, Vt.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
1352
+ return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((n) => this.t = !0), this.element = t.element, qt.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
1353
1353
  }
1354
1354
  p(t) {
1355
1355
  t = t ?? {};
1356
1356
  const e = this.getController();
1357
- e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = oi), this.options = t;
1357
+ e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = ai), this.options = t;
1358
1358
  }
1359
1359
  m() {
1360
1360
  const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
1361
- return this.options.properties.forEach((s) => {
1362
- const n = e[s] ?? (dt[s] ? void 0 : i[s]), o = Number(n);
1363
- t[s] = isNaN(o) ? n + "" : o;
1361
+ return this.options.properties.forEach((r) => {
1362
+ const n = e[r] ?? (ut[r] ? void 0 : i[r]), o = Number(n);
1363
+ t[r] = isNaN(o) ? n + "" : o;
1364
1364
  }), t;
1365
1365
  }
1366
1366
  v() {
1367
1367
  let t, e = !0;
1368
- return this.options.guard && (t = this.options.guard(), e = ((i, s) => {
1368
+ return this.options.guard && (t = this.options.guard(), e = ((i, r) => {
1369
1369
  if (Array.isArray(i)) {
1370
- if (Array.isArray(s) && s.length === i.length && i.every((n, o) => n === s[o]))
1370
+ if (Array.isArray(r) && r.length === i.length && i.every((n, o) => n === r[o]))
1371
1371
  return !1;
1372
- } else if (s === i)
1372
+ } else if (r === i)
1373
1373
  return !1;
1374
1374
  return !0;
1375
1375
  })(t, this._)), this.h = this.t && !this.isDisabled() && !this.isAnimating() && e && this.element.isConnected, this.h && (this._ = Array.isArray(t) ? Array.from(t) : t), this.h;
@@ -1382,15 +1382,15 @@ class ai extends he {
1382
1382
  return;
1383
1383
  let t;
1384
1384
  this.prepare(), await Ft;
1385
- const e = this.O(), i = this.j(this.options.keyframeOptions, e), s = this.m();
1385
+ const e = this.O(), i = this.j(this.options.keyframeOptions, e), r = this.m();
1386
1386
  if (this.A !== void 0) {
1387
- const { from: n, to: o } = this.N(this.A, s, e);
1388
- this.log("measured", [this.A, s, n, o]), t = this.calculateKeyframes(n, o);
1387
+ const { from: n, to: o } = this.N(this.A, r, e);
1388
+ this.log("measured", [this.A, r, n, o]), t = this.calculateKeyframes(n, o);
1389
1389
  } else {
1390
1390
  const n = pt.get(this.options.inId);
1391
1391
  if (n) {
1392
1392
  pt.delete(this.options.inId);
1393
- const { from: o, to: a } = this.N(n, s, e);
1393
+ const { from: o, to: a } = this.N(n, r, e);
1394
1394
  t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, zt++, t.forEach((c) => c.zIndex = zt);
1395
1395
  } else
1396
1396
  this.options.in && (t = [...this.options.in, {}]);
@@ -1413,9 +1413,9 @@ class ai extends he {
1413
1413
  if (this.prepare(), await Ft(), (e = this.i) == null ? void 0 : e.isConnected) {
1414
1414
  const i = this.o && this.o.parentNode === this.i ? this.o : null;
1415
1415
  if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
1416
- const s = this.m();
1416
+ const r = this.m();
1417
1417
  this.log("stabilizing out");
1418
- const n = this.A.left - s.left, o = this.A.top - s.top;
1418
+ const n = this.A.left - r.left, o = this.A.top - r.top;
1419
1419
  getComputedStyle(this.element).position !== "static" || n === 0 && o === 0 || (this.element.style.position = "relative"), n !== 0 && (this.element.style.left = n + "px"), o !== 0 && (this.element.style.top = o + "px");
1420
1420
  }
1421
1421
  }
@@ -1436,7 +1436,7 @@ class ai extends he {
1436
1436
  O() {
1437
1437
  const t = [];
1438
1438
  for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
1439
- const i = Vt.get(e);
1439
+ const i = qt.get(e);
1440
1440
  i && !i.isDisabled() && i && t.push(i);
1441
1441
  }
1442
1442
  return t;
@@ -1448,46 +1448,46 @@ class ai extends he {
1448
1448
  }), t;
1449
1449
  }
1450
1450
  j(t, e = this.O()) {
1451
- const i = { ...ni };
1452
- return e.forEach((s) => Object.assign(i, s.options.keyframeOptions)), Object.assign(i, t), i;
1451
+ const i = { ...oi };
1452
+ return e.forEach((r) => Object.assign(i, r.options.keyframeOptions)), Object.assign(i, t), i;
1453
1453
  }
1454
1454
  N(t, e, i) {
1455
1455
  t = { ...t }, e = { ...e };
1456
- const s = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
1456
+ const r = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
1457
1457
  let n = 1, o = 1;
1458
- return s.length > 0 && (s.forEach((a) => {
1458
+ return r.length > 0 && (r.forEach((a) => {
1459
1459
  a.width && (n /= a.width), a.height && (o /= a.height);
1460
1460
  }), t.left !== void 0 && e.left !== void 0 && (t.left = n * t.left, e.left = n * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = o * t.top, e.top = o * e.top)), { from: t, to: e };
1461
1461
  }
1462
1462
  calculateKeyframes(t, e, i = !1) {
1463
- const s = {}, n = {};
1463
+ const r = {}, n = {};
1464
1464
  let o = !1;
1465
1465
  const a = {};
1466
1466
  for (const c in e) {
1467
- const l = t[c], h = e[c];
1468
- if (c in dt) {
1469
- const p = dt[c];
1470
- if (l === void 0 || h === void 0)
1467
+ const h = t[c], l = e[c];
1468
+ if (c in ut) {
1469
+ const p = ut[c];
1470
+ if (h === void 0 || l === void 0)
1471
1471
  continue;
1472
- const f = p(l, h);
1473
- f.transform !== void 0 && (a[c] = f.value, o = !0, s.transform = `${s.transform ?? ""} ${f.transform}`, f.overrideFrom !== void 0 && Object.assign(s, f.overrideFrom));
1472
+ const f = p(h, l);
1473
+ f.transform !== void 0 && (a[c] = f.value, o = !0, r.transform = `${r.transform ?? ""} ${f.transform}`, f.overrideFrom !== void 0 && Object.assign(r, f.overrideFrom));
1474
1474
  } else
1475
- l !== h && l !== void 0 && h !== void 0 && (o = !0, s[c] = l, n[c] = h);
1475
+ h !== l && h !== void 0 && l !== void 0 && (o = !0, r[c] = h, n[c] = l);
1476
1476
  }
1477
- return s.transformOrigin = n.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [s, n] : void 0;
1477
+ return r.transformOrigin = n.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [r, n] : void 0;
1478
1478
  }
1479
1479
  async animate(t, e = this.options.keyframeOptions) {
1480
1480
  this.start(), this.frames = t;
1481
1481
  let i = !1;
1482
1482
  if (!this.isAnimating() && !this.isDisabled() && (this.options.onFrames && (this.frames = t = this.options.onFrames(this), this.log("modified frames", t)), t !== void 0)) {
1483
1483
  this.log("animate", [t, e]), i = !0, this.webAnimation = this.element.animate(t, e);
1484
- const s = this.getController();
1485
- s == null || s.add(this);
1484
+ const r = this.getController();
1485
+ r == null || r.add(this);
1486
1486
  try {
1487
1487
  await this.webAnimation.finished;
1488
1488
  } catch {
1489
1489
  }
1490
- s == null || s.remove(this);
1490
+ r == null || r.remove(this);
1491
1491
  }
1492
1492
  return this.didFinish(i), i;
1493
1493
  }
@@ -1499,52 +1499,52 @@ class ai extends he {
1499
1499
  this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
1500
1500
  }
1501
1501
  }
1502
- const ci = At(ai), li = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' };
1502
+ const hi = At(ci), li = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' };
1503
1503
  /**
1504
1504
  * @license
1505
1505
  * Copyright 2018 Google LLC
1506
1506
  * SPDX-License-Identifier: BSD-3-Clause
1507
1507
  */
1508
- const hi = At(class extends ce {
1509
- constructor(r) {
1508
+ const pi = At(class extends he {
1509
+ constructor(s) {
1510
1510
  var t;
1511
- if (super(r), r.type !== wt.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
1511
+ if (super(s), s.type !== wt.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2)
1512
1512
  throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
1513
1513
  }
1514
- render(r) {
1515
- return " " + Object.keys(r).filter((t) => r[t]).join(" ") + " ";
1514
+ render(s) {
1515
+ return " " + Object.keys(s).filter((t) => s[t]).join(" ") + " ";
1516
1516
  }
1517
- update(r, [t]) {
1518
- var i, s;
1517
+ update(s, [t]) {
1518
+ var i, r;
1519
1519
  if (this.st === void 0) {
1520
- this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((n) => n !== "")));
1520
+ this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((n) => n !== "")));
1521
1521
  for (const n in t)
1522
1522
  t[n] && !((i = this.nt) != null && i.has(n)) && this.st.add(n);
1523
1523
  return this.render(t);
1524
1524
  }
1525
- const e = r.element.classList;
1525
+ const e = s.element.classList;
1526
1526
  for (const n of this.st)
1527
1527
  n in t || (e.remove(n), this.st.delete(n));
1528
1528
  for (const n in t) {
1529
1529
  const o = !!t[n];
1530
- o === this.st.has(n) || (s = this.nt) != null && s.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
1530
+ o === this.st.has(n) || (r = this.nt) != null && r.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
1531
1531
  }
1532
1532
  return P;
1533
1533
  }
1534
- }), Y = (r, t, e) => {
1535
- r && e.style.setProperty(t, r);
1536
- }, pe = (r, t) => {
1537
- var e, i, s, n;
1538
- Y((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), Y(
1539
- (i = r.colors) == null ? void 0 : i.textOnPrimaryBackground,
1534
+ }), Y = (s, t, e) => {
1535
+ s && e.style.setProperty(t, s);
1536
+ }, ue = (s, t) => {
1537
+ var e, i, r, n;
1538
+ Y((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), Y(
1539
+ (i = s.colors) == null ? void 0 : i.textOnPrimaryBackground,
1540
1540
  "--text-on-primary-background",
1541
1541
  t
1542
1542
  ), Y(
1543
- (s = r.colors) == null ? void 0 : s.secondaryBackground,
1543
+ (r = s.colors) == null ? void 0 : r.secondaryBackground,
1544
1544
  "--secondary-background",
1545
1545
  t
1546
1546
  ), Y(
1547
- (n = r.colors) == null ? void 0 : n.textOnSecondaryBackground,
1547
+ (n = s.colors) == null ? void 0 : n.textOnSecondaryBackground,
1548
1548
  "--text-on-secondary-background",
1549
1549
  t
1550
1550
  );
@@ -1554,29 +1554,29 @@ const hi = At(class extends ce {
1554
1554
  * Copyright 2020 Google LLC
1555
1555
  * SPDX-License-Identifier: BSD-3-Clause
1556
1556
  */
1557
- const de = () => new pi();
1558
- class pi {
1557
+ const de = () => new ui();
1558
+ class ui {
1559
1559
  }
1560
- const ut = /* @__PURE__ */ new WeakMap(), ue = At(class extends he {
1561
- render(r) {
1562
- return d;
1560
+ const dt = /* @__PURE__ */ new WeakMap(), fe = At(class extends pe {
1561
+ render(s) {
1562
+ return u;
1563
1563
  }
1564
- update(r, [t]) {
1564
+ update(s, [t]) {
1565
1565
  var i;
1566
1566
  const e = t !== this.Y;
1567
- return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i = r.options) == null ? void 0 : i.host, this.rt(this.ct = r.element)), d;
1567
+ return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i = s.options) == null ? void 0 : i.host, this.rt(this.ct = s.element)), u;
1568
1568
  }
1569
- rt(r) {
1569
+ rt(s) {
1570
1570
  if (typeof this.Y == "function") {
1571
1571
  const t = this.ht ?? globalThis;
1572
- let e = ut.get(t);
1573
- e === void 0 && (e = /* @__PURE__ */ new WeakMap(), ut.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y, r), r !== void 0 && this.Y.call(this.ht, r);
1572
+ let e = dt.get(t);
1573
+ e === void 0 && (e = /* @__PURE__ */ new WeakMap(), dt.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y, s), s !== void 0 && this.Y.call(this.ht, s);
1574
1574
  } else
1575
- this.Y.value = r;
1575
+ this.Y.value = s;
1576
1576
  }
1577
1577
  get lt() {
1578
- var r, t;
1579
- return typeof this.Y == "function" ? (r = ut.get(this.ht ?? globalThis)) == null ? void 0 : r.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
1578
+ var s, t;
1579
+ return typeof this.Y == "function" ? (s = dt.get(this.ht ?? globalThis)) == null ? void 0 : s.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
1580
1580
  }
1581
1581
  disconnected() {
1582
1582
  this.lt === this.ct && this.rt(void 0);
@@ -1585,10 +1585,10 @@ const ut = /* @__PURE__ */ new WeakMap(), ue = At(class extends he {
1585
1585
  this.rt(this.ct);
1586
1586
  }
1587
1587
  });
1588
- var di = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, rt = (r, t, e, i) => {
1589
- for (var s = i > 1 ? void 0 : i ? ui(t, e) : t, n = r.length - 1, o; n >= 0; n--)
1590
- (o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
1591
- return i && s && di(t, e, s), s;
1588
+ var di = Object.defineProperty, fi = Object.getOwnPropertyDescriptor, st = (s, t, e, i) => {
1589
+ for (var r = i > 1 ? void 0 : i ? fi(t, e) : t, n = s.length - 1, o; n >= 0; n--)
1590
+ (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
1591
+ return i && r && di(t, e, r), r;
1592
1592
  };
1593
1593
  class A extends $ {
1594
1594
  constructor() {
@@ -1609,52 +1609,52 @@ class A extends $ {
1609
1609
  }
1610
1610
  _applyBranding() {
1611
1611
  var t;
1612
- (t = this.application) != null && t.settings && pe(this.application.settings.branding, this);
1612
+ (t = this.application) != null && t.settings && ue(this.application.settings.branding, this);
1613
1613
  }
1614
1614
  async _renderSymbol() {
1615
- var a, c, l;
1615
+ var a, c, h;
1616
1616
  const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
1617
1617
  if (e)
1618
1618
  return T` <img src=${e} class="trigger-icon" alt="" /> `;
1619
- const i = (l = this.application) == null ? void 0 : l.triggerIcon;
1619
+ const i = (h = this.application) == null ? void 0 : h.triggerIcon;
1620
1620
  if (!i)
1621
- return d;
1622
- const s = async (h) => li, { type: n, content: o } = i;
1621
+ return u;
1622
+ const r = async (l) => li, { type: n, content: o } = i;
1623
1623
  switch (n) {
1624
1624
  case "Telia": {
1625
- const h = await s();
1626
- return h ? T`<telia-icon
1625
+ const l = await r();
1626
+ return l ? T`<telia-icon
1627
1627
  class="trigger-icon"
1628
- svg=${h.svg}
1628
+ svg=${l.svg}
1629
1629
  size="lg"
1630
- ></telia-icon>` : d;
1630
+ ></telia-icon>` : u;
1631
1631
  }
1632
1632
  default:
1633
- return d;
1633
+ return u;
1634
1634
  }
1635
1635
  }
1636
1636
  render() {
1637
- var t, e, i, s;
1638
- return T`<div class="trigger-container" ${ue(this.containerRef)}>
1639
- ${!this.active && ((s = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && s.showButtonLabel) ? T`
1637
+ var t, e, i, r;
1638
+ return T`<div class="trigger-container" ${fe(this.containerRef)}>
1639
+ ${!this.active && ((r = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && r.showButtonLabel) ? T`
1640
1640
  <button
1641
1641
  label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
1642
1642
  class="trigger-label"
1643
1643
  @click=${this.toggleActive}
1644
- ${ci({
1644
+ ${hi({
1645
1645
  keyframeOptions: {},
1646
- in: si,
1646
+ in: ni,
1647
1647
  stabilizeOut: !0,
1648
1648
  skipInitial: !1
1649
1649
  })}
1650
1650
  >
1651
1651
  ${this.application.settings.branding.other.buttonLabelText}
1652
1652
  </button>
1653
- ` : d}
1653
+ ` : u}
1654
1654
 
1655
1655
  <button
1656
1656
  label="Widget trigger"
1657
- class=${hi({
1657
+ class=${pi({
1658
1658
  trigger: !0,
1659
1659
  active: this.active,
1660
1660
  rendered: this.loaded
@@ -1800,25 +1800,25 @@ A.styles = [
1800
1800
  }
1801
1801
  `
1802
1802
  ];
1803
- rt([
1803
+ st([
1804
1804
  m({ attribute: !1 })
1805
1805
  ], A.prototype, "application", 2);
1806
- rt([
1806
+ st([
1807
1807
  z()
1808
1808
  ], A.prototype, "active", 2);
1809
- rt([
1809
+ st([
1810
1810
  z()
1811
1811
  ], A.prototype, "loaded", 2);
1812
- rt([
1812
+ st([
1813
1813
  z()
1814
1814
  ], A.prototype, "icon", 2);
1815
- var fi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, x = (r, t, e, i) => {
1816
- for (var s = i > 1 ? void 0 : i ? gi(t, e) : t, n = r.length - 1, o; n >= 0; n--)
1817
- (o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
1818
- return i && s && fi(t, e, s), s;
1815
+ var gi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, C = (s, t, e, i) => {
1816
+ for (var r = i > 1 ? void 0 : i ? mi(t, e) : t, n = s.length - 1, o; n >= 0; n--)
1817
+ (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
1818
+ return i && r && gi(t, e, r), r;
1819
1819
  };
1820
- const mi = (r) => {
1821
- class t extends r {
1820
+ const vi = (s) => {
1821
+ class t extends s {
1822
1822
  constructor() {
1823
1823
  super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
1824
1824
  }
@@ -1856,28 +1856,28 @@ const mi = (r) => {
1856
1856
  box-sizing: border-box;
1857
1857
  }
1858
1858
  `
1859
- ], x([
1859
+ ], C([
1860
1860
  m()
1861
- ], t.prototype, "properties", 2), x([
1861
+ ], t.prototype, "properties", 2), C([
1862
1862
  m()
1863
- ], t.prototype, "context", 2), x([
1863
+ ], t.prototype, "context", 2), C([
1864
1864
  m()
1865
- ], t.prototype, "layout", 2), x([
1865
+ ], t.prototype, "layout", 2), C([
1866
1866
  m()
1867
- ], t.prototype, "name", 2), x([
1867
+ ], t.prototype, "name", 2), C([
1868
1868
  m()
1869
- ], t.prototype, "type", 2), x([
1869
+ ], t.prototype, "type", 2), C([
1870
1870
  m({ attribute: !1 })
1871
- ], t.prototype, "application", 2), x([
1871
+ ], t.prototype, "application", 2), C([
1872
1872
  m({ attribute: !1 })
1873
1873
  ], t.prototype, "parent", 2), t;
1874
1874
  };
1875
- class Ct extends mi($) {
1875
+ class xt extends vi($) {
1876
1876
  render() {
1877
1877
  return T`Non resolved component`;
1878
1878
  }
1879
1879
  }
1880
- Ct.styles = [
1880
+ xt.styles = [
1881
1881
  U`
1882
1882
  :host {
1883
1883
  display: block;
@@ -1889,19 +1889,147 @@ Ct.styles = [
1889
1889
  * Copyright 2021 Google LLC
1890
1890
  * SPDX-License-Identifier: BSD-3-Clause
1891
1891
  */
1892
- function* vi(r, t) {
1893
- if (r !== void 0) {
1892
+ function* yi(s, t) {
1893
+ if (s !== void 0) {
1894
1894
  let e = 0;
1895
- for (const i of r)
1895
+ for (const i of s)
1896
1896
  yield t(i, e++);
1897
1897
  }
1898
1898
  }
1899
- var y = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(y || {}), yi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, $i = (r, t, e, i) => {
1900
- for (var s = i > 1 ? void 0 : i ? bi(t, e) : t, n = r.length - 1, o; n >= 0; n--)
1901
- (o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
1902
- return i && s && yi(t, e, s), s;
1899
+ var y = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(y || {});
1900
+ /**
1901
+ * @license
1902
+ * Copyright 2021 Google LLC
1903
+ * SPDX-License-Identifier: BSD-3-Clause
1904
+ */
1905
+ let bi = class extends Event {
1906
+ constructor(t, e, i) {
1907
+ super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = i ?? !1;
1908
+ }
1909
+ };
1910
+ /**
1911
+ * @license
1912
+ * Copyright 2021 Google LLC
1913
+ * SPDX-License-Identifier: BSD-3-Clause
1914
+ */
1915
+ /**
1916
+ * @license
1917
+ * Copyright 2021 Google LLC
1918
+ * SPDX-License-Identifier: BSD-3-Clause
1919
+ */
1920
+ class $i {
1921
+ get value() {
1922
+ return this.o;
1923
+ }
1924
+ set value(t) {
1925
+ this.setValue(t);
1926
+ }
1927
+ setValue(t, e = !1) {
1928
+ const i = e || !Object.is(t, this.o);
1929
+ this.o = t, i && this.updateObservers();
1930
+ }
1931
+ constructor(t) {
1932
+ this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {
1933
+ for (const [e, { disposer: i }] of this.subscriptions)
1934
+ e(this.o, i);
1935
+ }, t !== void 0 && (this.value = t);
1936
+ }
1937
+ addCallback(t, e, i) {
1938
+ if (!i)
1939
+ return void t(this.value);
1940
+ this.subscriptions.has(t) || this.subscriptions.set(t, { disposer: () => {
1941
+ this.subscriptions.delete(t);
1942
+ }, consumerHost: e });
1943
+ const { disposer: r } = this.subscriptions.get(t);
1944
+ t(this.value, r);
1945
+ }
1946
+ clearCallbacks() {
1947
+ this.subscriptions.clear();
1948
+ }
1949
+ }
1950
+ /**
1951
+ * @license
1952
+ * Copyright 2021 Google LLC
1953
+ * SPDX-License-Identifier: BSD-3-Clause
1954
+ */
1955
+ let _i = class extends Event {
1956
+ constructor(t) {
1957
+ super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
1958
+ }
1903
1959
  };
1904
- class st extends $ {
1960
+ class Kt extends $i {
1961
+ constructor(t, e, i) {
1962
+ var r, n;
1963
+ super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
1964
+ const a = o.composedPath()[0];
1965
+ o.context === this.context && a !== this.host && (o.stopPropagation(), this.addCallback(o.callback, a, o.subscribe));
1966
+ }, this.onProviderRequest = (o) => {
1967
+ const a = o.composedPath()[0];
1968
+ if (o.context !== this.context || a === this.host)
1969
+ return;
1970
+ const c = /* @__PURE__ */ new Set();
1971
+ for (const [h, { consumerHost: l }] of this.subscriptions)
1972
+ c.has(h) || (c.add(h), l.dispatchEvent(new bi(this.context, h, !0)));
1973
+ o.stopPropagation();
1974
+ }, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (n = (r = this.host).addController) == null || n.call(r, this);
1975
+ }
1976
+ attachListeners() {
1977
+ this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
1978
+ }
1979
+ hostConnected() {
1980
+ this.host.dispatchEvent(new _i(this.context));
1981
+ }
1982
+ }
1983
+ /**
1984
+ * @license
1985
+ * Copyright 2017 Google LLC
1986
+ * SPDX-License-Identifier: BSD-3-Clause
1987
+ */
1988
+ function wi({ context: s }) {
1989
+ return (t, e) => {
1990
+ const i = /* @__PURE__ */ new WeakMap();
1991
+ if (typeof e == "object")
1992
+ return e.addInitializer(function() {
1993
+ i.set(this, new Kt(this, { context: s }));
1994
+ }), { get() {
1995
+ return t.get.call(this);
1996
+ }, set(r) {
1997
+ var n;
1998
+ return (n = i.get(this)) == null || n.setValue(r), t.set.call(this, r);
1999
+ }, init(r) {
2000
+ var n;
2001
+ return (n = i.get(this)) == null || n.setValue(r), r;
2002
+ } };
2003
+ {
2004
+ t.constructor.addInitializer((o) => {
2005
+ i.set(o, new Kt(o, { context: s }));
2006
+ });
2007
+ const r = Object.getOwnPropertyDescriptor(t, e);
2008
+ let n;
2009
+ if (r === void 0) {
2010
+ const o = /* @__PURE__ */ new WeakMap();
2011
+ n = { get: function() {
2012
+ return o.get(this);
2013
+ }, set: function(a) {
2014
+ i.get(this).setValue(a), o.set(this, a);
2015
+ }, configurable: !0, enumerable: !0 };
2016
+ } else {
2017
+ const o = r.set;
2018
+ n = { ...r, set: function(a) {
2019
+ i.get(this).setValue(a), o == null || o.call(this, a);
2020
+ } };
2021
+ }
2022
+ return void Object.defineProperty(t, e, n);
2023
+ }
2024
+ };
2025
+ }
2026
+ var Ai = Object.defineProperty, xi = Object.getOwnPropertyDescriptor, Ci = (s, t, e, i) => {
2027
+ for (var r = i > 1 ? void 0 : i ? xi(t, e) : t, n = s.length - 1, o; n >= 0; n--)
2028
+ (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
2029
+ return i && r && Ai(t, e, r), r;
2030
+ };
2031
+ const Si = "application";
2032
+ class rt extends $ {
1905
2033
  constructor() {
1906
2034
  super(...arguments), this.nodes = [], this.wrapperRef = de();
1907
2035
  }
@@ -1912,26 +2040,26 @@ class st extends $ {
1912
2040
  if (!this.wrapperRef.value)
1913
2041
  return;
1914
2042
  const t = this.application.settings;
1915
- t != null && t.branding && pe(t.branding, this.wrapperRef.value);
2043
+ t != null && t.branding && ue(t.branding, this.wrapperRef.value);
1916
2044
  }
1917
2045
  applyStyles() {
1918
2046
  if (!this.wrapperRef.value)
1919
2047
  return;
1920
2048
  const t = this.application.styles(), e = this.wrapperRef.value;
1921
- Object.entries(t).forEach(([i, s]) => {
1922
- e.style.setProperty(`--${i}`, s);
2049
+ Object.entries(t).forEach(([i, r]) => {
2050
+ e.style.setProperty(`--${i}`, r);
1923
2051
  });
1924
2052
  }
1925
2053
  firstUpdated(t) {
1926
2054
  this.applyBranding(), this.applyStyles();
1927
2055
  }
1928
2056
  render() {
1929
- return this.application.renderStrategy === y.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")), T`<div class="widget-container" ${ue(this.wrapperRef)}>
1930
- ${vi(this.nodes, (t) => t)}
2057
+ return this.application.renderStrategy === y.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")), T`<div class="widget-container" ${fe(this.wrapperRef)}>
2058
+ ${yi(this.nodes, (t) => t)}
1931
2059
  </div>`;
1932
2060
  }
1933
2061
  }
1934
- st.styles = U`
2062
+ rt.styles = U`
1935
2063
  :host {
1936
2064
  --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
1937
2065
  --spacing-xs: 0.2rem;
@@ -1947,7 +2075,6 @@ st.styles = U`
1947
2075
  --gray-color: #f3f3f8;
1948
2076
  --white-color: #fff;
1949
2077
  --gray-dark-color: #a6a6a6;
1950
- --destructive-color: #e4175c;
1951
2078
 
1952
2079
  --box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
1953
2080
  --border-radius: var(--spacing-sm);
@@ -2037,10 +2164,11 @@ st.styles = U`
2037
2164
  animation: slideDown 0.3s linear;
2038
2165
  }
2039
2166
  `;
2040
- $i([
2041
- m({ attribute: !1 })
2042
- ], st.prototype, "application", 2);
2043
- class _i {
2167
+ Ci([
2168
+ m({ attribute: !1 }),
2169
+ wi({ context: Si })
2170
+ ], rt.prototype, "application", 2);
2171
+ class Ei {
2044
2172
  constructor() {
2045
2173
  this.root = this.createRoot();
2046
2174
  }
@@ -2048,46 +2176,46 @@ class _i {
2048
2176
  this.root.application = e;
2049
2177
  const i = (a) => {
2050
2178
  if (Array.isArray(a)) {
2051
- const [c, ...l] = a;
2179
+ const [c, ...h] = a;
2052
2180
  return {
2053
2181
  definitionId: c,
2054
- overrides: l
2182
+ overrides: h
2055
2183
  };
2056
2184
  }
2057
2185
  return {
2058
2186
  definitionId: a,
2059
2187
  overrides: []
2060
2188
  };
2061
- }, s = (a, c, l, h) => {
2062
- l.forEach((p) => {
2063
- const f = i(p), u = h[f.definitionId];
2064
- if (!u) {
2189
+ }, r = (a, c, h, l) => {
2190
+ h.forEach((p) => {
2191
+ const f = i(p), d = l[f.definitionId];
2192
+ if (!d) {
2065
2193
  console.error(
2066
2194
  `No definition found for component type '${f.definitionId}'.`
2067
2195
  );
2068
2196
  return;
2069
2197
  }
2070
- const g = a.createNode(u.type, u.type);
2071
- g && (g.name = f.definitionId, g.application = e, u.properties && g.writeProperties(u.properties), u.context && g.writeContext(u.context), u.layout && g.writeLayout(u.layout), c.addChild(g), u.children && s(
2198
+ const g = a.createNode(d.type, d.type);
2199
+ g && (g.name = f.definitionId, g.application = e, d.properties && g.writeProperties(d.properties), d.context && g.writeContext(d.context), d.layout && g.writeLayout(d.layout), c.addChild(g), d.children && r(
2072
2200
  a,
2073
2201
  g,
2074
- u.children,
2075
- h
2202
+ d.children,
2203
+ l
2076
2204
  // views
2077
2205
  ));
2078
2206
  });
2079
2207
  }, { entry: n, components: o } = t;
2080
- return s(this, this.root, [n], o), this.root;
2208
+ return r(this, this.root, [n], o), this.root;
2081
2209
  }
2082
2210
  createRoot() {
2083
- return new st();
2211
+ return new rt();
2084
2212
  }
2085
2213
  createNode(t, e) {
2086
2214
  const i = this.resolveComponent(e);
2087
2215
  if (!i)
2088
- return console.warn(`Unable to resolve component: ${e}`), new Ct();
2089
- const s = new i();
2090
- return s.type = e, s.name = t, s;
2216
+ return console.warn(`Unable to resolve component: ${e}`), new xt();
2217
+ const r = new i();
2218
+ return r.type = e, r.name = t, r;
2091
2219
  }
2092
2220
  resolveComponent(t) {
2093
2221
  return customElements.get(`ace-${t}`);
@@ -2096,33 +2224,33 @@ class _i {
2096
2224
  return this.root;
2097
2225
  }
2098
2226
  }
2099
- const fe = class {
2227
+ const ge = class {
2100
2228
  constructor() {
2101
2229
  this.components = /* @__PURE__ */ new Map();
2102
2230
  }
2103
- getComponent(r) {
2104
- const t = this.components.get(r);
2231
+ getComponent(s) {
2232
+ const t = this.components.get(s);
2105
2233
  return t || console.warn(
2106
- `Unable to resolve component: ${r}. You most likely forgot to register the required plugin.`
2234
+ `Unable to resolve component: ${s}. You most likely forgot to register the required plugin.`
2107
2235
  ), t;
2108
2236
  }
2109
- registerComponent(r, t) {
2110
- this.components.set(r, t);
2237
+ registerComponent(s, t) {
2238
+ this.components.set(s, t);
2111
2239
  }
2112
2240
  async loadComponents() {
2113
- const r = [...this.components.entries()].map(([t, e]) => e.then((i) => {
2241
+ const s = [...this.components.entries()].map(([t, e]) => e.then((i) => {
2114
2242
  this.defineAsWebComponent(t, i.default);
2115
2243
  }));
2116
- await Promise.all(r);
2244
+ await Promise.all(s);
2117
2245
  }
2118
- defineAsWebComponent(r, t) {
2119
- const e = fe.ResolveWebComponentName(r);
2246
+ defineAsWebComponent(s, t) {
2247
+ const e = ge.ResolveWebComponentName(s);
2120
2248
  customElements.get(e) || customElements.define(e, t);
2121
2249
  }
2122
2250
  };
2123
- let ge = fe;
2124
- ge.ResolveWebComponentName = (r) => `ace-${r}`;
2125
- class wi {
2251
+ let me = ge;
2252
+ me.ResolveWebComponentName = (s) => `ace-${s}`;
2253
+ class Pi {
2126
2254
  constructor(t) {
2127
2255
  this.widgetId = t;
2128
2256
  }
@@ -2143,7 +2271,7 @@ class wi {
2143
2271
  }
2144
2272
  }
2145
2273
  }
2146
- class Ai {
2274
+ class Oi {
2147
2275
  constructor() {
2148
2276
  this.texts = /* @__PURE__ */ new Map();
2149
2277
  }
@@ -2158,12 +2286,12 @@ class Ai {
2158
2286
  return this.texts.get(t) || e;
2159
2287
  }
2160
2288
  }
2161
- class Ci {
2162
- constructor(t, e, i, s, n) {
2163
- this.id = t, this.name = e, this.container = i, this.settings = s, this.options = n, this.platform = new _i(), this.texts = new Ai(), this.renderStrategy = y.Inline, this.anchor = "BottomRight", this.autoActivate = !1, this.plugins = [], this.componentResolver = new ge(), this.components = [], this.trigger = null, this.renderStrategy = this.options.renderStrategy || y.Inline, this.triggerIcon = this.options.triggerIcon, this.storage = new wi(this.id), typeof n.autoActivate == "boolean" && (this.autoActivate = n.autoActivate), n.anchor && (this.anchor = n.anchor), this.container.register("$settings", s), this.texts.loadTexts(s.texts || {});
2289
+ class Ti {
2290
+ constructor(t, e, i, r, n) {
2291
+ this.id = t, this.name = e, this.container = i, this.settings = r, this.options = n, this.platform = new Ei(), this.texts = new Oi(), this.renderStrategy = y.Inline, this.anchor = "BottomRight", this.autoActivate = !1, this.plugins = [], this.componentResolver = new me(), this.components = [], this.trigger = null, this.renderStrategy = this.options.renderStrategy || y.Inline, this.triggerIcon = this.options.triggerIcon, this.storage = new Pi(this.id), typeof n.autoActivate == "boolean" && (this.autoActivate = n.autoActivate), n.anchor && (this.anchor = n.anchor), this.container.register("$settings", r), this.texts.loadTexts(r.texts || {});
2164
2292
  }
2165
2293
  async activate() {
2166
- if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(ee.Ready), this.autoActivate) {
2294
+ if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(ie.Ready), this.autoActivate) {
2167
2295
  const t = this.render();
2168
2296
  t && this._getTargetElement().appendChild(t);
2169
2297
  }
@@ -2224,22 +2352,22 @@ class Ci {
2224
2352
  return this.root;
2225
2353
  }
2226
2354
  }
2227
- const Ii = (r) => new Q(r), me = class {
2355
+ const Di = (s) => new Q(s), ve = class {
2228
2356
  // TODO:
2229
2357
  // private static endpoint = 'http://localhost:5299/api'; // TODO:
2230
- constructor(r = me.endpoint) {
2231
- this._endpoint = r;
2358
+ constructor(s = ve.endpoint) {
2359
+ this._endpoint = s;
2232
2360
  }
2233
- async getSite(r) {
2234
- const e = await (await fetch(r)).json();
2361
+ async getSite(s) {
2362
+ const e = await (await fetch(s)).json();
2235
2363
  return e ? {
2236
2364
  id: e.id,
2237
2365
  apps: e.widgets.map((i) => {
2238
- let s = y.Inline;
2239
- return i.renderStrategy === "Trigger" && (s = y.Trigger), {
2366
+ let r = y.Inline;
2367
+ return i.renderStrategy === "Trigger" && (r = y.Trigger), {
2240
2368
  id: i.id,
2241
2369
  widgetId: i.widgetId,
2242
- renderStrategy: s,
2370
+ renderStrategy: r,
2243
2371
  autoActivate: i.autoActivate,
2244
2372
  anchor: i.anchor,
2245
2373
  triggerIcon: {
@@ -2250,17 +2378,17 @@ const Ii = (r) => new Q(r), me = class {
2250
2378
  })
2251
2379
  } : null;
2252
2380
  }
2253
- async getWidget(r) {
2254
- const e = await (await fetch(`${this._endpoint}/widget/${r}`)).json();
2381
+ async getWidget(s) {
2382
+ const e = await (await fetch(`${this._endpoint}/widget/${s}`)).json();
2255
2383
  return e ? {
2256
2384
  name: e.name,
2257
2385
  config: JSON.parse(e.configuration)
2258
2386
  } : null;
2259
2387
  }
2260
2388
  };
2261
- let Q = me;
2389
+ let Q = ve;
2262
2390
  Q.endpoint = "https://widgets.ace.teliacompany.net/api";
2263
- class xi {
2391
+ class Ri {
2264
2392
  constructor() {
2265
2393
  this.applications = [], this.container = new Rt("environment", this), setTimeout(() => {
2266
2394
  this.notifyWidgetsOfCreation();
@@ -2278,7 +2406,7 @@ class xi {
2278
2406
  }
2279
2407
  notifyWidgetsOfCreation() {
2280
2408
  document.querySelectorAll("ace-widget").forEach((e) => {
2281
- const i = this.applications.find((s) => s.name === e.name);
2409
+ const i = this.applications.find((r) => r.name === e.name);
2282
2410
  i && e.dispatchEvent(
2283
2411
  new CustomEvent("environment-created", {
2284
2412
  detail: { widget: i }
@@ -2286,8 +2414,8 @@ class xi {
2286
2414
  );
2287
2415
  });
2288
2416
  }
2289
- registerApp(t, e, i, s) {
2290
- const n = new Rt(e, this), o = new Ci(t, e, n, i, s);
2417
+ registerApp(t, e, i, r) {
2418
+ const n = new Rt(e, this), o = new Ti(t, e, n, i, r);
2291
2419
  this.applications.push(o);
2292
2420
  }
2293
2421
  plugin(t) {
@@ -2296,7 +2424,7 @@ class xi {
2296
2424
  }), this;
2297
2425
  }
2298
2426
  }
2299
- class Si {
2427
+ class Ui {
2300
2428
  constructor(t) {
2301
2429
  this.configurations = [], this.httpClient = new Q(), this.httpClient = new Q(), typeof t == "string" ? this.url = t : (t.httpClient && (this.httpClient = t.httpClient), this.loadFromConfig(t));
2302
2430
  }
@@ -2323,13 +2451,13 @@ class Si {
2323
2451
  }
2324
2452
  async bootstrap(t) {
2325
2453
  var e;
2326
- this.url && await this.load(this.url), this.environment = new xi(), this.addGlobal(this.environment);
2454
+ this.url && await this.load(this.url), this.environment = new Ri(), this.addGlobal(this.environment);
2327
2455
  for await (const i of this.configurations) {
2328
- const s = await this.httpClient.getWidget(i.widgetId);
2329
- s && ((e = this.environment) == null || e.registerApp(
2456
+ const r = await this.httpClient.getWidget(i.widgetId);
2457
+ r && ((e = this.environment) == null || e.registerApp(
2330
2458
  i.widgetId,
2331
- s.name,
2332
- s.config,
2459
+ r.name,
2460
+ r.config,
2333
2461
  {
2334
2462
  renderStrategy: i.renderStrategy,
2335
2463
  triggerIcon: i.triggerIcon,
@@ -2344,10 +2472,10 @@ class Si {
2344
2472
  globalThis.widgets = t;
2345
2473
  }
2346
2474
  }
2347
- var Ei = Object.defineProperty, Pi = Object.getOwnPropertyDescriptor, xt = (r, t, e, i) => {
2348
- for (var s = i > 1 ? void 0 : i ? Pi(t, e) : t, n = r.length - 1, o; n >= 0; n--)
2349
- (o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
2350
- return i && s && Ei(t, e, s), s;
2475
+ var Ii = Object.defineProperty, ki = Object.getOwnPropertyDescriptor, Ct = (s, t, e, i) => {
2476
+ for (var r = i > 1 ? void 0 : i ? ki(t, e) : t, n = s.length - 1, o; n >= 0; n--)
2477
+ (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
2478
+ return i && r && Ii(t, e, r), r;
2351
2479
  };
2352
2480
  class W extends $ {
2353
2481
  constructor() {
@@ -2373,7 +2501,7 @@ class W extends $ {
2373
2501
  }
2374
2502
  render() {
2375
2503
  if (!this.widget || this.status !== "activated")
2376
- return d;
2504
+ return u;
2377
2505
  if (this.widget.renderStrategy === y.Trigger) {
2378
2506
  const t = new A();
2379
2507
  return t.application = this.widget, t;
@@ -2388,33 +2516,34 @@ W.styles = [
2388
2516
  }
2389
2517
  `
2390
2518
  ];
2391
- xt([
2519
+ Ct([
2392
2520
  m({ attribute: !0 })
2393
2521
  ], W.prototype, "name", 2);
2394
- xt([
2522
+ Ct([
2395
2523
  z()
2396
2524
  ], W.prototype, "widget", 2);
2397
- xt([
2525
+ Ct([
2398
2526
  z()
2399
2527
  ], W.prototype, "status", 2);
2400
2528
  customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", it);
2401
2529
  customElements.get("ace-trigger") || customElements.define("ace-trigger", A);
2402
- customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Ct);
2403
- customElements.get("ace-wrapper") || customElements.define("ace-wrapper", st);
2530
+ customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", xt);
2531
+ customElements.get("ace-wrapper") || customElements.define("ace-wrapper", rt);
2404
2532
  customElements.get("ace-widget") || customElements.define("ace-widget", W);
2405
- const Ni = async (r, t) => {
2406
- await new Si(r).bootstrap(t);
2533
+ const zi = async (s, t) => {
2534
+ await new Ui(s).bootstrap(t);
2407
2535
  };
2408
2536
  export {
2409
2537
  W as AceWidget,
2410
- Ci as Application,
2538
+ Ti as Application,
2411
2539
  Rt as Container,
2412
- xi as Environment,
2540
+ Ri as Environment,
2413
2541
  Q as HttpClient,
2414
- Si as Site,
2415
- wi as StorageService,
2542
+ Ui as Site,
2543
+ Pi as StorageService,
2416
2544
  A as Trigger,
2417
- mi as WidgetComponent,
2418
- Ni as bootstrap,
2419
- Ii as createHttpClient
2545
+ vi as WidgetComponent,
2546
+ Si as applicationContext,
2547
+ zi as bootstrap,
2548
+ Di as createHttpClient
2420
2549
  };