@digipair/skill-web 0.47.1 → 0.47.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +2071 -2071
- package/index.esm.js +893 -893
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -18,27 +18,165 @@ function _extends() {
|
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* @license
|
|
21
|
-
* Copyright
|
|
21
|
+
* Copyright 2023 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
*/ /**
|
|
24
|
+
* Map of ARIAMixin properties to attributes
|
|
25
|
+
*/ function _class_call_check$g(instance, Constructor) {
|
|
26
|
+
if (!(instance instanceof Constructor)) {
|
|
27
|
+
throw new TypeError("Cannot call a class as a function");
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
function _defineProperties$g(target, props) {
|
|
31
|
+
for(var i = 0; i < props.length; i++){
|
|
32
|
+
var descriptor = props[i];
|
|
33
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
34
|
+
descriptor.configurable = true;
|
|
35
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
36
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function _create_class$g(Constructor, protoProps, staticProps) {
|
|
40
|
+
if (protoProps) _defineProperties$g(Constructor.prototype, protoProps);
|
|
41
|
+
if (staticProps) _defineProperties$g(Constructor, staticProps);
|
|
42
|
+
return Constructor;
|
|
43
|
+
}
|
|
44
|
+
var ariaMixinAttributes = {
|
|
45
|
+
ariaAtomic: "aria-atomic",
|
|
46
|
+
ariaAutoComplete: "aria-autocomplete",
|
|
47
|
+
ariaBrailleLabel: "aria-braillelabel",
|
|
48
|
+
ariaBrailleRoleDescription: "aria-brailleroledescription",
|
|
49
|
+
ariaBusy: "aria-busy",
|
|
50
|
+
ariaChecked: "aria-checked",
|
|
51
|
+
ariaColCount: "aria-colcount",
|
|
52
|
+
ariaColIndex: "aria-colindex",
|
|
53
|
+
ariaColSpan: "aria-colspan",
|
|
54
|
+
ariaCurrent: "aria-current",
|
|
55
|
+
ariaDescription: "aria-description",
|
|
56
|
+
ariaDisabled: "aria-disabled",
|
|
57
|
+
ariaExpanded: "aria-expanded",
|
|
58
|
+
ariaHasPopup: "aria-haspopup",
|
|
59
|
+
ariaHidden: "aria-hidden",
|
|
60
|
+
ariaInvalid: "aria-invalid",
|
|
61
|
+
ariaKeyShortcuts: "aria-keyshortcuts",
|
|
62
|
+
ariaLabel: "aria-label",
|
|
63
|
+
ariaLevel: "aria-level",
|
|
64
|
+
ariaLive: "aria-live",
|
|
65
|
+
ariaModal: "aria-modal",
|
|
66
|
+
ariaMultiLine: "aria-multiline",
|
|
67
|
+
ariaMultiSelectable: "aria-multiselectable",
|
|
68
|
+
ariaOrientation: "aria-orientation",
|
|
69
|
+
ariaPlaceholder: "aria-placeholder",
|
|
70
|
+
ariaPosInSet: "aria-posinset",
|
|
71
|
+
ariaPressed: "aria-pressed",
|
|
72
|
+
ariaReadOnly: "aria-readonly",
|
|
73
|
+
ariaRequired: "aria-required",
|
|
74
|
+
ariaRoleDescription: "aria-roledescription",
|
|
75
|
+
ariaRowCount: "aria-rowcount",
|
|
76
|
+
ariaRowIndex: "aria-rowindex",
|
|
77
|
+
ariaRowSpan: "aria-rowspan",
|
|
78
|
+
ariaSelected: "aria-selected",
|
|
79
|
+
ariaSetSize: "aria-setsize",
|
|
80
|
+
ariaSort: "aria-sort",
|
|
81
|
+
ariaValueMax: "aria-valuemax",
|
|
82
|
+
ariaValueMin: "aria-valuemin",
|
|
83
|
+
ariaValueNow: "aria-valuenow",
|
|
84
|
+
ariaValueText: "aria-valuetext",
|
|
85
|
+
role: "role"
|
|
39
86
|
};
|
|
87
|
+
// Shim the global element internals object
|
|
88
|
+
// Methods should be fine as noops and properties can generally
|
|
89
|
+
// be while on the server.
|
|
90
|
+
var ElementInternalsShim = /*#__PURE__*/ function() {
|
|
91
|
+
function ElementInternals(_host) {
|
|
92
|
+
_class_call_check$g(this, ElementInternals);
|
|
93
|
+
this.ariaAtomic = "";
|
|
94
|
+
this.ariaAutoComplete = "";
|
|
95
|
+
this.ariaBrailleLabel = "";
|
|
96
|
+
this.ariaBrailleRoleDescription = "";
|
|
97
|
+
this.ariaBusy = "";
|
|
98
|
+
this.ariaChecked = "";
|
|
99
|
+
this.ariaColCount = "";
|
|
100
|
+
this.ariaColIndex = "";
|
|
101
|
+
this.ariaColSpan = "";
|
|
102
|
+
this.ariaCurrent = "";
|
|
103
|
+
this.ariaDescription = "";
|
|
104
|
+
this.ariaDisabled = "";
|
|
105
|
+
this.ariaExpanded = "";
|
|
106
|
+
this.ariaHasPopup = "";
|
|
107
|
+
this.ariaHidden = "";
|
|
108
|
+
this.ariaInvalid = "";
|
|
109
|
+
this.ariaKeyShortcuts = "";
|
|
110
|
+
this.ariaLabel = "";
|
|
111
|
+
this.ariaLevel = "";
|
|
112
|
+
this.ariaLive = "";
|
|
113
|
+
this.ariaModal = "";
|
|
114
|
+
this.ariaMultiLine = "";
|
|
115
|
+
this.ariaMultiSelectable = "";
|
|
116
|
+
this.ariaOrientation = "";
|
|
117
|
+
this.ariaPlaceholder = "";
|
|
118
|
+
this.ariaPosInSet = "";
|
|
119
|
+
this.ariaPressed = "";
|
|
120
|
+
this.ariaReadOnly = "";
|
|
121
|
+
this.ariaRequired = "";
|
|
122
|
+
this.ariaRoleDescription = "";
|
|
123
|
+
this.ariaRowCount = "";
|
|
124
|
+
this.ariaRowIndex = "";
|
|
125
|
+
this.ariaRowSpan = "";
|
|
126
|
+
this.ariaSelected = "";
|
|
127
|
+
this.ariaSetSize = "";
|
|
128
|
+
this.ariaSort = "";
|
|
129
|
+
this.ariaValueMax = "";
|
|
130
|
+
this.ariaValueMin = "";
|
|
131
|
+
this.ariaValueNow = "";
|
|
132
|
+
this.ariaValueText = "";
|
|
133
|
+
this.role = "";
|
|
134
|
+
this.form = null;
|
|
135
|
+
this.labels = [];
|
|
136
|
+
this.states = new Set();
|
|
137
|
+
this.validationMessage = "";
|
|
138
|
+
this.validity = {};
|
|
139
|
+
this.willValidate = true;
|
|
140
|
+
this.__host = _host;
|
|
141
|
+
}
|
|
142
|
+
_create_class$g(ElementInternals, [
|
|
143
|
+
{
|
|
144
|
+
key: "shadowRoot",
|
|
145
|
+
get: function get() {
|
|
146
|
+
// Grab the shadow root instance from the Element shim
|
|
147
|
+
// to ensure that the shadow root is always available
|
|
148
|
+
// to the internals instance even if the mode is 'closed'
|
|
149
|
+
return this.__host.__shadowRoot;
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
key: "checkValidity",
|
|
154
|
+
value: function checkValidity() {
|
|
155
|
+
// TODO(augustjk) Consider actually implementing logic.
|
|
156
|
+
// See https://github.com/lit/lit/issues/3740
|
|
157
|
+
console.warn("`ElementInternals.checkValidity()` was called on the server." + "This method always returns true.");
|
|
158
|
+
return true;
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
key: "reportValidity",
|
|
163
|
+
value: function reportValidity() {
|
|
164
|
+
return true;
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
key: "setFormValue",
|
|
169
|
+
value: function setFormValue() {}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
key: "setValidity",
|
|
173
|
+
value: function setValidity() {}
|
|
174
|
+
}
|
|
175
|
+
]);
|
|
176
|
+
return ElementInternals;
|
|
177
|
+
}();
|
|
178
|
+
var HYDRATE_INTERNALS_ATTR_PREFIX = "hydrate-internals-";
|
|
40
179
|
|
|
41
|
-
/// <reference lib="dom" />
|
|
42
180
|
/**
|
|
43
181
|
* @license
|
|
44
182
|
* Copyright 2019 Google LLC
|
|
@@ -57,12 +195,12 @@ function _assert_this_initialized$7(self) {
|
|
|
57
195
|
}
|
|
58
196
|
return self;
|
|
59
197
|
}
|
|
60
|
-
function _class_call_check$
|
|
198
|
+
function _class_call_check$f(instance, Constructor) {
|
|
61
199
|
if (!(instance instanceof Constructor)) {
|
|
62
200
|
throw new TypeError("Cannot call a class as a function");
|
|
63
201
|
}
|
|
64
202
|
}
|
|
65
|
-
function _defineProperties$
|
|
203
|
+
function _defineProperties$f(target, props) {
|
|
66
204
|
for(var i = 0; i < props.length; i++){
|
|
67
205
|
var descriptor = props[i];
|
|
68
206
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -71,9 +209,9 @@ function _defineProperties$g(target, props) {
|
|
|
71
209
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
72
210
|
}
|
|
73
211
|
}
|
|
74
|
-
function _create_class$
|
|
75
|
-
if (protoProps) _defineProperties$
|
|
76
|
-
if (staticProps) _defineProperties$
|
|
212
|
+
function _create_class$f(Constructor, protoProps, staticProps) {
|
|
213
|
+
if (protoProps) _defineProperties$f(Constructor.prototype, protoProps);
|
|
214
|
+
if (staticProps) _defineProperties$f(Constructor, staticProps);
|
|
77
215
|
return Constructor;
|
|
78
216
|
}
|
|
79
217
|
function _get_prototype_of$7(o) {
|
|
@@ -174,443 +312,250 @@ function _create_super$7(Derived) {
|
|
|
174
312
|
return _possible_constructor_return$7(this, result);
|
|
175
313
|
};
|
|
176
314
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
return t[1];
|
|
183
|
-
},
|
|
184
|
-
trys: [],
|
|
185
|
-
ops: []
|
|
186
|
-
};
|
|
187
|
-
return g = {
|
|
188
|
-
next: verb(0),
|
|
189
|
-
"throw": verb(1),
|
|
190
|
-
"return": verb(2)
|
|
191
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
192
|
-
return this;
|
|
193
|
-
}), g;
|
|
194
|
-
function verb(n) {
|
|
195
|
-
return function(v) {
|
|
196
|
-
return step([
|
|
197
|
-
n,
|
|
198
|
-
v
|
|
199
|
-
]);
|
|
200
|
-
};
|
|
315
|
+
var attributes = new WeakMap();
|
|
316
|
+
var attributesForElement = function(element) {
|
|
317
|
+
var attrs = attributes.get(element);
|
|
318
|
+
if (attrs === undefined) {
|
|
319
|
+
attributes.set(element, attrs = new Map());
|
|
201
320
|
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
321
|
+
return attrs;
|
|
322
|
+
};
|
|
323
|
+
// The typings around the exports below are a little funky:
|
|
324
|
+
//
|
|
325
|
+
// 1. We want the `name` of the shim classes to match the real ones at runtime,
|
|
326
|
+
// hence e.g. `class Element`.
|
|
327
|
+
// 2. We can't shadow the global types with a simple class declaration, because
|
|
328
|
+
// then we can't reference the global types for casting, hence e.g.
|
|
329
|
+
// `const ElementShim = class Element`.
|
|
330
|
+
// 3. We want to export the classes typed as the real ones, hence e.g.
|
|
331
|
+
// `const ElementShimWithRealType = ElementShim as object as typeof Element;`.
|
|
332
|
+
// 4. We want the exported names to match the real ones, hence e.g.
|
|
333
|
+
// `export {ElementShimWithRealType as Element}`.
|
|
334
|
+
var ElementShim = /*#__PURE__*/ function() {
|
|
335
|
+
function Element() {
|
|
336
|
+
_class_call_check$f(this, Element);
|
|
337
|
+
this.__shadowRootMode = null;
|
|
338
|
+
this.__shadowRoot = null;
|
|
339
|
+
this.__internals = null;
|
|
340
|
+
}
|
|
341
|
+
_create_class$f(Element, [
|
|
342
|
+
{
|
|
343
|
+
key: "attributes",
|
|
344
|
+
get: function get() {
|
|
345
|
+
return Array.from(attributesForElement(this)).map(function(param) {
|
|
346
|
+
var _param = _sliced_to_array$6(param, 2), name = _param[0], value = _param[1];
|
|
217
347
|
return {
|
|
218
|
-
|
|
219
|
-
|
|
348
|
+
name: name,
|
|
349
|
+
value: value
|
|
220
350
|
};
|
|
221
|
-
|
|
222
|
-
_.label++;
|
|
223
|
-
y = op[1];
|
|
224
|
-
op = [
|
|
225
|
-
0
|
|
226
|
-
];
|
|
227
|
-
continue;
|
|
228
|
-
case 7:
|
|
229
|
-
op = _.ops.pop();
|
|
230
|
-
_.trys.pop();
|
|
231
|
-
continue;
|
|
232
|
-
default:
|
|
233
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
234
|
-
_ = 0;
|
|
235
|
-
continue;
|
|
236
|
-
}
|
|
237
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
238
|
-
_.label = op[1];
|
|
239
|
-
break;
|
|
240
|
-
}
|
|
241
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
242
|
-
_.label = t[1];
|
|
243
|
-
t = op;
|
|
244
|
-
break;
|
|
245
|
-
}
|
|
246
|
-
if (t && _.label < t[2]) {
|
|
247
|
-
_.label = t[2];
|
|
248
|
-
_.ops.push(op);
|
|
249
|
-
break;
|
|
250
|
-
}
|
|
251
|
-
if (t[2]) _.ops.pop();
|
|
252
|
-
_.trys.pop();
|
|
253
|
-
continue;
|
|
351
|
+
});
|
|
254
352
|
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
f = t = 0;
|
|
264
|
-
}
|
|
265
|
-
if (op[0] & 5) throw op[1];
|
|
266
|
-
return {
|
|
267
|
-
value: op[0] ? op[1] : void 0,
|
|
268
|
-
done: true
|
|
269
|
-
};
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
var getElementRenderer = function(param, tagName) {
|
|
273
|
-
var elementRenderers = param.elementRenderers, ceClass = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : customElements.get(tagName), attributes = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : new Map();
|
|
274
|
-
if (ceClass === undefined) {
|
|
275
|
-
console.warn("Custom element ".concat(tagName, " was not registered."));
|
|
276
|
-
return new FallbackRenderer(tagName);
|
|
277
|
-
}
|
|
278
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
279
|
-
try {
|
|
280
|
-
// TODO(kschaaf): Should we implement a caching scheme, e.g. keyed off of
|
|
281
|
-
// ceClass's base class to prevent O(n) lookups for every element (probably
|
|
282
|
-
// not a concern for the small number of element renderers we'd expect)? Doing
|
|
283
|
-
// so would preclude having cross-cutting renderers to e.g. no-op render all
|
|
284
|
-
// custom elements with a `client-only` attribute, so punting for now.
|
|
285
|
-
for(var _iterator = elementRenderers[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
286
|
-
var renderer = _step.value;
|
|
287
|
-
if (renderer.matchesClass(ceClass, tagName, attributes)) {
|
|
288
|
-
return new renderer(tagName);
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
key: "shadowRoot",
|
|
356
|
+
get: function get() {
|
|
357
|
+
if (this.__shadowRootMode === "closed") {
|
|
358
|
+
return null;
|
|
359
|
+
}
|
|
360
|
+
return this.__shadowRoot;
|
|
289
361
|
}
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
try {
|
|
296
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
297
|
-
_iterator.return();
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
key: "localName",
|
|
365
|
+
get: function get() {
|
|
366
|
+
return this.constructor.__localName;
|
|
298
367
|
}
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
key: "tagName",
|
|
371
|
+
get: function get() {
|
|
372
|
+
var _this_localName;
|
|
373
|
+
return (_this_localName = this.localName) === null || _this_localName === void 0 ? void 0 : _this_localName.toUpperCase();
|
|
302
374
|
}
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
return new FallbackRenderer(tagName);
|
|
306
|
-
};
|
|
307
|
-
/**
|
|
308
|
-
* An object that renders elements of a certain type.
|
|
309
|
-
*/ var ElementRenderer = /*#__PURE__*/ function() {
|
|
310
|
-
function ElementRenderer(tagName) {
|
|
311
|
-
_class_call_check$g(this, ElementRenderer);
|
|
312
|
-
this.tagName = tagName;
|
|
313
|
-
}
|
|
314
|
-
_create_class$g(ElementRenderer, [
|
|
375
|
+
},
|
|
315
376
|
{
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
* parentNode, etc., depending on the DOM emulation.
|
|
322
|
-
*
|
|
323
|
-
* If this renderer is creating actual element instances, it may forward
|
|
324
|
-
* the call to the element's `connectedCallback()`.
|
|
325
|
-
*
|
|
326
|
-
* The default impementation is a no-op.
|
|
327
|
-
*/ key: "connectedCallback",
|
|
328
|
-
value: function connectedCallback() {
|
|
329
|
-
// do nothing
|
|
377
|
+
key: "setAttribute",
|
|
378
|
+
value: function setAttribute(name, value) {
|
|
379
|
+
// Emulate browser behavior that silently casts all values to string. E.g.
|
|
380
|
+
// `42` becomes `"42"` and `{}` becomes `"[object Object]""`.
|
|
381
|
+
attributesForElement(this).set(name, String(value));
|
|
330
382
|
}
|
|
331
383
|
},
|
|
332
384
|
{
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
*
|
|
337
|
-
* If this renderer is creating actual element instances, it may forward
|
|
338
|
-
* the call to the element's `attributeChangedCallback()`.
|
|
339
|
-
*/ key: "attributeChangedCallback",
|
|
340
|
-
value: function attributeChangedCallback(_name, _old, _value) {
|
|
341
|
-
// do nothing
|
|
385
|
+
key: "removeAttribute",
|
|
386
|
+
value: function removeAttribute(name) {
|
|
387
|
+
attributesForElement(this).delete(name);
|
|
342
388
|
}
|
|
343
389
|
},
|
|
344
390
|
{
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
391
|
+
key: "toggleAttribute",
|
|
392
|
+
value: function toggleAttribute(name, force) {
|
|
393
|
+
// Steps reference https://dom.spec.whatwg.org/#dom-element-toggleattribute
|
|
394
|
+
if (this.hasAttribute(name)) {
|
|
395
|
+
// Step 5
|
|
396
|
+
if (force === undefined || !force) {
|
|
397
|
+
this.removeAttribute(name);
|
|
398
|
+
return false;
|
|
399
|
+
}
|
|
400
|
+
} else {
|
|
401
|
+
// Step 4
|
|
402
|
+
if (force === undefined || force) {
|
|
403
|
+
// Step 4.1
|
|
404
|
+
this.setAttribute(name, "");
|
|
405
|
+
return true;
|
|
406
|
+
} else {
|
|
407
|
+
// Step 4.2
|
|
408
|
+
return false;
|
|
409
|
+
}
|
|
358
410
|
}
|
|
411
|
+
// Step 6
|
|
412
|
+
return true;
|
|
359
413
|
}
|
|
360
414
|
},
|
|
361
415
|
{
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
* Default implementation calls `setAttribute` on the renderer's element
|
|
366
|
-
* instance, and calls the abstract `attributeChangedCallback` on the
|
|
367
|
-
* renderer.
|
|
368
|
-
*
|
|
369
|
-
* @param name Name of the attribute
|
|
370
|
-
* @param value Value of the attribute
|
|
371
|
-
*/ key: "setAttribute",
|
|
372
|
-
value: function setAttribute(name, value) {
|
|
373
|
-
// Browser turns all HTML attributes to lowercase.
|
|
374
|
-
name = name.toLowerCase();
|
|
375
|
-
if (this.element !== undefined) {
|
|
376
|
-
var old = this.element.getAttribute(name);
|
|
377
|
-
this.element.setAttribute(name, value);
|
|
378
|
-
this.attributeChangedCallback(name, old, value);
|
|
379
|
-
}
|
|
416
|
+
key: "hasAttribute",
|
|
417
|
+
value: function hasAttribute(name) {
|
|
418
|
+
return attributesForElement(this).has(name);
|
|
380
419
|
}
|
|
381
420
|
},
|
|
382
421
|
{
|
|
383
|
-
key: "
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
*/ function get() {
|
|
388
|
-
return {
|
|
389
|
-
mode: "open"
|
|
422
|
+
key: "attachShadow",
|
|
423
|
+
value: function attachShadow(init) {
|
|
424
|
+
var shadowRoot = {
|
|
425
|
+
host: this
|
|
390
426
|
};
|
|
427
|
+
this.__shadowRootMode = init.mode;
|
|
428
|
+
if (init && init.mode === "open") {
|
|
429
|
+
this.__shadowRoot = shadowRoot;
|
|
430
|
+
}
|
|
431
|
+
return shadowRoot;
|
|
391
432
|
}
|
|
392
433
|
},
|
|
393
434
|
{
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
return
|
|
435
|
+
key: "attachInternals",
|
|
436
|
+
value: function attachInternals() {
|
|
437
|
+
if (this.__internals !== null) {
|
|
438
|
+
throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': " + "ElementInternals for the specified element was already attached.");
|
|
439
|
+
}
|
|
440
|
+
var internals = new ElementInternalsShim(this);
|
|
441
|
+
this.__internals = internals;
|
|
442
|
+
return internals;
|
|
402
443
|
}
|
|
403
444
|
},
|
|
404
445
|
{
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
return undefined;
|
|
446
|
+
key: "getAttribute",
|
|
447
|
+
value: function getAttribute(name) {
|
|
448
|
+
var value = attributesForElement(this).get(name);
|
|
449
|
+
return value !== null && value !== void 0 ? value : null;
|
|
410
450
|
}
|
|
411
|
-
}
|
|
451
|
+
}
|
|
452
|
+
]);
|
|
453
|
+
return Element;
|
|
454
|
+
}();
|
|
455
|
+
var HTMLElementShim = /*#__PURE__*/ function(ElementShim) {
|
|
456
|
+
_inherits$7(HTMLElement, ElementShim);
|
|
457
|
+
var _super = _create_super$7(HTMLElement);
|
|
458
|
+
function HTMLElement() {
|
|
459
|
+
_class_call_check$f(this, HTMLElement);
|
|
460
|
+
return _super.apply(this, arguments);
|
|
461
|
+
}
|
|
462
|
+
return HTMLElement;
|
|
463
|
+
}(ElementShim);
|
|
464
|
+
var HTMLElementShimWithRealType = HTMLElementShim;
|
|
465
|
+
var CustomElementRegistryShim = /*#__PURE__*/ function() {
|
|
466
|
+
function CustomElementRegistry() {
|
|
467
|
+
_class_call_check$f(this, CustomElementRegistry);
|
|
468
|
+
this.__definitions = new Map();
|
|
469
|
+
}
|
|
470
|
+
_create_class$f(CustomElementRegistry, [
|
|
412
471
|
{
|
|
413
|
-
key: "
|
|
414
|
-
value:
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
var attributes, ref, i, name, value;
|
|
421
|
-
return _ts_generator$5(this, function(_state) {
|
|
422
|
-
switch(_state.label){
|
|
423
|
-
case 0:
|
|
424
|
-
if (!(this.element !== undefined)) return [
|
|
425
|
-
3,
|
|
426
|
-
6
|
|
427
|
-
];
|
|
428
|
-
attributes = this.element.attributes;
|
|
429
|
-
i = 0;
|
|
430
|
-
_state.label = 1;
|
|
431
|
-
case 1:
|
|
432
|
-
if (!(i < attributes.length && (ref = attributes[i], name = ref.name, value = ref.value, ref))) return [
|
|
433
|
-
3,
|
|
434
|
-
6
|
|
435
|
-
];
|
|
436
|
-
if (!(value === "" || value === undefined || value === null)) return [
|
|
437
|
-
3,
|
|
438
|
-
3
|
|
439
|
-
];
|
|
440
|
-
return [
|
|
441
|
-
4,
|
|
442
|
-
" ".concat(name)
|
|
443
|
-
];
|
|
444
|
-
case 2:
|
|
445
|
-
_state.sent();
|
|
446
|
-
return [
|
|
447
|
-
3,
|
|
448
|
-
5
|
|
449
|
-
];
|
|
450
|
-
case 3:
|
|
451
|
-
return [
|
|
452
|
-
4,
|
|
453
|
-
" ".concat(name, '="').concat(escapeHtml(value), '"')
|
|
454
|
-
];
|
|
455
|
-
case 4:
|
|
456
|
-
_state.sent();
|
|
457
|
-
_state.label = 5;
|
|
458
|
-
case 5:
|
|
459
|
-
i++;
|
|
460
|
-
return [
|
|
461
|
-
3,
|
|
462
|
-
1
|
|
463
|
-
];
|
|
464
|
-
case 6:
|
|
465
|
-
return [
|
|
466
|
-
2
|
|
467
|
-
];
|
|
472
|
+
key: "define",
|
|
473
|
+
value: function define(name, ctor) {
|
|
474
|
+
if (this.__definitions.has(name)) {
|
|
475
|
+
if (process.env.NODE_ENV === "development") {
|
|
476
|
+
console.warn("'CustomElementRegistry' already has \"".concat(name, '" defined. ') + "This may have been caused by live reload or hot module " + "replacement in which case it can be safely ignored.\n" + "Make sure to test your application with a production build as " + "repeat registrations will throw in production.");
|
|
477
|
+
} else {
|
|
478
|
+
throw new Error("Failed to execute 'define' on 'CustomElementRegistry': " + 'the name "'.concat(name, '" has already been used with this registry'));
|
|
468
479
|
}
|
|
480
|
+
}
|
|
481
|
+
// Provide tagName and localName for the component.
|
|
482
|
+
ctor.__localName = name;
|
|
483
|
+
var _ctor_observedAttributes;
|
|
484
|
+
this.__definitions.set(name, {
|
|
485
|
+
ctor: ctor,
|
|
486
|
+
// Note it's important we read `observedAttributes` in case it is a getter
|
|
487
|
+
// with side-effects, as is the case in Lit, where it triggers class
|
|
488
|
+
// finalization.
|
|
489
|
+
//
|
|
490
|
+
// TODO(aomarks) To be spec compliant, we should also capture the
|
|
491
|
+
// registration-time lifecycle methods like `connectedCallback`. For them
|
|
492
|
+
// to be actually accessible to e.g. the Lit SSR element renderer, though,
|
|
493
|
+
// we'd need to introduce a new API for accessing them (since `get` only
|
|
494
|
+
// returns the constructor).
|
|
495
|
+
observedAttributes: (_ctor_observedAttributes = ctor.observedAttributes) !== null && _ctor_observedAttributes !== void 0 ? _ctor_observedAttributes : []
|
|
469
496
|
});
|
|
470
497
|
}
|
|
471
|
-
}
|
|
472
|
-
], [
|
|
498
|
+
},
|
|
473
499
|
{
|
|
474
|
-
key: "
|
|
475
|
-
value:
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
*
|
|
479
|
-
* @param ceClass - Custom Element class
|
|
480
|
-
* @param tagName - Tag name of custom element instance
|
|
481
|
-
* @param attributes - Map of attribute key/value pairs
|
|
482
|
-
* @returns
|
|
483
|
-
*/ function matchesClass(_ceClass, _tagName, _attributes) {
|
|
484
|
-
return false;
|
|
500
|
+
key: "get",
|
|
501
|
+
value: function get(name) {
|
|
502
|
+
var definition = this.__definitions.get(name);
|
|
503
|
+
return definition === null || definition === void 0 ? void 0 : definition.ctor;
|
|
485
504
|
}
|
|
486
505
|
}
|
|
487
506
|
]);
|
|
488
|
-
return
|
|
507
|
+
return CustomElementRegistry;
|
|
489
508
|
}();
|
|
509
|
+
var CustomElementRegistryShimWithRealType = CustomElementRegistryShim;
|
|
510
|
+
new CustomElementRegistryShimWithRealType();
|
|
511
|
+
|
|
490
512
|
/**
|
|
491
|
-
*
|
|
492
|
-
*
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
}
|
|
512
|
-
},
|
|
513
|
-
{
|
|
514
|
-
key: "renderAttributes",
|
|
515
|
-
value: function renderAttributes() {
|
|
516
|
-
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, _step_value, name, value, err;
|
|
517
|
-
return _ts_generator$5(this, function(_state) {
|
|
518
|
-
switch(_state.label){
|
|
519
|
-
case 0:
|
|
520
|
-
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
521
|
-
_state.label = 1;
|
|
522
|
-
case 1:
|
|
523
|
-
_state.trys.push([
|
|
524
|
-
1,
|
|
525
|
-
8,
|
|
526
|
-
9,
|
|
527
|
-
10
|
|
528
|
-
]);
|
|
529
|
-
_iterator = Object.entries(this._attributes)[Symbol.iterator]();
|
|
530
|
-
_state.label = 2;
|
|
531
|
-
case 2:
|
|
532
|
-
if (!!(_iteratorNormalCompletion = (_step = _iterator.next()).done)) return [
|
|
533
|
-
3,
|
|
534
|
-
7
|
|
535
|
-
];
|
|
536
|
-
_step_value = _sliced_to_array$6(_step.value, 2), name = _step_value[0], value = _step_value[1];
|
|
537
|
-
if (!(value === "" || value === undefined || value === null)) return [
|
|
538
|
-
3,
|
|
539
|
-
4
|
|
540
|
-
];
|
|
541
|
-
return [
|
|
542
|
-
4,
|
|
543
|
-
" ".concat(name)
|
|
544
|
-
];
|
|
545
|
-
case 3:
|
|
546
|
-
_state.sent();
|
|
547
|
-
return [
|
|
548
|
-
3,
|
|
549
|
-
6
|
|
550
|
-
];
|
|
551
|
-
case 4:
|
|
552
|
-
return [
|
|
553
|
-
4,
|
|
554
|
-
" ".concat(name, '="').concat(escapeHtml(value), '"')
|
|
555
|
-
];
|
|
556
|
-
case 5:
|
|
557
|
-
_state.sent();
|
|
558
|
-
_state.label = 6;
|
|
559
|
-
case 6:
|
|
560
|
-
_iteratorNormalCompletion = true;
|
|
561
|
-
return [
|
|
562
|
-
3,
|
|
563
|
-
2
|
|
564
|
-
];
|
|
565
|
-
case 7:
|
|
566
|
-
return [
|
|
567
|
-
3,
|
|
568
|
-
10
|
|
569
|
-
];
|
|
570
|
-
case 8:
|
|
571
|
-
err = _state.sent();
|
|
572
|
-
_didIteratorError = true;
|
|
573
|
-
_iteratorError = err;
|
|
574
|
-
return [
|
|
575
|
-
3,
|
|
576
|
-
10
|
|
577
|
-
];
|
|
578
|
-
case 9:
|
|
579
|
-
try {
|
|
580
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
581
|
-
_iterator.return();
|
|
582
|
-
}
|
|
583
|
-
} finally{
|
|
584
|
-
if (_didIteratorError) {
|
|
585
|
-
throw _iteratorError;
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
return [
|
|
589
|
-
7
|
|
590
|
-
];
|
|
591
|
-
case 10:
|
|
592
|
-
return [
|
|
593
|
-
2
|
|
594
|
-
];
|
|
595
|
-
}
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
]);
|
|
600
|
-
return FallbackRenderer;
|
|
601
|
-
}
|
|
602
|
-
(ElementRenderer);
|
|
513
|
+
* @license
|
|
514
|
+
* Copyright 2021 Google LLC
|
|
515
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
516
|
+
*/ var replacements = {
|
|
517
|
+
"&": "&",
|
|
518
|
+
"<": "<",
|
|
519
|
+
">": ">",
|
|
520
|
+
'"': """,
|
|
521
|
+
// Note ' was not defined in the HTML4 spec, and is not supported by very
|
|
522
|
+
// old browsers like IE8, so a codepoint entity is used instead.
|
|
523
|
+
"'": "'"
|
|
524
|
+
};
|
|
525
|
+
/**
|
|
526
|
+
* Replaces characters which have special meaning in HTML (&<>"') with escaped
|
|
527
|
+
* HTML entities ("&", "<", etc.).
|
|
528
|
+
*/ var escapeHtml = function(str) {
|
|
529
|
+
return str.replace(/[&<>"']/g, function(char) {
|
|
530
|
+
return replacements[char];
|
|
531
|
+
});
|
|
532
|
+
};
|
|
603
533
|
|
|
534
|
+
/// <reference lib="dom" />
|
|
604
535
|
/**
|
|
605
536
|
* @license
|
|
606
537
|
* Copyright 2019 Google LLC
|
|
607
538
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
608
|
-
*/ function
|
|
539
|
+
*/ function _array_like_to_array$9(arr, len) {
|
|
540
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
541
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
542
|
+
return arr2;
|
|
543
|
+
}
|
|
544
|
+
function _array_with_holes$5(arr) {
|
|
545
|
+
if (Array.isArray(arr)) return arr;
|
|
546
|
+
}
|
|
547
|
+
function _assert_this_initialized$6(self) {
|
|
548
|
+
if (self === void 0) {
|
|
549
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
550
|
+
}
|
|
551
|
+
return self;
|
|
552
|
+
}
|
|
553
|
+
function _class_call_check$e(instance, Constructor) {
|
|
609
554
|
if (!(instance instanceof Constructor)) {
|
|
610
555
|
throw new TypeError("Cannot call a class as a function");
|
|
611
556
|
}
|
|
612
557
|
}
|
|
613
|
-
function _defineProperties$
|
|
558
|
+
function _defineProperties$e(target, props) {
|
|
614
559
|
for(var i = 0; i < props.length; i++){
|
|
615
560
|
var descriptor = props[i];
|
|
616
561
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -619,190 +564,16 @@ function _defineProperties$f(target, props) {
|
|
|
619
564
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
620
565
|
}
|
|
621
566
|
}
|
|
622
|
-
function _create_class$
|
|
623
|
-
if (protoProps) _defineProperties$
|
|
624
|
-
if (staticProps) _defineProperties$
|
|
567
|
+
function _create_class$e(Constructor, protoProps, staticProps) {
|
|
568
|
+
if (protoProps) _defineProperties$e(Constructor.prototype, protoProps);
|
|
569
|
+
if (staticProps) _defineProperties$e(Constructor, staticProps);
|
|
625
570
|
return Constructor;
|
|
626
571
|
}
|
|
627
|
-
function
|
|
628
|
-
|
|
629
|
-
return
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
var t$2 = globalThis, e$4 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$2 = Symbol(), o$3 = new WeakMap;
|
|
635
|
-
var n$3 = /*#__PURE__*/ function() {
|
|
636
|
-
function n(t, e, o) {
|
|
637
|
-
_class_call_check$f(this, n);
|
|
638
|
-
if (this._$cssResult$ = !0, o !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
639
|
-
this.cssText = t, this.t = e;
|
|
640
|
-
}
|
|
641
|
-
_create_class$f(n, [
|
|
642
|
-
{
|
|
643
|
-
key: "styleSheet",
|
|
644
|
-
get: function get() {
|
|
645
|
-
var t = this.o;
|
|
646
|
-
var s = this.t;
|
|
647
|
-
if (e$4 && void 0 === t) {
|
|
648
|
-
var e1 = void 0 !== s && 1 === s.length;
|
|
649
|
-
e1 && (t = o$3.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet).replaceSync(this.cssText), e1 && o$3.set(s, t));
|
|
650
|
-
}
|
|
651
|
-
return t;
|
|
652
|
-
}
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
key: "toString",
|
|
656
|
-
value: function toString() {
|
|
657
|
-
return this.cssText;
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
]);
|
|
661
|
-
return n;
|
|
662
|
-
}();
|
|
663
|
-
var r$4 = function(t) {
|
|
664
|
-
return new n$3("string" == typeof t ? t : t + "", void 0, s$2);
|
|
665
|
-
}, S$1 = function(s, o) {
|
|
666
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
667
|
-
if (e$4) s.adoptedStyleSheets = o.map(function(t) {
|
|
668
|
-
return _instanceof$1(t, CSSStyleSheet) ? t : t.styleSheet;
|
|
669
|
-
});
|
|
670
|
-
else try {
|
|
671
|
-
for(var _iterator = o[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
672
|
-
var e1 = _step.value;
|
|
673
|
-
var _$o = document.createElement("style"), n = t$2.litNonce;
|
|
674
|
-
void 0 !== n && _$o.setAttribute("nonce", n), _$o.textContent = e1.cssText, s.appendChild(_$o);
|
|
675
|
-
}
|
|
676
|
-
} catch (err) {
|
|
677
|
-
_didIteratorError = true;
|
|
678
|
-
_iteratorError = err;
|
|
679
|
-
} finally{
|
|
680
|
-
try {
|
|
681
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
682
|
-
_iterator.return();
|
|
683
|
-
}
|
|
684
|
-
} finally{
|
|
685
|
-
if (_didIteratorError) {
|
|
686
|
-
throw _iteratorError;
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
}, c$2 = e$4 ? function(t) {
|
|
691
|
-
return t;
|
|
692
|
-
} : function(t) {
|
|
693
|
-
return _instanceof$1(t, CSSStyleSheet) ? function(t) {
|
|
694
|
-
var e = "";
|
|
695
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
696
|
-
try {
|
|
697
|
-
for(var _iterator = t.cssRules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
698
|
-
var s = _step.value;
|
|
699
|
-
e += s.cssText;
|
|
700
|
-
}
|
|
701
|
-
} catch (err) {
|
|
702
|
-
_didIteratorError = true;
|
|
703
|
-
_iteratorError = err;
|
|
704
|
-
} finally{
|
|
705
|
-
try {
|
|
706
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
707
|
-
_iterator.return();
|
|
708
|
-
}
|
|
709
|
-
} finally{
|
|
710
|
-
if (_didIteratorError) {
|
|
711
|
-
throw _iteratorError;
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
return r$4(e);
|
|
716
|
-
}(t) : t;
|
|
717
|
-
};
|
|
718
|
-
|
|
719
|
-
function _array_like_to_array$9(arr, len) {
|
|
720
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
721
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
722
|
-
return arr2;
|
|
723
|
-
}
|
|
724
|
-
function _array_with_holes$5(arr) {
|
|
725
|
-
if (Array.isArray(arr)) return arr;
|
|
726
|
-
}
|
|
727
|
-
function _array_without_holes$6(arr) {
|
|
728
|
-
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
729
|
-
}
|
|
730
|
-
function _assert_this_initialized$6(self) {
|
|
731
|
-
if (self === void 0) {
|
|
732
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
733
|
-
}
|
|
734
|
-
return self;
|
|
735
|
-
}
|
|
736
|
-
function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
|
|
737
|
-
try {
|
|
738
|
-
var info = gen[key](arg);
|
|
739
|
-
var value = info.value;
|
|
740
|
-
} catch (error) {
|
|
741
|
-
reject(error);
|
|
742
|
-
return;
|
|
743
|
-
}
|
|
744
|
-
if (info.done) {
|
|
745
|
-
resolve(value);
|
|
746
|
-
} else {
|
|
747
|
-
Promise.resolve(value).then(_next, _throw);
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
function _async_to_generator$1(fn) {
|
|
751
|
-
return function() {
|
|
752
|
-
var self = this, args = arguments;
|
|
753
|
-
return new Promise(function(resolve, reject) {
|
|
754
|
-
var gen = fn.apply(self, args);
|
|
755
|
-
function _next(value) {
|
|
756
|
-
asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "next", value);
|
|
757
|
-
}
|
|
758
|
-
function _throw(err) {
|
|
759
|
-
asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "throw", err);
|
|
760
|
-
}
|
|
761
|
-
_next(undefined);
|
|
762
|
-
});
|
|
763
|
-
};
|
|
764
|
-
}
|
|
765
|
-
function _class_call_check$e(instance, Constructor) {
|
|
766
|
-
if (!(instance instanceof Constructor)) {
|
|
767
|
-
throw new TypeError("Cannot call a class as a function");
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
function _construct(Parent, args, Class) {
|
|
771
|
-
if (_is_native_reflect_construct$6()) {
|
|
772
|
-
_construct = Reflect.construct;
|
|
773
|
-
} else {
|
|
774
|
-
_construct = function construct(Parent, args, Class) {
|
|
775
|
-
var a = [
|
|
776
|
-
null
|
|
777
|
-
];
|
|
778
|
-
a.push.apply(a, args);
|
|
779
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
780
|
-
var instance = new Constructor();
|
|
781
|
-
if (Class) _set_prototype_of$6(instance, Class.prototype);
|
|
782
|
-
return instance;
|
|
783
|
-
};
|
|
784
|
-
}
|
|
785
|
-
return _construct.apply(null, arguments);
|
|
786
|
-
}
|
|
787
|
-
function _defineProperties$e(target, props) {
|
|
788
|
-
for(var i = 0; i < props.length; i++){
|
|
789
|
-
var descriptor = props[i];
|
|
790
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
791
|
-
descriptor.configurable = true;
|
|
792
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
793
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
function _create_class$e(Constructor, protoProps, staticProps) {
|
|
797
|
-
if (protoProps) _defineProperties$e(Constructor.prototype, protoProps);
|
|
798
|
-
if (staticProps) _defineProperties$e(Constructor, staticProps);
|
|
799
|
-
return Constructor;
|
|
800
|
-
}
|
|
801
|
-
function _get_prototype_of$6(o) {
|
|
802
|
-
_get_prototype_of$6 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
803
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
804
|
-
};
|
|
805
|
-
return _get_prototype_of$6(o);
|
|
572
|
+
function _get_prototype_of$6(o) {
|
|
573
|
+
_get_prototype_of$6 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
574
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
575
|
+
};
|
|
576
|
+
return _get_prototype_of$6(o);
|
|
806
577
|
}
|
|
807
578
|
function _inherits$6(subClass, superClass) {
|
|
808
579
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -817,12 +588,6 @@ function _inherits$6(subClass, superClass) {
|
|
|
817
588
|
});
|
|
818
589
|
if (superClass) _set_prototype_of$6(subClass, superClass);
|
|
819
590
|
}
|
|
820
|
-
function _is_native_function(fn) {
|
|
821
|
-
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
822
|
-
}
|
|
823
|
-
function _iterable_to_array$6(iter) {
|
|
824
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
825
|
-
}
|
|
826
591
|
function _iterable_to_array_limit$5(arr, i) {
|
|
827
592
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
828
593
|
if (_i == null) return;
|
|
@@ -850,9 +615,6 @@ function _iterable_to_array_limit$5(arr, i) {
|
|
|
850
615
|
function _non_iterable_rest$5() {
|
|
851
616
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
852
617
|
}
|
|
853
|
-
function _non_iterable_spread$6() {
|
|
854
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
855
|
-
}
|
|
856
618
|
function _possible_constructor_return$6(self, call) {
|
|
857
619
|
if (call && (_type_of$6(call) === "object" || typeof call === "function")) {
|
|
858
620
|
return call;
|
|
@@ -869,9 +631,6 @@ function _set_prototype_of$6(o, p) {
|
|
|
869
631
|
function _sliced_to_array$5(arr, i) {
|
|
870
632
|
return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$9(arr, i) || _non_iterable_rest$5();
|
|
871
633
|
}
|
|
872
|
-
function _to_consumable_array$6(arr) {
|
|
873
|
-
return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$9(arr) || _non_iterable_spread$6();
|
|
874
|
-
}
|
|
875
634
|
function _type_of$6(obj) {
|
|
876
635
|
"@swc/helpers - typeof";
|
|
877
636
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
@@ -884,32 +643,6 @@ function _unsupported_iterable_to_array$9(o, minLen) {
|
|
|
884
643
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
885
644
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
886
645
|
}
|
|
887
|
-
function _wrap_native_super(Class) {
|
|
888
|
-
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
889
|
-
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
890
|
-
if (Class === null || !_is_native_function(Class)) return Class;
|
|
891
|
-
if (typeof Class !== "function") {
|
|
892
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
893
|
-
}
|
|
894
|
-
if (typeof _cache !== "undefined") {
|
|
895
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
|
896
|
-
_cache.set(Class, Wrapper);
|
|
897
|
-
}
|
|
898
|
-
function Wrapper() {
|
|
899
|
-
return _construct(Class, arguments, _get_prototype_of$6(this).constructor);
|
|
900
|
-
}
|
|
901
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
|
902
|
-
constructor: {
|
|
903
|
-
value: Wrapper,
|
|
904
|
-
enumerable: false,
|
|
905
|
-
writable: true,
|
|
906
|
-
configurable: true
|
|
907
|
-
}
|
|
908
|
-
});
|
|
909
|
-
return _set_prototype_of$6(Wrapper, Class);
|
|
910
|
-
};
|
|
911
|
-
return _wrap_native_super(Class);
|
|
912
|
-
}
|
|
913
646
|
function _is_native_reflect_construct$6() {
|
|
914
647
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
915
648
|
if (Reflect.construct.sham) return false;
|
|
@@ -934,7 +667,7 @@ function _create_super$6(Derived) {
|
|
|
934
667
|
return _possible_constructor_return$6(this, result);
|
|
935
668
|
};
|
|
936
669
|
}
|
|
937
|
-
function _ts_generator$
|
|
670
|
+
function _ts_generator$5(thisArg, body) {
|
|
938
671
|
var f, y, t, g, _ = {
|
|
939
672
|
label: 0,
|
|
940
673
|
sent: function() {
|
|
@@ -1029,282 +762,313 @@ function _ts_generator$4(thisArg, body) {
|
|
|
1029
762
|
};
|
|
1030
763
|
}
|
|
1031
764
|
}
|
|
1032
|
-
var
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
*/ var i$6 = Object.is, e$3 = Object.defineProperty, r$3 = Object.getOwnPropertyDescriptor, h$1 = Object.getOwnPropertyNames, o$2 = Object.getOwnPropertySymbols, n$2 = Object.getPrototypeOf, a$1 = globalThis, c$1 = a$1.trustedTypes, l$2 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$2 = function(t, s) {
|
|
1038
|
-
return t;
|
|
1039
|
-
}, u$1 = {
|
|
1040
|
-
toAttribute: function toAttribute(t, s) {
|
|
1041
|
-
switch(s){
|
|
1042
|
-
case Boolean:
|
|
1043
|
-
t = t ? l$2 : null;
|
|
1044
|
-
break;
|
|
1045
|
-
case Object:
|
|
1046
|
-
case Array:
|
|
1047
|
-
t = null == t ? t : JSON.stringify(t);
|
|
1048
|
-
}
|
|
1049
|
-
return t;
|
|
1050
|
-
},
|
|
1051
|
-
fromAttribute: function fromAttribute(t, s) {
|
|
1052
|
-
var i = t;
|
|
1053
|
-
switch(s){
|
|
1054
|
-
case Boolean:
|
|
1055
|
-
i = null !== t;
|
|
1056
|
-
break;
|
|
1057
|
-
case Number:
|
|
1058
|
-
i = null === t ? null : Number(t);
|
|
1059
|
-
break;
|
|
1060
|
-
case Object:
|
|
1061
|
-
case Array:
|
|
1062
|
-
try {
|
|
1063
|
-
i = JSON.parse(t);
|
|
1064
|
-
} catch (t) {
|
|
1065
|
-
i = null;
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
return i;
|
|
765
|
+
var getElementRenderer = function(param, tagName) {
|
|
766
|
+
var elementRenderers = param.elementRenderers, ceClass = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : customElements.get(tagName), attributes = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : new Map();
|
|
767
|
+
if (ceClass === undefined) {
|
|
768
|
+
console.warn("Custom element ".concat(tagName, " was not registered."));
|
|
769
|
+
return new FallbackRenderer(tagName);
|
|
1069
770
|
}
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
1082
|
-
_inherits$6(b, HTMLElement1);
|
|
1083
|
-
var _super = _create_super$6(b);
|
|
1084
|
-
function b() {
|
|
1085
|
-
_class_call_check$e(this, b);
|
|
1086
|
-
var _this;
|
|
1087
|
-
_this = _super.call(this), _this._$Ep = void 0, _this.isUpdatePending = !1, _this.hasUpdated = !1, _this._$Em = null, _this._$Ev();
|
|
1088
|
-
return _possible_constructor_return$6(_this);
|
|
1089
|
-
}
|
|
1090
|
-
_create_class$e(b, [
|
|
1091
|
-
{
|
|
1092
|
-
key: "_$Ev",
|
|
1093
|
-
value: function _$Ev() {
|
|
1094
|
-
var _this = this;
|
|
1095
|
-
var _this_constructor_l;
|
|
1096
|
-
this._$ES = new Promise(function(t) {
|
|
1097
|
-
return _this.enableUpdating = t;
|
|
1098
|
-
}), this._$AL = new Map, this._$E_(), this.requestUpdate(), (_this_constructor_l = this.constructor.l) === null || _this_constructor_l === void 0 ? void 0 : _this_constructor_l.forEach(function(t) {
|
|
1099
|
-
return t(_this);
|
|
1100
|
-
});
|
|
1101
|
-
}
|
|
1102
|
-
},
|
|
1103
|
-
{
|
|
1104
|
-
key: "addController",
|
|
1105
|
-
value: function addController(t) {
|
|
1106
|
-
var _t_hostConnected;
|
|
1107
|
-
var _this__$EO;
|
|
1108
|
-
((_this__$EO = this._$EO) !== null && _this__$EO !== void 0 ? _this__$EO : this._$EO = new Set).add(t), void 0 !== this.renderRoot && this.isConnected && ((_t_hostConnected = t.hostConnected) === null || _t_hostConnected === void 0 ? void 0 : _t_hostConnected.call(t));
|
|
1109
|
-
}
|
|
1110
|
-
},
|
|
1111
|
-
{
|
|
1112
|
-
key: "removeController",
|
|
1113
|
-
value: function removeController(t) {
|
|
1114
|
-
var _this__$EO;
|
|
1115
|
-
(_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.delete(t);
|
|
771
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
772
|
+
try {
|
|
773
|
+
// TODO(kschaaf): Should we implement a caching scheme, e.g. keyed off of
|
|
774
|
+
// ceClass's base class to prevent O(n) lookups for every element (probably
|
|
775
|
+
// not a concern for the small number of element renderers we'd expect)? Doing
|
|
776
|
+
// so would preclude having cross-cutting renderers to e.g. no-op render all
|
|
777
|
+
// custom elements with a `client-only` attribute, so punting for now.
|
|
778
|
+
for(var _iterator = elementRenderers[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
779
|
+
var renderer = _step.value;
|
|
780
|
+
if (renderer.matchesClass(ceClass, tagName, attributes)) {
|
|
781
|
+
return new renderer(tagName);
|
|
1116
782
|
}
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
var i = _step.value;
|
|
1126
|
-
this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
|
1127
|
-
}
|
|
1128
|
-
} catch (err) {
|
|
1129
|
-
_didIteratorError = true;
|
|
1130
|
-
_iteratorError = err;
|
|
1131
|
-
} finally{
|
|
1132
|
-
try {
|
|
1133
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1134
|
-
_iterator.return();
|
|
1135
|
-
}
|
|
1136
|
-
} finally{
|
|
1137
|
-
if (_didIteratorError) {
|
|
1138
|
-
throw _iteratorError;
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
t.size > 0 && (this._$Ep = t);
|
|
783
|
+
}
|
|
784
|
+
} catch (err) {
|
|
785
|
+
_didIteratorError = true;
|
|
786
|
+
_iteratorError = err;
|
|
787
|
+
} finally{
|
|
788
|
+
try {
|
|
789
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
790
|
+
_iterator.return();
|
|
1143
791
|
}
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
value: function createRenderRoot() {
|
|
1148
|
-
var _this_shadowRoot;
|
|
1149
|
-
var t = (_this_shadowRoot = this.shadowRoot) !== null && _this_shadowRoot !== void 0 ? _this_shadowRoot : this.attachShadow(this.constructor.shadowRootOptions);
|
|
1150
|
-
return S$1(t, this.constructor.elementStyles), t;
|
|
792
|
+
} finally{
|
|
793
|
+
if (_didIteratorError) {
|
|
794
|
+
throw _iteratorError;
|
|
1151
795
|
}
|
|
1152
|
-
}
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
return new FallbackRenderer(tagName);
|
|
799
|
+
};
|
|
800
|
+
/**
|
|
801
|
+
* An object that renders elements of a certain type.
|
|
802
|
+
*/ var ElementRenderer = /*#__PURE__*/ function() {
|
|
803
|
+
function ElementRenderer(tagName) {
|
|
804
|
+
_class_call_check$e(this, ElementRenderer);
|
|
805
|
+
this.tagName = tagName;
|
|
806
|
+
}
|
|
807
|
+
_create_class$e(ElementRenderer, [
|
|
1153
808
|
{
|
|
1154
|
-
|
|
809
|
+
/**
|
|
810
|
+
* Called when a custom element is "attached" to the server DOM.
|
|
811
|
+
*
|
|
812
|
+
* Because we don't presume a full DOM emulation, this isn't the same as
|
|
813
|
+
* being connected in a real browser. There may not be an owner document,
|
|
814
|
+
* parentNode, etc., depending on the DOM emulation.
|
|
815
|
+
*
|
|
816
|
+
* If this renderer is creating actual element instances, it may forward
|
|
817
|
+
* the call to the element's `connectedCallback()`.
|
|
818
|
+
*
|
|
819
|
+
* The default impementation is a no-op.
|
|
820
|
+
*/ key: "connectedCallback",
|
|
1155
821
|
value: function connectedCallback() {
|
|
1156
|
-
|
|
1157
|
-
var _this_renderRoot;
|
|
1158
|
-
(_this_renderRoot = this.renderRoot) !== null && _this_renderRoot !== void 0 ? _this_renderRoot : this.renderRoot = this.createRenderRoot(), this.enableUpdating(!0), (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
|
|
1159
|
-
var _t_hostConnected;
|
|
1160
|
-
return (_t_hostConnected = t.hostConnected) === null || _t_hostConnected === void 0 ? void 0 : _t_hostConnected.call(t);
|
|
1161
|
-
});
|
|
822
|
+
// do nothing
|
|
1162
823
|
}
|
|
1163
824
|
},
|
|
1164
825
|
{
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
return (_t_hostDisconnected = t.hostDisconnected) === null || _t_hostDisconnected === void 0 ? void 0 : _t_hostDisconnected.call(t);
|
|
1175
|
-
});
|
|
826
|
+
/**
|
|
827
|
+
* Called from `setAttribute()` to emulate the browser's
|
|
828
|
+
* `attributeChangedCallback` lifecycle hook.
|
|
829
|
+
*
|
|
830
|
+
* If this renderer is creating actual element instances, it may forward
|
|
831
|
+
* the call to the element's `attributeChangedCallback()`.
|
|
832
|
+
*/ key: "attributeChangedCallback",
|
|
833
|
+
value: function attributeChangedCallback(_name, _old, _value) {
|
|
834
|
+
// do nothing
|
|
1176
835
|
}
|
|
1177
836
|
},
|
|
1178
837
|
{
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
838
|
+
/**
|
|
839
|
+
* Handles setting a property on the element.
|
|
840
|
+
*
|
|
841
|
+
* The default implementation sets the property on the renderer's element
|
|
842
|
+
* instance.
|
|
843
|
+
*
|
|
844
|
+
* @param name Name of the property
|
|
845
|
+
* @param value Value of the property
|
|
846
|
+
*/ key: "setProperty",
|
|
847
|
+
value: function setProperty(name, value) {
|
|
848
|
+
if (this.element !== undefined) {
|
|
849
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
850
|
+
this.element[name] = value;
|
|
851
|
+
}
|
|
1182
852
|
}
|
|
1183
853
|
},
|
|
1184
854
|
{
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
855
|
+
/**
|
|
856
|
+
* Handles setting an attribute on an element.
|
|
857
|
+
*
|
|
858
|
+
* Default implementation calls `setAttribute` on the renderer's element
|
|
859
|
+
* instance, and calls the abstract `attributeChangedCallback` on the
|
|
860
|
+
* renderer.
|
|
861
|
+
*
|
|
862
|
+
* @param name Name of the attribute
|
|
863
|
+
* @param value Value of the attribute
|
|
864
|
+
*/ key: "setAttribute",
|
|
865
|
+
value: function setAttribute(name, value) {
|
|
866
|
+
// Browser turns all HTML attributes to lowercase.
|
|
867
|
+
name = name.toLowerCase();
|
|
868
|
+
if (this.element !== undefined) {
|
|
869
|
+
var old = this.element.getAttribute(name);
|
|
870
|
+
this.element.setAttribute(name, value);
|
|
871
|
+
this.attributeChangedCallback(name, old, value);
|
|
1192
872
|
}
|
|
1193
873
|
}
|
|
1194
874
|
},
|
|
1195
875
|
{
|
|
1196
|
-
key: "
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
this._$Em = e, this[e] = r.fromAttribute(s, _$t.type), this._$Em = null;
|
|
1205
|
-
}
|
|
876
|
+
key: "shadowRootOptions",
|
|
877
|
+
get: /**
|
|
878
|
+
* The shadow root options to write to the declarative shadow DOM <template>,
|
|
879
|
+
* if one is created with `renderShadow()`.
|
|
880
|
+
*/ function get() {
|
|
881
|
+
return {
|
|
882
|
+
mode: "open"
|
|
883
|
+
};
|
|
1206
884
|
}
|
|
1207
885
|
},
|
|
1208
886
|
{
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
887
|
+
/**
|
|
888
|
+
* Render the element's shadow root children.
|
|
889
|
+
*
|
|
890
|
+
* If `renderShadow()` returns undefined, no declarative shadow root is
|
|
891
|
+
* emitted.
|
|
892
|
+
*/ key: "renderShadow",
|
|
893
|
+
value: function renderShadow(_renderInfo) {
|
|
894
|
+
return undefined;
|
|
1217
895
|
}
|
|
1218
896
|
},
|
|
1219
897
|
{
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
898
|
+
/**
|
|
899
|
+
* Render the element's light DOM children.
|
|
900
|
+
*/ key: "renderLight",
|
|
901
|
+
value: function renderLight(_renderInfo) {
|
|
902
|
+
return undefined;
|
|
1224
903
|
}
|
|
1225
904
|
},
|
|
1226
905
|
{
|
|
1227
|
-
key: "
|
|
1228
|
-
value:
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
906
|
+
key: "renderAttributes",
|
|
907
|
+
value: /**
|
|
908
|
+
* Render the element's attributes.
|
|
909
|
+
*
|
|
910
|
+
* The default implementation serializes all attributes on the element
|
|
911
|
+
* instance.
|
|
912
|
+
*/ function renderAttributes() {
|
|
913
|
+
var attributes, ref, i, name, value;
|
|
914
|
+
return _ts_generator$5(this, function(_state) {
|
|
915
|
+
switch(_state.label){
|
|
916
|
+
case 0:
|
|
917
|
+
if (!(this.element !== undefined)) return [
|
|
918
|
+
3,
|
|
919
|
+
6
|
|
920
|
+
];
|
|
921
|
+
attributes = this.element.attributes;
|
|
922
|
+
i = 0;
|
|
923
|
+
_state.label = 1;
|
|
924
|
+
case 1:
|
|
925
|
+
if (!(i < attributes.length && (ref = attributes[i], name = ref.name, value = ref.value, ref))) return [
|
|
926
|
+
3,
|
|
927
|
+
6
|
|
928
|
+
];
|
|
929
|
+
if (!(value === "" || value === undefined || value === null)) return [
|
|
930
|
+
3,
|
|
931
|
+
3
|
|
932
|
+
];
|
|
933
|
+
return [
|
|
934
|
+
4,
|
|
935
|
+
" ".concat(name)
|
|
936
|
+
];
|
|
937
|
+
case 2:
|
|
938
|
+
_state.sent();
|
|
939
|
+
return [
|
|
940
|
+
3,
|
|
941
|
+
5
|
|
942
|
+
];
|
|
943
|
+
case 3:
|
|
944
|
+
return [
|
|
945
|
+
4,
|
|
946
|
+
" ".concat(name, '="').concat(escapeHtml(value), '"')
|
|
947
|
+
];
|
|
948
|
+
case 4:
|
|
949
|
+
_state.sent();
|
|
950
|
+
_state.label = 5;
|
|
951
|
+
case 5:
|
|
952
|
+
i++;
|
|
953
|
+
return [
|
|
954
|
+
3,
|
|
955
|
+
1
|
|
956
|
+
];
|
|
957
|
+
case 6:
|
|
958
|
+
return [
|
|
959
|
+
2
|
|
960
|
+
];
|
|
961
|
+
}
|
|
962
|
+
});
|
|
1283
963
|
}
|
|
1284
|
-
}
|
|
964
|
+
}
|
|
965
|
+
], [
|
|
1285
966
|
{
|
|
1286
|
-
key: "
|
|
1287
|
-
value:
|
|
1288
|
-
|
|
967
|
+
key: "matchesClass",
|
|
968
|
+
value: /**
|
|
969
|
+
* Should be implemented to return true when the given custom element class
|
|
970
|
+
* and/or tagName should be handled by this renderer.
|
|
971
|
+
*
|
|
972
|
+
* @param ceClass - Custom Element class
|
|
973
|
+
* @param tagName - Tag name of custom element instance
|
|
974
|
+
* @param attributes - Map of attribute key/value pairs
|
|
975
|
+
* @returns
|
|
976
|
+
*/ function matchesClass(_ceClass, _tagName, _attributes) {
|
|
977
|
+
return false;
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
]);
|
|
981
|
+
return ElementRenderer;
|
|
982
|
+
}();
|
|
983
|
+
/**
|
|
984
|
+
* An ElementRenderer used as a fallback in the case where a custom element is
|
|
985
|
+
* either unregistered or has no other matching renderer.
|
|
986
|
+
*/ var FallbackRenderer = /*#__PURE__*/ function(ElementRenderer) {
|
|
987
|
+
_inherits$6(FallbackRenderer, ElementRenderer);
|
|
988
|
+
var _super = _create_super$6(FallbackRenderer);
|
|
989
|
+
function FallbackRenderer() {
|
|
990
|
+
_class_call_check$e(this, FallbackRenderer);
|
|
991
|
+
var _this;
|
|
992
|
+
_this = _super.call.apply(_super, [
|
|
993
|
+
this
|
|
994
|
+
].concat(Array.prototype.slice.call(arguments)));
|
|
995
|
+
_this._attributes = {};
|
|
996
|
+
return _this;
|
|
997
|
+
}
|
|
998
|
+
_create_class$e(FallbackRenderer, [
|
|
999
|
+
{
|
|
1000
|
+
key: "setAttribute",
|
|
1001
|
+
value: function setAttribute(name, value) {
|
|
1002
|
+
// Browser turns all HTML attributes to lowercase.
|
|
1003
|
+
this._attributes[name.toLowerCase()] = value;
|
|
1289
1004
|
}
|
|
1290
1005
|
},
|
|
1291
1006
|
{
|
|
1292
|
-
key: "
|
|
1293
|
-
value: function
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1007
|
+
key: "renderAttributes",
|
|
1008
|
+
value: function renderAttributes() {
|
|
1009
|
+
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, _step_value, name, value, err;
|
|
1010
|
+
return _ts_generator$5(this, function(_state) {
|
|
1011
|
+
switch(_state.label){
|
|
1012
|
+
case 0:
|
|
1013
|
+
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1014
|
+
_state.label = 1;
|
|
1015
|
+
case 1:
|
|
1016
|
+
_state.trys.push([
|
|
1017
|
+
1,
|
|
1018
|
+
8,
|
|
1019
|
+
9,
|
|
1020
|
+
10
|
|
1021
|
+
]);
|
|
1022
|
+
_iterator = Object.entries(this._attributes)[Symbol.iterator]();
|
|
1023
|
+
_state.label = 2;
|
|
1024
|
+
case 2:
|
|
1025
|
+
if (!!(_iteratorNormalCompletion = (_step = _iterator.next()).done)) return [
|
|
1026
|
+
3,
|
|
1027
|
+
7
|
|
1028
|
+
];
|
|
1029
|
+
_step_value = _sliced_to_array$5(_step.value, 2), name = _step_value[0], value = _step_value[1];
|
|
1030
|
+
if (!(value === "" || value === undefined || value === null)) return [
|
|
1031
|
+
3,
|
|
1032
|
+
4
|
|
1033
|
+
];
|
|
1034
|
+
return [
|
|
1035
|
+
4,
|
|
1036
|
+
" ".concat(name)
|
|
1037
|
+
];
|
|
1038
|
+
case 3:
|
|
1039
|
+
_state.sent();
|
|
1040
|
+
return [
|
|
1041
|
+
3,
|
|
1042
|
+
6
|
|
1043
|
+
];
|
|
1044
|
+
case 4:
|
|
1045
|
+
return [
|
|
1046
|
+
4,
|
|
1047
|
+
" ".concat(name, '="').concat(escapeHtml(value), '"')
|
|
1048
|
+
];
|
|
1049
|
+
case 5:
|
|
1050
|
+
_state.sent();
|
|
1051
|
+
_state.label = 6;
|
|
1052
|
+
case 6:
|
|
1053
|
+
_iteratorNormalCompletion = true;
|
|
1054
|
+
return [
|
|
1055
|
+
3,
|
|
1056
|
+
2
|
|
1057
|
+
];
|
|
1058
|
+
case 7:
|
|
1059
|
+
return [
|
|
1060
|
+
3,
|
|
1061
|
+
10
|
|
1062
|
+
];
|
|
1063
|
+
case 8:
|
|
1064
|
+
err = _state.sent();
|
|
1305
1065
|
_didIteratorError = true;
|
|
1306
1066
|
_iteratorError = err;
|
|
1307
|
-
|
|
1067
|
+
return [
|
|
1068
|
+
3,
|
|
1069
|
+
10
|
|
1070
|
+
];
|
|
1071
|
+
case 9:
|
|
1308
1072
|
try {
|
|
1309
1073
|
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1310
1074
|
_iterator.return();
|
|
@@ -1314,309 +1078,27 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
1314
1078
|
throw _iteratorError;
|
|
1315
1079
|
}
|
|
1316
1080
|
}
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
var _step_value1 = _sliced_to_array$5(_step1.value, 2), _$s1 = _step_value1[0], i = _step_value1[1];
|
|
1325
|
-
!0 !== i.wrapped || this._$AL.has(_$s1) || void 0 === this[_$s1] || this.P(_$s1, this[_$s1], i);
|
|
1326
|
-
}
|
|
1327
|
-
} catch (err) {
|
|
1328
|
-
_didIteratorError1 = true;
|
|
1329
|
-
_iteratorError1 = err;
|
|
1330
|
-
} finally{
|
|
1331
|
-
try {
|
|
1332
|
-
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
1333
|
-
_iterator1.return();
|
|
1334
|
-
}
|
|
1335
|
-
} finally{
|
|
1336
|
-
if (_didIteratorError1) {
|
|
1337
|
-
throw _iteratorError1;
|
|
1338
|
-
}
|
|
1339
|
-
}
|
|
1081
|
+
return [
|
|
1082
|
+
7
|
|
1083
|
+
];
|
|
1084
|
+
case 10:
|
|
1085
|
+
return [
|
|
1086
|
+
2
|
|
1087
|
+
];
|
|
1340
1088
|
}
|
|
1341
|
-
}
|
|
1342
|
-
var t2 = !1;
|
|
1343
|
-
var _$s2 = this._$AL;
|
|
1344
|
-
try {
|
|
1345
|
-
var _this__$EO;
|
|
1346
|
-
t2 = this.shouldUpdate(_$s2), t2 ? (this.willUpdate(_$s2), (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
|
|
1347
|
-
var _t_hostUpdate;
|
|
1348
|
-
return (_t_hostUpdate = t.hostUpdate) === null || _t_hostUpdate === void 0 ? void 0 : _t_hostUpdate.call(t);
|
|
1349
|
-
}), this.update(_$s2)) : this._$EU();
|
|
1350
|
-
} catch (s) {
|
|
1351
|
-
throw t2 = !1, this._$EU(), s;
|
|
1352
|
-
}
|
|
1353
|
-
t2 && this._$AE(_$s2);
|
|
1354
|
-
}
|
|
1355
|
-
},
|
|
1356
|
-
{
|
|
1357
|
-
key: "willUpdate",
|
|
1358
|
-
value: function willUpdate(t) {}
|
|
1359
|
-
},
|
|
1360
|
-
{
|
|
1361
|
-
key: "_$AE",
|
|
1362
|
-
value: function _$AE(t) {
|
|
1363
|
-
var _this__$EO;
|
|
1364
|
-
(_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
|
|
1365
|
-
var _t_hostUpdated;
|
|
1366
|
-
return (_t_hostUpdated = t.hostUpdated) === null || _t_hostUpdated === void 0 ? void 0 : _t_hostUpdated.call(t);
|
|
1367
|
-
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
1368
|
-
}
|
|
1369
|
-
},
|
|
1370
|
-
{
|
|
1371
|
-
key: "_$EU",
|
|
1372
|
-
value: function _$EU() {
|
|
1373
|
-
this._$AL = new Map, this.isUpdatePending = !1;
|
|
1374
|
-
}
|
|
1375
|
-
},
|
|
1376
|
-
{
|
|
1377
|
-
key: "updateComplete",
|
|
1378
|
-
get: function get() {
|
|
1379
|
-
return this.getUpdateComplete();
|
|
1380
|
-
}
|
|
1381
|
-
},
|
|
1382
|
-
{
|
|
1383
|
-
key: "getUpdateComplete",
|
|
1384
|
-
value: function getUpdateComplete() {
|
|
1385
|
-
return this._$ES;
|
|
1386
|
-
}
|
|
1387
|
-
},
|
|
1388
|
-
{
|
|
1389
|
-
key: "shouldUpdate",
|
|
1390
|
-
value: function shouldUpdate(t) {
|
|
1391
|
-
return !0;
|
|
1392
|
-
}
|
|
1393
|
-
},
|
|
1394
|
-
{
|
|
1395
|
-
key: "update",
|
|
1396
|
-
value: function update(t) {
|
|
1397
|
-
var _this = this;
|
|
1398
|
-
this._$Ej && (this._$Ej = this._$Ej.forEach(function(t) {
|
|
1399
|
-
return _this._$EC(t, _this[t]);
|
|
1400
|
-
})), this._$EU();
|
|
1401
|
-
}
|
|
1402
|
-
},
|
|
1403
|
-
{
|
|
1404
|
-
key: "updated",
|
|
1405
|
-
value: function updated(t) {}
|
|
1406
|
-
},
|
|
1407
|
-
{
|
|
1408
|
-
key: "firstUpdated",
|
|
1409
|
-
value: function firstUpdated(t) {}
|
|
1410
|
-
}
|
|
1411
|
-
], [
|
|
1412
|
-
{
|
|
1413
|
-
key: "addInitializer",
|
|
1414
|
-
value: function addInitializer(t) {
|
|
1415
|
-
var _this_l;
|
|
1416
|
-
this._$Ei(), ((_this_l = this.l) !== null && _this_l !== void 0 ? _this_l : this.l = []).push(t);
|
|
1417
|
-
}
|
|
1418
|
-
},
|
|
1419
|
-
{
|
|
1420
|
-
key: "observedAttributes",
|
|
1421
|
-
get: function get() {
|
|
1422
|
-
return this.finalize(), this._$Eh && _to_consumable_array$6(this._$Eh.keys());
|
|
1423
|
-
}
|
|
1424
|
-
},
|
|
1425
|
-
{
|
|
1426
|
-
key: "createProperty",
|
|
1427
|
-
value: function createProperty(t) {
|
|
1428
|
-
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : y;
|
|
1429
|
-
if (s.state && (s.attribute = !1), this._$Ei(), this.elementProperties.set(t, s), !s.noAccessor) {
|
|
1430
|
-
var i = Symbol(), r = this.getPropertyDescriptor(t, i, s);
|
|
1431
|
-
void 0 !== r && e$3(this.prototype, t, r);
|
|
1432
|
-
}
|
|
1433
|
-
}
|
|
1434
|
-
},
|
|
1435
|
-
{
|
|
1436
|
-
key: "getPropertyDescriptor",
|
|
1437
|
-
value: function getPropertyDescriptor(t, s, i) {
|
|
1438
|
-
var _r;
|
|
1439
|
-
var _ref = (_r = r$3(this.prototype, t)) !== null && _r !== void 0 ? _r : {
|
|
1440
|
-
get: function get() {
|
|
1441
|
-
return this[s];
|
|
1442
|
-
},
|
|
1443
|
-
set: function set(t) {
|
|
1444
|
-
this[s] = t;
|
|
1445
|
-
}
|
|
1446
|
-
}, e = _ref.get, h = _ref.set;
|
|
1447
|
-
return {
|
|
1448
|
-
get: function get() {
|
|
1449
|
-
return e === null || e === void 0 ? void 0 : e.call(this);
|
|
1450
|
-
},
|
|
1451
|
-
set: function set(s) {
|
|
1452
|
-
var r = e === null || e === void 0 ? void 0 : e.call(this);
|
|
1453
|
-
h.call(this, s), this.requestUpdate(t, r, i);
|
|
1454
|
-
},
|
|
1455
|
-
configurable: !0,
|
|
1456
|
-
enumerable: !0
|
|
1457
|
-
};
|
|
1458
|
-
}
|
|
1459
|
-
},
|
|
1460
|
-
{
|
|
1461
|
-
key: "getPropertyOptions",
|
|
1462
|
-
value: function getPropertyOptions(t) {
|
|
1463
|
-
var _this_elementProperties_get;
|
|
1464
|
-
return (_this_elementProperties_get = this.elementProperties.get(t)) !== null && _this_elementProperties_get !== void 0 ? _this_elementProperties_get : y;
|
|
1465
|
-
}
|
|
1466
|
-
},
|
|
1467
|
-
{
|
|
1468
|
-
key: "_$Ei",
|
|
1469
|
-
value: function _$Ei() {
|
|
1470
|
-
if (this.hasOwnProperty(d$2("elementProperties"))) return;
|
|
1471
|
-
var t = n$2(this);
|
|
1472
|
-
t.finalize(), void 0 !== t.l && (this.l = _to_consumable_array$6(t.l)), this.elementProperties = new Map(t.elementProperties);
|
|
1473
|
-
}
|
|
1474
|
-
},
|
|
1475
|
-
{
|
|
1476
|
-
key: "finalize",
|
|
1477
|
-
value: function finalize() {
|
|
1478
|
-
if (this.hasOwnProperty(d$2("finalized"))) return;
|
|
1479
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d$2("properties"))) {
|
|
1480
|
-
var t = this.properties, s = _to_consumable_array$6(h$1(t)).concat(_to_consumable_array$6(o$2(t)));
|
|
1481
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1482
|
-
try {
|
|
1483
|
-
for(var _iterator = s[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1484
|
-
var i = _step.value;
|
|
1485
|
-
this.createProperty(i, t[i]);
|
|
1486
|
-
}
|
|
1487
|
-
} catch (err) {
|
|
1488
|
-
_didIteratorError = true;
|
|
1489
|
-
_iteratorError = err;
|
|
1490
|
-
} finally{
|
|
1491
|
-
try {
|
|
1492
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1493
|
-
_iterator.return();
|
|
1494
|
-
}
|
|
1495
|
-
} finally{
|
|
1496
|
-
if (_didIteratorError) {
|
|
1497
|
-
throw _iteratorError;
|
|
1498
|
-
}
|
|
1499
|
-
}
|
|
1500
|
-
}
|
|
1501
|
-
}
|
|
1502
|
-
var t1 = this[Symbol.metadata];
|
|
1503
|
-
if (null !== t1) {
|
|
1504
|
-
var s1 = litPropertyMetadata.get(t1);
|
|
1505
|
-
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
1506
|
-
if (void 0 !== s1) try {
|
|
1507
|
-
for(var _iterator1 = s1[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
1508
|
-
var _step_value = _sliced_to_array$5(_step1.value, 2), t2 = _step_value[0], i1 = _step_value[1];
|
|
1509
|
-
this.elementProperties.set(t2, i1);
|
|
1510
|
-
}
|
|
1511
|
-
} catch (err) {
|
|
1512
|
-
_didIteratorError1 = true;
|
|
1513
|
-
_iteratorError1 = err;
|
|
1514
|
-
} finally{
|
|
1515
|
-
try {
|
|
1516
|
-
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
1517
|
-
_iterator1.return();
|
|
1518
|
-
}
|
|
1519
|
-
} finally{
|
|
1520
|
-
if (_didIteratorError1) {
|
|
1521
|
-
throw _iteratorError1;
|
|
1522
|
-
}
|
|
1523
|
-
}
|
|
1524
|
-
}
|
|
1525
|
-
}
|
|
1526
|
-
this._$Eh = new Map;
|
|
1527
|
-
var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
|
|
1528
|
-
try {
|
|
1529
|
-
for(var _iterator2 = this.elementProperties[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){
|
|
1530
|
-
var _step_value1 = _sliced_to_array$5(_step2.value, 2), t3 = _step_value1[0], s2 = _step_value1[1];
|
|
1531
|
-
var i2 = this._$Eu(t3, s2);
|
|
1532
|
-
void 0 !== i2 && this._$Eh.set(i2, t3);
|
|
1533
|
-
}
|
|
1534
|
-
} catch (err) {
|
|
1535
|
-
_didIteratorError2 = true;
|
|
1536
|
-
_iteratorError2 = err;
|
|
1537
|
-
} finally{
|
|
1538
|
-
try {
|
|
1539
|
-
if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
|
|
1540
|
-
_iterator2.return();
|
|
1541
|
-
}
|
|
1542
|
-
} finally{
|
|
1543
|
-
if (_didIteratorError2) {
|
|
1544
|
-
throw _iteratorError2;
|
|
1545
|
-
}
|
|
1546
|
-
}
|
|
1547
|
-
}
|
|
1548
|
-
this.elementStyles = this.finalizeStyles(this.styles);
|
|
1549
|
-
}
|
|
1550
|
-
},
|
|
1551
|
-
{
|
|
1552
|
-
key: "finalizeStyles",
|
|
1553
|
-
value: function finalizeStyles(s) {
|
|
1554
|
-
var i = [];
|
|
1555
|
-
if (Array.isArray(s)) {
|
|
1556
|
-
var e = new Set(s.flat(1 / 0).reverse());
|
|
1557
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1558
|
-
try {
|
|
1559
|
-
for(var _iterator = e[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1560
|
-
var _$s = _step.value;
|
|
1561
|
-
i.unshift(c$2(_$s));
|
|
1562
|
-
}
|
|
1563
|
-
} catch (err) {
|
|
1564
|
-
_didIteratorError = true;
|
|
1565
|
-
_iteratorError = err;
|
|
1566
|
-
} finally{
|
|
1567
|
-
try {
|
|
1568
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1569
|
-
_iterator.return();
|
|
1570
|
-
}
|
|
1571
|
-
} finally{
|
|
1572
|
-
if (_didIteratorError) {
|
|
1573
|
-
throw _iteratorError;
|
|
1574
|
-
}
|
|
1575
|
-
}
|
|
1576
|
-
}
|
|
1577
|
-
} else void 0 !== s && i.push(c$2(s));
|
|
1578
|
-
return i;
|
|
1579
|
-
}
|
|
1580
|
-
},
|
|
1581
|
-
{
|
|
1582
|
-
key: "_$Eu",
|
|
1583
|
-
value: function _$Eu(t, s) {
|
|
1584
|
-
var i = s.attribute;
|
|
1585
|
-
return !1 === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
|
|
1089
|
+
});
|
|
1586
1090
|
}
|
|
1587
1091
|
}
|
|
1588
1092
|
]);
|
|
1589
|
-
return
|
|
1590
|
-
}
|
|
1591
|
-
|
|
1592
|
-
b.elementStyles = [], b.shadowRootOptions = {
|
|
1593
|
-
mode: "open"
|
|
1594
|
-
}, b[d$2("elementProperties")] = new Map, b[d$2("finalized")] = new Map, p$1 === null || p$1 === void 0 ? void 0 : p$1({
|
|
1595
|
-
ReactiveElement: b
|
|
1596
|
-
}), ((_reactiveElementVersions = (_a1 = a$1).reactiveElementVersions) !== null && _reactiveElementVersions !== void 0 ? _reactiveElementVersions : _a1.reactiveElementVersions = []).push("2.0.4");
|
|
1093
|
+
return FallbackRenderer;
|
|
1094
|
+
}
|
|
1095
|
+
(ElementRenderer);
|
|
1597
1096
|
|
|
1598
1097
|
/**
|
|
1599
1098
|
* @license
|
|
1600
|
-
* Copyright
|
|
1099
|
+
* Copyright 2019 Google LLC
|
|
1601
1100
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1602
|
-
*/ function
|
|
1603
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
1604
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1605
|
-
return arr2;
|
|
1606
|
-
}
|
|
1607
|
-
function _array_with_holes$4(arr) {
|
|
1608
|
-
if (Array.isArray(arr)) return arr;
|
|
1609
|
-
}
|
|
1610
|
-
function _array_without_holes$5(arr) {
|
|
1611
|
-
if (Array.isArray(arr)) return _array_like_to_array$8(arr);
|
|
1612
|
-
}
|
|
1613
|
-
function _assert_this_initialized$5(self) {
|
|
1614
|
-
if (self === void 0) {
|
|
1615
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1616
|
-
}
|
|
1617
|
-
return self;
|
|
1618
|
-
}
|
|
1619
|
-
function _class_call_check$d(instance, Constructor) {
|
|
1101
|
+
*/ function _class_call_check$d(instance, Constructor) {
|
|
1620
1102
|
if (!(instance instanceof Constructor)) {
|
|
1621
1103
|
throw new TypeError("Cannot call a class as a function");
|
|
1622
1104
|
}
|
|
@@ -1635,26 +1117,203 @@ function _create_class$d(Constructor, protoProps, staticProps) {
|
|
|
1635
1117
|
if (staticProps) _defineProperties$d(Constructor, staticProps);
|
|
1636
1118
|
return Constructor;
|
|
1637
1119
|
}
|
|
1638
|
-
function
|
|
1639
|
-
|
|
1640
|
-
return
|
|
1641
|
-
}
|
|
1642
|
-
|
|
1643
|
-
}
|
|
1644
|
-
function _inherits$5(subClass, superClass) {
|
|
1645
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
1646
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
1120
|
+
function _instanceof$1(left, right) {
|
|
1121
|
+
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
1122
|
+
return !!right[Symbol.hasInstance](left);
|
|
1123
|
+
} else {
|
|
1124
|
+
return left instanceof right;
|
|
1647
1125
|
}
|
|
1648
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
1649
|
-
constructor: {
|
|
1650
|
-
value: subClass,
|
|
1651
|
-
writable: true,
|
|
1652
|
-
configurable: true
|
|
1653
|
-
}
|
|
1654
|
-
});
|
|
1655
|
-
if (superClass) _set_prototype_of$5(subClass, superClass);
|
|
1656
1126
|
}
|
|
1657
|
-
|
|
1127
|
+
var t$2 = globalThis, e$4 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$2 = Symbol(), o$3 = new WeakMap;
|
|
1128
|
+
var n$3 = /*#__PURE__*/ function() {
|
|
1129
|
+
function n(t, e, o) {
|
|
1130
|
+
_class_call_check$d(this, n);
|
|
1131
|
+
if (this._$cssResult$ = !0, o !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
1132
|
+
this.cssText = t, this.t = e;
|
|
1133
|
+
}
|
|
1134
|
+
_create_class$d(n, [
|
|
1135
|
+
{
|
|
1136
|
+
key: "styleSheet",
|
|
1137
|
+
get: function get() {
|
|
1138
|
+
var t = this.o;
|
|
1139
|
+
var s = this.t;
|
|
1140
|
+
if (e$4 && void 0 === t) {
|
|
1141
|
+
var e1 = void 0 !== s && 1 === s.length;
|
|
1142
|
+
e1 && (t = o$3.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet).replaceSync(this.cssText), e1 && o$3.set(s, t));
|
|
1143
|
+
}
|
|
1144
|
+
return t;
|
|
1145
|
+
}
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
key: "toString",
|
|
1149
|
+
value: function toString() {
|
|
1150
|
+
return this.cssText;
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
]);
|
|
1154
|
+
return n;
|
|
1155
|
+
}();
|
|
1156
|
+
var r$4 = function(t) {
|
|
1157
|
+
return new n$3("string" == typeof t ? t : t + "", void 0, s$2);
|
|
1158
|
+
}, S$1 = function(s, o) {
|
|
1159
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1160
|
+
if (e$4) s.adoptedStyleSheets = o.map(function(t) {
|
|
1161
|
+
return _instanceof$1(t, CSSStyleSheet) ? t : t.styleSheet;
|
|
1162
|
+
});
|
|
1163
|
+
else try {
|
|
1164
|
+
for(var _iterator = o[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1165
|
+
var e1 = _step.value;
|
|
1166
|
+
var _$o = document.createElement("style"), n = t$2.litNonce;
|
|
1167
|
+
void 0 !== n && _$o.setAttribute("nonce", n), _$o.textContent = e1.cssText, s.appendChild(_$o);
|
|
1168
|
+
}
|
|
1169
|
+
} catch (err) {
|
|
1170
|
+
_didIteratorError = true;
|
|
1171
|
+
_iteratorError = err;
|
|
1172
|
+
} finally{
|
|
1173
|
+
try {
|
|
1174
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1175
|
+
_iterator.return();
|
|
1176
|
+
}
|
|
1177
|
+
} finally{
|
|
1178
|
+
if (_didIteratorError) {
|
|
1179
|
+
throw _iteratorError;
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
}, c$2 = e$4 ? function(t) {
|
|
1184
|
+
return t;
|
|
1185
|
+
} : function(t) {
|
|
1186
|
+
return _instanceof$1(t, CSSStyleSheet) ? function(t) {
|
|
1187
|
+
var e = "";
|
|
1188
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1189
|
+
try {
|
|
1190
|
+
for(var _iterator = t.cssRules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1191
|
+
var s = _step.value;
|
|
1192
|
+
e += s.cssText;
|
|
1193
|
+
}
|
|
1194
|
+
} catch (err) {
|
|
1195
|
+
_didIteratorError = true;
|
|
1196
|
+
_iteratorError = err;
|
|
1197
|
+
} finally{
|
|
1198
|
+
try {
|
|
1199
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1200
|
+
_iterator.return();
|
|
1201
|
+
}
|
|
1202
|
+
} finally{
|
|
1203
|
+
if (_didIteratorError) {
|
|
1204
|
+
throw _iteratorError;
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
return r$4(e);
|
|
1209
|
+
}(t) : t;
|
|
1210
|
+
};
|
|
1211
|
+
|
|
1212
|
+
function _array_like_to_array$8(arr, len) {
|
|
1213
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
1214
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1215
|
+
return arr2;
|
|
1216
|
+
}
|
|
1217
|
+
function _array_with_holes$4(arr) {
|
|
1218
|
+
if (Array.isArray(arr)) return arr;
|
|
1219
|
+
}
|
|
1220
|
+
function _array_without_holes$6(arr) {
|
|
1221
|
+
if (Array.isArray(arr)) return _array_like_to_array$8(arr);
|
|
1222
|
+
}
|
|
1223
|
+
function _assert_this_initialized$5(self) {
|
|
1224
|
+
if (self === void 0) {
|
|
1225
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1226
|
+
}
|
|
1227
|
+
return self;
|
|
1228
|
+
}
|
|
1229
|
+
function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
|
|
1230
|
+
try {
|
|
1231
|
+
var info = gen[key](arg);
|
|
1232
|
+
var value = info.value;
|
|
1233
|
+
} catch (error) {
|
|
1234
|
+
reject(error);
|
|
1235
|
+
return;
|
|
1236
|
+
}
|
|
1237
|
+
if (info.done) {
|
|
1238
|
+
resolve(value);
|
|
1239
|
+
} else {
|
|
1240
|
+
Promise.resolve(value).then(_next, _throw);
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
function _async_to_generator$1(fn) {
|
|
1244
|
+
return function() {
|
|
1245
|
+
var self = this, args = arguments;
|
|
1246
|
+
return new Promise(function(resolve, reject) {
|
|
1247
|
+
var gen = fn.apply(self, args);
|
|
1248
|
+
function _next(value) {
|
|
1249
|
+
asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "next", value);
|
|
1250
|
+
}
|
|
1251
|
+
function _throw(err) {
|
|
1252
|
+
asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "throw", err);
|
|
1253
|
+
}
|
|
1254
|
+
_next(undefined);
|
|
1255
|
+
});
|
|
1256
|
+
};
|
|
1257
|
+
}
|
|
1258
|
+
function _class_call_check$c(instance, Constructor) {
|
|
1259
|
+
if (!(instance instanceof Constructor)) {
|
|
1260
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
function _construct(Parent, args, Class) {
|
|
1264
|
+
if (_is_native_reflect_construct$5()) {
|
|
1265
|
+
_construct = Reflect.construct;
|
|
1266
|
+
} else {
|
|
1267
|
+
_construct = function construct(Parent, args, Class) {
|
|
1268
|
+
var a = [
|
|
1269
|
+
null
|
|
1270
|
+
];
|
|
1271
|
+
a.push.apply(a, args);
|
|
1272
|
+
var Constructor = Function.bind.apply(Parent, a);
|
|
1273
|
+
var instance = new Constructor();
|
|
1274
|
+
if (Class) _set_prototype_of$5(instance, Class.prototype);
|
|
1275
|
+
return instance;
|
|
1276
|
+
};
|
|
1277
|
+
}
|
|
1278
|
+
return _construct.apply(null, arguments);
|
|
1279
|
+
}
|
|
1280
|
+
function _defineProperties$c(target, props) {
|
|
1281
|
+
for(var i = 0; i < props.length; i++){
|
|
1282
|
+
var descriptor = props[i];
|
|
1283
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
1284
|
+
descriptor.configurable = true;
|
|
1285
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
1286
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
function _create_class$c(Constructor, protoProps, staticProps) {
|
|
1290
|
+
if (protoProps) _defineProperties$c(Constructor.prototype, protoProps);
|
|
1291
|
+
if (staticProps) _defineProperties$c(Constructor, staticProps);
|
|
1292
|
+
return Constructor;
|
|
1293
|
+
}
|
|
1294
|
+
function _get_prototype_of$5(o) {
|
|
1295
|
+
_get_prototype_of$5 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
1296
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
1297
|
+
};
|
|
1298
|
+
return _get_prototype_of$5(o);
|
|
1299
|
+
}
|
|
1300
|
+
function _inherits$5(subClass, superClass) {
|
|
1301
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
1302
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
1303
|
+
}
|
|
1304
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
1305
|
+
constructor: {
|
|
1306
|
+
value: subClass,
|
|
1307
|
+
writable: true,
|
|
1308
|
+
configurable: true
|
|
1309
|
+
}
|
|
1310
|
+
});
|
|
1311
|
+
if (superClass) _set_prototype_of$5(subClass, superClass);
|
|
1312
|
+
}
|
|
1313
|
+
function _is_native_function(fn) {
|
|
1314
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
1315
|
+
}
|
|
1316
|
+
function _iterable_to_array$6(iter) {
|
|
1658
1317
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1659
1318
|
}
|
|
1660
1319
|
function _iterable_to_array_limit$4(arr, i) {
|
|
@@ -1684,7 +1343,7 @@ function _iterable_to_array_limit$4(arr, i) {
|
|
|
1684
1343
|
function _non_iterable_rest$4() {
|
|
1685
1344
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1686
1345
|
}
|
|
1687
|
-
function _non_iterable_spread$
|
|
1346
|
+
function _non_iterable_spread$6() {
|
|
1688
1347
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1689
1348
|
}
|
|
1690
1349
|
function _possible_constructor_return$5(self, call) {
|
|
@@ -1703,8 +1362,8 @@ function _set_prototype_of$5(o, p) {
|
|
|
1703
1362
|
function _sliced_to_array$4(arr, i) {
|
|
1704
1363
|
return _array_with_holes$4(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$4();
|
|
1705
1364
|
}
|
|
1706
|
-
function _to_consumable_array$
|
|
1707
|
-
return _array_without_holes$
|
|
1365
|
+
function _to_consumable_array$6(arr) {
|
|
1366
|
+
return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$8(arr) || _non_iterable_spread$6();
|
|
1708
1367
|
}
|
|
1709
1368
|
function _type_of$5(obj) {
|
|
1710
1369
|
"@swc/helpers - typeof";
|
|
@@ -1718,6 +1377,32 @@ function _unsupported_iterable_to_array$8(o, minLen) {
|
|
|
1718
1377
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1719
1378
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
|
|
1720
1379
|
}
|
|
1380
|
+
function _wrap_native_super(Class) {
|
|
1381
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
1382
|
+
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
1383
|
+
if (Class === null || !_is_native_function(Class)) return Class;
|
|
1384
|
+
if (typeof Class !== "function") {
|
|
1385
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
1386
|
+
}
|
|
1387
|
+
if (typeof _cache !== "undefined") {
|
|
1388
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
|
1389
|
+
_cache.set(Class, Wrapper);
|
|
1390
|
+
}
|
|
1391
|
+
function Wrapper() {
|
|
1392
|
+
return _construct(Class, arguments, _get_prototype_of$5(this).constructor);
|
|
1393
|
+
}
|
|
1394
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
|
1395
|
+
constructor: {
|
|
1396
|
+
value: Wrapper,
|
|
1397
|
+
enumerable: false,
|
|
1398
|
+
writable: true,
|
|
1399
|
+
configurable: true
|
|
1400
|
+
}
|
|
1401
|
+
});
|
|
1402
|
+
return _set_prototype_of$5(Wrapper, Class);
|
|
1403
|
+
};
|
|
1404
|
+
return _wrap_native_super(Class);
|
|
1405
|
+
}
|
|
1721
1406
|
function _is_native_reflect_construct$5() {
|
|
1722
1407
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
1723
1408
|
if (Reflect.construct.sham) return false;
|
|
@@ -1742,69 +1427,196 @@ function _create_super$5(Derived) {
|
|
|
1742
1427
|
return _possible_constructor_return$5(this, result);
|
|
1743
1428
|
};
|
|
1744
1429
|
}
|
|
1745
|
-
|
|
1746
|
-
var
|
|
1747
|
-
|
|
1748
|
-
|
|
1430
|
+
function _ts_generator$4(thisArg, body) {
|
|
1431
|
+
var f, y, t, g, _ = {
|
|
1432
|
+
label: 0,
|
|
1433
|
+
sent: function() {
|
|
1434
|
+
if (t[0] & 1) throw t[1];
|
|
1435
|
+
return t[1];
|
|
1436
|
+
},
|
|
1437
|
+
trys: [],
|
|
1438
|
+
ops: []
|
|
1439
|
+
};
|
|
1440
|
+
return g = {
|
|
1441
|
+
next: verb(0),
|
|
1442
|
+
"throw": verb(1),
|
|
1443
|
+
"return": verb(2)
|
|
1444
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
1445
|
+
return this;
|
|
1446
|
+
}), g;
|
|
1447
|
+
function verb(n) {
|
|
1448
|
+
return function(v) {
|
|
1449
|
+
return step([
|
|
1450
|
+
n,
|
|
1451
|
+
v
|
|
1452
|
+
]);
|
|
1453
|
+
};
|
|
1749
1454
|
}
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1455
|
+
function step(op) {
|
|
1456
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
1457
|
+
while(_)try {
|
|
1458
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
1459
|
+
if (y = 0, t) op = [
|
|
1460
|
+
op[0] & 2,
|
|
1461
|
+
t.value
|
|
1462
|
+
];
|
|
1463
|
+
switch(op[0]){
|
|
1464
|
+
case 0:
|
|
1465
|
+
case 1:
|
|
1466
|
+
t = op;
|
|
1467
|
+
break;
|
|
1468
|
+
case 4:
|
|
1469
|
+
_.label++;
|
|
1470
|
+
return {
|
|
1471
|
+
value: op[1],
|
|
1472
|
+
done: false
|
|
1473
|
+
};
|
|
1474
|
+
case 5:
|
|
1475
|
+
_.label++;
|
|
1476
|
+
y = op[1];
|
|
1477
|
+
op = [
|
|
1478
|
+
0
|
|
1479
|
+
];
|
|
1480
|
+
continue;
|
|
1481
|
+
case 7:
|
|
1482
|
+
op = _.ops.pop();
|
|
1483
|
+
_.trys.pop();
|
|
1484
|
+
continue;
|
|
1485
|
+
default:
|
|
1486
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
1487
|
+
_ = 0;
|
|
1488
|
+
continue;
|
|
1489
|
+
}
|
|
1490
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
1491
|
+
_.label = op[1];
|
|
1492
|
+
break;
|
|
1493
|
+
}
|
|
1494
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
1495
|
+
_.label = t[1];
|
|
1496
|
+
t = op;
|
|
1497
|
+
break;
|
|
1498
|
+
}
|
|
1499
|
+
if (t && _.label < t[2]) {
|
|
1500
|
+
_.label = t[2];
|
|
1501
|
+
_.ops.push(op);
|
|
1502
|
+
break;
|
|
1503
|
+
}
|
|
1504
|
+
if (t[2]) _.ops.pop();
|
|
1505
|
+
_.trys.pop();
|
|
1506
|
+
continue;
|
|
1507
|
+
}
|
|
1508
|
+
op = body.call(thisArg, _);
|
|
1509
|
+
} catch (e) {
|
|
1510
|
+
op = [
|
|
1511
|
+
6,
|
|
1512
|
+
e
|
|
1513
|
+
];
|
|
1514
|
+
y = 0;
|
|
1515
|
+
} finally{
|
|
1516
|
+
f = t = 0;
|
|
1517
|
+
}
|
|
1518
|
+
if (op[0] & 5) throw op[1];
|
|
1519
|
+
return {
|
|
1520
|
+
value: op[0] ? op[1] : void 0,
|
|
1521
|
+
done: true
|
|
1522
|
+
};
|
|
1770
1523
|
}
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1524
|
+
}
|
|
1525
|
+
var _Symbol, _a$1, _a1;
|
|
1526
|
+
/**
|
|
1527
|
+
* @license
|
|
1528
|
+
* Copyright 2017 Google LLC
|
|
1529
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1530
|
+
*/ var i$6 = Object.is, e$3 = Object.defineProperty, r$3 = Object.getOwnPropertyDescriptor, h$1 = Object.getOwnPropertyNames, o$2 = Object.getOwnPropertySymbols, n$2 = Object.getPrototypeOf, a$1 = globalThis, c$1 = a$1.trustedTypes, l$2 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$2 = function(t, s) {
|
|
1531
|
+
return t;
|
|
1532
|
+
}, u$1 = {
|
|
1533
|
+
toAttribute: function toAttribute(t, s) {
|
|
1534
|
+
switch(s){
|
|
1535
|
+
case Boolean:
|
|
1536
|
+
t = t ? l$2 : null;
|
|
1537
|
+
break;
|
|
1538
|
+
case Object:
|
|
1539
|
+
case Array:
|
|
1540
|
+
t = null == t ? t : JSON.stringify(t);
|
|
1788
1541
|
}
|
|
1789
|
-
|
|
1790
|
-
|
|
1542
|
+
return t;
|
|
1543
|
+
},
|
|
1544
|
+
fromAttribute: function fromAttribute(t, s) {
|
|
1545
|
+
var i = t;
|
|
1546
|
+
switch(s){
|
|
1547
|
+
case Boolean:
|
|
1548
|
+
i = null !== t;
|
|
1549
|
+
break;
|
|
1550
|
+
case Number:
|
|
1551
|
+
i = null === t ? null : Number(t);
|
|
1552
|
+
break;
|
|
1553
|
+
case Object:
|
|
1554
|
+
case Array:
|
|
1555
|
+
try {
|
|
1556
|
+
i = JSON.parse(t);
|
|
1557
|
+
} catch (t) {
|
|
1558
|
+
i = null;
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
return i;
|
|
1562
|
+
}
|
|
1563
|
+
}, f$1 = function(t, s) {
|
|
1564
|
+
return !i$6(t, s);
|
|
1565
|
+
}, y = {
|
|
1566
|
+
attribute: !0,
|
|
1567
|
+
type: String,
|
|
1568
|
+
converter: u$1,
|
|
1569
|
+
reflect: !1,
|
|
1570
|
+
hasChanged: f$1
|
|
1571
|
+
};
|
|
1572
|
+
var _metadata, _litPropertyMetadata;
|
|
1573
|
+
(_metadata = (_Symbol = Symbol).metadata) !== null && _metadata !== void 0 ? _metadata : _Symbol.metadata = Symbol("metadata"), (_litPropertyMetadata = (_a$1 = a$1).litPropertyMetadata) !== null && _litPropertyMetadata !== void 0 ? _litPropertyMetadata : _a$1.litPropertyMetadata = new WeakMap;
|
|
1574
|
+
var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
1575
|
+
_inherits$5(b, HTMLElement1);
|
|
1576
|
+
var _super = _create_super$5(b);
|
|
1577
|
+
function b() {
|
|
1578
|
+
_class_call_check$c(this, b);
|
|
1579
|
+
var _this;
|
|
1580
|
+
_this = _super.call(this), _this._$Ep = void 0, _this.isUpdatePending = !1, _this.hasUpdated = !1, _this._$Em = null, _this._$Ev();
|
|
1581
|
+
return _possible_constructor_return$5(_this);
|
|
1582
|
+
}
|
|
1583
|
+
_create_class$c(b, [
|
|
1584
|
+
{
|
|
1585
|
+
key: "_$Ev",
|
|
1586
|
+
value: function _$Ev() {
|
|
1587
|
+
var _this = this;
|
|
1588
|
+
var _this_constructor_l;
|
|
1589
|
+
this._$ES = new Promise(function(t) {
|
|
1590
|
+
return _this.enableUpdating = t;
|
|
1591
|
+
}), this._$AL = new Map, this._$E_(), this.requestUpdate(), (_this_constructor_l = this.constructor.l) === null || _this_constructor_l === void 0 ? void 0 : _this_constructor_l.forEach(function(t) {
|
|
1592
|
+
return t(_this);
|
|
1593
|
+
});
|
|
1594
|
+
}
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
key: "addController",
|
|
1598
|
+
value: function addController(t) {
|
|
1599
|
+
var _t_hostConnected;
|
|
1600
|
+
var _this__$EO;
|
|
1601
|
+
((_this__$EO = this._$EO) !== null && _this__$EO !== void 0 ? _this__$EO : this._$EO = new Set).add(t), void 0 !== this.renderRoot && this.isConnected && ((_t_hostConnected = t.hostConnected) === null || _t_hostConnected === void 0 ? void 0 : _t_hostConnected.call(t));
|
|
1602
|
+
}
|
|
1603
|
+
},
|
|
1604
|
+
{
|
|
1605
|
+
key: "removeController",
|
|
1606
|
+
value: function removeController(t) {
|
|
1607
|
+
var _this__$EO;
|
|
1608
|
+
(_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.delete(t);
|
|
1609
|
+
}
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
key: "_$E_",
|
|
1613
|
+
value: function _$E_() {
|
|
1614
|
+
var t = new Map, s = this.constructor.elementProperties;
|
|
1791
1615
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1792
|
-
|
|
1793
|
-
for(var _iterator =
|
|
1794
|
-
var
|
|
1795
|
-
|
|
1796
|
-
var i1 = v[a++], s1 = r.getAttribute(t2).split(h), e1 = /([.?@])?(.*)/.exec(i1);
|
|
1797
|
-
d.push({
|
|
1798
|
-
type: 1,
|
|
1799
|
-
index: c,
|
|
1800
|
-
name: e1[2],
|
|
1801
|
-
strings: s1,
|
|
1802
|
-
ctor: "." === e1[1] ? H : "?" === e1[1] ? I : "@" === e1[1] ? L : k
|
|
1803
|
-
}), r.removeAttribute(t2);
|
|
1804
|
-
} else t2.startsWith(h) && (d.push({
|
|
1805
|
-
type: 6,
|
|
1806
|
-
index: c
|
|
1807
|
-
}), r.removeAttribute(t2));
|
|
1616
|
+
try {
|
|
1617
|
+
for(var _iterator = s.keys()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1618
|
+
var i = _step.value;
|
|
1619
|
+
this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
|
1808
1620
|
}
|
|
1809
1621
|
} catch (err) {
|
|
1810
1622
|
_didIteratorError = true;
|
|
@@ -1820,423 +1632,489 @@ var N = /*#__PURE__*/ function() {
|
|
|
1820
1632
|
}
|
|
1821
1633
|
}
|
|
1822
1634
|
}
|
|
1823
|
-
|
|
1824
|
-
var t3 = r.textContent.split(h), s2 = t3.length - 1;
|
|
1825
|
-
if (s2 > 0) {
|
|
1826
|
-
r.textContent = i$5 ? i$5.emptyScript : "";
|
|
1827
|
-
for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l$1()), C.nextNode(), d.push({
|
|
1828
|
-
type: 2,
|
|
1829
|
-
index: ++c
|
|
1830
|
-
});
|
|
1831
|
-
r.append(t3[s2], l$1());
|
|
1832
|
-
}
|
|
1833
|
-
}
|
|
1834
|
-
} else if (8 === r.nodeType) if (r.data === o$1) d.push({
|
|
1835
|
-
type: 2,
|
|
1836
|
-
index: c
|
|
1837
|
-
});
|
|
1838
|
-
else {
|
|
1839
|
-
var t4 = -1;
|
|
1840
|
-
for(; -1 !== (t4 = r.data.indexOf(h, t4 + 1));)d.push({
|
|
1841
|
-
type: 7,
|
|
1842
|
-
index: c
|
|
1843
|
-
}), t4 += h.length - 1;
|
|
1844
|
-
}
|
|
1845
|
-
c++;
|
|
1846
|
-
}
|
|
1847
|
-
}
|
|
1848
|
-
_create_class$d(N, null, [
|
|
1849
|
-
{
|
|
1850
|
-
key: "createElement",
|
|
1851
|
-
value: function createElement(t, i) {
|
|
1852
|
-
var s = r$2.createElement("template");
|
|
1853
|
-
return s.innerHTML = t, s;
|
|
1635
|
+
t.size > 0 && (this._$Ep = t);
|
|
1854
1636
|
}
|
|
1855
|
-
}
|
|
1856
|
-
]);
|
|
1857
|
-
return N;
|
|
1858
|
-
}();
|
|
1859
|
-
function S(t, i) {
|
|
1860
|
-
var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t, e = arguments.length > 3 ? arguments[3] : void 0;
|
|
1861
|
-
var _s__$Co, _h__$AO;
|
|
1862
|
-
var _s;
|
|
1863
|
-
if (i === T) return i;
|
|
1864
|
-
var h = void 0 !== e ? (_s__$Co = s._$Co) === null || _s__$Co === void 0 ? void 0 : _s__$Co[e] : s._$Cl;
|
|
1865
|
-
var o = c(i) ? void 0 : i._$litDirective$;
|
|
1866
|
-
var __$Co;
|
|
1867
|
-
return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, !1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
|
|
1868
|
-
}
|
|
1869
|
-
var M = /*#__PURE__*/ function() {
|
|
1870
|
-
function M(t, i) {
|
|
1871
|
-
_class_call_check$d(this, M);
|
|
1872
|
-
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
|
1873
|
-
}
|
|
1874
|
-
_create_class$d(M, [
|
|
1637
|
+
},
|
|
1875
1638
|
{
|
|
1876
|
-
key: "
|
|
1877
|
-
|
|
1878
|
-
|
|
1639
|
+
key: "createRenderRoot",
|
|
1640
|
+
value: function createRenderRoot() {
|
|
1641
|
+
var _this_shadowRoot;
|
|
1642
|
+
var t = (_this_shadowRoot = this.shadowRoot) !== null && _this_shadowRoot !== void 0 ? _this_shadowRoot : this.attachShadow(this.constructor.shadowRootOptions);
|
|
1643
|
+
return S$1(t, this.constructor.elementStyles), t;
|
|
1879
1644
|
}
|
|
1880
1645
|
},
|
|
1881
1646
|
{
|
|
1882
|
-
key: "
|
|
1883
|
-
|
|
1884
|
-
|
|
1647
|
+
key: "connectedCallback",
|
|
1648
|
+
value: function connectedCallback() {
|
|
1649
|
+
var _this__$EO;
|
|
1650
|
+
var _this_renderRoot;
|
|
1651
|
+
(_this_renderRoot = this.renderRoot) !== null && _this_renderRoot !== void 0 ? _this_renderRoot : this.renderRoot = this.createRenderRoot(), this.enableUpdating(!0), (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
|
|
1652
|
+
var _t_hostConnected;
|
|
1653
|
+
return (_t_hostConnected = t.hostConnected) === null || _t_hostConnected === void 0 ? void 0 : _t_hostConnected.call(t);
|
|
1654
|
+
});
|
|
1885
1655
|
}
|
|
1886
1656
|
},
|
|
1887
1657
|
{
|
|
1888
|
-
key: "
|
|
1889
|
-
value: function
|
|
1890
|
-
var _t_creationScope;
|
|
1891
|
-
var _this__$AD = this._$AD, _this__$AD_el = _this__$AD.el, i = _this__$AD_el.content, s = _this__$AD.parts, e = ((_t_creationScope = t === null || t === void 0 ? void 0 : t.creationScope) !== null && _t_creationScope !== void 0 ? _t_creationScope : r$2).importNode(i, !0);
|
|
1892
|
-
C.currentNode = e;
|
|
1893
|
-
var h = C.nextNode(), o = 0, n = 0, l = s[0];
|
|
1894
|
-
for(; void 0 !== l;){
|
|
1895
|
-
if (o === l.index) {
|
|
1896
|
-
var i1 = void 0;
|
|
1897
|
-
2 === l.type ? i1 = new R(h, h.nextSibling, this, t) : 1 === l.type ? i1 = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i1 = new z(h, this, t)), this._$AV.push(i1), l = s[++n];
|
|
1898
|
-
}
|
|
1899
|
-
o !== (l === null || l === void 0 ? void 0 : l.index) && (h = C.nextNode(), o++);
|
|
1900
|
-
}
|
|
1901
|
-
return C.currentNode = r$2, e;
|
|
1902
|
-
}
|
|
1658
|
+
key: "enableUpdating",
|
|
1659
|
+
value: function enableUpdating(t) {}
|
|
1903
1660
|
},
|
|
1904
1661
|
{
|
|
1905
|
-
key: "
|
|
1906
|
-
value: function
|
|
1907
|
-
var
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
void 0 !== s && (void 0 !== s.strings ? (s._$AI(t, s, i), i += s.strings.length - 2) : s._$AI(t[i])), i++;
|
|
1913
|
-
}
|
|
1914
|
-
} catch (err) {
|
|
1915
|
-
_didIteratorError = true;
|
|
1916
|
-
_iteratorError = err;
|
|
1917
|
-
} finally{
|
|
1918
|
-
try {
|
|
1919
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1920
|
-
_iterator.return();
|
|
1921
|
-
}
|
|
1922
|
-
} finally{
|
|
1923
|
-
if (_didIteratorError) {
|
|
1924
|
-
throw _iteratorError;
|
|
1925
|
-
}
|
|
1926
|
-
}
|
|
1927
|
-
}
|
|
1928
|
-
}
|
|
1929
|
-
}
|
|
1930
|
-
]);
|
|
1931
|
-
return M;
|
|
1932
|
-
}();
|
|
1933
|
-
var R = /*#__PURE__*/ function() {
|
|
1934
|
-
function R(t, i, s, e) {
|
|
1935
|
-
_class_call_check$d(this, R);
|
|
1936
|
-
var _e_isConnected;
|
|
1937
|
-
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = (_e_isConnected = e === null || e === void 0 ? void 0 : e.isConnected) !== null && _e_isConnected !== void 0 ? _e_isConnected : !0;
|
|
1938
|
-
}
|
|
1939
|
-
_create_class$d(R, [
|
|
1940
|
-
{
|
|
1941
|
-
key: "_$AU",
|
|
1942
|
-
get: function get() {
|
|
1943
|
-
var _this__$AM;
|
|
1944
|
-
var _this__$AM__$AU;
|
|
1945
|
-
return (_this__$AM__$AU = (_this__$AM = this._$AM) === null || _this__$AM === void 0 ? void 0 : _this__$AM._$AU) !== null && _this__$AM__$AU !== void 0 ? _this__$AM__$AU : this._$Cv;
|
|
1662
|
+
key: "disconnectedCallback",
|
|
1663
|
+
value: function disconnectedCallback() {
|
|
1664
|
+
var _this__$EO;
|
|
1665
|
+
(_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
|
|
1666
|
+
var _t_hostDisconnected;
|
|
1667
|
+
return (_t_hostDisconnected = t.hostDisconnected) === null || _t_hostDisconnected === void 0 ? void 0 : _t_hostDisconnected.call(t);
|
|
1668
|
+
});
|
|
1946
1669
|
}
|
|
1947
1670
|
},
|
|
1948
1671
|
{
|
|
1949
|
-
key: "
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
var i = this._$AM;
|
|
1953
|
-
return void 0 !== i && 11 === (t === null || t === void 0 ? void 0 : t.nodeType) && (t = i.parentNode), t;
|
|
1672
|
+
key: "attributeChangedCallback",
|
|
1673
|
+
value: function attributeChangedCallback(t, s, i) {
|
|
1674
|
+
this._$AK(t, i);
|
|
1954
1675
|
}
|
|
1955
1676
|
},
|
|
1956
1677
|
{
|
|
1957
|
-
key: "
|
|
1958
|
-
|
|
1959
|
-
|
|
1678
|
+
key: "_$EC",
|
|
1679
|
+
value: function _$EC(t, s) {
|
|
1680
|
+
var i = this.constructor.elementProperties.get(t), e = this.constructor._$Eu(t, i);
|
|
1681
|
+
if (void 0 !== e && !0 === i.reflect) {
|
|
1682
|
+
var _i_converter;
|
|
1683
|
+
var r = (void 0 !== ((_i_converter = i.converter) === null || _i_converter === void 0 ? void 0 : _i_converter.toAttribute) ? i.converter : u$1).toAttribute(s, i.type);
|
|
1684
|
+
this._$Em = t, null == r ? this.removeAttribute(e) : this.setAttribute(e, r), this._$Em = null;
|
|
1685
|
+
}
|
|
1960
1686
|
}
|
|
1961
1687
|
},
|
|
1962
1688
|
{
|
|
1963
|
-
key: "
|
|
1964
|
-
|
|
1965
|
-
|
|
1689
|
+
key: "_$AK",
|
|
1690
|
+
value: function _$AK(t, s) {
|
|
1691
|
+
var i = this.constructor, e = i._$Eh.get(t);
|
|
1692
|
+
if (void 0 !== e && this._$Em !== e) {
|
|
1693
|
+
var _t_converter;
|
|
1694
|
+
var _$t = i.getPropertyOptions(e), r = "function" == typeof _$t.converter ? {
|
|
1695
|
+
fromAttribute: _$t.converter
|
|
1696
|
+
} : void 0 !== ((_t_converter = _$t.converter) === null || _t_converter === void 0 ? void 0 : _t_converter.fromAttribute) ? _$t.converter : u$1;
|
|
1697
|
+
this._$Em = e, this[e] = r.fromAttribute(s, _$t.type), this._$Em = null;
|
|
1698
|
+
}
|
|
1966
1699
|
}
|
|
1967
1700
|
},
|
|
1968
1701
|
{
|
|
1969
|
-
key: "
|
|
1970
|
-
value: function
|
|
1971
|
-
|
|
1972
|
-
|
|
1702
|
+
key: "requestUpdate",
|
|
1703
|
+
value: function requestUpdate(t, s, i) {
|
|
1704
|
+
if (void 0 !== t) {
|
|
1705
|
+
var _i_hasChanged;
|
|
1706
|
+
if (i !== null && i !== void 0 ? i : i = this.constructor.getPropertyOptions(t), !((_i_hasChanged = i.hasChanged) !== null && _i_hasChanged !== void 0 ? _i_hasChanged : f$1)(this[t], s)) return;
|
|
1707
|
+
this.P(t, s, i);
|
|
1708
|
+
}
|
|
1709
|
+
!1 === this.isUpdatePending && (this._$ES = this._$ET());
|
|
1973
1710
|
}
|
|
1974
1711
|
},
|
|
1975
1712
|
{
|
|
1976
|
-
key: "
|
|
1977
|
-
value: function
|
|
1978
|
-
|
|
1713
|
+
key: "P",
|
|
1714
|
+
value: function P(t, s, i) {
|
|
1715
|
+
var _this__$Ej;
|
|
1716
|
+
this._$AL.has(t) || this._$AL.set(t, s), !0 === i.reflect && this._$Em !== t && ((_this__$Ej = this._$Ej) !== null && _this__$Ej !== void 0 ? _this__$Ej : this._$Ej = new Set).add(t);
|
|
1979
1717
|
}
|
|
1980
1718
|
},
|
|
1981
1719
|
{
|
|
1982
|
-
key: "
|
|
1983
|
-
value: function
|
|
1984
|
-
|
|
1720
|
+
key: "_$ET",
|
|
1721
|
+
value: function _$ET() {
|
|
1722
|
+
var _this = this;
|
|
1723
|
+
return _async_to_generator$1(function() {
|
|
1724
|
+
var t, _$t, _tmp;
|
|
1725
|
+
return _ts_generator$4(this, function(_state) {
|
|
1726
|
+
switch(_state.label){
|
|
1727
|
+
case 0:
|
|
1728
|
+
_this.isUpdatePending = !0;
|
|
1729
|
+
_state.label = 1;
|
|
1730
|
+
case 1:
|
|
1731
|
+
_state.trys.push([
|
|
1732
|
+
1,
|
|
1733
|
+
3,
|
|
1734
|
+
,
|
|
1735
|
+
4
|
|
1736
|
+
]);
|
|
1737
|
+
return [
|
|
1738
|
+
4,
|
|
1739
|
+
_this._$ES
|
|
1740
|
+
];
|
|
1741
|
+
case 2:
|
|
1742
|
+
_state.sent();
|
|
1743
|
+
return [
|
|
1744
|
+
3,
|
|
1745
|
+
4
|
|
1746
|
+
];
|
|
1747
|
+
case 3:
|
|
1748
|
+
t = _state.sent();
|
|
1749
|
+
Promise.reject(t);
|
|
1750
|
+
return [
|
|
1751
|
+
3,
|
|
1752
|
+
4
|
|
1753
|
+
];
|
|
1754
|
+
case 4:
|
|
1755
|
+
_$t = _this.scheduleUpdate();
|
|
1756
|
+
_tmp = null != _$t;
|
|
1757
|
+
if (!_tmp) return [
|
|
1758
|
+
3,
|
|
1759
|
+
6
|
|
1760
|
+
];
|
|
1761
|
+
return [
|
|
1762
|
+
4,
|
|
1763
|
+
_$t
|
|
1764
|
+
];
|
|
1765
|
+
case 5:
|
|
1766
|
+
_tmp = _state.sent();
|
|
1767
|
+
_state.label = 6;
|
|
1768
|
+
case 6:
|
|
1769
|
+
return [
|
|
1770
|
+
2,
|
|
1771
|
+
(!_this.isUpdatePending)
|
|
1772
|
+
];
|
|
1773
|
+
}
|
|
1774
|
+
});
|
|
1775
|
+
})();
|
|
1985
1776
|
}
|
|
1986
1777
|
},
|
|
1987
1778
|
{
|
|
1988
|
-
key: "
|
|
1989
|
-
value: function
|
|
1990
|
-
|
|
1779
|
+
key: "scheduleUpdate",
|
|
1780
|
+
value: function scheduleUpdate() {
|
|
1781
|
+
return this.performUpdate();
|
|
1991
1782
|
}
|
|
1992
1783
|
},
|
|
1993
1784
|
{
|
|
1994
|
-
key: "
|
|
1995
|
-
value: function
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
1785
|
+
key: "performUpdate",
|
|
1786
|
+
value: function performUpdate() {
|
|
1787
|
+
if (!this.isUpdatePending) return;
|
|
1788
|
+
if (!this.hasUpdated) {
|
|
1789
|
+
var _this_renderRoot;
|
|
1790
|
+
if ((_this_renderRoot = this.renderRoot) !== null && _this_renderRoot !== void 0 ? _this_renderRoot : this.renderRoot = this.createRenderRoot(), this._$Ep) {
|
|
1791
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1792
|
+
try {
|
|
1793
|
+
for(var _iterator = this._$Ep[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1794
|
+
var _step_value = _sliced_to_array$4(_step.value, 2), t = _step_value[0], _$s = _step_value[1];
|
|
1795
|
+
this[t] = _$s;
|
|
1796
|
+
}
|
|
1797
|
+
} catch (err) {
|
|
1798
|
+
_didIteratorError = true;
|
|
1799
|
+
_iteratorError = err;
|
|
1800
|
+
} finally{
|
|
1801
|
+
try {
|
|
1802
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1803
|
+
_iterator.return();
|
|
1804
|
+
}
|
|
1805
|
+
} finally{
|
|
1806
|
+
if (_didIteratorError) {
|
|
1807
|
+
throw _iteratorError;
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
this._$Ep = void 0;
|
|
1812
|
+
}
|
|
1813
|
+
var t1 = this.constructor.elementProperties;
|
|
1814
|
+
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
1815
|
+
if (t1.size > 0) try {
|
|
1816
|
+
for(var _iterator1 = t1[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
1817
|
+
var _step_value1 = _sliced_to_array$4(_step1.value, 2), _$s1 = _step_value1[0], i = _step_value1[1];
|
|
1818
|
+
!0 !== i.wrapped || this._$AL.has(_$s1) || void 0 === this[_$s1] || this.P(_$s1, this[_$s1], i);
|
|
1819
|
+
}
|
|
1820
|
+
} catch (err) {
|
|
1821
|
+
_didIteratorError1 = true;
|
|
1822
|
+
_iteratorError1 = err;
|
|
1823
|
+
} finally{
|
|
1824
|
+
try {
|
|
1825
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
1826
|
+
_iterator1.return();
|
|
1827
|
+
}
|
|
1828
|
+
} finally{
|
|
1829
|
+
if (_didIteratorError1) {
|
|
1830
|
+
throw _iteratorError1;
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
var t2 = !1;
|
|
1836
|
+
var _$s2 = this._$AL;
|
|
1837
|
+
try {
|
|
1838
|
+
var _this__$EO;
|
|
1839
|
+
t2 = this.shouldUpdate(_$s2), t2 ? (this.willUpdate(_$s2), (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
|
|
1840
|
+
var _t_hostUpdate;
|
|
1841
|
+
return (_t_hostUpdate = t.hostUpdate) === null || _t_hostUpdate === void 0 ? void 0 : _t_hostUpdate.call(t);
|
|
1842
|
+
}), this.update(_$s2)) : this._$EU();
|
|
1843
|
+
} catch (s) {
|
|
1844
|
+
throw t2 = !1, this._$EU(), s;
|
|
2002
1845
|
}
|
|
1846
|
+
t2 && this._$AE(_$s2);
|
|
2003
1847
|
}
|
|
2004
1848
|
},
|
|
2005
1849
|
{
|
|
2006
|
-
key: "
|
|
2007
|
-
value: function
|
|
2008
|
-
var i = A.get(t.strings);
|
|
2009
|
-
return void 0 === i && A.set(t.strings, i = new N(t)), i;
|
|
2010
|
-
}
|
|
1850
|
+
key: "willUpdate",
|
|
1851
|
+
value: function willUpdate(t) {}
|
|
2011
1852
|
},
|
|
2012
1853
|
{
|
|
2013
|
-
key: "
|
|
2014
|
-
value: function
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
2021
|
-
var h = _step.value;
|
|
2022
|
-
e === i.length ? i.push(s = new R(this.O(l$1()), this.O(l$1()), this, this.options)) : s = i[e], s._$AI(h), e++;
|
|
2023
|
-
}
|
|
2024
|
-
} catch (err) {
|
|
2025
|
-
_didIteratorError = true;
|
|
2026
|
-
_iteratorError = err;
|
|
2027
|
-
} finally{
|
|
2028
|
-
try {
|
|
2029
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
2030
|
-
_iterator.return();
|
|
2031
|
-
}
|
|
2032
|
-
} finally{
|
|
2033
|
-
if (_didIteratorError) {
|
|
2034
|
-
throw _iteratorError;
|
|
2035
|
-
}
|
|
2036
|
-
}
|
|
2037
|
-
}
|
|
2038
|
-
e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
|
|
1854
|
+
key: "_$AE",
|
|
1855
|
+
value: function _$AE(t) {
|
|
1856
|
+
var _this__$EO;
|
|
1857
|
+
(_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
|
|
1858
|
+
var _t_hostUpdated;
|
|
1859
|
+
return (_t_hostUpdated = t.hostUpdated) === null || _t_hostUpdated === void 0 ? void 0 : _t_hostUpdated.call(t);
|
|
1860
|
+
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
2039
1861
|
}
|
|
2040
1862
|
},
|
|
2041
1863
|
{
|
|
2042
|
-
key: "_$
|
|
2043
|
-
value: function _$
|
|
2044
|
-
|
|
2045
|
-
var _this__$AP, _this;
|
|
2046
|
-
for((_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this, !1, !0, i); t && t !== this._$AB;){
|
|
2047
|
-
var i1 = t.nextSibling;
|
|
2048
|
-
t.remove(), t = i1;
|
|
2049
|
-
}
|
|
1864
|
+
key: "_$EU",
|
|
1865
|
+
value: function _$EU() {
|
|
1866
|
+
this._$AL = new Map, this.isUpdatePending = !1;
|
|
2050
1867
|
}
|
|
2051
1868
|
},
|
|
2052
1869
|
{
|
|
2053
|
-
key: "
|
|
2054
|
-
value: function setConnected(t) {
|
|
2055
|
-
var _this__$AP, _this;
|
|
2056
|
-
void 0 === this._$AM && (this._$Cv = t, (_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this, t));
|
|
2057
|
-
}
|
|
2058
|
-
}
|
|
2059
|
-
]);
|
|
2060
|
-
return R;
|
|
2061
|
-
}();
|
|
2062
|
-
var k = /*#__PURE__*/ function() {
|
|
2063
|
-
function k(t, i, s, e, h) {
|
|
2064
|
-
_class_call_check$d(this, k);
|
|
2065
|
-
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String), this.strings = s) : this._$AH = E;
|
|
2066
|
-
}
|
|
2067
|
-
_create_class$d(k, [
|
|
2068
|
-
{
|
|
2069
|
-
key: "tagName",
|
|
1870
|
+
key: "updateComplete",
|
|
2070
1871
|
get: function get() {
|
|
2071
|
-
return this.
|
|
1872
|
+
return this.getUpdateComplete();
|
|
2072
1873
|
}
|
|
2073
1874
|
},
|
|
2074
1875
|
{
|
|
2075
|
-
key: "
|
|
2076
|
-
|
|
2077
|
-
return this._$
|
|
1876
|
+
key: "getUpdateComplete",
|
|
1877
|
+
value: function getUpdateComplete() {
|
|
1878
|
+
return this._$ES;
|
|
2078
1879
|
}
|
|
2079
1880
|
},
|
|
2080
1881
|
{
|
|
2081
|
-
key: "
|
|
2082
|
-
value: function
|
|
2083
|
-
|
|
2084
|
-
var h = this.strings;
|
|
2085
|
-
var o = !1;
|
|
2086
|
-
if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
|
|
2087
|
-
else {
|
|
2088
|
-
var e1 = t;
|
|
2089
|
-
var n, r;
|
|
2090
|
-
for(t = h[0], n = 0; n < h.length - 1; n++)r = S(this, e1[s + n], i, n), r === T && (r = this._$AH[n]), o || (o = !c(r) || r !== this._$AH[n]), r === E ? t = E : t !== E && (t += (r !== null && r !== void 0 ? r : "") + h[n + 1]), this._$AH[n] = r;
|
|
2091
|
-
}
|
|
2092
|
-
o && !e && this.j(t);
|
|
1882
|
+
key: "shouldUpdate",
|
|
1883
|
+
value: function shouldUpdate(t) {
|
|
1884
|
+
return !0;
|
|
2093
1885
|
}
|
|
2094
1886
|
},
|
|
2095
1887
|
{
|
|
2096
|
-
key: "
|
|
2097
|
-
value: function
|
|
2098
|
-
|
|
1888
|
+
key: "update",
|
|
1889
|
+
value: function update(t) {
|
|
1890
|
+
var _this = this;
|
|
1891
|
+
this._$Ej && (this._$Ej = this._$Ej.forEach(function(t) {
|
|
1892
|
+
return _this._$EC(t, _this[t]);
|
|
1893
|
+
})), this._$EU();
|
|
2099
1894
|
}
|
|
1895
|
+
},
|
|
1896
|
+
{
|
|
1897
|
+
key: "updated",
|
|
1898
|
+
value: function updated(t) {}
|
|
1899
|
+
},
|
|
1900
|
+
{
|
|
1901
|
+
key: "firstUpdated",
|
|
1902
|
+
value: function firstUpdated(t) {}
|
|
2100
1903
|
}
|
|
2101
|
-
]
|
|
2102
|
-
return k;
|
|
2103
|
-
}();
|
|
2104
|
-
var H = /*#__PURE__*/ function(k) {
|
|
2105
|
-
_inherits$5(H, k);
|
|
2106
|
-
var _super = _create_super$5(H);
|
|
2107
|
-
function H() {
|
|
2108
|
-
_class_call_check$d(this, H);
|
|
2109
|
-
var _this;
|
|
2110
|
-
_this = _super.call.apply(_super, [
|
|
2111
|
-
this
|
|
2112
|
-
].concat(Array.prototype.slice.call(arguments))), _this.type = 3;
|
|
2113
|
-
return _possible_constructor_return$5(_this);
|
|
2114
|
-
}
|
|
2115
|
-
_create_class$d(H, [
|
|
1904
|
+
], [
|
|
2116
1905
|
{
|
|
2117
|
-
key: "
|
|
2118
|
-
value: function
|
|
2119
|
-
|
|
1906
|
+
key: "addInitializer",
|
|
1907
|
+
value: function addInitializer(t) {
|
|
1908
|
+
var _this_l;
|
|
1909
|
+
this._$Ei(), ((_this_l = this.l) !== null && _this_l !== void 0 ? _this_l : this.l = []).push(t);
|
|
2120
1910
|
}
|
|
2121
|
-
}
|
|
2122
|
-
]);
|
|
2123
|
-
return H;
|
|
2124
|
-
}(k);
|
|
2125
|
-
var I = /*#__PURE__*/ function(k) {
|
|
2126
|
-
_inherits$5(I, k);
|
|
2127
|
-
var _super = _create_super$5(I);
|
|
2128
|
-
function I() {
|
|
2129
|
-
_class_call_check$d(this, I);
|
|
2130
|
-
var _this;
|
|
2131
|
-
_this = _super.call.apply(_super, [
|
|
2132
|
-
this
|
|
2133
|
-
].concat(Array.prototype.slice.call(arguments))), _this.type = 4;
|
|
2134
|
-
return _possible_constructor_return$5(_this);
|
|
2135
|
-
}
|
|
2136
|
-
_create_class$d(I, [
|
|
1911
|
+
},
|
|
2137
1912
|
{
|
|
2138
|
-
key: "
|
|
2139
|
-
|
|
2140
|
-
this.
|
|
1913
|
+
key: "observedAttributes",
|
|
1914
|
+
get: function get() {
|
|
1915
|
+
return this.finalize(), this._$Eh && _to_consumable_array$6(this._$Eh.keys());
|
|
2141
1916
|
}
|
|
2142
|
-
}
|
|
2143
|
-
]);
|
|
2144
|
-
return I;
|
|
2145
|
-
}(k);
|
|
2146
|
-
var L = /*#__PURE__*/ function(k) {
|
|
2147
|
-
_inherits$5(L, k);
|
|
2148
|
-
var _super = _create_super$5(L);
|
|
2149
|
-
function L(t, i, s, e, h) {
|
|
2150
|
-
_class_call_check$d(this, L);
|
|
2151
|
-
var _this;
|
|
2152
|
-
_this = _super.call(this, t, i, s, e, h), _this.type = 5;
|
|
2153
|
-
return _possible_constructor_return$5(_this);
|
|
2154
|
-
}
|
|
2155
|
-
_create_class$d(L, [
|
|
1917
|
+
},
|
|
2156
1918
|
{
|
|
2157
|
-
key: "
|
|
2158
|
-
value: function
|
|
2159
|
-
var
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
1919
|
+
key: "createProperty",
|
|
1920
|
+
value: function createProperty(t) {
|
|
1921
|
+
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : y;
|
|
1922
|
+
if (s.state && (s.attribute = !1), this._$Ei(), this.elementProperties.set(t, s), !s.noAccessor) {
|
|
1923
|
+
var i = Symbol(), r = this.getPropertyDescriptor(t, i, s);
|
|
1924
|
+
void 0 !== r && e$3(this.prototype, t, r);
|
|
1925
|
+
}
|
|
2164
1926
|
}
|
|
2165
1927
|
},
|
|
2166
1928
|
{
|
|
2167
|
-
key: "
|
|
2168
|
-
value: function
|
|
2169
|
-
var
|
|
2170
|
-
var
|
|
2171
|
-
|
|
1929
|
+
key: "getPropertyDescriptor",
|
|
1930
|
+
value: function getPropertyDescriptor(t, s, i) {
|
|
1931
|
+
var _r;
|
|
1932
|
+
var _ref = (_r = r$3(this.prototype, t)) !== null && _r !== void 0 ? _r : {
|
|
1933
|
+
get: function get() {
|
|
1934
|
+
return this[s];
|
|
1935
|
+
},
|
|
1936
|
+
set: function set(t) {
|
|
1937
|
+
this[s] = t;
|
|
1938
|
+
}
|
|
1939
|
+
}, e = _ref.get, h = _ref.set;
|
|
1940
|
+
return {
|
|
1941
|
+
get: function get() {
|
|
1942
|
+
return e === null || e === void 0 ? void 0 : e.call(this);
|
|
1943
|
+
},
|
|
1944
|
+
set: function set(s) {
|
|
1945
|
+
var r = e === null || e === void 0 ? void 0 : e.call(this);
|
|
1946
|
+
h.call(this, s), this.requestUpdate(t, r, i);
|
|
1947
|
+
},
|
|
1948
|
+
configurable: !0,
|
|
1949
|
+
enumerable: !0
|
|
1950
|
+
};
|
|
2172
1951
|
}
|
|
2173
|
-
}
|
|
2174
|
-
]);
|
|
2175
|
-
return L;
|
|
2176
|
-
}(k);
|
|
2177
|
-
var z = /*#__PURE__*/ function() {
|
|
2178
|
-
function z(t, i, s) {
|
|
2179
|
-
_class_call_check$d(this, z);
|
|
2180
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
|
|
2181
|
-
}
|
|
2182
|
-
_create_class$d(z, [
|
|
1952
|
+
},
|
|
2183
1953
|
{
|
|
2184
|
-
key: "
|
|
2185
|
-
|
|
2186
|
-
|
|
1954
|
+
key: "getPropertyOptions",
|
|
1955
|
+
value: function getPropertyOptions(t) {
|
|
1956
|
+
var _this_elementProperties_get;
|
|
1957
|
+
return (_this_elementProperties_get = this.elementProperties.get(t)) !== null && _this_elementProperties_get !== void 0 ? _this_elementProperties_get : y;
|
|
2187
1958
|
}
|
|
2188
1959
|
},
|
|
2189
1960
|
{
|
|
2190
|
-
key: "_$
|
|
2191
|
-
value: function _$
|
|
2192
|
-
|
|
1961
|
+
key: "_$Ei",
|
|
1962
|
+
value: function _$Ei() {
|
|
1963
|
+
if (this.hasOwnProperty(d$2("elementProperties"))) return;
|
|
1964
|
+
var t = n$2(this);
|
|
1965
|
+
t.finalize(), void 0 !== t.l && (this.l = _to_consumable_array$6(t.l)), this.elementProperties = new Map(t.elementProperties);
|
|
2193
1966
|
}
|
|
2194
|
-
}
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
1967
|
+
},
|
|
1968
|
+
{
|
|
1969
|
+
key: "finalize",
|
|
1970
|
+
value: function finalize() {
|
|
1971
|
+
if (this.hasOwnProperty(d$2("finalized"))) return;
|
|
1972
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d$2("properties"))) {
|
|
1973
|
+
var t = this.properties, s = _to_consumable_array$6(h$1(t)).concat(_to_consumable_array$6(o$2(t)));
|
|
1974
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1975
|
+
try {
|
|
1976
|
+
for(var _iterator = s[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1977
|
+
var i = _step.value;
|
|
1978
|
+
this.createProperty(i, t[i]);
|
|
1979
|
+
}
|
|
1980
|
+
} catch (err) {
|
|
1981
|
+
_didIteratorError = true;
|
|
1982
|
+
_iteratorError = err;
|
|
1983
|
+
} finally{
|
|
1984
|
+
try {
|
|
1985
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1986
|
+
_iterator.return();
|
|
1987
|
+
}
|
|
1988
|
+
} finally{
|
|
1989
|
+
if (_didIteratorError) {
|
|
1990
|
+
throw _iteratorError;
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
var t1 = this[Symbol.metadata];
|
|
1996
|
+
if (null !== t1) {
|
|
1997
|
+
var s1 = litPropertyMetadata.get(t1);
|
|
1998
|
+
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
1999
|
+
if (void 0 !== s1) try {
|
|
2000
|
+
for(var _iterator1 = s1[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
2001
|
+
var _step_value = _sliced_to_array$4(_step1.value, 2), t2 = _step_value[0], i1 = _step_value[1];
|
|
2002
|
+
this.elementProperties.set(t2, i1);
|
|
2003
|
+
}
|
|
2004
|
+
} catch (err) {
|
|
2005
|
+
_didIteratorError1 = true;
|
|
2006
|
+
_iteratorError1 = err;
|
|
2007
|
+
} finally{
|
|
2008
|
+
try {
|
|
2009
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
2010
|
+
_iterator1.return();
|
|
2011
|
+
}
|
|
2012
|
+
} finally{
|
|
2013
|
+
if (_didIteratorError1) {
|
|
2014
|
+
throw _iteratorError1;
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
2018
|
+
}
|
|
2019
|
+
this._$Eh = new Map;
|
|
2020
|
+
var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
|
|
2021
|
+
try {
|
|
2022
|
+
for(var _iterator2 = this.elementProperties[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){
|
|
2023
|
+
var _step_value1 = _sliced_to_array$4(_step2.value, 2), t3 = _step_value1[0], s2 = _step_value1[1];
|
|
2024
|
+
var i2 = this._$Eu(t3, s2);
|
|
2025
|
+
void 0 !== i2 && this._$Eh.set(i2, t3);
|
|
2026
|
+
}
|
|
2027
|
+
} catch (err) {
|
|
2028
|
+
_didIteratorError2 = true;
|
|
2029
|
+
_iteratorError2 = err;
|
|
2030
|
+
} finally{
|
|
2031
|
+
try {
|
|
2032
|
+
if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
|
|
2033
|
+
_iterator2.return();
|
|
2034
|
+
}
|
|
2035
|
+
} finally{
|
|
2036
|
+
if (_didIteratorError2) {
|
|
2037
|
+
throw _iteratorError2;
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
2041
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
2042
|
+
}
|
|
2043
|
+
},
|
|
2044
|
+
{
|
|
2045
|
+
key: "finalizeStyles",
|
|
2046
|
+
value: function finalizeStyles(s) {
|
|
2047
|
+
var i = [];
|
|
2048
|
+
if (Array.isArray(s)) {
|
|
2049
|
+
var e = new Set(s.flat(1 / 0).reverse());
|
|
2050
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
2051
|
+
try {
|
|
2052
|
+
for(var _iterator = e[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
2053
|
+
var _$s = _step.value;
|
|
2054
|
+
i.unshift(c$2(_$s));
|
|
2055
|
+
}
|
|
2056
|
+
} catch (err) {
|
|
2057
|
+
_didIteratorError = true;
|
|
2058
|
+
_iteratorError = err;
|
|
2059
|
+
} finally{
|
|
2060
|
+
try {
|
|
2061
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
2062
|
+
_iterator.return();
|
|
2063
|
+
}
|
|
2064
|
+
} finally{
|
|
2065
|
+
if (_didIteratorError) {
|
|
2066
|
+
throw _iteratorError;
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
}
|
|
2070
|
+
} else void 0 !== s && i.push(c$2(s));
|
|
2071
|
+
return i;
|
|
2072
|
+
}
|
|
2073
|
+
},
|
|
2074
|
+
{
|
|
2075
|
+
key: "_$Eu",
|
|
2076
|
+
value: function _$Eu(t, s) {
|
|
2077
|
+
var i = s.attribute;
|
|
2078
|
+
return !1 === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
|
|
2079
|
+
}
|
|
2080
|
+
}
|
|
2081
|
+
]);
|
|
2082
|
+
return b;
|
|
2083
|
+
}(_wrap_native_super(HTMLElement));
|
|
2084
|
+
var _reactiveElementVersions;
|
|
2085
|
+
b.elementStyles = [], b.shadowRootOptions = {
|
|
2086
|
+
mode: "open"
|
|
2087
|
+
}, b[d$2("elementProperties")] = new Map, b[d$2("finalized")] = new Map, p$1 === null || p$1 === void 0 ? void 0 : p$1({
|
|
2088
|
+
ReactiveElement: b
|
|
2089
|
+
}), ((_reactiveElementVersions = (_a1 = a$1).reactiveElementVersions) !== null && _reactiveElementVersions !== void 0 ? _reactiveElementVersions : _a1.reactiveElementVersions = []).push("2.0.4");
|
|
2090
|
+
|
|
2091
|
+
/**
|
|
2092
|
+
* @license
|
|
2093
|
+
* Copyright 2017 Google LLC
|
|
2094
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2095
|
+
*/ function _array_like_to_array$7(arr, len) {
|
|
2096
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
2097
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2098
|
+
return arr2;
|
|
2099
|
+
}
|
|
2100
|
+
function _array_with_holes$3(arr) {
|
|
2101
|
+
if (Array.isArray(arr)) return arr;
|
|
2102
|
+
}
|
|
2103
|
+
function _array_without_holes$5(arr) {
|
|
2104
|
+
if (Array.isArray(arr)) return _array_like_to_array$7(arr);
|
|
2105
|
+
}
|
|
2106
|
+
function _assert_this_initialized$4(self) {
|
|
2229
2107
|
if (self === void 0) {
|
|
2230
2108
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2231
2109
|
}
|
|
2232
2110
|
return self;
|
|
2233
2111
|
}
|
|
2234
|
-
function _class_call_check$
|
|
2112
|
+
function _class_call_check$b(instance, Constructor) {
|
|
2235
2113
|
if (!(instance instanceof Constructor)) {
|
|
2236
2114
|
throw new TypeError("Cannot call a class as a function");
|
|
2237
2115
|
}
|
|
2238
2116
|
}
|
|
2239
|
-
function _defineProperties$
|
|
2117
|
+
function _defineProperties$b(target, props) {
|
|
2240
2118
|
for(var i = 0; i < props.length; i++){
|
|
2241
2119
|
var descriptor = props[i];
|
|
2242
2120
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -2245,27 +2123,11 @@ function _defineProperties$c(target, props) {
|
|
|
2245
2123
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2246
2124
|
}
|
|
2247
2125
|
}
|
|
2248
|
-
function _create_class$
|
|
2249
|
-
if (protoProps) _defineProperties$
|
|
2250
|
-
if (staticProps) _defineProperties$
|
|
2126
|
+
function _create_class$b(Constructor, protoProps, staticProps) {
|
|
2127
|
+
if (protoProps) _defineProperties$b(Constructor.prototype, protoProps);
|
|
2128
|
+
if (staticProps) _defineProperties$b(Constructor, staticProps);
|
|
2251
2129
|
return Constructor;
|
|
2252
2130
|
}
|
|
2253
|
-
function _get$1(target, property, receiver) {
|
|
2254
|
-
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
2255
|
-
_get$1 = Reflect.get;
|
|
2256
|
-
} else {
|
|
2257
|
-
_get$1 = function get(target, property, receiver) {
|
|
2258
|
-
var base = _super_prop_base$1(target, property);
|
|
2259
|
-
if (!base) return;
|
|
2260
|
-
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
2261
|
-
if (desc.get) {
|
|
2262
|
-
return desc.get.call(receiver || target);
|
|
2263
|
-
}
|
|
2264
|
-
return desc.value;
|
|
2265
|
-
};
|
|
2266
|
-
}
|
|
2267
|
-
return _get$1(target, property, receiver || target);
|
|
2268
|
-
}
|
|
2269
2131
|
function _get_prototype_of$4(o) {
|
|
2270
2132
|
_get_prototype_of$4 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
2271
2133
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
@@ -2285,6 +2147,39 @@ function _inherits$4(subClass, superClass) {
|
|
|
2285
2147
|
});
|
|
2286
2148
|
if (superClass) _set_prototype_of$4(subClass, superClass);
|
|
2287
2149
|
}
|
|
2150
|
+
function _iterable_to_array$5(iter) {
|
|
2151
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
2152
|
+
}
|
|
2153
|
+
function _iterable_to_array_limit$3(arr, i) {
|
|
2154
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
2155
|
+
if (_i == null) return;
|
|
2156
|
+
var _arr = [];
|
|
2157
|
+
var _n = true;
|
|
2158
|
+
var _d = false;
|
|
2159
|
+
var _s, _e;
|
|
2160
|
+
try {
|
|
2161
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
2162
|
+
_arr.push(_s.value);
|
|
2163
|
+
if (i && _arr.length === i) break;
|
|
2164
|
+
}
|
|
2165
|
+
} catch (err) {
|
|
2166
|
+
_d = true;
|
|
2167
|
+
_e = err;
|
|
2168
|
+
} finally{
|
|
2169
|
+
try {
|
|
2170
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
2171
|
+
} finally{
|
|
2172
|
+
if (_d) throw _e;
|
|
2173
|
+
}
|
|
2174
|
+
}
|
|
2175
|
+
return _arr;
|
|
2176
|
+
}
|
|
2177
|
+
function _non_iterable_rest$3() {
|
|
2178
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2179
|
+
}
|
|
2180
|
+
function _non_iterable_spread$5() {
|
|
2181
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2182
|
+
}
|
|
2288
2183
|
function _possible_constructor_return$4(self, call) {
|
|
2289
2184
|
if (call && (_type_of$4(call) === "object" || typeof call === "function")) {
|
|
2290
2185
|
return call;
|
|
@@ -2298,17 +2193,24 @@ function _set_prototype_of$4(o, p) {
|
|
|
2298
2193
|
};
|
|
2299
2194
|
return _set_prototype_of$4(o, p);
|
|
2300
2195
|
}
|
|
2301
|
-
function
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
return object;
|
|
2196
|
+
function _sliced_to_array$3(arr, i) {
|
|
2197
|
+
return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$7(arr, i) || _non_iterable_rest$3();
|
|
2198
|
+
}
|
|
2199
|
+
function _to_consumable_array$5(arr) {
|
|
2200
|
+
return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$7(arr) || _non_iterable_spread$5();
|
|
2307
2201
|
}
|
|
2308
2202
|
function _type_of$4(obj) {
|
|
2309
2203
|
"@swc/helpers - typeof";
|
|
2310
2204
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
2311
2205
|
}
|
|
2206
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
2207
|
+
if (!o) return;
|
|
2208
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
2209
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2210
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2211
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2212
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
|
|
2213
|
+
}
|
|
2312
2214
|
function _is_native_reflect_construct$4() {
|
|
2313
2215
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
2314
2216
|
if (Reflect.construct.sham) return false;
|
|
@@ -2333,265 +2235,489 @@ function _create_super$4(Derived) {
|
|
|
2333
2235
|
return _possible_constructor_return$4(this, result);
|
|
2334
2236
|
};
|
|
2335
2237
|
}
|
|
2336
|
-
var
|
|
2337
|
-
var
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
* Copyright 2017 Google LLC
|
|
2341
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
2342
|
-
*/ var r$1 = /*#__PURE__*/ function(t) {
|
|
2343
|
-
_inherits$4(r, t);
|
|
2344
|
-
var _super = _create_super$4(r);
|
|
2345
|
-
function r() {
|
|
2346
|
-
_class_call_check$c(this, r);
|
|
2347
|
-
var _this;
|
|
2348
|
-
_this = _super.call.apply(_super, [
|
|
2349
|
-
this
|
|
2350
|
-
].concat(Array.prototype.slice.call(arguments))), _this.renderOptions = {
|
|
2351
|
-
host: _assert_this_initialized$4(_this)
|
|
2352
|
-
}, _this._$Do = void 0;
|
|
2353
|
-
return _possible_constructor_return$4(_this);
|
|
2238
|
+
var _t;
|
|
2239
|
+
var t$1 = globalThis, i$5 = t$1.trustedTypes, s$1 = i$5 ? i$5.createPolicy("lit-html", {
|
|
2240
|
+
createHTML: function(t) {
|
|
2241
|
+
return t;
|
|
2354
2242
|
}
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2243
|
+
}) : void 0, e$2 = "$lit$", h = "lit$".concat(Math.random().toFixed(9).slice(2), "$"), o$1 = "?" + h, n$1 = "<".concat(o$1, ">"), r$2 = document, l$1 = function() {
|
|
2244
|
+
return r$2.createComment("");
|
|
2245
|
+
}, c = function(t) {
|
|
2246
|
+
return null === t || "object" != typeof t && "function" != typeof t;
|
|
2247
|
+
}, a = Array.isArray, u = function(t) {
|
|
2248
|
+
return a(t) || "function" == typeof (t === null || t === void 0 ? void 0 : t[Symbol.iterator]);
|
|
2249
|
+
}, d$1 = "[ \n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(">|".concat(d$1, "(?:([^\\s\"'>=/]+)(").concat(d$1, "*=").concat(d$1, "*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)"), "g"), p = /'/g, g = /"/g, $$1 = /^(?:script|style|textarea|title)$/i, T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$2.createTreeWalker(r$2, 129);
|
|
2250
|
+
function P(t, i) {
|
|
2251
|
+
if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
2252
|
+
return void 0 !== s$1 ? s$1.createHTML(i) : i;
|
|
2253
|
+
}
|
|
2254
|
+
var V = function(t, i) {
|
|
2255
|
+
var s = t.length - 1, o = [];
|
|
2256
|
+
var r, l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "", c = f;
|
|
2257
|
+
for(var _$i = 0; _$i < s; _$i++){
|
|
2258
|
+
var s1 = t[_$i];
|
|
2259
|
+
var a = void 0, u = void 0, d = -1, y = 0;
|
|
2260
|
+
for(; y < s1.length && (c.lastIndex = y, u = c.exec(s1), null !== u);)y = c.lastIndex, c === f ? "!--" === u[1] ? c = v : void 0 !== u[1] ? c = _ : void 0 !== u[2] ? ($$1.test(u[2]) && (r = RegExp("</" + u[2], "g")), c = m) : void 0 !== u[3] && (c = m) : c === m ? ">" === u[0] ? (c = r !== null && r !== void 0 ? r : f, d = -1) : void 0 === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = void 0 === u[3] ? m : '"' === u[3] ? g : p) : c === g || c === p ? c = m : c === v || c === _ ? c = f : (c = m, r = void 0);
|
|
2261
|
+
var x = c === m && t[_$i + 1].startsWith("/>") ? " " : "";
|
|
2262
|
+
l += c === f ? s1 + n$1 : d >= 0 ? (o.push(a), s1.slice(0, d) + e$2 + s1.slice(d) + h + x) : s1 + h + (-2 === d ? _$i : x);
|
|
2263
|
+
}
|
|
2264
|
+
return [
|
|
2265
|
+
P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")),
|
|
2266
|
+
o
|
|
2267
|
+
];
|
|
2268
|
+
};
|
|
2269
|
+
var N = /*#__PURE__*/ function() {
|
|
2270
|
+
function N(param, n) {
|
|
2271
|
+
var t = param.strings, s = param._$litType$;
|
|
2272
|
+
_class_call_check$b(this, N);
|
|
2273
|
+
var r;
|
|
2274
|
+
this.parts = [];
|
|
2275
|
+
var c = 0, a = 0;
|
|
2276
|
+
var u = t.length - 1, d = this.parts, _V = _sliced_to_array$3(V(t, s), 2), f = _V[0], v = _V[1];
|
|
2277
|
+
if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
|
|
2278
|
+
var _t;
|
|
2279
|
+
var t1 = this.el.content.firstChild;
|
|
2280
|
+
(_t = t1).replaceWith.apply(_t, _to_consumable_array$5(t1.childNodes));
|
|
2281
|
+
}
|
|
2282
|
+
for(; null !== (r = C.nextNode()) && d.length < u;){
|
|
2283
|
+
if (1 === r.nodeType) {
|
|
2284
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
2285
|
+
if (r.hasAttributes()) try {
|
|
2286
|
+
for(var _iterator = r.getAttributeNames()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
2287
|
+
var t2 = _step.value;
|
|
2288
|
+
if (t2.endsWith(e$2)) {
|
|
2289
|
+
var i1 = v[a++], s1 = r.getAttribute(t2).split(h), e1 = /([.?@])?(.*)/.exec(i1);
|
|
2290
|
+
d.push({
|
|
2291
|
+
type: 1,
|
|
2292
|
+
index: c,
|
|
2293
|
+
name: e1[2],
|
|
2294
|
+
strings: s1,
|
|
2295
|
+
ctor: "." === e1[1] ? H : "?" === e1[1] ? I : "@" === e1[1] ? L : k
|
|
2296
|
+
}), r.removeAttribute(t2);
|
|
2297
|
+
} else t2.startsWith(h) && (d.push({
|
|
2298
|
+
type: 6,
|
|
2299
|
+
index: c
|
|
2300
|
+
}), r.removeAttribute(t2));
|
|
2301
|
+
}
|
|
2302
|
+
} catch (err) {
|
|
2303
|
+
_didIteratorError = true;
|
|
2304
|
+
_iteratorError = err;
|
|
2305
|
+
} finally{
|
|
2306
|
+
try {
|
|
2307
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
2308
|
+
_iterator.return();
|
|
2309
|
+
}
|
|
2310
|
+
} finally{
|
|
2311
|
+
if (_didIteratorError) {
|
|
2312
|
+
throw _iteratorError;
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
if ($$1.test(r.tagName)) {
|
|
2317
|
+
var t3 = r.textContent.split(h), s2 = t3.length - 1;
|
|
2318
|
+
if (s2 > 0) {
|
|
2319
|
+
r.textContent = i$5 ? i$5.emptyScript : "";
|
|
2320
|
+
for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l$1()), C.nextNode(), d.push({
|
|
2321
|
+
type: 2,
|
|
2322
|
+
index: ++c
|
|
2323
|
+
});
|
|
2324
|
+
r.append(t3[s2], l$1());
|
|
2325
|
+
}
|
|
2326
|
+
}
|
|
2327
|
+
} else if (8 === r.nodeType) if (r.data === o$1) d.push({
|
|
2328
|
+
type: 2,
|
|
2329
|
+
index: c
|
|
2330
|
+
});
|
|
2331
|
+
else {
|
|
2332
|
+
var t4 = -1;
|
|
2333
|
+
for(; -1 !== (t4 = r.data.indexOf(h, t4 + 1));)d.push({
|
|
2334
|
+
type: 7,
|
|
2335
|
+
index: c
|
|
2336
|
+
}), t4 += h.length - 1;
|
|
2337
|
+
}
|
|
2338
|
+
c++;
|
|
2339
|
+
}
|
|
2340
|
+
}
|
|
2341
|
+
_create_class$b(N, null, [
|
|
2386
2342
|
{
|
|
2387
|
-
key: "
|
|
2388
|
-
value: function
|
|
2389
|
-
|
|
2343
|
+
key: "createElement",
|
|
2344
|
+
value: function createElement(t, i) {
|
|
2345
|
+
var s = r$2.createElement("template");
|
|
2346
|
+
return s.innerHTML = t, s;
|
|
2390
2347
|
}
|
|
2391
2348
|
}
|
|
2392
2349
|
]);
|
|
2393
|
-
return
|
|
2394
|
-
}(
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
var
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
var
|
|
2403
|
-
_$
|
|
2404
|
-
t._$AK(e, s);
|
|
2405
|
-
},
|
|
2406
|
-
_$AL: function(t) {
|
|
2407
|
-
return t._$AL;
|
|
2408
|
-
}
|
|
2409
|
-
};
|
|
2410
|
-
var _litElementVersions;
|
|
2411
|
-
((_litElementVersions = (_globalThis1 = globalThis).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _globalThis1.litElementVersions = []).push("4.1.1");
|
|
2412
|
-
|
|
2413
|
-
/**
|
|
2414
|
-
* @license
|
|
2415
|
-
* Copyright 2017 Google LLC
|
|
2416
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
2417
|
-
*/ var e$1 = {
|
|
2418
|
-
attributeToProperty: o._$AK,
|
|
2419
|
-
changedProperties: o._$AL
|
|
2420
|
-
};
|
|
2421
|
-
|
|
2422
|
-
/**
|
|
2423
|
-
* @license
|
|
2424
|
-
* Copyright 2023 Google LLC
|
|
2425
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
2426
|
-
*/ /**
|
|
2427
|
-
* Map of ARIAMixin properties to attributes
|
|
2428
|
-
*/ function _class_call_check$b(instance, Constructor) {
|
|
2429
|
-
if (!(instance instanceof Constructor)) {
|
|
2430
|
-
throw new TypeError("Cannot call a class as a function");
|
|
2431
|
-
}
|
|
2350
|
+
return N;
|
|
2351
|
+
}();
|
|
2352
|
+
function S(t, i) {
|
|
2353
|
+
var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t, e = arguments.length > 3 ? arguments[3] : void 0;
|
|
2354
|
+
var _s__$Co, _h__$AO;
|
|
2355
|
+
var _s;
|
|
2356
|
+
if (i === T) return i;
|
|
2357
|
+
var h = void 0 !== e ? (_s__$Co = s._$Co) === null || _s__$Co === void 0 ? void 0 : _s__$Co[e] : s._$Cl;
|
|
2358
|
+
var o = c(i) ? void 0 : i._$litDirective$;
|
|
2359
|
+
var __$Co;
|
|
2360
|
+
return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, !1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
|
|
2432
2361
|
}
|
|
2433
|
-
function
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
descriptor.configurable = true;
|
|
2438
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
2439
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2362
|
+
var M = /*#__PURE__*/ function() {
|
|
2363
|
+
function M(t, i) {
|
|
2364
|
+
_class_call_check$b(this, M);
|
|
2365
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
|
2440
2366
|
}
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
}
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
}
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
this
|
|
2503
|
-
|
|
2504
|
-
this.
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2367
|
+
_create_class$b(M, [
|
|
2368
|
+
{
|
|
2369
|
+
key: "parentNode",
|
|
2370
|
+
get: function get() {
|
|
2371
|
+
return this._$AM.parentNode;
|
|
2372
|
+
}
|
|
2373
|
+
},
|
|
2374
|
+
{
|
|
2375
|
+
key: "_$AU",
|
|
2376
|
+
get: function get() {
|
|
2377
|
+
return this._$AM._$AU;
|
|
2378
|
+
}
|
|
2379
|
+
},
|
|
2380
|
+
{
|
|
2381
|
+
key: "u",
|
|
2382
|
+
value: function u(t) {
|
|
2383
|
+
var _t_creationScope;
|
|
2384
|
+
var _this__$AD = this._$AD, _this__$AD_el = _this__$AD.el, i = _this__$AD_el.content, s = _this__$AD.parts, e = ((_t_creationScope = t === null || t === void 0 ? void 0 : t.creationScope) !== null && _t_creationScope !== void 0 ? _t_creationScope : r$2).importNode(i, !0);
|
|
2385
|
+
C.currentNode = e;
|
|
2386
|
+
var h = C.nextNode(), o = 0, n = 0, l = s[0];
|
|
2387
|
+
for(; void 0 !== l;){
|
|
2388
|
+
if (o === l.index) {
|
|
2389
|
+
var i1 = void 0;
|
|
2390
|
+
2 === l.type ? i1 = new R(h, h.nextSibling, this, t) : 1 === l.type ? i1 = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i1 = new z(h, this, t)), this._$AV.push(i1), l = s[++n];
|
|
2391
|
+
}
|
|
2392
|
+
o !== (l === null || l === void 0 ? void 0 : l.index) && (h = C.nextNode(), o++);
|
|
2393
|
+
}
|
|
2394
|
+
return C.currentNode = r$2, e;
|
|
2395
|
+
}
|
|
2396
|
+
},
|
|
2397
|
+
{
|
|
2398
|
+
key: "p",
|
|
2399
|
+
value: function p(t) {
|
|
2400
|
+
var i = 0;
|
|
2401
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
2402
|
+
try {
|
|
2403
|
+
for(var _iterator = this._$AV[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
2404
|
+
var s = _step.value;
|
|
2405
|
+
void 0 !== s && (void 0 !== s.strings ? (s._$AI(t, s, i), i += s.strings.length - 2) : s._$AI(t[i])), i++;
|
|
2406
|
+
}
|
|
2407
|
+
} catch (err) {
|
|
2408
|
+
_didIteratorError = true;
|
|
2409
|
+
_iteratorError = err;
|
|
2410
|
+
} finally{
|
|
2411
|
+
try {
|
|
2412
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
2413
|
+
_iterator.return();
|
|
2414
|
+
}
|
|
2415
|
+
} finally{
|
|
2416
|
+
if (_didIteratorError) {
|
|
2417
|
+
throw _iteratorError;
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
}
|
|
2421
|
+
}
|
|
2422
|
+
}
|
|
2423
|
+
]);
|
|
2424
|
+
return M;
|
|
2425
|
+
}();
|
|
2426
|
+
var R = /*#__PURE__*/ function() {
|
|
2427
|
+
function R(t, i, s, e) {
|
|
2428
|
+
_class_call_check$b(this, R);
|
|
2429
|
+
var _e_isConnected;
|
|
2430
|
+
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = (_e_isConnected = e === null || e === void 0 ? void 0 : e.isConnected) !== null && _e_isConnected !== void 0 ? _e_isConnected : !0;
|
|
2431
|
+
}
|
|
2432
|
+
_create_class$b(R, [
|
|
2433
|
+
{
|
|
2434
|
+
key: "_$AU",
|
|
2435
|
+
get: function get() {
|
|
2436
|
+
var _this__$AM;
|
|
2437
|
+
var _this__$AM__$AU;
|
|
2438
|
+
return (_this__$AM__$AU = (_this__$AM = this._$AM) === null || _this__$AM === void 0 ? void 0 : _this__$AM._$AU) !== null && _this__$AM__$AU !== void 0 ? _this__$AM__$AU : this._$Cv;
|
|
2439
|
+
}
|
|
2440
|
+
},
|
|
2441
|
+
{
|
|
2442
|
+
key: "parentNode",
|
|
2443
|
+
get: function get() {
|
|
2444
|
+
var t = this._$AA.parentNode;
|
|
2445
|
+
var i = this._$AM;
|
|
2446
|
+
return void 0 !== i && 11 === (t === null || t === void 0 ? void 0 : t.nodeType) && (t = i.parentNode), t;
|
|
2447
|
+
}
|
|
2448
|
+
},
|
|
2449
|
+
{
|
|
2450
|
+
key: "startNode",
|
|
2451
|
+
get: function get() {
|
|
2452
|
+
return this._$AA;
|
|
2453
|
+
}
|
|
2454
|
+
},
|
|
2455
|
+
{
|
|
2456
|
+
key: "endNode",
|
|
2457
|
+
get: function get() {
|
|
2458
|
+
return this._$AB;
|
|
2459
|
+
}
|
|
2460
|
+
},
|
|
2461
|
+
{
|
|
2462
|
+
key: "_$AI",
|
|
2463
|
+
value: function _$AI(t) {
|
|
2464
|
+
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
|
|
2465
|
+
t = S(this, t, i), c(t) ? t === E || null == t || "" === t ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== T && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u(t) ? this.k(t) : this._(t);
|
|
2466
|
+
}
|
|
2467
|
+
},
|
|
2468
|
+
{
|
|
2469
|
+
key: "O",
|
|
2470
|
+
value: function O(t) {
|
|
2471
|
+
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
2472
|
+
}
|
|
2473
|
+
},
|
|
2474
|
+
{
|
|
2475
|
+
key: "T",
|
|
2476
|
+
value: function T(t) {
|
|
2477
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
2478
|
+
}
|
|
2479
|
+
},
|
|
2480
|
+
{
|
|
2481
|
+
key: "_",
|
|
2482
|
+
value: function _(t) {
|
|
2483
|
+
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$2.createTextNode(t)), this._$AH = t;
|
|
2484
|
+
}
|
|
2485
|
+
},
|
|
2486
|
+
{
|
|
2487
|
+
key: "$",
|
|
2488
|
+
value: function $(t) {
|
|
2489
|
+
var _this__$AH;
|
|
2490
|
+
var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = N.createElement(P(s.h, s.h[0]), this.options)), s);
|
|
2491
|
+
if (((_this__$AH = this._$AH) === null || _this__$AH === void 0 ? void 0 : _this__$AH._$AD) === e) this._$AH.p(i);
|
|
2492
|
+
else {
|
|
2493
|
+
var _$t = new M(e, this), s1 = _$t.u(this.options);
|
|
2494
|
+
_$t.p(i), this.T(s1), this._$AH = _$t;
|
|
2495
|
+
}
|
|
2496
|
+
}
|
|
2497
|
+
},
|
|
2498
|
+
{
|
|
2499
|
+
key: "_$AC",
|
|
2500
|
+
value: function _$AC(t) {
|
|
2501
|
+
var i = A.get(t.strings);
|
|
2502
|
+
return void 0 === i && A.set(t.strings, i = new N(t)), i;
|
|
2503
|
+
}
|
|
2504
|
+
},
|
|
2505
|
+
{
|
|
2506
|
+
key: "k",
|
|
2507
|
+
value: function k(t) {
|
|
2508
|
+
a(this._$AH) || (this._$AH = [], this._$AR());
|
|
2509
|
+
var i = this._$AH;
|
|
2510
|
+
var s, e = 0;
|
|
2511
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
2512
|
+
try {
|
|
2513
|
+
for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
2514
|
+
var h = _step.value;
|
|
2515
|
+
e === i.length ? i.push(s = new R(this.O(l$1()), this.O(l$1()), this, this.options)) : s = i[e], s._$AI(h), e++;
|
|
2516
|
+
}
|
|
2517
|
+
} catch (err) {
|
|
2518
|
+
_didIteratorError = true;
|
|
2519
|
+
_iteratorError = err;
|
|
2520
|
+
} finally{
|
|
2521
|
+
try {
|
|
2522
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
2523
|
+
_iterator.return();
|
|
2524
|
+
}
|
|
2525
|
+
} finally{
|
|
2526
|
+
if (_didIteratorError) {
|
|
2527
|
+
throw _iteratorError;
|
|
2528
|
+
}
|
|
2529
|
+
}
|
|
2530
|
+
}
|
|
2531
|
+
e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
|
|
2532
|
+
}
|
|
2533
|
+
},
|
|
2534
|
+
{
|
|
2535
|
+
key: "_$AR",
|
|
2536
|
+
value: function _$AR() {
|
|
2537
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this._$AA.nextSibling, i = arguments.length > 1 ? arguments[1] : void 0;
|
|
2538
|
+
var _this__$AP, _this;
|
|
2539
|
+
for((_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this, !1, !0, i); t && t !== this._$AB;){
|
|
2540
|
+
var i1 = t.nextSibling;
|
|
2541
|
+
t.remove(), t = i1;
|
|
2542
|
+
}
|
|
2543
|
+
}
|
|
2544
|
+
},
|
|
2545
|
+
{
|
|
2546
|
+
key: "setConnected",
|
|
2547
|
+
value: function setConnected(t) {
|
|
2548
|
+
var _this__$AP, _this;
|
|
2549
|
+
void 0 === this._$AM && (this._$Cv = t, (_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this, t));
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2552
|
+
]);
|
|
2553
|
+
return R;
|
|
2554
|
+
}();
|
|
2555
|
+
var k = /*#__PURE__*/ function() {
|
|
2556
|
+
function k(t, i, s, e, h) {
|
|
2557
|
+
_class_call_check$b(this, k);
|
|
2558
|
+
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String), this.strings = s) : this._$AH = E;
|
|
2544
2559
|
}
|
|
2545
|
-
_create_class$b(
|
|
2560
|
+
_create_class$b(k, [
|
|
2546
2561
|
{
|
|
2547
|
-
key: "
|
|
2562
|
+
key: "tagName",
|
|
2548
2563
|
get: function get() {
|
|
2549
|
-
|
|
2550
|
-
// to ensure that the shadow root is always available
|
|
2551
|
-
// to the internals instance even if the mode is 'closed'
|
|
2552
|
-
return this.__host.__shadowRoot;
|
|
2564
|
+
return this.element.tagName;
|
|
2553
2565
|
}
|
|
2554
2566
|
},
|
|
2555
2567
|
{
|
|
2556
|
-
key: "
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
// See https://github.com/lit/lit/issues/3740
|
|
2560
|
-
console.warn("`ElementInternals.checkValidity()` was called on the server." + "This method always returns true.");
|
|
2561
|
-
return true;
|
|
2568
|
+
key: "_$AU",
|
|
2569
|
+
get: function get() {
|
|
2570
|
+
return this._$AM._$AU;
|
|
2562
2571
|
}
|
|
2563
2572
|
},
|
|
2564
2573
|
{
|
|
2565
|
-
key: "
|
|
2566
|
-
value: function
|
|
2567
|
-
|
|
2574
|
+
key: "_$AI",
|
|
2575
|
+
value: function _$AI(t) {
|
|
2576
|
+
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this, s = arguments.length > 2 ? arguments[2] : void 0, e = arguments.length > 3 ? arguments[3] : void 0;
|
|
2577
|
+
var h = this.strings;
|
|
2578
|
+
var o = !1;
|
|
2579
|
+
if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
|
|
2580
|
+
else {
|
|
2581
|
+
var e1 = t;
|
|
2582
|
+
var n, r;
|
|
2583
|
+
for(t = h[0], n = 0; n < h.length - 1; n++)r = S(this, e1[s + n], i, n), r === T && (r = this._$AH[n]), o || (o = !c(r) || r !== this._$AH[n]), r === E ? t = E : t !== E && (t += (r !== null && r !== void 0 ? r : "") + h[n + 1]), this._$AH[n] = r;
|
|
2584
|
+
}
|
|
2585
|
+
o && !e && this.j(t);
|
|
2568
2586
|
}
|
|
2569
2587
|
},
|
|
2570
2588
|
{
|
|
2571
|
-
key: "
|
|
2572
|
-
value: function
|
|
2589
|
+
key: "j",
|
|
2590
|
+
value: function j(t) {
|
|
2591
|
+
t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
|
|
2592
|
+
}
|
|
2593
|
+
}
|
|
2594
|
+
]);
|
|
2595
|
+
return k;
|
|
2596
|
+
}();
|
|
2597
|
+
var H = /*#__PURE__*/ function(k) {
|
|
2598
|
+
_inherits$4(H, k);
|
|
2599
|
+
var _super = _create_super$4(H);
|
|
2600
|
+
function H() {
|
|
2601
|
+
_class_call_check$b(this, H);
|
|
2602
|
+
var _this;
|
|
2603
|
+
_this = _super.call.apply(_super, [
|
|
2604
|
+
this
|
|
2605
|
+
].concat(Array.prototype.slice.call(arguments))), _this.type = 3;
|
|
2606
|
+
return _possible_constructor_return$4(_this);
|
|
2607
|
+
}
|
|
2608
|
+
_create_class$b(H, [
|
|
2609
|
+
{
|
|
2610
|
+
key: "j",
|
|
2611
|
+
value: function j(t) {
|
|
2612
|
+
this.element[this.name] = t === E ? void 0 : t;
|
|
2613
|
+
}
|
|
2614
|
+
}
|
|
2615
|
+
]);
|
|
2616
|
+
return H;
|
|
2617
|
+
}(k);
|
|
2618
|
+
var I = /*#__PURE__*/ function(k) {
|
|
2619
|
+
_inherits$4(I, k);
|
|
2620
|
+
var _super = _create_super$4(I);
|
|
2621
|
+
function I() {
|
|
2622
|
+
_class_call_check$b(this, I);
|
|
2623
|
+
var _this;
|
|
2624
|
+
_this = _super.call.apply(_super, [
|
|
2625
|
+
this
|
|
2626
|
+
].concat(Array.prototype.slice.call(arguments))), _this.type = 4;
|
|
2627
|
+
return _possible_constructor_return$4(_this);
|
|
2628
|
+
}
|
|
2629
|
+
_create_class$b(I, [
|
|
2630
|
+
{
|
|
2631
|
+
key: "j",
|
|
2632
|
+
value: function j(t) {
|
|
2633
|
+
this.element.toggleAttribute(this.name, !!t && t !== E);
|
|
2634
|
+
}
|
|
2635
|
+
}
|
|
2636
|
+
]);
|
|
2637
|
+
return I;
|
|
2638
|
+
}(k);
|
|
2639
|
+
var L = /*#__PURE__*/ function(k) {
|
|
2640
|
+
_inherits$4(L, k);
|
|
2641
|
+
var _super = _create_super$4(L);
|
|
2642
|
+
function L(t, i, s, e, h) {
|
|
2643
|
+
_class_call_check$b(this, L);
|
|
2644
|
+
var _this;
|
|
2645
|
+
_this = _super.call(this, t, i, s, e, h), _this.type = 5;
|
|
2646
|
+
return _possible_constructor_return$4(_this);
|
|
2647
|
+
}
|
|
2648
|
+
_create_class$b(L, [
|
|
2649
|
+
{
|
|
2650
|
+
key: "_$AI",
|
|
2651
|
+
value: function _$AI(t) {
|
|
2652
|
+
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
|
|
2653
|
+
var _S;
|
|
2654
|
+
if ((t = (_S = S(this, t, i, 0)) !== null && _S !== void 0 ? _S : E) === T) return;
|
|
2655
|
+
var s = this._$AH, e = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, h = t !== E && (s === E || e);
|
|
2656
|
+
e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
2657
|
+
}
|
|
2573
2658
|
},
|
|
2574
2659
|
{
|
|
2575
|
-
key: "
|
|
2576
|
-
value: function
|
|
2660
|
+
key: "handleEvent",
|
|
2661
|
+
value: function handleEvent(t) {
|
|
2662
|
+
var _this_options;
|
|
2663
|
+
var _this_options_host;
|
|
2664
|
+
"function" == typeof this._$AH ? this._$AH.call((_this_options_host = (_this_options = this.options) === null || _this_options === void 0 ? void 0 : _this_options.host) !== null && _this_options_host !== void 0 ? _this_options_host : this.element, t) : this._$AH.handleEvent(t);
|
|
2665
|
+
}
|
|
2577
2666
|
}
|
|
2578
2667
|
]);
|
|
2579
|
-
return
|
|
2668
|
+
return L;
|
|
2669
|
+
}(k);
|
|
2670
|
+
var z = /*#__PURE__*/ function() {
|
|
2671
|
+
function z(t, i, s) {
|
|
2672
|
+
_class_call_check$b(this, z);
|
|
2673
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
|
|
2674
|
+
}
|
|
2675
|
+
_create_class$b(z, [
|
|
2676
|
+
{
|
|
2677
|
+
key: "_$AU",
|
|
2678
|
+
get: function get() {
|
|
2679
|
+
return this._$AM._$AU;
|
|
2680
|
+
}
|
|
2681
|
+
},
|
|
2682
|
+
{
|
|
2683
|
+
key: "_$AI",
|
|
2684
|
+
value: function _$AI(t) {
|
|
2685
|
+
S(this, t);
|
|
2686
|
+
}
|
|
2687
|
+
}
|
|
2688
|
+
]);
|
|
2689
|
+
return z;
|
|
2580
2690
|
}();
|
|
2581
|
-
var
|
|
2691
|
+
var Z = {
|
|
2692
|
+
M: e$2,
|
|
2693
|
+
P: h,
|
|
2694
|
+
A: o$1,
|
|
2695
|
+
C: 1,
|
|
2696
|
+
L: V,
|
|
2697
|
+
R: M,
|
|
2698
|
+
D: u,
|
|
2699
|
+
V: S,
|
|
2700
|
+
I: R,
|
|
2701
|
+
H: k,
|
|
2702
|
+
N: I,
|
|
2703
|
+
U: L,
|
|
2704
|
+
B: H,
|
|
2705
|
+
F: z
|
|
2706
|
+
}, j = t$1.litHtmlPolyfillSupport;
|
|
2707
|
+
var _litHtmlVersions;
|
|
2708
|
+
j === null || j === void 0 ? void 0 : j(N, R), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.2.1");
|
|
2709
|
+
var B = function(t, i, s) {
|
|
2710
|
+
var _s_renderBefore;
|
|
2711
|
+
var e = (_s_renderBefore = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore !== void 0 ? _s_renderBefore : i;
|
|
2712
|
+
var h = e._$litPart$;
|
|
2713
|
+
if (void 0 === h) {
|
|
2714
|
+
var _s_renderBefore1;
|
|
2715
|
+
var _$t = (_s_renderBefore1 = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore1 !== void 0 ? _s_renderBefore1 : null;
|
|
2716
|
+
e._$litPart$ = h = new R(i.insertBefore(l$1(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
|
|
2717
|
+
}
|
|
2718
|
+
return h._$AI(t), h;
|
|
2719
|
+
};
|
|
2582
2720
|
|
|
2583
|
-
/**
|
|
2584
|
-
* @license
|
|
2585
|
-
* Copyright 2019 Google LLC
|
|
2586
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
2587
|
-
*/ function _array_like_to_array$7(arr, len) {
|
|
2588
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
2589
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2590
|
-
return arr2;
|
|
2591
|
-
}
|
|
2592
|
-
function _array_with_holes$3(arr) {
|
|
2593
|
-
if (Array.isArray(arr)) return arr;
|
|
2594
|
-
}
|
|
2595
2721
|
function _assert_this_initialized$3(self) {
|
|
2596
2722
|
if (self === void 0) {
|
|
2597
2723
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -2617,51 +2743,40 @@ function _create_class$a(Constructor, protoProps, staticProps) {
|
|
|
2617
2743
|
if (staticProps) _defineProperties$a(Constructor, staticProps);
|
|
2618
2744
|
return Constructor;
|
|
2619
2745
|
}
|
|
2746
|
+
function _get$1(target, property, receiver) {
|
|
2747
|
+
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
2748
|
+
_get$1 = Reflect.get;
|
|
2749
|
+
} else {
|
|
2750
|
+
_get$1 = function get(target, property, receiver) {
|
|
2751
|
+
var base = _super_prop_base$1(target, property);
|
|
2752
|
+
if (!base) return;
|
|
2753
|
+
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
2754
|
+
if (desc.get) {
|
|
2755
|
+
return desc.get.call(receiver || target);
|
|
2756
|
+
}
|
|
2757
|
+
return desc.value;
|
|
2758
|
+
};
|
|
2759
|
+
}
|
|
2760
|
+
return _get$1(target, property, receiver || target);
|
|
2761
|
+
}
|
|
2620
2762
|
function _get_prototype_of$3(o) {
|
|
2621
2763
|
_get_prototype_of$3 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
2622
2764
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
2623
2765
|
};
|
|
2624
2766
|
return _get_prototype_of$3(o);
|
|
2625
2767
|
}
|
|
2626
|
-
function _inherits$3(subClass, superClass) {
|
|
2627
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
2628
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
2629
|
-
}
|
|
2630
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
2631
|
-
constructor: {
|
|
2632
|
-
value: subClass,
|
|
2633
|
-
writable: true,
|
|
2634
|
-
configurable: true
|
|
2635
|
-
}
|
|
2636
|
-
});
|
|
2637
|
-
if (superClass) _set_prototype_of$3(subClass, superClass);
|
|
2638
|
-
}
|
|
2639
|
-
function _iterable_to_array_limit$3(arr, i) {
|
|
2640
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
2641
|
-
if (_i == null) return;
|
|
2642
|
-
var _arr = [];
|
|
2643
|
-
var _n = true;
|
|
2644
|
-
var _d = false;
|
|
2645
|
-
var _s, _e;
|
|
2646
|
-
try {
|
|
2647
|
-
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
2648
|
-
_arr.push(_s.value);
|
|
2649
|
-
if (i && _arr.length === i) break;
|
|
2650
|
-
}
|
|
2651
|
-
} catch (err) {
|
|
2652
|
-
_d = true;
|
|
2653
|
-
_e = err;
|
|
2654
|
-
} finally{
|
|
2655
|
-
try {
|
|
2656
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
2657
|
-
} finally{
|
|
2658
|
-
if (_d) throw _e;
|
|
2659
|
-
}
|
|
2660
|
-
}
|
|
2661
|
-
return _arr;
|
|
2662
|
-
}
|
|
2663
|
-
function _non_iterable_rest$3() {
|
|
2664
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2768
|
+
function _inherits$3(subClass, superClass) {
|
|
2769
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
2770
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
2771
|
+
}
|
|
2772
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
2773
|
+
constructor: {
|
|
2774
|
+
value: subClass,
|
|
2775
|
+
writable: true,
|
|
2776
|
+
configurable: true
|
|
2777
|
+
}
|
|
2778
|
+
});
|
|
2779
|
+
if (superClass) _set_prototype_of$3(subClass, superClass);
|
|
2665
2780
|
}
|
|
2666
2781
|
function _possible_constructor_return$3(self, call) {
|
|
2667
2782
|
if (call && (_type_of$3(call) === "object" || typeof call === "function")) {
|
|
@@ -2676,21 +2791,17 @@ function _set_prototype_of$3(o, p) {
|
|
|
2676
2791
|
};
|
|
2677
2792
|
return _set_prototype_of$3(o, p);
|
|
2678
2793
|
}
|
|
2679
|
-
function
|
|
2680
|
-
|
|
2794
|
+
function _super_prop_base$1(object, property) {
|
|
2795
|
+
while(!Object.prototype.hasOwnProperty.call(object, property)){
|
|
2796
|
+
object = _get_prototype_of$3(object);
|
|
2797
|
+
if (object === null) break;
|
|
2798
|
+
}
|
|
2799
|
+
return object;
|
|
2681
2800
|
}
|
|
2682
2801
|
function _type_of$3(obj) {
|
|
2683
2802
|
"@swc/helpers - typeof";
|
|
2684
2803
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
2685
2804
|
}
|
|
2686
|
-
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
2687
|
-
if (!o) return;
|
|
2688
|
-
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
2689
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2690
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2691
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2692
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
|
|
2693
|
-
}
|
|
2694
2805
|
function _is_native_reflect_construct$3() {
|
|
2695
2806
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
2696
2807
|
if (Reflect.construct.sham) return false;
|
|
@@ -2715,202 +2826,91 @@ function _create_super$3(Derived) {
|
|
|
2715
2826
|
return _possible_constructor_return$3(this, result);
|
|
2716
2827
|
};
|
|
2717
2828
|
}
|
|
2718
|
-
var
|
|
2719
|
-
var
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
// `export {ElementShimWithRealType as Element}`.
|
|
2737
|
-
var ElementShim = /*#__PURE__*/ function() {
|
|
2738
|
-
function Element() {
|
|
2739
|
-
_class_call_check$a(this, Element);
|
|
2740
|
-
this.__shadowRootMode = null;
|
|
2741
|
-
this.__shadowRoot = null;
|
|
2742
|
-
this.__internals = null;
|
|
2829
|
+
var _globalThis_litElementHydrateSupport, _globalThis$1;
|
|
2830
|
+
var _globalThis1;
|
|
2831
|
+
/**
|
|
2832
|
+
* @license
|
|
2833
|
+
* Copyright 2017 Google LLC
|
|
2834
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2835
|
+
*/ var r$1 = /*#__PURE__*/ function(t) {
|
|
2836
|
+
_inherits$3(r, t);
|
|
2837
|
+
var _super = _create_super$3(r);
|
|
2838
|
+
function r() {
|
|
2839
|
+
_class_call_check$a(this, r);
|
|
2840
|
+
var _this;
|
|
2841
|
+
_this = _super.call.apply(_super, [
|
|
2842
|
+
this
|
|
2843
|
+
].concat(Array.prototype.slice.call(arguments))), _this.renderOptions = {
|
|
2844
|
+
host: _assert_this_initialized$3(_this)
|
|
2845
|
+
}, _this._$Do = void 0;
|
|
2846
|
+
return _possible_constructor_return$3(_this);
|
|
2743
2847
|
}
|
|
2744
|
-
_create_class$a(
|
|
2745
|
-
{
|
|
2746
|
-
key: "attributes",
|
|
2747
|
-
get: function get() {
|
|
2748
|
-
return Array.from(attributesForElement(this)).map(function(param) {
|
|
2749
|
-
var _param = _sliced_to_array$3(param, 2), name = _param[0], value = _param[1];
|
|
2750
|
-
return {
|
|
2751
|
-
name: name,
|
|
2752
|
-
value: value
|
|
2753
|
-
};
|
|
2754
|
-
});
|
|
2755
|
-
}
|
|
2756
|
-
},
|
|
2757
|
-
{
|
|
2758
|
-
key: "shadowRoot",
|
|
2759
|
-
get: function get() {
|
|
2760
|
-
if (this.__shadowRootMode === "closed") {
|
|
2761
|
-
return null;
|
|
2762
|
-
}
|
|
2763
|
-
return this.__shadowRoot;
|
|
2764
|
-
}
|
|
2765
|
-
},
|
|
2766
|
-
{
|
|
2767
|
-
key: "localName",
|
|
2768
|
-
get: function get() {
|
|
2769
|
-
return this.constructor.__localName;
|
|
2770
|
-
}
|
|
2771
|
-
},
|
|
2772
|
-
{
|
|
2773
|
-
key: "tagName",
|
|
2774
|
-
get: function get() {
|
|
2775
|
-
var _this_localName;
|
|
2776
|
-
return (_this_localName = this.localName) === null || _this_localName === void 0 ? void 0 : _this_localName.toUpperCase();
|
|
2777
|
-
}
|
|
2778
|
-
},
|
|
2779
|
-
{
|
|
2780
|
-
key: "setAttribute",
|
|
2781
|
-
value: function setAttribute(name, value) {
|
|
2782
|
-
// Emulate browser behavior that silently casts all values to string. E.g.
|
|
2783
|
-
// `42` becomes `"42"` and `{}` becomes `"[object Object]""`.
|
|
2784
|
-
attributesForElement(this).set(name, String(value));
|
|
2785
|
-
}
|
|
2786
|
-
},
|
|
2787
|
-
{
|
|
2788
|
-
key: "removeAttribute",
|
|
2789
|
-
value: function removeAttribute(name) {
|
|
2790
|
-
attributesForElement(this).delete(name);
|
|
2791
|
-
}
|
|
2792
|
-
},
|
|
2848
|
+
_create_class$a(r, [
|
|
2793
2849
|
{
|
|
2794
|
-
key: "
|
|
2795
|
-
value: function
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
this.removeAttribute(name);
|
|
2801
|
-
return false;
|
|
2802
|
-
}
|
|
2803
|
-
} else {
|
|
2804
|
-
// Step 4
|
|
2805
|
-
if (force === undefined || force) {
|
|
2806
|
-
// Step 4.1
|
|
2807
|
-
this.setAttribute(name, "");
|
|
2808
|
-
return true;
|
|
2809
|
-
} else {
|
|
2810
|
-
// Step 4.2
|
|
2811
|
-
return false;
|
|
2812
|
-
}
|
|
2813
|
-
}
|
|
2814
|
-
// Step 6
|
|
2815
|
-
return true;
|
|
2850
|
+
key: "createRenderRoot",
|
|
2851
|
+
value: function createRenderRoot() {
|
|
2852
|
+
var _this_renderOptions;
|
|
2853
|
+
var _$t = _get$1(_get_prototype_of$3(r.prototype), "createRenderRoot", this).call(this);
|
|
2854
|
+
var _renderBefore;
|
|
2855
|
+
return (_renderBefore = (_this_renderOptions = this.renderOptions).renderBefore) !== null && _renderBefore !== void 0 ? _renderBefore : _this_renderOptions.renderBefore = _$t.firstChild, _$t;
|
|
2816
2856
|
}
|
|
2817
2857
|
},
|
|
2818
2858
|
{
|
|
2819
|
-
key: "
|
|
2820
|
-
value: function
|
|
2821
|
-
|
|
2859
|
+
key: "update",
|
|
2860
|
+
value: function update(t) {
|
|
2861
|
+
var s = this.render();
|
|
2862
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get$1(_get_prototype_of$3(r.prototype), "update", this).call(this, t), this._$Do = B(s, this.renderRoot, this.renderOptions);
|
|
2822
2863
|
}
|
|
2823
2864
|
},
|
|
2824
2865
|
{
|
|
2825
|
-
key: "
|
|
2826
|
-
value: function
|
|
2827
|
-
var
|
|
2828
|
-
|
|
2829
|
-
};
|
|
2830
|
-
this.__shadowRootMode = init.mode;
|
|
2831
|
-
if (init && init.mode === "open") {
|
|
2832
|
-
this.__shadowRoot = shadowRoot;
|
|
2833
|
-
}
|
|
2834
|
-
return shadowRoot;
|
|
2866
|
+
key: "connectedCallback",
|
|
2867
|
+
value: function connectedCallback() {
|
|
2868
|
+
var _this__$Do;
|
|
2869
|
+
_get$1(_get_prototype_of$3(r.prototype), "connectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!0);
|
|
2835
2870
|
}
|
|
2836
2871
|
},
|
|
2837
2872
|
{
|
|
2838
|
-
key: "
|
|
2839
|
-
value: function
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
}
|
|
2843
|
-
var internals = new ElementInternalsShim(this);
|
|
2844
|
-
this.__internals = internals;
|
|
2845
|
-
return internals;
|
|
2873
|
+
key: "disconnectedCallback",
|
|
2874
|
+
value: function disconnectedCallback() {
|
|
2875
|
+
var _this__$Do;
|
|
2876
|
+
_get$1(_get_prototype_of$3(r.prototype), "disconnectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!1);
|
|
2846
2877
|
}
|
|
2847
2878
|
},
|
|
2848
2879
|
{
|
|
2849
|
-
key: "
|
|
2850
|
-
value: function
|
|
2851
|
-
|
|
2852
|
-
return value !== null && value !== void 0 ? value : null;
|
|
2880
|
+
key: "render",
|
|
2881
|
+
value: function render() {
|
|
2882
|
+
return T;
|
|
2853
2883
|
}
|
|
2854
2884
|
}
|
|
2855
2885
|
]);
|
|
2856
|
-
return
|
|
2857
|
-
}();
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
function
|
|
2870
|
-
|
|
2871
|
-
this.__definitions = new Map();
|
|
2886
|
+
return r;
|
|
2887
|
+
}(b);
|
|
2888
|
+
r$1._$litElement$ = !0, r$1["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis$1 = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis$1, {
|
|
2889
|
+
LitElement: r$1
|
|
2890
|
+
});
|
|
2891
|
+
var i$4 = globalThis.litElementPolyfillSupport;
|
|
2892
|
+
i$4 === null || i$4 === void 0 ? void 0 : i$4({
|
|
2893
|
+
LitElement: r$1
|
|
2894
|
+
});
|
|
2895
|
+
var o = {
|
|
2896
|
+
_$AK: function(t, e, s) {
|
|
2897
|
+
t._$AK(e, s);
|
|
2898
|
+
},
|
|
2899
|
+
_$AL: function(t) {
|
|
2900
|
+
return t._$AL;
|
|
2872
2901
|
}
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
ctor.__localName = name;
|
|
2886
|
-
var _ctor_observedAttributes;
|
|
2887
|
-
this.__definitions.set(name, {
|
|
2888
|
-
ctor: ctor,
|
|
2889
|
-
// Note it's important we read `observedAttributes` in case it is a getter
|
|
2890
|
-
// with side-effects, as is the case in Lit, where it triggers class
|
|
2891
|
-
// finalization.
|
|
2892
|
-
//
|
|
2893
|
-
// TODO(aomarks) To be spec compliant, we should also capture the
|
|
2894
|
-
// registration-time lifecycle methods like `connectedCallback`. For them
|
|
2895
|
-
// to be actually accessible to e.g. the Lit SSR element renderer, though,
|
|
2896
|
-
// we'd need to introduce a new API for accessing them (since `get` only
|
|
2897
|
-
// returns the constructor).
|
|
2898
|
-
observedAttributes: (_ctor_observedAttributes = ctor.observedAttributes) !== null && _ctor_observedAttributes !== void 0 ? _ctor_observedAttributes : []
|
|
2899
|
-
});
|
|
2900
|
-
}
|
|
2901
|
-
},
|
|
2902
|
-
{
|
|
2903
|
-
key: "get",
|
|
2904
|
-
value: function get(name) {
|
|
2905
|
-
var definition = this.__definitions.get(name);
|
|
2906
|
-
return definition === null || definition === void 0 ? void 0 : definition.ctor;
|
|
2907
|
-
}
|
|
2908
|
-
}
|
|
2909
|
-
]);
|
|
2910
|
-
return CustomElementRegistry;
|
|
2911
|
-
}();
|
|
2912
|
-
var CustomElementRegistryShimWithRealType = CustomElementRegistryShim;
|
|
2913
|
-
new CustomElementRegistryShimWithRealType();
|
|
2902
|
+
};
|
|
2903
|
+
var _litElementVersions;
|
|
2904
|
+
((_litElementVersions = (_globalThis1 = globalThis).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _globalThis1.litElementVersions = []).push("4.1.1");
|
|
2905
|
+
|
|
2906
|
+
/**
|
|
2907
|
+
* @license
|
|
2908
|
+
* Copyright 2017 Google LLC
|
|
2909
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2910
|
+
*/ var e$1 = {
|
|
2911
|
+
attributeToProperty: o._$AK,
|
|
2912
|
+
changedProperties: o._$AL
|
|
2913
|
+
};
|
|
2914
2914
|
|
|
2915
2915
|
/**
|
|
2916
2916
|
* @license
|