@telia-ace/widget-core-flamingo 1.1.12-rc.8 → 1.1.13
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +23 -27
- package/index.mjs +514 -526
- package/package.json +1 -1
package/index.mjs
CHANGED
@@ -1,45 +1,45 @@
|
|
1
|
-
var
|
2
|
-
return
|
3
|
-
e.__proto__ =
|
4
|
-
} || function(e,
|
5
|
-
for (var n in
|
6
|
-
Object.prototype.hasOwnProperty.call(
|
7
|
-
},
|
1
|
+
var ht = function(i, t) {
|
2
|
+
return ht = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
|
3
|
+
e.__proto__ = r;
|
4
|
+
} || function(e, r) {
|
5
|
+
for (var n in r)
|
6
|
+
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
7
|
+
}, ht(i, t);
|
8
8
|
};
|
9
|
-
function
|
9
|
+
function N(i, 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
|
+
ht(i, t);
|
13
13
|
function e() {
|
14
|
-
this.constructor =
|
14
|
+
this.constructor = i;
|
15
15
|
}
|
16
|
-
|
16
|
+
i.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 ut(i) {
|
19
|
+
var t = typeof Symbol == "function" && Symbol.iterator, e = t && i[t], r = 0;
|
20
20
|
if (e)
|
21
|
-
return e.call(
|
22
|
-
if (
|
21
|
+
return e.call(i);
|
22
|
+
if (i && typeof i.length == "number")
|
23
23
|
return {
|
24
24
|
next: function() {
|
25
|
-
return
|
25
|
+
return i && r >= i.length && (i = void 0), { value: i && i[r++], done: !i };
|
26
26
|
}
|
27
27
|
};
|
28
28
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
29
29
|
}
|
30
|
-
function Y(
|
31
|
-
var e = typeof Symbol == "function" &&
|
30
|
+
function Y(i, t) {
|
31
|
+
var e = typeof Symbol == "function" && i[Symbol.iterator];
|
32
32
|
if (!e)
|
33
|
-
return
|
34
|
-
var
|
33
|
+
return i;
|
34
|
+
var r = e.call(i), n, s = [], o;
|
35
35
|
try {
|
36
|
-
for (; (t === void 0 || t-- > 0) && !(n =
|
36
|
+
for (; (t === void 0 || t-- > 0) && !(n = r.next()).done; )
|
37
37
|
s.push(n.value);
|
38
38
|
} catch (a) {
|
39
39
|
o = { error: a };
|
40
40
|
} finally {
|
41
41
|
try {
|
42
|
-
n && !n.done && (e =
|
42
|
+
n && !n.done && (e = r.return) && e.call(r);
|
43
43
|
} finally {
|
44
44
|
if (o)
|
45
45
|
throw o.error;
|
@@ -47,49 +47,49 @@ function Y(r, t) {
|
|
47
47
|
}
|
48
48
|
return s;
|
49
49
|
}
|
50
|
-
function q(
|
50
|
+
function q(i, t, e) {
|
51
51
|
if (e || arguments.length === 2)
|
52
|
-
for (var
|
53
|
-
(s || !(
|
54
|
-
return
|
52
|
+
for (var r = 0, n = t.length, s; r < n; r++)
|
53
|
+
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
54
|
+
return i.concat(s || Array.prototype.slice.call(t));
|
55
55
|
}
|
56
|
-
function m(
|
57
|
-
return typeof
|
56
|
+
function m(i) {
|
57
|
+
return typeof i == "function";
|
58
58
|
}
|
59
|
-
function Nt(
|
60
|
-
var t = function(
|
61
|
-
Error.call(
|
62
|
-
}, e =
|
59
|
+
function Nt(i) {
|
60
|
+
var t = function(r) {
|
61
|
+
Error.call(r), r.stack = new Error().stack;
|
62
|
+
}, e = i(t);
|
63
63
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
64
64
|
}
|
65
|
-
var
|
65
|
+
var it = Nt(function(i) {
|
66
66
|
return function(e) {
|
67
|
-
|
68
|
-
` + e.map(function(
|
69
|
-
return n + 1 + ") " +
|
67
|
+
i(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
68
|
+
` + e.map(function(r, n) {
|
69
|
+
return n + 1 + ") " + r.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 pt(i, t) {
|
75
|
+
if (i) {
|
76
|
+
var e = i.indexOf(t);
|
77
|
+
0 <= e && i.splice(e, 1);
|
78
78
|
}
|
79
79
|
}
|
80
80
|
var X = function() {
|
81
|
-
function
|
81
|
+
function i(t) {
|
82
82
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
83
83
|
}
|
84
|
-
return
|
85
|
-
var t, e,
|
84
|
+
return i.prototype.unsubscribe = function() {
|
85
|
+
var t, e, r, n, s;
|
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 =
|
92
|
+
for (var a = ut(o), c = a.next(); !c.done; c = a.next()) {
|
93
93
|
var h = c.value;
|
94
94
|
h.remove(this);
|
95
95
|
}
|
@@ -110,69 +110,69 @@ var X = function() {
|
|
110
110
|
try {
|
111
111
|
d();
|
112
112
|
} catch (v) {
|
113
|
-
s = v instanceof
|
113
|
+
s = v instanceof it ? v.errors : [v];
|
114
114
|
}
|
115
115
|
var l = this._finalizers;
|
116
116
|
if (l) {
|
117
117
|
this._finalizers = null;
|
118
118
|
try {
|
119
|
-
for (var f =
|
119
|
+
for (var f = ut(l), u = f.next(); !u.done; u = f.next()) {
|
120
120
|
var g = u.value;
|
121
121
|
try {
|
122
122
|
$t(g);
|
123
123
|
} catch (v) {
|
124
|
-
s = s ?? [], v instanceof
|
124
|
+
s = s ?? [], v instanceof it ? s = q(q([], Y(s)), Y(v.errors)) : s.push(v);
|
125
125
|
}
|
126
126
|
}
|
127
127
|
} catch (v) {
|
128
|
-
|
128
|
+
r = { error: v };
|
129
129
|
} finally {
|
130
130
|
try {
|
131
131
|
u && !u.done && (n = f.return) && n.call(f);
|
132
132
|
} finally {
|
133
|
-
if (
|
134
|
-
throw
|
133
|
+
if (r)
|
134
|
+
throw r.error;
|
135
135
|
}
|
136
136
|
}
|
137
137
|
}
|
138
138
|
if (s)
|
139
|
-
throw new
|
139
|
+
throw new it(s);
|
140
140
|
}
|
141
|
-
},
|
141
|
+
}, i.prototype.add = function(t) {
|
142
142
|
var e;
|
143
143
|
if (t && t !== this)
|
144
144
|
if (this.closed)
|
145
145
|
$t(t);
|
146
146
|
else {
|
147
|
-
if (t instanceof
|
147
|
+
if (t instanceof i) {
|
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
|
+
}, i.prototype._hasParent = function(t) {
|
155
155
|
var e = this._parentage;
|
156
156
|
return e === t || Array.isArray(e) && e.includes(t);
|
157
|
-
},
|
157
|
+
}, i.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
|
+
}, i.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) && pt(e, t);
|
163
|
+
}, i.prototype.remove = function(t) {
|
164
164
|
var e = this._finalizers;
|
165
|
-
e &&
|
166
|
-
},
|
167
|
-
var t = new
|
165
|
+
e && pt(e, t), t instanceof i && t._removeParent(this);
|
166
|
+
}, i.EMPTY = function() {
|
167
|
+
var t = new i();
|
168
168
|
return t.closed = !0, t;
|
169
|
-
}(),
|
169
|
+
}(), i;
|
170
170
|
}(), Dt = X.EMPTY;
|
171
|
-
function Lt(
|
172
|
-
return
|
171
|
+
function Lt(i) {
|
172
|
+
return i instanceof X || i && "closed" in i && m(i.remove) && m(i.add) && m(i.unsubscribe);
|
173
173
|
}
|
174
|
-
function $t(
|
175
|
-
m(
|
174
|
+
function $t(i) {
|
175
|
+
m(i) ? i() : i.unsubscribe();
|
176
176
|
}
|
177
177
|
var Bt = {
|
178
178
|
onUnhandledError: null,
|
@@ -180,37 +180,37 @@ var Bt = {
|
|
180
180
|
Promise: void 0,
|
181
181
|
useDeprecatedSynchronousErrorHandling: !1,
|
182
182
|
useDeprecatedNextContext: !1
|
183
|
-
},
|
184
|
-
setTimeout: function(
|
185
|
-
for (var e = [],
|
186
|
-
e[
|
187
|
-
var n =
|
188
|
-
return n != null && n.setTimeout ? n.setTimeout.apply(n, q([
|
183
|
+
}, dt = {
|
184
|
+
setTimeout: function(i, t) {
|
185
|
+
for (var e = [], r = 2; r < arguments.length; r++)
|
186
|
+
e[r - 2] = arguments[r];
|
187
|
+
var n = dt.delegate;
|
188
|
+
return n != null && n.setTimeout ? n.setTimeout.apply(n, q([i, t], Y(e))) : setTimeout.apply(void 0, q([i, t], Y(e)));
|
189
189
|
},
|
190
|
-
clearTimeout: function(
|
191
|
-
var t =
|
192
|
-
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(
|
190
|
+
clearTimeout: function(i) {
|
191
|
+
var t = dt.delegate;
|
192
|
+
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(i);
|
193
193
|
},
|
194
194
|
delegate: void 0
|
195
195
|
};
|
196
|
-
function se(
|
197
|
-
|
198
|
-
throw
|
196
|
+
function se(i) {
|
197
|
+
dt.setTimeout(function() {
|
198
|
+
throw i;
|
199
199
|
});
|
200
200
|
}
|
201
201
|
function wt() {
|
202
202
|
}
|
203
|
-
function V(
|
204
|
-
|
203
|
+
function V(i) {
|
204
|
+
i();
|
205
205
|
}
|
206
|
-
var zt = function(
|
207
|
-
|
206
|
+
var zt = function(i) {
|
207
|
+
N(t, i);
|
208
208
|
function t(e) {
|
209
|
-
var
|
210
|
-
return
|
209
|
+
var r = i.call(this) || this;
|
210
|
+
return r.isStopped = !1, e ? (r.destination = e, Lt(e) && e.add(r)) : r.destination = le, r;
|
211
211
|
}
|
212
|
-
return t.create = function(e,
|
213
|
-
return new
|
212
|
+
return t.create = function(e, r, n) {
|
213
|
+
return new ft(e, r, n);
|
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 zt = function(r) {
|
|
218
218
|
}, t.prototype.complete = function() {
|
219
219
|
this.isStopped || (this.isStopped = !0, this._complete());
|
220
220
|
}, t.prototype.unsubscribe = function() {
|
221
|
-
this.closed || (this.isStopped = !0,
|
221
|
+
this.closed || (this.isStopped = !0, i.prototype.unsubscribe.call(this), this.destination = null);
|
222
222
|
}, t.prototype._next = function(e) {
|
223
223
|
this.destination.next(e);
|
224
224
|
}, t.prototype._error = function(e) {
|
@@ -235,32 +235,32 @@ var zt = function(r) {
|
|
235
235
|
}
|
236
236
|
}, t;
|
237
237
|
}(X), oe = Function.prototype.bind;
|
238
|
-
function
|
239
|
-
return oe.call(
|
238
|
+
function nt(i, t) {
|
239
|
+
return oe.call(i, t);
|
240
240
|
}
|
241
241
|
var ae = function() {
|
242
|
-
function
|
242
|
+
function i(t) {
|
243
243
|
this.partialObserver = t;
|
244
244
|
}
|
245
|
-
return
|
245
|
+
return i.prototype.next = function(t) {
|
246
246
|
var e = this.partialObserver;
|
247
247
|
if (e.next)
|
248
248
|
try {
|
249
249
|
e.next(t);
|
250
|
-
} catch (
|
251
|
-
W(
|
250
|
+
} catch (r) {
|
251
|
+
W(r);
|
252
252
|
}
|
253
|
-
},
|
253
|
+
}, i.prototype.error = function(t) {
|
254
254
|
var e = this.partialObserver;
|
255
255
|
if (e.error)
|
256
256
|
try {
|
257
257
|
e.error(t);
|
258
|
-
} catch (
|
259
|
-
W(
|
258
|
+
} catch (r) {
|
259
|
+
W(r);
|
260
260
|
}
|
261
261
|
else
|
262
262
|
W(t);
|
263
|
-
},
|
263
|
+
}, i.prototype.complete = function() {
|
264
264
|
var t = this.partialObserver;
|
265
265
|
if (t.complete)
|
266
266
|
try {
|
@@ -268,15 +268,15 @@ var ae = function() {
|
|
268
268
|
} catch (e) {
|
269
269
|
W(e);
|
270
270
|
}
|
271
|
-
},
|
272
|
-
}(),
|
273
|
-
|
274
|
-
function t(e,
|
275
|
-
var s =
|
271
|
+
}, i;
|
272
|
+
}(), ft = function(i) {
|
273
|
+
N(t, i);
|
274
|
+
function t(e, r, n) {
|
275
|
+
var s = i.call(this) || this, o;
|
276
276
|
if (m(e) || !e)
|
277
277
|
o = {
|
278
278
|
next: e ?? void 0,
|
279
|
-
error:
|
279
|
+
error: r ?? void 0,
|
280
280
|
complete: n ?? void 0
|
281
281
|
};
|
282
282
|
else {
|
@@ -284,20 +284,20 @@ var ae = function() {
|
|
284
284
|
s && Bt.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
285
285
|
return s.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
292
|
return s.destination = new ae(o), s;
|
293
293
|
}
|
294
294
|
return t;
|
295
295
|
}(zt);
|
296
|
-
function W(
|
297
|
-
se(
|
296
|
+
function W(i) {
|
297
|
+
se(i);
|
298
298
|
}
|
299
|
-
function ce(
|
300
|
-
throw
|
299
|
+
function ce(i) {
|
300
|
+
throw i;
|
301
301
|
}
|
302
302
|
var le = {
|
303
303
|
closed: !0,
|
@@ -307,39 +307,39 @@ var le = {
|
|
307
307
|
}, he = function() {
|
308
308
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
309
309
|
}();
|
310
|
-
function ue(
|
311
|
-
return
|
310
|
+
function ue(i) {
|
311
|
+
return i;
|
312
312
|
}
|
313
|
-
function pe(
|
314
|
-
return
|
315
|
-
return
|
316
|
-
return n(
|
313
|
+
function pe(i) {
|
314
|
+
return i.length === 0 ? ue : i.length === 1 ? i[0] : function(e) {
|
315
|
+
return i.reduce(function(r, n) {
|
316
|
+
return n(r);
|
317
317
|
}, e);
|
318
318
|
};
|
319
319
|
}
|
320
320
|
var At = function() {
|
321
|
-
function
|
321
|
+
function i(t) {
|
322
322
|
t && (this._subscribe = t);
|
323
323
|
}
|
324
|
-
return
|
325
|
-
var e = new
|
324
|
+
return i.prototype.lift = function(t) {
|
325
|
+
var e = new i();
|
326
326
|
return e.source = this, e.operator = t, e;
|
327
|
-
},
|
328
|
-
var n = this, s = fe(t) ? t : new
|
327
|
+
}, i.prototype.subscribe = function(t, e, r) {
|
328
|
+
var n = this, s = fe(t) ? t : new ft(t, e, r);
|
329
329
|
return V(function() {
|
330
330
|
var o = n, a = o.operator, c = o.source;
|
331
331
|
s.add(a ? a.call(s, c) : c ? n._subscribe(s) : n._trySubscribe(s));
|
332
332
|
}), s;
|
333
|
-
},
|
333
|
+
}, i.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
|
-
},
|
340
|
-
var
|
339
|
+
}, i.prototype.forEach = function(t, e) {
|
340
|
+
var r = this;
|
341
341
|
return e = St(e), new e(function(n, s) {
|
342
|
-
var o = new
|
342
|
+
var o = new ft({
|
343
343
|
next: function(a) {
|
344
344
|
try {
|
345
345
|
t(a);
|
@@ -350,67 +350,67 @@ var At = function() {
|
|
350
350
|
error: s,
|
351
351
|
complete: n
|
352
352
|
});
|
353
|
-
|
353
|
+
r.subscribe(o);
|
354
354
|
});
|
355
|
-
},
|
355
|
+
}, i.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
|
+
}, i.prototype[he] = function() {
|
359
359
|
return this;
|
360
|
-
},
|
360
|
+
}, i.prototype.pipe = function() {
|
361
361
|
for (var t = [], e = 0; e < arguments.length; e++)
|
362
362
|
t[e] = arguments[e];
|
363
363
|
return pe(t)(this);
|
364
|
-
},
|
364
|
+
}, i.prototype.toPromise = function(t) {
|
365
365
|
var e = this;
|
366
|
-
return t = St(t), new t(function(
|
366
|
+
return t = St(t), new t(function(r, n) {
|
367
367
|
var s;
|
368
368
|
e.subscribe(function(o) {
|
369
369
|
return s = o;
|
370
370
|
}, function(o) {
|
371
371
|
return n(o);
|
372
372
|
}, function() {
|
373
|
-
return
|
373
|
+
return r(s);
|
374
374
|
});
|
375
375
|
});
|
376
|
-
},
|
377
|
-
return new
|
378
|
-
},
|
376
|
+
}, i.create = function(t) {
|
377
|
+
return new i(t);
|
378
|
+
}, i;
|
379
379
|
}();
|
380
|
-
function St(
|
380
|
+
function St(i) {
|
381
381
|
var t;
|
382
|
-
return (t =
|
382
|
+
return (t = i ?? Bt.Promise) !== null && t !== void 0 ? t : Promise;
|
383
383
|
}
|
384
|
-
function de(
|
385
|
-
return
|
384
|
+
function de(i) {
|
385
|
+
return i && m(i.next) && m(i.error) && m(i.complete);
|
386
386
|
}
|
387
|
-
function fe(
|
388
|
-
return
|
387
|
+
function fe(i) {
|
388
|
+
return i && i instanceof zt || de(i) && Lt(i);
|
389
389
|
}
|
390
|
-
var ge = Nt(function(
|
390
|
+
var ge = Nt(function(i) {
|
391
391
|
return function() {
|
392
|
-
|
392
|
+
i(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
393
393
|
};
|
394
|
-
}), Wt = function(
|
395
|
-
|
394
|
+
}), Wt = function(i) {
|
395
|
+
N(t, i);
|
396
396
|
function t() {
|
397
|
-
var e =
|
397
|
+
var e = i.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) {
|
401
|
-
var
|
402
|
-
return
|
401
|
+
var r = new Et(this, this);
|
402
|
+
return r.operator = e, r;
|
403
403
|
}, t.prototype._throwIfClosed = function() {
|
404
404
|
if (this.closed)
|
405
405
|
throw new ge();
|
406
406
|
}, t.prototype.next = function(e) {
|
407
|
-
var
|
407
|
+
var r = this;
|
408
408
|
V(function() {
|
409
409
|
var n, s;
|
410
|
-
if (
|
411
|
-
|
410
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
411
|
+
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
412
412
|
try {
|
413
|
-
for (var o =
|
413
|
+
for (var o = ut(r.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
414
414
|
var c = a.value;
|
415
415
|
c.next(e);
|
416
416
|
}
|
@@ -427,11 +427,11 @@ var ge = Nt(function(r) {
|
|
427
427
|
}
|
428
428
|
});
|
429
429
|
}, t.prototype.error = function(e) {
|
430
|
-
var
|
430
|
+
var r = this;
|
431
431
|
V(function() {
|
432
|
-
if (
|
433
|
-
|
434
|
-
for (var n =
|
432
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
433
|
+
r.hasError = r.isStopped = !0, r.thrownError = e;
|
434
|
+
for (var n = r.observers; n.length; )
|
435
435
|
n.shift().error(e);
|
436
436
|
}
|
437
437
|
});
|
@@ -440,8 +440,8 @@ var ge = Nt(function(r) {
|
|
440
440
|
V(function() {
|
441
441
|
if (e._throwIfClosed(), !e.isStopped) {
|
442
442
|
e.isStopped = !0;
|
443
|
-
for (var
|
444
|
-
|
443
|
+
for (var r = e.observers; r.length; )
|
444
|
+
r.shift().complete();
|
445
445
|
}
|
446
446
|
});
|
447
447
|
}, t.prototype.unsubscribe = function() {
|
@@ -454,47 +454,47 @@ var ge = Nt(function(r) {
|
|
454
454
|
enumerable: !1,
|
455
455
|
configurable: !0
|
456
456
|
}), t.prototype._trySubscribe = function(e) {
|
457
|
-
return this._throwIfClosed(),
|
457
|
+
return this._throwIfClosed(), i.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
|
461
|
+
var r = this, n = this, s = n.hasError, o = n.isStopped, a = n.observers;
|
462
462
|
return s || o ? Dt : (this.currentObservers = null, a.push(e), new X(function() {
|
463
|
-
|
463
|
+
r.currentObservers = null, pt(a, e);
|
464
464
|
}));
|
465
465
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
466
|
-
var
|
466
|
+
var r = this, n = r.hasError, s = r.thrownError, o = r.isStopped;
|
467
467
|
n ? e.error(s) : o && e.complete();
|
468
468
|
}, t.prototype.asObservable = function() {
|
469
469
|
var e = new At();
|
470
470
|
return e.source = this, e;
|
471
|
-
}, t.create = function(e,
|
472
|
-
return new Et(e,
|
471
|
+
}, t.create = function(e, r) {
|
472
|
+
return new Et(e, r);
|
473
473
|
}, t;
|
474
|
-
}(At), Et = function(
|
475
|
-
|
476
|
-
function t(e,
|
477
|
-
var n =
|
478
|
-
return n.destination = e, n.source =
|
474
|
+
}(At), Et = function(i) {
|
475
|
+
N(t, i);
|
476
|
+
function t(e, r) {
|
477
|
+
var n = i.call(this) || this;
|
478
|
+
return n.destination = e, n.source = r, n;
|
479
479
|
}
|
480
480
|
return t.prototype.next = function(e) {
|
481
|
-
var
|
482
|
-
(n = (
|
481
|
+
var r, n;
|
482
|
+
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || n === void 0 || n.call(r, e);
|
483
483
|
}, t.prototype.error = function(e) {
|
484
|
-
var
|
485
|
-
(n = (
|
484
|
+
var r, n;
|
485
|
+
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || n === void 0 || n.call(r, e);
|
486
486
|
}, t.prototype.complete = function() {
|
487
|
-
var e,
|
488
|
-
(
|
487
|
+
var e, r;
|
488
|
+
(r = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || r === void 0 || r.call(e);
|
489
489
|
}, t.prototype._subscribe = function(e) {
|
490
|
-
var
|
491
|
-
return (n = (
|
490
|
+
var r, n;
|
491
|
+
return (n = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(e)) !== null && n !== void 0 ? n : Dt;
|
492
492
|
}, t;
|
493
|
-
}(Wt), ve = function(
|
494
|
-
|
493
|
+
}(Wt), ve = function(i) {
|
494
|
+
N(t, i);
|
495
495
|
function t(e) {
|
496
|
-
var
|
497
|
-
return
|
496
|
+
var r = i.call(this) || this;
|
497
|
+
return r._value = e, r;
|
498
498
|
}
|
499
499
|
return Object.defineProperty(t.prototype, "value", {
|
500
500
|
get: function() {
|
@@ -503,17 +503,17 @@ var ge = Nt(function(r) {
|
|
503
503
|
enumerable: !1,
|
504
504
|
configurable: !0
|
505
505
|
}), t.prototype._subscribe = function(e) {
|
506
|
-
var
|
507
|
-
return !
|
506
|
+
var r = i.prototype._subscribe.call(this, e);
|
507
|
+
return !r.closed && e.next(this._value), r;
|
508
508
|
}, t.prototype.getValue = function() {
|
509
|
-
var e = this,
|
510
|
-
if (
|
509
|
+
var e = this, r = e.hasError, n = e.thrownError, s = e._value;
|
510
|
+
if (r)
|
511
511
|
throw n;
|
512
512
|
return this._throwIfClosed(), s;
|
513
513
|
}, t.prototype.next = function(e) {
|
514
|
-
|
514
|
+
i.prototype.next.call(this, this._value = e);
|
515
515
|
}, t;
|
516
|
-
}(Wt), Gt = /* @__PURE__ */ ((
|
516
|
+
}(Wt), Gt = /* @__PURE__ */ ((i) => (i.Loading = "loading", i.Ready = "ready", i))(Gt || {});
|
517
517
|
class Ct {
|
518
518
|
constructor(t, e) {
|
519
519
|
this.state = new ve(
|
@@ -539,19 +539,19 @@ class Ct {
|
|
539
539
|
* Copyright 2019 Google LLC
|
540
540
|
* SPDX-License-Identifier: BSD-3-Clause
|
541
541
|
*/
|
542
|
-
const F = globalThis,
|
542
|
+
const F = globalThis, vt = F.ShadowRoot && (F.ShadyCSS === void 0 || F.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, yt = Symbol(), xt = /* @__PURE__ */ new WeakMap();
|
543
543
|
let Vt = class {
|
544
|
-
constructor(t, e,
|
545
|
-
if (this._$cssResult$ = !0,
|
544
|
+
constructor(t, e, r) {
|
545
|
+
if (this._$cssResult$ = !0, r !== yt)
|
546
546
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
547
547
|
this.cssText = t, this.t = e;
|
548
548
|
}
|
549
549
|
get styleSheet() {
|
550
550
|
let t = this.o;
|
551
551
|
const e = this.t;
|
552
|
-
if (
|
553
|
-
const
|
554
|
-
|
552
|
+
if (vt && t === void 0) {
|
553
|
+
const r = e !== void 0 && e.length === 1;
|
554
|
+
r && (t = xt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && xt.set(e, t));
|
555
555
|
}
|
556
556
|
return t;
|
557
557
|
}
|
@@ -559,63 +559,63 @@ let Vt = class {
|
|
559
559
|
return this.cssText;
|
560
560
|
}
|
561
561
|
};
|
562
|
-
const ye = (
|
563
|
-
const e =
|
562
|
+
const ye = (i) => new Vt(typeof i == "string" ? i : i + "", void 0, yt), D = (i, ...t) => {
|
563
|
+
const e = i.length === 1 ? i[0] : t.reduce((r, n, s) => r + ((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
|
-
})(n) +
|
570
|
-
return new Vt(e,
|
571
|
-
}, me = (
|
572
|
-
if (
|
573
|
-
|
569
|
+
})(n) + i[s + 1], i[0]);
|
570
|
+
return new Vt(e, i, yt);
|
571
|
+
}, me = (i, t) => {
|
572
|
+
if (vt)
|
573
|
+
i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
574
574
|
else
|
575
575
|
for (const e of t) {
|
576
|
-
const
|
577
|
-
n !== void 0 &&
|
576
|
+
const r = document.createElement("style"), n = F.litNonce;
|
577
|
+
n !== void 0 && r.setAttribute("nonce", n), r.textContent = e.cssText, i.appendChild(r);
|
578
578
|
}
|
579
|
-
}, Pt =
|
579
|
+
}, Pt = vt ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
|
580
580
|
let e = "";
|
581
|
-
for (const
|
582
|
-
e +=
|
581
|
+
for (const r of t.cssRules)
|
582
|
+
e += r.cssText;
|
583
583
|
return ye(e);
|
584
|
-
})(
|
584
|
+
})(i) : i;
|
585
585
|
/**
|
586
586
|
* @license
|
587
587
|
* Copyright 2017 Google LLC
|
588
588
|
* SPDX-License-Identifier: BSD-3-Clause
|
589
589
|
*/
|
590
|
-
const { is: be, defineProperty: _e, getOwnPropertyDescriptor: $e, getOwnPropertyNames: we, getOwnPropertySymbols: Ae, getPrototypeOf: Se } = Object, _ = globalThis, Tt = _.trustedTypes, Ee = Tt ? Tt.emptyScript : "",
|
590
|
+
const { is: be, defineProperty: _e, getOwnPropertyDescriptor: $e, getOwnPropertyNames: we, getOwnPropertySymbols: Ae, getPrototypeOf: Se } = Object, _ = globalThis, Tt = _.trustedTypes, Ee = Tt ? Tt.emptyScript : "", st = _.reactiveElementPolyfillSupport, R = (i, t) => i, J = { toAttribute(i, t) {
|
591
591
|
switch (t) {
|
592
592
|
case Boolean:
|
593
|
-
|
593
|
+
i = i ? Ee : null;
|
594
594
|
break;
|
595
595
|
case Object:
|
596
596
|
case Array:
|
597
|
-
|
597
|
+
i = i == null ? i : JSON.stringify(i);
|
598
598
|
}
|
599
|
-
return
|
600
|
-
}, fromAttribute(
|
601
|
-
let e =
|
599
|
+
return i;
|
600
|
+
}, fromAttribute(i, t) {
|
601
|
+
let e = i;
|
602
602
|
switch (t) {
|
603
603
|
case Boolean:
|
604
|
-
e =
|
604
|
+
e = i !== null;
|
605
605
|
break;
|
606
606
|
case Number:
|
607
|
-
e =
|
607
|
+
e = i === null ? null : Number(i);
|
608
608
|
break;
|
609
609
|
case Object:
|
610
610
|
case Array:
|
611
611
|
try {
|
612
|
-
e = JSON.parse(
|
612
|
+
e = JSON.parse(i);
|
613
613
|
} catch {
|
614
614
|
e = null;
|
615
615
|
}
|
616
616
|
}
|
617
617
|
return e;
|
618
|
-
} },
|
618
|
+
} }, mt = (i, t) => !be(i, t), Ot = { attribute: !0, type: String, converter: J, reflect: !1, hasChanged: mt };
|
619
619
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
620
620
|
class T extends HTMLElement {
|
621
621
|
static addInitializer(t) {
|
@@ -626,11 +626,11 @@ class T extends HTMLElement {
|
|
626
626
|
}
|
627
627
|
static createProperty(t, e = Ot) {
|
628
628
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
629
|
-
const
|
629
|
+
const r = Symbol(), n = this.getPropertyDescriptor(t, r, e);
|
630
630
|
n !== void 0 && _e(this.prototype, t, n);
|
631
631
|
}
|
632
632
|
}
|
633
|
-
static getPropertyDescriptor(t, e,
|
633
|
+
static getPropertyDescriptor(t, e, r) {
|
634
634
|
const { get: n, set: s } = $e(this.prototype, t) ?? { get() {
|
635
635
|
return this[e];
|
636
636
|
}, set(o) {
|
@@ -640,36 +640,36 @@ class T extends HTMLElement {
|
|
640
640
|
return n == null ? void 0 : n.call(this);
|
641
641
|
}, set(o) {
|
642
642
|
const a = n == null ? void 0 : n.call(this);
|
643
|
-
s.call(this, o), this.requestUpdate(t, a,
|
643
|
+
s.call(this, o), this.requestUpdate(t, a, r);
|
644
644
|
}, configurable: !0, enumerable: !0 };
|
645
645
|
}
|
646
646
|
static getPropertyOptions(t) {
|
647
647
|
return this.elementProperties.get(t) ?? Ot;
|
648
648
|
}
|
649
649
|
static _$Ei() {
|
650
|
-
if (this.hasOwnProperty(
|
650
|
+
if (this.hasOwnProperty(R("elementProperties")))
|
651
651
|
return;
|
652
652
|
const t = Se(this);
|
653
653
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
654
654
|
}
|
655
655
|
static finalize() {
|
656
|
-
if (this.hasOwnProperty(
|
656
|
+
if (this.hasOwnProperty(R("finalized")))
|
657
657
|
return;
|
658
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
659
|
-
const e = this.properties,
|
660
|
-
for (const n of
|
658
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(R("properties"))) {
|
659
|
+
const e = this.properties, r = [...we(e), ...Ae(e)];
|
660
|
+
for (const n of r)
|
661
661
|
this.createProperty(n, e[n]);
|
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 [
|
668
|
-
this.elementProperties.set(
|
667
|
+
for (const [r, n] of e)
|
668
|
+
this.elementProperties.set(r, n);
|
669
669
|
}
|
670
670
|
this._$Eh = /* @__PURE__ */ new Map();
|
671
|
-
for (const [e,
|
672
|
-
const n = this._$Eu(e,
|
671
|
+
for (const [e, r] of this.elementProperties) {
|
672
|
+
const n = this._$Eu(e, r);
|
673
673
|
n !== void 0 && this._$Eh.set(n, e);
|
674
674
|
}
|
675
675
|
this.elementStyles = this.finalizeStyles(this.styles);
|
@@ -677,16 +677,16 @@ class T extends HTMLElement {
|
|
677
677
|
static finalizeStyles(t) {
|
678
678
|
const e = [];
|
679
679
|
if (Array.isArray(t)) {
|
680
|
-
const
|
681
|
-
for (const n of
|
680
|
+
const r = new Set(t.flat(1 / 0).reverse());
|
681
|
+
for (const n of r)
|
682
682
|
e.unshift(Pt(n));
|
683
683
|
} else
|
684
684
|
t !== void 0 && e.push(Pt(t));
|
685
685
|
return e;
|
686
686
|
}
|
687
687
|
static _$Eu(t, e) {
|
688
|
-
const
|
689
|
-
return
|
688
|
+
const r = e.attribute;
|
689
|
+
return r === !1 ? void 0 : typeof r == "string" ? r : typeof t == "string" ? t.toLowerCase() : void 0;
|
690
690
|
}
|
691
691
|
constructor() {
|
692
692
|
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
@@ -705,8 +705,8 @@ class T extends HTMLElement {
|
|
705
705
|
}
|
706
706
|
_$E_() {
|
707
707
|
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
708
|
-
for (const
|
709
|
-
this.hasOwnProperty(
|
708
|
+
for (const r of e.keys())
|
709
|
+
this.hasOwnProperty(r) && (t.set(r, this[r]), delete this[r]);
|
710
710
|
t.size > 0 && (this._$Ep = t);
|
711
711
|
}
|
712
712
|
createRenderRoot() {
|
@@ -716,8 +716,8 @@ class T extends HTMLElement {
|
|
716
716
|
connectedCallback() {
|
717
717
|
var t;
|
718
718
|
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) == null || t.forEach((e) => {
|
719
|
-
var
|
720
|
-
return (
|
719
|
+
var r;
|
720
|
+
return (r = e.hostConnected) == null ? void 0 : r.call(e);
|
721
721
|
});
|
722
722
|
}
|
723
723
|
enableUpdating(t) {
|
@@ -725,39 +725,39 @@ class T extends HTMLElement {
|
|
725
725
|
disconnectedCallback() {
|
726
726
|
var t;
|
727
727
|
(t = this._$ES) == null || t.forEach((e) => {
|
728
|
-
var
|
729
|
-
return (
|
728
|
+
var r;
|
729
|
+
return (r = e.hostDisconnected) == null ? void 0 : r.call(e);
|
730
730
|
});
|
731
731
|
}
|
732
|
-
attributeChangedCallback(t, e,
|
733
|
-
this._$AK(t,
|
732
|
+
attributeChangedCallback(t, e, r) {
|
733
|
+
this._$AK(t, r);
|
734
734
|
}
|
735
735
|
_$EO(t, e) {
|
736
736
|
var s;
|
737
|
-
const
|
738
|
-
if (n !== void 0 &&
|
739
|
-
const o = (((s =
|
737
|
+
const r = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, r);
|
738
|
+
if (n !== void 0 && r.reflect === !0) {
|
739
|
+
const o = (((s = r.converter) == null ? void 0 : s.toAttribute) !== void 0 ? r.converter : J).toAttribute(e, r.type);
|
740
740
|
this._$Em = t, o == null ? this.removeAttribute(n) : this.setAttribute(n, o), this._$Em = null;
|
741
741
|
}
|
742
742
|
}
|
743
743
|
_$AK(t, e) {
|
744
744
|
var s;
|
745
|
-
const
|
745
|
+
const r = this.constructor, n = r._$Eh.get(t);
|
746
746
|
if (n !== void 0 && this._$Em !== n) {
|
747
|
-
const o =
|
747
|
+
const o = r.getPropertyOptions(n), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? o.converter : J;
|
748
748
|
this._$Em = n, this[n] = a.fromAttribute(e, o.type), this._$Em = null;
|
749
749
|
}
|
750
750
|
}
|
751
|
-
requestUpdate(t, e,
|
751
|
+
requestUpdate(t, e, r, n = !1, s) {
|
752
752
|
if (t !== void 0) {
|
753
|
-
if (
|
753
|
+
if (r ?? (r = this.constructor.getPropertyOptions(t)), !(r.hasChanged ?? mt)(n ? s : this[t], e))
|
754
754
|
return;
|
755
|
-
this.C(t, e,
|
755
|
+
this.C(t, e, r);
|
756
756
|
}
|
757
757
|
this.isUpdatePending === !1 && (this._$Eg = this._$EP());
|
758
758
|
}
|
759
|
-
C(t, e,
|
760
|
-
this._$AL.has(t) || this._$AL.set(t, e),
|
759
|
+
C(t, e, r) {
|
760
|
+
this._$AL.has(t) || this._$AL.set(t, e), r.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
|
761
761
|
}
|
762
762
|
async _$EP() {
|
763
763
|
this.isUpdatePending = !0;
|
@@ -773,7 +773,7 @@ class T extends HTMLElement {
|
|
773
773
|
return this.performUpdate();
|
774
774
|
}
|
775
775
|
performUpdate() {
|
776
|
-
var
|
776
|
+
var r;
|
777
777
|
if (!this.isUpdatePending)
|
778
778
|
return;
|
779
779
|
if (!this.hasUpdated) {
|
@@ -790,7 +790,7 @@ class T extends HTMLElement {
|
|
790
790
|
let t = !1;
|
791
791
|
const e = this._$AL;
|
792
792
|
try {
|
793
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (
|
793
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (r = this._$ES) == null || r.forEach((n) => {
|
794
794
|
var s;
|
795
795
|
return (s = n.hostUpdate) == null ? void 0 : s.call(n);
|
796
796
|
}), this.update(e)) : this._$ET();
|
@@ -803,9 +803,9 @@ class T extends HTMLElement {
|
|
803
803
|
}
|
804
804
|
_$AE(t) {
|
805
805
|
var e;
|
806
|
-
(e = this._$ES) == null || e.forEach((
|
806
|
+
(e = this._$ES) == null || e.forEach((r) => {
|
807
807
|
var n;
|
808
|
-
return (n =
|
808
|
+
return (n = r.hostUpdated) == null ? void 0 : n.call(r);
|
809
809
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
810
810
|
}
|
811
811
|
_$ET() {
|
@@ -828,40 +828,40 @@ class T extends HTMLElement {
|
|
828
828
|
firstUpdated(t) {
|
829
829
|
}
|
830
830
|
}
|
831
|
-
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[
|
831
|
+
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[R("elementProperties")] = /* @__PURE__ */ new Map(), T[R("finalized")] = /* @__PURE__ */ new Map(), st == null || st({ ReactiveElement: T }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.0.1");
|
832
832
|
/**
|
833
833
|
* @license
|
834
834
|
* Copyright 2017 Google LLC
|
835
835
|
* SPDX-License-Identifier: BSD-3-Clause
|
836
836
|
*/
|
837
|
-
const
|
838
|
-
\f\r]`,
|
839
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Mt = /'/g, kt = /"/g, Jt = /^(?:script|style|textarea|title)$/i, Pe = (
|
840
|
-
function Kt(
|
841
|
-
if (!Array.isArray(
|
837
|
+
const I = globalThis, K = I.trustedTypes, Ut = K ? K.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Ft = "$lit$", b = `lit$${(Math.random() + "").slice(9)}$`, Yt = "?" + b, Ce = `<${Yt}>`, x = document, k = () => x.createComment(""), j = (i) => i === null || typeof i != "object" && typeof i != "function", qt = Array.isArray, xe = (i) => qt(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", ot = `[
|
838
|
+
\f\r]`, U = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Rt = /-->/g, It = />/g, S = RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^
|
839
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Mt = /'/g, kt = /"/g, Jt = /^(?:script|style|textarea|title)$/i, Pe = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), Z = Pe(1), P = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), jt = /* @__PURE__ */ new WeakMap(), C = x.createTreeWalker(x, 129);
|
840
|
+
function Kt(i, t) {
|
841
|
+
if (!Array.isArray(i) || !i.hasOwnProperty("raw"))
|
842
842
|
throw Error("invalid template strings array");
|
843
843
|
return Ut !== void 0 ? Ut.createHTML(t) : t;
|
844
844
|
}
|
845
|
-
const Te = (
|
846
|
-
const e =
|
847
|
-
let n, s = t === 2 ? "<svg>" : "", o =
|
845
|
+
const Te = (i, t) => {
|
846
|
+
const e = i.length - 1, r = [];
|
847
|
+
let n, s = t === 2 ? "<svg>" : "", o = U;
|
848
848
|
for (let a = 0; a < e; a++) {
|
849
|
-
const c =
|
849
|
+
const c = i[a];
|
850
850
|
let h, d, l = -1, f = 0;
|
851
851
|
for (; f < c.length && (o.lastIndex = f, d = o.exec(c), d !== null); )
|
852
|
-
f = o.lastIndex, o ===
|
853
|
-
const u = o === S &&
|
854
|
-
s += o ===
|
852
|
+
f = o.lastIndex, o === U ? d[1] === "!--" ? o = Rt : d[1] !== void 0 ? o = It : d[2] !== void 0 ? (Jt.test(d[2]) && (n = RegExp("</" + d[2], "g")), o = S) : d[3] !== void 0 && (o = S) : o === S ? d[0] === ">" ? (o = n ?? U, l = -1) : d[1] === void 0 ? l = -2 : (l = o.lastIndex - d[2].length, h = d[1], o = d[3] === void 0 ? S : d[3] === '"' ? kt : Mt) : o === kt || o === Mt ? o = S : o === Rt || o === It ? o = U : (o = S, n = void 0);
|
853
|
+
const u = o === S && i[a + 1].startsWith("/>") ? " " : "";
|
854
|
+
s += o === U ? c + Ce : l >= 0 ? (r.push(h), c.slice(0, l) + Ft + c.slice(l) + b + u) : c + b + (l === -2 ? a : u);
|
855
855
|
}
|
856
|
-
return [Kt(
|
856
|
+
return [Kt(i, s + (i[e] || "<?>") + (t === 2 ? "</svg>" : "")), r];
|
857
857
|
};
|
858
|
-
class
|
859
|
-
constructor({ strings: t, _$litType$: e },
|
858
|
+
class H {
|
859
|
+
constructor({ strings: t, _$litType$: e }, r) {
|
860
860
|
let n;
|
861
861
|
this.parts = [];
|
862
862
|
let s = 0, o = 0;
|
863
863
|
const a = t.length - 1, c = this.parts, [h, d] = Te(t, e);
|
864
|
-
if (this.el =
|
864
|
+
if (this.el = H.createElement(h, r), C.currentNode = this.el.content, e === 2) {
|
865
865
|
const l = this.el.content.firstChild;
|
866
866
|
l.replaceWith(...l.childNodes);
|
867
867
|
}
|
@@ -879,8 +879,8 @@ class N {
|
|
879
879
|
if (f > 0) {
|
880
880
|
n.textContent = K ? K.emptyScript : "";
|
881
881
|
for (let u = 0; u < f; u++)
|
882
|
-
n.append(l[u],
|
883
|
-
n.append(l[f],
|
882
|
+
n.append(l[u], k()), C.nextNode(), c.push({ type: 2, index: ++s });
|
883
|
+
n.append(l[f], k());
|
884
884
|
}
|
885
885
|
}
|
886
886
|
} else if (n.nodeType === 8)
|
@@ -895,17 +895,17 @@ class N {
|
|
895
895
|
}
|
896
896
|
}
|
897
897
|
static createElement(t, e) {
|
898
|
-
const
|
899
|
-
return
|
898
|
+
const r = x.createElement("template");
|
899
|
+
return r.innerHTML = t, r;
|
900
900
|
}
|
901
901
|
}
|
902
|
-
function O(
|
902
|
+
function O(i, t, e = i, r) {
|
903
903
|
var o, a;
|
904
904
|
if (t === P)
|
905
905
|
return t;
|
906
|
-
let n =
|
907
|
-
const s =
|
908
|
-
return (n == null ? void 0 : n.constructor) !== s && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), s === void 0 ? n = void 0 : (n = new s(
|
906
|
+
let n = r !== void 0 ? (o = e._$Co) == null ? void 0 : o[r] : e._$Cl;
|
907
|
+
const s = j(t) ? void 0 : t._$litDirective$;
|
908
|
+
return (n == null ? void 0 : n.constructor) !== s && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), s === void 0 ? n = void 0 : (n = new s(i), n._$AT(i, e, r)), r !== void 0 ? (e._$Co ?? (e._$Co = []))[r] = n : e._$Cl = n), n !== void 0 && (t = O(i, n._$AS(i, t.values), n, r)), t;
|
909
909
|
}
|
910
910
|
class Oe {
|
911
911
|
constructor(t, e) {
|
@@ -918,13 +918,13 @@ class Oe {
|
|
918
918
|
return this._$AM._$AU;
|
919
919
|
}
|
920
920
|
u(t) {
|
921
|
-
const { el: { content: e }, parts:
|
921
|
+
const { el: { content: e }, parts: r } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ?? x).importNode(e, !0);
|
922
922
|
C.currentNode = n;
|
923
|
-
let s = C.nextNode(), o = 0, a = 0, c =
|
923
|
+
let s = C.nextNode(), o = 0, a = 0, c = r[0];
|
924
924
|
for (; c !== void 0; ) {
|
925
925
|
if (o === c.index) {
|
926
926
|
let h;
|
927
|
-
c.type === 2 ? h = new
|
927
|
+
c.type === 2 ? h = new L(s, s.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(s, c.name, c.strings, this, t) : c.type === 6 && (h = new Me(s, this, t)), this._$AV.push(h), c = r[++a];
|
928
928
|
}
|
929
929
|
o !== (c == null ? void 0 : c.index) && (s = C.nextNode(), o++);
|
930
930
|
}
|
@@ -932,17 +932,17 @@ class Oe {
|
|
932
932
|
}
|
933
933
|
p(t) {
|
934
934
|
let e = 0;
|
935
|
-
for (const
|
936
|
-
|
935
|
+
for (const r of this._$AV)
|
936
|
+
r !== void 0 && (r.strings !== void 0 ? (r._$AI(t, r, e), e += r.strings.length - 2) : r._$AI(t[e])), e++;
|
937
937
|
}
|
938
938
|
}
|
939
|
-
class
|
939
|
+
class L {
|
940
940
|
get _$AU() {
|
941
941
|
var t;
|
942
942
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
943
943
|
}
|
944
|
-
constructor(t, e,
|
945
|
-
this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM =
|
944
|
+
constructor(t, e, r, n) {
|
945
|
+
this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = r, this.options = n, this._$Cv = (n == null ? void 0 : n.isConnected) ?? !0;
|
946
946
|
}
|
947
947
|
get parentNode() {
|
948
948
|
let t = this._$AA.parentNode;
|
@@ -956,7 +956,7 @@ class B {
|
|
956
956
|
return this._$AB;
|
957
957
|
}
|
958
958
|
_$AI(t, e = this) {
|
959
|
-
t = O(this, t, e),
|
959
|
+
t = O(this, t, e), j(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : xe(t) ? this.T(t) : this._(t);
|
960
960
|
}
|
961
961
|
k(t) {
|
962
962
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -965,11 +965,11 @@ class B {
|
|
965
965
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
966
966
|
}
|
967
967
|
_(t) {
|
968
|
-
this._$AH !== p &&
|
968
|
+
this._$AH !== p && j(this._$AH) ? this._$AA.nextSibling.data = t : this.$(x.createTextNode(t)), this._$AH = t;
|
969
969
|
}
|
970
970
|
g(t) {
|
971
971
|
var s;
|
972
|
-
const { values: e, _$litType$:
|
972
|
+
const { values: e, _$litType$: r } = t, n = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = H.createElement(Kt(r.h, r.h[0]), this.options)), r);
|
973
973
|
if (((s = this._$AH) == null ? void 0 : s._$AD) === n)
|
974
974
|
this._$AH.p(e);
|
975
975
|
else {
|
@@ -979,19 +979,19 @@ class B {
|
|
979
979
|
}
|
980
980
|
_$AC(t) {
|
981
981
|
let e = jt.get(t.strings);
|
982
|
-
return e === void 0 && jt.set(t.strings, e = new
|
982
|
+
return e === void 0 && jt.set(t.strings, e = new H(t)), e;
|
983
983
|
}
|
984
984
|
T(t) {
|
985
985
|
qt(this._$AH) || (this._$AH = [], this._$AR());
|
986
986
|
const e = this._$AH;
|
987
|
-
let
|
987
|
+
let r, n = 0;
|
988
988
|
for (const s of t)
|
989
|
-
n === e.length ? e.push(
|
990
|
-
n < e.length && (this._$AR(
|
989
|
+
n === e.length ? e.push(r = new L(this.k(k()), this.k(k()), this, this.options)) : r = e[n], r._$AI(s), n++;
|
990
|
+
n < e.length && (this._$AR(r && r._$AB.nextSibling, n), e.length = n);
|
991
991
|
}
|
992
992
|
_$AR(t = this._$AA.nextSibling, e) {
|
993
|
-
var
|
994
|
-
for ((
|
993
|
+
var r;
|
994
|
+
for ((r = this._$AP) == null ? void 0 : r.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
995
995
|
const n = t.nextSibling;
|
996
996
|
t.remove(), t = n;
|
997
997
|
}
|
@@ -1008,19 +1008,19 @@ class tt {
|
|
1008
1008
|
get _$AU() {
|
1009
1009
|
return this._$AM._$AU;
|
1010
1010
|
}
|
1011
|
-
constructor(t, e,
|
1012
|
-
this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = n, this.options = s,
|
1011
|
+
constructor(t, e, r, n, s) {
|
1012
|
+
this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = n, this.options = s, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = p;
|
1013
1013
|
}
|
1014
|
-
_$AI(t, e = this,
|
1014
|
+
_$AI(t, e = this, r, n) {
|
1015
1015
|
const s = this.strings;
|
1016
1016
|
let o = !1;
|
1017
1017
|
if (s === void 0)
|
1018
|
-
t = O(this, t, e, 0), o = !
|
1018
|
+
t = O(this, t, e, 0), o = !j(t) || t !== this._$AH && t !== P, o && (this._$AH = t);
|
1019
1019
|
else {
|
1020
1020
|
const a = t;
|
1021
1021
|
let c, h;
|
1022
1022
|
for (t = s[0], c = 0; c < s.length - 1; c++)
|
1023
|
-
h = O(this, a[
|
1023
|
+
h = O(this, a[r + c], e, c), h === P && (h = this._$AH[c]), o || (o = !j(h) || h !== this._$AH[c]), h === p ? t = p : t !== p && (t += (h ?? "") + s[c + 1]), this._$AH[c] = h;
|
1024
1024
|
}
|
1025
1025
|
o && !n && this.O(t);
|
1026
1026
|
}
|
@@ -1045,14 +1045,14 @@ class Re extends tt {
|
|
1045
1045
|
}
|
1046
1046
|
}
|
1047
1047
|
class Ie extends tt {
|
1048
|
-
constructor(t, e,
|
1049
|
-
super(t, e,
|
1048
|
+
constructor(t, e, r, n, s) {
|
1049
|
+
super(t, e, r, n, s), this.type = 5;
|
1050
1050
|
}
|
1051
1051
|
_$AI(t, e = this) {
|
1052
1052
|
if ((t = O(this, t, e, 0) ?? p) === P)
|
1053
1053
|
return;
|
1054
|
-
const
|
1055
|
-
n && this.element.removeEventListener(this.name, this,
|
1054
|
+
const r = this._$AH, n = t === p && r !== p || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, s = t !== p && (r === p || n);
|
1055
|
+
n && this.element.removeEventListener(this.name, this, r), s && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
1056
1056
|
}
|
1057
1057
|
handleEvent(t) {
|
1058
1058
|
var e;
|
@@ -1060,8 +1060,8 @@ class Ie extends tt {
|
|
1060
1060
|
}
|
1061
1061
|
}
|
1062
1062
|
class Me {
|
1063
|
-
constructor(t, e,
|
1064
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options =
|
1063
|
+
constructor(t, e, r) {
|
1064
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = r;
|
1065
1065
|
}
|
1066
1066
|
get _$AU() {
|
1067
1067
|
return this._$AM._$AU;
|
@@ -1070,16 +1070,16 @@ class Me {
|
|
1070
1070
|
O(this, t);
|
1071
1071
|
}
|
1072
1072
|
}
|
1073
|
-
const
|
1074
|
-
|
1075
|
-
const ke = (
|
1076
|
-
const
|
1077
|
-
let n =
|
1073
|
+
const at = I.litHtmlPolyfillSupport;
|
1074
|
+
at == null || at(H, L), (I.litHtmlVersions ?? (I.litHtmlVersions = [])).push("3.0.2");
|
1075
|
+
const ke = (i, t, e) => {
|
1076
|
+
const r = (e == null ? void 0 : e.renderBefore) ?? t;
|
1077
|
+
let n = r._$litPart$;
|
1078
1078
|
if (n === void 0) {
|
1079
1079
|
const s = (e == null ? void 0 : e.renderBefore) ?? null;
|
1080
|
-
|
1080
|
+
r._$litPart$ = n = new L(t.insertBefore(k(), s), s, void 0, e ?? {});
|
1081
1081
|
}
|
1082
|
-
return n._$AI(
|
1082
|
+
return n._$AI(i), n;
|
1083
1083
|
};
|
1084
1084
|
/**
|
1085
1085
|
* @license
|
@@ -1113,73 +1113,63 @@ let $ = class extends T {
|
|
1113
1113
|
};
|
1114
1114
|
var Ht;
|
1115
1115
|
$._$litElement$ = !0, $.finalized = !0, (Ht = globalThis.litElementHydrateSupport) == null || Ht.call(globalThis, { LitElement: $ });
|
1116
|
-
const
|
1117
|
-
|
1116
|
+
const ct = globalThis.litElementPolyfillSupport;
|
1117
|
+
ct == null || ct({ LitElement: $ });
|
1118
1118
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
1119
1119
|
/**
|
1120
1120
|
* @license
|
1121
1121
|
* Copyright 2017 Google LLC
|
1122
1122
|
* SPDX-License-Identifier: BSD-3-Clause
|
1123
1123
|
*/
|
1124
|
-
const je = (
|
1125
|
-
|
1126
|
-
customElements.define(r, t);
|
1127
|
-
}) : customElements.define(r, t);
|
1128
|
-
};
|
1129
|
-
/**
|
1130
|
-
* @license
|
1131
|
-
* Copyright 2017 Google LLC
|
1132
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
1133
|
-
*/
|
1134
|
-
const He = { attribute: !0, type: String, converter: J, reflect: !1, hasChanged: bt }, Ne = (r = He, t, e) => {
|
1135
|
-
const { kind: i, metadata: n } = e;
|
1124
|
+
const je = { attribute: !0, type: String, converter: J, reflect: !1, hasChanged: mt }, He = (i = je, t, e) => {
|
1125
|
+
const { kind: r, metadata: n } = e;
|
1136
1126
|
let s = globalThis.litPropertyMetadata.get(n);
|
1137
|
-
if (s === void 0 && globalThis.litPropertyMetadata.set(n, s = /* @__PURE__ */ new Map()), s.set(e.name,
|
1127
|
+
if (s === void 0 && globalThis.litPropertyMetadata.set(n, s = /* @__PURE__ */ new Map()), s.set(e.name, i), r === "accessor") {
|
1138
1128
|
const { name: o } = e;
|
1139
1129
|
return { set(a) {
|
1140
1130
|
const c = t.get.call(this);
|
1141
|
-
t.set.call(this, a), this.requestUpdate(o, c,
|
1131
|
+
t.set.call(this, a), this.requestUpdate(o, c, i);
|
1142
1132
|
}, init(a) {
|
1143
|
-
return a !== void 0 && this.C(o, void 0,
|
1133
|
+
return a !== void 0 && this.C(o, void 0, i), a;
|
1144
1134
|
} };
|
1145
1135
|
}
|
1146
|
-
if (
|
1136
|
+
if (r === "setter") {
|
1147
1137
|
const { name: o } = e;
|
1148
1138
|
return function(a) {
|
1149
1139
|
const c = this[o];
|
1150
|
-
t.call(this, a), this.requestUpdate(o, c,
|
1140
|
+
t.call(this, a), this.requestUpdate(o, c, i);
|
1151
1141
|
};
|
1152
1142
|
}
|
1153
|
-
throw Error("Unsupported decorator location: " +
|
1143
|
+
throw Error("Unsupported decorator location: " + r);
|
1154
1144
|
};
|
1155
|
-
function y(
|
1156
|
-
return (t, e) => typeof e == "object" ?
|
1145
|
+
function y(i) {
|
1146
|
+
return (t, e) => typeof e == "object" ? He(i, t, e) : ((r, n, s) => {
|
1157
1147
|
const o = n.hasOwnProperty(s);
|
1158
|
-
return n.constructor.createProperty(s, o ? { ...
|
1159
|
-
})(
|
1148
|
+
return n.constructor.createProperty(s, o ? { ...r, wrapped: !0 } : r), o ? Object.getOwnPropertyDescriptor(n, s) : void 0;
|
1149
|
+
})(i, t, e);
|
1160
1150
|
}
|
1161
1151
|
/**
|
1162
1152
|
* @license
|
1163
1153
|
* Copyright 2017 Google LLC
|
1164
1154
|
* SPDX-License-Identifier: BSD-3-Clause
|
1165
1155
|
*/
|
1166
|
-
function
|
1167
|
-
return y({ ...
|
1156
|
+
function B(i) {
|
1157
|
+
return y({ ...i, state: !0, attribute: !1 });
|
1168
1158
|
}
|
1169
1159
|
/**
|
1170
1160
|
* @license
|
1171
1161
|
* Copyright 2017 Google LLC
|
1172
1162
|
* SPDX-License-Identifier: BSD-3-Clause
|
1173
1163
|
*/
|
1174
|
-
const Zt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Qt = (
|
1164
|
+
const Zt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Qt = (i) => (...t) => ({ _$litDirective$: i, values: t });
|
1175
1165
|
class Xt {
|
1176
1166
|
constructor(t) {
|
1177
1167
|
}
|
1178
1168
|
get _$AU() {
|
1179
1169
|
return this._$AM._$AU;
|
1180
1170
|
}
|
1181
|
-
_$AT(t, e,
|
1182
|
-
this._$Ct = t, this._$AM = e, this._$Ci =
|
1171
|
+
_$AT(t, e, r) {
|
1172
|
+
this._$Ct = t, this._$AM = e, this._$Ci = r;
|
1183
1173
|
}
|
1184
1174
|
_$AS(t, e) {
|
1185
1175
|
return this.update(t, e);
|
@@ -1193,24 +1183,24 @@ class Xt {
|
|
1193
1183
|
* Copyright 2018 Google LLC
|
1194
1184
|
* SPDX-License-Identifier: BSD-3-Clause
|
1195
1185
|
*/
|
1196
|
-
const
|
1197
|
-
constructor(
|
1186
|
+
const Ne = Qt(class extends Xt {
|
1187
|
+
constructor(i) {
|
1198
1188
|
var t;
|
1199
|
-
if (super(
|
1189
|
+
if (super(i), i.type !== Zt.ATTRIBUTE || i.name !== "class" || ((t = i.strings) == null ? void 0 : t.length) > 2)
|
1200
1190
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
1201
1191
|
}
|
1202
|
-
render(
|
1203
|
-
return " " + Object.keys(
|
1192
|
+
render(i) {
|
1193
|
+
return " " + Object.keys(i).filter((t) => i[t]).join(" ") + " ";
|
1204
1194
|
}
|
1205
|
-
update(
|
1206
|
-
var
|
1195
|
+
update(i, [t]) {
|
1196
|
+
var r, n;
|
1207
1197
|
if (this.it === void 0) {
|
1208
|
-
this.it = /* @__PURE__ */ new Set(),
|
1198
|
+
this.it = /* @__PURE__ */ new Set(), i.strings !== void 0 && (this.st = new Set(i.strings.join(" ").split(/\s/).filter((s) => s !== "")));
|
1209
1199
|
for (const s in t)
|
1210
|
-
t[s] && !((
|
1200
|
+
t[s] && !((r = this.st) != null && r.has(s)) && this.it.add(s);
|
1211
1201
|
return this.render(t);
|
1212
1202
|
}
|
1213
|
-
const e =
|
1203
|
+
const e = i.element.classList;
|
1214
1204
|
for (const s of this.it)
|
1215
1205
|
s in t || (e.remove(s), this.it.delete(s));
|
1216
1206
|
for (const s in t) {
|
@@ -1219,28 +1209,28 @@ const De = Qt(class extends Xt {
|
|
1219
1209
|
}
|
1220
1210
|
return P;
|
1221
1211
|
}
|
1222
|
-
}), G = (
|
1223
|
-
|
1224
|
-
}, te = (
|
1225
|
-
var e,
|
1226
|
-
G((e =
|
1227
|
-
(
|
1212
|
+
}), G = (i, t, e) => {
|
1213
|
+
i && e.style.setProperty(t, i);
|
1214
|
+
}, te = (i, t) => {
|
1215
|
+
var e, r, n, s;
|
1216
|
+
G((e = i.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), G(
|
1217
|
+
(r = i.colors) == null ? void 0 : r.textOnPrimaryBackground,
|
1228
1218
|
"--text-on-primary-background",
|
1229
1219
|
t
|
1230
1220
|
), G(
|
1231
|
-
(n =
|
1221
|
+
(n = i.colors) == null ? void 0 : n.secondaryBackground,
|
1232
1222
|
"--secondary-background",
|
1233
1223
|
t
|
1234
1224
|
), G(
|
1235
|
-
(s =
|
1225
|
+
(s = i.colors) == null ? void 0 : s.textOnSecondaryBackground,
|
1236
1226
|
"--text-on-secondary-background",
|
1237
1227
|
t
|
1238
1228
|
);
|
1239
1229
|
};
|
1240
|
-
var
|
1241
|
-
for (var n =
|
1242
|
-
(o =
|
1243
|
-
return
|
1230
|
+
var De = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, et = (i, t, e, r) => {
|
1231
|
+
for (var n = r > 1 ? void 0 : r ? Le(t, e) : t, s = i.length - 1, o; s >= 0; s--)
|
1232
|
+
(o = i[s]) && (n = (r ? o(t, e, n) : o(n)) || n);
|
1233
|
+
return r && n && De(t, e, n), n;
|
1244
1234
|
};
|
1245
1235
|
class A extends $ {
|
1246
1236
|
constructor() {
|
@@ -1270,8 +1260,8 @@ class A extends $ {
|
|
1270
1260
|
return p;
|
1271
1261
|
const e = async (o) => await import("./index-5087564d.mjs").then(
|
1272
1262
|
(c) => c[o]
|
1273
|
-
), { type:
|
1274
|
-
switch (
|
1263
|
+
), { type: r, content: n } = t;
|
1264
|
+
switch (r) {
|
1275
1265
|
case "Telia": {
|
1276
1266
|
const o = await e(n);
|
1277
1267
|
return o ? Z`<telia-icon
|
@@ -1286,7 +1276,7 @@ class A extends $ {
|
|
1286
1276
|
}
|
1287
1277
|
render() {
|
1288
1278
|
return Z`<button
|
1289
|
-
class=${
|
1279
|
+
class=${Ne({
|
1290
1280
|
trigger: !0,
|
1291
1281
|
active: this.active,
|
1292
1282
|
rendered: this.loaded
|
@@ -1325,7 +1315,7 @@ class A extends $ {
|
|
1325
1315
|
}
|
1326
1316
|
}
|
1327
1317
|
A.styles = [
|
1328
|
-
|
1318
|
+
D`
|
1329
1319
|
:host {
|
1330
1320
|
--voca-rem-multiplier: 0.625;
|
1331
1321
|
display: block;
|
@@ -1399,35 +1389,35 @@ et([
|
|
1399
1389
|
y({ attribute: !1 })
|
1400
1390
|
], A.prototype, "application", 2);
|
1401
1391
|
et([
|
1402
|
-
|
1392
|
+
B()
|
1403
1393
|
], A.prototype, "active", 2);
|
1404
1394
|
et([
|
1405
|
-
|
1395
|
+
B()
|
1406
1396
|
], A.prototype, "loaded", 2);
|
1407
1397
|
et([
|
1408
|
-
|
1398
|
+
B()
|
1409
1399
|
], A.prototype, "icon", 2);
|
1410
|
-
var
|
1411
|
-
for (var n =
|
1412
|
-
(o =
|
1413
|
-
return
|
1400
|
+
var Be = Object.defineProperty, ze = Object.getOwnPropertyDescriptor, E = (i, t, e, r) => {
|
1401
|
+
for (var n = r > 1 ? void 0 : r ? ze(t, e) : t, s = i.length - 1, o; s >= 0; s--)
|
1402
|
+
(o = i[s]) && (n = (r ? o(t, e, n) : o(n)) || n);
|
1403
|
+
return r && n && Be(t, e, n), n;
|
1414
1404
|
};
|
1415
|
-
const
|
1416
|
-
class t extends
|
1405
|
+
const We = (i) => {
|
1406
|
+
class t extends i {
|
1417
1407
|
constructor() {
|
1418
1408
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
1419
1409
|
}
|
1420
|
-
writeProperties(
|
1421
|
-
this.properties =
|
1410
|
+
writeProperties(r) {
|
1411
|
+
this.properties = r;
|
1422
1412
|
}
|
1423
|
-
writeLayout(
|
1424
|
-
this.layout =
|
1413
|
+
writeLayout(r) {
|
1414
|
+
this.layout = r;
|
1425
1415
|
}
|
1426
|
-
writeContext(
|
1427
|
-
this.context =
|
1416
|
+
writeContext(r) {
|
1417
|
+
this.context = r;
|
1428
1418
|
}
|
1429
|
-
addChild(
|
1430
|
-
|
1419
|
+
addChild(r) {
|
1420
|
+
r.parent = this, this.nodes.push(r);
|
1431
1421
|
}
|
1432
1422
|
connectedCallback() {
|
1433
1423
|
super.connectedCallback(), this.renderRoot.host.style.setProperty(
|
@@ -1438,7 +1428,7 @@ const Ge = (r) => {
|
|
1438
1428
|
}
|
1439
1429
|
return t.styles = [
|
1440
1430
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
1441
|
-
|
1431
|
+
D`
|
1442
1432
|
:host {
|
1443
1433
|
font-family: var(--font-family);
|
1444
1434
|
grid-column: span var(--width);
|
@@ -1467,13 +1457,13 @@ const Ge = (r) => {
|
|
1467
1457
|
y({ attribute: !1 })
|
1468
1458
|
], t.prototype, "parent", 2), t;
|
1469
1459
|
};
|
1470
|
-
class
|
1460
|
+
class bt extends We($) {
|
1471
1461
|
render() {
|
1472
1462
|
return Z`Non resolved component`;
|
1473
1463
|
}
|
1474
1464
|
}
|
1475
|
-
|
1476
|
-
|
1465
|
+
bt.styles = [
|
1466
|
+
D`
|
1477
1467
|
:host {
|
1478
1468
|
display: block;
|
1479
1469
|
}
|
@@ -1484,68 +1474,68 @@ _t.styles = [
|
|
1484
1474
|
* Copyright 2020 Google LLC
|
1485
1475
|
* SPDX-License-Identifier: BSD-3-Clause
|
1486
1476
|
*/
|
1487
|
-
const
|
1477
|
+
const Ge = (i) => i.strings === void 0;
|
1488
1478
|
/**
|
1489
1479
|
* @license
|
1490
1480
|
* Copyright 2017 Google LLC
|
1491
1481
|
* SPDX-License-Identifier: BSD-3-Clause
|
1492
1482
|
*/
|
1493
|
-
const
|
1494
|
-
var
|
1495
|
-
const e =
|
1483
|
+
const M = (i, t) => {
|
1484
|
+
var r;
|
1485
|
+
const e = i._$AN;
|
1496
1486
|
if (e === void 0)
|
1497
1487
|
return !1;
|
1498
1488
|
for (const n of e)
|
1499
|
-
(
|
1489
|
+
(r = n._$AO) == null || r.call(n, t, !1), M(n, t);
|
1500
1490
|
return !0;
|
1501
|
-
}, Q = (
|
1491
|
+
}, Q = (i) => {
|
1502
1492
|
let t, e;
|
1503
1493
|
do {
|
1504
|
-
if ((t =
|
1494
|
+
if ((t = i._$AM) === void 0)
|
1505
1495
|
break;
|
1506
|
-
e = t._$AN, e.delete(
|
1496
|
+
e = t._$AN, e.delete(i), i = t;
|
1507
1497
|
} while ((e == null ? void 0 : e.size) === 0);
|
1508
|
-
}, ee = (
|
1509
|
-
for (let t; t =
|
1498
|
+
}, ee = (i) => {
|
1499
|
+
for (let t; t = i._$AM; i = t) {
|
1510
1500
|
let e = t._$AN;
|
1511
1501
|
if (e === void 0)
|
1512
1502
|
t._$AN = e = /* @__PURE__ */ new Set();
|
1513
|
-
else if (e.has(
|
1503
|
+
else if (e.has(i))
|
1514
1504
|
break;
|
1515
|
-
e.add(
|
1505
|
+
e.add(i), Ye(t);
|
1516
1506
|
}
|
1517
1507
|
};
|
1518
|
-
function
|
1519
|
-
this._$AN !== void 0 ? (Q(this), this._$AM =
|
1508
|
+
function Ve(i) {
|
1509
|
+
this._$AN !== void 0 ? (Q(this), this._$AM = i, ee(this)) : this._$AM = i;
|
1520
1510
|
}
|
1521
|
-
function
|
1522
|
-
const
|
1511
|
+
function Fe(i, t = !1, e = 0) {
|
1512
|
+
const r = this._$AH, n = this._$AN;
|
1523
1513
|
if (n !== void 0 && n.size !== 0)
|
1524
1514
|
if (t)
|
1525
|
-
if (Array.isArray(
|
1526
|
-
for (let s = e; s <
|
1527
|
-
|
1515
|
+
if (Array.isArray(r))
|
1516
|
+
for (let s = e; s < r.length; s++)
|
1517
|
+
M(r[s], !1), Q(r[s]);
|
1528
1518
|
else
|
1529
|
-
|
1519
|
+
r != null && (M(r, !1), Q(r));
|
1530
1520
|
else
|
1531
|
-
|
1521
|
+
M(this, i);
|
1532
1522
|
}
|
1533
|
-
const
|
1534
|
-
|
1523
|
+
const Ye = (i) => {
|
1524
|
+
i.type == Zt.CHILD && (i._$AP ?? (i._$AP = Fe), i._$AQ ?? (i._$AQ = Ve));
|
1535
1525
|
};
|
1536
|
-
class
|
1526
|
+
class qe extends Xt {
|
1537
1527
|
constructor() {
|
1538
1528
|
super(...arguments), this._$AN = void 0;
|
1539
1529
|
}
|
1540
|
-
_$AT(t, e,
|
1541
|
-
super._$AT(t, e,
|
1530
|
+
_$AT(t, e, r) {
|
1531
|
+
super._$AT(t, e, r), ee(this), this.isConnected = t._$AU;
|
1542
1532
|
}
|
1543
1533
|
_$AO(t, e = !0) {
|
1544
|
-
var
|
1545
|
-
t !== this.isConnected && (this.isConnected = t, t ? (
|
1534
|
+
var r, n;
|
1535
|
+
t !== this.isConnected && (this.isConnected = t, t ? (r = this.reconnected) == null || r.call(this) : (n = this.disconnected) == null || n.call(this)), e && (M(this, t), Q(this));
|
1546
1536
|
}
|
1547
1537
|
setValue(t) {
|
1548
|
-
if (
|
1538
|
+
if (Ge(this._$Ct))
|
1549
1539
|
this._$Ct._$AI(t, this);
|
1550
1540
|
else {
|
1551
1541
|
const e = [...this._$Ct._$AH];
|
@@ -1562,29 +1552,29 @@ class Je extends Xt {
|
|
1562
1552
|
* Copyright 2020 Google LLC
|
1563
1553
|
* SPDX-License-Identifier: BSD-3-Clause
|
1564
1554
|
*/
|
1565
|
-
const
|
1566
|
-
class
|
1555
|
+
const Je = () => new Ke();
|
1556
|
+
class Ke {
|
1567
1557
|
}
|
1568
|
-
const
|
1569
|
-
render(
|
1558
|
+
const lt = /* @__PURE__ */ new WeakMap(), Ze = Qt(class extends qe {
|
1559
|
+
render(i) {
|
1570
1560
|
return p;
|
1571
1561
|
}
|
1572
|
-
update(
|
1573
|
-
var
|
1562
|
+
update(i, [t]) {
|
1563
|
+
var r;
|
1574
1564
|
const e = t !== this.G;
|
1575
|
-
return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (
|
1565
|
+
return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (r = i.options) == null ? void 0 : r.host, this.ot(this.lt = i.element)), p;
|
1576
1566
|
}
|
1577
|
-
ot(
|
1567
|
+
ot(i) {
|
1578
1568
|
if (typeof this.G == "function") {
|
1579
1569
|
const t = this.ct ?? globalThis;
|
1580
|
-
let e =
|
1581
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
1570
|
+
let e = lt.get(t);
|
1571
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), lt.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ct, void 0), e.set(this.G, i), i !== void 0 && this.G.call(this.ct, i);
|
1582
1572
|
} else
|
1583
|
-
this.G.value =
|
1573
|
+
this.G.value = i;
|
1584
1574
|
}
|
1585
1575
|
get rt() {
|
1586
|
-
var
|
1587
|
-
return typeof this.G == "function" ? (
|
1576
|
+
var i, t;
|
1577
|
+
return typeof this.G == "function" ? (i = lt.get(this.ct ?? globalThis)) == null ? void 0 : i.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
1588
1578
|
}
|
1589
1579
|
disconnected() {
|
1590
1580
|
this.rt === this.lt && this.ot(void 0);
|
@@ -1598,21 +1588,21 @@ const ht = /* @__PURE__ */ new WeakMap(), Qe = Qt(class extends Je {
|
|
1598
1588
|
* Copyright 2021 Google LLC
|
1599
1589
|
* SPDX-License-Identifier: BSD-3-Clause
|
1600
1590
|
*/
|
1601
|
-
function*
|
1602
|
-
if (
|
1591
|
+
function* Qe(i, t) {
|
1592
|
+
if (i !== void 0) {
|
1603
1593
|
let e = 0;
|
1604
|
-
for (const
|
1605
|
-
yield t(
|
1594
|
+
for (const r of i)
|
1595
|
+
yield t(r, e++);
|
1606
1596
|
}
|
1607
1597
|
}
|
1608
|
-
var w = /* @__PURE__ */ ((
|
1609
|
-
for (var n =
|
1610
|
-
(o =
|
1611
|
-
return
|
1598
|
+
var w = /* @__PURE__ */ ((i) => (i.Inline = "inline", i.Trigger = "trigger", i))(w || {}), Xe = Object.defineProperty, tr = Object.getOwnPropertyDescriptor, er = (i, t, e, r) => {
|
1599
|
+
for (var n = r > 1 ? void 0 : r ? tr(t, e) : t, s = i.length - 1, o; s >= 0; s--)
|
1600
|
+
(o = i[s]) && (n = (r ? o(t, e, n) : o(n)) || n);
|
1601
|
+
return r && n && Xe(t, e, n), n;
|
1612
1602
|
};
|
1613
1603
|
class rt extends $ {
|
1614
1604
|
constructor() {
|
1615
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
1605
|
+
super(...arguments), this.nodes = [], this.wrapperRef = Je();
|
1616
1606
|
}
|
1617
1607
|
addChild(t) {
|
1618
1608
|
t.parent = this, this.nodes.push(t);
|
@@ -1627,12 +1617,12 @@ class rt extends $ {
|
|
1627
1617
|
this.applyBranding();
|
1628
1618
|
}
|
1629
1619
|
render() {
|
1630
|
-
return this.application.renderStrategy === w.Trigger && this.renderRoot.host.classList.add("floating"), Z`<div class="widget-container" ${
|
1631
|
-
${
|
1620
|
+
return this.application.renderStrategy === w.Trigger && this.renderRoot.host.classList.add("floating"), Z`<div class="widget-container" ${Ze(this.wrapperRef)}>
|
1621
|
+
${Qe(this.nodes, (t) => t)}
|
1632
1622
|
</div>`;
|
1633
1623
|
}
|
1634
1624
|
}
|
1635
|
-
rt.styles =
|
1625
|
+
rt.styles = D`
|
1636
1626
|
:host {
|
1637
1627
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1638
1628
|
--spacing-xs: 0.2rem;
|
@@ -1711,16 +1701,16 @@ rt.styles = L`
|
|
1711
1701
|
}
|
1712
1702
|
}
|
1713
1703
|
`;
|
1714
|
-
|
1704
|
+
er([
|
1715
1705
|
y({ attribute: !1 })
|
1716
1706
|
], rt.prototype, "application", 2);
|
1717
|
-
class
|
1707
|
+
class rr {
|
1718
1708
|
constructor() {
|
1719
1709
|
this.root = this.createRoot();
|
1720
1710
|
}
|
1721
1711
|
createComponentModel(t, e) {
|
1722
1712
|
this.root.application = e;
|
1723
|
-
const
|
1713
|
+
const r = (a) => {
|
1724
1714
|
if (Array.isArray(a)) {
|
1725
1715
|
const [c, ...h] = a;
|
1726
1716
|
return {
|
@@ -1734,7 +1724,7 @@ class ir {
|
|
1734
1724
|
};
|
1735
1725
|
}, n = (a, c, h, d) => {
|
1736
1726
|
h.forEach((l) => {
|
1737
|
-
const f =
|
1727
|
+
const f = r(l), u = d[f.definitionId];
|
1738
1728
|
if (!u) {
|
1739
1729
|
console.error(
|
1740
1730
|
`No definition found for component type '${f.definitionId}'.`
|
@@ -1757,10 +1747,10 @@ class ir {
|
|
1757
1747
|
return new rt();
|
1758
1748
|
}
|
1759
1749
|
createNode(t, e) {
|
1760
|
-
const
|
1761
|
-
if (!
|
1762
|
-
return console.warn(`Unable to resolve component: ${e}`), new
|
1763
|
-
const n = new
|
1750
|
+
const r = this.resolveComponent(e);
|
1751
|
+
if (!r)
|
1752
|
+
return console.warn(`Unable to resolve component: ${e}`), new bt();
|
1753
|
+
const n = new r();
|
1764
1754
|
return n.type = e, n.name = t, n;
|
1765
1755
|
}
|
1766
1756
|
resolveComponent(t) {
|
@@ -1774,31 +1764,31 @@ const re = class {
|
|
1774
1764
|
constructor() {
|
1775
1765
|
this.components = /* @__PURE__ */ new Map();
|
1776
1766
|
}
|
1777
|
-
getComponent(
|
1778
|
-
const t = this.components.get(
|
1767
|
+
getComponent(i) {
|
1768
|
+
const t = this.components.get(i);
|
1779
1769
|
return t || console.warn(
|
1780
|
-
`Unable to resolve component: ${
|
1770
|
+
`Unable to resolve component: ${i}. You most likely forgot to register the required plugin.`
|
1781
1771
|
), t;
|
1782
1772
|
}
|
1783
|
-
registerComponent(
|
1784
|
-
this.components.set(
|
1773
|
+
registerComponent(i, t) {
|
1774
|
+
this.components.set(i, t);
|
1785
1775
|
}
|
1786
1776
|
async loadComponents() {
|
1787
|
-
const
|
1788
|
-
this.defineAsWebComponent(t,
|
1777
|
+
const i = [...this.components.entries()].map(([t, e]) => e.then((r) => {
|
1778
|
+
this.defineAsWebComponent(t, r.default);
|
1789
1779
|
}));
|
1790
|
-
await Promise.all(
|
1780
|
+
await Promise.all(i);
|
1791
1781
|
}
|
1792
|
-
defineAsWebComponent(
|
1793
|
-
const e = re.ResolveWebComponentName(
|
1782
|
+
defineAsWebComponent(i, t) {
|
1783
|
+
const e = re.ResolveWebComponentName(i);
|
1794
1784
|
customElements.get(e) || customElements.define(e, t);
|
1795
1785
|
}
|
1796
1786
|
};
|
1797
1787
|
let ie = re;
|
1798
|
-
ie.ResolveWebComponentName = (
|
1799
|
-
class
|
1800
|
-
constructor(t, e,
|
1801
|
-
this.name = t, this.container = e, this.settings =
|
1788
|
+
ie.ResolveWebComponentName = (i) => `ace-${i}`;
|
1789
|
+
class ir {
|
1790
|
+
constructor(t, e, r, n) {
|
1791
|
+
this.name = t, this.container = e, this.settings = r, this.options = n, this.platform = new rr(), this.renderStrategy = w.Inline, this.autoActivate = !1, this.plugins = [], this.componentResolver = new ie(), this.renderStrategy = this.options.renderStrategy || w.Inline, this.triggerIcon = this.options.triggerIcon, typeof n.autoActivate == "boolean" && (this.autoActivate = n.autoActivate), this.container.register("$settings", r);
|
1802
1792
|
}
|
1803
1793
|
async activate() {
|
1804
1794
|
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(Gt.Ready), this.autoActivate) {
|
@@ -1836,35 +1826,35 @@ class nr {
|
|
1836
1826
|
const ne = class {
|
1837
1827
|
// TODO:
|
1838
1828
|
// private static endpoint = 'http://localhost:5299/api'; // TODO:
|
1839
|
-
static async getSite(
|
1840
|
-
const e = await (await fetch(
|
1829
|
+
static async getSite(i) {
|
1830
|
+
const e = await (await fetch(i)).json();
|
1841
1831
|
return e ? {
|
1842
1832
|
id: e.id,
|
1843
|
-
apps: e.widgets.map((
|
1833
|
+
apps: e.widgets.map((r) => {
|
1844
1834
|
let n = w.Inline;
|
1845
|
-
return
|
1846
|
-
id:
|
1847
|
-
widgetId:
|
1835
|
+
return r.renderStrategy === "Trigger" && (n = w.Trigger), {
|
1836
|
+
id: r.id,
|
1837
|
+
widgetId: r.widgetId,
|
1848
1838
|
renderStrategy: n,
|
1849
1839
|
triggerIcon: {
|
1850
1840
|
type: "Telia",
|
1851
|
-
content:
|
1841
|
+
content: r.triggerIcon
|
1852
1842
|
}
|
1853
1843
|
};
|
1854
1844
|
})
|
1855
1845
|
} : null;
|
1856
1846
|
}
|
1857
|
-
static async getWidget(
|
1858
|
-
const e = await (await fetch(`${ne.endpoint}/widget/${
|
1847
|
+
static async getWidget(i) {
|
1848
|
+
const e = await (await fetch(`${ne.endpoint}/widget/${i}`)).json();
|
1859
1849
|
return e ? {
|
1860
1850
|
name: e.name,
|
1861
1851
|
config: JSON.parse(e.configuration)
|
1862
1852
|
} : null;
|
1863
1853
|
}
|
1864
1854
|
};
|
1865
|
-
let
|
1866
|
-
|
1867
|
-
class
|
1855
|
+
let gt = ne;
|
1856
|
+
gt.endpoint = "https://widgets.ace.teliacompany.net/api";
|
1857
|
+
class nr {
|
1868
1858
|
constructor() {
|
1869
1859
|
this.applications = [], this.container = new Ct("environment", this), setTimeout(() => {
|
1870
1860
|
this.notifyWidgetsOfCreation();
|
@@ -1882,25 +1872,25 @@ class sr {
|
|
1882
1872
|
}
|
1883
1873
|
notifyWidgetsOfCreation() {
|
1884
1874
|
document.querySelectorAll("ace-widget").forEach((e) => {
|
1885
|
-
const
|
1886
|
-
|
1875
|
+
const r = this.applications.find((n) => n.name === e.name);
|
1876
|
+
r && e.dispatchEvent(
|
1887
1877
|
new CustomEvent("environment-created", {
|
1888
|
-
detail: { widget:
|
1878
|
+
detail: { widget: r }
|
1889
1879
|
})
|
1890
1880
|
);
|
1891
1881
|
});
|
1892
1882
|
}
|
1893
|
-
registerApp(t, e,
|
1894
|
-
const n = new Ct(t, this), s = new
|
1883
|
+
registerApp(t, e, r) {
|
1884
|
+
const n = new Ct(t, this), s = new ir(t, n, e, r);
|
1895
1885
|
this.applications.push(s);
|
1896
1886
|
}
|
1897
1887
|
}
|
1898
|
-
class
|
1888
|
+
class sr {
|
1899
1889
|
constructor(t) {
|
1900
1890
|
this.configurations = [], typeof t == "string" ? this.url = t : this.loadFromConfig(t);
|
1901
1891
|
}
|
1902
1892
|
async load(t) {
|
1903
|
-
const e = await
|
1893
|
+
const e = await gt.getSite(t);
|
1904
1894
|
if (!e) {
|
1905
1895
|
console.warn(`Unable to load site from the url provided: ${t}`);
|
1906
1896
|
return;
|
@@ -1921,13 +1911,13 @@ class or {
|
|
1921
1911
|
}
|
1922
1912
|
async bootstrap(t) {
|
1923
1913
|
var e;
|
1924
|
-
this.url && await this.load(this.url), this.environment = new
|
1925
|
-
for await (const
|
1926
|
-
const n = await
|
1914
|
+
this.url && await this.load(this.url), this.environment = new nr(), this.addGlobal(this.environment);
|
1915
|
+
for await (const r of this.configurations) {
|
1916
|
+
const n = await gt.getWidget(r.widgetId);
|
1927
1917
|
n && ((e = this.environment) == null || e.registerApp(n.name, n.config, {
|
1928
|
-
renderStrategy:
|
1929
|
-
triggerIcon:
|
1930
|
-
autoActivate:
|
1918
|
+
renderStrategy: r.renderStrategy,
|
1919
|
+
triggerIcon: r.triggerIcon,
|
1920
|
+
autoActivate: r.autoActivate
|
1931
1921
|
}));
|
1932
1922
|
}
|
1933
1923
|
t(this.environment), await this.environment.bootstrap();
|
@@ -1936,12 +1926,12 @@ class or {
|
|
1936
1926
|
globalThis.widgets = t;
|
1937
1927
|
}
|
1938
1928
|
}
|
1939
|
-
var
|
1940
|
-
for (var n =
|
1941
|
-
(o =
|
1942
|
-
return
|
1929
|
+
var or = Object.defineProperty, ar = Object.getOwnPropertyDescriptor, _t = (i, t, e, r) => {
|
1930
|
+
for (var n = r > 1 ? void 0 : r ? ar(t, e) : t, s = i.length - 1, o; s >= 0; s--)
|
1931
|
+
(o = i[s]) && (n = (r ? o(t, e, n) : o(n)) || n);
|
1932
|
+
return r && n && or(t, e, n), n;
|
1943
1933
|
};
|
1944
|
-
|
1934
|
+
class z extends $ {
|
1945
1935
|
constructor() {
|
1946
1936
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
1947
1937
|
}
|
@@ -1951,60 +1941,58 @@ let U = class extends $ {
|
|
1951
1941
|
disconnectedCallback() {
|
1952
1942
|
super.disconnectedCallback(), this.removeEventListener("environment-created", this.onEnvironmentCreated);
|
1953
1943
|
}
|
1954
|
-
async onEnvironmentCreated(
|
1955
|
-
this.widget =
|
1944
|
+
async onEnvironmentCreated(t) {
|
1945
|
+
this.widget = t.detail.widget, await this.activate(), this.requestUpdate();
|
1956
1946
|
}
|
1957
1947
|
async activate() {
|
1958
1948
|
this.widget && (await this.widget.activate(), this.status = "activated");
|
1959
1949
|
}
|
1960
1950
|
async getGlobalEnvironment() {
|
1961
|
-
const
|
1962
|
-
|
1963
|
-
(
|
1951
|
+
const t = globalThis.widgets;
|
1952
|
+
t && (this.widget = t.applications.find(
|
1953
|
+
(e) => e.name === this.name
|
1964
1954
|
), await this.activate());
|
1965
1955
|
}
|
1966
1956
|
render() {
|
1967
1957
|
if (!this.widget || this.status !== "activated")
|
1968
1958
|
return p;
|
1969
1959
|
if (this.widget.renderStrategy === w.Trigger) {
|
1970
|
-
const
|
1971
|
-
return
|
1960
|
+
const t = new A();
|
1961
|
+
return t.application = this.widget, t;
|
1972
1962
|
}
|
1973
1963
|
return this.widget.render();
|
1974
1964
|
}
|
1975
|
-
}
|
1976
|
-
|
1977
|
-
|
1965
|
+
}
|
1966
|
+
z.styles = [
|
1967
|
+
D`
|
1978
1968
|
:host {
|
1979
1969
|
display: block;
|
1980
1970
|
}
|
1981
1971
|
`
|
1982
1972
|
];
|
1983
|
-
|
1973
|
+
_t([
|
1984
1974
|
y({ attribute: !0 })
|
1985
|
-
],
|
1986
|
-
|
1987
|
-
|
1988
|
-
],
|
1989
|
-
|
1990
|
-
|
1991
|
-
],
|
1992
|
-
U = it([
|
1993
|
-
je("ace-widget")
|
1994
|
-
], U);
|
1975
|
+
], z.prototype, "name", 2);
|
1976
|
+
_t([
|
1977
|
+
B()
|
1978
|
+
], z.prototype, "widget", 2);
|
1979
|
+
_t([
|
1980
|
+
B()
|
1981
|
+
], z.prototype, "status", 2);
|
1995
1982
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", A);
|
1996
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
1983
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", bt);
|
1997
1984
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", rt);
|
1998
|
-
|
1999
|
-
|
1985
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", z);
|
1986
|
+
const hr = async (i, t) => {
|
1987
|
+
await new sr(i).bootstrap(t);
|
2000
1988
|
};
|
2001
1989
|
export {
|
2002
|
-
|
2003
|
-
|
1990
|
+
z as AceWidget,
|
1991
|
+
ir as Application,
|
2004
1992
|
Ct as Container,
|
2005
|
-
|
2006
|
-
|
1993
|
+
nr as Environment,
|
1994
|
+
sr as Site,
|
2007
1995
|
A as Trigger,
|
2008
|
-
|
2009
|
-
|
1996
|
+
We as WidgetComponent,
|
1997
|
+
hr as bootstrap
|
2010
1998
|
};
|