@pie-players/pie-tool-annotation-toolbar 1.0.0-beta.6 → 1.0.0-beta.8
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/element-props.d.ts +14 -0
- package/dist/index.d.ts +9 -1
- package/dist/tool-annotation-toolbar.js +1526 -1535
- package/package.json +6 -6
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { coerceBooleanAttributes as
|
|
2
|
-
import { HighlightColor as
|
|
3
|
-
import { resolveInterfaceI18n as
|
|
4
|
-
import { sanitizeSvgIcon as
|
|
1
|
+
import { coerceBooleanAttributes as Qo } from "@pie-players/pie-players-shared/ui/attribute-coercion";
|
|
2
|
+
import { HighlightColor as Ae, catalogContextHolding as ea, composedClosest as ta, composedContains as pr, connectToolRegionScopeContext as na, connectToolRuntimeContext as ra, connectToolShellContext as ia, findShellScopeHost as oa, isShadowRootNode as Cr, isTTSStartFailure as aa, reportToolFailure as or, resolveContentRegion as sa, retargetToTree as la } from "@pie-players/pie-assessment-toolkit/tools/registration";
|
|
3
|
+
import { resolveInterfaceI18n as fa } from "@pie-players/pie-players-shared/i18n/provider";
|
|
4
|
+
import { sanitizeSvgIcon as ua } from "@pie-players/pie-players-shared/security";
|
|
5
|
+
import { isComposingKeyEvent as ca } from "@pie-players/pie-players-shared";
|
|
5
6
|
if (typeof window < "u") {
|
|
6
|
-
var
|
|
7
|
-
((
|
|
7
|
+
var ri, ii;
|
|
8
|
+
((ri = (ii = window).__svelte ?? (ii.__svelte = {})).v ?? (ri.v = /* @__PURE__ */ new Set())).add("5");
|
|
8
9
|
}
|
|
9
|
-
var Ve = {},
|
|
10
|
-
var
|
|
10
|
+
var Ve = {}, U = /* @__PURE__ */ Symbol("uninitialized");
|
|
11
|
+
var da = "http://www.w3.org/2000/svg", ha = "http://www.w3.org/1998/Math/MathML", Mi = Array.isArray, va = Array.prototype.indexOf, Jt = Array.prototype.includes, Bn = Array.from, Cn = Object.keys, Qt = Object.defineProperty, ct = Object.getOwnPropertyDescriptor, _a = Object.getOwnPropertyDescriptors, pa = Object.prototype, ga = Array.prototype, Ri = Object.getPrototypeOf, oi = Object.isExtensible, ba = () => {
|
|
11
12
|
};
|
|
12
|
-
function
|
|
13
|
+
function wa(e) {
|
|
13
14
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
+
function Ci() {
|
|
16
17
|
var e, t;
|
|
17
18
|
return {
|
|
18
19
|
promise: new Promise((n, r) => {
|
|
@@ -22,78 +23,78 @@ function Pi() {
|
|
|
22
23
|
reject: t
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
+
function en(e) {
|
|
26
27
|
"@babel/helpers - typeof";
|
|
27
|
-
return
|
|
28
|
+
return en = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
28
29
|
return typeof t;
|
|
29
30
|
} : function(t) {
|
|
30
31
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
31
|
-
},
|
|
32
|
+
}, en(e);
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
-
if (
|
|
34
|
+
function ma(e, t) {
|
|
35
|
+
if (en(e) != "object" || !e) return e;
|
|
35
36
|
var n = e[Symbol.toPrimitive];
|
|
36
37
|
if (n !== void 0) {
|
|
37
38
|
var r = n.call(e, t || "default");
|
|
38
|
-
if (
|
|
39
|
+
if (en(r) != "object") return r;
|
|
39
40
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
40
41
|
}
|
|
41
42
|
return (t === "string" ? String : Number)(e);
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
-
var t =
|
|
45
|
-
return
|
|
44
|
+
function ya(e) {
|
|
45
|
+
var t = ma(e, "string");
|
|
46
|
+
return en(t) == "symbol" ? t : t + "";
|
|
46
47
|
}
|
|
47
|
-
function
|
|
48
|
-
return (t =
|
|
48
|
+
function N(e, t, n) {
|
|
49
|
+
return (t = ya(t)) in e ? Object.defineProperty(e, t, {
|
|
49
50
|
value: n,
|
|
50
51
|
enumerable: !0,
|
|
51
52
|
configurable: !0,
|
|
52
53
|
writable: !0
|
|
53
54
|
}) : e[t] = n, e;
|
|
54
55
|
}
|
|
55
|
-
var ql = 1 << 24, _e = 1024,
|
|
56
|
-
var
|
|
56
|
+
var ql = 1 << 24, _e = 1024, oe = 2048, tt = 4096, Or = 8192, Oi = 16384, Lr = 32768, gr = 1 << 25, Nr = 65536, Dl = 1 << 17, Wl = 1 << 18, Ct = 1 << 19, ka = 1 << 20, Yt = 1 << 25, ai = 1 << 21, $a = 1 << 22, On = 1 << 23, Kt = /* @__PURE__ */ Symbol("$state"), Li = /* @__PURE__ */ Symbol("component"), Ni = /* @__PURE__ */ Symbol("legacy props"), Ea = /* @__PURE__ */ Symbol(""), Ta = /* @__PURE__ */ Symbol("proxy path"), br = /* @__PURE__ */ Symbol("attributes"), wr = /* @__PURE__ */ Symbol("class"), mr = /* @__PURE__ */ Symbol("style"), An = /* @__PURE__ */ Symbol("text");
|
|
57
|
+
var sn = new class extends Error {
|
|
57
58
|
constructor(...t) {
|
|
58
|
-
super(...t),
|
|
59
|
+
super(...t), N(this, "name", "StaleReactionError"), N(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
59
60
|
}
|
|
60
|
-
}(),
|
|
61
|
-
function
|
|
61
|
+
}(), Sa = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
62
|
+
function Aa() {
|
|
62
63
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
+
function ln(e) {
|
|
65
66
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
+
function xa() {
|
|
68
69
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
69
70
|
}
|
|
70
|
-
var
|
|
71
|
-
function
|
|
72
|
-
|
|
71
|
+
var A = !1;
|
|
72
|
+
function je(e) {
|
|
73
|
+
A = e;
|
|
73
74
|
}
|
|
74
75
|
var C;
|
|
75
|
-
function
|
|
76
|
+
function K(e) {
|
|
76
77
|
if (e === null)
|
|
77
|
-
throw
|
|
78
|
+
throw ln(), Ve;
|
|
78
79
|
return C = e;
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
-
return
|
|
81
|
+
function At() {
|
|
82
|
+
return K(/* @__PURE__ */ Te(C));
|
|
82
83
|
}
|
|
83
|
-
function
|
|
84
|
-
if (
|
|
84
|
+
function Vt(e) {
|
|
85
|
+
if (A) {
|
|
85
86
|
if (/* @__PURE__ */ Te(C) !== null)
|
|
86
|
-
throw
|
|
87
|
+
throw ln(), Ve;
|
|
87
88
|
C = e;
|
|
88
89
|
}
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
-
if (
|
|
91
|
+
function Ma(e = 1) {
|
|
92
|
+
if (A) {
|
|
92
93
|
for (var t = e, n = C; t--; ) n = /* @__PURE__ */ Te(n);
|
|
93
94
|
C = n;
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
|
-
function
|
|
97
|
+
function Ln(e = !0) {
|
|
97
98
|
for (var t = 0, n = C; ; ) {
|
|
98
99
|
if (n.nodeType === 8) {
|
|
99
100
|
var r = n.data;
|
|
@@ -106,126 +107,126 @@ function In(e = !0) {
|
|
|
106
107
|
e && n.remove(), n = i;
|
|
107
108
|
}
|
|
108
109
|
}
|
|
109
|
-
function
|
|
110
|
+
function Ir(e) {
|
|
110
111
|
if (!e || e.nodeType !== 8)
|
|
111
|
-
throw
|
|
112
|
+
throw ln(), Ve;
|
|
112
113
|
return e.data;
|
|
113
114
|
}
|
|
114
|
-
function
|
|
115
|
+
function Ii(e) {
|
|
115
116
|
return e === this.v;
|
|
116
117
|
}
|
|
117
|
-
function
|
|
118
|
+
function Ra(e, t) {
|
|
118
119
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
119
120
|
}
|
|
120
|
-
function
|
|
121
|
-
return !
|
|
121
|
+
function Pi(e) {
|
|
122
|
+
return !Ra(e, this.v);
|
|
122
123
|
}
|
|
123
|
-
function
|
|
124
|
+
function Ca() {
|
|
124
125
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
125
126
|
}
|
|
126
|
-
function
|
|
127
|
+
function Oa(e, t, n) {
|
|
127
128
|
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
128
129
|
}
|
|
129
|
-
function
|
|
130
|
+
function La(e) {
|
|
130
131
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
131
132
|
}
|
|
132
|
-
function
|
|
133
|
+
function Na() {
|
|
133
134
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
134
135
|
}
|
|
135
|
-
function
|
|
136
|
+
function Ia(e) {
|
|
136
137
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
137
138
|
}
|
|
138
|
-
function
|
|
139
|
+
function Pa() {
|
|
139
140
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
140
141
|
}
|
|
141
|
-
function
|
|
142
|
+
function qa() {
|
|
142
143
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
143
144
|
}
|
|
144
|
-
function
|
|
145
|
+
function Da(e) {
|
|
145
146
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
146
147
|
}
|
|
147
|
-
function
|
|
148
|
+
function Wa() {
|
|
148
149
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
149
150
|
}
|
|
150
|
-
function
|
|
151
|
+
function ja() {
|
|
151
152
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
152
153
|
}
|
|
153
|
-
function
|
|
154
|
+
function Ha() {
|
|
154
155
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
155
156
|
}
|
|
156
|
-
function
|
|
157
|
+
function Va() {
|
|
157
158
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
158
159
|
}
|
|
159
|
-
var Be = !1,
|
|
160
|
-
function
|
|
161
|
-
return e.label = t,
|
|
160
|
+
var Be = !1, zn = !1;
|
|
161
|
+
function si(e, t) {
|
|
162
|
+
return e.label = t, Fa(e.v, t), e;
|
|
162
163
|
}
|
|
163
|
-
function
|
|
164
|
-
return e?.[
|
|
164
|
+
function Fa(e, t) {
|
|
165
|
+
return e?.[Ta]?.(t), e;
|
|
165
166
|
}
|
|
166
|
-
var
|
|
167
|
-
function
|
|
168
|
-
|
|
167
|
+
var B = null;
|
|
168
|
+
function xt(e) {
|
|
169
|
+
B = e;
|
|
169
170
|
}
|
|
170
|
-
function
|
|
171
|
-
|
|
172
|
-
p:
|
|
171
|
+
function qi(e, t = !1, n) {
|
|
172
|
+
B = {
|
|
173
|
+
p: B,
|
|
173
174
|
i: !1,
|
|
174
175
|
c: null,
|
|
175
176
|
e: null,
|
|
176
177
|
s: e,
|
|
177
178
|
x: null,
|
|
178
|
-
r:
|
|
179
|
-
l:
|
|
179
|
+
r: T,
|
|
180
|
+
l: zn && !t ? {
|
|
180
181
|
s: null,
|
|
181
182
|
u: null,
|
|
182
183
|
$: []
|
|
183
184
|
} : null
|
|
184
185
|
};
|
|
185
186
|
}
|
|
186
|
-
function
|
|
187
|
-
var t =
|
|
187
|
+
function Di(e) {
|
|
188
|
+
var t = B, n = t.e;
|
|
188
189
|
if (n !== null) {
|
|
189
190
|
t.e = null;
|
|
190
|
-
for (var r of n)
|
|
191
|
+
for (var r of n) lo(r);
|
|
191
192
|
}
|
|
192
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
193
|
+
return e !== void 0 && (t.x = e), t.i = !0, B = t.p, Pr(e);
|
|
193
194
|
}
|
|
194
|
-
function
|
|
195
|
-
return
|
|
195
|
+
function Pr(e = {}) {
|
|
196
|
+
return Qt(e, Li, { value: !0 }), e;
|
|
196
197
|
}
|
|
197
|
-
function
|
|
198
|
-
return !
|
|
198
|
+
function fn() {
|
|
199
|
+
return !zn || B !== null && B.l === null;
|
|
199
200
|
}
|
|
200
|
-
var
|
|
201
|
-
function
|
|
202
|
-
var e =
|
|
203
|
-
|
|
201
|
+
var lt = [];
|
|
202
|
+
function Wi() {
|
|
203
|
+
var e = lt;
|
|
204
|
+
lt = [], wa(e);
|
|
204
205
|
}
|
|
205
|
-
function
|
|
206
|
-
if (
|
|
207
|
-
var t =
|
|
206
|
+
function et(e) {
|
|
207
|
+
if (lt.length === 0 && !Xt) {
|
|
208
|
+
var t = lt;
|
|
208
209
|
queueMicrotask(() => {
|
|
209
|
-
t ===
|
|
210
|
+
t === lt && Wi();
|
|
210
211
|
});
|
|
211
212
|
}
|
|
212
|
-
|
|
213
|
+
lt.push(e);
|
|
213
214
|
}
|
|
214
|
-
function
|
|
215
|
-
for (;
|
|
215
|
+
function Ba() {
|
|
216
|
+
for (; lt.length > 0; ) Wi();
|
|
216
217
|
}
|
|
217
|
-
var
|
|
218
|
+
var za = ~(oe | tt | _e);
|
|
218
219
|
function j(e, t) {
|
|
219
|
-
e.f = e.f &
|
|
220
|
+
e.f = e.f & za | t;
|
|
220
221
|
}
|
|
221
|
-
function
|
|
222
|
-
(e.f & 512) !== 0 || e.deps === null ? j(e, _e) : j(e,
|
|
222
|
+
function qr(e) {
|
|
223
|
+
(e.f & 512) !== 0 || e.deps === null ? j(e, _e) : j(e, tt);
|
|
223
224
|
}
|
|
224
|
-
function
|
|
225
|
-
(e.f & 2048) !== 0 ? t.
|
|
225
|
+
function ji(e, t) {
|
|
226
|
+
(e.f & 2048) !== 0 ? t.set(e, oe) : (e.f & 4096) !== 0 && t.get(e) !== 2048 && t.set(e, tt), j(e, _e);
|
|
226
227
|
}
|
|
227
|
-
function
|
|
228
|
-
var t =
|
|
228
|
+
function Un(e) {
|
|
229
|
+
var t = x, n = T;
|
|
229
230
|
ge(null), Ne(null);
|
|
230
231
|
try {
|
|
231
232
|
return e();
|
|
@@ -233,313 +234,300 @@ function Xn(e) {
|
|
|
233
234
|
ge(t), Ne(n);
|
|
234
235
|
}
|
|
235
236
|
}
|
|
236
|
-
function
|
|
237
|
-
const i =
|
|
238
|
-
var o = e.filter((h) => !h.settled),
|
|
237
|
+
function Ua(e, t, n, r) {
|
|
238
|
+
const i = fn() ? tn : Dr;
|
|
239
|
+
var o = e.filter((h) => !h.settled), s = t.map(i);
|
|
239
240
|
if (n.length === 0 && o.length === 0) {
|
|
240
|
-
r(
|
|
241
|
+
r(s);
|
|
241
242
|
return;
|
|
242
243
|
}
|
|
243
|
-
var f =
|
|
244
|
-
function
|
|
244
|
+
var f = T, u = Ga(), _ = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((h) => h.promise)) : null;
|
|
245
|
+
function p(h) {
|
|
245
246
|
if ((f.f & 16384) === 0) {
|
|
246
|
-
|
|
247
|
+
u();
|
|
247
248
|
try {
|
|
248
|
-
r([...
|
|
249
|
+
r([...s, ...h]);
|
|
249
250
|
} catch (b) {
|
|
250
251
|
Le(b, f);
|
|
251
252
|
}
|
|
252
|
-
|
|
253
|
+
Nn();
|
|
253
254
|
}
|
|
254
255
|
}
|
|
255
|
-
var
|
|
256
|
+
var d = Hi();
|
|
256
257
|
if (n.length === 0) {
|
|
257
|
-
|
|
258
|
+
_.then(() => p([])).finally(d);
|
|
258
259
|
return;
|
|
259
260
|
}
|
|
260
|
-
function
|
|
261
|
-
Promise.all(n.map((h) => /* @__PURE__ */
|
|
261
|
+
function c() {
|
|
262
|
+
Promise.all(n.map((h) => /* @__PURE__ */ Ka(h))).then(p).catch((h) => Le(h, f)).finally(d);
|
|
262
263
|
}
|
|
263
|
-
|
|
264
|
+
_ ? _.then(() => {
|
|
264
265
|
if ((f.f & 16384) !== 0) {
|
|
265
|
-
|
|
266
|
+
d();
|
|
266
267
|
return;
|
|
267
268
|
}
|
|
268
|
-
|
|
269
|
-
}) :
|
|
269
|
+
u(), c(), Nn();
|
|
270
|
+
}) : c();
|
|
270
271
|
}
|
|
271
|
-
function
|
|
272
|
-
var e =
|
|
272
|
+
function Ga() {
|
|
273
|
+
var e = T, t = x, n = B, r = M;
|
|
273
274
|
if (0) var i;
|
|
274
|
-
return function(
|
|
275
|
-
Ne(e), ge(t),
|
|
275
|
+
return function(s = !0) {
|
|
276
|
+
Ne(e), ge(t), xt(n), s && (e.f & 16384) === 0 && (r?.activate(), r?.apply());
|
|
276
277
|
};
|
|
277
278
|
}
|
|
278
|
-
var
|
|
279
|
-
function
|
|
280
|
-
|
|
279
|
+
var Ya = !1;
|
|
280
|
+
function Nn(e = !0) {
|
|
281
|
+
Ya = !1, Ne(null), ge(null), xt(null), e && M?.deactivate();
|
|
281
282
|
}
|
|
282
|
-
function
|
|
283
|
-
var e =
|
|
283
|
+
function Hi() {
|
|
284
|
+
var e = T, t = e.b, n = M, r = !!t?.is_rendered();
|
|
284
285
|
return t?.update_pending_count(1, n), n.increment(r, e), () => {
|
|
285
286
|
t?.update_pending_count(-1, n), n.decrement(r, e);
|
|
286
287
|
};
|
|
287
288
|
}
|
|
288
289
|
// @__NO_SIDE_EFFECTS__
|
|
289
|
-
function
|
|
290
|
-
var t = 2 |
|
|
291
|
-
return
|
|
292
|
-
ctx:
|
|
290
|
+
function tn(e) {
|
|
291
|
+
var t = 2 | oe;
|
|
292
|
+
return T !== null && (T.f |= Ct), {
|
|
293
|
+
ctx: B,
|
|
293
294
|
deps: null,
|
|
294
295
|
effects: null,
|
|
295
|
-
equals:
|
|
296
|
+
equals: Ii,
|
|
296
297
|
f: t,
|
|
297
298
|
fn: e,
|
|
298
299
|
reactions: null,
|
|
299
300
|
rv: 0,
|
|
300
|
-
v:
|
|
301
|
+
v: U,
|
|
301
302
|
wv: 0,
|
|
302
|
-
parent:
|
|
303
|
+
parent: T,
|
|
303
304
|
ac: null
|
|
304
305
|
};
|
|
305
306
|
}
|
|
306
|
-
var
|
|
307
|
+
var Ft = /* @__PURE__ */ Symbol("obsolete");
|
|
307
308
|
// @__NO_SIDE_EFFECTS__
|
|
308
|
-
function
|
|
309
|
-
let r =
|
|
310
|
-
r === null &&
|
|
311
|
-
var i = void 0, o =
|
|
312
|
-
return
|
|
313
|
-
var
|
|
314
|
-
i =
|
|
309
|
+
function Ka(e, t, n) {
|
|
310
|
+
let r = T;
|
|
311
|
+
r === null && Ca();
|
|
312
|
+
var i = void 0, o = pt(U), s = !x, f = /* @__PURE__ */ new Set();
|
|
313
|
+
return vs(() => {
|
|
314
|
+
var u = T, _ = Ci();
|
|
315
|
+
i = _.promise;
|
|
315
316
|
try {
|
|
316
|
-
Promise.resolve(e()).then(
|
|
317
|
-
h !==
|
|
318
|
-
}).finally(
|
|
317
|
+
Promise.resolve(e()).then(_.resolve, (h) => {
|
|
318
|
+
h !== sn && _.reject(h);
|
|
319
|
+
}).finally(Nn);
|
|
319
320
|
} catch (h) {
|
|
320
|
-
|
|
321
|
+
_.reject(h), Nn();
|
|
321
322
|
}
|
|
322
|
-
var
|
|
323
|
-
if (
|
|
324
|
-
if ((
|
|
325
|
-
if (r.b?.is_rendered())
|
|
326
|
-
else for (const h of f.values()) h.reject(
|
|
327
|
-
f.add(
|
|
323
|
+
var p = M;
|
|
324
|
+
if (s) {
|
|
325
|
+
if ((u.f & 32768) !== 0) var d = Hi();
|
|
326
|
+
if (r.b?.is_rendered()) p.async_deriveds.get(u)?.reject(Ft);
|
|
327
|
+
else for (const h of f.values()) h.reject(Ft);
|
|
328
|
+
f.add(_), p.async_deriveds.set(u, _);
|
|
328
329
|
}
|
|
329
|
-
const
|
|
330
|
-
|
|
330
|
+
const c = (h, b = void 0) => {
|
|
331
|
+
d?.(), f.delete(_), b !== Ft && (p.activate(), b ? (o.f |= On, Mt(o, b)) : ((o.f & 8388608) !== 0 && (o.f ^= On), Mt(o, h)), p.deactivate());
|
|
331
332
|
};
|
|
332
|
-
|
|
333
|
-
}),
|
|
334
|
-
for (const
|
|
335
|
-
}), new Promise((
|
|
336
|
-
function p
|
|
337
|
-
function
|
|
338
|
-
|
|
333
|
+
_.promise.then(c, (h) => c(null, h || "unknown"));
|
|
334
|
+
}), cs(() => {
|
|
335
|
+
for (const u of f) u.reject(Ft);
|
|
336
|
+
}), new Promise((u) => {
|
|
337
|
+
function _(p) {
|
|
338
|
+
function d() {
|
|
339
|
+
p === i ? u(o) : _(i);
|
|
339
340
|
}
|
|
340
|
-
|
|
341
|
+
p.then(d, d);
|
|
341
342
|
}
|
|
342
|
-
|
|
343
|
+
_(i);
|
|
343
344
|
});
|
|
344
345
|
}
|
|
345
346
|
// @__NO_SIDE_EFFECTS__
|
|
346
347
|
function de(e) {
|
|
347
|
-
const t = /* @__PURE__ */
|
|
348
|
-
return Be ||
|
|
348
|
+
const t = /* @__PURE__ */ tn(e);
|
|
349
|
+
return Be || po(t), t;
|
|
349
350
|
}
|
|
350
351
|
// @__NO_SIDE_EFFECTS__
|
|
351
|
-
function
|
|
352
|
-
const t = /* @__PURE__ */
|
|
353
|
-
return t.equals =
|
|
352
|
+
function Dr(e) {
|
|
353
|
+
const t = /* @__PURE__ */ tn(e);
|
|
354
|
+
return t.equals = Pi, t;
|
|
354
355
|
}
|
|
355
|
-
function
|
|
356
|
+
function Xa(e) {
|
|
356
357
|
var t = e.effects;
|
|
357
358
|
if (t !== null) {
|
|
358
359
|
e.effects = null;
|
|
359
|
-
for (var n = 0; n < t.length; n += 1)
|
|
360
|
+
for (var n = 0; n < t.length; n += 1) te(t[n]);
|
|
360
361
|
}
|
|
361
362
|
}
|
|
362
|
-
function
|
|
363
|
-
var t, n =
|
|
364
|
-
if (!Fe && r !== null && e.v !==
|
|
365
|
-
return
|
|
363
|
+
function Wr(e) {
|
|
364
|
+
var t, n = T, r = e.parent;
|
|
365
|
+
if (!Fe && r !== null && e.v !== U && (r.f & 24576) !== 0)
|
|
366
|
+
return Aa(), e.v;
|
|
366
367
|
Ne(r);
|
|
367
368
|
try {
|
|
368
|
-
|
|
369
|
+
Xa(e), t = mo(e);
|
|
369
370
|
} finally {
|
|
370
371
|
Ne(n);
|
|
371
372
|
}
|
|
372
373
|
return t;
|
|
373
374
|
}
|
|
374
|
-
function
|
|
375
|
-
var t =
|
|
376
|
-
if (!e.equals(t) && (e.wv =
|
|
375
|
+
function Vi(e) {
|
|
376
|
+
var t = Wr(e);
|
|
377
|
+
if (!e.equals(t) && (e.wv = bo(), (!M?.is_fork || e.deps === null) && (M !== null ? (M.capture(e, t, !0), Tt?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
377
378
|
j(e, _e);
|
|
378
379
|
return;
|
|
379
380
|
}
|
|
380
|
-
Fe || (
|
|
381
|
+
Fe || (ee !== null ? (Fr() || M?.is_fork) && ee.set(e, t) : qr(e));
|
|
381
382
|
}
|
|
382
|
-
function
|
|
383
|
+
function Za(e) {
|
|
383
384
|
if (e.effects !== null)
|
|
384
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null &&
|
|
385
|
-
t.ac.abort(
|
|
386
|
-
}), t.fn !== null && (t.teardown =
|
|
385
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && Un(() => {
|
|
386
|
+
t.ac.abort(sn), t.ac = null;
|
|
387
|
+
}), t.fn !== null && (t.teardown = ba), on(t, 0), Ur(t));
|
|
387
388
|
}
|
|
388
|
-
function
|
|
389
|
+
function Fi(e) {
|
|
389
390
|
if (e.effects !== null)
|
|
390
|
-
for (const t of e.effects) t.teardown && t.fn !== null &&
|
|
391
|
+
for (const t of e.effects) t.teardown && t.fn !== null && Rt(t);
|
|
391
392
|
}
|
|
392
|
-
function
|
|
393
|
+
function Bi(e, t) {
|
|
393
394
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
394
395
|
}
|
|
395
|
-
function
|
|
396
|
-
|
|
396
|
+
function jr(e, t) {
|
|
397
|
+
Bi(e, t), t.add(e);
|
|
397
398
|
}
|
|
398
|
-
function
|
|
399
|
-
|
|
399
|
+
function S(e, t, n) {
|
|
400
|
+
Bi(e, t), t.set(e, n);
|
|
400
401
|
}
|
|
401
402
|
function $(e, t, n) {
|
|
402
403
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
403
404
|
throw new TypeError("Private element is not present on this object");
|
|
404
405
|
}
|
|
405
|
-
function S(e, t, n) {
|
|
406
|
-
return e.set($(e, t), n), n;
|
|
407
|
-
}
|
|
408
406
|
function l(e, t) {
|
|
409
407
|
return e.get($(e, t));
|
|
410
408
|
}
|
|
411
|
-
|
|
412
|
-
|
|
409
|
+
function E(e, t, n) {
|
|
410
|
+
return e.set($(e, t), n), n;
|
|
411
|
+
}
|
|
412
|
+
var zi, In = null, mt = null, M = null, Tt = null, ee = null, yr = null, Xt = !1, ar = !1, nn = null, Pn = null, Ui = 0;
|
|
413
|
+
var Ja = 1, qn = /* @__PURE__ */ new WeakMap(), mn = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakSet(), gt = class Gi {
|
|
413
414
|
constructor() {
|
|
414
|
-
|
|
415
|
+
jr(this, I), N(this, "id", Ja++), N(this, "started", !1), N(this, "linked", !0), N(this, "prev", null), N(this, "next", null), N(this, "async_deriveds", /* @__PURE__ */ new Map()), N(this, "current", /* @__PURE__ */ new Map()), N(this, "previous", /* @__PURE__ */ new Map()), S(this, qn, /* @__PURE__ */ new Set()), S(this, mn, /* @__PURE__ */ new Set()), S(this, yt, 0), S(this, at, /* @__PURE__ */ new Map()), S(this, Bt, null), S(this, _t, []), S(this, kr, []), S(this, Je, /* @__PURE__ */ new Map()), S(this, Ze, /* @__PURE__ */ new Map()), S(this, xn, /* @__PURE__ */ new Set()), N(this, "is_fork", !1), S(this, zt, !1), mt === null ? In = mt = this : (mt.next = this, this.prev = mt), mt = this;
|
|
415
416
|
}
|
|
416
417
|
skip_effect(t) {
|
|
417
|
-
l(
|
|
418
|
+
l(Ze, this).has(t) || l(Ze, this).set(t, {
|
|
418
419
|
d: [],
|
|
419
420
|
m: []
|
|
420
|
-
}), l(
|
|
421
|
+
}), l(xn, this).delete(t);
|
|
421
422
|
}
|
|
422
423
|
unskip_effect(t, n = (r) => this.schedule(r)) {
|
|
423
|
-
var r = l(
|
|
424
|
+
var r = l(Ze, this).get(t);
|
|
424
425
|
if (r) {
|
|
425
|
-
l(
|
|
426
|
+
l(Ze, this).delete(t);
|
|
426
427
|
for (var i of r.d)
|
|
427
|
-
j(i,
|
|
428
|
+
j(i, oe), n(i);
|
|
428
429
|
for (i of r.m)
|
|
429
|
-
j(i,
|
|
430
|
+
j(i, tt), n(i);
|
|
430
431
|
}
|
|
431
|
-
l(
|
|
432
|
+
l(xn, this).add(t);
|
|
432
433
|
}
|
|
433
434
|
capture(t, n, r = !1) {
|
|
434
|
-
t.v !==
|
|
435
|
+
t.v !== U && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [n, r]), ee?.set(t, n)), this.is_fork || (t.v = n);
|
|
435
436
|
}
|
|
436
437
|
activate() {
|
|
437
|
-
|
|
438
|
+
M = this;
|
|
438
439
|
}
|
|
439
440
|
deactivate() {
|
|
440
|
-
|
|
441
|
+
M = null, ee = null;
|
|
441
442
|
}
|
|
442
443
|
flush() {
|
|
443
444
|
try {
|
|
444
|
-
|
|
445
|
+
ar = !0, M = this, $(I, this, Dn).call(this);
|
|
445
446
|
} finally {
|
|
446
|
-
|
|
447
|
+
Ui = 0, yr = null, nn = null, Pn = null, ar = !1, M = null, ee = null, Oe.clear();
|
|
447
448
|
}
|
|
448
449
|
}
|
|
449
450
|
discard() {
|
|
450
|
-
for (const t of l(
|
|
451
|
-
l(
|
|
452
|
-
for (const t of this.async_deriveds.values()) t.reject(
|
|
453
|
-
$(
|
|
451
|
+
for (const t of l(mn, this)) t(this);
|
|
452
|
+
l(mn, this).clear();
|
|
453
|
+
for (const t of this.async_deriveds.values()) t.reject(Ft);
|
|
454
|
+
$(I, this, Wn).call(this), l(Bt, this)?.resolve();
|
|
454
455
|
}
|
|
455
456
|
register_created_effect(t) {
|
|
456
|
-
l(
|
|
457
|
+
l(kr, this).push(t);
|
|
457
458
|
}
|
|
458
459
|
increment(t, n) {
|
|
459
|
-
if (
|
|
460
|
-
let r = l(
|
|
461
|
-
l(
|
|
460
|
+
if (E(yt, this, l(yt, this) + 1), t) {
|
|
461
|
+
let r = l(at, this).get(n) ?? 0;
|
|
462
|
+
l(at, this).set(n, r + 1);
|
|
462
463
|
}
|
|
463
464
|
}
|
|
464
465
|
decrement(t, n) {
|
|
465
|
-
if (
|
|
466
|
-
let r = l(
|
|
467
|
-
r === 1 ? l(
|
|
466
|
+
if (E(yt, this, l(yt, this) - 1), t) {
|
|
467
|
+
let r = l(at, this).get(n) ?? 0;
|
|
468
|
+
r === 1 ? l(at, this).delete(n) : l(at, this).set(n, r - 1);
|
|
468
469
|
}
|
|
469
|
-
l(
|
|
470
|
-
|
|
470
|
+
l(zt, this) || (E(zt, this, !0), et(() => {
|
|
471
|
+
E(zt, this, !1), this.linked && this.flush();
|
|
471
472
|
}));
|
|
472
473
|
}
|
|
473
|
-
|
|
474
|
-
for (const r of t)
|
|
475
|
-
|
|
476
|
-
|
|
474
|
+
transfer_reactions(t) {
|
|
475
|
+
for (const [n, r] of t) this.add_dirty_reaction(n, r);
|
|
476
|
+
t.clear();
|
|
477
|
+
}
|
|
478
|
+
add_dirty_reaction(t, n) {
|
|
479
|
+
(n === 2048 || l(Je, this).get(t) !== 2048) && l(Je, this).set(t, n);
|
|
477
480
|
}
|
|
478
481
|
oncommit(t) {
|
|
479
|
-
l(
|
|
482
|
+
l(qn, this).add(t);
|
|
480
483
|
}
|
|
481
484
|
ondiscard(t) {
|
|
482
|
-
l(
|
|
485
|
+
l(mn, this).add(t);
|
|
483
486
|
}
|
|
484
487
|
settled() {
|
|
485
|
-
return (l(
|
|
488
|
+
return (l(Bt, this) ?? E(Bt, this, Ci())).promise;
|
|
486
489
|
}
|
|
487
490
|
static ensure() {
|
|
488
|
-
if (
|
|
489
|
-
const t =
|
|
490
|
-
!
|
|
491
|
-
|
|
491
|
+
if (M === null) {
|
|
492
|
+
const t = M = new Gi();
|
|
493
|
+
!ar && !Xt && et(() => {
|
|
494
|
+
t.started || t.flush();
|
|
492
495
|
});
|
|
493
496
|
}
|
|
494
|
-
return
|
|
497
|
+
return M;
|
|
495
498
|
}
|
|
496
499
|
apply() {
|
|
497
|
-
if (!Be || !this.is_fork &&
|
|
498
|
-
|
|
500
|
+
if (!Be || !this.is_fork && this.prev === null && this.next === null) {
|
|
501
|
+
ee = null;
|
|
499
502
|
return;
|
|
500
503
|
}
|
|
501
|
-
|
|
502
|
-
for (const [
|
|
503
|
-
for (let
|
|
504
|
-
if (!(
|
|
505
|
-
|
|
506
|
-
if (n.id < this.id) {
|
|
507
|
-
for (const [r, [, i]] of n.current)
|
|
508
|
-
if (!i && this.current.has(r)) {
|
|
509
|
-
t = !0;
|
|
510
|
-
break;
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
if (!t)
|
|
514
|
-
for (const [r, i] of n.previous) te.has(r) || te.set(r, i);
|
|
515
|
-
}
|
|
504
|
+
ee = /* @__PURE__ */ new Map();
|
|
505
|
+
for (const [t, [n]] of this.current) ee.set(t, n);
|
|
506
|
+
for (let t = In; t !== null; t = t.next)
|
|
507
|
+
if (!(t === this || t.is_fork) && (t.id >= this.id || !$(I, t, Xi).call(t, this)))
|
|
508
|
+
for (const [n, r] of t.previous) ee.has(n) || ee.set(n, r);
|
|
516
509
|
}
|
|
517
510
|
schedule(t) {
|
|
518
|
-
if (
|
|
511
|
+
if (yr = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
|
|
519
512
|
t.b.defer_effect(t);
|
|
520
513
|
return;
|
|
521
514
|
}
|
|
522
|
-
l(
|
|
515
|
+
l(_t, this).push(t);
|
|
523
516
|
}
|
|
524
517
|
};
|
|
525
|
-
|
|
526
|
-
function
|
|
518
|
+
zi = gt;
|
|
519
|
+
function li() {
|
|
527
520
|
if (this.is_fork) return !0;
|
|
528
|
-
for (const
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
}
|
|
534
|
-
e = e.parent;
|
|
535
|
-
}
|
|
536
|
-
if (!t) return !0;
|
|
537
|
-
}
|
|
521
|
+
for (const e of l(at, this).keys()) if (!$(I, this, Qa).call(this, e)) return !0;
|
|
522
|
+
return !1;
|
|
523
|
+
}
|
|
524
|
+
function Qa(e) {
|
|
525
|
+
for (var t = e; t !== null; t = t.parent) if (l(Ze, this).has(t)) return !0;
|
|
538
526
|
return !1;
|
|
539
527
|
}
|
|
540
|
-
function
|
|
528
|
+
function Yi() {
|
|
541
529
|
var e = [];
|
|
542
|
-
for (const i of l(
|
|
530
|
+
for (const i of l(_t, this))
|
|
543
531
|
if (!((i.f & 16384) !== 0 || (i.f & 6144) === 0)) {
|
|
544
532
|
for (var t = i, n = !1; t.parent !== null; ) {
|
|
545
533
|
t = t.parent;
|
|
@@ -554,58 +542,51 @@ function Ji() {
|
|
|
554
542
|
}
|
|
555
543
|
n || e.push(t);
|
|
556
544
|
}
|
|
557
|
-
return
|
|
545
|
+
return E(_t, this, []), e;
|
|
558
546
|
}
|
|
559
|
-
function
|
|
560
|
-
|
|
561
|
-
for (const
|
|
562
|
-
|
|
563
|
-
for (const a of l(je, this))
|
|
564
|
-
j(a, pt), this.schedule(a);
|
|
547
|
+
function Dn() {
|
|
548
|
+
this.started = !0;
|
|
549
|
+
for (const [s, f] of l(Je, this))
|
|
550
|
+
j(s, f), this.schedule(s);
|
|
565
551
|
this.apply();
|
|
566
|
-
for (var e =
|
|
567
|
-
|
|
568
|
-
for (const
|
|
569
|
-
$(
|
|
552
|
+
for (var e = nn = [], t = [], n = Pn = []; l(_t, this).length > 0; ) {
|
|
553
|
+
Ui++ > 1e3 && ($(I, this, Wn).call(this), rs());
|
|
554
|
+
for (const s of $(I, this, Yi).call(this)) try {
|
|
555
|
+
$(I, this, Ki).call(this, s, e, t);
|
|
570
556
|
} catch (f) {
|
|
571
|
-
throw
|
|
557
|
+
throw Qi(s), $(I, this, li).call(this) || this.discard(), f;
|
|
572
558
|
}
|
|
573
559
|
}
|
|
574
|
-
if (
|
|
575
|
-
var r =
|
|
576
|
-
for (const
|
|
560
|
+
if (M = null, n.length > 0) {
|
|
561
|
+
var r = zi.ensure();
|
|
562
|
+
for (const s of n) r.schedule(s);
|
|
577
563
|
}
|
|
578
|
-
if (
|
|
579
|
-
$(
|
|
580
|
-
for (const [
|
|
581
|
-
n.length > 0 && $(
|
|
564
|
+
if (nn = null, Pn = null, $(I, this, li).call(this)) {
|
|
565
|
+
$(I, this, Ut).call(this, t), $(I, this, Ut).call(this, e);
|
|
566
|
+
for (const [s, f] of l(Ze, this)) Ji(s, f);
|
|
567
|
+
n.length > 0 && $(I, M, Dn).call(M);
|
|
582
568
|
return;
|
|
583
569
|
}
|
|
584
|
-
const i = $(
|
|
570
|
+
const i = $(I, this, es).call(this);
|
|
585
571
|
if (i) {
|
|
586
|
-
$(
|
|
572
|
+
$(I, this, Ut).call(this, t), $(I, this, Ut).call(this, e), $(I, i, ts).call(i, this);
|
|
587
573
|
return;
|
|
588
574
|
}
|
|
589
|
-
l(
|
|
590
|
-
for (const
|
|
591
|
-
l(
|
|
592
|
-
var o =
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
S(me, this, []);
|
|
597
|
-
} else o = this;
|
|
598
|
-
o !== null && (Oe.clear(), $(D, o, Vn).call(o));
|
|
599
|
-
}
|
|
600
|
-
function Qi(e, t, n) {
|
|
575
|
+
l(Je, this).clear();
|
|
576
|
+
for (const s of l(qn, this)) s(this);
|
|
577
|
+
l(qn, this).clear(), Tt = this, fi(t), fi(e), Tt = null, l(Bt, this)?.resolve();
|
|
578
|
+
var o = M;
|
|
579
|
+
l(yt, this) === 0 && (l(_t, this).length === 0 || o !== null) && ($(I, this, Wn).call(this), Be && ($(I, this, ns).call(this), M = o)), o !== null && (Oe.clear(), $(I, o, Dn).call(o));
|
|
580
|
+
}
|
|
581
|
+
function Ki(e, t, n) {
|
|
601
582
|
e.f ^= _e;
|
|
602
583
|
for (var r = e.first; r !== null; ) {
|
|
603
584
|
var i = r.f, o = (i & 96) !== 0;
|
|
604
|
-
if (!(o && (i & 1024) !== 0 || (i & 8192) !== 0 || l(
|
|
605
|
-
o ? r.f ^= _e : (i & 4) !== 0 ? t.push(r) : Be && (i & 16777224) !== 0 ? n.push(r) :
|
|
606
|
-
var
|
|
607
|
-
if (
|
|
608
|
-
r =
|
|
585
|
+
if (!(o && (i & 1024) !== 0 || (i & 8192) !== 0 || l(Ze, this).has(r)) && r.fn !== null) {
|
|
586
|
+
o ? r.f ^= _e : (i & 4) !== 0 ? t.push(r) : Be && (i & 16777224) !== 0 ? n.push(r) : un(r) && ((i & 16) !== 0 && this.add_dirty_reaction(r, tt), Rt(r));
|
|
587
|
+
var s = r.first;
|
|
588
|
+
if (s !== null) {
|
|
589
|
+
r = s;
|
|
609
590
|
continue;
|
|
610
591
|
}
|
|
611
592
|
}
|
|
@@ -619,132 +600,133 @@ function Qi(e, t, n) {
|
|
|
619
600
|
}
|
|
620
601
|
}
|
|
621
602
|
}
|
|
622
|
-
function
|
|
623
|
-
for (var e =
|
|
624
|
-
if (!e.is_fork) {
|
|
625
|
-
for (const [t, [, n]] of this.current) if (e.current.has(t) && !n) return e;
|
|
626
|
-
}
|
|
627
|
-
e = l(ut, e);
|
|
628
|
-
}
|
|
603
|
+
function es() {
|
|
604
|
+
for (var e = this.prev; e !== null; e = e.prev) if (!e.is_fork && $(I, this, Xi).call(this, e)) return e;
|
|
629
605
|
return null;
|
|
630
606
|
}
|
|
631
|
-
function
|
|
607
|
+
function Xi(e) {
|
|
608
|
+
for (const [t, [, n]] of this.current)
|
|
609
|
+
if (!n && e.current.has(t))
|
|
610
|
+
return !0;
|
|
611
|
+
return !1;
|
|
612
|
+
}
|
|
613
|
+
function ts(e) {
|
|
632
614
|
for (const [n, r] of e.current)
|
|
633
615
|
!this.previous.has(n) && e.previous.has(n) && this.previous.set(n, e.previous.get(n)), this.current.set(n, r);
|
|
634
616
|
for (const [n, r] of e.async_deriveds) {
|
|
635
617
|
const i = this.async_deriveds.get(n);
|
|
636
618
|
i && r.promise.then(i.resolve).catch(i.reject);
|
|
637
619
|
}
|
|
638
|
-
e.async_deriveds.clear(), this.
|
|
620
|
+
e.async_deriveds.clear(), this.transfer_reactions(l(Je, e));
|
|
639
621
|
const t = (n) => {
|
|
640
622
|
var r = n.reactions;
|
|
641
623
|
if (r !== null && !((n.f & 2) !== 0 && (n.f & 6144) === 0))
|
|
642
|
-
for (const
|
|
643
|
-
var i =
|
|
644
|
-
if ((i & 2) !== 0) t(
|
|
624
|
+
for (const s of r) {
|
|
625
|
+
var i = s.f;
|
|
626
|
+
if ((i & 2) !== 0) t(s);
|
|
645
627
|
else {
|
|
646
|
-
var o =
|
|
647
|
-
i & 4194320 && !this.async_deriveds.has(o) && (l(
|
|
628
|
+
var o = s;
|
|
629
|
+
i & 4194320 && !this.async_deriveds.has(o) && (l(Je, this).delete(o), j(o, oe), this.schedule(o));
|
|
648
630
|
}
|
|
649
631
|
}
|
|
650
632
|
};
|
|
651
633
|
for (const n of this.current.keys()) t(n);
|
|
652
|
-
this.oncommit(() => e.discard()), $(
|
|
653
|
-
}
|
|
654
|
-
function
|
|
655
|
-
for (var t = 0; t < e.length; t += 1)
|
|
656
|
-
}
|
|
657
|
-
function
|
|
658
|
-
for (let
|
|
659
|
-
var e =
|
|
660
|
-
for (const [
|
|
661
|
-
if (
|
|
662
|
-
var n =
|
|
663
|
-
if (e &&
|
|
634
|
+
this.oncommit(() => e.discard()), $(I, e, Wn).call(e), M = this, $(I, this, Dn).call(this);
|
|
635
|
+
}
|
|
636
|
+
function Ut(e) {
|
|
637
|
+
for (var t = 0; t < e.length; t += 1) ji(e[t], l(Je, this));
|
|
638
|
+
}
|
|
639
|
+
function ns() {
|
|
640
|
+
for (let p = In; p !== null; p = p.next) {
|
|
641
|
+
var e = p.id < this.id, t = [];
|
|
642
|
+
for (const [d, [c, h]] of this.current) {
|
|
643
|
+
if (p.current.has(d)) {
|
|
644
|
+
var n = p.current.get(d)[0];
|
|
645
|
+
if (e && c !== n) p.current.set(d, [c, h]);
|
|
664
646
|
else continue;
|
|
665
647
|
}
|
|
666
|
-
t.push(
|
|
648
|
+
t.push(d);
|
|
667
649
|
}
|
|
668
|
-
if (e) for (const [
|
|
669
|
-
const h =
|
|
670
|
-
h &&
|
|
650
|
+
if (e) for (const [d, c] of this.async_deriveds) {
|
|
651
|
+
const h = p.async_deriveds.get(d);
|
|
652
|
+
h && c.promise.then(h.resolve).catch(h.reject);
|
|
671
653
|
}
|
|
672
|
-
var r = [...
|
|
673
|
-
if (!(!
|
|
674
|
-
var i = r.filter((
|
|
654
|
+
var r = [...p.current.keys()].filter((d) => !p.current.get(d)[1]);
|
|
655
|
+
if (!(!p.started || r.length === 0)) {
|
|
656
|
+
var i = r.filter((d) => !this.current.has(d));
|
|
675
657
|
if (i.length === 0)
|
|
676
|
-
e &&
|
|
658
|
+
e && p.discard();
|
|
677
659
|
else if (t.length > 0) {
|
|
678
|
-
if (e) for (const
|
|
679
|
-
(
|
|
660
|
+
if (e) for (const d of l(xn, this)) p.unskip_effect(d, (c) => {
|
|
661
|
+
(c.f & 4194320) !== 0 ? p.schedule(c) : $(I, p, Ut).call(p, [c]);
|
|
680
662
|
});
|
|
681
|
-
|
|
682
|
-
var o = /* @__PURE__ */ new Set(),
|
|
683
|
-
for (var f of t)
|
|
684
|
-
|
|
685
|
-
var
|
|
686
|
-
const h = this.current.get(
|
|
687
|
-
return h ? h[0] !==
|
|
688
|
-
}).map(([
|
|
689
|
-
if (
|
|
690
|
-
for (const
|
|
691
|
-
if (l(
|
|
692
|
-
|
|
693
|
-
for (var
|
|
663
|
+
p.activate();
|
|
664
|
+
var o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map();
|
|
665
|
+
for (var f of t) Zi(f, i, o, s);
|
|
666
|
+
s = /* @__PURE__ */ new Map();
|
|
667
|
+
var u = [...p.current].filter(([d, c]) => {
|
|
668
|
+
const h = this.current.get(d);
|
|
669
|
+
return h ? h[0] !== c[0] || h[1] !== c[1] : !0;
|
|
670
|
+
}).map(([d]) => d);
|
|
671
|
+
if (u.length > 0)
|
|
672
|
+
for (const d of l(kr, this)) (d.f & 155648) === 0 && Hr(d, u, s) && ((d.f & 4194320) !== 0 ? (j(d, oe), p.schedule(d)) : p.add_dirty_reaction(d, oe));
|
|
673
|
+
if (l(_t, p).length > 0 && !l(zt, p)) {
|
|
674
|
+
p.apply();
|
|
675
|
+
for (var _ of $(I, p, Yi).call(p)) $(I, p, Ki).call(p, _, [], []);
|
|
694
676
|
}
|
|
695
|
-
|
|
677
|
+
p.deactivate();
|
|
696
678
|
}
|
|
697
679
|
}
|
|
698
680
|
}
|
|
699
681
|
}
|
|
700
|
-
function
|
|
682
|
+
function Wn() {
|
|
701
683
|
if (this.linked) {
|
|
702
|
-
var e =
|
|
703
|
-
e === null ?
|
|
684
|
+
var e = this.prev, t = this.next;
|
|
685
|
+
e === null ? In = t : e.next = t, t === null ? mt = e : t.prev = e, this.linked = !1;
|
|
704
686
|
}
|
|
705
687
|
}
|
|
706
|
-
function
|
|
707
|
-
var t =
|
|
708
|
-
|
|
688
|
+
function rn(e) {
|
|
689
|
+
var t = Xt, n = Tt;
|
|
690
|
+
Tt = null, Xt = !0;
|
|
709
691
|
try {
|
|
710
692
|
var r;
|
|
711
|
-
for (e && (
|
|
712
|
-
if (
|
|
713
|
-
|
|
693
|
+
for (e && (rn(), r = e()); ; ) {
|
|
694
|
+
if (Ba(), M === null) return r;
|
|
695
|
+
M.flush();
|
|
714
696
|
}
|
|
715
697
|
} finally {
|
|
716
|
-
|
|
698
|
+
Xt = t, Tt = n;
|
|
717
699
|
}
|
|
718
700
|
}
|
|
719
|
-
function
|
|
701
|
+
function rs() {
|
|
720
702
|
if (0) {
|
|
721
703
|
var e;
|
|
722
|
-
for (const n of
|
|
704
|
+
for (const n of M.current.keys()) for (const [r, i] of n.updated ?? [])
|
|
723
705
|
var t;
|
|
724
706
|
}
|
|
725
707
|
try {
|
|
726
|
-
|
|
708
|
+
Pa();
|
|
727
709
|
} catch (n) {
|
|
728
|
-
Le(n,
|
|
710
|
+
Le(n, yr);
|
|
729
711
|
}
|
|
730
712
|
}
|
|
731
713
|
var Re = null;
|
|
732
|
-
function
|
|
714
|
+
function fi(e) {
|
|
733
715
|
var t = e.length;
|
|
734
716
|
if (t !== 0) {
|
|
735
717
|
for (var n = 0; n < t; ) {
|
|
736
718
|
var r = e[n++];
|
|
737
|
-
if ((r.f & 24576) === 0 &&
|
|
719
|
+
if ((r.f & 24576) === 0 && un(r) && (Re = /* @__PURE__ */ new Set(), Rt(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && ho(r), Re?.size > 0)) {
|
|
738
720
|
Oe.clear();
|
|
739
721
|
for (const i of Re) {
|
|
740
722
|
if ((i.f & 24576) !== 0) continue;
|
|
741
723
|
const o = [i];
|
|
742
|
-
let
|
|
743
|
-
for (;
|
|
744
|
-
Re.has(
|
|
724
|
+
let s = i.parent;
|
|
725
|
+
for (; s !== null; )
|
|
726
|
+
Re.has(s) && (Re.delete(s), o.push(s)), s = s.parent;
|
|
745
727
|
for (let f = o.length - 1; f >= 0; f--) {
|
|
746
|
-
const
|
|
747
|
-
(
|
|
728
|
+
const u = o[f];
|
|
729
|
+
(u.f & 24576) === 0 && Rt(u);
|
|
748
730
|
}
|
|
749
731
|
}
|
|
750
732
|
Re.clear();
|
|
@@ -753,323 +735,323 @@ function hi(e) {
|
|
|
753
735
|
Re = null;
|
|
754
736
|
}
|
|
755
737
|
}
|
|
756
|
-
function
|
|
738
|
+
function Zi(e, t, n, r) {
|
|
757
739
|
if (!n.has(e) && (n.add(e), e.reactions !== null))
|
|
758
740
|
for (const i of e.reactions) {
|
|
759
741
|
const o = i.f;
|
|
760
|
-
(o & 2) !== 0 ?
|
|
742
|
+
(o & 2) !== 0 ? Zi(i, t, n, r) : (o & 4194320) !== 0 && (o & 2048) === 0 && Hr(i, t, r) && (j(i, oe), Vr(i));
|
|
761
743
|
}
|
|
762
744
|
}
|
|
763
|
-
function
|
|
745
|
+
function Hr(e, t, n) {
|
|
764
746
|
const r = n.get(e);
|
|
765
747
|
if (r !== void 0) return r;
|
|
766
748
|
if (e.deps !== null) for (const i of e.deps) {
|
|
767
|
-
if (
|
|
768
|
-
if ((i.f & 2) !== 0 &&
|
|
749
|
+
if (Jt.call(t, i)) return !0;
|
|
750
|
+
if ((i.f & 2) !== 0 && Hr(i, t, n))
|
|
769
751
|
return n.set(i, !0), !0;
|
|
770
752
|
}
|
|
771
753
|
return n.set(e, !1), !1;
|
|
772
754
|
}
|
|
773
|
-
function
|
|
774
|
-
|
|
755
|
+
function Vr(e) {
|
|
756
|
+
M.schedule(e);
|
|
775
757
|
}
|
|
776
|
-
function
|
|
758
|
+
function Ji(e, t) {
|
|
777
759
|
if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
|
|
778
760
|
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), j(e, _e);
|
|
779
761
|
for (var n = e.first; n !== null; )
|
|
780
|
-
|
|
762
|
+
Ji(n, t), n = n.next;
|
|
781
763
|
}
|
|
782
764
|
}
|
|
783
|
-
function
|
|
765
|
+
function Qi(e) {
|
|
784
766
|
j(e, _e);
|
|
785
767
|
for (var t = e.first; t !== null; )
|
|
786
|
-
|
|
768
|
+
Qi(t), t = t.next;
|
|
787
769
|
}
|
|
788
|
-
var
|
|
789
|
-
var
|
|
790
|
-
function
|
|
770
|
+
var jn = /* @__PURE__ */ new Set(), Oe = /* @__PURE__ */ new Map();
|
|
771
|
+
var eo = !1;
|
|
772
|
+
function pt(e, t) {
|
|
791
773
|
var n = {
|
|
792
774
|
f: 0,
|
|
793
775
|
v: e,
|
|
794
776
|
reactions: null,
|
|
795
|
-
equals:
|
|
777
|
+
equals: Ii,
|
|
796
778
|
rv: 0,
|
|
797
779
|
wv: 0
|
|
798
780
|
};
|
|
799
781
|
return n;
|
|
800
782
|
}
|
|
801
783
|
// @__NO_SIDE_EFFECTS__
|
|
802
|
-
function
|
|
803
|
-
const n =
|
|
804
|
-
return
|
|
784
|
+
function F(e, t) {
|
|
785
|
+
const n = pt(e, t);
|
|
786
|
+
return po(n), n;
|
|
805
787
|
}
|
|
806
788
|
// @__NO_SIDE_EFFECTS__
|
|
807
|
-
function
|
|
808
|
-
const r =
|
|
809
|
-
if (t || (r.equals =
|
|
789
|
+
function to(e, t = !1, n = !0) {
|
|
790
|
+
const r = pt(e);
|
|
791
|
+
if (t || (r.equals = Pi), zn && n && B !== null && B.l !== null) {
|
|
810
792
|
var i;
|
|
811
|
-
((i =
|
|
793
|
+
((i = B.l).s ?? (i.s = [])).push(r);
|
|
812
794
|
}
|
|
813
795
|
return r;
|
|
814
796
|
}
|
|
815
|
-
function
|
|
816
|
-
|
|
817
|
-
let r = n ?
|
|
818
|
-
return
|
|
797
|
+
function O(e, t, n = !1) {
|
|
798
|
+
x !== null && (!me || (x.f & 131072) !== 0) && fn() && (x.f & 4325394) !== 0 && (ke === null || !ke.has(e)) && Ha();
|
|
799
|
+
let r = n ? ft(t) : t;
|
|
800
|
+
return Mt(e, r, Pn);
|
|
819
801
|
}
|
|
820
|
-
var
|
|
821
|
-
function
|
|
802
|
+
var st = null, $r = 0;
|
|
803
|
+
function Mt(e, t, n = null) {
|
|
822
804
|
if (!e.equals(t)) {
|
|
823
805
|
Fe ? Oe.set(e, t) : Oe.has(e) || Oe.set(e, e.v);
|
|
824
806
|
var r = gt.ensure();
|
|
825
807
|
if (r.capture(e, t), (e.f & 2) !== 0) {
|
|
826
808
|
const i = e;
|
|
827
|
-
(e.f & 2048) !== 0 &&
|
|
809
|
+
(e.f & 2048) !== 0 && Wr(i), ee === null && qr(i);
|
|
828
810
|
}
|
|
829
|
-
e.wv =
|
|
811
|
+
e.wv = bo(), st = null, $r = 0, no(e, oe, n), st = null, fn() && T !== null && (T.f & 1024) !== 0 && (T.f & 96) === 0 && (ve === null ? gs([e]) : ve.push(e)), !r.is_fork && jn.size > 0 && !eo && is();
|
|
830
812
|
}
|
|
831
813
|
return t;
|
|
832
814
|
}
|
|
833
|
-
function
|
|
834
|
-
|
|
835
|
-
for (const e of
|
|
836
|
-
(e.f & 1024) !== 0 && j(e,
|
|
815
|
+
function is() {
|
|
816
|
+
eo = !1;
|
|
817
|
+
for (const e of jn) {
|
|
818
|
+
(e.f & 1024) !== 0 && j(e, tt);
|
|
837
819
|
let t;
|
|
838
820
|
try {
|
|
839
|
-
t =
|
|
821
|
+
t = un(e);
|
|
840
822
|
} catch {
|
|
841
823
|
t = !0;
|
|
842
824
|
}
|
|
843
|
-
t &&
|
|
825
|
+
t && Rt(e);
|
|
844
826
|
}
|
|
845
|
-
|
|
827
|
+
jn.clear();
|
|
846
828
|
}
|
|
847
|
-
function
|
|
848
|
-
|
|
829
|
+
function Zt(e) {
|
|
830
|
+
O(e, e.v + 1);
|
|
849
831
|
}
|
|
850
|
-
function
|
|
832
|
+
function no(e, t, n) {
|
|
851
833
|
var r = e.reactions;
|
|
852
834
|
if (r !== null) {
|
|
853
|
-
var i =
|
|
854
|
-
if (
|
|
855
|
-
if (
|
|
856
|
-
|
|
857
|
-
}
|
|
858
|
-
for (var
|
|
859
|
-
var f = r[
|
|
860
|
-
if (!(!i && f ===
|
|
861
|
-
var
|
|
862
|
-
if (
|
|
863
|
-
else if ((
|
|
864
|
-
var
|
|
865
|
-
|
|
866
|
-
} else if (
|
|
867
|
-
var
|
|
868
|
-
(
|
|
835
|
+
var i = fn(), o = r.length;
|
|
836
|
+
if ($r += o, $r > 1e5 && st === null && (st = /* @__PURE__ */ new Set()), st !== null) {
|
|
837
|
+
if (st.has(e)) return;
|
|
838
|
+
st.add(e);
|
|
839
|
+
}
|
|
840
|
+
for (var s = 0; s < o; s++) {
|
|
841
|
+
var f = r[s], u = f.f;
|
|
842
|
+
if (!(!i && f === T)) {
|
|
843
|
+
var _ = (u & oe) === 0;
|
|
844
|
+
if (_ && j(f, t), (u & 131072) !== 0) jn.add(f);
|
|
845
|
+
else if ((u & 2) !== 0) {
|
|
846
|
+
var p = f;
|
|
847
|
+
ee?.delete(p), no(p, tt, n);
|
|
848
|
+
} else if (_) {
|
|
849
|
+
var d = f;
|
|
850
|
+
(u & 16) !== 0 && Re !== null && Re.add(d), n !== null ? n.push(d) : Vr(d);
|
|
869
851
|
}
|
|
870
852
|
}
|
|
871
853
|
}
|
|
872
854
|
}
|
|
873
855
|
}
|
|
874
|
-
var
|
|
875
|
-
function
|
|
876
|
-
if (typeof e != "object" || e === null ||
|
|
877
|
-
const t =
|
|
878
|
-
if (t !==
|
|
879
|
-
var n = /* @__PURE__ */ new Map(), r =
|
|
880
|
-
if (
|
|
881
|
-
var
|
|
882
|
-
ge(null),
|
|
883
|
-
var b =
|
|
884
|
-
return ge(
|
|
856
|
+
var os = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
857
|
+
function ft(e) {
|
|
858
|
+
if (typeof e != "object" || e === null || Kt in e || Li in e) return e;
|
|
859
|
+
const t = Ri(e);
|
|
860
|
+
if (t !== pa && t !== ga) return e;
|
|
861
|
+
var n = /* @__PURE__ */ new Map(), r = Mi(e), i = /* @__PURE__ */ F(0), o = null, s = dt, f = (d) => {
|
|
862
|
+
if (dt === s) return d();
|
|
863
|
+
var c = x, h = dt;
|
|
864
|
+
ge(null), di(s);
|
|
865
|
+
var b = d();
|
|
866
|
+
return ge(c), di(h), b;
|
|
885
867
|
};
|
|
886
|
-
r && n.set("length", /* @__PURE__ */
|
|
887
|
-
var
|
|
888
|
-
let
|
|
889
|
-
function
|
|
890
|
-
if (!
|
|
891
|
-
|
|
892
|
-
for (const [
|
|
893
|
-
|
|
868
|
+
r && n.set("length", /* @__PURE__ */ F(e.length, o));
|
|
869
|
+
var u = "";
|
|
870
|
+
let _ = !1;
|
|
871
|
+
function p(d) {
|
|
872
|
+
if (!_) {
|
|
873
|
+
_ = !0, u = d, si(i, `${u} version`);
|
|
874
|
+
for (const [c, h] of n) si(h, as(u, c));
|
|
875
|
+
_ = !1;
|
|
894
876
|
}
|
|
895
877
|
}
|
|
896
878
|
return new Proxy(e, {
|
|
897
|
-
defineProperty(
|
|
898
|
-
(!("value" in h) || h.configurable === !1 || h.enumerable === !1 || h.writable === !1) &&
|
|
899
|
-
var b = n.get(
|
|
879
|
+
defineProperty(d, c, h) {
|
|
880
|
+
(!("value" in h) || h.configurable === !1 || h.enumerable === !1 || h.writable === !1) && Wa();
|
|
881
|
+
var b = n.get(c);
|
|
900
882
|
return b === void 0 ? f(() => {
|
|
901
|
-
var
|
|
902
|
-
return n.set(
|
|
903
|
-
}) :
|
|
883
|
+
var y = /* @__PURE__ */ F(h.value, o);
|
|
884
|
+
return n.set(c, y), y;
|
|
885
|
+
}) : O(b, h.value, !0), !0;
|
|
904
886
|
},
|
|
905
|
-
deleteProperty(
|
|
906
|
-
var h = n.get(
|
|
887
|
+
deleteProperty(d, c) {
|
|
888
|
+
var h = n.get(c);
|
|
907
889
|
if (h === void 0) {
|
|
908
|
-
if (
|
|
909
|
-
const b = f(() => /* @__PURE__ */
|
|
910
|
-
n.set(
|
|
890
|
+
if (c in d) {
|
|
891
|
+
const b = f(() => /* @__PURE__ */ F(U, o));
|
|
892
|
+
n.set(c, b), Zt(i);
|
|
911
893
|
}
|
|
912
894
|
} else
|
|
913
|
-
|
|
895
|
+
O(h, U), Zt(i);
|
|
914
896
|
return !0;
|
|
915
897
|
},
|
|
916
|
-
get(
|
|
917
|
-
if (
|
|
918
|
-
var b = n.get(
|
|
919
|
-
if (b === void 0 && (!
|
|
920
|
-
var
|
|
921
|
-
return
|
|
922
|
-
}), n.set(
|
|
923
|
-
var g =
|
|
924
|
-
return g ===
|
|
898
|
+
get(d, c, h) {
|
|
899
|
+
if (c === Kt) return e;
|
|
900
|
+
var b = n.get(c), y = c in d;
|
|
901
|
+
if (b === void 0 && (!y || ct(d, c)?.writable) && (b = f(() => {
|
|
902
|
+
var m = ft(y ? d[c] : U), L = /* @__PURE__ */ F(m, o);
|
|
903
|
+
return L;
|
|
904
|
+
}), n.set(c, b)), b !== void 0) {
|
|
905
|
+
var g = a(b);
|
|
906
|
+
return g === U ? void 0 : g;
|
|
925
907
|
}
|
|
926
|
-
return Reflect.get(
|
|
908
|
+
return Reflect.get(d, c, h);
|
|
927
909
|
},
|
|
928
|
-
getOwnPropertyDescriptor(
|
|
929
|
-
this.has?.(
|
|
930
|
-
var h = Reflect.getOwnPropertyDescriptor(
|
|
910
|
+
getOwnPropertyDescriptor(d, c) {
|
|
911
|
+
this.has?.(d, c);
|
|
912
|
+
var h = Reflect.getOwnPropertyDescriptor(d, c), b = n.get(c);
|
|
931
913
|
if (b !== void 0) {
|
|
932
|
-
var
|
|
933
|
-
if (
|
|
934
|
-
if (h && "value" in h) h.value =
|
|
914
|
+
var y = a(b);
|
|
915
|
+
if (y === U) return;
|
|
916
|
+
if (h && "value" in h) h.value = y;
|
|
935
917
|
else return {
|
|
936
918
|
enumerable: !0,
|
|
937
919
|
configurable: !0,
|
|
938
|
-
value:
|
|
920
|
+
value: y,
|
|
939
921
|
writable: !0
|
|
940
922
|
};
|
|
941
923
|
}
|
|
942
924
|
return h;
|
|
943
925
|
},
|
|
944
|
-
has(
|
|
945
|
-
if (
|
|
946
|
-
var h = n.get(
|
|
947
|
-
return (h !== void 0 ||
|
|
948
|
-
var
|
|
926
|
+
has(d, c) {
|
|
927
|
+
if (c === Kt) return !0;
|
|
928
|
+
var h = n.get(c), b = h !== void 0 && h.v !== U || Reflect.has(d, c);
|
|
929
|
+
return (h !== void 0 || (T !== null || x !== null) && (!b || ct(d, c)?.writable)) && (h === void 0 && (h = f(() => {
|
|
930
|
+
var y = b ? ft(d[c]) : U, g = /* @__PURE__ */ F(y, o);
|
|
949
931
|
return g;
|
|
950
|
-
}), n.set(
|
|
932
|
+
}), n.set(c, h)), a(h) === U) ? !1 : b;
|
|
951
933
|
},
|
|
952
|
-
set(
|
|
953
|
-
var
|
|
954
|
-
if (r &&
|
|
955
|
-
var
|
|
956
|
-
|
|
934
|
+
set(d, c, h, b) {
|
|
935
|
+
var y = n.get(c), g = c in d;
|
|
936
|
+
if (r && c === "length") for (var m = h; m < y.v; m += 1) {
|
|
937
|
+
var L = n.get(m + "");
|
|
938
|
+
L !== void 0 ? O(L, U) : m in d && (L = f(() => /* @__PURE__ */ F(U, o)), n.set(m + "", L));
|
|
957
939
|
}
|
|
958
|
-
if (
|
|
959
|
-
(!g ||
|
|
940
|
+
if (y === void 0)
|
|
941
|
+
(!g || ct(d, c)?.writable) && (y = f(() => /* @__PURE__ */ F(void 0, o)), O(y, ft(h)), n.set(c, y));
|
|
960
942
|
else {
|
|
961
|
-
g =
|
|
962
|
-
var
|
|
963
|
-
|
|
943
|
+
g = y.v !== U;
|
|
944
|
+
var H = f(() => ft(h));
|
|
945
|
+
O(y, H);
|
|
964
946
|
}
|
|
965
|
-
var
|
|
966
|
-
if (
|
|
967
|
-
if (r && typeof
|
|
968
|
-
var
|
|
969
|
-
Number.isInteger(
|
|
947
|
+
var w = Reflect.getOwnPropertyDescriptor(d, c);
|
|
948
|
+
if (w?.set && w.set.call(b, h), !g) {
|
|
949
|
+
if (r && typeof c == "string") {
|
|
950
|
+
var D = n.get("length"), W = Number(c);
|
|
951
|
+
Number.isInteger(W) && W >= D.v && O(D, W + 1);
|
|
970
952
|
}
|
|
971
|
-
|
|
953
|
+
Zt(i);
|
|
972
954
|
}
|
|
973
955
|
return !0;
|
|
974
956
|
},
|
|
975
|
-
ownKeys(
|
|
976
|
-
|
|
977
|
-
var
|
|
978
|
-
var g = n.get(
|
|
979
|
-
return g === void 0 || g.v !==
|
|
957
|
+
ownKeys(d) {
|
|
958
|
+
a(i);
|
|
959
|
+
var c = Reflect.ownKeys(d).filter((y) => {
|
|
960
|
+
var g = n.get(y);
|
|
961
|
+
return g === void 0 || g.v !== U;
|
|
980
962
|
});
|
|
981
|
-
for (var [h, b] of n) b.v !==
|
|
982
|
-
return
|
|
963
|
+
for (var [h, b] of n) b.v !== U && !(h in d) && c.push(h);
|
|
964
|
+
return c;
|
|
983
965
|
},
|
|
984
966
|
setPrototypeOf() {
|
|
985
|
-
|
|
967
|
+
ja();
|
|
986
968
|
}
|
|
987
969
|
});
|
|
988
970
|
}
|
|
989
|
-
function
|
|
990
|
-
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` :
|
|
971
|
+
function as(e, t) {
|
|
972
|
+
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : os.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
991
973
|
}
|
|
992
|
-
var
|
|
993
|
-
function
|
|
994
|
-
if (
|
|
995
|
-
|
|
974
|
+
var ui, ss, ro, io, oo;
|
|
975
|
+
function Er() {
|
|
976
|
+
if (ui === void 0) {
|
|
977
|
+
ui = window, ss = document, ro = /Firefox/.test(navigator.userAgent);
|
|
996
978
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
997
|
-
|
|
979
|
+
io = ct(t, "firstChild").get, oo = ct(t, "nextSibling").get, oi(e) && (e[wr] = void 0, e[br] = null, e[mr] = void 0, e.__e = void 0), oi(n) && (n[An] = void 0);
|
|
998
980
|
}
|
|
999
981
|
}
|
|
1000
|
-
function
|
|
982
|
+
function ue(e = "") {
|
|
1001
983
|
return document.createTextNode(e);
|
|
1002
984
|
}
|
|
1003
985
|
// @__NO_SIDE_EFFECTS__
|
|
1004
|
-
function
|
|
1005
|
-
return
|
|
986
|
+
function fe(e) {
|
|
987
|
+
return io.call(e);
|
|
1006
988
|
}
|
|
1007
989
|
// @__NO_SIDE_EFFECTS__
|
|
1008
990
|
function Te(e) {
|
|
1009
|
-
return
|
|
991
|
+
return oo.call(e);
|
|
1010
992
|
}
|
|
1011
|
-
function
|
|
1012
|
-
if (!
|
|
1013
|
-
var n = /* @__PURE__ */
|
|
1014
|
-
if (n === null) n = C.appendChild(
|
|
993
|
+
function Mn(e, t) {
|
|
994
|
+
if (!A) return /* @__PURE__ */ fe(e);
|
|
995
|
+
var n = /* @__PURE__ */ fe(C);
|
|
996
|
+
if (n === null) n = C.appendChild(ue());
|
|
1015
997
|
else if (t && n.nodeType !== 3) {
|
|
1016
|
-
var r =
|
|
1017
|
-
return n?.before(r),
|
|
998
|
+
var r = ue();
|
|
999
|
+
return n?.before(r), K(r), r;
|
|
1018
1000
|
}
|
|
1019
|
-
return t &&
|
|
1001
|
+
return t && Yn(n), K(n), n;
|
|
1020
1002
|
}
|
|
1021
|
-
function
|
|
1022
|
-
if (!
|
|
1023
|
-
var n = /* @__PURE__ */
|
|
1003
|
+
function yn(e, t = !1) {
|
|
1004
|
+
if (!A) {
|
|
1005
|
+
var n = /* @__PURE__ */ fe(e);
|
|
1024
1006
|
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Te(n) : n;
|
|
1025
1007
|
}
|
|
1026
1008
|
if (t) {
|
|
1027
1009
|
if (C?.nodeType !== 3) {
|
|
1028
|
-
var r =
|
|
1029
|
-
return C?.before(r),
|
|
1010
|
+
var r = ue();
|
|
1011
|
+
return C?.before(r), K(r), r;
|
|
1030
1012
|
}
|
|
1031
|
-
|
|
1013
|
+
Yn(C);
|
|
1032
1014
|
}
|
|
1033
1015
|
return C;
|
|
1034
1016
|
}
|
|
1035
|
-
function
|
|
1036
|
-
if (!
|
|
1037
|
-
var n =
|
|
1038
|
-
return
|
|
1017
|
+
function sr(e, t = !1) {
|
|
1018
|
+
if (!A) return /* @__PURE__ */ fe(e);
|
|
1019
|
+
var n = Mn(e, t);
|
|
1020
|
+
return Vt(e), n;
|
|
1039
1021
|
}
|
|
1040
1022
|
function xe(e, t = 1, n = !1) {
|
|
1041
|
-
let r =
|
|
1023
|
+
let r = A ? C : e;
|
|
1042
1024
|
for (var i; t--; )
|
|
1043
1025
|
i = r, r = /* @__PURE__ */ Te(r);
|
|
1044
|
-
if (!
|
|
1026
|
+
if (!A) return r;
|
|
1045
1027
|
if (n) {
|
|
1046
1028
|
if (r?.nodeType !== 3) {
|
|
1047
|
-
var o =
|
|
1048
|
-
return r === null ? i?.after(o) : r.before(o),
|
|
1029
|
+
var o = ue();
|
|
1030
|
+
return r === null ? i?.after(o) : r.before(o), K(o), o;
|
|
1049
1031
|
}
|
|
1050
|
-
|
|
1032
|
+
Yn(r);
|
|
1051
1033
|
}
|
|
1052
|
-
return
|
|
1034
|
+
return K(r), r;
|
|
1053
1035
|
}
|
|
1054
|
-
function
|
|
1036
|
+
function ao(e) {
|
|
1055
1037
|
e.textContent = "";
|
|
1056
1038
|
}
|
|
1057
|
-
function
|
|
1058
|
-
return !Be || Re !== null ? !1 : (
|
|
1039
|
+
function so() {
|
|
1040
|
+
return !Be || Re !== null ? !1 : (T.f & Lr) !== 0;
|
|
1059
1041
|
}
|
|
1060
|
-
function
|
|
1042
|
+
function Gn(e, t, n) {
|
|
1061
1043
|
return t == null || t === "http://www.w3.org/1999/xhtml" ? n ? document.createElement(e, { is: n }) : document.createElement(e) : n ? document.createElementNS(t, e, { is: n }) : document.createElementNS(t, e);
|
|
1062
1044
|
}
|
|
1063
|
-
function
|
|
1045
|
+
function Yn(e) {
|
|
1064
1046
|
if (e.nodeValue.length < 65536) return;
|
|
1065
1047
|
let t = e.nextSibling;
|
|
1066
1048
|
for (; t !== null && t.nodeType === 3; )
|
|
1067
1049
|
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1068
1050
|
}
|
|
1069
|
-
function
|
|
1070
|
-
var t =
|
|
1051
|
+
function ls(e) {
|
|
1052
|
+
var t = T;
|
|
1071
1053
|
if (t === null)
|
|
1072
|
-
return
|
|
1054
|
+
return x.f |= On, e;
|
|
1073
1055
|
if ((t.f & 32768) === 0 && (t.f & 4) === 0)
|
|
1074
1056
|
throw e;
|
|
1075
1057
|
Le(e, t);
|
|
@@ -1092,21 +1074,21 @@ function Le(e, t) {
|
|
|
1092
1074
|
throw e;
|
|
1093
1075
|
}
|
|
1094
1076
|
}
|
|
1095
|
-
function
|
|
1096
|
-
|
|
1077
|
+
function fs(e) {
|
|
1078
|
+
T === null && (x === null && Ia(e), Na()), Fe && La(e);
|
|
1097
1079
|
}
|
|
1098
|
-
function
|
|
1080
|
+
function us(e, t) {
|
|
1099
1081
|
var n = t.last;
|
|
1100
1082
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1101
1083
|
}
|
|
1102
|
-
function
|
|
1103
|
-
var n =
|
|
1104
|
-
n !== null && (n.f & 8192) !== 0 && (e |=
|
|
1084
|
+
function Ie(e, t) {
|
|
1085
|
+
var n = T;
|
|
1086
|
+
n !== null && (n.f & 8192) !== 0 && (e |= Or);
|
|
1105
1087
|
var r = {
|
|
1106
|
-
ctx:
|
|
1088
|
+
ctx: B,
|
|
1107
1089
|
deps: null,
|
|
1108
1090
|
nodes: null,
|
|
1109
|
-
f: e |
|
|
1091
|
+
f: e | oe | 512,
|
|
1110
1092
|
first: null,
|
|
1111
1093
|
fn: t,
|
|
1112
1094
|
last: null,
|
|
@@ -1118,431 +1100,431 @@ function Pe(e, t) {
|
|
|
1118
1100
|
wv: 0,
|
|
1119
1101
|
ac: null
|
|
1120
1102
|
};
|
|
1121
|
-
|
|
1103
|
+
M?.register_created_effect(r);
|
|
1122
1104
|
var i = r;
|
|
1123
1105
|
if ((e & 4) !== 0)
|
|
1124
|
-
|
|
1106
|
+
nn !== null ? nn.push(r) : gt.ensure().schedule(r);
|
|
1125
1107
|
else if (t !== null) {
|
|
1126
1108
|
try {
|
|
1127
|
-
|
|
1128
|
-
} catch (
|
|
1129
|
-
throw
|
|
1109
|
+
Rt(r);
|
|
1110
|
+
} catch (s) {
|
|
1111
|
+
throw te(r), s;
|
|
1130
1112
|
}
|
|
1131
|
-
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |=
|
|
1113
|
+
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |= Nr));
|
|
1132
1114
|
}
|
|
1133
|
-
if (i !== null && (i.parent = n, n !== null &&
|
|
1134
|
-
var o =
|
|
1115
|
+
if (i !== null && (i.parent = n, n !== null && us(i, n), x !== null && (x.f & 2) !== 0 && (e & 64) === 0)) {
|
|
1116
|
+
var o = x;
|
|
1135
1117
|
(o.effects ?? (o.effects = [])).push(i);
|
|
1136
1118
|
}
|
|
1137
1119
|
return r;
|
|
1138
1120
|
}
|
|
1139
|
-
function
|
|
1140
|
-
return
|
|
1121
|
+
function Fr() {
|
|
1122
|
+
return x !== null && !me;
|
|
1141
1123
|
}
|
|
1142
|
-
function
|
|
1143
|
-
const t =
|
|
1124
|
+
function cs(e) {
|
|
1125
|
+
const t = Ie(8, null);
|
|
1144
1126
|
return j(t, _e), t.teardown = e, t;
|
|
1145
1127
|
}
|
|
1146
|
-
function
|
|
1147
|
-
|
|
1148
|
-
var t =
|
|
1149
|
-
if (!
|
|
1150
|
-
var n =
|
|
1128
|
+
function Wt(e) {
|
|
1129
|
+
fs("$effect");
|
|
1130
|
+
var t = T.f;
|
|
1131
|
+
if (!x && (t & 32) !== 0 && B !== null && !B.i) {
|
|
1132
|
+
var n = B;
|
|
1151
1133
|
(n.e ?? (n.e = [])).push(e);
|
|
1152
|
-
} else return
|
|
1134
|
+
} else return lo(e);
|
|
1153
1135
|
}
|
|
1154
|
-
function
|
|
1155
|
-
return
|
|
1136
|
+
function lo(e) {
|
|
1137
|
+
return Ie(4 | ka, e);
|
|
1156
1138
|
}
|
|
1157
|
-
function
|
|
1139
|
+
function ds(e) {
|
|
1158
1140
|
gt.ensure();
|
|
1159
|
-
const t =
|
|
1141
|
+
const t = Ie(64 | Ct, e);
|
|
1160
1142
|
return () => {
|
|
1161
|
-
|
|
1143
|
+
te(t);
|
|
1162
1144
|
};
|
|
1163
1145
|
}
|
|
1164
|
-
function
|
|
1146
|
+
function hs(e) {
|
|
1165
1147
|
gt.ensure();
|
|
1166
|
-
const t =
|
|
1148
|
+
const t = Ie(64 | Ct, e);
|
|
1167
1149
|
return (n = {}) => new Promise((r) => {
|
|
1168
1150
|
n.outro ? bt(t, () => {
|
|
1169
|
-
|
|
1170
|
-
}) : (
|
|
1151
|
+
te(t), r(void 0);
|
|
1152
|
+
}) : (te(t), r(void 0));
|
|
1171
1153
|
});
|
|
1172
1154
|
}
|
|
1173
|
-
function
|
|
1174
|
-
return
|
|
1155
|
+
function fo(e) {
|
|
1156
|
+
return Ie(4, e);
|
|
1175
1157
|
}
|
|
1176
|
-
function
|
|
1177
|
-
return
|
|
1158
|
+
function vs(e) {
|
|
1159
|
+
return Ie($a | Ct, e);
|
|
1178
1160
|
}
|
|
1179
|
-
function
|
|
1180
|
-
return
|
|
1161
|
+
function Br(e, t = 0) {
|
|
1162
|
+
return Ie(8 | t, e);
|
|
1181
1163
|
}
|
|
1182
1164
|
function We(e, t = [], n = [], r = []) {
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
e(...i.map(
|
|
1165
|
+
Ua(r, t, n, (i) => {
|
|
1166
|
+
Ie(8, () => {
|
|
1167
|
+
e(...i.map(a));
|
|
1186
1168
|
});
|
|
1187
1169
|
});
|
|
1188
1170
|
}
|
|
1189
|
-
function
|
|
1190
|
-
var n =
|
|
1171
|
+
function zr(e, t = 0) {
|
|
1172
|
+
var n = Ie(16 | t, e);
|
|
1191
1173
|
return n;
|
|
1192
1174
|
}
|
|
1193
1175
|
function pe(e) {
|
|
1194
|
-
return
|
|
1176
|
+
return Ie(32 | Ct, e);
|
|
1195
1177
|
}
|
|
1196
|
-
function
|
|
1178
|
+
function uo(e) {
|
|
1197
1179
|
var t = e.teardown;
|
|
1198
1180
|
if (t !== null) {
|
|
1199
|
-
const n = Fe, r =
|
|
1200
|
-
|
|
1181
|
+
const n = Fe, r = x;
|
|
1182
|
+
ci(!0), ge(null);
|
|
1201
1183
|
try {
|
|
1202
1184
|
t.call(null);
|
|
1203
1185
|
} catch (i) {
|
|
1204
1186
|
Le(i, e.parent);
|
|
1205
1187
|
} finally {
|
|
1206
|
-
|
|
1188
|
+
ci(n), ge(r);
|
|
1207
1189
|
}
|
|
1208
1190
|
}
|
|
1209
1191
|
}
|
|
1210
|
-
function
|
|
1192
|
+
function Ur(e, t = !1) {
|
|
1211
1193
|
var n = e.first;
|
|
1212
1194
|
for (e.first = e.last = null; n !== null; ) {
|
|
1213
1195
|
const i = n.ac;
|
|
1214
|
-
i !== null &&
|
|
1215
|
-
i.abort(
|
|
1196
|
+
i !== null && Un(() => {
|
|
1197
|
+
i.abort(sn);
|
|
1216
1198
|
});
|
|
1217
1199
|
var r = n.next;
|
|
1218
|
-
(n.f & 64) !== 0 ? n.parent = null :
|
|
1200
|
+
(n.f & 64) !== 0 ? n.parent = null : te(n, t), n = r;
|
|
1219
1201
|
}
|
|
1220
1202
|
}
|
|
1221
|
-
function
|
|
1203
|
+
function _s(e) {
|
|
1222
1204
|
for (var t = e.first; t !== null; ) {
|
|
1223
1205
|
var n = t.next;
|
|
1224
|
-
(t.f & 32) === 0 &&
|
|
1206
|
+
(t.f & 32) === 0 && te(t), t = n;
|
|
1225
1207
|
}
|
|
1226
1208
|
}
|
|
1227
|
-
function
|
|
1209
|
+
function te(e, t = !0) {
|
|
1228
1210
|
var n = !1;
|
|
1229
|
-
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (
|
|
1211
|
+
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (co(e.nodes.start, e.nodes.end), n = !0), e.f |= gr, Ur(e, t && !n), on(e, 0);
|
|
1230
1212
|
var r = e.nodes && e.nodes.t;
|
|
1231
1213
|
if (r !== null) for (const o of r) o.stop();
|
|
1232
|
-
|
|
1214
|
+
uo(e), e.f ^= gr, e.f |= Oi;
|
|
1233
1215
|
var i = e.parent;
|
|
1234
|
-
i !== null && i.first !== null &&
|
|
1216
|
+
i !== null && i.first !== null && ho(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1235
1217
|
}
|
|
1236
|
-
function
|
|
1218
|
+
function co(e, t) {
|
|
1237
1219
|
for (; e !== null; ) {
|
|
1238
1220
|
var n = e === t ? null : /* @__PURE__ */ Te(e);
|
|
1239
1221
|
e.remove(), e = n;
|
|
1240
1222
|
}
|
|
1241
1223
|
}
|
|
1242
|
-
function
|
|
1224
|
+
function ho(e) {
|
|
1243
1225
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1244
1226
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1245
1227
|
}
|
|
1246
1228
|
function bt(e, t, n = !0) {
|
|
1247
1229
|
var r = [];
|
|
1248
|
-
e.f |= 256,
|
|
1230
|
+
e.f |= 256, vo(e, r, !0);
|
|
1249
1231
|
var i = () => {
|
|
1250
|
-
n &&
|
|
1232
|
+
n && te(e), t && t();
|
|
1251
1233
|
}, o = r.length;
|
|
1252
1234
|
if (o > 0) {
|
|
1253
|
-
var
|
|
1254
|
-
for (var f of r) f.out(
|
|
1235
|
+
var s = () => --o || i();
|
|
1236
|
+
for (var f of r) f.out(s);
|
|
1255
1237
|
} else i();
|
|
1256
1238
|
}
|
|
1257
|
-
function
|
|
1239
|
+
function vo(e, t, n) {
|
|
1258
1240
|
if ((e.f & 8192) === 0) {
|
|
1259
|
-
e.f ^=
|
|
1241
|
+
e.f ^= Or;
|
|
1260
1242
|
var r = e.nodes && e.nodes.t;
|
|
1261
1243
|
if (r !== null)
|
|
1262
1244
|
for (const f of r) (f.is_global || n) && t.push(f);
|
|
1263
1245
|
for (var i = e.first; i !== null; ) {
|
|
1264
1246
|
var o = i.next;
|
|
1265
1247
|
if ((i.f & 64) === 0) {
|
|
1266
|
-
var
|
|
1267
|
-
|
|
1248
|
+
var s = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1249
|
+
vo(i, t, s ? n : !1);
|
|
1268
1250
|
}
|
|
1269
1251
|
i = o;
|
|
1270
1252
|
}
|
|
1271
1253
|
}
|
|
1272
1254
|
}
|
|
1273
|
-
function
|
|
1274
|
-
e.f &= -257,
|
|
1255
|
+
function Hn(e) {
|
|
1256
|
+
e.f &= -257, _o(e, !0);
|
|
1275
1257
|
}
|
|
1276
|
-
function
|
|
1258
|
+
function _o(e, t) {
|
|
1277
1259
|
if ((e.f & 256) === 0 && (e.f & 8192) !== 0) {
|
|
1278
|
-
e.f ^=
|
|
1260
|
+
e.f ^= Or, (e.f & 1024) === 0 && (j(e, oe), gt.ensure().schedule(e));
|
|
1279
1261
|
for (var n = e.first; n !== null; ) {
|
|
1280
1262
|
var r = n.next, i = (n.f & 65536) !== 0 || (n.f & 32) !== 0;
|
|
1281
|
-
|
|
1263
|
+
_o(n, i ? t : !1), n = r;
|
|
1282
1264
|
}
|
|
1283
1265
|
var o = e.nodes && e.nodes.t;
|
|
1284
1266
|
if (o !== null)
|
|
1285
|
-
for (const
|
|
1267
|
+
for (const s of o) (s.is_global || t) && s.in();
|
|
1286
1268
|
}
|
|
1287
1269
|
}
|
|
1288
|
-
function
|
|
1270
|
+
function Gr(e, t) {
|
|
1289
1271
|
if (e.nodes)
|
|
1290
1272
|
for (var n = e.nodes.start, r = e.nodes.end; n !== null; ) {
|
|
1291
1273
|
var i = n === r ? null : /* @__PURE__ */ Te(n);
|
|
1292
1274
|
t.append(n), n = i;
|
|
1293
1275
|
}
|
|
1294
1276
|
}
|
|
1295
|
-
var
|
|
1296
|
-
function
|
|
1277
|
+
var ps = null, Fe = !1;
|
|
1278
|
+
function ci(e) {
|
|
1297
1279
|
Fe = e;
|
|
1298
1280
|
}
|
|
1299
|
-
var
|
|
1281
|
+
var x = null, me = !1;
|
|
1300
1282
|
function ge(e) {
|
|
1301
|
-
|
|
1283
|
+
x = e;
|
|
1302
1284
|
}
|
|
1303
|
-
var
|
|
1285
|
+
var T = null;
|
|
1304
1286
|
function Ne(e) {
|
|
1305
|
-
|
|
1287
|
+
T = e;
|
|
1306
1288
|
}
|
|
1307
|
-
var
|
|
1308
|
-
function
|
|
1309
|
-
|
|
1289
|
+
var ke = null;
|
|
1290
|
+
function po(e) {
|
|
1291
|
+
x !== null && (!Be && (x.f & 2097152) !== 0 || (x.f & 2) !== 0) && (ke ?? (ke = /* @__PURE__ */ new Set())).add(e);
|
|
1310
1292
|
}
|
|
1311
|
-
var re = null,
|
|
1312
|
-
function
|
|
1293
|
+
var re = null, le = 0, ve = null;
|
|
1294
|
+
function gs(e) {
|
|
1313
1295
|
ve = e;
|
|
1314
1296
|
}
|
|
1315
|
-
var
|
|
1316
|
-
function
|
|
1317
|
-
|
|
1297
|
+
var go = 1, ut = 0, dt = ut;
|
|
1298
|
+
function di(e) {
|
|
1299
|
+
dt = e;
|
|
1318
1300
|
}
|
|
1319
|
-
function
|
|
1320
|
-
return ++
|
|
1301
|
+
function bo() {
|
|
1302
|
+
return ++go;
|
|
1321
1303
|
}
|
|
1322
|
-
function
|
|
1304
|
+
function un(e) {
|
|
1323
1305
|
var t = e.f;
|
|
1324
1306
|
if ((t & 2048) !== 0) return !0;
|
|
1325
1307
|
if ((t & 4096) !== 0) {
|
|
1326
1308
|
for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
|
|
1327
1309
|
var o = n[i];
|
|
1328
|
-
if (
|
|
1310
|
+
if (un(o) && Vi(o), o.wv > e.wv) return !0;
|
|
1329
1311
|
}
|
|
1330
|
-
(t & 512) !== 0 &&
|
|
1312
|
+
(t & 512) !== 0 && ee === null && j(e, _e);
|
|
1331
1313
|
}
|
|
1332
1314
|
return !1;
|
|
1333
1315
|
}
|
|
1334
|
-
function
|
|
1316
|
+
function wo(e, t, n = !0) {
|
|
1335
1317
|
var r = e.reactions;
|
|
1336
|
-
if (r !== null && !(!Be &&
|
|
1318
|
+
if (r !== null && !(!Be && ke !== null && ke.has(e)))
|
|
1337
1319
|
for (var i = 0; i < r.length; i++) {
|
|
1338
1320
|
var o = r[i];
|
|
1339
|
-
(o.f & 2) !== 0 ?
|
|
1321
|
+
(o.f & 2) !== 0 ? wo(o, t, !1) : t === o && (n ? j(o, oe) : (o.f & 1024) !== 0 && j(o, tt), Vr(o));
|
|
1340
1322
|
}
|
|
1341
1323
|
}
|
|
1342
|
-
function
|
|
1343
|
-
var t = re, n =
|
|
1344
|
-
re = null,
|
|
1345
|
-
e.ac.abort(
|
|
1324
|
+
function mo(e) {
|
|
1325
|
+
var t = re, n = le, r = ve, i = x, o = ke, s = B, f = me, u = dt, _ = e.f;
|
|
1326
|
+
re = null, le = 0, ve = null, x = (_ & 96) === 0 ? e : null, ke = null, xt(e.ctx), me = !1, dt = ++ut, e.ac !== null && (Un(() => {
|
|
1327
|
+
e.ac.abort(sn);
|
|
1346
1328
|
}), e.ac = null);
|
|
1347
1329
|
try {
|
|
1348
|
-
e.f |=
|
|
1349
|
-
var
|
|
1350
|
-
e.f |=
|
|
1351
|
-
var
|
|
1352
|
-
if (
|
|
1330
|
+
e.f |= ai;
|
|
1331
|
+
var p = e.fn, d = p();
|
|
1332
|
+
e.f |= Lr;
|
|
1333
|
+
var c = hi(e);
|
|
1334
|
+
if (fn() && ve !== null && !me && c !== null && (e.f & 6146) === 0) for (var h = 0; h < ve.length; h++) wo(ve[h], e);
|
|
1353
1335
|
if (i !== null && i !== e) {
|
|
1354
|
-
if (
|
|
1355
|
-
if (t !== null) for (const b of t) b.rv =
|
|
1336
|
+
if (ut++, i.deps !== null) for (let b = 0; b < n; b += 1) i.deps[b].rv = ut;
|
|
1337
|
+
if (t !== null) for (const b of t) b.rv = ut;
|
|
1356
1338
|
ve !== null && (r === null ? r = ve : r.push(...ve));
|
|
1357
1339
|
}
|
|
1358
|
-
return (e.f & 8388608) !== 0 && (e.f ^=
|
|
1340
|
+
return (e.f & 8388608) !== 0 && (e.f ^= On), d;
|
|
1359
1341
|
} catch (b) {
|
|
1360
|
-
return
|
|
1342
|
+
return hi(e), ls(b);
|
|
1361
1343
|
} finally {
|
|
1362
|
-
e.f ^=
|
|
1344
|
+
e.f ^= ai, re = t, le = n, ve = r, x = i, ke = o, xt(s), me = f, dt = u;
|
|
1363
1345
|
}
|
|
1364
1346
|
}
|
|
1365
|
-
function
|
|
1366
|
-
var t = e.deps, n =
|
|
1347
|
+
function hi(e) {
|
|
1348
|
+
var t = e.deps, n = M?.is_fork;
|
|
1367
1349
|
if (re !== null) {
|
|
1368
1350
|
var r;
|
|
1369
|
-
if (n ||
|
|
1370
|
-
for (t.length =
|
|
1351
|
+
if (n || on(e, le), t !== null && le > 0)
|
|
1352
|
+
for (t.length = le + re.length, r = 0; r < re.length; r++) t[le + r] = re[r];
|
|
1371
1353
|
else e.deps = t = re;
|
|
1372
|
-
if (
|
|
1354
|
+
if (Fr() && (e.f & 512) !== 0) for (r = le; r < t.length; r++) {
|
|
1373
1355
|
var i;
|
|
1374
1356
|
((i = t[r]).reactions ?? (i.reactions = [])).push(e);
|
|
1375
1357
|
}
|
|
1376
|
-
} else !n && t !== null &&
|
|
1358
|
+
} else !n && t !== null && le < t.length && (on(e, le), t.length = le);
|
|
1377
1359
|
return t;
|
|
1378
1360
|
}
|
|
1379
|
-
function
|
|
1361
|
+
function bs(e, t) {
|
|
1380
1362
|
let n = t.reactions;
|
|
1381
1363
|
if (n !== null) {
|
|
1382
|
-
var r =
|
|
1364
|
+
var r = va.call(n, e);
|
|
1383
1365
|
if (r !== -1) {
|
|
1384
1366
|
var i = n.length - 1;
|
|
1385
1367
|
i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
|
|
1386
1368
|
}
|
|
1387
1369
|
}
|
|
1388
|
-
if (n === null && (t.f & 2) !== 0 && (re === null || !
|
|
1370
|
+
if (n === null && (t.f & 2) !== 0 && (re === null || !Jt.call(re, t))) {
|
|
1389
1371
|
var o = t;
|
|
1390
|
-
(o.f & 512) !== 0 && (o.f ^= 512), o.v !==
|
|
1391
|
-
o.ac.abort(
|
|
1392
|
-
}),
|
|
1372
|
+
(o.f & 512) !== 0 && (o.f ^= 512), o.v !== U && qr(o), o.ac !== null && Un(() => {
|
|
1373
|
+
o.ac.abort(sn), o.ac = null, j(o, oe);
|
|
1374
|
+
}), Za(o), on(o, 0);
|
|
1393
1375
|
}
|
|
1394
1376
|
}
|
|
1395
|
-
function
|
|
1377
|
+
function on(e, t) {
|
|
1396
1378
|
var n = e.deps;
|
|
1397
1379
|
if (n !== null)
|
|
1398
|
-
for (var r = t; r < n.length; r++)
|
|
1380
|
+
for (var r = t; r < n.length; r++) bs(e, n[r]);
|
|
1399
1381
|
}
|
|
1400
|
-
function
|
|
1382
|
+
function Rt(e) {
|
|
1401
1383
|
var t = e.f;
|
|
1402
1384
|
if ((t & 16384) === 0) {
|
|
1403
1385
|
j(e, _e);
|
|
1404
|
-
var n =
|
|
1405
|
-
if (
|
|
1386
|
+
var n = T;
|
|
1387
|
+
if (T = e, 0)
|
|
1406
1388
|
var r, i;
|
|
1407
1389
|
try {
|
|
1408
|
-
(t & 16777232) !== 0 ?
|
|
1409
|
-
var o =
|
|
1410
|
-
if (e.teardown = typeof o == "function" ? o : null, e.wv =
|
|
1411
|
-
for (var
|
|
1390
|
+
(t & 16777232) !== 0 ? _s(e) : Ur(e), uo(e);
|
|
1391
|
+
var o = mo(e);
|
|
1392
|
+
if (e.teardown = typeof o == "function" ? o : null, e.wv = go, 0)
|
|
1393
|
+
for (var s of e.deps) ;
|
|
1412
1394
|
} finally {
|
|
1413
|
-
|
|
1395
|
+
T = n;
|
|
1414
1396
|
}
|
|
1415
1397
|
}
|
|
1416
1398
|
}
|
|
1417
|
-
async function
|
|
1399
|
+
async function ws() {
|
|
1418
1400
|
if (Be) return new Promise((e) => {
|
|
1419
1401
|
requestAnimationFrame(() => e()), setTimeout(() => e());
|
|
1420
1402
|
});
|
|
1421
|
-
await Promise.resolve(),
|
|
1403
|
+
await Promise.resolve(), rn();
|
|
1422
1404
|
}
|
|
1423
|
-
function
|
|
1405
|
+
function a(e) {
|
|
1424
1406
|
var t = (e.f & 2) !== 0;
|
|
1425
|
-
if (
|
|
1426
|
-
var n =
|
|
1427
|
-
if ((
|
|
1428
|
-
e.rv <
|
|
1407
|
+
if (ps?.add(e), x !== null && !me && !(T !== null && (T.f & 16384) !== 0) && (ke === null || !ke.has(e))) {
|
|
1408
|
+
var n = x.deps;
|
|
1409
|
+
if ((x.f & 2097152) !== 0)
|
|
1410
|
+
e.rv < ut && (e.rv = ut, re === null && n !== null && n[le] === e ? le++ : re === null ? re = [e] : re.push(e));
|
|
1429
1411
|
else {
|
|
1430
1412
|
var r;
|
|
1431
|
-
(r =
|
|
1413
|
+
(r = x).deps ?? (r.deps = []), Jt.call(x.deps, e) || x.deps.push(e);
|
|
1432
1414
|
var i = e.reactions;
|
|
1433
|
-
i === null ? e.reactions = [
|
|
1415
|
+
i === null ? e.reactions = [x] : Jt.call(i, x) || i.push(x);
|
|
1434
1416
|
}
|
|
1435
1417
|
}
|
|
1436
1418
|
if (0) {
|
|
1437
|
-
if (!
|
|
1419
|
+
if (!me && reactivity_loss_tracker && M === null && Tt === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
|
|
1438
1420
|
var o;
|
|
1439
|
-
if (tracing_mode_flag && !
|
|
1421
|
+
if (tracing_mode_flag && !me && tracing_expressions !== null && x !== null && tracing_expressions.reaction === x && !e.trace) {
|
|
1440
1422
|
if (o)
|
|
1441
|
-
var
|
|
1423
|
+
var s, f;
|
|
1442
1424
|
}
|
|
1443
1425
|
}
|
|
1444
1426
|
if (Fe && Oe.has(e)) return Oe.get(e);
|
|
1445
1427
|
if (t) {
|
|
1446
|
-
var
|
|
1428
|
+
var u = e;
|
|
1447
1429
|
if (Fe) {
|
|
1448
|
-
var
|
|
1449
|
-
return ((
|
|
1430
|
+
var _ = u.v;
|
|
1431
|
+
return ((u.f & 1024) === 0 && u.reactions !== null || ko(u)) && (_ = Wr(u)), Oe.set(u, _), _;
|
|
1450
1432
|
}
|
|
1451
|
-
var
|
|
1452
|
-
|
|
1433
|
+
var p = (u.f & 512) === 0 && !me && x !== null && (x.f & 512) !== 0, d = (u.f & Lr) === 0;
|
|
1434
|
+
un(u) && (p && (u.f |= 512), Vi(u)), p && !d && (Fi(u), yo(u));
|
|
1453
1435
|
}
|
|
1454
|
-
if (
|
|
1436
|
+
if (ee?.has(e)) return ee.get(e);
|
|
1455
1437
|
if ((e.f & 8388608) !== 0) throw e.v;
|
|
1456
1438
|
return e.v;
|
|
1457
1439
|
}
|
|
1458
|
-
function
|
|
1440
|
+
function yo(e) {
|
|
1459
1441
|
if (e.f |= 512, e.deps !== null)
|
|
1460
1442
|
for (const n of e.deps) {
|
|
1461
1443
|
var t = n.reactions;
|
|
1462
|
-
t === null ? n.reactions = [e] :
|
|
1444
|
+
t === null ? n.reactions = [e] : Jt.call(t, e) || t.push(e), (n.f & 2) !== 0 && (n.f & 512) === 0 && (Fi(n), yo(n));
|
|
1463
1445
|
}
|
|
1464
1446
|
}
|
|
1465
|
-
function
|
|
1466
|
-
if (e.v ===
|
|
1447
|
+
function ko(e) {
|
|
1448
|
+
if (e.v === U) return !0;
|
|
1467
1449
|
if (e.deps === null) return !1;
|
|
1468
1450
|
for (const t of e.deps)
|
|
1469
|
-
if (Oe.has(t) || (t.f & 2) !== 0 &&
|
|
1451
|
+
if (Oe.has(t) || (t.f & 2) !== 0 && ko(t)) return !0;
|
|
1470
1452
|
return !1;
|
|
1471
1453
|
}
|
|
1472
|
-
function
|
|
1473
|
-
var t =
|
|
1454
|
+
function St(e) {
|
|
1455
|
+
var t = me;
|
|
1474
1456
|
try {
|
|
1475
|
-
return
|
|
1457
|
+
return me = !0, e();
|
|
1476
1458
|
} finally {
|
|
1477
|
-
|
|
1459
|
+
me = t;
|
|
1478
1460
|
}
|
|
1479
1461
|
}
|
|
1480
|
-
var
|
|
1481
|
-
function
|
|
1482
|
-
(t[
|
|
1462
|
+
var Et = /* @__PURE__ */ Symbol("events"), $o = /* @__PURE__ */ new Set(), Tr = /* @__PURE__ */ new Set();
|
|
1463
|
+
function Ye(e, t, n) {
|
|
1464
|
+
(t[Et] ?? (t[Et] = {}))[e] = n;
|
|
1483
1465
|
}
|
|
1484
|
-
function
|
|
1485
|
-
for (var t = 0; t < e.length; t++)
|
|
1486
|
-
for (var n of
|
|
1466
|
+
function ms(e) {
|
|
1467
|
+
for (var t = 0; t < e.length; t++) $o.add(e[t]);
|
|
1468
|
+
for (var n of Tr) n(e);
|
|
1487
1469
|
}
|
|
1488
|
-
var
|
|
1489
|
-
function
|
|
1470
|
+
var lr = null, fr = !1;
|
|
1471
|
+
function vi(e) {
|
|
1490
1472
|
var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], o = i[0] || e.target;
|
|
1491
|
-
|
|
1492
|
-
|
|
1473
|
+
lr = e, fr || (fr = !0, setTimeout(() => {
|
|
1474
|
+
fr = !1, lr = null;
|
|
1493
1475
|
}));
|
|
1494
|
-
var
|
|
1476
|
+
var s = 0, f = lr === e && e[Et];
|
|
1495
1477
|
if (f) {
|
|
1496
|
-
var
|
|
1497
|
-
if (
|
|
1498
|
-
e[
|
|
1478
|
+
var u = i.indexOf(f);
|
|
1479
|
+
if (u !== -1 && (t === document || t === window)) {
|
|
1480
|
+
e[Et] = t;
|
|
1499
1481
|
return;
|
|
1500
1482
|
}
|
|
1501
|
-
var
|
|
1502
|
-
if (
|
|
1503
|
-
|
|
1483
|
+
var _ = i.indexOf(t);
|
|
1484
|
+
if (_ === -1) return;
|
|
1485
|
+
u <= _ && (s = u);
|
|
1504
1486
|
}
|
|
1505
|
-
if (o = i[
|
|
1506
|
-
|
|
1487
|
+
if (o = i[s] || e.target, o !== t) {
|
|
1488
|
+
Qt(e, "currentTarget", {
|
|
1507
1489
|
configurable: !0,
|
|
1508
1490
|
get() {
|
|
1509
1491
|
return o || n;
|
|
1510
1492
|
}
|
|
1511
1493
|
});
|
|
1512
|
-
var
|
|
1494
|
+
var p = x, d = T;
|
|
1513
1495
|
ge(null), Ne(null);
|
|
1514
1496
|
try {
|
|
1515
|
-
for (var
|
|
1497
|
+
for (var c, h = []; o !== null && o !== t; ) {
|
|
1516
1498
|
try {
|
|
1517
|
-
var b = o[
|
|
1499
|
+
var b = o[Et]?.[r];
|
|
1518
1500
|
b != null && (!o.disabled || e.target === o) && b.call(o, e);
|
|
1519
|
-
} catch (
|
|
1520
|
-
|
|
1501
|
+
} catch (y) {
|
|
1502
|
+
c ? h.push(y) : c = y;
|
|
1521
1503
|
}
|
|
1522
1504
|
if (e.cancelBubble) break;
|
|
1523
|
-
|
|
1505
|
+
s++, o = s < i.length ? i[s] : null;
|
|
1524
1506
|
}
|
|
1525
|
-
if (
|
|
1526
|
-
for (let
|
|
1527
|
-
throw
|
|
1507
|
+
if (c) {
|
|
1508
|
+
for (let y of h) queueMicrotask(() => {
|
|
1509
|
+
throw y;
|
|
1528
1510
|
});
|
|
1529
|
-
throw
|
|
1511
|
+
throw c;
|
|
1530
1512
|
}
|
|
1531
1513
|
} finally {
|
|
1532
|
-
e[
|
|
1514
|
+
e[Et] = t, delete e.currentTarget, ge(p), Ne(d);
|
|
1533
1515
|
}
|
|
1534
1516
|
}
|
|
1535
1517
|
}
|
|
1536
|
-
var
|
|
1537
|
-
function
|
|
1538
|
-
return
|
|
1518
|
+
var ys = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1519
|
+
function ks(e) {
|
|
1520
|
+
return ys?.createHTML(e) ?? e;
|
|
1539
1521
|
}
|
|
1540
|
-
function
|
|
1541
|
-
var t =
|
|
1542
|
-
return t.innerHTML =
|
|
1522
|
+
function $s(e) {
|
|
1523
|
+
var t = Gn("template");
|
|
1524
|
+
return t.innerHTML = ks(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1543
1525
|
}
|
|
1544
1526
|
function He(e, t) {
|
|
1545
|
-
var n =
|
|
1527
|
+
var n = T;
|
|
1546
1528
|
n.nodes === null && (n.nodes = {
|
|
1547
1529
|
start: e,
|
|
1548
1530
|
end: t,
|
|
@@ -1551,32 +1533,32 @@ function He(e, t) {
|
|
|
1551
1533
|
});
|
|
1552
1534
|
}
|
|
1553
1535
|
// @__NO_SIDE_EFFECTS__
|
|
1554
|
-
function
|
|
1536
|
+
function Pe(e, t) {
|
|
1555
1537
|
var n = (t & 1) !== 0, r = (t & 2) !== 0, i, o = !e.startsWith("<!>");
|
|
1556
1538
|
return () => {
|
|
1557
|
-
if (
|
|
1539
|
+
if (A)
|
|
1558
1540
|
return He(C, null), C;
|
|
1559
|
-
i === void 0 && (i =
|
|
1560
|
-
var
|
|
1541
|
+
i === void 0 && (i = $s(o ? e : "<!>" + e), n || (i = /* @__PURE__ */ fe(i)));
|
|
1542
|
+
var s = r || ro ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1561
1543
|
if (n) {
|
|
1562
|
-
var f = /* @__PURE__ */
|
|
1563
|
-
He(f,
|
|
1564
|
-
} else He(
|
|
1565
|
-
return
|
|
1544
|
+
var f = /* @__PURE__ */ fe(s), u = s.lastChild;
|
|
1545
|
+
He(f, u);
|
|
1546
|
+
} else He(s, s);
|
|
1547
|
+
return s;
|
|
1566
1548
|
};
|
|
1567
1549
|
}
|
|
1568
1550
|
function Es(e = "") {
|
|
1569
|
-
if (!
|
|
1570
|
-
var t =
|
|
1551
|
+
if (!A) {
|
|
1552
|
+
var t = ue(e + "");
|
|
1571
1553
|
return He(t, t), t;
|
|
1572
1554
|
}
|
|
1573
1555
|
var n = C;
|
|
1574
|
-
return n.nodeType !== 3 ? (n.before(n =
|
|
1556
|
+
return n.nodeType !== 3 ? (n.before(n = ue()), K(n)) : Yn(n), He(n, n), n;
|
|
1575
1557
|
}
|
|
1576
1558
|
function he(e, t) {
|
|
1577
|
-
if (
|
|
1578
|
-
var n =
|
|
1579
|
-
((n.f & 32768) === 0 || n.nodes.end === null) && (n.nodes.end = C),
|
|
1559
|
+
if (A) {
|
|
1560
|
+
var n = T;
|
|
1561
|
+
((n.f & 32768) === 0 || n.nodes.end === null) && (n.nodes.end = C), At();
|
|
1580
1562
|
return;
|
|
1581
1563
|
}
|
|
1582
1564
|
e !== null && e.before(t);
|
|
@@ -1626,17 +1608,17 @@ var Ts = [
|
|
|
1626
1608
|
"allowFullscreen",
|
|
1627
1609
|
"disablePictureInPicture",
|
|
1628
1610
|
"disableRemotePlayback"
|
|
1629
|
-
],
|
|
1630
|
-
function
|
|
1631
|
-
return
|
|
1611
|
+
], Ss = ["touchstart", "touchmove"];
|
|
1612
|
+
function As(e) {
|
|
1613
|
+
return Ss.includes(e);
|
|
1632
1614
|
}
|
|
1633
|
-
var
|
|
1615
|
+
var xs = [
|
|
1634
1616
|
"$state",
|
|
1635
1617
|
"$state.raw",
|
|
1636
1618
|
"$derived",
|
|
1637
1619
|
"$derived.by"
|
|
1638
1620
|
], Vl = [
|
|
1639
|
-
...
|
|
1621
|
+
...xs,
|
|
1640
1622
|
"$state.eager",
|
|
1641
1623
|
"$state.snapshot",
|
|
1642
1624
|
"$props",
|
|
@@ -1652,41 +1634,41 @@ var Ms = [
|
|
|
1652
1634
|
"$inspect.trace",
|
|
1653
1635
|
"$host"
|
|
1654
1636
|
];
|
|
1655
|
-
function
|
|
1656
|
-
let t = 0, n =
|
|
1637
|
+
function Ms(e) {
|
|
1638
|
+
let t = 0, n = pt(0), r;
|
|
1657
1639
|
return () => {
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
t -= 1, t === 0 && (r?.(), r = void 0,
|
|
1640
|
+
Fr() && (a(n), Br(() => (t === 0 && (r = St(() => e(() => Zt(n)))), t += 1, () => {
|
|
1641
|
+
et(() => {
|
|
1642
|
+
t -= 1, t === 0 && (r?.(), r = void 0, Zt(n));
|
|
1661
1643
|
});
|
|
1662
1644
|
})));
|
|
1663
1645
|
};
|
|
1664
1646
|
}
|
|
1665
|
-
var
|
|
1666
|
-
function
|
|
1667
|
-
new
|
|
1647
|
+
var Rs = Nr | Ct;
|
|
1648
|
+
function Cs(e, t, n, r) {
|
|
1649
|
+
new Os(e, t, n, r);
|
|
1668
1650
|
}
|
|
1669
|
-
var
|
|
1651
|
+
var $e = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), ce = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), kn = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), _i = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakSet(), Os = class {
|
|
1670
1652
|
constructor(e, t, n, r) {
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
}))),
|
|
1674
|
-
var o =
|
|
1653
|
+
jr(this, P), N(this, "parent", void 0), N(this, "is_pending", !1), N(this, "transform_error", void 0), S(this, $e, void 0), S(this, Sr, A ? C : null), S(this, Ce, void 0), S(this, an, void 0), S(this, ie, void 0), S(this, Ee, null), S(this, ce, null), S(this, ye, null), S(this, Qe, null), S(this, kt, 0), S(this, ht, 0), S(this, kn, !1), S(this, Ar, /* @__PURE__ */ new Map()), S(this, rt, null), S(this, _i, Ms(() => (E(rt, this, pt(l(kt, this))), () => {
|
|
1654
|
+
E(rt, this, null);
|
|
1655
|
+
}))), E($e, this, e), E(Ce, this, t), E(an, this, (i) => {
|
|
1656
|
+
var o = T;
|
|
1675
1657
|
o.b = this, o.f |= 128, n(i);
|
|
1676
|
-
}), this.parent =
|
|
1677
|
-
if (
|
|
1678
|
-
const i =
|
|
1679
|
-
|
|
1658
|
+
}), this.parent = T.b, this.transform_error = r ?? this.parent?.transform_error ?? ((i) => i), E(ie, this, zr(() => {
|
|
1659
|
+
if (A) {
|
|
1660
|
+
const i = Ir(l(Sr, this));
|
|
1661
|
+
At();
|
|
1680
1662
|
const o = i === "[!";
|
|
1681
1663
|
if (i.startsWith("[?")) {
|
|
1682
|
-
const
|
|
1683
|
-
$(
|
|
1684
|
-
} else o ? $(
|
|
1685
|
-
} else $(
|
|
1686
|
-
},
|
|
1664
|
+
const s = JSON.parse(i.slice(2));
|
|
1665
|
+
$(P, this, Ns).call(this, s);
|
|
1666
|
+
} else o ? $(P, this, Is).call(this) : $(P, this, Ls).call(this);
|
|
1667
|
+
} else $(P, this, To).call(this);
|
|
1668
|
+
}, Rs)), A && E($e, this, C);
|
|
1687
1669
|
}
|
|
1688
1670
|
defer_effect(e) {
|
|
1689
|
-
|
|
1671
|
+
ji(e, l(Ar, this));
|
|
1690
1672
|
}
|
|
1691
1673
|
is_rendered() {
|
|
1692
1674
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -1695,52 +1677,52 @@ var Se = /* @__PURE__ */ new WeakMap(), Mr = /* @__PURE__ */ new WeakMap(), Ce =
|
|
|
1695
1677
|
return !!l(Ce, this).pending;
|
|
1696
1678
|
}
|
|
1697
1679
|
update_pending_count(e, t) {
|
|
1698
|
-
$(
|
|
1699
|
-
|
|
1680
|
+
$(P, this, So).call(this, e, t), E(kt, this, l(kt, this) + e), !(!l(rt, this) || l(kn, this)) && (E(kn, this, !0), et(() => {
|
|
1681
|
+
E(kn, this, !1), l(rt, this) && Mt(l(rt, this), l(kt, this));
|
|
1700
1682
|
}));
|
|
1701
1683
|
}
|
|
1702
1684
|
get_effect_pending() {
|
|
1703
|
-
return l(
|
|
1685
|
+
return l(_i, this).call(this), a(l(rt, this));
|
|
1704
1686
|
}
|
|
1705
1687
|
error(e) {
|
|
1706
1688
|
if (e === Ve || !l(Ce, this).onerror && !l(Ce, this).failed) throw e;
|
|
1707
|
-
|
|
1708
|
-
$(
|
|
1709
|
-
})) : $(
|
|
1689
|
+
M?.is_fork ? (l(Ee, this) && M.skip_effect(l(Ee, this)), l(ce, this) && M.skip_effect(l(ce, this)), l(ye, this) && M.skip_effect(l(ye, this)), M.oncommit(() => {
|
|
1690
|
+
$(P, this, vt).call(this) || $(P, this, pi).call(this, e);
|
|
1691
|
+
})) : $(P, this, pi).call(this, e);
|
|
1710
1692
|
}
|
|
1711
1693
|
};
|
|
1712
|
-
function
|
|
1694
|
+
function Ls() {
|
|
1713
1695
|
try {
|
|
1714
|
-
|
|
1696
|
+
E(Ee, this, pe(() => l(an, this).call(this, l($e, this))));
|
|
1715
1697
|
} catch (e) {
|
|
1716
1698
|
this.error(e);
|
|
1717
1699
|
}
|
|
1718
1700
|
}
|
|
1719
|
-
function
|
|
1720
|
-
const t = l(Ce, this).failed, { reset: n, invoke_onerror: r } = $(
|
|
1721
|
-
|
|
1722
|
-
t(l(
|
|
1701
|
+
function Ns(e) {
|
|
1702
|
+
const t = l(Ce, this).failed, { reset: n, invoke_onerror: r } = $(P, this, Eo).call(this, e);
|
|
1703
|
+
et(r), t && E(ye, this, pe(() => {
|
|
1704
|
+
t(l($e, this), () => e, () => n);
|
|
1723
1705
|
}));
|
|
1724
1706
|
}
|
|
1725
|
-
function
|
|
1707
|
+
function Eo(e) {
|
|
1726
1708
|
var t = !1, n = !1;
|
|
1727
1709
|
const r = () => {
|
|
1728
|
-
if (!$(
|
|
1710
|
+
if (!$(P, this, vt).call(this)) {
|
|
1729
1711
|
if (t) {
|
|
1730
|
-
|
|
1712
|
+
xa();
|
|
1731
1713
|
return;
|
|
1732
1714
|
}
|
|
1733
|
-
t = !0, n &&
|
|
1734
|
-
|
|
1735
|
-
}), $(
|
|
1736
|
-
$(
|
|
1715
|
+
t = !0, n && Va(), l(ye, this) !== null && bt(l(ye, this), () => {
|
|
1716
|
+
E(ye, this, null);
|
|
1717
|
+
}), $(P, this, Yr).call(this, () => {
|
|
1718
|
+
$(P, this, To).call(this);
|
|
1737
1719
|
});
|
|
1738
1720
|
}
|
|
1739
1721
|
};
|
|
1740
1722
|
return {
|
|
1741
1723
|
reset: r,
|
|
1742
1724
|
invoke_onerror: () => {
|
|
1743
|
-
if (!$(
|
|
1725
|
+
if (!$(P, this, vt).call(this))
|
|
1744
1726
|
try {
|
|
1745
1727
|
n = !0, l(Ce, this).onerror?.(e, r), n = !1;
|
|
1746
1728
|
} catch (o) {
|
|
@@ -1749,17 +1731,17 @@ function Ao(e) {
|
|
|
1749
1731
|
}
|
|
1750
1732
|
};
|
|
1751
1733
|
}
|
|
1752
|
-
function
|
|
1753
|
-
return (l(ie, this).f & (
|
|
1734
|
+
function vt() {
|
|
1735
|
+
return (l(ie, this).f & (Oi | gr)) !== 0;
|
|
1754
1736
|
}
|
|
1755
1737
|
function Is() {
|
|
1756
1738
|
const e = l(Ce, this).pending;
|
|
1757
|
-
e && (this.is_pending = !0,
|
|
1758
|
-
if (!$(
|
|
1759
|
-
var t =
|
|
1760
|
-
if (t.append(n),
|
|
1739
|
+
e && (this.is_pending = !0, E(ce, this, pe(() => e(l($e, this)))), et(() => {
|
|
1740
|
+
if (!$(P, this, vt).call(this)) {
|
|
1741
|
+
var t = E(Qe, this, document.createDocumentFragment()), n = ue(), r = !1;
|
|
1742
|
+
if (t.append(n), E(Ee, this, $(P, this, Yr).call(this, () => {
|
|
1761
1743
|
try {
|
|
1762
|
-
return pe(() => l(
|
|
1744
|
+
return pe(() => l(an, this).call(this, n));
|
|
1763
1745
|
} catch (i) {
|
|
1764
1746
|
try {
|
|
1765
1747
|
this.error(i), r = !0;
|
|
@@ -1769,72 +1751,72 @@ function Is() {
|
|
|
1769
1751
|
return null;
|
|
1770
1752
|
}
|
|
1771
1753
|
})), l(Ee, this) === null) {
|
|
1772
|
-
|
|
1754
|
+
E(Qe, this, null), r && $(P, this, Vn).call(this, M);
|
|
1773
1755
|
return;
|
|
1774
1756
|
}
|
|
1775
|
-
l(
|
|
1776
|
-
|
|
1777
|
-
}), $(
|
|
1757
|
+
l(ht, this) === 0 && (l($e, this).before(t), E(Qe, this, null), bt(l(ce, this), () => {
|
|
1758
|
+
E(ce, this, null);
|
|
1759
|
+
}), $(P, this, Vn).call(this, M));
|
|
1778
1760
|
}
|
|
1779
1761
|
}));
|
|
1780
1762
|
}
|
|
1781
|
-
function
|
|
1763
|
+
function To() {
|
|
1782
1764
|
try {
|
|
1783
|
-
if (this.is_pending = this.has_pending_snippet(),
|
|
1784
|
-
l(
|
|
1785
|
-
})), l(
|
|
1786
|
-
var e =
|
|
1787
|
-
|
|
1765
|
+
if (this.is_pending = this.has_pending_snippet(), E(ht, this, 0), E(kt, this, 0), E(Ee, this, pe(() => {
|
|
1766
|
+
l(an, this).call(this, l($e, this));
|
|
1767
|
+
})), l(ht, this) > 0) {
|
|
1768
|
+
var e = E(Qe, this, document.createDocumentFragment());
|
|
1769
|
+
Gr(l(Ee, this), e);
|
|
1788
1770
|
const t = l(Ce, this).pending;
|
|
1789
|
-
|
|
1790
|
-
} else $(
|
|
1771
|
+
E(ce, this, pe(() => t(l($e, this))));
|
|
1772
|
+
} else $(P, this, Vn).call(this, M);
|
|
1791
1773
|
} catch (t) {
|
|
1792
1774
|
this.error(t);
|
|
1793
1775
|
}
|
|
1794
1776
|
}
|
|
1795
|
-
function
|
|
1796
|
-
this.is_pending = !1, e.
|
|
1777
|
+
function Vn(e) {
|
|
1778
|
+
this.is_pending = !1, e.transfer_reactions(l(Ar, this));
|
|
1797
1779
|
}
|
|
1798
|
-
function
|
|
1799
|
-
var t =
|
|
1800
|
-
Ne(l(ie, this)), ge(l(ie, this)),
|
|
1780
|
+
function Yr(e) {
|
|
1781
|
+
var t = T, n = x, r = B;
|
|
1782
|
+
Ne(l(ie, this)), ge(l(ie, this)), xt(l(ie, this).ctx);
|
|
1801
1783
|
try {
|
|
1802
1784
|
return gt.ensure(), e();
|
|
1803
1785
|
} finally {
|
|
1804
|
-
Ne(t), ge(n),
|
|
1786
|
+
Ne(t), ge(n), xt(r);
|
|
1805
1787
|
}
|
|
1806
1788
|
}
|
|
1807
|
-
function
|
|
1789
|
+
function So(e, t) {
|
|
1808
1790
|
if (!this.has_pending_snippet()) {
|
|
1809
1791
|
if (this.parent) {
|
|
1810
1792
|
var n;
|
|
1811
|
-
$(
|
|
1793
|
+
$(P, n = this.parent, So).call(n, e, t);
|
|
1812
1794
|
}
|
|
1813
1795
|
return;
|
|
1814
1796
|
}
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
}), l(
|
|
1797
|
+
E(ht, this, l(ht, this) + e), l(ht, this) === 0 && ($(P, this, Vn).call(this, t), l(ce, this) && bt(l(ce, this), () => {
|
|
1798
|
+
E(ce, this, null);
|
|
1799
|
+
}), l(Qe, this) && (l($e, this).before(l(Qe, this)), E(Qe, this, null)));
|
|
1818
1800
|
}
|
|
1819
|
-
function
|
|
1820
|
-
l(Ee, this) && (
|
|
1801
|
+
function pi(e) {
|
|
1802
|
+
l(Ee, this) && (te(l(Ee, this)), E(Ee, this, null)), l(ce, this) && (te(l(ce, this)), E(ce, this, null)), l(ye, this) && (te(l(ye, this)), E(ye, this, null)), A && (K(l(Sr, this)), Ma(), K(Ln()));
|
|
1821
1803
|
let t = l(Ce, this).failed;
|
|
1822
1804
|
const n = (r) => {
|
|
1823
|
-
if ($(
|
|
1824
|
-
const { reset: i, invoke_onerror: o } = $(
|
|
1825
|
-
o(), t && !$(
|
|
1805
|
+
if ($(P, this, vt).call(this)) return;
|
|
1806
|
+
const { reset: i, invoke_onerror: o } = $(P, this, Eo).call(this, r);
|
|
1807
|
+
o(), t && !$(P, this, vt).call(this) && E(ye, this, $(P, this, Yr).call(this, () => {
|
|
1826
1808
|
try {
|
|
1827
1809
|
return pe(() => {
|
|
1828
|
-
var
|
|
1829
|
-
|
|
1810
|
+
var s = T;
|
|
1811
|
+
s.b = this, s.f |= 128, t(l($e, this), () => r, () => i);
|
|
1830
1812
|
});
|
|
1831
|
-
} catch (
|
|
1832
|
-
return Le(
|
|
1813
|
+
} catch (s) {
|
|
1814
|
+
return Le(s, l(ie, this).parent), null;
|
|
1833
1815
|
}
|
|
1834
1816
|
}));
|
|
1835
1817
|
};
|
|
1836
|
-
|
|
1837
|
-
if (!$(
|
|
1818
|
+
et(() => {
|
|
1819
|
+
if (!$(P, this, vt).call(this)) {
|
|
1838
1820
|
var r;
|
|
1839
1821
|
try {
|
|
1840
1822
|
r = this.transform_error(e);
|
|
@@ -1846,390 +1828,390 @@ function mi(e) {
|
|
|
1846
1828
|
}
|
|
1847
1829
|
});
|
|
1848
1830
|
}
|
|
1849
|
-
var
|
|
1850
|
-
function
|
|
1831
|
+
var gi = !0;
|
|
1832
|
+
function $n(e, t) {
|
|
1851
1833
|
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1852
|
-
n !== (e[
|
|
1834
|
+
n !== (e[An] ?? (e[An] = e.nodeValue)) && (e[An] = n, e.nodeValue = `${n}`);
|
|
1853
1835
|
}
|
|
1854
|
-
function
|
|
1855
|
-
return
|
|
1836
|
+
function Ao(e, t) {
|
|
1837
|
+
return xo(e, t);
|
|
1856
1838
|
}
|
|
1857
|
-
function
|
|
1858
|
-
|
|
1859
|
-
const n = t.target, r =
|
|
1839
|
+
function Ps(e, t) {
|
|
1840
|
+
Er(), t.intro = t.intro ?? !1;
|
|
1841
|
+
const n = t.target, r = A, i = C;
|
|
1860
1842
|
try {
|
|
1861
|
-
for (var o = /* @__PURE__ */
|
|
1843
|
+
for (var o = /* @__PURE__ */ fe(n); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ Te(o);
|
|
1862
1844
|
if (!o) throw Ve;
|
|
1863
|
-
|
|
1864
|
-
const
|
|
1845
|
+
je(!0), K(o);
|
|
1846
|
+
const s = xo(e, {
|
|
1865
1847
|
...t,
|
|
1866
1848
|
anchor: o
|
|
1867
1849
|
});
|
|
1868
|
-
return
|
|
1869
|
-
} catch (
|
|
1870
|
-
if (
|
|
1871
|
-
`).some((f) => f.startsWith("https://svelte.dev/e/"))) throw
|
|
1872
|
-
return
|
|
1850
|
+
return je(!1), s;
|
|
1851
|
+
} catch (s) {
|
|
1852
|
+
if (s instanceof Error && s.message.split(`
|
|
1853
|
+
`).some((f) => f.startsWith("https://svelte.dev/e/"))) throw s;
|
|
1854
|
+
return s !== Ve && console.warn("Failed to hydrate: ", s), t.recover === !1 && qa(), Er(), ao(n), je(!1), Ao(e, t);
|
|
1873
1855
|
} finally {
|
|
1874
|
-
|
|
1856
|
+
je(r), K(i);
|
|
1875
1857
|
}
|
|
1876
1858
|
}
|
|
1877
|
-
var
|
|
1878
|
-
function
|
|
1879
|
-
|
|
1880
|
-
var
|
|
1881
|
-
var
|
|
1882
|
-
|
|
1859
|
+
var En = /* @__PURE__ */ new Map();
|
|
1860
|
+
function xo(e, { target: t, anchor: n, props: r = {}, events: i, context: o, intro: s = !0, transformError: f }) {
|
|
1861
|
+
Er();
|
|
1862
|
+
var u = void 0, _ = hs(() => {
|
|
1863
|
+
var p = n ?? t.appendChild(ue());
|
|
1864
|
+
Cs(p, { pending: () => {
|
|
1883
1865
|
} }, (h) => {
|
|
1884
|
-
|
|
1885
|
-
var b =
|
|
1886
|
-
if (o && (b.c = o), i && (r.$$events = i),
|
|
1887
|
-
throw
|
|
1888
|
-
|
|
1866
|
+
qi({});
|
|
1867
|
+
var b = B;
|
|
1868
|
+
if (o && (b.c = o), i && (r.$$events = i), A && He(h, null), gi = s, u = e(h, r) || Pr(), gi = !0, A && (T.nodes.end = C, C === null || C.nodeType !== 8 || C.data !== "]"))
|
|
1869
|
+
throw ln(), Ve;
|
|
1870
|
+
Di();
|
|
1889
1871
|
}, f);
|
|
1890
|
-
var
|
|
1872
|
+
var d = /* @__PURE__ */ new Set(), c = (h) => {
|
|
1891
1873
|
for (var b = 0; b < h.length; b++) {
|
|
1892
|
-
var
|
|
1893
|
-
if (!
|
|
1894
|
-
|
|
1895
|
-
var g =
|
|
1896
|
-
for (const
|
|
1897
|
-
var
|
|
1898
|
-
|
|
1899
|
-
var
|
|
1900
|
-
|
|
1874
|
+
var y = h[b];
|
|
1875
|
+
if (!d.has(y)) {
|
|
1876
|
+
d.add(y);
|
|
1877
|
+
var g = As(y);
|
|
1878
|
+
for (const H of [t, document]) {
|
|
1879
|
+
var m = En.get(H);
|
|
1880
|
+
m === void 0 && (m = /* @__PURE__ */ new Map(), En.set(H, m));
|
|
1881
|
+
var L = m.get(y);
|
|
1882
|
+
L === void 0 ? (H.addEventListener(y, vi, { passive: g }), m.set(y, 1)) : m.set(y, L + 1);
|
|
1901
1883
|
}
|
|
1902
1884
|
}
|
|
1903
1885
|
}
|
|
1904
1886
|
};
|
|
1905
|
-
return
|
|
1906
|
-
for (var h of
|
|
1907
|
-
var b =
|
|
1908
|
-
--
|
|
1887
|
+
return c(Bn($o)), Tr.add(c), () => {
|
|
1888
|
+
for (var h of d) for (const g of [t, document]) {
|
|
1889
|
+
var b = En.get(g), y = b.get(h);
|
|
1890
|
+
--y == 0 ? (g.removeEventListener(h, vi), b.delete(h), b.size === 0 && En.delete(g)) : b.set(h, y);
|
|
1909
1891
|
}
|
|
1910
|
-
|
|
1892
|
+
Tr.delete(c), p !== n && p.parentNode?.removeChild(p);
|
|
1911
1893
|
};
|
|
1912
1894
|
});
|
|
1913
|
-
return
|
|
1895
|
+
return xr.set(u, _), u;
|
|
1914
1896
|
}
|
|
1915
|
-
var
|
|
1916
|
-
function
|
|
1917
|
-
const n =
|
|
1918
|
-
return n ? (
|
|
1897
|
+
var xr = /* @__PURE__ */ new WeakMap();
|
|
1898
|
+
function qs(e, t) {
|
|
1899
|
+
const n = xr.get(e);
|
|
1900
|
+
return n ? (xr.delete(e), n(t)) : Promise.resolve();
|
|
1919
1901
|
}
|
|
1920
|
-
var
|
|
1902
|
+
var De = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), ur = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), Ds = class {
|
|
1921
1903
|
constructor(e, t = !0) {
|
|
1922
|
-
|
|
1923
|
-
if (l(
|
|
1924
|
-
var r = l(
|
|
1904
|
+
N(this, "anchor", void 0), S(this, De, /* @__PURE__ */ new Map()), S(this, Ke, /* @__PURE__ */ new Map()), S(this, we, /* @__PURE__ */ new Map()), S(this, jt, /* @__PURE__ */ new Set()), S(this, ur, !0), S(this, cr, (n) => {
|
|
1905
|
+
if (l(De, this).has(n)) {
|
|
1906
|
+
var r = l(De, this).get(n), i = l(Ke, this).get(r);
|
|
1925
1907
|
if (i)
|
|
1926
|
-
|
|
1908
|
+
Hn(i), l(jt, this).delete(r);
|
|
1927
1909
|
else {
|
|
1928
1910
|
var o = l(we, this).get(r);
|
|
1929
|
-
o && (
|
|
1911
|
+
o && (Hn(o.effect), l(Ke, this).set(r, o.effect), l(we, this).delete(r), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), i = o.effect);
|
|
1930
1912
|
}
|
|
1931
|
-
for (const [
|
|
1932
|
-
if (l(
|
|
1933
|
-
const
|
|
1934
|
-
|
|
1913
|
+
for (const [s, f] of l(De, this)) {
|
|
1914
|
+
if (l(De, this).delete(s), s === n) break;
|
|
1915
|
+
const u = l(we, this).get(f);
|
|
1916
|
+
u && (te(u.effect), l(we, this).delete(f));
|
|
1935
1917
|
}
|
|
1936
|
-
for (const [
|
|
1937
|
-
if (
|
|
1938
|
-
const
|
|
1939
|
-
if (Array.from(l(
|
|
1940
|
-
var
|
|
1941
|
-
|
|
1918
|
+
for (const [s, f] of l(Ke, this)) {
|
|
1919
|
+
if (s === r || l(jt, this).has(s)) continue;
|
|
1920
|
+
const u = () => {
|
|
1921
|
+
if (Array.from(l(De, this).values()).includes(s)) {
|
|
1922
|
+
var _ = document.createDocumentFragment();
|
|
1923
|
+
Gr(f, _), _.append(ue()), l(we, this).set(s, {
|
|
1942
1924
|
effect: f,
|
|
1943
|
-
fragment:
|
|
1925
|
+
fragment: _
|
|
1944
1926
|
});
|
|
1945
|
-
} else
|
|
1946
|
-
l(
|
|
1927
|
+
} else te(f);
|
|
1928
|
+
l(jt, this).delete(s), l(Ke, this).delete(s);
|
|
1947
1929
|
};
|
|
1948
|
-
l(
|
|
1930
|
+
l(ur, this) || !i ? (l(jt, this).add(s), bt(f, u, !1)) : u();
|
|
1949
1931
|
}
|
|
1950
1932
|
}
|
|
1951
|
-
}),
|
|
1952
|
-
l(
|
|
1953
|
-
const r = Array.from(l(
|
|
1954
|
-
for (const [i, o] of l(we, this)) r.includes(i) || (
|
|
1955
|
-
}), this.anchor = e,
|
|
1933
|
+
}), S(this, bi, (n) => {
|
|
1934
|
+
l(De, this).delete(n);
|
|
1935
|
+
const r = Array.from(l(De, this).values());
|
|
1936
|
+
for (const [i, o] of l(we, this)) r.includes(i) || (te(o.effect), l(we, this).delete(i));
|
|
1937
|
+
}), this.anchor = e, E(ur, this, t);
|
|
1956
1938
|
}
|
|
1957
1939
|
ensure(e, t) {
|
|
1958
|
-
var n =
|
|
1959
|
-
if (t && !l(
|
|
1940
|
+
var n = M, r = so();
|
|
1941
|
+
if (t && !l(Ke, this).has(e) && !l(we, this).has(e))
|
|
1960
1942
|
if (r) {
|
|
1961
|
-
var i = document.createDocumentFragment(), o =
|
|
1943
|
+
var i = document.createDocumentFragment(), o = ue();
|
|
1962
1944
|
i.append(o), l(we, this).set(e, {
|
|
1963
1945
|
effect: pe(() => t(o)),
|
|
1964
1946
|
fragment: i
|
|
1965
1947
|
});
|
|
1966
|
-
} else l(
|
|
1967
|
-
if (l(
|
|
1968
|
-
for (const [
|
|
1969
|
-
for (const [
|
|
1970
|
-
n.oncommit(l(
|
|
1948
|
+
} else l(Ke, this).set(e, pe(() => t(this.anchor)));
|
|
1949
|
+
if (l(De, this).set(n, e), r) {
|
|
1950
|
+
for (const [s, f] of l(Ke, this)) s === e ? n.unskip_effect(f) : n.skip_effect(f);
|
|
1951
|
+
for (const [s, f] of l(we, this)) s === e ? n.unskip_effect(f.effect) : n.skip_effect(f.effect);
|
|
1952
|
+
n.oncommit(l(cr, this)), n.ondiscard(l(bi, this));
|
|
1971
1953
|
} else
|
|
1972
|
-
|
|
1954
|
+
A && (this.anchor = C), l(cr, this).call(this, n);
|
|
1973
1955
|
}
|
|
1974
1956
|
};
|
|
1975
|
-
function
|
|
1957
|
+
function it(e, t, n = !1) {
|
|
1976
1958
|
var r;
|
|
1977
|
-
|
|
1978
|
-
var i = new Ds(e), o = n ?
|
|
1979
|
-
function
|
|
1980
|
-
if (
|
|
1981
|
-
var
|
|
1982
|
-
if (f !== parseInt(
|
|
1983
|
-
var
|
|
1984
|
-
|
|
1959
|
+
A && (r = C, At());
|
|
1960
|
+
var i = new Ds(e), o = n ? Nr : 0;
|
|
1961
|
+
function s(f, u) {
|
|
1962
|
+
if (A) {
|
|
1963
|
+
var _ = Ir(r);
|
|
1964
|
+
if (f !== parseInt(_.substring(1))) {
|
|
1965
|
+
var p = Ln();
|
|
1966
|
+
K(p), i.anchor = p, je(!1), i.ensure(f, u), je(!0);
|
|
1985
1967
|
return;
|
|
1986
1968
|
}
|
|
1987
1969
|
}
|
|
1988
|
-
i.ensure(f,
|
|
1970
|
+
i.ensure(f, u);
|
|
1989
1971
|
}
|
|
1990
|
-
|
|
1972
|
+
zr(() => {
|
|
1991
1973
|
var f = !1;
|
|
1992
|
-
t((
|
|
1993
|
-
f = !0,
|
|
1994
|
-
}), f ||
|
|
1974
|
+
t((u, _ = 0) => {
|
|
1975
|
+
f = !0, s(_, u);
|
|
1976
|
+
}), f || s(-1, null);
|
|
1995
1977
|
}, o);
|
|
1996
1978
|
}
|
|
1997
|
-
function
|
|
1979
|
+
function Ws(e, t) {
|
|
1998
1980
|
return t;
|
|
1999
1981
|
}
|
|
2000
|
-
function
|
|
2001
|
-
for (var r = [], i = t.length, o,
|
|
2002
|
-
let
|
|
2003
|
-
bt(
|
|
1982
|
+
function js(e, t, n) {
|
|
1983
|
+
for (var r = [], i = t.length, o, s = t.length, f = 0; f < i; f++) {
|
|
1984
|
+
let d = t[f];
|
|
1985
|
+
bt(d, () => {
|
|
2004
1986
|
if (o) {
|
|
2005
|
-
if (o.pending.delete(
|
|
2006
|
-
var
|
|
2007
|
-
|
|
1987
|
+
if (o.pending.delete(d), o.done.add(d), o.pending.size === 0) {
|
|
1988
|
+
var c = e.outrogroups;
|
|
1989
|
+
Mr(e, Bn(o.done)), c.delete(o), c.size === 0 && (e.outrogroups = null);
|
|
2008
1990
|
}
|
|
2009
|
-
} else
|
|
1991
|
+
} else s -= 1;
|
|
2010
1992
|
}, !1);
|
|
2011
1993
|
}
|
|
2012
|
-
if (
|
|
2013
|
-
var
|
|
2014
|
-
if (
|
|
2015
|
-
var
|
|
2016
|
-
|
|
1994
|
+
if (s === 0) {
|
|
1995
|
+
var u = r.length === 0 && n !== null && e.pending.size === 0;
|
|
1996
|
+
if (u) {
|
|
1997
|
+
var _ = n, p = _.parentNode;
|
|
1998
|
+
ao(p), p.append(_), e.items.clear();
|
|
2017
1999
|
}
|
|
2018
|
-
|
|
2000
|
+
Mr(e, t, !u);
|
|
2019
2001
|
} else
|
|
2020
2002
|
o = {
|
|
2021
2003
|
pending: new Set(t),
|
|
2022
2004
|
done: /* @__PURE__ */ new Set()
|
|
2023
2005
|
}, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(o);
|
|
2024
2006
|
}
|
|
2025
|
-
function
|
|
2007
|
+
function Mr(e, t, n = !0) {
|
|
2026
2008
|
var r;
|
|
2027
2009
|
if (e.pending.size > 0) {
|
|
2028
2010
|
r = /* @__PURE__ */ new Set();
|
|
2029
|
-
for (const
|
|
2011
|
+
for (const s of e.pending.values()) for (const f of s) r.add(e.items.get(f).e);
|
|
2030
2012
|
}
|
|
2031
2013
|
for (var i = 0; i < t.length; i++) {
|
|
2032
2014
|
var o = t[i];
|
|
2033
2015
|
if (r?.has(o)) {
|
|
2034
|
-
o.f |=
|
|
2035
|
-
const
|
|
2036
|
-
|
|
2037
|
-
} else
|
|
2016
|
+
o.f |= Yt;
|
|
2017
|
+
const s = document.createDocumentFragment();
|
|
2018
|
+
Gr(o, s);
|
|
2019
|
+
} else te(t[i], n);
|
|
2038
2020
|
}
|
|
2039
2021
|
}
|
|
2040
|
-
var
|
|
2041
|
-
function
|
|
2042
|
-
var
|
|
2022
|
+
var Tn;
|
|
2023
|
+
function wi(e, t, n, r, i, o = null) {
|
|
2024
|
+
var s = e, f = /* @__PURE__ */ new Map();
|
|
2043
2025
|
if ((t & 4) !== 0) {
|
|
2044
|
-
var
|
|
2045
|
-
|
|
2026
|
+
var u = e;
|
|
2027
|
+
s = A ? K(/* @__PURE__ */ fe(u)) : u.appendChild(ue());
|
|
2046
2028
|
}
|
|
2047
|
-
|
|
2048
|
-
var
|
|
2029
|
+
A && At();
|
|
2030
|
+
var _ = null, p = /* @__PURE__ */ Dr(() => {
|
|
2049
2031
|
var g = n();
|
|
2050
|
-
return
|
|
2051
|
-
}),
|
|
2032
|
+
return Mi(g) ? g : g == null ? [] : Bn(g);
|
|
2033
|
+
}), d = /* @__PURE__ */ new Map(), c = !0;
|
|
2052
2034
|
function h(g) {
|
|
2053
|
-
if ((
|
|
2054
|
-
|
|
2055
|
-
var
|
|
2056
|
-
|
|
2057
|
-
|
|
2035
|
+
if ((y.effect.f & 16384) === 0) {
|
|
2036
|
+
y.pending.delete(g);
|
|
2037
|
+
var m = a(p);
|
|
2038
|
+
y.fallback = _, Hs(y, m, s, t, r), _ !== null && (m.length === 0 ? (_.f & 33554432) === 0 ? Hn(_) : (_.f ^= Yt, Gt(_, null, s)) : bt(_, () => {
|
|
2039
|
+
_ = null;
|
|
2058
2040
|
}));
|
|
2059
2041
|
}
|
|
2060
2042
|
}
|
|
2061
2043
|
function b(g) {
|
|
2062
|
-
|
|
2063
|
-
}
|
|
2064
|
-
var
|
|
2065
|
-
effect:
|
|
2066
|
-
var g =
|
|
2067
|
-
let
|
|
2068
|
-
|
|
2069
|
-
for (var
|
|
2070
|
-
|
|
2071
|
-
var
|
|
2044
|
+
y.pending.delete(g);
|
|
2045
|
+
}
|
|
2046
|
+
var y = {
|
|
2047
|
+
effect: zr(() => {
|
|
2048
|
+
var g = a(p), m = g.length;
|
|
2049
|
+
let L = !1;
|
|
2050
|
+
A && Ir(s) === "[!" != (m === 0) && (s = Ln(), K(s), je(!1), L = !0);
|
|
2051
|
+
for (var H = /* @__PURE__ */ new Set(), w = M, D = so(), W = 0; W < m; W += 1) {
|
|
2052
|
+
A && C.nodeType === 8 && C.data === "]" && (s = C, L = !0, je(!1));
|
|
2053
|
+
var ne = g[W], J = r(ne, W);
|
|
2072
2054
|
if (0)
|
|
2073
|
-
var
|
|
2074
|
-
var
|
|
2075
|
-
|
|
2055
|
+
var qe;
|
|
2056
|
+
var V = c ? null : f.get(J);
|
|
2057
|
+
V ? (V.v && Mt(V.v, ne), V.i && Mt(V.i, W), D && w.unskip_effect(V.e)) : (V = Vs(f, c ? s : Tn ?? (Tn = ue()), ne, J, W, i, t, n), c || (V.e.f |= Yt), f.set(J, V)), H.add(J);
|
|
2076
2058
|
}
|
|
2077
|
-
if (
|
|
2078
|
-
if (
|
|
2079
|
-
for (const [ze,
|
|
2080
|
-
|
|
2081
|
-
} else h(
|
|
2082
|
-
|
|
2059
|
+
if (m === 0 && o && !_ && (c ? _ = pe(() => o(s)) : (_ = pe(() => o(Tn ?? (Tn = ue()))), _.f |= Yt)), m > H.size && Oa("", "", ""), A && m > 0 && K(Ln()), !c)
|
|
2060
|
+
if (d.set(w, H), D) {
|
|
2061
|
+
for (const [ze, Ue] of f) H.has(ze) || w.skip_effect(Ue.e);
|
|
2062
|
+
w.oncommit(h), w.ondiscard(b);
|
|
2063
|
+
} else h(w);
|
|
2064
|
+
L && je(!0), a(p);
|
|
2083
2065
|
}),
|
|
2084
2066
|
flags: t,
|
|
2085
2067
|
items: f,
|
|
2086
|
-
pending:
|
|
2068
|
+
pending: d,
|
|
2087
2069
|
outrogroups: null,
|
|
2088
|
-
fallback:
|
|
2070
|
+
fallback: _
|
|
2089
2071
|
};
|
|
2090
|
-
|
|
2072
|
+
c = !1, A && (s = C);
|
|
2091
2073
|
}
|
|
2092
|
-
function
|
|
2074
|
+
function Ht(e) {
|
|
2093
2075
|
for (; e !== null && (e.f & 32) === 0; ) e = e.next;
|
|
2094
2076
|
return e;
|
|
2095
2077
|
}
|
|
2096
|
-
function
|
|
2097
|
-
var o = (r & 8) !== 0,
|
|
2098
|
-
if (o) for (
|
|
2099
|
-
b = t[
|
|
2100
|
-
for (
|
|
2101
|
-
if (b = t[
|
|
2102
|
-
|
|
2103
|
-
if ((g.f & 8192) !== 0 && (
|
|
2104
|
-
if (g.f ^=
|
|
2078
|
+
function Hs(e, t, n, r, i) {
|
|
2079
|
+
var o = (r & 8) !== 0, s = t.length, f = e.items, u = Ht(e.effect.first), _, p = null, d, c = [], h = [], b, y, g, m;
|
|
2080
|
+
if (o) for (m = 0; m < s; m += 1)
|
|
2081
|
+
b = t[m], y = i(b, m), g = f.get(y).e, (g.f & 33554432) === 0 && (g.nodes?.a?.measure(), (d ?? (d = /* @__PURE__ */ new Set())).add(g));
|
|
2082
|
+
for (m = 0; m < s; m += 1) {
|
|
2083
|
+
if (b = t[m], y = i(b, m), g = f.get(y).e, e.outrogroups !== null) for (const V of e.outrogroups)
|
|
2084
|
+
V.pending.delete(g), V.done.delete(g);
|
|
2085
|
+
if ((g.f & 8192) !== 0 && (Hn(g), o && (g.nodes?.a?.unfix(), (d ?? (d = /* @__PURE__ */ new Set())).delete(g))), (g.f & 33554432) !== 0)
|
|
2086
|
+
if (g.f ^= Yt, g === u) Gt(g, null, n);
|
|
2105
2087
|
else {
|
|
2106
|
-
var
|
|
2107
|
-
g === e.effect.last && (e.effect.last = g.prev), g.prev && (g.prev.next = g.next), g.next && (g.next.prev = g.prev),
|
|
2088
|
+
var L = p ? p.next : u;
|
|
2089
|
+
g === e.effect.last && (e.effect.last = g.prev), g.prev && (g.prev.next = g.next), g.next && (g.next.prev = g.prev), Xe(e, p, g), Xe(e, g, L), Gt(g, L, n), p = g, c = [], h = [], u = Ht(p.next);
|
|
2108
2090
|
continue;
|
|
2109
2091
|
}
|
|
2110
|
-
if (g !==
|
|
2111
|
-
if (
|
|
2112
|
-
if (
|
|
2113
|
-
var
|
|
2114
|
-
|
|
2115
|
-
var
|
|
2116
|
-
for (
|
|
2117
|
-
for (
|
|
2118
|
-
|
|
2092
|
+
if (g !== u) {
|
|
2093
|
+
if (_ !== void 0 && _.has(g)) {
|
|
2094
|
+
if (c.length < h.length) {
|
|
2095
|
+
var H = h[0], w;
|
|
2096
|
+
p = H.prev;
|
|
2097
|
+
var D = c[0], W = c[c.length - 1];
|
|
2098
|
+
for (w = 0; w < c.length; w += 1) Gt(c[w], H, n);
|
|
2099
|
+
for (w = 0; w < h.length; w += 1) _.delete(h[w]);
|
|
2100
|
+
Xe(e, D.prev, W.next), Xe(e, p, D), Xe(e, W, H), u = H, p = W, m -= 1, c = [], h = [];
|
|
2119
2101
|
} else
|
|
2120
|
-
|
|
2102
|
+
_.delete(g), Gt(g, u, n), Xe(e, g.prev, g.next), Xe(e, g, p === null ? e.effect.first : p.next), Xe(e, p, g), p = g;
|
|
2121
2103
|
continue;
|
|
2122
2104
|
}
|
|
2123
|
-
for (
|
|
2124
|
-
(
|
|
2125
|
-
if (
|
|
2105
|
+
for (c = [], h = []; u !== null && u !== g; )
|
|
2106
|
+
(_ ?? (_ = /* @__PURE__ */ new Set())).add(u), h.push(u), u = Ht(u.next);
|
|
2107
|
+
if (u === null) continue;
|
|
2126
2108
|
}
|
|
2127
|
-
(g.f & 33554432) === 0 &&
|
|
2109
|
+
(g.f & 33554432) === 0 && c.push(g), p = g, u = Ht(g.next);
|
|
2128
2110
|
}
|
|
2129
2111
|
if (e.outrogroups !== null) {
|
|
2130
|
-
for (const
|
|
2112
|
+
for (const V of e.outrogroups) V.pending.size === 0 && (Mr(e, Bn(V.done)), e.outrogroups?.delete(V));
|
|
2131
2113
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2132
2114
|
}
|
|
2133
|
-
if (
|
|
2134
|
-
var
|
|
2135
|
-
if (
|
|
2136
|
-
for (g of
|
|
2137
|
-
for (;
|
|
2138
|
-
(
|
|
2139
|
-
var
|
|
2140
|
-
if (
|
|
2141
|
-
var
|
|
2115
|
+
if (u !== null || _ !== void 0) {
|
|
2116
|
+
var ne = [];
|
|
2117
|
+
if (_ !== void 0)
|
|
2118
|
+
for (g of _) (g.f & 8192) === 0 && ne.push(g);
|
|
2119
|
+
for (; u !== null; )
|
|
2120
|
+
(u.f & 8192) === 0 && u !== e.fallback && ne.push(u), u = Ht(u.next);
|
|
2121
|
+
var J = ne.length;
|
|
2122
|
+
if (J > 0) {
|
|
2123
|
+
var qe = (r & 4) !== 0 && s === 0 ? n : null;
|
|
2142
2124
|
if (o) {
|
|
2143
|
-
for (
|
|
2144
|
-
for (
|
|
2125
|
+
for (m = 0; m < J; m += 1) ne[m].nodes?.a?.measure();
|
|
2126
|
+
for (m = 0; m < J; m += 1) ne[m].nodes?.a?.fix();
|
|
2145
2127
|
}
|
|
2146
|
-
|
|
2128
|
+
js(e, ne, qe);
|
|
2147
2129
|
}
|
|
2148
2130
|
}
|
|
2149
|
-
o &&
|
|
2150
|
-
if (
|
|
2151
|
-
for (g of
|
|
2131
|
+
o && et(() => {
|
|
2132
|
+
if (d !== void 0)
|
|
2133
|
+
for (g of d) g.nodes?.a?.apply();
|
|
2152
2134
|
});
|
|
2153
2135
|
}
|
|
2154
|
-
function
|
|
2155
|
-
var
|
|
2136
|
+
function Vs(e, t, n, r, i, o, s, f) {
|
|
2137
|
+
var u = (s & 1) !== 0 ? (s & 16) === 0 ? /* @__PURE__ */ to(n, !1, !1) : pt(n) : null, _ = (s & 2) !== 0 ? pt(i) : null;
|
|
2156
2138
|
return {
|
|
2157
|
-
v:
|
|
2158
|
-
i:
|
|
2159
|
-
e: pe(() => (o(t,
|
|
2139
|
+
v: u,
|
|
2140
|
+
i: _,
|
|
2141
|
+
e: pe(() => (o(t, u ?? n, _ ?? i, f), () => {
|
|
2160
2142
|
e.delete(r);
|
|
2161
2143
|
}))
|
|
2162
2144
|
};
|
|
2163
2145
|
}
|
|
2164
|
-
function
|
|
2146
|
+
function Gt(e, t, n) {
|
|
2165
2147
|
if (e.nodes)
|
|
2166
2148
|
for (var r = e.nodes.start, i = e.nodes.end, o = t && (t.f & 33554432) === 0 ? t.nodes.start : n; r !== null; ) {
|
|
2167
|
-
var
|
|
2149
|
+
var s = /* @__PURE__ */ Te(r);
|
|
2168
2150
|
if (o.before(r), r === i) return;
|
|
2169
|
-
r =
|
|
2151
|
+
r = s;
|
|
2170
2152
|
}
|
|
2171
2153
|
}
|
|
2172
|
-
function
|
|
2154
|
+
function Xe(e, t, n) {
|
|
2173
2155
|
t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
|
|
2174
2156
|
}
|
|
2175
|
-
function
|
|
2176
|
-
var
|
|
2157
|
+
function Fs(e, t, n = !1, r = !1, i = !1, o = !1) {
|
|
2158
|
+
var s = e, f = "";
|
|
2177
2159
|
if (n) {
|
|
2178
|
-
var
|
|
2179
|
-
|
|
2160
|
+
var u = e;
|
|
2161
|
+
A && (s = K(/* @__PURE__ */ fe(u)));
|
|
2180
2162
|
}
|
|
2181
2163
|
We(() => {
|
|
2182
|
-
var
|
|
2164
|
+
var _ = T;
|
|
2183
2165
|
if (f === (f = t() ?? "")) {
|
|
2184
|
-
|
|
2166
|
+
A && At();
|
|
2185
2167
|
return;
|
|
2186
2168
|
}
|
|
2187
|
-
if (n && !
|
|
2188
|
-
|
|
2169
|
+
if (n && !A) {
|
|
2170
|
+
_.nodes = null, u.innerHTML = f, f !== "" && He(/* @__PURE__ */ fe(u), u.lastChild);
|
|
2189
2171
|
return;
|
|
2190
2172
|
}
|
|
2191
|
-
if (
|
|
2192
|
-
if (
|
|
2193
|
-
for (var
|
|
2194
|
-
|
|
2195
|
-
if (
|
|
2196
|
-
throw
|
|
2197
|
-
He(C,
|
|
2173
|
+
if (_.nodes !== null && (co(_.nodes.start, _.nodes.end), _.nodes = null), f !== "") {
|
|
2174
|
+
if (A) {
|
|
2175
|
+
for (var p = C.data, d = At(), c = d; d !== null && (d.nodeType !== 8 || d.data !== ""); )
|
|
2176
|
+
c = d, d = /* @__PURE__ */ Te(d);
|
|
2177
|
+
if (d === null)
|
|
2178
|
+
throw ln(), Ve;
|
|
2179
|
+
He(C, c), s = K(d);
|
|
2198
2180
|
return;
|
|
2199
2181
|
}
|
|
2200
|
-
var h =
|
|
2182
|
+
var h = Gn(r ? "svg" : i ? "math" : "template", r ? da : i ? ha : void 0);
|
|
2201
2183
|
h.innerHTML = f;
|
|
2202
2184
|
var b = r || i ? h : h.content;
|
|
2203
|
-
if (He(/* @__PURE__ */
|
|
2204
|
-
else
|
|
2185
|
+
if (He(/* @__PURE__ */ fe(b), b.lastChild), r || i) for (; /* @__PURE__ */ fe(b); ) s.before(/* @__PURE__ */ fe(b));
|
|
2186
|
+
else s.before(b);
|
|
2205
2187
|
}
|
|
2206
2188
|
});
|
|
2207
2189
|
}
|
|
2208
|
-
function
|
|
2209
|
-
|
|
2210
|
-
e =
|
|
2190
|
+
function Bs(e, t) {
|
|
2191
|
+
fo(() => {
|
|
2192
|
+
e = T?.parent?.nodes?.start ?? e;
|
|
2211
2193
|
var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
|
|
2212
2194
|
if (!r.querySelector("#" + t.hash)) {
|
|
2213
|
-
const i =
|
|
2195
|
+
const i = Gn("style");
|
|
2214
2196
|
i.id = t.hash, i.textContent = t.code, r.appendChild(i);
|
|
2215
2197
|
}
|
|
2216
2198
|
});
|
|
2217
2199
|
}
|
|
2218
|
-
var
|
|
2200
|
+
var mi = [...`
|
|
2219
2201
|
\r\f \v\uFEFF`];
|
|
2220
|
-
function
|
|
2202
|
+
function zs(e, t, n) {
|
|
2221
2203
|
var r = e == null ? "" : "" + e;
|
|
2222
2204
|
if (t && (r = r ? r + " " + t : t), n) {
|
|
2223
2205
|
for (var i of Object.keys(n)) if (n[i]) r = r ? r + " " + i : i;
|
|
2224
2206
|
else if (r.length)
|
|
2225
|
-
for (var o = i.length,
|
|
2226
|
-
var f =
|
|
2227
|
-
(
|
|
2207
|
+
for (var o = i.length, s = 0; (s = r.indexOf(i, s)) >= 0; ) {
|
|
2208
|
+
var f = s + o;
|
|
2209
|
+
(s === 0 || mi.includes(r[s - 1])) && (f === r.length || mi.includes(r[f])) ? r = (s === 0 ? "" : r.substring(0, s)) + r.substring(f + 1) : s = f;
|
|
2228
2210
|
}
|
|
2229
2211
|
}
|
|
2230
2212
|
return r === "" ? null : r;
|
|
2231
2213
|
}
|
|
2232
|
-
function
|
|
2214
|
+
function yi(e, t = !1) {
|
|
2233
2215
|
var n = t ? " !important;" : ";", r = "";
|
|
2234
2216
|
for (var i of Object.keys(e)) {
|
|
2235
2217
|
var o = e[i];
|
|
@@ -2237,205 +2219,206 @@ function Ei(e, t = !1) {
|
|
|
2237
2219
|
}
|
|
2238
2220
|
return r;
|
|
2239
2221
|
}
|
|
2240
|
-
function
|
|
2222
|
+
function dr(e) {
|
|
2241
2223
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
2242
2224
|
}
|
|
2243
|
-
function
|
|
2225
|
+
function Us(e, t) {
|
|
2244
2226
|
if (t) {
|
|
2245
2227
|
var n = "", r, i;
|
|
2246
2228
|
if (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {
|
|
2247
2229
|
e = String(e).replaceAll(/\/\*.*?\*\//g, "").trim();
|
|
2248
|
-
var o = !1,
|
|
2249
|
-
r &&
|
|
2250
|
-
var
|
|
2251
|
-
const
|
|
2252
|
-
for (var
|
|
2253
|
-
var
|
|
2254
|
-
if (f ?
|
|
2255
|
-
if (
|
|
2256
|
-
else if (
|
|
2257
|
-
if (
|
|
2258
|
-
var h =
|
|
2259
|
-
if (!
|
|
2260
|
-
|
|
2261
|
-
var b = e.substring(
|
|
2230
|
+
var o = !1, s = 0, f = !1, u = [];
|
|
2231
|
+
r && u.push(...Object.keys(r).map(dr)), i && u.push(...Object.keys(i).map(dr));
|
|
2232
|
+
var _ = 0, p = -1;
|
|
2233
|
+
const y = e.length;
|
|
2234
|
+
for (var d = 0; d < y; d++) {
|
|
2235
|
+
var c = e[d];
|
|
2236
|
+
if (f ? c === "/" && e[d - 1] === "*" && (f = !1) : o ? o === c && (o = !1) : c === "/" && e[d + 1] === "*" ? f = !0 : c === '"' || c === "'" ? o = c : c === "(" ? s++ : c === ")" && s--, !f && o === !1 && s === 0) {
|
|
2237
|
+
if (c === ":" && p === -1) p = d;
|
|
2238
|
+
else if (c === ";" || d === y - 1) {
|
|
2239
|
+
if (p !== -1) {
|
|
2240
|
+
var h = dr(e.substring(_, p).trim());
|
|
2241
|
+
if (!u.includes(h)) {
|
|
2242
|
+
c !== ";" && d++;
|
|
2243
|
+
var b = e.substring(_, d).trim();
|
|
2262
2244
|
n += " " + b + ";";
|
|
2263
2245
|
}
|
|
2264
2246
|
}
|
|
2265
|
-
|
|
2247
|
+
_ = d + 1, p = -1;
|
|
2266
2248
|
}
|
|
2267
2249
|
}
|
|
2268
2250
|
}
|
|
2269
2251
|
}
|
|
2270
|
-
return r && (n +=
|
|
2252
|
+
return r && (n += yi(r)), i && (n += yi(i, !0)), n = n.trim(), n === "" ? null : n;
|
|
2271
2253
|
}
|
|
2272
2254
|
return e == null ? null : String(e);
|
|
2273
2255
|
}
|
|
2274
|
-
function
|
|
2275
|
-
var
|
|
2276
|
-
if (
|
|
2277
|
-
var f =
|
|
2278
|
-
(!
|
|
2279
|
-
} else if (o && i !== o) for (var
|
|
2280
|
-
var
|
|
2281
|
-
(i == null ||
|
|
2256
|
+
function Gs(e, t, n, r, i, o) {
|
|
2257
|
+
var s = e[wr];
|
|
2258
|
+
if (A || s !== n || s === void 0) {
|
|
2259
|
+
var f = zs(n, r, o);
|
|
2260
|
+
(!A || f !== e.getAttribute("class")) && (f == null ? e.removeAttribute("class") : t ? e.className = f : e.setAttribute("class", f)), e[wr] = n;
|
|
2261
|
+
} else if (o && i !== o) for (var u in o) {
|
|
2262
|
+
var _ = !!o[u];
|
|
2263
|
+
(i == null || _ !== !!i[u]) && e.classList.toggle(u, _);
|
|
2282
2264
|
}
|
|
2283
2265
|
return o;
|
|
2284
2266
|
}
|
|
2285
|
-
function
|
|
2267
|
+
function hr(e, t = {}, n, r) {
|
|
2286
2268
|
for (var i in n) {
|
|
2287
2269
|
var o = n[i];
|
|
2288
2270
|
t[i] !== o && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, o, r));
|
|
2289
2271
|
}
|
|
2290
2272
|
}
|
|
2291
|
-
function
|
|
2292
|
-
var i = e[
|
|
2293
|
-
if (
|
|
2294
|
-
var o =
|
|
2295
|
-
(!
|
|
2296
|
-
} else r && (Array.isArray(r) ? (
|
|
2273
|
+
function ki(e, t, n, r) {
|
|
2274
|
+
var i = e[mr];
|
|
2275
|
+
if (A || i !== t) {
|
|
2276
|
+
var o = Us(t, r);
|
|
2277
|
+
(!A || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e[mr] = t;
|
|
2278
|
+
} else r && (Array.isArray(r) ? (hr(e, n?.[0], r[0]), hr(e, n?.[1], r[1], "important")) : hr(e, n, r));
|
|
2297
2279
|
return r;
|
|
2298
2280
|
}
|
|
2299
|
-
var
|
|
2300
|
-
function
|
|
2301
|
-
var i =
|
|
2302
|
-
if (
|
|
2281
|
+
var Ys = /* @__PURE__ */ Symbol("is custom element"), Ks = /* @__PURE__ */ Symbol("is html"), Xs = Sa ? "link" : "LINK";
|
|
2282
|
+
function G(e, t, n, r) {
|
|
2283
|
+
var i = Zs(e);
|
|
2284
|
+
if (A && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Xs)) {
|
|
2303
2285
|
r || void 0;
|
|
2304
2286
|
return;
|
|
2305
2287
|
}
|
|
2306
|
-
|
|
2288
|
+
var o = i[t];
|
|
2289
|
+
o !== (i[t] = n) && (t === "loading" && (e[Ea] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Js(e).has(t) ? e[t] = n : A && (typeof n == "number" || typeof n == "boolean") && o === String(n) || e.setAttribute(t, n));
|
|
2307
2290
|
}
|
|
2308
|
-
function
|
|
2309
|
-
return e[
|
|
2310
|
-
[
|
|
2311
|
-
[
|
|
2291
|
+
function Zs(e) {
|
|
2292
|
+
return e[br] ?? (e[br] = {
|
|
2293
|
+
[Ys]: e.nodeName.includes("-"),
|
|
2294
|
+
[Ks]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
2312
2295
|
});
|
|
2313
2296
|
}
|
|
2314
|
-
var
|
|
2315
|
-
function
|
|
2316
|
-
var t = e.getAttribute("is") || e.nodeName, n =
|
|
2297
|
+
var $i = /* @__PURE__ */ new Map();
|
|
2298
|
+
function Js(e) {
|
|
2299
|
+
var t = e.getAttribute("is") || e.nodeName, n = $i.get(t);
|
|
2317
2300
|
if (n) return n;
|
|
2318
|
-
|
|
2301
|
+
$i.set(t, n = /* @__PURE__ */ new Set());
|
|
2319
2302
|
for (var r, i = e, o = Element.prototype; o !== i; ) {
|
|
2320
|
-
r =
|
|
2321
|
-
for (var
|
|
2322
|
-
i =
|
|
2303
|
+
r = _a(i);
|
|
2304
|
+
for (var s in r) r[s].set && s !== "innerHTML" && s !== "textContent" && s !== "innerText" && n.add(s);
|
|
2305
|
+
i = Ri(i);
|
|
2323
2306
|
}
|
|
2324
2307
|
return n;
|
|
2325
2308
|
}
|
|
2326
|
-
var
|
|
2309
|
+
var Mo, $t = /* @__PURE__ */ new WeakMap(), Fn = /* @__PURE__ */ new WeakMap(), vr = /* @__PURE__ */ new WeakMap(), Ei = /* @__PURE__ */ new WeakSet(), Ro = class {
|
|
2327
2310
|
constructor(e) {
|
|
2328
|
-
|
|
2311
|
+
jr(this, Ei), S(this, $t, /* @__PURE__ */ new WeakMap()), S(this, Fn, void 0), S(this, vr, void 0), E(vr, this, e);
|
|
2329
2312
|
}
|
|
2330
2313
|
observe(e, t) {
|
|
2331
|
-
var n = l(
|
|
2332
|
-
return n.add(t), l(
|
|
2333
|
-
var r = l(
|
|
2334
|
-
r.delete(t), r.size === 0 && (l(
|
|
2314
|
+
var n = l($t, this).get(e) || /* @__PURE__ */ new Set();
|
|
2315
|
+
return n.add(t), l($t, this).set(e, n), $(Ei, this, Qs).call(this).observe(e, l(vr, this)), () => {
|
|
2316
|
+
var r = l($t, this).get(e);
|
|
2317
|
+
r.delete(t), r.size === 0 && (l($t, this).delete(e), l(Fn, this).unobserve(e));
|
|
2335
2318
|
};
|
|
2336
2319
|
}
|
|
2337
2320
|
};
|
|
2338
|
-
|
|
2339
|
-
function
|
|
2340
|
-
return l(
|
|
2321
|
+
Mo = Ro;
|
|
2322
|
+
function Qs() {
|
|
2323
|
+
return l(Fn, this) ?? E(Fn, this, new ResizeObserver((e) => {
|
|
2341
2324
|
for (var t of e) {
|
|
2342
|
-
|
|
2343
|
-
for (var n of l(
|
|
2325
|
+
Mo.entries.set(t.target, t);
|
|
2326
|
+
for (var n of l($t, this).get(t.target) || []) n(t);
|
|
2344
2327
|
}
|
|
2345
2328
|
}));
|
|
2346
2329
|
}
|
|
2347
|
-
|
|
2348
|
-
function
|
|
2349
|
-
return e === t || e?.[
|
|
2350
|
-
}
|
|
2351
|
-
function
|
|
2352
|
-
var i =
|
|
2353
|
-
return
|
|
2354
|
-
var
|
|
2355
|
-
return
|
|
2356
|
-
|
|
2357
|
-
|
|
2330
|
+
N(Ro, "entries", /* @__PURE__ */ new WeakMap());
|
|
2331
|
+
function _r(e, t) {
|
|
2332
|
+
return e === t || e?.[Kt] === t;
|
|
2333
|
+
}
|
|
2334
|
+
function Ti(e = Pr(), t, n, r) {
|
|
2335
|
+
var i = B.r, o = T;
|
|
2336
|
+
return fo(() => {
|
|
2337
|
+
var s, f;
|
|
2338
|
+
return Br(() => {
|
|
2339
|
+
s = f, f = r?.() || [], St(() => {
|
|
2340
|
+
_r(n(...f), e) || (t(e, ...f), s && _r(n(...s), e) && t(null, ...s));
|
|
2358
2341
|
});
|
|
2359
2342
|
}), () => {
|
|
2360
|
-
let
|
|
2361
|
-
for (;
|
|
2362
|
-
const
|
|
2363
|
-
f &&
|
|
2364
|
-
},
|
|
2365
|
-
|
|
2366
|
-
|
|
2343
|
+
let u = o;
|
|
2344
|
+
for (; u !== i && u.parent !== null && u.parent.f & 33554432; ) u = u.parent;
|
|
2345
|
+
const _ = () => {
|
|
2346
|
+
f && _r(n(...f), e) && t(null, ...f);
|
|
2347
|
+
}, p = u.teardown;
|
|
2348
|
+
u.teardown = () => {
|
|
2349
|
+
_(), p?.();
|
|
2367
2350
|
};
|
|
2368
2351
|
};
|
|
2369
2352
|
}), e;
|
|
2370
2353
|
}
|
|
2371
|
-
var
|
|
2372
|
-
function
|
|
2373
|
-
var t =
|
|
2354
|
+
var Sn = !1;
|
|
2355
|
+
function el(e) {
|
|
2356
|
+
var t = Sn;
|
|
2374
2357
|
try {
|
|
2375
|
-
return
|
|
2358
|
+
return Sn = !1, [e(), Sn];
|
|
2376
2359
|
} finally {
|
|
2377
|
-
|
|
2360
|
+
Sn = t;
|
|
2378
2361
|
}
|
|
2379
2362
|
}
|
|
2380
|
-
function
|
|
2381
|
-
var i = !
|
|
2382
|
-
let
|
|
2363
|
+
function Si(e, t, n, r) {
|
|
2364
|
+
var i = !zn || (n & 2) !== 0, o = (n & 8) !== 0, s = (n & 16) !== 0, f = r, u = !0, _ = void 0, p = () => s && i ? (_ ?? (_ = /* @__PURE__ */ tn(r)), a(_)) : (u && (u = !1, f = s ? St(r) : r), f);
|
|
2365
|
+
let d;
|
|
2383
2366
|
if (o) {
|
|
2384
|
-
var
|
|
2385
|
-
|
|
2367
|
+
var c = Kt in e || Ni in e;
|
|
2368
|
+
d = ct(e, t)?.set ?? (c && t in e ? (w) => e[t] = w : void 0);
|
|
2386
2369
|
}
|
|
2387
2370
|
var h, b = !1;
|
|
2388
|
-
o ? [h, b] =
|
|
2389
|
-
var
|
|
2390
|
-
if (i ?
|
|
2391
|
-
var
|
|
2392
|
-
return
|
|
2393
|
-
} :
|
|
2394
|
-
var
|
|
2395
|
-
return
|
|
2396
|
-
}, i && (n & 4) === 0) return
|
|
2397
|
-
if (
|
|
2371
|
+
o ? [h, b] = el(() => e[t]) : h = e[t], h === void 0 && r !== void 0 && (h = p(), d && (i && Da(t), d(h)));
|
|
2372
|
+
var y;
|
|
2373
|
+
if (i ? y = () => {
|
|
2374
|
+
var w = e[t];
|
|
2375
|
+
return w === void 0 ? p() : (u = !0, w);
|
|
2376
|
+
} : y = () => {
|
|
2377
|
+
var w = e[t];
|
|
2378
|
+
return w !== void 0 && (f = void 0), w === void 0 ? f : w;
|
|
2379
|
+
}, i && (n & 4) === 0) return y;
|
|
2380
|
+
if (d) {
|
|
2398
2381
|
var g = e.$$legacy;
|
|
2399
|
-
return (function(
|
|
2400
|
-
return arguments.length > 0 ? ((!i || !
|
|
2382
|
+
return (function(w, D) {
|
|
2383
|
+
return arguments.length > 0 ? ((!i || !D || g || b) && d(D ? y() : w), w) : y();
|
|
2401
2384
|
});
|
|
2402
2385
|
}
|
|
2403
|
-
var
|
|
2404
|
-
o &&
|
|
2405
|
-
var
|
|
2406
|
-
return (function(
|
|
2386
|
+
var m = !1, L = ((n & 1) !== 0 ? tn : Dr)(() => (m = !1, y()));
|
|
2387
|
+
o && a(L);
|
|
2388
|
+
var H = T;
|
|
2389
|
+
return (function(w, D) {
|
|
2407
2390
|
if (arguments.length > 0) {
|
|
2408
|
-
const
|
|
2409
|
-
return L
|
|
2391
|
+
const W = D ? a(L) : i && o ? ft(w) : w;
|
|
2392
|
+
return O(L, W), m = !0, f !== void 0 && (f = W), w;
|
|
2410
2393
|
}
|
|
2411
|
-
return Fe &&
|
|
2394
|
+
return Fe && m || (H.f & 16384) !== 0 ? L.v : a(L);
|
|
2412
2395
|
});
|
|
2413
2396
|
}
|
|
2414
|
-
function
|
|
2415
|
-
return new
|
|
2397
|
+
function tl(e) {
|
|
2398
|
+
return new nl(e);
|
|
2416
2399
|
}
|
|
2417
|
-
var
|
|
2400
|
+
var ot = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), nl = class {
|
|
2418
2401
|
constructor(e) {
|
|
2419
|
-
|
|
2402
|
+
S(this, ot, void 0), S(this, Me, void 0);
|
|
2420
2403
|
var t = /* @__PURE__ */ new Map(), n = (i, o) => {
|
|
2421
|
-
var
|
|
2422
|
-
return t.set(i,
|
|
2404
|
+
var s = /* @__PURE__ */ to(o, !1, !1);
|
|
2405
|
+
return t.set(i, s), s;
|
|
2423
2406
|
};
|
|
2424
2407
|
const r = new Proxy({
|
|
2425
2408
|
...e.props || {},
|
|
2426
2409
|
$$events: {}
|
|
2427
2410
|
}, {
|
|
2428
2411
|
get(i, o) {
|
|
2429
|
-
return
|
|
2412
|
+
return a(t.get(o) ?? n(o, Reflect.get(i, o)));
|
|
2430
2413
|
},
|
|
2431
2414
|
has(i, o) {
|
|
2432
|
-
return o ===
|
|
2415
|
+
return o === Ni ? !0 : (a(t.get(o) ?? n(o, Reflect.get(i, o))), Reflect.has(i, o));
|
|
2433
2416
|
},
|
|
2434
|
-
set(i, o,
|
|
2435
|
-
return
|
|
2417
|
+
set(i, o, s) {
|
|
2418
|
+
return O(t.get(o) ?? n(o, s), s), Reflect.set(i, o, s);
|
|
2436
2419
|
}
|
|
2437
2420
|
});
|
|
2438
|
-
|
|
2421
|
+
E(Me, this, (e.hydrate ? Ps : Ao)(e.component, {
|
|
2439
2422
|
target: e.target,
|
|
2440
2423
|
anchor: e.anchor,
|
|
2441
2424
|
props: r,
|
|
@@ -2443,9 +2426,9 @@ var nt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), rl =
|
|
|
2443
2426
|
intro: e.intro ?? !1,
|
|
2444
2427
|
recover: e.recover,
|
|
2445
2428
|
transformError: e.transformError
|
|
2446
|
-
})), !Be && (!e?.props?.$$host || e.sync === !1) &&
|
|
2429
|
+
})), !Be && (!e?.props?.$$host || e.sync === !1) && rn(), E(ot, this, r.$$events);
|
|
2447
2430
|
for (const i of Object.keys(l(Me, this)))
|
|
2448
|
-
i === "$set" || i === "$destroy" || i === "$on" ||
|
|
2431
|
+
i === "$set" || i === "$destroy" || i === "$on" || Qt(this, i, {
|
|
2449
2432
|
get() {
|
|
2450
2433
|
return l(Me, this)[i];
|
|
2451
2434
|
},
|
|
@@ -2457,26 +2440,26 @@ var nt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), rl =
|
|
|
2457
2440
|
l(Me, this).$set = (i) => {
|
|
2458
2441
|
Object.assign(r, i);
|
|
2459
2442
|
}, l(Me, this).$destroy = () => {
|
|
2460
|
-
|
|
2443
|
+
qs(l(Me, this));
|
|
2461
2444
|
};
|
|
2462
2445
|
}
|
|
2463
2446
|
$set(e) {
|
|
2464
2447
|
l(Me, this).$set(e);
|
|
2465
2448
|
}
|
|
2466
2449
|
$on(e, t) {
|
|
2467
|
-
l(
|
|
2450
|
+
l(ot, this)[e] = l(ot, this)[e] || [];
|
|
2468
2451
|
const n = (...r) => t.call(this, ...r);
|
|
2469
|
-
return l(
|
|
2470
|
-
l(
|
|
2452
|
+
return l(ot, this)[e].push(n), () => {
|
|
2453
|
+
l(ot, this)[e] = l(ot, this)[e].filter((r) => r !== n);
|
|
2471
2454
|
};
|
|
2472
2455
|
}
|
|
2473
2456
|
$destroy() {
|
|
2474
2457
|
l(Me, this).$destroy();
|
|
2475
2458
|
}
|
|
2476
|
-
},
|
|
2477
|
-
typeof HTMLElement == "function" && (
|
|
2459
|
+
}, Co;
|
|
2460
|
+
typeof HTMLElement == "function" && (Co = class extends HTMLElement {
|
|
2478
2461
|
constructor(e, t, n) {
|
|
2479
|
-
super(),
|
|
2462
|
+
super(), N(this, "$$ctor", void 0), N(this, "$$s", void 0), N(this, "$$c", void 0), N(this, "$$cn", !1), N(this, "$$d", {}), N(this, "$$r", !1), N(this, "$$p_d", {}), N(this, "$$l", {}), N(this, "$$l_u", /* @__PURE__ */ new Map()), N(this, "$$me", void 0), N(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, n && (this.$$shadowRoot = this.attachShadow(n));
|
|
2480
2463
|
}
|
|
2481
2464
|
addEventListener(e, t, n) {
|
|
2482
2465
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
@@ -2495,19 +2478,19 @@ typeof HTMLElement == "function" && (No = class extends HTMLElement {
|
|
|
2495
2478
|
if (this.$$cn = !0, !this.$$c) {
|
|
2496
2479
|
let e = function(r) {
|
|
2497
2480
|
return (i) => {
|
|
2498
|
-
const o =
|
|
2481
|
+
const o = Gn("slot");
|
|
2499
2482
|
r !== "default" && (o.name = r), he(i, o);
|
|
2500
2483
|
};
|
|
2501
2484
|
};
|
|
2502
2485
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2503
|
-
const t = {}, n =
|
|
2486
|
+
const t = {}, n = rl(this);
|
|
2504
2487
|
for (const r of this.$$s) r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
|
|
2505
2488
|
for (const r of this.attributes) {
|
|
2506
2489
|
const i = this.$$g_p(r.name);
|
|
2507
|
-
i in this.$$d || (this.$$d[i] =
|
|
2490
|
+
i in this.$$d || (this.$$d[i] = Rn(i, r.value, this.$$p_d, "toProp"));
|
|
2508
2491
|
}
|
|
2509
2492
|
for (const r in this.$$p_d) !(r in this.$$d) && this[r] !== void 0 && (this.$$d[r] = this[r], delete this[r]);
|
|
2510
|
-
this.$$c =
|
|
2493
|
+
this.$$c = tl({
|
|
2511
2494
|
component: this.$$ctor,
|
|
2512
2495
|
target: this.$$shadowRoot || this,
|
|
2513
2496
|
props: {
|
|
@@ -2515,13 +2498,13 @@ typeof HTMLElement == "function" && (No = class extends HTMLElement {
|
|
|
2515
2498
|
$$slots: t,
|
|
2516
2499
|
$$host: this
|
|
2517
2500
|
}
|
|
2518
|
-
}), this.$$me =
|
|
2519
|
-
|
|
2501
|
+
}), this.$$me = ds(() => {
|
|
2502
|
+
Br(() => {
|
|
2520
2503
|
this.$$r = !0;
|
|
2521
|
-
for (const r of
|
|
2504
|
+
for (const r of Cn(this.$$c)) {
|
|
2522
2505
|
if (!this.$$p_d[r]?.reflect) continue;
|
|
2523
2506
|
this.$$d[r] = this.$$c[r];
|
|
2524
|
-
const i =
|
|
2507
|
+
const i = Rn(r, this.$$d[r], this.$$p_d, "toAttribute");
|
|
2525
2508
|
i == null ? this.removeAttribute(this.$$p_d[r].attribute || r) : this.setAttribute(this.$$p_d[r].attribute || r, i);
|
|
2526
2509
|
}
|
|
2527
2510
|
this.$$r = !1;
|
|
@@ -2535,7 +2518,7 @@ typeof HTMLElement == "function" && (No = class extends HTMLElement {
|
|
|
2535
2518
|
}
|
|
2536
2519
|
}
|
|
2537
2520
|
attributeChangedCallback(e, t, n) {
|
|
2538
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
2521
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Rn(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2539
2522
|
}
|
|
2540
2523
|
disconnectedCallback() {
|
|
2541
2524
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2543,10 +2526,10 @@ typeof HTMLElement == "function" && (No = class extends HTMLElement {
|
|
|
2543
2526
|
});
|
|
2544
2527
|
}
|
|
2545
2528
|
$$g_p(e) {
|
|
2546
|
-
return
|
|
2529
|
+
return Cn(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2547
2530
|
}
|
|
2548
2531
|
});
|
|
2549
|
-
function
|
|
2532
|
+
function Rn(e, t, n, r) {
|
|
2550
2533
|
const i = n[e]?.type;
|
|
2551
2534
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
|
|
2552
2535
|
if (r === "toAttribute") switch (i) {
|
|
@@ -2572,79 +2555,79 @@ function Ln(e, t, n, r) {
|
|
|
2572
2555
|
return t;
|
|
2573
2556
|
}
|
|
2574
2557
|
}
|
|
2575
|
-
function
|
|
2558
|
+
function rl(e) {
|
|
2576
2559
|
const t = {};
|
|
2577
2560
|
return e.childNodes.forEach((n) => {
|
|
2578
2561
|
t[n.slot || "default"] = !0;
|
|
2579
2562
|
}), t;
|
|
2580
2563
|
}
|
|
2581
|
-
function
|
|
2582
|
-
let
|
|
2564
|
+
function il(e, t, n, r, i, o) {
|
|
2565
|
+
let s = class extends Co {
|
|
2583
2566
|
constructor() {
|
|
2584
2567
|
super(e, n, i), this.$$p_d = t;
|
|
2585
2568
|
}
|
|
2586
2569
|
static get observedAttributes() {
|
|
2587
|
-
return
|
|
2570
|
+
return Cn(t).map((f) => (t[f].attribute || f).toLowerCase());
|
|
2588
2571
|
}
|
|
2589
2572
|
};
|
|
2590
|
-
return
|
|
2591
|
-
|
|
2573
|
+
return Cn(t).forEach((f) => {
|
|
2574
|
+
Qt(s.prototype, f, {
|
|
2592
2575
|
get() {
|
|
2593
2576
|
return this.$$c && f in this.$$c ? this.$$c[f] : this.$$d[f];
|
|
2594
2577
|
},
|
|
2595
|
-
set(
|
|
2596
|
-
|
|
2597
|
-
var
|
|
2598
|
-
|
|
2578
|
+
set(u) {
|
|
2579
|
+
u = Rn(f, u, t), this.$$d[f] = u;
|
|
2580
|
+
var _ = this.$$c;
|
|
2581
|
+
_ && (ct(_, f)?.get ? _[f] = u : _.$set({ [f]: u }));
|
|
2599
2582
|
}
|
|
2600
2583
|
});
|
|
2601
2584
|
}), r.forEach((f) => {
|
|
2602
|
-
|
|
2585
|
+
Qt(s.prototype, f, { get() {
|
|
2603
2586
|
return this.$$c?.[f];
|
|
2604
2587
|
} });
|
|
2605
|
-
}), o && (
|
|
2588
|
+
}), o && (s = o(s)), e.element = s, s;
|
|
2606
2589
|
}
|
|
2607
|
-
function
|
|
2590
|
+
function ol(e) {
|
|
2608
2591
|
return e.key === "ContextMenu" ? !0 : e.key === "F10" && e.shiftKey === !0;
|
|
2609
2592
|
}
|
|
2610
|
-
function
|
|
2593
|
+
function al({ key: e, activeIndex: t, count: n, direction: r }) {
|
|
2611
2594
|
if (n <= 0) return null;
|
|
2612
|
-
const i =
|
|
2613
|
-
return e === o ? (i + 1) % n : e ===
|
|
2595
|
+
const i = Rr(t, n), o = r === "rtl" ? "ArrowLeft" : "ArrowRight", s = r === "rtl" ? "ArrowRight" : "ArrowLeft";
|
|
2596
|
+
return e === o ? (i + 1) % n : e === s ? (i - 1 + n) % n : e === "Home" ? 0 : e === "End" ? n - 1 : null;
|
|
2614
2597
|
}
|
|
2615
|
-
function
|
|
2598
|
+
function Rr(e, t) {
|
|
2616
2599
|
return t <= 0 || !Number.isFinite(e) || e < 0 ? 0 : Math.min(Math.trunc(e), t - 1);
|
|
2617
2600
|
}
|
|
2618
|
-
function
|
|
2601
|
+
function sl(e, t) {
|
|
2619
2602
|
return e.bottom < 0 || e.top > t.height || e.right < 0 || e.left > t.width;
|
|
2620
2603
|
}
|
|
2621
|
-
var
|
|
2622
|
-
function
|
|
2604
|
+
var ll = 2e3;
|
|
2605
|
+
function fl(e, t, n = ll) {
|
|
2623
2606
|
if (e === null) return !1;
|
|
2624
2607
|
const r = t - e;
|
|
2625
2608
|
return r < 0 ? !0 : r < n;
|
|
2626
2609
|
}
|
|
2627
|
-
function
|
|
2610
|
+
function ul(e, t, n = {
|
|
2628
2611
|
width: 0,
|
|
2629
2612
|
height: 0
|
|
2630
2613
|
}, r = 8) {
|
|
2631
|
-
const o = e.left + (e.right - e.left) / 2 - n.width / 2,
|
|
2614
|
+
const o = e.left + (e.right - e.left) / 2 - n.width / 2, s = e.top - r - n.height, f = s < 4 && e.bottom + r + n.height <= t.height, u = f ? e.bottom + r : s;
|
|
2632
2615
|
return {
|
|
2633
|
-
x:
|
|
2634
|
-
y:
|
|
2616
|
+
x: Ai(o, n.width, t.width, 4),
|
|
2617
|
+
y: Ai(u, n.height, t.height, 4),
|
|
2635
2618
|
below: f
|
|
2636
2619
|
};
|
|
2637
2620
|
}
|
|
2638
|
-
function
|
|
2621
|
+
function Ai(e, t, n, r) {
|
|
2639
2622
|
const i = n - t - r;
|
|
2640
2623
|
return i <= r ? r : Math.min(Math.max(e, r), i);
|
|
2641
2624
|
}
|
|
2642
|
-
function
|
|
2625
|
+
function cl(e) {
|
|
2643
2626
|
if (!e || typeof e != "object") return !1;
|
|
2644
2627
|
const t = e;
|
|
2645
2628
|
return !(typeof t.id != "string" || t.id.trim().length === 0 || typeof t.label != "string" || t.label.trim().length === 0 || t.label.length > 40 || typeof t.run != "function" || t.iconSvg !== void 0 && typeof t.iconSvg != "string" || t.tooltip !== void 0 && typeof t.tooltip != "string" || t.isAvailable !== void 0 && typeof t.isAvailable != "function");
|
|
2646
2629
|
}
|
|
2647
|
-
function
|
|
2630
|
+
function dl(e) {
|
|
2648
2631
|
if (typeof e.isAvailable != "function") return !0;
|
|
2649
2632
|
try {
|
|
2650
2633
|
return e.isAvailable() !== !1;
|
|
@@ -2652,11 +2635,11 @@ function hl(e) {
|
|
|
2652
2635
|
return console.warn(`[AnnotationToolbar] Selection action "${e.id}" failed its availability check:`, t), !1;
|
|
2653
2636
|
}
|
|
2654
2637
|
}
|
|
2655
|
-
function
|
|
2638
|
+
function hl(e) {
|
|
2656
2639
|
if (!Array.isArray(e)) return [];
|
|
2657
2640
|
const t = /* @__PURE__ */ new Set(), n = [];
|
|
2658
2641
|
return e.forEach((r, i) => {
|
|
2659
|
-
if (!
|
|
2642
|
+
if (!cl(r)) {
|
|
2660
2643
|
console.warn(`[AnnotationToolbar] Ignoring invalid selection action at index ${i}. Expected { id, label, run } with valid types.`);
|
|
2661
2644
|
return;
|
|
2662
2645
|
}
|
|
@@ -2664,10 +2647,10 @@ function vl(e) {
|
|
|
2664
2647
|
console.warn(`[AnnotationToolbar] Ignoring duplicate selection action id "${r.id}".`);
|
|
2665
2648
|
return;
|
|
2666
2649
|
}
|
|
2667
|
-
|
|
2650
|
+
dl(r) && (t.add(r.id), n.push(r));
|
|
2668
2651
|
}), n;
|
|
2669
2652
|
}
|
|
2670
|
-
function
|
|
2653
|
+
function vl(e, t) {
|
|
2671
2654
|
if (!e) return !1;
|
|
2672
2655
|
const n = t?.canRequestTool;
|
|
2673
2656
|
if (typeof n != "function") return !1;
|
|
@@ -2677,15 +2660,15 @@ function _l(e, t) {
|
|
|
2677
2660
|
return console.warn("[AnnotationToolbar] Read-aloud failed its availability check:", r), !1;
|
|
2678
2661
|
}
|
|
2679
2662
|
}
|
|
2680
|
-
var
|
|
2663
|
+
var _l = (e) => {
|
|
2681
2664
|
const t = [];
|
|
2682
2665
|
for (const n of e) {
|
|
2683
2666
|
let r = n?.getRootNode?.();
|
|
2684
|
-
for (;
|
|
2667
|
+
for (; Cr(r); )
|
|
2685
2668
|
t.includes(r) || t.push(r), r = r.host.getRootNode?.();
|
|
2686
2669
|
}
|
|
2687
2670
|
return t;
|
|
2688
|
-
},
|
|
2671
|
+
}, pl = (e, t) => {
|
|
2689
2672
|
const n = e.getComposedRanges;
|
|
2690
2673
|
if (typeof n != "function" || t.length === 0) return null;
|
|
2691
2674
|
try {
|
|
@@ -2697,31 +2680,31 @@ var pl = (e) => {
|
|
|
2697
2680
|
return null;
|
|
2698
2681
|
}
|
|
2699
2682
|
}
|
|
2700
|
-
},
|
|
2683
|
+
}, gl = (e) => {
|
|
2701
2684
|
const { startContainer: t, startOffset: n, endContainer: r, endOffset: i } = e, o = t.ownerDocument;
|
|
2702
2685
|
if (!o) return null;
|
|
2703
2686
|
try {
|
|
2704
|
-
const
|
|
2705
|
-
|
|
2687
|
+
const s = o.createRange();
|
|
2688
|
+
s.setStart(t, n);
|
|
2706
2689
|
const f = t.getRootNode();
|
|
2707
2690
|
if (r.getRootNode() === f)
|
|
2708
|
-
return
|
|
2709
|
-
const
|
|
2710
|
-
if (
|
|
2711
|
-
else if (
|
|
2691
|
+
return s.setEnd(r, i), s;
|
|
2692
|
+
const u = la(r, f);
|
|
2693
|
+
if (u) s.setEndBefore(u);
|
|
2694
|
+
else if (Cr(f)) s.setEnd(f, f.childNodes.length);
|
|
2712
2695
|
else return null;
|
|
2713
|
-
return
|
|
2696
|
+
return s;
|
|
2714
2697
|
} catch {
|
|
2715
2698
|
return null;
|
|
2716
2699
|
}
|
|
2717
|
-
},
|
|
2700
|
+
}, bl = (e) => {
|
|
2718
2701
|
if (e.rangeCount === 0) return null;
|
|
2719
|
-
const t = e.getRangeAt(0), n =
|
|
2702
|
+
const t = e.getRangeAt(0), n = pl(e, _l([
|
|
2720
2703
|
e.anchorNode,
|
|
2721
2704
|
e.focusNode,
|
|
2722
2705
|
t.startContainer,
|
|
2723
2706
|
t.endContainer
|
|
2724
|
-
])), r = n ?
|
|
2707
|
+
])), r = n ? gl(n) : null;
|
|
2725
2708
|
return !n || !r ? {
|
|
2726
2709
|
range: t,
|
|
2727
2710
|
text: e.toString()
|
|
@@ -2729,12 +2712,12 @@ var pl = (e) => {
|
|
|
2729
2712
|
range: r,
|
|
2730
2713
|
text: n.startContainer.getRootNode() === n.endContainer.getRootNode() ? e.toString() : r.toString()
|
|
2731
2714
|
};
|
|
2732
|
-
},
|
|
2733
|
-
const t = e.startContainer, n =
|
|
2715
|
+
}, xi = (e) => {
|
|
2716
|
+
const t = e.startContainer, n = oa(t);
|
|
2734
2717
|
if (!n) return null;
|
|
2735
|
-
const r =
|
|
2736
|
-
return !
|
|
2737
|
-
},
|
|
2718
|
+
const r = sa(n, t);
|
|
2719
|
+
return !pr(r, t) || !pr(r, e.endContainer) ? null : r;
|
|
2720
|
+
}, wl = /* @__PURE__ */ Pe('<button class="pie-tool-annotation-toolbar__highlight-swatch svelte-1qnnvrt"><span class="pie-sr-only svelte-1qnnvrt"> </span></button>'), ml = /* @__PURE__ */ Pe('<div class="divider divider-horizontal mx-0 w-px svelte-1qnnvrt"></div> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-1qnnvrt"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-1qnnvrt"><path d="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z"></path></svg></button>', 1), yl = /* @__PURE__ */ Pe('<span class="pie-tool-annotation-toolbar__action-icon svelte-1qnnvrt" aria-hidden="true"></span>'), kl = /* @__PURE__ */ Pe("<button><!></button>"), $l = /* @__PURE__ */ Pe('<div class="divider divider-horizontal mx-0 w-px svelte-1qnnvrt"></div> <!>', 1), El = /* @__PURE__ */ Pe('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--warning svelte-1qnnvrt"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-1qnnvrt"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"></path></svg></button>'), Tl = /* @__PURE__ */ Pe('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--danger svelte-1qnnvrt"> </button>'), Sl = /* @__PURE__ */ Pe('<div class="divider divider-horizontal mx-0 w-px svelte-1qnnvrt"></div> <!> <!>', 1), Al = /* @__PURE__ */ Pe('<div class="pie-tool-annotation-toolbar notranslate svelte-1qnnvrt" role="toolbar" translate="no" tabindex="-1"><!> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-1qnnvrt"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-1qnnvrt"><path d="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z"></path></svg></button> <!> <!> <!></div>'), xl = /* @__PURE__ */ Pe('<div style="display: none;" aria-hidden="true"></div> <!> <div role="status" aria-live="polite" aria-atomic="true" class="pie-sr-only svelte-1qnnvrt"> </div>', 1), Ml = {
|
|
2738
2721
|
hash: "svelte-1qnnvrt",
|
|
2739
2722
|
code: `.pie-tool-annotation-toolbar.svelte-1qnnvrt {position:fixed;z-index:4200;display:flex;gap:0.25rem;padding:0.5rem;border-radius:0.5rem;background:var(--pie-background, #fff);color:var(--pie-text, #111827);
|
|
2740
2723
|
/* WCAG 2.2 SC 1.4.11: this stroke is the only boundary between a floating
|
|
@@ -2774,10 +2757,10 @@ var pl = (e) => {
|
|
|
2774
2757
|
the box is set here to keep an action button the same height as the built-in
|
|
2775
2758
|
ones — a strip of mismatched buttons reads as broken. */.pie-tool-annotation-toolbar__action-icon.svelte-1qnnvrt {display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;}.pie-tool-annotation-toolbar__action-icon.svelte-1qnnvrt svg {width:100%;height:100%;}`
|
|
2776
2759
|
};
|
|
2777
|
-
function
|
|
2778
|
-
|
|
2779
|
-
let n =
|
|
2780
|
-
const i = typeof window < "u", o = "annotationToolbar",
|
|
2760
|
+
function Rl(e, t) {
|
|
2761
|
+
qi(t, !0), Bs(e, Ml);
|
|
2762
|
+
let n = Si(t, "enabled", 7, !0), r = Si(t, "selectionActions", 7, null);
|
|
2763
|
+
const i = typeof window < "u", o = "annotationToolbar", s = 2e3, f = [
|
|
2781
2764
|
"button",
|
|
2782
2765
|
"input",
|
|
2783
2766
|
"select",
|
|
@@ -2787,31 +2770,37 @@ function Cl(e, t) {
|
|
|
2787
2770
|
".pie-tool-toolbar",
|
|
2788
2771
|
'[role="button"]',
|
|
2789
2772
|
'[role="textbox"]'
|
|
2790
|
-
],
|
|
2791
|
-
|
|
2792
|
-
|
|
2773
|
+
], u = 30, _ = {
|
|
2774
|
+
[Ae.YELLOW]: "tools.annotationToolbar.highlightedYellowA11y",
|
|
2775
|
+
[Ae.PINK]: "tools.annotationToolbar.highlightedPinkA11y",
|
|
2776
|
+
[Ae.BLUE]: "tools.annotationToolbar.highlightedBlueA11y",
|
|
2777
|
+
[Ae.GREEN]: "tools.annotationToolbar.highlightedGreenA11y",
|
|
2778
|
+
[Ae.UNDERLINE]: "tools.annotationToolbar.underlinedA11y"
|
|
2779
|
+
};
|
|
2780
|
+
let p = /* @__PURE__ */ F(null), d = /* @__PURE__ */ F(null);
|
|
2781
|
+
const c = /* @__PURE__ */ de(() => fa(a(d))), h = /* @__PURE__ */ de(() => a(d)?.highlightCoordinator ?? null), b = /* @__PURE__ */ de(() => a(d)?.ttsService ?? null), y = /* @__PURE__ */ de(() => a(d)?.elementToolStateStore ?? null), g = /* @__PURE__ */ de(() => [
|
|
2793
2782
|
{
|
|
2794
|
-
name:
|
|
2783
|
+
name: Ae.YELLOW,
|
|
2795
2784
|
hex: "#fde995",
|
|
2796
|
-
label:
|
|
2785
|
+
label: a(c).t("tools.annotationToolbar.highlightYellowA11y")
|
|
2797
2786
|
},
|
|
2798
2787
|
{
|
|
2799
|
-
name:
|
|
2788
|
+
name: Ae.PINK,
|
|
2800
2789
|
hex: "#ff9fae",
|
|
2801
|
-
label:
|
|
2790
|
+
label: a(c).t("tools.annotationToolbar.highlightPinkA11y")
|
|
2802
2791
|
},
|
|
2803
2792
|
{
|
|
2804
|
-
name:
|
|
2793
|
+
name: Ae.BLUE,
|
|
2805
2794
|
hex: "#a7e0f6",
|
|
2806
|
-
label:
|
|
2795
|
+
label: a(c).t("tools.annotationToolbar.highlightBlueA11y")
|
|
2807
2796
|
},
|
|
2808
2797
|
{
|
|
2809
|
-
name:
|
|
2798
|
+
name: Ae.GREEN,
|
|
2810
2799
|
hex: "#a6e1c5",
|
|
2811
|
-
label:
|
|
2800
|
+
label: a(c).t("tools.annotationToolbar.highlightGreenA11y")
|
|
2812
2801
|
}
|
|
2813
2802
|
]);
|
|
2814
|
-
let
|
|
2803
|
+
let m = /* @__PURE__ */ F(null), L = /* @__PURE__ */ F(null), H = /* @__PURE__ */ F(null), w = /* @__PURE__ */ F(ft({
|
|
2815
2804
|
isVisible: !1,
|
|
2816
2805
|
selectedText: "",
|
|
2817
2806
|
selectedRange: null,
|
|
@@ -2820,382 +2809,384 @@ function Cl(e, t) {
|
|
|
2820
2809
|
y: 0,
|
|
2821
2810
|
below: !1
|
|
2822
2811
|
}
|
|
2823
|
-
})),
|
|
2824
|
-
function
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
},
|
|
2812
|
+
})), D = /* @__PURE__ */ F(!1), W = /* @__PURE__ */ F(!1), ne = /* @__PURE__ */ F(""), J = /* @__PURE__ */ F(0), qe = /* @__PURE__ */ F(null), V = null, ze = null, Ue = null, Kn = null, Ot = null, Se = /* @__PURE__ */ F(0), Lt = null;
|
|
2813
|
+
function Nt(v, k) {
|
|
2814
|
+
Ue !== null && clearTimeout(Ue), O(ne, v, !0), Ue = setTimeout(() => {
|
|
2815
|
+
O(ne, ""), Ue = null;
|
|
2816
|
+
}, k);
|
|
2828
2817
|
}
|
|
2829
|
-
function
|
|
2830
|
-
return v.length >
|
|
2818
|
+
function Xn(v) {
|
|
2819
|
+
return v.length > u ? v.substring(0, u) + "..." : v;
|
|
2831
2820
|
}
|
|
2832
|
-
let
|
|
2833
|
-
function
|
|
2834
|
-
const v =
|
|
2835
|
-
return
|
|
2821
|
+
let cn = /* @__PURE__ */ de(() => (a(w).isVisible, hl(r()))), Zn = /* @__PURE__ */ de(() => (a(w).isVisible, vl(a(b), a(d)?.toolkitCoordinator))), dn = /* @__PURE__ */ de(() => a(J) > 0), hn = /* @__PURE__ */ de(() => a(qe) !== null), vn = /* @__PURE__ */ de(() => a(H)?.scopeElement || a(L)?.scopeElement || null);
|
|
2822
|
+
function Jn() {
|
|
2823
|
+
const v = a(p)?.ownerDocument;
|
|
2824
|
+
return a(vn) || v?.documentElement || document.documentElement;
|
|
2836
2825
|
}
|
|
2837
|
-
let
|
|
2838
|
-
const v =
|
|
2839
|
-
return !
|
|
2826
|
+
let Qn = /* @__PURE__ */ de(() => {
|
|
2827
|
+
const v = a(d)?.assessmentId, k = a(d)?.sectionId;
|
|
2828
|
+
return !a(y) || !v || !k ? null : a(y).getGlobalElementId({
|
|
2840
2829
|
assessmentId: v,
|
|
2841
|
-
sectionId:
|
|
2842
|
-
attemptId:
|
|
2843
|
-
itemId:
|
|
2830
|
+
sectionId: k,
|
|
2831
|
+
attemptId: a(d)?.attemptId ?? "",
|
|
2832
|
+
itemId: a(L)?.canonicalItemId || a(L)?.itemId || "",
|
|
2844
2833
|
elementId: ""
|
|
2845
2834
|
});
|
|
2846
2835
|
});
|
|
2847
|
-
function
|
|
2848
|
-
if (!
|
|
2849
|
-
const
|
|
2850
|
-
for (const
|
|
2851
|
-
if (v.startContainer.getRootNode() !==
|
|
2852
|
-
const
|
|
2853
|
-
if (
|
|
2836
|
+
function Oo(v) {
|
|
2837
|
+
if (!a(h)) return null;
|
|
2838
|
+
const k = a(h).getAnnotations();
|
|
2839
|
+
for (const R of k) {
|
|
2840
|
+
if (v.startContainer.getRootNode() !== R.range.startContainer.getRootNode()) continue;
|
|
2841
|
+
const q = v.compareBoundaryPoints(Range.START_TO_START, R.range), ae = v.compareBoundaryPoints(Range.END_TO_END, R.range), It = v.compareBoundaryPoints(Range.START_TO_END, R.range), wn = v.compareBoundaryPoints(Range.END_TO_START, R.range);
|
|
2842
|
+
if (q >= 0 && ae <= 0 || q <= 0 && ae >= 0 || It > 0 && wn < 0) return R.id;
|
|
2854
2843
|
}
|
|
2855
2844
|
return null;
|
|
2856
2845
|
}
|
|
2857
|
-
function
|
|
2858
|
-
const
|
|
2859
|
-
return
|
|
2846
|
+
function Lo(v) {
|
|
2847
|
+
const k = Cr(v) ? v.host : v;
|
|
2848
|
+
return k.nodeType !== Node.ELEMENT_NODE && k.nodeType !== Node.TEXT_NODE ? !1 : !f.some((R) => {
|
|
2860
2849
|
try {
|
|
2861
|
-
return
|
|
2850
|
+
return ta(k, R) !== null;
|
|
2862
2851
|
} catch {
|
|
2863
2852
|
return !1;
|
|
2864
2853
|
}
|
|
2865
2854
|
});
|
|
2866
2855
|
}
|
|
2867
|
-
function
|
|
2868
|
-
return
|
|
2856
|
+
function No(v) {
|
|
2857
|
+
return a(vn) ? pr(a(vn), v.commonAncestorContainer) : !0;
|
|
2869
2858
|
}
|
|
2870
|
-
function
|
|
2871
|
-
if (!(!
|
|
2859
|
+
function er() {
|
|
2860
|
+
if (!(!a(h) || !a(y) || !a(Qn)))
|
|
2872
2861
|
try {
|
|
2873
|
-
const v =
|
|
2874
|
-
|
|
2862
|
+
const v = a(h).exportAnnotations(Jn());
|
|
2863
|
+
a(y).setState(a(Qn), o, v);
|
|
2875
2864
|
} catch (v) {
|
|
2876
|
-
|
|
2865
|
+
or(a(d)?.toolkitCoordinator, "annotationToolbar", "tool-state-save", v);
|
|
2877
2866
|
}
|
|
2878
2867
|
}
|
|
2879
|
-
function
|
|
2880
|
-
if (!(!
|
|
2868
|
+
function Io(v) {
|
|
2869
|
+
if (!(!a(h) || !a(y)))
|
|
2881
2870
|
try {
|
|
2882
|
-
const
|
|
2883
|
-
|
|
2884
|
-
} catch (
|
|
2885
|
-
|
|
2871
|
+
const k = a(y).getState(v, o);
|
|
2872
|
+
a(h).clearAnnotations(), Array.isArray(k) && a(h).importAnnotations(k, Jn()), O(J, a(h).getAnnotations().length, !0);
|
|
2873
|
+
} catch (k) {
|
|
2874
|
+
or(a(d)?.toolkitCoordinator, "annotationToolbar", "tool-state-load", k);
|
|
2886
2875
|
}
|
|
2887
2876
|
}
|
|
2888
|
-
function
|
|
2889
|
-
!i ||
|
|
2890
|
-
|
|
2877
|
+
function tr() {
|
|
2878
|
+
!i || ze !== null || (ze = (typeof requestAnimationFrame == "function" ? requestAnimationFrame : (v) => setTimeout(v, 16))(() => {
|
|
2879
|
+
ze = null, Kr();
|
|
2891
2880
|
}));
|
|
2892
2881
|
}
|
|
2893
|
-
function
|
|
2894
|
-
if (!n() || !i ||
|
|
2895
|
-
const
|
|
2896
|
-
if (!
|
|
2897
|
-
const { range:
|
|
2898
|
-
if (!
|
|
2899
|
-
if (
|
|
2900
|
-
|
|
2901
|
-
const
|
|
2902
|
-
|
|
2903
|
-
|
|
2882
|
+
function Kr(v = {}) {
|
|
2883
|
+
if (!n() || !i || fl(V, Date.now())) return;
|
|
2884
|
+
const k = window.getSelection(), R = k ? bl(k) : null;
|
|
2885
|
+
if (!R) return nt();
|
|
2886
|
+
const { range: q } = R, ae = R.text.trim();
|
|
2887
|
+
if (!ae || !No(q) || !xi(q) || !Lo(q.commonAncestorContainer)) return nt();
|
|
2888
|
+
if (Ot !== null && (v.force || Ot !== ae) && (Ot = null), Ot === ae) return;
|
|
2889
|
+
O(qe, Oo(q), !0);
|
|
2890
|
+
const It = a(w).isVisible;
|
|
2891
|
+
a(w).isVisible = !0, a(w).selectedText = ae, a(w).selectedRange = q.cloneRange(), nr(q), Kn !== ae && (Kn = ae, Nt(a(c).t("tools.annotationToolbar.selectionAvailableA11y", { text: Xn(ae) }), 4e3)), It || (O(W, !0), setTimeout(() => {
|
|
2892
|
+
O(W, !1);
|
|
2904
2893
|
}, 100));
|
|
2905
2894
|
}
|
|
2906
|
-
function
|
|
2895
|
+
function nr(v = a(w).selectedRange) {
|
|
2907
2896
|
if (!v) return;
|
|
2908
|
-
const
|
|
2897
|
+
const k = v.getBoundingClientRect(), R = {
|
|
2909
2898
|
width: window.innerWidth || 0,
|
|
2910
2899
|
height: window.innerHeight || 0
|
|
2911
2900
|
};
|
|
2912
|
-
if (
|
|
2913
|
-
|
|
2901
|
+
if (sl(k, R)) {
|
|
2902
|
+
a(w).isVisible = !1;
|
|
2914
2903
|
return;
|
|
2915
2904
|
}
|
|
2916
|
-
|
|
2905
|
+
a(w).isVisible = !0, a(w).toolbarPosition = ul(k, R, Po());
|
|
2917
2906
|
}
|
|
2918
|
-
function
|
|
2919
|
-
return
|
|
2920
|
-
width:
|
|
2921
|
-
height:
|
|
2907
|
+
function Po() {
|
|
2908
|
+
return a(m) ? {
|
|
2909
|
+
width: a(m).offsetWidth,
|
|
2910
|
+
height: a(m).offsetHeight
|
|
2922
2911
|
} : {
|
|
2923
2912
|
width: 0,
|
|
2924
2913
|
height: 0
|
|
2925
2914
|
};
|
|
2926
2915
|
}
|
|
2927
|
-
function
|
|
2928
|
-
!
|
|
2916
|
+
function _n() {
|
|
2917
|
+
!a(w).isVisible && !a(w).selectedRange || nr();
|
|
2929
2918
|
}
|
|
2930
|
-
function
|
|
2931
|
-
|
|
2919
|
+
function Xr() {
|
|
2920
|
+
V = Date.now();
|
|
2932
2921
|
}
|
|
2933
|
-
function
|
|
2934
|
-
|
|
2922
|
+
function pn() {
|
|
2923
|
+
V = null, tr();
|
|
2935
2924
|
}
|
|
2936
|
-
function
|
|
2937
|
-
|
|
2925
|
+
function gn() {
|
|
2926
|
+
Ot = a(w).selectedText || null, nt();
|
|
2938
2927
|
}
|
|
2939
|
-
function
|
|
2940
|
-
|
|
2928
|
+
function nt() {
|
|
2929
|
+
a(D) && a(b) && (a(b).stop(), O(D, !1)), qo(), a(w).isVisible = !1, a(w).selectedText = "", a(w).selectedRange = null, Kn = null, O(Se, 0);
|
|
2941
2930
|
}
|
|
2942
|
-
function
|
|
2943
|
-
const v =
|
|
2944
|
-
|
|
2931
|
+
function qo() {
|
|
2932
|
+
const v = Lt;
|
|
2933
|
+
Lt = null, !(!v || !Zr()) && typeof v.focus == "function" && v.isConnected && v.focus({ preventScroll: !0 });
|
|
2945
2934
|
}
|
|
2946
|
-
function
|
|
2947
|
-
if (!
|
|
2948
|
-
const v =
|
|
2949
|
-
return !!v &&
|
|
2935
|
+
function Zr() {
|
|
2936
|
+
if (!a(m) || !i) return !1;
|
|
2937
|
+
const v = a(m).getRootNode().activeElement;
|
|
2938
|
+
return !!v && a(m).contains(v);
|
|
2950
2939
|
}
|
|
2951
|
-
function
|
|
2952
|
-
return
|
|
2940
|
+
function rr() {
|
|
2941
|
+
return a(m) ? Array.from(a(m).querySelectorAll("button:not([disabled])")) : [];
|
|
2953
2942
|
}
|
|
2954
|
-
function
|
|
2955
|
-
const v =
|
|
2943
|
+
function Do() {
|
|
2944
|
+
const v = rr();
|
|
2956
2945
|
if (v.length) {
|
|
2957
|
-
if (!
|
|
2958
|
-
const
|
|
2959
|
-
|
|
2946
|
+
if (!Zr() && i) {
|
|
2947
|
+
const k = a(m)?.getRootNode()?.activeElement;
|
|
2948
|
+
Lt = k instanceof HTMLElement ? k : null;
|
|
2960
2949
|
}
|
|
2961
|
-
|
|
2950
|
+
O(Se, Rr(a(Se), v.length), !0), v[a(Se)]?.focus();
|
|
2962
2951
|
}
|
|
2963
2952
|
}
|
|
2964
|
-
function
|
|
2965
|
-
if (!
|
|
2966
|
-
const
|
|
2967
|
-
|
|
2968
|
-
const
|
|
2969
|
-
|
|
2953
|
+
function Jr(v) {
|
|
2954
|
+
if (!a(w).selectedRange || !a(h)) return;
|
|
2955
|
+
const k = a(w).selectedText;
|
|
2956
|
+
a(h).addAnnotation(a(w).selectedRange, v), O(J, a(h).getAnnotations().length, !0), er();
|
|
2957
|
+
const R = _[v];
|
|
2958
|
+
R && Nt(a(c).t(R, { text: Xn(k) }), 3e3), gn();
|
|
2970
2959
|
}
|
|
2971
|
-
function
|
|
2972
|
-
if (!
|
|
2960
|
+
function Wo() {
|
|
2961
|
+
if (!a(qe) || !a(h)) {
|
|
2973
2962
|
console.warn("[AnnotationToolbar] No overlapping annotation to remove");
|
|
2974
2963
|
return;
|
|
2975
2964
|
}
|
|
2976
|
-
const v =
|
|
2965
|
+
const v = a(h).getAnnotation(a(qe));
|
|
2977
2966
|
if (!v) {
|
|
2978
|
-
console.warn("[AnnotationToolbar] Annotation not found:",
|
|
2967
|
+
console.warn("[AnnotationToolbar] Annotation not found:", a(qe));
|
|
2979
2968
|
return;
|
|
2980
2969
|
}
|
|
2981
|
-
const
|
|
2982
|
-
|
|
2970
|
+
const k = v.range.toString();
|
|
2971
|
+
a(h).removeAnnotation(a(qe)), O(J, a(h).getAnnotations().length, !0), er(), Nt(a(c).t("tools.annotationToolbar.removedA11y", { text: Xn(k) }), 3e3), gn();
|
|
2983
2972
|
}
|
|
2984
|
-
function
|
|
2985
|
-
const v =
|
|
2986
|
-
|
|
2973
|
+
function jo() {
|
|
2974
|
+
const v = a(J);
|
|
2975
|
+
a(h)?.clearAnnotations(), O(J, 0), er(), Nt(a(c).plural?.("tools.annotationToolbar.clearedA11y", { count: v }) ?? a(c).t("tools.annotationToolbar.clearedA11y", { count: v }), 3e3), gn();
|
|
2987
2976
|
}
|
|
2988
|
-
function
|
|
2989
|
-
return v.iconSvg ?
|
|
2977
|
+
function Ho(v) {
|
|
2978
|
+
return v.iconSvg ? ua(v.iconSvg) : "";
|
|
2990
2979
|
}
|
|
2991
|
-
function
|
|
2992
|
-
const
|
|
2980
|
+
function Vo(v) {
|
|
2981
|
+
const k = a(w).selectedText, R = a(w).selectedRange;
|
|
2993
2982
|
try {
|
|
2994
2983
|
v.run({
|
|
2995
|
-
text:
|
|
2996
|
-
range:
|
|
2984
|
+
text: k,
|
|
2985
|
+
range: R
|
|
2997
2986
|
});
|
|
2998
|
-
} catch (
|
|
2999
|
-
console.error(`[AnnotationToolbar] Selection action "${v.id}" threw:`,
|
|
2987
|
+
} catch (q) {
|
|
2988
|
+
console.error(`[AnnotationToolbar] Selection action "${v.id}" threw:`, q);
|
|
3000
2989
|
}
|
|
3001
|
-
|
|
2990
|
+
gn();
|
|
3002
2991
|
}
|
|
3003
|
-
async function
|
|
3004
|
-
if (!(
|
|
3005
|
-
|
|
2992
|
+
async function Fo() {
|
|
2993
|
+
if (!(a(D) || !a(w).selectedRange || !a(b) || !a(Zn))) {
|
|
2994
|
+
O(D, !0);
|
|
3006
2995
|
try {
|
|
3007
|
-
const v =
|
|
3008
|
-
await
|
|
3009
|
-
contentRoot:
|
|
3010
|
-
language:
|
|
3011
|
-
catalogContext:
|
|
2996
|
+
const v = a(w).selectedRange;
|
|
2997
|
+
await a(b).speak(v, {
|
|
2998
|
+
contentRoot: xi(v) ?? Jn(),
|
|
2999
|
+
language: a(d)?.contentLanguage,
|
|
3000
|
+
catalogContext: ea(v.startContainer, a(d))
|
|
3012
3001
|
});
|
|
3013
3002
|
} catch (v) {
|
|
3014
|
-
|
|
3003
|
+
aa(v) ? Nt(a(c).t("tools.textToSpeech.initFailed"), 5e3) : or(a(d)?.toolkitCoordinator, "textToSpeech", "tool-playback", v);
|
|
3015
3004
|
} finally {
|
|
3016
|
-
|
|
3005
|
+
O(D, !1);
|
|
3017
3006
|
}
|
|
3018
3007
|
}
|
|
3019
3008
|
}
|
|
3020
|
-
function
|
|
3021
|
-
if (v
|
|
3022
|
-
v.
|
|
3023
|
-
|
|
3009
|
+
function Qr(v) {
|
|
3010
|
+
if (!ca(v)) {
|
|
3011
|
+
if (v.key === "Escape" && a(w).isVisible) {
|
|
3012
|
+
v.preventDefault(), nt();
|
|
3013
|
+
return;
|
|
3014
|
+
}
|
|
3015
|
+
ol(v) && (a(w).isVisible || Kr({ force: !0 }), a(w).isVisible && (v.preventDefault(), ws().then(() => Do())));
|
|
3024
3016
|
}
|
|
3025
|
-
al(v) && (s(k).isVisible || Qr({ force: !0 }), s(k).isVisible && (v.preventDefault(), ms().then(() => Ho())));
|
|
3026
3017
|
}
|
|
3027
|
-
function
|
|
3018
|
+
function Bo(v) {
|
|
3028
3019
|
if (v.key === "Escape") {
|
|
3029
|
-
v.preventDefault(),
|
|
3020
|
+
v.preventDefault(), nt();
|
|
3030
3021
|
return;
|
|
3031
3022
|
}
|
|
3032
|
-
const
|
|
3023
|
+
const k = rr(), R = al({
|
|
3033
3024
|
key: v.key,
|
|
3034
|
-
activeIndex:
|
|
3035
|
-
count:
|
|
3036
|
-
direction: i &&
|
|
3025
|
+
activeIndex: a(Se),
|
|
3026
|
+
count: k.length,
|
|
3027
|
+
direction: i && a(m) && getComputedStyle(a(m)).direction === "rtl" ? "rtl" : "ltr"
|
|
3037
3028
|
});
|
|
3038
|
-
|
|
3029
|
+
R !== null && (v.preventDefault(), O(Se, R, !0), k[R]?.focus());
|
|
3039
3030
|
}
|
|
3040
|
-
function
|
|
3041
|
-
const
|
|
3042
|
-
|
|
3031
|
+
function zo(v) {
|
|
3032
|
+
const k = v.relatedTarget;
|
|
3033
|
+
k instanceof Node && a(m)?.contains(k) || (Lt = null, nt());
|
|
3043
3034
|
}
|
|
3044
|
-
function
|
|
3045
|
-
if (!
|
|
3046
|
-
const
|
|
3047
|
-
|
|
3035
|
+
function bn(v) {
|
|
3036
|
+
if (!a(w).isVisible || a(W) || !a(m)) return;
|
|
3037
|
+
const k = (typeof v.composedPath == "function" ? v.composedPath() : []).filter((R) => !!R);
|
|
3038
|
+
k.includes(a(m)) || k.length === 0 && a(m).contains(v.target) || (Lt = null, nt());
|
|
3048
3039
|
}
|
|
3049
|
-
|
|
3040
|
+
Wt(() => {
|
|
3050
3041
|
if (!i) return;
|
|
3051
|
-
const v =
|
|
3052
|
-
if (!v || !
|
|
3053
|
-
const
|
|
3054
|
-
return () => clearTimeout(
|
|
3055
|
-
}),
|
|
3042
|
+
const v = a(Qn);
|
|
3043
|
+
if (!v || !a(h)) return;
|
|
3044
|
+
const k = setTimeout(() => St(() => Io(v)), s);
|
|
3045
|
+
return () => clearTimeout(k);
|
|
3046
|
+
}), Wt(() => {
|
|
3056
3047
|
if (!i) return;
|
|
3057
|
-
const v =
|
|
3058
|
-
return v.addEventListener("click",
|
|
3059
|
-
|
|
3048
|
+
const v = a(vn) || document;
|
|
3049
|
+
return v.addEventListener("click", bn), v.addEventListener("touchstart", bn), document.addEventListener("selectionchange", tr), v.addEventListener("pointerdown", Xr), document.addEventListener("pointerup", pn), document.addEventListener("pointercancel", pn), document.addEventListener("keydown", Qr), window.addEventListener("scroll", _n, !0), window.addEventListener("resize", _n), () => {
|
|
3050
|
+
Ue !== null && clearTimeout(Ue), ze !== null && typeof cancelAnimationFrame == "function" && (cancelAnimationFrame(ze), ze = null), v.removeEventListener("click", bn), v.removeEventListener("touchstart", bn), document.removeEventListener("selectionchange", tr), v.removeEventListener("pointerdown", Xr), document.removeEventListener("pointerup", pn), document.removeEventListener("pointercancel", pn), document.removeEventListener("keydown", Qr), window.removeEventListener("scroll", _n, !0), window.removeEventListener("resize", _n);
|
|
3060
3051
|
};
|
|
3061
|
-
}),
|
|
3062
|
-
|
|
3063
|
-
!
|
|
3052
|
+
}), Wt(() => {
|
|
3053
|
+
a(w).isVisible, a(m), a(cn), a(hn), a(dn), a(Zn), St(() => {
|
|
3054
|
+
!a(w).isVisible || !a(m) || nr();
|
|
3064
3055
|
});
|
|
3065
|
-
}),
|
|
3066
|
-
|
|
3067
|
-
const v =
|
|
3056
|
+
}), Wt(() => {
|
|
3057
|
+
a(w).isVisible, a(Se), a(hn), a(dn), a(D), a(cn), St(() => {
|
|
3058
|
+
const v = rr();
|
|
3068
3059
|
if (v.length === 0) return;
|
|
3069
|
-
const
|
|
3070
|
-
|
|
3071
|
-
|
|
3060
|
+
const k = Rr(a(Se), v.length);
|
|
3061
|
+
k !== a(Se) && O(Se, k, !0), v.forEach((R, q) => {
|
|
3062
|
+
R.tabIndex = q === k ? 0 : -1;
|
|
3072
3063
|
});
|
|
3073
3064
|
});
|
|
3074
|
-
}),
|
|
3075
|
-
if (!
|
|
3076
|
-
const v =
|
|
3077
|
-
L
|
|
3078
|
-
}),
|
|
3079
|
-
|
|
3080
|
-
}),
|
|
3081
|
-
|
|
3065
|
+
}), Wt(() => {
|
|
3066
|
+
if (!a(p)) return;
|
|
3067
|
+
const v = ia(a(p), (q) => {
|
|
3068
|
+
O(L, q, !0);
|
|
3069
|
+
}), k = na(a(p), (q) => {
|
|
3070
|
+
O(H, q, !0);
|
|
3071
|
+
}), R = ra(a(p), (q) => {
|
|
3072
|
+
O(d, q, !0);
|
|
3082
3073
|
});
|
|
3083
3074
|
return () => {
|
|
3084
|
-
|
|
3075
|
+
R(), k(), v();
|
|
3085
3076
|
};
|
|
3086
3077
|
});
|
|
3087
|
-
var
|
|
3078
|
+
var Uo = {
|
|
3088
3079
|
get enabled() {
|
|
3089
3080
|
return n();
|
|
3090
3081
|
},
|
|
3091
3082
|
set enabled(v = !0) {
|
|
3092
|
-
n(v),
|
|
3083
|
+
n(v), rn();
|
|
3093
3084
|
},
|
|
3094
3085
|
get selectionActions() {
|
|
3095
3086
|
return r();
|
|
3096
3087
|
},
|
|
3097
3088
|
set selectionActions(v = null) {
|
|
3098
|
-
r(v),
|
|
3099
|
-
}
|
|
3100
|
-
},
|
|
3101
|
-
|
|
3102
|
-
var
|
|
3103
|
-
var
|
|
3104
|
-
|
|
3105
|
-
var
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
}),
|
|
3089
|
+
r(v), rn();
|
|
3090
|
+
}
|
|
3091
|
+
}, ei = xl(), ti = yn(ei);
|
|
3092
|
+
Ti(ti, (v) => O(p, v), () => a(p));
|
|
3093
|
+
var ni = xe(ti, 2), Go = (v) => {
|
|
3094
|
+
var k = Al(), R = Mn(k);
|
|
3095
|
+
wi(R, 17, () => a(g), Ws, (Y, X) => {
|
|
3096
|
+
var z = wl(), be = Mn(z), Q = sr(be, !0);
|
|
3097
|
+
Vt(z), We(() => {
|
|
3098
|
+
ki(z, `background-color: ${a(X).hex ?? ""};`), G(z, "aria-label", a(X).label), G(z, "title", a(X).label), $n(Q, a(X).label);
|
|
3099
|
+
}), Ye("click", z, () => Jr(a(X).name)), he(Y, z);
|
|
3109
3100
|
});
|
|
3110
|
-
var
|
|
3111
|
-
var
|
|
3112
|
-
We((be,
|
|
3113
|
-
|
|
3114
|
-
}, [() =>
|
|
3101
|
+
var q = xe(R, 2), ae = xe(q, 2), It = (Y) => {
|
|
3102
|
+
var X = ml(), z = xe(yn(X), 2);
|
|
3103
|
+
We((be, Q) => {
|
|
3104
|
+
G(z, "aria-disabled", a(D)), G(z, "aria-label", be), G(z, "title", Q);
|
|
3105
|
+
}, [() => a(c).t("tools.annotationToolbar.readAloudA11y"), () => a(c).t("tools.annotationToolbar.readAloud")]), Ye("click", z, Fo), he(Y, X);
|
|
3115
3106
|
};
|
|
3116
|
-
|
|
3117
|
-
|
|
3107
|
+
it(ae, (Y) => {
|
|
3108
|
+
a(Zn) && Y(It);
|
|
3118
3109
|
});
|
|
3119
|
-
var
|
|
3120
|
-
var
|
|
3121
|
-
|
|
3122
|
-
const
|
|
3123
|
-
var
|
|
3124
|
-
let
|
|
3125
|
-
var
|
|
3126
|
-
var
|
|
3127
|
-
|
|
3128
|
-
},
|
|
3129
|
-
var
|
|
3130
|
-
We(() =>
|
|
3110
|
+
var wn = xe(ae, 2), Xo = (Y) => {
|
|
3111
|
+
var X = $l(), z = xe(yn(X), 2);
|
|
3112
|
+
wi(z, 17, () => a(cn), (be) => be.id, (be, Q) => {
|
|
3113
|
+
const Pt = /* @__PURE__ */ de(() => Ho(a(Q)));
|
|
3114
|
+
var Z = kl();
|
|
3115
|
+
let se;
|
|
3116
|
+
var qt = Mn(Z), Dt = (Ge) => {
|
|
3117
|
+
var wt = yl();
|
|
3118
|
+
Fs(wt, () => a(Pt), !0), Vt(wt), he(Ge, wt);
|
|
3119
|
+
}, ir = (Ge) => {
|
|
3120
|
+
var wt = Es();
|
|
3121
|
+
We(() => $n(wt, a(Q).label)), he(Ge, wt);
|
|
3131
3122
|
};
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
}),
|
|
3135
|
-
|
|
3136
|
-
}),
|
|
3137
|
-
}), he(
|
|
3123
|
+
it(qt, (Ge) => {
|
|
3124
|
+
a(Pt) ? Ge(Dt) : Ge(ir, -1);
|
|
3125
|
+
}), Vt(Z), We(() => {
|
|
3126
|
+
se = Gs(Z, 1, "pie-tool-annotation-toolbar__button svelte-1qnnvrt", null, se, { "pie-tool-annotation-toolbar__button--icon": !!a(Pt) }), G(Z, "data-pie-selection-action", a(Q).id), G(Z, "aria-label", a(Q).label), G(Z, "title", a(Q).tooltip || a(Q).label);
|
|
3127
|
+
}), Ye("click", Z, () => Vo(a(Q))), he(be, Z);
|
|
3128
|
+
}), he(Y, X);
|
|
3138
3129
|
};
|
|
3139
|
-
|
|
3140
|
-
|
|
3130
|
+
it(wn, (Y) => {
|
|
3131
|
+
a(cn).length > 0 && Y(Xo);
|
|
3141
3132
|
});
|
|
3142
|
-
var
|
|
3143
|
-
var
|
|
3144
|
-
var
|
|
3145
|
-
We((
|
|
3146
|
-
|
|
3147
|
-
}, [() =>
|
|
3133
|
+
var Zo = xe(wn, 2), Jo = (Y) => {
|
|
3134
|
+
var X = Sl(), z = xe(yn(X), 2), be = (Z) => {
|
|
3135
|
+
var se = El();
|
|
3136
|
+
We((qt, Dt) => {
|
|
3137
|
+
G(se, "aria-label", qt), G(se, "title", Dt);
|
|
3138
|
+
}, [() => a(c).t("tools.annotationToolbar.removeA11y"), () => a(c).t("tools.annotationToolbar.remove")]), Ye("click", se, Wo), he(Z, se);
|
|
3148
3139
|
};
|
|
3149
|
-
|
|
3150
|
-
|
|
3140
|
+
it(z, (Z) => {
|
|
3141
|
+
a(hn) && Z(be);
|
|
3151
3142
|
});
|
|
3152
|
-
var
|
|
3153
|
-
var
|
|
3154
|
-
We((
|
|
3155
|
-
|
|
3143
|
+
var Q = xe(z, 2), Pt = (Z) => {
|
|
3144
|
+
var se = Tl(), qt = sr(se, !0);
|
|
3145
|
+
We((Dt, ir, Ge) => {
|
|
3146
|
+
G(se, "aria-label", Dt), G(se, "title", ir), $n(qt, Ge);
|
|
3156
3147
|
}, [
|
|
3157
|
-
() =>
|
|
3158
|
-
() =>
|
|
3159
|
-
() =>
|
|
3160
|
-
]),
|
|
3148
|
+
() => a(c).t("tools.annotationToolbar.clearAllA11y"),
|
|
3149
|
+
() => a(c).t("tools.annotationToolbar.clearAll"),
|
|
3150
|
+
() => a(c).t("tools.annotationToolbar.clearAll")
|
|
3151
|
+
]), Ye("click", se, jo), he(Z, se);
|
|
3161
3152
|
};
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
}), he(
|
|
3153
|
+
it(Q, (Z) => {
|
|
3154
|
+
a(dn) && Z(Pt);
|
|
3155
|
+
}), he(Y, X);
|
|
3165
3156
|
};
|
|
3166
|
-
|
|
3167
|
-
(
|
|
3168
|
-
}),
|
|
3169
|
-
|
|
3157
|
+
it(Zo, (Y) => {
|
|
3158
|
+
(a(hn) || a(dn)) && Y(Jo);
|
|
3159
|
+
}), Vt(k), Ti(k, (Y) => O(m, Y), () => a(m)), We((Y, X, z, be, Q) => {
|
|
3160
|
+
G(k, "data-pie-placement", a(w).toolbarPosition.below ? "below" : "above"), ki(k, `left:${a(w).toolbarPosition.x}px; top:${a(w).toolbarPosition.y}px;`), G(k, "lang", Y), G(k, "dir", X), G(k, "aria-label", z), G(q, "aria-label", be), G(q, "title", Q), k.dir = k.dir;
|
|
3170
3161
|
}, [
|
|
3171
|
-
() =>
|
|
3172
|
-
() =>
|
|
3173
|
-
() =>
|
|
3174
|
-
() =>
|
|
3175
|
-
() =>
|
|
3176
|
-
]),
|
|
3162
|
+
() => a(c).getLocale(),
|
|
3163
|
+
() => a(c).getDirection?.() ?? "ltr",
|
|
3164
|
+
() => a(c).t("tools.annotationToolbar.toolbarA11y"),
|
|
3165
|
+
() => a(c).t("tools.annotationToolbar.underlineA11y"),
|
|
3166
|
+
() => a(c).t("tools.annotationToolbar.underline")
|
|
3167
|
+
]), Ye("keydown", k, Bo), Ye("focusout", k, zo), Ye("click", q, () => Jr(Ae.UNDERLINE)), he(v, k);
|
|
3177
3168
|
};
|
|
3178
|
-
|
|
3179
|
-
|
|
3169
|
+
it(ni, (v) => {
|
|
3170
|
+
a(w).isVisible && v(Go);
|
|
3180
3171
|
});
|
|
3181
|
-
var
|
|
3182
|
-
return We(() =>
|
|
3172
|
+
var Yo = xe(ni, 2), Ko = sr(Yo, !0);
|
|
3173
|
+
return We(() => $n(Ko, a(ne))), he(e, ei), Di(Uo);
|
|
3183
3174
|
}
|
|
3184
|
-
|
|
3175
|
+
ms([
|
|
3185
3176
|
"keydown",
|
|
3186
3177
|
"focusout",
|
|
3187
3178
|
"click"
|
|
3188
3179
|
]);
|
|
3189
|
-
|
|
3180
|
+
Cl("pie-tool-annotation-toolbar", il(Rl, {
|
|
3190
3181
|
enabled: {
|
|
3191
3182
|
attribute: "enabled",
|
|
3192
3183
|
type: "Boolean"
|
|
3193
3184
|
},
|
|
3194
3185
|
selectionActions: { type: "Object" }
|
|
3195
|
-
}, [], [], { mode: "open" },
|
|
3196
|
-
function
|
|
3186
|
+
}, [], [], { mode: "open" }, Qo));
|
|
3187
|
+
function Cl(e, t) {
|
|
3197
3188
|
customElements.get(e) || customElements.define(e, t);
|
|
3198
3189
|
}
|
|
3199
3190
|
export {
|
|
3200
|
-
|
|
3191
|
+
Rl as default
|
|
3201
3192
|
};
|