@digipair/skill-web-material-icons 0.114.2 → 0.114.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.
Files changed (2) hide show
  1. package/dist/index.cjs.js +8 -1867
  2. package/package.json +4 -2
package/dist/index.cjs.js CHANGED
@@ -1,5 +1,8 @@
1
1
  'use strict';
2
2
 
3
+ var lit = require('lit');
4
+ var decorators_js = require('lit/decorators.js');
5
+
3
6
  function __decorate(decorators, target, key, desc) {
4
7
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5
8
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -14,1871 +17,9 @@ typeof SuppressedError === "function" ? SuppressedError : function(error, suppre
14
17
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
15
18
  };
16
19
 
17
- /**
18
- * @license
19
- * Copyright 2019 Google LLC
20
- * SPDX-License-Identifier: BSD-3-Clause
21
- */ function _class_call_check$3(instance, Constructor) {
22
- if (!(instance instanceof Constructor)) {
23
- throw new TypeError("Cannot call a class as a function");
24
- }
25
- }
26
- function _defineProperties$3(target, props) {
27
- for(var i = 0; i < props.length; i++){
28
- var descriptor = props[i];
29
- descriptor.enumerable = descriptor.enumerable || false;
30
- descriptor.configurable = true;
31
- if ("value" in descriptor) descriptor.writable = true;
32
- Object.defineProperty(target, descriptor.key, descriptor);
33
- }
34
- }
35
- function _create_class$3(Constructor, protoProps, staticProps) {
36
- if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
37
- return Constructor;
38
- }
39
- function _instanceof(left, right) {
40
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
41
- return !!right[Symbol.hasInstance](left);
42
- } else {
43
- return left instanceof right;
44
- }
45
- }
46
- var t$2 = globalThis, e$2 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$2 = Symbol(), o$4 = new WeakMap;
47
- var n$3 = /*#__PURE__*/ function() {
48
- function n(t, e, o) {
49
- _class_call_check$3(this, n);
50
- if (this._$cssResult$ = true, o !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
51
- this.cssText = t, this.t = e;
52
- }
53
- _create_class$3(n, [
54
- {
55
- key: "styleSheet",
56
- get: function get() {
57
- var t = this.o;
58
- var s = this.t;
59
- if (e$2 && void 0 === t) {
60
- var e1 = void 0 !== s && 1 === s.length;
61
- e1 && (t = o$4.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet).replaceSync(this.cssText), e1 && o$4.set(s, t));
62
- }
63
- return t;
64
- }
65
- },
66
- {
67
- key: "toString",
68
- value: function toString() {
69
- return this.cssText;
70
- }
71
- }
72
- ]);
73
- return n;
74
- }();
75
- var r$3 = function(t) {
76
- return new n$3("string" == typeof t ? t : t + "", void 0, s$2);
77
- }, S$1 = function(s, o) {
78
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
79
- if (e$2) s.adoptedStyleSheets = o.map(function(t) {
80
- return _instanceof(t, CSSStyleSheet) ? t : t.styleSheet;
81
- });
82
- else try {
83
- for(var _iterator = o[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
84
- var e1 = _step.value;
85
- var _$o = document.createElement("style"), n = t$2.litNonce;
86
- void 0 !== n && _$o.setAttribute("nonce", n), _$o.textContent = e1.cssText, s.appendChild(_$o);
87
- }
88
- } catch (err) {
89
- _didIteratorError = true;
90
- _iteratorError = err;
91
- } finally{
92
- try {
93
- if (!_iteratorNormalCompletion && _iterator.return != null) {
94
- _iterator.return();
95
- }
96
- } finally{
97
- if (_didIteratorError) {
98
- throw _iteratorError;
99
- }
100
- }
101
- }
102
- }, c$2 = e$2 ? function(t) {
103
- return t;
104
- } : function(t) {
105
- return _instanceof(t, CSSStyleSheet) ? function(t) {
106
- var e = "";
107
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
108
- try {
109
- for(var _iterator = t.cssRules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
110
- var s = _step.value;
111
- e += s.cssText;
112
- }
113
- } catch (err) {
114
- _didIteratorError = true;
115
- _iteratorError = err;
116
- } finally{
117
- try {
118
- if (!_iteratorNormalCompletion && _iterator.return != null) {
119
- _iterator.return();
120
- }
121
- } finally{
122
- if (_didIteratorError) {
123
- throw _iteratorError;
124
- }
125
- }
126
- }
127
- return r$3(e);
128
- }(t) : t;
129
- };
130
-
131
- function _array_like_to_array$1(arr, len) {
132
- if (len == null || len > arr.length) len = arr.length;
133
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
134
- return arr2;
135
- }
136
- function _array_with_holes$1(arr) {
137
- if (Array.isArray(arr)) return arr;
138
- }
139
- function _array_without_holes$1(arr) {
140
- if (Array.isArray(arr)) return _array_like_to_array$1(arr);
141
- }
142
- function _assert_this_initialized$2(self) {
143
- if (self === void 0) {
144
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
145
- }
146
- return self;
147
- }
148
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
149
- try {
150
- var info = gen[key](arg);
151
- var value = info.value;
152
- } catch (error) {
153
- reject(error);
154
- return;
155
- }
156
- if (info.done) {
157
- resolve(value);
158
- } else {
159
- Promise.resolve(value).then(_next, _throw);
160
- }
161
- }
162
- function _async_to_generator(fn) {
163
- return function() {
164
- var self = this, args = arguments;
165
- return new Promise(function(resolve, reject) {
166
- var gen = fn.apply(self, args);
167
- function _next(value) {
168
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
169
- }
170
- function _throw(err) {
171
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
172
- }
173
- _next(undefined);
174
- });
175
- };
176
- }
177
- function _class_call_check$2(instance, Constructor) {
178
- if (!(instance instanceof Constructor)) {
179
- throw new TypeError("Cannot call a class as a function");
180
- }
181
- }
182
- function _construct(Parent, args, Class) {
183
- if (_is_native_reflect_construct$2()) {
184
- _construct = Reflect.construct;
185
- } else {
186
- _construct = function construct(Parent, args, Class) {
187
- var a = [
188
- null
189
- ];
190
- a.push.apply(a, args);
191
- var Constructor = Function.bind.apply(Parent, a);
192
- var instance = new Constructor();
193
- if (Class) _set_prototype_of$2(instance, Class.prototype);
194
- return instance;
195
- };
196
- }
197
- return _construct.apply(null, arguments);
198
- }
199
- function _defineProperties$2(target, props) {
200
- for(var i = 0; i < props.length; i++){
201
- var descriptor = props[i];
202
- descriptor.enumerable = descriptor.enumerable || false;
203
- descriptor.configurable = true;
204
- if ("value" in descriptor) descriptor.writable = true;
205
- Object.defineProperty(target, descriptor.key, descriptor);
206
- }
207
- }
208
- function _create_class$2(Constructor, protoProps, staticProps) {
209
- if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
210
- if (staticProps) _defineProperties$2(Constructor, staticProps);
211
- return Constructor;
212
- }
213
- function _get_prototype_of$2(o) {
214
- _get_prototype_of$2 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
215
- return o.__proto__ || Object.getPrototypeOf(o);
216
- };
217
- return _get_prototype_of$2(o);
218
- }
219
- function _inherits$2(subClass, superClass) {
220
- if (typeof superClass !== "function" && superClass !== null) {
221
- throw new TypeError("Super expression must either be null or a function");
222
- }
223
- subClass.prototype = Object.create(superClass && superClass.prototype, {
224
- constructor: {
225
- value: subClass,
226
- writable: true,
227
- configurable: true
228
- }
229
- });
230
- if (superClass) _set_prototype_of$2(subClass, superClass);
231
- }
232
- function _is_native_function(fn) {
233
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
234
- }
235
- function _iterable_to_array$1(iter) {
236
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
237
- }
238
- function _iterable_to_array_limit$1(arr, i) {
239
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
240
- if (_i == null) return;
241
- var _arr = [];
242
- var _n = true;
243
- var _d = false;
244
- var _s, _e;
245
- try {
246
- for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
247
- _arr.push(_s.value);
248
- if (i && _arr.length === i) break;
249
- }
250
- } catch (err) {
251
- _d = true;
252
- _e = err;
253
- } finally{
254
- try {
255
- if (!_n && _i["return"] != null) _i["return"]();
256
- } finally{
257
- if (_d) throw _e;
258
- }
259
- }
260
- return _arr;
261
- }
262
- function _non_iterable_rest$1() {
263
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
264
- }
265
- function _non_iterable_spread$1() {
266
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
267
- }
268
- function _possible_constructor_return$2(self, call) {
269
- if (call && (_type_of$3(call) === "object" || typeof call === "function")) {
270
- return call;
271
- }
272
- return _assert_this_initialized$2(self);
273
- }
274
- function _set_prototype_of$2(o, p) {
275
- _set_prototype_of$2 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
276
- o.__proto__ = p;
277
- return o;
278
- };
279
- return _set_prototype_of$2(o, p);
280
- }
281
- function _sliced_to_array$1(arr, i) {
282
- return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest$1();
283
- }
284
- function _to_consumable_array$1(arr) {
285
- return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$1(arr) || _non_iterable_spread$1();
286
- }
287
- function _type_of$3(obj) {
288
- "@swc/helpers - typeof";
289
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
290
- }
291
- function _unsupported_iterable_to_array$1(o, minLen) {
292
- if (!o) return;
293
- if (typeof o === "string") return _array_like_to_array$1(o, minLen);
294
- var n = Object.prototype.toString.call(o).slice(8, -1);
295
- if (n === "Object" && o.constructor) n = o.constructor.name;
296
- if (n === "Map" || n === "Set") return Array.from(n);
297
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
298
- }
299
- function _wrap_native_super(Class) {
300
- var _cache = typeof Map === "function" ? new Map() : undefined;
301
- _wrap_native_super = function wrapNativeSuper(Class) {
302
- if (Class === null || !_is_native_function(Class)) return Class;
303
- if (typeof Class !== "function") {
304
- throw new TypeError("Super expression must either be null or a function");
305
- }
306
- if (typeof _cache !== "undefined") {
307
- if (_cache.has(Class)) return _cache.get(Class);
308
- _cache.set(Class, Wrapper);
309
- }
310
- function Wrapper() {
311
- return _construct(Class, arguments, _get_prototype_of$2(this).constructor);
312
- }
313
- Wrapper.prototype = Object.create(Class.prototype, {
314
- constructor: {
315
- value: Wrapper,
316
- enumerable: false,
317
- writable: true,
318
- configurable: true
319
- }
320
- });
321
- return _set_prototype_of$2(Wrapper, Class);
322
- };
323
- return _wrap_native_super(Class);
324
- }
325
- function _is_native_reflect_construct$2() {
326
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
327
- if (Reflect.construct.sham) return false;
328
- if (typeof Proxy === "function") return true;
329
- try {
330
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
331
- return true;
332
- } catch (e) {
333
- return false;
334
- }
335
- }
336
- function _create_super$2(Derived) {
337
- var hasNativeReflectConstruct = _is_native_reflect_construct$2();
338
- return function _createSuperInternal() {
339
- var Super = _get_prototype_of$2(Derived), result;
340
- if (hasNativeReflectConstruct) {
341
- var NewTarget = _get_prototype_of$2(this).constructor;
342
- result = Reflect.construct(Super, arguments, NewTarget);
343
- } else {
344
- result = Super.apply(this, arguments);
345
- }
346
- return _possible_constructor_return$2(this, result);
347
- };
348
- }
349
- function _ts_generator(thisArg, body) {
350
- var f, y, t, g, _ = {
351
- label: 0,
352
- sent: function() {
353
- if (t[0] & 1) throw t[1];
354
- return t[1];
355
- },
356
- trys: [],
357
- ops: []
358
- };
359
- return g = {
360
- next: verb(0),
361
- "throw": verb(1),
362
- "return": verb(2)
363
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
364
- return this;
365
- }), g;
366
- function verb(n) {
367
- return function(v) {
368
- return step([
369
- n,
370
- v
371
- ]);
372
- };
373
- }
374
- function step(op) {
375
- if (f) throw new TypeError("Generator is already executing.");
376
- while(_)try {
377
- 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;
378
- if (y = 0, t) op = [
379
- op[0] & 2,
380
- t.value
381
- ];
382
- switch(op[0]){
383
- case 0:
384
- case 1:
385
- t = op;
386
- break;
387
- case 4:
388
- _.label++;
389
- return {
390
- value: op[1],
391
- done: false
392
- };
393
- case 5:
394
- _.label++;
395
- y = op[1];
396
- op = [
397
- 0
398
- ];
399
- continue;
400
- case 7:
401
- op = _.ops.pop();
402
- _.trys.pop();
403
- continue;
404
- default:
405
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
406
- _ = 0;
407
- continue;
408
- }
409
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
410
- _.label = op[1];
411
- break;
412
- }
413
- if (op[0] === 6 && _.label < t[1]) {
414
- _.label = t[1];
415
- t = op;
416
- break;
417
- }
418
- if (t && _.label < t[2]) {
419
- _.label = t[2];
420
- _.ops.push(op);
421
- break;
422
- }
423
- if (t[2]) _.ops.pop();
424
- _.trys.pop();
425
- continue;
426
- }
427
- op = body.call(thisArg, _);
428
- } catch (e) {
429
- op = [
430
- 6,
431
- e
432
- ];
433
- y = 0;
434
- } finally{
435
- f = t = 0;
436
- }
437
- if (op[0] & 5) throw op[1];
438
- return {
439
- value: op[0] ? op[1] : void 0,
440
- done: true
441
- };
442
- }
443
- }
444
- var _Symbol, _a, _a1;
445
- /**
446
- * @license
447
- * Copyright 2017 Google LLC
448
- * SPDX-License-Identifier: BSD-3-Clause
449
- */ var i$2 = Object.is, e$1 = Object.defineProperty, h$1 = Object.getOwnPropertyDescriptor, r$2 = Object.getOwnPropertyNames, o$3 = Object.getOwnPropertySymbols, n$2 = Object.getPrototypeOf, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = function(t, s) {
450
- return t;
451
- }, u$1 = {
452
- toAttribute: function toAttribute(t, s) {
453
- switch(s){
454
- case Boolean:
455
- t = t ? l$1 : null;
456
- break;
457
- case Object:
458
- case Array:
459
- t = null == t ? t : JSON.stringify(t);
460
- }
461
- return t;
462
- },
463
- fromAttribute: function fromAttribute(t, s) {
464
- var i = t;
465
- switch(s){
466
- case Boolean:
467
- i = null !== t;
468
- break;
469
- case Number:
470
- i = null === t ? null : Number(t);
471
- break;
472
- case Object:
473
- case Array:
474
- try {
475
- i = JSON.parse(t);
476
- } catch (t) {
477
- i = null;
478
- }
479
- }
480
- return i;
481
- }
482
- }, f$1 = function(t, s) {
483
- return !i$2(t, s);
484
- }, b = {
485
- attribute: true,
486
- type: String,
487
- converter: u$1,
488
- reflect: false,
489
- useDefault: false,
490
- hasChanged: f$1
491
- };
492
- var _metadata, _litPropertyMetadata;
493
- (_metadata = (_Symbol = Symbol).metadata) !== null && _metadata !== void 0 ? _metadata : _Symbol.metadata = Symbol("metadata"), (_litPropertyMetadata = (_a = a$1).litPropertyMetadata) !== null && _litPropertyMetadata !== void 0 ? _litPropertyMetadata : _a.litPropertyMetadata = new WeakMap;
494
- var y$1 = /*#__PURE__*/ function(HTMLElement1) {
495
- _inherits$2(y, HTMLElement1);
496
- var _super = _create_super$2(y);
497
- function y() {
498
- _class_call_check$2(this, y);
499
- var _this;
500
- _this = _super.call(this), _this._$Ep = void 0, _this.isUpdatePending = false, _this.hasUpdated = false, _this._$Em = null, _this._$Ev();
501
- return _possible_constructor_return$2(_this);
502
- }
503
- _create_class$2(y, [
504
- {
505
- key: "_$Ev",
506
- value: function _$Ev() {
507
- var _this = this;
508
- var _this_constructor_l;
509
- this._$ES = new Promise(function(t) {
510
- return _this.enableUpdating = t;
511
- }), 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) {
512
- return t(_this);
513
- });
514
- }
515
- },
516
- {
517
- key: "addController",
518
- value: function addController(t) {
519
- var _t_hostConnected;
520
- var _this__$EO;
521
- ((_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));
522
- }
523
- },
524
- {
525
- key: "removeController",
526
- value: function removeController(t) {
527
- var _this__$EO;
528
- (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.delete(t);
529
- }
530
- },
531
- {
532
- key: "_$E_",
533
- value: function _$E_() {
534
- var t = new Map, s = this.constructor.elementProperties;
535
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
536
- try {
537
- for(var _iterator = s.keys()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
538
- var i = _step.value;
539
- this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
540
- }
541
- } catch (err) {
542
- _didIteratorError = true;
543
- _iteratorError = err;
544
- } finally{
545
- try {
546
- if (!_iteratorNormalCompletion && _iterator.return != null) {
547
- _iterator.return();
548
- }
549
- } finally{
550
- if (_didIteratorError) {
551
- throw _iteratorError;
552
- }
553
- }
554
- }
555
- t.size > 0 && (this._$Ep = t);
556
- }
557
- },
558
- {
559
- key: "createRenderRoot",
560
- value: function createRenderRoot() {
561
- var _this_shadowRoot;
562
- var t = (_this_shadowRoot = this.shadowRoot) !== null && _this_shadowRoot !== void 0 ? _this_shadowRoot : this.attachShadow(this.constructor.shadowRootOptions);
563
- return S$1(t, this.constructor.elementStyles), t;
564
- }
565
- },
566
- {
567
- key: "connectedCallback",
568
- value: function connectedCallback() {
569
- var _this__$EO;
570
- var _this_renderRoot;
571
- (_this_renderRoot = this.renderRoot) !== null && _this_renderRoot !== void 0 ? _this_renderRoot : this.renderRoot = this.createRenderRoot(), this.enableUpdating(true), (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
572
- var _t_hostConnected;
573
- return (_t_hostConnected = t.hostConnected) === null || _t_hostConnected === void 0 ? void 0 : _t_hostConnected.call(t);
574
- });
575
- }
576
- },
577
- {
578
- key: "enableUpdating",
579
- value: function enableUpdating(t) {}
580
- },
581
- {
582
- key: "disconnectedCallback",
583
- value: function disconnectedCallback() {
584
- var _this__$EO;
585
- (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
586
- var _t_hostDisconnected;
587
- return (_t_hostDisconnected = t.hostDisconnected) === null || _t_hostDisconnected === void 0 ? void 0 : _t_hostDisconnected.call(t);
588
- });
589
- }
590
- },
591
- {
592
- key: "attributeChangedCallback",
593
- value: function attributeChangedCallback(t, s, i) {
594
- this._$AK(t, i);
595
- }
596
- },
597
- {
598
- key: "_$ET",
599
- value: function _$ET(t, s) {
600
- var i = this.constructor.elementProperties.get(t), e = this.constructor._$Eu(t, i);
601
- if (void 0 !== e && true === i.reflect) {
602
- var _i_converter;
603
- var h = (void 0 !== ((_i_converter = i.converter) === null || _i_converter === void 0 ? void 0 : _i_converter.toAttribute) ? i.converter : u$1).toAttribute(s, i.type);
604
- this._$Em = t, null == h ? this.removeAttribute(e) : this.setAttribute(e, h), this._$Em = null;
605
- }
606
- }
607
- },
608
- {
609
- key: "_$AK",
610
- value: function _$AK(t, s) {
611
- var i = this.constructor, e = i._$Eh.get(t);
612
- if (void 0 !== e && this._$Em !== e) {
613
- var _t_converter, _this__$Ej;
614
- var _$t = i.getPropertyOptions(e), h = "function" == typeof _$t.converter ? {
615
- fromAttribute: _$t.converter
616
- } : void 0 !== ((_t_converter = _$t.converter) === null || _t_converter === void 0 ? void 0 : _t_converter.fromAttribute) ? _$t.converter : u$1;
617
- this._$Em = e;
618
- var r = h.fromAttribute(s, _$t.type);
619
- var _ref;
620
- this[e] = (_ref = r !== null && r !== void 0 ? r : (_this__$Ej = this._$Ej) === null || _this__$Ej === void 0 ? void 0 : _this__$Ej.get(e)) !== null && _ref !== void 0 ? _ref : r, this._$Em = null;
621
- }
622
- }
623
- },
624
- {
625
- key: "requestUpdate",
626
- value: function requestUpdate(t, s, i) {
627
- if (void 0 !== t) {
628
- var _this__$Ej;
629
- var e = this.constructor, h = this[t];
630
- var _i_hasChanged;
631
- if (i !== null && i !== void 0 ? i : i = e.getPropertyOptions(t), !(((_i_hasChanged = i.hasChanged) !== null && _i_hasChanged !== void 0 ? _i_hasChanged : f$1)(h, s) || i.useDefault && i.reflect && h === ((_this__$Ej = this._$Ej) === null || _this__$Ej === void 0 ? void 0 : _this__$Ej.get(t)) && !this.hasAttribute(e._$Eu(t, i)))) return;
632
- this.C(t, s, i);
633
- }
634
- false === this.isUpdatePending && (this._$ES = this._$EP());
635
- }
636
- },
637
- {
638
- key: "C",
639
- value: function C(t, s, param, r) {
640
- var i = param.useDefault, e = param.reflect, h = param.wrapped;
641
- var _this__$Ej, _ref, _this__$Eq;
642
- i && !((_this__$Ej = this._$Ej) !== null && _this__$Ej !== void 0 ? _this__$Ej : this._$Ej = new Map).has(t) && (this._$Ej.set(t, (_ref = r !== null && r !== void 0 ? r : s) !== null && _ref !== void 0 ? _ref : this[t]), true !== h || void 0 !== r) || (this._$AL.has(t) || (this.hasUpdated || i || (s = void 0), this._$AL.set(t, s)), true === e && this._$Em !== t && ((_this__$Eq = this._$Eq) !== null && _this__$Eq !== void 0 ? _this__$Eq : this._$Eq = new Set).add(t));
643
- }
644
- },
645
- {
646
- key: "_$EP",
647
- value: function _$EP() {
648
- var _this = this;
649
- return _async_to_generator(function() {
650
- var t, _$t, _tmp;
651
- return _ts_generator(this, function(_state) {
652
- switch(_state.label){
653
- case 0:
654
- _this.isUpdatePending = true;
655
- _state.label = 1;
656
- case 1:
657
- _state.trys.push([
658
- 1,
659
- 3,
660
- ,
661
- 4
662
- ]);
663
- return [
664
- 4,
665
- _this._$ES
666
- ];
667
- case 2:
668
- _state.sent();
669
- return [
670
- 3,
671
- 4
672
- ];
673
- case 3:
674
- t = _state.sent();
675
- Promise.reject(t);
676
- return [
677
- 3,
678
- 4
679
- ];
680
- case 4:
681
- _$t = _this.scheduleUpdate();
682
- _tmp = null != _$t;
683
- if (!_tmp) return [
684
- 3,
685
- 6
686
- ];
687
- return [
688
- 4,
689
- _$t
690
- ];
691
- case 5:
692
- _tmp = _state.sent();
693
- _state.label = 6;
694
- case 6:
695
- return [
696
- 2,
697
- (!_this.isUpdatePending)
698
- ];
699
- }
700
- });
701
- })();
702
- }
703
- },
704
- {
705
- key: "scheduleUpdate",
706
- value: function scheduleUpdate() {
707
- return this.performUpdate();
708
- }
709
- },
710
- {
711
- key: "performUpdate",
712
- value: function performUpdate() {
713
- if (!this.isUpdatePending) return;
714
- if (!this.hasUpdated) {
715
- var _this_renderRoot;
716
- if ((_this_renderRoot = this.renderRoot) !== null && _this_renderRoot !== void 0 ? _this_renderRoot : this.renderRoot = this.createRenderRoot(), this._$Ep) {
717
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
718
- try {
719
- for(var _iterator = this._$Ep[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
720
- var _step_value = _sliced_to_array$1(_step.value, 2), t = _step_value[0], _$s = _step_value[1];
721
- this[t] = _$s;
722
- }
723
- } catch (err) {
724
- _didIteratorError = true;
725
- _iteratorError = err;
726
- } finally{
727
- try {
728
- if (!_iteratorNormalCompletion && _iterator.return != null) {
729
- _iterator.return();
730
- }
731
- } finally{
732
- if (_didIteratorError) {
733
- throw _iteratorError;
734
- }
735
- }
736
- }
737
- this._$Ep = void 0;
738
- }
739
- var t1 = this.constructor.elementProperties;
740
- var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
741
- if (t1.size > 0) try {
742
- for(var _iterator1 = t1[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
743
- var _step_value1 = _sliced_to_array$1(_step1.value, 2), _$s1 = _step_value1[0], i = _step_value1[1];
744
- var t2 = i.wrapped, e = this[_$s1];
745
- !0 !== t2 || this._$AL.has(_$s1) || void 0 === e || this.C(_$s1, void 0, i, e);
746
- }
747
- } catch (err) {
748
- _didIteratorError1 = true;
749
- _iteratorError1 = err;
750
- } finally{
751
- try {
752
- if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
753
- _iterator1.return();
754
- }
755
- } finally{
756
- if (_didIteratorError1) {
757
- throw _iteratorError1;
758
- }
759
- }
760
- }
761
- }
762
- var t3 = false;
763
- var _$s2 = this._$AL;
764
- try {
765
- var _this__$EO;
766
- t3 = this.shouldUpdate(_$s2), t3 ? (this.willUpdate(_$s2), (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
767
- var _t_hostUpdate;
768
- return (_t_hostUpdate = t.hostUpdate) === null || _t_hostUpdate === void 0 ? void 0 : _t_hostUpdate.call(t);
769
- }), this.update(_$s2)) : this._$EM();
770
- } catch (s) {
771
- throw t3 = false, this._$EM(), s;
772
- }
773
- t3 && this._$AE(_$s2);
774
- }
775
- },
776
- {
777
- key: "willUpdate",
778
- value: function willUpdate(t) {}
779
- },
780
- {
781
- key: "_$AE",
782
- value: function _$AE(t) {
783
- var _this__$EO;
784
- (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
785
- var _t_hostUpdated;
786
- return (_t_hostUpdated = t.hostUpdated) === null || _t_hostUpdated === void 0 ? void 0 : _t_hostUpdated.call(t);
787
- }), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
788
- }
789
- },
790
- {
791
- key: "_$EM",
792
- value: function _$EM() {
793
- this._$AL = new Map, this.isUpdatePending = false;
794
- }
795
- },
796
- {
797
- key: "updateComplete",
798
- get: function get() {
799
- return this.getUpdateComplete();
800
- }
801
- },
802
- {
803
- key: "getUpdateComplete",
804
- value: function getUpdateComplete() {
805
- return this._$ES;
806
- }
807
- },
808
- {
809
- key: "shouldUpdate",
810
- value: function shouldUpdate(t) {
811
- return true;
812
- }
813
- },
814
- {
815
- key: "update",
816
- value: function update(t) {
817
- var _this = this;
818
- this._$Eq && (this._$Eq = this._$Eq.forEach(function(t) {
819
- return _this._$ET(t, _this[t]);
820
- })), this._$EM();
821
- }
822
- },
823
- {
824
- key: "updated",
825
- value: function updated(t) {}
826
- },
827
- {
828
- key: "firstUpdated",
829
- value: function firstUpdated(t) {}
830
- }
831
- ], [
832
- {
833
- key: "addInitializer",
834
- value: function addInitializer(t) {
835
- var _this_l;
836
- this._$Ei(), ((_this_l = this.l) !== null && _this_l !== void 0 ? _this_l : this.l = []).push(t);
837
- }
838
- },
839
- {
840
- key: "observedAttributes",
841
- get: function get() {
842
- return this.finalize(), this._$Eh && _to_consumable_array$1(this._$Eh.keys());
843
- }
844
- },
845
- {
846
- key: "createProperty",
847
- value: function createProperty(t) {
848
- var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : b;
849
- if (s.state && (s.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = true), this.elementProperties.set(t, s), !s.noAccessor) {
850
- var i = Symbol(), h = this.getPropertyDescriptor(t, i, s);
851
- void 0 !== h && e$1(this.prototype, t, h);
852
- }
853
- }
854
- },
855
- {
856
- key: "getPropertyDescriptor",
857
- value: function getPropertyDescriptor(t, s, i) {
858
- var _h;
859
- var _ref = (_h = h$1(this.prototype, t)) !== null && _h !== void 0 ? _h : {
860
- get: function get() {
861
- return this[s];
862
- },
863
- set: function set(t) {
864
- this[s] = t;
865
- }
866
- }, e = _ref.get, r = _ref.set;
867
- return {
868
- get: e,
869
- set: function set(s) {
870
- var h = e === null || e === void 0 ? void 0 : e.call(this);
871
- r === null || r === void 0 ? void 0 : r.call(this, s), this.requestUpdate(t, h, i);
872
- },
873
- configurable: true,
874
- enumerable: true
875
- };
876
- }
877
- },
878
- {
879
- key: "getPropertyOptions",
880
- value: function getPropertyOptions(t) {
881
- var _this_elementProperties_get;
882
- return (_this_elementProperties_get = this.elementProperties.get(t)) !== null && _this_elementProperties_get !== void 0 ? _this_elementProperties_get : b;
883
- }
884
- },
885
- {
886
- key: "_$Ei",
887
- value: function _$Ei() {
888
- if (this.hasOwnProperty(d$1("elementProperties"))) return;
889
- var t = n$2(this);
890
- t.finalize(), void 0 !== t.l && (this.l = _to_consumable_array$1(t.l)), this.elementProperties = new Map(t.elementProperties);
891
- }
892
- },
893
- {
894
- key: "finalize",
895
- value: function finalize() {
896
- if (this.hasOwnProperty(d$1("finalized"))) return;
897
- if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
898
- var t = this.properties, s = _to_consumable_array$1(r$2(t)).concat(_to_consumable_array$1(o$3(t)));
899
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
900
- try {
901
- for(var _iterator = s[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
902
- var i = _step.value;
903
- this.createProperty(i, t[i]);
904
- }
905
- } catch (err) {
906
- _didIteratorError = true;
907
- _iteratorError = err;
908
- } finally{
909
- try {
910
- if (!_iteratorNormalCompletion && _iterator.return != null) {
911
- _iterator.return();
912
- }
913
- } finally{
914
- if (_didIteratorError) {
915
- throw _iteratorError;
916
- }
917
- }
918
- }
919
- }
920
- var t1 = this[Symbol.metadata];
921
- if (null !== t1) {
922
- var s1 = litPropertyMetadata.get(t1);
923
- var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
924
- if (void 0 !== s1) try {
925
- for(var _iterator1 = s1[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
926
- var _step_value = _sliced_to_array$1(_step1.value, 2), t2 = _step_value[0], i1 = _step_value[1];
927
- this.elementProperties.set(t2, i1);
928
- }
929
- } catch (err) {
930
- _didIteratorError1 = true;
931
- _iteratorError1 = err;
932
- } finally{
933
- try {
934
- if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
935
- _iterator1.return();
936
- }
937
- } finally{
938
- if (_didIteratorError1) {
939
- throw _iteratorError1;
940
- }
941
- }
942
- }
943
- }
944
- this._$Eh = new Map;
945
- var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
946
- try {
947
- for(var _iterator2 = this.elementProperties[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){
948
- var _step_value1 = _sliced_to_array$1(_step2.value, 2), t3 = _step_value1[0], s2 = _step_value1[1];
949
- var i2 = this._$Eu(t3, s2);
950
- void 0 !== i2 && this._$Eh.set(i2, t3);
951
- }
952
- } catch (err) {
953
- _didIteratorError2 = true;
954
- _iteratorError2 = err;
955
- } finally{
956
- try {
957
- if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
958
- _iterator2.return();
959
- }
960
- } finally{
961
- if (_didIteratorError2) {
962
- throw _iteratorError2;
963
- }
964
- }
965
- }
966
- this.elementStyles = this.finalizeStyles(this.styles);
967
- }
968
- },
969
- {
970
- key: "finalizeStyles",
971
- value: function finalizeStyles(s) {
972
- var i = [];
973
- if (Array.isArray(s)) {
974
- var e = new Set(s.flat(1 / 0).reverse());
975
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
976
- try {
977
- for(var _iterator = e[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
978
- var _$s = _step.value;
979
- i.unshift(c$2(_$s));
980
- }
981
- } catch (err) {
982
- _didIteratorError = true;
983
- _iteratorError = err;
984
- } finally{
985
- try {
986
- if (!_iteratorNormalCompletion && _iterator.return != null) {
987
- _iterator.return();
988
- }
989
- } finally{
990
- if (_didIteratorError) {
991
- throw _iteratorError;
992
- }
993
- }
994
- }
995
- } else void 0 !== s && i.push(c$2(s));
996
- return i;
997
- }
998
- },
999
- {
1000
- key: "_$Eu",
1001
- value: function _$Eu(t, s) {
1002
- var i = s.attribute;
1003
- return false === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
1004
- }
1005
- }
1006
- ]);
1007
- return y;
1008
- }(_wrap_native_super(HTMLElement));
1009
- var _reactiveElementVersions;
1010
- y$1.elementStyles = [], y$1.shadowRootOptions = {
1011
- mode: "open"
1012
- }, y$1[d$1("elementProperties")] = new Map, y$1[d$1("finalized")] = new Map, p$1 === null || p$1 === void 0 ? void 0 : p$1({
1013
- ReactiveElement: y$1
1014
- }), ((_reactiveElementVersions = (_a1 = a$1).reactiveElementVersions) !== null && _reactiveElementVersions !== void 0 ? _reactiveElementVersions : _a1.reactiveElementVersions = []).push("2.1.1");
1015
-
1016
- /**
1017
- * @license
1018
- * Copyright 2017 Google LLC
1019
- * SPDX-License-Identifier: BSD-3-Clause
1020
- */ function _array_like_to_array(arr, len) {
1021
- if (len == null || len > arr.length) len = arr.length;
1022
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
1023
- return arr2;
1024
- }
1025
- function _array_with_holes(arr) {
1026
- if (Array.isArray(arr)) return arr;
1027
- }
1028
- function _array_without_holes(arr) {
1029
- if (Array.isArray(arr)) return _array_like_to_array(arr);
1030
- }
1031
- function _assert_this_initialized$1(self) {
1032
- if (self === void 0) {
1033
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1034
- }
1035
- return self;
1036
- }
1037
- function _class_call_check$1(instance, Constructor) {
1038
- if (!(instance instanceof Constructor)) {
1039
- throw new TypeError("Cannot call a class as a function");
1040
- }
1041
- }
1042
- function _defineProperties$1(target, props) {
1043
- for(var i = 0; i < props.length; i++){
1044
- var descriptor = props[i];
1045
- descriptor.enumerable = descriptor.enumerable || false;
1046
- descriptor.configurable = true;
1047
- if ("value" in descriptor) descriptor.writable = true;
1048
- Object.defineProperty(target, descriptor.key, descriptor);
1049
- }
1050
- }
1051
- function _create_class$1(Constructor, protoProps, staticProps) {
1052
- if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
1053
- if (staticProps) _defineProperties$1(Constructor, staticProps);
1054
- return Constructor;
1055
- }
1056
- function _get_prototype_of$1(o) {
1057
- _get_prototype_of$1 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
1058
- return o.__proto__ || Object.getPrototypeOf(o);
1059
- };
1060
- return _get_prototype_of$1(o);
1061
- }
1062
- function _inherits$1(subClass, superClass) {
1063
- if (typeof superClass !== "function" && superClass !== null) {
1064
- throw new TypeError("Super expression must either be null or a function");
1065
- }
1066
- subClass.prototype = Object.create(superClass && superClass.prototype, {
1067
- constructor: {
1068
- value: subClass,
1069
- writable: true,
1070
- configurable: true
1071
- }
1072
- });
1073
- if (superClass) _set_prototype_of$1(subClass, superClass);
1074
- }
1075
- function _iterable_to_array(iter) {
1076
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1077
- }
1078
- function _iterable_to_array_limit(arr, i) {
1079
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1080
- if (_i == null) return;
1081
- var _arr = [];
1082
- var _n = true;
1083
- var _d = false;
1084
- var _s, _e;
1085
- try {
1086
- for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
1087
- _arr.push(_s.value);
1088
- if (i && _arr.length === i) break;
1089
- }
1090
- } catch (err) {
1091
- _d = true;
1092
- _e = err;
1093
- } finally{
1094
- try {
1095
- if (!_n && _i["return"] != null) _i["return"]();
1096
- } finally{
1097
- if (_d) throw _e;
1098
- }
1099
- }
1100
- return _arr;
1101
- }
1102
- function _non_iterable_rest() {
1103
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1104
- }
1105
- function _non_iterable_spread() {
1106
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1107
- }
1108
- function _possible_constructor_return$1(self, call) {
1109
- if (call && (_type_of$2(call) === "object" || typeof call === "function")) {
1110
- return call;
1111
- }
1112
- return _assert_this_initialized$1(self);
1113
- }
1114
- function _set_prototype_of$1(o, p) {
1115
- _set_prototype_of$1 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1116
- o.__proto__ = p;
1117
- return o;
1118
- };
1119
- return _set_prototype_of$1(o, p);
1120
- }
1121
- function _sliced_to_array(arr, i) {
1122
- return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
1123
- }
1124
- function _to_consumable_array(arr) {
1125
- return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
1126
- }
1127
- function _type_of$2(obj) {
1128
- "@swc/helpers - typeof";
1129
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
1130
- }
1131
- function _unsupported_iterable_to_array(o, minLen) {
1132
- if (!o) return;
1133
- if (typeof o === "string") return _array_like_to_array(o, minLen);
1134
- var n = Object.prototype.toString.call(o).slice(8, -1);
1135
- if (n === "Object" && o.constructor) n = o.constructor.name;
1136
- if (n === "Map" || n === "Set") return Array.from(n);
1137
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
1138
- }
1139
- function _is_native_reflect_construct$1() {
1140
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
1141
- if (Reflect.construct.sham) return false;
1142
- if (typeof Proxy === "function") return true;
1143
- try {
1144
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1145
- return true;
1146
- } catch (e) {
1147
- return false;
1148
- }
1149
- }
1150
- function _create_super$1(Derived) {
1151
- var hasNativeReflectConstruct = _is_native_reflect_construct$1();
1152
- return function _createSuperInternal() {
1153
- var Super = _get_prototype_of$1(Derived), result;
1154
- if (hasNativeReflectConstruct) {
1155
- var NewTarget = _get_prototype_of$1(this).constructor;
1156
- result = Reflect.construct(Super, arguments, NewTarget);
1157
- } else {
1158
- result = Super.apply(this, arguments);
1159
- }
1160
- return _possible_constructor_return$1(this, result);
1161
- };
1162
- }
1163
- var _t;
1164
- var t$1 = globalThis, i$1 = t$1.trustedTypes, s$1 = i$1 ? i$1.createPolicy("lit-html", {
1165
- createHTML: function(t) {
1166
- return t;
1167
- }
1168
- }) : void 0, e = "$lit$", h = "lit$".concat(Math.random().toFixed(9).slice(2), "$"), o$2 = "?" + h, n$1 = "<".concat(o$2, ">"), r$1 = document, l = function() {
1169
- return r$1.createComment("");
1170
- }, c = function(t) {
1171
- return null === t || "object" != (typeof t === "undefined" ? "undefined" : _type_of$2(t)) && "function" != typeof t;
1172
- }, a = Array.isArray, u = function(t) {
1173
- return a(t) || "function" == typeof (t === null || t === void 0 ? void 0 : t[Symbol.iterator]);
1174
- }, d = "[ \t\n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(">|".concat(d, "(?:([^\\s\"'>=/]+)(").concat(d, "*=").concat(d, "*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)"), "g"), p = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y = function(t) {
1175
- return function(i) {
1176
- for(var _len = arguments.length, s = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
1177
- s[_key - 1] = arguments[_key];
1178
- }
1179
- return {
1180
- _$litType$: t,
1181
- strings: i,
1182
- values: s
1183
- };
1184
- };
1185
- }, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$1.createTreeWalker(r$1, 129);
1186
- function P(t, i) {
1187
- if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1188
- return void 0 !== s$1 ? s$1.createHTML(i) : i;
1189
- }
1190
- var V = function(t, i) {
1191
- var s = t.length - 1, o = [];
1192
- var r, l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "", c = f;
1193
- for(var _$i = 0; _$i < s; _$i++){
1194
- var s1 = t[_$i];
1195
- var a = void 0, u = void 0, d = -1, y = 0;
1196
- 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] ? ($.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);
1197
- var x = c === m && t[_$i + 1].startsWith("/>") ? " " : "";
1198
- l += c === f ? s1 + n$1 : d >= 0 ? (o.push(a), s1.slice(0, d) + e + s1.slice(d) + h + x) : s1 + h + (-2 === d ? _$i : x);
1199
- }
1200
- return [
1201
- P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")),
1202
- o
1203
- ];
1204
- };
1205
- var N = /*#__PURE__*/ function() {
1206
- function N(param, n) {
1207
- var t = param.strings, s = param._$litType$;
1208
- _class_call_check$1(this, N);
1209
- var r;
1210
- this.parts = [];
1211
- var c = 0, a = 0;
1212
- var u = t.length - 1, d = this.parts, _V = _sliced_to_array(V(t, s), 2), f = _V[0], v = _V[1];
1213
- if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
1214
- var _t;
1215
- var t1 = this.el.content.firstChild;
1216
- (_t = t1).replaceWith.apply(_t, _to_consumable_array(t1.childNodes));
1217
- }
1218
- for(; null !== (r = C.nextNode()) && d.length < u;){
1219
- if (1 === r.nodeType) {
1220
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1221
- if (r.hasAttributes()) try {
1222
- for(var _iterator = r.getAttributeNames()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1223
- var t2 = _step.value;
1224
- if (t2.endsWith(e)) {
1225
- var i1 = v[a++], s1 = r.getAttribute(t2).split(h), e1 = /([.?@])?(.*)/.exec(i1);
1226
- d.push({
1227
- type: 1,
1228
- index: c,
1229
- name: e1[2],
1230
- strings: s1,
1231
- ctor: "." === e1[1] ? H : "?" === e1[1] ? I : "@" === e1[1] ? L : k
1232
- }), r.removeAttribute(t2);
1233
- } else t2.startsWith(h) && (d.push({
1234
- type: 6,
1235
- index: c
1236
- }), r.removeAttribute(t2));
1237
- }
1238
- } catch (err) {
1239
- _didIteratorError = true;
1240
- _iteratorError = err;
1241
- } finally{
1242
- try {
1243
- if (!_iteratorNormalCompletion && _iterator.return != null) {
1244
- _iterator.return();
1245
- }
1246
- } finally{
1247
- if (_didIteratorError) {
1248
- throw _iteratorError;
1249
- }
1250
- }
1251
- }
1252
- if ($.test(r.tagName)) {
1253
- var t3 = r.textContent.split(h), s2 = t3.length - 1;
1254
- if (s2 > 0) {
1255
- r.textContent = i$1 ? i$1.emptyScript : "";
1256
- for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l()), C.nextNode(), d.push({
1257
- type: 2,
1258
- index: ++c
1259
- });
1260
- r.append(t3[s2], l());
1261
- }
1262
- }
1263
- } else if (8 === r.nodeType) if (r.data === o$2) d.push({
1264
- type: 2,
1265
- index: c
1266
- });
1267
- else {
1268
- var t4 = -1;
1269
- for(; -1 !== (t4 = r.data.indexOf(h, t4 + 1));)d.push({
1270
- type: 7,
1271
- index: c
1272
- }), t4 += h.length - 1;
1273
- }
1274
- c++;
1275
- }
1276
- }
1277
- _create_class$1(N, null, [
1278
- {
1279
- key: "createElement",
1280
- value: function createElement(t, i) {
1281
- var s = r$1.createElement("template");
1282
- return s.innerHTML = t, s;
1283
- }
1284
- }
1285
- ]);
1286
- return N;
1287
- }();
1288
- function S(t, i) {
1289
- var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t, e = arguments.length > 3 ? arguments[3] : void 0;
1290
- var _s__$Co, _h__$AO;
1291
- var _s;
1292
- if (i === T) return i;
1293
- var h = void 0 !== e ? (_s__$Co = s._$Co) === null || _s__$Co === void 0 ? void 0 : _s__$Co[e] : s._$Cl;
1294
- var o = c(i) ? void 0 : i._$litDirective$;
1295
- var __$Co;
1296
- 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, false), 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;
1297
- }
1298
- var M = /*#__PURE__*/ function() {
1299
- function M(t, i) {
1300
- _class_call_check$1(this, M);
1301
- this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
1302
- }
1303
- _create_class$1(M, [
1304
- {
1305
- key: "parentNode",
1306
- get: function get() {
1307
- return this._$AM.parentNode;
1308
- }
1309
- },
1310
- {
1311
- key: "_$AU",
1312
- get: function get() {
1313
- return this._$AM._$AU;
1314
- }
1315
- },
1316
- {
1317
- key: "u",
1318
- value: function u(t) {
1319
- var _t_creationScope;
1320
- 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$1).importNode(i, true);
1321
- C.currentNode = e;
1322
- var h = C.nextNode(), o = 0, n = 0, l = s[0];
1323
- for(; void 0 !== l;){
1324
- if (o === l.index) {
1325
- var i1 = void 0;
1326
- 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];
1327
- }
1328
- o !== (l === null || l === void 0 ? void 0 : l.index) && (h = C.nextNode(), o++);
1329
- }
1330
- return C.currentNode = r$1, e;
1331
- }
1332
- },
1333
- {
1334
- key: "p",
1335
- value: function p(t) {
1336
- var i = 0;
1337
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1338
- try {
1339
- for(var _iterator = this._$AV[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1340
- var s = _step.value;
1341
- void 0 !== s && (void 0 !== s.strings ? (s._$AI(t, s, i), i += s.strings.length - 2) : s._$AI(t[i])), i++;
1342
- }
1343
- } catch (err) {
1344
- _didIteratorError = true;
1345
- _iteratorError = err;
1346
- } finally{
1347
- try {
1348
- if (!_iteratorNormalCompletion && _iterator.return != null) {
1349
- _iterator.return();
1350
- }
1351
- } finally{
1352
- if (_didIteratorError) {
1353
- throw _iteratorError;
1354
- }
1355
- }
1356
- }
1357
- }
1358
- }
1359
- ]);
1360
- return M;
1361
- }();
1362
- var R = /*#__PURE__*/ function() {
1363
- function R(t, i, s, e) {
1364
- _class_call_check$1(this, R);
1365
- var _e_isConnected;
1366
- 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 : true;
1367
- }
1368
- _create_class$1(R, [
1369
- {
1370
- key: "_$AU",
1371
- get: function get() {
1372
- var _this__$AM;
1373
- var _this__$AM__$AU;
1374
- 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;
1375
- }
1376
- },
1377
- {
1378
- key: "parentNode",
1379
- get: function get() {
1380
- var t = this._$AA.parentNode;
1381
- var i = this._$AM;
1382
- return void 0 !== i && 11 === (t === null || t === void 0 ? void 0 : t.nodeType) && (t = i.parentNode), t;
1383
- }
1384
- },
1385
- {
1386
- key: "startNode",
1387
- get: function get() {
1388
- return this._$AA;
1389
- }
1390
- },
1391
- {
1392
- key: "endNode",
1393
- get: function get() {
1394
- return this._$AB;
1395
- }
1396
- },
1397
- {
1398
- key: "_$AI",
1399
- value: function _$AI(t) {
1400
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
1401
- 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);
1402
- }
1403
- },
1404
- {
1405
- key: "O",
1406
- value: function O(t) {
1407
- return this._$AA.parentNode.insertBefore(t, this._$AB);
1408
- }
1409
- },
1410
- {
1411
- key: "T",
1412
- value: function T(t) {
1413
- this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
1414
- }
1415
- },
1416
- {
1417
- key: "_",
1418
- value: function _(t) {
1419
- this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$1.createTextNode(t)), this._$AH = t;
1420
- }
1421
- },
1422
- {
1423
- key: "$",
1424
- value: function $(t) {
1425
- var _this__$AH;
1426
- 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);
1427
- if (((_this__$AH = this._$AH) === null || _this__$AH === void 0 ? void 0 : _this__$AH._$AD) === e) this._$AH.p(i);
1428
- else {
1429
- var _$t = new M(e, this), s1 = _$t.u(this.options);
1430
- _$t.p(i), this.T(s1), this._$AH = _$t;
1431
- }
1432
- }
1433
- },
1434
- {
1435
- key: "_$AC",
1436
- value: function _$AC(t) {
1437
- var i = A.get(t.strings);
1438
- return void 0 === i && A.set(t.strings, i = new N(t)), i;
1439
- }
1440
- },
1441
- {
1442
- key: "k",
1443
- value: function k(t) {
1444
- a(this._$AH) || (this._$AH = [], this._$AR());
1445
- var i = this._$AH;
1446
- var s, e = 0;
1447
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1448
- try {
1449
- for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1450
- var h = _step.value;
1451
- e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
1452
- }
1453
- } catch (err) {
1454
- _didIteratorError = true;
1455
- _iteratorError = err;
1456
- } finally{
1457
- try {
1458
- if (!_iteratorNormalCompletion && _iterator.return != null) {
1459
- _iterator.return();
1460
- }
1461
- } finally{
1462
- if (_didIteratorError) {
1463
- throw _iteratorError;
1464
- }
1465
- }
1466
- }
1467
- e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
1468
- }
1469
- },
1470
- {
1471
- key: "_$AR",
1472
- value: function _$AR() {
1473
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this._$AA.nextSibling, i = arguments.length > 1 ? arguments[1] : void 0;
1474
- var _this__$AP, _this;
1475
- for((_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this, false, true, i); t !== this._$AB;){
1476
- var i1 = t.nextSibling;
1477
- t.remove(), t = i1;
1478
- }
1479
- }
1480
- },
1481
- {
1482
- key: "setConnected",
1483
- value: function setConnected(t) {
1484
- var _this__$AP, _this;
1485
- void 0 === this._$AM && (this._$Cv = t, (_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this, t));
1486
- }
1487
- }
1488
- ]);
1489
- return R;
1490
- }();
1491
- var k = /*#__PURE__*/ function() {
1492
- function k(t, i, s, e, h) {
1493
- _class_call_check$1(this, k);
1494
- 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;
1495
- }
1496
- _create_class$1(k, [
1497
- {
1498
- key: "tagName",
1499
- get: function get() {
1500
- return this.element.tagName;
1501
- }
1502
- },
1503
- {
1504
- key: "_$AU",
1505
- get: function get() {
1506
- return this._$AM._$AU;
1507
- }
1508
- },
1509
- {
1510
- key: "_$AI",
1511
- value: function _$AI(t) {
1512
- 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;
1513
- var h = this.strings;
1514
- var o = false;
1515
- if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
1516
- else {
1517
- var e1 = t;
1518
- var n, r;
1519
- 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;
1520
- }
1521
- o && !e && this.j(t);
1522
- }
1523
- },
1524
- {
1525
- key: "j",
1526
- value: function j(t) {
1527
- t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
1528
- }
1529
- }
1530
- ]);
1531
- return k;
1532
- }();
1533
- var H = /*#__PURE__*/ function(k) {
1534
- _inherits$1(H, k);
1535
- var _super = _create_super$1(H);
1536
- function H() {
1537
- _class_call_check$1(this, H);
1538
- var _this;
1539
- _this = _super.call.apply(_super, [
1540
- this
1541
- ].concat(Array.prototype.slice.call(arguments))), _this.type = 3;
1542
- return _possible_constructor_return$1(_this);
1543
- }
1544
- _create_class$1(H, [
1545
- {
1546
- key: "j",
1547
- value: function j(t) {
1548
- this.element[this.name] = t === E ? void 0 : t;
1549
- }
1550
- }
1551
- ]);
1552
- return H;
1553
- }(k);
1554
- var I = /*#__PURE__*/ function(k) {
1555
- _inherits$1(I, k);
1556
- var _super = _create_super$1(I);
1557
- function I() {
1558
- _class_call_check$1(this, I);
1559
- var _this;
1560
- _this = _super.call.apply(_super, [
1561
- this
1562
- ].concat(Array.prototype.slice.call(arguments))), _this.type = 4;
1563
- return _possible_constructor_return$1(_this);
1564
- }
1565
- _create_class$1(I, [
1566
- {
1567
- key: "j",
1568
- value: function j(t) {
1569
- this.element.toggleAttribute(this.name, !!t && t !== E);
1570
- }
1571
- }
1572
- ]);
1573
- return I;
1574
- }(k);
1575
- var L = /*#__PURE__*/ function(k) {
1576
- _inherits$1(L, k);
1577
- var _super = _create_super$1(L);
1578
- function L(t, i, s, e, h) {
1579
- _class_call_check$1(this, L);
1580
- var _this;
1581
- _this = _super.call(this, t, i, s, e, h), _this.type = 5;
1582
- return _possible_constructor_return$1(_this);
1583
- }
1584
- _create_class$1(L, [
1585
- {
1586
- key: "_$AI",
1587
- value: function _$AI(t) {
1588
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
1589
- var _S;
1590
- if ((t = (_S = S(this, t, i, 0)) !== null && _S !== void 0 ? _S : E) === T) return;
1591
- 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);
1592
- e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
1593
- }
1594
- },
1595
- {
1596
- key: "handleEvent",
1597
- value: function handleEvent(t) {
1598
- var _this_options;
1599
- var _this_options_host;
1600
- "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);
1601
- }
1602
- }
1603
- ]);
1604
- return L;
1605
- }(k);
1606
- var z = /*#__PURE__*/ function() {
1607
- function z(t, i, s) {
1608
- _class_call_check$1(this, z);
1609
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
1610
- }
1611
- _create_class$1(z, [
1612
- {
1613
- key: "_$AU",
1614
- get: function get() {
1615
- return this._$AM._$AU;
1616
- }
1617
- },
1618
- {
1619
- key: "_$AI",
1620
- value: function _$AI(t) {
1621
- S(this, t);
1622
- }
1623
- }
1624
- ]);
1625
- return z;
1626
- }();
1627
- var j = t$1.litHtmlPolyfillSupport;
1628
- var _litHtmlVersions;
1629
- j === null || j === void 0 ? void 0 : j(N, R), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.3.1");
1630
- var B = function(t, i, s) {
1631
- var _s_renderBefore;
1632
- var e = (_s_renderBefore = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore !== void 0 ? _s_renderBefore : i;
1633
- var h = e._$litPart$;
1634
- if (void 0 === h) {
1635
- var _s_renderBefore1;
1636
- var _$t = (_s_renderBefore1 = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore1 !== void 0 ? _s_renderBefore1 : null;
1637
- e._$litPart$ = h = new R(i.insertBefore(l(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
1638
- }
1639
- return h._$AI(t), h;
1640
- };
1641
-
1642
- function _assert_this_initialized(self) {
1643
- if (self === void 0) {
1644
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1645
- }
1646
- return self;
1647
- }
1648
- function _class_call_check(instance, Constructor) {
1649
- if (!(instance instanceof Constructor)) {
1650
- throw new TypeError("Cannot call a class as a function");
1651
- }
1652
- }
1653
- function _defineProperties(target, props) {
1654
- for(var i = 0; i < props.length; i++){
1655
- var descriptor = props[i];
1656
- descriptor.enumerable = descriptor.enumerable || false;
1657
- descriptor.configurable = true;
1658
- if ("value" in descriptor) descriptor.writable = true;
1659
- Object.defineProperty(target, descriptor.key, descriptor);
1660
- }
1661
- }
1662
- function _create_class(Constructor, protoProps, staticProps) {
1663
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1664
- return Constructor;
1665
- }
1666
- function _get(target, property, receiver) {
1667
- if (typeof Reflect !== "undefined" && Reflect.get) {
1668
- _get = Reflect.get;
1669
- } else {
1670
- _get = function get(target, property, receiver) {
1671
- var base = _super_prop_base(target, property);
1672
- if (!base) return;
1673
- var desc = Object.getOwnPropertyDescriptor(base, property);
1674
- if (desc.get) {
1675
- return desc.get.call(receiver || target);
1676
- }
1677
- return desc.value;
1678
- };
1679
- }
1680
- return _get(target, property, receiver || target);
1681
- }
1682
- function _get_prototype_of(o) {
1683
- _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
1684
- return o.__proto__ || Object.getPrototypeOf(o);
1685
- };
1686
- return _get_prototype_of(o);
1687
- }
1688
- function _inherits(subClass, superClass) {
1689
- if (typeof superClass !== "function" && superClass !== null) {
1690
- throw new TypeError("Super expression must either be null or a function");
1691
- }
1692
- subClass.prototype = Object.create(superClass && superClass.prototype, {
1693
- constructor: {
1694
- value: subClass,
1695
- writable: true,
1696
- configurable: true
1697
- }
1698
- });
1699
- if (superClass) _set_prototype_of(subClass, superClass);
1700
- }
1701
- function _possible_constructor_return(self, call) {
1702
- if (call && (_type_of$1(call) === "object" || typeof call === "function")) {
1703
- return call;
1704
- }
1705
- return _assert_this_initialized(self);
1706
- }
1707
- function _set_prototype_of(o, p) {
1708
- _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1709
- o.__proto__ = p;
1710
- return o;
1711
- };
1712
- return _set_prototype_of(o, p);
1713
- }
1714
- function _super_prop_base(object, property) {
1715
- while(!Object.prototype.hasOwnProperty.call(object, property)){
1716
- object = _get_prototype_of(object);
1717
- if (object === null) break;
1718
- }
1719
- return object;
1720
- }
1721
- function _type_of$1(obj) {
1722
- "@swc/helpers - typeof";
1723
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
1724
- }
1725
- function _is_native_reflect_construct() {
1726
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
1727
- if (Reflect.construct.sham) return false;
1728
- if (typeof Proxy === "function") return true;
1729
- try {
1730
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1731
- return true;
1732
- } catch (e) {
1733
- return false;
1734
- }
1735
- }
1736
- function _create_super(Derived) {
1737
- var hasNativeReflectConstruct = _is_native_reflect_construct();
1738
- return function _createSuperInternal() {
1739
- var Super = _get_prototype_of(Derived), result;
1740
- if (hasNativeReflectConstruct) {
1741
- var NewTarget = _get_prototype_of(this).constructor;
1742
- result = Reflect.construct(Super, arguments, NewTarget);
1743
- } else {
1744
- result = Super.apply(this, arguments);
1745
- }
1746
- return _possible_constructor_return(this, result);
1747
- };
1748
- }
1749
- var _s_litElementHydrateSupport;
1750
- var _s;
1751
- /**
1752
- * @license
1753
- * Copyright 2017 Google LLC
1754
- * SPDX-License-Identifier: BSD-3-Clause
1755
- */ var s = globalThis;
1756
- var i = /*#__PURE__*/ function(t) {
1757
- _inherits(i, t);
1758
- var _super = _create_super(i);
1759
- function i() {
1760
- _class_call_check(this, i);
1761
- var _this;
1762
- _this = _super.call.apply(_super, [
1763
- this
1764
- ].concat(Array.prototype.slice.call(arguments))), _this.renderOptions = {
1765
- host: _assert_this_initialized(_this)
1766
- }, _this._$Do = void 0;
1767
- return _possible_constructor_return(_this);
1768
- }
1769
- _create_class(i, [
1770
- {
1771
- key: "createRenderRoot",
1772
- value: function createRenderRoot() {
1773
- var _this_renderOptions;
1774
- var _$t = _get(_get_prototype_of(i.prototype), "createRenderRoot", this).call(this);
1775
- var _renderBefore;
1776
- return (_renderBefore = (_this_renderOptions = this.renderOptions).renderBefore) !== null && _renderBefore !== void 0 ? _renderBefore : _this_renderOptions.renderBefore = _$t.firstChild, _$t;
1777
- }
1778
- },
1779
- {
1780
- key: "update",
1781
- value: function update(t) {
1782
- var r = this.render();
1783
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(i.prototype), "update", this).call(this, t), this._$Do = B(r, this.renderRoot, this.renderOptions);
1784
- }
1785
- },
1786
- {
1787
- key: "connectedCallback",
1788
- value: function connectedCallback() {
1789
- var _this__$Do;
1790
- _get(_get_prototype_of(i.prototype), "connectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(true);
1791
- }
1792
- },
1793
- {
1794
- key: "disconnectedCallback",
1795
- value: function disconnectedCallback() {
1796
- var _this__$Do;
1797
- _get(_get_prototype_of(i.prototype), "disconnectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(false);
1798
- }
1799
- },
1800
- {
1801
- key: "render",
1802
- value: function render() {
1803
- return T;
1804
- }
1805
- }
1806
- ]);
1807
- return i;
1808
- }(y$1);
1809
- i._$litElement$ = true, i["finalized"] = true, (_s_litElementHydrateSupport = s.litElementHydrateSupport) === null || _s_litElementHydrateSupport === void 0 ? void 0 : _s_litElementHydrateSupport.call(s, {
1810
- LitElement: i
1811
- });
1812
- var o$1 = s.litElementPolyfillSupport;
1813
- o$1 === null || o$1 === void 0 ? void 0 : o$1({
1814
- LitElement: i
1815
- });
1816
- var _litElementVersions;
1817
- ((_litElementVersions = (_s = s).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _s.litElementVersions = []).push("4.2.1");
1818
-
1819
- /**
1820
- * @license
1821
- * Copyright 2017 Google LLC
1822
- * SPDX-License-Identifier: BSD-3-Clause
1823
- */ var t = function(t) {
1824
- return function(e, o) {
1825
- void 0 !== o ? o.addInitializer(function() {
1826
- customElements.define(t, e);
1827
- }) : customElements.define(t, e);
1828
- };
1829
- };
1830
-
1831
- function _type_of(obj) {
1832
- "@swc/helpers - typeof";
1833
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
1834
- }
1835
- /**
1836
- * @license
1837
- * Copyright 2017 Google LLC
1838
- * SPDX-License-Identifier: BSD-3-Clause
1839
- */ var o = {
1840
- attribute: true,
1841
- type: String,
1842
- converter: u$1,
1843
- reflect: false,
1844
- hasChanged: f$1
1845
- }, r = function() {
1846
- var _$t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : o, _$e = arguments.length > 1 ? arguments[1] : void 0, r = arguments.length > 2 ? arguments[2] : void 0;
1847
- var n = r.kind, i = r.metadata;
1848
- var s = globalThis.litPropertyMetadata.get(i);
1849
- if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map), "setter" === n && ((_$t = Object.create(_$t)).wrapped = true), s.set(r.name, _$t), "accessor" === n) {
1850
- var o1 = r.name;
1851
- return {
1852
- set: function set(r) {
1853
- var n = _$e.get.call(this);
1854
- _$e.set.call(this, r), this.requestUpdate(o1, n, _$t);
1855
- },
1856
- init: function init(e) {
1857
- return void 0 !== e && this.C(o1, void 0, _$t, e), e;
1858
- }
1859
- };
1860
- }
1861
- if ("setter" === n) {
1862
- var o2 = r.name;
1863
- return function r(r) {
1864
- var n = this[o2];
1865
- _$e.call(this, r), this.requestUpdate(o2, n, _$t);
1866
- };
1867
- }
1868
- throw Error("Unsupported decorator location: " + n);
1869
- };
1870
- function n(t) {
1871
- return function(e, o) {
1872
- return "object" == (typeof o === "undefined" ? "undefined" : _type_of(o)) ? r(t, e, o) : function(t, e, o) {
1873
- var r = e.hasOwnProperty(o);
1874
- return e.constructor.createProperty(o, t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
1875
- }(t, e, o);
1876
- };
1877
- }
1878
-
1879
- class IconElement extends i {
20
+ class IconElement extends lit.LitElement {
1880
21
  render() {
1881
- return x`
22
+ return lit.html`
1882
23
  <link
1883
24
  href="https://fonts.googleapis.com/icon?family=Material+Icons"
1884
25
  rel="stylesheet"
@@ -1892,14 +33,14 @@ class IconElement extends i {
1892
33
  }
1893
34
  }
1894
35
  __decorate([
1895
- n(),
36
+ decorators_js.property(),
1896
37
  __metadata("design:type", String)
1897
38
  ], IconElement.prototype, "name", void 0);
1898
39
  __decorate([
1899
- n()
40
+ decorators_js.property()
1900
41
  ], IconElement.prototype, "iconStyle", void 0);
1901
42
  IconElement = __decorate([
1902
- t('digipair-material-icons-icon')
43
+ decorators_js.customElement('digipair-material-icons-icon')
1903
44
  ], IconElement);
1904
45
 
1905
46
  exports.IconElement = IconElement;