@webwriter/quiz 1.0.2 → 1.0.4
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/LICENSE +6 -6
- package/custom.d.ts +175 -175
- package/dist/widgets/webwriter-choice-item.js +3257 -59
- package/dist/widgets/webwriter-choice.js +4941 -79
- package/dist/widgets/webwriter-cloze-gap.js +4092 -179
- package/dist/widgets/webwriter-cloze.js +2415 -36
- package/dist/widgets/webwriter-mark.js +2471 -61
- package/dist/widgets/webwriter-order-item.js +2447 -68
- package/dist/widgets/webwriter-order.js +4990 -135
- package/dist/widgets/webwriter-pairing-item.js +1581 -48
- package/dist/widgets/webwriter-pairing.js +3686 -72
- package/dist/widgets/webwriter-quiz.js +6938 -76
- package/dist/widgets/webwriter-speech.js +6265 -76
- package/dist/widgets/webwriter-task-explainer.js +1564 -31
- package/dist/widgets/webwriter-task-hint.js +1523 -28
- package/dist/widgets/webwriter-task-prompt.js +1586 -29
- package/dist/widgets/webwriter-task.js +7132 -101
- package/dist/widgets/webwriter-text.js +4044 -54
- package/package.json +200 -200
- package/src/lib/combobox.ts +455 -455
- package/src/snippets/choice.html +7 -7
- package/src/snippets/cloze.html +3 -3
- package/src/snippets/mark.html +3 -3
- package/src/snippets/order.html +7 -7
- package/src/snippets/pairing.html +9 -9
- package/src/snippets/speech.html +3 -3
- package/src/snippets/text.html +3 -3
- package/src/snippets/wordsearch.html +3 -3
- package/src/widgets/webwriter-choice-item.ts +250 -250
- package/src/widgets/webwriter-choice.ts +309 -309
- package/src/widgets/webwriter-cloze-gap.ts +216 -216
- package/src/widgets/webwriter-cloze.ts +135 -135
- package/src/widgets/webwriter-mark.ts +434 -434
- package/src/widgets/webwriter-order-item.ts +444 -444
- package/src/widgets/webwriter-order.ts +272 -272
- package/src/widgets/webwriter-pairing-item.ts +155 -155
- package/src/widgets/webwriter-pairing.ts +187 -187
- package/src/widgets/webwriter-quiz.ts +280 -280
- package/src/widgets/webwriter-speech.ts +267 -267
- package/src/widgets/webwriter-task-explainer.ts +37 -37
- package/src/widgets/webwriter-task-hint.ts +16 -16
- package/src/widgets/webwriter-task-prompt.ts +17 -17
- package/src/widgets/webwriter-task.ts +543 -543
- package/src/widgets/webwriter-text.ts +130 -130
- package/tsconfig.json +6 -6
|
@@ -13,47 +13,2201 @@ var __expectFn = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError
|
|
|
13
13
|
var __decoratorContext = (kind, name, done, metadata, fns) => ({ kind: __decoratorStrings[kind], name, metadata, addInitializer: (fn) => done._ ? __typeError("Already initialized") : fns.push(__expectFn(fn || null)) });
|
|
14
14
|
var __decoratorMetadata = (array, target) => __defNormalProp(target, __knownSymbol("metadata"), array[3]);
|
|
15
15
|
var __runInitializers = (array, flags, self, value) => {
|
|
16
|
-
for (var
|
|
16
|
+
for (var i4 = 0, fns = array[flags >> 1], n6 = fns && fns.length; i4 < n6; i4++) flags & 1 ? fns[i4].call(self) : value = fns[i4].call(self, value);
|
|
17
17
|
return value;
|
|
18
18
|
};
|
|
19
19
|
var __decorateElement = (array, flags, name, decorators, target, extra) => {
|
|
20
|
-
var fn, it, done, ctx, access,
|
|
21
|
-
var
|
|
22
|
-
var initializers =
|
|
23
|
-
var desc =
|
|
20
|
+
var fn, it, done, ctx, access, k3 = flags & 7, s3 = !!(flags & 8), p3 = !!(flags & 16);
|
|
21
|
+
var j3 = k3 > 3 ? array.length + 1 : k3 ? s3 ? 1 : 2 : 0, key = __decoratorStrings[k3 + 5];
|
|
22
|
+
var initializers = k3 > 3 && (array[j3 - 1] = []), extraInitializers = array[j3] || (array[j3] = []);
|
|
23
|
+
var desc = k3 && (!p3 && !s3 && (target = target.prototype), k3 < 5 && (k3 > 3 || !p3) && __getOwnPropDesc(k3 < 4 ? target : { get [name]() {
|
|
24
24
|
return __privateGet(this, extra);
|
|
25
|
-
}, set [name](
|
|
26
|
-
return __privateSet(this, extra,
|
|
25
|
+
}, set [name](x3) {
|
|
26
|
+
return __privateSet(this, extra, x3);
|
|
27
27
|
} }, name));
|
|
28
|
-
|
|
29
|
-
for (var
|
|
30
|
-
ctx = __decoratorContext(
|
|
31
|
-
if (
|
|
32
|
-
ctx.static =
|
|
33
|
-
if (
|
|
34
|
-
if (
|
|
35
|
-
}
|
|
36
|
-
it = (0, decorators[
|
|
37
|
-
if (
|
|
28
|
+
k3 ? p3 && k3 < 4 && __name(extra, (k3 > 2 ? "set " : k3 > 1 ? "get " : "") + name) : __name(target, name);
|
|
29
|
+
for (var i4 = decorators.length - 1; i4 >= 0; i4--) {
|
|
30
|
+
ctx = __decoratorContext(k3, name, done = {}, array[3], extraInitializers);
|
|
31
|
+
if (k3) {
|
|
32
|
+
ctx.static = s3, ctx.private = p3, access = ctx.access = { has: p3 ? (x3) => __privateIn(target, x3) : (x3) => name in x3 };
|
|
33
|
+
if (k3 ^ 3) access.get = p3 ? (x3) => (k3 ^ 1 ? __privateGet : __privateMethod)(x3, target, k3 ^ 4 ? extra : desc.get) : (x3) => x3[name];
|
|
34
|
+
if (k3 > 2) access.set = p3 ? (x3, y3) => __privateSet(x3, target, y3, k3 ^ 4 ? extra : desc.set) : (x3, y3) => x3[name] = y3;
|
|
35
|
+
}
|
|
36
|
+
it = (0, decorators[i4])(k3 ? k3 < 4 ? p3 ? extra : desc[key] : k3 > 4 ? void 0 : { get: desc.get, set: desc.set } : target, ctx), done._ = 1;
|
|
37
|
+
if (k3 ^ 4 || it === void 0) __expectFn(it) && (k3 > 4 ? initializers.unshift(it) : k3 ? p3 ? extra = it : desc[key] = it : target = it);
|
|
38
38
|
else if (typeof it !== "object" || it === null) __typeError("Object expected");
|
|
39
39
|
else __expectFn(fn = it.get) && (desc.get = fn), __expectFn(fn = it.set) && (desc.set = fn), __expectFn(fn = it.init) && initializers.unshift(fn);
|
|
40
40
|
}
|
|
41
|
-
return
|
|
41
|
+
return k3 || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p3 ? k3 ^ 4 ? extra : desc : target;
|
|
42
|
+
};
|
|
43
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
44
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
45
|
+
var __privateIn = (member, obj) => Object(obj) !== obj ? __typeError('Cannot use the "in" operator on this value') : member.has(obj);
|
|
46
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
47
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
48
|
+
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
49
|
+
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
50
|
+
|
|
51
|
+
// ../../node_modules/lit/node_modules/@lit/reactive-element/css-tag.js
|
|
52
|
+
var t = globalThis;
|
|
53
|
+
var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
|
|
54
|
+
var s = Symbol();
|
|
55
|
+
var o = /* @__PURE__ */ new WeakMap();
|
|
56
|
+
var n = class {
|
|
57
|
+
constructor(t6, e7, o5) {
|
|
58
|
+
if (this._$cssResult$ = true, o5 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
59
|
+
this.cssText = t6, this.t = e7;
|
|
60
|
+
}
|
|
61
|
+
get styleSheet() {
|
|
62
|
+
let t6 = this.o;
|
|
63
|
+
const s3 = this.t;
|
|
64
|
+
if (e && void 0 === t6) {
|
|
65
|
+
const e7 = void 0 !== s3 && 1 === s3.length;
|
|
66
|
+
e7 && (t6 = o.get(s3)), void 0 === t6 && ((this.o = t6 = new CSSStyleSheet()).replaceSync(this.cssText), e7 && o.set(s3, t6));
|
|
67
|
+
}
|
|
68
|
+
return t6;
|
|
69
|
+
}
|
|
70
|
+
toString() {
|
|
71
|
+
return this.cssText;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
var r = (t6) => new n("string" == typeof t6 ? t6 : t6 + "", void 0, s);
|
|
75
|
+
var i = (t6, ...e7) => {
|
|
76
|
+
const o5 = 1 === t6.length ? t6[0] : e7.reduce((e8, s3, o6) => e8 + ((t7) => {
|
|
77
|
+
if (true === t7._$cssResult$) return t7.cssText;
|
|
78
|
+
if ("number" == typeof t7) return t7;
|
|
79
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + t7 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
80
|
+
})(s3) + t6[o6 + 1], t6[0]);
|
|
81
|
+
return new n(o5, t6, s);
|
|
82
|
+
};
|
|
83
|
+
var S = (s3, o5) => {
|
|
84
|
+
if (e) s3.adoptedStyleSheets = o5.map((t6) => t6 instanceof CSSStyleSheet ? t6 : t6.styleSheet);
|
|
85
|
+
else for (const e7 of o5) {
|
|
86
|
+
const o6 = document.createElement("style"), n6 = t.litNonce;
|
|
87
|
+
void 0 !== n6 && o6.setAttribute("nonce", n6), o6.textContent = e7.cssText, s3.appendChild(o6);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
var c = e ? (t6) => t6 : (t6) => t6 instanceof CSSStyleSheet ? ((t7) => {
|
|
91
|
+
let e7 = "";
|
|
92
|
+
for (const s3 of t7.cssRules) e7 += s3.cssText;
|
|
93
|
+
return r(e7);
|
|
94
|
+
})(t6) : t6;
|
|
95
|
+
|
|
96
|
+
// ../../node_modules/lit/node_modules/@lit/reactive-element/reactive-element.js
|
|
97
|
+
var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: r2, getOwnPropertyNames: h, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object;
|
|
98
|
+
var a = globalThis;
|
|
99
|
+
var c2 = a.trustedTypes;
|
|
100
|
+
var l = c2 ? c2.emptyScript : "";
|
|
101
|
+
var p = a.reactiveElementPolyfillSupport;
|
|
102
|
+
var d = (t6, s3) => t6;
|
|
103
|
+
var u = { toAttribute(t6, s3) {
|
|
104
|
+
switch (s3) {
|
|
105
|
+
case Boolean:
|
|
106
|
+
t6 = t6 ? l : null;
|
|
107
|
+
break;
|
|
108
|
+
case Object:
|
|
109
|
+
case Array:
|
|
110
|
+
t6 = null == t6 ? t6 : JSON.stringify(t6);
|
|
111
|
+
}
|
|
112
|
+
return t6;
|
|
113
|
+
}, fromAttribute(t6, s3) {
|
|
114
|
+
let i4 = t6;
|
|
115
|
+
switch (s3) {
|
|
116
|
+
case Boolean:
|
|
117
|
+
i4 = null !== t6;
|
|
118
|
+
break;
|
|
119
|
+
case Number:
|
|
120
|
+
i4 = null === t6 ? null : Number(t6);
|
|
121
|
+
break;
|
|
122
|
+
case Object:
|
|
123
|
+
case Array:
|
|
124
|
+
try {
|
|
125
|
+
i4 = JSON.parse(t6);
|
|
126
|
+
} catch (t7) {
|
|
127
|
+
i4 = null;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return i4;
|
|
131
|
+
} };
|
|
132
|
+
var f = (t6, s3) => !i2(t6, s3);
|
|
133
|
+
var y = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
|
|
134
|
+
Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
135
|
+
var b = class extends HTMLElement {
|
|
136
|
+
static addInitializer(t6) {
|
|
137
|
+
this._$Ei(), (this.l ??= []).push(t6);
|
|
138
|
+
}
|
|
139
|
+
static get observedAttributes() {
|
|
140
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
141
|
+
}
|
|
142
|
+
static createProperty(t6, s3 = y) {
|
|
143
|
+
if (s3.state && (s3.attribute = false), this._$Ei(), this.elementProperties.set(t6, s3), !s3.noAccessor) {
|
|
144
|
+
const i4 = Symbol(), r6 = this.getPropertyDescriptor(t6, i4, s3);
|
|
145
|
+
void 0 !== r6 && e2(this.prototype, t6, r6);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
static getPropertyDescriptor(t6, s3, i4) {
|
|
149
|
+
const { get: e7, set: h5 } = r2(this.prototype, t6) ?? { get() {
|
|
150
|
+
return this[s3];
|
|
151
|
+
}, set(t7) {
|
|
152
|
+
this[s3] = t7;
|
|
153
|
+
} };
|
|
154
|
+
return { get() {
|
|
155
|
+
return e7?.call(this);
|
|
156
|
+
}, set(s4) {
|
|
157
|
+
const r6 = e7?.call(this);
|
|
158
|
+
h5.call(this, s4), this.requestUpdate(t6, r6, i4);
|
|
159
|
+
}, configurable: true, enumerable: true };
|
|
160
|
+
}
|
|
161
|
+
static getPropertyOptions(t6) {
|
|
162
|
+
return this.elementProperties.get(t6) ?? y;
|
|
163
|
+
}
|
|
164
|
+
static _$Ei() {
|
|
165
|
+
if (this.hasOwnProperty(d("elementProperties"))) return;
|
|
166
|
+
const t6 = n2(this);
|
|
167
|
+
t6.finalize(), void 0 !== t6.l && (this.l = [...t6.l]), this.elementProperties = new Map(t6.elementProperties);
|
|
168
|
+
}
|
|
169
|
+
static finalize() {
|
|
170
|
+
if (this.hasOwnProperty(d("finalized"))) return;
|
|
171
|
+
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) {
|
|
172
|
+
const t7 = this.properties, s3 = [...h(t7), ...o2(t7)];
|
|
173
|
+
for (const i4 of s3) this.createProperty(i4, t7[i4]);
|
|
174
|
+
}
|
|
175
|
+
const t6 = this[Symbol.metadata];
|
|
176
|
+
if (null !== t6) {
|
|
177
|
+
const s3 = litPropertyMetadata.get(t6);
|
|
178
|
+
if (void 0 !== s3) for (const [t7, i4] of s3) this.elementProperties.set(t7, i4);
|
|
179
|
+
}
|
|
180
|
+
this._$Eh = /* @__PURE__ */ new Map();
|
|
181
|
+
for (const [t7, s3] of this.elementProperties) {
|
|
182
|
+
const i4 = this._$Eu(t7, s3);
|
|
183
|
+
void 0 !== i4 && this._$Eh.set(i4, t7);
|
|
184
|
+
}
|
|
185
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
186
|
+
}
|
|
187
|
+
static finalizeStyles(s3) {
|
|
188
|
+
const i4 = [];
|
|
189
|
+
if (Array.isArray(s3)) {
|
|
190
|
+
const e7 = new Set(s3.flat(1 / 0).reverse());
|
|
191
|
+
for (const s4 of e7) i4.unshift(c(s4));
|
|
192
|
+
} else void 0 !== s3 && i4.push(c(s3));
|
|
193
|
+
return i4;
|
|
194
|
+
}
|
|
195
|
+
static _$Eu(t6, s3) {
|
|
196
|
+
const i4 = s3.attribute;
|
|
197
|
+
return false === i4 ? void 0 : "string" == typeof i4 ? i4 : "string" == typeof t6 ? t6.toLowerCase() : void 0;
|
|
198
|
+
}
|
|
199
|
+
constructor() {
|
|
200
|
+
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
201
|
+
}
|
|
202
|
+
_$Ev() {
|
|
203
|
+
this._$ES = new Promise((t6) => this.enableUpdating = t6), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t6) => t6(this));
|
|
204
|
+
}
|
|
205
|
+
addController(t6) {
|
|
206
|
+
(this._$EO ??= /* @__PURE__ */ new Set()).add(t6), void 0 !== this.renderRoot && this.isConnected && t6.hostConnected?.();
|
|
207
|
+
}
|
|
208
|
+
removeController(t6) {
|
|
209
|
+
this._$EO?.delete(t6);
|
|
210
|
+
}
|
|
211
|
+
_$E_() {
|
|
212
|
+
const t6 = /* @__PURE__ */ new Map(), s3 = this.constructor.elementProperties;
|
|
213
|
+
for (const i4 of s3.keys()) this.hasOwnProperty(i4) && (t6.set(i4, this[i4]), delete this[i4]);
|
|
214
|
+
t6.size > 0 && (this._$Ep = t6);
|
|
215
|
+
}
|
|
216
|
+
createRenderRoot() {
|
|
217
|
+
const t6 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
218
|
+
return S(t6, this.constructor.elementStyles), t6;
|
|
219
|
+
}
|
|
220
|
+
connectedCallback() {
|
|
221
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t6) => t6.hostConnected?.());
|
|
222
|
+
}
|
|
223
|
+
enableUpdating(t6) {
|
|
224
|
+
}
|
|
225
|
+
disconnectedCallback() {
|
|
226
|
+
this._$EO?.forEach((t6) => t6.hostDisconnected?.());
|
|
227
|
+
}
|
|
228
|
+
attributeChangedCallback(t6, s3, i4) {
|
|
229
|
+
this._$AK(t6, i4);
|
|
230
|
+
}
|
|
231
|
+
_$EC(t6, s3) {
|
|
232
|
+
const i4 = this.constructor.elementProperties.get(t6), e7 = this.constructor._$Eu(t6, i4);
|
|
233
|
+
if (void 0 !== e7 && true === i4.reflect) {
|
|
234
|
+
const r6 = (void 0 !== i4.converter?.toAttribute ? i4.converter : u).toAttribute(s3, i4.type);
|
|
235
|
+
this._$Em = t6, null == r6 ? this.removeAttribute(e7) : this.setAttribute(e7, r6), this._$Em = null;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
_$AK(t6, s3) {
|
|
239
|
+
const i4 = this.constructor, e7 = i4._$Eh.get(t6);
|
|
240
|
+
if (void 0 !== e7 && this._$Em !== e7) {
|
|
241
|
+
const t7 = i4.getPropertyOptions(e7), r6 = "function" == typeof t7.converter ? { fromAttribute: t7.converter } : void 0 !== t7.converter?.fromAttribute ? t7.converter : u;
|
|
242
|
+
this._$Em = e7, this[e7] = r6.fromAttribute(s3, t7.type), this._$Em = null;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
requestUpdate(t6, s3, i4) {
|
|
246
|
+
if (void 0 !== t6) {
|
|
247
|
+
if (i4 ??= this.constructor.getPropertyOptions(t6), !(i4.hasChanged ?? f)(this[t6], s3)) return;
|
|
248
|
+
this.P(t6, s3, i4);
|
|
249
|
+
}
|
|
250
|
+
false === this.isUpdatePending && (this._$ES = this._$ET());
|
|
251
|
+
}
|
|
252
|
+
P(t6, s3, i4) {
|
|
253
|
+
this._$AL.has(t6) || this._$AL.set(t6, s3), true === i4.reflect && this._$Em !== t6 && (this._$Ej ??= /* @__PURE__ */ new Set()).add(t6);
|
|
254
|
+
}
|
|
255
|
+
async _$ET() {
|
|
256
|
+
this.isUpdatePending = true;
|
|
257
|
+
try {
|
|
258
|
+
await this._$ES;
|
|
259
|
+
} catch (t7) {
|
|
260
|
+
Promise.reject(t7);
|
|
261
|
+
}
|
|
262
|
+
const t6 = this.scheduleUpdate();
|
|
263
|
+
return null != t6 && await t6, !this.isUpdatePending;
|
|
264
|
+
}
|
|
265
|
+
scheduleUpdate() {
|
|
266
|
+
return this.performUpdate();
|
|
267
|
+
}
|
|
268
|
+
performUpdate() {
|
|
269
|
+
if (!this.isUpdatePending) return;
|
|
270
|
+
if (!this.hasUpdated) {
|
|
271
|
+
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
272
|
+
for (const [t8, s4] of this._$Ep) this[t8] = s4;
|
|
273
|
+
this._$Ep = void 0;
|
|
274
|
+
}
|
|
275
|
+
const t7 = this.constructor.elementProperties;
|
|
276
|
+
if (t7.size > 0) for (const [s4, i4] of t7) true !== i4.wrapped || this._$AL.has(s4) || void 0 === this[s4] || this.P(s4, this[s4], i4);
|
|
277
|
+
}
|
|
278
|
+
let t6 = false;
|
|
279
|
+
const s3 = this._$AL;
|
|
280
|
+
try {
|
|
281
|
+
t6 = this.shouldUpdate(s3), t6 ? (this.willUpdate(s3), this._$EO?.forEach((t7) => t7.hostUpdate?.()), this.update(s3)) : this._$EU();
|
|
282
|
+
} catch (s4) {
|
|
283
|
+
throw t6 = false, this._$EU(), s4;
|
|
284
|
+
}
|
|
285
|
+
t6 && this._$AE(s3);
|
|
286
|
+
}
|
|
287
|
+
willUpdate(t6) {
|
|
288
|
+
}
|
|
289
|
+
_$AE(t6) {
|
|
290
|
+
this._$EO?.forEach((t7) => t7.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t6)), this.updated(t6);
|
|
291
|
+
}
|
|
292
|
+
_$EU() {
|
|
293
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
294
|
+
}
|
|
295
|
+
get updateComplete() {
|
|
296
|
+
return this.getUpdateComplete();
|
|
297
|
+
}
|
|
298
|
+
getUpdateComplete() {
|
|
299
|
+
return this._$ES;
|
|
300
|
+
}
|
|
301
|
+
shouldUpdate(t6) {
|
|
302
|
+
return true;
|
|
303
|
+
}
|
|
304
|
+
update(t6) {
|
|
305
|
+
this._$Ej &&= this._$Ej.forEach((t7) => this._$EC(t7, this[t7])), this._$EU();
|
|
306
|
+
}
|
|
307
|
+
updated(t6) {
|
|
308
|
+
}
|
|
309
|
+
firstUpdated(t6) {
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
b.elementStyles = [], b.shadowRootOptions = { mode: "open" }, b[d("elementProperties")] = /* @__PURE__ */ new Map(), b[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: b }), (a.reactiveElementVersions ??= []).push("2.0.4");
|
|
313
|
+
|
|
314
|
+
// ../../node_modules/lit/node_modules/lit-html/lit-html.js
|
|
315
|
+
var n3 = globalThis;
|
|
316
|
+
var c3 = n3.trustedTypes;
|
|
317
|
+
var h2 = c3 ? c3.createPolicy("lit-html", { createHTML: (t6) => t6 }) : void 0;
|
|
318
|
+
var f2 = "$lit$";
|
|
319
|
+
var v = `lit$${Math.random().toFixed(9).slice(2)}$`;
|
|
320
|
+
var m = "?" + v;
|
|
321
|
+
var _ = `<${m}>`;
|
|
322
|
+
var w = document;
|
|
323
|
+
var lt = () => w.createComment("");
|
|
324
|
+
var st = (t6) => null === t6 || "object" != typeof t6 && "function" != typeof t6;
|
|
325
|
+
var g = Array.isArray;
|
|
326
|
+
var $ = (t6) => g(t6) || "function" == typeof t6?.[Symbol.iterator];
|
|
327
|
+
var x = "[ \n\f\r]";
|
|
328
|
+
var T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
|
|
329
|
+
var E = /-->/g;
|
|
330
|
+
var k = />/g;
|
|
331
|
+
var O = RegExp(`>|${x}(?:([^\\s"'>=/]+)(${x}*=${x}*(?:[^
|
|
332
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g");
|
|
333
|
+
var S2 = /'/g;
|
|
334
|
+
var j = /"/g;
|
|
335
|
+
var M = /^(?:script|style|textarea|title)$/i;
|
|
336
|
+
var P = (t6) => (i4, ...s3) => ({ _$litType$: t6, strings: i4, values: s3 });
|
|
337
|
+
var ke = P(1);
|
|
338
|
+
var Oe = P(2);
|
|
339
|
+
var Se = P(3);
|
|
340
|
+
var R = Symbol.for("lit-noChange");
|
|
341
|
+
var D = Symbol.for("lit-nothing");
|
|
342
|
+
var V = /* @__PURE__ */ new WeakMap();
|
|
343
|
+
var I = w.createTreeWalker(w, 129);
|
|
344
|
+
function N(t6, i4) {
|
|
345
|
+
if (!g(t6) || !t6.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
346
|
+
return void 0 !== h2 ? h2.createHTML(i4) : i4;
|
|
347
|
+
}
|
|
348
|
+
var U = (t6, i4) => {
|
|
349
|
+
const s3 = t6.length - 1, e7 = [];
|
|
350
|
+
let h5, o5 = 2 === i4 ? "<svg>" : 3 === i4 ? "<math>" : "", n6 = T;
|
|
351
|
+
for (let i5 = 0; i5 < s3; i5++) {
|
|
352
|
+
const s4 = t6[i5];
|
|
353
|
+
let r6, l3, c5 = -1, a3 = 0;
|
|
354
|
+
for (; a3 < s4.length && (n6.lastIndex = a3, l3 = n6.exec(s4), null !== l3); ) a3 = n6.lastIndex, n6 === T ? "!--" === l3[1] ? n6 = E : void 0 !== l3[1] ? n6 = k : void 0 !== l3[2] ? (M.test(l3[2]) && (h5 = RegExp("</" + l3[2], "g")), n6 = O) : void 0 !== l3[3] && (n6 = O) : n6 === O ? ">" === l3[0] ? (n6 = h5 ?? T, c5 = -1) : void 0 === l3[1] ? c5 = -2 : (c5 = n6.lastIndex - l3[2].length, r6 = l3[1], n6 = void 0 === l3[3] ? O : '"' === l3[3] ? j : S2) : n6 === j || n6 === S2 ? n6 = O : n6 === E || n6 === k ? n6 = T : (n6 = O, h5 = void 0);
|
|
355
|
+
const u3 = n6 === O && t6[i5 + 1].startsWith("/>") ? " " : "";
|
|
356
|
+
o5 += n6 === T ? s4 + _ : c5 >= 0 ? (e7.push(r6), s4.slice(0, c5) + f2 + s4.slice(c5) + v + u3) : s4 + v + (-2 === c5 ? i5 : u3);
|
|
357
|
+
}
|
|
358
|
+
return [N(t6, o5 + (t6[s3] || "<?>") + (2 === i4 ? "</svg>" : 3 === i4 ? "</math>" : "")), e7];
|
|
359
|
+
};
|
|
360
|
+
var B = class _B2 {
|
|
361
|
+
constructor({ strings: t6, _$litType$: i4 }, s3) {
|
|
362
|
+
let e7;
|
|
363
|
+
this.parts = [];
|
|
364
|
+
let h5 = 0, o5 = 0;
|
|
365
|
+
const n6 = t6.length - 1, r6 = this.parts, [l3, a3] = U(t6, i4);
|
|
366
|
+
if (this.el = _B2.createElement(l3, s3), I.currentNode = this.el.content, 2 === i4 || 3 === i4) {
|
|
367
|
+
const t7 = this.el.content.firstChild;
|
|
368
|
+
t7.replaceWith(...t7.childNodes);
|
|
369
|
+
}
|
|
370
|
+
for (; null !== (e7 = I.nextNode()) && r6.length < n6; ) {
|
|
371
|
+
if (1 === e7.nodeType) {
|
|
372
|
+
if (e7.hasAttributes()) for (const t7 of e7.getAttributeNames()) if (t7.endsWith(f2)) {
|
|
373
|
+
const i5 = a3[o5++], s4 = e7.getAttribute(t7).split(v), n7 = /([.?@])?(.*)/.exec(i5);
|
|
374
|
+
r6.push({ type: 1, index: h5, name: n7[2], strings: s4, ctor: "." === n7[1] ? Y : "?" === n7[1] ? Z : "@" === n7[1] ? q : G }), e7.removeAttribute(t7);
|
|
375
|
+
} else t7.startsWith(v) && (r6.push({ type: 6, index: h5 }), e7.removeAttribute(t7));
|
|
376
|
+
if (M.test(e7.tagName)) {
|
|
377
|
+
const t7 = e7.textContent.split(v), i5 = t7.length - 1;
|
|
378
|
+
if (i5 > 0) {
|
|
379
|
+
e7.textContent = c3 ? c3.emptyScript : "";
|
|
380
|
+
for (let s4 = 0; s4 < i5; s4++) e7.append(t7[s4], lt()), I.nextNode(), r6.push({ type: 2, index: ++h5 });
|
|
381
|
+
e7.append(t7[i5], lt());
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
} else if (8 === e7.nodeType) if (e7.data === m) r6.push({ type: 2, index: h5 });
|
|
385
|
+
else {
|
|
386
|
+
let t7 = -1;
|
|
387
|
+
for (; -1 !== (t7 = e7.data.indexOf(v, t7 + 1)); ) r6.push({ type: 7, index: h5 }), t7 += v.length - 1;
|
|
388
|
+
}
|
|
389
|
+
h5++;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
static createElement(t6, i4) {
|
|
393
|
+
const s3 = w.createElement("template");
|
|
394
|
+
return s3.innerHTML = t6, s3;
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
function z(t6, i4, s3 = t6, e7) {
|
|
398
|
+
if (i4 === R) return i4;
|
|
399
|
+
let h5 = void 0 !== e7 ? s3.o?.[e7] : s3.l;
|
|
400
|
+
const o5 = st(i4) ? void 0 : i4._$litDirective$;
|
|
401
|
+
return h5?.constructor !== o5 && (h5?._$AO?.(false), void 0 === o5 ? h5 = void 0 : (h5 = new o5(t6), h5._$AT(t6, s3, e7)), void 0 !== e7 ? (s3.o ??= [])[e7] = h5 : s3.l = h5), void 0 !== h5 && (i4 = z(t6, h5._$AS(t6, i4.values), h5, e7)), i4;
|
|
402
|
+
}
|
|
403
|
+
var F = class {
|
|
404
|
+
constructor(t6, i4) {
|
|
405
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t6, this._$AM = i4;
|
|
406
|
+
}
|
|
407
|
+
get parentNode() {
|
|
408
|
+
return this._$AM.parentNode;
|
|
409
|
+
}
|
|
410
|
+
get _$AU() {
|
|
411
|
+
return this._$AM._$AU;
|
|
412
|
+
}
|
|
413
|
+
u(t6) {
|
|
414
|
+
const { el: { content: i4 }, parts: s3 } = this._$AD, e7 = (t6?.creationScope ?? w).importNode(i4, true);
|
|
415
|
+
I.currentNode = e7;
|
|
416
|
+
let h5 = I.nextNode(), o5 = 0, n6 = 0, r6 = s3[0];
|
|
417
|
+
for (; void 0 !== r6; ) {
|
|
418
|
+
if (o5 === r6.index) {
|
|
419
|
+
let i5;
|
|
420
|
+
2 === r6.type ? i5 = new et(h5, h5.nextSibling, this, t6) : 1 === r6.type ? i5 = new r6.ctor(h5, r6.name, r6.strings, this, t6) : 6 === r6.type && (i5 = new K(h5, this, t6)), this._$AV.push(i5), r6 = s3[++n6];
|
|
421
|
+
}
|
|
422
|
+
o5 !== r6?.index && (h5 = I.nextNode(), o5++);
|
|
423
|
+
}
|
|
424
|
+
return I.currentNode = w, e7;
|
|
425
|
+
}
|
|
426
|
+
p(t6) {
|
|
427
|
+
let i4 = 0;
|
|
428
|
+
for (const s3 of this._$AV) void 0 !== s3 && (void 0 !== s3.strings ? (s3._$AI(t6, s3, i4), i4 += s3.strings.length - 2) : s3._$AI(t6[i4])), i4++;
|
|
429
|
+
}
|
|
430
|
+
};
|
|
431
|
+
var et = class _et2 {
|
|
432
|
+
get _$AU() {
|
|
433
|
+
return this._$AM?._$AU ?? this.v;
|
|
434
|
+
}
|
|
435
|
+
constructor(t6, i4, s3, e7) {
|
|
436
|
+
this.type = 2, this._$AH = D, this._$AN = void 0, this._$AA = t6, this._$AB = i4, this._$AM = s3, this.options = e7, this.v = e7?.isConnected ?? true;
|
|
437
|
+
}
|
|
438
|
+
get parentNode() {
|
|
439
|
+
let t6 = this._$AA.parentNode;
|
|
440
|
+
const i4 = this._$AM;
|
|
441
|
+
return void 0 !== i4 && 11 === t6?.nodeType && (t6 = i4.parentNode), t6;
|
|
442
|
+
}
|
|
443
|
+
get startNode() {
|
|
444
|
+
return this._$AA;
|
|
445
|
+
}
|
|
446
|
+
get endNode() {
|
|
447
|
+
return this._$AB;
|
|
448
|
+
}
|
|
449
|
+
_$AI(t6, i4 = this) {
|
|
450
|
+
t6 = z(this, t6, i4), st(t6) ? t6 === D || null == t6 || "" === t6 ? (this._$AH !== D && this._$AR(), this._$AH = D) : t6 !== this._$AH && t6 !== R && this._(t6) : void 0 !== t6._$litType$ ? this.$(t6) : void 0 !== t6.nodeType ? this.T(t6) : $(t6) ? this.k(t6) : this._(t6);
|
|
451
|
+
}
|
|
452
|
+
O(t6) {
|
|
453
|
+
return this._$AA.parentNode.insertBefore(t6, this._$AB);
|
|
454
|
+
}
|
|
455
|
+
T(t6) {
|
|
456
|
+
this._$AH !== t6 && (this._$AR(), this._$AH = this.O(t6));
|
|
457
|
+
}
|
|
458
|
+
_(t6) {
|
|
459
|
+
this._$AH !== D && st(this._$AH) ? this._$AA.nextSibling.data = t6 : this.T(w.createTextNode(t6)), this._$AH = t6;
|
|
460
|
+
}
|
|
461
|
+
$(t6) {
|
|
462
|
+
const { values: i4, _$litType$: s3 } = t6, e7 = "number" == typeof s3 ? this._$AC(t6) : (void 0 === s3.el && (s3.el = B.createElement(N(s3.h, s3.h[0]), this.options)), s3);
|
|
463
|
+
if (this._$AH?._$AD === e7) this._$AH.p(i4);
|
|
464
|
+
else {
|
|
465
|
+
const t7 = new F(e7, this), s4 = t7.u(this.options);
|
|
466
|
+
t7.p(i4), this.T(s4), this._$AH = t7;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
_$AC(t6) {
|
|
470
|
+
let i4 = V.get(t6.strings);
|
|
471
|
+
return void 0 === i4 && V.set(t6.strings, i4 = new B(t6)), i4;
|
|
472
|
+
}
|
|
473
|
+
k(t6) {
|
|
474
|
+
g(this._$AH) || (this._$AH = [], this._$AR());
|
|
475
|
+
const i4 = this._$AH;
|
|
476
|
+
let s3, e7 = 0;
|
|
477
|
+
for (const h5 of t6) e7 === i4.length ? i4.push(s3 = new _et2(this.O(lt()), this.O(lt()), this, this.options)) : s3 = i4[e7], s3._$AI(h5), e7++;
|
|
478
|
+
e7 < i4.length && (this._$AR(s3 && s3._$AB.nextSibling, e7), i4.length = e7);
|
|
479
|
+
}
|
|
480
|
+
_$AR(t6 = this._$AA.nextSibling, i4) {
|
|
481
|
+
for (this._$AP?.(false, true, i4); t6 && t6 !== this._$AB; ) {
|
|
482
|
+
const i5 = t6.nextSibling;
|
|
483
|
+
t6.remove(), t6 = i5;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
setConnected(t6) {
|
|
487
|
+
void 0 === this._$AM && (this.v = t6, this._$AP?.(t6));
|
|
488
|
+
}
|
|
489
|
+
};
|
|
490
|
+
var G = class {
|
|
491
|
+
get tagName() {
|
|
492
|
+
return this.element.tagName;
|
|
493
|
+
}
|
|
494
|
+
get _$AU() {
|
|
495
|
+
return this._$AM._$AU;
|
|
496
|
+
}
|
|
497
|
+
constructor(t6, i4, s3, e7, h5) {
|
|
498
|
+
this.type = 1, this._$AH = D, this._$AN = void 0, this.element = t6, this.name = i4, this._$AM = e7, this.options = h5, s3.length > 2 || "" !== s3[0] || "" !== s3[1] ? (this._$AH = Array(s3.length - 1).fill(new String()), this.strings = s3) : this._$AH = D;
|
|
499
|
+
}
|
|
500
|
+
_$AI(t6, i4 = this, s3, e7) {
|
|
501
|
+
const h5 = this.strings;
|
|
502
|
+
let o5 = false;
|
|
503
|
+
if (void 0 === h5) t6 = z(this, t6, i4, 0), o5 = !st(t6) || t6 !== this._$AH && t6 !== R, o5 && (this._$AH = t6);
|
|
504
|
+
else {
|
|
505
|
+
const e8 = t6;
|
|
506
|
+
let n6, r6;
|
|
507
|
+
for (t6 = h5[0], n6 = 0; n6 < h5.length - 1; n6++) r6 = z(this, e8[s3 + n6], i4, n6), r6 === R && (r6 = this._$AH[n6]), o5 ||= !st(r6) || r6 !== this._$AH[n6], r6 === D ? t6 = D : t6 !== D && (t6 += (r6 ?? "") + h5[n6 + 1]), this._$AH[n6] = r6;
|
|
508
|
+
}
|
|
509
|
+
o5 && !e7 && this.j(t6);
|
|
510
|
+
}
|
|
511
|
+
j(t6) {
|
|
512
|
+
t6 === D ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t6 ?? "");
|
|
513
|
+
}
|
|
514
|
+
};
|
|
515
|
+
var Y = class extends G {
|
|
516
|
+
constructor() {
|
|
517
|
+
super(...arguments), this.type = 3;
|
|
518
|
+
}
|
|
519
|
+
j(t6) {
|
|
520
|
+
this.element[this.name] = t6 === D ? void 0 : t6;
|
|
521
|
+
}
|
|
522
|
+
};
|
|
523
|
+
var Z = class extends G {
|
|
524
|
+
constructor() {
|
|
525
|
+
super(...arguments), this.type = 4;
|
|
526
|
+
}
|
|
527
|
+
j(t6) {
|
|
528
|
+
this.element.toggleAttribute(this.name, !!t6 && t6 !== D);
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
var q = class extends G {
|
|
532
|
+
constructor(t6, i4, s3, e7, h5) {
|
|
533
|
+
super(t6, i4, s3, e7, h5), this.type = 5;
|
|
534
|
+
}
|
|
535
|
+
_$AI(t6, i4 = this) {
|
|
536
|
+
if ((t6 = z(this, t6, i4, 0) ?? D) === R) return;
|
|
537
|
+
const s3 = this._$AH, e7 = t6 === D && s3 !== D || t6.capture !== s3.capture || t6.once !== s3.once || t6.passive !== s3.passive, h5 = t6 !== D && (s3 === D || e7);
|
|
538
|
+
e7 && this.element.removeEventListener(this.name, this, s3), h5 && this.element.addEventListener(this.name, this, t6), this._$AH = t6;
|
|
539
|
+
}
|
|
540
|
+
handleEvent(t6) {
|
|
541
|
+
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t6) : this._$AH.handleEvent(t6);
|
|
542
|
+
}
|
|
543
|
+
};
|
|
544
|
+
var K = class {
|
|
545
|
+
constructor(t6, i4, s3) {
|
|
546
|
+
this.element = t6, this.type = 6, this._$AN = void 0, this._$AM = i4, this.options = s3;
|
|
547
|
+
}
|
|
548
|
+
get _$AU() {
|
|
549
|
+
return this._$AM._$AU;
|
|
550
|
+
}
|
|
551
|
+
_$AI(t6) {
|
|
552
|
+
z(this, t6);
|
|
553
|
+
}
|
|
554
|
+
};
|
|
555
|
+
var si = { M: f2, P: v, A: m, C: 1, L: U, R: F, D: $, V: z, I: et, H: G, N: Z, U: q, B: Y, F: K };
|
|
556
|
+
var Re = n3.litHtmlPolyfillSupport;
|
|
557
|
+
Re?.(B, et), (n3.litHtmlVersions ??= []).push("3.2.0");
|
|
558
|
+
var Q = (t6, i4, s3) => {
|
|
559
|
+
const e7 = s3?.renderBefore ?? i4;
|
|
560
|
+
let h5 = e7._$litPart$;
|
|
561
|
+
if (void 0 === h5) {
|
|
562
|
+
const t7 = s3?.renderBefore ?? null;
|
|
563
|
+
e7._$litPart$ = h5 = new et(i4.insertBefore(lt(), t7), t7, void 0, s3 ?? {});
|
|
564
|
+
}
|
|
565
|
+
return h5._$AI(t6), h5;
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
// ../../node_modules/lit/node_modules/lit-element/lit-element.js
|
|
569
|
+
var h3 = class extends b {
|
|
570
|
+
constructor() {
|
|
571
|
+
super(...arguments), this.renderOptions = { host: this }, this.o = void 0;
|
|
572
|
+
}
|
|
573
|
+
createRenderRoot() {
|
|
574
|
+
const t6 = super.createRenderRoot();
|
|
575
|
+
return this.renderOptions.renderBefore ??= t6.firstChild, t6;
|
|
576
|
+
}
|
|
577
|
+
update(t6) {
|
|
578
|
+
const e7 = this.render();
|
|
579
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t6), this.o = Q(e7, this.renderRoot, this.renderOptions);
|
|
580
|
+
}
|
|
581
|
+
connectedCallback() {
|
|
582
|
+
super.connectedCallback(), this.o?.setConnected(true);
|
|
583
|
+
}
|
|
584
|
+
disconnectedCallback() {
|
|
585
|
+
super.disconnectedCallback(), this.o?.setConnected(false);
|
|
586
|
+
}
|
|
587
|
+
render() {
|
|
588
|
+
return R;
|
|
589
|
+
}
|
|
590
|
+
};
|
|
591
|
+
h3._$litElement$ = true, h3["finalized"] = true, globalThis.litElementHydrateSupport?.({ LitElement: h3 });
|
|
592
|
+
var f3 = globalThis.litElementPolyfillSupport;
|
|
593
|
+
f3?.({ LitElement: h3 });
|
|
594
|
+
(globalThis.litElementVersions ??= []).push("4.1.0");
|
|
595
|
+
|
|
596
|
+
// ../lit/index.js
|
|
597
|
+
var __create2 = Object.create;
|
|
598
|
+
var __defProp2 = Object.defineProperty;
|
|
599
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
600
|
+
var __knownSymbol2 = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
|
|
601
|
+
var __typeError2 = (msg) => {
|
|
602
|
+
throw TypeError(msg);
|
|
603
|
+
};
|
|
604
|
+
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
605
|
+
var __name2 = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
606
|
+
var __decoratorStart2 = (base) => [, , , __create2(base?.[__knownSymbol2("metadata")] ?? null)];
|
|
607
|
+
var __decoratorStrings2 = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"];
|
|
608
|
+
var __expectFn2 = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError2("Function expected") : fn;
|
|
609
|
+
var __decoratorContext2 = (kind, name, done, metadata, fns) => ({ kind: __decoratorStrings2[kind], name, metadata, addInitializer: (fn) => done._ ? __typeError2("Already initialized") : fns.push(__expectFn2(fn || null)) });
|
|
610
|
+
var __decoratorMetadata2 = (array, target) => __defNormalProp2(target, __knownSymbol2("metadata"), array[3]);
|
|
611
|
+
var __runInitializers2 = (array, flags, self, value) => {
|
|
612
|
+
for (var i32 = 0, fns = array[flags >> 1], n52 = fns && fns.length; i32 < n52; i32++) flags & 1 ? fns[i32].call(self) : value = fns[i32].call(self, value);
|
|
613
|
+
return value;
|
|
614
|
+
};
|
|
615
|
+
var __decorateElement2 = (array, flags, name, decorators, target, extra) => {
|
|
616
|
+
var fn, it, done, ctx, access, k22 = flags & 7, s22 = !!(flags & 8), p22 = !!(flags & 16);
|
|
617
|
+
var j22 = k22 > 3 ? array.length + 1 : k22 ? s22 ? 1 : 2 : 0, key = __decoratorStrings2[k22 + 5];
|
|
618
|
+
var initializers = k22 > 3 && (array[j22 - 1] = []), extraInitializers = array[j22] || (array[j22] = []);
|
|
619
|
+
var desc = k22 && (!p22 && !s22 && (target = target.prototype), k22 < 5 && (k22 > 3 || !p22) && __getOwnPropDesc2(k22 < 4 ? target : { get [name]() {
|
|
620
|
+
return __privateGet2(this, extra);
|
|
621
|
+
}, set [name](x22) {
|
|
622
|
+
return __privateSet2(this, extra, x22);
|
|
623
|
+
} }, name));
|
|
624
|
+
k22 ? p22 && k22 < 4 && __name2(extra, (k22 > 2 ? "set " : k22 > 1 ? "get " : "") + name) : __name2(target, name);
|
|
625
|
+
for (var i32 = decorators.length - 1; i32 >= 0; i32--) {
|
|
626
|
+
ctx = __decoratorContext2(k22, name, done = {}, array[3], extraInitializers);
|
|
627
|
+
if (k22) {
|
|
628
|
+
ctx.static = s22, ctx.private = p22, access = ctx.access = { has: p22 ? (x22) => __privateIn2(target, x22) : (x22) => name in x22 };
|
|
629
|
+
if (k22 ^ 3) access.get = p22 ? (x22) => (k22 ^ 1 ? __privateGet2 : __privateMethod2)(x22, target, k22 ^ 4 ? extra : desc.get) : (x22) => x22[name];
|
|
630
|
+
if (k22 > 2) access.set = p22 ? (x22, y22) => __privateSet2(x22, target, y22, k22 ^ 4 ? extra : desc.set) : (x22, y22) => x22[name] = y22;
|
|
631
|
+
}
|
|
632
|
+
it = (0, decorators[i32])(k22 ? k22 < 4 ? p22 ? extra : desc[key] : k22 > 4 ? void 0 : { get: desc.get, set: desc.set } : target, ctx), done._ = 1;
|
|
633
|
+
if (k22 ^ 4 || it === void 0) __expectFn2(it) && (k22 > 4 ? initializers.unshift(it) : k22 ? p22 ? extra = it : desc[key] = it : target = it);
|
|
634
|
+
else if (typeof it !== "object" || it === null) __typeError2("Object expected");
|
|
635
|
+
else __expectFn2(fn = it.get) && (desc.get = fn), __expectFn2(fn = it.set) && (desc.set = fn), __expectFn2(fn = it.init) && initializers.unshift(fn);
|
|
636
|
+
}
|
|
637
|
+
return k22 || __decoratorMetadata2(array, target), desc && __defProp2(target, name, desc), p22 ? k22 ^ 4 ? extra : desc : target;
|
|
638
|
+
};
|
|
639
|
+
var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
640
|
+
var __accessCheck2 = (obj, member, msg) => member.has(obj) || __typeError2("Cannot " + msg);
|
|
641
|
+
var __privateIn2 = (member, obj) => Object(obj) !== obj ? __typeError2('Cannot use the "in" operator on this value') : member.has(obj);
|
|
642
|
+
var __privateGet2 = (obj, member, getter) => (__accessCheck2(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
643
|
+
var __privateAdd2 = (obj, member, value) => member.has(obj) ? __typeError2("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
644
|
+
var __privateSet2 = (obj, member, value, setter) => (__accessCheck2(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
645
|
+
var __privateMethod2 = (obj, member, method) => (__accessCheck2(obj, member, "access private method"), method);
|
|
646
|
+
var t2 = globalThis;
|
|
647
|
+
var e3 = t2.ShadowRoot && (void 0 === t2.ShadyCSS || t2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
|
|
648
|
+
var s2 = Symbol();
|
|
649
|
+
var o3 = /* @__PURE__ */ new WeakMap();
|
|
650
|
+
var n4 = class {
|
|
651
|
+
constructor(t22, e42, o42) {
|
|
652
|
+
if (this._$cssResult$ = true, o42 !== s2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
653
|
+
this.cssText = t22, this.t = e42;
|
|
654
|
+
}
|
|
655
|
+
get styleSheet() {
|
|
656
|
+
let t22 = this.o;
|
|
657
|
+
const s22 = this.t;
|
|
658
|
+
if (e3 && void 0 === t22) {
|
|
659
|
+
const e42 = void 0 !== s22 && 1 === s22.length;
|
|
660
|
+
e42 && (t22 = o3.get(s22)), void 0 === t22 && ((this.o = t22 = new CSSStyleSheet()).replaceSync(this.cssText), e42 && o3.set(s22, t22));
|
|
661
|
+
}
|
|
662
|
+
return t22;
|
|
663
|
+
}
|
|
664
|
+
toString() {
|
|
665
|
+
return this.cssText;
|
|
666
|
+
}
|
|
667
|
+
};
|
|
668
|
+
var r3 = (t22) => new n4("string" == typeof t22 ? t22 : t22 + "", void 0, s2);
|
|
669
|
+
var S3 = (s22, o42) => {
|
|
670
|
+
if (e3) s22.adoptedStyleSheets = o42.map((t22) => t22 instanceof CSSStyleSheet ? t22 : t22.styleSheet);
|
|
671
|
+
else for (const e42 of o42) {
|
|
672
|
+
const o5 = document.createElement("style"), n52 = t2.litNonce;
|
|
673
|
+
void 0 !== n52 && o5.setAttribute("nonce", n52), o5.textContent = e42.cssText, s22.appendChild(o5);
|
|
674
|
+
}
|
|
675
|
+
};
|
|
676
|
+
var c4 = e3 ? (t22) => t22 : (t22) => t22 instanceof CSSStyleSheet ? ((t32) => {
|
|
677
|
+
let e42 = "";
|
|
678
|
+
for (const s22 of t32.cssRules) e42 += s22.cssText;
|
|
679
|
+
return r3(e42);
|
|
680
|
+
})(t22) : t22;
|
|
681
|
+
var { is: i22, defineProperty: e22, getOwnPropertyDescriptor: r22, getOwnPropertyNames: h4, getOwnPropertySymbols: o22, getPrototypeOf: n22 } = Object;
|
|
682
|
+
var a2 = globalThis;
|
|
683
|
+
var c22 = a2.trustedTypes;
|
|
684
|
+
var l2 = c22 ? c22.emptyScript : "";
|
|
685
|
+
var p2 = a2.reactiveElementPolyfillSupport;
|
|
686
|
+
var d2 = (t22, s22) => t22;
|
|
687
|
+
var u2 = { toAttribute(t22, s22) {
|
|
688
|
+
switch (s22) {
|
|
689
|
+
case Boolean:
|
|
690
|
+
t22 = t22 ? l2 : null;
|
|
691
|
+
break;
|
|
692
|
+
case Object:
|
|
693
|
+
case Array:
|
|
694
|
+
t22 = null == t22 ? t22 : JSON.stringify(t22);
|
|
695
|
+
}
|
|
696
|
+
return t22;
|
|
697
|
+
}, fromAttribute(t22, s22) {
|
|
698
|
+
let i32 = t22;
|
|
699
|
+
switch (s22) {
|
|
700
|
+
case Boolean:
|
|
701
|
+
i32 = null !== t22;
|
|
702
|
+
break;
|
|
703
|
+
case Number:
|
|
704
|
+
i32 = null === t22 ? null : Number(t22);
|
|
705
|
+
break;
|
|
706
|
+
case Object:
|
|
707
|
+
case Array:
|
|
708
|
+
try {
|
|
709
|
+
i32 = JSON.parse(t22);
|
|
710
|
+
} catch (t32) {
|
|
711
|
+
i32 = null;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
return i32;
|
|
715
|
+
} };
|
|
716
|
+
var f4 = (t22, s22) => !i22(t22, s22);
|
|
717
|
+
var y2 = { attribute: true, type: String, converter: u2, reflect: false, hasChanged: f4 };
|
|
718
|
+
Symbol.metadata ??= Symbol("metadata"), a2.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
719
|
+
var b2 = class extends HTMLElement {
|
|
720
|
+
static addInitializer(t22) {
|
|
721
|
+
this._$Ei(), (this.l ??= []).push(t22);
|
|
722
|
+
}
|
|
723
|
+
static get observedAttributes() {
|
|
724
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
725
|
+
}
|
|
726
|
+
static createProperty(t22, s22 = y2) {
|
|
727
|
+
if (s22.state && (s22.attribute = false), this._$Ei(), this.elementProperties.set(t22, s22), !s22.noAccessor) {
|
|
728
|
+
const i32 = Symbol(), r42 = this.getPropertyDescriptor(t22, i32, s22);
|
|
729
|
+
void 0 !== r42 && e22(this.prototype, t22, r42);
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
static getPropertyDescriptor(t22, s22, i32) {
|
|
733
|
+
const { get: e42, set: h42 } = r22(this.prototype, t22) ?? { get() {
|
|
734
|
+
return this[s22];
|
|
735
|
+
}, set(t32) {
|
|
736
|
+
this[s22] = t32;
|
|
737
|
+
} };
|
|
738
|
+
return { get() {
|
|
739
|
+
return e42?.call(this);
|
|
740
|
+
}, set(s3) {
|
|
741
|
+
const r42 = e42?.call(this);
|
|
742
|
+
h42.call(this, s3), this.requestUpdate(t22, r42, i32);
|
|
743
|
+
}, configurable: true, enumerable: true };
|
|
744
|
+
}
|
|
745
|
+
static getPropertyOptions(t22) {
|
|
746
|
+
return this.elementProperties.get(t22) ?? y2;
|
|
747
|
+
}
|
|
748
|
+
static _$Ei() {
|
|
749
|
+
if (this.hasOwnProperty(d2("elementProperties"))) return;
|
|
750
|
+
const t22 = n22(this);
|
|
751
|
+
t22.finalize(), void 0 !== t22.l && (this.l = [...t22.l]), this.elementProperties = new Map(t22.elementProperties);
|
|
752
|
+
}
|
|
753
|
+
static finalize() {
|
|
754
|
+
if (this.hasOwnProperty(d2("finalized"))) return;
|
|
755
|
+
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d2("properties"))) {
|
|
756
|
+
const t32 = this.properties, s22 = [...h4(t32), ...o22(t32)];
|
|
757
|
+
for (const i32 of s22) this.createProperty(i32, t32[i32]);
|
|
758
|
+
}
|
|
759
|
+
const t22 = this[Symbol.metadata];
|
|
760
|
+
if (null !== t22) {
|
|
761
|
+
const s22 = litPropertyMetadata.get(t22);
|
|
762
|
+
if (void 0 !== s22) for (const [t32, i32] of s22) this.elementProperties.set(t32, i32);
|
|
763
|
+
}
|
|
764
|
+
this._$Eh = /* @__PURE__ */ new Map();
|
|
765
|
+
for (const [t32, s22] of this.elementProperties) {
|
|
766
|
+
const i32 = this._$Eu(t32, s22);
|
|
767
|
+
void 0 !== i32 && this._$Eh.set(i32, t32);
|
|
768
|
+
}
|
|
769
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
770
|
+
}
|
|
771
|
+
static finalizeStyles(s22) {
|
|
772
|
+
const i32 = [];
|
|
773
|
+
if (Array.isArray(s22)) {
|
|
774
|
+
const e42 = new Set(s22.flat(1 / 0).reverse());
|
|
775
|
+
for (const s3 of e42) i32.unshift(c4(s3));
|
|
776
|
+
} else void 0 !== s22 && i32.push(c4(s22));
|
|
777
|
+
return i32;
|
|
778
|
+
}
|
|
779
|
+
static _$Eu(t22, s22) {
|
|
780
|
+
const i32 = s22.attribute;
|
|
781
|
+
return false === i32 ? void 0 : "string" == typeof i32 ? i32 : "string" == typeof t22 ? t22.toLowerCase() : void 0;
|
|
782
|
+
}
|
|
783
|
+
constructor() {
|
|
784
|
+
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
785
|
+
}
|
|
786
|
+
_$Ev() {
|
|
787
|
+
this._$ES = new Promise((t22) => this.enableUpdating = t22), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t22) => t22(this));
|
|
788
|
+
}
|
|
789
|
+
addController(t22) {
|
|
790
|
+
(this._$EO ??= /* @__PURE__ */ new Set()).add(t22), void 0 !== this.renderRoot && this.isConnected && t22.hostConnected?.();
|
|
791
|
+
}
|
|
792
|
+
removeController(t22) {
|
|
793
|
+
this._$EO?.delete(t22);
|
|
794
|
+
}
|
|
795
|
+
_$E_() {
|
|
796
|
+
const t22 = /* @__PURE__ */ new Map(), s22 = this.constructor.elementProperties;
|
|
797
|
+
for (const i32 of s22.keys()) this.hasOwnProperty(i32) && (t22.set(i32, this[i32]), delete this[i32]);
|
|
798
|
+
t22.size > 0 && (this._$Ep = t22);
|
|
799
|
+
}
|
|
800
|
+
createRenderRoot() {
|
|
801
|
+
const t22 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
802
|
+
return S3(t22, this.constructor.elementStyles), t22;
|
|
803
|
+
}
|
|
804
|
+
connectedCallback() {
|
|
805
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t22) => t22.hostConnected?.());
|
|
806
|
+
}
|
|
807
|
+
enableUpdating(t22) {
|
|
808
|
+
}
|
|
809
|
+
disconnectedCallback() {
|
|
810
|
+
this._$EO?.forEach((t22) => t22.hostDisconnected?.());
|
|
811
|
+
}
|
|
812
|
+
attributeChangedCallback(t22, s22, i32) {
|
|
813
|
+
this._$AK(t22, i32);
|
|
814
|
+
}
|
|
815
|
+
_$EC(t22, s22) {
|
|
816
|
+
const i32 = this.constructor.elementProperties.get(t22), e42 = this.constructor._$Eu(t22, i32);
|
|
817
|
+
if (void 0 !== e42 && true === i32.reflect) {
|
|
818
|
+
const r42 = (void 0 !== i32.converter?.toAttribute ? i32.converter : u2).toAttribute(s22, i32.type);
|
|
819
|
+
this._$Em = t22, null == r42 ? this.removeAttribute(e42) : this.setAttribute(e42, r42), this._$Em = null;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
_$AK(t22, s22) {
|
|
823
|
+
const i32 = this.constructor, e42 = i32._$Eh.get(t22);
|
|
824
|
+
if (void 0 !== e42 && this._$Em !== e42) {
|
|
825
|
+
const t32 = i32.getPropertyOptions(e42), r42 = "function" == typeof t32.converter ? { fromAttribute: t32.converter } : void 0 !== t32.converter?.fromAttribute ? t32.converter : u2;
|
|
826
|
+
this._$Em = e42, this[e42] = r42.fromAttribute(s22, t32.type), this._$Em = null;
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
requestUpdate(t22, s22, i32) {
|
|
830
|
+
if (void 0 !== t22) {
|
|
831
|
+
if (i32 ??= this.constructor.getPropertyOptions(t22), !(i32.hasChanged ?? f4)(this[t22], s22)) return;
|
|
832
|
+
this.P(t22, s22, i32);
|
|
833
|
+
}
|
|
834
|
+
false === this.isUpdatePending && (this._$ES = this._$ET());
|
|
835
|
+
}
|
|
836
|
+
P(t22, s22, i32) {
|
|
837
|
+
this._$AL.has(t22) || this._$AL.set(t22, s22), true === i32.reflect && this._$Em !== t22 && (this._$Ej ??= /* @__PURE__ */ new Set()).add(t22);
|
|
838
|
+
}
|
|
839
|
+
async _$ET() {
|
|
840
|
+
this.isUpdatePending = true;
|
|
841
|
+
try {
|
|
842
|
+
await this._$ES;
|
|
843
|
+
} catch (t32) {
|
|
844
|
+
Promise.reject(t32);
|
|
845
|
+
}
|
|
846
|
+
const t22 = this.scheduleUpdate();
|
|
847
|
+
return null != t22 && await t22, !this.isUpdatePending;
|
|
848
|
+
}
|
|
849
|
+
scheduleUpdate() {
|
|
850
|
+
return this.performUpdate();
|
|
851
|
+
}
|
|
852
|
+
performUpdate() {
|
|
853
|
+
if (!this.isUpdatePending) return;
|
|
854
|
+
if (!this.hasUpdated) {
|
|
855
|
+
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
856
|
+
for (const [t42, s3] of this._$Ep) this[t42] = s3;
|
|
857
|
+
this._$Ep = void 0;
|
|
858
|
+
}
|
|
859
|
+
const t32 = this.constructor.elementProperties;
|
|
860
|
+
if (t32.size > 0) for (const [s3, i32] of t32) true !== i32.wrapped || this._$AL.has(s3) || void 0 === this[s3] || this.P(s3, this[s3], i32);
|
|
861
|
+
}
|
|
862
|
+
let t22 = false;
|
|
863
|
+
const s22 = this._$AL;
|
|
864
|
+
try {
|
|
865
|
+
t22 = this.shouldUpdate(s22), t22 ? (this.willUpdate(s22), this._$EO?.forEach((t32) => t32.hostUpdate?.()), this.update(s22)) : this._$EU();
|
|
866
|
+
} catch (s3) {
|
|
867
|
+
throw t22 = false, this._$EU(), s3;
|
|
868
|
+
}
|
|
869
|
+
t22 && this._$AE(s22);
|
|
870
|
+
}
|
|
871
|
+
willUpdate(t22) {
|
|
872
|
+
}
|
|
873
|
+
_$AE(t22) {
|
|
874
|
+
this._$EO?.forEach((t32) => t32.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t22)), this.updated(t22);
|
|
875
|
+
}
|
|
876
|
+
_$EU() {
|
|
877
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
878
|
+
}
|
|
879
|
+
get updateComplete() {
|
|
880
|
+
return this.getUpdateComplete();
|
|
881
|
+
}
|
|
882
|
+
getUpdateComplete() {
|
|
883
|
+
return this._$ES;
|
|
884
|
+
}
|
|
885
|
+
shouldUpdate(t22) {
|
|
886
|
+
return true;
|
|
887
|
+
}
|
|
888
|
+
update(t22) {
|
|
889
|
+
this._$Ej &&= this._$Ej.forEach((t32) => this._$EC(t32, this[t32])), this._$EU();
|
|
890
|
+
}
|
|
891
|
+
updated(t22) {
|
|
892
|
+
}
|
|
893
|
+
firstUpdated(t22) {
|
|
894
|
+
}
|
|
895
|
+
};
|
|
896
|
+
b2.elementStyles = [], b2.shadowRootOptions = { mode: "open" }, b2[d2("elementProperties")] = /* @__PURE__ */ new Map(), b2[d2("finalized")] = /* @__PURE__ */ new Map(), p2?.({ ReactiveElement: b2 }), (a2.reactiveElementVersions ??= []).push("2.0.4");
|
|
897
|
+
var n32 = globalThis;
|
|
898
|
+
var c32 = n32.trustedTypes;
|
|
899
|
+
var h22 = c32 ? c32.createPolicy("lit-html", { createHTML: (t22) => t22 }) : void 0;
|
|
900
|
+
var f22 = "$lit$";
|
|
901
|
+
var v2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
|
|
902
|
+
var m2 = "?" + v2;
|
|
903
|
+
var _2 = `<${m2}>`;
|
|
904
|
+
var w2 = document;
|
|
905
|
+
var lt2 = () => w2.createComment("");
|
|
906
|
+
var st2 = (t22) => null === t22 || "object" != typeof t22 && "function" != typeof t22;
|
|
907
|
+
var g2 = Array.isArray;
|
|
908
|
+
var $2 = (t22) => g2(t22) || "function" == typeof t22?.[Symbol.iterator];
|
|
909
|
+
var x2 = "[ \n\f\r]";
|
|
910
|
+
var T2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
|
|
911
|
+
var E2 = /-->/g;
|
|
912
|
+
var k2 = />/g;
|
|
913
|
+
var O2 = RegExp(`>|${x2}(?:([^\\s"'>=/]+)(${x2}*=${x2}*(?:[^
|
|
914
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g");
|
|
915
|
+
var S22 = /'/g;
|
|
916
|
+
var j2 = /"/g;
|
|
917
|
+
var M2 = /^(?:script|style|textarea|title)$/i;
|
|
918
|
+
var P2 = (t22) => (i32, ...s22) => ({ _$litType$: t22, strings: i32, values: s22 });
|
|
919
|
+
var ke2 = P2(1);
|
|
920
|
+
var Oe2 = P2(2);
|
|
921
|
+
var Se2 = P2(3);
|
|
922
|
+
var R2 = Symbol.for("lit-noChange");
|
|
923
|
+
var D2 = Symbol.for("lit-nothing");
|
|
924
|
+
var V2 = /* @__PURE__ */ new WeakMap();
|
|
925
|
+
var I2 = w2.createTreeWalker(w2, 129);
|
|
926
|
+
function N2(t22, i32) {
|
|
927
|
+
if (!g2(t22) || !t22.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
928
|
+
return void 0 !== h22 ? h22.createHTML(i32) : i32;
|
|
929
|
+
}
|
|
930
|
+
var U2 = (t22, i32) => {
|
|
931
|
+
const s22 = t22.length - 1, e42 = [];
|
|
932
|
+
let h42, o42 = 2 === i32 ? "<svg>" : 3 === i32 ? "<math>" : "", n52 = T2;
|
|
933
|
+
for (let i4 = 0; i4 < s22; i4++) {
|
|
934
|
+
const s3 = t22[i4];
|
|
935
|
+
let r42, l22, c42 = -1, a22 = 0;
|
|
936
|
+
for (; a22 < s3.length && (n52.lastIndex = a22, l22 = n52.exec(s3), null !== l22); ) a22 = n52.lastIndex, n52 === T2 ? "!--" === l22[1] ? n52 = E2 : void 0 !== l22[1] ? n52 = k2 : void 0 !== l22[2] ? (M2.test(l22[2]) && (h42 = RegExp("</" + l22[2], "g")), n52 = O2) : void 0 !== l22[3] && (n52 = O2) : n52 === O2 ? ">" === l22[0] ? (n52 = h42 ?? T2, c42 = -1) : void 0 === l22[1] ? c42 = -2 : (c42 = n52.lastIndex - l22[2].length, r42 = l22[1], n52 = void 0 === l22[3] ? O2 : '"' === l22[3] ? j2 : S22) : n52 === j2 || n52 === S22 ? n52 = O2 : n52 === E2 || n52 === k2 ? n52 = T2 : (n52 = O2, h42 = void 0);
|
|
937
|
+
const u22 = n52 === O2 && t22[i4 + 1].startsWith("/>") ? " " : "";
|
|
938
|
+
o42 += n52 === T2 ? s3 + _2 : c42 >= 0 ? (e42.push(r42), s3.slice(0, c42) + f22 + s3.slice(c42) + v2 + u22) : s3 + v2 + (-2 === c42 ? i4 : u22);
|
|
939
|
+
}
|
|
940
|
+
return [N2(t22, o42 + (t22[s22] || "<?>") + (2 === i32 ? "</svg>" : 3 === i32 ? "</math>" : "")), e42];
|
|
941
|
+
};
|
|
942
|
+
var B2 = class _B {
|
|
943
|
+
constructor({ strings: t22, _$litType$: i32 }, s22) {
|
|
944
|
+
let e42;
|
|
945
|
+
this.parts = [];
|
|
946
|
+
let h42 = 0, o42 = 0;
|
|
947
|
+
const n52 = t22.length - 1, r42 = this.parts, [l22, a22] = U2(t22, i32);
|
|
948
|
+
if (this.el = _B.createElement(l22, s22), I2.currentNode = this.el.content, 2 === i32 || 3 === i32) {
|
|
949
|
+
const t32 = this.el.content.firstChild;
|
|
950
|
+
t32.replaceWith(...t32.childNodes);
|
|
951
|
+
}
|
|
952
|
+
for (; null !== (e42 = I2.nextNode()) && r42.length < n52; ) {
|
|
953
|
+
if (1 === e42.nodeType) {
|
|
954
|
+
if (e42.hasAttributes()) for (const t32 of e42.getAttributeNames()) if (t32.endsWith(f22)) {
|
|
955
|
+
const i4 = a22[o42++], s3 = e42.getAttribute(t32).split(v2), n6 = /([.?@])?(.*)/.exec(i4);
|
|
956
|
+
r42.push({ type: 1, index: h42, name: n6[2], strings: s3, ctor: "." === n6[1] ? Y2 : "?" === n6[1] ? Z2 : "@" === n6[1] ? q2 : G2 }), e42.removeAttribute(t32);
|
|
957
|
+
} else t32.startsWith(v2) && (r42.push({ type: 6, index: h42 }), e42.removeAttribute(t32));
|
|
958
|
+
if (M2.test(e42.tagName)) {
|
|
959
|
+
const t32 = e42.textContent.split(v2), i4 = t32.length - 1;
|
|
960
|
+
if (i4 > 0) {
|
|
961
|
+
e42.textContent = c32 ? c32.emptyScript : "";
|
|
962
|
+
for (let s3 = 0; s3 < i4; s3++) e42.append(t32[s3], lt2()), I2.nextNode(), r42.push({ type: 2, index: ++h42 });
|
|
963
|
+
e42.append(t32[i4], lt2());
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
} else if (8 === e42.nodeType) if (e42.data === m2) r42.push({ type: 2, index: h42 });
|
|
967
|
+
else {
|
|
968
|
+
let t32 = -1;
|
|
969
|
+
for (; -1 !== (t32 = e42.data.indexOf(v2, t32 + 1)); ) r42.push({ type: 7, index: h42 }), t32 += v2.length - 1;
|
|
970
|
+
}
|
|
971
|
+
h42++;
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
static createElement(t22, i32) {
|
|
975
|
+
const s22 = w2.createElement("template");
|
|
976
|
+
return s22.innerHTML = t22, s22;
|
|
977
|
+
}
|
|
978
|
+
};
|
|
979
|
+
function z2(t22, i32, s22 = t22, e42) {
|
|
980
|
+
if (i32 === R2) return i32;
|
|
981
|
+
let h42 = void 0 !== e42 ? s22.o?.[e42] : s22.l;
|
|
982
|
+
const o42 = st2(i32) ? void 0 : i32._$litDirective$;
|
|
983
|
+
return h42?.constructor !== o42 && (h42?._$AO?.(false), void 0 === o42 ? h42 = void 0 : (h42 = new o42(t22), h42._$AT(t22, s22, e42)), void 0 !== e42 ? (s22.o ??= [])[e42] = h42 : s22.l = h42), void 0 !== h42 && (i32 = z2(t22, h42._$AS(t22, i32.values), h42, e42)), i32;
|
|
984
|
+
}
|
|
985
|
+
var F2 = class {
|
|
986
|
+
constructor(t22, i32) {
|
|
987
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t22, this._$AM = i32;
|
|
988
|
+
}
|
|
989
|
+
get parentNode() {
|
|
990
|
+
return this._$AM.parentNode;
|
|
991
|
+
}
|
|
992
|
+
get _$AU() {
|
|
993
|
+
return this._$AM._$AU;
|
|
994
|
+
}
|
|
995
|
+
u(t22) {
|
|
996
|
+
const { el: { content: i32 }, parts: s22 } = this._$AD, e42 = (t22?.creationScope ?? w2).importNode(i32, true);
|
|
997
|
+
I2.currentNode = e42;
|
|
998
|
+
let h42 = I2.nextNode(), o42 = 0, n52 = 0, r42 = s22[0];
|
|
999
|
+
for (; void 0 !== r42; ) {
|
|
1000
|
+
if (o42 === r42.index) {
|
|
1001
|
+
let i4;
|
|
1002
|
+
2 === r42.type ? i4 = new et2(h42, h42.nextSibling, this, t22) : 1 === r42.type ? i4 = new r42.ctor(h42, r42.name, r42.strings, this, t22) : 6 === r42.type && (i4 = new K2(h42, this, t22)), this._$AV.push(i4), r42 = s22[++n52];
|
|
1003
|
+
}
|
|
1004
|
+
o42 !== r42?.index && (h42 = I2.nextNode(), o42++);
|
|
1005
|
+
}
|
|
1006
|
+
return I2.currentNode = w2, e42;
|
|
1007
|
+
}
|
|
1008
|
+
p(t22) {
|
|
1009
|
+
let i32 = 0;
|
|
1010
|
+
for (const s22 of this._$AV) void 0 !== s22 && (void 0 !== s22.strings ? (s22._$AI(t22, s22, i32), i32 += s22.strings.length - 2) : s22._$AI(t22[i32])), i32++;
|
|
1011
|
+
}
|
|
1012
|
+
};
|
|
1013
|
+
var et2 = class _et {
|
|
1014
|
+
get _$AU() {
|
|
1015
|
+
return this._$AM?._$AU ?? this.v;
|
|
1016
|
+
}
|
|
1017
|
+
constructor(t22, i32, s22, e42) {
|
|
1018
|
+
this.type = 2, this._$AH = D2, this._$AN = void 0, this._$AA = t22, this._$AB = i32, this._$AM = s22, this.options = e42, this.v = e42?.isConnected ?? true;
|
|
1019
|
+
}
|
|
1020
|
+
get parentNode() {
|
|
1021
|
+
let t22 = this._$AA.parentNode;
|
|
1022
|
+
const i32 = this._$AM;
|
|
1023
|
+
return void 0 !== i32 && 11 === t22?.nodeType && (t22 = i32.parentNode), t22;
|
|
1024
|
+
}
|
|
1025
|
+
get startNode() {
|
|
1026
|
+
return this._$AA;
|
|
1027
|
+
}
|
|
1028
|
+
get endNode() {
|
|
1029
|
+
return this._$AB;
|
|
1030
|
+
}
|
|
1031
|
+
_$AI(t22, i32 = this) {
|
|
1032
|
+
t22 = z2(this, t22, i32), st2(t22) ? t22 === D2 || null == t22 || "" === t22 ? (this._$AH !== D2 && this._$AR(), this._$AH = D2) : t22 !== this._$AH && t22 !== R2 && this._(t22) : void 0 !== t22._$litType$ ? this.$(t22) : void 0 !== t22.nodeType ? this.T(t22) : $2(t22) ? this.k(t22) : this._(t22);
|
|
1033
|
+
}
|
|
1034
|
+
O(t22) {
|
|
1035
|
+
return this._$AA.parentNode.insertBefore(t22, this._$AB);
|
|
1036
|
+
}
|
|
1037
|
+
T(t22) {
|
|
1038
|
+
this._$AH !== t22 && (this._$AR(), this._$AH = this.O(t22));
|
|
1039
|
+
}
|
|
1040
|
+
_(t22) {
|
|
1041
|
+
this._$AH !== D2 && st2(this._$AH) ? this._$AA.nextSibling.data = t22 : this.T(w2.createTextNode(t22)), this._$AH = t22;
|
|
1042
|
+
}
|
|
1043
|
+
$(t22) {
|
|
1044
|
+
const { values: i32, _$litType$: s22 } = t22, e42 = "number" == typeof s22 ? this._$AC(t22) : (void 0 === s22.el && (s22.el = B2.createElement(N2(s22.h, s22.h[0]), this.options)), s22);
|
|
1045
|
+
if (this._$AH?._$AD === e42) this._$AH.p(i32);
|
|
1046
|
+
else {
|
|
1047
|
+
const t32 = new F2(e42, this), s3 = t32.u(this.options);
|
|
1048
|
+
t32.p(i32), this.T(s3), this._$AH = t32;
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
_$AC(t22) {
|
|
1052
|
+
let i32 = V2.get(t22.strings);
|
|
1053
|
+
return void 0 === i32 && V2.set(t22.strings, i32 = new B2(t22)), i32;
|
|
1054
|
+
}
|
|
1055
|
+
k(t22) {
|
|
1056
|
+
g2(this._$AH) || (this._$AH = [], this._$AR());
|
|
1057
|
+
const i32 = this._$AH;
|
|
1058
|
+
let s22, e42 = 0;
|
|
1059
|
+
for (const h42 of t22) e42 === i32.length ? i32.push(s22 = new _et(this.O(lt2()), this.O(lt2()), this, this.options)) : s22 = i32[e42], s22._$AI(h42), e42++;
|
|
1060
|
+
e42 < i32.length && (this._$AR(s22 && s22._$AB.nextSibling, e42), i32.length = e42);
|
|
1061
|
+
}
|
|
1062
|
+
_$AR(t22 = this._$AA.nextSibling, i32) {
|
|
1063
|
+
for (this._$AP?.(false, true, i32); t22 && t22 !== this._$AB; ) {
|
|
1064
|
+
const i4 = t22.nextSibling;
|
|
1065
|
+
t22.remove(), t22 = i4;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
setConnected(t22) {
|
|
1069
|
+
void 0 === this._$AM && (this.v = t22, this._$AP?.(t22));
|
|
1070
|
+
}
|
|
1071
|
+
};
|
|
1072
|
+
var G2 = class {
|
|
1073
|
+
get tagName() {
|
|
1074
|
+
return this.element.tagName;
|
|
1075
|
+
}
|
|
1076
|
+
get _$AU() {
|
|
1077
|
+
return this._$AM._$AU;
|
|
1078
|
+
}
|
|
1079
|
+
constructor(t22, i32, s22, e42, h42) {
|
|
1080
|
+
this.type = 1, this._$AH = D2, this._$AN = void 0, this.element = t22, this.name = i32, this._$AM = e42, this.options = h42, s22.length > 2 || "" !== s22[0] || "" !== s22[1] ? (this._$AH = Array(s22.length - 1).fill(new String()), this.strings = s22) : this._$AH = D2;
|
|
1081
|
+
}
|
|
1082
|
+
_$AI(t22, i32 = this, s22, e42) {
|
|
1083
|
+
const h42 = this.strings;
|
|
1084
|
+
let o42 = false;
|
|
1085
|
+
if (void 0 === h42) t22 = z2(this, t22, i32, 0), o42 = !st2(t22) || t22 !== this._$AH && t22 !== R2, o42 && (this._$AH = t22);
|
|
1086
|
+
else {
|
|
1087
|
+
const e52 = t22;
|
|
1088
|
+
let n52, r42;
|
|
1089
|
+
for (t22 = h42[0], n52 = 0; n52 < h42.length - 1; n52++) r42 = z2(this, e52[s22 + n52], i32, n52), r42 === R2 && (r42 = this._$AH[n52]), o42 ||= !st2(r42) || r42 !== this._$AH[n52], r42 === D2 ? t22 = D2 : t22 !== D2 && (t22 += (r42 ?? "") + h42[n52 + 1]), this._$AH[n52] = r42;
|
|
1090
|
+
}
|
|
1091
|
+
o42 && !e42 && this.j(t22);
|
|
1092
|
+
}
|
|
1093
|
+
j(t22) {
|
|
1094
|
+
t22 === D2 ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t22 ?? "");
|
|
1095
|
+
}
|
|
1096
|
+
};
|
|
1097
|
+
var Y2 = class extends G2 {
|
|
1098
|
+
constructor() {
|
|
1099
|
+
super(...arguments), this.type = 3;
|
|
1100
|
+
}
|
|
1101
|
+
j(t22) {
|
|
1102
|
+
this.element[this.name] = t22 === D2 ? void 0 : t22;
|
|
1103
|
+
}
|
|
1104
|
+
};
|
|
1105
|
+
var Z2 = class extends G2 {
|
|
1106
|
+
constructor() {
|
|
1107
|
+
super(...arguments), this.type = 4;
|
|
1108
|
+
}
|
|
1109
|
+
j(t22) {
|
|
1110
|
+
this.element.toggleAttribute(this.name, !!t22 && t22 !== D2);
|
|
1111
|
+
}
|
|
1112
|
+
};
|
|
1113
|
+
var q2 = class extends G2 {
|
|
1114
|
+
constructor(t22, i32, s22, e42, h42) {
|
|
1115
|
+
super(t22, i32, s22, e42, h42), this.type = 5;
|
|
1116
|
+
}
|
|
1117
|
+
_$AI(t22, i32 = this) {
|
|
1118
|
+
if ((t22 = z2(this, t22, i32, 0) ?? D2) === R2) return;
|
|
1119
|
+
const s22 = this._$AH, e42 = t22 === D2 && s22 !== D2 || t22.capture !== s22.capture || t22.once !== s22.once || t22.passive !== s22.passive, h42 = t22 !== D2 && (s22 === D2 || e42);
|
|
1120
|
+
e42 && this.element.removeEventListener(this.name, this, s22), h42 && this.element.addEventListener(this.name, this, t22), this._$AH = t22;
|
|
1121
|
+
}
|
|
1122
|
+
handleEvent(t22) {
|
|
1123
|
+
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t22) : this._$AH.handleEvent(t22);
|
|
1124
|
+
}
|
|
1125
|
+
};
|
|
1126
|
+
var K2 = class {
|
|
1127
|
+
constructor(t22, i32, s22) {
|
|
1128
|
+
this.element = t22, this.type = 6, this._$AN = void 0, this._$AM = i32, this.options = s22;
|
|
1129
|
+
}
|
|
1130
|
+
get _$AU() {
|
|
1131
|
+
return this._$AM._$AU;
|
|
1132
|
+
}
|
|
1133
|
+
_$AI(t22) {
|
|
1134
|
+
z2(this, t22);
|
|
1135
|
+
}
|
|
1136
|
+
};
|
|
1137
|
+
var Re2 = n32.litHtmlPolyfillSupport;
|
|
1138
|
+
Re2?.(B2, et2), (n32.litHtmlVersions ??= []).push("3.2.0");
|
|
1139
|
+
var Q2 = (t22, i32, s22) => {
|
|
1140
|
+
const e42 = s22?.renderBefore ?? i32;
|
|
1141
|
+
let h42 = e42._$litPart$;
|
|
1142
|
+
if (void 0 === h42) {
|
|
1143
|
+
const t32 = s22?.renderBefore ?? null;
|
|
1144
|
+
e42._$litPart$ = h42 = new et2(i32.insertBefore(lt2(), t32), t32, void 0, s22 ?? {});
|
|
1145
|
+
}
|
|
1146
|
+
return h42._$AI(t22), h42;
|
|
42
1147
|
};
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
1148
|
+
var h32 = class extends b2 {
|
|
1149
|
+
constructor() {
|
|
1150
|
+
super(...arguments), this.renderOptions = { host: this }, this.o = void 0;
|
|
1151
|
+
}
|
|
1152
|
+
createRenderRoot() {
|
|
1153
|
+
const t22 = super.createRenderRoot();
|
|
1154
|
+
return this.renderOptions.renderBefore ??= t22.firstChild, t22;
|
|
1155
|
+
}
|
|
1156
|
+
update(t22) {
|
|
1157
|
+
const e42 = this.render();
|
|
1158
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t22), this.o = Q2(e42, this.renderRoot, this.renderOptions);
|
|
1159
|
+
}
|
|
1160
|
+
connectedCallback() {
|
|
1161
|
+
super.connectedCallback(), this.o?.setConnected(true);
|
|
1162
|
+
}
|
|
1163
|
+
disconnectedCallback() {
|
|
1164
|
+
super.disconnectedCallback(), this.o?.setConnected(false);
|
|
1165
|
+
}
|
|
1166
|
+
render() {
|
|
1167
|
+
return R2;
|
|
1168
|
+
}
|
|
1169
|
+
};
|
|
1170
|
+
h32._$litElement$ = true, h32["finalized"] = true, globalThis.litElementHydrateSupport?.({ LitElement: h32 });
|
|
1171
|
+
var f32 = globalThis.litElementPolyfillSupport;
|
|
1172
|
+
f32?.({ LitElement: h32 });
|
|
1173
|
+
(globalThis.litElementVersions ??= []).push("4.1.0");
|
|
1174
|
+
var o32 = { attribute: true, type: String, converter: u2, reflect: false, hasChanged: f4 };
|
|
1175
|
+
var r32 = (t22 = o32, e42, r42) => {
|
|
1176
|
+
const { kind: n52, metadata: i32 } = r42;
|
|
1177
|
+
let s22 = globalThis.litPropertyMetadata.get(i32);
|
|
1178
|
+
if (void 0 === s22 && globalThis.litPropertyMetadata.set(i32, s22 = /* @__PURE__ */ new Map()), s22.set(r42.name, t22), "accessor" === n52) {
|
|
1179
|
+
const { name: o42 } = r42;
|
|
1180
|
+
return { set(r52) {
|
|
1181
|
+
const n6 = e42.get.call(this);
|
|
1182
|
+
e42.set.call(this, r52), this.requestUpdate(o42, n6, t22);
|
|
1183
|
+
}, init(e52) {
|
|
1184
|
+
return void 0 !== e52 && this.P(o42, void 0, t22), e52;
|
|
1185
|
+
} };
|
|
1186
|
+
}
|
|
1187
|
+
if ("setter" === n52) {
|
|
1188
|
+
const { name: o42 } = r42;
|
|
1189
|
+
return function(r52) {
|
|
1190
|
+
const n6 = this[o42];
|
|
1191
|
+
e42.call(this, r52), this.requestUpdate(o42, n6, t22);
|
|
1192
|
+
};
|
|
1193
|
+
}
|
|
1194
|
+
throw Error("Unsupported decorator location: " + n52);
|
|
1195
|
+
};
|
|
1196
|
+
function n42(t22) {
|
|
1197
|
+
return (e42, o42) => "object" == typeof o42 ? r32(t22, e42, o42) : ((t32, e52, o5) => {
|
|
1198
|
+
const r42 = e52.hasOwnProperty(o5);
|
|
1199
|
+
return e52.constructor.createProperty(o5, r42 ? { ...t32, wrapped: true } : t32), r42 ? Object.getOwnPropertyDescriptor(e52, o5) : void 0;
|
|
1200
|
+
})(t22, e42, o42);
|
|
1201
|
+
}
|
|
1202
|
+
var appliedClassMixins = /* @__PURE__ */ new WeakMap();
|
|
1203
|
+
function wasMixinPreviouslyApplied(mixin, superClass) {
|
|
1204
|
+
let klass = superClass;
|
|
1205
|
+
while (klass) {
|
|
1206
|
+
if (appliedClassMixins.get(klass) === mixin) {
|
|
1207
|
+
return true;
|
|
1208
|
+
}
|
|
1209
|
+
klass = Object.getPrototypeOf(klass);
|
|
1210
|
+
}
|
|
1211
|
+
return false;
|
|
1212
|
+
}
|
|
1213
|
+
function dedupeMixin(mixin) {
|
|
1214
|
+
return (superClass) => {
|
|
1215
|
+
if (wasMixinPreviouslyApplied(mixin, superClass)) {
|
|
1216
|
+
return superClass;
|
|
1217
|
+
}
|
|
1218
|
+
const mixedClass = mixin(superClass);
|
|
1219
|
+
appliedClassMixins.set(mixedClass, mixin);
|
|
1220
|
+
return mixedClass;
|
|
1221
|
+
};
|
|
1222
|
+
}
|
|
1223
|
+
var version = "3.0.0";
|
|
1224
|
+
var versions = window.scopedElementsVersions || (window.scopedElementsVersions = []);
|
|
1225
|
+
if (!versions.includes(version)) {
|
|
1226
|
+
versions.push(version);
|
|
1227
|
+
}
|
|
1228
|
+
var ScopedElementsMixinImplementation = (superclass) => (
|
|
1229
|
+
/** @type {ScopedElementsHost} */
|
|
1230
|
+
class ScopedElementsHost extends superclass {
|
|
1231
|
+
/**
|
|
1232
|
+
* Obtains the scoped elements definitions map if specified.
|
|
1233
|
+
*
|
|
1234
|
+
* @type {ScopedElementsMap=}
|
|
1235
|
+
*/
|
|
1236
|
+
static scopedElements;
|
|
1237
|
+
static get scopedElementsVersion() {
|
|
1238
|
+
return version;
|
|
1239
|
+
}
|
|
1240
|
+
/** @type {CustomElementRegistry=} */
|
|
1241
|
+
static __registry;
|
|
1242
|
+
/**
|
|
1243
|
+
* Obtains the CustomElementRegistry associated to the ShadowRoot.
|
|
1244
|
+
*
|
|
1245
|
+
* @returns {CustomElementRegistry=}
|
|
1246
|
+
*/
|
|
1247
|
+
get registry() {
|
|
1248
|
+
return (
|
|
1249
|
+
/** @type {typeof ScopedElementsHost} */
|
|
1250
|
+
this.constructor.__registry
|
|
1251
|
+
);
|
|
1252
|
+
}
|
|
1253
|
+
/**
|
|
1254
|
+
* Set the CustomElementRegistry associated to the ShadowRoot
|
|
1255
|
+
*
|
|
1256
|
+
* @param {CustomElementRegistry} registry
|
|
1257
|
+
*/
|
|
1258
|
+
set registry(registry2) {
|
|
1259
|
+
this.constructor.__registry = registry2;
|
|
1260
|
+
}
|
|
1261
|
+
/**
|
|
1262
|
+
* @param {ShadowRootInit} options
|
|
1263
|
+
* @returns {ShadowRoot}
|
|
1264
|
+
*/
|
|
1265
|
+
attachShadow(options) {
|
|
1266
|
+
const { scopedElements } = (
|
|
1267
|
+
/** @type {typeof ScopedElementsHost} */
|
|
1268
|
+
this.constructor
|
|
1269
|
+
);
|
|
1270
|
+
const shouldCreateRegistry = !this.registry || // @ts-ignore
|
|
1271
|
+
this.registry === this.constructor.__registry && !Object.prototype.hasOwnProperty.call(this.constructor, "__registry");
|
|
1272
|
+
if (shouldCreateRegistry) {
|
|
1273
|
+
this.registry = new CustomElementRegistry();
|
|
1274
|
+
for (const [tagName, klass] of Object.entries(scopedElements ?? {})) {
|
|
1275
|
+
this.registry.define(tagName, klass);
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
return super.attachShadow({
|
|
1279
|
+
...options,
|
|
1280
|
+
// The polyfill currently expects the registry to be passed as `customElements`
|
|
1281
|
+
customElements: this.registry,
|
|
1282
|
+
// But the proposal has moved forward, and renamed it to `registry`
|
|
1283
|
+
// For backwards compatibility, we pass it as both
|
|
1284
|
+
registry: this.registry
|
|
1285
|
+
});
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
);
|
|
1289
|
+
var ScopedElementsMixin = dedupeMixin(ScopedElementsMixinImplementation);
|
|
1290
|
+
var ScopedElementsMixinImplementation2 = (superclass) => (
|
|
1291
|
+
/** @type {ScopedElementsHost} */
|
|
1292
|
+
class ScopedElementsHost extends ScopedElementsMixin(superclass) {
|
|
1293
|
+
createRenderRoot() {
|
|
1294
|
+
const { shadowRootOptions, elementStyles } = (
|
|
1295
|
+
/** @type {TypeofLitElement} */
|
|
1296
|
+
this.constructor
|
|
1297
|
+
);
|
|
1298
|
+
const shadowRoot = this.attachShadow(shadowRootOptions);
|
|
1299
|
+
this.renderOptions.creationScope = shadowRoot;
|
|
1300
|
+
S3(shadowRoot, elementStyles);
|
|
1301
|
+
this.renderOptions.renderBefore ??= shadowRoot.firstChild;
|
|
1302
|
+
return shadowRoot;
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
);
|
|
1306
|
+
var ScopedElementsMixin2 = dedupeMixin(ScopedElementsMixinImplementation2);
|
|
1307
|
+
function action(decl) {
|
|
1308
|
+
return (target, context) => {
|
|
1309
|
+
function init() {
|
|
1310
|
+
this.constructor["actions"] = { ...this.constructor["actions"], [context.name]: decl };
|
|
1311
|
+
}
|
|
1312
|
+
context.addInitializer(init);
|
|
1313
|
+
function func(...args) {
|
|
1314
|
+
this._inTransaction = true;
|
|
1315
|
+
try {
|
|
1316
|
+
return target.apply(this, args);
|
|
1317
|
+
} finally {
|
|
1318
|
+
this._inTransaction = false;
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
if (context.kind === "method") {
|
|
1322
|
+
return func;
|
|
1323
|
+
} else {
|
|
1324
|
+
context.access.set(this, func);
|
|
1325
|
+
}
|
|
1326
|
+
};
|
|
1327
|
+
}
|
|
1328
|
+
var _lang_dec;
|
|
1329
|
+
var _contentEditable_dec;
|
|
1330
|
+
var _a;
|
|
1331
|
+
var _init;
|
|
1332
|
+
var _contentEditable;
|
|
1333
|
+
var _lang;
|
|
1334
|
+
var LitElementWw = class extends (_a = ScopedElementsMixin2(h32), _contentEditable_dec = [n42({ type: String, attribute: true, reflect: true })], _lang_dec = [n42({ type: String, attribute: true, reflect: true })], _a) {
|
|
1335
|
+
constructor() {
|
|
1336
|
+
super(...arguments);
|
|
1337
|
+
__publicField2(this, "options");
|
|
1338
|
+
__publicField2(this, "actions", {});
|
|
1339
|
+
__privateAdd2(this, _contentEditable, __runInitializers2(_init, 8, this)), __runInitializers2(_init, 11, this);
|
|
1340
|
+
__privateAdd2(this, _lang, __runInitializers2(_init, 12, this)), __runInitializers2(_init, 15, this);
|
|
1341
|
+
__publicField2(this, "_inTransaction", false);
|
|
1342
|
+
}
|
|
1343
|
+
connectedCallback() {
|
|
1344
|
+
super.connectedCallback();
|
|
1345
|
+
this.getAttributeNames().forEach((k22) => this.setAttribute(k22, this.getAttribute(k22)));
|
|
1346
|
+
}
|
|
1347
|
+
};
|
|
1348
|
+
_init = __decoratorStart2(_a);
|
|
1349
|
+
_contentEditable = /* @__PURE__ */ new WeakMap();
|
|
1350
|
+
_lang = /* @__PURE__ */ new WeakMap();
|
|
1351
|
+
__decorateElement2(_init, 4, "contentEditable", _contentEditable_dec, LitElementWw, _contentEditable);
|
|
1352
|
+
__decorateElement2(_init, 4, "lang", _lang_dec, LitElementWw, _lang);
|
|
1353
|
+
__decoratorMetadata2(_init, LitElementWw);
|
|
1354
|
+
__publicField2(LitElementWw, "shadowRootOptions", { ...h32.shadowRootOptions });
|
|
1355
|
+
__publicField2(LitElementWw, "options", {});
|
|
1356
|
+
__publicField2(LitElementWw, "actions", {});
|
|
1357
|
+
|
|
1358
|
+
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/custom-element.js
|
|
1359
|
+
var t3 = (t6) => (e7, o5) => {
|
|
1360
|
+
void 0 !== o5 ? o5.addInitializer(() => {
|
|
1361
|
+
customElements.define(t6, e7);
|
|
1362
|
+
}) : customElements.define(t6, e7);
|
|
1363
|
+
};
|
|
1364
|
+
|
|
1365
|
+
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/property.js
|
|
1366
|
+
var o4 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
|
|
1367
|
+
var r4 = (t6 = o4, e7, r6) => {
|
|
1368
|
+
const { kind: n6, metadata: i4 } = r6;
|
|
1369
|
+
let s3 = globalThis.litPropertyMetadata.get(i4);
|
|
1370
|
+
if (void 0 === s3 && globalThis.litPropertyMetadata.set(i4, s3 = /* @__PURE__ */ new Map()), s3.set(r6.name, t6), "accessor" === n6) {
|
|
1371
|
+
const { name: o5 } = r6;
|
|
1372
|
+
return { set(r7) {
|
|
1373
|
+
const n7 = e7.get.call(this);
|
|
1374
|
+
e7.set.call(this, r7), this.requestUpdate(o5, n7, t6);
|
|
1375
|
+
}, init(e8) {
|
|
1376
|
+
return void 0 !== e8 && this.P(o5, void 0, t6), e8;
|
|
1377
|
+
} };
|
|
1378
|
+
}
|
|
1379
|
+
if ("setter" === n6) {
|
|
1380
|
+
const { name: o5 } = r6;
|
|
1381
|
+
return function(r7) {
|
|
1382
|
+
const n7 = this[o5];
|
|
1383
|
+
e7.call(this, r7), this.requestUpdate(o5, n7, t6);
|
|
1384
|
+
};
|
|
1385
|
+
}
|
|
1386
|
+
throw Error("Unsupported decorator location: " + n6);
|
|
1387
|
+
};
|
|
1388
|
+
function n5(t6) {
|
|
1389
|
+
return (e7, o5) => "object" == typeof o5 ? r4(t6, e7, o5) : ((t7, e8, o6) => {
|
|
1390
|
+
const r6 = e8.hasOwnProperty(o6);
|
|
1391
|
+
return e8.constructor.createProperty(o6, r6 ? { ...t7, wrapped: true } : t7), r6 ? Object.getOwnPropertyDescriptor(e8, o6) : void 0;
|
|
1392
|
+
})(t6, e7, o5);
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/state.js
|
|
1396
|
+
function r5(r6) {
|
|
1397
|
+
return n5({ ...r6, state: true, attribute: false });
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/event-options.js
|
|
1401
|
+
function t4(t6) {
|
|
1402
|
+
return (n6, o5) => {
|
|
1403
|
+
const c5 = "function" == typeof n6 ? n6 : n6[o5];
|
|
1404
|
+
Object.assign(c5, t6);
|
|
1405
|
+
};
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/base.js
|
|
1409
|
+
var e4 = (e7, t6, c5) => (c5.configurable = true, c5.enumerable = true, Reflect.decorate && "object" != typeof t6 && Object.defineProperty(e7, t6, c5), c5);
|
|
1410
|
+
|
|
1411
|
+
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/query.js
|
|
1412
|
+
function e5(e7, r6) {
|
|
1413
|
+
return (n6, s3, i4) => {
|
|
1414
|
+
const o5 = (t6) => t6.renderRoot?.querySelector(e7) ?? null;
|
|
1415
|
+
if (r6) {
|
|
1416
|
+
const { get: e8, set: r7 } = "object" == typeof s3 ? n6 : i4 ?? (() => {
|
|
1417
|
+
const t6 = Symbol();
|
|
1418
|
+
return { get() {
|
|
1419
|
+
return this[t6];
|
|
1420
|
+
}, set(e9) {
|
|
1421
|
+
this[t6] = e9;
|
|
1422
|
+
} };
|
|
1423
|
+
})();
|
|
1424
|
+
return e4(n6, s3, { get() {
|
|
1425
|
+
let t6 = e8.call(this);
|
|
1426
|
+
return void 0 === t6 && (t6 = o5(this), (null !== t6 || this.hasUpdated) && r7.call(this, t6)), t6;
|
|
1427
|
+
} });
|
|
1428
|
+
}
|
|
1429
|
+
return e4(n6, s3, { get() {
|
|
1430
|
+
return o5(this);
|
|
1431
|
+
} });
|
|
1432
|
+
};
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
// ../../node_modules/lit/node_modules/lit-html/directive.js
|
|
1436
|
+
var t5 = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 };
|
|
1437
|
+
var e6 = (t6) => (...e7) => ({ _$litDirective$: t6, values: e7 });
|
|
1438
|
+
var i3 = class {
|
|
1439
|
+
constructor(t6) {
|
|
1440
|
+
}
|
|
1441
|
+
get _$AU() {
|
|
1442
|
+
return this._$AM._$AU;
|
|
1443
|
+
}
|
|
1444
|
+
_$AT(t6, e7, i4) {
|
|
1445
|
+
this.t = t6, this._$AM = e7, this.i = i4;
|
|
1446
|
+
}
|
|
1447
|
+
_$AS(t6, e7) {
|
|
1448
|
+
return this.update(t6, e7);
|
|
1449
|
+
}
|
|
1450
|
+
update(t6, e7) {
|
|
1451
|
+
return this.render(...e7);
|
|
1452
|
+
}
|
|
1453
|
+
};
|
|
1454
|
+
|
|
1455
|
+
// ../../node_modules/lit/node_modules/lit-html/directives/style-map.js
|
|
1456
|
+
var ee = "important";
|
|
1457
|
+
var ie = " !" + ee;
|
|
1458
|
+
var se = e6(class extends i3 {
|
|
1459
|
+
constructor(e7) {
|
|
1460
|
+
if (super(e7), e7.type !== t5.ATTRIBUTE || "style" !== e7.name || e7.strings?.length > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
1461
|
+
}
|
|
1462
|
+
render(t6) {
|
|
1463
|
+
return Object.keys(t6).reduce((e7, r6) => {
|
|
1464
|
+
const s3 = t6[r6];
|
|
1465
|
+
return null == s3 ? e7 : e7 + `${r6 = r6.includes("-") ? r6 : r6.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s3};`;
|
|
1466
|
+
}, "");
|
|
1467
|
+
}
|
|
1468
|
+
update(t6, [e7]) {
|
|
1469
|
+
const { style: r6 } = t6.element;
|
|
1470
|
+
if (void 0 === this.ft) return this.ft = new Set(Object.keys(e7)), this.render(e7);
|
|
1471
|
+
for (const t7 of this.ft) null == e7[t7] && (this.ft.delete(t7), t7.includes("-") ? r6.removeProperty(t7) : r6[t7] = null);
|
|
1472
|
+
for (const t7 in e7) {
|
|
1473
|
+
const s3 = e7[t7];
|
|
1474
|
+
if (null != s3) {
|
|
1475
|
+
this.ft.add(t7);
|
|
1476
|
+
const e8 = "string" == typeof s3 && s3.endsWith(ie);
|
|
1477
|
+
t7.includes("-") || e8 ? r6.setProperty(t7, e8 ? s3.slice(0, -11) : s3, e8 ? ee : "") : r6[t7] = s3;
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
return R;
|
|
1481
|
+
}
|
|
1482
|
+
});
|
|
1483
|
+
|
|
1484
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.6I2T3DLI.js
|
|
1485
|
+
var icon_button_styles_default = i`
|
|
1486
|
+
:host {
|
|
1487
|
+
display: inline-block;
|
|
1488
|
+
color: var(--sl-color-neutral-600);
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
.icon-button {
|
|
1492
|
+
flex: 0 0 auto;
|
|
1493
|
+
display: flex;
|
|
1494
|
+
align-items: center;
|
|
1495
|
+
background: none;
|
|
1496
|
+
border: none;
|
|
1497
|
+
border-radius: var(--sl-border-radius-medium);
|
|
1498
|
+
font-size: inherit;
|
|
1499
|
+
color: inherit;
|
|
1500
|
+
padding: var(--sl-spacing-x-small);
|
|
1501
|
+
cursor: pointer;
|
|
1502
|
+
transition: var(--sl-transition-x-fast) color;
|
|
1503
|
+
-webkit-appearance: none;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
.icon-button:hover:not(.icon-button--disabled),
|
|
1507
|
+
.icon-button:focus-visible:not(.icon-button--disabled) {
|
|
1508
|
+
color: var(--sl-color-primary-600);
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
.icon-button:active:not(.icon-button--disabled) {
|
|
1512
|
+
color: var(--sl-color-primary-700);
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
.icon-button:focus {
|
|
1516
|
+
outline: none;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
.icon-button--disabled {
|
|
1520
|
+
opacity: 0.5;
|
|
1521
|
+
cursor: not-allowed;
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
.icon-button:focus-visible {
|
|
1525
|
+
outline: var(--sl-focus-ring);
|
|
1526
|
+
outline-offset: var(--sl-focus-ring-offset);
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
.icon-button__icon {
|
|
1530
|
+
pointer-events: none;
|
|
1531
|
+
}
|
|
1532
|
+
`;
|
|
1533
|
+
|
|
1534
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3Y6SB6QS.js
|
|
1535
|
+
var basePath = "";
|
|
1536
|
+
function setBasePath(path) {
|
|
1537
|
+
basePath = path;
|
|
1538
|
+
}
|
|
1539
|
+
function getBasePath(subpath = "") {
|
|
1540
|
+
if (!basePath) {
|
|
1541
|
+
const scripts = [...document.getElementsByTagName("script")];
|
|
1542
|
+
const configScript = scripts.find((script) => script.hasAttribute("data-shoelace"));
|
|
1543
|
+
if (configScript) {
|
|
1544
|
+
setBasePath(configScript.getAttribute("data-shoelace"));
|
|
1545
|
+
} else {
|
|
1546
|
+
const fallbackScript = scripts.find((s3) => {
|
|
1547
|
+
return /shoelace(\.min)?\.js($|\?)/.test(s3.src) || /shoelace-autoloader(\.min)?\.js($|\?)/.test(s3.src);
|
|
1548
|
+
});
|
|
1549
|
+
let path = "";
|
|
1550
|
+
if (fallbackScript) {
|
|
1551
|
+
path = fallbackScript.getAttribute("src");
|
|
1552
|
+
}
|
|
1553
|
+
setBasePath(path.split("/").slice(0, -1).join("/"));
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
return basePath.replace(/\/$/, "") + (subpath ? `/${subpath.replace(/^\//, "")}` : ``);
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.P7ZG6EMR.js
|
|
1560
|
+
var library = {
|
|
1561
|
+
name: "default",
|
|
1562
|
+
resolver: (name) => getBasePath(`assets/icons/${name}.svg`)
|
|
1563
|
+
};
|
|
1564
|
+
var library_default_default = library;
|
|
1565
|
+
|
|
1566
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3TFKS637.js
|
|
1567
|
+
var icons = {
|
|
1568
|
+
caret: `
|
|
1569
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
1570
|
+
<polyline points="6 9 12 15 18 9"></polyline>
|
|
1571
|
+
</svg>
|
|
1572
|
+
`,
|
|
1573
|
+
check: `
|
|
1574
|
+
<svg part="checked-icon" class="checkbox__icon" viewBox="0 0 16 16">
|
|
1575
|
+
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
|
|
1576
|
+
<g stroke="currentColor">
|
|
1577
|
+
<g transform="translate(3.428571, 3.428571)">
|
|
1578
|
+
<path d="M0,5.71428571 L3.42857143,9.14285714"></path>
|
|
1579
|
+
<path d="M9.14285714,0 L3.42857143,9.14285714"></path>
|
|
1580
|
+
</g>
|
|
1581
|
+
</g>
|
|
1582
|
+
</g>
|
|
1583
|
+
</svg>
|
|
1584
|
+
`,
|
|
1585
|
+
"chevron-down": `
|
|
1586
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">
|
|
1587
|
+
<path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>
|
|
1588
|
+
</svg>
|
|
1589
|
+
`,
|
|
1590
|
+
"chevron-left": `
|
|
1591
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16">
|
|
1592
|
+
<path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/>
|
|
1593
|
+
</svg>
|
|
1594
|
+
`,
|
|
1595
|
+
"chevron-right": `
|
|
1596
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
|
|
1597
|
+
<path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/>
|
|
1598
|
+
</svg>
|
|
1599
|
+
`,
|
|
1600
|
+
copy: `
|
|
1601
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-copy" viewBox="0 0 16 16">
|
|
1602
|
+
<path fill-rule="evenodd" d="M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V2Zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H6ZM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1H2Z"/>
|
|
1603
|
+
</svg>
|
|
1604
|
+
`,
|
|
1605
|
+
eye: `
|
|
1606
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16">
|
|
1607
|
+
<path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"/>
|
|
1608
|
+
<path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"/>
|
|
1609
|
+
</svg>
|
|
1610
|
+
`,
|
|
1611
|
+
"eye-slash": `
|
|
1612
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye-slash" viewBox="0 0 16 16">
|
|
1613
|
+
<path d="M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z"/>
|
|
1614
|
+
<path d="M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z"/>
|
|
1615
|
+
<path d="M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12-.708.708z"/>
|
|
1616
|
+
</svg>
|
|
1617
|
+
`,
|
|
1618
|
+
eyedropper: `
|
|
1619
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eyedropper" viewBox="0 0 16 16">
|
|
1620
|
+
<path d="M13.354.646a1.207 1.207 0 0 0-1.708 0L8.5 3.793l-.646-.647a.5.5 0 1 0-.708.708L8.293 5l-7.147 7.146A.5.5 0 0 0 1 12.5v1.793l-.854.853a.5.5 0 1 0 .708.707L1.707 15H3.5a.5.5 0 0 0 .354-.146L11 7.707l1.146 1.147a.5.5 0 0 0 .708-.708l-.647-.646 3.147-3.146a1.207 1.207 0 0 0 0-1.708l-2-2zM2 12.707l7-7L10.293 7l-7 7H2v-1.293z"></path>
|
|
1621
|
+
</svg>
|
|
1622
|
+
`,
|
|
1623
|
+
"grip-vertical": `
|
|
1624
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-grip-vertical" viewBox="0 0 16 16">
|
|
1625
|
+
<path d="M7 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"></path>
|
|
1626
|
+
</svg>
|
|
1627
|
+
`,
|
|
1628
|
+
indeterminate: `
|
|
1629
|
+
<svg part="indeterminate-icon" class="checkbox__icon" viewBox="0 0 16 16">
|
|
1630
|
+
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
|
|
1631
|
+
<g stroke="currentColor" stroke-width="2">
|
|
1632
|
+
<g transform="translate(2.285714, 6.857143)">
|
|
1633
|
+
<path d="M10.2857143,1.14285714 L1.14285714,1.14285714"></path>
|
|
1634
|
+
</g>
|
|
1635
|
+
</g>
|
|
1636
|
+
</g>
|
|
1637
|
+
</svg>
|
|
1638
|
+
`,
|
|
1639
|
+
"person-fill": `
|
|
1640
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16">
|
|
1641
|
+
<path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>
|
|
1642
|
+
</svg>
|
|
1643
|
+
`,
|
|
1644
|
+
"play-fill": `
|
|
1645
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-play-fill" viewBox="0 0 16 16">
|
|
1646
|
+
<path d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z"></path>
|
|
1647
|
+
</svg>
|
|
1648
|
+
`,
|
|
1649
|
+
"pause-fill": `
|
|
1650
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pause-fill" viewBox="0 0 16 16">
|
|
1651
|
+
<path d="M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5zm5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5z"></path>
|
|
1652
|
+
</svg>
|
|
1653
|
+
`,
|
|
1654
|
+
radio: `
|
|
1655
|
+
<svg part="checked-icon" class="radio__icon" viewBox="0 0 16 16">
|
|
1656
|
+
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
1657
|
+
<g fill="currentColor">
|
|
1658
|
+
<circle cx="8" cy="8" r="3.42857143"></circle>
|
|
1659
|
+
</g>
|
|
1660
|
+
</g>
|
|
1661
|
+
</svg>
|
|
1662
|
+
`,
|
|
1663
|
+
"star-fill": `
|
|
1664
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">
|
|
1665
|
+
<path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"/>
|
|
1666
|
+
</svg>
|
|
1667
|
+
`,
|
|
1668
|
+
"x-lg": `
|
|
1669
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">
|
|
1670
|
+
<path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"/>
|
|
1671
|
+
</svg>
|
|
1672
|
+
`,
|
|
1673
|
+
"x-circle-fill": `
|
|
1674
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle-fill" viewBox="0 0 16 16">
|
|
1675
|
+
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"></path>
|
|
1676
|
+
</svg>
|
|
1677
|
+
`
|
|
1678
|
+
};
|
|
1679
|
+
var systemLibrary = {
|
|
1680
|
+
name: "system",
|
|
1681
|
+
resolver: (name) => {
|
|
1682
|
+
if (name in icons) {
|
|
1683
|
+
return `data:image/svg+xml,${encodeURIComponent(icons[name])}`;
|
|
1684
|
+
}
|
|
1685
|
+
return "";
|
|
1686
|
+
}
|
|
1687
|
+
};
|
|
1688
|
+
var library_system_default = systemLibrary;
|
|
1689
|
+
|
|
1690
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ZL53POKZ.js
|
|
1691
|
+
var registry = [library_default_default, library_system_default];
|
|
1692
|
+
var watchedIcons = [];
|
|
1693
|
+
function watchIcon(icon) {
|
|
1694
|
+
watchedIcons.push(icon);
|
|
1695
|
+
}
|
|
1696
|
+
function unwatchIcon(icon) {
|
|
1697
|
+
watchedIcons = watchedIcons.filter((el) => el !== icon);
|
|
1698
|
+
}
|
|
1699
|
+
function getIconLibrary(name) {
|
|
1700
|
+
return registry.find((lib) => lib.name === name);
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.QLXRCYS4.js
|
|
1704
|
+
var icon_styles_default = i`
|
|
1705
|
+
:host {
|
|
1706
|
+
display: inline-block;
|
|
1707
|
+
width: 1em;
|
|
1708
|
+
height: 1em;
|
|
1709
|
+
box-sizing: content-box !important;
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
svg {
|
|
1713
|
+
display: block;
|
|
1714
|
+
height: 100%;
|
|
1715
|
+
width: 100%;
|
|
1716
|
+
}
|
|
1717
|
+
`;
|
|
1718
|
+
|
|
1719
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.B3BW2AY6.js
|
|
1720
|
+
var __defProp3 = Object.defineProperty;
|
|
1721
|
+
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
|
1722
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
1723
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1724
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
1725
|
+
var __defNormalProp3 = (obj, key, value) => key in obj ? __defProp3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1726
|
+
var __spreadValues = (a3, b3) => {
|
|
1727
|
+
for (var prop in b3 || (b3 = {}))
|
|
1728
|
+
if (__hasOwnProp.call(b3, prop))
|
|
1729
|
+
__defNormalProp3(a3, prop, b3[prop]);
|
|
1730
|
+
if (__getOwnPropSymbols)
|
|
1731
|
+
for (var prop of __getOwnPropSymbols(b3)) {
|
|
1732
|
+
if (__propIsEnum.call(b3, prop))
|
|
1733
|
+
__defNormalProp3(a3, prop, b3[prop]);
|
|
1734
|
+
}
|
|
1735
|
+
return a3;
|
|
1736
|
+
};
|
|
1737
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
1738
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc3(target, key) : target;
|
|
1739
|
+
for (var i4 = decorators.length - 1, decorator; i4 >= 0; i4--)
|
|
1740
|
+
if (decorator = decorators[i4])
|
|
1741
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1742
|
+
if (kind && result)
|
|
1743
|
+
__defProp3(target, key, result);
|
|
1744
|
+
return result;
|
|
1745
|
+
};
|
|
1746
|
+
var __accessCheck3 = (obj, member, msg) => {
|
|
1747
|
+
if (!member.has(obj))
|
|
1748
|
+
throw TypeError("Cannot " + msg);
|
|
1749
|
+
};
|
|
1750
|
+
var __privateGet3 = (obj, member, getter) => {
|
|
1751
|
+
__accessCheck3(obj, member, "read from private field");
|
|
1752
|
+
return getter ? getter.call(obj) : member.get(obj);
|
|
1753
|
+
};
|
|
1754
|
+
var __privateAdd3 = (obj, member, value) => {
|
|
1755
|
+
if (member.has(obj))
|
|
1756
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
1757
|
+
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
1758
|
+
};
|
|
1759
|
+
var __privateSet3 = (obj, member, value, setter) => {
|
|
1760
|
+
__accessCheck3(obj, member, "write to private field");
|
|
1761
|
+
setter ? setter.call(obj, value) : member.set(obj, value);
|
|
1762
|
+
return value;
|
|
1763
|
+
};
|
|
1764
|
+
|
|
1765
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.CCJUT23E.js
|
|
1766
|
+
function watch(propertyName, options) {
|
|
1767
|
+
const resolvedOptions = __spreadValues({
|
|
1768
|
+
waitUntilFirstUpdate: false
|
|
1769
|
+
}, options);
|
|
1770
|
+
return (proto, decoratedFnName) => {
|
|
1771
|
+
const { update } = proto;
|
|
1772
|
+
const watchedProperties = Array.isArray(propertyName) ? propertyName : [propertyName];
|
|
1773
|
+
proto.update = function(changedProps) {
|
|
1774
|
+
watchedProperties.forEach((property) => {
|
|
1775
|
+
const key = property;
|
|
1776
|
+
if (changedProps.has(key)) {
|
|
1777
|
+
const oldValue = changedProps.get(key);
|
|
1778
|
+
const newValue = this[key];
|
|
1779
|
+
if (oldValue !== newValue) {
|
|
1780
|
+
if (!resolvedOptions.waitUntilFirstUpdate || this.hasUpdated) {
|
|
1781
|
+
this[decoratedFnName](oldValue, newValue);
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
});
|
|
1786
|
+
update.call(this, changedProps);
|
|
1787
|
+
};
|
|
1788
|
+
};
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.TUVJKY7S.js
|
|
1792
|
+
var component_styles_default = i`
|
|
1793
|
+
:host {
|
|
1794
|
+
box-sizing: border-box;
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
:host *,
|
|
1798
|
+
:host *::before,
|
|
1799
|
+
:host *::after {
|
|
1800
|
+
box-sizing: inherit;
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
[hidden] {
|
|
1804
|
+
display: none !important;
|
|
1805
|
+
}
|
|
1806
|
+
`;
|
|
1807
|
+
|
|
1808
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.NLWS5DN7.js
|
|
1809
|
+
var _hasRecordedInitialProperties;
|
|
1810
|
+
var ShoelaceElement = class extends h3 {
|
|
1811
|
+
constructor() {
|
|
1812
|
+
super();
|
|
1813
|
+
__privateAdd3(this, _hasRecordedInitialProperties, false);
|
|
1814
|
+
this.initialReflectedProperties = /* @__PURE__ */ new Map();
|
|
1815
|
+
Object.entries(this.constructor.dependencies).forEach(([name, component]) => {
|
|
1816
|
+
this.constructor.define(name, component);
|
|
1817
|
+
});
|
|
1818
|
+
}
|
|
1819
|
+
emit(name, options) {
|
|
1820
|
+
const event = new CustomEvent(name, __spreadValues({
|
|
1821
|
+
bubbles: true,
|
|
1822
|
+
cancelable: false,
|
|
1823
|
+
composed: true,
|
|
1824
|
+
detail: {}
|
|
1825
|
+
}, options));
|
|
1826
|
+
this.dispatchEvent(event);
|
|
1827
|
+
return event;
|
|
1828
|
+
}
|
|
1829
|
+
/* eslint-enable */
|
|
1830
|
+
static define(name, elementConstructor = this, options = {}) {
|
|
1831
|
+
const currentlyRegisteredConstructor = customElements.get(name);
|
|
1832
|
+
if (!currentlyRegisteredConstructor) {
|
|
1833
|
+
try {
|
|
1834
|
+
customElements.define(name, elementConstructor, options);
|
|
1835
|
+
} catch (_err) {
|
|
1836
|
+
customElements.define(name, class extends elementConstructor {
|
|
1837
|
+
}, options);
|
|
1838
|
+
}
|
|
1839
|
+
return;
|
|
1840
|
+
}
|
|
1841
|
+
let newVersion = " (unknown version)";
|
|
1842
|
+
let existingVersion = newVersion;
|
|
1843
|
+
if ("version" in elementConstructor && elementConstructor.version) {
|
|
1844
|
+
newVersion = " v" + elementConstructor.version;
|
|
1845
|
+
}
|
|
1846
|
+
if ("version" in currentlyRegisteredConstructor && currentlyRegisteredConstructor.version) {
|
|
1847
|
+
existingVersion = " v" + currentlyRegisteredConstructor.version;
|
|
1848
|
+
}
|
|
1849
|
+
if (newVersion && existingVersion && newVersion === existingVersion) {
|
|
1850
|
+
return;
|
|
1851
|
+
}
|
|
1852
|
+
console.warn(
|
|
1853
|
+
`Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`
|
|
1854
|
+
);
|
|
1855
|
+
}
|
|
1856
|
+
attributeChangedCallback(name, oldValue, newValue) {
|
|
1857
|
+
if (!__privateGet3(this, _hasRecordedInitialProperties)) {
|
|
1858
|
+
this.constructor.elementProperties.forEach(
|
|
1859
|
+
(obj, prop) => {
|
|
1860
|
+
if (obj.reflect && this[prop] != null) {
|
|
1861
|
+
this.initialReflectedProperties.set(prop, this[prop]);
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
);
|
|
1865
|
+
__privateSet3(this, _hasRecordedInitialProperties, true);
|
|
1866
|
+
}
|
|
1867
|
+
super.attributeChangedCallback(name, oldValue, newValue);
|
|
1868
|
+
}
|
|
1869
|
+
willUpdate(changedProperties) {
|
|
1870
|
+
super.willUpdate(changedProperties);
|
|
1871
|
+
this.initialReflectedProperties.forEach((value, prop) => {
|
|
1872
|
+
if (changedProperties.has(prop) && this[prop] == null) {
|
|
1873
|
+
this[prop] = value;
|
|
1874
|
+
}
|
|
1875
|
+
});
|
|
1876
|
+
}
|
|
1877
|
+
};
|
|
1878
|
+
_hasRecordedInitialProperties = /* @__PURE__ */ new WeakMap();
|
|
1879
|
+
ShoelaceElement.version = "2.17.1";
|
|
1880
|
+
ShoelaceElement.dependencies = {};
|
|
1881
|
+
__decorateClass([
|
|
1882
|
+
n5()
|
|
1883
|
+
], ShoelaceElement.prototype, "dir", 2);
|
|
1884
|
+
__decorateClass([
|
|
1885
|
+
n5()
|
|
1886
|
+
], ShoelaceElement.prototype, "lang", 2);
|
|
1887
|
+
|
|
1888
|
+
// ../../node_modules/lit/node_modules/lit-html/directive-helpers.js
|
|
1889
|
+
var { I: et3 } = si;
|
|
1890
|
+
var nt = (o5, t6) => void 0 === t6 ? void 0 !== o5?._$litType$ : o5?._$litType$ === t6;
|
|
1891
|
+
|
|
1892
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.O7VCMB7W.js
|
|
1893
|
+
var CACHEABLE_ERROR = Symbol();
|
|
1894
|
+
var RETRYABLE_ERROR = Symbol();
|
|
1895
|
+
var parser;
|
|
1896
|
+
var iconCache = /* @__PURE__ */ new Map();
|
|
1897
|
+
var SlIcon = class extends ShoelaceElement {
|
|
1898
|
+
constructor() {
|
|
1899
|
+
super(...arguments);
|
|
1900
|
+
this.initialRender = false;
|
|
1901
|
+
this.svg = null;
|
|
1902
|
+
this.label = "";
|
|
1903
|
+
this.library = "default";
|
|
1904
|
+
}
|
|
1905
|
+
/** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */
|
|
1906
|
+
async resolveIcon(url, library2) {
|
|
1907
|
+
var _a3;
|
|
1908
|
+
let fileData;
|
|
1909
|
+
if (library2 == null ? void 0 : library2.spriteSheet) {
|
|
1910
|
+
this.svg = ke`<svg part="svg">
|
|
1911
|
+
<use part="use" href="${url}"></use>
|
|
1912
|
+
</svg>`;
|
|
1913
|
+
return this.svg;
|
|
1914
|
+
}
|
|
1915
|
+
try {
|
|
1916
|
+
fileData = await fetch(url, { mode: "cors" });
|
|
1917
|
+
if (!fileData.ok)
|
|
1918
|
+
return fileData.status === 410 ? CACHEABLE_ERROR : RETRYABLE_ERROR;
|
|
1919
|
+
} catch (e7) {
|
|
1920
|
+
return RETRYABLE_ERROR;
|
|
1921
|
+
}
|
|
1922
|
+
try {
|
|
1923
|
+
const div = document.createElement("div");
|
|
1924
|
+
div.innerHTML = await fileData.text();
|
|
1925
|
+
const svg = div.firstElementChild;
|
|
1926
|
+
if (((_a3 = svg == null ? void 0 : svg.tagName) == null ? void 0 : _a3.toLowerCase()) !== "svg")
|
|
1927
|
+
return CACHEABLE_ERROR;
|
|
1928
|
+
if (!parser)
|
|
1929
|
+
parser = new DOMParser();
|
|
1930
|
+
const doc = parser.parseFromString(svg.outerHTML, "text/html");
|
|
1931
|
+
const svgEl = doc.body.querySelector("svg");
|
|
1932
|
+
if (!svgEl)
|
|
1933
|
+
return CACHEABLE_ERROR;
|
|
1934
|
+
svgEl.part.add("svg");
|
|
1935
|
+
return document.adoptNode(svgEl);
|
|
1936
|
+
} catch (e7) {
|
|
1937
|
+
return CACHEABLE_ERROR;
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
connectedCallback() {
|
|
1941
|
+
super.connectedCallback();
|
|
1942
|
+
watchIcon(this);
|
|
1943
|
+
}
|
|
1944
|
+
firstUpdated() {
|
|
1945
|
+
this.initialRender = true;
|
|
1946
|
+
this.setIcon();
|
|
1947
|
+
}
|
|
1948
|
+
disconnectedCallback() {
|
|
1949
|
+
super.disconnectedCallback();
|
|
1950
|
+
unwatchIcon(this);
|
|
1951
|
+
}
|
|
1952
|
+
getIconSource() {
|
|
1953
|
+
const library2 = getIconLibrary(this.library);
|
|
1954
|
+
if (this.name && library2) {
|
|
1955
|
+
return {
|
|
1956
|
+
url: library2.resolver(this.name),
|
|
1957
|
+
fromLibrary: true
|
|
1958
|
+
};
|
|
1959
|
+
}
|
|
1960
|
+
return {
|
|
1961
|
+
url: this.src,
|
|
1962
|
+
fromLibrary: false
|
|
1963
|
+
};
|
|
1964
|
+
}
|
|
1965
|
+
handleLabelChange() {
|
|
1966
|
+
const hasLabel = typeof this.label === "string" && this.label.length > 0;
|
|
1967
|
+
if (hasLabel) {
|
|
1968
|
+
this.setAttribute("role", "img");
|
|
1969
|
+
this.setAttribute("aria-label", this.label);
|
|
1970
|
+
this.removeAttribute("aria-hidden");
|
|
1971
|
+
} else {
|
|
1972
|
+
this.removeAttribute("role");
|
|
1973
|
+
this.removeAttribute("aria-label");
|
|
1974
|
+
this.setAttribute("aria-hidden", "true");
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
async setIcon() {
|
|
1978
|
+
var _a3;
|
|
1979
|
+
const { url, fromLibrary } = this.getIconSource();
|
|
1980
|
+
const library2 = fromLibrary ? getIconLibrary(this.library) : void 0;
|
|
1981
|
+
if (!url) {
|
|
1982
|
+
this.svg = null;
|
|
1983
|
+
return;
|
|
1984
|
+
}
|
|
1985
|
+
let iconResolver = iconCache.get(url);
|
|
1986
|
+
if (!iconResolver) {
|
|
1987
|
+
iconResolver = this.resolveIcon(url, library2);
|
|
1988
|
+
iconCache.set(url, iconResolver);
|
|
1989
|
+
}
|
|
1990
|
+
if (!this.initialRender) {
|
|
1991
|
+
return;
|
|
1992
|
+
}
|
|
1993
|
+
const svg = await iconResolver;
|
|
1994
|
+
if (svg === RETRYABLE_ERROR) {
|
|
1995
|
+
iconCache.delete(url);
|
|
1996
|
+
}
|
|
1997
|
+
if (url !== this.getIconSource().url) {
|
|
1998
|
+
return;
|
|
1999
|
+
}
|
|
2000
|
+
if (nt(svg)) {
|
|
2001
|
+
this.svg = svg;
|
|
2002
|
+
if (library2) {
|
|
2003
|
+
await this.updateComplete;
|
|
2004
|
+
const shadowSVG = this.shadowRoot.querySelector("[part='svg']");
|
|
2005
|
+
if (typeof library2.mutator === "function" && shadowSVG) {
|
|
2006
|
+
library2.mutator(shadowSVG);
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
return;
|
|
2010
|
+
}
|
|
2011
|
+
switch (svg) {
|
|
2012
|
+
case RETRYABLE_ERROR:
|
|
2013
|
+
case CACHEABLE_ERROR:
|
|
2014
|
+
this.svg = null;
|
|
2015
|
+
this.emit("sl-error");
|
|
2016
|
+
break;
|
|
2017
|
+
default:
|
|
2018
|
+
this.svg = svg.cloneNode(true);
|
|
2019
|
+
(_a3 = library2 == null ? void 0 : library2.mutator) == null ? void 0 : _a3.call(library2, this.svg);
|
|
2020
|
+
this.emit("sl-load");
|
|
2021
|
+
}
|
|
2022
|
+
}
|
|
2023
|
+
render() {
|
|
2024
|
+
return this.svg;
|
|
2025
|
+
}
|
|
2026
|
+
};
|
|
2027
|
+
SlIcon.styles = [component_styles_default, icon_styles_default];
|
|
2028
|
+
__decorateClass([
|
|
2029
|
+
r5()
|
|
2030
|
+
], SlIcon.prototype, "svg", 2);
|
|
2031
|
+
__decorateClass([
|
|
2032
|
+
n5({ reflect: true })
|
|
2033
|
+
], SlIcon.prototype, "name", 2);
|
|
2034
|
+
__decorateClass([
|
|
2035
|
+
n5()
|
|
2036
|
+
], SlIcon.prototype, "src", 2);
|
|
2037
|
+
__decorateClass([
|
|
2038
|
+
n5()
|
|
2039
|
+
], SlIcon.prototype, "label", 2);
|
|
2040
|
+
__decorateClass([
|
|
2041
|
+
n5({ reflect: true })
|
|
2042
|
+
], SlIcon.prototype, "library", 2);
|
|
2043
|
+
__decorateClass([
|
|
2044
|
+
watch("label")
|
|
2045
|
+
], SlIcon.prototype, "handleLabelChange", 1);
|
|
2046
|
+
__decorateClass([
|
|
2047
|
+
watch(["name", "src", "library"])
|
|
2048
|
+
], SlIcon.prototype, "setIcon", 1);
|
|
2049
|
+
|
|
2050
|
+
// ../../node_modules/lit/node_modules/lit-html/directives/class-map.js
|
|
2051
|
+
var Rt = e6(class extends i3 {
|
|
2052
|
+
constructor(s3) {
|
|
2053
|
+
if (super(s3), s3.type !== t5.ATTRIBUTE || "class" !== s3.name || s3.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
2054
|
+
}
|
|
2055
|
+
render(t6) {
|
|
2056
|
+
return " " + Object.keys(t6).filter((s3) => t6[s3]).join(" ") + " ";
|
|
2057
|
+
}
|
|
2058
|
+
update(t6, [s3]) {
|
|
2059
|
+
if (void 0 === this.st) {
|
|
2060
|
+
this.st = /* @__PURE__ */ new Set(), void 0 !== t6.strings && (this.nt = new Set(t6.strings.join(" ").split(/\s/).filter((t7) => "" !== t7)));
|
|
2061
|
+
for (const t7 in s3) s3[t7] && !this.nt?.has(t7) && this.st.add(t7);
|
|
2062
|
+
return this.render(s3);
|
|
2063
|
+
}
|
|
2064
|
+
const i4 = t6.element.classList;
|
|
2065
|
+
for (const t7 of this.st) t7 in s3 || (i4.remove(t7), this.st.delete(t7));
|
|
2066
|
+
for (const t7 in s3) {
|
|
2067
|
+
const r6 = !!s3[t7];
|
|
2068
|
+
r6 === this.st.has(t7) || this.nt?.has(t7) || (r6 ? (i4.add(t7), this.st.add(t7)) : (i4.remove(t7), this.st.delete(t7)));
|
|
2069
|
+
}
|
|
2070
|
+
return R;
|
|
2071
|
+
}
|
|
2072
|
+
});
|
|
2073
|
+
|
|
2074
|
+
// ../../node_modules/lit/node_modules/lit-html/static.js
|
|
2075
|
+
var $e = Symbol.for("");
|
|
2076
|
+
var xe = (t6) => {
|
|
2077
|
+
if (t6?.r === $e) return t6?._$litStatic$;
|
|
2078
|
+
};
|
|
2079
|
+
var er = (t6, ...r6) => ({ _$litStatic$: r6.reduce((r7, e7, a3) => r7 + ((t7) => {
|
|
2080
|
+
if (void 0 !== t7._$litStatic$) return t7._$litStatic$;
|
|
2081
|
+
throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t7}. Use 'unsafeStatic' to pass non-literal values, but
|
|
2082
|
+
take care to ensure page security.`);
|
|
2083
|
+
})(e7) + t6[a3 + 1], t6[0]), r: $e });
|
|
2084
|
+
var Te = /* @__PURE__ */ new Map();
|
|
2085
|
+
var Ee = (t6) => (r6, ...e7) => {
|
|
2086
|
+
const a3 = e7.length;
|
|
2087
|
+
let o5, s3;
|
|
2088
|
+
const i4 = [], l3 = [];
|
|
2089
|
+
let n6, u3 = 0, c5 = false;
|
|
2090
|
+
for (; u3 < a3; ) {
|
|
2091
|
+
for (n6 = r6[u3]; u3 < a3 && void 0 !== (s3 = e7[u3], o5 = xe(s3)); ) n6 += o5 + r6[++u3], c5 = true;
|
|
2092
|
+
u3 !== a3 && l3.push(s3), i4.push(n6), u3++;
|
|
2093
|
+
}
|
|
2094
|
+
if (u3 === a3 && i4.push(r6[a3]), c5) {
|
|
2095
|
+
const t7 = i4.join("$$lit$$");
|
|
2096
|
+
void 0 === (r6 = Te.get(t7)) && (i4.raw = i4, Te.set(t7, r6 = i4)), e7 = l3;
|
|
2097
|
+
}
|
|
2098
|
+
return t6(r6, ...e7);
|
|
2099
|
+
};
|
|
2100
|
+
var ke3 = Ee(ke);
|
|
2101
|
+
var Oe3 = Ee(Oe);
|
|
2102
|
+
var Se3 = Ee(Se);
|
|
2103
|
+
|
|
2104
|
+
// ../../node_modules/lit/node_modules/lit-html/directives/if-defined.js
|
|
2105
|
+
var to = (t6) => t6 ?? D;
|
|
2106
|
+
|
|
2107
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.AYP3HPB7.js
|
|
2108
|
+
var SlIconButton = class extends ShoelaceElement {
|
|
2109
|
+
constructor() {
|
|
2110
|
+
super(...arguments);
|
|
2111
|
+
this.hasFocus = false;
|
|
2112
|
+
this.label = "";
|
|
2113
|
+
this.disabled = false;
|
|
2114
|
+
}
|
|
2115
|
+
handleBlur() {
|
|
2116
|
+
this.hasFocus = false;
|
|
2117
|
+
this.emit("sl-blur");
|
|
2118
|
+
}
|
|
2119
|
+
handleFocus() {
|
|
2120
|
+
this.hasFocus = true;
|
|
2121
|
+
this.emit("sl-focus");
|
|
2122
|
+
}
|
|
2123
|
+
handleClick(event) {
|
|
2124
|
+
if (this.disabled) {
|
|
2125
|
+
event.preventDefault();
|
|
2126
|
+
event.stopPropagation();
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
/** Simulates a click on the icon button. */
|
|
2130
|
+
click() {
|
|
2131
|
+
this.button.click();
|
|
2132
|
+
}
|
|
2133
|
+
/** Sets focus on the icon button. */
|
|
2134
|
+
focus(options) {
|
|
2135
|
+
this.button.focus(options);
|
|
2136
|
+
}
|
|
2137
|
+
/** Removes focus from the icon button. */
|
|
2138
|
+
blur() {
|
|
2139
|
+
this.button.blur();
|
|
2140
|
+
}
|
|
2141
|
+
render() {
|
|
2142
|
+
const isLink = this.href ? true : false;
|
|
2143
|
+
const tag = isLink ? er`a` : er`button`;
|
|
2144
|
+
return ke3`
|
|
2145
|
+
<${tag}
|
|
2146
|
+
part="base"
|
|
2147
|
+
class=${Rt({
|
|
2148
|
+
"icon-button": true,
|
|
2149
|
+
"icon-button--disabled": !isLink && this.disabled,
|
|
2150
|
+
"icon-button--focused": this.hasFocus
|
|
2151
|
+
})}
|
|
2152
|
+
?disabled=${to(isLink ? void 0 : this.disabled)}
|
|
2153
|
+
type=${to(isLink ? void 0 : "button")}
|
|
2154
|
+
href=${to(isLink ? this.href : void 0)}
|
|
2155
|
+
target=${to(isLink ? this.target : void 0)}
|
|
2156
|
+
download=${to(isLink ? this.download : void 0)}
|
|
2157
|
+
rel=${to(isLink && this.target ? "noreferrer noopener" : void 0)}
|
|
2158
|
+
role=${to(isLink ? void 0 : "button")}
|
|
2159
|
+
aria-disabled=${this.disabled ? "true" : "false"}
|
|
2160
|
+
aria-label="${this.label}"
|
|
2161
|
+
tabindex=${this.disabled ? "-1" : "0"}
|
|
2162
|
+
@blur=${this.handleBlur}
|
|
2163
|
+
@focus=${this.handleFocus}
|
|
2164
|
+
@click=${this.handleClick}
|
|
2165
|
+
>
|
|
2166
|
+
<sl-icon
|
|
2167
|
+
class="icon-button__icon"
|
|
2168
|
+
name=${to(this.name)}
|
|
2169
|
+
library=${to(this.library)}
|
|
2170
|
+
src=${to(this.src)}
|
|
2171
|
+
aria-hidden="true"
|
|
2172
|
+
></sl-icon>
|
|
2173
|
+
</${tag}>
|
|
2174
|
+
`;
|
|
2175
|
+
}
|
|
2176
|
+
};
|
|
2177
|
+
SlIconButton.styles = [component_styles_default, icon_button_styles_default];
|
|
2178
|
+
SlIconButton.dependencies = { "sl-icon": SlIcon };
|
|
2179
|
+
__decorateClass([
|
|
2180
|
+
e5(".icon-button")
|
|
2181
|
+
], SlIconButton.prototype, "button", 2);
|
|
2182
|
+
__decorateClass([
|
|
2183
|
+
r5()
|
|
2184
|
+
], SlIconButton.prototype, "hasFocus", 2);
|
|
2185
|
+
__decorateClass([
|
|
2186
|
+
n5()
|
|
2187
|
+
], SlIconButton.prototype, "name", 2);
|
|
2188
|
+
__decorateClass([
|
|
2189
|
+
n5()
|
|
2190
|
+
], SlIconButton.prototype, "library", 2);
|
|
2191
|
+
__decorateClass([
|
|
2192
|
+
n5()
|
|
2193
|
+
], SlIconButton.prototype, "src", 2);
|
|
2194
|
+
__decorateClass([
|
|
2195
|
+
n5()
|
|
2196
|
+
], SlIconButton.prototype, "href", 2);
|
|
2197
|
+
__decorateClass([
|
|
2198
|
+
n5()
|
|
2199
|
+
], SlIconButton.prototype, "target", 2);
|
|
2200
|
+
__decorateClass([
|
|
2201
|
+
n5()
|
|
2202
|
+
], SlIconButton.prototype, "download", 2);
|
|
2203
|
+
__decorateClass([
|
|
2204
|
+
n5()
|
|
2205
|
+
], SlIconButton.prototype, "label", 2);
|
|
2206
|
+
__decorateClass([
|
|
2207
|
+
n5({ type: Boolean, reflect: true })
|
|
2208
|
+
], SlIconButton.prototype, "disabled", 2);
|
|
50
2209
|
|
|
51
2210
|
// src/widgets/webwriter-mark.ts
|
|
52
|
-
import { html, css } from "lit";
|
|
53
|
-
import { action, LitElementWw } from "@webwriter/lit";
|
|
54
|
-
import { customElement, eventOptions, property } from "lit/decorators.js";
|
|
55
|
-
import { styleMap } from "lit/directives/style-map.js";
|
|
56
|
-
import SlIconButton from "@shoelace-style/shoelace/dist/components/icon-button/icon-button.component.js";
|
|
57
2211
|
var xPath = function(node, optimized = false) {
|
|
58
2212
|
if (node.nodeType === Node.DOCUMENT_NODE) {
|
|
59
2213
|
return "/";
|
|
@@ -132,8 +2286,8 @@ var _xPathIndex = function(node) {
|
|
|
132
2286
|
return 0;
|
|
133
2287
|
}
|
|
134
2288
|
let hasSameNamedElements;
|
|
135
|
-
for (let
|
|
136
|
-
if (areNodesSimilar(node, siblings[
|
|
2289
|
+
for (let i4 = 0; i4 < siblings.length; ++i4) {
|
|
2290
|
+
if (areNodesSimilar(node, siblings[i4]) && siblings[i4] !== node) {
|
|
137
2291
|
hasSameNamedElements = true;
|
|
138
2292
|
break;
|
|
139
2293
|
}
|
|
@@ -142,9 +2296,9 @@ var _xPathIndex = function(node) {
|
|
|
142
2296
|
return 0;
|
|
143
2297
|
}
|
|
144
2298
|
let ownIndex = 1;
|
|
145
|
-
for (let
|
|
146
|
-
if (areNodesSimilar(node, siblings[
|
|
147
|
-
if (siblings[
|
|
2299
|
+
for (let i4 = 0; i4 < siblings.length; ++i4) {
|
|
2300
|
+
if (areNodesSimilar(node, siblings[i4])) {
|
|
2301
|
+
if (siblings[i4] === node) {
|
|
148
2302
|
return ownIndex;
|
|
149
2303
|
}
|
|
150
2304
|
++ownIndex;
|
|
@@ -161,17 +2315,17 @@ var Step = class {
|
|
|
161
2315
|
return this.value;
|
|
162
2316
|
}
|
|
163
2317
|
};
|
|
164
|
-
function getCaretPositionFromPoint(
|
|
2318
|
+
function getCaretPositionFromPoint(e7) {
|
|
165
2319
|
let range;
|
|
166
2320
|
let textNode;
|
|
167
2321
|
let offset;
|
|
168
2322
|
if (document.caretPositionFromPoint) {
|
|
169
|
-
range = document.caretPositionFromPoint(
|
|
2323
|
+
range = document.caretPositionFromPoint(e7.clientX, e7.clientY);
|
|
170
2324
|
textNode = range.offsetNode;
|
|
171
2325
|
offset = range.offset;
|
|
172
2326
|
return { textNode, offset };
|
|
173
2327
|
} else if (document.caretRangeFromPoint) {
|
|
174
|
-
range = document.caretRangeFromPoint(
|
|
2328
|
+
range = document.caretRangeFromPoint(e7.clientX, e7.clientY);
|
|
175
2329
|
textNode = range.startContainer;
|
|
176
2330
|
offset = range.startOffset;
|
|
177
2331
|
return { textNode, offset };
|
|
@@ -218,15 +2372,15 @@ var SerializableRange = class _SerializableRange extends Range {
|
|
|
218
2372
|
return JSON.stringify(this.toJSON());
|
|
219
2373
|
}
|
|
220
2374
|
};
|
|
221
|
-
var _handleHighlight_dec, _value_dec, _solution_dec, _highlighting_dec,
|
|
222
|
-
_WebwriterMark_decorators = [
|
|
223
|
-
var _WebwriterMark = class _WebwriterMark extends (
|
|
2375
|
+
var _handleHighlight_dec, _value_dec, _solution_dec, _highlighting_dec, _a2, _WebwriterMark_decorators, _init2, _highlighting, _solution, _value, _WebwriterMark_instances, updateHighlight_fn;
|
|
2376
|
+
_WebwriterMark_decorators = [t3("webwriter-mark")];
|
|
2377
|
+
var _WebwriterMark = class _WebwriterMark extends (_a2 = LitElementWw, _highlighting_dec = [n5({ type: Boolean, attribute: true, reflect: true })], _solution_dec = [n5({ attribute: false })], _value_dec = [n5({ attribute: true, reflect: true, converter: { toAttribute: toAttributeRange, fromAttribute: fromAttributeRange } })], _handleHighlight_dec = [t4({ passive: true }), action({ label: { _: "Toggle Highlight" } })], _a2) {
|
|
224
2378
|
constructor() {
|
|
225
2379
|
super(...arguments);
|
|
226
|
-
__runInitializers(
|
|
2380
|
+
__runInitializers(_init2, 5, this);
|
|
227
2381
|
__privateAdd(this, _WebwriterMark_instances);
|
|
228
2382
|
__publicField(this, "msg", (str) => this.lang in _WebwriterMark.localization ? _WebwriterMark.localization[this.lang][str] ?? str : str);
|
|
229
|
-
__privateAdd(this, _highlighting, __runInitializers(
|
|
2383
|
+
__privateAdd(this, _highlighting, __runInitializers(_init2, 8, this, false)), __runInitializers(_init2, 11, this);
|
|
230
2384
|
__privateAdd(this, _solution, []);
|
|
231
2385
|
__privateAdd(this, _value, []);
|
|
232
2386
|
__publicField(this, "observer");
|
|
@@ -236,14 +2390,14 @@ var _WebwriterMark = class _WebwriterMark extends (_a = LitElementWw, _highlight
|
|
|
236
2390
|
return __privateGet(this, _solution);
|
|
237
2391
|
}
|
|
238
2392
|
set solution(value) {
|
|
239
|
-
__privateMethod(this, _WebwriterMark_instances, updateHighlight_fn).call(this, "solution", value.map((
|
|
2393
|
+
__privateMethod(this, _WebwriterMark_instances, updateHighlight_fn).call(this, "solution", value.map((v3) => new SerializableRange(v3)));
|
|
240
2394
|
this.requestUpdate("solution");
|
|
241
2395
|
}
|
|
242
2396
|
get value() {
|
|
243
2397
|
return __privateGet(this, _value);
|
|
244
2398
|
}
|
|
245
2399
|
set value(value) {
|
|
246
|
-
__privateMethod(this, _WebwriterMark_instances, updateHighlight_fn).call(this, "value", value.map((
|
|
2400
|
+
__privateMethod(this, _WebwriterMark_instances, updateHighlight_fn).call(this, "value", value.map((v3) => new SerializableRange(v3)));
|
|
247
2401
|
this.requestUpdate("value");
|
|
248
2402
|
}
|
|
249
2403
|
connectedCallback() {
|
|
@@ -260,13 +2414,13 @@ var _WebwriterMark = class _WebwriterMark extends (_a = LitElementWw, _highlight
|
|
|
260
2414
|
super.disconnectedCallback();
|
|
261
2415
|
this.observer?.disconnect();
|
|
262
2416
|
}
|
|
263
|
-
handleHighlight(
|
|
264
|
-
if (
|
|
2417
|
+
handleHighlight(e7) {
|
|
2418
|
+
if (e7 && this.isContentEditable && e7.type === "click") {
|
|
265
2419
|
return;
|
|
266
|
-
} else if (
|
|
2420
|
+
} else if (e7 && !this.isContentEditable && e7.type === "contextmenu") {
|
|
267
2421
|
return;
|
|
268
2422
|
}
|
|
269
|
-
const { textNode, offset } =
|
|
2423
|
+
const { textNode, offset } = e7 ? getCaretPositionFromPoint(e7) : { textNode: document.getSelection().anchorNode, offset: document.getSelection().anchorOffset };
|
|
270
2424
|
const segment = this.segments.filter((seg) => seg.isWordLike).find(({ index, segment: segment2 }) => index <= offset && offset <= index + segment2.length);
|
|
271
2425
|
if (segment) {
|
|
272
2426
|
const range = new SerializableRange();
|
|
@@ -275,9 +2429,9 @@ var _WebwriterMark = class _WebwriterMark extends (_a = LitElementWw, _highlight
|
|
|
275
2429
|
range.setStart(textNode, start);
|
|
276
2430
|
range.setEnd(textNode, end);
|
|
277
2431
|
const key = this.isContentEditable ? "solution" : "value";
|
|
278
|
-
const sameRange = this[key].find((
|
|
2432
|
+
const sameRange = this[key].find((r6) => r6.startContainer === textNode && r6.endContainer === textNode && r6.startOffset === start && r6.endOffset == end);
|
|
279
2433
|
if (sameRange) {
|
|
280
|
-
this[key] = this[key].filter((
|
|
2434
|
+
this[key] = this[key].filter((r6) => r6 !== sameRange);
|
|
281
2435
|
} else {
|
|
282
2436
|
this[key] = [...this[key], range];
|
|
283
2437
|
}
|
|
@@ -293,12 +2447,12 @@ var _WebwriterMark = class _WebwriterMark extends (_a = LitElementWw, _highlight
|
|
|
293
2447
|
reportSolution() {
|
|
294
2448
|
}
|
|
295
2449
|
render() {
|
|
296
|
-
return
|
|
297
|
-
<slot style=${
|
|
2450
|
+
return ke`
|
|
2451
|
+
<slot style=${se({ "--ww-placeholder": `"${this.msg("Text to Highlight")}"` })} ?data-empty=${!this.textContent} @click=${this.handleHighlight} @contextmenu=${this.handleHighlight}></slot>
|
|
298
2452
|
`;
|
|
299
2453
|
}
|
|
300
2454
|
};
|
|
301
|
-
|
|
2455
|
+
_init2 = __decoratorStart(_a2);
|
|
302
2456
|
_highlighting = new WeakMap();
|
|
303
2457
|
_solution = new WeakMap();
|
|
304
2458
|
_value = new WeakMap();
|
|
@@ -329,11 +2483,11 @@ updateHighlight_fn = function(key, value) {
|
|
|
329
2483
|
highlight.add(range);
|
|
330
2484
|
}
|
|
331
2485
|
};
|
|
332
|
-
__decorateElement(
|
|
333
|
-
__decorateElement(
|
|
334
|
-
__decorateElement(
|
|
335
|
-
__decorateElement(
|
|
336
|
-
_WebwriterMark = __decorateElement(
|
|
2486
|
+
__decorateElement(_init2, 4, "highlighting", _highlighting_dec, _WebwriterMark, _highlighting);
|
|
2487
|
+
__decorateElement(_init2, 3, "solution", _solution_dec, _WebwriterMark);
|
|
2488
|
+
__decorateElement(_init2, 3, "value", _value_dec, _WebwriterMark);
|
|
2489
|
+
__decorateElement(_init2, 1, "handleHighlight", _handleHighlight_dec, _WebwriterMark);
|
|
2490
|
+
_WebwriterMark = __decorateElement(_init2, 0, "WebwriterMark", _WebwriterMark_decorators, _WebwriterMark);
|
|
337
2491
|
__publicField(_WebwriterMark, "shadowRootOptions", { ...LitElementWw.shadowRootOptions, delegatesFocus: false });
|
|
338
2492
|
__publicField(_WebwriterMark, "localization", {});
|
|
339
2493
|
// @ts-ignore: Experimental API
|
|
@@ -345,7 +2499,7 @@ CSS.highlights.set("webwriter-mark-value", _WebwriterMark.highlightValue);
|
|
|
345
2499
|
__publicField(_WebwriterMark, "scopedElements", {
|
|
346
2500
|
"sl-icon-button": SlIconButton
|
|
347
2501
|
});
|
|
348
|
-
__publicField(_WebwriterMark, "styles",
|
|
2502
|
+
__publicField(_WebwriterMark, "styles", i`
|
|
349
2503
|
:host {
|
|
350
2504
|
min-height: 1rem;
|
|
351
2505
|
position: relative;
|
|
@@ -402,9 +2556,265 @@ __publicField(_WebwriterMark, "styles", css`
|
|
|
402
2556
|
background: yellow;
|
|
403
2557
|
}
|
|
404
2558
|
`);
|
|
405
|
-
__runInitializers(
|
|
2559
|
+
__runInitializers(_init2, 1, _WebwriterMark);
|
|
406
2560
|
var WebwriterMark = _WebwriterMark;
|
|
407
2561
|
export {
|
|
408
2562
|
WebwriterMark,
|
|
409
2563
|
xPath
|
|
410
2564
|
};
|
|
2565
|
+
/*! Bundled license information:
|
|
2566
|
+
|
|
2567
|
+
@lit/reactive-element/css-tag.js:
|
|
2568
|
+
(**
|
|
2569
|
+
* @license
|
|
2570
|
+
* Copyright 2019 Google LLC
|
|
2571
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2572
|
+
*)
|
|
2573
|
+
|
|
2574
|
+
@lit/reactive-element/reactive-element.js:
|
|
2575
|
+
(**
|
|
2576
|
+
* @license
|
|
2577
|
+
* Copyright 2017 Google LLC
|
|
2578
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2579
|
+
*)
|
|
2580
|
+
|
|
2581
|
+
lit-html/lit-html.js:
|
|
2582
|
+
(**
|
|
2583
|
+
* @license
|
|
2584
|
+
* Copyright 2017 Google LLC
|
|
2585
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2586
|
+
*)
|
|
2587
|
+
|
|
2588
|
+
lit-element/lit-element.js:
|
|
2589
|
+
(**
|
|
2590
|
+
* @license
|
|
2591
|
+
* Copyright 2017 Google LLC
|
|
2592
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2593
|
+
*)
|
|
2594
|
+
|
|
2595
|
+
lit-html/is-server.js:
|
|
2596
|
+
(**
|
|
2597
|
+
* @license
|
|
2598
|
+
* Copyright 2022 Google LLC
|
|
2599
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2600
|
+
*)
|
|
2601
|
+
|
|
2602
|
+
@lit/reactive-element/decorators/custom-element.js:
|
|
2603
|
+
(**
|
|
2604
|
+
* @license
|
|
2605
|
+
* Copyright 2017 Google LLC
|
|
2606
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2607
|
+
*)
|
|
2608
|
+
|
|
2609
|
+
@lit/reactive-element/decorators/property.js:
|
|
2610
|
+
(**
|
|
2611
|
+
* @license
|
|
2612
|
+
* Copyright 2017 Google LLC
|
|
2613
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2614
|
+
*)
|
|
2615
|
+
|
|
2616
|
+
@lit/reactive-element/decorators/state.js:
|
|
2617
|
+
(**
|
|
2618
|
+
* @license
|
|
2619
|
+
* Copyright 2017 Google LLC
|
|
2620
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2621
|
+
*)
|
|
2622
|
+
|
|
2623
|
+
@lit/reactive-element/decorators/event-options.js:
|
|
2624
|
+
(**
|
|
2625
|
+
* @license
|
|
2626
|
+
* Copyright 2017 Google LLC
|
|
2627
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2628
|
+
*)
|
|
2629
|
+
|
|
2630
|
+
@lit/reactive-element/decorators/base.js:
|
|
2631
|
+
(**
|
|
2632
|
+
* @license
|
|
2633
|
+
* Copyright 2017 Google LLC
|
|
2634
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2635
|
+
*)
|
|
2636
|
+
|
|
2637
|
+
@lit/reactive-element/decorators/query.js:
|
|
2638
|
+
(**
|
|
2639
|
+
* @license
|
|
2640
|
+
* Copyright 2017 Google LLC
|
|
2641
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2642
|
+
*)
|
|
2643
|
+
|
|
2644
|
+
@lit/reactive-element/decorators/query-all.js:
|
|
2645
|
+
(**
|
|
2646
|
+
* @license
|
|
2647
|
+
* Copyright 2017 Google LLC
|
|
2648
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2649
|
+
*)
|
|
2650
|
+
|
|
2651
|
+
@lit/reactive-element/decorators/query-async.js:
|
|
2652
|
+
(**
|
|
2653
|
+
* @license
|
|
2654
|
+
* Copyright 2017 Google LLC
|
|
2655
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2656
|
+
*)
|
|
2657
|
+
|
|
2658
|
+
@lit/reactive-element/decorators/query-assigned-elements.js:
|
|
2659
|
+
(**
|
|
2660
|
+
* @license
|
|
2661
|
+
* Copyright 2021 Google LLC
|
|
2662
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2663
|
+
*)
|
|
2664
|
+
|
|
2665
|
+
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
2666
|
+
(**
|
|
2667
|
+
* @license
|
|
2668
|
+
* Copyright 2017 Google LLC
|
|
2669
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2670
|
+
*)
|
|
2671
|
+
*/
|
|
2672
|
+
/*! Bundled license information:
|
|
2673
|
+
|
|
2674
|
+
@lit/reactive-element/css-tag.js:
|
|
2675
|
+
(**
|
|
2676
|
+
* @license
|
|
2677
|
+
* Copyright 2019 Google LLC
|
|
2678
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2679
|
+
*)
|
|
2680
|
+
|
|
2681
|
+
@lit/reactive-element/reactive-element.js:
|
|
2682
|
+
(**
|
|
2683
|
+
* @license
|
|
2684
|
+
* Copyright 2017 Google LLC
|
|
2685
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2686
|
+
*)
|
|
2687
|
+
|
|
2688
|
+
lit-html/lit-html.js:
|
|
2689
|
+
(**
|
|
2690
|
+
* @license
|
|
2691
|
+
* Copyright 2017 Google LLC
|
|
2692
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2693
|
+
*)
|
|
2694
|
+
|
|
2695
|
+
lit-element/lit-element.js:
|
|
2696
|
+
(**
|
|
2697
|
+
* @license
|
|
2698
|
+
* Copyright 2017 Google LLC
|
|
2699
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2700
|
+
*)
|
|
2701
|
+
|
|
2702
|
+
lit-html/is-server.js:
|
|
2703
|
+
(**
|
|
2704
|
+
* @license
|
|
2705
|
+
* Copyright 2022 Google LLC
|
|
2706
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2707
|
+
*)
|
|
2708
|
+
|
|
2709
|
+
@lit/reactive-element/decorators/custom-element.js:
|
|
2710
|
+
(**
|
|
2711
|
+
* @license
|
|
2712
|
+
* Copyright 2017 Google LLC
|
|
2713
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2714
|
+
*)
|
|
2715
|
+
|
|
2716
|
+
@lit/reactive-element/decorators/property.js:
|
|
2717
|
+
(**
|
|
2718
|
+
* @license
|
|
2719
|
+
* Copyright 2017 Google LLC
|
|
2720
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2721
|
+
*)
|
|
2722
|
+
|
|
2723
|
+
@lit/reactive-element/decorators/state.js:
|
|
2724
|
+
(**
|
|
2725
|
+
* @license
|
|
2726
|
+
* Copyright 2017 Google LLC
|
|
2727
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2728
|
+
*)
|
|
2729
|
+
|
|
2730
|
+
@lit/reactive-element/decorators/event-options.js:
|
|
2731
|
+
(**
|
|
2732
|
+
* @license
|
|
2733
|
+
* Copyright 2017 Google LLC
|
|
2734
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2735
|
+
*)
|
|
2736
|
+
|
|
2737
|
+
@lit/reactive-element/decorators/base.js:
|
|
2738
|
+
(**
|
|
2739
|
+
* @license
|
|
2740
|
+
* Copyright 2017 Google LLC
|
|
2741
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2742
|
+
*)
|
|
2743
|
+
|
|
2744
|
+
@lit/reactive-element/decorators/query.js:
|
|
2745
|
+
(**
|
|
2746
|
+
* @license
|
|
2747
|
+
* Copyright 2017 Google LLC
|
|
2748
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2749
|
+
*)
|
|
2750
|
+
|
|
2751
|
+
@lit/reactive-element/decorators/query-all.js:
|
|
2752
|
+
(**
|
|
2753
|
+
* @license
|
|
2754
|
+
* Copyright 2017 Google LLC
|
|
2755
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2756
|
+
*)
|
|
2757
|
+
|
|
2758
|
+
@lit/reactive-element/decorators/query-async.js:
|
|
2759
|
+
(**
|
|
2760
|
+
* @license
|
|
2761
|
+
* Copyright 2017 Google LLC
|
|
2762
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2763
|
+
*)
|
|
2764
|
+
|
|
2765
|
+
@lit/reactive-element/decorators/query-assigned-elements.js:
|
|
2766
|
+
(**
|
|
2767
|
+
* @license
|
|
2768
|
+
* Copyright 2021 Google LLC
|
|
2769
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2770
|
+
*)
|
|
2771
|
+
|
|
2772
|
+
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
2773
|
+
(**
|
|
2774
|
+
* @license
|
|
2775
|
+
* Copyright 2017 Google LLC
|
|
2776
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2777
|
+
*)
|
|
2778
|
+
|
|
2779
|
+
lit-html/directive.js:
|
|
2780
|
+
(**
|
|
2781
|
+
* @license
|
|
2782
|
+
* Copyright 2017 Google LLC
|
|
2783
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2784
|
+
*)
|
|
2785
|
+
|
|
2786
|
+
lit-html/directives/style-map.js:
|
|
2787
|
+
(**
|
|
2788
|
+
* @license
|
|
2789
|
+
* Copyright 2018 Google LLC
|
|
2790
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2791
|
+
*)
|
|
2792
|
+
|
|
2793
|
+
lit-html/directive-helpers.js:
|
|
2794
|
+
(**
|
|
2795
|
+
* @license
|
|
2796
|
+
* Copyright 2020 Google LLC
|
|
2797
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2798
|
+
*)
|
|
2799
|
+
|
|
2800
|
+
lit-html/directives/class-map.js:
|
|
2801
|
+
(**
|
|
2802
|
+
* @license
|
|
2803
|
+
* Copyright 2018 Google LLC
|
|
2804
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2805
|
+
*)
|
|
2806
|
+
|
|
2807
|
+
lit-html/static.js:
|
|
2808
|
+
(**
|
|
2809
|
+
* @license
|
|
2810
|
+
* Copyright 2020 Google LLC
|
|
2811
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2812
|
+
*)
|
|
2813
|
+
|
|
2814
|
+
lit-html/directives/if-defined.js:
|
|
2815
|
+
(**
|
|
2816
|
+
* @license
|
|
2817
|
+
* Copyright 2018 Google LLC
|
|
2818
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2819
|
+
*)
|
|
2820
|
+
*/
|