@pie-players/pie-tool-answer-eliminator 0.3.37 → 0.3.39
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-answer-eliminator.js +65 -65
- package/package.json +4 -4
|
@@ -19,7 +19,7 @@ function gn() {
|
|
|
19
19
|
reject: t
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
var Xs = 1 << 24, re = 1024, le = 2048, Fe = 4096,
|
|
22
|
+
var Xs = 1 << 24, re = 1024, le = 2048, Fe = 4096, Qr = 8192, mn = 16384, Zr = 32768, Cr = 1 << 25, ei = 65536, Js = 1 << 17, Qs = 1 << 18, ut = 1 << 19, _n = 1 << 20, dt = 65536, $r = 1 << 21, Zs = 1 << 22, ti = 1 << 23, nt = /* @__PURE__ */ Symbol("$state"), ri = /* @__PURE__ */ Symbol("legacy props"), yn = /* @__PURE__ */ Symbol("proxy path"), lr = new class extends Error {
|
|
23
23
|
constructor(...t) {
|
|
24
24
|
super(...t), u(this, "name", "StaleReactionError"), u(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
25
25
|
}
|
|
@@ -229,9 +229,9 @@ function b(e, t, r) {
|
|
|
229
229
|
return e.set(S(e, t), r), r;
|
|
230
230
|
}
|
|
231
231
|
var pi, oe = /* @__PURE__ */ new Set(), I = null, Or = null, x = null, Ut = null, ot = !1, zt = !1, Ye = null, Ot = null, vi = 0;
|
|
232
|
-
var jn = 1, Rt = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(),
|
|
232
|
+
var jn = 1, Rt = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Yt = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakSet(), Qe = class gi {
|
|
233
233
|
constructor() {
|
|
234
|
-
ur(this, F), u(this, "id", jn++), u(this, "current", /* @__PURE__ */ new Map()), u(this, "previous", /* @__PURE__ */ new Map()), w(this, Rt, /* @__PURE__ */ new Set()), w(this, gt, /* @__PURE__ */ new Set()), w(this, tt, /* @__PURE__ */ new Set()), w(this, ke, /* @__PURE__ */ new Map()), w(this, ye, /* @__PURE__ */ new Map()), w(this, wt, null), w(this,
|
|
234
|
+
ur(this, F), u(this, "id", jn++), u(this, "current", /* @__PURE__ */ new Map()), u(this, "previous", /* @__PURE__ */ new Map()), w(this, Rt, /* @__PURE__ */ new Set()), w(this, gt, /* @__PURE__ */ new Set()), w(this, tt, /* @__PURE__ */ new Set()), w(this, ke, /* @__PURE__ */ new Map()), w(this, ye, /* @__PURE__ */ new Map()), w(this, wt, null), w(this, J, []), w(this, Yt, []), w(this, Xe, /* @__PURE__ */ new Set()), w(this, Re, /* @__PURE__ */ new Set()), w(this, be, /* @__PURE__ */ new Map()), w(this, Tt, /* @__PURE__ */ new Set()), u(this, "is_fork", !1), w(this, mt, !1), w(this, qe, /* @__PURE__ */ new Set());
|
|
235
235
|
}
|
|
236
236
|
skip_effect(t) {
|
|
237
237
|
a(be, this).has(t) || a(be, this).set(t, {
|
|
@@ -352,10 +352,10 @@ var jn = 1, Rt = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap
|
|
|
352
352
|
r.f ^= re;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
a(
|
|
355
|
+
a(J, this).push(r);
|
|
356
356
|
}
|
|
357
357
|
};
|
|
358
|
-
pi =
|
|
358
|
+
pi = Qe;
|
|
359
359
|
function Xt() {
|
|
360
360
|
return this.is_fork || a(ye, this).size > 0;
|
|
361
361
|
}
|
|
@@ -379,8 +379,8 @@ function dr() {
|
|
|
379
379
|
for (const s of a(Re, this))
|
|
380
380
|
O(s, Fe), this.schedule(s);
|
|
381
381
|
}
|
|
382
|
-
const e = a(
|
|
383
|
-
b(
|
|
382
|
+
const e = a(J, this);
|
|
383
|
+
b(J, this, []), this.apply();
|
|
384
384
|
var t = Ye = [], r = [], i = Ot = [];
|
|
385
385
|
for (const s of e) try {
|
|
386
386
|
S(F, this, mi).call(this, s, t, r);
|
|
@@ -392,7 +392,7 @@ function dr() {
|
|
|
392
392
|
for (const s of i) n.schedule(s);
|
|
393
393
|
}
|
|
394
394
|
if (Ye = null, Ot = null, S(F, this, Xt).call(this) || S(F, this, zn).call(this)) {
|
|
395
|
-
S(F, this,
|
|
395
|
+
S(F, this, Jt).call(this, r), S(F, this, Jt).call(this, t);
|
|
396
396
|
for (const [s, l] of a(be, this)) yi(s, l);
|
|
397
397
|
} else {
|
|
398
398
|
a(ke, this).size === 0 && oe.delete(this), a(Xe, this).clear(), a(Re, this).clear();
|
|
@@ -400,9 +400,9 @@ function dr() {
|
|
|
400
400
|
a(Rt, this).clear(), Or = this, Rr(r), Rr(t), Or = null, a(wt, this)?.resolve();
|
|
401
401
|
}
|
|
402
402
|
var o = I;
|
|
403
|
-
if (a(
|
|
403
|
+
if (a(J, this).length > 0) {
|
|
404
404
|
const s = o ?? (o = this);
|
|
405
|
-
a(
|
|
405
|
+
a(J, s).push(...a(J, this).filter((l) => !a(J, s).includes(l)));
|
|
406
406
|
}
|
|
407
407
|
o !== null && (oe.add(o), S(F, o, dr).call(o)), we && !oe.has(this) && S(F, this, Vn).call(this);
|
|
408
408
|
}
|
|
@@ -411,7 +411,7 @@ function mi(e, t, r) {
|
|
|
411
411
|
for (var i = e.first; i !== null; ) {
|
|
412
412
|
var n = i.f, o = (n & 96) !== 0;
|
|
413
413
|
if (!(o && (n & 1024) !== 0 || (n & 8192) !== 0 || a(be, this).has(i)) && i.fn !== null) {
|
|
414
|
-
o ? i.f ^= re : (n & 4) !== 0 ? t.push(i) : we && (n & 16777224) !== 0 ? r.push(i) : ht(i) && ((n & 16) !== 0 && a(Re, this).add(i),
|
|
414
|
+
o ? i.f ^= re : (n & 4) !== 0 ? t.push(i) : we && (n & 16777224) !== 0 ? r.push(i) : ht(i) && ((n & 16) !== 0 && a(Re, this).add(i), Je(i));
|
|
415
415
|
var s = i.first;
|
|
416
416
|
if (s !== null) {
|
|
417
417
|
i = s;
|
|
@@ -428,7 +428,7 @@ function mi(e, t, r) {
|
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function Jt(e) {
|
|
432
432
|
for (var t = 0; t < e.length; t += 1) fi(e[t], a(Xe, this), a(Re, this));
|
|
433
433
|
}
|
|
434
434
|
function Vn() {
|
|
@@ -447,7 +447,7 @@ function Vn() {
|
|
|
447
447
|
e && d.discard();
|
|
448
448
|
else if (t.length > 0) {
|
|
449
449
|
if (e) for (const f of a(Tt, this)) d.unskip_effect(f, (v) => {
|
|
450
|
-
(v.f & 4194320) !== 0 ? d.schedule(v) : S(F, d,
|
|
450
|
+
(v.f & 4194320) !== 0 ? d.schedule(v) : S(F, d, Jt).call(d, [v]);
|
|
451
451
|
});
|
|
452
452
|
d.activate();
|
|
453
453
|
var n = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
@@ -455,10 +455,10 @@ function Vn() {
|
|
|
455
455
|
o = /* @__PURE__ */ new Map();
|
|
456
456
|
var l = [...d.current.keys()].filter((f) => this.current.has(f) ? this.current.get(f)[0] !== f : !0);
|
|
457
457
|
for (const f of a(Yt, this)) (f.f & 155648) === 0 && fr(f, l, o) && ((f.f & 4194320) !== 0 ? (O(f, le), d.schedule(f)) : a(Xe, d).add(f));
|
|
458
|
-
if (a(
|
|
458
|
+
if (a(J, d).length > 0) {
|
|
459
459
|
d.apply();
|
|
460
|
-
for (var c of a(
|
|
461
|
-
b(
|
|
460
|
+
for (var c of a(J, d)) S(F, d, mi).call(d, c, [], []);
|
|
461
|
+
b(J, d, []);
|
|
462
462
|
}
|
|
463
463
|
d.deactivate();
|
|
464
464
|
}
|
|
@@ -496,7 +496,7 @@ function Rr(e) {
|
|
|
496
496
|
if (t !== 0) {
|
|
497
497
|
for (var r = 0; r < t; ) {
|
|
498
498
|
var i = e[r++];
|
|
499
|
-
if ((i.f & 24576) === 0 && ht(i) && (de = /* @__PURE__ */ new Set(),
|
|
499
|
+
if ((i.f & 24576) === 0 && ht(i) && (de = /* @__PURE__ */ new Set(), Je(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null && Hi(i), de?.size > 0)) {
|
|
500
500
|
xe.clear();
|
|
501
501
|
for (const n of de) {
|
|
502
502
|
if ((n.f & 24576) !== 0) continue;
|
|
@@ -506,7 +506,7 @@ function Rr(e) {
|
|
|
506
506
|
de.has(s) && (de.delete(s), o.push(s)), s = s.parent;
|
|
507
507
|
for (let l = o.length - 1; l >= 0; l--) {
|
|
508
508
|
const c = o[l];
|
|
509
|
-
(c.f & 24576) === 0 &&
|
|
509
|
+
(c.f & 24576) === 0 && Je(c);
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
de.clear();
|
|
@@ -561,22 +561,22 @@ var qn = ei | ut;
|
|
|
561
561
|
function Kn(e, t, r, i) {
|
|
562
562
|
new Un(e, t, r, i);
|
|
563
563
|
}
|
|
564
|
-
var ee = /* @__PURE__ */ new WeakMap(),
|
|
564
|
+
var ee = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Mr = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakSet(), Un = class {
|
|
565
565
|
constructor(e, t, r, i) {
|
|
566
|
-
ur(this, P), u(this, "parent", void 0), u(this, "is_pending", !1), u(this, "transform_error", void 0), w(this, ee, void 0), w(this,
|
|
566
|
+
ur(this, P), u(this, "parent", void 0), u(this, "is_pending", !1), u(this, "transform_error", void 0), w(this, ee, void 0), w(this, Qt, Z ? N : null), w(this, ne, void 0), w(this, lt, void 0), w(this, q, void 0), w(this, se, null), w(this, V, null), w(this, X, null), w(this, Me, null), w(this, ze, 0), w(this, Pe, 0), w(this, _t, !1), w(this, Zt, /* @__PURE__ */ new Set()), w(this, er, /* @__PURE__ */ new Set()), w(this, Ie, null), w(this, Mr, Wn(() => (b(Ie, this, Ht(a(ze, this))), () => {
|
|
567
567
|
b(Ie, this, null);
|
|
568
568
|
}))), b(ee, this, e), b(ne, this, t), b(lt, this, (n) => {
|
|
569
569
|
var o = A;
|
|
570
570
|
o.b = this, o.f |= 128, r(n);
|
|
571
571
|
}), this.parent = A.b, this.transform_error = i ?? this.parent?.transform_error ?? ((n) => n), b(q, this, ho(() => {
|
|
572
572
|
if (Z) {
|
|
573
|
-
const n = a(
|
|
573
|
+
const n = a(Qt, this);
|
|
574
574
|
ni();
|
|
575
575
|
const o = n.data === "[!";
|
|
576
576
|
if (n.data.startsWith("[?")) {
|
|
577
577
|
const s = JSON.parse(n.data.slice(2));
|
|
578
578
|
S(P, this, Xn).call(this, s);
|
|
579
|
-
} else o ? S(P, this,
|
|
579
|
+
} else o ? S(P, this, Jn).call(this) : S(P, this, Yn).call(this);
|
|
580
580
|
} else S(P, this, wi).call(this);
|
|
581
581
|
}, qn)), Z && b(ee, this, N);
|
|
582
582
|
}
|
|
@@ -618,7 +618,7 @@ function Xn(e) {
|
|
|
618
618
|
});
|
|
619
619
|
}));
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function Jn() {
|
|
622
622
|
const e = a(ne, this).pending;
|
|
623
623
|
e && (this.is_pending = !0, b(V, this, De(() => e(a(ee, this)))), Ue(() => {
|
|
624
624
|
var t = b(Me, this, document.createDocumentFragment()), r = Oi();
|
|
@@ -648,7 +648,7 @@ function tr(e) {
|
|
|
648
648
|
var t = A, r = T, i = L;
|
|
649
649
|
Te(a(q, this)), ae(a(q, this)), Lt(a(q, this).ctx);
|
|
650
650
|
try {
|
|
651
|
-
return
|
|
651
|
+
return Qe.ensure(), e();
|
|
652
652
|
} catch (n) {
|
|
653
653
|
return ui(n), null;
|
|
654
654
|
} finally {
|
|
@@ -668,7 +668,7 @@ function Ti(e, t) {
|
|
|
668
668
|
}), a(Me, this) && (a(ee, this).before(a(Me, this)), b(Me, this, null)));
|
|
669
669
|
}
|
|
670
670
|
function Pr(e) {
|
|
671
|
-
a(se, this) && (te(a(se, this)), b(se, this, null)), a(V, this) && (te(a(V, this)), b(V, this, null)), a(X, this) && (te(a(X, this)), b(X, this, null)), Z && (at(a(
|
|
671
|
+
a(se, this) && (te(a(se, this)), b(se, this, null)), a(V, this) && (te(a(V, this)), b(V, this, null)), a(X, this) && (te(a(X, this)), b(X, this, null)), Z && (at(a(Qt, this)), Mn(), at(Pn()));
|
|
672
672
|
var t = a(ne, this).onerror;
|
|
673
673
|
let r = a(ne, this).failed;
|
|
674
674
|
var i = !1, n = !1;
|
|
@@ -734,7 +734,7 @@ function xr(e) {
|
|
|
734
734
|
return we || Di(t), t;
|
|
735
735
|
}
|
|
736
736
|
// @__NO_SIDE_EFFECTS__
|
|
737
|
-
function
|
|
737
|
+
function Qn(e) {
|
|
738
738
|
const t = /* @__PURE__ */ vr(e);
|
|
739
739
|
return t.equals = si, t;
|
|
740
740
|
}
|
|
@@ -771,7 +771,7 @@ function eo(e) {
|
|
|
771
771
|
}
|
|
772
772
|
function Si(e) {
|
|
773
773
|
if (e.effects !== null)
|
|
774
|
-
for (const t of e.effects) t.teardown &&
|
|
774
|
+
for (const t of e.effects) t.teardown && Je(t);
|
|
775
775
|
}
|
|
776
776
|
var rr = /* @__PURE__ */ new Set(), xe = /* @__PURE__ */ new Map();
|
|
777
777
|
var Ii = !1;
|
|
@@ -801,14 +801,14 @@ function to(e, t = !1, r = !0) {
|
|
|
801
801
|
return i;
|
|
802
802
|
}
|
|
803
803
|
function $(e, t, r = !1) {
|
|
804
|
-
T !== null && (!
|
|
804
|
+
T !== null && (!Q || (T.f & 131072) !== 0) && xt() && (T.f & 4325394) !== 0 && (K === null || !Ke.call(K, e)) && $n();
|
|
805
805
|
let i = r ? We(t) : t;
|
|
806
806
|
return Ei(e, i, Ot);
|
|
807
807
|
}
|
|
808
808
|
function Ei(e, t, r = null) {
|
|
809
809
|
if (!e.equals(t)) {
|
|
810
810
|
xe.set(e, fe ? t : e.v);
|
|
811
|
-
var i =
|
|
811
|
+
var i = Qe.ensure();
|
|
812
812
|
if (i.capture(e, t), (e.f & 2) !== 0) {
|
|
813
813
|
const n = e;
|
|
814
814
|
(e.f & 2048) !== 0 && gr(n), x === null && cr(n);
|
|
@@ -820,7 +820,7 @@ function Ei(e, t, r = null) {
|
|
|
820
820
|
function ro() {
|
|
821
821
|
Ii = !1;
|
|
822
822
|
for (const e of rr)
|
|
823
|
-
(e.f & 1024) !== 0 && O(e, Fe), ht(e) &&
|
|
823
|
+
(e.f & 1024) !== 0 && O(e, Fe), ht(e) && Je(e);
|
|
824
824
|
rr.clear();
|
|
825
825
|
}
|
|
826
826
|
function st(e) {
|
|
@@ -1005,7 +1005,7 @@ function lo(e, t) {
|
|
|
1005
1005
|
}
|
|
1006
1006
|
function Be(e, t) {
|
|
1007
1007
|
var r = A;
|
|
1008
|
-
r !== null && (r.f & 8192) !== 0 && (e |=
|
|
1008
|
+
r !== null && (r.f & 8192) !== 0 && (e |= Qr);
|
|
1009
1009
|
var i = {
|
|
1010
1010
|
ctx: L,
|
|
1011
1011
|
deps: null,
|
|
@@ -1024,10 +1024,10 @@ function Be(e, t) {
|
|
|
1024
1024
|
};
|
|
1025
1025
|
I?.register_created_effect(i);
|
|
1026
1026
|
var n = i;
|
|
1027
|
-
if ((e & 4) !== 0) Ye !== null ? Ye.push(i) :
|
|
1027
|
+
if ((e & 4) !== 0) Ye !== null ? Ye.push(i) : Qe.ensure().schedule(i);
|
|
1028
1028
|
else if (t !== null) {
|
|
1029
1029
|
try {
|
|
1030
|
-
|
|
1030
|
+
Je(i);
|
|
1031
1031
|
} catch (s) {
|
|
1032
1032
|
throw te(i), s;
|
|
1033
1033
|
}
|
|
@@ -1040,7 +1040,7 @@ function Be(e, t) {
|
|
|
1040
1040
|
return i;
|
|
1041
1041
|
}
|
|
1042
1042
|
function mr() {
|
|
1043
|
-
return T !== null && !
|
|
1043
|
+
return T !== null && !Q;
|
|
1044
1044
|
}
|
|
1045
1045
|
function Ce(e) {
|
|
1046
1046
|
ao("$effect");
|
|
@@ -1054,14 +1054,14 @@ function Pi(e) {
|
|
|
1054
1054
|
return Be(4 | _n, e);
|
|
1055
1055
|
}
|
|
1056
1056
|
function co(e) {
|
|
1057
|
-
|
|
1057
|
+
Qe.ensure();
|
|
1058
1058
|
const t = Be(64 | ut, e);
|
|
1059
1059
|
return () => {
|
|
1060
1060
|
te(t);
|
|
1061
1061
|
};
|
|
1062
1062
|
}
|
|
1063
1063
|
function uo(e) {
|
|
1064
|
-
|
|
1064
|
+
Qe.ensure();
|
|
1065
1065
|
const t = Be(64 | ut, e);
|
|
1066
1066
|
return (r = {}) => new Promise((i) => {
|
|
1067
1067
|
r.outro ? Nt(t, () => {
|
|
@@ -1143,7 +1143,7 @@ function Nt(e, t, r = !0) {
|
|
|
1143
1143
|
}
|
|
1144
1144
|
function Ni(e, t, r) {
|
|
1145
1145
|
if ((e.f & 8192) === 0) {
|
|
1146
|
-
e.f ^=
|
|
1146
|
+
e.f ^= Qr;
|
|
1147
1147
|
var i = e.nodes && e.nodes.t;
|
|
1148
1148
|
if (i !== null)
|
|
1149
1149
|
for (const l of i) (l.is_global || r) && t.push(l);
|
|
@@ -1168,7 +1168,7 @@ var mo = null, At = !1, fe = !1;
|
|
|
1168
1168
|
function Nr(e) {
|
|
1169
1169
|
fe = e;
|
|
1170
1170
|
}
|
|
1171
|
-
var T = null,
|
|
1171
|
+
var T = null, Q = !1;
|
|
1172
1172
|
function ae(e) {
|
|
1173
1173
|
T = e;
|
|
1174
1174
|
}
|
|
@@ -1212,8 +1212,8 @@ function ji(e, t, r = !0) {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
1214
|
function zi(e) {
|
|
1215
|
-
var t = B, r = z, i = W, n = T, o = K, s = L, l =
|
|
1216
|
-
B = null, z = 0, W = null, T = (d & 96) === 0 ? e : null, K = null, Lt(e.ctx),
|
|
1215
|
+
var t = B, r = z, i = W, n = T, o = K, s = L, l = Q, c = He, d = e.f;
|
|
1216
|
+
B = null, z = 0, W = null, T = (d & 96) === 0 ? e : null, K = null, Lt(e.ctx), Q = !1, He = ++Le, e.ac !== null && (Mi(() => {
|
|
1217
1217
|
e.ac.abort(lr);
|
|
1218
1218
|
}), e.ac = null);
|
|
1219
1219
|
try {
|
|
@@ -1231,7 +1231,7 @@ function zi(e) {
|
|
|
1231
1231
|
((y = h[p]).reactions ?? (y.reactions = [])).push(e);
|
|
1232
1232
|
}
|
|
1233
1233
|
} else !g && h !== null && z < h.length && (ct(e, z), h.length = z);
|
|
1234
|
-
if (xt() && W !== null && !
|
|
1234
|
+
if (xt() && W !== null && !Q && h !== null && (e.f & 6146) === 0) for (p = 0; p < W.length; p++) ji(W[p], e);
|
|
1235
1235
|
if (n !== null && n !== e) {
|
|
1236
1236
|
if (Le++, n.deps !== null) for (let _ = 0; _ < r; _ += 1) n.deps[_].rv = Le;
|
|
1237
1237
|
if (t !== null) for (const _ of t) _.rv = Le;
|
|
@@ -1241,7 +1241,7 @@ function zi(e) {
|
|
|
1241
1241
|
} catch (_) {
|
|
1242
1242
|
return ui(_);
|
|
1243
1243
|
} finally {
|
|
1244
|
-
e.f ^= $r, B = t, z = r, W = i, T = n, K = o, Lt(s),
|
|
1244
|
+
e.f ^= $r, B = t, z = r, W = i, T = n, K = o, Lt(s), Q = l, He = c;
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
1247
1247
|
function yo(e, t) {
|
|
@@ -1263,7 +1263,7 @@ function ct(e, t) {
|
|
|
1263
1263
|
if (r !== null)
|
|
1264
1264
|
for (var i = t; i < r.length; i++) yo(e, r[i]);
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1266
|
+
function Je(e) {
|
|
1267
1267
|
var t = e.f;
|
|
1268
1268
|
if ((t & 16384) === 0) {
|
|
1269
1269
|
O(e, re);
|
|
@@ -1282,7 +1282,7 @@ function Qe(e) {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
function m(e) {
|
|
1284
1284
|
var t = (e.f & 2) !== 0;
|
|
1285
|
-
if (mo?.add(e), T !== null && !
|
|
1285
|
+
if (mo?.add(e), T !== null && !Q && !(A !== null && (A.f & 16384) !== 0) && (K === null || !Ke.call(K, e))) {
|
|
1286
1286
|
var r = T.deps;
|
|
1287
1287
|
if ((T.f & 2097152) !== 0)
|
|
1288
1288
|
e.rv < Le && (e.rv = Le, B === null && r !== null && r[z] === e ? z++ : B === null ? B = [e] : B.push(e));
|
|
@@ -1294,9 +1294,9 @@ function m(e) {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
1296
|
if (0) {
|
|
1297
|
-
if (!
|
|
1297
|
+
if (!Q && reactivity_loss_tracker && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
|
|
1298
1298
|
var o;
|
|
1299
|
-
if (tracing_mode_flag && !
|
|
1299
|
+
if (tracing_mode_flag && !Q && tracing_expressions !== null && T !== null && tracing_expressions.reaction === T && !e.trace) {
|
|
1300
1300
|
if (o)
|
|
1301
1301
|
var s, l;
|
|
1302
1302
|
}
|
|
@@ -1308,7 +1308,7 @@ function m(e) {
|
|
|
1308
1308
|
var d = c.v;
|
|
1309
1309
|
return ((c.f & 1024) === 0 && c.reactions !== null || Gi(c)) && (d = gr(c)), xe.set(c, d), d;
|
|
1310
1310
|
}
|
|
1311
|
-
var f = (c.f & 512) === 0 && !
|
|
1311
|
+
var f = (c.f & 512) === 0 && !Q && T !== null && (At || (T.f & 512) !== 0), v = (c.f & Zr) === 0;
|
|
1312
1312
|
ht(c) && (f && (c.f |= 512), Ai(c)), f && !v && (Si(c), Vi(c));
|
|
1313
1313
|
}
|
|
1314
1314
|
if (x?.has(e)) return x.get(e);
|
|
@@ -1328,11 +1328,11 @@ function Gi(e) {
|
|
|
1328
1328
|
return !1;
|
|
1329
1329
|
}
|
|
1330
1330
|
function Dt(e) {
|
|
1331
|
-
var t =
|
|
1331
|
+
var t = Q;
|
|
1332
1332
|
try {
|
|
1333
|
-
return
|
|
1333
|
+
return Q = !0, e();
|
|
1334
1334
|
} finally {
|
|
1335
|
-
|
|
1335
|
+
Q = t;
|
|
1336
1336
|
}
|
|
1337
1337
|
}
|
|
1338
1338
|
var yt = /* @__PURE__ */ Symbol("events"), bo = /* @__PURE__ */ new Set(), Fr = /* @__PURE__ */ new Set(), Br = null;
|
|
@@ -1641,7 +1641,7 @@ function ge(e, t, r, i) {
|
|
|
1641
1641
|
return arguments.length > 0 ? ((!n || !U || y || g) && f(U ? p() : C), C) : p();
|
|
1642
1642
|
});
|
|
1643
1643
|
}
|
|
1644
|
-
var _ = !1, E = ((r & 1) !== 0 ? vr :
|
|
1644
|
+
var _ = !1, E = ((r & 1) !== 0 ? vr : Qn)(() => (_ = !1, p()));
|
|
1645
1645
|
o && m(E);
|
|
1646
1646
|
var j = A;
|
|
1647
1647
|
return (function(C, U) {
|
|
@@ -1871,7 +1871,7 @@ var Fo = class extends Event {
|
|
|
1871
1871
|
this.host.dispatchEvent(new Fo(this.context, this.host, this.handleValue, this.subscribe));
|
|
1872
1872
|
}
|
|
1873
1873
|
}, Ft = (e) => e, jo = Ft(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.runtimeContext")), na = Ft(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), zo = Ft(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.shellContext")), oa = Ft(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.regionScopeContext"));
|
|
1874
|
-
function
|
|
1874
|
+
function Ji(e, t, r) {
|
|
1875
1875
|
let i = !1;
|
|
1876
1876
|
const n = new Bo(e, {
|
|
1877
1877
|
context: t,
|
|
@@ -1898,10 +1898,10 @@ function Qi(e, t, r) {
|
|
|
1898
1898
|
};
|
|
1899
1899
|
}
|
|
1900
1900
|
function Vo(e, t) {
|
|
1901
|
-
return
|
|
1901
|
+
return Ji(e, jo, t);
|
|
1902
1902
|
}
|
|
1903
1903
|
function Go(e, t) {
|
|
1904
|
-
return
|
|
1904
|
+
return Ji(e, zo, t);
|
|
1905
1905
|
}
|
|
1906
1906
|
function Wo(e, t) {
|
|
1907
1907
|
return Vo(e, t);
|
|
@@ -1917,12 +1917,12 @@ var qr;
|
|
|
1917
1917
|
(function(e) {
|
|
1918
1918
|
e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
|
|
1919
1919
|
})(qr || (qr = {}));
|
|
1920
|
-
function
|
|
1920
|
+
function Qi(e) {
|
|
1921
1921
|
return (...t) => {
|
|
1922
1922
|
console.debug(`[${e}]`, ...t);
|
|
1923
1923
|
};
|
|
1924
1924
|
}
|
|
1925
|
-
var sa =
|
|
1925
|
+
var sa = Qi("I18nService"), Gt = {
|
|
1926
1926
|
assessment: [],
|
|
1927
1927
|
section: [],
|
|
1928
1928
|
item: [],
|
|
@@ -1985,15 +1985,15 @@ function _e(e) {
|
|
|
1985
1985
|
}
|
|
1986
1986
|
return Array.from(t);
|
|
1987
1987
|
}
|
|
1988
|
-
function
|
|
1988
|
+
function Jo(e, t) {
|
|
1989
1989
|
if (e != null) {
|
|
1990
1990
|
if (e === "on" || e === "off") return e;
|
|
1991
|
-
throw new Error(`Invalid tools config at "
|
|
1991
|
+
throw new Error(`Invalid tools config at "${t}": expected "on" or "off", got ${JSON.stringify(e)}.`);
|
|
1992
1992
|
}
|
|
1993
1993
|
}
|
|
1994
|
-
function
|
|
1994
|
+
function Qo(e) {
|
|
1995
1995
|
if (e != null && !Ne(e)) throw new Error('Invalid tools config: expected an object with "policy", "placement", and "providers".');
|
|
1996
|
-
const t = Uo(e?.policy), r = Ko(e?.placement), i = Xo(e?.providers), n =
|
|
1996
|
+
const t = Uo(e?.policy), r = Ko(e?.placement), i = Xo(e?.providers), n = Jo(e?.pnpEnforcement, "pnpEnforcement"), o = {
|
|
1997
1997
|
policy: {
|
|
1998
1998
|
allowed: _e(me(t?.allowed, "policy.allowed")),
|
|
1999
1999
|
blocked: _e(me(t?.blocked, "policy.blocked"))
|
|
@@ -2005,7 +2005,7 @@ function Jo(e) {
|
|
|
2005
2005
|
},
|
|
2006
2006
|
providers: i
|
|
2007
2007
|
};
|
|
2008
|
-
return n && (o.
|
|
2008
|
+
return n && (o.pnpEnforcement = n), o;
|
|
2009
2009
|
}
|
|
2010
2010
|
var Zo = [
|
|
2011
2011
|
"assessment",
|
|
@@ -3603,15 +3603,15 @@ var zs = js(), aa = {
|
|
|
3603
3603
|
itemGlossary: "itemGlossary",
|
|
3604
3604
|
tutorialAvailable: "tutorialAvailable"
|
|
3605
3605
|
}
|
|
3606
|
-
}, la = Object.values(Vs).flatMap((e) => Object.values(e)), ca =
|
|
3606
|
+
}, la = Object.values(Vs).flatMap((e) => Object.values(e)), ca = Qi("ToolCoordinator"), ar;
|
|
3607
3607
|
(function(e) {
|
|
3608
3608
|
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";
|
|
3609
3609
|
})(ar || (ar = {}));
|
|
3610
|
-
var
|
|
3610
|
+
var Jr;
|
|
3611
3611
|
(function(e) {
|
|
3612
3612
|
e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
|
|
3613
|
-
})(
|
|
3614
|
-
var ua =
|
|
3613
|
+
})(Jr || (Jr = {}));
|
|
3614
|
+
var ua = Qo({
|
|
3615
3615
|
policy: {
|
|
3616
3616
|
allowed: [],
|
|
3617
3617
|
blocked: []
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-players/pie-tool-answer-eliminator",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.39",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Answer eliminator tool for PIE assessment player - supports process-of-elimination test-taking strategy",
|
|
6
6
|
"repository": {
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"unpkg": "./dist/tool-answer-eliminator.js",
|
|
46
46
|
"jsdelivr": "./dist/tool-answer-eliminator.js",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@pie-players/pie-assessment-toolkit": "0.3.
|
|
49
|
-
"@pie-players/pie-context": "0.3.
|
|
50
|
-
"@pie-players/pie-players-shared": "0.3.
|
|
48
|
+
"@pie-players/pie-assessment-toolkit": "0.3.39",
|
|
49
|
+
"@pie-players/pie-context": "0.3.39",
|
|
50
|
+
"@pie-players/pie-players-shared": "0.3.39"
|
|
51
51
|
},
|
|
52
52
|
"types": "./dist/index.d.ts",
|
|
53
53
|
"scripts": {
|