@telia-ace/widget-core-flamingo 1.1.79-rc.2 → 1.1.79-rc.3
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +29 -29
- package/index.mjs +642 -642
- package/package.json +1 -1
package/index.mjs
CHANGED
@@ -1,45 +1,45 @@
|
|
1
|
-
var
|
2
|
-
return
|
1
|
+
var ut = function(r, t) {
|
2
|
+
return ut = 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
|
-
},
|
5
|
+
for (var s in i)
|
6
|
+
Object.prototype.hasOwnProperty.call(i, s) && (e[s] = i[s]);
|
7
|
+
}, ut(r, t);
|
8
8
|
};
|
9
|
-
function z(
|
9
|
+
function z(r, t) {
|
10
10
|
if (typeof t != "function" && t !== null)
|
11
11
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
12
|
-
|
12
|
+
ut(r, t);
|
13
13
|
function e() {
|
14
|
-
this.constructor =
|
14
|
+
this.constructor = r;
|
15
15
|
}
|
16
|
-
|
16
|
+
r.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
17
17
|
}
|
18
|
-
function
|
19
|
-
var t = typeof Symbol == "function" && Symbol.iterator, e = t &&
|
18
|
+
function ft(r) {
|
19
|
+
var t = typeof Symbol == "function" && Symbol.iterator, e = t && r[t], i = 0;
|
20
20
|
if (e)
|
21
|
-
return e.call(
|
22
|
-
if (
|
21
|
+
return e.call(r);
|
22
|
+
if (r && typeof r.length == "number")
|
23
23
|
return {
|
24
24
|
next: function() {
|
25
|
-
return
|
25
|
+
return r && i >= r.length && (r = void 0), { value: r && r[i++], done: !r };
|
26
26
|
}
|
27
27
|
};
|
28
28
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
29
29
|
}
|
30
|
-
function Z(
|
31
|
-
var e = typeof Symbol == "function" &&
|
30
|
+
function Z(r, t) {
|
31
|
+
var e = typeof Symbol == "function" && r[Symbol.iterator];
|
32
32
|
if (!e)
|
33
|
-
return
|
34
|
-
var i = e.call(
|
33
|
+
return r;
|
34
|
+
var i = e.call(r), s, n = [], o;
|
35
35
|
try {
|
36
|
-
for (; (t === void 0 || t-- > 0) && !(
|
37
|
-
n.push(
|
36
|
+
for (; (t === void 0 || t-- > 0) && !(s = i.next()).done; )
|
37
|
+
n.push(s.value);
|
38
38
|
} catch (a) {
|
39
39
|
o = { error: a };
|
40
40
|
} finally {
|
41
41
|
try {
|
42
|
-
|
42
|
+
s && !s.done && (e = i.return) && e.call(i);
|
43
43
|
} finally {
|
44
44
|
if (o)
|
45
45
|
throw o.error;
|
@@ -47,51 +47,51 @@ function Z(s, t) {
|
|
47
47
|
}
|
48
48
|
return n;
|
49
49
|
}
|
50
|
-
function J(
|
50
|
+
function J(r, t, e) {
|
51
51
|
if (e || arguments.length === 2)
|
52
|
-
for (var i = 0,
|
52
|
+
for (var i = 0, s = t.length, n; i < s; i++)
|
53
53
|
(n || !(i in t)) && (n || (n = Array.prototype.slice.call(t, 0, i)), n[i] = t[i]);
|
54
|
-
return
|
54
|
+
return r.concat(n || Array.prototype.slice.call(t));
|
55
55
|
}
|
56
|
-
function $(
|
57
|
-
return typeof
|
56
|
+
function $(r) {
|
57
|
+
return typeof r == "function";
|
58
58
|
}
|
59
|
-
function te(
|
59
|
+
function te(r) {
|
60
60
|
var t = function(i) {
|
61
61
|
Error.call(i), i.stack = new Error().stack;
|
62
|
-
}, e =
|
62
|
+
}, e = r(t);
|
63
63
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
64
64
|
}
|
65
|
-
var
|
65
|
+
var rt = te(function(r) {
|
66
66
|
return function(e) {
|
67
|
-
|
68
|
-
` + e.map(function(i,
|
69
|
-
return
|
67
|
+
r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
68
|
+
` + e.map(function(i, s) {
|
69
|
+
return s + 1 + ") " + i.toString();
|
70
70
|
}).join(`
|
71
71
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
72
72
|
};
|
73
73
|
});
|
74
|
-
function
|
75
|
-
if (
|
76
|
-
var e =
|
77
|
-
0 <= e &&
|
74
|
+
function gt(r, t) {
|
75
|
+
if (r) {
|
76
|
+
var e = r.indexOf(t);
|
77
|
+
0 <= e && r.splice(e, 1);
|
78
78
|
}
|
79
79
|
}
|
80
|
-
var
|
81
|
-
function
|
80
|
+
var tt = function() {
|
81
|
+
function r(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 r.prototype.unsubscribe = function() {
|
85
|
+
var t, e, i, s, n;
|
86
86
|
if (!this.closed) {
|
87
87
|
this.closed = !0;
|
88
88
|
var o = this._parentage;
|
89
89
|
if (o)
|
90
90
|
if (this._parentage = null, Array.isArray(o))
|
91
91
|
try {
|
92
|
-
for (var a =
|
93
|
-
var
|
94
|
-
|
92
|
+
for (var a = ft(o), c = a.next(); !c.done; c = a.next()) {
|
93
|
+
var h = c.value;
|
94
|
+
h.remove(this);
|
95
95
|
}
|
96
96
|
} catch (v) {
|
97
97
|
t = { error: v };
|
@@ -105,30 +105,30 @@ var et = function() {
|
|
105
105
|
}
|
106
106
|
else
|
107
107
|
o.remove(this);
|
108
|
-
var
|
109
|
-
if ($(
|
108
|
+
var l = this.initialTeardown;
|
109
|
+
if ($(l))
|
110
110
|
try {
|
111
|
-
|
111
|
+
l();
|
112
112
|
} catch (v) {
|
113
|
-
n = v instanceof
|
113
|
+
n = v instanceof rt ? v.errors : [v];
|
114
114
|
}
|
115
115
|
var d = this._finalizers;
|
116
116
|
if (d) {
|
117
117
|
this._finalizers = null;
|
118
118
|
try {
|
119
|
-
for (var p =
|
119
|
+
for (var p = ft(d), f = p.next(); !f.done; f = p.next()) {
|
120
120
|
var g = f.value;
|
121
121
|
try {
|
122
122
|
Ot(g);
|
123
123
|
} catch (v) {
|
124
|
-
n = n ?? [], v instanceof
|
124
|
+
n = n ?? [], v instanceof rt ? n = J(J([], Z(n)), Z(v.errors)) : n.push(v);
|
125
125
|
}
|
126
126
|
}
|
127
127
|
} catch (v) {
|
128
128
|
i = { error: v };
|
129
129
|
} finally {
|
130
130
|
try {
|
131
|
-
f && !f.done && (
|
131
|
+
f && !f.done && (s = p.return) && s.call(p);
|
132
132
|
} finally {
|
133
133
|
if (i)
|
134
134
|
throw i.error;
|
@@ -136,43 +136,43 @@ var et = function() {
|
|
136
136
|
}
|
137
137
|
}
|
138
138
|
if (n)
|
139
|
-
throw new
|
139
|
+
throw new rt(n);
|
140
140
|
}
|
141
|
-
},
|
141
|
+
}, r.prototype.add = function(t) {
|
142
142
|
var e;
|
143
143
|
if (t && t !== this)
|
144
144
|
if (this.closed)
|
145
145
|
Ot(t);
|
146
146
|
else {
|
147
|
-
if (t instanceof
|
147
|
+
if (t instanceof r) {
|
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
|
+
}, r.prototype._hasParent = function(t) {
|
155
155
|
var e = this._parentage;
|
156
156
|
return e === t || Array.isArray(e) && e.includes(t);
|
157
|
-
},
|
157
|
+
}, r.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
|
+
}, r.prototype._removeParent = function(t) {
|
161
161
|
var e = this._parentage;
|
162
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
163
|
-
},
|
162
|
+
e === t ? this._parentage = null : Array.isArray(e) && gt(e, t);
|
163
|
+
}, r.prototype.remove = function(t) {
|
164
164
|
var e = this._finalizers;
|
165
|
-
e &&
|
166
|
-
},
|
167
|
-
var t = new
|
165
|
+
e && gt(e, t), t instanceof r && t._removeParent(this);
|
166
|
+
}, r.EMPTY = function() {
|
167
|
+
var t = new r();
|
168
168
|
return t.closed = !0, t;
|
169
|
-
}(),
|
170
|
-
}(), ee =
|
171
|
-
function ie(
|
172
|
-
return
|
169
|
+
}(), r;
|
170
|
+
}(), ee = tt.EMPTY;
|
171
|
+
function ie(r) {
|
172
|
+
return r instanceof tt || r && "closed" in r && $(r.remove) && $(r.add) && $(r.unsubscribe);
|
173
173
|
}
|
174
|
-
function Ot(
|
175
|
-
$(
|
174
|
+
function Ot(r) {
|
175
|
+
$(r) ? r() : r.unsubscribe();
|
176
176
|
}
|
177
177
|
var se = {
|
178
178
|
onUnhandledError: null,
|
@@ -180,37 +180,37 @@ var se = {
|
|
180
180
|
Promise: void 0,
|
181
181
|
useDeprecatedSynchronousErrorHandling: !1,
|
182
182
|
useDeprecatedNextContext: !1
|
183
|
-
},
|
184
|
-
setTimeout: function(
|
183
|
+
}, mt = {
|
184
|
+
setTimeout: function(r, t) {
|
185
185
|
for (var e = [], i = 2; i < arguments.length; i++)
|
186
186
|
e[i - 2] = arguments[i];
|
187
|
-
var
|
188
|
-
return
|
187
|
+
var s = mt.delegate;
|
188
|
+
return s != null && s.setTimeout ? s.setTimeout.apply(s, J([r, t], Z(e))) : setTimeout.apply(void 0, J([r, t], Z(e)));
|
189
189
|
},
|
190
|
-
clearTimeout: function(
|
191
|
-
var t =
|
192
|
-
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(
|
190
|
+
clearTimeout: function(r) {
|
191
|
+
var t = mt.delegate;
|
192
|
+
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(r);
|
193
193
|
},
|
194
194
|
delegate: void 0
|
195
195
|
};
|
196
|
-
function
|
197
|
-
|
198
|
-
throw
|
196
|
+
function Ae(r) {
|
197
|
+
mt.setTimeout(function() {
|
198
|
+
throw r;
|
199
199
|
});
|
200
200
|
}
|
201
201
|
function Tt() {
|
202
202
|
}
|
203
|
-
function q(
|
204
|
-
|
203
|
+
function q(r) {
|
204
|
+
r();
|
205
205
|
}
|
206
|
-
var re = function(
|
207
|
-
z(t,
|
206
|
+
var re = function(r) {
|
207
|
+
z(t, r);
|
208
208
|
function t(e) {
|
209
|
-
var i =
|
210
|
-
return i.isStopped = !1, e ? (i.destination = e, ie(e) && e.add(i)) : i.destination =
|
209
|
+
var i = r.call(this) || this;
|
210
|
+
return i.isStopped = !1, e ? (i.destination = e, ie(e) && e.add(i)) : i.destination = Ee, i;
|
211
211
|
}
|
212
|
-
return t.create = function(e, i,
|
213
|
-
return new
|
212
|
+
return t.create = function(e, i, s) {
|
213
|
+
return new vt(e, i, s);
|
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 re = function(s) {
|
|
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, r.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 re = function(s) {
|
|
234
234
|
this.unsubscribe();
|
235
235
|
}
|
236
236
|
}, t;
|
237
|
-
}(
|
238
|
-
function
|
239
|
-
return
|
237
|
+
}(tt), xe = Function.prototype.bind;
|
238
|
+
function nt(r, t) {
|
239
|
+
return xe.call(r, t);
|
240
240
|
}
|
241
|
-
var
|
242
|
-
function
|
241
|
+
var Ce = function() {
|
242
|
+
function r(t) {
|
243
243
|
this.partialObserver = t;
|
244
244
|
}
|
245
|
-
return
|
245
|
+
return r.prototype.next = function(t) {
|
246
246
|
var e = this.partialObserver;
|
247
247
|
if (e.next)
|
248
248
|
try {
|
@@ -250,7 +250,7 @@ var xe = function() {
|
|
250
250
|
} catch (i) {
|
251
251
|
Y(i);
|
252
252
|
}
|
253
|
-
},
|
253
|
+
}, r.prototype.error = function(t) {
|
254
254
|
var e = this.partialObserver;
|
255
255
|
if (e.error)
|
256
256
|
try {
|
@@ -260,7 +260,7 @@ var xe = function() {
|
|
260
260
|
}
|
261
261
|
else
|
262
262
|
Y(t);
|
263
|
-
},
|
263
|
+
}, r.prototype.complete = function() {
|
264
264
|
var t = this.partialObserver;
|
265
265
|
if (t.complete)
|
266
266
|
try {
|
@@ -268,78 +268,78 @@ var xe = function() {
|
|
268
268
|
} catch (e) {
|
269
269
|
Y(e);
|
270
270
|
}
|
271
|
-
},
|
272
|
-
}(),
|
273
|
-
z(t,
|
274
|
-
function t(e, i,
|
275
|
-
var n =
|
271
|
+
}, r;
|
272
|
+
}(), vt = function(r) {
|
273
|
+
z(t, r);
|
274
|
+
function t(e, i, s) {
|
275
|
+
var n = r.call(this) || this, o;
|
276
276
|
if ($(e) || !e)
|
277
277
|
o = {
|
278
278
|
next: e ?? void 0,
|
279
279
|
error: i ?? void 0,
|
280
|
-
complete:
|
280
|
+
complete: s ?? void 0
|
281
281
|
};
|
282
282
|
else {
|
283
283
|
var a;
|
284
284
|
n && se.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
285
285
|
return n.unsubscribe();
|
286
286
|
}, o = {
|
287
|
-
next: e.next &&
|
288
|
-
error: e.error &&
|
289
|
-
complete: e.complete &&
|
287
|
+
next: e.next && nt(e.next, a),
|
288
|
+
error: e.error && nt(e.error, a),
|
289
|
+
complete: e.complete && nt(e.complete, a)
|
290
290
|
}) : o = e;
|
291
291
|
}
|
292
|
-
return n.destination = new
|
292
|
+
return n.destination = new Ce(o), n;
|
293
293
|
}
|
294
294
|
return t;
|
295
295
|
}(re);
|
296
|
-
function Y(
|
297
|
-
|
296
|
+
function Y(r) {
|
297
|
+
Ae(r);
|
298
298
|
}
|
299
|
-
function
|
300
|
-
throw
|
299
|
+
function Se(r) {
|
300
|
+
throw r;
|
301
301
|
}
|
302
|
-
var
|
302
|
+
var Ee = {
|
303
303
|
closed: !0,
|
304
304
|
next: Tt,
|
305
|
-
error:
|
305
|
+
error: Se,
|
306
306
|
complete: Tt
|
307
|
-
},
|
307
|
+
}, Pe = function() {
|
308
308
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
309
309
|
}();
|
310
|
-
function
|
311
|
-
return
|
310
|
+
function Oe(r) {
|
311
|
+
return r;
|
312
312
|
}
|
313
|
-
function
|
314
|
-
return
|
315
|
-
return
|
316
|
-
return
|
313
|
+
function Te(r) {
|
314
|
+
return r.length === 0 ? Oe : r.length === 1 ? r[0] : function(e) {
|
315
|
+
return r.reduce(function(i, s) {
|
316
|
+
return s(i);
|
317
317
|
}, e);
|
318
318
|
};
|
319
319
|
}
|
320
320
|
var It = function() {
|
321
|
-
function
|
321
|
+
function r(t) {
|
322
322
|
t && (this._subscribe = t);
|
323
323
|
}
|
324
|
-
return
|
325
|
-
var e = new
|
324
|
+
return r.prototype.lift = function(t) {
|
325
|
+
var e = new r();
|
326
326
|
return e.source = this, e.operator = t, e;
|
327
|
-
},
|
328
|
-
var
|
327
|
+
}, r.prototype.subscribe = function(t, e, i) {
|
328
|
+
var s = this, n = Re(t) ? t : new vt(t, e, i);
|
329
329
|
return q(function() {
|
330
|
-
var o =
|
331
|
-
n.add(a ? a.call(n, c) : c ?
|
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));
|
332
332
|
}), n;
|
333
|
-
},
|
333
|
+
}, r.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
|
+
}, r.prototype.forEach = function(t, e) {
|
340
340
|
var i = this;
|
341
|
-
return e = Rt(e), new e(function(
|
342
|
-
var o = new
|
341
|
+
return e = Rt(e), new e(function(s, n) {
|
342
|
+
var o = new vt({
|
343
343
|
next: function(a) {
|
344
344
|
try {
|
345
345
|
t(a);
|
@@ -348,53 +348,53 @@ var It = function() {
|
|
348
348
|
}
|
349
349
|
},
|
350
350
|
error: n,
|
351
|
-
complete:
|
351
|
+
complete: s
|
352
352
|
});
|
353
353
|
i.subscribe(o);
|
354
354
|
});
|
355
|
-
},
|
355
|
+
}, r.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
|
+
}, r.prototype[Pe] = function() {
|
359
359
|
return this;
|
360
|
-
},
|
360
|
+
}, r.prototype.pipe = function() {
|
361
361
|
for (var t = [], e = 0; e < arguments.length; e++)
|
362
362
|
t[e] = arguments[e];
|
363
|
-
return
|
364
|
-
},
|
363
|
+
return Te(t)(this);
|
364
|
+
}, r.prototype.toPromise = function(t) {
|
365
365
|
var e = this;
|
366
|
-
return t = Rt(t), new t(function(i,
|
366
|
+
return t = Rt(t), new t(function(i, s) {
|
367
367
|
var n;
|
368
368
|
e.subscribe(function(o) {
|
369
369
|
return n = o;
|
370
370
|
}, function(o) {
|
371
|
-
return
|
371
|
+
return s(o);
|
372
372
|
}, function() {
|
373
373
|
return i(n);
|
374
374
|
});
|
375
375
|
});
|
376
|
-
},
|
377
|
-
return new
|
378
|
-
},
|
376
|
+
}, r.create = function(t) {
|
377
|
+
return new r(t);
|
378
|
+
}, r;
|
379
379
|
}();
|
380
|
-
function Rt(
|
380
|
+
function Rt(r) {
|
381
381
|
var t;
|
382
|
-
return (t =
|
382
|
+
return (t = r ?? se.Promise) !== null && t !== void 0 ? t : Promise;
|
383
383
|
}
|
384
|
-
function
|
385
|
-
return
|
384
|
+
function Ie(r) {
|
385
|
+
return r && $(r.next) && $(r.error) && $(r.complete);
|
386
386
|
}
|
387
|
-
function
|
388
|
-
return
|
387
|
+
function Re(r) {
|
388
|
+
return r && r instanceof re || Ie(r) && ie(r);
|
389
389
|
}
|
390
|
-
var
|
390
|
+
var ke = te(function(r) {
|
391
391
|
return function() {
|
392
|
-
|
392
|
+
r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
393
393
|
};
|
394
|
-
}), wt = function(
|
395
|
-
z(t,
|
394
|
+
}), wt = function(r) {
|
395
|
+
z(t, r);
|
396
396
|
function t() {
|
397
|
-
var e =
|
397
|
+
var e = r.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,26 +402,26 @@ var Re = te(function(s) {
|
|
402
402
|
return i.operator = e, i;
|
403
403
|
}, t.prototype._throwIfClosed = function() {
|
404
404
|
if (this.closed)
|
405
|
-
throw new
|
405
|
+
throw new ke();
|
406
406
|
}, t.prototype.next = function(e) {
|
407
407
|
var i = this;
|
408
408
|
q(function() {
|
409
|
-
var
|
409
|
+
var s, n;
|
410
410
|
if (i._throwIfClosed(), !i.isStopped) {
|
411
411
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
412
412
|
try {
|
413
|
-
for (var o =
|
413
|
+
for (var o = ft(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
414
414
|
var c = a.value;
|
415
415
|
c.next(e);
|
416
416
|
}
|
417
|
-
} catch (
|
418
|
-
|
417
|
+
} catch (h) {
|
418
|
+
s = { error: h };
|
419
419
|
} finally {
|
420
420
|
try {
|
421
421
|
a && !a.done && (n = o.return) && n.call(o);
|
422
422
|
} finally {
|
423
|
-
if (
|
424
|
-
throw
|
423
|
+
if (s)
|
424
|
+
throw s.error;
|
425
425
|
}
|
426
426
|
}
|
427
427
|
}
|
@@ -431,8 +431,8 @@ var Re = te(function(s) {
|
|
431
431
|
q(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 s = i.observers; s.length; )
|
435
|
+
s.shift().error(e);
|
436
436
|
}
|
437
437
|
});
|
438
438
|
}, t.prototype.complete = function() {
|
@@ -454,46 +454,46 @@ var Re = te(function(s) {
|
|
454
454
|
enumerable: !1,
|
455
455
|
configurable: !0
|
456
456
|
}), t.prototype._trySubscribe = function(e) {
|
457
|
-
return this._throwIfClosed(),
|
457
|
+
return this._throwIfClosed(), r.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,
|
462
|
-
return n || o ? ee : (this.currentObservers = null, a.push(e), new
|
463
|
-
i.currentObservers = null,
|
461
|
+
var i = this, s = this, n = s.hasError, o = s.isStopped, a = s.observers;
|
462
|
+
return n || o ? ee : (this.currentObservers = null, a.push(e), new tt(function() {
|
463
|
+
i.currentObservers = null, gt(a, e);
|
464
464
|
}));
|
465
465
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
466
|
-
var i = this,
|
467
|
-
|
466
|
+
var i = this, s = i.hasError, n = i.thrownError, o = i.isStopped;
|
467
|
+
s ? e.error(n) : o && e.complete();
|
468
468
|
}, t.prototype.asObservable = function() {
|
469
469
|
var e = new It();
|
470
470
|
return e.source = this, e;
|
471
471
|
}, t.create = function(e, i) {
|
472
472
|
return new kt(e, i);
|
473
473
|
}, t;
|
474
|
-
}(It), kt = function(
|
475
|
-
z(t,
|
474
|
+
}(It), kt = function(r) {
|
475
|
+
z(t, r);
|
476
476
|
function t(e, i) {
|
477
|
-
var
|
478
|
-
return
|
477
|
+
var s = r.call(this) || this;
|
478
|
+
return s.destination = e, s.source = i, s;
|
479
479
|
}
|
480
480
|
return t.prototype.next = function(e) {
|
481
|
-
var i,
|
482
|
-
(
|
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);
|
483
483
|
}, t.prototype.error = function(e) {
|
484
|
-
var i,
|
485
|
-
(
|
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);
|
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, s;
|
491
|
+
return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && s !== void 0 ? s : ee;
|
492
492
|
}, t;
|
493
|
-
}(wt), ne = function(
|
494
|
-
z(t,
|
493
|
+
}(wt), ne = function(r) {
|
494
|
+
z(t, r);
|
495
495
|
function t(e) {
|
496
|
-
var i =
|
496
|
+
var i = r.call(this) || this;
|
497
497
|
return i._value = e, i;
|
498
498
|
}
|
499
499
|
return Object.defineProperty(t.prototype, "value", {
|
@@ -503,17 +503,17 @@ var Re = te(function(s) {
|
|
503
503
|
enumerable: !1,
|
504
504
|
configurable: !0
|
505
505
|
}), t.prototype._subscribe = function(e) {
|
506
|
-
var i =
|
506
|
+
var i = r.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, s = e.thrownError, n = e._value;
|
510
510
|
if (i)
|
511
|
-
throw
|
511
|
+
throw s;
|
512
512
|
return this._throwIfClosed(), n;
|
513
513
|
}, t.prototype.next = function(e) {
|
514
|
-
|
514
|
+
r.prototype.next.call(this, this._value = e);
|
515
515
|
}, t;
|
516
|
-
}(wt), oe = /* @__PURE__ */ ((
|
516
|
+
}(wt), oe = /* @__PURE__ */ ((r) => (r.Loading = "loading", r.Ready = "ready", r))(oe || {});
|
517
517
|
class Mt {
|
518
518
|
constructor(t, e) {
|
519
519
|
this.state = new ne(
|
@@ -559,63 +559,63 @@ let ae = class {
|
|
559
559
|
return this.cssText;
|
560
560
|
}
|
561
561
|
};
|
562
|
-
const
|
563
|
-
const e =
|
562
|
+
const Me = (r) => new ae(typeof r == "string" ? r : r + "", void 0, _t), M = (r, ...t) => {
|
563
|
+
const e = r.length === 1 ? r[0] : t.reduce((i, s, n) => i + ((o) => {
|
564
564
|
if (o._$cssResult$ === !0)
|
565
565
|
return o.cssText;
|
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
|
-
})(
|
570
|
-
return new ae(e,
|
571
|
-
},
|
569
|
+
})(s) + r[n + 1], r[0]);
|
570
|
+
return new ae(e, r, _t);
|
571
|
+
}, Ne = (r, t) => {
|
572
572
|
if ($t)
|
573
|
-
|
573
|
+
r.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"),
|
577
|
-
|
576
|
+
const i = document.createElement("style"), s = K.litNonce;
|
577
|
+
s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, r.appendChild(i);
|
578
578
|
}
|
579
|
-
}, Ut = $t ? (
|
579
|
+
}, Ut = $t ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
580
580
|
let e = "";
|
581
581
|
for (const i of t.cssRules)
|
582
582
|
e += i.cssText;
|
583
|
-
return
|
584
|
-
})(
|
583
|
+
return Me(e);
|
584
|
+
})(r) : r;
|
585
585
|
/**
|
586
586
|
* @license
|
587
587
|
* Copyright 2017 Google LLC
|
588
588
|
* SPDX-License-Identifier: BSD-3-Clause
|
589
589
|
*/
|
590
|
-
const { is:
|
590
|
+
const { is: Ue, defineProperty: je, getOwnPropertyDescriptor: Le, getOwnPropertyNames: He, getOwnPropertySymbols: Be, getPrototypeOf: De } = Object, C = globalThis, jt = C.trustedTypes, ze = jt ? jt.emptyScript : "", ot = C.reactiveElementPolyfillSupport, j = (r, t) => r, G = { toAttribute(r, t) {
|
591
591
|
switch (t) {
|
592
592
|
case Boolean:
|
593
|
-
|
593
|
+
r = r ? ze : null;
|
594
594
|
break;
|
595
595
|
case Object:
|
596
596
|
case Array:
|
597
|
-
|
597
|
+
r = r == null ? r : JSON.stringify(r);
|
598
598
|
}
|
599
|
-
return
|
600
|
-
}, fromAttribute(
|
601
|
-
let e =
|
599
|
+
return r;
|
600
|
+
}, fromAttribute(r, t) {
|
601
|
+
let e = r;
|
602
602
|
switch (t) {
|
603
603
|
case Boolean:
|
604
|
-
e =
|
604
|
+
e = r !== null;
|
605
605
|
break;
|
606
606
|
case Number:
|
607
|
-
e =
|
607
|
+
e = r === null ? null : Number(r);
|
608
608
|
break;
|
609
609
|
case Object:
|
610
610
|
case Array:
|
611
611
|
try {
|
612
|
-
e = JSON.parse(
|
612
|
+
e = JSON.parse(r);
|
613
613
|
} catch {
|
614
614
|
e = null;
|
615
615
|
}
|
616
616
|
}
|
617
617
|
return e;
|
618
|
-
} }, At = (
|
618
|
+
} }, At = (r, t) => !Ue(r, t), Lt = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: At };
|
619
619
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), C.litPropertyMetadata ?? (C.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
620
620
|
let I = class extends HTMLElement {
|
621
621
|
static addInitializer(t) {
|
@@ -626,20 +626,20 @@ let I = class extends HTMLElement {
|
|
626
626
|
}
|
627
627
|
static createProperty(t, e = Lt) {
|
628
628
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
629
|
-
const i = Symbol(),
|
630
|
-
|
629
|
+
const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
|
630
|
+
s !== void 0 && je(this.prototype, t, s);
|
631
631
|
}
|
632
632
|
}
|
633
633
|
static getPropertyDescriptor(t, e, i) {
|
634
|
-
const { get:
|
634
|
+
const { get: s, set: n } = Le(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
|
640
|
+
return s == null ? void 0 : s.call(this);
|
641
641
|
}, set(o) {
|
642
|
-
const a =
|
642
|
+
const a = s == null ? void 0 : s.call(this);
|
643
643
|
n.call(this, o), this.requestUpdate(t, a, i);
|
644
644
|
}, configurable: !0, enumerable: !0 };
|
645
645
|
}
|
@@ -649,28 +649,28 @@ let I = class extends HTMLElement {
|
|
649
649
|
static _$Ei() {
|
650
650
|
if (this.hasOwnProperty(j("elementProperties")))
|
651
651
|
return;
|
652
|
-
const t =
|
652
|
+
const t = De(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
656
|
if (this.hasOwnProperty(j("finalized")))
|
657
657
|
return;
|
658
658
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(j("properties"))) {
|
659
|
-
const e = this.properties, i = [...
|
660
|
-
for (const
|
661
|
-
this.createProperty(
|
659
|
+
const e = this.properties, i = [...He(e), ...Be(e)];
|
660
|
+
for (const s of i)
|
661
|
+
this.createProperty(s, e[s]);
|
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,
|
668
|
-
this.elementProperties.set(i,
|
667
|
+
for (const [i, s] of e)
|
668
|
+
this.elementProperties.set(i, s);
|
669
669
|
}
|
670
670
|
this._$Eh = /* @__PURE__ */ new Map();
|
671
671
|
for (const [e, i] of this.elementProperties) {
|
672
|
-
const
|
673
|
-
|
672
|
+
const s = this._$Eu(e, i);
|
673
|
+
s !== void 0 && this._$Eh.set(s, e);
|
674
674
|
}
|
675
675
|
this.elementStyles = this.finalizeStyles(this.styles);
|
676
676
|
}
|
@@ -678,8 +678,8 @@ let I = 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
|
682
|
-
e.unshift(Ut(
|
681
|
+
for (const s of i)
|
682
|
+
e.unshift(Ut(s));
|
683
683
|
} else
|
684
684
|
t !== void 0 && e.push(Ut(t));
|
685
685
|
return e;
|
@@ -711,7 +711,7 @@ let I = class extends HTMLElement {
|
|
711
711
|
}
|
712
712
|
createRenderRoot() {
|
713
713
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
714
|
-
return
|
714
|
+
return Ne(t, this.constructor.elementStyles), t;
|
715
715
|
}
|
716
716
|
connectedCallback() {
|
717
717
|
var t;
|
@@ -734,18 +734,18 @@ let I = class extends HTMLElement {
|
|
734
734
|
}
|
735
735
|
_$EC(t, e) {
|
736
736
|
var n;
|
737
|
-
const i = this.constructor.elementProperties.get(t),
|
738
|
-
if (
|
737
|
+
const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
|
738
|
+
if (s !== void 0 && i.reflect === !0) {
|
739
739
|
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : G).toAttribute(e, i.type);
|
740
|
-
this._$Em = t, o == null ? this.removeAttribute(
|
740
|
+
this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
|
741
741
|
}
|
742
742
|
}
|
743
743
|
_$AK(t, e) {
|
744
744
|
var n;
|
745
|
-
const i = this.constructor,
|
746
|
-
if (
|
747
|
-
const o = i.getPropertyOptions(
|
748
|
-
this._$Em =
|
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 : G;
|
748
|
+
this._$Em = s, this[s] = a.fromAttribute(e, o.type), this._$Em = null;
|
749
749
|
}
|
750
750
|
}
|
751
751
|
requestUpdate(t, e, i) {
|
@@ -782,20 +782,20 @@ let I = class extends HTMLElement {
|
|
782
782
|
this[n] = o;
|
783
783
|
this._$Ep = void 0;
|
784
784
|
}
|
785
|
-
const
|
786
|
-
if (
|
787
|
-
for (const [n, o] of
|
785
|
+
const s = this.constructor.elementProperties;
|
786
|
+
if (s.size > 0)
|
787
|
+
for (const [n, o] of s)
|
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((
|
793
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((s) => {
|
794
794
|
var n;
|
795
|
-
return (n =
|
795
|
+
return (n = s.hostUpdate) == null ? void 0 : n.call(s);
|
796
796
|
}), this.update(e)) : this._$EU();
|
797
|
-
} catch (
|
798
|
-
throw t = !1, this._$EU(),
|
797
|
+
} catch (s) {
|
798
|
+
throw t = !1, this._$EU(), s;
|
799
799
|
}
|
800
800
|
t && this._$AE(e);
|
801
801
|
}
|
@@ -804,8 +804,8 @@ let I = class extends HTMLElement {
|
|
804
804
|
_$AE(t) {
|
805
805
|
var e;
|
806
806
|
(e = this._$EO) == null || e.forEach((i) => {
|
807
|
-
var
|
808
|
-
return (
|
807
|
+
var s;
|
808
|
+
return (s = i.hostUpdated) == null ? void 0 : s.call(i);
|
809
809
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
810
810
|
}
|
811
811
|
_$EU() {
|
@@ -828,67 +828,67 @@ let I = class extends HTMLElement {
|
|
828
828
|
firstUpdated(t) {
|
829
829
|
}
|
830
830
|
};
|
831
|
-
I.elementStyles = [], I.shadowRootOptions = { mode: "open" }, I[j("elementProperties")] = /* @__PURE__ */ new Map(), I[j("finalized")] = /* @__PURE__ */ new Map(),
|
831
|
+
I.elementStyles = [], I.shadowRootOptions = { mode: "open" }, I[j("elementProperties")] = /* @__PURE__ */ new Map(), I[j("finalized")] = /* @__PURE__ */ new Map(), ot == null || ot({ ReactiveElement: I }), (C.reactiveElementVersions ?? (C.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 L = globalThis, X = L.trustedTypes, Ht = X ? X.createPolicy("lit-html", { createHTML: (
|
838
|
-
\f\r]`, U = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Bt = /-->/g, Dt = />/g, S = RegExp(`>|${
|
839
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), zt = /'/g, Wt = /"/g, le = /^(?:script|style|textarea|title)$/i,
|
840
|
-
function de(
|
841
|
-
if (!xt(
|
837
|
+
const L = globalThis, X = L.trustedTypes, Ht = X ? X.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ce = "$lit$", x = `lit$${Math.random().toFixed(9).slice(2)}$`, he = "?" + x, We = `<${he}>`, O = document, B = () => O.createComment(""), D = (r) => r === null || typeof r != "object" && typeof r != "function", xt = Array.isArray, Fe = (r) => xt(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", at = `[
|
838
|
+
\f\r]`, U = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Bt = /-->/g, Dt = />/g, S = RegExp(`>|${at}(?:([^\\s"'>=/]+)(${at}*=${at}*(?:[^
|
839
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), zt = /'/g, Wt = /"/g, le = /^(?:script|style|textarea|title)$/i, Ve = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), R = Ve(1), T = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), Ft = /* @__PURE__ */ new WeakMap(), P = O.createTreeWalker(O, 129);
|
840
|
+
function de(r, t) {
|
841
|
+
if (!xt(r) || !r.hasOwnProperty("raw"))
|
842
842
|
throw Error("invalid template strings array");
|
843
843
|
return Ht !== void 0 ? Ht.createHTML(t) : t;
|
844
844
|
}
|
845
|
-
const
|
846
|
-
const e =
|
847
|
-
let
|
845
|
+
const Ye = (r, t) => {
|
846
|
+
const e = r.length - 1, i = [];
|
847
|
+
let s, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = U;
|
848
848
|
for (let a = 0; a < e; a++) {
|
849
|
-
const c =
|
850
|
-
let
|
851
|
-
for (; p < c.length && (o.lastIndex = p,
|
852
|
-
p = o.lastIndex, o === U ?
|
853
|
-
const f = o === S &&
|
854
|
-
n += o === U ? c +
|
855
|
-
}
|
856
|
-
return [de(
|
849
|
+
const c = r[a];
|
850
|
+
let h, l, d = -1, p = 0;
|
851
|
+
for (; p < c.length && (o.lastIndex = p, l = o.exec(c), l !== null); )
|
852
|
+
p = o.lastIndex, o === U ? l[1] === "!--" ? o = Bt : l[1] !== void 0 ? o = Dt : l[2] !== void 0 ? (le.test(l[2]) && (s = RegExp("</" + l[2], "g")), o = S) : l[3] !== void 0 && (o = S) : o === S ? l[0] === ">" ? (o = s ?? U, d = -1) : l[1] === void 0 ? d = -2 : (d = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? S : l[3] === '"' ? Wt : zt) : o === Wt || o === zt ? o = S : o === Bt || o === Dt ? o = U : (o = S, s = void 0);
|
853
|
+
const f = o === S && r[a + 1].startsWith("/>") ? " " : "";
|
854
|
+
n += o === U ? c + We : d >= 0 ? (i.push(h), c.slice(0, d) + ce + c.slice(d) + x + f) : c + x + (d === -2 ? a : f);
|
855
|
+
}
|
856
|
+
return [de(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
857
857
|
};
|
858
|
-
let
|
858
|
+
let yt = class pe {
|
859
859
|
constructor({ strings: t, _$litType$: e }, i) {
|
860
|
-
let
|
860
|
+
let s;
|
861
861
|
this.parts = [];
|
862
862
|
let n = 0, o = 0;
|
863
|
-
const a = t.length - 1, c = this.parts, [
|
864
|
-
if (this.el = pe.createElement(
|
863
|
+
const a = t.length - 1, c = this.parts, [h, l] = Ye(t, e);
|
864
|
+
if (this.el = pe.createElement(h, i), P.currentNode = this.el.content, e === 2 || e === 3) {
|
865
865
|
const d = this.el.content.firstChild;
|
866
866
|
d.replaceWith(...d.childNodes);
|
867
867
|
}
|
868
|
-
for (; (
|
869
|
-
if (
|
870
|
-
if (
|
871
|
-
for (const d of
|
868
|
+
for (; (s = P.nextNode()) !== null && c.length < a; ) {
|
869
|
+
if (s.nodeType === 1) {
|
870
|
+
if (s.hasAttributes())
|
871
|
+
for (const d of s.getAttributeNames())
|
872
872
|
if (d.endsWith(ce)) {
|
873
|
-
const p =
|
874
|
-
c.push({ type: 1, index: n, name: g[2], strings: f, ctor: g[1] === "." ?
|
873
|
+
const p = l[o++], f = s.getAttribute(d).split(x), g = /([.?@])?(.*)/.exec(p);
|
874
|
+
c.push({ type: 1, index: n, name: g[2], strings: f, ctor: g[1] === "." ? Ke : g[1] === "?" ? Ze : g[1] === "@" ? Je : et }), s.removeAttribute(d);
|
875
875
|
} else
|
876
|
-
d.startsWith(x) && (c.push({ type: 6, index: n }),
|
877
|
-
if (le.test(
|
878
|
-
const d =
|
876
|
+
d.startsWith(x) && (c.push({ type: 6, index: n }), s.removeAttribute(d));
|
877
|
+
if (le.test(s.tagName)) {
|
878
|
+
const d = s.textContent.split(x), p = d.length - 1;
|
879
879
|
if (p > 0) {
|
880
|
-
|
880
|
+
s.textContent = X ? X.emptyScript : "";
|
881
881
|
for (let f = 0; f < p; f++)
|
882
|
-
|
883
|
-
|
882
|
+
s.append(d[f], B()), P.nextNode(), c.push({ type: 2, index: ++n });
|
883
|
+
s.append(d[p], B());
|
884
884
|
}
|
885
885
|
}
|
886
|
-
} else if (
|
887
|
-
if (
|
886
|
+
} else if (s.nodeType === 8)
|
887
|
+
if (s.data === he)
|
888
888
|
c.push({ type: 2, index: n });
|
889
889
|
else {
|
890
890
|
let d = -1;
|
891
|
-
for (; (d =
|
891
|
+
for (; (d = s.data.indexOf(x, d + 1)) !== -1; )
|
892
892
|
c.push({ type: 7, index: n }), d += x.length - 1;
|
893
893
|
}
|
894
894
|
n++;
|
@@ -899,15 +899,15 @@ let bt = class pe {
|
|
899
899
|
return i.innerHTML = t, i;
|
900
900
|
}
|
901
901
|
};
|
902
|
-
function k(
|
902
|
+
function k(r, t, e = r, i) {
|
903
903
|
var o, a;
|
904
904
|
if (t === T)
|
905
905
|
return t;
|
906
|
-
let
|
906
|
+
let s = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
|
907
907
|
const n = D(t) ? void 0 : t._$litDirective$;
|
908
|
-
return (
|
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 = k(r, s._$AS(r, t.values), s, i)), t;
|
909
909
|
}
|
910
|
-
class
|
910
|
+
class qe {
|
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 Ye {
|
|
918
918
|
return this._$AM._$AU;
|
919
919
|
}
|
920
920
|
u(t) {
|
921
|
-
const { el: { content: e }, parts: i } = this._$AD,
|
922
|
-
P.currentNode =
|
921
|
+
const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? O).importNode(e, !0);
|
922
|
+
P.currentNode = s;
|
923
923
|
let n = P.nextNode(), o = 0, a = 0, c = i[0];
|
924
924
|
for (; c !== void 0; ) {
|
925
925
|
if (o === c.index) {
|
926
|
-
let
|
927
|
-
c.type === 2 ?
|
926
|
+
let h;
|
927
|
+
c.type === 2 ? h = new W(n, n.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (h = new Ge(n, this, t)), this._$AV.push(h), c = i[++a];
|
928
928
|
}
|
929
929
|
o !== (c == null ? void 0 : c.index) && (n = P.nextNode(), o++);
|
930
930
|
}
|
931
|
-
return P.currentNode = O,
|
931
|
+
return P.currentNode = O, s;
|
932
932
|
}
|
933
933
|
p(t) {
|
934
934
|
let e = 0;
|
@@ -941,8 +941,8 @@ class W {
|
|
941
941
|
var t;
|
942
942
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
943
943
|
}
|
944
|
-
constructor(t, e, i,
|
945
|
-
this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options =
|
944
|
+
constructor(t, e, i, s) {
|
945
|
+
this.type = 2, this._$AH = u, 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;
|
946
946
|
}
|
947
947
|
get parentNode() {
|
948
948
|
let t = this._$AA.parentNode;
|
@@ -956,7 +956,7 @@ class W {
|
|
956
956
|
return this._$AB;
|
957
957
|
}
|
958
958
|
_$AI(t, e = this) {
|
959
|
-
t = k(this, t, e), D(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== T && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) :
|
959
|
+
t = k(this, t, e), D(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== T && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Fe(t) ? this.k(t) : this._(t);
|
960
960
|
}
|
961
961
|
O(t) {
|
962
962
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -969,31 +969,31 @@ class W {
|
|
969
969
|
}
|
970
970
|
$(t) {
|
971
971
|
var n;
|
972
|
-
const { values: e, _$litType$: i } = t,
|
973
|
-
if (((n = this._$AH) == null ? void 0 : n._$AD) ===
|
972
|
+
const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = yt.createElement(de(i.h, i.h[0]), this.options)), i);
|
973
|
+
if (((n = this._$AH) == null ? void 0 : n._$AD) === s)
|
974
974
|
this._$AH.p(e);
|
975
975
|
else {
|
976
|
-
const o = new
|
976
|
+
const o = new qe(s, this), a = o.u(this.options);
|
977
977
|
o.p(e), this.T(a), this._$AH = o;
|
978
978
|
}
|
979
979
|
}
|
980
980
|
_$AC(t) {
|
981
981
|
let e = Ft.get(t.strings);
|
982
|
-
return e === void 0 && Ft.set(t.strings, e = new
|
982
|
+
return e === void 0 && Ft.set(t.strings, e = new yt(t)), e;
|
983
983
|
}
|
984
984
|
k(t) {
|
985
985
|
xt(this._$AH) || (this._$AH = [], this._$AR());
|
986
986
|
const e = this._$AH;
|
987
|
-
let i,
|
987
|
+
let i, s = 0;
|
988
988
|
for (const n of t)
|
989
|
-
|
990
|
-
|
989
|
+
s === e.length ? e.push(i = new W(this.O(B()), this.O(B()), this, this.options)) : i = e[s], i._$AI(n), s++;
|
990
|
+
s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
|
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
|
996
|
-
t.remove(), t =
|
995
|
+
const s = t.nextSibling;
|
996
|
+
t.remove(), t = s;
|
997
997
|
}
|
998
998
|
}
|
999
999
|
setConnected(t) {
|
@@ -1001,34 +1001,34 @@ class W {
|
|
1001
1001
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
1002
1002
|
}
|
1003
1003
|
}
|
1004
|
-
class
|
1004
|
+
class et {
|
1005
1005
|
get tagName() {
|
1006
1006
|
return this.element.tagName;
|
1007
1007
|
}
|
1008
1008
|
get _$AU() {
|
1009
1009
|
return this._$AM._$AU;
|
1010
1010
|
}
|
1011
|
-
constructor(t, e, i,
|
1012
|
-
this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM =
|
1011
|
+
constructor(t, e, i, s, n) {
|
1012
|
+
this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = u;
|
1013
1013
|
}
|
1014
|
-
_$AI(t, e = this, i,
|
1014
|
+
_$AI(t, e = this, i, s) {
|
1015
1015
|
const n = this.strings;
|
1016
1016
|
let o = !1;
|
1017
1017
|
if (n === void 0)
|
1018
1018
|
t = k(this, t, e, 0), o = !D(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
|
1019
1019
|
else {
|
1020
1020
|
const a = t;
|
1021
|
-
let c,
|
1021
|
+
let c, h;
|
1022
1022
|
for (t = n[0], c = 0; c < n.length - 1; c++)
|
1023
|
-
|
1023
|
+
h = k(this, a[i + c], e, c), h === T && (h = this._$AH[c]), o || (o = !D(h) || h !== this._$AH[c]), h === u ? t = u : t !== u && (t += (h ?? "") + n[c + 1]), this._$AH[c] = h;
|
1024
1024
|
}
|
1025
|
-
o && !
|
1025
|
+
o && !s && this.j(t);
|
1026
1026
|
}
|
1027
1027
|
j(t) {
|
1028
1028
|
t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
1029
1029
|
}
|
1030
1030
|
}
|
1031
|
-
class
|
1031
|
+
class Ke extends et {
|
1032
1032
|
constructor() {
|
1033
1033
|
super(...arguments), this.type = 3;
|
1034
1034
|
}
|
@@ -1036,7 +1036,7 @@ class qe extends it {
|
|
1036
1036
|
this.element[this.name] = t === u ? void 0 : t;
|
1037
1037
|
}
|
1038
1038
|
}
|
1039
|
-
class
|
1039
|
+
class Ze extends et {
|
1040
1040
|
constructor() {
|
1041
1041
|
super(...arguments), this.type = 4;
|
1042
1042
|
}
|
@@ -1044,22 +1044,22 @@ class Ke extends it {
|
|
1044
1044
|
this.element.toggleAttribute(this.name, !!t && t !== u);
|
1045
1045
|
}
|
1046
1046
|
}
|
1047
|
-
class
|
1048
|
-
constructor(t, e, i,
|
1049
|
-
super(t, e, i,
|
1047
|
+
class Je extends et {
|
1048
|
+
constructor(t, e, i, s, n) {
|
1049
|
+
super(t, e, i, s, n), this.type = 5;
|
1050
1050
|
}
|
1051
1051
|
_$AI(t, e = this) {
|
1052
1052
|
if ((t = k(this, t, e, 0) ?? u) === T)
|
1053
1053
|
return;
|
1054
|
-
const i = this._$AH,
|
1055
|
-
|
1054
|
+
const i = this._$AH, s = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== u && (i === u || s);
|
1055
|
+
s && 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;
|
1059
1059
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
1060
1060
|
}
|
1061
1061
|
}
|
1062
|
-
class
|
1062
|
+
class Ge {
|
1063
1063
|
constructor(t, e, i) {
|
1064
1064
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
1065
1065
|
}
|
@@ -1070,16 +1070,16 @@ class Je {
|
|
1070
1070
|
k(this, t);
|
1071
1071
|
}
|
1072
1072
|
}
|
1073
|
-
const
|
1074
|
-
|
1075
|
-
const
|
1073
|
+
const ct = L.litHtmlPolyfillSupport;
|
1074
|
+
ct == null || ct(yt, W), (L.litHtmlVersions ?? (L.litHtmlVersions = [])).push("3.2.1");
|
1075
|
+
const Xe = (r, t, e) => {
|
1076
1076
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
1077
|
-
let
|
1078
|
-
if (
|
1077
|
+
let s = i._$litPart$;
|
1078
|
+
if (s === void 0) {
|
1079
1079
|
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
1080
|
-
i._$litPart$ =
|
1080
|
+
i._$litPart$ = s = new W(t.insertBefore(B(), n), n, void 0, e ?? {});
|
1081
1081
|
}
|
1082
|
-
return
|
1082
|
+
return s._$AI(r), s;
|
1083
1083
|
};
|
1084
1084
|
/**
|
1085
1085
|
* @license
|
@@ -1097,7 +1097,7 @@ let _ = class extends I {
|
|
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 =
|
1100
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Xe(e, this.renderRoot, this.renderOptions);
|
1101
1101
|
}
|
1102
1102
|
connectedCallback() {
|
1103
1103
|
var t;
|
@@ -1113,55 +1113,55 @@ let _ = class extends I {
|
|
1113
1113
|
};
|
1114
1114
|
var Qt;
|
1115
1115
|
_._$litElement$ = !0, _.finalized = !0, (Qt = globalThis.litElementHydrateSupport) == null || Qt.call(globalThis, { LitElement: _ });
|
1116
|
-
const
|
1117
|
-
|
1116
|
+
const ht = globalThis.litElementPolyfillSupport;
|
1117
|
+
ht == null || ht({ LitElement: _ });
|
1118
1118
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
1119
1119
|
/**
|
1120
1120
|
* @license
|
1121
1121
|
* Copyright 2017 Google LLC
|
1122
1122
|
* SPDX-License-Identifier: BSD-3-Clause
|
1123
1123
|
*/
|
1124
|
-
const
|
1125
|
-
const { kind: i, metadata:
|
1126
|
-
let n = globalThis.litPropertyMetadata.get(
|
1127
|
-
if (n === void 0 && globalThis.litPropertyMetadata.set(
|
1124
|
+
const Qe = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: At }, ti = (r = Qe, 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") {
|
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,
|
1131
|
+
t.set.call(this, a), this.requestUpdate(o, c, r);
|
1132
1132
|
}, init(a) {
|
1133
|
-
return a !== void 0 && this.P(o, void 0,
|
1133
|
+
return a !== void 0 && this.P(o, void 0, r), 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,
|
1140
|
+
t.call(this, a), this.requestUpdate(o, c, r);
|
1141
1141
|
};
|
1142
1142
|
}
|
1143
1143
|
throw Error("Unsupported decorator location: " + i);
|
1144
1144
|
};
|
1145
|
-
function m(
|
1146
|
-
return (t, e) => typeof e == "object" ?
|
1147
|
-
const o =
|
1148
|
-
return
|
1149
|
-
})(
|
1145
|
+
function m(r) {
|
1146
|
+
return (t, e) => typeof e == "object" ? ti(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);
|
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 N(
|
1157
|
-
return m({ ...
|
1156
|
+
function N(r) {
|
1157
|
+
return m({ ...r, state: !0, attribute: !1 });
|
1158
1158
|
}
|
1159
|
-
var
|
1160
|
-
for (var
|
1161
|
-
(o =
|
1162
|
-
return i &&
|
1159
|
+
var ei = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, si = (r, t, e, i) => {
|
1160
|
+
for (var s = i > 1 ? void 0 : i ? ii(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 && ei(t, e, s), s;
|
1163
1163
|
};
|
1164
|
-
class
|
1164
|
+
class it extends _ {
|
1165
1165
|
constructor() {
|
1166
1166
|
super(...arguments), this.anchor = "BottomRight";
|
1167
1167
|
}
|
@@ -1173,7 +1173,7 @@ class st extends _ {
|
|
1173
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 = [
|
1177
1177
|
M`
|
1178
1178
|
:host {
|
1179
1179
|
position: fixed;
|
@@ -1192,15 +1192,15 @@ st.styles = [
|
|
1192
1192
|
}
|
1193
1193
|
`
|
1194
1194
|
];
|
1195
|
-
|
1195
|
+
si([
|
1196
1196
|
m({ attribute: !0 })
|
1197
|
-
],
|
1197
|
+
], it.prototype, "anchor", 2);
|
1198
1198
|
/**
|
1199
1199
|
* @license
|
1200
1200
|
* Copyright 2017 Google LLC
|
1201
1201
|
* SPDX-License-Identifier: BSD-3-Clause
|
1202
1202
|
*/
|
1203
|
-
const Ct = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, St = (
|
1203
|
+
const Ct = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, St = (r) => (...t) => ({ _$litDirective$: r, values: t });
|
1204
1204
|
let ue = class {
|
1205
1205
|
constructor(t) {
|
1206
1206
|
}
|
@@ -1222,43 +1222,43 @@ let ue = class {
|
|
1222
1222
|
* Copyright 2020 Google LLC
|
1223
1223
|
* SPDX-License-Identifier: BSD-3-Clause
|
1224
1224
|
*/
|
1225
|
-
const
|
1225
|
+
const ri = (r) => r.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 H = (
|
1231
|
+
const H = (r, t) => {
|
1232
1232
|
var i;
|
1233
|
-
const e =
|
1233
|
+
const e = r._$AN;
|
1234
1234
|
if (e === void 0)
|
1235
1235
|
return !1;
|
1236
|
-
for (const
|
1237
|
-
(i =
|
1236
|
+
for (const s of e)
|
1237
|
+
(i = s._$AO) == null || i.call(s, t, !1), H(s, t);
|
1238
1238
|
return !0;
|
1239
|
-
}, Q = (
|
1239
|
+
}, Q = (r) => {
|
1240
1240
|
let t, e;
|
1241
1241
|
do {
|
1242
|
-
if ((t =
|
1242
|
+
if ((t = r._$AM) === void 0)
|
1243
1243
|
break;
|
1244
|
-
e = t._$AN, e.delete(
|
1244
|
+
e = t._$AN, e.delete(r), r = t;
|
1245
1245
|
} while ((e == null ? void 0 : e.size) === 0);
|
1246
|
-
}, fe = (
|
1247
|
-
for (let t; t =
|
1246
|
+
}, fe = (r) => {
|
1247
|
+
for (let t; t = r._$AM; r = 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(
|
1251
|
+
else if (e.has(r))
|
1252
1252
|
break;
|
1253
|
-
e.add(
|
1253
|
+
e.add(r), ai(t);
|
1254
1254
|
}
|
1255
1255
|
};
|
1256
|
-
function
|
1257
|
-
this._$AN !== void 0 ? (Q(this), this._$AM =
|
1256
|
+
function ni(r) {
|
1257
|
+
this._$AN !== void 0 ? (Q(this), this._$AM = r, fe(this)) : this._$AM = r;
|
1258
1258
|
}
|
1259
|
-
function
|
1260
|
-
const i = this._$AH,
|
1261
|
-
if (
|
1259
|
+
function oi(r, t = !1, e = 0) {
|
1260
|
+
const i = this._$AH, s = this._$AN;
|
1261
|
+
if (s !== void 0 && s.size !== 0)
|
1262
1262
|
if (t)
|
1263
1263
|
if (Array.isArray(i))
|
1264
1264
|
for (let n = e; n < i.length; n++)
|
@@ -1266,10 +1266,10 @@ function ni(s, t = !1, e = 0) {
|
|
1266
1266
|
else
|
1267
1267
|
i != null && (H(i, !1), Q(i));
|
1268
1268
|
else
|
1269
|
-
H(this,
|
1269
|
+
H(this, r);
|
1270
1270
|
}
|
1271
|
-
const
|
1272
|
-
|
1271
|
+
const ai = (r) => {
|
1272
|
+
r.type == Ct.CHILD && (r._$AP ?? (r._$AP = oi), r._$AQ ?? (r._$AQ = ni));
|
1273
1273
|
};
|
1274
1274
|
class ge extends ue {
|
1275
1275
|
constructor() {
|
@@ -1279,11 +1279,11 @@ class ge extends ue {
|
|
1279
1279
|
super._$AT(t, e, i), fe(this), this.isConnected = t._$AU;
|
1280
1280
|
}
|
1281
1281
|
_$AO(t, e = !0) {
|
1282
|
-
var i,
|
1283
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (
|
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 && (H(this, t), Q(this));
|
1284
1284
|
}
|
1285
1285
|
setValue(t) {
|
1286
|
-
if (
|
1286
|
+
if (ri(this._$Ct))
|
1287
1287
|
this._$Ct._$AI(t, this);
|
1288
1288
|
else {
|
1289
1289
|
const e = [...this._$Ct._$AH];
|
@@ -1295,32 +1295,32 @@ class ge extends ue {
|
|
1295
1295
|
reconnected() {
|
1296
1296
|
}
|
1297
1297
|
}
|
1298
|
-
const
|
1298
|
+
const ci = /* @__PURE__ */ new WeakMap();
|
1299
1299
|
let Vt = 0;
|
1300
|
-
const
|
1301
|
-
const e =
|
1300
|
+
const lt = /* @__PURE__ */ new Map(), Yt = /* @__PURE__ */ new WeakSet(), qt = () => new Promise((r) => requestAnimationFrame(r)), hi = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Kt = (r, t) => {
|
1301
|
+
const e = r - t;
|
1302
1302
|
return e === 0 ? void 0 : e;
|
1303
|
-
}, Zt = (
|
1304
|
-
const e =
|
1303
|
+
}, Zt = (r, t) => {
|
1304
|
+
const e = r / t;
|
1305
1305
|
return e === 1 ? void 0 : e;
|
1306
|
-
},
|
1307
|
-
const e = Kt(
|
1306
|
+
}, dt = { left: (r, t) => {
|
1307
|
+
const e = Kt(r, t);
|
1308
1308
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
1309
|
-
}, top: (
|
1310
|
-
const e = Kt(
|
1309
|
+
}, top: (r, t) => {
|
1310
|
+
const e = Kt(r, t);
|
1311
1311
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
1312
|
-
}, width: (
|
1312
|
+
}, width: (r, t) => {
|
1313
1313
|
let e;
|
1314
1314
|
t === 0 && (t = 1, e = { width: "1px" });
|
1315
|
-
const i = Zt(
|
1315
|
+
const i = Zt(r, t);
|
1316
1316
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
1317
|
-
}, height: (
|
1317
|
+
}, height: (r, t) => {
|
1318
1318
|
let e;
|
1319
1319
|
t === 0 && (t = 1, e = { height: "1px" });
|
1320
|
-
const i = Zt(
|
1320
|
+
const i = Zt(r, t);
|
1321
1321
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1322
|
-
} },
|
1323
|
-
class
|
1322
|
+
} }, li = { duration: 333, easing: "ease-in-out" }, di = ["left", "top", "width", "height", "opacity", "color", "background"], Jt = /* @__PURE__ */ new WeakMap();
|
1323
|
+
class pi extends ge {
|
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 === Ct.CHILD)
|
1326
1326
|
throw Error("The `animate` directive must be used in attribute position.");
|
@@ -1340,36 +1340,36 @@ class di extends ge {
|
|
1340
1340
|
return u;
|
1341
1341
|
}
|
1342
1342
|
getController() {
|
1343
|
-
return
|
1343
|
+
return ci.get(this.u);
|
1344
1344
|
}
|
1345
1345
|
isDisabled() {
|
1346
1346
|
var t;
|
1347
1347
|
return this.options.disabled || ((t = this.getController()) == null ? void 0 : t.disabled);
|
1348
1348
|
}
|
1349
1349
|
update(t, [e]) {
|
1350
|
-
var
|
1350
|
+
var s;
|
1351
1351
|
const i = this.u === void 0;
|
1352
|
-
return i && (this.u = (
|
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, Jt.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 =
|
1357
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = di), 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((
|
1362
|
-
const n = e[
|
1363
|
-
t[
|
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;
|
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,
|
1368
|
+
return this.options.guard && (t = this.options.guard(), e = ((i, s) => {
|
1369
1369
|
if (Array.isArray(i)) {
|
1370
|
-
if (Array.isArray(
|
1370
|
+
if (Array.isArray(s) && s.length === i.length && i.every((n, o) => n === s[o]))
|
1371
1371
|
return !1;
|
1372
|
-
} else if (
|
1372
|
+
} else if (s === 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 di extends ge {
|
|
1382
1382
|
return;
|
1383
1383
|
let t;
|
1384
1384
|
this.prepare(), await qt;
|
1385
|
-
const e = this.O(), i = this.j(this.options.keyframeOptions, e),
|
1385
|
+
const e = this.O(), i = this.j(this.options.keyframeOptions, e), s = this.m();
|
1386
1386
|
if (this.A !== void 0) {
|
1387
|
-
const { from: n, to: o } = this.N(this.A,
|
1388
|
-
this.log("measured", [this.A,
|
1387
|
+
const { from: n, to: o } = this.N(this.A, s, e);
|
1388
|
+
this.log("measured", [this.A, s, n, o]), t = this.calculateKeyframes(n, o);
|
1389
1389
|
} else {
|
1390
|
-
const n =
|
1390
|
+
const n = lt.get(this.options.inId);
|
1391
1391
|
if (n) {
|
1392
|
-
|
1393
|
-
const { from: o, to: a } = this.N(n,
|
1392
|
+
lt.delete(this.options.inId);
|
1393
|
+
const { from: o, to: a } = this.N(n, s, e);
|
1394
1394
|
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Vt++, t.forEach((c) => c.zIndex = Vt);
|
1395
1395
|
} else
|
1396
1396
|
this.options.in && (t = [...this.options.in, {}]);
|
@@ -1408,14 +1408,14 @@ class di extends ge {
|
|
1408
1408
|
}
|
1409
1409
|
async disconnected() {
|
1410
1410
|
var e;
|
1411
|
-
if (!this.h || (this.options.id !== void 0 &&
|
1411
|
+
if (!this.h || (this.options.id !== void 0 && lt.set(this.options.id, this.A), this.options.out === void 0))
|
1412
1412
|
return;
|
1413
1413
|
if (this.prepare(), await qt(), (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
|
1416
|
+
const s = this.m();
|
1417
1417
|
this.log("stabilizing out");
|
1418
|
-
const n = this.A.left -
|
1418
|
+
const n = this.A.left - s.left, o = this.A.top - s.top;
|
1419
1419
|
getComputedStyle(this.element).position !== "static" || n === 0 && o === 0 || (this.element.style.position = "relative"), n !== 0 && (this.element.style.left = n + "px"), o !== 0 && (this.element.style.top = o + "px");
|
1420
1420
|
}
|
1421
1421
|
}
|
@@ -1448,46 +1448,46 @@ class di extends ge {
|
|
1448
1448
|
}), t;
|
1449
1449
|
}
|
1450
1450
|
j(t, e = this.O()) {
|
1451
|
-
const i = { ...
|
1452
|
-
return e.forEach((
|
1451
|
+
const i = { ...li };
|
1452
|
+
return e.forEach((s) => Object.assign(i, s.options.keyframeOptions)), Object.assign(i, t), i;
|
1453
1453
|
}
|
1454
1454
|
N(t, e, i) {
|
1455
1455
|
t = { ...t }, e = { ...e };
|
1456
|
-
const
|
1456
|
+
const s = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
1457
1457
|
let n = 1, o = 1;
|
1458
|
-
return
|
1458
|
+
return s.length > 0 && (s.forEach((a) => {
|
1459
1459
|
a.width && (n /= a.width), a.height && (o /= a.height);
|
1460
1460
|
}), t.left !== void 0 && e.left !== void 0 && (t.left = n * t.left, e.left = n * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = o * t.top, e.top = o * e.top)), { from: t, to: e };
|
1461
1461
|
}
|
1462
1462
|
calculateKeyframes(t, e, i = !1) {
|
1463
|
-
const
|
1463
|
+
const s = {}, n = {};
|
1464
1464
|
let o = !1;
|
1465
1465
|
const a = {};
|
1466
1466
|
for (const c in e) {
|
1467
|
-
const
|
1468
|
-
if (c in
|
1469
|
-
const d =
|
1470
|
-
if (
|
1467
|
+
const h = t[c], l = e[c];
|
1468
|
+
if (c in dt) {
|
1469
|
+
const d = dt[c];
|
1470
|
+
if (h === void 0 || l === void 0)
|
1471
1471
|
continue;
|
1472
|
-
const p = d(
|
1473
|
-
p.transform !== void 0 && (a[c] = p.value, o = !0,
|
1472
|
+
const p = d(h, l);
|
1473
|
+
p.transform !== void 0 && (a[c] = p.value, o = !0, s.transform = `${s.transform ?? ""} ${p.transform}`, p.overrideFrom !== void 0 && Object.assign(s, p.overrideFrom));
|
1474
1474
|
} else
|
1475
|
-
|
1475
|
+
h !== l && h !== void 0 && l !== void 0 && (o = !0, s[c] = h, n[c] = l);
|
1476
1476
|
}
|
1477
|
-
return
|
1477
|
+
return s.transformOrigin = n.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [s, 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
|
1485
|
-
|
1484
|
+
const s = this.getController();
|
1485
|
+
s == null || s.add(this);
|
1486
1486
|
try {
|
1487
1487
|
await this.webAnimation.finished;
|
1488
1488
|
} catch {
|
1489
1489
|
}
|
1490
|
-
|
1490
|
+
s == null || s.remove(this);
|
1491
1491
|
}
|
1492
1492
|
return this.didFinish(i), i;
|
1493
1493
|
}
|
@@ -1499,100 +1499,100 @@ class di extends ge {
|
|
1499
1499
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
1500
1500
|
}
|
1501
1501
|
}
|
1502
|
-
const
|
1502
|
+
const ui = St(pi), fi = { 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
1508
|
const Gt = St(class extends ue {
|
1509
|
-
constructor(
|
1509
|
+
constructor(r) {
|
1510
1510
|
var t;
|
1511
|
-
if (super(
|
1511
|
+
if (super(r), r.type !== Ct.ATTRIBUTE || r.name !== "class" || ((t = r.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(
|
1515
|
-
return " " + Object.keys(
|
1514
|
+
render(r) {
|
1515
|
+
return " " + Object.keys(r).filter((t) => r[t]).join(" ") + " ";
|
1516
1516
|
}
|
1517
|
-
update(
|
1518
|
-
var i,
|
1517
|
+
update(r, [t]) {
|
1518
|
+
var i, s;
|
1519
1519
|
if (this.st === void 0) {
|
1520
|
-
this.st = /* @__PURE__ */ new Set(),
|
1520
|
+
this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((n) => n !== "")));
|
1521
1521
|
for (const n in t)
|
1522
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 =
|
1525
|
+
const e = r.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) || (
|
1530
|
+
o === this.st.has(n) || (s = this.nt) != null && s.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
|
1531
1531
|
}
|
1532
1532
|
return T;
|
1533
1533
|
}
|
1534
|
-
}), b = (
|
1535
|
-
|
1536
|
-
}, me = (
|
1537
|
-
var e, i,
|
1538
|
-
b((e =
|
1539
|
-
(i =
|
1534
|
+
}), b = (r, t, e) => {
|
1535
|
+
r && e.style.setProperty(t, r);
|
1536
|
+
}, me = (r, t) => {
|
1537
|
+
var e, i, s, n, o, a, c, h, l;
|
1538
|
+
b((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), b(
|
1539
|
+
(i = r.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
1540
1540
|
"--text-on-primary-background",
|
1541
1541
|
t
|
1542
1542
|
), b(
|
1543
|
-
(
|
1543
|
+
(s = r.colors) == null ? void 0 : s.secondaryBackground,
|
1544
1544
|
"--secondary-background",
|
1545
1545
|
t
|
1546
1546
|
), b(
|
1547
|
-
(n =
|
1547
|
+
(n = r.colors) == null ? void 0 : n.textOnSecondaryBackground,
|
1548
1548
|
"--text-on-secondary-background",
|
1549
1549
|
t
|
1550
1550
|
), b(
|
1551
|
-
(o =
|
1551
|
+
(o = r.colors) == null ? void 0 : o.interactiveDestructiveBackground,
|
1552
1552
|
"--destructive-color",
|
1553
1553
|
t
|
1554
1554
|
), b(
|
1555
|
-
(a =
|
1555
|
+
(a = r.colors) == null ? void 0 : a.interactiveTextOnDestructiveBackground,
|
1556
1556
|
"--text-on-destructive-color",
|
1557
1557
|
t
|
1558
1558
|
), b(
|
1559
|
-
(c =
|
1559
|
+
(c = r.colors) == null ? void 0 : c.interactivePrimaryBackground,
|
1560
1560
|
"--interactive-primary-background",
|
1561
1561
|
t
|
1562
1562
|
), b(
|
1563
|
-
(
|
1563
|
+
(h = r.colors) == null ? void 0 : h.interactiveTextOnPrimaryBackground,
|
1564
1564
|
"--interactive-text-on-primary-background",
|
1565
1565
|
t
|
1566
|
-
), b((
|
1566
|
+
), b((l = r.colors) == null ? void 0 : l.focusColor, "--focus-color", t);
|
1567
1567
|
};
|
1568
1568
|
/**
|
1569
1569
|
* @license
|
1570
1570
|
* Copyright 2020 Google LLC
|
1571
1571
|
* SPDX-License-Identifier: BSD-3-Clause
|
1572
1572
|
*/
|
1573
|
-
const ve = () => new
|
1574
|
-
class
|
1573
|
+
const ve = () => new gi();
|
1574
|
+
class gi {
|
1575
1575
|
}
|
1576
|
-
const
|
1577
|
-
render(
|
1576
|
+
const pt = /* @__PURE__ */ new WeakMap(), ye = St(class extends ge {
|
1577
|
+
render(r) {
|
1578
1578
|
return u;
|
1579
1579
|
}
|
1580
|
-
update(
|
1580
|
+
update(r, [t]) {
|
1581
1581
|
var i;
|
1582
1582
|
const e = t !== this.Y;
|
1583
|
-
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i =
|
1583
|
+
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)), u;
|
1584
1584
|
}
|
1585
|
-
rt(
|
1586
|
-
if (this.isConnected || (
|
1585
|
+
rt(r) {
|
1586
|
+
if (this.isConnected || (r = void 0), typeof this.Y == "function") {
|
1587
1587
|
const t = this.ht ?? globalThis;
|
1588
|
-
let e =
|
1589
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
1588
|
+
let e = pt.get(t);
|
1589
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), pt.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);
|
1590
1590
|
} else
|
1591
|
-
this.Y.value =
|
1591
|
+
this.Y.value = r;
|
1592
1592
|
}
|
1593
1593
|
get lt() {
|
1594
|
-
var
|
1595
|
-
return typeof this.Y == "function" ? (
|
1594
|
+
var r, t;
|
1595
|
+
return typeof this.Y == "function" ? (r = pt.get(this.ht ?? globalThis)) == null ? void 0 : r.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
|
1596
1596
|
}
|
1597
1597
|
disconnected() {
|
1598
1598
|
this.lt === this.ct && this.rt(void 0);
|
@@ -1601,10 +1601,10 @@ const ut = /* @__PURE__ */ new WeakMap(), ye = St(class extends ge {
|
|
1601
1601
|
this.rt(this.ct);
|
1602
1602
|
}
|
1603
1603
|
});
|
1604
|
-
var
|
1605
|
-
for (var
|
1606
|
-
(o =
|
1607
|
-
return i &&
|
1604
|
+
var mi = Object.defineProperty, vi = Object.getOwnPropertyDescriptor, F = (r, t, e, i) => {
|
1605
|
+
for (var s = i > 1 ? void 0 : i ? vi(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
1606
|
+
(o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
1607
|
+
return i && s && mi(t, e, s), s;
|
1608
1608
|
};
|
1609
1609
|
class A extends _ {
|
1610
1610
|
constructor() {
|
@@ -1646,20 +1646,20 @@ class A extends _ {
|
|
1646
1646
|
(t = this.application) != null && t.settings && me(this.application.settings.branding, this);
|
1647
1647
|
}
|
1648
1648
|
async _renderSymbol() {
|
1649
|
-
var a, c,
|
1649
|
+
var a, c, h;
|
1650
1650
|
const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
|
1651
1651
|
if (e)
|
1652
1652
|
return R` <img src=${e} class="trigger-icon" alt="" /> `;
|
1653
|
-
const i = (
|
1653
|
+
const i = (h = this.application) == null ? void 0 : h.triggerIcon;
|
1654
1654
|
if (!i)
|
1655
1655
|
return u;
|
1656
|
-
const
|
1656
|
+
const s = async (l) => fi, { type: n, content: o } = i;
|
1657
1657
|
switch (n) {
|
1658
1658
|
case "Telia": {
|
1659
|
-
const
|
1660
|
-
return
|
1659
|
+
const l = await s();
|
1660
|
+
return l ? R`<telia-icon
|
1661
1661
|
class="trigger-icon"
|
1662
|
-
svg=${
|
1662
|
+
svg=${l.svg}
|
1663
1663
|
size="lg"
|
1664
1664
|
></telia-icon>` : u;
|
1665
1665
|
}
|
@@ -1674,7 +1674,7 @@ class A extends _ {
|
|
1674
1674
|
this.triggerVisible = !0;
|
1675
1675
|
}
|
1676
1676
|
render() {
|
1677
|
-
var t, e, i,
|
1677
|
+
var t, e, i, s;
|
1678
1678
|
return R`<div
|
1679
1679
|
class=${Gt({
|
1680
1680
|
"trigger-container": !0,
|
@@ -1682,14 +1682,14 @@ class A extends _ {
|
|
1682
1682
|
})}
|
1683
1683
|
${ye(this.containerRef)}
|
1684
1684
|
>
|
1685
|
-
${!this.active && ((
|
1685
|
+
${!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) ? R`
|
1686
1686
|
<button
|
1687
1687
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
1688
1688
|
class="trigger-label"
|
1689
1689
|
@click=${this.toggleActive}
|
1690
|
-
${
|
1690
|
+
${ui({
|
1691
1691
|
keyframeOptions: {},
|
1692
|
-
in:
|
1692
|
+
in: hi,
|
1693
1693
|
stabilizeOut: !0,
|
1694
1694
|
skipInitial: !1
|
1695
1695
|
})}
|
@@ -1886,13 +1886,13 @@ F([
|
|
1886
1886
|
F([
|
1887
1887
|
N()
|
1888
1888
|
], A.prototype, "icon", 2);
|
1889
|
-
var
|
1890
|
-
for (var
|
1891
|
-
(o =
|
1892
|
-
return i &&
|
1889
|
+
var yi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, E = (r, t, e, i) => {
|
1890
|
+
for (var s = i > 1 ? void 0 : i ? bi(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
1891
|
+
(o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
1892
|
+
return i && s && yi(t, e, s), s;
|
1893
1893
|
};
|
1894
|
-
const
|
1895
|
-
class t extends
|
1894
|
+
const wi = (r) => {
|
1895
|
+
class t extends r {
|
1896
1896
|
constructor() {
|
1897
1897
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
1898
1898
|
}
|
@@ -1946,7 +1946,7 @@ const bi = (s) => {
|
|
1946
1946
|
m({ attribute: !1 })
|
1947
1947
|
], t.prototype, "parent", 2), t;
|
1948
1948
|
};
|
1949
|
-
class Et extends
|
1949
|
+
class Et extends wi(_) {
|
1950
1950
|
render() {
|
1951
1951
|
return R`Non resolved component`;
|
1952
1952
|
}
|
@@ -1963,20 +1963,20 @@ Et.styles = [
|
|
1963
1963
|
* Copyright 2021 Google LLC
|
1964
1964
|
* SPDX-License-Identifier: BSD-3-Clause
|
1965
1965
|
*/
|
1966
|
-
function*
|
1967
|
-
if (
|
1966
|
+
function* $i(r, t) {
|
1967
|
+
if (r !== void 0) {
|
1968
1968
|
let e = 0;
|
1969
|
-
for (const i of
|
1969
|
+
for (const i of r)
|
1970
1970
|
yield t(i, e++);
|
1971
1971
|
}
|
1972
1972
|
}
|
1973
|
-
var w = /* @__PURE__ */ ((
|
1973
|
+
var w = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(w || {});
|
1974
1974
|
/**
|
1975
1975
|
* @license
|
1976
1976
|
* Copyright 2021 Google LLC
|
1977
1977
|
* SPDX-License-Identifier: BSD-3-Clause
|
1978
1978
|
*/
|
1979
|
-
let
|
1979
|
+
let _i = class extends Event {
|
1980
1980
|
constructor(t, e, i) {
|
1981
1981
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = i ?? !1;
|
1982
1982
|
}
|
@@ -1991,7 +1991,7 @@ let $i = class extends Event {
|
|
1991
1991
|
* Copyright 2021 Google LLC
|
1992
1992
|
* SPDX-License-Identifier: BSD-3-Clause
|
1993
1993
|
*/
|
1994
|
-
class
|
1994
|
+
class Ai {
|
1995
1995
|
get value() {
|
1996
1996
|
return this.o;
|
1997
1997
|
}
|
@@ -2014,8 +2014,8 @@ class _i {
|
|
2014
2014
|
this.subscriptions.has(t) || this.subscriptions.set(t, { disposer: () => {
|
2015
2015
|
this.subscriptions.delete(t);
|
2016
2016
|
}, consumerHost: e });
|
2017
|
-
const { disposer:
|
2018
|
-
t(this.value,
|
2017
|
+
const { disposer: s } = this.subscriptions.get(t);
|
2018
|
+
t(this.value, s);
|
2019
2019
|
}
|
2020
2020
|
clearCallbacks() {
|
2021
2021
|
this.subscriptions.clear();
|
@@ -2026,14 +2026,14 @@ class _i {
|
|
2026
2026
|
* Copyright 2021 Google LLC
|
2027
2027
|
* SPDX-License-Identifier: BSD-3-Clause
|
2028
2028
|
*/
|
2029
|
-
let
|
2029
|
+
let xi = class extends Event {
|
2030
2030
|
constructor(t) {
|
2031
2031
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
|
2032
2032
|
}
|
2033
2033
|
};
|
2034
|
-
class Xt extends
|
2034
|
+
class Xt extends Ai {
|
2035
2035
|
constructor(t, e, i) {
|
2036
|
-
var
|
2036
|
+
var s, n;
|
2037
2037
|
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
|
2038
2038
|
const a = o.composedPath()[0];
|
2039
2039
|
o.context === this.context && a !== this.host && (o.stopPropagation(), this.addCallback(o.callback, a, o.subscribe));
|
@@ -2042,16 +2042,16 @@ class Xt extends _i {
|
|
2042
2042
|
if (o.context !== this.context || a === this.host)
|
2043
2043
|
return;
|
2044
2044
|
const c = /* @__PURE__ */ new Set();
|
2045
|
-
for (const [
|
2046
|
-
c.has(
|
2045
|
+
for (const [h, { consumerHost: l }] of this.subscriptions)
|
2046
|
+
c.has(h) || (c.add(h), l.dispatchEvent(new _i(this.context, h, !0)));
|
2047
2047
|
o.stopPropagation();
|
2048
|
-
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (n = (
|
2048
|
+
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (n = (s = this.host).addController) == null || n.call(s, this);
|
2049
2049
|
}
|
2050
2050
|
attachListeners() {
|
2051
2051
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
2052
2052
|
}
|
2053
2053
|
hostConnected() {
|
2054
|
-
this.host.dispatchEvent(new
|
2054
|
+
this.host.dispatchEvent(new xi(this.context));
|
2055
2055
|
}
|
2056
2056
|
}
|
2057
2057
|
/**
|
@@ -2059,28 +2059,28 @@ class Xt extends _i {
|
|
2059
2059
|
* Copyright 2017 Google LLC
|
2060
2060
|
* SPDX-License-Identifier: BSD-3-Clause
|
2061
2061
|
*/
|
2062
|
-
function
|
2062
|
+
function Ci({ context: r }) {
|
2063
2063
|
return (t, e) => {
|
2064
2064
|
const i = /* @__PURE__ */ new WeakMap();
|
2065
2065
|
if (typeof e == "object")
|
2066
2066
|
return e.addInitializer(function() {
|
2067
|
-
i.set(this, new Xt(this, { context:
|
2067
|
+
i.set(this, new Xt(this, { context: r }));
|
2068
2068
|
}), { get() {
|
2069
2069
|
return t.get.call(this);
|
2070
|
-
}, set(
|
2070
|
+
}, set(s) {
|
2071
2071
|
var n;
|
2072
|
-
return (n = i.get(this)) == null || n.setValue(
|
2073
|
-
}, init(
|
2072
|
+
return (n = i.get(this)) == null || n.setValue(s), t.set.call(this, s);
|
2073
|
+
}, init(s) {
|
2074
2074
|
var n;
|
2075
|
-
return (n = i.get(this)) == null || n.setValue(
|
2075
|
+
return (n = i.get(this)) == null || n.setValue(s), s;
|
2076
2076
|
} };
|
2077
2077
|
{
|
2078
2078
|
t.constructor.addInitializer((o) => {
|
2079
|
-
i.set(o, new Xt(o, { context:
|
2079
|
+
i.set(o, new Xt(o, { context: r }));
|
2080
2080
|
});
|
2081
|
-
const
|
2081
|
+
const s = Object.getOwnPropertyDescriptor(t, e);
|
2082
2082
|
let n;
|
2083
|
-
if (
|
2083
|
+
if (s === void 0) {
|
2084
2084
|
const o = /* @__PURE__ */ new WeakMap();
|
2085
2085
|
n = { get() {
|
2086
2086
|
return o.get(this);
|
@@ -2088,8 +2088,8 @@ function xi({ context: s }) {
|
|
2088
2088
|
i.get(this).setValue(a), o.set(this, a);
|
2089
2089
|
}, configurable: !0, enumerable: !0 };
|
2090
2090
|
} else {
|
2091
|
-
const o =
|
2092
|
-
n = { ...
|
2091
|
+
const o = s.set;
|
2092
|
+
n = { ...s, set(a) {
|
2093
2093
|
i.get(this).setValue(a), o == null || o.call(this, a);
|
2094
2094
|
} };
|
2095
2095
|
}
|
@@ -2097,13 +2097,13 @@ function xi({ context: s }) {
|
|
2097
2097
|
}
|
2098
2098
|
};
|
2099
2099
|
}
|
2100
|
-
var
|
2101
|
-
for (var
|
2102
|
-
(o =
|
2103
|
-
return i &&
|
2100
|
+
var Si = Object.defineProperty, Ei = Object.getOwnPropertyDescriptor, Pi = (r, t, e, i) => {
|
2101
|
+
for (var s = i > 1 ? void 0 : i ? Ei(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
2102
|
+
(o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
2103
|
+
return i && s && Si(t, e, s), s;
|
2104
2104
|
};
|
2105
|
-
const
|
2106
|
-
class
|
2105
|
+
const Oi = "application";
|
2106
|
+
class st extends _ {
|
2107
2107
|
constructor() {
|
2108
2108
|
super(...arguments), this.nodes = [], this.wrapperRef = ve();
|
2109
2109
|
}
|
@@ -2120,22 +2120,22 @@ class rt extends _ {
|
|
2120
2120
|
if (!this.wrapperRef.value)
|
2121
2121
|
return;
|
2122
2122
|
const t = this.application.styles(), e = this.wrapperRef.value;
|
2123
|
-
Object.entries(t).forEach(([i,
|
2124
|
-
e.style.setProperty(`--${i}`,
|
2123
|
+
Object.entries(t).forEach(([i, s]) => {
|
2124
|
+
e.style.setProperty(`--${i}`, s);
|
2125
2125
|
});
|
2126
2126
|
}
|
2127
2127
|
firstUpdated(t) {
|
2128
2128
|
this.applyBranding(), this.applyStyles();
|
2129
2129
|
}
|
2130
2130
|
render() {
|
2131
|
-
var i,
|
2131
|
+
var i, s;
|
2132
2132
|
const t = this.application.settings.components.conversation;
|
2133
|
-
return ((
|
2134
|
-
${
|
2133
|
+
return ((s = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === w.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"), R`<div class="widget-container" ${ye(this.wrapperRef)}>
|
2134
|
+
${$i(this.nodes, (n) => n)}
|
2135
2135
|
</div>`;
|
2136
2136
|
}
|
2137
2137
|
}
|
2138
|
-
|
2138
|
+
st.styles = M`
|
2139
2139
|
:host {
|
2140
2140
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
2141
2141
|
--spacing-xs: 0.2rem;
|
@@ -2271,11 +2271,11 @@ rt.styles = M`
|
|
2271
2271
|
pointer-events: none;
|
2272
2272
|
}
|
2273
2273
|
`;
|
2274
|
-
|
2274
|
+
Pi([
|
2275
2275
|
m({ attribute: !1 }),
|
2276
|
-
|
2277
|
-
],
|
2278
|
-
class
|
2276
|
+
Ci({ context: Oi })
|
2277
|
+
], st.prototype, "application", 2);
|
2278
|
+
class Ti {
|
2279
2279
|
constructor() {
|
2280
2280
|
this.root = this.createRoot();
|
2281
2281
|
}
|
@@ -2283,19 +2283,19 @@ class Oi {
|
|
2283
2283
|
this.root.application = e;
|
2284
2284
|
const i = (a) => {
|
2285
2285
|
if (Array.isArray(a)) {
|
2286
|
-
const [c, ...
|
2286
|
+
const [c, ...h] = a;
|
2287
2287
|
return {
|
2288
2288
|
definitionId: c,
|
2289
|
-
overrides:
|
2289
|
+
overrides: h
|
2290
2290
|
};
|
2291
2291
|
}
|
2292
2292
|
return {
|
2293
2293
|
definitionId: a,
|
2294
2294
|
overrides: []
|
2295
2295
|
};
|
2296
|
-
},
|
2297
|
-
|
2298
|
-
const p = i(d), f =
|
2296
|
+
}, s = (a, c, h, l) => {
|
2297
|
+
h.forEach((d) => {
|
2298
|
+
const p = i(d), f = l[p.definitionId];
|
2299
2299
|
if (!f) {
|
2300
2300
|
console.error(
|
2301
2301
|
`No definition found for component type '${p.definitionId}'.`
|
@@ -2303,27 +2303,27 @@ class Oi {
|
|
2303
2303
|
return;
|
2304
2304
|
}
|
2305
2305
|
const g = a.createNode(f.type, f.type);
|
2306
|
-
g && (g.name = p.definitionId, g.application = e, f.properties && g.writeProperties(f.properties), f.context && g.writeContext(f.context), f.layout && g.writeLayout(f.layout), c.addChild(g), f.children &&
|
2306
|
+
g && (g.name = p.definitionId, g.application = e, f.properties && g.writeProperties(f.properties), f.context && g.writeContext(f.context), f.layout && g.writeLayout(f.layout), c.addChild(g), f.children && s(
|
2307
2307
|
a,
|
2308
2308
|
g,
|
2309
2309
|
f.children,
|
2310
|
-
|
2310
|
+
l
|
2311
2311
|
// views
|
2312
2312
|
));
|
2313
2313
|
});
|
2314
2314
|
}, { entry: n, components: o } = t;
|
2315
|
-
return
|
2315
|
+
return s(this, this.root, [n], o), this.root;
|
2316
2316
|
}
|
2317
2317
|
createRoot() {
|
2318
|
-
return typeof window < "u" && (window.customElements.get("ace-wrapper") || window.customElements.define("ace-wrapper",
|
2318
|
+
return typeof window < "u" && (window.customElements.get("ace-wrapper") || window.customElements.define("ace-wrapper", st)), document.createElement("ace-wrapper");
|
2319
2319
|
}
|
2320
2320
|
createNode(t, e) {
|
2321
2321
|
if (!this.resolveComponent(e))
|
2322
2322
|
return console.warn(`Unable to resolve component: ${e}`), new Et();
|
2323
|
-
const
|
2323
|
+
const s = document.createElement(
|
2324
2324
|
`ace-${e}`
|
2325
2325
|
);
|
2326
|
-
return
|
2326
|
+
return s.type = e, s.name = t, s;
|
2327
2327
|
}
|
2328
2328
|
resolveComponent(t) {
|
2329
2329
|
return customElements.get(`ace-${t}`);
|
@@ -2332,36 +2332,36 @@ class Oi {
|
|
2332
2332
|
return this.root;
|
2333
2333
|
}
|
2334
2334
|
}
|
2335
|
-
const be = class {
|
2335
|
+
const be = class we {
|
2336
2336
|
constructor() {
|
2337
2337
|
this.components = /* @__PURE__ */ new Map();
|
2338
2338
|
}
|
2339
|
-
getComponent(
|
2340
|
-
const
|
2341
|
-
return
|
2342
|
-
`Unable to resolve component: ${
|
2343
|
-
),
|
2339
|
+
getComponent(t) {
|
2340
|
+
const e = this.components.get(t);
|
2341
|
+
return e || console.warn(
|
2342
|
+
`Unable to resolve component: ${t}. You most likely forgot to register the required plugin.`
|
2343
|
+
), e;
|
2344
2344
|
}
|
2345
|
-
registerComponent(
|
2346
|
-
this.components.set(
|
2345
|
+
registerComponent(t, e) {
|
2346
|
+
this.components.set(t, e);
|
2347
2347
|
}
|
2348
2348
|
async loadComponents() {
|
2349
|
-
const
|
2350
|
-
this.defineAsWebComponent(
|
2349
|
+
const t = [...this.components.entries()].map(([e, i]) => i.then((s) => {
|
2350
|
+
this.defineAsWebComponent(e, s.default);
|
2351
2351
|
}));
|
2352
|
-
await Promise.all(
|
2352
|
+
await Promise.all(t);
|
2353
2353
|
}
|
2354
|
-
defineAsWebComponent(
|
2355
|
-
const
|
2356
|
-
customElements.get(
|
2354
|
+
defineAsWebComponent(t, e) {
|
2355
|
+
const i = we.ResolveWebComponentName(t);
|
2356
|
+
customElements.get(i) || customElements.define(i, e);
|
2357
2357
|
}
|
2358
2358
|
};
|
2359
|
-
|
2360
|
-
|
2361
|
-
var y = /* @__PURE__ */ ((
|
2362
|
-
class
|
2363
|
-
constructor(t, e, i,
|
2364
|
-
this.disallowedKeys = [], this.widgetId = t, this.storage = e === "localStorage" ? window.localStorage : window.sessionStorage, this.policy = i, this.storageEntries =
|
2359
|
+
be.ResolveWebComponentName = (r) => `ace-${r}`;
|
2360
|
+
let Ii = be;
|
2361
|
+
var y = /* @__PURE__ */ ((r) => (r.Necessary = "necessary", r.Functional = "functional", r.Analytics = "analytics", r))(y || {});
|
2362
|
+
class Ri {
|
2363
|
+
constructor(t, e, i, s) {
|
2364
|
+
this.disallowedKeys = [], this.widgetId = t, this.storage = e === "localStorage" ? window.localStorage : window.sessionStorage, this.policy = i, this.storageEntries = s;
|
2365
2365
|
}
|
2366
2366
|
set(t, e) {
|
2367
2367
|
if (this.disallowedKeys.includes(t))
|
@@ -2371,13 +2371,13 @@ class Ti {
|
|
2371
2371
|
console.warn(`Storage key '${t}' is not defined.`);
|
2372
2372
|
return;
|
2373
2373
|
}
|
2374
|
-
const
|
2375
|
-
if (this.policy[
|
2376
|
-
const n = { value: e, category:
|
2374
|
+
const s = i.category;
|
2375
|
+
if (this.policy[s]) {
|
2376
|
+
const n = { value: e, category: s };
|
2377
2377
|
this.storage.setItem(this._prefixKey(t), JSON.stringify(n));
|
2378
2378
|
} else
|
2379
2379
|
console.warn(
|
2380
|
-
`Storage policy does not allow storing items in category: ${
|
2380
|
+
`Storage policy does not allow storing items in category: ${s}`
|
2381
2381
|
);
|
2382
2382
|
}
|
2383
2383
|
get(t) {
|
@@ -2399,8 +2399,8 @@ class Ti {
|
|
2399
2399
|
enforcePolicy() {
|
2400
2400
|
var t;
|
2401
2401
|
for (const [e, i] of Object.entries(this.storage)) {
|
2402
|
-
const
|
2403
|
-
this.policy[
|
2402
|
+
const s = (t = JSON.parse(i)) == null ? void 0 : t.category;
|
2403
|
+
this.policy[s] || this.storage.removeItem(e);
|
2404
2404
|
}
|
2405
2405
|
}
|
2406
2406
|
updatePolicy(t) {
|
@@ -2413,7 +2413,7 @@ class Ti {
|
|
2413
2413
|
return `ace_${this.widgetId.substring(0, 7)}-${t}`;
|
2414
2414
|
}
|
2415
2415
|
}
|
2416
|
-
class
|
2416
|
+
class ki {
|
2417
2417
|
constructor() {
|
2418
2418
|
this.texts = /* @__PURE__ */ new Map();
|
2419
2419
|
}
|
@@ -2428,7 +2428,7 @@ class Ii {
|
|
2428
2428
|
return this.texts.get(t) || e;
|
2429
2429
|
}
|
2430
2430
|
}
|
2431
|
-
class
|
2431
|
+
class Mi {
|
2432
2432
|
constructor(t) {
|
2433
2433
|
this.widget = t, this.name = t.name;
|
2434
2434
|
}
|
@@ -2442,24 +2442,24 @@ class Ri {
|
|
2442
2442
|
this.widget.setZIndex(t);
|
2443
2443
|
}
|
2444
2444
|
}
|
2445
|
-
class
|
2446
|
-
constructor(t, e, i,
|
2447
|
-
this.id = t, this.name = e, this.container = i, this.settings =
|
2448
|
-
var
|
2445
|
+
class Ni {
|
2446
|
+
constructor(t, e, i, s, n) {
|
2447
|
+
this.id = t, this.name = e, this.container = i, this.settings = s, this.options = n, this.platform = new Ti(), this.texts = new ki(), this.renderStrategy = w.Inline, this.anchor = "BottomRight", this.autoActivate = !1, this.plugins = [], this.componentResolver = new Ii(), this.components = [], this.trigger = null, this.api = new Mi(this), this.onMessageReceived = async (a) => {
|
2448
|
+
var h;
|
2449
2449
|
const c = a.data;
|
2450
2450
|
switch (c.type) {
|
2451
2451
|
case "set-storage-policies": {
|
2452
|
-
const { policies:
|
2453
|
-
[y.Analytics]:
|
2454
|
-
[y.Necessary]:
|
2455
|
-
[y.Functional]:
|
2452
|
+
const { policies: l } = c.data || [], d = {
|
2453
|
+
[y.Analytics]: l.includes("analytics"),
|
2454
|
+
[y.Necessary]: l.includes("necessary"),
|
2455
|
+
[y.Functional]: l.includes("functional")
|
2456
2456
|
};
|
2457
2457
|
this.storage.updatePolicy(d);
|
2458
2458
|
return;
|
2459
2459
|
}
|
2460
2460
|
case "disallow-storage-key": {
|
2461
|
-
const { storageKey:
|
2462
|
-
|
2461
|
+
const { storageKey: l } = c.data || null;
|
2462
|
+
l && this.storage.disallowKey(l);
|
2463
2463
|
return;
|
2464
2464
|
}
|
2465
2465
|
case "open": {
|
@@ -2471,13 +2471,13 @@ class ki {
|
|
2471
2471
|
return;
|
2472
2472
|
}
|
2473
2473
|
case "set-z-index": {
|
2474
|
-
const { zIndex:
|
2475
|
-
|
2474
|
+
const { zIndex: l } = c.data || null;
|
2475
|
+
l && this.setZIndex(l);
|
2476
2476
|
return;
|
2477
2477
|
}
|
2478
2478
|
case "deactivate-widget": {
|
2479
|
-
const
|
2480
|
-
this.hide(), (
|
2479
|
+
const l = this.storage.get("open");
|
2480
|
+
this.hide(), (h = this.trigger) == null || h.hideTrigger(), l && this.storage.set("open", !0);
|
2481
2481
|
return;
|
2482
2482
|
}
|
2483
2483
|
default:
|
@@ -2489,12 +2489,12 @@ class ki {
|
|
2489
2489
|
[y.Functional]: !0,
|
2490
2490
|
[y.Analytics]: !0
|
2491
2491
|
};
|
2492
|
-
this.storage = new
|
2492
|
+
this.storage = new Ri(
|
2493
2493
|
this.id,
|
2494
2494
|
"sessionStorage",
|
2495
2495
|
o,
|
2496
2496
|
this.settings.storage
|
2497
|
-
), typeof n.autoActivate == "boolean" && (this.autoActivate = n.autoActivate), n.anchor && (this.anchor = n.anchor), this.container.register("$settings",
|
2497
|
+
), typeof n.autoActivate == "boolean" && (this.autoActivate = n.autoActivate), n.anchor && (this.anchor = n.anchor), this.container.register("$settings", s), this.texts.loadTexts(s.texts || {}), window.addEventListener("message", this.onMessageReceived);
|
2498
2498
|
}
|
2499
2499
|
async activate() {
|
2500
2500
|
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(oe.Ready), this.autoActivate) {
|
@@ -2556,7 +2556,7 @@ class ki {
|
|
2556
2556
|
let e = document.querySelector(
|
2557
2557
|
`ace-trigger-slot.${t}`
|
2558
2558
|
);
|
2559
|
-
return e || (e = new
|
2559
|
+
return e || (e = new it(), e.anchor = this.anchor, document.body.appendChild(e)), e;
|
2560
2560
|
}
|
2561
2561
|
return document.body;
|
2562
2562
|
}
|
@@ -2573,59 +2573,59 @@ class ki {
|
|
2573
2573
|
return this.root;
|
2574
2574
|
}
|
2575
2575
|
}
|
2576
|
-
const
|
2576
|
+
const qi = (r) => new bt(r), $e = class _e {
|
2577
2577
|
// TODO:
|
2578
2578
|
// private static endpoint = 'http://localhost:5299/api'; // TODO:
|
2579
|
-
constructor(
|
2580
|
-
this._endpoint =
|
2581
|
-
}
|
2582
|
-
async getSite(
|
2583
|
-
const
|
2584
|
-
return
|
2585
|
-
id:
|
2586
|
-
triggers:
|
2587
|
-
apps: (
|
2588
|
-
let
|
2589
|
-
|
2590
|
-
const
|
2579
|
+
constructor(t = _e.endpoint) {
|
2580
|
+
this._endpoint = t;
|
2581
|
+
}
|
2582
|
+
async getSite(t) {
|
2583
|
+
const i = await (await fetch(t)).json();
|
2584
|
+
return i ? {
|
2585
|
+
id: i.id,
|
2586
|
+
triggers: i.triggers || [],
|
2587
|
+
apps: (i.widgets || []).map((s) => {
|
2588
|
+
let n = w.Trigger;
|
2589
|
+
s.renderStrategy.toLowerCase() === "inline" && (n = w.Inline);
|
2590
|
+
const o = s.widgetId ? s.widgetId : s.id, a = typeof s.autoActivate == "boolean" ? s.autoActivate : !1, c = typeof s.anchor == "string" ? s.anchor : "BottomRight", h = typeof s.triggerIcon == "string" ? s.triggerIcon : "question";
|
2591
2591
|
return {
|
2592
|
-
id:
|
2593
|
-
widgetId:
|
2594
|
-
renderStrategy:
|
2595
|
-
autoActivate:
|
2596
|
-
anchor:
|
2592
|
+
id: o,
|
2593
|
+
widgetId: o,
|
2594
|
+
renderStrategy: n,
|
2595
|
+
autoActivate: a,
|
2596
|
+
anchor: c,
|
2597
2597
|
triggerIcon: {
|
2598
2598
|
type: "Telia",
|
2599
|
-
content:
|
2599
|
+
content: h
|
2600
2600
|
}
|
2601
2601
|
};
|
2602
2602
|
})
|
2603
2603
|
} : null;
|
2604
2604
|
}
|
2605
|
-
async getWidget(
|
2606
|
-
const
|
2607
|
-
return
|
2608
|
-
name:
|
2609
|
-
config: JSON.parse(
|
2605
|
+
async getWidget(t) {
|
2606
|
+
const i = await (await fetch(`${this._endpoint}/widget/${t}`)).json();
|
2607
|
+
return i ? {
|
2608
|
+
name: i.name,
|
2609
|
+
config: JSON.parse(i.configuration)
|
2610
2610
|
} : null;
|
2611
2611
|
}
|
2612
2612
|
};
|
2613
|
-
|
2614
|
-
|
2615
|
-
class
|
2613
|
+
$e.endpoint = "https://widgets.ace.teliacompany.net/api";
|
2614
|
+
let bt = $e;
|
2615
|
+
class Ui {
|
2616
2616
|
constructor(t) {
|
2617
2617
|
this.site = t;
|
2618
2618
|
}
|
2619
2619
|
storagePolicy(t) {
|
2620
2620
|
var i;
|
2621
|
-
(((i = this.site.environment) == null ? void 0 : i.applications) || []).forEach((
|
2622
|
-
if (
|
2621
|
+
(((i = this.site.environment) == null ? void 0 : i.applications) || []).forEach((s) => {
|
2622
|
+
if (s.storage) {
|
2623
2623
|
const n = {
|
2624
2624
|
[y.Analytics]: t.includes("analytics"),
|
2625
2625
|
[y.Necessary]: t.includes("necessary"),
|
2626
2626
|
[y.Functional]: t.includes("functional")
|
2627
2627
|
};
|
2628
|
-
|
2628
|
+
s.storage.updatePolicy(n);
|
2629
2629
|
}
|
2630
2630
|
});
|
2631
2631
|
}
|
@@ -2636,7 +2636,7 @@ class Mi {
|
|
2636
2636
|
});
|
2637
2637
|
}
|
2638
2638
|
}
|
2639
|
-
class
|
2639
|
+
class ji {
|
2640
2640
|
constructor() {
|
2641
2641
|
this.applications = [], this.container = new Mt("environment", this), this.bootstrapped = !1, this.site = null, this.widgetAPIHandlers = /* @__PURE__ */ new Map(), this.siteConfigurationHandlers = [], setTimeout(() => {
|
2642
2642
|
this.notifyWidgetsOfCreation();
|
@@ -2658,24 +2658,24 @@ class Ni {
|
|
2658
2658
|
(i) => i.autoActivate
|
2659
2659
|
);
|
2660
2660
|
(((e = this.site) == null ? void 0 : e.triggers) || []).filter((i) => i.triggerType === "visit").forEach((i) => {
|
2661
|
-
const
|
2661
|
+
const s = window.location.pathname, n = i.condition.outputs || [];
|
2662
2662
|
i.condition.type === "url" && n.forEach((o) => {
|
2663
2663
|
const a = o.action.type === "render_widget";
|
2664
|
-
if ((o.value ===
|
2665
|
-
let
|
2664
|
+
if ((o.value === s || o.value === "*") && a) {
|
2665
|
+
let h = { widgetId: "" };
|
2666
2666
|
try {
|
2667
|
-
|
2667
|
+
h = JSON.parse(o.action.data);
|
2668
2668
|
} catch {
|
2669
|
-
|
2669
|
+
h = {
|
2670
2670
|
widgetId: ""
|
2671
2671
|
};
|
2672
2672
|
}
|
2673
|
-
const
|
2674
|
-
(p) => p.id ===
|
2673
|
+
const l = t.findIndex(
|
2674
|
+
(p) => p.id === h.widgetId
|
2675
2675
|
) > -1, d = this.applications.find(
|
2676
|
-
(p) => p.id ===
|
2676
|
+
(p) => p.id === h.widgetId
|
2677
2677
|
);
|
2678
|
-
d && !
|
2678
|
+
d && !l && (d.autoActivate = !0, t.push(d));
|
2679
2679
|
}
|
2680
2680
|
});
|
2681
2681
|
});
|
@@ -2684,7 +2684,7 @@ class Ni {
|
|
2684
2684
|
}
|
2685
2685
|
notifyWidgetsOfCreation() {
|
2686
2686
|
document.querySelectorAll("ace-widget").forEach((e) => {
|
2687
|
-
const i = this.applications.find((
|
2687
|
+
const i = this.applications.find((s) => s.name === e.name);
|
2688
2688
|
i && e.dispatchEvent(
|
2689
2689
|
new CustomEvent("environment-created", {
|
2690
2690
|
detail: { widget: i }
|
@@ -2700,19 +2700,19 @@ class Ni {
|
|
2700
2700
|
t(this.site.api);
|
2701
2701
|
}
|
2702
2702
|
widget(t, e) {
|
2703
|
-
const i = this.applications.find((
|
2703
|
+
const i = this.applications.find((s) => s.name === t);
|
2704
2704
|
if (!i) {
|
2705
|
-
const
|
2706
|
-
|
2705
|
+
const s = this.widgetAPIHandlers.get(t) || [];
|
2706
|
+
s.push(() => {
|
2707
2707
|
const n = this.applications.find((o) => o.name === t);
|
2708
2708
|
e(n == null ? void 0 : n.api);
|
2709
|
-
}), this.widgetAPIHandlers.set(t,
|
2709
|
+
}), this.widgetAPIHandlers.set(t, s);
|
2710
2710
|
return;
|
2711
2711
|
}
|
2712
2712
|
e(i == null ? void 0 : i.api);
|
2713
2713
|
}
|
2714
|
-
registerApp(t, e, i,
|
2715
|
-
const n = new Mt(e, this), o = new
|
2714
|
+
registerApp(t, e, i, s) {
|
2715
|
+
const n = new Mt(e, this), o = new Ni(t, e, n, i, s);
|
2716
2716
|
this.applications.push(o);
|
2717
2717
|
}
|
2718
2718
|
registerSite(t) {
|
@@ -2724,9 +2724,9 @@ class Ni {
|
|
2724
2724
|
}), this;
|
2725
2725
|
}
|
2726
2726
|
}
|
2727
|
-
class
|
2727
|
+
class Li {
|
2728
2728
|
constructor(t) {
|
2729
|
-
this.configurations = [], this.httpClient = new
|
2729
|
+
this.configurations = [], this.httpClient = new bt(), this.api = new Ui(this), this.triggers = [], this.httpClient = new bt(), typeof t == "string" ? this.url = t : (t.httpClient && (this.httpClient = t.httpClient), this.loadFromConfig(t));
|
2730
2730
|
}
|
2731
2731
|
async load(t) {
|
2732
2732
|
const e = await this.httpClient.getSite(t);
|
@@ -2754,13 +2754,13 @@ class Ui {
|
|
2754
2754
|
}
|
2755
2755
|
async bootstrap(t) {
|
2756
2756
|
var e;
|
2757
|
-
this.url && await this.load(this.url), this.environment = new
|
2757
|
+
this.url && await this.load(this.url), this.environment = new ji(), this.addGlobal(this.environment);
|
2758
2758
|
for await (const i of this.configurations) {
|
2759
|
-
const
|
2760
|
-
|
2759
|
+
const s = await this.httpClient.getWidget(i.widgetId);
|
2760
|
+
s && ((e = this.environment) == null || e.registerApp(
|
2761
2761
|
i.widgetId,
|
2762
|
-
|
2763
|
-
|
2762
|
+
s.name,
|
2763
|
+
s.config,
|
2764
2764
|
{
|
2765
2765
|
renderStrategy: i.renderStrategy,
|
2766
2766
|
triggerIcon: i.triggerIcon,
|
@@ -2773,17 +2773,17 @@ class Ui {
|
|
2773
2773
|
}
|
2774
2774
|
addGlobal(t) {
|
2775
2775
|
const e = globalThis.ace;
|
2776
|
-
((e == null ? void 0 : e._w) || []).forEach(([i,
|
2777
|
-
t.widget(i,
|
2776
|
+
((e == null ? void 0 : e._w) || []).forEach(([i, s]) => {
|
2777
|
+
t.widget(i, s);
|
2778
2778
|
}), ((e == null ? void 0 : e._c) || []).forEach((i) => {
|
2779
2779
|
t.configure(i);
|
2780
2780
|
}), globalThis.ace = t;
|
2781
2781
|
}
|
2782
2782
|
}
|
2783
|
-
var
|
2784
|
-
for (var
|
2785
|
-
(o =
|
2786
|
-
return i &&
|
2783
|
+
var Hi = Object.defineProperty, Bi = Object.getOwnPropertyDescriptor, Pt = (r, t, e, i) => {
|
2784
|
+
for (var s = i > 1 ? void 0 : i ? Bi(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
2785
|
+
(o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
2786
|
+
return i && s && Hi(t, e, s), s;
|
2787
2787
|
};
|
2788
2788
|
class V extends _ {
|
2789
2789
|
constructor() {
|
@@ -2833,27 +2833,27 @@ Pt([
|
|
2833
2833
|
Pt([
|
2834
2834
|
N()
|
2835
2835
|
], V.prototype, "status", 2);
|
2836
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
2836
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", it);
|
2837
2837
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", A);
|
2838
2838
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Et);
|
2839
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
2839
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", st);
|
2840
2840
|
customElements.get("ace-widget") || customElements.define("ace-widget", V);
|
2841
|
-
const
|
2842
|
-
const i = new
|
2841
|
+
const Ki = async (r, t, e = {}) => {
|
2842
|
+
const i = new Li(r);
|
2843
2843
|
e.httpClient && i.setHttpClient(e.httpClient), await i.bootstrap(t);
|
2844
2844
|
};
|
2845
2845
|
export {
|
2846
2846
|
V as AceWidget,
|
2847
|
-
|
2847
|
+
Ni as Application,
|
2848
2848
|
Mt as Container,
|
2849
|
-
|
2850
|
-
|
2851
|
-
|
2849
|
+
ji as Environment,
|
2850
|
+
bt as HttpClient,
|
2851
|
+
Li as Site,
|
2852
2852
|
y as StorageCategory,
|
2853
|
-
|
2853
|
+
Ri as StorageService,
|
2854
2854
|
A as Trigger,
|
2855
|
-
|
2856
|
-
|
2857
|
-
|
2858
|
-
|
2855
|
+
wi as WidgetComponent,
|
2856
|
+
Oi as applicationContext,
|
2857
|
+
Ki as bootstrap,
|
2858
|
+
qi as createHttpClient
|
2859
2859
|
};
|