vite-plugin-ai-annotator 1.14.11 → 1.14.13
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/dist/annotator-toolbar.js +230 -230
- package/package.json +1 -1
|
@@ -21,44 +21,44 @@
|
|
|
21
21
|
var s = Symbol();
|
|
22
22
|
var o = /* @__PURE__ */ new WeakMap();
|
|
23
23
|
var n = class {
|
|
24
|
-
constructor(
|
|
24
|
+
constructor(t3, e5, o6) {
|
|
25
25
|
if (this._$cssResult$ = true, o6 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
26
|
-
this.cssText =
|
|
26
|
+
this.cssText = t3, this.t = e5;
|
|
27
27
|
}
|
|
28
28
|
get styleSheet() {
|
|
29
|
-
let
|
|
29
|
+
let t3 = this.o;
|
|
30
30
|
const s4 = this.t;
|
|
31
|
-
if (e && void 0 ===
|
|
31
|
+
if (e && void 0 === t3) {
|
|
32
32
|
const e5 = void 0 !== s4 && 1 === s4.length;
|
|
33
|
-
e5 && (
|
|
33
|
+
e5 && (t3 = o.get(s4)), void 0 === t3 && ((this.o = t3 = new CSSStyleSheet()).replaceSync(this.cssText), e5 && o.set(s4, t3));
|
|
34
34
|
}
|
|
35
|
-
return
|
|
35
|
+
return t3;
|
|
36
36
|
}
|
|
37
37
|
toString() {
|
|
38
38
|
return this.cssText;
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
var r = (
|
|
42
|
-
var i = (
|
|
43
|
-
const o6 = 1 ===
|
|
44
|
-
if (true ===
|
|
45
|
-
if ("number" == typeof
|
|
46
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " +
|
|
47
|
-
})(s4) +
|
|
48
|
-
return new n(o6,
|
|
41
|
+
var r = (t3) => new n("string" == typeof t3 ? t3 : t3 + "", void 0, s);
|
|
42
|
+
var i = (t3, ...e5) => {
|
|
43
|
+
const o6 = 1 === t3.length ? t3[0] : e5.reduce(((e6, s4, o7) => e6 + ((t4) => {
|
|
44
|
+
if (true === t4._$cssResult$) return t4.cssText;
|
|
45
|
+
if ("number" == typeof t4) return t4;
|
|
46
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + t4 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
47
|
+
})(s4) + t3[o7 + 1]), t3[0]);
|
|
48
|
+
return new n(o6, t3, s);
|
|
49
49
|
};
|
|
50
50
|
var S = (s4, o6) => {
|
|
51
|
-
if (e) s4.adoptedStyleSheets = o6.map(((
|
|
51
|
+
if (e) s4.adoptedStyleSheets = o6.map(((t3) => t3 instanceof CSSStyleSheet ? t3 : t3.styleSheet));
|
|
52
52
|
else for (const e5 of o6) {
|
|
53
53
|
const o7 = document.createElement("style"), n5 = t.litNonce;
|
|
54
54
|
void 0 !== n5 && o7.setAttribute("nonce", n5), o7.textContent = e5.cssText, s4.appendChild(o7);
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
var c = e ? (
|
|
57
|
+
var c = e ? (t3) => t3 : (t3) => t3 instanceof CSSStyleSheet ? ((t4) => {
|
|
58
58
|
let e5 = "";
|
|
59
|
-
for (const s4 of
|
|
59
|
+
for (const s4 of t4.cssRules) e5 += s4.cssText;
|
|
60
60
|
return r(e5);
|
|
61
|
-
})(
|
|
61
|
+
})(t3) : t3;
|
|
62
62
|
|
|
63
63
|
// node_modules/@lit/reactive-element/reactive-element.js
|
|
64
64
|
var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: h, getOwnPropertyNames: r2, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object;
|
|
@@ -66,86 +66,86 @@
|
|
|
66
66
|
var c2 = a.trustedTypes;
|
|
67
67
|
var l = c2 ? c2.emptyScript : "";
|
|
68
68
|
var p = a.reactiveElementPolyfillSupport;
|
|
69
|
-
var d = (
|
|
70
|
-
var u = { toAttribute(
|
|
69
|
+
var d = (t3, s4) => t3;
|
|
70
|
+
var u = { toAttribute(t3, s4) {
|
|
71
71
|
switch (s4) {
|
|
72
72
|
case Boolean:
|
|
73
|
-
|
|
73
|
+
t3 = t3 ? l : null;
|
|
74
74
|
break;
|
|
75
75
|
case Object:
|
|
76
76
|
case Array:
|
|
77
|
-
|
|
77
|
+
t3 = null == t3 ? t3 : JSON.stringify(t3);
|
|
78
78
|
}
|
|
79
|
-
return
|
|
80
|
-
}, fromAttribute(
|
|
81
|
-
let i5 =
|
|
79
|
+
return t3;
|
|
80
|
+
}, fromAttribute(t3, s4) {
|
|
81
|
+
let i5 = t3;
|
|
82
82
|
switch (s4) {
|
|
83
83
|
case Boolean:
|
|
84
|
-
i5 = null !==
|
|
84
|
+
i5 = null !== t3;
|
|
85
85
|
break;
|
|
86
86
|
case Number:
|
|
87
|
-
i5 = null ===
|
|
87
|
+
i5 = null === t3 ? null : Number(t3);
|
|
88
88
|
break;
|
|
89
89
|
case Object:
|
|
90
90
|
case Array:
|
|
91
91
|
try {
|
|
92
|
-
i5 = JSON.parse(
|
|
93
|
-
} catch (
|
|
92
|
+
i5 = JSON.parse(t3);
|
|
93
|
+
} catch (t4) {
|
|
94
94
|
i5 = null;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
return i5;
|
|
98
98
|
} };
|
|
99
|
-
var f = (
|
|
99
|
+
var f = (t3, s4) => !i2(t3, s4);
|
|
100
100
|
var b = { attribute: true, type: String, converter: u, reflect: false, useDefault: false, hasChanged: f };
|
|
101
101
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), a.litPropertyMetadata ?? (a.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
102
102
|
var y = class extends HTMLElement {
|
|
103
|
-
static addInitializer(
|
|
104
|
-
this._$Ei(), (this.l ?? (this.l = [])).push(
|
|
103
|
+
static addInitializer(t3) {
|
|
104
|
+
this._$Ei(), (this.l ?? (this.l = [])).push(t3);
|
|
105
105
|
}
|
|
106
106
|
static get observedAttributes() {
|
|
107
107
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
108
108
|
}
|
|
109
|
-
static createProperty(
|
|
110
|
-
if (s4.state && (s4.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(
|
|
111
|
-
const i5 = Symbol(), h3 = this.getPropertyDescriptor(
|
|
112
|
-
void 0 !== h3 && e2(this.prototype,
|
|
109
|
+
static createProperty(t3, s4 = b) {
|
|
110
|
+
if (s4.state && (s4.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t3) && ((s4 = Object.create(s4)).wrapped = true), this.elementProperties.set(t3, s4), !s4.noAccessor) {
|
|
111
|
+
const i5 = Symbol(), h3 = this.getPropertyDescriptor(t3, i5, s4);
|
|
112
|
+
void 0 !== h3 && e2(this.prototype, t3, h3);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
static getPropertyDescriptor(
|
|
116
|
-
const { get: e5, set: r6 } = h(this.prototype,
|
|
115
|
+
static getPropertyDescriptor(t3, s4, i5) {
|
|
116
|
+
const { get: e5, set: r6 } = h(this.prototype, t3) ?? { get() {
|
|
117
117
|
return this[s4];
|
|
118
|
-
}, set(
|
|
119
|
-
this[s4] =
|
|
118
|
+
}, set(t4) {
|
|
119
|
+
this[s4] = t4;
|
|
120
120
|
} };
|
|
121
121
|
return { get: e5, set(s5) {
|
|
122
122
|
const h3 = e5?.call(this);
|
|
123
|
-
r6?.call(this, s5), this.requestUpdate(
|
|
123
|
+
r6?.call(this, s5), this.requestUpdate(t3, h3, i5);
|
|
124
124
|
}, configurable: true, enumerable: true };
|
|
125
125
|
}
|
|
126
|
-
static getPropertyOptions(
|
|
127
|
-
return this.elementProperties.get(
|
|
126
|
+
static getPropertyOptions(t3) {
|
|
127
|
+
return this.elementProperties.get(t3) ?? b;
|
|
128
128
|
}
|
|
129
129
|
static _$Ei() {
|
|
130
130
|
if (this.hasOwnProperty(d("elementProperties"))) return;
|
|
131
|
-
const
|
|
132
|
-
|
|
131
|
+
const t3 = n2(this);
|
|
132
|
+
t3.finalize(), void 0 !== t3.l && (this.l = [...t3.l]), this.elementProperties = new Map(t3.elementProperties);
|
|
133
133
|
}
|
|
134
134
|
static finalize() {
|
|
135
135
|
if (this.hasOwnProperty(d("finalized"))) return;
|
|
136
136
|
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) {
|
|
137
|
-
const
|
|
138
|
-
for (const i5 of s4) this.createProperty(i5,
|
|
137
|
+
const t4 = this.properties, s4 = [...r2(t4), ...o2(t4)];
|
|
138
|
+
for (const i5 of s4) this.createProperty(i5, t4[i5]);
|
|
139
139
|
}
|
|
140
|
-
const
|
|
141
|
-
if (null !==
|
|
142
|
-
const s4 = litPropertyMetadata.get(
|
|
143
|
-
if (void 0 !== s4) for (const [
|
|
140
|
+
const t3 = this[Symbol.metadata];
|
|
141
|
+
if (null !== t3) {
|
|
142
|
+
const s4 = litPropertyMetadata.get(t3);
|
|
143
|
+
if (void 0 !== s4) for (const [t4, i5] of s4) this.elementProperties.set(t4, i5);
|
|
144
144
|
}
|
|
145
145
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
146
|
-
for (const [
|
|
147
|
-
const i5 = this._$Eu(
|
|
148
|
-
void 0 !== i5 && this._$Eh.set(i5,
|
|
146
|
+
for (const [t4, s4] of this.elementProperties) {
|
|
147
|
+
const i5 = this._$Eu(t4, s4);
|
|
148
|
+
void 0 !== i5 && this._$Eh.set(i5, t4);
|
|
149
149
|
}
|
|
150
150
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
151
151
|
}
|
|
@@ -157,78 +157,78 @@
|
|
|
157
157
|
} else void 0 !== s4 && i5.push(c(s4));
|
|
158
158
|
return i5;
|
|
159
159
|
}
|
|
160
|
-
static _$Eu(
|
|
160
|
+
static _$Eu(t3, s4) {
|
|
161
161
|
const i5 = s4.attribute;
|
|
162
|
-
return false === i5 ? void 0 : "string" == typeof i5 ? i5 : "string" == typeof
|
|
162
|
+
return false === i5 ? void 0 : "string" == typeof i5 ? i5 : "string" == typeof t3 ? t3.toLowerCase() : void 0;
|
|
163
163
|
}
|
|
164
164
|
constructor() {
|
|
165
165
|
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
166
166
|
}
|
|
167
167
|
_$Ev() {
|
|
168
|
-
this._$ES = new Promise(((
|
|
168
|
+
this._$ES = new Promise(((t3) => this.enableUpdating = t3)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((t3) => t3(this)));
|
|
169
169
|
}
|
|
170
|
-
addController(
|
|
171
|
-
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(
|
|
170
|
+
addController(t3) {
|
|
171
|
+
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t3), void 0 !== this.renderRoot && this.isConnected && t3.hostConnected?.();
|
|
172
172
|
}
|
|
173
|
-
removeController(
|
|
174
|
-
this._$EO?.delete(
|
|
173
|
+
removeController(t3) {
|
|
174
|
+
this._$EO?.delete(t3);
|
|
175
175
|
}
|
|
176
176
|
_$E_() {
|
|
177
|
-
const
|
|
178
|
-
for (const i5 of s4.keys()) this.hasOwnProperty(i5) && (
|
|
179
|
-
|
|
177
|
+
const t3 = /* @__PURE__ */ new Map(), s4 = this.constructor.elementProperties;
|
|
178
|
+
for (const i5 of s4.keys()) this.hasOwnProperty(i5) && (t3.set(i5, this[i5]), delete this[i5]);
|
|
179
|
+
t3.size > 0 && (this._$Ep = t3);
|
|
180
180
|
}
|
|
181
181
|
createRenderRoot() {
|
|
182
|
-
const
|
|
183
|
-
return S(
|
|
182
|
+
const t3 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
183
|
+
return S(t3, this.constructor.elementStyles), t3;
|
|
184
184
|
}
|
|
185
185
|
connectedCallback() {
|
|
186
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), this._$EO?.forEach(((
|
|
186
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), this._$EO?.forEach(((t3) => t3.hostConnected?.()));
|
|
187
187
|
}
|
|
188
|
-
enableUpdating(
|
|
188
|
+
enableUpdating(t3) {
|
|
189
189
|
}
|
|
190
190
|
disconnectedCallback() {
|
|
191
|
-
this._$EO?.forEach(((
|
|
191
|
+
this._$EO?.forEach(((t3) => t3.hostDisconnected?.()));
|
|
192
192
|
}
|
|
193
|
-
attributeChangedCallback(
|
|
194
|
-
this._$AK(
|
|
193
|
+
attributeChangedCallback(t3, s4, i5) {
|
|
194
|
+
this._$AK(t3, i5);
|
|
195
195
|
}
|
|
196
|
-
_$ET(
|
|
197
|
-
const i5 = this.constructor.elementProperties.get(
|
|
196
|
+
_$ET(t3, s4) {
|
|
197
|
+
const i5 = this.constructor.elementProperties.get(t3), e5 = this.constructor._$Eu(t3, i5);
|
|
198
198
|
if (void 0 !== e5 && true === i5.reflect) {
|
|
199
199
|
const h3 = (void 0 !== i5.converter?.toAttribute ? i5.converter : u).toAttribute(s4, i5.type);
|
|
200
|
-
this._$Em =
|
|
200
|
+
this._$Em = t3, null == h3 ? this.removeAttribute(e5) : this.setAttribute(e5, h3), this._$Em = null;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
_$AK(
|
|
204
|
-
const i5 = this.constructor, e5 = i5._$Eh.get(
|
|
203
|
+
_$AK(t3, s4) {
|
|
204
|
+
const i5 = this.constructor, e5 = i5._$Eh.get(t3);
|
|
205
205
|
if (void 0 !== e5 && this._$Em !== e5) {
|
|
206
|
-
const
|
|
206
|
+
const t4 = i5.getPropertyOptions(e5), h3 = "function" == typeof t4.converter ? { fromAttribute: t4.converter } : void 0 !== t4.converter?.fromAttribute ? t4.converter : u;
|
|
207
207
|
this._$Em = e5;
|
|
208
|
-
const r6 = h3.fromAttribute(s4,
|
|
208
|
+
const r6 = h3.fromAttribute(s4, t4.type);
|
|
209
209
|
this[e5] = r6 ?? this._$Ej?.get(e5) ?? r6, this._$Em = null;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
requestUpdate(
|
|
213
|
-
if (void 0 !==
|
|
214
|
-
const e5 = this.constructor, h3 = this[
|
|
215
|
-
if (i5 ?? (i5 = e5.getPropertyOptions(
|
|
216
|
-
this.C(
|
|
212
|
+
requestUpdate(t3, s4, i5) {
|
|
213
|
+
if (void 0 !== t3) {
|
|
214
|
+
const e5 = this.constructor, h3 = this[t3];
|
|
215
|
+
if (i5 ?? (i5 = e5.getPropertyOptions(t3)), !((i5.hasChanged ?? f)(h3, s4) || i5.useDefault && i5.reflect && h3 === this._$Ej?.get(t3) && !this.hasAttribute(e5._$Eu(t3, i5)))) return;
|
|
216
|
+
this.C(t3, s4, i5);
|
|
217
217
|
}
|
|
218
218
|
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
219
219
|
}
|
|
220
|
-
C(
|
|
221
|
-
i5 && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(
|
|
220
|
+
C(t3, s4, { useDefault: i5, reflect: e5, wrapped: h3 }, r6) {
|
|
221
|
+
i5 && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t3) && (this._$Ej.set(t3, r6 ?? s4 ?? this[t3]), true !== h3 || void 0 !== r6) || (this._$AL.has(t3) || (this.hasUpdated || i5 || (s4 = void 0), this._$AL.set(t3, s4)), true === e5 && this._$Em !== t3 && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t3));
|
|
222
222
|
}
|
|
223
223
|
async _$EP() {
|
|
224
224
|
this.isUpdatePending = true;
|
|
225
225
|
try {
|
|
226
226
|
await this._$ES;
|
|
227
|
-
} catch (
|
|
228
|
-
Promise.reject(
|
|
227
|
+
} catch (t4) {
|
|
228
|
+
Promise.reject(t4);
|
|
229
229
|
}
|
|
230
|
-
const
|
|
231
|
-
return null !=
|
|
230
|
+
const t3 = this.scheduleUpdate();
|
|
231
|
+
return null != t3 && await t3, !this.isUpdatePending;
|
|
232
232
|
}
|
|
233
233
|
scheduleUpdate() {
|
|
234
234
|
return this.performUpdate();
|
|
@@ -237,28 +237,28 @@
|
|
|
237
237
|
if (!this.isUpdatePending) return;
|
|
238
238
|
if (!this.hasUpdated) {
|
|
239
239
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
240
|
-
for (const [
|
|
240
|
+
for (const [t5, s5] of this._$Ep) this[t5] = s5;
|
|
241
241
|
this._$Ep = void 0;
|
|
242
242
|
}
|
|
243
|
-
const
|
|
244
|
-
if (
|
|
245
|
-
const { wrapped:
|
|
246
|
-
true !==
|
|
243
|
+
const t4 = this.constructor.elementProperties;
|
|
244
|
+
if (t4.size > 0) for (const [s5, i5] of t4) {
|
|
245
|
+
const { wrapped: t5 } = i5, e5 = this[s5];
|
|
246
|
+
true !== t5 || this._$AL.has(s5) || void 0 === e5 || this.C(s5, void 0, i5, e5);
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
let
|
|
249
|
+
let t3 = false;
|
|
250
250
|
const s4 = this._$AL;
|
|
251
251
|
try {
|
|
252
|
-
|
|
252
|
+
t3 = this.shouldUpdate(s4), t3 ? (this.willUpdate(s4), this._$EO?.forEach(((t4) => t4.hostUpdate?.())), this.update(s4)) : this._$EM();
|
|
253
253
|
} catch (s5) {
|
|
254
|
-
throw
|
|
254
|
+
throw t3 = false, this._$EM(), s5;
|
|
255
255
|
}
|
|
256
|
-
|
|
256
|
+
t3 && this._$AE(s4);
|
|
257
257
|
}
|
|
258
|
-
willUpdate(
|
|
258
|
+
willUpdate(t3) {
|
|
259
259
|
}
|
|
260
|
-
_$AE(
|
|
261
|
-
this._$EO?.forEach(((
|
|
260
|
+
_$AE(t3) {
|
|
261
|
+
this._$EO?.forEach(((t4) => t4.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t3)), this.updated(t3);
|
|
262
262
|
}
|
|
263
263
|
_$EM() {
|
|
264
264
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
@@ -269,15 +269,15 @@
|
|
|
269
269
|
getUpdateComplete() {
|
|
270
270
|
return this._$ES;
|
|
271
271
|
}
|
|
272
|
-
shouldUpdate(
|
|
272
|
+
shouldUpdate(t3) {
|
|
273
273
|
return true;
|
|
274
274
|
}
|
|
275
|
-
update(
|
|
276
|
-
this._$Eq && (this._$Eq = this._$Eq.forEach(((
|
|
275
|
+
update(t3) {
|
|
276
|
+
this._$Eq && (this._$Eq = this._$Eq.forEach(((t4) => this._$ET(t4, this[t4])))), this._$EM();
|
|
277
277
|
}
|
|
278
|
-
updated(
|
|
278
|
+
updated(t3) {
|
|
279
279
|
}
|
|
280
|
-
firstUpdated(
|
|
280
|
+
firstUpdated(t3) {
|
|
281
281
|
}
|
|
282
282
|
};
|
|
283
283
|
y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[d("elementProperties")] = /* @__PURE__ */ new Map(), y[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: y }), (a.reactiveElementVersions ?? (a.reactiveElementVersions = [])).push("2.1.1");
|
|
@@ -285,16 +285,16 @@
|
|
|
285
285
|
// node_modules/lit-html/lit-html.js
|
|
286
286
|
var t2 = globalThis;
|
|
287
287
|
var i3 = t2.trustedTypes;
|
|
288
|
-
var s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (
|
|
288
|
+
var s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (t3) => t3 }) : void 0;
|
|
289
289
|
var e3 = "$lit$";
|
|
290
290
|
var h2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
|
|
291
291
|
var o3 = "?" + h2;
|
|
292
292
|
var n3 = `<${o3}>`;
|
|
293
293
|
var r3 = document;
|
|
294
294
|
var l2 = () => r3.createComment("");
|
|
295
|
-
var c3 = (
|
|
295
|
+
var c3 = (t3) => null === t3 || "object" != typeof t3 && "function" != typeof t3;
|
|
296
296
|
var a2 = Array.isArray;
|
|
297
|
-
var u2 = (
|
|
297
|
+
var u2 = (t3) => a2(t3) || "function" == typeof t3?.[Symbol.iterator];
|
|
298
298
|
var d2 = "[ \n\f\r]";
|
|
299
299
|
var f2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
|
|
300
300
|
var v = /-->/g;
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
var p2 = /'/g;
|
|
305
305
|
var g = /"/g;
|
|
306
306
|
var $ = /^(?:script|style|textarea|title)$/i;
|
|
307
|
-
var y2 = (
|
|
307
|
+
var y2 = (t3) => (i5, ...s4) => ({ _$litType$: t3, strings: i5, values: s4 });
|
|
308
308
|
var x = y2(1);
|
|
309
309
|
var b2 = y2(2);
|
|
310
310
|
var w = y2(3);
|
|
@@ -312,68 +312,68 @@
|
|
|
312
312
|
var E = Symbol.for("lit-nothing");
|
|
313
313
|
var A = /* @__PURE__ */ new WeakMap();
|
|
314
314
|
var C = r3.createTreeWalker(r3, 129);
|
|
315
|
-
function P(
|
|
316
|
-
if (!a2(
|
|
315
|
+
function P(t3, i5) {
|
|
316
|
+
if (!a2(t3) || !t3.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
317
317
|
return void 0 !== s2 ? s2.createHTML(i5) : i5;
|
|
318
318
|
}
|
|
319
|
-
var V = (
|
|
320
|
-
const s4 =
|
|
319
|
+
var V = (t3, i5) => {
|
|
320
|
+
const s4 = t3.length - 1, o6 = [];
|
|
321
321
|
let r6, l3 = 2 === i5 ? "<svg>" : 3 === i5 ? "<math>" : "", c4 = f2;
|
|
322
322
|
for (let i6 = 0; i6 < s4; i6++) {
|
|
323
|
-
const s5 =
|
|
323
|
+
const s5 = t3[i6];
|
|
324
324
|
let a3, u3, d3 = -1, y3 = 0;
|
|
325
325
|
for (; y3 < s5.length && (c4.lastIndex = y3, u3 = c4.exec(s5), null !== u3); ) y3 = c4.lastIndex, c4 === f2 ? "!--" === u3[1] ? c4 = v : void 0 !== u3[1] ? c4 = _ : void 0 !== u3[2] ? ($.test(u3[2]) && (r6 = RegExp("</" + u3[2], "g")), c4 = m) : void 0 !== u3[3] && (c4 = m) : c4 === m ? ">" === u3[0] ? (c4 = r6 ?? f2, d3 = -1) : void 0 === u3[1] ? d3 = -2 : (d3 = c4.lastIndex - u3[2].length, a3 = u3[1], c4 = void 0 === u3[3] ? m : '"' === u3[3] ? g : p2) : c4 === g || c4 === p2 ? c4 = m : c4 === v || c4 === _ ? c4 = f2 : (c4 = m, r6 = void 0);
|
|
326
|
-
const x2 = c4 === m &&
|
|
326
|
+
const x2 = c4 === m && t3[i6 + 1].startsWith("/>") ? " " : "";
|
|
327
327
|
l3 += c4 === f2 ? s5 + n3 : d3 >= 0 ? (o6.push(a3), s5.slice(0, d3) + e3 + s5.slice(d3) + h2 + x2) : s5 + h2 + (-2 === d3 ? i6 : x2);
|
|
328
328
|
}
|
|
329
|
-
return [P(
|
|
329
|
+
return [P(t3, l3 + (t3[s4] || "<?>") + (2 === i5 ? "</svg>" : 3 === i5 ? "</math>" : "")), o6];
|
|
330
330
|
};
|
|
331
331
|
var N = class _N {
|
|
332
|
-
constructor({ strings:
|
|
332
|
+
constructor({ strings: t3, _$litType$: s4 }, n5) {
|
|
333
333
|
let r6;
|
|
334
334
|
this.parts = [];
|
|
335
335
|
let c4 = 0, a3 = 0;
|
|
336
|
-
const u3 =
|
|
336
|
+
const u3 = t3.length - 1, d3 = this.parts, [f3, v2] = V(t3, s4);
|
|
337
337
|
if (this.el = _N.createElement(f3, n5), C.currentNode = this.el.content, 2 === s4 || 3 === s4) {
|
|
338
|
-
const
|
|
339
|
-
|
|
338
|
+
const t4 = this.el.content.firstChild;
|
|
339
|
+
t4.replaceWith(...t4.childNodes);
|
|
340
340
|
}
|
|
341
341
|
for (; null !== (r6 = C.nextNode()) && d3.length < u3; ) {
|
|
342
342
|
if (1 === r6.nodeType) {
|
|
343
|
-
if (r6.hasAttributes()) for (const
|
|
344
|
-
const i5 = v2[a3++], s5 = r6.getAttribute(
|
|
345
|
-
d3.push({ type: 1, index: c4, name: e5[2], strings: s5, ctor: "." === e5[1] ? H : "?" === e5[1] ? I : "@" === e5[1] ? L : k }), r6.removeAttribute(
|
|
346
|
-
} else
|
|
343
|
+
if (r6.hasAttributes()) for (const t4 of r6.getAttributeNames()) if (t4.endsWith(e3)) {
|
|
344
|
+
const i5 = v2[a3++], s5 = r6.getAttribute(t4).split(h2), e5 = /([.?@])?(.*)/.exec(i5);
|
|
345
|
+
d3.push({ type: 1, index: c4, name: e5[2], strings: s5, ctor: "." === e5[1] ? H : "?" === e5[1] ? I : "@" === e5[1] ? L : k }), r6.removeAttribute(t4);
|
|
346
|
+
} else t4.startsWith(h2) && (d3.push({ type: 6, index: c4 }), r6.removeAttribute(t4));
|
|
347
347
|
if ($.test(r6.tagName)) {
|
|
348
|
-
const
|
|
348
|
+
const t4 = r6.textContent.split(h2), s5 = t4.length - 1;
|
|
349
349
|
if (s5 > 0) {
|
|
350
350
|
r6.textContent = i3 ? i3.emptyScript : "";
|
|
351
|
-
for (let i5 = 0; i5 < s5; i5++) r6.append(
|
|
352
|
-
r6.append(
|
|
351
|
+
for (let i5 = 0; i5 < s5; i5++) r6.append(t4[i5], l2()), C.nextNode(), d3.push({ type: 2, index: ++c4 });
|
|
352
|
+
r6.append(t4[s5], l2());
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
} else if (8 === r6.nodeType) if (r6.data === o3) d3.push({ type: 2, index: c4 });
|
|
356
356
|
else {
|
|
357
|
-
let
|
|
358
|
-
for (; -1 !== (
|
|
357
|
+
let t4 = -1;
|
|
358
|
+
for (; -1 !== (t4 = r6.data.indexOf(h2, t4 + 1)); ) d3.push({ type: 7, index: c4 }), t4 += h2.length - 1;
|
|
359
359
|
}
|
|
360
360
|
c4++;
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
static createElement(
|
|
363
|
+
static createElement(t3, i5) {
|
|
364
364
|
const s4 = r3.createElement("template");
|
|
365
|
-
return s4.innerHTML =
|
|
365
|
+
return s4.innerHTML = t3, s4;
|
|
366
366
|
}
|
|
367
367
|
};
|
|
368
|
-
function S2(
|
|
368
|
+
function S2(t3, i5, s4 = t3, e5) {
|
|
369
369
|
if (i5 === T) return i5;
|
|
370
370
|
let h3 = void 0 !== e5 ? s4._$Co?.[e5] : s4._$Cl;
|
|
371
371
|
const o6 = c3(i5) ? void 0 : i5._$litDirective$;
|
|
372
|
-
return h3?.constructor !== o6 && (h3?._$AO?.(false), void 0 === o6 ? h3 = void 0 : (h3 = new o6(
|
|
372
|
+
return h3?.constructor !== o6 && (h3?._$AO?.(false), void 0 === o6 ? h3 = void 0 : (h3 = new o6(t3), h3._$AT(t3, s4, e5)), void 0 !== e5 ? (s4._$Co ?? (s4._$Co = []))[e5] = h3 : s4._$Cl = h3), void 0 !== h3 && (i5 = S2(t3, h3._$AS(t3, i5.values), h3, e5)), i5;
|
|
373
373
|
}
|
|
374
374
|
var M = class {
|
|
375
|
-
constructor(
|
|
376
|
-
this._$AV = [], this._$AN = void 0, this._$AD =
|
|
375
|
+
constructor(t3, i5) {
|
|
376
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t3, this._$AM = i5;
|
|
377
377
|
}
|
|
378
378
|
get parentNode() {
|
|
379
379
|
return this._$AM.parentNode;
|
|
@@ -381,35 +381,35 @@
|
|
|
381
381
|
get _$AU() {
|
|
382
382
|
return this._$AM._$AU;
|
|
383
383
|
}
|
|
384
|
-
u(
|
|
385
|
-
const { el: { content: i5 }, parts: s4 } = this._$AD, e5 = (
|
|
384
|
+
u(t3) {
|
|
385
|
+
const { el: { content: i5 }, parts: s4 } = this._$AD, e5 = (t3?.creationScope ?? r3).importNode(i5, true);
|
|
386
386
|
C.currentNode = e5;
|
|
387
387
|
let h3 = C.nextNode(), o6 = 0, n5 = 0, l3 = s4[0];
|
|
388
388
|
for (; void 0 !== l3; ) {
|
|
389
389
|
if (o6 === l3.index) {
|
|
390
390
|
let i6;
|
|
391
|
-
2 === l3.type ? i6 = new R(h3, h3.nextSibling, this,
|
|
391
|
+
2 === l3.type ? i6 = new R(h3, h3.nextSibling, this, t3) : 1 === l3.type ? i6 = new l3.ctor(h3, l3.name, l3.strings, this, t3) : 6 === l3.type && (i6 = new z(h3, this, t3)), this._$AV.push(i6), l3 = s4[++n5];
|
|
392
392
|
}
|
|
393
393
|
o6 !== l3?.index && (h3 = C.nextNode(), o6++);
|
|
394
394
|
}
|
|
395
395
|
return C.currentNode = r3, e5;
|
|
396
396
|
}
|
|
397
|
-
p(
|
|
397
|
+
p(t3) {
|
|
398
398
|
let i5 = 0;
|
|
399
|
-
for (const s4 of this._$AV) void 0 !== s4 && (void 0 !== s4.strings ? (s4._$AI(
|
|
399
|
+
for (const s4 of this._$AV) void 0 !== s4 && (void 0 !== s4.strings ? (s4._$AI(t3, s4, i5), i5 += s4.strings.length - 2) : s4._$AI(t3[i5])), i5++;
|
|
400
400
|
}
|
|
401
401
|
};
|
|
402
402
|
var R = class _R {
|
|
403
403
|
get _$AU() {
|
|
404
404
|
return this._$AM?._$AU ?? this._$Cv;
|
|
405
405
|
}
|
|
406
|
-
constructor(
|
|
407
|
-
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA =
|
|
406
|
+
constructor(t3, i5, s4, e5) {
|
|
407
|
+
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t3, this._$AB = i5, this._$AM = s4, this.options = e5, this._$Cv = e5?.isConnected ?? true;
|
|
408
408
|
}
|
|
409
409
|
get parentNode() {
|
|
410
|
-
let
|
|
410
|
+
let t3 = this._$AA.parentNode;
|
|
411
411
|
const i5 = this._$AM;
|
|
412
|
-
return void 0 !== i5 && 11 ===
|
|
412
|
+
return void 0 !== i5 && 11 === t3?.nodeType && (t3 = i5.parentNode), t3;
|
|
413
413
|
}
|
|
414
414
|
get startNode() {
|
|
415
415
|
return this._$AA;
|
|
@@ -417,45 +417,45 @@
|
|
|
417
417
|
get endNode() {
|
|
418
418
|
return this._$AB;
|
|
419
419
|
}
|
|
420
|
-
_$AI(
|
|
421
|
-
|
|
420
|
+
_$AI(t3, i5 = this) {
|
|
421
|
+
t3 = S2(this, t3, i5), c3(t3) ? t3 === E || null == t3 || "" === t3 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t3 !== this._$AH && t3 !== T && this._(t3) : void 0 !== t3._$litType$ ? this.$(t3) : void 0 !== t3.nodeType ? this.T(t3) : u2(t3) ? this.k(t3) : this._(t3);
|
|
422
422
|
}
|
|
423
|
-
O(
|
|
424
|
-
return this._$AA.parentNode.insertBefore(
|
|
423
|
+
O(t3) {
|
|
424
|
+
return this._$AA.parentNode.insertBefore(t3, this._$AB);
|
|
425
425
|
}
|
|
426
|
-
T(
|
|
427
|
-
this._$AH !==
|
|
426
|
+
T(t3) {
|
|
427
|
+
this._$AH !== t3 && (this._$AR(), this._$AH = this.O(t3));
|
|
428
428
|
}
|
|
429
|
-
_(
|
|
430
|
-
this._$AH !== E && c3(this._$AH) ? this._$AA.nextSibling.data =
|
|
429
|
+
_(t3) {
|
|
430
|
+
this._$AH !== E && c3(this._$AH) ? this._$AA.nextSibling.data = t3 : this.T(r3.createTextNode(t3)), this._$AH = t3;
|
|
431
431
|
}
|
|
432
|
-
$(
|
|
433
|
-
const { values: i5, _$litType$: s4 } =
|
|
432
|
+
$(t3) {
|
|
433
|
+
const { values: i5, _$litType$: s4 } = t3, e5 = "number" == typeof s4 ? this._$AC(t3) : (void 0 === s4.el && (s4.el = N.createElement(P(s4.h, s4.h[0]), this.options)), s4);
|
|
434
434
|
if (this._$AH?._$AD === e5) this._$AH.p(i5);
|
|
435
435
|
else {
|
|
436
|
-
const
|
|
437
|
-
|
|
436
|
+
const t4 = new M(e5, this), s5 = t4.u(this.options);
|
|
437
|
+
t4.p(i5), this.T(s5), this._$AH = t4;
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
_$AC(
|
|
441
|
-
let i5 = A.get(
|
|
442
|
-
return void 0 === i5 && A.set(
|
|
440
|
+
_$AC(t3) {
|
|
441
|
+
let i5 = A.get(t3.strings);
|
|
442
|
+
return void 0 === i5 && A.set(t3.strings, i5 = new N(t3)), i5;
|
|
443
443
|
}
|
|
444
|
-
k(
|
|
444
|
+
k(t3) {
|
|
445
445
|
a2(this._$AH) || (this._$AH = [], this._$AR());
|
|
446
446
|
const i5 = this._$AH;
|
|
447
447
|
let s4, e5 = 0;
|
|
448
|
-
for (const h3 of
|
|
448
|
+
for (const h3 of t3) e5 === i5.length ? i5.push(s4 = new _R(this.O(l2()), this.O(l2()), this, this.options)) : s4 = i5[e5], s4._$AI(h3), e5++;
|
|
449
449
|
e5 < i5.length && (this._$AR(s4 && s4._$AB.nextSibling, e5), i5.length = e5);
|
|
450
450
|
}
|
|
451
|
-
_$AR(
|
|
452
|
-
for (this._$AP?.(false, true, i5);
|
|
453
|
-
const i6 =
|
|
454
|
-
|
|
451
|
+
_$AR(t3 = this._$AA.nextSibling, i5) {
|
|
452
|
+
for (this._$AP?.(false, true, i5); t3 !== this._$AB; ) {
|
|
453
|
+
const i6 = t3.nextSibling;
|
|
454
|
+
t3.remove(), t3 = i6;
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
setConnected(
|
|
458
|
-
void 0 === this._$AM && (this._$Cv =
|
|
457
|
+
setConnected(t3) {
|
|
458
|
+
void 0 === this._$AM && (this._$Cv = t3, this._$AP?.(t3));
|
|
459
459
|
}
|
|
460
460
|
};
|
|
461
461
|
var k = class {
|
|
@@ -465,74 +465,74 @@
|
|
|
465
465
|
get _$AU() {
|
|
466
466
|
return this._$AM._$AU;
|
|
467
467
|
}
|
|
468
|
-
constructor(
|
|
469
|
-
this.type = 1, this._$AH = E, this._$AN = void 0, this.element =
|
|
468
|
+
constructor(t3, i5, s4, e5, h3) {
|
|
469
|
+
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t3, this.name = i5, this._$AM = e5, this.options = h3, s4.length > 2 || "" !== s4[0] || "" !== s4[1] ? (this._$AH = Array(s4.length - 1).fill(new String()), this.strings = s4) : this._$AH = E;
|
|
470
470
|
}
|
|
471
|
-
_$AI(
|
|
471
|
+
_$AI(t3, i5 = this, s4, e5) {
|
|
472
472
|
const h3 = this.strings;
|
|
473
473
|
let o6 = false;
|
|
474
|
-
if (void 0 === h3)
|
|
474
|
+
if (void 0 === h3) t3 = S2(this, t3, i5, 0), o6 = !c3(t3) || t3 !== this._$AH && t3 !== T, o6 && (this._$AH = t3);
|
|
475
475
|
else {
|
|
476
|
-
const e6 =
|
|
476
|
+
const e6 = t3;
|
|
477
477
|
let n5, r6;
|
|
478
|
-
for (
|
|
478
|
+
for (t3 = h3[0], n5 = 0; n5 < h3.length - 1; n5++) r6 = S2(this, e6[s4 + n5], i5, n5), r6 === T && (r6 = this._$AH[n5]), o6 || (o6 = !c3(r6) || r6 !== this._$AH[n5]), r6 === E ? t3 = E : t3 !== E && (t3 += (r6 ?? "") + h3[n5 + 1]), this._$AH[n5] = r6;
|
|
479
479
|
}
|
|
480
|
-
o6 && !e5 && this.j(
|
|
480
|
+
o6 && !e5 && this.j(t3);
|
|
481
481
|
}
|
|
482
|
-
j(
|
|
483
|
-
|
|
482
|
+
j(t3) {
|
|
483
|
+
t3 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t3 ?? "");
|
|
484
484
|
}
|
|
485
485
|
};
|
|
486
486
|
var H = class extends k {
|
|
487
487
|
constructor() {
|
|
488
488
|
super(...arguments), this.type = 3;
|
|
489
489
|
}
|
|
490
|
-
j(
|
|
491
|
-
this.element[this.name] =
|
|
490
|
+
j(t3) {
|
|
491
|
+
this.element[this.name] = t3 === E ? void 0 : t3;
|
|
492
492
|
}
|
|
493
493
|
};
|
|
494
494
|
var I = class extends k {
|
|
495
495
|
constructor() {
|
|
496
496
|
super(...arguments), this.type = 4;
|
|
497
497
|
}
|
|
498
|
-
j(
|
|
499
|
-
this.element.toggleAttribute(this.name, !!
|
|
498
|
+
j(t3) {
|
|
499
|
+
this.element.toggleAttribute(this.name, !!t3 && t3 !== E);
|
|
500
500
|
}
|
|
501
501
|
};
|
|
502
502
|
var L = class extends k {
|
|
503
|
-
constructor(
|
|
504
|
-
super(
|
|
503
|
+
constructor(t3, i5, s4, e5, h3) {
|
|
504
|
+
super(t3, i5, s4, e5, h3), this.type = 5;
|
|
505
505
|
}
|
|
506
|
-
_$AI(
|
|
507
|
-
if ((
|
|
508
|
-
const s4 = this._$AH, e5 =
|
|
509
|
-
e5 && this.element.removeEventListener(this.name, this, s4), h3 && this.element.addEventListener(this.name, this,
|
|
506
|
+
_$AI(t3, i5 = this) {
|
|
507
|
+
if ((t3 = S2(this, t3, i5, 0) ?? E) === T) return;
|
|
508
|
+
const s4 = this._$AH, e5 = t3 === E && s4 !== E || t3.capture !== s4.capture || t3.once !== s4.once || t3.passive !== s4.passive, h3 = t3 !== E && (s4 === E || e5);
|
|
509
|
+
e5 && this.element.removeEventListener(this.name, this, s4), h3 && this.element.addEventListener(this.name, this, t3), this._$AH = t3;
|
|
510
510
|
}
|
|
511
|
-
handleEvent(
|
|
512
|
-
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element,
|
|
511
|
+
handleEvent(t3) {
|
|
512
|
+
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t3) : this._$AH.handleEvent(t3);
|
|
513
513
|
}
|
|
514
514
|
};
|
|
515
515
|
var z = class {
|
|
516
|
-
constructor(
|
|
517
|
-
this.element =
|
|
516
|
+
constructor(t3, i5, s4) {
|
|
517
|
+
this.element = t3, this.type = 6, this._$AN = void 0, this._$AM = i5, this.options = s4;
|
|
518
518
|
}
|
|
519
519
|
get _$AU() {
|
|
520
520
|
return this._$AM._$AU;
|
|
521
521
|
}
|
|
522
|
-
_$AI(
|
|
523
|
-
S2(this,
|
|
522
|
+
_$AI(t3) {
|
|
523
|
+
S2(this, t3);
|
|
524
524
|
}
|
|
525
525
|
};
|
|
526
526
|
var j = t2.litHtmlPolyfillSupport;
|
|
527
527
|
j?.(N, R), (t2.litHtmlVersions ?? (t2.litHtmlVersions = [])).push("3.3.1");
|
|
528
|
-
var B = (
|
|
528
|
+
var B = (t3, i5, s4) => {
|
|
529
529
|
const e5 = s4?.renderBefore ?? i5;
|
|
530
530
|
let h3 = e5._$litPart$;
|
|
531
531
|
if (void 0 === h3) {
|
|
532
|
-
const
|
|
533
|
-
e5._$litPart$ = h3 = new R(i5.insertBefore(l2(),
|
|
532
|
+
const t4 = s4?.renderBefore ?? null;
|
|
533
|
+
e5._$litPart$ = h3 = new R(i5.insertBefore(l2(), t4), t4, void 0, s4 ?? {});
|
|
534
534
|
}
|
|
535
|
-
return h3._$AI(
|
|
535
|
+
return h3._$AI(t3), h3;
|
|
536
536
|
};
|
|
537
537
|
|
|
538
538
|
// node_modules/lit-element/lit-element.js
|
|
@@ -543,12 +543,12 @@
|
|
|
543
543
|
}
|
|
544
544
|
createRenderRoot() {
|
|
545
545
|
var _a;
|
|
546
|
-
const
|
|
547
|
-
return (_a = this.renderOptions).renderBefore ?? (_a.renderBefore =
|
|
546
|
+
const t3 = super.createRenderRoot();
|
|
547
|
+
return (_a = this.renderOptions).renderBefore ?? (_a.renderBefore = t3.firstChild), t3;
|
|
548
548
|
}
|
|
549
|
-
update(
|
|
549
|
+
update(t3) {
|
|
550
550
|
const r6 = this.render();
|
|
551
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(
|
|
551
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t3), this._$Do = B(r6, this.renderRoot, this.renderOptions);
|
|
552
552
|
}
|
|
553
553
|
connectedCallback() {
|
|
554
554
|
super.connectedCallback(), this._$Do?.setConnected(true);
|
|
@@ -565,41 +565,34 @@
|
|
|
565
565
|
o4?.({ LitElement: i4 });
|
|
566
566
|
(s3.litElementVersions ?? (s3.litElementVersions = [])).push("4.2.1");
|
|
567
567
|
|
|
568
|
-
// node_modules/@lit/reactive-element/decorators/custom-element.js
|
|
569
|
-
var t3 = (t4) => (e5, o6) => {
|
|
570
|
-
void 0 !== o6 ? o6.addInitializer((() => {
|
|
571
|
-
customElements.define(t4, e5);
|
|
572
|
-
})) : customElements.define(t4, e5);
|
|
573
|
-
};
|
|
574
|
-
|
|
575
568
|
// node_modules/@lit/reactive-element/decorators/property.js
|
|
576
569
|
var o5 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
|
|
577
|
-
var r4 = (
|
|
570
|
+
var r4 = (t3 = o5, e5, r6) => {
|
|
578
571
|
const { kind: n5, metadata: i5 } = r6;
|
|
579
572
|
let s4 = globalThis.litPropertyMetadata.get(i5);
|
|
580
|
-
if (void 0 === s4 && globalThis.litPropertyMetadata.set(i5, s4 = /* @__PURE__ */ new Map()), "setter" === n5 && ((
|
|
573
|
+
if (void 0 === s4 && globalThis.litPropertyMetadata.set(i5, s4 = /* @__PURE__ */ new Map()), "setter" === n5 && ((t3 = Object.create(t3)).wrapped = true), s4.set(r6.name, t3), "accessor" === n5) {
|
|
581
574
|
const { name: o6 } = r6;
|
|
582
575
|
return { set(r7) {
|
|
583
576
|
const n6 = e5.get.call(this);
|
|
584
|
-
e5.set.call(this, r7), this.requestUpdate(o6, n6,
|
|
577
|
+
e5.set.call(this, r7), this.requestUpdate(o6, n6, t3);
|
|
585
578
|
}, init(e6) {
|
|
586
|
-
return void 0 !== e6 && this.C(o6, void 0,
|
|
579
|
+
return void 0 !== e6 && this.C(o6, void 0, t3, e6), e6;
|
|
587
580
|
} };
|
|
588
581
|
}
|
|
589
582
|
if ("setter" === n5) {
|
|
590
583
|
const { name: o6 } = r6;
|
|
591
584
|
return function(r7) {
|
|
592
585
|
const n6 = this[o6];
|
|
593
|
-
e5.call(this, r7), this.requestUpdate(o6, n6,
|
|
586
|
+
e5.call(this, r7), this.requestUpdate(o6, n6, t3);
|
|
594
587
|
};
|
|
595
588
|
}
|
|
596
589
|
throw Error("Unsupported decorator location: " + n5);
|
|
597
590
|
};
|
|
598
|
-
function n4(
|
|
599
|
-
return (e5, o6) => "object" == typeof o6 ? r4(
|
|
591
|
+
function n4(t3) {
|
|
592
|
+
return (e5, o6) => "object" == typeof o6 ? r4(t3, e5, o6) : ((t4, e6, o7) => {
|
|
600
593
|
const r6 = e6.hasOwnProperty(o7);
|
|
601
|
-
return e6.constructor.createProperty(o7,
|
|
602
|
-
})(
|
|
594
|
+
return e6.constructor.createProperty(o7, t4), r6 ? Object.getOwnPropertyDescriptor(e6, o7) : void 0;
|
|
595
|
+
})(t3, e5, o6);
|
|
603
596
|
}
|
|
604
597
|
|
|
605
598
|
// node_modules/@lit/reactive-element/decorators/state.js
|
|
@@ -1845,10 +1838,10 @@
|
|
|
1845
1838
|
this.port = opts.port || (typeof location !== "undefined" && location.port ? location.port : this.secure ? "443" : "80");
|
|
1846
1839
|
this.transports = [];
|
|
1847
1840
|
this._transportsByName = {};
|
|
1848
|
-
opts.transports.forEach((
|
|
1849
|
-
const transportName =
|
|
1841
|
+
opts.transports.forEach((t3) => {
|
|
1842
|
+
const transportName = t3.prototype.name;
|
|
1850
1843
|
this.transports.push(transportName);
|
|
1851
|
-
this._transportsByName[transportName] =
|
|
1844
|
+
this._transportsByName[transportName] = t3;
|
|
1852
1845
|
});
|
|
1853
1846
|
this.opts = Object.assign({
|
|
1854
1847
|
path: "/engine.io",
|
|
@@ -2359,7 +2352,7 @@
|
|
|
2359
2352
|
constructor(uri, opts = {}) {
|
|
2360
2353
|
const o6 = typeof uri === "object" ? uri : opts;
|
|
2361
2354
|
if (!o6.transports || o6.transports && typeof o6.transports[0] === "string") {
|
|
2362
|
-
o6.transports = (o6.transports || ["polling", "websocket", "webtransport"]).map((transportName) => transports[transportName]).filter((
|
|
2355
|
+
o6.transports = (o6.transports || ["polling", "websocket", "webtransport"]).map((transportName) => transports[transportName]).filter((t3) => !!t3);
|
|
2363
2356
|
}
|
|
2364
2357
|
super(uri, o6);
|
|
2365
2358
|
}
|
|
@@ -7570,6 +7563,12 @@
|
|
|
7570
7563
|
}
|
|
7571
7564
|
connectedCallback() {
|
|
7572
7565
|
super.connectedCallback();
|
|
7566
|
+
if (!document.querySelector('link[href*="JetBrains+Mono"]')) {
|
|
7567
|
+
const link = document.createElement("link");
|
|
7568
|
+
link.rel = "stylesheet";
|
|
7569
|
+
link.href = "https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap";
|
|
7570
|
+
document.head.appendChild(link);
|
|
7571
|
+
}
|
|
7573
7572
|
this.initializeManagers();
|
|
7574
7573
|
if (this.demo) {
|
|
7575
7574
|
this.connected = true;
|
|
@@ -7792,7 +7791,7 @@
|
|
|
7792
7791
|
// Filter out all annotator UI elements
|
|
7793
7792
|
filter: (node) => {
|
|
7794
7793
|
if (node instanceof Element) {
|
|
7795
|
-
const className = node.className || "";
|
|
7794
|
+
const className = typeof node.className === "string" ? node.className : node.className?.baseVal || "";
|
|
7796
7795
|
const tagName = node.tagName?.toLowerCase() || "";
|
|
7797
7796
|
if (className.includes("annotator-") || tagName === "annotator-toolbar") {
|
|
7798
7797
|
return false;
|
|
@@ -8058,8 +8057,11 @@
|
|
|
8058
8057
|
this.showToast("No elements selected");
|
|
8059
8058
|
return;
|
|
8060
8059
|
}
|
|
8061
|
-
|
|
8062
|
-
|
|
8060
|
+
if (!this.sessionId) {
|
|
8061
|
+
this.showToast("No session ID");
|
|
8062
|
+
return;
|
|
8063
|
+
}
|
|
8064
|
+
const text = `I have selected ${elements.length} feedback item(s) in the browser (session: ${this.sessionId}). Fetch them via GET ${this.wsEndpoint}/api/sessions/${this.sessionId}/feedback and modify the code accordingly.`;
|
|
8063
8065
|
try {
|
|
8064
8066
|
await navigator.clipboard.writeText(text);
|
|
8065
8067
|
this.showToast(`Copied ${elements.length} element(s)`);
|
|
@@ -8166,7 +8168,7 @@
|
|
|
8166
8168
|
this.showToast("No session ID");
|
|
8167
8169
|
return;
|
|
8168
8170
|
}
|
|
8169
|
-
const text = `I have feedback in the browser (session: ${this.sessionId}).
|
|
8171
|
+
const text = `I have feedback in the browser (session: ${this.sessionId}). Fetch them via GET ${this.wsEndpoint}/api/sessions/${this.sessionId}/feedback`;
|
|
8170
8172
|
try {
|
|
8171
8173
|
await navigator.clipboard.writeText(text);
|
|
8172
8174
|
this.showToast("Copied!");
|
|
@@ -8280,8 +8282,6 @@
|
|
|
8280
8282
|
}
|
|
8281
8283
|
};
|
|
8282
8284
|
AnnotatorToolbar.styles = i`
|
|
8283
|
-
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');
|
|
8284
|
-
|
|
8285
8285
|
:host {
|
|
8286
8286
|
--cyber-pink: #FF00FF;
|
|
8287
8287
|
--cyber-cyan: #00FFFF;
|
|
@@ -8574,9 +8574,9 @@
|
|
|
8574
8574
|
__decorateClass([
|
|
8575
8575
|
r5()
|
|
8576
8576
|
], AnnotatorToolbar.prototype, "toastMessage", 2);
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8577
|
+
if (!customElements.get("annotator-toolbar")) {
|
|
8578
|
+
customElements.define("annotator-toolbar", AnnotatorToolbar);
|
|
8579
|
+
}
|
|
8580
8580
|
})();
|
|
8581
8581
|
/*! Bundled license information:
|
|
8582
8582
|
|
package/package.json
CHANGED