@epam/ai-dial-celebrations 1.2.0-dev.181 → 1.2.0-dev.185
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/halloween/components/Halloween/HalloweenMummy.d.ts.map +1 -1
- package/halloween/components/Halloween/HalloweenWebScene.d.ts.map +1 -1
- package/halloween/utils/halloween-bowling.d.ts.map +1 -1
- package/halloween/utils/halloween-mummy-preparation.d.ts +3 -0
- package/halloween/utils/halloween-mummy-preparation.d.ts.map +1 -0
- package/halloween/utils/halloween-portal.d.ts.map +1 -1
- package/halloween/utils/halloween-train.d.ts.map +1 -1
- package/halloween/utils/halloween-web-animation.d.ts +2 -1
- package/halloween/utils/halloween-web-animation.d.ts.map +1 -1
- package/halloween/utils/halloween-web-targets.d.ts +1 -1
- package/halloween/utils/halloween-web-targets.d.ts.map +1 -1
- package/halloween.js +947 -857
- package/package.json +2 -2
- package/utils/scene-targets.d.ts +3 -0
- package/utils/scene-targets.d.ts.map +1 -0
package/halloween.js
CHANGED
|
@@ -2803,7 +2803,18 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
2803
2803
|
let o = Math.sqrt(i ** 2 - a ** 2), s = ((n < t ? e.right + o : e.left - o) - t) / (n - t);
|
|
2804
2804
|
return s < 0 || s > 1 ? null : Ot + s * (kt - Ot);
|
|
2805
2805
|
}, Mt = (e, t, n) => {
|
|
2806
|
-
if (!e.length)
|
|
2806
|
+
if (!e.length) {
|
|
2807
|
+
if (t < 96 || n < 96) return null;
|
|
2808
|
+
let e = Math.min(44, t * .09, n * .09);
|
|
2809
|
+
return {
|
|
2810
|
+
startX: t - e - 16,
|
|
2811
|
+
endX: -e - 20,
|
|
2812
|
+
y: n * .55,
|
|
2813
|
+
radius: e,
|
|
2814
|
+
direction: -1,
|
|
2815
|
+
hits: []
|
|
2816
|
+
};
|
|
2817
|
+
}
|
|
2807
2818
|
let r = e.map((e) => ({
|
|
2808
2819
|
...e,
|
|
2809
2820
|
contactRect: At(e)
|
|
@@ -2822,8 +2833,22 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
2822
2833
|
}];
|
|
2823
2834
|
}).sort((e, t) => e.contact - t.contact).slice(0, 6)
|
|
2824
2835
|
};
|
|
2825
|
-
}, Nt = (e
|
|
2826
|
-
|
|
2836
|
+
}, Nt = (e) => {
|
|
2837
|
+
let t = [
|
|
2838
|
+
"pointerdown",
|
|
2839
|
+
"keydown",
|
|
2840
|
+
"beforeinput",
|
|
2841
|
+
"input",
|
|
2842
|
+
"compositionstart",
|
|
2843
|
+
"focusin",
|
|
2844
|
+
"scroll",
|
|
2845
|
+
"visibilitychange"
|
|
2846
|
+
], n = !1, r = () => {
|
|
2847
|
+
n || (n = !0, clearTimeout(i), t.forEach((e) => document.removeEventListener(e, r, !0)), window.removeEventListener("resize", r), e());
|
|
2848
|
+
}, i = setTimeout(r, Dt);
|
|
2849
|
+
return t.forEach((e) => document.addEventListener(e, r, !0)), window.addEventListener("resize", r), r;
|
|
2850
|
+
}, Pt = (e, t, n, r, i) => {
|
|
2851
|
+
if (typeof n.animate != "function" || typeof r.animate != "function") return () => void 0;
|
|
2827
2852
|
let a = [], o = () => {
|
|
2828
2853
|
a.forEach((e) => e.cancel()), i?.();
|
|
2829
2854
|
}, s = e.endX - e.startX, c = typeof document.timeline?.currentTime == "number" ? document.timeline.currentTime : void 0;
|
|
@@ -2892,7 +2917,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
2892
2917
|
} catch {
|
|
2893
2918
|
return o(), () => void 0;
|
|
2894
2919
|
}
|
|
2895
|
-
return A(e.hits, t, {
|
|
2920
|
+
return e.hits.length ? A(e.hits, t, {
|
|
2896
2921
|
durationMs: Dt,
|
|
2897
2922
|
hideAt: (t) => e.hits[t].contact,
|
|
2898
2923
|
restoreAt: .94,
|
|
@@ -2944,32 +2969,32 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
2944
2969
|
];
|
|
2945
2970
|
},
|
|
2946
2971
|
onStop: o
|
|
2947
|
-
});
|
|
2948
|
-
},
|
|
2972
|
+
}) : Nt(o);
|
|
2973
|
+
}, Ft = {
|
|
2949
2974
|
scene: "_scene_1bmud_1",
|
|
2950
2975
|
actor: "_actor_1bmud_9",
|
|
2951
2976
|
spin: "_spin_1bmud_26"
|
|
2952
|
-
},
|
|
2977
|
+
}, It = () => {
|
|
2953
2978
|
let e = l(), n = D(), { anchors: r } = t(), i = d(null), a = d(null), o = d(null), [s, u] = f(null), [p, m] = f(!1), [_, v] = f(!1);
|
|
2954
2979
|
c(() => {
|
|
2955
2980
|
m(!0), v(!1), u(null);
|
|
2956
2981
|
let e = i.current, t = a.current, s = o.current;
|
|
2957
2982
|
if (n || !e || !t || !s || typeof e.animate != "function" || typeof t.animate != "function") return;
|
|
2958
2983
|
let c = document.documentElement, l = Mt(Et(r), c.clientWidth, c.clientHeight);
|
|
2959
|
-
if (l
|
|
2984
|
+
if (l) return u(l), Pt(l, s, e, t, () => v(!0));
|
|
2960
2985
|
}, [r, n]);
|
|
2961
2986
|
let y = s ? s.radius * 160 / 64 : 110;
|
|
2962
2987
|
return /* @__PURE__ */ g("div", {
|
|
2963
|
-
className:
|
|
2988
|
+
className: Ft.scene,
|
|
2964
2989
|
"data-halloween-scene": b.Bowling,
|
|
2965
2990
|
"aria-hidden": "true",
|
|
2966
2991
|
children: [/* @__PURE__ */ h("div", {
|
|
2967
2992
|
ref: o,
|
|
2968
|
-
className:
|
|
2993
|
+
className: Ft.scene,
|
|
2969
2994
|
inert: !0
|
|
2970
2995
|
}), /* @__PURE__ */ h("div", {
|
|
2971
2996
|
ref: i,
|
|
2972
|
-
className:
|
|
2997
|
+
className: Ft.actor,
|
|
2973
2998
|
style: {
|
|
2974
2999
|
visibility: !p || _ && !n ? "hidden" : void 0,
|
|
2975
3000
|
...s && !n ? {
|
|
@@ -2991,7 +3016,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
2991
3016
|
opacity: "0.3"
|
|
2992
3017
|
}), /* @__PURE__ */ g("g", {
|
|
2993
3018
|
ref: a,
|
|
2994
|
-
className:
|
|
3019
|
+
className: Ft.spin,
|
|
2995
3020
|
children: [/* @__PURE__ */ g("defs", { children: [/* @__PURE__ */ g("radialGradient", {
|
|
2996
3021
|
id: `${e}-rind`,
|
|
2997
3022
|
cx: "0.35",
|
|
@@ -3062,7 +3087,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3062
3087
|
})
|
|
3063
3088
|
})]
|
|
3064
3089
|
});
|
|
3065
|
-
},
|
|
3090
|
+
}, Lt = (e, t, n) => {
|
|
3066
3091
|
let r = [], i = !1, a, o = e.targets.surfaces, s = [
|
|
3067
3092
|
"pointerdown",
|
|
3068
3093
|
"keydown",
|
|
@@ -3136,7 +3161,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3136
3161
|
c();
|
|
3137
3162
|
}
|
|
3138
3163
|
return c;
|
|
3139
|
-
},
|
|
3164
|
+
}, Rt = (e, t) => {
|
|
3140
3165
|
let { clientWidth: n, clientHeight: r } = document.documentElement, i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = (e) => (i.has(e) || i.set(e, e.getBoundingClientRect()), i.get(e)), s = (e) => (a.has(e) || a.set(e, getComputedStyle(e)), a.get(e)), c = (e) => {
|
|
3141
3166
|
if (e.closest("[hidden], [inert], [aria-hidden=\"true\"], [data-celebration-snapshot]")) return;
|
|
3142
3167
|
let t = o(e);
|
|
@@ -3219,7 +3244,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3219
3244
|
bristles: "_bristles_2r8vk_148",
|
|
3220
3245
|
bristleLines: "_bristleLines_2r8vk_154",
|
|
3221
3246
|
binding: "_binding_2r8vk_160"
|
|
3222
|
-
},
|
|
3247
|
+
}, zt = ({ variant: e }) => /* @__PURE__ */ h("svg", {
|
|
3223
3248
|
viewBox: "0 0 64 48",
|
|
3224
3249
|
className: "size-full overflow-visible",
|
|
3225
3250
|
"aria-hidden": "true",
|
|
@@ -3271,7 +3296,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3271
3296
|
d: "M20 18Q19 8 26 6"
|
|
3272
3297
|
})
|
|
3273
3298
|
] })
|
|
3274
|
-
}),
|
|
3299
|
+
}), Bt = () => {
|
|
3275
3300
|
let e = l();
|
|
3276
3301
|
return /* @__PURE__ */ g("svg", {
|
|
3277
3302
|
viewBox: "0 0 100 100",
|
|
@@ -3379,7 +3404,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3379
3404
|
})
|
|
3380
3405
|
]
|
|
3381
3406
|
});
|
|
3382
|
-
},
|
|
3407
|
+
}, Vt = ({ kind: e }) => {
|
|
3383
3408
|
let t = e === N.Mummy;
|
|
3384
3409
|
return /* @__PURE__ */ g("svg", {
|
|
3385
3410
|
viewBox: "0 0 160 180",
|
|
@@ -3535,7 +3560,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3535
3560
|
})
|
|
3536
3561
|
]
|
|
3537
3562
|
});
|
|
3538
|
-
},
|
|
3563
|
+
}, Ht = () => {
|
|
3539
3564
|
let { anchors: e, isMobile: n } = t(), r = D(), [i] = f(() => ({
|
|
3540
3565
|
anchors: e,
|
|
3541
3566
|
isMobile: n,
|
|
@@ -3561,7 +3586,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3561
3586
|
"visibilitychange"
|
|
3562
3587
|
];
|
|
3563
3588
|
return i.forEach((e) => window.addEventListener(e, r, !0)), Promise.resolve().then(() => {
|
|
3564
|
-
!t && !v.current && u(re(
|
|
3589
|
+
!t && !v.current && u(re(Rt(e, n), n));
|
|
3565
3590
|
}), () => {
|
|
3566
3591
|
t = !0, i.forEach((e) => window.removeEventListener(e, r, !0));
|
|
3567
3592
|
};
|
|
@@ -3574,7 +3599,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3574
3599
|
b
|
|
3575
3600
|
]), c(() => {
|
|
3576
3601
|
if (!l || !y.current || x || a || p || v.current) return;
|
|
3577
|
-
let e = !1, t =
|
|
3602
|
+
let e = !1, t = Lt(l, y.current, () => {
|
|
3578
3603
|
e || b();
|
|
3579
3604
|
});
|
|
3580
3605
|
return () => {
|
|
@@ -3605,7 +3630,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3605
3630
|
children: [
|
|
3606
3631
|
[0, 1].map((e) => /* @__PURE__ */ h("div", {
|
|
3607
3632
|
className: "size-10",
|
|
3608
|
-
children: /* @__PURE__ */ h(
|
|
3633
|
+
children: /* @__PURE__ */ h(Bt, {})
|
|
3609
3634
|
}, e)),
|
|
3610
3635
|
[
|
|
3611
3636
|
0,
|
|
@@ -3613,7 +3638,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3613
3638
|
2
|
|
3614
3639
|
].map((e) => /* @__PURE__ */ h("div", {
|
|
3615
3640
|
className: "h-4 w-5",
|
|
3616
|
-
children: /* @__PURE__ */ h(
|
|
3641
|
+
children: /* @__PURE__ */ h(zt, { variant: e })
|
|
3617
3642
|
}, e)),
|
|
3618
3643
|
[
|
|
3619
3644
|
N.Mummy,
|
|
@@ -3621,7 +3646,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3621
3646
|
N.Skeleton
|
|
3622
3647
|
].map((e, t) => /* @__PURE__ */ h("div", {
|
|
3623
3648
|
className: "h-[68px] w-[60px]",
|
|
3624
|
-
children: /* @__PURE__ */ h(
|
|
3649
|
+
children: /* @__PURE__ */ h(Vt, { kind: e })
|
|
3625
3650
|
}, t))
|
|
3626
3651
|
]
|
|
3627
3652
|
}) : l && /* @__PURE__ */ g(m, { children: [
|
|
@@ -3636,7 +3661,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3636
3661
|
marginLeft: -l.radius * 1.3,
|
|
3637
3662
|
marginTop: -l.radius
|
|
3638
3663
|
},
|
|
3639
|
-
children: /* @__PURE__ */ h(
|
|
3664
|
+
children: /* @__PURE__ */ h(zt, { variant: t })
|
|
3640
3665
|
}, t)),
|
|
3641
3666
|
[...l.janitors.keys()].reverse().map((e) => /* @__PURE__ */ h("div", {
|
|
3642
3667
|
className: "absolute top-0 opacity-0",
|
|
@@ -3650,7 +3675,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3650
3675
|
children: /* @__PURE__ */ h("div", {
|
|
3651
3676
|
className: "size-full",
|
|
3652
3677
|
"data-candy-facing": !0,
|
|
3653
|
-
children: /* @__PURE__ */ h(
|
|
3678
|
+
children: /* @__PURE__ */ h(Vt, { kind: l.janitors[e].kind })
|
|
3654
3679
|
})
|
|
3655
3680
|
}, e)),
|
|
3656
3681
|
l.birds.map((e, t) => /* @__PURE__ */ h("div", {
|
|
@@ -3665,24 +3690,24 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3665
3690
|
children: /* @__PURE__ */ h("div", {
|
|
3666
3691
|
className: "size-full",
|
|
3667
3692
|
"data-candy-facing": !0,
|
|
3668
|
-
children: /* @__PURE__ */ h(
|
|
3693
|
+
children: /* @__PURE__ */ h(Bt, {})
|
|
3669
3694
|
})
|
|
3670
3695
|
}, t))
|
|
3671
3696
|
] })
|
|
3672
3697
|
});
|
|
3673
|
-
},
|
|
3674
|
-
let r =
|
|
3698
|
+
}, Ut = Ae, Wt = .92, Gt = 2600, Kt = 3100, qt = 3700, Jt = 7600, Yt = 8300, Xt = [8600, 15300], Zt = 2500, Qt = 1e3, $t = 1150, en = 2050, tn = 14200, nn = 15100, rn = 22700, an = 23500, on = 24900, sn = 1.9, cn = (e, t, n) => Math.max(t, Math.min(n, e)), ln = (e, t, n) => e + (t - e) * n, un = (e, t, n) => {
|
|
3699
|
+
let r = cn((n - e) / (t - e), 0, 1);
|
|
3675
3700
|
return r * r * (3 - 2 * r);
|
|
3676
|
-
},
|
|
3677
|
-
let t = e.x - 100, n = e.y - 72, r =
|
|
3701
|
+
}, dn = (e, t, n, r, i) => un(e, t, i) * (1 - un(n, r, i)), fn = ([e, t], n, r = 220) => dn(e, e + r, t - r, t, n), pn = (e, t, n) => e.reduce((e, r) => Math.max(e, fn(r, t, n)), 0), mn = (e, t, n) => Array.from({ length: n + 1 }, (r, i) => ln(e, t, i / n)), hn = (e) => [...new Set(e.map((e) => Number(cn(e, 0, 1).toFixed(9))))].sort((e, t) => e - t), gn = (e) => `rotate(${e}deg)`, Y = (e) => e / Ut, _n = (e) => e * Ut, vn = (e, t) => Math.sin(e / 1e3 * Math.PI * 2 * t), yn = (e) => {
|
|
3702
|
+
let t = e.x - 100, n = e.y - 72, r = cn((t * t + n * n - 1152) / 1152, -1, 1), i = -Math.acos(r);
|
|
3678
3703
|
return [(Math.atan2(n, t) - Math.atan2(24 * Math.sin(i), 24 + 24 * Math.cos(i))) * 180 / Math.PI - 90, i * 180 / Math.PI];
|
|
3679
|
-
},
|
|
3680
|
-
x: (e.side > 0 ? e.target.rect.left : e.target.rect.right) +
|
|
3704
|
+
}, bn = (e, t) => e.side * e.pushes.reduce((e, n) => e + n.amount * un(n.start, n.end, t), 0), xn = (e, t) => e.side * e.pushes.reduce((e, n) => e + n.amount * un(n.end + Y(150), n.end + Y(650), t), 0), Sn = (e, t) => ({
|
|
3705
|
+
x: (e.side > 0 ? e.target.rect.left : e.target.rect.right) + bn(e, t),
|
|
3681
3706
|
y: e.target.rect.top + e.target.rect.height * .62
|
|
3682
|
-
}),
|
|
3683
|
-
x: e.foot.x +
|
|
3707
|
+
}), Cn = (e, t) => ({
|
|
3708
|
+
x: e.foot.x + xn(e, t),
|
|
3684
3709
|
y: e.foot.y
|
|
3685
|
-
}),
|
|
3710
|
+
}), wn = (e, t) => {
|
|
3686
3711
|
let { width: n, height: r, composer: i } = e, a = t ? 112 : 140, o = a / 160, s = {
|
|
3687
3712
|
active: !1,
|
|
3688
3713
|
width: n,
|
|
@@ -3724,14 +3749,14 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3724
3749
|
}, u = a * .46, d = i > 0 ? n - s.right - 3 : s.left - 3, f = i > 0 ? n - u - l.x : l.x - u;
|
|
3725
3750
|
if (l.x < u || l.x > n - u || d < 8 || f < 5) continue;
|
|
3726
3751
|
let p = c.length, m = p === 0 ? Math.min(5, d * .25) : 0, h = Math.min(a * .16, d - m, f), g = s.left + i * (m + h), _ = g + s.width, v = e.supports.filter(({ rect: e, element: n }) => n !== t.element && e.top >= s.bottom + 12 && Math.min(_, e.right) - Math.max(g, e.left) >= Math.min(16, s.width * .3)).sort((e, t) => e.rect.top - t.rect.top)[0], y = v?.rect.top ?? r - 2, b = y - s.bottom, x = (p === 0 ? [m, h] : [h * .45, h * .55]).map((e, t) => {
|
|
3727
|
-
let n =
|
|
3752
|
+
let n = Xt[p] + t * Zt;
|
|
3728
3753
|
return {
|
|
3729
|
-
touch: Y(n +
|
|
3730
|
-
start: Y(n +
|
|
3731
|
-
end: Y(n +
|
|
3754
|
+
touch: Y(n + Qt),
|
|
3755
|
+
start: Y(n + $t),
|
|
3756
|
+
end: Y(n + en),
|
|
3732
3757
|
amount: e
|
|
3733
3758
|
};
|
|
3734
|
-
}), S = x[x.length - 1].end, C = Math.sqrt(2 * b / 2e3) / (
|
|
3759
|
+
}), S = x[x.length - 1].end, C = Math.sqrt(2 * b / 2e3) / (Ut / 1e3);
|
|
3735
3760
|
c.push({
|
|
3736
3761
|
target: t,
|
|
3737
3762
|
foot: l,
|
|
@@ -3747,31 +3772,31 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3747
3772
|
}
|
|
3748
3773
|
}
|
|
3749
3774
|
if (!c.length) return s;
|
|
3750
|
-
let l = c[0], u = c[c.length - 1], d = Math.min(u.drop * .32, a * .75), f = Math.sqrt(2 * d / 2e3) / (
|
|
3775
|
+
let l = c[0], u = c[c.length - 1], d = Math.min(u.drop * .32, a * .75), f = Math.sqrt(2 * d / 2e3) / (Ut / 1e3);
|
|
3751
3776
|
u.rebound = {
|
|
3752
3777
|
height: d,
|
|
3753
3778
|
apex: u.landing + f,
|
|
3754
3779
|
end: u.landing + f * 2
|
|
3755
3780
|
};
|
|
3756
|
-
let p =
|
|
3757
|
-
|
|
3758
|
-
let g = u.side, _ =
|
|
3781
|
+
let p = _n(u.landing) + 80, m = Math.max(p + 800, _n(u.rebound.end)), h = [[m + 300, Math.min(m + 1900, rn)]];
|
|
3782
|
+
rn - h[0][1] > 4e3 && h.push([rn - 1600, rn]);
|
|
3783
|
+
let g = u.side, _ = Cn(u, 1), v = {
|
|
3759
3784
|
x: _.x - u.side * a * .14,
|
|
3760
3785
|
y: _.y
|
|
3761
|
-
}, y =
|
|
3786
|
+
}, y = Cn(l, Y(tn)), b = Math.sign(u.foot.x - y.x) || u.side, x = (e) => c.length > 1 && e >= tn ? u : l, S = c.map(({ release: e, landing: t }) => [_n(e), _n(t)]), C = [
|
|
3762
3787
|
[4300, 5500],
|
|
3763
3788
|
[6950, 7500],
|
|
3764
|
-
...c.flatMap(({ pushes: e }) => e.flatMap(({ touch: e, end: t }) => [[
|
|
3789
|
+
...c.flatMap(({ pushes: e }) => e.flatMap(({ touch: e, end: t }) => [[_n(e) - Qt, _n(e) - 250], [_n(t) + 300, _n(t) + 1e3]])),
|
|
3765
3790
|
...S.map(([, e]) => [e + 450, e + 1100]),
|
|
3766
3791
|
...h.map(([, e], t) => [e + 100, t === h.length - 1 ? 23600 : e + 1600])
|
|
3767
|
-
], w = [[5900, 6900], ...c.flatMap(({ pushes: e }) => e.map(({ touch: e, end: t }) => [
|
|
3768
|
-
[-200,
|
|
3769
|
-
...c.length > 1 ? [[
|
|
3770
|
-
...c.flatMap(({ pushes: e }) => e.map(({ end: e }) => [
|
|
3792
|
+
], w = [[5900, 6900], ...c.flatMap(({ pushes: e }) => e.map(({ touch: e, end: t }) => [_n(e) - 200, _n(t) + 200]))], T = S.map(([e, t]) => [e, t + 400]), E = [
|
|
3793
|
+
[-200, Gt],
|
|
3794
|
+
...c.length > 1 ? [[tn, nn]] : [],
|
|
3795
|
+
...c.flatMap(({ pushes: e }) => e.map(({ end: e }) => [_n(e) + 150, _n(e) + 650]))
|
|
3771
3796
|
], D = [
|
|
3772
|
-
[
|
|
3773
|
-
[
|
|
3774
|
-
[23650,
|
|
3797
|
+
[Kt, qt],
|
|
3798
|
+
[Jt, Yt],
|
|
3799
|
+
[23650, on]
|
|
3775
3800
|
], O = [
|
|
3776
3801
|
2900,
|
|
3777
3802
|
5e3,
|
|
@@ -3787,7 +3812,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3787
3812
|
10500,
|
|
3788
3813
|
18300,
|
|
3789
3814
|
22950
|
|
3790
|
-
], A = (e) =>
|
|
3815
|
+
], A = (e) => pn(E, e, 120), j = (e) => pn(D, e, 130), M = (e) => vn(e, sn), N = (e) => {
|
|
3791
3816
|
let t, r = 1, o = {
|
|
3792
3817
|
x: l.foot.x,
|
|
3793
3818
|
y: i.rect.top
|
|
@@ -3795,45 +3820,45 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3795
3820
|
x: l.foot.x - l.side * a * .75,
|
|
3796
3821
|
y: i.rect.top + a * .4
|
|
3797
3822
|
};
|
|
3798
|
-
if (e <
|
|
3799
|
-
let r =
|
|
3823
|
+
if (e < Gt) {
|
|
3824
|
+
let r = cn(e / Gt, 0, 1);
|
|
3800
3825
|
t = {
|
|
3801
|
-
x:
|
|
3826
|
+
x: ln(l.side > 0 ? -a : n + a, s.x, r * (2 - r)),
|
|
3802
3827
|
y: s.y
|
|
3803
3828
|
};
|
|
3804
|
-
} else if (e <
|
|
3805
|
-
else if (e <
|
|
3806
|
-
let n =
|
|
3829
|
+
} else if (e < Kt) t = s, r = 1 - dn(2750, 3e3, 3e3, Kt, e) * .16;
|
|
3830
|
+
else if (e < qt) {
|
|
3831
|
+
let n = cn((e - Kt) / (qt - Kt), 0, 1);
|
|
3807
3832
|
t = {
|
|
3808
|
-
x:
|
|
3809
|
-
y:
|
|
3833
|
+
x: ln(s.x, o.x, n),
|
|
3834
|
+
y: ln(s.y, o.y, n) - Math.sin(n * Math.PI) * a * .6
|
|
3810
3835
|
};
|
|
3811
|
-
} else if (e <
|
|
3812
|
-
else if (e <
|
|
3813
|
-
let n =
|
|
3836
|
+
} else if (e < Jt) t = o, r = 1 - dn(qt, 3760, 3800, 3960, e) * .16;
|
|
3837
|
+
else if (e < Yt) {
|
|
3838
|
+
let n = cn((e - Jt) / (Yt - Jt), 0, 1);
|
|
3814
3839
|
t = {
|
|
3815
3840
|
x: l.foot.x,
|
|
3816
|
-
y:
|
|
3841
|
+
y: ln(o.y, l.foot.y, n) - Math.sin(n * Math.PI) * a * .27
|
|
3817
3842
|
};
|
|
3818
|
-
} else if (c.length > 1 && e >=
|
|
3819
|
-
let n =
|
|
3843
|
+
} else if (c.length > 1 && e >= tn && e < nn) {
|
|
3844
|
+
let n = un(tn, nn, e);
|
|
3820
3845
|
t = {
|
|
3821
|
-
x:
|
|
3822
|
-
y:
|
|
3846
|
+
x: ln(y.x, u.foot.x, n),
|
|
3847
|
+
y: ln(y.y, u.foot.y, n)
|
|
3823
3848
|
};
|
|
3824
|
-
} else t =
|
|
3849
|
+
} else t = Cn(x(e), Y(e)), r = 1 - dn(Yt, 8360, 8400, 8550, e) * .12;
|
|
3825
3850
|
if (e >= p) {
|
|
3826
|
-
let n =
|
|
3851
|
+
let n = un(p, m, e);
|
|
3827
3852
|
t = {
|
|
3828
|
-
x:
|
|
3853
|
+
x: ln(_.x, v.x, n),
|
|
3829
3854
|
y: _.y - Math.sin(n * Math.PI) * a * .18
|
|
3830
|
-
}, r = 1 -
|
|
3855
|
+
}, r = 1 - dn(m, m + 140, m + 210, m + 580, e) * .12;
|
|
3831
3856
|
}
|
|
3832
|
-
if (e >=
|
|
3833
|
-
r = 1 -
|
|
3834
|
-
let i =
|
|
3857
|
+
if (e >= an) {
|
|
3858
|
+
r = 1 - dn(an, 23700, 23730, 23880, e) * .2;
|
|
3859
|
+
let i = un(23750, on, e);
|
|
3835
3860
|
t = {
|
|
3836
|
-
x:
|
|
3861
|
+
x: ln(v.x, g > 0 ? n + a : -a, i),
|
|
3837
3862
|
y: v.y - Math.sin(i * Math.PI) * a * .7 + i * a * .22
|
|
3838
3863
|
};
|
|
3839
3864
|
}
|
|
@@ -3866,50 +3891,50 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3866
3891
|
].map((n) => ({
|
|
3867
3892
|
...n,
|
|
3868
3893
|
button: t,
|
|
3869
|
-
point:
|
|
3894
|
+
point: Sn(e, n.time)
|
|
3870
3895
|
}));
|
|
3871
|
-
}), F =
|
|
3872
|
-
...
|
|
3896
|
+
}), F = hn([
|
|
3897
|
+
...mn(0, 1, Math.round(Ut / 60)),
|
|
3873
3898
|
...[
|
|
3874
|
-
|
|
3899
|
+
Gt,
|
|
3875
3900
|
2750,
|
|
3876
3901
|
3e3,
|
|
3877
|
-
Gt,
|
|
3878
3902
|
Kt,
|
|
3903
|
+
qt,
|
|
3879
3904
|
3760,
|
|
3880
3905
|
3800,
|
|
3881
3906
|
3960,
|
|
3882
|
-
qt,
|
|
3883
3907
|
Jt,
|
|
3908
|
+
Yt,
|
|
3884
3909
|
8360,
|
|
3885
3910
|
8400,
|
|
3886
3911
|
8550,
|
|
3887
|
-
en,
|
|
3888
3912
|
tn,
|
|
3913
|
+
nn,
|
|
3889
3914
|
p,
|
|
3890
3915
|
m,
|
|
3891
3916
|
m + 140,
|
|
3892
3917
|
m + 210,
|
|
3893
3918
|
m + 580,
|
|
3894
|
-
|
|
3919
|
+
an,
|
|
3895
3920
|
23700,
|
|
3896
3921
|
23730,
|
|
3897
3922
|
23750,
|
|
3898
3923
|
23880,
|
|
3899
|
-
|
|
3924
|
+
on
|
|
3900
3925
|
].map(Y),
|
|
3901
3926
|
...P.map(({ time: e }) => e),
|
|
3902
3927
|
...c.flatMap(({ pushes: e }) => e.flatMap((e) => [
|
|
3903
3928
|
e.touch - Y(250),
|
|
3904
3929
|
e.touch,
|
|
3905
|
-
...
|
|
3930
|
+
...mn(e.start, e.end, 12)
|
|
3906
3931
|
]))
|
|
3907
3932
|
]);
|
|
3908
3933
|
s.active = !0, s.rest = l.foot, s.contacts = P, s.frames = F.map((e) => {
|
|
3909
|
-
let t =
|
|
3934
|
+
let t = _n(e), n = N(t);
|
|
3910
3935
|
return {
|
|
3911
3936
|
offset: e,
|
|
3912
|
-
opacity: t < 450 ?
|
|
3937
|
+
opacity: t < 450 ? un(0, 450, t) : 1 - un(on - 550, 24950, t),
|
|
3913
3938
|
transform: `translate(${n.x}px, ${n.y}px) scale(${2 - n.squash}, ${n.squash})`,
|
|
3914
3939
|
easing: "linear"
|
|
3915
3940
|
};
|
|
@@ -3920,11 +3945,11 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3920
3945
|
easing: "steps(1, end)"
|
|
3921
3946
|
},
|
|
3922
3947
|
...c.length > 1 ? [{
|
|
3923
|
-
offset: Y(
|
|
3948
|
+
offset: Y(tn),
|
|
3924
3949
|
transform: `scaleX(${b})`,
|
|
3925
3950
|
easing: "steps(1, end)"
|
|
3926
3951
|
}, {
|
|
3927
|
-
offset: Y(
|
|
3952
|
+
offset: Y(nn),
|
|
3928
3953
|
transform: `scaleX(${u.side})`,
|
|
3929
3954
|
easing: "steps(1, end)"
|
|
3930
3955
|
}] : [],
|
|
@@ -3934,48 +3959,48 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3934
3959
|
}
|
|
3935
3960
|
];
|
|
3936
3961
|
let I = F.map((e) => {
|
|
3937
|
-
let t =
|
|
3962
|
+
let t = _n(e), n = A(t), r = -M(t) * 15 * n - j(t) * 18, i = -Math.max(0, M(t)) * 18 * n;
|
|
3938
3963
|
for (let n of c) for (let a of n.pushes) {
|
|
3939
|
-
let s =
|
|
3964
|
+
let s = dn(a.touch - Y(250), a.touch, a.end + Y(50), a.end + Y(320), e);
|
|
3940
3965
|
if (!s) continue;
|
|
3941
|
-
let c =
|
|
3966
|
+
let c = Sn(n, e), l = N(t), u = yn({
|
|
3942
3967
|
x: 80 + n.side * (c.x - l.x) / o,
|
|
3943
3968
|
y: 120 + (c.y - l.y) / o
|
|
3944
3969
|
});
|
|
3945
|
-
r =
|
|
3970
|
+
r = ln(r, u[0], s), i = ln(i, u[1], s);
|
|
3946
3971
|
}
|
|
3947
|
-
let a =
|
|
3972
|
+
let a = pn(h, t, 280), s = yn({
|
|
3948
3973
|
x: 112,
|
|
3949
|
-
y: 58 +
|
|
3974
|
+
y: 58 + vn(t, 1.8) * 1.5
|
|
3950
3975
|
});
|
|
3951
|
-
return [
|
|
3976
|
+
return [ln(r, s[0], a), ln(i, s[1], a)];
|
|
3952
3977
|
});
|
|
3953
3978
|
s.parts.arm = F.map((e, t) => ({
|
|
3954
3979
|
offset: e,
|
|
3955
|
-
transform:
|
|
3980
|
+
transform: gn(I[t][0]),
|
|
3956
3981
|
easing: "linear"
|
|
3957
3982
|
})), s.parts.forearm = F.map((e, t) => ({
|
|
3958
3983
|
offset: e,
|
|
3959
|
-
transform:
|
|
3984
|
+
transform: gn(I[t][1]),
|
|
3960
3985
|
easing: "linear"
|
|
3961
3986
|
}));
|
|
3962
3987
|
for (let e of F) {
|
|
3963
|
-
let t =
|
|
3988
|
+
let t = _n(e), n = pn(w, t), r = pn(T, t, 120), i = pn(C, t) * (1 - Math.max(n, r)), a = dn(2550, 2750, 3e3, 3200, t), o = dn(p, p + 140, m, m + 600, t), c = pn(h, t, 280), l = j(t), u = A(t), d = M(t) * 17 * u, f = O.reduce((e, n) => Math.max(e, 1 - Math.abs(t - n) / 90), 0), g = k.reduce((e, n) => e + dn(n, n + 60, n + 120, n + 240, t), 0), _ = -i * 7 + n * 16 + r * 24 - a * 12 - o * 17 + c * (14 + vn(t, 1.8) * 3) + vn(t, sn * 2) * 1.5 * u;
|
|
3964
3989
|
s.parts.head.push({
|
|
3965
3990
|
offset: e,
|
|
3966
|
-
transform:
|
|
3991
|
+
transform: gn(_),
|
|
3967
3992
|
easing: "linear"
|
|
3968
3993
|
}), s.parts.tail.push({
|
|
3969
3994
|
offset: e,
|
|
3970
|
-
transform:
|
|
3995
|
+
transform: gn(vn(t, .36) * 9 * (1 - u * .5) + u * 6 + n * vn(t, 1.4) * 4 - o * 24 + l * 14),
|
|
3971
3996
|
easing: "linear"
|
|
3972
3997
|
}), s.parts["hind-leg"].push({
|
|
3973
3998
|
offset: e,
|
|
3974
|
-
transform:
|
|
3999
|
+
transform: gn(d - l * 27 + o * 18),
|
|
3975
4000
|
easing: "linear"
|
|
3976
4001
|
}), s.parts["far-leg"].push({
|
|
3977
4002
|
offset: e,
|
|
3978
|
-
transform:
|
|
4003
|
+
transform: gn(d * .9 + l * 24 - o * 15),
|
|
3979
4004
|
easing: "linear"
|
|
3980
4005
|
}), s.parts.eyes.push({
|
|
3981
4006
|
offset: e,
|
|
@@ -3987,39 +4012,39 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
3987
4012
|
easing: "linear"
|
|
3988
4013
|
}), s.parts.ears.push({
|
|
3989
4014
|
offset: e,
|
|
3990
|
-
transform:
|
|
4015
|
+
transform: gn(-o * 15 + i * 5 - n * 2 - g * 9),
|
|
3991
4016
|
easing: "linear"
|
|
3992
4017
|
}), s.parts.tongue.push({
|
|
3993
4018
|
offset: e,
|
|
3994
|
-
opacity: c * Math.max(0,
|
|
4019
|
+
opacity: c * Math.max(0, vn(t, 2.9)),
|
|
3995
4020
|
easing: "linear"
|
|
3996
4021
|
});
|
|
3997
4022
|
}
|
|
3998
4023
|
for (let e of c) {
|
|
3999
|
-
let { rect: t } = e.target, n = e.pushes[0].touch, r =
|
|
4024
|
+
let { rect: t } = e.target, n = e.pushes[0].touch, r = hn([
|
|
4000
4025
|
0,
|
|
4001
4026
|
1,
|
|
4002
4027
|
n - Y(175),
|
|
4003
4028
|
n,
|
|
4004
|
-
...e.pushes.flatMap((e) => [e.touch, ...
|
|
4005
|
-
...
|
|
4006
|
-
...e.rebound ?
|
|
4007
|
-
|
|
4029
|
+
...e.pushes.flatMap((e) => [e.touch, ...mn(e.start, e.end, 12)]),
|
|
4030
|
+
...mn(e.release, e.landing, 18),
|
|
4031
|
+
...e.rebound ? mn(e.landing, e.rebound.end, 20) : [],
|
|
4032
|
+
Wt,
|
|
4008
4033
|
.9600000000000001
|
|
4009
4034
|
]).map((r) => {
|
|
4010
4035
|
let i = 0, a = 0;
|
|
4011
4036
|
if (r >= e.release) {
|
|
4012
|
-
let n =
|
|
4037
|
+
let n = cn((r - e.release) / (e.landing - e.release), 0, 1);
|
|
4013
4038
|
i = e.drop * n * n, a = e.side * Math.min(12, e.drop / t.width * 65) * Math.sin(n * Math.PI);
|
|
4014
4039
|
}
|
|
4015
4040
|
if (e.rebound && r >= e.landing && r <= e.rebound.end) {
|
|
4016
|
-
let t =
|
|
4041
|
+
let t = cn((r - e.landing) / (e.rebound.end - e.landing), 0, 1);
|
|
4017
4042
|
i = e.drop - 4 * e.rebound.height * t * (1 - t), a = -e.side * 8 * Math.sin(t * Math.PI);
|
|
4018
4043
|
}
|
|
4019
4044
|
return {
|
|
4020
4045
|
offset: r,
|
|
4021
|
-
opacity:
|
|
4022
|
-
transform: `translate(${
|
|
4046
|
+
opacity: un(n - Y(175), n, r) * (1 - un(Wt, .9600000000000001, r)),
|
|
4047
|
+
transform: `translate(${bn(e, r)}px, ${i}px) rotate(${a}deg)`,
|
|
4023
4048
|
easing: "linear"
|
|
4024
4049
|
};
|
|
4025
4050
|
});
|
|
@@ -4040,7 +4065,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4040
4065
|
])];
|
|
4041
4066
|
let L = c.filter(({ support: e }) => !e);
|
|
4042
4067
|
if (L.length) {
|
|
4043
|
-
let e = Math.min(...L.map((e) => e.target.rect.left +
|
|
4068
|
+
let e = Math.min(...L.map((e) => e.target.rect.left + bn(e, 1))), t = Math.max(...L.map((e) => e.target.rect.right + bn(e, 1)));
|
|
4044
4069
|
s.floor = {
|
|
4045
4070
|
x: Math.max(0, e - 12),
|
|
4046
4071
|
y: r - 2,
|
|
@@ -4048,7 +4073,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4048
4073
|
};
|
|
4049
4074
|
}
|
|
4050
4075
|
return s;
|
|
4051
|
-
},
|
|
4076
|
+
}, Tn = (e, { host: t, copies: n, actor: r, facing: i }, a) => {
|
|
4052
4077
|
if (!e.active || typeof t.animate != "function") return () => void 0;
|
|
4053
4078
|
let o = [], s, c, l = !1, u = typeof document.timeline?.currentTime == "number" ? document.timeline.currentTime : void 0, d = [
|
|
4054
4079
|
"pointerdown",
|
|
@@ -4083,7 +4108,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4083
4108
|
easing: "ease-in-out",
|
|
4084
4109
|
...e
|
|
4085
4110
|
})), {
|
|
4086
|
-
duration:
|
|
4111
|
+
duration: Ut,
|
|
4087
4112
|
fill: "both"
|
|
4088
4113
|
});
|
|
4089
4114
|
o.push(n), u !== void 0 && (n.startTime = u);
|
|
@@ -4094,9 +4119,9 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4094
4119
|
if (!n) throw Error("Missing cat articulation");
|
|
4095
4120
|
h(n, t);
|
|
4096
4121
|
}), s = A(e.buttons.map(({ target: e }) => e), n, {
|
|
4097
|
-
durationMs:
|
|
4122
|
+
durationMs: Ut,
|
|
4098
4123
|
hideAt: (t) => e.buttons[t].entry,
|
|
4099
|
-
restoreAt:
|
|
4124
|
+
restoreAt: Wt,
|
|
4100
4125
|
startTime: u,
|
|
4101
4126
|
onStop: f,
|
|
4102
4127
|
frames: (t, n) => e.buttons[n].frames,
|
|
@@ -4121,12 +4146,12 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4121
4146
|
"aria-disabled",
|
|
4122
4147
|
"href"
|
|
4123
4148
|
]
|
|
4124
|
-
}), d.forEach((e) => document.addEventListener(e, p, !0)), window.addEventListener("resize", f), c = setTimeout(f,
|
|
4149
|
+
}), d.forEach((e) => document.addEventListener(e, p, !0)), window.addEventListener("resize", f), c = setTimeout(f, Ut);
|
|
4125
4150
|
} catch {
|
|
4126
4151
|
f();
|
|
4127
4152
|
}
|
|
4128
4153
|
return f;
|
|
4129
|
-
},
|
|
4154
|
+
}, En = 16, Dn = "[hidden], [inert], [aria-hidden=\"true\"], [data-celebration-snapshot], [data-halloween-pumpkin-anchor]", On = "input, textarea, select, [contenteditable]:not([contenteditable=\"false\"])", kn = ":disabled, [aria-disabled=\"true\"], [aria-expanded=\"true\"]", An = /^(auto|scroll|hidden|clip)$/, jn = (e, t) => e.element.contains(t.element) || t.element.contains(e.element) || e.rect.left < t.rect.right && e.rect.right > t.rect.left && e.rect.top < t.rect.bottom && e.rect.bottom > t.rect.top, Mn = (e, t) => Math.max(0, e.left - t.right, t.left - e.right), Nn = (e) => {
|
|
4130
4155
|
let { composer: t, starterList: n } = e, { clientWidth: r, clientHeight: i } = document.documentElement, a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = (e) => {
|
|
4131
4156
|
let t = a.get(e);
|
|
4132
4157
|
return t || (t = e.getBoundingClientRect(), a.set(e, t)), t;
|
|
@@ -4134,14 +4159,14 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4134
4159
|
let t = o.get(e);
|
|
4135
4160
|
return t || (t = getComputedStyle(e), o.set(e, t)), t;
|
|
4136
4161
|
}, l = (e) => {
|
|
4137
|
-
if (e.closest(
|
|
4162
|
+
if (e.closest(Dn)) return;
|
|
4138
4163
|
let t = s(e);
|
|
4139
4164
|
if (t.width < 20 || t.height < 20 || t.left < 0 || t.top < 0 || t.right > r || t.bottom > i) return;
|
|
4140
4165
|
let n = e;
|
|
4141
4166
|
for (let e = 0; n && e < 32; e++, n = n.parentElement) {
|
|
4142
4167
|
let e = c(n);
|
|
4143
4168
|
if (e.display === "none" || e.visibility === "hidden" || e.visibility === "collapse" || e.opacity === "0" || e.contentVisibility === "hidden") return;
|
|
4144
|
-
let r =
|
|
4169
|
+
let r = An.test(e.overflowX || e.overflow), i = An.test(e.overflowY || e.overflow);
|
|
4145
4170
|
if (r || i) {
|
|
4146
4171
|
let e = s(n);
|
|
4147
4172
|
if (r && (t.left < e.left || t.right > e.right) || i && (t.top < e.top || t.bottom > e.bottom)) return;
|
|
@@ -4164,7 +4189,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4164
4189
|
};
|
|
4165
4190
|
let f = (e) => {
|
|
4166
4191
|
let t = e.getElementsByTagName("button");
|
|
4167
|
-
return Array.from({ length: Math.min(
|
|
4192
|
+
return Array.from({ length: Math.min(En, t.length) }, (e, n) => t[n]);
|
|
4168
4193
|
}, p = new Set(f(u.element)), m = /* @__PURE__ */ new Set(), h = it(u.element, e), g = n ? h?.getElementsByClassName(n) : void 0;
|
|
4169
4194
|
for (let e = 0; e < Math.min(2, g?.length ?? 0); e++) {
|
|
4170
4195
|
let t = g?.[e];
|
|
@@ -4172,10 +4197,10 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4172
4197
|
}
|
|
4173
4198
|
let _ = u.rect.left + u.rect.width / 2, v = ({ rect: e }) => Math.hypot(e.left + e.width / 2 - _, e.top + e.height / 2 - u.rect.bottom), y = [], b = [];
|
|
4174
4199
|
for (let e of new Set([...p, ...m])) {
|
|
4175
|
-
if (e.contains(document.activeElement) || e.closest(`${
|
|
4200
|
+
if (e.contains(document.activeElement) || e.closest(`${On}, ${kn}`) || e.querySelector(`${On}, ${kn}`)) continue;
|
|
4176
4201
|
let t = l(e);
|
|
4177
4202
|
if (!t) continue;
|
|
4178
|
-
let { rect: n } = t, r = p.has(e), i = n.top >= u.rect.bottom, a =
|
|
4203
|
+
let { rect: n } = t, r = p.has(e), i = n.top >= u.rect.bottom, a = Mn(n, u.rect);
|
|
4179
4204
|
m.has(e) && i && a <= 180 && n.top - u.rect.bottom <= 360 && b.push(t), !(!r && !i || a > 160 || n.top - u.rect.bottom > 260 || n.bottom < u.rect.top || n.width > 300 || n.height > 96 || n.width * n.height > 24e3 || e.getElementsByTagName("*").length > 60) && y.push({
|
|
4180
4205
|
target: t,
|
|
4181
4206
|
control: r,
|
|
@@ -4187,7 +4212,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4187
4212
|
let x = [];
|
|
4188
4213
|
y.forEach((e, t) => {
|
|
4189
4214
|
x.push([e]);
|
|
4190
|
-
for (let n of y.slice(t + 1)) !
|
|
4215
|
+
for (let n of y.slice(t + 1)) !jn(e.target, n.target) && Mn(e.target.rect, n.target.rect) <= 160 && Math.abs(e.target.rect.top + e.target.rect.height / 2 - n.target.rect.top - n.target.rect.height / 2) <= 100 && x.push([e, n]);
|
|
4191
4216
|
});
|
|
4192
4217
|
let S = (e, t) => e.reduce((e, n) => e + t(n), 0);
|
|
4193
4218
|
x.sort((e, t) => S(t, ({ control: e }) => Number(e)) - S(e, ({ control: e }) => Number(e)) || t.length - e.length || S(t, ({ compact: e }) => Number(e)) - S(e, ({ compact: e }) => Number(e)) || S(e, ({ distance: e }) => e) - S(t, ({ distance: e }) => e));
|
|
@@ -4195,7 +4220,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4195
4220
|
b.sort((e, t) => v(e) - v(t));
|
|
4196
4221
|
for (let e of b) {
|
|
4197
4222
|
if (w.length === 3) break;
|
|
4198
|
-
!C.some((t) =>
|
|
4223
|
+
!C.some((t) => jn(t, e)) && !w.some((t) => jn(t, e)) && w.push(e);
|
|
4199
4224
|
}
|
|
4200
4225
|
return {
|
|
4201
4226
|
width: r,
|
|
@@ -4204,7 +4229,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4204
4229
|
buttons: C,
|
|
4205
4230
|
supports: w
|
|
4206
4231
|
};
|
|
4207
|
-
},
|
|
4232
|
+
}, Pn = o(() => {
|
|
4208
4233
|
let e = l();
|
|
4209
4234
|
return /* @__PURE__ */ g("svg", {
|
|
4210
4235
|
viewBox: "0 0 160 140",
|
|
@@ -4600,7 +4625,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4600
4625
|
})
|
|
4601
4626
|
]
|
|
4602
4627
|
});
|
|
4603
|
-
}),
|
|
4628
|
+
}), Fn = {
|
|
4604
4629
|
scene: "_scene_kug86_2",
|
|
4605
4630
|
actor: "_actor_kug86_16",
|
|
4606
4631
|
copies: "_copies_kug86_17",
|
|
@@ -4612,7 +4637,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4612
4637
|
"tail-sway": "_tail-sway_kug86_1",
|
|
4613
4638
|
step: "_step_kug86_1",
|
|
4614
4639
|
blink: "_blink_kug86_1"
|
|
4615
|
-
},
|
|
4640
|
+
}, In = () => {
|
|
4616
4641
|
let { isMobile: e, anchors: n } = t(), r = D(), [i] = f(() => ({
|
|
4617
4642
|
isMobile: e,
|
|
4618
4643
|
reducedMotion: r
|
|
@@ -4640,7 +4665,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4640
4665
|
"resize"
|
|
4641
4666
|
];
|
|
4642
4667
|
return l.forEach((e) => window.addEventListener(e, s, !0)), document.addEventListener("visibilitychange", c), (async () => {
|
|
4643
|
-
await Promise.resolve(), !(t || _.current) && u(
|
|
4668
|
+
await Promise.resolve(), !(t || _.current) && u(wn(Nn(n), e));
|
|
4644
4669
|
})(), () => {
|
|
4645
4670
|
t = !0, l.forEach((e) => window.removeEventListener(e, s, !0)), document.removeEventListener("visibilitychange", c);
|
|
4646
4671
|
};
|
|
@@ -4653,7 +4678,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4653
4678
|
o
|
|
4654
4679
|
]), c(() => {
|
|
4655
4680
|
if (p || a || _.current || r || !o || !l?.active || !v.current || !y.current || !x.current || !S.current) return;
|
|
4656
|
-
let e = !1, t =
|
|
4681
|
+
let e = !1, t = Tn(l, {
|
|
4657
4682
|
host: v.current,
|
|
4658
4683
|
copies: y.current,
|
|
4659
4684
|
actor: x.current,
|
|
@@ -4675,7 +4700,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4675
4700
|
let w = r || !o;
|
|
4676
4701
|
return /* @__PURE__ */ g("div", {
|
|
4677
4702
|
ref: v,
|
|
4678
|
-
className:
|
|
4703
|
+
className: Fn.scene,
|
|
4679
4704
|
"aria-hidden": "true",
|
|
4680
4705
|
inert: !0,
|
|
4681
4706
|
"data-halloween-scene": b.Cat,
|
|
@@ -4685,10 +4710,10 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4685
4710
|
children: [
|
|
4686
4711
|
/* @__PURE__ */ h("div", {
|
|
4687
4712
|
ref: y,
|
|
4688
|
-
className:
|
|
4713
|
+
className: Fn.copies
|
|
4689
4714
|
}),
|
|
4690
4715
|
!w && l?.active && l.floor && /* @__PURE__ */ h("div", {
|
|
4691
|
-
className:
|
|
4716
|
+
className: Fn.floor,
|
|
4692
4717
|
"data-cat-floor": !0,
|
|
4693
4718
|
style: {
|
|
4694
4719
|
left: l.floor.x,
|
|
@@ -4698,49 +4723,49 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4698
4723
|
}),
|
|
4699
4724
|
!w && l?.active ? /* @__PURE__ */ h("div", {
|
|
4700
4725
|
ref: x,
|
|
4701
|
-
className:
|
|
4726
|
+
className: Fn.actor,
|
|
4702
4727
|
"data-cat-actor": !0,
|
|
4703
4728
|
style: { transform: `translate(${l.rest.x}px, ${l.rest.y}px)` },
|
|
4704
4729
|
children: /* @__PURE__ */ h("div", {
|
|
4705
|
-
className:
|
|
4730
|
+
className: Fn.art,
|
|
4706
4731
|
style: {
|
|
4707
4732
|
width: l.size,
|
|
4708
4733
|
height: l.size * 140 / 160
|
|
4709
4734
|
},
|
|
4710
4735
|
children: /* @__PURE__ */ h("div", {
|
|
4711
4736
|
ref: S,
|
|
4712
|
-
className:
|
|
4713
|
-
children: /* @__PURE__ */ h(
|
|
4737
|
+
className: Fn.facing,
|
|
4738
|
+
children: /* @__PURE__ */ h(Pn, {})
|
|
4714
4739
|
})
|
|
4715
4740
|
})
|
|
4716
4741
|
}) : (w || l) && /* @__PURE__ */ h("div", {
|
|
4717
|
-
className:
|
|
4742
|
+
className: Fn.fallback,
|
|
4718
4743
|
"data-cat-fallback": !0,
|
|
4719
|
-
children: /* @__PURE__ */ h(
|
|
4744
|
+
children: /* @__PURE__ */ h(Pn, {})
|
|
4720
4745
|
})
|
|
4721
4746
|
]
|
|
4722
4747
|
});
|
|
4723
|
-
},
|
|
4748
|
+
}, Ln = 12e3, Rn = .24, zn = .86, Bn = .9, Vn = /* @__PURE__ */ function(e) {
|
|
4724
4749
|
return e.Page = "page", e.Card = "card", e.Composer = "composer", e;
|
|
4725
|
-
}({}),
|
|
4750
|
+
}({}), Hn = /* @__PURE__ */ function(e) {
|
|
4726
4751
|
return e.Eyes = "eyes", e.Gaze = "gaze", e.Grin = "grin", e;
|
|
4727
|
-
}({}),
|
|
4752
|
+
}({}), Un = (e, t, n) => Math.max(t, Math.min(e, Math.max(t, n))), Wn = (e, t, n) => e + (t - e) * n, Gn = (e) => e / Ln, Kn = "cubic-bezier(0.22, 1, 0.36, 1)", qn = "cubic-bezier(0.45, 0, 0.55, 1)", Jn = (e, t) => {
|
|
4728
4753
|
let { width: n, height: r, card: i, composer: a } = e, o = t ? 3 : 5, s = t ? 23 : 27, c = !i && a && a.rect.width >= 144 && a.rect.height >= 32 && a.rect.top >= 100 ? a : void 0, l = c && c.rect.left + c.rect.width / 2 < n / 2 ? -1 : 1, u = Math.min(144, (c?.rect.width ?? 168) - 24), d = i ? "card" : c ? "composer" : "page", f = i?.rect ?? (c ? {
|
|
4729
4754
|
left: c.rect.left + (l > 0 ? 12 : c.rect.width - u - 12),
|
|
4730
4755
|
top: c.rect.top,
|
|
4731
4756
|
width: u,
|
|
4732
4757
|
height: 44
|
|
4733
4758
|
} : {
|
|
4734
|
-
left:
|
|
4735
|
-
top:
|
|
4759
|
+
left: Un(n / 2 - 72, 24, n - 168),
|
|
4760
|
+
top: Un(a ? a.rect.top - 96 : r * .5, 140, r - 150),
|
|
4736
4761
|
width: Math.min(144, Math.max(72, n - 48)),
|
|
4737
4762
|
height: 44
|
|
4738
4763
|
}), p = c ? l : f.left + f.width / 2 >= n / 2 ? 1 : -1, m = p > 0 ? 18 : f.width - 18, h = f.width - m, g = {
|
|
4739
4764
|
x: f.left + m - p * 28,
|
|
4740
4765
|
y: f.top - 20
|
|
4741
|
-
}, _ =
|
|
4766
|
+
}, _ = Un(g.x - p * o * 28, 20, n - 20), v = {
|
|
4742
4767
|
x: _,
|
|
4743
|
-
y:
|
|
4768
|
+
y: Un(g.y - Math.sqrt(Math.max(0, (o * 28) ** 2 - (g.x - _) ** 2)), 28, r - 40)
|
|
4744
4769
|
}, y = Math.atan2(g.y - v.y, g.x - v.x), b = [], x = (e, t, n, r, i, a = n + 2300) => {
|
|
4745
4770
|
let o = r % 2 ? -1 : 1, s = (e, n = 1) => `rotate(${t}deg) scale(${o * e}, ${e * n})`;
|
|
4746
4771
|
b.push({
|
|
@@ -4754,30 +4779,30 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4754
4779
|
transform: s(.72)
|
|
4755
4780
|
},
|
|
4756
4781
|
{
|
|
4757
|
-
offset:
|
|
4782
|
+
offset: Gn(n),
|
|
4758
4783
|
opacity: 0,
|
|
4759
4784
|
transform: s(.72),
|
|
4760
|
-
easing:
|
|
4785
|
+
easing: Kn
|
|
4761
4786
|
},
|
|
4762
4787
|
{
|
|
4763
|
-
offset:
|
|
4788
|
+
offset: Gn(n + 100),
|
|
4764
4789
|
opacity: .92,
|
|
4765
4790
|
transform: s(1.05, .91),
|
|
4766
|
-
easing:
|
|
4791
|
+
easing: Kn
|
|
4767
4792
|
},
|
|
4768
4793
|
{
|
|
4769
|
-
offset:
|
|
4794
|
+
offset: Gn(n + 230),
|
|
4770
4795
|
opacity: .85,
|
|
4771
4796
|
transform: s(1)
|
|
4772
4797
|
},
|
|
4773
4798
|
{
|
|
4774
|
-
offset:
|
|
4799
|
+
offset: Gn(a - 420),
|
|
4775
4800
|
opacity: .72,
|
|
4776
4801
|
transform: s(1),
|
|
4777
|
-
easing:
|
|
4802
|
+
easing: qn
|
|
4778
4803
|
},
|
|
4779
4804
|
{
|
|
4780
|
-
offset:
|
|
4805
|
+
offset: Gn(a),
|
|
4781
4806
|
opacity: 0,
|
|
4782
4807
|
transform: s(1)
|
|
4783
4808
|
},
|
|
@@ -4792,20 +4817,20 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4792
4817
|
for (let e = 0; e < o; e++) {
|
|
4793
4818
|
let t = e / (o - 1), n = e % 2 ? 5 : -5;
|
|
4794
4819
|
x({
|
|
4795
|
-
x:
|
|
4796
|
-
y:
|
|
4820
|
+
x: Wn(v.x, g.x, t) - Math.sin(y) * n,
|
|
4821
|
+
y: Wn(v.y, g.y, t) + Math.cos(y) * n
|
|
4797
4822
|
}, y * 180 / Math.PI + 90, 350 + t * 2100, e, "page");
|
|
4798
4823
|
}
|
|
4799
|
-
let S = [], C = (e, t, n, r = 1, i =
|
|
4800
|
-
offset:
|
|
4824
|
+
let S = [], C = (e, t, n, r = 1, i = Kn) => S.push({
|
|
4825
|
+
offset: Gn(e),
|
|
4801
4826
|
transform: c ? `translateY(${t * .5}px)` : `translateY(${t}px) rotate(${n}deg)`,
|
|
4802
4827
|
opacity: r,
|
|
4803
4828
|
easing: i
|
|
4804
4829
|
});
|
|
4805
|
-
C(0, 0, 0, 0, "steps(1, end)"), C((
|
|
4830
|
+
C(0, 0, 0, 0, "steps(1, end)"), C((Rn - .01) * Ln, 0, 0);
|
|
4806
4831
|
for (let e = 0; e < o; e++) {
|
|
4807
4832
|
let t = e / (o - 1), n = 3200 + t * 2e3, r = {
|
|
4808
|
-
x:
|
|
4833
|
+
x: Wn(m, h, t),
|
|
4809
4834
|
y: e % 2 ? 3 : -3
|
|
4810
4835
|
};
|
|
4811
4836
|
x(i ? r : c ? {
|
|
@@ -4816,10 +4841,10 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4816
4841
|
y: f.top + r.y
|
|
4817
4842
|
}, p * 90, n, o + e, d, n + 2100), C(n, 0, 0), C(n + 130, 3, (t - .5) * 4), C(n + 350, 0, 0);
|
|
4818
4843
|
}
|
|
4819
|
-
C(5900, 0, 0, 1,
|
|
4844
|
+
C(5900, 0, 0, 1, qn), C(6450, 6, p * .7), C(6900, 4.5, p * .3), C(7350, 5, 0), C(9050, 5, 0, 1, qn), C(9280, 8, p), C(9450, -4, -p), C(9700, 2, p * .5), C(9950, -.7, -p * .2), C(10180, 0, 0), C(zn * Ln, 0, 0, 1, "steps(1, end)"), C(Bn * Ln, 0, 0, 0), C(Ln, 0, 0, 0);
|
|
4820
4845
|
let w = c ? 30 : 18, T = c ? p < 0 : p > 0, E = {
|
|
4821
|
-
x:
|
|
4822
|
-
y:
|
|
4846
|
+
x: Un(a ? a.rect.left + (T ? w : a.rect.width - w) : f.left + f.width + p * 42, 62, n - 62),
|
|
4847
|
+
y: Un(a?.rect.top ?? f.top + 95, 110, r - 40)
|
|
4823
4848
|
};
|
|
4824
4849
|
x({
|
|
4825
4850
|
x: E.x - 13,
|
|
@@ -4829,10 +4854,10 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4829
4854
|
y: E.y + 2
|
|
4830
4855
|
}, p * 90, 10600, 1, "page", 11820);
|
|
4831
4856
|
let D = c?.rect ?? f, O = {
|
|
4832
|
-
x:
|
|
4857
|
+
x: Un(p > 0 ? D.left - 54 : D.left + D.width + 54, 62, n - 62),
|
|
4833
4858
|
y: f.top - 61
|
|
4834
|
-
}, k = [], A = (e, t, n, r = 0, i =
|
|
4835
|
-
offset:
|
|
4859
|
+
}, k = [], A = (e, t, n, r = 0, i = qn) => k.push({
|
|
4860
|
+
offset: Gn(e),
|
|
4836
4861
|
transform: `translate(${t.x}px, ${t.y}px) rotate(${r}deg)`,
|
|
4837
4862
|
opacity: n,
|
|
4838
4863
|
easing: i
|
|
@@ -4856,14 +4881,14 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4856
4881
|
};
|
|
4857
4882
|
A(9280, j, 1);
|
|
4858
4883
|
let M = {
|
|
4859
|
-
x:
|
|
4884
|
+
x: Un(E.x - p * 64, 62, n - 62),
|
|
4860
4885
|
y: E.y - 61
|
|
4861
4886
|
};
|
|
4862
4887
|
for (let e = 0; e <= 16; e++) {
|
|
4863
4888
|
let t = e / 16;
|
|
4864
|
-
A(
|
|
4865
|
-
x:
|
|
4866
|
-
y:
|
|
4889
|
+
A(Wn(9430, 10250, t), {
|
|
4890
|
+
x: Wn(O.x, M.x, t),
|
|
4891
|
+
y: Wn(j.y, M.y, t) - 168 * t * (1 - t)
|
|
4867
4892
|
}, 1, -p * Math.sin(Math.PI * t) * 7, "linear");
|
|
4868
4893
|
}
|
|
4869
4894
|
A(10350, {
|
|
@@ -4871,9 +4896,9 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4871
4896
|
y: M.y + 3
|
|
4872
4897
|
}, 1), A(10550, M, 1), A(11600, M, 1), A(11920, M, 0), A(12e3, M, 0);
|
|
4873
4898
|
let N = (e) => e.map(([e, t]) => ({
|
|
4874
|
-
offset:
|
|
4899
|
+
offset: Gn(e),
|
|
4875
4900
|
opacity: t,
|
|
4876
|
-
easing:
|
|
4901
|
+
easing: qn
|
|
4877
4902
|
}));
|
|
4878
4903
|
return {
|
|
4879
4904
|
anchors: [...a ? [a] : [], ...i ? [i] : []],
|
|
@@ -4906,9 +4931,9 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4906
4931
|
[9050, 0],
|
|
4907
4932
|
[12e3, 0]
|
|
4908
4933
|
].map(([e, t]) => ({
|
|
4909
|
-
offset:
|
|
4934
|
+
offset: Gn(e),
|
|
4910
4935
|
transform: `translateX(${t}px)`,
|
|
4911
|
-
easing:
|
|
4936
|
+
easing: qn
|
|
4912
4937
|
})),
|
|
4913
4938
|
grin: N([
|
|
4914
4939
|
[0, 0],
|
|
@@ -4920,7 +4945,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4920
4945
|
])
|
|
4921
4946
|
}
|
|
4922
4947
|
};
|
|
4923
|
-
},
|
|
4948
|
+
}, Yn = (e, { host: t, copies: n, prints: r, surface: i, face: a }, o) => {
|
|
4924
4949
|
let s = [], c, l, u = !1, d = typeof document.timeline?.currentTime == "number" ? document.timeline.currentTime : void 0, f = [
|
|
4925
4950
|
"pointerdown",
|
|
4926
4951
|
"focusin",
|
|
@@ -4961,16 +4986,16 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4961
4986
|
}), v = (t, n) => {
|
|
4962
4987
|
if (!t || n.length > 80 || s.length + (e.card ? 2 : 0) >= 20) throw Error("Footprint animation budget or artwork unavailable");
|
|
4963
4988
|
let r = t.animate(n, {
|
|
4964
|
-
duration:
|
|
4989
|
+
duration: Ln,
|
|
4965
4990
|
fill: "both"
|
|
4966
4991
|
});
|
|
4967
4992
|
s.push(r), d !== void 0 && (r.startTime = d);
|
|
4968
4993
|
};
|
|
4969
4994
|
try {
|
|
4970
4995
|
if (e.prints.forEach((e, t) => v(r[t], e.frames)), (e.card || e.ledge) && v(i, e.surfaceFrames), v(a, e.faceFrames), Object.entries(e.faceParts).forEach(([e, t]) => v(a.querySelector(`[data-footprint-part="${e}"]`), t)), c = A(e.card ? [e.card] : [], n, {
|
|
4971
|
-
durationMs:
|
|
4972
|
-
hideAt:
|
|
4973
|
-
restoreAt:
|
|
4996
|
+
durationMs: Ln,
|
|
4997
|
+
hideAt: Rn,
|
|
4998
|
+
restoreAt: zn,
|
|
4974
4999
|
startTime: d,
|
|
4975
5000
|
onStop: p,
|
|
4976
5001
|
frames: () => e.surfaceFrames,
|
|
@@ -4995,12 +5020,12 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
4995
5020
|
"aria-disabled",
|
|
4996
5021
|
"href"
|
|
4997
5022
|
]
|
|
4998
|
-
}), e.anchors.forEach(({ element: e }) => _.observe(e, { box: "border-box" })), f.forEach((e) => document.addEventListener(e, m, !0)), window.addEventListener("resize", p), l = setTimeout(p,
|
|
5023
|
+
}), e.anchors.forEach(({ element: e }) => _.observe(e, { box: "border-box" })), f.forEach((e) => document.addEventListener(e, m, !0)), window.addEventListener("resize", p), l = setTimeout(p, Ln);
|
|
4999
5024
|
} catch {
|
|
5000
5025
|
p();
|
|
5001
5026
|
}
|
|
5002
5027
|
return p;
|
|
5003
|
-
},
|
|
5028
|
+
}, Xn = 12, Zn = ":disabled, [aria-disabled=\"true\"], [aria-expanded=\"true\"], input, textarea, select, [contenteditable]:not([contenteditable=\"false\"])", Qn = "[hidden], [inert], [aria-hidden=\"true\"], [data-celebration-snapshot]", $n = (e) => {
|
|
5004
5029
|
let { clientWidth: t, clientHeight: n } = document.documentElement, r = {
|
|
5005
5030
|
width: t,
|
|
5006
5031
|
height: n
|
|
@@ -5008,7 +5033,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5008
5033
|
let t = i.get(e);
|
|
5009
5034
|
return t || (t = e.getBoundingClientRect(), i.set(e, t)), t;
|
|
5010
5035
|
}, s = (e) => {
|
|
5011
|
-
if (e.closest(
|
|
5036
|
+
if (e.closest(Qn)) return;
|
|
5012
5037
|
let r = o(e);
|
|
5013
5038
|
if (r.width < 20 || r.height < 20 || r.left < 12 || r.right > t - 12 || r.top < 12 || r.bottom > n - 16) return;
|
|
5014
5039
|
let i = e;
|
|
@@ -5050,14 +5075,14 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5050
5075
|
for (let e = 0; e < n.length && u < 12; e++, u++) {
|
|
5051
5076
|
let i = n[e], a = document.createTreeWalker(i, NodeFilter.SHOW_ELEMENT), o = 0, c = 0;
|
|
5052
5077
|
for (; o <= 40 && a.nextNode();) o++, a.currentNode instanceof SVGElement && c++;
|
|
5053
|
-
if (o > 40 || c >
|
|
5078
|
+
if (o > 40 || c > Xn || i.contains(document.activeElement) || i.closest(Zn) || i.querySelector(Zn)) continue;
|
|
5054
5079
|
let l = s(i);
|
|
5055
5080
|
l && l.rect.width >= 72 && l.rect.width <= 240 && l.rect.height >= 32 && l.rect.height <= 96 && l.rect.top >= 120 && (l.rect.left + l.rect.width / 2 >= t / 2 ? l.rect.left >= 112 : l.rect.right <= t - 112) && (l.rect.bottom + 8 < r.composer.rect.top || l.rect.top > r.composer.rect.bottom + 8) && d.push(l);
|
|
5056
5081
|
}
|
|
5057
5082
|
}
|
|
5058
5083
|
let f = r.composer.rect, p = ({ rect: e }) => Math.hypot(e.left + e.width / 2 - f.left - f.width / 2, Math.max(f.top - e.bottom, e.top - f.bottom, 0));
|
|
5059
5084
|
return d.sort((e, t) => p(e) - p(t)), r.card = d[0], r;
|
|
5060
|
-
},
|
|
5085
|
+
}, er = {
|
|
5061
5086
|
paw: "_paw_1mpnx_2",
|
|
5062
5087
|
padLight: "_padLight_1mpnx_8",
|
|
5063
5088
|
eye: "_eye_1mpnx_15",
|
|
@@ -5069,7 +5094,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5069
5094
|
mouth: "_mouth_1mpnx_42",
|
|
5070
5095
|
ledge: "_ledge_1mpnx_48",
|
|
5071
5096
|
scene: "_scene_1mpnx_53"
|
|
5072
|
-
},
|
|
5097
|
+
}, tr = () => {
|
|
5073
5098
|
let { isMobile: e, anchors: n } = t(), r = D(), [i] = f(() => ({
|
|
5074
5099
|
isMobile: e,
|
|
5075
5100
|
reducedMotion: r,
|
|
@@ -5097,7 +5122,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5097
5122
|
"visibilitychange"
|
|
5098
5123
|
];
|
|
5099
5124
|
return s.forEach((e) => window.addEventListener(e, a, !0)), (async () => {
|
|
5100
|
-
await Promise.resolve(), !(t || y.current) && p(
|
|
5125
|
+
await Promise.resolve(), !(t || y.current) && p(Jn($n(n), e));
|
|
5101
5126
|
})(), () => {
|
|
5102
5127
|
t = !0, s.forEach((e) => window.removeEventListener(e, a, !0));
|
|
5103
5128
|
};
|
|
@@ -5111,7 +5136,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5111
5136
|
l
|
|
5112
5137
|
]), c(() => {
|
|
5113
5138
|
if (_ || o || y.current || r || !l || !u || !x.current || !S.current || !w.current) return;
|
|
5114
|
-
let e = !1, t =
|
|
5139
|
+
let e = !1, t = Yn(u, {
|
|
5115
5140
|
host: x.current,
|
|
5116
5141
|
copies: S.current,
|
|
5117
5142
|
prints: T.current.filter((e) => !!e),
|
|
@@ -5138,7 +5163,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5138
5163
|
viewBox: "0 0 40 44",
|
|
5139
5164
|
"aria-hidden": "true",
|
|
5140
5165
|
focusable: "false",
|
|
5141
|
-
className: a(
|
|
5166
|
+
className: a(er.paw, "absolute opacity-0"),
|
|
5142
5167
|
"data-footprint": n,
|
|
5143
5168
|
style: {
|
|
5144
5169
|
left: t.point.x - u.size / 2,
|
|
@@ -5148,11 +5173,11 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5148
5173
|
height: u.size * 44 / 40,
|
|
5149
5174
|
transformOrigin: "50% 50%"
|
|
5150
5175
|
},
|
|
5151
|
-
children: /* @__PURE__ */ h(
|
|
5176
|
+
children: /* @__PURE__ */ h(nr, {})
|
|
5152
5177
|
}, n) : null);
|
|
5153
5178
|
return /* @__PURE__ */ g("div", {
|
|
5154
5179
|
ref: x,
|
|
5155
|
-
className: a(
|
|
5180
|
+
className: a(er.scene, "pointer-events-none absolute inset-0 select-none overflow-clip"),
|
|
5156
5181
|
"aria-hidden": "true",
|
|
5157
5182
|
inert: !0,
|
|
5158
5183
|
"data-halloween-scene": b.Footprints,
|
|
@@ -5172,14 +5197,14 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5172
5197
|
].map((e) => /* @__PURE__ */ h("svg", {
|
|
5173
5198
|
viewBox: "0 0 40 44",
|
|
5174
5199
|
focusable: "false",
|
|
5175
|
-
className: a(
|
|
5200
|
+
className: a(er.paw, "w-6"),
|
|
5176
5201
|
style: { transform: `rotate(75deg) scaleX(${e % 2 ? -1 : 1})` },
|
|
5177
|
-
children: /* @__PURE__ */ h(
|
|
5178
|
-
}, e)), /* @__PURE__ */ h(
|
|
5202
|
+
children: /* @__PURE__ */ h(nr, {})
|
|
5203
|
+
}, e)), /* @__PURE__ */ h(rr, {})]
|
|
5179
5204
|
}) : /* @__PURE__ */ g(m, { children: [
|
|
5180
5205
|
/* @__PURE__ */ h("div", {
|
|
5181
5206
|
className: "absolute inset-0 z-[2]",
|
|
5182
|
-
children: A(
|
|
5207
|
+
children: A(Vn.Page)
|
|
5183
5208
|
}),
|
|
5184
5209
|
k && !_ && !o && /* @__PURE__ */ g("div", {
|
|
5185
5210
|
ref: C,
|
|
@@ -5195,9 +5220,9 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5195
5220
|
},
|
|
5196
5221
|
children: [u?.ledge && /* @__PURE__ */ h("div", {
|
|
5197
5222
|
"data-footprint-ledge": !0,
|
|
5198
|
-
className: a(
|
|
5223
|
+
className: a(er.ledge, "absolute inset-0 border-2"),
|
|
5199
5224
|
style: { borderRadius: u.ledge.borderRadius }
|
|
5200
|
-
}), A(u?.ledge ?
|
|
5225
|
+
}), A(u?.ledge ? Vn.Composer : Vn.Card)]
|
|
5201
5226
|
}),
|
|
5202
5227
|
/* @__PURE__ */ h("div", {
|
|
5203
5228
|
ref: w,
|
|
@@ -5214,12 +5239,12 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5214
5239
|
left: -50,
|
|
5215
5240
|
right: "auto"
|
|
5216
5241
|
},
|
|
5217
|
-
children: /* @__PURE__ */ h(
|
|
5242
|
+
children: /* @__PURE__ */ h(rr, {})
|
|
5218
5243
|
})
|
|
5219
5244
|
})
|
|
5220
5245
|
] })]
|
|
5221
5246
|
});
|
|
5222
|
-
},
|
|
5247
|
+
}, nr = () => /* @__PURE__ */ g(m, { children: [
|
|
5223
5248
|
/* @__PURE__ */ h("path", { d: "M11 26C13 23 14 20 18 21C22 18 26 22 28 26C30 29 35 33 31 37C28 40 24 36 21 37C17 41 13 37 10 38C4 36 8 29 11 26Z" }),
|
|
5224
5249
|
/* @__PURE__ */ h("ellipse", {
|
|
5225
5250
|
cx: "7.5",
|
|
@@ -5250,61 +5275,61 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5250
5275
|
transform: "rotate(34 33 19)"
|
|
5251
5276
|
}),
|
|
5252
5277
|
/* @__PURE__ */ h("path", {
|
|
5253
|
-
className:
|
|
5278
|
+
className: er.padLight,
|
|
5254
5279
|
d: "M11 30Q14 24 17 25M14 8L13 11M24 6L23 10M6 18L5 20"
|
|
5255
5280
|
})
|
|
5256
|
-
] }),
|
|
5281
|
+
] }), rr = () => /* @__PURE__ */ g("svg", {
|
|
5257
5282
|
viewBox: "0 0 100 61",
|
|
5258
5283
|
className: "w-[100px]",
|
|
5259
5284
|
"aria-hidden": "true",
|
|
5260
5285
|
focusable: "false",
|
|
5261
5286
|
children: [/* @__PURE__ */ g("g", {
|
|
5262
|
-
"data-footprint-part":
|
|
5287
|
+
"data-footprint-part": Hn.Eyes,
|
|
5263
5288
|
children: [
|
|
5264
5289
|
/* @__PURE__ */ h("path", {
|
|
5265
|
-
className:
|
|
5290
|
+
className: er.eye,
|
|
5266
5291
|
d: "M9 18Q25 5 42 20Q24 32 9 18ZM58 20Q76 4 91 17Q77 31 58 20Z"
|
|
5267
5292
|
}),
|
|
5268
5293
|
/* @__PURE__ */ g("g", {
|
|
5269
|
-
"data-footprint-part":
|
|
5294
|
+
"data-footprint-part": Hn.Gaze,
|
|
5270
5295
|
children: [/* @__PURE__ */ h("path", {
|
|
5271
|
-
className:
|
|
5296
|
+
className: er.pupil,
|
|
5272
5297
|
d: "M25 12Q21 20 26 26Q29 20 25 12ZM75 11Q72 19 76 25Q79 18 75 11Z"
|
|
5273
5298
|
}), /* @__PURE__ */ h("path", {
|
|
5274
|
-
className:
|
|
5299
|
+
className: er.eyeLight,
|
|
5275
5300
|
d: "M21 15L22 17M71 14L72 16"
|
|
5276
5301
|
})]
|
|
5277
5302
|
}),
|
|
5278
5303
|
/* @__PURE__ */ h("path", {
|
|
5279
|
-
className:
|
|
5304
|
+
className: er.lid,
|
|
5280
5305
|
d: "M9 18Q24 4 42 20M58 20Q76 3 91 17"
|
|
5281
5306
|
})
|
|
5282
5307
|
]
|
|
5283
5308
|
}), /* @__PURE__ */ g("g", {
|
|
5284
|
-
"data-footprint-part":
|
|
5309
|
+
"data-footprint-part": Hn.Grin,
|
|
5285
5310
|
children: [
|
|
5286
5311
|
/* @__PURE__ */ h("path", {
|
|
5287
|
-
className:
|
|
5312
|
+
className: er.mouth,
|
|
5288
5313
|
d: "M17 37Q49 52 84 35Q75 58 52 58Q30 58 17 37Z"
|
|
5289
5314
|
}),
|
|
5290
5315
|
/* @__PURE__ */ h("path", {
|
|
5291
|
-
className:
|
|
5316
|
+
className: er.teeth,
|
|
5292
5317
|
d: "M22 40Q51 61 80 39M34 45L37 53M47 48L48 57M61 47L60 56M73 42L70 51"
|
|
5293
5318
|
}),
|
|
5294
5319
|
/* @__PURE__ */ h("path", {
|
|
5295
|
-
className:
|
|
5320
|
+
className: er.smile,
|
|
5296
5321
|
d: "M13 38Q16 39 19 35M82 34Q83 38 87 36"
|
|
5297
5322
|
})
|
|
5298
5323
|
]
|
|
5299
5324
|
})]
|
|
5300
|
-
}),
|
|
5325
|
+
}), ir = 12e3, ar = .9, or = .51, sr = (e, t, n) => Math.max(t, Math.min(n, e)), cr = (e) => ({
|
|
5301
5326
|
x: e.left + e.width / 2,
|
|
5302
5327
|
y: e.top + e.height / 2
|
|
5303
5328
|
}), X = (e, { x: t, y: n }, r = 1, i = 1, a = i, o = 0) => ({
|
|
5304
5329
|
offset: e,
|
|
5305
5330
|
transform: `translate(${t}px, ${n}px) rotate(${o}deg) scale(${i}, ${a})`,
|
|
5306
5331
|
opacity: r
|
|
5307
|
-
}),
|
|
5332
|
+
}), lr = (e, t) => [
|
|
5308
5333
|
{
|
|
5309
5334
|
offset: 0,
|
|
5310
5335
|
opacity: 0
|
|
@@ -5329,7 +5354,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5329
5354
|
offset: 1,
|
|
5330
5355
|
opacity: 0
|
|
5331
5356
|
}
|
|
5332
|
-
],
|
|
5357
|
+
], ur = (e, t, n = Math.random) => {
|
|
5333
5358
|
let { width: r, height: i, pumpkin: a } = e, o = e.homes.slice(0, t ? 3 : 5), s = o.length - 1, c = !!a && o.length > 0;
|
|
5334
5359
|
if (!a || o.length === 0) return {
|
|
5335
5360
|
active: c,
|
|
@@ -5340,11 +5365,11 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5340
5365
|
actors: [],
|
|
5341
5366
|
leaderHome: -1
|
|
5342
5367
|
};
|
|
5343
|
-
let l = a ?
|
|
5368
|
+
let l = a ? cr(a.rect) : {
|
|
5344
5369
|
x: r / 2,
|
|
5345
5370
|
y: i / 2
|
|
5346
5371
|
}, u = o.map((e, t) => {
|
|
5347
|
-
let i =
|
|
5372
|
+
let i = cr(e.rect), a = t === s, o = a ? .635 : .205 + t * .018, c = (t % 2 ? -1 : 1) * (2 + n() * 2), u = Math.min(14, Math.max(0, e.rect.top - 8)), d = sr((t % 2 ? 1 : -1) * 5, 8 - e.rect.left, r - e.rect.right - 8), f = "translate(0px, 0px) rotate(0deg)", p = `translate(${d}px, ${-u}px) rotate(${c}deg)`, m = [
|
|
5348
5373
|
{
|
|
5349
5374
|
offset: 0,
|
|
5350
5375
|
opacity: 0,
|
|
@@ -5387,7 +5412,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5387
5412
|
opacity: 1,
|
|
5388
5413
|
transform: f
|
|
5389
5414
|
}, {
|
|
5390
|
-
offset:
|
|
5415
|
+
offset: ar,
|
|
5391
5416
|
opacity: 1,
|
|
5392
5417
|
transform: f
|
|
5393
5418
|
}, {
|
|
@@ -5399,13 +5424,13 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5399
5424
|
opacity: 0,
|
|
5400
5425
|
transform: f
|
|
5401
5426
|
});
|
|
5402
|
-
let h =
|
|
5427
|
+
let h = sr((l.x - i.x) / 60, -3, 3), g = sr((l.y - i.y) / 80, -2, 2);
|
|
5403
5428
|
return {
|
|
5404
5429
|
target: e,
|
|
5405
5430
|
center: i,
|
|
5406
5431
|
entry: o,
|
|
5407
5432
|
frames: m,
|
|
5408
|
-
eyesFrames:
|
|
5433
|
+
eyesFrames: lr(o + .02, .69),
|
|
5409
5434
|
lookFrames: [
|
|
5410
5435
|
{
|
|
5411
5436
|
offset: 0,
|
|
@@ -5420,7 +5445,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5420
5445
|
transform: "translate(3px, 1px)"
|
|
5421
5446
|
},
|
|
5422
5447
|
{
|
|
5423
|
-
offset:
|
|
5448
|
+
offset: or,
|
|
5424
5449
|
transform: "translate(0px, 0px)"
|
|
5425
5450
|
},
|
|
5426
5451
|
{
|
|
@@ -5442,8 +5467,8 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5442
5467
|
homes: u,
|
|
5443
5468
|
actors: u.map((e, o) => {
|
|
5444
5469
|
let c = o === s, u = (t ? 53 : 65) + (c ? 16 : n() * 11), f = u * 88 / 64, p = {
|
|
5445
|
-
x:
|
|
5446
|
-
y:
|
|
5470
|
+
x: sr(e.center.x, u / 2 + 8, r - u / 2 - 8),
|
|
5471
|
+
y: sr(e.target.rect.top - f * .42, f / 2 + 8, i - f / 2 - 8)
|
|
5447
5472
|
}, m = {
|
|
5448
5473
|
x: e.center.x,
|
|
5449
5474
|
y: e.center.y - f * .34
|
|
@@ -5470,14 +5495,14 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5470
5495
|
y: i * (.2 + n() * .55)
|
|
5471
5496
|
}, S = {
|
|
5472
5497
|
x: p.x,
|
|
5473
|
-
y:
|
|
5498
|
+
y: sr(p.y - 25, f / 2, i - f / 2)
|
|
5474
5499
|
}, C, w, T = "inset(0% 0% 0% 0%)", E = "inset(100% 0% 0% 0%)";
|
|
5475
5500
|
if (c) {
|
|
5476
5501
|
let e = l.x > r / 2 ? -1 : 1, t = {
|
|
5477
|
-
x:
|
|
5478
|
-
y:
|
|
5502
|
+
x: sr(l.x + e * (a.rect.width / 2 + u * .6), u / 2 + 5, r - u / 2 - 5),
|
|
5503
|
+
y: sr(l.y - f * .28, f / 2 + 8, i - f / 2 - 8)
|
|
5479
5504
|
}, n = {
|
|
5480
|
-
x:
|
|
5505
|
+
x: sr(t.x + e * u * .7, u / 2, r - u / 2),
|
|
5481
5506
|
y: Math.max(f / 2, t.y - f * .5)
|
|
5482
5507
|
};
|
|
5483
5508
|
C = [
|
|
@@ -5490,7 +5515,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5490
5515
|
y: t.y - 10
|
|
5491
5516
|
}, 1, .86, 1.12, -5),
|
|
5492
5517
|
X(.425, t, 1, 1.27, 1.16, 0),
|
|
5493
|
-
X(
|
|
5518
|
+
X(or, t, 1, 1.2, 1.1),
|
|
5494
5519
|
X(.55, n, 1, .65, .74, e * -18),
|
|
5495
5520
|
X(.605, S, 1, .82, 1.13, -12),
|
|
5496
5521
|
X(.635, m, 1, .45, 1.08),
|
|
@@ -5596,7 +5621,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5596
5621
|
opacity: 0
|
|
5597
5622
|
},
|
|
5598
5623
|
{
|
|
5599
|
-
offset: c ?
|
|
5624
|
+
offset: c ? or : .69,
|
|
5600
5625
|
opacity: 0
|
|
5601
5626
|
},
|
|
5602
5627
|
{
|
|
@@ -5612,7 +5637,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5612
5637
|
}),
|
|
5613
5638
|
leaderHome: s
|
|
5614
5639
|
};
|
|
5615
|
-
},
|
|
5640
|
+
}, dr = (e, { host: t, copies: n, actors: r, faceTemplate: i, pumpkinGlow: a }, o) => {
|
|
5616
5641
|
if (!e.active || typeof t.animate != "function") return () => void 0;
|
|
5617
5642
|
let s = [], c, l, u = !1, d = typeof document.timeline?.currentTime == "number" ? document.timeline.currentTime : void 0, f = [
|
|
5618
5643
|
"pointerdown",
|
|
@@ -5634,7 +5659,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5634
5659
|
easing: "ease-in-out",
|
|
5635
5660
|
...e
|
|
5636
5661
|
})), {
|
|
5637
|
-
duration:
|
|
5662
|
+
duration: ir,
|
|
5638
5663
|
fill: "both"
|
|
5639
5664
|
});
|
|
5640
5665
|
s.push(n), d !== void 0 && (n.startTime = d);
|
|
@@ -5671,7 +5696,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5671
5696
|
transform: "scale(1)"
|
|
5672
5697
|
},
|
|
5673
5698
|
{
|
|
5674
|
-
offset:
|
|
5699
|
+
offset: or,
|
|
5675
5700
|
opacity: +!!e.leader,
|
|
5676
5701
|
transform: "scale(1)"
|
|
5677
5702
|
},
|
|
@@ -5693,7 +5718,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5693
5718
|
transform: "rotate(0deg) scale(1)"
|
|
5694
5719
|
},
|
|
5695
5720
|
{
|
|
5696
|
-
offset:
|
|
5721
|
+
offset: or - .015,
|
|
5697
5722
|
transform: "rotate(0deg) scale(1)"
|
|
5698
5723
|
},
|
|
5699
5724
|
{
|
|
@@ -5723,7 +5748,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5723
5748
|
opacity: 0
|
|
5724
5749
|
},
|
|
5725
5750
|
{
|
|
5726
|
-
offset:
|
|
5751
|
+
offset: or - .015,
|
|
5727
5752
|
opacity: 0
|
|
5728
5753
|
},
|
|
5729
5754
|
{
|
|
@@ -5752,7 +5777,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5752
5777
|
filter: "brightness(1)"
|
|
5753
5778
|
},
|
|
5754
5779
|
{
|
|
5755
|
-
offset:
|
|
5780
|
+
offset: or - .015,
|
|
5756
5781
|
filter: "brightness(1)"
|
|
5757
5782
|
},
|
|
5758
5783
|
{
|
|
@@ -5772,9 +5797,9 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5772
5797
|
filter: "brightness(1)"
|
|
5773
5798
|
}
|
|
5774
5799
|
]), c = A(e.homes.map(({ target: e }) => e), n, {
|
|
5775
|
-
durationMs:
|
|
5800
|
+
durationMs: ir,
|
|
5776
5801
|
hideAt: (t) => e.homes[t].entry,
|
|
5777
|
-
restoreAt:
|
|
5802
|
+
restoreAt: ar,
|
|
5778
5803
|
startTime: d,
|
|
5779
5804
|
onStop: m,
|
|
5780
5805
|
frames: (t, n) => e.homes[n].frames,
|
|
@@ -5801,19 +5826,19 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5801
5826
|
"aria-disabled",
|
|
5802
5827
|
"href"
|
|
5803
5828
|
]
|
|
5804
|
-
}), f.forEach((e) => document.addEventListener(e, h, !0)), window.addEventListener("resize", m), l = setTimeout(m,
|
|
5829
|
+
}), f.forEach((e) => document.addEventListener(e, h, !0)), window.addEventListener("resize", m), l = setTimeout(m, ir);
|
|
5805
5830
|
} catch {
|
|
5806
5831
|
m();
|
|
5807
5832
|
}
|
|
5808
5833
|
return m;
|
|
5809
|
-
},
|
|
5834
|
+
}, fr = 96, pr = "[hidden], [inert], [aria-hidden=\"true\"], [data-celebration-snapshot]", mr = "input, textarea, select, [contenteditable]:not([contenteditable=\"false\"])", hr = ":disabled, [aria-disabled=\"true\"], [aria-expanded=\"true\"]", gr = "[data-halloween-pumpkin-anchor]", _r = /^(auto|scroll|hidden|clip)$/, vr = (e, t) => Math.hypot(e.left + e.width / 2 - t.left - t.width / 2, e.top + e.height / 2 - t.top - t.height / 2), yr = (e) => {
|
|
5810
5835
|
let t = [...e];
|
|
5811
5836
|
for (let e = t.length - 1; e > 0; e--) {
|
|
5812
5837
|
let n = Math.floor(Math.random() * (e + 1));
|
|
5813
5838
|
[t[e], t[n]] = [t[n], t[e]];
|
|
5814
5839
|
}
|
|
5815
5840
|
return t;
|
|
5816
|
-
},
|
|
5841
|
+
}, br = (e, t = 5) => {
|
|
5817
5842
|
let { composer: n, starterList: r } = e, { clientWidth: i, clientHeight: a } = document.documentElement, o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = (e) => {
|
|
5818
5843
|
let t = o.get(e);
|
|
5819
5844
|
return t || (t = e.getBoundingClientRect(), o.set(e, t)), t;
|
|
@@ -5821,14 +5846,14 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5821
5846
|
let t = s.get(e);
|
|
5822
5847
|
return t || (t = getComputedStyle(e), s.set(e, t)), t;
|
|
5823
5848
|
}, u = (e) => {
|
|
5824
|
-
if (e.closest(
|
|
5849
|
+
if (e.closest(pr)) return;
|
|
5825
5850
|
let t = c(e);
|
|
5826
5851
|
if (t.width < 24 || t.height < 20 || t.left < 0 || t.top < 0 || t.right > i || t.bottom > a) return;
|
|
5827
5852
|
let n = e;
|
|
5828
5853
|
for (let e = 0; n && e < 32; e++, n = n.parentElement) {
|
|
5829
5854
|
let e = l(n);
|
|
5830
5855
|
if (e.display === "none" || e.visibility === "hidden" || e.visibility === "collapse" || e.opacity === "0" || e.contentVisibility === "hidden") return;
|
|
5831
|
-
let r =
|
|
5856
|
+
let r = _r.test(e.overflowX || e.overflow), i = _r.test(e.overflowY || e.overflow);
|
|
5832
5857
|
if (r || i) {
|
|
5833
5858
|
let e = c(n);
|
|
5834
5859
|
if (r && (t.left < e.left || t.right > e.right) || i && (t.top < e.top || t.bottom > e.bottom)) return;
|
|
@@ -5845,7 +5870,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5845
5870
|
let r = u(n);
|
|
5846
5871
|
if (r) return r;
|
|
5847
5872
|
}
|
|
5848
|
-
}, f = n ? d(document.getElementsByClassName(n)) : void 0, p = d(document.querySelectorAll(
|
|
5873
|
+
}, f = n ? d(document.getElementsByClassName(n)) : void 0, p = d(document.querySelectorAll(gr)), m = it(f?.element, e), h = [], g = rt(et(e));
|
|
5849
5874
|
for (let e = 0; e < Math.min(48, g.length); e++) {
|
|
5850
5875
|
let t = g[e].closest("li");
|
|
5851
5876
|
t && !h.includes(t) && h.push(t);
|
|
@@ -5859,14 +5884,14 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5859
5884
|
Array.from(m?.querySelectorAll("h1, h2") ?? []).slice(0, 2),
|
|
5860
5885
|
Array.from(rt(nt(e))).slice(0, 8),
|
|
5861
5886
|
Array.from(m?.querySelectorAll("button") ?? []).slice(0, 16)
|
|
5862
|
-
], b = /* @__PURE__ */ new Set(), x = y.map((e) =>
|
|
5863
|
-
if (b.has(e) || (b.add(e), e.contains(document.activeElement) || e.closest(`${
|
|
5887
|
+
], b = /* @__PURE__ */ new Set(), x = y.map((e) => yr(e).flatMap((e) => {
|
|
5888
|
+
if (b.has(e) || (b.add(e), e.contains(document.activeElement) || e.closest(`${gr}, ${mr}, ${hr}`) || e.querySelector(`${mr}, ${hr}`) || e.getElementsByTagName("*").length > 60)) return [];
|
|
5864
5889
|
let t = u(e);
|
|
5865
5890
|
return !t || t.rect.width > 440 || t.rect.height > 96 || t.rect.width * t.rect.height > 3e4 ? [] : [t];
|
|
5866
|
-
})), S = [], C = Number.isFinite(t) ? Math.max(0, Math.min(5, Math.floor(t))) : 0, w = ({ element: e, rect: t }) => S.every((n) => !n.element.contains(e) && !e.contains(n.element) &&
|
|
5891
|
+
})), S = [], C = Number.isFinite(t) ? Math.max(0, Math.min(5, Math.floor(t))) : 0, w = ({ element: e, rect: t }) => S.every((n) => !n.element.contains(e) && !e.contains(n.element) && vr(n.rect, t) >= fr && (t.right <= n.rect.left || t.left >= n.rect.right || t.bottom <= n.rect.top || t.top >= n.rect.bottom)), T = (e) => {
|
|
5867
5892
|
let t = e.filter(w);
|
|
5868
5893
|
if (!t.length || S.length >= C) return;
|
|
5869
|
-
let n = (e) => Math.min(...S.map((t) =>
|
|
5894
|
+
let n = (e) => Math.min(...S.map((t) => vr(t.rect, e.rect))), r = S.length ? t.reduce((e, t) => n(t) > n(e) ? t : e) : t[0];
|
|
5870
5895
|
S.push(r);
|
|
5871
5896
|
};
|
|
5872
5897
|
x.forEach(T);
|
|
@@ -5881,7 +5906,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5881
5906
|
pumpkin: p,
|
|
5882
5907
|
homes: S
|
|
5883
5908
|
};
|
|
5884
|
-
},
|
|
5909
|
+
}, xr = {
|
|
5885
5910
|
[x.Classic]: {
|
|
5886
5911
|
body: "M32 4C17 4 9 16 10 32C12 54 8 65 3 79Q14 76 21 82Q27 88 34 78Q40 70 45 79Q53 87 62 77C50 65 57 47 55 29C54 14 46 4 32 4Z",
|
|
5887
5912
|
face: "M23 34a4 5 0 1 0 0 .1Zm18 0a4 5 0 1 0 0 .1ZM32 52a5 4 0 0 0 5-4h-10a5 4 0 0 0 5 4Z",
|
|
@@ -5902,8 +5927,8 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
5902
5927
|
face: "M23 41a3 4 0 1 0 0 .1Zm11 1h8a1 1 0 0 1 0 2h-8a1 1 0 0 1 0-2ZM29 56h6a1 1 0 0 1 0 2h-6a1 1 0 0 1 0-2Z",
|
|
5903
5928
|
tint: "#d9bcd6"
|
|
5904
5929
|
}
|
|
5905
|
-
},
|
|
5906
|
-
let { body: r, face: i, tint: o } =
|
|
5930
|
+
}, Sr = o(({ variant: e, className: t, expressive: n = !1 }) => {
|
|
5931
|
+
let { body: r, face: i, tint: o } = xr[e], s = l();
|
|
5907
5932
|
return /* @__PURE__ */ g("svg", {
|
|
5908
5933
|
viewBox: "0 0 64 88",
|
|
5909
5934
|
className: a("h-28 w-auto drop-shadow-md", t),
|
|
@@ -6066,7 +6091,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6066
6091
|
})
|
|
6067
6092
|
]
|
|
6068
6093
|
});
|
|
6069
|
-
}),
|
|
6094
|
+
}), Cr = {
|
|
6070
6095
|
scene: "_scene_1ncpe_2",
|
|
6071
6096
|
actor: "_actor_1ncpe_21",
|
|
6072
6097
|
copies: "_copies_1ncpe_22",
|
|
@@ -6076,7 +6101,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6076
6101
|
templates: "_templates_1ncpe_65",
|
|
6077
6102
|
possessedFace: "_possessedFace_1ncpe_69",
|
|
6078
6103
|
eye: "_eye_1ncpe_85"
|
|
6079
|
-
},
|
|
6104
|
+
}, wr = () => {
|
|
6080
6105
|
let { isMobile: e, anchors: n } = t(), r = D(), [i] = f(() => ({
|
|
6081
6106
|
isMobile: e,
|
|
6082
6107
|
reducedMotion: r
|
|
@@ -6104,7 +6129,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6104
6129
|
"resize"
|
|
6105
6130
|
];
|
|
6106
6131
|
return l.forEach((e) => window.addEventListener(e, s, !0)), document.addEventListener("visibilitychange", c), (async () => {
|
|
6107
|
-
await Promise.resolve(), !(t || v.current) && p(
|
|
6132
|
+
await Promise.resolve(), !(t || v.current) && p(ur(br(n, e ? 3 : 5), e));
|
|
6108
6133
|
})(), () => {
|
|
6109
6134
|
t = !0, l.forEach((e) => window.removeEventListener(e, s, !0)), document.removeEventListener("visibilitychange", c);
|
|
6110
6135
|
};
|
|
@@ -6117,7 +6142,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6117
6142
|
o
|
|
6118
6143
|
]), c(() => {
|
|
6119
6144
|
if (m || a || v.current || r || !o || !u?.active || !y.current || !x.current) return;
|
|
6120
|
-
let e = !1, t =
|
|
6145
|
+
let e = !1, t = dr(u, {
|
|
6121
6146
|
host: y.current,
|
|
6122
6147
|
copies: x.current,
|
|
6123
6148
|
actors: w.current.filter((e) => !!e),
|
|
@@ -6140,7 +6165,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6140
6165
|
let E = r || !o, O = u?.pumpkin?.rect;
|
|
6141
6166
|
return /* @__PURE__ */ g("div", {
|
|
6142
6167
|
ref: y,
|
|
6143
|
-
className:
|
|
6168
|
+
className: Cr.scene,
|
|
6144
6169
|
"aria-hidden": "true",
|
|
6145
6170
|
inert: !0,
|
|
6146
6171
|
"data-halloween-scene": b.Ghost,
|
|
@@ -6150,25 +6175,25 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6150
6175
|
children: [
|
|
6151
6176
|
/* @__PURE__ */ h("div", {
|
|
6152
6177
|
ref: x,
|
|
6153
|
-
className:
|
|
6178
|
+
className: Cr.copies
|
|
6154
6179
|
}),
|
|
6155
6180
|
/* @__PURE__ */ h("div", {
|
|
6156
|
-
className:
|
|
6181
|
+
className: Cr.templates,
|
|
6157
6182
|
children: /* @__PURE__ */ g("div", {
|
|
6158
6183
|
ref: S,
|
|
6159
|
-
className:
|
|
6184
|
+
className: Cr.possessedFace,
|
|
6160
6185
|
children: [/* @__PURE__ */ h("span", {
|
|
6161
|
-
className:
|
|
6186
|
+
className: Cr.eye,
|
|
6162
6187
|
children: /* @__PURE__ */ h("span", { "data-ghost-pupil": "true" })
|
|
6163
6188
|
}), /* @__PURE__ */ h("span", {
|
|
6164
|
-
className:
|
|
6189
|
+
className: Cr.eye,
|
|
6165
6190
|
children: /* @__PURE__ */ h("span", { "data-ghost-pupil": "true" })
|
|
6166
6191
|
})]
|
|
6167
6192
|
})
|
|
6168
6193
|
}),
|
|
6169
6194
|
O && /* @__PURE__ */ h("div", {
|
|
6170
6195
|
ref: C,
|
|
6171
|
-
className:
|
|
6196
|
+
className: Cr.pumpkinGlow,
|
|
6172
6197
|
style: {
|
|
6173
6198
|
left: O.left,
|
|
6174
6199
|
top: O.top,
|
|
@@ -6180,20 +6205,20 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6180
6205
|
ref: (e) => {
|
|
6181
6206
|
w.current[t] = e;
|
|
6182
6207
|
},
|
|
6183
|
-
className:
|
|
6208
|
+
className: Cr.actor,
|
|
6184
6209
|
"data-ghost-actor": t,
|
|
6185
6210
|
"data-ghost-leader": e.leader,
|
|
6186
6211
|
style: { transform: `translate(${e.rest.x}px, ${e.rest.y}px)` },
|
|
6187
6212
|
children: /* @__PURE__ */ h("div", {
|
|
6188
|
-
className:
|
|
6213
|
+
className: Cr.art,
|
|
6189
6214
|
style: {
|
|
6190
6215
|
width: e.size,
|
|
6191
6216
|
height: e.size * 88 / 64
|
|
6192
6217
|
},
|
|
6193
6218
|
children: /* @__PURE__ */ h("div", {
|
|
6194
|
-
className:
|
|
6219
|
+
className: Cr.cloth,
|
|
6195
6220
|
"data-ghost-cloth": "true",
|
|
6196
|
-
children: /* @__PURE__ */ h(
|
|
6221
|
+
children: /* @__PURE__ */ h(Sr, {
|
|
6197
6222
|
variant: e.variant,
|
|
6198
6223
|
expressive: !0
|
|
6199
6224
|
})
|
|
@@ -6203,14 +6228,14 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6203
6228
|
className: q.ghost,
|
|
6204
6229
|
style: e.style,
|
|
6205
6230
|
"data-ghost-fallback": "true",
|
|
6206
|
-
children: /* @__PURE__ */ h(
|
|
6231
|
+
children: /* @__PURE__ */ h(Sr, {
|
|
6207
6232
|
variant: e.variant,
|
|
6208
6233
|
className: q.ghostBody
|
|
6209
6234
|
})
|
|
6210
6235
|
}, t))
|
|
6211
6236
|
]
|
|
6212
6237
|
});
|
|
6213
|
-
},
|
|
6238
|
+
}, Tr = (e, t) => {
|
|
6214
6239
|
if (!e.length) return null;
|
|
6215
6240
|
let n = Math.min(...e.map(({ rect: e }) => e.left)), r = Math.min(...e.map(({ rect: e }) => e.top)), i = Math.max(...e.map(({ rect: e }) => e.right)), a = Math.max(...e.map(({ rect: e }) => e.bottom)), o = {
|
|
6216
6241
|
x: t.left + t.width * .5,
|
|
@@ -6228,7 +6253,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6228
6253
|
length: Math.hypot(s.x - o.x, s.y - o.y),
|
|
6229
6254
|
angle: Math.atan2(s.y - o.y, s.x - o.x) * 180 / Math.PI
|
|
6230
6255
|
};
|
|
6231
|
-
},
|
|
6256
|
+
}, Er = [
|
|
6232
6257
|
{
|
|
6233
6258
|
offset: .28,
|
|
6234
6259
|
amount: 1
|
|
@@ -6249,7 +6274,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6249
6274
|
offset: .585,
|
|
6250
6275
|
amount: 0
|
|
6251
6276
|
}
|
|
6252
|
-
],
|
|
6277
|
+
], Dr = (e, t, n, r, i, a) => {
|
|
6253
6278
|
if (typeof n.animate != "function" || typeof t.animate != "function") return () => void 0;
|
|
6254
6279
|
let o = [], s = () => {
|
|
6255
6280
|
o.forEach((e) => e.cancel()), i?.();
|
|
@@ -6275,7 +6300,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6275
6300
|
opacity: 1,
|
|
6276
6301
|
transform: "scale(0)"
|
|
6277
6302
|
},
|
|
6278
|
-
...
|
|
6303
|
+
...Er.map(({ offset: e, amount: t }) => ({
|
|
6279
6304
|
offset: e,
|
|
6280
6305
|
opacity: +!!t,
|
|
6281
6306
|
transform: `scale(${t})`
|
|
@@ -6297,7 +6322,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6297
6322
|
opacity: 0,
|
|
6298
6323
|
transform: "none"
|
|
6299
6324
|
},
|
|
6300
|
-
...
|
|
6325
|
+
...Er.map(({ offset: t, amount: n }) => ({
|
|
6301
6326
|
offset: t,
|
|
6302
6327
|
opacity: +!!n,
|
|
6303
6328
|
transform: l(e.grab.x, e.grab.y, n)
|
|
@@ -6351,7 +6376,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6351
6376
|
opacity: 0,
|
|
6352
6377
|
transform: "none"
|
|
6353
6378
|
},
|
|
6354
|
-
...
|
|
6379
|
+
...Er.map(({ offset: e, amount: t }) => ({
|
|
6355
6380
|
offset: e,
|
|
6356
6381
|
opacity: +!!t,
|
|
6357
6382
|
transform: l(r, i, t)
|
|
@@ -6385,7 +6410,52 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6385
6410
|
},
|
|
6386
6411
|
onStop: s
|
|
6387
6412
|
});
|
|
6388
|
-
},
|
|
6413
|
+
}, Or = .5, kr = (t, n, r = []) => {
|
|
6414
|
+
if (!t.length) return () => void 0;
|
|
6415
|
+
let i = [...new Set(t)].map((e) => ({
|
|
6416
|
+
element: e,
|
|
6417
|
+
rect: e.getBoundingClientRect()
|
|
6418
|
+
})), a = !1, o = () => {
|
|
6419
|
+
a || (a = !0, u.disconnect(), d?.disconnect());
|
|
6420
|
+
}, s = () => {
|
|
6421
|
+
a || (o(), n());
|
|
6422
|
+
}, c = () => {
|
|
6423
|
+
a || i.some(({ element: e, rect: t }) => {
|
|
6424
|
+
if (!e.isConnected) return !0;
|
|
6425
|
+
let n = e.getBoundingClientRect();
|
|
6426
|
+
return [
|
|
6427
|
+
"left",
|
|
6428
|
+
"top",
|
|
6429
|
+
"width",
|
|
6430
|
+
"height"
|
|
6431
|
+
].some((e) => Math.abs(n[e] - t[e]) > Or);
|
|
6432
|
+
}) && s();
|
|
6433
|
+
}, l = (t) => r.some((e) => e === t || e.contains(t)) || t instanceof Element && !!t.closest(`.${e.sceneLayer}`), u = new MutationObserver((e) => {
|
|
6434
|
+
if (a) return;
|
|
6435
|
+
let t = e.filter((e) => !l(e.target) && (e.type !== "childList" || ![...e.addedNodes, ...e.removedNodes].every(l)));
|
|
6436
|
+
if (i.some(({ element: e }) => !e.isConnected || t.some((t) => e.contains(t.target) || t.type === "attributes" && t.target.contains(e)))) {
|
|
6437
|
+
s();
|
|
6438
|
+
return;
|
|
6439
|
+
}
|
|
6440
|
+
t.some((e) => e.type === "childList" && i.some(({ element: t }) => e.target.contains(t))) && c();
|
|
6441
|
+
}), d = typeof ResizeObserver == "function" ? new ResizeObserver(c) : void 0;
|
|
6442
|
+
return u.observe(document.documentElement, {
|
|
6443
|
+
subtree: !0,
|
|
6444
|
+
childList: !0,
|
|
6445
|
+
characterData: !0,
|
|
6446
|
+
attributes: !0,
|
|
6447
|
+
attributeFilter: [
|
|
6448
|
+
"class",
|
|
6449
|
+
"style",
|
|
6450
|
+
"dir",
|
|
6451
|
+
"hidden",
|
|
6452
|
+
"inert",
|
|
6453
|
+
"aria-hidden",
|
|
6454
|
+
"aria-expanded",
|
|
6455
|
+
"href"
|
|
6456
|
+
]
|
|
6457
|
+
}), i.forEach(({ element: e }) => d?.observe(e)), o;
|
|
6458
|
+
}, Ar = (e, t, n, r) => {
|
|
6389
6459
|
let i = Math.min(r ? 90 : 120, e * .25, t * .25), a = n.length ? {
|
|
6390
6460
|
x: n.reduce((e, { rect: t }) => e + t.left + t.width / 2, 0) / n.length,
|
|
6391
6461
|
y: n.reduce((e, { rect: t }) => e + t.top + t.height / 2, 0) / n.length
|
|
@@ -6403,19 +6473,23 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6403
6473
|
height: t,
|
|
6404
6474
|
size: i
|
|
6405
6475
|
};
|
|
6406
|
-
},
|
|
6476
|
+
}, jr = (e) => {
|
|
6407
6477
|
let t = [...e].sort((e, t) => e.rect.top - t.rect.top), n = Math.floor(Math.random() * Math.max(1, t.length - 1));
|
|
6408
6478
|
return t.slice(n, n + 2);
|
|
6409
|
-
},
|
|
6479
|
+
}, Mr = (e, t, n) => {
|
|
6410
6480
|
if (!e.length || typeof t.animate != "function") return () => void 0;
|
|
6411
|
-
let r = [], i = [], a = !1, o, s =
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6481
|
+
let r = [], i = [], a = !1, o, s, c = [
|
|
6482
|
+
"scroll",
|
|
6483
|
+
"pointerdown",
|
|
6484
|
+
"focusin",
|
|
6485
|
+
"keydown",
|
|
6486
|
+
"beforeinput",
|
|
6487
|
+
"input",
|
|
6488
|
+
"compositionstart",
|
|
6489
|
+
"visibilitychange"
|
|
6490
|
+
], l = () => {
|
|
6491
|
+
a || (a = !0, clearTimeout(o), r.forEach((e) => e.cancel()), i.forEach((e) => e.remove()), s?.(), c.forEach((e) => document.removeEventListener(e, l, !0)), window.removeEventListener("resize", l));
|
|
6492
|
+
};
|
|
6419
6493
|
try {
|
|
6420
6494
|
e.forEach(({ element: e, rect: a }, o) => {
|
|
6421
6495
|
let s = document.createElement("div");
|
|
@@ -6497,22 +6571,12 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6497
6571
|
duration: 9e3,
|
|
6498
6572
|
fill: "both"
|
|
6499
6573
|
}));
|
|
6500
|
-
}), l.
|
|
6501
|
-
subtree: !0,
|
|
6502
|
-
childList: !0,
|
|
6503
|
-
characterData: !0,
|
|
6504
|
-
attributes: !0,
|
|
6505
|
-
attributeFilter: [
|
|
6506
|
-
"href",
|
|
6507
|
-
"inert",
|
|
6508
|
-
"aria-hidden"
|
|
6509
|
-
]
|
|
6510
|
-
}), document.addEventListener("scroll", c, !0), document.addEventListener("pointerdown", c, !0), document.addEventListener("focusin", c, !0), document.addEventListener("visibilitychange", c), window.addEventListener("resize", c), o = setTimeout(c, 9e3);
|
|
6574
|
+
}), s = kr(e.map(({ element: e }) => e), l, [t]), c.forEach((e) => document.addEventListener(e, l, !0)), window.addEventListener("resize", l), o = setTimeout(l, 9e3);
|
|
6511
6575
|
} catch {
|
|
6512
|
-
|
|
6576
|
+
l();
|
|
6513
6577
|
}
|
|
6514
|
-
return
|
|
6515
|
-
},
|
|
6578
|
+
return l;
|
|
6579
|
+
}, Nr = (e) => jr(Et(e)), Pr = (e, t, n) => {
|
|
6516
6580
|
let r = t.left + t.width * .5 - e.left - e.width / 2, i = t.top + t.height * .56 - e.top - e.height / 2, a = n ? 18 : -18, o = (e, t, n, r = 0) => `translate(${e}px, ${t}px) scale(${n}) rotate(${r}deg)`;
|
|
6517
6581
|
return [
|
|
6518
6582
|
{
|
|
@@ -6566,22 +6630,22 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6566
6630
|
transform: "none"
|
|
6567
6631
|
}
|
|
6568
6632
|
];
|
|
6569
|
-
},
|
|
6633
|
+
}, Fr = (e, t, n, r, i) => A(t, n, {
|
|
6570
6634
|
durationMs: 8e3,
|
|
6571
6635
|
hideAt: .25,
|
|
6572
6636
|
restoreAt: .94,
|
|
6573
|
-
frames: (e, t) =>
|
|
6637
|
+
frames: (e, t) => Pr(e, r, t),
|
|
6574
6638
|
decorateCopy: e === b.Cauldron ? (e) => Object.assign(e.style, {
|
|
6575
6639
|
borderRadius: "24px",
|
|
6576
6640
|
boxShadow: "0 0 14px #b6e78b99",
|
|
6577
6641
|
border: "1px solid #bbdf9c"
|
|
6578
6642
|
}) : void 0,
|
|
6579
6643
|
onStop: i
|
|
6580
|
-
}),
|
|
6644
|
+
}), Ir = {
|
|
6581
6645
|
tongueCanvas: "_tongueCanvas_id5l0_1",
|
|
6582
6646
|
tongue: "_tongue_id5l0_1",
|
|
6583
6647
|
loop: "_loop_id5l0_15"
|
|
6584
|
-
},
|
|
6648
|
+
}, Lr = {
|
|
6585
6649
|
scene: "_scene_1112m_1",
|
|
6586
6650
|
stage: "_stage_1112m_9",
|
|
6587
6651
|
art: "_art_1112m_20",
|
|
@@ -6599,24 +6663,24 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6599
6663
|
"chest-hiccup": "_chest-hiccup_1112m_1",
|
|
6600
6664
|
chestLid: "_chestLid_1112m_129",
|
|
6601
6665
|
"chest-chew": "_chest-chew_1112m_1"
|
|
6602
|
-
},
|
|
6666
|
+
}, Rr = () => {
|
|
6603
6667
|
let e = l(), n = D(), { anchors: r } = t(), i = d(null), a = d(null), o = d(null), s = d(null), u = d(null), [p, m] = f(null), [_, v] = f(!1), [y] = f(() => ({
|
|
6604
6668
|
"--place-x": .12 + Math.random() * .76,
|
|
6605
6669
|
"--place-y": .12 + Math.random() * .6
|
|
6606
6670
|
}));
|
|
6607
6671
|
c(() => {
|
|
6608
|
-
m(n || !i.current ? null :
|
|
6672
|
+
m(n || !i.current ? null : Tr(Nr(r), i.current.getBoundingClientRect()));
|
|
6609
6673
|
}, [r, n]), c(() => {
|
|
6610
|
-
if (v(!1), !(n || !p || !a.current || !o.current || !s.current || !u.current)) return
|
|
6674
|
+
if (v(!1), !(n || !p || !a.current || !o.current || !s.current || !u.current)) return Dr(p, a.current, o.current, s.current, () => v(!0), u.current);
|
|
6611
6675
|
}, [p, n]);
|
|
6612
6676
|
let x = p ? p.grab.height / 2 + 4 : 0, S = p ? Math.min(38, p.grab.width * .14) : 0, C = `M0 0 C${-S * 1.6} ${x * .3} ${-S * 1.8} ${-x * .6} ${-S * .8} ${-x} C${S * .1} ${-x - 7} ${S * .7} ${-x - 4} ${S * .9} ${-x + 3}`, w = `M${S * .9} ${-x + 3} C${S * 1.5} ${-x * .72} ${-S * .85} ${x * .28} ${-S * .7} ${x - 4} C${-S * .55} ${x + 8} ${S * .65} ${x + 8} ${S * .9} ${x - 3}`, T = `M${S * .9} ${x - 3} C${S * 1.2} ${x * .45} ${S * 1.1} ${x * .18} ${S * .65} ${x * .24} C${S * .3} ${x * .3} ${S * .6} ${x * .65} ${S * .82} ${x * .54}`;
|
|
6613
6677
|
return /* @__PURE__ */ g("div", {
|
|
6614
|
-
className:
|
|
6678
|
+
className: Lr.scene,
|
|
6615
6679
|
"data-halloween-scene": b.Mimic,
|
|
6616
6680
|
"aria-hidden": "true",
|
|
6617
6681
|
children: [
|
|
6618
6682
|
p && !n && /* @__PURE__ */ g("svg", {
|
|
6619
|
-
className:
|
|
6683
|
+
className: Ir.tongueCanvas,
|
|
6620
6684
|
focusable: "false",
|
|
6621
6685
|
style: { visibility: _ ? "hidden" : void 0 },
|
|
6622
6686
|
children: [/* @__PURE__ */ h("defs", { children: /* @__PURE__ */ g("mask", {
|
|
@@ -6641,7 +6705,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6641
6705
|
})]
|
|
6642
6706
|
}) }), /* @__PURE__ */ h("g", {
|
|
6643
6707
|
ref: u,
|
|
6644
|
-
className:
|
|
6708
|
+
className: Ir.loop,
|
|
6645
6709
|
style: { transformOrigin: `${p.grab.x}px ${p.grab.y}px` },
|
|
6646
6710
|
children: /* @__PURE__ */ h("g", {
|
|
6647
6711
|
mask: `url(#${e}-behind-chats)`,
|
|
@@ -6677,17 +6741,17 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6677
6741
|
}),
|
|
6678
6742
|
/* @__PURE__ */ h("div", {
|
|
6679
6743
|
ref: a,
|
|
6680
|
-
className:
|
|
6744
|
+
className: Lr.scene,
|
|
6681
6745
|
inert: !0
|
|
6682
6746
|
}),
|
|
6683
6747
|
/* @__PURE__ */ h("svg", {
|
|
6684
6748
|
ref: i,
|
|
6685
|
-
className:
|
|
6749
|
+
className: Lr.stage,
|
|
6686
6750
|
style: y,
|
|
6687
6751
|
viewBox: "0 0 320 320",
|
|
6688
6752
|
focusable: "false",
|
|
6689
6753
|
children: /* @__PURE__ */ g("g", {
|
|
6690
|
-
className:
|
|
6754
|
+
className: Lr.art,
|
|
6691
6755
|
children: [/* @__PURE__ */ g("defs", { children: [/* @__PURE__ */ g("linearGradient", {
|
|
6692
6756
|
id: `${e}-wood`,
|
|
6693
6757
|
x2: "0.2",
|
|
@@ -6719,7 +6783,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6719
6783
|
})
|
|
6720
6784
|
]
|
|
6721
6785
|
})] }), /* @__PURE__ */ g("g", {
|
|
6722
|
-
className:
|
|
6786
|
+
className: Lr.chest,
|
|
6723
6787
|
children: [
|
|
6724
6788
|
/* @__PURE__ */ h("ellipse", {
|
|
6725
6789
|
cx: "161",
|
|
@@ -6773,7 +6837,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6773
6837
|
stroke: "#a69f82"
|
|
6774
6838
|
}),
|
|
6775
6839
|
/* @__PURE__ */ g("g", {
|
|
6776
|
-
className:
|
|
6840
|
+
className: Lr.chestLid,
|
|
6777
6841
|
children: [
|
|
6778
6842
|
/* @__PURE__ */ h("path", {
|
|
6779
6843
|
d: "M70 186L81 119Q157 94 239 119L252 187Z",
|
|
@@ -6825,7 +6889,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6825
6889
|
})
|
|
6826
6890
|
}),
|
|
6827
6891
|
p && !n && /* @__PURE__ */ g("svg", {
|
|
6828
|
-
className:
|
|
6892
|
+
className: Ir.tongueCanvas,
|
|
6829
6893
|
focusable: "false",
|
|
6830
6894
|
style: { visibility: _ ? "hidden" : void 0 },
|
|
6831
6895
|
children: [
|
|
@@ -6884,7 +6948,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6884
6948
|
transform: `translate(${p.mouth.x} ${p.mouth.y}) rotate(${p.angle})`,
|
|
6885
6949
|
children: /* @__PURE__ */ g("g", {
|
|
6886
6950
|
ref: o,
|
|
6887
|
-
className:
|
|
6951
|
+
className: Ir.tongue,
|
|
6888
6952
|
"data-mimic-tongue": "true",
|
|
6889
6953
|
"data-tip-x": p.length,
|
|
6890
6954
|
children: [/* @__PURE__ */ h("path", {
|
|
@@ -6903,7 +6967,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6903
6967
|
}),
|
|
6904
6968
|
/* @__PURE__ */ h("g", {
|
|
6905
6969
|
ref: s,
|
|
6906
|
-
className:
|
|
6970
|
+
className: Ir.loop,
|
|
6907
6971
|
"data-mimic-grip": "true",
|
|
6908
6972
|
style: { transformOrigin: `${p.grab.x}px ${p.grab.y}px` },
|
|
6909
6973
|
children: /* @__PURE__ */ h("g", {
|
|
@@ -6959,7 +7023,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6959
7023
|
})
|
|
6960
7024
|
]
|
|
6961
7025
|
});
|
|
6962
|
-
},
|
|
7026
|
+
}, zr = 12e3, Br = (e) => {
|
|
6963
7027
|
let t = document.documentElement, n = document.querySelectorAll(`.${e}`);
|
|
6964
7028
|
for (let e of n) {
|
|
6965
7029
|
if (e.closest("[inert], [aria-hidden=\"true\"]") || !e.querySelector("textarea:not(:disabled)") || e.getElementsByTagName("*").length >= 1500 || e.querySelector("[aria-haspopup][aria-expanded=\"true\"]")) continue;
|
|
@@ -6986,7 +7050,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6986
7050
|
};
|
|
6987
7051
|
}
|
|
6988
7052
|
return null;
|
|
6989
|
-
},
|
|
7053
|
+
}, Vr = (e, t, n) => {
|
|
6990
7054
|
let r = e.left, i = t - e.right, a = r === i ? Math.random() < .5 ? 1 : -1 : r > i ? 1 : -1, o = Math.min(150, Math.max(108, e.height * .82)), s = o / 200, c = Math.min(e.width * .2, Math.max(0, o * .65 - Math.max(r, i))), l = (a === 1 ? e.left + c : e.right - c) - (a === 1 ? 187 : 13) * s;
|
|
6991
7055
|
return {
|
|
6992
7056
|
x: l,
|
|
@@ -6996,7 +7060,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
6996
7060
|
entrance: (a === 1 ? -o - 8 : t + 8) - l,
|
|
6997
7061
|
distance: a === 1 ? t - e.left + o + 24 : -e.right - o - 24
|
|
6998
7062
|
};
|
|
6999
|
-
},
|
|
7063
|
+
}, Hr = (e, t, n, r, i) => {
|
|
7000
7064
|
if (typeof t.animate != "function" || typeof n.animate != "function") return () => void 0;
|
|
7001
7065
|
let a = (e) => `translateX(${e}px)`, o = [
|
|
7002
7066
|
{
|
|
@@ -7028,14 +7092,14 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7028
7092
|
...e,
|
|
7029
7093
|
easing: "ease-in-out"
|
|
7030
7094
|
})), {
|
|
7031
|
-
duration:
|
|
7095
|
+
duration: zr,
|
|
7032
7096
|
fill: "both"
|
|
7033
7097
|
});
|
|
7034
7098
|
} catch {
|
|
7035
7099
|
return i?.(), () => void 0;
|
|
7036
7100
|
}
|
|
7037
7101
|
return A([e], t, {
|
|
7038
|
-
durationMs:
|
|
7102
|
+
durationMs: zr,
|
|
7039
7103
|
hideAt: .15,
|
|
7040
7104
|
restoreAt: .94,
|
|
7041
7105
|
frames: () => [
|
|
@@ -7058,7 +7122,29 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7058
7122
|
s?.cancel(), i?.();
|
|
7059
7123
|
}
|
|
7060
7124
|
});
|
|
7061
|
-
},
|
|
7125
|
+
}, Ur = 120, Wr = 600, Gr = (e, t) => {
|
|
7126
|
+
let n = window.visualViewport, r = [
|
|
7127
|
+
"pointerdown",
|
|
7128
|
+
"keydown",
|
|
7129
|
+
"beforeinput",
|
|
7130
|
+
"input",
|
|
7131
|
+
"compositionstart",
|
|
7132
|
+
"focusin",
|
|
7133
|
+
"scroll",
|
|
7134
|
+
"visibilitychange"
|
|
7135
|
+
], i = !0, a, o = () => i ? (i = !1, clearTimeout(a), clearTimeout(u), window.removeEventListener("resize", l), n?.removeEventListener("resize", l), n?.removeEventListener("scroll", l), r.forEach((e) => document.removeEventListener(e, c, !0)), !0) : !1, s = () => {
|
|
7136
|
+
o() && e();
|
|
7137
|
+
}, c = () => {
|
|
7138
|
+
o() && t();
|
|
7139
|
+
}, l = () => {
|
|
7140
|
+
clearTimeout(a), a = setTimeout(s, Ur);
|
|
7141
|
+
};
|
|
7142
|
+
window.addEventListener("resize", l), n?.addEventListener("resize", l), n?.addEventListener("scroll", l), r.forEach((e) => document.addEventListener(e, c, !0));
|
|
7143
|
+
let u = setTimeout(s, Wr);
|
|
7144
|
+
return l(), () => {
|
|
7145
|
+
o();
|
|
7146
|
+
};
|
|
7147
|
+
}, Kr = {
|
|
7062
7148
|
scene: "_scene_135v7_1",
|
|
7063
7149
|
actor: "_actor_135v7_9",
|
|
7064
7150
|
backLeg: "_backLeg_135v7_26",
|
|
@@ -7077,48 +7163,54 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7077
7163
|
"mummy-effort": "_mummy-effort_135v7_1",
|
|
7078
7164
|
dust: "_dust_135v7_60",
|
|
7079
7165
|
"mummy-dust": "_mummy-dust_135v7_1"
|
|
7080
|
-
},
|
|
7081
|
-
let e = l(), n = D(), { anchors: r } = t(),
|
|
7166
|
+
}, qr = () => {
|
|
7167
|
+
let e = l(), n = D(), { anchors: r, isMobile: i } = t(), a = d(null), o = d(null), [s, u] = f(null), [p, m] = f(!1), [_, v] = f(!1);
|
|
7082
7168
|
c(() => {
|
|
7083
|
-
|
|
7084
|
-
let e =
|
|
7169
|
+
m(!1), u(null), v(!1);
|
|
7170
|
+
let e = o.current, t = a.current;
|
|
7085
7171
|
if (n || !e || !t || typeof t.animate != "function") {
|
|
7086
|
-
|
|
7172
|
+
v(!0);
|
|
7087
7173
|
return;
|
|
7088
7174
|
}
|
|
7089
|
-
let
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
let n = r.composer ? Lr(r.composer) : null;
|
|
7175
|
+
let s = !1, c, l = async () => {
|
|
7176
|
+
if (await Promise.resolve(), s) return;
|
|
7177
|
+
v(!0);
|
|
7178
|
+
let n = r.composer ? Br(r.composer) : null;
|
|
7094
7179
|
if (!n) return;
|
|
7095
|
-
let i = document.documentElement, a =
|
|
7096
|
-
|
|
7097
|
-
}
|
|
7098
|
-
|
|
7180
|
+
let i = document.documentElement, a = Vr(n.rect, i.clientWidth, i.clientHeight);
|
|
7181
|
+
u(a), c = Hr(n, t, e, a, () => m(!0));
|
|
7182
|
+
}, d = i ? Gr(l, () => {
|
|
7183
|
+
s = !0, v(!0), m(!0);
|
|
7184
|
+
}) : void 0;
|
|
7185
|
+
return i || l(), () => {
|
|
7186
|
+
s = !0, d?.(), c?.();
|
|
7099
7187
|
};
|
|
7100
|
-
}, [
|
|
7101
|
-
|
|
7188
|
+
}, [
|
|
7189
|
+
r,
|
|
7190
|
+
i,
|
|
7191
|
+
n
|
|
7192
|
+
]);
|
|
7193
|
+
let y = n || !s;
|
|
7102
7194
|
return /* @__PURE__ */ g("div", {
|
|
7103
|
-
className:
|
|
7195
|
+
className: Kr.scene,
|
|
7104
7196
|
"data-halloween-scene": b.Mummy,
|
|
7105
|
-
"data-static":
|
|
7197
|
+
"data-static": y,
|
|
7106
7198
|
"aria-hidden": "true",
|
|
7107
|
-
style: { "--mummy-duration": `${
|
|
7199
|
+
style: { "--mummy-duration": `${zr}ms` },
|
|
7108
7200
|
children: [/* @__PURE__ */ h("div", {
|
|
7109
|
-
ref:
|
|
7110
|
-
className:
|
|
7201
|
+
ref: a,
|
|
7202
|
+
className: Kr.scene,
|
|
7111
7203
|
inert: !0
|
|
7112
7204
|
}), /* @__PURE__ */ h("div", {
|
|
7113
|
-
ref:
|
|
7114
|
-
className:
|
|
7205
|
+
ref: o,
|
|
7206
|
+
className: Kr.actor,
|
|
7115
7207
|
style: {
|
|
7116
|
-
visibility: !
|
|
7117
|
-
...
|
|
7118
|
-
left:
|
|
7208
|
+
visibility: !_ || p && !n ? "hidden" : void 0,
|
|
7209
|
+
...s && !n ? {
|
|
7210
|
+
left: s.x,
|
|
7119
7211
|
right: "auto",
|
|
7120
|
-
top:
|
|
7121
|
-
width:
|
|
7212
|
+
top: s.y,
|
|
7213
|
+
width: s.width
|
|
7122
7214
|
} : {}
|
|
7123
7215
|
},
|
|
7124
7216
|
children: /* @__PURE__ */ g("svg", {
|
|
@@ -7169,7 +7261,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7169
7261
|
children: /* @__PURE__ */ h("path", { d: "M91 62Q82 29 113 23Q146 17 151 46L150 69L159 76L149 81Q150 95 131 98L99 88Z" })
|
|
7170
7262
|
})
|
|
7171
7263
|
] }), /* @__PURE__ */ g("g", {
|
|
7172
|
-
transform:
|
|
7264
|
+
transform: s?.direction === -1 && !y ? "translate(200 0) scale(-1 1)" : void 0,
|
|
7173
7265
|
children: [
|
|
7174
7266
|
/* @__PURE__ */ h("ellipse", {
|
|
7175
7267
|
cx: "95",
|
|
@@ -7186,21 +7278,21 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7186
7278
|
strokeLinejoin: "round",
|
|
7187
7279
|
children: [
|
|
7188
7280
|
/* @__PURE__ */ g("g", {
|
|
7189
|
-
className:
|
|
7281
|
+
className: Kr.backLeg,
|
|
7190
7282
|
children: [/* @__PURE__ */ h("path", { d: "M91 160L91 189L62 222L56 237L76 242Q82 250 68 251L34 249Q28 246 33 238L44 214L67 166Z" }), /* @__PURE__ */ h("path", {
|
|
7191
7283
|
d: "M65 184L88 189M58 197L79 203M47 213L67 218M42 225L61 230M35 238L58 241",
|
|
7192
7284
|
fill: "none"
|
|
7193
7285
|
})]
|
|
7194
7286
|
}),
|
|
7195
7287
|
/* @__PURE__ */ g("g", {
|
|
7196
|
-
className:
|
|
7288
|
+
className: Kr.frontLeg,
|
|
7197
7289
|
children: [/* @__PURE__ */ h("path", { d: "M99 162L124 163L137 204L123 233L142 239Q153 251 132 251L103 247Q96 244 101 233L112 202L96 181Z" }), /* @__PURE__ */ h("path", {
|
|
7198
7290
|
d: "M104 178L127 179M110 189L131 190M115 201L137 205M110 216L130 222M104 231L124 235M102 241L136 244",
|
|
7199
7291
|
fill: "none"
|
|
7200
7292
|
})]
|
|
7201
7293
|
}),
|
|
7202
7294
|
/* @__PURE__ */ g("g", {
|
|
7203
|
-
className:
|
|
7295
|
+
className: Kr.torso,
|
|
7204
7296
|
children: [
|
|
7205
7297
|
/* @__PURE__ */ h("path", { d: "M76 94Q96 79 121 97L129 166Q108 185 73 167L63 133Z" }),
|
|
7206
7298
|
/* @__PURE__ */ h("g", {
|
|
@@ -7219,7 +7311,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7219
7311
|
opacity: "0.6"
|
|
7220
7312
|
}),
|
|
7221
7313
|
/* @__PURE__ */ g("g", {
|
|
7222
|
-
className:
|
|
7314
|
+
className: Kr.head,
|
|
7223
7315
|
children: [
|
|
7224
7316
|
/* @__PURE__ */ h("path", { d: "M91 62Q82 29 113 23Q146 17 151 46L150 69L159 76L149 81Q150 95 131 98L99 88Z" }),
|
|
7225
7317
|
/* @__PURE__ */ h("g", {
|
|
@@ -7239,7 +7331,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7239
7331
|
fill: `url(#${e}-shadow)`
|
|
7240
7332
|
}),
|
|
7241
7333
|
/* @__PURE__ */ g("g", {
|
|
7242
|
-
className:
|
|
7334
|
+
className: Kr.eyes,
|
|
7243
7335
|
stroke: "none",
|
|
7244
7336
|
children: [
|
|
7245
7337
|
/* @__PURE__ */ h("ellipse", {
|
|
@@ -7281,7 +7373,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7281
7373
|
]
|
|
7282
7374
|
}),
|
|
7283
7375
|
/* @__PURE__ */ h("path", {
|
|
7284
|
-
className:
|
|
7376
|
+
className: Kr.looseLinen,
|
|
7285
7377
|
d: "M72 120Q39 136 35 158L45 164Q46 143 78 134Z"
|
|
7286
7378
|
})
|
|
7287
7379
|
]
|
|
@@ -7301,7 +7393,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7301
7393
|
]
|
|
7302
7394
|
}),
|
|
7303
7395
|
/* @__PURE__ */ g("g", {
|
|
7304
|
-
className:
|
|
7396
|
+
className: Kr.effort,
|
|
7305
7397
|
fill: "none",
|
|
7306
7398
|
stroke: "#d3e8c0",
|
|
7307
7399
|
strokeWidth: "2.3",
|
|
@@ -7313,7 +7405,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7313
7405
|
})]
|
|
7314
7406
|
}),
|
|
7315
7407
|
/* @__PURE__ */ g("g", {
|
|
7316
|
-
className:
|
|
7408
|
+
className: Kr.dust,
|
|
7317
7409
|
fill: "#caba92",
|
|
7318
7410
|
opacity: "0",
|
|
7319
7411
|
children: [
|
|
@@ -7340,7 +7432,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7340
7432
|
})
|
|
7341
7433
|
})]
|
|
7342
7434
|
});
|
|
7343
|
-
},
|
|
7435
|
+
}, Jr = {
|
|
7344
7436
|
scene: "_scene_1errp_2",
|
|
7345
7437
|
portal: "_portal_1errp_10",
|
|
7346
7438
|
"rift-open": "_rift-open_1errp_1",
|
|
@@ -7351,25 +7443,25 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7351
7443
|
"claw-reach": "_claw-reach_1errp_1",
|
|
7352
7444
|
clawFinger: "_clawFinger_1errp_34",
|
|
7353
7445
|
"claw-grip": "_claw-grip_1errp_1"
|
|
7354
|
-
},
|
|
7446
|
+
}, Yr = o(() => {
|
|
7355
7447
|
let e = l(), { isMobile: n, anchors: r } = t(), i = D(), a = d(null), [o, s] = f(null);
|
|
7356
7448
|
return c(() => {
|
|
7357
|
-
let e = i ? [] :
|
|
7358
|
-
if (s(o), !i && a.current) return
|
|
7449
|
+
let e = i ? [] : jr(Et(r)), t = document.documentElement, o = Ar(t.clientWidth, t.clientHeight, e, n);
|
|
7450
|
+
if (s(o), !i && a.current) return Mr(e, a.current, o.center);
|
|
7359
7451
|
}, [
|
|
7360
7452
|
r,
|
|
7361
7453
|
n,
|
|
7362
7454
|
i
|
|
7363
7455
|
]), /* @__PURE__ */ g("div", {
|
|
7364
|
-
className:
|
|
7456
|
+
className: Jr.scene,
|
|
7365
7457
|
"data-halloween-scene": "portal",
|
|
7366
7458
|
"aria-hidden": "true",
|
|
7367
7459
|
children: [/* @__PURE__ */ h("div", {
|
|
7368
7460
|
ref: a,
|
|
7369
|
-
className:
|
|
7461
|
+
className: Jr.scene,
|
|
7370
7462
|
inert: !0
|
|
7371
7463
|
}), o && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ g("svg", {
|
|
7372
|
-
className:
|
|
7464
|
+
className: Jr.portal,
|
|
7373
7465
|
style: {
|
|
7374
7466
|
left: o.center.x - o.size / 2,
|
|
7375
7467
|
top: o.center.y - o.size,
|
|
@@ -7410,7 +7502,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7410
7502
|
fill: "none"
|
|
7411
7503
|
}),
|
|
7412
7504
|
/* @__PURE__ */ g("g", {
|
|
7413
|
-
className:
|
|
7505
|
+
className: Jr.portalEyes,
|
|
7414
7506
|
children: [/* @__PURE__ */ h("path", {
|
|
7415
7507
|
d: "M28 94Q40 87 51 101Q37 109 28 94ZM69 101Q81 87 93 94Q85 109 69 101Z",
|
|
7416
7508
|
fill: "#dbef84"
|
|
@@ -7422,7 +7514,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7422
7514
|
})
|
|
7423
7515
|
]
|
|
7424
7516
|
}), /* @__PURE__ */ g("svg", {
|
|
7425
|
-
className:
|
|
7517
|
+
className: Jr.armCanvas,
|
|
7426
7518
|
viewBox: `0 0 ${Math.max(1, o.width)} ${Math.max(1, o.height)}`,
|
|
7427
7519
|
focusable: "false",
|
|
7428
7520
|
children: [/* @__PURE__ */ h("defs", { children: /* @__PURE__ */ g("linearGradient", {
|
|
@@ -7441,7 +7533,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7441
7533
|
})
|
|
7442
7534
|
]
|
|
7443
7535
|
}) }), /* @__PURE__ */ g("g", {
|
|
7444
|
-
className:
|
|
7536
|
+
className: Jr.portalArm,
|
|
7445
7537
|
style: { transformOrigin: `${o.center.x}px ${o.center.y}px` },
|
|
7446
7538
|
children: [
|
|
7447
7539
|
/* @__PURE__ */ h("path", {
|
|
@@ -7472,7 +7564,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7472
7564
|
5,
|
|
7473
7565
|
19
|
|
7474
7566
|
].map((t, n) => /* @__PURE__ */ g("g", {
|
|
7475
|
-
className:
|
|
7567
|
+
className: Jr.clawFinger,
|
|
7476
7568
|
style: {
|
|
7477
7569
|
transformOrigin: `${t}px -5px`,
|
|
7478
7570
|
animationDelay: `${n * .06}s`
|
|
@@ -7505,7 +7597,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7505
7597
|
})]
|
|
7506
7598
|
})] })]
|
|
7507
7599
|
});
|
|
7508
|
-
}),
|
|
7600
|
+
}), Xr = 12e3, Zr = .25, Qr = .56, $r = .77, ei = .95, ti = (e, t, n) => Math.max(t, Math.min(n, e)), ni = (e, t) => e + Math.random() * (t - e), ri = (e) => {
|
|
7509
7601
|
let t = [], n = e.facing, r = e.frames[0].rotation;
|
|
7510
7602
|
for (let i = 0; i < e.frames.length - 1; i++) {
|
|
7511
7603
|
let a = e.frames[i], o = e.frames[i + 1], s = o.x - a.x, c = o.y - a.y, l = s !== 0 || c !== 0, u = o.flying ? s === 0 ? n : Math.sign(s) : e.facing, d = o.flying ? l ? u * Math.atan2(c, Math.abs(s)) * 180 / Math.PI : r : a.rotation;
|
|
@@ -7532,22 +7624,22 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7532
7624
|
facing: n,
|
|
7533
7625
|
rotation: r
|
|
7534
7626
|
}), t;
|
|
7535
|
-
},
|
|
7627
|
+
}, ii = (e, t) => {
|
|
7536
7628
|
let n = (t - .5) * e.width, r = Math.sin(Math.PI * t) * e.bend, i = e.rotation * Math.PI / 180;
|
|
7537
7629
|
return {
|
|
7538
7630
|
x: e.x + n * Math.cos(i) - r * Math.sin(i),
|
|
7539
7631
|
y: e.y + n * Math.sin(i) + r * Math.cos(i)
|
|
7540
7632
|
};
|
|
7541
|
-
},
|
|
7633
|
+
}, ai = (e, t) => {
|
|
7542
7634
|
let n = Math.max(1, e.width), r = Math.max(1, e.height), i = t ? 54 : 66, a = t ? 5 : 8, o = e.pumpkin?.rect, s = e.composer?.rect, c = {
|
|
7543
|
-
x:
|
|
7544
|
-
y:
|
|
7635
|
+
x: ti(o ? o.left + o.width * .5 : s ? s.right - 48 : n * .7, 54, Math.max(54, n - 54)),
|
|
7636
|
+
y: ti(o ? o.top + o.height * .3 : s ? s.top : r * .72, 66, Math.max(66, r - 55))
|
|
7545
7637
|
}, l = e.conversation?.rect, u = l?.width ?? Math.min(180, (s?.width ?? n) * .64), d = l?.height ?? 8, f = {
|
|
7546
7638
|
x: l ? l.left + l.width / 2 : s ? s.left + s.width / 2 : n / 2,
|
|
7547
7639
|
y: l ? l.top + l.height / 2 : s?.top ?? r * .4
|
|
7548
7640
|
}, p = Math.min(u, Math.max(80, n - i * 2 - 40)) / 1.12, m = p * .56 + i + 8, h = {
|
|
7549
|
-
x:
|
|
7550
|
-
y:
|
|
7641
|
+
x: ti(f.x + 24, m, Math.max(m, n - m)),
|
|
7642
|
+
y: ti(f.y - 12, 76, Math.max(76, r - 120))
|
|
7551
7643
|
}, g = {
|
|
7552
7644
|
offset: 0,
|
|
7553
7645
|
...f,
|
|
@@ -7560,11 +7652,11 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7560
7652
|
g,
|
|
7561
7653
|
{
|
|
7562
7654
|
...g,
|
|
7563
|
-
offset:
|
|
7655
|
+
offset: Zr - .001
|
|
7564
7656
|
},
|
|
7565
7657
|
{
|
|
7566
7658
|
...g,
|
|
7567
|
-
offset:
|
|
7659
|
+
offset: Zr,
|
|
7568
7660
|
opacity: 1
|
|
7569
7661
|
},
|
|
7570
7662
|
{
|
|
@@ -7615,7 +7707,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7615
7707
|
...h,
|
|
7616
7708
|
width: p * 1.12,
|
|
7617
7709
|
bend: 22,
|
|
7618
|
-
offset:
|
|
7710
|
+
offset: Qr,
|
|
7619
7711
|
opacity: 1
|
|
7620
7712
|
},
|
|
7621
7713
|
{
|
|
@@ -7656,7 +7748,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7656
7748
|
width: 65,
|
|
7657
7749
|
height: d * .45,
|
|
7658
7750
|
rotation: 6,
|
|
7659
|
-
offset:
|
|
7751
|
+
offset: $r,
|
|
7660
7752
|
opacity: 1
|
|
7661
7753
|
},
|
|
7662
7754
|
{
|
|
@@ -7681,7 +7773,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7681
7773
|
},
|
|
7682
7774
|
{
|
|
7683
7775
|
...g,
|
|
7684
|
-
offset:
|
|
7776
|
+
offset: ei,
|
|
7685
7777
|
opacity: 1
|
|
7686
7778
|
},
|
|
7687
7779
|
{
|
|
@@ -7693,7 +7785,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7693
7785
|
offset: 1
|
|
7694
7786
|
}
|
|
7695
7787
|
], v = [0, 1].map((e) => {
|
|
7696
|
-
let t =
|
|
7788
|
+
let t = ii(_[2], e), r = e ? -1 : 1, a = [
|
|
7697
7789
|
{
|
|
7698
7790
|
offset: 0,
|
|
7699
7791
|
x: e ? n + i : -i,
|
|
@@ -7722,7 +7814,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7722
7814
|
},
|
|
7723
7815
|
..._.filter((t) => t.offset >= .25 && t.offset <= (e ? .74 : .56)).map((t) => ({
|
|
7724
7816
|
offset: t.offset,
|
|
7725
|
-
...
|
|
7817
|
+
...ii(t, e),
|
|
7726
7818
|
rotation: t.rotation,
|
|
7727
7819
|
scale: 1,
|
|
7728
7820
|
opacity: 1,
|
|
@@ -7739,7 +7831,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7739
7831
|
}, {
|
|
7740
7832
|
...o,
|
|
7741
7833
|
offset: .87,
|
|
7742
|
-
x:
|
|
7834
|
+
x: ti(c.x + (e ? -100 : 95), 30, n - 30),
|
|
7743
7835
|
y: Math.max(25, c.y - 120),
|
|
7744
7836
|
rotation: e ? -15 : 18,
|
|
7745
7837
|
flying: !0
|
|
@@ -7791,11 +7883,11 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7791
7883
|
y.every((e) => Math.hypot(e.x + e.width / 2 - r.x - r.width / 2, e.y + e.height / 2 - r.y - r.height / 2) >= 96) && y.push(r);
|
|
7792
7884
|
}
|
|
7793
7885
|
for (let e = 2; e < a; e++) {
|
|
7794
|
-
let t = e - 2, o = y[t], s = .13 + t * .058 +
|
|
7886
|
+
let t = e - 2, o = y[t], s = .13 + t * .058 + ni(0, .008), l = s + .19, u = o ? o.x + o.width / 2 : n * (t + 1) / (a - 1), d = u > c.x ? -1 : 1, f = {
|
|
7795
7887
|
x: o ? o.x + (d < 0 ? o.width : 0) : u,
|
|
7796
7888
|
y: o ? o.y + o.height / 2 : r * .22
|
|
7797
7889
|
}, p = {
|
|
7798
|
-
x:
|
|
7890
|
+
x: ti(f.x, i, n - i),
|
|
7799
7891
|
y: Math.max(30, f.y - i * .52)
|
|
7800
7892
|
}, m = t % 3 == 0 ? {
|
|
7801
7893
|
x: -i * 2,
|
|
@@ -7818,7 +7910,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7818
7910
|
y: c.y - 5
|
|
7819
7911
|
};
|
|
7820
7912
|
v.push({
|
|
7821
|
-
size: i *
|
|
7913
|
+
size: i * ni(.82, .94),
|
|
7822
7914
|
facing: d,
|
|
7823
7915
|
pickup: o ? s : void 0,
|
|
7824
7916
|
delivery: o ? l : void 0,
|
|
@@ -7879,7 +7971,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7879
7971
|
].filter((e) => !!e).map(({ element: e }) => e))],
|
|
7880
7972
|
active: !!(e.composer || e.conversation || e.pumpkin)
|
|
7881
7973
|
};
|
|
7882
|
-
},
|
|
7974
|
+
}, oi = "[hidden], [inert], [aria-hidden=\"true\"], [data-celebration-snapshot]", si = /^(auto|scroll|hidden|clip)$/, ci = /^(transparent|rgba\(0, 0, 0, 0\))$/, li = "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%)", ui = (e) => {
|
|
7883
7975
|
let { composer: t = "" } = e, { clientWidth: n, clientHeight: r } = document.documentElement, i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = (e) => {
|
|
7884
7976
|
let t = i.get(e);
|
|
7885
7977
|
return t || (t = e.getBoundingClientRect(), i.set(e, t)), t;
|
|
@@ -7887,15 +7979,15 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7887
7979
|
let t = a.get(e);
|
|
7888
7980
|
return t || (t = getComputedStyle(e), a.set(e, t)), t;
|
|
7889
7981
|
}, c = (e) => {
|
|
7890
|
-
if (!e || e.closest(
|
|
7982
|
+
if (!e || e.closest(oi)) return null;
|
|
7891
7983
|
let t = o(e);
|
|
7892
7984
|
if (t.width < 24 || t.height < 12 || t.left < 0 || t.top < 0 || t.right > n || t.bottom > r) return null;
|
|
7893
7985
|
let i = e, a = "";
|
|
7894
7986
|
for (let e = 0; i && e < 24; e++, i = i.parentElement) {
|
|
7895
7987
|
let e = s(i);
|
|
7896
7988
|
if (e.display === "none" || e.visibility === "hidden" || e.visibility === "collapse" || e.opacity === "0" || e.contentVisibility === "hidden") return null;
|
|
7897
|
-
!a && e.backgroundColor && !
|
|
7898
|
-
let n =
|
|
7989
|
+
!a && e.backgroundColor && !ci.test(e.backgroundColor) && (a = e.backgroundColor);
|
|
7990
|
+
let n = si.test(e.overflowX || e.overflow), r = si.test(e.overflowY || e.overflow);
|
|
7899
7991
|
if (n || r) {
|
|
7900
7992
|
let e = o(i);
|
|
7901
7993
|
if (n && (t.left < e.left || t.right > e.right) || r && (t.top < e.top || t.bottom > e.bottom)) return null;
|
|
@@ -7906,7 +7998,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7906
7998
|
return {
|
|
7907
7999
|
element: e,
|
|
7908
8000
|
rect: t,
|
|
7909
|
-
color: c.borderTopWidth !== "0px" && c.borderTopColor && !
|
|
8001
|
+
color: c.borderTopWidth !== "0px" && c.borderTopColor && !ci.test(c.borderTopColor) ? c.borderTopColor : "#a999c2",
|
|
7910
8002
|
background: a || "var(--bg-primary, #141220)"
|
|
7911
8003
|
};
|
|
7912
8004
|
}, l = (e, t) => {
|
|
@@ -7960,10 +8052,10 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7960
8052
|
fragments: b,
|
|
7961
8053
|
edges: [u, ...f].filter((e) => !!e).slice(0, 3)
|
|
7962
8054
|
};
|
|
7963
|
-
},
|
|
7964
|
-
let r =
|
|
8055
|
+
}, di = (e, t, n) => {
|
|
8056
|
+
let r = ii(e, t / 5), i = ii(e, (t + 1) / 5), a = e.rotation * Math.PI / 180, o = (i.x - r.x) / (n.width / 5), s = (i.y - r.y) / (n.width / 5), c = -Math.sin(a) * e.height / n.height, l = Math.cos(a) * e.height / n.height;
|
|
7965
8057
|
return `matrix(${o}, ${s}, ${c}, ${l}, ${r.x - n.left - c * n.height / 2}, ${r.y - n.top - l * n.height / 2})`;
|
|
7966
|
-
},
|
|
8058
|
+
}, fi = (e, t) => {
|
|
7967
8059
|
let n = /* @__PURE__ */ new Map();
|
|
7968
8060
|
for (let r of [e, ...e.querySelectorAll("*")]) if (r.id) {
|
|
7969
8061
|
let e = `${r.id}-raven-${t}`;
|
|
@@ -7982,7 +8074,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
7982
8074
|
let i = r.replace(/url\(\s*(['"]?)#([^\s)'"]+)\1\s*\)/g, (e, t, r) => n.has(r) ? `url(#${n.get(r)})` : e);
|
|
7983
8075
|
t.setAttribute(e, i);
|
|
7984
8076
|
}
|
|
7985
|
-
},
|
|
8077
|
+
}, pi = (e, { host: t, copies: n, birds: r, nest: i, fallback: a }, o) => {
|
|
7986
8078
|
if (!e.active || typeof t.animate != "function") return () => void 0;
|
|
7987
8079
|
let s = [], c = typeof document.timeline?.currentTime == "number" ? document.timeline.currentTime : void 0, l = !1, u = [], d, f = [
|
|
7988
8080
|
"pointerdown",
|
|
@@ -8004,7 +8096,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8004
8096
|
easing: "ease-in-out",
|
|
8005
8097
|
...e
|
|
8006
8098
|
})), {
|
|
8007
|
-
duration:
|
|
8099
|
+
duration: Xr,
|
|
8008
8100
|
fill: "both"
|
|
8009
8101
|
});
|
|
8010
8102
|
s.push(n), c !== void 0 && (n.startTime = c);
|
|
@@ -8024,7 +8116,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8024
8116
|
transformOrigin: "0 0"
|
|
8025
8117
|
});
|
|
8026
8118
|
let o = r.cloneNode(!0);
|
|
8027
|
-
|
|
8119
|
+
fi(o, i), Object.assign(o.style, {
|
|
8028
8120
|
position: "absolute",
|
|
8029
8121
|
left: "0",
|
|
8030
8122
|
right: "auto",
|
|
@@ -8032,7 +8124,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8032
8124
|
margin: "0"
|
|
8033
8125
|
}), o.style.transform = `translateX(${-i * n.width / 5}px)`, a.appendChild(o), t.appendChild(a), _(a, e.cargo.map((e) => ({
|
|
8034
8126
|
offset: e.offset,
|
|
8035
|
-
transform:
|
|
8127
|
+
transform: di(e, i, n)
|
|
8036
8128
|
})));
|
|
8037
8129
|
}
|
|
8038
8130
|
}
|
|
@@ -8047,15 +8139,15 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8047
8139
|
transform: `translate(${e.x}px, ${e.y}px) scale(${e.scale})`
|
|
8048
8140
|
})));
|
|
8049
8141
|
let i = n.querySelector("[data-raven-orientation]");
|
|
8050
|
-
i && _(i,
|
|
8142
|
+
i && _(i, ri(e).map(({ offset: e, facing: t, rotation: n }) => ({
|
|
8051
8143
|
offset: e,
|
|
8052
8144
|
transform: `rotate(${n}deg) scaleX(${t})`
|
|
8053
8145
|
})));
|
|
8054
8146
|
let a = n.querySelector("[data-raven-wing]");
|
|
8055
8147
|
if (a) {
|
|
8056
8148
|
let t = [];
|
|
8057
|
-
for (let n = 0; n <=
|
|
8058
|
-
let r = n /
|
|
8149
|
+
for (let n = 0; n <= Xr; n += 140) {
|
|
8150
|
+
let r = n / Xr, i = (e.frames.find((e) => e.offset >= r) ?? e.frames[e.frames.length - 1]).flying;
|
|
8059
8151
|
t.push({
|
|
8060
8152
|
offset: r,
|
|
8061
8153
|
transform: i ? `rotate(${t.length % 2 ? -42 : 36}deg) scaleY(${t.length % 2 ? .58 : 1})` : "rotate(-8deg) scaleY(0.32)"
|
|
@@ -8121,7 +8213,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8121
8213
|
opacity: 1
|
|
8122
8214
|
},
|
|
8123
8215
|
{
|
|
8124
|
-
offset:
|
|
8216
|
+
offset: ei,
|
|
8125
8217
|
opacity: 0
|
|
8126
8218
|
},
|
|
8127
8219
|
{
|
|
@@ -8208,10 +8300,10 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8208
8300
|
}] : [];
|
|
8209
8301
|
});
|
|
8210
8302
|
if (u.push(A(s.map(({ fragment: e }) => e), t, {
|
|
8211
|
-
durationMs:
|
|
8212
|
-
hideAt:
|
|
8303
|
+
durationMs: Xr,
|
|
8304
|
+
hideAt: Zr,
|
|
8213
8305
|
hideOriginal: !1,
|
|
8214
|
-
restoreAt:
|
|
8306
|
+
restoreAt: ei,
|
|
8215
8307
|
startTime: c,
|
|
8216
8308
|
onStop: p,
|
|
8217
8309
|
decorateCopy: (e, t) => {
|
|
@@ -8221,7 +8313,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8221
8313
|
top: `${-a.height / 2}px`,
|
|
8222
8314
|
width: `${a.width}px`,
|
|
8223
8315
|
height: `${a.height}px`,
|
|
8224
|
-
clipPath:
|
|
8316
|
+
clipPath: li,
|
|
8225
8317
|
transformOrigin: `${n.facing < 0 ? "100%" : "0%"} 50%`
|
|
8226
8318
|
}), Object.assign(c.style, {
|
|
8227
8319
|
position: "absolute",
|
|
@@ -8283,9 +8375,9 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8283
8375
|
if (e.conversation) {
|
|
8284
8376
|
let t = e.conversation;
|
|
8285
8377
|
u.push(A([t], n, {
|
|
8286
|
-
durationMs:
|
|
8287
|
-
hideAt:
|
|
8288
|
-
restoreAt:
|
|
8378
|
+
durationMs: Xr,
|
|
8379
|
+
hideAt: Zr,
|
|
8380
|
+
restoreAt: ei,
|
|
8289
8381
|
startTime: c,
|
|
8290
8382
|
onStop: p,
|
|
8291
8383
|
decorateCopy: (e) => v(e, t.rect),
|
|
@@ -8328,12 +8420,12 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8328
8420
|
"aria-expanded",
|
|
8329
8421
|
"href"
|
|
8330
8422
|
]
|
|
8331
|
-
}), f.forEach((e) => document.addEventListener(e, m, !0)), window.addEventListener("resize", p), d = setTimeout(p,
|
|
8423
|
+
}), f.forEach((e) => document.addEventListener(e, m, !0)), window.addEventListener("resize", p), d = setTimeout(p, Xr);
|
|
8332
8424
|
} catch {
|
|
8333
8425
|
p();
|
|
8334
8426
|
}
|
|
8335
8427
|
return p;
|
|
8336
|
-
},
|
|
8428
|
+
}, mi = () => {
|
|
8337
8429
|
let e = l();
|
|
8338
8430
|
return /* @__PURE__ */ g("svg", {
|
|
8339
8431
|
viewBox: "0 0 120 110",
|
|
@@ -8472,7 +8564,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8472
8564
|
})
|
|
8473
8565
|
]
|
|
8474
8566
|
});
|
|
8475
|
-
},
|
|
8567
|
+
}, hi = {
|
|
8476
8568
|
scene: "_scene_1vn5x_2",
|
|
8477
8569
|
bird: "_bird_1vn5x_11",
|
|
8478
8570
|
nest: "_nest_1vn5x_12",
|
|
@@ -8481,7 +8573,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8481
8573
|
edgeGap: "_edgeGap_1vn5x_15",
|
|
8482
8574
|
art: "_art_1vn5x_28",
|
|
8483
8575
|
ribbon: "_ribbon_1vn5x_46"
|
|
8484
|
-
},
|
|
8576
|
+
}, gi = 22, _i = () => {
|
|
8485
8577
|
let { isMobile: e, anchors: n } = t(), r = d(e), i = D(), a = d(null), o = d(null), s = d(null), l = d(null), u = d([]), [p, m] = f(null), _ = p?.isMobile === e && p.reducedMotion === i ? p.plan : null, [v, y] = f(!1);
|
|
8486
8578
|
c(() => {
|
|
8487
8579
|
e !== r.current && y(!0);
|
|
@@ -8489,7 +8581,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8489
8581
|
let t = !1;
|
|
8490
8582
|
return (async () => {
|
|
8491
8583
|
await Promise.resolve(), t || m({
|
|
8492
|
-
plan:
|
|
8584
|
+
plan: ai(ui(n), e),
|
|
8493
8585
|
isMobile: e,
|
|
8494
8586
|
reducedMotion: i
|
|
8495
8587
|
});
|
|
@@ -8502,7 +8594,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8502
8594
|
i
|
|
8503
8595
|
]), c(() => {
|
|
8504
8596
|
if (v || !_ || i || !a.current || !o.current || !s.current) return;
|
|
8505
|
-
let e = !1, t =
|
|
8597
|
+
let e = !1, t = pi(_, {
|
|
8506
8598
|
host: a.current,
|
|
8507
8599
|
copies: o.current,
|
|
8508
8600
|
nest: s.current,
|
|
@@ -8522,7 +8614,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8522
8614
|
let x = e ? 5 : 8;
|
|
8523
8615
|
return /* @__PURE__ */ g("div", {
|
|
8524
8616
|
ref: a,
|
|
8525
|
-
className:
|
|
8617
|
+
className: hi.scene,
|
|
8526
8618
|
"aria-hidden": "true",
|
|
8527
8619
|
"data-halloween-scene": b.Ravens,
|
|
8528
8620
|
"data-ready": !!_,
|
|
@@ -8530,29 +8622,29 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8530
8622
|
style: { visibility: v && !i ? "hidden" : void 0 },
|
|
8531
8623
|
children: [
|
|
8532
8624
|
_?.materials.map((e, t) => /* @__PURE__ */ h("span", {
|
|
8533
|
-
className:
|
|
8625
|
+
className: hi.edgeGap,
|
|
8534
8626
|
"data-raven-edge-gap": t,
|
|
8535
8627
|
style: {
|
|
8536
8628
|
left: e.x,
|
|
8537
8629
|
top: e.y,
|
|
8538
8630
|
width: e.width,
|
|
8539
8631
|
height: e.height,
|
|
8540
|
-
clipPath: e.fragment ?
|
|
8632
|
+
clipPath: e.fragment ? li : void 0,
|
|
8541
8633
|
background: e.background
|
|
8542
8634
|
}
|
|
8543
8635
|
}, t)),
|
|
8544
8636
|
/* @__PURE__ */ h("div", {
|
|
8545
8637
|
ref: o,
|
|
8546
|
-
className:
|
|
8638
|
+
className: hi.copies
|
|
8547
8639
|
}),
|
|
8548
8640
|
/* @__PURE__ */ h("div", {
|
|
8549
8641
|
ref: l,
|
|
8550
|
-
className:
|
|
8642
|
+
className: hi.fallback,
|
|
8551
8643
|
inert: !0
|
|
8552
8644
|
}),
|
|
8553
8645
|
/* @__PURE__ */ h("div", {
|
|
8554
8646
|
ref: s,
|
|
8555
|
-
className:
|
|
8647
|
+
className: hi.nest,
|
|
8556
8648
|
"data-raven-nest": "true",
|
|
8557
8649
|
style: {
|
|
8558
8650
|
left: _?.nest.x ?? 0,
|
|
@@ -8564,7 +8656,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8564
8656
|
viewBox: "0 0 120 58",
|
|
8565
8657
|
focusable: "false",
|
|
8566
8658
|
"aria-hidden": "true",
|
|
8567
|
-
children: Array.from({ length:
|
|
8659
|
+
children: Array.from({ length: gi }, (e, t) => {
|
|
8568
8660
|
let n = Math.floor(t / 2), r = 8 + t * 13 % 21, i = 96 + t * 7 % 18, a = 17 + n * 2.1;
|
|
8569
8661
|
return /* @__PURE__ */ h("path", {
|
|
8570
8662
|
"data-raven-twig": t,
|
|
@@ -8583,7 +8675,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8583
8675
|
ref: (e) => {
|
|
8584
8676
|
u.current[t] = e;
|
|
8585
8677
|
},
|
|
8586
|
-
className:
|
|
8678
|
+
className: hi.bird,
|
|
8587
8679
|
"data-raven-bird": t,
|
|
8588
8680
|
style: {
|
|
8589
8681
|
"--raven-size": `${n?.size ?? 56}px`,
|
|
@@ -8592,16 +8684,16 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8592
8684
|
},
|
|
8593
8685
|
children: [
|
|
8594
8686
|
/* @__PURE__ */ h("div", {
|
|
8595
|
-
className:
|
|
8687
|
+
className: hi.art,
|
|
8596
8688
|
"data-raven-orientation": "true",
|
|
8597
|
-
children: /* @__PURE__ */ h(
|
|
8689
|
+
children: /* @__PURE__ */ h(mi, {})
|
|
8598
8690
|
}),
|
|
8599
8691
|
/* @__PURE__ */ h("div", {
|
|
8600
8692
|
"data-raven-fragment-slot": "true",
|
|
8601
8693
|
inert: !0
|
|
8602
8694
|
}),
|
|
8603
8695
|
n?.material !== void 0 && _?.materials[n.material] && !_.materials[n.material].fragment && /* @__PURE__ */ g("svg", {
|
|
8604
|
-
className:
|
|
8696
|
+
className: hi.ribbon,
|
|
8605
8697
|
style: { transform: `scaleX(${n.facing})` },
|
|
8606
8698
|
"data-raven-carried-strip": "true",
|
|
8607
8699
|
width: _.materials[n.material].width,
|
|
@@ -8628,42 +8720,42 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8628
8720
|
})
|
|
8629
8721
|
]
|
|
8630
8722
|
});
|
|
8631
|
-
},
|
|
8723
|
+
}, vi = ({ scene: e, children: n }) => {
|
|
8632
8724
|
let r = D(), { anchors: i } = t(), a = d(null), o = d(null), [s] = f(() => ({
|
|
8633
8725
|
"--place-x": .12 + Math.random() * .76,
|
|
8634
8726
|
"--place-y": .12 + Math.random() * .6
|
|
8635
8727
|
}));
|
|
8636
8728
|
return c(() => {
|
|
8637
8729
|
if (r || !a.current || !o.current || typeof o.current.animate != "function") return;
|
|
8638
|
-
let t =
|
|
8639
|
-
return
|
|
8730
|
+
let t = Nr(i), n = a.current.getBoundingClientRect();
|
|
8731
|
+
return Fr(e, t, o.current, n);
|
|
8640
8732
|
}, [
|
|
8641
8733
|
i,
|
|
8642
8734
|
e,
|
|
8643
8735
|
r
|
|
8644
8736
|
]), /* @__PURE__ */ g("div", {
|
|
8645
|
-
className:
|
|
8737
|
+
className: Lr.scene,
|
|
8646
8738
|
"data-halloween-scene": e,
|
|
8647
8739
|
"aria-hidden": "true",
|
|
8648
8740
|
children: [/* @__PURE__ */ h("div", {
|
|
8649
8741
|
ref: o,
|
|
8650
|
-
className:
|
|
8742
|
+
className: Lr.scene,
|
|
8651
8743
|
inert: !0
|
|
8652
8744
|
}), /* @__PURE__ */ h("svg", {
|
|
8653
8745
|
ref: a,
|
|
8654
|
-
className:
|
|
8746
|
+
className: Lr.stage,
|
|
8655
8747
|
style: s,
|
|
8656
8748
|
viewBox: "0 0 320 320",
|
|
8657
8749
|
focusable: "false",
|
|
8658
8750
|
children: /* @__PURE__ */ h("g", {
|
|
8659
|
-
className:
|
|
8751
|
+
className: Lr.art,
|
|
8660
8752
|
children: n
|
|
8661
8753
|
})
|
|
8662
8754
|
})]
|
|
8663
8755
|
});
|
|
8664
|
-
},
|
|
8756
|
+
}, yi = () => {
|
|
8665
8757
|
let e = l();
|
|
8666
|
-
return /* @__PURE__ */ g(
|
|
8758
|
+
return /* @__PURE__ */ g(vi, {
|
|
8667
8759
|
scene: b.Cauldron,
|
|
8668
8760
|
children: [
|
|
8669
8761
|
/* @__PURE__ */ g("defs", { children: [
|
|
@@ -8726,7 +8818,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8726
8818
|
})
|
|
8727
8819
|
] }),
|
|
8728
8820
|
/* @__PURE__ */ g("g", {
|
|
8729
|
-
className:
|
|
8821
|
+
className: Lr.pot,
|
|
8730
8822
|
children: [
|
|
8731
8823
|
/* @__PURE__ */ h("ellipse", {
|
|
8732
8824
|
cx: "160",
|
|
@@ -8800,7 +8892,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8800
8892
|
cy: 180 + t % 2 * 4,
|
|
8801
8893
|
rx: "8",
|
|
8802
8894
|
ry: "4",
|
|
8803
|
-
className:
|
|
8895
|
+
className: Lr.simmer,
|
|
8804
8896
|
style: { "--delay": `${t * .35}s` },
|
|
8805
8897
|
fill: "#e2ffaf"
|
|
8806
8898
|
}, e))
|
|
@@ -8809,7 +8901,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8809
8901
|
Array.from({ length: 8 }, (t, n) => /* @__PURE__ */ h("g", {
|
|
8810
8902
|
transform: `translate(${112 + n * 31 % 98} 177)`,
|
|
8811
8903
|
children: /* @__PURE__ */ g("g", {
|
|
8812
|
-
className:
|
|
8904
|
+
className: Lr.bubble,
|
|
8813
8905
|
style: {
|
|
8814
8906
|
"--delay": `${.6 + n * .53}s`,
|
|
8815
8907
|
"--drift": `${(n % 2 ? 1 : -1) * (12 + n * 3)}px`
|
|
@@ -8829,7 +8921,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8829
8921
|
fill: "none"
|
|
8830
8922
|
}),
|
|
8831
8923
|
/* @__PURE__ */ g("g", {
|
|
8832
|
-
className:
|
|
8924
|
+
className: Lr.bubbleFace,
|
|
8833
8925
|
fill: "#254834",
|
|
8834
8926
|
children: [
|
|
8835
8927
|
/* @__PURE__ */ h("ellipse", {
|
|
@@ -8862,7 +8954,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8862
8954
|
].map((e) => /* @__PURE__ */ h("g", {
|
|
8863
8955
|
transform: `translate(${124 + e * 36} 229)`,
|
|
8864
8956
|
children: /* @__PURE__ */ g("g", {
|
|
8865
|
-
className:
|
|
8957
|
+
className: Lr.smoke,
|
|
8866
8958
|
style: { "--delay": `${5.9 + e * .12}s` },
|
|
8867
8959
|
fill: "#a6c2a1",
|
|
8868
8960
|
opacity: "0.5",
|
|
@@ -8883,7 +8975,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8883
8975
|
}, e))
|
|
8884
8976
|
]
|
|
8885
8977
|
});
|
|
8886
|
-
},
|
|
8978
|
+
}, bi = "celebration-skeleton-word", xi = /([^\s\p{P}]+)[\s\p{P}]*$/u, Si = "[hidden], [inert], [aria-hidden=\"true\"], [data-celebration-snapshot]", Ci = (e) => {
|
|
8887
8979
|
let { clientWidth: t, clientHeight: n } = document.documentElement, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = (e) => {
|
|
8888
8980
|
let t = r.get(e) ?? e.getBoundingClientRect();
|
|
8889
8981
|
return r.set(e, t), t;
|
|
@@ -8891,7 +8983,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8891
8983
|
let t = i.get(e) ?? getComputedStyle(e);
|
|
8892
8984
|
return i.set(e, t), t;
|
|
8893
8985
|
}, s = (e, r = 120, i = 24) => {
|
|
8894
|
-
if (e.closest(
|
|
8986
|
+
if (e.closest(Si)) return;
|
|
8895
8987
|
let s = a(e);
|
|
8896
8988
|
if (s.width < r || s.height < i || s.left < 0 || s.right > t || s.top < 0 || s.bottom > n) return;
|
|
8897
8989
|
let c = e;
|
|
@@ -8933,7 +9025,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8933
9025
|
let a = document.createTreeWalker(r, NodeFilter.SHOW_TEXT), l = [];
|
|
8934
9026
|
for (; l.length < 16 && a.nextNode();) l.push(a.currentNode);
|
|
8935
9027
|
let u, d = null;
|
|
8936
|
-
for (let e = l.length - 1; e >= 0 && !d; e--) u = l[e], d =
|
|
9028
|
+
for (let e = l.length - 1; e >= 0 && !d; e--) u = l[e], d = xi.exec(u.data);
|
|
8937
9029
|
if (!u || !d) return;
|
|
8938
9030
|
let f = document.createRange();
|
|
8939
9031
|
f.setStart(u, d.index), f.setEnd(u, d.index + d[1].length);
|
|
@@ -8959,9 +9051,9 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
8959
9051
|
})() : void 0,
|
|
8960
9052
|
rtl: o(c?.element ?? document.documentElement).direction === "rtl"
|
|
8961
9053
|
};
|
|
8962
|
-
},
|
|
9054
|
+
}, wi = (e, t, n) => {
|
|
8963
9055
|
let r = [], i = !1, a, o, s, { anchors: c, word: l } = e, u = () => {
|
|
8964
|
-
clearTimeout(o), clearTimeout(s), l && CSS.highlights?.get("celebration-skeleton-word") && CSS.highlights.delete(
|
|
9056
|
+
clearTimeout(o), clearTimeout(s), l && CSS.highlights?.get("celebration-skeleton-word") && CSS.highlights.delete(bi);
|
|
8965
9057
|
}, d = [
|
|
8966
9058
|
"pointerdown",
|
|
8967
9059
|
"keydown",
|
|
@@ -9027,7 +9119,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9027
9119
|
"disabled",
|
|
9028
9120
|
"aria-expanded"
|
|
9029
9121
|
]
|
|
9030
|
-
}), c.forEach(({ element: e }) => g.observe(e, { box: "border-box" })), d.forEach((e) => document.addEventListener(e, p, !0)), window.addEventListener("resize", f), a = setTimeout(f, z), l && (o = setTimeout(() => CSS.highlights.set(
|
|
9122
|
+
}), c.forEach(({ element: e }) => g.observe(e, { box: "border-box" })), d.forEach((e) => document.addEventListener(e, p, !0)), window.addEventListener("resize", f), a = setTimeout(f, z), l && (o = setTimeout(() => CSS.highlights.set(bi, new Highlight(l.target.range)), l.hideAt), s = setTimeout(u, l.restoreAt));
|
|
9031
9123
|
} catch {
|
|
9032
9124
|
f();
|
|
9033
9125
|
}
|
|
@@ -9047,16 +9139,16 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9047
9139
|
teeth: "_teeth_amnh5_68",
|
|
9048
9140
|
bow: "_bow_amnh5_75",
|
|
9049
9141
|
ledge: "_ledge_amnh5_88"
|
|
9050
|
-
},
|
|
9142
|
+
}, Ti = (e, t, n) => ({
|
|
9051
9143
|
"data-skeleton-part": e,
|
|
9052
9144
|
style: { transformOrigin: `${t}px ${n}px` }
|
|
9053
|
-
}),
|
|
9145
|
+
}), Ei = ({ d: e }) => /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("path", {
|
|
9054
9146
|
className: Z.limbEdge,
|
|
9055
9147
|
d: e
|
|
9056
9148
|
}), /* @__PURE__ */ h("path", {
|
|
9057
9149
|
className: Z.limb,
|
|
9058
9150
|
d: e
|
|
9059
|
-
})] }),
|
|
9151
|
+
})] }), Di = ({ gradient: e }) => /* @__PURE__ */ g(m, { children: [
|
|
9060
9152
|
/* @__PURE__ */ h("path", {
|
|
9061
9153
|
className: Z.bone,
|
|
9062
9154
|
fill: `url(#${e})`,
|
|
@@ -9087,7 +9179,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9087
9179
|
})
|
|
9088
9180
|
]
|
|
9089
9181
|
})
|
|
9090
|
-
] }),
|
|
9182
|
+
] }), Oi = ({ partner: e, headless: t }) => {
|
|
9091
9183
|
let n = l();
|
|
9092
9184
|
return /* @__PURE__ */ g("svg", {
|
|
9093
9185
|
viewBox: "0 0 100 170",
|
|
@@ -9113,8 +9205,8 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9113
9205
|
]
|
|
9114
9206
|
}) }),
|
|
9115
9207
|
/* @__PURE__ */ g("g", {
|
|
9116
|
-
...
|
|
9117
|
-
children: [/* @__PURE__ */ h(
|
|
9208
|
+
...Ti(se.LegLeft, 42, 116),
|
|
9209
|
+
children: [/* @__PURE__ */ h(Ei, { d: "M42 116L37 137L33 156L21 158" }), /* @__PURE__ */ h("circle", {
|
|
9118
9210
|
className: Z.joint,
|
|
9119
9211
|
cx: "37",
|
|
9120
9212
|
cy: "137",
|
|
@@ -9122,8 +9214,8 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9122
9214
|
})]
|
|
9123
9215
|
}),
|
|
9124
9216
|
/* @__PURE__ */ g("g", {
|
|
9125
|
-
...
|
|
9126
|
-
children: [/* @__PURE__ */ h(
|
|
9217
|
+
...Ti(se.LegRight, 58, 116),
|
|
9218
|
+
children: [/* @__PURE__ */ h(Ei, { d: "M58 116L63 137L67 156L79 158" }), /* @__PURE__ */ h("circle", {
|
|
9127
9219
|
className: Z.joint,
|
|
9128
9220
|
cx: "63",
|
|
9129
9221
|
cy: "137",
|
|
@@ -9131,9 +9223,9 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9131
9223
|
})]
|
|
9132
9224
|
}),
|
|
9133
9225
|
/* @__PURE__ */ g("g", {
|
|
9134
|
-
...
|
|
9226
|
+
...Ti(se.Body, 50, 158),
|
|
9135
9227
|
children: [
|
|
9136
|
-
/* @__PURE__ */ h(
|
|
9228
|
+
/* @__PURE__ */ h(Ei, { d: "M50 46V110" }),
|
|
9137
9229
|
/* @__PURE__ */ h("path", {
|
|
9138
9230
|
className: Z.bone,
|
|
9139
9231
|
fill: `url(#${n})`,
|
|
@@ -9148,14 +9240,14 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9148
9240
|
fill: `url(#${n})`,
|
|
9149
9241
|
d: "M36 104Q50 98 64 104L61 118Q50 112 39 118Z"
|
|
9150
9242
|
}),
|
|
9151
|
-
/* @__PURE__ */ h(
|
|
9243
|
+
/* @__PURE__ */ h(Ei, { d: "M34 56Q50 50 66 56" }),
|
|
9152
9244
|
e && /* @__PURE__ */ h("path", {
|
|
9153
9245
|
className: Z.bow,
|
|
9154
9246
|
d: "M50 49L41 44V54ZM50 49L59 44V54Z"
|
|
9155
9247
|
}),
|
|
9156
9248
|
/* @__PURE__ */ g("g", {
|
|
9157
|
-
...
|
|
9158
|
-
children: [/* @__PURE__ */ h(
|
|
9249
|
+
...Ti(se.ArmLeft, 36, 58),
|
|
9250
|
+
children: [/* @__PURE__ */ h(Ei, { d: "M36 58L27 78L22 96M22 96L18 102M22 96L22 103M22 96L26 101" }), /* @__PURE__ */ h("circle", {
|
|
9159
9251
|
className: Z.joint,
|
|
9160
9252
|
cx: "27",
|
|
9161
9253
|
cy: "78",
|
|
@@ -9163,8 +9255,8 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9163
9255
|
})]
|
|
9164
9256
|
}),
|
|
9165
9257
|
/* @__PURE__ */ g("g", {
|
|
9166
|
-
...
|
|
9167
|
-
children: [/* @__PURE__ */ h(
|
|
9258
|
+
...Ti(se.ArmRight, 64, 58),
|
|
9259
|
+
children: [/* @__PURE__ */ h(Ei, { d: "M64 58L73 78L78 96M78 96L82 102M78 96L78 103M78 96L74 101" }), /* @__PURE__ */ h("circle", {
|
|
9168
9260
|
className: Z.joint,
|
|
9169
9261
|
cx: "73",
|
|
9170
9262
|
cy: "78",
|
|
@@ -9172,15 +9264,15 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9172
9264
|
})]
|
|
9173
9265
|
}),
|
|
9174
9266
|
/* @__PURE__ */ h("g", {
|
|
9175
|
-
...
|
|
9267
|
+
...Ti(se.Skull, 50, 46),
|
|
9176
9268
|
opacity: t ? 0 : void 0,
|
|
9177
|
-
children: /* @__PURE__ */ h(
|
|
9269
|
+
children: /* @__PURE__ */ h(Di, { gradient: n })
|
|
9178
9270
|
})
|
|
9179
9271
|
]
|
|
9180
9272
|
})
|
|
9181
9273
|
]
|
|
9182
9274
|
});
|
|
9183
|
-
},
|
|
9275
|
+
}, ki = () => {
|
|
9184
9276
|
let e = l();
|
|
9185
9277
|
return /* @__PURE__ */ g("svg", {
|
|
9186
9278
|
viewBox: "28 3 44 44",
|
|
@@ -9203,9 +9295,9 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9203
9295
|
className: Z.boneDark
|
|
9204
9296
|
})
|
|
9205
9297
|
]
|
|
9206
|
-
}) }), /* @__PURE__ */ h(
|
|
9298
|
+
}) }), /* @__PURE__ */ h(Di, { gradient: e })]
|
|
9207
9299
|
});
|
|
9208
|
-
},
|
|
9300
|
+
}, Ai = () => {
|
|
9209
9301
|
let { anchors: e, isMobile: n } = t(), r = D(), [i] = f(() => ({
|
|
9210
9302
|
anchors: e,
|
|
9211
9303
|
isMobile: n,
|
|
@@ -9231,7 +9323,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9231
9323
|
"visibilitychange"
|
|
9232
9324
|
];
|
|
9233
9325
|
return i.forEach((e) => window.addEventListener(e, r, !0)), (async () => {
|
|
9234
|
-
await Promise.resolve(), !t && !y.current && p(De(
|
|
9326
|
+
await Promise.resolve(), !t && !y.current && p(De(Ci(e), n));
|
|
9235
9327
|
})(), () => {
|
|
9236
9328
|
t = !0, i.forEach((e) => window.removeEventListener(e, r, !0));
|
|
9237
9329
|
};
|
|
@@ -9244,7 +9336,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9244
9336
|
S
|
|
9245
9337
|
]), c(() => {
|
|
9246
9338
|
if (!u || !x.current || C || o || _ || y.current) return;
|
|
9247
|
-
let e = !1, t =
|
|
9339
|
+
let e = !1, t = wi(u, x.current, () => {
|
|
9248
9340
|
e || S();
|
|
9249
9341
|
});
|
|
9250
9342
|
return () => {
|
|
@@ -9269,7 +9361,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9269
9361
|
children: /* @__PURE__ */ h("div", {
|
|
9270
9362
|
className: "size-full",
|
|
9271
9363
|
"data-skeleton-facing": !0,
|
|
9272
|
-
children: /* @__PURE__ */ h(
|
|
9364
|
+
children: /* @__PURE__ */ h(Oi, { partner: n })
|
|
9273
9365
|
})
|
|
9274
9366
|
});
|
|
9275
9367
|
return /* @__PURE__ */ h("div", {
|
|
@@ -9291,15 +9383,15 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9291
9383
|
children: [
|
|
9292
9384
|
/* @__PURE__ */ h("div", {
|
|
9293
9385
|
className: "h-[122px] w-[72px]",
|
|
9294
|
-
children: /* @__PURE__ */ h(
|
|
9386
|
+
children: /* @__PURE__ */ h(Oi, { headless: !0 })
|
|
9295
9387
|
}),
|
|
9296
9388
|
/* @__PURE__ */ h("div", {
|
|
9297
9389
|
className: "mb-[66px] size-8",
|
|
9298
|
-
children: /* @__PURE__ */ h(
|
|
9390
|
+
children: /* @__PURE__ */ h(ki, {})
|
|
9299
9391
|
}),
|
|
9300
9392
|
/* @__PURE__ */ h("div", {
|
|
9301
9393
|
className: "h-[113px] w-[66px] -scale-x-100",
|
|
9302
|
-
children: /* @__PURE__ */ h(
|
|
9394
|
+
children: /* @__PURE__ */ h(Oi, { partner: !0 })
|
|
9303
9395
|
})
|
|
9304
9396
|
]
|
|
9305
9397
|
}) : u && /* @__PURE__ */ g(m, { children: [
|
|
@@ -9346,12 +9438,12 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9346
9438
|
children: /* @__PURE__ */ h("div", {
|
|
9347
9439
|
className: "size-full",
|
|
9348
9440
|
"data-skeleton-turn": !0,
|
|
9349
|
-
children: /* @__PURE__ */ h(
|
|
9441
|
+
children: /* @__PURE__ */ h(ki, {})
|
|
9350
9442
|
})
|
|
9351
9443
|
})
|
|
9352
9444
|
] })
|
|
9353
9445
|
});
|
|
9354
|
-
},
|
|
9446
|
+
}, ji = (e) => {
|
|
9355
9447
|
if (!e || e.contains(document.activeElement) || e.closest("[inert], [aria-hidden=\"true\"]") || e.matches("[aria-expanded=\"true\"], :disabled") || e.querySelector("[aria-expanded=\"true\"]") || e.getElementsByTagName("*").length >= 1500) return null;
|
|
9356
9448
|
let t = e.getBoundingClientRect(), n = document.documentElement;
|
|
9357
9449
|
if (t.width < 12 || t.height < 12 || t.left < 0 || t.top < 60 || t.right > n.clientWidth || t.bottom > n.clientHeight) return null;
|
|
@@ -9367,21 +9459,21 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9367
9459
|
element: e,
|
|
9368
9460
|
rect: t
|
|
9369
9461
|
};
|
|
9370
|
-
},
|
|
9462
|
+
}, Mi = (e) => {
|
|
9371
9463
|
let t = [...e];
|
|
9372
9464
|
for (let e = t.length - 1; e > 0; e--) {
|
|
9373
9465
|
let n = Math.floor(Math.random() * (e + 1));
|
|
9374
9466
|
[t[e], t[n]] = [t[n], t[e]];
|
|
9375
9467
|
}
|
|
9376
9468
|
return t;
|
|
9377
|
-
},
|
|
9469
|
+
}, Ni = (e) => {
|
|
9378
9470
|
let t = (e) => e ? `.${e}` : null, n = rt(t(e.composer)).find((e) => !e.closest("[inert], [aria-hidden=\"true\"]")), r = [
|
|
9379
9471
|
it(n, e)?.querySelector("h1") ?? null,
|
|
9380
9472
|
(n && rt(t(e.composerModelSelector), n)[0]) ?? null,
|
|
9381
9473
|
(n && rt(t(e.composerAddCluster), n)[0]) ?? null
|
|
9382
|
-
].map(
|
|
9474
|
+
].map(ji).filter((e) => e !== null), i = Mi(Et(e)), a = [...Mi(r).slice(0, i.length ? 2 : 3), ...i.slice(0, r.length ? 1 : 3)];
|
|
9383
9475
|
return a.filter((e, t) => !a.slice(0, t).some((t) => t.element.contains(e.element) || e.element.contains(t.element)));
|
|
9384
|
-
},
|
|
9476
|
+
}, Pi = 11e3, Fi = (e, t, n, r) => t.map((t, i) => {
|
|
9385
9477
|
let a = t.style, o = i % 3 == 0 ? e[i / 3] : void 0, s = 32 * Number.parseFloat(a["--spider-scale"]), c = o ? o.rect.top - 8 : r * Number.parseFloat(a["--spider-depth"]) / 100, l = Number.parseFloat(a["--spider-delay"]) / 15;
|
|
9386
9478
|
return {
|
|
9387
9479
|
x: o ? o.rect.left + o.rect.width / 2 : n * Number.parseFloat(a["--spider-x"]) / 100,
|
|
@@ -9392,7 +9484,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9392
9484
|
exitDistance: Math.max(c + s + 30, o ? o.rect.bottom + 40 : 0),
|
|
9393
9485
|
target: o
|
|
9394
9486
|
};
|
|
9395
|
-
}),
|
|
9487
|
+
}), Ii = (e, t, n, r) => {
|
|
9396
9488
|
let i = e.flatMap((e, n) => e.target ? [{
|
|
9397
9489
|
plan: e,
|
|
9398
9490
|
actor: t[n],
|
|
@@ -9409,7 +9501,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9409
9501
|
...e,
|
|
9410
9502
|
easing: "ease-in-out"
|
|
9411
9503
|
})), {
|
|
9412
|
-
duration:
|
|
9504
|
+
duration: Pi,
|
|
9413
9505
|
fill: "both"
|
|
9414
9506
|
});
|
|
9415
9507
|
a.push(n), o !== void 0 && (n.startTime = o);
|
|
@@ -9490,7 +9582,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9490
9582
|
return s(), () => void 0;
|
|
9491
9583
|
}
|
|
9492
9584
|
return A(i.map(({ target: e }) => e), n, {
|
|
9493
|
-
durationMs:
|
|
9585
|
+
durationMs: Pi,
|
|
9494
9586
|
hideAt: (e) => i[e].plan.grab + .1,
|
|
9495
9587
|
restoreAt: .94,
|
|
9496
9588
|
startTime: o,
|
|
@@ -9519,7 +9611,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9519
9611
|
],
|
|
9520
9612
|
onStop: s
|
|
9521
9613
|
});
|
|
9522
|
-
},
|
|
9614
|
+
}, Li = [
|
|
9523
9615
|
"M27 25Q21 22 18 14L9 5L6 7",
|
|
9524
9616
|
"M26 28L15 22Q11 19 4 19L2 23",
|
|
9525
9617
|
"M26 31L15 32L5 39L4 44",
|
|
@@ -9528,7 +9620,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9528
9620
|
"M38 28L49 22Q53 19 60 19L62 23",
|
|
9529
9621
|
"M38 31L49 32L59 39L60 44",
|
|
9530
9622
|
"M36 34L43 41L47 53L50 56"
|
|
9531
|
-
],
|
|
9623
|
+
], Ri = o(({ className: e, ...t }) => {
|
|
9532
9624
|
let n = l();
|
|
9533
9625
|
return /* @__PURE__ */ g("svg", {
|
|
9534
9626
|
...t,
|
|
@@ -9577,7 +9669,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9577
9669
|
fill: "none",
|
|
9578
9670
|
strokeLinecap: "round",
|
|
9579
9671
|
strokeLinejoin: "round",
|
|
9580
|
-
children: [
|
|
9672
|
+
children: [Li.map((e, t) => /* @__PURE__ */ h("path", {
|
|
9581
9673
|
"data-spider-leg": t,
|
|
9582
9674
|
d: e,
|
|
9583
9675
|
stroke: `url(#${n}-legs)`,
|
|
@@ -9690,7 +9782,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9690
9782
|
})
|
|
9691
9783
|
]
|
|
9692
9784
|
});
|
|
9693
|
-
}),
|
|
9785
|
+
}), zi = {
|
|
9694
9786
|
scene: "_scene_1crkq_1",
|
|
9695
9787
|
carrier: "_carrier_1crkq_2",
|
|
9696
9788
|
cargo: "_cargo_1crkq_3",
|
|
@@ -9699,7 +9791,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9699
9791
|
thread: "_thread_1crkq_33",
|
|
9700
9792
|
spider: "_spider_1crkq_40",
|
|
9701
9793
|
body: "_body_1crkq_44"
|
|
9702
|
-
},
|
|
9794
|
+
}, Bi = ({ plan: e }) => {
|
|
9703
9795
|
if (!e.target) return null;
|
|
9704
9796
|
let { left: t, top: n, width: r, height: i } = e.target.rect, a = {
|
|
9705
9797
|
x: e.x,
|
|
@@ -9757,7 +9849,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9757
9849
|
strokeLinecap: "round",
|
|
9758
9850
|
strokeLinejoin: "round",
|
|
9759
9851
|
children: s.map((e, t) => /* @__PURE__ */ h("path", {
|
|
9760
|
-
className:
|
|
9852
|
+
className: zi.silk,
|
|
9761
9853
|
"data-silk-strand": t,
|
|
9762
9854
|
pathLength: "1",
|
|
9763
9855
|
d: e.d,
|
|
@@ -9765,17 +9857,17 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9765
9857
|
strokeOpacity: e.opacity
|
|
9766
9858
|
}, t))
|
|
9767
9859
|
});
|
|
9768
|
-
},
|
|
9860
|
+
}, Vi = () => {
|
|
9769
9861
|
let e = D(), { anchors: n } = t(), [r] = f(pt), [i, a] = f(null), [o, s] = f(!1), l = d(null), u = d([]), p = d([]), m = d([]);
|
|
9770
9862
|
return c(() => {
|
|
9771
9863
|
if (a(null), e || typeof l.current?.animate != "function") return;
|
|
9772
9864
|
let t = !1;
|
|
9773
9865
|
return (async () => {
|
|
9774
9866
|
if (await Promise.resolve(), t) return;
|
|
9775
|
-
let e =
|
|
9867
|
+
let e = Ni(n);
|
|
9776
9868
|
if (!e.length) return;
|
|
9777
9869
|
let i = document.documentElement;
|
|
9778
|
-
a(
|
|
9870
|
+
a(Fi(e, r, i.clientWidth, i.clientHeight));
|
|
9779
9871
|
})(), () => {
|
|
9780
9872
|
t = !0;
|
|
9781
9873
|
};
|
|
@@ -9795,10 +9887,10 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9795
9887
|
web: m.current[e]
|
|
9796
9888
|
});
|
|
9797
9889
|
}
|
|
9798
|
-
return
|
|
9890
|
+
return Ii(i, t, l.current, () => s(!0));
|
|
9799
9891
|
}, [i, e]), /* @__PURE__ */ h("div", {
|
|
9800
9892
|
ref: l,
|
|
9801
|
-
className:
|
|
9893
|
+
className: zi.scene,
|
|
9802
9894
|
"data-halloween-scene": b.Spiders,
|
|
9803
9895
|
"aria-hidden": "true",
|
|
9804
9896
|
children: !i || e ? r.map((e, t) => /* @__PURE__ */ h("span", {
|
|
@@ -9806,51 +9898,51 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9806
9898
|
style: e.style,
|
|
9807
9899
|
children: /* @__PURE__ */ g("span", {
|
|
9808
9900
|
className: q.spiderSwing,
|
|
9809
|
-
children: [/* @__PURE__ */ h("span", { className: `${q.spiderThread} bg-control-neutral-default` }), /* @__PURE__ */ h(
|
|
9901
|
+
children: [/* @__PURE__ */ h("span", { className: `${q.spiderThread} bg-control-neutral-default` }), /* @__PURE__ */ h(Ri, { className: q.spiderBody })]
|
|
9810
9902
|
})
|
|
9811
9903
|
}, t)) : i.map((e, t) => /* @__PURE__ */ g("div", {
|
|
9812
9904
|
ref: (e) => {
|
|
9813
9905
|
u.current[t] = e;
|
|
9814
9906
|
},
|
|
9815
|
-
className:
|
|
9907
|
+
className: zi.carrier,
|
|
9816
9908
|
"data-spider-carrier": t,
|
|
9817
9909
|
style: { visibility: o ? "hidden" : void 0 },
|
|
9818
9910
|
children: [
|
|
9819
9911
|
/* @__PURE__ */ h("span", {
|
|
9820
|
-
className:
|
|
9912
|
+
className: zi.thread,
|
|
9821
9913
|
style: {
|
|
9822
9914
|
left: e.x,
|
|
9823
9915
|
height: Math.max(0, e.depth - e.size)
|
|
9824
9916
|
}
|
|
9825
9917
|
}),
|
|
9826
9918
|
/* @__PURE__ */ h("div", {
|
|
9827
|
-
className:
|
|
9919
|
+
className: zi.spider,
|
|
9828
9920
|
style: {
|
|
9829
9921
|
left: e.x - e.size * 64 / 120,
|
|
9830
9922
|
top: e.depth - e.size,
|
|
9831
9923
|
width: e.size * 64 / 60,
|
|
9832
9924
|
height: e.size
|
|
9833
9925
|
},
|
|
9834
|
-
children: /* @__PURE__ */ h(
|
|
9926
|
+
children: /* @__PURE__ */ h(Ri, { className: zi.body })
|
|
9835
9927
|
}),
|
|
9836
9928
|
/* @__PURE__ */ h("div", {
|
|
9837
9929
|
ref: (e) => {
|
|
9838
9930
|
p.current[t] = e;
|
|
9839
9931
|
},
|
|
9840
|
-
className:
|
|
9932
|
+
className: zi.cargo
|
|
9841
9933
|
}),
|
|
9842
9934
|
e.target && /* @__PURE__ */ h("svg", {
|
|
9843
9935
|
ref: (e) => {
|
|
9844
9936
|
m.current[t] = e;
|
|
9845
9937
|
},
|
|
9846
|
-
className:
|
|
9938
|
+
className: zi.web,
|
|
9847
9939
|
focusable: "false",
|
|
9848
|
-
children: /* @__PURE__ */ h(
|
|
9940
|
+
children: /* @__PURE__ */ h(Bi, { plan: e })
|
|
9849
9941
|
})
|
|
9850
9942
|
]
|
|
9851
9943
|
}, t))
|
|
9852
9944
|
});
|
|
9853
|
-
},
|
|
9945
|
+
}, Hi = 11e3, Ui = () => {
|
|
9854
9946
|
let e = document.querySelector("[data-halloween-pumpkin-anchor] svg");
|
|
9855
9947
|
if (!e) return null;
|
|
9856
9948
|
let t = e.getBoundingClientRect(), n = document.documentElement;
|
|
@@ -9860,7 +9952,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9860
9952
|
if (e.display === "none" || e.visibility === "hidden" || e.opacity === "0") return null;
|
|
9861
9953
|
}
|
|
9862
9954
|
return e;
|
|
9863
|
-
},
|
|
9955
|
+
}, Wi = (e, t, n) => {
|
|
9864
9956
|
if (!e.width || !e.height) return null;
|
|
9865
9957
|
let r = !!n && n.left + n.width / 2 < t / 2, i = e.width / 640, a = n && {
|
|
9866
9958
|
left: n.left - e.left,
|
|
@@ -9878,7 +9970,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9878
9970
|
exit: r ? t - e.left + 32 : -e.right - 32,
|
|
9879
9971
|
passenger: a
|
|
9880
9972
|
};
|
|
9881
|
-
},
|
|
9973
|
+
}, Gi = (e, t, n, r) => {
|
|
9882
9974
|
if (typeof t.carrier.animate != "function") return () => void 0;
|
|
9883
9975
|
let i = t.carrier.getAnimations?.({ subtree: !0 }) ?? [], a = typeof document.timeline?.currentTime == "number" ? document.timeline.currentTime : void 0, o = !1, s = 0, c, l, u = [
|
|
9884
9976
|
"pointerdown",
|
|
@@ -9890,10 +9982,10 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
9890
9982
|
"scroll",
|
|
9891
9983
|
"visibilitychange"
|
|
9892
9984
|
], d = () => {
|
|
9893
|
-
o || (o = !0, window.clearTimeout(s), c?.
|
|
9985
|
+
o || (o = !0, window.clearTimeout(s), c?.(), u.forEach((e) => document.removeEventListener(e, d, !0)), window.removeEventListener("resize", d), i.forEach((e) => e.cancel()), l && (l.pause(), l.removeAttribute("src"), l.load()), n());
|
|
9894
9986
|
}, f = (e, t) => {
|
|
9895
9987
|
let n = e.animate(t, {
|
|
9896
|
-
duration:
|
|
9988
|
+
duration: Hi,
|
|
9897
9989
|
fill: "both"
|
|
9898
9990
|
});
|
|
9899
9991
|
i.push(n), a !== void 0 && (n.startTime = a);
|
|
@@ -10024,13 +10116,8 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10024
10116
|
} catch {}
|
|
10025
10117
|
return a !== void 0 && t.carrier.getAnimations?.({ subtree: !0 }).forEach((e) => {
|
|
10026
10118
|
e.startTime = a;
|
|
10027
|
-
}), u.forEach((e) => document.addEventListener(e, d, !0)), window.addEventListener("resize", d), t.source && (c =
|
|
10028
|
-
|
|
10029
|
-
}), c.observe(document.body, {
|
|
10030
|
-
childList: !0,
|
|
10031
|
-
subtree: !0
|
|
10032
|
-
})), s = window.setTimeout(d, Ii), d;
|
|
10033
|
-
}, Bi = o(() => {
|
|
10119
|
+
}), u.forEach((e) => document.addEventListener(e, d, !0)), window.addEventListener("resize", d), t.source && (c = kr([t.source], d, [t.carrier])), s = window.setTimeout(d, Hi), d;
|
|
10120
|
+
}, Ki = o(() => {
|
|
10034
10121
|
let e = l();
|
|
10035
10122
|
return /* @__PURE__ */ g("svg", {
|
|
10036
10123
|
viewBox: "0 0 160 160",
|
|
@@ -10209,12 +10296,12 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10209
10296
|
})
|
|
10210
10297
|
]
|
|
10211
10298
|
});
|
|
10212
|
-
}),
|
|
10299
|
+
}), qi = {
|
|
10213
10300
|
scene: "_scene_11wzq_1",
|
|
10214
10301
|
train: "_train_11wzq_9",
|
|
10215
10302
|
artwork: "_artwork_11wzq_21",
|
|
10216
10303
|
passenger: "_passenger_11wzq_26"
|
|
10217
|
-
},
|
|
10304
|
+
}, Ji = {
|
|
10218
10305
|
artwork: "_artwork_1knkp_1",
|
|
10219
10306
|
wheel: "_wheel_1knkp_10",
|
|
10220
10307
|
"wheel-turn": "_wheel-turn_1knkp_1",
|
|
@@ -10222,16 +10309,16 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10222
10309
|
"smoke-drift": "_smoke-drift_1knkp_1",
|
|
10223
10310
|
plumeFlow: "_plumeFlow_1knkp_21",
|
|
10224
10311
|
"smoke-departure": "_smoke-departure_1knkp_1"
|
|
10225
|
-
},
|
|
10312
|
+
}, Yi = ({ x: e, y: t, driftX: n, driftY: r, size: i, id: a, delay: o = 0 }) => /* @__PURE__ */ h("g", {
|
|
10226
10313
|
transform: `translate(${e} ${t})`,
|
|
10227
10314
|
children: /* @__PURE__ */ h("g", {
|
|
10228
|
-
className:
|
|
10315
|
+
className: Ji.plumeFlow,
|
|
10229
10316
|
children: [
|
|
10230
10317
|
0,
|
|
10231
10318
|
1,
|
|
10232
10319
|
2
|
|
10233
10320
|
].map((e) => /* @__PURE__ */ g("g", {
|
|
10234
|
-
className:
|
|
10321
|
+
className: Ji.smoke,
|
|
10235
10322
|
style: {
|
|
10236
10323
|
"--smoke-x": `${n}px`,
|
|
10237
10324
|
"--smoke-y": `${r}px`,
|
|
@@ -10259,7 +10346,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10259
10346
|
]
|
|
10260
10347
|
}, e))
|
|
10261
10348
|
})
|
|
10262
|
-
}),
|
|
10349
|
+
}), Xi = ({ x: e }) => /* @__PURE__ */ g("g", {
|
|
10263
10350
|
transform: `translate(${e} 130)`,
|
|
10264
10351
|
children: [/* @__PURE__ */ h("circle", {
|
|
10265
10352
|
r: "16",
|
|
@@ -10267,7 +10354,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10267
10354
|
stroke: "#ae9e75",
|
|
10268
10355
|
strokeWidth: "2"
|
|
10269
10356
|
}), /* @__PURE__ */ g("g", {
|
|
10270
|
-
className:
|
|
10357
|
+
className: Ji.wheel,
|
|
10271
10358
|
children: [
|
|
10272
10359
|
/* @__PURE__ */ h("circle", {
|
|
10273
10360
|
r: "12",
|
|
@@ -10293,7 +10380,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10293
10380
|
})
|
|
10294
10381
|
]
|
|
10295
10382
|
})]
|
|
10296
|
-
}),
|
|
10383
|
+
}), Zi = ({ x: e, id: t }) => /* @__PURE__ */ g(m, { children: [
|
|
10297
10384
|
/* @__PURE__ */ h("path", {
|
|
10298
10385
|
d: `M${e - 27} 104H${e + 65}L${e + 58} 124H${e - 21}Z`,
|
|
10299
10386
|
fill: `url(#${t}-metal)`,
|
|
@@ -10323,12 +10410,12 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10323
10410
|
r: "1.4",
|
|
10324
10411
|
fill: "#e5d3a1"
|
|
10325
10412
|
}, e)),
|
|
10326
|
-
/* @__PURE__ */ h(
|
|
10327
|
-
/* @__PURE__ */ h(
|
|
10328
|
-
] }),
|
|
10413
|
+
/* @__PURE__ */ h(Xi, { x: e - 4 }),
|
|
10414
|
+
/* @__PURE__ */ h(Xi, { x: e + 45 })
|
|
10415
|
+
] }), Qi = ({ foreground: e = !1 }) => {
|
|
10329
10416
|
let t = l();
|
|
10330
10417
|
return /* @__PURE__ */ g("svg", {
|
|
10331
|
-
className:
|
|
10418
|
+
className: Ji.artwork,
|
|
10332
10419
|
viewBox: "0 0 640 170",
|
|
10333
10420
|
"aria-hidden": "true",
|
|
10334
10421
|
focusable: "false",
|
|
@@ -10478,11 +10565,11 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10478
10565
|
stroke: "#958773",
|
|
10479
10566
|
strokeWidth: "4"
|
|
10480
10567
|
}),
|
|
10481
|
-
/* @__PURE__ */ h(
|
|
10568
|
+
/* @__PURE__ */ h(Zi, {
|
|
10482
10569
|
x: 525,
|
|
10483
10570
|
id: t
|
|
10484
10571
|
}),
|
|
10485
|
-
/* @__PURE__ */ h(
|
|
10572
|
+
/* @__PURE__ */ h(Yi, {
|
|
10486
10573
|
id: t,
|
|
10487
10574
|
x: 592,
|
|
10488
10575
|
y: 116,
|
|
@@ -10492,7 +10579,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10492
10579
|
delay: .35
|
|
10493
10580
|
})
|
|
10494
10581
|
] }) : /* @__PURE__ */ g(m, { children: [
|
|
10495
|
-
/* @__PURE__ */ h(
|
|
10582
|
+
/* @__PURE__ */ h(Yi, {
|
|
10496
10583
|
id: t,
|
|
10497
10584
|
x: 92,
|
|
10498
10585
|
y: 61,
|
|
@@ -10500,7 +10587,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10500
10587
|
driftY: -104,
|
|
10501
10588
|
size: 1.25
|
|
10502
10589
|
}),
|
|
10503
|
-
/* @__PURE__ */ h(
|
|
10590
|
+
/* @__PURE__ */ h(Yi, {
|
|
10504
10591
|
id: t,
|
|
10505
10592
|
x: 234,
|
|
10506
10593
|
y: 109,
|
|
@@ -10665,7 +10752,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10665
10752
|
d: `M${e + 1} 79L${e + 11} 83L${e} 87ZM${e + 27} 83L${e + 37} 79L${e + 38} 87ZM${e + 1} 93L${e + 12} 97L${e + 18} 94L${e + 25} 98L${e + 37} 92Q${e + 20} 115 ${e + 1} 93Z`,
|
|
10666
10753
|
fill: "#ffdc86"
|
|
10667
10754
|
}),
|
|
10668
|
-
/* @__PURE__ */ h(
|
|
10755
|
+
/* @__PURE__ */ h(Zi, {
|
|
10669
10756
|
x: e,
|
|
10670
10757
|
id: t
|
|
10671
10758
|
})
|
|
@@ -10675,7 +10762,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10675
10762
|
78,
|
|
10676
10763
|
139,
|
|
10677
10764
|
201
|
|
10678
|
-
].map((e) => /* @__PURE__ */ h(
|
|
10765
|
+
].map((e) => /* @__PURE__ */ h(Xi, { x: e }, e)),
|
|
10679
10766
|
/* @__PURE__ */ h("path", {
|
|
10680
10767
|
d: "M78 131L139 126L201 131",
|
|
10681
10768
|
fill: "none",
|
|
@@ -10683,7 +10770,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10683
10770
|
strokeWidth: "3",
|
|
10684
10771
|
strokeLinecap: "round"
|
|
10685
10772
|
}),
|
|
10686
|
-
/* @__PURE__ */ h(
|
|
10773
|
+
/* @__PURE__ */ h(Yi, {
|
|
10687
10774
|
id: t,
|
|
10688
10775
|
x: 62,
|
|
10689
10776
|
y: 122,
|
|
@@ -10692,7 +10779,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10692
10779
|
size: .65,
|
|
10693
10780
|
delay: .3
|
|
10694
10781
|
}),
|
|
10695
|
-
/* @__PURE__ */ h(
|
|
10782
|
+
/* @__PURE__ */ h(Yi, {
|
|
10696
10783
|
id: t,
|
|
10697
10784
|
x: 213,
|
|
10698
10785
|
y: 126,
|
|
@@ -10701,7 +10788,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10701
10788
|
size: .53,
|
|
10702
10789
|
delay: .7
|
|
10703
10790
|
}),
|
|
10704
|
-
/* @__PURE__ */ h(
|
|
10791
|
+
/* @__PURE__ */ h(Yi, {
|
|
10705
10792
|
id: t,
|
|
10706
10793
|
x: 373,
|
|
10707
10794
|
y: 118,
|
|
@@ -10712,12 +10799,12 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10712
10799
|
})
|
|
10713
10800
|
] })]
|
|
10714
10801
|
});
|
|
10715
|
-
},
|
|
10802
|
+
}, $i = ({ soundtrackUrl: e }) => {
|
|
10716
10803
|
let t = D(), n = d(null), r = d(null), i = d(null), [a, o] = f(null), [s, l] = f(!1), [u, p] = f(!1);
|
|
10717
10804
|
c(() => {
|
|
10718
|
-
o(null), p(!0), !(t || !n.current || typeof n.current.animate != "function") && (i.current =
|
|
10805
|
+
o(null), p(!0), !(t || !n.current || typeof n.current.animate != "function") && (i.current = Ui(), o(Wi(n.current.getBoundingClientRect(), document.documentElement.clientWidth, i.current?.getBoundingClientRect())));
|
|
10719
10806
|
}, [t]), c(() => {
|
|
10720
|
-
if (l(!1), !(t || !a || !n.current || !r.current)) return
|
|
10807
|
+
if (l(!1), !(t || !a || !n.current || !r.current)) return Gi(a, {
|
|
10721
10808
|
carrier: n.current,
|
|
10722
10809
|
passenger: r.current,
|
|
10723
10810
|
source: i.current
|
|
@@ -10729,23 +10816,23 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10729
10816
|
]);
|
|
10730
10817
|
let m = a?.passenger;
|
|
10731
10818
|
return /* @__PURE__ */ h("div", {
|
|
10732
|
-
className:
|
|
10819
|
+
className: qi.scene,
|
|
10733
10820
|
"data-halloween-scene": "train",
|
|
10734
10821
|
"aria-hidden": "true",
|
|
10735
10822
|
children: /* @__PURE__ */ g("div", {
|
|
10736
10823
|
ref: n,
|
|
10737
|
-
className:
|
|
10824
|
+
className: qi.train,
|
|
10738
10825
|
"data-train-carrier": "true",
|
|
10739
10826
|
style: { visibility: !u || s && !t ? "hidden" : void 0 },
|
|
10740
10827
|
children: [
|
|
10741
10828
|
/* @__PURE__ */ h("div", {
|
|
10742
|
-
className:
|
|
10829
|
+
className: qi.artwork,
|
|
10743
10830
|
style: { transform: a?.mirrored ? "scaleX(-1)" : void 0 },
|
|
10744
|
-
children: /* @__PURE__ */ h(
|
|
10831
|
+
children: /* @__PURE__ */ h(Qi, {})
|
|
10745
10832
|
}),
|
|
10746
10833
|
/* @__PURE__ */ h("div", {
|
|
10747
10834
|
ref: r,
|
|
10748
|
-
className:
|
|
10835
|
+
className: qi.passenger,
|
|
10749
10836
|
"data-train-passenger": "true",
|
|
10750
10837
|
style: m ? {
|
|
10751
10838
|
left: m.left,
|
|
@@ -10753,26 +10840,26 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10753
10840
|
width: m.width,
|
|
10754
10841
|
height: m.height
|
|
10755
10842
|
} : void 0,
|
|
10756
|
-
children: /* @__PURE__ */ h(
|
|
10843
|
+
children: /* @__PURE__ */ h(Ki, {})
|
|
10757
10844
|
}),
|
|
10758
10845
|
/* @__PURE__ */ h("div", {
|
|
10759
|
-
className:
|
|
10846
|
+
className: qi.artwork,
|
|
10760
10847
|
style: { transform: a?.mirrored ? "scaleX(-1)" : void 0 },
|
|
10761
|
-
children: /* @__PURE__ */ h(
|
|
10848
|
+
children: /* @__PURE__ */ h(Qi, { foreground: !0 })
|
|
10762
10849
|
})
|
|
10763
10850
|
]
|
|
10764
10851
|
})
|
|
10765
10852
|
});
|
|
10766
|
-
},
|
|
10853
|
+
}, ea = 13700, ta = 11200, na = 1e3 / 30, ra = (e) => Math.max(0, Math.min(1, e)), ia = (e, t, n) => ra((e - t) / n), aa = (e, t, n) => ({
|
|
10767
10854
|
x: e.x + (t.x - e.x) * n,
|
|
10768
10855
|
y: e.y + (t.y - e.y) * n
|
|
10769
|
-
}),
|
|
10770
|
-
let n =
|
|
10856
|
+
}), oa = (e, t) => {
|
|
10857
|
+
let n = ra(t) * (e.length - 1), r = Math.min(Math.floor(n), e.length - 2), i = e[r], a = e[r + 1];
|
|
10771
10858
|
return {
|
|
10772
|
-
|
|
10859
|
+
...aa(i, a, n - r),
|
|
10773
10860
|
angle: Math.atan2(a.y - i.y, a.x - i.x)
|
|
10774
10861
|
};
|
|
10775
|
-
},
|
|
10862
|
+
}, sa = (e) => {
|
|
10776
10863
|
let t = document.createElement("canvas");
|
|
10777
10864
|
t.width = 96, t.height = 96;
|
|
10778
10865
|
let n = t.getContext("2d");
|
|
@@ -10786,19 +10873,19 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10786
10873
|
r.addColorStop(0, "#837789"), r.addColorStop(.4, "#413447"), r.addColorStop(1, "#100c19"), n.fillStyle = r, n.strokeStyle = "#ad9aab", n.lineWidth = .7, n.beginPath(), n.ellipse(32, 38, 11, 15, 0, 0, Math.PI * 2), n.fill(), n.stroke(), n.fillStyle = "#b85e39", n.beginPath(), n.moveTo(28, 33), n.lineTo(36, 33), n.lineTo(30, 44), n.lineTo(35, 44), n.closePath(), n.fill(), n.fillStyle = r, n.beginPath(), n.ellipse(32, 24, 9, 8, 0, 0, Math.PI * 2), n.fill(), n.stroke();
|
|
10787
10874
|
for (let e of [28.5, 35.5]) n.fillStyle = "#ffc36d", n.beginPath(), n.ellipse(e, 22, 2.8, 3.3, 0, 0, Math.PI * 2), n.fill(), n.fillStyle = "#201225", n.beginPath(), n.ellipse(e, 21.6, 1.1, 1.8, 0, 0, Math.PI * 2), n.fill(), n.fillStyle = "#fff2d2", n.fillRect(e - 1, 20, 1, 1);
|
|
10788
10875
|
return t;
|
|
10789
|
-
},
|
|
10790
|
-
let
|
|
10791
|
-
if (!
|
|
10792
|
-
let
|
|
10793
|
-
if (!
|
|
10794
|
-
let
|
|
10795
|
-
for (let t of [e,
|
|
10796
|
-
|
|
10797
|
-
let
|
|
10876
|
+
}, ca = (e, t, { reducedMotion: n, color: r, pixelRatio: i = 1, targets: a = [] }) => {
|
|
10877
|
+
let o = e.getContext("2d");
|
|
10878
|
+
if (!o || t.width <= 0 || t.height <= 0) return () => void 0;
|
|
10879
|
+
let s = document.createElement("canvas"), c = s.getContext("2d");
|
|
10880
|
+
if (!c) return () => void 0;
|
|
10881
|
+
let l = Math.min(Math.max(1, i), 1.5, Math.sqrt(3e6 / (t.width * t.height))), u = Math.max(1, Math.floor(t.width * l)), d = Math.max(1, Math.floor(t.height * l));
|
|
10882
|
+
for (let t of [e, s]) t.width = u, t.height = d;
|
|
10883
|
+
o.scale(l, l), c.scale(l, l), c.strokeStyle = r, c.globalAlpha = .28, c.lineWidth = .65, o.strokeStyle = r, o.lineWidth = .65;
|
|
10884
|
+
let f = [
|
|
10798
10885
|
0,
|
|
10799
10886
|
1,
|
|
10800
10887
|
2
|
|
10801
|
-
].map(
|
|
10888
|
+
].map(sa), p = [...t.strands, ...t.webs.flatMap((e) => [...e.spokes.map((t) => ({
|
|
10802
10889
|
points: t,
|
|
10803
10890
|
delayMs: e.delayMs,
|
|
10804
10891
|
durationMs: 800
|
|
@@ -10809,80 +10896,82 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10809
10896
|
}])].map((e) => ({
|
|
10810
10897
|
...e,
|
|
10811
10898
|
drawn: 0
|
|
10812
|
-
})),
|
|
10899
|
+
})), m = 0, h = !1, g, _ = -1, v = (e) => {
|
|
10813
10900
|
let r = !1;
|
|
10814
|
-
|
|
10815
|
-
for (let t of
|
|
10816
|
-
let i = n ? 1 :
|
|
10901
|
+
c.beginPath(), o.beginPath();
|
|
10902
|
+
for (let t of p) {
|
|
10903
|
+
let i = n ? 1 : ia(e, t.delayMs, t.durationMs);
|
|
10817
10904
|
if (!i) continue;
|
|
10818
|
-
let
|
|
10819
|
-
if (
|
|
10905
|
+
let a = i * (t.points.length - 1), s = Math.floor(a);
|
|
10906
|
+
if (s > t.drawn) {
|
|
10820
10907
|
r = !0;
|
|
10821
10908
|
let e = t.points[t.drawn];
|
|
10822
|
-
|
|
10823
|
-
for (let e = t.drawn + 1; e <=
|
|
10909
|
+
c.moveTo(e.x, e.y);
|
|
10910
|
+
for (let e = t.drawn + 1; e <= s; e++) {
|
|
10824
10911
|
let n = t.points[e];
|
|
10825
|
-
|
|
10912
|
+
c.lineTo(n.x, n.y);
|
|
10826
10913
|
}
|
|
10827
|
-
t.drawn =
|
|
10914
|
+
t.drawn = s;
|
|
10828
10915
|
}
|
|
10829
10916
|
if (i < 1) {
|
|
10830
|
-
let e = t.points[
|
|
10831
|
-
|
|
10917
|
+
let e = t.points[s], n = aa(e, t.points[s + 1], a - s);
|
|
10918
|
+
o.moveTo(e.x, e.y), o.lineTo(n.x, n.y);
|
|
10832
10919
|
}
|
|
10833
10920
|
}
|
|
10834
|
-
r &&
|
|
10835
|
-
let i = n ? 1 : 1 -
|
|
10836
|
-
|
|
10921
|
+
r && c.stroke(), o.clearRect(0, 0, t.width, t.height);
|
|
10922
|
+
let i = n ? 1 : 1 - ia(e, ta, ea - ta);
|
|
10923
|
+
o.globalAlpha = i, o.drawImage(s, 0, 0, t.width, t.height), o.globalAlpha = i * .28, o.stroke();
|
|
10837
10924
|
for (let [r, i] of t.webs.entries()) {
|
|
10838
10925
|
if (!n && e < i.delayMs) continue;
|
|
10839
|
-
let t = n ? 1 :
|
|
10926
|
+
let t = n ? 1 : ia(e, i.delayMs + 800, i.weaveMs), a = oa(i.silk, t), s = n ? 0 : ia(e, i.escapeDelayMs, i.escapeMs);
|
|
10840
10927
|
if (s >= 1) continue;
|
|
10841
10928
|
if (s > 0) {
|
|
10842
10929
|
let e = i.silk[i.silk.length - 1], t = s * s * (3 - 2 * s);
|
|
10843
|
-
|
|
10844
|
-
|
|
10930
|
+
a = {
|
|
10931
|
+
...aa(e, i.escape, t),
|
|
10845
10932
|
angle: Math.atan2(i.escape.y - e.y, i.escape.x - e.x)
|
|
10846
10933
|
};
|
|
10847
10934
|
}
|
|
10848
|
-
|
|
10849
|
-
let c = !n && (t < 1 || s > 0) ? (Math.floor(e / 110) + r) %
|
|
10850
|
-
|
|
10935
|
+
o.save(), o.globalAlpha = n ? 1 : Math.min(ia(e, i.delayMs, 350), 1 - ia(s, .85, .15)), o.translate(a.x, a.y), o.rotate(a.angle + Math.PI / 2);
|
|
10936
|
+
let c = !n && (t < 1 || s > 0) ? (Math.floor(e / 110) + r) % f.length : 0;
|
|
10937
|
+
o.drawImage(f[c], -i.spiderSize / 2, -i.spiderSize / 2, i.spiderSize, i.spiderSize), o.restore();
|
|
10851
10938
|
}
|
|
10852
|
-
|
|
10853
|
-
},
|
|
10854
|
-
if (!
|
|
10855
|
-
|
|
10939
|
+
o.globalAlpha = 1;
|
|
10940
|
+
}, y = () => {
|
|
10941
|
+
if (!h) {
|
|
10942
|
+
h = !0, S(), cancelAnimationFrame(m), window.removeEventListener("resize", y), window.removeEventListener("scroll", y, !0), document.removeEventListener("visibilitychange", b), e.removeEventListener("contextlost", y);
|
|
10856
10943
|
for (let t of [
|
|
10857
10944
|
e,
|
|
10858
|
-
|
|
10859
|
-
...
|
|
10945
|
+
s,
|
|
10946
|
+
...f
|
|
10860
10947
|
]) t.width = 1, t.height = 1;
|
|
10861
10948
|
}
|
|
10862
|
-
},
|
|
10863
|
-
document.hidden &&
|
|
10864
|
-
},
|
|
10865
|
-
if (
|
|
10866
|
-
|
|
10867
|
-
let t = e -
|
|
10868
|
-
if (t >=
|
|
10869
|
-
|
|
10949
|
+
}, b = () => {
|
|
10950
|
+
document.hidden && y();
|
|
10951
|
+
}, x = (e) => {
|
|
10952
|
+
if (h) return;
|
|
10953
|
+
g ??= e;
|
|
10954
|
+
let t = e - g;
|
|
10955
|
+
if (t >= ea) {
|
|
10956
|
+
y();
|
|
10870
10957
|
return;
|
|
10871
10958
|
}
|
|
10872
|
-
let n = Math.floor(t /
|
|
10873
|
-
n >
|
|
10959
|
+
let n = Math.floor(t / na);
|
|
10960
|
+
n > _ && (_ = n, v(t)), m = requestAnimationFrame(x);
|
|
10874
10961
|
};
|
|
10875
|
-
|
|
10962
|
+
window.addEventListener("resize", y), window.addEventListener("scroll", y, {
|
|
10876
10963
|
capture: !0,
|
|
10877
10964
|
passive: !0
|
|
10878
|
-
}), document.addEventListener("visibilitychange",
|
|
10879
|
-
|
|
10965
|
+
}), document.addEventListener("visibilitychange", b), e.addEventListener("contextlost", y);
|
|
10966
|
+
let S = kr(a, y, [e]);
|
|
10967
|
+
return document.hidden ? y() : n ? v(0) : m = requestAnimationFrame(x), y;
|
|
10968
|
+
}, la = 12, ua = 5, Q = (e, t) => e + Math.random() * (t - e), da = (e, t, n) => Math.max(t, Math.min(n, e)), fa = (e) => {
|
|
10880
10969
|
for (let t = e.length - 1; t > 0; t--) {
|
|
10881
10970
|
let n = Math.floor(Math.random() * (t + 1));
|
|
10882
10971
|
[e[t], e[n]] = [e[n], e[t]];
|
|
10883
10972
|
}
|
|
10884
10973
|
return e;
|
|
10885
|
-
},
|
|
10974
|
+
}, pa = (e, t, n, r, i, a, o) => {
|
|
10886
10975
|
let s = new Set(e.map((e, t) => t)), c = t.map((e, t) => {
|
|
10887
10976
|
if (![
|
|
10888
10977
|
e.left,
|
|
@@ -10896,7 +10985,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10896
10985
|
return {
|
|
10897
10986
|
targetIndex: t,
|
|
10898
10987
|
radius: Math.min(a * Q(.85, 1.15), o, (c - i - u * 2) * .9, (l - s - u * 2) * .9),
|
|
10899
|
-
corners:
|
|
10988
|
+
corners: fa([
|
|
10900
10989
|
{
|
|
10901
10990
|
x: i + u,
|
|
10902
10991
|
y: s + u,
|
|
@@ -10941,17 +11030,17 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10941
11030
|
}
|
|
10942
11031
|
});
|
|
10943
11032
|
}
|
|
10944
|
-
},
|
|
10945
|
-
let n = Math.random() < .5 ? 5 : 6, r = Q(0, Math.PI * 2), i = Q(.08, .16), a = Q(0, Math.PI * 2), o = e.fan, s = o ? Math.PI / (2 * (
|
|
11033
|
+
}, ma = (e, t) => {
|
|
11034
|
+
let n = Math.random() < .5 ? 5 : 6, r = Q(0, Math.PI * 2), i = Q(.08, .16), a = Q(0, Math.PI * 2), o = e.fan, s = o ? Math.PI / (2 * (la - 1)) : Math.PI * 2 / la, c = (e) => t * (.91 + .05 * Math.sin(e * 3 + a) + .035 * Math.cos(e * 5 + a)), l = (t, n) => ({
|
|
10946
11035
|
x: e.x + Math.cos(t) * n * (o?.directionX ?? 1),
|
|
10947
11036
|
y: e.y + Math.sin(t) * n * (o?.directionY ?? 1)
|
|
10948
|
-
}), u = Array.from({ length:
|
|
11037
|
+
}), u = Array.from({ length: la }, (t, n) => {
|
|
10949
11038
|
let i = (o ? 0 : r) + n * s;
|
|
10950
11039
|
return [{
|
|
10951
11040
|
x: e.x,
|
|
10952
11041
|
y: e.y
|
|
10953
11042
|
}, l(i, c(i))];
|
|
10954
|
-
}), d = n * (o ?
|
|
11043
|
+
}), d = n * (o ? la - 1 : la) * ua;
|
|
10955
11044
|
return {
|
|
10956
11045
|
spokes: u,
|
|
10957
11046
|
silk: Array.from({ length: d + 1 }, (e, t) => {
|
|
@@ -10964,7 +11053,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10964
11053
|
return l(f, c(f) * a * m);
|
|
10965
11054
|
})
|
|
10966
11055
|
};
|
|
10967
|
-
},
|
|
11056
|
+
}, ha = (e, t, n) => {
|
|
10968
11057
|
let r = n * 2;
|
|
10969
11058
|
switch (Math.floor(Math.random() * 4)) {
|
|
10970
11059
|
case 0: return {
|
|
@@ -10984,12 +11073,12 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
10984
11073
|
y: t + r
|
|
10985
11074
|
};
|
|
10986
11075
|
}
|
|
10987
|
-
},
|
|
11076
|
+
}, ga = (e, t, n, r, i, a) => {
|
|
10988
11077
|
let o = e[n], s = e[r], c = Math.random() < .65 ? 2 : 1;
|
|
10989
11078
|
for (let e = 0; e < c; e++) {
|
|
10990
11079
|
let c = Q(-.16, .16) + e * .08, l = {
|
|
10991
|
-
x:
|
|
10992
|
-
y:
|
|
11080
|
+
x: da((o.x + s.x) / 2 - (s.y - o.y) * c, 0, i),
|
|
11081
|
+
y: da((o.y + s.y) / 2 + (s.x - o.x) * c, 0, a)
|
|
10993
11082
|
};
|
|
10994
11083
|
t.push({
|
|
10995
11084
|
from: n,
|
|
@@ -11005,20 +11094,20 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11005
11094
|
})
|
|
11006
11095
|
});
|
|
11007
11096
|
}
|
|
11008
|
-
},
|
|
11097
|
+
}, _a = ({ width: e, height: t, isMobile: n, targets: r = [] }) => {
|
|
11009
11098
|
if (!Number.isFinite(e) || !Number.isFinite(t) || e <= 0 || t <= 0) return {
|
|
11010
11099
|
width: 0,
|
|
11011
11100
|
height: 0,
|
|
11012
11101
|
webs: [],
|
|
11013
11102
|
strands: []
|
|
11014
11103
|
};
|
|
11015
|
-
let i = n ? 54 : 80, a = n ? 6 : 10, o = i / a, s = e / a, c = t / o, l = n ? 20 : 32, u = n ? 34 : 54, d =
|
|
11104
|
+
let i = n ? 54 : 80, a = n ? 6 : 10, o = i / a, s = e / a, c = t / o, l = n ? 20 : 32, u = n ? 34 : 54, d = da(Math.min(s, c) * .72, l, u), f = fa(Array.from({ length: i }, (e, t) => t)), p = Array.from({ length: i }, (e, t) => ({
|
|
11016
11105
|
x: (t % a + Q(.15, .85)) * s,
|
|
11017
11106
|
y: (Math.floor(t / a) + Q(.15, .85)) * c
|
|
11018
11107
|
}));
|
|
11019
|
-
|
|
11108
|
+
pa(p, r, e, t, Math.hypot(s, c), d, u);
|
|
11020
11109
|
let m = p.map((r, a) => {
|
|
11021
|
-
let o = f[a] / (i - 1) * 4200, s = Q(2800, 4100), c = n ? Q(16, 21) : Q(21, 27), p = r.fan?.radius ?? Math.min(
|
|
11110
|
+
let o = f[a] / (i - 1) * 4200, s = Q(2800, 4100), c = n ? Q(16, 21) : Q(21, 27), p = r.fan?.radius ?? Math.min(da(d * Q(.85, 1.15), l, u), r.x, e - r.x, r.y, t - r.y);
|
|
11022
11111
|
return {
|
|
11023
11112
|
x: r.x,
|
|
11024
11113
|
y: r.y,
|
|
@@ -11028,60 +11117,60 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11028
11117
|
weaveMs: s,
|
|
11029
11118
|
escapeDelayMs: Math.max(9300 + Q(0, 1100), o + 800 + s + 350),
|
|
11030
11119
|
escapeMs: Q(1600, 2600),
|
|
11031
|
-
escape:
|
|
11032
|
-
...
|
|
11120
|
+
escape: ha(e, t, c),
|
|
11121
|
+
...ma(r, p)
|
|
11033
11122
|
};
|
|
11034
11123
|
}), h = [];
|
|
11035
11124
|
return m.forEach((n, r) => {
|
|
11036
11125
|
let o = r % a;
|
|
11037
|
-
o < a - 1 &&
|
|
11126
|
+
o < a - 1 && ga(m, h, r, r + 1, e, t), r + a < i && (ga(m, h, r, r + a, e, t), o < a - 1 && (Math.random() < .5 ? ga(m, h, r, r + a + 1, e, t) : ga(m, h, r + 1, r + a, e, t)));
|
|
11038
11127
|
}), {
|
|
11039
11128
|
width: e,
|
|
11040
11129
|
height: t,
|
|
11041
11130
|
webs: m,
|
|
11042
11131
|
strands: h
|
|
11043
11132
|
};
|
|
11044
|
-
},
|
|
11045
|
-
let
|
|
11046
|
-
if (!
|
|
11047
|
-
let
|
|
11048
|
-
let t =
|
|
11049
|
-
return t || (t = e.getBoundingClientRect(),
|
|
11050
|
-
},
|
|
11051
|
-
if (!e ||
|
|
11052
|
-
let
|
|
11053
|
-
if (
|
|
11054
|
-
let
|
|
11055
|
-
for (;
|
|
11056
|
-
let e =
|
|
11057
|
-
if (e || (e = getComputedStyle(
|
|
11058
|
-
let
|
|
11059
|
-
if (
|
|
11060
|
-
let e =
|
|
11061
|
-
if (
|
|
11133
|
+
}, va = 12, ya = 48, ba = 4, xa = 4, Sa = 24, Ca = "[hidden], [inert], [aria-hidden=\"true\"], [data-celebration-snapshot]", wa = /^(auto|scroll|hidden|clip)$/, Ta = (e, t) => {
|
|
11134
|
+
let n = document.documentElement, r = n.clientWidth, i = n.clientHeight;
|
|
11135
|
+
if (!r || !i) return [];
|
|
11136
|
+
let a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = [], c = /* @__PURE__ */ new Set(), l = [], u = (e) => {
|
|
11137
|
+
let t = a.get(e);
|
|
11138
|
+
return t || (t = e.getBoundingClientRect(), a.set(e, t)), t;
|
|
11139
|
+
}, d = (e) => {
|
|
11140
|
+
if (!e || l.length >= va || c.has(e) || e.closest(Ca) || e.matches("[role=\"presentation\"], [role=\"none\"]") || (c.add(e), s.some((t) => t.contains(e) || e.contains(t)))) return;
|
|
11141
|
+
let n = u(e);
|
|
11142
|
+
if (n.width < 12 || n.height < 12 || n.width * n.height > r * i * .48 || n.left < 0 || n.top < 0 || n.right > r || n.bottom > i) return;
|
|
11143
|
+
let a = e, d = 0;
|
|
11144
|
+
for (; a && d++ < Sa;) {
|
|
11145
|
+
let e = o.get(a);
|
|
11146
|
+
if (e || (e = getComputedStyle(a), o.set(a, e)), e.display === "none" || e.visibility === "hidden" || e.visibility === "collapse" || e.opacity === "0" || e.contentVisibility === "hidden") return;
|
|
11147
|
+
let t = wa.test(e.overflowX || e.overflow), r = wa.test(e.overflowY || e.overflow);
|
|
11148
|
+
if (t || r) {
|
|
11149
|
+
let e = u(a);
|
|
11150
|
+
if (t && (n.left < e.left || n.right > e.right) || r && (n.top < e.top || n.bottom > e.bottom)) return;
|
|
11062
11151
|
}
|
|
11063
|
-
|
|
11152
|
+
a = a.parentElement;
|
|
11064
11153
|
}
|
|
11065
|
-
|
|
11066
|
-
left:
|
|
11067
|
-
top:
|
|
11068
|
-
width:
|
|
11069
|
-
height:
|
|
11154
|
+
a || l.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) || (s.push(e), t?.(e), l.push({
|
|
11155
|
+
left: n.left,
|
|
11156
|
+
top: n.top,
|
|
11157
|
+
width: n.width,
|
|
11158
|
+
height: n.height
|
|
11070
11159
|
}));
|
|
11071
|
-
},
|
|
11072
|
-
for (let t = 0; t < Math.min(
|
|
11073
|
-
let n =
|
|
11074
|
-
if (
|
|
11075
|
-
|
|
11160
|
+
}, f = document.getElementsByClassName(e.composer ?? "");
|
|
11161
|
+
for (let t = 0; t < Math.min(f.length, ba); t++) {
|
|
11162
|
+
let n = f[t];
|
|
11163
|
+
if (d(n), d(n.getElementsByClassName(e.composerModelSelector ?? "")[0]), d(n.getElementsByClassName(e.composerAddCluster ?? "")[0]), l.length) {
|
|
11164
|
+
d(it(n, e)?.querySelector("h1"));
|
|
11076
11165
|
break;
|
|
11077
11166
|
}
|
|
11078
11167
|
}
|
|
11079
|
-
let
|
|
11080
|
-
for (let e = 0; e < Math.min(
|
|
11081
|
-
let t =
|
|
11082
|
-
if (
|
|
11083
|
-
let e =
|
|
11084
|
-
|
|
11168
|
+
let p = document.querySelectorAll("[data-halloween-pumpkin-anchor]");
|
|
11169
|
+
for (let e = 0; e < Math.min(p.length, xa); e++) {
|
|
11170
|
+
let t = l.length;
|
|
11171
|
+
if (d(p[e].querySelector("button") ?? p[e]), l.length > t) {
|
|
11172
|
+
let e = l[t];
|
|
11173
|
+
l[t] = {
|
|
11085
11174
|
left: e.left + e.width * .16,
|
|
11086
11175
|
top: e.top + e.height * .28,
|
|
11087
11176
|
width: e.width * .68,
|
|
@@ -11090,31 +11179,32 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11090
11179
|
break;
|
|
11091
11180
|
}
|
|
11092
11181
|
}
|
|
11093
|
-
let
|
|
11094
|
-
for (let e = 0; e < Math.min(
|
|
11095
|
-
return
|
|
11096
|
-
},
|
|
11182
|
+
let m = rt(et(e));
|
|
11183
|
+
for (let e = 0; e < Math.min(m.length, ya) && l.length < va; e++) d(m[e].closest("li"));
|
|
11184
|
+
return l;
|
|
11185
|
+
}, Ea = { scene: "_scene_1xe10_1" }, Da = o(() => {
|
|
11097
11186
|
let { isMobile: e, anchors: n } = t(), r = D(), i = d(null), a = d(null);
|
|
11098
11187
|
return c(() => {
|
|
11099
11188
|
let t = !1, o;
|
|
11100
11189
|
return (async () => {
|
|
11101
11190
|
if (await Promise.resolve(), t) return;
|
|
11102
|
-
let s =
|
|
11103
|
-
if (!
|
|
11104
|
-
let { clientWidth:
|
|
11105
|
-
(!a.current || a.current.isMobile !== e || a.current.targetsKey !==
|
|
11191
|
+
let s = [], c = Ta(n, (e) => s.push(e)), l = i.current;
|
|
11192
|
+
if (!l) return;
|
|
11193
|
+
let { clientWidth: u, clientHeight: d } = document.documentElement, f = JSON.stringify(c);
|
|
11194
|
+
(!a.current || a.current.isMobile !== e || a.current.targetsKey !== f || a.current.plan.width !== u || a.current.plan.height !== d) && (a.current = {
|
|
11106
11195
|
isMobile: e,
|
|
11107
|
-
targetsKey:
|
|
11108
|
-
plan:
|
|
11109
|
-
width:
|
|
11110
|
-
height:
|
|
11196
|
+
targetsKey: f,
|
|
11197
|
+
plan: _a({
|
|
11198
|
+
width: u,
|
|
11199
|
+
height: d,
|
|
11111
11200
|
isMobile: e,
|
|
11112
|
-
targets:
|
|
11201
|
+
targets: c
|
|
11113
11202
|
})
|
|
11114
|
-
}), o =
|
|
11203
|
+
}), o = ca(l, a.current.plan, {
|
|
11115
11204
|
reducedMotion: r,
|
|
11116
|
-
color: getComputedStyle(
|
|
11117
|
-
pixelRatio: window.devicePixelRatio
|
|
11205
|
+
color: getComputedStyle(l).color,
|
|
11206
|
+
pixelRatio: window.devicePixelRatio,
|
|
11207
|
+
targets: s
|
|
11118
11208
|
});
|
|
11119
11209
|
})(), () => {
|
|
11120
11210
|
t = !0, o?.();
|
|
@@ -11125,68 +11215,68 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11125
11215
|
r
|
|
11126
11216
|
]), /* @__PURE__ */ h("canvas", {
|
|
11127
11217
|
ref: i,
|
|
11128
|
-
className:
|
|
11218
|
+
className: Ea.scene,
|
|
11129
11219
|
"aria-hidden": "true",
|
|
11130
11220
|
"data-halloween-scene": "web"
|
|
11131
11221
|
});
|
|
11132
|
-
}),
|
|
11222
|
+
}), Oa = je, ka = .83, Aa = .87, ja = /* @__PURE__ */ function(e) {
|
|
11133
11223
|
return e.Arm = "arm", e.Head = "head", e.Hat = "hat", e.Cloak = "cloak", e.Gaze = "gaze", e.Broom = "broom", e.Frog = "frog", e.Rider = "rider", e;
|
|
11134
|
-
}({}),
|
|
11224
|
+
}({}), Ma = (e, t, n) => Math.max(t, Math.min(e, Math.max(t, n))), Na = (e) => e / Oa, Pa = (e) => e * e * (3 - 2 * e), Fa = (e, t, n) => e + (t - e) * n, Ia = (e, t) => ({
|
|
11135
11225
|
x: e,
|
|
11136
11226
|
y: t
|
|
11137
|
-
}),
|
|
11227
|
+
}), La = (e, t) => [
|
|
11138
11228
|
{
|
|
11139
11229
|
offset: 0,
|
|
11140
11230
|
opacity: 0
|
|
11141
11231
|
},
|
|
11142
11232
|
{
|
|
11143
|
-
offset:
|
|
11233
|
+
offset: Na(e),
|
|
11144
11234
|
opacity: 0
|
|
11145
11235
|
},
|
|
11146
11236
|
{
|
|
11147
|
-
offset:
|
|
11237
|
+
offset: Na(e + 180),
|
|
11148
11238
|
opacity: 1
|
|
11149
11239
|
},
|
|
11150
11240
|
{
|
|
11151
|
-
offset:
|
|
11241
|
+
offset: Na(t - 180),
|
|
11152
11242
|
opacity: 1
|
|
11153
11243
|
},
|
|
11154
11244
|
{
|
|
11155
|
-
offset:
|
|
11245
|
+
offset: Na(t),
|
|
11156
11246
|
opacity: 0
|
|
11157
11247
|
},
|
|
11158
11248
|
{
|
|
11159
11249
|
offset: 1,
|
|
11160
11250
|
opacity: 0
|
|
11161
11251
|
}
|
|
11162
|
-
],
|
|
11163
|
-
offset:
|
|
11252
|
+
], Ra = (e) => e.map(([e, t, n = "cubic-bezier(0.45, 0, 0.55, 1)"]) => ({
|
|
11253
|
+
offset: Na(e),
|
|
11164
11254
|
transform: `rotate(${t}deg)`,
|
|
11165
11255
|
easing: n
|
|
11166
|
-
})),
|
|
11167
|
-
offset:
|
|
11256
|
+
})), za = (e) => e.map(({ time: e, x: t, y: n, angle: r = 0, opacity: i = 1, easing: a = "cubic-bezier(0.45, 0, 0.55, 1)" }) => ({
|
|
11257
|
+
offset: Na(e),
|
|
11168
11258
|
transform: `translate(${t}px, ${n}px) rotate(${r}deg)`,
|
|
11169
11259
|
opacity: i,
|
|
11170
11260
|
easing: a
|
|
11171
|
-
})),
|
|
11261
|
+
})), Ba = (e, t, n, r) => Array.from({ length: 17 }, (i, a) => {
|
|
11172
11262
|
let o = a / 16, s = r ? 1 - (1 - o) ** 3 : o * o;
|
|
11173
11263
|
return {
|
|
11174
|
-
time:
|
|
11175
|
-
x:
|
|
11176
|
-
y:
|
|
11177
|
-
angle:
|
|
11178
|
-
opacity:
|
|
11264
|
+
time: Fa(e.time, t.time, o),
|
|
11265
|
+
x: Fa(e.x, t.x, s),
|
|
11266
|
+
y: Fa(e.y, t.y, s) - 4 * n * s * (1 - s),
|
|
11267
|
+
angle: Fa(e.angle ?? 0, t.angle ?? 0, s),
|
|
11268
|
+
opacity: Fa(e.opacity ?? 1, t.opacity ?? 1, s),
|
|
11179
11269
|
easing: a === 16 ? "cubic-bezier(0.22, 1, 0.36, 1)" : "linear"
|
|
11180
11270
|
};
|
|
11181
|
-
}),
|
|
11271
|
+
}), Va = -62, Ha = 32, Ua = -55, Wa = (e, t, n, r) => {
|
|
11182
11272
|
let i = r * Math.PI / 180;
|
|
11183
|
-
return
|
|
11184
|
-
},
|
|
11185
|
-
let { rect: i } = e, a =
|
|
11273
|
+
return Ia(e.x + n * (8 + 42 * Math.cos(i) - 12 * Math.sin(i)) * t / 180, e.y + (-38 + 42 * Math.sin(i) + 12 * Math.cos(i)) * t / 180);
|
|
11274
|
+
}, Ga = (e, t) => Ia(e.x + t * 80 / 180, e.y), Ka = (e, t, n, r) => {
|
|
11275
|
+
let { rect: i } = e, a = Ia(i.left + i.width / 2, i.top + i.height / 2), o = i.width / 2 + 22, s = n.composer ? n.composer.rect.left + n.composer.rect.width / 2 : n.width / 2, c = Ia(Ma(s + (t ? 85 : -25), o, n.width - o), Ma(r + 90 + t * 62, 120, n.height - i.height / 2 - 40)), l = Ia(Ma(c.x + (t ? -90 : 75), o, n.width - o), c.y), u = Ia(Ma(s + (t ? -60 : 50), o, n.width - o), Ma(r - i.height / 2 + 10, 100, n.height - 80)), d = t * 320, f = [
|
|
11186
11276
|
{
|
|
11187
11277
|
from: 6500 + d,
|
|
11188
11278
|
to: 7550 + d,
|
|
11189
|
-
start:
|
|
11279
|
+
start: Ia(a.x, a.y - 22),
|
|
11190
11280
|
end: c,
|
|
11191
11281
|
height: 62
|
|
11192
11282
|
},
|
|
@@ -11222,56 +11312,56 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11222
11312
|
offset: 0,
|
|
11223
11313
|
transform: "scaleY(1)"
|
|
11224
11314
|
}], g = (e, t, n = 1, r = 1, i = 1, o = "linear") => m.push({
|
|
11225
|
-
offset:
|
|
11315
|
+
offset: Na(e),
|
|
11226
11316
|
opacity: i,
|
|
11227
11317
|
transform: `translate(${t.x - a.x}px, ${t.y - a.y}px) scale(${n}, ${r})`,
|
|
11228
11318
|
easing: o
|
|
11229
11319
|
});
|
|
11230
|
-
g(0, a, 1, 1, 0, "steps(1, end)"), g(p -
|
|
11320
|
+
g(0, a, 1, 1, 0, "steps(1, end)"), g(p - Oa * .01, a), g(p, a, 1, 1, 1, "cubic-bezier(0.22, 1, 0.36, 1)"), g(p + 650, Ia(a.x, a.y - 22));
|
|
11231
11321
|
for (let e of f) {
|
|
11232
11322
|
g(e.from - 180, e.start, 1, 1, 1, "cubic-bezier(0.55, 0, 1, 0.45)"), g(e.from, e.start, 1.06, .88), h.push({
|
|
11233
|
-
offset:
|
|
11323
|
+
offset: Na(e.from - 180),
|
|
11234
11324
|
transform: "scaleY(1)"
|
|
11235
11325
|
}, {
|
|
11236
|
-
offset:
|
|
11326
|
+
offset: Na(e.from),
|
|
11237
11327
|
transform: "scaleY(0.65)"
|
|
11238
11328
|
});
|
|
11239
11329
|
let t = e === f.at(-1);
|
|
11240
11330
|
for (let n = 1; n <= 14; n++) {
|
|
11241
|
-
let r = n / 14, i =
|
|
11242
|
-
g(
|
|
11331
|
+
let r = n / 14, i = Ia(Fa(e.start.x, e.end.x, t ? Pa(r) : r), Fa(e.start.y, e.end.y, r) - 4 * e.height * r * (1 - r));
|
|
11332
|
+
g(Fa(e.from, e.to, r), i, n === 14 ? 1.07 : Fa(.97, 1, Math.sin(Math.PI * r)), n === 14 ? .88 : Fa(1.06, 1, Math.sin(Math.PI * r)), 1, n === 14 ? "cubic-bezier(0.22, 1, 0.36, 1)" : "linear");
|
|
11243
11333
|
}
|
|
11244
11334
|
g(e.to + 90, e.end, .99, 1.02, 1, "cubic-bezier(0.22, 1, 0.36, 1)"), g(e.to + 190, e.end), h.push({
|
|
11245
|
-
offset:
|
|
11335
|
+
offset: Na(e.from + 130),
|
|
11246
11336
|
transform: "scaleY(1.35)"
|
|
11247
11337
|
}, {
|
|
11248
|
-
offset:
|
|
11338
|
+
offset: Na(e.to),
|
|
11249
11339
|
transform: "scaleY(0.65)"
|
|
11250
11340
|
}, {
|
|
11251
|
-
offset:
|
|
11341
|
+
offset: Na(e.to + 90),
|
|
11252
11342
|
transform: "scaleY(1.06)"
|
|
11253
11343
|
}, {
|
|
11254
|
-
offset:
|
|
11344
|
+
offset: Na(e.to + 190),
|
|
11255
11345
|
transform: "scaleY(1)"
|
|
11256
11346
|
});
|
|
11257
11347
|
}
|
|
11258
|
-
return g(
|
|
11348
|
+
return g(ka * Oa, a, 1, 1, 1, "steps(1, end)"), g(Aa * Oa, a, 1, 1, 0), g(2e4, a, 1, 1, 0), h.push({
|
|
11259
11349
|
offset: 1,
|
|
11260
11350
|
transform: "scaleY(1)"
|
|
11261
11351
|
}), {
|
|
11262
11352
|
target: e,
|
|
11263
|
-
entry:
|
|
11353
|
+
entry: Na(p),
|
|
11264
11354
|
frames: m,
|
|
11265
|
-
frogFrames:
|
|
11355
|
+
frogFrames: La(5900 + d, 16600),
|
|
11266
11356
|
legFrames: h,
|
|
11267
11357
|
hops: f
|
|
11268
11358
|
};
|
|
11269
|
-
},
|
|
11270
|
-
let { width: n, height: r, composer: i } = e, a = Math.min(t ? 112 : 146, n * .32, r * .27), o = i ? i.rect.left + i.rect.width / 2 : n / 2, s =
|
|
11271
|
-
f.x =
|
|
11359
|
+
}, qa = (e, t) => {
|
|
11360
|
+
let { width: n, height: r, composer: i } = e, a = Math.min(t ? 112 : 146, n * .32, r * .27), o = i ? i.rect.left + i.rect.width / 2 : n / 2, s = Ma(i ? i.rect.top - 8 : r * .48, a + 28, r - 155), c = Ia(Ma(o - a * .85, a * .6, n - a * .6), s), l = Ia(Ma(o + a * .85, a * .6, n - a * .6), s - 24), u = e.buttons.slice(0, t ? 1 : 2).map((t, n) => Ka(t, n, e, s)), d = u[0]?.hops[2], f = d ? Ia(d.start.x - u[0].target.rect.width / 2 - a * 80 / 180 - 5, d.start.y + u[0].target.rect.height / 2) : Ia(c.x + 16, c.y + 42);
|
|
11361
|
+
f.x = Ma(f.x, a * .55, n - a * .55);
|
|
11272
11362
|
let p = [!1, !0].map((e) => {
|
|
11273
11363
|
let t = e ? l : c, r = e ? -1 : 1, i = {
|
|
11274
|
-
arm:
|
|
11364
|
+
arm: Ra(e ? [
|
|
11275
11365
|
[0, 0],
|
|
11276
11366
|
[
|
|
11277
11367
|
14e3,
|
|
@@ -11283,8 +11373,8 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11283
11373
|
10,
|
|
11284
11374
|
"cubic-bezier(0.22, 1, 0.36, 1)"
|
|
11285
11375
|
],
|
|
11286
|
-
[14600,
|
|
11287
|
-
[14800,
|
|
11376
|
+
[14600, Ua],
|
|
11377
|
+
[14800, Ua],
|
|
11288
11378
|
[
|
|
11289
11379
|
15600,
|
|
11290
11380
|
-48,
|
|
@@ -11300,10 +11390,10 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11300
11390
|
20,
|
|
11301
11391
|
"cubic-bezier(0.55, 0, 1, 0.45)"
|
|
11302
11392
|
],
|
|
11303
|
-
[3900,
|
|
11393
|
+
[3900, Va],
|
|
11304
11394
|
[
|
|
11305
11395
|
4120,
|
|
11306
|
-
|
|
11396
|
+
Va,
|
|
11307
11397
|
"cubic-bezier(0.22, 1, 0.36, 1)"
|
|
11308
11398
|
],
|
|
11309
11399
|
[4500, -42],
|
|
@@ -11312,10 +11402,10 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11312
11402
|
12,
|
|
11313
11403
|
"cubic-bezier(0.55, 0, 1, 0.45)"
|
|
11314
11404
|
],
|
|
11315
|
-
[4900,
|
|
11405
|
+
[4900, Va],
|
|
11316
11406
|
[
|
|
11317
11407
|
5050,
|
|
11318
|
-
|
|
11408
|
+
Va,
|
|
11319
11409
|
"cubic-bezier(0.22, 1, 0.36, 1)"
|
|
11320
11410
|
],
|
|
11321
11411
|
[5450, -42],
|
|
@@ -11333,10 +11423,10 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11333
11423
|
-70,
|
|
11334
11424
|
"cubic-bezier(0.55, 0, 1, 0.45)"
|
|
11335
11425
|
],
|
|
11336
|
-
[12100,
|
|
11426
|
+
[12100, Ha],
|
|
11337
11427
|
[
|
|
11338
11428
|
12300,
|
|
11339
|
-
|
|
11429
|
+
Ha,
|
|
11340
11430
|
"cubic-bezier(0.22, 1, 0.36, 1)"
|
|
11341
11431
|
],
|
|
11342
11432
|
[12600, 12],
|
|
@@ -11367,7 +11457,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11367
11457
|
[19300, 0],
|
|
11368
11458
|
[2e4, 0]
|
|
11369
11459
|
]),
|
|
11370
|
-
head:
|
|
11460
|
+
head: Ra(e ? [
|
|
11371
11461
|
[0, 0],
|
|
11372
11462
|
[5700, 0],
|
|
11373
11463
|
[6400, -6],
|
|
@@ -11407,7 +11497,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11407
11497
|
[19e3, 0],
|
|
11408
11498
|
[2e4, 0]
|
|
11409
11499
|
]),
|
|
11410
|
-
hat:
|
|
11500
|
+
hat: Ra([
|
|
11411
11501
|
[0, -10],
|
|
11412
11502
|
[e ? 2700 : 1950, -10],
|
|
11413
11503
|
[
|
|
@@ -11460,7 +11550,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11460
11550
|
[19500, 0],
|
|
11461
11551
|
[2e4, -8]
|
|
11462
11552
|
]),
|
|
11463
|
-
cloak:
|
|
11553
|
+
cloak: Ra([
|
|
11464
11554
|
[0, -14],
|
|
11465
11555
|
[e ? 2700 : 2100, -14],
|
|
11466
11556
|
[
|
|
@@ -11511,7 +11601,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11511
11601
|
16e3,
|
|
11512
11602
|
2e4
|
|
11513
11603
|
].map((t, n) => ({
|
|
11514
|
-
offset:
|
|
11604
|
+
offset: Na(t),
|
|
11515
11605
|
transform: `translateX(${e ? n > 2 ? -1 : 1 : [
|
|
11516
11606
|
1,
|
|
11517
11607
|
-2,
|
|
@@ -11521,7 +11611,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11521
11611
|
1
|
|
11522
11612
|
][n]}px)`
|
|
11523
11613
|
})),
|
|
11524
|
-
broom:
|
|
11614
|
+
broom: Ra(e ? [[0, 0], [2e4, 0]] : [
|
|
11525
11615
|
[0, 0],
|
|
11526
11616
|
[5e3, 0],
|
|
11527
11617
|
[
|
|
@@ -11603,7 +11693,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11603
11693
|
[19200, 0],
|
|
11604
11694
|
[2e4, 0]
|
|
11605
11695
|
]),
|
|
11606
|
-
frog: e ? [{ opacity: 0 }, { opacity: 0 }] :
|
|
11696
|
+
frog: e ? [{ opacity: 0 }, { opacity: 0 }] : La(u.length ? 12600 : 4500, 19e3),
|
|
11607
11697
|
rider: e ? [{ transform: "translateY(0px)" }, { transform: "translateY(0px)" }] : [
|
|
11608
11698
|
0,
|
|
11609
11699
|
12780,
|
|
@@ -11618,7 +11708,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11618
11708
|
19e3,
|
|
11619
11709
|
2e4
|
|
11620
11710
|
].map((e, t) => ({
|
|
11621
|
-
offset:
|
|
11711
|
+
offset: Na(e),
|
|
11622
11712
|
transform: `translateY(${[
|
|
11623
11713
|
0,
|
|
11624
11714
|
0,
|
|
@@ -11641,14 +11731,14 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11641
11731
|
size: a,
|
|
11642
11732
|
facing: r,
|
|
11643
11733
|
rest: t,
|
|
11644
|
-
frames:
|
|
11734
|
+
frames: za(e ? [
|
|
11645
11735
|
{
|
|
11646
11736
|
time: 0,
|
|
11647
11737
|
x: n + a,
|
|
11648
11738
|
y: t.y - 50,
|
|
11649
11739
|
opacity: 0
|
|
11650
11740
|
},
|
|
11651
|
-
...
|
|
11741
|
+
...Ba({
|
|
11652
11742
|
time: 500,
|
|
11653
11743
|
x: n + a,
|
|
11654
11744
|
y: t.y - 50,
|
|
@@ -11657,7 +11747,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11657
11747
|
time: 2800,
|
|
11658
11748
|
...t
|
|
11659
11749
|
}, a * .2, !0),
|
|
11660
|
-
...
|
|
11750
|
+
...Ba({
|
|
11661
11751
|
time: 17600,
|
|
11662
11752
|
...t
|
|
11663
11753
|
}, {
|
|
@@ -11680,7 +11770,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11680
11770
|
y: t.y - 40,
|
|
11681
11771
|
opacity: 0
|
|
11682
11772
|
},
|
|
11683
|
-
...
|
|
11773
|
+
...Ba({
|
|
11684
11774
|
time: 300,
|
|
11685
11775
|
x: -a,
|
|
11686
11776
|
y: t.y - 40,
|
|
@@ -11779,7 +11869,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11779
11869
|
angle: 6,
|
|
11780
11870
|
easing: "cubic-bezier(0.22, 1, 0.36, 1)"
|
|
11781
11871
|
},
|
|
11782
|
-
...
|
|
11872
|
+
...Ba({
|
|
11783
11873
|
time: 18800,
|
|
11784
11874
|
x: t.x + 32,
|
|
11785
11875
|
y: t.y,
|
|
@@ -11802,7 +11892,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11802
11892
|
};
|
|
11803
11893
|
}), m = (e, t, n, r) => ({
|
|
11804
11894
|
mentor: r,
|
|
11805
|
-
frames:
|
|
11895
|
+
frames: za([
|
|
11806
11896
|
{
|
|
11807
11897
|
time: 0,
|
|
11808
11898
|
...e,
|
|
@@ -11833,14 +11923,14 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11833
11923
|
opacity: 0
|
|
11834
11924
|
}
|
|
11835
11925
|
])
|
|
11836
|
-
}), h =
|
|
11837
|
-
return u.length || _.push(m(h,
|
|
11926
|
+
}), h = Wa(c, a, 1, Va), g = Wa(l, a, -1, Ua), _ = u.map(({ target: e }, t) => m(h, Ia(e.rect.left + e.rect.width / 2, e.rect.top), 4e3 + t * 900, !1));
|
|
11927
|
+
return u.length || _.push(m(h, Ga(c, a), 4e3, !1)), _.push(m(Wa(f, a, 1, Ha), Ga(f, a), 12100, !1)), _.push(m(g, Ia(o, s), 14600, !0)), {
|
|
11838
11928
|
actors: p,
|
|
11839
11929
|
buttons: u,
|
|
11840
11930
|
spells: _,
|
|
11841
11931
|
anchors: [...i ? [i] : [], ...u.map(({ target: e }) => e)]
|
|
11842
11932
|
};
|
|
11843
|
-
},
|
|
11933
|
+
}, Ja = (e, { host: t, copies: n, actors: r, spells: i, frog: a }, o) => {
|
|
11844
11934
|
let s = [], c, l, u = !1, d = typeof document.timeline?.currentTime == "number" ? document.timeline.currentTime : void 0, f = [
|
|
11845
11935
|
"pointerdown",
|
|
11846
11936
|
"focusin",
|
|
@@ -11881,7 +11971,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11881
11971
|
}), v = (t, n) => {
|
|
11882
11972
|
if (!t || n.length > 160 || s.length + e.buttons.length * 2 >= 48) throw Error("Witch animation budget or artwork unavailable");
|
|
11883
11973
|
let r = t.animate(n, {
|
|
11884
|
-
duration:
|
|
11974
|
+
duration: Oa,
|
|
11885
11975
|
fill: "both"
|
|
11886
11976
|
});
|
|
11887
11977
|
s.push(r), d !== void 0 && (r.startTime = d);
|
|
@@ -11891,9 +11981,9 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11891
11981
|
let n = r[t];
|
|
11892
11982
|
v(n, e.frames), Object.entries(e.parts).forEach(([e, t]) => v(n?.querySelector(`[data-witch-part="${e}"]`), t));
|
|
11893
11983
|
}), e.spells.forEach((e, t) => v(i[t], e.frames)), c = A(e.buttons.map(({ target: e }) => e), n, {
|
|
11894
|
-
durationMs:
|
|
11984
|
+
durationMs: Oa,
|
|
11895
11985
|
hideAt: (t) => e.buttons[t].entry,
|
|
11896
|
-
restoreAt:
|
|
11986
|
+
restoreAt: ka,
|
|
11897
11987
|
startTime: d,
|
|
11898
11988
|
onStop: p,
|
|
11899
11989
|
frames: (t, n) => e.buttons[n].frames,
|
|
@@ -11928,24 +12018,24 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11928
12018
|
"aria-disabled",
|
|
11929
12019
|
"href"
|
|
11930
12020
|
]
|
|
11931
|
-
}), e.anchors.forEach(({ element: e }) => _.observe(e, { box: "border-box" })), f.forEach((e) => document.addEventListener(e, m, !0)), window.addEventListener("resize", p), l = setTimeout(p,
|
|
12021
|
+
}), e.anchors.forEach(({ element: e }) => _.observe(e, { box: "border-box" })), f.forEach((e) => document.addEventListener(e, m, !0)), window.addEventListener("resize", p), l = setTimeout(p, Oa);
|
|
11932
12022
|
} catch {
|
|
11933
12023
|
p();
|
|
11934
12024
|
}
|
|
11935
12025
|
return p;
|
|
11936
|
-
},
|
|
12026
|
+
}, Ya = "[hidden], [inert], [aria-hidden=\"true\"], [data-celebration-snapshot]", Xa = ":disabled, [aria-disabled=\"true\"], [aria-expanded=\"true\"], input, textarea, select, [contenteditable]:not([contenteditable=\"false\"])", Za = /^(auto|scroll|hidden|clip)$/, Qa = (e, t) => {
|
|
11937
12027
|
let { clientWidth: n, clientHeight: r } = document.documentElement, i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = (e) => {
|
|
11938
12028
|
let t = i.get(e);
|
|
11939
12029
|
return t || (t = e.getBoundingClientRect(), i.set(e, t)), t;
|
|
11940
12030
|
}, s = (e) => {
|
|
11941
|
-
if (e.closest(
|
|
12031
|
+
if (e.closest(Ya)) return;
|
|
11942
12032
|
let t = o(e);
|
|
11943
12033
|
if (t.width < 20 || t.height < 20 || t.left < 0 || t.top < 0 || t.right > n || t.bottom > r) return;
|
|
11944
12034
|
let i = e;
|
|
11945
12035
|
for (let e = 0; i && e < 32; e++, i = i.parentElement) {
|
|
11946
12036
|
let e = a.get(i);
|
|
11947
12037
|
if (e || (e = getComputedStyle(i), a.set(i, e)), e.display === "none" || e.visibility === "hidden" || e.visibility === "collapse" || e.opacity === "0" || e.contentVisibility === "hidden") return;
|
|
11948
|
-
let n =
|
|
12038
|
+
let n = Za.test(e.overflowX || e.overflow), r = Za.test(e.overflowY || e.overflow);
|
|
11949
12039
|
if (n || r) {
|
|
11950
12040
|
let e = o(i);
|
|
11951
12041
|
if (n && (t.left < e.left || t.right > e.right) || r && (t.top < e.top || t.bottom > e.bottom)) return;
|
|
@@ -11979,7 +12069,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
11979
12069
|
for (let e of u) {
|
|
11980
12070
|
let t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT), n = 0;
|
|
11981
12071
|
for (; n <= 40 && t.nextNode();) n++;
|
|
11982
|
-
if (n > 40 || e.contains(document.activeElement) || e.closest(
|
|
12072
|
+
if (n > 40 || e.contains(document.activeElement) || e.closest(Xa) || e.querySelector(Xa)) continue;
|
|
11983
12073
|
let r = s(e);
|
|
11984
12074
|
r && r.rect.width <= 240 && r.rect.height <= 64 && r.rect.width * r.rect.height <= 15360 && m.push(r);
|
|
11985
12075
|
}
|
|
@@ -12022,13 +12112,13 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12022
12112
|
spell: "_spell_1ug7q_150",
|
|
12023
12113
|
mentorSpell: "_mentorSpell_1ug7q_154",
|
|
12024
12114
|
scene: "_scene_1ug7q_159"
|
|
12025
|
-
},
|
|
12115
|
+
}, $a = ({ mentor: e = !1 }) => /* @__PURE__ */ g("svg", {
|
|
12026
12116
|
viewBox: "0 0 180 150",
|
|
12027
12117
|
"aria-hidden": "true",
|
|
12028
12118
|
focusable: "false",
|
|
12029
12119
|
className: a($.witch, "block size-full overflow-visible", e && $.mentor),
|
|
12030
12120
|
children: [/* @__PURE__ */ g("g", {
|
|
12031
|
-
"data-witch-part":
|
|
12121
|
+
"data-witch-part": ja.Broom,
|
|
12032
12122
|
className: $.broom,
|
|
12033
12123
|
children: [
|
|
12034
12124
|
/* @__PURE__ */ h("path", {
|
|
@@ -12048,7 +12138,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12048
12138
|
className: $.binding
|
|
12049
12139
|
}),
|
|
12050
12140
|
/* @__PURE__ */ g("g", {
|
|
12051
|
-
"data-witch-part":
|
|
12141
|
+
"data-witch-part": ja.Frog,
|
|
12052
12142
|
className: $.broomFrog,
|
|
12053
12143
|
children: [
|
|
12054
12144
|
/* @__PURE__ */ h("path", {
|
|
@@ -12087,14 +12177,14 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12087
12177
|
})
|
|
12088
12178
|
]
|
|
12089
12179
|
}), /* @__PURE__ */ g("g", {
|
|
12090
|
-
"data-witch-part":
|
|
12180
|
+
"data-witch-part": ja.Rider,
|
|
12091
12181
|
children: [
|
|
12092
12182
|
/* @__PURE__ */ h("path", {
|
|
12093
12183
|
d: "M79 100L105 112L101 131L115 133L120 138L95 141L89 133L91 119L67 113Z",
|
|
12094
12184
|
className: $.boot
|
|
12095
12185
|
}),
|
|
12096
12186
|
/* @__PURE__ */ g("g", {
|
|
12097
|
-
"data-witch-part":
|
|
12187
|
+
"data-witch-part": ja.Cloak,
|
|
12098
12188
|
className: $.cloakJoint,
|
|
12099
12189
|
children: [
|
|
12100
12190
|
/* @__PURE__ */ h("path", {
|
|
@@ -12118,7 +12208,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12118
12208
|
]
|
|
12119
12209
|
}),
|
|
12120
12210
|
/* @__PURE__ */ g("g", {
|
|
12121
|
-
"data-witch-part":
|
|
12211
|
+
"data-witch-part": ja.Head,
|
|
12122
12212
|
className: $.headJoint,
|
|
12123
12213
|
children: [
|
|
12124
12214
|
/* @__PURE__ */ h("path", {
|
|
@@ -12134,7 +12224,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12134
12224
|
className: $.expression
|
|
12135
12225
|
}),
|
|
12136
12226
|
/* @__PURE__ */ g("g", {
|
|
12137
|
-
"data-witch-part":
|
|
12227
|
+
"data-witch-part": ja.Gaze,
|
|
12138
12228
|
children: [/* @__PURE__ */ h("ellipse", {
|
|
12139
12229
|
cx: "107",
|
|
12140
12230
|
cy: "51",
|
|
@@ -12154,7 +12244,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12154
12244
|
className: $.expression
|
|
12155
12245
|
}),
|
|
12156
12246
|
/* @__PURE__ */ g("g", {
|
|
12157
|
-
"data-witch-part":
|
|
12247
|
+
"data-witch-part": ja.Hat,
|
|
12158
12248
|
className: $.hatJoint,
|
|
12159
12249
|
children: [
|
|
12160
12250
|
/* @__PURE__ */ h("path", {
|
|
@@ -12178,7 +12268,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12178
12268
|
]
|
|
12179
12269
|
}),
|
|
12180
12270
|
/* @__PURE__ */ g("g", {
|
|
12181
|
-
"data-witch-part":
|
|
12271
|
+
"data-witch-part": ja.Arm,
|
|
12182
12272
|
className: $.armJoint,
|
|
12183
12273
|
children: [/* @__PURE__ */ h("path", {
|
|
12184
12274
|
d: "M96 77Q108 78 115 89L133 91L135 100L110 101L94 91Z",
|
|
@@ -12190,7 +12280,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12190
12280
|
})
|
|
12191
12281
|
]
|
|
12192
12282
|
})]
|
|
12193
|
-
}),
|
|
12283
|
+
}), eo = () => /* @__PURE__ */ g("svg", {
|
|
12194
12284
|
viewBox: "0 0 100 80",
|
|
12195
12285
|
preserveAspectRatio: "none",
|
|
12196
12286
|
"aria-hidden": "true",
|
|
@@ -12237,7 +12327,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12237
12327
|
className: $.pupil
|
|
12238
12328
|
})
|
|
12239
12329
|
]
|
|
12240
|
-
}),
|
|
12330
|
+
}), to = () => {
|
|
12241
12331
|
let { isMobile: e, anchors: n } = t(), r = D(), [i] = f(() => ({
|
|
12242
12332
|
isMobile: e,
|
|
12243
12333
|
reducedMotion: r,
|
|
@@ -12265,7 +12355,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12265
12355
|
"visibilitychange"
|
|
12266
12356
|
];
|
|
12267
12357
|
return s.forEach((e) => window.addEventListener(e, a, !0)), (async () => {
|
|
12268
|
-
await Promise.resolve(), !(t || v.current) && p(
|
|
12358
|
+
await Promise.resolve(), !(t || v.current) && p(qa(Qa(n, e), e));
|
|
12269
12359
|
})(), () => {
|
|
12270
12360
|
t = !0, s.forEach((e) => window.removeEventListener(e, a, !0));
|
|
12271
12361
|
};
|
|
@@ -12280,7 +12370,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12280
12370
|
]), c(() => {
|
|
12281
12371
|
let e = S.current?.querySelector("svg");
|
|
12282
12372
|
if (m || o || v.current || r || !l || !u || !y.current || !x.current || !e) return;
|
|
12283
|
-
let t = !1, n =
|
|
12373
|
+
let t = !1, n = Ja(u, {
|
|
12284
12374
|
host: y.current,
|
|
12285
12375
|
copies: x.current,
|
|
12286
12376
|
actors: C.current.filter((e) => !!e),
|
|
@@ -12318,17 +12408,17 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12318
12408
|
!E && /* @__PURE__ */ h("div", {
|
|
12319
12409
|
ref: S,
|
|
12320
12410
|
className: "hidden",
|
|
12321
|
-
children: /* @__PURE__ */ h(
|
|
12411
|
+
children: /* @__PURE__ */ h(eo, {})
|
|
12322
12412
|
}),
|
|
12323
12413
|
E ? /* @__PURE__ */ g("div", {
|
|
12324
12414
|
className: "absolute inset-x-0 top-1/3 flex justify-center gap-3",
|
|
12325
12415
|
"data-witch-static": !0,
|
|
12326
12416
|
children: [/* @__PURE__ */ h("div", {
|
|
12327
12417
|
className: "w-28 desktop:w-36",
|
|
12328
|
-
children: /* @__PURE__ */ h(
|
|
12418
|
+
children: /* @__PURE__ */ h($a, {})
|
|
12329
12419
|
}), /* @__PURE__ */ h("div", {
|
|
12330
12420
|
className: "w-28 -scale-x-100 desktop:w-36",
|
|
12331
|
-
children: /* @__PURE__ */ h(
|
|
12421
|
+
children: /* @__PURE__ */ h($a, { mentor: !0 })
|
|
12332
12422
|
})]
|
|
12333
12423
|
}) : u?.actors.map((e, t) => /* @__PURE__ */ h("div", {
|
|
12334
12424
|
ref: (e) => {
|
|
@@ -12354,7 +12444,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12354
12444
|
children: /* @__PURE__ */ h("div", {
|
|
12355
12445
|
className: "size-full",
|
|
12356
12446
|
style: { transform: `scaleX(${e.facing})` },
|
|
12357
|
-
children: /* @__PURE__ */ h(
|
|
12447
|
+
children: /* @__PURE__ */ h($a, { mentor: e.mentor })
|
|
12358
12448
|
})
|
|
12359
12449
|
})
|
|
12360
12450
|
}, t)),
|
|
@@ -12375,29 +12465,29 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12375
12465
|
}, t))
|
|
12376
12466
|
]
|
|
12377
12467
|
});
|
|
12378
|
-
},
|
|
12468
|
+
}, no = {
|
|
12379
12469
|
[b.Bats]: Tt,
|
|
12380
|
-
[b.Ghost]:
|
|
12381
|
-
[b.Spiders]:
|
|
12382
|
-
[b.Portal]:
|
|
12383
|
-
[b.Ravens]:
|
|
12384
|
-
[b.Candy]:
|
|
12385
|
-
[b.Footprints]:
|
|
12386
|
-
[b.Skeletons]:
|
|
12387
|
-
[b.Cauldron]:
|
|
12388
|
-
[b.Mimic]:
|
|
12389
|
-
[b.Bowling]:
|
|
12390
|
-
[b.Mummy]:
|
|
12391
|
-
[b.Web]:
|
|
12392
|
-
},
|
|
12393
|
-
let n =
|
|
12470
|
+
[b.Ghost]: wr,
|
|
12471
|
+
[b.Spiders]: Vi,
|
|
12472
|
+
[b.Portal]: Yr,
|
|
12473
|
+
[b.Ravens]: _i,
|
|
12474
|
+
[b.Candy]: Ht,
|
|
12475
|
+
[b.Footprints]: tr,
|
|
12476
|
+
[b.Skeletons]: Ai,
|
|
12477
|
+
[b.Cauldron]: yi,
|
|
12478
|
+
[b.Mimic]: Rr,
|
|
12479
|
+
[b.Bowling]: It,
|
|
12480
|
+
[b.Mummy]: qr,
|
|
12481
|
+
[b.Web]: Da
|
|
12482
|
+
}, ro = o(({ burst: e, trainSoundtrackUrl: t }) => {
|
|
12483
|
+
let n = no[e];
|
|
12394
12484
|
return /* @__PURE__ */ g(m, { children: [
|
|
12395
12485
|
n && /* @__PURE__ */ h(n, {}),
|
|
12396
|
-
e === b.Witches && /* @__PURE__ */ h(
|
|
12397
|
-
e === b.Cat && /* @__PURE__ */ h(
|
|
12398
|
-
e === b.Train && /* @__PURE__ */ h(
|
|
12486
|
+
e === b.Witches && /* @__PURE__ */ h(to, {}),
|
|
12487
|
+
e === b.Cat && /* @__PURE__ */ h(In, {}),
|
|
12488
|
+
e === b.Train && /* @__PURE__ */ h($i, { soundtrackUrl: t })
|
|
12399
12489
|
] });
|
|
12400
|
-
}),
|
|
12490
|
+
}), io = {
|
|
12401
12491
|
toastTitle: "🎃 Happy Halloween!",
|
|
12402
12492
|
spidersToastMessage: "The spiders are sneaking away with pieces of the page — everything will be back! Send \"{{phrase}}\" in the start-page chat for another secret surprise.",
|
|
12403
12493
|
ghostToastMessage: "The ghosts are awake! Send \"{{phrase}}\" in the start-page chat for a secret surprise.",
|
|
@@ -12416,12 +12506,12 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12416
12506
|
mimicToastMessage: "The chest has caught a couple of chats with its tongue — it will spit them back! Send \"{{phrase}}\" in the start-page chat for another secret surprise.",
|
|
12417
12507
|
bowlingToastMessage: "Pumpkin strike! Your chats will pick themselves back up. Send \"{{phrase}}\" in the start-page chat for another secret surprise.",
|
|
12418
12508
|
mummyToastMessage: "The mummy is pushing the chat input out of the way — it will be right back! Send \"{{phrase}}\" in the start-page chat for another secret surprise."
|
|
12419
|
-
},
|
|
12509
|
+
}, ao = {
|
|
12420
12510
|
cx: 80.5,
|
|
12421
12511
|
cy: 89,
|
|
12422
12512
|
rx: 66,
|
|
12423
12513
|
ry: 51
|
|
12424
|
-
},
|
|
12514
|
+
}, oo = [
|
|
12425
12515
|
[-.8, -.2],
|
|
12426
12516
|
[-.85, -.3],
|
|
12427
12517
|
[-.55, .1],
|
|
@@ -12432,16 +12522,16 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12432
12522
|
[.05, .7],
|
|
12433
12523
|
[.45, .85],
|
|
12434
12524
|
[.5, .85]
|
|
12435
|
-
],
|
|
12436
|
-
x:
|
|
12437
|
-
y:
|
|
12438
|
-
}),
|
|
12525
|
+
], so = (e, t) => ({
|
|
12526
|
+
x: ao.cx + t * ao.rx * Math.sqrt(1 - e * e) * .96,
|
|
12527
|
+
y: ao.cy + e * ao.ry
|
|
12528
|
+
}), co = {
|
|
12439
12529
|
viewBox: 160,
|
|
12440
|
-
cocoon:
|
|
12441
|
-
strands:
|
|
12442
|
-
let r = n % 2 == 0 ? -1 : 1, i =
|
|
12443
|
-
x:
|
|
12444
|
-
y: (i.y + a.y) / 2 +
|
|
12530
|
+
cocoon: ao,
|
|
12531
|
+
strands: oo.map(([e, t], n) => {
|
|
12532
|
+
let r = n % 2 == 0 ? -1 : 1, i = so(e, r), a = so(t, -r), o = {
|
|
12533
|
+
x: ao.cx,
|
|
12534
|
+
y: (i.y + a.y) / 2 + ao.ry * .45 * (1 - Math.abs((e + t) / 2))
|
|
12445
12535
|
};
|
|
12446
12536
|
return {
|
|
12447
12537
|
from: i,
|
|
@@ -12450,43 +12540,43 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12450
12540
|
d: `M${i.x.toFixed(1)} ${i.y.toFixed(1)}Q${o.x.toFixed(1)} ${o.y.toFixed(1)} ${a.x.toFixed(1)} ${a.y.toFixed(1)}`
|
|
12451
12541
|
};
|
|
12452
12542
|
})
|
|
12453
|
-
},
|
|
12454
|
-
let r =
|
|
12543
|
+
}, lo = 2600, uo = 3e3, fo = 1050, po = 250, mo = uo + fo * co.strands.length, ho = mo + 400, go = ho + 200, _o = go + 800, vo = go + 150, yo = vo + 150, bo = yo + 600, xo = go + 400, So = xo + 800, Co = bo + 600, wo = 50, To = (e) => Math.max(0, Math.min(1, e)), Eo = (e, t, n) => {
|
|
12544
|
+
let r = To((n - e) / (t - e));
|
|
12455
12545
|
return r * r * (3 - 2 * r);
|
|
12456
|
-
},
|
|
12546
|
+
}, Do = (e, t, n) => ({
|
|
12457
12547
|
x: e.x + (t.x - e.x) * n,
|
|
12458
12548
|
y: e.y + (t.y - e.y) * n
|
|
12459
|
-
}),
|
|
12460
|
-
let r = n.width /
|
|
12549
|
+
}), Oo = ({ from: e, control: t, to: n }, r) => Do(Do(e, t, r), Do(t, n, r), r), ko = ({ pivot: e, spiderHeight: t, pumpkin: n }) => {
|
|
12550
|
+
let r = n.width / co.viewBox, i = ({ x: e, y: t }) => ({
|
|
12461
12551
|
x: n.left + e * r,
|
|
12462
12552
|
y: n.top + t * r
|
|
12463
12553
|
}), a = t * .28, o = {
|
|
12464
12554
|
x: e.x,
|
|
12465
12555
|
y: e.y + a
|
|
12466
12556
|
}, s = i({
|
|
12467
|
-
x:
|
|
12468
|
-
y:
|
|
12469
|
-
}), c =
|
|
12557
|
+
x: ao.cx,
|
|
12558
|
+
y: ao.cy - ao.ry - 6
|
|
12559
|
+
}), c = co.strands.map((e) => ({
|
|
12470
12560
|
from: i(e.from),
|
|
12471
12561
|
control: i(e.control),
|
|
12472
12562
|
to: i(e.to),
|
|
12473
12563
|
d: e.d
|
|
12474
12564
|
})), l = (e) => {
|
|
12475
|
-
if (e <
|
|
12476
|
-
if (e <
|
|
12477
|
-
let t = Math.floor((e -
|
|
12478
|
-
return e < n +
|
|
12565
|
+
if (e < uo) return Do(o, s, Eo(0, lo, e));
|
|
12566
|
+
if (e < mo) {
|
|
12567
|
+
let t = Math.floor((e - uo) / fo), n = uo + t * fo, r = c[t], i = t === 0 ? s : c[t - 1].to;
|
|
12568
|
+
return e < n + po ? Do(i, r.from, Eo(n, n + po, e)) : Oo(r, Eo(n + po, n + fo, e));
|
|
12479
12569
|
}
|
|
12480
|
-
if (e <
|
|
12481
|
-
let n =
|
|
12570
|
+
if (e < yo) {
|
|
12571
|
+
let n = Do(c[c.length - 1].to, s, Eo(mo, ho, e)), r = Eo(vo, vo + 80, e) * (1 - Eo(vo + 80, yo, e)) * t * .3;
|
|
12482
12572
|
return {
|
|
12483
12573
|
x: n.x,
|
|
12484
12574
|
y: n.y - r
|
|
12485
12575
|
};
|
|
12486
12576
|
}
|
|
12487
|
-
return
|
|
12577
|
+
return Do(s, o, Eo(yo, bo, e));
|
|
12488
12578
|
}, u = (t) => {
|
|
12489
|
-
let n = l(Math.max(0, Math.min(
|
|
12579
|
+
let n = l(Math.max(0, Math.min(Co, t))), r = n.x - e.x, i = n.y - a - e.y, o = Math.hypot(r, i);
|
|
12490
12580
|
return o < .5 ? {
|
|
12491
12581
|
depth: 0,
|
|
12492
12582
|
angle: 0
|
|
@@ -12494,12 +12584,12 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12494
12584
|
depth: o,
|
|
12495
12585
|
angle: Math.atan2(-r, i) * 180 / Math.PI
|
|
12496
12586
|
};
|
|
12497
|
-
}, d = (e) => e /
|
|
12587
|
+
}, d = (e) => e / Co, f = Array.from({ length: Math.floor(Co / wo) + 1 }, (e, t) => Math.min(Co, t * wo)).map((e) => ({
|
|
12498
12588
|
offset: d(e),
|
|
12499
12589
|
pose: u(e)
|
|
12500
12590
|
}));
|
|
12501
12591
|
return {
|
|
12502
|
-
durationMs:
|
|
12592
|
+
durationMs: Co,
|
|
12503
12593
|
dangle: f.map(({ offset: e, pose: t }) => ({
|
|
12504
12594
|
offset: e,
|
|
12505
12595
|
transform: yt(t)
|
|
@@ -12509,7 +12599,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12509
12599
|
transform: `scaleY(${t.depth.toFixed(2)})`
|
|
12510
12600
|
})),
|
|
12511
12601
|
strands: c.map((e, t) => {
|
|
12512
|
-
let n =
|
|
12602
|
+
let n = uo + t * fo + po, r = uo + (t + 1) * fo;
|
|
12513
12603
|
return [
|
|
12514
12604
|
{
|
|
12515
12605
|
offset: 0,
|
|
@@ -12535,11 +12625,11 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12535
12625
|
opacity: 0
|
|
12536
12626
|
},
|
|
12537
12627
|
{
|
|
12538
|
-
offset: d(
|
|
12628
|
+
offset: d(uo),
|
|
12539
12629
|
opacity: 0
|
|
12540
12630
|
},
|
|
12541
12631
|
{
|
|
12542
|
-
offset: d(
|
|
12632
|
+
offset: d(mo),
|
|
12543
12633
|
opacity: .42
|
|
12544
12634
|
},
|
|
12545
12635
|
{
|
|
@@ -12554,12 +12644,12 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12554
12644
|
transform: "scale(1)"
|
|
12555
12645
|
},
|
|
12556
12646
|
{
|
|
12557
|
-
offset: d(
|
|
12647
|
+
offset: d(xo),
|
|
12558
12648
|
opacity: 1,
|
|
12559
12649
|
transform: "scale(1)"
|
|
12560
12650
|
},
|
|
12561
12651
|
{
|
|
12562
|
-
offset: d(
|
|
12652
|
+
offset: d(So),
|
|
12563
12653
|
opacity: 0,
|
|
12564
12654
|
transform: "scale(1.12)"
|
|
12565
12655
|
},
|
|
@@ -12575,31 +12665,31 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12575
12665
|
transform: "none"
|
|
12576
12666
|
},
|
|
12577
12667
|
{
|
|
12578
|
-
offset: d(
|
|
12668
|
+
offset: d(go),
|
|
12579
12669
|
transform: "none"
|
|
12580
12670
|
},
|
|
12581
12671
|
{
|
|
12582
|
-
offset: d(
|
|
12672
|
+
offset: d(go + 100),
|
|
12583
12673
|
transform: "rotate(-8deg) translateY(-4px)"
|
|
12584
12674
|
},
|
|
12585
12675
|
{
|
|
12586
|
-
offset: d(
|
|
12676
|
+
offset: d(go + 250),
|
|
12587
12677
|
transform: "rotate(7deg) translateY(-2px)"
|
|
12588
12678
|
},
|
|
12589
12679
|
{
|
|
12590
|
-
offset: d(
|
|
12680
|
+
offset: d(go + 400),
|
|
12591
12681
|
transform: "rotate(-5deg)"
|
|
12592
12682
|
},
|
|
12593
12683
|
{
|
|
12594
|
-
offset: d(
|
|
12684
|
+
offset: d(go + 550),
|
|
12595
12685
|
transform: "rotate(3deg)"
|
|
12596
12686
|
},
|
|
12597
12687
|
{
|
|
12598
|
-
offset: d(
|
|
12688
|
+
offset: d(go + 700),
|
|
12599
12689
|
transform: "rotate(-1deg)"
|
|
12600
12690
|
},
|
|
12601
12691
|
{
|
|
12602
|
-
offset: d(
|
|
12692
|
+
offset: d(_o),
|
|
12603
12693
|
transform: "none"
|
|
12604
12694
|
},
|
|
12605
12695
|
{
|
|
@@ -12608,14 +12698,14 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12608
12698
|
}
|
|
12609
12699
|
],
|
|
12610
12700
|
moods: [
|
|
12611
|
-
[
|
|
12612
|
-
[
|
|
12613
|
-
[
|
|
12614
|
-
[
|
|
12701
|
+
[uo, S.Wrapping],
|
|
12702
|
+
[mo, S.Idle],
|
|
12703
|
+
[vo, S.Startled],
|
|
12704
|
+
[bo + 300, S.Idle]
|
|
12615
12705
|
],
|
|
12616
12706
|
poseAt: u
|
|
12617
12707
|
};
|
|
12618
|
-
},
|
|
12708
|
+
}, Ao = (e, t, { onMood: n, onEnd: r }) => {
|
|
12619
12709
|
let i = {
|
|
12620
12710
|
duration: e.durationMs,
|
|
12621
12711
|
fill: "both"
|
|
@@ -12641,20 +12731,20 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12641
12731
|
}), c.onfinish = l;
|
|
12642
12732
|
}
|
|
12643
12733
|
};
|
|
12644
|
-
},
|
|
12734
|
+
}, jo = {
|
|
12645
12735
|
x: 0,
|
|
12646
12736
|
y: 0
|
|
12647
|
-
},
|
|
12737
|
+
}, Mo = {
|
|
12648
12738
|
depth: 0,
|
|
12649
12739
|
angle: 0
|
|
12650
|
-
},
|
|
12740
|
+
}, No = [
|
|
12651
12741
|
"pointerdown",
|
|
12652
12742
|
"wheel",
|
|
12653
12743
|
"touchstart",
|
|
12654
12744
|
"focusin",
|
|
12655
12745
|
"scroll"
|
|
12656
|
-
],
|
|
12657
|
-
let o = d(null), s = d(null), l = d(null), u = d(null), [p, m] = f(
|
|
12746
|
+
], Po = (e) => e instanceof HTMLElement && (e.isContentEditable || e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement), Fo = o(({ className: e, pumpkinRef: r, silkRef: i }) => {
|
|
12747
|
+
let o = d(null), s = d(null), l = d(null), u = d(null), [p, m] = f(jo), [_, v] = f(S.Idle), y = d(jo), b = p !== jo, x = n(C.SpiderFlee), w = n(C.SpiderDrop), T = n(C.SpiderDrum), E = n(C.PumpkinWrap), { timings: D } = t(), O = D?.spiderDropDelayMs ?? Ne, k = D?.pumpkinWrapIdleMs ?? 6e4;
|
|
12658
12748
|
return c(() => {
|
|
12659
12749
|
if (window.matchMedia?.("(prefers-reduced-motion: reduce)").matches) return;
|
|
12660
12750
|
let e = null, t = () => {
|
|
@@ -12670,7 +12760,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12670
12760
|
}, A = () => {
|
|
12671
12761
|
let e = s.current, t = l.current;
|
|
12672
12762
|
if (!e || !t || typeof e.animate != "function") return;
|
|
12673
|
-
if (p || _ || y.current !==
|
|
12763
|
+
if (p || _ || y.current !== jo) {
|
|
12674
12764
|
D();
|
|
12675
12765
|
return;
|
|
12676
12766
|
}
|
|
@@ -12688,7 +12778,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12688
12778
|
duration: 220,
|
|
12689
12779
|
easing: "cubic-bezier(0.2, 0.9, 0.3, 1)"
|
|
12690
12780
|
};
|
|
12691
|
-
t.animate([{ transform: yt(e) }, { transform: yt(
|
|
12781
|
+
t.animate([{ transform: yt(e) }, { transform: yt(Mo) }], r), n.animate([{ transform: `scaleY(${e.depth})` }, { transform: "scaleY(0)" }], r);
|
|
12692
12782
|
}, M = () => {
|
|
12693
12783
|
if (!h) return;
|
|
12694
12784
|
let e = Number(h.animations[0].currentTime ?? 0), t = vt(h.depth, Math.min(1, e / Pe));
|
|
@@ -12705,12 +12795,12 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12705
12795
|
}
|
|
12706
12796
|
let t = o.current, n = s.current, a = l.current, c = r?.current, u = i?.current, d = u?.querySelector("[data-silk-cocoon]"), p = u?.querySelector("[data-silk-group]");
|
|
12707
12797
|
if (!t || !n || !a || !c || !u || !d || !p || typeof n.animate != "function") return;
|
|
12708
|
-
if (h || y.current !==
|
|
12798
|
+
if (h || y.current !== jo) {
|
|
12709
12799
|
N(1e3);
|
|
12710
12800
|
return;
|
|
12711
12801
|
}
|
|
12712
12802
|
window.clearTimeout(f);
|
|
12713
|
-
let m = t.getBoundingClientRect(), g =
|
|
12803
|
+
let m = t.getBoundingClientRect(), g = ko({
|
|
12714
12804
|
pivot: {
|
|
12715
12805
|
x: m.left + m.width / 2,
|
|
12716
12806
|
y: m.top + m.height * .17
|
|
@@ -12720,7 +12810,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12720
12810
|
});
|
|
12721
12811
|
_ = {
|
|
12722
12812
|
plan: g,
|
|
12723
|
-
playback:
|
|
12813
|
+
playback: Ao(g, {
|
|
12724
12814
|
dangle: n,
|
|
12725
12815
|
thread: a,
|
|
12726
12816
|
strands: Array.from(u.querySelectorAll("[data-silk-strand]")),
|
|
@@ -12743,13 +12833,13 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12743
12833
|
}, L = (e) => {
|
|
12744
12834
|
E && I();
|
|
12745
12835
|
let t = o.current;
|
|
12746
|
-
T && (!t || !
|
|
12836
|
+
T && (!t || !Po(e.target) || (t.dataset.spiderTap = t.dataset.spiderTap === "a" ? "b" : "a", window.clearTimeout(C), C = window.setTimeout(() => {
|
|
12747
12837
|
delete t.dataset.spiderTap;
|
|
12748
12838
|
}, 700)));
|
|
12749
12839
|
}, R = () => {
|
|
12750
12840
|
document.hidden && I();
|
|
12751
12841
|
}, ee = () => {
|
|
12752
|
-
y.current =
|
|
12842
|
+
y.current = jo, m(jo);
|
|
12753
12843
|
}, te = () => {
|
|
12754
12844
|
if (a = 0, !e || !c) return;
|
|
12755
12845
|
let t = c.x - (e.x + y.current.x), r = c.y - (e.y + y.current.y), i = Math.max(-1, Math.min(1, t / 320));
|
|
@@ -12771,11 +12861,11 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12771
12861
|
y: e.clientY
|
|
12772
12862
|
}, a ||= window.requestAnimationFrame(te);
|
|
12773
12863
|
};
|
|
12774
|
-
return window.addEventListener("pointermove", ne), window.addEventListener("resize", t), (T || E) && window.addEventListener("keydown", L, !0), E && (
|
|
12864
|
+
return window.addEventListener("pointermove", ne), window.addEventListener("resize", t), (T || E) && window.addEventListener("keydown", L, !0), E && (No.forEach((e) => window.addEventListener(e, I, {
|
|
12775
12865
|
capture: !0,
|
|
12776
12866
|
passive: !0
|
|
12777
12867
|
})), document.addEventListener("visibilitychange", R)), D(), N(), () => {
|
|
12778
|
-
window.removeEventListener("pointermove", ne), window.removeEventListener("resize", t), window.cancelAnimationFrame(a), window.clearTimeout(d), window.removeEventListener("keydown", L, !0),
|
|
12868
|
+
window.removeEventListener("pointermove", ne), window.removeEventListener("resize", t), window.cancelAnimationFrame(a), window.clearTimeout(d), window.removeEventListener("keydown", L, !0), No.forEach((e) => window.removeEventListener(e, I, !0)), document.removeEventListener("visibilitychange", R), window.clearTimeout(f), window.clearTimeout(g), window.clearTimeout(C), h?.animations.forEach((e) => e.cancel()), _?.playback.cancel();
|
|
12779
12869
|
};
|
|
12780
12870
|
}, [
|
|
12781
12871
|
w,
|
|
@@ -12801,12 +12891,12 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12801
12891
|
}), /* @__PURE__ */ h("span", {
|
|
12802
12892
|
ref: u,
|
|
12803
12893
|
className: q.cornerSpiderWatch,
|
|
12804
|
-
children: /* @__PURE__ */ h(
|
|
12894
|
+
children: /* @__PURE__ */ h(Ri, { className: "h-9 desktop:h-11" })
|
|
12805
12895
|
})]
|
|
12806
12896
|
})
|
|
12807
12897
|
});
|
|
12808
|
-
}),
|
|
12809
|
-
let { viewBox: t, cocoon: n, strands: r } =
|
|
12898
|
+
}), Io = o(({ ref: e }) => {
|
|
12899
|
+
let { viewBox: t, cocoon: n, strands: r } = co;
|
|
12810
12900
|
return /* @__PURE__ */ h("svg", {
|
|
12811
12901
|
ref: e,
|
|
12812
12902
|
viewBox: `0 0 ${t} ${t}`,
|
|
@@ -12828,7 +12918,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12828
12918
|
}, e))]
|
|
12829
12919
|
})
|
|
12830
12920
|
});
|
|
12831
|
-
}),
|
|
12921
|
+
}), Lo = ({ className: e }) => /* @__PURE__ */ g("svg", {
|
|
12832
12922
|
viewBox: "0 0 64 64",
|
|
12833
12923
|
className: a("size-32 stroke-tertiary opacity-40 desktop:size-52", e),
|
|
12834
12924
|
fill: "none",
|
|
@@ -12841,7 +12931,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12841
12931
|
d: "M12 0 A12 12 0 0 1 0 12 M24 0 A24 24 0 0 1 0 24 M36 0 A36 36 0 0 1 0 36 M48 0 A48 48 0 0 1 0 48 M62 0 A62 62 0 0 1 0 62",
|
|
12842
12932
|
strokeWidth: "0.5"
|
|
12843
12933
|
})]
|
|
12844
|
-
}),
|
|
12934
|
+
}), Ro = o(({ onActivate: n }) => {
|
|
12845
12935
|
let { labels: r } = t(), i = d(null), o = d(null);
|
|
12846
12936
|
return /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ g("div", {
|
|
12847
12937
|
ref: i,
|
|
@@ -12850,23 +12940,23 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12850
12940
|
children: [/* @__PURE__ */ h(v, {
|
|
12851
12941
|
appearance: _.Link,
|
|
12852
12942
|
className: a(q.pumpkinButton, e.trigger),
|
|
12853
|
-
icon: /* @__PURE__ */ h(
|
|
12854
|
-
"aria-label": r.pumpkinLabel ??
|
|
12943
|
+
icon: /* @__PURE__ */ h(Ki, {}),
|
|
12944
|
+
"aria-label": r.pumpkinLabel ?? io.pumpkinLabel,
|
|
12855
12945
|
onClick: n
|
|
12856
|
-
}), /* @__PURE__ */ h(
|
|
12946
|
+
}), /* @__PURE__ */ h(Io, { ref: o })]
|
|
12857
12947
|
}), /* @__PURE__ */ h("div", {
|
|
12858
12948
|
"aria-hidden": "true",
|
|
12859
12949
|
className: "pointer-events-none absolute inset-0 select-none overflow-hidden",
|
|
12860
12950
|
children: /* @__PURE__ */ g("div", {
|
|
12861
12951
|
className: "absolute end-0 top-0",
|
|
12862
|
-
children: [/* @__PURE__ */ h(
|
|
12952
|
+
children: [/* @__PURE__ */ h(Lo, { className: "scale-x-[-1] rtl:scale-x-100" }), /* @__PURE__ */ h(Fo, {
|
|
12863
12953
|
className: "end-[26%] top-[48%]",
|
|
12864
12954
|
pumpkinRef: i,
|
|
12865
12955
|
silkRef: o
|
|
12866
12956
|
})]
|
|
12867
12957
|
})
|
|
12868
12958
|
})] });
|
|
12869
|
-
}),
|
|
12959
|
+
}), zo = {
|
|
12870
12960
|
[b.Ghost]: "ghostToastMessage",
|
|
12871
12961
|
[b.Web]: "webToastMessage",
|
|
12872
12962
|
[b.Spiders]: "spidersToastMessage",
|
|
@@ -12883,21 +12973,21 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12883
12973
|
[b.Mimic]: "mimicToastMessage",
|
|
12884
12974
|
[b.Bowling]: "bowlingToastMessage",
|
|
12885
12975
|
[b.Mummy]: "mummyToastMessage"
|
|
12886
|
-
},
|
|
12976
|
+
}, Bo = ({ trainSoundtrackUrl: e } = {}) => ({
|
|
12887
12977
|
id: "halloween",
|
|
12888
12978
|
iconUrl: y,
|
|
12889
|
-
Decoration:
|
|
12979
|
+
Decoration: Ro,
|
|
12890
12980
|
scenes: Object.values(b).map((t) => ({
|
|
12891
12981
|
id: t,
|
|
12892
|
-
Component: () => /* @__PURE__ */ h(
|
|
12982
|
+
Component: () => /* @__PURE__ */ h(ro, {
|
|
12893
12983
|
burst: t,
|
|
12894
12984
|
trainSoundtrackUrl: e
|
|
12895
12985
|
}),
|
|
12896
12986
|
durationMs: Re[t] ?? 14e3,
|
|
12897
|
-
labelId:
|
|
12987
|
+
labelId: zo[t]
|
|
12898
12988
|
})),
|
|
12899
12989
|
clickSceneIds: Ie,
|
|
12900
|
-
labels: { ...
|
|
12990
|
+
labels: { ...io },
|
|
12901
12991
|
titleLabelId: "toastTitle",
|
|
12902
12992
|
decorBehaviors: Object.values(C),
|
|
12903
12993
|
secretTrigger: {
|
|
@@ -12905,6 +12995,6 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
|
|
|
12905
12995
|
hintPhrase: Oe,
|
|
12906
12996
|
sceneIds: Le
|
|
12907
12997
|
}
|
|
12908
|
-
}),
|
|
12998
|
+
}), Vo = Bo(), Ho = Vo;
|
|
12909
12999
|
//#endregion
|
|
12910
|
-
export {
|
|
13000
|
+
export { io as HALLOWEEN_LABELS, C as HalloweenDecorBehavior, b as HalloweenScene, Bo as createHalloweenEvent, Ho as default, Vo as halloweenEvent };
|