@pie-players/pie-tool-annotation-toolbar 0.3.32 → 0.3.33
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
::highlight(tts-word){background-color:var(--pie-tts-word-highlight, color-mix(in srgb, var(--pie-missing, #ffeb3b) 68%, transparent));text-decoration:underline 2px solid var(--pie-tts-word-underline, color-mix(in srgb, var(--pie-text, #111827) 70%, transparent));text-underline-offset:2px;text-shadow:0 0 1px var(--pie-tts-word-shadow, color-mix(in srgb, var(--pie-text, #111827) 35%, transparent));color:inherit}::highlight(tts-sentence){background-color:var(--pie-tts-sentence-highlight, color-mix(in srgb, var(--pie-missing, #ffeb3b) 38%, transparent));color:inherit}::highlight(annotation-yellow){background-color:color-mix(in srgb,var(--pie-missing, #fde995) 50%,transparent);color:inherit}::highlight(annotation-pink){background-color:#ff9fae80;color:inherit}::highlight(annotation-blue){background-color:#a7e0f680;color:inherit}::highlight(annotation-green){background-color:#a6e1c580;color:inherit}::highlight(annotation-underline){background-color:transparent;text-decoration:underline 2px solid var(--pie-primary, #0066cc);text-underline-offset:2px;color:inherit}@media
|
|
1
|
+
::highlight(tts-word){background-color:var(--pie-tts-word-highlight, color-mix(in srgb, var(--pie-missing, #ffeb3b) 68%, transparent));text-decoration:underline 2px solid var(--pie-tts-word-underline, color-mix(in srgb, var(--pie-text, #111827) 70%, transparent));text-underline-offset:2px;text-shadow:0 0 1px var(--pie-tts-word-shadow, color-mix(in srgb, var(--pie-text, #111827) 35%, transparent));color:inherit}::highlight(tts-sentence){background-color:var(--pie-tts-sentence-highlight, color-mix(in srgb, var(--pie-missing, #ffeb3b) 38%, transparent));color:inherit}::highlight(annotation-yellow){background-color:color-mix(in srgb,var(--pie-missing, #fde995) 50%,transparent);color:inherit}::highlight(annotation-pink){background-color:#ff9fae80;color:inherit}::highlight(annotation-blue){background-color:#a7e0f680;color:inherit}::highlight(annotation-green){background-color:#a6e1c580;color:inherit}::highlight(annotation-underline){background-color:transparent;text-decoration:underline 2px solid var(--pie-primary, #0066cc);text-underline-offset:2px;color:inherit}@media(prefers-color-scheme:dark){::highlight(tts-word){background-color:var(--pie-tts-word-highlight, color-mix(in srgb, var(--pie-missing, #ffeb3b) 72%, transparent));text-decoration:underline 2px solid var(--pie-tts-word-underline, color-mix(in srgb, var(--pie-white, #fff) 70%, transparent));text-shadow:0 0 2px var(--pie-tts-word-shadow, color-mix(in srgb, var(--pie-white, #fff) 32%, transparent))}::highlight(tts-sentence){background-color:var(--pie-tts-sentence-highlight, color-mix(in srgb, var(--pie-missing, #ffeb3b) 42%, transparent))}::highlight(annotation-yellow){background-color:#8b750099}::highlight(annotation-pink){background-color:#8b334a99}::highlight(annotation-blue){background-color:#06a9}::highlight(annotation-green){background-color:#2d5c3f99}::highlight(annotation-underline){text-decoration-color:#4da6ff}}@media(prefers-contrast:high){::highlight(tts-word){background-color:var(--pie-tts-word-highlight, color-mix(in srgb, var(--pie-missing, #ffeb3b) 85%, transparent));text-decoration-color:var(--pie-tts-word-underline, color-mix(in srgb, var(--pie-text, #111827) 85%, transparent));text-decoration-thickness:3px;text-shadow:none}::highlight(tts-sentence){background-color:var(--pie-tts-sentence-highlight, color-mix(in srgb, var(--pie-missing, #ffeb3b) 55%, transparent))}::highlight(annotation-yellow){background-color:#ffff00b3}::highlight(annotation-pink){background-color:#ff69b4b3}::highlight(annotation-blue){background-color:#00bfffb3}::highlight(annotation-green){background-color:#00ff7fb3}::highlight(annotation-underline){text-decoration-thickness:3px;text-decoration-color:#000}}@media(prefers-color-scheme:dark)and (prefers-contrast:high){::highlight(tts-word){background-color:var(--pie-tts-word-highlight, color-mix(in srgb, var(--pie-missing, #ffeb3b) 85%, transparent));text-decoration-color:var(--pie-tts-word-underline, color-mix(in srgb, var(--pie-white, #fff) 88%, transparent))}::highlight(annotation-underline){text-decoration-color:#fff}}@media print{::highlight(tts-word),::highlight(tts-sentence){background-color:transparent;text-decoration:none;text-shadow:none}::highlight(annotation-yellow),::highlight(annotation-pink),::highlight(annotation-blue),::highlight(annotation-green){background-color:transparent;border-bottom:2px solid currentColor}::highlight(annotation-yellow){border-bottom-color:#ffeb3b}::highlight(annotation-pink){border-bottom-color:#ff9fae}::highlight(annotation-blue){border-bottom-color:#a7e0f6}::highlight(annotation-green){border-bottom-color:#a6e1c5}::highlight(annotation-underline){text-decoration-color:#000;border-bottom:none}}@media(prefers-reduced-motion:reduce){::highlight(tts-word){text-shadow:none}}.pie-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pie-tool-annotation-toolbar button:focus-visible{outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #0066cc));outline-offset:2px}@media(prefers-color-scheme:dark){.pie-tool-annotation-toolbar button:focus-visible{outline-color:#4da6ff}}@media(prefers-contrast:high){.pie-tool-annotation-toolbar button:focus-visible{outline-width:3px}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -3,7 +3,7 @@ if (typeof window < "u") {
|
|
|
3
3
|
var Mn, Cn;
|
|
4
4
|
((Mn = (Cn = window).__svelte ?? (Cn.__svelte = {})).v ?? (Mn.v = /* @__PURE__ */ new Set())).add("5");
|
|
5
5
|
}
|
|
6
|
-
var gt = {}, j =
|
|
6
|
+
var gt = {}, j = /* @__PURE__ */ Symbol();
|
|
7
7
|
var fi = Array.isArray, Oo = Array.prototype.indexOf, _t = Array.prototype.includes, br = Array.from, ur = Object.keys, fr = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, Lo = Object.getOwnPropertyDescriptors, Ro = Object.prototype, Mo = Array.prototype, di = Object.getPrototypeOf, xn = Object.isExtensible, Co = () => {
|
|
8
8
|
};
|
|
9
9
|
function xo(e) {
|
|
@@ -19,7 +19,8 @@ function hi() {
|
|
|
19
19
|
reject: t
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var Il = 1 << 24, ie = 1024, ve = 2048, lt = 4096, rn = 8192, Po = 16384, nn = 32768, Pn = 1 << 25, on = 65536, El = 1 << 17, $l = 1 << 18, St = 1 << 19, No = 1 << 20, xt = 1 << 25, zt = 65536, Nn = 1 << 21, Do = 1 << 22, dr = 1 << 23, Pt = /* @__PURE__ */ Symbol("$state"), pi = /* @__PURE__ */ Symbol("legacy props"), Vo = /* @__PURE__ */ Symbol(""), jo = /* @__PURE__ */ Symbol("proxy path");
|
|
23
|
+
var $e = new class extends Error {
|
|
23
24
|
constructor(...t) {
|
|
24
25
|
super(...t), b(this, "name", "StaleReactionError"), b(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
25
26
|
}
|
|
@@ -181,14 +182,14 @@ function yi(e) {
|
|
|
181
182
|
var t = A;
|
|
182
183
|
if (t === null)
|
|
183
184
|
return $.f |= dr, e;
|
|
184
|
-
if (
|
|
185
|
+
if ((t.f & 32768) === 0 && (t.f & 4) === 0)
|
|
185
186
|
throw e;
|
|
186
187
|
Be(e, t);
|
|
187
188
|
}
|
|
188
189
|
function Be(e, t) {
|
|
189
190
|
for (; t !== null; ) {
|
|
190
|
-
if (t.f & 128) {
|
|
191
|
-
if (
|
|
191
|
+
if ((t.f & 128) !== 0) {
|
|
192
|
+
if ((t.f & 32768) === 0) throw e;
|
|
192
193
|
try {
|
|
193
194
|
t.b.error(e);
|
|
194
195
|
return;
|
|
@@ -205,15 +206,15 @@ function N(e, t) {
|
|
|
205
206
|
e.f = e.f & os | t;
|
|
206
207
|
}
|
|
207
208
|
function sn(e) {
|
|
208
|
-
e.f & 512 || e.deps === null ? N(e, ie) : N(e, lt);
|
|
209
|
+
(e.f & 512) !== 0 || e.deps === null ? N(e, ie) : N(e, lt);
|
|
209
210
|
}
|
|
210
211
|
function Ti(e) {
|
|
211
212
|
if (e !== null)
|
|
212
213
|
for (const t of e)
|
|
213
|
-
|
|
214
|
+
(t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= zt, Ti(t.deps));
|
|
214
215
|
}
|
|
215
216
|
function Si(e, t, r) {
|
|
216
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e), Ti(e.deps), N(e, ie);
|
|
217
|
+
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e), Ti(e.deps), N(e, ie);
|
|
217
218
|
}
|
|
218
219
|
var ss = !1, Yt = !1;
|
|
219
220
|
function as(e) {
|
|
@@ -266,7 +267,7 @@ var ls = 1, vr = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap
|
|
|
266
267
|
l(ir, this).add(t);
|
|
267
268
|
}
|
|
268
269
|
capture(t, r, n = !1) {
|
|
269
|
-
t.v !== j && !this.previous.has(t) && this.previous.set(t, t.v), t.f & 8388608
|
|
270
|
+
t.v !== j && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [r, n]), F?.set(t, r)), this.is_fork || (t.v = r);
|
|
270
271
|
}
|
|
271
272
|
activate() {
|
|
272
273
|
I = this;
|
|
@@ -353,17 +354,17 @@ var ls = 1, vr = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap
|
|
|
353
354
|
}
|
|
354
355
|
}
|
|
355
356
|
schedule(t) {
|
|
356
|
-
if (Hr = t, t.b?.is_pending && t.f & 16777228 &&
|
|
357
|
+
if (Hr = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
|
|
357
358
|
t.b.defer_effect(t);
|
|
358
359
|
return;
|
|
359
360
|
}
|
|
360
361
|
for (var r = t; r.parent !== null; ) {
|
|
361
362
|
r = r.parent;
|
|
362
363
|
var n = r.f;
|
|
363
|
-
if (bt !== null && r === A && (Le || ($ === null ||
|
|
364
|
+
if (bt !== null && r === A && (Le || ($ === null || ($.f & 2) === 0) && !ss))
|
|
364
365
|
return;
|
|
365
|
-
if (n & 96) {
|
|
366
|
-
if (
|
|
366
|
+
if ((n & 96) !== 0) {
|
|
367
|
+
if ((n & 1024) === 0) return;
|
|
367
368
|
r.f ^= ie;
|
|
368
369
|
}
|
|
369
370
|
}
|
|
@@ -425,8 +426,8 @@ function $i(e, t, r) {
|
|
|
425
426
|
e.f ^= ie;
|
|
426
427
|
for (var n = e.first; n !== null; ) {
|
|
427
428
|
var i = n.f, o = (i & 96) !== 0;
|
|
428
|
-
if (!(o && i & 1024 || i & 8192 || l(He, this).has(n)) && n.fn !== null) {
|
|
429
|
-
o ? n.f ^= ie : i & 4 ? t.push(n) : Le && i & 16777224 ? r.push(n) : Ht(n) && (i & 16 && l(Ze, this).add(n), Tt(n));
|
|
429
|
+
if (!(o && (i & 1024) !== 0 || (i & 8192) !== 0 || l(He, this).has(n)) && n.fn !== null) {
|
|
430
|
+
o ? n.f ^= ie : (i & 4) !== 0 ? t.push(n) : Le && (i & 16777224) !== 0 ? r.push(n) : Ht(n) && ((i & 16) !== 0 && l(Ze, this).add(n), Tt(n));
|
|
430
431
|
var s = n.first;
|
|
431
432
|
if (s !== null) {
|
|
432
433
|
n = s;
|
|
@@ -462,14 +463,14 @@ function us() {
|
|
|
462
463
|
e && u.discard();
|
|
463
464
|
else if (t.length > 0) {
|
|
464
465
|
if (e) for (const f of l(ir, this)) u.unskip_effect(f, (p) => {
|
|
465
|
-
p.f & 4194320 ? u.schedule(p) : L(K, u, Fr).call(u, [p]);
|
|
466
|
+
(p.f & 4194320) !== 0 ? u.schedule(p) : L(K, u, Fr).call(u, [p]);
|
|
466
467
|
});
|
|
467
468
|
u.activate();
|
|
468
469
|
var i = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
469
470
|
for (var s of t) Oi(s, n, i, o);
|
|
470
471
|
o = /* @__PURE__ */ new Map();
|
|
471
472
|
var a = [...u.current.keys()].filter((f) => this.current.has(f) ? this.current.get(f)[0] !== f : !0);
|
|
472
|
-
for (const f of l(Br, this))
|
|
473
|
+
for (const f of l(Br, this)) (f.f & 155648) === 0 && cn(f, a, o) && ((f.f & 4194320) !== 0 ? (N(f, ve), u.schedule(f)) : l(wt, u).add(f));
|
|
473
474
|
if (l(fe, u).length > 0) {
|
|
474
475
|
u.apply();
|
|
475
476
|
for (var c of l(fe, u)) L(K, u, $i).call(u, c, [], []);
|
|
@@ -511,17 +512,17 @@ function jn(e) {
|
|
|
511
512
|
if (t !== 0) {
|
|
512
513
|
for (var r = 0; r < t; ) {
|
|
513
514
|
var n = e[r++];
|
|
514
|
-
if (
|
|
515
|
+
if ((n.f & 24576) === 0 && Ht(n) && (me = /* @__PURE__ */ new Set(), Tt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Yi(n), me?.size > 0)) {
|
|
515
516
|
rt.clear();
|
|
516
517
|
for (const i of me) {
|
|
517
|
-
if (i.f & 24576) continue;
|
|
518
|
+
if ((i.f & 24576) !== 0) continue;
|
|
518
519
|
const o = [i];
|
|
519
520
|
let s = i.parent;
|
|
520
521
|
for (; s !== null; )
|
|
521
522
|
me.has(s) && (me.delete(s), o.push(s)), s = s.parent;
|
|
522
523
|
for (let a = o.length - 1; a >= 0; a--) {
|
|
523
524
|
const c = o[a];
|
|
524
|
-
c.f & 24576
|
|
525
|
+
(c.f & 24576) === 0 && Tt(c);
|
|
525
526
|
}
|
|
526
527
|
}
|
|
527
528
|
me.clear();
|
|
@@ -534,7 +535,7 @@ function Oi(e, t, r, n) {
|
|
|
534
535
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
535
536
|
for (const i of e.reactions) {
|
|
536
537
|
const o = i.f;
|
|
537
|
-
o & 2 ? Oi(i, t, r, n) : o & 4194320 &&
|
|
538
|
+
(o & 2) !== 0 ? Oi(i, t, r, n) : (o & 4194320) !== 0 && (o & 2048) === 0 && cn(i, t, n) && (N(i, ve), un(i));
|
|
538
539
|
}
|
|
539
540
|
}
|
|
540
541
|
function cn(e, t, r) {
|
|
@@ -542,7 +543,7 @@ function cn(e, t, r) {
|
|
|
542
543
|
if (n !== void 0) return n;
|
|
543
544
|
if (e.deps !== null) for (const i of e.deps) {
|
|
544
545
|
if (_t.call(t, i)) return !0;
|
|
545
|
-
if (i.f & 2 && cn(i, t, r))
|
|
546
|
+
if ((i.f & 2) !== 0 && cn(i, t, r))
|
|
546
547
|
return r.set(i, !0), !0;
|
|
547
548
|
}
|
|
548
549
|
return r.set(e, !1), !1;
|
|
@@ -551,8 +552,8 @@ function un(e) {
|
|
|
551
552
|
I.schedule(e);
|
|
552
553
|
}
|
|
553
554
|
function Li(e, t) {
|
|
554
|
-
if (!(e.f & 32 && e.f & 1024)) {
|
|
555
|
-
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), N(e, ie);
|
|
555
|
+
if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
|
|
556
|
+
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), N(e, ie);
|
|
556
557
|
for (var r = e.first; r !== null; )
|
|
557
558
|
Li(r, t), r = r.next;
|
|
558
559
|
}
|
|
@@ -738,7 +739,7 @@ function bs(e, t, r, n) {
|
|
|
738
739
|
try {
|
|
739
740
|
n(d);
|
|
740
741
|
} catch (h) {
|
|
741
|
-
s.f & 16384
|
|
742
|
+
(s.f & 16384) === 0 && Be(h, s);
|
|
742
743
|
}
|
|
743
744
|
gr();
|
|
744
745
|
}
|
|
@@ -758,7 +759,7 @@ function ws() {
|
|
|
758
759
|
var e = A, t = $, r = W, n = I;
|
|
759
760
|
if (0) var i;
|
|
760
761
|
return function(s = !0) {
|
|
761
|
-
Te(e), se(t), mt(r), s &&
|
|
762
|
+
Te(e), se(t), mt(r), s && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
|
|
762
763
|
};
|
|
763
764
|
}
|
|
764
765
|
function gr(e = !0) {
|
|
@@ -803,7 +804,7 @@ function ys(e, t, r) {
|
|
|
803
804
|
}
|
|
804
805
|
var f = I;
|
|
805
806
|
if (s) {
|
|
806
|
-
if (c.f & 32768) var p = xi();
|
|
807
|
+
if ((c.f & 32768) !== 0) var p = xi();
|
|
807
808
|
if (n.b.is_rendered())
|
|
808
809
|
a.get(f)?.reject($e), a.delete(f);
|
|
809
810
|
else {
|
|
@@ -813,11 +814,11 @@ function ys(e, t, r) {
|
|
|
813
814
|
a.set(f, u);
|
|
814
815
|
}
|
|
815
816
|
const d = (h, g = void 0) => {
|
|
816
|
-
if (p && p(g === $e), !(g === $e || c.f & 16384)) {
|
|
817
|
+
if (p && p(g === $e), !(g === $e || (c.f & 16384) !== 0)) {
|
|
817
818
|
if (f.activate(), g)
|
|
818
819
|
o.f |= dr, yt(o, g);
|
|
819
820
|
else {
|
|
820
|
-
o.f & 8388608 && (o.f ^= dr), yt(o, h);
|
|
821
|
+
(o.f & 8388608) !== 0 && (o.f ^= dr), yt(o, h);
|
|
821
822
|
for (const [y, v] of a) {
|
|
822
823
|
if (a.delete(y), y === f) break;
|
|
823
824
|
v.reject($e);
|
|
@@ -858,13 +859,10 @@ function Ts(e) {
|
|
|
858
859
|
}
|
|
859
860
|
function hn(e) {
|
|
860
861
|
var t, r = A, n = e.parent;
|
|
861
|
-
if (!Re && n !== null && n.f & 24576)
|
|
862
|
+
if (!Re && n !== null && (n.f & 24576) !== 0)
|
|
862
863
|
return Zo(), e.v;
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
} finally {
|
|
866
|
-
}
|
|
867
|
-
else try {
|
|
864
|
+
Te(n);
|
|
865
|
+
try {
|
|
868
866
|
e.f &= ~zt, Ts(e), t = ro(e);
|
|
869
867
|
} finally {
|
|
870
868
|
Te(r);
|
|
@@ -915,7 +913,7 @@ function Vi(e, t = !1, r = !0) {
|
|
|
915
913
|
return n;
|
|
916
914
|
}
|
|
917
915
|
function O(e, t, r = !1) {
|
|
918
|
-
$ !== null && (!de || $.f & 131072) && Wt() && $.f & 4325394 && (ne === null || !_t.call(ne, e)) && Jo();
|
|
916
|
+
$ !== null && (!de || ($.f & 131072) !== 0) && Wt() && ($.f & 4325394) !== 0 && (ne === null || !_t.call(ne, e)) && Jo();
|
|
919
917
|
let n = r ? Xe(t) : t;
|
|
920
918
|
return yt(e, n, pr);
|
|
921
919
|
}
|
|
@@ -923,18 +921,18 @@ function yt(e, t, r = null) {
|
|
|
923
921
|
if (!e.equals(t)) {
|
|
924
922
|
rt.set(e, Re ? t : e.v);
|
|
925
923
|
var n = ct.ensure();
|
|
926
|
-
if (n.capture(e, t), e.f & 2) {
|
|
924
|
+
if (n.capture(e, t), (e.f & 2) !== 0) {
|
|
927
925
|
const i = e;
|
|
928
|
-
e.f & 2048 && hn(i), F === null && sn(i);
|
|
926
|
+
(e.f & 2048) !== 0 && hn(i), F === null && sn(i);
|
|
929
927
|
}
|
|
930
|
-
e.wv = eo(), ji(e, ve, r), Wt() && A !== null && A.f & 1024 &&
|
|
928
|
+
e.wv = eo(), ji(e, ve, r), Wt() && A !== null && (A.f & 1024) !== 0 && (A.f & 96) === 0 && (te === null ? Ds([e]) : te.push(e)), !n.is_fork && Xr.size > 0 && !Di && ks();
|
|
931
929
|
}
|
|
932
930
|
return t;
|
|
933
931
|
}
|
|
934
932
|
function ks() {
|
|
935
933
|
Di = !1;
|
|
936
934
|
for (const e of Xr)
|
|
937
|
-
e.f & 1024 && N(e, lt), Ht(e) && Tt(e);
|
|
935
|
+
(e.f & 1024) !== 0 && N(e, lt), Ht(e) && Tt(e);
|
|
938
936
|
Xr.clear();
|
|
939
937
|
}
|
|
940
938
|
function Dt(e) {
|
|
@@ -947,12 +945,12 @@ function ji(e, t, r) {
|
|
|
947
945
|
var a = n[s], c = a.f;
|
|
948
946
|
if (!(!i && a === A)) {
|
|
949
947
|
var u = (c & ve) === 0;
|
|
950
|
-
if (u && N(a, t), c & 2) {
|
|
948
|
+
if (u && N(a, t), (c & 2) !== 0) {
|
|
951
949
|
var f = a;
|
|
952
|
-
F?.delete(f), c & 65536
|
|
950
|
+
F?.delete(f), (c & 65536) === 0 && (c & 512 && (a.f |= zt), ji(f, lt, r));
|
|
953
951
|
} else if (u) {
|
|
954
952
|
var p = a;
|
|
955
|
-
c & 16 && me !== null && me.add(p), r !== null ? r.push(p) : un(p);
|
|
953
|
+
(c & 16) !== 0 && me !== null && me.add(p), r !== null ? r.push(p) : un(p);
|
|
956
954
|
}
|
|
957
955
|
}
|
|
958
956
|
}
|
|
@@ -1166,7 +1164,7 @@ function Os(e, t) {
|
|
|
1166
1164
|
}
|
|
1167
1165
|
function ke(e, t) {
|
|
1168
1166
|
var r = A;
|
|
1169
|
-
r !== null && r.f & 8192 && (e |= rn);
|
|
1167
|
+
r !== null && (r.f & 8192) !== 0 && (e |= rn);
|
|
1170
1168
|
var n = {
|
|
1171
1169
|
ctx: W,
|
|
1172
1170
|
deps: null,
|
|
@@ -1185,16 +1183,16 @@ function ke(e, t) {
|
|
|
1185
1183
|
};
|
|
1186
1184
|
I?.register_created_effect(n);
|
|
1187
1185
|
var i = n;
|
|
1188
|
-
if (e & 4) bt !== null ? bt.push(n) : ct.ensure().schedule(n);
|
|
1186
|
+
if ((e & 4) !== 0) bt !== null ? bt.push(n) : ct.ensure().schedule(n);
|
|
1189
1187
|
else if (t !== null) {
|
|
1190
1188
|
try {
|
|
1191
1189
|
Tt(n);
|
|
1192
1190
|
} catch (s) {
|
|
1193
1191
|
throw U(n), s;
|
|
1194
1192
|
}
|
|
1195
|
-
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last &&
|
|
1193
|
+
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 |= on));
|
|
1196
1194
|
}
|
|
1197
|
-
if (i !== null && (i.parent = r, r !== null && Os(i, r), $ !== null && $.f & 2 &&
|
|
1195
|
+
if (i !== null && (i.parent = r, r !== null && Os(i, r), $ !== null && ($.f & 2) !== 0 && (e & 64) === 0)) {
|
|
1198
1196
|
var o = $;
|
|
1199
1197
|
(o.effects ?? (o.effects = [])).push(i);
|
|
1200
1198
|
}
|
|
@@ -1210,7 +1208,7 @@ function Ls(e) {
|
|
|
1210
1208
|
function Bn(e) {
|
|
1211
1209
|
$s("$effect");
|
|
1212
1210
|
var t = A.f;
|
|
1213
|
-
if (!$ && t & 32 &&
|
|
1211
|
+
if (!$ && (t & 32) !== 0 && (t & 32768) === 0) {
|
|
1214
1212
|
var r = W;
|
|
1215
1213
|
(r.e ?? (r.e = [])).push(e);
|
|
1216
1214
|
} else return Ui(e);
|
|
@@ -1275,18 +1273,18 @@ function bn(e, t = !1) {
|
|
|
1275
1273
|
i.abort($e);
|
|
1276
1274
|
});
|
|
1277
1275
|
var n = r.next;
|
|
1278
|
-
r.f & 64 ? r.parent = null : U(r, t), r = n;
|
|
1276
|
+
(r.f & 64) !== 0 ? r.parent = null : U(r, t), r = n;
|
|
1279
1277
|
}
|
|
1280
1278
|
}
|
|
1281
1279
|
function xs(e) {
|
|
1282
1280
|
for (var t = e.first; t !== null; ) {
|
|
1283
1281
|
var r = t.next;
|
|
1284
|
-
t.f & 32
|
|
1282
|
+
(t.f & 32) === 0 && U(t), t = r;
|
|
1285
1283
|
}
|
|
1286
1284
|
}
|
|
1287
1285
|
function U(e, t = !0) {
|
|
1288
1286
|
var r = !1;
|
|
1289
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Ps(e.nodes.start, e.nodes.end), r = !0), N(e, Pn), bn(e, t && !r), jt(e, 0);
|
|
1287
|
+
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (Ps(e.nodes.start, e.nodes.end), r = !0), N(e, Pn), bn(e, t && !r), jt(e, 0);
|
|
1290
1288
|
var n = e.nodes && e.nodes.t;
|
|
1291
1289
|
if (n !== null) for (const o of n) o.stop();
|
|
1292
1290
|
Ki(e), e.f ^= Pn, e.f |= Po;
|
|
@@ -1315,14 +1313,14 @@ function ut(e, t, r = !0) {
|
|
|
1315
1313
|
} else i();
|
|
1316
1314
|
}
|
|
1317
1315
|
function Xi(e, t, r) {
|
|
1318
|
-
if (
|
|
1316
|
+
if ((e.f & 8192) === 0) {
|
|
1319
1317
|
e.f ^= rn;
|
|
1320
1318
|
var n = e.nodes && e.nodes.t;
|
|
1321
1319
|
if (n !== null)
|
|
1322
1320
|
for (const a of n) (a.is_global || r) && t.push(a);
|
|
1323
1321
|
for (var i = e.first; i !== null; ) {
|
|
1324
1322
|
var o = i.next;
|
|
1325
|
-
if (
|
|
1323
|
+
if ((i.f & 64) === 0) {
|
|
1326
1324
|
var s = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1327
1325
|
Xi(i, t, s ? r : !1);
|
|
1328
1326
|
}
|
|
@@ -1334,8 +1332,8 @@ function wn(e) {
|
|
|
1334
1332
|
Ji(e, !0);
|
|
1335
1333
|
}
|
|
1336
1334
|
function Ji(e, t) {
|
|
1337
|
-
if (e.f & 8192) {
|
|
1338
|
-
e.f ^= rn, e.f & 1024
|
|
1335
|
+
if ((e.f & 8192) !== 0) {
|
|
1336
|
+
e.f ^= rn, (e.f & 1024) === 0 && (N(e, ve), ct.ensure().schedule(e));
|
|
1339
1337
|
for (var r = e.first; r !== null; ) {
|
|
1340
1338
|
var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1341
1339
|
Ji(r, i ? t : !1), r = n;
|
|
@@ -1366,7 +1364,7 @@ function Te(e) {
|
|
|
1366
1364
|
}
|
|
1367
1365
|
var ne = null;
|
|
1368
1366
|
function Qi(e) {
|
|
1369
|
-
$ !== null && (!Le || $.f & 2) && (ne === null ? ne = [e] : ne.push(e));
|
|
1367
|
+
$ !== null && (!Le || ($.f & 2) !== 0) && (ne === null ? ne = [e] : ne.push(e));
|
|
1370
1368
|
}
|
|
1371
1369
|
var Y = null, Q = 0, te = null;
|
|
1372
1370
|
function Ds(e) {
|
|
@@ -1381,13 +1379,13 @@ function eo() {
|
|
|
1381
1379
|
}
|
|
1382
1380
|
function Ht(e) {
|
|
1383
1381
|
var t = e.f;
|
|
1384
|
-
if (t & 2048) return !0;
|
|
1385
|
-
if (t & 2 && (e.f &= ~zt), t & 4096) {
|
|
1382
|
+
if ((t & 2048) !== 0) return !0;
|
|
1383
|
+
if (t & 2 && (e.f &= ~zt), (t & 4096) !== 0) {
|
|
1386
1384
|
for (var r = e.deps, n = r.length, i = 0; i < n; i++) {
|
|
1387
1385
|
var o = r[i];
|
|
1388
1386
|
if (Ht(o) && Pi(o), o.wv > e.wv) return !0;
|
|
1389
1387
|
}
|
|
1390
|
-
t & 512 && F === null && N(e, ie);
|
|
1388
|
+
(t & 512) !== 0 && F === null && N(e, ie);
|
|
1391
1389
|
}
|
|
1392
1390
|
return !1;
|
|
1393
1391
|
}
|
|
@@ -1396,12 +1394,12 @@ function to(e, t, r = !0) {
|
|
|
1396
1394
|
if (n !== null && !(!Le && ne !== null && _t.call(ne, e)))
|
|
1397
1395
|
for (var i = 0; i < n.length; i++) {
|
|
1398
1396
|
var o = n[i];
|
|
1399
|
-
o.f & 2 ? to(o, t, !1) : t === o && (r ? N(o, ve) : o.f & 1024 && N(o, lt), un(o));
|
|
1397
|
+
(o.f & 2) !== 0 ? to(o, t, !1) : t === o && (r ? N(o, ve) : (o.f & 1024) !== 0 && N(o, lt), un(o));
|
|
1400
1398
|
}
|
|
1401
1399
|
}
|
|
1402
1400
|
function ro(e) {
|
|
1403
1401
|
var t = Y, r = Q, n = te, i = $, o = ne, s = W, a = de, c = nt, u = e.f;
|
|
1404
|
-
Y = null, Q = 0, te = null, $ = u & 96 ?
|
|
1402
|
+
Y = null, Q = 0, te = null, $ = (u & 96) === 0 ? e : null, ne = null, mt(e.ctx), de = !1, nt = ++Je, e.ac !== null && (Fi(() => {
|
|
1405
1403
|
e.ac.abort($e);
|
|
1406
1404
|
}), e.ac = null);
|
|
1407
1405
|
try {
|
|
@@ -1414,18 +1412,18 @@ function ro(e) {
|
|
|
1414
1412
|
if (h || jt(e, Q), d !== null && Q > 0)
|
|
1415
1413
|
for (d.length = Q + Y.length, g = 0; g < Y.length; g++) d[Q + g] = Y[g];
|
|
1416
1414
|
else e.deps = d = Y;
|
|
1417
|
-
if (gn() && e.f & 512) for (g = Q; g < d.length; g++) {
|
|
1415
|
+
if (gn() && (e.f & 512) !== 0) for (g = Q; g < d.length; g++) {
|
|
1418
1416
|
var y;
|
|
1419
1417
|
((y = d[g]).reactions ?? (y.reactions = [])).push(e);
|
|
1420
1418
|
}
|
|
1421
1419
|
} else !h && d !== null && Q < d.length && (jt(e, Q), d.length = Q);
|
|
1422
|
-
if (Wt() && te !== null && !de && d !== null &&
|
|
1420
|
+
if (Wt() && te !== null && !de && d !== null && (e.f & 6146) === 0) for (g = 0; g < te.length; g++) to(te[g], e);
|
|
1423
1421
|
if (i !== null && i !== e) {
|
|
1424
1422
|
if (Je++, i.deps !== null) for (let v = 0; v < r; v += 1) i.deps[v].rv = Je;
|
|
1425
1423
|
if (t !== null) for (const v of t) v.rv = Je;
|
|
1426
1424
|
te !== null && (n === null ? n = te : n.push(...te));
|
|
1427
1425
|
}
|
|
1428
|
-
return e.f & 8388608 && (e.f ^= dr), p;
|
|
1426
|
+
return (e.f & 8388608) !== 0 && (e.f ^= dr), p;
|
|
1429
1427
|
} catch (v) {
|
|
1430
1428
|
return yi(v);
|
|
1431
1429
|
} finally {
|
|
@@ -1441,9 +1439,9 @@ function Vs(e, t) {
|
|
|
1441
1439
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
1442
1440
|
}
|
|
1443
1441
|
}
|
|
1444
|
-
if (r === null && t.f & 2 && (Y === null || !_t.call(Y, t))) {
|
|
1442
|
+
if (r === null && (t.f & 2) !== 0 && (Y === null || !_t.call(Y, t))) {
|
|
1445
1443
|
var o = t;
|
|
1446
|
-
o.f & 512 && (o.f ^= 512, o.f &= ~zt), o.v !== j && sn(o), Ss(o), jt(o, 0);
|
|
1444
|
+
(o.f & 512) !== 0 && (o.f ^= 512, o.f &= ~zt), o.v !== j && sn(o), Ss(o), jt(o, 0);
|
|
1447
1445
|
}
|
|
1448
1446
|
}
|
|
1449
1447
|
function jt(e, t) {
|
|
@@ -1453,13 +1451,13 @@ function jt(e, t) {
|
|
|
1453
1451
|
}
|
|
1454
1452
|
function Tt(e) {
|
|
1455
1453
|
var t = e.f;
|
|
1456
|
-
if (
|
|
1454
|
+
if ((t & 16384) === 0) {
|
|
1457
1455
|
N(e, ie);
|
|
1458
1456
|
var r = A, n = sr;
|
|
1459
1457
|
if (A = e, sr = !0, 0)
|
|
1460
1458
|
var i, o;
|
|
1461
1459
|
try {
|
|
1462
|
-
t & 16777232 ? xs(e) : bn(e), Ki(e);
|
|
1460
|
+
(t & 16777232) !== 0 ? xs(e) : bn(e), Ki(e);
|
|
1463
1461
|
var s = ro(e);
|
|
1464
1462
|
if (e.teardown = typeof s == "function" ? s : null, e.wv = Zi, 0)
|
|
1465
1463
|
for (var a of e.deps) ;
|
|
@@ -1470,9 +1468,9 @@ function Tt(e) {
|
|
|
1470
1468
|
}
|
|
1471
1469
|
function _(e) {
|
|
1472
1470
|
var t = (e.f & 2) !== 0;
|
|
1473
|
-
if (Ns?.add(e), $ !== null && !de && !(A !== null && A.f & 16384) && (ne === null || !_t.call(ne, e))) {
|
|
1471
|
+
if (Ns?.add(e), $ !== null && !de && !(A !== null && (A.f & 16384) !== 0) && (ne === null || !_t.call(ne, e))) {
|
|
1474
1472
|
var r = $.deps;
|
|
1475
|
-
if ($.f & 2097152)
|
|
1473
|
+
if (($.f & 2097152) !== 0)
|
|
1476
1474
|
e.rv < Je && (e.rv = Je, Y === null && r !== null && r[Q] === e ? Q++ : Y === null ? Y = [e] : Y.push(e));
|
|
1477
1475
|
else {
|
|
1478
1476
|
var n;
|
|
@@ -1482,7 +1480,7 @@ function _(e) {
|
|
|
1482
1480
|
}
|
|
1483
1481
|
}
|
|
1484
1482
|
if (0) {
|
|
1485
|
-
if (!de && reactivity_loss_tracker && !reactivity_loss_tracker.warned &&
|
|
1483
|
+
if (!de && reactivity_loss_tracker && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
|
|
1486
1484
|
var o;
|
|
1487
1485
|
if (tracing_mode_flag && !de && tracing_expressions !== null && $ !== null && tracing_expressions.reaction === $ && !e.trace) {
|
|
1488
1486
|
if (o)
|
|
@@ -1494,25 +1492,25 @@ function _(e) {
|
|
|
1494
1492
|
var c = e;
|
|
1495
1493
|
if (Re) {
|
|
1496
1494
|
var u = c.v;
|
|
1497
|
-
return (
|
|
1495
|
+
return ((c.f & 1024) === 0 && c.reactions !== null || io(c)) && (u = hn(c)), rt.set(c, u), u;
|
|
1498
1496
|
}
|
|
1499
1497
|
var f = (c.f & 512) === 0 && !de && $ !== null && (sr || ($.f & 512) !== 0), p = (c.f & nn) === 0;
|
|
1500
1498
|
Ht(c) && (f && (c.f |= 512), Pi(c)), f && !p && (Ni(c), no(c));
|
|
1501
1499
|
}
|
|
1502
1500
|
if (F?.has(e)) return F.get(e);
|
|
1503
|
-
if (e.f & 8388608) throw e.v;
|
|
1501
|
+
if ((e.f & 8388608) !== 0) throw e.v;
|
|
1504
1502
|
return e.v;
|
|
1505
1503
|
}
|
|
1506
1504
|
function no(e) {
|
|
1507
1505
|
if (e.f |= 512, e.deps !== null)
|
|
1508
1506
|
for (const t of e.deps)
|
|
1509
|
-
(t.reactions ?? (t.reactions = [])).push(e), t.f & 2 &&
|
|
1507
|
+
(t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (Ni(t), no(t));
|
|
1510
1508
|
}
|
|
1511
1509
|
function io(e) {
|
|
1512
1510
|
if (e.v === j) return !0;
|
|
1513
1511
|
if (e.deps === null) return !1;
|
|
1514
1512
|
for (const t of e.deps)
|
|
1515
|
-
if (rt.has(t) || t.f & 2 && io(t)) return !0;
|
|
1513
|
+
if (rt.has(t) || (t.f & 2) !== 0 && io(t)) return !0;
|
|
1516
1514
|
return !1;
|
|
1517
1515
|
}
|
|
1518
1516
|
function Tn(e) {
|
|
@@ -1523,7 +1521,7 @@ function Tn(e) {
|
|
|
1523
1521
|
de = t;
|
|
1524
1522
|
}
|
|
1525
1523
|
}
|
|
1526
|
-
var pt = Symbol("events"), oo = /* @__PURE__ */ new Set(), Qr = /* @__PURE__ */ new Set();
|
|
1524
|
+
var pt = /* @__PURE__ */ Symbol("events"), oo = /* @__PURE__ */ new Set(), Qr = /* @__PURE__ */ new Set();
|
|
1527
1525
|
function $t(e, t, r) {
|
|
1528
1526
|
(t[pt] ?? (t[pt] = {}))[e] = r;
|
|
1529
1527
|
}
|
|
@@ -1613,7 +1611,7 @@ function ft(e, t) {
|
|
|
1613
1611
|
function je(e, t) {
|
|
1614
1612
|
if (C) {
|
|
1615
1613
|
var r = A;
|
|
1616
|
-
(
|
|
1614
|
+
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = M), yr();
|
|
1617
1615
|
return;
|
|
1618
1616
|
}
|
|
1619
1617
|
e !== null && e.before(t);
|
|
@@ -1647,7 +1645,7 @@ var Bs = [
|
|
|
1647
1645
|
"defer",
|
|
1648
1646
|
"disablepictureinpicture",
|
|
1649
1647
|
"disableremoteplayback"
|
|
1650
|
-
],
|
|
1648
|
+
], Ll = [
|
|
1651
1649
|
...Bs,
|
|
1652
1650
|
"formNoValidate",
|
|
1653
1651
|
"isMap",
|
|
@@ -1672,7 +1670,7 @@ var Us = [
|
|
|
1672
1670
|
"$state.raw",
|
|
1673
1671
|
"$derived",
|
|
1674
1672
|
"$derived.by"
|
|
1675
|
-
],
|
|
1673
|
+
], Rl = [
|
|
1676
1674
|
...Us,
|
|
1677
1675
|
"$state.eager",
|
|
1678
1676
|
"$state.snapshot",
|
|
@@ -1877,7 +1875,7 @@ function en(e, t, r = !0) {
|
|
|
1877
1875
|
var rr;
|
|
1878
1876
|
function Qs(e, t, r, n, i, o = null) {
|
|
1879
1877
|
var s = e, a = /* @__PURE__ */ new Map();
|
|
1880
|
-
if (t & 4) {
|
|
1878
|
+
if ((t & 4) !== 0) {
|
|
1881
1879
|
var c = e;
|
|
1882
1880
|
s = C ? X(/* @__PURE__ */ at(c)) : c.appendChild(pe());
|
|
1883
1881
|
}
|
|
@@ -1887,7 +1885,7 @@ function Qs(e, t, r, n, i, o = null) {
|
|
|
1887
1885
|
return fi(w) ? w : w == null ? [] : br(w);
|
|
1888
1886
|
}), p, d = /* @__PURE__ */ new Map(), h = !0;
|
|
1889
1887
|
function g(w) {
|
|
1890
|
-
v.effect.f & 16384
|
|
1888
|
+
(v.effect.f & 16384) === 0 && (v.pending.delete(w), v.fallback = u, Zs(v, p, s, t, n), u !== null && (p.length === 0 ? (u.f & 33554432) === 0 ? wn(u) : (u.f ^= xt, Ct(u, null, s)) : ut(u, () => {
|
|
1891
1889
|
u = null;
|
|
1892
1890
|
})));
|
|
1893
1891
|
}
|
|
@@ -1924,17 +1922,17 @@ function Qs(e, t, r, n, i, o = null) {
|
|
|
1924
1922
|
h = !1, C && (s = M);
|
|
1925
1923
|
}
|
|
1926
1924
|
function Rt(e) {
|
|
1927
|
-
for (; e !== null &&
|
|
1925
|
+
for (; e !== null && (e.f & 32) === 0; ) e = e.next;
|
|
1928
1926
|
return e;
|
|
1929
1927
|
}
|
|
1930
1928
|
function Zs(e, t, r, n, i) {
|
|
1931
1929
|
var o = (n & 8) !== 0, s = t.length, a = e.items, c = Rt(e.effect.first), u, f = null, p, d = [], h = [], g, y, v, w;
|
|
1932
1930
|
if (o) for (w = 0; w < s; w += 1)
|
|
1933
|
-
g = t[w], y = i(g, w), v = a.get(y).e, v.f & 33554432
|
|
1931
|
+
g = t[w], y = i(g, w), v = a.get(y).e, (v.f & 33554432) === 0 && (v.nodes?.a?.measure(), (p ?? (p = /* @__PURE__ */ new Set())).add(v));
|
|
1934
1932
|
for (w = 0; w < s; w += 1) {
|
|
1935
1933
|
if (g = t[w], y = i(g, w), v = a.get(y).e, e.outrogroups !== null) for (const V of e.outrogroups)
|
|
1936
1934
|
V.pending.delete(v), V.done.delete(v);
|
|
1937
|
-
if (v.f & 8192 && (wn(v), o && (v.nodes?.a?.unfix(), (p ?? (p = /* @__PURE__ */ new Set())).delete(v))), v.f & 33554432)
|
|
1935
|
+
if ((v.f & 8192) !== 0 && (wn(v), o && (v.nodes?.a?.unfix(), (p ?? (p = /* @__PURE__ */ new Set())).delete(v))), (v.f & 33554432) !== 0)
|
|
1938
1936
|
if (v.f ^= xt, v === c) Ct(v, null, r);
|
|
1939
1937
|
else {
|
|
1940
1938
|
var P = f ? f.next : c;
|
|
@@ -1958,7 +1956,7 @@ function Zs(e, t, r, n, i) {
|
|
|
1958
1956
|
(u ?? (u = /* @__PURE__ */ new Set())).add(c), h.push(c), c = Rt(c.next);
|
|
1959
1957
|
if (c === null) continue;
|
|
1960
1958
|
}
|
|
1961
|
-
v.f & 33554432
|
|
1959
|
+
(v.f & 33554432) === 0 && d.push(v), f = v, c = Rt(v.next);
|
|
1962
1960
|
}
|
|
1963
1961
|
if (e.outrogroups !== null) {
|
|
1964
1962
|
for (const V of e.outrogroups) V.pending.size === 0 && (en(e, br(V.done)), e.outrogroups?.delete(V));
|
|
@@ -1967,12 +1965,12 @@ function Zs(e, t, r, n, i) {
|
|
|
1967
1965
|
if (c !== null || u !== void 0) {
|
|
1968
1966
|
var G = [];
|
|
1969
1967
|
if (u !== void 0)
|
|
1970
|
-
for (v of u) v.f & 8192
|
|
1968
|
+
for (v of u) (v.f & 8192) === 0 && G.push(v);
|
|
1971
1969
|
for (; c !== null; )
|
|
1972
|
-
|
|
1970
|
+
(c.f & 8192) === 0 && c !== e.fallback && G.push(c), c = Rt(c.next);
|
|
1973
1971
|
var ge = G.length;
|
|
1974
1972
|
if (ge > 0) {
|
|
1975
|
-
var Bt = n & 4 && s === 0 ? r : null;
|
|
1973
|
+
var Bt = (n & 4) !== 0 && s === 0 ? r : null;
|
|
1976
1974
|
if (o) {
|
|
1977
1975
|
for (w = 0; w < ge; w += 1) G[w].nodes?.a?.measure();
|
|
1978
1976
|
for (w = 0; w < ge; w += 1) G[w].nodes?.a?.fix();
|
|
@@ -1986,7 +1984,7 @@ function Zs(e, t, r, n, i) {
|
|
|
1986
1984
|
});
|
|
1987
1985
|
}
|
|
1988
1986
|
function ea(e, t, r, n, i, o, s, a) {
|
|
1989
|
-
var c = s & 1 ? s & 16
|
|
1987
|
+
var c = (s & 1) !== 0 ? (s & 16) === 0 ? /* @__PURE__ */ Vi(r, !1, !1) : st(r) : null, u = (s & 2) !== 0 ? st(i) : null;
|
|
1990
1988
|
return {
|
|
1991
1989
|
v: c,
|
|
1992
1990
|
i: u,
|
|
@@ -1997,7 +1995,7 @@ function ea(e, t, r, n, i, o, s, a) {
|
|
|
1997
1995
|
}
|
|
1998
1996
|
function Ct(e, t, r) {
|
|
1999
1997
|
if (e.nodes)
|
|
2000
|
-
for (var n = e.nodes.start, i = e.nodes.end, o = t &&
|
|
1998
|
+
for (var n = e.nodes.start, i = e.nodes.end, o = t && (t.f & 33554432) === 0 ? t.nodes.start : r; n !== null; ) {
|
|
2001
1999
|
var s = /* @__PURE__ */ Se(n);
|
|
2002
2000
|
if (o.before(n), n === i) return;
|
|
2003
2001
|
n = s;
|
|
@@ -2071,7 +2069,7 @@ function Qn(e, t, r, n) {
|
|
|
2071
2069
|
} else n && (Array.isArray(n) ? (Pr(e, r?.[0], n[0]), Pr(e, r?.[1], n[1], "important")) : Pr(e, r, n));
|
|
2072
2070
|
return n;
|
|
2073
2071
|
}
|
|
2074
|
-
var na = Symbol("is custom element"), ia = Symbol("is html"), oa = zo ? "link" : "LINK";
|
|
2072
|
+
var na = /* @__PURE__ */ Symbol("is custom element"), ia = /* @__PURE__ */ Symbol("is html"), oa = zo ? "link" : "LINK";
|
|
2075
2073
|
function Zn(e, t, r, n) {
|
|
2076
2074
|
var i = sa(e);
|
|
2077
2075
|
if (C && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === oa)) {
|
|
@@ -2159,23 +2157,23 @@ function Dr(e, t, r, n) {
|
|
|
2159
2157
|
} : g = () => {
|
|
2160
2158
|
var E = e[t];
|
|
2161
2159
|
return E !== void 0 && (a = void 0), E === void 0 ? a : E;
|
|
2162
|
-
}, i &&
|
|
2160
|
+
}, i && (r & 4) === 0) return g;
|
|
2163
2161
|
if (f) {
|
|
2164
2162
|
var y = e.$$legacy;
|
|
2165
|
-
return function(E, x) {
|
|
2163
|
+
return (function(E, x) {
|
|
2166
2164
|
return arguments.length > 0 ? ((!i || !x || y || h) && f(x ? g() : E), E) : g();
|
|
2167
|
-
};
|
|
2165
|
+
});
|
|
2168
2166
|
}
|
|
2169
|
-
var v = !1, w = (r & 1 ? Sr : dn)(() => (v = !1, g()));
|
|
2167
|
+
var v = !1, w = ((r & 1) !== 0 ? Sr : dn)(() => (v = !1, g()));
|
|
2170
2168
|
o && _(w);
|
|
2171
2169
|
var P = A;
|
|
2172
|
-
return function(E, x) {
|
|
2170
|
+
return (function(E, x) {
|
|
2173
2171
|
if (arguments.length > 0) {
|
|
2174
2172
|
const H = x ? _(w) : i && o ? Xe(E) : E;
|
|
2175
2173
|
return O(w, H), v = !0, a !== void 0 && (a = H), E;
|
|
2176
2174
|
}
|
|
2177
|
-
return Re && v || P.f & 16384 ? w.v : _(w);
|
|
2178
|
-
};
|
|
2175
|
+
return Re && v || (P.f & 16384) !== 0 ? w.v : _(w);
|
|
2176
|
+
});
|
|
2179
2177
|
}
|
|
2180
2178
|
function ca(e) {
|
|
2181
2179
|
return new ua(e);
|
|
@@ -2395,7 +2393,7 @@ var ha = class extends Event {
|
|
|
2395
2393
|
requestValue() {
|
|
2396
2394
|
this.host.dispatchEvent(new ha(this.context, this.host, this.handleValue, this.subscribe));
|
|
2397
2395
|
}
|
|
2398
|
-
}, kr = (e) => e,
|
|
2396
|
+
}, kr = (e) => e, Ml = kr(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.runtimeContext")), Cl = kr(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), va = kr(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.shellContext")), ga = kr(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.regionScopeContext"));
|
|
2399
2397
|
function fo(e, t, r) {
|
|
2400
2398
|
let n = !1;
|
|
2401
2399
|
const i = new pa(e, {
|
|
@@ -2441,7 +2439,7 @@ function ho(e) {
|
|
|
2441
2439
|
console.debug(`[${e}]`, ...t);
|
|
2442
2440
|
};
|
|
2443
2441
|
}
|
|
2444
|
-
var
|
|
2442
|
+
var xl = ho("I18nService"), Vr = {
|
|
2445
2443
|
assessment: [],
|
|
2446
2444
|
section: [],
|
|
2447
2445
|
item: [],
|
|
@@ -4005,7 +4003,7 @@ function hl() {
|
|
|
4005
4003
|
for (const r of e.getAllTools()) for (const n of r.pnpSupportIds || []) t.add(n);
|
|
4006
4004
|
return [...t].sort();
|
|
4007
4005
|
}
|
|
4008
|
-
var pl = hl(),
|
|
4006
|
+
var pl = hl(), Pl = {
|
|
4009
4007
|
supports: [...pl],
|
|
4010
4008
|
prohibitedSupports: [],
|
|
4011
4009
|
activateAtInit: []
|
|
@@ -4122,7 +4120,7 @@ var pl = hl(), Dl = {
|
|
|
4122
4120
|
itemGlossary: "itemGlossary",
|
|
4123
4121
|
tutorialAvailable: "tutorialAvailable"
|
|
4124
4122
|
}
|
|
4125
|
-
},
|
|
4123
|
+
}, Nl = Object.values(vl).flatMap((e) => Object.values(e)), Dl = ho("ToolCoordinator"), ci;
|
|
4126
4124
|
(function(e) {
|
|
4127
4125
|
e[e.BASE = 0] = "BASE", e[e.TOOL = 1e3] = "TOOL", e[e.MODAL = 2e3] = "MODAL", e[e.CONTROL = 3e3] = "CONTROL", e[e.HIGHLIGHT = 4e3] = "HIGHLIGHT";
|
|
4128
4126
|
})(ci || (ci = {}));
|
|
@@ -4130,7 +4128,7 @@ var ui;
|
|
|
4130
4128
|
(function(e) {
|
|
4131
4129
|
e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
|
|
4132
4130
|
})(ui || (ui = {}));
|
|
4133
|
-
var
|
|
4131
|
+
var Vl = ka({
|
|
4134
4132
|
policy: {
|
|
4135
4133
|
allowed: [],
|
|
4136
4134
|
blocked: []
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-players/pie-tool-annotation-toolbar",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.33",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Text annotation toolbar with highlighting and underlining for PIE assessment player",
|
|
6
6
|
"repository": {
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"unpkg": "./dist/tool-annotation-toolbar.js",
|
|
41
41
|
"jsdelivr": "./dist/tool-annotation-toolbar.js",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@pie-players/pie-assessment-toolkit": "0.3.
|
|
44
|
-
"@pie-players/pie-players-shared": "0.3.
|
|
43
|
+
"@pie-players/pie-assessment-toolkit": "0.3.33",
|
|
44
|
+
"@pie-players/pie-players-shared": "0.3.33"
|
|
45
45
|
},
|
|
46
46
|
"types": "./dist/index.d.ts",
|
|
47
47
|
"scripts": {
|