@decidables/detectable-elements 0.2.15 → 0.2.16
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 +8 -0
- package/lib/detectableElements.esm.js +186 -188
- package/lib/detectableElements.esm.js.map +1 -1
- package/lib/detectableElements.esm.min.js +3 -3
- package/lib/detectableElements.esm.min.js.map +1 -1
- package/lib/detectableElements.umd.js +186 -188
- package/lib/detectableElements.umd.js.map +1 -1
- package/lib/detectableElements.umd.min.js +3 -3
- package/lib/detectableElements.umd.min.js.map +1 -1
- package/package.json +5 -5
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
6
|
const t$1 = globalThis,
|
|
7
|
-
e$2 = t$1.ShadowRoot && (
|
|
8
|
-
s$
|
|
7
|
+
e$2 = t$1.ShadowRoot && (undefined === t$1.ShadyCSS || t$1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
8
|
+
s$1 = Symbol(),
|
|
9
9
|
o$3 = new WeakMap();
|
|
10
10
|
let n$2 = class n {
|
|
11
11
|
constructor(t, e, o) {
|
|
12
|
-
if (this._$cssResult$ =
|
|
12
|
+
if (this._$cssResult$ = true, o !== s$1) 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$2 &&
|
|
19
|
-
const e =
|
|
20
|
-
e && (t = o$3.get(s)),
|
|
18
|
+
if (e$2 && undefined === t) {
|
|
19
|
+
const e = undefined !== s && 1 === s.length;
|
|
20
|
+
e && (t = o$3.get(s)), undefined === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$3.set(s, t));
|
|
21
21
|
}
|
|
22
22
|
return t;
|
|
23
23
|
}
|
|
@@ -25,20 +25,20 @@ let n$2 = class n {
|
|
|
25
25
|
return this.cssText;
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
const r$3 = t => new n$2("string" == typeof t ? t : t + "",
|
|
29
|
-
i$
|
|
28
|
+
const r$3 = t => new n$2("string" == typeof t ? t : t + "", undefined, s$1),
|
|
29
|
+
i$3 = (t, ...e) => {
|
|
30
30
|
const o = 1 === t.length ? t[0] : e.reduce((e, s, o) => e + (t => {
|
|
31
|
-
if (
|
|
31
|
+
if (true === t._$cssResult$) return t.cssText;
|
|
32
32
|
if ("number" == typeof t) return t;
|
|
33
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.");
|
|
34
34
|
})(s) + t[o + 1], t[0]);
|
|
35
|
-
return new n$2(o, t, s$
|
|
35
|
+
return new n$2(o, t, s$1);
|
|
36
36
|
},
|
|
37
37
|
S$1 = (s, o) => {
|
|
38
38
|
if (e$2) s.adoptedStyleSheets = o.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet);else for (const e of o) {
|
|
39
39
|
const o = document.createElement("style"),
|
|
40
40
|
n = t$1.litNonce;
|
|
41
|
-
|
|
41
|
+
undefined !== n && o.setAttribute("nonce", n), o.textContent = e.cssText, s.appendChild(o);
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
c$2 = e$2 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
|
|
@@ -53,7 +53,7 @@ const r$3 = t => new n$2("string" == typeof t ? t : t + "", void 0, s$2),
|
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
54
|
*/
|
|
55
55
|
const {
|
|
56
|
-
is: i$
|
|
56
|
+
is: i$2,
|
|
57
57
|
defineProperty: e$1,
|
|
58
58
|
getOwnPropertyDescriptor: r$2,
|
|
59
59
|
getOwnPropertyNames: h$1,
|
|
@@ -97,12 +97,12 @@ const {
|
|
|
97
97
|
return i;
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
|
-
f$1 = (t, s) => !i$
|
|
100
|
+
f$1 = (t, s) => !i$2(t, s),
|
|
101
101
|
y$2 = {
|
|
102
|
-
attribute:
|
|
102
|
+
attribute: true,
|
|
103
103
|
type: String,
|
|
104
104
|
converter: u$1,
|
|
105
|
-
reflect:
|
|
105
|
+
reflect: false,
|
|
106
106
|
hasChanged: f$1
|
|
107
107
|
};
|
|
108
108
|
Symbol.metadata ??= Symbol("metadata"), a$1.litPropertyMetadata ??= new WeakMap();
|
|
@@ -114,10 +114,10 @@ let b$1 = class b extends HTMLElement {
|
|
|
114
114
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
115
115
|
}
|
|
116
116
|
static createProperty(t, s = y$2) {
|
|
117
|
-
if (s.state && (s.attribute =
|
|
117
|
+
if (s.state && (s.attribute = false), this._$Ei(), this.elementProperties.set(t, s), !s.noAccessor) {
|
|
118
118
|
const i = Symbol(),
|
|
119
119
|
r = this.getPropertyDescriptor(t, i, s);
|
|
120
|
-
|
|
120
|
+
undefined !== r && e$1(this.prototype, t, r);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
static getPropertyDescriptor(t, s, i) {
|
|
@@ -140,8 +140,8 @@ let b$1 = class b extends HTMLElement {
|
|
|
140
140
|
const r = e?.call(this);
|
|
141
141
|
h.call(this, s), this.requestUpdate(t, r, i);
|
|
142
142
|
},
|
|
143
|
-
configurable:
|
|
144
|
-
enumerable:
|
|
143
|
+
configurable: true,
|
|
144
|
+
enumerable: true
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
147
|
static getPropertyOptions(t) {
|
|
@@ -150,11 +150,11 @@ let b$1 = class b extends HTMLElement {
|
|
|
150
150
|
static _$Ei() {
|
|
151
151
|
if (this.hasOwnProperty(d$1("elementProperties"))) return;
|
|
152
152
|
const t = n$1(this);
|
|
153
|
-
t.finalize(),
|
|
153
|
+
t.finalize(), undefined !== t.l && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
154
154
|
}
|
|
155
155
|
static finalize() {
|
|
156
156
|
if (this.hasOwnProperty(d$1("finalized"))) return;
|
|
157
|
-
if (this.finalized =
|
|
157
|
+
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
|
|
158
158
|
const t = this.properties,
|
|
159
159
|
s = [...h$1(t), ...o$2(t)];
|
|
160
160
|
for (const i of s) this.createProperty(i, t[i]);
|
|
@@ -162,12 +162,12 @@ let b$1 = class b extends HTMLElement {
|
|
|
162
162
|
const t = this[Symbol.metadata];
|
|
163
163
|
if (null !== t) {
|
|
164
164
|
const s = litPropertyMetadata.get(t);
|
|
165
|
-
if (
|
|
165
|
+
if (undefined !== s) for (const [t, i] of s) this.elementProperties.set(t, i);
|
|
166
166
|
}
|
|
167
167
|
this._$Eh = new Map();
|
|
168
168
|
for (const [t, s] of this.elementProperties) {
|
|
169
169
|
const i = this._$Eu(t, s);
|
|
170
|
-
|
|
170
|
+
undefined !== i && this._$Eh.set(i, t);
|
|
171
171
|
}
|
|
172
172
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
173
173
|
}
|
|
@@ -176,21 +176,21 @@ let b$1 = class b extends HTMLElement {
|
|
|
176
176
|
if (Array.isArray(s)) {
|
|
177
177
|
const e = new Set(s.flat(1 / 0).reverse());
|
|
178
178
|
for (const s of e) i.unshift(c$2(s));
|
|
179
|
-
} else
|
|
179
|
+
} else undefined !== s && i.push(c$2(s));
|
|
180
180
|
return i;
|
|
181
181
|
}
|
|
182
182
|
static _$Eu(t, s) {
|
|
183
183
|
const i = s.attribute;
|
|
184
|
-
return
|
|
184
|
+
return false === i ? undefined : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : undefined;
|
|
185
185
|
}
|
|
186
186
|
constructor() {
|
|
187
|
-
super(), this._$Ep =
|
|
187
|
+
super(), this._$Ep = undefined, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
188
188
|
}
|
|
189
189
|
_$Ev() {
|
|
190
190
|
this._$ES = new Promise(t => this.enableUpdating = t), this._$AL = new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(t => t(this));
|
|
191
191
|
}
|
|
192
192
|
addController(t) {
|
|
193
|
-
(this._$EO ??= new Set()).add(t),
|
|
193
|
+
(this._$EO ??= new Set()).add(t), undefined !== this.renderRoot && this.isConnected && t.hostConnected?.();
|
|
194
194
|
}
|
|
195
195
|
removeController(t) {
|
|
196
196
|
this._$EO?.delete(t);
|
|
@@ -206,7 +206,7 @@ let b$1 = class b extends HTMLElement {
|
|
|
206
206
|
return S$1(t, this.constructor.elementStyles), t;
|
|
207
207
|
}
|
|
208
208
|
connectedCallback() {
|
|
209
|
-
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(
|
|
209
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach(t => t.hostConnected?.());
|
|
210
210
|
}
|
|
211
211
|
enableUpdating(t) {}
|
|
212
212
|
disconnectedCallback() {
|
|
@@ -218,34 +218,34 @@ let b$1 = class b extends HTMLElement {
|
|
|
218
218
|
_$EC(t, s) {
|
|
219
219
|
const i = this.constructor.elementProperties.get(t),
|
|
220
220
|
e = this.constructor._$Eu(t, i);
|
|
221
|
-
if (
|
|
222
|
-
const r = (
|
|
221
|
+
if (undefined !== e && true === i.reflect) {
|
|
222
|
+
const r = (undefined !== i.converter?.toAttribute ? i.converter : u$1).toAttribute(s, i.type);
|
|
223
223
|
this._$Em = t, null == r ? this.removeAttribute(e) : this.setAttribute(e, r), this._$Em = null;
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
_$AK(t, s) {
|
|
227
227
|
const i = this.constructor,
|
|
228
228
|
e = i._$Eh.get(t);
|
|
229
|
-
if (
|
|
229
|
+
if (undefined !== e && this._$Em !== e) {
|
|
230
230
|
const t = i.getPropertyOptions(e),
|
|
231
231
|
r = "function" == typeof t.converter ? {
|
|
232
232
|
fromAttribute: t.converter
|
|
233
|
-
} :
|
|
233
|
+
} : undefined !== t.converter?.fromAttribute ? t.converter : u$1;
|
|
234
234
|
this._$Em = e, this[e] = r.fromAttribute(s, t.type), this._$Em = null;
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
requestUpdate(t, s, i) {
|
|
238
|
-
if (
|
|
238
|
+
if (undefined !== t) {
|
|
239
239
|
if (i ??= this.constructor.getPropertyOptions(t), !(i.hasChanged ?? f$1)(this[t], s)) return;
|
|
240
240
|
this.P(t, s, i);
|
|
241
241
|
}
|
|
242
|
-
|
|
242
|
+
false === this.isUpdatePending && (this._$ES = this._$ET());
|
|
243
243
|
}
|
|
244
244
|
P(t, s, i) {
|
|
245
|
-
this._$AL.has(t) || this._$AL.set(t, s),
|
|
245
|
+
this._$AL.has(t) || this._$AL.set(t, s), true === i.reflect && this._$Em !== t && (this._$Ej ??= new Set()).add(t);
|
|
246
246
|
}
|
|
247
247
|
async _$ET() {
|
|
248
|
-
this.isUpdatePending =
|
|
248
|
+
this.isUpdatePending = true;
|
|
249
249
|
try {
|
|
250
250
|
await this._$ES;
|
|
251
251
|
} catch (t) {
|
|
@@ -262,26 +262,26 @@ let b$1 = class b extends HTMLElement {
|
|
|
262
262
|
if (!this.hasUpdated) {
|
|
263
263
|
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
264
264
|
for (const [t, s] of this._$Ep) this[t] = s;
|
|
265
|
-
this._$Ep =
|
|
265
|
+
this._$Ep = undefined;
|
|
266
266
|
}
|
|
267
267
|
const t = this.constructor.elementProperties;
|
|
268
|
-
if (t.size > 0) for (const [s, i] of t)
|
|
268
|
+
if (t.size > 0) for (const [s, i] of t) true !== i.wrapped || this._$AL.has(s) || undefined === this[s] || this.P(s, this[s], i);
|
|
269
269
|
}
|
|
270
|
-
let t =
|
|
270
|
+
let t = false;
|
|
271
271
|
const s = this._$AL;
|
|
272
272
|
try {
|
|
273
273
|
t = this.shouldUpdate(s), t ? (this.willUpdate(s), this._$EO?.forEach(t => t.hostUpdate?.()), this.update(s)) : this._$EU();
|
|
274
274
|
} catch (s) {
|
|
275
|
-
throw t =
|
|
275
|
+
throw t = false, this._$EU(), s;
|
|
276
276
|
}
|
|
277
277
|
t && this._$AE(s);
|
|
278
278
|
}
|
|
279
279
|
willUpdate(t) {}
|
|
280
280
|
_$AE(t) {
|
|
281
|
-
this._$EO?.forEach(t => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated =
|
|
281
|
+
this._$EO?.forEach(t => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
|
|
282
282
|
}
|
|
283
283
|
_$EU() {
|
|
284
|
-
this._$AL = new Map(), this.isUpdatePending =
|
|
284
|
+
this._$AL = new Map(), this.isUpdatePending = false;
|
|
285
285
|
}
|
|
286
286
|
get updateComplete() {
|
|
287
287
|
return this.getUpdateComplete();
|
|
@@ -290,7 +290,7 @@ let b$1 = class b extends HTMLElement {
|
|
|
290
290
|
return this._$ES;
|
|
291
291
|
}
|
|
292
292
|
shouldUpdate(t) {
|
|
293
|
-
return
|
|
293
|
+
return true;
|
|
294
294
|
}
|
|
295
295
|
update(t) {
|
|
296
296
|
this._$Ej &&= this._$Ej.forEach(t => this._$EC(t, this[t])), this._$EU();
|
|
@@ -310,10 +310,10 @@ b$1.elementStyles = [], b$1.shadowRootOptions = {
|
|
|
310
310
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
311
311
|
*/
|
|
312
312
|
const t = globalThis,
|
|
313
|
-
i = t.trustedTypes,
|
|
314
|
-
s
|
|
313
|
+
i$1 = t.trustedTypes,
|
|
314
|
+
s = i$1 ? i$1.createPolicy("lit-html", {
|
|
315
315
|
createHTML: t => t
|
|
316
|
-
}) :
|
|
316
|
+
}) : undefined,
|
|
317
317
|
e = "$lit$",
|
|
318
318
|
h = `lit$${Math.random().toFixed(9).slice(2)}$`,
|
|
319
319
|
o$1 = "?" + h,
|
|
@@ -338,19 +338,19 @@ const t = globalThis,
|
|
|
338
338
|
}),
|
|
339
339
|
x$1 = y$1(1),
|
|
340
340
|
b = y$1(2),
|
|
341
|
-
|
|
342
|
-
|
|
341
|
+
T = Symbol.for("lit-noChange"),
|
|
342
|
+
E = Symbol.for("lit-nothing"),
|
|
343
343
|
A = new WeakMap(),
|
|
344
|
-
|
|
345
|
-
function
|
|
346
|
-
if (!
|
|
347
|
-
return
|
|
344
|
+
C = r$1.createTreeWalker(r$1, 129);
|
|
345
|
+
function P(t, i) {
|
|
346
|
+
if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
347
|
+
return undefined !== s ? s.createHTML(i) : i;
|
|
348
348
|
}
|
|
349
|
-
const
|
|
349
|
+
const V = (t, i) => {
|
|
350
350
|
const s = t.length - 1,
|
|
351
351
|
o = [];
|
|
352
352
|
let r,
|
|
353
|
-
l = 2 === i ? "<svg>" : "",
|
|
353
|
+
l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "",
|
|
354
354
|
c = f;
|
|
355
355
|
for (let i = 0; i < s; i++) {
|
|
356
356
|
const s = t[i];
|
|
@@ -358,13 +358,13 @@ const P = (t, i) => {
|
|
|
358
358
|
u,
|
|
359
359
|
d = -1,
|
|
360
360
|
y = 0;
|
|
361
|
-
for (; y < s.length && (c.lastIndex = y, u = c.exec(s), null !== u);) y = c.lastIndex, c === f ? "!--" === u[1] ? c = v :
|
|
361
|
+
for (; y < s.length && (c.lastIndex = y, u = c.exec(s), null !== u);) y = c.lastIndex, c === f ? "!--" === u[1] ? c = v : undefined !== u[1] ? c = _ : undefined !== u[2] ? ($.test(u[2]) && (r = RegExp("</" + u[2], "g")), c = m) : undefined !== u[3] && (c = m) : c === m ? ">" === u[0] ? (c = r ?? f, d = -1) : undefined === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = undefined === u[3] ? m : '"' === u[3] ? g : p) : c === g || c === p ? c = m : c === v || c === _ ? c = f : (c = m, r = undefined);
|
|
362
362
|
const x = c === m && t[i + 1].startsWith("/>") ? " " : "";
|
|
363
363
|
l += c === f ? s + n : d >= 0 ? (o.push(a), s.slice(0, d) + e + s.slice(d) + h + x) : s + h + (-2 === d ? i : x);
|
|
364
364
|
}
|
|
365
|
-
return [
|
|
365
|
+
return [P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")), o];
|
|
366
366
|
};
|
|
367
|
-
class
|
|
367
|
+
class N {
|
|
368
368
|
constructor({
|
|
369
369
|
strings: t,
|
|
370
370
|
_$litType$: s
|
|
@@ -375,12 +375,12 @@ class V {
|
|
|
375
375
|
a = 0;
|
|
376
376
|
const u = t.length - 1,
|
|
377
377
|
d = this.parts,
|
|
378
|
-
[f, v] =
|
|
379
|
-
if (this.el =
|
|
378
|
+
[f, v] = V(t, s);
|
|
379
|
+
if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
|
|
380
380
|
const t = this.el.content.firstChild;
|
|
381
381
|
t.replaceWith(...t.childNodes);
|
|
382
382
|
}
|
|
383
|
-
for (; null !== (r =
|
|
383
|
+
for (; null !== (r = C.nextNode()) && d.length < u;) {
|
|
384
384
|
if (1 === r.nodeType) {
|
|
385
385
|
if (r.hasAttributes()) for (const t of r.getAttributeNames()) if (t.endsWith(e)) {
|
|
386
386
|
const i = v[a++],
|
|
@@ -391,7 +391,7 @@ class V {
|
|
|
391
391
|
index: c,
|
|
392
392
|
name: e[2],
|
|
393
393
|
strings: s,
|
|
394
|
-
ctor: "." === e[1] ?
|
|
394
|
+
ctor: "." === e[1] ? H : "?" === e[1] ? I : "@" === e[1] ? L : k
|
|
395
395
|
}), r.removeAttribute(t);
|
|
396
396
|
} else t.startsWith(h) && (d.push({
|
|
397
397
|
type: 6,
|
|
@@ -401,8 +401,8 @@ class V {
|
|
|
401
401
|
const t = r.textContent.split(h),
|
|
402
402
|
s = t.length - 1;
|
|
403
403
|
if (s > 0) {
|
|
404
|
-
r.textContent = i ? i.emptyScript : "";
|
|
405
|
-
for (let i = 0; i < s; i++) r.append(t[i], l()),
|
|
404
|
+
r.textContent = i$1 ? i$1.emptyScript : "";
|
|
405
|
+
for (let i = 0; i < s; i++) r.append(t[i], l()), C.nextNode(), d.push({
|
|
406
406
|
type: 2,
|
|
407
407
|
index: ++c
|
|
408
408
|
});
|
|
@@ -427,15 +427,15 @@ class V {
|
|
|
427
427
|
return s.innerHTML = t, s;
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
if (i ===
|
|
432
|
-
let h =
|
|
433
|
-
const o = c(i) ?
|
|
434
|
-
return h?.constructor !== o && (h?._$AO?.(
|
|
430
|
+
function S(t, i, s = t, e) {
|
|
431
|
+
if (i === T) return i;
|
|
432
|
+
let h = undefined !== e ? s._$Co?.[e] : s._$Cl;
|
|
433
|
+
const o = c(i) ? undefined : i._$litDirective$;
|
|
434
|
+
return h?.constructor !== o && (h?._$AO?.(false), undefined === o ? h = undefined : (h = new o(t), h._$AT(t, s, e)), undefined !== e ? (s._$Co ??= [])[e] = h : s._$Cl = h), undefined !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
|
|
435
435
|
}
|
|
436
|
-
class
|
|
436
|
+
class M {
|
|
437
437
|
constructor(t, i) {
|
|
438
|
-
this._$AV = [], this._$AN =
|
|
438
|
+
this._$AV = [], this._$AN = undefined, this._$AD = t, this._$AM = i;
|
|
439
439
|
}
|
|
440
440
|
get parentNode() {
|
|
441
441
|
return this._$AM.parentNode;
|
|
@@ -450,37 +450,37 @@ class S {
|
|
|
450
450
|
},
|
|
451
451
|
parts: s
|
|
452
452
|
} = this._$AD,
|
|
453
|
-
e = (t?.creationScope ?? r$1).importNode(i,
|
|
454
|
-
|
|
455
|
-
let h =
|
|
453
|
+
e = (t?.creationScope ?? r$1).importNode(i, true);
|
|
454
|
+
C.currentNode = e;
|
|
455
|
+
let h = C.nextNode(),
|
|
456
456
|
o = 0,
|
|
457
457
|
n = 0,
|
|
458
458
|
l = s[0];
|
|
459
|
-
for (;
|
|
459
|
+
for (; undefined !== l;) {
|
|
460
460
|
if (o === l.index) {
|
|
461
461
|
let i;
|
|
462
|
-
2 === l.type ? i = new
|
|
462
|
+
2 === l.type ? i = new R(h, h.nextSibling, this, t) : 1 === l.type ? i = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i = new z(h, this, t)), this._$AV.push(i), l = s[++n];
|
|
463
463
|
}
|
|
464
|
-
o !== l?.index && (h =
|
|
464
|
+
o !== l?.index && (h = C.nextNode(), o++);
|
|
465
465
|
}
|
|
466
|
-
return
|
|
466
|
+
return C.currentNode = r$1, e;
|
|
467
467
|
}
|
|
468
468
|
p(t) {
|
|
469
469
|
let i = 0;
|
|
470
|
-
for (const s of this._$AV)
|
|
470
|
+
for (const s of this._$AV) undefined !== s && (undefined !== s.strings ? (s._$AI(t, s, i), i += s.strings.length - 2) : s._$AI(t[i])), i++;
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
class
|
|
473
|
+
class R {
|
|
474
474
|
get _$AU() {
|
|
475
475
|
return this._$AM?._$AU ?? this._$Cv;
|
|
476
476
|
}
|
|
477
477
|
constructor(t, i, s, e) {
|
|
478
|
-
this.type = 2, this._$AH =
|
|
478
|
+
this.type = 2, this._$AH = E, this._$AN = undefined, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = e?.isConnected ?? true;
|
|
479
479
|
}
|
|
480
480
|
get parentNode() {
|
|
481
481
|
let t = this._$AA.parentNode;
|
|
482
482
|
const i = this._$AM;
|
|
483
|
-
return
|
|
483
|
+
return undefined !== i && 11 === t?.nodeType && (t = i.parentNode), t;
|
|
484
484
|
}
|
|
485
485
|
get startNode() {
|
|
486
486
|
return this._$AA;
|
|
@@ -489,52 +489,52 @@ class M {
|
|
|
489
489
|
return this._$AB;
|
|
490
490
|
}
|
|
491
491
|
_$AI(t, i = this) {
|
|
492
|
-
t =
|
|
492
|
+
t = S(this, t, i), c(t) ? t === E || null == t || "" === t ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== T && this._(t) : undefined !== t._$litType$ ? this.$(t) : undefined !== t.nodeType ? this.T(t) : u(t) ? this.k(t) : this._(t);
|
|
493
493
|
}
|
|
494
|
-
|
|
494
|
+
O(t) {
|
|
495
495
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
496
496
|
}
|
|
497
497
|
T(t) {
|
|
498
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.
|
|
498
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
499
499
|
}
|
|
500
500
|
_(t) {
|
|
501
|
-
this._$AH !==
|
|
501
|
+
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$1.createTextNode(t)), this._$AH = t;
|
|
502
502
|
}
|
|
503
503
|
$(t) {
|
|
504
504
|
const {
|
|
505
505
|
values: i,
|
|
506
506
|
_$litType$: s
|
|
507
507
|
} = t,
|
|
508
|
-
e = "number" == typeof s ? this._$AC(t) : (
|
|
508
|
+
e = "number" == typeof s ? this._$AC(t) : (undefined === s.el && (s.el = N.createElement(P(s.h, s.h[0]), this.options)), s);
|
|
509
509
|
if (this._$AH?._$AD === e) this._$AH.p(i);else {
|
|
510
|
-
const t = new
|
|
510
|
+
const t = new M(e, this),
|
|
511
511
|
s = t.u(this.options);
|
|
512
512
|
t.p(i), this.T(s), this._$AH = t;
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
_$AC(t) {
|
|
516
516
|
let i = A.get(t.strings);
|
|
517
|
-
return
|
|
517
|
+
return undefined === i && A.set(t.strings, i = new N(t)), i;
|
|
518
518
|
}
|
|
519
519
|
k(t) {
|
|
520
520
|
a(this._$AH) || (this._$AH = [], this._$AR());
|
|
521
521
|
const i = this._$AH;
|
|
522
522
|
let s,
|
|
523
523
|
e = 0;
|
|
524
|
-
for (const h of t) e === i.length ? i.push(s = new
|
|
524
|
+
for (const h of t) e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
|
|
525
525
|
e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
|
|
526
526
|
}
|
|
527
527
|
_$AR(t = this._$AA.nextSibling, i) {
|
|
528
|
-
for (this._$AP?.(
|
|
528
|
+
for (this._$AP?.(false, true, i); t && t !== this._$AB;) {
|
|
529
529
|
const i = t.nextSibling;
|
|
530
530
|
t.remove(), t = i;
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
setConnected(t) {
|
|
534
|
-
|
|
534
|
+
undefined === this._$AM && (this._$Cv = t, this._$AP?.(t));
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
class
|
|
537
|
+
class k {
|
|
538
538
|
get tagName() {
|
|
539
539
|
return this.element.tagName;
|
|
540
540
|
}
|
|
@@ -542,72 +542,72 @@ class R {
|
|
|
542
542
|
return this._$AM._$AU;
|
|
543
543
|
}
|
|
544
544
|
constructor(t, i, s, e, h) {
|
|
545
|
-
this.type = 1, this._$AH =
|
|
545
|
+
this.type = 1, this._$AH = E, this._$AN = undefined, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = E;
|
|
546
546
|
}
|
|
547
547
|
_$AI(t, i = this, s, e) {
|
|
548
548
|
const h = this.strings;
|
|
549
|
-
let o =
|
|
550
|
-
if (
|
|
549
|
+
let o = false;
|
|
550
|
+
if (undefined === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);else {
|
|
551
551
|
const e = t;
|
|
552
552
|
let n, r;
|
|
553
|
-
for (t = h[0], n = 0; n < h.length - 1; n++) r =
|
|
553
|
+
for (t = h[0], n = 0; n < h.length - 1; n++) r = S(this, e[s + n], i, n), r === T && (r = this._$AH[n]), o ||= !c(r) || r !== this._$AH[n], r === E ? t = E : t !== E && (t += (r ?? "") + h[n + 1]), this._$AH[n] = r;
|
|
554
554
|
}
|
|
555
555
|
o && !e && this.j(t);
|
|
556
556
|
}
|
|
557
557
|
j(t) {
|
|
558
|
-
t ===
|
|
558
|
+
t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
class
|
|
561
|
+
class H extends k {
|
|
562
562
|
constructor() {
|
|
563
563
|
super(...arguments), this.type = 3;
|
|
564
564
|
}
|
|
565
565
|
j(t) {
|
|
566
|
-
this.element[this.name] = t ===
|
|
566
|
+
this.element[this.name] = t === E ? undefined : t;
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
class
|
|
569
|
+
class I extends k {
|
|
570
570
|
constructor() {
|
|
571
571
|
super(...arguments), this.type = 4;
|
|
572
572
|
}
|
|
573
573
|
j(t) {
|
|
574
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
574
|
+
this.element.toggleAttribute(this.name, !!t && t !== E);
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
class
|
|
577
|
+
class L extends k {
|
|
578
578
|
constructor(t, i, s, e, h) {
|
|
579
579
|
super(t, i, s, e, h), this.type = 5;
|
|
580
580
|
}
|
|
581
581
|
_$AI(t, i = this) {
|
|
582
|
-
if ((t =
|
|
582
|
+
if ((t = S(this, t, i, 0) ?? E) === T) return;
|
|
583
583
|
const s = this._$AH,
|
|
584
|
-
e = t ===
|
|
585
|
-
h = t !==
|
|
584
|
+
e = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive,
|
|
585
|
+
h = t !== E && (s === E || e);
|
|
586
586
|
e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
587
587
|
}
|
|
588
588
|
handleEvent(t) {
|
|
589
589
|
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
|
-
class
|
|
592
|
+
class z {
|
|
593
593
|
constructor(t, i, s) {
|
|
594
|
-
this.element = t, this.type = 6, this._$AN =
|
|
594
|
+
this.element = t, this.type = 6, this._$AN = undefined, this._$AM = i, this.options = s;
|
|
595
595
|
}
|
|
596
596
|
get _$AU() {
|
|
597
597
|
return this._$AM._$AU;
|
|
598
598
|
}
|
|
599
599
|
_$AI(t) {
|
|
600
|
-
|
|
600
|
+
S(this, t);
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
|
-
const
|
|
604
|
-
|
|
605
|
-
const
|
|
603
|
+
const j = t.litHtmlPolyfillSupport;
|
|
604
|
+
j?.(N, R), (t.litHtmlVersions ??= []).push("3.2.1");
|
|
605
|
+
const B = (t, i, s) => {
|
|
606
606
|
const e = s?.renderBefore ?? i;
|
|
607
607
|
let h = e._$litPart$;
|
|
608
|
-
if (
|
|
608
|
+
if (undefined === h) {
|
|
609
609
|
const t = s?.renderBefore ?? null;
|
|
610
|
-
e._$litPart$ = h = new
|
|
610
|
+
e._$litPart$ = h = new R(i.insertBefore(l(), t), t, undefined, s ?? {});
|
|
611
611
|
}
|
|
612
612
|
return h._$AI(t), h;
|
|
613
613
|
};
|
|
@@ -617,38 +617,38 @@ const j = (t, i, s) => {
|
|
|
617
617
|
* Copyright 2017 Google LLC
|
|
618
618
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
619
619
|
*/
|
|
620
|
-
class
|
|
620
|
+
class r extends b$1 {
|
|
621
621
|
constructor() {
|
|
622
622
|
super(...arguments), this.renderOptions = {
|
|
623
623
|
host: this
|
|
624
|
-
}, this._$Do =
|
|
624
|
+
}, this._$Do = undefined;
|
|
625
625
|
}
|
|
626
626
|
createRenderRoot() {
|
|
627
627
|
const t = super.createRenderRoot();
|
|
628
628
|
return this.renderOptions.renderBefore ??= t.firstChild, t;
|
|
629
629
|
}
|
|
630
630
|
update(t) {
|
|
631
|
-
const
|
|
632
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
631
|
+
const s = this.render();
|
|
632
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = B(s, this.renderRoot, this.renderOptions);
|
|
633
633
|
}
|
|
634
634
|
connectedCallback() {
|
|
635
|
-
super.connectedCallback(), this._$Do?.setConnected(
|
|
635
|
+
super.connectedCallback(), this._$Do?.setConnected(true);
|
|
636
636
|
}
|
|
637
637
|
disconnectedCallback() {
|
|
638
|
-
super.disconnectedCallback(), this._$Do?.setConnected(
|
|
638
|
+
super.disconnectedCallback(), this._$Do?.setConnected(false);
|
|
639
639
|
}
|
|
640
640
|
render() {
|
|
641
|
-
return
|
|
641
|
+
return T;
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
|
|
645
|
-
LitElement:
|
|
644
|
+
r._$litElement$ = true, r["finalized"] = true, globalThis.litElementHydrateSupport?.({
|
|
645
|
+
LitElement: r
|
|
646
646
|
});
|
|
647
|
-
const
|
|
648
|
-
|
|
649
|
-
LitElement:
|
|
647
|
+
const i = globalThis.litElementPolyfillSupport;
|
|
648
|
+
i?.({
|
|
649
|
+
LitElement: r
|
|
650
650
|
});
|
|
651
|
-
(globalThis.litElementVersions ??= []).push("4.
|
|
651
|
+
(globalThis.litElementVersions ??= []).push("4.1.1");
|
|
652
652
|
|
|
653
653
|
function ascending$2(a, b) {
|
|
654
654
|
return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
|
@@ -2113,7 +2113,7 @@ function yesdrag(view, noclick) {
|
|
|
2113
2113
|
}
|
|
2114
2114
|
}
|
|
2115
2115
|
|
|
2116
|
-
var constant$3 =
|
|
2116
|
+
var constant$3 = x => () => x;
|
|
2117
2117
|
|
|
2118
2118
|
function DragEvent(type, {
|
|
2119
2119
|
sourceEvent,
|
|
@@ -2719,7 +2719,7 @@ function hsl2rgb(h, m1, m2) {
|
|
|
2719
2719
|
return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;
|
|
2720
2720
|
}
|
|
2721
2721
|
|
|
2722
|
-
var constant$2 =
|
|
2722
|
+
var constant$2 = x => () => x;
|
|
2723
2723
|
|
|
2724
2724
|
function linear$2(a, d) {
|
|
2725
2725
|
return function (t) {
|
|
@@ -4074,7 +4074,7 @@ function area (ring) {
|
|
|
4074
4074
|
return area;
|
|
4075
4075
|
}
|
|
4076
4076
|
|
|
4077
|
-
var constant$1 =
|
|
4077
|
+
var constant$1 = x => () => x;
|
|
4078
4078
|
|
|
4079
4079
|
function contains (ring, hole) {
|
|
4080
4080
|
var i = -1,
|
|
@@ -4890,7 +4890,7 @@ function clipLine (a, b, x0, y0, x1, y1) {
|
|
|
4890
4890
|
}
|
|
4891
4891
|
|
|
4892
4892
|
var clipMax = 1e9,
|
|
4893
|
-
clipMin = -
|
|
4893
|
+
clipMin = -1e9;
|
|
4894
4894
|
|
|
4895
4895
|
// TODO Use d3-polygon’s polygonContains here for the ring check?
|
|
4896
4896
|
// TODO Eliminate duplicate buffering in clipBuffer and polygon.push?
|
|
@@ -5037,7 +5037,7 @@ function clipRectangle(x0, y0, x1, y1) {
|
|
|
5037
5037
|
};
|
|
5038
5038
|
}
|
|
5039
5039
|
|
|
5040
|
-
var identity$2 =
|
|
5040
|
+
var identity$2 = x => x;
|
|
5041
5041
|
|
|
5042
5042
|
var areaSum = new Adder(),
|
|
5043
5043
|
areaRingSum = new Adder(),
|
|
@@ -5311,7 +5311,7 @@ class PathString {
|
|
|
5311
5311
|
const r = this._radius;
|
|
5312
5312
|
const s = this._;
|
|
5313
5313
|
this._ = ""; // stash the old string so we can cache the circle path fragment
|
|
5314
|
-
this._append`m0,${r}a${r},${r} 0 1,1 0,${-2 * r}a${r},${r} 0 1,1 0,${2 * r}z`;
|
|
5314
|
+
this._append`m0,${r}a${r},${r} 0 1,1 0,${ -2 * r}a${r},${r} 0 1,1 0,${2 * r}z`;
|
|
5315
5315
|
cacheRadius = r;
|
|
5316
5316
|
cacheAppend = this._append;
|
|
5317
5317
|
cacheCircle = this._;
|
|
@@ -5954,7 +5954,7 @@ Transform.prototype;
|
|
|
5954
5954
|
DecidablesElement Base Class - Not intended for instantiation!
|
|
5955
5955
|
<decidables-element>
|
|
5956
5956
|
*/
|
|
5957
|
-
class DecidablesElement extends
|
|
5957
|
+
class DecidablesElement extends r {
|
|
5958
5958
|
getComputedStyleValue(property) {
|
|
5959
5959
|
return getComputedStyle(this).getPropertyValue(property).trim();
|
|
5960
5960
|
}
|
|
@@ -6207,7 +6207,7 @@ class DecidablesElement extends s {
|
|
|
6207
6207
|
`;
|
|
6208
6208
|
}
|
|
6209
6209
|
static get styles() {
|
|
6210
|
-
return i$
|
|
6210
|
+
return i$3`
|
|
6211
6211
|
:host {
|
|
6212
6212
|
---shadow-0: var(--shadow-0, ${r$3(this.cssBoxShadow(0))});
|
|
6213
6213
|
---shadow-2: var(--shadow-2, ${r$3(this.cssBoxShadow(2))});
|
|
@@ -6285,7 +6285,7 @@ class DecidablesButton extends DecidablesElement {
|
|
|
6285
6285
|
this.disabled = false;
|
|
6286
6286
|
}
|
|
6287
6287
|
static get styles() {
|
|
6288
|
-
return [super.styles, i$
|
|
6288
|
+
return [super.styles, i$3`
|
|
6289
6289
|
:host {
|
|
6290
6290
|
margin: 0.25rem;
|
|
6291
6291
|
}
|
|
@@ -6355,7 +6355,7 @@ customElements.define('decidables-button', DecidablesButton);
|
|
|
6355
6355
|
* Copyright 2018 Google LLC
|
|
6356
6356
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6357
6357
|
*/
|
|
6358
|
-
const o = o => o ??
|
|
6358
|
+
const o = o => o ?? E;
|
|
6359
6359
|
|
|
6360
6360
|
class DecidablesSlider extends DecidablesElement {
|
|
6361
6361
|
static get properties() {
|
|
@@ -6410,7 +6410,7 @@ class DecidablesSlider extends DecidablesElement {
|
|
|
6410
6410
|
this.value = event.target.value;
|
|
6411
6411
|
}
|
|
6412
6412
|
static get styles() {
|
|
6413
|
-
return [super.styles, i$
|
|
6413
|
+
return [super.styles, i$3`
|
|
6414
6414
|
:host {
|
|
6415
6415
|
---shadow-2-rotate: var(--shadow-2-rotate, ${r$3(this.cssBoxShadow(2, true, false))});
|
|
6416
6416
|
---shadow-4-rotate: var(--shadow-4-rotate, ${r$3(this.cssBoxShadow(4, true, false))});
|
|
@@ -6720,7 +6720,7 @@ class DecidablesSpinner extends DecidablesElement {
|
|
|
6720
6720
|
this.value = event.target.value;
|
|
6721
6721
|
}
|
|
6722
6722
|
static get styles() {
|
|
6723
|
-
return [super.styles, i$
|
|
6723
|
+
return [super.styles, i$3`
|
|
6724
6724
|
:host {
|
|
6725
6725
|
---decidables-spinner-font-size: var(--decidables-spinner-font-size, 1.125rem);
|
|
6726
6726
|
---decidables-spinner-input-width: var(--decidables-spinner-input-width, 4rem);
|
|
@@ -6859,7 +6859,7 @@ class DecidablesSwitch extends DecidablesElement {
|
|
|
6859
6859
|
}));
|
|
6860
6860
|
}
|
|
6861
6861
|
static get styles() {
|
|
6862
|
-
return [super.styles, i$
|
|
6862
|
+
return [super.styles, i$3`
|
|
6863
6863
|
:host {
|
|
6864
6864
|
display: flex;
|
|
6865
6865
|
|
|
@@ -7012,7 +7012,7 @@ class DecidablesToggle extends DecidablesElement {
|
|
|
7012
7012
|
this.disabled = false;
|
|
7013
7013
|
}
|
|
7014
7014
|
static get styles() {
|
|
7015
|
-
return [super.styles, i$
|
|
7015
|
+
return [super.styles, i$3`
|
|
7016
7016
|
fieldset {
|
|
7017
7017
|
display: flex;
|
|
7018
7018
|
|
|
@@ -7087,7 +7087,7 @@ class DecidablesToggleOption extends DecidablesElement {
|
|
|
7087
7087
|
}));
|
|
7088
7088
|
}
|
|
7089
7089
|
static get styles() {
|
|
7090
|
-
return [super.styles, i$
|
|
7090
|
+
return [super.styles, i$3`
|
|
7091
7091
|
:host {
|
|
7092
7092
|
display: flex;
|
|
7093
7093
|
}
|
|
@@ -7317,7 +7317,7 @@ class DetectableElement extends DecidablesElement {
|
|
|
7317
7317
|
}, {});
|
|
7318
7318
|
}
|
|
7319
7319
|
static get styles() {
|
|
7320
|
-
return [super.styles, i$
|
|
7320
|
+
return [super.styles, i$3`
|
|
7321
7321
|
:host {
|
|
7322
7322
|
---color-h: var(--color-h, ${r$3(this.colors.h)});
|
|
7323
7323
|
---color-m: var(--color-m, ${r$3(this.colors.m)});
|
|
@@ -7481,7 +7481,7 @@ class RDKTask extends DecidablesMixinResizeable(DetectableElement) {
|
|
|
7481
7481
|
this.yScale = undefined; // D3 Scale for y-axis
|
|
7482
7482
|
}
|
|
7483
7483
|
static get styles() {
|
|
7484
|
-
return [super.styles, i$
|
|
7484
|
+
return [super.styles, i$3`
|
|
7485
7485
|
:host {
|
|
7486
7486
|
display: inline-block;
|
|
7487
7487
|
|
|
@@ -7662,7 +7662,7 @@ class RDKTask extends DecidablesMixinResizeable(DetectableElement) {
|
|
|
7662
7662
|
const queryUpdate = select(this.renderRoot).select('.content').selectAll('.query').data([]);
|
|
7663
7663
|
queryUpdate.exit().remove();
|
|
7664
7664
|
}
|
|
7665
|
-
run(
|
|
7665
|
+
run(/* elapsed */
|
|
7666
7666
|
) {
|
|
7667
7667
|
const realTime = now();
|
|
7668
7668
|
const currentTime = this.baseTime ? realTime - this.baseTime : 0;
|
|
@@ -7840,20 +7840,19 @@ class RDKTask extends DecidablesMixinResizeable(DetectableElement) {
|
|
|
7840
7840
|
}
|
|
7841
7841
|
customElements.define('rdk-task', RDKTask);
|
|
7842
7842
|
|
|
7843
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
7844
|
-
|
|
7845
7843
|
function getDefaultExportFromCjs (x) {
|
|
7846
7844
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
7847
7845
|
}
|
|
7848
7846
|
|
|
7849
|
-
var jstat = {exports: {}};
|
|
7847
|
+
var jstat$1 = {exports: {}};
|
|
7850
7848
|
|
|
7849
|
+
var jstat = jstat$1.exports;
|
|
7851
7850
|
(function (module, exports) {
|
|
7852
7851
|
(function (window, factory) {
|
|
7853
7852
|
{
|
|
7854
7853
|
module.exports = factory();
|
|
7855
7854
|
}
|
|
7856
|
-
})(
|
|
7855
|
+
})(jstat, function () {
|
|
7857
7856
|
var jStat = function (Math, undefined$1) {
|
|
7858
7857
|
// For quick reference.
|
|
7859
7858
|
var concat = Array.prototype.concat;
|
|
@@ -8922,7 +8921,7 @@ var jstat = {exports: {}};
|
|
|
8922
8921
|
// Log-gamma function
|
|
8923
8922
|
jStat.gammaln = function gammaln(x) {
|
|
8924
8923
|
var j = 0;
|
|
8925
|
-
var cof = [76.18009172947146, -86.
|
|
8924
|
+
var cof = [76.18009172947146, -86.50532032941678, 24.01409824083091, -1.231739572450155, 0.1208650973866179e-2, -5395239384953e-18];
|
|
8926
8925
|
var ser = 1.000000000190015;
|
|
8927
8926
|
var xx, y, tmp;
|
|
8928
8927
|
tmp = (y = xx = x) + 5.5;
|
|
@@ -8939,7 +8938,7 @@ var jstat = {exports: {}};
|
|
|
8939
8938
|
jStat.loggam = function loggam(x) {
|
|
8940
8939
|
var x0, x2, xp, gl, gl0;
|
|
8941
8940
|
var k, n;
|
|
8942
|
-
var a = [8.333333333333333e-02, -
|
|
8941
|
+
var a = [8.333333333333333e-02, -0.002777777777777778, 7.936507936507937e-04, -5952380952380952e-19, 8.417508417508418e-04, -0.001917526917526918, 6.410256410256410e-03, -0.02955065359477124, 1.796443723688307e-01, -1.3924322169059];
|
|
8943
8942
|
x0 = x;
|
|
8944
8943
|
n = 0;
|
|
8945
8944
|
if (x == 1.0 || x == 2.0) {
|
|
@@ -9164,7 +9163,7 @@ var jstat = {exports: {}};
|
|
|
9164
9163
|
|
|
9165
9164
|
// Returns the error function erf(x)
|
|
9166
9165
|
jStat.erf = function erf(x) {
|
|
9167
|
-
var cof = [-1.3026537197817094, 6.4196979235649026e-1, 1.9476473204185836e-2, -
|
|
9166
|
+
var cof = [-1.3026537197817094, 6.4196979235649026e-1, 1.9476473204185836e-2, -0.00956151478680863, -946595344482036e-18, 3.66839497852761e-4, 4.2523324806907e-5, -20278578112534e-18, -1624290004647e-18, 1.303655835580e-6, 1.5626441722e-8, -8.5238095915e-8, 6.529054439e-9, 5.059343495e-9, -991364156e-18, -227365122e-18, 9.6467911e-11, 2.394038e-12, -6886027e-18, 8.94487e-13, 3.13092e-13, -112708e-18, 3.81e-16, 7.106e-15, -1523e-18, -94e-18, 1.21e-16, -28e-18];
|
|
9168
9167
|
var j = cof.length - 1;
|
|
9169
9168
|
var isneg = false;
|
|
9170
9169
|
var d = 0;
|
|
@@ -9540,7 +9539,7 @@ var jstat = {exports: {}};
|
|
|
9540
9539
|
median: function (rate) {
|
|
9541
9540
|
return 1 / rate * Math.log(2);
|
|
9542
9541
|
},
|
|
9543
|
-
mode: function mode(
|
|
9542
|
+
mode: function mode(/*rate*/
|
|
9544
9543
|
) {
|
|
9545
9544
|
return 0;
|
|
9546
9545
|
},
|
|
@@ -9631,7 +9630,7 @@ var jstat = {exports: {}};
|
|
|
9631
9630
|
if (!(alpha >= 1 && beta >= 1 && alpha !== 1 && beta !== 1)) return undefined;
|
|
9632
9631
|
return Math.pow((alpha - 1) / (alpha * beta - 1), 1 / alpha);
|
|
9633
9632
|
},
|
|
9634
|
-
variance: function variance(
|
|
9633
|
+
variance: function variance(/*alpha, beta*/
|
|
9635
9634
|
) {
|
|
9636
9635
|
throw new Error('variance not yet implemented');
|
|
9637
9636
|
// TODO: complete this
|
|
@@ -9649,7 +9648,7 @@ var jstat = {exports: {}};
|
|
|
9649
9648
|
return 0.5 + 0.5 * jStat.erf((Math.log(x) - mu) / Math.sqrt(2 * sigma * sigma));
|
|
9650
9649
|
},
|
|
9651
9650
|
inv: function (p, mu, sigma) {
|
|
9652
|
-
return Math.exp(-1.
|
|
9651
|
+
return Math.exp(-1.4142135623730951 * sigma * jStat.erfcinv(2 * p) + mu);
|
|
9653
9652
|
},
|
|
9654
9653
|
mean: function mean(mu, sigma) {
|
|
9655
9654
|
return Math.exp(mu + sigma * sigma / 2);
|
|
@@ -9727,7 +9726,7 @@ var jstat = {exports: {}};
|
|
|
9727
9726
|
return 0.5 * (1 + jStat.erf((x - mean) / Math.sqrt(2 * std * std)));
|
|
9728
9727
|
},
|
|
9729
9728
|
inv: function (p, mean, std) {
|
|
9730
|
-
return -1.
|
|
9729
|
+
return -1.4142135623730951 * std * jStat.erfcinv(2 * p) + mean;
|
|
9731
9730
|
},
|
|
9732
9731
|
mean: function (mean /*, std*/) {
|
|
9733
9732
|
return mean;
|
|
@@ -9793,11 +9792,11 @@ var jstat = {exports: {}};
|
|
|
9793
9792
|
mean: function mean(dof) {
|
|
9794
9793
|
return dof > 1 ? 0 : undefined;
|
|
9795
9794
|
},
|
|
9796
|
-
median: function median(
|
|
9795
|
+
median: function median(/*dof*/
|
|
9797
9796
|
) {
|
|
9798
9797
|
return 0;
|
|
9799
9798
|
},
|
|
9800
|
-
mode: function mode(
|
|
9799
|
+
mode: function mode(/*dof*/
|
|
9801
9800
|
) {
|
|
9802
9801
|
return 0;
|
|
9803
9802
|
},
|
|
@@ -9857,7 +9856,7 @@ var jstat = {exports: {}};
|
|
|
9857
9856
|
median: function median(a, b) {
|
|
9858
9857
|
return jStat.mean(a, b);
|
|
9859
9858
|
},
|
|
9860
|
-
mode: function mode(
|
|
9859
|
+
mode: function mode(/*a, b*/
|
|
9861
9860
|
) {
|
|
9862
9861
|
throw new Error('mode is not yet implemented');
|
|
9863
9862
|
},
|
|
@@ -10254,7 +10253,7 @@ var jstat = {exports: {}};
|
|
|
10254
10253
|
if (b <= a) return NaN;
|
|
10255
10254
|
return (a + b) / 2;
|
|
10256
10255
|
},
|
|
10257
|
-
mode: function mode(
|
|
10256
|
+
mode: function mode(/*a, b*/
|
|
10258
10257
|
) {
|
|
10259
10258
|
throw new Error('mode is not yet implemented');
|
|
10260
10259
|
},
|
|
@@ -10402,17 +10401,16 @@ var jstat = {exports: {}};
|
|
|
10402
10401
|
function tukeyQinv(p, c, v) {
|
|
10403
10402
|
var p0 = 0.322232421088;
|
|
10404
10403
|
var q0 = 0.993484626060e-01;
|
|
10405
|
-
var p1 = -1
|
|
10404
|
+
var p1 = -1;
|
|
10406
10405
|
var q1 = 0.588581570495;
|
|
10407
10406
|
var p2 = -0.342242088547;
|
|
10408
10407
|
var q2 = 0.531103462366;
|
|
10409
10408
|
var p3 = -0.204231210125;
|
|
10410
10409
|
var q3 = 0.103537752850;
|
|
10411
|
-
var p4 = -
|
|
10410
|
+
var p4 = -453642210148e-16;
|
|
10412
10411
|
var q4 = 0.38560700634e-02;
|
|
10413
10412
|
var c1 = 0.8832;
|
|
10414
10413
|
var c2 = 0.2368;
|
|
10415
|
-
var c3 = 1.214;
|
|
10416
10414
|
var c4 = 1.208;
|
|
10417
10415
|
var c5 = 1.4142;
|
|
10418
10416
|
var vmax = 120.0;
|
|
@@ -10421,7 +10419,7 @@ var jstat = {exports: {}};
|
|
|
10421
10419
|
var t = yi + ((((yi * p4 + p3) * yi + p2) * yi + p1) * yi + p0) / ((((yi * q4 + q3) * yi + q2) * yi + q1) * yi + q0);
|
|
10422
10420
|
if (v < vmax) t += (t * t * t + t) / v / 4.0;
|
|
10423
10421
|
var q = c1 - c2 * t;
|
|
10424
|
-
if (v < vmax) q += -
|
|
10422
|
+
if (v < vmax) q += -1.214 / v + c4 * t / v;
|
|
10425
10423
|
return t * (q * Math.log(c - 1.0) + c5);
|
|
10426
10424
|
}
|
|
10427
10425
|
jStat.extend(jStat.tukey, {
|
|
@@ -10431,7 +10429,7 @@ var jstat = {exports: {}};
|
|
|
10431
10429
|
var cc = nmeans;
|
|
10432
10430
|
var nlegq = 16;
|
|
10433
10431
|
var ihalfq = 8;
|
|
10434
|
-
var eps1 = -30
|
|
10432
|
+
var eps1 = -30;
|
|
10435
10433
|
var eps2 = 1.0e-14;
|
|
10436
10434
|
var dhaf = 100.0;
|
|
10437
10435
|
var dquar = 800.0;
|
|
@@ -12117,8 +12115,8 @@ var jstat = {exports: {}};
|
|
|
12117
12115
|
jStat.jStat = jStat;
|
|
12118
12116
|
return jStat;
|
|
12119
12117
|
});
|
|
12120
|
-
})(jstat);
|
|
12121
|
-
var jstatExports = jstat.exports;
|
|
12118
|
+
})(jstat$1);
|
|
12119
|
+
var jstatExports = jstat$1.exports;
|
|
12122
12120
|
var jStat = /*@__PURE__*/getDefaultExportFromCjs(jstatExports);
|
|
12123
12121
|
|
|
12124
12122
|
/*
|
|
@@ -12492,7 +12490,7 @@ class ROCSpace extends DecidablesMixinResizeable(DetectableElement) {
|
|
|
12492
12490
|
this.requestUpdate();
|
|
12493
12491
|
}
|
|
12494
12492
|
static get styles() {
|
|
12495
|
-
return [super.styles, i$
|
|
12493
|
+
return [super.styles, i$3`
|
|
12496
12494
|
:host {
|
|
12497
12495
|
display: inline-block;
|
|
12498
12496
|
|
|
@@ -12890,7 +12888,7 @@ class ROCSpace extends DecidablesMixinResizeable(DetectableElement) {
|
|
|
12890
12888
|
titleYEnter.append('tspan').classed('z math-var', true);
|
|
12891
12889
|
titleYEnter.append('tspan').classed('name', true);
|
|
12892
12890
|
// MERGE
|
|
12893
|
-
const titleYMerge = underlayerMerge.select('.title-y').attr('transform', `translate(${-2 * this.rem}, ${height / 2})rotate(-90)`);
|
|
12891
|
+
const titleYMerge = underlayerMerge.select('.title-y').attr('transform', `translate(${ -2 * this.rem}, ${height / 2})rotate(-90)`);
|
|
12894
12892
|
titleYMerge.select('tspan.z').text(this.zRoc ? 'z' : '');
|
|
12895
12893
|
titleYMerge.select('tspan.name').text(this.zRoc ? '(Hit Rate)' : 'Hit Rate');
|
|
12896
12894
|
|
|
@@ -13309,7 +13307,7 @@ class DetectableControl extends DetectableElement {
|
|
|
13309
13307
|
this.state = 'ended';
|
|
13310
13308
|
}
|
|
13311
13309
|
static get styles() {
|
|
13312
|
-
return [super.styles, i$
|
|
13310
|
+
return [super.styles, i$3`
|
|
13313
13311
|
:host {
|
|
13314
13312
|
display: inline-block;
|
|
13315
13313
|
}
|
|
@@ -13498,7 +13496,7 @@ class SDTModel extends DecidablesMixinResizeable(DetectableElement) {
|
|
|
13498
13496
|
this.l = NaN; // lambda (threshold location)
|
|
13499
13497
|
this.hS = NaN; // Height of signal distribution
|
|
13500
13498
|
|
|
13501
|
-
this.binRange = [-3
|
|
13499
|
+
this.binRange = [-3, 3.0]; // Range of histogram
|
|
13502
13500
|
this.h = 0; // Hits
|
|
13503
13501
|
this.m = 0; // Misses
|
|
13504
13502
|
this.fa = 0; // False alarms
|
|
@@ -13560,7 +13558,7 @@ class SDTModel extends DecidablesMixinResizeable(DetectableElement) {
|
|
|
13560
13558
|
}
|
|
13561
13559
|
}
|
|
13562
13560
|
static get styles() {
|
|
13563
|
-
return [super.styles, i$
|
|
13561
|
+
return [super.styles, i$3`
|
|
13564
13562
|
:host {
|
|
13565
13563
|
display: inline-block;
|
|
13566
13564
|
|
|
@@ -14033,7 +14031,7 @@ class SDTModel extends DecidablesMixinResizeable(DetectableElement) {
|
|
|
14033
14031
|
// ENTER
|
|
14034
14032
|
const titleYEnter = titleYUpdate.enter().append('text').classed('title-y', true).attr('text-anchor', 'middle').text('Probability');
|
|
14035
14033
|
// MERGE
|
|
14036
|
-
titleYEnter.merge(titleYUpdate).attr('transform', `translate(${-2 * this.rem}, ${height / 2})rotate(-90)`);
|
|
14034
|
+
titleYEnter.merge(titleYUpdate).attr('transform', `translate(${ -2 * this.rem}, ${height / 2})rotate(-90)`);
|
|
14037
14035
|
// EXIT
|
|
14038
14036
|
titleYUpdate.exit().remove();
|
|
14039
14037
|
|
|
@@ -14054,7 +14052,7 @@ class SDTModel extends DecidablesMixinResizeable(DetectableElement) {
|
|
|
14054
14052
|
// ENTER
|
|
14055
14053
|
const titleY2Enter = titleY2Update.enter().append('text').classed('title-y2', true).attr('text-anchor', 'middle').text('Count');
|
|
14056
14054
|
// MERGE
|
|
14057
|
-
titleY2Enter.merge(titleY2Update).attr('transform', this.distributions ? `translate(${width + 1.5 * this.rem}, ${height / 2})rotate(90)` : `translate(${-1.5 * this.rem}, ${height / 2})rotate(-90)`);
|
|
14055
|
+
titleY2Enter.merge(titleY2Update).attr('transform', this.distributions ? `translate(${width + 1.5 * this.rem}, ${height / 2})rotate(90)` : `translate(${ -1.5 * this.rem}, ${height / 2})rotate(-90)`);
|
|
14058
14056
|
// EXIT
|
|
14059
14057
|
titleY2Update.exit().remove();
|
|
14060
14058
|
|
|
@@ -14900,7 +14898,7 @@ class DetectableResponse extends DetectableElement {
|
|
|
14900
14898
|
this.e = 0;
|
|
14901
14899
|
}
|
|
14902
14900
|
static get styles() {
|
|
14903
|
-
return [super.styles, i$
|
|
14901
|
+
return [super.styles, i$3`
|
|
14904
14902
|
:host {
|
|
14905
14903
|
display: inline-block;
|
|
14906
14904
|
}
|
|
@@ -15294,7 +15292,7 @@ class DetectableTable extends DetectableElement {
|
|
|
15294
15292
|
this.sendEvent();
|
|
15295
15293
|
}
|
|
15296
15294
|
static get styles() {
|
|
15297
|
-
return [super.styles, i$
|
|
15295
|
+
return [super.styles, i$3`
|
|
15298
15296
|
:host {
|
|
15299
15297
|
display: inline-block;
|
|
15300
15298
|
}
|
|
@@ -15669,7 +15667,7 @@ class SDTEquation extends DetectableElement {
|
|
|
15669
15667
|
this.numeric = false;
|
|
15670
15668
|
}
|
|
15671
15669
|
static get styles() {
|
|
15672
|
-
return [super.styles, i$
|
|
15670
|
+
return [super.styles, i$3`
|
|
15673
15671
|
:host {
|
|
15674
15672
|
display: block;
|
|
15675
15673
|
|
|
@@ -17042,7 +17040,7 @@ customElements.define('sdt-equation-mcr2fomr', SDTEquationMCr2Fomr);
|
|
|
17042
17040
|
*/
|
|
17043
17041
|
class SDTExample extends DetectableElement {
|
|
17044
17042
|
static get styles() {
|
|
17045
|
-
return [super.styles, i$
|
|
17043
|
+
return [super.styles, i$3`
|
|
17046
17044
|
:host {
|
|
17047
17045
|
display: inline-block;
|
|
17048
17046
|
|
|
@@ -17296,7 +17294,7 @@ class SDTExampleHuman extends SDTExample {
|
|
|
17296
17294
|
});
|
|
17297
17295
|
}
|
|
17298
17296
|
if (this.detectableControl && this.detectableControl.hasAttribute('run')) {
|
|
17299
|
-
this.detectableControl.addEventListener('detectable-control-run', (
|
|
17297
|
+
this.detectableControl.addEventListener('detectable-control-run', (/* event */
|
|
17300
17298
|
) => {
|
|
17301
17299
|
if (this.rdkTask) {
|
|
17302
17300
|
this.rdkTask.running = true;
|
|
@@ -17304,7 +17302,7 @@ class SDTExampleHuman extends SDTExample {
|
|
|
17304
17302
|
});
|
|
17305
17303
|
}
|
|
17306
17304
|
if (this.detectableControl && this.detectableControl.hasAttribute('pause')) {
|
|
17307
|
-
this.detectableControl.addEventListener('detectable-control-pause', (
|
|
17305
|
+
this.detectableControl.addEventListener('detectable-control-pause', (/* event */
|
|
17308
17306
|
) => {
|
|
17309
17307
|
if (this.rdkTask) {
|
|
17310
17308
|
this.rdkTask.running = false;
|
|
@@ -17312,7 +17310,7 @@ class SDTExampleHuman extends SDTExample {
|
|
|
17312
17310
|
});
|
|
17313
17311
|
}
|
|
17314
17312
|
if (this.detectableControl && this.detectableControl.hasAttribute('reset')) {
|
|
17315
|
-
this.detectableControl.addEventListener('detectable-control-reset', (
|
|
17313
|
+
this.detectableControl.addEventListener('detectable-control-reset', (/* event */
|
|
17316
17314
|
) => {
|
|
17317
17315
|
if (this.rdkTask) {
|
|
17318
17316
|
this.rdkTask.reset();
|
|
@@ -17354,7 +17352,7 @@ class SDTExampleHuman extends SDTExample {
|
|
|
17354
17352
|
});
|
|
17355
17353
|
}
|
|
17356
17354
|
if (this.rdkTask) {
|
|
17357
|
-
this.rdkTask.addEventListener('rdk-trial-end', (
|
|
17355
|
+
this.rdkTask.addEventListener('rdk-trial-end', (/* event */
|
|
17358
17356
|
) => {
|
|
17359
17357
|
if (this.detectableResponse) {
|
|
17360
17358
|
this.detectableResponse.stop();
|
|
@@ -17362,7 +17360,7 @@ class SDTExampleHuman extends SDTExample {
|
|
|
17362
17360
|
});
|
|
17363
17361
|
}
|
|
17364
17362
|
if (this.rdkTask) {
|
|
17365
|
-
this.rdkTask.addEventListener('rdk-block-end', (
|
|
17363
|
+
this.rdkTask.addEventListener('rdk-block-end', (/* event */
|
|
17366
17364
|
) => {
|
|
17367
17365
|
if (this.detectableControl) {
|
|
17368
17366
|
this.detectableControl.complete();
|
|
@@ -17546,7 +17544,7 @@ class SDTExampleModel extends SDTExample {
|
|
|
17546
17544
|
});
|
|
17547
17545
|
}
|
|
17548
17546
|
if (this.detectableControl && this.detectableControl.hasAttribute('run')) {
|
|
17549
|
-
this.detectableControl.addEventListener('detectable-control-run', (
|
|
17547
|
+
this.detectableControl.addEventListener('detectable-control-run', (/* event */
|
|
17550
17548
|
) => {
|
|
17551
17549
|
if (this.rdkTask) {
|
|
17552
17550
|
this.rdkTask.running = true;
|
|
@@ -17557,7 +17555,7 @@ class SDTExampleModel extends SDTExample {
|
|
|
17557
17555
|
});
|
|
17558
17556
|
}
|
|
17559
17557
|
if (this.detectableControl && this.detectableControl.hasAttribute('pause')) {
|
|
17560
|
-
this.detectableControl.addEventListener('detectable-control-pause', (
|
|
17558
|
+
this.detectableControl.addEventListener('detectable-control-pause', (/* event */
|
|
17561
17559
|
) => {
|
|
17562
17560
|
if (this.rdkTask) {
|
|
17563
17561
|
this.rdkTask.running = false;
|
|
@@ -17568,7 +17566,7 @@ class SDTExampleModel extends SDTExample {
|
|
|
17568
17566
|
});
|
|
17569
17567
|
}
|
|
17570
17568
|
if (this.detectableControl && this.detectableControl.hasAttribute('reset')) {
|
|
17571
|
-
this.detectableControl.addEventListener('detectable-control-reset', (
|
|
17569
|
+
this.detectableControl.addEventListener('detectable-control-reset', (/* event */
|
|
17572
17570
|
) => {
|
|
17573
17571
|
if (this.rdkTask) {
|
|
17574
17572
|
this.rdkTask.reset();
|
|
@@ -17612,7 +17610,7 @@ class SDTExampleModel extends SDTExample {
|
|
|
17612
17610
|
});
|
|
17613
17611
|
}
|
|
17614
17612
|
if (this.rdkTask) {
|
|
17615
|
-
this.rdkTask.addEventListener('rdk-trial-middle', (
|
|
17613
|
+
this.rdkTask.addEventListener('rdk-trial-middle', (/* event */
|
|
17616
17614
|
) => {
|
|
17617
17615
|
// if (this.sdtModel) {
|
|
17618
17616
|
// this.sdtModel.trial(event.detail.trial, event.detail.signal);
|
|
@@ -17620,7 +17618,7 @@ class SDTExampleModel extends SDTExample {
|
|
|
17620
17618
|
});
|
|
17621
17619
|
}
|
|
17622
17620
|
if (this.rdkTask) {
|
|
17623
|
-
this.rdkTask.addEventListener('rdk-trial-end', (
|
|
17621
|
+
this.rdkTask.addEventListener('rdk-trial-end', (/* event */
|
|
17624
17622
|
) => {
|
|
17625
17623
|
if (this.detectableResponse) {
|
|
17626
17624
|
this.detectableResponse.stop();
|
|
@@ -17628,7 +17626,7 @@ class SDTExampleModel extends SDTExample {
|
|
|
17628
17626
|
});
|
|
17629
17627
|
}
|
|
17630
17628
|
if (this.rdkTask) {
|
|
17631
|
-
this.rdkTask.addEventListener('rdk-block-end', (
|
|
17629
|
+
this.rdkTask.addEventListener('rdk-block-end', (/* event */
|
|
17632
17630
|
) => {
|
|
17633
17631
|
if (this.detectableControl) {
|
|
17634
17632
|
this.detectableControl.complete();
|