@pie-players/pie-tool-line-reader 0.3.30 → 0.3.32
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/tool-line-reader.js +997 -917
- package/package.json +4 -4
package/dist/tool-line-reader.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as g } from "./defineProperty-CyepwRr5.js";
|
|
2
2
|
if (typeof window < "u") {
|
|
3
|
-
var
|
|
4
|
-
((
|
|
3
|
+
var Zr, ei;
|
|
4
|
+
((Zr = (ei = window).__svelte ?? (ei.__svelte = {})).v ?? (Zr.v = /* @__PURE__ */ new Set())).add("5");
|
|
5
5
|
}
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var et = {}, N = Symbol(), cl = Symbol("filename");
|
|
7
|
+
var ao = Array.isArray, lo = Array.prototype.indexOf, tt = Array.prototype.includes, co = Array.from, jt = Object.keys, Dt = Object.defineProperty, De = Object.getOwnPropertyDescriptor, uo = Object.getOwnPropertyDescriptors, fo = Object.prototype, ho = Array.prototype, Ci = Object.getPrototypeOf, ti = Object.isExtensible, po = () => {
|
|
8
8
|
};
|
|
9
|
-
function
|
|
9
|
+
function vo(e) {
|
|
10
10
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ni() {
|
|
13
13
|
var e, t;
|
|
14
14
|
return {
|
|
15
15
|
promise: new Promise((r, i) => {
|
|
@@ -19,83 +19,83 @@ function Li() {
|
|
|
19
19
|
reject: t
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var ul = 1 << 24, J = 1024, oe = 2048, Ue = 4096, Ar = 8192, _o = 16384, Er = 32768, ri = 1 << 25, Mr = 65536, fl = 1 << 17, dl = 1 << 18, lt = 1 << 19, go = 1 << 20, bt = 65536, ii = 1 << 21, mo = 1 << 22, zt = 1 << 23, pt = Symbol("$state"), ji = Symbol("legacy props"), bo = Symbol(""), yo = Symbol("proxy path"), hl = Symbol("hmr anchor"), ge = new class extends Error {
|
|
23
23
|
constructor(...t) {
|
|
24
24
|
super(...t), g(this, "name", "StaleReactionError"), g(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
25
25
|
}
|
|
26
|
-
}(),
|
|
27
|
-
function
|
|
26
|
+
}(), wo = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
27
|
+
function To(e) {
|
|
28
28
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function ko() {
|
|
31
31
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function So(e) {
|
|
34
34
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Io() {
|
|
37
37
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function $o(e) {
|
|
40
40
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Ao() {
|
|
43
43
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Eo() {
|
|
46
46
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Mo(e) {
|
|
49
49
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Oo() {
|
|
52
52
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function xo() {
|
|
55
55
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Po() {
|
|
58
58
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Lo() {
|
|
61
61
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Ro() {
|
|
64
64
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Gt(e) {
|
|
67
67
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Co() {
|
|
70
70
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
71
71
|
}
|
|
72
72
|
var O = !1;
|
|
73
|
-
function
|
|
73
|
+
function Xe(e) {
|
|
74
74
|
O = e;
|
|
75
75
|
}
|
|
76
76
|
var A;
|
|
77
77
|
function ne(e) {
|
|
78
78
|
if (e === null)
|
|
79
|
-
throw
|
|
79
|
+
throw Gt(), et;
|
|
80
80
|
return A = e;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Or() {
|
|
83
83
|
return ne(/* @__PURE__ */ Te(A));
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function ni(e) {
|
|
86
86
|
if (O) {
|
|
87
87
|
if (/* @__PURE__ */ Te(A) !== null)
|
|
88
|
-
throw
|
|
88
|
+
throw Gt(), et;
|
|
89
89
|
A = e;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Di(e = 1) {
|
|
93
93
|
if (O) {
|
|
94
94
|
for (var t = e, r = A; t--; ) r = /* @__PURE__ */ Te(r);
|
|
95
95
|
A = r;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function zi(e = !0) {
|
|
99
99
|
for (var t = 0, r = A; ; ) {
|
|
100
100
|
if (r.nodeType === 8) {
|
|
101
101
|
var i = r.data;
|
|
@@ -108,84 +108,84 @@ function Ci(e = !0) {
|
|
|
108
108
|
e && r.remove(), r = n;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function No(e) {
|
|
112
112
|
if (!e || e.nodeType !== 8)
|
|
113
|
-
throw
|
|
113
|
+
throw Gt(), et;
|
|
114
114
|
return e.data;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Vi(e) {
|
|
117
117
|
return e === this.v;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function jo(e, t) {
|
|
120
120
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
return !
|
|
122
|
+
function Wi(e) {
|
|
123
|
+
return !jo(e, this.v);
|
|
124
124
|
}
|
|
125
|
-
var me = !1,
|
|
126
|
-
function
|
|
127
|
-
return e.label = t,
|
|
125
|
+
var me = !1, yt = !1;
|
|
126
|
+
function oi(e, t) {
|
|
127
|
+
return e.label = t, Do(e.v, t), e;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
return e?.[
|
|
129
|
+
function Do(e, t) {
|
|
130
|
+
return e?.[yo]?.(t), e;
|
|
131
131
|
}
|
|
132
|
-
var
|
|
133
|
-
function
|
|
134
|
-
|
|
132
|
+
var L = null;
|
|
133
|
+
function rt(e) {
|
|
134
|
+
L = e;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
|
|
138
|
-
p:
|
|
136
|
+
function Hi(e, t = !1, r) {
|
|
137
|
+
L = {
|
|
138
|
+
p: L,
|
|
139
139
|
i: !1,
|
|
140
140
|
c: null,
|
|
141
141
|
e: null,
|
|
142
142
|
s: e,
|
|
143
143
|
x: null,
|
|
144
144
|
r: k,
|
|
145
|
-
l:
|
|
145
|
+
l: yt && !t ? {
|
|
146
146
|
s: null,
|
|
147
147
|
u: null,
|
|
148
148
|
$: []
|
|
149
149
|
} : null
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
var t =
|
|
152
|
+
function Fi(e) {
|
|
153
|
+
var t = L, r = t.e;
|
|
154
154
|
if (r !== null) {
|
|
155
155
|
t.e = null;
|
|
156
|
-
for (var i of r)
|
|
156
|
+
for (var i of r) vn(i);
|
|
157
157
|
}
|
|
158
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
158
|
+
return e !== void 0 && (t.x = e), t.i = !0, L = t.p, e ?? {};
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
return !
|
|
160
|
+
function wt() {
|
|
161
|
+
return !yt || L !== null && L.l === null;
|
|
162
162
|
}
|
|
163
|
-
var
|
|
164
|
-
function
|
|
165
|
-
var e =
|
|
166
|
-
|
|
163
|
+
var Ne = [];
|
|
164
|
+
function Bi() {
|
|
165
|
+
var e = Ne;
|
|
166
|
+
Ne = [], vo(e);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
if (
|
|
170
|
-
var t =
|
|
168
|
+
function it(e) {
|
|
169
|
+
if (Ne.length === 0 && !vt) {
|
|
170
|
+
var t = Ne;
|
|
171
171
|
queueMicrotask(() => {
|
|
172
|
-
t ===
|
|
172
|
+
t === Ne && Bi();
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
|
|
175
|
+
Ne.push(e);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
for (;
|
|
177
|
+
function zo() {
|
|
178
|
+
for (; Ne.length > 0; ) Bi();
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function Ui(e) {
|
|
181
181
|
var t = k;
|
|
182
182
|
if (t === null)
|
|
183
|
-
return I.f |=
|
|
183
|
+
return I.f |= zt, e;
|
|
184
184
|
if (!(t.f & 32768) && !(t.f & 4))
|
|
185
185
|
throw e;
|
|
186
|
-
|
|
186
|
+
Pe(e, t);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Pe(e, t) {
|
|
189
189
|
for (; t !== null; ) {
|
|
190
190
|
if (t.f & 128) {
|
|
191
191
|
if (!(t.f & 32768)) throw e;
|
|
@@ -200,38 +200,38 @@ function Oe(e, t) {
|
|
|
200
200
|
}
|
|
201
201
|
throw e;
|
|
202
202
|
}
|
|
203
|
-
var
|
|
203
|
+
var Vo = ~(oe | Ue | J);
|
|
204
204
|
function R(e, t) {
|
|
205
|
-
e.f = e.f &
|
|
205
|
+
e.f = e.f & Vo | t;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
e.f & 512 || e.deps === null ? R(e, J) : R(e,
|
|
207
|
+
function xr(e) {
|
|
208
|
+
e.f & 512 || e.deps === null ? R(e, J) : R(e, Ue);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Gi(e) {
|
|
211
211
|
if (e !== null)
|
|
212
212
|
for (const t of e)
|
|
213
|
-
!(t.f & 2) || !(t.f & 65536) || (t.f ^=
|
|
213
|
+
!(t.f & 2) || !(t.f & 65536) || (t.f ^= bt, Gi(t.deps));
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e),
|
|
215
|
+
function qi(e, t, r) {
|
|
216
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e), Gi(e.deps), R(e, J);
|
|
217
217
|
}
|
|
218
|
-
var
|
|
219
|
-
function
|
|
220
|
-
var t =
|
|
218
|
+
var Wo = !1, $t = !1;
|
|
219
|
+
function Ho(e) {
|
|
220
|
+
var t = $t;
|
|
221
221
|
try {
|
|
222
|
-
return
|
|
222
|
+
return $t = !1, [e(), $t];
|
|
223
223
|
} finally {
|
|
224
|
-
|
|
224
|
+
$t = t;
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function Yi(e, t) {
|
|
228
228
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
|
|
230
|
+
function Pr(e, t) {
|
|
231
|
+
Yi(e, t), t.add(e);
|
|
232
232
|
}
|
|
233
233
|
function y(e, t, r) {
|
|
234
|
-
|
|
234
|
+
Yi(e, t), t.set(e, r);
|
|
235
235
|
}
|
|
236
236
|
function $(e, t, r) {
|
|
237
237
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
@@ -243,94 +243,94 @@ function l(e, t) {
|
|
|
243
243
|
function w(e, t, r) {
|
|
244
244
|
return e.set($(e, t), r), r;
|
|
245
245
|
}
|
|
246
|
-
var
|
|
247
|
-
var
|
|
246
|
+
var Ki, ce = /* @__PURE__ */ new Set(), S = null, si = null, D = null, dr = null, vt = !1, tr = !1, nt = null, Vt = null, Xi = 0;
|
|
247
|
+
var Fo = 1, Wt = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakSet(), Ge = class Ji {
|
|
248
248
|
constructor() {
|
|
249
|
-
|
|
249
|
+
Pr(this, z), g(this, "id", Fo++), g(this, "current", /* @__PURE__ */ new Map()), g(this, "previous", /* @__PURE__ */ new Map()), y(this, Wt, /* @__PURE__ */ new Set()), y(this, At, /* @__PURE__ */ new Set()), y(this, ct, /* @__PURE__ */ new Set()), y(this, Ce, /* @__PURE__ */ new Map()), y(this, Oe, /* @__PURE__ */ new Map()), y(this, xt, null), y(this, te, []), y(this, hr, []), y(this, ot, /* @__PURE__ */ new Set()), y(this, ze, /* @__PURE__ */ new Set()), y(this, xe, /* @__PURE__ */ new Map()), y(this, Pt, /* @__PURE__ */ new Set()), g(this, "is_fork", !1), y(this, Et, !1), y(this, Qe, /* @__PURE__ */ new Set());
|
|
250
250
|
}
|
|
251
251
|
skip_effect(t) {
|
|
252
|
-
l(
|
|
252
|
+
l(xe, this).has(t) || l(xe, this).set(t, {
|
|
253
253
|
d: [],
|
|
254
254
|
m: []
|
|
255
|
-
}), l(
|
|
255
|
+
}), l(Pt, this).delete(t);
|
|
256
256
|
}
|
|
257
257
|
unskip_effect(t, r = (i) => this.schedule(i)) {
|
|
258
|
-
var i = l(
|
|
258
|
+
var i = l(xe, this).get(t);
|
|
259
259
|
if (i) {
|
|
260
|
-
l(
|
|
260
|
+
l(xe, this).delete(t);
|
|
261
261
|
for (var n of i.d)
|
|
262
262
|
R(n, oe), r(n);
|
|
263
263
|
for (n of i.m)
|
|
264
|
-
R(n,
|
|
264
|
+
R(n, Ue), r(n);
|
|
265
265
|
}
|
|
266
|
-
l(
|
|
266
|
+
l(Pt, this).add(t);
|
|
267
267
|
}
|
|
268
268
|
capture(t, r, i = !1) {
|
|
269
|
-
t.v !== N && !this.previous.has(t) && this.previous.set(t, t.v), t.f & 8388608 || (this.current.set(t, [r, i]),
|
|
269
|
+
t.v !== N && !this.previous.has(t) && this.previous.set(t, t.v), t.f & 8388608 || (this.current.set(t, [r, i]), D?.set(t, r)), this.is_fork || (t.v = r);
|
|
270
270
|
}
|
|
271
271
|
activate() {
|
|
272
272
|
S = this;
|
|
273
273
|
}
|
|
274
274
|
deactivate() {
|
|
275
|
-
S = null,
|
|
275
|
+
S = null, D = null;
|
|
276
276
|
}
|
|
277
277
|
flush() {
|
|
278
278
|
var t = null;
|
|
279
279
|
try {
|
|
280
|
-
|
|
280
|
+
tr = !0, S = this, $(z, this, Lr).call(this);
|
|
281
281
|
} finally {
|
|
282
|
-
|
|
282
|
+
Xi = 0, dr = null, nt = null, Vt = null, tr = !1, S = null, D = null, He.clear();
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
discard() {
|
|
286
|
-
for (const t of l(
|
|
287
|
-
l(
|
|
286
|
+
for (const t of l(At, this)) t(this);
|
|
287
|
+
l(At, this).clear(), l(ct, this).clear(), ce.delete(this);
|
|
288
288
|
}
|
|
289
289
|
register_created_effect(t) {
|
|
290
|
-
l(
|
|
290
|
+
l(hr, this).push(t);
|
|
291
291
|
}
|
|
292
292
|
increment(t, r) {
|
|
293
|
-
let i = l(
|
|
294
|
-
if (l(
|
|
295
|
-
let n = l(
|
|
296
|
-
l(
|
|
293
|
+
let i = l(Ce, this).get(r) ?? 0;
|
|
294
|
+
if (l(Ce, this).set(r, i + 1), t) {
|
|
295
|
+
let n = l(Oe, this).get(r) ?? 0;
|
|
296
|
+
l(Oe, this).set(r, n + 1);
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
decrement(t, r, i) {
|
|
300
|
-
let n = l(
|
|
301
|
-
if (n === 1 ? l(
|
|
302
|
-
let o = l(
|
|
303
|
-
o === 1 ? l(
|
|
300
|
+
let n = l(Ce, this).get(r) ?? 0;
|
|
301
|
+
if (n === 1 ? l(Ce, this).delete(r) : l(Ce, this).set(r, n - 1), t) {
|
|
302
|
+
let o = l(Oe, this).get(r) ?? 0;
|
|
303
|
+
o === 1 ? l(Oe, this).delete(r) : l(Oe, this).set(r, o - 1);
|
|
304
304
|
}
|
|
305
|
-
l(
|
|
306
|
-
w(
|
|
305
|
+
l(Et, this) || i || (w(Et, this, !0), it(() => {
|
|
306
|
+
w(Et, this, !1), this.flush();
|
|
307
307
|
}));
|
|
308
308
|
}
|
|
309
309
|
transfer_effects(t, r) {
|
|
310
|
-
for (const i of t) l(
|
|
311
|
-
for (const i of r) l(
|
|
310
|
+
for (const i of t) l(ot, this).add(i);
|
|
311
|
+
for (const i of r) l(ze, this).add(i);
|
|
312
312
|
t.clear(), r.clear();
|
|
313
313
|
}
|
|
314
314
|
oncommit(t) {
|
|
315
|
-
l(
|
|
315
|
+
l(Wt, this).add(t);
|
|
316
316
|
}
|
|
317
317
|
ondiscard(t) {
|
|
318
|
-
l(
|
|
318
|
+
l(At, this).add(t);
|
|
319
319
|
}
|
|
320
320
|
on_fork_commit(t) {
|
|
321
|
-
l(
|
|
321
|
+
l(ct, this).add(t);
|
|
322
322
|
}
|
|
323
323
|
run_fork_commit_callbacks() {
|
|
324
|
-
for (const t of l(
|
|
325
|
-
l(
|
|
324
|
+
for (const t of l(ct, this)) t(this);
|
|
325
|
+
l(ct, this).clear();
|
|
326
326
|
}
|
|
327
327
|
settled() {
|
|
328
|
-
return (l(
|
|
328
|
+
return (l(xt, this) ?? w(xt, this, Ni())).promise;
|
|
329
329
|
}
|
|
330
330
|
static ensure() {
|
|
331
331
|
if (S === null) {
|
|
332
|
-
const t = S = new
|
|
333
|
-
|
|
332
|
+
const t = S = new Ji();
|
|
333
|
+
tr || (ce.add(S), vt || it(() => {
|
|
334
334
|
S === t && t.flush();
|
|
335
335
|
}));
|
|
336
336
|
}
|
|
@@ -338,29 +338,29 @@ var jo = 1, jt = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap
|
|
|
338
338
|
}
|
|
339
339
|
apply() {
|
|
340
340
|
if (!me || !this.is_fork && ce.size === 1) {
|
|
341
|
-
|
|
341
|
+
D = null;
|
|
342
342
|
return;
|
|
343
343
|
}
|
|
344
|
-
|
|
345
|
-
for (const [i, [n]] of this.current)
|
|
344
|
+
D = /* @__PURE__ */ new Map();
|
|
345
|
+
for (const [i, [n]] of this.current) D.set(i, n);
|
|
346
346
|
for (const i of ce)
|
|
347
347
|
if (!(i === this || i.is_fork)) {
|
|
348
348
|
var t = !1, r = !1;
|
|
349
349
|
if (i.id < this.id) for (const [n, [, o]] of i.current)
|
|
350
350
|
o || (t || (t = this.current.has(n)), r || (r = !this.current.has(n)));
|
|
351
|
-
if (t && r) l(
|
|
352
|
-
else for (const [n, o] of i.previous)
|
|
351
|
+
if (t && r) l(Qe, this).add(i);
|
|
352
|
+
else for (const [n, o] of i.previous) D.has(n) || D.set(n, o);
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
schedule(t) {
|
|
356
|
-
if (
|
|
356
|
+
if (dr = t, t.b?.is_pending && t.f & 16777228 && !(t.f & 32768)) {
|
|
357
357
|
t.b.defer_effect(t);
|
|
358
358
|
return;
|
|
359
359
|
}
|
|
360
360
|
for (var r = t; r.parent !== null; ) {
|
|
361
361
|
r = r.parent;
|
|
362
362
|
var i = r.f;
|
|
363
|
-
if (
|
|
363
|
+
if (nt !== null && r === k && (me || (I === null || !(I.f & 2)) && !Wo))
|
|
364
364
|
return;
|
|
365
365
|
if (i & 96) {
|
|
366
366
|
if (!(i & 1024)) return;
|
|
@@ -370,14 +370,14 @@ var jo = 1, jt = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap
|
|
|
370
370
|
l(te, this).push(r);
|
|
371
371
|
}
|
|
372
372
|
};
|
|
373
|
-
|
|
374
|
-
function
|
|
375
|
-
return this.is_fork || l(
|
|
373
|
+
Ki = Ge;
|
|
374
|
+
function pr() {
|
|
375
|
+
return this.is_fork || l(Oe, this).size > 0;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
for (const r of l(
|
|
377
|
+
function Bo() {
|
|
378
|
+
for (const r of l(Qe, this)) for (const i of l(Oe, r).keys()) {
|
|
379
379
|
for (var e = !1, t = i; t.parent !== null; ) {
|
|
380
|
-
if (l(
|
|
380
|
+
if (l(xe, this).has(t)) {
|
|
381
381
|
e = !0;
|
|
382
382
|
break;
|
|
383
383
|
}
|
|
@@ -387,46 +387,46 @@ function zo() {
|
|
|
387
387
|
}
|
|
388
388
|
return !1;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
391
|
-
if (
|
|
392
|
-
for (const s of l(
|
|
393
|
-
l(
|
|
394
|
-
for (const s of l(
|
|
395
|
-
R(s,
|
|
390
|
+
function Lr() {
|
|
391
|
+
if (Xi++ > 1e3 && (ce.delete(this), Go()), !$(z, this, pr).call(this)) {
|
|
392
|
+
for (const s of l(ot, this))
|
|
393
|
+
l(ze, this).delete(s), R(s, oe), this.schedule(s);
|
|
394
|
+
for (const s of l(ze, this))
|
|
395
|
+
R(s, Ue), this.schedule(s);
|
|
396
396
|
}
|
|
397
397
|
const e = l(te, this);
|
|
398
398
|
w(te, this, []), this.apply();
|
|
399
|
-
var t =
|
|
399
|
+
var t = nt = [], r = [], i = Vt = [];
|
|
400
400
|
for (const s of e) try {
|
|
401
|
-
$(z, this,
|
|
401
|
+
$(z, this, Qi).call(this, s, t, r);
|
|
402
402
|
} catch (a) {
|
|
403
|
-
throw
|
|
403
|
+
throw tn(s), a;
|
|
404
404
|
}
|
|
405
405
|
if (S = null, i.length > 0) {
|
|
406
|
-
var n =
|
|
406
|
+
var n = Ki.ensure();
|
|
407
407
|
for (const s of i) n.schedule(s);
|
|
408
408
|
}
|
|
409
|
-
if (
|
|
410
|
-
$(z, this,
|
|
411
|
-
for (const [s, a] of l(
|
|
409
|
+
if (nt = null, Vt = null, $(z, this, pr).call(this) || $(z, this, Bo).call(this)) {
|
|
410
|
+
$(z, this, vr).call(this, r), $(z, this, vr).call(this, t);
|
|
411
|
+
for (const [s, a] of l(xe, this)) en(s, a);
|
|
412
412
|
} else {
|
|
413
|
-
l(
|
|
414
|
-
for (const s of l(
|
|
415
|
-
l(
|
|
413
|
+
l(Ce, this).size === 0 && ce.delete(this), l(ot, this).clear(), l(ze, this).clear();
|
|
414
|
+
for (const s of l(Wt, this)) s(this);
|
|
415
|
+
l(Wt, this).clear(), si = this, ai(r), ai(t), si = null, l(xt, this)?.resolve();
|
|
416
416
|
}
|
|
417
417
|
var o = S;
|
|
418
418
|
if (l(te, this).length > 0) {
|
|
419
419
|
const s = o ?? (o = this);
|
|
420
420
|
l(te, s).push(...l(te, this).filter((a) => !l(te, s).includes(a)));
|
|
421
421
|
}
|
|
422
|
-
o !== null && (ce.add(o), $(z, o,
|
|
422
|
+
o !== null && (ce.add(o), $(z, o, Lr).call(o)), me && !ce.has(this) && $(z, this, Uo).call(this);
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function Qi(e, t, r) {
|
|
425
425
|
e.f ^= J;
|
|
426
426
|
for (var i = e.first; i !== null; ) {
|
|
427
427
|
var n = i.f, o = (n & 96) !== 0;
|
|
428
|
-
if (!(o && n & 1024 || n & 8192 || l(
|
|
429
|
-
o ? i.f ^= J : n & 4 ? t.push(i) : me && n & 16777224 ? r.push(i) :
|
|
428
|
+
if (!(o && n & 1024 || n & 8192 || l(xe, this).has(i)) && i.fn !== null) {
|
|
429
|
+
o ? i.f ^= J : n & 4 ? t.push(i) : me && n & 16777224 ? r.push(i) : St(i) && (n & 16 && l(ze, this).add(i), at(i));
|
|
430
430
|
var s = i.first;
|
|
431
431
|
if (s !== null) {
|
|
432
432
|
i = s;
|
|
@@ -443,10 +443,10 @@ function Yi(e, t, r) {
|
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
for (var t = 0; t < e.length; t += 1)
|
|
446
|
+
function vr(e) {
|
|
447
|
+
for (var t = 0; t < e.length; t += 1) qi(e[t], l(ot, this), l(ze, this));
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function Uo() {
|
|
450
450
|
for (const f of ce) {
|
|
451
451
|
var e = f.id < this.id, t = [];
|
|
452
452
|
for (const [u, [h, d]] of this.current) {
|
|
@@ -461,58 +461,58 @@ function Vo() {
|
|
|
461
461
|
if (i.length === 0)
|
|
462
462
|
e && f.discard();
|
|
463
463
|
else if (t.length > 0) {
|
|
464
|
-
if (e) for (const u of l(
|
|
465
|
-
h.f & 4194320 ? f.schedule(h) : $(z, f,
|
|
464
|
+
if (e) for (const u of l(Pt, this)) f.unskip_effect(u, (h) => {
|
|
465
|
+
h.f & 4194320 ? f.schedule(h) : $(z, f, vr).call(f, [h]);
|
|
466
466
|
});
|
|
467
467
|
f.activate();
|
|
468
468
|
var n = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
469
|
-
for (var s of t)
|
|
469
|
+
for (var s of t) Zi(s, i, n, o);
|
|
470
470
|
o = /* @__PURE__ */ new Map();
|
|
471
471
|
var a = [...f.current.keys()].filter((u) => this.current.has(u) ? this.current.get(u)[0] !== u : !0);
|
|
472
|
-
for (const u of l(
|
|
472
|
+
for (const u of l(hr, this)) !(u.f & 155648) && Rr(u, a, o) && (u.f & 4194320 ? (R(u, oe), f.schedule(u)) : l(ot, f).add(u));
|
|
473
473
|
if (l(te, f).length > 0) {
|
|
474
474
|
f.apply();
|
|
475
|
-
for (var c of l(te, f)) $(z, f,
|
|
475
|
+
for (var c of l(te, f)) $(z, f, Qi).call(f, c, [], []);
|
|
476
476
|
w(te, f, []);
|
|
477
477
|
}
|
|
478
478
|
f.deactivate();
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
for (const f of ce) l(
|
|
481
|
+
for (const f of ce) l(Qe, f).has(this) && (l(Qe, f).delete(this), l(Qe, f).size === 0 && !$(z, f, pr).call(f) && (f.activate(), $(z, f, Lr).call(f)));
|
|
482
482
|
}
|
|
483
|
-
function
|
|
484
|
-
var t =
|
|
485
|
-
|
|
483
|
+
function _r(e) {
|
|
484
|
+
var t = vt;
|
|
485
|
+
vt = !0;
|
|
486
486
|
try {
|
|
487
487
|
var r;
|
|
488
488
|
for (e && (S !== null && !S.is_fork && S.flush(), r = e()); ; ) {
|
|
489
|
-
if (
|
|
489
|
+
if (zo(), S === null) return r;
|
|
490
490
|
S.flush();
|
|
491
491
|
}
|
|
492
492
|
} finally {
|
|
493
|
-
|
|
493
|
+
vt = t;
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function Go() {
|
|
497
497
|
if (0) {
|
|
498
498
|
var e;
|
|
499
499
|
for (const r of S.current.keys()) for (const [i, n] of r.updated ?? [])
|
|
500
500
|
var t;
|
|
501
501
|
}
|
|
502
502
|
try {
|
|
503
|
-
|
|
503
|
+
Ao();
|
|
504
504
|
} catch (r) {
|
|
505
|
-
|
|
505
|
+
Pe(r, dr);
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
var ae = null;
|
|
509
|
-
function
|
|
509
|
+
function ai(e) {
|
|
510
510
|
var t = e.length;
|
|
511
511
|
if (t !== 0) {
|
|
512
512
|
for (var r = 0; r < t; ) {
|
|
513
513
|
var i = e[r++];
|
|
514
|
-
if (!(i.f & 24576) &&
|
|
515
|
-
|
|
514
|
+
if (!(i.f & 24576) && St(i) && (ae = /* @__PURE__ */ new Set(), at(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null && bn(i), ae?.size > 0)) {
|
|
515
|
+
He.clear();
|
|
516
516
|
for (const n of ae) {
|
|
517
517
|
if (n.f & 24576) continue;
|
|
518
518
|
const o = [n];
|
|
@@ -521,7 +521,7 @@ function ii(e) {
|
|
|
521
521
|
ae.has(s) && (ae.delete(s), o.push(s)), s = s.parent;
|
|
522
522
|
for (let a = o.length - 1; a >= 0; a--) {
|
|
523
523
|
const c = o[a];
|
|
524
|
-
c.f & 24576 ||
|
|
524
|
+
c.f & 24576 || at(c);
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
ae.clear();
|
|
@@ -530,73 +530,73 @@ function ii(e) {
|
|
|
530
530
|
ae = null;
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Zi(e, t, r, i) {
|
|
534
534
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
535
535
|
for (const n of e.reactions) {
|
|
536
536
|
const o = n.f;
|
|
537
|
-
o & 2 ?
|
|
537
|
+
o & 2 ? Zi(n, t, r, i) : o & 4194320 && !(o & 2048) && Rr(n, t, i) && (R(n, oe), Cr(n));
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function Rr(e, t, r) {
|
|
541
541
|
const i = r.get(e);
|
|
542
542
|
if (i !== void 0) return i;
|
|
543
543
|
if (e.deps !== null) for (const n of e.deps) {
|
|
544
|
-
if (
|
|
545
|
-
if (n.f & 2 &&
|
|
544
|
+
if (tt.call(t, n)) return !0;
|
|
545
|
+
if (n.f & 2 && Rr(n, t, r))
|
|
546
546
|
return r.set(n, !0), !0;
|
|
547
547
|
}
|
|
548
548
|
return r.set(e, !1), !1;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Cr(e) {
|
|
551
551
|
S.schedule(e);
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function en(e, t) {
|
|
554
554
|
if (!(e.f & 32 && e.f & 1024)) {
|
|
555
555
|
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), R(e, J);
|
|
556
556
|
for (var r = e.first; r !== null; )
|
|
557
|
-
|
|
557
|
+
en(r, t), r = r.next;
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function tn(e) {
|
|
561
561
|
R(e, J);
|
|
562
562
|
for (var t = e.first; t !== null; )
|
|
563
|
-
|
|
563
|
+
tn(t), t = t.next;
|
|
564
564
|
}
|
|
565
|
-
function
|
|
566
|
-
let t = 0, r =
|
|
565
|
+
function qo(e) {
|
|
566
|
+
let t = 0, r = Tt(0), i;
|
|
567
567
|
return () => {
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
t -= 1, t === 0 && (i?.(), i = void 0,
|
|
568
|
+
Vr() && (p(r), Wr(() => (t === 0 && (i = Yt(() => e(() => _t(r)))), t += 1, () => {
|
|
569
|
+
it(() => {
|
|
570
|
+
t -= 1, t === 0 && (i?.(), i = void 0, _t(r));
|
|
571
571
|
});
|
|
572
572
|
})));
|
|
573
573
|
};
|
|
574
574
|
}
|
|
575
|
-
var
|
|
576
|
-
function
|
|
577
|
-
new
|
|
575
|
+
var Yo = Mr | lt;
|
|
576
|
+
function Ko(e, t, r, i) {
|
|
577
|
+
new Xo(e, t, r, i);
|
|
578
578
|
}
|
|
579
|
-
var ie = /* @__PURE__ */ new WeakMap(),
|
|
579
|
+
var ie = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), br = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), li = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakSet(), Xo = class {
|
|
580
580
|
constructor(e, t, r, i) {
|
|
581
|
-
|
|
582
|
-
w(
|
|
583
|
-
}))), w(ie, this, e), w(le, this, t), w(
|
|
581
|
+
Pr(this, j), g(this, "parent", void 0), g(this, "is_pending", !1), g(this, "transform_error", void 0), y(this, ie, void 0), y(this, gr, O ? A : null), y(this, le, void 0), y(this, gt, void 0), y(this, K, void 0), y(this, fe, null), y(this, B, null), y(this, ee, null), y(this, Ve, null), y(this, Ye, 0), y(this, We, 0), y(this, Mt, !1), y(this, mr, /* @__PURE__ */ new Set()), y(this, br, /* @__PURE__ */ new Set()), y(this, Le, null), y(this, li, qo(() => (w(Le, this, Tt(l(Ye, this))), () => {
|
|
582
|
+
w(Le, this, null);
|
|
583
|
+
}))), w(ie, this, e), w(le, this, t), w(gt, this, (n) => {
|
|
584
584
|
var o = k;
|
|
585
585
|
o.b = this, o.f |= 128, r(n);
|
|
586
|
-
}), this.parent = k.b, this.transform_error = i ?? this.parent?.transform_error ?? ((n) => n), w(K, this,
|
|
586
|
+
}), this.parent = k.b, this.transform_error = i ?? this.parent?.transform_error ?? ((n) => n), w(K, this, gn(() => {
|
|
587
587
|
if (O) {
|
|
588
|
-
const n = l(
|
|
589
|
-
|
|
588
|
+
const n = l(gr, this);
|
|
589
|
+
Or();
|
|
590
590
|
const o = n.data === "[!";
|
|
591
591
|
if (n.data.startsWith("[?")) {
|
|
592
592
|
const s = JSON.parse(n.data.slice(2));
|
|
593
|
-
$(
|
|
594
|
-
} else o ? $(
|
|
595
|
-
} else $(
|
|
596
|
-
},
|
|
593
|
+
$(j, this, Qo).call(this, s);
|
|
594
|
+
} else o ? $(j, this, Zo).call(this) : $(j, this, Jo).call(this);
|
|
595
|
+
} else $(j, this, rn).call(this);
|
|
596
|
+
}, Yo)), O && w(ie, this, A);
|
|
597
597
|
}
|
|
598
598
|
defer_effect(e) {
|
|
599
|
-
|
|
599
|
+
qi(e, l(mr, this), l(br, this));
|
|
600
600
|
}
|
|
601
601
|
is_rendered() {
|
|
602
602
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -605,179 +605,179 @@ var ie = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), le =
|
|
|
605
605
|
return !!l(le, this).pending;
|
|
606
606
|
}
|
|
607
607
|
update_pending_count(e, t) {
|
|
608
|
-
$(
|
|
609
|
-
w(
|
|
608
|
+
$(j, this, nn).call(this, e, t), w(Ye, this, l(Ye, this) + e), !(!l(Le, this) || l(Mt, this)) && (w(Mt, this, !0), it(() => {
|
|
609
|
+
w(Mt, this, !1), l(Le, this) && Ft(l(Le, this), l(Ye, this));
|
|
610
610
|
}));
|
|
611
611
|
}
|
|
612
612
|
get_effect_pending() {
|
|
613
|
-
return l(
|
|
613
|
+
return l(li, this).call(this), p(l(Le, this));
|
|
614
614
|
}
|
|
615
615
|
error(e) {
|
|
616
616
|
if (!l(le, this).onerror && !l(le, this).failed) throw e;
|
|
617
617
|
S?.is_fork ? (l(fe, this) && S.skip_effect(l(fe, this)), l(B, this) && S.skip_effect(l(B, this)), l(ee, this) && S.skip_effect(l(ee, this)), S.on_fork_commit(() => {
|
|
618
|
-
$(
|
|
619
|
-
})) : $(
|
|
618
|
+
$(j, this, ci).call(this, e);
|
|
619
|
+
})) : $(j, this, ci).call(this, e);
|
|
620
620
|
}
|
|
621
621
|
};
|
|
622
|
-
function
|
|
622
|
+
function Jo() {
|
|
623
623
|
try {
|
|
624
|
-
w(fe, this, ye(() => l(
|
|
624
|
+
w(fe, this, ye(() => l(gt, this).call(this, l(ie, this))));
|
|
625
625
|
} catch (e) {
|
|
626
626
|
this.error(e);
|
|
627
627
|
}
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function Qo(e) {
|
|
630
630
|
const t = l(le, this).failed;
|
|
631
631
|
t && w(ee, this, ye(() => {
|
|
632
632
|
t(l(ie, this), () => e, () => () => {
|
|
633
633
|
});
|
|
634
634
|
}));
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function Zo() {
|
|
637
637
|
const e = l(le, this).pending;
|
|
638
|
-
e && (this.is_pending = !0, w(B, this, ye(() => e(l(ie, this)))),
|
|
639
|
-
var t = w(
|
|
640
|
-
t.append(r), w(fe, this, $(
|
|
638
|
+
e && (this.is_pending = !0, w(B, this, ye(() => e(l(ie, this)))), it(() => {
|
|
639
|
+
var t = w(Ve, this, document.createDocumentFragment()), r = be();
|
|
640
|
+
t.append(r), w(fe, this, $(j, this, yr).call(this, () => ye(() => l(gt, this).call(this, r)))), l(We, this) === 0 && (l(ie, this).before(t), w(Ve, this, null), kt(l(B, this), () => {
|
|
641
641
|
w(B, this, null);
|
|
642
|
-
}), $(
|
|
642
|
+
}), $(j, this, Nr).call(this, S));
|
|
643
643
|
}));
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function rn() {
|
|
646
646
|
try {
|
|
647
|
-
if (this.is_pending = this.has_pending_snippet(), w(
|
|
648
|
-
l(
|
|
649
|
-
})), l(
|
|
650
|
-
var e = w(
|
|
651
|
-
|
|
647
|
+
if (this.is_pending = this.has_pending_snippet(), w(We, this, 0), w(Ye, this, 0), w(fe, this, ye(() => {
|
|
648
|
+
l(gt, this).call(this, l(ie, this));
|
|
649
|
+
})), l(We, this) > 0) {
|
|
650
|
+
var e = w(Ve, this, document.createDocumentFragment());
|
|
651
|
+
Tn(l(fe, this), e);
|
|
652
652
|
const t = l(le, this).pending;
|
|
653
653
|
w(B, this, ye(() => t(l(ie, this))));
|
|
654
|
-
} else $(
|
|
654
|
+
} else $(j, this, Nr).call(this, S);
|
|
655
655
|
} catch (t) {
|
|
656
656
|
this.error(t);
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
function
|
|
660
|
-
this.is_pending = !1, e.transfer_effects(l(
|
|
659
|
+
function Nr(e) {
|
|
660
|
+
this.is_pending = !1, e.transfer_effects(l(mr, this), l(br, this));
|
|
661
661
|
}
|
|
662
|
-
function
|
|
663
|
-
var t = k, r = I, i =
|
|
664
|
-
de(l(K, this)), Q(l(K, this)),
|
|
662
|
+
function yr(e) {
|
|
663
|
+
var t = k, r = I, i = L;
|
|
664
|
+
de(l(K, this)), Q(l(K, this)), rt(l(K, this).ctx);
|
|
665
665
|
try {
|
|
666
|
-
return
|
|
666
|
+
return Ge.ensure(), e();
|
|
667
667
|
} catch (n) {
|
|
668
|
-
return
|
|
668
|
+
return Ui(n), null;
|
|
669
669
|
} finally {
|
|
670
|
-
de(t), Q(r),
|
|
670
|
+
de(t), Q(r), rt(i);
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function nn(e, t) {
|
|
674
674
|
if (!this.has_pending_snippet()) {
|
|
675
675
|
if (this.parent) {
|
|
676
676
|
var r;
|
|
677
|
-
$(
|
|
677
|
+
$(j, r = this.parent, nn).call(r, e, t);
|
|
678
678
|
}
|
|
679
679
|
return;
|
|
680
680
|
}
|
|
681
|
-
w(
|
|
681
|
+
w(We, this, l(We, this) + e), l(We, this) === 0 && ($(j, this, Nr).call(this, t), l(B, this) && kt(l(B, this), () => {
|
|
682
682
|
w(B, this, null);
|
|
683
|
-
}), l(
|
|
683
|
+
}), l(Ve, this) && (l(ie, this).before(l(Ve, this)), w(Ve, this, null)));
|
|
684
684
|
}
|
|
685
|
-
function
|
|
686
|
-
l(fe, this) && (W(l(fe, this)), w(fe, this, null)), l(B, this) && (W(l(B, this)), w(B, this, null)), l(ee, this) && (W(l(ee, this)), w(ee, this, null)), O && (ne(l(
|
|
685
|
+
function ci(e) {
|
|
686
|
+
l(fe, this) && (W(l(fe, this)), w(fe, this, null)), l(B, this) && (W(l(B, this)), w(B, this, null)), l(ee, this) && (W(l(ee, this)), w(ee, this, null)), O && (ne(l(gr, this)), Di(), ne(zi()));
|
|
687
687
|
var t = l(le, this).onerror;
|
|
688
688
|
let r = l(le, this).failed;
|
|
689
689
|
var i = !1, n = !1;
|
|
690
690
|
const o = () => {
|
|
691
691
|
if (i) {
|
|
692
|
-
|
|
692
|
+
Co();
|
|
693
693
|
return;
|
|
694
694
|
}
|
|
695
|
-
i = !0, n &&
|
|
695
|
+
i = !0, n && Lo(), l(ee, this) !== null && kt(l(ee, this), () => {
|
|
696
696
|
w(ee, this, null);
|
|
697
|
-
}), $(
|
|
698
|
-
$(
|
|
697
|
+
}), $(j, this, yr).call(this, () => {
|
|
698
|
+
$(j, this, rn).call(this);
|
|
699
699
|
});
|
|
700
700
|
}, s = (a) => {
|
|
701
701
|
try {
|
|
702
702
|
n = !0, t?.(a, o), n = !1;
|
|
703
703
|
} catch (c) {
|
|
704
|
-
|
|
704
|
+
Pe(c, l(K, this) && l(K, this).parent);
|
|
705
705
|
}
|
|
706
|
-
r && w(ee, this, $(
|
|
706
|
+
r && w(ee, this, $(j, this, yr).call(this, () => {
|
|
707
707
|
try {
|
|
708
708
|
return ye(() => {
|
|
709
709
|
var c = k;
|
|
710
710
|
c.b = this, c.f |= 128, r(l(ie, this), () => a, () => o);
|
|
711
711
|
});
|
|
712
712
|
} catch (c) {
|
|
713
|
-
return
|
|
713
|
+
return Pe(c, l(K, this).parent), null;
|
|
714
714
|
}
|
|
715
715
|
}));
|
|
716
716
|
};
|
|
717
|
-
|
|
717
|
+
it(() => {
|
|
718
718
|
var a;
|
|
719
719
|
try {
|
|
720
720
|
a = this.transform_error(e);
|
|
721
721
|
} catch (c) {
|
|
722
|
-
|
|
722
|
+
Pe(c, l(K, this) && l(K, this).parent);
|
|
723
723
|
return;
|
|
724
724
|
}
|
|
725
|
-
a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(s, (c) =>
|
|
725
|
+
a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(s, (c) => Pe(c, l(K, this) && l(K, this).parent)) : s(a);
|
|
726
726
|
});
|
|
727
727
|
}
|
|
728
|
-
function
|
|
729
|
-
const n =
|
|
728
|
+
function es(e, t, r, i) {
|
|
729
|
+
const n = wt() ? qt : sn;
|
|
730
730
|
var o = e.filter((d) => !d.settled);
|
|
731
731
|
if (r.length === 0 && o.length === 0) {
|
|
732
732
|
i(t.map(n));
|
|
733
733
|
return;
|
|
734
734
|
}
|
|
735
|
-
var s = k, a =
|
|
735
|
+
var s = k, a = ts(), c = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((d) => d.promise)) : null;
|
|
736
736
|
function f(d) {
|
|
737
737
|
a();
|
|
738
738
|
try {
|
|
739
739
|
i(d);
|
|
740
740
|
} catch (v) {
|
|
741
|
-
s.f & 16384 ||
|
|
741
|
+
s.f & 16384 || Pe(v, s);
|
|
742
742
|
}
|
|
743
|
-
|
|
743
|
+
Ht();
|
|
744
744
|
}
|
|
745
745
|
if (r.length === 0) {
|
|
746
746
|
c.then(() => f(t.map(n)));
|
|
747
747
|
return;
|
|
748
748
|
}
|
|
749
|
-
var u =
|
|
749
|
+
var u = on();
|
|
750
750
|
function h() {
|
|
751
|
-
Promise.all(r.map((d) => /* @__PURE__ */
|
|
751
|
+
Promise.all(r.map((d) => /* @__PURE__ */ rs(d))).then((d) => f([...t.map(n), ...d])).catch((d) => Pe(d, s)).finally(() => u());
|
|
752
752
|
}
|
|
753
753
|
c ? c.then(() => {
|
|
754
|
-
a(), h(),
|
|
754
|
+
a(), h(), Ht();
|
|
755
755
|
}) : h();
|
|
756
756
|
}
|
|
757
|
-
function
|
|
758
|
-
var e = k, t = I, r =
|
|
757
|
+
function ts() {
|
|
758
|
+
var e = k, t = I, r = L, i = S;
|
|
759
759
|
if (0) var n;
|
|
760
760
|
return function(s = !0) {
|
|
761
|
-
de(e), Q(t),
|
|
761
|
+
de(e), Q(t), rt(r), s && !(e.f & 16384) && (i?.activate(), i?.apply());
|
|
762
762
|
};
|
|
763
763
|
}
|
|
764
|
-
function
|
|
765
|
-
de(null), Q(null),
|
|
764
|
+
function Ht(e = !0) {
|
|
765
|
+
de(null), Q(null), rt(null), e && S?.deactivate();
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function on() {
|
|
768
768
|
var e = k, t = e.b, r = S, i = t.is_rendered();
|
|
769
769
|
return t.update_pending_count(1, r), r.increment(i, e), (n = !1) => {
|
|
770
770
|
t.update_pending_count(-1, r), r.decrement(i, e, n);
|
|
771
771
|
};
|
|
772
772
|
}
|
|
773
773
|
// @__NO_SIDE_EFFECTS__
|
|
774
|
-
function
|
|
774
|
+
function qt(e) {
|
|
775
775
|
var t = 2 | oe;
|
|
776
|
-
return k !== null && (k.f |=
|
|
777
|
-
ctx:
|
|
776
|
+
return k !== null && (k.f |= lt), {
|
|
777
|
+
ctx: L,
|
|
778
778
|
deps: null,
|
|
779
779
|
effects: null,
|
|
780
|
-
equals:
|
|
780
|
+
equals: Vi,
|
|
781
781
|
f: t,
|
|
782
782
|
fn: e,
|
|
783
783
|
reactions: null,
|
|
@@ -789,21 +789,21 @@ function Bt(e) {
|
|
|
789
789
|
};
|
|
790
790
|
}
|
|
791
791
|
// @__NO_SIDE_EFFECTS__
|
|
792
|
-
function
|
|
792
|
+
function rs(e, t, r) {
|
|
793
793
|
let i = k;
|
|
794
|
-
i === null &&
|
|
795
|
-
var n = void 0, o =
|
|
796
|
-
return
|
|
797
|
-
var c = k, f =
|
|
794
|
+
i === null && ko();
|
|
795
|
+
var n = void 0, o = Tt(N), s = !I, a = /* @__PURE__ */ new Map();
|
|
796
|
+
return gs(() => {
|
|
797
|
+
var c = k, f = Ni();
|
|
798
798
|
n = f.promise;
|
|
799
799
|
try {
|
|
800
|
-
Promise.resolve(e()).then(f.resolve, f.reject).finally(
|
|
800
|
+
Promise.resolve(e()).then(f.resolve, f.reject).finally(Ht);
|
|
801
801
|
} catch (v) {
|
|
802
|
-
f.reject(v),
|
|
802
|
+
f.reject(v), Ht();
|
|
803
803
|
}
|
|
804
804
|
var u = S;
|
|
805
805
|
if (s) {
|
|
806
|
-
if (c.f & 32768) var h =
|
|
806
|
+
if (c.f & 32768) var h = on();
|
|
807
807
|
if (i.b.is_rendered())
|
|
808
808
|
a.get(u)?.reject(ge), a.delete(u);
|
|
809
809
|
else {
|
|
@@ -815,9 +815,9 @@ function Jo(e, t, r) {
|
|
|
815
815
|
const d = (v, _ = void 0) => {
|
|
816
816
|
if (h && h(_ === ge), !(_ === ge || c.f & 16384)) {
|
|
817
817
|
if (u.activate(), _)
|
|
818
|
-
o.f |=
|
|
818
|
+
o.f |= zt, Ft(o, _);
|
|
819
819
|
else {
|
|
820
|
-
o.f & 8388608 && (o.f ^=
|
|
820
|
+
o.f & 8388608 && (o.f ^= zt), Ft(o, v);
|
|
821
821
|
for (const [m, b] of a) {
|
|
822
822
|
if (a.delete(m), m === u) break;
|
|
823
823
|
b.reject(ge);
|
|
@@ -827,7 +827,7 @@ function Jo(e, t, r) {
|
|
|
827
827
|
}
|
|
828
828
|
};
|
|
829
829
|
f.promise.then(d, (v) => d(null, v || "unknown"));
|
|
830
|
-
}),
|
|
830
|
+
}), ps(() => {
|
|
831
831
|
for (const c of a.values()) c.reject(ge);
|
|
832
832
|
}), new Promise((c) => {
|
|
833
833
|
function f(u) {
|
|
@@ -840,170 +840,170 @@ function Jo(e, t, r) {
|
|
|
840
840
|
});
|
|
841
841
|
}
|
|
842
842
|
// @__NO_SIDE_EFFECTS__
|
|
843
|
-
function
|
|
844
|
-
const t = /* @__PURE__ */
|
|
845
|
-
return me ||
|
|
843
|
+
function ui(e) {
|
|
844
|
+
const t = /* @__PURE__ */ qt(e);
|
|
845
|
+
return me || kn(t), t;
|
|
846
846
|
}
|
|
847
847
|
// @__NO_SIDE_EFFECTS__
|
|
848
|
-
function
|
|
849
|
-
const t = /* @__PURE__ */
|
|
850
|
-
return t.equals =
|
|
848
|
+
function sn(e) {
|
|
849
|
+
const t = /* @__PURE__ */ qt(e);
|
|
850
|
+
return t.equals = Wi, t;
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function is(e) {
|
|
853
853
|
var t = e.effects;
|
|
854
854
|
if (t !== null) {
|
|
855
855
|
e.effects = null;
|
|
856
856
|
for (var r = 0; r < t.length; r += 1) W(t[r]);
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function jr(e) {
|
|
860
860
|
var t, r = k, i = e.parent;
|
|
861
861
|
if (!we && i !== null && i.f & 24576)
|
|
862
|
-
return
|
|
862
|
+
return Ro(), e.v;
|
|
863
863
|
if (de(i), 0)
|
|
864
864
|
try {
|
|
865
865
|
} finally {
|
|
866
866
|
}
|
|
867
867
|
else try {
|
|
868
|
-
e.f &= ~
|
|
868
|
+
e.f &= ~bt, is(e), t = An(e);
|
|
869
869
|
} finally {
|
|
870
870
|
de(r);
|
|
871
871
|
}
|
|
872
872
|
return t;
|
|
873
873
|
}
|
|
874
|
-
function
|
|
875
|
-
var t =
|
|
876
|
-
if (!e.equals(t) && (e.wv =
|
|
874
|
+
function an(e) {
|
|
875
|
+
var t = jr(e);
|
|
876
|
+
if (!e.equals(t) && (e.wv = In(), (!S?.is_fork || e.deps === null) && (S !== null ? S.capture(e, t, !0) : e.v = t, e.deps === null))) {
|
|
877
877
|
R(e, J);
|
|
878
878
|
return;
|
|
879
879
|
}
|
|
880
|
-
we || (
|
|
880
|
+
we || (D !== null ? (Vr() || S?.is_fork) && D.set(e, t) : xr(e));
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function ns(e) {
|
|
883
883
|
if (e.effects !== null)
|
|
884
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(ge), t.teardown =
|
|
884
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(ge), t.teardown = po, t.ac = null, mt(t, 0), Hr(t));
|
|
885
885
|
}
|
|
886
|
-
function
|
|
886
|
+
function ln(e) {
|
|
887
887
|
if (e.effects !== null)
|
|
888
|
-
for (const t of e.effects) t.teardown &&
|
|
888
|
+
for (const t of e.effects) t.teardown && at(t);
|
|
889
889
|
}
|
|
890
|
-
var
|
|
891
|
-
var
|
|
892
|
-
function
|
|
890
|
+
var wr = /* @__PURE__ */ new Set(), He = /* @__PURE__ */ new Map();
|
|
891
|
+
var cn = !1;
|
|
892
|
+
function Tt(e, t) {
|
|
893
893
|
var r = {
|
|
894
894
|
f: 0,
|
|
895
895
|
v: e,
|
|
896
896
|
reactions: null,
|
|
897
|
-
equals:
|
|
897
|
+
equals: Vi,
|
|
898
898
|
rv: 0,
|
|
899
899
|
wv: 0
|
|
900
900
|
};
|
|
901
901
|
return r;
|
|
902
902
|
}
|
|
903
903
|
// @__NO_SIDE_EFFECTS__
|
|
904
|
-
function
|
|
905
|
-
const r =
|
|
906
|
-
return
|
|
904
|
+
function P(e, t) {
|
|
905
|
+
const r = Tt(e, t);
|
|
906
|
+
return kn(r), r;
|
|
907
907
|
}
|
|
908
908
|
// @__NO_SIDE_EFFECTS__
|
|
909
|
-
function
|
|
910
|
-
const i =
|
|
911
|
-
if (t || (i.equals =
|
|
909
|
+
function os(e, t = !1, r = !0) {
|
|
910
|
+
const i = Tt(e);
|
|
911
|
+
if (t || (i.equals = Wi), yt && r && L !== null && L.l !== null) {
|
|
912
912
|
var n;
|
|
913
|
-
((n =
|
|
913
|
+
((n = L.l).s ?? (n.s = [])).push(i);
|
|
914
914
|
}
|
|
915
915
|
return i;
|
|
916
916
|
}
|
|
917
|
-
function
|
|
918
|
-
I !== null && (!re || I.f & 131072) &&
|
|
917
|
+
function x(e, t, r = !1) {
|
|
918
|
+
I !== null && (!re || I.f & 131072) && wt() && I.f & 4325394 && (X === null || !tt.call(X, e)) && Po();
|
|
919
919
|
let i = r ? ue(t) : t;
|
|
920
|
-
return
|
|
920
|
+
return Ft(e, i, Vt);
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function Ft(e, t, r = null) {
|
|
923
923
|
if (!e.equals(t)) {
|
|
924
|
-
|
|
925
|
-
var i =
|
|
924
|
+
He.set(e, we ? t : e.v);
|
|
925
|
+
var i = Ge.ensure();
|
|
926
926
|
if (i.capture(e, t), e.f & 2) {
|
|
927
927
|
const n = e;
|
|
928
|
-
e.f & 2048 &&
|
|
928
|
+
e.f & 2048 && jr(n), D === null && xr(n);
|
|
929
929
|
}
|
|
930
|
-
e.wv =
|
|
930
|
+
e.wv = In(), un(e, oe, r), wt() && k !== null && k.f & 1024 && !(k.f & 96) && (Y === null ? Ts([e]) : Y.push(e)), !i.is_fork && wr.size > 0 && !cn && ss();
|
|
931
931
|
}
|
|
932
932
|
return t;
|
|
933
933
|
}
|
|
934
|
-
function
|
|
935
|
-
|
|
936
|
-
for (const e of
|
|
937
|
-
e.f & 1024 && R(e,
|
|
938
|
-
|
|
934
|
+
function ss() {
|
|
935
|
+
cn = !1;
|
|
936
|
+
for (const e of wr)
|
|
937
|
+
e.f & 1024 && R(e, Ue), St(e) && at(e);
|
|
938
|
+
wr.clear();
|
|
939
939
|
}
|
|
940
|
-
function
|
|
941
|
-
|
|
940
|
+
function _t(e) {
|
|
941
|
+
x(e, e.v + 1);
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function un(e, t, r) {
|
|
944
944
|
var i = e.reactions;
|
|
945
945
|
if (i !== null)
|
|
946
|
-
for (var n =
|
|
946
|
+
for (var n = wt(), o = i.length, s = 0; s < o; s++) {
|
|
947
947
|
var a = i[s], c = a.f;
|
|
948
948
|
if (!(!n && a === k)) {
|
|
949
949
|
var f = (c & oe) === 0;
|
|
950
950
|
if (f && R(a, t), c & 2) {
|
|
951
951
|
var u = a;
|
|
952
|
-
|
|
952
|
+
D?.delete(u), c & 65536 || (c & 512 && (a.f |= bt), un(u, Ue, r));
|
|
953
953
|
} else if (f) {
|
|
954
954
|
var h = a;
|
|
955
|
-
c & 16 && ae !== null && ae.add(h), r !== null ? r.push(h) :
|
|
955
|
+
c & 16 && ae !== null && ae.add(h), r !== null ? r.push(h) : Cr(h);
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
|
-
var
|
|
960
|
+
var as = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
961
961
|
function ue(e) {
|
|
962
|
-
if (typeof e != "object" || e === null ||
|
|
963
|
-
const t =
|
|
964
|
-
if (t !==
|
|
965
|
-
var r = /* @__PURE__ */ new Map(), i =
|
|
966
|
-
if (
|
|
967
|
-
var d = I, v =
|
|
968
|
-
Q(null),
|
|
962
|
+
if (typeof e != "object" || e === null || pt in e) return e;
|
|
963
|
+
const t = Ci(e);
|
|
964
|
+
if (t !== fo && t !== ho) return e;
|
|
965
|
+
var r = /* @__PURE__ */ new Map(), i = ao(e), n = /* @__PURE__ */ P(0), o = null, s = Fe, a = (h) => {
|
|
966
|
+
if (Fe === s) return h();
|
|
967
|
+
var d = I, v = Fe;
|
|
968
|
+
Q(null), vi(s);
|
|
969
969
|
var _ = h();
|
|
970
|
-
return Q(d),
|
|
970
|
+
return Q(d), vi(v), _;
|
|
971
971
|
};
|
|
972
|
-
i && r.set("length", /* @__PURE__ */
|
|
972
|
+
i && r.set("length", /* @__PURE__ */ P(e.length, o));
|
|
973
973
|
var c = "";
|
|
974
974
|
let f = !1;
|
|
975
975
|
function u(h) {
|
|
976
976
|
if (!f) {
|
|
977
|
-
f = !0, c = h,
|
|
978
|
-
for (const [d, v] of r)
|
|
977
|
+
f = !0, c = h, oi(n, `${c} version`);
|
|
978
|
+
for (const [d, v] of r) oi(v, ls(c, d));
|
|
979
979
|
f = !1;
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
return new Proxy(e, {
|
|
983
983
|
defineProperty(h, d, v) {
|
|
984
|
-
(!("value" in v) || v.configurable === !1 || v.enumerable === !1 || v.writable === !1) &&
|
|
984
|
+
(!("value" in v) || v.configurable === !1 || v.enumerable === !1 || v.writable === !1) && Oo();
|
|
985
985
|
var _ = r.get(d);
|
|
986
986
|
return _ === void 0 ? a(() => {
|
|
987
|
-
var m = /* @__PURE__ */
|
|
987
|
+
var m = /* @__PURE__ */ P(v.value, o);
|
|
988
988
|
return r.set(d, m), m;
|
|
989
|
-
}) :
|
|
989
|
+
}) : x(_, v.value, !0), !0;
|
|
990
990
|
},
|
|
991
991
|
deleteProperty(h, d) {
|
|
992
992
|
var v = r.get(d);
|
|
993
993
|
if (v === void 0) {
|
|
994
994
|
if (d in h) {
|
|
995
|
-
const _ = a(() => /* @__PURE__ */
|
|
996
|
-
r.set(d, _),
|
|
995
|
+
const _ = a(() => /* @__PURE__ */ P(N, o));
|
|
996
|
+
r.set(d, _), _t(n);
|
|
997
997
|
}
|
|
998
998
|
} else
|
|
999
|
-
|
|
999
|
+
x(v, N), _t(n);
|
|
1000
1000
|
return !0;
|
|
1001
1001
|
},
|
|
1002
1002
|
get(h, d, v) {
|
|
1003
|
-
if (d ===
|
|
1003
|
+
if (d === pt) return e;
|
|
1004
1004
|
var _ = r.get(d), m = d in h;
|
|
1005
|
-
if (_ === void 0 && (!m ||
|
|
1006
|
-
var E = /* @__PURE__ */
|
|
1005
|
+
if (_ === void 0 && (!m || De(h, d)?.writable) && (_ = a(() => {
|
|
1006
|
+
var E = /* @__PURE__ */ P(ue(m ? h[d] : N), o);
|
|
1007
1007
|
return E;
|
|
1008
1008
|
}), r.set(d, _)), _ !== void 0) {
|
|
1009
1009
|
var b = p(_);
|
|
@@ -1028,10 +1028,10 @@ function ue(e) {
|
|
|
1028
1028
|
return v;
|
|
1029
1029
|
},
|
|
1030
1030
|
has(h, d) {
|
|
1031
|
-
if (d ===
|
|
1031
|
+
if (d === pt) return !0;
|
|
1032
1032
|
var v = r.get(d), _ = v !== void 0 && v.v !== N || Reflect.has(h, d);
|
|
1033
|
-
return (v !== void 0 || k !== null && (!_ ||
|
|
1034
|
-
var m = /* @__PURE__ */
|
|
1033
|
+
return (v !== void 0 || k !== null && (!_ || De(h, d)?.writable)) && (v === void 0 && (v = a(() => {
|
|
1034
|
+
var m = /* @__PURE__ */ P(_ ? ue(h[d]) : N, o);
|
|
1035
1035
|
return m;
|
|
1036
1036
|
}), r.set(d, v)), p(v) === N) ? !1 : _;
|
|
1037
1037
|
},
|
|
@@ -1039,22 +1039,22 @@ function ue(e) {
|
|
|
1039
1039
|
var m = r.get(d), b = d in h;
|
|
1040
1040
|
if (i && d === "length") for (var E = v; E < m.v; E += 1) {
|
|
1041
1041
|
var U = r.get(E + "");
|
|
1042
|
-
U !== void 0 ?
|
|
1042
|
+
U !== void 0 ? x(U, N) : E in h && (U = a(() => /* @__PURE__ */ P(N, o)), r.set(E + "", U));
|
|
1043
1043
|
}
|
|
1044
1044
|
if (m === void 0)
|
|
1045
|
-
(!b ||
|
|
1045
|
+
(!b || De(h, d)?.writable) && (m = a(() => /* @__PURE__ */ P(void 0, o)), x(m, ue(v)), r.set(d, m));
|
|
1046
1046
|
else {
|
|
1047
1047
|
b = m.v !== N;
|
|
1048
1048
|
var M = a(() => ue(v));
|
|
1049
|
-
|
|
1049
|
+
x(m, M);
|
|
1050
1050
|
}
|
|
1051
1051
|
var G = Reflect.getOwnPropertyDescriptor(h, d);
|
|
1052
1052
|
if (G?.set && G.set.call(_, v), !b) {
|
|
1053
1053
|
if (i && typeof d == "string") {
|
|
1054
1054
|
var Ie = r.get("length"), H = Number(d);
|
|
1055
|
-
Number.isInteger(H) && H >= Ie.v &&
|
|
1055
|
+
Number.isInteger(H) && H >= Ie.v && x(Ie, H + 1);
|
|
1056
1056
|
}
|
|
1057
|
-
|
|
1057
|
+
_t(n);
|
|
1058
1058
|
}
|
|
1059
1059
|
return !0;
|
|
1060
1060
|
},
|
|
@@ -1068,45 +1068,45 @@ function ue(e) {
|
|
|
1068
1068
|
return d;
|
|
1069
1069
|
},
|
|
1070
1070
|
setPrototypeOf() {
|
|
1071
|
-
|
|
1071
|
+
xo();
|
|
1072
1072
|
}
|
|
1073
1073
|
});
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1076
|
-
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` :
|
|
1075
|
+
function ls(e, t) {
|
|
1076
|
+
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : as.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
1077
1077
|
}
|
|
1078
|
-
var
|
|
1079
|
-
function
|
|
1080
|
-
if (
|
|
1081
|
-
|
|
1078
|
+
var fi, cs, fn, dn, hn;
|
|
1079
|
+
function Tr() {
|
|
1080
|
+
if (fi === void 0) {
|
|
1081
|
+
fi = window, cs = document, fn = /Firefox/.test(navigator.userAgent);
|
|
1082
1082
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1083
|
-
|
|
1083
|
+
dn = De(t, "firstChild").get, hn = De(t, "nextSibling").get, ti(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), ti(r) && (r.__t = void 0);
|
|
1084
1084
|
}
|
|
1085
1085
|
}
|
|
1086
1086
|
function be(e = "") {
|
|
1087
1087
|
return document.createTextNode(e);
|
|
1088
1088
|
}
|
|
1089
1089
|
// @__NO_SIDE_EFFECTS__
|
|
1090
|
-
function
|
|
1091
|
-
return
|
|
1090
|
+
function st(e) {
|
|
1091
|
+
return dn.call(e);
|
|
1092
1092
|
}
|
|
1093
1093
|
// @__NO_SIDE_EFFECTS__
|
|
1094
1094
|
function Te(e) {
|
|
1095
|
-
return
|
|
1095
|
+
return hn.call(e);
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1098
|
-
if (!O) return /* @__PURE__ */
|
|
1099
|
-
var r = /* @__PURE__ */
|
|
1097
|
+
function di(e, t) {
|
|
1098
|
+
if (!O) return /* @__PURE__ */ st(e);
|
|
1099
|
+
var r = /* @__PURE__ */ st(A);
|
|
1100
1100
|
if (r === null) r = A.appendChild(be());
|
|
1101
1101
|
else if (t && r.nodeType !== 3) {
|
|
1102
1102
|
var i = be();
|
|
1103
1103
|
return r?.before(i), ne(i), i;
|
|
1104
1104
|
}
|
|
1105
|
-
return t &&
|
|
1105
|
+
return t && zr(r), ne(r), r;
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1107
|
+
function rr(e, t = !1) {
|
|
1108
1108
|
if (!O) {
|
|
1109
|
-
var r = /* @__PURE__ */
|
|
1109
|
+
var r = /* @__PURE__ */ st(e);
|
|
1110
1110
|
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Te(r) : r;
|
|
1111
1111
|
}
|
|
1112
1112
|
if (t) {
|
|
@@ -1114,11 +1114,11 @@ function Zt(e, t = !1) {
|
|
|
1114
1114
|
var i = be();
|
|
1115
1115
|
return A?.before(i), ne(i), i;
|
|
1116
1116
|
}
|
|
1117
|
-
|
|
1117
|
+
zr(A);
|
|
1118
1118
|
}
|
|
1119
1119
|
return A;
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1121
|
+
function ut(e, t = 1, r = !1) {
|
|
1122
1122
|
let i = O ? A : e;
|
|
1123
1123
|
for (var n; t--; )
|
|
1124
1124
|
n = i, i = /* @__PURE__ */ Te(i);
|
|
@@ -1128,27 +1128,27 @@ function at(e, t = 1, r = !1) {
|
|
|
1128
1128
|
var o = be();
|
|
1129
1129
|
return i === null ? n?.after(o) : i.before(o), ne(o), o;
|
|
1130
1130
|
}
|
|
1131
|
-
|
|
1131
|
+
zr(i);
|
|
1132
1132
|
}
|
|
1133
1133
|
return ne(i), i;
|
|
1134
1134
|
}
|
|
1135
|
-
function
|
|
1135
|
+
function us(e) {
|
|
1136
1136
|
e.textContent = "";
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1139
|
-
return !me || ae !== null ? !1 : (k.f &
|
|
1138
|
+
function fs() {
|
|
1139
|
+
return !me || ae !== null ? !1 : (k.f & Er) !== 0;
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function Dr(e, t, r) {
|
|
1142
1142
|
let i = r ? { is: r } : void 0;
|
|
1143
1143
|
return document.createElementNS(t ?? "http://www.w3.org/1999/xhtml", e, i);
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1145
|
+
function zr(e) {
|
|
1146
1146
|
if (e.nodeValue.length < 65536) return;
|
|
1147
1147
|
let t = e.nextSibling;
|
|
1148
1148
|
for (; t !== null && t.nodeType === 3; )
|
|
1149
1149
|
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1151
|
+
function pn(e) {
|
|
1152
1152
|
var t = I, r = k;
|
|
1153
1153
|
Q(null), de(null);
|
|
1154
1154
|
try {
|
|
@@ -1157,18 +1157,18 @@ function un(e) {
|
|
|
1157
1157
|
Q(t), de(r);
|
|
1158
1158
|
}
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1161
|
-
k === null && (I === null &&
|
|
1160
|
+
function ds(e) {
|
|
1161
|
+
k === null && (I === null && $o(e), Io()), we && So(e);
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function hs(e, t) {
|
|
1164
1164
|
var r = t.last;
|
|
1165
1165
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1166
1166
|
}
|
|
1167
1167
|
function he(e, t) {
|
|
1168
1168
|
var r = k;
|
|
1169
|
-
r !== null && r.f & 8192 && (e |=
|
|
1169
|
+
r !== null && r.f & 8192 && (e |= Ar);
|
|
1170
1170
|
var i = {
|
|
1171
|
-
ctx:
|
|
1171
|
+
ctx: L,
|
|
1172
1172
|
deps: null,
|
|
1173
1173
|
nodes: null,
|
|
1174
1174
|
f: e | oe | 512,
|
|
@@ -1185,100 +1185,100 @@ function he(e, t) {
|
|
|
1185
1185
|
};
|
|
1186
1186
|
S?.register_created_effect(i);
|
|
1187
1187
|
var n = i;
|
|
1188
|
-
if (e & 4)
|
|
1188
|
+
if (e & 4) nt !== null ? nt.push(i) : Ge.ensure().schedule(i);
|
|
1189
1189
|
else if (t !== null) {
|
|
1190
1190
|
try {
|
|
1191
|
-
|
|
1191
|
+
at(i);
|
|
1192
1192
|
} catch (s) {
|
|
1193
1193
|
throw W(i), s;
|
|
1194
1194
|
}
|
|
1195
|
-
n.deps === null && n.teardown === null && n.nodes === null && n.first === n.last && !(n.f & 524288) && (n = n.first, e & 16 && e & 65536 && n !== null && (n.f |=
|
|
1195
|
+
n.deps === null && n.teardown === null && n.nodes === null && n.first === n.last && !(n.f & 524288) && (n = n.first, e & 16 && e & 65536 && n !== null && (n.f |= Mr));
|
|
1196
1196
|
}
|
|
1197
|
-
if (n !== null && (n.parent = r, r !== null &&
|
|
1197
|
+
if (n !== null && (n.parent = r, r !== null && hs(n, r), I !== null && I.f & 2 && !(e & 64))) {
|
|
1198
1198
|
var o = I;
|
|
1199
1199
|
(o.effects ?? (o.effects = [])).push(n);
|
|
1200
1200
|
}
|
|
1201
1201
|
return i;
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1203
|
+
function Vr() {
|
|
1204
1204
|
return I !== null && !re;
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1206
|
+
function ps(e) {
|
|
1207
1207
|
const t = he(8, null);
|
|
1208
1208
|
return R(t, J), t.teardown = e, t;
|
|
1209
1209
|
}
|
|
1210
|
-
function
|
|
1211
|
-
|
|
1210
|
+
function ht(e) {
|
|
1211
|
+
ds("$effect");
|
|
1212
1212
|
var t = k.f;
|
|
1213
1213
|
if (!I && t & 32 && !(t & 32768)) {
|
|
1214
|
-
var r =
|
|
1214
|
+
var r = L;
|
|
1215
1215
|
(r.e ?? (r.e = [])).push(e);
|
|
1216
|
-
} else return
|
|
1216
|
+
} else return vn(e);
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1219
|
-
return he(4 |
|
|
1218
|
+
function vn(e) {
|
|
1219
|
+
return he(4 | go, e);
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1222
|
-
|
|
1223
|
-
const t = he(64 |
|
|
1221
|
+
function vs(e) {
|
|
1222
|
+
Ge.ensure();
|
|
1223
|
+
const t = he(64 | lt, e);
|
|
1224
1224
|
return () => {
|
|
1225
1225
|
W(t);
|
|
1226
1226
|
};
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1229
|
-
|
|
1230
|
-
const t = he(64 |
|
|
1228
|
+
function _s(e) {
|
|
1229
|
+
Ge.ensure();
|
|
1230
|
+
const t = he(64 | lt, e);
|
|
1231
1231
|
return (r = {}) => new Promise((i) => {
|
|
1232
|
-
r.outro ?
|
|
1232
|
+
r.outro ? kt(t, () => {
|
|
1233
1233
|
W(t), i(void 0);
|
|
1234
1234
|
}) : (W(t), i(void 0));
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function _n(e) {
|
|
1238
1238
|
return he(4, e);
|
|
1239
1239
|
}
|
|
1240
|
-
function
|
|
1241
|
-
return he(
|
|
1240
|
+
function gs(e) {
|
|
1241
|
+
return he(mo | lt, e);
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function Wr(e, t = 0) {
|
|
1244
1244
|
return he(8 | t, e);
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1247
|
-
|
|
1246
|
+
function hi(e, t = [], r = [], i = []) {
|
|
1247
|
+
es(i, t, r, (n) => {
|
|
1248
1248
|
he(8, () => e(...n.map(p)));
|
|
1249
1249
|
});
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1251
|
+
function gn(e, t = 0) {
|
|
1252
1252
|
var r = he(16 | t, e);
|
|
1253
1253
|
return r;
|
|
1254
1254
|
}
|
|
1255
1255
|
function ye(e) {
|
|
1256
|
-
return he(32 |
|
|
1256
|
+
return he(32 | lt, e);
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1258
|
+
function mn(e) {
|
|
1259
1259
|
var t = e.teardown;
|
|
1260
1260
|
if (t !== null) {
|
|
1261
1261
|
const r = we, i = I;
|
|
1262
|
-
|
|
1262
|
+
pi(!0), Q(null);
|
|
1263
1263
|
try {
|
|
1264
1264
|
t.call(null);
|
|
1265
1265
|
} finally {
|
|
1266
|
-
|
|
1266
|
+
pi(r), Q(i);
|
|
1267
1267
|
}
|
|
1268
1268
|
}
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function Hr(e, t = !1) {
|
|
1271
1271
|
var r = e.first;
|
|
1272
1272
|
for (e.first = e.last = null; r !== null; ) {
|
|
1273
1273
|
const n = r.ac;
|
|
1274
|
-
n !== null &&
|
|
1274
|
+
n !== null && pn(() => {
|
|
1275
1275
|
n.abort(ge);
|
|
1276
1276
|
});
|
|
1277
1277
|
var i = r.next;
|
|
1278
1278
|
r.f & 64 ? r.parent = null : W(r, t), r = i;
|
|
1279
1279
|
}
|
|
1280
1280
|
}
|
|
1281
|
-
function
|
|
1281
|
+
function ms(e) {
|
|
1282
1282
|
for (var t = e.first; t !== null; ) {
|
|
1283
1283
|
var r = t.next;
|
|
1284
1284
|
t.f & 32 || W(t), t = r;
|
|
@@ -1286,26 +1286,26 @@ function hs(e) {
|
|
|
1286
1286
|
}
|
|
1287
1287
|
function W(e, t = !0) {
|
|
1288
1288
|
var r = !1;
|
|
1289
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (
|
|
1289
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (bs(e.nodes.start, e.nodes.end), r = !0), R(e, ri), Hr(e, t && !r), mt(e, 0);
|
|
1290
1290
|
var i = e.nodes && e.nodes.t;
|
|
1291
1291
|
if (i !== null) for (const o of i) o.stop();
|
|
1292
|
-
|
|
1292
|
+
mn(e), e.f ^= ri, e.f |= _o;
|
|
1293
1293
|
var n = e.parent;
|
|
1294
|
-
n !== null && n.first !== null &&
|
|
1294
|
+
n !== null && n.first !== null && bn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1296
|
+
function bs(e, t) {
|
|
1297
1297
|
for (; e !== null; ) {
|
|
1298
1298
|
var r = e === t ? null : /* @__PURE__ */ Te(e);
|
|
1299
1299
|
e.remove(), e = r;
|
|
1300
1300
|
}
|
|
1301
1301
|
}
|
|
1302
|
-
function
|
|
1302
|
+
function bn(e) {
|
|
1303
1303
|
var t = e.parent, r = e.prev, i = e.next;
|
|
1304
1304
|
r !== null && (r.next = i), i !== null && (i.prev = r), t !== null && (t.first === e && (t.first = i), t.last === e && (t.last = r));
|
|
1305
1305
|
}
|
|
1306
|
-
function
|
|
1306
|
+
function kt(e, t, r = !0) {
|
|
1307
1307
|
var i = [];
|
|
1308
|
-
|
|
1308
|
+
yn(e, i, !0);
|
|
1309
1309
|
var n = () => {
|
|
1310
1310
|
r && W(e), t && t();
|
|
1311
1311
|
}, o = i.length;
|
|
@@ -1314,9 +1314,9 @@ function yt(e, t, r = !0) {
|
|
|
1314
1314
|
for (var a of i) a.out(s);
|
|
1315
1315
|
} else n();
|
|
1316
1316
|
}
|
|
1317
|
-
function
|
|
1317
|
+
function yn(e, t, r) {
|
|
1318
1318
|
if (!(e.f & 8192)) {
|
|
1319
|
-
e.f ^=
|
|
1319
|
+
e.f ^= Ar;
|
|
1320
1320
|
var i = e.nodes && e.nodes.t;
|
|
1321
1321
|
if (i !== null)
|
|
1322
1322
|
for (const a of i) (a.is_global || r) && t.push(a);
|
|
@@ -1324,36 +1324,36 @@ function _n(e, t, r) {
|
|
|
1324
1324
|
var o = n.next;
|
|
1325
1325
|
if (!(n.f & 64)) {
|
|
1326
1326
|
var s = (n.f & 65536) !== 0 || (n.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1327
|
-
|
|
1327
|
+
yn(n, t, s ? r : !1);
|
|
1328
1328
|
}
|
|
1329
1329
|
n = o;
|
|
1330
1330
|
}
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1334
|
-
|
|
1333
|
+
function ys(e) {
|
|
1334
|
+
wn(e, !0);
|
|
1335
1335
|
}
|
|
1336
|
-
function
|
|
1336
|
+
function wn(e, t) {
|
|
1337
1337
|
if (e.f & 8192) {
|
|
1338
|
-
e.f ^=
|
|
1338
|
+
e.f ^= Ar, e.f & 1024 || (R(e, oe), Ge.ensure().schedule(e));
|
|
1339
1339
|
for (var r = e.first; r !== null; ) {
|
|
1340
1340
|
var i = r.next, n = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1341
|
-
|
|
1341
|
+
wn(r, n ? t : !1), r = i;
|
|
1342
1342
|
}
|
|
1343
1343
|
var o = e.nodes && e.nodes.t;
|
|
1344
1344
|
if (o !== null)
|
|
1345
1345
|
for (const s of o) (s.is_global || t) && s.in();
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
|
-
function
|
|
1348
|
+
function Tn(e, t) {
|
|
1349
1349
|
if (e.nodes)
|
|
1350
1350
|
for (var r = e.nodes.start, i = e.nodes.end; r !== null; ) {
|
|
1351
1351
|
var n = r === i ? null : /* @__PURE__ */ Te(r);
|
|
1352
1352
|
t.append(r), r = n;
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
|
-
var
|
|
1356
|
-
function
|
|
1355
|
+
var ws = null, Lt = !1, we = !1;
|
|
1356
|
+
function pi(e) {
|
|
1357
1357
|
we = e;
|
|
1358
1358
|
}
|
|
1359
1359
|
var I = null, re = !1;
|
|
@@ -1365,120 +1365,120 @@ function de(e) {
|
|
|
1365
1365
|
k = e;
|
|
1366
1366
|
}
|
|
1367
1367
|
var X = null;
|
|
1368
|
-
function
|
|
1368
|
+
function kn(e) {
|
|
1369
1369
|
I !== null && (!me || I.f & 2) && (X === null ? X = [e] : X.push(e));
|
|
1370
1370
|
}
|
|
1371
1371
|
var V = null, F = 0, Y = null;
|
|
1372
|
-
function
|
|
1372
|
+
function Ts(e) {
|
|
1373
1373
|
Y = e;
|
|
1374
1374
|
}
|
|
1375
|
-
var
|
|
1376
|
-
function
|
|
1377
|
-
|
|
1375
|
+
var Sn = 1, je = 0, Fe = je;
|
|
1376
|
+
function vi(e) {
|
|
1377
|
+
Fe = e;
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1380
|
-
return ++
|
|
1379
|
+
function In() {
|
|
1380
|
+
return ++Sn;
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1382
|
+
function St(e) {
|
|
1383
1383
|
var t = e.f;
|
|
1384
1384
|
if (t & 2048) return !0;
|
|
1385
|
-
if (t & 2 && (e.f &= ~
|
|
1385
|
+
if (t & 2 && (e.f &= ~bt), t & 4096) {
|
|
1386
1386
|
for (var r = e.deps, i = r.length, n = 0; n < i; n++) {
|
|
1387
1387
|
var o = r[n];
|
|
1388
|
-
if (
|
|
1388
|
+
if (St(o) && an(o), o.wv > e.wv) return !0;
|
|
1389
1389
|
}
|
|
1390
|
-
t & 512 &&
|
|
1390
|
+
t & 512 && D === null && R(e, J);
|
|
1391
1391
|
}
|
|
1392
1392
|
return !1;
|
|
1393
1393
|
}
|
|
1394
|
-
function
|
|
1394
|
+
function $n(e, t, r = !0) {
|
|
1395
1395
|
var i = e.reactions;
|
|
1396
|
-
if (i !== null && !(!me && X !== null &&
|
|
1396
|
+
if (i !== null && !(!me && X !== null && tt.call(X, e)))
|
|
1397
1397
|
for (var n = 0; n < i.length; n++) {
|
|
1398
1398
|
var o = i[n];
|
|
1399
|
-
o.f & 2 ?
|
|
1399
|
+
o.f & 2 ? $n(o, t, !1) : t === o && (r ? R(o, oe) : o.f & 1024 && R(o, Ue), Cr(o));
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1403
|
-
var t = V, r = F, i = Y, n = I, o = X, s =
|
|
1404
|
-
V = null, F = 0, Y = null, I = f & 96 ? null : e, X = null,
|
|
1402
|
+
function An(e) {
|
|
1403
|
+
var t = V, r = F, i = Y, n = I, o = X, s = L, a = re, c = Fe, f = e.f;
|
|
1404
|
+
V = null, F = 0, Y = null, I = f & 96 ? null : e, X = null, rt(e.ctx), re = !1, Fe = ++je, e.ac !== null && (pn(() => {
|
|
1405
1405
|
e.ac.abort(ge);
|
|
1406
1406
|
}), e.ac = null);
|
|
1407
1407
|
try {
|
|
1408
|
-
e.f |=
|
|
1408
|
+
e.f |= ii;
|
|
1409
1409
|
var u = e.fn, h = u();
|
|
1410
|
-
e.f |=
|
|
1410
|
+
e.f |= Er;
|
|
1411
1411
|
var d = e.deps, v = S?.is_fork;
|
|
1412
1412
|
if (V !== null) {
|
|
1413
1413
|
var _;
|
|
1414
|
-
if (v ||
|
|
1414
|
+
if (v || mt(e, F), d !== null && F > 0)
|
|
1415
1415
|
for (d.length = F + V.length, _ = 0; _ < V.length; _++) d[F + _] = V[_];
|
|
1416
1416
|
else e.deps = d = V;
|
|
1417
|
-
if (
|
|
1417
|
+
if (Vr() && e.f & 512) for (_ = F; _ < d.length; _++) {
|
|
1418
1418
|
var m;
|
|
1419
1419
|
((m = d[_]).reactions ?? (m.reactions = [])).push(e);
|
|
1420
1420
|
}
|
|
1421
|
-
} else !v && d !== null && F < d.length && (
|
|
1422
|
-
if (
|
|
1421
|
+
} else !v && d !== null && F < d.length && (mt(e, F), d.length = F);
|
|
1422
|
+
if (wt() && Y !== null && !re && d !== null && !(e.f & 6146)) for (_ = 0; _ < Y.length; _++) $n(Y[_], e);
|
|
1423
1423
|
if (n !== null && n !== e) {
|
|
1424
|
-
if (
|
|
1425
|
-
if (t !== null) for (const b of t) b.rv =
|
|
1424
|
+
if (je++, n.deps !== null) for (let b = 0; b < r; b += 1) n.deps[b].rv = je;
|
|
1425
|
+
if (t !== null) for (const b of t) b.rv = je;
|
|
1426
1426
|
Y !== null && (i === null ? i = Y : i.push(...Y));
|
|
1427
1427
|
}
|
|
1428
|
-
return e.f & 8388608 && (e.f ^=
|
|
1428
|
+
return e.f & 8388608 && (e.f ^= zt), h;
|
|
1429
1429
|
} catch (b) {
|
|
1430
|
-
return
|
|
1430
|
+
return Ui(b);
|
|
1431
1431
|
} finally {
|
|
1432
|
-
e.f ^=
|
|
1432
|
+
e.f ^= ii, V = t, F = r, Y = i, I = n, X = o, rt(s), re = a, Fe = c;
|
|
1433
1433
|
}
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function ks(e, t) {
|
|
1436
1436
|
let r = t.reactions;
|
|
1437
1437
|
if (r !== null) {
|
|
1438
|
-
var i =
|
|
1438
|
+
var i = lo.call(r, e);
|
|
1439
1439
|
if (i !== -1) {
|
|
1440
1440
|
var n = r.length - 1;
|
|
1441
1441
|
n === 0 ? r = t.reactions = null : (r[i] = r[n], r.pop());
|
|
1442
1442
|
}
|
|
1443
1443
|
}
|
|
1444
|
-
if (r === null && t.f & 2 && (V === null || !
|
|
1444
|
+
if (r === null && t.f & 2 && (V === null || !tt.call(V, t))) {
|
|
1445
1445
|
var o = t;
|
|
1446
|
-
o.f & 512 && (o.f ^= 512, o.f &= ~
|
|
1446
|
+
o.f & 512 && (o.f ^= 512, o.f &= ~bt), o.v !== N && xr(o), ns(o), mt(o, 0);
|
|
1447
1447
|
}
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function mt(e, t) {
|
|
1450
1450
|
var r = e.deps;
|
|
1451
1451
|
if (r !== null)
|
|
1452
|
-
for (var i = t; i < r.length; i++)
|
|
1452
|
+
for (var i = t; i < r.length; i++) ks(e, r[i]);
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function at(e) {
|
|
1455
1455
|
var t = e.f;
|
|
1456
1456
|
if (!(t & 16384)) {
|
|
1457
1457
|
R(e, J);
|
|
1458
|
-
var r = k, i =
|
|
1459
|
-
if (k = e,
|
|
1458
|
+
var r = k, i = Lt;
|
|
1459
|
+
if (k = e, Lt = !0, 0)
|
|
1460
1460
|
var n, o;
|
|
1461
1461
|
try {
|
|
1462
|
-
t & 16777232 ?
|
|
1463
|
-
var s =
|
|
1464
|
-
if (e.teardown = typeof s == "function" ? s : null, e.wv =
|
|
1462
|
+
t & 16777232 ? ms(e) : Hr(e), mn(e);
|
|
1463
|
+
var s = An(e);
|
|
1464
|
+
if (e.teardown = typeof s == "function" ? s : null, e.wv = Sn, 0)
|
|
1465
1465
|
for (var a of e.deps) ;
|
|
1466
1466
|
} finally {
|
|
1467
|
-
|
|
1467
|
+
Lt = i, k = r;
|
|
1468
1468
|
}
|
|
1469
1469
|
}
|
|
1470
1470
|
}
|
|
1471
1471
|
function p(e) {
|
|
1472
1472
|
var t = (e.f & 2) !== 0;
|
|
1473
|
-
if (
|
|
1473
|
+
if (ws?.add(e), I !== null && !re && !(k !== null && k.f & 16384) && (X === null || !tt.call(X, e))) {
|
|
1474
1474
|
var r = I.deps;
|
|
1475
1475
|
if (I.f & 2097152)
|
|
1476
|
-
e.rv <
|
|
1476
|
+
e.rv < je && (e.rv = je, V === null && r !== null && r[F] === e ? F++ : V === null ? V = [e] : V.push(e));
|
|
1477
1477
|
else {
|
|
1478
1478
|
var i;
|
|
1479
1479
|
((i = I).deps ?? (i.deps = [])).push(e);
|
|
1480
1480
|
var n = e.reactions;
|
|
1481
|
-
n === null ? e.reactions = [I] :
|
|
1481
|
+
n === null ? e.reactions = [I] : tt.call(n, I) || n.push(I);
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
1484
1484
|
if (0) {
|
|
@@ -1489,33 +1489,33 @@ function p(e) {
|
|
|
1489
1489
|
var s, a;
|
|
1490
1490
|
}
|
|
1491
1491
|
}
|
|
1492
|
-
if (we &&
|
|
1492
|
+
if (we && He.has(e)) return He.get(e);
|
|
1493
1493
|
if (t) {
|
|
1494
1494
|
var c = e;
|
|
1495
1495
|
if (we) {
|
|
1496
1496
|
var f = c.v;
|
|
1497
|
-
return (!(c.f & 1024) && c.reactions !== null ||
|
|
1497
|
+
return (!(c.f & 1024) && c.reactions !== null || Mn(c)) && (f = jr(c)), He.set(c, f), f;
|
|
1498
1498
|
}
|
|
1499
|
-
var u = (c.f & 512) === 0 && !re && I !== null && (
|
|
1500
|
-
|
|
1499
|
+
var u = (c.f & 512) === 0 && !re && I !== null && (Lt || (I.f & 512) !== 0), h = (c.f & Er) === 0;
|
|
1500
|
+
St(c) && (u && (c.f |= 512), an(c)), u && !h && (ln(c), En(c));
|
|
1501
1501
|
}
|
|
1502
|
-
if (
|
|
1502
|
+
if (D?.has(e)) return D.get(e);
|
|
1503
1503
|
if (e.f & 8388608) throw e.v;
|
|
1504
1504
|
return e.v;
|
|
1505
1505
|
}
|
|
1506
|
-
function
|
|
1506
|
+
function En(e) {
|
|
1507
1507
|
if (e.f |= 512, e.deps !== null)
|
|
1508
1508
|
for (const t of e.deps)
|
|
1509
|
-
(t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (
|
|
1509
|
+
(t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (ln(t), En(t));
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function Mn(e) {
|
|
1512
1512
|
if (e.v === N) return !0;
|
|
1513
1513
|
if (e.deps === null) return !1;
|
|
1514
1514
|
for (const t of e.deps)
|
|
1515
|
-
if (
|
|
1515
|
+
if (He.has(t) || t.f & 2 && Mn(t)) return !0;
|
|
1516
1516
|
return !1;
|
|
1517
1517
|
}
|
|
1518
|
-
function
|
|
1518
|
+
function Yt(e) {
|
|
1519
1519
|
var t = re;
|
|
1520
1520
|
try {
|
|
1521
1521
|
return re = !0, e();
|
|
@@ -1523,23 +1523,23 @@ function Ut(e) {
|
|
|
1523
1523
|
re = t;
|
|
1524
1524
|
}
|
|
1525
1525
|
}
|
|
1526
|
-
var
|
|
1527
|
-
function
|
|
1528
|
-
(t[
|
|
1526
|
+
var Je = Symbol("events"), On = /* @__PURE__ */ new Set(), kr = /* @__PURE__ */ new Set();
|
|
1527
|
+
function _i(e, t, r) {
|
|
1528
|
+
(t[Je] ?? (t[Je] = {}))[e] = r;
|
|
1529
1529
|
}
|
|
1530
|
-
function
|
|
1531
|
-
for (var t = 0; t < e.length; t++)
|
|
1532
|
-
for (var r of
|
|
1530
|
+
function Ss(e) {
|
|
1531
|
+
for (var t = 0; t < e.length; t++) On.add(e[t]);
|
|
1532
|
+
for (var r of kr) r(e);
|
|
1533
1533
|
}
|
|
1534
|
-
var
|
|
1535
|
-
function
|
|
1534
|
+
var gi = null;
|
|
1535
|
+
function mi(e) {
|
|
1536
1536
|
var t = this, r = t.ownerDocument, i = e.type, n = e.composedPath?.() || [], o = n[0] || e.target;
|
|
1537
|
-
|
|
1538
|
-
var s = 0, a =
|
|
1537
|
+
gi = e;
|
|
1538
|
+
var s = 0, a = gi === e && e[Je];
|
|
1539
1539
|
if (a) {
|
|
1540
1540
|
var c = n.indexOf(a);
|
|
1541
1541
|
if (c !== -1 && (t === document || t === window)) {
|
|
1542
|
-
e[
|
|
1542
|
+
e[Je] = t;
|
|
1543
1543
|
return;
|
|
1544
1544
|
}
|
|
1545
1545
|
var f = n.indexOf(t);
|
|
@@ -1547,7 +1547,7 @@ function pi(e) {
|
|
|
1547
1547
|
c <= f && (s = c);
|
|
1548
1548
|
}
|
|
1549
1549
|
if (o = n[s] || e.target, o !== t) {
|
|
1550
|
-
|
|
1550
|
+
Dt(e, "currentTarget", {
|
|
1551
1551
|
configurable: !0,
|
|
1552
1552
|
get() {
|
|
1553
1553
|
return o || r;
|
|
@@ -1559,7 +1559,7 @@ function pi(e) {
|
|
|
1559
1559
|
for (var d, v = []; o !== null; ) {
|
|
1560
1560
|
var _ = o.assignedSlot || o.parentNode || o.host || null;
|
|
1561
1561
|
try {
|
|
1562
|
-
var m = o[
|
|
1562
|
+
var m = o[Je]?.[i];
|
|
1563
1563
|
m != null && (!o.disabled || e.target === o) && m.call(o, e);
|
|
1564
1564
|
} catch (b) {
|
|
1565
1565
|
d ? v.push(b) : d = b;
|
|
@@ -1574,19 +1574,19 @@ function pi(e) {
|
|
|
1574
1574
|
throw d;
|
|
1575
1575
|
}
|
|
1576
1576
|
} finally {
|
|
1577
|
-
e[
|
|
1577
|
+
e[Je] = t, delete e.currentTarget, Q(u), de(h);
|
|
1578
1578
|
}
|
|
1579
1579
|
}
|
|
1580
1580
|
}
|
|
1581
|
-
var
|
|
1582
|
-
function
|
|
1583
|
-
return
|
|
1581
|
+
var Is = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1582
|
+
function $s(e) {
|
|
1583
|
+
return Is?.createHTML(e) ?? e;
|
|
1584
1584
|
}
|
|
1585
|
-
function
|
|
1586
|
-
var t =
|
|
1587
|
-
return t.innerHTML =
|
|
1585
|
+
function As(e) {
|
|
1586
|
+
var t = Dr("template");
|
|
1587
|
+
return t.innerHTML = $s(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1588
1588
|
}
|
|
1589
|
-
function
|
|
1589
|
+
function Ze(e, t) {
|
|
1590
1590
|
var r = k;
|
|
1591
1591
|
r.nodes === null && (r.nodes = {
|
|
1592
1592
|
start: e,
|
|
@@ -1596,35 +1596,35 @@ function Xe(e, t) {
|
|
|
1596
1596
|
});
|
|
1597
1597
|
}
|
|
1598
1598
|
// @__NO_SIDE_EFFECTS__
|
|
1599
|
-
function
|
|
1599
|
+
function xn(e, t) {
|
|
1600
1600
|
var r = (t & 1) !== 0, i = (t & 2) !== 0, n, o = !e.startsWith("<!>");
|
|
1601
1601
|
return () => {
|
|
1602
1602
|
if (O)
|
|
1603
|
-
return
|
|
1604
|
-
n === void 0 && (n =
|
|
1605
|
-
var s = i ||
|
|
1603
|
+
return Ze(A, null), A;
|
|
1604
|
+
n === void 0 && (n = As(o ? e : "<!>" + e), r || (n = /* @__PURE__ */ st(n)));
|
|
1605
|
+
var s = i || fn ? document.importNode(n, !0) : n.cloneNode(!0);
|
|
1606
1606
|
if (r) {
|
|
1607
|
-
var a = /* @__PURE__ */
|
|
1608
|
-
|
|
1609
|
-
} else
|
|
1607
|
+
var a = /* @__PURE__ */ st(s), c = s.lastChild;
|
|
1608
|
+
Ze(a, c);
|
|
1609
|
+
} else Ze(s, s);
|
|
1610
1610
|
return s;
|
|
1611
1611
|
};
|
|
1612
1612
|
}
|
|
1613
|
-
function
|
|
1613
|
+
function Es() {
|
|
1614
1614
|
if (O)
|
|
1615
|
-
return
|
|
1615
|
+
return Ze(A, null), A;
|
|
1616
1616
|
var e = document.createDocumentFragment(), t = document.createComment(""), r = be();
|
|
1617
|
-
return e.append(t, r),
|
|
1617
|
+
return e.append(t, r), Ze(t, r), e;
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1619
|
+
function Rt(e, t) {
|
|
1620
1620
|
if (O) {
|
|
1621
1621
|
var r = k;
|
|
1622
|
-
(!(r.f & 32768) || r.nodes.end === null) && (r.nodes.end = A),
|
|
1622
|
+
(!(r.f & 32768) || r.nodes.end === null) && (r.nodes.end = A), Or();
|
|
1623
1623
|
return;
|
|
1624
1624
|
}
|
|
1625
1625
|
e !== null && e.before(t);
|
|
1626
1626
|
}
|
|
1627
|
-
var
|
|
1627
|
+
var Ms = [
|
|
1628
1628
|
"allowfullscreen",
|
|
1629
1629
|
"async",
|
|
1630
1630
|
"autofocus",
|
|
@@ -1653,8 +1653,8 @@ var Ss = [
|
|
|
1653
1653
|
"defer",
|
|
1654
1654
|
"disablepictureinpicture",
|
|
1655
1655
|
"disableremoteplayback"
|
|
1656
|
-
],
|
|
1657
|
-
...
|
|
1656
|
+
], vl = [
|
|
1657
|
+
...Ms,
|
|
1658
1658
|
"formNoValidate",
|
|
1659
1659
|
"isMap",
|
|
1660
1660
|
"noModule",
|
|
@@ -1669,17 +1669,17 @@ var Ss = [
|
|
|
1669
1669
|
"allowFullscreen",
|
|
1670
1670
|
"disablePictureInPicture",
|
|
1671
1671
|
"disableRemotePlayback"
|
|
1672
|
-
],
|
|
1673
|
-
function
|
|
1674
|
-
return
|
|
1672
|
+
], Os = ["touchstart", "touchmove"];
|
|
1673
|
+
function xs(e) {
|
|
1674
|
+
return Os.includes(e);
|
|
1675
1675
|
}
|
|
1676
|
-
var
|
|
1676
|
+
var Ps = [
|
|
1677
1677
|
"$state",
|
|
1678
1678
|
"$state.raw",
|
|
1679
1679
|
"$derived",
|
|
1680
1680
|
"$derived.by"
|
|
1681
|
-
],
|
|
1682
|
-
...
|
|
1681
|
+
], _l = [
|
|
1682
|
+
...Ps,
|
|
1683
1683
|
"$state.eager",
|
|
1684
1684
|
"$state.snapshot",
|
|
1685
1685
|
"$props",
|
|
@@ -1694,84 +1694,84 @@ var As = [
|
|
|
1694
1694
|
"$inspect().with",
|
|
1695
1695
|
"$inspect.trace",
|
|
1696
1696
|
"$host"
|
|
1697
|
-
],
|
|
1698
|
-
function
|
|
1697
|
+
], bi = !0;
|
|
1698
|
+
function Ls(e, t) {
|
|
1699
1699
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1700
1700
|
r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = `${r}`);
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1703
|
-
return
|
|
1702
|
+
function Pn(e, t) {
|
|
1703
|
+
return Ln(e, t);
|
|
1704
1704
|
}
|
|
1705
|
-
function
|
|
1706
|
-
|
|
1705
|
+
function Rs(e, t) {
|
|
1706
|
+
Tr(), t.intro = t.intro ?? !1;
|
|
1707
1707
|
const r = t.target, i = O, n = A;
|
|
1708
1708
|
try {
|
|
1709
|
-
for (var o = /* @__PURE__ */
|
|
1710
|
-
if (!o) throw
|
|
1711
|
-
|
|
1712
|
-
const s =
|
|
1709
|
+
for (var o = /* @__PURE__ */ st(r); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ Te(o);
|
|
1710
|
+
if (!o) throw et;
|
|
1711
|
+
Xe(!0), ne(o);
|
|
1712
|
+
const s = Ln(e, {
|
|
1713
1713
|
...t,
|
|
1714
1714
|
anchor: o
|
|
1715
1715
|
});
|
|
1716
|
-
return
|
|
1716
|
+
return Xe(!1), s;
|
|
1717
1717
|
} catch (s) {
|
|
1718
1718
|
if (s instanceof Error && s.message.split(`
|
|
1719
1719
|
`).some((a) => a.startsWith("https://svelte.dev/e/"))) throw s;
|
|
1720
|
-
return s !==
|
|
1720
|
+
return s !== et && console.warn("Failed to hydrate: ", s), t.recover === !1 && Eo(), Tr(), us(r), Xe(!1), Pn(e, t);
|
|
1721
1721
|
} finally {
|
|
1722
|
-
|
|
1722
|
+
Xe(i), ne(n);
|
|
1723
1723
|
}
|
|
1724
1724
|
}
|
|
1725
|
-
var
|
|
1726
|
-
function
|
|
1727
|
-
|
|
1728
|
-
var c = void 0, f =
|
|
1725
|
+
var Ot = /* @__PURE__ */ new Map();
|
|
1726
|
+
function Ln(e, { target: t, anchor: r, props: i = {}, events: n, context: o, intro: s = !0, transformError: a }) {
|
|
1727
|
+
Tr();
|
|
1728
|
+
var c = void 0, f = _s(() => {
|
|
1729
1729
|
var u = r ?? t.appendChild(be());
|
|
1730
|
-
|
|
1730
|
+
Ko(u, { pending: () => {
|
|
1731
1731
|
} }, (v) => {
|
|
1732
|
-
|
|
1733
|
-
var _ =
|
|
1734
|
-
if (o && (_.c = o), n && (i.$$events = n), O &&
|
|
1735
|
-
throw
|
|
1736
|
-
|
|
1732
|
+
Hi({});
|
|
1733
|
+
var _ = L;
|
|
1734
|
+
if (o && (_.c = o), n && (i.$$events = n), O && Ze(v, null), bi = s, c = e(v, i) || {}, bi = !0, O && (k.nodes.end = A, A === null || A.nodeType !== 8 || A.data !== "]"))
|
|
1735
|
+
throw Gt(), et;
|
|
1736
|
+
Fi();
|
|
1737
1737
|
}, a);
|
|
1738
1738
|
var h = /* @__PURE__ */ new Set(), d = (v) => {
|
|
1739
1739
|
for (var _ = 0; _ < v.length; _++) {
|
|
1740
1740
|
var m = v[_];
|
|
1741
1741
|
if (!h.has(m)) {
|
|
1742
1742
|
h.add(m);
|
|
1743
|
-
var b =
|
|
1743
|
+
var b = xs(m);
|
|
1744
1744
|
for (const M of [t, document]) {
|
|
1745
|
-
var E =
|
|
1746
|
-
E === void 0 && (E = /* @__PURE__ */ new Map(),
|
|
1745
|
+
var E = Ot.get(M);
|
|
1746
|
+
E === void 0 && (E = /* @__PURE__ */ new Map(), Ot.set(M, E));
|
|
1747
1747
|
var U = E.get(m);
|
|
1748
|
-
U === void 0 ? (M.addEventListener(m,
|
|
1748
|
+
U === void 0 ? (M.addEventListener(m, mi, { passive: b }), E.set(m, 1)) : E.set(m, U + 1);
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
1751
|
}
|
|
1752
1752
|
};
|
|
1753
|
-
return d(
|
|
1753
|
+
return d(co(On)), kr.add(d), () => {
|
|
1754
1754
|
for (var v of h) for (const b of [t, document]) {
|
|
1755
|
-
var _ =
|
|
1756
|
-
--m == 0 ? (b.removeEventListener(v,
|
|
1755
|
+
var _ = Ot.get(b), m = _.get(v);
|
|
1756
|
+
--m == 0 ? (b.removeEventListener(v, mi), _.delete(v), _.size === 0 && Ot.delete(b)) : _.set(v, m);
|
|
1757
1757
|
}
|
|
1758
|
-
|
|
1758
|
+
kr.delete(d), u !== r && u.parentNode?.removeChild(u);
|
|
1759
1759
|
};
|
|
1760
1760
|
});
|
|
1761
|
-
return
|
|
1761
|
+
return Sr.set(c, f), c;
|
|
1762
1762
|
}
|
|
1763
|
-
var
|
|
1764
|
-
function
|
|
1765
|
-
const r =
|
|
1766
|
-
return r ? (
|
|
1763
|
+
var Sr = /* @__PURE__ */ new WeakMap();
|
|
1764
|
+
function Cs(e, t) {
|
|
1765
|
+
const r = Sr.get(e);
|
|
1766
|
+
return r ? (Sr.delete(e), r(t)) : Promise.resolve();
|
|
1767
1767
|
}
|
|
1768
|
-
var _e = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(),
|
|
1768
|
+
var _e = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap(), Ns = class {
|
|
1769
1769
|
constructor(e, t = !0) {
|
|
1770
|
-
g(this, "anchor", void 0), y(this, _e, /* @__PURE__ */ new Map()), y(this, Ae, /* @__PURE__ */ new Map()), y(this, Z, /* @__PURE__ */ new Map()), y(this,
|
|
1770
|
+
g(this, "anchor", void 0), y(this, _e, /* @__PURE__ */ new Map()), y(this, Ae, /* @__PURE__ */ new Map()), y(this, Z, /* @__PURE__ */ new Map()), y(this, ft, /* @__PURE__ */ new Set()), y(this, ir, !0), y(this, nr, (r) => {
|
|
1771
1771
|
if (l(_e, this).has(r)) {
|
|
1772
1772
|
var i = l(_e, this).get(r), n = l(Ae, this).get(i);
|
|
1773
1773
|
if (n)
|
|
1774
|
-
|
|
1774
|
+
ys(n), l(ft, this).delete(i);
|
|
1775
1775
|
else {
|
|
1776
1776
|
var o = l(Z, this).get(i);
|
|
1777
1777
|
o && (l(Ae, this).set(i, o.effect), l(Z, this).delete(i), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), n = o.effect);
|
|
@@ -1782,28 +1782,28 @@ var _e = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Z =
|
|
|
1782
1782
|
c && (W(c.effect), l(Z, this).delete(a));
|
|
1783
1783
|
}
|
|
1784
1784
|
for (const [s, a] of l(Ae, this)) {
|
|
1785
|
-
if (s === i || l(
|
|
1785
|
+
if (s === i || l(ft, this).has(s)) continue;
|
|
1786
1786
|
const c = () => {
|
|
1787
1787
|
if (Array.from(l(_e, this).values()).includes(s)) {
|
|
1788
1788
|
var f = document.createDocumentFragment();
|
|
1789
|
-
|
|
1789
|
+
Tn(a, f), f.append(be()), l(Z, this).set(s, {
|
|
1790
1790
|
effect: a,
|
|
1791
1791
|
fragment: f
|
|
1792
1792
|
});
|
|
1793
1793
|
} else W(a);
|
|
1794
|
-
l(
|
|
1794
|
+
l(ft, this).delete(s), l(Ae, this).delete(s);
|
|
1795
1795
|
};
|
|
1796
|
-
l(
|
|
1796
|
+
l(ir, this) || !n ? (l(ft, this).add(s), kt(a, c, !1)) : c();
|
|
1797
1797
|
}
|
|
1798
1798
|
}
|
|
1799
|
-
}), y(this,
|
|
1799
|
+
}), y(this, yi, (r) => {
|
|
1800
1800
|
l(_e, this).delete(r);
|
|
1801
1801
|
const i = Array.from(l(_e, this).values());
|
|
1802
1802
|
for (const [n, o] of l(Z, this)) i.includes(n) || (W(o.effect), l(Z, this).delete(n));
|
|
1803
|
-
}), this.anchor = e, w(
|
|
1803
|
+
}), this.anchor = e, w(ir, this, t);
|
|
1804
1804
|
}
|
|
1805
1805
|
ensure(e, t) {
|
|
1806
|
-
var r = S, i =
|
|
1806
|
+
var r = S, i = fs();
|
|
1807
1807
|
if (t && !l(Ae, this).has(e) && !l(Z, this).has(e)) if (i) {
|
|
1808
1808
|
var n = document.createDocumentFragment(), o = be();
|
|
1809
1809
|
n.append(o), l(Z, this).set(e, {
|
|
@@ -1814,18 +1814,18 @@ var _e = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Z =
|
|
|
1814
1814
|
if (l(_e, this).set(r, e), i) {
|
|
1815
1815
|
for (const [s, a] of l(Ae, this)) s === e ? r.unskip_effect(a) : r.skip_effect(a);
|
|
1816
1816
|
for (const [s, a] of l(Z, this)) s === e ? r.unskip_effect(a.effect) : r.skip_effect(a.effect);
|
|
1817
|
-
r.oncommit(l(
|
|
1817
|
+
r.oncommit(l(nr, this)), r.ondiscard(l(yi, this));
|
|
1818
1818
|
} else
|
|
1819
|
-
O && (this.anchor = A), l(
|
|
1819
|
+
O && (this.anchor = A), l(nr, this).call(this, r);
|
|
1820
1820
|
}
|
|
1821
1821
|
};
|
|
1822
|
-
function
|
|
1823
|
-
|
|
1824
|
-
const t =
|
|
1822
|
+
function js(e) {
|
|
1823
|
+
L === null && To("onMount"), yt && L.l !== null ? Ds(L).m.push(e) : ht(() => {
|
|
1824
|
+
const t = Yt(e);
|
|
1825
1825
|
if (typeof t == "function") return t;
|
|
1826
1826
|
});
|
|
1827
1827
|
}
|
|
1828
|
-
function
|
|
1828
|
+
function Ds(e) {
|
|
1829
1829
|
var t = e.l;
|
|
1830
1830
|
return t.u ?? (t.u = {
|
|
1831
1831
|
a: [],
|
|
@@ -1833,52 +1833,52 @@ function xs(e) {
|
|
|
1833
1833
|
m: []
|
|
1834
1834
|
});
|
|
1835
1835
|
}
|
|
1836
|
-
function
|
|
1836
|
+
function wi(e, t, r = !1) {
|
|
1837
1837
|
var i;
|
|
1838
|
-
O && (i = A,
|
|
1839
|
-
var n = new
|
|
1838
|
+
O && (i = A, Or());
|
|
1839
|
+
var n = new Ns(e), o = r ? Mr : 0;
|
|
1840
1840
|
function s(a, c) {
|
|
1841
1841
|
if (O) {
|
|
1842
|
-
var f =
|
|
1842
|
+
var f = No(i);
|
|
1843
1843
|
if (a !== parseInt(f.substring(1))) {
|
|
1844
|
-
var u =
|
|
1845
|
-
ne(u), n.anchor = u,
|
|
1844
|
+
var u = zi();
|
|
1845
|
+
ne(u), n.anchor = u, Xe(!1), n.ensure(a, c), Xe(!0);
|
|
1846
1846
|
return;
|
|
1847
1847
|
}
|
|
1848
1848
|
}
|
|
1849
1849
|
n.ensure(a, c);
|
|
1850
1850
|
}
|
|
1851
|
-
|
|
1851
|
+
gn(() => {
|
|
1852
1852
|
var a = !1;
|
|
1853
1853
|
t((c, f = 0) => {
|
|
1854
1854
|
a = !0, s(f, c);
|
|
1855
1855
|
}), a || s(-1, null);
|
|
1856
1856
|
}, o);
|
|
1857
1857
|
}
|
|
1858
|
-
function
|
|
1859
|
-
|
|
1858
|
+
function zs(e, t) {
|
|
1859
|
+
_n(() => {
|
|
1860
1860
|
var r = e.getRootNode(), i = r.host ? r : r.head ?? r.ownerDocument.head;
|
|
1861
1861
|
if (!i.querySelector("#" + t.hash)) {
|
|
1862
|
-
const n =
|
|
1862
|
+
const n = Dr("style");
|
|
1863
1863
|
n.id = t.hash, n.textContent = t.code, i.appendChild(n);
|
|
1864
1864
|
}
|
|
1865
1865
|
});
|
|
1866
1866
|
}
|
|
1867
|
-
var
|
|
1867
|
+
var Ti = [...`
|
|
1868
1868
|
\r\f \v\uFEFF`];
|
|
1869
|
-
function
|
|
1869
|
+
function Vs(e, t, r) {
|
|
1870
1870
|
var i = e == null ? "" : "" + e;
|
|
1871
1871
|
if (t && (i = i ? i + " " + t : t), r) {
|
|
1872
1872
|
for (var n of Object.keys(r)) if (r[n]) i = i ? i + " " + n : n;
|
|
1873
1873
|
else if (i.length)
|
|
1874
1874
|
for (var o = n.length, s = 0; (s = i.indexOf(n, s)) >= 0; ) {
|
|
1875
1875
|
var a = s + o;
|
|
1876
|
-
(s === 0 ||
|
|
1876
|
+
(s === 0 || Ti.includes(i[s - 1])) && (a === i.length || Ti.includes(i[a])) ? i = (s === 0 ? "" : i.substring(0, s)) + i.substring(a + 1) : s = a;
|
|
1877
1877
|
}
|
|
1878
1878
|
}
|
|
1879
1879
|
return i === "" ? null : i;
|
|
1880
1880
|
}
|
|
1881
|
-
function
|
|
1881
|
+
function ki(e, t = !1) {
|
|
1882
1882
|
var r = t ? " !important;" : ";", i = "";
|
|
1883
1883
|
for (var n of Object.keys(e)) {
|
|
1884
1884
|
var o = e[n];
|
|
@@ -1886,16 +1886,16 @@ function bi(e, t = !1) {
|
|
|
1886
1886
|
}
|
|
1887
1887
|
return i;
|
|
1888
1888
|
}
|
|
1889
|
-
function
|
|
1889
|
+
function or(e) {
|
|
1890
1890
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
1891
1891
|
}
|
|
1892
|
-
function
|
|
1892
|
+
function Ws(e, t) {
|
|
1893
1893
|
if (t) {
|
|
1894
1894
|
var r = "", i, n;
|
|
1895
1895
|
if (Array.isArray(t) ? (i = t[0], n = t[1]) : i = t, e) {
|
|
1896
1896
|
e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
|
|
1897
1897
|
var o = !1, s = 0, a = !1, c = [];
|
|
1898
|
-
i && c.push(...Object.keys(i).map(
|
|
1898
|
+
i && c.push(...Object.keys(i).map(or)), n && c.push(...Object.keys(n).map(or));
|
|
1899
1899
|
var f = 0, u = -1;
|
|
1900
1900
|
const m = e.length;
|
|
1901
1901
|
for (var h = 0; h < m; h++) {
|
|
@@ -1904,7 +1904,7 @@ function Ns(e, t) {
|
|
|
1904
1904
|
if (d === ":" && u === -1) u = h;
|
|
1905
1905
|
else if (d === ";" || h === m - 1) {
|
|
1906
1906
|
if (u !== -1) {
|
|
1907
|
-
var v =
|
|
1907
|
+
var v = or(e.substring(f, u).trim());
|
|
1908
1908
|
if (!c.includes(v)) {
|
|
1909
1909
|
d !== ";" && h++;
|
|
1910
1910
|
var _ = e.substring(f, h).trim();
|
|
@@ -1916,14 +1916,14 @@ function Ns(e, t) {
|
|
|
1916
1916
|
}
|
|
1917
1917
|
}
|
|
1918
1918
|
}
|
|
1919
|
-
return i && (r +=
|
|
1919
|
+
return i && (r += ki(i)), n && (r += ki(n, !0)), r = r.trim(), r === "" ? null : r;
|
|
1920
1920
|
}
|
|
1921
1921
|
return e == null ? null : String(e);
|
|
1922
1922
|
}
|
|
1923
|
-
function
|
|
1923
|
+
function Hs(e, t, r, i, n, o) {
|
|
1924
1924
|
var s = e.__className;
|
|
1925
1925
|
if (O || s !== r || s === void 0) {
|
|
1926
|
-
var a =
|
|
1926
|
+
var a = Vs(r, i, o);
|
|
1927
1927
|
(!O || a !== e.getAttribute("class")) && (a == null ? e.removeAttribute("class") : t ? e.className = a : e.setAttribute("class", a)), e.__className = r;
|
|
1928
1928
|
} else if (o && n !== o) for (var c in o) {
|
|
1929
1929
|
var f = !!o[c];
|
|
@@ -1931,85 +1931,85 @@ function Ds(e, t, r, i, n, o) {
|
|
|
1931
1931
|
}
|
|
1932
1932
|
return o;
|
|
1933
1933
|
}
|
|
1934
|
-
function
|
|
1934
|
+
function sr(e, t = {}, r, i) {
|
|
1935
1935
|
for (var n in r) {
|
|
1936
1936
|
var o = r[n];
|
|
1937
1937
|
t[n] !== o && (r[n] == null ? e.style.removeProperty(n) : e.style.setProperty(n, o, i));
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
1940
|
-
function
|
|
1940
|
+
function qe(e, t, r, i) {
|
|
1941
1941
|
var n = e.__style;
|
|
1942
1942
|
if (O || n !== t) {
|
|
1943
|
-
var o =
|
|
1943
|
+
var o = Ws(t, i);
|
|
1944
1944
|
(!O || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e.__style = t;
|
|
1945
|
-
} else i && (Array.isArray(i) ? (
|
|
1945
|
+
} else i && (Array.isArray(i) ? (sr(e, r?.[0], i[0]), sr(e, r?.[1], i[1], "important")) : sr(e, r, i));
|
|
1946
1946
|
return i;
|
|
1947
1947
|
}
|
|
1948
|
-
var
|
|
1949
|
-
function
|
|
1950
|
-
var n =
|
|
1951
|
-
if (O && (n[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName ===
|
|
1948
|
+
var Fs = Symbol("is custom element"), Bs = Symbol("is html"), Us = wo ? "link" : "LINK";
|
|
1949
|
+
function Gs(e, t, r, i) {
|
|
1950
|
+
var n = qs(e);
|
|
1951
|
+
if (O && (n[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Us)) {
|
|
1952
1952
|
i || void 0;
|
|
1953
1953
|
return;
|
|
1954
1954
|
}
|
|
1955
|
-
n[t] !== (n[t] = r) && (t === "loading" && (e[
|
|
1955
|
+
n[t] !== (n[t] = r) && (t === "loading" && (e[bo] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Ys(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
1956
1956
|
}
|
|
1957
|
-
function
|
|
1957
|
+
function qs(e) {
|
|
1958
1958
|
return e.__attributes ?? (e.__attributes = {
|
|
1959
|
-
[
|
|
1960
|
-
[
|
|
1959
|
+
[Fs]: e.nodeName.includes("-"),
|
|
1960
|
+
[Bs]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
1961
1961
|
});
|
|
1962
1962
|
}
|
|
1963
|
-
var
|
|
1964
|
-
function
|
|
1965
|
-
var t = e.getAttribute("is") || e.nodeName, r =
|
|
1963
|
+
var Si = /* @__PURE__ */ new Map();
|
|
1964
|
+
function Ys(e) {
|
|
1965
|
+
var t = e.getAttribute("is") || e.nodeName, r = Si.get(t);
|
|
1966
1966
|
if (r) return r;
|
|
1967
|
-
|
|
1967
|
+
Si.set(t, r = []);
|
|
1968
1968
|
for (var i, n = e, o = Element.prototype; o !== n; ) {
|
|
1969
|
-
i =
|
|
1969
|
+
i = uo(n);
|
|
1970
1970
|
for (var s in i) i[s].set && r.push(s);
|
|
1971
|
-
n =
|
|
1971
|
+
n = Ci(n);
|
|
1972
1972
|
}
|
|
1973
1973
|
return r;
|
|
1974
1974
|
}
|
|
1975
|
-
var
|
|
1975
|
+
var Rn, Ke = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakSet(), Cn = class {
|
|
1976
1976
|
constructor(e) {
|
|
1977
|
-
|
|
1977
|
+
Pr(this, Ii), y(this, Ke, /* @__PURE__ */ new WeakMap()), y(this, Bt, void 0), y(this, ar, void 0), w(ar, this, e);
|
|
1978
1978
|
}
|
|
1979
1979
|
observe(e, t) {
|
|
1980
|
-
var r = l(
|
|
1981
|
-
return r.add(t), l(
|
|
1982
|
-
var i = l(
|
|
1983
|
-
i.delete(t), i.size === 0 && (l(
|
|
1980
|
+
var r = l(Ke, this).get(e) || /* @__PURE__ */ new Set();
|
|
1981
|
+
return r.add(t), l(Ke, this).set(e, r), $(Ii, this, Ks).call(this).observe(e, l(ar, this)), () => {
|
|
1982
|
+
var i = l(Ke, this).get(e);
|
|
1983
|
+
i.delete(t), i.size === 0 && (l(Ke, this).delete(e), l(Bt, this).unobserve(e));
|
|
1984
1984
|
};
|
|
1985
1985
|
}
|
|
1986
1986
|
};
|
|
1987
|
-
|
|
1988
|
-
function
|
|
1989
|
-
return l(
|
|
1987
|
+
Rn = Cn;
|
|
1988
|
+
function Ks() {
|
|
1989
|
+
return l(Bt, this) ?? w(Bt, this, new ResizeObserver((e) => {
|
|
1990
1990
|
for (var t of e) {
|
|
1991
|
-
|
|
1992
|
-
for (var r of l(
|
|
1991
|
+
Rn.entries.set(t.target, t);
|
|
1992
|
+
for (var r of l(Ke, this).get(t.target) || []) r(t);
|
|
1993
1993
|
}
|
|
1994
1994
|
}));
|
|
1995
1995
|
}
|
|
1996
|
-
g(
|
|
1997
|
-
function
|
|
1998
|
-
return e === t || e?.[
|
|
1996
|
+
g(Cn, "entries", /* @__PURE__ */ new WeakMap());
|
|
1997
|
+
function $i(e, t) {
|
|
1998
|
+
return e === t || e?.[pt] === t;
|
|
1999
1999
|
}
|
|
2000
|
-
function
|
|
2001
|
-
var n =
|
|
2002
|
-
return
|
|
2000
|
+
function Xs(e = {}, t, r, i) {
|
|
2001
|
+
var n = L.r, o = k;
|
|
2002
|
+
return _n(() => {
|
|
2003
2003
|
var s, a;
|
|
2004
|
-
return
|
|
2005
|
-
s = a, a = i?.() || [],
|
|
2006
|
-
e !== r(...a) && (t(e, ...a), s &&
|
|
2004
|
+
return Wr(() => {
|
|
2005
|
+
s = a, a = i?.() || [], Yt(() => {
|
|
2006
|
+
e !== r(...a) && (t(e, ...a), s && $i(r(...s), e) && t(null, ...s));
|
|
2007
2007
|
});
|
|
2008
2008
|
}), () => {
|
|
2009
2009
|
let c = o;
|
|
2010
2010
|
for (; c !== n && c.parent !== null && c.parent.f & 33554432; ) c = c.parent;
|
|
2011
2011
|
const f = () => {
|
|
2012
|
-
a &&
|
|
2012
|
+
a && $i(r(...a), e) && t(null, ...a);
|
|
2013
2013
|
}, u = c.teardown;
|
|
2014
2014
|
c.teardown = () => {
|
|
2015
2015
|
f(), u?.();
|
|
@@ -2017,15 +2017,15 @@ function Us(e = {}, t, r, i) {
|
|
|
2017
2017
|
};
|
|
2018
2018
|
}), e;
|
|
2019
2019
|
}
|
|
2020
|
-
function
|
|
2021
|
-
var n = !
|
|
2020
|
+
function Ai(e, t, r, i) {
|
|
2021
|
+
var n = !yt || (r & 2) !== 0, o = (r & 8) !== 0, s = (r & 16) !== 0, a = i, c = !0, f = () => (c && (c = !1, a = s ? Yt(i) : i), a);
|
|
2022
2022
|
let u;
|
|
2023
2023
|
if (o) {
|
|
2024
|
-
var h =
|
|
2025
|
-
u =
|
|
2024
|
+
var h = pt in e || ji in e;
|
|
2025
|
+
u = De(e, t)?.set ?? (h && t in e ? (M) => e[t] = M : void 0);
|
|
2026
2026
|
}
|
|
2027
2027
|
var d, v = !1;
|
|
2028
|
-
o ? [d, v] =
|
|
2028
|
+
o ? [d, v] = Ho(() => e[t]) : d = e[t], d === void 0 && i !== void 0 && (d = f(), u && (n && Mo(t), u(d)));
|
|
2029
2029
|
var _;
|
|
2030
2030
|
if (n ? _ = () => {
|
|
2031
2031
|
var M = e[t];
|
|
@@ -2040,25 +2040,25 @@ function ki(e, t, r, i) {
|
|
|
2040
2040
|
return arguments.length > 0 ? ((!n || !G || m || v) && u(G ? _() : M), M) : _();
|
|
2041
2041
|
};
|
|
2042
2042
|
}
|
|
2043
|
-
var b = !1, E = (r & 1 ?
|
|
2043
|
+
var b = !1, E = (r & 1 ? qt : sn)(() => (b = !1, _()));
|
|
2044
2044
|
o && p(E);
|
|
2045
2045
|
var U = k;
|
|
2046
2046
|
return function(M, G) {
|
|
2047
2047
|
if (arguments.length > 0) {
|
|
2048
2048
|
const Ie = G ? p(E) : n && o ? ue(M) : M;
|
|
2049
|
-
return
|
|
2049
|
+
return x(E, Ie), b = !0, a !== void 0 && (a = Ie), M;
|
|
2050
2050
|
}
|
|
2051
2051
|
return we && b || U.f & 16384 ? E.v : p(E);
|
|
2052
2052
|
};
|
|
2053
2053
|
}
|
|
2054
|
-
function
|
|
2055
|
-
return new
|
|
2054
|
+
function Js(e) {
|
|
2055
|
+
return new Qs(e);
|
|
2056
2056
|
}
|
|
2057
|
-
var
|
|
2057
|
+
var Re = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), Qs = class {
|
|
2058
2058
|
constructor(e) {
|
|
2059
|
-
y(this,
|
|
2059
|
+
y(this, Re, void 0), y(this, se, void 0);
|
|
2060
2060
|
var t = /* @__PURE__ */ new Map(), r = (n, o) => {
|
|
2061
|
-
var s = /* @__PURE__ */
|
|
2061
|
+
var s = /* @__PURE__ */ os(o, !1, !1);
|
|
2062
2062
|
return t.set(n, s), s;
|
|
2063
2063
|
};
|
|
2064
2064
|
const i = new Proxy({
|
|
@@ -2069,13 +2069,13 @@ var Le = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), qs =
|
|
|
2069
2069
|
return p(t.get(o) ?? r(o, Reflect.get(n, o)));
|
|
2070
2070
|
},
|
|
2071
2071
|
has(n, o) {
|
|
2072
|
-
return o ===
|
|
2072
|
+
return o === ji ? !0 : (p(t.get(o) ?? r(o, Reflect.get(n, o))), Reflect.has(n, o));
|
|
2073
2073
|
},
|
|
2074
2074
|
set(n, o, s) {
|
|
2075
|
-
return
|
|
2075
|
+
return x(t.get(o) ?? r(o, s), s), Reflect.set(n, o, s);
|
|
2076
2076
|
}
|
|
2077
2077
|
});
|
|
2078
|
-
w(se, this, (e.hydrate ?
|
|
2078
|
+
w(se, this, (e.hydrate ? Rs : Pn)(e.component, {
|
|
2079
2079
|
target: e.target,
|
|
2080
2080
|
anchor: e.anchor,
|
|
2081
2081
|
props: i,
|
|
@@ -2083,9 +2083,9 @@ var Le = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), qs =
|
|
|
2083
2083
|
intro: e.intro ?? !1,
|
|
2084
2084
|
recover: e.recover,
|
|
2085
2085
|
transformError: e.transformError
|
|
2086
|
-
})), !me && (!e?.props?.$$host || e.sync === !1) &&
|
|
2086
|
+
})), !me && (!e?.props?.$$host || e.sync === !1) && _r(), w(Re, this, i.$$events);
|
|
2087
2087
|
for (const n of Object.keys(l(se, this)))
|
|
2088
|
-
n === "$set" || n === "$destroy" || n === "$on" ||
|
|
2088
|
+
n === "$set" || n === "$destroy" || n === "$on" || Dt(this, n, {
|
|
2089
2089
|
get() {
|
|
2090
2090
|
return l(se, this)[n];
|
|
2091
2091
|
},
|
|
@@ -2097,24 +2097,24 @@ var Le = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), qs =
|
|
|
2097
2097
|
l(se, this).$set = (n) => {
|
|
2098
2098
|
Object.assign(i, n);
|
|
2099
2099
|
}, l(se, this).$destroy = () => {
|
|
2100
|
-
|
|
2100
|
+
Cs(l(se, this));
|
|
2101
2101
|
};
|
|
2102
2102
|
}
|
|
2103
2103
|
$set(e) {
|
|
2104
2104
|
l(se, this).$set(e);
|
|
2105
2105
|
}
|
|
2106
2106
|
$on(e, t) {
|
|
2107
|
-
l(
|
|
2107
|
+
l(Re, this)[e] = l(Re, this)[e] || [];
|
|
2108
2108
|
const r = (...i) => t.call(this, ...i);
|
|
2109
|
-
return l(
|
|
2110
|
-
l(
|
|
2109
|
+
return l(Re, this)[e].push(r), () => {
|
|
2110
|
+
l(Re, this)[e] = l(Re, this)[e].filter((i) => i !== r);
|
|
2111
2111
|
};
|
|
2112
2112
|
}
|
|
2113
2113
|
$destroy() {
|
|
2114
2114
|
l(se, this).$destroy();
|
|
2115
2115
|
}
|
|
2116
|
-
},
|
|
2117
|
-
typeof HTMLElement == "function" && (
|
|
2116
|
+
}, Nn;
|
|
2117
|
+
typeof HTMLElement == "function" && (Nn = class extends HTMLElement {
|
|
2118
2118
|
constructor(e, t, r) {
|
|
2119
2119
|
super(), g(this, "$$ctor", void 0), g(this, "$$s", void 0), g(this, "$$c", void 0), g(this, "$$cn", !1), g(this, "$$d", {}), g(this, "$$r", !1), g(this, "$$p_d", {}), g(this, "$$l", {}), g(this, "$$l_u", /* @__PURE__ */ new Map()), g(this, "$$me", void 0), g(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2120
2120
|
}
|
|
@@ -2135,19 +2135,19 @@ typeof HTMLElement == "function" && (Ln = class extends HTMLElement {
|
|
|
2135
2135
|
if (this.$$cn = !0, !this.$$c) {
|
|
2136
2136
|
let e = function(i) {
|
|
2137
2137
|
return (n) => {
|
|
2138
|
-
const o =
|
|
2139
|
-
i !== "default" && (o.name = i),
|
|
2138
|
+
const o = Dr("slot");
|
|
2139
|
+
i !== "default" && (o.name = i), Rt(n, o);
|
|
2140
2140
|
};
|
|
2141
2141
|
};
|
|
2142
2142
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2143
|
-
const t = {}, r =
|
|
2143
|
+
const t = {}, r = Zs(this);
|
|
2144
2144
|
for (const i of this.$$s) i in r && (i === "default" && !this.$$d.children ? (this.$$d.children = e(i), t.default = !0) : t[i] = e(i));
|
|
2145
2145
|
for (const i of this.attributes) {
|
|
2146
2146
|
const n = this.$$g_p(i.name);
|
|
2147
|
-
n in this.$$d || (this.$$d[n] =
|
|
2147
|
+
n in this.$$d || (this.$$d[n] = Ct(n, i.value, this.$$p_d, "toProp"));
|
|
2148
2148
|
}
|
|
2149
2149
|
for (const i in this.$$p_d) !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
2150
|
-
this.$$c =
|
|
2150
|
+
this.$$c = Js({
|
|
2151
2151
|
component: this.$$ctor,
|
|
2152
2152
|
target: this.$$shadowRoot || this,
|
|
2153
2153
|
props: {
|
|
@@ -2155,13 +2155,13 @@ typeof HTMLElement == "function" && (Ln = class extends HTMLElement {
|
|
|
2155
2155
|
$$slots: t,
|
|
2156
2156
|
$$host: this
|
|
2157
2157
|
}
|
|
2158
|
-
}), this.$$me =
|
|
2159
|
-
|
|
2158
|
+
}), this.$$me = vs(() => {
|
|
2159
|
+
Wr(() => {
|
|
2160
2160
|
this.$$r = !0;
|
|
2161
|
-
for (const i of
|
|
2161
|
+
for (const i of jt(this.$$c)) {
|
|
2162
2162
|
if (!this.$$p_d[i]?.reflect) continue;
|
|
2163
2163
|
this.$$d[i] = this.$$c[i];
|
|
2164
|
-
const n =
|
|
2164
|
+
const n = Ct(i, this.$$d[i], this.$$p_d, "toAttribute");
|
|
2165
2165
|
n == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, n);
|
|
2166
2166
|
}
|
|
2167
2167
|
this.$$r = !1;
|
|
@@ -2175,7 +2175,7 @@ typeof HTMLElement == "function" && (Ln = class extends HTMLElement {
|
|
|
2175
2175
|
}
|
|
2176
2176
|
}
|
|
2177
2177
|
attributeChangedCallback(e, t, r) {
|
|
2178
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
2178
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ct(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2179
2179
|
}
|
|
2180
2180
|
disconnectedCallback() {
|
|
2181
2181
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2183,10 +2183,10 @@ typeof HTMLElement == "function" && (Ln = class extends HTMLElement {
|
|
|
2183
2183
|
});
|
|
2184
2184
|
}
|
|
2185
2185
|
$$g_p(e) {
|
|
2186
|
-
return
|
|
2186
|
+
return jt(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2187
2187
|
}
|
|
2188
2188
|
});
|
|
2189
|
-
function
|
|
2189
|
+
function Ct(e, t, r, i) {
|
|
2190
2190
|
const n = r[e]?.type;
|
|
2191
2191
|
if (t = n === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e]) return t;
|
|
2192
2192
|
if (i === "toAttribute") switch (n) {
|
|
@@ -2212,46 +2212,46 @@ function Lt(e, t, r, i) {
|
|
|
2212
2212
|
return t;
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
2215
|
-
function
|
|
2215
|
+
function Zs(e) {
|
|
2216
2216
|
const t = {};
|
|
2217
2217
|
return e.childNodes.forEach((r) => {
|
|
2218
2218
|
t[r.slot || "default"] = !0;
|
|
2219
2219
|
}), t;
|
|
2220
2220
|
}
|
|
2221
|
-
function
|
|
2222
|
-
let s = class extends
|
|
2221
|
+
function ea(e, t, r, i, n, o) {
|
|
2222
|
+
let s = class extends Nn {
|
|
2223
2223
|
constructor() {
|
|
2224
2224
|
super(e, r, n), this.$$p_d = t;
|
|
2225
2225
|
}
|
|
2226
2226
|
static get observedAttributes() {
|
|
2227
|
-
return
|
|
2227
|
+
return jt(t).map((a) => (t[a].attribute || a).toLowerCase());
|
|
2228
2228
|
}
|
|
2229
2229
|
};
|
|
2230
|
-
return
|
|
2231
|
-
|
|
2230
|
+
return jt(t).forEach((a) => {
|
|
2231
|
+
Dt(s.prototype, a, {
|
|
2232
2232
|
get() {
|
|
2233
2233
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
2234
2234
|
},
|
|
2235
2235
|
set(c) {
|
|
2236
|
-
c =
|
|
2236
|
+
c = Ct(a, c, t), this.$$d[a] = c;
|
|
2237
2237
|
var f = this.$$c;
|
|
2238
|
-
f && (
|
|
2238
|
+
f && (De(f, a)?.get ? f[a] = c : f.$set({ [a]: c }));
|
|
2239
2239
|
}
|
|
2240
2240
|
});
|
|
2241
2241
|
}), i.forEach((a) => {
|
|
2242
|
-
|
|
2242
|
+
Dt(s.prototype, a, { get() {
|
|
2243
2243
|
return this.$$c?.[a];
|
|
2244
2244
|
} });
|
|
2245
2245
|
}), o && (s = o(s)), e.element = s, s;
|
|
2246
2246
|
}
|
|
2247
|
-
var
|
|
2247
|
+
var ta = class extends Event {
|
|
2248
2248
|
constructor(e, t, r, i) {
|
|
2249
2249
|
super("context-request", {
|
|
2250
2250
|
bubbles: !0,
|
|
2251
2251
|
composed: !0
|
|
2252
2252
|
}), g(this, "context", void 0), g(this, "contextTarget", void 0), g(this, "callback", void 0), g(this, "subscribe", void 0), this.context = e, this.contextTarget = t, this.callback = r, this.subscribe = i ?? !1;
|
|
2253
2253
|
}
|
|
2254
|
-
},
|
|
2254
|
+
}, ra = class {
|
|
2255
2255
|
constructor(e, t) {
|
|
2256
2256
|
g(this, "host", void 0), g(this, "context", void 0), g(this, "subscribe", void 0), g(this, "onValue", void 0), g(this, "isConnected", !1), g(this, "unsubscribe", void 0), g(this, "currentValue", void 0), g(this, "handleValue", (r, i) => {
|
|
2257
2257
|
i !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = i), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = r, this.onValue?.(r);
|
|
@@ -2267,12 +2267,12 @@ var Xs = class extends Event {
|
|
|
2267
2267
|
return this.currentValue;
|
|
2268
2268
|
}
|
|
2269
2269
|
requestValue() {
|
|
2270
|
-
this.host.dispatchEvent(new
|
|
2270
|
+
this.host.dispatchEvent(new ta(this.context, this.host, this.handleValue, this.subscribe));
|
|
2271
2271
|
}
|
|
2272
|
-
},
|
|
2273
|
-
function
|
|
2272
|
+
}, Kt = (e) => e, ia = Kt(Symbol.for("pie.assessmentToolkit.runtimeContext")), gl = Kt(Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), ml = Kt(Symbol.for("pie.assessmentToolkit.shellContext")), bl = Kt(Symbol.for("pie.assessmentToolkit.regionScopeContext"));
|
|
2273
|
+
function na(e, t, r) {
|
|
2274
2274
|
let i = !1;
|
|
2275
|
-
const n = new
|
|
2275
|
+
const n = new ra(e, {
|
|
2276
2276
|
context: t,
|
|
2277
2277
|
subscribe: !0,
|
|
2278
2278
|
onValue: (f) => {
|
|
@@ -2296,42 +2296,111 @@ function Zs(e, t, r) {
|
|
|
2296
2296
|
globalThis.clearInterval(c), e.removeEventListener("context-provider", o), n.disconnect();
|
|
2297
2297
|
};
|
|
2298
2298
|
}
|
|
2299
|
-
function
|
|
2300
|
-
return
|
|
2299
|
+
function oa(e, t) {
|
|
2300
|
+
return na(e, ia, t);
|
|
2301
2301
|
}
|
|
2302
|
-
function
|
|
2303
|
-
return
|
|
2302
|
+
function sa(e, t) {
|
|
2303
|
+
return oa(e, t);
|
|
2304
2304
|
}
|
|
2305
|
-
var
|
|
2305
|
+
var Ei;
|
|
2306
2306
|
(function(e) {
|
|
2307
2307
|
e.TTS_WORD = "tts-word", e.TTS_SENTENCE = "tts-sentence", e.ANNOTATION = "annotation";
|
|
2308
|
-
})(
|
|
2309
|
-
var
|
|
2308
|
+
})(Ei || (Ei = {}));
|
|
2309
|
+
var Mi;
|
|
2310
2310
|
(function(e) {
|
|
2311
2311
|
e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
|
|
2312
|
-
})(
|
|
2313
|
-
function
|
|
2312
|
+
})(Mi || (Mi = {}));
|
|
2313
|
+
function jn(e) {
|
|
2314
2314
|
return (...t) => {
|
|
2315
2315
|
console.debug(`[${e}]`, ...t);
|
|
2316
2316
|
};
|
|
2317
2317
|
}
|
|
2318
|
-
var
|
|
2318
|
+
var yl = jn("I18nService"), lr = {
|
|
2319
2319
|
assessment: [],
|
|
2320
2320
|
section: [],
|
|
2321
2321
|
item: [],
|
|
2322
2322
|
passage: [],
|
|
2323
2323
|
rubric: [],
|
|
2324
2324
|
element: []
|
|
2325
|
-
},
|
|
2326
|
-
section: [...
|
|
2327
|
-
item: [...
|
|
2328
|
-
passage: [...
|
|
2325
|
+
}, cr = {
|
|
2326
|
+
section: [...lr.section],
|
|
2327
|
+
item: [...lr.item],
|
|
2328
|
+
passage: [...lr.passage]
|
|
2329
2329
|
};
|
|
2330
|
-
function
|
|
2330
|
+
function Be(e) {
|
|
2331
|
+
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
2332
|
+
}
|
|
2333
|
+
function Ee(e, t) {
|
|
2334
|
+
if (e == null) return [];
|
|
2335
|
+
if (!Array.isArray(e)) throw new Error(`Invalid tools config at "${t}": expected an array of tool ids.`);
|
|
2336
|
+
if (e.find((r) => typeof r != "string") !== void 0) throw new Error(`Invalid tools config at "${t}": all entries must be strings.`);
|
|
2337
|
+
return e;
|
|
2338
|
+
}
|
|
2339
|
+
function aa(e) {
|
|
2340
|
+
if (e != null) {
|
|
2341
|
+
if (!Be(e)) throw new Error('Invalid tools config at "placement": expected an object with section/item/passage arrays.');
|
|
2342
|
+
return e;
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
function la(e) {
|
|
2346
|
+
if (e != null) {
|
|
2347
|
+
if (!Be(e)) throw new Error('Invalid tools config at "policy": expected an object with allowed/blocked arrays.');
|
|
2348
|
+
return e;
|
|
2349
|
+
}
|
|
2350
|
+
}
|
|
2351
|
+
function ca(e, t) {
|
|
2352
|
+
if (t == null) return;
|
|
2353
|
+
if (!Be(t)) throw new Error(`Invalid tools config at "providers.${e}": expected an object.`);
|
|
2354
|
+
const r = t;
|
|
2355
|
+
if ("enabled" in r && r.enabled !== void 0 && typeof r.enabled != "boolean") throw new Error(`Invalid tools config at "providers.${e}.enabled": expected a boolean.`);
|
|
2356
|
+
if ("settings" in r && r.settings !== void 0 && !Be(r.settings)) throw new Error(`Invalid tools config at "providers.${e}.settings": expected an object.`);
|
|
2357
|
+
if ("provider" in r && r.provider !== void 0 && !Be(r.provider)) throw new Error(`Invalid tools config at "providers.${e}.provider": expected an object.`);
|
|
2358
|
+
return r;
|
|
2359
|
+
}
|
|
2360
|
+
function ua(e) {
|
|
2361
|
+
if (e == null) return {};
|
|
2362
|
+
if (!Be(e)) throw new Error('Invalid tools config at "providers": expected an object keyed by tool id.');
|
|
2363
|
+
const t = {};
|
|
2364
|
+
for (const [r, i] of Object.entries(e)) t[r] = ca(r, i);
|
|
2365
|
+
return t;
|
|
2366
|
+
}
|
|
2367
|
+
function Dn(e) {
|
|
2331
2368
|
const t = e.trim();
|
|
2332
2369
|
return t || "";
|
|
2333
2370
|
}
|
|
2334
|
-
|
|
2371
|
+
function Me(e) {
|
|
2372
|
+
if (!e || e.length === 0) return [];
|
|
2373
|
+
const t = /* @__PURE__ */ new Set();
|
|
2374
|
+
for (const r of e) {
|
|
2375
|
+
if (typeof r != "string") throw new Error("Invalid tools config: tool list entries must be strings.");
|
|
2376
|
+
const i = Dn(r);
|
|
2377
|
+
i && t.add(i);
|
|
2378
|
+
}
|
|
2379
|
+
return Array.from(t);
|
|
2380
|
+
}
|
|
2381
|
+
function fa(e) {
|
|
2382
|
+
if (e != null) {
|
|
2383
|
+
if (e === "on" || e === "off") return e;
|
|
2384
|
+
throw new Error(`Invalid tools config at "qtiEnforcement": expected "on" or "off", got ${JSON.stringify(e)}.`);
|
|
2385
|
+
}
|
|
2386
|
+
}
|
|
2387
|
+
function da(e) {
|
|
2388
|
+
if (e != null && !Be(e)) throw new Error('Invalid tools config: expected an object with "policy", "placement", and "providers".');
|
|
2389
|
+
const t = la(e?.policy), r = aa(e?.placement), i = ua(e?.providers), n = fa(e?.qtiEnforcement), o = {
|
|
2390
|
+
policy: {
|
|
2391
|
+
allowed: Me(Ee(t?.allowed, "policy.allowed")),
|
|
2392
|
+
blocked: Me(Ee(t?.blocked, "policy.blocked"))
|
|
2393
|
+
},
|
|
2394
|
+
placement: {
|
|
2395
|
+
section: Me(Ee(r?.section, "placement.section")).length ? Me(Ee(r?.section, "placement.section")) : [...cr.section],
|
|
2396
|
+
item: Me(Ee(r?.item, "placement.item")).length ? Me(Ee(r?.item, "placement.item")) : [...cr.item],
|
|
2397
|
+
passage: Me(Ee(r?.passage, "placement.passage")).length ? Me(Ee(r?.passage, "placement.passage")) : [...cr.passage]
|
|
2398
|
+
},
|
|
2399
|
+
providers: i
|
|
2400
|
+
};
|
|
2401
|
+
return n && (o.qtiEnforcement = n), o;
|
|
2402
|
+
}
|
|
2403
|
+
var ha = [
|
|
2335
2404
|
"assessment",
|
|
2336
2405
|
"section",
|
|
2337
2406
|
"item",
|
|
@@ -2339,10 +2408,10 @@ var ia = [
|
|
|
2339
2408
|
"rubric",
|
|
2340
2409
|
"element"
|
|
2341
2410
|
];
|
|
2342
|
-
function
|
|
2411
|
+
function Nt(e, t) {
|
|
2343
2412
|
if (typeof e != "string" || e.trim().length === 0) throw new Error(`Invalid tool registration: "${t}" must be a non-empty string.`);
|
|
2344
2413
|
}
|
|
2345
|
-
var
|
|
2414
|
+
var pa = [
|
|
2346
2415
|
{
|
|
2347
2416
|
pattern: /<script\b/i,
|
|
2348
2417
|
reason: "contains a <script> tag"
|
|
@@ -2360,17 +2429,17 @@ var na = [
|
|
|
2360
2429
|
reason: "contains a <foreignObject> element"
|
|
2361
2430
|
}
|
|
2362
2431
|
];
|
|
2363
|
-
function
|
|
2432
|
+
function va(e, t, r) {
|
|
2364
2433
|
const i = t.trimStart(), n = i.toLowerCase().startsWith("<svg"), o = /^https?:/i.test(i);
|
|
2365
2434
|
if (/^data:/i.test(i)) throw new Error(`Invalid tool registration "${e}": "${r}" may not be a data: URL.`);
|
|
2366
2435
|
if (!(!n && !o)) {
|
|
2367
|
-
for (const { pattern: s, reason: a } of
|
|
2436
|
+
for (const { pattern: s, reason: a } of pa) if (s.test(t)) throw new Error(`Invalid tool registration "${e}": "${r}" ${a}. Inline SVG icons must not include scriptable content.`);
|
|
2368
2437
|
}
|
|
2369
2438
|
}
|
|
2370
|
-
function
|
|
2371
|
-
if (
|
|
2372
|
-
if (typeof e.icon == "string" &&
|
|
2373
|
-
const t = e.supportedLevels.find((r) => !
|
|
2439
|
+
function Oi(e) {
|
|
2440
|
+
if (Nt(e.toolId, "toolId"), Nt(e.name, "name"), Nt(e.description, "description"), typeof e.icon != "string" && typeof e.icon != "function") throw new Error(`Invalid tool registration "${e.toolId}": "icon" must be a string or function.`);
|
|
2441
|
+
if (typeof e.icon == "string" && va(e.toolId, e.icon, "icon"), !Array.isArray(e.supportedLevels) || e.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${e.toolId}": "supportedLevels" must be a non-empty array.`);
|
|
2442
|
+
const t = e.supportedLevels.find((r) => !ha.includes(r));
|
|
2374
2443
|
if (t) throw new Error(`Invalid tool registration "${e.toolId}": unsupported level "${t}".`);
|
|
2375
2444
|
if (e.activation !== void 0 && e.activation !== "toolbar-toggle" && e.activation !== "selection-gateway") throw new Error(`Invalid tool registration "${e.toolId}": unsupported activation "${String(e.activation)}".`);
|
|
2376
2445
|
if (e.singletonScope !== void 0 && e.singletonScope !== "section") throw new Error(`Invalid tool registration "${e.toolId}": unsupported singletonScope "${String(e.singletonScope)}".`);
|
|
@@ -2379,23 +2448,23 @@ function $i(e) {
|
|
|
2379
2448
|
if (typeof e.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${e.toolId}": "isVisibleInContext" must be a function.`);
|
|
2380
2449
|
if (typeof e.renderToolbar != "function") throw new Error(`Invalid tool registration "${e.toolId}": "renderToolbar" must be a function.`);
|
|
2381
2450
|
}
|
|
2382
|
-
var
|
|
2451
|
+
var _a = class {
|
|
2383
2452
|
constructor() {
|
|
2384
2453
|
g(this, "tools", /* @__PURE__ */ new Map()), g(this, "pnpIndex", /* @__PURE__ */ new Map()), g(this, "componentOverrides", {}), g(this, "moduleLoaders", /* @__PURE__ */ new Map()), g(this, "loadedToolModules", /* @__PURE__ */ new Set()), g(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
|
|
2385
2454
|
}
|
|
2386
2455
|
normalizeToolId(e) {
|
|
2387
|
-
return
|
|
2456
|
+
return Dn(e);
|
|
2388
2457
|
}
|
|
2389
2458
|
normalizeToolIds(e) {
|
|
2390
2459
|
return e.map((t) => this.normalizeToolId(t));
|
|
2391
2460
|
}
|
|
2392
2461
|
register(e) {
|
|
2393
|
-
if (
|
|
2462
|
+
if (Oi(e), this.tools.has(e.toolId)) throw new Error(`Tool '${e.toolId}' is already registered`);
|
|
2394
2463
|
if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const t of e.pnpSupportIds)
|
|
2395
2464
|
this.pnpIndex.has(t) || this.pnpIndex.set(t, /* @__PURE__ */ new Set()), this.pnpIndex.get(t).add(e.toolId);
|
|
2396
2465
|
}
|
|
2397
2466
|
override(e) {
|
|
2398
|
-
if (
|
|
2467
|
+
if (Oi(e), !this.tools.has(e.toolId)) throw new Error(`Cannot override non-existent tool '${e.toolId}'`);
|
|
2399
2468
|
const t = this.tools.get(e.toolId);
|
|
2400
2469
|
if (t.pnpSupportIds) for (const r of t.pnpSupportIds) this.pnpIndex.get(r)?.delete(e.toolId);
|
|
2401
2470
|
if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const r of e.pnpSupportIds)
|
|
@@ -2480,7 +2549,7 @@ var sa = class {
|
|
|
2480
2549
|
setToolModuleLoaders(e) {
|
|
2481
2550
|
for (const [t, r] of Object.entries(e))
|
|
2482
2551
|
if (r) {
|
|
2483
|
-
if (
|
|
2552
|
+
if (Nt(t, "tool module loader id"), typeof r != "function") throw new Error(`Invalid tool module loader for "${t}": expected a function.`);
|
|
2484
2553
|
this.moduleLoaders.set(t, r);
|
|
2485
2554
|
}
|
|
2486
2555
|
}
|
|
@@ -2522,20 +2591,20 @@ var sa = class {
|
|
|
2522
2591
|
return i.renderToolbar(t, n);
|
|
2523
2592
|
}
|
|
2524
2593
|
};
|
|
2525
|
-
function
|
|
2594
|
+
function zn(e) {
|
|
2526
2595
|
return e.level === "item";
|
|
2527
2596
|
}
|
|
2528
|
-
function
|
|
2597
|
+
function ga(e) {
|
|
2529
2598
|
return e.level === "passage";
|
|
2530
2599
|
}
|
|
2531
|
-
function
|
|
2600
|
+
function ma(e) {
|
|
2532
2601
|
return e.level === "rubric";
|
|
2533
2602
|
}
|
|
2534
|
-
function
|
|
2603
|
+
function Vn(e) {
|
|
2535
2604
|
return e.level === "element";
|
|
2536
2605
|
}
|
|
2537
|
-
function
|
|
2538
|
-
if (
|
|
2606
|
+
function Fr(e) {
|
|
2607
|
+
if (Vn(e)) {
|
|
2539
2608
|
const t = e.item.config;
|
|
2540
2609
|
if (!t) return "";
|
|
2541
2610
|
const r = [], i = (a) => a.replace(/<[^>]*>/g, " ").trim(), n = t.elements?.[e.elementId];
|
|
@@ -2550,7 +2619,7 @@ function zr(e) {
|
|
|
2550
2619
|
}
|
|
2551
2620
|
return r.filter(Boolean).join(" ").trim();
|
|
2552
2621
|
}
|
|
2553
|
-
if (
|
|
2622
|
+
if (zn(e)) {
|
|
2554
2623
|
const t = e.item;
|
|
2555
2624
|
if (!t?.config) return "";
|
|
2556
2625
|
const r = t.config, i = [], n = (c) => c.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2569,7 +2638,7 @@ function zr(e) {
|
|
|
2569
2638
|
}
|
|
2570
2639
|
return i.filter(Boolean).join(" ").trim();
|
|
2571
2640
|
}
|
|
2572
|
-
if (
|
|
2641
|
+
if (ga(e)) {
|
|
2573
2642
|
const t = e.passage;
|
|
2574
2643
|
if (!t?.config) return "";
|
|
2575
2644
|
const r = t.config, i = [], n = (c) => c.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2588,14 +2657,14 @@ function zr(e) {
|
|
|
2588
2657
|
}
|
|
2589
2658
|
return i.filter(Boolean).join(" ").trim();
|
|
2590
2659
|
}
|
|
2591
|
-
if (
|
|
2660
|
+
if (ma(e)) {
|
|
2592
2661
|
const t = e.rubricBlock;
|
|
2593
2662
|
return t.passage?.config ? (t.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (t.content || "").replace(/<[^>]*>/g, " ").trim();
|
|
2594
2663
|
}
|
|
2595
2664
|
return "";
|
|
2596
2665
|
}
|
|
2597
|
-
function
|
|
2598
|
-
const t =
|
|
2666
|
+
function Xt(e) {
|
|
2667
|
+
const t = Fr(e);
|
|
2599
2668
|
return [
|
|
2600
2669
|
/<math[>\s]/i,
|
|
2601
2670
|
/\\\[([^\]]+)\\\]/,
|
|
@@ -2605,7 +2674,7 @@ function qt(e) {
|
|
|
2605
2674
|
/\d+\s*[+\-*/=]\s*\d+/
|
|
2606
2675
|
].some((r) => r.test(t));
|
|
2607
2676
|
}
|
|
2608
|
-
function
|
|
2677
|
+
function ba(e) {
|
|
2609
2678
|
const t = [
|
|
2610
2679
|
"pie-multiple-choice",
|
|
2611
2680
|
"pie-inline-choice",
|
|
@@ -2614,7 +2683,7 @@ function ca(e) {
|
|
|
2614
2683
|
"inline-choice",
|
|
2615
2684
|
"select-text"
|
|
2616
2685
|
];
|
|
2617
|
-
if (
|
|
2686
|
+
if (Vn(e)) {
|
|
2618
2687
|
const r = e.item.config;
|
|
2619
2688
|
if (!r?.models) return !1;
|
|
2620
2689
|
const i = (Array.isArray(r.models) ? r.models : Object.values(r.models)).find((o) => o && typeof o == "object" && o.id === e.elementId);
|
|
@@ -2622,7 +2691,7 @@ function ca(e) {
|
|
|
2622
2691
|
const n = i.element || "";
|
|
2623
2692
|
return t.includes(n);
|
|
2624
2693
|
}
|
|
2625
|
-
if (
|
|
2694
|
+
if (zn(e)) {
|
|
2626
2695
|
const r = e.item.config?.models;
|
|
2627
2696
|
return (Array.isArray(r) ? r : r && typeof r == "object" ? Object.values(r) : []).some((i) => {
|
|
2628
2697
|
if (!i || typeof i != "object") return !1;
|
|
@@ -2632,11 +2701,11 @@ function ca(e) {
|
|
|
2632
2701
|
}
|
|
2633
2702
|
return !1;
|
|
2634
2703
|
}
|
|
2635
|
-
function
|
|
2636
|
-
return
|
|
2704
|
+
function Jt(e) {
|
|
2705
|
+
return Fr(e).trim().length >= 10;
|
|
2637
2706
|
}
|
|
2638
|
-
function
|
|
2639
|
-
const t =
|
|
2707
|
+
function ya(e) {
|
|
2708
|
+
const t = Fr(e);
|
|
2640
2709
|
return [
|
|
2641
2710
|
/chemistry|chemical|element|atom|molecule|compound/i,
|
|
2642
2711
|
/periodic\s+table/i,
|
|
@@ -2646,23 +2715,23 @@ function ua(e) {
|
|
|
2646
2715
|
/physics|force|energy|velocity|acceleration/i
|
|
2647
2716
|
].some((r) => r.test(t));
|
|
2648
2717
|
}
|
|
2649
|
-
var
|
|
2718
|
+
var wa = [
|
|
2650
2719
|
"assessment",
|
|
2651
2720
|
"section",
|
|
2652
2721
|
"item",
|
|
2653
2722
|
"passage",
|
|
2654
2723
|
"rubric"
|
|
2655
|
-
],
|
|
2656
|
-
function
|
|
2657
|
-
return
|
|
2724
|
+
], Ta = new Set(wa);
|
|
2725
|
+
function ka(e) {
|
|
2726
|
+
return Ta.has(e);
|
|
2658
2727
|
}
|
|
2659
|
-
function
|
|
2728
|
+
function Br(e, t, r) {
|
|
2660
2729
|
const i = e.trim(), n = r.trim();
|
|
2661
2730
|
if (!i || !n) throw new Error("Tool instance ids require non-empty tool and scope ids");
|
|
2662
|
-
if (!
|
|
2731
|
+
if (!ka(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
|
|
2663
2732
|
return `${i}:${t}:${n}`;
|
|
2664
2733
|
}
|
|
2665
|
-
var
|
|
2734
|
+
var Sa = class {
|
|
2666
2735
|
constructor() {
|
|
2667
2736
|
g(this, "providerId", "desmos-calculator"), g(this, "providerName", "Desmos Calculator"), g(this, "category", "calculator"), g(this, "version", "1.10"), g(this, "requiresAuth", !0), g(this, "desmosProvider", null), g(this, "config", null);
|
|
2668
2737
|
}
|
|
@@ -2739,7 +2808,7 @@ var pa = class {
|
|
|
2739
2808
|
destroy() {
|
|
2740
2809
|
this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
|
|
2741
2810
|
}
|
|
2742
|
-
},
|
|
2811
|
+
}, Ia = (e, t) => {
|
|
2743
2812
|
const r = t?.useSentenceSegmenter !== !1;
|
|
2744
2813
|
try {
|
|
2745
2814
|
if (!r) throw new Error("Segmenter disabled by policy");
|
|
@@ -2766,14 +2835,14 @@ var pa = class {
|
|
|
2766
2835
|
text: e,
|
|
2767
2836
|
offset: 0
|
|
2768
2837
|
}];
|
|
2769
|
-
},
|
|
2838
|
+
}, $a = class {
|
|
2770
2839
|
constructor() {
|
|
2771
2840
|
g(this, "providerId", "browser"), g(this, "providerName", "Browser Speech Synthesis"), g(this, "version", "1.0.0");
|
|
2772
2841
|
}
|
|
2773
2842
|
async initialize(e) {
|
|
2774
2843
|
if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
|
|
2775
2844
|
if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
|
|
2776
|
-
return new
|
|
2845
|
+
return new Aa(e);
|
|
2777
2846
|
}
|
|
2778
2847
|
supportsFeature(e) {
|
|
2779
2848
|
return !0;
|
|
@@ -2790,7 +2859,7 @@ var pa = class {
|
|
|
2790
2859
|
}
|
|
2791
2860
|
destroy() {
|
|
2792
2861
|
}
|
|
2793
|
-
},
|
|
2862
|
+
}, Aa = class {
|
|
2794
2863
|
constructor(e) {
|
|
2795
2864
|
g(this, "utterance", null), g(this, "config", null), g(this, "_isPlaying", !1), g(this, "_isPaused", !1), g(this, "speakRunId", 0), g(this, "onWordBoundary", void 0), this.config = e;
|
|
2796
2865
|
}
|
|
@@ -2860,7 +2929,7 @@ var pa = class {
|
|
|
2860
2929
|
}
|
|
2861
2930
|
segmentSentences(e) {
|
|
2862
2931
|
const t = this.getSegmentationPolicy();
|
|
2863
|
-
return
|
|
2932
|
+
return Ia(e, {
|
|
2864
2933
|
locale: t.locale,
|
|
2865
2934
|
useSentenceSegmenter: t.useSentenceSegmenter
|
|
2866
2935
|
});
|
|
@@ -2929,7 +2998,7 @@ var pa = class {
|
|
|
2929
2998
|
...e.providerOptions || {}
|
|
2930
2999
|
});
|
|
2931
3000
|
}
|
|
2932
|
-
},
|
|
3001
|
+
}, Ea = class {
|
|
2933
3002
|
async emitTelemetry(e, t) {
|
|
2934
3003
|
try {
|
|
2935
3004
|
await this.config?.onTelemetry?.(e, t);
|
|
@@ -2961,7 +3030,7 @@ var pa = class {
|
|
|
2961
3030
|
}
|
|
2962
3031
|
async _initializeBrowserTTS(e) {
|
|
2963
3032
|
if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
|
|
2964
|
-
this.ttsProvider = new
|
|
3033
|
+
this.ttsProvider = new $a(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
|
|
2965
3034
|
}
|
|
2966
3035
|
async _initializeServerTTS(e) {
|
|
2967
3036
|
if (!e.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
|
|
@@ -3019,7 +3088,7 @@ var pa = class {
|
|
|
3019
3088
|
destroy() {
|
|
3020
3089
|
this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
|
|
3021
3090
|
}
|
|
3022
|
-
},
|
|
3091
|
+
}, Ma = /* @__PURE__ */ new Set([
|
|
3023
3092
|
"annotation-xml",
|
|
3024
3093
|
"color-profile",
|
|
3025
3094
|
"font-face",
|
|
@@ -3028,16 +3097,16 @@ var pa = class {
|
|
|
3028
3097
|
"font-face-format",
|
|
3029
3098
|
"font-face-name",
|
|
3030
3099
|
"missing-glyph"
|
|
3031
|
-
]),
|
|
3100
|
+
]), Oa = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, xa = (e, t = "custom element tag") => {
|
|
3032
3101
|
if (!e || typeof e != "string") throw new Error(`Invalid ${t}: expected a non-empty string`);
|
|
3033
3102
|
const r = e.trim();
|
|
3034
3103
|
if (!r) throw new Error(`Invalid ${t}: tag is empty`);
|
|
3035
3104
|
if (r !== r.toLowerCase()) throw new Error(`Invalid ${t} "${r}": custom element names must be lowercase`);
|
|
3036
3105
|
if (!r.includes("-")) throw new Error(`Invalid ${t} "${r}": custom element names must include a hyphen`);
|
|
3037
|
-
if (
|
|
3038
|
-
if (!
|
|
3106
|
+
if (Ma.has(r)) throw new Error(`Invalid ${t} "${r}": this name is reserved by the HTML spec`);
|
|
3107
|
+
if (!Oa.test(r)) throw new Error(`Invalid ${t} "${r}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
|
|
3039
3108
|
return r;
|
|
3040
|
-
},
|
|
3109
|
+
}, Wn = {
|
|
3041
3110
|
calculator: "pie-tool-calculator",
|
|
3042
3111
|
textToSpeech: "pie-tool-text-to-speech",
|
|
3043
3112
|
ruler: "pie-tool-ruler",
|
|
@@ -3050,22 +3119,22 @@ var pa = class {
|
|
|
3050
3119
|
annotationToolbar: "pie-tool-annotation-toolbar",
|
|
3051
3120
|
graph: "pie-tool-graph",
|
|
3052
3121
|
periodicTable: "pie-tool-periodic-table"
|
|
3053
|
-
},
|
|
3054
|
-
const n =
|
|
3122
|
+
}, Pa = (e, t) => xa(t?.toolTagMap?.[e] ?? Wn[e] ?? e, `tool component tag for "${e}"`), La = (e) => document.createElement(e), pe = (e, t, r, i) => {
|
|
3123
|
+
const n = Pa(e, i), o = i?.toolComponentFactories?.[e] ?? i?.toolComponentFactory;
|
|
3055
3124
|
return o ? o({
|
|
3056
3125
|
toolId: e,
|
|
3057
3126
|
tagName: n,
|
|
3058
3127
|
context: t,
|
|
3059
3128
|
toolbarContext: r
|
|
3060
|
-
}) :
|
|
3061
|
-
},
|
|
3129
|
+
}) : La(n);
|
|
3130
|
+
}, Ra = {
|
|
3062
3131
|
toolId: "calculator",
|
|
3063
3132
|
name: "Calculator",
|
|
3064
3133
|
description: "Multi-type calculator (basic, scientific, graphing)",
|
|
3065
3134
|
icon: "calculator",
|
|
3066
3135
|
provider: {
|
|
3067
3136
|
getProviderId: (e) => typeof e?.provider?.id == "string" && e.provider.id.length > 0 ? e.provider.id : "calculator-desmos",
|
|
3068
|
-
createProvider: () => new
|
|
3137
|
+
createProvider: () => new Sa(),
|
|
3069
3138
|
getInitConfig: (e) => e?.provider?.init ?? {},
|
|
3070
3139
|
getAuthFetcher: (e) => {
|
|
3071
3140
|
const t = e?.provider?.runtime?.authFetcher;
|
|
@@ -3088,10 +3157,10 @@ var pa = class {
|
|
|
3088
3157
|
"scientificCalculator"
|
|
3089
3158
|
],
|
|
3090
3159
|
isVisibleInContext(e) {
|
|
3091
|
-
return
|
|
3160
|
+
return Xt(e);
|
|
3092
3161
|
},
|
|
3093
3162
|
renderToolbar(e, t) {
|
|
3094
|
-
const r =
|
|
3163
|
+
const r = Br(this.toolId, t.scope.level, t.scope.scopeId), i = t.componentOverrides, n = pe(this.toolId, e, t, i);
|
|
3095
3164
|
n.setAttribute("tool-id", r), n.toolkitCoordinator = t.toolkitCoordinator;
|
|
3096
3165
|
const o = {
|
|
3097
3166
|
toolId: this.toolId,
|
|
@@ -3131,13 +3200,13 @@ var pa = class {
|
|
|
3131
3200
|
}
|
|
3132
3201
|
};
|
|
3133
3202
|
}
|
|
3134
|
-
},
|
|
3203
|
+
}, Ca = /* @__PURE__ */ new Set([
|
|
3135
3204
|
"reserved-row",
|
|
3136
3205
|
"expanding-row",
|
|
3137
3206
|
"floating-overlay",
|
|
3138
3207
|
"left-aligned"
|
|
3139
|
-
]),
|
|
3140
|
-
if (!Array.isArray(e)) return [...
|
|
3208
|
+
]), xi = (e) => e && typeof e == "object" ? e : {}, Na = (e) => e === "polly" || e === "google" || e === "server", q = (e, t) => e === void 0 ? t : e, Ut = (e, t = "left-aligned") => typeof e == "string" && Ca.has(e) ? e : t, Pi = Object.freeze([0.8, 1.25]), ur = (e) => {
|
|
3209
|
+
if (!Array.isArray(e)) return [...Pi];
|
|
3141
3210
|
if (e.length === 0) return [];
|
|
3142
3211
|
const t = /* @__PURE__ */ new Set();
|
|
3143
3212
|
for (const r of e) {
|
|
@@ -3145,13 +3214,13 @@ var pa = class {
|
|
|
3145
3214
|
const i = Math.round(r * 100) / 100;
|
|
3146
3215
|
i !== 1 && t.add(i);
|
|
3147
3216
|
}
|
|
3148
|
-
return t.size ? Array.from(t) : [...
|
|
3149
|
-
},
|
|
3217
|
+
return t.size ? Array.from(t) : [...Pi];
|
|
3218
|
+
}, ja = (e) => {
|
|
3150
3219
|
const t = {
|
|
3151
3220
|
...e,
|
|
3152
|
-
layoutMode:
|
|
3221
|
+
layoutMode: Ut(e.layoutMode)
|
|
3153
3222
|
}, r = e.backend || "browser";
|
|
3154
|
-
if (
|
|
3223
|
+
if (!Na(r)) return t;
|
|
3155
3224
|
const i = {
|
|
3156
3225
|
...t,
|
|
3157
3226
|
apiEndpoint: q(t.apiEndpoint, "/api/tts"),
|
|
@@ -3172,14 +3241,14 @@ var pa = class {
|
|
|
3172
3241
|
...i,
|
|
3173
3242
|
defaultVoice: q(i.defaultVoice, "en-US-Wavenet-A")
|
|
3174
3243
|
} : i;
|
|
3175
|
-
},
|
|
3176
|
-
const t =
|
|
3177
|
-
return
|
|
3244
|
+
}, fr = (e) => {
|
|
3245
|
+
const t = xi(e), r = xi(e?.settings);
|
|
3246
|
+
return ja({
|
|
3178
3247
|
...t,
|
|
3179
3248
|
...r
|
|
3180
3249
|
});
|
|
3181
|
-
},
|
|
3182
|
-
const t =
|
|
3250
|
+
}, Ir = (e) => e.backend || "browser", Hn = (e, t) => t === "polly" || t === "google" ? t : e.serverProvider || e.provider, Fn = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), Da = (e) => {
|
|
3251
|
+
const t = Ir(e), r = Hn(e, t), i = Fn(e, r);
|
|
3183
3252
|
return {
|
|
3184
3253
|
voice: e.defaultVoice,
|
|
3185
3254
|
rate: e.rate,
|
|
@@ -3203,8 +3272,8 @@ var pa = class {
|
|
|
3203
3272
|
includeAuthOnAssetFetch: e.includeAuthOnAssetFetch,
|
|
3204
3273
|
validateEndpoint: e.validateEndpoint
|
|
3205
3274
|
};
|
|
3206
|
-
},
|
|
3207
|
-
switch (
|
|
3275
|
+
}, Bn = (e) => Ut(e.layoutMode), za = (e) => {
|
|
3276
|
+
switch (Bn(e)) {
|
|
3208
3277
|
case "reserved-row":
|
|
3209
3278
|
return {
|
|
3210
3279
|
mount: "before-buttons",
|
|
@@ -3230,21 +3299,21 @@ var pa = class {
|
|
|
3230
3299
|
}
|
|
3231
3300
|
};
|
|
3232
3301
|
}
|
|
3233
|
-
},
|
|
3302
|
+
}, dt = /* @__PURE__ */ new Map(), Va = "__pieToolElementUnmount", Li = "pie-tool-active-change", Wa = {
|
|
3234
3303
|
toolId: "textToSpeech",
|
|
3235
3304
|
name: "Text to Speech",
|
|
3236
3305
|
description: "Read content aloud",
|
|
3237
3306
|
icon: "volume-up",
|
|
3238
3307
|
provider: {
|
|
3239
3308
|
getProviderId: () => "tts",
|
|
3240
|
-
createProvider: (e) => new
|
|
3309
|
+
createProvider: (e) => new Ea(Ir(fr(e))),
|
|
3241
3310
|
getInitConfig: (e) => {
|
|
3242
|
-
const t =
|
|
3311
|
+
const t = fr(e), r = Ir(t), i = Hn(t, r);
|
|
3243
3312
|
return {
|
|
3244
3313
|
backend: r,
|
|
3245
3314
|
serverProvider: i,
|
|
3246
|
-
transportMode:
|
|
3247
|
-
...
|
|
3315
|
+
transportMode: Fn(t, i),
|
|
3316
|
+
...Da(t)
|
|
3248
3317
|
};
|
|
3249
3318
|
},
|
|
3250
3319
|
getAuthFetcher: (e) => {
|
|
@@ -3253,9 +3322,9 @@ var pa = class {
|
|
|
3253
3322
|
},
|
|
3254
3323
|
sanitizeConfig: (e) => {
|
|
3255
3324
|
const t = e.settings && typeof e.settings == "object" ? { ...e.settings } : void 0;
|
|
3256
|
-
t && "layoutMode" in t && (t.layoutMode =
|
|
3325
|
+
t && "layoutMode" in t && (t.layoutMode = Ut(t.layoutMode)), t && "speedOptions" in t && (t.speedOptions = ur(t.speedOptions));
|
|
3257
3326
|
const r = { ...e };
|
|
3258
|
-
return "layoutMode" in r && (r.layoutMode =
|
|
3327
|
+
return "layoutMode" in r && (r.layoutMode = Ut(r.layoutMode)), "speedOptions" in r && (r.speedOptions = ur(r.speedOptions)), t && (r.settings = t), r;
|
|
3259
3328
|
},
|
|
3260
3329
|
lazy: !0
|
|
3261
3330
|
},
|
|
@@ -3267,17 +3336,17 @@ var pa = class {
|
|
|
3267
3336
|
"speechOutput"
|
|
3268
3337
|
],
|
|
3269
3338
|
isVisibleInContext(e) {
|
|
3270
|
-
return
|
|
3339
|
+
return Jt(e);
|
|
3271
3340
|
},
|
|
3272
3341
|
renderToolbar(e, t) {
|
|
3273
|
-
const r = () =>
|
|
3342
|
+
const r = () => fr(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), i = () => ur(r().speedOptions), n = () => Bn(r()), o = () => za(r()), s = Br(this.toolId, t.scope.level, t.scope.scopeId), a = () => {
|
|
3274
3343
|
const u = t.ui?.size;
|
|
3275
3344
|
return u === "sm" || u === "lg" ? u : "md";
|
|
3276
3345
|
}, c = () => {
|
|
3277
|
-
let u =
|
|
3278
|
-
return u && typeof u.isConnected == "boolean" && !u.isConnected && (
|
|
3279
|
-
|
|
3280
|
-
},
|
|
3346
|
+
let u = dt.get(s);
|
|
3347
|
+
return u && typeof u.isConnected == "boolean" && !u.isConnected && (dt.delete(s), u = void 0), u || (u = document.createElement("pie-tool-tts-inline"), u[Va] = () => {
|
|
3348
|
+
dt.get(s) === u && dt.delete(s);
|
|
3349
|
+
}, dt.set(s, u)), u.setAttribute("tool-id", s), u.setAttribute("catalog-id", t.catalogId || t.itemId), u.setAttribute("language", t.language || "en-US"), u.setAttribute("size", a()), u.setAttribute("layout-mode", n()), u.speedOptions = i(), u;
|
|
3281
3350
|
}, f = o();
|
|
3282
3351
|
return {
|
|
3283
3352
|
toolId: this.toolId,
|
|
@@ -3295,8 +3364,8 @@ var pa = class {
|
|
|
3295
3364
|
const _ = v.detail;
|
|
3296
3365
|
u(_?.active === !0);
|
|
3297
3366
|
};
|
|
3298
|
-
return h.addEventListener(
|
|
3299
|
-
h.removeEventListener(
|
|
3367
|
+
return h.addEventListener(Li, d), () => {
|
|
3368
|
+
h.removeEventListener(Li, d);
|
|
3300
3369
|
};
|
|
3301
3370
|
},
|
|
3302
3371
|
sync: () => {
|
|
@@ -3307,7 +3376,7 @@ var pa = class {
|
|
|
3307
3376
|
}
|
|
3308
3377
|
};
|
|
3309
3378
|
function ke(e, t) {
|
|
3310
|
-
const r =
|
|
3379
|
+
const r = Br(e, t.scope.level, t.scope.scopeId);
|
|
3311
3380
|
return {
|
|
3312
3381
|
fullToolId: r,
|
|
3313
3382
|
isActive: () => t.isToolVisible(r),
|
|
@@ -3321,10 +3390,10 @@ function Se(e) {
|
|
|
3321
3390
|
const t = e.isActive();
|
|
3322
3391
|
e.button.active = t, e.overlay.visible = t, e.onActiveChange?.(t);
|
|
3323
3392
|
}
|
|
3324
|
-
function
|
|
3393
|
+
function Ur(e, t) {
|
|
3325
3394
|
e.setAttribute("data-pie-tool-surface", t);
|
|
3326
3395
|
}
|
|
3327
|
-
var
|
|
3396
|
+
var Ha = {
|
|
3328
3397
|
toolId: "ruler",
|
|
3329
3398
|
name: "Ruler",
|
|
3330
3399
|
description: "On-screen ruler for measurements",
|
|
@@ -3336,7 +3405,7 @@ var La = {
|
|
|
3336
3405
|
],
|
|
3337
3406
|
pnpSupportIds: ["ruler", "measurement"],
|
|
3338
3407
|
isVisibleInContext(e) {
|
|
3339
|
-
return
|
|
3408
|
+
return Xt(e);
|
|
3340
3409
|
},
|
|
3341
3410
|
renderToolbar(e, t) {
|
|
3342
3411
|
const r = ke(this.toolId, t), i = {
|
|
@@ -3349,7 +3418,7 @@ var La = {
|
|
|
3349
3418
|
onClick: () => t.toggleTool(this.toolId),
|
|
3350
3419
|
active: r.isActive()
|
|
3351
3420
|
}, n = t.componentOverrides ?? {}, o = pe(this.toolId, e, t, n);
|
|
3352
|
-
return o.setAttribute("tool-id", r.fullToolId),
|
|
3421
|
+
return o.setAttribute("tool-id", r.fullToolId), Ur(o, "frameless"), {
|
|
3353
3422
|
toolId: this.toolId,
|
|
3354
3423
|
button: i,
|
|
3355
3424
|
elements: [{
|
|
@@ -3366,7 +3435,7 @@ var La = {
|
|
|
3366
3435
|
subscribeActive: r.subscribeActive
|
|
3367
3436
|
};
|
|
3368
3437
|
}
|
|
3369
|
-
},
|
|
3438
|
+
}, Fa = {
|
|
3370
3439
|
toolId: "protractor",
|
|
3371
3440
|
name: "Protractor",
|
|
3372
3441
|
description: "On-screen protractor for angle measurements",
|
|
@@ -3378,7 +3447,7 @@ var La = {
|
|
|
3378
3447
|
],
|
|
3379
3448
|
pnpSupportIds: ["protractor", "angleMeasurement"],
|
|
3380
3449
|
isVisibleInContext(e) {
|
|
3381
|
-
return
|
|
3450
|
+
return Xt(e);
|
|
3382
3451
|
},
|
|
3383
3452
|
renderToolbar(e, t) {
|
|
3384
3453
|
const r = ke(this.toolId, t), i = {
|
|
@@ -3391,7 +3460,7 @@ var La = {
|
|
|
3391
3460
|
onClick: () => t.toggleTool(this.toolId),
|
|
3392
3461
|
active: r.isActive()
|
|
3393
3462
|
}, n = t.componentOverrides ?? {}, o = pe(this.toolId, e, t, n);
|
|
3394
|
-
return o.setAttribute("tool-id", r.fullToolId),
|
|
3463
|
+
return o.setAttribute("tool-id", r.fullToolId), Ur(o, "frameless"), {
|
|
3395
3464
|
toolId: this.toolId,
|
|
3396
3465
|
button: i,
|
|
3397
3466
|
elements: [{
|
|
@@ -3408,7 +3477,7 @@ var La = {
|
|
|
3408
3477
|
subscribeActive: r.subscribeActive
|
|
3409
3478
|
};
|
|
3410
3479
|
}
|
|
3411
|
-
},
|
|
3480
|
+
}, Ba = {
|
|
3412
3481
|
toolId: "answerEliminator",
|
|
3413
3482
|
name: "Answer Eliminator",
|
|
3414
3483
|
description: "Strike through answer choices",
|
|
@@ -3421,7 +3490,7 @@ var La = {
|
|
|
3421
3490
|
"choiceMasking"
|
|
3422
3491
|
],
|
|
3423
3492
|
isVisibleInContext(e) {
|
|
3424
|
-
return
|
|
3493
|
+
return ba(e);
|
|
3425
3494
|
},
|
|
3426
3495
|
renderToolbar(e, t) {
|
|
3427
3496
|
const r = ke(this.toolId, t), i = t.componentOverrides ?? {}, n = pe(this.toolId, e, t, i);
|
|
@@ -3455,7 +3524,7 @@ var La = {
|
|
|
3455
3524
|
subscribeActive: r.subscribeActive
|
|
3456
3525
|
};
|
|
3457
3526
|
}
|
|
3458
|
-
},
|
|
3527
|
+
}, Ua = {
|
|
3459
3528
|
toolId: "highlighter",
|
|
3460
3529
|
name: "Highlighter",
|
|
3461
3530
|
description: "Highlight text",
|
|
@@ -3473,7 +3542,7 @@ var La = {
|
|
|
3473
3542
|
"annotation"
|
|
3474
3543
|
],
|
|
3475
3544
|
isVisibleInContext(e) {
|
|
3476
|
-
return
|
|
3545
|
+
return Jt(e);
|
|
3477
3546
|
},
|
|
3478
3547
|
renderToolbar(e, t) {
|
|
3479
3548
|
const r = ke(this.toolId, t), i = {
|
|
@@ -3506,7 +3575,7 @@ var La = {
|
|
|
3506
3575
|
subscribeActive: r.subscribeActive
|
|
3507
3576
|
};
|
|
3508
3577
|
}
|
|
3509
|
-
},
|
|
3578
|
+
}, Ga = {
|
|
3510
3579
|
toolId: "lineReader",
|
|
3511
3580
|
name: "Line Reader",
|
|
3512
3581
|
description: "Reading guide overlay",
|
|
@@ -3525,7 +3594,7 @@ var La = {
|
|
|
3525
3594
|
"trackingGuide"
|
|
3526
3595
|
],
|
|
3527
3596
|
isVisibleInContext(e) {
|
|
3528
|
-
return
|
|
3597
|
+
return Jt(e);
|
|
3529
3598
|
},
|
|
3530
3599
|
renderToolbar(e, t) {
|
|
3531
3600
|
const r = ke(this.toolId, t), i = {
|
|
@@ -3538,7 +3607,7 @@ var La = {
|
|
|
3538
3607
|
onClick: () => t.toggleTool(this.toolId),
|
|
3539
3608
|
active: r.isActive()
|
|
3540
3609
|
}, n = t.componentOverrides ?? {}, o = pe(this.toolId, e, t, n);
|
|
3541
|
-
return o.setAttribute("tool-id", r.fullToolId),
|
|
3610
|
+
return o.setAttribute("tool-id", r.fullToolId), Ur(o, "frameless"), {
|
|
3542
3611
|
toolId: this.toolId,
|
|
3543
3612
|
button: i,
|
|
3544
3613
|
elements: [{
|
|
@@ -3555,7 +3624,7 @@ var La = {
|
|
|
3555
3624
|
subscribeActive: r.subscribeActive
|
|
3556
3625
|
};
|
|
3557
3626
|
}
|
|
3558
|
-
},
|
|
3627
|
+
}, qa = {
|
|
3559
3628
|
toolId: "theme",
|
|
3560
3629
|
name: "Theme",
|
|
3561
3630
|
description: "Accessible themes and contrast",
|
|
@@ -3611,7 +3680,7 @@ var La = {
|
|
|
3611
3680
|
subscribeActive: r.subscribeActive
|
|
3612
3681
|
};
|
|
3613
3682
|
}
|
|
3614
|
-
},
|
|
3683
|
+
}, Ya = {
|
|
3615
3684
|
toolId: "annotationToolbar",
|
|
3616
3685
|
name: "Highlighter",
|
|
3617
3686
|
description: "Highlight and annotate text",
|
|
@@ -3632,7 +3701,7 @@ var La = {
|
|
|
3632
3701
|
"annotation"
|
|
3633
3702
|
],
|
|
3634
3703
|
isVisibleInContext(e) {
|
|
3635
|
-
return
|
|
3704
|
+
return Jt(e);
|
|
3636
3705
|
},
|
|
3637
3706
|
renderToolbar(e, t) {
|
|
3638
3707
|
const r = ke(this.toolId, t), i = {
|
|
@@ -3662,7 +3731,7 @@ var La = {
|
|
|
3662
3731
|
subscribeActive: r.subscribeActive
|
|
3663
3732
|
};
|
|
3664
3733
|
}
|
|
3665
|
-
},
|
|
3734
|
+
}, Ka = {
|
|
3666
3735
|
toolId: "graph",
|
|
3667
3736
|
name: "Graph",
|
|
3668
3737
|
description: "Graphing calculator and coordinate plane",
|
|
@@ -3675,7 +3744,7 @@ var La = {
|
|
|
3675
3744
|
"graphingTool"
|
|
3676
3745
|
],
|
|
3677
3746
|
isVisibleInContext(e) {
|
|
3678
|
-
return
|
|
3747
|
+
return Xt(e);
|
|
3679
3748
|
},
|
|
3680
3749
|
renderToolbar(e, t) {
|
|
3681
3750
|
const r = ke(this.toolId, t), i = {
|
|
@@ -3715,7 +3784,7 @@ var La = {
|
|
|
3715
3784
|
subscribeActive: r.subscribeActive
|
|
3716
3785
|
};
|
|
3717
3786
|
}
|
|
3718
|
-
},
|
|
3787
|
+
}, Xa = {
|
|
3719
3788
|
toolId: "periodicTable",
|
|
3720
3789
|
name: "Periodic Table",
|
|
3721
3790
|
description: "Chemistry periodic table reference",
|
|
@@ -3727,7 +3796,7 @@ var La = {
|
|
|
3727
3796
|
"elementReference"
|
|
3728
3797
|
],
|
|
3729
3798
|
isVisibleInContext(e) {
|
|
3730
|
-
return
|
|
3799
|
+
return ya(e);
|
|
3731
3800
|
},
|
|
3732
3801
|
renderToolbar(e, t) {
|
|
3733
3802
|
const r = ke(this.toolId, t), i = {
|
|
@@ -3767,54 +3836,54 @@ var La = {
|
|
|
3767
3836
|
subscribeActive: r.subscribeActive
|
|
3768
3837
|
};
|
|
3769
3838
|
}
|
|
3770
|
-
},
|
|
3771
|
-
Sa,
|
|
3772
|
-
Pa,
|
|
3773
|
-
La,
|
|
3774
|
-
xa,
|
|
3839
|
+
}, Ja = [
|
|
3775
3840
|
Ra,
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3841
|
+
Wa,
|
|
3842
|
+
Ha,
|
|
3843
|
+
Fa,
|
|
3844
|
+
Ba,
|
|
3845
|
+
Ua,
|
|
3846
|
+
Ga,
|
|
3847
|
+
qa,
|
|
3848
|
+
Ya,
|
|
3849
|
+
Ka,
|
|
3850
|
+
Xa
|
|
3782
3851
|
];
|
|
3783
|
-
function
|
|
3784
|
-
const t = new
|
|
3852
|
+
function Qa(e = {}) {
|
|
3853
|
+
const t = new _a(), r = {
|
|
3785
3854
|
toolTagMap: {
|
|
3786
|
-
...
|
|
3855
|
+
...Wn,
|
|
3787
3856
|
...e.toolTagMap || {}
|
|
3788
3857
|
},
|
|
3789
3858
|
toolComponentFactory: e.toolComponentFactory,
|
|
3790
3859
|
toolComponentFactories: e.toolComponentFactories
|
|
3791
3860
|
}, i = (n) => e.overrides?.[n.toolId] || n;
|
|
3792
|
-
return e.includePackagedTools &&
|
|
3861
|
+
return e.includePackagedTools && Za(t, {
|
|
3793
3862
|
toolIds: e.toolIds,
|
|
3794
3863
|
applyOverrides: i
|
|
3795
3864
|
}), e.toolModuleLoaders && Object.keys(e.toolModuleLoaders).length > 0 && t.setToolModuleLoaders(e.toolModuleLoaders), t.setComponentOverrides(r), t;
|
|
3796
3865
|
}
|
|
3797
|
-
function
|
|
3866
|
+
function Za(e, t = {}) {
|
|
3798
3867
|
const r = t.toolIds && t.toolIds.length > 0 ? new Set(t.toolIds) : null, i = t.applyOverrides || ((n) => n);
|
|
3799
|
-
for (const n of
|
|
3868
|
+
for (const n of Ja)
|
|
3800
3869
|
r && !r.has(n.toolId) || e.register(i(n));
|
|
3801
3870
|
}
|
|
3802
|
-
function
|
|
3803
|
-
return
|
|
3871
|
+
function el(e = {}) {
|
|
3872
|
+
return Qa({
|
|
3804
3873
|
...e,
|
|
3805
3874
|
includePackagedTools: !0
|
|
3806
3875
|
});
|
|
3807
3876
|
}
|
|
3808
|
-
function
|
|
3809
|
-
const e =
|
|
3877
|
+
function tl() {
|
|
3878
|
+
const e = el(), t = /* @__PURE__ */ new Set();
|
|
3810
3879
|
for (const r of e.getAllTools()) for (const i of r.pnpSupportIds || []) t.add(i);
|
|
3811
3880
|
return [...t].sort();
|
|
3812
3881
|
}
|
|
3813
|
-
var
|
|
3814
|
-
supports: [...
|
|
3882
|
+
var rl = tl(), wl = {
|
|
3883
|
+
supports: [...rl],
|
|
3815
3884
|
prohibitedSupports: [],
|
|
3816
3885
|
activateAtInit: []
|
|
3817
|
-
},
|
|
3886
|
+
}, il = {
|
|
3818
3887
|
visual: {
|
|
3819
3888
|
magnification: "magnification",
|
|
3820
3889
|
screenMagnifier: "screenMagnifier",
|
|
@@ -3927,15 +3996,26 @@ var Ga = Ua(), dl = {
|
|
|
3927
3996
|
itemGlossary: "itemGlossary",
|
|
3928
3997
|
tutorialAvailable: "tutorialAvailable"
|
|
3929
3998
|
}
|
|
3930
|
-
},
|
|
3999
|
+
}, Tl = Object.values(il).flatMap((e) => Object.values(e)), kl = jn("ToolCoordinator"), $r;
|
|
3931
4000
|
(function(e) {
|
|
3932
4001
|
e[e.BASE = 0] = "BASE", e[e.TOOL = 1e3] = "TOOL", e[e.MODAL = 2e3] = "MODAL", e[e.CONTROL = 3e3] = "CONTROL", e[e.HIGHLIGHT = 4e3] = "HIGHLIGHT";
|
|
3933
|
-
})(
|
|
3934
|
-
var
|
|
4002
|
+
})($r || ($r = {}));
|
|
4003
|
+
var Ri;
|
|
3935
4004
|
(function(e) {
|
|
3936
4005
|
e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
|
|
3937
|
-
})(
|
|
3938
|
-
var
|
|
4006
|
+
})(Ri || (Ri = {}));
|
|
4007
|
+
var Sl = da({
|
|
4008
|
+
policy: {
|
|
4009
|
+
allowed: [],
|
|
4010
|
+
blocked: []
|
|
4011
|
+
},
|
|
4012
|
+
placement: {
|
|
4013
|
+
section: [],
|
|
4014
|
+
item: [],
|
|
4015
|
+
passage: []
|
|
4016
|
+
},
|
|
4017
|
+
providers: {}
|
|
4018
|
+
}), nl = /* @__PURE__ */ xn('<div class="pie-tool-line-reader__mask pie-tool-line-reader__mask--top svelte-1a3d6dx" aria-hidden="true"></div> <div class="pie-tool-line-reader__mask pie-tool-line-reader__mask--bottom svelte-1a3d6dx" aria-hidden="true"></div> <div class="pie-tool-line-reader__mask pie-tool-line-reader__mask--left svelte-1a3d6dx" aria-hidden="true"></div> <div class="pie-tool-line-reader__mask pie-tool-line-reader__mask--right svelte-1a3d6dx" aria-hidden="true"></div>', 1), ol = /* @__PURE__ */ xn('<div class="pie-sr-only svelte-1a3d6dx" role="status" aria-live="polite" aria-atomic="true"> </div> <!> <div role="group" tabindex="0" aria-roledescription="Draggable and resizable reading guide overlay"><div class="pie-tool-line-reader__container svelte-1a3d6dx"></div> <div class="pie-tool-line-reader__resize-handle pie-tool-line-reader__resize-handle--bottom svelte-1a3d6dx" title="Drag to resize height" role="button" tabindex="-1" aria-label="Resize handle - drag to adjust height"><svg width="20" height="8" viewBox="0 0 20 8" aria-hidden="true"><rect x="8" y="3" width="4" height="2" fill="var(--pie-primary, #4CAF50)" rx="1"></rect></svg></div></div>', 1), sl = {
|
|
3939
4019
|
hash: "svelte-1a3d6dx",
|
|
3940
4020
|
code: `.pie-sr-only.svelte-1a3d6dx {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;}.pie-tool-line-reader.svelte-1a3d6dx {border:none;cursor:move;overflow:visible;position:absolute;transform:translate(-50%, -50%);user-select:none;pointer-events:auto;touch-action:none;}.pie-tool-line-reader.svelte-1a3d6dx:focus-visible {outline:3px solid var(--pie-button-focus-outline, var(--pie-primary, #4A90E2));outline-offset:2px;}.pie-tool-line-reader__container.svelte-1a3d6dx {width:100%;height:100%;position:relative;transition:background-color 0.2s ease;}.pie-tool-line-reader__resize-handle.svelte-1a3d6dx {position:absolute;cursor:ns-resize;z-index:10;display:flex;align-items:center;justify-content:center;}.pie-tool-line-reader__resize-handle--bottom.svelte-1a3d6dx {bottom:-12px;left:50%;transform:translateX(-50%);width:44px;height:24px;background-color:color-mix(in srgb, var(--pie-background, #fff) 90%, transparent);border-radius:12px;border:2px solid var(--pie-primary, #4caf50);}.pie-tool-line-reader__resize-handle.svelte-1a3d6dx:hover {background-color:color-mix(in srgb, var(--pie-primary, #4caf50) 20%, transparent);}.pie-tool-line-reader__resize-handle.svelte-1a3d6dx:active {cursor:ns-resize;}.pie-tool-line-reader.svelte-1a3d6dx:active {cursor:grabbing;}
|
|
3941
4021
|
|
|
@@ -3949,26 +4029,26 @@ var Ya = /* @__PURE__ */ An('<div class="pie-tool-line-reader__mask pie-tool-lin
|
|
|
3949
4029
|
|
|
3950
4030
|
/* In masking mode, the window should be transparent to show content underneath */.pie-tool-line-reader.pie-tool-line-reader--masking-mode.svelte-1a3d6dx .pie-tool-line-reader__container:where(.svelte-1a3d6dx) {background-color:transparent !important;}`
|
|
3951
4031
|
};
|
|
3952
|
-
function
|
|
3953
|
-
|
|
3954
|
-
let r =
|
|
4032
|
+
function al(e, t) {
|
|
4033
|
+
Hi(t, !0), zs(e, sl);
|
|
4034
|
+
let r = Ai(t, "visible", 7, !1), i = Ai(t, "toolId", 7, "lineReader");
|
|
3955
4035
|
const n = typeof window < "u";
|
|
3956
|
-
let o = /* @__PURE__ */
|
|
3957
|
-
const a = /* @__PURE__ */
|
|
3958
|
-
let c = /* @__PURE__ */
|
|
4036
|
+
let o = /* @__PURE__ */ P(void 0), s = /* @__PURE__ */ P(null);
|
|
4037
|
+
const a = /* @__PURE__ */ ui(() => p(s)?.toolCoordinator);
|
|
4038
|
+
let c = /* @__PURE__ */ P(!1), f = /* @__PURE__ */ P(!1), u = /* @__PURE__ */ P(ue({
|
|
3959
4039
|
x: n ? window.innerWidth / 2 : 400,
|
|
3960
4040
|
y: n ? window.innerHeight / 2 : 300
|
|
3961
|
-
})), h = /* @__PURE__ */
|
|
4041
|
+
})), h = /* @__PURE__ */ P(ue({
|
|
3962
4042
|
width: 600,
|
|
3963
4043
|
height: 60
|
|
3964
|
-
})), d = /* @__PURE__ */
|
|
4044
|
+
})), d = /* @__PURE__ */ P(ue({
|
|
3965
4045
|
x: 0,
|
|
3966
4046
|
y: 0
|
|
3967
|
-
})), v = /* @__PURE__ */
|
|
4047
|
+
})), v = /* @__PURE__ */ P(ue({
|
|
3968
4048
|
width: 0,
|
|
3969
4049
|
height: 0,
|
|
3970
4050
|
mouseY: 0
|
|
3971
|
-
})), _ = /* @__PURE__ */
|
|
4051
|
+
})), _ = /* @__PURE__ */ P(""), m = /* @__PURE__ */ P("#ffff00"), b = /* @__PURE__ */ P(0.3), E = /* @__PURE__ */ P("highlight"), U = /* @__PURE__ */ P(!1);
|
|
3972
4052
|
const M = [
|
|
3973
4053
|
{
|
|
3974
4054
|
name: "Yellow",
|
|
@@ -3991,43 +4071,43 @@ function Ja(e, t) {
|
|
|
3991
4071
|
value: "#ffa500"
|
|
3992
4072
|
}
|
|
3993
4073
|
], G = 10, Ie = 10;
|
|
3994
|
-
|
|
4074
|
+
ht(() => {
|
|
3995
4075
|
if (p(o))
|
|
3996
|
-
return
|
|
3997
|
-
|
|
4076
|
+
return sa(p(o), (T) => {
|
|
4077
|
+
x(s, T, !0);
|
|
3998
4078
|
});
|
|
3999
4079
|
});
|
|
4000
4080
|
function H(T) {
|
|
4001
|
-
|
|
4081
|
+
x(_, T, !0), setTimeout(() => x(_, ""), 1e3);
|
|
4002
4082
|
}
|
|
4003
|
-
function
|
|
4083
|
+
function Un() {
|
|
4004
4084
|
const T = (M.findIndex((C) => C.value === p(m)) + 1) % M.length;
|
|
4005
|
-
|
|
4085
|
+
x(m, M[T].value, !0), H(`Color changed to ${M[T].name}`);
|
|
4006
4086
|
}
|
|
4007
|
-
function
|
|
4008
|
-
|
|
4087
|
+
function Gr(T) {
|
|
4088
|
+
x(b, Math.max(0.1, Math.min(0.9, p(b) + T)), !0), H(`Opacity ${Math.round(p(b) * 100)}%`);
|
|
4009
4089
|
}
|
|
4010
|
-
function
|
|
4011
|
-
|
|
4090
|
+
function Gn() {
|
|
4091
|
+
x(E, p(E) === "highlight" ? "obscure" : "highlight", !0), H(`Mode changed to ${p(E) === "highlight" ? "highlight" : "masking"}`);
|
|
4012
4092
|
}
|
|
4013
|
-
function
|
|
4014
|
-
T.target.closest(".resize-handle") ?
|
|
4093
|
+
function qn(T) {
|
|
4094
|
+
T.target.closest(".resize-handle") ? Kn(T) : Yn(T);
|
|
4015
4095
|
}
|
|
4016
|
-
function
|
|
4017
|
-
p(o) && (p(o).setPointerCapture(T.pointerId),
|
|
4096
|
+
function Yn(T) {
|
|
4097
|
+
p(o) && (p(o).setPointerCapture(T.pointerId), x(c, !0), x(d, {
|
|
4018
4098
|
x: T.clientX - p(u).x,
|
|
4019
4099
|
y: T.clientY - p(u).y
|
|
4020
|
-
}, !0), p(a)?.bringToFront(p(o)), p(o).addEventListener("pointermove",
|
|
4100
|
+
}, !0), p(a)?.bringToFront(p(o)), p(o).addEventListener("pointermove", Qt), p(o).addEventListener("pointerup", Zt), T.preventDefault());
|
|
4021
4101
|
}
|
|
4022
|
-
function
|
|
4023
|
-
p(o) && (p(o).setPointerCapture(T.pointerId),
|
|
4102
|
+
function Kn(T) {
|
|
4103
|
+
p(o) && (p(o).setPointerCapture(T.pointerId), x(f, !0), x(v, {
|
|
4024
4104
|
width: p(h).width,
|
|
4025
4105
|
height: p(h).height,
|
|
4026
4106
|
mouseY: T.clientY
|
|
4027
|
-
}, !0), p(a)?.bringToFront(p(o)), p(o).addEventListener("pointermove",
|
|
4107
|
+
}, !0), p(a)?.bringToFront(p(o)), p(o).addEventListener("pointermove", Qt), p(o).addEventListener("pointerup", Zt), T.preventDefault(), T.stopPropagation());
|
|
4028
4108
|
}
|
|
4029
|
-
function
|
|
4030
|
-
if (p(c))
|
|
4109
|
+
function Qt(T) {
|
|
4110
|
+
if (p(c)) x(u, {
|
|
4031
4111
|
x: T.clientX - p(d).x,
|
|
4032
4112
|
y: T.clientY - p(d).y
|
|
4033
4113
|
}, !0);
|
|
@@ -4036,10 +4116,10 @@ function Ja(e, t) {
|
|
|
4036
4116
|
p(h).height = Math.max(20, Math.min(400, p(v).height + C));
|
|
4037
4117
|
}
|
|
4038
4118
|
}
|
|
4039
|
-
function
|
|
4040
|
-
p(o) && (p(o).releasePointerCapture(T.pointerId), p(o).removeEventListener("pointermove",
|
|
4119
|
+
function Zt(T) {
|
|
4120
|
+
p(o) && (p(o).releasePointerCapture(T.pointerId), p(o).removeEventListener("pointermove", Qt), p(o).removeEventListener("pointerup", Zt), x(c, !1), x(f, !1));
|
|
4041
4121
|
}
|
|
4042
|
-
function
|
|
4122
|
+
function Xn(T) {
|
|
4043
4123
|
let C = !1;
|
|
4044
4124
|
switch (T.key) {
|
|
4045
4125
|
case "ArrowUp":
|
|
@@ -4064,69 +4144,69 @@ function Ja(e, t) {
|
|
|
4064
4144
|
break;
|
|
4065
4145
|
case "c":
|
|
4066
4146
|
case "C":
|
|
4067
|
-
|
|
4147
|
+
Un(), C = !0;
|
|
4068
4148
|
break;
|
|
4069
4149
|
case "]":
|
|
4070
|
-
|
|
4150
|
+
Gr(0.1), C = !0;
|
|
4071
4151
|
break;
|
|
4072
4152
|
case "[":
|
|
4073
|
-
|
|
4153
|
+
Gr(-0.1), C = !0;
|
|
4074
4154
|
break;
|
|
4075
4155
|
case "m":
|
|
4076
4156
|
case "M":
|
|
4077
|
-
|
|
4157
|
+
Gn(), C = !0;
|
|
4078
4158
|
break;
|
|
4079
4159
|
}
|
|
4080
4160
|
C && T.preventDefault();
|
|
4081
4161
|
}
|
|
4082
|
-
|
|
4083
|
-
p(a) && i() && !p(U) && (p(a).registerTool(i(), "Line Reader", void 0,
|
|
4084
|
-
}),
|
|
4162
|
+
ht(() => {
|
|
4163
|
+
p(a) && i() && !p(U) && (p(a).registerTool(i(), "Line Reader", void 0, $r.TOOL), x(U, !0));
|
|
4164
|
+
}), js(() => () => {
|
|
4085
4165
|
p(a) && i() && p(a).unregisterTool(i());
|
|
4086
|
-
}),
|
|
4166
|
+
}), ht(() => {
|
|
4087
4167
|
p(a) && p(o) && i() && p(a).updateToolElement(i(), p(o));
|
|
4088
|
-
}),
|
|
4168
|
+
}), ht(() => {
|
|
4089
4169
|
r() && p(o) && setTimeout(() => p(o)?.focus(), 100);
|
|
4090
4170
|
});
|
|
4091
|
-
let
|
|
4092
|
-
var
|
|
4171
|
+
let Jn = /* @__PURE__ */ ui(() => p(m) + Math.round(p(b) * 255).toString(16).padStart(2, "0"));
|
|
4172
|
+
var Qn = {
|
|
4093
4173
|
get visible() {
|
|
4094
4174
|
return r();
|
|
4095
4175
|
},
|
|
4096
4176
|
set visible(T = !1) {
|
|
4097
|
-
r(T),
|
|
4177
|
+
r(T), _r();
|
|
4098
4178
|
},
|
|
4099
4179
|
get toolId() {
|
|
4100
4180
|
return i();
|
|
4101
4181
|
},
|
|
4102
4182
|
set toolId(T = "lineReader") {
|
|
4103
|
-
i(T),
|
|
4183
|
+
i(T), _r();
|
|
4104
4184
|
}
|
|
4105
|
-
},
|
|
4106
|
-
var C =
|
|
4107
|
-
|
|
4108
|
-
var
|
|
4109
|
-
var
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
}, [() => Math.max(0, p(u).y - p(h).height / 2), () => Math.max(0, p(u).x - p(h).width / 2)]),
|
|
4185
|
+
}, qr = Es(), Zn = rr(qr), eo = (T) => {
|
|
4186
|
+
var C = ol(), er = rr(C), to = di(er, !0);
|
|
4187
|
+
ni(er);
|
|
4188
|
+
var Yr = ut(er, 2), ro = (ve) => {
|
|
4189
|
+
var It = nl(), Xr = rr(It), Jr = ut(Xr, 2), Qr = ut(Jr, 2), no = ut(Qr, 2);
|
|
4190
|
+
hi((oo, so) => {
|
|
4191
|
+
qe(Xr, `height: ${oo ?? ""}px;`), qe(Jr, `top: ${p(u).y + p(h).height / 2}px;`), qe(Qr, `top: ${p(u).y - p(h).height / 2}px; height: ${p(h).height ?? ""}px; width: ${so ?? ""}px;`), qe(no, `top: ${p(u).y - p(h).height / 2}px; height: ${p(h).height ?? ""}px; left: ${p(u).x + p(h).width / 2}px;`);
|
|
4192
|
+
}, [() => Math.max(0, p(u).y - p(h).height / 2), () => Math.max(0, p(u).x - p(h).width / 2)]), Rt(ve, It);
|
|
4113
4193
|
};
|
|
4114
|
-
|
|
4115
|
-
p(E) === "obscure" && ve(
|
|
4194
|
+
wi(Yr, (ve) => {
|
|
4195
|
+
p(E) === "obscure" && ve(ro);
|
|
4116
4196
|
});
|
|
4117
|
-
var $e =
|
|
4118
|
-
let
|
|
4119
|
-
var
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
}, [() => M.find((ve) => ve.value === p(m))?.name, () => Math.round(p(b) * 100)]),
|
|
4197
|
+
var $e = ut(Yr, 2);
|
|
4198
|
+
let Kr;
|
|
4199
|
+
var io = di($e);
|
|
4200
|
+
Di(2), ni($e), Xs($e, (ve) => x(o, ve), () => p(o)), hi((ve, It) => {
|
|
4201
|
+
Ls(to, p(_)), Kr = Hs($e, 1, "pie-tool-line-reader svelte-1a3d6dx", null, Kr, { "pie-tool-line-reader--masking-mode": p(E) === "obscure" }), qe($e, `left: ${p(u).x ?? ""}px; top: ${p(u).y ?? ""}px; width: ${p(h).width ?? ""}px; height: ${p(h).height ?? ""}px;`), Gs($e, "aria-label", `Line Reader tool. Mode: ${p(E) === "highlight" ? "Highlight" : "Masking"}. Use arrow keys to move, +/- to resize height, C to change color, [ and ] to adjust opacity, M to toggle mode. Current color: ${ve ?? ""}, Opacity: ${It ?? ""}%`), qe(io, `background-color: ${p(Jn) ?? ""};`);
|
|
4202
|
+
}, [() => M.find((ve) => ve.value === p(m))?.name, () => Math.round(p(b) * 100)]), _i("pointerdown", $e, qn), _i("keydown", $e, Xn), Rt(T, C);
|
|
4123
4203
|
};
|
|
4124
|
-
return
|
|
4125
|
-
r() && T(
|
|
4126
|
-
}),
|
|
4204
|
+
return wi(Zn, (T) => {
|
|
4205
|
+
r() && T(eo);
|
|
4206
|
+
}), Rt(e, qr), Fi(Qn);
|
|
4127
4207
|
}
|
|
4128
|
-
|
|
4129
|
-
customElements.define("pie-tool-line-reader",
|
|
4208
|
+
Ss(["pointerdown", "keydown"]);
|
|
4209
|
+
customElements.define("pie-tool-line-reader", ea(al, {
|
|
4130
4210
|
visible: {
|
|
4131
4211
|
attribute: "visible",
|
|
4132
4212
|
type: "Boolean"
|
|
@@ -4137,5 +4217,5 @@ customElements.define("pie-tool-line-reader", Ks(Ja, {
|
|
|
4137
4217
|
}
|
|
4138
4218
|
}, [], [], { mode: "open" }));
|
|
4139
4219
|
export {
|
|
4140
|
-
|
|
4220
|
+
al as default
|
|
4141
4221
|
};
|