;
! 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] = "ec8d57f7-5200-b580-02f2-952833032f69")
    } catch (e) {}
}();
(globalThis.TURBOPACK || (globalThis.TURBOPACK = [])).push(["object" == typeof document ? document.currentScript : void 0, 680739, e => {
    "use strict";
    var t = e.i(416340),
        s = e.i(370877);
    e.s(["IconFlameFill12", 0, ({ ...e
    }) => t.default.createElement(s.Icon, {
        size: "12px",
        ...e
    }, t.default.createElement("path", {
        d: "m6.492.184c-.282-.245-.701-.245-.983,0-.174.151-4.258,3.733-4.258,7.071,0,2.617,2.131,4.745,4.75,4.745s4.75-2.128,4.75-4.745C10.75,3.917,6.666.334,6.492.184Zm-2.206,8.594c0-.99.995-2.228,1.714-2.963.719.736,1.714,1.973,1.714,2.963,0,.95-.769,1.722-1.714,1.722s-1.714-.772-1.714-1.722Z",
        strokeWidth: "0",
        fill: "currentColor"
    }))])
}, 710633, e => {
    "use strict";
    var t = e.i(77383),
        s = e.i(105453),
        a = e.i(51387),
        r = e.i(104861),
        l = e.i(841252),
        n = e.i(339309),
        i = e.i(70549),
        o = e.i(125133),
        c = e.i(618832),
        u = e.i(736788),
        d = e.i(192842),
        m = e.i(208520);
    e.s(["formatDistanceToNow", 0, function(e, h) {
        return function(e, t, h) {
            let f, x = (0, a.getDefaultOptions)(),
                g = h ? .locale ? ? x.locale ? ? s.defaultLocale,
                p = (0, n.compareAsc)(e, t);
            if (isNaN(p)) throw RangeError("Invalid time value");
            let v = Object.assign({}, h, {
                    addSuffix: h ? .addSuffix,
                    comparison: p
                }),
                [y, b] = (0, l.normalizeDates)(h ? .in, ...p > 0 ? [t, e] : [e, t]),
                j = (0, m.differenceInSeconds)(b, y),
                w = Math.round((j - ((0, r.getTimezoneOffsetInMilliseconds)(b) - (0, r.getTimezoneOffsetInMilliseconds)(y)) / 1e3) / 60);
            if (w < 2)
                if (h ? .includeSeconds)
                    if (j < 5) return g.formatDistance("lessThanXSeconds", 5, v);
                    else if (j < 10) return g.formatDistance("lessThanXSeconds", 10, v);
            else if (j < 20) return g.formatDistance("lessThanXSeconds", 20, v);
            else if (j < 40) return g.formatDistance("halfAMinute", 0, v);
            else if (j < 60) return g.formatDistance("lessThanXMinutes", 1, v);
            else return g.formatDistance("xMinutes", 1, v);
            else if (0 === w) return g.formatDistance("lessThanXMinutes", 1, v);
            else return g.formatDistance("xMinutes", w, v);
            if (w < 45) return g.formatDistance("xMinutes", w, v);
            if (w < 90) return g.formatDistance("aboutXHours", 1, v);
            if (w < i.minutesInDay) {
                let e = Math.round(w / 60);
                return g.formatDistance("aboutXHours", e, v)
            }
            if (w < 2520) return g.formatDistance("xDays", 1, v);
            else if (w < i.minutesInMonth) {
                let e = Math.round(w / i.minutesInDay);
                return g.formatDistance("xDays", e, v)
            } else if (w < 2 * i.minutesInMonth) return f = Math.round(w / i.minutesInMonth), g.formatDistance("aboutXMonths", f, v);
            if ((f = function(e, t) {
                    let s, [a, r, i] = (0, l.normalizeDates)(void 0, e, e, t),
                        m = (0, n.compareAsc)(r, i),
                        h = Math.abs((0, o.differenceInCalendarMonths)(r, i));
                    if (h < 1) return 0;
                    1 === r.getMonth() && r.getDate() > 27 && r.setDate(30), r.setMonth(r.getMonth() - m * h);
                    let f = (0, n.compareAsc)(r, i) === -m;
                    s = (0, d.toDate)(a, void 0), +(0, c.endOfDay)(s, void 0) == +(0, u.endOfMonth)(s, void 0) && 1 === h && 1 === (0, n.compareAsc)(a, i) && (f = !1);
                    let x = m * (h - f);
                    return 0 === x ? 0 : x
                }(b, y)) < 12) {
                let e = Math.round(w / i.minutesInMonth);
                return g.formatDistance("xMonths", e, v)
            } {
                let e = f % 12,
                    t = Math.trunc(f / 12);
                return e < 3 ? g.formatDistance("aboutXYears", t, v) : e < 9 ? g.formatDistance("overXYears", t, v) : g.formatDistance("almostXYears", t + 1, v)
            }
        }(e, (0, t.constructNow)(e), h)
    }], 710633)
}, 583487, 100754, 175622, e => {
    "use strict";
    var t = e.i(221628),
        s = e.i(999061),
        a = e.i(86831);

    function r(e) {
        let r, l, n, i, o, c, u = (0, s.c)(17),
            {
                header: d,
                tagFilters: m,
                content: h,
                sidebar: f,
                sidebarFooter: x,
                className: g
            } = e;
        return u[0] !== g ? (r = (0, a.cn)("flex min-h-screen", g), u[0] = g, u[1] = r) : r = u[1], u[2] !== d || u[3] !== m ? (l = (0, t.jsxs)("div", {
            className: "mb-3 gap-5 flex flex-col",
            children: [d, m]
        }), u[2] = d, u[3] = m, u[4] = l) : l = u[4], u[5] !== h || u[6] !== l ? (n = (0, t.jsxs)("div", {
            className: "flex-1 min-w-0 flex flex-col",
            children: [l, h]
        }), u[5] = h, u[6] = l, u[7] = n) : n = u[7], u[8] !== f || u[9] !== x ? (i = f && (0, t.jsx)("div", {
            className: "flex-col hidden lg:flex gap-6 items-center w-[350px]",
            children: (0, t.jsxs)("div", {
                className: "flex flex-col sticky top-[150px] gap-4",
                children: [f, x]
            })
        }), u[8] = f, u[9] = x, u[10] = i) : i = u[10], u[11] !== n || u[12] !== i ? (o = (0, t.jsxs)("div", {
            className: "w-full max-w-[1350px] mx-auto gap-12 px-4 py-6 lg:px-6 lg:py-8 flex",
            children: [n, i]
        }), u[11] = n, u[12] = i, u[13] = o) : o = u[13], u[14] !== r || u[15] !== o ? (c = (0, t.jsx)("div", {
            className: r,
            children: o
        }), u[14] = r, u[15] = o, u[16] = c) : c = u[16], c
    }
    var l = e.i(23128),
        n = e.i(254380),
        i = e.i(664318),
        o = e.i(678274),
        c = e.i(208956),
        u = e.i(336896),
        d = e.i(609235),
        m = e.i(736556),
        h = e.i(416340),
        f = e.i(251127),
        x = e.i(116371),
        g = e.i(458255),
        p = e.i(330067),
        v = e.i(777723),
        y = e.i(79075),
        b = e.i(604777),
        j = e.i(870555),
        w = e.i(784521),
        S = e.i(444298),
        N = e.i(76095),
        k = e.i(16674),
        C = e.i(322324),
        F = e.i(461327);
    let q = {
            status: "active",
            sort: void 0,
            category: void 0,
            creator: void 0
        },
        M = ["trending", "ending_soon", "newest", "volume", "liquidity", "competitive"],
        T = ["all", "active", "resolved", "upcoming"],
        _ = () => ({
            status: q.status,
            sort: q.sort,
            category: q.category,
            creator: q.creator
        }),
        I = (0, C.create)()((0, F.devtools)((0, F.persist)(e => ({
            query: "",
            tagSlug: void 0,
            tagLabel: void 0,
            selectedTag: void 0,
            searchMode: "query",
            filters: _(),
            showFavorites: !1,
            hasInitialized: !1,
            hydratedSnapshotKey: void 0,
            setQuery: t => e({
                query: t
            }),
            setTagSlug: t => e({
                tagSlug: t
            }),
            setTagLabel: t => e({
                tagLabel: t
            }),
            setSelectedTag: t => e({
                selectedTag: t
            }),
            setSearchMode: t => e({
                searchMode: t
            }),
            setFilters: t => e(e => ({
                filters: { ...e.filters,
                    ...t
                }
            })),
            resetFilters: () => e({
                filters: _()
            }),
            setShowFavorites: t => e({
                showFavorites: t
            }),
            hydrateFromSnapshot: t => e(e => e.hydratedSnapshotKey && e.hydratedSnapshotKey === t.snapshotKey ? e : {
                query: t.query,
                tagSlug: t.tagSlug,
                tagLabel: t.tagLabel,
                selectedTag: t.selectedTag,
                searchMode: t.searchMode,
                filters: { ...t.filters
                },
                showFavorites: t.showFavorites,
                hasInitialized: !0,
                hydratedSnapshotKey: t.snapshotKey
            }),
            initialize: t => {
                "tag" === t.mode && t.tagSlug ? e(e => ({
                    searchMode: "tag",
                    tagSlug: t.tagSlug,
                    tagLabel: t.tagLabel,
                    query: "",
                    selectedTag: void 0,
                    filters: t.filters ? ? e.filters,
                    hasInitialized: !0
                })) : e(e => ({
                    searchMode: "query",
                    query: t.query || "",
                    tagSlug: void 0,
                    tagLabel: void 0,
                    selectedTag: void 0,
                    filters: t.filters ? ? e.filters,
                    hasInitialized: !0
                }))
            }
        }), {
            name: "search-store",
            partialize: e => ({
                filters: {
                    sort: e.filters.sort
                }
            }),
            merge: (e, t) => {
                let s = { ...t
                };
                if (e && "object" == typeof e && "filters" in e) {
                    let t = e.filters;
                    t ? .sort && !(e => {
                        if (!window.location) return !1;
                        try {
                            return new URLSearchParams(window.location.search).has(e)
                        } catch {
                            return !1
                        }
                    })("_sort") && (s.filters = { ...s.filters,
                        sort: t.sort
                    })
                }
                return s
            }
        }), {
            name: "search-store-devtools"
        }));
    e.s(["useSearchStore", 0, I], 100754);
    var R = e.i(122538),
        D = e.i(635973),
        z = e.i(318594),
        O = e.i(399841);

    function L(e) {
        return ["search", e.searchMode, e.query, e.tagSlug, e.filters, e.showFavorites, e.selectedTag, e.tagLabel, e.optimized]
    }
    async function E(e, t = 1, s = "v2") {
        let a = await fetch("/api/search/execute", {
            method: "POST",
            credentials: "include",
            headers: {
                "Content-Type": "application/json"
            },
            body: JSON.stringify({
                params: e,
                pageParam: t,
                searchVariant: s
            })
        });
        if (!a.ok) throw Error(`Search request failed: ${a.status}`);
        return a.json()
    }

    function P(e) {
        return e.nextCursor
    }

    function A(e) {
        return e.setFilters
    }

    function $(e) {
        return e.hydratedSnapshotKey
    }

    function B(e) {
        return e.hasInitialized
    }

    function U(e) {
        return e.tagLabel
    }

    function K(e) {
        return e.selectedTag
    }

    function Q(e) {
        return e.showFavorites
    }

    function X(e) {
        return e.filters
    }

    function V(e) {
        return e.searchMode
    }

    function Z(e) {
        return e.tagSlug
    }

    function W(e) {
        return e.query
    }

    function H(e) {
        return e ? .results ? ? []
    }

    function G(e) {
        return e.hydratedSnapshotKey
    }

    function Y(e) {
        return e.selectedTag
    }

    function J(e) {
        return e.setSelectedTag
    }

    function ee(e) {
        return e.setShowFavorites
    }

    function et(e) {
        return e.showFavorites
    }

    function es(e) {
        return e.initialize
    }

    function ea(e) {
        return e.searchMode
    }

    function er(e) {
        return e.tagLabel
    }

    function el(e) {
        return e.tagSlug
    }
    e.s(["buildSearchQueryKey", 0, L, "fetchSearchQueryResult", 0, E], 175622);
    let en = {
            sort: "_sort",
            status: "_status",
            category: "_cat",
            creator: "_creator"
        },
        ei = "watchlist",
        eo = Object.entries(en).reduce((e, [t, s]) => (e[s] = t, e), {});

    function ec(e) {
        let r, l, n, i, o, u, d, m, h, f, x = (0, s.c)(28),
            {
                href: g,
                ariaLabel: p,
                image: v,
                breadcrumbs: y,
                title: b,
                metadata: j,
                mobileMetadata: w,
                rightContent: S,
                onClick: N,
                className: k
            } = e;
        return x[0] !== k ? (r = (0, a.cn)("relative group", k), x[0] = k, x[1] = r) : r = x[1], x[2] !== p || x[3] !== g || x[4] !== N ? (l = (0, t.jsx)(c.default, {
            href: g,
            "aria-label": p,
            className: "absolute inset-0 rounded-lg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border focus-visible:ring-offset-2 focus-visible:ring-offset-background z-0",
            onClick: N
        }), x[2] = p, x[3] = g, x[4] = N, x[5] = l) : l = x[5], x[6] === Symbol.for("react.memo_cache_sentinel") ? (n = (0, t.jsx)("div", {
            className: "absolute -left-4 top-0 h-full w-[calc(100%+32px)] rounded-lg group-hover:bg-neutral-50/70 dark:group-hover:bg-neutral-50/50 pointer-events-none"
        }), x[6] = n) : n = x[6], x[7] !== b ? (i = (0, t.jsx)("p", {
            className: "text-heading-lg font-medium mb-0.5 text-pretty line-clamp-3 group-hover:underline",
            children: b
        }), x[7] = b, x[8] = i) : i = x[8], x[9] !== j ? (o = j && (0, t.jsx)("div", {
            className: "w-full hidden lg:block pointer-events-none",
            children: j
        }), x[9] = j, x[10] = o) : o = x[10], x[11] !== y || x[12] !== i || x[13] !== o ? (u = (0, t.jsxs)("div", {
            className: "flex-1 min-w-0 flex-col gap-1.25 flex",
            children: [y, i, o]
        }), x[11] = y, x[12] = i, x[13] = o, x[14] = u) : u = x[14], x[15] !== v || x[16] !== S || x[17] !== u ? (d = (0, t.jsxs)("div", {
            className: "flex items-start gap-4 relative",
            children: [v, u, S]
        }), x[15] = v, x[16] = S, x[17] = u, x[18] = d) : d = x[18], x[19] !== w ? (m = w && (0, t.jsx)("div", {
            className: "w-full lg:hidden mt-2 flex pl-16 pointer-events-none",
            children: w
        }), x[19] = w, x[20] = m) : m = x[20], x[21] !== d || x[22] !== m ? (h = (0, t.jsxs)("div", {
            className: "py-4 rounded-lg w-full relative z-10 pointer-events-none",
            children: [n, d, m]
        }), x[21] = d, x[22] = m, x[23] = h) : h = x[23], x[24] !== r || x[25] !== l || x[26] !== h ? (f = (0, t.jsxs)("div", {
            className: r,
            children: [l, h]
        }), x[24] = r, x[25] = l, x[26] = h, x[27] = f) : f = x[27], f
    }
    var eu = e.i(710633),
        ed = e.i(184612),
        em = e.i(370877);
    let eh = ({ ...e
        }) => h.default.createElement(em.Icon, {
            size: "12px",
            ...e
        }, h.default.createElement("path", {
            d: "m6,0C2.691,0,0,2.691,0,6s2.691,6,6,6,6-2.691,6-6S9.309,0,6,0Zm2.564,8.244c-.148.169-.356.256-.565.256-.175,0-.351-.061-.493-.186l-2-1.75c-.163-.143-.256-.348-.256-.564v-2.75c0-.414.336-.75.75-.75s.75.336.75.75v2.41l1.744,1.526c.312.273.344.747.071,1.058Z",
            strokeWidth: "0",
            fill: "currentColor"
        })),
        ef = ({ ...e
        }) => h.default.createElement(em.Icon, {
            size: "12px",
            ...e
        }, h.default.createElement("path", {
            d: "m7.924,1.753c-.451-.467-.917-.951-1.341-1.475-.285-.353-.881-.353-1.166,0-.424.524-.89,1.008-1.341,1.475-1.389,1.441-2.826,2.932-2.826,5.501,0,2.617,2.131,4.745,4.75,4.745s4.75-2.128,4.75-4.745c0-2.569-1.437-4.06-2.826-5.501Zm-1.924,7.747c-1.241,0-2.25-1.007-2.25-2.245,0-.414.336-.75.75-.75s.75.336.75.75c0,.411.336.745.75.745s.75.336.75.75-.336.75-.75.75Z",
            strokeWidth: "0",
            fill: "currentColor"
        }));
    var ex = e.i(680739);
    let eg = ({ ...e
    }) => h.default.createElement(em.Icon, {
        size: "12px",
        ...e
    }, h.default.createElement("path", {
        d: "m9.25.501H2.75C1.233.501,0,1.735,0,3.251v3.5c0,1.517,1.233,2.75,2.75,2.75h.25v1.75c0,.291.168.556.432.679.102.047.21.071.318.071.172,0,.343-.059.48-.174l2.792-2.326h2.229c1.517,0,2.75-1.233,2.75-2.75v-3.5c0-1.517-1.233-2.75-2.75-2.75Z",
        strokeWidth: "0",
        fill: "currentColor"
    }));
    var ep = e.i(11408),
        ev = e.i(831089),
        ey = e.i(481640),
        eb = e.i(846396),
        ej = e.i(841241),
        ew = e.i(935786),
        eS = e.i(256244),
        eN = e.i(668122),
        ek = e.i(390960),
        eC = e.i(864006),
        eF = e.i(305457),
        eq = e.i(196593);

    function eM(e) {
        e.stopPropagation()
    }
    let eT = e => {
            let a, r, l, n, i, o, u, d, m, h, f, x, g, p, v = (0, s.c)(52),
                {
                    event: y,
                    onInternalLinkClick: j
                } = e,
                w = (0, b.useTranslations)(),
                S = (0, eC.useLocale)(),
                {
                    volume: N,
                    volume24hr: k,
                    liquidity: C,
                    commentCount: F,
                    endDate: q,
                    eventCreators: M
                } = y;
            v[0] !== N ? (a = (0, eq.formatVolume)(N), v[0] = N, v[1] = a) : a = v[1], v[2] !== w ? (r = w("events.headerMeta.volume"), v[2] = w, v[3] = r) : r = v[3];
            let T = `${a} ${r}`;
            v[4] !== k ? (l = (0, eq.formatVolume)(k), v[4] = k, v[5] = l) : l = v[5];
            let _ = `${l} today`;
            v[6] !== C ? (n = (0, eq.formatVolume)(C), v[6] = C, v[7] = n) : n = v[7];
            let I = `${n} Liq.`;
            v[8] !== F ? (i = F ? F.toLocaleString("en-US") : "-", v[8] = F, v[9] = i) : i = v[9];
            let R = i;
            if (v[10] !== F || v[11] !== q || v[12] !== y.slug || v[13] !== M ? .[0] || v[14] !== R || v[15] !== I || v[16] !== T || v[17] !== _ || v[18] !== C || v[19] !== S || v[20] !== j || v[21] !== k) {
                let e = q ? (0, eu.formatDistanceToNow)(new Date(q), {
                    addSuffix: !0,
                    locale: (0, ek.getDateFnsLocale)(S)
                }) : "-";
                o = M ? .[0], m = "flex gap-2.5 items-center flex-wrap pointer-events-none", v[29] !== T ? (h = (0, t.jsx)("p", {
                    className: "text-body-sm text-neutral-400 font-medium whitespace-nowrap",
                    children: T
                }), v[29] = T, v[30] = h) : h = v[30], v[31] !== _ || v[32] !== k ? (f = void 0 !== k && k >= 5e4 && (0, t.jsxs)("div", {
                    className: "flex items-center gap-1",
                    children: [(0, t.jsx)(ex.IconFlameFill12, {
                        className: "text-red-300 dark:text-red-400"
                    }), (0, t.jsx)("p", {
                        className: "text-body-sm text-neutral-400 font-medium whitespace-nowrap",
                        children: _
                    })]
                }), v[31] = _, v[32] = k, v[33] = f) : f = v[33], v[34] !== I || v[35] !== C ? (x = void 0 !== C && (0, t.jsxs)("div", {
                    className: "flex items-center gap-1",
                    children: [(0, t.jsx)(ef, {
                        className: "text-neutral-200"
                    }), (0, t.jsx)("p", {
                        className: "text-body-sm text-neutral-400 font-medium whitespace-nowrap",
                        children: I
                    })]
                }), v[34] = I, v[35] = C, v[36] = x) : x = v[36], v[37] !== F || v[38] !== y.slug || v[39] !== R || v[40] !== j ? (u = !!F && (0, t.jsxs)(c.default, {
                    href: `/event/${y.slug}#commentsInner`,
                    className: "flex items-center gap-1 group/comments pointer-events-auto",
                    onClick: j,
                    children: [(0, t.jsx)(eg, {
                        className: "text-neutral-200 group-hover/comments:text-neutral-300 transition"
                    }), (0, t.jsx)("p", {
                        className: "text-body-sm text-neutral-400 font-medium whitespace-nowrap group-hover/comments:text-neutral-700 transition",
                        children: R
                    })]
                }), v[37] = F, v[38] = y.slug, v[39] = R, v[40] = j, v[41] = u) : u = v[41], d = void 0 !== q && !e.includes("ago") && (0, t.jsxs)("div", {
                    className: "flex items-center gap-1.5",
                    children: [(0, t.jsx)(eh, {
                        className: "text-neutral-200"
                    }), (0, t.jsxs)("p", {
                        className: "text-body-sm text-neutral-400 font-medium whitespace-nowrap",
                        children: ["Ends ", e]
                    })]
                }), v[10] = F, v[11] = q, v[12] = y.slug, v[13] = M ? .[0], v[14] = R, v[15] = I, v[16] = T, v[17] = _, v[18] = C, v[19] = S, v[20] = j, v[21] = k, v[22] = o, v[23] = u, v[24] = d, v[25] = m, v[26] = h, v[27] = f, v[28] = x
            } else o = v[22], u = v[23], d = v[24], m = v[25], h = v[26], f = v[27], x = v[28];
            return v[42] !== o ? (g = o && (0, t.jsx)("div", {
                className: "pointer-events-auto",
                children: (0, t.jsx)(ej.CreatorChip, {
                    creator: o,
                    isMarketCard: !0
                })
            }), v[42] = o, v[43] = g) : g = v[43], v[44] !== u || v[45] !== d || v[46] !== g || v[47] !== m || v[48] !== h || v[49] !== f || v[50] !== x ? (p = (0, t.jsxs)("div", {
                className: m,
                children: [h, f, x, u, d, g]
            }), v[44] = u, v[45] = d, v[46] = g, v[47] = m, v[48] = h, v[49] = f, v[50] = x, v[51] = p) : p = v[51], p
        },
        e_ = (0, h.memo)(function(e) {
            let a, r, l, n, i, o, c, u, d, m, h, f, x, g, p, v, y, b, w, S = (0, s.c)(58),
                {
                    event: N,
                    query: k,
                    activeTagSlug: C
                } = e,
                F = (0, eF.useAmplitudeAnalytics)(),
                q = (0, eS.isEventResolved)(N);
            S[0] !== N || S[1] !== k ? (a = (0, eS.getResultData)(N, k), S[0] = N, S[1] = k, S[2] = a) : a = S[2];
            let M = a;
            e: {
                if (N.seriesSlug) {
                    let e;
                    S[3] !== N ? (e = (0, ew.getEventOrSportsLinkFromSeries)(N), S[3] = N, S[4] = e) : e = S[4], r = e.url;
                    break e
                }
                r = N.markets && 1 === N.markets.length ? `/event/${N.markets[0].slug}` : `/event/${N.slug}`
            }
            let T = r;
            S[5] !== N.breadcrumbs ? (l = N.breadcrumbs ? ? {}, S[5] = N.breadcrumbs, S[6] = l) : l = S[6];
            let {
                category: _,
                subcategory: I
            } = l, R = !!C && _ ? .slug === C;
            S[7] !== F || S[8] !== N.id || S[9] !== N.slug || S[10] !== N.title || S[11] !== k ? (n = e => {
                e.stopPropagation(), F.trackEvent(eN.Events.SearchPageResultClick, {
                    eventId: N.id,
                    eventSlug: N.slug,
                    eventTitle: N.title,
                    query: k
                })
            }, S[7] = F, S[8] = N.id, S[9] = N.slug, S[10] = N.title, S[11] = k, S[12] = n) : n = S[12];
            let D = n,
                z = N.title;
            S[13] !== N.image || S[14] !== N.title ? (i = N.image ? (0, t.jsx)("div", {
                className: "relative size-12 lg:size-13 shrink-0 border rounded-sm overflow-hidden pointer-events-none",
                children: (0, t.jsx)(ed.default, {
                    src: N.image,
                    alt: N.title,
                    fill: !0,
                    sizes: "52px",
                    className: "object-cover"
                })
            }) : void 0, S[13] = N.image, S[14] = N.title, S[15] = i) : i = S[15], S[16] !== _ || S[17] !== R || S[18] !== I ? (o = _ || I ? (0, t.jsx)(eb.Breadcrumbs, {
                className: "shrink-0 pointer-events-auto",
                items: [..._ ? [{
                    label: _.label,
                    href: `/predictions/${_.slug}`,
                    onClick: eM,
                    disabled: R
                }] : [], ...I ? [{
                    label: I.label,
                    href: `/predictions/${I.slug}`,
                    onClick: eM
                }] : []]
            }) : void 0, S[16] = _, S[17] = R, S[18] = I, S[19] = o) : o = S[19];
            let O = M.event_title;
            S[20] !== N ? (u = (0, t.jsx)(eT, {
                event: N,
                onInternalLinkClick: eM
            }), c = (0, t.jsx)(eT, {
                event: N,
                onInternalLinkClick: eM
            }), S[20] = N, S[21] = c, S[22] = u) : (c = S[21], u = S[22]);
            let L = q ? "gap-1" : "gap-0.5";
            S[23] !== L ? (d = (0, j.cn)("flex flex-col items-end min-w-0", L), S[23] = L, S[24] = d) : d = S[24];
            let E = q ? "text-heading-lg" : "text-heading-2xl";
            S[25] !== E ? (m = (0, j.cn)("font-medium text-text mb-0.5 text-right truncate", E), S[25] = E, S[26] = m) : m = S[26];
            let P = M.title || "-",
                A = M.title || "-";
            return S[27] !== m || S[28] !== P || S[29] !== A ? (h = (0, t.jsx)("p", {
                className: m,
                title: P,
                children: A
            }), S[27] = m, S[28] = P, S[29] = A, S[30] = h) : h = S[30], S[31] !== M.outcome ? (f = "yes" === M.outcome && (0, t.jsx)("div", {
                className: "text-green-600 dark:text-green-500 shrink-0",
                children: (0, t.jsx)(ep.IconCircleCheckFill18, {})
            }), S[31] = M.outcome, S[32] = f) : f = S[32], S[33] !== M.outcome ? (x = "no" === M.outcome && (0, t.jsx)("div", {
                className: "text-red-500 shrink-0",
                children: (0, t.jsx)(ev.IconCircleXmarkFill18, {})
            }), S[33] = M.outcome, S[34] = x) : x = S[34], S[35] !== h || S[36] !== f || S[37] !== x ? (g = (0, t.jsxs)("div", {
                className: "flex items-center gap-1.5 max-w-full",
                children: [h, f, x]
            }), S[35] = h, S[36] = f, S[37] = x, S[38] = g) : g = S[38], S[39] !== M.subtitle ? (p = M.subtitle && (0, t.jsx)("p", {
                className: "text-body-sm font-normal text-text-secondary ml-0.5 truncate text-right max-w-full",
                children: M.subtitle
            }), S[39] = M.subtitle, S[40] = p) : p = S[40], S[41] !== d || S[42] !== g || S[43] !== p ? (v = (0, t.jsxs)("div", {
                className: d,
                children: [g, p]
            }), S[41] = d, S[42] = g, S[43] = p, S[44] = v) : v = S[44], S[45] === Symbol.for("react.memo_cache_sentinel") ? (y = (0, t.jsx)(ey.IconChevronRightOutline12, {
                className: "shrink-0 text-text-secondary transition-transform -translate-x-0.5 group-hover:translate-x-0"
            }), S[45] = y) : y = S[45], S[46] !== v ? (b = (0, t.jsxs)("div", {
                className: "flex items-center gap-4 my-auto min-w-0 max-w-[45%] shrink-0",
                children: [v, y]
            }), S[46] = v, S[47] = b) : b = S[47], S[48] !== N.title || S[49] !== D || S[50] !== T || S[51] !== M.event_title || S[52] !== c || S[53] !== b || S[54] !== i || S[55] !== o || S[56] !== u ? (w = (0, t.jsx)(ec, {
                href: T,
                ariaLabel: z,
                onClick: D,
                image: i,
                breadcrumbs: o,
                title: O,
                metadata: u,
                mobileMetadata: c,
                rightContent: b
            }), S[48] = N.title, S[49] = D, S[50] = T, S[51] = M.event_title, S[52] = c, S[53] = b, S[54] = i, S[55] = o, S[56] = u, S[57] = w) : w = S[57], w
        });
    var eI = e.i(435894),
        eR = e.i(211721);

    function eD(e) {
        let r, n, i, o, c, u, d, h = (0, s.c)(20),
            {
                value: f,
                onChange: x,
                onClear: g,
                placeholder: p,
                clearAriaLabel: v,
                className: y
            } = e,
            b = void 0 === p ? "Search..." : p,
            j = void 0 === v ? "Clear search" : v;
        h[0] !== x || h[1] !== g ? (r = () => {
            x(""), g ? .()
        }, h[0] = x, h[1] = g, h[2] = r) : r = h[2];
        let w = r;
        return h[3] !== y ? (n = (0, a.cn)("relative", y), h[3] = y, h[4] = n) : n = h[4], h[5] === Symbol.for("react.memo_cache_sentinel") ? (i = (0, t.jsx)(m.IconMagnifierOutline18, {
            className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
        }), h[5] = i) : i = h[5], h[6] !== x ? (o = e => x(e.target.value), h[6] = x, h[7] = o) : o = h[7], h[8] !== b || h[9] !== o || h[10] !== f ? (c = (0, t.jsx)(eI.Input, {
            placeholder: b,
            type: "text",
            value: f,
            onChange: o,
            className: "pl-10 pr-10 h-12 border-0 rounded-t-md rounded-b-none ring-2 ring-transparent transition-all"
        }), h[8] = b, h[9] = o, h[10] = f, h[11] = c) : c = h[11], h[12] !== j || h[13] !== w || h[14] !== f ? (u = f && (0, t.jsx)(l.Button, {
            variant: "ghost",
            size: "iconSm",
            onClick: w,
            className: "absolute right-2.5 top-1/2 -translate-y-1/2 text-text-secondary hover:bg-transparent hover:text-text-tertiary",
            "aria-label": j,
            children: (0, t.jsx)(eR.IconXmarkOutline12, {})
        }), h[12] = j, h[13] = w, h[14] = f, h[15] = u) : u = h[15], h[16] !== n || h[17] !== c || h[18] !== u ? (d = (0, t.jsxs)("div", {
            className: n,
            children: [i, c, u]
        }), h[16] = n, h[17] = c, h[18] = u, h[19] = d) : d = h[19], d
    }

    function ez(e) {
        let r, n, i, o, c, u, d, m, h, f, x, g = (0, s.c)(33),
            {
                search: p,
                sortOptions: v,
                onSortChange: y,
                statusOptions: b,
                onStatusChange: j,
                sortLabel: w,
                statusLabel: S,
                className: N
            } = e,
            k = void 0 === w ? "Sort by" : w,
            C = void 0 === S ? "Event status" : S;
        if (g[0] !== N ? (r = (0, a.cn)("w-full shrink-0 flex flex-col h-fit bg-surface-1 rounded-xl", N), g[0] = N, g[1] = r) : r = g[1], g[2] !== p ? (n = p && (0, t.jsxs)(t.Fragment, {
                children: [(0, t.jsx)("div", {
                    className: "hidden lg:block",
                    children: (0, t.jsx)(eD, {
                        value: p.value,
                        onChange: p.onChange,
                        onClear: p.onClear,
                        placeholder: p.placeholder,
                        clearAriaLabel: p.clearAriaLabel
                    })
                }), (0, t.jsx)("div", {
                    className: "border-b w-full hidden lg:block"
                })]
            }), g[2] = p, g[3] = n) : n = g[3], g[4] !== k ? (i = (0, t.jsx)("p", {
                className: "text-text-secondary text-[13px] tracking-[-0.09px] font-medium",
                children: k
            }), g[4] = k, g[5] = i) : i = g[5], g[6] !== y || g[7] !== v) {
            let e;
            g[9] !== y ? (e = e => (0, t.jsxs)(l.Button, {
                variant: "tertiary",
                size: "sm",
                className: (0, a.cn)("rounded-md pl-2", e.active && "bg-neutral-200!"),
                onClick: () => y(e.value),
                children: [e.icon, (0, t.jsx)("p", {
                    className: "text-[13px] tracking-[-0.09px] font-medium!",
                    children: e.label
                })]
            }, e.value), g[9] = y, g[10] = e) : e = g[10], o = v.map(e), g[6] = y, g[7] = v, g[8] = o
        } else o = g[8];
        if (g[11] !== o ? (c = (0, t.jsx)("div", {
                className: "w-full flex flex-wrap gap-2",
                children: o
            }), g[11] = o, g[12] = c) : c = g[12], g[13] !== i || g[14] !== c ? (u = (0, t.jsxs)("div", {
                className: "w-full flex flex-col gap-2 p-3",
                children: [i, c]
            }), g[13] = i, g[14] = c, g[15] = u) : u = g[15], g[16] !== C ? (d = (0, t.jsx)("p", {
                className: "text-text-secondary text-[13px] tracking-[-0.09px] font-medium",
                children: C
            }), g[16] = C, g[17] = d) : d = g[17], g[18] !== j || g[19] !== b) {
            let e;
            g[21] !== j ? (e = e => (0, t.jsx)(l.Button, {
                variant: "tertiary",
                size: "sm",
                className: (0, a.cn)("rounded-md", e.active && "bg-neutral-200!"),
                onClick: () => j(e.value),
                children: (0, t.jsx)("p", {
                    className: "text-[13px] tracking-[-0.09px] font-medium!",
                    children: e.label
                })
            }, e.value), g[21] = j, g[22] = e) : e = g[22], m = b.map(e), g[18] = j, g[19] = b, g[20] = m
        } else m = g[20];
        return g[23] !== m ? (h = (0, t.jsx)("div", {
            className: "w-full flex flex-wrap gap-2",
            children: m
        }), g[23] = m, g[24] = h) : h = g[24], g[25] !== h || g[26] !== d ? (f = (0, t.jsxs)("div", {
            className: "w-full flex flex-col gap-2 p-3 border-t",
            children: [d, h]
        }), g[25] = h, g[26] = d, g[27] = f) : f = g[27], g[28] !== f || g[29] !== r || g[30] !== n || g[31] !== u ? (x = (0, t.jsxs)("div", {
            className: r,
            children: [n, u, f]
        }), g[28] = f, g[29] = r, g[30] = n, g[31] = u, g[32] = x) : x = g[32], x
    }
    var eO = e.i(831337),
        eL = e.i(673280),
        eE = e.i(75576),
        eP = e.i(756428),
        eA = e.i(606811),
        e$ = e.i(610951),
        eB = e.i(337345),
        eU = e.i(631222);
    let eK = async e => {
        let t = e.toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "");
        if (!t) return null;
        try {
            let e = await fetch(`${eU.GAMMA_API_URL}/tags/slug/${encodeURIComponent(t)}`, {
                method: "GET",
                headers: {
                    "Content-Type": "application/json"
                }
            });
            if (200 === e.status) {
                let t = await e.json();
                if (t ? .slug) return {
                    slug: t.slug,
                    label: t.label
                }
            }
            return null
        } catch {
            return null
        }
    };

    function eQ() {
        let e = (0, u.useRouter)(),
            s = (0, b.useTranslations)(),
            a = I(e => e.filters),
            r = I(e => e.setFilters),
            l = I(e => e.setQuery),
            n = I(e => e.setSelectedTag),
            i = [{
                value: "trending",
                label: s("filters.sortByOptions.trending"),
                icon: (0, t.jsx)(eL.IconArrowTrendUpOutline18, {})
            }, {
                value: "liquidity",
                label: s("filters.sortByOptions.liquidity"),
                icon: (0, t.jsx)(eA.IconDropletOutline18, {})
            }, {
                value: "volume",
                label: s("filters.sortByOptions.volume"),
                icon: (0, t.jsx)(e$.IconFireFlameOutline18, {})
            }, {
                value: "newest",
                label: s("filters.sortByOptions.newest"),
                icon: (0, t.jsx)(eB.IconPopOutline18, {})
            }, {
                value: "ending_soon",
                label: s("filters.sortByOptions.endingSoon"),
                icon: (0, t.jsx)(eP.IconCircleHalfDottedClockOutline18, {})
            }, {
                value: "competitive",
                label: s("filters.sortByOptions.competitive"),
                icon: (0, t.jsx)(eE.IconBoxingGloveOutline18, {})
            }],
            o = [{
                value: "active",
                label: s("filters.active")
            }, {
                value: "resolved",
                label: s("filters.resolved")
            }, {
                value: "all",
                label: s("filters.all")
            }],
            c = I(e => e.query),
            [d, m] = (0, h.useState)(""),
            f = (0, h.useRef)(0);
        (0, h.useEffect)(() => {
            m(c)
        }, [c]);
        let x = (0, h.useCallback)(async t => {
                let s = ++f.current,
                    a = {};
                Object.keys(e.query).forEach(t => {
                    "slug" !== t && "_q" !== t && "string" == typeof e.query[t] && (a[t] = e.query[t])
                });
                let r = new URLSearchParams(a).toString(),
                    l = r ? `?${r}` : "";
                if (t) {
                    let r = await eK(t);
                    if (s !== f.current) return;
                    if (r) return void e.push(`/predictions/${r.slug}${l}`);
                    let n = new URLSearchParams(a);
                    n.set("_q", (0, S.normalizeSearchQueryForUrl)(t)), e.push(`/search?${n.toString()}`)
                } else e.push(`/predictions${l}`)
            }, [e]),
            g = (0, h.useMemo)(() => (0, eO.debounce)(e => {
                l(e), x(e), n(void 0), e && e.length > 0 && window.gtag && window.gtag("event", "search", {
                    search_term: e,
                    platform: "web"
                })
            }, 300), [l, x, n]);
        return (0, t.jsx)(ez, {
            search: {
                value: d,
                onChange: e => {
                    m(e), g(e)
                },
                onClear: () => {
                    m(""), g.cancel(), l(""), x(""), n(void 0)
                },
                placeholder: s("search.eventsPlaceholder"),
                clearAriaLabel: s("search.clearSearch")
            },
            sortOptions: i.map(e => ({ ...e,
                active: e.value === a.sort
            })),
            onSortChange: e => {
                r({
                    sort: e === a.sort ? void 0 : e
                })
            },
            statusOptions: o.map(e => ({ ...e,
                active: e.value === (a.status || "all")
            })),
            onStatusChange: e => r({
                status: e
            }),
            sortLabel: s("filters.sortBy"),
            statusLabel: s("filters.eventStatus")
        })
    }

    function eX(e) {
        let a, r, l = (0, s.c)(3),
            {
                count: n
            } = e,
            i = void 0 === n ? 3 : n;
        return l[0] === Symbol.for("react.memo_cache_sentinel") ? (a = {
            WebkitMaskImage: "linear-gradient(to bottom, white, transparent)"
        }, l[0] = a) : a = l[0], l[1] !== i ? (r = (0, t.jsx)("div", {
            className: "gap-4 flex flex-col w-full",
            style: a,
            children: [...Array(i)].map(eV)
        }), l[1] = i, l[2] = r) : r = l[2], r
    }

    function eV(e, s) {
        return (0, t.jsx)(i.Skeleton, {
            className: "w-full h-24"
        }, s)
    }
    let eZ = (0, h.memo)(function(e) {
        let a = (0, s.c)(22),
            {
                displayResults: r,
                query: l,
                isError: n,
                showEmptyState: i,
                showResults: o,
                hasNextPage: c,
                isFetchingNextPage: u,
                loadMoreRef: d,
                activeTagSlug: h
            } = e,
            f = (0, b.useTranslations)();
        if (n) return null;
        if (o) {
            let e, s, n, i;
            if (a[0] !== h || a[1] !== r || a[2] !== l) {
                let s;
                a[4] !== h || a[5] !== r.length || a[6] !== l ? (s = (e, s) => (0, t.jsxs)("div", {
                    children: [(0, t.jsx)(e_, {
                        event: e,
                        query: l,
                        activeTagSlug: h
                    }), s !== r.length - 1 && (0, t.jsx)("div", {
                        className: "h-px w-full bg-border shrink-0"
                    })]
                }, e.id), a[4] = h, a[5] = r.length, a[6] = l, a[7] = s) : s = a[7], e = r.map(s), a[0] = h, a[1] = r, a[2] = l, a[3] = e
            } else e = a[3];
            return a[8] !== e ? (s = (0, t.jsx)("div", {
                className: "flex flex-col",
                children: e
            }), a[8] = e, a[9] = s) : s = a[9], a[10] !== c || a[11] !== u || a[12] !== d ? (n = c && (0, t.jsx)("div", {
                ref: d,
                className: "flex justify-center mt-2",
                children: u && (0, t.jsx)(eX, {
                    count: 3
                })
            }), a[10] = c, a[11] = u, a[12] = d, a[13] = n) : n = a[13], a[14] !== s || a[15] !== n ? (i = (0, t.jsxs)(t.Fragment, {
                children: [s, n]
            }), a[14] = s, a[15] = n, a[16] = i) : i = a[16], i
        }
        if (i) {
            let e, s, r;
            return a[17] === Symbol.for("react.memo_cache_sentinel") ? (e = (0, t.jsx)(m.IconMagnifierOutline18, {
                className: "text-text-secondary"
            }), a[17] = e) : e = a[17], a[18] !== f ? (s = f("search.noResultsResetFilters"), a[18] = f, a[19] = s) : s = a[19], a[20] !== s ? (r = (0, t.jsxs)("div", {
                className: "flex flex-col items-center gap-3 mt-6",
                children: [e, (0, t.jsx)("p", {
                    className: "text-sm font-regular text-text-secondary mx-auto whitespace-nowrap",
                    children: s
                })]
            }), a[20] = s, a[21] = r) : r = a[21], r
        }
        return null
    });

    function eW(e) {
        let a, r, i, o, u, d, m, f = (0, s.c)(20),
            {
                filteredTags: x,
                activeTagSlug: g,
                query: p
            } = e,
            v = (0, h.useRef)(null),
            y = (0, b.useTranslations)();
        if (0 === x.length) return null;
        f[0] !== p ? (a = p ? `/search?_q=${encodeURIComponent((0,S.normalizeSearchQueryForUrl)(p))}` : "/predictions", f[0] = p, f[1] = a) : a = f[1];
        let j = a,
            w = g ? "text-text-secondary shrink-0" : "bg-neutral-100 text-text-primary hover:bg-neutral-100 shrink-0";
        if (f[2] !== y ? (r = y("filters.all"), f[2] = y, f[3] = r) : r = f[3], f[4] !== r ? (i = (0, t.jsx)("p", {
                className: "text-[13px]",
                children: r
            }), f[4] = r, f[5] = i) : i = f[5], f[6] !== j || f[7] !== i ? (o = (0, t.jsx)(c.default, {
                href: j,
                prefetch: !1,
                children: i
            }), f[6] = j, f[7] = i, f[8] = o) : o = f[8], f[9] !== w || f[10] !== o ? (u = (0, t.jsx)(l.Button, {
                variant: "ghost",
                className: w,
                size: "sm",
                asChild: !0,
                children: o
            }), f[9] = w, f[10] = o, f[11] = u) : u = f[11], f[12] !== g || f[13] !== x) {
            let e;
            f[15] !== g ? (e = e => {
                var s;
                return (0, t.jsx)(l.Button, {
                    variant: "ghost",
                    className: g === e.slug ? "bg-neutral-100 text-text-primary hover:bg-neutral-100 shrink-0" : "text-text-secondary shrink-0",
                    size: "sm",
                    asChild: !0,
                    children: (0, t.jsx)(c.default, {
                        href: (s = e.slug, `/predictions/${s}`),
                        prefetch: !1,
                        children: (0, t.jsx)("p", {
                            className: "text-[13px] tracking-[-0.09px] whitespace-nowrap",
                            children: (0, N.toAdjustedTitleCase)(e.label)
                        })
                    })
                }, e.slug)
            }, f[15] = g, f[16] = e) : e = f[16], d = x.map(e), f[12] = g, f[13] = x, f[14] = d
        } else d = f[14];
        return f[17] !== u || f[18] !== d ? (m = (0, t.jsxs)(n.ScrollContainer, {
            containerRef: v,
            className: "flex items-center justify-start gap-2 overflow-x-auto snap-x scroll-px-3 snap-mandatory no-scrollbar",
            showArrows: !0,
            children: [u, d]
        }), f[17] = u, f[18] = d, f[19] = m) : m = f[19], m
    }
    let eH = (0, h.memo)(function(e) {
        let a, r, l = (0, s.c)(35),
            {
                query: n,
                tagSlug: i,
                tagLabel: o,
                totalResults: c,
                showEmptyState: u,
                isEmptyQuery: d,
                isResolvedFallback: m
            } = e,
            h = (0, b.useTranslations)();
        l[0] !== o || l[1] !== i ? (a = o ? (0, N.toAdjustedTitleCase)(o) : (0, N.toAdjustedTitleCase)((0, S.tagToReadableString)(i)), l[0] = o, l[1] = i, l[2] = a) : a = l[2];
        let f = a;
        e: {
            let e, s, a, i, o, x, p;
            if (u && d) {
                let e;
                l[3] === Symbol.for("react.memo_cache_sentinel") ? (e = (0, t.jsx)("h1", {
                    className: "text-lg lg:text-xl font-semibold text-text-primary whitespace-nowrap",
                    children: "Explore popular predictions & real-time odds"
                }), l[3] = e) : e = l[3], r = e;
                break e
            }
            if (n) {
                let e, s, a, i, o, u, d = `${c}${m?" resolved":""} result${1===c?"":"s"} for ${n}`;
                l[4] !== d ? (e = (0, t.jsx)("h1", {
                    className: "sr-only",
                    children: d
                }), l[4] = d, l[5] = e) : e = l[5], l[6] === Symbol.for("react.memo_cache_sentinel") ? (s = (0, t.jsx)(g.AnimatedNumber.Digits, {
                    stiffness: 700,
                    damping: 45
                }), l[6] = s) : s = l[6];
                let h = m ? "resolved " : "",
                    f = 1 === c ? "" : "s";
                l[7] !== n ? (a = (0, t.jsx)("span", {
                    className: "text-text-primary",
                    children: n
                }), l[7] = n, l[8] = a) : a = l[8], l[9] !== h || l[10] !== f || l[11] !== a ? (i = (0, t.jsx)(g.AnimatedNumber.Suffix, {
                    children: (0, t.jsxs)("p", {
                        className: "text-heading-xl font-medium text-text-secondary whitespace-nowrap",
                        children: [" ", (0, t.jsxs)("span", {
                            className: "text-text-secondary",
                            children: [h, "result", f, " ", "for ", a]
                        })]
                    })
                }), l[9] = h, l[10] = f, l[11] = a, l[12] = i) : i = l[12], l[13] !== i || l[14] !== c ? (o = (0, t.jsxs)(g.AnimatedNumber.Root, {
                    value: c,
                    decimalCount: 0,
                    padding: 11,
                    className: "text-heading-xl! font-medium text-text-secondary whitespace-nowrap",
                    zeroPadBeforeDecimal: !1,
                    "aria-hidden": "true",
                    children: [s, i]
                }), l[13] = i, l[14] = c, l[15] = o) : o = l[15], l[16] !== o || l[17] !== e ? (u = (0, t.jsxs)(t.Fragment, {
                    children: [e, o]
                }), l[16] = o, l[17] = e, l[18] = u) : u = l[18], r = u;
                break e
            }
            l[19] !== h ? (e = h("search.predictionsAndOdds"), l[19] = h, l[20] = e) : e = l[20],
            l[21] !== f || l[22] !== e ? (s = (0, t.jsxs)("h1", {
                className: "text-xl font-medium text-text-primary whitespace-nowrap",
                children: [f, " ", e]
            }), l[21] = f, l[22] = e, l[23] = s) : s = l[23],
            l[24] === Symbol.for("react.memo_cache_sentinel") ? (a = (0, t.jsx)("span", {
                className: "select-none text-xl font-medium text-text-secondary whitespace-nowrap",
                children: "·"
            }), l[24] = a) : a = l[24],
            l[25] === Symbol.for("react.memo_cache_sentinel") ? (i = (0, t.jsx)(g.AnimatedNumber.Digits, {
                stiffness: 700,
                damping: 45
            }), l[25] = i) : i = l[25];
            let v = m ? "resolved " : "",
                y = 1 === c ? "" : "s";l[26] !== v || l[27] !== y ? (o = (0, t.jsx)(g.AnimatedNumber.Suffix, {
                children: (0, t.jsxs)("span", {
                    className: "text-xl font-medium text-text-secondary whitespace-nowrap",
                    children: [" ", v, "polymarket", y]
                })
            }), l[26] = v, l[27] = y, l[28] = o) : o = l[28],
            l[29] !== o || l[30] !== c ? (x = (0, t.jsxs)(g.AnimatedNumber.Root, {
                value: c,
                decimalCount: 0,
                padding: 11,
                className: "text-xl! font-medium text-text-secondary whitespace-nowrap",
                zeroPadBeforeDecimal: !1,
                "aria-hidden": "true",
                children: [i, o]
            }), l[29] = o, l[30] = c, l[31] = x) : x = l[31],
            l[32] !== x || l[33] !== s ? (p = (0, t.jsxs)("div", {
                className: "flex items-center gap-1.5",
                children: [s, a, x]
            }), l[32] = x, l[33] = s, l[34] = p) : p = l[34],
            r = p
        }
        return r
    });

    function eG(e, s) {
        return (0, t.jsx)(i.Skeleton, {
            className: "h-8 rounded-md shrink-0",
            style: {
                width: `${e}px`
            }
        }, s)
    }

    function eY() {}

    function eJ(e) {
        return !(0, N.isTagExcluded)(e.label)
    }

    function e0(e) {
        return e.setShowFavorites
    }

    function e1(e) {
        return e.filters
    }

    function e2(e) {
        return e.resetFilters
    }

    function e3(e) {
        return e.hydrateFromSnapshot
    }

    function e5() {
        return Array.from({
            length: 4
        }, e4)
    }

    function e4() {
        return 60 + 40 * Math.random()
    }
    e.s(["SearchResultsPage", 0, function(e) {
        let a, n, c, m, g, N, C, F, _, ec, eu, ed, em, eh, ef, ex, eg, ep, ev, ey, eb, ej, ew, eS, eN, ek, eC, eF, eq, eM, eT, e_, eI, eR, eD, ez, eO, eL = (0, s.c)(100);
        eL[0] !== e ? (a = void 0 === e ? {} : e, eL[0] = e, eL[1] = a) : a = eL[1];
        let {
            initialState: eE,
            schemaData: eP
        } = a, eA = (0, u.useRouter)(), {
            pathname: e$
        } = eA, [eB, eU] = (0, h.useState)(!1), [eK] = (0, h.useState)(e5), eV = (0, b.useTranslations)();
        eL[2] === Symbol.for("react.memo_cache_sentinel") ? (n = ["authenticated"], eL[2] = n) : n = eL[2];
        let {
            authenticated: e4
        } = (0, w.useAccountContext)(n), e7 = I(e3);
        eL[3] !== e7 || eL[4] !== eE ? (c = () => {
            eE && e7(eE)
        }, eL[3] = e7, eL[4] = eE, eL[5] = c) : c = eL[5];
        let e6 = eE ? .snapshotKey;
        eL[6] !== e7 || eL[7] !== eE || eL[8] !== e6 ? (m = [e6, e7, eE], eL[6] = e7, eL[7] = eE, eL[8] = e6, eL[9] = m) : m = eL[9], (0, f.useIsomorphicLayoutEffect)(c, m), eF = (0, u.useRouter)(), eq = (0, h.useRef)(!1), eM = I(e => e.filters), eT = I(e => e.setFilters), e_ = I(e => e.searchMode), eI = I(e => e.query), eR = I(e => e.showFavorites), eD = I(e => e.setShowFavorites), ez = I(e => e.hasInitialized), (0, h.useEffect)(() => {
            if (!eF.isReady || !ez) return;
            let e = {},
                t = !1;
            Object.entries(eo).forEach(s => {
                let [a, r] = s, l = eF.query[a];
                if ("string" == typeof l) {
                    if ("status" === r && T.includes(l)) {
                        e.status = l, t = !0;
                        return
                    }
                    if ("sort" === r && M.includes(l)) {
                        e.sort = l, t = !0;
                        return
                    }
                    if ("category" === r) {
                        e.category = l, t = !0;
                        return
                    }
                    "creator" === r && (e.creator = l, t = !0)
                }
            }), t && eT(e), eD("true" === eF.query[ei]), eq.current = !0
        }, [eF.isReady, eF.query, eT, eD, ez]), eO = (0, h.useCallback)(() => {
            if (!eF.isReady || !ez || !eq.current) return;
            let e = {};
            Object.entries(eM).forEach(([t, s]) => {
                let a = en[t];
                a && s && s !== q[t] && (e[a] = String(s))
            }), eR && (e[ei] = "true"), "string" == typeof eF.query.modal && (e.modal = eF.query.modal), "string" == typeof eF.query.mt && (e.mt = eF.query.mt);
            let t = new URLSearchParams;
            Object.entries(eF.query).forEach(([e, s]) => {
                "string" == typeof s && "slug" !== e && t.set(e, s)
            });
            let s = new URLSearchParams(e),
                a = eF.asPath.indexOf("#"),
                r = -1 !== a ? eF.asPath.slice(a) : "";
            if ("query" === e_ && eI && s.set("_q", (0, S.normalizeSearchQueryForUrl)(eI)), t.toString() !== s.toString()) {
                let e;
                e = "tag" === e_ && eF.query.slug ? `/predictions/${eF.query.slug}` : "/search" === eF.pathname ? "/search" : "/predictions";
                let t = `${e}${s.toString()?`?${s.toString()}`:""}${r}`;
                eF.push(t, void 0, {
                    shallow: !0
                })
            }
        }, [eM, eF, e_, eI, eR, ez]), (0, h.useEffect)(() => {
            if (!eq.current || !ez) return;
            let e = setTimeout(eO, 100);
            return () => clearTimeout(e)
        }, [eO, ez]), eq.current;
        let {
            query: e8,
            tagSlug: e9,
            tagLabel: te,
            searchMode: tt,
            allResults: ts,
            totalResults: ta,
            isError: tr,
            fetchNextPage: tl,
            hasNextPage: tn,
            isFetching: ti,
            isLoading: to,
            isFetchingNextPage: tc,
            showInitialSkeleton: tu,
            showEmptyState: td,
            showResults: tm,
            loadMoreRef: th,
            isEmptyQuery: tf,
            showFavorites: tx,
            onToggleFavorites: tg,
            setSelectedTag: tp,
            tags: tv,
            isResolvedFallback: ty
        } = function(e) {
            let t, a, r, l, n, i, o, c, d, m, f, x, g = (0, s.c)(68),
                p = (0, u.useRouter)(),
                v = I(el),
                y = I(er),
                b = I(ea),
                j = I(es),
                w = I(et),
                N = I(ee),
                C = I(J),
                F = I(Y),
                M = I(G);
            g[0] === Symbol.for("react.memo_cache_sentinel") ? (t = {
                threshold: 0,
                rootMargin: "200px"
            }, g[0] = t) : t = g[0];
            let {
                ref: T,
                inView: _
            } = (0, k.useInView)(t), {
                data: en,
                isLoading: ei,
                isError: eo,
                error: ec,
                fetchNextPage: eu,
                hasNextPage: ed,
                isFetching: em,
                isFetchingNextPage: eh,
                isResolvedFallback: ef
            } = function(e, t) {
                let a, r, l, n, i, o, c, u = (0, s.c)(41),
                    d = void 0 !== t && t,
                    m = I(W),
                    f = I(Z),
                    x = I(V),
                    g = I(X),
                    p = I(Q),
                    v = I(K),
                    y = I(U),
                    b = I(B),
                    j = I($),
                    w = I(A),
                    S = (0, z.useQueryClient)(),
                    N = e && (!b || e.snapshotKey !== j),
                    k = N ? e.query : m,
                    C = N ? e.searchMode : x,
                    F = N ? e.tagSlug : f,
                    M = N ? e.filters : g,
                    T = N ? e.showFavorites : p,
                    _ = N ? e.selectedTag : v,
                    H = N ? e.tagLabel : y,
                    [G, Y] = (0, h.useState)(!1),
                    J = e ? .isResolvedFallback ? ? !1,
                    ee = G && M.status === q.status ? { ...M,
                        status: "resolved"
                    } : M,
                    et = "v3" === (0, O.useFeatureFlagVariant)("search_v3") ? "v3" : "v2",
                    es = [...L({
                        searchMode: C,
                        query: k,
                        tagSlug: F,
                        filters: ee,
                        showFavorites: T,
                        selectedTag: _,
                        tagLabel: H,
                        optimized: d
                    }), et];
                u[0] !== ee || u[1] !== d || u[2] !== k || u[3] !== S || u[4] !== es || u[5] !== C || u[6] !== et || u[7] !== _ || u[8] !== T || u[9] !== H || u[10] !== F ? (a = async e => {
                    let {
                        pageParam: t
                    } = e, s = void 0 === t ? 1 : t, a = S.getQueryData(es);
                    return E({
                        searchMode: C,
                        query: k,
                        tagSlug: F,
                        filters: ee,
                        showFavorites: T,
                        selectedTag: _,
                        tagLabel: H,
                        optimized: d,
                        tagSearchUsedQueryFallback: "number" == typeof s && s > 1 && a ? .pages ? .[0] ? .usedQueryFallback === !0
                    }, s, et)
                }, u[0] = ee, u[1] = d, u[2] = k, u[3] = S, u[4] = es, u[5] = C, u[6] = et, u[7] = _, u[8] = T, u[9] = H, u[10] = F, u[11] = a) : a = u[11], u[12] !== es || u[13] !== a ? (r = {
                    queryKey: es,
                    queryFn: a,
                    initialPageParam: 1,
                    getNextPageParam: P,
                    enabled: !0,
                    placeholderData: R.keepPreviousData,
                    staleTime: 3e5,
                    gcTime: 6e5,
                    refetchOnMount: !1,
                    refetchOnWindowFocus: !1,
                    queryKeyHashFn: R.hashKey
                }, u[12] = es, u[13] = a, u[14] = r) : r = u[14];
                let ea = (0, D.useInfiniteQuery)(r);
                u[15] !== M.status || u[16] !== G || u[17] !== J || u[18] !== k || u[19] !== ea.data ? .pages ? .[0] ? .totalCount || u[20] !== ea.isFetching || u[21] !== C || u[22] !== w ? (l = () => {
                    J || G || ea.data ? .pages ? .[0] ? .totalCount !== 0 || M.status !== q.status || ea.isFetching || "tag" !== C && !k || (Y(!0), w({
                        status: "resolved"
                    }))
                }, u[15] = M.status, u[16] = G, u[17] = J, u[18] = k, u[19] = ea.data ? .pages ? .[0] ? .totalCount, u[20] = ea.isFetching, u[21] = C, u[22] = w, u[23] = l) : l = u[23];
                let er = ea.data ? .pages;
                u[24] !== M.status || u[25] !== G || u[26] !== J || u[27] !== k || u[28] !== ea.isFetching || u[29] !== C || u[30] !== w || u[31] !== er ? (n = [er, ea.isFetching, M.status, C, k, J, G, w], u[24] = M.status, u[25] = G, u[26] = J, u[27] = k, u[28] = ea.isFetching, u[29] = C, u[30] = w, u[31] = er, u[32] = n) : n = u[32], (0, h.useEffect)(l, n), u[33] === Symbol.for("react.memo_cache_sentinel") ? (i = () => {
                    Y(!1)
                }, u[33] = i) : i = u[33], u[34] !== M.status || u[35] !== k || u[36] !== F ? (o = [F, k, M.status], u[34] = M.status, u[35] = k, u[36] = F, u[37] = o) : o = u[37], (0, h.useEffect)(i, o);
                let el = J || G && M.status === q.status;
                return u[38] !== el || u[39] !== ea ? (c = { ...ea,
                    isResolvedFallback: el
                }, u[38] = el, u[39] = ea, u[40] = c) : c = u[40], c
            }(e, !1), ex = e && e.snapshotKey !== M ? e : void 0, eg = !!ex, ep = eg ? ex ? .tagSlug : v, ev = eg ? ex ? .tagLabel : y, ey = eg ? ex ? .searchMode ? ? "query" : b, eb = eg ? ex ? .showFavorites ? ? !1 : w, ej = eg ? ex ? .selectedTag : F;
            en ? .pages;
            let ew = en ? .pages[0] ? .query || "";
            g[1] !== ex ? .filters || g[2] !== j || g[3] !== ew || g[4] !== p.asPath || g[5] !== p.isReady || g[6] !== p.pathname || g[7] !== p.query.slug || g[8] !== eg || g[9] !== b || g[10] !== v ? (a = () => {
                if (!p.isReady) return;
                let e = p.pathname.split("/");
                if (("search" === e[1] || "predictions" === e[1]) && "[slug]" === e[2] && p.query.slug) {
                    let e = p.query.slug;
                    (e !== v || "tag" !== b) && j({
                        mode: "tag",
                        tagSlug: e,
                        tagLabel: e,
                        filters: eg ? ex ? .filters : void 0
                    })
                } else {
                    let e, t = (e = p.asPath.split("?")[1], new URLSearchParams(e ? .split("#")[0] ? ? "")),
                        s = t.get("_q") || t.get("q") || "",
                        a = (0, S.denormalizeSearchQueryFromUrl)(s);
                    (a !== ew || "query" !== b) && j({
                        mode: "query",
                        query: a,
                        filters: eg ? ex ? .filters : void 0
                    })
                }
            }, g[1] = ex ? .filters, g[2] = j, g[3] = ew, g[4] = p.asPath, g[5] = p.isReady, g[6] = p.pathname, g[7] = p.query.slug, g[8] = eg, g[9] = b, g[10] = v, g[11] = a) : a = g[11], g[12] !== ex || g[13] !== j || g[14] !== ew || g[15] !== p.asPath || g[16] !== p.isReady || g[17] !== p.pathname || g[18] !== p.query.slug || g[19] !== eg || g[20] !== b || g[21] !== v ? (r = [p.isReady, p.asPath, p.pathname, p.query.slug, j, ew, v, b, eg, ex], g[12] = ex, g[13] = j, g[14] = ew, g[15] = p.asPath, g[16] = p.isReady, g[17] = p.pathname, g[18] = p.query.slug, g[19] = eg, g[20] = b, g[21] = v, g[22] = r) : r = g[22], (0, h.useEffect)(a, r), g[23] !== eu || g[24] !== ed || g[25] !== _ || g[26] !== eh ? (l = () => {
                _ && ed && !eh && eu()
            }, n = [_, ed, eh, eu], g[23] = eu, g[24] = ed, g[25] = _, g[26] = eh, g[27] = l, g[28] = n) : (l = g[27], n = g[28]), (0, h.useEffect)(l, n), g[29] !== en ? .pages ? (i = () => en ? .pages.flatMap(H) ? ? [], g[29] = en ? .pages, g[30] = i) : i = g[30], en ? .pages, g[31] !== i ? (o = i(), g[31] = i, g[32] = o) : o = g[32];
            let eS = o;
            en ? .pages;
            let eN = en ? .pages[0] ? .totalCount || 0;
            g[33] !== en ? .pages[0] ? .tags ? (c = () => en ? .pages[0] ? .tags || [], g[33] = en ? .pages[0] ? .tags, g[34] = c) : c = g[34], en ? .pages, g[35] !== c ? (d = c(), g[35] = c, g[36] = d) : d = g[36];
            let ek = d;
            g[37] !== ew || g[38] !== ey ? (m = "query" === ey && (!ew || "" === ew.trim()), g[37] = ew, g[38] = ey, g[39] = m) : m = g[39];
            let eC = m,
                eF = !en && ei,
                eq = !ei && !eo,
                eM = !!(eq && (!ew && "query" === ey || ew && 0 === eS.length)),
                eT = eq && eS.length > 0;
            g[40] !== N || g[41] !== eb ? (f = () => {
                N(!eb)
            }, g[40] = N, g[41] = eb, g[42] = f) : f = g[42];
            let e_ = f;
            return g[43] !== eS || g[44] !== ec || g[45] !== eu || g[46] !== ed || g[47] !== eC || g[48] !== eo || g[49] !== em || g[50] !== eh || g[51] !== ei || g[52] !== ef || g[53] !== T || g[54] !== e_ || g[55] !== ew || g[56] !== ey || g[57] !== ej || g[58] !== C || g[59] !== eM || g[60] !== eb || g[61] !== eF || g[62] !== eT || g[63] !== ev || g[64] !== ep || g[65] !== ek || g[66] !== eN ? (x = {
                query: ew,
                tagSlug: ep,
                tagLabel: ev,
                searchMode: ey,
                allResults: eS,
                totalResults: eN,
                isError: eo,
                error: ec,
                hasNextPage: ed,
                isFetching: em,
                isLoading: ei,
                isFetchingNextPage: eh,
                showInitialSkeleton: eF,
                showEmptyState: eM,
                showResults: eT,
                loadMoreRef: T,
                isEmptyQuery: eC,
                showFavorites: eb,
                onToggleFavorites: e_,
                setSelectedTag: C,
                selectedTag: ej,
                tags: ek,
                isResolvedFallback: ef,
                fetchNextPage: eu
            }, g[43] = eS, g[44] = ec, g[45] = eu, g[46] = ed, g[47] = eC, g[48] = eo, g[49] = em, g[50] = eh, g[51] = ei, g[52] = ef, g[53] = T, g[54] = e_, g[55] = ew, g[56] = ey, g[57] = ej, g[58] = C, g[59] = eM, g[60] = eb, g[61] = eF, g[62] = eT, g[63] = ev, g[64] = ep, g[65] = ek, g[66] = eN, g[67] = x) : x = g[67], x
        }(eE), tb = I(e2), tj = I(e1), tw = I(e0), tS = "trending" !== tj.sort || "active" !== tj.status || tx;
        e: {
            let e;
            if (tv) {
                let e;
                eL[10] !== tv ? (e = tv.filter(eJ), eL[10] = tv, eL[11] = e) : e = eL[11], g = e;
                break e
            }
            eL[12] === Symbol.for("react.memo_cache_sentinel") ? (e = [], eL[12] = e) : e = eL[12],
            g = e
        }
        let tN = g;
        eL[13] !== tb || eL[14] !== eA || eL[15] !== tp || eL[16] !== tw ? (N = () => {
            tp(void 0), tw(!1), tb(), eA.push("/predictions", void 0, {
                shallow: !1
            })
        }, eL[13] = tb, eL[14] = eA, eL[15] = tp, eL[16] = tw, eL[17] = N) : N = eL[17];
        let tk = N;
        eL[18] !== tx ? (C = (0, t.jsx)(o.Bookmark, {
            active: tx
        }), eL[18] = tx, eL[19] = C) : C = eL[19];
        let tC = C,
            [tF, tq] = (0, h.useState)(20);
        eL[20] === Symbol.for("react.memo_cache_sentinel") ? (F = () => {
            tq(20)
        }, eL[20] = F) : F = eL[20], eL[21] !== e8 || eL[22] !== tt || eL[23] !== e9 ? (_ = [e8, e9, tt], eL[21] = e8, eL[22] = tt, eL[23] = e9, eL[24] = _) : _ = eL[24], (0, h.useEffect)(F, _);
        t: {
            let e;
            if (e4) {
                ec = ts;
                break t
            }
            eL[25] !== ts || eL[26] !== tF ? (e = ts.slice(0, tF), eL[25] = ts, eL[26] = tF, eL[27] = e) : e = eL[27],
            ec = e
        }
        let tM = ec;
        s: {
            if (e4) {
                eu = !1;
                break s
            }
            eu = ts.length > tF || tn
        }
        let tT = eu;
        eL[28] !== ts.length || eL[29] !== tl || eL[30] !== tn || eL[31] !== tc ? (ed = () => {
            tq(e => {
                let t = (0, y.getNextLoggedOutVisibleEventCount)({
                    currentVisibleCount: e,
                    pageSize: 20
                });
                return t >= ts.length && tn && !tc && tl(), t
            })
        }, eL[28] = ts.length, eL[29] = tl, eL[30] = tn, eL[31] = tc, eL[32] = ed) : ed = eL[32];
        let t_ = ed,
            tI = eP ? ? null;
        return eL[33] !== tI ? (em = (0, t.jsx)(v.CollectionPageSchema, {
            data: tI
        }), eL[33] = tI, eL[34] = em) : em = eL[34], eL[35] !== tf || eL[36] !== ty || eL[37] !== tC || eL[38] !== tg || eL[39] !== e8 || eL[40] !== tt || eL[41] !== ta || eL[42] !== td || eL[43] !== tu || eL[44] !== te || eL[45] !== e9 ? (eh = tu ? (0, t.jsxs)("div", {
            className: "w-full flex h-8 items-center justify-between gap-16",
            children: [(0, t.jsx)(i.Skeleton, {
                className: "h-7 w-48 rounded-md shrink-0"
            }), (0, t.jsx)(i.Skeleton, {
                className: "h-8 w-8 rounded-md shrink-0"
            })]
        }) : (0, t.jsxs)("div", {
            className: "flex w-full items-center justify-between gap-4",
            children: [(0, t.jsx)(eH, {
                query: e8,
                tagSlug: e9,
                tagLabel: te,
                searchMode: tt,
                totalResults: ta,
                showEmptyState: td,
                isEmptyQuery: tf,
                isResolvedFallback: ty
            }), (0, t.jsx)(l.Button, {
                "aria-label": "Toggle watchlist",
                variant: "ghost",
                size: "icon",
                onClick: tg,
                className: "shrink-0",
                children: tC
            })]
        }), eL[35] = tf, eL[36] = ty, eL[37] = tC, eL[38] = tg, eL[39] = e8, eL[40] = tt, eL[41] = ta, eL[42] = td, eL[43] = tu, eL[44] = te, eL[45] = e9, eL[46] = eh) : eh = eL[46], eL[47] !== ti || eL[48] !== tc || eL[49] !== to || eL[50] !== e8 || eL[51] !== tu || eL[52] !== eK || eL[53] !== e9 || eL[54] !== tN ? (ef = tu ? (0, t.jsxs)("div", {
            className: "w-full flex items-center justify-start gap-2 overflow-hidden",
            children: [(0, t.jsx)(i.Skeleton, {
                className: "h-8 rounded-md shrink-0 w-12"
            }), eK.map(eG)]
        }) : (0, t.jsx)("div", {
            className: (0, j.cn)((ti || to) && !tc && "opacity-75"),
            children: (0, t.jsx)(eW, {
                filteredTags: tN,
                activeTagSlug: e9,
                query: e8
            })
        }), eL[47] = ti, eL[48] = tc, eL[49] = to, eL[50] = e8, eL[51] = tu, eL[52] = eK, eL[53] = e9, eL[54] = tN, eL[55] = ef) : ef = eL[55], eL[56] !== e4 || eL[57] !== tM || eL[58] !== t_ || eL[59] !== tT || eL[60] !== tn || eL[61] !== tr || eL[62] !== ti || eL[63] !== tc || eL[64] !== to || eL[65] !== th || eL[66] !== e8 || eL[67] !== td || eL[68] !== tu || eL[69] !== tm || eL[70] !== e9 ? (ex = tu ? (0, t.jsx)(eX, {
            count: 6
        }) : (0, t.jsxs)("div", {
            className: (0, j.cn)("transition-opacity", (ti || to) && !tc && "opacity-75"),
            children: [(0, t.jsx)(eZ, {
                displayResults: tM,
                query: e8,
                isError: tr,
                showEmptyState: td,
                showResults: tm,
                hasNextPage: !!e4 && tn,
                isFetchingNextPage: !!e4 && tc,
                loadMoreRef: e4 ? th : eY,
                activeTagSlug: e9
            }), !e4 && tT && (0, t.jsx)(p.default, {
                onShowMore: t_,
                isFetchingNextPage: tc,
                loadingContent: (0, t.jsx)(eX, {
                    count: 1
                }),
                wrapperClassName: "w-full flex justify-center py-6"
            })]
        }), eL[56] = e4, eL[57] = tM, eL[58] = t_, eL[59] = tT, eL[60] = tn, eL[61] = tr, eL[62] = ti, eL[63] = tc, eL[64] = to, eL[65] = th, eL[66] = e8, eL[67] = td, eL[68] = tu, eL[69] = tm, eL[70] = e9, eL[71] = ex) : ex = eL[71], eL[72] === Symbol.for("react.memo_cache_sentinel") ? (eg = (0, t.jsx)("div", {
            className: "border rounded-lg h-fit shadow-md overflow-hidden",
            children: (0, t.jsx)(eQ, {})
        }), eL[72] = eg) : eg = eL[72], eL[73] !== tk || eL[74] !== tS || eL[75] !== e$ || eL[76] !== e8 || eL[77] !== eV || eL[78] !== e9 ? (ep = "/predictions" !== e$ && "/search" !== e$ || e9 || e8 || tS ? (0, t.jsx)(l.Button, {
            onClick: tk,
            variant: "link",
            size: "lg",
            className: "w-full",
            children: (0, t.jsx)("p", {
                className: "text-text-secondary hover:text-text-tertiary text-[13px] tracking-[-0.09px] font-medium",
                children: eV("filters.clearFilters")
            })
        }) : void 0, eL[73] = tk, eL[74] = tS, eL[75] = e$, eL[76] = e8, eL[77] = eV, eL[78] = e9, eL[79] = ep) : ep = eL[79], eL[80] !== eh || eL[81] !== ef || eL[82] !== ex || eL[83] !== ep ? (ev = (0, t.jsx)(r, {
            header: eh,
            tagFilters: ef,
            content: ex,
            sidebar: eg,
            sidebarFooter: ep
        }), eL[80] = eh, eL[81] = ef, eL[82] = ex, eL[83] = ep, eL[84] = ev) : ev = eL[84], eL[85] === Symbol.for("react.memo_cache_sentinel") ? (ey = () => eU(!0), eb = (0, t.jsx)(d.IconBarsFilterOutline12, {
            size: 16
        }), eL[85] = ey, eL[86] = eb) : (ey = eL[85], eb = eL[86]), eL[87] !== eV ? (ej = eV("filters.filter"), eL[87] = eV, eL[88] = ej) : ej = eL[88], eL[89] !== ej ? (ew = (0, t.jsxs)(l.Button, {
            variant: "outline",
            size: "lg",
            className: "fixed bottom-20 bg-background right-4 z-50 border-2 border-border-brand lg:hidden shadow-lg rounded-full px-4 h-12 flex items-center gap-2",
            onClick: ey,
            children: [eb, (0, t.jsx)("span", {
                children: ej
            })]
        }), eL[89] = ej, eL[90] = ew) : ew = eL[90], eL[91] === Symbol.for("react.memo_cache_sentinel") ? (eS = (0, t.jsx)(x.Drawer.Overlay, {
            className: "fixed inset-0 bg-black/40 z-50"
        }), eL[91] = eS) : eS = eL[91], eL[92] === Symbol.for("react.memo_cache_sentinel") ? (eN = (0, t.jsxs)(x.Drawer.Portal, {
            children: [eS, (0, t.jsxs)(x.Drawer.Content, {
                className: "fixed left-0 right-0 flex bottom-16 flex-col rounded-t-3xl bg-background h-auto z-[51] outline-none",
                children: [(0, t.jsx)("div", {
                    className: "p-4 pb-0",
                    children: (0, t.jsx)("div", {
                        className: "w-12 h-1 bg-neutral-300 rounded-full mx-auto mb-0"
                    })
                }), (0, t.jsx)(eQ, {})]
            })]
        }), eL[92] = eN) : eN = eL[92], eL[93] !== eB ? (ek = (0, t.jsx)(x.Drawer.Root, {
            open: eB,
            onOpenChange: eU,
            shouldScaleBackground: !1,
            children: eN
        }), eL[93] = eB, eL[94] = ek) : ek = eL[94], eL[95] !== em || eL[96] !== ev || eL[97] !== ew || eL[98] !== ek ? (eC = (0, t.jsxs)(t.Fragment, {
            children: [em, ev, ew, ek]
        }), eL[95] = em, eL[96] = ev, eL[97] = ew, eL[98] = ek, eL[99] = eC) : eC = eL[99], eC
    }], 583487)
}]);

//# debugId=ec8d57f7-5200-b580-02f2-952833032f69