@adriansteffan/reactive 0.1.22 → 0.1.24
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/{mod-BqHlEEiK.js → mod-fBXh2yt0.js} +119 -112
- package/dist/reactive.es.js +1 -1
- package/dist/reactive.umd.js +15 -15
- package/dist/{web-Dg20aI02.js → web-B1R-GYWu.js} +1 -1
- package/dist/{web-DUk2Ckc5.js → web-DEK1IMF9.js} +1 -1
- package/package.json +1 -1
- package/src/components/quest.tsx +4 -2
- package/src/components/text.tsx +7 -0
- package/src/components/tutorial.tsx +2 -2
|
@@ -2,7 +2,7 @@ var a1 = (i) => {
|
|
|
2
2
|
throw TypeError(i);
|
|
3
3
|
};
|
|
4
4
|
var Ep = (i, e, t) => e.has(i) || a1("Cannot " + t);
|
|
5
|
-
var K = (i, e, t) => (Ep(i, e, "read from private field"), t ? t.call(i) : e.get(i)),
|
|
5
|
+
var K = (i, e, t) => (Ep(i, e, "read from private field"), t ? t.call(i) : e.get(i)), at = (i, e, t) => e.has(i) ? a1("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), Ue = (i, e, t, s) => (Ep(i, e, "write to private field"), s ? s.call(i, t) : e.set(i, t), t), os = (i, e, t) => (Ep(i, e, "access private method"), t);
|
|
6
6
|
var ju = (i, e, t, s) => ({
|
|
7
7
|
set _(r) {
|
|
8
8
|
Ue(i, e, r, t);
|
|
@@ -12,7 +12,7 @@ var ju = (i, e, t, s) => ({
|
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
import * as p from "react";
|
|
15
|
-
import Ze, { useRef as fe, useEffect as
|
|
15
|
+
import Ze, { useRef as fe, useEffect as nt, useState as rt, useCallback as Xe, createElement as qx, useLayoutEffect as Pg, useSyncExternalStore as PP, isValidElement as _a, cloneElement as em, createContext as fn, useContext as fs, useMemo as di, useId as Ig, useInsertionEffect as Rg, Children as IP, Fragment as Bx, forwardRef as $x, Component as RP, useImperativeHandle as AP } from "react";
|
|
16
16
|
import * as o1 from "react-dom";
|
|
17
17
|
import { createPortal as LP } from "react-dom";
|
|
18
18
|
function Qo(i) {
|
|
@@ -17918,11 +17918,14 @@ function wv({
|
|
|
17918
17918
|
allowedKeys: a = !1
|
|
17919
17919
|
}) {
|
|
17920
17920
|
const o = fe(0);
|
|
17921
|
-
|
|
17921
|
+
nt(() => {
|
|
17922
|
+
window.scrollTo(0, 0);
|
|
17923
|
+
}, []), nt(() => {
|
|
17922
17924
|
o.current = Qs();
|
|
17923
17925
|
const u = (h) => {
|
|
17924
17926
|
const c = Qs();
|
|
17925
17927
|
if (a === !0 || Array.isArray(a) && a.includes(h.key)) {
|
|
17928
|
+
h.preventDefault();
|
|
17926
17929
|
const f = c - o.current;
|
|
17927
17930
|
r({
|
|
17928
17931
|
key: h.key,
|
|
@@ -17961,6 +17964,10 @@ function wv({
|
|
|
17961
17964
|
"button",
|
|
17962
17965
|
{
|
|
17963
17966
|
onClick: l,
|
|
17967
|
+
tabIndex: -1,
|
|
17968
|
+
onKeyDown: (u) => {
|
|
17969
|
+
(u.key === " " || u.key === "Enter") && u.preventDefault();
|
|
17970
|
+
},
|
|
17964
17971
|
className: "bg-white cursor-pointer px-8 py-3 border-2 border-black font-bold text-black text-lg rounded-xl shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none",
|
|
17965
17972
|
children: e
|
|
17966
17973
|
}
|
|
@@ -18191,7 +18198,7 @@ function $ae(i) {
|
|
|
18191
18198
|
}
|
|
18192
18199
|
const Hae = ({ stream: i }) => {
|
|
18193
18200
|
const e = fe(null), t = fe(null), s = fe(null), r = fe([]);
|
|
18194
|
-
return
|
|
18201
|
+
return nt(() => {
|
|
18195
18202
|
if (!i || !e.current) return;
|
|
18196
18203
|
const n = new (window.AudioContext || window.webkitAudioContext)(), a = n.createAnalyser(), o = n.createMediaStreamSource(i);
|
|
18197
18204
|
a.fftSize = 2048, o.connect(a), s.current = a;
|
|
@@ -18355,7 +18362,7 @@ function Uae({
|
|
|
18355
18362
|
}) {
|
|
18356
18363
|
var u;
|
|
18357
18364
|
const [e, t] = rt([]), [s, r] = rt(""), [n, a] = rt(!1);
|
|
18358
|
-
|
|
18365
|
+
nt(() => {
|
|
18359
18366
|
navigator.mediaDevices.getUserMedia({ audio: !0 }).then(() => {
|
|
18360
18367
|
navigator.mediaDevices.enumerateDevices().then((h) => {
|
|
18361
18368
|
const c = h.filter((d) => d.kind === "audioinput").map((d) => ({
|
|
@@ -70456,9 +70463,9 @@ function $ce({
|
|
|
70456
70463
|
},
|
|
70457
70464
|
[i]
|
|
70458
70465
|
);
|
|
70459
|
-
return n.onComplete.add(a), /* @__PURE__ */ R.jsxs("div", { className: `
|
|
70466
|
+
return n.onComplete.add(a), /* @__PURE__ */ R.jsxs("div", { className: `min-h-screen ${r ?? ""}`, children: [
|
|
70460
70467
|
!r && /* @__PURE__ */ R.jsx("div", { className: "absolute inset-0 -z-10 h-full w-full bg-white bg-[radial-gradient(#e5e7eb_1px,transparent_1px)] [background-size:16px_16px]" }),
|
|
70461
|
-
/* @__PURE__ */ R.jsx(_S, { model: n })
|
|
70468
|
+
/* @__PURE__ */ R.jsx("div", { className: "max-w-4xl mx-auto px-4", children: /* @__PURE__ */ R.jsx(_S, { model: n }) })
|
|
70462
70469
|
] });
|
|
70463
70470
|
}
|
|
70464
70471
|
var Du = class {
|
|
@@ -70619,9 +70626,9 @@ function e3(i, e) {
|
|
|
70619
70626
|
var Ia, $n, So, Rx, Jce = (Rx = class extends Du {
|
|
70620
70627
|
constructor() {
|
|
70621
70628
|
super();
|
|
70622
|
-
|
|
70623
|
-
|
|
70624
|
-
|
|
70629
|
+
at(this, Ia);
|
|
70630
|
+
at(this, $n);
|
|
70631
|
+
at(this, So);
|
|
70625
70632
|
Ue(this, So, (e) => {
|
|
70626
70633
|
if (!Zd && window.addEventListener) {
|
|
70627
70634
|
const t = () => e();
|
|
@@ -70660,9 +70667,9 @@ var Ia, $n, So, Rx, Jce = (Rx = class extends Du {
|
|
|
70660
70667
|
}, Ia = new WeakMap(), $n = new WeakMap(), So = new WeakMap(), Rx), t3 = new Jce(), To, Hn, Po, Ax, Yce = (Ax = class extends Du {
|
|
70661
70668
|
constructor() {
|
|
70662
70669
|
super();
|
|
70663
|
-
|
|
70664
|
-
|
|
70665
|
-
|
|
70670
|
+
at(this, To, !0);
|
|
70671
|
+
at(this, Hn);
|
|
70672
|
+
at(this, Po);
|
|
70666
70673
|
Ue(this, Po, (e) => {
|
|
70667
70674
|
if (!Zd && window.addEventListener) {
|
|
70668
70675
|
const t = () => e(!0), s = () => e(!1);
|
|
@@ -70846,7 +70853,7 @@ function tde() {
|
|
|
70846
70853
|
}
|
|
70847
70854
|
var Ms = tde(), Ra, Lx, n3 = (Lx = class {
|
|
70848
70855
|
constructor() {
|
|
70849
|
-
|
|
70856
|
+
at(this, Ra);
|
|
70850
70857
|
}
|
|
70851
70858
|
destroy() {
|
|
70852
70859
|
this.clearGcTimeout();
|
|
@@ -70868,13 +70875,13 @@ var Ms = tde(), Ra, Lx, n3 = (Lx = class {
|
|
|
70868
70875
|
}, Ra = new WeakMap(), Lx), Io, Ro, Fi, Hs, uu, Aa, nr, tn, _x, sde = (_x = class extends n3 {
|
|
70869
70876
|
constructor(e) {
|
|
70870
70877
|
super();
|
|
70871
|
-
|
|
70872
|
-
|
|
70873
|
-
|
|
70874
|
-
|
|
70875
|
-
|
|
70876
|
-
|
|
70877
|
-
|
|
70878
|
+
at(this, nr);
|
|
70879
|
+
at(this, Io);
|
|
70880
|
+
at(this, Ro);
|
|
70881
|
+
at(this, Fi);
|
|
70882
|
+
at(this, Hs);
|
|
70883
|
+
at(this, uu);
|
|
70884
|
+
at(this, Aa);
|
|
70878
70885
|
Ue(this, Aa, !1), Ue(this, uu, e.defaultOptions), this.setOptions(e.options), this.observers = [], Ue(this, Fi, e.cache), this.queryKey = e.queryKey, this.queryHash = e.queryHash, Ue(this, Io, rde(this.options)), this.state = e.state ?? K(this, Io), this.scheduleGc();
|
|
70879
70886
|
}
|
|
70880
70887
|
get meta() {
|
|
@@ -71150,7 +71157,7 @@ function rde(i) {
|
|
|
71150
71157
|
var Er, Dx, nde = (Dx = class extends Du {
|
|
71151
71158
|
constructor(e = {}) {
|
|
71152
71159
|
super();
|
|
71153
|
-
|
|
71160
|
+
at(this, Er);
|
|
71154
71161
|
this.config = e, Ue(this, Er, /* @__PURE__ */ new Map());
|
|
71155
71162
|
}
|
|
71156
71163
|
build(e, t, s) {
|
|
@@ -71222,10 +71229,10 @@ var Er, Dx, nde = (Dx = class extends Du {
|
|
|
71222
71229
|
}, Er = new WeakMap(), Dx), Vr, Ks, La, Sr, _n, kx, ade = (kx = class extends n3 {
|
|
71223
71230
|
constructor(e) {
|
|
71224
71231
|
super();
|
|
71225
|
-
|
|
71226
|
-
|
|
71227
|
-
|
|
71228
|
-
|
|
71232
|
+
at(this, Sr);
|
|
71233
|
+
at(this, Vr);
|
|
71234
|
+
at(this, Ks);
|
|
71235
|
+
at(this, La);
|
|
71229
71236
|
this.mutationId = e.mutationId, Ue(this, Ks, e.mutationCache), Ue(this, Vr, []), this.state = e.state || a3(), this.setOptions(e.options), this.scheduleGc();
|
|
71230
71237
|
}
|
|
71231
71238
|
setOptions(e) {
|
|
@@ -71419,8 +71426,8 @@ function a3() {
|
|
|
71419
71426
|
var wi, hu, Ox, ode = (Ox = class extends Du {
|
|
71420
71427
|
constructor(e = {}) {
|
|
71421
71428
|
super();
|
|
71422
|
-
|
|
71423
|
-
|
|
71429
|
+
at(this, wi);
|
|
71430
|
+
at(this, hu);
|
|
71424
71431
|
this.config = e, Ue(this, wi, /* @__PURE__ */ new Map()), Ue(this, hu, Date.now());
|
|
71425
71432
|
}
|
|
71426
71433
|
build(e, t, s) {
|
|
@@ -71577,14 +71584,14 @@ function lde(i, { pages: e, pageParams: t }) {
|
|
|
71577
71584
|
}
|
|
71578
71585
|
var Xt, Qn, Un, Ao, Lo, zn, _o, Do, Mx, ude = (Mx = class {
|
|
71579
71586
|
constructor(i = {}) {
|
|
71580
|
-
|
|
71581
|
-
|
|
71582
|
-
|
|
71583
|
-
|
|
71584
|
-
|
|
71585
|
-
|
|
71586
|
-
|
|
71587
|
-
|
|
71587
|
+
at(this, Xt);
|
|
71588
|
+
at(this, Qn);
|
|
71589
|
+
at(this, Un);
|
|
71590
|
+
at(this, Ao);
|
|
71591
|
+
at(this, Lo);
|
|
71592
|
+
at(this, zn);
|
|
71593
|
+
at(this, _o);
|
|
71594
|
+
at(this, Do);
|
|
71588
71595
|
Ue(this, Xt, i.queryCache || new nde()), Ue(this, Qn, i.mutationCache || new ode()), Ue(this, Un, i.defaultOptions || {}), Ue(this, Ao, /* @__PURE__ */ new Map()), Ue(this, Lo, /* @__PURE__ */ new Map()), Ue(this, zn, 0);
|
|
71589
71596
|
}
|
|
71590
71597
|
mount() {
|
|
@@ -71781,11 +71788,11 @@ var Xt, Qn, Un, Ao, Lo, zn, _o, Do, Mx, ude = (Mx = class {
|
|
|
71781
71788
|
}, Xt = new WeakMap(), Qn = new WeakMap(), Un = new WeakMap(), Ao = new WeakMap(), Lo = new WeakMap(), zn = new WeakMap(), _o = new WeakMap(), Do = new WeakMap(), Mx), jn, Wn, ai, an, hn, Xh, Um, Nx, hde = (Nx = class extends Du {
|
|
71782
71789
|
constructor(e, t) {
|
|
71783
71790
|
super();
|
|
71784
|
-
|
|
71785
|
-
|
|
71786
|
-
|
|
71787
|
-
|
|
71788
|
-
|
|
71791
|
+
at(this, hn);
|
|
71792
|
+
at(this, jn);
|
|
71793
|
+
at(this, Wn);
|
|
71794
|
+
at(this, ai);
|
|
71795
|
+
at(this, an);
|
|
71789
71796
|
Ue(this, jn, e), this.setOptions(t), this.bindMethods(), os(this, hn, Xh).call(this);
|
|
71790
71797
|
}
|
|
71791
71798
|
bindMethods() {
|
|
@@ -78079,11 +78086,11 @@ async function Qfe(i, e, t, s) {
|
|
|
78079
78086
|
e = e.trim(), s.directory && !e.endsWith(Rf) ? e += Rf : s.directory = e.endsWith(Rf);
|
|
78080
78087
|
const r = xt(i, s, "encodeText", sc);
|
|
78081
78088
|
let n = r(e);
|
|
78082
|
-
if (n === Bt && (n = sc(e)),
|
|
78089
|
+
if (n === Bt && (n = sc(e)), lt(n) > ui)
|
|
78083
78090
|
throw new Error(Nfe);
|
|
78084
78091
|
const a = s.comment || "";
|
|
78085
78092
|
let o = r(a);
|
|
78086
|
-
if (o === Bt && (o = sc(a)),
|
|
78093
|
+
if (o === Bt && (o = sc(a)), lt(o) > ui)
|
|
78087
78094
|
throw new Error(Mfe);
|
|
78088
78095
|
const l = xt(i, s, Z3, Vpe);
|
|
78089
78096
|
if (l > ui)
|
|
@@ -78102,12 +78109,12 @@ async function Qfe(i, e, t, s) {
|
|
|
78102
78109
|
const { extraField: G } = s;
|
|
78103
78110
|
if (G) {
|
|
78104
78111
|
let Mt = 0, zt = 0;
|
|
78105
|
-
G.forEach((Ct) => Mt += 4 +
|
|
78112
|
+
G.forEach((Ct) => Mt += 4 + lt(Ct)), j = new Uint8Array(Mt), G.forEach((Ct, _e) => {
|
|
78106
78113
|
if (_e > ui)
|
|
78107
78114
|
throw new Error(qfe);
|
|
78108
|
-
if (
|
|
78115
|
+
if (lt(Ct) > ui)
|
|
78109
78116
|
throw new Error(Bfe);
|
|
78110
|
-
ps(j, new Uint16Array([_e]), zt), ps(j, new Uint16Array([
|
|
78117
|
+
ps(j, new Uint16Array([_e]), zt), ps(j, new Uint16Array([lt(Ct)]), zt + 2), ps(j, Ct, zt + 4), zt += 4 + lt(Ct);
|
|
78111
78118
|
});
|
|
78112
78119
|
}
|
|
78113
78120
|
let ne = 0, Y = 0, oe = 0;
|
|
@@ -78155,11 +78162,11 @@ async function Qfe(i, e, t, s) {
|
|
|
78155
78162
|
externalFileAttribute: v,
|
|
78156
78163
|
useCompressionStream: _,
|
|
78157
78164
|
passThrough: m,
|
|
78158
|
-
encrypted: !!(g &&
|
|
78165
|
+
encrypted: !!(g && lt(g) || b && lt(b)) || m && Is,
|
|
78159
78166
|
signature: Et,
|
|
78160
78167
|
compressionMethod: B
|
|
78161
78168
|
});
|
|
78162
|
-
const cs = jfe(s), rs = Gfe(s), Le =
|
|
78169
|
+
const cs = jfe(s), rs = Gfe(s), Le = lt(cs.localHeaderArray, rs.dataDescriptorArray);
|
|
78163
78170
|
Y = Le + ne, i.options.usdz && (Y += Y + 64), i.pendingEntriesSize += Y;
|
|
78164
78171
|
let st;
|
|
78165
78172
|
try {
|
|
@@ -78190,7 +78197,7 @@ async function Ufe(i, e, t, s, r) {
|
|
|
78190
78197
|
if (i.addSplitZipSignature) {
|
|
78191
78198
|
delete i.addSplitZipSignature;
|
|
78192
78199
|
const Q = new Uint8Array(4), _ = Ns(Q);
|
|
78193
|
-
|
|
78200
|
+
ot(_, 0, p3), await Rr(I, Q), i.offset += 4;
|
|
78194
78201
|
}
|
|
78195
78202
|
c && Wfe(s, i.offset - M), y || (await V, await D(I));
|
|
78196
78203
|
const { diskNumber: q } = a;
|
|
@@ -78228,7 +78235,7 @@ async function Ufe(i, e, t, s, r) {
|
|
|
78228
78235
|
}), await V;
|
|
78229
78236
|
}
|
|
78230
78237
|
async function D(V) {
|
|
78231
|
-
|
|
78238
|
+
lt(h.localHeaderArray) > a.availableSize && (a.availableSize = 0, await Rr(V, new Uint8Array()));
|
|
78232
78239
|
}
|
|
78233
78240
|
}
|
|
78234
78241
|
async function zfe(i, e, { diskNumberStart: t, lock: s }, r, n, a) {
|
|
@@ -78382,7 +78389,7 @@ function jfe(i) {
|
|
|
78382
78389
|
} = i, v = n !== 0 && !h;
|
|
78383
78390
|
let { version: m, compressionMethod: g } = i, b;
|
|
78384
78391
|
if (y && !o) {
|
|
78385
|
-
b = new Uint8Array(
|
|
78392
|
+
b = new Uint8Array(lt(X2) + 2);
|
|
78386
78393
|
const $ = Ns(b);
|
|
78387
78394
|
mt($, 0, gpe), ps(b, X2, 2), qc($, 8, d);
|
|
78388
78395
|
} else
|
|
@@ -78391,9 +78398,9 @@ function jfe(i) {
|
|
|
78391
78398
|
if (f) {
|
|
78392
78399
|
T = new Uint8Array(9 + (s ? 4 : 0) + (r ? 4 : 0));
|
|
78393
78400
|
const $ = Ns(T);
|
|
78394
|
-
mt($, 0, g3), mt($, 2,
|
|
78401
|
+
mt($, 0, g3), mt($, 2, lt(T) - 4), A = 1 + (s ? 2 : 0) + (r ? 4 : 0), qc($, 4, A);
|
|
78395
78402
|
let j = 5;
|
|
78396
|
-
|
|
78403
|
+
ot($, j, Math.floor(t.getTime() / 1e3)), j += 4, s && (ot($, j, Math.floor(s.getTime() / 1e3)), j += 4), r && ot($, j, Math.floor(r.getTime() / 1e3));
|
|
78397
78404
|
try {
|
|
78398
78405
|
x = new Uint8Array(36);
|
|
78399
78406
|
const G = Ns(x), ne = Of(t);
|
|
@@ -78411,11 +78418,11 @@ function jfe(i) {
|
|
|
78411
78418
|
let q;
|
|
78412
78419
|
t < M2 ? q = M2 : t > O2 ? q = O2 : q = t, mt(M, 0, (q.getHours() << 6 | q.getMinutes()) << 5 | q.getSeconds() / 2), mt(M, 2, (q.getFullYear() - 1980 << 4 | q.getMonth() + 1) << 5 | q.getDate());
|
|
78413
78420
|
const Q = I[0];
|
|
78414
|
-
|
|
78415
|
-
const _ =
|
|
78421
|
+
ot(V, 6, Q), mt(V, 22, lt(e));
|
|
78422
|
+
const _ = lt(b, T, x, c);
|
|
78416
78423
|
mt(V, 24, _);
|
|
78417
|
-
const B = new Uint8Array(30 +
|
|
78418
|
-
return
|
|
78424
|
+
const B = new Uint8Array(30 + lt(e) + _), H = Ns(B);
|
|
78425
|
+
return ot(H, 0, lpe), ps(B, D, 4), ps(B, e, 30), ps(B, b, 30 + lt(e)), ps(B, T, 30 + lt(e, b)), ps(B, x, 30 + lt(e, b, T)), ps(B, c, 30 + lt(e, b, T, x)), {
|
|
78419
78426
|
localHeaderArray: B,
|
|
78420
78427
|
headerArray: D,
|
|
78421
78428
|
headerView: V,
|
|
@@ -78434,12 +78441,12 @@ function jfe(i) {
|
|
|
78434
78441
|
}
|
|
78435
78442
|
function Wfe(i, e) {
|
|
78436
78443
|
const { headerInfo: t } = i;
|
|
78437
|
-
let { localHeaderArray: s, extraFieldLength: r } = t, n = Ns(s), a = 64 - (e +
|
|
78444
|
+
let { localHeaderArray: s, extraFieldLength: r } = t, n = Ns(s), a = 64 - (e + lt(s)) % 64;
|
|
78438
78445
|
a < 4 && (a += 64);
|
|
78439
78446
|
const o = new Uint8Array(a), l = Ns(o);
|
|
78440
78447
|
mt(l, 0, Cpe), mt(l, 2, a - 2);
|
|
78441
78448
|
const u = s;
|
|
78442
|
-
t.localHeaderArray = s = new Uint8Array(
|
|
78449
|
+
t.localHeaderArray = s = new Uint8Array(lt(u) + a), ps(s, u), ps(s, o, lt(u)), n = Ns(s), mt(n, 28, r + a), i.metadataSize += a;
|
|
78443
78450
|
}
|
|
78444
78451
|
function Gfe(i) {
|
|
78445
78452
|
const {
|
|
@@ -78448,7 +78455,7 @@ function Gfe(i) {
|
|
|
78448
78455
|
dataDescriptorSignature: s
|
|
78449
78456
|
} = i;
|
|
78450
78457
|
let r = new Uint8Array(), n, a = 0;
|
|
78451
|
-
return t && (r = new Uint8Array(e ? s ? 24 : 20 : s ? 16 : 12), n = Ns(r), s && (a = 4,
|
|
78458
|
+
return t && (r = new Uint8Array(e ? s ? 24 : 20 : s ? 16 : 12), n = Ns(r), s && (a = 4, ot(n, 0, upe))), {
|
|
78452
78459
|
dataDescriptorArray: r,
|
|
78453
78460
|
dataDescriptorView: n,
|
|
78454
78461
|
dataDescriptorOffset: a
|
|
@@ -78475,24 +78482,24 @@ function Kfe(i, e) {
|
|
|
78475
78482
|
zipCrypto: v,
|
|
78476
78483
|
dataDescriptor: m
|
|
78477
78484
|
} = e;
|
|
78478
|
-
if ((!u || v) && t !== Bt && (
|
|
78485
|
+
if ((!u || v) && t !== Bt && (ot(l, 10, t), m && ot(h, c, t)), d) {
|
|
78479
78486
|
const g = Ns(s);
|
|
78480
|
-
mt(g, 0, mpe), mt(g, 2,
|
|
78487
|
+
mt(g, 0, mpe), mt(g, 2, lt(s) - 4);
|
|
78481
78488
|
let b = 4;
|
|
78482
|
-
f && (
|
|
78489
|
+
f && (ot(l, 18, ci), hi(g, b, BigInt(n)), b += 8), y && (ot(l, 14, ci), hi(g, b, BigInt(r))), m && (hi(h, c + 4, BigInt(r)), hi(h, c + 12, BigInt(n)));
|
|
78483
78490
|
} else
|
|
78484
|
-
|
|
78491
|
+
ot(l, 14, r), ot(l, 18, n), m && (ot(h, c + 4, r), ot(h, c + 8, n));
|
|
78485
78492
|
}
|
|
78486
78493
|
async function Zfe(i, e, t, { zipCrypto: s }) {
|
|
78487
78494
|
let r;
|
|
78488
78495
|
r = await e.slice(0, 26).arrayBuffer(), r.byteLength != 26 && (r = r.slice(0, 26));
|
|
78489
78496
|
const n = new DataView(r);
|
|
78490
|
-
return (!i.encrypted || s) &&
|
|
78497
|
+
return (!i.encrypted || s) && ot(n, 14, i.signature), i.zip64 ? (ot(n, 18, ci), ot(n, 22, ci)) : (ot(n, 18, i.compressedSize), ot(n, 22, i.uncompressedSize)), await Rr(t, new Uint8Array(r)), e.slice(r.byteLength);
|
|
78491
78498
|
}
|
|
78492
78499
|
function Jfe(i, e) {
|
|
78493
78500
|
const { rawExtraFieldZip64: t, offset: s, diskNumberStart: r } = i, { zip64UncompressedSize: n, zip64CompressedSize: a, zip64Offset: o, zip64DiskNumberStart: l } = e, u = Ns(t);
|
|
78494
78501
|
let h = 4;
|
|
78495
|
-
n && (h += 8), a && (h += 8), o && (hi(u, h, BigInt(s)), h += 8), l &&
|
|
78502
|
+
n && (h += 8), a && (h += 8), o && (hi(u, h, BigInt(s)), h += 8), l && ot(u, h, r);
|
|
78496
78503
|
}
|
|
78497
78504
|
async function Yfe(i, e, t) {
|
|
78498
78505
|
const { files: s, writer: r } = i, { diskOffset: n, writable: a } = r;
|
|
@@ -78513,10 +78520,10 @@ async function Yfe(i, e, t) {
|
|
|
78513
78520
|
if (Q) {
|
|
78514
78521
|
H = new Uint8Array(9);
|
|
78515
78522
|
const $ = Ns(H);
|
|
78516
|
-
mt($, 0, g3), mt($, 2, 5), qc($, 4, _),
|
|
78523
|
+
mt($, 0, g3), mt($, 2, 5), qc($, 4, _), ot($, 5, Math.floor(B.getTime() / 1e3));
|
|
78517
78524
|
} else
|
|
78518
78525
|
H = new Uint8Array();
|
|
78519
|
-
A.rawExtraFieldCDExtendedTimestamp = H, u += 46 +
|
|
78526
|
+
A.rawExtraFieldCDExtendedTimestamp = H, u += 46 + lt(
|
|
78520
78527
|
L,
|
|
78521
78528
|
I,
|
|
78522
78529
|
D,
|
|
@@ -78553,11 +78560,11 @@ async function Yfe(i, e, t) {
|
|
|
78553
78560
|
diskNumberStart: te,
|
|
78554
78561
|
uncompressedSize: we,
|
|
78555
78562
|
compressedSize: et
|
|
78556
|
-
} = L, Yt =
|
|
78557
|
-
|
|
78563
|
+
} = L, Yt = lt(I, M, q, Q, _);
|
|
78564
|
+
ot(f, l, hpe), mt(f, l + 4, H);
|
|
78558
78565
|
const Gt = Ns($);
|
|
78559
|
-
ne ||
|
|
78560
|
-
const Is = 46 +
|
|
78566
|
+
ne || ot(Gt, 18, we), Y || ot(Gt, 14, et), ps(d, $, l + 6), mt(f, l + 30, Yt), mt(f, l + 32, lt(B)), mt(f, l + 34, G && oe ? ui : te), mt(f, l + 36, Ie), ge ? ot(f, l + 38, ge) : j && ue && qc(f, l + 38, Epe), ot(f, l + 42, G && re ? ci : D), ps(d, V, l + 46), ps(d, I, l + 46 + lt(V)), ps(d, M, l + 46 + lt(V, I)), ps(d, q, l + 46 + lt(V, I, M)), ps(d, Q, l + 46 + lt(V, I, M, q)), ps(d, _, l + 46 + lt(V, I, M, q, Q)), ps(d, B, l + 46 + lt(V) + Yt);
|
|
78567
|
+
const Is = 46 + lt(V, B) + Yt;
|
|
78561
78568
|
if (l - y > r.availableSize && (r.availableSize = 0, await Rr(a, d.slice(y, l)), y = l), l += Is, t.onprogress)
|
|
78562
78569
|
try {
|
|
78563
78570
|
await t.onprogress(A + 1, s.size, new X3(L));
|
|
@@ -78575,8 +78582,8 @@ async function Yfe(i, e, t) {
|
|
|
78575
78582
|
g = !0;
|
|
78576
78583
|
}
|
|
78577
78584
|
const b = new Uint8Array(g ? fpe : Gm), x = Ns(b);
|
|
78578
|
-
l = 0, g && (
|
|
78579
|
-
const T =
|
|
78585
|
+
l = 0, g && (ot(x, 0, dpe), hi(x, 4, BigInt(44)), mt(x, 12, 45), mt(x, 14, 45), ot(x, 16, v), ot(x, 20, o), hi(x, 24, BigInt(c)), hi(x, 32, BigInt(c)), hi(x, 40, BigInt(u)), hi(x, 48, BigInt(h)), ot(x, 56, ppe), hi(x, 64, BigInt(h) + BigInt(u)), ot(x, 72, v + 1), xt(i, t, "supportZip64SplitFile", !0) && (v = ui, o = ui), c = ui, h = ci, u = ci, l += m3 + f3), ot(x, l, cpe), mt(x, l + 4, v), mt(x, l + 6, o), mt(x, l + 8, c), mt(x, l + 10, c), ot(x, l + 12, u), ot(x, l + 16, h);
|
|
78586
|
+
const T = lt(e);
|
|
78580
78587
|
if (T)
|
|
78581
78588
|
if (T <= ui)
|
|
78582
78589
|
mt(x, l + 20, T);
|
|
@@ -78587,7 +78594,7 @@ async function Yfe(i, e, t) {
|
|
|
78587
78594
|
async function Rr(i, e) {
|
|
78588
78595
|
const t = i.getWriter();
|
|
78589
78596
|
try {
|
|
78590
|
-
await t.ready, i.size +=
|
|
78597
|
+
await t.ready, i.size += lt(e), await t.write(e);
|
|
78591
78598
|
} finally {
|
|
78592
78599
|
t.releaseLock();
|
|
78593
78600
|
}
|
|
@@ -78609,7 +78616,7 @@ function qc(i, e, t) {
|
|
|
78609
78616
|
function mt(i, e, t) {
|
|
78610
78617
|
i.setUint16(e, t, !0);
|
|
78611
78618
|
}
|
|
78612
|
-
function
|
|
78619
|
+
function ot(i, e, t) {
|
|
78613
78620
|
i.setUint32(e, t, !0);
|
|
78614
78621
|
}
|
|
78615
78622
|
function hi(i, e, t) {
|
|
@@ -78621,7 +78628,7 @@ function ps(i, e, t) {
|
|
|
78621
78628
|
function Ns(i) {
|
|
78622
78629
|
return new DataView(i.buffer);
|
|
78623
78630
|
}
|
|
78624
|
-
function
|
|
78631
|
+
function lt(...i) {
|
|
78625
78632
|
let e = 0;
|
|
78626
78633
|
return i.forEach((t) => t && (e += t.length)), e;
|
|
78627
78634
|
}
|
|
@@ -78642,7 +78649,7 @@ var Ym;
|
|
|
78642
78649
|
i.UTF8 = "utf8", i.ASCII = "ascii", i.UTF16 = "utf16";
|
|
78643
78650
|
})(Ym || (Ym = {}));
|
|
78644
78651
|
const Ea = wu("Filesystem", {
|
|
78645
|
-
web: () => import("./web-
|
|
78652
|
+
web: () => import("./web-DEK1IMF9.js").then((i) => new i.FilesystemWeb())
|
|
78646
78653
|
});
|
|
78647
78654
|
vi("Upload", async (i, e, t, s) => {
|
|
78648
78655
|
const r = i.sessionID || `sim_${Date.now()}_${Math.floor(Lt(0, 2176782336)).toString(36)}`, n = VV({
|
|
@@ -78859,9 +78866,9 @@ function ime({
|
|
|
78859
78866
|
e,
|
|
78860
78867
|
A
|
|
78861
78868
|
]);
|
|
78862
|
-
return
|
|
78869
|
+
return nt(() => {
|
|
78863
78870
|
o && !m.current && D && D();
|
|
78864
|
-
}, [o, D]),
|
|
78871
|
+
}, [o, D]), nt(() => {
|
|
78865
78872
|
y === "error" && (m.current = !1);
|
|
78866
78873
|
}, [y]), /* @__PURE__ */ R.jsx("div", { className: h ?? "", style: { position: "fixed", inset: 0 }, children: /* @__PURE__ */ R.jsxs("div", { className: `flex flex-col items-center justify-center gap-4 p-6 text-xl mt-16 px-10 h-full ${u ?? ""}`, children: [
|
|
78867
78874
|
y == "initial" && !o && /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
@@ -78905,7 +78912,7 @@ var iw;
|
|
|
78905
78912
|
i.None = "NONE", i.Slide = "SLIDE", i.Fade = "FADE";
|
|
78906
78913
|
})(iw || (iw = {}));
|
|
78907
78914
|
const t7 = wu("StatusBar"), s7 = wu("ImmersiveMode", {
|
|
78908
|
-
web: () => import("./web-
|
|
78915
|
+
web: () => import("./web-B1R-GYWu.js").then((i) => new i.ImmersiveModeWeb())
|
|
78909
78916
|
});
|
|
78910
78917
|
Ai("EnterFullscreen", "session");
|
|
78911
78918
|
vi("EnterFullscreen", xu, {});
|
|
@@ -78950,7 +78957,7 @@ function rme({
|
|
|
78950
78957
|
}
|
|
78951
78958
|
T.mozRequestFullScreen ? (T.mozRequestFullScreen(), b()) : T.webkitRequestFullscreen ? (T.webkitRequestFullscreen(), b()) : T.msRequestFullscreen ? (T.msRequestFullscreen(), b()) : console.warn("Fullscreen API is not supported by this browser.");
|
|
78952
78959
|
}, [m, b, v]);
|
|
78953
|
-
return
|
|
78960
|
+
return nt(() => () => {
|
|
78954
78961
|
v();
|
|
78955
78962
|
}, [v]), h ? /* @__PURE__ */ R.jsx("div", { className: `min-h-screen ${s ?? ""}` }) : /* @__PURE__ */ R.jsx(
|
|
78956
78963
|
wv,
|
|
@@ -78987,7 +78994,7 @@ function nme({
|
|
|
78987
78994
|
}, [a, n]), l = Xe(() => {
|
|
78988
78995
|
n(), t.current = !0, document.addEventListener("fullscreenchange", o), document.addEventListener("webkitfullscreenchange", o), document.addEventListener("mozfullscreenchange", o), document.addEventListener("MSFullscreenChange", o);
|
|
78989
78996
|
}, [o, n]);
|
|
78990
|
-
return
|
|
78997
|
+
return nt(() => ((async () => {
|
|
78991
78998
|
if (!Ul()) {
|
|
78992
78999
|
i({});
|
|
78993
79000
|
return;
|
|
@@ -79038,7 +79045,7 @@ function ep(i) {
|
|
|
79038
79045
|
T.target === c.current && (f(), g.removeEventListener("animationend", x), g.removeEventListener("animationcancel", x), m.current === 0 && T.type !== "animationcancel" && g.classList.remove(...b));
|
|
79039
79046
|
};
|
|
79040
79047
|
g.classList.add(...b), g.addEventListener("animationend", x), g.addEventListener("animationcancel", x);
|
|
79041
|
-
}, []),
|
|
79048
|
+
}, []), nt(() => {
|
|
79042
79049
|
const g = c.current, b = () => {
|
|
79043
79050
|
g.removeEventListener("animationend", b), r ? ame(g, h, n) : h();
|
|
79044
79051
|
};
|
|
@@ -79166,7 +79173,7 @@ function ume(i) {
|
|
|
79166
79173
|
x.style.transition = "transform 0.2s, opacity 0.2s", x.style.removeProperty("transform"), x.style.removeProperty("opacity");
|
|
79167
79174
|
}
|
|
79168
79175
|
}
|
|
79169
|
-
(f = Js.get((d = { id: i.toastId, containerId: i.containerId, fn: t }).containerId || 1)) == null || f.setToggle(d.id, d.fn),
|
|
79176
|
+
(f = Js.get((d = { id: i.toastId, containerId: i.containerId, fn: t }).containerId || 1)) == null || f.setToggle(d.id, d.fn), nt(() => {
|
|
79170
79177
|
if (i.pauseOnFocusLoss) return document.hasFocus() || v(), window.addEventListener("focus", y), window.addEventListener("blur", v), () => {
|
|
79171
79178
|
window.removeEventListener("focus", y), window.removeEventListener("blur", v);
|
|
79172
79179
|
};
|
|
@@ -79259,7 +79266,7 @@ Nt.loading = (i, e) => Bl(i, Bc("default", { isLoading: !0, autoClose: !1, close
|
|
|
79259
79266
|
tg.delete(i);
|
|
79260
79267
|
};
|
|
79261
79268
|
}, Nt.play = (i) => nw(!0, i), Nt.pause = (i) => nw(!1, i);
|
|
79262
|
-
const pme = typeof window < "u" ? Pg :
|
|
79269
|
+
const pme = typeof window < "u" ? Pg : nt, Bh = (i) => {
|
|
79263
79270
|
let { theme: e, type: t, isLoading: s, ...r } = i;
|
|
79264
79271
|
return Ze.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: e === "colored" ? "currentColor" : `var(--toastify-icon-color-${t})`, ...r });
|
|
79265
79272
|
}, Mf = { info: function(i) {
|
|
@@ -79325,7 +79332,7 @@ const yme = ({
|
|
|
79325
79332
|
timelineRepresentation: e
|
|
79326
79333
|
}) => {
|
|
79327
79334
|
const [t, s] = rt({}), [r, n] = rt([]), [a, o] = rt(""), [l, u] = rt("Copy URL"), [h, c] = rt(!1), [d, f] = rt(!1), [y, v] = rt([]), m = fe(null), g = [...i].filter((_) => _.name !== "includeSubset" && _.name !== "excludeSubset").sort((_, B) => _.name.localeCompare(B.name));
|
|
79328
|
-
|
|
79335
|
+
nt(() => {
|
|
79329
79336
|
const _ = new URLSearchParams(window.location.search), B = {}, H = [];
|
|
79330
79337
|
let $ = [], j = !1;
|
|
79331
79338
|
const G = _.get("includeSubset"), ne = _.get("excludeSubset"), Y = _.get("_b");
|
|
@@ -79388,7 +79395,7 @@ const yme = ({
|
|
|
79388
79395
|
});
|
|
79389
79396
|
}
|
|
79390
79397
|
s(B), n(H);
|
|
79391
|
-
}, [i]),
|
|
79398
|
+
}, [i]), nt(() => {
|
|
79392
79399
|
const _ = window.location.pathname.replace(/\/settings$/, "");
|
|
79393
79400
|
let B = "";
|
|
79394
79401
|
const H = { ...t };
|
|
@@ -79855,7 +79862,7 @@ Ai("RequestFilePermission", null);
|
|
|
79855
79862
|
vi("RequestFilePermission", xu, {});
|
|
79856
79863
|
function wme({ next: i }) {
|
|
79857
79864
|
const [e, t] = rt("checking");
|
|
79858
|
-
return
|
|
79865
|
+
return nt(() => {
|
|
79859
79866
|
if (e !== "checking") return;
|
|
79860
79867
|
(async () => {
|
|
79861
79868
|
if (Ed() !== "mobile" || Fa.getPlatform() !== "android") {
|
|
@@ -79926,7 +79933,7 @@ function Vme({
|
|
|
79926
79933
|
initCanvas: o
|
|
79927
79934
|
}) {
|
|
79928
79935
|
const { instructions: l, markers: u } = di(() => Vd(t), [t]), h = fe(0), c = fe(0), d = fe(!0), f = fe(null), y = fe(null), v = fe([]), m = fe(n ?? {}), g = fe(null), b = fe(0), x = fe(null);
|
|
79929
|
-
|
|
79936
|
+
nt(() => {
|
|
79930
79937
|
const Q = m.current._reactiveScreenRefreshRate, _ = typeof Q == "number" && Q >= 20 && Q <= 300;
|
|
79931
79938
|
x.current = _ ? 1e3 / Q : null;
|
|
79932
79939
|
}, [n]);
|
|
@@ -80066,7 +80073,7 @@ function Vme({
|
|
|
80066
80073
|
},
|
|
80067
80074
|
[l, T, V, L]
|
|
80068
80075
|
);
|
|
80069
|
-
return
|
|
80076
|
+
return nt(() => {
|
|
80070
80077
|
const Q = y.current;
|
|
80071
80078
|
if (!Q) return;
|
|
80072
80079
|
const _ = Ul() ? window.screen.width : window.innerWidth, B = Ul() ? window.screen.height : window.innerHeight;
|
|
@@ -80222,7 +80229,7 @@ function Sme({
|
|
|
80222
80229
|
next: n
|
|
80223
80230
|
}) {
|
|
80224
80231
|
const [a, o] = rt(!1), l = fe(!1);
|
|
80225
|
-
return
|
|
80232
|
+
return nt(() => {
|
|
80226
80233
|
if (l.current)
|
|
80227
80234
|
return;
|
|
80228
80235
|
(async () => {
|
|
@@ -80301,7 +80308,7 @@ function Tme({
|
|
|
80301
80308
|
saveButtonText: a = "Save Configuration"
|
|
80302
80309
|
}) {
|
|
80303
80310
|
const [o, l] = rt({}), [u, h] = rt({}), [c, d] = rt({});
|
|
80304
|
-
|
|
80311
|
+
nt(() => {
|
|
80305
80312
|
l(u7(n, t));
|
|
80306
80313
|
const g = {};
|
|
80307
80314
|
n.forEach((b) => {
|
|
@@ -80329,7 +80336,7 @@ function Tme({
|
|
|
80329
80336
|
}
|
|
80330
80337
|
return null;
|
|
80331
80338
|
};
|
|
80332
|
-
|
|
80339
|
+
nt(() => {
|
|
80333
80340
|
const g = {};
|
|
80334
80341
|
n.forEach((b) => {
|
|
80335
80342
|
const x = o[b.storeKey];
|
|
@@ -80466,7 +80473,7 @@ function l0(i) {
|
|
|
80466
80473
|
const e = fe(null);
|
|
80467
80474
|
return e.current === null && (e.current = i()), e.current;
|
|
80468
80475
|
}
|
|
80469
|
-
const Pme = typeof window < "u", u0 = Pme ? Pg :
|
|
80476
|
+
const Pme = typeof window < "u", u0 = Pme ? Pg : nt, sp = /* @__PURE__ */ fn(null);
|
|
80470
80477
|
function h0(i, e) {
|
|
80471
80478
|
i.indexOf(e) === -1 && i.push(e);
|
|
80472
80479
|
}
|
|
@@ -84518,7 +84525,7 @@ function M4(i = !0) {
|
|
|
84518
84525
|
if (e === null)
|
|
84519
84526
|
return [!0, null];
|
|
84520
84527
|
const { isPresent: t, onExitComplete: s, register: r } = e, n = Ig();
|
|
84521
|
-
|
|
84528
|
+
nt(() => {
|
|
84522
84529
|
if (i)
|
|
84523
84530
|
return r(n);
|
|
84524
84531
|
}, [i]);
|
|
@@ -84888,7 +84895,7 @@ function U1e(i, e, t, s, r, n) {
|
|
|
84888
84895
|
const g = t[J7], b = fe(!!g && typeof window < "u" && !((x = window.MotionHandoffIsComplete) != null && x.call(window, g)) && ((T = window.MotionHasOptimisedAnimation) == null ? void 0 : T.call(window, g)));
|
|
84889
84896
|
return u0(() => {
|
|
84890
84897
|
f.current = !0, y && (m.current = !0, window.MotionIsMounted = !0, y.updateFeatures(), y.scheduleRenderMicrotask(), b.current && y.animationState && y.animationState.animateChanges());
|
|
84891
|
-
}),
|
|
84898
|
+
}), nt(() => {
|
|
84892
84899
|
y && (!b.current && y.animationState && y.animationState.animateChanges(), b.current && (queueMicrotask(() => {
|
|
84893
84900
|
var A;
|
|
84894
84901
|
(A = window.MotionHandoffMarkAsComplete) == null || A.call(window, g);
|
|
@@ -85798,7 +85805,7 @@ const Z4 = fn({
|
|
|
85798
85805
|
theme: l = "light"
|
|
85799
85806
|
}) => {
|
|
85800
85807
|
const [u, h] = rt(0), [c, d] = rt({}), f = fe(), y = fe({}), v = c[u] !== !1, m = fe(v), [g, b] = rt(!1);
|
|
85801
|
-
|
|
85808
|
+
nt(() => {
|
|
85802
85809
|
if (v && !m.current) {
|
|
85803
85810
|
b(!0);
|
|
85804
85811
|
const I = setTimeout(() => b(!1), 300);
|
|
@@ -85826,16 +85833,16 @@ const Z4 = fn({
|
|
|
85826
85833
|
},
|
|
85827
85834
|
[A]
|
|
85828
85835
|
);
|
|
85829
|
-
|
|
85836
|
+
nt(() => () => {
|
|
85830
85837
|
f.current && clearTimeout(f.current);
|
|
85831
85838
|
}, []);
|
|
85832
85839
|
const V = Xe(() => {
|
|
85833
85840
|
u > 0 && h((I) => I - 1);
|
|
85834
85841
|
}, [u]);
|
|
85835
|
-
return
|
|
85842
|
+
return nt(() => {
|
|
85836
85843
|
if (a === !1 && o === !1) return;
|
|
85837
85844
|
const I = (M) => {
|
|
85838
|
-
a && M.key === a && L(), o && M.key === o && V();
|
|
85845
|
+
a && M.key === a && (M.preventDefault(), L()), o && M.key === o && (M.preventDefault(), V());
|
|
85839
85846
|
};
|
|
85840
85847
|
return window.addEventListener("keydown", I), () => window.removeEventListener("keydown", I);
|
|
85841
85848
|
}, [a, o, L, V]), /* @__PURE__ */ R.jsx(V1e, { children: /* @__PURE__ */ R.jsxs(
|
|
@@ -86193,7 +86200,7 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86193
86200
|
const _e = (90 - a) * Math.PI / 180;
|
|
86194
86201
|
return [Math.cos(_e), -Math.sin(_e)];
|
|
86195
86202
|
}, [a]), rs = fe([]), Le = fe(0);
|
|
86196
|
-
|
|
86203
|
+
nt(() => {
|
|
86197
86204
|
const _e = Math.floor(r * o), Ge = Math.floor(r * l);
|
|
86198
86205
|
rs.current = Array.from(
|
|
86199
86206
|
{ length: n },
|
|
@@ -86202,7 +86209,7 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86202
86209
|
return ns < _e ? bs = "coherent" : ns < _e + Ge ? bs = "opposite" : bs = D, Nye(bs, h, Et);
|
|
86203
86210
|
})
|
|
86204
86211
|
);
|
|
86205
|
-
}, []),
|
|
86212
|
+
}, []), nt(() => {
|
|
86206
86213
|
typeof G == "number" && G >= 20 && G <= 300 && (et.current = 1e3 / G, Yt.current = !0);
|
|
86207
86214
|
}, [G]), AP(e, () => ({
|
|
86208
86215
|
getStats: () => ({
|
|
@@ -86312,9 +86319,9 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86312
86319
|
V
|
|
86313
86320
|
]
|
|
86314
86321
|
);
|
|
86315
|
-
return
|
|
86322
|
+
return nt(() => (re.current = requestAnimationFrame(Ct), () => {
|
|
86316
86323
|
re.current && cancelAnimationFrame(re.current);
|
|
86317
|
-
}), [Ct]),
|
|
86324
|
+
}), [Ct]), nt(() => {
|
|
86318
86325
|
const _e = oe.current;
|
|
86319
86326
|
if (!_e) return;
|
|
86320
86327
|
const Ge = window.devicePixelRatio || 1;
|
|
@@ -86385,22 +86392,22 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86385
86392
|
measuredRefreshRate: (Te == null ? void 0 : Te.measuredRefreshRate) ?? null
|
|
86386
86393
|
});
|
|
86387
86394
|
}, []);
|
|
86388
|
-
return
|
|
86395
|
+
return nt(() => {
|
|
86389
86396
|
if (_ <= 0) return;
|
|
86390
86397
|
const Le = setTimeout(() => Gt(!0), _);
|
|
86391
86398
|
return () => clearTimeout(Le);
|
|
86392
|
-
}, [_]),
|
|
86399
|
+
}, [_]), nt(() => {
|
|
86393
86400
|
const Le = t ?? c;
|
|
86394
86401
|
if (Le <= 0) return;
|
|
86395
86402
|
const st = setTimeout(() => Et(!1), _ + Le);
|
|
86396
86403
|
return () => clearTimeout(st);
|
|
86397
|
-
}, [_, t, c]),
|
|
86404
|
+
}, [_, t, c]), nt(() => {
|
|
86398
86405
|
if (c <= 0) return;
|
|
86399
86406
|
const Le = setTimeout(() => {
|
|
86400
86407
|
rs(ge.current, te.current);
|
|
86401
86408
|
}, _ + c);
|
|
86402
86409
|
return () => clearTimeout(Le);
|
|
86403
|
-
}, [_, c, rs]),
|
|
86410
|
+
}, [_, c, rs]), nt(() => {
|
|
86404
86411
|
const Le = (st) => {
|
|
86405
86412
|
if (Ie.current || ge.current) return;
|
|
86406
86413
|
const Mt = st.key.toLowerCase(), zt = h.length > 0 ? h.map((Ct) => Ct.toLowerCase()) : null;
|
|
@@ -86543,7 +86550,7 @@ function pCe({
|
|
|
86543
86550
|
const q = a.instructions.length;
|
|
86544
86551
|
return q > 0 ? d / q : 0;
|
|
86545
86552
|
}, [d, a.instructions]);
|
|
86546
|
-
|
|
86553
|
+
nt(() => {
|
|
86547
86554
|
window.scrollTo(0, 0);
|
|
86548
86555
|
}, [d]);
|
|
86549
86556
|
function T(q) {
|
|
@@ -86598,7 +86605,7 @@ function pCe({
|
|
|
86598
86605
|
return H = requestAnimationFrame(Y), ne;
|
|
86599
86606
|
}, []), D = ({ children: q, collectRefreshRate: Q }) => {
|
|
86600
86607
|
const _ = fe(null), B = fe(null);
|
|
86601
|
-
|
|
86608
|
+
nt(() => {
|
|
86602
86609
|
if (_.current = Qs(), Q)
|
|
86603
86610
|
return L((j) => {
|
|
86604
86611
|
B.current = j, T({ _reactiveScreenRefreshRate: j });
|
|
@@ -86623,7 +86630,7 @@ function pCe({
|
|
|
86623
86630
|
const q = V.content;
|
|
86624
86631
|
return !Xf(q) || q.simulate === !1 ? !1 : !!q.simulate || !!q.simulators;
|
|
86625
86632
|
}, [d, y, V]);
|
|
86626
|
-
|
|
86633
|
+
nt(() => {
|
|
86627
86634
|
I && m.current !== d && (m.current = d, (async () => {
|
|
86628
86635
|
const q = V.content, { trialProps: Q, simulateFn: _, simulators: B } = wV(q, o.current, c.current), H = await _(
|
|
86629
86636
|
Q,
|