@telia-ace/widget-components-copyright-flamingo 1.1.76 → 1.1.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
var ht = function(
|
|
1
|
+
var ht = function(s, t) {
|
|
2
2
|
return ht = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
|
|
3
3
|
e.__proto__ = i;
|
|
4
4
|
} || function(e, i) {
|
|
5
|
-
for (var
|
|
6
|
-
Object.prototype.hasOwnProperty.call(i,
|
|
7
|
-
}, ht(
|
|
5
|
+
for (var r in i)
|
|
6
|
+
Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]);
|
|
7
|
+
}, ht(s, t);
|
|
8
8
|
};
|
|
9
|
-
function D(
|
|
9
|
+
function D(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
|
-
ht(
|
|
12
|
+
ht(s, t);
|
|
13
13
|
function e() {
|
|
14
|
-
this.constructor =
|
|
14
|
+
this.constructor = s;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
s.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
17
17
|
}
|
|
18
|
-
function pt(
|
|
19
|
-
var t = typeof Symbol == "function" && Symbol.iterator, e = t &&
|
|
18
|
+
function pt(s) {
|
|
19
|
+
var t = typeof Symbol == "function" && Symbol.iterator, e = t && s[t], i = 0;
|
|
20
20
|
if (e)
|
|
21
|
-
return e.call(
|
|
22
|
-
if (
|
|
21
|
+
return e.call(s);
|
|
22
|
+
if (s && typeof s.length == "number")
|
|
23
23
|
return {
|
|
24
24
|
next: function() {
|
|
25
|
-
return
|
|
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 q(
|
|
31
|
-
var e = typeof Symbol == "function" &&
|
|
30
|
+
function q(s, t) {
|
|
31
|
+
var e = typeof Symbol == "function" && s[Symbol.iterator];
|
|
32
32
|
if (!e)
|
|
33
|
-
return
|
|
34
|
-
var i = e.call(
|
|
33
|
+
return s;
|
|
34
|
+
var i = e.call(s), r, o = [], n;
|
|
35
35
|
try {
|
|
36
|
-
for (; (t === void 0 || t-- > 0) && !(
|
|
37
|
-
o.push(
|
|
36
|
+
for (; (t === void 0 || t-- > 0) && !(r = i.next()).done; )
|
|
37
|
+
o.push(r.value);
|
|
38
38
|
} catch (a) {
|
|
39
39
|
n = { error: a };
|
|
40
40
|
} finally {
|
|
41
41
|
try {
|
|
42
|
-
|
|
42
|
+
r && !r.done && (e = i.return) && e.call(i);
|
|
43
43
|
} finally {
|
|
44
44
|
if (n)
|
|
45
45
|
throw n.error;
|
|
@@ -47,42 +47,42 @@ function q(r, t) {
|
|
|
47
47
|
}
|
|
48
48
|
return o;
|
|
49
49
|
}
|
|
50
|
-
function K(
|
|
50
|
+
function K(s, t, e) {
|
|
51
51
|
if (e || arguments.length === 2)
|
|
52
|
-
for (var i = 0,
|
|
52
|
+
for (var i = 0, r = t.length, o; i < r; i++)
|
|
53
53
|
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
|
54
|
-
return
|
|
54
|
+
return s.concat(o || Array.prototype.slice.call(t));
|
|
55
55
|
}
|
|
56
|
-
function b(
|
|
57
|
-
return typeof
|
|
56
|
+
function b(s) {
|
|
57
|
+
return typeof s == "function";
|
|
58
58
|
}
|
|
59
|
-
function Kt(
|
|
59
|
+
function Kt(s) {
|
|
60
60
|
var t = function(i) {
|
|
61
61
|
Error.call(i), i.stack = new Error().stack;
|
|
62
|
-
}, e =
|
|
62
|
+
}, e = s(t);
|
|
63
63
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
|
64
64
|
}
|
|
65
|
-
var et = Kt(function(
|
|
65
|
+
var et = Kt(function(s) {
|
|
66
66
|
return function(e) {
|
|
67
|
-
|
|
68
|
-
` + e.map(function(i,
|
|
69
|
-
return
|
|
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 dt(
|
|
75
|
-
if (
|
|
76
|
-
var e =
|
|
77
|
-
0 <= e &&
|
|
74
|
+
function dt(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 Q = function() {
|
|
81
|
-
function
|
|
81
|
+
function s(t) {
|
|
82
82
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
83
83
|
}
|
|
84
|
-
return
|
|
85
|
-
var t, e, i,
|
|
84
|
+
return s.prototype.unsubscribe = function() {
|
|
85
|
+
var t, e, i, r, o;
|
|
86
86
|
if (!this.closed) {
|
|
87
87
|
this.closed = !0;
|
|
88
88
|
var n = this._parentage;
|
|
@@ -128,7 +128,7 @@ var Q = function() {
|
|
|
128
128
|
i = { error: v };
|
|
129
129
|
} finally {
|
|
130
130
|
try {
|
|
131
|
-
f && !f.done && (
|
|
131
|
+
f && !f.done && (r = u.return) && r.call(u);
|
|
132
132
|
} finally {
|
|
133
133
|
if (i)
|
|
134
134
|
throw i.error;
|
|
@@ -138,41 +138,41 @@ var Q = function() {
|
|
|
138
138
|
if (o)
|
|
139
139
|
throw new et(o);
|
|
140
140
|
}
|
|
141
|
-
},
|
|
141
|
+
}, s.prototype.add = function(t) {
|
|
142
142
|
var e;
|
|
143
143
|
if (t && t !== this)
|
|
144
144
|
if (this.closed)
|
|
145
145
|
xt(t);
|
|
146
146
|
else {
|
|
147
|
-
if (t instanceof
|
|
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
|
-
},
|
|
154
|
+
}, s.prototype._hasParent = function(t) {
|
|
155
155
|
var e = this._parentage;
|
|
156
156
|
return e === t || Array.isArray(e) && e.includes(t);
|
|
157
|
-
},
|
|
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
|
-
},
|
|
160
|
+
}, s.prototype._removeParent = function(t) {
|
|
161
161
|
var e = this._parentage;
|
|
162
162
|
e === t ? this._parentage = null : Array.isArray(e) && dt(e, t);
|
|
163
|
-
},
|
|
163
|
+
}, s.prototype.remove = function(t) {
|
|
164
164
|
var e = this._finalizers;
|
|
165
|
-
e && dt(e, t), t instanceof
|
|
166
|
-
},
|
|
167
|
-
var t = new
|
|
165
|
+
e && dt(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
|
-
}(),
|
|
169
|
+
}(), s;
|
|
170
170
|
}(), Gt = Q.EMPTY;
|
|
171
|
-
function Xt(
|
|
172
|
-
return
|
|
171
|
+
function Xt(s) {
|
|
172
|
+
return s instanceof Q || s && "closed" in s && b(s.remove) && b(s.add) && b(s.unsubscribe);
|
|
173
173
|
}
|
|
174
|
-
function xt(
|
|
175
|
-
b(
|
|
174
|
+
function xt(s) {
|
|
175
|
+
b(s) ? s() : s.unsubscribe();
|
|
176
176
|
}
|
|
177
177
|
var Jt = {
|
|
178
178
|
onUnhandledError: null,
|
|
@@ -181,36 +181,36 @@ var Jt = {
|
|
|
181
181
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
182
182
|
useDeprecatedNextContext: !1
|
|
183
183
|
}, ut = {
|
|
184
|
-
setTimeout: function(
|
|
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
|
|
188
|
-
return
|
|
187
|
+
var r = ut.delegate;
|
|
188
|
+
return r != null && r.setTimeout ? r.setTimeout.apply(r, K([s, t], q(e))) : setTimeout.apply(void 0, K([s, t], q(e)));
|
|
189
189
|
},
|
|
190
|
-
clearTimeout: function(
|
|
190
|
+
clearTimeout: function(s) {
|
|
191
191
|
var t = ut.delegate;
|
|
192
|
-
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(
|
|
192
|
+
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(s);
|
|
193
193
|
},
|
|
194
194
|
delegate: void 0
|
|
195
195
|
};
|
|
196
|
-
function ve(
|
|
196
|
+
function ve(s) {
|
|
197
197
|
ut.setTimeout(function() {
|
|
198
|
-
throw
|
|
198
|
+
throw s;
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
201
|
function Et() {
|
|
202
202
|
}
|
|
203
|
-
function F(
|
|
204
|
-
|
|
203
|
+
function F(s) {
|
|
204
|
+
s();
|
|
205
205
|
}
|
|
206
|
-
var Qt = function(
|
|
207
|
-
D(t,
|
|
206
|
+
var Qt = function(s) {
|
|
207
|
+
D(t, s);
|
|
208
208
|
function t(e) {
|
|
209
|
-
var i =
|
|
209
|
+
var i = s.call(this) || this;
|
|
210
210
|
return i.isStopped = !1, e ? (i.destination = e, Xt(e) && e.add(i)) : i.destination = $e, i;
|
|
211
211
|
}
|
|
212
|
-
return t.create = function(e, i,
|
|
213
|
-
return new ft(e, i,
|
|
212
|
+
return t.create = function(e, i, r) {
|
|
213
|
+
return new ft(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,
|
|
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) {
|
|
@@ -235,14 +235,14 @@ var Qt = function(r) {
|
|
|
235
235
|
}
|
|
236
236
|
}, t;
|
|
237
237
|
}(Q), me = Function.prototype.bind;
|
|
238
|
-
function it(
|
|
239
|
-
return me.call(
|
|
238
|
+
function it(s, t) {
|
|
239
|
+
return me.call(s, t);
|
|
240
240
|
}
|
|
241
241
|
var ye = function() {
|
|
242
|
-
function
|
|
242
|
+
function s(t) {
|
|
243
243
|
this.partialObserver = t;
|
|
244
244
|
}
|
|
245
|
-
return
|
|
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 ye = function() {
|
|
|
250
250
|
} catch (i) {
|
|
251
251
|
Y(i);
|
|
252
252
|
}
|
|
253
|
-
},
|
|
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 ye = function() {
|
|
|
260
260
|
}
|
|
261
261
|
else
|
|
262
262
|
Y(t);
|
|
263
|
-
},
|
|
263
|
+
}, s.prototype.complete = function() {
|
|
264
264
|
var t = this.partialObserver;
|
|
265
265
|
if (t.complete)
|
|
266
266
|
try {
|
|
@@ -268,16 +268,16 @@ var ye = function() {
|
|
|
268
268
|
} catch (e) {
|
|
269
269
|
Y(e);
|
|
270
270
|
}
|
|
271
|
-
},
|
|
272
|
-
}(), ft = function(
|
|
273
|
-
D(t,
|
|
274
|
-
function t(e, i,
|
|
275
|
-
var o =
|
|
271
|
+
}, s;
|
|
272
|
+
}(), ft = function(s) {
|
|
273
|
+
D(t, s);
|
|
274
|
+
function t(e, i, r) {
|
|
275
|
+
var o = s.call(this) || this, n;
|
|
276
276
|
if (b(e) || !e)
|
|
277
277
|
n = {
|
|
278
278
|
next: e ?? void 0,
|
|
279
279
|
error: i ?? void 0,
|
|
280
|
-
complete:
|
|
280
|
+
complete: r ?? void 0
|
|
281
281
|
};
|
|
282
282
|
else {
|
|
283
283
|
var a;
|
|
@@ -293,11 +293,11 @@ var ye = function() {
|
|
|
293
293
|
}
|
|
294
294
|
return t;
|
|
295
295
|
}(Qt);
|
|
296
|
-
function Y(
|
|
297
|
-
ve(
|
|
296
|
+
function Y(s) {
|
|
297
|
+
ve(s);
|
|
298
298
|
}
|
|
299
|
-
function be(
|
|
300
|
-
throw
|
|
299
|
+
function be(s) {
|
|
300
|
+
throw s;
|
|
301
301
|
}
|
|
302
302
|
var $e = {
|
|
303
303
|
closed: !0,
|
|
@@ -307,38 +307,38 @@ var $e = {
|
|
|
307
307
|
}, _e = function() {
|
|
308
308
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
309
309
|
}();
|
|
310
|
-
function we(
|
|
311
|
-
return
|
|
310
|
+
function we(s) {
|
|
311
|
+
return s;
|
|
312
312
|
}
|
|
313
|
-
function Ce(
|
|
314
|
-
return
|
|
315
|
-
return
|
|
316
|
-
return
|
|
313
|
+
function Ce(s) {
|
|
314
|
+
return s.length === 0 ? we : 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 St = function() {
|
|
321
|
-
function
|
|
321
|
+
function s(t) {
|
|
322
322
|
t && (this._subscribe = t);
|
|
323
323
|
}
|
|
324
|
-
return
|
|
325
|
-
var e = new
|
|
324
|
+
return s.prototype.lift = function(t) {
|
|
325
|
+
var e = new s();
|
|
326
326
|
return e.source = this, e.operator = t, e;
|
|
327
|
-
},
|
|
328
|
-
var
|
|
327
|
+
}, s.prototype.subscribe = function(t, e, i) {
|
|
328
|
+
var r = this, o = xe(t) ? t : new ft(t, e, i);
|
|
329
329
|
return F(function() {
|
|
330
|
-
var n =
|
|
331
|
-
o.add(a ? a.call(o, c) : c ?
|
|
330
|
+
var n = r, a = n.operator, c = n.source;
|
|
331
|
+
o.add(a ? a.call(o, c) : c ? r._subscribe(o) : r._trySubscribe(o));
|
|
332
332
|
}), o;
|
|
333
|
-
},
|
|
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
|
-
},
|
|
339
|
+
}, s.prototype.forEach = function(t, e) {
|
|
340
340
|
var i = this;
|
|
341
|
-
return e = Pt(e), new e(function(
|
|
341
|
+
return e = Pt(e), new e(function(r, o) {
|
|
342
342
|
var n = new ft({
|
|
343
343
|
next: function(a) {
|
|
344
344
|
try {
|
|
@@ -348,53 +348,53 @@ var St = function() {
|
|
|
348
348
|
}
|
|
349
349
|
},
|
|
350
350
|
error: o,
|
|
351
|
-
complete:
|
|
351
|
+
complete: r
|
|
352
352
|
});
|
|
353
353
|
i.subscribe(n);
|
|
354
354
|
});
|
|
355
|
-
},
|
|
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
|
-
},
|
|
358
|
+
}, s.prototype[_e] = function() {
|
|
359
359
|
return this;
|
|
360
|
-
},
|
|
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
|
-
},
|
|
364
|
+
}, s.prototype.toPromise = function(t) {
|
|
365
365
|
var e = this;
|
|
366
|
-
return t = Pt(t), new t(function(i,
|
|
366
|
+
return t = Pt(t), new t(function(i, r) {
|
|
367
367
|
var o;
|
|
368
368
|
e.subscribe(function(n) {
|
|
369
369
|
return o = n;
|
|
370
370
|
}, function(n) {
|
|
371
|
-
return
|
|
371
|
+
return r(n);
|
|
372
372
|
}, function() {
|
|
373
373
|
return i(o);
|
|
374
374
|
});
|
|
375
375
|
});
|
|
376
|
-
},
|
|
377
|
-
return new
|
|
378
|
-
},
|
|
376
|
+
}, s.create = function(t) {
|
|
377
|
+
return new s(t);
|
|
378
|
+
}, s;
|
|
379
379
|
}();
|
|
380
|
-
function Pt(
|
|
380
|
+
function Pt(s) {
|
|
381
381
|
var t;
|
|
382
|
-
return (t =
|
|
382
|
+
return (t = s ?? Jt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
383
383
|
}
|
|
384
|
-
function Ae(
|
|
385
|
-
return
|
|
384
|
+
function Ae(s) {
|
|
385
|
+
return s && b(s.next) && b(s.error) && b(s.complete);
|
|
386
386
|
}
|
|
387
|
-
function xe(
|
|
388
|
-
return
|
|
387
|
+
function xe(s) {
|
|
388
|
+
return s && s instanceof Qt || Ae(s) && Xt(s);
|
|
389
389
|
}
|
|
390
|
-
var Ee = Kt(function(
|
|
390
|
+
var Ee = Kt(function(s) {
|
|
391
391
|
return function() {
|
|
392
|
-
|
|
392
|
+
s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
393
393
|
};
|
|
394
|
-
}), gt = function(
|
|
395
|
-
D(t,
|
|
394
|
+
}), gt = function(s) {
|
|
395
|
+
D(t, s);
|
|
396
396
|
function t() {
|
|
397
|
-
var e =
|
|
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) {
|
|
@@ -406,7 +406,7 @@ var Ee = Kt(function(r) {
|
|
|
406
406
|
}, t.prototype.next = function(e) {
|
|
407
407
|
var i = this;
|
|
408
408
|
F(function() {
|
|
409
|
-
var
|
|
409
|
+
var r, o;
|
|
410
410
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
411
411
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
|
412
412
|
try {
|
|
@@ -415,13 +415,13 @@ var Ee = Kt(function(r) {
|
|
|
415
415
|
c.next(e);
|
|
416
416
|
}
|
|
417
417
|
} catch (l) {
|
|
418
|
-
|
|
418
|
+
r = { error: l };
|
|
419
419
|
} finally {
|
|
420
420
|
try {
|
|
421
421
|
a && !a.done && (o = n.return) && o.call(n);
|
|
422
422
|
} finally {
|
|
423
|
-
if (
|
|
424
|
-
throw
|
|
423
|
+
if (r)
|
|
424
|
+
throw r.error;
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
427
|
}
|
|
@@ -431,8 +431,8 @@ var Ee = Kt(function(r) {
|
|
|
431
431
|
F(function() {
|
|
432
432
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
433
433
|
i.hasError = i.isStopped = !0, i.thrownError = e;
|
|
434
|
-
for (var
|
|
435
|
-
|
|
434
|
+
for (var r = i.observers; r.length; )
|
|
435
|
+
r.shift().error(e);
|
|
436
436
|
}
|
|
437
437
|
});
|
|
438
438
|
}, t.prototype.complete = function() {
|
|
@@ -454,46 +454,46 @@ var Ee = Kt(function(r) {
|
|
|
454
454
|
enumerable: !1,
|
|
455
455
|
configurable: !0
|
|
456
456
|
}), t.prototype._trySubscribe = function(e) {
|
|
457
|
-
return this._throwIfClosed(),
|
|
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,
|
|
461
|
+
var i = this, r = this, o = r.hasError, n = r.isStopped, a = r.observers;
|
|
462
462
|
return o || n ? Gt : (this.currentObservers = null, a.push(e), new Q(function() {
|
|
463
463
|
i.currentObservers = null, dt(a, e);
|
|
464
464
|
}));
|
|
465
465
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
|
466
|
-
var i = this,
|
|
467
|
-
|
|
466
|
+
var i = this, r = i.hasError, o = i.thrownError, n = i.isStopped;
|
|
467
|
+
r ? e.error(o) : n && e.complete();
|
|
468
468
|
}, t.prototype.asObservable = function() {
|
|
469
469
|
var e = new St();
|
|
470
470
|
return e.source = this, e;
|
|
471
471
|
}, t.create = function(e, i) {
|
|
472
472
|
return new Ot(e, i);
|
|
473
473
|
}, t;
|
|
474
|
-
}(St), Ot = function(
|
|
475
|
-
D(t,
|
|
474
|
+
}(St), Ot = function(s) {
|
|
475
|
+
D(t, s);
|
|
476
476
|
function t(e, i) {
|
|
477
|
-
var
|
|
478
|
-
return
|
|
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,
|
|
482
|
-
(
|
|
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,
|
|
485
|
-
(
|
|
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,
|
|
491
|
-
return (
|
|
490
|
+
var i, r;
|
|
491
|
+
return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r : Gt;
|
|
492
492
|
}, t;
|
|
493
|
-
}(gt), Se = function(
|
|
494
|
-
D(t,
|
|
493
|
+
}(gt), Se = function(s) {
|
|
494
|
+
D(t, s);
|
|
495
495
|
function t(e) {
|
|
496
|
-
var i =
|
|
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,15 +503,15 @@ var Ee = Kt(function(r) {
|
|
|
503
503
|
enumerable: !1,
|
|
504
504
|
configurable: !0
|
|
505
505
|
}), t.prototype._subscribe = function(e) {
|
|
506
|
-
var i =
|
|
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,
|
|
509
|
+
var e = this, i = e.hasError, r = e.thrownError, o = e._value;
|
|
510
510
|
if (i)
|
|
511
|
-
throw
|
|
511
|
+
throw r;
|
|
512
512
|
return this._throwIfClosed(), o;
|
|
513
513
|
}, t.prototype.next = function(e) {
|
|
514
|
-
|
|
514
|
+
s.prototype.next.call(this, this._value = e);
|
|
515
515
|
}, t;
|
|
516
516
|
}(gt);
|
|
517
517
|
/**
|
|
@@ -539,63 +539,63 @@ let te = class {
|
|
|
539
539
|
return this.cssText;
|
|
540
540
|
}
|
|
541
541
|
};
|
|
542
|
-
const Pe = (
|
|
543
|
-
const e =
|
|
542
|
+
const Pe = (s) => new te(typeof s == "string" ? s : s + "", void 0, mt), O = (s, ...t) => {
|
|
543
|
+
const e = s.length === 1 ? s[0] : t.reduce((i, r, o) => i + ((n) => {
|
|
544
544
|
if (n._$cssResult$ === !0)
|
|
545
545
|
return n.cssText;
|
|
546
546
|
if (typeof n == "number")
|
|
547
547
|
return n;
|
|
548
548
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
549
|
-
})(
|
|
550
|
-
return new te(e,
|
|
551
|
-
}, Oe = (
|
|
549
|
+
})(r) + s[o + 1], s[0]);
|
|
550
|
+
return new te(e, s, mt);
|
|
551
|
+
}, Oe = (s, t) => {
|
|
552
552
|
if (vt)
|
|
553
|
-
|
|
553
|
+
s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
554
554
|
else
|
|
555
555
|
for (const e of t) {
|
|
556
|
-
const i = document.createElement("style"),
|
|
557
|
-
|
|
556
|
+
const i = document.createElement("style"), r = Z.litNonce;
|
|
557
|
+
r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
|
|
558
558
|
}
|
|
559
|
-
}, kt = vt ? (
|
|
559
|
+
}, kt = vt ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
|
560
560
|
let e = "";
|
|
561
561
|
for (const i of t.cssRules)
|
|
562
562
|
e += i.cssText;
|
|
563
563
|
return Pe(e);
|
|
564
|
-
})(
|
|
564
|
+
})(s) : s;
|
|
565
565
|
/**
|
|
566
566
|
* @license
|
|
567
567
|
* Copyright 2017 Google LLC
|
|
568
568
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
569
569
|
*/
|
|
570
|
-
const { is: Te, defineProperty: ke, getOwnPropertyDescriptor: Me, getOwnPropertyNames: Ue, getOwnPropertySymbols: He, getPrototypeOf: Le } = Object, _ = globalThis, Mt = _.trustedTypes, Re = Mt ? Mt.emptyScript : "",
|
|
570
|
+
const { is: Te, defineProperty: ke, getOwnPropertyDescriptor: Me, getOwnPropertyNames: Ue, getOwnPropertySymbols: He, getPrototypeOf: Le } = Object, _ = globalThis, Mt = _.trustedTypes, Re = Mt ? Mt.emptyScript : "", st = _.reactiveElementPolyfillSupport, L = (s, t) => s, G = { toAttribute(s, t) {
|
|
571
571
|
switch (t) {
|
|
572
572
|
case Boolean:
|
|
573
|
-
|
|
573
|
+
s = s ? Re : null;
|
|
574
574
|
break;
|
|
575
575
|
case Object:
|
|
576
576
|
case Array:
|
|
577
|
-
|
|
577
|
+
s = s == null ? s : JSON.stringify(s);
|
|
578
578
|
}
|
|
579
|
-
return
|
|
580
|
-
}, fromAttribute(
|
|
581
|
-
let e =
|
|
579
|
+
return s;
|
|
580
|
+
}, fromAttribute(s, t) {
|
|
581
|
+
let e = s;
|
|
582
582
|
switch (t) {
|
|
583
583
|
case Boolean:
|
|
584
|
-
e =
|
|
584
|
+
e = s !== null;
|
|
585
585
|
break;
|
|
586
586
|
case Number:
|
|
587
|
-
e =
|
|
587
|
+
e = s === null ? null : Number(s);
|
|
588
588
|
break;
|
|
589
589
|
case Object:
|
|
590
590
|
case Array:
|
|
591
591
|
try {
|
|
592
|
-
e = JSON.parse(
|
|
592
|
+
e = JSON.parse(s);
|
|
593
593
|
} catch {
|
|
594
594
|
e = null;
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
return e;
|
|
598
|
-
} }, yt = (
|
|
598
|
+
} }, yt = (s, t) => !Te(s, t), Ut = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: yt };
|
|
599
599
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
600
600
|
let k = class extends HTMLElement {
|
|
601
601
|
static addInitializer(t) {
|
|
@@ -606,20 +606,20 @@ let k = class extends HTMLElement {
|
|
|
606
606
|
}
|
|
607
607
|
static createProperty(t, e = Ut) {
|
|
608
608
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
609
|
-
const i = Symbol(),
|
|
610
|
-
|
|
609
|
+
const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
|
|
610
|
+
r !== void 0 && ke(this.prototype, t, r);
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
613
|
static getPropertyDescriptor(t, e, i) {
|
|
614
|
-
const { get:
|
|
614
|
+
const { get: r, set: o } = Me(this.prototype, t) ?? { get() {
|
|
615
615
|
return this[e];
|
|
616
616
|
}, set(n) {
|
|
617
617
|
this[e] = n;
|
|
618
618
|
} };
|
|
619
619
|
return { get() {
|
|
620
|
-
return
|
|
620
|
+
return r == null ? void 0 : r.call(this);
|
|
621
621
|
}, set(n) {
|
|
622
|
-
const a =
|
|
622
|
+
const a = r == null ? void 0 : r.call(this);
|
|
623
623
|
o.call(this, n), this.requestUpdate(t, a, i);
|
|
624
624
|
}, configurable: !0, enumerable: !0 };
|
|
625
625
|
}
|
|
@@ -637,20 +637,20 @@ let k = class extends HTMLElement {
|
|
|
637
637
|
return;
|
|
638
638
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(L("properties"))) {
|
|
639
639
|
const e = this.properties, i = [...Ue(e), ...He(e)];
|
|
640
|
-
for (const
|
|
641
|
-
this.createProperty(
|
|
640
|
+
for (const r of i)
|
|
641
|
+
this.createProperty(r, e[r]);
|
|
642
642
|
}
|
|
643
643
|
const t = this[Symbol.metadata];
|
|
644
644
|
if (t !== null) {
|
|
645
645
|
const e = litPropertyMetadata.get(t);
|
|
646
646
|
if (e !== void 0)
|
|
647
|
-
for (const [i,
|
|
648
|
-
this.elementProperties.set(i,
|
|
647
|
+
for (const [i, r] of e)
|
|
648
|
+
this.elementProperties.set(i, r);
|
|
649
649
|
}
|
|
650
650
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
651
651
|
for (const [e, i] of this.elementProperties) {
|
|
652
|
-
const
|
|
653
|
-
|
|
652
|
+
const r = this._$Eu(e, i);
|
|
653
|
+
r !== void 0 && this._$Eh.set(r, e);
|
|
654
654
|
}
|
|
655
655
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
656
656
|
}
|
|
@@ -658,8 +658,8 @@ let k = class extends HTMLElement {
|
|
|
658
658
|
const e = [];
|
|
659
659
|
if (Array.isArray(t)) {
|
|
660
660
|
const i = new Set(t.flat(1 / 0).reverse());
|
|
661
|
-
for (const
|
|
662
|
-
e.unshift(kt(
|
|
661
|
+
for (const r of i)
|
|
662
|
+
e.unshift(kt(r));
|
|
663
663
|
} else
|
|
664
664
|
t !== void 0 && e.push(kt(t));
|
|
665
665
|
return e;
|
|
@@ -714,18 +714,18 @@ let k = class extends HTMLElement {
|
|
|
714
714
|
}
|
|
715
715
|
_$EC(t, e) {
|
|
716
716
|
var o;
|
|
717
|
-
const i = this.constructor.elementProperties.get(t),
|
|
718
|
-
if (
|
|
717
|
+
const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
|
|
718
|
+
if (r !== void 0 && i.reflect === !0) {
|
|
719
719
|
const n = (((o = i.converter) == null ? void 0 : o.toAttribute) !== void 0 ? i.converter : G).toAttribute(e, i.type);
|
|
720
|
-
this._$Em = t, n == null ? this.removeAttribute(
|
|
720
|
+
this._$Em = t, n == null ? this.removeAttribute(r) : this.setAttribute(r, n), this._$Em = null;
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
_$AK(t, e) {
|
|
724
724
|
var o;
|
|
725
|
-
const i = this.constructor,
|
|
726
|
-
if (
|
|
727
|
-
const n = i.getPropertyOptions(
|
|
728
|
-
this._$Em =
|
|
725
|
+
const i = this.constructor, r = i._$Eh.get(t);
|
|
726
|
+
if (r !== void 0 && this._$Em !== r) {
|
|
727
|
+
const n = i.getPropertyOptions(r), a = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : G;
|
|
728
|
+
this._$Em = r, this[r] = a.fromAttribute(e, n.type), this._$Em = null;
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
731
|
requestUpdate(t, e, i) {
|
|
@@ -762,20 +762,20 @@ let k = class extends HTMLElement {
|
|
|
762
762
|
this[o] = n;
|
|
763
763
|
this._$Ep = void 0;
|
|
764
764
|
}
|
|
765
|
-
const
|
|
766
|
-
if (
|
|
767
|
-
for (const [o, n] of
|
|
765
|
+
const r = this.constructor.elementProperties;
|
|
766
|
+
if (r.size > 0)
|
|
767
|
+
for (const [o, n] of r)
|
|
768
768
|
n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n);
|
|
769
769
|
}
|
|
770
770
|
let t = !1;
|
|
771
771
|
const e = this._$AL;
|
|
772
772
|
try {
|
|
773
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((
|
|
773
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((r) => {
|
|
774
774
|
var o;
|
|
775
|
-
return (o =
|
|
775
|
+
return (o = r.hostUpdate) == null ? void 0 : o.call(r);
|
|
776
776
|
}), this.update(e)) : this._$EU();
|
|
777
|
-
} catch (
|
|
778
|
-
throw t = !1, this._$EU(),
|
|
777
|
+
} catch (r) {
|
|
778
|
+
throw t = !1, this._$EU(), r;
|
|
779
779
|
}
|
|
780
780
|
t && this._$AE(e);
|
|
781
781
|
}
|
|
@@ -784,8 +784,8 @@ let k = class extends HTMLElement {
|
|
|
784
784
|
_$AE(t) {
|
|
785
785
|
var e;
|
|
786
786
|
(e = this._$EO) == null || e.forEach((i) => {
|
|
787
|
-
var
|
|
788
|
-
return (
|
|
787
|
+
var r;
|
|
788
|
+
return (r = i.hostUpdated) == null ? void 0 : r.call(i);
|
|
789
789
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
790
790
|
}
|
|
791
791
|
_$EU() {
|
|
@@ -808,36 +808,36 @@ let k = class extends HTMLElement {
|
|
|
808
808
|
firstUpdated(t) {
|
|
809
809
|
}
|
|
810
810
|
};
|
|
811
|
-
k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[L("elementProperties")] = /* @__PURE__ */ new Map(), k[L("finalized")] = /* @__PURE__ */ new Map(),
|
|
811
|
+
k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[L("elementProperties")] = /* @__PURE__ */ new Map(), k[L("finalized")] = /* @__PURE__ */ new Map(), st == null || st({ ReactiveElement: k }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.0.4");
|
|
812
812
|
/**
|
|
813
813
|
* @license
|
|
814
814
|
* Copyright 2017 Google LLC
|
|
815
815
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
816
816
|
*/
|
|
817
|
-
const R = globalThis, X = R.trustedTypes, Ht = X ? X.createPolicy("lit-html", { createHTML: (
|
|
818
|
-
\f\r]`, H = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Lt = /-->/g, Rt = />/g, C = RegExp(`>|${
|
|
819
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), jt = /'/g, Nt = /"/g,
|
|
820
|
-
function ne(
|
|
821
|
-
if (!Array.isArray(
|
|
817
|
+
const R = globalThis, X = R.trustedTypes, Ht = X ? X.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, ee = "$lit$", $ = `lit$${(Math.random() + "").slice(9)}$`, ie = "?" + $, je = `<${ie}>`, S = document, N = () => S.createComment(""), I = (s) => s === null || typeof s != "object" && typeof s != "function", se = Array.isArray, Ne = (s) => se(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", rt = `[
|
|
818
|
+
\f\r]`, H = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Lt = /-->/g, Rt = />/g, C = RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^
|
|
819
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), jt = /'/g, Nt = /"/g, re = /^(?:script|style|textarea|title)$/i, oe = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), x = oe(1), Ie = oe(2), P = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), It = /* @__PURE__ */ new WeakMap(), E = S.createTreeWalker(S, 129);
|
|
820
|
+
function ne(s, t) {
|
|
821
|
+
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
|
822
822
|
throw Error("invalid template strings array");
|
|
823
823
|
return Ht !== void 0 ? Ht.createHTML(t) : t;
|
|
824
824
|
}
|
|
825
|
-
const Be = (
|
|
826
|
-
const e =
|
|
827
|
-
let
|
|
825
|
+
const Be = (s, t) => {
|
|
826
|
+
const e = s.length - 1, i = [];
|
|
827
|
+
let r, o = t === 2 ? "<svg>" : "", n = H;
|
|
828
828
|
for (let a = 0; a < e; a++) {
|
|
829
|
-
const c =
|
|
829
|
+
const c = s[a];
|
|
830
830
|
let l, h, p = -1, u = 0;
|
|
831
831
|
for (; u < c.length && (n.lastIndex = u, h = n.exec(c), h !== null); )
|
|
832
|
-
u = n.lastIndex, n === H ? h[1] === "!--" ? n = Lt : h[1] !== void 0 ? n = Rt : h[2] !== void 0 ? (
|
|
833
|
-
const f = n === C &&
|
|
832
|
+
u = n.lastIndex, n === H ? h[1] === "!--" ? n = Lt : h[1] !== void 0 ? n = Rt : h[2] !== void 0 ? (re.test(h[2]) && (r = RegExp("</" + h[2], "g")), n = C) : h[3] !== void 0 && (n = C) : n === C ? h[0] === ">" ? (n = r ?? H, p = -1) : h[1] === void 0 ? p = -2 : (p = n.lastIndex - h[2].length, l = h[1], n = h[3] === void 0 ? C : h[3] === '"' ? Nt : jt) : n === Nt || n === jt ? n = C : n === Lt || n === Rt ? n = H : (n = C, r = void 0);
|
|
833
|
+
const f = n === C && s[a + 1].startsWith("/>") ? " " : "";
|
|
834
834
|
o += n === H ? c + je : p >= 0 ? (i.push(l), c.slice(0, p) + ee + c.slice(p) + $ + f) : c + $ + (p === -2 ? a : f);
|
|
835
835
|
}
|
|
836
|
-
return [ne(
|
|
836
|
+
return [ne(s, o + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
|
837
837
|
};
|
|
838
838
|
class B {
|
|
839
839
|
constructor({ strings: t, _$litType$: e }, i) {
|
|
840
|
-
let
|
|
840
|
+
let r;
|
|
841
841
|
this.parts = [];
|
|
842
842
|
let o = 0, n = 0;
|
|
843
843
|
const a = t.length - 1, c = this.parts, [l, h] = Be(t, e);
|
|
@@ -845,30 +845,30 @@ class B {
|
|
|
845
845
|
const p = this.el.content.firstChild;
|
|
846
846
|
p.replaceWith(...p.childNodes);
|
|
847
847
|
}
|
|
848
|
-
for (; (
|
|
849
|
-
if (
|
|
850
|
-
if (
|
|
851
|
-
for (const p of
|
|
848
|
+
for (; (r = E.nextNode()) !== null && c.length < a; ) {
|
|
849
|
+
if (r.nodeType === 1) {
|
|
850
|
+
if (r.hasAttributes())
|
|
851
|
+
for (const p of r.getAttributeNames())
|
|
852
852
|
if (p.endsWith(ee)) {
|
|
853
|
-
const u = h[n++], f =
|
|
854
|
-
c.push({ type: 1, index: o, name: T[2], strings: f, ctor: T[1] === "." ? Ve : T[1] === "?" ? ze : T[1] === "@" ? We : tt }),
|
|
853
|
+
const u = h[n++], f = r.getAttribute(p).split($), T = /([.?@])?(.*)/.exec(u);
|
|
854
|
+
c.push({ type: 1, index: o, name: T[2], strings: f, ctor: T[1] === "." ? Ve : T[1] === "?" ? ze : T[1] === "@" ? We : tt }), r.removeAttribute(p);
|
|
855
855
|
} else
|
|
856
|
-
p.startsWith($) && (c.push({ type: 6, index: o }),
|
|
857
|
-
if (
|
|
858
|
-
const p =
|
|
856
|
+
p.startsWith($) && (c.push({ type: 6, index: o }), r.removeAttribute(p));
|
|
857
|
+
if (re.test(r.tagName)) {
|
|
858
|
+
const p = r.textContent.split($), u = p.length - 1;
|
|
859
859
|
if (u > 0) {
|
|
860
|
-
|
|
860
|
+
r.textContent = X ? X.emptyScript : "";
|
|
861
861
|
for (let f = 0; f < u; f++)
|
|
862
|
-
|
|
863
|
-
|
|
862
|
+
r.append(p[f], N()), E.nextNode(), c.push({ type: 2, index: ++o });
|
|
863
|
+
r.append(p[u], N());
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
|
-
} else if (
|
|
867
|
-
if (
|
|
866
|
+
} else if (r.nodeType === 8)
|
|
867
|
+
if (r.data === ie)
|
|
868
868
|
c.push({ type: 2, index: o });
|
|
869
869
|
else {
|
|
870
870
|
let p = -1;
|
|
871
|
-
for (; (p =
|
|
871
|
+
for (; (p = r.data.indexOf($, p + 1)) !== -1; )
|
|
872
872
|
c.push({ type: 7, index: o }), p += $.length - 1;
|
|
873
873
|
}
|
|
874
874
|
o++;
|
|
@@ -879,13 +879,13 @@ class B {
|
|
|
879
879
|
return i.innerHTML = t, i;
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
|
-
function M(
|
|
882
|
+
function M(s, t, e = s, i) {
|
|
883
883
|
var n, a;
|
|
884
884
|
if (t === P)
|
|
885
885
|
return t;
|
|
886
|
-
let
|
|
886
|
+
let r = i !== void 0 ? (n = e._$Co) == null ? void 0 : n[i] : e._$Cl;
|
|
887
887
|
const o = I(t) ? void 0 : t._$litDirective$;
|
|
888
|
-
return (
|
|
888
|
+
return (r == null ? void 0 : r.constructor) !== o && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), o === void 0 ? r = void 0 : (r = new o(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = M(s, r._$AS(s, t.values), r, i)), t;
|
|
889
889
|
}
|
|
890
890
|
class De {
|
|
891
891
|
constructor(t, e) {
|
|
@@ -898,8 +898,8 @@ class De {
|
|
|
898
898
|
return this._$AM._$AU;
|
|
899
899
|
}
|
|
900
900
|
u(t) {
|
|
901
|
-
const { el: { content: e }, parts: i } = this._$AD,
|
|
902
|
-
E.currentNode =
|
|
901
|
+
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? S).importNode(e, !0);
|
|
902
|
+
E.currentNode = r;
|
|
903
903
|
let o = E.nextNode(), n = 0, a = 0, c = i[0];
|
|
904
904
|
for (; c !== void 0; ) {
|
|
905
905
|
if (n === c.index) {
|
|
@@ -908,7 +908,7 @@ class De {
|
|
|
908
908
|
}
|
|
909
909
|
n !== (c == null ? void 0 : c.index) && (o = E.nextNode(), n++);
|
|
910
910
|
}
|
|
911
|
-
return E.currentNode = S,
|
|
911
|
+
return E.currentNode = S, r;
|
|
912
912
|
}
|
|
913
913
|
p(t) {
|
|
914
914
|
let e = 0;
|
|
@@ -921,8 +921,8 @@ class V {
|
|
|
921
921
|
var t;
|
|
922
922
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
923
923
|
}
|
|
924
|
-
constructor(t, e, i,
|
|
925
|
-
this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options =
|
|
924
|
+
constructor(t, e, i, r) {
|
|
925
|
+
this.type = 2, this._$AH = d, 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;
|
|
926
926
|
}
|
|
927
927
|
get parentNode() {
|
|
928
928
|
let t = this._$AA.parentNode;
|
|
@@ -949,11 +949,11 @@ class V {
|
|
|
949
949
|
}
|
|
950
950
|
$(t) {
|
|
951
951
|
var o;
|
|
952
|
-
const { values: e, _$litType$: i } = t,
|
|
953
|
-
if (((o = this._$AH) == null ? void 0 : o._$AD) ===
|
|
952
|
+
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = B.createElement(ne(i.h, i.h[0]), this.options)), i);
|
|
953
|
+
if (((o = this._$AH) == null ? void 0 : o._$AD) === r)
|
|
954
954
|
this._$AH.p(e);
|
|
955
955
|
else {
|
|
956
|
-
const n = new De(
|
|
956
|
+
const n = new De(r, this), a = n.u(this.options);
|
|
957
957
|
n.p(e), this.T(a), this._$AH = n;
|
|
958
958
|
}
|
|
959
959
|
}
|
|
@@ -962,18 +962,18 @@ class V {
|
|
|
962
962
|
return e === void 0 && It.set(t.strings, e = new B(t)), e;
|
|
963
963
|
}
|
|
964
964
|
k(t) {
|
|
965
|
-
|
|
965
|
+
se(this._$AH) || (this._$AH = [], this._$AR());
|
|
966
966
|
const e = this._$AH;
|
|
967
|
-
let i,
|
|
967
|
+
let i, r = 0;
|
|
968
968
|
for (const o of t)
|
|
969
|
-
|
|
970
|
-
|
|
969
|
+
r === e.length ? e.push(i = new V(this.S(N()), this.S(N()), this, this.options)) : i = e[r], i._$AI(o), r++;
|
|
970
|
+
r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
|
|
971
971
|
}
|
|
972
972
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
973
973
|
var i;
|
|
974
974
|
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
|
975
|
-
const
|
|
976
|
-
t.remove(), t =
|
|
975
|
+
const r = t.nextSibling;
|
|
976
|
+
t.remove(), t = r;
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
979
|
setConnected(t) {
|
|
@@ -988,10 +988,10 @@ class tt {
|
|
|
988
988
|
get _$AU() {
|
|
989
989
|
return this._$AM._$AU;
|
|
990
990
|
}
|
|
991
|
-
constructor(t, e, i,
|
|
992
|
-
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM =
|
|
991
|
+
constructor(t, e, i, r, o) {
|
|
992
|
+
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = d;
|
|
993
993
|
}
|
|
994
|
-
_$AI(t, e = this, i,
|
|
994
|
+
_$AI(t, e = this, i, r) {
|
|
995
995
|
const o = this.strings;
|
|
996
996
|
let n = !1;
|
|
997
997
|
if (o === void 0)
|
|
@@ -1002,7 +1002,7 @@ class tt {
|
|
|
1002
1002
|
for (t = o[0], c = 0; c < o.length - 1; c++)
|
|
1003
1003
|
l = M(this, a[i + c], e, c), l === P && (l = this._$AH[c]), n || (n = !I(l) || l !== this._$AH[c]), l === d ? t = d : t !== d && (t += (l ?? "") + o[c + 1]), this._$AH[c] = l;
|
|
1004
1004
|
}
|
|
1005
|
-
n && !
|
|
1005
|
+
n && !r && this.j(t);
|
|
1006
1006
|
}
|
|
1007
1007
|
j(t) {
|
|
1008
1008
|
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
@@ -1025,14 +1025,14 @@ class ze extends tt {
|
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
1027
|
class We extends tt {
|
|
1028
|
-
constructor(t, e, i,
|
|
1029
|
-
super(t, e, i,
|
|
1028
|
+
constructor(t, e, i, r, o) {
|
|
1029
|
+
super(t, e, i, r, o), this.type = 5;
|
|
1030
1030
|
}
|
|
1031
1031
|
_$AI(t, e = this) {
|
|
1032
1032
|
if ((t = M(this, t, e, 0) ?? d) === P)
|
|
1033
1033
|
return;
|
|
1034
|
-
const i = this._$AH,
|
|
1035
|
-
|
|
1034
|
+
const i = this._$AH, r = t === d && i !== d || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== d && (i === d || r);
|
|
1035
|
+
r && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
1036
1036
|
}
|
|
1037
1037
|
handleEvent(t) {
|
|
1038
1038
|
var e;
|
|
@@ -1052,14 +1052,14 @@ class Ye {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
const ot = R.litHtmlPolyfillSupport;
|
|
1054
1054
|
ot == null || ot(B, V), (R.litHtmlVersions ?? (R.litHtmlVersions = [])).push("3.1.2");
|
|
1055
|
-
const Fe = (
|
|
1055
|
+
const Fe = (s, t, e) => {
|
|
1056
1056
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
1057
|
-
let
|
|
1058
|
-
if (
|
|
1057
|
+
let r = i._$litPart$;
|
|
1058
|
+
if (r === void 0) {
|
|
1059
1059
|
const o = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
1060
|
-
i._$litPart$ =
|
|
1060
|
+
i._$litPart$ = r = new V(t.insertBefore(N(), o), o, void 0, e ?? {});
|
|
1061
1061
|
}
|
|
1062
|
-
return
|
|
1062
|
+
return r._$AI(s), r;
|
|
1063
1063
|
};
|
|
1064
1064
|
/**
|
|
1065
1065
|
* @license
|
|
@@ -1101,45 +1101,45 @@ nt == null || nt({ LitElement: m });
|
|
|
1101
1101
|
* Copyright 2017 Google LLC
|
|
1102
1102
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1103
1103
|
*/
|
|
1104
|
-
const Ze = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: yt }, qe = (
|
|
1105
|
-
const { kind: i, metadata:
|
|
1106
|
-
let o = globalThis.litPropertyMetadata.get(
|
|
1107
|
-
if (o === void 0 && globalThis.litPropertyMetadata.set(
|
|
1104
|
+
const Ze = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: yt }, qe = (s = Ze, t, e) => {
|
|
1105
|
+
const { kind: i, metadata: r } = e;
|
|
1106
|
+
let o = globalThis.litPropertyMetadata.get(r);
|
|
1107
|
+
if (o === void 0 && globalThis.litPropertyMetadata.set(r, o = /* @__PURE__ */ new Map()), o.set(e.name, s), i === "accessor") {
|
|
1108
1108
|
const { name: n } = e;
|
|
1109
1109
|
return { set(a) {
|
|
1110
1110
|
const c = t.get.call(this);
|
|
1111
|
-
t.set.call(this, a), this.requestUpdate(n, c,
|
|
1111
|
+
t.set.call(this, a), this.requestUpdate(n, c, s);
|
|
1112
1112
|
}, init(a) {
|
|
1113
|
-
return a !== void 0 && this.P(n, void 0,
|
|
1113
|
+
return a !== void 0 && this.P(n, void 0, s), a;
|
|
1114
1114
|
} };
|
|
1115
1115
|
}
|
|
1116
1116
|
if (i === "setter") {
|
|
1117
1117
|
const { name: n } = e;
|
|
1118
1118
|
return function(a) {
|
|
1119
1119
|
const c = this[n];
|
|
1120
|
-
t.call(this, a), this.requestUpdate(n, c,
|
|
1120
|
+
t.call(this, a), this.requestUpdate(n, c, s);
|
|
1121
1121
|
};
|
|
1122
1122
|
}
|
|
1123
1123
|
throw Error("Unsupported decorator location: " + i);
|
|
1124
1124
|
};
|
|
1125
|
-
function g(
|
|
1126
|
-
return (t, e) => typeof e == "object" ? qe(
|
|
1127
|
-
const n =
|
|
1128
|
-
return
|
|
1129
|
-
})(
|
|
1125
|
+
function g(s) {
|
|
1126
|
+
return (t, e) => typeof e == "object" ? qe(s, t, e) : ((i, r, o) => {
|
|
1127
|
+
const n = r.hasOwnProperty(o);
|
|
1128
|
+
return r.constructor.createProperty(o, n ? { ...i, wrapped: !0 } : i), n ? Object.getOwnPropertyDescriptor(r, o) : void 0;
|
|
1129
|
+
})(s, t, e);
|
|
1130
1130
|
}
|
|
1131
1131
|
/**
|
|
1132
1132
|
* @license
|
|
1133
1133
|
* Copyright 2017 Google LLC
|
|
1134
1134
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1135
1135
|
*/
|
|
1136
|
-
function U(
|
|
1137
|
-
return g({ ...
|
|
1136
|
+
function U(s) {
|
|
1137
|
+
return g({ ...s, state: !0, attribute: !1 });
|
|
1138
1138
|
}
|
|
1139
|
-
var Ke = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, Xe = (
|
|
1140
|
-
for (var
|
|
1141
|
-
(n =
|
|
1142
|
-
return i &&
|
|
1139
|
+
var Ke = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, Xe = (s, t, e, i) => {
|
|
1140
|
+
for (var r = i > 1 ? void 0 : i ? Ge(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
|
1141
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
|
1142
|
+
return i && r && Ke(t, e, r), r;
|
|
1143
1143
|
};
|
|
1144
1144
|
class bt extends m {
|
|
1145
1145
|
constructor() {
|
|
@@ -1180,7 +1180,7 @@ Xe([
|
|
|
1180
1180
|
* Copyright 2017 Google LLC
|
|
1181
1181
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1182
1182
|
*/
|
|
1183
|
-
const $t = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, _t = (
|
|
1183
|
+
const $t = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, _t = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
|
1184
1184
|
let ae = class {
|
|
1185
1185
|
constructor(t) {
|
|
1186
1186
|
}
|
|
@@ -1202,43 +1202,43 @@ let ae = class {
|
|
|
1202
1202
|
* Copyright 2020 Google LLC
|
|
1203
1203
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1204
1204
|
*/
|
|
1205
|
-
const Je = (
|
|
1205
|
+
const Je = (s) => s.strings === void 0;
|
|
1206
1206
|
/**
|
|
1207
1207
|
* @license
|
|
1208
1208
|
* Copyright 2017 Google LLC
|
|
1209
1209
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1210
1210
|
*/
|
|
1211
|
-
const j = (
|
|
1211
|
+
const j = (s, t) => {
|
|
1212
1212
|
var i;
|
|
1213
|
-
const e =
|
|
1213
|
+
const e = s._$AN;
|
|
1214
1214
|
if (e === void 0)
|
|
1215
1215
|
return !1;
|
|
1216
|
-
for (const
|
|
1217
|
-
(i =
|
|
1216
|
+
for (const r of e)
|
|
1217
|
+
(i = r._$AO) == null || i.call(r, t, !1), j(r, t);
|
|
1218
1218
|
return !0;
|
|
1219
|
-
}, J = (
|
|
1219
|
+
}, J = (s) => {
|
|
1220
1220
|
let t, e;
|
|
1221
1221
|
do {
|
|
1222
|
-
if ((t =
|
|
1222
|
+
if ((t = s._$AM) === void 0)
|
|
1223
1223
|
break;
|
|
1224
|
-
e = t._$AN, e.delete(
|
|
1224
|
+
e = t._$AN, e.delete(s), s = t;
|
|
1225
1225
|
} while ((e == null ? void 0 : e.size) === 0);
|
|
1226
|
-
}, ce = (
|
|
1227
|
-
for (let t; t =
|
|
1226
|
+
}, ce = (s) => {
|
|
1227
|
+
for (let t; t = s._$AM; s = t) {
|
|
1228
1228
|
let e = t._$AN;
|
|
1229
1229
|
if (e === void 0)
|
|
1230
1230
|
t._$AN = e = /* @__PURE__ */ new Set();
|
|
1231
|
-
else if (e.has(
|
|
1231
|
+
else if (e.has(s))
|
|
1232
1232
|
break;
|
|
1233
|
-
e.add(
|
|
1233
|
+
e.add(s), ei(t);
|
|
1234
1234
|
}
|
|
1235
1235
|
};
|
|
1236
|
-
function Qe(
|
|
1237
|
-
this._$AN !== void 0 ? (J(this), this._$AM =
|
|
1236
|
+
function Qe(s) {
|
|
1237
|
+
this._$AN !== void 0 ? (J(this), this._$AM = s, ce(this)) : this._$AM = s;
|
|
1238
1238
|
}
|
|
1239
|
-
function ti(
|
|
1240
|
-
const i = this._$AH,
|
|
1241
|
-
if (
|
|
1239
|
+
function ti(s, t = !1, e = 0) {
|
|
1240
|
+
const i = this._$AH, r = this._$AN;
|
|
1241
|
+
if (r !== void 0 && r.size !== 0)
|
|
1242
1242
|
if (t)
|
|
1243
1243
|
if (Array.isArray(i))
|
|
1244
1244
|
for (let o = e; o < i.length; o++)
|
|
@@ -1246,10 +1246,10 @@ function ti(r, t = !1, e = 0) {
|
|
|
1246
1246
|
else
|
|
1247
1247
|
i != null && (j(i, !1), J(i));
|
|
1248
1248
|
else
|
|
1249
|
-
j(this,
|
|
1249
|
+
j(this, s);
|
|
1250
1250
|
}
|
|
1251
|
-
const ei = (
|
|
1252
|
-
|
|
1251
|
+
const ei = (s) => {
|
|
1252
|
+
s.type == $t.CHILD && (s._$AP ?? (s._$AP = ti), s._$AQ ?? (s._$AQ = Qe));
|
|
1253
1253
|
};
|
|
1254
1254
|
class le extends ae {
|
|
1255
1255
|
constructor() {
|
|
@@ -1259,8 +1259,8 @@ class le extends ae {
|
|
|
1259
1259
|
super._$AT(t, e, i), ce(this), this.isConnected = t._$AU;
|
|
1260
1260
|
}
|
|
1261
1261
|
_$AO(t, e = !0) {
|
|
1262
|
-
var i,
|
|
1263
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (
|
|
1262
|
+
var i, r;
|
|
1263
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (j(this, t), J(this));
|
|
1264
1264
|
}
|
|
1265
1265
|
setValue(t) {
|
|
1266
1266
|
if (Je(this._$Ct))
|
|
@@ -1277,29 +1277,29 @@ class le extends ae {
|
|
|
1277
1277
|
}
|
|
1278
1278
|
const ii = /* @__PURE__ */ new WeakMap();
|
|
1279
1279
|
let Bt = 0;
|
|
1280
|
-
const at = /* @__PURE__ */ new Map(), Dt = /* @__PURE__ */ new WeakSet(), Vt = () => new Promise((
|
|
1281
|
-
const e =
|
|
1280
|
+
const at = /* @__PURE__ */ new Map(), Dt = /* @__PURE__ */ new WeakSet(), Vt = () => new Promise((s) => requestAnimationFrame(s)), si = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], zt = (s, t) => {
|
|
1281
|
+
const e = s - t;
|
|
1282
1282
|
return e === 0 ? void 0 : e;
|
|
1283
|
-
}, Wt = (
|
|
1284
|
-
const e =
|
|
1283
|
+
}, Wt = (s, t) => {
|
|
1284
|
+
const e = s / t;
|
|
1285
1285
|
return e === 1 ? void 0 : e;
|
|
1286
|
-
}, ct = { left: (
|
|
1287
|
-
const e = zt(
|
|
1286
|
+
}, ct = { left: (s, t) => {
|
|
1287
|
+
const e = zt(s, t);
|
|
1288
1288
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
|
1289
|
-
}, top: (
|
|
1290
|
-
const e = zt(
|
|
1289
|
+
}, top: (s, t) => {
|
|
1290
|
+
const e = zt(s, t);
|
|
1291
1291
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
|
1292
|
-
}, width: (
|
|
1292
|
+
}, width: (s, t) => {
|
|
1293
1293
|
let e;
|
|
1294
1294
|
t === 0 && (t = 1, e = { width: "1px" });
|
|
1295
|
-
const i = Wt(
|
|
1295
|
+
const i = Wt(s, t);
|
|
1296
1296
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
|
1297
|
-
}, height: (
|
|
1297
|
+
}, height: (s, t) => {
|
|
1298
1298
|
let e;
|
|
1299
1299
|
t === 0 && (t = 1, e = { height: "1px" });
|
|
1300
|
-
const i = Wt(
|
|
1300
|
+
const i = Wt(s, t);
|
|
1301
1301
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
|
1302
|
-
} },
|
|
1302
|
+
} }, ri = { duration: 333, easing: "ease-in-out" }, oi = ["left", "top", "width", "height", "opacity", "color", "background"], Yt = /* @__PURE__ */ new WeakMap();
|
|
1303
1303
|
class ni extends le {
|
|
1304
1304
|
constructor(t) {
|
|
1305
1305
|
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === $t.CHILD)
|
|
@@ -1327,9 +1327,9 @@ class ni extends le {
|
|
|
1327
1327
|
return this.options.disabled || ((t = this.getController()) == null ? void 0 : t.disabled);
|
|
1328
1328
|
}
|
|
1329
1329
|
update(t, [e]) {
|
|
1330
|
-
var
|
|
1330
|
+
var r;
|
|
1331
1331
|
const i = this.u === void 0;
|
|
1332
|
-
return i && (this.u = (
|
|
1332
|
+
return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((o) => this.t = !0), this.element = t.element, Yt.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
|
|
1333
1333
|
}
|
|
1334
1334
|
p(t) {
|
|
1335
1335
|
t = t ?? {};
|
|
@@ -1338,18 +1338,18 @@ class ni extends le {
|
|
|
1338
1338
|
}
|
|
1339
1339
|
m() {
|
|
1340
1340
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
|
1341
|
-
return this.options.properties.forEach((
|
|
1342
|
-
const o = e[
|
|
1343
|
-
t[
|
|
1341
|
+
return this.options.properties.forEach((r) => {
|
|
1342
|
+
const o = e[r] ?? (ct[r] ? void 0 : i[r]), n = Number(o);
|
|
1343
|
+
t[r] = isNaN(n) ? o + "" : n;
|
|
1344
1344
|
}), t;
|
|
1345
1345
|
}
|
|
1346
1346
|
v() {
|
|
1347
1347
|
let t, e = !0;
|
|
1348
|
-
return this.options.guard && (t = this.options.guard(), e = ((i,
|
|
1348
|
+
return this.options.guard && (t = this.options.guard(), e = ((i, r) => {
|
|
1349
1349
|
if (Array.isArray(i)) {
|
|
1350
|
-
if (Array.isArray(
|
|
1350
|
+
if (Array.isArray(r) && r.length === i.length && i.every((o, n) => o === r[n]))
|
|
1351
1351
|
return !1;
|
|
1352
|
-
} else if (
|
|
1352
|
+
} else if (r === i)
|
|
1353
1353
|
return !1;
|
|
1354
1354
|
return !0;
|
|
1355
1355
|
})(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;
|
|
@@ -1362,15 +1362,15 @@ class ni extends le {
|
|
|
1362
1362
|
return;
|
|
1363
1363
|
let t;
|
|
1364
1364
|
this.prepare(), await Vt;
|
|
1365
|
-
const e = this.O(), i = this.j(this.options.keyframeOptions, e),
|
|
1365
|
+
const e = this.O(), i = this.j(this.options.keyframeOptions, e), r = this.m();
|
|
1366
1366
|
if (this.A !== void 0) {
|
|
1367
|
-
const { from: o, to: n } = this.N(this.A,
|
|
1368
|
-
this.log("measured", [this.A,
|
|
1367
|
+
const { from: o, to: n } = this.N(this.A, r, e);
|
|
1368
|
+
this.log("measured", [this.A, r, o, n]), t = this.calculateKeyframes(o, n);
|
|
1369
1369
|
} else {
|
|
1370
1370
|
const o = at.get(this.options.inId);
|
|
1371
1371
|
if (o) {
|
|
1372
1372
|
at.delete(this.options.inId);
|
|
1373
|
-
const { from: n, to: a } = this.N(o,
|
|
1373
|
+
const { from: n, to: a } = this.N(o, r, e);
|
|
1374
1374
|
t = this.calculateKeyframes(n, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Bt++, t.forEach((c) => c.zIndex = Bt);
|
|
1375
1375
|
} else
|
|
1376
1376
|
this.options.in && (t = [...this.options.in, {}]);
|
|
@@ -1393,9 +1393,9 @@ class ni extends le {
|
|
|
1393
1393
|
if (this.prepare(), await Vt(), (e = this.i) == null ? void 0 : e.isConnected) {
|
|
1394
1394
|
const i = this.o && this.o.parentNode === this.i ? this.o : null;
|
|
1395
1395
|
if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
|
|
1396
|
-
const
|
|
1396
|
+
const r = this.m();
|
|
1397
1397
|
this.log("stabilizing out");
|
|
1398
|
-
const o = this.A.left -
|
|
1398
|
+
const o = this.A.left - r.left, n = this.A.top - r.top;
|
|
1399
1399
|
getComputedStyle(this.element).position !== "static" || o === 0 && n === 0 || (this.element.style.position = "relative"), o !== 0 && (this.element.style.left = o + "px"), n !== 0 && (this.element.style.top = n + "px");
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
@@ -1428,19 +1428,19 @@ class ni extends le {
|
|
|
1428
1428
|
}), t;
|
|
1429
1429
|
}
|
|
1430
1430
|
j(t, e = this.O()) {
|
|
1431
|
-
const i = { ...
|
|
1432
|
-
return e.forEach((
|
|
1431
|
+
const i = { ...ri };
|
|
1432
|
+
return e.forEach((r) => Object.assign(i, r.options.keyframeOptions)), Object.assign(i, t), i;
|
|
1433
1433
|
}
|
|
1434
1434
|
N(t, e, i) {
|
|
1435
1435
|
t = { ...t }, e = { ...e };
|
|
1436
|
-
const
|
|
1436
|
+
const r = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
|
1437
1437
|
let o = 1, n = 1;
|
|
1438
|
-
return
|
|
1438
|
+
return r.length > 0 && (r.forEach((a) => {
|
|
1439
1439
|
a.width && (o /= a.width), a.height && (n /= a.height);
|
|
1440
1440
|
}), t.left !== void 0 && e.left !== void 0 && (t.left = o * t.left, e.left = o * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = n * t.top, e.top = n * e.top)), { from: t, to: e };
|
|
1441
1441
|
}
|
|
1442
1442
|
calculateKeyframes(t, e, i = !1) {
|
|
1443
|
-
const
|
|
1443
|
+
const r = {}, o = {};
|
|
1444
1444
|
let n = !1;
|
|
1445
1445
|
const a = {};
|
|
1446
1446
|
for (const c in e) {
|
|
@@ -1450,24 +1450,24 @@ class ni extends le {
|
|
|
1450
1450
|
if (l === void 0 || h === void 0)
|
|
1451
1451
|
continue;
|
|
1452
1452
|
const u = p(l, h);
|
|
1453
|
-
u.transform !== void 0 && (a[c] = u.value, n = !0,
|
|
1453
|
+
u.transform !== void 0 && (a[c] = u.value, n = !0, r.transform = `${r.transform ?? ""} ${u.transform}`, u.overrideFrom !== void 0 && Object.assign(r, u.overrideFrom));
|
|
1454
1454
|
} else
|
|
1455
|
-
l !== h && l !== void 0 && h !== void 0 && (n = !0,
|
|
1455
|
+
l !== h && l !== void 0 && h !== void 0 && (n = !0, r[c] = l, o[c] = h);
|
|
1456
1456
|
}
|
|
1457
|
-
return
|
|
1457
|
+
return r.transformOrigin = o.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, n ? [r, o] : void 0;
|
|
1458
1458
|
}
|
|
1459
1459
|
async animate(t, e = this.options.keyframeOptions) {
|
|
1460
1460
|
this.start(), this.frames = t;
|
|
1461
1461
|
let i = !1;
|
|
1462
1462
|
if (!this.isAnimating() && !this.isDisabled() && (this.options.onFrames && (this.frames = t = this.options.onFrames(this), this.log("modified frames", t)), t !== void 0)) {
|
|
1463
1463
|
this.log("animate", [t, e]), i = !0, this.webAnimation = this.element.animate(t, e);
|
|
1464
|
-
const
|
|
1465
|
-
|
|
1464
|
+
const r = this.getController();
|
|
1465
|
+
r == null || r.add(this);
|
|
1466
1466
|
try {
|
|
1467
1467
|
await this.webAnimation.finished;
|
|
1468
1468
|
} catch {
|
|
1469
1469
|
}
|
|
1470
|
-
|
|
1470
|
+
r == null || r.remove(this);
|
|
1471
1471
|
}
|
|
1472
1472
|
return this.didFinish(i), i;
|
|
1473
1473
|
}
|
|
@@ -1486,64 +1486,64 @@ const ai = _t(ni), ci = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns
|
|
|
1486
1486
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1487
1487
|
*/
|
|
1488
1488
|
const Ft = _t(class extends ae {
|
|
1489
|
-
constructor(
|
|
1489
|
+
constructor(s) {
|
|
1490
1490
|
var t;
|
|
1491
|
-
if (super(
|
|
1491
|
+
if (super(s), s.type !== $t.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2)
|
|
1492
1492
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
1493
1493
|
}
|
|
1494
|
-
render(
|
|
1495
|
-
return " " + Object.keys(
|
|
1494
|
+
render(s) {
|
|
1495
|
+
return " " + Object.keys(s).filter((t) => s[t]).join(" ") + " ";
|
|
1496
1496
|
}
|
|
1497
|
-
update(
|
|
1498
|
-
var i,
|
|
1497
|
+
update(s, [t]) {
|
|
1498
|
+
var i, r;
|
|
1499
1499
|
if (this.st === void 0) {
|
|
1500
|
-
this.st = /* @__PURE__ */ new Set(),
|
|
1500
|
+
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((o) => o !== "")));
|
|
1501
1501
|
for (const o in t)
|
|
1502
1502
|
t[o] && !((i = this.nt) != null && i.has(o)) && this.st.add(o);
|
|
1503
1503
|
return this.render(t);
|
|
1504
1504
|
}
|
|
1505
|
-
const e =
|
|
1505
|
+
const e = s.element.classList;
|
|
1506
1506
|
for (const o of this.st)
|
|
1507
1507
|
o in t || (e.remove(o), this.st.delete(o));
|
|
1508
1508
|
for (const o in t) {
|
|
1509
1509
|
const n = !!t[o];
|
|
1510
|
-
n === this.st.has(o) || (
|
|
1510
|
+
n === this.st.has(o) || (r = this.nt) != null && r.has(o) || (n ? (e.add(o), this.st.add(o)) : (e.remove(o), this.st.delete(o)));
|
|
1511
1511
|
}
|
|
1512
1512
|
return P;
|
|
1513
1513
|
}
|
|
1514
|
-
}), y = (
|
|
1515
|
-
|
|
1516
|
-
}, he = (
|
|
1517
|
-
var e, i,
|
|
1518
|
-
y((e =
|
|
1519
|
-
(i =
|
|
1514
|
+
}), y = (s, t, e) => {
|
|
1515
|
+
s && e.style.setProperty(t, s);
|
|
1516
|
+
}, he = (s, t) => {
|
|
1517
|
+
var e, i, r, o, n, a, c, l, h;
|
|
1518
|
+
y((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), y(
|
|
1519
|
+
(i = s.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
|
1520
1520
|
"--text-on-primary-background",
|
|
1521
1521
|
t
|
|
1522
1522
|
), y(
|
|
1523
|
-
(
|
|
1523
|
+
(r = s.colors) == null ? void 0 : r.secondaryBackground,
|
|
1524
1524
|
"--secondary-background",
|
|
1525
1525
|
t
|
|
1526
1526
|
), y(
|
|
1527
|
-
(o =
|
|
1527
|
+
(o = s.colors) == null ? void 0 : o.textOnSecondaryBackground,
|
|
1528
1528
|
"--text-on-secondary-background",
|
|
1529
1529
|
t
|
|
1530
1530
|
), y(
|
|
1531
|
-
(n =
|
|
1531
|
+
(n = s.colors) == null ? void 0 : n.interactiveDestructiveBackground,
|
|
1532
1532
|
"--destructive-color",
|
|
1533
1533
|
t
|
|
1534
1534
|
), y(
|
|
1535
|
-
(a =
|
|
1535
|
+
(a = s.colors) == null ? void 0 : a.interactiveTextOnDestructiveBackground,
|
|
1536
1536
|
"--text-on-destructive-color",
|
|
1537
1537
|
t
|
|
1538
1538
|
), y(
|
|
1539
|
-
(c =
|
|
1539
|
+
(c = s.colors) == null ? void 0 : c.interactivePrimaryBackground,
|
|
1540
1540
|
"--interactive-primary-background",
|
|
1541
1541
|
t
|
|
1542
1542
|
), y(
|
|
1543
|
-
(l =
|
|
1543
|
+
(l = s.colors) == null ? void 0 : l.interactiveTextOnPrimaryBackground,
|
|
1544
1544
|
"--interactive-text-on-primary-background",
|
|
1545
1545
|
t
|
|
1546
|
-
), y((h =
|
|
1546
|
+
), y((h = s.colors) == null ? void 0 : h.focusColor, "--focus-color", t);
|
|
1547
1547
|
};
|
|
1548
1548
|
/**
|
|
1549
1549
|
* @license
|
|
@@ -1554,25 +1554,25 @@ const pe = () => new li();
|
|
|
1554
1554
|
class li {
|
|
1555
1555
|
}
|
|
1556
1556
|
const lt = /* @__PURE__ */ new WeakMap(), de = _t(class extends le {
|
|
1557
|
-
render(
|
|
1557
|
+
render(s) {
|
|
1558
1558
|
return d;
|
|
1559
1559
|
}
|
|
1560
|
-
update(
|
|
1560
|
+
update(s, [t]) {
|
|
1561
1561
|
var i;
|
|
1562
1562
|
const e = t !== this.Y;
|
|
1563
|
-
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i =
|
|
1563
|
+
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)), d;
|
|
1564
1564
|
}
|
|
1565
|
-
rt(
|
|
1565
|
+
rt(s) {
|
|
1566
1566
|
if (typeof this.Y == "function") {
|
|
1567
1567
|
const t = this.ht ?? globalThis;
|
|
1568
1568
|
let e = lt.get(t);
|
|
1569
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), lt.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y,
|
|
1569
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), lt.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);
|
|
1570
1570
|
} else
|
|
1571
|
-
this.Y.value =
|
|
1571
|
+
this.Y.value = s;
|
|
1572
1572
|
}
|
|
1573
1573
|
get lt() {
|
|
1574
|
-
var
|
|
1575
|
-
return typeof this.Y == "function" ? (
|
|
1574
|
+
var s, t;
|
|
1575
|
+
return typeof this.Y == "function" ? (s = lt.get(this.ht ?? globalThis)) == null ? void 0 : s.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
|
|
1576
1576
|
}
|
|
1577
1577
|
disconnected() {
|
|
1578
1578
|
this.lt === this.ct && this.rt(void 0);
|
|
@@ -1581,10 +1581,10 @@ const lt = /* @__PURE__ */ new WeakMap(), de = _t(class extends le {
|
|
|
1581
1581
|
this.rt(this.ct);
|
|
1582
1582
|
}
|
|
1583
1583
|
});
|
|
1584
|
-
var hi = Object.defineProperty, pi = Object.getOwnPropertyDescriptor, z = (
|
|
1585
|
-
for (var
|
|
1586
|
-
(n =
|
|
1587
|
-
return i &&
|
|
1584
|
+
var hi = Object.defineProperty, pi = Object.getOwnPropertyDescriptor, z = (s, t, e, i) => {
|
|
1585
|
+
for (var r = i > 1 ? void 0 : i ? pi(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
|
1586
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
|
1587
|
+
return i && r && hi(t, e, r), r;
|
|
1588
1588
|
};
|
|
1589
1589
|
class w extends m {
|
|
1590
1590
|
constructor() {
|
|
@@ -1604,7 +1604,22 @@ class w extends m {
|
|
|
1604
1604
|
);
|
|
1605
1605
|
return;
|
|
1606
1606
|
}
|
|
1607
|
-
this.active = !this.active, this.active ? (this.application.appendToDOM(), this.
|
|
1607
|
+
this.active = !this.active, this.active ? (this.application.appendToDOM(), this.notify("widget-set-active", {
|
|
1608
|
+
widgetId: this.application.id,
|
|
1609
|
+
active: !0
|
|
1610
|
+
}), this.widgetActive$.next(!0), this.hideTrigger()) : (this.application.hide(), this.notify("widget-set-active", {
|
|
1611
|
+
widgetId: this.application.id,
|
|
1612
|
+
active: !1
|
|
1613
|
+
}), this.widgetActive$.next(!1), this.showTrigger());
|
|
1614
|
+
}
|
|
1615
|
+
notify(t, e = {}) {
|
|
1616
|
+
window != null && window.parent && window.parent.postMessage(
|
|
1617
|
+
{
|
|
1618
|
+
type: t,
|
|
1619
|
+
data: e
|
|
1620
|
+
},
|
|
1621
|
+
"*"
|
|
1622
|
+
);
|
|
1608
1623
|
}
|
|
1609
1624
|
_applyBranding() {
|
|
1610
1625
|
var t;
|
|
@@ -1618,10 +1633,10 @@ class w extends m {
|
|
|
1618
1633
|
const i = (l = this.application) == null ? void 0 : l.triggerIcon;
|
|
1619
1634
|
if (!i)
|
|
1620
1635
|
return d;
|
|
1621
|
-
const
|
|
1636
|
+
const r = async (h) => ci, { type: o, content: n } = i;
|
|
1622
1637
|
switch (o) {
|
|
1623
1638
|
case "Telia": {
|
|
1624
|
-
const h = await
|
|
1639
|
+
const h = await r();
|
|
1625
1640
|
return h ? x`<telia-icon
|
|
1626
1641
|
class="trigger-icon"
|
|
1627
1642
|
svg=${h.svg}
|
|
@@ -1639,7 +1654,7 @@ class w extends m {
|
|
|
1639
1654
|
this.triggerVisible = !0;
|
|
1640
1655
|
}
|
|
1641
1656
|
render() {
|
|
1642
|
-
var t, e, i,
|
|
1657
|
+
var t, e, i, r;
|
|
1643
1658
|
return x`<div
|
|
1644
1659
|
class=${Ft({
|
|
1645
1660
|
"trigger-container": !0,
|
|
@@ -1647,14 +1662,14 @@ class w extends m {
|
|
|
1647
1662
|
})}
|
|
1648
1663
|
${de(this.containerRef)}
|
|
1649
1664
|
>
|
|
1650
|
-
${!this.active && ((
|
|
1665
|
+
${!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) ? x`
|
|
1651
1666
|
<button
|
|
1652
1667
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
|
1653
1668
|
class="trigger-label"
|
|
1654
1669
|
@click=${this.toggleActive}
|
|
1655
1670
|
${ai({
|
|
1656
1671
|
keyframeOptions: {},
|
|
1657
|
-
in:
|
|
1672
|
+
in: si,
|
|
1658
1673
|
stabilizeOut: !0,
|
|
1659
1674
|
skipInitial: !1
|
|
1660
1675
|
})}
|
|
@@ -1851,13 +1866,13 @@ z([
|
|
|
1851
1866
|
z([
|
|
1852
1867
|
U()
|
|
1853
1868
|
], w.prototype, "icon", 2);
|
|
1854
|
-
var di = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, A = (
|
|
1855
|
-
for (var
|
|
1856
|
-
(n =
|
|
1857
|
-
return i &&
|
|
1869
|
+
var di = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, A = (s, t, e, i) => {
|
|
1870
|
+
for (var r = i > 1 ? void 0 : i ? ui(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
|
1871
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
|
1872
|
+
return i && r && di(t, e, r), r;
|
|
1858
1873
|
};
|
|
1859
|
-
const ue = (
|
|
1860
|
-
class t extends
|
|
1874
|
+
const ue = (s) => {
|
|
1875
|
+
class t extends s {
|
|
1861
1876
|
constructor() {
|
|
1862
1877
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
|
1863
1878
|
}
|
|
@@ -1928,14 +1943,14 @@ fe.styles = [
|
|
|
1928
1943
|
* Copyright 2021 Google LLC
|
|
1929
1944
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1930
1945
|
*/
|
|
1931
|
-
function* fi(
|
|
1932
|
-
if (
|
|
1946
|
+
function* fi(s, t) {
|
|
1947
|
+
if (s !== void 0) {
|
|
1933
1948
|
let e = 0;
|
|
1934
|
-
for (const i of
|
|
1949
|
+
for (const i of s)
|
|
1935
1950
|
yield t(i, e++);
|
|
1936
1951
|
}
|
|
1937
1952
|
}
|
|
1938
|
-
var wt = /* @__PURE__ */ ((
|
|
1953
|
+
var wt = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(wt || {});
|
|
1939
1954
|
/**
|
|
1940
1955
|
* @license
|
|
1941
1956
|
* Copyright 2021 Google LLC
|
|
@@ -1979,8 +1994,8 @@ class vi {
|
|
|
1979
1994
|
this.subscriptions.has(t) || this.subscriptions.set(t, { disposer: () => {
|
|
1980
1995
|
this.subscriptions.delete(t);
|
|
1981
1996
|
}, consumerHost: e });
|
|
1982
|
-
const { disposer:
|
|
1983
|
-
t(this.value,
|
|
1997
|
+
const { disposer: r } = this.subscriptions.get(t);
|
|
1998
|
+
t(this.value, r);
|
|
1984
1999
|
}
|
|
1985
2000
|
clearCallbacks() {
|
|
1986
2001
|
this.subscriptions.clear();
|
|
@@ -1998,7 +2013,7 @@ let mi = class extends Event {
|
|
|
1998
2013
|
};
|
|
1999
2014
|
class Zt extends vi {
|
|
2000
2015
|
constructor(t, e, i) {
|
|
2001
|
-
var
|
|
2016
|
+
var r, o;
|
|
2002
2017
|
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (n) => {
|
|
2003
2018
|
const a = n.composedPath()[0];
|
|
2004
2019
|
n.context === this.context && a !== this.host && (n.stopPropagation(), this.addCallback(n.callback, a, n.subscribe));
|
|
@@ -2010,7 +2025,7 @@ class Zt extends vi {
|
|
|
2010
2025
|
for (const [l, { consumerHost: h }] of this.subscriptions)
|
|
2011
2026
|
c.has(l) || (c.add(l), h.dispatchEvent(new gi(this.context, l, !0)));
|
|
2012
2027
|
n.stopPropagation();
|
|
2013
|
-
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (o = (
|
|
2028
|
+
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (o = (r = this.host).addController) == null || o.call(r, this);
|
|
2014
2029
|
}
|
|
2015
2030
|
attachListeners() {
|
|
2016
2031
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
@@ -2024,28 +2039,28 @@ class Zt extends vi {
|
|
|
2024
2039
|
* Copyright 2017 Google LLC
|
|
2025
2040
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2026
2041
|
*/
|
|
2027
|
-
function yi({ context:
|
|
2042
|
+
function yi({ context: s }) {
|
|
2028
2043
|
return (t, e) => {
|
|
2029
2044
|
const i = /* @__PURE__ */ new WeakMap();
|
|
2030
2045
|
if (typeof e == "object")
|
|
2031
2046
|
return e.addInitializer(function() {
|
|
2032
|
-
i.set(this, new Zt(this, { context:
|
|
2047
|
+
i.set(this, new Zt(this, { context: s }));
|
|
2033
2048
|
}), { get() {
|
|
2034
2049
|
return t.get.call(this);
|
|
2035
|
-
}, set(
|
|
2050
|
+
}, set(r) {
|
|
2036
2051
|
var o;
|
|
2037
|
-
return (o = i.get(this)) == null || o.setValue(
|
|
2038
|
-
}, init(
|
|
2052
|
+
return (o = i.get(this)) == null || o.setValue(r), t.set.call(this, r);
|
|
2053
|
+
}, init(r) {
|
|
2039
2054
|
var o;
|
|
2040
|
-
return (o = i.get(this)) == null || o.setValue(
|
|
2055
|
+
return (o = i.get(this)) == null || o.setValue(r), r;
|
|
2041
2056
|
} };
|
|
2042
2057
|
{
|
|
2043
2058
|
t.constructor.addInitializer((n) => {
|
|
2044
|
-
i.set(n, new Zt(n, { context:
|
|
2059
|
+
i.set(n, new Zt(n, { context: s }));
|
|
2045
2060
|
});
|
|
2046
|
-
const
|
|
2061
|
+
const r = Object.getOwnPropertyDescriptor(t, e);
|
|
2047
2062
|
let o;
|
|
2048
|
-
if (
|
|
2063
|
+
if (r === void 0) {
|
|
2049
2064
|
const n = /* @__PURE__ */ new WeakMap();
|
|
2050
2065
|
o = { get: function() {
|
|
2051
2066
|
return n.get(this);
|
|
@@ -2053,8 +2068,8 @@ function yi({ context: r }) {
|
|
|
2053
2068
|
i.get(this).setValue(a), n.set(this, a);
|
|
2054
2069
|
}, configurable: !0, enumerable: !0 };
|
|
2055
2070
|
} else {
|
|
2056
|
-
const n =
|
|
2057
|
-
o = { ...
|
|
2071
|
+
const n = r.set;
|
|
2072
|
+
o = { ...r, set: function(a) {
|
|
2058
2073
|
i.get(this).setValue(a), n == null || n.call(this, a);
|
|
2059
2074
|
} };
|
|
2060
2075
|
}
|
|
@@ -2062,10 +2077,10 @@ function yi({ context: r }) {
|
|
|
2062
2077
|
}
|
|
2063
2078
|
};
|
|
2064
2079
|
}
|
|
2065
|
-
var bi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, _i = (
|
|
2066
|
-
for (var
|
|
2067
|
-
(n =
|
|
2068
|
-
return i &&
|
|
2080
|
+
var bi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, _i = (s, t, e, i) => {
|
|
2081
|
+
for (var r = i > 1 ? void 0 : i ? $i(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
|
2082
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
|
2083
|
+
return i && r && bi(t, e, r), r;
|
|
2069
2084
|
};
|
|
2070
2085
|
const wi = "application";
|
|
2071
2086
|
class Ct extends m {
|
|
@@ -2085,17 +2100,17 @@ class Ct extends m {
|
|
|
2085
2100
|
if (!this.wrapperRef.value)
|
|
2086
2101
|
return;
|
|
2087
2102
|
const t = this.application.styles(), e = this.wrapperRef.value;
|
|
2088
|
-
Object.entries(t).forEach(([i,
|
|
2089
|
-
e.style.setProperty(`--${i}`,
|
|
2103
|
+
Object.entries(t).forEach(([i, r]) => {
|
|
2104
|
+
e.style.setProperty(`--${i}`, r);
|
|
2090
2105
|
});
|
|
2091
2106
|
}
|
|
2092
2107
|
firstUpdated(t) {
|
|
2093
2108
|
this.applyBranding(), this.applyStyles();
|
|
2094
2109
|
}
|
|
2095
2110
|
render() {
|
|
2096
|
-
var i,
|
|
2111
|
+
var i, r;
|
|
2097
2112
|
const t = this.application.settings.components.conversation;
|
|
2098
|
-
return ((
|
|
2113
|
+
return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === wt.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")), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), x`<div class="widget-container" ${de(this.wrapperRef)}>
|
|
2099
2114
|
${fi(this.nodes, (o) => o)}
|
|
2100
2115
|
</div>`;
|
|
2101
2116
|
}
|
|
@@ -2240,10 +2255,10 @@ _i([
|
|
|
2240
2255
|
g({ attribute: !1 }),
|
|
2241
2256
|
yi({ context: wi })
|
|
2242
2257
|
], Ct.prototype, "application", 2);
|
|
2243
|
-
var Ci = Object.defineProperty, Ai = Object.getOwnPropertyDescriptor, At = (
|
|
2244
|
-
for (var
|
|
2245
|
-
(n =
|
|
2246
|
-
return i &&
|
|
2258
|
+
var Ci = Object.defineProperty, Ai = Object.getOwnPropertyDescriptor, At = (s, t, e, i) => {
|
|
2259
|
+
for (var r = i > 1 ? void 0 : i ? Ai(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
|
2260
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
|
2261
|
+
return i && r && Ci(t, e, r), r;
|
|
2247
2262
|
};
|
|
2248
2263
|
class W extends m {
|
|
2249
2264
|
constructor() {
|