@pie-players/pie-tool-ruler 0.3.74 → 0.3.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tool-ruler.js +183 -183
- package/package.json +4 -4
package/dist/tool-ruler.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { coerceBooleanAttributes as t6 } from "@pie-players/pie-players-shared/ui/attribute-coercion";
|
|
2
|
-
import { ZIndexLayer as r6, connectToolRuntimeContext as n6, createToolCoordinatorRegistration as a6 } from "@pie-players/pie-assessment-toolkit";
|
|
2
|
+
import { ZIndexLayer as r6, connectToolRuntimeContext as n6, createToolCoordinatorRegistration as a6 } from "@pie-players/pie-assessment-toolkit/tools/registration";
|
|
3
3
|
import { resolveInterfaceI18n as i6 } from "@pie-players/pie-players-shared/i18n/provider";
|
|
4
4
|
import { OVERLAY_PLACEMENT_NUDGES as s6, OVERLAY_PLACEMENT_ROTATIONS as l6, createOverlayPlacement as o6 } from "@pie-players/pie-players-shared";
|
|
5
5
|
if (typeof window < "u") {
|
|
@@ -7,7 +7,7 @@ if (typeof window < "u") {
|
|
|
7
7
|
((_8 = (k8 = window).__svelte ?? (k8.__svelte = {})).v ?? (_8.v = /* @__PURE__ */ new Set())).add("5");
|
|
8
8
|
}
|
|
9
9
|
var u0 = {}, N = /* @__PURE__ */ Symbol("uninitialized");
|
|
10
|
-
var W8 = Array.isArray, c6 = Array.prototype.indexOf, e1 = Array.prototype.includes, p1 = Array.from, t1 = Object.keys,
|
|
10
|
+
var W8 = Array.isArray, c6 = Array.prototype.indexOf, e1 = Array.prototype.includes, p1 = Array.from, t1 = Object.keys, P0 = Object.defineProperty, U2 = Object.getOwnPropertyDescriptor, C6 = Object.getOwnPropertyDescriptors, f6 = Object.prototype, u6 = Array.prototype, j8 = Object.getPrototypeOf, b8 = Object.isExtensible, d6 = () => {
|
|
11
11
|
};
|
|
12
12
|
function h6(e) {
|
|
13
13
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
@@ -30,27 +30,27 @@ function p6(e, t) {
|
|
|
30
30
|
if (r.push(n), r.length === t) break;
|
|
31
31
|
return r;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function R0(e) {
|
|
34
34
|
"@babel/helpers - typeof";
|
|
35
|
-
return
|
|
35
|
+
return R0 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
36
36
|
return typeof t;
|
|
37
37
|
} : function(t) {
|
|
38
38
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
39
|
-
},
|
|
39
|
+
}, R0(e);
|
|
40
40
|
}
|
|
41
41
|
function v6(e, t) {
|
|
42
|
-
if (
|
|
42
|
+
if (R0(e) != "object" || !e) return e;
|
|
43
43
|
var r = e[Symbol.toPrimitive];
|
|
44
44
|
if (r !== void 0) {
|
|
45
45
|
var n = r.call(e, t || "default");
|
|
46
|
-
if (
|
|
46
|
+
if (R0(n) != "object") return n;
|
|
47
47
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
48
48
|
}
|
|
49
49
|
return (t === "string" ? String : Number)(e);
|
|
50
50
|
}
|
|
51
51
|
function _6(e) {
|
|
52
52
|
var t = v6(e, "string");
|
|
53
|
-
return
|
|
53
|
+
return R0(t) == "symbol" ? t : t + "";
|
|
54
54
|
}
|
|
55
55
|
function A(e, t, r) {
|
|
56
56
|
return (t = _6(t)) in e ? Object.defineProperty(e, t, {
|
|
@@ -60,7 +60,7 @@ function A(e, t, r) {
|
|
|
60
60
|
writable: !0
|
|
61
61
|
}) : e[t] = r, e;
|
|
62
62
|
}
|
|
63
|
-
var d7 = 1 << 24, r2 = 1024, Q = 2048, t0 = 4096,
|
|
63
|
+
var d7 = 1 << 24, r2 = 1024, Q = 2048, t0 = 4096, B1 = 8192, k6 = 16384, z1 = 32768, g8 = 1 << 25, U1 = 65536, h7 = 1 << 17, p7 = 1 << 18, v0 = 1 << 19, b6 = 1 << 20, $0 = 1 << 25, w8 = 1 << 21, g6 = 1 << 22, r1 = 1 << 23, x0 = /* @__PURE__ */ Symbol("$state"), D8 = /* @__PURE__ */ Symbol("component"), q8 = /* @__PURE__ */ Symbol("legacy props"), w6 = /* @__PURE__ */ Symbol(""), M6 = /* @__PURE__ */ Symbol("proxy path"), A1 = /* @__PURE__ */ Symbol("attributes"), O1 = /* @__PURE__ */ Symbol("class"), m6 = /* @__PURE__ */ Symbol("style"), K0 = /* @__PURE__ */ Symbol("text");
|
|
64
64
|
var W0 = new class extends Error {
|
|
65
65
|
constructor(...t) {
|
|
66
66
|
super(...t), A(this, "name", "StaleReactionError"), A(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
@@ -119,13 +119,13 @@ function F8(e) {
|
|
|
119
119
|
throw v1(), u0;
|
|
120
120
|
return e.data;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function B8(e) {
|
|
123
123
|
return e === this.v;
|
|
124
124
|
}
|
|
125
125
|
function S6(e, t) {
|
|
126
126
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function z8(e) {
|
|
129
129
|
return !S6(e, this.v);
|
|
130
130
|
}
|
|
131
131
|
function E6(e) {
|
|
@@ -140,13 +140,13 @@ function A6(e, t, r) {
|
|
|
140
140
|
function O6(e) {
|
|
141
141
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function P6() {
|
|
144
144
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function R6(e) {
|
|
147
147
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function L6() {
|
|
150
150
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
151
151
|
}
|
|
152
152
|
function Z6() {
|
|
@@ -174,13 +174,13 @@ function M8(e, t) {
|
|
|
174
174
|
function D6(e, t) {
|
|
175
175
|
return e?.[M6]?.(t), e;
|
|
176
176
|
}
|
|
177
|
-
var
|
|
177
|
+
var P = null;
|
|
178
178
|
function d0(e) {
|
|
179
|
-
|
|
179
|
+
P = e;
|
|
180
180
|
}
|
|
181
181
|
function k1(e, t = !1, r) {
|
|
182
|
-
|
|
183
|
-
p:
|
|
182
|
+
P = {
|
|
183
|
+
p: P,
|
|
184
184
|
i: !1,
|
|
185
185
|
c: null,
|
|
186
186
|
e: null,
|
|
@@ -195,25 +195,25 @@ function k1(e, t = !1, r) {
|
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
197
|
function b1(e) {
|
|
198
|
-
var t =
|
|
198
|
+
var t = P, r = t.e;
|
|
199
199
|
if (r !== null) {
|
|
200
200
|
t.e = null;
|
|
201
201
|
for (var n of r) p9(n);
|
|
202
202
|
}
|
|
203
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
203
|
+
return e !== void 0 && (t.x = e), t.i = !0, P = t.p, Y1(e);
|
|
204
204
|
}
|
|
205
205
|
function Y1(e = {}) {
|
|
206
|
-
return
|
|
206
|
+
return P0(e, D8, { value: !0 }), e;
|
|
207
207
|
}
|
|
208
208
|
function H0() {
|
|
209
|
-
return !j0 ||
|
|
209
|
+
return !j0 || P !== null && P.l === null;
|
|
210
210
|
}
|
|
211
211
|
var F2 = [];
|
|
212
212
|
function U8() {
|
|
213
213
|
var e = F2;
|
|
214
214
|
F2 = [], h6(e);
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function L2(e) {
|
|
217
217
|
if (F2.length === 0 && !S0) {
|
|
218
218
|
var t = F2;
|
|
219
219
|
queueMicrotask(() => {
|
|
@@ -226,14 +226,14 @@ function q6() {
|
|
|
226
226
|
for (; F2.length > 0; ) U8();
|
|
227
227
|
}
|
|
228
228
|
var F6 = ~(Q | t0 | r2);
|
|
229
|
-
function
|
|
229
|
+
function R(e, t) {
|
|
230
230
|
e.f = e.f & F6 | t;
|
|
231
231
|
}
|
|
232
232
|
function K1(e) {
|
|
233
|
-
(e.f & 512) !== 0 || e.deps === null ?
|
|
233
|
+
(e.f & 512) !== 0 || e.deps === null ? R(e, r2) : R(e, t0);
|
|
234
234
|
}
|
|
235
235
|
function Y8(e, t, r) {
|
|
236
|
-
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e),
|
|
236
|
+
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e), R(e, r2);
|
|
237
237
|
}
|
|
238
238
|
function g1(e) {
|
|
239
239
|
var t = x, r = y;
|
|
@@ -244,14 +244,14 @@ function g1(e) {
|
|
|
244
244
|
a2(t), b2(r);
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
const a = H0() ?
|
|
247
|
+
function B6(e, t, r, n) {
|
|
248
|
+
const a = H0() ? L0 : G1;
|
|
249
249
|
var i = e.filter((f) => !f.settled), s = t.map(a);
|
|
250
250
|
if (r.length === 0 && i.length === 0) {
|
|
251
251
|
n(s);
|
|
252
252
|
return;
|
|
253
253
|
}
|
|
254
|
-
var o = y, c =
|
|
254
|
+
var o = y, c = z6(), h = i.length === 1 ? i[0].promise : i.length > 1 ? Promise.all(i.map((f) => f.promise)) : null;
|
|
255
255
|
function C(f) {
|
|
256
256
|
if ((o.f & 16384) === 0) {
|
|
257
257
|
c();
|
|
@@ -275,8 +275,8 @@ function z6(e, t, r, n) {
|
|
|
275
275
|
c(), d(), a1();
|
|
276
276
|
}) : d();
|
|
277
277
|
}
|
|
278
|
-
function
|
|
279
|
-
var e = y, t = x, r =
|
|
278
|
+
function z6() {
|
|
279
|
+
var e = y, t = x, r = P, n = m;
|
|
280
280
|
if (0) var a;
|
|
281
281
|
return function(s = !0) {
|
|
282
282
|
b2(e), a2(t), d0(r), s && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
|
|
@@ -293,13 +293,13 @@ function K8() {
|
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
295
|
// @__NO_SIDE_EFFECTS__
|
|
296
|
-
function
|
|
296
|
+
function L0(e) {
|
|
297
297
|
var t = 2 | Q;
|
|
298
298
|
return y !== null && (y.f |= v0), {
|
|
299
|
-
ctx:
|
|
299
|
+
ctx: P,
|
|
300
300
|
deps: null,
|
|
301
301
|
effects: null,
|
|
302
|
-
equals:
|
|
302
|
+
equals: B8,
|
|
303
303
|
f: t,
|
|
304
304
|
fn: e,
|
|
305
305
|
reactions: null,
|
|
@@ -351,13 +351,13 @@ function Y6(e, t, r) {
|
|
|
351
351
|
}
|
|
352
352
|
// @__NO_SIDE_EFFECTS__
|
|
353
353
|
function G0(e) {
|
|
354
|
-
const t = /* @__PURE__ */
|
|
354
|
+
const t = /* @__PURE__ */ L0(e);
|
|
355
355
|
return N2 || w9(t), t;
|
|
356
356
|
}
|
|
357
357
|
// @__NO_SIDE_EFFECTS__
|
|
358
358
|
function G1(e) {
|
|
359
|
-
const t = /* @__PURE__ */
|
|
360
|
-
return t.equals =
|
|
359
|
+
const t = /* @__PURE__ */ L0(e);
|
|
360
|
+
return t.equals = z8, t;
|
|
361
361
|
}
|
|
362
362
|
function K6(e) {
|
|
363
363
|
var t = e.effects;
|
|
@@ -380,8 +380,8 @@ function X1(e) {
|
|
|
380
380
|
}
|
|
381
381
|
function G8(e) {
|
|
382
382
|
var t = X1(e);
|
|
383
|
-
if (!e.equals(t) && (e.wv = m9(), (!m?.is_fork || e.deps === null) && (m !== null ? (m.capture(e, t, !0),
|
|
384
|
-
|
|
383
|
+
if (!e.equals(t) && (e.wv = m9(), (!m?.is_fork || e.deps === null) && (m !== null ? (m.capture(e, t, !0), P1?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
384
|
+
R(e, r2);
|
|
385
385
|
return;
|
|
386
386
|
}
|
|
387
387
|
S2 || (q !== null ? (n8() || m?.is_fork) && q.set(e, t) : K1(e));
|
|
@@ -415,10 +415,10 @@ function g(e, t, r) {
|
|
|
415
415
|
function l(e, t) {
|
|
416
416
|
return e.get(M(e, t));
|
|
417
417
|
}
|
|
418
|
-
var Q8, i1 = null, a0 = null, m = null,
|
|
419
|
-
var X6 = 1, l1 = /* @__PURE__ */ new WeakMap(), Y2 = /* @__PURE__ */ new WeakMap(),
|
|
418
|
+
var Q8, i1 = null, a0 = null, m = null, P1 = null, q = null, R1 = null, S0 = !1, y1 = !1, Z0 = null, s1 = null, e9 = 0;
|
|
419
|
+
var X6 = 1, l1 = /* @__PURE__ */ new WeakMap(), Y2 = /* @__PURE__ */ new WeakMap(), B2 = /* @__PURE__ */ new WeakMap(), o1 = /* @__PURE__ */ new WeakMap(), F0 = /* @__PURE__ */ new WeakMap(), i0 = /* @__PURE__ */ new WeakMap(), H2 = /* @__PURE__ */ new WeakMap(), M0 = /* @__PURE__ */ new WeakMap(), s2 = /* @__PURE__ */ new WeakMap(), L1 = /* @__PURE__ */ new WeakMap(), Q2 = /* @__PURE__ */ new WeakMap(), x2 = /* @__PURE__ */ new WeakMap(), O2 = /* @__PURE__ */ new WeakMap(), X0 = /* @__PURE__ */ new WeakMap(), m0 = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakSet(), r0 = class t9 {
|
|
420
420
|
constructor() {
|
|
421
|
-
J1(this, O), A(this, "id", X6++), w(this, l1, !1), A(this, "linked", !0), w(this, Y2, null), w(this,
|
|
421
|
+
J1(this, O), A(this, "id", X6++), w(this, l1, !1), A(this, "linked", !0), w(this, Y2, null), w(this, B2, null), A(this, "async_deriveds", /* @__PURE__ */ new Map()), A(this, "current", /* @__PURE__ */ new Map()), A(this, "previous", /* @__PURE__ */ new Map()), w(this, o1, /* @__PURE__ */ new Set()), w(this, F0, /* @__PURE__ */ new Set()), w(this, i0, 0), w(this, H2, /* @__PURE__ */ new Map()), w(this, M0, null), w(this, s2, []), w(this, L1, []), w(this, Q2, /* @__PURE__ */ new Set()), w(this, x2, /* @__PURE__ */ new Set()), w(this, O2, /* @__PURE__ */ new Map()), w(this, X0, /* @__PURE__ */ new Set()), A(this, "is_fork", !1), w(this, m0, !1), a0 === null ? i1 = a0 = this : (g(B2, a0, this), g(Y2, this, a0)), a0 = this;
|
|
422
422
|
}
|
|
423
423
|
skip_effect(t) {
|
|
424
424
|
l(O2, this).has(t) || l(O2, this).set(t, {
|
|
@@ -431,9 +431,9 @@ var X6 = 1, l1 = /* @__PURE__ */ new WeakMap(), Y2 = /* @__PURE__ */ new WeakMap
|
|
|
431
431
|
if (n) {
|
|
432
432
|
l(O2, this).delete(t);
|
|
433
433
|
for (var a of n.d)
|
|
434
|
-
|
|
434
|
+
R(a, Q), r(a);
|
|
435
435
|
for (a of n.m)
|
|
436
|
-
|
|
436
|
+
R(a, t0), r(a);
|
|
437
437
|
}
|
|
438
438
|
l(X0, this).add(t);
|
|
439
439
|
}
|
|
@@ -450,7 +450,7 @@ var X6 = 1, l1 = /* @__PURE__ */ new WeakMap(), Y2 = /* @__PURE__ */ new WeakMap
|
|
|
450
450
|
try {
|
|
451
451
|
y1 = !0, m = this, M(O, this, c1).call(this);
|
|
452
452
|
} finally {
|
|
453
|
-
e9 = 0,
|
|
453
|
+
e9 = 0, R1 = null, Z0 = null, s1 = null, y1 = !1, m = null, q = null, _2.clear();
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
456
|
discard() {
|
|
@@ -460,7 +460,7 @@ var X6 = 1, l1 = /* @__PURE__ */ new WeakMap(), Y2 = /* @__PURE__ */ new WeakMap
|
|
|
460
460
|
M(O, this, C1).call(this), l(M0, this)?.resolve();
|
|
461
461
|
}
|
|
462
462
|
register_created_effect(t) {
|
|
463
|
-
l(
|
|
463
|
+
l(L1, this).push(t);
|
|
464
464
|
}
|
|
465
465
|
increment(t, r) {
|
|
466
466
|
if (g(i0, this, l(i0, this) + 1), t) {
|
|
@@ -473,7 +473,7 @@ var X6 = 1, l1 = /* @__PURE__ */ new WeakMap(), Y2 = /* @__PURE__ */ new WeakMap
|
|
|
473
473
|
let n = l(H2, this).get(r) ?? 0;
|
|
474
474
|
n === 1 ? l(H2, this).delete(r) : l(H2, this).set(r, n - 1);
|
|
475
475
|
}
|
|
476
|
-
l(m0, this) || (g(m0, this, !0),
|
|
476
|
+
l(m0, this) || (g(m0, this, !0), L2(() => {
|
|
477
477
|
g(m0, this, !1), this.linked && this.flush();
|
|
478
478
|
}));
|
|
479
479
|
}
|
|
@@ -494,20 +494,20 @@ var X6 = 1, l1 = /* @__PURE__ */ new WeakMap(), Y2 = /* @__PURE__ */ new WeakMap
|
|
|
494
494
|
static ensure() {
|
|
495
495
|
if (m === null) {
|
|
496
496
|
const t = m = new t9();
|
|
497
|
-
!y1 && !S0 &&
|
|
497
|
+
!y1 && !S0 && L2(() => {
|
|
498
498
|
l(l1, t) || t.flush();
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
501
|
return m;
|
|
502
502
|
}
|
|
503
503
|
apply() {
|
|
504
|
-
if (!N2 || !this.is_fork && l(Y2, this) === null && l(
|
|
504
|
+
if (!N2 || !this.is_fork && l(Y2, this) === null && l(B2, this) === null) {
|
|
505
505
|
q = null;
|
|
506
506
|
return;
|
|
507
507
|
}
|
|
508
508
|
q = /* @__PURE__ */ new Map();
|
|
509
509
|
for (const [r, [n]] of this.current) q.set(r, n);
|
|
510
|
-
for (let r = i1; r !== null; r = l(
|
|
510
|
+
for (let r = i1; r !== null; r = l(B2, r))
|
|
511
511
|
if (!(r === this || r.is_fork)) {
|
|
512
512
|
var t = !1;
|
|
513
513
|
if (r.id < this.id) {
|
|
@@ -522,7 +522,7 @@ var X6 = 1, l1 = /* @__PURE__ */ new WeakMap(), Y2 = /* @__PURE__ */ new WeakMap
|
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
schedule(t) {
|
|
525
|
-
if (
|
|
525
|
+
if (R1 = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
|
|
526
526
|
t.b.defer_effect(t);
|
|
527
527
|
return;
|
|
528
528
|
}
|
|
@@ -566,9 +566,9 @@ function r9() {
|
|
|
566
566
|
function c1() {
|
|
567
567
|
g(l1, this, !0);
|
|
568
568
|
for (const s of l(Q2, this))
|
|
569
|
-
l(x2, this).delete(s),
|
|
569
|
+
l(x2, this).delete(s), R(s, Q), this.schedule(s);
|
|
570
570
|
for (const s of l(x2, this))
|
|
571
|
-
|
|
571
|
+
R(s, t0), this.schedule(s);
|
|
572
572
|
this.apply();
|
|
573
573
|
for (var e = Z0 = [], t = [], r = s1 = []; l(s2, this).length > 0; ) {
|
|
574
574
|
e9++ > 1e3 && (M(O, this, C1).call(this), t4());
|
|
@@ -595,7 +595,7 @@ function c1() {
|
|
|
595
595
|
}
|
|
596
596
|
l(Q2, this).clear(), l(x2, this).clear();
|
|
597
597
|
for (const s of l(o1, this)) s(this);
|
|
598
|
-
l(o1, this).clear(),
|
|
598
|
+
l(o1, this).clear(), P1 = this, y8(t), y8(e), P1 = null, l(M0, this)?.resolve();
|
|
599
599
|
var i = m;
|
|
600
600
|
if (l(i0, this) === 0 && (l(s2, this).length === 0 || i !== null) && (M(O, this, C1).call(this), N2 && (M(O, this, e4).call(this), m = i)), l(s2, this).length > 0)
|
|
601
601
|
if (i !== null) {
|
|
@@ -651,7 +651,7 @@ function Q6(e) {
|
|
|
651
651
|
if ((a & 2) !== 0) t(s);
|
|
652
652
|
else {
|
|
653
653
|
var i = s;
|
|
654
|
-
a & 4194320 && !this.async_deriveds.has(i) && (l(x2, this).delete(i),
|
|
654
|
+
a & 4194320 && !this.async_deriveds.has(i) && (l(x2, this).delete(i), R(i, Q), this.schedule(i));
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
};
|
|
@@ -662,7 +662,7 @@ function y0(e) {
|
|
|
662
662
|
for (var t = 0; t < e.length; t += 1) Y8(e[t], l(Q2, this), l(x2, this));
|
|
663
663
|
}
|
|
664
664
|
function e4() {
|
|
665
|
-
for (let C = i1; C !== null; C = l(
|
|
665
|
+
for (let C = i1; C !== null; C = l(B2, C)) {
|
|
666
666
|
var e = C.id < this.id, t = [];
|
|
667
667
|
for (const [u, [d, f]] of this.current) {
|
|
668
668
|
if (C.current.has(u)) {
|
|
@@ -694,7 +694,7 @@ function e4() {
|
|
|
694
694
|
return f ? f[0] !== d[0] || f[1] !== d[1] : !0;
|
|
695
695
|
}).map(([u]) => u);
|
|
696
696
|
if (c.length > 0)
|
|
697
|
-
for (const u of l(
|
|
697
|
+
for (const u of l(L1, this)) (u.f & 155648) === 0 && Q1(u, c, s) && ((u.f & 4194320) !== 0 ? (R(u, Q), C.schedule(u)) : l(Q2, C).add(u));
|
|
698
698
|
if (l(s2, C).length > 0 && !l(m0, C)) {
|
|
699
699
|
C.apply();
|
|
700
700
|
for (var h of M(O, C, r9).call(C)) M(O, C, n9).call(C, h, [], []);
|
|
@@ -706,8 +706,8 @@ function e4() {
|
|
|
706
706
|
}
|
|
707
707
|
function C1() {
|
|
708
708
|
if (this.linked) {
|
|
709
|
-
var e = l(Y2, this), t = l(
|
|
710
|
-
e === null ? i1 = t : g(
|
|
709
|
+
var e = l(Y2, this), t = l(B2, this);
|
|
710
|
+
e === null ? i1 = t : g(B2, e, t), t === null ? a0 = e : g(Y2, t, e), this.linked = !1;
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
function $2(e) {
|
|
@@ -730,9 +730,9 @@ function t4() {
|
|
|
730
730
|
var t;
|
|
731
731
|
}
|
|
732
732
|
try {
|
|
733
|
-
|
|
733
|
+
L6();
|
|
734
734
|
} catch (r) {
|
|
735
|
-
k2(r,
|
|
735
|
+
k2(r, R1);
|
|
736
736
|
}
|
|
737
737
|
}
|
|
738
738
|
var d2 = null;
|
|
@@ -764,7 +764,7 @@ function a9(e, t, r, n) {
|
|
|
764
764
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
765
765
|
for (const a of e.reactions) {
|
|
766
766
|
const i = a.f;
|
|
767
|
-
(i & 2) !== 0 ? a9(a, t, r, n) : (i & 4194320) !== 0 && (i & 2048) === 0 && Q1(a, t, n) && (
|
|
767
|
+
(i & 2) !== 0 ? a9(a, t, r, n) : (i & 4194320) !== 0 && (i & 2048) === 0 && Q1(a, t, n) && (R(a, Q), e8(a));
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
770
|
function Q1(e, t, r) {
|
|
@@ -782,13 +782,13 @@ function e8(e) {
|
|
|
782
782
|
}
|
|
783
783
|
function i9(e, t) {
|
|
784
784
|
if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
|
|
785
|
-
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e),
|
|
785
|
+
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), R(e, r2);
|
|
786
786
|
for (var r = e.first; r !== null; )
|
|
787
787
|
i9(r, t), r = r.next;
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
790
|
function s9(e) {
|
|
791
|
-
|
|
791
|
+
R(e, r2);
|
|
792
792
|
for (var t = e.first; t !== null; )
|
|
793
793
|
s9(t), t = t.next;
|
|
794
794
|
}
|
|
@@ -799,23 +799,23 @@ function e0(e, t) {
|
|
|
799
799
|
f: 0,
|
|
800
800
|
v: e,
|
|
801
801
|
reactions: null,
|
|
802
|
-
equals:
|
|
802
|
+
equals: B8,
|
|
803
803
|
rv: 0,
|
|
804
804
|
wv: 0
|
|
805
805
|
};
|
|
806
806
|
return r;
|
|
807
807
|
}
|
|
808
808
|
// @__NO_SIDE_EFFECTS__
|
|
809
|
-
function
|
|
809
|
+
function z(e, t) {
|
|
810
810
|
const r = e0(e, t);
|
|
811
811
|
return w9(r), r;
|
|
812
812
|
}
|
|
813
813
|
// @__NO_SIDE_EFFECTS__
|
|
814
814
|
function o9(e, t = !1, r = !0) {
|
|
815
815
|
const n = e0(e);
|
|
816
|
-
if (t || (n.equals =
|
|
816
|
+
if (t || (n.equals = z8), j0 && r && P !== null && P.l !== null) {
|
|
817
817
|
var a;
|
|
818
|
-
((a =
|
|
818
|
+
((a = P.l).s ?? (a.s = [])).push(n);
|
|
819
819
|
}
|
|
820
820
|
return n;
|
|
821
821
|
}
|
|
@@ -840,7 +840,7 @@ function h0(e, t, r = null) {
|
|
|
840
840
|
function r4() {
|
|
841
841
|
l9 = !1;
|
|
842
842
|
for (const e of f1) {
|
|
843
|
-
(e.f & 1024) !== 0 &&
|
|
843
|
+
(e.f & 1024) !== 0 && R(e, t0);
|
|
844
844
|
let t;
|
|
845
845
|
try {
|
|
846
846
|
t = D0(e);
|
|
@@ -866,7 +866,7 @@ function c9(e, t, r) {
|
|
|
866
866
|
var o = n[s], c = o.f;
|
|
867
867
|
if (!(!a && o === y)) {
|
|
868
868
|
var h = (c & Q) === 0;
|
|
869
|
-
if (h &&
|
|
869
|
+
if (h && R(o, t), (c & 131072) !== 0) f1.add(o);
|
|
870
870
|
else if ((c & 2) !== 0) {
|
|
871
871
|
var C = o;
|
|
872
872
|
q?.delete(C), c9(C, t0, r);
|
|
@@ -883,14 +883,14 @@ function c0(e) {
|
|
|
883
883
|
if (typeof e != "object" || e === null || x0 in e || D8 in e) return e;
|
|
884
884
|
const t = j8(e);
|
|
885
885
|
if (t !== f6 && t !== u6) return e;
|
|
886
|
-
var r = /* @__PURE__ */ new Map(), n = W8(e), a = /* @__PURE__ */
|
|
886
|
+
var r = /* @__PURE__ */ new Map(), n = W8(e), a = /* @__PURE__ */ z(0), i = null, s = K2, o = (u) => {
|
|
887
887
|
if (K2 === s) return u();
|
|
888
888
|
var d = x, f = K2;
|
|
889
889
|
a2(null), x8(s);
|
|
890
890
|
var _ = u();
|
|
891
891
|
return a2(d), x8(f), _;
|
|
892
892
|
};
|
|
893
|
-
n && r.set("length", /* @__PURE__ */
|
|
893
|
+
n && r.set("length", /* @__PURE__ */ z(e.length, i));
|
|
894
894
|
var c = "";
|
|
895
895
|
let h = !1;
|
|
896
896
|
function C(u) {
|
|
@@ -905,7 +905,7 @@ function c0(e) {
|
|
|
905
905
|
(!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && I6();
|
|
906
906
|
var _ = r.get(d);
|
|
907
907
|
return _ === void 0 ? o(() => {
|
|
908
|
-
var k = /* @__PURE__ */
|
|
908
|
+
var k = /* @__PURE__ */ z(f.value, i);
|
|
909
909
|
return r.set(d, k), k;
|
|
910
910
|
}) : j(_, f.value, !0), !0;
|
|
911
911
|
},
|
|
@@ -913,7 +913,7 @@ function c0(e) {
|
|
|
913
913
|
var f = r.get(d);
|
|
914
914
|
if (f === void 0) {
|
|
915
915
|
if (d in u) {
|
|
916
|
-
const _ = o(() => /* @__PURE__ */
|
|
916
|
+
const _ = o(() => /* @__PURE__ */ z(N, i));
|
|
917
917
|
r.set(d, _), E0(a);
|
|
918
918
|
}
|
|
919
919
|
} else
|
|
@@ -924,7 +924,7 @@ function c0(e) {
|
|
|
924
924
|
if (d === x0) return e;
|
|
925
925
|
var _ = r.get(d), k = d in u;
|
|
926
926
|
if (_ === void 0 && (!k || U2(u, d)?.writable) && (_ = o(() => {
|
|
927
|
-
var b = c0(k ? u[d] : N), T = /* @__PURE__ */
|
|
927
|
+
var b = c0(k ? u[d] : N), T = /* @__PURE__ */ z(b, i);
|
|
928
928
|
return T;
|
|
929
929
|
}), r.set(d, _)), _ !== void 0) {
|
|
930
930
|
var p = v(_);
|
|
@@ -952,7 +952,7 @@ function c0(e) {
|
|
|
952
952
|
if (d === x0) return !0;
|
|
953
953
|
var f = r.get(d), _ = f !== void 0 && f.v !== N || Reflect.has(u, d);
|
|
954
954
|
return (f !== void 0 || y !== null && (!_ || U2(u, d)?.writable)) && (f === void 0 && (f = o(() => {
|
|
955
|
-
var k = _ ? c0(u[d]) : N, p = /* @__PURE__ */
|
|
955
|
+
var k = _ ? c0(u[d]) : N, p = /* @__PURE__ */ z(k, i);
|
|
956
956
|
return p;
|
|
957
957
|
}), r.set(d, f)), v(f) === N) ? !1 : _;
|
|
958
958
|
},
|
|
@@ -960,14 +960,14 @@ function c0(e) {
|
|
|
960
960
|
var k = r.get(d), p = d in u;
|
|
961
961
|
if (n && d === "length") for (var b = f; b < k.v; b += 1) {
|
|
962
962
|
var T = r.get(b + "");
|
|
963
|
-
T !== void 0 ? j(T, N) : b in u && (T = o(() => /* @__PURE__ */
|
|
963
|
+
T !== void 0 ? j(T, N) : b in u && (T = o(() => /* @__PURE__ */ z(N, i)), r.set(b + "", T));
|
|
964
964
|
}
|
|
965
965
|
if (k === void 0)
|
|
966
|
-
(!p || U2(u, d)?.writable) && (k = o(() => /* @__PURE__ */
|
|
966
|
+
(!p || U2(u, d)?.writable) && (k = o(() => /* @__PURE__ */ z(void 0, i)), j(k, c0(f)), r.set(d, k));
|
|
967
967
|
else {
|
|
968
968
|
p = k.v !== N;
|
|
969
|
-
var
|
|
970
|
-
j(k,
|
|
969
|
+
var L = o(() => c0(f));
|
|
970
|
+
j(k, L);
|
|
971
971
|
}
|
|
972
972
|
var V = Reflect.getOwnPropertyDescriptor(u, d);
|
|
973
973
|
if (V?.set && V.set.call(_, f), !p) {
|
|
@@ -1062,7 +1062,7 @@ function d9(e) {
|
|
|
1062
1062
|
e.textContent = "";
|
|
1063
1063
|
}
|
|
1064
1064
|
function h9() {
|
|
1065
|
-
return !N2 || d2 !== null ? !1 : (y.f &
|
|
1065
|
+
return !N2 || d2 !== null ? !1 : (y.f & z1) !== 0;
|
|
1066
1066
|
}
|
|
1067
1067
|
function t8(e, t, r) {
|
|
1068
1068
|
return t == null || t === "http://www.w3.org/1999/xhtml" ? r ? document.createElement(e, { is: r }) : document.createElement(e) : r ? document.createElementNS(t, e, { is: r }) : document.createElementNS(t, e);
|
|
@@ -1099,7 +1099,7 @@ function k2(e, t) {
|
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
1101
|
function l4(e) {
|
|
1102
|
-
y === null && (x === null &&
|
|
1102
|
+
y === null && (x === null && R6(e), P6()), S2 && O6(e);
|
|
1103
1103
|
}
|
|
1104
1104
|
function o4(e, t) {
|
|
1105
1105
|
var r = t.last;
|
|
@@ -1107,9 +1107,9 @@ function o4(e, t) {
|
|
|
1107
1107
|
}
|
|
1108
1108
|
function w2(e, t) {
|
|
1109
1109
|
var r = y;
|
|
1110
|
-
r !== null && (r.f & 8192) !== 0 && (e |=
|
|
1110
|
+
r !== null && (r.f & 8192) !== 0 && (e |= B1);
|
|
1111
1111
|
var n = {
|
|
1112
|
-
ctx:
|
|
1112
|
+
ctx: P,
|
|
1113
1113
|
deps: null,
|
|
1114
1114
|
nodes: null,
|
|
1115
1115
|
f: e | Q | 512,
|
|
@@ -1147,13 +1147,13 @@ function n8() {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
function c4(e) {
|
|
1149
1149
|
const t = w2(8, null);
|
|
1150
|
-
return
|
|
1150
|
+
return R(t, r2), t.teardown = e, t;
|
|
1151
1151
|
}
|
|
1152
1152
|
function s0(e) {
|
|
1153
1153
|
l4("$effect");
|
|
1154
1154
|
var t = y.f;
|
|
1155
|
-
if (!x && (t & 32) !== 0 &&
|
|
1156
|
-
var r =
|
|
1155
|
+
if (!x && (t & 32) !== 0 && P !== null && !P.i) {
|
|
1156
|
+
var r = P;
|
|
1157
1157
|
(r.e ?? (r.e = [])).push(e);
|
|
1158
1158
|
} else return p9(e);
|
|
1159
1159
|
}
|
|
@@ -1186,7 +1186,7 @@ function a8(e, t = 0) {
|
|
|
1186
1186
|
return w2(8 | t, e);
|
|
1187
1187
|
}
|
|
1188
1188
|
function A0(e, t = [], r = [], n = []) {
|
|
1189
|
-
|
|
1189
|
+
B6(n, t, r, (a) => {
|
|
1190
1190
|
w2(8, () => {
|
|
1191
1191
|
e(...a.map(v));
|
|
1192
1192
|
});
|
|
@@ -1262,7 +1262,7 @@ function n0(e, t, r = !0) {
|
|
|
1262
1262
|
}
|
|
1263
1263
|
function b9(e, t, r) {
|
|
1264
1264
|
if ((e.f & 8192) === 0) {
|
|
1265
|
-
e.f ^=
|
|
1265
|
+
e.f ^= B1;
|
|
1266
1266
|
var n = e.nodes && e.nodes.t;
|
|
1267
1267
|
if (n !== null)
|
|
1268
1268
|
for (const o of n) (o.is_global || r) && t.push(o);
|
|
@@ -1281,7 +1281,7 @@ function u1(e) {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
function g9(e, t) {
|
|
1283
1283
|
if ((e.f & 256) === 0 && (e.f & 8192) !== 0) {
|
|
1284
|
-
e.f ^=
|
|
1284
|
+
e.f ^= B1, (e.f & 1024) === 0 && (R(e, Q), r0.ensure().schedule(e));
|
|
1285
1285
|
for (var r = e.first; r !== null; ) {
|
|
1286
1286
|
var n = r.next, a = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1287
1287
|
g9(r, a ? t : !1), r = n;
|
|
@@ -1318,7 +1318,7 @@ var U = null, G = 0, e2 = null;
|
|
|
1318
1318
|
function v4(e) {
|
|
1319
1319
|
e2 = e;
|
|
1320
1320
|
}
|
|
1321
|
-
var M9 = 1,
|
|
1321
|
+
var M9 = 1, z2 = 0, K2 = z2;
|
|
1322
1322
|
function x8(e) {
|
|
1323
1323
|
K2 = e;
|
|
1324
1324
|
}
|
|
@@ -1333,7 +1333,7 @@ function D0(e) {
|
|
|
1333
1333
|
var i = r[a];
|
|
1334
1334
|
if (D0(i) && G8(i), i.wv > e.wv) return !0;
|
|
1335
1335
|
}
|
|
1336
|
-
(t & 512) !== 0 && q === null &&
|
|
1336
|
+
(t & 512) !== 0 && q === null && R(e, r2);
|
|
1337
1337
|
}
|
|
1338
1338
|
return !1;
|
|
1339
1339
|
}
|
|
@@ -1342,23 +1342,23 @@ function y9(e, t, r = !0) {
|
|
|
1342
1342
|
if (n !== null && !(!N2 && c2 !== null && c2.has(e)))
|
|
1343
1343
|
for (var a = 0; a < n.length; a++) {
|
|
1344
1344
|
var i = n[a];
|
|
1345
|
-
(i.f & 2) !== 0 ? y9(i, t, !1) : t === i && (r ?
|
|
1345
|
+
(i.f & 2) !== 0 ? y9(i, t, !1) : t === i && (r ? R(i, Q) : (i.f & 1024) !== 0 && R(i, t0), e8(i));
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
1348
|
function V9(e) {
|
|
1349
|
-
var t = U, r = G, n = e2, a = x, i = c2, s =
|
|
1350
|
-
U = null, G = 0, e2 = null, x = (h & 96) === 0 ? e : null, c2 = null, d0(e.ctx), l2 = !1, K2 = ++
|
|
1349
|
+
var t = U, r = G, n = e2, a = x, i = c2, s = P, o = l2, c = K2, h = e.f;
|
|
1350
|
+
U = null, G = 0, e2 = null, x = (h & 96) === 0 ? e : null, c2 = null, d0(e.ctx), l2 = !1, K2 = ++z2, e.ac !== null && (g1(() => {
|
|
1351
1351
|
e.ac.abort(W0);
|
|
1352
1352
|
}), e.ac = null);
|
|
1353
1353
|
try {
|
|
1354
1354
|
e.f |= w8;
|
|
1355
1355
|
var C = e.fn, u = C();
|
|
1356
|
-
e.f |=
|
|
1356
|
+
e.f |= z1;
|
|
1357
1357
|
var d = S8(e);
|
|
1358
1358
|
if (H0() && e2 !== null && !l2 && d !== null && (e.f & 6146) === 0) for (var f = 0; f < e2.length; f++) y9(e2[f], e);
|
|
1359
1359
|
if (a !== null && a !== e) {
|
|
1360
|
-
if (
|
|
1361
|
-
if (t !== null) for (const _ of t) _.rv =
|
|
1360
|
+
if (z2++, a.deps !== null) for (let _ = 0; _ < r; _ += 1) a.deps[_].rv = z2;
|
|
1361
|
+
if (t !== null) for (const _ of t) _.rv = z2;
|
|
1362
1362
|
e2 !== null && (n === null ? n = e2 : n.push(...e2));
|
|
1363
1363
|
}
|
|
1364
1364
|
return (e.f & 8388608) !== 0 && (e.f ^= r1), u;
|
|
@@ -1394,7 +1394,7 @@ function _4(e, t) {
|
|
|
1394
1394
|
if (r === null && (t.f & 2) !== 0 && (U === null || !e1.call(U, t))) {
|
|
1395
1395
|
var i = t;
|
|
1396
1396
|
(i.f & 512) !== 0 && (i.f ^= 512), i.v !== N && K1(i), i.ac !== null && g1(() => {
|
|
1397
|
-
i.ac.abort(W0), i.ac = null,
|
|
1397
|
+
i.ac.abort(W0), i.ac = null, R(i, Q);
|
|
1398
1398
|
}), G6(i), N0(i, 0);
|
|
1399
1399
|
}
|
|
1400
1400
|
}
|
|
@@ -1406,7 +1406,7 @@ function N0(e, t) {
|
|
|
1406
1406
|
function p0(e) {
|
|
1407
1407
|
var t = e.f;
|
|
1408
1408
|
if ((t & 16384) === 0) {
|
|
1409
|
-
|
|
1409
|
+
R(e, r2);
|
|
1410
1410
|
var r = y, n = J0;
|
|
1411
1411
|
if (y = e, J0 = (t & 96) === 0, 0)
|
|
1412
1412
|
var a, i;
|
|
@@ -1425,7 +1425,7 @@ function v(e) {
|
|
|
1425
1425
|
if (p4?.add(e), x !== null && !l2 && !(y !== null && (y.f & 16384) !== 0) && (c2 === null || !c2.has(e))) {
|
|
1426
1426
|
var r = x.deps;
|
|
1427
1427
|
if ((x.f & 2097152) !== 0)
|
|
1428
|
-
e.rv <
|
|
1428
|
+
e.rv < z2 && (e.rv = z2, U === null && r !== null && r[G] === e ? G++ : U === null ? U = [e] : U.push(e));
|
|
1429
1429
|
else {
|
|
1430
1430
|
var n;
|
|
1431
1431
|
(n = x).deps ?? (n.deps = []), e1.call(x.deps, e) || x.deps.push(e);
|
|
@@ -1434,7 +1434,7 @@ function v(e) {
|
|
|
1434
1434
|
}
|
|
1435
1435
|
}
|
|
1436
1436
|
if (0) {
|
|
1437
|
-
if (!l2 && reactivity_loss_tracker && m === null &&
|
|
1437
|
+
if (!l2 && reactivity_loss_tracker && m === null && P1 === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
|
|
1438
1438
|
var i;
|
|
1439
1439
|
if (tracing_mode_flag && !l2 && tracing_expressions !== null && x !== null && tracing_expressions.reaction === x && !e.trace) {
|
|
1440
1440
|
if (i)
|
|
@@ -1448,7 +1448,7 @@ function v(e) {
|
|
|
1448
1448
|
var h = c.v;
|
|
1449
1449
|
return ((c.f & 1024) === 0 && c.reactions !== null || x9(c)) && (h = X1(c)), _2.set(c, h), h;
|
|
1450
1450
|
}
|
|
1451
|
-
var C = (c.f & 512) === 0 && !l2 && x !== null && (J0 || (x.f & 512) !== 0), u = (c.f &
|
|
1451
|
+
var C = (c.f & 512) === 0 && !l2 && x !== null && (J0 || (x.f & 512) !== 0), u = (c.f & z1) === 0;
|
|
1452
1452
|
D0(c) && (C && (c.f |= 512), G8(c)), C && !u && (X8(c), $9(c));
|
|
1453
1453
|
}
|
|
1454
1454
|
if (q?.has(e)) return q.get(e);
|
|
@@ -1501,7 +1501,7 @@ function E8(e) {
|
|
|
1501
1501
|
c <= h && (s = c);
|
|
1502
1502
|
}
|
|
1503
1503
|
if (i = a[s] || e.target, i !== t) {
|
|
1504
|
-
|
|
1504
|
+
P0(e, "currentTarget", {
|
|
1505
1505
|
configurable: !0,
|
|
1506
1506
|
get() {
|
|
1507
1507
|
return i || r;
|
|
@@ -1652,7 +1652,7 @@ function $4(e) {
|
|
|
1652
1652
|
let t = 0, r = e0(0), n;
|
|
1653
1653
|
return () => {
|
|
1654
1654
|
n8() && (v(r), a8(() => (t === 0 && (n = w1(() => e(() => E0(r)))), t += 1, () => {
|
|
1655
|
-
|
|
1655
|
+
L2(() => {
|
|
1656
1656
|
t -= 1, t === 0 && (n?.(), n = void 0, E0(r));
|
|
1657
1657
|
});
|
|
1658
1658
|
})));
|
|
@@ -1662,9 +1662,9 @@ var x4 = U1 | v0;
|
|
|
1662
1662
|
function S4(e, t, r, n) {
|
|
1663
1663
|
new E4(e, t, r, n);
|
|
1664
1664
|
}
|
|
1665
|
-
var C2 = /* @__PURE__ */ new WeakMap(), j1 = /* @__PURE__ */ new WeakMap(), v2 = /* @__PURE__ */ new WeakMap(), I0 = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), f2 = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), o2 = /* @__PURE__ */ new WeakMap(),
|
|
1665
|
+
var C2 = /* @__PURE__ */ new WeakMap(), j1 = /* @__PURE__ */ new WeakMap(), v2 = /* @__PURE__ */ new WeakMap(), I0 = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), f2 = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), o2 = /* @__PURE__ */ new WeakMap(), R2 = /* @__PURE__ */ new WeakMap(), l0 = /* @__PURE__ */ new WeakMap(), X2 = /* @__PURE__ */ new WeakMap(), B0 = /* @__PURE__ */ new WeakMap(), H1 = /* @__PURE__ */ new WeakMap(), D1 = /* @__PURE__ */ new WeakMap(), W2 = /* @__PURE__ */ new WeakMap(), T8 = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakSet(), E4 = class {
|
|
1666
1666
|
constructor(e, t, r, n) {
|
|
1667
|
-
J1(this, I), A(this, "parent", void 0), A(this, "is_pending", !1), A(this, "transform_error", void 0), w(this, C2, void 0), w(this, j1, E ? S : null), w(this, v2, void 0), w(this, I0, void 0), w(this, X, void 0), w(this, f2, null), w(this, J, null), w(this, o2, null), w(this,
|
|
1667
|
+
J1(this, I), A(this, "parent", void 0), A(this, "is_pending", !1), A(this, "transform_error", void 0), w(this, C2, void 0), w(this, j1, E ? S : null), w(this, v2, void 0), w(this, I0, void 0), w(this, X, void 0), w(this, f2, null), w(this, J, null), w(this, o2, null), w(this, R2, null), w(this, l0, 0), w(this, X2, 0), w(this, B0, !1), w(this, H1, /* @__PURE__ */ new Set()), w(this, D1, /* @__PURE__ */ new Set()), w(this, W2, null), w(this, T8, $4(() => (g(W2, this, e0(l(l0, this))), () => {
|
|
1668
1668
|
g(W2, this, null);
|
|
1669
1669
|
}))), g(C2, this, e), g(v2, this, t), g(I0, this, (a) => {
|
|
1670
1670
|
var i = y;
|
|
@@ -1691,8 +1691,8 @@ var C2 = /* @__PURE__ */ new WeakMap(), j1 = /* @__PURE__ */ new WeakMap(), v2 =
|
|
|
1691
1691
|
return !!l(v2, this).pending;
|
|
1692
1692
|
}
|
|
1693
1693
|
update_pending_count(e, t) {
|
|
1694
|
-
M(I, this, A9).call(this, e, t), g(l0, this, l(l0, this) + e), !(!l(W2, this) || l(
|
|
1695
|
-
g(
|
|
1694
|
+
M(I, this, A9).call(this, e, t), g(l0, this, l(l0, this) + e), !(!l(W2, this) || l(B0, this)) && (g(B0, this, !0), L2(() => {
|
|
1695
|
+
g(B0, this, !1), l(W2, this) && h0(l(W2, this), l(l0, this));
|
|
1696
1696
|
}));
|
|
1697
1697
|
}
|
|
1698
1698
|
get_effect_pending() {
|
|
@@ -1714,7 +1714,7 @@ function T4() {
|
|
|
1714
1714
|
}
|
|
1715
1715
|
function A4(e) {
|
|
1716
1716
|
const t = l(v2, this).failed, { reset: r, invoke_onerror: n } = M(I, this, E9).call(this, e);
|
|
1717
|
-
|
|
1717
|
+
L2(n), t && g(o2, this, n2(() => {
|
|
1718
1718
|
t(l(C2, this), () => e, () => r);
|
|
1719
1719
|
}));
|
|
1720
1720
|
}
|
|
@@ -1744,8 +1744,8 @@ function E9(e) {
|
|
|
1744
1744
|
}
|
|
1745
1745
|
function O4() {
|
|
1746
1746
|
const e = l(v2, this).pending;
|
|
1747
|
-
e && (this.is_pending = !0, g(J, this, n2(() => e(l(C2, this)))),
|
|
1748
|
-
var t = g(
|
|
1747
|
+
e && (this.is_pending = !0, g(J, this, n2(() => e(l(C2, this)))), L2(() => {
|
|
1748
|
+
var t = g(R2, this, document.createDocumentFragment()), r = t2(), n = !1;
|
|
1749
1749
|
if (t.append(r), g(f2, this, M(I, this, c8).call(this, () => {
|
|
1750
1750
|
try {
|
|
1751
1751
|
return n2(() => l(I0, this).call(this, r));
|
|
@@ -1758,10 +1758,10 @@ function O4() {
|
|
|
1758
1758
|
return null;
|
|
1759
1759
|
}
|
|
1760
1760
|
})), l(f2, this) === null) {
|
|
1761
|
-
g(
|
|
1761
|
+
g(R2, this, null), n && M(I, this, d1).call(this, m);
|
|
1762
1762
|
return;
|
|
1763
1763
|
}
|
|
1764
|
-
l(X2, this) === 0 && (l(C2, this).before(t), g(
|
|
1764
|
+
l(X2, this) === 0 && (l(C2, this).before(t), g(R2, this, null), n0(l(J, this), () => {
|
|
1765
1765
|
g(J, this, null);
|
|
1766
1766
|
}), M(I, this, d1).call(this, m));
|
|
1767
1767
|
}));
|
|
@@ -1771,7 +1771,7 @@ function T9() {
|
|
|
1771
1771
|
if (this.is_pending = this.has_pending_snippet(), g(X2, this, 0), g(l0, this, 0), g(f2, this, n2(() => {
|
|
1772
1772
|
l(I0, this).call(this, l(C2, this));
|
|
1773
1773
|
})), l(X2, this) > 0) {
|
|
1774
|
-
var e = g(
|
|
1774
|
+
var e = g(R2, this, document.createDocumentFragment());
|
|
1775
1775
|
l8(l(f2, this), e);
|
|
1776
1776
|
const t = l(v2, this).pending;
|
|
1777
1777
|
g(J, this, n2(() => t(l(C2, this))));
|
|
@@ -1784,7 +1784,7 @@ function d1(e) {
|
|
|
1784
1784
|
this.is_pending = !1, e.transfer_effects(l(H1, this), l(D1, this));
|
|
1785
1785
|
}
|
|
1786
1786
|
function c8(e) {
|
|
1787
|
-
var t = y, r = x, n =
|
|
1787
|
+
var t = y, r = x, n = P;
|
|
1788
1788
|
b2(l(X, this)), a2(l(X, this)), d0(l(X, this).ctx);
|
|
1789
1789
|
try {
|
|
1790
1790
|
return r0.ensure(), e();
|
|
@@ -1802,7 +1802,7 @@ function A9(e, t) {
|
|
|
1802
1802
|
}
|
|
1803
1803
|
g(X2, this, l(X2, this) + e), l(X2, this) === 0 && (M(I, this, d1).call(this, t), l(J, this) && n0(l(J, this), () => {
|
|
1804
1804
|
g(J, this, null);
|
|
1805
|
-
}), l(
|
|
1805
|
+
}), l(R2, this) && (l(C2, this).before(l(R2, this)), g(R2, this, null)));
|
|
1806
1806
|
}
|
|
1807
1807
|
function A8(e) {
|
|
1808
1808
|
l(f2, this) && (F(l(f2, this)), g(f2, this, null)), l(J, this) && (F(l(J, this)), g(J, this, null)), l(o2, this) && (F(l(o2, this)), g(o2, this, null)), E && (Y(l(j1, this)), x6(), Y(n1()));
|
|
@@ -1820,7 +1820,7 @@ function A8(e) {
|
|
|
1820
1820
|
}
|
|
1821
1821
|
}));
|
|
1822
1822
|
};
|
|
1823
|
-
|
|
1823
|
+
L2(() => {
|
|
1824
1824
|
var n;
|
|
1825
1825
|
try {
|
|
1826
1826
|
n = this.transform_error(e);
|
|
@@ -1837,16 +1837,16 @@ function O0(e, t) {
|
|
|
1837
1837
|
r !== (e[K0] ?? (e[K0] = e.nodeValue)) && (e[K0] = r, e.nodeValue = `${r}`);
|
|
1838
1838
|
}
|
|
1839
1839
|
function O9(e, t) {
|
|
1840
|
-
return
|
|
1840
|
+
return P9(e, t);
|
|
1841
1841
|
}
|
|
1842
|
-
function
|
|
1842
|
+
function P4(e, t) {
|
|
1843
1843
|
N1(), t.intro = t.intro ?? !1;
|
|
1844
1844
|
const r = t.target, n = E, a = S;
|
|
1845
1845
|
try {
|
|
1846
1846
|
for (var i = /* @__PURE__ */ Z2(r); i && (i.nodeType !== 8 || i.data !== "["); ) i = /* @__PURE__ */ g2(i);
|
|
1847
1847
|
if (!i) throw u0;
|
|
1848
1848
|
V2(!0), Y(i);
|
|
1849
|
-
const s =
|
|
1849
|
+
const s = P9(e, {
|
|
1850
1850
|
...t,
|
|
1851
1851
|
anchor: i
|
|
1852
1852
|
});
|
|
@@ -1859,15 +1859,15 @@ function L4(e, t) {
|
|
|
1859
1859
|
V2(n), Y(a);
|
|
1860
1860
|
}
|
|
1861
1861
|
}
|
|
1862
|
-
var
|
|
1863
|
-
function
|
|
1862
|
+
var z0 = /* @__PURE__ */ new Map();
|
|
1863
|
+
function P9(e, { target: t, anchor: r, props: n = {}, events: a, context: i, intro: s = !0, transformError: o }) {
|
|
1864
1864
|
N1();
|
|
1865
1865
|
var c = void 0, h = f4(() => {
|
|
1866
1866
|
var C = r ?? t.appendChild(t2());
|
|
1867
1867
|
S4(C, { pending: () => {
|
|
1868
1868
|
} }, (f) => {
|
|
1869
1869
|
k1({});
|
|
1870
|
-
var _ =
|
|
1870
|
+
var _ = P;
|
|
1871
1871
|
if (i && (_.c = i), a && (n.$$events = a), E && f0(f, null), O8 = s, c = e(f, n) || Y1(), O8 = !0, E && (y.nodes.end = S, S === null || S.nodeType !== 8 || S.data !== "]"))
|
|
1872
1872
|
throw v1(), u0;
|
|
1873
1873
|
b1();
|
|
@@ -1878,19 +1878,19 @@ function L9(e, { target: t, anchor: r, props: n = {}, events: a, context: i, int
|
|
|
1878
1878
|
if (!u.has(k)) {
|
|
1879
1879
|
u.add(k);
|
|
1880
1880
|
var p = y4(k);
|
|
1881
|
-
for (const
|
|
1882
|
-
var b =
|
|
1883
|
-
b === void 0 && (b = /* @__PURE__ */ new Map(),
|
|
1881
|
+
for (const L of [t, document]) {
|
|
1882
|
+
var b = z0.get(L);
|
|
1883
|
+
b === void 0 && (b = /* @__PURE__ */ new Map(), z0.set(L, b));
|
|
1884
1884
|
var T = b.get(k);
|
|
1885
|
-
T === void 0 ? (
|
|
1885
|
+
T === void 0 ? (L.addEventListener(k, E8, { passive: p }), b.set(k, 1)) : b.set(k, T + 1);
|
|
1886
1886
|
}
|
|
1887
1887
|
}
|
|
1888
1888
|
}
|
|
1889
1889
|
};
|
|
1890
1890
|
return d(p1(S9)), W1.add(d), () => {
|
|
1891
1891
|
for (var f of u) for (const p of [t, document]) {
|
|
1892
|
-
var _ =
|
|
1893
|
-
--k == 0 ? (p.removeEventListener(f, E8), _.delete(f), _.size === 0 &&
|
|
1892
|
+
var _ = z0.get(p), k = _.get(f);
|
|
1893
|
+
--k == 0 ? (p.removeEventListener(f, E8), _.delete(f), _.size === 0 && z0.delete(p)) : _.set(f, k);
|
|
1894
1894
|
}
|
|
1895
1895
|
W1.delete(d), C !== r && C.parentNode?.removeChild(C);
|
|
1896
1896
|
};
|
|
@@ -1898,11 +1898,11 @@ function L9(e, { target: t, anchor: r, props: n = {}, events: a, context: i, int
|
|
|
1898
1898
|
return q1.set(c, h), c;
|
|
1899
1899
|
}
|
|
1900
1900
|
var q1 = /* @__PURE__ */ new WeakMap();
|
|
1901
|
-
function
|
|
1901
|
+
function R4(e, t) {
|
|
1902
1902
|
const r = q1.get(e);
|
|
1903
1903
|
return r ? (q1.delete(e), r(t)) : Promise.resolve();
|
|
1904
1904
|
}
|
|
1905
|
-
var m2 = /* @__PURE__ */ new WeakMap(), T2 = /* @__PURE__ */ new WeakMap(), i2 = /* @__PURE__ */ new WeakMap(), b0 = /* @__PURE__ */ new WeakMap(), x1 = /* @__PURE__ */ new WeakMap(), S1 = /* @__PURE__ */ new WeakMap(),
|
|
1905
|
+
var m2 = /* @__PURE__ */ new WeakMap(), T2 = /* @__PURE__ */ new WeakMap(), i2 = /* @__PURE__ */ new WeakMap(), b0 = /* @__PURE__ */ new WeakMap(), x1 = /* @__PURE__ */ new WeakMap(), S1 = /* @__PURE__ */ new WeakMap(), P8 = /* @__PURE__ */ new WeakMap(), L4 = class {
|
|
1906
1906
|
constructor(e, t = !0) {
|
|
1907
1907
|
A(this, "anchor", void 0), w(this, m2, /* @__PURE__ */ new Map()), w(this, T2, /* @__PURE__ */ new Map()), w(this, i2, /* @__PURE__ */ new Map()), w(this, b0, /* @__PURE__ */ new Set()), w(this, x1, !0), w(this, S1, (r) => {
|
|
1908
1908
|
if (l(m2, this).has(r)) {
|
|
@@ -1933,7 +1933,7 @@ var m2 = /* @__PURE__ */ new WeakMap(), T2 = /* @__PURE__ */ new WeakMap(), i2 =
|
|
|
1933
1933
|
l(x1, this) || !a ? (l(b0, this).add(s), n0(o, c, !1)) : c();
|
|
1934
1934
|
}
|
|
1935
1935
|
}
|
|
1936
|
-
}), w(this,
|
|
1936
|
+
}), w(this, P8, (r) => {
|
|
1937
1937
|
l(m2, this).delete(r);
|
|
1938
1938
|
const n = Array.from(l(m2, this).values());
|
|
1939
1939
|
for (const [a, i] of l(i2, this)) n.includes(a) || (F(i.effect), l(i2, this).delete(a));
|
|
@@ -1952,13 +1952,13 @@ var m2 = /* @__PURE__ */ new WeakMap(), T2 = /* @__PURE__ */ new WeakMap(), i2 =
|
|
|
1952
1952
|
if (l(m2, this).set(r, e), n) {
|
|
1953
1953
|
for (const [s, o] of l(T2, this)) s === e ? r.unskip_effect(o) : r.skip_effect(o);
|
|
1954
1954
|
for (const [s, o] of l(i2, this)) s === e ? r.unskip_effect(o.effect) : r.skip_effect(o.effect);
|
|
1955
|
-
r.oncommit(l(S1, this)), r.ondiscard(l(
|
|
1955
|
+
r.oncommit(l(S1, this)), r.ondiscard(l(P8, this));
|
|
1956
1956
|
} else
|
|
1957
1957
|
E && (this.anchor = S), l(S1, this).call(this, r);
|
|
1958
1958
|
}
|
|
1959
1959
|
};
|
|
1960
1960
|
function Z4(e) {
|
|
1961
|
-
|
|
1961
|
+
P === null && E6("onMount"), j0 && P.l !== null ? N4(P).m.push(e) : s0(() => {
|
|
1962
1962
|
const t = w1(e);
|
|
1963
1963
|
if (typeof t == "function") return t;
|
|
1964
1964
|
});
|
|
@@ -1974,7 +1974,7 @@ function N4(e) {
|
|
|
1974
1974
|
function I4(e, t, r = !1) {
|
|
1975
1975
|
var n;
|
|
1976
1976
|
E && (n = S, _1());
|
|
1977
|
-
var a = new
|
|
1977
|
+
var a = new L4(e), i = r ? U1 : 0;
|
|
1978
1978
|
function s(o, c) {
|
|
1979
1979
|
if (E) {
|
|
1980
1980
|
var h = F8(n);
|
|
@@ -2034,7 +2034,7 @@ function F1(e, t, r = !0) {
|
|
|
2034
2034
|
}
|
|
2035
2035
|
}
|
|
2036
2036
|
var U0;
|
|
2037
|
-
function
|
|
2037
|
+
function R8(e, t, r, n, a, i = null) {
|
|
2038
2038
|
var s = e, o = /* @__PURE__ */ new Map();
|
|
2039
2039
|
if ((t & 4) !== 0) {
|
|
2040
2040
|
var c = e;
|
|
@@ -2059,17 +2059,17 @@ function P8(e, t, r, n, a, i = null) {
|
|
|
2059
2059
|
var b = u.length;
|
|
2060
2060
|
let T = !1;
|
|
2061
2061
|
E && F8(s) === "[!" != (b === 0) && (s = n1(), Y(s), V2(!1), T = !0);
|
|
2062
|
-
for (var
|
|
2062
|
+
for (var L = /* @__PURE__ */ new Set(), V = m, D = h9(), Z = 0; Z < b; Z += 1) {
|
|
2063
2063
|
E && S.nodeType === 8 && S.data === "]" && (s = S, T = !0, V2(!1));
|
|
2064
2064
|
var $ = u[Z], K = n($, Z);
|
|
2065
2065
|
if (0)
|
|
2066
2066
|
var _0;
|
|
2067
2067
|
var W = f ? null : o.get(K);
|
|
2068
|
-
W ? (W.v && h0(W.v, $), W.i && h0(W.i, Z), D && V.unskip_effect(W.e)) : (W = H4(o, f ? s : U0 ?? (U0 = t2()), $, K, Z, a, t, r), f || (W.e.f |= $0), o.set(K, W)),
|
|
2068
|
+
W ? (W.v && h0(W.v, $), W.i && h0(W.i, Z), D && V.unskip_effect(W.e)) : (W = H4(o, f ? s : U0 ?? (U0 = t2()), $, K, Z, a, t, r), f || (W.e.f |= $0), o.set(K, W)), L.add(K);
|
|
2069
2069
|
}
|
|
2070
|
-
if (b === 0 && i && !h && (f ? h = n2(() => i(s)) : (h = n2(() => i(U0 ?? (U0 = t2()))), h.f |= $0)), b >
|
|
2071
|
-
if (d.set(V,
|
|
2072
|
-
for (const [
|
|
2070
|
+
if (b === 0 && i && !h && (f ? h = n2(() => i(s)) : (h = n2(() => i(U0 ?? (U0 = t2()))), h.f |= $0)), b > L.size && A6("", "", ""), E && b > 0 && Y(n1()), !f)
|
|
2071
|
+
if (d.set(V, L), D) {
|
|
2072
|
+
for (const [B, k0] of o) L.has(B) || V.skip_effect(k0.e);
|
|
2073
2073
|
V.oncommit(_), V.ondiscard(k);
|
|
2074
2074
|
} else _(V);
|
|
2075
2075
|
T && V2(!0), v(C);
|
|
@@ -2103,12 +2103,12 @@ function j4(e, t, r, n, a) {
|
|
|
2103
2103
|
if (p !== c) {
|
|
2104
2104
|
if (h !== void 0 && h.has(p)) {
|
|
2105
2105
|
if (d.length < f.length) {
|
|
2106
|
-
var
|
|
2107
|
-
C =
|
|
2106
|
+
var L = f[0], V;
|
|
2107
|
+
C = L.prev;
|
|
2108
2108
|
var D = d[0], Z = d[d.length - 1];
|
|
2109
|
-
for (V = 0; V < d.length; V += 1) V0(d[V],
|
|
2109
|
+
for (V = 0; V < d.length; V += 1) V0(d[V], L, r);
|
|
2110
2110
|
for (V = 0; V < f.length; V += 1) h.delete(f[V]);
|
|
2111
|
-
A2(e, D.prev, Z.next), A2(e, C, D), A2(e, Z,
|
|
2111
|
+
A2(e, D.prev, Z.next), A2(e, C, D), A2(e, Z, L), c = L, C = Z, b -= 1, d = [], f = [];
|
|
2112
2112
|
} else
|
|
2113
2113
|
h.delete(p), V0(p, c, r), A2(e, p.prev, p.next), A2(e, p, C === null ? e.effect.first : C.next), A2(e, C, p), C = p;
|
|
2114
2114
|
continue;
|
|
@@ -2139,7 +2139,7 @@ function j4(e, t, r, n, a) {
|
|
|
2139
2139
|
W4(e, $, _0);
|
|
2140
2140
|
}
|
|
2141
2141
|
}
|
|
2142
|
-
i &&
|
|
2142
|
+
i && L2(() => {
|
|
2143
2143
|
if (u !== void 0)
|
|
2144
2144
|
for (p of u) p.nodes?.a?.apply();
|
|
2145
2145
|
});
|
|
@@ -2175,7 +2175,7 @@ function C8(e, t) {
|
|
|
2175
2175
|
}
|
|
2176
2176
|
});
|
|
2177
2177
|
}
|
|
2178
|
-
var
|
|
2178
|
+
var L8 = [...`
|
|
2179
2179
|
\r\f \v\uFEFF`];
|
|
2180
2180
|
function D4(e, t, r) {
|
|
2181
2181
|
var n = e == null ? "" : "" + e;
|
|
@@ -2184,7 +2184,7 @@ function D4(e, t, r) {
|
|
|
2184
2184
|
else if (n.length)
|
|
2185
2185
|
for (var i = a.length, s = 0; (s = n.indexOf(a, s)) >= 0; ) {
|
|
2186
2186
|
var o = s + i;
|
|
2187
|
-
(s === 0 ||
|
|
2187
|
+
(s === 0 || L8.includes(n[s - 1])) && (o === n.length || L8.includes(n[o])) ? n = (s === 0 ? "" : n.substring(0, s)) + n.substring(o + 1) : s = o;
|
|
2188
2188
|
}
|
|
2189
2189
|
}
|
|
2190
2190
|
return n === "" ? null : n;
|
|
@@ -2200,16 +2200,16 @@ function J2(e, t, r, n, a, i) {
|
|
|
2200
2200
|
}
|
|
2201
2201
|
return i;
|
|
2202
2202
|
}
|
|
2203
|
-
var q4 = /* @__PURE__ */ Symbol("is custom element"), F4 = /* @__PURE__ */ Symbol("is html"),
|
|
2203
|
+
var q4 = /* @__PURE__ */ Symbol("is custom element"), F4 = /* @__PURE__ */ Symbol("is html"), B4 = y6 ? "link" : "LINK";
|
|
2204
2204
|
function H(e, t, r, n) {
|
|
2205
|
-
var a =
|
|
2206
|
-
if (E && (a[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName ===
|
|
2205
|
+
var a = z4(e);
|
|
2206
|
+
if (E && (a[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === B4)) {
|
|
2207
2207
|
n || void 0;
|
|
2208
2208
|
return;
|
|
2209
2209
|
}
|
|
2210
2210
|
a[t] !== (a[t] = r) && (t === "loading" && (e[w6] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && U4(e).has(t) ? e[t] = r : e.setAttribute(t, r));
|
|
2211
2211
|
}
|
|
2212
|
-
function
|
|
2212
|
+
function z4(e) {
|
|
2213
2213
|
return e[A1] ?? (e[A1] = {
|
|
2214
2214
|
[q4]: e.nodeName.includes("-"),
|
|
2215
2215
|
[F4]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
@@ -2227,7 +2227,7 @@ function U4(e) {
|
|
|
2227
2227
|
}
|
|
2228
2228
|
return r;
|
|
2229
2229
|
}
|
|
2230
|
-
var
|
|
2230
|
+
var R9, o0 = /* @__PURE__ */ new WeakMap(), h1 = /* @__PURE__ */ new WeakMap(), E1 = /* @__PURE__ */ new WeakMap(), N8 = /* @__PURE__ */ new WeakSet(), L9 = class {
|
|
2231
2231
|
constructor(e) {
|
|
2232
2232
|
J1(this, N8), w(this, o0, /* @__PURE__ */ new WeakMap()), w(this, h1, void 0), w(this, E1, void 0), g(E1, this, e);
|
|
2233
2233
|
}
|
|
@@ -2239,21 +2239,21 @@ var P9, o0 = /* @__PURE__ */ new WeakMap(), h1 = /* @__PURE__ */ new WeakMap(),
|
|
|
2239
2239
|
};
|
|
2240
2240
|
}
|
|
2241
2241
|
};
|
|
2242
|
-
|
|
2242
|
+
R9 = L9;
|
|
2243
2243
|
function Y4() {
|
|
2244
2244
|
return l(h1, this) ?? g(h1, this, new ResizeObserver((e) => {
|
|
2245
2245
|
for (var t of e) {
|
|
2246
|
-
|
|
2246
|
+
R9.entries.set(t.target, t);
|
|
2247
2247
|
for (var r of l(o0, this).get(t.target) || []) r(t);
|
|
2248
2248
|
}
|
|
2249
2249
|
}));
|
|
2250
2250
|
}
|
|
2251
|
-
A(
|
|
2251
|
+
A(L9, "entries", /* @__PURE__ */ new WeakMap());
|
|
2252
2252
|
function T1(e, t) {
|
|
2253
2253
|
return e === t || e?.[x0] === t;
|
|
2254
2254
|
}
|
|
2255
2255
|
function f8(e = Y1(), t, r, n) {
|
|
2256
|
-
var a =
|
|
2256
|
+
var a = P.r, i = y;
|
|
2257
2257
|
return v9(() => {
|
|
2258
2258
|
var s, o;
|
|
2259
2259
|
return a8(() => {
|
|
@@ -2281,8 +2281,8 @@ function K4(e) {
|
|
|
2281
2281
|
Y0 = t;
|
|
2282
2282
|
}
|
|
2283
2283
|
}
|
|
2284
|
-
function
|
|
2285
|
-
var a = !j0 || (r & 2) !== 0, i = (r & 8) !== 0, s = (r & 16) !== 0, o = n, c = !0, h = void 0, C = () => s && a ? (h ?? (h = /* @__PURE__ */
|
|
2284
|
+
function P2(e, t, r, n) {
|
|
2285
|
+
var a = !j0 || (r & 2) !== 0, i = (r & 8) !== 0, s = (r & 16) !== 0, o = n, c = !0, h = void 0, C = () => s && a ? (h ?? (h = /* @__PURE__ */ L0(n)), v(h)) : (c && (c = !1, o = s ? w1(n) : n), o);
|
|
2286
2286
|
let u;
|
|
2287
2287
|
if (i) {
|
|
2288
2288
|
var d = x0 in e || q8 in e;
|
|
@@ -2304,15 +2304,15 @@ function L2(e, t, r, n) {
|
|
|
2304
2304
|
return arguments.length > 0 ? ((!a || !D || p || _) && u(D ? k() : V), V) : k();
|
|
2305
2305
|
});
|
|
2306
2306
|
}
|
|
2307
|
-
var b = !1, T = ((r & 1) !== 0 ?
|
|
2307
|
+
var b = !1, T = ((r & 1) !== 0 ? L0 : G1)(() => (b = !1, k()));
|
|
2308
2308
|
i && v(T);
|
|
2309
|
-
var
|
|
2309
|
+
var L = y;
|
|
2310
2310
|
return (function(V, D) {
|
|
2311
2311
|
if (arguments.length > 0) {
|
|
2312
2312
|
const Z = D ? v(T) : a && i ? c0(V) : V;
|
|
2313
2313
|
return j(T, Z), b = !0, o !== void 0 && (o = Z), V;
|
|
2314
2314
|
}
|
|
2315
|
-
return S2 && b || (
|
|
2315
|
+
return S2 && b || (L.f & 16384) !== 0 ? T.v : v(T);
|
|
2316
2316
|
});
|
|
2317
2317
|
}
|
|
2318
2318
|
function G4(e) {
|
|
@@ -2339,7 +2339,7 @@ var j2 = /* @__PURE__ */ new WeakMap(), u2 = /* @__PURE__ */ new WeakMap(), X4 =
|
|
|
2339
2339
|
return j(t.get(i) ?? r(i, s), s), Reflect.set(a, i, s);
|
|
2340
2340
|
}
|
|
2341
2341
|
});
|
|
2342
|
-
g(u2, this, (e.hydrate ?
|
|
2342
|
+
g(u2, this, (e.hydrate ? P4 : O9)(e.component, {
|
|
2343
2343
|
target: e.target,
|
|
2344
2344
|
anchor: e.anchor,
|
|
2345
2345
|
props: n,
|
|
@@ -2349,7 +2349,7 @@ var j2 = /* @__PURE__ */ new WeakMap(), u2 = /* @__PURE__ */ new WeakMap(), X4 =
|
|
|
2349
2349
|
transformError: e.transformError
|
|
2350
2350
|
})), !N2 && (!e?.props?.$$host || e.sync === !1) && $2(), g(j2, this, n.$$events);
|
|
2351
2351
|
for (const a of Object.keys(l(u2, this)))
|
|
2352
|
-
a === "$set" || a === "$destroy" || a === "$on" ||
|
|
2352
|
+
a === "$set" || a === "$destroy" || a === "$on" || P0(this, a, {
|
|
2353
2353
|
get() {
|
|
2354
2354
|
return l(u2, this)[a];
|
|
2355
2355
|
},
|
|
@@ -2361,7 +2361,7 @@ var j2 = /* @__PURE__ */ new WeakMap(), u2 = /* @__PURE__ */ new WeakMap(), X4 =
|
|
|
2361
2361
|
l(u2, this).$set = (a) => {
|
|
2362
2362
|
Object.assign(n, a);
|
|
2363
2363
|
}, l(u2, this).$destroy = () => {
|
|
2364
|
-
|
|
2364
|
+
R4(l(u2, this));
|
|
2365
2365
|
};
|
|
2366
2366
|
}
|
|
2367
2367
|
$set(e) {
|
|
@@ -2492,7 +2492,7 @@ function u8(e, t, r, n, a, i) {
|
|
|
2492
2492
|
}
|
|
2493
2493
|
};
|
|
2494
2494
|
return t1(t).forEach((o) => {
|
|
2495
|
-
|
|
2495
|
+
P0(s.prototype, o, {
|
|
2496
2496
|
get() {
|
|
2497
2497
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
2498
2498
|
},
|
|
@@ -2503,7 +2503,7 @@ function u8(e, t, r, n, a, i) {
|
|
|
2503
2503
|
}
|
|
2504
2504
|
});
|
|
2505
2505
|
}), n.forEach((o) => {
|
|
2506
|
-
|
|
2506
|
+
P0(s.prototype, o, { get() {
|
|
2507
2507
|
return this.$$c?.[o];
|
|
2508
2508
|
} });
|
|
2509
2509
|
}), i && (s = i(s)), e.element = s, s;
|
|
@@ -2517,7 +2517,7 @@ var I8 = /* @__PURE__ */ M1('<button type="button"><span aria-hidden="true"> </s
|
|
|
2517
2517
|
};
|
|
2518
2518
|
function N9(e, t) {
|
|
2519
2519
|
k1(t, !0), C8(e, e7);
|
|
2520
|
-
let r =
|
|
2520
|
+
let r = P2(t, "controller", 7), n = P2(t, "i18n", 7), a = P2(t, "classPrefix", 7), i = P2(t, "element", 15);
|
|
2521
2521
|
var s = {
|
|
2522
2522
|
get controller() {
|
|
2523
2523
|
return r();
|
|
@@ -2544,7 +2544,7 @@ function N9(e, t) {
|
|
|
2544
2544
|
i(C), $2();
|
|
2545
2545
|
}
|
|
2546
2546
|
}, o = Q4(), c = p2(o);
|
|
2547
|
-
|
|
2547
|
+
R8(c, 17, () => Object.entries(s6), ([C, u]) => C, (C, u) => {
|
|
2548
2548
|
var d = /* @__PURE__ */ G0(() => p6(v(u), 2));
|
|
2549
2549
|
let f = () => v(d)[0], _ = () => v(d)[1];
|
|
2550
2550
|
var k = I8(), p = p2(k), b = T0(p, !0);
|
|
@@ -2553,7 +2553,7 @@ function N9(e, t) {
|
|
|
2553
2553
|
}, [() => n().t(_().labelKey)]), y2("click", k, () => r().nudge(f())), G2(C, k);
|
|
2554
2554
|
});
|
|
2555
2555
|
var h = q2(c, 4);
|
|
2556
|
-
return
|
|
2556
|
+
return R8(h, 16, () => l6, (C) => C, (C, u) => {
|
|
2557
2557
|
var d = I8(), f = p2(d), _ = T0(f);
|
|
2558
2558
|
h2(d), A0((k, p) => {
|
|
2559
2559
|
J2(d, 1, `pie-tool-placement__control ${a() ?? ""}__control`, "svelte-nt6qeh"), H(d, "aria-label", k), O0(_, `${u > 0 ? "↻" : "↺"}${p ?? ""}°`);
|
|
@@ -2579,7 +2579,7 @@ var t7 = /* @__PURE__ */ M1('<span aria-hidden="true"></span> <div aria-hidden="
|
|
|
2579
2579
|
};
|
|
2580
2580
|
function I9(e, t) {
|
|
2581
2581
|
k1(t, !0), C8(e, r7);
|
|
2582
|
-
let r =
|
|
2582
|
+
let r = P2(t, "controller", 7), n = P2(t, "classPrefix", 7), a = /* @__PURE__ */ z(void 0);
|
|
2583
2583
|
var i = {
|
|
2584
2584
|
get controller() {
|
|
2585
2585
|
return r();
|
|
@@ -2612,15 +2612,15 @@ var n7 = "data:image/svg+xml,%3csvg%20width='3080'%20height='355'%20viewBox='0%2
|
|
|
2612
2612
|
/* A frameless overlay draws its own surface, so the frame line goes. */:host([data-pie-tool-surface='frameless']) .pie-tool-ruler__frame.svelte-1oli5ih {box-shadow:none;}.pie-tool-ruler__container.svelte-1oli5ih {background-color:color-mix(in srgb, var(--pie-background, #fff) 90%, transparent); /* Matching production implementation semi-transparent white background */position:relative;}.pie-tool-ruler__container.svelte-1oli5ih,
|
|
2613
2613
|
.pie-tool-ruler__image.svelte-1oli5ih {height:100px; /* Matching production implementation ruler height */width:864px; /* Matching production implementation ruler width */}.pie-tool-ruler__image.svelte-1oli5ih {position:relative;z-index:2;display:block;}
|
|
2614
2614
|
|
|
2615
|
-
/* Unit toggle button group (matching production implementation style) */.pie-tool-ruler__unit-group.svelte-1oli5ih {border:1px solid var(--pie-primary, #3f51b5); /* Matching production implementation primary color */bottom:0.5rem; /* Matching production implementation positioning */left:0.5rem; /* Matching production implementation positioning */position:absolute;display:flex;z-index:10;background:var(--pie-background, #fff);border-radius:4px;overflow:hidden;}.pie-tool-ruler__unit-button.svelte-1oli5ih {background:var(--pie-button-bg, #fff);border:none;border-right:1px solid var(--pie-primary, #3f51b5);color:var(--pie-button-color, var(--pie-primary, #3f51b5));cursor:pointer;padding:4px 8px;font-size:12px;transition:background-color 0.2s, color 0.2s;}.pie-tool-ruler__unit-button.svelte-1oli5ih:last-child {border-right:none;}.pie-tool-ruler__unit-button.svelte-1oli5ih:hover {background-color:var(--pie-button-hover-bg, color-mix(in srgb, var(--pie-primary, #3f51b5) 10%, transparent));}.pie-tool-ruler__unit-button.pie-tool-ruler__unit-button--active.svelte-1oli5ih {background-color:var(--pie-primary, #3f51b5);color:var(--pie-white, #fff);}.pie-tool-ruler__unit-button.svelte-1oli5ih:focus-visible {outline:2px solid var(--pie-primary, #3f51b5);outline-offset:2px;}.pie-tool-ruler__unit-label.svelte-1oli5ih {display:inline-block;font-size:12px;line-height:1.4;}
|
|
2615
|
+
/* Unit toggle button group (matching production implementation style) */.pie-tool-ruler__unit-group.svelte-1oli5ih {border:1px solid var(--pie-primary, #3f51b5); /* Matching production implementation primary color */bottom:0.5rem; /* Matching production implementation positioning */left:0.5rem; /* Matching production implementation positioning */position:absolute;display:flex;z-index:10;background:var(--pie-background, #fff);border-radius:4px;overflow:hidden;}.pie-tool-ruler__unit-button.svelte-1oli5ih {background:var(--pie-button-bg, #fff);border:none;border-right:1px solid var(--pie-primary, #3f51b5);color:var(--pie-button-color, var(--pie-primary, #3f51b5));cursor:pointer;padding:4px 8px;font-size:12px;transition:background-color 0.2s, color 0.2s;}.pie-tool-ruler__unit-button.svelte-1oli5ih:last-child {border-right:none;}.pie-tool-ruler__unit-button.svelte-1oli5ih:hover {background-color:var(--pie-button-hover-bg, color-mix(in srgb, var(--pie-primary, #3f51b5) 10%, transparent));}.pie-tool-ruler__unit-button.pie-tool-ruler__unit-button--active.svelte-1oli5ih {background-color:var(--pie-primary, #3f51b5);color:var(--pie-white, #fff);}.pie-tool-ruler__unit-button.svelte-1oli5ih:focus-visible {outline:2px solid var(--pie-primary, #3f51b5);outline-offset:2px;}.pie-tool-ruler__unit-label.svelte-1oli5ih {display:inline-block;font-size:12px;line-height:1.4;}`
|
|
2616
2616
|
};
|
|
2617
2617
|
function l7(e, t) {
|
|
2618
2618
|
k1(t, !0), C8(e, s7);
|
|
2619
|
-
let r =
|
|
2619
|
+
let r = P2(t, "visible", 7, !1), n = P2(t, "toolId", 7, "ruler");
|
|
2620
2620
|
const a = typeof window < "u";
|
|
2621
|
-
let i = /* @__PURE__ */
|
|
2621
|
+
let i = /* @__PURE__ */ z(void 0), s = /* @__PURE__ */ z(null);
|
|
2622
2622
|
const o = /* @__PURE__ */ G0(() => v(s)?.toolCoordinator), c = /* @__PURE__ */ G0(() => i6(v(s)));
|
|
2623
|
-
let h = /* @__PURE__ */
|
|
2623
|
+
let h = /* @__PURE__ */ z(""), C = /* @__PURE__ */ z("inches"), u = /* @__PURE__ */ z(void 0);
|
|
2624
2624
|
const d = o6({
|
|
2625
2625
|
getElement: () => v(i),
|
|
2626
2626
|
getControls: () => v(u),
|
|
@@ -2658,7 +2658,7 @@ function l7(e, t) {
|
|
|
2658
2658
|
}), s0(() => {
|
|
2659
2659
|
r() && v(i) && setTimeout(() => v(i)?.focus({ preventScroll: !0 }), 100);
|
|
2660
2660
|
});
|
|
2661
|
-
var
|
|
2661
|
+
var L = {
|
|
2662
2662
|
get visible() {
|
|
2663
2663
|
return r();
|
|
2664
2664
|
},
|
|
@@ -2672,7 +2672,7 @@ function l7(e, t) {
|
|
|
2672
2672
|
n($), $2();
|
|
2673
2673
|
}
|
|
2674
2674
|
}, V = w4(), D = I1(V), Z = ($) => {
|
|
2675
|
-
var K = i7(), _0 = I1(K), W = T0(_0, !0),
|
|
2675
|
+
var K = i7(), _0 = I1(K), W = T0(_0, !0), B = q2(_0, 2), k0 = p2(B), d8 = p2(k0), m1 = p2(d8), q0 = q2(m1, 2), E2 = p2(q0);
|
|
2676
2676
|
let h8;
|
|
2677
2677
|
var W9 = p2(E2), j9 = T0(W9, !0);
|
|
2678
2678
|
h2(E2);
|
|
@@ -2702,8 +2702,8 @@ function l7(e, t) {
|
|
|
2702
2702
|
set element(M2) {
|
|
2703
2703
|
j(u, M2, !0);
|
|
2704
2704
|
}
|
|
2705
|
-
}), h2(
|
|
2706
|
-
O0(W, v(h)), H(
|
|
2705
|
+
}), h2(B), f8(B, (M2) => j(i, M2), () => v(i)), A0((M2, F9, B9, z9, U9, Y9, K9, G9, X9, J9, Q9, e6) => {
|
|
2706
|
+
O0(W, v(h)), H(B, "data-pie-tool-id", n()), H(B, "lang", M2), H(B, "dir", F9), H(B, "aria-label", B9), H(B, "aria-roledescription", z9), H(m1, "src", v(_)), H(m1, "alt", U9), H(q0, "aria-label", Y9), h8 = J2(E2, 1, "pie-tool-ruler__unit-button svelte-1oli5ih", null, h8, { "pie-tool-ruler__unit-button--active": v(C) === "inches" }), H(E2, "title", K9), H(E2, "aria-label", G9), H(E2, "aria-pressed", v(C) === "inches"), O0(j9, X9), p8 = J2(I2, 1, "pie-tool-ruler__unit-button svelte-1oli5ih", null, p8, { "pie-tool-ruler__unit-button--active": v(C) === "cm" }), H(I2, "title", J9), H(I2, "aria-label", Q9), H(I2, "aria-pressed", v(C) === "cm"), O0(D9, e6), B.dir = B.dir;
|
|
2707
2707
|
}, [
|
|
2708
2708
|
() => v(c).getLocale(),
|
|
2709
2709
|
() => v(c).getDirection?.() ?? "ltr",
|
|
@@ -2717,9 +2717,9 @@ function l7(e, t) {
|
|
|
2717
2717
|
() => v(c).t("tools.ruler.centimeters"),
|
|
2718
2718
|
() => v(c).t("tools.ruler.switchToCentimetersA11y"),
|
|
2719
2719
|
() => v(c).t("tools.ruler.centimeters")
|
|
2720
|
-
]), y2("pointerdown",
|
|
2720
|
+
]), y2("pointerdown", B, function(...M2) {
|
|
2721
2721
|
d.startDrag?.apply(this, M2);
|
|
2722
|
-
}), y2("keydown",
|
|
2722
|
+
}), y2("keydown", B, T), y2("pointerdown", q0, (M2) => M2.stopPropagation()), y2("click", E2, () => {
|
|
2723
2723
|
j(C, "inches"), k(v(c).t("tools.ruler.switchedTo", { unit: v(c).t("tools.ruler.inchesInSentence") }));
|
|
2724
2724
|
}), y2("click", I2, () => {
|
|
2725
2725
|
j(C, "cm"), k(v(c).t("tools.ruler.switchedTo", { unit: v(c).t("tools.ruler.centimetersInSentence") }));
|
|
@@ -2727,7 +2727,7 @@ function l7(e, t) {
|
|
|
2727
2727
|
};
|
|
2728
2728
|
return I4(D, ($) => {
|
|
2729
2729
|
r() && a && $(Z);
|
|
2730
|
-
}), G2(e, V), b1(
|
|
2730
|
+
}), G2(e, V), b1(L);
|
|
2731
2731
|
}
|
|
2732
2732
|
o8([
|
|
2733
2733
|
"pointerdown",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-players/pie-tool-ruler",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.75",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Ruler measurement tool for PIE assessment player",
|
|
6
6
|
"repository": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"unpkg": "./dist/tool-ruler.js",
|
|
39
39
|
"jsdelivr": "./dist/tool-ruler.js",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@pie-players/pie-assessment-toolkit": "0.3.
|
|
42
|
-
"@pie-players/pie-players-shared": "0.3.
|
|
41
|
+
"@pie-players/pie-assessment-toolkit": "0.3.75",
|
|
42
|
+
"@pie-players/pie-players-shared": "0.3.75"
|
|
43
43
|
},
|
|
44
44
|
"types": "./dist/index.d.ts",
|
|
45
45
|
"scripts": {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"svelte-check": "^4.7.6",
|
|
58
58
|
"typescript": "^5.9.3",
|
|
59
59
|
"vite": "^8.3.2",
|
|
60
|
-
"vite-plugin-dts": "^5.1.
|
|
60
|
+
"vite-plugin-dts": "^5.1.2"
|
|
61
61
|
},
|
|
62
62
|
"homepage": "https://github.com/pie-framework/pie-players/tree/master/packages/tool-ruler#readme",
|
|
63
63
|
"bugs": {
|