@decidables/decidables-elements 0.3.5 → 0.4.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.
- package/CHANGELOG.md +16 -0
- package/lib/decidablesElements.esm.js +347 -798
- package/lib/decidablesElements.esm.js.map +1 -1
- package/lib/decidablesElements.esm.min.js +61 -63
- package/lib/decidablesElements.esm.min.js.map +1 -1
- package/lib/decidablesElements.umd.js +347 -797
- package/lib/decidablesElements.umd.js.map +1 -1
- package/lib/decidablesElements.umd.min.js +61 -63
- package/lib/decidablesElements.umd.min.js.map +1 -1
- package/package.json +2 -2
- package/src/decidables-element.js +54 -1
- package/src/index.js +7 -0
- package/src/mixin-resizeable.js +51 -0
- package/src/spinner.js +15 -0
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const t$
|
|
7
|
-
e$
|
|
8
|
-
s$
|
|
9
|
-
n$
|
|
10
|
-
let o$
|
|
6
|
+
const t$1 = window,
|
|
7
|
+
e$2 = t$1.ShadowRoot && (void 0 === t$1.ShadyCSS || t$1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
8
|
+
s$3 = Symbol(),
|
|
9
|
+
n$3 = new WeakMap();
|
|
10
|
+
let o$3 = class o {
|
|
11
11
|
constructor(t, e, n) {
|
|
12
|
-
if (this._$cssResult$ = !0, n !== s$
|
|
12
|
+
if (this._$cssResult$ = !0, n !== s$3) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
13
13
|
this.cssText = t, this.t = e;
|
|
14
14
|
}
|
|
15
15
|
get styleSheet() {
|
|
16
16
|
let t = this.o;
|
|
17
17
|
const s = this.t;
|
|
18
|
-
if (e$
|
|
18
|
+
if (e$2 && void 0 === t) {
|
|
19
19
|
const e = void 0 !== s && 1 === s.length;
|
|
20
|
-
e && (t = n$
|
|
20
|
+
e && (t = n$3.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && n$3.set(s, t));
|
|
21
21
|
}
|
|
22
22
|
return t;
|
|
23
23
|
}
|
|
@@ -25,608 +25,26 @@ let o$6 = class o {
|
|
|
25
25
|
return this.cssText;
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
const r$
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const n = document.createElement("style"),
|
|
32
|
-
o = t$3.litNonce;
|
|
33
|
-
void 0 !== o && n.setAttribute("nonce", o), n.textContent = e.cssText, s.appendChild(n);
|
|
34
|
-
});
|
|
35
|
-
},
|
|
36
|
-
c$2 = e$5 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
|
|
37
|
-
let e = "";
|
|
38
|
-
for (const s of t.cssRules) e += s.cssText;
|
|
39
|
-
return r$5(e);
|
|
40
|
-
})(t) : t;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @license
|
|
44
|
-
* Copyright 2017 Google LLC
|
|
45
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
46
|
-
*/
|
|
47
|
-
var s$5;
|
|
48
|
-
const e$4 = window,
|
|
49
|
-
r$4 = e$4.trustedTypes,
|
|
50
|
-
h$3 = r$4 ? r$4.emptyScript : "",
|
|
51
|
-
o$5 = e$4.reactiveElementPolyfillSupport,
|
|
52
|
-
n$5 = {
|
|
53
|
-
toAttribute(t, i) {
|
|
54
|
-
switch (i) {
|
|
55
|
-
case Boolean:
|
|
56
|
-
t = t ? h$3 : null;
|
|
57
|
-
break;
|
|
58
|
-
case Object:
|
|
59
|
-
case Array:
|
|
60
|
-
t = null == t ? t : JSON.stringify(t);
|
|
61
|
-
}
|
|
62
|
-
return t;
|
|
63
|
-
},
|
|
64
|
-
fromAttribute(t, i) {
|
|
65
|
-
let s = t;
|
|
66
|
-
switch (i) {
|
|
67
|
-
case Boolean:
|
|
68
|
-
s = null !== t;
|
|
69
|
-
break;
|
|
70
|
-
case Number:
|
|
71
|
-
s = null === t ? null : Number(t);
|
|
72
|
-
break;
|
|
73
|
-
case Object:
|
|
74
|
-
case Array:
|
|
75
|
-
try {
|
|
76
|
-
s = JSON.parse(t);
|
|
77
|
-
} catch (t) {
|
|
78
|
-
s = null;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
return s;
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
a$3 = (t, i) => i !== t && (i == i || t == t),
|
|
85
|
-
l$5 = {
|
|
86
|
-
attribute: !0,
|
|
87
|
-
type: String,
|
|
88
|
-
converter: n$5,
|
|
89
|
-
reflect: !1,
|
|
90
|
-
hasChanged: a$3
|
|
91
|
-
};
|
|
92
|
-
let d$2 = class d extends HTMLElement {
|
|
93
|
-
constructor() {
|
|
94
|
-
super(), this._$Ei = new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this.u();
|
|
95
|
-
}
|
|
96
|
-
static addInitializer(t) {
|
|
97
|
-
var i;
|
|
98
|
-
this.finalize(), (null !== (i = this.h) && void 0 !== i ? i : this.h = []).push(t);
|
|
99
|
-
}
|
|
100
|
-
static get observedAttributes() {
|
|
101
|
-
this.finalize();
|
|
102
|
-
const t = [];
|
|
103
|
-
return this.elementProperties.forEach((i, s) => {
|
|
104
|
-
const e = this._$Ep(s, i);
|
|
105
|
-
void 0 !== e && (this._$Ev.set(e, s), t.push(e));
|
|
106
|
-
}), t;
|
|
107
|
-
}
|
|
108
|
-
static createProperty(t, i = l$5) {
|
|
109
|
-
if (i.state && (i.attribute = !1), this.finalize(), this.elementProperties.set(t, i), !i.noAccessor && !this.prototype.hasOwnProperty(t)) {
|
|
110
|
-
const s = "symbol" == typeof t ? Symbol() : "__" + t,
|
|
111
|
-
e = this.getPropertyDescriptor(t, s, i);
|
|
112
|
-
void 0 !== e && Object.defineProperty(this.prototype, t, e);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
static getPropertyDescriptor(t, i, s) {
|
|
116
|
-
return {
|
|
117
|
-
get() {
|
|
118
|
-
return this[i];
|
|
119
|
-
},
|
|
120
|
-
set(e) {
|
|
121
|
-
const r = this[t];
|
|
122
|
-
this[i] = e, this.requestUpdate(t, r, s);
|
|
123
|
-
},
|
|
124
|
-
configurable: !0,
|
|
125
|
-
enumerable: !0
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
static getPropertyOptions(t) {
|
|
129
|
-
return this.elementProperties.get(t) || l$5;
|
|
130
|
-
}
|
|
131
|
-
static finalize() {
|
|
132
|
-
if (this.hasOwnProperty("finalized")) return !1;
|
|
133
|
-
this.finalized = !0;
|
|
134
|
-
const t = Object.getPrototypeOf(this);
|
|
135
|
-
if (t.finalize(), void 0 !== t.h && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = new Map(), this.hasOwnProperty("properties")) {
|
|
136
|
-
const t = this.properties,
|
|
137
|
-
i = [...Object.getOwnPropertyNames(t), ...Object.getOwnPropertySymbols(t)];
|
|
138
|
-
for (const s of i) this.createProperty(s, t[s]);
|
|
139
|
-
}
|
|
140
|
-
return this.elementStyles = this.finalizeStyles(this.styles), !0;
|
|
141
|
-
}
|
|
142
|
-
static finalizeStyles(i) {
|
|
143
|
-
const s = [];
|
|
144
|
-
if (Array.isArray(i)) {
|
|
145
|
-
const e = new Set(i.flat(1 / 0).reverse());
|
|
146
|
-
for (const i of e) s.unshift(c$2(i));
|
|
147
|
-
} else void 0 !== i && s.push(c$2(i));
|
|
148
|
-
return s;
|
|
149
|
-
}
|
|
150
|
-
static _$Ep(t, i) {
|
|
151
|
-
const s = i.attribute;
|
|
152
|
-
return !1 === s ? void 0 : "string" == typeof s ? s : "string" == typeof t ? t.toLowerCase() : void 0;
|
|
153
|
-
}
|
|
154
|
-
u() {
|
|
155
|
-
var t;
|
|
156
|
-
this._$E_ = new Promise(t => this.enableUpdating = t), this._$AL = new Map(), this._$Eg(), this.requestUpdate(), null === (t = this.constructor.h) || void 0 === t || t.forEach(t => t(this));
|
|
157
|
-
}
|
|
158
|
-
addController(t) {
|
|
159
|
-
var i, s;
|
|
160
|
-
(null !== (i = this._$ES) && void 0 !== i ? i : this._$ES = []).push(t), void 0 !== this.renderRoot && this.isConnected && (null === (s = t.hostConnected) || void 0 === s || s.call(t));
|
|
161
|
-
}
|
|
162
|
-
removeController(t) {
|
|
163
|
-
var i;
|
|
164
|
-
null === (i = this._$ES) || void 0 === i || i.splice(this._$ES.indexOf(t) >>> 0, 1);
|
|
165
|
-
}
|
|
166
|
-
_$Eg() {
|
|
167
|
-
this.constructor.elementProperties.forEach((t, i) => {
|
|
168
|
-
this.hasOwnProperty(i) && (this._$Ei.set(i, this[i]), delete this[i]);
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
createRenderRoot() {
|
|
172
|
-
var t;
|
|
173
|
-
const s = null !== (t = this.shadowRoot) && void 0 !== t ? t : this.attachShadow(this.constructor.shadowRootOptions);
|
|
174
|
-
return S$3(s, this.constructor.elementStyles), s;
|
|
175
|
-
}
|
|
176
|
-
connectedCallback() {
|
|
177
|
-
var t;
|
|
178
|
-
void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), null === (t = this._$ES) || void 0 === t || t.forEach(t => {
|
|
179
|
-
var i;
|
|
180
|
-
return null === (i = t.hostConnected) || void 0 === i ? void 0 : i.call(t);
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
enableUpdating(t) {}
|
|
184
|
-
disconnectedCallback() {
|
|
185
|
-
var t;
|
|
186
|
-
null === (t = this._$ES) || void 0 === t || t.forEach(t => {
|
|
187
|
-
var i;
|
|
188
|
-
return null === (i = t.hostDisconnected) || void 0 === i ? void 0 : i.call(t);
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
attributeChangedCallback(t, i, s) {
|
|
192
|
-
this._$AK(t, s);
|
|
193
|
-
}
|
|
194
|
-
_$EO(t, i, s = l$5) {
|
|
195
|
-
var e;
|
|
196
|
-
const r = this.constructor._$Ep(t, s);
|
|
197
|
-
if (void 0 !== r && !0 === s.reflect) {
|
|
198
|
-
const h = (void 0 !== (null === (e = s.converter) || void 0 === e ? void 0 : e.toAttribute) ? s.converter : n$5).toAttribute(i, s.type);
|
|
199
|
-
this._$El = t, null == h ? this.removeAttribute(r) : this.setAttribute(r, h), this._$El = null;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
_$AK(t, i) {
|
|
203
|
-
var s;
|
|
204
|
-
const e = this.constructor,
|
|
205
|
-
r = e._$Ev.get(t);
|
|
206
|
-
if (void 0 !== r && this._$El !== r) {
|
|
207
|
-
const t = e.getPropertyOptions(r),
|
|
208
|
-
h = "function" == typeof t.converter ? {
|
|
209
|
-
fromAttribute: t.converter
|
|
210
|
-
} : void 0 !== (null === (s = t.converter) || void 0 === s ? void 0 : s.fromAttribute) ? t.converter : n$5;
|
|
211
|
-
this._$El = r, this[r] = h.fromAttribute(i, t.type), this._$El = null;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
requestUpdate(t, i, s) {
|
|
215
|
-
let e = !0;
|
|
216
|
-
void 0 !== t && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || a$3)(this[t], i) ? (this._$AL.has(t) || this._$AL.set(t, i), !0 === s.reflect && this._$El !== t && (void 0 === this._$EC && (this._$EC = new Map()), this._$EC.set(t, s))) : e = !1), !this.isUpdatePending && e && (this._$E_ = this._$Ej());
|
|
217
|
-
}
|
|
218
|
-
async _$Ej() {
|
|
219
|
-
this.isUpdatePending = !0;
|
|
220
|
-
try {
|
|
221
|
-
await this._$E_;
|
|
222
|
-
} catch (t) {
|
|
223
|
-
Promise.reject(t);
|
|
224
|
-
}
|
|
225
|
-
const t = this.scheduleUpdate();
|
|
226
|
-
return null != t && (await t), !this.isUpdatePending;
|
|
227
|
-
}
|
|
228
|
-
scheduleUpdate() {
|
|
229
|
-
return this.performUpdate();
|
|
230
|
-
}
|
|
231
|
-
performUpdate() {
|
|
232
|
-
var t;
|
|
233
|
-
if (!this.isUpdatePending) return;
|
|
234
|
-
this.hasUpdated, this._$Ei && (this._$Ei.forEach((t, i) => this[i] = t), this._$Ei = void 0);
|
|
235
|
-
let i = !1;
|
|
236
|
-
const s = this._$AL;
|
|
237
|
-
try {
|
|
238
|
-
i = this.shouldUpdate(s), i ? (this.willUpdate(s), null === (t = this._$ES) || void 0 === t || t.forEach(t => {
|
|
239
|
-
var i;
|
|
240
|
-
return null === (i = t.hostUpdate) || void 0 === i ? void 0 : i.call(t);
|
|
241
|
-
}), this.update(s)) : this._$Ek();
|
|
242
|
-
} catch (t) {
|
|
243
|
-
throw i = !1, this._$Ek(), t;
|
|
244
|
-
}
|
|
245
|
-
i && this._$AE(s);
|
|
246
|
-
}
|
|
247
|
-
willUpdate(t) {}
|
|
248
|
-
_$AE(t) {
|
|
249
|
-
var i;
|
|
250
|
-
null === (i = this._$ES) || void 0 === i || i.forEach(t => {
|
|
251
|
-
var i;
|
|
252
|
-
return null === (i = t.hostUpdated) || void 0 === i ? void 0 : i.call(t);
|
|
253
|
-
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
254
|
-
}
|
|
255
|
-
_$Ek() {
|
|
256
|
-
this._$AL = new Map(), this.isUpdatePending = !1;
|
|
257
|
-
}
|
|
258
|
-
get updateComplete() {
|
|
259
|
-
return this.getUpdateComplete();
|
|
260
|
-
}
|
|
261
|
-
getUpdateComplete() {
|
|
262
|
-
return this._$E_;
|
|
263
|
-
}
|
|
264
|
-
shouldUpdate(t) {
|
|
265
|
-
return !0;
|
|
266
|
-
}
|
|
267
|
-
update(t) {
|
|
268
|
-
void 0 !== this._$EC && (this._$EC.forEach((t, i) => this._$EO(i, this[i], t)), this._$EC = void 0), this._$Ek();
|
|
269
|
-
}
|
|
270
|
-
updated(t) {}
|
|
271
|
-
firstUpdated(t) {}
|
|
272
|
-
};
|
|
273
|
-
d$2.finalized = !0, d$2.elementProperties = new Map(), d$2.elementStyles = [], d$2.shadowRootOptions = {
|
|
274
|
-
mode: "open"
|
|
275
|
-
}, null == o$5 || o$5({
|
|
276
|
-
ReactiveElement: d$2
|
|
277
|
-
}), (null !== (s$5 = e$4.reactiveElementVersions) && void 0 !== s$5 ? s$5 : e$4.reactiveElementVersions = []).push("1.6.1");
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* @license
|
|
281
|
-
* Copyright 2017 Google LLC
|
|
282
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
283
|
-
*/
|
|
284
|
-
var t$2;
|
|
285
|
-
const i$2 = window,
|
|
286
|
-
s$4 = i$2.trustedTypes,
|
|
287
|
-
e$3 = s$4 ? s$4.createPolicy("lit-html", {
|
|
288
|
-
createHTML: t => t
|
|
289
|
-
}) : void 0,
|
|
290
|
-
o$4 = "$lit$",
|
|
291
|
-
n$4 = `lit$${(Math.random() + "").slice(9)}$`,
|
|
292
|
-
l$4 = "?" + n$4,
|
|
293
|
-
h$2 = `<${l$4}>`,
|
|
294
|
-
r$3 = document,
|
|
295
|
-
u$1 = () => r$3.createComment(""),
|
|
296
|
-
d$1 = t => null === t || "object" != typeof t && "function" != typeof t,
|
|
297
|
-
c$1 = Array.isArray,
|
|
298
|
-
v$1 = t => c$1(t) || "function" == typeof (null == t ? void 0 : t[Symbol.iterator]),
|
|
299
|
-
a$2 = "[ \t\n\f\r]",
|
|
300
|
-
f$1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
301
|
-
_$1 = /-->/g,
|
|
302
|
-
m$1 = />/g,
|
|
303
|
-
p$1 = RegExp(`>|${a$2}(?:([^\\s"'>=/]+)(${a$2}*=${a$2}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
304
|
-
g$1 = /'/g,
|
|
305
|
-
$$1 = /"/g,
|
|
306
|
-
y$1 = /^(?:script|style|textarea|title)$/i,
|
|
307
|
-
T$1 = Symbol.for("lit-noChange"),
|
|
308
|
-
A$1 = Symbol.for("lit-nothing"),
|
|
309
|
-
E$1 = new WeakMap(),
|
|
310
|
-
C$1 = r$3.createTreeWalker(r$3, 129, null, !1);
|
|
311
|
-
function P$1(t, i) {
|
|
312
|
-
if (!Array.isArray(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
313
|
-
return void 0 !== e$3 ? e$3.createHTML(i) : i;
|
|
314
|
-
}
|
|
315
|
-
const V$1 = (t, i) => {
|
|
316
|
-
const s = t.length - 1,
|
|
317
|
-
e = [];
|
|
318
|
-
let l,
|
|
319
|
-
r = 2 === i ? "<svg>" : "",
|
|
320
|
-
u = f$1;
|
|
321
|
-
for (let i = 0; i < s; i++) {
|
|
322
|
-
const s = t[i];
|
|
323
|
-
let d,
|
|
324
|
-
c,
|
|
325
|
-
v = -1,
|
|
326
|
-
a = 0;
|
|
327
|
-
for (; a < s.length && (u.lastIndex = a, c = u.exec(s), null !== c);) a = u.lastIndex, u === f$1 ? "!--" === c[1] ? u = _$1 : void 0 !== c[1] ? u = m$1 : void 0 !== c[2] ? (y$1.test(c[2]) && (l = RegExp("</" + c[2], "g")), u = p$1) : void 0 !== c[3] && (u = p$1) : u === p$1 ? ">" === c[0] ? (u = null != l ? l : f$1, v = -1) : void 0 === c[1] ? v = -2 : (v = u.lastIndex - c[2].length, d = c[1], u = void 0 === c[3] ? p$1 : '"' === c[3] ? $$1 : g$1) : u === $$1 || u === g$1 ? u = p$1 : u === _$1 || u === m$1 ? u = f$1 : (u = p$1, l = void 0);
|
|
328
|
-
const w = u === p$1 && t[i + 1].startsWith("/>") ? " " : "";
|
|
329
|
-
r += u === f$1 ? s + h$2 : v >= 0 ? (e.push(d), s.slice(0, v) + o$4 + s.slice(v) + n$4 + w) : s + n$4 + (-2 === v ? (e.push(void 0), i) : w);
|
|
330
|
-
}
|
|
331
|
-
return [P$1(t, r + (t[s] || "<?>") + (2 === i ? "</svg>" : "")), e];
|
|
332
|
-
};
|
|
333
|
-
let N$1 = class N {
|
|
334
|
-
constructor({
|
|
335
|
-
strings: t,
|
|
336
|
-
_$litType$: i
|
|
337
|
-
}, e) {
|
|
338
|
-
let h;
|
|
339
|
-
this.parts = [];
|
|
340
|
-
let r = 0,
|
|
341
|
-
d = 0;
|
|
342
|
-
const c = t.length - 1,
|
|
343
|
-
v = this.parts,
|
|
344
|
-
[a, f] = V$1(t, i);
|
|
345
|
-
if (this.el = N.createElement(a, e), C$1.currentNode = this.el.content, 2 === i) {
|
|
346
|
-
const t = this.el.content,
|
|
347
|
-
i = t.firstChild;
|
|
348
|
-
i.remove(), t.append(...i.childNodes);
|
|
349
|
-
}
|
|
350
|
-
for (; null !== (h = C$1.nextNode()) && v.length < c;) {
|
|
351
|
-
if (1 === h.nodeType) {
|
|
352
|
-
if (h.hasAttributes()) {
|
|
353
|
-
const t = [];
|
|
354
|
-
for (const i of h.getAttributeNames()) if (i.endsWith(o$4) || i.startsWith(n$4)) {
|
|
355
|
-
const s = f[d++];
|
|
356
|
-
if (t.push(i), void 0 !== s) {
|
|
357
|
-
const t = h.getAttribute(s.toLowerCase() + o$4).split(n$4),
|
|
358
|
-
i = /([.?@])?(.*)/.exec(s);
|
|
359
|
-
v.push({
|
|
360
|
-
type: 1,
|
|
361
|
-
index: r,
|
|
362
|
-
name: i[2],
|
|
363
|
-
strings: t,
|
|
364
|
-
ctor: "." === i[1] ? H$1 : "?" === i[1] ? L$1 : "@" === i[1] ? z$1 : k$1
|
|
365
|
-
});
|
|
366
|
-
} else v.push({
|
|
367
|
-
type: 6,
|
|
368
|
-
index: r
|
|
369
|
-
});
|
|
370
|
-
}
|
|
371
|
-
for (const i of t) h.removeAttribute(i);
|
|
372
|
-
}
|
|
373
|
-
if (y$1.test(h.tagName)) {
|
|
374
|
-
const t = h.textContent.split(n$4),
|
|
375
|
-
i = t.length - 1;
|
|
376
|
-
if (i > 0) {
|
|
377
|
-
h.textContent = s$4 ? s$4.emptyScript : "";
|
|
378
|
-
for (let s = 0; s < i; s++) h.append(t[s], u$1()), C$1.nextNode(), v.push({
|
|
379
|
-
type: 2,
|
|
380
|
-
index: ++r
|
|
381
|
-
});
|
|
382
|
-
h.append(t[i], u$1());
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
} else if (8 === h.nodeType) if (h.data === l$4) v.push({
|
|
386
|
-
type: 2,
|
|
387
|
-
index: r
|
|
388
|
-
});else {
|
|
389
|
-
let t = -1;
|
|
390
|
-
for (; -1 !== (t = h.data.indexOf(n$4, t + 1));) v.push({
|
|
391
|
-
type: 7,
|
|
392
|
-
index: r
|
|
393
|
-
}), t += n$4.length - 1;
|
|
394
|
-
}
|
|
395
|
-
r++;
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
static createElement(t, i) {
|
|
399
|
-
const s = r$3.createElement("template");
|
|
400
|
-
return s.innerHTML = t, s;
|
|
401
|
-
}
|
|
402
|
-
};
|
|
403
|
-
function S$2(t, i, s = t, e) {
|
|
404
|
-
var o, n, l, h;
|
|
405
|
-
if (i === T$1) return i;
|
|
406
|
-
let r = void 0 !== e ? null === (o = s._$Co) || void 0 === o ? void 0 : o[e] : s._$Cl;
|
|
407
|
-
const u = d$1(i) ? void 0 : i._$litDirective$;
|
|
408
|
-
return (null == r ? void 0 : r.constructor) !== u && (null === (n = null == r ? void 0 : r._$AO) || void 0 === n || n.call(r, !1), void 0 === u ? r = void 0 : (r = new u(t), r._$AT(t, s, e)), void 0 !== e ? (null !== (l = (h = s)._$Co) && void 0 !== l ? l : h._$Co = [])[e] = r : s._$Cl = r), void 0 !== r && (i = S$2(t, r._$AS(t, i.values), r, e)), i;
|
|
409
|
-
}
|
|
410
|
-
let M$1 = class M {
|
|
411
|
-
constructor(t, i) {
|
|
412
|
-
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
|
413
|
-
}
|
|
414
|
-
get parentNode() {
|
|
415
|
-
return this._$AM.parentNode;
|
|
416
|
-
}
|
|
417
|
-
get _$AU() {
|
|
418
|
-
return this._$AM._$AU;
|
|
419
|
-
}
|
|
420
|
-
u(t) {
|
|
421
|
-
var i;
|
|
422
|
-
const {
|
|
423
|
-
el: {
|
|
424
|
-
content: s
|
|
425
|
-
},
|
|
426
|
-
parts: e
|
|
427
|
-
} = this._$AD,
|
|
428
|
-
o = (null !== (i = null == t ? void 0 : t.creationScope) && void 0 !== i ? i : r$3).importNode(s, !0);
|
|
429
|
-
C$1.currentNode = o;
|
|
430
|
-
let n = C$1.nextNode(),
|
|
431
|
-
l = 0,
|
|
432
|
-
h = 0,
|
|
433
|
-
u = e[0];
|
|
434
|
-
for (; void 0 !== u;) {
|
|
435
|
-
if (l === u.index) {
|
|
436
|
-
let i;
|
|
437
|
-
2 === u.type ? i = new R$1(n, n.nextSibling, this, t) : 1 === u.type ? i = new u.ctor(n, u.name, u.strings, this, t) : 6 === u.type && (i = new Z(n, this, t)), this._$AV.push(i), u = e[++h];
|
|
438
|
-
}
|
|
439
|
-
l !== (null == u ? void 0 : u.index) && (n = C$1.nextNode(), l++);
|
|
440
|
-
}
|
|
441
|
-
return C$1.currentNode = r$3, o;
|
|
442
|
-
}
|
|
443
|
-
v(t) {
|
|
444
|
-
let i = 0;
|
|
445
|
-
for (const s of this._$AV) void 0 !== s && (void 0 !== s.strings ? (s._$AI(t, s, i), i += s.strings.length - 2) : s._$AI(t[i])), i++;
|
|
446
|
-
}
|
|
447
|
-
};
|
|
448
|
-
let R$1 = class R {
|
|
449
|
-
constructor(t, i, s, e) {
|
|
450
|
-
var o;
|
|
451
|
-
this.type = 2, this._$AH = A$1, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cp = null === (o = null == e ? void 0 : e.isConnected) || void 0 === o || o;
|
|
452
|
-
}
|
|
453
|
-
get _$AU() {
|
|
454
|
-
var t, i;
|
|
455
|
-
return null !== (i = null === (t = this._$AM) || void 0 === t ? void 0 : t._$AU) && void 0 !== i ? i : this._$Cp;
|
|
456
|
-
}
|
|
457
|
-
get parentNode() {
|
|
458
|
-
let t = this._$AA.parentNode;
|
|
459
|
-
const i = this._$AM;
|
|
460
|
-
return void 0 !== i && 11 === (null == t ? void 0 : t.nodeType) && (t = i.parentNode), t;
|
|
461
|
-
}
|
|
462
|
-
get startNode() {
|
|
463
|
-
return this._$AA;
|
|
464
|
-
}
|
|
465
|
-
get endNode() {
|
|
466
|
-
return this._$AB;
|
|
467
|
-
}
|
|
468
|
-
_$AI(t, i = this) {
|
|
469
|
-
t = S$2(this, t, i), d$1(t) ? t === A$1 || null == t || "" === t ? (this._$AH !== A$1 && this._$AR(), this._$AH = A$1) : t !== this._$AH && t !== T$1 && this._(t) : void 0 !== t._$litType$ ? this.g(t) : void 0 !== t.nodeType ? this.$(t) : v$1(t) ? this.T(t) : this._(t);
|
|
470
|
-
}
|
|
471
|
-
k(t) {
|
|
472
|
-
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
473
|
-
}
|
|
474
|
-
$(t) {
|
|
475
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
|
476
|
-
}
|
|
477
|
-
_(t) {
|
|
478
|
-
this._$AH !== A$1 && d$1(this._$AH) ? this._$AA.nextSibling.data = t : this.$(r$3.createTextNode(t)), this._$AH = t;
|
|
479
|
-
}
|
|
480
|
-
g(t) {
|
|
481
|
-
var i;
|
|
482
|
-
const {
|
|
483
|
-
values: s,
|
|
484
|
-
_$litType$: e
|
|
485
|
-
} = t,
|
|
486
|
-
o = "number" == typeof e ? this._$AC(t) : (void 0 === e.el && (e.el = N$1.createElement(P$1(e.h, e.h[0]), this.options)), e);
|
|
487
|
-
if ((null === (i = this._$AH) || void 0 === i ? void 0 : i._$AD) === o) this._$AH.v(s);else {
|
|
488
|
-
const t = new M$1(o, this),
|
|
489
|
-
i = t.u(this.options);
|
|
490
|
-
t.v(s), this.$(i), this._$AH = t;
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
_$AC(t) {
|
|
494
|
-
let i = E$1.get(t.strings);
|
|
495
|
-
return void 0 === i && E$1.set(t.strings, i = new N$1(t)), i;
|
|
496
|
-
}
|
|
497
|
-
T(t) {
|
|
498
|
-
c$1(this._$AH) || (this._$AH = [], this._$AR());
|
|
499
|
-
const i = this._$AH;
|
|
500
|
-
let s,
|
|
501
|
-
e = 0;
|
|
502
|
-
for (const o of t) e === i.length ? i.push(s = new R(this.k(u$1()), this.k(u$1()), this, this.options)) : s = i[e], s._$AI(o), e++;
|
|
503
|
-
e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
|
|
504
|
-
}
|
|
505
|
-
_$AR(t = this._$AA.nextSibling, i) {
|
|
506
|
-
var s;
|
|
507
|
-
for (null === (s = this._$AP) || void 0 === s || s.call(this, !1, !0, i); t && t !== this._$AB;) {
|
|
508
|
-
const i = t.nextSibling;
|
|
509
|
-
t.remove(), t = i;
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
setConnected(t) {
|
|
513
|
-
var i;
|
|
514
|
-
void 0 === this._$AM && (this._$Cp = t, null === (i = this._$AP) || void 0 === i || i.call(this, t));
|
|
515
|
-
}
|
|
516
|
-
};
|
|
517
|
-
let k$1 = class k {
|
|
518
|
-
constructor(t, i, s, e, o) {
|
|
519
|
-
this.type = 1, this._$AH = A$1, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = o, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = A$1;
|
|
520
|
-
}
|
|
521
|
-
get tagName() {
|
|
522
|
-
return this.element.tagName;
|
|
523
|
-
}
|
|
524
|
-
get _$AU() {
|
|
525
|
-
return this._$AM._$AU;
|
|
526
|
-
}
|
|
527
|
-
_$AI(t, i = this, s, e) {
|
|
528
|
-
const o = this.strings;
|
|
529
|
-
let n = !1;
|
|
530
|
-
if (void 0 === o) t = S$2(this, t, i, 0), n = !d$1(t) || t !== this._$AH && t !== T$1, n && (this._$AH = t);else {
|
|
531
|
-
const e = t;
|
|
532
|
-
let l, h;
|
|
533
|
-
for (t = o[0], l = 0; l < o.length - 1; l++) h = S$2(this, e[s + l], i, l), h === T$1 && (h = this._$AH[l]), n || (n = !d$1(h) || h !== this._$AH[l]), h === A$1 ? t = A$1 : t !== A$1 && (t += (null != h ? h : "") + o[l + 1]), this._$AH[l] = h;
|
|
534
|
-
}
|
|
535
|
-
n && !e && this.j(t);
|
|
536
|
-
}
|
|
537
|
-
j(t) {
|
|
538
|
-
t === A$1 ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t ? t : "");
|
|
539
|
-
}
|
|
540
|
-
};
|
|
541
|
-
let H$1 = class H extends k$1 {
|
|
542
|
-
constructor() {
|
|
543
|
-
super(...arguments), this.type = 3;
|
|
544
|
-
}
|
|
545
|
-
j(t) {
|
|
546
|
-
this.element[this.name] = t === A$1 ? void 0 : t;
|
|
547
|
-
}
|
|
548
|
-
};
|
|
549
|
-
const I$1 = s$4 ? s$4.emptyScript : "";
|
|
550
|
-
let L$1 = class L extends k$1 {
|
|
551
|
-
constructor() {
|
|
552
|
-
super(...arguments), this.type = 4;
|
|
553
|
-
}
|
|
554
|
-
j(t) {
|
|
555
|
-
t && t !== A$1 ? this.element.setAttribute(this.name, I$1) : this.element.removeAttribute(this.name);
|
|
556
|
-
}
|
|
557
|
-
};
|
|
558
|
-
let z$1 = class z extends k$1 {
|
|
559
|
-
constructor(t, i, s, e, o) {
|
|
560
|
-
super(t, i, s, e, o), this.type = 5;
|
|
561
|
-
}
|
|
562
|
-
_$AI(t, i = this) {
|
|
563
|
-
var s;
|
|
564
|
-
if ((t = null !== (s = S$2(this, t, i, 0)) && void 0 !== s ? s : A$1) === T$1) return;
|
|
565
|
-
const e = this._$AH,
|
|
566
|
-
o = t === A$1 && e !== A$1 || t.capture !== e.capture || t.once !== e.once || t.passive !== e.passive,
|
|
567
|
-
n = t !== A$1 && (e === A$1 || o);
|
|
568
|
-
o && this.element.removeEventListener(this.name, this, e), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
569
|
-
}
|
|
570
|
-
handleEvent(t) {
|
|
571
|
-
var i, s;
|
|
572
|
-
"function" == typeof this._$AH ? this._$AH.call(null !== (s = null === (i = this.options) || void 0 === i ? void 0 : i.host) && void 0 !== s ? s : this.element, t) : this._$AH.handleEvent(t);
|
|
573
|
-
}
|
|
574
|
-
};
|
|
575
|
-
class Z {
|
|
576
|
-
constructor(t, i, s) {
|
|
577
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
|
|
578
|
-
}
|
|
579
|
-
get _$AU() {
|
|
580
|
-
return this._$AM._$AU;
|
|
581
|
-
}
|
|
582
|
-
_$AI(t) {
|
|
583
|
-
S$2(this, t);
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
const B$1 = i$2.litHtmlPolyfillSupport;
|
|
587
|
-
null == B$1 || B$1(N$1, R$1), (null !== (t$2 = i$2.litHtmlVersions) && void 0 !== t$2 ? t$2 : i$2.litHtmlVersions = []).push("2.8.0");
|
|
588
|
-
|
|
589
|
-
/**
|
|
590
|
-
* @license
|
|
591
|
-
* Copyright 2019 Google LLC
|
|
592
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
593
|
-
*/
|
|
594
|
-
const t$1 = window.ShadowRoot && (void 0 === window.ShadyCSS || window.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
595
|
-
e$2 = Symbol(),
|
|
596
|
-
n$3 = new Map();
|
|
597
|
-
let s$3 = class s {
|
|
598
|
-
constructor(t, n) {
|
|
599
|
-
if (this._$cssResult$ = !0, n !== e$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
600
|
-
this.cssText = t;
|
|
601
|
-
}
|
|
602
|
-
get styleSheet() {
|
|
603
|
-
let e = n$3.get(this.cssText);
|
|
604
|
-
return t$1 && void 0 === e && (n$3.set(this.cssText, e = new CSSStyleSheet()), e.replaceSync(this.cssText)), e;
|
|
605
|
-
}
|
|
606
|
-
toString() {
|
|
607
|
-
return this.cssText;
|
|
608
|
-
}
|
|
609
|
-
};
|
|
610
|
-
const o$3 = t => new s$3("string" == typeof t ? t : t + "", e$2),
|
|
611
|
-
r$2 = (t, ...n) => {
|
|
612
|
-
const o = 1 === t.length ? t[0] : n.reduce((e, n, s) => e + (t => {
|
|
28
|
+
const r$2 = t => new o$3("string" == typeof t ? t : t + "", void 0, s$3),
|
|
29
|
+
i$1 = (t, ...e) => {
|
|
30
|
+
const n = 1 === t.length ? t[0] : e.reduce((e, s, n) => e + (t => {
|
|
613
31
|
if (!0 === t._$cssResult$) return t.cssText;
|
|
614
32
|
if ("number" == typeof t) return t;
|
|
615
33
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + t + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
616
|
-
})(
|
|
617
|
-
return new
|
|
34
|
+
})(s) + t[n + 1], t[0]);
|
|
35
|
+
return new o$3(n, t, s$3);
|
|
618
36
|
},
|
|
619
|
-
|
|
620
|
-
|
|
37
|
+
S$1 = (s, n) => {
|
|
38
|
+
e$2 ? s.adoptedStyleSheets = n.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet) : n.forEach(e => {
|
|
621
39
|
const n = document.createElement("style"),
|
|
622
|
-
|
|
623
|
-
void 0 !==
|
|
40
|
+
o = t$1.litNonce;
|
|
41
|
+
void 0 !== o && n.setAttribute("nonce", o), n.textContent = e.cssText, s.appendChild(n);
|
|
624
42
|
});
|
|
625
43
|
},
|
|
626
|
-
|
|
44
|
+
c$1 = e$2 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
|
|
627
45
|
let e = "";
|
|
628
|
-
for (const
|
|
629
|
-
return
|
|
46
|
+
for (const s of t.cssRules) e += s.cssText;
|
|
47
|
+
return r$2(e);
|
|
630
48
|
})(t) : t;
|
|
631
49
|
|
|
632
50
|
/**
|
|
@@ -635,14 +53,15 @@ const o$3 = t => new s$3("string" == typeof t ? t : t + "", e$2),
|
|
|
635
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
636
54
|
*/
|
|
637
55
|
var s$2;
|
|
638
|
-
const e$1 = window
|
|
639
|
-
r$1 = e$1
|
|
640
|
-
h$1 =
|
|
641
|
-
o$2 =
|
|
56
|
+
const e$1 = window,
|
|
57
|
+
r$1 = e$1.trustedTypes,
|
|
58
|
+
h$1 = r$1 ? r$1.emptyScript : "",
|
|
59
|
+
o$2 = e$1.reactiveElementPolyfillSupport,
|
|
60
|
+
n$2 = {
|
|
642
61
|
toAttribute(t, i) {
|
|
643
62
|
switch (i) {
|
|
644
63
|
case Boolean:
|
|
645
|
-
t = t ?
|
|
64
|
+
t = t ? h$1 : null;
|
|
646
65
|
break;
|
|
647
66
|
case Object:
|
|
648
67
|
case Array:
|
|
@@ -670,28 +89,29 @@ const e$1 = window.trustedTypes,
|
|
|
670
89
|
return s;
|
|
671
90
|
}
|
|
672
91
|
},
|
|
673
|
-
|
|
92
|
+
a$1 = (t, i) => i !== t && (i == i || t == t),
|
|
674
93
|
l$3 = {
|
|
675
94
|
attribute: !0,
|
|
676
95
|
type: String,
|
|
677
|
-
converter:
|
|
96
|
+
converter: n$2,
|
|
678
97
|
reflect: !1,
|
|
679
|
-
hasChanged:
|
|
680
|
-
}
|
|
681
|
-
|
|
98
|
+
hasChanged: a$1
|
|
99
|
+
},
|
|
100
|
+
d$1 = "finalized";
|
|
101
|
+
let u$1 = class u extends HTMLElement {
|
|
682
102
|
constructor() {
|
|
683
|
-
super(), this._$
|
|
103
|
+
super(), this._$Ei = new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
|
|
684
104
|
}
|
|
685
105
|
static addInitializer(t) {
|
|
686
106
|
var i;
|
|
687
|
-
null !== (i = this.
|
|
107
|
+
this.finalize(), (null !== (i = this.h) && void 0 !== i ? i : this.h = []).push(t);
|
|
688
108
|
}
|
|
689
109
|
static get observedAttributes() {
|
|
690
110
|
this.finalize();
|
|
691
111
|
const t = [];
|
|
692
112
|
return this.elementProperties.forEach((i, s) => {
|
|
693
|
-
const e = this._$
|
|
694
|
-
void 0 !== e && (this._$
|
|
113
|
+
const e = this._$Ep(s, i);
|
|
114
|
+
void 0 !== e && (this._$Ev.set(e, s), t.push(e));
|
|
695
115
|
}), t;
|
|
696
116
|
}
|
|
697
117
|
static createProperty(t, i = l$3) {
|
|
@@ -718,10 +138,10 @@ let a$1 = class a extends HTMLElement {
|
|
|
718
138
|
return this.elementProperties.get(t) || l$3;
|
|
719
139
|
}
|
|
720
140
|
static finalize() {
|
|
721
|
-
if (this.hasOwnProperty(
|
|
722
|
-
this
|
|
141
|
+
if (this.hasOwnProperty(d$1)) return !1;
|
|
142
|
+
this[d$1] = !0;
|
|
723
143
|
const t = Object.getPrototypeOf(this);
|
|
724
|
-
if (t.finalize(), this.elementProperties = new Map(t.elementProperties), this._$
|
|
144
|
+
if (t.finalize(), void 0 !== t.h && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = new Map(), this.hasOwnProperty("properties")) {
|
|
725
145
|
const t = this.properties,
|
|
726
146
|
i = [...Object.getOwnPropertyNames(t), ...Object.getOwnPropertySymbols(t)];
|
|
727
147
|
for (const s of i) this.createProperty(s, t[s]);
|
|
@@ -732,39 +152,39 @@ let a$1 = class a extends HTMLElement {
|
|
|
732
152
|
const s = [];
|
|
733
153
|
if (Array.isArray(i)) {
|
|
734
154
|
const e = new Set(i.flat(1 / 0).reverse());
|
|
735
|
-
for (const i of e) s.unshift(
|
|
736
|
-
} else void 0 !== i && s.push(
|
|
155
|
+
for (const i of e) s.unshift(c$1(i));
|
|
156
|
+
} else void 0 !== i && s.push(c$1(i));
|
|
737
157
|
return s;
|
|
738
158
|
}
|
|
739
|
-
static _$
|
|
159
|
+
static _$Ep(t, i) {
|
|
740
160
|
const s = i.attribute;
|
|
741
161
|
return !1 === s ? void 0 : "string" == typeof s ? s : "string" == typeof t ? t.toLowerCase() : void 0;
|
|
742
162
|
}
|
|
743
|
-
|
|
163
|
+
_$Eu() {
|
|
744
164
|
var t;
|
|
745
|
-
this._$
|
|
165
|
+
this._$E_ = new Promise(t => this.enableUpdating = t), this._$AL = new Map(), this._$Eg(), this.requestUpdate(), null === (t = this.constructor.h) || void 0 === t || t.forEach(t => t(this));
|
|
746
166
|
}
|
|
747
167
|
addController(t) {
|
|
748
168
|
var i, s;
|
|
749
|
-
(null !== (i = this._$
|
|
169
|
+
(null !== (i = this._$ES) && void 0 !== i ? i : this._$ES = []).push(t), void 0 !== this.renderRoot && this.isConnected && (null === (s = t.hostConnected) || void 0 === s || s.call(t));
|
|
750
170
|
}
|
|
751
171
|
removeController(t) {
|
|
752
172
|
var i;
|
|
753
|
-
null === (i = this._$
|
|
173
|
+
null === (i = this._$ES) || void 0 === i || i.splice(this._$ES.indexOf(t) >>> 0, 1);
|
|
754
174
|
}
|
|
755
|
-
_$
|
|
175
|
+
_$Eg() {
|
|
756
176
|
this.constructor.elementProperties.forEach((t, i) => {
|
|
757
|
-
this.hasOwnProperty(i) && (this._$
|
|
177
|
+
this.hasOwnProperty(i) && (this._$Ei.set(i, this[i]), delete this[i]);
|
|
758
178
|
});
|
|
759
179
|
}
|
|
760
180
|
createRenderRoot() {
|
|
761
181
|
var t;
|
|
762
182
|
const s = null !== (t = this.shadowRoot) && void 0 !== t ? t : this.attachShadow(this.constructor.shadowRootOptions);
|
|
763
|
-
return
|
|
183
|
+
return S$1(s, this.constructor.elementStyles), s;
|
|
764
184
|
}
|
|
765
185
|
connectedCallback() {
|
|
766
186
|
var t;
|
|
767
|
-
void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), null === (t = this._$
|
|
187
|
+
void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), null === (t = this._$ES) || void 0 === t || t.forEach(t => {
|
|
768
188
|
var i;
|
|
769
189
|
return null === (i = t.hostConnected) || void 0 === i ? void 0 : i.call(t);
|
|
770
190
|
});
|
|
@@ -772,7 +192,7 @@ let a$1 = class a extends HTMLElement {
|
|
|
772
192
|
enableUpdating(t) {}
|
|
773
193
|
disconnectedCallback() {
|
|
774
194
|
var t;
|
|
775
|
-
null === (t = this._$
|
|
195
|
+
null === (t = this._$ES) || void 0 === t || t.forEach(t => {
|
|
776
196
|
var i;
|
|
777
197
|
return null === (i = t.hostDisconnected) || void 0 === i ? void 0 : i.call(t);
|
|
778
198
|
});
|
|
@@ -780,33 +200,34 @@ let a$1 = class a extends HTMLElement {
|
|
|
780
200
|
attributeChangedCallback(t, i, s) {
|
|
781
201
|
this._$AK(t, s);
|
|
782
202
|
}
|
|
783
|
-
_$
|
|
784
|
-
var e
|
|
785
|
-
const
|
|
786
|
-
if (void 0 !==
|
|
787
|
-
const
|
|
788
|
-
this._$
|
|
203
|
+
_$EO(t, i, s = l$3) {
|
|
204
|
+
var e;
|
|
205
|
+
const r = this.constructor._$Ep(t, s);
|
|
206
|
+
if (void 0 !== r && !0 === s.reflect) {
|
|
207
|
+
const h = (void 0 !== (null === (e = s.converter) || void 0 === e ? void 0 : e.toAttribute) ? s.converter : n$2).toAttribute(i, s.type);
|
|
208
|
+
this._$El = t, null == h ? this.removeAttribute(r) : this.setAttribute(r, h), this._$El = null;
|
|
789
209
|
}
|
|
790
210
|
}
|
|
791
211
|
_$AK(t, i) {
|
|
792
|
-
var s
|
|
793
|
-
const
|
|
794
|
-
|
|
795
|
-
if (void 0 !==
|
|
796
|
-
const t =
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
212
|
+
var s;
|
|
213
|
+
const e = this.constructor,
|
|
214
|
+
r = e._$Ev.get(t);
|
|
215
|
+
if (void 0 !== r && this._$El !== r) {
|
|
216
|
+
const t = e.getPropertyOptions(r),
|
|
217
|
+
h = "function" == typeof t.converter ? {
|
|
218
|
+
fromAttribute: t.converter
|
|
219
|
+
} : void 0 !== (null === (s = t.converter) || void 0 === s ? void 0 : s.fromAttribute) ? t.converter : n$2;
|
|
220
|
+
this._$El = r, this[r] = h.fromAttribute(i, t.type), this._$El = null;
|
|
800
221
|
}
|
|
801
222
|
}
|
|
802
223
|
requestUpdate(t, i, s) {
|
|
803
224
|
let e = !0;
|
|
804
|
-
void 0 !== t && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged ||
|
|
225
|
+
void 0 !== t && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || a$1)(this[t], i) ? (this._$AL.has(t) || this._$AL.set(t, i), !0 === s.reflect && this._$El !== t && (void 0 === this._$EC && (this._$EC = new Map()), this._$EC.set(t, s))) : e = !1), !this.isUpdatePending && e && (this._$E_ = this._$Ej());
|
|
805
226
|
}
|
|
806
|
-
async _$
|
|
227
|
+
async _$Ej() {
|
|
807
228
|
this.isUpdatePending = !0;
|
|
808
229
|
try {
|
|
809
|
-
await this._$
|
|
230
|
+
await this._$E_;
|
|
810
231
|
} catch (t) {
|
|
811
232
|
Promise.reject(t);
|
|
812
233
|
}
|
|
@@ -819,50 +240,50 @@ let a$1 = class a extends HTMLElement {
|
|
|
819
240
|
performUpdate() {
|
|
820
241
|
var t;
|
|
821
242
|
if (!this.isUpdatePending) return;
|
|
822
|
-
this.hasUpdated, this._$
|
|
243
|
+
this.hasUpdated, this._$Ei && (this._$Ei.forEach((t, i) => this[i] = t), this._$Ei = void 0);
|
|
823
244
|
let i = !1;
|
|
824
245
|
const s = this._$AL;
|
|
825
246
|
try {
|
|
826
|
-
i = this.shouldUpdate(s), i ? (this.willUpdate(s), null === (t = this._$
|
|
247
|
+
i = this.shouldUpdate(s), i ? (this.willUpdate(s), null === (t = this._$ES) || void 0 === t || t.forEach(t => {
|
|
827
248
|
var i;
|
|
828
249
|
return null === (i = t.hostUpdate) || void 0 === i ? void 0 : i.call(t);
|
|
829
|
-
}), this.update(s)) : this._$
|
|
250
|
+
}), this.update(s)) : this._$Ek();
|
|
830
251
|
} catch (t) {
|
|
831
|
-
throw i = !1, this._$
|
|
252
|
+
throw i = !1, this._$Ek(), t;
|
|
832
253
|
}
|
|
833
254
|
i && this._$AE(s);
|
|
834
255
|
}
|
|
835
256
|
willUpdate(t) {}
|
|
836
257
|
_$AE(t) {
|
|
837
258
|
var i;
|
|
838
|
-
null === (i = this._$
|
|
259
|
+
null === (i = this._$ES) || void 0 === i || i.forEach(t => {
|
|
839
260
|
var i;
|
|
840
261
|
return null === (i = t.hostUpdated) || void 0 === i ? void 0 : i.call(t);
|
|
841
262
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
842
263
|
}
|
|
843
|
-
_$
|
|
264
|
+
_$Ek() {
|
|
844
265
|
this._$AL = new Map(), this.isUpdatePending = !1;
|
|
845
266
|
}
|
|
846
267
|
get updateComplete() {
|
|
847
268
|
return this.getUpdateComplete();
|
|
848
269
|
}
|
|
849
270
|
getUpdateComplete() {
|
|
850
|
-
return this._$
|
|
271
|
+
return this._$E_;
|
|
851
272
|
}
|
|
852
273
|
shouldUpdate(t) {
|
|
853
274
|
return !0;
|
|
854
275
|
}
|
|
855
276
|
update(t) {
|
|
856
|
-
void 0 !== this._$EC && (this._$EC.forEach((t, i) => this._$
|
|
277
|
+
void 0 !== this._$EC && (this._$EC.forEach((t, i) => this._$EO(i, this[i], t)), this._$EC = void 0), this._$Ek();
|
|
857
278
|
}
|
|
858
279
|
updated(t) {}
|
|
859
280
|
firstUpdated(t) {}
|
|
860
281
|
};
|
|
861
|
-
|
|
282
|
+
u$1[d$1] = !0, u$1.elementProperties = new Map(), u$1.elementStyles = [], u$1.shadowRootOptions = {
|
|
862
283
|
mode: "open"
|
|
863
|
-
}, null ==
|
|
864
|
-
ReactiveElement:
|
|
865
|
-
}), (null !== (s$2 =
|
|
284
|
+
}, null == o$2 || o$2({
|
|
285
|
+
ReactiveElement: u$1
|
|
286
|
+
}), (null !== (s$2 = e$1.reactiveElementVersions) && void 0 !== s$2 ? s$2 : e$1.reactiveElementVersions = []).push("1.6.3");
|
|
866
287
|
|
|
867
288
|
/**
|
|
868
289
|
* @license
|
|
@@ -880,8 +301,8 @@ const i = window,
|
|
|
880
301
|
l$2 = "?" + n$1,
|
|
881
302
|
h = `<${l$2}>`,
|
|
882
303
|
r = document,
|
|
883
|
-
|
|
884
|
-
|
|
304
|
+
u = () => r.createComment(""),
|
|
305
|
+
d = t => null === t || "object" != typeof t && "function" != typeof t,
|
|
885
306
|
c = Array.isArray,
|
|
886
307
|
v = t => c(t) || "function" == typeof (null == t ? void 0 : t[Symbol.iterator]),
|
|
887
308
|
a = "[ \t\n\f\r]",
|
|
@@ -902,28 +323,30 @@ const i = window,
|
|
|
902
323
|
T = Symbol.for("lit-noChange"),
|
|
903
324
|
A = Symbol.for("lit-nothing"),
|
|
904
325
|
E = new WeakMap(),
|
|
905
|
-
C = r.createTreeWalker(r, 129, null, !1)
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
}
|
|
926
|
-
|
|
326
|
+
C = r.createTreeWalker(r, 129, null, !1);
|
|
327
|
+
function P(t, i) {
|
|
328
|
+
if (!Array.isArray(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
329
|
+
return void 0 !== e ? e.createHTML(i) : i;
|
|
330
|
+
}
|
|
331
|
+
const V = (t, i) => {
|
|
332
|
+
const s = t.length - 1,
|
|
333
|
+
e = [];
|
|
334
|
+
let l,
|
|
335
|
+
r = 2 === i ? "<svg>" : "",
|
|
336
|
+
u = f;
|
|
337
|
+
for (let i = 0; i < s; i++) {
|
|
338
|
+
const s = t[i];
|
|
339
|
+
let d,
|
|
340
|
+
c,
|
|
341
|
+
v = -1,
|
|
342
|
+
a = 0;
|
|
343
|
+
for (; a < s.length && (u.lastIndex = a, c = u.exec(s), null !== c);) a = u.lastIndex, u === f ? "!--" === c[1] ? u = _ : void 0 !== c[1] ? u = m : void 0 !== c[2] ? (y.test(c[2]) && (l = RegExp("</" + c[2], "g")), u = p) : void 0 !== c[3] && (u = p) : u === p ? ">" === c[0] ? (u = null != l ? l : f, v = -1) : void 0 === c[1] ? v = -2 : (v = u.lastIndex - c[2].length, d = c[1], u = void 0 === c[3] ? p : '"' === c[3] ? $ : g) : u === $ || u === g ? u = p : u === _ || u === m ? u = f : (u = p, l = void 0);
|
|
344
|
+
const w = u === p && t[i + 1].startsWith("/>") ? " " : "";
|
|
345
|
+
r += u === f ? s + h : v >= 0 ? (e.push(d), s.slice(0, v) + o$1 + s.slice(v) + n$1 + w) : s + n$1 + (-2 === v ? (e.push(void 0), i) : w);
|
|
346
|
+
}
|
|
347
|
+
return [P(t, r + (t[s] || "<?>") + (2 === i ? "</svg>" : "")), e];
|
|
348
|
+
};
|
|
349
|
+
class N {
|
|
927
350
|
constructor({
|
|
928
351
|
strings: t,
|
|
929
352
|
_$litType$: i
|
|
@@ -931,11 +354,11 @@ class V {
|
|
|
931
354
|
let h;
|
|
932
355
|
this.parts = [];
|
|
933
356
|
let r = 0,
|
|
934
|
-
|
|
357
|
+
d = 0;
|
|
935
358
|
const c = t.length - 1,
|
|
936
359
|
v = this.parts,
|
|
937
|
-
[a, f] =
|
|
938
|
-
if (this.el =
|
|
360
|
+
[a, f] = V(t, i);
|
|
361
|
+
if (this.el = N.createElement(a, e), C.currentNode = this.el.content, 2 === i) {
|
|
939
362
|
const t = this.el.content,
|
|
940
363
|
i = t.firstChild;
|
|
941
364
|
i.remove(), t.append(...i.childNodes);
|
|
@@ -945,7 +368,7 @@ class V {
|
|
|
945
368
|
if (h.hasAttributes()) {
|
|
946
369
|
const t = [];
|
|
947
370
|
for (const i of h.getAttributeNames()) if (i.endsWith(o$1) || i.startsWith(n$1)) {
|
|
948
|
-
const s = f[
|
|
371
|
+
const s = f[d++];
|
|
949
372
|
if (t.push(i), void 0 !== s) {
|
|
950
373
|
const t = h.getAttribute(s.toLowerCase() + o$1).split(n$1),
|
|
951
374
|
i = /([.?@])?(.*)/.exec(s);
|
|
@@ -954,7 +377,7 @@ class V {
|
|
|
954
377
|
index: r,
|
|
955
378
|
name: i[2],
|
|
956
379
|
strings: t,
|
|
957
|
-
ctor: "." === i[1] ?
|
|
380
|
+
ctor: "." === i[1] ? H : "?" === i[1] ? L : "@" === i[1] ? z : k
|
|
958
381
|
});
|
|
959
382
|
} else v.push({
|
|
960
383
|
type: 6,
|
|
@@ -968,11 +391,11 @@ class V {
|
|
|
968
391
|
i = t.length - 1;
|
|
969
392
|
if (i > 0) {
|
|
970
393
|
h.textContent = s$1 ? s$1.emptyScript : "";
|
|
971
|
-
for (let s = 0; s < i; s++) h.append(t[s],
|
|
394
|
+
for (let s = 0; s < i; s++) h.append(t[s], u()), C.nextNode(), v.push({
|
|
972
395
|
type: 2,
|
|
973
396
|
index: ++r
|
|
974
397
|
});
|
|
975
|
-
h.append(t[i],
|
|
398
|
+
h.append(t[i], u());
|
|
976
399
|
}
|
|
977
400
|
}
|
|
978
401
|
} else if (8 === h.nodeType) if (h.data === l$2) v.push({
|
|
@@ -993,16 +416,16 @@ class V {
|
|
|
993
416
|
return s.innerHTML = t, s;
|
|
994
417
|
}
|
|
995
418
|
}
|
|
996
|
-
function
|
|
419
|
+
function S(t, i, s = t, e) {
|
|
997
420
|
var o, n, l, h;
|
|
998
421
|
if (i === T) return i;
|
|
999
422
|
let r = void 0 !== e ? null === (o = s._$Co) || void 0 === o ? void 0 : o[e] : s._$Cl;
|
|
1000
|
-
const
|
|
1001
|
-
return (null == r ? void 0 : r.constructor) !==
|
|
423
|
+
const u = d(i) ? void 0 : i._$litDirective$;
|
|
424
|
+
return (null == r ? void 0 : r.constructor) !== u && (null === (n = null == r ? void 0 : r._$AO) || void 0 === n || n.call(r, !1), void 0 === u ? r = void 0 : (r = new u(t), r._$AT(t, s, e)), void 0 !== e ? (null !== (l = (h = s)._$Co) && void 0 !== l ? l : h._$Co = [])[e] = r : s._$Cl = r), void 0 !== r && (i = S(t, r._$AS(t, i.values), r, e)), i;
|
|
1002
425
|
}
|
|
1003
|
-
class
|
|
426
|
+
class M {
|
|
1004
427
|
constructor(t, i) {
|
|
1005
|
-
this.
|
|
428
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
|
1006
429
|
}
|
|
1007
430
|
get parentNode() {
|
|
1008
431
|
return this._$AM.parentNode;
|
|
@@ -1010,7 +433,7 @@ class S {
|
|
|
1010
433
|
get _$AU() {
|
|
1011
434
|
return this._$AM._$AU;
|
|
1012
435
|
}
|
|
1013
|
-
|
|
436
|
+
u(t) {
|
|
1014
437
|
var i;
|
|
1015
438
|
const {
|
|
1016
439
|
el: {
|
|
@@ -1023,29 +446,29 @@ class S {
|
|
|
1023
446
|
let n = C.nextNode(),
|
|
1024
447
|
l = 0,
|
|
1025
448
|
h = 0,
|
|
1026
|
-
|
|
1027
|
-
for (; void 0 !==
|
|
1028
|
-
if (l ===
|
|
449
|
+
u = e[0];
|
|
450
|
+
for (; void 0 !== u;) {
|
|
451
|
+
if (l === u.index) {
|
|
1029
452
|
let i;
|
|
1030
|
-
2 ===
|
|
453
|
+
2 === u.type ? i = new R(n, n.nextSibling, this, t) : 1 === u.type ? i = new u.ctor(n, u.name, u.strings, this, t) : 6 === u.type && (i = new Z(n, this, t)), this._$AV.push(i), u = e[++h];
|
|
1031
454
|
}
|
|
1032
|
-
l !== (null ==
|
|
455
|
+
l !== (null == u ? void 0 : u.index) && (n = C.nextNode(), l++);
|
|
1033
456
|
}
|
|
1034
|
-
return o;
|
|
457
|
+
return C.currentNode = r, o;
|
|
1035
458
|
}
|
|
1036
|
-
|
|
459
|
+
v(t) {
|
|
1037
460
|
let i = 0;
|
|
1038
|
-
for (const s of this.
|
|
461
|
+
for (const s of this._$AV) void 0 !== s && (void 0 !== s.strings ? (s._$AI(t, s, i), i += s.strings.length - 2) : s._$AI(t[i])), i++;
|
|
1039
462
|
}
|
|
1040
463
|
}
|
|
1041
|
-
class
|
|
464
|
+
class R {
|
|
1042
465
|
constructor(t, i, s, e) {
|
|
1043
466
|
var o;
|
|
1044
|
-
this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$
|
|
467
|
+
this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cp = null === (o = null == e ? void 0 : e.isConnected) || void 0 === o || o;
|
|
1045
468
|
}
|
|
1046
469
|
get _$AU() {
|
|
1047
470
|
var t, i;
|
|
1048
|
-
return null !== (i = null === (t = this._$AM) || void 0 === t ? void 0 : t._$AU) && void 0 !== i ? i : this._$
|
|
471
|
+
return null !== (i = null === (t = this._$AM) || void 0 === t ? void 0 : t._$AU) && void 0 !== i ? i : this._$Cp;
|
|
1049
472
|
}
|
|
1050
473
|
get parentNode() {
|
|
1051
474
|
let t = this._$AA.parentNode;
|
|
@@ -1059,40 +482,40 @@ class M {
|
|
|
1059
482
|
return this._$AB;
|
|
1060
483
|
}
|
|
1061
484
|
_$AI(t, i = this) {
|
|
1062
|
-
t =
|
|
485
|
+
t = S(this, t, i), d(t) ? t === A || null == t || "" === t ? (this._$AH !== A && this._$AR(), this._$AH = A) : t !== this._$AH && t !== T && this._(t) : void 0 !== t._$litType$ ? this.g(t) : void 0 !== t.nodeType ? this.$(t) : v(t) ? this.T(t) : this._(t);
|
|
1063
486
|
}
|
|
1064
|
-
|
|
487
|
+
k(t) {
|
|
1065
488
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
1066
489
|
}
|
|
1067
|
-
|
|
1068
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.
|
|
490
|
+
$(t) {
|
|
491
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
|
1069
492
|
}
|
|
1070
|
-
|
|
1071
|
-
this._$AH !== A &&
|
|
493
|
+
_(t) {
|
|
494
|
+
this._$AH !== A && d(this._$AH) ? this._$AA.nextSibling.data = t : this.$(r.createTextNode(t)), this._$AH = t;
|
|
1072
495
|
}
|
|
1073
|
-
|
|
496
|
+
g(t) {
|
|
1074
497
|
var i;
|
|
1075
498
|
const {
|
|
1076
499
|
values: s,
|
|
1077
500
|
_$litType$: e
|
|
1078
501
|
} = t,
|
|
1079
|
-
o = "number" == typeof e ? this._$AC(t) : (void 0 === e.el && (e.el =
|
|
1080
|
-
if ((null === (i = this._$AH) || void 0 === i ? void 0 : i._$AD) === o) this._$AH.
|
|
1081
|
-
const t = new
|
|
1082
|
-
i = t.
|
|
1083
|
-
t.
|
|
502
|
+
o = "number" == typeof e ? this._$AC(t) : (void 0 === e.el && (e.el = N.createElement(P(e.h, e.h[0]), this.options)), e);
|
|
503
|
+
if ((null === (i = this._$AH) || void 0 === i ? void 0 : i._$AD) === o) this._$AH.v(s);else {
|
|
504
|
+
const t = new M(o, this),
|
|
505
|
+
i = t.u(this.options);
|
|
506
|
+
t.v(s), this.$(i), this._$AH = t;
|
|
1084
507
|
}
|
|
1085
508
|
}
|
|
1086
509
|
_$AC(t) {
|
|
1087
510
|
let i = E.get(t.strings);
|
|
1088
|
-
return void 0 === i && E.set(t.strings, i = new
|
|
511
|
+
return void 0 === i && E.set(t.strings, i = new N(t)), i;
|
|
1089
512
|
}
|
|
1090
|
-
|
|
513
|
+
T(t) {
|
|
1091
514
|
c(this._$AH) || (this._$AH = [], this._$AR());
|
|
1092
515
|
const i = this._$AH;
|
|
1093
516
|
let s,
|
|
1094
517
|
e = 0;
|
|
1095
|
-
for (const o of t) e === i.length ? i.push(s = new
|
|
518
|
+
for (const o of t) e === i.length ? i.push(s = new R(this.k(u()), this.k(u()), this, this.options)) : s = i[e], s._$AI(o), e++;
|
|
1096
519
|
e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
|
|
1097
520
|
}
|
|
1098
521
|
_$AR(t = this._$AA.nextSibling, i) {
|
|
@@ -1104,10 +527,10 @@ class M {
|
|
|
1104
527
|
}
|
|
1105
528
|
setConnected(t) {
|
|
1106
529
|
var i;
|
|
1107
|
-
void 0 === this._$AM && (this._$
|
|
530
|
+
void 0 === this._$AM && (this._$Cp = t, null === (i = this._$AP) || void 0 === i || i.call(this, t));
|
|
1108
531
|
}
|
|
1109
532
|
}
|
|
1110
|
-
class
|
|
533
|
+
class k {
|
|
1111
534
|
constructor(t, i, s, e, o) {
|
|
1112
535
|
this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = o, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = A;
|
|
1113
536
|
}
|
|
@@ -1120,10 +543,10 @@ class R {
|
|
|
1120
543
|
_$AI(t, i = this, s, e) {
|
|
1121
544
|
const o = this.strings;
|
|
1122
545
|
let n = !1;
|
|
1123
|
-
if (void 0 === o) t =
|
|
546
|
+
if (void 0 === o) t = S(this, t, i, 0), n = !d(t) || t !== this._$AH && t !== T, n && (this._$AH = t);else {
|
|
1124
547
|
const e = t;
|
|
1125
548
|
let l, h;
|
|
1126
|
-
for (t = o[0], l = 0; l < o.length - 1; l++) h =
|
|
549
|
+
for (t = o[0], l = 0; l < o.length - 1; l++) h = S(this, e[s + l], i, l), h === T && (h = this._$AH[l]), n || (n = !d(h) || h !== this._$AH[l]), h === A ? t = A : t !== A && (t += (null != h ? h : "") + o[l + 1]), this._$AH[l] = h;
|
|
1127
550
|
}
|
|
1128
551
|
n && !e && this.j(t);
|
|
1129
552
|
}
|
|
@@ -1131,7 +554,7 @@ class R {
|
|
|
1131
554
|
t === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t ? t : "");
|
|
1132
555
|
}
|
|
1133
556
|
}
|
|
1134
|
-
class
|
|
557
|
+
class H extends k {
|
|
1135
558
|
constructor() {
|
|
1136
559
|
super(...arguments), this.type = 3;
|
|
1137
560
|
}
|
|
@@ -1139,22 +562,22 @@ class k extends R {
|
|
|
1139
562
|
this.element[this.name] = t === A ? void 0 : t;
|
|
1140
563
|
}
|
|
1141
564
|
}
|
|
1142
|
-
const
|
|
1143
|
-
class
|
|
565
|
+
const I = s$1 ? s$1.emptyScript : "";
|
|
566
|
+
class L extends k {
|
|
1144
567
|
constructor() {
|
|
1145
568
|
super(...arguments), this.type = 4;
|
|
1146
569
|
}
|
|
1147
570
|
j(t) {
|
|
1148
|
-
t && t !== A ? this.element.setAttribute(this.name,
|
|
571
|
+
t && t !== A ? this.element.setAttribute(this.name, I) : this.element.removeAttribute(this.name);
|
|
1149
572
|
}
|
|
1150
573
|
}
|
|
1151
|
-
class
|
|
574
|
+
class z extends k {
|
|
1152
575
|
constructor(t, i, s, e, o) {
|
|
1153
576
|
super(t, i, s, e, o), this.type = 5;
|
|
1154
577
|
}
|
|
1155
578
|
_$AI(t, i = this) {
|
|
1156
579
|
var s;
|
|
1157
|
-
if ((t = null !== (s =
|
|
580
|
+
if ((t = null !== (s = S(this, t, i, 0)) && void 0 !== s ? s : A) === T) return;
|
|
1158
581
|
const e = this._$AH,
|
|
1159
582
|
o = t === A && e !== A || t.capture !== e.capture || t.once !== e.once || t.passive !== e.passive,
|
|
1160
583
|
n = t !== A && (e === A || o);
|
|
@@ -1165,7 +588,7 @@ class L extends R {
|
|
|
1165
588
|
"function" == typeof this._$AH ? this._$AH.call(null !== (s = null === (i = this.options) || void 0 === i ? void 0 : i.host) && void 0 !== s ? s : this.element, t) : this._$AH.handleEvent(t);
|
|
1166
589
|
}
|
|
1167
590
|
}
|
|
1168
|
-
class
|
|
591
|
+
class Z {
|
|
1169
592
|
constructor(t, i, s) {
|
|
1170
593
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
|
|
1171
594
|
}
|
|
@@ -1173,18 +596,18 @@ class z {
|
|
|
1173
596
|
return this._$AM._$AU;
|
|
1174
597
|
}
|
|
1175
598
|
_$AI(t) {
|
|
1176
|
-
|
|
599
|
+
S(this, t);
|
|
1177
600
|
}
|
|
1178
601
|
}
|
|
1179
|
-
const
|
|
1180
|
-
null ==
|
|
1181
|
-
const
|
|
602
|
+
const B = i.litHtmlPolyfillSupport;
|
|
603
|
+
null == B || B(N, R), (null !== (t = i.litHtmlVersions) && void 0 !== t ? t : i.litHtmlVersions = []).push("2.8.0");
|
|
604
|
+
const D = (t, i, s) => {
|
|
1182
605
|
var e, o;
|
|
1183
606
|
const n = null !== (e = null == s ? void 0 : s.renderBefore) && void 0 !== e ? e : i;
|
|
1184
607
|
let l = n._$litPart$;
|
|
1185
608
|
if (void 0 === l) {
|
|
1186
609
|
const t = null !== (o = null == s ? void 0 : s.renderBefore) && void 0 !== o ? o : null;
|
|
1187
|
-
n._$litPart$ = l = new
|
|
610
|
+
n._$litPart$ = l = new R(i.insertBefore(u(), t), t, void 0, null != s ? s : {});
|
|
1188
611
|
}
|
|
1189
612
|
return l._$AI(t), l;
|
|
1190
613
|
};
|
|
@@ -1195,7 +618,7 @@ const B = (t, i, s) => {
|
|
|
1195
618
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1196
619
|
*/
|
|
1197
620
|
var l$1, o;
|
|
1198
|
-
class s extends
|
|
621
|
+
class s extends u$1 {
|
|
1199
622
|
constructor() {
|
|
1200
623
|
super(...arguments), this.renderOptions = {
|
|
1201
624
|
host: this
|
|
@@ -1208,7 +631,7 @@ class s extends a$1 {
|
|
|
1208
631
|
}
|
|
1209
632
|
update(t) {
|
|
1210
633
|
const i = this.render();
|
|
1211
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
634
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = D(i, this.renderRoot, this.renderOptions);
|
|
1212
635
|
}
|
|
1213
636
|
connectedCallback() {
|
|
1214
637
|
var t;
|
|
@@ -1229,7 +652,7 @@ const n = globalThis.litElementPolyfillSupport;
|
|
|
1229
652
|
null == n || n({
|
|
1230
653
|
LitElement: s
|
|
1231
654
|
});
|
|
1232
|
-
(null !== (o = globalThis.litElementVersions) && void 0 !== o ? o : globalThis.litElementVersions = []).push("3.3.
|
|
655
|
+
(null !== (o = globalThis.litElementVersions) && void 0 !== o ? o : globalThis.litElementVersions = []).push("3.3.3");
|
|
1233
656
|
|
|
1234
657
|
var noop = {
|
|
1235
658
|
value: () => {}
|
|
@@ -2146,15 +1569,15 @@ function Color() {}
|
|
|
2146
1569
|
var darker = 0.7;
|
|
2147
1570
|
var brighter = 1 / darker;
|
|
2148
1571
|
var reI = "\\s*([+-]?\\d+)\\s*",
|
|
2149
|
-
reN = "\\s*([+-]?\\d
|
|
2150
|
-
reP = "\\s*([+-]?\\d
|
|
1572
|
+
reN = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",
|
|
1573
|
+
reP = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
|
|
2151
1574
|
reHex = /^#([0-9a-f]{3,8})$/,
|
|
2152
|
-
reRgbInteger = new RegExp(
|
|
2153
|
-
reRgbPercent = new RegExp(
|
|
2154
|
-
reRgbaInteger = new RegExp(
|
|
2155
|
-
reRgbaPercent = new RegExp(
|
|
2156
|
-
reHslPercent = new RegExp(
|
|
2157
|
-
reHslaPercent = new RegExp(
|
|
1575
|
+
reRgbInteger = new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`),
|
|
1576
|
+
reRgbPercent = new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`),
|
|
1577
|
+
reRgbaInteger = new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`),
|
|
1578
|
+
reRgbaPercent = new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`),
|
|
1579
|
+
reHslPercent = new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`),
|
|
1580
|
+
reHslaPercent = new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`);
|
|
2158
1581
|
var named = {
|
|
2159
1582
|
aliceblue: 0xf0f8ff,
|
|
2160
1583
|
antiquewhite: 0xfaebd7,
|
|
@@ -2306,15 +1729,16 @@ var named = {
|
|
|
2306
1729
|
yellowgreen: 0x9acd32
|
|
2307
1730
|
};
|
|
2308
1731
|
define(Color, color, {
|
|
2309
|
-
copy
|
|
1732
|
+
copy(channels) {
|
|
2310
1733
|
return Object.assign(new this.constructor(), this, channels);
|
|
2311
1734
|
},
|
|
2312
|
-
displayable
|
|
1735
|
+
displayable() {
|
|
2313
1736
|
return this.rgb().displayable();
|
|
2314
1737
|
},
|
|
2315
1738
|
hex: color_formatHex,
|
|
2316
1739
|
// Deprecated! Use color.formatHex.
|
|
2317
1740
|
formatHex: color_formatHex,
|
|
1741
|
+
formatHex8: color_formatHex8,
|
|
2318
1742
|
formatHsl: color_formatHsl,
|
|
2319
1743
|
formatRgb: color_formatRgb,
|
|
2320
1744
|
toString: color_formatRgb
|
|
@@ -2322,6 +1746,9 @@ define(Color, color, {
|
|
|
2322
1746
|
function color_formatHex() {
|
|
2323
1747
|
return this.rgb().formatHex();
|
|
2324
1748
|
}
|
|
1749
|
+
function color_formatHex8() {
|
|
1750
|
+
return this.rgb().formatHex8();
|
|
1751
|
+
}
|
|
2325
1752
|
function color_formatHsl() {
|
|
2326
1753
|
return hslConvert(this).formatHsl();
|
|
2327
1754
|
}
|
|
@@ -2368,36 +1795,48 @@ function Rgb(r, g, b, opacity) {
|
|
|
2368
1795
|
this.opacity = +opacity;
|
|
2369
1796
|
}
|
|
2370
1797
|
define(Rgb, rgb, extend(Color, {
|
|
2371
|
-
brighter
|
|
1798
|
+
brighter(k) {
|
|
2372
1799
|
k = k == null ? brighter : Math.pow(brighter, k);
|
|
2373
1800
|
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
2374
1801
|
},
|
|
2375
|
-
darker
|
|
1802
|
+
darker(k) {
|
|
2376
1803
|
k = k == null ? darker : Math.pow(darker, k);
|
|
2377
1804
|
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
2378
1805
|
},
|
|
2379
|
-
rgb
|
|
1806
|
+
rgb() {
|
|
2380
1807
|
return this;
|
|
2381
1808
|
},
|
|
2382
|
-
|
|
1809
|
+
clamp() {
|
|
1810
|
+
return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
|
|
1811
|
+
},
|
|
1812
|
+
displayable() {
|
|
2383
1813
|
return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
2384
1814
|
},
|
|
2385
1815
|
hex: rgb_formatHex,
|
|
2386
1816
|
// Deprecated! Use color.formatHex.
|
|
2387
1817
|
formatHex: rgb_formatHex,
|
|
1818
|
+
formatHex8: rgb_formatHex8,
|
|
2388
1819
|
formatRgb: rgb_formatRgb,
|
|
2389
1820
|
toString: rgb_formatRgb
|
|
2390
1821
|
}));
|
|
2391
1822
|
function rgb_formatHex() {
|
|
2392
|
-
return
|
|
1823
|
+
return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`;
|
|
1824
|
+
}
|
|
1825
|
+
function rgb_formatHex8() {
|
|
1826
|
+
return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
2393
1827
|
}
|
|
2394
1828
|
function rgb_formatRgb() {
|
|
2395
|
-
|
|
2396
|
-
a
|
|
2397
|
-
|
|
1829
|
+
const a = clampa(this.opacity);
|
|
1830
|
+
return `${a === 1 ? "rgb(" : "rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a === 1 ? ")" : `, ${a})`}`;
|
|
1831
|
+
}
|
|
1832
|
+
function clampa(opacity) {
|
|
1833
|
+
return isNaN(opacity) ? 1 : Math.max(0, Math.min(1, opacity));
|
|
1834
|
+
}
|
|
1835
|
+
function clampi(value) {
|
|
1836
|
+
return Math.max(0, Math.min(255, Math.round(value) || 0));
|
|
2398
1837
|
}
|
|
2399
1838
|
function hex(value) {
|
|
2400
|
-
value =
|
|
1839
|
+
value = clampi(value);
|
|
2401
1840
|
return (value < 16 ? "0" : "") + value.toString(16);
|
|
2402
1841
|
}
|
|
2403
1842
|
function hsla(h, s, l, a) {
|
|
@@ -2437,15 +1876,15 @@ function Hsl(h, s, l, opacity) {
|
|
|
2437
1876
|
this.opacity = +opacity;
|
|
2438
1877
|
}
|
|
2439
1878
|
define(Hsl, hsl, extend(Color, {
|
|
2440
|
-
brighter
|
|
1879
|
+
brighter(k) {
|
|
2441
1880
|
k = k == null ? brighter : Math.pow(brighter, k);
|
|
2442
1881
|
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
2443
1882
|
},
|
|
2444
|
-
darker
|
|
1883
|
+
darker(k) {
|
|
2445
1884
|
k = k == null ? darker : Math.pow(darker, k);
|
|
2446
1885
|
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
2447
1886
|
},
|
|
2448
|
-
rgb
|
|
1887
|
+
rgb() {
|
|
2449
1888
|
var h = this.h % 360 + (this.h < 0) * 360,
|
|
2450
1889
|
s = isNaN(h) || isNaN(this.s) ? 0 : this.s,
|
|
2451
1890
|
l = this.l,
|
|
@@ -2453,15 +1892,24 @@ define(Hsl, hsl, extend(Color, {
|
|
|
2453
1892
|
m1 = 2 * l - m2;
|
|
2454
1893
|
return new Rgb(hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), hsl2rgb(h, m1, m2), hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), this.opacity);
|
|
2455
1894
|
},
|
|
2456
|
-
|
|
1895
|
+
clamp() {
|
|
1896
|
+
return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));
|
|
1897
|
+
},
|
|
1898
|
+
displayable() {
|
|
2457
1899
|
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
2458
1900
|
},
|
|
2459
|
-
formatHsl
|
|
2460
|
-
|
|
2461
|
-
a
|
|
2462
|
-
return (a === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a === 1 ? ")" : ", " + a + ")");
|
|
1901
|
+
formatHsl() {
|
|
1902
|
+
const a = clampa(this.opacity);
|
|
1903
|
+
return `${a === 1 ? "hsl(" : "hsla("}${clamph(this.h)}, ${clampt(this.s) * 100}%, ${clampt(this.l) * 100}%${a === 1 ? ")" : `, ${a})`}`;
|
|
2463
1904
|
}
|
|
2464
1905
|
}));
|
|
1906
|
+
function clamph(value) {
|
|
1907
|
+
value = (value || 0) % 360;
|
|
1908
|
+
return value < 0 ? value + 360 : value;
|
|
1909
|
+
}
|
|
1910
|
+
function clampt(value) {
|
|
1911
|
+
return Math.max(0, Math.min(1, value || 0));
|
|
1912
|
+
}
|
|
2465
1913
|
|
|
2466
1914
|
/* From FvD 13.37, CSS Color Module Level 3 */
|
|
2467
1915
|
function hsl2rgb(h, m1, m2) {
|
|
@@ -3791,6 +3239,48 @@ class DecidablesElement extends s {
|
|
|
3791
3239
|
const ambientS = rotate ? `${-ambientM.y}px ${ambientM.y / 2}px ${ambientM.b}px ${ambientM.s}px` : `${ambientM.y / 2}px ${ambientM.y}px ${ambientM.b}px ${ambientM.s}px`;
|
|
3792
3240
|
return `${umbraS} ${umbraC}, ${penumbraS} ${penumbraC}, ${ambientS} ${ambientC}`;
|
|
3793
3241
|
}
|
|
3242
|
+
static get svgDefs() {
|
|
3243
|
+
const shadows = DecidablesElement.shadows; /* eslint-disable-line prefer-destructuring */
|
|
3244
|
+
|
|
3245
|
+
const filters = shadows.elevations.map(z => {
|
|
3246
|
+
return `
|
|
3247
|
+
<filter id=${`shadow-${z}`} filterUnits="userSpaceOnUse" x="-100%" y="-100%" width="200%" height="200%">
|
|
3248
|
+
<feComponentTransfer in="SourceAlpha" result="solid">
|
|
3249
|
+
<feFuncA type="table" tableValues="0 1 1"/>
|
|
3250
|
+
</feComponentTransfer>
|
|
3251
|
+
<feOffset in="solid" result="offU" dx=${shadows.mapUmbra[z].y / 2} dy=${shadows.mapUmbra[z].y} />
|
|
3252
|
+
<feOffset in="solid" result="offP" dx=${shadows.mapPenumbra[z].y / 2} dy=${shadows.mapPenumbra[z].y} />
|
|
3253
|
+
<feOffset in="solid" result="offA" dx=${shadows.mapAmbient[z].y / 2} dy=${shadows.mapAmbient[z].y} />
|
|
3254
|
+
${shadows.mapUmbra[z].s === 0 ? '' : `<feMorphology in="offU" result="spreadU" operator=${shadows.mapUmbra[z].s > 0 ? 'dilate' : 'erode'} radius=${Math.abs(shadows.mapUmbra[z].s)} />`}
|
|
3255
|
+
${shadows.mapPenumbra[z].s === 0 ? '' : `<feMorphology in="offP" result="spreadP" operator=${shadows.mapPenumbra[z].s > 0 ? 'dilate' : 'erode'} radius=${Math.abs(shadows.mapPenumbra[z].s)} />`}
|
|
3256
|
+
${shadows.mapAmbient[z].s === 0 ? '' : `<feMorphology in="offA" result="spreadA" operator=${shadows.mapAmbient[z].s > 0 ? 'dilate' : 'erode'} radius=${Math.abs(shadows.mapAmbient[z].s)} />`}
|
|
3257
|
+
<feGaussianBlur in=${shadows.mapUmbra[z].s === 0 ? 'offU' : 'spreadU'} result="blurU" stdDeviation=${shadows.mapUmbra[z].b / 2} />
|
|
3258
|
+
<feGaussianBlur in=${shadows.mapPenumbra[z].s === 0 ? 'offP' : 'spreadP'} result="blurP" stdDeviation=${shadows.mapPenumbra[z].b / 2} />
|
|
3259
|
+
<feGaussianBlur in=${shadows.mapAmbient[z].s === 0 ? 'offA' : 'spreadA'} result="blurA" stdDeviation=${shadows.mapAmbient[z].b / 2} />
|
|
3260
|
+
<feFlood in="SourceGraphic" result="opU" flood-color=${shadows.baselineColor} flood-opacity=${shadows.opacityUmbra + shadows.opacityBoost} />
|
|
3261
|
+
<feFlood in="SourceGraphic" result="opP" flood-color=${shadows.baselineColor} flood-opacity=${shadows.opacityPenumbra + shadows.opacityBoost} />
|
|
3262
|
+
<feFlood in="SourceGraphic" result="opA" flood-color=${shadows.baselineColor} flood-opacity=${shadows.opacityAmbient + shadows.opacityBoost} />
|
|
3263
|
+
<feComposite in="opU" in2="blurU" result="shU" operator="in" />
|
|
3264
|
+
<feComposite in="opP" in2="blurP" result="shP" operator="in" />
|
|
3265
|
+
<feComposite in="opA" in2="blurA" result="shA" operator="in" />
|
|
3266
|
+
<feMorphology in="solid" result="smaller" operator="erode" radius="1" />
|
|
3267
|
+
<feComposite in="shU" in2="smaller" result="finalU" operator="out" />
|
|
3268
|
+
<feComposite in="shP" in2="smaller" result="finalP" operator="out" />
|
|
3269
|
+
<feComposite in="shA" in2="smaller" result="finalA" operator="out" />
|
|
3270
|
+
<feMerge>
|
|
3271
|
+
<feMergeNode in="finalU" />
|
|
3272
|
+
<feMergeNode in="finalP" />
|
|
3273
|
+
<feMergeNode in="finalA" />
|
|
3274
|
+
<feMergeNode in="SourceGraphic" />
|
|
3275
|
+
</feMerge>
|
|
3276
|
+
</filter>`;
|
|
3277
|
+
});
|
|
3278
|
+
return `
|
|
3279
|
+
<defs>
|
|
3280
|
+
${filters}
|
|
3281
|
+
</defs>
|
|
3282
|
+
`;
|
|
3283
|
+
}
|
|
3794
3284
|
static get svgFilters() {
|
|
3795
3285
|
const shadows = DecidablesElement.shadows; /* eslint-disable-line prefer-destructuring */
|
|
3796
3286
|
|
|
@@ -3798,7 +3288,7 @@ class DecidablesElement extends s {
|
|
|
3798
3288
|
return b`
|
|
3799
3289
|
<filter id=${`shadow-${z}`} x="-250%" y="-250%" width="600%" height="600%">
|
|
3800
3290
|
<feComponentTransfer in="SourceAlpha" result="solid">
|
|
3801
|
-
<feFuncA
|
|
3291
|
+
<feFuncA type="table" tableValues="0 1 1"/>
|
|
3802
3292
|
</feComponentTransfer>
|
|
3803
3293
|
<feOffset in="solid" result="offU" dx=${shadows.mapUmbra[z].y / 2} dy=${shadows.mapUmbra[z].y} />
|
|
3804
3294
|
<feOffset in="solid" result="offP" dx=${shadows.mapPenumbra[z].y / 2} dy=${shadows.mapPenumbra[z].y} />
|
|
@@ -3836,24 +3326,24 @@ class DecidablesElement extends s {
|
|
|
3836
3326
|
`;
|
|
3837
3327
|
}
|
|
3838
3328
|
static get styles() {
|
|
3839
|
-
return
|
|
3329
|
+
return i$1`
|
|
3840
3330
|
:host {
|
|
3841
|
-
---shadow-0: var(--shadow-0, ${
|
|
3842
|
-
---shadow-2: var(--shadow-2, ${
|
|
3843
|
-
---shadow-4: var(--shadow-4, ${
|
|
3844
|
-
---shadow-8: var(--shadow-8, ${
|
|
3845
|
-
|
|
3846
|
-
---color-background: var(--color-background, ${
|
|
3847
|
-
---color-border: var(--color-border, ${
|
|
3848
|
-
---color-text: var(--color-text, ${
|
|
3849
|
-
---color-text-inverse: var(--color-text-inverse, ${
|
|
3850
|
-
---color-link: var(--color-link, ${
|
|
3851
|
-
---color-element-background: var(--color-element-background, ${
|
|
3852
|
-
---color-element-disabled: var(--color-element-disabled, ${
|
|
3853
|
-
---color-element-enabled: var(--color-element-enabled, ${
|
|
3854
|
-
---color-element-selected: var(--color-element-selected, ${
|
|
3855
|
-
---color-element-border: var(--color-element-border, ${
|
|
3856
|
-
---color-element-emphasis: var(--color-element-emphasis, ${
|
|
3331
|
+
---shadow-0: var(--shadow-0, ${r$2(this.cssBoxShadow(0))});
|
|
3332
|
+
---shadow-2: var(--shadow-2, ${r$2(this.cssBoxShadow(2))});
|
|
3333
|
+
---shadow-4: var(--shadow-4, ${r$2(this.cssBoxShadow(4))});
|
|
3334
|
+
---shadow-8: var(--shadow-8, ${r$2(this.cssBoxShadow(8))});
|
|
3335
|
+
|
|
3336
|
+
---color-background: var(--color-background, ${r$2(this.greys.white)});
|
|
3337
|
+
---color-border: var(--color-border, ${r$2(this.greys.light75)});
|
|
3338
|
+
---color-text: var(--color-text, ${r$2(this.greys.dark75)});
|
|
3339
|
+
---color-text-inverse: var(--color-text-inverse, ${r$2(this.greys.white)});
|
|
3340
|
+
---color-link: var(--color-link, ${r$2(this.greys.dark25)});
|
|
3341
|
+
---color-element-background: var(--color-element-background, ${r$2(this.greys.light75)});
|
|
3342
|
+
---color-element-disabled: var(--color-element-disabled, ${r$2(this.greys.light50)});
|
|
3343
|
+
---color-element-enabled: var(--color-element-enabled, ${r$2(this.greys.dark25)});
|
|
3344
|
+
---color-element-selected: var(--color-element-selected, ${r$2(this.greys.grey)});
|
|
3345
|
+
---color-element-border: var(--color-element-border, ${r$2(this.greys.dark50)});
|
|
3346
|
+
---color-element-emphasis: var(--color-element-emphasis, ${r$2(this.greys.dark75)});
|
|
3857
3347
|
|
|
3858
3348
|
---font-family-base: var(--font-family-base, "Source Sans", sans-serif);
|
|
3859
3349
|
---font-family-math: var(--font-family-math, "Source Serif", serif);
|
|
@@ -3914,7 +3404,7 @@ class DecidablesButton extends DecidablesElement {
|
|
|
3914
3404
|
this.disabled = false;
|
|
3915
3405
|
}
|
|
3916
3406
|
static get styles() {
|
|
3917
|
-
return [super.styles,
|
|
3407
|
+
return [super.styles, i$1`
|
|
3918
3408
|
:host {
|
|
3919
3409
|
margin: 0.25rem;
|
|
3920
3410
|
}
|
|
@@ -3984,7 +3474,7 @@ customElements.define('decidables-button', DecidablesButton);
|
|
|
3984
3474
|
* Copyright 2018 Google LLC
|
|
3985
3475
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3986
3476
|
*/
|
|
3987
|
-
const l = l => null != l ? l : A
|
|
3477
|
+
const l = l => null != l ? l : A;
|
|
3988
3478
|
|
|
3989
3479
|
class DecidablesSlider extends DecidablesElement {
|
|
3990
3480
|
static get properties() {
|
|
@@ -4039,11 +3529,11 @@ class DecidablesSlider extends DecidablesElement {
|
|
|
4039
3529
|
this.value = event.target.value;
|
|
4040
3530
|
}
|
|
4041
3531
|
static get styles() {
|
|
4042
|
-
return [super.styles,
|
|
3532
|
+
return [super.styles, i$1`
|
|
4043
3533
|
:host {
|
|
4044
|
-
---shadow-2-rotate: var(--shadow-2-rotate, ${
|
|
4045
|
-
---shadow-4-rotate: var(--shadow-4-rotate, ${
|
|
4046
|
-
---shadow-8-rotate: var(--shadow-8-rotate, ${
|
|
3534
|
+
---shadow-2-rotate: var(--shadow-2-rotate, ${r$2(this.cssBoxShadow(2, true, false))});
|
|
3535
|
+
---shadow-4-rotate: var(--shadow-4-rotate, ${r$2(this.cssBoxShadow(4, true, false))});
|
|
3536
|
+
---shadow-8-rotate: var(--shadow-8-rotate, ${r$2(this.cssBoxShadow(8, true, false))});
|
|
4047
3537
|
|
|
4048
3538
|
display: flex;
|
|
4049
3539
|
|
|
@@ -4349,12 +3839,15 @@ class DecidablesSpinner extends DecidablesElement {
|
|
|
4349
3839
|
this.value = event.target.value;
|
|
4350
3840
|
}
|
|
4351
3841
|
static get styles() {
|
|
4352
|
-
return [super.styles,
|
|
3842
|
+
return [super.styles, i$1`
|
|
4353
3843
|
:host {
|
|
4354
3844
|
---decidables-spinner-font-size: var(--decidables-spinner-font-size, 1.125rem);
|
|
4355
3845
|
---decidables-spinner-input-width: var(--decidables-spinner-input-width, 4rem);
|
|
4356
3846
|
---decidables-spinner-prefix: var(--decidables-spinner-prefix, "");
|
|
4357
3847
|
|
|
3848
|
+
---decidables-spinner-postfix: var(--decidables-spinner-postfix, "");
|
|
3849
|
+
---decidables-spinner-postfix-padding: var(--decidables-spinner-postfix-padding, 0);
|
|
3850
|
+
|
|
4358
3851
|
display: block;
|
|
4359
3852
|
}
|
|
4360
3853
|
|
|
@@ -4382,8 +3875,20 @@ class DecidablesSpinner extends DecidablesElement {
|
|
|
4382
3875
|
content: var(---decidables-spinner-prefix);
|
|
4383
3876
|
}
|
|
4384
3877
|
|
|
3878
|
+
label::after {
|
|
3879
|
+
position: absolute;
|
|
3880
|
+
right: 0.25rem;
|
|
3881
|
+
bottom: 1px;
|
|
3882
|
+
|
|
3883
|
+
font-size: var(---decidables-spinner-font-size);
|
|
3884
|
+
line-height: normal;
|
|
3885
|
+
|
|
3886
|
+
content: var(---decidables-spinner-postfix);
|
|
3887
|
+
}
|
|
3888
|
+
|
|
4385
3889
|
input[type=number] {
|
|
4386
3890
|
width: var(---decidables-spinner-input-width);
|
|
3891
|
+
padding-right: var(---decidables-spinner-postfix-padding);
|
|
4387
3892
|
|
|
4388
3893
|
font-family: var(---font-family-base);
|
|
4389
3894
|
font-size: var(---decidables-spinner-font-size);
|
|
@@ -4473,7 +3978,7 @@ class DecidablesSwitch extends DecidablesElement {
|
|
|
4473
3978
|
}));
|
|
4474
3979
|
}
|
|
4475
3980
|
static get styles() {
|
|
4476
|
-
return [super.styles,
|
|
3981
|
+
return [super.styles, i$1`
|
|
4477
3982
|
:host {
|
|
4478
3983
|
display: flex;
|
|
4479
3984
|
|
|
@@ -4625,7 +4130,7 @@ class DecidablesToggle extends DecidablesElement {
|
|
|
4625
4130
|
this.disabled = false;
|
|
4626
4131
|
}
|
|
4627
4132
|
static get styles() {
|
|
4628
|
-
return [super.styles,
|
|
4133
|
+
return [super.styles, i$1`
|
|
4629
4134
|
fieldset {
|
|
4630
4135
|
display: flex;
|
|
4631
4136
|
|
|
@@ -4700,7 +4205,7 @@ class DecidablesToggleOption extends DecidablesElement {
|
|
|
4700
4205
|
}));
|
|
4701
4206
|
}
|
|
4702
4207
|
static get styles() {
|
|
4703
|
-
return [super.styles,
|
|
4208
|
+
return [super.styles, i$1`
|
|
4704
4209
|
:host {
|
|
4705
4210
|
display: flex;
|
|
4706
4211
|
}
|
|
@@ -4836,5 +4341,49 @@ const DecidablesConverterSet = {
|
|
|
4836
4341
|
}
|
|
4837
4342
|
};
|
|
4838
4343
|
|
|
4839
|
-
|
|
4344
|
+
function DecidablesMixinResizeable(superClass) {
|
|
4345
|
+
return class extends superClass {
|
|
4346
|
+
static get properties() {
|
|
4347
|
+
return {
|
|
4348
|
+
width: {
|
|
4349
|
+
attribute: false,
|
|
4350
|
+
type: Number,
|
|
4351
|
+
reflect: false
|
|
4352
|
+
},
|
|
4353
|
+
height: {
|
|
4354
|
+
attribute: false,
|
|
4355
|
+
type: Number,
|
|
4356
|
+
reflect: false
|
|
4357
|
+
},
|
|
4358
|
+
rem: {
|
|
4359
|
+
attribute: false,
|
|
4360
|
+
type: Number,
|
|
4361
|
+
reflect: false
|
|
4362
|
+
}
|
|
4363
|
+
};
|
|
4364
|
+
}
|
|
4365
|
+
constructor() {
|
|
4366
|
+
super();
|
|
4367
|
+
this.width = NaN;
|
|
4368
|
+
this.height = NaN;
|
|
4369
|
+
this.rem = NaN;
|
|
4370
|
+
}
|
|
4371
|
+
getDimensions() {
|
|
4372
|
+
this.width = parseFloat(this.getComputedStyleValue('width'), 10);
|
|
4373
|
+
this.height = parseFloat(this.getComputedStyleValue('height'), 10);
|
|
4374
|
+
this.rem = parseFloat(getComputedStyle(document.documentElement).getPropertyValue('font-size'), 10);
|
|
4375
|
+
}
|
|
4376
|
+
connectedCallback() {
|
|
4377
|
+
super.connectedCallback();
|
|
4378
|
+
this.resizeObserver = new ResizeObserver(this.getDimensions.bind(this));
|
|
4379
|
+
this.resizeObserver.observe(this);
|
|
4380
|
+
}
|
|
4381
|
+
disconnectedCallback() {
|
|
4382
|
+
this.resizeObserver.unobserve(this);
|
|
4383
|
+
super.disconnectedCallback();
|
|
4384
|
+
}
|
|
4385
|
+
};
|
|
4386
|
+
}
|
|
4387
|
+
|
|
4388
|
+
export { DecidablesButton, DecidablesConverterArray, DecidablesConverterSet, DecidablesElement, DecidablesMixinResizeable, DecidablesSlider, DecidablesSpinner, DecidablesSwitch, DecidablesToggle, DecidablesToggleOption };
|
|
4840
4389
|
//# sourceMappingURL=decidablesElements.esm.js.map
|