@epam/ai-dial-celebrations 1.3.0-dev.274 → 1.3.0-dev.276
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/celebration-capabilities-DABcz0mO.js +27 -0
- package/components/LottieScene/LottieScene.d.ts +14 -0
- package/components/LottieScene/LottieScene.d.ts.map +1 -0
- package/components/StaticTriggerDecoration/StaticTriggerDecoration.d.ts +14 -0
- package/components/StaticTriggerDecoration/StaticTriggerDecoration.d.ts.map +1 -0
- package/constants/celebration-capabilities.d.ts +3 -0
- package/constants/celebration-capabilities.d.ts.map +1 -0
- package/halloween.js +144 -143
- package/hooks/useLottieSceneSession.d.ts +1 -1
- package/hooks/useLottieSceneSession.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -1
- package/index.js +62 -61
- package/{lottie_light-CowwItMl.js → lottie_light-DUHSXGUj.js} +1 -1
- package/models/celebration-pack.d.ts +126 -0
- package/models/celebration-pack.d.ts.map +1 -0
- package/models/lottie-scene.d.ts +10 -4
- package/models/lottie-scene.d.ts.map +1 -1
- package/new-year.js +1525 -1698
- package/package.json +8 -3
- package/packs/index.d.ts +6 -0
- package/packs/index.d.ts.map +1 -0
- package/packs.js +197 -0
- package/{scene-targets-BgiQPucY.js → scene-targets-C5LEjDnN.js} +44 -48
- package/types/celebration-pack.d.ts +82 -0
- package/types/celebration-pack.d.ts.map +1 -0
- package/useLottieSceneSession-FcSRnJ26.js +204 -0
- package/useReducedMotion-BWIeAFB_.js +8 -0
- package/utils/celebration-descriptor-event.d.ts +9 -0
- package/utils/celebration-descriptor-event.d.ts.map +1 -0
- package/utils/celebration-pack-scene.d.ts +19 -0
- package/utils/celebration-pack-scene.d.ts.map +1 -0
- package/utils/celebration-variant.d.ts +7 -0
- package/utils/celebration-variant.d.ts.map +1 -0
- package/utils/lottie-scene-session.d.ts +1 -1
- package/utils/lottie-scene-session.d.ts.map +1 -1
- package/rolldown-runtime-VHNaYcLd.js +0 -13
package/halloween.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { i as e, n as t, r as n } from "./CelebrationEnvironmentContext-BxzY78Zg.js";
|
|
2
|
-
import {
|
|
2
|
+
import { t as r } from "./useReducedMotion-BWIeAFB_.js";
|
|
3
|
+
import { a as i, i as a, n as o, o as s, r as c, s as l, t as u } from "./scene-targets-C5LEjDnN.js";
|
|
3
4
|
import { mergeClasses as d } from "@epam/ai-dial-chat-shared";
|
|
4
5
|
import { memo as f, useCallback as p, useEffect as m, useId as h, useMemo as g, useRef as _, useState as v } from "react";
|
|
5
6
|
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
@@ -1871,7 +1872,7 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
1871
1872
|
}
|
|
1872
1873
|
return p;
|
|
1873
1874
|
}, Qe = "[hidden], [inert], [aria-hidden=\"true\"], [data-celebration-snapshot]", $e = "input, textarea, select, [contenteditable]:not([contenteditable=\"false\"])", et = ":disabled, [aria-disabled=\"true\"], [aria-expanded=\"true\"]", tt = "[data-halloween-pumpkin-anchor]", nt = /^(auto|scroll|hidden|clip)$/, rt = (e, t = 5) => {
|
|
1874
|
-
let { composer: n, starterList:
|
|
1875
|
+
let { composer: n, starterList: r } = e, { clientWidth: c, clientHeight: l } = document.documentElement, u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), f = (e) => {
|
|
1875
1876
|
let t = u.get(e);
|
|
1876
1877
|
return t || (t = e.getBoundingClientRect(), u.set(e, t)), t;
|
|
1877
1878
|
}, p = (e) => {
|
|
@@ -1905,9 +1906,9 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
1905
1906
|
height: l,
|
|
1906
1907
|
surfaces: []
|
|
1907
1908
|
};
|
|
1908
|
-
let _ = o(h.element, e), v = Array.from(h.element.querySelectorAll("button")).slice(0, 12), y = [], b =
|
|
1909
|
+
let _ = o(h.element, e), v = Array.from(h.element.querySelectorAll("button")).slice(0, 12), y = [], b = r ? _?.getElementsByClassName(r) : void 0;
|
|
1909
1910
|
for (let e of Array.from(b ?? []).slice(0, 2)) y.push(...Array.from(e.querySelectorAll("button")).slice(0, 16));
|
|
1910
|
-
let x = [], S = s(
|
|
1911
|
+
let x = [], S = s(i(e));
|
|
1911
1912
|
for (let e = 0; e < Math.min(48, S.length); e++) {
|
|
1912
1913
|
let t = S[e].closest("li");
|
|
1913
1914
|
t && x.push(t);
|
|
@@ -2545,22 +2546,22 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
2545
2546
|
Character: yt
|
|
2546
2547
|
});
|
|
2547
2548
|
}), xt = () => {
|
|
2548
|
-
let { isMobile: e, anchors: n } = t(),
|
|
2549
|
+
let { isMobile: e, anchors: n } = t(), i = r(), [a] = v(() => ({
|
|
2549
2550
|
isMobile: e,
|
|
2550
|
-
reducedMotion:
|
|
2551
|
-
})), o = a.isMobile !== e || a.reducedMotion !==
|
|
2551
|
+
reducedMotion: i
|
|
2552
|
+
})), o = a.isMobile !== e || a.reducedMotion !== i, [s] = v(() => typeof Element < "u" && typeof Element.prototype.animate == "function"), [c, l] = v(null), [u, d] = v(!1), f = _(!1), h = _(null), g = _(null), y = _([]), S = p(() => {
|
|
2552
2553
|
f.current = !0, d(!0);
|
|
2553
2554
|
}, []);
|
|
2554
2555
|
m(() => {
|
|
2555
2556
|
o && S();
|
|
2556
2557
|
}, [o, S]), m(() => {
|
|
2557
|
-
if (o || f.current ||
|
|
2558
|
-
let t = !1,
|
|
2558
|
+
if (o || f.current || i || !s) return;
|
|
2559
|
+
let t = !1, r = () => {
|
|
2559
2560
|
t = !0, S();
|
|
2560
2561
|
}, a = (e) => {
|
|
2561
|
-
e.type === "scroll" && e.target instanceof Node && h.current?.contains(e.target) ||
|
|
2562
|
+
e.type === "scroll" && e.target instanceof Node && h.current?.contains(e.target) || r();
|
|
2562
2563
|
}, c = () => {
|
|
2563
|
-
document.hidden &&
|
|
2564
|
+
document.hidden && r();
|
|
2564
2565
|
}, u = [
|
|
2565
2566
|
"pointerdown",
|
|
2566
2567
|
"keydown",
|
|
@@ -2580,11 +2581,11 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
2580
2581
|
n,
|
|
2581
2582
|
o,
|
|
2582
2583
|
e,
|
|
2583
|
-
|
|
2584
|
+
i,
|
|
2584
2585
|
S,
|
|
2585
2586
|
s
|
|
2586
2587
|
]), m(() => {
|
|
2587
|
-
if (u || o || f.current ||
|
|
2588
|
+
if (u || o || f.current || i || !s || !c?.active || !h.current || !g.current) return;
|
|
2588
2589
|
let e = !1, t = Ze(c, {
|
|
2589
2590
|
host: h.current,
|
|
2590
2591
|
copies: g.current,
|
|
@@ -2599,11 +2600,11 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
2599
2600
|
o,
|
|
2600
2601
|
u,
|
|
2601
2602
|
c,
|
|
2602
|
-
|
|
2603
|
+
i,
|
|
2603
2604
|
S,
|
|
2604
2605
|
s
|
|
2605
2606
|
]);
|
|
2606
|
-
let C =
|
|
2607
|
+
let C = i || !s;
|
|
2607
2608
|
return /* @__PURE__ */ x("div", {
|
|
2608
2609
|
ref: h,
|
|
2609
2610
|
className: at.scene,
|
|
@@ -2639,13 +2640,13 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
2639
2640
|
})]
|
|
2640
2641
|
});
|
|
2641
2642
|
}, St = (e) => {
|
|
2642
|
-
let t = /* @__PURE__ */ new Set(), n = document.documentElement,
|
|
2643
|
-
return s(
|
|
2644
|
-
let
|
|
2645
|
-
if (!
|
|
2646
|
-
let a =
|
|
2643
|
+
let t = /* @__PURE__ */ new Set(), n = document.documentElement, r = [];
|
|
2644
|
+
return s(i(e)).forEach((e) => {
|
|
2645
|
+
let i = e.closest("li");
|
|
2646
|
+
if (!i || t.has(i) || (t.add(i), i.contains(document.activeElement) || i.closest("[inert], [aria-hidden=\"true\"]") || i.querySelector("[aria-expanded=\"true\"]"))) return;
|
|
2647
|
+
let a = i.getBoundingClientRect();
|
|
2647
2648
|
if (!(a.width < 40 || a.height < 12 || a.left < 0 || a.top < 0 || a.right > n.clientWidth || a.bottom > n.clientHeight)) {
|
|
2648
|
-
for (let e =
|
|
2649
|
+
for (let e = i; e; e = e.parentElement) {
|
|
2649
2650
|
let t = getComputedStyle(e);
|
|
2650
2651
|
if (t.display === "none" || t.visibility === "hidden" || t.opacity === "0") return;
|
|
2651
2652
|
if (/(auto|scroll|hidden|clip)/.test(`${t.overflow} ${t.overflowX} ${t.overflowY}`)) {
|
|
@@ -2653,12 +2654,12 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
2653
2654
|
if (a.left < t.left || a.right > t.right || a.top < t.top || a.bottom > t.bottom) return;
|
|
2654
2655
|
}
|
|
2655
2656
|
}
|
|
2656
|
-
|
|
2657
|
-
element:
|
|
2657
|
+
r.push({
|
|
2658
|
+
element: i,
|
|
2658
2659
|
rect: a
|
|
2659
2660
|
});
|
|
2660
2661
|
}
|
|
2661
|
-
}),
|
|
2662
|
+
}), r;
|
|
2662
2663
|
}, Ct = 8e3, wt = .12, Tt = .56, Et = ({ element: e, rect: t }) => {
|
|
2663
2664
|
let n = e.querySelector("a[href]");
|
|
2664
2665
|
if (!n) return t;
|
|
@@ -2868,14 +2869,14 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
2868
2869
|
actor: "_actor_1bmud_9",
|
|
2869
2870
|
spin: "_spin_1bmud_26"
|
|
2870
2871
|
}, Mt = () => {
|
|
2871
|
-
let e = h(), n =
|
|
2872
|
+
let e = h(), n = r(), { anchors: i } = t(), a = _(null), o = _(null), s = _(null), [c, l] = v(null), [u, d] = v(!1), [f, p] = v(!1);
|
|
2872
2873
|
m(() => {
|
|
2873
2874
|
d(!0), p(!1), l(null);
|
|
2874
|
-
let e = a.current, t = o.current,
|
|
2875
|
-
if (n || !e || !t || !
|
|
2876
|
-
let c = document.documentElement, u = Ot(St(
|
|
2877
|
-
if (u) return l(u), At(u,
|
|
2878
|
-
}, [
|
|
2875
|
+
let e = a.current, t = o.current, r = s.current;
|
|
2876
|
+
if (n || !e || !t || !r || typeof e.animate != "function" || typeof t.animate != "function") return;
|
|
2877
|
+
let c = document.documentElement, u = Ot(St(i), c.clientWidth, c.clientHeight);
|
|
2878
|
+
if (u) return l(u), At(u, r, e, t, () => p(!0));
|
|
2879
|
+
}, [i, n]);
|
|
2879
2880
|
let g = c ? c.radius * 160 / 64 : 110;
|
|
2880
2881
|
return /* @__PURE__ */ x("div", {
|
|
2881
2882
|
className: jt.scene,
|
|
@@ -3450,13 +3451,13 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3450
3451
|
]
|
|
3451
3452
|
});
|
|
3452
3453
|
}, Rt = () => {
|
|
3453
|
-
let { anchors: e, isMobile: n } = t(),
|
|
3454
|
+
let { anchors: e, isMobile: n } = t(), i = r(), [a] = v(() => ({
|
|
3454
3455
|
anchors: e,
|
|
3455
3456
|
isMobile: n,
|
|
3456
|
-
reduced:
|
|
3457
|
-
})), o = a.anchors !== e || a.isMobile !== n || a.reduced !==
|
|
3457
|
+
reduced: i
|
|
3458
|
+
})), o = a.anchors !== e || a.isMobile !== n || a.reduced !== i, [s] = v(() => typeof Element < "u" && typeof Element.prototype.animate == "function" && typeof ResizeObserver == "function"), [c, l] = v(null), [u, d] = v(!1), f = _(!1), h = _(null), g = p(() => {
|
|
3458
3459
|
f.current = !0, d(!0);
|
|
3459
|
-
}, []), S =
|
|
3460
|
+
}, []), S = i || !s;
|
|
3460
3461
|
return m(() => {
|
|
3461
3462
|
o && g();
|
|
3462
3463
|
}, [o, g]), m(() => {
|
|
@@ -4523,22 +4524,22 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4523
4524
|
step: "_step_kug86_1",
|
|
4524
4525
|
blink: "_blink_kug86_1"
|
|
4525
4526
|
}, Mn = () => {
|
|
4526
|
-
let { isMobile: e, anchors: n } = t(),
|
|
4527
|
+
let { isMobile: e, anchors: n } = t(), i = r(), [a] = v(() => ({
|
|
4527
4528
|
isMobile: e,
|
|
4528
|
-
reducedMotion:
|
|
4529
|
-
})), o = a.isMobile !== e || a.reducedMotion !==
|
|
4529
|
+
reducedMotion: i
|
|
4530
|
+
})), o = a.isMobile !== e || a.reducedMotion !== i, [s] = v(() => typeof Element < "u" && typeof Element.prototype.animate == "function"), [c, l] = v(null), [u, d] = v(!1), f = _(!1), h = _(null), g = _(null), y = _(null), S = _(null), C = p(() => {
|
|
4530
4531
|
f.current = !0, d(!0);
|
|
4531
4532
|
}, []);
|
|
4532
4533
|
m(() => {
|
|
4533
4534
|
o && C();
|
|
4534
4535
|
}, [o, C]), m(() => {
|
|
4535
|
-
if (o || f.current ||
|
|
4536
|
-
let t = !1,
|
|
4536
|
+
if (o || f.current || i || !s) return;
|
|
4537
|
+
let t = !1, r = () => {
|
|
4537
4538
|
t = !0, C();
|
|
4538
4539
|
}, a = (e) => {
|
|
4539
|
-
e.type === "scroll" && e.target instanceof Node && h.current?.contains(e.target) ||
|
|
4540
|
+
e.type === "scroll" && e.target instanceof Node && h.current?.contains(e.target) || r();
|
|
4540
4541
|
}, c = () => {
|
|
4541
|
-
document.hidden &&
|
|
4542
|
+
document.hidden && r();
|
|
4542
4543
|
}, u = [
|
|
4543
4544
|
"pointerdown",
|
|
4544
4545
|
"keydown",
|
|
@@ -4558,11 +4559,11 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4558
4559
|
n,
|
|
4559
4560
|
o,
|
|
4560
4561
|
e,
|
|
4561
|
-
|
|
4562
|
+
i,
|
|
4562
4563
|
C,
|
|
4563
4564
|
s
|
|
4564
4565
|
]), m(() => {
|
|
4565
|
-
if (u || o || f.current ||
|
|
4566
|
+
if (u || o || f.current || i || !s || !c?.active || !h.current || !g.current || !y.current || !S.current) return;
|
|
4566
4567
|
let e = !1, t = xn(c, {
|
|
4567
4568
|
host: h.current,
|
|
4568
4569
|
copies: g.current,
|
|
@@ -4578,11 +4579,11 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4578
4579
|
o,
|
|
4579
4580
|
u,
|
|
4580
4581
|
c,
|
|
4581
|
-
|
|
4582
|
+
i,
|
|
4582
4583
|
C,
|
|
4583
4584
|
s
|
|
4584
4585
|
]);
|
|
4585
|
-
let w =
|
|
4586
|
+
let w = i || !s;
|
|
4586
4587
|
return /* @__PURE__ */ x("div", {
|
|
4587
4588
|
ref: h,
|
|
4588
4589
|
className: jn.scene,
|
|
@@ -4976,21 +4977,21 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4976
4977
|
ledge: "_ledge_1mpnx_48",
|
|
4977
4978
|
scene: "_scene_1mpnx_53"
|
|
4978
4979
|
}, Zn = () => {
|
|
4979
|
-
let { isMobile: e, anchors: n } = t(),
|
|
4980
|
+
let { isMobile: e, anchors: n } = t(), i = r(), [a] = v(() => ({
|
|
4980
4981
|
isMobile: e,
|
|
4981
|
-
reducedMotion:
|
|
4982
|
+
reducedMotion: i,
|
|
4982
4983
|
anchors: n
|
|
4983
|
-
})), o = a.isMobile !== e || a.reducedMotion !==
|
|
4984
|
+
})), o = a.isMobile !== e || a.reducedMotion !== i || a.anchors !== n, [s] = v(() => typeof Element < "u" && typeof Element.prototype.animate == "function" && typeof ResizeObserver == "function"), [c, l] = v(null), [u, f] = v(!1), h = _(!1), g = _(null), S = _(null), C = _(null), w = _(null), E = _([]), D = p(() => {
|
|
4984
4985
|
h.current = !0, f(!0);
|
|
4985
4986
|
}, []);
|
|
4986
4987
|
m(() => {
|
|
4987
4988
|
o && D();
|
|
4988
4989
|
}, [o, D]), m(() => {
|
|
4989
|
-
if (u || o || h.current ||
|
|
4990
|
-
let t = !1,
|
|
4990
|
+
if (u || o || h.current || i || !s) return;
|
|
4991
|
+
let t = !1, r = () => {
|
|
4991
4992
|
t = !0, D();
|
|
4992
4993
|
}, a = (e) => {
|
|
4993
|
-
e.type === "scroll" && e.target instanceof Node && g.current?.contains(e.target) || (e.type !== "visibilitychange" || document.hidden) &&
|
|
4994
|
+
e.type === "scroll" && e.target instanceof Node && g.current?.contains(e.target) || (e.type !== "visibilitychange" || document.hidden) && r();
|
|
4994
4995
|
}, c = [
|
|
4995
4996
|
"pointerdown",
|
|
4996
4997
|
"keydown",
|
|
@@ -5012,11 +5013,11 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5012
5013
|
o,
|
|
5013
5014
|
u,
|
|
5014
5015
|
e,
|
|
5015
|
-
|
|
5016
|
+
i,
|
|
5016
5017
|
D,
|
|
5017
5018
|
s
|
|
5018
5019
|
]), m(() => {
|
|
5019
|
-
if (u || o || h.current ||
|
|
5020
|
+
if (u || o || h.current || i || !s || !c || !g.current || !S.current || !w.current) return;
|
|
5020
5021
|
let e = !1, t = Gn(c, {
|
|
5021
5022
|
host: g.current,
|
|
5022
5023
|
copies: S.current,
|
|
@@ -5033,11 +5034,11 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5033
5034
|
o,
|
|
5034
5035
|
u,
|
|
5035
5036
|
c,
|
|
5036
|
-
|
|
5037
|
+
i,
|
|
5037
5038
|
D,
|
|
5038
5039
|
s
|
|
5039
5040
|
]);
|
|
5040
|
-
let O =
|
|
5041
|
+
let O = i || !s, k = c?.card ?? c?.ledge, A = (e) => c?.prints.map((t, n) => t.surface === e ? /* @__PURE__ */ b("svg", {
|
|
5041
5042
|
ref: (e) => {
|
|
5042
5043
|
E.current[n] = e;
|
|
5043
5044
|
},
|
|
@@ -5720,7 +5721,7 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5720
5721
|
}
|
|
5721
5722
|
return t;
|
|
5722
5723
|
}, gr = (e, t = 5) => {
|
|
5723
|
-
let { composer: n, starterList:
|
|
5724
|
+
let { composer: n, starterList: r } = e, { clientWidth: c, clientHeight: l } = document.documentElement, u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), f = (e) => {
|
|
5724
5725
|
let t = u.get(e);
|
|
5725
5726
|
return t || (t = e.getBoundingClientRect(), u.set(e, t)), t;
|
|
5726
5727
|
}, p = (e) => {
|
|
@@ -5751,12 +5752,12 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5751
5752
|
let r = m(n);
|
|
5752
5753
|
if (r) return r;
|
|
5753
5754
|
}
|
|
5754
|
-
}, g = n ? h(document.getElementsByClassName(n)) : void 0, _ = h(document.querySelectorAll(fr)), v = o(g?.element, e), y = [], b = s(
|
|
5755
|
+
}, g = n ? h(document.getElementsByClassName(n)) : void 0, _ = h(document.querySelectorAll(fr)), v = o(g?.element, e), y = [], b = s(i(e));
|
|
5755
5756
|
for (let e = 0; e < Math.min(48, b.length); e++) {
|
|
5756
5757
|
let t = b[e].closest("li");
|
|
5757
5758
|
t && !y.includes(t) && y.push(t);
|
|
5758
5759
|
}
|
|
5759
|
-
let x =
|
|
5760
|
+
let x = r ? v?.getElementsByClassName(r) : void 0, S = [];
|
|
5760
5761
|
for (let e of Array.from(x ?? []).slice(0, 2)) S.push(...Array.from(e.querySelectorAll("button")).slice(0, 16));
|
|
5761
5762
|
let C = [
|
|
5762
5763
|
y,
|
|
@@ -5983,22 +5984,22 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5983
5984
|
possessedFace: "_possessedFace_1ncpe_69",
|
|
5984
5985
|
eye: "_eye_1ncpe_85"
|
|
5985
5986
|
}, br = () => {
|
|
5986
|
-
let { isMobile: e, anchors: n } = t(),
|
|
5987
|
+
let { isMobile: e, anchors: n } = t(), i = r(), [a] = v(() => ({
|
|
5987
5988
|
isMobile: e,
|
|
5988
|
-
reducedMotion:
|
|
5989
|
-
})), o = a.isMobile !== e || a.reducedMotion !==
|
|
5989
|
+
reducedMotion: i
|
|
5990
|
+
})), o = a.isMobile !== e || a.reducedMotion !== i, [s] = v(() => typeof Element < "u" && typeof Element.prototype.animate == "function"), [c] = v(dt), [l, u] = v(null), [d, f] = v(!1), h = _(!1), g = _(null), y = _(null), S = _(null), C = _(null), w = _([]), E = p(() => {
|
|
5990
5991
|
h.current = !0, f(!0);
|
|
5991
5992
|
}, []);
|
|
5992
5993
|
m(() => {
|
|
5993
5994
|
o && E();
|
|
5994
5995
|
}, [o, E]), m(() => {
|
|
5995
|
-
if (o || h.current ||
|
|
5996
|
-
let t = !1,
|
|
5996
|
+
if (o || h.current || i || !s) return;
|
|
5997
|
+
let t = !1, r = () => {
|
|
5997
5998
|
t = !0, E();
|
|
5998
5999
|
}, a = (e) => {
|
|
5999
|
-
e.type === "scroll" && e.target instanceof Node && g.current?.contains(e.target) ||
|
|
6000
|
+
e.type === "scroll" && e.target instanceof Node && g.current?.contains(e.target) || r();
|
|
6000
6001
|
}, c = () => {
|
|
6001
|
-
document.hidden &&
|
|
6002
|
+
document.hidden && r();
|
|
6002
6003
|
}, l = [
|
|
6003
6004
|
"pointerdown",
|
|
6004
6005
|
"keydown",
|
|
@@ -6018,11 +6019,11 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6018
6019
|
n,
|
|
6019
6020
|
o,
|
|
6020
6021
|
e,
|
|
6021
|
-
|
|
6022
|
+
i,
|
|
6022
6023
|
E,
|
|
6023
6024
|
s
|
|
6024
6025
|
]), m(() => {
|
|
6025
|
-
if (d || o || h.current ||
|
|
6026
|
+
if (d || o || h.current || i || !s || !l?.active || !g.current || !y.current) return;
|
|
6026
6027
|
let e = !1, t = sr(l, {
|
|
6027
6028
|
host: g.current,
|
|
6028
6029
|
copies: y.current,
|
|
@@ -6039,11 +6040,11 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6039
6040
|
o,
|
|
6040
6041
|
d,
|
|
6041
6042
|
l,
|
|
6042
|
-
|
|
6043
|
+
i,
|
|
6043
6044
|
E,
|
|
6044
6045
|
s
|
|
6045
6046
|
]);
|
|
6046
|
-
let D =
|
|
6047
|
+
let D = i || !s, O = l?.pumpkin?.rect;
|
|
6047
6048
|
return /* @__PURE__ */ x("div", {
|
|
6048
6049
|
ref: g,
|
|
6049
6050
|
className: yr.scene,
|
|
@@ -6500,13 +6501,13 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6500
6501
|
chestLid: "_chestLid_1112m_129",
|
|
6501
6502
|
"chest-chew": "_chest-chew_1112m_1"
|
|
6502
6503
|
}, Mr = () => {
|
|
6503
|
-
let e = h(), n =
|
|
6504
|
+
let e = h(), n = r(), { anchors: i } = t(), a = _(null), o = _(null), s = _(null), c = _(null), l = _(null), [u, d] = v(null), [f, p] = v(!1), [g] = v(() => ({
|
|
6504
6505
|
"--place-x": .12 + Math.random() * .76,
|
|
6505
6506
|
"--place-y": .12 + Math.random() * .6
|
|
6506
6507
|
}));
|
|
6507
6508
|
m(() => {
|
|
6508
|
-
d(n || !a.current ? null : xr(Dr(
|
|
6509
|
-
}, [
|
|
6509
|
+
d(n || !a.current ? null : xr(Dr(i), a.current.getBoundingClientRect()));
|
|
6510
|
+
}, [i, n]), m(() => {
|
|
6510
6511
|
if (p(!1), !n && u && o.current && s.current && c.current && l.current) return Cr(u, o.current, s.current, c.current, () => p(!0), l.current);
|
|
6511
6512
|
}, [u, n]);
|
|
6512
6513
|
let y = u ? u.grab.height / 2 + 4 : 0, S = u ? Math.min(38, u.grab.width * .14) : 0, C = `M0 0 C${-S * 1.6} ${y * .3} ${-S * 1.8} ${-y * .6} ${-S * .8} ${-y} C${S * .1} ${-y - 7} ${S * .7} ${-y - 4} ${S * .9} ${-y + 3}`, w = `M${S * .9} ${-y + 3} C${S * 1.5} ${-y * .72} ${-S * .85} ${y * .28} ${-S * .7} ${y - 4} C${-S * .55} ${y + 8} ${S * .65} ${y + 8} ${S * .9} ${y - 3}`, E = `M${S * .9} ${y - 3} C${S * 1.2} ${y * .45} ${S * 1.1} ${y * .18} ${S * .65} ${y * .24} C${S * .3} ${y * .3} ${S * .6} ${y * .65} ${S * .82} ${y * .54}`;
|
|
@@ -7000,7 +7001,7 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7000
7001
|
dust: "_dust_135v7_60",
|
|
7001
7002
|
"mummy-dust": "_mummy-dust_135v7_1"
|
|
7002
7003
|
}, Vr = () => {
|
|
7003
|
-
let e = h(), n =
|
|
7004
|
+
let e = h(), n = r(), { anchors: i, isMobile: a } = t(), o = _(null), s = _(null), [c, l] = v(null), [u, d] = v(!1), [f, p] = v(!1);
|
|
7004
7005
|
m(() => {
|
|
7005
7006
|
d(!1), l(null), p(!1);
|
|
7006
7007
|
let e = s.current, t = o.current;
|
|
@@ -7008,21 +7009,21 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7008
7009
|
p(!0);
|
|
7009
7010
|
return;
|
|
7010
7011
|
}
|
|
7011
|
-
let
|
|
7012
|
-
if (await Promise.resolve(),
|
|
7012
|
+
let r = !1, c, u = async () => {
|
|
7013
|
+
if (await Promise.resolve(), r) return;
|
|
7013
7014
|
p(!0);
|
|
7014
|
-
let n =
|
|
7015
|
+
let n = i.composer ? Pr(i.composer) : null;
|
|
7015
7016
|
if (!n) return;
|
|
7016
7017
|
let a = document.documentElement, o = Fr(n.rect, a.clientWidth, a.clientHeight);
|
|
7017
7018
|
l(o), c = Ir(n, t, e, o, () => d(!0));
|
|
7018
7019
|
}, f = a ? zr(u, () => {
|
|
7019
|
-
|
|
7020
|
+
r = !0, p(!0), d(!0);
|
|
7020
7021
|
}) : void 0;
|
|
7021
7022
|
return a || u(), () => {
|
|
7022
|
-
|
|
7023
|
+
r = !0, f?.(), c?.();
|
|
7023
7024
|
};
|
|
7024
7025
|
}, [
|
|
7025
|
-
|
|
7026
|
+
i,
|
|
7026
7027
|
a,
|
|
7027
7028
|
n
|
|
7028
7029
|
]);
|
|
@@ -7280,12 +7281,12 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7280
7281
|
clawFinger: "_clawFinger_1errp_34",
|
|
7281
7282
|
"claw-grip": "_claw-grip_1errp_1"
|
|
7282
7283
|
}, Ur = f(() => {
|
|
7283
|
-
let e = h(), { isMobile: n, anchors:
|
|
7284
|
+
let e = h(), { isMobile: n, anchors: i } = t(), a = r(), o = _(null), [s, c] = v(null);
|
|
7284
7285
|
return m(() => {
|
|
7285
|
-
let e = a ? [] : Tr(St(
|
|
7286
|
-
if (c(
|
|
7286
|
+
let e = a ? [] : Tr(St(i)), t = document.documentElement, r = wr(t.clientWidth, t.clientHeight, e, n);
|
|
7287
|
+
if (c(r), !a && o.current) return Er(e, o.current, r.center);
|
|
7287
7288
|
}, [
|
|
7288
|
-
|
|
7289
|
+
i,
|
|
7289
7290
|
n,
|
|
7290
7291
|
a
|
|
7291
7292
|
]), /* @__PURE__ */ x("div", {
|
|
@@ -7808,7 +7809,7 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7808
7809
|
active: !!(e.composer || e.conversation || e.pumpkin)
|
|
7809
7810
|
};
|
|
7810
7811
|
}, ei = "[hidden], [inert], [aria-hidden=\"true\"], [data-celebration-snapshot]", ti = /^(auto|scroll|hidden|clip)$/, ni = /^(transparent|rgba\(0, 0, 0, 0\))$/, ri = "polygon(3% 8%, 21% 0%, 35% 7%, 52% 0%, 68% 6%, 94% 0%, 100% 24%, 95% 52%, 100% 84%, 80% 100%, 59% 94%, 40% 100%, 23% 92%, 0% 100%, 5% 68%, 0% 33%)", ii = (e) => {
|
|
7811
|
-
let { composer: t = "" } = e, { clientWidth: n, clientHeight:
|
|
7812
|
+
let { composer: t = "" } = e, { clientWidth: n, clientHeight: r } = document.documentElement, a = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), u = (e) => {
|
|
7812
7813
|
let t = a.get(e);
|
|
7813
7814
|
return t || (t = e.getBoundingClientRect(), a.set(e, t)), t;
|
|
7814
7815
|
}, d = (e) => {
|
|
@@ -7817,19 +7818,19 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7817
7818
|
}, f = (e) => {
|
|
7818
7819
|
if (!e || e.closest(ei)) return null;
|
|
7819
7820
|
let t = u(e);
|
|
7820
|
-
if (t.width < 24 || t.height < 12 || t.left < 0 || t.top < 0 || t.right > n || t.bottom >
|
|
7821
|
-
let
|
|
7822
|
-
for (let e = 0;
|
|
7823
|
-
let e = d(
|
|
7821
|
+
if (t.width < 24 || t.height < 12 || t.left < 0 || t.top < 0 || t.right > n || t.bottom > r) return null;
|
|
7822
|
+
let i = e, a = "";
|
|
7823
|
+
for (let e = 0; i && e < 24; e++, i = i.parentElement) {
|
|
7824
|
+
let e = d(i);
|
|
7824
7825
|
if (e.display === "none" || e.visibility === "hidden" || e.visibility === "collapse" || e.opacity === "0" || e.contentVisibility === "hidden") return null;
|
|
7825
7826
|
!a && e.backgroundColor && !ni.test(e.backgroundColor) && (a = e.backgroundColor);
|
|
7826
|
-
let n = ti.test(e.overflowX || e.overflow),
|
|
7827
|
-
if (n ||
|
|
7828
|
-
let e = u(
|
|
7829
|
-
if (n && (t.left < e.left || t.right > e.right) ||
|
|
7827
|
+
let n = ti.test(e.overflowX || e.overflow), r = ti.test(e.overflowY || e.overflow);
|
|
7828
|
+
if (n || r) {
|
|
7829
|
+
let e = u(i);
|
|
7830
|
+
if (n && (t.left < e.left || t.right > e.right) || r && (t.top < e.top || t.bottom > e.bottom)) return null;
|
|
7830
7831
|
}
|
|
7831
7832
|
}
|
|
7832
|
-
if (
|
|
7833
|
+
if (i) return null;
|
|
7833
7834
|
let o = d(e);
|
|
7834
7835
|
return {
|
|
7835
7836
|
element: e,
|
|
@@ -7843,7 +7844,7 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7843
7844
|
if (t) return t;
|
|
7844
7845
|
}
|
|
7845
7846
|
return null;
|
|
7846
|
-
}, m = p(document.getElementsByClassName(t), 4), h = p(document.querySelectorAll("[data-halloween-pumpkin-anchor]"), 4), g = [], _ = /* @__PURE__ */ new Set(), v = s(
|
|
7847
|
+
}, m = p(document.getElementsByClassName(t), 4), h = p(document.querySelectorAll("[data-halloween-pumpkin-anchor]"), 4), g = [], _ = /* @__PURE__ */ new Set(), v = s(i(e));
|
|
7847
7848
|
for (let e = 0; e < Math.min(v.length, 48) && g.length < 8; e++) {
|
|
7848
7849
|
let t = v[e].closest("li");
|
|
7849
7850
|
if (!t || _.has(t) || (_.add(t), t.contains(document.activeElement) || t.querySelector("[aria-expanded=\"true\"]") || t.getElementsByTagName("*").length > 80)) continue;
|
|
@@ -7881,7 +7882,7 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7881
7882
|
}
|
|
7882
7883
|
return {
|
|
7883
7884
|
width: n,
|
|
7884
|
-
height:
|
|
7885
|
+
height: r,
|
|
7885
7886
|
composer: m,
|
|
7886
7887
|
pumpkin: h,
|
|
7887
7888
|
conversation: y,
|
|
@@ -8410,9 +8411,9 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8410
8411
|
art: "_art_1vn5x_28",
|
|
8411
8412
|
ribbon: "_ribbon_1vn5x_46"
|
|
8412
8413
|
}, ui = 22, di = () => {
|
|
8413
|
-
let { isMobile: e, anchors: n } = t(),
|
|
8414
|
+
let { isMobile: e, anchors: n } = t(), i = _(e), a = r(), o = _(null), s = _(null), c = _(null), l = _(null), u = _([]), [d, f] = v(null), p = d?.isMobile === e && d.reducedMotion === a ? d.plan : null, [h, g] = v(!1);
|
|
8414
8415
|
m(() => {
|
|
8415
|
-
e !==
|
|
8416
|
+
e !== i.current && g(!0);
|
|
8416
8417
|
}, [e]), m(() => {
|
|
8417
8418
|
let t = !1;
|
|
8418
8419
|
return (async () => {
|
|
@@ -8557,18 +8558,18 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8557
8558
|
]
|
|
8558
8559
|
});
|
|
8559
8560
|
}, fi = ({ scene: e, children: n }) => {
|
|
8560
|
-
let
|
|
8561
|
+
let i = r(), { anchors: a } = t(), o = _(null), s = _(null), [c] = v(() => ({
|
|
8561
8562
|
"--place-x": .12 + Math.random() * .76,
|
|
8562
8563
|
"--place-y": .12 + Math.random() * .6
|
|
8563
8564
|
}));
|
|
8564
8565
|
return m(() => {
|
|
8565
|
-
if (
|
|
8566
|
+
if (i || !o.current || !s.current || typeof s.current.animate != "function") return;
|
|
8566
8567
|
let t = Dr(a), n = o.current.getBoundingClientRect();
|
|
8567
8568
|
return kr(e, t, s.current, n);
|
|
8568
8569
|
}, [
|
|
8569
8570
|
a,
|
|
8570
8571
|
e,
|
|
8571
|
-
|
|
8572
|
+
i
|
|
8572
8573
|
]), /* @__PURE__ */ x("div", {
|
|
8573
8574
|
className: jr.scene,
|
|
8574
8575
|
"data-halloween-scene": e,
|
|
@@ -9130,13 +9131,13 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9130
9131
|
}) }), /* @__PURE__ */ b(xi, { gradient: e })]
|
|
9131
9132
|
});
|
|
9132
9133
|
}, wi = () => {
|
|
9133
|
-
let { anchors: e, isMobile: n } = t(),
|
|
9134
|
+
let { anchors: e, isMobile: n } = t(), i = r(), [a] = v(() => ({
|
|
9134
9135
|
anchors: e,
|
|
9135
9136
|
isMobile: n,
|
|
9136
|
-
reduced:
|
|
9137
|
-
})), o = a.anchors !== e || a.isMobile !== n || a.reduced !==
|
|
9137
|
+
reduced: i
|
|
9138
|
+
})), o = a.anchors !== e || a.isMobile !== n || a.reduced !== i, [s] = v(() => typeof Element < "u" && typeof Element.prototype.animate == "function" && typeof ResizeObserver == "function"), [c, l] = v(null), [u, f] = v(!1), h = _(!1), g = _(null), S = p(() => {
|
|
9138
9139
|
h.current = !0, f(!0);
|
|
9139
|
-
}, []), C =
|
|
9140
|
+
}, []), C = i || !s;
|
|
9140
9141
|
m(() => {
|
|
9141
9142
|
o && S();
|
|
9142
9143
|
}, [o, S]), m(() => {
|
|
@@ -9690,7 +9691,7 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9690
9691
|
}, t))
|
|
9691
9692
|
});
|
|
9692
9693
|
}, Fi = () => {
|
|
9693
|
-
let e =
|
|
9694
|
+
let e = r(), { anchors: n } = t(), [i] = v(lt), [a, o] = v(null), [s, c] = v(!1), l = _(null), u = _([]), d = _([]), f = _([]);
|
|
9694
9695
|
return m(() => {
|
|
9695
9696
|
if (o(null), e || typeof l.current?.animate != "function") return;
|
|
9696
9697
|
let t = !1;
|
|
@@ -9698,15 +9699,15 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9698
9699
|
if (await Promise.resolve(), t) return;
|
|
9699
9700
|
let e = Di(n);
|
|
9700
9701
|
if (!e.length) return;
|
|
9701
|
-
let
|
|
9702
|
-
o(ki(e,
|
|
9702
|
+
let r = document.documentElement;
|
|
9703
|
+
o(ki(e, i, r.clientWidth, r.clientHeight));
|
|
9703
9704
|
})(), () => {
|
|
9704
9705
|
t = !0;
|
|
9705
9706
|
};
|
|
9706
9707
|
}, [
|
|
9707
9708
|
n,
|
|
9708
9709
|
e,
|
|
9709
|
-
|
|
9710
|
+
i
|
|
9710
9711
|
]), m(() => {
|
|
9711
9712
|
if (c(!1), !a || e || !l.current) return;
|
|
9712
9713
|
let t = [];
|
|
@@ -9725,7 +9726,7 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9725
9726
|
className: Ni.scene,
|
|
9726
9727
|
"data-halloween-scene": T.Spiders,
|
|
9727
9728
|
"aria-hidden": "true",
|
|
9728
|
-
children: !a || e ?
|
|
9729
|
+
children: !a || e ? i.map((e, t) => /* @__PURE__ */ b("span", {
|
|
9729
9730
|
className: K.spiderDrop,
|
|
9730
9731
|
style: e.style,
|
|
9731
9732
|
children: /* @__PURE__ */ x("span", {
|
|
@@ -10632,13 +10633,13 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10632
10633
|
] })]
|
|
10633
10634
|
});
|
|
10634
10635
|
}, qi = ({ soundtrackUrl: e }) => {
|
|
10635
|
-
let t =
|
|
10636
|
+
let t = r(), n = _(null), i = _(null), a = _(null), [o, s] = v(null), [c, l] = v(!1), [u, d] = v(!1);
|
|
10636
10637
|
m(() => {
|
|
10637
10638
|
s(null), d(!0), !t && n.current && typeof n.current.animate == "function" && (a.current = Li(), s(Ri(n.current.getBoundingClientRect(), document.documentElement.clientWidth, a.current?.getBoundingClientRect())));
|
|
10638
10639
|
}, [t]), m(() => {
|
|
10639
|
-
if (l(!1), !t && o && n.current &&
|
|
10640
|
+
if (l(!1), !t && o && n.current && i.current) return zi(o, {
|
|
10640
10641
|
carrier: n.current,
|
|
10641
|
-
passenger:
|
|
10642
|
+
passenger: i.current,
|
|
10642
10643
|
source: a.current
|
|
10643
10644
|
}, () => l(!0), e);
|
|
10644
10645
|
}, [
|
|
@@ -10663,7 +10664,7 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10663
10664
|
children: /* @__PURE__ */ b(Ki, {})
|
|
10664
10665
|
}),
|
|
10665
10666
|
/* @__PURE__ */ b("div", {
|
|
10666
|
-
ref:
|
|
10667
|
+
ref: i,
|
|
10667
10668
|
className: Vi.passenger,
|
|
10668
10669
|
"data-train-passenger": "true",
|
|
10669
10670
|
style: f ? {
|
|
@@ -10963,27 +10964,27 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10963
10964
|
strands: h
|
|
10964
10965
|
};
|
|
10965
10966
|
}, fa = 12, pa = 48, ma = 4, ha = 4, ga = 24, _a = "[hidden], [inert], [aria-hidden=\"true\"], [data-celebration-snapshot]", va = /^(auto|scroll|hidden|clip)$/, ya = (e, t) => {
|
|
10966
|
-
let n = document.documentElement,
|
|
10967
|
-
if (!
|
|
10967
|
+
let n = document.documentElement, r = n.clientWidth, a = n.clientHeight;
|
|
10968
|
+
if (!r || !a) return [];
|
|
10968
10969
|
let c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), u = [], d = /* @__PURE__ */ new Set(), f = [], p = (e) => {
|
|
10969
10970
|
let t = c.get(e);
|
|
10970
10971
|
return t || (t = e.getBoundingClientRect(), c.set(e, t)), t;
|
|
10971
10972
|
}, m = (e) => {
|
|
10972
10973
|
if (!e || f.length >= fa || d.has(e) || e.closest(_a) || e.matches("[role=\"presentation\"], [role=\"none\"]") || (d.add(e), u.some((t) => t.contains(e) || e.contains(t)))) return;
|
|
10973
10974
|
let n = p(e);
|
|
10974
|
-
if (n.width < 12 || n.height < 12 || n.width * n.height >
|
|
10975
|
-
let
|
|
10976
|
-
for (;
|
|
10977
|
-
let e = l.get(
|
|
10978
|
-
if (e || (e = getComputedStyle(
|
|
10979
|
-
let t = va.test(e.overflowX || e.overflow),
|
|
10980
|
-
if (t ||
|
|
10981
|
-
let e = p(
|
|
10982
|
-
if (t && (n.left < e.left || n.right > e.right) ||
|
|
10975
|
+
if (n.width < 12 || n.height < 12 || n.width * n.height > r * a * .48 || n.left < 0 || n.top < 0 || n.right > r || n.bottom > a) return;
|
|
10976
|
+
let i = e, o = 0;
|
|
10977
|
+
for (; i && o++ < ga;) {
|
|
10978
|
+
let e = l.get(i);
|
|
10979
|
+
if (e || (e = getComputedStyle(i), l.set(i, e)), e.display === "none" || e.visibility === "hidden" || e.visibility === "collapse" || e.opacity === "0" || e.contentVisibility === "hidden") return;
|
|
10980
|
+
let t = va.test(e.overflowX || e.overflow), r = va.test(e.overflowY || e.overflow);
|
|
10981
|
+
if (t || r) {
|
|
10982
|
+
let e = p(i);
|
|
10983
|
+
if (t && (n.left < e.left || n.right > e.right) || r && (n.top < e.top || n.bottom > e.bottom)) return;
|
|
10983
10984
|
}
|
|
10984
|
-
|
|
10985
|
+
i = i.parentElement;
|
|
10985
10986
|
}
|
|
10986
|
-
|
|
10987
|
+
i || f.some((e) => Math.abs(e.left - n.left) < 2 && Math.abs(e.top - n.top) < 2 && Math.abs(e.width - n.width) < 2 && Math.abs(e.height - n.height) < 2) || (u.push(e), t?.(e), f.push({
|
|
10987
10988
|
left: n.left,
|
|
10988
10989
|
top: n.top,
|
|
10989
10990
|
width: n.width,
|
|
@@ -11011,13 +11012,13 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11011
11012
|
break;
|
|
11012
11013
|
}
|
|
11013
11014
|
}
|
|
11014
|
-
let _ = s(
|
|
11015
|
+
let _ = s(i(e));
|
|
11015
11016
|
for (let e = 0; e < Math.min(_.length, pa) && f.length < fa; e++) m(_[e].closest("li"));
|
|
11016
11017
|
return f;
|
|
11017
11018
|
}, ba = { scene: "_scene_1esvn_1" }, xa = f(() => {
|
|
11018
|
-
let { isMobile: e, anchors: n } = t(),
|
|
11019
|
+
let { isMobile: e, anchors: n } = t(), i = r(), a = _(null), o = _(null);
|
|
11019
11020
|
return m(() => {
|
|
11020
|
-
let t = !1,
|
|
11021
|
+
let t = !1, r;
|
|
11021
11022
|
return (async () => {
|
|
11022
11023
|
if (await Promise.resolve(), t) return;
|
|
11023
11024
|
let s = [], c = ya(n, (e) => s.push(e)), l = a.current;
|
|
@@ -11032,19 +11033,19 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11032
11033
|
isMobile: e,
|
|
11033
11034
|
targets: c
|
|
11034
11035
|
})
|
|
11035
|
-
}),
|
|
11036
|
-
reducedMotion:
|
|
11036
|
+
}), r = na(l, o.current.plan, {
|
|
11037
|
+
reducedMotion: i,
|
|
11037
11038
|
color: getComputedStyle(l).color,
|
|
11038
11039
|
pixelRatio: window.devicePixelRatio,
|
|
11039
11040
|
targets: s
|
|
11040
11041
|
});
|
|
11041
11042
|
})(), () => {
|
|
11042
|
-
t = !0,
|
|
11043
|
+
t = !0, r?.();
|
|
11043
11044
|
};
|
|
11044
11045
|
}, [
|
|
11045
11046
|
n,
|
|
11046
11047
|
e,
|
|
11047
|
-
|
|
11048
|
+
i
|
|
11048
11049
|
]), /* @__PURE__ */ b("canvas", {
|
|
11049
11050
|
ref: a,
|
|
11050
11051
|
className: d("text-primary", ba.scene),
|
|
@@ -12156,21 +12157,21 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12156
12157
|
})
|
|
12157
12158
|
]
|
|
12158
12159
|
}), Ja = () => {
|
|
12159
|
-
let { isMobile: e, anchors: n } = t(),
|
|
12160
|
+
let { isMobile: e, anchors: n } = t(), i = r(), [a] = v(() => ({
|
|
12160
12161
|
isMobile: e,
|
|
12161
|
-
reducedMotion:
|
|
12162
|
+
reducedMotion: i,
|
|
12162
12163
|
anchors: n
|
|
12163
|
-
})), o = a.isMobile !== e || a.reducedMotion !==
|
|
12164
|
+
})), o = a.isMobile !== e || a.reducedMotion !== i || a.anchors !== n, [s] = v(() => typeof Element < "u" && typeof Element.prototype.animate == "function"), [c, l] = v(null), [u, f] = v(!1), h = _(!1), g = _(null), y = _(null), S = _(null), C = _([]), w = _([]), E = p(() => {
|
|
12164
12165
|
h.current = !0, f(!0);
|
|
12165
12166
|
}, []);
|
|
12166
12167
|
m(() => {
|
|
12167
12168
|
o && E();
|
|
12168
12169
|
}, [o, E]), m(() => {
|
|
12169
|
-
if (u || o || h.current ||
|
|
12170
|
-
let t = !1,
|
|
12170
|
+
if (u || o || h.current || i || !s) return;
|
|
12171
|
+
let t = !1, r = () => {
|
|
12171
12172
|
t = !0, E();
|
|
12172
12173
|
}, a = (e) => {
|
|
12173
|
-
e.type === "scroll" && e.target instanceof Node && g.current?.contains(e.target) || (e.type !== "visibilitychange" || document.hidden) &&
|
|
12174
|
+
e.type === "scroll" && e.target instanceof Node && g.current?.contains(e.target) || (e.type !== "visibilitychange" || document.hidden) && r();
|
|
12174
12175
|
}, c = [
|
|
12175
12176
|
"pointerdown",
|
|
12176
12177
|
"keydown",
|
|
@@ -12192,12 +12193,12 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12192
12193
|
o,
|
|
12193
12194
|
u,
|
|
12194
12195
|
e,
|
|
12195
|
-
|
|
12196
|
+
i,
|
|
12196
12197
|
E,
|
|
12197
12198
|
s
|
|
12198
12199
|
]), m(() => {
|
|
12199
12200
|
let e = S.current?.querySelector("svg");
|
|
12200
|
-
if (u || o || h.current ||
|
|
12201
|
+
if (u || o || h.current || i || !s || !c || !g.current || !y.current || !e) return;
|
|
12201
12202
|
let t = !1, n = Va(c, {
|
|
12202
12203
|
host: g.current,
|
|
12203
12204
|
copies: y.current,
|
|
@@ -12214,11 +12215,11 @@ var w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12214
12215
|
o,
|
|
12215
12216
|
u,
|
|
12216
12217
|
c,
|
|
12217
|
-
|
|
12218
|
+
i,
|
|
12218
12219
|
E,
|
|
12219
12220
|
s
|
|
12220
12221
|
]);
|
|
12221
|
-
let D =
|
|
12222
|
+
let D = i || !s;
|
|
12222
12223
|
return /* @__PURE__ */ x("div", {
|
|
12223
12224
|
ref: g,
|
|
12224
12225
|
className: d($.scene, "pointer-events-none absolute inset-0 overflow-clip select-none"),
|