@pie-players/pie-tool-annotation-toolbar 0.3.0 → 0.3.2
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-annotation-toolbar.js +122 -102
- package/package.json +3 -3
|
@@ -5,9 +5,9 @@ var gi = (t) => {
|
|
|
5
5
|
var Xr = (t, e, n) => e in t ? Wr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
6
6
|
var w = (t, e, n) => Xr(t, typeof e != "symbol" ? e + "" : e, n), On = (t, e, n) => e.has(t) || gi("Cannot " + n);
|
|
7
7
|
var u = (t, e, n) => (On(t, e, "read from private field"), n ? n.call(t) : e.get(t)), I = (t, e, n) => e.has(t) ? gi("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), T = (t, e, n, i) => (On(t, e, "write to private field"), i ? i.call(t, n) : e.set(t, n), n), B = (t, e, n) => (On(t, e, "access private method"), n);
|
|
8
|
-
var
|
|
9
|
-
typeof window < "u" && ((
|
|
10
|
-
const Jr = 1, Qr = 2, Zr = 16, eo = 1, to = 2, Wn = "[", mn = "[!", Xn = "]", St = {},
|
|
8
|
+
var Pi;
|
|
9
|
+
typeof window < "u" && ((Pi = window.__svelte ?? (window.__svelte = {})).v ?? (Pi.v = /* @__PURE__ */ new Set())).add("5");
|
|
10
|
+
const Jr = 1, Qr = 2, Zr = 16, eo = 1, to = 2, Wn = "[", mn = "[!", Xn = "]", St = {}, D = /* @__PURE__ */ Symbol(), Di = "http://www.w3.org/1999/xhtml", Mn = !1;
|
|
11
11
|
var Fi = Array.isArray, no = Array.prototype.indexOf, At = Array.prototype.includes, _n = Array.from, dn = Object.keys, hn = Object.defineProperty, mt = Object.getOwnPropertyDescriptor, io = Object.getOwnPropertyDescriptors, ro = Object.prototype, oo = Array.prototype, ji = Object.getPrototypeOf, mi = Object.isExtensible;
|
|
12
12
|
const so = () => {
|
|
13
13
|
};
|
|
@@ -21,7 +21,7 @@ function Hi() {
|
|
|
21
21
|
});
|
|
22
22
|
return { promise: n, resolve: t, reject: e };
|
|
23
23
|
}
|
|
24
|
-
const F = 2, Bt = 4, bn = 8, qi = 1 << 24, qe = 16, me = 32, Xe = 64,
|
|
24
|
+
const F = 2, Bt = 4, bn = 8, qi = 1 << 24, qe = 16, me = 32, Xe = 64, Pn = 128, ne = 512, P = 1024, j = 2048, ve = 4096, Q = 8192, je = 16384, Vt = 32768, $t = 65536, _i = 1 << 17, Jn = 1 << 18, vt = 1 << 19, ao = 1 << 20, Ue = 1 << 25, dt = 65536, Dn = 1 << 21, Qn = 1 << 22, Ye = 1 << 23, sn = /* @__PURE__ */ Symbol("$state"), co = /* @__PURE__ */ Symbol("legacy props"), uo = /* @__PURE__ */ Symbol(""), et = new class extends Error {
|
|
25
25
|
constructor() {
|
|
26
26
|
super(...arguments);
|
|
27
27
|
w(this, "name", "StaleReactionError");
|
|
@@ -194,7 +194,7 @@ function Wi(t) {
|
|
|
194
194
|
}
|
|
195
195
|
function Rt(t, e) {
|
|
196
196
|
for (; e !== null; ) {
|
|
197
|
-
if ((e.f &
|
|
197
|
+
if ((e.f & Pn) !== 0) {
|
|
198
198
|
if ((e.f & Vt) === 0)
|
|
199
199
|
throw t;
|
|
200
200
|
try {
|
|
@@ -213,7 +213,7 @@ function N(t, e) {
|
|
|
213
213
|
t.f = t.f & Ro | e;
|
|
214
214
|
}
|
|
215
215
|
function Zn(t) {
|
|
216
|
-
(t.f & ne) !== 0 || t.deps === null ? N(t,
|
|
216
|
+
(t.f & ne) !== 0 || t.deps === null ? N(t, P) : N(t, ve);
|
|
217
217
|
}
|
|
218
218
|
function Xi(t) {
|
|
219
219
|
if (t !== null)
|
|
@@ -224,7 +224,7 @@ function Xi(t) {
|
|
|
224
224
|
));
|
|
225
225
|
}
|
|
226
226
|
function Ji(t, e, n) {
|
|
227
|
-
(t.f & j) !== 0 ? e.add(t) : (t.f & ve) !== 0 && n.add(t), Xi(t.deps), N(t,
|
|
227
|
+
(t.f & j) !== 0 ? e.add(t) : (t.f & ve) !== 0 && n.add(t), Xi(t.deps), N(t, P);
|
|
228
228
|
}
|
|
229
229
|
const tn = /* @__PURE__ */ new Set();
|
|
230
230
|
let V = null, fe = null, U = [], In = null, Fn = !1, qt = !1;
|
|
@@ -342,7 +342,7 @@ const ai = class ai {
|
|
|
342
342
|
* @param {any} value
|
|
343
343
|
*/
|
|
344
344
|
capture(e, n) {
|
|
345
|
-
n !==
|
|
345
|
+
n !== D && !this.previous.has(e) && this.previous.set(e, n), (e.f & Ye) === 0 && (this.current.set(e, e.v), fe?.set(e, e.v));
|
|
346
346
|
}
|
|
347
347
|
activate() {
|
|
348
348
|
V = this, this.apply();
|
|
@@ -415,11 +415,11 @@ _t = new WeakMap(), bt = new WeakMap(), rt = new WeakMap(), yt = new WeakMap(),
|
|
|
415
415
|
* @param {Effect[]} render_effects
|
|
416
416
|
*/
|
|
417
417
|
jn = function(e, n, i) {
|
|
418
|
-
e.f ^=
|
|
418
|
+
e.f ^= P;
|
|
419
419
|
for (var r = e.first, o = null; r !== null; ) {
|
|
420
|
-
var s = r.f, l = (s & (me | Xe)) !== 0, a = l && (s &
|
|
420
|
+
var s = r.f, l = (s & (me | Xe)) !== 0, a = l && (s & P) !== 0, c = a || (s & Q) !== 0 || u(this, Ce).has(r);
|
|
421
421
|
if (!c && r.fn !== null) {
|
|
422
|
-
l ? r.f ^=
|
|
422
|
+
l ? r.f ^= P : o !== null && (s & (Bt | bn | qi)) !== 0 ? o.b.defer_effect(r) : (s & Bt) !== 0 ? n.push(r) : Xt(r) && ((s & qe) !== 0 && u(this, ot).add(r), Ot(r));
|
|
423
423
|
var f = r.first;
|
|
424
424
|
if (f !== null) {
|
|
425
425
|
r = f;
|
|
@@ -590,15 +590,15 @@ function he(t) {
|
|
|
590
590
|
if (Fn && e === A && (n & qe) !== 0 && (n & Jn) === 0)
|
|
591
591
|
return;
|
|
592
592
|
if ((n & (Xe | me)) !== 0) {
|
|
593
|
-
if ((n &
|
|
594
|
-
e.f ^=
|
|
593
|
+
if ((n & P) === 0) return;
|
|
594
|
+
e.f ^= P;
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
U.push(e);
|
|
598
598
|
}
|
|
599
599
|
function nr(t, e) {
|
|
600
|
-
if (!((t.f & me) !== 0 && (t.f &
|
|
601
|
-
(t.f & j) !== 0 ? e.d.push(t) : (t.f & ve) !== 0 && e.m.push(t), N(t,
|
|
600
|
+
if (!((t.f & me) !== 0 && (t.f & P) !== 0)) {
|
|
601
|
+
(t.f & j) !== 0 ? e.d.push(t) : (t.f & ve) !== 0 && e.m.push(t), N(t, P);
|
|
602
602
|
for (var n = t.first; n !== null; )
|
|
603
603
|
nr(n, e), n = n.next;
|
|
604
604
|
}
|
|
@@ -617,7 +617,7 @@ var Vo = $t | vt;
|
|
|
617
617
|
function No(t, e, n) {
|
|
618
618
|
new Co(t, e, n);
|
|
619
619
|
}
|
|
620
|
-
var ee, Yt, Me, st, Te, we, X, Ie,
|
|
620
|
+
var ee, Yt, Me, st, Te, we, X, Ie, Pe, lt, ze, wt, It, Et, De, vn, q, ir, rr, qn, an, xn;
|
|
621
621
|
class Co {
|
|
622
622
|
/**
|
|
623
623
|
* @param {TemplateNode} node
|
|
@@ -646,7 +646,7 @@ class Co {
|
|
|
646
646
|
/** @type {Effect | null} */
|
|
647
647
|
I(this, Ie, null);
|
|
648
648
|
/** @type {DocumentFragment | null} */
|
|
649
|
-
I(this,
|
|
649
|
+
I(this, Pe, null);
|
|
650
650
|
I(this, lt, 0);
|
|
651
651
|
I(this, ze, 0);
|
|
652
652
|
I(this, wt, !1);
|
|
@@ -661,16 +661,16 @@ class Co {
|
|
|
661
661
|
* calls followed by no-op flushes
|
|
662
662
|
* @type {Source<number> | null}
|
|
663
663
|
*/
|
|
664
|
-
I(this,
|
|
665
|
-
I(this, vn, Oo(() => (T(this,
|
|
666
|
-
T(this,
|
|
664
|
+
I(this, De, null);
|
|
665
|
+
I(this, vn, Oo(() => (T(this, De, ht(u(this, lt))), () => {
|
|
666
|
+
T(this, De, null);
|
|
667
667
|
})));
|
|
668
668
|
T(this, ee, e), T(this, Me, n), T(this, st, (r) => {
|
|
669
669
|
var o = (
|
|
670
670
|
/** @type {Effect} */
|
|
671
671
|
A
|
|
672
672
|
);
|
|
673
|
-
o.b = this, o.f |=
|
|
673
|
+
o.b = this, o.f |= Pn, i(r);
|
|
674
674
|
}), this.parent = /** @type {Effect} */
|
|
675
675
|
A.b, T(this, Te, Sn(() => {
|
|
676
676
|
if (L) {
|
|
@@ -707,14 +707,14 @@ class Co {
|
|
|
707
707
|
* @param {1 | -1} d
|
|
708
708
|
*/
|
|
709
709
|
update_pending_count(e) {
|
|
710
|
-
B(this, q, xn).call(this, e), T(this, lt, u(this, lt) + e), !(!u(this,
|
|
711
|
-
T(this, wt, !1), u(this,
|
|
710
|
+
B(this, q, xn).call(this, e), T(this, lt, u(this, lt) + e), !(!u(this, De) || u(this, wt)) && (T(this, wt, !0), ct(() => {
|
|
711
|
+
T(this, wt, !1), u(this, De) && Lt(u(this, De), u(this, lt));
|
|
712
712
|
}));
|
|
713
713
|
}
|
|
714
714
|
get_effect_pending() {
|
|
715
715
|
return u(this, vn).call(this), m(
|
|
716
716
|
/** @type {Source<number>} */
|
|
717
|
-
u(this,
|
|
717
|
+
u(this, De)
|
|
718
718
|
);
|
|
719
719
|
}
|
|
720
720
|
/** @param {unknown} error */
|
|
@@ -753,7 +753,7 @@ class Co {
|
|
|
753
753
|
/** @type {Effect} */
|
|
754
754
|
A
|
|
755
755
|
);
|
|
756
|
-
l.b = this, l.f |=
|
|
756
|
+
l.b = this, l.f |= Pn, i(
|
|
757
757
|
u(this, ee),
|
|
758
758
|
() => e,
|
|
759
759
|
() => s
|
|
@@ -770,7 +770,7 @@ class Co {
|
|
|
770
770
|
});
|
|
771
771
|
}
|
|
772
772
|
}
|
|
773
|
-
ee = new WeakMap(), Yt = new WeakMap(), Me = new WeakMap(), st = new WeakMap(), Te = new WeakMap(), we = new WeakMap(), X = new WeakMap(), Ie = new WeakMap(),
|
|
773
|
+
ee = new WeakMap(), Yt = new WeakMap(), Me = new WeakMap(), st = new WeakMap(), Te = new WeakMap(), we = new WeakMap(), X = new WeakMap(), Ie = new WeakMap(), Pe = new WeakMap(), lt = new WeakMap(), ze = new WeakMap(), wt = new WeakMap(), It = new WeakMap(), Et = new WeakMap(), De = new WeakMap(), vn = new WeakMap(), q = new WeakSet(), ir = function() {
|
|
774
774
|
try {
|
|
775
775
|
T(this, we, ue(() => u(this, st).call(this, u(this, ee))));
|
|
776
776
|
} catch (e) {
|
|
@@ -779,8 +779,8 @@ ee = new WeakMap(), Yt = new WeakMap(), Me = new WeakMap(), st = new WeakMap(),
|
|
|
779
779
|
}, rr = function() {
|
|
780
780
|
const e = u(this, Me).pending;
|
|
781
781
|
e && (this.is_pending = !0, T(this, X, ue(() => e(u(this, ee)))), ct(() => {
|
|
782
|
-
var n = T(this,
|
|
783
|
-
n.append(i), T(this, we, B(this, q, an).call(this, () => (He.ensure(), ue(() => u(this, st).call(this, i))))), u(this, ze) === 0 && (u(this, ee).before(n), T(this,
|
|
782
|
+
var n = T(this, Pe, document.createDocumentFragment()), i = ge();
|
|
783
|
+
n.append(i), T(this, we, B(this, q, an).call(this, () => (He.ensure(), ue(() => u(this, st).call(this, i))))), u(this, ze) === 0 && (u(this, ee).before(n), T(this, Pe, null), ut(
|
|
784
784
|
/** @type {Effect} */
|
|
785
785
|
u(this, X),
|
|
786
786
|
() => {
|
|
@@ -793,7 +793,7 @@ ee = new WeakMap(), Yt = new WeakMap(), Me = new WeakMap(), st = new WeakMap(),
|
|
|
793
793
|
if (this.is_pending = this.has_pending_snippet(), T(this, ze, 0), T(this, lt, 0), T(this, we, ue(() => {
|
|
794
794
|
u(this, st).call(this, u(this, ee));
|
|
795
795
|
})), u(this, ze) > 0) {
|
|
796
|
-
var e = T(this,
|
|
796
|
+
var e = T(this, Pe, document.createDocumentFragment());
|
|
797
797
|
wr(u(this, we), e);
|
|
798
798
|
const n = (
|
|
799
799
|
/** @type {(anchor: Node) => void} */
|
|
@@ -838,7 +838,7 @@ xn = function(e) {
|
|
|
838
838
|
N(i, ve), he(i);
|
|
839
839
|
u(this, It).clear(), u(this, Et).clear(), u(this, X) && ut(u(this, X), () => {
|
|
840
840
|
T(this, X, null);
|
|
841
|
-
}), u(this,
|
|
841
|
+
}), u(this, Pe) && (u(this, ee).before(u(this, Pe)), T(this, Pe, null));
|
|
842
842
|
}
|
|
843
843
|
};
|
|
844
844
|
function Mo(t, e, n, i) {
|
|
@@ -851,7 +851,7 @@ function Mo(t, e, n, i) {
|
|
|
851
851
|
var s = V, l = (
|
|
852
852
|
/** @type {Effect} */
|
|
853
853
|
A
|
|
854
|
-
), a =
|
|
854
|
+
), a = Po(), c = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((p) => p.promise)) : null;
|
|
855
855
|
function f(p) {
|
|
856
856
|
a();
|
|
857
857
|
try {
|
|
@@ -866,11 +866,11 @@ function Mo(t, e, n, i) {
|
|
|
866
866
|
return;
|
|
867
867
|
}
|
|
868
868
|
function v() {
|
|
869
|
-
a(), Promise.all(n.map((p) => /* @__PURE__ */
|
|
869
|
+
a(), Promise.all(n.map((p) => /* @__PURE__ */ Do(p))).then((p) => f([...e.map(r), ...p])).catch((p) => Rt(p, l));
|
|
870
870
|
}
|
|
871
871
|
c ? c.then(v) : v();
|
|
872
872
|
}
|
|
873
|
-
function
|
|
873
|
+
function Po() {
|
|
874
874
|
var t = A, e = S, n = re, i = V;
|
|
875
875
|
return function(o = !0) {
|
|
876
876
|
Se(t), se(e), kt(n), o && i?.activate();
|
|
@@ -896,7 +896,7 @@ function En(t) {
|
|
|
896
896
|
rv: 0,
|
|
897
897
|
v: (
|
|
898
898
|
/** @type {V} */
|
|
899
|
-
|
|
899
|
+
D
|
|
900
900
|
),
|
|
901
901
|
wv: 0,
|
|
902
902
|
parent: n ?? A,
|
|
@@ -904,7 +904,7 @@ function En(t) {
|
|
|
904
904
|
};
|
|
905
905
|
}
|
|
906
906
|
// @__NO_SIDE_EFFECTS__
|
|
907
|
-
function
|
|
907
|
+
function Do(t, e, n) {
|
|
908
908
|
let i = (
|
|
909
909
|
/** @type {Effect | null} */
|
|
910
910
|
A
|
|
@@ -919,7 +919,7 @@ function Po(t, e, n) {
|
|
|
919
919
|
void 0
|
|
920
920
|
), s = ht(
|
|
921
921
|
/** @type {V} */
|
|
922
|
-
|
|
922
|
+
D
|
|
923
923
|
), l = !S, a = /* @__PURE__ */ new Map();
|
|
924
924
|
return Ko(() => {
|
|
925
925
|
var c = Hi();
|
|
@@ -1010,7 +1010,7 @@ function ei(t) {
|
|
|
1010
1010
|
function or(t) {
|
|
1011
1011
|
var e = ei(t);
|
|
1012
1012
|
if (!t.equals(e) && (t.wv = Sr(), (!V?.is_fork || t.deps === null) && (t.v = e, t.deps === null))) {
|
|
1013
|
-
N(t,
|
|
1013
|
+
N(t, P);
|
|
1014
1014
|
return;
|
|
1015
1015
|
}
|
|
1016
1016
|
We || (fe !== null ? (ii() || V?.is_fork) && fe.set(t, e) : Zn(t));
|
|
@@ -1069,14 +1069,14 @@ function Lt(t, e) {
|
|
|
1069
1069
|
);
|
|
1070
1070
|
(t.f & j) !== 0 && ei(r), Zn(r);
|
|
1071
1071
|
}
|
|
1072
|
-
t.wv = Sr(), cr(t, j), A !== null && (A.f &
|
|
1072
|
+
t.wv = Sr(), cr(t, j), A !== null && (A.f & P) !== 0 && (A.f & (me | Xe)) === 0 && (Z === null ? Jo([t]) : Z.push(t)), !i.is_fork && Gn.size > 0 && !lr && xo();
|
|
1073
1073
|
}
|
|
1074
1074
|
return e;
|
|
1075
1075
|
}
|
|
1076
1076
|
function xo() {
|
|
1077
1077
|
lr = !1;
|
|
1078
1078
|
for (const t of Gn)
|
|
1079
|
-
(t.f &
|
|
1079
|
+
(t.f & P) !== 0 && N(t, ve), Xt(t) && Ot(t);
|
|
1080
1080
|
Gn.clear();
|
|
1081
1081
|
}
|
|
1082
1082
|
function xt(t) {
|
|
@@ -1135,11 +1135,11 @@ function gt(t) {
|
|
|
1135
1135
|
var c = n.get(a);
|
|
1136
1136
|
if (c === void 0) {
|
|
1137
1137
|
if (a in l) {
|
|
1138
|
-
const f = s(() => /* @__PURE__ */ M(
|
|
1138
|
+
const f = s(() => /* @__PURE__ */ M(D));
|
|
1139
1139
|
n.set(a, f), xt(r);
|
|
1140
1140
|
}
|
|
1141
1141
|
} else
|
|
1142
|
-
k(c,
|
|
1142
|
+
k(c, D), xt(r);
|
|
1143
1143
|
return !0;
|
|
1144
1144
|
},
|
|
1145
1145
|
get(l, a, c) {
|
|
@@ -1147,11 +1147,11 @@ function gt(t) {
|
|
|
1147
1147
|
return t;
|
|
1148
1148
|
var f = n.get(a), v = a in l;
|
|
1149
1149
|
if (f === void 0 && (!v || mt(l, a)?.writable) && (f = s(() => {
|
|
1150
|
-
var h = gt(v ? l[a] :
|
|
1150
|
+
var h = gt(v ? l[a] : D), d = /* @__PURE__ */ M(h);
|
|
1151
1151
|
return d;
|
|
1152
1152
|
}), n.set(a, f)), f !== void 0) {
|
|
1153
1153
|
var p = m(f);
|
|
1154
|
-
return p ===
|
|
1154
|
+
return p === D ? void 0 : p;
|
|
1155
1155
|
}
|
|
1156
1156
|
return Reflect.get(l, a, c);
|
|
1157
1157
|
},
|
|
@@ -1162,7 +1162,7 @@ function gt(t) {
|
|
|
1162
1162
|
f && (c.value = m(f));
|
|
1163
1163
|
} else if (c === void 0) {
|
|
1164
1164
|
var v = n.get(a), p = v?.v;
|
|
1165
|
-
if (v !== void 0 && p !==
|
|
1165
|
+
if (v !== void 0 && p !== D)
|
|
1166
1166
|
return {
|
|
1167
1167
|
enumerable: !0,
|
|
1168
1168
|
configurable: !0,
|
|
@@ -1175,14 +1175,14 @@ function gt(t) {
|
|
|
1175
1175
|
has(l, a) {
|
|
1176
1176
|
if (a === sn)
|
|
1177
1177
|
return !0;
|
|
1178
|
-
var c = n.get(a), f = c !== void 0 && c.v !==
|
|
1178
|
+
var c = n.get(a), f = c !== void 0 && c.v !== D || Reflect.has(l, a);
|
|
1179
1179
|
if (c !== void 0 || A !== null && (!f || mt(l, a)?.writable)) {
|
|
1180
1180
|
c === void 0 && (c = s(() => {
|
|
1181
|
-
var p = f ? gt(l[a]) :
|
|
1181
|
+
var p = f ? gt(l[a]) : D, h = /* @__PURE__ */ M(p);
|
|
1182
1182
|
return h;
|
|
1183
1183
|
}), n.set(a, c));
|
|
1184
1184
|
var v = m(c);
|
|
1185
|
-
if (v ===
|
|
1185
|
+
if (v === D)
|
|
1186
1186
|
return !1;
|
|
1187
1187
|
}
|
|
1188
1188
|
return f;
|
|
@@ -1193,12 +1193,12 @@ function gt(t) {
|
|
|
1193
1193
|
for (var h = c; h < /** @type {Source<number>} */
|
|
1194
1194
|
v.v; h += 1) {
|
|
1195
1195
|
var d = n.get(h + "");
|
|
1196
|
-
d !== void 0 ? k(d,
|
|
1196
|
+
d !== void 0 ? k(d, D) : h in l && (d = s(() => /* @__PURE__ */ M(D)), n.set(h + "", d));
|
|
1197
1197
|
}
|
|
1198
1198
|
if (v === void 0)
|
|
1199
1199
|
(!p || mt(l, a)?.writable) && (v = s(() => /* @__PURE__ */ M(void 0)), k(v, gt(c)), n.set(a, v));
|
|
1200
1200
|
else {
|
|
1201
|
-
p = v.v !==
|
|
1201
|
+
p = v.v !== D;
|
|
1202
1202
|
var _ = s(() => gt(c));
|
|
1203
1203
|
k(v, _);
|
|
1204
1204
|
}
|
|
@@ -1219,10 +1219,10 @@ function gt(t) {
|
|
|
1219
1219
|
m(r);
|
|
1220
1220
|
var a = Reflect.ownKeys(l).filter((v) => {
|
|
1221
1221
|
var p = n.get(v);
|
|
1222
|
-
return p === void 0 || p.v !==
|
|
1222
|
+
return p === void 0 || p.v !== D;
|
|
1223
1223
|
});
|
|
1224
1224
|
for (var [c, f] of n)
|
|
1225
|
-
f.v !==
|
|
1225
|
+
f.v !== D && !(c in l) && a.push(c);
|
|
1226
1226
|
return a;
|
|
1227
1227
|
},
|
|
1228
1228
|
setPrototypeOf() {
|
|
@@ -1316,7 +1316,7 @@ function pr() {
|
|
|
1316
1316
|
function ti(t, e, n) {
|
|
1317
1317
|
return (
|
|
1318
1318
|
/** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
|
|
1319
|
-
document.createElementNS(
|
|
1319
|
+
document.createElementNS(Di, t, void 0)
|
|
1320
1320
|
);
|
|
1321
1321
|
}
|
|
1322
1322
|
function ni(t) {
|
|
@@ -1388,7 +1388,7 @@ function ii() {
|
|
|
1388
1388
|
}
|
|
1389
1389
|
function zo(t) {
|
|
1390
1390
|
const e = $e(bn, null, !1);
|
|
1391
|
-
return N(e,
|
|
1391
|
+
return N(e, P), e.teardown = t, e;
|
|
1392
1392
|
}
|
|
1393
1393
|
function Ti(t) {
|
|
1394
1394
|
Bo();
|
|
@@ -1533,7 +1533,7 @@ function si(t) {
|
|
|
1533
1533
|
}
|
|
1534
1534
|
function Tr(t, e) {
|
|
1535
1535
|
if ((t.f & Q) !== 0) {
|
|
1536
|
-
t.f ^= Q, (t.f &
|
|
1536
|
+
t.f ^= Q, (t.f & P) === 0 && (N(t, j), he(t));
|
|
1537
1537
|
for (var n = t.first; n !== null; ) {
|
|
1538
1538
|
var i = n.next, r = (n.f & $t) !== 0 || (n.f & me) !== 0;
|
|
1539
1539
|
Tr(n, r ? e : !1), n = i;
|
|
@@ -1599,7 +1599,7 @@ function Xt(t) {
|
|
|
1599
1599
|
}
|
|
1600
1600
|
(e & ne) !== 0 && // During time traveling we don't want to reset the status so that
|
|
1601
1601
|
// traversal of the graph in the other batches still happens
|
|
1602
|
-
fe === null && N(t,
|
|
1602
|
+
fe === null && N(t, P);
|
|
1603
1603
|
}
|
|
1604
1604
|
return !1;
|
|
1605
1605
|
}
|
|
@@ -1613,7 +1613,7 @@ function Ar(t, e, n = !0) {
|
|
|
1613
1613
|
o,
|
|
1614
1614
|
e,
|
|
1615
1615
|
!1
|
|
1616
|
-
) : e === o && (n ? N(o, j) : (o.f &
|
|
1616
|
+
) : e === o && (n ? N(o, j) : (o.f & P) !== 0 && N(o, ve), he(
|
|
1617
1617
|
/** @type {Effect} */
|
|
1618
1618
|
o
|
|
1619
1619
|
));
|
|
@@ -1627,7 +1627,7 @@ function $r(t) {
|
|
|
1627
1627
|
t.ac.abort(et);
|
|
1628
1628
|
}), t.ac = null);
|
|
1629
1629
|
try {
|
|
1630
|
-
t.f |=
|
|
1630
|
+
t.f |= Dn;
|
|
1631
1631
|
var f = (
|
|
1632
1632
|
/** @type {Function} */
|
|
1633
1633
|
t.fn
|
|
@@ -1667,7 +1667,7 @@ function $r(t) {
|
|
|
1667
1667
|
} catch (b) {
|
|
1668
1668
|
return Wi(b);
|
|
1669
1669
|
} finally {
|
|
1670
|
-
t.f ^=
|
|
1670
|
+
t.f ^= Dn, Y = e, W = n, Z = i, S = r, ie = o, kt(s), pe = l, ft = a;
|
|
1671
1671
|
}
|
|
1672
1672
|
}
|
|
1673
1673
|
function Qo(t, e) {
|
|
@@ -1699,7 +1699,7 @@ function Gt(t, e) {
|
|
|
1699
1699
|
function Ot(t) {
|
|
1700
1700
|
var e = t.f;
|
|
1701
1701
|
if ((e & je) === 0) {
|
|
1702
|
-
N(t,
|
|
1702
|
+
N(t, P);
|
|
1703
1703
|
var n = A, i = cn;
|
|
1704
1704
|
A = t, cn = !0;
|
|
1705
1705
|
try {
|
|
@@ -1719,7 +1719,7 @@ function m(t) {
|
|
|
1719
1719
|
var i = A !== null && (A.f & je) !== 0;
|
|
1720
1720
|
if (!i && (ie === null || !At.call(ie, t))) {
|
|
1721
1721
|
var r = S.deps;
|
|
1722
|
-
if ((S.f &
|
|
1722
|
+
if ((S.f & Dn) !== 0)
|
|
1723
1723
|
t.rv < nt && (t.rv = nt, Y === null && r !== null && r[W] === t ? W++ : Y === null ? Y = [t] : Y.push(t));
|
|
1724
1724
|
else {
|
|
1725
1725
|
(S.deps ?? (S.deps = [])).push(t);
|
|
@@ -1737,7 +1737,7 @@ function m(t) {
|
|
|
1737
1737
|
);
|
|
1738
1738
|
if (We) {
|
|
1739
1739
|
var l = s.v;
|
|
1740
|
-
return ((s.f &
|
|
1740
|
+
return ((s.f & P) === 0 && s.reactions !== null || Rr(s)) && (l = ei(s)), Ke.set(s, l), l;
|
|
1741
1741
|
}
|
|
1742
1742
|
var a = (s.f & ne) === 0 && !pe && S !== null && (cn || (S.f & ne) !== 0), c = (s.f & Vt) === 0;
|
|
1743
1743
|
Xt(s) && (a && (s.f |= ne), or(s)), a && !c && (sr(s), kr(s));
|
|
@@ -1760,7 +1760,7 @@ function kr(t) {
|
|
|
1760
1760
|
));
|
|
1761
1761
|
}
|
|
1762
1762
|
function Rr(t) {
|
|
1763
|
-
if (t.v ===
|
|
1763
|
+
if (t.v === D) return !0;
|
|
1764
1764
|
if (t.deps === null) return !1;
|
|
1765
1765
|
for (const e of t.deps)
|
|
1766
1766
|
if (Ke.has(e) || (e.f & F) !== 0 && Rr(
|
|
@@ -1779,7 +1779,7 @@ function Lr(t) {
|
|
|
1779
1779
|
}
|
|
1780
1780
|
}
|
|
1781
1781
|
const it = /* @__PURE__ */ Symbol("events"), Or = /* @__PURE__ */ new Set(), Un = /* @__PURE__ */ new Set();
|
|
1782
|
-
function
|
|
1782
|
+
function Dt(t, e, n) {
|
|
1783
1783
|
(e[it] ?? (e[it] = {}))[t] = n;
|
|
1784
1784
|
}
|
|
1785
1785
|
function Zo(t) {
|
|
@@ -2416,7 +2416,7 @@ function bs(t) {
|
|
|
2416
2416
|
// @ts-expect-error
|
|
2417
2417
|
t.__attributes ?? (t.__attributes = {
|
|
2418
2418
|
[gs]: t.nodeName.includes("-"),
|
|
2419
|
-
[ms]: t.namespaceURI ===
|
|
2419
|
+
[ms]: t.namespaceURI === Di
|
|
2420
2420
|
})
|
|
2421
2421
|
);
|
|
2422
2422
|
}
|
|
@@ -2807,7 +2807,7 @@ class As {
|
|
|
2807
2807
|
}
|
|
2808
2808
|
}
|
|
2809
2809
|
const Mr = (t) => t, $s = Mr(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.shellContext")), ks = Mr(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.regionScopeContext"));
|
|
2810
|
-
function
|
|
2810
|
+
function Pr(t, e, n) {
|
|
2811
2811
|
let i = !1;
|
|
2812
2812
|
const r = new As(t, {
|
|
2813
2813
|
context: e,
|
|
@@ -2834,10 +2834,10 @@ function Dr(t, e, n) {
|
|
|
2834
2834
|
};
|
|
2835
2835
|
}
|
|
2836
2836
|
function Rs(t, e) {
|
|
2837
|
-
return
|
|
2837
|
+
return Pr(t, $s, e);
|
|
2838
2838
|
}
|
|
2839
2839
|
function Ls(t, e) {
|
|
2840
|
-
return
|
|
2840
|
+
return Pr(t, ks, e);
|
|
2841
2841
|
}
|
|
2842
2842
|
var Ni;
|
|
2843
2843
|
(function(t) {
|
|
@@ -3125,7 +3125,7 @@ class Ns {
|
|
|
3125
3125
|
return r.renderToolbar(n, o);
|
|
3126
3126
|
}
|
|
3127
3127
|
}
|
|
3128
|
-
function
|
|
3128
|
+
function Dr(t) {
|
|
3129
3129
|
return t.level === "item";
|
|
3130
3130
|
}
|
|
3131
3131
|
function Cs(t) {
|
|
@@ -3156,7 +3156,7 @@ function li(t) {
|
|
|
3156
3156
|
}
|
|
3157
3157
|
return n.filter(Boolean).join(" ").trim();
|
|
3158
3158
|
}
|
|
3159
|
-
if (
|
|
3159
|
+
if (Dr(t)) {
|
|
3160
3160
|
const e = t.item;
|
|
3161
3161
|
if (!e?.config)
|
|
3162
3162
|
return "";
|
|
@@ -3225,7 +3225,7 @@ function An(t) {
|
|
|
3225
3225
|
// Simple arithmetic
|
|
3226
3226
|
].some((i) => i.test(e));
|
|
3227
3227
|
}
|
|
3228
|
-
function
|
|
3228
|
+
function Ps(t) {
|
|
3229
3229
|
const e = [
|
|
3230
3230
|
"pie-multiple-choice",
|
|
3231
3231
|
"pie-inline-choice",
|
|
@@ -3244,7 +3244,7 @@ function Ds(t) {
|
|
|
3244
3244
|
const o = r.element || "";
|
|
3245
3245
|
return e.includes(o);
|
|
3246
3246
|
}
|
|
3247
|
-
if (
|
|
3247
|
+
if (Dr(t)) {
|
|
3248
3248
|
const n = t.item.config?.models;
|
|
3249
3249
|
return (Array.isArray(n) ? n : n && typeof n == "object" ? Object.values(n) : []).some((r) => {
|
|
3250
3250
|
if (!r || typeof r != "object")
|
|
@@ -3258,7 +3258,7 @@ function Ds(t) {
|
|
|
3258
3258
|
function $n(t) {
|
|
3259
3259
|
return li(t).trim().length >= 10;
|
|
3260
3260
|
}
|
|
3261
|
-
function
|
|
3261
|
+
function Ds(t) {
|
|
3262
3262
|
const e = li(t);
|
|
3263
3263
|
return [
|
|
3264
3264
|
/chemistry|chemical|element|atom|molecule|compound/i,
|
|
@@ -3636,7 +3636,7 @@ const qs = /* @__PURE__ */ new Set([
|
|
|
3636
3636
|
* Pass 2: Answer eliminator is relevant only for choice-based questions
|
|
3637
3637
|
*/
|
|
3638
3638
|
isVisibleInContext(t) {
|
|
3639
|
-
return
|
|
3639
|
+
return Ps(t);
|
|
3640
3640
|
},
|
|
3641
3641
|
renderToolbar(t, e) {
|
|
3642
3642
|
const n = _e(this.toolId, e.scope.level, e.scope.scopeId), i = e.componentOverrides ?? {}, r = ke(this.toolId, t, e, i);
|
|
@@ -3941,7 +3941,7 @@ const qs = /* @__PURE__ */ new Set([
|
|
|
3941
3941
|
* Pass 2: Periodic table is relevant when science content is present
|
|
3942
3942
|
*/
|
|
3943
3943
|
isVisibleInContext(t) {
|
|
3944
|
-
return
|
|
3944
|
+
return Ds(t);
|
|
3945
3945
|
},
|
|
3946
3946
|
renderToolbar(t, e) {
|
|
3947
3947
|
const n = _e(this.toolId, e.scope.level, e.scope.scopeId), i = {
|
|
@@ -3968,8 +3968,20 @@ const qs = /* @__PURE__ */ new Set([
|
|
|
3968
3968
|
}
|
|
3969
3969
|
};
|
|
3970
3970
|
}
|
|
3971
|
-
}
|
|
3972
|
-
|
|
3971
|
+
}, rl = [
|
|
3972
|
+
Us,
|
|
3973
|
+
Ys,
|
|
3974
|
+
Ks,
|
|
3975
|
+
Ws,
|
|
3976
|
+
Xs,
|
|
3977
|
+
Js,
|
|
3978
|
+
Qs,
|
|
3979
|
+
el,
|
|
3980
|
+
tl,
|
|
3981
|
+
nl,
|
|
3982
|
+
il
|
|
3983
|
+
];
|
|
3984
|
+
function ol(t = {}) {
|
|
3973
3985
|
const e = new Ns(), n = {
|
|
3974
3986
|
toolTagMap: {
|
|
3975
3987
|
...jr,
|
|
@@ -3978,17 +3990,25 @@ function rl(t = {}) {
|
|
|
3978
3990
|
toolComponentFactory: t.toolComponentFactory,
|
|
3979
3991
|
toolComponentFactories: t.toolComponentFactories
|
|
3980
3992
|
}, i = (r) => t.overrides?.[r.toolId] || r;
|
|
3981
|
-
return
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3993
|
+
return t.includePackagedTools && sl(e, {
|
|
3994
|
+
toolIds: t.toolIds,
|
|
3995
|
+
applyOverrides: i
|
|
3996
|
+
}), t.toolModuleLoaders && Object.keys(t.toolModuleLoaders).length > 0 && e.setToolModuleLoaders(t.toolModuleLoaders), e.setComponentOverrides(n), e;
|
|
3997
|
+
}
|
|
3998
|
+
function sl(t, e = {}) {
|
|
3999
|
+
const n = e.toolIds && e.toolIds.length > 0 ? new Set(e.toolIds) : null, i = e.applyOverrides || ((r) => r);
|
|
4000
|
+
for (const r of rl)
|
|
4001
|
+
n && !n.has(r.toolId) || t.register(i(r));
|
|
4002
|
+
}
|
|
4003
|
+
function ll() {
|
|
4004
|
+
const t = ol(), e = /* @__PURE__ */ new Set();
|
|
3985
4005
|
for (const n of t.getAllTools())
|
|
3986
4006
|
for (const i of n.pnpSupportIds || [])
|
|
3987
4007
|
e.add(i);
|
|
3988
4008
|
return [...e].sort();
|
|
3989
4009
|
}
|
|
3990
|
-
|
|
3991
|
-
const
|
|
4010
|
+
ll();
|
|
4011
|
+
const al = {
|
|
3992
4012
|
/**
|
|
3993
4013
|
* Visual accessibility features
|
|
3994
4014
|
* For students with low vision, color blindness, or visual processing needs
|
|
@@ -4159,7 +4179,7 @@ const sl = {
|
|
|
4159
4179
|
tutorialAvailable: "tutorialAvailable"
|
|
4160
4180
|
}
|
|
4161
4181
|
};
|
|
4162
|
-
Object.values(
|
|
4182
|
+
Object.values(al).flatMap((t) => Object.values(t));
|
|
4163
4183
|
var Ci;
|
|
4164
4184
|
(function(t) {
|
|
4165
4185
|
t[t.BASE = 0] = "BASE", t[t.TOOL = 1e3] = "TOOL", t[t.MODAL = 2e3] = "MODAL", t[t.CONTROL = 3e3] = "CONTROL", t[t.HIGHLIGHT = 4e3] = "HIGHLIGHT";
|
|
@@ -4168,8 +4188,8 @@ var Mi;
|
|
|
4168
4188
|
(function(t) {
|
|
4169
4189
|
t.IDLE = "idle", t.LOADING = "loading", t.PLAYING = "playing", t.PAUSED = "paused", t.ERROR = "error";
|
|
4170
4190
|
})(Mi || (Mi = {}));
|
|
4171
|
-
var
|
|
4172
|
-
const
|
|
4191
|
+
var cl = /* @__PURE__ */ Je('<link rel="stylesheet" href="./highlights.css"/>'), ul = /* @__PURE__ */ Je('<button class="pie-tool-annotation-toolbar__highlight-swatch svelte-g8qu62"><span class="pie-sr-only svelte-g8qu62"> </span></button>'), fl = /* @__PURE__ */ Je('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Read selected text aloud" title="Read Aloud"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z"></path></svg></button>', 1), dl = /* @__PURE__ */ Je('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--warning svelte-g8qu62" aria-label="Remove this annotation" title="Remove"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"></path></svg></button>'), hl = /* @__PURE__ */ Je('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--danger svelte-g8qu62" aria-label="Clear all annotations from document" title="Clear All">Clear All</button>'), pl = /* @__PURE__ */ Je('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <!> <!>', 1), vl = /* @__PURE__ */ Je('<div class="pie-tool-annotation-toolbar notranslate svelte-g8qu62" role="toolbar" aria-label="Text annotation toolbar" translate="no"><!> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Underline selected text" title="Underline"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z"></path></svg></button> <!> <!></div>'), gl = /* @__PURE__ */ Je('<div style="display: none;" aria-hidden="true"></div> <!> <div role="status" aria-live="polite" aria-atomic="true" class="pie-sr-only svelte-g8qu62"> </div>', 1);
|
|
4192
|
+
const ml = {
|
|
4173
4193
|
hash: "svelte-g8qu62",
|
|
4174
4194
|
code: `.pie-tool-annotation-toolbar.svelte-g8qu62 {position:fixed;z-index:4200;display:flex;gap:0.25rem;padding:0.5rem;border-radius:0.5rem;background:var(--pie-background, #fff);color:var(--pie-text, #111827);border:1px solid var(--pie-border, #d1d5db);box-shadow:0 10px 25px -8px rgb(0 0 0 / 0.3);user-select:none;}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62 {width:2.5rem;height:2rem;border:2px solid color-mix(in srgb, var(--pie-border-dark, #111827) 20%, transparent);border-radius:0.375rem;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;padding:0;}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62:hover {transform:scale(1.1);border-color:color-mix(in srgb, var(--pie-border-dark, #111827) 45%, transparent);box-shadow:0 2px 8px rgb(0 0 0 / 0.15);}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #3f51b5));outline-offset:2px;}.pie-tool-annotation-toolbar.svelte-g8qu62 .divider-horizontal:where(.svelte-g8qu62) {height:auto;width:1px;background-color:color-mix(in srgb, var(--pie-border, #d1d5db) 70%, transparent);}
|
|
4175
4195
|
|
|
@@ -4177,8 +4197,8 @@ const vl = {
|
|
|
4177
4197
|
|
|
4178
4198
|
/* Button styling */.pie-tool-annotation-toolbar__button.svelte-g8qu62 {display:inline-flex;align-items:center;justify-content:center;gap:0.35rem;padding:0.4rem 0.55rem;border:1px solid var(--pie-button-border, #d1d5db);border-radius:0.4rem;background:var(--pie-button-bg, #fff);color:var(--pie-button-color, var(--pie-text, #111827));cursor:pointer;}.pie-tool-annotation-toolbar__button--icon.svelte-g8qu62 {min-width:2rem;min-height:2rem;padding:0.45rem;}.pie-tool-annotation-toolbar__button.svelte-g8qu62:hover {background:var(--pie-button-hover-bg, #f9fafb);color:var(--pie-button-hover-color, var(--pie-text, #111827));border-color:var(--pie-button-hover-border, #9ca3af);}.pie-tool-annotation-toolbar__button.svelte-g8qu62:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #3f51b5));outline-offset:2px;}.pie-tool-annotation-toolbar__button.svelte-g8qu62:disabled {opacity:0.6;cursor:not-allowed;}.pie-tool-annotation-toolbar__button--warning.svelte-g8qu62 {color:var(--pie-missing-icon, #92400e);}.pie-tool-annotation-toolbar__button--danger.svelte-g8qu62 {color:var(--pie-incorrect-icon, #b91c1c);}.pie-tool-annotation-toolbar__button.svelte-g8qu62 svg:where(.svelte-g8qu62) {width:18px;height:18px;}`
|
|
4179
4199
|
};
|
|
4180
|
-
function
|
|
4181
|
-
zi(e, !0), ps(t,
|
|
4200
|
+
function _l(t, e) {
|
|
4201
|
+
zi(e, !0), ps(t, ml);
|
|
4182
4202
|
let n = Cn(e, "enabled", 7, !0), i = Cn(e, "highlightCoordinator", 7, null), r = Cn(e, "ttsService", 7, null);
|
|
4183
4203
|
const o = typeof window < "u", s = "pie-annotations", l = [
|
|
4184
4204
|
{
|
|
@@ -4409,9 +4429,9 @@ function gl(t, e) {
|
|
|
4409
4429
|
set ttsService(g = null) {
|
|
4410
4430
|
r(g), ln();
|
|
4411
4431
|
}
|
|
4412
|
-
}, di =
|
|
4432
|
+
}, di = gl();
|
|
4413
4433
|
hs("g8qu62", (g) => {
|
|
4414
|
-
var y =
|
|
4434
|
+
var y = cl();
|
|
4415
4435
|
Ve(g, y);
|
|
4416
4436
|
});
|
|
4417
4437
|
var hi = Nn(di);
|
|
@@ -4419,18 +4439,18 @@ function gl(t, e) {
|
|
|
4419
4439
|
var pi = xe(hi, 2);
|
|
4420
4440
|
{
|
|
4421
4441
|
var zr = (g) => {
|
|
4422
|
-
var y =
|
|
4442
|
+
var y = vl(), R = nn(y);
|
|
4423
4443
|
us(R, 17, () => l, as, (le, ae) => {
|
|
4424
|
-
var K =
|
|
4444
|
+
var K = ul(), Zt = nn(K), Ln = nn(Zt, !0);
|
|
4425
4445
|
en(Zt), en(K), rn(() => {
|
|
4426
4446
|
ki(K, `background-color: ${m(ae).hex ?? ""};`), Ri(K, "aria-label", m(ae).label), Ri(K, "title", m(ae).label), Ai(Ln, m(ae).label);
|
|
4427
|
-
}),
|
|
4447
|
+
}), Dt("click", K, () => ui(m(ae).name)), Ve(le, K);
|
|
4428
4448
|
});
|
|
4429
4449
|
var x = xe(R, 2), Qe = xe(x, 2);
|
|
4430
4450
|
{
|
|
4431
4451
|
var Ct = (le) => {
|
|
4432
|
-
var ae =
|
|
4433
|
-
rn(() => K.disabled = m(d)),
|
|
4452
|
+
var ae = fl(), K = xe(Nn(ae), 2);
|
|
4453
|
+
rn(() => K.disabled = m(d)), Dt("click", K, Br), Ve(le, ae);
|
|
4434
4454
|
};
|
|
4435
4455
|
Ft(Qe, (le) => {
|
|
4436
4456
|
r() && le(Ct);
|
|
@@ -4439,11 +4459,11 @@ function gl(t, e) {
|
|
|
4439
4459
|
var Mt = xe(Qe, 2);
|
|
4440
4460
|
{
|
|
4441
4461
|
var Yr = (le) => {
|
|
4442
|
-
var ae =
|
|
4462
|
+
var ae = pl(), K = xe(Nn(ae), 2);
|
|
4443
4463
|
{
|
|
4444
4464
|
var Zt = (Ze) => {
|
|
4445
|
-
var
|
|
4446
|
-
|
|
4465
|
+
var Pt = dl();
|
|
4466
|
+
Dt("click", Pt, qr), Ve(Ze, Pt);
|
|
4447
4467
|
};
|
|
4448
4468
|
Ft(K, (Ze) => {
|
|
4449
4469
|
m(Re) && Ze(Zt);
|
|
@@ -4452,8 +4472,8 @@ function gl(t, e) {
|
|
|
4452
4472
|
var Ln = xe(K, 2);
|
|
4453
4473
|
{
|
|
4454
4474
|
var Kr = (Ze) => {
|
|
4455
|
-
var
|
|
4456
|
-
|
|
4475
|
+
var Pt = hl();
|
|
4476
|
+
Dt("click", Pt, xr), Ve(Ze, Pt);
|
|
4457
4477
|
};
|
|
4458
4478
|
Ft(Ln, (Ze) => {
|
|
4459
4479
|
m(be) && Ze(Kr);
|
|
@@ -4465,7 +4485,7 @@ function gl(t, e) {
|
|
|
4465
4485
|
(m(Re) || m(be)) && le(Yr);
|
|
4466
4486
|
});
|
|
4467
4487
|
}
|
|
4468
|
-
en(y), Vi(y, (le) => k(f, le), () => m(f)), rn(() => ki(y, `left:${m(h).toolbarPosition.x}px; top:${m(h).toolbarPosition.y}px; transform: translate(-50%, -100%);`)),
|
|
4488
|
+
en(y), Vi(y, (le) => k(f, le), () => m(f)), rn(() => ki(y, `left:${m(h).toolbarPosition.x}px; top:${m(h).toolbarPosition.y}px; transform: translate(-50%, -100%);`)), Dt("click", x, () => ui(Ge.UNDERLINE)), Ve(g, y);
|
|
4469
4489
|
};
|
|
4470
4490
|
Ft(pi, (g) => {
|
|
4471
4491
|
m(h).isVisible && g(zr);
|
|
@@ -4476,7 +4496,7 @@ function gl(t, e) {
|
|
|
4476
4496
|
}
|
|
4477
4497
|
Zo(["click"]);
|
|
4478
4498
|
customElements.define("pie-tool-annotation-toolbar", Es(
|
|
4479
|
-
|
|
4499
|
+
_l,
|
|
4480
4500
|
{
|
|
4481
4501
|
enabled: { attribute: "enabled", type: "Boolean" },
|
|
4482
4502
|
highlightCoordinator: { type: "Object" },
|
|
@@ -4487,5 +4507,5 @@ customElements.define("pie-tool-annotation-toolbar", Es(
|
|
|
4487
4507
|
{ mode: "open" }
|
|
4488
4508
|
));
|
|
4489
4509
|
export {
|
|
4490
|
-
|
|
4510
|
+
_l as default
|
|
4491
4511
|
};
|
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.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Text annotation toolbar with highlighting and underlining for PIE assessment player",
|
|
6
6
|
"repository": {
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"unpkg": "./dist/tool-annotation-toolbar.js",
|
|
45
45
|
"jsdelivr": "./dist/tool-annotation-toolbar.js",
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@pie-players/pie-assessment-toolkit": "0.3.
|
|
48
|
-
"@pie-players/pie-players-shared": "0.3.
|
|
47
|
+
"@pie-players/pie-assessment-toolkit": "0.3.2",
|
|
48
|
+
"@pie-players/pie-players-shared": "0.3.2",
|
|
49
49
|
"daisyui": "^5.5.18"
|
|
50
50
|
},
|
|
51
51
|
"types": "./dist/index.d.ts",
|