@mblinkov/whats-missing 20.0.55 → 20.0.56
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/AdaptiveGameShell.d.ts +6 -0
- package/dist/index.d.ts +3 -1
- package/dist/whats-missing.cjs.js +3 -3
- package/dist/whats-missing.es.js +634 -555
- package/package.json +1 -1
package/dist/whats-missing.es.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
const
|
|
1
|
+
import { jsx as t, jsxs as l, Fragment as Mn } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as F, useEffect as _, useState as r, useMemo as Rn } from "react";
|
|
3
|
+
const ri = `
|
|
4
4
|
@keyframes spin {
|
|
5
5
|
from { transform: rotate(0deg); }
|
|
6
6
|
to { transform: rotate(360deg); }
|
|
7
7
|
}
|
|
8
8
|
`;
|
|
9
9
|
if (typeof document < "u" && !document.getElementById("spin-keyframes")) {
|
|
10
|
-
const
|
|
11
|
-
|
|
10
|
+
const w = document.createElement("style");
|
|
11
|
+
w.id = "spin-keyframes", w.innerHTML = ri, document.head.appendChild(w);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const hi = {
|
|
14
14
|
animation: "spin 1.4s linear infinite"
|
|
15
|
-
},
|
|
15
|
+
}, e = {
|
|
16
16
|
gmCenterScreen: {
|
|
17
17
|
position: "relative",
|
|
18
18
|
zIndex: 1,
|
|
@@ -124,8 +124,8 @@ const si = {
|
|
|
124
124
|
// ✅ Обновлено только для качества логотипа
|
|
125
125
|
gmLogoFixed: {
|
|
126
126
|
position: "absolute",
|
|
127
|
-
top: "
|
|
128
|
-
left: "
|
|
127
|
+
top: "28px",
|
|
128
|
+
left: "16px",
|
|
129
129
|
width: "120px",
|
|
130
130
|
zIndex: 10,
|
|
131
131
|
pointerEvents: "none",
|
|
@@ -145,13 +145,13 @@ const si = {
|
|
|
145
145
|
},
|
|
146
146
|
gmHourglass: {
|
|
147
147
|
fontSize: "42px",
|
|
148
|
-
...
|
|
148
|
+
...hi
|
|
149
149
|
}
|
|
150
|
-
},
|
|
151
|
-
src: `${
|
|
150
|
+
}, si = window.origin + "/cloud/speakid/games/whatsmissing/", C = (w, a) => w.map(([g, s, ...p]) => ({
|
|
151
|
+
src: `${si}${a}/${s.replace(/\s/g, "%20")}.png`,
|
|
152
152
|
name: s,
|
|
153
|
-
aliases:
|
|
154
|
-
})),
|
|
153
|
+
aliases: p?.length ? p : void 0
|
|
154
|
+
})), ai = [
|
|
155
155
|
["apple", "apple"],
|
|
156
156
|
["banana", "banana"],
|
|
157
157
|
["bread", "bread"],
|
|
@@ -177,7 +177,7 @@ const si = {
|
|
|
177
177
|
["strawberry", "strawberry"],
|
|
178
178
|
["tomato", "tomato"],
|
|
179
179
|
["watermelon", "watermelon"]
|
|
180
|
-
],
|
|
180
|
+
], gi = [
|
|
181
181
|
["bear", "bear"],
|
|
182
182
|
["cat", "cat"],
|
|
183
183
|
["crocodile", "crocodile", "alligator"],
|
|
@@ -197,7 +197,7 @@ const si = {
|
|
|
197
197
|
["tortoise", "tortoise", "turtle"],
|
|
198
198
|
["wolf", "wolf"],
|
|
199
199
|
["zebra", "zebra"]
|
|
200
|
-
],
|
|
200
|
+
], pi = [
|
|
201
201
|
["ball", "ball"],
|
|
202
202
|
["balloon", "balloon"],
|
|
203
203
|
["blocks", "blocks"],
|
|
@@ -217,7 +217,7 @@ const si = {
|
|
|
217
217
|
["teddy_bear", "teddy bear"],
|
|
218
218
|
["yo-yo", "yo-yo"],
|
|
219
219
|
["crayons", "crayons"]
|
|
220
|
-
],
|
|
220
|
+
], li = [
|
|
221
221
|
["t-shirt", "T-shirt"],
|
|
222
222
|
["dress", "dress"],
|
|
223
223
|
["hat", "hat"],
|
|
@@ -233,7 +233,7 @@ const si = {
|
|
|
233
233
|
["cap", "cap"],
|
|
234
234
|
["boots", "boots"],
|
|
235
235
|
["pyjamas", "pyjamas"]
|
|
236
|
-
],
|
|
236
|
+
], ci = [
|
|
237
237
|
["car", "car"],
|
|
238
238
|
["bus", "bus"],
|
|
239
239
|
["bike", "bike"],
|
|
@@ -249,7 +249,7 @@ const si = {
|
|
|
249
249
|
["motorbike", "motorbike"],
|
|
250
250
|
["tram", "tram"],
|
|
251
251
|
["submarine", "submarine"]
|
|
252
|
-
],
|
|
252
|
+
], xi = [
|
|
253
253
|
["sun", "sun"],
|
|
254
254
|
["cloud", "cloud"],
|
|
255
255
|
["rain", "rain"],
|
|
@@ -265,7 +265,7 @@ const si = {
|
|
|
265
265
|
["snow", "snow"],
|
|
266
266
|
["butterfly", "butterfly"],
|
|
267
267
|
["bird", "bird"]
|
|
268
|
-
],
|
|
268
|
+
], Hi = [
|
|
269
269
|
["bed", "bed"],
|
|
270
270
|
["table", "table"],
|
|
271
271
|
["chair", "chair"],
|
|
@@ -281,7 +281,7 @@ const si = {
|
|
|
281
281
|
["plate", "plate"],
|
|
282
282
|
["mirror", "mirror"],
|
|
283
283
|
["book", "book"]
|
|
284
|
-
],
|
|
284
|
+
], Wi = [
|
|
285
285
|
["book", "book"],
|
|
286
286
|
["pen", "pen"],
|
|
287
287
|
["pencil", "pencil"],
|
|
@@ -297,16 +297,16 @@ const si = {
|
|
|
297
297
|
["pencil_case", "pencil case"],
|
|
298
298
|
["paintbrush", "paintbrush"],
|
|
299
299
|
["backpack", "backpack"]
|
|
300
|
-
],
|
|
301
|
-
food:
|
|
302
|
-
animals:
|
|
303
|
-
toys:
|
|
304
|
-
clothes:
|
|
305
|
-
transport:
|
|
306
|
-
nature:
|
|
307
|
-
home:
|
|
308
|
-
school:
|
|
309
|
-
},
|
|
300
|
+
], Q = {
|
|
301
|
+
food: C(ai, "food"),
|
|
302
|
+
animals: C(gi, "animals"),
|
|
303
|
+
toys: C(pi, "toys"),
|
|
304
|
+
clothes: C(li, "clothes"),
|
|
305
|
+
transport: C(ci, "transport"),
|
|
306
|
+
nature: C(xi, "nature"),
|
|
307
|
+
home: C(Hi, "home"),
|
|
308
|
+
school: C(Wi, "school")
|
|
309
|
+
}, mi = [
|
|
310
310
|
"animals",
|
|
311
311
|
"food",
|
|
312
312
|
"toys",
|
|
@@ -315,7 +315,7 @@ const si = {
|
|
|
315
315
|
"nature",
|
|
316
316
|
"home",
|
|
317
317
|
"school"
|
|
318
|
-
],
|
|
318
|
+
], ui = {
|
|
319
319
|
animals: "🐶 Animals",
|
|
320
320
|
food: "🍎 Food",
|
|
321
321
|
toys: "🧸 Toys",
|
|
@@ -324,9 +324,9 @@ const si = {
|
|
|
324
324
|
nature: "🌳 Nature",
|
|
325
325
|
home: "🏠 Home",
|
|
326
326
|
school: "📚 School"
|
|
327
|
-
},
|
|
328
|
-
const
|
|
329
|
-
|
|
327
|
+
}, fi = () => {
|
|
328
|
+
const w = document.createElement("style");
|
|
329
|
+
w.id = "whats-missing-reset", w.textContent = `
|
|
330
330
|
#whats-missing-root, #whats-missing-root * {
|
|
331
331
|
box-sizing: border-box;
|
|
332
332
|
font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
|
|
@@ -354,9 +354,9 @@ const si = {
|
|
|
354
354
|
}
|
|
355
355
|
`;
|
|
356
356
|
const a = document.getElementById("whats-missing-reset");
|
|
357
|
-
a && a.remove(), document.head.appendChild(
|
|
357
|
+
a && a.remove(), document.head.appendChild(w);
|
|
358
358
|
};
|
|
359
|
-
class
|
|
359
|
+
class yi {
|
|
360
360
|
constructor(a) {
|
|
361
361
|
this.seed = a;
|
|
362
362
|
}
|
|
@@ -370,180 +370,173 @@ class bi {
|
|
|
370
370
|
return Math.floor(this.next() * a);
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
const
|
|
374
|
-
const g = Array.from({ length:
|
|
375
|
-
for (let s = 0; s <=
|
|
373
|
+
const bi = (w, a) => {
|
|
374
|
+
const g = Array.from({ length: w.length + 1 }, () => Array(a.length + 1).fill(0));
|
|
375
|
+
for (let s = 0; s <= w.length; s++) g[s][0] = s;
|
|
376
376
|
for (let s = 0; s <= a.length; s++) g[0][s] = s;
|
|
377
|
-
for (let s = 1; s <=
|
|
378
|
-
for (let
|
|
379
|
-
g[s][
|
|
380
|
-
return g[
|
|
381
|
-
},
|
|
377
|
+
for (let s = 1; s <= w.length; s++)
|
|
378
|
+
for (let p = 1; p <= a.length; p++)
|
|
379
|
+
g[s][p] = w[s - 1] === a[p - 1] ? g[s - 1][p - 1] : Math.min(g[s - 1][p - 1], g[s][p - 1], g[s - 1][p]) + 1;
|
|
380
|
+
return g[w.length][a.length];
|
|
381
|
+
}, ki = (w) => new Promise((a) => {
|
|
382
382
|
const g = new Image();
|
|
383
|
-
g.onload = () => a(g), g.onerror = () => a(g), g.src =
|
|
384
|
-
}),
|
|
385
|
-
const g = /* @__PURE__ */ new Map(), s =
|
|
386
|
-
const S = await
|
|
387
|
-
g.set(
|
|
383
|
+
g.onload = () => a(g), g.onerror = () => a(g), g.src = w;
|
|
384
|
+
}), cn = async (w, a) => {
|
|
385
|
+
const g = /* @__PURE__ */ new Map(), s = w.map(async (p) => {
|
|
386
|
+
const S = await ki(p);
|
|
387
|
+
g.set(p, S);
|
|
388
388
|
});
|
|
389
389
|
return await Promise.allSettled(s), g;
|
|
390
390
|
};
|
|
391
|
-
function
|
|
392
|
-
gameCubeSize:
|
|
391
|
+
function vi({
|
|
392
|
+
gameCubeSize: w,
|
|
393
393
|
screenHeight: a,
|
|
394
394
|
screenWidth: g,
|
|
395
395
|
seed: s
|
|
396
396
|
}) {
|
|
397
|
-
const
|
|
398
|
-
|
|
397
|
+
const p = F(null);
|
|
398
|
+
_(() => (fi(), () => {
|
|
399
399
|
document.documentElement.style.overflow = "", document.body.style.overflow = "";
|
|
400
400
|
const i = document.getElementById("whats-missing-reset");
|
|
401
|
-
i && i.remove(),
|
|
401
|
+
i && i.remove(), P.current && P.current.abort();
|
|
402
402
|
}), []);
|
|
403
|
-
const [S,
|
|
404
|
-
|
|
405
|
-
s !== void 0 ?
|
|
403
|
+
const [S, U] = r(null), [k, D] = r([]), [G, Ln] = r(4), [xn, en] = r(1), [B, Hn] = r(!1), [Y, Wn] = r(1), [z, Cn] = r(null), [T, O] = r("ready"), [mn, un] = r(10), [tn, on] = r(10), [wn, fn] = r(20), [Bn, dn] = r(0), [V, rn] = r(!1), [N, yn] = r(""), [A, hn] = r(!1), [sn, bn] = r(!1), [kn, $] = r(null), [An, an] = r([]), [En, vn] = r([]), [n, jn] = r(!1), [Dn, Z] = r(1), [Sn, q] = r(null), [I, Gn] = r(!1), [c, $n] = r(!1), [x, Fn] = r(!1), [H, _n] = r(!1), [W, Un] = r(!1), [m, Yn] = r(!1), [u, On] = r(!1), [f, Vn] = r(!1), [y, Nn] = r(!1), [M, Zn] = r(!1), gn = F(/* @__PURE__ */ new Set()), K = F(/* @__PURE__ */ new Map()), P = F(null), E = F(null);
|
|
404
|
+
_(() => {
|
|
405
|
+
s !== void 0 ? E.current = new yi(s) : E.current = null;
|
|
406
406
|
}, [s]);
|
|
407
|
-
const
|
|
408
|
-
|
|
407
|
+
const qn = () => E.current ? E.current.next() : Math.random(), In = (i) => E.current ? E.current.nextInt(i) : Math.floor(Math.random() * i);
|
|
408
|
+
_(() => {
|
|
409
409
|
const i = () => {
|
|
410
|
-
const
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
if (qn(oi), Dn(r), r)
|
|
416
|
-
O(d && d >= 320 ? d : null), V(1);
|
|
417
|
-
else if (y)
|
|
418
|
-
O(d && d >= 400 ? d : null), V(1);
|
|
410
|
+
const o = g ?? window.innerWidth, d = a ?? window.innerHeight, h = o < 768 || o === 926 && d === 428 || o === 932 && d === 430, b = d < 700, R = o / d > 1.8, v = o === 768 && d === 1024, zn = o === 1024 && d === 768, J = o === 820 && d === 1180, L = o === 1180 && d === 820, j = o === 540 && d === 720, ii = o === 720 && d === 540, ei = o === 1024 && d === 1366, ti = o === 1366 && d === 1024, oi = o >= 1200 && d >= 600 && !h;
|
|
411
|
+
if (Gn(oi), $n(v), Fn(zn), _n(J), Un(L), Yn(j), On(ii), Vn(ei), Nn(ti), Zn(R), jn(h), h)
|
|
412
|
+
q(w && w >= 320 ? w : null), Z(1);
|
|
413
|
+
else if (b)
|
|
414
|
+
q(w && w >= 400 ? w : null), Z(1);
|
|
419
415
|
else if (R) {
|
|
420
|
-
const
|
|
421
|
-
|
|
416
|
+
const ln = w ? Math.max(400, Math.min(1200, w)) : Math.min(1e3, Math.min(o, d) * 0.9);
|
|
417
|
+
q(ln), Z(0.85);
|
|
422
418
|
} else {
|
|
423
|
-
const
|
|
424
|
-
|
|
419
|
+
const ln = w ? Math.max(400, Math.min(1200, w)) : Math.min(1e3, Math.min(o, d) * 0.9);
|
|
420
|
+
q(ln), Z(1);
|
|
425
421
|
}
|
|
426
422
|
};
|
|
427
423
|
return i(), window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
|
|
428
|
-
}, [g, a,
|
|
429
|
-
const
|
|
430
|
-
|
|
431
|
-
const
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
424
|
+
}, [g, a, w]);
|
|
425
|
+
const pn = (i) => [...i].sort(() => qn() - 0.5).slice(0, 6), Kn = (i) => {
|
|
426
|
+
P.current && P.current.abort(), P.current = new AbortController();
|
|
427
|
+
const d = Q[i].map((h) => h.src);
|
|
428
|
+
cn(d, P.current.signal).then((h) => {
|
|
429
|
+
d.forEach((b) => {
|
|
430
|
+
gn.current.add(b), h.has(b) && K.current.set(b, h.get(b));
|
|
435
431
|
});
|
|
436
432
|
}).catch(() => {
|
|
437
433
|
});
|
|
438
434
|
}, Tn = () => {
|
|
439
435
|
if (!S) return;
|
|
440
|
-
const i =
|
|
441
|
-
|
|
442
|
-
const
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
436
|
+
const i = pn(Q[S]);
|
|
437
|
+
D(i), Hn(!0), rn(!1), Wn(1), dn(0), an([]), vn([]);
|
|
438
|
+
const o = i.map((d) => d.src);
|
|
439
|
+
cn(o, P.current?.signal).then((d) => {
|
|
440
|
+
o.forEach((h) => {
|
|
441
|
+
gn.current.add(h), d.has(h) && K.current.set(h, d.get(h));
|
|
446
442
|
});
|
|
447
443
|
}).catch(() => {
|
|
448
444
|
}), Pn(i, [], !0);
|
|
449
|
-
}, Pn = (i =
|
|
450
|
-
const
|
|
451
|
-
let
|
|
452
|
-
for (;
|
|
453
|
-
|
|
454
|
-
if (
|
|
455
|
-
const
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
445
|
+
}, Pn = (i = k, o = En, d = !1) => {
|
|
446
|
+
const h = pn(i.length ? i : Q[S]);
|
|
447
|
+
let b = In(h.length), R = h[b].name, v = 0;
|
|
448
|
+
for (; o.includes(R) && v < 20; )
|
|
449
|
+
b = In(h.length), R = h[b].name, v++;
|
|
450
|
+
if (D(h), Cn(b), vn([...o, R]), hn(!1), yn(""), fn(20), $(null), S && !d) {
|
|
451
|
+
const J = pn(Q[S].filter((L) => !o.includes(L.name))).map((L) => L.src);
|
|
452
|
+
cn(J, P.current?.signal).then((L) => {
|
|
453
|
+
J.forEach((j) => {
|
|
454
|
+
gn.current.add(j), L.has(j) && K.current.set(j, L.get(j));
|
|
459
455
|
});
|
|
460
456
|
}).catch(() => {
|
|
461
457
|
});
|
|
462
458
|
}
|
|
463
|
-
|
|
459
|
+
d ? (O("ready"), un(10), on(10)) : (O("memorize"), on(10));
|
|
464
460
|
};
|
|
465
|
-
|
|
466
|
-
if (!(!
|
|
467
|
-
if (
|
|
468
|
-
if (mn <= 0)
|
|
461
|
+
_(() => {
|
|
462
|
+
if (!(!B || V || A)) {
|
|
463
|
+
if (T === "ready")
|
|
464
|
+
if (mn <= 0) O("memorize");
|
|
469
465
|
else {
|
|
470
|
-
const i = setTimeout(() => un((
|
|
466
|
+
const i = setTimeout(() => un((o) => o - 1), 1e3);
|
|
471
467
|
return () => clearTimeout(i);
|
|
472
468
|
}
|
|
473
|
-
if (
|
|
474
|
-
if (
|
|
469
|
+
if (T === "memorize")
|
|
470
|
+
if (tn <= 0) O("guess");
|
|
475
471
|
else {
|
|
476
|
-
const i = setTimeout(() =>
|
|
472
|
+
const i = setTimeout(() => on((o) => o - 1), 1e3);
|
|
477
473
|
return () => clearTimeout(i);
|
|
478
474
|
}
|
|
479
|
-
if (
|
|
480
|
-
if (
|
|
481
|
-
|
|
482
|
-
const
|
|
483
|
-
|
|
484
|
-
...
|
|
485
|
-
{ round: Y, answer: N, correct:
|
|
475
|
+
if (T === "guess") {
|
|
476
|
+
if (wn <= 0) {
|
|
477
|
+
hn(!0), $("wrong");
|
|
478
|
+
const o = k[z].name, d = k[z].aliases, h = [o, ...d || []].join(", ");
|
|
479
|
+
an((b) => [
|
|
480
|
+
...b,
|
|
481
|
+
{ round: Y, answer: N, correct: h, result: "wrong" }
|
|
486
482
|
]);
|
|
487
483
|
return;
|
|
488
484
|
}
|
|
489
|
-
const i = setTimeout(() => fn((
|
|
485
|
+
const i = setTimeout(() => fn((o) => o - 1), 1e3);
|
|
490
486
|
return () => clearTimeout(i);
|
|
491
487
|
}
|
|
492
488
|
}
|
|
493
489
|
}, [
|
|
494
|
-
|
|
490
|
+
T,
|
|
495
491
|
mn,
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
A,
|
|
499
|
-
$,
|
|
500
|
-
E,
|
|
492
|
+
tn,
|
|
493
|
+
wn,
|
|
501
494
|
B,
|
|
502
|
-
|
|
495
|
+
V,
|
|
496
|
+
A,
|
|
497
|
+
k,
|
|
498
|
+
z,
|
|
503
499
|
Y,
|
|
504
500
|
N
|
|
505
501
|
]);
|
|
506
|
-
const
|
|
507
|
-
if (
|
|
508
|
-
const i =
|
|
509
|
-
let
|
|
510
|
-
const
|
|
511
|
-
|
|
512
|
-
...
|
|
513
|
-
{ round: Y, answer:
|
|
502
|
+
const Jn = () => {
|
|
503
|
+
if (z === null || sn) return;
|
|
504
|
+
const i = k[z].name, o = k[z].aliases, d = N.toLowerCase().trim();
|
|
505
|
+
let h = "wrong";
|
|
506
|
+
const b = [i, ...o || []].map((v) => v.toLowerCase()), R = [i, ...o || []].join(", ");
|
|
507
|
+
b.includes(d) ? (dn((v) => v + 1), $("correct"), h = "correct") : b.some((v) => bi(d, v) === 1) ? (dn((v) => v + 0.5), $("almost"), h = "almost") : ($("wrong"), h = "wrong"), an((v) => [
|
|
508
|
+
...v,
|
|
509
|
+
{ round: Y, answer: d, correct: R, result: h }
|
|
514
510
|
]), bn(!0), setTimeout(() => {
|
|
515
|
-
bn(!1),
|
|
511
|
+
bn(!1), hn(!0);
|
|
516
512
|
}, 600);
|
|
517
|
-
},
|
|
518
|
-
|
|
519
|
-
},
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
"
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
"
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
);
|
|
542
|
-
}, [n, g, a]);
|
|
543
|
-
return /* @__PURE__ */ w(
|
|
513
|
+
}, Qn = () => Y < G ? (Wn((i) => i + 1), Pn()) : rn(!0), Xn = () => {
|
|
514
|
+
P.current && P.current.abort(), Hn(!1), rn(!1), U(null), en(2);
|
|
515
|
+
}, ni = Rn(() => (
|
|
516
|
+
// ensure logo is positioned inside the square container
|
|
517
|
+
/* @__PURE__ */ t("div", { style: { ...e.gmLogoFixed, position: "absolute", top: 28, left: 16, zIndex: 30 }, children: /* @__PURE__ */ l("picture", { children: [
|
|
518
|
+
/* @__PURE__ */ t(
|
|
519
|
+
"source",
|
|
520
|
+
{
|
|
521
|
+
srcSet: window.origin + "/cloud/speakid/games/whatsmissing/logo.svg",
|
|
522
|
+
type: "image/svg+xml"
|
|
523
|
+
}
|
|
524
|
+
),
|
|
525
|
+
/* @__PURE__ */ t(
|
|
526
|
+
"img",
|
|
527
|
+
{
|
|
528
|
+
src: window.origin + "/cloud/speakid/games/whatsmissing/logo.png",
|
|
529
|
+
alt: "SPEAKID Logo",
|
|
530
|
+
style: e.gmLogoImg,
|
|
531
|
+
loading: "lazy"
|
|
532
|
+
}
|
|
533
|
+
)
|
|
534
|
+
] }) })
|
|
535
|
+
), []);
|
|
536
|
+
return /* @__PURE__ */ l(
|
|
544
537
|
"div",
|
|
545
538
|
{
|
|
546
|
-
ref:
|
|
539
|
+
ref: p,
|
|
547
540
|
style: {
|
|
548
541
|
width: "100%",
|
|
549
542
|
height: "100%",
|
|
@@ -559,423 +552,507 @@ function Ti({
|
|
|
559
552
|
right: 0,
|
|
560
553
|
bottom: 0
|
|
561
554
|
},
|
|
562
|
-
children:
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
/* @__PURE__ */
|
|
596
|
-
|
|
597
|
-
/* @__PURE__ */
|
|
598
|
-
|
|
555
|
+
children: [
|
|
556
|
+
ni,
|
|
557
|
+
/* @__PURE__ */ t(
|
|
558
|
+
"div",
|
|
559
|
+
{
|
|
560
|
+
style: {
|
|
561
|
+
width: n ? "100%" : Sn || w || 1e3,
|
|
562
|
+
height: n ? "100%" : Sn || w || 1e3,
|
|
563
|
+
display: "flex",
|
|
564
|
+
justifyContent: "center",
|
|
565
|
+
alignItems: "center",
|
|
566
|
+
overflow: "hidden",
|
|
567
|
+
borderRadius: 0,
|
|
568
|
+
background: "transparent",
|
|
569
|
+
boxShadow: "none",
|
|
570
|
+
margin: "0 auto",
|
|
571
|
+
position: "relative",
|
|
572
|
+
// needed so absolute logo is inside the square
|
|
573
|
+
transform: `scale(${Dn})`
|
|
574
|
+
// ✅ Применяем масштаб для широких экранов
|
|
575
|
+
},
|
|
576
|
+
children: /* @__PURE__ */ t(
|
|
577
|
+
"div",
|
|
578
|
+
{
|
|
579
|
+
style: {
|
|
580
|
+
transform: "translateZ(0)",
|
|
581
|
+
width: "100%",
|
|
582
|
+
height: "100%",
|
|
583
|
+
display: "flex",
|
|
584
|
+
justifyContent: "center",
|
|
585
|
+
alignItems: "center"
|
|
586
|
+
},
|
|
587
|
+
children: /* @__PURE__ */ l("div", { id: "whats-missing-root", style: { position: "relative", width: "100%", height: "100%" }, children: [
|
|
588
|
+
!S && !B && xn === 1 && /* @__PURE__ */ l("div", { style: { ...e.gmCenterScreen, transform: "none" }, children: [
|
|
589
|
+
/* @__PURE__ */ t("h1", { style: e.gmHeadline1, children: "WHAT'S MISSING?" }),
|
|
590
|
+
/* @__PURE__ */ l("div", { style: { marginTop: 24 }, children: [
|
|
591
|
+
/* @__PURE__ */ t("p", { style: e.gmBodyS, children: "Choose number of rounds:" }),
|
|
592
|
+
/* @__PURE__ */ t(
|
|
593
|
+
"div",
|
|
594
|
+
{
|
|
595
|
+
style: {
|
|
596
|
+
display: "flex",
|
|
597
|
+
gap: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px" : "12px",
|
|
598
|
+
marginTop: 8
|
|
599
|
+
},
|
|
600
|
+
children: [3, 4, 5].map((i) => /* @__PURE__ */ t(
|
|
601
|
+
"button",
|
|
602
|
+
{
|
|
603
|
+
style: {
|
|
604
|
+
...e.gmButton,
|
|
605
|
+
...G === i ? e.gmButtonActive : {},
|
|
606
|
+
padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 12px" : "14px 28px",
|
|
607
|
+
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "13px" : "18px",
|
|
608
|
+
minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "48px" : "64px"
|
|
609
|
+
},
|
|
610
|
+
onClick: () => Ln(i),
|
|
611
|
+
children: i
|
|
612
|
+
},
|
|
613
|
+
i
|
|
614
|
+
))
|
|
615
|
+
}
|
|
616
|
+
)
|
|
617
|
+
] }),
|
|
618
|
+
/* @__PURE__ */ t(
|
|
619
|
+
"button",
|
|
620
|
+
{
|
|
621
|
+
style: {
|
|
622
|
+
...e.gmButton,
|
|
623
|
+
marginTop: 24,
|
|
624
|
+
padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "10px 20px" : "14px 30px",
|
|
625
|
+
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "15px" : "18px",
|
|
626
|
+
minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "132px" : "160px"
|
|
627
|
+
},
|
|
628
|
+
onClick: () => en(2),
|
|
629
|
+
children: "Play"
|
|
630
|
+
}
|
|
631
|
+
)
|
|
632
|
+
] }),
|
|
633
|
+
!S && !B && xn === 2 && /* @__PURE__ */ l("div", { style: e.gmCenterScreen, children: [
|
|
634
|
+
/* @__PURE__ */ t("p", { style: e.gmBodyM, children: "Select a theme:" }),
|
|
635
|
+
/* @__PURE__ */ l("p", { style: e.gmBodyS, children: [
|
|
636
|
+
"Rounds: ",
|
|
637
|
+
G
|
|
638
|
+
] }),
|
|
639
|
+
/* @__PURE__ */ t(
|
|
599
640
|
"div",
|
|
600
641
|
{
|
|
601
642
|
style: {
|
|
602
|
-
display: "
|
|
603
|
-
|
|
604
|
-
|
|
643
|
+
display: "grid",
|
|
644
|
+
gridTemplateColumns: n ? "repeat(2, 1fr)" : "repeat(4, 1fr)",
|
|
645
|
+
gap: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px" : "12px",
|
|
646
|
+
maxWidth: n ? 280 : 420,
|
|
647
|
+
margin: "0 auto"
|
|
605
648
|
},
|
|
606
|
-
children:
|
|
649
|
+
children: mi.map((i) => /* @__PURE__ */ t(
|
|
607
650
|
"button",
|
|
608
651
|
{
|
|
609
652
|
style: {
|
|
610
|
-
...
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
|
|
614
|
-
minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "40px" : "auto"
|
|
653
|
+
...e.gmButton,
|
|
654
|
+
padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 12px" : "10px 16px",
|
|
655
|
+
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "14px"
|
|
615
656
|
},
|
|
616
|
-
onClick: () =>
|
|
617
|
-
|
|
657
|
+
onClick: () => {
|
|
658
|
+
U(i), Kn(i);
|
|
659
|
+
},
|
|
660
|
+
children: ui[i]
|
|
618
661
|
},
|
|
619
662
|
i
|
|
620
663
|
))
|
|
621
664
|
}
|
|
665
|
+
),
|
|
666
|
+
/* @__PURE__ */ t(
|
|
667
|
+
"button",
|
|
668
|
+
{
|
|
669
|
+
style: {
|
|
670
|
+
...e.gmButton,
|
|
671
|
+
marginTop: 24,
|
|
672
|
+
padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 16px" : "12px 24px",
|
|
673
|
+
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "14px" : "16px",
|
|
674
|
+
minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "120px" : "auto"
|
|
675
|
+
},
|
|
676
|
+
onClick: () => en(1),
|
|
677
|
+
children: "Back"
|
|
678
|
+
}
|
|
622
679
|
)
|
|
623
680
|
] }),
|
|
624
|
-
/* @__PURE__ */
|
|
625
|
-
"
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
/* @__PURE__ */ p("p", { style: o.gmBodyS, children: [
|
|
642
|
-
"Rounds: ",
|
|
643
|
-
D
|
|
644
|
-
] }),
|
|
645
|
-
/* @__PURE__ */ w(
|
|
646
|
-
"div",
|
|
647
|
-
{
|
|
648
|
-
style: {
|
|
649
|
-
display: "grid",
|
|
650
|
-
gridTemplateColumns: n ? "repeat(2, 1fr)" : "repeat(4, 1fr)",
|
|
651
|
-
gap: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px" : "12px",
|
|
652
|
-
maxWidth: n ? 280 : 420,
|
|
653
|
-
margin: "0 auto"
|
|
654
|
-
},
|
|
655
|
-
children: ui.map((i) => /* @__PURE__ */ w(
|
|
656
|
-
"button",
|
|
657
|
-
{
|
|
658
|
-
style: {
|
|
659
|
-
...o.gmButton,
|
|
660
|
-
padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 12px" : "10px 16px",
|
|
661
|
-
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "14px"
|
|
662
|
-
},
|
|
663
|
-
onClick: () => {
|
|
664
|
-
ln(i), Qn(i);
|
|
665
|
-
},
|
|
666
|
-
children: fi[i]
|
|
681
|
+
S && !B && /* @__PURE__ */ l("div", { style: e.gmCenterScreen, children: [
|
|
682
|
+
/* @__PURE__ */ l("h1", { style: e.gmHeadline1, children: [
|
|
683
|
+
"Theme selected: ",
|
|
684
|
+
S
|
|
685
|
+
] }),
|
|
686
|
+
/* @__PURE__ */ l("p", { style: e.gmBodyM, children: [
|
|
687
|
+
"Rounds: ",
|
|
688
|
+
G
|
|
689
|
+
] }),
|
|
690
|
+
/* @__PURE__ */ t(
|
|
691
|
+
"button",
|
|
692
|
+
{
|
|
693
|
+
style: {
|
|
694
|
+
...e.gmButton,
|
|
695
|
+
padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 16px" : "12px 24px",
|
|
696
|
+
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "14px" : "16px",
|
|
697
|
+
minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "120px" : "auto"
|
|
667
698
|
},
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
/* @__PURE__ */ w(
|
|
673
|
-
"button",
|
|
674
|
-
{
|
|
675
|
-
style: {
|
|
676
|
-
...o.gmButton,
|
|
677
|
-
marginTop: 24,
|
|
678
|
-
padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 16px" : "12px 24px",
|
|
679
|
-
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "14px" : "16px",
|
|
680
|
-
minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "120px" : "auto"
|
|
681
|
-
},
|
|
682
|
-
onClick: () => J(1),
|
|
683
|
-
children: "Back"
|
|
684
|
-
}
|
|
685
|
-
)
|
|
686
|
-
] }),
|
|
687
|
-
S && !A && /* @__PURE__ */ p("div", { style: o.gmCenterScreen, children: [
|
|
688
|
-
/* @__PURE__ */ p("h1", { style: o.gmHeadline1, children: [
|
|
689
|
-
"Theme selected: ",
|
|
690
|
-
S
|
|
699
|
+
onClick: Tn,
|
|
700
|
+
children: "▶ Start game"
|
|
701
|
+
}
|
|
702
|
+
)
|
|
691
703
|
] }),
|
|
692
|
-
/* @__PURE__ */
|
|
693
|
-
|
|
694
|
-
|
|
704
|
+
V && /* @__PURE__ */ l("div", { style: e.gmCenterScreen, children: [
|
|
705
|
+
/* @__PURE__ */ t(
|
|
706
|
+
"h1",
|
|
707
|
+
{
|
|
708
|
+
style: {
|
|
709
|
+
...e.gmHeadline1,
|
|
710
|
+
marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || c || x || H || W || m || u || f || y ? "0px" : e.gmHeadline1.marginTop,
|
|
711
|
+
marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || c || x || H || W || m || u || f || y ? "2px" : e.gmHeadline1.marginBottom
|
|
712
|
+
},
|
|
713
|
+
children: "Results"
|
|
714
|
+
}
|
|
715
|
+
),
|
|
716
|
+
/* @__PURE__ */ l(
|
|
717
|
+
"h2",
|
|
718
|
+
{
|
|
719
|
+
style: {
|
|
720
|
+
...e.gmHeadline3,
|
|
721
|
+
marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || c || x || H || W || m || u || f || y ? "0px" : e.gmHeadline3.marginTop,
|
|
722
|
+
marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || c || x || H || W || m || u || f || y ? "2px" : e.gmHeadline3.marginBottom
|
|
723
|
+
},
|
|
724
|
+
children: [
|
|
725
|
+
"Your score: ",
|
|
726
|
+
Bn,
|
|
727
|
+
" / ",
|
|
728
|
+
G
|
|
729
|
+
]
|
|
730
|
+
}
|
|
731
|
+
),
|
|
732
|
+
/* @__PURE__ */ t(
|
|
733
|
+
"p",
|
|
734
|
+
{
|
|
735
|
+
style: {
|
|
736
|
+
...e.gmBodyM,
|
|
737
|
+
color: "#10b981",
|
|
738
|
+
marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || c || x || H || W || m || u || f || y ? "0px" : "12px",
|
|
739
|
+
marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || c || x || H || W || m || u || f || y ? "2px" : e.gmBodyM.marginBottom
|
|
740
|
+
},
|
|
741
|
+
children: "Yahoo! You did it! 🍬✨"
|
|
742
|
+
}
|
|
743
|
+
),
|
|
744
|
+
/* @__PURE__ */ l(
|
|
745
|
+
"table",
|
|
746
|
+
{
|
|
747
|
+
style: {
|
|
748
|
+
...e.gmTable,
|
|
749
|
+
marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || c || x || H || W || m || u || f || y ? "0px" : "20px",
|
|
750
|
+
marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || c || x || H || W || m || u || f || y ? "4px" : "32px"
|
|
751
|
+
},
|
|
752
|
+
children: [
|
|
753
|
+
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ l("tr", { children: [
|
|
754
|
+
/* @__PURE__ */ t("th", { children: "Round" }),
|
|
755
|
+
/* @__PURE__ */ t("th", { children: "Your Answer" }),
|
|
756
|
+
/* @__PURE__ */ t("th", { children: "Correct" }),
|
|
757
|
+
/* @__PURE__ */ t("th", { children: "Result" })
|
|
758
|
+
] }) }),
|
|
759
|
+
/* @__PURE__ */ t("tbody", { children: An.map((i, o) => /* @__PURE__ */ l("tr", { children: [
|
|
760
|
+
/* @__PURE__ */ t("td", { style: e.gmTableCell, children: i.round }),
|
|
761
|
+
/* @__PURE__ */ t("td", { style: e.gmTableCell, children: i.answer || "—" }),
|
|
762
|
+
/* @__PURE__ */ t("td", { style: e.gmTableCell, children: i.correct }),
|
|
763
|
+
/* @__PURE__ */ t("td", { style: e.gmTableCell, children: i.result === "correct" ? "✔ Correct" : i.result === "almost" ? "◐ Almost (0.5)" : "✘ Wrong" })
|
|
764
|
+
] }, o)) })
|
|
765
|
+
]
|
|
766
|
+
}
|
|
767
|
+
),
|
|
768
|
+
/* @__PURE__ */ l(
|
|
769
|
+
"div",
|
|
770
|
+
{
|
|
771
|
+
style: {
|
|
772
|
+
display: "flex",
|
|
773
|
+
gap: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px" : "12px",
|
|
774
|
+
marginTop: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "2px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I ? "12px" : "24px"
|
|
775
|
+
},
|
|
776
|
+
children: [
|
|
777
|
+
/* @__PURE__ */ t(
|
|
778
|
+
"button",
|
|
779
|
+
{
|
|
780
|
+
style: {
|
|
781
|
+
...e.gmButton,
|
|
782
|
+
padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
|
|
783
|
+
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
|
|
784
|
+
minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "80px" : "auto"
|
|
785
|
+
},
|
|
786
|
+
onClick: Tn,
|
|
787
|
+
children: "🔁 Play again"
|
|
788
|
+
}
|
|
789
|
+
),
|
|
790
|
+
/* @__PURE__ */ t(
|
|
791
|
+
"button",
|
|
792
|
+
{
|
|
793
|
+
style: {
|
|
794
|
+
...e.gmButton,
|
|
795
|
+
padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
|
|
796
|
+
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
|
|
797
|
+
minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "80px" : "auto"
|
|
798
|
+
},
|
|
799
|
+
onClick: Xn,
|
|
800
|
+
children: "⬅️ Choose theme"
|
|
801
|
+
}
|
|
802
|
+
)
|
|
803
|
+
]
|
|
804
|
+
}
|
|
805
|
+
)
|
|
695
806
|
] }),
|
|
696
|
-
/* @__PURE__ */
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
{
|
|
786
|
-
style: {
|
|
787
|
-
...o.gmButton,
|
|
788
|
-
padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
|
|
789
|
-
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
|
|
790
|
-
minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "80px" : "auto"
|
|
791
|
-
},
|
|
792
|
-
onClick: Tn,
|
|
793
|
-
children: "🔁 Play again"
|
|
794
|
-
}
|
|
795
|
-
),
|
|
796
|
-
/* @__PURE__ */ w(
|
|
797
|
-
"button",
|
|
798
|
-
{
|
|
799
|
-
style: {
|
|
800
|
-
...o.gmButton,
|
|
801
|
-
padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
|
|
802
|
-
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
|
|
803
|
-
minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "80px" : "auto"
|
|
804
|
-
},
|
|
805
|
-
onClick: ii,
|
|
806
|
-
children: "⬅️ Choose theme"
|
|
807
|
-
}
|
|
808
|
-
)
|
|
809
|
-
]
|
|
810
|
-
}
|
|
811
|
-
)
|
|
812
|
-
] }),
|
|
813
|
-
A && !$ && /* @__PURE__ */ p("div", { style: o.gmGameLayout, children: [
|
|
814
|
-
/* @__PURE__ */ p(
|
|
815
|
-
"div",
|
|
816
|
-
{
|
|
817
|
-
style: {
|
|
818
|
-
minHeight: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "45px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "50px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "60px" : "160px",
|
|
819
|
-
display: "flex",
|
|
820
|
-
flexDirection: "column",
|
|
821
|
-
justifyContent: "center",
|
|
822
|
-
alignItems: "center",
|
|
823
|
-
paddingTop: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "8px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "15px" : "40px"
|
|
824
|
-
},
|
|
825
|
-
children: [
|
|
826
|
-
v === "ready" && /* @__PURE__ */ p(Ln, { children: [
|
|
827
|
-
/* @__PURE__ */ w("h1", { style: { ...o.gmHeadline1, color: "#ec4c44" }, children: "GET READY" }),
|
|
828
|
-
/* @__PURE__ */ w("div", { style: o.gmHourglass, children: "⏳" })
|
|
829
|
-
] }),
|
|
830
|
-
v === "memorize" && /* @__PURE__ */ p("p", { style: { ...o.gmBodyM, color: "#10b981" }, children: [
|
|
831
|
-
"MEMORIZE (",
|
|
832
|
-
Q,
|
|
833
|
-
")"
|
|
834
|
-
] }),
|
|
835
|
-
v === "guess" && !E && /* @__PURE__ */ p("p", { style: o.gmBodyM, children: [
|
|
836
|
-
"⏳ Time left: ",
|
|
837
|
-
nn,
|
|
838
|
-
"s"
|
|
839
|
-
] })
|
|
840
|
-
]
|
|
841
|
-
}
|
|
842
|
-
),
|
|
843
|
-
v !== "ready" && /* @__PURE__ */ w(
|
|
844
|
-
"div",
|
|
845
|
-
{
|
|
846
|
-
style: {
|
|
847
|
-
...o.gmGrid,
|
|
848
|
-
...z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? { width: "100%" } : {},
|
|
849
|
-
// ✅ Широкие экраны: полная ширина грида
|
|
850
|
-
gridTemplateColumns: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "repeat(3, 1fr)" : n ? "repeat(2, 1fr)" : window.innerHeight < 700 ? "repeat(3, 1fr)" : typeof window < "u" && window.innerWidth === 1280 && window.innerHeight === 720 ? "repeat(3, 130px)" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "repeat(3, 150px)" : "repeat(3, 210px)",
|
|
851
|
-
// desktop: 3 колонки фиксированного размера
|
|
852
|
-
gridAutoRows: n && window.innerWidth > window.innerHeight ? "120px" : n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "100px" : n ? "150px" : window.innerHeight < 700 ? "140px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "240px" : typeof window < "u" && window.innerWidth === 1280 && window.innerHeight === 720 ? "130px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "150px" : "210px",
|
|
853
|
-
// desktop: стандартная высота
|
|
854
|
-
gap: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "12px" : n || window.innerHeight < 700 ? "8px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "24px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "12px" : "20px",
|
|
855
|
-
justifyItems: "center",
|
|
856
|
-
maxWidth: n && window.innerWidth > window.innerHeight ? "90%" : n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "95%" : "100%",
|
|
857
|
-
padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "8px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "20px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "10px" : "16px"
|
|
858
|
-
},
|
|
859
|
-
children: B.map((i, e) => {
|
|
860
|
-
const t = P === e && v === "guess" && !E;
|
|
861
|
-
return /* @__PURE__ */ w(
|
|
862
|
-
"div",
|
|
863
|
-
{
|
|
864
|
-
style: {
|
|
865
|
-
width: "100%",
|
|
866
|
-
height: "100%",
|
|
867
|
-
borderRadius: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "6px" : "12px",
|
|
868
|
-
overflow: "hidden",
|
|
869
|
-
boxShadow: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "0 1px 4px rgba(0,0,0,0.1)" : "0 4px 12px rgba(0,0,0,0.15)",
|
|
870
|
-
transition: "all 0.3s ease",
|
|
871
|
-
cursor: "pointer",
|
|
872
|
-
...kn === "correct" && P === e ? {
|
|
873
|
-
boxShadow: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "0 0 15px #10b981" : "0 0 20px #10b981",
|
|
874
|
-
transform: "scale(1.03)"
|
|
875
|
-
} : {},
|
|
876
|
-
...kn === "wrong" && P === e ? {
|
|
877
|
-
boxShadow: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "0 0 15px #ef4444" : "0 0 20px #ef4444",
|
|
878
|
-
transform: "scale(1.03)"
|
|
879
|
-
} : {}
|
|
807
|
+
B && !V && /* @__PURE__ */ l("div", { style: e.gmGameLayout, children: [
|
|
808
|
+
/* @__PURE__ */ l(
|
|
809
|
+
"div",
|
|
810
|
+
{
|
|
811
|
+
style: {
|
|
812
|
+
minHeight: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "45px" : M || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "50px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "60px" : "160px",
|
|
813
|
+
display: "flex",
|
|
814
|
+
flexDirection: "column",
|
|
815
|
+
justifyContent: "center",
|
|
816
|
+
alignItems: "center",
|
|
817
|
+
paddingTop: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || M || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "8px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "15px" : "40px"
|
|
818
|
+
},
|
|
819
|
+
children: [
|
|
820
|
+
T === "ready" && /* @__PURE__ */ l(Mn, { children: [
|
|
821
|
+
/* @__PURE__ */ t("h1", { style: { ...e.gmHeadline1, color: "#ec4c44" }, children: "GET READY" }),
|
|
822
|
+
/* @__PURE__ */ t("div", { style: e.gmHourglass, children: "⏳" })
|
|
823
|
+
] }),
|
|
824
|
+
T === "memorize" && /* @__PURE__ */ l("p", { style: { ...e.gmBodyM, color: "#10b981" }, children: [
|
|
825
|
+
"MEMORIZE (",
|
|
826
|
+
tn,
|
|
827
|
+
")"
|
|
828
|
+
] }),
|
|
829
|
+
T === "guess" && !A && /* @__PURE__ */ l("p", { style: e.gmBodyM, children: [
|
|
830
|
+
"⏳ Time left: ",
|
|
831
|
+
wn,
|
|
832
|
+
"s"
|
|
833
|
+
] })
|
|
834
|
+
]
|
|
835
|
+
}
|
|
836
|
+
),
|
|
837
|
+
T !== "ready" && /* @__PURE__ */ t(
|
|
838
|
+
"div",
|
|
839
|
+
{
|
|
840
|
+
style: {
|
|
841
|
+
...e.gmGrid,
|
|
842
|
+
...M || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? { width: "100%" } : {},
|
|
843
|
+
// ✅ Широкие экраны: полная ширина грида
|
|
844
|
+
gridTemplateColumns: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "repeat(3, 1fr)" : n ? "repeat(2, 1fr)" : window.innerHeight < 700 ? "repeat(3, 1fr)" : typeof window < "u" && window.innerWidth === 1280 && window.innerHeight === 720 ? "repeat(3, 130px)" : M || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "repeat(3, 150px)" : "repeat(3, 210px)",
|
|
845
|
+
// desktop: 3 колонки фиксированного размера
|
|
846
|
+
gridAutoRows: n && window.innerWidth > window.innerHeight ? "120px" : n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "100px" : n ? "150px" : window.innerHeight < 700 ? "140px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "240px" : typeof window < "u" && window.innerWidth === 1280 && window.innerHeight === 720 ? "130px" : M || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "150px" : "210px",
|
|
847
|
+
// desktop: стандартная высота
|
|
848
|
+
gap: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "12px" : n || window.innerHeight < 700 ? "8px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "24px" : M || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "12px" : "20px",
|
|
849
|
+
justifyItems: "center",
|
|
850
|
+
maxWidth: n && window.innerWidth > window.innerHeight ? "90%" : n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "95%" : "100%",
|
|
851
|
+
padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "8px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "20px" : M || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "10px" : "16px"
|
|
852
|
+
},
|
|
853
|
+
children: k.map((i, o) => {
|
|
854
|
+
const d = z === o && T === "guess" && !A;
|
|
855
|
+
return /* @__PURE__ */ t(
|
|
856
|
+
"div",
|
|
857
|
+
{
|
|
858
|
+
style: {
|
|
859
|
+
width: "100%",
|
|
860
|
+
height: "100%",
|
|
861
|
+
borderRadius: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "6px" : "12px",
|
|
862
|
+
overflow: "hidden",
|
|
863
|
+
backgroundColor: "#ffffff",
|
|
864
|
+
boxShadow: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "0 1px 4px rgba(0,0,0,0.1)" : "0 4px 12px rgba(0,0,0,0.15)",
|
|
865
|
+
transition: "all 0.3s ease",
|
|
866
|
+
cursor: "pointer",
|
|
867
|
+
...kn === "correct" && z === o ? {
|
|
868
|
+
boxShadow: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "0 0 15px #10b981" : "0 0 20px #10b981",
|
|
869
|
+
transform: "scale(1.03)"
|
|
870
|
+
} : {},
|
|
871
|
+
...kn === "wrong" && z === o ? {
|
|
872
|
+
boxShadow: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "0 0 15px #ef4444" : "0 0 20px #ef4444",
|
|
873
|
+
transform: "scale(1.03)"
|
|
874
|
+
} : {}
|
|
875
|
+
},
|
|
876
|
+
children: !d && (() => {
|
|
877
|
+
const h = K.current.get(i.src), b = h?.complete && h.src ? h.src : i.src;
|
|
878
|
+
return /* @__PURE__ */ t(
|
|
879
|
+
"img",
|
|
880
|
+
{
|
|
881
|
+
src: b,
|
|
882
|
+
alt: i.name,
|
|
883
|
+
fetchPriority: "high",
|
|
884
|
+
loading: "eager",
|
|
885
|
+
decoding: "async",
|
|
886
|
+
style: {
|
|
887
|
+
width: "100%",
|
|
888
|
+
height: "100%",
|
|
889
|
+
objectFit: "contain",
|
|
890
|
+
objectPosition: "center"
|
|
891
|
+
}
|
|
892
|
+
},
|
|
893
|
+
`${i.src}-${h?.complete ? "loaded" : "pending"}`
|
|
894
|
+
);
|
|
895
|
+
})()
|
|
880
896
|
},
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
897
|
+
o
|
|
898
|
+
);
|
|
899
|
+
})
|
|
900
|
+
}
|
|
901
|
+
),
|
|
902
|
+
/* @__PURE__ */ l(
|
|
903
|
+
"div",
|
|
904
|
+
{
|
|
905
|
+
style: {
|
|
906
|
+
marginTop: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "1px" : M || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "4px" : "16px",
|
|
907
|
+
height: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "40px" : M || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "50px" : "80px"
|
|
908
|
+
},
|
|
909
|
+
children: [
|
|
910
|
+
T === "guess" && !A && /* @__PURE__ */ t(
|
|
911
|
+
"div",
|
|
912
|
+
{
|
|
913
|
+
style: {
|
|
914
|
+
display: "flex",
|
|
915
|
+
flexDirection: "row",
|
|
916
|
+
flexWrap: "nowrap",
|
|
917
|
+
alignItems: "center",
|
|
918
|
+
justifyContent: "center",
|
|
919
|
+
minWidth: 0,
|
|
920
|
+
gap: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "3px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || c || x || H || W || m || u || f || y ? "8px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "6px" : "12px",
|
|
921
|
+
width: "100%",
|
|
922
|
+
maxWidth: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "270px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || c || x || H || W || m || u || f || y || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "400px" : "300px"
|
|
923
|
+
},
|
|
924
|
+
children: /* @__PURE__ */ l(Mn, { children: [
|
|
925
|
+
/* @__PURE__ */ t(
|
|
926
|
+
"input",
|
|
927
|
+
{
|
|
928
|
+
type: "text",
|
|
929
|
+
placeholder: "Type the missing word",
|
|
930
|
+
value: N,
|
|
931
|
+
onChange: (i) => yn(i.target.value),
|
|
932
|
+
style: {
|
|
933
|
+
...e.gmInput,
|
|
934
|
+
flex: "1 1 0",
|
|
935
|
+
minWidth: 0,
|
|
936
|
+
width: "auto",
|
|
937
|
+
maxWidth: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "170px" : (window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || c || x || H || W || m || u || f || y || n && window.innerWidth > window.innerHeight || window.innerHeight < 700, "250px"),
|
|
938
|
+
padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "5px 6px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || c || x || H || W || m || u || f || y || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 12px" : "12px 16px",
|
|
939
|
+
boxSizing: "border-box",
|
|
940
|
+
fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 ? "10px" : window.innerWidth === 896 && window.innerHeight === 414 ? "11px" : window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || c || x || H || W || m || u || f || y || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px"
|
|
941
|
+
}
|
|
895
942
|
}
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
height: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "40px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "50px" : "80px"
|
|
912
|
-
},
|
|
913
|
-
children: [
|
|
914
|
-
v === "guess" && !E && /* @__PURE__ */ w(
|
|
915
|
-
"div",
|
|
916
|
-
{
|
|
917
|
-
style: {
|
|
918
|
-
display: "flex",
|
|
919
|
-
flexDirection: rn ? "row" : "column",
|
|
920
|
-
gap: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "3px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f ? "8px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "6px" : "12px",
|
|
921
|
-
alignItems: "center",
|
|
922
|
-
justifyContent: "center",
|
|
923
|
-
width: "100%",
|
|
924
|
-
maxWidth: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "270px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "400px" : "300px"
|
|
925
|
-
},
|
|
926
|
-
children: /* @__PURE__ */ p(Ln, { children: [
|
|
927
|
-
/* @__PURE__ */ w(
|
|
928
|
-
"input",
|
|
929
|
-
{
|
|
930
|
-
type: "text",
|
|
931
|
-
placeholder: "Type the missing word",
|
|
932
|
-
value: N,
|
|
933
|
-
onChange: (i) => yn(i.target.value),
|
|
934
|
-
style: {
|
|
935
|
-
...o.gmInput,
|
|
936
|
-
width: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "170px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "250px" : "auto",
|
|
937
|
-
padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "5px 6px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 12px" : "12px 16px",
|
|
938
|
-
fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 ? "10px" : window.innerWidth === 896 && window.innerHeight === 414 ? "11px" : window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px",
|
|
939
|
-
flex: rn ? "1" : "none"
|
|
943
|
+
),
|
|
944
|
+
/* @__PURE__ */ t(
|
|
945
|
+
"button",
|
|
946
|
+
{
|
|
947
|
+
style: {
|
|
948
|
+
...e.gmButton,
|
|
949
|
+
marginLeft: 0,
|
|
950
|
+
padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "5px 8px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "6px 10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || c || x || H || W || m || u || f || y || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 16px" : "12px 24px",
|
|
951
|
+
fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "10px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "11px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || c || x || H || W || m || u || f || y || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px",
|
|
952
|
+
minWidth: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "45px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "55px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || c || x || H || W || m || u || f || y || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "80px" : "100px",
|
|
953
|
+
flexShrink: 0
|
|
954
|
+
},
|
|
955
|
+
onClick: Jn,
|
|
956
|
+
disabled: sn,
|
|
957
|
+
children: sn ? "..." : "Check"
|
|
940
958
|
}
|
|
941
|
-
|
|
942
|
-
)
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
),
|
|
962
|
-
E && /* @__PURE__ */ w(
|
|
963
|
-
"button",
|
|
964
|
-
{
|
|
965
|
-
style: {
|
|
966
|
-
...o.gmButton,
|
|
967
|
-
padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "5px 8px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "6px 10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 16px" : "12px 24px",
|
|
968
|
-
fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "10px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "11px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px"
|
|
969
|
-
},
|
|
970
|
-
onClick: ni,
|
|
971
|
-
children: "Next round"
|
|
972
|
-
}
|
|
973
|
-
)
|
|
974
|
-
]
|
|
975
|
-
}
|
|
976
|
-
)
|
|
959
|
+
)
|
|
960
|
+
] })
|
|
961
|
+
}
|
|
962
|
+
),
|
|
963
|
+
A && /* @__PURE__ */ t(
|
|
964
|
+
"button",
|
|
965
|
+
{
|
|
966
|
+
style: {
|
|
967
|
+
...e.gmButton,
|
|
968
|
+
padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "5px 8px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "6px 10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || c || x || H || W || m || u || f || y || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 16px" : "12px 24px",
|
|
969
|
+
fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "10px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "11px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || c || x || H || W || m || u || f || y || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px"
|
|
970
|
+
},
|
|
971
|
+
onClick: Qn,
|
|
972
|
+
children: "Next round"
|
|
973
|
+
}
|
|
974
|
+
)
|
|
975
|
+
]
|
|
976
|
+
}
|
|
977
|
+
)
|
|
978
|
+
] })
|
|
977
979
|
] })
|
|
978
|
-
|
|
980
|
+
}
|
|
981
|
+
)
|
|
982
|
+
}
|
|
983
|
+
)
|
|
984
|
+
]
|
|
985
|
+
}
|
|
986
|
+
);
|
|
987
|
+
}
|
|
988
|
+
const X = 1280, nn = 720;
|
|
989
|
+
function Si(w, a) {
|
|
990
|
+
const g = Math.min(w, a);
|
|
991
|
+
return w <= 768 ? Math.max(280, w - 20) : Math.max(400, Math.min(1200, g - 40));
|
|
992
|
+
}
|
|
993
|
+
function Pi({
|
|
994
|
+
gameCubeSize: w,
|
|
995
|
+
screenHeight: a,
|
|
996
|
+
screenWidth: g,
|
|
997
|
+
seed: s
|
|
998
|
+
}) {
|
|
999
|
+
const [p, S] = r(() => ({
|
|
1000
|
+
width: typeof window < "u" ? window.innerWidth : X,
|
|
1001
|
+
height: typeof window < "u" ? window.innerHeight : nn
|
|
1002
|
+
}));
|
|
1003
|
+
_(() => {
|
|
1004
|
+
const k = () => {
|
|
1005
|
+
S({
|
|
1006
|
+
width: window.innerWidth,
|
|
1007
|
+
height: window.innerHeight
|
|
1008
|
+
});
|
|
1009
|
+
};
|
|
1010
|
+
k(), window.addEventListener("resize", k), window.addEventListener("orientationchange", k);
|
|
1011
|
+
const D = new ResizeObserver(k);
|
|
1012
|
+
return D.observe(document.documentElement), () => {
|
|
1013
|
+
window.removeEventListener("resize", k), window.removeEventListener("orientationchange", k), D.disconnect();
|
|
1014
|
+
};
|
|
1015
|
+
}, []);
|
|
1016
|
+
const U = Rn(() => Math.min(p.width / X, p.height / nn), [p.width, p.height]);
|
|
1017
|
+
return /* @__PURE__ */ t(
|
|
1018
|
+
"div",
|
|
1019
|
+
{
|
|
1020
|
+
style: {
|
|
1021
|
+
position: "relative",
|
|
1022
|
+
width: "100%",
|
|
1023
|
+
height: "100%",
|
|
1024
|
+
overflow: "hidden"
|
|
1025
|
+
},
|
|
1026
|
+
children: /* @__PURE__ */ t(
|
|
1027
|
+
"div",
|
|
1028
|
+
{
|
|
1029
|
+
style: {
|
|
1030
|
+
position: "absolute",
|
|
1031
|
+
left: "50%",
|
|
1032
|
+
top: "50%",
|
|
1033
|
+
width: `${X}px`,
|
|
1034
|
+
height: `${nn}px`,
|
|
1035
|
+
transform: `translate(-50%, -50%) scale(${U})`,
|
|
1036
|
+
transformOrigin: "center center"
|
|
1037
|
+
},
|
|
1038
|
+
children: /* @__PURE__ */ t(
|
|
1039
|
+
"div",
|
|
1040
|
+
{
|
|
1041
|
+
style: {
|
|
1042
|
+
width: `${X}px`,
|
|
1043
|
+
height: `${nn}px`,
|
|
1044
|
+
position: "relative",
|
|
1045
|
+
overflow: "hidden"
|
|
1046
|
+
},
|
|
1047
|
+
children: /* @__PURE__ */ t(
|
|
1048
|
+
vi,
|
|
1049
|
+
{
|
|
1050
|
+
gameCubeSize: w ?? Si(p.width, p.height),
|
|
1051
|
+
screenWidth: g ?? p.width,
|
|
1052
|
+
screenHeight: a ?? p.height,
|
|
1053
|
+
seed: s
|
|
1054
|
+
}
|
|
1055
|
+
)
|
|
979
1056
|
}
|
|
980
1057
|
)
|
|
981
1058
|
}
|
|
@@ -984,6 +1061,8 @@ function Ti({
|
|
|
984
1061
|
);
|
|
985
1062
|
}
|
|
986
1063
|
export {
|
|
987
|
-
|
|
988
|
-
|
|
1064
|
+
Pi as AdaptiveGameShell,
|
|
1065
|
+
Pi as Game,
|
|
1066
|
+
vi as RawGame,
|
|
1067
|
+
Q as themes
|
|
989
1068
|
};
|