;
! function() {
    try {
        var e = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof global ? global : "undefined" != typeof window ? window : "undefined" != typeof self ? self : {},
            n = (new e.Error).stack;
        n && ((e._debugIds || (e._debugIds = {}))[n] = "86c8c307-8ce7-773a-ec6d-03436a7a36c4")
    } catch (e) {}
}();
(globalThis.TURBOPACK || (globalThis.TURBOPACK = [])).push(["object" == typeof document ? document.currentScript : void 0, 375421, e => {
    "use strict";
    var t = e.i(416340);

    function r() {
        return (r = Object.assign || function(e) {
            for (var t = 1; t < arguments.length; t++) {
                var r = arguments[t];
                for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (e[s] = r[s])
            }
            return e
        }).apply(this, arguments)
    }
    var s = function(e) {
            return e * Math.PI / 180
        },
        n = function(e, t, r) {
            for (var s = [], n = (t - e) / (r - 1), l = 0; l < r; l++) s.push(Math.floor(e + l * n));
            return s.reverse()
        },
        l = function(e, t, r, n) {
            var l = s(n);
            return {
                x: e + r * Math.cos(l),
                y: t + r * Math.sin(l)
            }
        },
        a = ["offset", "startAngle", "endAngle"];
    e.s(["useGauge", 0, function(e) {
        var i = e.startAngle,
            o = e.endAngle,
            c = e.numTicks,
            u = e.diameter,
            d = e.domain,
            m = u / 2,
            x = d[0],
            f = d[1],
            p = (0, t.useMemo)(function() {
                return n(i, o, c).reverse()
            }, [i, o, c]),
            h = (0, t.useCallback)(function(e) {
                var t = e.angle,
                    r = l(0, 0, m - e.offset, t + 90);
                return {
                    x: r.x,
                    y: r.y,
                    dominantBaseline: "middle",
                    textAnchor: "middle"
                }
            }, [u, m]),
            g = (0, t.useCallback)(function(e) {
                var t = e.length,
                    r = e.angle,
                    s = l(0, 0, m, r + 90),
                    n = l(0, 0, m + t, r + 90);
                return {
                    x1: s.x,
                    x2: n.x,
                    y1: s.y,
                    y2: n.y
                }
            }, [p, u, m]),
            v = function(e) {
                var t = o - i;
                return Math.round(i + (e - x) / (f - x) * t)
            },
            y = (0, t.useCallback)(function(e) {
                var t = e.offset,
                    s = void 0 === t ? 0 : t,
                    n = e.startAngle,
                    i = e.endAngle,
                    o = function(e, t) {
                        if (null == e) return {};
                        var r, s, n = {},
                            l = Object.keys(e);
                        for (s = 0; s < l.length; s++) r = l[s], t.indexOf(r) >= 0 || (n[r] = e[r]);
                        return n
                    }(e, a),
                    c = l(0, 0, m + s, n + 90),
                    u = l(0, 0, m + s, i + 90),
                    d = ["M", c.x - .001, c.y, "A", m + s, m + s, 0, i - n < 180 ? "0" : "1", 1, u.x, u.y].join(" ");
                return r({
                    d: d
                }, o)
            }, [u, m]),
            b = (0, t.useCallback)(function(e) {
                var t = e.value,
                    r = e.baseRadius,
                    n = e.tipRadius,
                    a = e.offset,
                    i = v(t),
                    o = l(0, 0, m - (void 0 === a ? 0 : a), i + 90);
                return {
                    base: {
                        r: r,
                        cx: 0,
                        cy: 0
                    },
                    tip: {
                        r: n,
                        cx: o.x,
                        cy: o.y
                    },
                    points: [
                        [0 + r * Math.cos(s(i)), 0 + r * Math.sin(s(i))],
                        [o.x + n * Math.cos(s(i)), o.y + n * Math.sin(s(i))],
                        [o.x + n * Math.cos(s(i - 180)), o.y + n * Math.sin(s(i - 180))],
                        [0 + r * Math.cos(s(i - 180)), 0 + r * Math.sin(s(i - 180))]
                    ].map(function(e) {
                        return e[0] + "," + e[1]
                    }).join(" ")
                }
            }, [v, u, m]),
            k = (0, t.useCallback)(function(e, t) {
                return Math.cos(s(e - t)) * u / 2
            }, [u]);
        return {
            ticks: p,
            getTickProps: g,
            getLabelProps: h,
            valueToAngle: v,
            angleToValue: function(e) {
                var t = o - i;
                return Math.round(x + (e - i) / t * (f - x))
            },
            getArcProps: y,
            getNeedleProps: b,
            getSVGProps: function() {
                var e = function(e) {
                        return i < e && o > e ? u / 2 : Math.max(0, k(i + 90, e + 90), k(o + 90, e + 90))
                    },
                    t = [e(180), e(270), e(0), e(90)],
                    r = t[0],
                    s = t[1],
                    n = t[2],
                    l = t[3],
                    a = l + s,
                    c = r + n,
                    d = [-l, -r, a, c].join(" ");
                return {
                    width: a,
                    height: c,
                    viewBox: d
                }
            }
        }
    }])
}, 627694, e => {
    "use strict";
    var t = e.i(70549),
        r = e.i(749654),
        s = e.i(192842);
    let n = /[T ]/,
        l = /[Z ]/i,
        a = /([Z+-].*)$/,
        i = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,
        o = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,
        c = /^([+-])(\d{2})(?::?(\d{2}))?$/;

    function u(e) {
        return e ? parseInt(e) : 1
    }

    function d(e) {
        return e && parseFloat(e.replace(",", ".")) || 0
    }
    let m = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];

    function x(e) {
        return e % 400 == 0 || e % 4 == 0 && e % 100 != 0
    }
    e.s(["parseISO", 0, function(e, f) {
        let p, h, g = () => (0, r.constructFrom)(f ? .in, NaN),
            v = f ? .additionalDigits ? ? 2,
            y = function(e) {
                let t, r = {},
                    s = e.split(n);
                if (s.length > 2) return r;
                if (/:/.test(s[0]) ? t = s[0] : (r.date = s[0], t = s[1], l.test(r.date) && (r.date = e.split(l)[0], t = e.substr(r.date.length, e.length))), t) {
                    let e = a.exec(t);
                    e ? (r.time = t.replace(e[1], ""), r.timezone = e[1]) : r.time = t
                }
                return r
            }(e);
        if (y.date) {
            let e = function(e, t) {
                let r = RegExp("^(?:(\\d{4}|[+-]\\d{" + (4 + t) + "})|(\\d{2}|[+-]\\d{" + (2 + t) + "})$)"),
                    s = e.match(r);
                if (!s) return {
                    year: NaN,
                    restDateString: ""
                };
                let n = s[1] ? parseInt(s[1]) : null,
                    l = s[2] ? parseInt(s[2]) : null;
                return {
                    year: null === l ? n : 100 * l,
                    restDateString: e.slice((s[1] || s[2]).length)
                }
            }(y.date, v);
            p = function(e, t) {
                var r, s, n, l, a, o, c, d, f, p;
                if (null === t) return new Date(NaN);
                let h = e.match(i);
                if (!h) return new Date(NaN);
                let g = !!h[4],
                    v = u(h[1]),
                    y = u(h[2]) - 1,
                    b = u(h[3]),
                    k = u(h[4]),
                    j = u(h[5]) - 1;
                if (g) {
                    let e, i;
                    return (r = k, s = j, r >= 1 && r <= 53 && s >= 0 && s <= 6) ? (n = t, l = k, a = j, (e = new Date(0)).setUTCFullYear(n, 0, 4), i = e.getUTCDay() || 7, e.setUTCDate(e.getUTCDate() + ((l - 1) * 7 + a + 1 - i)), e) : new Date(NaN)
                } {
                    let e = new Date(0);
                    return (o = t, c = y, d = b, c >= 0 && c <= 11 && d >= 1 && d <= (m[c] || (x(o) ? 29 : 28)) && (f = t, (p = v) >= 1 && p <= (x(f) ? 366 : 365))) ? (e.setUTCFullYear(t, y, Math.max(v, b)), e) : new Date(NaN)
                }
            }(e.restDateString, e.year)
        }
        if (!p || isNaN(+p)) return g();
        let b = +p,
            k = 0;
        if (y.time && isNaN(k = function(e) {
                var r, s, n;
                let l = e.match(o);
                if (!l) return NaN;
                let a = d(l[1]),
                    i = d(l[2]),
                    c = d(l[3]);
                return (r = a, s = i, n = c, 24 === r ? 0 === s && 0 === n : n >= 0 && n < 60 && s >= 0 && s < 60 && r >= 0 && r < 25) ? a * t.millisecondsInHour + i * t.millisecondsInMinute + 1e3 * c : NaN
            }(y.time))) return g();
        if (y.timezone) {
            if (isNaN(h = function(e) {
                    var r;
                    if ("Z" === e) return 0;
                    let s = e.match(c);
                    if (!s) return 0;
                    let n = "+" === s[1] ? -1 : 1,
                        l = parseInt(s[2]),
                        a = s[3] && parseInt(s[3]) || 0;
                    return (r = a) >= 0 && r <= 59 ? n * (l * t.millisecondsInHour + a * t.millisecondsInMinute) : NaN
                }(y.timezone))) return g()
        } else {
            let e = new Date(b + k),
                t = (0, s.toDate)(0, f ? .in);
            return t.setFullYear(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), t.setHours(e.getUTCHours(), e.getUTCMinutes(), e.getUTCSeconds(), e.getUTCMilliseconds()), t
        }
        return (0, s.toDate)(b + k + h, f ? .in)
    }])
}, 573151, e => {
    "use strict";
    let t = e => {
            if ("number" == typeof e) return Number.isFinite(e) ? e : null;
            if ("string" == typeof e) {
                let t = Number.parseFloat(e);
                return Number.isFinite(t) ? t : null
            }
            return null
        },
        r = e => Math.max(0, Math.min(1, e)),
        s = e => {
            let s = (e => {
                if (Array.isArray(e)) return e.map(t).filter(e => null !== e);
                if ("string" == typeof e) try {
                    let r = JSON.parse(e);
                    if (Array.isArray(r)) return r.map(t).filter(e => null !== e)
                } catch {}
                return []
            })(e.outcomePrices);
            if (s.length > 0) return r(s[0]);
            let n = t(e.lastTradePrice);
            if (null !== n) return r(n);
            let l = t(e.bestBid);
            if (null !== l) return r(l);
            let a = t(e.bestAsk);
            return null !== a ? r(a) : 0
        };
    e.s(["getMarketProbability", 0, s, "sortMarketsByPriceDesc", 0, e => [...e].sort((e, t) => s(t) - s(e))])
}, 865663, 989724, 206881, 757844, 244656, 735794, e => {
    "use strict";
    var t = e.i(221628),
        r = e.i(999061),
        s = e.i(416340),
        n = e.i(688589),
        l = e.i(476979),
        a = e.i(476001),
        i = e.i(86831);

    function o(e) {
        let s, n, l = (0, r.c)(5),
            {
                children: a,
                className: o
            } = e;
        return l[0] !== o ? (s = (0, i.cn)("relative flex flex-col justify-between rounded-xl shadow-md shadow-black/4 min-h-[180px] h-full overflow-hidden pt-3 group/card", "transition hover:-translate-y-px hover:shadow-black/8 hover:shadow-md", "dark:bg-neutral-50 dark:hover:bg-neutral-100 border", o), l[0] = o, l[1] = s) : s = l[1], l[2] !== a || l[3] !== s ? (n = (0, t.jsx)("div", {
            className: s,
            children: a
        }), l[2] = a, l[3] = s, l[4] = n) : n = l[4], n
    }

    function c(e) {
        let s, n, l, a, i = (0, r.c)(10),
            {
                label: o,
                color: c
            } = e;
        return i[0] !== c ? (s = {
            color: c
        }, i[0] = c, i[1] = s) : s = i[1], i[2] !== o || i[3] !== s ? (n = (0, t.jsx)("div", {
            className: "flex items-center gap-x-1.5 min-w-0 z-[1]",
            children: (0, t.jsx)("p", {
                className: "text-body-base font-semibold truncate group-hover:!text-white transition dark:brightness-150",
                style: s,
                children: o
            })
        }), i[2] = o, i[3] = s, i[4] = n) : n = i[4], i[5] !== c ? (l = (0, t.jsx)("div", {
            style: {
                backgroundColor: c
            },
            className: "absolute inset-0 opacity-10 dark:opacity-20 z-0 rounded-sm group-hover:!opacity-100 transition"
        }), i[5] = c, i[6] = l) : l = i[6], i[7] !== n || i[8] !== l ? (a = (0, t.jsxs)(t.Fragment, {
            children: [n, l]
        }), i[7] = n, i[8] = l, i[9] = a) : a = i[9], a
    }
    var u = e.i(53950);

    function d(e) {
        let s, n, l, a = (0, r.c)(9),
            {
                children: o,
                className: c,
                footer: u,
                footerClassName: d
            } = e;
        return a[0] !== c ? (s = (0, i.cn)("flex flex-col justify-end gap-1.5 px-3 pb-2", c), a[0] = c, a[1] = s) : s = a[1], a[2] !== u || a[3] !== d ? (n = u ? (0, t.jsx)("div", {
            className: d,
            children: u
        }) : null, a[2] = u, a[3] = d, a[4] = n) : n = a[4], a[5] !== o || a[6] !== s || a[7] !== n ? (l = (0, t.jsxs)("div", {
            className: s,
            children: [o, n]
        }), a[5] = o, a[6] = s, a[7] = n, a[8] = l) : l = a[8], l
    }
    var m = e.i(573151),
        x = e.i(459225),
        f = e.i(976153),
        p = e.i(944891),
        h = e.i(23128),
        g = e.i(169010),
        v = e.i(149534);
    let y = ({
        strokeWidth: e = 1.5,
        ...t
    }) => s.default.createElement(v.Icon, {
        size: "18px",
        ...t
    }, s.default.createElement("path", {
        d: "m3.904,10.919c-.573-.92-.904-2.006-.904-3.169,0-3.314,2.686-6,6-6s6,2.686,6,6c0,.249-.015.495-.045.737",
        fill: "none",
        stroke: "currentColor",
        strokeLinecap: "round",
        strokeLinejoin: "round",
        strokeWidth: e
    }), s.default.createElement("path", {
        d: "m2,16.25l2.588-2.588c.254-.254.626-.353.973-.257l6.127,1.69c.347.096.719-.002.973-.257l3.588-3.588",
        fill: "none",
        stroke: "currentColor",
        strokeLinecap: "round",
        strokeLinejoin: "round",
        strokeWidth: e,
        "data-color": "color-2"
    }), s.default.createElement("polyline", {
        points: "16.25 14.75 16.25 11.25 12.75 11.25",
        fill: "none",
        stroke: "currentColor",
        strokeLinecap: "round",
        strokeLinejoin: "round",
        strokeWidth: e,
        "data-color": "color-2"
    }), s.default.createElement("path", {
        d: "m10.8182,5.25h-2.6137c-.6904,0-1.25.5596-1.2501,1.2499h0c0,.6905.5596,1.2503,1.2501,1.2503h1.5912c.6902,0,1.2499.5595,1.2499,1.2498h0c0,.6904-.5596,1.25-1.2499,1.25h-2.614",
        fill: "none",
        stroke: "currentColor",
        strokeLinecap: "round",
        strokeLinejoin: "round",
        strokeWidth: e
    }), s.default.createElement("line", {
        x1: "9",
        y1: "4",
        x2: "9",
        y2: "5.0002",
        fill: "none",
        stroke: "currentColor",
        strokeLinecap: "round",
        strokeLinejoin: "round",
        strokeWidth: e
    }), s.default.createElement("line", {
        x1: "9",
        y1: "11.5",
        x2: "9",
        y2: "10.5",
        fill: "none",
        stroke: "currentColor",
        strokeLinecap: "round",
        strokeLinejoin: "round",
        strokeWidth: e
    }));
    e.s(["IconDollarValueUpOutline18", 0, y], 989724);
    var b = e.i(911472),
        k = e.i(853037),
        j = e.i(650485),
        N = e.i(695787);

    function w(e) {
        let s, n, l, a, o, c = (0, r.c)(12),
            {
                children: u,
                actions: d,
                className: m
            } = e;
        return c[0] !== m ? (s = (0, i.cn)("flex w-full text-body-sm text-text-secondary relative items-center", m), c[0] = m, c[1] = s) : s = c[1], c[2] !== u ? (n = (0, t.jsx)("div", {
            className: "flex flex-row gap-1 items-center",
            children: u
        }), c[2] = u, c[3] = n) : n = c[3], c[4] !== d ? (l = d ? (0, t.jsx)("div", {
            className: "flex justify-center items-center",
            children: d
        }) : null, c[4] = d, c[5] = l) : l = c[5], c[6] !== n || c[7] !== l ? (a = (0, t.jsxs)("div", {
            className: "flex gap-2 justify-between items-center w-full overflow-x-auto whitespace-nowrap overflow-visible no-scrollbar",
            children: [n, l]
        }), c[6] = n, c[7] = l, c[8] = a) : a = c[8], c[9] !== s || c[10] !== a ? (o = (0, t.jsx)("div", {
            className: s,
            children: a
        }), c[9] = s, c[10] = a, c[11] = o) : o = c[11], o
    }

    function S() {
        let e, s = (0, r.c)(1);
        return s[0] === Symbol.for("react.memo_cache_sentinel") ? (e = (0, t.jsx)("span", {
            className: "opacity-50 mx-px",
            children: "·"
        }), s[0] = e) : e = s[0], e
    }
    var C = e.i(491636),
        T = e.i(882261),
        M = e.i(642871),
        _ = e.i(627694),
        P = e.i(390960),
        A = e.i(134709),
        E = e.i(208956),
        I = e.i(621409),
        O = e.i(841241),
        L = e.i(190033),
        F = e.i(371124),
        $ = e.i(593332);
    let H = ["bitcoin", "ethereum", "solana", "xrp", "dogecoin", "bnb", "microstrategy"],
        W = {
            "": {
                primaryTag: "crypto",
                frequency: "All"
            },
            all: {
                primaryTag: "crypto",
                frequency: "All"
            },
            "5M": {
                primaryTag: "5M",
                frequency: "All"
            },
            "15M": {
                primaryTag: "15M",
                frequency: "All"
            },
            "pre-market": {
                primaryTag: "pre-market",
                frequency: "All"
            },
            etf: {
                primaryTag: "etf",
                frequency: "All"
            },
            hourly: {
                primaryTag: "1H",
                frequency: "All"
            },
            "4hour": {
                primaryTag: "4H",
                frequency: "All"
            },
            daily: {
                primaryTag: "today",
                frequency: "All"
            },
            weekly: {
                primaryTag: "crypto",
                frequency: "Weekly"
            },
            monthly: {
                primaryTag: "crypto",
                frequency: "Monthly"
            },
            yearly: {
                primaryTag: "crypto",
                frequency: "Yearly"
            }
        };
    e.s(["CRYPTO_COINS", 0, H, "getCryptoMarketsQueryKey", 0, function({
        category: e,
        sortBy: t = "volume_24hr",
        status: r = "active",
        recurrence: s,
        query: n,
        limit: l = "20"
    }) {
        return ["crypto-markets", e, t, r, s ? ? null, n ? ? null, l]
    }, "getStoreConfigForFilter", 0, function(e) {
        return e ? e in W ? W[e] : H.includes(e) ? {
            primaryTag: e,
            frequency: "All"
        } : null : W[""]
    }, "isTimeBasedFilter", 0, function(e) {
        return "1H" === e || "4H" === e || "15M" === e || "5M" === e
    }, "mapFilterToCategory", 0, function(e) {
        switch (e) {
            case "all":
            case "":
                return {
                    category: "crypto"
                };
            case "15M":
                return {
                    category: "15M"
                };
            case "5M":
                return {
                    category: "5M"
                };
            case "hourly":
                return {
                    category: "1H"
                };
            case "4hour":
                return {
                    category: "4H"
                };
            case "daily":
                return {
                    category: "today"
                };
            case "weekly":
                return {
                    category: "crypto",
                    recurrence: "weekly"
                };
            case "monthly":
                return {
                    category: "crypto",
                    recurrence: "monthly"
                };
            case "yearly":
                return {
                    category: "crypto",
                    recurrence: "yearly"
                };
            case "pre-market":
                return {
                    category: "pre-market"
                };
            case "etf":
                return {
                    category: "etf"
                };
            case "bitcoin":
                return {
                    category: "bitcoin"
                };
            case "ethereum":
                return {
                    category: "ethereum"
                };
            case "solana":
                return {
                    category: "solana"
                };
            case "xrp":
                return {
                    category: "xrp"
                };
            case "dogecoin":
                return {
                    category: "dogecoin"
                };
            case "bnb":
                return {
                    category: "bnb"
                };
            case "microstrategy":
                return {
                    category: "microstrategy"
                };
            default:
                return {
                    category: e
                }
        }
    }], 206881);
    var D = e.i(864006),
        R = e.i(604777),
        B = e.i(196593),
        z = e.i(180715);
    let U = ({
            strokeWidth: e = 1.5,
            ...t
        }) => s.default.createElement(z.Icon, {
            size: "12px",
            ...t
        }, s.default.createElement("polyline", {
            points: "9.25 4.75 11.25 2.75 9.25 .75",
            fill: "none",
            stroke: "currentColor",
            strokeLinecap: "round",
            strokeLinejoin: "round",
            strokeWidth: e
        }), s.default.createElement("path", {
            d: "m11,2.75H3.25c-1.105,0-2,.895-2,2v.5",
            fill: "none",
            stroke: "currentColor",
            strokeLinecap: "round",
            strokeLinejoin: "round",
            strokeWidth: e
        }), s.default.createElement("polyline", {
            points: "2.75 7.25 .75 9.25 2.75 11.25",
            fill: "none",
            stroke: "currentColor",
            strokeLinecap: "round",
            strokeLinejoin: "round",
            strokeWidth: e,
            "data-color": "color-2"
        }), s.default.createElement("path", {
            d: "m1,9.25h7.75c1.105,0,2-.895,2-2v-.5",
            fill: "none",
            stroke: "currentColor",
            strokeLinecap: "round",
            strokeLinejoin: "round",
            strokeWidth: e,
            "data-color": "color-2"
        })),
        q = ["hourly", "daily", "weekly", "monthly"],
        G = {
            hourly: "filters.frequencyOptions.hourly",
            daily: "filters.frequencyOptions.daily",
            weekly: "filters.frequencyOptions.weekly",
            monthly: "filters.frequencyOptions.monthly"
        },
        V = function(e) {
            let s, n, l, a, i, o, c = (0, r.c)(13);
            c[0] !== e ? ({
                series: n,
                ...s
            } = e, c[0] = e, c[1] = s, c[2] = n) : (s = c[1], n = c[2]);
            let u = (0, R.useTranslations)();
            if (!n) return null;
            let d = n.recurrence;
            c[3] !== d ? (l = d && q.includes(d), c[3] = d, c[4] = l) : l = c[4];
            let m = l;
            return c[5] === Symbol.for("react.memo_cache_sentinel") ? (a = (0, t.jsx)(U, {}), c[5] = a) : a = c[5], c[6] !== m || c[7] !== d || c[8] !== u ? (i = m && d && (0, t.jsx)("span", {
                children: String(u(G[d]))
            }), c[6] = m, c[7] = d, c[8] = u, c[9] = i) : i = c[9], c[10] !== s || c[11] !== i ? (o = (0, t.jsxs)("div", {
                className: "flex items-center gap-1.5 pl-1 text-text-secondary",
                ...s,
                children: [a, i]
            }), c[10] = s, c[11] = i, c[12] = o) : o = c[12], o
        };
    e.s(["default", 0, V], 757844);
    let Y = ({
        volume: e,
        series: r,
        event: n,
        isLive: a = !1,
        children: i,
        status: o
    }) => {
        let c = (0, R.useTranslations)(),
            u = (0, D.useLocale)(),
            d = (0, A.default)(),
            m = n ? .tags ? .some(e => "sports" === e.slug),
            x = (n ? .slug ? .includes("updown-15m") || n ? .slug ? .includes("updown-5m")) && n ? .seriesVolume24hr,
            f = !!(n ? .tags ? .length && (m || x)),
            p = (0, s.useMemo)(() => ({
                volume: e,
                startDate: n ? .startDate,
                endDate: n ? .endDate,
                closed: n ? .closed
            }), [e, n ? .startDate, n ? .endDate, n ? .closed]),
            {
                showNew: h,
                showVol: g
            } = (0, L.useTagVisibility)(p),
            v = n ? .eventCreators ? .length ? n.eventCreators[0] : null,
            y = n ? .closedTime,
            b = (0, s.useMemo)(() => {
                let e = n ? .seriesSlug ? ? n ? .series ? .[0] ? .slug;
                return !!e && (0, l.getSportSupportsGames)(e)
            }, [n ? .seriesSlug, n ? .series]),
            k = !b && h,
            j = !!b || g,
            N = (0, s.useCallback)(() => {
                let e;
                if (!n ? .startTime) return;
                let t = new Date(n.startTime),
                    r = (0, P.getDateFnsLocale)(u);
                return e = (0, T.isToday)(t) ? "" : (0, M.isTomorrow)(t) ? c("cards.tomorrow") : (0, C.format)(t, "LLL dd,", {
                    locale: r
                }), `${e} ${(0,C.format)(t,"p",{locale:r})}`
            }, [n ? .startTime, c, u]),
            W = (0, s.useMemo)(() => N(), [N]),
            z = (0, s.useMemo)(() => (0, l.getSportDisplayName)(n ? .seriesSlug ? ? n ? .series ? .[0] ? .slug ? ? ""), [n ? .seriesSlug, n ? .series]),
            U = (0, s.useMemo)(() => {
                let e = n ? .seriesSlug ? ? n ? .series ? .[0] ? .slug;
                if (!e || !(0, l.isSportSupported)(e)) return "";
                let t = (0, l.getSportHref)(e);
                return t ? n ? .eventWeek && !(0, l.isEsportsSlug)(e) ? `${t}/week/${n.eventWeek}` : t : ""
            }, [n ? .seriesSlug, n ? .series, n ? .eventWeek]),
            q = (0, s.useMemo)(() => {
                var e;
                let t;
                return e = n ? .tags, t = e ? .find(e => H.includes(e.slug)), t ? .label ? {
                    label: c && c(`crypto.items.${t.slug}`) || t.label,
                    href: `/crypto/${t.slug}`
                } : null
            }, [n ? .tags, c]),
            G = !!U,
            Y = (0, s.useMemo)(() => {
                if (!a) return null;
                let e = n ? .seriesSlug ? ? n ? .series ? .[0] ? .slug ? ? "",
                    t = (0, $.canonicalSportSlug)(e),
                    r = (0, F.parseElapsedTime)({
                        gameState: $.GameState.Live,
                        elapsed: n ? .elapsed ? ? "",
                        league: t,
                        period: n ? .period ? ? "",
                        time: n ? .startTime ? ? "",
                        timestamp: null,
                        t: c
                    }).time;
                return r ? .split(" • ")[0]
            }, [a, n ? .seriesSlug, n ? .series, n ? .elapsed, n ? .period, n ? .startTime, c]);
        return "resolved" === o ? (0, t.jsxs)("div", {
            className: "w-full flex items-center justify-between h-[28px] text-body-sm",
            children: [(0, t.jsxs)("div", {
                className: "flex gap-x-1 items-center",
                children: [(0, t.jsxs)("p", {
                    className: "text-text-secondary text-body-sm",
                    children: [(0, B.formatAbbreviated)(e, {
                        decimals: 0,
                        currency: !0
                    }), " ", c("events.headerMeta.volume")]
                }), !!v && (0, t.jsx)(O.CreatorChip, {
                    creator: v,
                    isMarketCard: !0
                }), b ? G ? (0, t.jsx)(E.default, {
                    href: U,
                    onClick: e => e.stopPropagation(),
                    className: "text-text-secondary hover:text-text-tertiary cursor-pointer",
                    children: z
                }) : (0, t.jsx)("span", {
                    className: "text-text-secondary",
                    children: z
                }) : r && (0, t.jsx)(V, {
                    series: r
                })]
            }), y ? (0, t.jsx)("div", {
                className: "flex items-center gap-1",
                children: (0, t.jsxs)("p", {
                    className: "text-text-secondary",
                    children: [c("cards.ended"), " ", (0, C.format)((0, _.parseISO)(y), "MMM d, yyyy", {
                        locale: (0, P.getDateFnsLocale)(u)
                    })]
                })
            }) : (0, t.jsx)("div", {})]
        }) : (0, t.jsxs)(w, {
            actions: i,
            children: [a && (0, t.jsxs)("div", {
                className: "flex items-center gap-1.5 ml-1 relative h-5",
                children: [(0, t.jsxs)("div", {
                    className: "relative flex items-center justify-center",
                    children: [(0, t.jsx)("div", {
                        className: "size-[7px] rounded-full bg-red-500 relative z-10"
                    }), (0, t.jsx)("div", {
                        className: "absolute -inset-px size-[9px] rounded-full bg-red-500 opacity-75 animate-ping"
                    })]
                }), (0, t.jsx)("p", {
                    className: `leading-none text-body-sm ${Y?"text-text-primary":"text-red-500 uppercase"}`,
                    children: Y || c("cards.live")
                }), f && (0, t.jsxs)("p", {
                    className: "text-text-secondary ml-1",
                    children: [(0, t.jsxs)("span", {
                        className: "uppercase",
                        children: [(0, B.formatAbbreviated)(e, {
                            decimals: 0,
                            currency: !0
                        }), " "]
                    }), c("events.headerMeta.volume")]
                })]
            }), !a && k && !b && (0, t.jsxs)("div", {
                className: "flex items-center gap-1",
                children: [(0, t.jsx)(I.IconSparkle4Fill12, {
                    className: "text-yellow-600 dark:text-yellow-500",
                    size: 10
                }), (0, t.jsx)("p", {
                    className: "text-yellow-600 dark:text-yellow-500 mt-px text-body-sm",
                    children: c("cards.new")
                })]
            }), !a && k && j && !b && (0, t.jsx)(S, {}), !a && j && (0, t.jsxs)("p", {
                className: "text-text-secondary",
                children: [(0, t.jsxs)("span", {
                    className: "uppercase",
                    children: [(0, B.formatAbbreviated)(e, {
                        decimals: 0,
                        currency: !0
                    }), " "]
                }), c("events.headerMeta.volume")]
            }), !!v && (0, t.jsx)(O.CreatorChip, {
                creator: v,
                isMarketCard: !0
            }), b && (0, t.jsxs)(t.Fragment, {
                children: [(a || j || !!v) && (0, t.jsx)(S, {}), G ? (0, t.jsx)(E.default, {
                    href: U,
                    onClick: e => e.stopPropagation(),
                    className: "text-text-secondary hover:text-text-tertiary cursor-pointer",
                    children: z
                }) : (0, t.jsx)("span", {
                    className: "text-text-secondary",
                    children: z
                }), W && !a && d && (0, t.jsxs)(t.Fragment, {
                    children: [(0, t.jsx)(S, {}), W]
                })]
            }), !b && q && (0, t.jsxs)(t.Fragment, {
                children: [(a || j || !!v || k) && (0, t.jsx)(S, {}), (0, t.jsx)(E.default, {
                    href: q.href,
                    onClick: e => e.stopPropagation(),
                    className: "text-text-secondary hover:text-text-tertiary cursor-pointer",
                    children: q.label
                })]
            }), !a && !b && r && (0, t.jsx)(V, {
                series: r
            })]
        })
    };
    var J = e.i(891685),
        K = e.i(289981);
    let X = e => {
        let s, n, l, a, i, o, c, u, d, m, x = (0, r.c)(30),
            {
                eventType: f,
                event: p,
                status: v
            } = e,
            b = (0, R.useTranslations)();
        x[0] === Symbol.for("react.memo_cache_sentinel") ? (s = ["hasHoldingRewards"], x[0] = s) : s = x[0];
        let {
            hasHoldingRewards: w
        } = (0, J.useEventContext)(s);
        x[1] !== w || x[2] !== p.markets ? (n = w || p.markets.length > 0 && p.markets.every(Z), x[1] = w, x[2] = p.markets, x[3] = n) : n = x[3];
        let S = n;
        if (x[4] !== p) {
            e: {
                if (!p || p.closed || !p.markets ? .length) {
                    l = void 0;
                    break e
                }
                let e = p.markets.filter(Q);
                if (!e.length) {
                    l = void 0;
                    break e
                }
                l = e.sort((e, t) => (0, j.sortEventMarketsByThreshold)(e, t, p))[0]
            }
            x[4] = p,
            x[5] = l
        }
        else l = x[5];
        let C = l;
        t: {
            if ("sports" === f) {
                let e;
                x[6] !== p.markets || x[7] !== p.volume ? (e = (0, K.getGameLinesVolume)(p.markets, p.volume), x[6] = p.markets, x[7] = p.volume, x[8] = e) : e = x[8], a = e;
                break t
            }
            let e = p.seriesVolume24hr;
            if (e) {
                a = e;
                break t
            }
            if (1 === p.markets.length && !p.series) {
                a = p.markets[0].volume_num || parseFloat(p.markets[0].volume) || p.volume || 0;
                break t
            }
            a = p.volume
        }
        let T = a,
            M = p.series ? .[0],
            _ = p.isLive;
        x[9] !== S || x[10] !== b ? (i = S && (0, t.jsx)(g.Tooltip, {
            showArrow: !1,
            sideOffset: 4,
            mobileSupport: !0,
            content: b("rewards.earn4Percent"),
            className: "py-2 text-xs font-medium",
            children: (0, t.jsx)(h.Button, {
                "aria-label": b("rewards.earn4PercentHoldingRewards"),
                variant: "ghost",
                size: "iconSm",
                className: "text-text-secondary w-7 h-7 hover:bg-black/5 dark:hover:bg-white/5",
                children: (0, t.jsx)(y, {
                    size: 17,
                    className: "mt-px"
                })
            })
        }), x[9] = S, x[10] = b, x[11] = i) : i = x[11], x[12] !== C ? (o = !!C && (0, t.jsx)(k.default, {
            asIcon: !0,
            lazyLoad: !0,
            activeMarketProp: C
        }), x[12] = C, x[13] = o) : o = x[13], x[14] !== p.id ? (c = p.id.toString(), x[14] = p.id, x[15] = c) : c = x[15];
        let P = "sports" === f;
        return x[16] !== p.slug || x[17] !== P || x[18] !== c ? (u = (0, t.jsx)(N.default, {
            eventId: c,
            eventSlug: p.slug,
            small: !0,
            isSportsEvent: P
        }), x[16] = p.slug, x[17] = P, x[18] = c, x[19] = u) : u = x[19], x[20] !== u || x[21] !== i || x[22] !== o ? (d = (0, t.jsxs)("div", {
            className: "flex",
            children: [i, o, u]
        }), x[20] = u, x[21] = i, x[22] = o, x[23] = d) : d = x[23], x[24] !== p || x[25] !== v || x[26] !== d || x[27] !== M || x[28] !== T ? (m = (0, t.jsx)(Y, {
            event: p,
            volume: T,
            series: M,
            isLive: _,
            status: v,
            children: d
        }), x[24] = p, x[25] = v, x[26] = d, x[27] = M, x[28] = T, x[29] = m) : m = x[29], m
    };

    function Z(e) {
        return !0 === e.holdingRewardsEnabled
    }

    function Q(e) {
        return e ? .active && !e.closed && !e.archived && (0, b.hasRewardsConfig)(e)
    }
    var ee = e.i(902268),
        et = e.i(148121);

    function er(e) {
        let s, n, l, a, o, c, u, d = (0, r.c)(19),
            {
                media: m,
                label: x,
                right: f,
                className: p,
                contentClassName: h,
                labelClassName: g
            } = e;
        return d[0] !== p ? (s = (0, i.cn)("flex justify-between items-center gap-4 w-full shrink-0", p), d[0] = p, d[1] = s) : s = d[1], d[2] !== h ? (n = (0, i.cn)("flex flex-1 items-center gap-2 min-w-0", h), d[2] = h, d[3] = n) : n = d[3], d[4] !== g ? (l = (0, i.cn)("min-w-0 text-body-base font-[440] text-text-primary", g), d[4] = g, d[5] = l) : l = d[5], d[6] !== x || d[7] !== l ? (a = (0, t.jsx)("div", {
            className: l,
            children: x
        }), d[6] = x, d[7] = l, d[8] = a) : a = d[8], d[9] !== m || d[10] !== n || d[11] !== a ? (o = (0, t.jsxs)("div", {
            className: n,
            children: [m, a]
        }), d[9] = m, d[10] = n, d[11] = a, d[12] = o) : o = d[12], d[13] !== f ? (c = f ? (0, t.jsx)("div", {
            className: "shrink-0",
            children: f
        }) : null, d[13] = f, d[14] = c) : c = d[14], d[15] !== s || d[16] !== o || d[17] !== c ? (u = (0, t.jsxs)("div", {
            className: s,
            children: [o, c]
        }), d[15] = s, d[16] = o, d[17] = c, d[18] = u) : u = d[18], u
    }
    let es = (0, s.createContext)({});

    function en(e) {
        let s, n, l = (0, r.c)(8),
            {
                page: a,
                position: i,
                cardSource: o,
                skipImpression: c,
                children: u
            } = e;
        return l[0] !== o || l[1] !== a || l[2] !== i || l[3] !== c ? (s = {
            page: a,
            position: i,
            cardSource: o,
            skipImpression: c
        }, l[0] = o, l[1] = a, l[2] = i, l[3] = c, l[4] = s) : s = l[4], l[5] !== u || l[6] !== s ? (n = (0, t.jsx)(es.Provider, {
            value: s,
            children: u
        }), l[5] = u, l[6] = s, l[7] = n) : n = l[7], n
    }

    function el() {
        return (0, s.useContext)(es)
    }
    e.s(["MarketCardTrackingProvider", 0, en, "URL_SLUG_TO_PAGE", 0, {
        politics: "politics",
        tech: "tech",
        culture: "culture",
        "pop-culture": "culture",
        business: "business",
        science: "science",
        ai: "ai",
        world: "world",
        "middle-east": "middle-east",
        geopolitics: "geopolitics",
        economy: "economy",
        "climate-science": "climate-science",
        new: "new"
    }, "useMarketCardTracking", 0, el], 244656);
    var ea = e.i(486325),
        ei = e.i(248131);

    function eo(e) {
        let s, n, l = (0, r.c)(8),
            {
                children: a,
                className: o,
                variant: c,
                asChild: u
            } = e,
            d = "yes" === c ? "outcome-yes" : "outcome-no",
            m = "yes" === c ? "dark:hover:bg-green-400 hover:bg-green-600 hover:!text-white" : "hover:!bg-red-500 hover:!text-white";
        return l[0] !== o || l[1] !== m ? (s = (0, i.cn)("relative h-[27px] !rounded-xs group px-3.5 w-10", m, o), l[0] = o, l[1] = m, l[2] = s) : s = l[2], l[3] !== u || l[4] !== a || l[5] !== d || l[6] !== s ? (n = (0, t.jsx)(h.Button, {
            asChild: u,
            variant: d,
            size: "icon",
            className: s,
            children: a
        }), l[3] = u, l[4] = a, l[5] = d, l[6] = s, l[7] = n) : n = l[7], n
    }

    function ec(e) {
        let s, n, l, a, o = (0, r.c)(13),
            {
                label: c,
                probability: u,
                noPricesAvailable: d,
                disableProbabilityHover: m,
                className: x
            } = e,
            f = void 0 !== d && d,
            p = void 0 !== m && m,
            h = p || f ? "" : "group-hover:opacity-0";
        return o[0] !== x || o[1] !== h ? (s = (0, i.cn)("transition opacity-100 truncate absolute top-1/2 -translate-y-1/2 left-1/2 -translate-x-1/2 max-w-[36px] text-body-sm", h, x), o[0] = x, o[1] = h, o[2] = s) : s = o[2], o[3] !== c || o[4] !== s ? (n = (0, t.jsx)("span", {
            className: s,
            children: c
        }), o[3] = c, o[4] = s, o[5] = n) : n = o[5], o[6] !== p || o[7] !== f || o[8] !== u ? (l = !p && (0, t.jsx)("span", {
            className: (0, i.cn)("text-body-sm text-center absolute transition top-1/2 -translate-y-1/2 opacity-0 left-1/2 -translate-x-1/2", f ? "" : "group-hover:opacity-100"),
            children: u
        }), o[6] = p, o[7] = f, o[8] = u, o[9] = l) : l = o[9], o[10] !== n || o[11] !== l ? (a = (0, t.jsxs)(t.Fragment, {
            children: [n, l]
        }), o[10] = n, o[11] = l, o[12] = a) : a = o[12], a
    }

    function eu(e) {
        let s, n, l, a = (0, r.c)(8),
            {
                probability: o,
                children: c,
                className: u
            } = e;
        return a[0] !== u ? (s = (0, i.cn)("flex justify-end gap-1 items-center", u), a[0] = u, a[1] = s) : s = a[1], a[2] !== o ? (n = (0, t.jsx)("p", {
            className: "text-[15px] font-semibold text-text-primary mr-1",
            children: o
        }), a[2] = o, a[3] = n) : n = a[3], a[4] !== c || a[5] !== s || a[6] !== n ? (l = (0, t.jsxs)("div", {
            className: s,
            children: [n, c]
        }), a[4] = c, a[5] = s, a[6] = n, a[7] = l) : l = a[7], l
    }
    var ed = e.i(3643);
    let em = e => {
            let s, n, l, a, i, o = (0, r.c)(19),
                {
                    market: c,
                    event: u,
                    idx: d,
                    probability: m,
                    noPricesAvailable: x,
                    disableOutcomeProbabilityHover: f
                } = e,
                p = void 0 !== f && f,
                {
                    page: h,
                    position: g,
                    cardSource: v
                } = el();
            e: {
                if (!["Yes", "No"].includes(c.outcomes[d])) {
                    let e, t = c.outcomes[d];
                    o[0] !== t ? (e = t.slice(0, 3), o[0] = t, o[1] = e) : e = o[1], s = `${e}.`;
                    break e
                }
                s = c.outcomes[d]
            }
            let y = s,
                b = 0 === d ? "yes" : "no",
                k = `/event/${u.slug}?marketSlug=${c.slug}&outcomeIndex=${d}`;
            o[2] !== v || o[3] !== h || o[4] !== g ? (n = () => {
                h && (0, ea.setCardReferrer)(h, g, v)
            }, o[2] = v, o[3] = h, o[4] = g, o[5] = n) : n = o[5];
            let j = `${m<1e-4?"<1":m}%`;
            return o[6] !== y || o[7] !== p || o[8] !== x || o[9] !== j ? (l = (0, t.jsx)(ec, {
                label: y,
                probability: j,
                noPricesAvailable: x,
                disableProbabilityHover: p
            }), o[6] = y, o[7] = p, o[8] = x, o[9] = j, o[10] = l) : l = o[10], o[11] !== k || o[12] !== n || o[13] !== l ? (a = (0, t.jsx)(E.default, {
                href: k,
                onClick: n,
                children: l
            }), o[11] = k, o[12] = n, o[13] = l, o[14] = a) : a = o[14], o[15] !== d || o[16] !== b || o[17] !== a ? (i = (0, t.jsx)(eo, {
                asChild: !0,
                variant: b,
                children: a
            }, d), o[15] = d, o[16] = b, o[17] = a, o[18] = i) : i = o[18], i
        },
        ex = e => {
            let s, n, l, a, i, o = (0, r.c)(18),
                {
                    market: c,
                    event: u,
                    disableOutcomeProbabilityHover: d
                } = e,
                m = void 0 !== d && d,
                {
                    lastPrice: x,
                    lastPriceString: f,
                    showLastPrice: p
                } = (0, ed.useFallbackPercentChance)(c);
            o[0] !== x ? (s = x ? parseInt(x.toFixed(0), 10) : void 0, o[0] = x, o[1] = s) : s = o[1];
            let h = s,
                g = p ? f : "-",
                v = h ? ? 0,
                y = 100 - (h ? ? 0);
            o[2] !== v || o[3] !== y ? (n = [v, y], o[2] = v, o[3] = y, o[4] = n) : n = o[4];
            let b = !p || void 0 === x || void 0 === f;
            o[5] !== g || o[6] !== n || o[7] !== b ? (l = {
                formattedProbability: g,
                probabilities: n,
                noPricesAvailable: b
            }, o[5] = g, o[6] = n, o[7] = b, o[8] = l) : l = o[8];
            let {
                formattedProbability: k,
                probabilities: j,
                noPricesAvailable: N
            } = l;
            return o[9] !== m || o[10] !== u || o[11] !== c || o[12] !== N || o[13] !== j ? (a = c.outcomes.map((e, r) => (0, t.jsx)(em, {
                market: c,
                event: u,
                idx: r,
                probability: j[r],
                noPricesAvailable: N,
                disableOutcomeProbabilityHover: m
            }, `${c.conditionId}-${c.outcomes[r]}`)), o[9] = m, o[10] = u, o[11] = c, o[12] = N, o[13] = j, o[14] = a) : a = o[14], o[15] !== k || o[16] !== a ? (i = (0, t.jsx)(eu, {
                probability: k,
                children: a
            }), o[15] = k, o[16] = a, o[17] = i) : i = o[17], i
        },
        ef = e => {
            let s, n, l, a, i, o = (0, r.c)(18),
                {
                    market: c,
                    event: u,
                    disableOutcomeProbabilityHover: d
                } = e,
                m = void 0 !== d && d,
                {
                    page: x,
                    position: f,
                    cardSource: p
                } = el();
            if (!c) return null;
            let h = c.closed,
                g = `/event/${u.slug}/${c.slug}`;
            o[0] !== p || o[1] !== x || o[2] !== f ? (s = () => {
                x && (0, ea.setCardReferrer)(x, f, p)
            }, o[0] = p, o[1] = x, o[2] = f, o[3] = s) : s = o[3];
            let v = c.groupItemTitle ? ? c.question;
            return o[4] !== v ? (n = (0, t.jsx)("p", {
                className: "line-clamp-1 break-all group-hover:underline",
                children: v
            }), o[4] = v, o[5] = n) : n = o[5], o[6] !== g || o[7] !== s || o[8] !== n ? (l = (0, t.jsx)(E.default, {
                href: ei.Location.EventDetail,
                as: g,
                prefetch: !1,
                className: "group block min-w-0",
                onClick: s,
                children: n
            }), o[6] = g, o[7] = s, o[8] = n, o[9] = l) : l = o[9], o[10] !== m || o[11] !== u || o[12] !== h || o[13] !== c ? (a = h ? (0, t.jsx)(ep, {
                market: c
            }) : (0, t.jsx)(ex, {
                market: c,
                event: u,
                disableOutcomeProbabilityHover: m
            }), o[10] = m, o[11] = u, o[12] = h, o[13] = c, o[14] = a) : a = o[14], o[15] !== l || o[16] !== a ? (i = (0, t.jsx)(er, {
                label: l,
                right: a
            }), o[15] = l, o[16] = a, o[17] = i) : i = o[17], i
        },
        ep = e => {
            let s, n, l, a, i, o, c = (0, r.c)(13),
                {
                    market: u
                } = e;
            if (c[0] !== u) {
                let e = (0, f.findWinningIndex)(u.outcomePrices);
                s = ["yes", "no"].includes((n = (0, f.getWinningTitle)(u, e)).toLowerCase()) ? (0, f.determineOutcomeType)(n) : "yes", c[0] = u, c[1] = s, c[2] = n
            } else s = c[1], n = c[2];
            let d = s;
            return c[3] !== d ? (l = "yes" === d && (0, t.jsx)(ee.IconCircleCheckFill12, {
                className: "text-green-600 dark:text-green-500"
            }), c[3] = d, c[4] = l) : l = c[4], c[5] !== d ? (a = "no" === d && (0, t.jsx)(et.IconCircleXmarkFill12, {
                className: "text-red-500"
            }), c[5] = d, c[6] = a) : a = c[6], c[7] !== n ? (i = n && (0, t.jsx)("p", {
                className: "text-[13px] font-normal leading-none text-text-primary truncate ml-0.5 whitespace-nowrap text-right max-w-[100px]",
                children: n
            }), c[7] = n, c[8] = i) : i = c[8], c[9] !== l || c[10] !== a || c[11] !== i ? (o = (0, t.jsxs)("div", {
                className: "flex items-center gap-0.5",
                children: [l, a, i]
            }), c[9] = l, c[10] = a, c[11] = i, c[12] = o) : o = c[12], o
        },
        eh = e => {
            let s, n, l, a = (0, r.c)(8),
                {
                    markets: i,
                    event: o,
                    disableOutcomeProbabilityHover: c
                } = e,
                u = void 0 !== c && c;
            if (a[0] !== u || a[1] !== o || a[2] !== i) {
                let e = i.slice(0, 2);
                s = "relative h-[71px] w-full mt-0.5 pb-1", n = e.map((r, s) => (0, t.jsx)("div", {
                    className: s === e.length - 1 ? "" : "mb-2",
                    children: (0, t.jsx)(ef, {
                        market: r,
                        event: o,
                        disableOutcomeProbabilityHover: u
                    })
                }, r.id)), a[0] = u, a[1] = o, a[2] = i, a[3] = s, a[4] = n
            } else s = a[3], n = a[4];
            return a[5] !== s || a[6] !== n ? (l = (0, t.jsx)("div", {
                className: s,
                children: n
            }), a[5] = s, a[6] = n, a[7] = l) : l = a[7], l
        },
        eg = e => {
            let s, n, l, a = (0, r.c)(8),
                {
                    markets: i,
                    event: o,
                    disableOutcomeProbabilityHover: c
                } = e,
                u = void 0 !== c && c;
            if (a[0] !== u || a[1] !== o || a[2] !== i) {
                let e = i.slice(0, 2);
                s = "relative h-[70px] w-full select-none", n = e.map((r, s) => (0, t.jsx)("div", {
                    className: s === e.length - 1 ? "" : "mb-2",
                    children: (0, t.jsx)(ef, {
                        market: r,
                        event: o,
                        disableOutcomeProbabilityHover: u
                    })
                }, r.id)), a[0] = u, a[1] = o, a[2] = i, a[3] = s, a[4] = n
            } else s = a[3], n = a[4];
            return a[5] !== s || a[6] !== n ? (l = (0, t.jsx)("div", {
                className: s,
                children: n
            }), a[5] = s, a[6] = n, a[7] = l) : l = a[7], l
        },
        ev = e => {
            let s, n, l, a, i, o = (0, r.c)(19),
                {
                    event: c,
                    status: u,
                    disableOutcomeProbabilityHover: d
                } = e,
                f = void 0 !== d && d,
                {
                    markets: h
                } = (0, x.useSortedMarkets)(c);
            e: {
                let e;
                if ("resolved" === u) {
                    let e;
                    o[0] !== h ? (e = [...h].sort(ey), o[0] = h, o[1] = e) : e = o[1], s = e;
                    break e
                }
                o[2] !== h ? (e = (0, m.sortMarketsByPriceDesc)(h), o[2] = h, o[3] = e) : e = o[3],
                s = e
            }
            let g = s;
            return o[4] !== f || o[5] !== c || o[6] !== g ? (n = (0, t.jsx)(p.Media, {
                lessThan: "lg",
                children: (0, t.jsx)(eg, {
                    markets: g,
                    event: c,
                    disableOutcomeProbabilityHover: f
                })
            }), o[4] = f, o[5] = c, o[6] = g, o[7] = n) : n = o[7], o[8] !== f || o[9] !== c || o[10] !== g ? (l = (0, t.jsx)(p.Media, {
                greaterThanOrEqual: "lg",
                children: (0, t.jsx)(eh, {
                    markets: g,
                    event: c,
                    disableOutcomeProbabilityHover: f
                })
            }), o[8] = f, o[9] = c, o[10] = g, o[11] = l) : l = o[11], o[12] !== c || o[13] !== u ? (a = (0, t.jsx)(X, {
                eventType: "multiple",
                event: c,
                status: u
            }), o[12] = c, o[13] = u, o[14] = a) : a = o[14], o[15] !== n || o[16] !== l || o[17] !== a ? (i = (0, t.jsxs)(t.Fragment, {
                children: [n, l, a]
            }), o[15] = n, o[16] = l, o[17] = a, o[18] = i) : i = o[18], i
        };

    function ey(e, t) {
        return (0, f.findWinningIndex)(e.outcomePrices) - (0, f.findWinningIndex)(t.outcomePrices)
    }
    var eb = e.i(11408),
        ek = e.i(831089);
    let ej = (e, t) => {
        if (!e || !Array.isArray(e.markets)) return [];
        let r = !!e.seriesSlug && (0, l.isSportSupported)(e.seriesSlug);
        return e.markets.filter(e => !!e && (!!t ? ._sts && (t ? ._sts === "active" && !e.closed || t ? ._sts === "resolved" && e.closed || t ? ._sts === "all") || !t ? ._sts && !e.closed) && !e.archived && (!r || "spreads" !== e.sportsMarketType && "totals" !== e.sportsMarketType))
    };
    e.s(["filterActiveMarkets", 0, ej], 735794);
    let eN = (e, t) => {
        let r = ej(e, {
            _sts: t
        });
        return r.length > 0 ? r : e && Array.isArray(e.markets) ? e.markets.filter(e => !!e && !0 !== e.archived && ("active" === t && !0 !== e.closed || "resolved" === t && !0 === e.closed)) : []
    };
    var ew = e.i(870555);
    let eS = s.default.memo(e => {
            let s, n, l, a, i, o, c = (0, r.c)(19),
                {
                    outcomeIdx: u,
                    event: d,
                    market: m
                } = e,
                {
                    page: x,
                    position: f,
                    cardSource: p
                } = el(),
                g = 0 === u ? "outcome-yes" : "outcome-no",
                v = m.outcomes[u];
            c[0] !== g || c[1] !== v ? (s = {
                variant: g,
                outcomeTitle: v
            }, c[0] = g, c[1] = v, c[2] = s) : s = c[2];
            let {
                variant: y,
                outcomeTitle: b
            } = s;
            c[3] !== p || c[4] !== x || c[5] !== f ? (n = () => {
                x && (0, ea.setCardReferrer)(x, f, p)
            }, c[3] = p, c[4] = x, c[5] = f, c[6] = n) : n = c[6];
            let k = n,
                j = 0 === u ? "dark:hover:bg-green-400 hover:bg-green-600 hover:!text-white" : "hover:!bg-red-500 hover:!text-white";
            c[7] !== j ? (l = (0, ew.cn)("relative flex-1 min-w-0 overflow-hidden h-10 !rounded-sm px-2 group", j), c[7] = j, c[8] = l) : l = c[8];
            let N = `/event/${d.slug}?outcomeIndex=${u}`;
            return c[9] !== b ? (a = (0, t.jsx)("p", {
                className: "text-body-base font-semibold truncate dark:brightness-110",
                children: b
            }), c[9] = b, c[10] = a) : a = c[10], c[11] !== k || c[12] !== N || c[13] !== a ? (i = (0, t.jsx)(E.default, {
                href: N,
                onClick: k,
                children: a
            }), c[11] = k, c[12] = N, c[13] = a, c[14] = i) : i = c[14], c[15] !== l || c[16] !== i || c[17] !== y ? (o = (0, t.jsx)(h.Button, {
                asChild: !0,
                variant: y,
                className: l,
                children: i
            }), c[15] = l, c[16] = i, c[17] = y, c[18] = o) : o = c[18], o
        }),
        eC = s.default.memo(e => {
            let s, n, l, a, i, o = (0, r.c)(25),
                {
                    event: c,
                    status: u
                } = e;
            o[0] !== c || o[1] !== u ? (s = eN(c, u), o[0] = c, o[1] = u, o[2] = s) : s = o[2];
            let d = s;
            o[3] !== d || o[4] !== c ? .markets ? .[0] ? (n = (0, m.sortMarketsByPriceDesc)(d)[0] ? ? c ? .markets ? .[0], o[3] = d, o[4] = c ? .markets ? .[0], o[5] = n) : n = o[5];
            let x = n;
            if (!x) return null;
            if (o[6] !== c.markets || o[7] !== c.negRisk || o[8] !== x || o[9] !== u) {
                let e = (0, f.findWinningIndex)(x.outcomePrices);
                if (a = (0, f.getWinningTitle)(x, e), c.negRisk && "resolved" === u && c.markets ? .length > 1) {
                    let e = c.markets.find(eT);
                    if (e) {
                        let t = (0, f.findWinningIndex)(e.outcomePrices);
                        a = e.groupItemTitle || (0, f.getWinningTitle)(e, t)
                    }
                }
                l = "no" === a.toLowerCase() ? "no" : "yes", o[6] = c.markets, o[7] = c.negRisk, o[8] = x, o[9] = u, o[10] = l, o[11] = a
            } else l = o[10], a = o[11];
            let p = l;
            if ("resolved" === u) {
                let e, r, s, n;
                return o[12] !== a ? (e = (0, t.jsx)("p", {
                    className: "text-sm font-semibold truncate",
                    children: a
                }), o[12] = a, o[13] = e) : e = o[13], o[14] !== p ? (r = "yes" === p && (0, t.jsx)("div", {
                    className: "text-green-600 dark:text-green-500",
                    children: (0, t.jsx)(eb.IconCircleCheckFill18, {})
                }), o[14] = p, o[15] = r) : r = o[15], o[16] !== p ? (s = "no" === p && (0, t.jsx)("div", {
                    className: "text-red-500",
                    children: (0, t.jsx)(ek.IconCircleXmarkFill18, {})
                }), o[16] = p, o[17] = s) : s = o[17], o[18] !== e || o[19] !== r || o[20] !== s ? (n = (0, t.jsx)("div", {
                    className: "gap-3 h-[62px] flex justify-center items-end",
                    children: (0, t.jsxs)("div", {
                        className: "flex items-center gap-x-1.5 w-full h-11 rounded-md border dark:border-none dark:bg-neutral-100 justify-center group-hover/card:dark:bg-neutral-200 transition",
                        children: [e, r, s]
                    })
                }, "single-resting-container"), o[18] = e, o[19] = r, o[20] = s, o[21] = n) : n = o[21], n
            }
            return o[22] !== c || o[23] !== x ? (i = (0, t.jsxs)("div", {
                className: "gap-2 h-[62px] flex justify-between items-end",
                children: [(0, t.jsx)(eS, {
                    outcomeIdx: 0,
                    event: c,
                    market: x
                }), (0, t.jsx)(eS, {
                    outcomeIdx: 1,
                    event: c,
                    market: x
                })]
            }, "single-resting-container"), o[22] = c, o[23] = x, o[24] = i) : i = o[24], i
        });

    function eT(e) {
        return 1 === parseFloat(e.outcomePrices ? .[0] ? ? "0")
    }
    let eM = s.default.memo(e => {
        let s, n = (0, r.c)(3),
            {
                event: l,
                status: a
            } = e;
        return n[0] !== l || n[1] !== a ? (s = (0, t.jsxs)(t.Fragment, {
            children: [(0, t.jsx)(eC, {
                event: l,
                status: a
            }), (0, t.jsx)(X, {
                eventType: "single",
                event: l,
                status: a
            })]
        }), n[0] = l, n[1] = a, n[2] = s) : s = n[2], s
    });
    var e_ = e.i(256244),
        eP = e.i(668122),
        eA = e.i(305457),
        eE = e.i(784521);
    let eI = s.default.memo(e => {
            let s, n, l, a, i = (0, r.c)(13),
                {
                    outcomeIdx: o,
                    market: u,
                    event: d,
                    labelOverride: m,
                    color: x,
                    onClick: f,
                    marketSlug: p
                } = e,
                g = u.outcomes[o],
                v = 0 === o ? "outcome-yes" : "outcome-no",
                y = m ? ? g;
            i[0] !== v || i[1] !== y ? (s = {
                variant: v,
                label: y
            }, i[0] = v, i[1] = y, i[2] = s) : s = i[2];
            let {
                variant: b,
                label: k
            } = s, j = p ? `/event/${d.slug}?marketSlug=${p}&outcomeIndex=0` : `/event/${d.slug}?outcomeIndex=${o}`, N = x ? "ghost" : b, w = x || "inherit";
            return i[3] !== k || i[4] !== w ? (n = (0, t.jsx)(c, {
                label: k,
                color: w
            }), i[3] = k, i[4] = w, i[5] = n) : n = i[5], i[6] !== j || i[7] !== f || i[8] !== n ? (l = (0, t.jsx)(E.default, {
                href: j,
                onClick: f,
                children: n
            }), i[6] = j, i[7] = f, i[8] = n, i[9] = l) : l = i[9], i[10] !== N || i[11] !== l ? (a = (0, t.jsx)(h.Button, {
                asChild: !0,
                variant: N,
                className: "relative w-10 !flex-1 overflow-hidden h-10 !rounded-sm px-2 group !bg-transparent hover:!bg-transparent",
                children: l
            }), i[10] = N, i[11] = l, i[12] = a) : a = i[12], a
        }),
        eO = s.default.memo(e => {
            let s, n, l = (0, r.c)(4),
                {
                    event: a,
                    marketSlug: i,
                    onClick: o
                } = e,
                c = i ? `/event/${a.slug}?marketSlug=${i}&outcomeIndex=0` : `/event/${a.slug}`;
            return l[0] === Symbol.for("react.memo_cache_sentinel") ? (s = (0, t.jsx)("p", {
                className: "text-body-base font-semibold text-text-secondary",
                children: "DRAW"
            }), l[0] = s) : s = l[0], l[1] !== c || l[2] !== o ? (n = (0, t.jsx)(h.Button, {
                asChild: !0,
                variant: "outline",
                className: "h-10 w-18 shrink-0 rounded-sm overflow-hidden text-sm group flex items-center justify-center",
                children: (0, t.jsx)(E.default, {
                    href: c,
                    onClick: o,
                    children: s
                })
            }), l[1] = c, l[2] = o, l[3] = n) : n = l[3], n
        }),
        eL = s.default.memo(({
            event: e,
            status: r
        }) => {
            let n = (0, eA.useAmplitudeAnalytics)(),
                {
                    authenticated: l
                } = (0, eE.useAccountContext)(["authenticated"]),
                {
                    page: a,
                    position: i,
                    cardSource: o
                } = el(),
                {
                    isNegrisk: c,
                    negriskMarkets: u
                } = s.default.useMemo(() => {
                    if (!e ? .negRisk) return {
                        isNegrisk: !1,
                        negriskMarkets: void 0
                    };
                    let t = (e ? .markets ? ? []).filter(e => e && (e.sportsMarketType ? ? "moneyline") === "moneyline");
                    if (3 !== t.length) return {
                        isNegrisk: !1,
                        negriskMarkets: void 0
                    };
                    let r = [...t].sort((e, t) => Number(e.groupItemThreshold ? ? 0) - Number(t.groupItemThreshold ? ? 0));
                    return {
                        isNegrisk: !0,
                        negriskMarkets: {
                            home: r[0],
                            draw: r[1],
                            away: r[2]
                        }
                    }
                }, [e ? .negRisk, e ? .markets]),
                d = e ? .markets ? .[0],
                m = "var(--color-brand-500)",
                x = e.resolvedTeams,
                p = d ? .outcomes ? ? [],
                h = x ? .home.color || m,
                g = x ? .away.color || m,
                v = x ? .home.labelShort || p[0],
                y = x ? .away.labelShort || p[1],
                b = s.default.useCallback(() => {
                    a && (0, ea.setCardReferrer)(a, i, o), l && (n.trackEvent(eP.Events.HomepageMarketCardClick, {
                        event_id: e ? .id,
                        event_slug: e ? .slug,
                        position: i,
                        page: a,
                        card_source: o
                    }), e ? .pinnedByPregame ? n.trackEvent(eP.Events.PinnedSportsMarketClick, {
                        event_id: e ? .id,
                        event_slug: e ? .slug
                    }) : e ? .pinnedByPersonalization && n.trackEvent(eP.Events.HomepagePersonalizedEventsClick, {
                        event_id: e ? .id,
                        event_slug: e ? .slug
                    }))
                }, [n, e, l, i, a, o]);
            if (!d) return null;
            let k = (0, f.findWinningIndex)(d.outcomePrices),
                j = (0, f.getWinningTitle)(d, k);
            if (c && "resolved" === r) {
                let t = e.markets.find(e => 1 === parseFloat(e.outcomePrices ? .[0] ? ? "0"));
                if (t) {
                    let e = (0, f.findWinningIndex)(t.outcomePrices);
                    j = t.groupItemTitle || (0, f.getWinningTitle)(t, e)
                } else if (c) {
                    let t = (0, e_.findHighestLikelihoodMarket)(e.markets);
                    j = t.groupItemTitle || (0, f.getWinningTitle)(t, (0, f.findWinningIndex)(t.outcomePrices))
                }
            }
            let N = j ? .toLowerCase() === "no" ? "no" : "yes";
            return "resolved" === r ? (0, t.jsx)("div", {
                className: "gap-3 h-fit flex justify-center items-end",
                children: (0, t.jsxs)("div", {
                    className: "flex items-center gap-x-1.5 w-full h-11 rounded-md border dark:border-none dark:bg-neutral-100 justify-center group-hover/card:dark:bg-neutral-200 transition",
                    children: [(0, t.jsx)("p", {
                        className: "text-sm font-semibold truncate",
                        children: j
                    }), "yes" === N && (0, t.jsx)("div", {
                        className: "text-green-600 dark:text-green-500",
                        children: (0, t.jsx)(eb.IconCircleCheckFill18, {})
                    }), "no" === N && (0, t.jsx)("div", {
                        className: "text-red-500",
                        children: (0, t.jsx)(ek.IconCircleXmarkFill18, {})
                    })]
                })
            }, "sports-resting-container") : c ? (0, t.jsxs)("div", {
                className: "gap-2 h-fit flex justify-center items-center",
                children: [(0, t.jsx)(eI, {
                    outcomeIdx: 0,
                    market: d,
                    event: e,
                    labelOverride: v,
                    color: h,
                    onClick: b,
                    marketSlug: u ? .home ? .slug
                }), (0, t.jsx)(eO, {
                    event: e,
                    marketSlug: u ? .draw ? .slug,
                    onClick: b
                }), (0, t.jsx)(eI, {
                    outcomeIdx: 1,
                    market: d,
                    event: e,
                    labelOverride: y,
                    color: g,
                    onClick: b,
                    marketSlug: u ? .away ? .slug
                })]
            }, "sports-resting-container") : (0, t.jsxs)("div", {
                className: "gap-2 h-fit flex justify-between items-end",
                children: [(0, t.jsx)(eI, {
                    outcomeIdx: 0,
                    market: d,
                    event: e,
                    labelOverride: v,
                    color: h,
                    onClick: b
                }), (0, t.jsx)(eI, {
                    outcomeIdx: 1,
                    market: d,
                    event: e,
                    labelOverride: y,
                    color: g,
                    onClick: b
                })]
            }, "sports-resting-container")
        }),
        eF = s.default.memo(e => {
            let s, n = (0, r.c)(3),
                {
                    event: l,
                    status: a
                } = e;
            return n[0] !== l || n[1] !== a ? (s = (0, t.jsxs)(t.Fragment, {
                children: [(0, t.jsx)(eL, {
                    event: l,
                    status: a
                }), (0, t.jsx)(X, {
                    eventType: "sports",
                    event: l,
                    status: a
                })]
            }), n[0] = l, n[1] = a, n[2] = s) : s = n[2], s
        });

    function e$(e) {
        let s, n = (0, r.c)(8),
            {
                eventType: l,
                event: a,
                status: i,
                disableOutcomeProbabilityHover: o
            } = e,
            c = void 0 !== o && o;
        if ("multiple" === l) {
            let e;
            return n[0] !== c || n[1] !== a || n[2] !== i ? (e = (0, t.jsx)(d, {
                children: (0, t.jsx)(ev, {
                    event: a,
                    status: i,
                    disableOutcomeProbabilityHover: c
                })
            }), n[0] = c, n[1] = a, n[2] = i, n[3] = e) : e = n[3], e
        }
        return n[4] !== a || n[5] !== l || n[6] !== i ? (s = (0, t.jsx)("div", {
            className: "flex flex-col justify-end gap-1.5 px-3 pb-2",
            children: "sports" === l ? (0, t.jsx)(eF, {
                event: a,
                status: i
            }) : (0, t.jsx)(eM, {
                event: a,
                status: i
            })
        }), n[4] = a, n[5] = l, n[6] = i, n[7] = s) : s = n[7], s
    }
    var eH = e.i(740594),
        eW = e.i(397456),
        eD = e.i(606231),
        eR = e.i(219469),
        eB = e.i(215959),
        ez = e.i(631222);

    function eU(e) {
        let n, l, a, i, o, c, u, d, m, x, f, p, h, g, v, y, b, k, j, N, w, S = (0, r.c)(38),
            {
                eventSlug: C
            } = e;
        S[0] === Symbol.for("react.memo_cache_sentinel") ? (n = [], S[0] = n) : n = S[0];
        let [T, M] = (0, s.useState)(n);
        S[1] === Symbol.for("react.memo_cache_sentinel") ? (l = new Map, S[1] = l) : l = S[1];
        let _ = (0, s.useRef)(l);
        S[2] === Symbol.for("react.memo_cache_sentinel") ? (a = e => {
            M(t => t.filter(t => t.id !== e));
            let t = _.current.get(e);
            t && (clearTimeout(t), _.current.delete(e))
        }, S[2] = a) : a = S[2];
        let P = a;
        S[3] === Symbol.for("react.memo_cache_sentinel") ? (i = e => {
            if (!e ? .conditionId || e.side !== eH.Side.BUY) return;
            let t = e.price * e.size;
            if (t < 1) return;
            let r = {
                id: `${e.transactionHash}-${Date.now()}`,
                amount: t,
                outcomeIndex: e.outcomeIndex,
                timestamp: Date.now()
            };
            M(t => {
                if (t.some(t => t.id.startsWith(e.transactionHash))) return t;
                let s = [r, ...t];
                return s.length > 3 && s.slice(3).forEach(e => {
                    setTimeout(() => P(e.id), 0)
                }), s.slice(0, 3)
            });
            let s = setTimeout(() => {
                P(r.id)
            }, 4e3);
            _.current.set(r.id, s)
        }, S[3] = i) : i = S[3];
        let A = i,
            E = C ? ez.LIVE_DATA_WEBSOCKET_URL : null;
        S[4] === Symbol.for("react.memo_cache_sentinel") ? (o = e => {
            if (!e.data) return;
            let t = (e => {
                try {
                    let t = JSON.parse(e);
                    if ("orders_matched" === t.type && t.payload) return t;
                    return null
                } catch {
                    return null
                }
            })(e.data);
            t && A(t.payload)
        }, S[4] = o) : o = S[4], S[5] !== C ? (c = () => !!C, S[5] = C, S[6] = c) : c = S[6], S[7] !== E || S[8] !== c ? (u = {
            url: E,
            onMessage: o,
            maxReconnectAttempts: 5,
            reconnectInterval: 1e4,
            shouldReconnect: c
        }, S[7] = E, S[8] = c, S[9] = u) : u = S[9];
        let {
            readyState: I,
            sendMessage: O
        } = (0, eD.useWebSocket)(u);
        if (S[10] !== C || S[11] !== I || S[12] !== O ? (m = () => {
                if (I === eW.ReadyState.OPEN && C) {
                    try {
                        O(JSON.stringify({
                            action: "subscribe",
                            subscriptions: [{
                                topic: "activity",
                                type: "orders_matched",
                                filters: JSON.stringify({
                                    event_slug: C
                                })
                            }]
                        }))
                    } catch {}
                    return () => {
                        try {
                            O(JSON.stringify({
                                action: "unsubscribe",
                                subscriptions: [{
                                    topic: "activity",
                                    type: "orders_matched",
                                    filters: JSON.stringify({
                                        event_slug: C
                                    })
                                }]
                            }))
                        } catch {}
                    }
                }
            }, d = [I, C, O], S[10] = C, S[11] = I, S[12] = O, S[13] = d, S[14] = m) : (d = S[13], m = S[14]), (0, s.useEffect)(m, d), S[15] !== I || S[16] !== O ? (x = () => {
                let e;
                return I === eW.ReadyState.OPEN && (e = setInterval(() => {
                    O("PING")
                }, 3e4)), () => {
                    e && clearInterval(e)
                }
            }, f = [I, O], S[15] = I, S[16] = O, S[17] = x, S[18] = f) : (x = S[17], f = S[18]), (0, s.useEffect)(x, f), S[19] === Symbol.for("react.memo_cache_sentinel") ? (p = () => () => {
                _.current.forEach(eJ), _.current.clear()
            }, h = [], S[19] = p, S[20] = h) : (p = S[19], h = S[20]), (0, s.useEffect)(p, h), S[21] !== T) {
            k = Symbol.for("react.early_return_sentinel");
            e: {
                let e = T.filter(eY),
                    r = T.filter(eV);
                if (0 === T.length) {
                    k = null;
                    break e
                }
                let s = e.map(eG);S[27] !== s ? (b = (0, t.jsx)("div", {
                    className: "absolute bottom-12 left-5 z-10 pointer-events-none flex flex-col items-start",
                    children: (0, t.jsx)(eR.AnimatePresence, {
                        children: s
                    })
                }), S[27] = s, S[28] = b) : b = S[28],
                y = "absolute bottom-12 right-5 z-10 pointer-events-none flex flex-col items-end",
                g = eR.AnimatePresence,
                v = r.map(eq)
            }
            S[21] = T, S[22] = g, S[23] = v, S[24] = y, S[25] = b, S[26] = k
        } else g = S[22], v = S[23], y = S[24], b = S[25], k = S[26];
        return k !== Symbol.for("react.early_return_sentinel") ? k : (S[29] !== g || S[30] !== v ? (j = (0, t.jsx)(g, {
            children: v
        }), S[29] = g, S[30] = v, S[31] = j) : j = S[31], S[32] !== y || S[33] !== j ? (N = (0, t.jsx)("div", {
            className: y,
            children: j
        }), S[32] = y, S[33] = j, S[34] = N) : N = S[34], S[35] !== b || S[36] !== N ? (w = (0, t.jsxs)(t.Fragment, {
            children: [b, N]
        }), S[35] = b, S[36] = N, S[37] = w) : w = S[37], w)
    }

    function eq(e, r) {
        return (0, t.jsx)(eB.motion.div, {
            initial: {
                y: 16,
                opacity: 0,
                scale: .9
            },
            animate: {
                y: 0,
                opacity: 1,
                scale: 1
            },
            exit: {
                y: -12,
                opacity: 0,
                scale: .9
            },
            transition: {
                duration: .25,
                ease: "easeOut"
            },
            style: {
                position: "absolute",
                bottom: `${24*r}px`,
                right: 0
            },
            children: (0, t.jsxs)("span", {
                className: "whitespace-nowrap text-[12px] font-semibold",
                style: {
                    color: "var(--color-red-500)"
                },
                children: ["+ $", (0, B.formatNumbers)(e.amount, 0)]
            })
        }, e.id)
    }

    function eG(e, r) {
        return (0, t.jsx)(eB.motion.div, {
            initial: {
                y: 16,
                opacity: 0,
                scale: .9
            },
            animate: {
                y: 0,
                opacity: 1,
                scale: 1
            },
            exit: {
                y: -12,
                opacity: 0,
                scale: .9
            },
            transition: {
                duration: .25,
                ease: "easeOut"
            },
            style: {
                position: "absolute",
                bottom: `${24*r}px`,
                left: 0
            },
            children: (0, t.jsxs)("span", {
                className: "whitespace-nowrap text-[12px] font-semibold",
                style: {
                    color: "var(--color-green-500)"
                },
                children: ["+ $", (0, B.formatNumbers)(e.amount, 0)]
            })
        }, e.id)
    }

    function eV(e) {
        return 0 !== e.outcomeIndex
    }

    function eY(e) {
        return 0 === e.outcomeIndex
    }

    function eJ(e) {
        return clearTimeout(e)
    }
    var eK = e.i(573818);

    function eX(e) {
        let s, n, l, a, o, c, u, d, m, x, f, p = (0, r.c)(31),
            {
                imageSrc: h,
                imageAlt: g,
                title: v,
                subtitle: y,
                aside: b,
                className: k,
                imageClassName: j,
                contentClassName: N,
                titleClassName: w,
                subtitleClassName: S
            } = e,
            C = void 0 === g ? "Market card image" : g;
        return p[0] !== k ? (s = (0, i.cn)("relative flex w-full items-start gap-2 px-3 h-[42px]", k), p[0] = k, p[1] = s) : s = p[1], p[2] !== j ? (n = (0, i.cn)("overflow-hidden rounded-sm relative w-[38px] min-w-[38px] h-[38px]", j), p[2] = j, p[3] = n) : n = p[3], p[4] !== C || p[5] !== h ? (l = h ? (0, t.jsx)(eK.ImageWithFallback, {
            src: h,
            alt: C,
            fill: !0,
            sizes: "38px",
            className: "object-cover rounded-sm"
        }) : null, p[4] = C, p[5] = h, p[6] = l) : l = p[6], p[7] !== n || p[8] !== l ? (a = (0, t.jsx)("div", {
            className: n,
            children: l
        }), p[7] = n, p[8] = l, p[9] = a) : a = p[9], p[10] !== N ? (o = (0, i.cn)("flex flex-1 min-w-0 gap-4 justify-between cursor-default", N), p[10] = N, p[11] = o) : o = p[11], p[12] !== w ? (c = (0, i.cn)("flex-1 min-w-0", w), p[12] = w, p[13] = c) : c = p[13], p[14] !== y || p[15] !== S ? (u = y ? (0, t.jsx)("div", {
            className: (0, i.cn)("text-body-sm text-text-secondary line-clamp-1 text-pretty min-w-0", S),
            children: y
        }) : null, p[14] = y, p[15] = S, p[16] = u) : u = p[16], p[17] !== c || p[18] !== u || p[19] !== v ? (d = (0, t.jsxs)("div", {
            className: c,
            children: [v, u]
        }), p[17] = c, p[18] = u, p[19] = v, p[20] = d) : d = p[20], p[21] !== b ? (m = b ? (0, t.jsx)("div", {
            className: "shrink-0",
            children: b
        }) : null, p[21] = b, p[22] = m) : m = p[22], p[23] !== m || p[24] !== o || p[25] !== d ? (x = (0, t.jsxs)("div", {
            className: o,
            children: [d, m]
        }), p[23] = m, p[24] = o, p[25] = d, p[26] = x) : x = p[26], p[27] !== x || p[28] !== s || p[29] !== a ? (f = (0, t.jsxs)("div", {
            className: s,
            children: [a, x]
        }), p[27] = x, p[28] = s, p[29] = a, p[30] = f) : f = p[30], f
    }

    function eZ(e) {
        let s, n, l, a, o = (0, r.c)(11),
            {
                children: c,
                className: u,
                wrapperClassName: d,
                underlineOnHover: m
            } = e;
        o[0] !== d ? (s = (0, i.cn)("flex flex-col justify-center min-h-[36px]", d), o[0] = d, o[1] = s) : s = o[1];
        let x = void 0 !== m && m ? "group-hover:underline" : "";
        return o[2] !== u || o[3] !== x ? (n = (0, i.cn)("text-body-base text-text font-[590] w-fit line-clamp-3 text-pretty decoration-2 min-w-0", x, u), o[2] = u, o[3] = x, o[4] = n) : n = o[4], o[5] !== c || o[6] !== n ? (l = (0, t.jsx)("h3", {
            className: n,
            children: c
        }), o[5] = c, o[6] = n, o[7] = l) : l = o[7], o[8] !== s || o[9] !== l ? (a = (0, t.jsx)("div", {
            className: s,
            children: l
        }), o[8] = s, o[9] = l, o[10] = a) : a = o[10], a
    }
    var eQ = e.i(935786);

    function e0(e) {
        let s, n, l, a, i, o = (0, r.c)(29),
            {
                event: c,
                selectedMarket: u,
                eventType: d
            } = e,
            {
                title: m,
                slug: x,
                seriesSlug: f,
                eventWeek: p,
                id: h,
                tags: g
            } = c,
            {
                question: v
            } = u,
            y = (0, eA.useAmplitudeAnalytics)();
        o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = ["authenticated"], o[0] = s) : s = o[0];
        let {
            authenticated: b
        } = (0, eE.useAccountContext)(s), {
            page: k,
            position: j,
            cardSource: N
        } = el();
        e: {
            let e, t = `/event/${x}`;
            if (f) {
                let e, t;
                o[1] !== x || o[2] !== p || o[3] !== f || o[4] !== g ? (e = (0, eQ.getEventOrSportsLinkFromSeries)({
                    slug: x,
                    seriesSlug: f,
                    eventWeek: p,
                    tags: g
                }), o[1] = x, o[2] = p, o[3] = f, o[4] = g, o[5] = e) : e = o[5];
                let r = e,
                    s = "single" === d ? v : m;
                o[6] !== r.href || o[7] !== r.url || o[8] !== s ? (t = {
                    href: r.href,
                    titleText: s,
                    slug: r.url
                }, o[6] = r.href, o[7] = r.url, o[8] = s, o[9] = t) : t = o[9], n = t;
                break e
            }
            let r = "single" === d ? v : m;o[10] !== t || o[11] !== r ? (e = {
                href: ei.Location.EventDetail,
                titleText: r,
                slug: t
            }, o[10] = t, o[11] = r, o[12] = e) : e = o[12],
            n = e
        }
        let {
            titleText: w,
            slug: S,
            href: C
        } = n;
        o[13] !== y || o[14] !== b || o[15] !== N || o[16] !== c || o[17] !== h || o[18] !== x || o[19] !== k || o[20] !== j ? (l = () => {
            k && (0, ea.setCardReferrer)(k, j, N), b && (y.trackEvent(eP.Events.HomepageMarketCardClick, {
                event_id: h,
                event_slug: x,
                position: j,
                page: k,
                card_source: N
            }), "pinnedByPregame" in c && c.pinnedByPregame ? y.trackEvent(eP.Events.PinnedSportsMarketClick, {
                event_id: h,
                event_slug: x
            }) : "pinnedByPersonalization" in c && c.pinnedByPersonalization && y.trackEvent(eP.Events.HomepagePersonalizedEventsClick, {
                event_id: h,
                event_slug: x
            }))
        }, o[13] = y, o[14] = b, o[15] = N, o[16] = c, o[17] = h, o[18] = x, o[19] = k, o[20] = j, o[21] = l) : l = o[21];
        let T = l;
        return o[22] !== w ? (a = (0, t.jsx)(eZ, {
            underlineOnHover: !0,
            children: w
        }), o[22] = w, o[23] = a) : a = o[23], o[24] !== C || o[25] !== T || o[26] !== S || o[27] !== a ? (i = (0, t.jsx)(E.default, {
            href: C,
            as: S,
            prefetch: !1,
            className: "h-fit w-full relative cursor-pointer group flex",
            onClick: T,
            children: a
        }), o[24] = C, o[25] = T, o[26] = S, o[27] = a, o[28] = i) : i = o[28], i
    }
    var e1 = e.i(375421);
    let e2 = s.default.memo(e => {
        let n, l, a, i, o, c, u, d, m, x, f, p, h, g = (0, r.c)(37),
            {
                selectedMarket: v,
                lastPriceString: y,
                lastPrice: b
            } = e,
            k = (0, R.useTranslations)(),
            [j, N] = s.default.useState(!1);
        v ? .outcomes;
        let w = v ? .outcomes ? ? [],
            S = 2 === w.length && w[0] ? .toLowerCase() === "yes" && w[1] ? .toLowerCase() === "no" ? "yes-no" : "other";
        g[0] === Symbol.for("react.memo_cache_sentinel") ? (n = () => {
            N(!0)
        }, l = [], g[0] = n, g[1] = l) : (n = g[0], l = g[1]), s.default.useEffect(n, l);
        let C = y ? ? "-",
            T = b ? ? 0;
        g[2] !== v.outcomes || g[3] !== S || g[4] !== k ? (a = "yes-no" === S ? k("dashboards.chance") : v.outcomes[0], g[2] = v.outcomes, g[3] = S, g[4] = k, g[5] = a) : a = g[5];
        let M = (b ? ? 0) < 30 ? "var(--color-red-500)" : (b ? ? 0) < 50 ? "var(--color-amber-500)" : "var(--color-green-600)",
            _ = Math.abs((b ? ? 0) - 50) / 50 * .45 + .55;
        g[6] !== C || g[7] !== T || g[8] !== a || g[9] !== M || g[10] !== _ ? (i = {
            probability: C,
            probabilityNum: T,
            subtext: a,
            stroke: M,
            strokeOpacity: _
        }, g[6] = C, g[7] = T, g[8] = a, g[9] = M, g[10] = _, g[11] = i) : i = g[11];
        let {
            probability: P,
            probabilityNum: A,
            subtext: E,
            stroke: I,
            strokeOpacity: O
        } = i;
        g[12] === Symbol.for("react.memo_cache_sentinel") ? (o = {
            startAngle: 80,
            endAngle: 280,
            numTicks: 17,
            diameter: 58,
            domain: [0, 100]
        }, g[12] = o) : o = g[12];
        let {
            getArcProps: L,
            getSVGProps: F,
            valueToAngle: $
        } = (0, e1.useGauge)(o);
        return g[13] !== F ? (c = F(), g[13] = F, g[14] = c) : c = g[14], g[15] === Symbol.for("react.memo_cache_sentinel") ? (u = {
            width: "58px",
            maxWidth: "58px",
            overflow: "visible"
        }, g[15] = u) : u = g[15], g[16] !== L || g[17] !== j || g[18] !== b || g[19] !== A || g[20] !== I || g[21] !== O || g[22] !== $ ? (d = j && (0, t.jsxs)(t.Fragment, {
            children: [(0, t.jsx)("path", {
                className: "stroke-neutral-100 dark:stroke-neutral-200",
                ...L({
                    offset: 0,
                    startAngle: Math.max(Math.min($(A) + 6, 278), 94),
                    endAngle: 280
                }),
                fill: "none",
                strokeWidth: 4.5,
                strokeLinecap: "round"
            }), (0, t.jsx)("path", { ...L({
                    offset: 0,
                    startAngle: 80,
                    endAngle: 100 === b ? 280 : Math.min(Math.max($(A) - 6, 82), 266)
                }),
                fill: "none",
                stroke: I,
                strokeOpacity: O,
                strokeWidth: 4.5,
                strokeLinecap: "round"
            })]
        }), g[16] = L, g[17] = j, g[18] = b, g[19] = A, g[20] = I, g[21] = O, g[22] = $, g[23] = d) : d = g[23], g[24] !== c || g[25] !== d ? (m = (0, t.jsx)("div", {
            className: "flex",
            children: (0, t.jsx)("svg", { ...c,
                style: u,
                children: d
            })
        }), g[24] = c, g[25] = d, g[26] = m) : m = g[26], g[27] !== P ? (x = (0, t.jsx)("p", {
            className: "font-medium text-heading-lg text-center",
            children: P
        }), g[27] = P, g[28] = x) : x = g[28], g[29] !== E ? (f = E && (0, t.jsx)("p", {
            className: "font-semibold text-text-secondary text-body-xs text-center line-clamp-2",
            children: E
        }), g[29] = E, g[30] = f) : f = g[30], g[31] !== x || g[32] !== f ? (p = (0, t.jsxs)("div", {
            className: "flex flex-col items-center w-full -translate-y-[28px]",
            children: [x, f]
        }), g[31] = x, g[32] = f, g[33] = p) : p = g[33], g[34] !== m || g[35] !== p ? (h = (0, t.jsx)("div", {
            className: "flex justify-end items-start bg-transparent",
            children: (0, t.jsxs)("div", {
                className: "flex flex-col justify-center items-end w-[58px] gap-2 ml-2 mr-1",
                children: [m, p]
            }, "title-odds-gauge")
        }, "title-odds"), g[34] = m, g[35] = p, g[36] = h) : h = g[36], h
    });

    function e5(e) {
        let s, n, l, a = (0, r.c)(14),
            {
                event: i,
                selectedMarket: o,
                eventType: c
            } = e,
            {
                lastPriceString: u,
                lastPrice: d,
                showLastPrice: m
            } = (0, ed.useFallbackPercentChance)(o),
            x = "single" === c && m,
            f = i ? .image || i ? .icon || o ? .image || o ? .icon || "",
            p = `${i?.title??"market"} card icon`;
        return a[0] !== i || a[1] !== c || a[2] !== o ? (s = (0, t.jsx)(e0, {
            event: i,
            selectedMarket: o,
            eventType: c
        }), a[0] = i, a[1] = c, a[2] = o, a[3] = s) : s = a[3], a[4] !== x || a[5] !== d || a[6] !== u || a[7] !== o ? (n = x ? (0, t.jsx)(e2, {
            selectedMarket: o,
            lastPriceString: u,
            lastPrice: d
        }) : null, a[4] = x, a[5] = d, a[6] = u, a[7] = o, a[8] = n) : n = a[8], a[9] !== p || a[10] !== f || a[11] !== s || a[12] !== n ? (l = (0, t.jsx)(eX, {
            imageSrc: f,
            imageAlt: p,
            title: s,
            aside: n,
            titleClassName: "w-full"
        }), a[9] = p, a[10] = f, a[11] = s, a[12] = n, a[13] = l) : l = a[13], l
    }
    var e3 = e.i(184612),
        e4 = e.i(909420),
        e6 = e.i(964974),
        e9 = e.i(655740);

    function e8(e) {
        let {
            data: t
        } = e;
        return t
    }
    var e7 = e.i(996076);

    function te(e) {
        let t = "string" == typeof e ? parseFloat(e) : e;
        return Number.isFinite(t) ? `${Math.round(100*t)}%` : "-"
    }

    function tt({
        event: e
    }) {
        let n, l, a, i, o, c, u, d = (0, eA.useAmplitudeAnalytics)(),
            {
                authenticated: m
            } = (0, eE.useAccountContext)(["authenticated"]),
            {
                page: x,
                position: f,
                cardSource: p
            } = el(),
            h = s.default.useMemo(() => e ? .seriesSlug || e ? .series ? .[0] ? .slug, [e ? .seriesSlug, e ? .series]),
            g = s.default.useMemo(() => h === $.SportSlug.ATP || h === $.SportSlug.WTA || h === $.SportSlug.ATP_DOUBLES || h === $.SportSlug.WTA_DOUBLES || h === $.SportSlug.ITF, [h]),
            {
                data: v
            } = (i = (0, r.c)(7), o = e ? .live || e ? .isLive, c = e ? .slug, i[0] !== c ? (n = ["live-sports-score", c], l = async () => {
                if (!c) return null;
                let e = `${ez.GAMMA_API_URL}/events/keyset?slug=${c}`,
                    t = await e9.axios.get(e).then(e8),
                    r = t.events ? .[0];
                return r ? {
                    score: r.score,
                    period: r.period,
                    elapsed: r.elapsed,
                    live: r.live,
                    ended: r.ended
                } : null
            }, i[0] = c, i[1] = n, i[2] = l) : (n = i[1], l = i[2]), u = !!c && !!o, i[3] !== n || i[4] !== l || i[5] !== u ? (a = {
                queryKey: n,
                queryFn: l,
                enabled: u,
                refetchOnWindowFocus: !1,
                refetchOnReconnect: !1,
                staleTime: 1 / 0
            }, i[3] = n, i[4] = l, i[5] = u, i[6] = a) : a = i[6], (0, e6.useQuery)(a)),
            y = s.default.useMemo(() => v ? .score || e ? .score, [v ? .score, e ? .score]),
            b = s.default.useMemo(() => v ? .period || e ? .period, [v ? .period, e ? .period]),
            k = s.default.useMemo(() => {
                if (!g) return {
                    sets: [],
                    currentGames: {
                        home: 0,
                        away: 0
                    }
                };
                let e = [],
                    t = {
                        home: 0,
                        away: 0
                    };
                if (y && "0-0" !== y && "NS" !== b) try {
                    let r = y.split(",").map(e => e.trim());
                    for (let s of r) {
                        let [n, l] = s.replace(/\([^)]*\)/g, "").trim().split("-").map(e => parseInt(e, 10));
                        Number.isNaN(n) || Number.isNaN(l) || (r.indexOf(s) !== r.length - 1 || b ? .includes("FT") ? e.push({
                            home: n,
                            away: l
                        }) : t = {
                            home: n,
                            away: l
                        })
                    }
                } catch (e) {
                    console.error("Error parsing tennis score:", e)
                }
                return {
                    sets: e,
                    currentGames: t
                }
            }, [g, y, b]),
            j = s.default.useMemo(() => {
                if (e ? .markets && 0 !== e.markets.length) return e.markets.find(e => (e.sportsMarketType ? ? "moneyline") === "moneyline") || e.markets[0]
            }, [e ? .markets]),
            N = e.resolvedTeams,
            w = j ? .outcomes ? ? [],
            S = N ? .home.label || w[0],
            C = N ? .away.label || w[1],
            T = N ? .home.logo ? ? "",
            M = N ? .away.logo ? ? "",
            {
                homeScore: _,
                awayScore: P,
                isLive: A
            } = s.default.useMemo(() => {
                let t = e ? .isLive === !0;
                if (!t || g) return {
                    homeScore: void 0,
                    awayScore: void 0,
                    isLive: t
                };
                try {
                    let e = y || "0-0",
                        {
                            home: t,
                            away: r
                        } = (0, e7.parseScore)(e, h);
                    return {
                        homeScore: t,
                        awayScore: r,
                        isLive: !0
                    }
                } catch {
                    return {
                        homeScore: void 0,
                        awayScore: void 0,
                        isLive: !1
                    }
                }
            }, [e ? .isLive, y, h, g]),
            {
                homeText: I,
                awayText: O
            } = s.default.useMemo(() => {
                if (!j) return {
                    homeText: "- / -",
                    awayText: "- / -"
                };
                if (e ? .negRisk && Array.isArray(e ? .markets) && e.markets.length >= 3) try {
                    let t = e.markets.filter(e => (e.sportsMarketType ? ? "moneyline") === "moneyline"),
                        r = t.length >= 3 ? t : e.markets,
                        [s, , n] = (0, e4.getNegRiskSportsMarkets)(r),
                        l = te(s ? .outcomePrices ? .[0]),
                        a = te(n ? .outcomePrices ? .[0]);
                    return {
                        homeText: l,
                        awayText: a
                    }
                } catch {}
                let t = Array.isArray(j.outcomePrices) ? j.outcomePrices : [],
                    r = te(t[0]),
                    s = te(t[1]);
                return {
                    homeText: `${r}`,
                    awayText: `${s}`
                }
            }, [j, e]),
            L = s.default.useMemo(() => (0, eQ.getEventOrSportsLinkFromSlug)("slug", e ? .slug, h), [e ? .slug, h]),
            F = s.default.useCallback(() => {
                x && (0, ea.setCardReferrer)(x, f, p), m && (d.trackEvent(eP.Events.HomepageMarketCardClick, {
                    event_id: e ? .id,
                    event_slug: e ? .slug,
                    position: f,
                    page: x,
                    card_source: p
                }), e ? .pinnedByPregame ? d.trackEvent(eP.Events.PinnedSportsMarketClick, {
                    event_id: e ? .id,
                    event_slug: e ? .slug
                }) : e ? .pinnedByPersonalization && d.trackEvent(eP.Events.HomepagePersonalizedEventsClick, {
                    event_id: e ? .id,
                    event_slug: e ? .slug
                }))
            }, [d, e, m, f, x, p]);
        return (0, t.jsxs)(E.default, {
            href: L.href,
            as: L.url,
            prefetch: !1,
            className: "w-full px-3 flex flex-col cursor-pointer items-center gap-1",
            onClick: F,
            children: [(0, t.jsxs)("div", {
                className: "w-full flex items-center justify-between group h-9",
                children: [(0, t.jsxs)("div", {
                    className: "w-full flex items-center gap-2",
                    children: [(0, t.jsx)("div", {
                        className: "size-7 rounded-sm overflow-hidden relative",
                        children: T && (0, t.jsx)(e3.default, {
                            src: T,
                            alt: "",
                            fill: !0,
                            style: {
                                objectFit: "contain"
                            },
                            onError: e => {
                                e.currentTarget.style.display = "none"
                            }
                        })
                    }), A && !g && void 0 !== _ && (0, t.jsxs)(t.Fragment, {
                        children: [(0, t.jsx)("span", {
                            className: "text-body-base font-medium text-text-primary w-4 text-center",
                            children: _
                        }), (0, t.jsx)("div", {
                            className: "w-0.5 h-3 rounded-full bg-neutral-100"
                        })]
                    }), A && g && k.sets.length > 0 && (0, t.jsxs)(t.Fragment, {
                        children: [(0, t.jsxs)("div", {
                            className: "flex items-center gap-2",
                            children: [k.sets.map((e, r) => {
                                let s = e.home > e.away;
                                return (0, t.jsx)("span", {
                                    className: `text-body-base font-medium ${s?"text-text-primary":"text-text-secondary opacity-40"}`,
                                    children: e.home
                                }, `h-${r}`)
                            }), (k.currentGames.home > 0 || k.currentGames.away > 0) && (0, t.jsx)("span", {
                                className: "text-body-base font-medium text-text-primary",
                                children: k.currentGames.home
                            })]
                        }), (0, t.jsx)("div", {
                            className: "w-px h-4 bg-border"
                        })]
                    }), (0, t.jsx)("p", {
                        className: "text-body-base font-medium group-hover:underline decoration-2",
                        children: S
                    })]
                }), (0, t.jsx)("p", {
                    className: "text-heading-lg font-semibold whitespace-nowrap",
                    children: I
                })]
            }), (0, t.jsxs)("div", {
                className: "w-full flex items-center justify-between group h-9",
                children: [(0, t.jsxs)("div", {
                    className: "w-full flex items-center gap-2",
                    children: [(0, t.jsx)("div", {
                        className: "size-7 rounded-sm overflow-hidden relative",
                        children: M && (0, t.jsx)(e3.default, {
                            src: M,
                            alt: "",
                            fill: !0,
                            style: {
                                objectFit: "contain"
                            },
                            onError: e => {
                                e.currentTarget.style.display = "none"
                            }
                        })
                    }), A && !g && void 0 !== P && (0, t.jsxs)(t.Fragment, {
                        children: [(0, t.jsx)("span", {
                            className: "text-body-base font-medium text-text-primary w-4 text-center",
                            children: P
                        }), (0, t.jsx)("div", {
                            className: "w-0.5 h-3 rounded-full bg-neutral-100"
                        })]
                    }), A && g && k.sets.length > 0 && (0, t.jsxs)(t.Fragment, {
                        children: [(0, t.jsxs)("div", {
                            className: "flex items-center gap-2",
                            children: [k.sets.map((e, r) => {
                                let s = e.away > e.home;
                                return (0, t.jsx)("span", {
                                    className: `text-body-base font-medium ${s?"text-text-primary":"text-text-secondary opacity-40"}`,
                                    children: e.away
                                }, `a-${r}`)
                            }), (k.currentGames.home > 0 || k.currentGames.away > 0) && (0, t.jsx)("span", {
                                className: "text-body-base font-medium text-text-primary",
                                children: k.currentGames.away
                            })]
                        }), (0, t.jsx)("div", {
                            className: "w-px h-4 bg-border"
                        })]
                    }), (0, t.jsx)("p", {
                        className: "text-body-base font-medium group-hover:underline decoration-2",
                        children: C
                    })]
                }), (0, t.jsx)("p", {
                    className: "text-heading-lg font-semibold whitespace-nowrap",
                    children: O
                })]
            })]
        })
    }
    var tr = e.i(336896);
    let ts = new WeakMap,
        tn = new Set,
        tl = [],
        ta = null,
        ti = null;

    function to(e) {
        for (let t of e) {
            if (!t.isIntersecting) continue;
            let e = ts.get(t.target);
            if (!e) continue;
            let r = `${e.page}:${e.event_slug}`;
            tn.has(r) || (tn.add(r), tl.push(e), ta && clearTimeout(ta), ta = setTimeout(() => {
                ti ? .()
            }, 2e3))
        }
    }
    let tc = null,
        tu = !1;

    function td(e) {
        let n, l, a = (0, r.c)(6),
            {
                eventSlug: i,
                eventId: o,
                children: c
            } = e;
        a[0] !== o || a[1] !== i ? (n = {
            eventSlug: i,
            eventId: o
        }, a[0] = o, a[1] = i, a[2] = n) : n = a[2];
        let u = function({
            eventSlug: e,
            eventId: t
        }) {
            let {
                page: r,
                position: n,
                cardSource: l,
                skipImpression: a
            } = el(), i = (0, eA.useAmplitudeAnalytics)(), {
                authenticated: o
            } = (0, eE.useAccountContext)(["authenticated"]), c = (0, s.useRef)(null), u = (0, s.useRef)({
                event_slug: e,
                event_id: t,
                position: n,
                page: r,
                card_source: l
            });
            u.current = {
                event_slug: e,
                event_id: t,
                position: n,
                page: r,
                card_source: l
            }, (0, s.useEffect)(() => {
                ti = () => {
                    if (0 === tl.length) return;
                    let e = tl;
                    tl = [];
                    let t = new Map;
                    for (let r of e) {
                        let e = `${r.page??""}|${r.card_source??""}`,
                            s = t.get(e) ? ? [];
                        s.push(r), t.set(e, s)
                    }
                    for (let e of t.values()) {
                        let t = e[0];
                        i.trackEvent(eP.Events.MarketCardImpression, {
                            page: t.page,
                            card_source: t.card_source,
                            impressions: e.map(e => ({
                                event_slug: e.event_slug,
                                event_id: e.event_id,
                                position: e.position
                            }))
                        })
                    }
                }
            }, [i]), (0, s.useEffect)(() => {
                tu || (tu = !0, document.addEventListener("visibilitychange", () => {
                    "hidden" === document.visibilityState && ti ? .()
                }), window.addEventListener("beforeunload", () => ti ? .()))
            }, []);
            let d = (0, tr.useRouter)();
            return (0, s.useEffect)(() => {
                ti ? .(), tn.clear()
            }, [d.asPath]), (0, s.useCallback)(e => {
                let t = (tc || (tc = new IntersectionObserver(to, {
                    threshold: .5
                })), tc);
                c.current && (t.unobserve(c.current), ts.delete(c.current)), c.current = e, e && o && !a && (ts.set(e, u.current), t.observe(e))
            }, [o, a])
        }(n);
        return a[3] !== c || a[4] !== u ? (l = (0, t.jsx)("div", {
            ref: u,
            children: c
        }), a[3] = c, a[4] = u, a[5] = l) : l = a[5], l
    }

    function tm(e) {
        let s, n, i, c, u, d, x, f, p, h, g, v = (0, r.c)(44),
            {
                event: y,
                status: b,
                disableOutcomeProbabilityHover: k,
                position: j,
                page: N,
                cardSource: w,
                skipImpression: S
            } = e,
            C = void 0 !== k && k;
        if (v[0] !== y || v[1] !== b) {
            let e, t = eN(y, b);
            v[4] !== y.seriesSlug ? (e = !!y.seriesSlug && (0, l.isSportSupported)(y.seriesSlug), v[4] = y.seriesSlug, v[5] = e) : e = v[5], n = (s = e) ? t : (0, m.sortMarketsByPriceDesc)(t), v[0] = y, v[1] = b, v[2] = s, v[3] = n
        } else s = v[2], n = v[3];
        let T = n,
            M = s ? "sports" : T.length > 1 ? "multiple" : "single",
            _ = T[0] ? ? y.markets ? .[0];
        v[6] !== y.slug ? (i = (0, a.isBtc15mEvent)(y.slug), v[6] = y.slug, v[7] = i) : i = v[7];
        let P = i;
        v[8] !== y.slug ? (c = (0, a.isBtc5mEvent)(y.slug), v[8] = y.slug, v[9] = c) : c = v[9];
        let A = c;
        v[10] !== M || v[11] !== P || v[12] !== A || v[13] !== s || v[14] !== _ ? (u = {
            eventType: M,
            selectedMarket: _,
            isSportsEvent: s,
            isBtc15m: P,
            isBtc5m: A
        }, v[10] = M, v[11] = P, v[12] = A, v[13] = s, v[14] = _, v[15] = u) : u = v[15];
        let {
            eventType: E,
            selectedMarket: I,
            isSportsEvent: O,
            isBtc15m: L,
            isBtc5m: F
        } = u;
        return I ? (v[16] !== y || v[17] !== E || v[18] !== O || v[19] !== I ? (d = O ? (0, t.jsx)(tt, {
            event: y
        }) : (0, t.jsx)(e5, {
            event: y,
            selectedMarket: I,
            eventType: E
        }), v[16] = y, v[17] = E, v[18] = O, v[19] = I, v[20] = d) : d = v[20], v[21] !== C || v[22] !== y || v[23] !== E || v[24] !== b ? (x = (0, t.jsx)(e$, {
            eventType: E,
            event: y,
            status: b,
            disableOutcomeProbabilityHover: C
        }), v[21] = C, v[22] = y, v[23] = E, v[24] = b, v[25] = x) : x = v[25], v[26] !== y.slug || v[27] !== L || v[28] !== F ? (f = (L || F) && (0, t.jsx)(eU, {
            eventSlug: y.slug
        }), v[26] = y.slug, v[27] = L, v[28] = F, v[29] = f) : f = v[29], v[30] !== d || v[31] !== x || v[32] !== f ? (p = (0, t.jsxs)(o, {
            children: [d, x, f]
        }), v[30] = d, v[31] = x, v[32] = f, v[33] = p) : p = v[33], v[34] !== y.id || v[35] !== y.slug || v[36] !== p ? (h = (0, t.jsx)(td, {
            eventSlug: y.slug,
            eventId: y.id,
            children: p
        }), v[34] = y.id, v[35] = y.slug, v[36] = p, v[37] = h) : h = v[37], v[38] !== w || v[39] !== N || v[40] !== j || v[41] !== S || v[42] !== h ? (g = (0, t.jsx)(en, {
            page: N,
            position: j,
            cardSource: w,
            skipImpression: S,
            children: h
        }), v[38] = w, v[39] = N, v[40] = j, v[41] = S, v[42] = h, v[43] = g) : g = v[43], g) : null
    }
    e.s(["MarketCard", 0, function(e) {
        let s, l, a, i, o = (0, r.c)(14),
            {
                event: c,
                status: d,
                disableOutcomeProbabilityHover: m,
                position: x,
                page: f,
                cardSource: p,
                skipImpression: h
            } = e,
            g = void 0 !== m && m;
        return o[0] !== c.id ? (s = (e, t) => u.logger.error(`Error rendering market card for event with id ${c.id}`, {
            error: e,
            errorInfo: t
        }), o[0] = c.id, o[1] = s) : s = o[1], o[2] === Symbol.for("react.memo_cache_sentinel") ? (l = (0, t.jsx)(t.Fragment, {}), o[2] = l) : l = o[2], o[3] !== p || o[4] !== g || o[5] !== c || o[6] !== f || o[7] !== x || o[8] !== h || o[9] !== d ? (a = (0, t.jsx)(tm, {
            event: c,
            status: d,
            disableOutcomeProbabilityHover: g,
            position: x,
            page: f,
            cardSource: p,
            skipImpression: h
        }), o[3] = p, o[4] = g, o[5] = c, o[6] = f, o[7] = x, o[8] = h, o[9] = d, o[10] = a) : a = o[10], o[11] !== s || o[12] !== a ? (i = (0, t.jsx)(n.ErrorBoundary, {
            onError: s,
            fallback: l,
            children: a
        }), o[11] = s, o[12] = a, o[13] = i) : i = o[13], i
    }], 865663)
}]);

//# debugId=86c8c307-8ce7-773a-ec6d-03436a7a36c4