@appcues/web-sdk 7.13.3 → 7.15.0

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.
@@ -0,0 +1,4731 @@
1
+ "use strict";
2
+ function _array_like_to_array(arr, len) {
3
+ if (len == null || len > arr.length) len = arr.length;
4
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
5
+ return arr2;
6
+ }
7
+ function _array_with_holes(arr) {
8
+ if (Array.isArray(arr)) return arr;
9
+ }
10
+ function _array_without_holes(arr) {
11
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
12
+ }
13
+ function _assert_this_initialized(self1) {
14
+ if (self1 === void 0) {
15
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
16
+ }
17
+ return self1;
18
+ }
19
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
20
+ try {
21
+ var info = gen[key](arg);
22
+ var value = info.value;
23
+ } catch (error) {
24
+ reject(error);
25
+ return;
26
+ }
27
+ if (info.done) {
28
+ resolve(value);
29
+ } else {
30
+ Promise.resolve(value).then(_next, _throw);
31
+ }
32
+ }
33
+ function _async_to_generator(fn) {
34
+ return function() {
35
+ var self1 = this, args = arguments;
36
+ return new Promise(function(resolve, reject) {
37
+ var gen = fn.apply(self1, args);
38
+ function _next(value) {
39
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
40
+ }
41
+ function _throw(err) {
42
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
43
+ }
44
+ _next(undefined);
45
+ });
46
+ };
47
+ }
48
+ function _class_call_check(instance, Constructor) {
49
+ if (!(instance instanceof Constructor)) {
50
+ throw new TypeError("Cannot call a class as a function");
51
+ }
52
+ }
53
+ function _construct(Parent, args, Class) {
54
+ if (_is_native_reflect_construct()) {
55
+ _construct = Reflect.construct;
56
+ } else {
57
+ _construct = function construct(Parent, args, Class) {
58
+ var a = [
59
+ null
60
+ ];
61
+ a.push.apply(a, args);
62
+ var Constructor = Function.bind.apply(Parent, a);
63
+ var instance = new Constructor();
64
+ if (Class) _set_prototype_of(instance, Class.prototype);
65
+ return instance;
66
+ };
67
+ }
68
+ return _construct.apply(null, arguments);
69
+ }
70
+ function _defineProperties(target, props) {
71
+ for(var i = 0; i < props.length; i++){
72
+ var descriptor = props[i];
73
+ descriptor.enumerable = descriptor.enumerable || false;
74
+ descriptor.configurable = true;
75
+ if ("value" in descriptor) descriptor.writable = true;
76
+ Object.defineProperty(target, descriptor.key, descriptor);
77
+ }
78
+ }
79
+ function _create_class(Constructor, protoProps, staticProps) {
80
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
81
+ if (staticProps) _defineProperties(Constructor, staticProps);
82
+ return Constructor;
83
+ }
84
+ function _define_property(obj, key, value) {
85
+ if (key in obj) {
86
+ Object.defineProperty(obj, key, {
87
+ value: value,
88
+ enumerable: true,
89
+ configurable: true,
90
+ writable: true
91
+ });
92
+ } else {
93
+ obj[key] = value;
94
+ }
95
+ return obj;
96
+ }
97
+ function _get(target, property, receiver) {
98
+ if (typeof Reflect !== "undefined" && Reflect.get) {
99
+ _get = Reflect.get;
100
+ } else {
101
+ _get = function get(target, property, receiver) {
102
+ var base = _super_prop_base(target, property);
103
+ if (!base) return;
104
+ var desc = Object.getOwnPropertyDescriptor(base, property);
105
+ if (desc.get) {
106
+ return desc.get.call(receiver || target);
107
+ }
108
+ return desc.value;
109
+ };
110
+ }
111
+ return _get(target, property, receiver || target);
112
+ }
113
+ function _get_prototype_of(o) {
114
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
115
+ return o.__proto__ || Object.getPrototypeOf(o);
116
+ };
117
+ return _get_prototype_of(o);
118
+ }
119
+ function _inherits(subClass, superClass) {
120
+ if (typeof superClass !== "function" && superClass !== null) {
121
+ throw new TypeError("Super expression must either be null or a function");
122
+ }
123
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
124
+ constructor: {
125
+ value: subClass,
126
+ writable: true,
127
+ configurable: true
128
+ }
129
+ });
130
+ if (superClass) _set_prototype_of(subClass, superClass);
131
+ }
132
+ function _instanceof(left, right) {
133
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
134
+ return !!right[Symbol.hasInstance](left);
135
+ } else {
136
+ return left instanceof right;
137
+ }
138
+ }
139
+ function _is_native_function(fn) {
140
+ return Function.toString.call(fn).indexOf("[native code]") !== -1;
141
+ }
142
+ function _iterable_to_array(iter) {
143
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
144
+ }
145
+ function _iterable_to_array_limit(arr, i) {
146
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
147
+ if (_i == null) return;
148
+ var _arr = [];
149
+ var _n = true;
150
+ var _d = false;
151
+ var _s, _e;
152
+ try {
153
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
154
+ _arr.push(_s.value);
155
+ if (i && _arr.length === i) break;
156
+ }
157
+ } catch (err) {
158
+ _d = true;
159
+ _e = err;
160
+ } finally{
161
+ try {
162
+ if (!_n && _i["return"] != null) _i["return"]();
163
+ } finally{
164
+ if (_d) throw _e;
165
+ }
166
+ }
167
+ return _arr;
168
+ }
169
+ function _non_iterable_rest() {
170
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
171
+ }
172
+ function _non_iterable_spread() {
173
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
174
+ }
175
+ function _object_spread(target) {
176
+ for(var i = 1; i < arguments.length; i++){
177
+ var source = arguments[i] != null ? arguments[i] : {};
178
+ var ownKeys = Object.keys(source);
179
+ if (typeof Object.getOwnPropertySymbols === "function") {
180
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
181
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
182
+ }));
183
+ }
184
+ ownKeys.forEach(function(key) {
185
+ _define_property(target, key, source[key]);
186
+ });
187
+ }
188
+ return target;
189
+ }
190
+ function ownKeys(object, enumerableOnly) {
191
+ var keys = Object.keys(object);
192
+ if (Object.getOwnPropertySymbols) {
193
+ var symbols = Object.getOwnPropertySymbols(object);
194
+ if (enumerableOnly) {
195
+ symbols = symbols.filter(function(sym) {
196
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
197
+ });
198
+ }
199
+ keys.push.apply(keys, symbols);
200
+ }
201
+ return keys;
202
+ }
203
+ function _object_spread_props(target, source) {
204
+ source = source != null ? source : {};
205
+ if (Object.getOwnPropertyDescriptors) {
206
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
207
+ } else {
208
+ ownKeys(Object(source)).forEach(function(key) {
209
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
210
+ });
211
+ }
212
+ return target;
213
+ }
214
+ function _possible_constructor_return(self1, call) {
215
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
216
+ return call;
217
+ }
218
+ return _assert_this_initialized(self1);
219
+ }
220
+ function _set_prototype_of(o, p) {
221
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
222
+ o.__proto__ = p;
223
+ return o;
224
+ };
225
+ return _set_prototype_of(o, p);
226
+ }
227
+ function _sliced_to_array(arr, i) {
228
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
229
+ }
230
+ function _super_prop_base(object, property) {
231
+ while(!Object.prototype.hasOwnProperty.call(object, property)){
232
+ object = _get_prototype_of(object);
233
+ if (object === null) break;
234
+ }
235
+ return object;
236
+ }
237
+ function _tagged_template_literal(strings, raw) {
238
+ if (!raw) {
239
+ raw = strings.slice(0);
240
+ }
241
+ return Object.freeze(Object.defineProperties(strings, {
242
+ raw: {
243
+ value: Object.freeze(raw)
244
+ }
245
+ }));
246
+ }
247
+ function _to_consumable_array(arr) {
248
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
249
+ }
250
+ function _type_of(obj) {
251
+ "@swc/helpers - typeof";
252
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
253
+ }
254
+ function _unsupported_iterable_to_array(o, minLen) {
255
+ if (!o) return;
256
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
257
+ var n = Object.prototype.toString.call(o).slice(8, -1);
258
+ if (n === "Object" && o.constructor) n = o.constructor.name;
259
+ if (n === "Map" || n === "Set") return Array.from(n);
260
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
261
+ }
262
+ function _wrap_native_super(Class) {
263
+ var _cache = typeof Map === "function" ? new Map() : undefined;
264
+ _wrap_native_super = function wrapNativeSuper(Class) {
265
+ if (Class === null || !_is_native_function(Class)) return Class;
266
+ if (typeof Class !== "function") {
267
+ throw new TypeError("Super expression must either be null or a function");
268
+ }
269
+ if (typeof _cache !== "undefined") {
270
+ if (_cache.has(Class)) return _cache.get(Class);
271
+ _cache.set(Class, Wrapper);
272
+ }
273
+ function Wrapper() {
274
+ return _construct(Class, arguments, _get_prototype_of(this).constructor);
275
+ }
276
+ Wrapper.prototype = Object.create(Class.prototype, {
277
+ constructor: {
278
+ value: Wrapper,
279
+ enumerable: false,
280
+ writable: true,
281
+ configurable: true
282
+ }
283
+ });
284
+ return _set_prototype_of(Wrapper, Class);
285
+ };
286
+ return _wrap_native_super(Class);
287
+ }
288
+ function _is_native_reflect_construct() {
289
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
290
+ if (Reflect.construct.sham) return false;
291
+ if (typeof Proxy === "function") return true;
292
+ try {
293
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
294
+ return true;
295
+ } catch (e) {
296
+ return false;
297
+ }
298
+ }
299
+ function _create_super(Derived) {
300
+ var hasNativeReflectConstruct = _is_native_reflect_construct();
301
+ return function _createSuperInternal() {
302
+ var Super = _get_prototype_of(Derived), result;
303
+ if (hasNativeReflectConstruct) {
304
+ var NewTarget = _get_prototype_of(this).constructor;
305
+ result = Reflect.construct(Super, arguments, NewTarget);
306
+ } else {
307
+ result = Super.apply(this, arguments);
308
+ }
309
+ return _possible_constructor_return(this, result);
310
+ };
311
+ }
312
+ function _ts_generator(thisArg, body) {
313
+ var f, y, t, g, _ = {
314
+ label: 0,
315
+ sent: function() {
316
+ if (t[0] & 1) throw t[1];
317
+ return t[1];
318
+ },
319
+ trys: [],
320
+ ops: []
321
+ };
322
+ return g = {
323
+ next: verb(0),
324
+ "throw": verb(1),
325
+ "return": verb(2)
326
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
327
+ return this;
328
+ }), g;
329
+ function verb(n) {
330
+ return function(v) {
331
+ return step([
332
+ n,
333
+ v
334
+ ]);
335
+ };
336
+ }
337
+ function step(op) {
338
+ if (f) throw new TypeError("Generator is already executing.");
339
+ while(_)try {
340
+ 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;
341
+ if (y = 0, t) op = [
342
+ op[0] & 2,
343
+ t.value
344
+ ];
345
+ switch(op[0]){
346
+ case 0:
347
+ case 1:
348
+ t = op;
349
+ break;
350
+ case 4:
351
+ _.label++;
352
+ return {
353
+ value: op[1],
354
+ done: false
355
+ };
356
+ case 5:
357
+ _.label++;
358
+ y = op[1];
359
+ op = [
360
+ 0
361
+ ];
362
+ continue;
363
+ case 7:
364
+ op = _.ops.pop();
365
+ _.trys.pop();
366
+ continue;
367
+ default:
368
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
369
+ _ = 0;
370
+ continue;
371
+ }
372
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
373
+ _.label = op[1];
374
+ break;
375
+ }
376
+ if (op[0] === 6 && _.label < t[1]) {
377
+ _.label = t[1];
378
+ t = op;
379
+ break;
380
+ }
381
+ if (t && _.label < t[2]) {
382
+ _.label = t[2];
383
+ _.ops.push(op);
384
+ break;
385
+ }
386
+ if (t[2]) _.ops.pop();
387
+ _.trys.pop();
388
+ continue;
389
+ }
390
+ op = body.call(thisArg, _);
391
+ } catch (e) {
392
+ op = [
393
+ 6,
394
+ e
395
+ ];
396
+ y = 0;
397
+ } finally{
398
+ f = t = 0;
399
+ }
400
+ if (op[0] & 5) throw op[1];
401
+ return {
402
+ value: op[0] ? op[1] : void 0,
403
+ done: true
404
+ };
405
+ }
406
+ }
407
+ function _templateObject() {
408
+ var data = _tagged_template_literal([
409
+ "",
410
+ ""
411
+ ]);
412
+ _templateObject = function _templateObject() {
413
+ return data;
414
+ };
415
+ return data;
416
+ }
417
+ function _templateObject1() {
418
+ var data = _tagged_template_literal([
419
+ "\n .container {\n background: #fff;\n box-shadow: var(--flows-list-block-shadow);\n border-radius: var(--flows-list-block-radius);\n padding: 8px 0;\n width: 100%;\n }\n\n .container .loading,\n .container .error-message {\n align-items: center;\n color: var(--flows-list-block-color);\n display: flex;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n justify-content: center;\n line-height: 160%;\n padding: 16px;\n text-align: center;\n }\n"
420
+ ]);
421
+ _templateObject1 = function _templateObject() {
422
+ return data;
423
+ };
424
+ return data;
425
+ }
426
+ function _templateObject2() {
427
+ var data = _tagged_template_literal([
428
+ "\n slot[name='empty-message'],\n ::slotted(p[slot='empty-message']) {\n align-items: center;\n color: var(--flows-list-block-color);\n display: flex;\n font-style: normal;\n font-weight: 400;\n justify-content: center;\n line-height: 160%;\n padding: 16px;\n text-align: center;\n font-size: 14px;\n }\n"
429
+ ]);
430
+ _templateObject2 = function _templateObject() {
431
+ return data;
432
+ };
433
+ return data;
434
+ }
435
+ function _templateObject3() {
436
+ var data = _tagged_template_literal([
437
+ "\n ul {\n list-style-type: square;\n list-style-position: inside;\n margin: 0;\n padding: 0 4px;\n }\n"
438
+ ]);
439
+ _templateObject3 = function _templateObject() {
440
+ return data;
441
+ };
442
+ return data;
443
+ }
444
+ function _templateObject4() {
445
+ var data = _tagged_template_literal([
446
+ "\n li {\n cursor: pointer;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 160%;\n padding: 8px 16px;\n border-radius: var(--flows-list-block-item-radius);\n transition: background-color 0.3s ease 0s;\n }\n\n li:hover {\n background-color: var(--flows-list-block-background-hover);\n }\n\n li::marker {\n color: var(--flows-list-block-marker-color);\n }\n\n li:hover > span {\n background-color: var(--flows-list-block-background-hover);\n }\n\n li > span {\n color: var(--flows-list-block-color);\n }\n\n li appcues-use-ref {\n display: inline-flex;\n max-width: calc(100% - 20px);\n }\n"
447
+ ]);
448
+ _templateObject4 = function _templateObject() {
449
+ return data;
450
+ };
451
+ return data;
452
+ }
453
+ function _templateObject5() {
454
+ var data = _tagged_template_literal([
455
+ "\n ::slotted(h1[slot='title']),\n ::slotted(h2[slot='title']),\n ::slotted(h3[slot='title']) {\n color: var(--flows-list-block-color);\n font-size: 15px;\n font-weight: 700;\n line-height: 24px;\n margin: 0 0 8px;\n padding: 0 16px 0;\n\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n max-height: 48px;\n max-width: calc(100% - 32px);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: normal;\n }\n"
456
+ ]);
457
+ _templateObject5 = function _templateObject() {
458
+ return data;
459
+ };
460
+ return data;
461
+ }
462
+ function _templateObject6() {
463
+ var data = _tagged_template_literal([
464
+ '\n <svg\n version="1.1"\n xmlns="http://www.w3.org/2000/svg"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n x="0px"\n y="0px"\n width="40px"\n height="40px"\n fill="#0072D6"\n viewBox="0 0 40 40"\n enable-background="new 0 0 40 40"\n xml:space="preserve"\n >\n <path\n opacity="0.2"\n fill="#0072D6"\n d="M20.201,5.169c-8.254,0-14.946,6.692-14.946,14.946c0,8.255,6.692,14.946,14.946,14.946\n s14.946-6.691,14.946-14.946C35.146,11.861,28.455,5.169,20.201,5.169z M20.201,31.749c-6.425,0-11.634-5.208-11.634-11.634\n c0-6.425,5.209-11.634,11.634-11.634c6.425,0,11.633,5.209,11.633,11.634C31.834,26.541,26.626,31.749,20.201,31.749z"\n />\n <path\n fill="#0072D6"\n d="M26.013,10.047l1.654-2.866c-2.198-1.272-4.743-2.012-7.466-2.012h0v3.312h0\n C22.32,8.481,24.301,9.057,26.013,10.047z"\n >\n <animateTransform\n attributeType="xml"\n attributeName="transform"\n type="rotate"\n from="0 20 20"\n to="360 20 20"\n keySplines="0.17 0.27 0.8 0.65"\n calcMode="spline"\n dur="0.6s"\n repeatCount="indefinite"\n keyTimes="0;1"\n />\n </path>\n </svg>\n'
465
+ ]);
466
+ _templateObject6 = function _templateObject() {
467
+ return data;
468
+ };
469
+ return data;
470
+ }
471
+ function _templateObject7() {
472
+ var data = _tagged_template_literal([
473
+ '<div class="loading">',
474
+ "</div>"
475
+ ]);
476
+ _templateObject7 = function _templateObject() {
477
+ return data;
478
+ };
479
+ return data;
480
+ }
481
+ function _templateObject8() {
482
+ var data = _tagged_template_literal([
483
+ '\n <div class="error-message">Nothing to see here at the moment</div>\n '
484
+ ]);
485
+ _templateObject8 = function _templateObject() {
486
+ return data;
487
+ };
488
+ return data;
489
+ }
490
+ function _templateObject9() {
491
+ var data = _tagged_template_literal([
492
+ '\n <div class="container">\n <slot name="title"></slot>\n ',
493
+ "\n </div>\n "
494
+ ]);
495
+ _templateObject9 = function _templateObject() {
496
+ return data;
497
+ };
498
+ return data;
499
+ }
500
+ function _templateObject10() {
501
+ var data = _tagged_template_literal([
502
+ '\n <appcues-use-ref\n name="list-container"\n fallbackTag="ul"\n defaultStyle=',
503
+ "\n >\n ",
504
+ "\n </appcues-use-ref>\n "
505
+ ]);
506
+ _templateObject10 = function _templateObject() {
507
+ return data;
508
+ };
509
+ return data;
510
+ }
511
+ function _templateObject11() {
512
+ var data = _tagged_template_literal([
513
+ '\n <li\n @click="',
514
+ '"\n @mouseover="',
515
+ '"\n >\n <appcues-use-ref fallbackTag="span" name="list-item">\n ',
516
+ "\n </appcues-use-ref>\n </li>\n "
517
+ ]);
518
+ _templateObject11 = function _templateObject() {
519
+ return data;
520
+ };
521
+ return data;
522
+ }
523
+ function _templateObject12() {
524
+ var data = _tagged_template_literal([
525
+ '\n <slot name="empty-message">\n <p>Nothing to see here at the moment</p>\n </slot>\n '
526
+ ]);
527
+ _templateObject12 = function _templateObject() {
528
+ return data;
529
+ };
530
+ return data;
531
+ }
532
+ function _templateObject13() {
533
+ var data = _tagged_template_literal([
534
+ "\n .btn-wrapper {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n }\n\n .btn-wrapper button {\n background-color: var(--launcher-main-color, #0072d6);\n color: white;\n cursor: pointer;\n outline-color: #0072d6;\n outline-width: 2px;\n }\n\n .btn-wrapper button {\n border: none;\n border-start-start-radius: 80px;\n border-end-start-radius: 80px;\n border-start-end-radius: 0;\n border-end-end-radius: 0;\n padding-inline: 16px 8px;\n padding-block: 4px;\n height: 52px;\n outline-offset: 3px;\n }\n\n .btn-wrapper ::slotted(button) {\n padding: 10px 16px;\n border-radius: 80px;\n border: 2px solid transparent;\n height: 52px;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n outline-offset: 4px;\n }\n\n .btn-wrapper button:hover:not(:active):not([disabled]) {\n background-color: var(--launcher-hover-color, #4848eb) !important;\n }\n\n .btn-wrapper button:active {\n background-color: var(--launcher-active-color, #8c8cff) !important;\n }\n\n .btn-wrapper > .slot-wrapper {\n border: 2px solid white;\n margin-top: -2px;\n border-radius: 80px;\n width: max-content;\n }\n\n .btn-wrapper > .slot-wrapper.active {\n margin-inline-start: -18px;\n }\n"
535
+ ]);
536
+ _templateObject13 = function _templateObject() {
537
+ return data;
538
+ };
539
+ return data;
540
+ }
541
+ function _templateObject14() {
542
+ var data = _tagged_template_literal([
543
+ "\n .checklist-content {\n display: flex;\n flex-direction: column;\n text-align: left;\n margin-inline-end: 18px;\n justify-content: center;\n gap: 6px;\n line-height: 1.2;\n }\n"
544
+ ]);
545
+ _templateObject14 = function _templateObject() {
546
+ return data;
547
+ };
548
+ return data;
549
+ }
550
+ function _templateObject15() {
551
+ var data = _tagged_template_literal([
552
+ "\n .progress-wrapper {\n display: flex;\n align-items: center;\n gap: 2px;\n border-radius: 6px;\n min-width: 100px;\n overflow: hidden;\n }\n\n .progress-bar,\n progress {\n background-color: rgba(255, 255, 255, 0.4);\n height: 4px;\n flex-grow: 1;\n }\n\n .progress-bar.completed {\n background-color: white;\n }\n\n progress[value] {\n --color: white;\n --background: rgba(255, 255, 255, 0.4);\n appearance: none;\n background: var(--background);\n border: none;\n }\n\n progress[value]::-webkit-progress-bar {\n background: var(--background);\n }\n\n progress[value]::-webkit-progress-value {\n background: var(--color);\n }\n\n progress[value]::-moz-progress-bar {\n background: var(--color);\n }\n"
553
+ ]);
554
+ _templateObject15 = function _templateObject() {
555
+ return data;
556
+ };
557
+ return data;
558
+ }
559
+ function _templateObject16() {
560
+ var data = _tagged_template_literal([
561
+ '\n <button @click="',
562
+ '">\n <div class="checklist-content">\n ',
563
+ '\n <div class="progress-wrapper" aria-role="progressbar">\n ',
564
+ '\n </div>\n </div>\n </button>\n <div\n class="slot-wrapper ',
565
+ '"\n @click="',
566
+ '"\n >\n ',
567
+ "\n </div>\n "
568
+ ]);
569
+ _templateObject16 = function _templateObject() {
570
+ return data;
571
+ };
572
+ return data;
573
+ }
574
+ function _templateObject17() {
575
+ var data = _tagged_template_literal([
576
+ '\n <div class="btn-wrapper">\n ',
577
+ "\n </div>\n "
578
+ ]);
579
+ _templateObject17 = function _templateObject() {
580
+ return data;
581
+ };
582
+ return data;
583
+ }
584
+ function _templateObject18() {
585
+ var data = _tagged_template_literal([
586
+ '<progress\n id="items"\n value="',
587
+ '"\n max="',
588
+ '"\n ></progress>'
589
+ ]);
590
+ _templateObject18 = function _templateObject() {
591
+ return data;
592
+ };
593
+ return data;
594
+ }
595
+ function _templateObject19() {
596
+ var data = _tagged_template_literal([
597
+ '<div\n class="progress-bar ',
598
+ '"\n ></div>'
599
+ ]);
600
+ _templateObject19 = function _templateObject() {
601
+ return data;
602
+ };
603
+ return data;
604
+ }
605
+ function _templateObject20() {
606
+ var data = _tagged_template_literal([
607
+ "\n <slot @slotchange=",
608
+ "></slot>\n "
609
+ ]);
610
+ _templateObject20 = function _templateObject() {
611
+ return data;
612
+ };
613
+ return data;
614
+ }
615
+ function _templateObject21() {
616
+ var data = _tagged_template_literal([
617
+ "\n .page {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .idle {\n display: none;\n }\n\n .hidden {\n pointer-events: none;\n }\n\n .animated {\n position: absolute;\n top: 0;\n left: 0;\n }\n"
618
+ ]);
619
+ _templateObject21 = function _templateObject() {
620
+ return data;
621
+ };
622
+ return data;
623
+ }
624
+ function _templateObject22() {
625
+ var data = _tagged_template_literal([
626
+ "\n .slide-in-bottom {\n animation: slide-in-bottom 0.4s cubic-bezier(0.15, 1.03, 0.8, 1.03) forwards;\n }\n\n @keyframes slide-in-bottom {\n 0% {\n opacity: 0;\n transform: translateY(80%);\n }\n 20% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n }\n"
627
+ ]);
628
+ _templateObject22 = function _templateObject() {
629
+ return data;
630
+ };
631
+ return data;
632
+ }
633
+ function _templateObject23() {
634
+ var data = _tagged_template_literal([
635
+ "\n .slide-out-bottom {\n animation: slide-out-bottom 0.4s cubic-bezier(0.7, 0, 0.57, 0.55) forwards;\n }\n\n @keyframes slide-out-bottom {\n 0% {\n opacity: 1;\n transform: translateY(0);\n }\n\n 80% {\n opacity: 1;\n }\n\n 99% {\n transform: translateY(80%);\n opacity: 0;\n }\n\n 100% {\n display: none;\n max-height: 0;\n overflow: hidden;\n }\n }\n"
636
+ ]);
637
+ _templateObject23 = function _templateObject() {
638
+ return data;
639
+ };
640
+ return data;
641
+ }
642
+ function _templateObject24() {
643
+ var data = _tagged_template_literal([
644
+ '\n <div\n class="page ',
645
+ " ",
646
+ " ",
647
+ '"\n aria-hidden="',
648
+ '"\n >\n <slot></slot>\n </div>\n '
649
+ ]);
650
+ _templateObject24 = function _templateObject() {
651
+ return data;
652
+ };
653
+ return data;
654
+ }
655
+ function _templateObject25() {
656
+ var data = _tagged_template_literal([
657
+ "\n .grow {\n animation: grow-min-height 0.4s cubic-bezier(0.7, 0, 0.57, 0.55) forwards;\n min-height: auto;\n }\n\n .shrink {\n animation: shrink-min-height 0.4s cubic-bezier(0.7, 0, 0.57, 0.55) forwards;\n }\n"
658
+ ]);
659
+ _templateObject25 = function _templateObject() {
660
+ return data;
661
+ };
662
+ return data;
663
+ }
664
+ function _templateObject26() {
665
+ var data = _tagged_template_literal([
666
+ "\n <style>\n @keyframes grow-min-height {\n 0% {\n min-height: 0;\n }\n\n 100% {\n min-height: ",
667
+ ";\n }\n }\n\n @keyframes shrink-min-height {\n 0% {\n min-height: ",
668
+ ';\n }\n\n 100% {\n min-height: auto;\n }\n }\n </style>\n <div\n class="',
669
+ '"\n style="position: relative;"\n >\n <slot></slot>\n </div>\n '
670
+ ]);
671
+ _templateObject26 = function _templateObject() {
672
+ return data;
673
+ };
674
+ return data;
675
+ }
676
+ function _templateObject27() {
677
+ var data = _tagged_template_literal([
678
+ '\n <svg\n version="1.1"\n xmlns="http://www.w3.org/2000/svg"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n x="0px"\n y="0px"\n width="40px"\n height="40px"\n fill="#0072D6"\n viewBox="0 0 40 40"\n enable-background="new 0 0 40 40"\n xml:space="preserve"\n >\n <path\n opacity="0.2"\n fill="#0072D6"\n d="M20.201,5.169c-8.254,0-14.946,6.692-14.946,14.946c0,8.255,6.692,14.946,14.946,14.946\n s14.946-6.691,14.946-14.946C35.146,11.861,28.455,5.169,20.201,5.169z M20.201,31.749c-6.425,0-11.634-5.208-11.634-11.634\n c0-6.425,5.209-11.634,11.634-11.634c6.425,0,11.633,5.209,11.633,11.634C31.834,26.541,26.626,31.749,20.201,31.749z"\n />\n <path\n fill="#0072D6"\n d="M26.013,10.047l1.654-2.866c-2.198-1.272-4.743-2.012-7.466-2.012h0v3.312h0\n C22.32,8.481,24.301,9.057,26.013,10.047z"\n >\n <animateTransform\n attributeType="xml"\n attributeName="transform"\n type="rotate"\n from="0 20 20"\n to="360 20 20"\n keySplines="0.17 0.27 0.8 0.65"\n calcMode="spline"\n dur="0.6s"\n repeatCount="indefinite"\n keyTimes="0;1"\n />\n </path>\n </svg>\n'
679
+ ]);
680
+ _templateObject27 = function _templateObject() {
681
+ return data;
682
+ };
683
+ return data;
684
+ }
685
+ function _templateObject28() {
686
+ var data = _tagged_template_literal([
687
+ '\n <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n <g id="material-icon" clip-path="url(#clip0_19386_6120)">\n <path\n id="Vector" \n d="M6.12522 8.00305L11.9239 13.8017C12.1702 14.048 12.2953 14.3528 12.2993 14.7161C12.3033 15.0794 12.1822 15.3842 11.9359 15.6305C11.6896 15.8769 11.3828 16 11.0155 16C10.6481 16 10.3413 15.8769 10.095 15.6305L3.93523 9.47075C3.7234 9.25892 3.57007 9.02893 3.47524 8.78077C3.38042 8.53262 3.33301 8.27338 3.33301 8.00305C3.33301 7.73273 3.38042 7.47349 3.47524 7.22534C3.57007 6.97718 3.7234 6.74719 3.93523 6.53536L10.095 0.375561C10.3413 0.129259 10.6461 0.00410428 11.0094 9.62603e-05C11.3727 -0.00391176 11.6776 0.117242 11.9239 0.363558C12.1702 0.60986 12.2933 0.916664 12.2933 1.28397C12.2933 1.65128 12.1702 1.95809 11.9239 2.20441L6.12522 8.00305Z"\n fill="currentColor"\n />\n </g>\n </svg>\n'
688
+ ]);
689
+ _templateObject28 = function _templateObject() {
690
+ return data;
691
+ };
692
+ return data;
693
+ }
694
+ function _templateObject29() {
695
+ var data = _tagged_template_literal([
696
+ '\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">\n <path \n fill="currentColor" \n d="M8.9 17.81a8.6 8.6 0 0 1-6.31-2.59A8.6 8.6 0 0 1 0 8.91c0-2.49.86-4.6 2.59-6.32A8.6 8.6 0 0 1 8.9 0a8.6 8.6 0 0 1 6.32 2.59A8.6 8.6 0 0 1 17.8 8.9a8.39 8.39 0 0 1-1.68 5.07l7.45 7.46c.28.29.42.65.42 1.07 0 .43-.14.78-.43 1.06-.29.29-.64.43-1.07.43-.43 0-.78-.14-1.07-.43L14 16.13a8.42 8.42 0 0 1-5.09 1.68Zm0-3.05c1.63 0 3.01-.57 4.15-1.7a5.65 5.65 0 0 0 1.7-4.15c0-1.63-.56-3.02-1.7-4.15a5.64 5.64 0 0 0-4.15-1.7c-1.63 0-3 .56-4.14 1.7a5.65 5.65 0 0 0-1.7 4.15c0 1.63.56 3 1.7 4.15a5.64 5.64 0 0 0 4.14 1.7Z" \n />\n </svg>\n'
697
+ ]);
698
+ _templateObject29 = function _templateObject() {
699
+ return data;
700
+ };
701
+ return data;
702
+ }
703
+ function _templateObject30() {
704
+ var data = _tagged_template_literal([
705
+ "\n @keyframes fade-in {\n 0% {\n opacity: 0;\n display: none;\n }\n\n 100% {\n opacity: 1;\n display: flex;\n }\n }\n\n @keyframes fade-out {\n 0% {\n opacity: 1;\n display: flex;\n }\n\n 100% {\n opacity: 0;\n display: none;\n }\n }\n\n @keyframes expand {\n 0% {\n width: 0%;\n }\n\n 100% {\n width: 100%;\n }\n }\n\n @keyframes collapse {\n 0% {\n width: 100%;\n }\n\n 100% {\n width: 0%;\n }\n }\n\n @keyframes slide-in {\n 0% {\n transform: translateX(120px);\n }\n\n 100% {\n transform: translateX(0);\n }\n }\n\n @keyframes slide-out {\n 0% {\n transform: translateX(0);\n }\n\n 100% {\n transform: translateX(120px);\n }\n }\n"
706
+ ]);
707
+ _templateObject30 = function _templateObject() {
708
+ return data;
709
+ };
710
+ return data;
711
+ }
712
+ function _templateObject31() {
713
+ var data = _tagged_template_literal([
714
+ "\n :host {\n display: flex;\n width: 100%;\n }\n\n .container {\n align-items: center;\n display: flex;\n height: 40px;\n justify-content: space-between;\n position: relative;\n width: 100%;\n }\n\n svg {\n height: 16px;\n }\n\n button {\n align-items: center;\n color: inherit;\n cursor: pointer;\n background: transparent;\n border: none;\n display: flex;\n justify-content: center;\n padding: 12px;\n }\n"
715
+ ]);
716
+ _templateObject31 = function _templateObject() {
717
+ return data;
718
+ };
719
+ return data;
720
+ }
721
+ function _templateObject32() {
722
+ var data = _tagged_template_literal([
723
+ "\n .search-container {\n align-items: center;\n display: none;\n opacity: 0;\n position: absolute;\n width: calc(100% + 12px);\n left: -12px;\n }\n\n .search-container input {\n border: none;\n border-start-start-radius: 8px;\n border-end-start-radius: 8px;\n border-start-end-radius: 0;\n border-end-end-radius: 0;\n box-sizing: border-box;\n height: 40px;\n padding: 8px 12px 8px 16px;\n width: 0;\n }\n\n .search-container input:focus {\n outline: none;\n }\n\n .search-container .search-form {\n display: flex;\n flex: 1;\n justify-content: flex-end;\n margin-bottom: 0;\n }\n\n .search-container .search-button {\n background: white;\n border-start-end-radius: 8px;\n border-end-end-radius: 8px;\n border-start-start-radius: 0;\n border-end-start-radius: 0;\n padding: 0 12px;\n }\n\n .search-container .search-button svg {\n width: 16px;\n }\n\n .search-container .search-button svg path {\n fill: black;\n }\n\n .search-container.show {\n animation: fade-in 0.3s cubic-bezier(0.3, 0.4, 0.3, 0.8) forwards;\n display: flex;\n }\n\n .search-container.show input {\n animation: expand 0.3s cubic-bezier(0.3, 0.4, 0.3, 0.8) forwards;\n width: 100%;\n }\n\n .search-container.hide {\n animation: fade-out 0.3s cubic-bezier(0.3, 0.4, 0.3, 0.8) forwards;\n }\n\n .search-container.hide input {\n animation: collapse 0.3s cubic-bezier(0.3, 0.4, 0.3, 0.8) forwards;\n width: 0;\n }\n\n .content-container {\n align-items: center;\n display: flex;\n height: 40px;\n justify-content: space-between;\n width: 100%;\n }\n\n .content-container .content {\n text-wrap: nowrap;\n }\n\n .content-container.show {\n display: flex;\n animation: fade-in 0.3s cubic-bezier(0.3, 0.4, 0.3, 0.8) forwards;\n }\n\n .content-container.show .content {\n animation: slide-in 0.3s cubic-bezier(0.3, 0.4, 0.3, 0.8) forwards;\n }\n\n .content-container.hide {\n animation: fade-out 0.3s cubic-bezier(0.3, 0.4, 0.3, 0.8) forwards;\n }\n\n .content-container.hide .content {\n animation: slide-out 0.3s cubic-bezier(0.3, 0.4, 0.3, 0.8) forwards;\n }\n\n .search-bar {\n align-items: center;\n background: white;\n border: none;\n display: none;\n justify-content: flex-end;\n gap: 16px;\n width: 100%;\n }\n\n .search-bar.show {\n display: flex;\n }\n"
724
+ ]);
725
+ _templateObject32 = function _templateObject() {
726
+ return data;
727
+ };
728
+ return data;
729
+ }
730
+ function _templateObject33() {
731
+ var data = _tagged_template_literal([
732
+ '\n <div class="container">\n <div\n class="content-container ',
733
+ '"\n >\n <div class="content" style="',
734
+ '">\n <slot></slot>\n </div>\n <button @click="',
735
+ '">\n ',
736
+ '\n </button>\n </div>\n <div class="search-container ',
737
+ '">\n <button\n class="return-button"\n @click="',
738
+ '"\n >\n ',
739
+ '\n </button>\n <form\n class="search-form"\n @submit="',
740
+ '"\n >\n <input\n type="text"\n placeholder="Type to search"\n @keyup=',
741
+ '\n />\n <button class="search-button" type="submit">\n ',
742
+ "\n </button>\n </form>\n </div>\n </div>\n "
743
+ ]);
744
+ _templateObject33 = function _templateObject() {
745
+ return data;
746
+ };
747
+ return data;
748
+ }
749
+ function _templateObject34() {
750
+ var data = _tagged_template_literal([
751
+ "\n :host {\n height: 100%;\n display: block;\n }\n\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n\n .root-wrapper {\n height: 100%;\n box-shadow: var(--search-results-block-shadow);\n color: var(--search-results-block-color);\n background-color: var(--search-results-block-background-color);\n }\n\n .content-wrapper {\n padding: 16px 16px 16px 16px;\n background: var(--search-results-block-content-wrapper-background-color);\n min-height: 100%;\n }\n\n .content-wrapper .root-wrapper {\n height: auto;\n border-radius: var(--search-results-block-radius);\n }\n\n .root-wrapper[loading='true'] {\n overflow: hidden;\n }\n\n .alert-wrapper {\n display: flex;\n flex-direction: column;\n gap: 16px;\n align-items: center;\n justify-content: center;\n text-align: center;\n padding: 16px;\n }\n"
752
+ ]);
753
+ _templateObject34 = function _templateObject() {
754
+ return data;
755
+ };
756
+ return data;
757
+ }
758
+ function _templateObject35() {
759
+ var data = _tagged_template_literal([
760
+ "\n .pagination-btn {\n align-items: center;\n background: transparent;\n border-bottom-left-radius: var(--search-results-block-radius);\n border-bottom-right-radius: var(--search-results-block-radius);\n border-top: 1px solid rgba(66, 86, 120, 0.1);\n border-left: none;\n border-right: none;\n border-bottom: none;\n cursor: pointer;\n display: flex;\n font-size: 14px;\n font-weight: 500;\n justify-content: center;\n line-height: 24px;\n padding: 8px 16px;\n width: 100%;\n position: relative;\n top: 1px;\n }\n\n .pagination-btn:hover {\n background: var(--search-results-block-background-color-hover);\n }\n\n .pagination-btn:focus {\n outline: 2px solid var(--search-results-block-outline-color);\n background: var(--search-results-block-background-color-active);\n }\n"
761
+ ]);
762
+ _templateObject35 = function _templateObject() {
763
+ return data;
764
+ };
765
+ return data;
766
+ }
767
+ function _templateObject36() {
768
+ var data = _tagged_template_literal([
769
+ "\n .article-main-title-wrapper {\n padding: 8px 16px;\n }\n\n .article-main-title {\n font-size: 15px;\n font-style: normal;\n font-weight: 700;\n }\n\n .article-list {\n font-style: normal;\n display: flex;\n flex-direction: column;\n gap: 4px;\n list-style: none;\n }\n\n .article-list a {\n text-decoration: none;\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 8px 16px;\n color: currentColor;\n }\n\n .article-list a[loading='false']:hover {\n background-color: var(--search-results-block-background-color-hover);\n }\n\n .article-list a[loading='false']:focus {\n outline: 2px solid var(--search-results-block-outline-color);\n background: var(--search-results-block-background-color-active);\n }\n\n .article-title-wrapper {\n font-size: 14px;\n font-weight: bold;\n line-height: 160%;\n display: flex;\n gap: 8px;\n align-items: center;\n justify-content: space-between;\n }\n\n .article-title-wrapper p {\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .article-title-wrapper svg {\n min-width: 12px;\n min-height: 12px;\n width: 12px;\n height: 12px;\n }\n\n .article-title-wrapper.loading {\n width: 70%;\n }\n\n .article-description {\n font-size: 13px;\n font-weight: normal;\n line-height: 160%;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .article-description.loading {\n height: 50px;\n }\n"
770
+ ]);
771
+ _templateObject36 = function _templateObject() {
772
+ return data;
773
+ };
774
+ return data;
775
+ }
776
+ function _templateObject37() {
777
+ var data = _tagged_template_literal([
778
+ "\n @keyframes animatedBackgroundPosition {\n 0% {\n background-position: 0% 92%;\n }\n 100% {\n background-position: 100% 9%;\n }\n }\n\n .loading {\n opacity: 0.5;\n background: linear-gradient(\n 135deg,\n rgba(211, 223, 232, 0.5) 30%,\n rgba(169, 184, 197, 0.5) 38%,\n rgba(168, 182, 193, 0.6) 41%,\n rgba(168, 182, 193, 0.6) 50%,\n rgba(168, 182, 193, 0.6) 50%,\n rgba(169, 184, 197, 0.6) 51%,\n rgba(211, 223, 232, 0.6) 57%,\n rgba(211, 223, 232, 0.6) 80%,\n rgba(211, 223, 232, 0.6) 80%\n );\n background-size: 1200% 1200%;\n animation: animatedBackgroundPosition 3s ease infinite reverse;\n color: transparent;\n }\n"
779
+ ]);
780
+ _templateObject37 = function _templateObject() {
781
+ return data;
782
+ };
783
+ return data;
784
+ }
785
+ function _templateObject38() {
786
+ var data = _tagged_template_literal([
787
+ '\n <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g id="Icon">\n <path id="Vector" d="M11.4752 14.475L7.8502 10.85C7.8002 10.8 7.7627 10.7458 7.7377 10.6875C7.7127 10.6292 7.7002 10.5667 7.7002 10.5C7.7002 10.3667 7.74603 10.25 7.8377 10.15C7.92936 10.05 8.0502 10 8.2002 10H15.8002C15.9502 10 16.071 10.05 16.1627 10.15C16.2544 10.25 16.3002 10.3667 16.3002 10.5C16.3002 10.5333 16.2502 10.65 16.1502 10.85L12.5252 14.475C12.4419 14.5583 12.3585 14.6167 12.2752 14.65C12.1919 14.6833 12.1002 14.7 12.0002 14.7C11.9002 14.7 11.8085 14.6833 11.7252 14.65C11.6419 14.6167 11.5585 14.5583 11.4752 14.475Z" fill="currentColor"/>\n </g>\n </svg>\n'
788
+ ]);
789
+ _templateObject38 = function _templateObject() {
790
+ return data;
791
+ };
792
+ return data;
793
+ }
794
+ function _templateObject39() {
795
+ var data = _tagged_template_literal([
796
+ '\n <svg\n xmlns="http://www.w3.org/2000/svg"\n width="12px"\n height="12px"\n viewBox="0 0 24 24"\n fill="none"\n aria-hidden\n >\n <path\n d="M3.44444 23C2.77222 23 2.19676 22.7606 1.71806 22.2819C1.23935 21.8032 1 21.2278 1 20.5556V3.44444C1 2.77222 1.23935 2.19676 1.71806 1.71806C2.19676 1.23935 2.77222 1 3.44444 1H10.7778C11.1241 1 11.4144 1.11713 11.6486 1.35139C11.8829 1.58565 12 1.87593 12 2.22222C12 2.56852 11.8829 2.8588 11.6486 3.09306C11.4144 3.32731 11.1241 3.44444 10.7778 3.44444H3.44444V20.5556H20.5556V13.2222C20.5556 12.8759 20.6727 12.5856 20.9069 12.3514C21.1412 12.1171 21.4315 12 21.7778 12C22.1241 12 22.4144 12.1171 22.6486 12.3514C22.8829 12.5856 23 12.8759 23 13.2222V20.5556C23 21.2278 22.7606 21.8032 22.2819 22.2819C21.8032 22.7606 21.2278 23 20.5556 23H3.44444ZM20.5556 5.15556L10.0444 15.6667C9.82037 15.8907 9.53518 16.0028 9.18889 16.0028C8.84259 16.0028 8.55741 15.8907 8.33333 15.6667C8.10926 15.4426 7.99722 15.1574 7.99722 14.8111C7.99722 14.4648 8.10926 14.1796 8.33333 13.9556L18.8444 3.44444H15.6667C15.3204 3.44444 15.0301 3.32731 14.7958 3.09306C14.5616 2.8588 14.4444 2.56852 14.4444 2.22222C14.4444 1.87593 14.5616 1.58565 14.7958 1.35139C15.0301 1.11713 15.3204 1 15.6667 1H21.7778C22.1241 1 22.4144 1.11713 22.6486 1.35139C22.8829 1.58565 23 1.87593 23 2.22222V8.33333C23 8.67963 22.8829 8.96991 22.6486 9.20417C22.4144 9.43843 22.1241 9.55556 21.7778 9.55556C21.4315 9.55556 21.1412 9.43843 20.9069 9.20417C20.6727 8.96991 20.5556 8.67963 20.5556 8.33333V5.15556Z"\n fill="currentColor"\n />\n </svg>\n'
797
+ ]);
798
+ _templateObject39 = function _templateObject() {
799
+ return data;
800
+ };
801
+ return data;
802
+ }
803
+ function _templateObject40() {
804
+ var data = _tagged_template_literal([
805
+ '\n <div class="root-wrapper alert-wrapper">\n <p>No results for \'',
806
+ "'</p>\n </div>\n "
807
+ ]);
808
+ _templateObject40 = function _templateObject() {
809
+ return data;
810
+ };
811
+ return data;
812
+ }
813
+ function _templateObject41() {
814
+ var data = _tagged_template_literal([
815
+ '\n <div class="root-wrapper alert-wrapper">\n <p>We could not load the results</p>\n <p>Try again later</p>\n </div>\n '
816
+ ]);
817
+ _templateObject41 = function _templateObject() {
818
+ return data;
819
+ };
820
+ return data;
821
+ }
822
+ function _templateObject42() {
823
+ var data = _tagged_template_literal([
824
+ "\n <li @click=",
825
+ '>\n <a\n href="',
826
+ '"\n target="_blank"\n rel="noopener noreferrer"\n loading="',
827
+ '"\n >\n <div class="article-title-wrapper ',
828
+ '">\n <p>',
829
+ "</p>\n ",
830
+ '\n </div>\n <p class="article-description ',
831
+ '">\n ',
832
+ "\n </p>\n </a>\n </li>\n "
833
+ ]);
834
+ _templateObject42 = function _templateObject() {
835
+ return data;
836
+ };
837
+ return data;
838
+ }
839
+ function _templateObject43() {
840
+ var data = _tagged_template_literal([
841
+ '\n <button\n class="pagination-btn"\n @click=',
842
+ "\n >\n See more ",
843
+ " results ",
844
+ "\n </button>\n "
845
+ ]);
846
+ _templateObject43 = function _templateObject() {
847
+ return data;
848
+ };
849
+ return data;
850
+ }
851
+ function _templateObject44() {
852
+ var data = _tagged_template_literal([
853
+ ""
854
+ ]);
855
+ _templateObject44 = function _templateObject() {
856
+ return data;
857
+ };
858
+ return data;
859
+ }
860
+ function _templateObject45() {
861
+ var data = _tagged_template_literal([
862
+ '\n <div class="content-wrapper">\n <div class="root-wrapper" loading="',
863
+ '">\n <ul class="article-list">\n ',
864
+ "\n </ul>\n\n ",
865
+ "\n </div>\n </div>\n "
866
+ ]);
867
+ _templateObject45 = function _templateObject() {
868
+ return data;
869
+ };
870
+ return data;
871
+ }
872
+ (function() {
873
+ var ve = function ve(r, t) {
874
+ if (!Array.isArray(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
875
+ return void 0 !== ne ? ne.createHTML(t) : t;
876
+ };
877
+ var d = function d(r) {
878
+ return function(t, e) {
879
+ return void 0 !== e ? Ri(r, t, e) : Oi(r, t);
880
+ };
881
+ };
882
+ var S = function S(r) {
883
+ return d(_object_spread_props(_object_spread({}, r), {
884
+ state: true
885
+ }));
886
+ };
887
+ var wi = Object.create;
888
+ var $t = Object.defineProperty;
889
+ var Qt = Object.getOwnPropertyDescriptor;
890
+ var $i = Object.getOwnPropertyNames;
891
+ var Si = Object.getPrototypeOf;
892
+ var Ei = Object.prototype.hasOwnProperty;
893
+ var _i = function(r, t) {
894
+ return function() {
895
+ return t || r((t = {
896
+ exports: {}
897
+ }).exports, t), t.exports;
898
+ };
899
+ };
900
+ var xi = function(r, t, e, i) {
901
+ if (t && (typeof t === "undefined" ? "undefined" : _type_of(t)) === "object" || typeof t === "function") {
902
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
903
+ try {
904
+ var _loop = function() {
905
+ var s = _step.value;
906
+ if (!Ei.call(r, s) && s !== e) $t(r, s, {
907
+ get: function() {
908
+ return t[s];
909
+ },
910
+ enumerable: !(i = Qt(t, s)) || i.enumerable
911
+ });
912
+ };
913
+ for(var _iterator = $i(t)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
914
+ } catch (err) {
915
+ _didIteratorError = true;
916
+ _iteratorError = err;
917
+ } finally{
918
+ try {
919
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
920
+ _iterator.return();
921
+ }
922
+ } finally{
923
+ if (_didIteratorError) {
924
+ throw _iteratorError;
925
+ }
926
+ }
927
+ }
928
+ }
929
+ return r;
930
+ };
931
+ var Ci = function(r, t, e) {
932
+ return e = r != null ? wi(Si(r)) : {}, xi(t || !r || !r.__esModule ? $t(e, "default", {
933
+ value: r,
934
+ enumerable: true
935
+ }) : e, r);
936
+ };
937
+ var h = function(r, t, e, i) {
938
+ var s = i > 1 ? void 0 : i ? Qt(t, e) : t;
939
+ for(var o = r.length - 1, n; o >= 0; o--)if (n = r[o]) s = (i ? n(t, e, s) : n(s)) || s;
940
+ if (i && s) $t(t, e, s);
941
+ return s;
942
+ };
943
+ var si = _i(function(xo, ri) {
944
+ var hr = function hr(r, t, e) {
945
+ var i, s, o, n, l, a, c = 0, f = false, u = false, v = true;
946
+ if (typeof r != "function") {
947
+ throw new TypeError(Zi);
948
+ }
949
+ t = ii(t) || 0;
950
+ if (Yt(e)) {
951
+ f = !!e.leading;
952
+ u = "maxWait" in e;
953
+ o = u ? lr(ii(e.maxWait) || 0, t) : o;
954
+ v = "trailing" in e ? !!e.trailing : v;
955
+ }
956
+ function w(b) {
957
+ var T = i, J = s;
958
+ i = s = void 0;
959
+ c = b;
960
+ n = r.apply(J, T);
961
+ return n;
962
+ }
963
+ function bt(b) {
964
+ c = b;
965
+ l = setTimeout(it, t);
966
+ return f ? w(b) : n;
967
+ }
968
+ function D(b) {
969
+ var T = b - a, J = b - c, Xt = t - T;
970
+ return u ? cr(Xt, o - J) : Xt;
971
+ }
972
+ function Zt(b) {
973
+ var T = b - a, J = b - c;
974
+ return a === void 0 || T >= t || T < 0 || u && J >= o;
975
+ }
976
+ function it() {
977
+ var b = Jt();
978
+ if (Zt(b)) {
979
+ return Gt(b);
980
+ }
981
+ l = setTimeout(it, D(b));
982
+ }
983
+ function Gt(b) {
984
+ l = void 0;
985
+ if (v && i) {
986
+ return w(b);
987
+ }
988
+ i = s = void 0;
989
+ return n;
990
+ }
991
+ function yi() {
992
+ if (l !== void 0) {
993
+ clearTimeout(l);
994
+ }
995
+ c = 0;
996
+ i = a = s = l = void 0;
997
+ }
998
+ function bi() {
999
+ return l === void 0 ? n : Gt(Jt());
1000
+ }
1001
+ function wt() {
1002
+ var b = Jt(), T = Zt(b);
1003
+ i = arguments;
1004
+ s = this;
1005
+ a = b;
1006
+ if (T) {
1007
+ if (l === void 0) {
1008
+ return bt(a);
1009
+ }
1010
+ if (u) {
1011
+ l = setTimeout(it, t);
1012
+ return w(a);
1013
+ }
1014
+ }
1015
+ if (l === void 0) {
1016
+ l = setTimeout(it, t);
1017
+ }
1018
+ return n;
1019
+ }
1020
+ wt.cancel = yi;
1021
+ wt.flush = bi;
1022
+ return wt;
1023
+ };
1024
+ var Yt = function Yt(r) {
1025
+ var t = typeof r === "undefined" ? "undefined" : _type_of(r);
1026
+ return !!r && (t == "object" || t == "function");
1027
+ };
1028
+ var dr = function dr(r) {
1029
+ return !!r && (typeof r === "undefined" ? "undefined" : _type_of(r)) == "object";
1030
+ };
1031
+ var pr = function pr(r) {
1032
+ return (typeof r === "undefined" ? "undefined" : _type_of(r)) == "symbol" || dr(r) && ar.call(r) == Gi;
1033
+ };
1034
+ var ii = function ii(r) {
1035
+ if (typeof r == "number") {
1036
+ return r;
1037
+ }
1038
+ if (pr(r)) {
1039
+ return ei;
1040
+ }
1041
+ if (Yt(r)) {
1042
+ var t = typeof r.valueOf == "function" ? r.valueOf() : r;
1043
+ r = Yt(t) ? t + "" : t;
1044
+ }
1045
+ if (typeof r != "string") {
1046
+ return r === 0 ? r : +r;
1047
+ }
1048
+ r = r.replace(Xi, "");
1049
+ var e = tr.test(r);
1050
+ return e || er.test(r) ? ir(r.slice(2), e ? 2 : 8) : Qi.test(r) ? ei : +r;
1051
+ };
1052
+ var Zi = "Expected a function";
1053
+ var ei = 0 / 0;
1054
+ var Gi = "[object Symbol]";
1055
+ var Xi = /^\s+|\s+$/g;
1056
+ var Qi = /^[-+]0x[0-9a-f]+$/i;
1057
+ var tr = /^0b[01]+$/i;
1058
+ var er = /^0o[0-7]+$/i;
1059
+ var ir = parseInt;
1060
+ var rr = (typeof global === "undefined" ? "undefined" : _type_of(global)) == "object" && global && global.Object === Object && global;
1061
+ var sr = (typeof self === "undefined" ? "undefined" : _type_of(self)) == "object" && self && self.Object === Object && self;
1062
+ var or = rr || sr || Function("return this")();
1063
+ var nr = Object.prototype;
1064
+ var ar = nr.toString;
1065
+ var lr = Math.max;
1066
+ var cr = Math.min;
1067
+ var Jt = function Jt() {
1068
+ return or.Date.now();
1069
+ };
1070
+ ri.exports = hr;
1071
+ });
1072
+ var rt = window;
1073
+ var ot = rt.ShadowRoot && (void 0 === rt.ShadyCSS || rt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
1074
+ var ee = Symbol();
1075
+ var te = new WeakMap;
1076
+ var st = /*#__PURE__*/ function() {
1077
+ function st(t, e, i) {
1078
+ _class_call_check(this, st);
1079
+ if (this._$cssResult$ = true, i !== ee) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
1080
+ this.cssText = t, this.t = e;
1081
+ }
1082
+ _create_class(st, [
1083
+ {
1084
+ key: "styleSheet",
1085
+ get: function get() {
1086
+ var t = this.o;
1087
+ var e = this.t;
1088
+ if (ot && void 0 === t) {
1089
+ var i = void 0 !== e && 1 === e.length;
1090
+ i && (t = te.get(e)), void 0 === t && ((this.o = t = new CSSStyleSheet).replaceSync(this.cssText), i && te.set(e, t));
1091
+ }
1092
+ return t;
1093
+ }
1094
+ },
1095
+ {
1096
+ key: "toString",
1097
+ value: function toString() {
1098
+ return this.cssText;
1099
+ }
1100
+ }
1101
+ ]);
1102
+ return st;
1103
+ }();
1104
+ var ie = function(r) {
1105
+ return new st("string" == typeof r ? r : r + "", void 0, ee);
1106
+ };
1107
+ var St = function(r, t) {
1108
+ ot ? r.adoptedStyleSheets = t.map(function(e) {
1109
+ return _instanceof(e, CSSStyleSheet) ? e : e.styleSheet;
1110
+ }) : t.forEach(function(e) {
1111
+ var i = document.createElement("style"), s = rt.litNonce;
1112
+ void 0 !== s && i.setAttribute("nonce", s), i.textContent = e.cssText, r.appendChild(i);
1113
+ });
1114
+ };
1115
+ var nt = ot ? function(r) {
1116
+ return r;
1117
+ } : function(r) {
1118
+ return _instanceof(r, CSSStyleSheet) ? function(t) {
1119
+ var e = "";
1120
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1121
+ try {
1122
+ for(var _iterator = t.cssRules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1123
+ var i = _step.value;
1124
+ e += i.cssText;
1125
+ }
1126
+ } catch (err) {
1127
+ _didIteratorError = true;
1128
+ _iteratorError = err;
1129
+ } finally{
1130
+ try {
1131
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
1132
+ _iterator.return();
1133
+ }
1134
+ } finally{
1135
+ if (_didIteratorError) {
1136
+ throw _iteratorError;
1137
+ }
1138
+ }
1139
+ }
1140
+ return ie(e);
1141
+ }(r) : r;
1142
+ };
1143
+ var Et;
1144
+ var at = window;
1145
+ var re = at.trustedTypes;
1146
+ var ki = re ? re.emptyScript : "";
1147
+ var se = at.reactiveElementPolyfillSupport;
1148
+ var xt = {
1149
+ toAttribute: function toAttribute(r, t) {
1150
+ switch(t){
1151
+ case Boolean:
1152
+ r = r ? ki : null;
1153
+ break;
1154
+ case Object:
1155
+ case Array:
1156
+ r = null == r ? r : JSON.stringify(r);
1157
+ }
1158
+ return r;
1159
+ },
1160
+ fromAttribute: function fromAttribute(r, t) {
1161
+ var e = r;
1162
+ switch(t){
1163
+ case Boolean:
1164
+ e = null !== r;
1165
+ break;
1166
+ case Number:
1167
+ e = null === r ? null : Number(r);
1168
+ break;
1169
+ case Object:
1170
+ case Array:
1171
+ try {
1172
+ e = JSON.parse(r);
1173
+ } catch (i) {
1174
+ e = null;
1175
+ }
1176
+ }
1177
+ return e;
1178
+ }
1179
+ };
1180
+ var oe = function(r, t) {
1181
+ return t !== r && (t == t || r == r);
1182
+ };
1183
+ var _t = {
1184
+ attribute: true,
1185
+ type: String,
1186
+ converter: xt,
1187
+ reflect: false,
1188
+ hasChanged: oe
1189
+ };
1190
+ var Ct = "finalized";
1191
+ var O = /*#__PURE__*/ function(HTMLElement1) {
1192
+ _inherits(O, HTMLElement1);
1193
+ var _super = _create_super(O);
1194
+ function O() {
1195
+ _class_call_check(this, O);
1196
+ var _this;
1197
+ _this = _super.call(this), _this._$Ei = new Map, _this.isUpdatePending = false, _this.hasUpdated = false, _this._$El = null, _this._$Eu();
1198
+ return _possible_constructor_return(_this);
1199
+ }
1200
+ _create_class(O, [
1201
+ {
1202
+ key: "_$Eu",
1203
+ value: function _$Eu() {
1204
+ var _this = this;
1205
+ var t;
1206
+ this._$E_ = new Promise(function(e) {
1207
+ return _this.enableUpdating = e;
1208
+ }), this._$AL = new Map, this._$Eg(), this.requestUpdate(), null === (t = this.constructor.h) || void 0 === t || t.forEach(function(e) {
1209
+ return e(_this);
1210
+ });
1211
+ }
1212
+ },
1213
+ {
1214
+ key: "addController",
1215
+ value: function addController(t) {
1216
+ var e, i;
1217
+ (null !== (e = this._$ES) && void 0 !== e ? e : this._$ES = []).push(t), void 0 !== this.renderRoot && this.isConnected && (null === (i = t.hostConnected) || void 0 === i || i.call(t));
1218
+ }
1219
+ },
1220
+ {
1221
+ key: "removeController",
1222
+ value: function removeController(t) {
1223
+ var e;
1224
+ null === (e = this._$ES) || void 0 === e || e.splice(this._$ES.indexOf(t) >>> 0, 1);
1225
+ }
1226
+ },
1227
+ {
1228
+ key: "_$Eg",
1229
+ value: function _$Eg() {
1230
+ var _this = this;
1231
+ this.constructor.elementProperties.forEach(function(t, e) {
1232
+ _this.hasOwnProperty(e) && (_this._$Ei.set(e, _this[e]), delete _this[e]);
1233
+ });
1234
+ }
1235
+ },
1236
+ {
1237
+ key: "createRenderRoot",
1238
+ value: function createRenderRoot() {
1239
+ var t;
1240
+ var e = null !== (t = this.shadowRoot) && void 0 !== t ? t : this.attachShadow(this.constructor.shadowRootOptions);
1241
+ return St(e, this.constructor.elementStyles), e;
1242
+ }
1243
+ },
1244
+ {
1245
+ key: "connectedCallback",
1246
+ value: function connectedCallback() {
1247
+ var t;
1248
+ void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), null === (t = this._$ES) || void 0 === t || t.forEach(function(e) {
1249
+ var i;
1250
+ return null === (i = e.hostConnected) || void 0 === i ? void 0 : i.call(e);
1251
+ });
1252
+ }
1253
+ },
1254
+ {
1255
+ key: "enableUpdating",
1256
+ value: function enableUpdating(t) {}
1257
+ },
1258
+ {
1259
+ key: "disconnectedCallback",
1260
+ value: function disconnectedCallback() {
1261
+ var t;
1262
+ null === (t = this._$ES) || void 0 === t || t.forEach(function(e) {
1263
+ var i;
1264
+ return null === (i = e.hostDisconnected) || void 0 === i ? void 0 : i.call(e);
1265
+ });
1266
+ }
1267
+ },
1268
+ {
1269
+ key: "attributeChangedCallback",
1270
+ value: function attributeChangedCallback(t, e, i) {
1271
+ this._$AK(t, i);
1272
+ }
1273
+ },
1274
+ {
1275
+ key: "_$EO",
1276
+ value: function _$EO(t, e) {
1277
+ var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _t;
1278
+ var s;
1279
+ var o = this.constructor._$Ep(t, i);
1280
+ if (void 0 !== o && true === i.reflect) {
1281
+ var n = (void 0 !== (null === (s = i.converter) || void 0 === s ? void 0 : s.toAttribute) ? i.converter : xt).toAttribute(e, i.type);
1282
+ this._$El = t, null == n ? this.removeAttribute(o) : this.setAttribute(o, n), this._$El = null;
1283
+ }
1284
+ }
1285
+ },
1286
+ {
1287
+ key: "_$AK",
1288
+ value: function _$AK(t, e) {
1289
+ var i;
1290
+ var s = this.constructor, o = s._$Ev.get(t);
1291
+ if (void 0 !== o && this._$El !== o) {
1292
+ var n = s.getPropertyOptions(o), l = "function" == typeof n.converter ? {
1293
+ fromAttribute: n.converter
1294
+ } : void 0 !== (null === (i = n.converter) || void 0 === i ? void 0 : i.fromAttribute) ? n.converter : xt;
1295
+ this._$El = o, this[o] = l.fromAttribute(e, n.type), this._$El = null;
1296
+ }
1297
+ }
1298
+ },
1299
+ {
1300
+ key: "requestUpdate",
1301
+ value: function requestUpdate(t, e, i) {
1302
+ var s = true;
1303
+ void 0 !== t && (((i = i || this.constructor.getPropertyOptions(t)).hasChanged || oe)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), true === i.reflect && this._$El !== t && (void 0 === this._$EC && (this._$EC = new Map), this._$EC.set(t, i))) : s = false), !this.isUpdatePending && s && (this._$E_ = this._$Ej());
1304
+ }
1305
+ },
1306
+ {
1307
+ key: "_$Ej",
1308
+ value: function _$Ej() {
1309
+ var _this = this;
1310
+ return _async_to_generator(function() {
1311
+ var e, t, _tmp;
1312
+ return _ts_generator(this, function(_state) {
1313
+ switch(_state.label){
1314
+ case 0:
1315
+ _this.isUpdatePending = true;
1316
+ _state.label = 1;
1317
+ case 1:
1318
+ _state.trys.push([
1319
+ 1,
1320
+ 3,
1321
+ ,
1322
+ 4
1323
+ ]);
1324
+ return [
1325
+ 4,
1326
+ _this._$E_
1327
+ ];
1328
+ case 2:
1329
+ _state.sent();
1330
+ return [
1331
+ 3,
1332
+ 4
1333
+ ];
1334
+ case 3:
1335
+ e = _state.sent();
1336
+ Promise.reject(e);
1337
+ return [
1338
+ 3,
1339
+ 4
1340
+ ];
1341
+ case 4:
1342
+ t = _this.scheduleUpdate();
1343
+ _tmp = null != t;
1344
+ if (!_tmp) return [
1345
+ 3,
1346
+ 6
1347
+ ];
1348
+ return [
1349
+ 4,
1350
+ t
1351
+ ];
1352
+ case 5:
1353
+ _tmp = _state.sent();
1354
+ _state.label = 6;
1355
+ case 6:
1356
+ return [
1357
+ 2,
1358
+ (_tmp, !_this.isUpdatePending)
1359
+ ];
1360
+ }
1361
+ });
1362
+ })();
1363
+ }
1364
+ },
1365
+ {
1366
+ key: "scheduleUpdate",
1367
+ value: function scheduleUpdate() {
1368
+ return this.performUpdate();
1369
+ }
1370
+ },
1371
+ {
1372
+ key: "performUpdate",
1373
+ value: function performUpdate() {
1374
+ var _this = this;
1375
+ var t;
1376
+ if (!this.isUpdatePending) return;
1377
+ this.hasUpdated, this._$Ei && (this._$Ei.forEach(function(s, o) {
1378
+ return _this[o] = s;
1379
+ }), this._$Ei = void 0);
1380
+ var e = false;
1381
+ var i = this._$AL;
1382
+ try {
1383
+ e = this.shouldUpdate(i), e ? (this.willUpdate(i), null === (t = this._$ES) || void 0 === t || t.forEach(function(s) {
1384
+ var o;
1385
+ return null === (o = s.hostUpdate) || void 0 === o ? void 0 : o.call(s);
1386
+ }), this.update(i)) : this._$Ek();
1387
+ } catch (s) {
1388
+ throw e = false, this._$Ek(), s;
1389
+ }
1390
+ e && this._$AE(i);
1391
+ }
1392
+ },
1393
+ {
1394
+ key: "willUpdate",
1395
+ value: function willUpdate(t) {}
1396
+ },
1397
+ {
1398
+ key: "_$AE",
1399
+ value: function _$AE(t) {
1400
+ var e;
1401
+ null === (e = this._$ES) || void 0 === e || e.forEach(function(i) {
1402
+ var s;
1403
+ return null === (s = i.hostUpdated) || void 0 === s ? void 0 : s.call(i);
1404
+ }), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
1405
+ }
1406
+ },
1407
+ {
1408
+ key: "_$Ek",
1409
+ value: function _$Ek() {
1410
+ this._$AL = new Map, this.isUpdatePending = false;
1411
+ }
1412
+ },
1413
+ {
1414
+ key: "updateComplete",
1415
+ get: function get() {
1416
+ return this.getUpdateComplete();
1417
+ }
1418
+ },
1419
+ {
1420
+ key: "getUpdateComplete",
1421
+ value: function getUpdateComplete() {
1422
+ return this._$E_;
1423
+ }
1424
+ },
1425
+ {
1426
+ key: "shouldUpdate",
1427
+ value: function shouldUpdate(t) {
1428
+ return true;
1429
+ }
1430
+ },
1431
+ {
1432
+ key: "update",
1433
+ value: function update(t) {
1434
+ var _this = this;
1435
+ void 0 !== this._$EC && (this._$EC.forEach(function(e, i) {
1436
+ return _this._$EO(i, _this[i], e);
1437
+ }), this._$EC = void 0), this._$Ek();
1438
+ }
1439
+ },
1440
+ {
1441
+ key: "updated",
1442
+ value: function updated(t) {}
1443
+ },
1444
+ {
1445
+ key: "firstUpdated",
1446
+ value: function firstUpdated(t) {}
1447
+ }
1448
+ ], [
1449
+ {
1450
+ key: "addInitializer",
1451
+ value: function addInitializer(t) {
1452
+ var e;
1453
+ this.finalize(), (null !== (e = this.h) && void 0 !== e ? e : this.h = []).push(t);
1454
+ }
1455
+ },
1456
+ {
1457
+ key: "observedAttributes",
1458
+ get: function get() {
1459
+ var _this = this;
1460
+ this.finalize();
1461
+ var t = [];
1462
+ return this.elementProperties.forEach(function(e, i) {
1463
+ var s = _this._$Ep(i, e);
1464
+ void 0 !== s && (_this._$Ev.set(s, i), t.push(s));
1465
+ }), t;
1466
+ }
1467
+ },
1468
+ {
1469
+ key: "createProperty",
1470
+ value: function createProperty(t) {
1471
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _t;
1472
+ if (e.state && (e.attribute = false), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
1473
+ var i = "symbol" == (typeof t === "undefined" ? "undefined" : _type_of(t)) ? Symbol() : "__" + t, s = this.getPropertyDescriptor(t, i, e);
1474
+ void 0 !== s && Object.defineProperty(this.prototype, t, s);
1475
+ }
1476
+ }
1477
+ },
1478
+ {
1479
+ key: "getPropertyDescriptor",
1480
+ value: function getPropertyDescriptor(t, e, i) {
1481
+ return {
1482
+ get: function get() {
1483
+ return this[e];
1484
+ },
1485
+ set: function set(s) {
1486
+ var o = this[t];
1487
+ this[e] = s, this.requestUpdate(t, o, i);
1488
+ },
1489
+ configurable: true,
1490
+ enumerable: true
1491
+ };
1492
+ }
1493
+ },
1494
+ {
1495
+ key: "getPropertyOptions",
1496
+ value: function getPropertyOptions(t) {
1497
+ return this.elementProperties.get(t) || _t;
1498
+ }
1499
+ },
1500
+ {
1501
+ key: "finalize",
1502
+ value: function finalize() {
1503
+ if (this.hasOwnProperty(Ct)) return false;
1504
+ this[Ct] = true;
1505
+ var t = Object.getPrototypeOf(this);
1506
+ if (t.finalize(), void 0 !== t.h && (this.h = _to_consumable_array(t.h)), this.elementProperties = new Map(t.elementProperties), this._$Ev = new Map, this.hasOwnProperty("properties")) {
1507
+ var e = this.properties, i = _to_consumable_array(Object.getOwnPropertyNames(e)).concat(_to_consumable_array(Object.getOwnPropertySymbols(e)));
1508
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1509
+ try {
1510
+ for(var _iterator = i[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1511
+ var s = _step.value;
1512
+ this.createProperty(s, e[s]);
1513
+ }
1514
+ } catch (err) {
1515
+ _didIteratorError = true;
1516
+ _iteratorError = err;
1517
+ } finally{
1518
+ try {
1519
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
1520
+ _iterator.return();
1521
+ }
1522
+ } finally{
1523
+ if (_didIteratorError) {
1524
+ throw _iteratorError;
1525
+ }
1526
+ }
1527
+ }
1528
+ }
1529
+ return this.elementStyles = this.finalizeStyles(this.styles), true;
1530
+ }
1531
+ },
1532
+ {
1533
+ key: "finalizeStyles",
1534
+ value: function finalizeStyles(t) {
1535
+ var e = [];
1536
+ if (Array.isArray(t)) {
1537
+ var i = new Set(t.flat(1 / 0).reverse());
1538
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1539
+ try {
1540
+ for(var _iterator = i[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1541
+ var s = _step.value;
1542
+ e.unshift(nt(s));
1543
+ }
1544
+ } catch (err) {
1545
+ _didIteratorError = true;
1546
+ _iteratorError = err;
1547
+ } finally{
1548
+ try {
1549
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
1550
+ _iterator.return();
1551
+ }
1552
+ } finally{
1553
+ if (_didIteratorError) {
1554
+ throw _iteratorError;
1555
+ }
1556
+ }
1557
+ }
1558
+ } else void 0 !== t && e.push(nt(t));
1559
+ return e;
1560
+ }
1561
+ },
1562
+ {
1563
+ key: "_$Ep",
1564
+ value: function _$Ep(t, e) {
1565
+ var i = e.attribute;
1566
+ return false === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
1567
+ }
1568
+ }
1569
+ ]);
1570
+ return O;
1571
+ }(_wrap_native_super(HTMLElement));
1572
+ O[Ct] = true, O.elementProperties = new Map, O.elementStyles = [], O.shadowRootOptions = {
1573
+ mode: "open"
1574
+ }, null == se || se({
1575
+ ReactiveElement: O
1576
+ }), (null !== (Et = at.reactiveElementVersions) && void 0 !== Et ? Et : at.reactiveElementVersions = []).push("1.6.3");
1577
+ var kt;
1578
+ var lt = window;
1579
+ var B = lt.trustedTypes;
1580
+ var ne = B ? B.createPolicy("lit-html", {
1581
+ createHTML: function(r) {
1582
+ return r;
1583
+ }
1584
+ }) : void 0;
1585
+ var Pt = "$lit$";
1586
+ var U = "lit$".concat((Math.random() + "").slice(9), "$");
1587
+ var ue = "?" + U;
1588
+ var Ai = "<".concat(ue, ">");
1589
+ var N = document;
1590
+ var W = function() {
1591
+ return N.createComment("");
1592
+ };
1593
+ var Z = function(r) {
1594
+ return null === r || "object" != (typeof r === "undefined" ? "undefined" : _type_of(r)) && "function" != typeof r;
1595
+ };
1596
+ var me = Array.isArray;
1597
+ var Pi = function(r) {
1598
+ return me(r) || "function" == typeof (null == r ? void 0 : r[Symbol.iterator]);
1599
+ };
1600
+ var At = "[ \n\f\r]";
1601
+ var Y = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
1602
+ var ae = /-->/g;
1603
+ var le = />/g;
1604
+ var R = RegExp(">|".concat(At, "(?:([^\\s\"'>=/]+)(").concat(At, "*=").concat(At, "*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)"), "g");
1605
+ var ce = /'/g;
1606
+ var he = /"/g;
1607
+ var fe = /^(?:script|style|textarea|title)$/i;
1608
+ var ge = function(r) {
1609
+ return function(t) {
1610
+ for(var _len = arguments.length, e = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
1611
+ e[_key - 1] = arguments[_key];
1612
+ }
1613
+ return {
1614
+ _$litType$: r,
1615
+ strings: t,
1616
+ values: e
1617
+ };
1618
+ };
1619
+ };
1620
+ var p = ge(1);
1621
+ var E = ge(2);
1622
+ var x = Symbol.for("lit-noChange");
1623
+ var g = Symbol.for("lit-nothing");
1624
+ var de = new WeakMap;
1625
+ var L = N.createTreeWalker(N, 129, null, false);
1626
+ var Ti = function(r, t) {
1627
+ var e = r.length - 1, i = [];
1628
+ var s, o = 2 === t ? "<svg>" : "", n = Y;
1629
+ for(var l = 0; l < e; l++){
1630
+ var a = r[l];
1631
+ var c = void 0, f = void 0, u = -1, v = 0;
1632
+ for(; v < a.length && (n.lastIndex = v, f = n.exec(a), null !== f);)v = n.lastIndex, n === Y ? "!--" === f[1] ? n = ae : void 0 !== f[1] ? n = le : void 0 !== f[2] ? (fe.test(f[2]) && (s = RegExp("</" + f[2], "g")), n = R) : void 0 !== f[3] && (n = R) : n === R ? ">" === f[0] ? (n = null != s ? s : Y, u = -1) : void 0 === f[1] ? u = -2 : (u = n.lastIndex - f[2].length, c = f[1], n = void 0 === f[3] ? R : '"' === f[3] ? he : ce) : n === he || n === ce ? n = R : n === ae || n === le ? n = Y : (n = R, s = void 0);
1633
+ var w = n === R && r[l + 1].startsWith("/>") ? " " : "";
1634
+ o += n === Y ? a + Ai : u >= 0 ? (i.push(c), a.slice(0, u) + Pt + a.slice(u) + U + w) : a + U + (-2 === u ? (i.push(void 0), l) : w);
1635
+ }
1636
+ return [
1637
+ ve(r, o + (r[e] || "<?>") + (2 === t ? "</svg>" : "")),
1638
+ i
1639
+ ];
1640
+ };
1641
+ var M = /*#__PURE__*/ function() {
1642
+ function M1(param, i) {
1643
+ var t = param.strings, e = param._$litType$;
1644
+ _class_call_check(this, M1);
1645
+ var s;
1646
+ this.parts = [];
1647
+ var o = 0, n = 0;
1648
+ var l = t.length - 1, a = this.parts, _Ti = _sliced_to_array(Ti(t, e), 2), c = _Ti[0], f = _Ti[1];
1649
+ if (this.el = M.createElement(c, i), L.currentNode = this.el.content, 2 === e) {
1650
+ var _u;
1651
+ var u = this.el.content, v = u.firstChild;
1652
+ v.remove(), (_u = u).append.apply(_u, _to_consumable_array(v.childNodes));
1653
+ }
1654
+ for(; null !== (s = L.nextNode()) && a.length < l;){
1655
+ if (1 === s.nodeType) {
1656
+ if (s.hasAttributes()) {
1657
+ var u1 = [];
1658
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1659
+ try {
1660
+ for(var _iterator = s.getAttributeNames()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1661
+ var v1 = _step.value;
1662
+ if (v1.endsWith(Pt) || v1.startsWith(U)) {
1663
+ var w = f[n++];
1664
+ if (u1.push(v1), void 0 !== w) {
1665
+ var bt = s.getAttribute(w.toLowerCase() + Pt).split(U), D = /([.?@])?(.*)/.exec(w);
1666
+ a.push({
1667
+ type: 1,
1668
+ index: o,
1669
+ name: D[2],
1670
+ strings: bt,
1671
+ ctor: "." === D[1] ? Ut : "?" === D[1] ? It : "@" === D[1] ? Ot : V
1672
+ });
1673
+ } else a.push({
1674
+ type: 6,
1675
+ index: o
1676
+ });
1677
+ }
1678
+ }
1679
+ } catch (err) {
1680
+ _didIteratorError = true;
1681
+ _iteratorError = err;
1682
+ } finally{
1683
+ try {
1684
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
1685
+ _iterator.return();
1686
+ }
1687
+ } finally{
1688
+ if (_didIteratorError) {
1689
+ throw _iteratorError;
1690
+ }
1691
+ }
1692
+ }
1693
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
1694
+ try {
1695
+ for(var _iterator1 = u1[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
1696
+ var v2 = _step1.value;
1697
+ s.removeAttribute(v2);
1698
+ }
1699
+ } catch (err) {
1700
+ _didIteratorError1 = true;
1701
+ _iteratorError1 = err;
1702
+ } finally{
1703
+ try {
1704
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
1705
+ _iterator1.return();
1706
+ }
1707
+ } finally{
1708
+ if (_didIteratorError1) {
1709
+ throw _iteratorError1;
1710
+ }
1711
+ }
1712
+ }
1713
+ }
1714
+ if (fe.test(s.tagName)) {
1715
+ var u2 = s.textContent.split(U), v3 = u2.length - 1;
1716
+ if (v3 > 0) {
1717
+ s.textContent = B ? B.emptyScript : "";
1718
+ for(var w1 = 0; w1 < v3; w1++)s.append(u2[w1], W()), L.nextNode(), a.push({
1719
+ type: 2,
1720
+ index: ++o
1721
+ });
1722
+ s.append(u2[v3], W());
1723
+ }
1724
+ }
1725
+ } else if (8 === s.nodeType) if (s.data === ue) a.push({
1726
+ type: 2,
1727
+ index: o
1728
+ });
1729
+ else {
1730
+ var u3 = -1;
1731
+ for(; -1 !== (u3 = s.data.indexOf(U, u3 + 1));)a.push({
1732
+ type: 7,
1733
+ index: o
1734
+ }), u3 += U.length - 1;
1735
+ }
1736
+ o++;
1737
+ }
1738
+ }
1739
+ _create_class(M1, null, [
1740
+ {
1741
+ key: "createElement",
1742
+ value: function createElement(t, e) {
1743
+ var i = N.createElement("template");
1744
+ return i.innerHTML = t, i;
1745
+ }
1746
+ }
1747
+ ]);
1748
+ return M1;
1749
+ }();
1750
+ function q(r, t) {
1751
+ var e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : r, i = arguments.length > 3 ? arguments[3] : void 0;
1752
+ var s, o, n, l;
1753
+ if (t === x) return t;
1754
+ var a = void 0 !== i ? null === (s = e._$Co) || void 0 === s ? void 0 : s[i] : e._$Cl;
1755
+ var c = Z(t) ? void 0 : t._$litDirective$;
1756
+ return (null == a ? void 0 : a.constructor) !== c && (null === (o = null == a ? void 0 : a._$AO) || void 0 === o || o.call(a, false), void 0 === c ? a = void 0 : (a = new c(r), a._$AT(r, e, i)), void 0 !== i ? (null !== (n = (l = e)._$Co) && void 0 !== n ? n : l._$Co = [])[i] = a : e._$Cl = a), void 0 !== a && (t = q(r, a._$AS(r, t.values), a, i)), t;
1757
+ }
1758
+ var Tt = /*#__PURE__*/ function() {
1759
+ function Tt(t, e) {
1760
+ _class_call_check(this, Tt);
1761
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
1762
+ }
1763
+ _create_class(Tt, [
1764
+ {
1765
+ key: "parentNode",
1766
+ get: function get() {
1767
+ return this._$AM.parentNode;
1768
+ }
1769
+ },
1770
+ {
1771
+ key: "_$AU",
1772
+ get: function get() {
1773
+ return this._$AM._$AU;
1774
+ }
1775
+ },
1776
+ {
1777
+ key: "u",
1778
+ value: function u(t) {
1779
+ var e;
1780
+ var _this__$AD = this._$AD, _this__$AD_el = _this__$AD.el, i = _this__$AD_el.content, s = _this__$AD.parts, o = (null !== (e = null == t ? void 0 : t.creationScope) && void 0 !== e ? e : N).importNode(i, true);
1781
+ L.currentNode = o;
1782
+ var n = L.nextNode(), l = 0, a = 0, c = s[0];
1783
+ for(; void 0 !== c;){
1784
+ if (l === c.index) {
1785
+ var f = void 0;
1786
+ 2 === c.type ? f = new H(n, n.nextSibling, this, t) : 1 === c.type ? f = new c.ctor(n, c.name, c.strings, this, t) : 6 === c.type && (f = new Rt(n, this, t)), this._$AV.push(f), c = s[++a];
1787
+ }
1788
+ l !== (null == c ? void 0 : c.index) && (n = L.nextNode(), l++);
1789
+ }
1790
+ return L.currentNode = N, o;
1791
+ }
1792
+ },
1793
+ {
1794
+ key: "v",
1795
+ value: function v(t) {
1796
+ var e = 0;
1797
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1798
+ try {
1799
+ for(var _iterator = this._$AV[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1800
+ var i = _step.value;
1801
+ void 0 !== i && (void 0 !== i.strings ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
1802
+ }
1803
+ } catch (err) {
1804
+ _didIteratorError = true;
1805
+ _iteratorError = err;
1806
+ } finally{
1807
+ try {
1808
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
1809
+ _iterator.return();
1810
+ }
1811
+ } finally{
1812
+ if (_didIteratorError) {
1813
+ throw _iteratorError;
1814
+ }
1815
+ }
1816
+ }
1817
+ }
1818
+ }
1819
+ ]);
1820
+ return Tt;
1821
+ }();
1822
+ var H = /*#__PURE__*/ function() {
1823
+ function H1(t, e, i, s) {
1824
+ _class_call_check(this, H1);
1825
+ var o;
1826
+ this.type = 2, this._$AH = g, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = s, this._$Cp = null === (o = null == s ? void 0 : s.isConnected) || void 0 === o || o;
1827
+ }
1828
+ _create_class(H1, [
1829
+ {
1830
+ key: "_$AU",
1831
+ get: function get() {
1832
+ var t, e;
1833
+ return null !== (e = null === (t = this._$AM) || void 0 === t ? void 0 : t._$AU) && void 0 !== e ? e : this._$Cp;
1834
+ }
1835
+ },
1836
+ {
1837
+ key: "parentNode",
1838
+ get: function get() {
1839
+ var t = this._$AA.parentNode;
1840
+ var e = this._$AM;
1841
+ return void 0 !== e && 11 === (null == t ? void 0 : t.nodeType) && (t = e.parentNode), t;
1842
+ }
1843
+ },
1844
+ {
1845
+ key: "startNode",
1846
+ get: function get() {
1847
+ return this._$AA;
1848
+ }
1849
+ },
1850
+ {
1851
+ key: "endNode",
1852
+ get: function get() {
1853
+ return this._$AB;
1854
+ }
1855
+ },
1856
+ {
1857
+ key: "_$AI",
1858
+ value: function _$AI(t) {
1859
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
1860
+ t = q(this, t, e), Z(t) ? t === g || null == t || "" === t ? (this._$AH !== g && this._$AR(), this._$AH = g) : t !== this._$AH && t !== x && this._(t) : void 0 !== t._$litType$ ? this.g(t) : void 0 !== t.nodeType ? this.$(t) : Pi(t) ? this.T(t) : this._(t);
1861
+ }
1862
+ },
1863
+ {
1864
+ key: "k",
1865
+ value: function k(t) {
1866
+ return this._$AA.parentNode.insertBefore(t, this._$AB);
1867
+ }
1868
+ },
1869
+ {
1870
+ key: "$",
1871
+ value: function $(t) {
1872
+ this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
1873
+ }
1874
+ },
1875
+ {
1876
+ key: "_",
1877
+ value: function _(t) {
1878
+ this._$AH !== g && Z(this._$AH) ? this._$AA.nextSibling.data = t : this.$(N.createTextNode(t)), this._$AH = t;
1879
+ }
1880
+ },
1881
+ {
1882
+ key: "g",
1883
+ value: function g(t) {
1884
+ var e;
1885
+ var i = t.values, s = t._$litType$, o = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = M.createElement(ve(s.h, s.h[0]), this.options)), s);
1886
+ if ((null === (e = this._$AH) || void 0 === e ? void 0 : e._$AD) === o) this._$AH.v(i);
1887
+ else {
1888
+ var n = new Tt(o, this), l = n.u(this.options);
1889
+ n.v(i), this.$(l), this._$AH = n;
1890
+ }
1891
+ }
1892
+ },
1893
+ {
1894
+ key: "_$AC",
1895
+ value: function _$AC(t) {
1896
+ var e = de.get(t.strings);
1897
+ return void 0 === e && de.set(t.strings, e = new M(t)), e;
1898
+ }
1899
+ },
1900
+ {
1901
+ key: "T",
1902
+ value: function T(t) {
1903
+ me(this._$AH) || (this._$AH = [], this._$AR());
1904
+ var e = this._$AH;
1905
+ var i, s = 0;
1906
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1907
+ try {
1908
+ for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1909
+ var o = _step.value;
1910
+ s === e.length ? e.push(i = new H(this.k(W()), this.k(W()), this, this.options)) : i = e[s], i._$AI(o), s++;
1911
+ }
1912
+ } catch (err) {
1913
+ _didIteratorError = true;
1914
+ _iteratorError = err;
1915
+ } finally{
1916
+ try {
1917
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
1918
+ _iterator.return();
1919
+ }
1920
+ } finally{
1921
+ if (_didIteratorError) {
1922
+ throw _iteratorError;
1923
+ }
1924
+ }
1925
+ }
1926
+ s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
1927
+ }
1928
+ },
1929
+ {
1930
+ key: "_$AR",
1931
+ value: function _$AR() {
1932
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this._$AA.nextSibling, e = arguments.length > 1 ? arguments[1] : void 0;
1933
+ var i;
1934
+ for(null === (i = this._$AP) || void 0 === i || i.call(this, false, true, e); t && t !== this._$AB;){
1935
+ var s = t.nextSibling;
1936
+ t.remove(), t = s;
1937
+ }
1938
+ }
1939
+ },
1940
+ {
1941
+ key: "setConnected",
1942
+ value: function setConnected(t) {
1943
+ var e;
1944
+ void 0 === this._$AM && (this._$Cp = t, null === (e = this._$AP) || void 0 === e || e.call(this, t));
1945
+ }
1946
+ }
1947
+ ]);
1948
+ return H1;
1949
+ }();
1950
+ var V = /*#__PURE__*/ function() {
1951
+ function V(t, e, i, s, o) {
1952
+ _class_call_check(this, V);
1953
+ this.type = 1, this._$AH = g, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = o, i.length > 2 || "" !== i[0] || "" !== i[1] ? (this._$AH = Array(i.length - 1).fill(new String), this.strings = i) : this._$AH = g;
1954
+ }
1955
+ _create_class(V, [
1956
+ {
1957
+ key: "tagName",
1958
+ get: function get() {
1959
+ return this.element.tagName;
1960
+ }
1961
+ },
1962
+ {
1963
+ key: "_$AU",
1964
+ get: function get() {
1965
+ return this._$AM._$AU;
1966
+ }
1967
+ },
1968
+ {
1969
+ key: "_$AI",
1970
+ value: function _$AI(t) {
1971
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this, i = arguments.length > 2 ? arguments[2] : void 0, s = arguments.length > 3 ? arguments[3] : void 0;
1972
+ var o = this.strings;
1973
+ var n = false;
1974
+ if (void 0 === o) t = q(this, t, e, 0), n = !Z(t) || t !== this._$AH && t !== x, n && (this._$AH = t);
1975
+ else {
1976
+ var l = t;
1977
+ var a, c;
1978
+ for(t = o[0], a = 0; a < o.length - 1; a++)c = q(this, l[i + a], e, a), c === x && (c = this._$AH[a]), n || (n = !Z(c) || c !== this._$AH[a]), c === g ? t = g : t !== g && (t += (null != c ? c : "") + o[a + 1]), this._$AH[a] = c;
1979
+ }
1980
+ n && !s && this.j(t);
1981
+ }
1982
+ },
1983
+ {
1984
+ key: "j",
1985
+ value: function j(t) {
1986
+ t === g ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t ? t : "");
1987
+ }
1988
+ }
1989
+ ]);
1990
+ return V;
1991
+ }();
1992
+ var Ut = /*#__PURE__*/ function(V) {
1993
+ _inherits(Ut, V);
1994
+ var _super = _create_super(Ut);
1995
+ function Ut() {
1996
+ _class_call_check(this, Ut);
1997
+ var _this;
1998
+ _this = _super.call.apply(_super, [
1999
+ this
2000
+ ].concat(Array.prototype.slice.call(arguments))), _this.type = 3;
2001
+ return _possible_constructor_return(_this);
2002
+ }
2003
+ _create_class(Ut, [
2004
+ {
2005
+ key: "j",
2006
+ value: function j(t) {
2007
+ this.element[this.name] = t === g ? void 0 : t;
2008
+ }
2009
+ }
2010
+ ]);
2011
+ return Ut;
2012
+ }(V);
2013
+ var Ui = B ? B.emptyScript : "";
2014
+ var It = /*#__PURE__*/ function(V) {
2015
+ _inherits(It, V);
2016
+ var _super = _create_super(It);
2017
+ function It() {
2018
+ _class_call_check(this, It);
2019
+ var _this;
2020
+ _this = _super.call.apply(_super, [
2021
+ this
2022
+ ].concat(Array.prototype.slice.call(arguments))), _this.type = 4;
2023
+ return _possible_constructor_return(_this);
2024
+ }
2025
+ _create_class(It, [
2026
+ {
2027
+ key: "j",
2028
+ value: function j(t) {
2029
+ t && t !== g ? this.element.setAttribute(this.name, Ui) : this.element.removeAttribute(this.name);
2030
+ }
2031
+ }
2032
+ ]);
2033
+ return It;
2034
+ }(V);
2035
+ var Ot = /*#__PURE__*/ function(V) {
2036
+ _inherits(Ot, V);
2037
+ var _super = _create_super(Ot);
2038
+ function Ot(t, e, i, s, o) {
2039
+ _class_call_check(this, Ot);
2040
+ var _this;
2041
+ _this = _super.call(this, t, e, i, s, o), _this.type = 5;
2042
+ return _possible_constructor_return(_this);
2043
+ }
2044
+ _create_class(Ot, [
2045
+ {
2046
+ key: "_$AI",
2047
+ value: function _$AI(t) {
2048
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
2049
+ var i;
2050
+ if ((t = null !== (i = q(this, t, e, 0)) && void 0 !== i ? i : g) === x) return;
2051
+ var s = this._$AH, o = t === g && s !== g || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== g && (s === g || o);
2052
+ o && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
2053
+ }
2054
+ },
2055
+ {
2056
+ key: "handleEvent",
2057
+ value: function handleEvent(t) {
2058
+ var e, i;
2059
+ "function" == typeof this._$AH ? this._$AH.call(null !== (i = null === (e = this.options) || void 0 === e ? void 0 : e.host) && void 0 !== i ? i : this.element, t) : this._$AH.handleEvent(t);
2060
+ }
2061
+ }
2062
+ ]);
2063
+ return Ot;
2064
+ }(V);
2065
+ var Rt = /*#__PURE__*/ function() {
2066
+ function Rt(t, e, i) {
2067
+ _class_call_check(this, Rt);
2068
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
2069
+ }
2070
+ _create_class(Rt, [
2071
+ {
2072
+ key: "_$AU",
2073
+ get: function get() {
2074
+ return this._$AM._$AU;
2075
+ }
2076
+ },
2077
+ {
2078
+ key: "_$AI",
2079
+ value: function _$AI(t) {
2080
+ q(this, t);
2081
+ }
2082
+ }
2083
+ ]);
2084
+ return Rt;
2085
+ }();
2086
+ var pe = lt.litHtmlPolyfillSupport;
2087
+ null == pe || pe(M, H), (null !== (kt = lt.litHtmlVersions) && void 0 !== kt ? kt : lt.litHtmlVersions = []).push("2.8.0");
2088
+ var ye = function(r, t, e) {
2089
+ var i, s;
2090
+ var o = null !== (i = null == e ? void 0 : e.renderBefore) && void 0 !== i ? i : t;
2091
+ var n = o._$litPart$;
2092
+ if (void 0 === n) {
2093
+ var l = null !== (s = null == e ? void 0 : e.renderBefore) && void 0 !== s ? s : null;
2094
+ o._$litPart$ = n = new H(t.insertBefore(W(), l), l, void 0, null != e ? e : {});
2095
+ }
2096
+ return n._$AI(r), n;
2097
+ };
2098
+ var ct = window;
2099
+ var ht = ct.ShadowRoot && (void 0 === ct.ShadyCSS || ct.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
2100
+ var Lt = Symbol();
2101
+ var be = new WeakMap;
2102
+ var G = /*#__PURE__*/ function() {
2103
+ function G(t, e, i) {
2104
+ _class_call_check(this, G);
2105
+ if (this._$cssResult$ = true, i !== Lt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
2106
+ this.cssText = t, this.t = e;
2107
+ }
2108
+ _create_class(G, [
2109
+ {
2110
+ key: "styleSheet",
2111
+ get: function get() {
2112
+ var t = this.o;
2113
+ var e = this.t;
2114
+ if (ht && void 0 === t) {
2115
+ var i = void 0 !== e && 1 === e.length;
2116
+ i && (t = be.get(e)), void 0 === t && ((this.o = t = new CSSStyleSheet).replaceSync(this.cssText), i && be.set(e, t));
2117
+ }
2118
+ return t;
2119
+ }
2120
+ },
2121
+ {
2122
+ key: "toString",
2123
+ value: function toString() {
2124
+ return this.cssText;
2125
+ }
2126
+ }
2127
+ ]);
2128
+ return G;
2129
+ }();
2130
+ var we = function(r) {
2131
+ return new G("string" == typeof r ? r : r + "", void 0, Lt);
2132
+ };
2133
+ var m = function(r) {
2134
+ for(var _len = arguments.length, t = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
2135
+ t[_key - 1] = arguments[_key];
2136
+ }
2137
+ var e = 1 === r.length ? r[0] : t.reduce(function(i, s, o) {
2138
+ return i + function(n) {
2139
+ if (true === n._$cssResult$) return n.cssText;
2140
+ if ("number" == typeof n) return n;
2141
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
2142
+ }(s) + r[o + 1];
2143
+ }, r[0]);
2144
+ return new G(e, r, Lt);
2145
+ };
2146
+ var Nt = function(r, t) {
2147
+ ht ? r.adoptedStyleSheets = t.map(function(e) {
2148
+ return _instanceof(e, CSSStyleSheet) ? e : e.styleSheet;
2149
+ }) : t.forEach(function(e) {
2150
+ var i = document.createElement("style"), s = ct.litNonce;
2151
+ void 0 !== s && i.setAttribute("nonce", s), i.textContent = e.cssText, r.appendChild(i);
2152
+ });
2153
+ };
2154
+ var dt = ht ? function(r) {
2155
+ return r;
2156
+ } : function(r) {
2157
+ return _instanceof(r, CSSStyleSheet) ? function(t) {
2158
+ var e = "";
2159
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
2160
+ try {
2161
+ for(var _iterator = t.cssRules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2162
+ var i = _step.value;
2163
+ e += i.cssText;
2164
+ }
2165
+ } catch (err) {
2166
+ _didIteratorError = true;
2167
+ _iteratorError = err;
2168
+ } finally{
2169
+ try {
2170
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
2171
+ _iterator.return();
2172
+ }
2173
+ } finally{
2174
+ if (_didIteratorError) {
2175
+ throw _iteratorError;
2176
+ }
2177
+ }
2178
+ }
2179
+ return we(e);
2180
+ }(r) : r;
2181
+ };
2182
+ var Mt;
2183
+ var pt = window;
2184
+ var $e = pt.trustedTypes;
2185
+ var Ii = $e ? $e.emptyScript : "";
2186
+ var Se = pt.reactiveElementPolyfillSupport;
2187
+ var jt = {
2188
+ toAttribute: function toAttribute(r, t) {
2189
+ switch(t){
2190
+ case Boolean:
2191
+ r = r ? Ii : null;
2192
+ break;
2193
+ case Object:
2194
+ case Array:
2195
+ r = null == r ? r : JSON.stringify(r);
2196
+ }
2197
+ return r;
2198
+ },
2199
+ fromAttribute: function fromAttribute(r, t) {
2200
+ var e = r;
2201
+ switch(t){
2202
+ case Boolean:
2203
+ e = null !== r;
2204
+ break;
2205
+ case Number:
2206
+ e = null === r ? null : Number(r);
2207
+ break;
2208
+ case Object:
2209
+ case Array:
2210
+ try {
2211
+ e = JSON.parse(r);
2212
+ } catch (i) {
2213
+ e = null;
2214
+ }
2215
+ }
2216
+ return e;
2217
+ }
2218
+ };
2219
+ var Ee = function(r, t) {
2220
+ return t !== r && (t == t || r == r);
2221
+ };
2222
+ var Ht = {
2223
+ attribute: true,
2224
+ type: String,
2225
+ converter: jt,
2226
+ reflect: false,
2227
+ hasChanged: Ee
2228
+ };
2229
+ var zt = "finalized";
2230
+ var C = /*#__PURE__*/ function(HTMLElement1) {
2231
+ _inherits(C, HTMLElement1);
2232
+ var _super = _create_super(C);
2233
+ function C() {
2234
+ _class_call_check(this, C);
2235
+ var _this;
2236
+ _this = _super.call(this), _this._$Ei = new Map, _this.isUpdatePending = false, _this.hasUpdated = false, _this._$El = null, _this._$Eu();
2237
+ return _possible_constructor_return(_this);
2238
+ }
2239
+ _create_class(C, [
2240
+ {
2241
+ key: "_$Eu",
2242
+ value: function _$Eu() {
2243
+ var _this = this;
2244
+ var t;
2245
+ this._$E_ = new Promise(function(e) {
2246
+ return _this.enableUpdating = e;
2247
+ }), this._$AL = new Map, this._$Eg(), this.requestUpdate(), null === (t = this.constructor.h) || void 0 === t || t.forEach(function(e) {
2248
+ return e(_this);
2249
+ });
2250
+ }
2251
+ },
2252
+ {
2253
+ key: "addController",
2254
+ value: function addController(t) {
2255
+ var e, i;
2256
+ (null !== (e = this._$ES) && void 0 !== e ? e : this._$ES = []).push(t), void 0 !== this.renderRoot && this.isConnected && (null === (i = t.hostConnected) || void 0 === i || i.call(t));
2257
+ }
2258
+ },
2259
+ {
2260
+ key: "removeController",
2261
+ value: function removeController(t) {
2262
+ var e;
2263
+ null === (e = this._$ES) || void 0 === e || e.splice(this._$ES.indexOf(t) >>> 0, 1);
2264
+ }
2265
+ },
2266
+ {
2267
+ key: "_$Eg",
2268
+ value: function _$Eg() {
2269
+ var _this = this;
2270
+ this.constructor.elementProperties.forEach(function(t, e) {
2271
+ _this.hasOwnProperty(e) && (_this._$Ei.set(e, _this[e]), delete _this[e]);
2272
+ });
2273
+ }
2274
+ },
2275
+ {
2276
+ key: "createRenderRoot",
2277
+ value: function createRenderRoot() {
2278
+ var t;
2279
+ var e = null !== (t = this.shadowRoot) && void 0 !== t ? t : this.attachShadow(this.constructor.shadowRootOptions);
2280
+ return Nt(e, this.constructor.elementStyles), e;
2281
+ }
2282
+ },
2283
+ {
2284
+ key: "connectedCallback",
2285
+ value: function connectedCallback() {
2286
+ var t;
2287
+ void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), null === (t = this._$ES) || void 0 === t || t.forEach(function(e) {
2288
+ var i;
2289
+ return null === (i = e.hostConnected) || void 0 === i ? void 0 : i.call(e);
2290
+ });
2291
+ }
2292
+ },
2293
+ {
2294
+ key: "enableUpdating",
2295
+ value: function enableUpdating(t) {}
2296
+ },
2297
+ {
2298
+ key: "disconnectedCallback",
2299
+ value: function disconnectedCallback() {
2300
+ var t;
2301
+ null === (t = this._$ES) || void 0 === t || t.forEach(function(e) {
2302
+ var i;
2303
+ return null === (i = e.hostDisconnected) || void 0 === i ? void 0 : i.call(e);
2304
+ });
2305
+ }
2306
+ },
2307
+ {
2308
+ key: "attributeChangedCallback",
2309
+ value: function attributeChangedCallback(t, e, i) {
2310
+ this._$AK(t, i);
2311
+ }
2312
+ },
2313
+ {
2314
+ key: "_$EO",
2315
+ value: function _$EO(t, e) {
2316
+ var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ht;
2317
+ var s;
2318
+ var o = this.constructor._$Ep(t, i);
2319
+ if (void 0 !== o && true === i.reflect) {
2320
+ var n = (void 0 !== (null === (s = i.converter) || void 0 === s ? void 0 : s.toAttribute) ? i.converter : jt).toAttribute(e, i.type);
2321
+ this._$El = t, null == n ? this.removeAttribute(o) : this.setAttribute(o, n), this._$El = null;
2322
+ }
2323
+ }
2324
+ },
2325
+ {
2326
+ key: "_$AK",
2327
+ value: function _$AK(t, e) {
2328
+ var i;
2329
+ var s = this.constructor, o = s._$Ev.get(t);
2330
+ if (void 0 !== o && this._$El !== o) {
2331
+ var n = s.getPropertyOptions(o), l = "function" == typeof n.converter ? {
2332
+ fromAttribute: n.converter
2333
+ } : void 0 !== (null === (i = n.converter) || void 0 === i ? void 0 : i.fromAttribute) ? n.converter : jt;
2334
+ this._$El = o, this[o] = l.fromAttribute(e, n.type), this._$El = null;
2335
+ }
2336
+ }
2337
+ },
2338
+ {
2339
+ key: "requestUpdate",
2340
+ value: function requestUpdate(t, e, i) {
2341
+ var s = true;
2342
+ void 0 !== t && (((i = i || this.constructor.getPropertyOptions(t)).hasChanged || Ee)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), true === i.reflect && this._$El !== t && (void 0 === this._$EC && (this._$EC = new Map), this._$EC.set(t, i))) : s = false), !this.isUpdatePending && s && (this._$E_ = this._$Ej());
2343
+ }
2344
+ },
2345
+ {
2346
+ key: "_$Ej",
2347
+ value: function _$Ej() {
2348
+ var _this = this;
2349
+ return _async_to_generator(function() {
2350
+ var e, t, _tmp;
2351
+ return _ts_generator(this, function(_state) {
2352
+ switch(_state.label){
2353
+ case 0:
2354
+ _this.isUpdatePending = true;
2355
+ _state.label = 1;
2356
+ case 1:
2357
+ _state.trys.push([
2358
+ 1,
2359
+ 3,
2360
+ ,
2361
+ 4
2362
+ ]);
2363
+ return [
2364
+ 4,
2365
+ _this._$E_
2366
+ ];
2367
+ case 2:
2368
+ _state.sent();
2369
+ return [
2370
+ 3,
2371
+ 4
2372
+ ];
2373
+ case 3:
2374
+ e = _state.sent();
2375
+ Promise.reject(e);
2376
+ return [
2377
+ 3,
2378
+ 4
2379
+ ];
2380
+ case 4:
2381
+ t = _this.scheduleUpdate();
2382
+ _tmp = null != t;
2383
+ if (!_tmp) return [
2384
+ 3,
2385
+ 6
2386
+ ];
2387
+ return [
2388
+ 4,
2389
+ t
2390
+ ];
2391
+ case 5:
2392
+ _tmp = _state.sent();
2393
+ _state.label = 6;
2394
+ case 6:
2395
+ return [
2396
+ 2,
2397
+ (_tmp, !_this.isUpdatePending)
2398
+ ];
2399
+ }
2400
+ });
2401
+ })();
2402
+ }
2403
+ },
2404
+ {
2405
+ key: "scheduleUpdate",
2406
+ value: function scheduleUpdate() {
2407
+ return this.performUpdate();
2408
+ }
2409
+ },
2410
+ {
2411
+ key: "performUpdate",
2412
+ value: function performUpdate() {
2413
+ var _this = this;
2414
+ var t;
2415
+ if (!this.isUpdatePending) return;
2416
+ this.hasUpdated, this._$Ei && (this._$Ei.forEach(function(s, o) {
2417
+ return _this[o] = s;
2418
+ }), this._$Ei = void 0);
2419
+ var e = false;
2420
+ var i = this._$AL;
2421
+ try {
2422
+ e = this.shouldUpdate(i), e ? (this.willUpdate(i), null === (t = this._$ES) || void 0 === t || t.forEach(function(s) {
2423
+ var o;
2424
+ return null === (o = s.hostUpdate) || void 0 === o ? void 0 : o.call(s);
2425
+ }), this.update(i)) : this._$Ek();
2426
+ } catch (s) {
2427
+ throw e = false, this._$Ek(), s;
2428
+ }
2429
+ e && this._$AE(i);
2430
+ }
2431
+ },
2432
+ {
2433
+ key: "willUpdate",
2434
+ value: function willUpdate(t) {}
2435
+ },
2436
+ {
2437
+ key: "_$AE",
2438
+ value: function _$AE(t) {
2439
+ var e;
2440
+ null === (e = this._$ES) || void 0 === e || e.forEach(function(i) {
2441
+ var s;
2442
+ return null === (s = i.hostUpdated) || void 0 === s ? void 0 : s.call(i);
2443
+ }), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
2444
+ }
2445
+ },
2446
+ {
2447
+ key: "_$Ek",
2448
+ value: function _$Ek() {
2449
+ this._$AL = new Map, this.isUpdatePending = false;
2450
+ }
2451
+ },
2452
+ {
2453
+ key: "updateComplete",
2454
+ get: function get() {
2455
+ return this.getUpdateComplete();
2456
+ }
2457
+ },
2458
+ {
2459
+ key: "getUpdateComplete",
2460
+ value: function getUpdateComplete() {
2461
+ return this._$E_;
2462
+ }
2463
+ },
2464
+ {
2465
+ key: "shouldUpdate",
2466
+ value: function shouldUpdate(t) {
2467
+ return true;
2468
+ }
2469
+ },
2470
+ {
2471
+ key: "update",
2472
+ value: function update(t) {
2473
+ var _this = this;
2474
+ void 0 !== this._$EC && (this._$EC.forEach(function(e, i) {
2475
+ return _this._$EO(i, _this[i], e);
2476
+ }), this._$EC = void 0), this._$Ek();
2477
+ }
2478
+ },
2479
+ {
2480
+ key: "updated",
2481
+ value: function updated(t) {}
2482
+ },
2483
+ {
2484
+ key: "firstUpdated",
2485
+ value: function firstUpdated(t) {}
2486
+ }
2487
+ ], [
2488
+ {
2489
+ key: "addInitializer",
2490
+ value: function addInitializer(t) {
2491
+ var e;
2492
+ this.finalize(), (null !== (e = this.h) && void 0 !== e ? e : this.h = []).push(t);
2493
+ }
2494
+ },
2495
+ {
2496
+ key: "observedAttributes",
2497
+ get: function get() {
2498
+ var _this = this;
2499
+ this.finalize();
2500
+ var t = [];
2501
+ return this.elementProperties.forEach(function(e, i) {
2502
+ var s = _this._$Ep(i, e);
2503
+ void 0 !== s && (_this._$Ev.set(s, i), t.push(s));
2504
+ }), t;
2505
+ }
2506
+ },
2507
+ {
2508
+ key: "createProperty",
2509
+ value: function createProperty(t) {
2510
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ht;
2511
+ if (e.state && (e.attribute = false), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
2512
+ var i = "symbol" == (typeof t === "undefined" ? "undefined" : _type_of(t)) ? Symbol() : "__" + t, s = this.getPropertyDescriptor(t, i, e);
2513
+ void 0 !== s && Object.defineProperty(this.prototype, t, s);
2514
+ }
2515
+ }
2516
+ },
2517
+ {
2518
+ key: "getPropertyDescriptor",
2519
+ value: function getPropertyDescriptor(t, e, i) {
2520
+ return {
2521
+ get: function get() {
2522
+ return this[e];
2523
+ },
2524
+ set: function set(s) {
2525
+ var o = this[t];
2526
+ this[e] = s, this.requestUpdate(t, o, i);
2527
+ },
2528
+ configurable: true,
2529
+ enumerable: true
2530
+ };
2531
+ }
2532
+ },
2533
+ {
2534
+ key: "getPropertyOptions",
2535
+ value: function getPropertyOptions(t) {
2536
+ return this.elementProperties.get(t) || Ht;
2537
+ }
2538
+ },
2539
+ {
2540
+ key: "finalize",
2541
+ value: function finalize() {
2542
+ if (this.hasOwnProperty(zt)) return false;
2543
+ this[zt] = true;
2544
+ var t = Object.getPrototypeOf(this);
2545
+ if (t.finalize(), void 0 !== t.h && (this.h = _to_consumable_array(t.h)), this.elementProperties = new Map(t.elementProperties), this._$Ev = new Map, this.hasOwnProperty("properties")) {
2546
+ var e = this.properties, i = _to_consumable_array(Object.getOwnPropertyNames(e)).concat(_to_consumable_array(Object.getOwnPropertySymbols(e)));
2547
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
2548
+ try {
2549
+ for(var _iterator = i[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2550
+ var s = _step.value;
2551
+ this.createProperty(s, e[s]);
2552
+ }
2553
+ } catch (err) {
2554
+ _didIteratorError = true;
2555
+ _iteratorError = err;
2556
+ } finally{
2557
+ try {
2558
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
2559
+ _iterator.return();
2560
+ }
2561
+ } finally{
2562
+ if (_didIteratorError) {
2563
+ throw _iteratorError;
2564
+ }
2565
+ }
2566
+ }
2567
+ }
2568
+ return this.elementStyles = this.finalizeStyles(this.styles), true;
2569
+ }
2570
+ },
2571
+ {
2572
+ key: "finalizeStyles",
2573
+ value: function finalizeStyles(t) {
2574
+ var e = [];
2575
+ if (Array.isArray(t)) {
2576
+ var i = new Set(t.flat(1 / 0).reverse());
2577
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
2578
+ try {
2579
+ for(var _iterator = i[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2580
+ var s = _step.value;
2581
+ e.unshift(dt(s));
2582
+ }
2583
+ } catch (err) {
2584
+ _didIteratorError = true;
2585
+ _iteratorError = err;
2586
+ } finally{
2587
+ try {
2588
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
2589
+ _iterator.return();
2590
+ }
2591
+ } finally{
2592
+ if (_didIteratorError) {
2593
+ throw _iteratorError;
2594
+ }
2595
+ }
2596
+ }
2597
+ } else void 0 !== t && e.push(dt(t));
2598
+ return e;
2599
+ }
2600
+ },
2601
+ {
2602
+ key: "_$Ep",
2603
+ value: function _$Ep(t, e) {
2604
+ var i = e.attribute;
2605
+ return false === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
2606
+ }
2607
+ }
2608
+ ]);
2609
+ return C;
2610
+ }(_wrap_native_super(HTMLElement));
2611
+ C[zt] = true, C.elementProperties = new Map, C.elementStyles = [], C.shadowRootOptions = {
2612
+ mode: "open"
2613
+ }, null == Se || Se({
2614
+ ReactiveElement: C
2615
+ }), (null !== (Mt = pt.reactiveElementVersions) && void 0 !== Mt ? Mt : pt.reactiveElementVersions = []).push("1.6.3");
2616
+ var Dt;
2617
+ var Bt;
2618
+ var y = /*#__PURE__*/ function(C) {
2619
+ _inherits(y, C);
2620
+ var _super = _create_super(y);
2621
+ function y() {
2622
+ _class_call_check(this, y);
2623
+ var _this;
2624
+ _this = _super.call.apply(_super, [
2625
+ this
2626
+ ].concat(Array.prototype.slice.call(arguments))), _this.renderOptions = {
2627
+ host: _assert_this_initialized(_this)
2628
+ }, _this._$Do = void 0;
2629
+ return _possible_constructor_return(_this);
2630
+ }
2631
+ _create_class(y, [
2632
+ {
2633
+ key: "createRenderRoot",
2634
+ value: function createRenderRoot() {
2635
+ var t, e;
2636
+ var i = _get(_get_prototype_of(y.prototype), "createRenderRoot", this).call(this);
2637
+ return null !== (t = (e = this.renderOptions).renderBefore) && void 0 !== t || (e.renderBefore = i.firstChild), i;
2638
+ }
2639
+ },
2640
+ {
2641
+ key: "update",
2642
+ value: function update(t) {
2643
+ var e = this.render();
2644
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(y.prototype), "update", this).call(this, t), this._$Do = ye(e, this.renderRoot, this.renderOptions);
2645
+ }
2646
+ },
2647
+ {
2648
+ key: "connectedCallback",
2649
+ value: function connectedCallback() {
2650
+ var t;
2651
+ _get(_get_prototype_of(y.prototype), "connectedCallback", this).call(this), null === (t = this._$Do) || void 0 === t || t.setConnected(true);
2652
+ }
2653
+ },
2654
+ {
2655
+ key: "disconnectedCallback",
2656
+ value: function disconnectedCallback() {
2657
+ var t;
2658
+ _get(_get_prototype_of(y.prototype), "disconnectedCallback", this).call(this), null === (t = this._$Do) || void 0 === t || t.setConnected(false);
2659
+ }
2660
+ },
2661
+ {
2662
+ key: "render",
2663
+ value: function render() {
2664
+ return x;
2665
+ }
2666
+ }
2667
+ ]);
2668
+ return y;
2669
+ }(C);
2670
+ y.finalized = true, y._$litElement$ = true, null === (Dt = globalThis.litElementHydrateSupport) || void 0 === Dt || Dt.call(globalThis, {
2671
+ LitElement: y
2672
+ });
2673
+ var _e = globalThis.litElementPolyfillSupport;
2674
+ null == _e || _e({
2675
+ LitElement: y
2676
+ });
2677
+ (null !== (Bt = globalThis.litElementVersions) && void 0 !== Bt ? Bt : globalThis.litElementVersions = []).push("3.3.3");
2678
+ var Oi = function(r, t) {
2679
+ return "method" === t.kind && t.descriptor && !("value" in t.descriptor) ? _object_spread_props(_object_spread({}, t), {
2680
+ finisher: function finisher(e) {
2681
+ e.createProperty(t.key, r);
2682
+ }
2683
+ }) : {
2684
+ kind: "field",
2685
+ key: Symbol(),
2686
+ placement: "own",
2687
+ descriptor: {},
2688
+ originalKey: t.key,
2689
+ initializer: function initializer() {
2690
+ "function" == typeof t.initializer && (this[t.key] = t.initializer.call(this));
2691
+ },
2692
+ finisher: function finisher(e) {
2693
+ e.createProperty(t.key, r);
2694
+ }
2695
+ };
2696
+ };
2697
+ var Ri = function(r, t, e) {
2698
+ t.constructor.createProperty(e, r);
2699
+ };
2700
+ var qt;
2701
+ var Wr = null != (null === (qt = window.HTMLSlotElement) || void 0 === qt ? void 0 : qt.prototype.assignedElements) ? function(r, t) {
2702
+ return r.assignedElements(t);
2703
+ } : function(r, t) {
2704
+ return r.assignedNodes(t).filter(function(e) {
2705
+ return e.nodeType === Node.ELEMENT_NODE;
2706
+ });
2707
+ };
2708
+ var xe = {
2709
+ ATTRIBUTE: 1,
2710
+ CHILD: 2,
2711
+ PROPERTY: 3,
2712
+ BOOLEAN_ATTRIBUTE: 4,
2713
+ EVENT: 5,
2714
+ ELEMENT: 6
2715
+ };
2716
+ var Ce = function(r) {
2717
+ return function() {
2718
+ for(var _len = arguments.length, t = new Array(_len), _key = 0; _key < _len; _key++){
2719
+ t[_key] = arguments[_key];
2720
+ }
2721
+ return {
2722
+ _$litDirective$: r,
2723
+ values: t
2724
+ };
2725
+ };
2726
+ };
2727
+ var ut = /*#__PURE__*/ function() {
2728
+ function ut(t) {
2729
+ _class_call_check(this, ut);
2730
+ }
2731
+ _create_class(ut, [
2732
+ {
2733
+ key: "_$AU",
2734
+ get: function get() {
2735
+ return this._$AM._$AU;
2736
+ }
2737
+ },
2738
+ {
2739
+ key: "_$AT",
2740
+ value: function _$AT(t, e, i) {
2741
+ this._$Ct = t, this._$AM = e, this._$Ci = i;
2742
+ }
2743
+ },
2744
+ {
2745
+ key: "_$AS",
2746
+ value: function _$AS(t, e) {
2747
+ return this.update(t, e);
2748
+ }
2749
+ },
2750
+ {
2751
+ key: "update",
2752
+ value: function update(t, e) {
2753
+ return this.render.apply(this, _to_consumable_array(e));
2754
+ }
2755
+ }
2756
+ ]);
2757
+ return ut;
2758
+ }();
2759
+ var Q = /*#__PURE__*/ function(ut) {
2760
+ _inherits(Q, ut);
2761
+ var _super = _create_super(Q);
2762
+ function Q(t) {
2763
+ _class_call_check(this, Q);
2764
+ var _this;
2765
+ if (_this = _super.call(this, t), _this.et = g, t.type !== xe.CHILD) throw Error(_this.constructor.directiveName + "() can only be used in child bindings");
2766
+ return _possible_constructor_return(_this);
2767
+ }
2768
+ _create_class(Q, [
2769
+ {
2770
+ key: "render",
2771
+ value: function render(t) {
2772
+ if (t === g || null == t) return this.ft = void 0, this.et = t;
2773
+ if (t === x) return t;
2774
+ if ("string" != typeof t) throw Error(this.constructor.directiveName + "() called with a non-string value");
2775
+ if (t === this.et) return this.ft;
2776
+ this.et = t;
2777
+ var e = [
2778
+ t
2779
+ ];
2780
+ return e.raw = e, this.ft = {
2781
+ _$litType$: this.constructor.resultType,
2782
+ strings: e,
2783
+ values: []
2784
+ };
2785
+ }
2786
+ }
2787
+ ]);
2788
+ return Q;
2789
+ }(ut);
2790
+ Q.directiveName = "unsafeHTML", Q.resultType = 1;
2791
+ var ke = Ce(Q);
2792
+ var $ = function() {
2793
+ var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = arguments.length > 1 ? arguments[1] : void 0;
2794
+ if (!customElements.get(r)) {
2795
+ customElements.define(r, t);
2796
+ }
2797
+ };
2798
+ var Ae = function(r, t) {
2799
+ return _to_consumable_array(r).reduce(function(e, i) {
2800
+ var _t_skip;
2801
+ if (t === null || t === void 0 ? void 0 : (_t_skip = t.skip) === null || _t_skip === void 0 ? void 0 : _t_skip.includes(i.name)) return e;
2802
+ return "".concat(e).concat(i.name, '="').concat(i.value, '" ');
2803
+ }, "");
2804
+ };
2805
+ var j = /*#__PURE__*/ function(y) {
2806
+ _inherits(j, y);
2807
+ var _super = _create_super(j);
2808
+ function j() {
2809
+ _class_call_check(this, j);
2810
+ var _this;
2811
+ _this = _super.call.apply(_super, [
2812
+ this
2813
+ ].concat(Array.prototype.slice.call(arguments)));
2814
+ _this.name = "";
2815
+ _this.fallbackTag = null;
2816
+ _this.defaultStyle = null;
2817
+ _this.refElement = null;
2818
+ return _this;
2819
+ }
2820
+ _create_class(j, [
2821
+ {
2822
+ key: "connectedCallback",
2823
+ value: function connectedCallback() {
2824
+ _get(_get_prototype_of(j.prototype), "connectedCallback", this).call(this);
2825
+ var e = this;
2826
+ while(e.parentNode){
2827
+ e = e.parentNode;
2828
+ }
2829
+ this.refElement = e.host.querySelector('[refElement="'.concat(this.name, '"]'));
2830
+ if (this.refElement && this.fallbackTag !== null && this.refElement.tagName.toLowerCase() !== this.fallbackTag) {
2831
+ throw new Error("Your html tag to customize ".concat(this.name, " should be <").concat(this.fallbackTag, "></<").concat(this.fallbackTag, ">"));
2832
+ }
2833
+ }
2834
+ },
2835
+ {
2836
+ key: "render",
2837
+ value: function render() {
2838
+ var _this_refElement;
2839
+ var e = Ae(this.attributes, {
2840
+ skip: [
2841
+ "name",
2842
+ "fallbacktag"
2843
+ ]
2844
+ });
2845
+ var _this_refElement_attributes;
2846
+ var i = Ae((_this_refElement_attributes = (_this_refElement = this.refElement) === null || _this_refElement === void 0 ? void 0 : _this_refElement.attributes) !== null && _this_refElement_attributes !== void 0 ? _this_refElement_attributes : []);
2847
+ return p(_templateObject(), ke("\n <style>".concat(this.defaultStyle, "</style>\n <").concat(this.fallbackTag, " ").concat(e, " ").concat(i, ">\n <slot></slot>\n </").concat(this.fallbackTag, ">")));
2848
+ }
2849
+ }
2850
+ ]);
2851
+ return j;
2852
+ }(y);
2853
+ h([
2854
+ d()
2855
+ ], j.prototype, "name", 2);
2856
+ h([
2857
+ d({
2858
+ type: String || null
2859
+ })
2860
+ ], j.prototype, "fallbackTag", 2);
2861
+ h([
2862
+ d({
2863
+ type: String || null
2864
+ })
2865
+ ], j.prototype, "defaultStyle", 2);
2866
+ h([
2867
+ d({
2868
+ type: String || null
2869
+ })
2870
+ ], j.prototype, "refElement", 2);
2871
+ $("appcues-use-ref", j);
2872
+ var mt = globalThis;
2873
+ var gt = mt.ShadowRoot && (void 0 === mt.ShadyCSS || mt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
2874
+ var Te = Symbol();
2875
+ var Pe = new WeakMap;
2876
+ var ft = /*#__PURE__*/ function() {
2877
+ function ft(t, e, i) {
2878
+ _class_call_check(this, ft);
2879
+ if (this._$cssResult$ = true, i !== Te) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
2880
+ this.cssText = t, this.t = e;
2881
+ }
2882
+ _create_class(ft, [
2883
+ {
2884
+ key: "styleSheet",
2885
+ get: function get() {
2886
+ var t = this.o;
2887
+ var e = this.t;
2888
+ if (gt && void 0 === t) {
2889
+ var i = void 0 !== e && 1 === e.length;
2890
+ i && (t = Pe.get(e)), void 0 === t && ((this.o = t = new CSSStyleSheet).replaceSync(this.cssText), i && Pe.set(e, t));
2891
+ }
2892
+ return t;
2893
+ }
2894
+ },
2895
+ {
2896
+ key: "toString",
2897
+ value: function toString() {
2898
+ return this.cssText;
2899
+ }
2900
+ }
2901
+ ]);
2902
+ return ft;
2903
+ }();
2904
+ var Ue = function(r) {
2905
+ return new ft("string" == typeof r ? r : r + "", void 0, Te);
2906
+ };
2907
+ var Vt = function(r, t) {
2908
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
2909
+ if (gt) r.adoptedStyleSheets = t.map(function(e) {
2910
+ return _instanceof(e, CSSStyleSheet) ? e : e.styleSheet;
2911
+ });
2912
+ else try {
2913
+ for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2914
+ var e = _step.value;
2915
+ var i = document.createElement("style"), s = mt.litNonce;
2916
+ void 0 !== s && i.setAttribute("nonce", s), i.textContent = e.cssText, r.appendChild(i);
2917
+ }
2918
+ } catch (err) {
2919
+ _didIteratorError = true;
2920
+ _iteratorError = err;
2921
+ } finally{
2922
+ try {
2923
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
2924
+ _iterator.return();
2925
+ }
2926
+ } finally{
2927
+ if (_didIteratorError) {
2928
+ throw _iteratorError;
2929
+ }
2930
+ }
2931
+ }
2932
+ };
2933
+ var vt = gt ? function(r) {
2934
+ return r;
2935
+ } : function(r) {
2936
+ return _instanceof(r, CSSStyleSheet) ? function(t) {
2937
+ var e = "";
2938
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
2939
+ try {
2940
+ for(var _iterator = t.cssRules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2941
+ var i = _step.value;
2942
+ e += i.cssText;
2943
+ }
2944
+ } catch (err) {
2945
+ _didIteratorError = true;
2946
+ _iteratorError = err;
2947
+ } finally{
2948
+ try {
2949
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
2950
+ _iterator.return();
2951
+ }
2952
+ } finally{
2953
+ if (_didIteratorError) {
2954
+ throw _iteratorError;
2955
+ }
2956
+ }
2957
+ }
2958
+ return Ue(e);
2959
+ }(r) : r;
2960
+ };
2961
+ var Li = Object.is, Ni = Object.defineProperty, Mi = Object.getOwnPropertyDescriptor, Hi = Object.getOwnPropertyNames, ji = Object.getOwnPropertySymbols, zi = Object.getPrototypeOf;
2962
+ var I = globalThis;
2963
+ var Ie = I.trustedTypes;
2964
+ var Di = Ie ? Ie.emptyScript : "";
2965
+ var Bi = I.reactiveElementPolyfillSupport;
2966
+ var tt = function(r, t) {
2967
+ return r;
2968
+ };
2969
+ var Kt = {
2970
+ toAttribute: function toAttribute(r, t) {
2971
+ switch(t){
2972
+ case Boolean:
2973
+ r = r ? Di : null;
2974
+ break;
2975
+ case Object:
2976
+ case Array:
2977
+ r = null == r ? r : JSON.stringify(r);
2978
+ }
2979
+ return r;
2980
+ },
2981
+ fromAttribute: function fromAttribute(r, t) {
2982
+ var e = r;
2983
+ switch(t){
2984
+ case Boolean:
2985
+ e = null !== r;
2986
+ break;
2987
+ case Number:
2988
+ e = null === r ? null : Number(r);
2989
+ break;
2990
+ case Object:
2991
+ case Array:
2992
+ try {
2993
+ e = JSON.parse(r);
2994
+ } catch (i) {
2995
+ e = null;
2996
+ }
2997
+ }
2998
+ return e;
2999
+ }
3000
+ };
3001
+ var yt = function(r, t) {
3002
+ return !Li(r, t);
3003
+ };
3004
+ var Oe = {
3005
+ attribute: true,
3006
+ type: String,
3007
+ converter: Kt,
3008
+ reflect: false,
3009
+ hasChanged: yt
3010
+ };
3011
+ var _Symbol_metadata, _I_litPropertyMetadata;
3012
+ (_Symbol_metadata = Symbol.metadata) !== null && _Symbol_metadata !== void 0 ? _Symbol_metadata : Symbol.metadata = Symbol("metadata"), (_I_litPropertyMetadata = I.litPropertyMetadata) !== null && _I_litPropertyMetadata !== void 0 ? _I_litPropertyMetadata : I.litPropertyMetadata = new WeakMap;
3013
+ var z = /*#__PURE__*/ function(HTMLElement1) {
3014
+ _inherits(z, HTMLElement1);
3015
+ var _super = _create_super(z);
3016
+ function z() {
3017
+ _class_call_check(this, z);
3018
+ var _this;
3019
+ _this = _super.call(this), _this._$Ep = void 0, _this.isUpdatePending = false, _this.hasUpdated = false, _this._$Em = null, _this._$Ev();
3020
+ return _possible_constructor_return(_this);
3021
+ }
3022
+ _create_class(z, [
3023
+ {
3024
+ key: "_$Ev",
3025
+ value: function _$Ev() {
3026
+ var _this = this;
3027
+ var _this_constructor_l;
3028
+ this._$ES = new Promise(function(t) {
3029
+ return _this.enableUpdating = t;
3030
+ }), 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) {
3031
+ return t(_this);
3032
+ });
3033
+ }
3034
+ },
3035
+ {
3036
+ key: "addController",
3037
+ value: function addController(t) {
3038
+ var _t_hostConnected;
3039
+ var _this__$EO;
3040
+ ((_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));
3041
+ }
3042
+ },
3043
+ {
3044
+ key: "removeController",
3045
+ value: function removeController(t) {
3046
+ var _this__$EO;
3047
+ (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.delete(t);
3048
+ }
3049
+ },
3050
+ {
3051
+ key: "_$E_",
3052
+ value: function _$E_() {
3053
+ var t = new Map, e = this.constructor.elementProperties;
3054
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
3055
+ try {
3056
+ for(var _iterator = e.keys()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
3057
+ var i = _step.value;
3058
+ this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
3059
+ }
3060
+ } catch (err) {
3061
+ _didIteratorError = true;
3062
+ _iteratorError = err;
3063
+ } finally{
3064
+ try {
3065
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
3066
+ _iterator.return();
3067
+ }
3068
+ } finally{
3069
+ if (_didIteratorError) {
3070
+ throw _iteratorError;
3071
+ }
3072
+ }
3073
+ }
3074
+ t.size > 0 && (this._$Ep = t);
3075
+ }
3076
+ },
3077
+ {
3078
+ key: "createRenderRoot",
3079
+ value: function createRenderRoot() {
3080
+ var _this_shadowRoot;
3081
+ var t = (_this_shadowRoot = this.shadowRoot) !== null && _this_shadowRoot !== void 0 ? _this_shadowRoot : this.attachShadow(this.constructor.shadowRootOptions);
3082
+ return Vt(t, this.constructor.elementStyles), t;
3083
+ }
3084
+ },
3085
+ {
3086
+ key: "connectedCallback",
3087
+ value: function connectedCallback() {
3088
+ var _this__$EO;
3089
+ var _this_renderRoot;
3090
+ (_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) {
3091
+ var _t_hostConnected;
3092
+ return (_t_hostConnected = t.hostConnected) === null || _t_hostConnected === void 0 ? void 0 : _t_hostConnected.call(t);
3093
+ });
3094
+ }
3095
+ },
3096
+ {
3097
+ key: "enableUpdating",
3098
+ value: function enableUpdating(t) {}
3099
+ },
3100
+ {
3101
+ key: "disconnectedCallback",
3102
+ value: function disconnectedCallback() {
3103
+ var _this__$EO;
3104
+ (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
3105
+ var _t_hostDisconnected;
3106
+ return (_t_hostDisconnected = t.hostDisconnected) === null || _t_hostDisconnected === void 0 ? void 0 : _t_hostDisconnected.call(t);
3107
+ });
3108
+ }
3109
+ },
3110
+ {
3111
+ key: "attributeChangedCallback",
3112
+ value: function attributeChangedCallback(t, e, i) {
3113
+ this._$AK(t, i);
3114
+ }
3115
+ },
3116
+ {
3117
+ key: "_$EC",
3118
+ value: function _$EC(t, e) {
3119
+ var i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
3120
+ if (void 0 !== s && true === i.reflect) {
3121
+ var _i_converter;
3122
+ var o = (void 0 !== ((_i_converter = i.converter) === null || _i_converter === void 0 ? void 0 : _i_converter.toAttribute) ? i.converter : Kt).toAttribute(e, i.type);
3123
+ this._$Em = t, null == o ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
3124
+ }
3125
+ }
3126
+ },
3127
+ {
3128
+ key: "_$AK",
3129
+ value: function _$AK(t, e) {
3130
+ var i = this.constructor, s = i._$Eh.get(t);
3131
+ if (void 0 !== s && this._$Em !== s) {
3132
+ var _o_converter;
3133
+ var o = i.getPropertyOptions(s), n = "function" == typeof o.converter ? {
3134
+ fromAttribute: o.converter
3135
+ } : void 0 !== ((_o_converter = o.converter) === null || _o_converter === void 0 ? void 0 : _o_converter.fromAttribute) ? o.converter : Kt;
3136
+ this._$Em = s, this[s] = n.fromAttribute(e, o.type), this._$Em = null;
3137
+ }
3138
+ }
3139
+ },
3140
+ {
3141
+ key: "requestUpdate",
3142
+ value: function requestUpdate(t, e, i) {
3143
+ if (void 0 !== t) {
3144
+ var _i_hasChanged;
3145
+ if (i !== null && i !== void 0 ? i : i = this.constructor.getPropertyOptions(t), !((_i_hasChanged = i.hasChanged) !== null && _i_hasChanged !== void 0 ? _i_hasChanged : yt)(this[t], e)) return;
3146
+ this.P(t, e, i);
3147
+ }
3148
+ false === this.isUpdatePending && (this._$ES = this._$ET());
3149
+ }
3150
+ },
3151
+ {
3152
+ key: "P",
3153
+ value: function P(t, e, i) {
3154
+ var _this__$Ej;
3155
+ this._$AL.has(t) || this._$AL.set(t, e), true === i.reflect && this._$Em !== t && ((_this__$Ej = this._$Ej) !== null && _this__$Ej !== void 0 ? _this__$Ej : this._$Ej = new Set).add(t);
3156
+ }
3157
+ },
3158
+ {
3159
+ key: "_$ET",
3160
+ value: function _$ET() {
3161
+ var _this = this;
3162
+ return _async_to_generator(function() {
3163
+ var e, t, _tmp;
3164
+ return _ts_generator(this, function(_state) {
3165
+ switch(_state.label){
3166
+ case 0:
3167
+ _this.isUpdatePending = true;
3168
+ _state.label = 1;
3169
+ case 1:
3170
+ _state.trys.push([
3171
+ 1,
3172
+ 3,
3173
+ ,
3174
+ 4
3175
+ ]);
3176
+ return [
3177
+ 4,
3178
+ _this._$ES
3179
+ ];
3180
+ case 2:
3181
+ _state.sent();
3182
+ return [
3183
+ 3,
3184
+ 4
3185
+ ];
3186
+ case 3:
3187
+ e = _state.sent();
3188
+ Promise.reject(e);
3189
+ return [
3190
+ 3,
3191
+ 4
3192
+ ];
3193
+ case 4:
3194
+ t = _this.scheduleUpdate();
3195
+ _tmp = null != t;
3196
+ if (!_tmp) return [
3197
+ 3,
3198
+ 6
3199
+ ];
3200
+ return [
3201
+ 4,
3202
+ t
3203
+ ];
3204
+ case 5:
3205
+ _tmp = _state.sent();
3206
+ _state.label = 6;
3207
+ case 6:
3208
+ return [
3209
+ 2,
3210
+ (_tmp, !_this.isUpdatePending)
3211
+ ];
3212
+ }
3213
+ });
3214
+ })();
3215
+ }
3216
+ },
3217
+ {
3218
+ key: "scheduleUpdate",
3219
+ value: function scheduleUpdate() {
3220
+ return this.performUpdate();
3221
+ }
3222
+ },
3223
+ {
3224
+ key: "performUpdate",
3225
+ value: function performUpdate() {
3226
+ if (!this.isUpdatePending) return;
3227
+ if (!this.hasUpdated) {
3228
+ var _this_renderRoot;
3229
+ if ((_this_renderRoot = this.renderRoot) !== null && _this_renderRoot !== void 0 ? _this_renderRoot : this.renderRoot = this.createRenderRoot(), this._$Ep) {
3230
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
3231
+ try {
3232
+ for(var _iterator = this._$Ep[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
3233
+ var _step_value = _sliced_to_array(_step.value, 2), s = _step_value[0], o = _step_value[1];
3234
+ this[s] = o;
3235
+ }
3236
+ } catch (err) {
3237
+ _didIteratorError = true;
3238
+ _iteratorError = err;
3239
+ } finally{
3240
+ try {
3241
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
3242
+ _iterator.return();
3243
+ }
3244
+ } finally{
3245
+ if (_didIteratorError) {
3246
+ throw _iteratorError;
3247
+ }
3248
+ }
3249
+ }
3250
+ this._$Ep = void 0;
3251
+ }
3252
+ var _$i = this.constructor.elementProperties;
3253
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
3254
+ if (_$i.size > 0) try {
3255
+ for(var _iterator1 = _$i[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
3256
+ var _step_value1 = _sliced_to_array(_step1.value, 2), s1 = _step_value1[0], o1 = _step_value1[1];
3257
+ true !== o1.wrapped || this._$AL.has(s1) || void 0 === this[s1] || this.P(s1, this[s1], o1);
3258
+ }
3259
+ } catch (err) {
3260
+ _didIteratorError1 = true;
3261
+ _iteratorError1 = err;
3262
+ } finally{
3263
+ try {
3264
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
3265
+ _iterator1.return();
3266
+ }
3267
+ } finally{
3268
+ if (_didIteratorError1) {
3269
+ throw _iteratorError1;
3270
+ }
3271
+ }
3272
+ }
3273
+ }
3274
+ var t = false;
3275
+ var e = this._$AL;
3276
+ try {
3277
+ var _this__$EO;
3278
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(i) {
3279
+ var _i_hostUpdate;
3280
+ return (_i_hostUpdate = i.hostUpdate) === null || _i_hostUpdate === void 0 ? void 0 : _i_hostUpdate.call(i);
3281
+ }), this.update(e)) : this._$EU();
3282
+ } catch (i) {
3283
+ throw t = false, this._$EU(), i;
3284
+ }
3285
+ t && this._$AE(e);
3286
+ }
3287
+ },
3288
+ {
3289
+ key: "willUpdate",
3290
+ value: function willUpdate(t) {}
3291
+ },
3292
+ {
3293
+ key: "_$AE",
3294
+ value: function _$AE(t) {
3295
+ var _this__$EO;
3296
+ (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(e) {
3297
+ var _e_hostUpdated;
3298
+ return (_e_hostUpdated = e.hostUpdated) === null || _e_hostUpdated === void 0 ? void 0 : _e_hostUpdated.call(e);
3299
+ }), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
3300
+ }
3301
+ },
3302
+ {
3303
+ key: "_$EU",
3304
+ value: function _$EU() {
3305
+ this._$AL = new Map, this.isUpdatePending = false;
3306
+ }
3307
+ },
3308
+ {
3309
+ key: "updateComplete",
3310
+ get: function get() {
3311
+ return this.getUpdateComplete();
3312
+ }
3313
+ },
3314
+ {
3315
+ key: "getUpdateComplete",
3316
+ value: function getUpdateComplete() {
3317
+ return this._$ES;
3318
+ }
3319
+ },
3320
+ {
3321
+ key: "shouldUpdate",
3322
+ value: function shouldUpdate(t) {
3323
+ return true;
3324
+ }
3325
+ },
3326
+ {
3327
+ key: "update",
3328
+ value: function update(t) {
3329
+ var _this = this;
3330
+ this._$Ej && (this._$Ej = this._$Ej.forEach(function(e) {
3331
+ return _this._$EC(e, _this[e]);
3332
+ })), this._$EU();
3333
+ }
3334
+ },
3335
+ {
3336
+ key: "updated",
3337
+ value: function updated(t) {}
3338
+ },
3339
+ {
3340
+ key: "firstUpdated",
3341
+ value: function firstUpdated(t) {}
3342
+ }
3343
+ ], [
3344
+ {
3345
+ key: "addInitializer",
3346
+ value: function addInitializer(t) {
3347
+ var _this_l;
3348
+ this._$Ei(), ((_this_l = this.l) !== null && _this_l !== void 0 ? _this_l : this.l = []).push(t);
3349
+ }
3350
+ },
3351
+ {
3352
+ key: "observedAttributes",
3353
+ get: function get() {
3354
+ return this.finalize(), this._$Eh && _to_consumable_array(this._$Eh.keys());
3355
+ }
3356
+ },
3357
+ {
3358
+ key: "createProperty",
3359
+ value: function createProperty(t) {
3360
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Oe;
3361
+ if (e.state && (e.attribute = false), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
3362
+ var i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
3363
+ void 0 !== s && Ni(this.prototype, t, s);
3364
+ }
3365
+ }
3366
+ },
3367
+ {
3368
+ key: "getPropertyDescriptor",
3369
+ value: function getPropertyDescriptor(t, e, i) {
3370
+ var _Mi;
3371
+ var _ref = (_Mi = Mi(this.prototype, t)) !== null && _Mi !== void 0 ? _Mi : {
3372
+ get: function get() {
3373
+ return this[e];
3374
+ },
3375
+ set: function set(n) {
3376
+ this[e] = n;
3377
+ }
3378
+ }, s = _ref.get, o = _ref.set;
3379
+ return {
3380
+ get: function get() {
3381
+ return s === null || s === void 0 ? void 0 : s.call(this);
3382
+ },
3383
+ set: function set(n) {
3384
+ var l = s === null || s === void 0 ? void 0 : s.call(this);
3385
+ o.call(this, n), this.requestUpdate(t, l, i);
3386
+ },
3387
+ configurable: true,
3388
+ enumerable: true
3389
+ };
3390
+ }
3391
+ },
3392
+ {
3393
+ key: "getPropertyOptions",
3394
+ value: function getPropertyOptions(t) {
3395
+ var _this_elementProperties_get;
3396
+ return (_this_elementProperties_get = this.elementProperties.get(t)) !== null && _this_elementProperties_get !== void 0 ? _this_elementProperties_get : Oe;
3397
+ }
3398
+ },
3399
+ {
3400
+ key: "_$Ei",
3401
+ value: function _$Ei() {
3402
+ if (this.hasOwnProperty(tt("elementProperties"))) return;
3403
+ var t = zi(this);
3404
+ t.finalize(), void 0 !== t.l && (this.l = _to_consumable_array(t.l)), this.elementProperties = new Map(t.elementProperties);
3405
+ }
3406
+ },
3407
+ {
3408
+ key: "finalize",
3409
+ value: function finalize() {
3410
+ if (this.hasOwnProperty(tt("finalized"))) return;
3411
+ if (this.finalized = true, this._$Ei(), this.hasOwnProperty(tt("properties"))) {
3412
+ var e = this.properties, i = _to_consumable_array(Hi(e)).concat(_to_consumable_array(ji(e)));
3413
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
3414
+ try {
3415
+ for(var _iterator = i[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
3416
+ var s = _step.value;
3417
+ this.createProperty(s, e[s]);
3418
+ }
3419
+ } catch (err) {
3420
+ _didIteratorError = true;
3421
+ _iteratorError = err;
3422
+ } finally{
3423
+ try {
3424
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
3425
+ _iterator.return();
3426
+ }
3427
+ } finally{
3428
+ if (_didIteratorError) {
3429
+ throw _iteratorError;
3430
+ }
3431
+ }
3432
+ }
3433
+ }
3434
+ var t = this[Symbol.metadata];
3435
+ if (null !== t) {
3436
+ var e1 = litPropertyMetadata.get(t);
3437
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
3438
+ if (void 0 !== e1) try {
3439
+ for(var _iterator1 = e1[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
3440
+ var _step_value = _sliced_to_array(_step1.value, 2), i1 = _step_value[0], s1 = _step_value[1];
3441
+ this.elementProperties.set(i1, s1);
3442
+ }
3443
+ } catch (err) {
3444
+ _didIteratorError1 = true;
3445
+ _iteratorError1 = err;
3446
+ } finally{
3447
+ try {
3448
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
3449
+ _iterator1.return();
3450
+ }
3451
+ } finally{
3452
+ if (_didIteratorError1) {
3453
+ throw _iteratorError1;
3454
+ }
3455
+ }
3456
+ }
3457
+ }
3458
+ this._$Eh = new Map;
3459
+ var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
3460
+ try {
3461
+ for(var _iterator2 = this.elementProperties[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){
3462
+ var _step_value1 = _sliced_to_array(_step2.value, 2), e2 = _step_value1[0], i2 = _step_value1[1];
3463
+ var s2 = this._$Eu(e2, i2);
3464
+ void 0 !== s2 && this._$Eh.set(s2, e2);
3465
+ }
3466
+ } catch (err) {
3467
+ _didIteratorError2 = true;
3468
+ _iteratorError2 = err;
3469
+ } finally{
3470
+ try {
3471
+ if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
3472
+ _iterator2.return();
3473
+ }
3474
+ } finally{
3475
+ if (_didIteratorError2) {
3476
+ throw _iteratorError2;
3477
+ }
3478
+ }
3479
+ }
3480
+ this.elementStyles = this.finalizeStyles(this.styles);
3481
+ }
3482
+ },
3483
+ {
3484
+ key: "finalizeStyles",
3485
+ value: function finalizeStyles(t) {
3486
+ var e = [];
3487
+ if (Array.isArray(t)) {
3488
+ var i = new Set(t.flat(1 / 0).reverse());
3489
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
3490
+ try {
3491
+ for(var _iterator = i[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
3492
+ var s = _step.value;
3493
+ e.unshift(vt(s));
3494
+ }
3495
+ } catch (err) {
3496
+ _didIteratorError = true;
3497
+ _iteratorError = err;
3498
+ } finally{
3499
+ try {
3500
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
3501
+ _iterator.return();
3502
+ }
3503
+ } finally{
3504
+ if (_didIteratorError) {
3505
+ throw _iteratorError;
3506
+ }
3507
+ }
3508
+ }
3509
+ } else void 0 !== t && e.push(vt(t));
3510
+ return e;
3511
+ }
3512
+ },
3513
+ {
3514
+ key: "_$Eu",
3515
+ value: function _$Eu(t, e) {
3516
+ var i = e.attribute;
3517
+ return false === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
3518
+ }
3519
+ }
3520
+ ]);
3521
+ return z;
3522
+ }(_wrap_native_super(HTMLElement));
3523
+ var _I_reactiveElementVersions;
3524
+ z.elementStyles = [], z.shadowRootOptions = {
3525
+ mode: "open"
3526
+ }, z[tt("elementProperties")] = new Map, z[tt("finalized")] = new Map, Bi === null || Bi === void 0 ? void 0 : Bi({
3527
+ ReactiveElement: z
3528
+ }), ((_I_reactiveElementVersions = I.reactiveElementVersions) !== null && _I_reactiveElementVersions !== void 0 ? _I_reactiveElementVersions : I.reactiveElementVersions = []).push("2.0.4");
3529
+ var Re = Symbol();
3530
+ var et = /*#__PURE__*/ function() {
3531
+ function et(t, e, i) {
3532
+ _class_call_check(this, et);
3533
+ var _this_T, _this;
3534
+ this.p = 0, this.i = 0, (this._ = t).addController(this);
3535
+ var s = "object" == (typeof e === "undefined" ? "undefined" : _type_of(e)) ? e : {
3536
+ task: e,
3537
+ args: i
3538
+ };
3539
+ var _s_argsEqual, _s_autoRun;
3540
+ this.v = s.task, this.j = s.args, this.m = (_s_argsEqual = s.argsEqual) !== null && _s_argsEqual !== void 0 ? _s_argsEqual : Le, this.k = s.onComplete, this.A = s.onError, this.autoRun = (_s_autoRun = s.autoRun) !== null && _s_autoRun !== void 0 ? _s_autoRun : true, "initialValue" in s && (this.u = s.initialValue, this.i = 2, this.O = (_this_T = (_this = this).T) === null || _this_T === void 0 ? void 0 : _this_T.call(_this));
3541
+ }
3542
+ _create_class(et, [
3543
+ {
3544
+ key: "taskComplete",
3545
+ get: function get() {
3546
+ var _this = this;
3547
+ return this.t || (1 === this.i ? this.t = new Promise(function(t, e) {
3548
+ _this.o = t, _this.h = e;
3549
+ }) : 3 === this.i ? this.t = Promise.reject(this.l) : this.t = Promise.resolve(this.u)), this.t;
3550
+ }
3551
+ },
3552
+ {
3553
+ key: "hostUpdate",
3554
+ value: function hostUpdate() {
3555
+ true === this.autoRun && this.S();
3556
+ }
3557
+ },
3558
+ {
3559
+ key: "hostUpdated",
3560
+ value: function hostUpdated() {
3561
+ "afterUpdate" === this.autoRun && this.S();
3562
+ }
3563
+ },
3564
+ {
3565
+ key: "T",
3566
+ value: function T() {
3567
+ if (void 0 === this.j) return;
3568
+ var t = this.j();
3569
+ if (!Array.isArray(t)) throw Error("The args function must return an array");
3570
+ return t;
3571
+ }
3572
+ },
3573
+ {
3574
+ key: "S",
3575
+ value: function S() {
3576
+ var _this = this;
3577
+ return _async_to_generator(function() {
3578
+ var t, e, _tmp;
3579
+ return _ts_generator(this, function(_state) {
3580
+ switch(_state.label){
3581
+ case 0:
3582
+ t = _this.T(), e = _this.O;
3583
+ _this.O = t;
3584
+ _tmp = t === e || void 0 === t || void 0 !== e && _this.m(e, t);
3585
+ if (_tmp) return [
3586
+ 3,
3587
+ 2
3588
+ ];
3589
+ return [
3590
+ 4,
3591
+ _this.run(t)
3592
+ ];
3593
+ case 1:
3594
+ _tmp = _state.sent();
3595
+ _state.label = 2;
3596
+ case 2:
3597
+ _tmp;
3598
+ return [
3599
+ 2
3600
+ ];
3601
+ }
3602
+ });
3603
+ })();
3604
+ }
3605
+ },
3606
+ {
3607
+ key: "run",
3608
+ value: function run(t) {
3609
+ var _this = this;
3610
+ return _async_to_generator(function() {
3611
+ var _this_q, e, i, s, o, n, _this_o, _this1, _this_k, _this2, _this_h, _this3, _this_A, _this4;
3612
+ return _ts_generator(this, function(_state) {
3613
+ switch(_state.label){
3614
+ case 0:
3615
+ t !== null && t !== void 0 ? t : t = _this.T(), _this.O = t, 1 === _this.i ? (_this_q = _this.q) === null || _this_q === void 0 ? void 0 : _this_q.abort() : (_this.t = void 0, _this.o = void 0, _this.h = void 0), _this.i = 1, "afterUpdate" === _this.autoRun ? queueMicrotask(function() {
3616
+ return _this._.requestUpdate();
3617
+ }) : _this._.requestUpdate();
3618
+ s = ++_this.p;
3619
+ _this.q = new AbortController;
3620
+ o = false;
3621
+ _state.label = 1;
3622
+ case 1:
3623
+ _state.trys.push([
3624
+ 1,
3625
+ 3,
3626
+ ,
3627
+ 4
3628
+ ]);
3629
+ return [
3630
+ 4,
3631
+ _this.v(t, {
3632
+ signal: _this.q.signal
3633
+ })
3634
+ ];
3635
+ case 2:
3636
+ e = _state.sent();
3637
+ return [
3638
+ 3,
3639
+ 4
3640
+ ];
3641
+ case 3:
3642
+ n = _state.sent();
3643
+ o = true, i = n;
3644
+ return [
3645
+ 3,
3646
+ 4
3647
+ ];
3648
+ case 4:
3649
+ if (_this.p === s) {
3650
+ if (e === Re) _this.i = 0;
3651
+ else {
3652
+ if (false === o) {
3653
+ ;
3654
+ try {
3655
+ ;
3656
+ (_this_k = (_this2 = _this).k) === null || _this_k === void 0 ? void 0 : _this_k.call(_this2, e);
3657
+ } catch (e) {}
3658
+ _this.i = 2, (_this_o = (_this1 = _this).o) === null || _this_o === void 0 ? void 0 : _this_o.call(_this1, e);
3659
+ } else {
3660
+ ;
3661
+ try {
3662
+ ;
3663
+ (_this_A = (_this4 = _this).A) === null || _this_A === void 0 ? void 0 : _this_A.call(_this4, i);
3664
+ } catch (e) {}
3665
+ _this.i = 3, (_this_h = (_this3 = _this).h) === null || _this_h === void 0 ? void 0 : _this_h.call(_this3, i);
3666
+ }
3667
+ _this.u = e, _this.l = i;
3668
+ }
3669
+ _this._.requestUpdate();
3670
+ }
3671
+ return [
3672
+ 2
3673
+ ];
3674
+ }
3675
+ });
3676
+ })();
3677
+ }
3678
+ },
3679
+ {
3680
+ key: "abort",
3681
+ value: function abort(t) {
3682
+ var _this_q;
3683
+ 1 === this.i && ((_this_q = this.q) === null || _this_q === void 0 ? void 0 : _this_q.abort(t));
3684
+ }
3685
+ },
3686
+ {
3687
+ key: "value",
3688
+ get: function get() {
3689
+ return this.u;
3690
+ }
3691
+ },
3692
+ {
3693
+ key: "error",
3694
+ get: function get() {
3695
+ return this.l;
3696
+ }
3697
+ },
3698
+ {
3699
+ key: "status",
3700
+ get: function get() {
3701
+ return this.i;
3702
+ }
3703
+ },
3704
+ {
3705
+ key: "render",
3706
+ value: function render(t) {
3707
+ switch(this.i){
3708
+ case 0:
3709
+ var _t_initial;
3710
+ return (_t_initial = t.initial) === null || _t_initial === void 0 ? void 0 : _t_initial.call(t);
3711
+ case 1:
3712
+ var _t_pending;
3713
+ return (_t_pending = t.pending) === null || _t_pending === void 0 ? void 0 : _t_pending.call(t);
3714
+ case 2:
3715
+ var _t_complete;
3716
+ return (_t_complete = t.complete) === null || _t_complete === void 0 ? void 0 : _t_complete.call(t, this.value);
3717
+ case 3:
3718
+ var _t_error;
3719
+ return (_t_error = t.error) === null || _t_error === void 0 ? void 0 : _t_error.call(t, this.error);
3720
+ default:
3721
+ throw Error("Unexpected status: " + this.i);
3722
+ }
3723
+ }
3724
+ }
3725
+ ]);
3726
+ return et;
3727
+ }();
3728
+ var Le = function(r, t) {
3729
+ return r === t || r.length === t.length && r.every(function(e, i) {
3730
+ return !yt(e, t[i]);
3731
+ });
3732
+ };
3733
+ var qi = function() {
3734
+ var _window_AppcuesSettings;
3735
+ var r = {};
3736
+ var t = (_window_AppcuesSettings = window.AppcuesSettings) === null || _window_AppcuesSettings === void 0 ? void 0 : _window_AppcuesSettings.userIdSignature;
3737
+ if (t) {
3738
+ r = {
3739
+ Authorization: "Bearer ".concat(t)
3740
+ };
3741
+ }
3742
+ return r;
3743
+ };
3744
+ var Ne = function() {
3745
+ var _ref = _async_to_generator(function(r, t) {
3746
+ var e, i;
3747
+ return _ts_generator(this, function(_state) {
3748
+ switch(_state.label){
3749
+ case 0:
3750
+ e = qi();
3751
+ return [
3752
+ 4,
3753
+ fetch(r, _object_spread({
3754
+ headers: e
3755
+ }, t))
3756
+ ];
3757
+ case 1:
3758
+ i = _state.sent();
3759
+ return [
3760
+ 2,
3761
+ i
3762
+ ];
3763
+ }
3764
+ });
3765
+ });
3766
+ return function Ne(r, t) {
3767
+ return _ref.apply(this, arguments);
3768
+ };
3769
+ }();
3770
+ var Me = false ? "https://api-main.staging.us-west-2.aws.appcues.net/v1" : "https://api.appcues.net/v1/";
3771
+ var He = m(_templateObject1());
3772
+ var je = m(_templateObject2());
3773
+ var ze = m(_templateObject3());
3774
+ var De = m(_templateObject4());
3775
+ var Be = m(_templateObject5());
3776
+ var qe = E(_templateObject6());
3777
+ var Vi = JSON.stringify([
3778
+ {
3779
+ id: "1",
3780
+ name: "Item 1",
3781
+ publicName: "Item 1 public lorem ipsum dolor lorem impsum"
3782
+ },
3783
+ {
3784
+ id: "2",
3785
+ name: "Item 2"
3786
+ },
3787
+ {
3788
+ id: "3",
3789
+ name: "Item 3"
3790
+ },
3791
+ {
3792
+ id: "4",
3793
+ name: "Item 4"
3794
+ },
3795
+ {
3796
+ id: "5",
3797
+ name: "Item 5"
3798
+ }
3799
+ ]);
3800
+ var Ki = function() {
3801
+ var _ref = _async_to_generator(function(param, e) {
3802
+ var r, t, i, s, o;
3803
+ return _ts_generator(this, function(_state) {
3804
+ switch(_state.label){
3805
+ case 0:
3806
+ r = param.accountId, t = param.userId;
3807
+ if (!r || !t) {
3808
+ return [
3809
+ 2,
3810
+ []
3811
+ ];
3812
+ }
3813
+ i = window.location.href;
3814
+ s = new URL("".concat(Me, "/accounts/").concat(r, "/users/").concat(t, "/widget"));
3815
+ s.searchParams.set("url", i);
3816
+ s.searchParams.set("order_by", e);
3817
+ return [
3818
+ 4,
3819
+ Ne(s.toString())
3820
+ ];
3821
+ case 1:
3822
+ o = _state.sent();
3823
+ return [
3824
+ 2,
3825
+ o.json()
3826
+ ];
3827
+ }
3828
+ });
3829
+ });
3830
+ return function Ki(_, e) {
3831
+ return _ref.apply(this, arguments);
3832
+ };
3833
+ }();
3834
+ var k = /*#__PURE__*/ function(y) {
3835
+ _inherits(k, y);
3836
+ var _super = _create_super(k);
3837
+ function k() {
3838
+ _class_call_check(this, k);
3839
+ var _this;
3840
+ var _this1;
3841
+ _this = _super.call.apply(_super, [
3842
+ this
3843
+ ].concat(Array.prototype.slice.call(arguments))), _this1 = _assert_this_initialized(_this);
3844
+ _this.listItems = [];
3845
+ _this.orderBy = "sort_order";
3846
+ _this.limit = 5;
3847
+ _this.listMock = Vi;
3848
+ _this.mode = "live";
3849
+ _this.fetchListItems = /*#__PURE__*/ _async_to_generator(function() {
3850
+ var _Appcues, _AppcuesBundleSettings, _ref, e, _ref1, i, s;
3851
+ return _ts_generator(this, function(_state) {
3852
+ switch(_state.label){
3853
+ case 0:
3854
+ if (_this1.mode === "preview") {
3855
+ _this1.listItems = JSON.parse(_this1.listMock);
3856
+ return [
3857
+ 2,
3858
+ JSON.parse(_this1.listMock)
3859
+ ];
3860
+ }
3861
+ return [
3862
+ 4,
3863
+ (_Appcues = Appcues) === null || _Appcues === void 0 ? void 0 : _Appcues.user()
3864
+ ];
3865
+ case 1:
3866
+ e = (_ref = _state.sent()) !== null && _ref !== void 0 ? _ref : {};
3867
+ return [
3868
+ 4,
3869
+ Ki({
3870
+ accountId: (_AppcuesBundleSettings = AppcuesBundleSettings) === null || _AppcuesBundleSettings === void 0 ? void 0 : _AppcuesBundleSettings.accountId,
3871
+ userId: e === null || e === void 0 ? void 0 : e.userId
3872
+ }, _this1.orderBy)
3873
+ ];
3874
+ case 2:
3875
+ _ref1 = _state.sent(), i = _ref1.contents;
3876
+ s = i.map(function(param) {
3877
+ var o = param.id, n = param.name, l = param.public_name;
3878
+ return {
3879
+ id: o,
3880
+ name: n,
3881
+ publicName: l
3882
+ };
3883
+ });
3884
+ _this1.listItems = s;
3885
+ return [
3886
+ 2,
3887
+ s
3888
+ ];
3889
+ }
3890
+ });
3891
+ });
3892
+ _this.getListItems = new et(_assert_this_initialized(_this), {
3893
+ task: _this.fetchListItems,
3894
+ args: function() {
3895
+ return [];
3896
+ }
3897
+ });
3898
+ _this.handleItemClick = function(e) {
3899
+ return function() {
3900
+ var i = new CustomEvent("flow-item-clicked", {
3901
+ detail: _this.listItems.find(function(s) {
3902
+ return s.id === e;
3903
+ }),
3904
+ bubbles: true,
3905
+ composed: true
3906
+ });
3907
+ _this.dispatchEvent(i);
3908
+ };
3909
+ };
3910
+ _this.handleItemHover = function(e) {
3911
+ return function() {
3912
+ var i = new CustomEvent("flow-item-hovered", {
3913
+ detail: _this.listItems.find(function(s) {
3914
+ return s.id === e;
3915
+ }),
3916
+ bubbles: true,
3917
+ composed: true
3918
+ });
3919
+ _this.dispatchEvent(i);
3920
+ };
3921
+ };
3922
+ _this.containerTemplate = function(e) {
3923
+ return p(_templateObject10(), ze, e.slice(0, _this.limit).map(_this.itemTemplate));
3924
+ };
3925
+ _this.itemTemplate = function(e) {
3926
+ var _e_publicName;
3927
+ return p(_templateObject11(), _this.handleItemClick(e.id), _this.handleItemHover(e.id), (_e_publicName = e.publicName) !== null && _e_publicName !== void 0 ? _e_publicName : e.name);
3928
+ };
3929
+ _this.emptyMessageTemplate = p(_templateObject12());
3930
+ return _possible_constructor_return(_this);
3931
+ }
3932
+ _create_class(k, [
3933
+ {
3934
+ key: "connectedCallback",
3935
+ value: function connectedCallback() {
3936
+ var _this = this;
3937
+ _get(_get_prototype_of(k.prototype), "connectedCallback", this).call(this);
3938
+ if (this.mode !== "live") {
3939
+ var e = new MutationObserver(function(i) {
3940
+ i.forEach(function(s) {
3941
+ var _s_addedNodes = _sliced_to_array(s.addedNodes, 1), o = _s_addedNodes[0];
3942
+ if (s.type === "attributes" || o && [
3943
+ "UL",
3944
+ "LI",
3945
+ "SPAN"
3946
+ ].includes(o.nodeName)) {
3947
+ _this.getListItems.run();
3948
+ }
3949
+ });
3950
+ });
3951
+ e.observe(this, {
3952
+ childList: true,
3953
+ subtree: true,
3954
+ attributes: true
3955
+ });
3956
+ }
3957
+ }
3958
+ },
3959
+ {
3960
+ key: "render",
3961
+ value: function render() {
3962
+ var _this = this;
3963
+ return p(_templateObject9(), this.getListItems.render({
3964
+ pending: function() {
3965
+ return p(_templateObject7(), qe);
3966
+ },
3967
+ complete: function(e) {
3968
+ return e.slice(0, _this.limit).length === 0 ? _this.emptyMessageTemplate : _this.containerTemplate(e);
3969
+ },
3970
+ error: function() {
3971
+ return p(_templateObject8());
3972
+ }
3973
+ }));
3974
+ }
3975
+ }
3976
+ ]);
3977
+ return k;
3978
+ }(y);
3979
+ k.styles = [
3980
+ He,
3981
+ je,
3982
+ Be,
3983
+ De
3984
+ ];
3985
+ h([
3986
+ S()
3987
+ ], k.prototype, "listItems", 2);
3988
+ h([
3989
+ d()
3990
+ ], k.prototype, "orderBy", 2);
3991
+ h([
3992
+ d({
3993
+ type: Number
3994
+ })
3995
+ ], k.prototype, "limit", 2);
3996
+ h([
3997
+ d()
3998
+ ], k.prototype, "listMock", 2);
3999
+ h([
4000
+ d({
4001
+ type: String
4002
+ })
4003
+ ], k.prototype, "mode", 2);
4004
+ $("appcues-flows-list", k);
4005
+ var Fi = "appcues:checklist_ready";
4006
+ var Ji = "appcues:checklist_close";
4007
+ var Yi = "appcues:toggle_checklist";
4008
+ var Wi = "appcues:confirm_checklist_ready";
4009
+ var Ve = function Ve(r, t) {
4010
+ window.addEventListener(r, t);
4011
+ return function() {
4012
+ return window.removeEventListener(r, t);
4013
+ };
4014
+ };
4015
+ var Ke = function Ke(r) {
4016
+ return Ve(Fi, r);
4017
+ };
4018
+ var Fe = function Fe(r) {
4019
+ return Ve(Ji, r);
4020
+ };
4021
+ var Ft = function Ft() {
4022
+ var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
4023
+ var e = new CustomEvent(Yi, {
4024
+ detail: {
4025
+ checklistId: r,
4026
+ forceClose: t
4027
+ }
4028
+ });
4029
+ window.dispatchEvent(e);
4030
+ };
4031
+ var Je = function Je() {
4032
+ var r = new CustomEvent(Wi);
4033
+ window.dispatchEvent(r);
4034
+ };
4035
+ var Ye = m(_templateObject13());
4036
+ var We = m(_templateObject14());
4037
+ var Ze = m(_templateObject15());
4038
+ var _ = /*#__PURE__*/ function(y) {
4039
+ _inherits(_, y);
4040
+ var _super = _create_super(_);
4041
+ function _() {
4042
+ _class_call_check(this, _);
4043
+ var _this;
4044
+ _this = _super.call.apply(_super, [
4045
+ this
4046
+ ].concat(Array.prototype.slice.call(arguments)));
4047
+ _this.title = "Checklist";
4048
+ _this.totalItems = 0;
4049
+ _this.completedItems = 0;
4050
+ _this.activeColor = "#4848eb";
4051
+ _this.hoverColor = "#4848eb";
4052
+ _this.mainColor = "#0072d6";
4053
+ _this.checklistId = "";
4054
+ _this.handleSlotchange = function(e) {
4055
+ var i = e.target;
4056
+ var s = i === null || i === void 0 ? void 0 : i.assignedNodes({
4057
+ flatten: true
4058
+ });
4059
+ var o = s.find(function(c) {
4060
+ if (!c.querySelector) return false;
4061
+ return c.querySelector("button");
4062
+ });
4063
+ var n = o === null || o === void 0 ? void 0 : o.querySelector("button");
4064
+ if (!n) return;
4065
+ var _getComputedStyle = getComputedStyle(n), l = _getComputedStyle.backgroundColor, a = _getComputedStyle.background;
4066
+ _this.mainColor = l || a;
4067
+ _this.style.setProperty("--launcher-main-color", _this.mainColor);
4068
+ };
4069
+ _this.progressbar = function() {
4070
+ if (_this.totalItems > 8) {
4071
+ return p(_templateObject18(), _this.completedItems, _this.totalItems);
4072
+ }
4073
+ var e = [];
4074
+ for(var i = 0; i < _this.totalItems; i++){
4075
+ e.push(p(_templateObject19(), i < _this.completedItems && "completed"));
4076
+ }
4077
+ return e;
4078
+ };
4079
+ _this.slotElement = function() {
4080
+ return p(_templateObject20(), _this.handleSlotchange);
4081
+ };
4082
+ return _this;
4083
+ }
4084
+ _create_class(_, [
4085
+ {
4086
+ key: "connectedCallback",
4087
+ value: function connectedCallback() {
4088
+ var _this = this;
4089
+ _get(_get_prototype_of(_.prototype), "connectedCallback", this).call(this);
4090
+ this.totalItems = Number.parseInt(this.getAttribute("totalitems") || "0", 10);
4091
+ this.completedItems = Number.parseInt(this.getAttribute("completeditems") || "0", 10);
4092
+ this.title = this.getAttribute("title") || "Checklist";
4093
+ Ke(function(e) {
4094
+ var i = e;
4095
+ var _i_detail = i.detail, s = _i_detail.id, o = _i_detail.name, n = _i_detail.totalItems, l = _i_detail.completedItems;
4096
+ _this.totalItems = n;
4097
+ _this.completedItems = l;
4098
+ _this.title = o;
4099
+ _this.checklistId = s;
4100
+ Je();
4101
+ });
4102
+ Fe(function() {
4103
+ _this.totalItems = 0;
4104
+ _this.completedItems = 0;
4105
+ _this.title = "Checklist";
4106
+ _this.checklistId = "";
4107
+ });
4108
+ }
4109
+ },
4110
+ {
4111
+ key: "attributeChangedCallback",
4112
+ value: function attributeChangedCallback(e, i, s) {
4113
+ if (e === "totalitems") {
4114
+ var o = Number.parseInt(s || "0", 10);
4115
+ this.totalItems = o > 0 ? o : 0;
4116
+ }
4117
+ if (e === "completeditems") {
4118
+ var o1 = Number.parseInt(s || "0", 10);
4119
+ if (o1 > this.totalItems) this.completedItems = this.totalItems;
4120
+ else if (o1 < 0) this.completedItems = 0;
4121
+ else this.completedItems = o1;
4122
+ }
4123
+ if (e === "title") {
4124
+ this.title = s || "Checklist";
4125
+ }
4126
+ if (e === "hovercolor") {
4127
+ this.hoverColor = s || "#4848eb";
4128
+ this.style.setProperty("--launcher-hover-color", this.hoverColor);
4129
+ }
4130
+ if (e === "activecolor") {
4131
+ this.activeColor = s || "#8c8cff";
4132
+ this.style.setProperty("--launcher-active-color", this.activeColor);
4133
+ }
4134
+ }
4135
+ },
4136
+ {
4137
+ key: "render",
4138
+ value: function render() {
4139
+ var _this = this;
4140
+ return p(_templateObject17(), this.totalItems === 0 ? this.slotElement() : p(_templateObject16(), function() {
4141
+ return Ft(_this.checklistId);
4142
+ }, this.title, this.progressbar(), this.totalItems > 0 && "active", {
4143
+ handleEvent: function() {
4144
+ return Ft(_this.checklistId, true);
4145
+ },
4146
+ capture: true
4147
+ }, this.slotElement()));
4148
+ }
4149
+ }
4150
+ ]);
4151
+ return _;
4152
+ }(y);
4153
+ _.styles = [
4154
+ Ye,
4155
+ We,
4156
+ Ze
4157
+ ];
4158
+ h([
4159
+ d()
4160
+ ], _.prototype, "title", 2);
4161
+ h([
4162
+ d()
4163
+ ], _.prototype, "totalItems", 2);
4164
+ h([
4165
+ d()
4166
+ ], _.prototype, "completedItems", 2);
4167
+ h([
4168
+ d()
4169
+ ], _.prototype, "activeColor", 2);
4170
+ h([
4171
+ d()
4172
+ ], _.prototype, "hoverColor", 2);
4173
+ h([
4174
+ S()
4175
+ ], _.prototype, "mainColor", 2);
4176
+ h([
4177
+ S()
4178
+ ], _.prototype, "checklistId", 2);
4179
+ $("appcues-checklist-wrapper", _);
4180
+ var Ge = m(_templateObject21());
4181
+ var Xe = m(_templateObject22());
4182
+ var Qe = m(_templateObject23());
4183
+ var K = /*#__PURE__*/ function(y) {
4184
+ _inherits(K, y);
4185
+ var _super = _create_super(K);
4186
+ function K() {
4187
+ _class_call_check(this, K);
4188
+ var _this;
4189
+ _this = _super.call.apply(_super, [
4190
+ this
4191
+ ].concat(Array.prototype.slice.call(arguments)));
4192
+ _this.status = "idle";
4193
+ _this.animation = "";
4194
+ _this.minHeight = "auto";
4195
+ return _this;
4196
+ }
4197
+ _create_class(K, [
4198
+ {
4199
+ key: "show",
4200
+ value: function show() {
4201
+ var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, tmp = _ref.animation, e = tmp === void 0 ? "" : tmp;
4202
+ if (e !== "") {
4203
+ this.animation = e;
4204
+ }
4205
+ this.status = "showing";
4206
+ }
4207
+ },
4208
+ {
4209
+ key: "hide",
4210
+ value: function hide() {
4211
+ var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, tmp = _ref.animation, e = tmp === void 0 ? "" : tmp;
4212
+ if (e !== "") {
4213
+ this.animation = e;
4214
+ }
4215
+ this.status = "hidden";
4216
+ }
4217
+ },
4218
+ {
4219
+ key: "render",
4220
+ value: function render() {
4221
+ return p(_templateObject24(), this.status, this.animation && "animated", this.animation, [
4222
+ "hidden",
4223
+ "idle"
4224
+ ].includes(this.status));
4225
+ }
4226
+ }
4227
+ ]);
4228
+ return K;
4229
+ }(y);
4230
+ K.styles = [
4231
+ Ge,
4232
+ Xe,
4233
+ Qe
4234
+ ];
4235
+ h([
4236
+ S()
4237
+ ], K.prototype, "status", 2);
4238
+ h([
4239
+ d()
4240
+ ], K.prototype, "minHeight", 2);
4241
+ $("appcues-page", K);
4242
+ var ti = m(_templateObject25());
4243
+ var A = /*#__PURE__*/ function(y) {
4244
+ _inherits(A, y);
4245
+ var _super = _create_super(A);
4246
+ function A() {
4247
+ _class_call_check(this, A);
4248
+ var _this;
4249
+ _this = _super.call.apply(_super, [
4250
+ this
4251
+ ].concat(Array.prototype.slice.call(arguments)));
4252
+ _this.currentPage = 0;
4253
+ _this.pages = [];
4254
+ _this.currentHeight = "auto";
4255
+ _this.entry = "slide-in-bottom";
4256
+ _this.exit = "slide-out-bottom";
4257
+ return _this;
4258
+ }
4259
+ _create_class(A, [
4260
+ {
4261
+ key: "getChildren",
4262
+ value: function getChildren() {
4263
+ if (!this.shadowRoot) return [];
4264
+ var e = this.shadowRoot.querySelector("slot");
4265
+ var _e_assignedElements;
4266
+ return (_e_assignedElements = e === null || e === void 0 ? void 0 : e.assignedElements({
4267
+ flatten: true
4268
+ })) !== null && _e_assignedElements !== void 0 ? _e_assignedElements : [];
4269
+ }
4270
+ },
4271
+ {
4272
+ key: "updateHeight",
4273
+ value: function updateHeight() {
4274
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.currentPage;
4275
+ var i = this.pages[e].minHeight || "auto";
4276
+ this.currentHeight = i !== "auto" ? i : "auto";
4277
+ }
4278
+ },
4279
+ {
4280
+ key: "showFirstPage",
4281
+ value: function showFirstPage() {
4282
+ this.updateHeight();
4283
+ this.pages[this.currentPage].show();
4284
+ }
4285
+ },
4286
+ {
4287
+ key: "prev",
4288
+ value: function prev() {
4289
+ if (this.currentPage <= 0) return;
4290
+ this.updateHeight(this.currentPage - 1);
4291
+ this.pages[this.currentPage].hide({
4292
+ animation: this.exit
4293
+ });
4294
+ this.pages[this.currentPage - 1].show();
4295
+ this.currentPage -= 1;
4296
+ }
4297
+ },
4298
+ {
4299
+ key: "next",
4300
+ value: function next() {
4301
+ if (this.currentPage >= this.pages.length - 1) return;
4302
+ this.currentPage += 1;
4303
+ this.updateHeight();
4304
+ this.pages[this.currentPage].show({
4305
+ animation: this.entry
4306
+ });
4307
+ this.pages[this.currentPage - 1].hide();
4308
+ }
4309
+ },
4310
+ {
4311
+ key: "goTo",
4312
+ value: function goTo() {
4313
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
4314
+ if (e === this.currentPage) return;
4315
+ this.pages[e].show({
4316
+ animation: e !== 0 ? this.entry : ""
4317
+ });
4318
+ this.pages[this.currentPage].hide({
4319
+ animation: this.currentPage !== 0 ? this.exit : ""
4320
+ });
4321
+ this.currentPage = e;
4322
+ this.updateHeight();
4323
+ }
4324
+ },
4325
+ {
4326
+ key: "firstUpdated",
4327
+ value: function firstUpdated() {
4328
+ this.pages = this.getChildren();
4329
+ this.showFirstPage();
4330
+ }
4331
+ },
4332
+ {
4333
+ key: "connectedCallback",
4334
+ value: function connectedCallback() {
4335
+ _get(_get_prototype_of(A.prototype), "connectedCallback", this).call(this);
4336
+ }
4337
+ },
4338
+ {
4339
+ key: "render",
4340
+ value: function render() {
4341
+ return p(_templateObject26(), this.currentHeight, this.currentHeight, this.currentPage !== 0 ? "grow" : "shrink");
4342
+ }
4343
+ }
4344
+ ]);
4345
+ return A;
4346
+ }(y);
4347
+ A.styles = [
4348
+ ti
4349
+ ];
4350
+ h([
4351
+ S()
4352
+ ], A.prototype, "currentPage", 2);
4353
+ h([
4354
+ S()
4355
+ ], A.prototype, "pages", 2);
4356
+ h([
4357
+ S()
4358
+ ], A.prototype, "currentHeight", 2);
4359
+ h([
4360
+ d()
4361
+ ], A.prototype, "entry", 2);
4362
+ h([
4363
+ d()
4364
+ ], A.prototype, "exit", 2);
4365
+ $("appcues-navigation-stack", A);
4366
+ var hi = Ci(si());
4367
+ var oi = E(_templateObject27());
4368
+ var ni = E(_templateObject28());
4369
+ var Wt = E(_templateObject29());
4370
+ var ai = m(_templateObject30());
4371
+ var li = m(_templateObject31());
4372
+ var ci = m(_templateObject32());
4373
+ var F = /*#__PURE__*/ function(y) {
4374
+ _inherits(F, y);
4375
+ var _super = _create_super(F);
4376
+ function F() {
4377
+ _class_call_check(this, F);
4378
+ var _this;
4379
+ _this = _super.call.apply(_super, [
4380
+ this
4381
+ ].concat(Array.prototype.slice.call(arguments)));
4382
+ _this.showSearchBar = null;
4383
+ _this.loading = false;
4384
+ _this.handleSubmit = function() {
4385
+ var _this_shadowRoot;
4386
+ var e = (_this_shadowRoot = _this.shadowRoot) === null || _this_shadowRoot === void 0 ? void 0 : _this_shadowRoot.querySelector("input");
4387
+ var i = (e === null || e === void 0 ? void 0 : e.value) || "";
4388
+ _this.dispatchEvent(new CustomEvent("onSearch", {
4389
+ detail: {
4390
+ inputValue: i
4391
+ },
4392
+ bubbles: true,
4393
+ composed: true
4394
+ }));
4395
+ _this.requestUpdate();
4396
+ };
4397
+ _this.handleSearch = (0, hi.default)(_this.handleSubmit, 700);
4398
+ return _this;
4399
+ }
4400
+ _create_class(F, [
4401
+ {
4402
+ key: "setSearchMode",
4403
+ value: function setSearchMode(e) {
4404
+ var _this_shadowRoot;
4405
+ this.showSearchBar = e;
4406
+ var i = (_this_shadowRoot = this.shadowRoot) === null || _this_shadowRoot === void 0 ? void 0 : _this_shadowRoot.querySelector("input");
4407
+ this.requestUpdate();
4408
+ if (e) {
4409
+ setTimeout(function() {
4410
+ i === null || i === void 0 ? void 0 : i.focus();
4411
+ }, 100);
4412
+ } else {
4413
+ this.dispatchEvent(new CustomEvent("onCancel", {
4414
+ bubbles: true,
4415
+ composed: true
4416
+ }));
4417
+ if (i) {
4418
+ i.value = "";
4419
+ }
4420
+ }
4421
+ }
4422
+ },
4423
+ {
4424
+ key: "render",
4425
+ value: function render() {
4426
+ var _this = this;
4427
+ return p(_templateObject33(), this.showSearchBar === null ? "" : this.showSearchBar ? "hide" : "show", this.style, function() {
4428
+ return _this.setSearchMode(true);
4429
+ }, Wt, this.showSearchBar ? "show" : "hide", function() {
4430
+ return _this.setSearchMode(false);
4431
+ }, ni, function(e) {
4432
+ e.preventDefault();
4433
+ _this.handleSubmit();
4434
+ }, this.handleSearch, this.loading ? oi : Wt);
4435
+ }
4436
+ }
4437
+ ]);
4438
+ return F;
4439
+ }(y);
4440
+ F.styles = [
4441
+ ai,
4442
+ li,
4443
+ ci
4444
+ ];
4445
+ h([
4446
+ S()
4447
+ ], F.prototype, "showSearchBar", 2);
4448
+ h([
4449
+ d({
4450
+ converter: function(r) {
4451
+ return r === "true";
4452
+ }
4453
+ })
4454
+ ], F.prototype, "loading", 2);
4455
+ $("appcues-search-header", F);
4456
+ var di = function(r) {
4457
+ if (!r) return "";
4458
+ var t = new DOMParser().parseFromString(r, "text/html");
4459
+ return t.body.textContent || "";
4460
+ };
4461
+ var pi = m(_templateObject34());
4462
+ var ui = m(_templateObject35());
4463
+ var mi = m(_templateObject36());
4464
+ var fi = m(_templateObject37());
4465
+ var gi = E(_templateObject38());
4466
+ var vi = E(_templateObject39());
4467
+ var P = /*#__PURE__*/ function(y) {
4468
+ _inherits(P, y);
4469
+ var _super = _create_super(P);
4470
+ function P() {
4471
+ _class_call_check(this, P);
4472
+ var _this;
4473
+ _this = _super.call.apply(_super, [
4474
+ this
4475
+ ].concat(Array.prototype.slice.call(arguments)));
4476
+ _this.state = "empty";
4477
+ _this.searchTerm = "";
4478
+ _this.hasNextPage = false;
4479
+ _this.pageSize = 10;
4480
+ _this.results = [];
4481
+ _this.handleRequestNextPage = function() {
4482
+ _this.dispatchEvent(new CustomEvent("onRequestNextPage", {
4483
+ bubbles: true,
4484
+ composed: true
4485
+ }));
4486
+ };
4487
+ _this.handleLinkClicked = function(e) {
4488
+ return function() {
4489
+ _this.dispatchEvent(new CustomEvent("onLinkClicked", {
4490
+ bubbles: true,
4491
+ composed: true,
4492
+ detail: e
4493
+ }));
4494
+ };
4495
+ };
4496
+ _this.mockResultData = function() {
4497
+ _this.results = Array.from({
4498
+ length: _this.pageSize
4499
+ }).map(function(e, i) {
4500
+ return {
4501
+ url: "url ".concat(i),
4502
+ excerpt: "excerpt ".concat(i),
4503
+ title: "title ".concat(i)
4504
+ };
4505
+ });
4506
+ };
4507
+ return _this;
4508
+ }
4509
+ _create_class(P, [
4510
+ {
4511
+ key: "connectedCallback",
4512
+ value: function connectedCallback() {
4513
+ _get(_get_prototype_of(P.prototype), "connectedCallback", this).call(this);
4514
+ if (this.state === "loading") this.mockResultData();
4515
+ }
4516
+ },
4517
+ {
4518
+ key: "attributeChangedCallback",
4519
+ value: function attributeChangedCallback(e, i, s) {
4520
+ _get(_get_prototype_of(P.prototype), "attributeChangedCallback", this).call(this, e, i, s);
4521
+ if (e === "state") {
4522
+ if (s === "loading") {
4523
+ this.mockResultData();
4524
+ }
4525
+ this.state = s;
4526
+ }
4527
+ }
4528
+ },
4529
+ {
4530
+ key: "render",
4531
+ value: function render() {
4532
+ var _this = this;
4533
+ if (this.state === "empty") {
4534
+ return p(_templateObject40(), this.searchTerm);
4535
+ }
4536
+ if (this.state === "error") {
4537
+ return p(_templateObject41());
4538
+ }
4539
+ return p(_templateObject45(), this.state === "loading", this.results.map(function(e) {
4540
+ return p(_templateObject42(), _this.handleLinkClicked(e), e.url, _this.state === "loading", _this.state, e.title, vi, _this.state, di(e.excerpt));
4541
+ }), this.hasNextPage && this.state !== "loading" ? p(_templateObject43(), this.handleRequestNextPage, this.results.length, gi) : p(_templateObject44()));
4542
+ }
4543
+ }
4544
+ ]);
4545
+ return P;
4546
+ }(y);
4547
+ P.styles = [
4548
+ pi,
4549
+ mi,
4550
+ fi,
4551
+ ui
4552
+ ];
4553
+ h([
4554
+ d()
4555
+ ], P.prototype, "state", 2);
4556
+ h([
4557
+ d()
4558
+ ], P.prototype, "searchTerm", 2);
4559
+ h([
4560
+ d({
4561
+ converter: function(r) {
4562
+ return r === "true";
4563
+ }
4564
+ })
4565
+ ], P.prototype, "hasNextPage", 2);
4566
+ h([
4567
+ d()
4568
+ ], P.prototype, "pageSize", 2);
4569
+ h([
4570
+ d({
4571
+ type: Array
4572
+ })
4573
+ ], P.prototype, "results", 2);
4574
+ $("appcues-search-results", P);
4575
+ })(); /*! Bundled license information:
4576
+
4577
+ @lit/reactive-element/css-tag.js:
4578
+ (**
4579
+ * @license
4580
+ * Copyright 2019 Google LLC
4581
+ * SPDX-License-Identifier: BSD-3-Clause
4582
+ *)
4583
+
4584
+ @lit/reactive-element/reactive-element.js:
4585
+ (**
4586
+ * @license
4587
+ * Copyright 2017 Google LLC
4588
+ * SPDX-License-Identifier: BSD-3-Clause
4589
+ *)
4590
+
4591
+ lit-html/lit-html.js:
4592
+ (**
4593
+ * @license
4594
+ * Copyright 2017 Google LLC
4595
+ * SPDX-License-Identifier: BSD-3-Clause
4596
+ *)
4597
+
4598
+ @lit/reactive-element/css-tag.js:
4599
+ (**
4600
+ * @license
4601
+ * Copyright 2019 Google LLC
4602
+ * SPDX-License-Identifier: BSD-3-Clause
4603
+ *)
4604
+
4605
+ @lit/reactive-element/reactive-element.js:
4606
+ (**
4607
+ * @license
4608
+ * Copyright 2017 Google LLC
4609
+ * SPDX-License-Identifier: BSD-3-Clause
4610
+ *)
4611
+
4612
+ lit-element/lit-element.js:
4613
+ (**
4614
+ * @license
4615
+ * Copyright 2017 Google LLC
4616
+ * SPDX-License-Identifier: BSD-3-Clause
4617
+ *)
4618
+
4619
+ lit-html/is-server.js:
4620
+ (**
4621
+ * @license
4622
+ * Copyright 2022 Google LLC
4623
+ * SPDX-License-Identifier: BSD-3-Clause
4624
+ *)
4625
+
4626
+ @lit/reactive-element/decorators/custom-element.js:
4627
+ (**
4628
+ * @license
4629
+ * Copyright 2017 Google LLC
4630
+ * SPDX-License-Identifier: BSD-3-Clause
4631
+ *)
4632
+
4633
+ @lit/reactive-element/decorators/property.js:
4634
+ (**
4635
+ * @license
4636
+ * Copyright 2017 Google LLC
4637
+ * SPDX-License-Identifier: BSD-3-Clause
4638
+ *)
4639
+
4640
+ @lit/reactive-element/decorators/state.js:
4641
+ (**
4642
+ * @license
4643
+ * Copyright 2017 Google LLC
4644
+ * SPDX-License-Identifier: BSD-3-Clause
4645
+ *)
4646
+
4647
+ @lit/reactive-element/decorators/base.js:
4648
+ (**
4649
+ * @license
4650
+ * Copyright 2017 Google LLC
4651
+ * SPDX-License-Identifier: BSD-3-Clause
4652
+ *)
4653
+
4654
+ @lit/reactive-element/decorators/event-options.js:
4655
+ (**
4656
+ * @license
4657
+ * Copyright 2017 Google LLC
4658
+ * SPDX-License-Identifier: BSD-3-Clause
4659
+ *)
4660
+
4661
+ @lit/reactive-element/decorators/query.js:
4662
+ (**
4663
+ * @license
4664
+ * Copyright 2017 Google LLC
4665
+ * SPDX-License-Identifier: BSD-3-Clause
4666
+ *)
4667
+
4668
+ @lit/reactive-element/decorators/query-all.js:
4669
+ (**
4670
+ * @license
4671
+ * Copyright 2017 Google LLC
4672
+ * SPDX-License-Identifier: BSD-3-Clause
4673
+ *)
4674
+
4675
+ @lit/reactive-element/decorators/query-async.js:
4676
+ (**
4677
+ * @license
4678
+ * Copyright 2017 Google LLC
4679
+ * SPDX-License-Identifier: BSD-3-Clause
4680
+ *)
4681
+
4682
+ @lit/reactive-element/decorators/query-assigned-elements.js:
4683
+ (**
4684
+ * @license
4685
+ * Copyright 2021 Google LLC
4686
+ * SPDX-License-Identifier: BSD-3-Clause
4687
+ *)
4688
+
4689
+ @lit/reactive-element/decorators/query-assigned-nodes.js:
4690
+ (**
4691
+ * @license
4692
+ * Copyright 2017 Google LLC
4693
+ * SPDX-License-Identifier: BSD-3-Clause
4694
+ *)
4695
+
4696
+ lit-html/directive.js:
4697
+ (**
4698
+ * @license
4699
+ * Copyright 2017 Google LLC
4700
+ * SPDX-License-Identifier: BSD-3-Clause
4701
+ *)
4702
+
4703
+ lit-html/directives/unsafe-html.js:
4704
+ (**
4705
+ * @license
4706
+ * Copyright 2017 Google LLC
4707
+ * SPDX-License-Identifier: BSD-3-Clause
4708
+ *)
4709
+
4710
+ @lit/reactive-element/css-tag.js:
4711
+ (**
4712
+ * @license
4713
+ * Copyright 2019 Google LLC
4714
+ * SPDX-License-Identifier: BSD-3-Clause
4715
+ *)
4716
+
4717
+ @lit/reactive-element/reactive-element.js:
4718
+ (**
4719
+ * @license
4720
+ * Copyright 2017 Google LLC
4721
+ * SPDX-License-Identifier: BSD-3-Clause
4722
+ *)
4723
+
4724
+ @lit/task/task.js:
4725
+ (**
4726
+ * @license
4727
+ * Copyright 2017 Google LLC
4728
+ * SPDX-License-Identifier: BSD-3-Clause
4729
+ *)
4730
+ */
4731
+ //# sourceMappingURL=index.global.js.map