@pie-players/pie-tool-theme 0.3.1 → 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-color-scheme.js +178 -158
- package/package.json +5 -5
|
@@ -9,9 +9,9 @@ var Xi;
|
|
|
9
9
|
typeof window < "u" && ((Xi = window.__svelte ?? (window.__svelte = {})).v ?? (Xi.v = /* @__PURE__ */ new Set())).add("5");
|
|
10
10
|
const kn = 1, Tn = 2, In = 16, En = 2, ni = "[", pr = "[!", si = "]", At = {}, j = /* @__PURE__ */ Symbol(), Zi = "http://www.w3.org/1999/xhtml", jr = !1;
|
|
11
11
|
var eo = Array.isArray, Sn = Array.prototype.indexOf, $t = Array.prototype.includes, hr = Array.from, cr = Object.keys, ar = Object.defineProperty, _t = Object.getOwnPropertyDescriptor, An = Object.getOwnPropertyDescriptors, $n = Object.prototype, Rn = Array.prototype, to = Object.getPrototypeOf, Ri = Object.isExtensible;
|
|
12
|
-
const
|
|
12
|
+
const On = () => {
|
|
13
13
|
};
|
|
14
|
-
function
|
|
14
|
+
function Ln(t) {
|
|
15
15
|
for (var e = 0; e < t.length; e++)
|
|
16
16
|
t[e]();
|
|
17
17
|
}
|
|
@@ -21,7 +21,7 @@ function ro() {
|
|
|
21
21
|
});
|
|
22
22
|
return { promise: r, resolve: t, reject: e };
|
|
23
23
|
}
|
|
24
|
-
const F = 2, Ht = 4, vr = 8, io = 1 << 24, He = 16, be = 32, Qe = 64, Fr = 128, le = 512, N = 1024, x = 2048, me = 4096, te = 8192, Fe = 16384, Ct = 32768, Rt = 65536,
|
|
24
|
+
const F = 2, Ht = 4, vr = 8, io = 1 << 24, He = 16, be = 32, Qe = 64, Fr = 128, le = 512, N = 1024, x = 2048, me = 4096, te = 8192, Fe = 16384, Ct = 32768, Rt = 65536, Oi = 1 << 17, oo = 1 << 18, ht = 1 << 19, Vn = 1 << 20, Ge = 1 << 25, ut = 65536, xr = 1 << 21, li = 1 << 22, ze = 1 << 23, ir = /* @__PURE__ */ Symbol("$state"), Mn = /* @__PURE__ */ Symbol("legacy props"), Cn = /* @__PURE__ */ Symbol(""), Ze = new class extends Error {
|
|
25
25
|
constructor() {
|
|
26
26
|
super(...arguments);
|
|
27
27
|
y(this, "name", "StaleReactionError");
|
|
@@ -139,7 +139,7 @@ function co(t) {
|
|
|
139
139
|
return !Yn(t, this.v);
|
|
140
140
|
}
|
|
141
141
|
let Qn = !1, re = null;
|
|
142
|
-
function
|
|
142
|
+
function Ot(t) {
|
|
143
143
|
re = t;
|
|
144
144
|
}
|
|
145
145
|
function ao(t, e = !1, r) {
|
|
@@ -172,7 +172,7 @@ function uo() {
|
|
|
172
172
|
let et = [];
|
|
173
173
|
function po() {
|
|
174
174
|
var t = et;
|
|
175
|
-
et = [],
|
|
175
|
+
et = [], Ln(t);
|
|
176
176
|
}
|
|
177
177
|
function ct(t) {
|
|
178
178
|
if (et.length === 0 && !Ft) {
|
|
@@ -188,14 +188,14 @@ function Jn() {
|
|
|
188
188
|
po();
|
|
189
189
|
}
|
|
190
190
|
function ho(t) {
|
|
191
|
-
var e =
|
|
191
|
+
var e = O;
|
|
192
192
|
if (e === null)
|
|
193
193
|
return E.f |= ze, t;
|
|
194
194
|
if ((e.f & Ct) === 0 && (e.f & Ht) === 0)
|
|
195
195
|
throw t;
|
|
196
|
-
|
|
196
|
+
Lt(t, e);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Lt(t, e) {
|
|
199
199
|
for (; e !== null; ) {
|
|
200
200
|
if ((e.f & Fr) !== 0) {
|
|
201
201
|
if ((e.f & Ct) === 0)
|
|
@@ -230,7 +230,7 @@ function go(t, e, r) {
|
|
|
230
230
|
(t.f & x) !== 0 ? e.add(t) : (t.f & me) !== 0 && r.add(t), vo(t.deps), V(t, N);
|
|
231
231
|
}
|
|
232
232
|
const Xt = /* @__PURE__ */ new Set();
|
|
233
|
-
let
|
|
233
|
+
let L = null, he = null, K = [], _r = null, Hr = !1, Ft = !1;
|
|
234
234
|
var yt, wt, it, kt, Ut, Gt, ot, Ce, Tt, $e, Br, Ur, mo;
|
|
235
235
|
const yi = class yi {
|
|
236
236
|
constructor() {
|
|
@@ -334,7 +334,7 @@ const yi = class yi {
|
|
|
334
334
|
wo(o, n);
|
|
335
335
|
} else {
|
|
336
336
|
for (const o of f(this, yt)) o();
|
|
337
|
-
f(this, yt).clear(), f(this, it) === 0 && U(this, $e, mo).call(this),
|
|
337
|
+
f(this, yt).clear(), f(this, it) === 0 && U(this, $e, mo).call(this), L = null, Li(i), Li(r), f(this, Ut)?.resolve();
|
|
338
338
|
}
|
|
339
339
|
he = null;
|
|
340
340
|
}
|
|
@@ -348,14 +348,14 @@ const yi = class yi {
|
|
|
348
348
|
r !== j && !this.previous.has(e) && this.previous.set(e, r), (e.f & ze) === 0 && (this.current.set(e, e.v), he?.set(e, e.v));
|
|
349
349
|
}
|
|
350
350
|
activate() {
|
|
351
|
-
|
|
351
|
+
L = this, this.apply();
|
|
352
352
|
}
|
|
353
353
|
deactivate() {
|
|
354
|
-
|
|
354
|
+
L === this && (L = null, he = null);
|
|
355
355
|
}
|
|
356
356
|
flush() {
|
|
357
357
|
if (this.activate(), K.length > 0) {
|
|
358
|
-
if (bo(),
|
|
358
|
+
if (bo(), L !== null && L !== this)
|
|
359
359
|
return;
|
|
360
360
|
} else f(this, it) === 0 && this.process([]);
|
|
361
361
|
this.deactivate();
|
|
@@ -399,13 +399,13 @@ const yi = class yi {
|
|
|
399
399
|
return (f(this, Ut) ?? T(this, Ut, ro())).promise;
|
|
400
400
|
}
|
|
401
401
|
static ensure() {
|
|
402
|
-
if (
|
|
403
|
-
const e =
|
|
404
|
-
Xt.add(
|
|
405
|
-
|
|
402
|
+
if (L === null) {
|
|
403
|
+
const e = L = new yi();
|
|
404
|
+
Xt.add(L), Ft || ct(() => {
|
|
405
|
+
L === e && e.flush();
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
|
-
return
|
|
408
|
+
return L;
|
|
409
409
|
}
|
|
410
410
|
apply() {
|
|
411
411
|
}
|
|
@@ -474,7 +474,7 @@ Ur = function(e) {
|
|
|
474
474
|
for (const u of s)
|
|
475
475
|
_o(u, l, c, a);
|
|
476
476
|
if (K.length > 0) {
|
|
477
|
-
|
|
477
|
+
L = n, n.apply();
|
|
478
478
|
for (const u of K)
|
|
479
479
|
U(o = n, $e, Br).call(o, u, [], []);
|
|
480
480
|
n.deactivate();
|
|
@@ -482,7 +482,7 @@ Ur = function(e) {
|
|
|
482
482
|
K = i;
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
|
|
485
|
+
L = null, he = e;
|
|
486
486
|
}
|
|
487
487
|
this.committed = !0, Xt.delete(this);
|
|
488
488
|
};
|
|
@@ -492,7 +492,7 @@ function Pt(t) {
|
|
|
492
492
|
Ft = !0;
|
|
493
493
|
try {
|
|
494
494
|
for (var r; ; ) {
|
|
495
|
-
if (Jn(), K.length === 0 && (
|
|
495
|
+
if (Jn(), K.length === 0 && (L?.flush(), K.length === 0))
|
|
496
496
|
return _r = null, /** @type {T} */
|
|
497
497
|
r;
|
|
498
498
|
bo();
|
|
@@ -521,11 +521,11 @@ function Zn() {
|
|
|
521
521
|
try {
|
|
522
522
|
Hn();
|
|
523
523
|
} catch (t) {
|
|
524
|
-
|
|
524
|
+
Lt(t, _r);
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
let Me = null;
|
|
528
|
-
function
|
|
528
|
+
function Li(t) {
|
|
529
529
|
var e = t.length;
|
|
530
530
|
if (e !== 0) {
|
|
531
531
|
for (var r = 0; r < e; ) {
|
|
@@ -590,7 +590,7 @@ function ve(t) {
|
|
|
590
590
|
for (var e = _r = t; e.parent !== null; ) {
|
|
591
591
|
e = e.parent;
|
|
592
592
|
var r = e.f;
|
|
593
|
-
if (Hr && e ===
|
|
593
|
+
if (Hr && e === O && (r & He) !== 0 && (r & oo) === 0)
|
|
594
594
|
return;
|
|
595
595
|
if ((r & (Qe | be)) !== 0) {
|
|
596
596
|
if ((r & N) === 0) return;
|
|
@@ -671,11 +671,11 @@ class is {
|
|
|
671
671
|
T(this, ne, e), T(this, Ne, r), T(this, nt, (o) => {
|
|
672
672
|
var n = (
|
|
673
673
|
/** @type {Effect} */
|
|
674
|
-
|
|
674
|
+
O
|
|
675
675
|
);
|
|
676
676
|
n.b = this, n.f |= Fr, i(o);
|
|
677
677
|
}), this.parent = /** @type {Effect} */
|
|
678
|
-
|
|
678
|
+
O.b, T(this, Te, hi(() => {
|
|
679
679
|
if (R) {
|
|
680
680
|
const o = (
|
|
681
681
|
/** @type {Comment} */
|
|
@@ -746,7 +746,7 @@ class is {
|
|
|
746
746
|
try {
|
|
747
747
|
n = !0, r?.(e, s), n = !1;
|
|
748
748
|
} catch (l) {
|
|
749
|
-
|
|
749
|
+
Lt(l, f(this, Te) && f(this, Te).parent);
|
|
750
750
|
}
|
|
751
751
|
i && T(this, Ee, U(this, B, or).call(this, () => {
|
|
752
752
|
xe.ensure();
|
|
@@ -754,7 +754,7 @@ class is {
|
|
|
754
754
|
return pe(() => {
|
|
755
755
|
var l = (
|
|
756
756
|
/** @type {Effect} */
|
|
757
|
-
|
|
757
|
+
O
|
|
758
758
|
);
|
|
759
759
|
l.b = this, l.f |= Fr, i(
|
|
760
760
|
f(this, ne),
|
|
@@ -763,7 +763,7 @@ class is {
|
|
|
763
763
|
);
|
|
764
764
|
});
|
|
765
765
|
} catch (l) {
|
|
766
|
-
return
|
|
766
|
+
return Lt(
|
|
767
767
|
l,
|
|
768
768
|
/** @type {Effect} */
|
|
769
769
|
f(this, Te).parent
|
|
@@ -813,14 +813,14 @@ ne = new WeakMap(), zt = new WeakMap(), Ne = new WeakMap(), nt = new WeakMap(),
|
|
|
813
813
|
* @param {() => T} fn
|
|
814
814
|
*/
|
|
815
815
|
or = function(e) {
|
|
816
|
-
var r =
|
|
817
|
-
Ae(f(this, Te)), fe(f(this, Te)),
|
|
816
|
+
var r = O, i = E, o = re;
|
|
817
|
+
Ae(f(this, Te)), fe(f(this, Te)), Ot(f(this, Te).ctx);
|
|
818
818
|
try {
|
|
819
819
|
return e();
|
|
820
820
|
} catch (n) {
|
|
821
821
|
return ho(n), null;
|
|
822
822
|
} finally {
|
|
823
|
-
Ae(r), fe(i),
|
|
823
|
+
Ae(r), fe(i), Ot(o);
|
|
824
824
|
}
|
|
825
825
|
}, /**
|
|
826
826
|
* Updates the pending count associated with the currently visible pending snippet,
|
|
@@ -851,16 +851,16 @@ function os(t, e, r, i) {
|
|
|
851
851
|
i(e.map(o));
|
|
852
852
|
return;
|
|
853
853
|
}
|
|
854
|
-
var s =
|
|
854
|
+
var s = L, l = (
|
|
855
855
|
/** @type {Effect} */
|
|
856
|
-
|
|
856
|
+
O
|
|
857
857
|
), c = ns(), a = n.length === 1 ? n[0].promise : n.length > 1 ? Promise.all(n.map((p) => p.promise)) : null;
|
|
858
858
|
function u(p) {
|
|
859
859
|
c();
|
|
860
860
|
try {
|
|
861
861
|
i(p);
|
|
862
862
|
} catch (v) {
|
|
863
|
-
(l.f & Fe) === 0 &&
|
|
863
|
+
(l.f & Fe) === 0 && Lt(v, l);
|
|
864
864
|
}
|
|
865
865
|
s?.deactivate(), Wr();
|
|
866
866
|
}
|
|
@@ -869,18 +869,18 @@ function os(t, e, r, i) {
|
|
|
869
869
|
return;
|
|
870
870
|
}
|
|
871
871
|
function h() {
|
|
872
|
-
c(), Promise.all(r.map((p) => /* @__PURE__ */ ss(p))).then((p) => u([...e.map(o), ...p])).catch((p) =>
|
|
872
|
+
c(), Promise.all(r.map((p) => /* @__PURE__ */ ss(p))).then((p) => u([...e.map(o), ...p])).catch((p) => Lt(p, l));
|
|
873
873
|
}
|
|
874
874
|
a ? a.then(h) : h();
|
|
875
875
|
}
|
|
876
876
|
function ns() {
|
|
877
|
-
var t =
|
|
877
|
+
var t = O, e = E, r = re, i = L;
|
|
878
878
|
return function(n = !0) {
|
|
879
|
-
Ae(t), fe(e),
|
|
879
|
+
Ae(t), fe(e), Ot(r), n && i?.activate();
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
882
|
function Wr() {
|
|
883
|
-
Ae(null), fe(null),
|
|
883
|
+
Ae(null), fe(null), Ot(null);
|
|
884
884
|
}
|
|
885
885
|
// @__NO_SIDE_EFFECTS__
|
|
886
886
|
function yr(t) {
|
|
@@ -888,7 +888,7 @@ function yr(t) {
|
|
|
888
888
|
/** @type {Derived} */
|
|
889
889
|
E
|
|
890
890
|
) : null;
|
|
891
|
-
return
|
|
891
|
+
return O !== null && (O.f |= ht), {
|
|
892
892
|
ctx: re,
|
|
893
893
|
deps: null,
|
|
894
894
|
effects: null,
|
|
@@ -902,7 +902,7 @@ function yr(t) {
|
|
|
902
902
|
j
|
|
903
903
|
),
|
|
904
904
|
wv: 0,
|
|
905
|
-
parent: r ??
|
|
905
|
+
parent: r ?? O,
|
|
906
906
|
ac: null
|
|
907
907
|
};
|
|
908
908
|
}
|
|
@@ -910,7 +910,7 @@ function yr(t) {
|
|
|
910
910
|
function ss(t, e, r) {
|
|
911
911
|
let i = (
|
|
912
912
|
/** @type {Effect | null} */
|
|
913
|
-
|
|
913
|
+
O
|
|
914
914
|
);
|
|
915
915
|
i === null && Pn();
|
|
916
916
|
var o = (
|
|
@@ -929,14 +929,14 @@ function ss(t, e, r) {
|
|
|
929
929
|
n = a.promise;
|
|
930
930
|
try {
|
|
931
931
|
Promise.resolve(t()).then(a.resolve, a.reject).then(() => {
|
|
932
|
-
u ===
|
|
932
|
+
u === L && u.committed && u.deactivate(), Wr();
|
|
933
933
|
});
|
|
934
934
|
} catch (v) {
|
|
935
935
|
a.reject(v), Wr();
|
|
936
936
|
}
|
|
937
937
|
var u = (
|
|
938
938
|
/** @type {Batch} */
|
|
939
|
-
|
|
939
|
+
L
|
|
940
940
|
);
|
|
941
941
|
if (l) {
|
|
942
942
|
var h = o.is_rendered();
|
|
@@ -1001,7 +1001,7 @@ function as(t) {
|
|
|
1001
1001
|
return null;
|
|
1002
1002
|
}
|
|
1003
1003
|
function ai(t) {
|
|
1004
|
-
var e, r =
|
|
1004
|
+
var e, r = O;
|
|
1005
1005
|
Ae(as(t));
|
|
1006
1006
|
try {
|
|
1007
1007
|
t.f &= ~ut, cs(t), e = zo(t);
|
|
@@ -1012,16 +1012,16 @@ function ai(t) {
|
|
|
1012
1012
|
}
|
|
1013
1013
|
function Io(t) {
|
|
1014
1014
|
var e = ai(t);
|
|
1015
|
-
if (!t.equals(e) && (t.wv = Uo(), (!
|
|
1015
|
+
if (!t.equals(e) && (t.wv = Uo(), (!L?.is_fork || t.deps === null) && (t.v = e, t.deps === null))) {
|
|
1016
1016
|
V(t, N);
|
|
1017
1017
|
return;
|
|
1018
1018
|
}
|
|
1019
|
-
Ye || (he !== null ? (di() ||
|
|
1019
|
+
Ye || (he !== null ? (di() || L?.is_fork) && he.set(t, e) : ci(t));
|
|
1020
1020
|
}
|
|
1021
1021
|
function fs(t) {
|
|
1022
1022
|
if (t.effects !== null)
|
|
1023
1023
|
for (const e of t.effects)
|
|
1024
|
-
(e.teardown || e.ac) && (e.teardown?.(), e.ac?.abort(Ze), e.teardown =
|
|
1024
|
+
(e.teardown || e.ac) && (e.teardown?.(), e.ac?.abort(Ze), e.teardown = On, e.ac = null, Bt(e, 0), vi(e));
|
|
1025
1025
|
}
|
|
1026
1026
|
function Eo(t) {
|
|
1027
1027
|
if (t.effects !== null)
|
|
@@ -1056,7 +1056,7 @@ function Ao(t, e = !1, r = !0) {
|
|
|
1056
1056
|
function C(t, e, r = !1) {
|
|
1057
1057
|
E !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1058
1058
|
// to ensure we error if state is set inside an inspect effect
|
|
1059
|
-
(!ge || (E.f &
|
|
1059
|
+
(!ge || (E.f & Oi) !== 0) && uo() && (E.f & (F | He | li | Oi)) !== 0 && (ae === null || !$t.call(ae, t)) && zn();
|
|
1060
1060
|
let i = r ? qt(e) : e;
|
|
1061
1061
|
return Vt(t, i);
|
|
1062
1062
|
}
|
|
@@ -1072,7 +1072,7 @@ function Vt(t, e) {
|
|
|
1072
1072
|
);
|
|
1073
1073
|
(t.f & x) !== 0 && ai(o), ci(o);
|
|
1074
1074
|
}
|
|
1075
|
-
t.wv = Uo(), $o(t, x),
|
|
1075
|
+
t.wv = Uo(), $o(t, x), O !== null && (O.f & N) !== 0 && (O.f & (be | Qe)) === 0 && (oe === null ? ws([t]) : oe.push(t)), !i.is_fork && Kr.size > 0 && !So && us();
|
|
1076
1076
|
}
|
|
1077
1077
|
return e;
|
|
1078
1078
|
}
|
|
@@ -1179,7 +1179,7 @@ function qt(t) {
|
|
|
1179
1179
|
if (c === ir)
|
|
1180
1180
|
return !0;
|
|
1181
1181
|
var a = r.get(c), u = a !== void 0 && a.v !== j || Reflect.has(l, c);
|
|
1182
|
-
if (a !== void 0 ||
|
|
1182
|
+
if (a !== void 0 || O !== null && (!u || _t(l, c)?.writable)) {
|
|
1183
1183
|
a === void 0 && (a = s(() => {
|
|
1184
1184
|
var p = u ? qt(l[c]) : j, v = /* @__PURE__ */ ee(p);
|
|
1185
1185
|
return v;
|
|
@@ -1234,12 +1234,12 @@ function qt(t) {
|
|
|
1234
1234
|
}
|
|
1235
1235
|
);
|
|
1236
1236
|
}
|
|
1237
|
-
var Vi, Ro,
|
|
1237
|
+
var Vi, Ro, Oo, Lo;
|
|
1238
1238
|
function Yr() {
|
|
1239
1239
|
if (Vi === void 0) {
|
|
1240
1240
|
Vi = window, Ro = /Firefox/.test(navigator.userAgent);
|
|
1241
1241
|
var t = Element.prototype, e = Node.prototype, r = Text.prototype;
|
|
1242
|
-
|
|
1242
|
+
Oo = _t(e, "firstChild").get, Lo = _t(e, "nextSibling").get, Ri(t) && (t.__click = void 0, t.__className = void 0, t.__attributes = null, t.__style = void 0, t.__e = void 0), Ri(r) && (r.__t = void 0);
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
1245
|
function ce(t = "") {
|
|
@@ -1249,14 +1249,14 @@ function ce(t = "") {
|
|
|
1249
1249
|
function Ke(t) {
|
|
1250
1250
|
return (
|
|
1251
1251
|
/** @type {TemplateNode | null} */
|
|
1252
|
-
|
|
1252
|
+
Oo.call(t)
|
|
1253
1253
|
);
|
|
1254
1254
|
}
|
|
1255
1255
|
// @__NO_SIDE_EFFECTS__
|
|
1256
1256
|
function Re(t) {
|
|
1257
1257
|
return (
|
|
1258
1258
|
/** @type {TemplateNode | null} */
|
|
1259
|
-
|
|
1259
|
+
Lo.call(t)
|
|
1260
1260
|
);
|
|
1261
1261
|
}
|
|
1262
1262
|
function H(t, e) {
|
|
@@ -1334,7 +1334,7 @@ function ui(t) {
|
|
|
1334
1334
|
e.nodeValue, e = t.nextSibling;
|
|
1335
1335
|
}
|
|
1336
1336
|
function Co(t) {
|
|
1337
|
-
var e = E, r =
|
|
1337
|
+
var e = E, r = O;
|
|
1338
1338
|
fe(null), Ae(null);
|
|
1339
1339
|
try {
|
|
1340
1340
|
return t();
|
|
@@ -1343,14 +1343,14 @@ function Co(t) {
|
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
1345
|
function ps(t) {
|
|
1346
|
-
|
|
1346
|
+
O === null && (E === null && xn(), Fn()), Ye && jn();
|
|
1347
1347
|
}
|
|
1348
1348
|
function hs(t, e) {
|
|
1349
1349
|
var r = e.last;
|
|
1350
1350
|
r === null ? e.last = e.first = t : (r.next = t, t.prev = r, e.last = t);
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1353
|
-
var i =
|
|
1352
|
+
function Oe(t, e, r) {
|
|
1353
|
+
var i = O;
|
|
1354
1354
|
i !== null && (i.f & te) !== 0 && (t |= te);
|
|
1355
1355
|
var o = {
|
|
1356
1356
|
ctx: re,
|
|
@@ -1390,14 +1390,14 @@ function di() {
|
|
|
1390
1390
|
return E !== null && !ge;
|
|
1391
1391
|
}
|
|
1392
1392
|
function vs(t) {
|
|
1393
|
-
const e =
|
|
1393
|
+
const e = Oe(vr, null, !1);
|
|
1394
1394
|
return V(e, N), e.teardown = t, e;
|
|
1395
1395
|
}
|
|
1396
1396
|
function mt(t) {
|
|
1397
1397
|
ps();
|
|
1398
1398
|
var e = (
|
|
1399
1399
|
/** @type {Effect} */
|
|
1400
|
-
|
|
1400
|
+
O.f
|
|
1401
1401
|
), r = !E && (e & be) !== 0 && (e & Ct) === 0;
|
|
1402
1402
|
if (r) {
|
|
1403
1403
|
var i = (
|
|
@@ -1409,18 +1409,18 @@ function mt(t) {
|
|
|
1409
1409
|
return No(t);
|
|
1410
1410
|
}
|
|
1411
1411
|
function No(t) {
|
|
1412
|
-
return
|
|
1412
|
+
return Oe(Ht | Vn, t, !1);
|
|
1413
1413
|
}
|
|
1414
1414
|
function gs(t) {
|
|
1415
1415
|
xe.ensure();
|
|
1416
|
-
const e =
|
|
1416
|
+
const e = Oe(Qe | ht, t, !0);
|
|
1417
1417
|
return () => {
|
|
1418
1418
|
G(e);
|
|
1419
1419
|
};
|
|
1420
1420
|
}
|
|
1421
1421
|
function ms(t) {
|
|
1422
1422
|
xe.ensure();
|
|
1423
|
-
const e =
|
|
1423
|
+
const e = Oe(Qe | ht, t, !0);
|
|
1424
1424
|
return (r = {}) => new Promise((i) => {
|
|
1425
1425
|
r.outro ? at(e, () => {
|
|
1426
1426
|
G(e), i(void 0);
|
|
@@ -1428,25 +1428,25 @@ function ms(t) {
|
|
|
1428
1428
|
});
|
|
1429
1429
|
}
|
|
1430
1430
|
function Do(t) {
|
|
1431
|
-
return
|
|
1431
|
+
return Oe(Ht, t, !1);
|
|
1432
1432
|
}
|
|
1433
1433
|
function bs(t) {
|
|
1434
|
-
return
|
|
1434
|
+
return Oe(li | ht, t, !0);
|
|
1435
1435
|
}
|
|
1436
1436
|
function pi(t, e = 0) {
|
|
1437
|
-
return
|
|
1437
|
+
return Oe(vr | e, t, !0);
|
|
1438
1438
|
}
|
|
1439
1439
|
function Mi(t, e = [], r = [], i = []) {
|
|
1440
1440
|
os(i, e, r, (o) => {
|
|
1441
|
-
|
|
1441
|
+
Oe(vr, () => t(...o.map(g)), !0);
|
|
1442
1442
|
});
|
|
1443
1443
|
}
|
|
1444
1444
|
function hi(t, e = 0) {
|
|
1445
|
-
var r =
|
|
1445
|
+
var r = Oe(He | e, t, !0);
|
|
1446
1446
|
return r;
|
|
1447
1447
|
}
|
|
1448
1448
|
function pe(t) {
|
|
1449
|
-
return
|
|
1449
|
+
return Oe(be | ht, t, !0);
|
|
1450
1450
|
}
|
|
1451
1451
|
function Po(t) {
|
|
1452
1452
|
var e = t.teardown;
|
|
@@ -1562,9 +1562,9 @@ let E = null, ge = !1;
|
|
|
1562
1562
|
function fe(t) {
|
|
1563
1563
|
E = t;
|
|
1564
1564
|
}
|
|
1565
|
-
let
|
|
1565
|
+
let O = null;
|
|
1566
1566
|
function Ae(t) {
|
|
1567
|
-
|
|
1567
|
+
O = t;
|
|
1568
1568
|
}
|
|
1569
1569
|
let ae = null;
|
|
1570
1570
|
function Ho(t) {
|
|
@@ -1626,7 +1626,7 @@ function zo(t) {
|
|
|
1626
1626
|
var w;
|
|
1627
1627
|
var e = Y, r = J, i = oe, o = E, n = ae, s = re, l = ge, c = ft, a = t.f;
|
|
1628
1628
|
Y = /** @type {null | Value[]} */
|
|
1629
|
-
null, J = 0, oe = null, E = (a & (be | Qe)) === 0 ? t : null, ae = null,
|
|
1629
|
+
null, J = 0, oe = null, E = (a & (be | Qe)) === 0 ? t : null, ae = null, Ot(t.ctx), ge = !1, ft = ++tt, t.ac !== null && (Co(() => {
|
|
1630
1630
|
t.ac.abort(Ze);
|
|
1631
1631
|
}), t.ac = null);
|
|
1632
1632
|
try {
|
|
@@ -1636,7 +1636,7 @@ function zo(t) {
|
|
|
1636
1636
|
t.fn
|
|
1637
1637
|
), h = u();
|
|
1638
1638
|
t.f |= Ct;
|
|
1639
|
-
var p = t.deps, v =
|
|
1639
|
+
var p = t.deps, v = L?.is_fork;
|
|
1640
1640
|
if (Y !== null) {
|
|
1641
1641
|
var d;
|
|
1642
1642
|
if (v || Bt(t, J), p !== null && J > 0)
|
|
@@ -1670,7 +1670,7 @@ function zo(t) {
|
|
|
1670
1670
|
} catch (b) {
|
|
1671
1671
|
return ho(b);
|
|
1672
1672
|
} finally {
|
|
1673
|
-
t.f ^= xr, Y = e, J = r, oe = i, E = o, ae = n,
|
|
1673
|
+
t.f ^= xr, Y = e, J = r, oe = i, E = o, ae = n, Ot(s), ge = l, ft = c;
|
|
1674
1674
|
}
|
|
1675
1675
|
}
|
|
1676
1676
|
function ks(t, e) {
|
|
@@ -1703,8 +1703,8 @@ function Mt(t) {
|
|
|
1703
1703
|
var e = t.f;
|
|
1704
1704
|
if ((e & Fe) === 0) {
|
|
1705
1705
|
V(t, N);
|
|
1706
|
-
var r =
|
|
1707
|
-
|
|
1706
|
+
var r = O, i = nr;
|
|
1707
|
+
O = t, nr = !0;
|
|
1708
1708
|
try {
|
|
1709
1709
|
(e & (He | io)) !== 0 ? _s(t) : vi(t), Po(t);
|
|
1710
1710
|
var o = zo(t);
|
|
@@ -1712,14 +1712,14 @@ function Mt(t) {
|
|
|
1712
1712
|
var n;
|
|
1713
1713
|
jr && Qn && (t.f & x) !== 0 && t.deps;
|
|
1714
1714
|
} finally {
|
|
1715
|
-
nr = i,
|
|
1715
|
+
nr = i, O = r;
|
|
1716
1716
|
}
|
|
1717
1717
|
}
|
|
1718
1718
|
}
|
|
1719
1719
|
function g(t) {
|
|
1720
1720
|
var e = t.f, r = (e & F) !== 0;
|
|
1721
1721
|
if (E !== null && !ge) {
|
|
1722
|
-
var i =
|
|
1722
|
+
var i = O !== null && (O.f & Fe) !== 0;
|
|
1723
1723
|
if (!i && (ae === null || !$t.call(ae, t))) {
|
|
1724
1724
|
var o = E.deps;
|
|
1725
1725
|
if ((E.f & xr) !== 0)
|
|
@@ -1822,7 +1822,7 @@ function Pi(t) {
|
|
|
1822
1822
|
return n || r;
|
|
1823
1823
|
}
|
|
1824
1824
|
});
|
|
1825
|
-
var u = E, h =
|
|
1825
|
+
var u = E, h = O;
|
|
1826
1826
|
fe(null), Ae(null);
|
|
1827
1827
|
try {
|
|
1828
1828
|
for (var p, v = []; n !== null; ) {
|
|
@@ -1873,7 +1873,7 @@ function Qo(t, e = !1) {
|
|
|
1873
1873
|
function pt(t, e) {
|
|
1874
1874
|
var r = (
|
|
1875
1875
|
/** @type {Effect} */
|
|
1876
|
-
|
|
1876
|
+
O
|
|
1877
1877
|
);
|
|
1878
1878
|
r.nodes === null && (r.nodes = { start: t, end: e, a: null, t: null });
|
|
1879
1879
|
}
|
|
@@ -1930,7 +1930,7 @@ function bt(t, e) {
|
|
|
1930
1930
|
if (R) {
|
|
1931
1931
|
var r = (
|
|
1932
1932
|
/** @type {Effect & { nodes: EffectNodes }} */
|
|
1933
|
-
|
|
1933
|
+
O
|
|
1934
1934
|
);
|
|
1935
1935
|
((r.f & Ct) === 0 || r.nodes.end === null) && (r.nodes.end = A), br();
|
|
1936
1936
|
return;
|
|
@@ -1941,7 +1941,7 @@ function bt(t, e) {
|
|
|
1941
1941
|
);
|
|
1942
1942
|
}
|
|
1943
1943
|
const Rs = ["touchstart", "touchmove"];
|
|
1944
|
-
function
|
|
1944
|
+
function Os(t) {
|
|
1945
1945
|
return Rs.includes(t);
|
|
1946
1946
|
}
|
|
1947
1947
|
function er(t, e) {
|
|
@@ -1951,7 +1951,7 @@ function er(t, e) {
|
|
|
1951
1951
|
function Jo(t, e) {
|
|
1952
1952
|
return Xo(t, e);
|
|
1953
1953
|
}
|
|
1954
|
-
function
|
|
1954
|
+
function Ls(t, e) {
|
|
1955
1955
|
Yr(), e.intro = e.intro ?? !1;
|
|
1956
1956
|
const r = e.target, i = R, o = A;
|
|
1957
1957
|
try {
|
|
@@ -1998,7 +1998,7 @@ function Xo(t, { target: e, anchor: r, props: i = {}, events: o, context: n, int
|
|
|
1998
1998
|
/** @type {TemplateNode} */
|
|
1999
1999
|
p,
|
|
2000
2000
|
null
|
|
2001
|
-
), l = t(p, i) || {}, R && (
|
|
2001
|
+
), l = t(p, i) || {}, R && (O.nodes.end = A, A === null || A.nodeType !== Yt || /** @type {Comment} */
|
|
2002
2002
|
A.data !== si))
|
|
2003
2003
|
throw mr(), At;
|
|
2004
2004
|
fo();
|
|
@@ -2009,7 +2009,7 @@ function Xo(t, { target: e, anchor: r, props: i = {}, events: o, context: n, int
|
|
|
2009
2009
|
var d = p[v];
|
|
2010
2010
|
if (!u.has(d)) {
|
|
2011
2011
|
u.add(d);
|
|
2012
|
-
var w =
|
|
2012
|
+
var w = Os(d);
|
|
2013
2013
|
for (const S of [e, document]) {
|
|
2014
2014
|
var b = tr.get(S);
|
|
2015
2015
|
b === void 0 && (b = /* @__PURE__ */ new Map(), tr.set(S, b));
|
|
@@ -2086,7 +2086,7 @@ class Ms {
|
|
|
2086
2086
|
I(this, Kt, () => {
|
|
2087
2087
|
var e = (
|
|
2088
2088
|
/** @type {Batch} */
|
|
2089
|
-
|
|
2089
|
+
L
|
|
2090
2090
|
);
|
|
2091
2091
|
if (f(this, de).has(e)) {
|
|
2092
2092
|
var r = (
|
|
@@ -2138,7 +2138,7 @@ class Ms {
|
|
|
2138
2138
|
ensure(e, r) {
|
|
2139
2139
|
var i = (
|
|
2140
2140
|
/** @type {Batch} */
|
|
2141
|
-
|
|
2141
|
+
L
|
|
2142
2142
|
), o = Mo();
|
|
2143
2143
|
if (r && !f(this, Se).has(e) && !f(this, Z).has(e))
|
|
2144
2144
|
if (o) {
|
|
@@ -2268,7 +2268,7 @@ function Ds(t, e, r, i, o, n = null) {
|
|
|
2268
2268
|
}
|
|
2269
2269
|
for (var D = /* @__PURE__ */ new Set(), z = (
|
|
2270
2270
|
/** @type {Batch} */
|
|
2271
|
-
|
|
2271
|
+
L
|
|
2272
2272
|
), ye = Mo(), we = 0; we < b; we += 1) {
|
|
2273
2273
|
R && A.nodeType === Yt && /** @type {Comment} */
|
|
2274
2274
|
A.data === si && (s = /** @type {Comment} */
|
|
@@ -2507,7 +2507,7 @@ function rr(t, e, r, i) {
|
|
|
2507
2507
|
};
|
|
2508
2508
|
var a = !1, u = /* @__PURE__ */ yr(() => (a = !1, c())), h = (
|
|
2509
2509
|
/** @type {Effect} */
|
|
2510
|
-
|
|
2510
|
+
O
|
|
2511
2511
|
);
|
|
2512
2512
|
return (
|
|
2513
2513
|
/** @type {() => V} */
|
|
@@ -2553,7 +2553,7 @@ class Qs {
|
|
|
2553
2553
|
}
|
|
2554
2554
|
}
|
|
2555
2555
|
);
|
|
2556
|
-
T(this, se, (e.hydrate ?
|
|
2556
|
+
T(this, se, (e.hydrate ? Ls : Jo)(e.component, {
|
|
2557
2557
|
target: e.target,
|
|
2558
2558
|
anchor: e.anchor,
|
|
2559
2559
|
props: o,
|
|
@@ -3368,7 +3368,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3368
3368
|
}, _l = (t, e) => {
|
|
3369
3369
|
const r = e?.toolTagMap?.[t] ?? rn[t] ?? t;
|
|
3370
3370
|
return bl(r, `tool component tag for "${t}"`);
|
|
3371
|
-
}, yl = (t) => document.createElement(t),
|
|
3371
|
+
}, yl = (t) => document.createElement(t), Le = (t, e, r, i) => {
|
|
3372
3372
|
const o = _l(t, i), s = i?.toolComponentFactories?.[t] ?? i?.toolComponentFactory;
|
|
3373
3373
|
return s ? s({ toolId: t, tagName: o, context: e, toolbarContext: r }) : yl(o);
|
|
3374
3374
|
}, wl = {
|
|
@@ -3400,7 +3400,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3400
3400
|
return wr(t);
|
|
3401
3401
|
},
|
|
3402
3402
|
renderToolbar(t, e) {
|
|
3403
|
-
const r = _e(this.toolId, e.scope.level, e.scope.scopeId), i = e.componentOverrides, o =
|
|
3403
|
+
const r = _e(this.toolId, e.scope.level, e.scope.scopeId), i = e.componentOverrides, o = Le(this.toolId, t, e, i);
|
|
3404
3404
|
o.setAttribute("tool-id", r);
|
|
3405
3405
|
const n = {
|
|
3406
3406
|
toolId: this.toolId,
|
|
@@ -3591,7 +3591,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3591
3591
|
tooltip: "Ruler",
|
|
3592
3592
|
onClick: () => e.toggleTool(this.toolId),
|
|
3593
3593
|
active: e.isToolVisible(r)
|
|
3594
|
-
}, o = e.componentOverrides ?? {}, n =
|
|
3594
|
+
}, o = e.componentOverrides ?? {}, n = Le(this.toolId, t, e, o);
|
|
3595
3595
|
return n.setAttribute("tool-id", r), {
|
|
3596
3596
|
toolId: this.toolId,
|
|
3597
3597
|
button: i,
|
|
@@ -3637,7 +3637,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3637
3637
|
tooltip: "Protractor",
|
|
3638
3638
|
onClick: () => e.toggleTool(this.toolId),
|
|
3639
3639
|
active: e.isToolVisible(r)
|
|
3640
|
-
}, o = e.componentOverrides ?? {}, n =
|
|
3640
|
+
}, o = e.componentOverrides ?? {}, n = Le(this.toolId, t, e, o);
|
|
3641
3641
|
return n.setAttribute("tool-id", r), {
|
|
3642
3642
|
toolId: this.toolId,
|
|
3643
3643
|
button: i,
|
|
@@ -3678,7 +3678,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3678
3678
|
return ul(t);
|
|
3679
3679
|
},
|
|
3680
3680
|
renderToolbar(t, e) {
|
|
3681
|
-
const r = _e(this.toolId, e.scope.level, e.scope.scopeId), i = e.componentOverrides ?? {}, o =
|
|
3681
|
+
const r = _e(this.toolId, e.scope.level, e.scope.scopeId), i = e.componentOverrides ?? {}, o = Le(this.toolId, t, e, i);
|
|
3682
3682
|
o.setAttribute("tool-id", r), o.setAttribute("strategy", "strikethrough"), o.setAttribute("button-alignment", "inline");
|
|
3683
3683
|
const n = {
|
|
3684
3684
|
toolId: this.toolId,
|
|
@@ -3732,7 +3732,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3732
3732
|
tooltip: "Highlight",
|
|
3733
3733
|
onClick: () => e.toggleTool(this.toolId),
|
|
3734
3734
|
active: e.isToolVisible(r)
|
|
3735
|
-
}, o = e.componentOverrides ?? {}, n =
|
|
3735
|
+
}, o = e.componentOverrides ?? {}, n = Le(this.toolId, t, e, o);
|
|
3736
3736
|
return n.setAttribute("tool-id", r), {
|
|
3737
3737
|
toolId: this.toolId,
|
|
3738
3738
|
button: i,
|
|
@@ -3784,7 +3784,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3784
3784
|
tooltip: "Line Reader",
|
|
3785
3785
|
onClick: () => e.toggleTool(this.toolId),
|
|
3786
3786
|
active: e.isToolVisible(r)
|
|
3787
|
-
}, o = e.componentOverrides ?? {}, n =
|
|
3787
|
+
}, o = e.componentOverrides ?? {}, n = Le(this.toolId, t, e, o);
|
|
3788
3788
|
return n.setAttribute("tool-id", r), {
|
|
3789
3789
|
toolId: this.toolId,
|
|
3790
3790
|
button: i,
|
|
@@ -3840,7 +3840,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3840
3840
|
tooltip: "Theme",
|
|
3841
3841
|
onClick: () => e.toggleTool(this.toolId),
|
|
3842
3842
|
active: e.isToolVisible(r)
|
|
3843
|
-
}, o = e.componentOverrides ?? {}, n =
|
|
3843
|
+
}, o = e.componentOverrides ?? {}, n = Le(this.toolId, t, e, o);
|
|
3844
3844
|
return n.setAttribute("tool-id", r), {
|
|
3845
3845
|
toolId: this.toolId,
|
|
3846
3846
|
button: i,
|
|
@@ -3855,7 +3855,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3855
3855
|
}
|
|
3856
3856
|
};
|
|
3857
3857
|
}
|
|
3858
|
-
}, Rl = $l,
|
|
3858
|
+
}, Rl = $l, Ol = {
|
|
3859
3859
|
toolId: "annotationToolbar",
|
|
3860
3860
|
name: "Highlighter",
|
|
3861
3861
|
description: "Highlight and annotate text",
|
|
@@ -3894,7 +3894,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3894
3894
|
tooltip: "Highlight",
|
|
3895
3895
|
onClick: () => e.toggleTool(this.toolId),
|
|
3896
3896
|
active: e.isToolVisible(r)
|
|
3897
|
-
}, o = e.componentOverrides ?? {}, n =
|
|
3897
|
+
}, o = e.componentOverrides ?? {}, n = Le(this.toolId, t, e, o);
|
|
3898
3898
|
return n.setAttribute("tool-id", r), {
|
|
3899
3899
|
toolId: this.toolId,
|
|
3900
3900
|
button: i,
|
|
@@ -3909,7 +3909,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3909
3909
|
}
|
|
3910
3910
|
};
|
|
3911
3911
|
}
|
|
3912
|
-
},
|
|
3912
|
+
}, Ll = {
|
|
3913
3913
|
toolId: "graph",
|
|
3914
3914
|
name: "Graph",
|
|
3915
3915
|
description: "Graphing calculator and coordinate plane",
|
|
@@ -3944,7 +3944,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3944
3944
|
tooltip: "Graph",
|
|
3945
3945
|
onClick: () => e.toggleTool(this.toolId),
|
|
3946
3946
|
active: e.isToolVisible(r)
|
|
3947
|
-
}, o = e.componentOverrides ?? {}, n =
|
|
3947
|
+
}, o = e.componentOverrides ?? {}, n = Le(this.toolId, t, e, o);
|
|
3948
3948
|
return n.setAttribute("tool-id", r), {
|
|
3949
3949
|
toolId: this.toolId,
|
|
3950
3950
|
button: i,
|
|
@@ -3992,7 +3992,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3992
3992
|
tooltip: "Periodic Table",
|
|
3993
3993
|
onClick: () => e.toggleTool(this.toolId),
|
|
3994
3994
|
active: e.isToolVisible(r)
|
|
3995
|
-
}, o = e.componentOverrides ?? {}, n =
|
|
3995
|
+
}, o = e.componentOverrides ?? {}, n = Le(this.toolId, t, e, o);
|
|
3996
3996
|
return n.setAttribute("tool-id", r), {
|
|
3997
3997
|
toolId: this.toolId,
|
|
3998
3998
|
button: i,
|
|
@@ -4007,8 +4007,20 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
4007
4007
|
}
|
|
4008
4008
|
};
|
|
4009
4009
|
}
|
|
4010
|
-
}
|
|
4011
|
-
|
|
4010
|
+
}, Ml = [
|
|
4011
|
+
wl,
|
|
4012
|
+
kl,
|
|
4013
|
+
Tl,
|
|
4014
|
+
Il,
|
|
4015
|
+
El,
|
|
4016
|
+
Sl,
|
|
4017
|
+
Al,
|
|
4018
|
+
Rl,
|
|
4019
|
+
Ol,
|
|
4020
|
+
Ll,
|
|
4021
|
+
Vl
|
|
4022
|
+
];
|
|
4023
|
+
function Cl(t = {}) {
|
|
4012
4024
|
const e = new cl(), r = {
|
|
4013
4025
|
toolTagMap: {
|
|
4014
4026
|
...rn,
|
|
@@ -4017,17 +4029,25 @@ function Ml(t = {}) {
|
|
|
4017
4029
|
toolComponentFactory: t.toolComponentFactory,
|
|
4018
4030
|
toolComponentFactories: t.toolComponentFactories
|
|
4019
4031
|
}, i = (o) => t.overrides?.[o.toolId] || o;
|
|
4020
|
-
return
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4032
|
+
return t.includePackagedTools && Nl(e, {
|
|
4033
|
+
toolIds: t.toolIds,
|
|
4034
|
+
applyOverrides: i
|
|
4035
|
+
}), t.toolModuleLoaders && Object.keys(t.toolModuleLoaders).length > 0 && e.setToolModuleLoaders(t.toolModuleLoaders), e.setComponentOverrides(r), e;
|
|
4036
|
+
}
|
|
4037
|
+
function Nl(t, e = {}) {
|
|
4038
|
+
const r = e.toolIds && e.toolIds.length > 0 ? new Set(e.toolIds) : null, i = e.applyOverrides || ((o) => o);
|
|
4039
|
+
for (const o of Ml)
|
|
4040
|
+
r && !r.has(o.toolId) || t.register(i(o));
|
|
4041
|
+
}
|
|
4042
|
+
function Dl() {
|
|
4043
|
+
const t = Cl(), e = /* @__PURE__ */ new Set();
|
|
4024
4044
|
for (const r of t.getAllTools())
|
|
4025
4045
|
for (const i of r.pnpSupportIds || [])
|
|
4026
4046
|
e.add(i);
|
|
4027
4047
|
return [...e].sort();
|
|
4028
4048
|
}
|
|
4029
|
-
|
|
4030
|
-
const
|
|
4049
|
+
Dl();
|
|
4050
|
+
const Pl = {
|
|
4031
4051
|
/**
|
|
4032
4052
|
* Visual accessibility features
|
|
4033
4053
|
* For students with low vision, color blindness, or visual processing needs
|
|
@@ -4198,7 +4218,7 @@ const Nl = {
|
|
|
4198
4218
|
tutorialAvailable: "tutorialAvailable"
|
|
4199
4219
|
}
|
|
4200
4220
|
};
|
|
4201
|
-
Object.values(
|
|
4221
|
+
Object.values(Pl).flatMap((t) => Object.values(t));
|
|
4202
4222
|
var Zr;
|
|
4203
4223
|
(function(t) {
|
|
4204
4224
|
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";
|
|
@@ -4207,10 +4227,10 @@ var Ui;
|
|
|
4207
4227
|
(function(t) {
|
|
4208
4228
|
t.IDLE = "idle", t.LOADING = "loading", t.PLAYING = "playing", t.PAUSED = "paused", t.ERROR = "error";
|
|
4209
4229
|
})(Ui || (Ui = {}));
|
|
4210
|
-
function
|
|
4230
|
+
function ql(t) {
|
|
4211
4231
|
return t === "light" || t === "dark" || t === "auto";
|
|
4212
4232
|
}
|
|
4213
|
-
function
|
|
4233
|
+
function jl(t) {
|
|
4214
4234
|
return t === "self" || t === "document";
|
|
4215
4235
|
}
|
|
4216
4236
|
function ei(t) {
|
|
@@ -4225,7 +4245,7 @@ function ei(t) {
|
|
|
4225
4245
|
} else typeof i == "number" && (e[r] = String(i));
|
|
4226
4246
|
return e;
|
|
4227
4247
|
}
|
|
4228
|
-
const
|
|
4248
|
+
const Fl = [
|
|
4229
4249
|
{
|
|
4230
4250
|
id: "default",
|
|
4231
4251
|
name: "Default",
|
|
@@ -4419,17 +4439,17 @@ const ql = [
|
|
|
4419
4439
|
},
|
|
4420
4440
|
preview: { bg: "#333333", text: "#e0e0e0", primary: "#aaaaaa" }
|
|
4421
4441
|
}
|
|
4422
|
-
], ti = new Map(
|
|
4423
|
-
function
|
|
4442
|
+
], ti = new Map(Fl.map((t) => [t.id, t])), on = /* @__PURE__ */ new Map();
|
|
4443
|
+
function xl() {
|
|
4424
4444
|
return [...ti.values(), ...on.values()];
|
|
4425
4445
|
}
|
|
4426
|
-
function
|
|
4446
|
+
function Hl(t) {
|
|
4427
4447
|
return t ? on.get(t) ?? ti.get(t) : ti.get("default");
|
|
4428
4448
|
}
|
|
4429
|
-
function
|
|
4430
|
-
return
|
|
4449
|
+
function Bl(t) {
|
|
4450
|
+
return Hl(t)?.variables ?? {};
|
|
4431
4451
|
}
|
|
4432
|
-
const
|
|
4452
|
+
const Ul = {
|
|
4433
4453
|
"--pie-text": "black",
|
|
4434
4454
|
"--pie-disabled": "grey",
|
|
4435
4455
|
"--pie-disabled-secondary": "#ababab",
|
|
@@ -4477,7 +4497,7 @@ const Hl = {
|
|
|
4477
4497
|
"--pie-button-hover-color": "#111827",
|
|
4478
4498
|
"--pie-button-active-bg": "#f3f4f6",
|
|
4479
4499
|
"--pie-button-focus-outline": "#3b82f6"
|
|
4480
|
-
},
|
|
4500
|
+
}, Gl = {
|
|
4481
4501
|
"--pie-text": "#ffffff",
|
|
4482
4502
|
"--pie-disabled": "#999999",
|
|
4483
4503
|
"--pie-disabled-secondary": "#777777",
|
|
@@ -4534,7 +4554,7 @@ function Ve(t) {
|
|
|
4534
4554
|
if (!(!t.left || !t.right))
|
|
4535
4555
|
return `color-mix(in srgb, ${t.left} ${t.leftWeight}, ${t.right})`;
|
|
4536
4556
|
}
|
|
4537
|
-
function
|
|
4557
|
+
function zl(t) {
|
|
4538
4558
|
const e = (r) => lr(t.getPropertyValue(r));
|
|
4539
4559
|
return ei({
|
|
4540
4560
|
"--pie-background": e("--color-base-100"),
|
|
@@ -4629,11 +4649,11 @@ const Gi = {
|
|
|
4629
4649
|
return !!(lr(e.getPropertyValue("--color-base-100")) || lr(e.getPropertyValue("--color-base-content")) || lr(e.getPropertyValue("--color-primary")));
|
|
4630
4650
|
},
|
|
4631
4651
|
read(t) {
|
|
4632
|
-
return
|
|
4652
|
+
return zl(getComputedStyle(t));
|
|
4633
4653
|
}
|
|
4634
4654
|
};
|
|
4635
4655
|
ri.set(Gi.id, Gi);
|
|
4636
|
-
function
|
|
4656
|
+
function Wl(t) {
|
|
4637
4657
|
const e = t.provider?.trim() || "auto", r = (o) => {
|
|
4638
4658
|
if (e !== "auto") {
|
|
4639
4659
|
const n = ri.get(e);
|
|
@@ -4646,7 +4666,7 @@ function Gl(t) {
|
|
|
4646
4666
|
}, i = r(t.target);
|
|
4647
4667
|
return Object.keys(i).length > 0 ? i : typeof document < "u" && t.target !== document.documentElement ? r(document.documentElement) : {};
|
|
4648
4668
|
}
|
|
4649
|
-
const
|
|
4669
|
+
const Kl = typeof HTMLElement > "u" ? class {
|
|
4650
4670
|
} : HTMLElement;
|
|
4651
4671
|
function ii(t) {
|
|
4652
4672
|
if (!t)
|
|
@@ -4664,7 +4684,7 @@ function ii(t) {
|
|
|
4664
4684
|
r.startsWith("--") && (typeof i == "string" ? e[r] = i : typeof i == "number" && (e[r] = String(i)));
|
|
4665
4685
|
return e;
|
|
4666
4686
|
}
|
|
4667
|
-
class
|
|
4687
|
+
class Yl extends Kl {
|
|
4668
4688
|
constructor() {
|
|
4669
4689
|
super(...arguments);
|
|
4670
4690
|
y(this, "mediaQuery", null);
|
|
@@ -4677,14 +4697,14 @@ class Wl extends zl {
|
|
|
4677
4697
|
}
|
|
4678
4698
|
get theme() {
|
|
4679
4699
|
const r = this.getAttribute("theme");
|
|
4680
|
-
return
|
|
4700
|
+
return ql(r) ? r : "light";
|
|
4681
4701
|
}
|
|
4682
4702
|
set theme(r) {
|
|
4683
4703
|
this.setAttribute("theme", r);
|
|
4684
4704
|
}
|
|
4685
4705
|
get scope() {
|
|
4686
4706
|
const r = this.getAttribute("scope");
|
|
4687
|
-
return
|
|
4707
|
+
return jl(r) ? r : "self";
|
|
4688
4708
|
}
|
|
4689
4709
|
set scope(r) {
|
|
4690
4710
|
this.setAttribute("scope", r);
|
|
@@ -4724,10 +4744,10 @@ class Wl extends zl {
|
|
|
4724
4744
|
return;
|
|
4725
4745
|
const { effectiveTheme: r, dataTheme: i } = this.resolveThemeState(), o = this.getTarget();
|
|
4726
4746
|
o.setAttribute("data-theme", i), this.scheme && this.scheme !== "default" ? o.setAttribute("data-color-scheme", this.scheme) : o.removeAttribute("data-color-scheme");
|
|
4727
|
-
const n = r === "dark" ?
|
|
4747
|
+
const n = r === "dark" ? Gl : Ul, s = Wl({
|
|
4728
4748
|
target: o,
|
|
4729
4749
|
provider: this.provider
|
|
4730
|
-
}), l =
|
|
4750
|
+
}), l = Bl(this.scheme), c = {
|
|
4731
4751
|
...n,
|
|
4732
4752
|
...s,
|
|
4733
4753
|
...l,
|
|
@@ -4754,14 +4774,14 @@ class Wl extends zl {
|
|
|
4754
4774
|
typeof window > "u" || (this.mediaQuery && (this.mediaQuery.removeEventListener("change", this.onMediaChange), this.mediaQuery = null), this.getAttribute("theme")?.trim() === "auto" && (this.mediaQuery = window.matchMedia("(prefers-color-scheme: dark)"), this.mediaQuery.addEventListener("change", this.onMediaChange)));
|
|
4755
4775
|
}
|
|
4756
4776
|
}
|
|
4757
|
-
function
|
|
4758
|
-
typeof customElements > "u" || customElements.get(t) || customElements.define(t,
|
|
4777
|
+
function Ql(t = "pie-theme") {
|
|
4778
|
+
typeof customElements > "u" || customElements.get(t) || customElements.define(t, Yl);
|
|
4759
4779
|
}
|
|
4760
|
-
|
|
4761
|
-
const
|
|
4780
|
+
Ql();
|
|
4781
|
+
const Jl = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, nn = "https://proxy.pie-api.com", Xl = `${nn}/bundles/`;
|
|
4762
4782
|
function sn(t) {
|
|
4763
4783
|
try {
|
|
4764
|
-
const e =
|
|
4784
|
+
const e = Jl?.[t];
|
|
4765
4785
|
if (typeof e == "string" && e.length > 0)
|
|
4766
4786
|
return e;
|
|
4767
4787
|
} catch {
|
|
@@ -4802,7 +4822,7 @@ var Ji;
|
|
|
4802
4822
|
t[t.ROOT = 0] = "ROOT", t[t.SUBJECT = 1] = "SUBJECT", t[t.LEVEL = 2] = "LEVEL", t[t.STANDARD = 3] = "STANDARD";
|
|
4803
4823
|
})(Ji || (Ji = {}));
|
|
4804
4824
|
oi.player;
|
|
4805
|
-
function
|
|
4825
|
+
function Zl(t) {
|
|
4806
4826
|
const e = typeof document < "u" ? document.activeElement : null;
|
|
4807
4827
|
return queueMicrotask(() => {
|
|
4808
4828
|
try {
|
|
@@ -4816,14 +4836,14 @@ function Jl(t) {
|
|
|
4816
4836
|
}
|
|
4817
4837
|
};
|
|
4818
4838
|
}
|
|
4819
|
-
function
|
|
4839
|
+
function ec(t) {
|
|
4820
4840
|
try {
|
|
4821
4841
|
return typeof localStorage > "u" ? null : localStorage.getItem(t);
|
|
4822
4842
|
} catch {
|
|
4823
4843
|
return null;
|
|
4824
4844
|
}
|
|
4825
4845
|
}
|
|
4826
|
-
function
|
|
4846
|
+
function tc(t, e) {
|
|
4827
4847
|
try {
|
|
4828
4848
|
if (typeof localStorage > "u")
|
|
4829
4849
|
return;
|
|
@@ -4831,8 +4851,8 @@ function Zl(t, e) {
|
|
|
4831
4851
|
} catch {
|
|
4832
4852
|
}
|
|
4833
4853
|
}
|
|
4834
|
-
var
|
|
4835
|
-
const
|
|
4854
|
+
var rc = /* @__PURE__ */ As('<svg xmlns="http://www.w3.org/2000/svg" class="pie-tool-color-scheme__check svelte-17qy4wk" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"></polyline></svg>'), ic = /* @__PURE__ */ bi('<button type="button" role="menuitem"><div class="pie-tool-color-scheme__preview svelte-17qy4wk"><div class="pie-tool-color-scheme__preview-bg svelte-17qy4wk"><div class="pie-tool-color-scheme__preview-text svelte-17qy4wk">A</div> <div class="pie-tool-color-scheme__preview-primary svelte-17qy4wk"></div></div></div> <div class="pie-tool-color-scheme__info svelte-17qy4wk"><div class="pie-tool-color-scheme__name svelte-17qy4wk"> </div> <div class="pie-tool-color-scheme__description svelte-17qy4wk"> </div></div> <!></button>'), oc = /* @__PURE__ */ bi('<div class="pie-tool-color-scheme__dropdown svelte-17qy4wk" role="menu"></div>'), nc = /* @__PURE__ */ bi('<div class="pie-tool-color-scheme svelte-17qy4wk" role="dialog" tabindex="-1" aria-modal="true" aria-labelledby="color-scheme-title"><div class="pie-tool-color-scheme__header svelte-17qy4wk"><h3 id="color-scheme-title" class="pie-tool-color-scheme__title svelte-17qy4wk">Theme</h3> <button type="button" class="pie-tool-color-scheme__close svelte-17qy4wk" aria-label="Close theme selector">×</button></div> <div class="pie-tool-color-scheme__content svelte-17qy4wk"><p class="pie-tool-color-scheme__description svelte-17qy4wk">Select a theme to improve readability and reduce eye strain.</p> <button type="button" class="pie-tool-color-scheme__dropdown-trigger svelte-17qy4wk" aria-label="Select theme"><div class="pie-tool-color-scheme__current svelte-17qy4wk"><div class="pie-tool-color-scheme__preview svelte-17qy4wk"><div class="pie-tool-color-scheme__preview-bg svelte-17qy4wk"><div class="pie-tool-color-scheme__preview-text svelte-17qy4wk">A</div> <div class="pie-tool-color-scheme__preview-primary svelte-17qy4wk"></div></div></div> <div class="pie-tool-color-scheme__current-info svelte-17qy4wk"><div class="pie-tool-color-scheme__current-name svelte-17qy4wk"> </div> <div class="pie-tool-color-scheme__current-description svelte-17qy4wk"> </div></div> <svg class="pie-tool-color-scheme__dropdown-arrow svelte-17qy4wk" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M7,10L12,15L17,10H7Z"></path></svg></div></button> <!></div></div>');
|
|
4855
|
+
const sc = {
|
|
4836
4856
|
hash: "svelte-17qy4wk",
|
|
4837
4857
|
code: `.pie-tool-color-scheme.svelte-17qy4wk {position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);width:90%;max-width:32rem;background-color:var(--pie-background, white);border:2px solid var(--pie-border, #ccc);border-radius:0.5rem;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);display:flex;flex-direction:column;}.pie-tool-color-scheme__header.svelte-17qy4wk {display:flex;justify-content:space-between;align-items:center;padding:1rem;border-bottom:2px solid var(--pie-border, #ccc);}.pie-tool-color-scheme__title.svelte-17qy4wk {font-size:1.25rem;font-weight:700;color:var(--pie-text, black);margin:0;}.pie-tool-color-scheme__close.svelte-17qy4wk {width:2rem;height:2rem;border:none;background:transparent;color:var(--pie-text, black);font-size:1.5rem;line-height:1;cursor:pointer;border-radius:0.25rem;}.pie-tool-color-scheme__close.svelte-17qy4wk:hover {background-color:var(--pie-secondary-background, #f0f0f0);}.pie-tool-color-scheme__content.svelte-17qy4wk {padding:1rem;position:relative;display:flex;flex-direction:column;gap:1rem;}.pie-tool-color-scheme__description.svelte-17qy4wk {margin:0 0 1rem 0;color:var(--pie-text, black);opacity:0.7;font-size:0.875rem;}.pie-tool-color-scheme__dropdown-trigger.svelte-17qy4wk {width:100%;padding:0.75rem;border:2px solid var(--pie-border, #ccc);border-radius:0.5rem;background-color:var(--pie-background, white);color:var(--pie-text, black);cursor:pointer;transition:all 0.15s ease;}.pie-tool-color-scheme__dropdown-trigger.svelte-17qy4wk:hover {background-color:var(--pie-secondary-background, #f0f0f0);}.pie-tool-color-scheme__current.svelte-17qy4wk {display:flex;align-items:center;gap:0.75rem;}.pie-tool-color-scheme__current-info.svelte-17qy4wk {flex:1;text-align:left;}.pie-tool-color-scheme__current-name.svelte-17qy4wk {font-size:0.875rem;font-weight:600;color:var(--pie-text, black);}.pie-tool-color-scheme__current-description.svelte-17qy4wk {font-size:0.75rem;color:var(--pie-text, black);opacity:0.6;}.pie-tool-color-scheme__dropdown-arrow.svelte-17qy4wk {width:1.5rem;height:1.5rem;flex-shrink:0;}.pie-tool-color-scheme__dropdown.svelte-17qy4wk {position:relative;width:100%;max-height:24rem;background-color:var(--pie-background, white);border:2px solid var(--pie-border, #ccc);border-radius:0.5rem;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);overflow-y:auto;overflow-x:hidden;margin-top:0.5rem;}.pie-tool-color-scheme__option.svelte-17qy4wk {display:flex;align-items:center;gap:0.75rem;width:100%;padding:0.75rem 1rem;border:none;background-color:transparent;color:var(--pie-text, black);cursor:pointer;text-align:left;transition:background-color 0.15s ease;}.pie-tool-color-scheme__option.svelte-17qy4wk:hover {background-color:var(--pie-secondary-background, rgba(0, 0, 0, 0.05));}.pie-tool-color-scheme__option--active.svelte-17qy4wk {background-color:var(--pie-primary-light, rgba(63, 81, 181, 0.1));}.pie-tool-color-scheme__preview.svelte-17qy4wk {flex-shrink:0;width:2.5rem;height:2.5rem;border:2px solid var(--pie-border, #ccc);border-radius:0.25rem;overflow:hidden;}.pie-tool-color-scheme__preview-bg.svelte-17qy4wk {width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;}.pie-tool-color-scheme__preview-text.svelte-17qy4wk {font-weight:700;font-size:1.25rem;}.pie-tool-color-scheme__preview-primary.svelte-17qy4wk {position:absolute;bottom:0;right:0;width:0.75rem;height:0.75rem;border-radius:50%;}.pie-tool-color-scheme__info.svelte-17qy4wk {flex:1;}.pie-tool-color-scheme__name.svelte-17qy4wk {font-size:0.875rem;font-weight:600;color:var(--pie-text, black);line-height:1.25;}.pie-tool-color-scheme__description.svelte-17qy4wk {font-size:0.75rem;color:var(--pie-text, black);opacity:0.6;}.pie-tool-color-scheme__check.svelte-17qy4wk {flex-shrink:0;width:1rem;height:1rem;color:var(--pie-primary, #3f51b5);}
|
|
4838
4858
|
|
|
@@ -4840,8 +4860,8 @@ const oc = {
|
|
|
4840
4860
|
.pie-tool-color-scheme__dropdown-trigger.svelte-17qy4wk:focus-visible,
|
|
4841
4861
|
.pie-tool-color-scheme__option.svelte-17qy4wk:focus-visible {outline:2px solid var(--pie-primary, #3f51b5);outline-offset:2px;}`
|
|
4842
4862
|
};
|
|
4843
|
-
function
|
|
4844
|
-
ao(e, !0), js(t,
|
|
4863
|
+
function lc(t, e) {
|
|
4864
|
+
ao(e, !0), js(t, sc);
|
|
4845
4865
|
const r = typeof window < "u";
|
|
4846
4866
|
let i = rr(e, "visible", 7, !1), o = rr(e, "toolId", 7, "theme"), n = rr(e, "schemes", 7, ""), s = rr(e, "schemeCatalog", 7, null), l = /* @__PURE__ */ ee(void 0), c = /* @__PURE__ */ ee(null);
|
|
4847
4867
|
const a = /* @__PURE__ */ Dr(() => g(c)?.toolCoordinator);
|
|
@@ -4930,7 +4950,7 @@ function nc(t, e) {
|
|
|
4930
4950
|
return _ || document.querySelector("pie-theme");
|
|
4931
4951
|
}
|
|
4932
4952
|
function b() {
|
|
4933
|
-
const m =
|
|
4953
|
+
const m = xl(), _ = new Map(h.map((k) => [k.id, k]));
|
|
4934
4954
|
return m.map((k) => {
|
|
4935
4955
|
const M = _.get(k.id) || {
|
|
4936
4956
|
id: k.id,
|
|
@@ -4966,7 +4986,7 @@ function nc(t, e) {
|
|
|
4966
4986
|
const k = document.documentElement;
|
|
4967
4987
|
m === "default" ? k.removeAttribute("data-color-scheme") : k.setAttribute("data-color-scheme", m);
|
|
4968
4988
|
}
|
|
4969
|
-
|
|
4989
|
+
tc("pie-color-scheme", m);
|
|
4970
4990
|
}
|
|
4971
4991
|
function we(m) {
|
|
4972
4992
|
C(S, m, !0), ye(m), g(a)?.hideTool(o());
|
|
@@ -4998,10 +5018,10 @@ function nc(t, e) {
|
|
|
4998
5018
|
}), mt(() => {
|
|
4999
5019
|
g(a) && g(l) && o() && g(a).updateToolElement(o(), g(l));
|
|
5000
5020
|
}), mt(() => {
|
|
5001
|
-
!i() && z ? (z(), z = null) : i() && g(l) && !z && (z =
|
|
5021
|
+
!i() && z ? (z(), z = null) : i() && g(l) && !z && (z = Zl(g(l)));
|
|
5002
5022
|
}), Cs(() => {
|
|
5003
5023
|
if (r) {
|
|
5004
|
-
const k = w()?.getAttribute("scheme"), M =
|
|
5024
|
+
const k = w()?.getAttribute("scheme"), M = ec("pie-color-scheme") ?? k ?? "default";
|
|
5005
5025
|
C(S, M, !0), M && requestAnimationFrame(() => {
|
|
5006
5026
|
ye(M);
|
|
5007
5027
|
});
|
|
@@ -5043,7 +5063,7 @@ function nc(t, e) {
|
|
|
5043
5063
|
}, wi = $s(), ln = ds(wi);
|
|
5044
5064
|
{
|
|
5045
5065
|
var cn = (m) => {
|
|
5046
|
-
var _ =
|
|
5066
|
+
var _ = nc(), k = H(_), M = ue(H(k), 2);
|
|
5047
5067
|
q(k);
|
|
5048
5068
|
var vt = ue(k, 2), W = ue(H(vt), 2), Jt = H(W), Er = H(Jt), Sr = H(Er), ki = H(Sr), an = ue(ki, 2);
|
|
5049
5069
|
q(Sr), q(Er);
|
|
@@ -5054,20 +5074,20 @@ function nc(t, e) {
|
|
|
5054
5074
|
var dn = ue(W, 2);
|
|
5055
5075
|
{
|
|
5056
5076
|
var pn = (Nt) => {
|
|
5057
|
-
var $r =
|
|
5077
|
+
var $r = oc();
|
|
5058
5078
|
Ds($r, 21, () => g($), (Rr) => Rr.id, (Rr, ke) => {
|
|
5059
|
-
var Xe =
|
|
5079
|
+
var Xe = ic();
|
|
5060
5080
|
let Ei;
|
|
5061
|
-
var
|
|
5062
|
-
q(
|
|
5063
|
-
var Vr = ue(
|
|
5081
|
+
var Or = H(Xe), Lr = H(Or), Si = H(Lr), hn = ue(Si, 2);
|
|
5082
|
+
q(Lr), q(Or);
|
|
5083
|
+
var Vr = ue(Or, 2), Mr = H(Vr), vn = H(Mr, !0);
|
|
5064
5084
|
q(Mr);
|
|
5065
5085
|
var Ai = ue(Mr, 2), gn = H(Ai, !0);
|
|
5066
5086
|
q(Ai), q(Vr);
|
|
5067
5087
|
var mn = ue(Vr, 2);
|
|
5068
5088
|
{
|
|
5069
5089
|
var bn = (Cr) => {
|
|
5070
|
-
var _n =
|
|
5090
|
+
var _n = rc();
|
|
5071
5091
|
bt(Cr, _n);
|
|
5072
5092
|
};
|
|
5073
5093
|
Pr(mn, (Cr) => {
|
|
@@ -5077,7 +5097,7 @@ function nc(t, e) {
|
|
|
5077
5097
|
q(Xe), Mi(() => {
|
|
5078
5098
|
Ei = Hs(Xe, 1, "pie-tool-color-scheme__option svelte-17qy4wk", null, Ei, {
|
|
5079
5099
|
"pie-tool-color-scheme__option--active": g(S) === g(ke).id
|
|
5080
|
-
}), qr(Xe, "aria-label", g(ke).name), qr(Xe, "aria-current", g(S) === g(ke).id), gt(
|
|
5100
|
+
}), qr(Xe, "aria-label", g(ke).name), qr(Xe, "aria-current", g(S) === g(ke).id), gt(Lr, `background-color: ${g(ke).preview.bg ?? ""}`), gt(Si, `color: ${g(ke).preview.text ?? ""}`), gt(hn, `background-color: ${g(ke).preview.primary ?? ""}`), er(vn, g(ke).name), er(gn, g(ke).description);
|
|
5081
5101
|
}), Zt("click", Xe, () => we(g(ke).id)), bt(Rr, Xe);
|
|
5082
5102
|
}), q($r), bt(Nt, $r);
|
|
5083
5103
|
};
|
|
@@ -5097,7 +5117,7 @@ function nc(t, e) {
|
|
|
5097
5117
|
}
|
|
5098
5118
|
Ts(["keydown", "click"]);
|
|
5099
5119
|
customElements.define("pie-tool-theme", Xs(
|
|
5100
|
-
|
|
5120
|
+
lc,
|
|
5101
5121
|
{
|
|
5102
5122
|
visible: { attribute: "visible", type: "Boolean" },
|
|
5103
5123
|
toolId: { attribute: "tool-id", type: "String" },
|
|
@@ -5109,5 +5129,5 @@ customElements.define("pie-tool-theme", Xs(
|
|
|
5109
5129
|
{ mode: "open" }
|
|
5110
5130
|
));
|
|
5111
5131
|
export {
|
|
5112
|
-
|
|
5132
|
+
lc as default
|
|
5113
5133
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-players/pie-tool-theme",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Theme tool for PIE assessment player - provides accessible themes and color schemes",
|
|
6
6
|
"repository": {
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"unpkg": "./dist/tool-color-scheme.js",
|
|
44
44
|
"jsdelivr": "./dist/tool-color-scheme.js",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@pie-players/pie-assessment-toolkit": "0.3.
|
|
47
|
-
"@pie-players/pie-context": "0.3.
|
|
48
|
-
"@pie-players/pie-players-shared": "0.3.
|
|
49
|
-
"@pie-players/pie-theme": "0.3.
|
|
46
|
+
"@pie-players/pie-assessment-toolkit": "0.3.2",
|
|
47
|
+
"@pie-players/pie-context": "0.3.2",
|
|
48
|
+
"@pie-players/pie-players-shared": "0.3.2",
|
|
49
|
+
"@pie-players/pie-theme": "0.3.2",
|
|
50
50
|
"daisyui": "^5.5.18"
|
|
51
51
|
},
|
|
52
52
|
"types": "./dist/index.d.ts",
|