const __vite__mapDeps = (i, m = __vite__mapDeps, d = (m.f || (m.f = ["assets/js/index.DNcj_TSf.js", "assets/js/9c8e94b5-8260-483d-9877-eeb7559a085b.D5fGgdNQ.js", "assets/js/d48819c6-0c4c-4770-81f9-ac1b5c309d08.DZIiRdYb.js", "assets/js/b88072d2-91f5-4815-abcd-d59a5b69b266.BYkOx-QV.js", "assets/js/495e1c5f-f357-4baf-ae1e-e0511467485f.C0Zqfgkc.js", "assets/js/0813ed87-fdbd-4d7a-aabc-d9d8071d81c5._vCv0u-I.js", "assets/js/598830cb-a3c2-4d09-ab90-604263fb78c9.BZasVZGj.js", "assets/js/f737e302-3da9-4622-bcf0-3846c29e0340.Li0bcaz3.js", "assets/js/088556fa-dfbb-4531-849e-7a1347dcc4a0.jWVkH3MO.js", "assets/js/index.DRW4U9fP.js", "assets/js/index.6cqiAEjd.js", "assets/js/index.DRHHKTLf.js", "assets/js/index.B8aLIhGY.js", "assets/js/comp.C8uPaq3b.js", "assets/js/index.CrGYnhSu.js", "assets/js/index.CZEeCiVY.js", "assets/js/index.DGHJdUv2.js", "assets/js/index.AFwE9M3E.js", "assets/js/index.DrsPaXu9.js", "assets/js/index.DiPtQYeE.js"]))) => i.map(i => d[i]);
import {
    r as W,
    d as it,
    e as qi,
    O as A0,
    u as Ce,
    W as Je,
    E as Zc,
    f as Vr,
    h as nx,
    S as Ld,
    G as Kf,
    s as lx,
    i as ix,
    j as rx,
    k as sx,
    l as cx,
    C as Sg,
    m as We,
    U as ll,
    n as Mt,
    o as Ir,
    p as Ge,
    q as Fo,
    t as rg,
    v as R0,
    a as wg,
    w as ox,
    x as Cg,
    y as ux,
    z as dx,
    A as fx,
    B as hx,
    D as gx,
    F as mx,
    H as vx,
    I as bx,
    J as xx,
    g as _0,
    K as px,
    L as If,
    R as yx,
    M as Ng,
    N as Sx,
    P as wx,
    V as Cx
} from "./assets/js/b88072d2-91f5-4815-abcd-d59a5b69b266.BYkOx-QV.js";
import {
    _ as Zr,
    I as pe,
    T as sl,
    a as il,
    B as Nx,
    S as Tx,
    X as O0,
    G as ct,
    C as qf,
    b as Tg,
    L as Ex,
    c as Mx,
    d as $f,
    M as eh,
    e as z0,
    f as Eg,
    g as ra,
    h as j0,
    i as Ax,
    j as Yo,
    F as Rx,
    k as _x,
    l as Ox,
    P as Ud,
    m as zx,
    n as jx,
    o as Dx,
    p as kx,
    q as Lx,
    r as D0,
    s as Mg,
    t as Ag,
    u as Ux,
    v as Bx,
    w as Hx,
    x as th,
    y as Mu,
    E as Rg,
    z as k0,
    A as Fx,
    O as Nn,
    D as _g,
    H as L0,
    J as Gr,
    U as Gx,
    K as Yx,
    N as Xx,
    Q as Vx,
    V as U0,
    W as B0,
    Y as H0,
    Z as Ix,
    $ as Zx,
    a0 as Qx,
    a1 as Px,
    a2 as Wx,
    a3 as Jx,
    a4 as Kx,
    a5 as F0,
    a6 as G0,
    a7 as Y0,
    a8 as qx,
    a9 as $x,
    aa as X0,
    ab as ep,
    ac as tp,
    ad as sg,
    ae as ap,
    af as Yr,
    ag as np,
    ah as lp,
    ai as ip,
    aj as rp,
    ak as sp,
    al as cp,
    am as op,
    an as up,
    ao as dp,
    ap as fp,
    aq as hp,
    ar as gp,
    as as mp,
    at as vp,
    au as bp,
    av as xp,
    aw as pp,
    ax as Sv,
    ay as yp,
    az as Sp,
    aA as wp,
    aB as Cp
} from "./assets/js/9c8e94b5-8260-483d-9877-eeb7559a085b.D5fGgdNQ.js";
import {
    j as s,
    m as $t,
    A as _u
} from "./assets/js/d48819c6-0c4c-4770-81f9-ac1b5c309d08.DZIiRdYb.js";
import {
    u as V0,
    a as I0,
    f as Z0,
    s as Q0,
    b as P0,
    o as W0
} from "./assets/js/598830cb-a3c2-4d09-ab90-604263fb78c9.BZasVZGj.js";
import {
    C as J0,
    N as Np
} from "./assets/js/0813ed87-fdbd-4d7a-aabc-d9d8071d81c5._vCv0u-I.js";
import {
    _ as fn,
    r as Tp,
    i as Xr,
    D as Ep,
    C as Mp,
    P as Ap
} from "./assets/js/f737e302-3da9-4622-bcf0-3846c29e0340.Li0bcaz3.js";
import {
    c as Og,
    d as K0,
    A as Rp,
    F as _p
} from "./assets/js/088556fa-dfbb-4531-849e-7a1347dcc4a0.jWVkH3MO.js";
import "./assets/js/495e1c5f-f357-4baf-ae1e-e0511467485f.C0Zqfgkc.js";
(function () {
    const u = document.createElement("link").relList;
    if (u && u.supports && u.supports("modulepreload")) return;
    for (const g of document.querySelectorAll('link[rel="modulepreload"]')) d(g);
    new MutationObserver(g => {
        for (const x of g)
            if (x.type === "childList")
                for (const p of x.addedNodes) p.tagName === "LINK" && p.rel === "modulepreload" && d(p)
    }).observe(document, {
        childList: !0,
        subtree: !0
    });

    function i(g) {
        const x = {};
        return g.integrity && (x.integrity = g.integrity), g.referrerPolicy && (x.referrerPolicy = g.referrerPolicy), g.crossOrigin === "use-credentials" ? x.credentials = "include" : g.crossOrigin === "anonymous" ? x.credentials = "omit" : x.credentials = "same-origin", x
    }

    function d(g) {
        if (g.ep) return;
        g.ep = !0;
        const x = i(g);
        fetch(g.href, x)
    }
})();
const Op = W.lazy(() => Zr(() => import("./assets/js/index.DNcj_TSf.js"), __vite__mapDeps([0, 1, 2, 3, 4, 5, 6, 7, 8])));

function q0({
    id: n,
    userID: u,
    viwerModel: i
}) {
    return s.jsx(W.Suspense, {
        fallback: s.jsx(s.Fragment, {}),
        children: s.jsx(Op, {
            id: n,
            userID: u,
            viwerModel: i
        })
    })
}
const Zf = {
    useModal: null,
    useModalOptions: null
};

function zp({
    useModal: n,
    useModalOptions: u
}) {
    Zf.useModal = n, Zf.useModalOptions = u
}
const jp = () => it((n, u) => ({
    renderView: "list",
    setRenderView: i => n({
        renderView: i
    }),
    userID: "",
    viwerModel: "modal",
    note: {
        id: NaN,
        userID: "",
        text: "",
        base64: ""
    },
    setNote: (i, d) => n(g => ({
        note: Object.freeze({
            ...g.note,
            [i]: d
        })
    }))
})),
    wv = it()((n, u) => ({
        container: {},
        getContainer: i => {
            const {
                container: d
            } = u();
            if (d[i]) return d[i];
            {
                const g = jp();
                return n(x => ({
                    container: {
                        ...x.container,
                        [i]: g
                    }
                })), g
            }
        },
        deleteContainer: i => n(d => {
            const g = {
                ...d.container
            };
            return delete g[i], {
                container: g
            }
        })
    })),
    $0 = async () => {
        const n = await qi("notes") || [];
        Au.setState({
            notes: n
        })
    }, Dp = A0({
        createNote: n => {
            Au.setState(u => ({
                notes: [n.data, ...u.notes]
            }))
        },
        editNote: n => {
            Au.setState(u => ({
                notes: u.notes.map(i => i.id === n.data.id ? n.data : i)
            }))
        },
        deleteNote: n => {
            Au.getState().deleteNote(n.data, !0)
        },
        notesBackup: n => {
            $0()
        }
    });
chrome.runtime.onMessage.addListener(Dp);
const Au = it((n, u) => ({
    notes: [],
    createNote: (i, d = !1) => {
        const {
            notes: g
        } = u(), {
            language: x
        } = Ce.getState(), {
            session: p
        } = Vr.getState(), {
            openRendertype: w
        } = Zf.useModal.getState(), {
            getContainer: M
        } = wv.getState(), {
            note: T,
            setRenderView: R
        } = M(i).getState();
        if (T.text.length < 3 && T.base64.length === 0) {
            pe({
                type: "Error",
                message: x.adicioneAnotacaoCom3,
                position: "top-right"
            });
            return
        }
        if (!p.is_premium && g.length >= 3) {
            w("user_free");
            return
        } !d && Je("notes", [T, ...g]), Zc({
            stopPropag: d,
            action: "createNote",
            waitForResponse: !1,
            data: T
        }), pe({
            type: "Success",
            message: x.note_add,
            position: "top-right"
        }), R("list"), n({
            notes: [T, ...g]
        })
    },
    createNoteSocket: (i, d, g) => {
        const {
            notes: x
        } = u(), {
            language: p
        } = Ce.getState(), {
            session: w
        } = Vr.getState(), {
            openRendertype: M
        } = Zf.useModal.getState(), T = {
            id: Date.now(),
            userID: i,
            text: d,
            base64: g
        };
        if (!w.is_premium && x.length >= 3) {
            M("user_free");
            return
        }
        Je("notes", [T, ...x]), Zc({
            stopPropag: !1,
            action: "createNote",
            waitForResponse: !1,
            data: T
        }), pe({
            type: "Success",
            message: p.note_add + " via API",
            position: "top-right"
        }), n({
            notes: [T, ...x]
        })
    },
    editNote: (i, d = !1) => {
        const {
            notes: g
        } = u(), {
            language: x
        } = Ce.getState(), {
            getContainer: p
        } = wv.getState(), {
            note: w,
            setRenderView: M
        } = p(i).getState();
        if (w.text.length < 3 && w.base64.length === 0) {
            pe({
                type: "Error",
                message: x.adicioneAnotacaoCom3,
                position: "top-right"
            });
            return
        }
        const T = g.map(R => R.id === w.id ? w : R);
        !d && Je("notes", T), Zc({
            stopPropag: d,
            action: "editNote",
            waitForResponse: !1,
            data: w
        }), pe({
            type: "Success",
            message: x.note_add,
            position: "top-right"
        }), M("list"), n({
            notes: T
        })
    },
    deleteNote: (i, d = !1) => {
        const {
            notes: g
        } = u(), {
            language: x
        } = Ce.getState(), p = g.filter(w => w.id !== i);
        !d && Je("notes", p), Zc({
            stopPropag: d,
            action: "deleteNote",
            waitForResponse: !1,
            data: i
        }), pe({
            type: "Success",
            message: x.note_delete,
            position: "top-right"
        }), n({
            notes: p
        })
    },
    getNotes: i => {
        const {
            notes: d
        } = u();
        return d.filter(g => g.userID === i)
    }
}));
$0();

function kp() {
    const { language: n } = Ce.getState();

    const irParaCheckout = () => {
        window.open("testeagora123", "_blank");
        // ou:
        // window.location.href = "testeagora123";
    };

    return s.jsxs("div", {
        className: "pt-1",
        children: [
            s.jsx(sl, {
                children: "Para usar esse recurso compre a versão Premium"
            }),
            s.jsx(il, {
                children: "Adquira o Premium agora e aproveite ao máximo todas as funcionalidades"
            }),
            s.jsx("div", {
                className: "flex justify-center pt-4",
                children: s.jsx(Nx, {
                    type: "default",
                    btnPremium: n.btnPremium,
                    onClick: irParaCheckout
                })
            })
        ]
    });
}
const zg = it()(n => ({
    assinatura: {
        multiAtendimento: !1,
        active: !1,
        name: ""
    },
    setAssinatura: (u, i) => n(d => {
        const g = {
            ...d.assinatura,
            [u]: i
        };
        return Ld("useAssinatura", "assinatura", [g]), {
            assinatura: g
        }
    })
})),
    Lp = async () => {
        const n = await Kf("useAssinatura", "assinatura");
        n && n[0] && n[0][0] && zg.setState({
            assinatura: n[0][0]
        })
    };

function e1() {
    const {
        language: n
    } = Ce(), {
        assinatura: u,
        setAssinatura: i
    } = zg();
    return s.jsxs("div", {
        className: "grid gap-6 !w-[550px]",
        children: [s.jsxs("div", {
            children: [s.jsx(sl, {
                children: n.ass_title
            }), s.jsx(il, {
                children: n.ass_text
            })]
        }), s.jsxs("label", {
            className: "input input-bordered border border-solid input-sm flex items-center gap-2 w-full",
            children: [s.jsx("svg", {
                xmlns: "http://www.w3.org/2000/svg",
                viewBox: "0 0 16 16",
                fill: "currentColor",
                className: "h-4 w-4 opacity-70",
                children: s.jsx("path", {
                    d: "M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM12.735 14c.618 0 1.093-.561.872-1.139a6.002 6.002 0 0 0-11.215 0c-.22.578.254 1.139.872 1.139h9.47Z"
                })
            }), s.jsx("input", {
                type: "text",
                placeholder: n.ass_place,
                value: u.name,
                onChange: g => i("name", g.target.value),
                className: "grow"
            })]
        }), s.jsxs("div", {
            className: "flex justify-between cursor-pointer items-center hover:bg-[var(--dropdown-background-hover)] h-9 px-1 py-2 rounded",
            children: [s.jsx(il, {
                children: n.ass_active
            }), s.jsx(Tx, {
                estado: u.active,
                switchUpdate: () => i("active", !u.active),
                id: "assinatura"
            })]
        })]
    })
}
const Wt = it()(n => ({
    modal: null,
    btnClose: !0,
    auxFunc: {
        mounted: null,
        desmouted: null
    },
    open: (u, i = !0, d = {
        mounted: null,
        desmouted: null
    }) => n(() => (d.mounted && d.mounted(), {
        modal: u,
        btnClose: i,
        auxFunc: d
    })),
    close: () => n(u => (u.auxFunc.desmouted && u.auxFunc.desmouted(), {
        modal: null
    })),
    openRendertype: (u, i = !0, d = {
        mounted: null,
        desmouted: null
    }) => {
        let g;
        switch (u) {
            case "user_free":
                g = s.jsx(kp, {});
                break;
            case "assinatura":
                g = s.jsx(e1, {});
                break
        }
        Wt.getState().open(g, i, d)
    }
}));

function Up() {
    const {
        modal: n,
        btnClose: u,
        close: i
    } = Wt(), d = W.useRef(null), g = W.useRef(null);
    return W.useEffect(() => {
        const x = p => {
            const w = document.querySelector(".iziToast-wrapper"),
                M = document.querySelector('section[data-id="Modal Options"]'),
                T = document.querySelector('section[data-id="Modal Emoji"]');
            u && d.current && !g.current.contains(p.target) && (!w || !w.contains(p.target)) && !M && !T && i()
        };
        return n && document.addEventListener("mousedown", x), () => {
            document.removeEventListener("mousedown", x)
        }
    }, [n]), n && s.jsx("section", {
        "data-id": "Modal",
        children: s.jsx("dialog", {
            id: "my_modal_5",
            ref: d,
            className: "animate__animated animate__zoomIn modal modal-bottom sm:modal-middle !absolute overflow-hidden !opacity-100 !pointer-events-auto !visible",
            children: s.jsxs("div", {
                ref: g,
                className: "modal-box relative border overflow-hidden !max-w-none !max-h-none !w-fit !h-fit bg-[var(--panel-header-background)]",
                children: [u ? s.jsx("span", {
                    className: "absolute w-5 h-5 top-3 right-3 pulse !cursor-pointer",
                    onClick: i,
                    children: s.jsx(O0, {
                        className: "w-full h-full text-[var(--primary-strong)]"
                    })
                }) : void 0, s.jsx("div", {
                    className: "w-full h-full",
                    children: n
                })]
            })
        })
    })
}
const Bp = {
    aba: "x1rg5ohu x173ssrc x1xaadd7 x682dto x1e01kqd x12j7j87 x9bpaai x1pg5gke x1s688f xo5v014 x1u28eo4 x2b8uid x16dsc37 x1sbl2l xy9co9w x5r174s x7h3shv ",
    confgIcone: "_ajv7 ",
    iconeStyle: "_ajv6 x1y1aw1k x1sxyh0 xwib8y2 xurb0ha ",
    modalOptions: {
        content1: "_ak4w _al02 ",
        content2: "_ak5b ",
        content3: "xyqdw3p xg8j3zb ",
        animFather: "_ajv9",
        animExe: "x11t6m9b",
        animChildren: "x11xpdln x1d8287x x1h4ghdb "
    },
    listagem: {
        content1: "x1i64zmx x1emribx ",
        content2: "_aj-r _aj-q _aj-_ _ak_v ",
        content3: "x1c4vz4f xs83m0k xdl72j9 x1g77sc7 x78zum5 xozqiw3 x1oa3qoh x12fk4p8 xeuugli x2lwn1j x1nhvcw1 x1q0g3np x6s0dn4 x1ypdohk x1vqgdyp x1i64zmx x1gja9t ",
        content4: "x1c4vz4f xs83m0k xdl72j9 x1g77sc7 x78zum5 xozqiw3 x1oa3qoh x12fk4p8 x2lwn1j xl56j7k x1q0g3np x1cy8zhl xt4ypqs xq8finb ",
        content5: "xdod15v xzwifym x6ikm8r x10wlt62 xlyipyv xuxw1ft "
    },
    footerIco: "_ajv6 x1y1aw1k x1sxyh0 xwib8y2 xurb0ha ",
    textarea: "_ak1l "
},
    $i = it()(n => ({
        variaveisWA: Bp
    })),
    Ka = it()(n => ({
        modalOptions: null,
        options: {},
        childrenRef: null,
        offset: 0,
        auxFunc: {
            mounted: null,
            desmouted: null
        },
        open: (u, i, d, g = 10, x = {
            mounted: null,
            desmouted: null
        }) => n(p => (x.mounted && x.mounted(), p.childrenRef !== null && p.auxFunc.desmouted && p.auxFunc.desmouted(), {
            modalOptions: u,
            options: i,
            childrenRef: d,
            offset: g,
            auxFunc: x
        })),
        close: () => n(u => (u.auxFunc.desmouted && u.auxFunc.desmouted(), {
            modalOptions: null,
            childrenRef: null,
            options: {}
        }))
    }));

function Hp() {
    const {
        modalOptions: n,
        options: u,
        childrenRef: i,
        offset: d,
        close: g
    } = Ka(), {
        variaveisWA: x
    } = $i(), {
        refs: p,
        floatingStyles: w,
        update: M,
        elements: T
    } = V0({
        ...u,
        middleware: [Z0({
            padding: 5
        }), Q0({
            padding: 5
        }), P0({
            apply({
                availableWidth: R,
                availableHeight: A,
                elements: z
            }) {
                Object.assign(z.floating.style, {
                    maxWidth: `${R}px`,
                    maxHeight: `${A}px`
                })
            }
        }), W0(d)]
    });
    return W.useEffect(() => {
        if (n && T.reference && T.floating) return I0(T.reference, T.floating, M)
    }, [n, T, M]), W.useEffect(() => {
        const R = A => {
            const z = document.querySelector(".iziToast-wrapper"),
                O = document.querySelector('section[data-id="Modal Emoji"]');
            p.floating.current && !p.floating.current.contains(A.target) && !i.contains(A.target) && (!z || !z.contains(A.target)) && !document.querySelector("#pane-side ._21S-L span")?.contains(A.target) && !O && g()
        };
        return i && (p.setReference(i), document.addEventListener("click", R)), () => {
            document.removeEventListener("click", R)
        }
    }, [n, i]), n && s.jsx("section", {
        "data-id": "Modal Options",
        children: s.jsx("div", {
            ref: p.setFloating,
            role: "tooltip",
            className: "z-[9999]",
            style: w,
            children: s.jsx("div", {
                className: x.modalOptions.content1 + "!rounded-2xl animate__animated animate__zoomIn",
                style: {
                    position: "initial",
                    maxWidth: "100vw"
                },
                role: "application",
                children: s.jsx("ul", {
                    "data-testid": "attach-menu-popup",
                    className: x.modalOptions.content2,
                    children: s.jsx("div", {
                        className: x.modalOptions.content3,
                        children: n
                    })
                })
            })
        })
    })
}
lx({
    page: "external"
});
zp({
    useModal: Wt,
    useModalOptions: Ka
});
ix();
rx();
sx();
(async () => cx())();
const cg = {
    date: {
        tag: "date",
        quant: 0,
        max: 0,
        old: Date.now()
    },
    init_conversa: {
        tag: "init_conversa",
        quant: 0,
        max: 5
    },
    create_link: {
        tag: "create_link",
        quant: 0,
        max: 3
    },
    close_service: {
        tag: "close_service",
        quant: 0,
        max: 3
    },
    lembretes: {
        tag: "lembretes",
        quant: 0,
        max: 1
    },
    assinatura: {
        tag: "assinatura",
        quant: 0,
        max: 5
    },
    googleCalendario: {
        tag: "googleCalendario",
        quant: 0,
        max: 1
    },
    contatos: {
        tag: "contatos",
        quant: 0,
        max: 1
    },
    respostasRapidas: {
        tag: "respostasRapidas",
        quant: 0,
        max: 3
    },
    agendamentos: {
        tag: "agendamentos",
        quant: 0,
        max: 1
    },
    perfilDoContato: {
        tag: "perfilDoContato",
        quant: 0,
        max: 10
    },
    encomendas: {
        tag: "encomendas",
        quant: 0,
        max: 1
    },
    autoatendimento: {
        tag: "autoatendimento",
        quant: 0,
        max: 3
    },
    webhook: {
        tag: "webhook",
        quant: 0,
        max: 3
    },
    clear_message: {
        tag: "clear_message",
        quant: 0,
        max: 1
    },
    useTradutor: {
        tag: "useTradutor",
        quant: 0,
        max: 1
    },
    status: {
        tag: "status",
        quant: 0,
        max: 1
    },
    assistente_chat: {
        tag: "assistente_chat",
        quant: 0,
        max: 3
    },
    API: {
        tag: "API",
        quant: 0,
        max: 3
    },
    trascrever_audio: {
        tag: "trascrever_audio",
        quant: 0,
        max: 1
    }
},
    Bf = it()(n => ({
        userFreeLimity: cg,
        setUserFreeLimity: u => {
            Ld("wpp-functions", "functions", [Sg.encryptData(u)]), n(i => ({
                ...i,
                userFreeLimity: u
            }))
        },
        setUserFreeLimityPluginPage: () => n(u => ({
            ...u,
            plugin_page: !0
        }))
    })),
    t1 = n => {
        if (Vr.getState().session.is_premium) return !1;
        const u = Bf.getState().userFreeLimity;
        if (ll.subtrData(u.date.old) > 1) {
            const d = {
                ...cg
            };
            for (const g in d)
                if (Object.prototype.hasOwnProperty.call(d, g)) {
                    const x = d[g];
                    x.quant = 0, x.tag === "date" && (x.old = Date.now()), x.tag === n && (x.quant = 1)
                } return Bf.getState().setUserFreeLimity(d), !1
        }
        if (u[n] || (u[n] = cg[n]), u[n].quant === u[n]?.max) return !0;
        const i = {
            ...u
        };
        return i[n].quant++, Bf.getState().setUserFreeLimity(u), !1
    },
    rl = async (n, u = !1) => {
        let i = !1;
        return We.getState().plugin_page ? Vr.getState().session.is_premium ? i = !1 : i = await Mt("exe-CheckUserFreeLock", n) : i = t1(n), i && !u && Wt.getState().openRendertype("user_free"), i
    }, Fp = () => {
        Bf.getState().setUserFreeLimityPluginPage()
    };
chrome.runtime.onMessage.addListener(async n => {
    n.action === "exe-CheckUserFreeLock" && !We.getState().plugin_page && chrome.runtime.sendMessage({
        action: n.action,
        response: JSON.stringify(t1(n.dados)),
        id: n.id
    })
});
const a1 = [{
    id: 1,
    name: "tab_all",
    visibility: !0
}, {
    id: 2,
    name: "tab_groups",
    visibility: !0
}, {
    id: 3,
    name: "tab_unread",
    visibility: !0
}, {
    id: 4,
    name: "tab_1_1",
    visibility: !0
}, {
    id: 5,
    name: "tab_atendentes",
    visibility: !0
}],
    at = it()(n => ({
        userTabs: [],
        systemTabs: a1,
        activeTab: {
            type: "tab",
            id: 1
        },
        sortUserTabs: (u, i) => n(d => {
            const g = [...d.userTabs],
                [x] = g.splice(u, 1),
                p = [...g.slice(0, i), x, ...g.slice(i)];
            return Je("userTabs", p), We.getState().plugin_page ? Mt("userTabs-sortUserTabs", {
                home: u,
                destination: i
            }) : chrome.runtime.sendMessage({
                action: "userTabs-sortUserTabs",
                dados: {
                    home: u,
                    destination: i
                }
            }), {
                userTabs: p
            }
        }),
        setNewUser: async (u, i) => {
            const d = u.replace("@c.us", "").replace("@g.us", "");
            if (at.getState().userTabs.find(w => w.id === i)?.chats.find(w => w.id === u || w.id === d)) return;
            const {
                name: x
            } = await Ge.Utils("getContato", u), p = at.getState().userTabs.map(w => w.id === i ? !Vr.getState().session.is_premium && w.chats.length >= 5 ? (Wt.getState().openRendertype("user_free"), w) : {
                ...w,
                chats: [...w.chats, {
                    id: u,
                    name: x
                }]
            } : w);
            Je("userTabs", p), We.getState().plugin_page ? Mt("userTabs-setNewUser", {
                userID: u,
                id: i
            }) : chrome.runtime.sendMessage({
                action: "userTabs-setNewUser",
                dados: {
                    userID: u,
                    id: i
                }
            }), n(w => ({
                ...w,
                userTabs: p
            }))
        },
        setChatsTab: (u, i) => n(d => {
            const g = d.userTabs.map(x => x.id === i ? {
                ...x,
                chats: u
            } : x);
            return Je("userTabs", g), We.getState().plugin_page ? Mt("userTabs-setChatsTab", {
                chats: u,
                id: i
            }) : chrome.runtime.sendMessage({
                action: "userTabs-setChatsTab",
                dados: {
                    chats: u,
                    id: i
                }
            }), {
                userTabs: g
            }
        }),
        setCopyChats: (u, i) => n(d => {
            const g = d.userTabs.map(x => {
                if (x.id === i) {
                    const p = u.filter(w => !x.chats.some(M => M.id === w.id));
                    return {
                        ...x,
                        chats: [...x.chats, ...p]
                    }
                }
                return x
            });
            return Je("userTabs", g), We.getState().plugin_page ? Mt("userTabs-setCopyChats", {
                chats: u,
                id: i
            }) : chrome.runtime.sendMessage({
                action: "userTabs-setCopyChats",
                dados: {
                    chats: u,
                    id: i
                }
            }), {
                userTabs: g
            }
        }),
        setMoveChats: (u, i, d) => n(g => {
            const x = g.userTabs.map(p => {
                if (p.id === i) {
                    const w = p.chats.filter(M => !u.some(T => T.id === M.id));
                    return {
                        ...p,
                        chats: w
                    }
                }
                if (p.id === d) {
                    const w = [...p.chats, ...u.filter(M => !p.chats.some(T => T.id === M.id))];
                    return {
                        ...p,
                        chats: w
                    }
                }
                return p
            });
            return Je("userTabs", x), We.getState().plugin_page ? Mt("userTabs-setMoveChats", {
                chats: u,
                source: i,
                destination: d
            }) : chrome.runtime.sendMessage({
                action: "userTabs-setMoveChats",
                dados: {
                    chats: u,
                    source: i,
                    destination: d
                }
            }), {
                userTabs: x
            }
        }),
        setRemoveUser: (u, i, d) => n(g => {
            const x = u.replace("@c.us", "").replace("@g.us", ""),
                p = g.userTabs.map(w => i ? {
                    ...w,
                    chats: w.chats.filter(M => M.id !== x && M.id !== u)
                } : w.id === d ? {
                    ...w,
                    chats: w.chats.filter(M => M.id !== x && M.id !== u)
                } : {
                    ...w
                });
            return Je("userTabs", p), We.getState().plugin_page ? Mt("userTabs-setRemoveUser", {
                userID: u,
                isAll: i,
                id: d
            }) : chrome.runtime.sendMessage({
                action: "userTabs-setRemoveUser",
                dados: {
                    userID: u,
                    isAll: i,
                    id: d
                }
            }), {
                userTabs: p
            }
        }),
        setEditUserTabName: (u, i) => n(d => {
            const g = d.userTabs.map(x => x.id === u ? {
                ...x,
                tag: i
            } : x);
            return Je("userTabs", g), We.getState().plugin_page ? Mt("userTabs-setEditUserTabName", {
                id: u,
                tabName: i
            }) : chrome.runtime.sendMessage({
                action: "userTabs-setEditUserTabName",
                dados: {
                    id: u,
                    tabName: i
                }
            }), {
                userTabs: g
            }
        }),
        setRemoveTab: u => n(i => {
            const d = i.userTabs.filter(g => g.id !== u);
            return Je("userTabs", d), We.getState().plugin_page ? Mt("userTabs-setRemoveTab", {
                id: u
            }) : chrome.runtime.sendMessage({
                action: "userTabs-setRemoveTab",
                dados: {
                    id: u
                }
            }), {
                userTabs: d
            }
        }),
        setCreateUserTab: u => n(i => {
            const d = {
                id: Ir(),
                chats: [],
                tag: u,
                type: "user",
                hide: !1
            },
                g = [d, ...i.userTabs];
            return Je("userTabs", g), We.getState().plugin_page ? Mt("userTabs-setCreateUserTab", {
                newUserTab: d
            }) : chrome.runtime.sendMessage({
                action: "userTabs-setCreateUserTab",
                dados: {
                    newUserTab: d
                }
            }), {
                userTabs: g
            }
        }),
        setVisibilityUserTab: u => n(i => {
            const d = i.userTabs.map(g => g.id === u ? {
                ...g,
                hide: !g.hide
            } : g);
            return Je("userTabs", d), We.getState().plugin_page ? Mt("userTabs-setVisibilityUserTab", {
                id: u
            }) : chrome.runtime.sendMessage({
                action: "userTabs-setVisibilityUserTab",
                dados: {
                    id: u
                }
            }), {
                userTabs: d
            }
        }),
        getUserAbasTam: u => at.getState().userTabs.filter(d => d.chats.filter(g => g.id === u).length > 0).length,
        setVisibilitySystemTab: u => n(i => {
            const d = i.systemTabs.map(g => g.id === u ? {
                ...g,
                visibility: !g.visibility
            } : g);
            return Ld("SystemTabsDB", "SystemTabs", [Sg.encryptData(d)]), {
                systemTabs: d
            }
        }),
        setActiveTab: u => n(i => ({
            ...i,
            activeTab: u
        }))
    })),
    Gp = async (n, u) => {
        const {
            name: i
        } = await Ge.Utils("getContato", n), d = at.getState().userTabs.map(g => u.length === 36 && g.id === u || g.tag === u ? !Vr.getState().session.is_premium && g.chats.length >= 5 ? (window.postMessage({
            action: "modal-userFree",
            plugin_page: We.getState().plugin_page
        }, "*"), g) : {
            ...g,
            chats: [...g.chats, {
                id: n,
                name: i
            }]
        } : g);
        at.setState({
            userTabs: d
        })
    }, Yp = (n, u) => {
        const i = at.getState().userTabs;
        i.map(d => (d.id === u && (d.chats = n), d)), at.setState({
            userTabs: i
        })
    }, Xp = (n, u) => {
        const i = at.getState().userTabs;
        i.map(d => (d.id === u && (d.chats = [...d.chats, ...n.filter(g => !d.chats.some(x => x.id === g.id))]), d)), at.setState({
            userTabs: i
        })
    }, Vp = (n, u, i) => {
        const d = at.getState().userTabs.map(g => (g.id === u && (g.chats = g.chats.filter(x => !n.some(p => p.id === x.id))), g.id === i && (g.chats = [...g.chats, ...n.filter(x => !g.chats.some(p => p.id === x.id))]), g));
        at.setState({
            userTabs: d
        })
    }, Ip = (n, u, i) => {
        let d = at.getState().userTabs;
        u ? d = d.map(g => ({
            ...g,
            chats: g.chats.filter(x => x.id !== n)
        })) : d = d.map(g => i.length === 36 && g.id === i || g.tag === i ? {
            ...g,
            chats: g.chats.filter(x => x.id !== n)
        } : g), at.setState({
            userTabs: d
        })
    }, Zp = n => {
        const u = [n, ...at.getState().userTabs];
        at.setState({
            userTabs: u
        })
    }, Qp = n => {
        const u = at.getState().userTabs.map(i => (i.id === n && (i.hide = !i.hide), i));
        at.setState({
            userTabs: u
        })
    }, Pp = (n, u) => {
        const i = at.getState().userTabs.map(d => d.id === n ? {
            ...d,
            tag: u
        } : d);
        at.setState({
            userTabs: i
        })
    }, Wp = n => {
        const u = at.getState().userTabs.filter(i => i.id !== n);
        at.setState({
            userTabs: u
        })
    }, Jp = (n, u) => {
        const i = Array.from(at.getState().userTabs),
            [d] = i.splice(n, 1);
        i.splice(u, 0, d), at.setState({
            userTabs: i
        })
    };
chrome.runtime.onMessage.addListener(async n => {
    switch (n.action) {
        case "userTabs-setNewUser":
            Gp(n.dados.userID, n.dados.id);
            break;
        case "userTabs-setChatsTab":
            Yp(n.dados.chats, n.dados.id);
            break;
        case "userTabs-setCopyChats":
            Xp(n.dados.chats, n.dados.id);
            break;
        case "userTabs-setMoveChats":
            Vp(n.dados.chats, n.dados.source, n.dados.destination);
            break;
        case "userTabs-setRemoveUser":
            Ip(n.dados.userID, n.dados.isAll, n.dados.id);
            break;
        case "userTabs-setCreateUserTab":
            Zp(n.dados.newUserTab);
            break;
        case "userTabs-setVisibilityUserTab":
            Qp(n.dados.id);
            break;
        case "userTabs-setEditUserTabName":
            Pp(n.dados.id, n.dados.tabName);
            break;
        case "userTabs-setRemoveTab":
            Wp(n.dados.id);
            break;
        case "userTabs-sortUserTabs":
            Jp(n.dados.home, n.dados.destination);
            break
    }
});
chrome.runtime.onMessage.addListener(n => {
    n.action === "initUserTabs" && n1()
});
const Kp = n => {
    let u = !1;
    const i = n.map(d => d.id ? d : (u = !0, {
        ...d,
        id: d.tag
    }));
    return {
        isOldFormat: u,
        refatoredUserTabs: i
    }
},
    n1 = async () => {
        const n = await qi("userTabs"),
            {
                refatoredUserTabs: u,
                isOldFormat: i
            } = Kp(n);
        i && Je("userTabs", u);
        let d = a1;
        const g = await Kf("SystemTabsDB", "SystemTabs");
        g[0] && g[0][0] && (d = Sg.decryptData(g[0][0])), at.setState({
            userTabs: u,
            systemTabs: d
        })
    }, Pc = it()((n, u) => ({
        quickReplies: []
    }));
chrome.runtime.onMessage.addListener(n => {
    switch (n.action) {
        case "addCategory":
            pi.setState({
                categories: [...pi.getState().categories, n.dados]
            });
            break;
        case "sortCategories":
            const u = [...pi.getState().categories],
                [i] = u.splice(n.dados.source.index, 1);
            u.splice(n.dados.destination.index, 0, i), pi.setState({
                categories: u
            });
            break;
        case "removeCategory":
            pi.setState({
                categories: pi.getState().categories.filter(d => d.id !== n.dados)
            });
            break;
        case "editCategory":
            pi.setState({
                categories: pi.getState().categories.map(d => d.id === n.dados.id ? n.dados : d)
            });
            break
    }
});
const pi = it()(n => ({
    categories: [],
    addCategory: u => n(i => {
        const d = [...i.categories, u];
        return Je("categoria", d), We.getState().plugin_page ? Mt("addCategory", u) : chrome.runtime.sendMessage({
            action: "addCategory",
            dados: u
        }), {
            categories: d
        }
    }),
    sortCategories: u => n(i => {
        const d = [...i.categories],
            [g] = d.splice(u.source.index, 1);
        return d.splice(u.destination.index, 0, g), Je("categoria", d), We.getState().plugin_page ? Mt("sortCategories", u) : chrome.runtime.sendMessage({
            action: "sortCategories",
            dados: u
        }), {
            categories: d
        }
    }),
    removeCategory: u => n(i => {
        const d = i.categories.filter(g => g.id !== u);
        return Je("categoria", d), We.getState().plugin_page ? Mt("removeCategory", u) : chrome.runtime.sendMessage({
            action: "removeCategory",
            dados: u
        }), {
            categories: d
        }
    }),
    editCategory: u => n(i => {
        const d = i.categories.map(g => g.id === u.id ? u : g);
        return Je("categoria", d), We.getState().plugin_page ? Mt("editCategory", u) : chrome.runtime.sendMessage({
            action: "editCategory",
            dados: u
        }), {
            categories: d
        }
    })
}));
chrome.runtime.onMessage.addListener(n => {
    n.action === "initRespostaRapidas" && l1()
});

function l1() {
    chrome.storage.local.get(["respostasRapidas", "categoria"], ({
        respostasRapidas: n,
        categoria: u
    }) => {
        pi.setState({
            categories: u
        }), Pc.setState({
            quickReplies: n
        })
    })
}
chrome.runtime.onMessage.addListener(n => {
    const {
        encomendas: u
    } = _s.getState();
    switch (n.action) {
        case "addProduct":
            const {
                userID: i, product: d
            } = n.dados, g = u.find(A => A.userID === i);
            let x = [];
            g ? x = u.map(A => (A.userID === i && (A.product = [...A.product, d]), A)) : x = [...u, {
                userID: i,
                product: [d]
            }], _s.setState({
                encomendas: x
            });
            break;
        case "editProduct":
            const {
                productId: p, updatedProduct: w
            } = n.dados, M = u.map(A => {
                if (A.userID === i) {
                    const z = A.product.map(O => O.id === p ? {
                        ...O,
                        ...w
                    } : O);
                    return {
                        ...A,
                        product: z
                    }
                }
                return A
            });
            _s.setState({
                encomendas: M
            });
            break;
        case "removeProduct":
            const {
                productId: T
            } = n.dados, R = u.map(A => {
                if (A.userID === i) {
                    const z = A.product.filter(O => O.id !== T);
                    return {
                        ...A,
                        product: z
                    }
                }
                return A
            });
            _s.setState({
                encomendas: R
            });
            break;
        case "encomendas-backup-update":
            i1();
            break
    }
});
const _s = it()((n, u) => ({
    encomendas: [],
    getProduct: i => {
        const d = _s.getState().encomendas.find(g => g.userID === i);
        return d ? d.product : []
    },
    addProduct: (i, d) => n(g => {
        const x = g.encomendas.find(w => w.userID === i);
        let p = [];
        return x ? p = g.encomendas.map(w => (w.userID === i && (w.product = [...w.product, d]), w)) : p = [...g.encomendas, {
            userID: i,
            product: [d]
        }], Je("encomendas", p), We.getState().plugin_page ? Mt("addProduct", {
            userID: i,
            product: d
        }, !1) : chrome.runtime.sendMessage({
            action: "addProduct",
            dados: {
                userID: i,
                product: d
            }
        }), {
            encomendas: p
        }
    }),
    editProduct: (i, d, g) => n(x => {
        const p = x.encomendas.map(w => {
            if (w.userID === i) {
                const M = w.product.map(T => T.id === d ? {
                    ...T,
                    ...g
                } : T);
                return {
                    ...w,
                    product: M
                }
            }
            return w
        });
        return Je("encomendas", p), We.getState().plugin_page ? Mt("editProduct", {
            userID: i,
            productId: d,
            updatedProduct: g
        }, !1) : chrome.runtime.sendMessage({
            action: "editProduct",
            dados: {
                userID: i,
                productId: d,
                updatedProduct: g
            }
        }), {
            encomendas: p
        }
    }),
    removeProduct: (i, d) => n(g => {
        const x = g.encomendas.map(p => {
            if (p.userID === i) {
                const w = p.product.filter(M => M.id !== d);
                return {
                    ...p,
                    product: w
                }
            }
            return p
        });
        return Je("encomendas", x), We.getState().plugin_page ? Mt("removeProduct", {
            userID: i,
            productId: d
        }, !1) : chrome.runtime.sendMessage({
            action: "removeProduct",
            dados: {
                userID: i,
                productId: d
            }
        }), {
            encomendas: x
        }
    }),
    openLink: i => {
        let d = "";
        switch (i.transportadora) {
            case "Correios":
                d = `https://www.linkcorreios.com.br/?id=${i.codigo}`;
                break;
            case "Jadlog":
                d = `https://t.17track.net/pt#nums=${i.codigo}`;
                break;
            case "Shopee":
            case "Aliexpress":
            case "Gear Best":
            case "China Post":
                d = `https://www.muambator.com.br/pacotes/${i.codigo}/detalhes/`;
                break;
            default:
                d = `https://parcelsapp.com/pt/tracking/${i.codigo}`;
                break
        }
        d !== "" && window.open(d, "_blank")
    }
})),
    i1 = async () => {
        const n = await qi("encomendas") || [];
        _s.setState({
            encomendas: n
        })
    }, Go = it((n, u) => ({
        notifications: [],
        naoVisualizadaTam: 0,
        setNotifications: i => {
            Je("notifications", i), We.getState().plugin_page ? Mt("setNotifications", {
                notifications: i
            }, !1) : chrome.runtime.sendMessage({
                action: "setNotifications",
                dados: {
                    notifications: i
                }
            });
            const d = i.filter(g => g.timeOut && !g.read);
            return n(() => ({
                notifications: i,
                naoVisualizadaTam: d.length
            })), {
                notifications: i,
                naoVisualizadas: d
            }
        },
        setNaoVisualizadaTam: i => n({
            naoVisualizadaTam: i
        }),
        removeNotification: i => n(d => {
            const g = d.notifications.filter(x => x.id !== i);
            return Je("notifications", g), We.getState().plugin_page ? Mt("removeNotification", {
                notificationId: i,
                updatedNotifications: g
            }, !1) : chrome.runtime.sendMessage({
                action: "removeNotification",
                dados: {
                    notificationId: i,
                    updatedNotifications: g
                }
            }), {
                notifications: g
            }
        }),
        editNotification: (i, d) => n(g => {
            const x = g.notifications.map(p => p.id === i ? d : p);
            return Je("notifications", x), We.getState().plugin_page ? Mt("Update_Notificação", {
                notificationId: i,
                updatedNotification: d
            }, !1) : chrome.runtime.sendMessage({
                action: "Update_Notificação",
                dados: {
                    notificationId: i,
                    updatedNotification: d
                }
            }), {
                notifications: x
            }
        })
    })), r1 = async () => {
        const n = await qi("notifications") || [];
        Go.setState({
            notifications: n
        })
    }, {
        setNotifications: Cv,
        setNaoVisualizadaTam: qp
    } = Go.getState();
chrome.runtime.onMessage.addListener(n => {
    switch (n.action) {
        case "Update_Notificação":
            Cv(n.dados.update), qp(n.dados.tam);
            break;
        case "setNotifications":
            chrome.storage.local.get("notifications", i => {
                JSON.stringify(i.notifications) !== JSON.stringify(Go.getState().notifications) && Cv(i.notifications)
            });
            break;
        case "notifications-backup-update":
            r1();
            break;
        case "removeNotification":
            const {
                updatedNotifications: u
            } = n.dados;
            Go.setState({
                notifications: u
            });
            break
    }
});
const Bd = it(n => ({
    contatos: [],
    setContatos: async u => (await Je("contatos", u), We.getState().plugin_page ? Mt("setContatos", {
        contatos: u
    }, !1) : chrome.runtime.sendMessage({
        action: "setContatos",
        dados: {
            contatos: u
        }
    }), n(() => ({
        contatos: u
    })), {
        contatos: u
    })
})),
    s1 = async () => {
        const n = await qi("contatos") || [];
        Ge.Utils("contatoInit", n), Bd.setState({
            contatos: n
        })
    }, {
        setContatos: $p
    } = Bd.getState();
chrome.runtime.onMessage.addListener(n => {
    switch (n.action) {
        case "setContatos":
            chrome.storage.local.get("contatos", u => {
                JSON.stringify(u.contatos) !== JSON.stringify(Bd.getState().contatos) && ($p(u.contatos), Ge.Utils("contatoInit", u.contatos))
            });
            break;
        case "contatos-backup-update":
            s1();
            break
    }
});

function ey(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M14 3v4a1 1 0 0 0 1 1h4"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M14 11h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M12 17v1m0 -8v1"
            },
            child: []
        }]
    })(n)
}

function ty(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M12 19h-7a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v3.5"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M16 19h6"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M19 16v6"
            },
            child: []
        }]
    })(n)
}

function c1(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M4 4l6 0"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M14 4l6 0"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M4 8m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M14 8m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"
            },
            child: []
        }]
    })(n)
}

function ay(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M8 9h8"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M8 13h6"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M12 21l-3 -3h-3a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v6"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M16 22l5 -5"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M21 21.5v-4.5h-4.5"
            },
            child: []
        }]
    })(n)
}

function G4(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M7 12l5 5l-1.5 1.5a3.536 3.536 0 1 1 -5 -5l1.5 -1.5z"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M17 12l-5 -5l1.5 -1.5a3.536 3.536 0 1 1 5 5l-1.5 1.5z"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M3 21l2.5 -2.5"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M18.5 5.5l2.5 -2.5"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M10 11l-2 2"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M13 14l-2 2"
            },
            child: []
        }]
    })(n)
}

function o1(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M9 10a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M6 21v-1a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v1"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z"
            },
            child: []
        }]
    })(n)
}

function Y4(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M3 19c3.333 -2 5 -4 5 -6c0 -3 -1 -3 -2 -3s-2.032 1.085 -2 3c.034 2.048 1.658 2.877 2.5 4c1.5 2 2.5 2.5 3.5 1c.667 -1 1.167 -1.833 1.5 -2.5c1 2.333 2.333 3.5 4 3.5h2.5"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M20 17v-12c0 -1.121 -.879 -2 -2 -2s-2 .879 -2 2v12l2 2l2 -2z"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M16 7h4"
            },
            child: []
        }]
    })(n)
}
const Aa = it((n, u) => ({
    agendamentos: [],
    agendamentosNaoDisparados: [],
    sendAfterWhatsAppOpens: !1,
    buttonActive: !1,
    loadStates: !1,
    setButtonActive: i => {
        u().buttonActive !== i && (We.getState().plugin_page ? Mt("set-active-button", i, !1) : chrome.runtime.sendMessage({
            action: "set-active-button",
            dados: i
        }), n({
            buttonActive: i
        }))
    },
    setSendAfterWhatsAppOpens: i => {
        u().sendAfterWhatsAppOpens === i || i === void 0 || i === null || (Je("sendAfterWhatsAppOpens", i), We.getState().plugin_page ? Mt("update-send-whats-open", {
            value: i
        }, !1) : chrome.runtime.sendMessage({
            action: "update-send-whats-open",
            dados: {
                value: i
            }
        }), n({
            sendAfterWhatsAppOpens: i
        }))
    },
    addAgendamento: i => n(d => {
        const g = [...d.agendamentos, i];
        return Je("agendamentos", g), We.getState().plugin_page ? Mt("addAgendamento", i, !1) : chrome.runtime.sendMessage({
            action: "addAgendamento",
            dados: i
        }), {
            agendamentos: g
        }
    }),
    editAgendamento: (i, d) => n(g => {
        let x, p = g.agendamentosNaoDisparados;
        d === "agendamento" ? (x = g.agendamentos.map(M => M.id === i.id ? {
            ...i
        } : M), Je("agendamentos", x)) : d === "relatorio" && (p = g.agendamentosNaoDisparados.filter(M => M.id !== i.id), x = [...g.agendamentos, {
            ...i,
            status: "enviado",
            id: Ir()
        }], Je("agendamentosNaoDisparados", p), Je("agendamentos", x));
        const w = {
            editedAgen: i,
            type: d
        };
        return We.getState().plugin_page ? Mt("editAgendamento", w, !0) : chrome.runtime.sendMessage({
            action: "editAgendamento",
            dados: w
        }), {
            agendamentos: x,
            agendamentosNaoDisparados: p ?? g.agendamentosNaoDisparados
        }
    }),
    removeAgendamento: (i, d) => {
        const g = Ce.getState().language,
            x = () => {
                if (d === "agendamento") {
                    const w = u().agendamentos.filter(M => M.id !== i);
                    Je("agendamentos", w), n({
                        agendamentos: w
                    }), pe({
                        type: "Success",
                        message: g.agendamento_Notif_rm,
                        position: "top-right"
                    })
                } else if (d === "relatorio") {
                    const w = u().agendamentosNaoDisparados.filter(M => M.id !== i);
                    Je("agendamentosNaoDisparados", w), n({
                        agendamentosNaoDisparados: w
                    }), pe({
                        type: "Success",
                        message: g.rel_notify_rm,
                        position: "top-right"
                    })
                }
                const p = {
                    id: i,
                    type: d
                };
                We.getState().plugin_page ? Mt("agendamento-remove", p, !1) : chrome.runtime.sendMessage({
                    action: "agendamento-remove",
                    dados: p
                })
            };
        qf({
            content: g.agenRemoveConfirm,
            confirmText: g.confirm,
            submit: () => x()
        })
    },
    openUserChat: i => {
        i && (Ge.Chat("openChatBottom", i), Wt.getState().close(), We.getState().plugin_page ? Mt("openUserChat", i, !1) : chrome.runtime.sendMessage({
            action: "openUserChat",
            dados: i
        }))
    }
})),
    u1 = async () => {
        We.getState().plugin_page && Mt("get-send-whats-open", {}, !0);
        const n = await qi("agendamentos") || [],
            u = await qi("agendamentosNaoDisparados") || [],
            i = await qi("sendAfterWhatsAppOpens") || !1;
        Aa.setState({
            agendamentos: n,
            agendamentosNaoDisparados: u,
            sendAfterWhatsAppOpens: i,
            loadStates: !0
        })
    };
chrome.runtime.onMessage.addListener(async n => {
    switch (n.action) {
        case "agendamentos-backup-update":
            u1();
            break;
        case "agendamento-remove":
            if (n.dados.type === "agendamento") {
                const i = Aa.getState().agendamentos.filter(d => d.id !== n.dados.id);
                Aa.setState({
                    agendamentos: i
                })
            } else if (n.dados.type === "relatorio") {
                const i = Aa.getState().agendamentosNaoDisparados.filter(d => d.id !== n.dados.id);
                Aa.setState({
                    agendamentosNaoDisparados: i
                })
            }
            break;
        case "addAgendamento":
            Aa.setState({
                agendamentos: [...Aa.getState().agendamentos, n.dados]
            });
            break;
        case "editAgendamento":
            if (n.dados.type === "agendamento") {
                const i = Aa.getState().agendamentos.map(d => d.id === n.dados.editedAgen.id ? {
                    ...n.dados.editedAgen
                } : d);
                Aa.setState({
                    agendamentos: i
                })
            } else if (n.dados.type === "relatorio") {
                const i = Aa.getState().agendamentosNaoDisparados.filter(x => x.id !== n.dados.editedAgen.id),
                    g = [...Aa.getState().agendamentos, {
                        ...n.dados.editedAgen,
                        status: "enviado"
                    }];
                Aa.setState({
                    agendamentos: g,
                    agendamentosNaoDisparados: i
                })
            }
            break;
        case "agendamento-dispart":
            let u = Aa.getState().agendamentos;
            n.dados.map(i => {
                i.recorrencia.length == 0 ? u = u.filter(d => d.id !== i.id) : u = u.map(d => (d.id === i.id && (d.data = i.data, d.recorrencia = i.recorrencia), d))
            }), Aa.setState({
                agendamentos: u
            });
            break;
        case "update-send-whats-open":
            n.dados.value !== void 0 && Aa.getState().setSendAfterWhatsAppOpens(n.dados.value);
            break;
        case "get-send-whats-open":
            chrome.runtime.sendMessage({
                action: "update-send-whats-open",
                dados: {
                    value: Aa.getState().sendAfterWhatsAppOpens
                }
            });
            break;
        case "set-active-button":
            Aa.getState().setButtonActive(n.dados);
            break;
        case "send-agendamento":
            Aa.setState({
                agendamentosNaoDisparados: n.dados
            });
            break;
        case "openUserChat":
            Ge.Chat("openChatBottom", n.dados), Wt.getState().close();
            break
    }
});
const ny = () => {
    const {
        data: n
    } = ea.getState();
    return n.columns.filter(u => u.id !== "Inbox")
},
    Hf = it(n => ({
        inbox: {
            id: "Inbox",
            index: 9999,
            name: "Inbox",
            cards: [],
            is_inbox: !0,
            color: "var(--primaria)"
        },
        getInbox: async u => {
            const {
                ativeCRM: i
            } = ea.getState(), d = u || ny(), {
                setInbox: g
            } = ea.getState();
            let x = await Ge.Chat("List", {
                type: "all",
                activeLid: !0
            });
            x = x.map(T => ({
                ...T,
                id: T.id.replaceAll("@c.us", "").replaceAll("@g.us", "")
            }));
            const p = x.map(T => ({
                id: T.id
            })),
                w = new Set(d.flatMap(T => T.cards.map(R => R.id))),
                M = p.filter(T => !w.has(T.id));
            n(T => ({
                inbox: {
                    ...T.inbox,
                    cards: M
                }
            })), g(M)
        }
    }));
chrome.runtime.onMessage.addListener(n => {
    (n.action === "update-inbox" || n.action === "chat.new_message") && Hf.getState().getInbox()
});
chrome.runtime.onMessage.addListener(n => {
    switch (n.action) {
        case "updateActivePerfil":
            const {
                activePerfil: u, perfil: i
            } = Tn.getState(), {
                updateCard: d
            } = hn.getState(), {
                updatePerfil: g
            } = n.dados, x = i.filter(w => w.userID !== g.userID), p = [g, ...x];
            u.userID === g.userID ? Tn.setState({
                activePerfil: g,
                perfil: p
            }) : Tn.setState({
                perfil: p
            }), setTimeout(() => d(g.userID), 600);
            break;
        case "BackupPerfil":
            (async () => {
                const w = await qi("perfil");
                Tn.setState({
                    perfil: w
                })
            })();
            break
    }
});
const Nv = {
    cargo: "",
    cidade: "",
    estado: "",
    dataNascimento: "",
    email: "",
    empresa: "",
    entrada: "",
    observacoes: "",
    origemLead: "",
    produtos: [],
    saida: "",
    sexo: "",
    valNegocio: [],
    idioma: "",
    userID: ""
};
let Ph = null;
const Tn = it()(n => ({
    perfil: [],
    activePerfil: Nv,
    activeUser: {
        picture: "",
        labels: []
    },
    setActiveUser: async ({
        id: u,
        labels: i
    }) => {
        const d = await Ge.Contact("getProfilePictureUrl", u.user),
            x = (await Ge.Labels("getAllLabels")).filter(p => i.includes(p.id));
        n({
            activeUser: {
                picture: d,
                labels: x
            }
        })
    },
    setActivePerfil: u => n(i => {
        u = u.replace("@c.us", "").replace("@g.us", "");
        const d = i.perfil.find(g => g.userID === u);
        return d ? {
            activePerfil: d
        } : {
            activePerfil: {
                ...Nv,
                userID: u
            }
        }
    }),
    updateActivePerfil: (u, i) => {
        const {
            activePerfil: d
        } = Tn.getState(), {
            updateCard: g
        } = hn.getState(), x = {
            ...d,
            [u]: i
        };
        n({
            activePerfil: x
        }), Ph && clearTimeout(Ph), Ph = setTimeout(async () => {
            if (await rl("perfilDoContato") === !0) return;
            const {
                perfil: p
            } = Tn.getState(), w = {
                ...d,
                [u]: i
            }, M = p.filter(R => R.userID !== d.userID), T = [w, ...M];
            Je("perfil", T), We.getState().plugin_page ? Mt("updateActivePerfil", {
                updatePerfil: w
            }, !1) : chrome.runtime.sendMessage({
                action: "updateActivePerfil",
                dados: {
                    updatePerfil: w
                }
            }), n({
                perfil: T
            }), setTimeout(() => g(w.userID), 600)
        }, 1e3)
    },
    getValorNegocio: () => {
        const {
            activePerfil: u
        } = Tn.getState();
        let i = 0;
        if (u.valNegocio)
            for (let d of u.valNegocio) i += parseFloat(d.valor);
        return i.toLocaleString("pt-BR", {
            style: "currency",
            currency: "BRL"
        })
    }
}));
(async () => {
    const n = await qi("perfil");
    Tn.setState({
        perfil: n
    })
})();
const hn = it((n, u) => ({
    cards: [],
    loadingCards: new Set,
    getCard: i => {
        const {
            cards: d,
            extractCard: g,
            loadingCards: x
        } = u(), p = d.find(w => w.id === i);
        return p || (x.has(i) || (n(w => ({
            loadingCards: new Set(w.loadingCards).add(i)
        })), g(i)), {
            id: i,
            name: "Aguarde...",
            picture: "",
            labels: [],
            valNegocio: [],
            entrada: "",
            lastMessage: {
                text: "",
                timestamp: 0,
                type: ""
            },
            unreadMessages: 0,
            get_date: Date.now()
        })
    },
    extractCard: async i => {
        const {
            perfil: d
        } = Tn.getState();
        try {
            const g = await Ge.Utils("get-card", i),
                x = d.find(w => w.userID === i),
                p = {
                    id: i,
                    name: g.name,
                    picture: g.picture,
                    labels: g.labels,
                    valNegocio: x ? x.valNegocio : [],
                    entrada: x ? x.entrada : "",
                    lastMessage: g.lastMessage,
                    unreadMessages: g.unreadMessages,
                    get_date: Date.now()
                };
            n(w => {
                const M = w.cards.findIndex(A => A.id === i),
                    T = [...w.cards];
                M !== -1 ? T[M] = p : T.unshift(p);
                const R = new Set(w.loadingCards);
                return R.delete(i), Ld("useViewCard", "cards", [T]), {
                    cards: T,
                    loadingCards: R
                }
            })
        } catch (g) {
            console.error(`Erro ao extrair card: ${i}`, g), n(x => {
                const p = new Set(x.loadingCards);
                return p.delete(i), {
                    loadingCards: p
                }
            })
        }
    },
    updateCard: async i => {
        const {
            extractCard: d,
            loadingCards: g
        } = u();
        i.includes("lid") ? i = (await Ge.Whatsapp("getUserContact", i)).user : i = i.replace(/@(.*)/, "");
        const x = i;
        g.has(x) || (n(p => ({
            loadingCards: new Set(p.loadingCards).add(x)
        })), d(x))
    }
})),
    ly = (n, u) => !(Math.abs(n - u) > 432e5);
(async () => {
    const n = await Kf("useViewCard", "cards");
    if (n && n[0] && n[0][0]) {
        const u = n[0][0],
            i = Date.now(),
            d = [];
        for (let g of u) ly(i, g.get_date) && d.push(g);
        hn.setState({
            cards: d
        })
    }
})();
chrome.runtime.onMessage.addListener(({
    action: n,
    model: u,
    dados: i
}) => {
    if (n === "chat.update_label") {
        const d = JSON.parse(u);
        hn.getState().updateCard(d.chat.id)
    }
    if (n === "chat.new_message") {
        const d = JSON.parse(u);
        hn.getState().updateCard(d.from)
    }
    if (n === "chat.presence_change") {
        const d = JSON.parse(u);
        hn.getState().updateCard(d.id)
    }
    n === "contatoSave" && setTimeout(() => hn.getState().updateCard(i.id), 3e3)
});

function iy(n, u) {
    const i = new Set(u.map(d => d.id));
    return n.filter(d => !i.has(d.id))
}
const jg = () => {
    const {
        data: n
    } = ea.getState(), {
        cards: u,
        getCard: i
    } = hn.getState(), d = n.columns.flatMap(x => x.cards), g = iy(d, u);
    if (g.length !== 0) {
        const x = g.slice(0, 20);
        for (const p of x) i(p.id);
        setTimeout(jg, 5e3)
    }
};
setTimeout(() => jg(), 15e3);
const ea = it((n, u) => {
    let i = null;
    return {
        data: {
            columns: []
        },
        setData: d => n({
            data: d
        }),
        setInbox: d => n(g => ({
            data: {
                columns: g.data.columns.map(x => x.id === "Inbox" ? {
                    ...x,
                    cards: d
                } : x)
            }
        })),
        ativeCRM: "Abas",
        setAtiveCRM: d => {
            const {
                abas: g,
                etiquetas: x,
                crm: p
            } = u();
            switch (localStorage.setItem("crm", d), n({
                ativeCRM: d
            }), d) {
                case "Abas":
                    g();
                    break;
                case "Etiquetas":
                    x();
                    break;
                default:
                    p();
                    break
            }
            setTimeout(jg, 2500)
        },
        abas: () => {
            i && (i(), i = null);
            const d = g => {
                const {
                    setData: x
                } = u(), {
                    inbox: p,
                    getInbox: w
                } = Hf.getState(), M = g.filter(T => !T.hide).map((T, R) => ({
                    id: T.id,
                    index: R,
                    name: T.tag,
                    cards: T.chats.map(A => ({
                        id: A.id
                    })),
                    is_inbox: !1,
                    color: "var(--primaria)"
                }));
                x({
                    columns: [p, ...M]
                }), w(M)
            };
            (() => {
                const {
                    userTabs: g
                } = at.getState();
                d(g)
            })(), i = at.subscribe(({
                userTabs: g
            }) => d(g))
        },
        etiquetas: () => {
            i && (i(), i = null);
            const d = async () => {
                const M = rg.getState().orderLabels,
                    T = await Ge.Labels("getAllLabels"),
                    R = T.map(O => O.id),
                    z = [...M.filter(O => R.includes(O)), ...R.filter(O => !M.includes(O))];
                return M.length > 0 && JSON.stringify(z) !== JSON.stringify(M) && R0(z), T.sort((O, L) => M.indexOf(O.id) - M.indexOf(L.id))
            }, g = async () => {
                const {
                    setData: M
                } = u(), {
                    inbox: T,
                    getInbox: R
                } = Hf.getState(), A = await d();
                let z = {};
                for (let L = 0; L < A.length; L++) {
                    let G = await Ge.Contact("List", {
                        type: "withLabels",
                        id: A[L].id,
                        activeLid: !0
                    });
                    G = G.map(Z => ({
                        ...Z,
                        id: Z.id.replaceAll("@c.us", "").replaceAll("@g.us", "")
                    })), z[A[L].id] = G
                }
                const O = A.map((L, G) => ({
                    id: L.id,
                    index: G,
                    name: L.name,
                    cards: z[L.id] ? z[L.id] : [],
                    is_inbox: !1,
                    color: L.hexColor
                }));
                M({
                    columns: [T, ...O]
                }), R(O)
            };
            g();
            const x = setInterval(g, 1e4),
                p = M => {
                    M.action === "chat.update_label" && g()
                };
            chrome.runtime.onMessage.addListener(p);
            let w = rg.subscribe(() => {
                g()
            });
            i = () => {
                x && clearInterval(x), chrome.runtime.onMessage.removeListener(p), w && (w(), w = null)
            }
        },
        crm: () => {
            i && (i(), i = null);
            const d = g => {
                const {
                    setData: x
                } = u(), {
                    ativeCRM: p
                } = u(), {
                    inbox: w,
                    getInbox: M
                } = Hf.getState(), T = g.find(A => A.id === p);
                if (!T) return;
                const R = T.list.map((A, z) => ({
                    id: A.id,
                    index: z,
                    name: A.name,
                    cards: A.chats.map(O => ({
                        id: O.id
                    })),
                    is_inbox: !1,
                    color: A.hexColor
                }));
                x({
                    columns: [w, ...R]
                }), M(R)
            };
            (() => {
                const {
                    crm: g
                } = Fo.getState();
                d(g)
            })(), i = Fo.subscribe(({
                crm: g
            }) => d(g))
        }
    }
}),
    ry = () => {
        const n = localStorage.getItem("crm") || "Abas";
        ea.getState().setAtiveCRM(n)
    };
Fp();
n1();
l1();
i1();
r1();
s1();
u1();
Lp();
ry();
const sy = n => {
    const u = Fo.getState().crm,
        i = ea.getState().setAtiveCRM,
        d = We.getState().isBusiness;
    if (!n.altKey && !n.metaKey) return;
    const x = {
        1: () => i("Abas"),
        2: () => d && i("Etiquetas"),
        3: () => u.length >= 1 && i(u[0].id),
        4: () => u.length >= 2 && i(u[1].id),
        5: () => u.length >= 3 && i(u[2].id),
        6: () => u.length >= 4 && i(u[3].id),
        7: () => u.length >= 5 && i(u[4].id),
        8: () => u.length >= 6 && i(u[5].id),
        9: () => u.length >= 7 && i(u[6].id)
    }[n.key];
    x && x()
};
document.addEventListener("keydown", sy);
var Wh = {
    exports: {}
},
    Md = {},
    Jh = {
        exports: {}
    },
    Kh = {};
var Tv;

function cy() {
    return Tv || (Tv = 1, (function (n) {
        function u(B, P) {
            var Te = B.length;
            B.push(P);
            e: for (; 0 < Te;) {
                var ht = Te - 1 >>> 1,
                    fe = B[ht];
                if (0 < g(fe, P)) B[ht] = P, B[Te] = fe, Te = ht;
                else break e
            }
        }

        function i(B) {
            return B.length === 0 ? null : B[0]
        }

        function d(B) {
            if (B.length === 0) return null;
            var P = B[0],
                Te = B.pop();
            if (Te !== P) {
                B[0] = Te;
                e: for (var ht = 0, fe = B.length, ae = fe >>> 1; ht < ae;) {
                    var mt = 2 * (ht + 1) - 1,
                        nt = B[mt],
                        gt = mt + 1,
                        Ze = B[gt];
                    if (0 > g(nt, Te)) gt < fe && 0 > g(Ze, nt) ? (B[ht] = Ze, B[gt] = Te, ht = gt) : (B[ht] = nt, B[mt] = Te, ht = mt);
                    else if (gt < fe && 0 > g(Ze, Te)) B[ht] = Ze, B[gt] = Te, ht = gt;
                    else break e
                }
            }
            return P
        }

        function g(B, P) {
            var Te = B.sortIndex - P.sortIndex;
            return Te !== 0 ? Te : B.id - P.id
        }
        if (n.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {
            var x = performance;
            n.unstable_now = function () {
                return x.now()
            }
        } else {
            var p = Date,
                w = p.now();
            n.unstable_now = function () {
                return p.now() - w
            }
        }
        var M = [],
            T = [],
            R = 1,
            A = null,
            z = 3,
            O = !1,
            L = !1,
            G = !1,
            Z = !1,
            ce = typeof setTimeout == "function" ? setTimeout : null,
            re = typeof clearTimeout == "function" ? clearTimeout : null,
            ve = typeof setImmediate < "u" ? setImmediate : null;

        function he(B) {
            for (var P = i(T); P !== null;) {
                if (P.callback === null) d(T);
                else if (P.startTime <= B) d(T), P.sortIndex = P.expirationTime, u(M, P);
                else break;
                P = i(T)
            }
        }

        function Se(B) {
            if (G = !1, he(B), !L)
                if (i(M) !== null) L = !0, xe || (xe = !0, yt());
                else {
                    var P = i(T);
                    P !== null && Ee(Se, P.startTime - B)
                }
        }
        var xe = !1,
            ft = -1,
            _e = 5,
            De = -1;

        function ta() {
            return Z ? !0 : !(n.unstable_now() - De < _e)
        }

        function sa() {
            if (Z = !1, xe) {
                var B = n.unstable_now();
                De = B;
                var P = !0;
                try {
                    e: {
                        L = !1,
                            G && (G = !1, re(ft), ft = -1),
                            O = !0;
                        var Te = z;
                        try {
                            t: {
                                for (he(B), A = i(M); A !== null && !(A.expirationTime > B && ta());) {
                                    var ht = A.callback;
                                    if (typeof ht == "function") {
                                        A.callback = null, z = A.priorityLevel;
                                        var fe = ht(A.expirationTime <= B);
                                        if (B = n.unstable_now(), typeof fe == "function") {
                                            A.callback = fe, he(B), P = !0;
                                            break t
                                        }
                                        A === i(M) && d(M), he(B)
                                    } else d(M);
                                    A = i(M)
                                }
                                if (A !== null) P = !0;
                                else {
                                    var ae = i(T);
                                    ae !== null && Ee(Se, ae.startTime - B), P = !1
                                }
                            }
                            break e
                        }
                        finally {
                            A = null, z = Te, O = !1
                        }
                        P = void 0
                    }
                }
                finally {
                    P ? yt() : xe = !1
                }
            }
        }
        var yt;
        if (typeof ve == "function") yt = function () {
            ve(sa)
        };
        else if (typeof MessageChannel < "u") {
            var Oe = new MessageChannel,
                Ye = Oe.port2;
            Oe.port1.onmessage = sa, yt = function () {
                Ye.postMessage(null)
            }
        } else yt = function () {
            ce(sa, 0)
        };

        function Ee(B, P) {
            ft = ce(function () {
                B(n.unstable_now())
            }, P)
        }
        n.unstable_IdlePriority = 5, n.unstable_ImmediatePriority = 1, n.unstable_LowPriority = 4, n.unstable_NormalPriority = 3, n.unstable_Profiling = null, n.unstable_UserBlockingPriority = 2, n.unstable_cancelCallback = function (B) {
            B.callback = null
        }, n.unstable_forceFrameRate = function (B) {
            0 > B || 125 < B ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : _e = 0 < B ? Math.floor(1e3 / B) : 5
        }, n.unstable_getCurrentPriorityLevel = function () {
            return z
        }, n.unstable_next = function (B) {
            switch (z) {
                case 1:
                case 2:
                case 3:
                    var P = 3;
                    break;
                default:
                    P = z
            }
            var Te = z;
            z = P;
            try {
                return B()
            } finally {
                z = Te
            }
        }, n.unstable_requestPaint = function () {
            Z = !0
        }, n.unstable_runWithPriority = function (B, P) {
            switch (B) {
                case 1:
                case 2:
                case 3:
                case 4:
                case 5:
                    break;
                default:
                    B = 3
            }
            var Te = z;
            z = B;
            try {
                return P()
            } finally {
                z = Te
            }
        }, n.unstable_scheduleCallback = function (B, P, Te) {
            var ht = n.unstable_now();
            switch (typeof Te == "object" && Te !== null ? (Te = Te.delay, Te = typeof Te == "number" && 0 < Te ? ht + Te : ht) : Te = ht, B) {
                case 1:
                    var fe = -1;
                    break;
                case 2:
                    fe = 250;
                    break;
                case 5:
                    fe = 1073741823;
                    break;
                case 4:
                    fe = 1e4;
                    break;
                default:
                    fe = 5e3
            }
            return fe = Te + fe, B = {
                id: R++,
                callback: P,
                priorityLevel: B,
                startTime: Te,
                expirationTime: fe,
                sortIndex: -1
            }, Te > ht ? (B.sortIndex = Te, u(T, B), i(M) === null && B === i(T) && (G ? (re(ft), ft = -1) : G = !0, Ee(Se, Te - ht))) : (B.sortIndex = fe, u(M, B), L || O || (L = !0, xe || (xe = !0, yt()))), B
        }, n.unstable_shouldYield = ta, n.unstable_wrapCallback = function (B) {
            var P = z;
            return function () {
                var Te = z;
                z = P;
                try {
                    return B.apply(this, arguments)
                } finally {
                    z = Te
                }
            }
        }
    })(Kh)), Kh
}
var Ev;

function oy() {
    return Ev || (Ev = 1, Jh.exports = cy()), Jh.exports
}
var Mv;

function uy() {
    if (Mv) return Md;
    Mv = 1;
    var n = oy(),
        u = wg(),
        i = Tg();

    function d(e) {
        var t = "https://react.dev/errors/" + e;
        if (1 < arguments.length) {
            t += "?args[]=" + encodeURIComponent(arguments[1]);
            for (var a = 2; a < arguments.length; a++) t += "&args[]=" + encodeURIComponent(arguments[a])
        }
        return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
    }

    function g(e) {
        return !(!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11)
    }

    function x(e) {
        var t = e,
            a = e;
        if (e.alternate)
            for (; t.return;) t = t.return;
        else {
            e = t;
            do t = e, (t.flags & 4098) !== 0 && (a = t.return), e = t.return; while (e)
        }
        return t.tag === 3 ? a : null
    }

    function p(e) {
        if (e.tag === 13) {
            var t = e.memoizedState;
            if (t === null && (e = e.alternate, e !== null && (t = e.memoizedState)), t !== null) return t.dehydrated
        }
        return null
    }

    function w(e) {
        if (e.tag === 31) {
            var t = e.memoizedState;
            if (t === null && (e = e.alternate, e !== null && (t = e.memoizedState)), t !== null) return t.dehydrated
        }
        return null
    }

    function M(e) {
        if (x(e) !== e) throw Error(d(188))
    }

    function T(e) {
        var t = e.alternate;
        if (!t) {
            if (t = x(e), t === null) throw Error(d(188));
            return t !== e ? null : e
        }
        for (var a = e, l = t; ;) {
            var h = a.return;
            if (h === null) break;
            var m = h.alternate;
            if (m === null) {
                if (l = h.return, l !== null) {
                    a = l;
                    continue
                }
                break
            }
            if (h.child === m.child) {
                for (m = h.child; m;) {
                    if (m === a) return M(h), e;
                    if (m === l) return M(h), t;
                    m = m.sibling
                }
                throw Error(d(188))
            }
            if (a.return !== l.return) a = h, l = m;
            else {
                for (var N = !1, j = h.child; j;) {
                    if (j === a) {
                        N = !0, a = h, l = m;
                        break
                    }
                    if (j === l) {
                        N = !0, l = h, a = m;
                        break
                    }
                    j = j.sibling
                }
                if (!N) {
                    for (j = m.child; j;) {
                        if (j === a) {
                            N = !0, a = m, l = h;
                            break
                        }
                        if (j === l) {
                            N = !0, l = m, a = h;
                            break
                        }
                        j = j.sibling
                    }
                    if (!N) throw Error(d(189))
                }
            }
            if (a.alternate !== l) throw Error(d(190))
        }
        if (a.tag !== 3) throw Error(d(188));
        return a.stateNode.current === a ? e : t
    }

    function R(e) {
        var t = e.tag;
        if (t === 5 || t === 26 || t === 27 || t === 6) return e;
        for (e = e.child; e !== null;) {
            if (t = R(e), t !== null) return t;
            e = e.sibling
        }
        return null
    }
    var A = Object.assign,
        z = Symbol.for("react.element"),
        O = Symbol.for("react.transitional.element"),
        L = Symbol.for("react.portal"),
        G = Symbol.for("react.fragment"),
        Z = Symbol.for("react.strict_mode"),
        ce = Symbol.for("react.profiler"),
        re = Symbol.for("react.consumer"),
        ve = Symbol.for("react.context"),
        he = Symbol.for("react.forward_ref"),
        Se = Symbol.for("react.suspense"),
        xe = Symbol.for("react.suspense_list"),
        ft = Symbol.for("react.memo"),
        _e = Symbol.for("react.lazy"),
        De = Symbol.for("react.activity"),
        ta = Symbol.for("react.memo_cache_sentinel"),
        sa = Symbol.iterator;

    function yt(e) {
        return e === null || typeof e != "object" ? null : (e = sa && e[sa] || e["@@iterator"], typeof e == "function" ? e : null)
    }
    var Oe = Symbol.for("react.client.reference");

    function Ye(e) {
        if (e == null) return null;
        if (typeof e == "function") return e.$$typeof === Oe ? null : e.displayName || e.name || null;
        if (typeof e == "string") return e;
        switch (e) {
            case G:
                return "Fragment";
            case ce:
                return "Profiler";
            case Z:
                return "StrictMode";
            case Se:
                return "Suspense";
            case xe:
                return "SuspenseList";
            case De:
                return "Activity"
        }
        if (typeof e == "object") switch (e.$$typeof) {
            case L:
                return "Portal";
            case ve:
                return e.displayName || "Context";
            case re:
                return (e._context.displayName || "Context") + ".Consumer";
            case he:
                var t = e.render;
                return e = e.displayName, e || (e = t.displayName || t.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
            case ft:
                return t = e.displayName || null, t !== null ? t : Ye(e.type) || "Memo";
            case _e:
                t = e._payload, e = e._init;
                try {
                    return Ye(e(t))
                } catch { }
        }
        return null
    }
    var Ee = Array.isArray,
        B = u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
        P = i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
        Te = {
            pending: !1,
            data: null,
            method: null,
            action: null
        },
        ht = [],
        fe = -1;

    function ae(e) {
        return {
            current: e
        }
    }

    function mt(e) {
        0 > fe || (e.current = ht[fe], ht[fe] = null, fe--)
    }

    function nt(e, t) {
        fe++, ht[fe] = e.current, e.current = t
    }
    var gt = ae(null),
        Ze = ae(null),
        ga = ae(null),
        cl = ae(null);

    function er(e, t) {
        switch (nt(ga, t), nt(Ze, e), nt(gt, null), t.nodeType) {
            case 9:
            case 11:
                e = (e = t.documentElement) && (e = e.namespaceURI) ? Vm(e) : 0;
                break;
            default:
                if (e = t.tagName, t = t.namespaceURI) t = Vm(t), e = Im(t, e);
                else switch (e) {
                    case "svg":
                        e = 1;
                        break;
                    case "math":
                        e = 2;
                        break;
                    default:
                        e = 0
                }
        }
        mt(gt), nt(gt, e)
    }

    function Cl() {
        mt(gt), mt(Ze), mt(ga)
    }

    function Jc(e) {
        e.memoizedState !== null && nt(cl, e);
        var t = gt.current,
            a = Im(t, e.type);
        t !== a && (nt(Ze, e), nt(gt, a))
    }

    function ca(e) {
        Ze.current === e && (mt(gt), mt(Ze)), cl.current === e && (mt(cl), Cd._currentValue = Te)
    }
    var Ds, Xe;

    function Nl(e) {
        if (Ds === void 0) try {
            throw Error()
        } catch (a) {
            var t = a.stack.trim().match(/\n( *(at )?)/);
            Ds = t && t[1] || "", Xe = -1 < a.stack.indexOf(`
    at`) ? " (<anonymous>)" : -1 < a.stack.indexOf("@") ? "@unknown:0:0" : ""
        }
        return `
` + Ds + e + Xe
    }
    var tr = !1;

    function ks(e, t) {
        if (!e || tr) return "";
        tr = !0;
        var a = Error.prepareStackTrace;
        Error.prepareStackTrace = void 0;
        try {
            var l = {
                DetermineComponentFrameRoot: function () {
                    try {
                        if (t) {
                            var de = function () {
                                throw Error()
                            };
                            if (Object.defineProperty(de.prototype, "props", {
                                set: function () {
                                    throw Error()
                                }
                            }), typeof Reflect == "object" && Reflect.construct) {
                                try {
                                    Reflect.construct(de, [])
                                } catch (le) {
                                    var $ = le
                                }
                                Reflect.construct(e, [], de)
                            } else {
                                try {
                                    de.call()
                                } catch (le) {
                                    $ = le
                                }
                                e.call(de.prototype)
                            }
                        } else {
                            try {
                                throw Error()
                            } catch (le) {
                                $ = le
                            } (de = e()) && typeof de.catch == "function" && de.catch(function () { })
                        }
                    } catch (le) {
                        if (le && $ && typeof le.stack == "string") return [le.stack, $.stack]
                    }
                    return [null, null]
                }
            };
            l.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
            var h = Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot, "name");
            h && h.configurable && Object.defineProperty(l.DetermineComponentFrameRoot, "name", {
                value: "DetermineComponentFrameRoot"
            });
            var m = l.DetermineComponentFrameRoot(),
                N = m[0],
                j = m[1];
            if (N && j) {
                var F = N.split(`
`),
                    K = j.split(`
`);
                for (h = l = 0; l < F.length && !F[l].includes("DetermineComponentFrameRoot");) l++;
                for (; h < K.length && !K[h].includes("DetermineComponentFrameRoot");) h++;
                if (l === F.length || h === K.length)
                    for (l = F.length - 1, h = K.length - 1; 1 <= l && 0 <= h && F[l] !== K[h];) h--;
                for (; 1 <= l && 0 <= h; l--, h--)
                    if (F[l] !== K[h]) {
                        if (l !== 1 || h !== 1)
                            do
                                if (l--, h--, 0 > h || F[l] !== K[h]) {
                                    var se = `
` + F[l].replace(" at new ", " at ");
                                    return e.displayName && se.includes("<anonymous>") && (se = se.replace("<anonymous>", e.displayName)), se
                                } while (1 <= l && 0 <= h);
                        break
                    }
            }
        } finally {
            tr = !1, Error.prepareStackTrace = a
        }
        return (a = e ? e.displayName || e.name : "") ? Nl(a) : ""
    }

    function ar(e, t) {
        switch (e.tag) {
            case 26:
            case 27:
            case 5:
                return Nl(e.type);
            case 16:
                return Nl("Lazy");
            case 13:
                return e.child !== t && t !== null ? Nl("Suspense Fallback") : Nl("Suspense");
            case 19:
                return Nl("SuspenseList");
            case 0:
            case 15:
                return ks(e.type, !1);
            case 11:
                return ks(e.type.render, !1);
            case 1:
                return ks(e.type, !0);
            case 31:
                return Nl("Activity");
            default:
                return ""
        }
    }

    function Tl(e) {
        try {
            var t = "",
                a = null;
            do t += ar(e, a), a = e, e = e.return; while (e);
            return t
        } catch (l) {
            return `
Error generating stack: ` + l.message + `
` + l.stack
        }
    }
    var ma = Object.prototype.hasOwnProperty,
        Ls = n.unstable_scheduleCallback,
        En = n.unstable_cancelCallback,
        Mn = n.unstable_shouldYield,
        yi = n.unstable_requestPaint,
        gn = n.unstable_now,
        ot = n.unstable_getCurrentPriorityLevel,
        mn = n.unstable_ImmediatePriority,
        Io = n.unstable_UserBlockingPriority,
        nr = n.unstable_NormalPriority,
        Ra = n.unstable_LowPriority,
        Us = n.unstable_IdlePriority,
        Kc = n.log,
        lr = n.unstable_setDisableYieldValue,
        ni = null,
        pa = null;

    function ol(e) {
        if (typeof Kc == "function" && lr(e), pa && typeof pa.setStrictMode == "function") try {
            pa.setStrictMode(ni, e)
        } catch { }
    }
    var Fa = Math.clz32 ? Math.clz32 : It,
        Bs = Math.log,
        qc = Math.LN2;

    function It(e) {
        return e >>>= 0, e === 0 ? 32 : 31 - (Bs(e) / qc | 0) | 0
    }
    var oa = 256,
        ir = 262144,
        In = 4194304;

    function El(e) {
        var t = e & 42;
        if (t !== 0) return t;
        switch (e & -e) {
            case 1:
                return 1;
            case 2:
                return 2;
            case 4:
                return 4;
            case 8:
                return 8;
            case 16:
                return 16;
            case 32:
                return 32;
            case 64:
                return 64;
            case 128:
                return 128;
            case 256:
            case 512:
            case 1024:
            case 2048:
            case 4096:
            case 8192:
            case 16384:
            case 32768:
            case 65536:
            case 131072:
                return e & 261888;
            case 262144:
            case 524288:
            case 1048576:
            case 2097152:
                return e & 3932160;
            case 4194304:
            case 8388608:
            case 16777216:
            case 33554432:
                return e & 62914560;
            case 67108864:
                return 67108864;
            case 134217728:
                return 134217728;
            case 268435456:
                return 268435456;
            case 536870912:
                return 536870912;
            case 1073741824:
                return 0;
            default:
                return e
        }
    }

    function Si(e, t, a) {
        var l = e.pendingLanes;
        if (l === 0) return 0;
        var h = 0,
            m = e.suspendedLanes,
            N = e.pingedLanes;
        e = e.warmLanes;
        var j = l & 134217727;
        return j !== 0 ? (l = j & ~m, l !== 0 ? h = El(l) : (N &= j, N !== 0 ? h = El(N) : a || (a = j & ~e, a !== 0 && (h = El(a))))) : (j = l & ~m, j !== 0 ? h = El(j) : N !== 0 ? h = El(N) : a || (a = l & ~e, a !== 0 && (h = El(a)))), h === 0 ? 0 : t !== 0 && t !== h && (t & m) === 0 && (m = h & -h, a = t & -t, m >= a || m === 32 && (a & 4194048) !== 0) ? t : h
    }

    function Ml(e, t) {
        return (e.pendingLanes & ~(e.suspendedLanes & ~e.pingedLanes) & t) === 0
    }

    function Zn(e, t) {
        switch (e) {
            case 1:
            case 2:
            case 4:
            case 8:
            case 64:
                return t + 250;
            case 16:
            case 32:
            case 128:
            case 256:
            case 512:
            case 1024:
            case 2048:
            case 4096:
            case 8192:
            case 16384:
            case 32768:
            case 65536:
            case 131072:
            case 262144:
            case 524288:
            case 1048576:
            case 2097152:
                return t + 5e3;
            case 4194304:
            case 8388608:
            case 16777216:
            case 33554432:
                return -1;
            case 67108864:
            case 134217728:
            case 268435456:
            case 536870912:
            case 1073741824:
                return -1;
            default:
                return -1
        }
    }

    function $c() {
        var e = In;
        return In <<= 1, (In & 62914560) === 0 && (In = 4194304), e
    }

    function Hs(e) {
        for (var t = [], a = 0; 31 > a; a++) t.push(e);
        return t
    }

    function Pr(e, t) {
        e.pendingLanes |= t, t !== 268435456 && (e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0)
    }

    function Zo(e, t, a, l, h, m) {
        var N = e.pendingLanes;
        e.pendingLanes = a, e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0, e.expiredLanes &= a, e.entangledLanes &= a, e.errorRecoveryDisabledLanes &= a, e.shellSuspendCounter = 0;
        var j = e.entanglements,
            F = e.expirationTimes,
            K = e.hiddenUpdates;
        for (a = N & ~a; 0 < a;) {
            var se = 31 - Fa(a),
                de = 1 << se;
            j[se] = 0, F[se] = -1;
            var $ = K[se];
            if ($ !== null)
                for (K[se] = null, se = 0; se < $.length; se++) {
                    var le = $[se];
                    le !== null && (le.lane &= -536870913)
                }
            a &= ~de
        }
        l !== 0 && rr(e, l, 0), m !== 0 && h === 0 && e.tag !== 0 && (e.suspendedLanes |= m & ~(N & ~t))
    }

    function rr(e, t, a) {
        e.pendingLanes |= t, e.suspendedLanes &= ~t;
        var l = 31 - Fa(t);
        e.entangledLanes |= t, e.entanglements[l] = e.entanglements[l] | 1073741824 | a & 261930
    }

    function sr(e, t) {
        var a = e.entangledLanes |= t;
        for (e = e.entanglements; a;) {
            var l = 31 - Fa(a),
                h = 1 << l;
            h & t | e[l] & t && (e[l] |= t), a &= ~h
        }
    }

    function ya(e, t) {
        var a = t & -t;
        return a = (a & 42) !== 0 ? 1 : vn(a), (a & (e.suspendedLanes | t)) !== 0 ? 0 : a
    }

    function vn(e) {
        switch (e) {
            case 2:
                e = 1;
                break;
            case 8:
                e = 4;
                break;
            case 32:
                e = 16;
                break;
            case 256:
            case 512:
            case 1024:
            case 2048:
            case 4096:
            case 8192:
            case 16384:
            case 32768:
            case 65536:
            case 131072:
            case 262144:
            case 524288:
            case 1048576:
            case 2097152:
            case 4194304:
            case 8388608:
            case 16777216:
            case 33554432:
                e = 128;
                break;
            case 268435456:
                e = 134217728;
                break;
            default:
                e = 0
        }
        return e
    }

    function Lt(e) {
        return e &= -e, 2 < e ? 8 < e ? (e & 134217727) !== 0 ? 32 : 268435456 : 8 : 2
    }

    function Wr() {
        var e = P.p;
        return e !== 0 ? e : (e = window.event, e === void 0 ? 32 : gv(e.type))
    }

    function bn(e, t) {
        var a = P.p;
        try {
            return P.p = e, t()
        } finally {
            P.p = a
        }
    }
    var vt = Math.random().toString(36).slice(2),
        Sa = "__reactFiber$" + vt,
        qa = "__reactProps$" + vt,
        li = "__reactContainer$" + vt,
        Fs = "__reactEvents$" + vt,
        Jr = "__reactListeners$" + vt,
        Qo = "__reactHandles$" + vt,
        bt = "__reactResources$" + vt,
        St = "__reactMarker$" + vt;

    function wi(e) {
        delete e[Sa], delete e[qa], delete e[Fs], delete e[Jr], delete e[Qo]
    }

    function wa(e) {
        var t = e[Sa];
        if (t) return t;
        for (var a = e.parentNode; a;) {
            if (t = a[li] || a[Sa]) {
                if (a = t.alternate, t.child !== null || a !== null && a.child !== null)
                    for (e = qm(e); e !== null;) {
                        if (a = e[Sa]) return a;
                        e = qm(e)
                    }
                return t
            }
            e = a, a = e.parentNode
        }
        return null
    }

    function cr(e) {
        if (e = e[Sa] || e[li]) {
            var t = e.tag;
            if (t === 5 || t === 6 || t === 13 || t === 31 || t === 26 || t === 27 || t === 3) return e
        }
        return null
    }

    function Ci(e) {
        var t = e.tag;
        if (t === 5 || t === 26 || t === 27 || t === 6) return e.stateNode;
        throw Error(d(33))
    }

    function Ni(e) {
        var t = e[bt];
        return t || (t = e[bt] = {
            hoistableStyles: new Map,
            hoistableScripts: new Map
        }), t
    }

    function va(e) {
        e[St] = !0
    }
    var Po = new Set,
        or = {};

    function Ut(e, t) {
        Al(e, t), Al(e + "Capture", t)
    }

    function Al(e, t) {
        for (or[e] = t, e = 0; e < t.length; e++) Po.add(t[e])
    }
    var Gs = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),
        Rl = {},
        Kr = {};

    function ju(e) {
        return ma.call(Kr, e) ? !0 : ma.call(Rl, e) ? !1 : Gs.test(e) ? Kr[e] = !0 : (Rl[e] = !0, !1)
    }

    function Ys(e, t, a) {
        if (ju(t))
            if (a === null) e.removeAttribute(t);
            else {
                switch (typeof a) {
                    case "undefined":
                    case "function":
                    case "symbol":
                        e.removeAttribute(t);
                        return;
                    case "boolean":
                        var l = t.toLowerCase().slice(0, 5);
                        if (l !== "data-" && l !== "aria-") {
                            e.removeAttribute(t);
                            return
                        }
                }
                e.setAttribute(t, "" + a)
            }
    }

    function _l(e, t, a) {
        if (a === null) e.removeAttribute(t);
        else {
            switch (typeof a) {
                case "undefined":
                case "function":
                case "symbol":
                case "boolean":
                    e.removeAttribute(t);
                    return
            }
            e.setAttribute(t, "" + a)
        }
    }

    function Ln(e, t, a, l) {
        if (l === null) e.removeAttribute(a);
        else {
            switch (typeof l) {
                case "undefined":
                case "function":
                case "symbol":
                case "boolean":
                    e.removeAttribute(a);
                    return
            }
            e.setAttributeNS(t, a, "" + l)
        }
    }

    function $a(e) {
        switch (typeof e) {
            case "bigint":
            case "boolean":
            case "number":
            case "string":
            case "undefined":
                return e;
            case "object":
                return e;
            default:
                return ""
        }
    }

    function Ol(e) {
        var t = e.type;
        return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio")
    }

    function eo(e, t, a) {
        var l = Object.getOwnPropertyDescriptor(e.constructor.prototype, t);
        if (!e.hasOwnProperty(t) && typeof l < "u" && typeof l.get == "function" && typeof l.set == "function") {
            var h = l.get,
                m = l.set;
            return Object.defineProperty(e, t, {
                configurable: !0,
                get: function () {
                    return h.call(this)
                },
                set: function (N) {
                    a = "" + N, m.call(this, N)
                }
            }), Object.defineProperty(e, t, {
                enumerable: l.enumerable
            }), {
                getValue: function () {
                    return a
                },
                setValue: function (N) {
                    a = "" + N
                },
                stopTracking: function () {
                    e._valueTracker = null, delete e[t]
                }
            }
        }
    }

    function to(e) {
        if (!e._valueTracker) {
            var t = Ol(e) ? "checked" : "value";
            e._valueTracker = eo(e, t, "" + e[t])
        }
    }

    function ur(e) {
        if (!e) return !1;
        var t = e._valueTracker;
        if (!t) return !0;
        var a = t.getValue(),
            l = "";
        return e && (l = Ol(e) ? e.checked ? "true" : "false" : e.value), e = l, e !== a ? (t.setValue(e), !0) : !1
    }

    function Zt(e) {
        if (e = e || (typeof document < "u" ? document : void 0), typeof e > "u") return null;
        try {
            return e.activeElement || e.body
        } catch {
            return e.body
        }
    }
    var Ti = /[\n"\\]/g;

    function en(e) {
        return e.replace(Ti, function (t) {
            return "\\" + t.charCodeAt(0).toString(16) + " "
        })
    }

    function qr(e, t, a, l, h, m, N, j) {
        e.name = "", N != null && typeof N != "function" && typeof N != "symbol" && typeof N != "boolean" ? e.type = N : e.removeAttribute("type"), t != null ? N === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + $a(t)) : e.value !== "" + $a(t) && (e.value = "" + $a(t)) : N !== "submit" && N !== "reset" || e.removeAttribute("value"), t != null ? $r(e, N, $a(t)) : a != null ? $r(e, N, $a(a)) : l != null && e.removeAttribute("value"), h == null && m != null && (e.defaultChecked = !!m), h != null && (e.checked = h && typeof h != "function" && typeof h != "symbol"), j != null && typeof j != "function" && typeof j != "symbol" && typeof j != "boolean" ? e.name = "" + $a(j) : e.removeAttribute("name")
    }

    function zl(e, t, a, l, h, m, N, j) {
        if (m != null && typeof m != "function" && typeof m != "symbol" && typeof m != "boolean" && (e.type = m), t != null || a != null) {
            if (!(m !== "submit" && m !== "reset" || t != null)) {
                to(e);
                return
            }
            a = a != null ? "" + $a(a) : "", t = t != null ? "" + $a(t) : a, j || t === e.value || (e.value = t), e.defaultValue = t
        }
        l = l ?? h, l = typeof l != "function" && typeof l != "symbol" && !!l, e.checked = j ? e.checked : !!l, e.defaultChecked = !!l, N != null && typeof N != "function" && typeof N != "symbol" && typeof N != "boolean" && (e.name = N), to(e)
    }

    function $r(e, t, a) {
        t === "number" && Zt(e.ownerDocument) === e || e.defaultValue === "" + a || (e.defaultValue = "" + a)
    }

    function ii(e, t, a, l) {
        if (e = e.options, t) {
            t = {};
            for (var h = 0; h < a.length; h++) t["$" + a[h]] = !0;
            for (a = 0; a < e.length; a++) h = t.hasOwnProperty("$" + e[a].value), e[a].selected !== h && (e[a].selected = h), h && l && (e[a].defaultSelected = !0)
        } else {
            for (a = "" + $a(a), t = null, h = 0; h < e.length; h++) {
                if (e[h].value === a) {
                    e[h].selected = !0, l && (e[h].defaultSelected = !0);
                    return
                }
                t !== null || e[h].disabled || (t = e[h])
            }
            t !== null && (t.selected = !0)
        }
    }

    function jl(e, t, a) {
        if (t != null && (t = "" + $a(t), t !== e.value && (e.value = t), a == null)) {
            e.defaultValue !== t && (e.defaultValue = t);
            return
        }
        e.defaultValue = a != null ? "" + $a(a) : ""
    }

    function ao(e, t, a, l) {
        if (t == null) {
            if (l != null) {
                if (a != null) throw Error(d(92));
                if (Ee(l)) {
                    if (1 < l.length) throw Error(d(93));
                    l = l[0]
                }
                a = l
            }
            a == null && (a = ""), t = a
        }
        a = $a(t), e.defaultValue = a, l = e.textContent, l === a && l !== "" && l !== null && (e.value = l), to(e)
    }

    function dr(e, t) {
        if (t) {
            var a = e.firstChild;
            if (a && a === e.lastChild && a.nodeType === 3) {
                a.nodeValue = t;
                return
            }
        }
        e.textContent = t
    }
    var Ei = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));

    function es(e, t, a) {
        var l = t.indexOf("--") === 0;
        a == null || typeof a == "boolean" || a === "" ? l ? e.setProperty(t, "") : t === "float" ? e.cssFloat = "" : e[t] = "" : l ? e.setProperty(t, a) : typeof a != "number" || a === 0 || Ei.has(t) ? t === "float" ? e.cssFloat = a : e[t] = ("" + a).trim() : e[t] = a + "px"
    }

    function Wo(e, t, a) {
        if (t != null && typeof t != "object") throw Error(d(62));
        if (e = e.style, a != null) {
            for (var l in a) !a.hasOwnProperty(l) || t != null && t.hasOwnProperty(l) || (l.indexOf("--") === 0 ? e.setProperty(l, "") : l === "float" ? e.cssFloat = "" : e[l] = "");
            for (var h in t) l = t[h], t.hasOwnProperty(h) && a[h] !== l && es(e, h, l)
        } else
            for (var m in t) t.hasOwnProperty(m) && es(e, m, t[m])
    }

    function no(e) {
        if (e.indexOf("-") === -1) return !1;
        switch (e) {
            case "annotation-xml":
            case "color-profile":
            case "font-face":
            case "font-face-src":
            case "font-face-uri":
            case "font-face-format":
            case "font-face-name":
            case "missing-glyph":
                return !1;
            default:
                return !0
        }
    }
    var Du = new Map([
        ["acceptCharset", "accept-charset"],
        ["htmlFor", "for"],
        ["httpEquiv", "http-equiv"],
        ["crossOrigin", "crossorigin"],
        ["accentHeight", "accent-height"],
        ["alignmentBaseline", "alignment-baseline"],
        ["arabicForm", "arabic-form"],
        ["baselineShift", "baseline-shift"],
        ["capHeight", "cap-height"],
        ["clipPath", "clip-path"],
        ["clipRule", "clip-rule"],
        ["colorInterpolation", "color-interpolation"],
        ["colorInterpolationFilters", "color-interpolation-filters"],
        ["colorProfile", "color-profile"],
        ["colorRendering", "color-rendering"],
        ["dominantBaseline", "dominant-baseline"],
        ["enableBackground", "enable-background"],
        ["fillOpacity", "fill-opacity"],
        ["fillRule", "fill-rule"],
        ["floodColor", "flood-color"],
        ["floodOpacity", "flood-opacity"],
        ["fontFamily", "font-family"],
        ["fontSize", "font-size"],
        ["fontSizeAdjust", "font-size-adjust"],
        ["fontStretch", "font-stretch"],
        ["fontStyle", "font-style"],
        ["fontVariant", "font-variant"],
        ["fontWeight", "font-weight"],
        ["glyphName", "glyph-name"],
        ["glyphOrientationHorizontal", "glyph-orientation-horizontal"],
        ["glyphOrientationVertical", "glyph-orientation-vertical"],
        ["horizAdvX", "horiz-adv-x"],
        ["horizOriginX", "horiz-origin-x"],
        ["imageRendering", "image-rendering"],
        ["letterSpacing", "letter-spacing"],
        ["lightingColor", "lighting-color"],
        ["markerEnd", "marker-end"],
        ["markerMid", "marker-mid"],
        ["markerStart", "marker-start"],
        ["overlinePosition", "overline-position"],
        ["overlineThickness", "overline-thickness"],
        ["paintOrder", "paint-order"],
        ["panose-1", "panose-1"],
        ["pointerEvents", "pointer-events"],
        ["renderingIntent", "rendering-intent"],
        ["shapeRendering", "shape-rendering"],
        ["stopColor", "stop-color"],
        ["stopOpacity", "stop-opacity"],
        ["strikethroughPosition", "strikethrough-position"],
        ["strikethroughThickness", "strikethrough-thickness"],
        ["strokeDasharray", "stroke-dasharray"],
        ["strokeDashoffset", "stroke-dashoffset"],
        ["strokeLinecap", "stroke-linecap"],
        ["strokeLinejoin", "stroke-linejoin"],
        ["strokeMiterlimit", "stroke-miterlimit"],
        ["strokeOpacity", "stroke-opacity"],
        ["strokeWidth", "stroke-width"],
        ["textAnchor", "text-anchor"],
        ["textDecoration", "text-decoration"],
        ["textRendering", "text-rendering"],
        ["transformOrigin", "transform-origin"],
        ["underlinePosition", "underline-position"],
        ["underlineThickness", "underline-thickness"],
        ["unicodeBidi", "unicode-bidi"],
        ["unicodeRange", "unicode-range"],
        ["unitsPerEm", "units-per-em"],
        ["vAlphabetic", "v-alphabetic"],
        ["vHanging", "v-hanging"],
        ["vIdeographic", "v-ideographic"],
        ["vMathematical", "v-mathematical"],
        ["vectorEffect", "vector-effect"],
        ["vertAdvY", "vert-adv-y"],
        ["vertOriginX", "vert-origin-x"],
        ["vertOriginY", "vert-origin-y"],
        ["wordSpacing", "word-spacing"],
        ["writingMode", "writing-mode"],
        ["xmlnsXlink", "xmlns:xlink"],
        ["xHeight", "x-height"]
    ]),
        tn = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;

    function Ga(e) {
        return tn.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e
    }

    function Dl() { }
    var fr = null;

    function hr(e) {
        return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e
    }
    var gr = null,
        Mi = null;

    function ul(e) {
        var t = cr(e);
        if (t && (e = t.stateNode)) {
            var a = e[qa] || null;
            e: switch (e = t.stateNode, t.type) {
                case "input":
                    if (qr(e, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name), t = a.name, a.type === "radio" && t != null) {
                        for (a = e; a.parentNode;) a = a.parentNode;
                        for (a = a.querySelectorAll('input[name="' + en("" + t) + '"][type="radio"]'), t = 0; t < a.length; t++) {
                            var l = a[t];
                            if (l !== e && l.form === e.form) {
                                var h = l[qa] || null;
                                if (!h) throw Error(d(90));
                                qr(l, h.value, h.defaultValue, h.defaultValue, h.checked, h.defaultChecked, h.type, h.name)
                            }
                        }
                        for (t = 0; t < a.length; t++) l = a[t], l.form === e.form && ur(l)
                    }
                    break e;
                case "textarea":
                    jl(e, a.value, a.defaultValue);
                    break e;
                case "select":
                    t = a.value, t != null && ii(e, !!a.multiple, t, !1)
            }
        }
    }
    var ts = !1;

    function Xs(e, t, a) {
        if (ts) return e(t, a);
        ts = !0;
        try {
            var l = e(t);
            return l
        } finally {
            if (ts = !1, (gr !== null || Mi !== null) && (lf(), gr && (t = gr, e = Mi, Mi = gr = null, ul(t), e)))
                for (t = 0; t < e.length; t++) ul(e[t])
        }
    }

    function Ai(e, t) {
        var a = e.stateNode;
        if (a === null) return null;
        var l = a[qa] || null;
        if (l === null) return null;
        a = l[t];
        e: switch (t) {
            case "onClick":
            case "onClickCapture":
            case "onDoubleClick":
            case "onDoubleClickCapture":
            case "onMouseDown":
            case "onMouseDownCapture":
            case "onMouseMove":
            case "onMouseMoveCapture":
            case "onMouseUp":
            case "onMouseUpCapture":
            case "onMouseEnter":
                (l = !l.disabled) || (e = e.type, l = !(e === "button" || e === "input" || e === "select" || e === "textarea")), e = !l;
                break e;
            default:
                e = !1
        }
        if (e) return null;
        if (a && typeof a != "function") throw Error(d(231, t, typeof a));
        return a
    }
    var Un = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"),
        wt = !1;
    if (Un) try {
        var kl = {};
        Object.defineProperty(kl, "passive", {
            get: function () {
                wt = !0
            }
        }), window.addEventListener("test", kl, kl), window.removeEventListener("test", kl, kl)
    } catch {
        wt = !1
    }
    var Qn = null,
        Ri = null,
        ri = null;

    function mr() {
        if (ri) return ri;
        var e, t = Ri,
            a = t.length,
            l, h = "value" in Qn ? Qn.value : Qn.textContent,
            m = h.length;
        for (e = 0; e < a && t[e] === h[e]; e++);
        var N = a - e;
        for (l = 1; l <= N && t[a - l] === h[m - l]; l++);
        return ri = h.slice(e, 1 < l ? 1 - l : void 0)
    }

    function _i(e) {
        var t = e.keyCode;
        return "charCode" in e ? (e = e.charCode, e === 0 && t === 13 && (e = 13)) : e = t, e === 10 && (e = 13), 32 <= e || e === 13 ? e : 0
    }

    function Ll() {
        return !0
    }

    function Ul() {
        return !1
    }

    function _a(e) {
        function t(a, l, h, m, N) {
            this._reactName = a, this._targetInst = h, this.type = l, this.nativeEvent = m, this.target = N, this.currentTarget = null;
            for (var j in e) e.hasOwnProperty(j) && (a = e[j], this[j] = a ? a(m) : m[j]);
            return this.isDefaultPrevented = (m.defaultPrevented != null ? m.defaultPrevented : m.returnValue === !1) ? Ll : Ul, this.isPropagationStopped = Ul, this
        }
        return A(t.prototype, {
            preventDefault: function () {
                this.defaultPrevented = !0;
                var a = this.nativeEvent;
                a && (a.preventDefault ? a.preventDefault() : typeof a.returnValue != "unknown" && (a.returnValue = !1), this.isDefaultPrevented = Ll)
            },
            stopPropagation: function () {
                var a = this.nativeEvent;
                a && (a.stopPropagation ? a.stopPropagation() : typeof a.cancelBubble != "unknown" && (a.cancelBubble = !0), this.isPropagationStopped = Ll)
            },
            persist: function () { },
            isPersistent: Ll
        }), t
    }
    var an = {
        eventPhase: 0,
        bubbles: 0,
        cancelable: 0,
        timeStamp: function (e) {
            return e.timeStamp || Date.now()
        },
        defaultPrevented: 0,
        isTrusted: 0
    },
        as = _a(an),
        Oi = A({}, an, {
            view: 0,
            detail: 0
        }),
        vr = _a(Oi),
        zi, Vs, br, ns = A({}, Oi, {
            screenX: 0,
            screenY: 0,
            clientX: 0,
            clientY: 0,
            pageX: 0,
            pageY: 0,
            ctrlKey: 0,
            shiftKey: 0,
            altKey: 0,
            metaKey: 0,
            getModifierState: Ps,
            button: 0,
            buttons: 0,
            relatedTarget: function (e) {
                return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget
            },
            movementX: function (e) {
                return "movementX" in e ? e.movementX : (e !== br && (br && e.type === "mousemove" ? (zi = e.screenX - br.screenX, Vs = e.screenY - br.screenY) : Vs = zi = 0, br = e), zi)
            },
            movementY: function (e) {
                return "movementY" in e ? e.movementY : Vs
            }
        }),
        Jo = _a(ns),
        ku = A({}, ns, {
            dataTransfer: 0
        }),
        Lu = _a(ku),
        Uu = A({}, Oi, {
            relatedTarget: 0
        }),
        ls = _a(Uu),
        Ko = A({}, an, {
            animationName: 0,
            elapsedTime: 0,
            pseudoElement: 0
        }),
        Bu = _a(Ko),
        qo = A({}, an, {
            clipboardData: function (e) {
                return "clipboardData" in e ? e.clipboardData : window.clipboardData
            }
        }),
        Is = _a(qo),
        Hu = A({}, an, {
            data: 0
        }),
        Zs = _a(Hu),
        $o = {
            Esc: "Escape",
            Spacebar: " ",
            Left: "ArrowLeft",
            Up: "ArrowUp",
            Right: "ArrowRight",
            Down: "ArrowDown",
            Del: "Delete",
            Win: "OS",
            Menu: "ContextMenu",
            Apps: "ContextMenu",
            Scroll: "ScrollLock",
            MozPrintableKey: "Unidentified"
        },
        xr = {
            8: "Backspace",
            9: "Tab",
            12: "Clear",
            13: "Enter",
            16: "Shift",
            17: "Control",
            18: "Alt",
            19: "Pause",
            20: "CapsLock",
            27: "Escape",
            32: " ",
            33: "PageUp",
            34: "PageDown",
            35: "End",
            36: "Home",
            37: "ArrowLeft",
            38: "ArrowUp",
            39: "ArrowRight",
            40: "ArrowDown",
            45: "Insert",
            46: "Delete",
            112: "F1",
            113: "F2",
            114: "F3",
            115: "F4",
            116: "F5",
            117: "F6",
            118: "F7",
            119: "F8",
            120: "F9",
            121: "F10",
            122: "F11",
            123: "F12",
            144: "NumLock",
            145: "ScrollLock",
            224: "Meta"
        },
        lo = {
            Alt: "altKey",
            Control: "ctrlKey",
            Meta: "metaKey",
            Shift: "shiftKey"
        };

    function Qs(e) {
        var t = this.nativeEvent;
        return t.getModifierState ? t.getModifierState(e) : (e = lo[e]) ? !!t[e] : !1
    }

    function Ps() {
        return Qs
    }
    var pr = A({}, Oi, {
        key: function (e) {
            if (e.key) {
                var t = $o[e.key] || e.key;
                if (t !== "Unidentified") return t
            }
            return e.type === "keypress" ? (e = _i(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? xr[e.keyCode] || "Unidentified" : ""
        },
        code: 0,
        location: 0,
        ctrlKey: 0,
        shiftKey: 0,
        altKey: 0,
        metaKey: 0,
        repeat: 0,
        locale: 0,
        getModifierState: Ps,
        charCode: function (e) {
            return e.type === "keypress" ? _i(e) : 0
        },
        keyCode: function (e) {
            return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0
        },
        which: function (e) {
            return e.type === "keypress" ? _i(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0
        }
    }),
        Fu = _a(pr),
        Gu = A({}, ns, {
            pointerId: 0,
            width: 0,
            height: 0,
            pressure: 0,
            tangentialPressure: 0,
            tiltX: 0,
            tiltY: 0,
            twist: 0,
            pointerType: 0,
            isPrimary: 0
        }),
        eu = _a(Gu),
        Oa = A({}, Oi, {
            touches: 0,
            targetTouches: 0,
            changedTouches: 0,
            altKey: 0,
            metaKey: 0,
            ctrlKey: 0,
            shiftKey: 0,
            getModifierState: Ps
        }),
        yr = _a(Oa),
        io = A({}, an, {
            propertyName: 0,
            elapsedTime: 0,
            pseudoElement: 0
        }),
        Ws = _a(io),
        tu = A({}, ns, {
            deltaX: function (e) {
                return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0
            },
            deltaY: function (e) {
                return "deltaY" in e ? e.deltaY : "wheelDeltaY" in e ? -e.wheelDeltaY : "wheelDelta" in e ? -e.wheelDelta : 0
            },
            deltaZ: 0,
            deltaMode: 0
        }),
        ji = _a(tu),
        si = A({}, an, {
            newState: 0,
            oldState: 0
        }),
        is = _a(si),
        ci = [9, 13, 27, 32],
        Ca = Un && "CompositionEvent" in window,
        dl = null;
    Un && "documentMode" in document && (dl = document.documentMode);
    var Ot = Un && "TextEvent" in window && !dl,
        Pn = Un && (!Ca || dl && 8 < dl && 11 >= dl),
        Js = " ",
        Sr = !1;

    function ro(e, t) {
        switch (e) {
            case "keyup":
                return ci.indexOf(t.keyCode) !== -1;
            case "keydown":
                return t.keyCode !== 229;
            case "keypress":
            case "mousedown":
            case "focusout":
                return !0;
            default:
                return !1
        }
    }

    function Ks(e) {
        return e = e.detail, typeof e == "object" && "data" in e ? e.data : null
    }
    var Di = !1;

    function qs(e, t) {
        switch (e) {
            case "compositionend":
                return Ks(t);
            case "keypress":
                return t.which !== 32 ? null : (Sr = !0, Js);
            case "textInput":
                return e = t.data, e === Js && Sr ? null : e;
            default:
                return null
        }
    }

    function $s(e, t) {
        if (Di) return e === "compositionend" || !Ca && ro(e, t) ? (e = mr(), ri = Ri = Qn = null, Di = !1, e) : null;
        switch (e) {
            case "paste":
                return null;
            case "keypress":
                if (!(t.ctrlKey || t.altKey || t.metaKey) || t.ctrlKey && t.altKey) {
                    if (t.char && 1 < t.char.length) return t.char;
                    if (t.which) return String.fromCharCode(t.which)
                }
                return null;
            case "compositionend":
                return Pn && t.locale !== "ko" ? null : t.data;
            default:
                return null
        }
    }
    var Bn = {
        color: !0,
        date: !0,
        datetime: !0,
        "datetime-local": !0,
        email: !0,
        month: !0,
        number: !0,
        password: !0,
        range: !0,
        search: !0,
        tel: !0,
        text: !0,
        time: !0,
        url: !0,
        week: !0
    };

    function ec(e) {
        var t = e && e.nodeName && e.nodeName.toLowerCase();
        return t === "input" ? !!Bn[e.type] : t === "textarea"
    }

    function rs(e, t, a, l) {
        gr ? Mi ? Mi.push(l) : Mi = [l] : gr = l, t = ff(t, "onChange"), 0 < t.length && (a = new as("onChange", "change", null, a, l), e.push({
            event: a,
            listeners: t
        }))
    }
    var Bl = null,
        oi = null;

    function tc(e) {
        Bm(e, 0)
    }

    function ki(e) {
        var t = Ci(e);
        if (ur(t)) return e
    }

    function ss(e, t) {
        if (e === "change") return t
    }
    var ba = !1;
    if (Un) {
        var so;
        if (Un) {
            var Hl = "oninput" in document;
            if (!Hl) {
                var ac = document.createElement("div");
                ac.setAttribute("oninput", "return;"), Hl = typeof ac.oninput == "function"
            }
            so = Hl
        } else so = !1;
        ba = so && (!document.documentMode || 9 < document.documentMode)
    }

    function nc() {
        Bl && (Bl.detachEvent("onpropertychange", lc), oi = Bl = null)
    }

    function lc(e) {
        if (e.propertyName === "value" && ki(oi)) {
            var t = [];
            rs(t, oi, e, hr(e)), Xs(tc, t)
        }
    }

    function ic(e, t, a) {
        e === "focusin" ? (nc(), Bl = t, oi = a, Bl.attachEvent("onpropertychange", lc)) : e === "focusout" && nc()
    }

    function cs(e) {
        if (e === "selectionchange" || e === "keyup" || e === "keydown") return ki(oi)
    }

    function ui(e, t) {
        if (e === "click") return ki(t)
    }

    function au(e, t) {
        if (e === "input" || e === "change") return ki(t)
    }

    function Li(e, t) {
        return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t
    }
    var za = typeof Object.is == "function" ? Object.is : Li;

    function Wn(e, t) {
        if (za(e, t)) return !0;
        if (typeof e != "object" || e === null || typeof t != "object" || t === null) return !1;
        var a = Object.keys(e),
            l = Object.keys(t);
        if (a.length !== l.length) return !1;
        for (l = 0; l < a.length; l++) {
            var h = a[l];
            if (!ma.call(t, h) || !za(e[h], t[h])) return !1
        }
        return !0
    }

    function Ui(e) {
        for (; e && e.firstChild;) e = e.firstChild;
        return e
    }

    function di(e, t) {
        var a = Ui(e);
        e = 0;
        for (var l; a;) {
            if (a.nodeType === 3) {
                if (l = e + a.textContent.length, e <= t && l >= t) return {
                    node: a,
                    offset: t - e
                };
                e = l
            }
            e: {
                for (; a;) {
                    if (a.nextSibling) {
                        a = a.nextSibling;
                        break e
                    }
                    a = a.parentNode
                }
                a = void 0
            }
            a = Ui(a)
        }
    }

    function fi(e, t) {
        return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? fi(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1
    }

    function rc(e) {
        e = e != null && e.ownerDocument != null && e.ownerDocument.defaultView != null ? e.ownerDocument.defaultView : window;
        for (var t = Zt(e.document); t instanceof e.HTMLIFrameElement;) {
            try {
                var a = typeof t.contentWindow.location.href == "string"
            } catch {
                a = !1
            }
            if (a) e = t.contentWindow;
            else break;
            t = Zt(e.document)
        }
        return t
    }

    function sc(e) {
        var t = e && e.nodeName && e.nodeName.toLowerCase();
        return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true")
    }
    var Bi = Un && "documentMode" in document && 11 >= document.documentMode,
        fl = null,
        wr = null,
        Jn = null,
        Cr = !1;

    function co(e, t, a) {
        var l = a.window === a ? a.document : a.nodeType === 9 ? a : a.ownerDocument;
        Cr || fl == null || fl !== Zt(l) || (l = fl, "selectionStart" in l && sc(l) ? l = {
            start: l.selectionStart,
            end: l.selectionEnd
        } : (l = (l.ownerDocument && l.ownerDocument.defaultView || window).getSelection(), l = {
            anchorNode: l.anchorNode,
            anchorOffset: l.anchorOffset,
            focusNode: l.focusNode,
            focusOffset: l.focusOffset
        }), Jn && Wn(Jn, l) || (Jn = l, l = ff(wr, "onSelect"), 0 < l.length && (t = new as("onSelect", "select", null, t, a), e.push({
            event: t,
            listeners: l
        }), t.target = fl)))
    }

    function Ya(e, t) {
        var a = {};
        return a[e.toLowerCase()] = t.toLowerCase(), a["Webkit" + e] = "webkit" + t, a["Moz" + e] = "moz" + t, a
    }
    var Fl = {
        animationend: Ya("Animation", "AnimationEnd"),
        animationiteration: Ya("Animation", "AnimationIteration"),
        animationstart: Ya("Animation", "AnimationStart"),
        transitionrun: Ya("Transition", "TransitionRun"),
        transitionstart: Ya("Transition", "TransitionStart"),
        transitioncancel: Ya("Transition", "TransitionCancel"),
        transitionend: Ya("Transition", "TransitionEnd")
    },
        os = {},
        c = {};
    Un && (c = document.createElement("div").style, "AnimationEvent" in window || (delete Fl.animationend.animation, delete Fl.animationiteration.animation, delete Fl.animationstart.animation), "TransitionEvent" in window || delete Fl.transitionend.transition);

    function f(e) {
        if (os[e]) return os[e];
        if (!Fl[e]) return e;
        var t = Fl[e],
            a;
        for (a in t)
            if (t.hasOwnProperty(a) && a in c) return os[e] = t[a];
        return e
    }
    var b = f("animationend"),
        S = f("animationiteration"),
        E = f("animationstart"),
        D = f("transitionrun"),
        U = f("transitionstart"),
        ee = f("transitioncancel"),
        Y = f("transitionend"),
        te = new Map,
        ue = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
    ue.push("scrollEnd");

    function ie(e, t) {
        te.set(e, t), Ut(t, [e])
    }
    var be = typeof reportError == "function" ? reportError : function (e) {
        if (typeof window == "object" && typeof window.ErrorEvent == "function") {
            var t = new window.ErrorEvent("error", {
                bubbles: !0,
                cancelable: !0,
                message: typeof e == "object" && e !== null && typeof e.message == "string" ? String(e.message) : String(e),
                error: e
            });
            if (!window.dispatchEvent(t)) return
        } else if (typeof process == "object" && typeof process.emit == "function") {
            process.emit("uncaughtException", e);
            return
        }
        console.error(e)
    },
        we = [],
        Pe = 0,
        He = 0;

    function Ue() {
        for (var e = Pe, t = He = Pe = 0; t < e;) {
            var a = we[t];
            we[t++] = null;
            var l = we[t];
            we[t++] = null;
            var h = we[t];
            we[t++] = null;
            var m = we[t];
            if (we[t++] = null, l !== null && h !== null) {
                var N = l.pending;
                N === null ? h.next = h : (h.next = N.next, N.next = h), l.pending = h
            }
            m !== 0 && Gt(a, h, m)
        }
    }

    function Le(e, t, a, l) {
        we[Pe++] = e, we[Pe++] = t, we[Pe++] = a, we[Pe++] = l, He |= l, e.lanes |= l, e = e.alternate, e !== null && (e.lanes |= l)
    }

    function Ve(e, t, a, l) {
        return Le(e, t, a, l), qe(e)
    }

    function xt(e, t) {
        return Le(e, null, null, t), qe(e)
    }

    function Gt(e, t, a) {
        e.lanes |= a;
        var l = e.alternate;
        l !== null && (l.lanes |= a);
        for (var h = !1, m = e.return; m !== null;) m.childLanes |= a, l = m.alternate, l !== null && (l.childLanes |= a), m.tag === 22 && (e = m.stateNode, e === null || e._visibility & 1 || (h = !0)), e = m, m = m.return;
        return e.tag === 3 ? (m = e.stateNode, h && t !== null && (h = 31 - Fa(a), e = m.hiddenUpdates, l = e[h], l === null ? e[h] = [t] : l.push(t), t.lane = a | 536870912), m) : null
    }

    function qe(e) {
        if (50 < vd) throw vd = 0, xh = null, Error(d(185));
        for (var t = e.return; t !== null;) e = t, t = e.return;
        return e.tag === 3 ? e.stateNode : null
    }
    var $e = {};

    function lt(e, t, a, l) {
        this.tag = e, this.key = a, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = l, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null
    }

    function zt(e, t, a, l) {
        return new lt(e, t, a, l)
    }

    function tt(e) {
        return e = e.prototype, !(!e || !e.isReactComponent)
    }

    function aa(e, t) {
        var a = e.alternate;
        return a === null ? (a = zt(e.tag, t, e.key, e.mode), a.elementType = e.elementType, a.type = e.type, a.stateNode = e.stateNode, a.alternate = e, e.alternate = a) : (a.pendingProps = t, a.type = e.type, a.flags = 0, a.subtreeFlags = 0, a.deletions = null), a.flags = e.flags & 65011712, a.childLanes = e.childLanes, a.lanes = e.lanes, a.child = e.child, a.memoizedProps = e.memoizedProps, a.memoizedState = e.memoizedState, a.updateQueue = e.updateQueue, t = e.dependencies, a.dependencies = t === null ? null : {
            lanes: t.lanes,
            firstContext: t.firstContext
        }, a.sibling = e.sibling, a.index = e.index, a.ref = e.ref, a.refCleanup = e.refCleanup, a
    }

    function pt(e, t) {
        e.flags &= 65011714;
        var a = e.alternate;
        return a === null ? (e.childLanes = 0, e.lanes = t, e.child = null, e.subtreeFlags = 0, e.memoizedProps = null, e.memoizedState = null, e.updateQueue = null, e.dependencies = null, e.stateNode = null) : (e.childLanes = a.childLanes, e.lanes = a.lanes, e.child = a.child, e.subtreeFlags = 0, e.deletions = null, e.memoizedProps = a.memoizedProps, e.memoizedState = a.memoizedState, e.updateQueue = a.updateQueue, e.type = a.type, t = a.dependencies, e.dependencies = t === null ? null : {
            lanes: t.lanes,
            firstContext: t.firstContext
        }), e
    }

    function Qt(e, t, a, l, h, m) {
        var N = 0;
        if (l = e, typeof e == "function") tt(e) && (N = 1);
        else if (typeof e == "string") N = Ib(e, a, gt.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
        else e: switch (e) {
            case De:
                return e = zt(31, a, t, h), e.elementType = De, e.lanes = m, e;
            case G:
                return Bt(a.children, h, m, t);
            case Z:
                N = 8, h |= 24;
                break;
            case ce:
                return e = zt(12, a, t, h | 2), e.elementType = ce, e.lanes = m, e;
            case Se:
                return e = zt(13, a, t, h), e.elementType = Se, e.lanes = m, e;
            case xe:
                return e = zt(19, a, t, h), e.elementType = xe, e.lanes = m, e;
            default:
                if (typeof e == "object" && e !== null) switch (e.$$typeof) {
                    case ve:
                        N = 10;
                        break e;
                    case re:
                        N = 9;
                        break e;
                    case he:
                        N = 11;
                        break e;
                    case ft:
                        N = 14;
                        break e;
                    case _e:
                        N = 16, l = null;
                        break e
                }
                N = 29, a = Error(d(130, e === null ? "null" : typeof e, "")), l = null
        }
        return t = zt(N, a, t, h), t.elementType = e, t.type = l, t.lanes = m, t
    }

    function Bt(e, t, a, l) {
        return e = zt(7, e, l, t), e.lanes = a, e
    }

    function jt(e, t, a) {
        return e = zt(6, e, null, t), e.lanes = a, e
    }

    function Xa(e) {
        var t = zt(18, null, null, 0);
        return t.stateNode = e, t
    }

    function Gl(e, t, a) {
        return t = zt(4, e.children !== null ? e.children : [], e.key, t), t.lanes = a, t.stateNode = {
            containerInfo: e.containerInfo,
            pendingChildren: null,
            implementation: e.implementation
        }, t
    }
    var xn = new WeakMap;

    function Va(e, t) {
        if (typeof e == "object" && e !== null) {
            var a = xn.get(e);
            return a !== void 0 ? a : (t = {
                value: e,
                source: t,
                stack: Tl(t)
            }, xn.set(e, t), t)
        }
        return {
            value: e,
            source: t,
            stack: Tl(t)
        }
    }
    var Kn = [],
        na = 0,
        nn = null,
        ln = 0,
        Jt = [],
        ua = 0,
        rn = null,
        At = 1,
        Ia = "";

    function An(e, t) {
        Kn[na++] = ln, Kn[na++] = nn, nn = e, ln = t
    }

    function cc(e, t, a) {
        Jt[ua++] = At, Jt[ua++] = Ia, Jt[ua++] = rn, rn = e;
        var l = At;
        e = Ia;
        var h = 32 - Fa(l) - 1;
        l &= ~(1 << h), a += 1;
        var m = 32 - Fa(t) + h;
        if (30 < m) {
            var N = h - h % 5;
            m = (l & (1 << N) - 1).toString(32), l >>= N, h -= N, At = 1 << 32 - Fa(t) + h | a << h | l, Ia = m + e
        } else At = 1 << m | a << h | l, Ia = e
    }

    function us(e) {
        e.return !== null && (An(e, 1), cc(e, 1, 0))
    }

    function oc(e) {
        for (; e === nn;) nn = Kn[--na], Kn[na] = null, ln = Kn[--na], Kn[na] = null;
        for (; e === rn;) rn = Jt[--ua], Jt[ua] = null, Ia = Jt[--ua], Jt[ua] = null, At = Jt[--ua], Jt[ua] = null
    }

    function uc(e, t) {
        Jt[ua++] = At, Jt[ua++] = Ia, Jt[ua++] = rn, At = t.id, Ia = t.overflow, rn = e
    }
    var la = null,
        Dt = null,
        Qe = !1,
        ja = null,
        Na = !1,
        Nr = Error(d(519));

    function sn(e) {
        var t = Error(d(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", ""));
        throw Yl(Va(t, e)), Nr
    }

    function dc(e) {
        var t = e.stateNode,
            a = e.type,
            l = e.memoizedProps;
        switch (t[Sa] = e, t[qa] = l, a) {
            case "dialog":
                st("cancel", t), st("close", t);
                break;
            case "iframe":
            case "object":
            case "embed":
                st("load", t);
                break;
            case "video":
            case "audio":
                for (a = 0; a < xd.length; a++) st(xd[a], t);
                break;
            case "source":
                st("error", t);
                break;
            case "img":
            case "image":
            case "link":
                st("error", t), st("load", t);
                break;
            case "details":
                st("toggle", t);
                break;
            case "input":
                st("invalid", t), zl(t, l.value, l.defaultValue, l.checked, l.defaultChecked, l.type, l.name, !0);
                break;
            case "select":
                st("invalid", t);
                break;
            case "textarea":
                st("invalid", t), ao(t, l.value, l.defaultValue, l.children)
        }
        a = l.children, typeof a != "string" && typeof a != "number" && typeof a != "bigint" || t.textContent === "" + a || l.suppressHydrationWarning === !0 || Ym(t.textContent, a) ? (l.popover != null && (st("beforetoggle", t), st("toggle", t)), l.onScroll != null && st("scroll", t), l.onScrollEnd != null && st("scrollend", t), l.onClick != null && (t.onclick = Dl), t = !0) : t = !1, t || sn(e, !0)
    }

    function Rn(e) {
        for (la = e.return; la;) switch (la.tag) {
            case 5:
            case 31:
            case 13:
                Na = !1;
                return;
            case 27:
            case 3:
                Na = !0;
                return;
            default:
                la = la.return
        }
    }

    function hl(e) {
        if (e !== la) return !1;
        if (!Qe) return Rn(e), Qe = !0, !1;
        var t = e.tag,
            a;
        if ((a = t !== 3 && t !== 27) && ((a = t === 5) && (a = e.type, a = !(a !== "form" && a !== "button") || jh(e.type, e.memoizedProps)), a = !a), a && Dt && sn(e), Rn(e), t === 13) {
            if (e = e.memoizedState, e = e !== null ? e.dehydrated : null, !e) throw Error(d(317));
            Dt = Km(e)
        } else if (t === 31) {
            if (e = e.memoizedState, e = e !== null ? e.dehydrated : null, !e) throw Error(d(317));
            Dt = Km(e)
        } else t === 27 ? (t = Dt, Hc(e.type) ? (e = Bh, Bh = null, Dt = e) : Dt = t) : Dt = la ? bi(e.stateNode.nextSibling) : null;
        return !0
    }

    function Hn() {
        Dt = la = null, Qe = !1
    }

    function hi() {
        var e = ja;
        return e !== null && (Sl === null ? Sl = e : Sl.push.apply(Sl, e), ja = null), e
    }

    function Yl(e) {
        ja === null ? ja = [e] : ja.push(e)
    }
    var qn = ae(null),
        Xl = null,
        Rt = null;

    function cn(e, t, a) {
        nt(qn, t._currentValue), t._currentValue = a
    }

    function pn(e) {
        e._currentValue = qn.current, mt(qn)
    }

    function gl(e, t, a) {
        for (; e !== null;) {
            var l = e.alternate;
            if ((e.childLanes & t) !== t ? (e.childLanes |= t, l !== null && (l.childLanes |= t)) : l !== null && (l.childLanes & t) !== t && (l.childLanes |= t), e === a) break;
            e = e.return
        }
    }

    function Tr(e, t, a, l) {
        var h = e.child;
        for (h !== null && (h.return = e); h !== null;) {
            var m = h.dependencies;
            if (m !== null) {
                var N = h.child;
                m = m.firstContext;
                e: for (; m !== null;) {
                    var j = m;
                    m = h;
                    for (var F = 0; F < t.length; F++)
                        if (j.context === t[F]) {
                            m.lanes |= a, j = m.alternate, j !== null && (j.lanes |= a), gl(m.return, a, e), l || (N = null);
                            break e
                        } m = j.next
                }
            } else if (h.tag === 18) {
                if (N = h.return, N === null) throw Error(d(341));
                N.lanes |= a, m = N.alternate, m !== null && (m.lanes |= a), gl(N, a, e), N = null
            } else N = h.child;
            if (N !== null) N.return = h;
            else
                for (N = h; N !== null;) {
                    if (N === e) {
                        N = null;
                        break
                    }
                    if (h = N.sibling, h !== null) {
                        h.return = N.return, N = h;
                        break
                    }
                    N = N.return
                }
            h = N
        }
    }

    function Da(e, t, a, l) {
        e = null;
        for (var h = t, m = !1; h !== null;) {
            if (!m) {
                if ((h.flags & 524288) !== 0) m = !0;
                else if ((h.flags & 262144) !== 0) break
            }
            if (h.tag === 10) {
                var N = h.alternate;
                if (N === null) throw Error(d(387));
                if (N = N.memoizedProps, N !== null) {
                    var j = h.type;
                    za(h.pendingProps.value, N.value) || (e !== null ? e.push(j) : e = [j])
                }
            } else if (h === cl.current) {
                if (N = h.alternate, N === null) throw Error(d(387));
                N.memoizedState.memoizedState !== h.memoizedState.memoizedState && (e !== null ? e.push(Cd) : e = [Cd])
            }
            h = h.return
        }
        e !== null && Tr(t, e, a, l), t.flags |= 262144
    }

    function $n(e) {
        for (e = e.firstContext; e !== null;) {
            if (!za(e.context._currentValue, e.memoizedValue)) return !0;
            e = e.next
        }
        return !1
    }

    function _n(e) {
        Xl = e, Rt = null, e = e.dependencies, e !== null && (e.firstContext = null)
    }

    function Ct(e) {
        return Hi(Xl, e)
    }

    function da(e, t) {
        return Xl === null && _n(e), Hi(e, t)
    }

    function Hi(e, t) {
        var a = t._currentValue;
        if (t = {
            context: t,
            memoizedValue: a,
            next: null
        }, Rt === null) {
            if (e === null) throw Error(d(308));
            Rt = t, e.dependencies = {
                lanes: 0,
                firstContext: t
            }, e.flags |= 524288
        } else Rt = Rt.next = t;
        return a
    }
    var Za = typeof AbortController < "u" ? AbortController : function () {
        var e = [],
            t = this.signal = {
                aborted: !1,
                addEventListener: function (a, l) {
                    e.push(l)
                }
            };
        this.abort = function () {
            t.aborted = !0, e.forEach(function (a) {
                return a()
            })
        }
    },
        oo = n.unstable_scheduleCallback,
        ds = n.unstable_NormalPriority,
        Yt = {
            $$typeof: ve,
            Consumer: null,
            Provider: null,
            _currentValue: null,
            _currentValue2: null,
            _threadCount: 0
        };

    function fc() {
        return {
            controller: new Za,
            data: new Map,
            refCount: 0
        }
    }

    function Er(e) {
        e.refCount--, e.refCount === 0 && oo(ds, function () {
            e.controller.abort()
        })
    }
    var On = null,
        Vl = 0,
        zn = 0,
        Kt = null;

    function Mr(e, t) {
        if (On === null) {
            var a = On = [];
            Vl = 0, zn = Nh(), Kt = {
                status: "pending",
                value: void 0,
                then: function (l) {
                    a.push(l)
                }
            }
        }
        return Vl++, t.then(Fi, Fi), t
    }

    function Fi() {
        if (--Vl === 0 && On !== null) {
            Kt !== null && (Kt.status = "fulfilled");
            var e = On;
            On = null, zn = 0, Kt = null;
            for (var t = 0; t < e.length; t++)(0, e[t])()
        }
    }

    function hc(e, t) {
        var a = [],
            l = {
                status: "pending",
                value: null,
                reason: null,
                then: function (h) {
                    a.push(h)
                }
            };
        return e.then(function () {
            l.status = "fulfilled", l.value = t;
            for (var h = 0; h < a.length; h++)(0, a[h])(t)
        }, function (h) {
            for (l.status = "rejected", l.reason = h, h = 0; h < a.length; h++)(0, a[h])(void 0)
        }), l
    }
    var fs = B.S;
    B.S = function (e, t) {
        fm = gn(), typeof t == "object" && t !== null && typeof t.then == "function" && Mr(e, t), fs !== null && fs(e, t)
    };
    var Il = ae(null);

    function Ar() {
        var e = Il.current;
        return e !== null ? e : Pt.pooledCache
    }

    function Rr(e, t) {
        t === null ? nt(Il, Il.current) : nt(Il, t.pool)
    }

    function qt() {
        var e = Ar();
        return e === null ? null : {
            parent: Yt._currentValue,
            pool: e
        }
    }
    var Zl = Error(d(460)),
        gi = Error(d(474)),
        Ql = Error(d(542)),
        mi = {
            then: function () { }
        };

    function hs(e) {
        return e = e.status, e === "fulfilled" || e === "rejected"
    }

    function _r(e, t, a) {
        switch (a = e[a], a === void 0 ? e.push(t) : a !== t && (t.then(Dl, Dl), t = a), t.status) {
            case "fulfilled":
                return t.value;
            case "rejected":
                throw e = t.reason, gc(e), e;
            default:
                if (typeof t.status == "string") t.then(Dl, Dl);
                else {
                    if (e = Pt, e !== null && 100 < e.shellSuspendCounter) throw Error(d(482));
                    e = t, e.status = "pending", e.then(function (l) {
                        if (t.status === "pending") {
                            var h = t;
                            h.status = "fulfilled", h.value = l
                        }
                    }, function (l) {
                        if (t.status === "pending") {
                            var h = t;
                            h.status = "rejected", h.reason = l
                        }
                    })
                }
                switch (t.status) {
                    case "fulfilled":
                        return t.value;
                    case "rejected":
                        throw e = t.reason, gc(e), e
                }
                throw on = t, Zl
        }
    }

    function el(e) {
        try {
            var t = e._init;
            return t(e._payload)
        } catch (a) {
            throw a !== null && typeof a == "object" && typeof a.then == "function" ? (on = a, Zl) : a
        }
    }
    var on = null;

    function yn() {
        if (on === null) throw Error(d(459));
        var e = on;
        return on = null, e
    }

    function gc(e) {
        if (e === Zl || e === Ql) throw Error(d(483))
    }
    var jn = null,
        Gi = 0;

    function Fn(e) {
        var t = Gi;
        return Gi += 1, jn === null && (jn = []), _r(jn, e, t)
    }

    function tl(e, t) {
        t = t.props.ref, e.ref = t !== void 0 ? t : null
    }

    function Gn(e, t) {
        throw t.$$typeof === z ? Error(d(525)) : (e = Object.prototype.toString.call(t), Error(d(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)))
    }

    function Yi(e) {
        function t(Q, X) {
            if (e) {
                var J = Q.deletions;
                J === null ? (Q.deletions = [X], Q.flags |= 16) : J.push(X)
            }
        }

        function a(Q, X) {
            if (!e) return null;
            for (; X !== null;) t(Q, X), X = X.sibling;
            return null
        }

        function l(Q) {
            for (var X = new Map; Q !== null;) Q.key !== null ? X.set(Q.key, Q) : X.set(Q.index, Q), Q = Q.sibling;
            return X
        }

        function h(Q, X) {
            return Q = aa(Q, X), Q.index = 0, Q.sibling = null, Q
        }

        function m(Q, X, J) {
            return Q.index = J, e ? (J = Q.alternate, J !== null ? (J = J.index, J < X ? (Q.flags |= 67108866, X) : J) : (Q.flags |= 67108866, X)) : (Q.flags |= 1048576, X)
        }

        function N(Q) {
            return e && Q.alternate === null && (Q.flags |= 67108866), Q
        }

        function j(Q, X, J, oe) {
            return X === null || X.tag !== 6 ? (X = jt(J, Q.mode, oe), X.return = Q, X) : (X = h(X, J), X.return = Q, X)
        }

        function F(Q, X, J, oe) {
            var je = J.type;
            return je === G ? se(Q, X, J.props.children, oe, J.key) : X !== null && (X.elementType === je || typeof je == "object" && je !== null && je.$$typeof === _e && el(je) === X.type) ? (X = h(X, J.props), tl(X, J), X.return = Q, X) : (X = Qt(J.type, J.key, J.props, null, Q.mode, oe), tl(X, J), X.return = Q, X)
        }

        function K(Q, X, J, oe) {
            return X === null || X.tag !== 4 || X.stateNode.containerInfo !== J.containerInfo || X.stateNode.implementation !== J.implementation ? (X = Gl(J, Q.mode, oe), X.return = Q, X) : (X = h(X, J.children || []), X.return = Q, X)
        }

        function se(Q, X, J, oe, je) {
            return X === null || X.tag !== 7 ? (X = Bt(J, Q.mode, oe, je), X.return = Q, X) : (X = h(X, J), X.return = Q, X)
        }

        function de(Q, X, J) {
            if (typeof X == "string" && X !== "" || typeof X == "number" || typeof X == "bigint") return X = jt("" + X, Q.mode, J), X.return = Q, X;
            if (typeof X == "object" && X !== null) {
                switch (X.$$typeof) {
                    case O:
                        return J = Qt(X.type, X.key, X.props, null, Q.mode, J), tl(J, X), J.return = Q, J;
                    case L:
                        return X = Gl(X, Q.mode, J), X.return = Q, X;
                    case _e:
                        return X = el(X), de(Q, X, J)
                }
                if (Ee(X) || yt(X)) return X = Bt(X, Q.mode, J, null), X.return = Q, X;
                if (typeof X.then == "function") return de(Q, Fn(X), J);
                if (X.$$typeof === ve) return de(Q, da(Q, X), J);
                Gn(Q, X)
            }
            return null
        }

        function $(Q, X, J, oe) {
            var je = X !== null ? X.key : null;
            if (typeof J == "string" && J !== "" || typeof J == "number" || typeof J == "bigint") return je !== null ? null : j(Q, X, "" + J, oe);
            if (typeof J == "object" && J !== null) {
                switch (J.$$typeof) {
                    case O:
                        return J.key === je ? F(Q, X, J, oe) : null;
                    case L:
                        return J.key === je ? K(Q, X, J, oe) : null;
                    case _e:
                        return J = el(J), $(Q, X, J, oe)
                }
                if (Ee(J) || yt(J)) return je !== null ? null : se(Q, X, J, oe, null);
                if (typeof J.then == "function") return $(Q, X, Fn(J), oe);
                if (J.$$typeof === ve) return $(Q, X, da(Q, J), oe);
                Gn(Q, J)
            }
            return null
        }

        function le(Q, X, J, oe, je) {
            if (typeof oe == "string" && oe !== "" || typeof oe == "number" || typeof oe == "bigint") return Q = Q.get(J) || null, j(X, Q, "" + oe, je);
            if (typeof oe == "object" && oe !== null) {
                switch (oe.$$typeof) {
                    case O:
                        return Q = Q.get(oe.key === null ? J : oe.key) || null, F(X, Q, oe, je);
                    case L:
                        return Q = Q.get(oe.key === null ? J : oe.key) || null, K(X, Q, oe, je);
                    case _e:
                        return oe = el(oe), le(Q, X, J, oe, je)
                }
                if (Ee(oe) || yt(oe)) return Q = Q.get(J) || null, se(X, Q, oe, je, null);
                if (typeof oe.then == "function") return le(Q, X, J, Fn(oe), je);
                if (oe.$$typeof === ve) return le(Q, X, J, da(X, oe), je);
                Gn(X, oe)
            }
            return null
        }

        function Ne(Q, X, J, oe) {
            for (var je = null, Tt = null, Me = X, Ke = X = 0, dt = null; Me !== null && Ke < J.length; Ke++) {
                Me.index > Ke ? (dt = Me, Me = null) : dt = Me.sibling;
                var Et = $(Q, Me, J[Ke], oe);
                if (Et === null) {
                    Me === null && (Me = dt);
                    break
                }
                e && Me && Et.alternate === null && t(Q, Me), X = m(Et, X, Ke), Tt === null ? je = Et : Tt.sibling = Et, Tt = Et, Me = dt
            }
            if (Ke === J.length) return a(Q, Me), Qe && An(Q, Ke), je;
            if (Me === null) {
                for (; Ke < J.length; Ke++) Me = de(Q, J[Ke], oe), Me !== null && (X = m(Me, X, Ke), Tt === null ? je = Me : Tt.sibling = Me, Tt = Me);
                return Qe && An(Q, Ke), je
            }
            for (Me = l(Me); Ke < J.length; Ke++) dt = le(Me, Q, Ke, J[Ke], oe), dt !== null && (e && dt.alternate !== null && Me.delete(dt.key === null ? Ke : dt.key), X = m(dt, X, Ke), Tt === null ? je = dt : Tt.sibling = dt, Tt = dt);
            return e && Me.forEach(function (Vc) {
                return t(Q, Vc)
            }), Qe && An(Q, Ke), je
        }

        function ke(Q, X, J, oe) {
            if (J == null) throw Error(d(151));
            for (var je = null, Tt = null, Me = X, Ke = X = 0, dt = null, Et = J.next(); Me !== null && !Et.done; Ke++, Et = J.next()) {
                Me.index > Ke ? (dt = Me, Me = null) : dt = Me.sibling;
                var Vc = $(Q, Me, Et.value, oe);
                if (Vc === null) {
                    Me === null && (Me = dt);
                    break
                }
                e && Me && Vc.alternate === null && t(Q, Me), X = m(Vc, X, Ke), Tt === null ? je = Vc : Tt.sibling = Vc, Tt = Vc, Me = dt
            }
            if (Et.done) return a(Q, Me), Qe && An(Q, Ke), je;
            if (Me === null) {
                for (; !Et.done; Ke++, Et = J.next()) Et = de(Q, Et.value, oe), Et !== null && (X = m(Et, X, Ke), Tt === null ? je = Et : Tt.sibling = Et, Tt = Et);
                return Qe && An(Q, Ke), je
            }
            for (Me = l(Me); !Et.done; Ke++, Et = J.next()) Et = le(Me, Q, Ke, Et.value, oe), Et !== null && (e && Et.alternate !== null && Me.delete(Et.key === null ? Ke : Et.key), X = m(Et, X, Ke), Tt === null ? je = Et : Tt.sibling = Et, Tt = Et);
            return e && Me.forEach(function (ax) {
                return t(Q, ax)
            }), Qe && An(Q, Ke), je
        }

        function Vt(Q, X, J, oe) {
            if (typeof J == "object" && J !== null && J.type === G && J.key === null && (J = J.props.children), typeof J == "object" && J !== null) {
                switch (J.$$typeof) {
                    case O:
                        e: {
                            for (var je = J.key; X !== null;) {
                                if (X.key === je) {
                                    if (je = J.type, je === G) {
                                        if (X.tag === 7) {
                                            a(Q, X.sibling), oe = h(X, J.props.children), oe.return = Q, Q = oe;
                                            break e
                                        }
                                    } else if (X.elementType === je || typeof je == "object" && je !== null && je.$$typeof === _e && el(je) === X.type) {
                                        a(Q, X.sibling), oe = h(X, J.props), tl(oe, J), oe.return = Q, Q = oe;
                                        break e
                                    }
                                    a(Q, X);
                                    break
                                } else t(Q, X);
                                X = X.sibling
                            }
                            J.type === G ? (oe = Bt(J.props.children, Q.mode, oe, J.key), oe.return = Q, Q = oe) : (oe = Qt(J.type, J.key, J.props, null, Q.mode, oe), tl(oe, J), oe.return = Q, Q = oe)
                        }
                        return N(Q);
                    case L:
                        e: {
                            for (je = J.key; X !== null;) {
                                if (X.key === je)
                                    if (X.tag === 4 && X.stateNode.containerInfo === J.containerInfo && X.stateNode.implementation === J.implementation) {
                                        a(Q, X.sibling), oe = h(X, J.children || []), oe.return = Q, Q = oe;
                                        break e
                                    } else {
                                        a(Q, X);
                                        break
                                    }
                                else t(Q, X);
                                X = X.sibling
                            }
                            oe = Gl(J, Q.mode, oe),
                                oe.return = Q,
                                Q = oe
                        }
                        return N(Q);
                    case _e:
                        return J = el(J), Vt(Q, X, J, oe)
                }
                if (Ee(J)) return Ne(Q, X, J, oe);
                if (yt(J)) {
                    if (je = yt(J), typeof je != "function") throw Error(d(150));
                    return J = je.call(J), ke(Q, X, J, oe)
                }
                if (typeof J.then == "function") return Vt(Q, X, Fn(J), oe);
                if (J.$$typeof === ve) return Vt(Q, X, da(Q, J), oe);
                Gn(Q, J)
            }
            return typeof J == "string" && J !== "" || typeof J == "number" || typeof J == "bigint" ? (J = "" + J, X !== null && X.tag === 6 ? (a(Q, X.sibling), oe = h(X, J), oe.return = Q, Q = oe) : (a(Q, X), oe = jt(J, Q.mode, oe), oe.return = Q, Q = oe), N(Q)) : a(Q, X)
        }
        return function (Q, X, J, oe) {
            try {
                Gi = 0;
                var je = Vt(Q, X, J, oe);
                return jn = null, je
            } catch (Me) {
                if (Me === Zl || Me === Ql) throw Me;
                var Tt = zt(29, Me, null, Q.mode);
                return Tt.lanes = oe, Tt.return = Q, Tt
            }
        }
    }
    var un = Yi(!0),
        mc = Yi(!1),
        ml = !1;

    function al(e) {
        e.updateQueue = {
            baseState: e.memoizedState,
            firstBaseUpdate: null,
            lastBaseUpdate: null,
            shared: {
                pending: null,
                lanes: 0,
                hiddenCallbacks: null
            },
            callbacks: null
        }
    }

    function Xi(e, t) {
        e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {
            baseState: e.baseState,
            firstBaseUpdate: e.firstBaseUpdate,
            lastBaseUpdate: e.lastBaseUpdate,
            shared: e.shared,
            callbacks: null
        })
    }

    function Sn(e) {
        return {
            lane: e,
            tag: 0,
            payload: null,
            callback: null,
            next: null
        }
    }

    function Qa(e, t, a) {
        var l = e.updateQueue;
        if (l === null) return null;
        if (l = l.shared, (_t & 2) !== 0) {
            var h = l.pending;
            return h === null ? t.next = t : (t.next = h.next, h.next = t), l.pending = t, t = qe(e), Gt(e, null, a), t
        }
        return Le(e, l, t, a), qe(e)
    }

    function Yn(e, t, a) {
        if (t = t.updateQueue, t !== null && (t = t.shared, (a & 4194048) !== 0)) {
            var l = t.lanes;
            l &= e.pendingLanes, a |= l, t.lanes = a, sr(e, a)
        }
    }

    function wn(e, t) {
        var a = e.updateQueue,
            l = e.alternate;
        if (l !== null && (l = l.updateQueue, a === l)) {
            var h = null,
                m = null;
            if (a = a.firstBaseUpdate, a !== null) {
                do {
                    var N = {
                        lane: a.lane,
                        tag: a.tag,
                        payload: a.payload,
                        callback: null,
                        next: null
                    };
                    m === null ? h = m = N : m = m.next = N, a = a.next
                } while (a !== null);
                m === null ? h = m = t : m = m.next = t
            } else h = m = t;
            a = {
                baseState: l.baseState,
                firstBaseUpdate: h,
                lastBaseUpdate: m,
                shared: l.shared,
                callbacks: l.callbacks
            }, e.updateQueue = a;
            return
        }
        e = a.lastBaseUpdate, e === null ? a.firstBaseUpdate = t : e.next = t, a.lastBaseUpdate = t
    }
    var Or = !1;

    function Vi() {
        if (Or) {
            var e = Kt;
            if (e !== null) throw e
        }
    }

    function vl(e, t, a, l) {
        Or = !1;
        var h = e.updateQueue;
        ml = !1;
        var m = h.firstBaseUpdate,
            N = h.lastBaseUpdate,
            j = h.shared.pending;
        if (j !== null) {
            h.shared.pending = null;
            var F = j,
                K = F.next;
            F.next = null, N === null ? m = K : N.next = K, N = F;
            var se = e.alternate;
            se !== null && (se = se.updateQueue, j = se.lastBaseUpdate, j !== N && (j === null ? se.firstBaseUpdate = K : j.next = K, se.lastBaseUpdate = F))
        }
        if (m !== null) {
            var de = h.baseState;
            N = 0, se = K = F = null, j = m;
            do {
                var $ = j.lane & -536870913,
                    le = $ !== j.lane;
                if (le ? (ut & $) === $ : (l & $) === $) {
                    $ !== 0 && $ === zn && (Or = !0), se !== null && (se = se.next = {
                        lane: 0,
                        tag: j.tag,
                        payload: j.payload,
                        callback: null,
                        next: null
                    });
                    e: {
                        var Ne = e,
                            ke = j; $ = t;
                        var Vt = a;
                        switch (ke.tag) {
                            case 1:
                                if (Ne = ke.payload, typeof Ne == "function") {
                                    de = Ne.call(Vt, de, $);
                                    break e
                                }
                                de = Ne;
                                break e;
                            case 3:
                                Ne.flags = Ne.flags & -65537 | 128;
                            case 0:
                                if (Ne = ke.payload, $ = typeof Ne == "function" ? Ne.call(Vt, de, $) : Ne, $ == null) break e;
                                de = A({}, de, $);
                                break e;
                            case 2:
                                ml = !0
                        }
                    }
                    $ = j.callback, $ !== null && (e.flags |= 64, le && (e.flags |= 8192), le = h.callbacks, le === null ? h.callbacks = [$] : le.push($))
                } else le = {
                    lane: $,
                    tag: j.tag,
                    payload: j.payload,
                    callback: j.callback,
                    next: null
                }, se === null ? (K = se = le, F = de) : se = se.next = le, N |= $;
                if (j = j.next, j === null) {
                    if (j = h.shared.pending, j === null) break;
                    le = j, j = le.next, le.next = null, h.lastBaseUpdate = le, h.shared.pending = null
                }
            } while (!0);
            se === null && (F = de), h.baseState = F, h.firstBaseUpdate = K, h.lastBaseUpdate = se, m === null && (h.shared.lanes = 0), Dc |= N, e.lanes = N, e.memoizedState = de
        }
    }

    function r(e, t) {
        if (typeof e != "function") throw Error(d(191, e));
        e.call(t)
    }

    function o(e, t) {
        var a = e.callbacks;
        if (a !== null)
            for (e.callbacks = null, e = 0; e < a.length; e++) r(a[e], t)
    }
    var v = ae(null),
        y = ae(0);

    function C(e, t) {
        e = Ms, nt(y, e), nt(v, t), Ms = e | t.baseLanes
    }

    function _() {
        nt(y, Ms), nt(v, v.current)
    }

    function k() {
        Ms = y.current, mt(v), mt(y)
    }
    var V = ae(null),
        H = null;

    function I(e) {
        var t = e.alternate;
        nt(Ae, Ae.current & 1), nt(V, e), H === null && (t === null || v.current !== null || t.memoizedState !== null) && (H = e)
    }

    function q(e) {
        nt(Ae, Ae.current), nt(V, e), H === null && (H = e)
    }

    function ne(e) {
        e.tag === 22 ? (nt(Ae, Ae.current), nt(V, e), H === null && (H = e)) : ge()
    }

    function ge() {
        nt(Ae, Ae.current), nt(V, V.current)
    }

    function me(e) {
        mt(V), H === e && (H = null), mt(Ae)
    }
    var Ae = ae(0);

    function Ie(e) {
        for (var t = e; t !== null;) {
            if (t.tag === 13) {
                var a = t.memoizedState;
                if (a !== null && (a = a.dehydrated, a === null || Lh(a) || Uh(a))) return t
            } else if (t.tag === 19 && (t.memoizedProps.revealOrder === "forwards" || t.memoizedProps.revealOrder === "backwards" || t.memoizedProps.revealOrder === "unstable_legacy-backwards" || t.memoizedProps.revealOrder === "together")) {
                if ((t.flags & 128) !== 0) return t
            } else if (t.child !== null) {
                t.child.return = t, t = t.child;
                continue
            }
            if (t === e) break;
            for (; t.sibling === null;) {
                if (t.return === null || t.return === e) return null;
                t = t.return
            }
            t.sibling.return = t.return, t = t.sibling
        }
        return null
    }
    var Be = 0,
        ye = null,
        Re = null,
        et = null,
        ka = !1,
        La = !1,
        ze = !1,
        xa = 0,
        kt = 0,
        fa = null,
        Pl = 0;

    function Fe() {
        throw Error(d(321))
    }

    function bl(e, t) {
        if (t === null) return !1;
        for (var a = 0; a < t.length && a < e.length; a++)
            if (!za(e[a], t[a])) return !1;
        return !0
    }

    function Xn(e, t, a, l, h, m) {
        return Be = m, ye = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, B.H = e === null || e.memoizedState === null ? po : kr, ze = !1, m = a(l, h), ze = !1, La && (m = Dn(t, a, l, h)), Ta(e), m
    }

    function Ta(e) {
        B.H = xo;
        var t = Re !== null && Re.next !== null;
        if (Be = 0, et = Re = ye = null, ka = !1, kt = 0, fa = null, t) throw Error(d(300));
        e === null || Ea || (e = e.dependencies, e !== null && $n(e) && (Ea = !0))
    }

    function Dn(e, t, a, l) {
        ye = e;
        var h = 0;
        do {
            if (La && (fa = null), kt = 0, La = !1, 25 <= h) throw Error(d(301));
            if (h += 1, et = Re = null, e.updateQueue != null) {
                var m = e.updateQueue;
                m.lastEffect = null, m.events = null, m.stores = null, m.memoCache != null && (m.memoCache.index = 0)
            }
            B.H = Qd, m = t(a, l)
        } while (La);
        return m
    }

    function gs() {
        var e = B.H,
            t = e.useState()[0];
        return t = typeof t.then == "function" ? ms(t) : t, e = e.useState()[0], (Re !== null ? Re.memoizedState : null) !== e && (ye.flags |= 1024), t
    }

    function Ii() {
        var e = xa !== 0;
        return xa = 0, e
    }

    function Wl(e, t, a) {
        t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~a
    }

    function Zi(e) {
        if (ka) {
            for (e = e.memoizedState; e !== null;) {
                var t = e.queue;
                t !== null && (t.pending = null), e = e.next
            }
            ka = !1
        }
        Be = 0, et = Re = ye = null, La = !1, kt = xa = 0, fa = null
    }

    function Ua() {
        var e = {
            memoizedState: null,
            baseState: null,
            baseQueue: null,
            queue: null,
            next: null
        };
        return et === null ? ye.memoizedState = et = e : et = et.next = e, et
    }

    function Nt() {
        if (Re === null) {
            var e = ye.alternate;
            e = e !== null ? e.memoizedState : null
        } else e = Re.next;
        var t = et === null ? ye.memoizedState : et.next;
        if (t !== null) et = t, Re = e;
        else {
            if (e === null) throw ye.alternate === null ? Error(d(467)) : Error(d(310));
            Re = e, e = {
                memoizedState: Re.memoizedState,
                baseState: Re.baseState,
                baseQueue: Re.baseQueue,
                queue: Re.queue,
                next: null
            }, et === null ? ye.memoizedState = et = e : et = et.next = e
        }
        return et
    }

    function Jl() {
        return {
            lastEffect: null,
            events: null,
            stores: null,
            memoCache: null
        }
    }

    function ms(e) {
        var t = kt;
        return kt += 1, fa === null && (fa = []), e = _r(fa, e, t), t = ye, (et === null ? t.memoizedState : et.next) === null && (t = t.alternate, B.H = t === null || t.memoizedState === null ? po : kr), e
    }

    function vc(e) {
        if (e !== null && typeof e == "object") {
            if (typeof e.then == "function") return ms(e);
            if (e.$$typeof === ve) return Ct(e)
        }
        throw Error(d(438, String(e)))
    }

    function vs(e) {
        var t = null,
            a = ye.updateQueue;
        if (a !== null && (t = a.memoCache), t == null) {
            var l = ye.alternate;
            l !== null && (l = l.updateQueue, l !== null && (l = l.memoCache, l != null && (t = {
                data: l.data.map(function (h) {
                    return h.slice()
                }),
                index: 0
            })))
        }
        if (t == null && (t = {
            data: [],
            index: 0
        }), a === null && (a = Jl(), ye.updateQueue = a), a.memoCache = t, a = t.data[t.index], a === void 0)
            for (a = t.data[t.index] = Array(e), l = 0; l < e; l++) a[l] = ta;
        return t.index++, a
    }

    function Ba(e, t) {
        return typeof t == "function" ? t(e) : t
    }

    function uo(e) {
        var t = Nt();
        return bs(t, Re, e)
    }

    function bs(e, t, a) {
        var l = e.queue;
        if (l === null) throw Error(d(311));
        l.lastRenderedReducer = a;
        var h = e.baseQueue,
            m = l.pending;
        if (m !== null) {
            if (h !== null) {
                var N = h.next;
                h.next = m.next, m.next = N
            }
            t.baseQueue = h = m, l.pending = null
        }
        if (m = e.baseState, h === null) e.memoizedState = m;
        else {
            t = h.next;
            var j = N = null,
                F = null,
                K = t,
                se = !1;
            do {
                var de = K.lane & -536870913;
                if (de !== K.lane ? (ut & de) === de : (Be & de) === de) {
                    var $ = K.revertLane;
                    if ($ === 0) F !== null && (F = F.next = {
                        lane: 0,
                        revertLane: 0,
                        gesture: null,
                        action: K.action,
                        hasEagerState: K.hasEagerState,
                        eagerState: K.eagerState,
                        next: null
                    }), de === zn && (se = !0);
                    else if ((Be & $) === $) {
                        K = K.next, $ === zn && (se = !0);
                        continue
                    } else de = {
                        lane: 0,
                        revertLane: K.revertLane,
                        gesture: null,
                        action: K.action,
                        hasEagerState: K.hasEagerState,
                        eagerState: K.eagerState,
                        next: null
                    }, F === null ? (j = F = de, N = m) : F = F.next = de, ye.lanes |= $, Dc |= $;
                    de = K.action, ze && a(m, de), m = K.hasEagerState ? K.eagerState : a(m, de)
                } else $ = {
                    lane: de,
                    revertLane: K.revertLane,
                    gesture: K.gesture,
                    action: K.action,
                    hasEagerState: K.hasEagerState,
                    eagerState: K.eagerState,
                    next: null
                }, F === null ? (j = F = $, N = m) : F = F.next = $, ye.lanes |= de, Dc |= de;
                K = K.next
            } while (K !== null && K !== t);
            if (F === null ? N = m : F.next = j, !za(m, e.memoizedState) && (Ea = !0, se && (a = Kt, a !== null))) throw a;
            e.memoizedState = m, e.baseState = N, e.baseQueue = F, l.lastRenderedState = m
        }
        return h === null && (l.lanes = 0), [e.memoizedState, l.dispatch]
    }

    function nu(e) {
        var t = Nt(),
            a = t.queue;
        if (a === null) throw Error(d(311));
        a.lastRenderedReducer = e;
        var l = a.dispatch,
            h = a.pending,
            m = t.memoizedState;
        if (h !== null) {
            a.pending = null;
            var N = h = h.next;
            do m = e(m, N.action), N = N.next; while (N !== h);
            za(m, t.memoizedState) || (Ea = !0), t.memoizedState = m, t.baseQueue === null && (t.baseState = m), a.lastRenderedState = m
        }
        return [m, l]
    }

    function Yu(e, t, a) {
        var l = ye,
            h = Nt(),
            m = Qe;
        if (m) {
            if (a === void 0) throw Error(d(407));
            a = a()
        } else a = t();
        var N = !za((Re || h).memoizedState, a);
        if (N && (h.memoizedState = a, Ea = !0), h = h.queue, ys(Iu.bind(null, l, h, e), [e]), h.getSnapshot !== t || N || et !== null && et.memoizedState.tag & 1) {
            if (l.flags |= 2048, ps(9, {
                destroy: void 0
            }, Vu.bind(null, l, h, a, t), null), Pt === null) throw Error(d(349));
            m || (Be & 127) !== 0 || Xu(l, t, a)
        }
        return a
    }

    function Xu(e, t, a) {
        e.flags |= 16384, e = {
            getSnapshot: t,
            value: a
        }, t = ye.updateQueue, t === null ? (t = Jl(), ye.updateQueue = t, t.stores = [e]) : (a = t.stores, a === null ? t.stores = [e] : a.push(e))
    }

    function Vu(e, t, a, l) {
        t.value = a, t.getSnapshot = l, Zu(t) && bc(e)
    }

    function Iu(e, t, a) {
        return a(function () {
            Zu(t) && bc(e)
        })
    }

    function Zu(e) {
        var t = e.getSnapshot;
        e = e.value;
        try {
            var a = t();
            return !za(e, a)
        } catch {
            return !0
        }
    }

    function bc(e) {
        var t = xt(e, 2);
        t !== null && wl(t, e, 2)
    }

    function Kl(e) {
        var t = Ua();
        if (typeof e == "function") {
            var a = e;
            if (e = a(), ze) {
                ol(!0);
                try {
                    a()
                } finally {
                    ol(!1)
                }
            }
        }
        return t.memoizedState = t.baseState = e, t.queue = {
            pending: null,
            lanes: 0,
            dispatch: null,
            lastRenderedReducer: Ba,
            lastRenderedState: e
        }, t
    }

    function Qu(e, t, a, l) {
        return e.baseState = a, bs(e, Re, typeof l == "function" ? l : Ba)
    }

    function Fd(e, t, a, l, h) {
        if (Mc(e)) throw Error(d(485));
        if (e = t.action, e !== null) {
            var m = {
                payload: h,
                action: e,
                next: null,
                isTransition: !0,
                status: "pending",
                value: null,
                reason: null,
                listeners: [],
                then: function (N) {
                    m.listeners.push(N)
                }
            };
            B.T !== null ? a(!0) : m.isTransition = !1, l(m), a = t.pending, a === null ? (m.next = t.pending = m, xc(t, m)) : (m.next = a.next, t.pending = a.next = m)
        }
    }

    function xc(e, t) {
        var a = t.action,
            l = t.payload,
            h = e.state;
        if (t.isTransition) {
            var m = B.T,
                N = {};
            B.T = N;
            try {
                var j = a(h, l),
                    F = B.S;
                F !== null && F(N, j), Pu(e, t, j)
            } catch (K) {
                xs(e, t, K)
            } finally {
                m !== null && N.types !== null && (m.types = N.types), B.T = m
            }
        } else try {
            m = a(h, l), Pu(e, t, m)
        } catch (K) {
            xs(e, t, K)
        }
    }

    function Pu(e, t, a) {
        a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(function (l) {
            zr(e, t, l)
        }, function (l) {
            return xs(e, t, l)
        }) : zr(e, t, a)
    }

    function zr(e, t, a) {
        t.status = "fulfilled", t.value = a, pc(t), e.state = a, t = e.pending, t !== null && (a = t.next, a === t ? e.pending = null : (a = a.next, t.next = a, xc(e, a)))
    }

    function xs(e, t, a) {
        var l = e.pending;
        if (e.pending = null, l !== null) {
            l = l.next;
            do t.status = "rejected", t.reason = a, pc(t), t = t.next; while (t !== l)
        }
        e.action = null
    }

    function pc(e) {
        e = e.listeners;
        for (var t = 0; t < e.length; t++)(0, e[t])()
    }

    function yc(e, t) {
        return t
    }

    function Sc(e, t) {
        if (Qe) {
            var a = Pt.formState;
            if (a !== null) {
                e: {
                    var l = ye;
                    if (Qe) {
                        if (Dt) {
                            t: {
                                for (var h = Dt, m = Na; h.nodeType !== 8;) {
                                    if (!m) {
                                        h = null;
                                        break t
                                    }
                                    if (h = bi(h.nextSibling), h === null) {
                                        h = null;
                                        break t
                                    }
                                }
                                m = h.data,
                                    h = m === "F!" || m === "F" ? h : null
                            }
                            if (h) {
                                Dt = bi(h.nextSibling), l = h.data === "F!";
                                break e
                            }
                        }
                        sn(l)
                    }
                    l = !1
                }
                l && (t = a[0])
            }
        }
        return a = Ua(), a.memoizedState = a.baseState = t, l = {
            pending: null,
            lanes: 0,
            dispatch: null,
            lastRenderedReducer: yc,
            lastRenderedState: t
        }, a.queue = l, a = bo.bind(null, ye, l), l.dispatch = a, l = Kl(!1), m = Ec.bind(null, ye, !1, l.queue), l = Ua(), h = {
            state: t,
            dispatch: null,
            action: e,
            pending: null
        }, l.queue = h, a = Fd.bind(null, ye, h, m, a), h.dispatch = a, l.memoizedState = e, [t, a, !1]
    }

    function Qi(e) {
        var t = Nt();
        return lu(t, Re, e)
    }

    function lu(e, t, a) {
        if (t = bs(e, t, yc)[0], e = uo(Ba)[0], typeof t == "object" && t !== null && typeof t.then == "function") try {
            var l = ms(t)
        } catch (N) {
            throw N === Zl ? Ql : N
        } else l = t;
        t = Nt();
        var h = t.queue,
            m = h.dispatch;
        return a !== t.memoizedState && (ye.flags |= 2048, ps(9, {
            destroy: void 0
        }, Wu.bind(null, h, a), null)), [l, m, e]
    }

    function Wu(e, t) {
        e.action = t
    }

    function jr(e) {
        var t = Nt(),
            a = Re;
        if (a !== null) return lu(t, a, e);
        Nt(), t = t.memoizedState, a = Nt();
        var l = a.queue.dispatch;
        return a.memoizedState = e, [t, l, !1]
    }

    function ps(e, t, a, l) {
        return e = {
            tag: e,
            create: a,
            deps: l,
            inst: t,
            next: null
        }, t = ye.updateQueue, t === null && (t = Jl(), ye.updateQueue = t), a = t.lastEffect, a === null ? t.lastEffect = e.next = e : (l = a.next, a.next = e, e.next = l, t.lastEffect = e), e
    }

    function fo() {
        return Nt().memoizedState
    }

    function ho(e, t, a, l) {
        var h = Ua();
        ye.flags |= e, h.memoizedState = ps(1 | t, {
            destroy: void 0
        }, a, l === void 0 ? null : l)
    }

    function Dr(e, t, a, l) {
        var h = Nt();
        l = l === void 0 ? null : l;
        var m = h.memoizedState.inst;
        Re !== null && l !== null && bl(l, Re.memoizedState.deps) ? h.memoizedState = ps(t, m, a, l) : (ye.flags |= e, h.memoizedState = ps(1 | t, m, a, l))
    }

    function Ju(e, t) {
        ho(8390656, 8, e, t)
    }

    function ys(e, t) {
        Dr(2048, 8, e, t)
    }

    function go(e) {
        ye.flags |= 4;
        var t = ye.updateQueue;
        if (t === null) t = Jl(), ye.updateQueue = t, t.events = [e];
        else {
            var a = t.events;
            a === null ? t.events = [e] : a.push(e)
        }
    }

    function Ku(e) {
        var t = Nt().memoizedState;
        return go({
            ref: t,
            nextImpl: e
        }),
            function () {
                if ((_t & 2) !== 0) throw Error(d(440));
                return t.impl.apply(void 0, arguments)
            }
    }

    function qu(e, t) {
        return Dr(4, 2, e, t)
    }

    function Gd(e, t) {
        return Dr(4, 4, e, t)
    }

    function Yd(e, t) {
        if (typeof t == "function") {
            e = e();
            var a = t(e);
            return function () {
                typeof a == "function" ? a() : t(null)
            }
        }
        if (t != null) return e = e(), t.current = e,
            function () {
                t.current = null
            }
    }

    function iu(e, t, a) {
        a = a != null ? a.concat([e]) : null, Dr(4, 4, Yd.bind(null, t, e), a)
    }

    function $u() { }

    function Xd(e, t) {
        var a = Nt();
        t = t === void 0 ? null : t;
        var l = a.memoizedState;
        return t !== null && bl(t, l[1]) ? l[0] : (a.memoizedState = [e, t], e)
    }

    function Vd(e, t) {
        var a = Nt();
        t = t === void 0 ? null : t;
        var l = a.memoizedState;
        if (t !== null && bl(t, l[1])) return l[0];
        if (l = e(), ze) {
            ol(!0);
            try {
                e()
            } finally {
                ol(!1)
            }
        }
        return a.memoizedState = [l, t], l
    }

    function vi(e, t, a) {
        return a === void 0 || (Be & 1073741824) !== 0 && (ut & 261930) === 0 ? e.memoizedState = t : (e.memoizedState = a, e = gm(), ye.lanes |= e, Dc |= e, a)
    }

    function mo(e, t, a, l) {
        return za(a, t) ? a : v.current !== null ? (e = vi(e, a, l), za(e, t) || (Ea = !0), e) : (Be & 42) === 0 || (Be & 1073741824) !== 0 && (ut & 261930) === 0 ? (Ea = !0, e.memoizedState = a) : (e = gm(), ye.lanes |= e, Dc |= e, t)
    }

    function wc(e, t, a, l, h) {
        var m = P.p;
        P.p = m !== 0 && 8 > m ? m : 8;
        var N = B.T,
            j = {};
        B.T = j, Ec(e, !1, t, a);
        try {
            var F = h(),
                K = B.S;
            if (K !== null && K(j, F), F !== null && typeof F == "object" && typeof F.then == "function") {
                var se = hc(F, l);
                Tc(e, t, se, ai(e))
            } else Tc(e, t, l, ai(e))
        } catch (de) {
            Tc(e, t, {
                then: function () { },
                status: "rejected",
                reason: de
            }, ai())
        } finally {
            P.p = m, N !== null && j.types !== null && (N.types = j.types), B.T = N
        }
    }

    function Cc() { }

    function Nc(e, t, a, l) {
        if (e.tag !== 5) throw Error(d(476));
        var h = vo(e).queue;
        wc(e, h, t, Te, a === null ? Cc : function () {
            return ru(e), a(l)
        })
    }

    function vo(e) {
        var t = e.memoizedState;
        if (t !== null) return t;
        t = {
            memoizedState: Te,
            baseState: Te,
            baseQueue: null,
            queue: {
                pending: null,
                lanes: 0,
                dispatch: null,
                lastRenderedReducer: Ba,
                lastRenderedState: Te
            },
            next: null
        };
        var a = {};
        return t.next = {
            memoizedState: a,
            baseState: a,
            baseQueue: null,
            queue: {
                pending: null,
                lanes: 0,
                dispatch: null,
                lastRenderedReducer: Ba,
                lastRenderedState: a
            },
            next: null
        }, e.memoizedState = t, e = e.alternate, e !== null && (e.memoizedState = t), t
    }

    function ru(e) {
        var t = vo(e);
        t.next === null && (t = e.alternate.memoizedState), Tc(e, t.next.queue, {}, ai())
    }

    function su() {
        return Ct(Cd)
    }

    function Id() {
        return Nt().memoizedState
    }

    function cu() {
        return Nt().memoizedState
    }

    function Zd(e) {
        for (var t = e.return; t !== null;) {
            switch (t.tag) {
                case 24:
                case 3:
                    var a = ai();
                    e = Sn(a);
                    var l = Qa(t, e, a);
                    l !== null && (wl(l, t, a), Yn(l, t, a)), t = {
                        cache: fc()
                    }, e.payload = t;
                    return
            }
            t = t.return
        }
    }

    function ou(e, t, a) {
        var l = ai();
        a = {
            lane: l,
            revertLane: 0,
            gesture: null,
            action: a,
            hasEagerState: !1,
            eagerState: null,
            next: null
        }, Mc(e) ? ed(t, a) : (a = Ve(e, t, a, l), a !== null && (wl(a, e, l), td(a, t, l)))
    }

    function bo(e, t, a) {
        var l = ai();
        Tc(e, t, a, l)
    }

    function Tc(e, t, a, l) {
        var h = {
            lane: l,
            revertLane: 0,
            gesture: null,
            action: a,
            hasEagerState: !1,
            eagerState: null,
            next: null
        };
        if (Mc(e)) ed(t, h);
        else {
            var m = e.alternate;
            if (e.lanes === 0 && (m === null || m.lanes === 0) && (m = t.lastRenderedReducer, m !== null)) try {
                var N = t.lastRenderedState,
                    j = m(N, a);
                if (h.hasEagerState = !0, h.eagerState = j, za(j, N)) return Le(e, t, h, 0), Pt === null && Ue(), !1
            } catch { }
            if (a = Ve(e, t, h, l), a !== null) return wl(a, e, l), td(a, t, l), !0
        }
        return !1
    }

    function Ec(e, t, a, l) {
        if (l = {
            lane: 2,
            revertLane: Nh(),
            gesture: null,
            action: l,
            hasEagerState: !1,
            eagerState: null,
            next: null
        }, Mc(e)) {
            if (t) throw Error(d(479))
        } else t = Ve(e, a, l, 2), t !== null && wl(t, e, 2)
    }

    function Mc(e) {
        var t = e.alternate;
        return e === ye || t !== null && t === ye
    }

    function ed(e, t) {
        La = ka = !0;
        var a = e.pending;
        a === null ? t.next = t : (t.next = a.next, a.next = t), e.pending = t
    }

    function td(e, t, a) {
        if ((a & 4194048) !== 0) {
            var l = t.lanes;
            l &= e.pendingLanes, a |= l, t.lanes = a, sr(e, a)
        }
    }
    var xo = {
        readContext: Ct,
        use: vc,
        useCallback: Fe,
        useContext: Fe,
        useEffect: Fe,
        useImperativeHandle: Fe,
        useLayoutEffect: Fe,
        useInsertionEffect: Fe,
        useMemo: Fe,
        useReducer: Fe,
        useRef: Fe,
        useState: Fe,
        useDebugValue: Fe,
        useDeferredValue: Fe,
        useTransition: Fe,
        useSyncExternalStore: Fe,
        useId: Fe,
        useHostTransitionStatus: Fe,
        useFormState: Fe,
        useActionState: Fe,
        useOptimistic: Fe,
        useMemoCache: Fe,
        useCacheRefresh: Fe
    };
    xo.useEffectEvent = Fe;
    var po = {
        readContext: Ct,
        use: vc,
        useCallback: function (e, t) {
            return Ua().memoizedState = [e, t === void 0 ? null : t], e
        },
        useContext: Ct,
        useEffect: Ju,
        useImperativeHandle: function (e, t, a) {
            a = a != null ? a.concat([e]) : null, ho(4194308, 4, Yd.bind(null, t, e), a)
        },
        useLayoutEffect: function (e, t) {
            return ho(4194308, 4, e, t)
        },
        useInsertionEffect: function (e, t) {
            ho(4, 2, e, t)
        },
        useMemo: function (e, t) {
            var a = Ua();
            t = t === void 0 ? null : t;
            var l = e();
            if (ze) {
                ol(!0);
                try {
                    e()
                } finally {
                    ol(!1)
                }
            }
            return a.memoizedState = [l, t], l
        },
        useReducer: function (e, t, a) {
            var l = Ua();
            if (a !== void 0) {
                var h = a(t);
                if (ze) {
                    ol(!0);
                    try {
                        a(t)
                    } finally {
                        ol(!1)
                    }
                }
            } else h = t;
            return l.memoizedState = l.baseState = h, e = {
                pending: null,
                lanes: 0,
                dispatch: null,
                lastRenderedReducer: e,
                lastRenderedState: h
            }, l.queue = e, e = e.dispatch = ou.bind(null, ye, e), [l.memoizedState, e]
        },
        useRef: function (e) {
            var t = Ua();
            return e = {
                current: e
            }, t.memoizedState = e
        },
        useState: function (e) {
            e = Kl(e);
            var t = e.queue,
                a = bo.bind(null, ye, t);
            return t.dispatch = a, [e.memoizedState, a]
        },
        useDebugValue: $u,
        useDeferredValue: function (e, t) {
            var a = Ua();
            return vi(a, e, t)
        },
        useTransition: function () {
            var e = Kl(!1);
            return e = wc.bind(null, ye, e.queue, !0, !1), Ua().memoizedState = e, [!1, e]
        },
        useSyncExternalStore: function (e, t, a) {
            var l = ye,
                h = Ua();
            if (Qe) {
                if (a === void 0) throw Error(d(407));
                a = a()
            } else {
                if (a = t(), Pt === null) throw Error(d(349));
                (ut & 127) !== 0 || Xu(l, t, a)
            }
            h.memoizedState = a;
            var m = {
                value: a,
                getSnapshot: t
            };
            return h.queue = m, Ju(Iu.bind(null, l, m, e), [e]), l.flags |= 2048, ps(9, {
                destroy: void 0
            }, Vu.bind(null, l, m, a, t), null), a
        },
        useId: function () {
            var e = Ua(),
                t = Pt.identifierPrefix;
            if (Qe) {
                var a = Ia,
                    l = At;
                a = (l & ~(1 << 32 - Fa(l) - 1)).toString(32) + a, t = "_" + t + "R_" + a, a = xa++, 0 < a && (t += "H" + a.toString(32)), t += "_"
            } else a = Pl++, t = "_" + t + "r_" + a.toString(32) + "_";
            return e.memoizedState = t
        },
        useHostTransitionStatus: su,
        useFormState: Sc,
        useActionState: Sc,
        useOptimistic: function (e) {
            var t = Ua();
            t.memoizedState = t.baseState = e;
            var a = {
                pending: null,
                lanes: 0,
                dispatch: null,
                lastRenderedReducer: null,
                lastRenderedState: null
            };
            return t.queue = a, t = Ec.bind(null, ye, !0, a), a.dispatch = t, [e, t]
        },
        useMemoCache: vs,
        useCacheRefresh: function () {
            return Ua().memoizedState = Zd.bind(null, ye)
        },
        useEffectEvent: function (e) {
            var t = Ua(),
                a = {
                    impl: e
                };
            return t.memoizedState = a,
                function () {
                    if ((_t & 2) !== 0) throw Error(d(440));
                    return a.impl.apply(void 0, arguments)
                }
        }
    },
        kr = {
            readContext: Ct,
            use: vc,
            useCallback: Xd,
            useContext: Ct,
            useEffect: ys,
            useImperativeHandle: iu,
            useInsertionEffect: qu,
            useLayoutEffect: Gd,
            useMemo: Vd,
            useReducer: uo,
            useRef: fo,
            useState: function () {
                return uo(Ba)
            },
            useDebugValue: $u,
            useDeferredValue: function (e, t) {
                var a = Nt();
                return mo(a, Re.memoizedState, e, t)
            },
            useTransition: function () {
                var e = uo(Ba)[0],
                    t = Nt().memoizedState;
                return [typeof e == "boolean" ? e : ms(e), t]
            },
            useSyncExternalStore: Yu,
            useId: Id,
            useHostTransitionStatus: su,
            useFormState: Qi,
            useActionState: Qi,
            useOptimistic: function (e, t) {
                var a = Nt();
                return Qu(a, Re, e, t)
            },
            useMemoCache: vs,
            useCacheRefresh: cu
        };
    kr.useEffectEvent = Ku;
    var Qd = {
        readContext: Ct,
        use: vc,
        useCallback: Xd,
        useContext: Ct,
        useEffect: ys,
        useImperativeHandle: iu,
        useInsertionEffect: qu,
        useLayoutEffect: Gd,
        useMemo: Vd,
        useReducer: nu,
        useRef: fo,
        useState: function () {
            return nu(Ba)
        },
        useDebugValue: $u,
        useDeferredValue: function (e, t) {
            var a = Nt();
            return Re === null ? vi(a, e, t) : mo(a, Re.memoizedState, e, t)
        },
        useTransition: function () {
            var e = nu(Ba)[0],
                t = Nt().memoizedState;
            return [typeof e == "boolean" ? e : ms(e), t]
        },
        useSyncExternalStore: Yu,
        useId: Id,
        useHostTransitionStatus: su,
        useFormState: jr,
        useActionState: jr,
        useOptimistic: function (e, t) {
            var a = Nt();
            return Re !== null ? Qu(a, Re, e, t) : (a.baseState = e, [e, a.queue.dispatch])
        },
        useMemoCache: vs,
        useCacheRefresh: cu
    };
    Qd.useEffectEvent = Ku;

    function Lr(e, t, a, l) {
        t = e.memoizedState, a = a(l, t), a = a == null ? t : A({}, t, a), e.memoizedState = a, e.lanes === 0 && (e.updateQueue.baseState = a)
    }
    var uu = {
        enqueueSetState: function (e, t, a) {
            e = e._reactInternals;
            var l = ai(),
                h = Sn(l);
            h.payload = t, a != null && (h.callback = a), t = Qa(e, h, l), t !== null && (wl(t, e, l), Yn(t, e, l))
        },
        enqueueReplaceState: function (e, t, a) {
            e = e._reactInternals;
            var l = ai(),
                h = Sn(l);
            h.tag = 1, h.payload = t, a != null && (h.callback = a), t = Qa(e, h, l), t !== null && (wl(t, e, l), Yn(t, e, l))
        },
        enqueueForceUpdate: function (e, t) {
            e = e._reactInternals;
            var a = ai(),
                l = Sn(a);
            l.tag = 2, t != null && (l.callback = t), t = Qa(e, l, a), t !== null && (wl(t, e, a), Yn(t, e, a))
        }
    };

    function Ac(e, t, a, l, h, m, N) {
        return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(l, m, N) : t.prototype && t.prototype.isPureReactComponent ? !Wn(a, l) || !Wn(h, m) : !0
    }

    function yo(e, t, a, l) {
        e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(a, l), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(a, l), t.state !== e && uu.enqueueReplaceState(t, t.state, null)
    }

    function ql(e, t) {
        var a = t;
        if ("ref" in t) {
            a = {};
            for (var l in t) l !== "ref" && (a[l] = t[l])
        }
        if (e = e.defaultProps) {
            a === t && (a = A({}, a));
            for (var h in e) a[h] === void 0 && (a[h] = e[h])
        }
        return a
    }

    function ad(e) {
        be(e)
    }

    function Ur(e) {
        console.error(e)
    }

    function nd(e) {
        be(e)
    }

    function So(e, t) {
        try {
            var a = e.onUncaughtError;
            a(t.value, {
                componentStack: t.stack
            })
        } catch (l) {
            setTimeout(function () {
                throw l
            })
        }
    }

    function Ss(e, t, a) {
        try {
            var l = e.onCaughtError;
            l(a.value, {
                componentStack: a.stack,
                errorBoundary: t.tag === 1 ? t.stateNode : null
            })
        } catch (h) {
            setTimeout(function () {
                throw h
            })
        }
    }

    function du(e, t, a) {
        return a = Sn(a), a.tag = 3, a.payload = {
            element: null
        }, a.callback = function () {
            So(e, t)
        }, a
    }

    function wo(e) {
        return e = Sn(e), e.tag = 3, e
    }

    function fu(e, t, a, l) {
        var h = a.type.getDerivedStateFromError;
        if (typeof h == "function") {
            var m = l.value;
            e.payload = function () {
                return h(m)
            }, e.callback = function () {
                Ss(t, a, l)
            }
        }
        var N = a.stateNode;
        N !== null && typeof N.componentDidCatch == "function" && (e.callback = function () {
            Ss(t, a, l), typeof h != "function" && (kc === null ? kc = new Set([this]) : kc.add(this));
            var j = l.stack;
            this.componentDidCatch(l.value, {
                componentStack: j !== null ? j : ""
            })
        })
    }

    function Co(e, t, a, l, h) {
        if (a.flags |= 32768, l !== null && typeof l == "object" && typeof l.then == "function") {
            if (t = a.alternate, t !== null && Da(t, a, h, !0), a = V.current, a !== null) {
                switch (a.tag) {
                    case 31:
                    case 13:
                        return H === null ? rf() : a.alternate === null && Ma === 0 && (Ma = 3), a.flags &= -257, a.flags |= 65536, a.lanes = h, l === mi ? a.flags |= 16384 : (t = a.updateQueue, t === null ? a.updateQueue = new Set([l]) : t.add(l), Sh(e, l, h)), !1;
                    case 22:
                        return a.flags |= 65536, l === mi ? a.flags |= 16384 : (t = a.updateQueue, t === null ? (t = {
                            transitions: null,
                            markerInstances: null,
                            retryQueue: new Set([l])
                        }, a.updateQueue = t) : (a = t.retryQueue, a === null ? t.retryQueue = new Set([l]) : a.add(l)), Sh(e, l, h)), !1
                }
                throw Error(d(435, a.tag))
            }
            return Sh(e, l, h), rf(), !1
        }
        if (Qe) return t = V.current, t !== null ? ((t.flags & 65536) === 0 && (t.flags |= 256), t.flags |= 65536, t.lanes = h, l !== Nr && (e = Error(d(422), {
            cause: l
        }), Yl(Va(e, a)))) : (l !== Nr && (t = Error(d(423), {
            cause: l
        }), Yl(Va(t, a))), e = e.current.alternate, e.flags |= 65536, h &= -h, e.lanes |= h, l = Va(l, a), h = du(e.stateNode, l, h), wn(e, h), Ma !== 4 && (Ma = 2)), !1;
        var m = Error(d(520), {
            cause: l
        });
        if (m = Va(m, a), md === null ? md = [m] : md.push(m), Ma !== 4 && (Ma = 2), t === null) return !0;
        l = Va(l, a), a = t;
        do {
            switch (a.tag) {
                case 3:
                    return a.flags |= 65536, e = h & -h, a.lanes |= e, e = du(a.stateNode, l, e), wn(a, e), !1;
                case 1:
                    if (t = a.type, m = a.stateNode, (a.flags & 128) === 0 && (typeof t.getDerivedStateFromError == "function" || m !== null && typeof m.componentDidCatch == "function" && (kc === null || !kc.has(m)))) return a.flags |= 65536, h &= -h, a.lanes |= h, h = wo(h), fu(h, e, a, l), wn(a, h), !1
            }
            a = a.return
        } while (a !== null);
        return !1
    }
    var ld = Error(d(461)),
        Ea = !1;

    function Pa(e, t, a, l) {
        t.child = e === null ? mc(t, null, a, l) : un(t, e.child, a, l)
    }

    function Rc(e, t, a, l, h) {
        a = a.render;
        var m = t.ref;
        if ("ref" in l) {
            var N = {};
            for (var j in l) j !== "ref" && (N[j] = l[j])
        } else N = l;
        return _n(t), l = Xn(e, t, a, N, m, h), j = Ii(), e !== null && !Ea ? (Wl(e, t, h), Vn(e, t, h)) : (Qe && j && us(t), t.flags |= 1, Pa(e, t, l, h), t.child)
    }

    function _c(e, t, a, l, h) {
        if (e === null) {
            var m = a.type;
            return typeof m == "function" && !tt(m) && m.defaultProps === void 0 && a.compare === null ? (t.tag = 15, t.type = m, Oc(e, t, m, l, h)) : (e = Qt(a.type, null, l, t, t.mode, h), e.ref = t.ref, e.return = t, t.child = e)
        }
        if (m = e.child, !nl(e, h)) {
            var N = m.memoizedProps;
            if (a = a.compare, a = a !== null ? a : Wn, a(N, l) && e.ref === t.ref) return Vn(e, t, h)
        }
        return t.flags |= 1, e = aa(m, l), e.ref = t.ref, e.return = t, t.child = e
    }

    function Oc(e, t, a, l, h) {
        if (e !== null) {
            var m = e.memoizedProps;
            if (Wn(m, l) && e.ref === t.ref)
                if (Ea = !1, t.pendingProps = l = m, nl(e, h)) (e.flags & 131072) !== 0 && (Ea = !0);
                else return t.lanes = e.lanes, Vn(e, t, h)
        }
        return To(e, t, a, l, h)
    }

    function No(e, t, a, l) {
        var h = l.children,
            m = e !== null ? e.memoizedState : null;
        if (e === null && t.stateNode === null && (t.stateNode = {
            _visibility: 1,
            _pendingMarkers: null,
            _retryCache: null,
            _transitions: null
        }), l.mode === "hidden") {
            if ((t.flags & 128) !== 0) {
                if (m = m !== null ? m.baseLanes | a : a, e !== null) {
                    for (l = t.child = e.child, h = 0; l !== null;) h = h | l.lanes | l.childLanes, l = l.sibling;
                    l = h & ~m
                } else l = 0, t.child = null;
                return Pd(e, t, m, a, l)
            }
            if ((a & 536870912) !== 0) t.memoizedState = {
                baseLanes: 0,
                cachePool: null
            }, e !== null && Rr(t, m !== null ? m.cachePool : null), m !== null ? C(t, m) : _(), ne(t);
            else return l = t.lanes = 536870912, Pd(e, t, m !== null ? m.baseLanes | a : a, a, l)
        } else m !== null ? (Rr(t, m.cachePool), C(t, m), ge(), t.memoizedState = null) : (e !== null && Rr(t, null), _(), ge());
        return Pa(e, t, h, a), t.child
    }

    function $l(e, t) {
        return e !== null && e.tag === 22 || t.stateNode !== null || (t.stateNode = {
            _visibility: 1,
            _pendingMarkers: null,
            _retryCache: null,
            _transitions: null
        }), t.sibling
    }

    function Pd(e, t, a, l, h) {
        var m = Ar();
        return m = m === null ? null : {
            parent: Yt._currentValue,
            pool: m
        }, t.memoizedState = {
            baseLanes: a,
            cachePool: m
        }, e !== null && Rr(t, null), _(), ne(t), e !== null && Da(e, t, l, !0), t.childLanes = h, null
    }

    function Ha(e, t) {
        return t = Ro({
            mode: t.mode,
            children: t.children
        }, e.mode), t.ref = e.ref, e.child = t, t.return = e, t
    }

    function Wa(e, t, a) {
        return un(t, e.child, null, a), e = Ha(t, t.pendingProps), e.flags |= 2, me(t), t.memoizedState = null, e
    }

    function Wd(e, t, a) {
        var l = t.pendingProps,
            h = (t.flags & 128) !== 0;
        if (t.flags &= -129, e === null) {
            if (Qe) {
                if (l.mode === "hidden") return e = Ha(t, l), t.lanes = 536870912, $l(null, e);
                if (q(t), (e = Dt) ? (e = Jm(e, Na), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
                    dehydrated: e,
                    treeContext: rn !== null ? {
                        id: At,
                        overflow: Ia
                    } : null,
                    retryLane: 536870912,
                    hydrationErrors: null
                }, a = Xa(e), a.return = t, t.child = a, la = t, Dt = null)) : e = null, e === null) throw sn(t);
                return t.lanes = 536870912, null
            }
            return Ha(t, l)
        }
        var m = e.memoizedState;
        if (m !== null) {
            var N = m.dehydrated;
            if (q(t), h)
                if (t.flags & 256) t.flags &= -257, t = Wa(e, t, a);
                else if (t.memoizedState !== null) t.child = e.child, t.flags |= 128, t = null;
                else throw Error(d(558));
            else if (Ea || Da(e, t, a, !1), h = (a & e.childLanes) !== 0, Ea || h) {
                if (l = Pt, l !== null && (N = ya(l, a), N !== 0 && N !== m.retryLane)) throw m.retryLane = N, xt(e, N), wl(l, e, N), ld;
                rf(), t = Wa(e, t, a)
            } else e = m.treeContext, Dt = bi(N.nextSibling), la = t, Qe = !0, ja = null, Na = !1, e !== null && uc(t, e), t = Ha(t, l), t.flags |= 4096;
            return t
        }
        return e = aa(e.child, {
            mode: l.mode,
            children: l.children
        }), e.ref = t.ref, t.child = e, e.return = t, e
    }

    function Pi(e, t) {
        var a = t.ref;
        if (a === null) e !== null && e.ref !== null && (t.flags |= 4194816);
        else {
            if (typeof a != "function" && typeof a != "object") throw Error(d(284));
            (e === null || e.ref !== a) && (t.flags |= 4194816)
        }
    }

    function To(e, t, a, l, h) {
        return _n(t), a = Xn(e, t, a, l, void 0, h), l = Ii(), e !== null && !Ea ? (Wl(e, t, h), Vn(e, t, h)) : (Qe && l && us(t), t.flags |= 1, Pa(e, t, a, h), t.child)
    }

    function Br(e, t, a, l, h, m) {
        return _n(t), t.updateQueue = null, a = Dn(t, l, a, h), Ta(e), l = Ii(), e !== null && !Ea ? (Wl(e, t, m), Vn(e, t, m)) : (Qe && l && us(t), t.flags |= 1, Pa(e, t, a, m), t.child)
    }

    function hu(e, t, a, l, h) {
        if (_n(t), t.stateNode === null) {
            var m = $e,
                N = a.contextType;
            typeof N == "object" && N !== null && (m = Ct(N)), m = new a(l, m), t.memoizedState = m.state !== null && m.state !== void 0 ? m.state : null, m.updater = uu, t.stateNode = m, m._reactInternals = t, m = t.stateNode, m.props = l, m.state = t.memoizedState, m.refs = {}, al(t), N = a.contextType, m.context = typeof N == "object" && N !== null ? Ct(N) : $e, m.state = t.memoizedState, N = a.getDerivedStateFromProps, typeof N == "function" && (Lr(t, a, N, l), m.state = t.memoizedState), typeof a.getDerivedStateFromProps == "function" || typeof m.getSnapshotBeforeUpdate == "function" || typeof m.UNSAFE_componentWillMount != "function" && typeof m.componentWillMount != "function" || (N = m.state, typeof m.componentWillMount == "function" && m.componentWillMount(), typeof m.UNSAFE_componentWillMount == "function" && m.UNSAFE_componentWillMount(), N !== m.state && uu.enqueueReplaceState(m, m.state, null), vl(t, l, m, h), Vi(), m.state = t.memoizedState), typeof m.componentDidMount == "function" && (t.flags |= 4194308), l = !0
        } else if (e === null) {
            m = t.stateNode;
            var j = t.memoizedProps,
                F = ql(a, j);
            m.props = F;
            var K = m.context,
                se = a.contextType;
            N = $e, typeof se == "object" && se !== null && (N = Ct(se));
            var de = a.getDerivedStateFromProps;
            se = typeof de == "function" || typeof m.getSnapshotBeforeUpdate == "function", j = t.pendingProps !== j, se || typeof m.UNSAFE_componentWillReceiveProps != "function" && typeof m.componentWillReceiveProps != "function" || (j || K !== N) && yo(t, m, l, N), ml = !1;
            var $ = t.memoizedState;
            m.state = $, vl(t, l, m, h), Vi(), K = t.memoizedState, j || $ !== K || ml ? (typeof de == "function" && (Lr(t, a, de, l), K = t.memoizedState), (F = ml || Ac(t, a, F, l, $, K, N)) ? (se || typeof m.UNSAFE_componentWillMount != "function" && typeof m.componentWillMount != "function" || (typeof m.componentWillMount == "function" && m.componentWillMount(), typeof m.UNSAFE_componentWillMount == "function" && m.UNSAFE_componentWillMount()), typeof m.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof m.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = l, t.memoizedState = K), m.props = l, m.state = K, m.context = N, l = F) : (typeof m.componentDidMount == "function" && (t.flags |= 4194308), l = !1)
        } else {
            m = t.stateNode, Xi(e, t), N = t.memoizedProps, se = ql(a, N), m.props = se, de = t.pendingProps, $ = m.context, K = a.contextType, F = $e, typeof K == "object" && K !== null && (F = Ct(K)), j = a.getDerivedStateFromProps, (K = typeof j == "function" || typeof m.getSnapshotBeforeUpdate == "function") || typeof m.UNSAFE_componentWillReceiveProps != "function" && typeof m.componentWillReceiveProps != "function" || (N !== de || $ !== F) && yo(t, m, l, F), ml = !1, $ = t.memoizedState, m.state = $, vl(t, l, m, h), Vi();
            var le = t.memoizedState;
            N !== de || $ !== le || ml || e !== null && e.dependencies !== null && $n(e.dependencies) ? (typeof j == "function" && (Lr(t, a, j, l), le = t.memoizedState), (se = ml || Ac(t, a, se, l, $, le, F) || e !== null && e.dependencies !== null && $n(e.dependencies)) ? (K || typeof m.UNSAFE_componentWillUpdate != "function" && typeof m.componentWillUpdate != "function" || (typeof m.componentWillUpdate == "function" && m.componentWillUpdate(l, le, F), typeof m.UNSAFE_componentWillUpdate == "function" && m.UNSAFE_componentWillUpdate(l, le, F)), typeof m.componentDidUpdate == "function" && (t.flags |= 4), typeof m.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof m.componentDidUpdate != "function" || N === e.memoizedProps && $ === e.memoizedState || (t.flags |= 4), typeof m.getSnapshotBeforeUpdate != "function" || N === e.memoizedProps && $ === e.memoizedState || (t.flags |= 1024), t.memoizedProps = l, t.memoizedState = le), m.props = l, m.state = le, m.context = F, l = se) : (typeof m.componentDidUpdate != "function" || N === e.memoizedProps && $ === e.memoizedState || (t.flags |= 4), typeof m.getSnapshotBeforeUpdate != "function" || N === e.memoizedProps && $ === e.memoizedState || (t.flags |= 1024), l = !1)
        }
        return m = l, Pi(e, t), l = (t.flags & 128) !== 0, m || l ? (m = t.stateNode, a = l && typeof a.getDerivedStateFromError != "function" ? null : m.render(), t.flags |= 1, e !== null && l ? (t.child = un(t, e.child, null, h), t.child = un(t, null, a, h)) : Pa(e, t, a, h), t.memoizedState = m.state, e = t.child) : e = Vn(e, t, h), e
    }

    function id(e, t, a, l) {
        return Hn(), t.flags |= 256, Pa(e, t, a, l), t.child
    }
    var Wi = {
        dehydrated: null,
        treeContext: null,
        retryLane: 0,
        hydrationErrors: null
    };

    function Eo(e) {
        return {
            baseLanes: e,
            cachePool: qt()
        }
    }

    function Mo(e, t, a) {
        return e = e !== null ? e.childLanes & ~a : 0, t && (e |= ti), e
    }

    function rd(e, t, a) {
        var l = t.pendingProps,
            h = !1,
            m = (t.flags & 128) !== 0,
            N;
        if ((N = m) || (N = e !== null && e.memoizedState === null ? !1 : (Ae.current & 2) !== 0), N && (h = !0, t.flags &= -129), N = (t.flags & 32) !== 0, t.flags &= -33, e === null) {
            if (Qe) {
                if (h ? I(t) : ge(), (e = Dt) ? (e = Jm(e, Na), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
                    dehydrated: e,
                    treeContext: rn !== null ? {
                        id: At,
                        overflow: Ia
                    } : null,
                    retryLane: 536870912,
                    hydrationErrors: null
                }, a = Xa(e), a.return = t, t.child = a, la = t, Dt = null)) : e = null, e === null) throw sn(t);
                return Uh(e) ? t.lanes = 32 : t.lanes = 536870912, null
            }
            var j = l.children;
            return l = l.fallback, h ? (ge(), h = t.mode, j = Ro({
                mode: "hidden",
                children: j
            }, h), l = Bt(l, h, a, null), j.return = t, l.return = t, j.sibling = l, t.child = j, l = t.child, l.memoizedState = Eo(a), l.childLanes = Mo(e, N, a), t.memoizedState = Wi, $l(null, l)) : (I(t), Ao(t, j))
        }
        var F = e.memoizedState;
        if (F !== null && (j = F.dehydrated, j !== null)) {
            if (m) t.flags & 256 ? (I(t), t.flags &= -257, t = _o(e, t, a)) : t.memoizedState !== null ? (ge(), t.child = e.child, t.flags |= 128, t = null) : (ge(), j = l.fallback, h = t.mode, l = Ro({
                mode: "visible",
                children: l.children
            }, h), j = Bt(j, h, a, null), j.flags |= 2, l.return = t, j.return = t, l.sibling = j, t.child = l, un(t, e.child, null, a), l = t.child, l.memoizedState = Eo(a), l.childLanes = Mo(e, N, a), t.memoizedState = Wi, t = $l(null, l));
            else if (I(t), Uh(j)) {
                if (N = j.nextSibling && j.nextSibling.dataset, N) var K = N.dgst;
                N = K, l = Error(d(419)), l.stack = "", l.digest = N, Yl({
                    value: l,
                    source: null,
                    stack: null
                }), t = _o(e, t, a)
            } else if (Ea || Da(e, t, a, !1), N = (a & e.childLanes) !== 0, Ea || N) {
                if (N = Pt, N !== null && (l = ya(N, a), l !== 0 && l !== F.retryLane)) throw F.retryLane = l, xt(e, l), wl(N, e, l), ld;
                Lh(j) || rf(), t = _o(e, t, a)
            } else Lh(j) ? (t.flags |= 192, t.child = e.child, t = null) : (e = F.treeContext, Dt = bi(j.nextSibling), la = t, Qe = !0, ja = null, Na = !1, e !== null && uc(t, e), t = Ao(t, l.children), t.flags |= 4096);
            return t
        }
        return h ? (ge(), j = l.fallback, h = t.mode, F = e.child, K = F.sibling, l = aa(F, {
            mode: "hidden",
            children: l.children
        }), l.subtreeFlags = F.subtreeFlags & 65011712, K !== null ? j = aa(K, j) : (j = Bt(j, h, a, null), j.flags |= 2), j.return = t, l.return = t, l.sibling = j, t.child = l, $l(null, l), l = t.child, j = e.child.memoizedState, j === null ? j = Eo(a) : (h = j.cachePool, h !== null ? (F = Yt._currentValue, h = h.parent !== F ? {
            parent: F,
            pool: F
        } : h) : h = qt(), j = {
            baseLanes: j.baseLanes | a,
            cachePool: h
        }), l.memoizedState = j, l.childLanes = Mo(e, N, a), t.memoizedState = Wi, $l(e.child, l)) : (I(t), a = e.child, e = a.sibling, a = aa(a, {
            mode: "visible",
            children: l.children
        }), a.return = t, a.sibling = null, e !== null && (N = t.deletions, N === null ? (t.deletions = [e], t.flags |= 16) : N.push(e)), t.child = a, t.memoizedState = null, a)
    }

    function Ao(e, t) {
        return t = Ro({
            mode: "visible",
            children: t
        }, e.mode), t.return = e, e.child = t
    }

    function Ro(e, t) {
        return e = zt(22, e, null, t), e.lanes = 0, e
    }

    function _o(e, t, a) {
        return un(t, e.child, null, a), e = Ao(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e
    }

    function sd(e, t, a) {
        e.lanes |= t;
        var l = e.alternate;
        l !== null && (l.lanes |= t), gl(e.return, t, a)
    }

    function Oo(e, t, a, l, h, m) {
        var N = e.memoizedState;
        N === null ? e.memoizedState = {
            isBackwards: t,
            rendering: null,
            renderingStartTime: 0,
            last: l,
            tail: a,
            tailMode: h,
            treeForkCount: m
        } : (N.isBackwards = t, N.rendering = null, N.renderingStartTime = 0, N.last = l, N.tail = a, N.tailMode = h, N.treeForkCount = m)
    }

    function cd(e, t, a) {
        var l = t.pendingProps,
            h = l.revealOrder,
            m = l.tail;
        l = l.children;
        var N = Ae.current,
            j = (N & 2) !== 0;
        if (j ? (N = N & 1 | 2, t.flags |= 128) : N &= 1, nt(Ae, N), Pa(e, t, l, a), l = Qe ? ln : 0, !j && e !== null && (e.flags & 128) !== 0) e: for (e = t.child; e !== null;) {
            if (e.tag === 13) e.memoizedState !== null && sd(e, a, t);
            else if (e.tag === 19) sd(e, a, t);
            else if (e.child !== null) {
                e.child.return = e, e = e.child;
                continue
            }
            if (e === t) break e;
            for (; e.sibling === null;) {
                if (e.return === null || e.return === t) break e;
                e = e.return
            }
            e.sibling.return = e.return, e = e.sibling
        }
        switch (h) {
            case "forwards":
                for (a = t.child, h = null; a !== null;) e = a.alternate, e !== null && Ie(e) === null && (h = a), a = a.sibling;
                a = h, a === null ? (h = t.child, t.child = null) : (h = a.sibling, a.sibling = null), Oo(t, !1, h, a, m, l);
                break;
            case "backwards":
            case "unstable_legacy-backwards":
                for (a = null, h = t.child, t.child = null; h !== null;) {
                    if (e = h.alternate, e !== null && Ie(e) === null) {
                        t.child = h;
                        break
                    }
                    e = h.sibling, h.sibling = a, a = h, h = e
                }
                Oo(t, !0, a, null, m, l);
                break;
            case "together":
                Oo(t, !1, null, null, void 0, l);
                break;
            default:
                t.memoizedState = null
        }
        return t.child
    }

    function Vn(e, t, a) {
        if (e !== null && (t.dependencies = e.dependencies), Dc |= t.lanes, (a & t.childLanes) === 0)
            if (e !== null) {
                if (Da(e, t, a, !1), (a & t.childLanes) === 0) return null
            } else return null;
        if (e !== null && t.child !== e.child) throw Error(d(153));
        if (t.child !== null) {
            for (e = t.child, a = aa(e, e.pendingProps), t.child = a, a.return = t; e.sibling !== null;) e = e.sibling, a = a.sibling = aa(e, e.pendingProps), a.return = t;
            a.sibling = null
        }
        return t.child
    }

    function nl(e, t) {
        return (e.lanes & t) !== 0 ? !0 : (e = e.dependencies, !!(e !== null && $n(e)))
    }

    function Jd(e, t, a) {
        switch (t.tag) {
            case 3:
                er(t, t.stateNode.containerInfo), cn(t, Yt, e.memoizedState.cache), Hn();
                break;
            case 27:
            case 5:
                Jc(t);
                break;
            case 4:
                er(t, t.stateNode.containerInfo);
                break;
            case 10:
                cn(t, t.type, t.memoizedProps.value);
                break;
            case 31:
                if (t.memoizedState !== null) return t.flags |= 128, q(t), null;
                break;
            case 13:
                var l = t.memoizedState;
                if (l !== null) return l.dehydrated !== null ? (I(t), t.flags |= 128, null) : (a & t.child.childLanes) !== 0 ? rd(e, t, a) : (I(t), e = Vn(e, t, a), e !== null ? e.sibling : null);
                I(t);
                break;
            case 19:
                var h = (e.flags & 128) !== 0;
                if (l = (a & t.childLanes) !== 0, l || (Da(e, t, a, !1), l = (a & t.childLanes) !== 0), h) {
                    if (l) return cd(e, t, a);
                    t.flags |= 128
                }
                if (h = t.memoizedState, h !== null && (h.rendering = null, h.tail = null, h.lastEffect = null), nt(Ae, Ae.current), l) break;
                return null;
            case 22:
                return t.lanes = 0, No(e, t, a, t.pendingProps);
            case 24:
                cn(t, Yt, e.memoizedState.cache)
        }
        return Vn(e, t, a)
    }

    function Ig(e, t, a) {
        if (e !== null)
            if (e.memoizedProps !== t.pendingProps) Ea = !0;
            else {
                if (!nl(e, a) && (t.flags & 128) === 0) return Ea = !1, Jd(e, t, a);
                Ea = (e.flags & 131072) !== 0
            }
        else Ea = !1, Qe && (t.flags & 1048576) !== 0 && cc(t, ln, t.index);
        switch (t.lanes = 0, t.tag) {
            case 16:
                e: {
                    var l = t.pendingProps;
                    if (e = el(t.elementType), t.type = e, typeof e == "function") tt(e) ? (l = ql(e, l), t.tag = 1, t = hu(null, t, e, l, a)) : (t.tag = 0, t = To(null, t, e, l, a));
                    else {
                        if (e != null) {
                            var h = e.$$typeof;
                            if (h === he) {
                                t.tag = 11, t = Rc(null, t, e, l, a);
                                break e
                            } else if (h === ft) {
                                t.tag = 14, t = _c(null, t, e, l, a);
                                break e
                            }
                        }
                        throw t = Ye(e) || e, Error(d(306, t, ""))
                    }
                }
                return t;
            case 0:
                return To(e, t, t.type, t.pendingProps, a);
            case 1:
                return l = t.type, h = ql(l, t.pendingProps), hu(e, t, l, h, a);
            case 3:
                e: {
                    if (er(t, t.stateNode.containerInfo), e === null) throw Error(d(387)); l = t.pendingProps;
                    var m = t.memoizedState; h = m.element,
                        Xi(e, t),
                        vl(t, l, null, a);
                    var N = t.memoizedState;
                    if (l = N.cache, cn(t, Yt, l), l !== m.cache && Tr(t, [Yt], a, !0), Vi(), l = N.element, m.isDehydrated)
                        if (m = {
                            element: l,
                            isDehydrated: !1,
                            cache: N.cache
                        }, t.updateQueue.baseState = m, t.memoizedState = m, t.flags & 256) {
                            t = id(e, t, l, a);
                            break e
                        } else if (l !== h) {
                            h = Va(Error(d(424)), t), Yl(h), t = id(e, t, l, a);
                            break e
                        } else
                            for (e = t.stateNode.containerInfo, e.nodeType === 9 ? e = e.body : e = e.nodeName === "HTML" ? e.ownerDocument.body : e, Dt = bi(e.firstChild), la = t, Qe = !0, ja = null, Na = !0, a = mc(t, null, l, a), t.child = a; a;) a.flags = a.flags & -3 | 4096, a = a.sibling;
                    else {
                        if (Hn(), l === h) {
                            t = Vn(e, t, a);
                            break e
                        }
                        Pa(e, t, l, a)
                    }
                    t = t.child
                }
                return t;
            case 26:
                return Pi(e, t), e === null ? (a = av(t.type, null, t.pendingProps, null)) ? t.memoizedState = a : Qe || (a = t.type, e = t.pendingProps, l = hf(ga.current).createElement(a), l[Sa] = t, l[qa] = e, kn(l, a, e), va(l), t.stateNode = l) : t.memoizedState = av(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
            case 27:
                return Jc(t), e === null && Qe && (l = t.stateNode = $m(t.type, t.pendingProps, ga.current), la = t, Na = !0, h = Dt, Hc(t.type) ? (Bh = h, Dt = bi(l.firstChild)) : Dt = h), Pa(e, t, t.pendingProps.children, a), Pi(e, t), e === null && (t.flags |= 4194304), t.child;
            case 5:
                return e === null && Qe && ((h = l = Dt) && (l = zb(l, t.type, t.pendingProps, Na), l !== null ? (t.stateNode = l, la = t, Dt = bi(l.firstChild), Na = !1, h = !0) : h = !1), h || sn(t)), Jc(t), h = t.type, m = t.pendingProps, N = e !== null ? e.memoizedProps : null, l = m.children, jh(h, m) ? l = null : N !== null && jh(h, N) && (t.flags |= 32), t.memoizedState !== null && (h = Xn(e, t, gs, null, null, a), Cd._currentValue = h), Pi(e, t), Pa(e, t, l, a), t.child;
            case 6:
                return e === null && Qe && ((e = a = Dt) && (a = jb(a, t.pendingProps, Na), a !== null ? (t.stateNode = a, la = t, Dt = null, e = !0) : e = !1), e || sn(t)), null;
            case 13:
                return rd(e, t, a);
            case 4:
                return er(t, t.stateNode.containerInfo), l = t.pendingProps, e === null ? t.child = un(t, null, l, a) : Pa(e, t, l, a), t.child;
            case 11:
                return Rc(e, t, t.type, t.pendingProps, a);
            case 7:
                return Pa(e, t, t.pendingProps, a), t.child;
            case 8:
                return Pa(e, t, t.pendingProps.children, a), t.child;
            case 12:
                return Pa(e, t, t.pendingProps.children, a), t.child;
            case 10:
                return l = t.pendingProps, cn(t, t.type, l.value), Pa(e, t, l.children, a), t.child;
            case 9:
                return h = t.type._context, l = t.pendingProps.children, _n(t), h = Ct(h), l = l(h), t.flags |= 1, Pa(e, t, l, a), t.child;
            case 14:
                return _c(e, t, t.type, t.pendingProps, a);
            case 15:
                return Oc(e, t, t.type, t.pendingProps, a);
            case 19:
                return cd(e, t, a);
            case 31:
                return Wd(e, t, a);
            case 22:
                return No(e, t, a, t.pendingProps);
            case 24:
                return _n(t), l = Ct(Yt), e === null ? (h = Ar(), h === null && (h = Pt, m = fc(), h.pooledCache = m, m.refCount++, m !== null && (h.pooledCacheLanes |= a), h = m), t.memoizedState = {
                    parent: l,
                    cache: h
                }, al(t), cn(t, Yt, h)) : ((e.lanes & a) !== 0 && (Xi(e, t), vl(t, null, null, a), Vi()), h = e.memoizedState, m = t.memoizedState, h.parent !== l ? (h = {
                    parent: l,
                    cache: l
                }, t.memoizedState = h, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = h), cn(t, Yt, l)) : (l = m.cache, cn(t, Yt, l), l !== h.cache && Tr(t, [Yt], a, !0))), Pa(e, t, t.pendingProps.children, a), t.child;
            case 29:
                throw t.pendingProps
        }
        throw Error(d(156, t.tag))
    }

    function ws(e) {
        e.flags |= 4
    }

    function rh(e, t, a, l, h) {
        if ((t = (e.mode & 32) !== 0) && (t = !1), t) {
            if (e.flags |= 16777216, (h & 335544128) === h)
                if (e.stateNode.complete) e.flags |= 8192;
                else if (xm()) e.flags |= 8192;
                else throw on = mi, gi
        } else e.flags &= -16777217
    }

    function Zg(e, t) {
        if (t.type !== "stylesheet" || (t.state.loading & 4) !== 0) e.flags &= -16777217;
        else if (e.flags |= 16777216, !sv(t))
            if (xm()) e.flags |= 8192;
            else throw on = mi, gi
    }

    function Kd(e, t) {
        t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag !== 22 ? $c() : 536870912, e.lanes |= t, bu |= t)
    }

    function od(e, t) {
        if (!Qe) switch (e.tailMode) {
            case "hidden":
                t = e.tail;
                for (var a = null; t !== null;) t.alternate !== null && (a = t), t = t.sibling;
                a === null ? e.tail = null : a.sibling = null;
                break;
            case "collapsed":
                a = e.tail;
                for (var l = null; a !== null;) a.alternate !== null && (l = a), a = a.sibling;
                l === null ? t || e.tail === null ? e.tail = null : e.tail.sibling = null : l.sibling = null
        }
    }

    function ia(e) {
        var t = e.alternate !== null && e.alternate.child === e.child,
            a = 0,
            l = 0;
        if (t)
            for (var h = e.child; h !== null;) a |= h.lanes | h.childLanes, l |= h.subtreeFlags & 65011712, l |= h.flags & 65011712, h.return = e, h = h.sibling;
        else
            for (h = e.child; h !== null;) a |= h.lanes | h.childLanes, l |= h.subtreeFlags, l |= h.flags, h.return = e, h = h.sibling;
        return e.subtreeFlags |= l, e.childLanes = a, t
    }

    function nb(e, t, a) {
        var l = t.pendingProps;
        switch (oc(t), t.tag) {
            case 16:
            case 15:
            case 0:
            case 11:
            case 7:
            case 8:
            case 12:
            case 9:
            case 14:
                return ia(t), null;
            case 1:
                return ia(t), null;
            case 3:
                return a = t.stateNode, l = null, e !== null && (l = e.memoizedState.cache), t.memoizedState.cache !== l && (t.flags |= 2048), pn(Yt), Cl(), a.pendingContext && (a.context = a.pendingContext, a.pendingContext = null), (e === null || e.child === null) && (hl(t) ? ws(t) : e === null || e.memoizedState.isDehydrated && (t.flags & 256) === 0 || (t.flags |= 1024, hi())), ia(t), null;
            case 26:
                var h = t.type,
                    m = t.memoizedState;
                return e === null ? (ws(t), m !== null ? (ia(t), Zg(t, m)) : (ia(t), rh(t, h, null, l, a))) : m ? m !== e.memoizedState ? (ws(t), ia(t), Zg(t, m)) : (ia(t), t.flags &= -16777217) : (e = e.memoizedProps, e !== l && ws(t), ia(t), rh(t, h, e, l, a)), null;
            case 27:
                if (ca(t), a = ga.current, h = t.type, e !== null && t.stateNode != null) e.memoizedProps !== l && ws(t);
                else {
                    if (!l) {
                        if (t.stateNode === null) throw Error(d(166));
                        return ia(t), null
                    }
                    e = gt.current, hl(t) ? dc(t) : (e = $m(h, l, a), t.stateNode = e, ws(t))
                }
                return ia(t), null;
            case 5:
                if (ca(t), h = t.type, e !== null && t.stateNode != null) e.memoizedProps !== l && ws(t);
                else {
                    if (!l) {
                        if (t.stateNode === null) throw Error(d(166));
                        return ia(t), null
                    }
                    if (m = gt.current, hl(t)) dc(t);
                    else {
                        var N = hf(ga.current);
                        switch (m) {
                            case 1:
                                m = N.createElementNS("http://www.w3.org/2000/svg", h);
                                break;
                            case 2:
                                m = N.createElementNS("http://www.w3.org/1998/Math/MathML", h);
                                break;
                            default:
                                switch (h) {
                                    case "svg":
                                        m = N.createElementNS("http://www.w3.org/2000/svg", h);
                                        break;
                                    case "math":
                                        m = N.createElementNS("http://www.w3.org/1998/Math/MathML", h);
                                        break;
                                    case "script":
                                        m = N.createElement("div"), m.innerHTML = "<script><\/script>", m = m.removeChild(m.firstChild);
                                        break;
                                    case "select":
                                        m = typeof l.is == "string" ? N.createElement("select", {
                                            is: l.is
                                        }) : N.createElement("select"), l.multiple ? m.multiple = !0 : l.size && (m.size = l.size);
                                        break;
                                    default:
                                        m = typeof l.is == "string" ? N.createElement(h, {
                                            is: l.is
                                        }) : N.createElement(h)
                                }
                        }
                        m[Sa] = t, m[qa] = l;
                        e: for (N = t.child; N !== null;) {
                            if (N.tag === 5 || N.tag === 6) m.appendChild(N.stateNode);
                            else if (N.tag !== 4 && N.tag !== 27 && N.child !== null) {
                                N.child.return = N, N = N.child;
                                continue
                            }
                            if (N === t) break e;
                            for (; N.sibling === null;) {
                                if (N.return === null || N.return === t) break e;
                                N = N.return
                            }
                            N.sibling.return = N.return, N = N.sibling
                        }
                        t.stateNode = m;
                        e: switch (kn(m, h, l), h) {
                            case "button":
                            case "input":
                            case "select":
                            case "textarea":
                                l = !!l.autoFocus;
                                break e;
                            case "img":
                                l = !0;
                                break e;
                            default:
                                l = !1
                        }
                        l && ws(t)
                    }
                }
                return ia(t), rh(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, a), null;
            case 6:
                if (e && t.stateNode != null) e.memoizedProps !== l && ws(t);
                else {
                    if (typeof l != "string" && t.stateNode === null) throw Error(d(166));
                    if (e = ga.current, hl(t)) {
                        if (e = t.stateNode, a = t.memoizedProps, l = null, h = la, h !== null) switch (h.tag) {
                            case 27:
                            case 5:
                                l = h.memoizedProps
                        }
                        e[Sa] = t, e = !!(e.nodeValue === a || l !== null && l.suppressHydrationWarning === !0 || Ym(e.nodeValue, a)), e || sn(t, !0)
                    } else e = hf(e).createTextNode(l), e[Sa] = t, t.stateNode = e
                }
                return ia(t), null;
            case 31:
                if (a = t.memoizedState, e === null || e.memoizedState !== null) {
                    if (l = hl(t), a !== null) {
                        if (e === null) {
                            if (!l) throw Error(d(318));
                            if (e = t.memoizedState, e = e !== null ? e.dehydrated : null, !e) throw Error(d(557));
                            e[Sa] = t
                        } else Hn(), (t.flags & 128) === 0 && (t.memoizedState = null), t.flags |= 4;
                        ia(t), e = !1
                    } else a = hi(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), e = !0;
                    if (!e) return t.flags & 256 ? (me(t), t) : (me(t), null);
                    if ((t.flags & 128) !== 0) throw Error(d(558))
                }
                return ia(t), null;
            case 13:
                if (l = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
                    if (h = hl(t), l !== null && l.dehydrated !== null) {
                        if (e === null) {
                            if (!h) throw Error(d(318));
                            if (h = t.memoizedState, h = h !== null ? h.dehydrated : null, !h) throw Error(d(317));
                            h[Sa] = t
                        } else Hn(), (t.flags & 128) === 0 && (t.memoizedState = null), t.flags |= 4;
                        ia(t), h = !1
                    } else h = hi(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = h), h = !0;
                    if (!h) return t.flags & 256 ? (me(t), t) : (me(t), null)
                }
                return me(t), (t.flags & 128) !== 0 ? (t.lanes = a, t) : (a = l !== null, e = e !== null && e.memoizedState !== null, a && (l = t.child, h = null, l.alternate !== null && l.alternate.memoizedState !== null && l.alternate.memoizedState.cachePool !== null && (h = l.alternate.memoizedState.cachePool.pool), m = null, l.memoizedState !== null && l.memoizedState.cachePool !== null && (m = l.memoizedState.cachePool.pool), m !== h && (l.flags |= 2048)), a !== e && a && (t.child.flags |= 8192), Kd(t, t.updateQueue), ia(t), null);
            case 4:
                return Cl(), e === null && Ah(t.stateNode.containerInfo), ia(t), null;
            case 10:
                return pn(t.type), ia(t), null;
            case 19:
                if (mt(Ae), l = t.memoizedState, l === null) return ia(t), null;
                if (h = (t.flags & 128) !== 0, m = l.rendering, m === null)
                    if (h) od(l, !1);
                    else {
                        if (Ma !== 0 || e !== null && (e.flags & 128) !== 0)
                            for (e = t.child; e !== null;) {
                                if (m = Ie(e), m !== null) {
                                    for (t.flags |= 128, od(l, !1), e = m.updateQueue, t.updateQueue = e, Kd(t, e), t.subtreeFlags = 0, e = a, a = t.child; a !== null;) pt(a, e), a = a.sibling;
                                    return nt(Ae, Ae.current & 1 | 2), Qe && An(t, l.treeForkCount), t.child
                                }
                                e = e.sibling
                            }
                        l.tail !== null && gn() > af && (t.flags |= 128, h = !0, od(l, !1), t.lanes = 4194304)
                    }
                else {
                    if (!h)
                        if (e = Ie(m), e !== null) {
                            if (t.flags |= 128, h = !0, e = e.updateQueue, t.updateQueue = e, Kd(t, e), od(l, !0), l.tail === null && l.tailMode === "hidden" && !m.alternate && !Qe) return ia(t), null
                        } else 2 * gn() - l.renderingStartTime > af && a !== 536870912 && (t.flags |= 128, h = !0, od(l, !1), t.lanes = 4194304);
                    l.isBackwards ? (m.sibling = t.child, t.child = m) : (e = l.last, e !== null ? e.sibling = m : t.child = m, l.last = m)
                }
                return l.tail !== null ? (e = l.tail, l.rendering = e, l.tail = e.sibling, l.renderingStartTime = gn(), e.sibling = null, a = Ae.current, nt(Ae, h ? a & 1 | 2 : a & 1), Qe && An(t, l.treeForkCount), e) : (ia(t), null);
            case 22:
            case 23:
                return me(t), k(), l = t.memoizedState !== null, e !== null ? e.memoizedState !== null !== l && (t.flags |= 8192) : l && (t.flags |= 8192), l ? (a & 536870912) !== 0 && (t.flags & 128) === 0 && (ia(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : ia(t), a = t.updateQueue, a !== null && Kd(t, a.retryQueue), a = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (a = e.memoizedState.cachePool.pool), l = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (l = t.memoizedState.cachePool.pool), l !== a && (t.flags |= 2048), e !== null && mt(Il), null;
            case 24:
                return a = null, e !== null && (a = e.memoizedState.cache), t.memoizedState.cache !== a && (t.flags |= 2048), pn(Yt), ia(t), null;
            case 25:
                return null;
            case 30:
                return null
        }
        throw Error(d(156, t.tag))
    }

    function lb(e, t) {
        switch (oc(t), t.tag) {
            case 1:
                return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
            case 3:
                return pn(Yt), Cl(), e = t.flags, (e & 65536) !== 0 && (e & 128) === 0 ? (t.flags = e & -65537 | 128, t) : null;
            case 26:
            case 27:
            case 5:
                return ca(t), null;
            case 31:
                if (t.memoizedState !== null) {
                    if (me(t), t.alternate === null) throw Error(d(340));
                    Hn()
                }
                return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
            case 13:
                if (me(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
                    if (t.alternate === null) throw Error(d(340));
                    Hn()
                }
                return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
            case 19:
                return mt(Ae), null;
            case 4:
                return Cl(), null;
            case 10:
                return pn(t.type), null;
            case 22:
            case 23:
                return me(t), k(), e !== null && mt(Il), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
            case 24:
                return pn(Yt), null;
            case 25:
                return null;
            default:
                return null
        }
    }

    function Qg(e, t) {
        switch (oc(t), t.tag) {
            case 3:
                pn(Yt), Cl();
                break;
            case 26:
            case 27:
            case 5:
                ca(t);
                break;
            case 4:
                Cl();
                break;
            case 31:
                t.memoizedState !== null && me(t);
                break;
            case 13:
                me(t);
                break;
            case 19:
                mt(Ae);
                break;
            case 10:
                pn(t.type);
                break;
            case 22:
            case 23:
                me(t), k(), e !== null && mt(Il);
                break;
            case 24:
                pn(Yt)
        }
    }

    function ud(e, t) {
        try {
            var a = t.updateQueue,
                l = a !== null ? a.lastEffect : null;
            if (l !== null) {
                var h = l.next;
                a = h;
                do {
                    if ((a.tag & e) === e) {
                        l = void 0;
                        var m = a.create,
                            N = a.inst;
                        l = m(), N.destroy = l
                    }
                    a = a.next
                } while (a !== h)
            }
        } catch (j) {
            Ft(t, t.return, j)
        }
    }

    function zc(e, t, a) {
        try {
            var l = t.updateQueue,
                h = l !== null ? l.lastEffect : null;
            if (h !== null) {
                var m = h.next;
                l = m;
                do {
                    if ((l.tag & e) === e) {
                        var N = l.inst,
                            j = N.destroy;
                        if (j !== void 0) {
                            N.destroy = void 0, h = t;
                            var F = a,
                                K = j;
                            try {
                                K()
                            } catch (se) {
                                Ft(h, F, se)
                            }
                        }
                    }
                    l = l.next
                } while (l !== m)
            }
        } catch (se) {
            Ft(t, t.return, se)
        }
    }

    function Pg(e) {
        var t = e.updateQueue;
        if (t !== null) {
            var a = e.stateNode;
            try {
                o(t, a)
            } catch (l) {
                Ft(e, e.return, l)
            }
        }
    }

    function Wg(e, t, a) {
        a.props = ql(e.type, e.memoizedProps), a.state = e.memoizedState;
        try {
            a.componentWillUnmount()
        } catch (l) {
            Ft(e, t, l)
        }
    }

    function dd(e, t) {
        try {
            var a = e.ref;
            if (a !== null) {
                switch (e.tag) {
                    case 26:
                    case 27:
                    case 5:
                        var l = e.stateNode;
                        break;
                    case 30:
                        l = e.stateNode;
                        break;
                    default:
                        l = e.stateNode
                }
                typeof a == "function" ? e.refCleanup = a(l) : a.current = l
            }
        } catch (h) {
            Ft(e, t, h)
        }
    }

    function Hr(e, t) {
        var a = e.ref,
            l = e.refCleanup;
        if (a !== null)
            if (typeof l == "function") try {
                l()
            } catch (h) {
                Ft(e, t, h)
            } finally {
                e.refCleanup = null, e = e.alternate, e != null && (e.refCleanup = null)
            } else if (typeof a == "function") try {
                a(null)
            } catch (h) {
                Ft(e, t, h)
            } else a.current = null
    }

    function Jg(e) {
        var t = e.type,
            a = e.memoizedProps,
            l = e.stateNode;
        try {
            e: switch (t) {
                case "button":
                case "input":
                case "select":
                case "textarea":
                    a.autoFocus && l.focus();
                    break e;
                case "img":
                    a.src ? l.src = a.src : a.srcSet && (l.srcset = a.srcSet)
            }
        }
        catch (h) {
            Ft(e, e.return, h)
        }
    }

    function sh(e, t, a) {
        try {
            var l = e.stateNode;
            Eb(l, e.type, a, t), l[qa] = t
        } catch (h) {
            Ft(e, e.return, h)
        }
    }

    function Kg(e) {
        return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Hc(e.type) || e.tag === 4
    }

    function ch(e) {
        e: for (; ;) {
            for (; e.sibling === null;) {
                if (e.return === null || Kg(e.return)) return null;
                e = e.return
            }
            for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18;) {
                if (e.tag === 27 && Hc(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue e;
                e.child.return = e, e = e.child
            }
            if (!(e.flags & 2)) return e.stateNode
        }
    }

    function oh(e, t, a) {
        var l = e.tag;
        if (l === 5 || l === 6) e = e.stateNode, t ? (a.nodeType === 9 ? a.body : a.nodeName === "HTML" ? a.ownerDocument.body : a).insertBefore(e, t) : (t = a.nodeType === 9 ? a.body : a.nodeName === "HTML" ? a.ownerDocument.body : a, t.appendChild(e), a = a._reactRootContainer, a != null || t.onclick !== null || (t.onclick = Dl));
        else if (l !== 4 && (l === 27 && Hc(e.type) && (a = e.stateNode, t = null), e = e.child, e !== null))
            for (oh(e, t, a), e = e.sibling; e !== null;) oh(e, t, a), e = e.sibling
    }

    function qd(e, t, a) {
        var l = e.tag;
        if (l === 5 || l === 6) e = e.stateNode, t ? a.insertBefore(e, t) : a.appendChild(e);
        else if (l !== 4 && (l === 27 && Hc(e.type) && (a = e.stateNode), e = e.child, e !== null))
            for (qd(e, t, a), e = e.sibling; e !== null;) qd(e, t, a), e = e.sibling
    }

    function qg(e) {
        var t = e.stateNode,
            a = e.memoizedProps;
        try {
            for (var l = e.type, h = t.attributes; h.length;) t.removeAttributeNode(h[0]);
            kn(t, l, a), t[Sa] = e, t[qa] = a
        } catch (m) {
            Ft(e, e.return, m)
        }
    }
    var Cs = !1,
        Ja = !1,
        uh = !1,
        $g = typeof WeakSet == "function" ? WeakSet : Set,
        Cn = null;

    function ib(e, t) {
        if (e = e.containerInfo, Oh = yf, e = rc(e), sc(e)) {
            if ("selectionStart" in e) var a = {
                start: e.selectionStart,
                end: e.selectionEnd
            };
            else e: {
                a = (a = e.ownerDocument) && a.defaultView || window;
                var l = a.getSelection && a.getSelection();
                if (l && l.rangeCount !== 0) {
                    a = l.anchorNode;
                    var h = l.anchorOffset,
                        m = l.focusNode;
                    l = l.focusOffset;
                    try {
                        a.nodeType, m.nodeType
                    } catch {
                        a = null;
                        break e
                    }
                    var N = 0,
                        j = -1,
                        F = -1,
                        K = 0,
                        se = 0,
                        de = e,
                        $ = null;
                    t: for (; ;) {
                        for (var le; de !== a || h !== 0 && de.nodeType !== 3 || (j = N + h), de !== m || l !== 0 && de.nodeType !== 3 || (F = N + l), de.nodeType === 3 && (N += de.nodeValue.length), (le = de.firstChild) !== null;) $ = de, de = le;
                        for (; ;) {
                            if (de === e) break t;
                            if ($ === a && ++K === h && (j = N), $ === m && ++se === l && (F = N), (le = de.nextSibling) !== null) break;
                            de = $, $ = de.parentNode
                        }
                        de = le
                    }
                    a = j === -1 || F === -1 ? null : {
                        start: j,
                        end: F
                    }
                } else a = null
            }
            a = a || {
                start: 0,
                end: 0
            }
        } else a = null;
        for (zh = {
            focusedElem: e,
            selectionRange: a
        }, yf = !1, Cn = t; Cn !== null;)
            if (t = Cn, e = t.child, (t.subtreeFlags & 1028) !== 0 && e !== null) e.return = t, Cn = e;
            else
                for (; Cn !== null;) {
                    switch (t = Cn, m = t.alternate, e = t.flags, t.tag) {
                        case 0:
                            if ((e & 4) !== 0 && (e = t.updateQueue, e = e !== null ? e.events : null, e !== null))
                                for (a = 0; a < e.length; a++) h = e[a], h.ref.impl = h.nextImpl;
                            break;
                        case 11:
                        case 15:
                            break;
                        case 1:
                            if ((e & 1024) !== 0 && m !== null) {
                                e = void 0, a = t, h = m.memoizedProps, m = m.memoizedState, l = a.stateNode;
                                try {
                                    var Ne = ql(a.type, h);
                                    e = l.getSnapshotBeforeUpdate(Ne, m), l.__reactInternalSnapshotBeforeUpdate = e
                                } catch (ke) {
                                    Ft(a, a.return, ke)
                                }
                            }
                            break;
                        case 3:
                            if ((e & 1024) !== 0) {
                                if (e = t.stateNode.containerInfo, a = e.nodeType, a === 9) kh(e);
                                else if (a === 1) switch (e.nodeName) {
                                    case "HEAD":
                                    case "HTML":
                                    case "BODY":
                                        kh(e);
                                        break;
                                    default:
                                        e.textContent = ""
                                }
                            }
                            break;
                        case 5:
                        case 26:
                        case 27:
                        case 6:
                        case 4:
                        case 17:
                            break;
                        default:
                            if ((e & 1024) !== 0) throw Error(d(163))
                    }
                    if (e = t.sibling, e !== null) {
                        e.return = t.return, Cn = e;
                        break
                    }
                    Cn = t.return
                }
    }

    function em(e, t, a) {
        var l = a.flags;
        switch (a.tag) {
            case 0:
            case 11:
            case 15:
                Ts(e, a), l & 4 && ud(5, a);
                break;
            case 1:
                if (Ts(e, a), l & 4)
                    if (e = a.stateNode, t === null) try {
                        e.componentDidMount()
                    } catch (N) {
                        Ft(a, a.return, N)
                    } else {
                        var h = ql(a.type, t.memoizedProps);
                        t = t.memoizedState;
                        try {
                            e.componentDidUpdate(h, t, e.__reactInternalSnapshotBeforeUpdate)
                        } catch (N) {
                            Ft(a, a.return, N)
                        }
                    }
                l & 64 && Pg(a), l & 512 && dd(a, a.return);
                break;
            case 3:
                if (Ts(e, a), l & 64 && (e = a.updateQueue, e !== null)) {
                    if (t = null, a.child !== null) switch (a.child.tag) {
                        case 27:
                        case 5:
                            t = a.child.stateNode;
                            break;
                        case 1:
                            t = a.child.stateNode
                    }
                    try {
                        o(e, t)
                    } catch (N) {
                        Ft(a, a.return, N)
                    }
                }
                break;
            case 27:
                t === null && l & 4 && qg(a);
            case 26:
            case 5:
                Ts(e, a), t === null && l & 4 && Jg(a), l & 512 && dd(a, a.return);
                break;
            case 12:
                Ts(e, a);
                break;
            case 31:
                Ts(e, a), l & 4 && nm(e, a);
                break;
            case 13:
                Ts(e, a), l & 4 && lm(e, a), l & 64 && (e = a.memoizedState, e !== null && (e = e.dehydrated, e !== null && (a = gb.bind(null, a), Db(e, a))));
                break;
            case 22:
                if (l = a.memoizedState !== null || Cs, !l) {
                    t = t !== null && t.memoizedState !== null || Ja, h = Cs;
                    var m = Ja;
                    Cs = l, (Ja = t) && !m ? Es(e, a, (a.subtreeFlags & 8772) !== 0) : Ts(e, a), Cs = h, Ja = m
                }
                break;
            case 30:
                break;
            default:
                Ts(e, a)
        }
    }

    function tm(e) {
        var t = e.alternate;
        t !== null && (e.alternate = null, tm(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && wi(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null
    }
    var ha = null,
        xl = !1;

    function Ns(e, t, a) {
        for (a = a.child; a !== null;) am(e, t, a), a = a.sibling
    }

    function am(e, t, a) {
        if (pa && typeof pa.onCommitFiberUnmount == "function") try {
            pa.onCommitFiberUnmount(ni, a)
        } catch { }
        switch (a.tag) {
            case 26:
                Ja || Hr(a, t), Ns(e, t, a), a.memoizedState ? a.memoizedState.count-- : a.stateNode && (a = a.stateNode, a.parentNode.removeChild(a));
                break;
            case 27:
                Ja || Hr(a, t);
                var l = ha,
                    h = xl;
                Hc(a.type) && (ha = a.stateNode, xl = !1), Ns(e, t, a), yd(a.stateNode), ha = l, xl = h;
                break;
            case 5:
                Ja || Hr(a, t);
            case 6:
                if (l = ha, h = xl, ha = null, Ns(e, t, a), ha = l, xl = h, ha !== null)
                    if (xl) try {
                        (ha.nodeType === 9 ? ha.body : ha.nodeName === "HTML" ? ha.ownerDocument.body : ha).removeChild(a.stateNode)
                    } catch (m) {
                        Ft(a, t, m)
                    } else try {
                        ha.removeChild(a.stateNode)
                    } catch (m) {
                        Ft(a, t, m)
                    }
                break;
            case 18:
                ha !== null && (xl ? (e = ha, Pm(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, a.stateNode), Tu(e)) : Pm(ha, a.stateNode));
                break;
            case 4:
                l = ha, h = xl, ha = a.stateNode.containerInfo, xl = !0, Ns(e, t, a), ha = l, xl = h;
                break;
            case 0:
            case 11:
            case 14:
            case 15:
                zc(2, a, t), Ja || zc(4, a, t), Ns(e, t, a);
                break;
            case 1:
                Ja || (Hr(a, t), l = a.stateNode, typeof l.componentWillUnmount == "function" && Wg(a, t, l)), Ns(e, t, a);
                break;
            case 21:
                Ns(e, t, a);
                break;
            case 22:
                Ja = (l = Ja) || a.memoizedState !== null, Ns(e, t, a), Ja = l;
                break;
            default:
                Ns(e, t, a)
        }
    }

    function nm(e, t) {
        if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {
            e = e.dehydrated;
            try {
                Tu(e)
            } catch (a) {
                Ft(t, t.return, a)
            }
        }
    }

    function lm(e, t) {
        if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {
            Tu(e)
        } catch (a) {
            Ft(t, t.return, a)
        }
    }

    function rb(e) {
        switch (e.tag) {
            case 31:
            case 13:
            case 19:
                var t = e.stateNode;
                return t === null && (t = e.stateNode = new $g), t;
            case 22:
                return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new $g), t;
            default:
                throw Error(d(435, e.tag))
        }
    }

    function $d(e, t) {
        var a = rb(e);
        t.forEach(function (l) {
            if (!a.has(l)) {
                a.add(l);
                var h = mb.bind(null, e, l);
                l.then(h, h)
            }
        })
    }

    function pl(e, t) {
        var a = t.deletions;
        if (a !== null)
            for (var l = 0; l < a.length; l++) {
                var h = a[l],
                    m = e,
                    N = t,
                    j = N;
                e: for (; j !== null;) {
                    switch (j.tag) {
                        case 27:
                            if (Hc(j.type)) {
                                ha = j.stateNode, xl = !1;
                                break e
                            }
                            break;
                        case 5:
                            ha = j.stateNode, xl = !1;
                            break e;
                        case 3:
                        case 4:
                            ha = j.stateNode.containerInfo, xl = !0;
                            break e
                    }
                    j = j.return
                }
                if (ha === null) throw Error(d(160));
                am(m, N, h), ha = null, xl = !1, m = h.alternate, m !== null && (m.return = null), h.return = null
            }
        if (t.subtreeFlags & 13886)
            for (t = t.child; t !== null;) im(t, e), t = t.sibling
    }
    var Ji = null;

    function im(e, t) {
        var a = e.alternate,
            l = e.flags;
        switch (e.tag) {
            case 0:
            case 11:
            case 14:
            case 15:
                pl(t, e), yl(e), l & 4 && (zc(3, e, e.return), ud(3, e), zc(5, e, e.return));
                break;
            case 1:
                pl(t, e), yl(e), l & 512 && (Ja || a === null || Hr(a, a.return)), l & 64 && Cs && (e = e.updateQueue, e !== null && (l = e.callbacks, l !== null && (a = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = a === null ? l : a.concat(l))));
                break;
            case 26:
                var h = Ji;
                if (pl(t, e), yl(e), l & 512 && (Ja || a === null || Hr(a, a.return)), l & 4) {
                    var m = a !== null ? a.memoizedState : null;
                    if (l = e.memoizedState, a === null)
                        if (l === null)
                            if (e.stateNode === null) {
                                e: {
                                    l = e.type,
                                        a = e.memoizedProps,
                                        h = h.ownerDocument || h; t: switch (l) {
                                            case "title":
                                                m = h.getElementsByTagName("title")[0], (!m || m[St] || m[Sa] || m.namespaceURI === "http://www.w3.org/2000/svg" || m.hasAttribute("itemprop")) && (m = h.createElement(l), h.head.insertBefore(m, h.querySelector("head > title"))), kn(m, l, a), m[Sa] = e, va(m), l = m;
                                                break e;
                                            case "link":
                                                var N = iv("link", "href", h).get(l + (a.href || ""));
                                                if (N) {
                                                    for (var j = 0; j < N.length; j++)
                                                        if (m = N[j], m.getAttribute("href") === (a.href == null || a.href === "" ? null : a.href) && m.getAttribute("rel") === (a.rel == null ? null : a.rel) && m.getAttribute("title") === (a.title == null ? null : a.title) && m.getAttribute("crossorigin") === (a.crossOrigin == null ? null : a.crossOrigin)) {
                                                            N.splice(j, 1);
                                                            break t
                                                        }
                                                }
                                                m = h.createElement(l), kn(m, l, a), h.head.appendChild(m);
                                                break;
                                            case "meta":
                                                if (N = iv("meta", "content", h).get(l + (a.content || ""))) {
                                                    for (j = 0; j < N.length; j++)
                                                        if (m = N[j], m.getAttribute("content") === (a.content == null ? null : "" + a.content) && m.getAttribute("name") === (a.name == null ? null : a.name) && m.getAttribute("property") === (a.property == null ? null : a.property) && m.getAttribute("http-equiv") === (a.httpEquiv == null ? null : a.httpEquiv) && m.getAttribute("charset") === (a.charSet == null ? null : a.charSet)) {
                                                            N.splice(j, 1);
                                                            break t
                                                        }
                                                }
                                                m = h.createElement(l), kn(m, l, a), h.head.appendChild(m);
                                                break;
                                            default:
                                                throw Error(d(468, l))
                                        }
                                    m[Sa] = e,
                                        va(m),
                                        l = m
                                }
                                e.stateNode = l
                            }
                            else rv(h, e.type, e.stateNode);
                        else e.stateNode = lv(h, l, e.memoizedProps);
                    else m !== l ? (m === null ? a.stateNode !== null && (a = a.stateNode, a.parentNode.removeChild(a)) : m.count--, l === null ? rv(h, e.type, e.stateNode) : lv(h, l, e.memoizedProps)) : l === null && e.stateNode !== null && sh(e, e.memoizedProps, a.memoizedProps)
                }
                break;
            case 27:
                pl(t, e), yl(e), l & 512 && (Ja || a === null || Hr(a, a.return)), a !== null && l & 4 && sh(e, e.memoizedProps, a.memoizedProps);
                break;
            case 5:
                if (pl(t, e), yl(e), l & 512 && (Ja || a === null || Hr(a, a.return)), e.flags & 32) {
                    h = e.stateNode;
                    try {
                        dr(h, "")
                    } catch (Ne) {
                        Ft(e, e.return, Ne)
                    }
                }
                l & 4 && e.stateNode != null && (h = e.memoizedProps, sh(e, h, a !== null ? a.memoizedProps : h)), l & 1024 && (uh = !0);
                break;
            case 6:
                if (pl(t, e), yl(e), l & 4) {
                    if (e.stateNode === null) throw Error(d(162));
                    l = e.memoizedProps, a = e.stateNode;
                    try {
                        a.nodeValue = l
                    } catch (Ne) {
                        Ft(e, e.return, Ne)
                    }
                }
                break;
            case 3:
                if (vf = null, h = Ji, Ji = gf(t.containerInfo), pl(t, e), Ji = h, yl(e), l & 4 && a !== null && a.memoizedState.isDehydrated) try {
                    Tu(t.containerInfo)
                } catch (Ne) {
                    Ft(e, e.return, Ne)
                }
                uh && (uh = !1, rm(e));
                break;
            case 4:
                l = Ji, Ji = gf(e.stateNode.containerInfo), pl(t, e), yl(e), Ji = l;
                break;
            case 12:
                pl(t, e), yl(e);
                break;
            case 31:
                pl(t, e), yl(e), l & 4 && (l = e.updateQueue, l !== null && (e.updateQueue = null, $d(e, l)));
                break;
            case 13:
                pl(t, e), yl(e), e.child.flags & 8192 && e.memoizedState !== null != (a !== null && a.memoizedState !== null) && (tf = gn()), l & 4 && (l = e.updateQueue, l !== null && (e.updateQueue = null, $d(e, l)));
                break;
            case 22:
                h = e.memoizedState !== null;
                var F = a !== null && a.memoizedState !== null,
                    K = Cs,
                    se = Ja;
                if (Cs = K || h, Ja = se || F, pl(t, e), Ja = se, Cs = K, yl(e), l & 8192) e: for (t = e.stateNode, t._visibility = h ? t._visibility & -2 : t._visibility | 1, h && (a === null || F || Cs || Ja || zo(e)), a = null, t = e; ;) {
                    if (t.tag === 5 || t.tag === 26) {
                        if (a === null) {
                            F = a = t;
                            try {
                                if (m = F.stateNode, h) N = m.style, typeof N.setProperty == "function" ? N.setProperty("display", "none", "important") : N.display = "none";
                                else {
                                    j = F.stateNode;
                                    var de = F.memoizedProps.style,
                                        $ = de != null && de.hasOwnProperty("display") ? de.display : null;
                                    j.style.display = $ == null || typeof $ == "boolean" ? "" : ("" + $).trim()
                                }
                            } catch (Ne) {
                                Ft(F, F.return, Ne)
                            }
                        }
                    } else if (t.tag === 6) {
                        if (a === null) {
                            F = t;
                            try {
                                F.stateNode.nodeValue = h ? "" : F.memoizedProps
                            } catch (Ne) {
                                Ft(F, F.return, Ne)
                            }
                        }
                    } else if (t.tag === 18) {
                        if (a === null) {
                            F = t;
                            try {
                                var le = F.stateNode;
                                h ? Wm(le, !0) : Wm(F.stateNode, !1)
                            } catch (Ne) {
                                Ft(F, F.return, Ne)
                            }
                        }
                    } else if ((t.tag !== 22 && t.tag !== 23 || t.memoizedState === null || t === e) && t.child !== null) {
                        t.child.return = t, t = t.child;
                        continue
                    }
                    if (t === e) break e;
                    for (; t.sibling === null;) {
                        if (t.return === null || t.return === e) break e;
                        a === t && (a = null), t = t.return
                    }
                    a === t && (a = null), t.sibling.return = t.return, t = t.sibling
                }
                l & 4 && (l = e.updateQueue, l !== null && (a = l.retryQueue, a !== null && (l.retryQueue = null, $d(e, a))));
                break;
            case 19:
                pl(t, e), yl(e), l & 4 && (l = e.updateQueue, l !== null && (e.updateQueue = null, $d(e, l)));
                break;
            case 30:
                break;
            case 21:
                break;
            default:
                pl(t, e), yl(e)
        }
    }

    function yl(e) {
        var t = e.flags;
        if (t & 2) {
            try {
                for (var a, l = e.return; l !== null;) {
                    if (Kg(l)) {
                        a = l;
                        break
                    }
                    l = l.return
                }
                if (a == null) throw Error(d(160));
                switch (a.tag) {
                    case 27:
                        var h = a.stateNode,
                            m = ch(e);
                        qd(e, m, h);
                        break;
                    case 5:
                        var N = a.stateNode;
                        a.flags & 32 && (dr(N, ""), a.flags &= -33);
                        var j = ch(e);
                        qd(e, j, N);
                        break;
                    case 3:
                    case 4:
                        var F = a.stateNode.containerInfo,
                            K = ch(e);
                        oh(e, K, F);
                        break;
                    default:
                        throw Error(d(161))
                }
            } catch (se) {
                Ft(e, e.return, se)
            }
            e.flags &= -3
        }
        t & 4096 && (e.flags &= -4097)
    }

    function rm(e) {
        if (e.subtreeFlags & 1024)
            for (e = e.child; e !== null;) {
                var t = e;
                rm(t), t.tag === 5 && t.flags & 1024 && t.stateNode.reset(), e = e.sibling
            }
    }

    function Ts(e, t) {
        if (t.subtreeFlags & 8772)
            for (t = t.child; t !== null;) em(e, t.alternate, t), t = t.sibling
    }

    function zo(e) {
        for (e = e.child; e !== null;) {
            var t = e;
            switch (t.tag) {
                case 0:
                case 11:
                case 14:
                case 15:
                    zc(4, t, t.return), zo(t);
                    break;
                case 1:
                    Hr(t, t.return);
                    var a = t.stateNode;
                    typeof a.componentWillUnmount == "function" && Wg(t, t.return, a), zo(t);
                    break;
                case 27:
                    yd(t.stateNode);
                case 26:
                case 5:
                    Hr(t, t.return), zo(t);
                    break;
                case 22:
                    t.memoizedState === null && zo(t);
                    break;
                case 30:
                    zo(t);
                    break;
                default:
                    zo(t)
            }
            e = e.sibling
        }
    }

    function Es(e, t, a) {
        for (a = a && (t.subtreeFlags & 8772) !== 0, t = t.child; t !== null;) {
            var l = t.alternate,
                h = e,
                m = t,
                N = m.flags;
            switch (m.tag) {
                case 0:
                case 11:
                case 15:
                    Es(h, m, a), ud(4, m);
                    break;
                case 1:
                    if (Es(h, m, a), l = m, h = l.stateNode, typeof h.componentDidMount == "function") try {
                        h.componentDidMount()
                    } catch (K) {
                        Ft(l, l.return, K)
                    }
                    if (l = m, h = l.updateQueue, h !== null) {
                        var j = l.stateNode;
                        try {
                            var F = h.shared.hiddenCallbacks;
                            if (F !== null)
                                for (h.shared.hiddenCallbacks = null, h = 0; h < F.length; h++) r(F[h], j)
                        } catch (K) {
                            Ft(l, l.return, K)
                        }
                    }
                    a && N & 64 && Pg(m), dd(m, m.return);
                    break;
                case 27:
                    qg(m);
                case 26:
                case 5:
                    Es(h, m, a), a && l === null && N & 4 && Jg(m), dd(m, m.return);
                    break;
                case 12:
                    Es(h, m, a);
                    break;
                case 31:
                    Es(h, m, a), a && N & 4 && nm(h, m);
                    break;
                case 13:
                    Es(h, m, a), a && N & 4 && lm(h, m);
                    break;
                case 22:
                    m.memoizedState === null && Es(h, m, a), dd(m, m.return);
                    break;
                case 30:
                    break;
                default:
                    Es(h, m, a)
            }
            t = t.sibling
        }
    }

    function dh(e, t) {
        var a = null;
        e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (a = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== a && (e != null && e.refCount++, a != null && Er(a))
    }

    function fh(e, t) {
        e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Er(e))
    }

    function Ki(e, t, a, l) {
        if (t.subtreeFlags & 10256)
            for (t = t.child; t !== null;) sm(e, t, a, l), t = t.sibling
    }

    function sm(e, t, a, l) {
        var h = t.flags;
        switch (t.tag) {
            case 0:
            case 11:
            case 15:
                Ki(e, t, a, l), h & 2048 && ud(9, t);
                break;
            case 1:
                Ki(e, t, a, l);
                break;
            case 3:
                Ki(e, t, a, l), h & 2048 && (e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Er(e)));
                break;
            case 12:
                if (h & 2048) {
                    Ki(e, t, a, l), e = t.stateNode;
                    try {
                        var m = t.memoizedProps,
                            N = m.id,
                            j = m.onPostCommit;
                        typeof j == "function" && j(N, t.alternate === null ? "mount" : "update", e.passiveEffectDuration, -0)
                    } catch (F) {
                        Ft(t, t.return, F)
                    }
                } else Ki(e, t, a, l);
                break;
            case 31:
                Ki(e, t, a, l);
                break;
            case 13:
                Ki(e, t, a, l);
                break;
            case 23:
                break;
            case 22:
                m = t.stateNode, N = t.alternate, t.memoizedState !== null ? m._visibility & 2 ? Ki(e, t, a, l) : fd(e, t) : m._visibility & 2 ? Ki(e, t, a, l) : (m._visibility |= 2, gu(e, t, a, l, (t.subtreeFlags & 10256) !== 0 || !1)), h & 2048 && dh(N, t);
                break;
            case 24:
                Ki(e, t, a, l), h & 2048 && fh(t.alternate, t);
                break;
            default:
                Ki(e, t, a, l)
        }
    }

    function gu(e, t, a, l, h) {
        for (h = h && ((t.subtreeFlags & 10256) !== 0 || !1), t = t.child; t !== null;) {
            var m = e,
                N = t,
                j = a,
                F = l,
                K = N.flags;
            switch (N.tag) {
                case 0:
                case 11:
                case 15:
                    gu(m, N, j, F, h), ud(8, N);
                    break;
                case 23:
                    break;
                case 22:
                    var se = N.stateNode;
                    N.memoizedState !== null ? se._visibility & 2 ? gu(m, N, j, F, h) : fd(m, N) : (se._visibility |= 2, gu(m, N, j, F, h)), h && K & 2048 && dh(N.alternate, N);
                    break;
                case 24:
                    gu(m, N, j, F, h), h && K & 2048 && fh(N.alternate, N);
                    break;
                default:
                    gu(m, N, j, F, h)
            }
            t = t.sibling
        }
    }

    function fd(e, t) {
        if (t.subtreeFlags & 10256)
            for (t = t.child; t !== null;) {
                var a = e,
                    l = t,
                    h = l.flags;
                switch (l.tag) {
                    case 22:
                        fd(a, l), h & 2048 && dh(l.alternate, l);
                        break;
                    case 24:
                        fd(a, l), h & 2048 && fh(l.alternate, l);
                        break;
                    default:
                        fd(a, l)
                }
                t = t.sibling
            }
    }
    var hd = 8192;

    function mu(e, t, a) {
        if (e.subtreeFlags & hd)
            for (e = e.child; e !== null;) cm(e, t, a), e = e.sibling
    }

    function cm(e, t, a) {
        switch (e.tag) {
            case 26:
                mu(e, t, a), e.flags & hd && e.memoizedState !== null && Zb(a, Ji, e.memoizedState, e.memoizedProps);
                break;
            case 5:
                mu(e, t, a);
                break;
            case 3:
            case 4:
                var l = Ji;
                Ji = gf(e.stateNode.containerInfo), mu(e, t, a), Ji = l;
                break;
            case 22:
                e.memoizedState === null && (l = e.alternate, l !== null && l.memoizedState !== null ? (l = hd, hd = 16777216, mu(e, t, a), hd = l) : mu(e, t, a));
                break;
            default:
                mu(e, t, a)
        }
    }

    function om(e) {
        var t = e.alternate;
        if (t !== null && (e = t.child, e !== null)) {
            t.child = null;
            do t = e.sibling, e.sibling = null, e = t; while (e !== null)
        }
    }

    function gd(e) {
        var t = e.deletions;
        if ((e.flags & 16) !== 0) {
            if (t !== null)
                for (var a = 0; a < t.length; a++) {
                    var l = t[a];
                    Cn = l, dm(l, e)
                }
            om(e)
        }
        if (e.subtreeFlags & 10256)
            for (e = e.child; e !== null;) um(e), e = e.sibling
    }

    function um(e) {
        switch (e.tag) {
            case 0:
            case 11:
            case 15:
                gd(e), e.flags & 2048 && zc(9, e, e.return);
                break;
            case 3:
                gd(e);
                break;
            case 12:
                gd(e);
                break;
            case 22:
                var t = e.stateNode;
                e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, ef(e)) : gd(e);
                break;
            default:
                gd(e)
        }
    }

    function ef(e) {
        var t = e.deletions;
        if ((e.flags & 16) !== 0) {
            if (t !== null)
                for (var a = 0; a < t.length; a++) {
                    var l = t[a];
                    Cn = l, dm(l, e)
                }
            om(e)
        }
        for (e = e.child; e !== null;) {
            switch (t = e, t.tag) {
                case 0:
                case 11:
                case 15:
                    zc(8, t, t.return), ef(t);
                    break;
                case 22:
                    a = t.stateNode, a._visibility & 2 && (a._visibility &= -3, ef(t));
                    break;
                default:
                    ef(t)
            }
            e = e.sibling
        }
    }

    function dm(e, t) {
        for (; Cn !== null;) {
            var a = Cn;
            switch (a.tag) {
                case 0:
                case 11:
                case 15:
                    zc(8, a, t);
                    break;
                case 23:
                case 22:
                    if (a.memoizedState !== null && a.memoizedState.cachePool !== null) {
                        var l = a.memoizedState.cachePool.pool;
                        l != null && l.refCount++
                    }
                    break;
                case 24:
                    Er(a.memoizedState.cache)
            }
            if (l = a.child, l !== null) l.return = a, Cn = l;
            else e: for (a = e; Cn !== null;) {
                l = Cn;
                var h = l.sibling,
                    m = l.return;
                if (tm(l), l === a) {
                    Cn = null;
                    break e
                }
                if (h !== null) {
                    h.return = m, Cn = h;
                    break e
                }
                Cn = m
            }
        }
    }
    var sb = {
        getCacheForType: function (e) {
            var t = Ct(Yt),
                a = t.data.get(e);
            return a === void 0 && (a = e(), t.data.set(e, a)), a
        },
        cacheSignal: function () {
            return Ct(Yt).controller.signal
        }
    },
        cb = typeof WeakMap == "function" ? WeakMap : Map,
        _t = 0,
        Pt = null,
        rt = null,
        ut = 0,
        Ht = 0,
        ei = null,
        jc = !1,
        vu = !1,
        hh = !1,
        Ms = 0,
        Ma = 0,
        Dc = 0,
        jo = 0,
        gh = 0,
        ti = 0,
        bu = 0,
        md = null,
        Sl = null,
        mh = !1,
        tf = 0,
        fm = 0,
        af = 1 / 0,
        nf = null,
        kc = null,
        dn = 0,
        Lc = null,
        xu = null,
        As = 0,
        vh = 0,
        bh = null,
        hm = null,
        vd = 0,
        xh = null;

    function ai() {
        return (_t & 2) !== 0 && ut !== 0 ? ut & -ut : B.T !== null ? Nh() : Wr()
    }

    function gm() {
        if (ti === 0)
            if ((ut & 536870912) === 0 || Qe) {
                var e = ir;
                ir <<= 1, (ir & 3932160) === 0 && (ir = 262144), ti = e
            } else ti = 536870912;
        return e = V.current, e !== null && (e.flags |= 32), ti
    }

    function wl(e, t, a) {
        (e === Pt && (Ht === 2 || Ht === 9) || e.cancelPendingCommit !== null) && (pu(e, 0), Uc(e, ut, ti, !1)), Pr(e, a), ((_t & 2) === 0 || e !== Pt) && (e === Pt && ((_t & 2) === 0 && (jo |= a), Ma === 4 && Uc(e, ut, ti, !1)), Fr(e))
    }

    function mm(e, t, a) {
        if ((_t & 6) !== 0) throw Error(d(327));
        var l = !a && (t & 127) === 0 && (t & e.expiredLanes) === 0 || Ml(e, t),
            h = l ? db(e, t) : yh(e, t, !0),
            m = l;
        do {
            if (h === 0) {
                vu && !l && Uc(e, t, 0, !1);
                break
            } else {
                if (a = e.current.alternate, m && !ob(a)) {
                    h = yh(e, t, !1), m = !1;
                    continue
                }
                if (h === 2) {
                    if (m = t, e.errorRecoveryDisabledLanes & m) var N = 0;
                    else N = e.pendingLanes & -536870913, N = N !== 0 ? N : N & 536870912 ? 536870912 : 0;
                    if (N !== 0) {
                        t = N;
                        e: {
                            var j = e; h = md;
                            var F = j.current.memoizedState.isDehydrated;
                            if (F && (pu(j, N).flags |= 256), N = yh(j, N, !1), N !== 2) {
                                if (hh && !F) {
                                    j.errorRecoveryDisabledLanes |= m, jo |= m, h = 4;
                                    break e
                                }
                                m = Sl, Sl = h, m !== null && (Sl === null ? Sl = m : Sl.push.apply(Sl, m))
                            }
                            h = N
                        }
                        if (m = !1, h !== 2) continue
                    }
                }
                if (h === 1) {
                    pu(e, 0), Uc(e, t, 0, !0);
                    break
                }
                e: {
                    switch (l = e, m = h, m) {
                        case 0:
                        case 1:
                            throw Error(d(345));
                        case 4:
                            if ((t & 4194048) !== t) break;
                        case 6:
                            Uc(l, t, ti, !jc);
                            break e;
                        case 2:
                            Sl = null;
                            break;
                        case 3:
                        case 5:
                            break;
                        default:
                            throw Error(d(329))
                    }
                    if ((t & 62914560) === t && (h = tf + 300 - gn(), 10 < h)) {
                        if (Uc(l, t, ti, !jc), Si(l, 0, !0) !== 0) break e;
                        As = t, l.timeoutHandle = Zm(vm.bind(null, l, a, Sl, nf, mh, t, ti, jo, bu, jc, m, "Throttled", -0, 0), h);
                        break e
                    }
                    vm(l, a, Sl, nf, mh, t, ti, jo, bu, jc, m, null, -0, 0)
                }
            }
            break
        } while (!0);
        Fr(e)
    }

    function vm(e, t, a, l, h, m, N, j, F, K, se, de, $, le) {
        if (e.timeoutHandle = -1, de = t.subtreeFlags, de & 8192 || (de & 16785408) === 16785408) {
            de = {
                stylesheets: null,
                count: 0,
                imgCount: 0,
                imgBytes: 0,
                suspenseyImages: [],
                waitingForImages: !0,
                waitingForViewTransition: !1,
                unsuspend: Dl
            }, cm(t, m, de);
            var Ne = (m & 62914560) === m ? tf - gn() : (m & 4194048) === m ? fm - gn() : 0;
            if (Ne = Qb(de, Ne), Ne !== null) {
                As = m, e.cancelPendingCommit = Ne(Nm.bind(null, e, t, m, a, l, h, N, j, F, se, de, null, $, le)), Uc(e, m, N, !K);
                return
            }
        }
        Nm(e, t, m, a, l, h, N, j, F)
    }

    function ob(e) {
        for (var t = e; ;) {
            var a = t.tag;
            if ((a === 0 || a === 11 || a === 15) && t.flags & 16384 && (a = t.updateQueue, a !== null && (a = a.stores, a !== null)))
                for (var l = 0; l < a.length; l++) {
                    var h = a[l],
                        m = h.getSnapshot;
                    h = h.value;
                    try {
                        if (!za(m(), h)) return !1
                    } catch {
                        return !1
                    }
                }
            if (a = t.child, t.subtreeFlags & 16384 && a !== null) a.return = t, t = a;
            else {
                if (t === e) break;
                for (; t.sibling === null;) {
                    if (t.return === null || t.return === e) return !0;
                    t = t.return
                }
                t.sibling.return = t.return, t = t.sibling
            }
        }
        return !0
    }

    function Uc(e, t, a, l) {
        t &= ~gh, t &= ~jo, e.suspendedLanes |= t, e.pingedLanes &= ~t, l && (e.warmLanes |= t), l = e.expirationTimes;
        for (var h = t; 0 < h;) {
            var m = 31 - Fa(h),
                N = 1 << m;
            l[m] = -1, h &= ~N
        }
        a !== 0 && rr(e, a, t)
    }

    function lf() {
        return (_t & 6) === 0 ? (bd(0), !1) : !0
    }

    function ph() {
        if (rt !== null) {
            if (Ht === 0) var e = rt.return;
            else e = rt, Rt = Xl = null, Zi(e), jn = null, Gi = 0, e = rt;
            for (; e !== null;) Qg(e.alternate, e), e = e.return;
            rt = null
        }
    }

    function pu(e, t) {
        var a = e.timeoutHandle;
        a !== -1 && (e.timeoutHandle = -1, Rb(a)), a = e.cancelPendingCommit, a !== null && (e.cancelPendingCommit = null, a()), As = 0, ph(), Pt = e, rt = a = aa(e.current, null), ut = t, Ht = 0, ei = null, jc = !1, vu = Ml(e, t), hh = !1, bu = ti = gh = jo = Dc = Ma = 0, Sl = md = null, mh = !1, (t & 8) !== 0 && (t |= t & 32);
        var l = e.entangledLanes;
        if (l !== 0)
            for (e = e.entanglements, l &= t; 0 < l;) {
                var h = 31 - Fa(l),
                    m = 1 << h;
                t |= e[h], l &= ~m
            }
        return Ms = t, Ue(), a
    }

    function bm(e, t) {
        ye = null, B.H = xo, t === Zl || t === Ql ? (t = yn(), Ht = 3) : t === gi ? (t = yn(), Ht = 4) : Ht = t === ld ? 8 : t !== null && typeof t == "object" && typeof t.then == "function" ? 6 : 1, ei = t, rt === null && (Ma = 1, So(e, Va(t, e.current)))
    }

    function xm() {
        var e = V.current;
        return e === null ? !0 : (ut & 4194048) === ut ? H === null : (ut & 62914560) === ut || (ut & 536870912) !== 0 ? e === H : !1
    }

    function pm() {
        var e = B.H;
        return B.H = xo, e === null ? xo : e
    }

    function ym() {
        var e = B.A;
        return B.A = sb, e
    }

    function rf() {
        Ma = 4, jc || (ut & 4194048) !== ut && V.current !== null || (vu = !0), (Dc & 134217727) === 0 && (jo & 134217727) === 0 || Pt === null || Uc(Pt, ut, ti, !1)
    }

    function yh(e, t, a) {
        var l = _t;
        _t |= 2;
        var h = pm(),
            m = ym();
        (Pt !== e || ut !== t) && (nf = null, pu(e, t)), t = !1;
        var N = Ma;
        e: do try {
            if (Ht !== 0 && rt !== null) {
                var j = rt,
                    F = ei;
                switch (Ht) {
                    case 8:
                        ph(), N = 6;
                        break e;
                    case 3:
                    case 2:
                    case 9:
                    case 6:
                        V.current === null && (t = !0);
                        var K = Ht;
                        if (Ht = 0, ei = null, yu(e, j, F, K), a && vu) {
                            N = 0;
                            break e
                        }
                        break;
                    default:
                        K = Ht, Ht = 0, ei = null, yu(e, j, F, K)
                }
            }
            ub(), N = Ma;
            break
        } catch (se) {
            bm(e, se)
        }
        while (!0);
        return t && e.shellSuspendCounter++, Rt = Xl = null, _t = l, B.H = h, B.A = m, rt === null && (Pt = null, ut = 0, Ue()), N
    }

    function ub() {
        for (; rt !== null;) Sm(rt)
    }

    function db(e, t) {
        var a = _t;
        _t |= 2;
        var l = pm(),
            h = ym();
        Pt !== e || ut !== t ? (nf = null, af = gn() + 500, pu(e, t)) : vu = Ml(e, t);
        e: do try {
            if (Ht !== 0 && rt !== null) {
                t = rt;
                var m = ei;
                t: switch (Ht) {
                    case 1:
                        Ht = 0, ei = null, yu(e, t, m, 1);
                        break;
                    case 2:
                    case 9:
                        if (hs(m)) {
                            Ht = 0, ei = null, wm(t);
                            break
                        }
                        t = function () {
                            Ht !== 2 && Ht !== 9 || Pt !== e || (Ht = 7), Fr(e)
                        }, m.then(t, t);
                        break e;
                    case 3:
                        Ht = 7;
                        break e;
                    case 4:
                        Ht = 5;
                        break e;
                    case 7:
                        hs(m) ? (Ht = 0, ei = null, wm(t)) : (Ht = 0, ei = null, yu(e, t, m, 7));
                        break;
                    case 5:
                        var N = null;
                        switch (rt.tag) {
                            case 26:
                                N = rt.memoizedState;
                            case 5:
                            case 27:
                                var j = rt;
                                if (N ? sv(N) : j.stateNode.complete) {
                                    Ht = 0, ei = null;
                                    var F = j.sibling;
                                    if (F !== null) rt = F;
                                    else {
                                        var K = j.return;
                                        K !== null ? (rt = K, sf(K)) : rt = null
                                    }
                                    break t
                                }
                        }
                        Ht = 0, ei = null, yu(e, t, m, 5);
                        break;
                    case 6:
                        Ht = 0, ei = null, yu(e, t, m, 6);
                        break;
                    case 8:
                        ph(), Ma = 6;
                        break e;
                    default:
                        throw Error(d(462))
                }
            }
            fb();
            break
        } catch (se) {
            bm(e, se)
        }
        while (!0);
        return Rt = Xl = null, B.H = l, B.A = h, _t = a, rt !== null ? 0 : (Pt = null, ut = 0, Ue(), Ma)
    }

    function fb() {
        for (; rt !== null && !Mn();) Sm(rt)
    }

    function Sm(e) {
        var t = Ig(e.alternate, e, Ms);
        e.memoizedProps = e.pendingProps, t === null ? sf(e) : rt = t
    }

    function wm(e) {
        var t = e,
            a = t.alternate;
        switch (t.tag) {
            case 15:
            case 0:
                t = Br(a, t, t.pendingProps, t.type, void 0, ut);
                break;
            case 11:
                t = Br(a, t, t.pendingProps, t.type.render, t.ref, ut);
                break;
            case 5:
                Zi(t);
            default:
                Qg(a, t), t = rt = pt(t, Ms), t = Ig(a, t, Ms)
        }
        e.memoizedProps = e.pendingProps, t === null ? sf(e) : rt = t
    }

    function yu(e, t, a, l) {
        Rt = Xl = null, Zi(t), jn = null, Gi = 0;
        var h = t.return;
        try {
            if (Co(e, h, t, a, ut)) {
                Ma = 1, So(e, Va(a, e.current)), rt = null;
                return
            }
        } catch (m) {
            if (h !== null) throw rt = h, m;
            Ma = 1, So(e, Va(a, e.current)), rt = null;
            return
        }
        t.flags & 32768 ? (Qe || l === 1 ? e = !0 : vu || (ut & 536870912) !== 0 ? e = !1 : (jc = e = !0, (l === 2 || l === 9 || l === 3 || l === 6) && (l = V.current, l !== null && l.tag === 13 && (l.flags |= 16384))), Cm(t, e)) : sf(t)
    }

    function sf(e) {
        var t = e;
        do {
            if ((t.flags & 32768) !== 0) {
                Cm(t, jc);
                return
            }
            e = t.return;
            var a = nb(t.alternate, t, Ms);
            if (a !== null) {
                rt = a;
                return
            }
            if (t = t.sibling, t !== null) {
                rt = t;
                return
            }
            rt = t = e
        } while (t !== null);
        Ma === 0 && (Ma = 5)
    }

    function Cm(e, t) {
        do {
            var a = lb(e.alternate, e);
            if (a !== null) {
                a.flags &= 32767, rt = a;
                return
            }
            if (a = e.return, a !== null && (a.flags |= 32768, a.subtreeFlags = 0, a.deletions = null), !t && (e = e.sibling, e !== null)) {
                rt = e;
                return
            }
            rt = e = a
        } while (e !== null);
        Ma = 6, rt = null
    }

    function Nm(e, t, a, l, h, m, N, j, F) {
        e.cancelPendingCommit = null;
        do cf(); while (dn !== 0);
        if ((_t & 6) !== 0) throw Error(d(327));
        if (t !== null) {
            if (t === e.current) throw Error(d(177));
            if (m = t.lanes | t.childLanes, m |= He, Zo(e, a, m, N, j, F), e === Pt && (rt = Pt = null, ut = 0), xu = t, Lc = e, As = a, vh = m, bh = h, hm = l, (t.subtreeFlags & 10256) !== 0 || (t.flags & 10256) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, vb(nr, function () {
                return Rm(), null
            })) : (e.callbackNode = null, e.callbackPriority = 0), l = (t.flags & 13878) !== 0, (t.subtreeFlags & 13878) !== 0 || l) {
                l = B.T, B.T = null, h = P.p, P.p = 2, N = _t, _t |= 4;
                try {
                    ib(e, t, a)
                } finally {
                    _t = N, P.p = h, B.T = l
                }
            }
            dn = 1, Tm(), Em(), Mm()
        }
    }

    function Tm() {
        if (dn === 1) {
            dn = 0;
            var e = Lc,
                t = xu,
                a = (t.flags & 13878) !== 0;
            if ((t.subtreeFlags & 13878) !== 0 || a) {
                a = B.T, B.T = null;
                var l = P.p;
                P.p = 2;
                var h = _t;
                _t |= 4;
                try {
                    im(t, e);
                    var m = zh,
                        N = rc(e.containerInfo),
                        j = m.focusedElem,
                        F = m.selectionRange;
                    if (N !== j && j && j.ownerDocument && fi(j.ownerDocument.documentElement, j)) {
                        if (F !== null && sc(j)) {
                            var K = F.start,
                                se = F.end;
                            if (se === void 0 && (se = K), "selectionStart" in j) j.selectionStart = K, j.selectionEnd = Math.min(se, j.value.length);
                            else {
                                var de = j.ownerDocument || document,
                                    $ = de && de.defaultView || window;
                                if ($.getSelection) {
                                    var le = $.getSelection(),
                                        Ne = j.textContent.length,
                                        ke = Math.min(F.start, Ne),
                                        Vt = F.end === void 0 ? ke : Math.min(F.end, Ne);
                                    !le.extend && ke > Vt && (N = Vt, Vt = ke, ke = N);
                                    var Q = di(j, ke),
                                        X = di(j, Vt);
                                    if (Q && X && (le.rangeCount !== 1 || le.anchorNode !== Q.node || le.anchorOffset !== Q.offset || le.focusNode !== X.node || le.focusOffset !== X.offset)) {
                                        var J = de.createRange();
                                        J.setStart(Q.node, Q.offset), le.removeAllRanges(), ke > Vt ? (le.addRange(J), le.extend(X.node, X.offset)) : (J.setEnd(X.node, X.offset), le.addRange(J))
                                    }
                                }
                            }
                        }
                        for (de = [], le = j; le = le.parentNode;) le.nodeType === 1 && de.push({
                            element: le,
                            left: le.scrollLeft,
                            top: le.scrollTop
                        });
                        for (typeof j.focus == "function" && j.focus(), j = 0; j < de.length; j++) {
                            var oe = de[j];
                            oe.element.scrollLeft = oe.left, oe.element.scrollTop = oe.top
                        }
                    }
                    yf = !!Oh, zh = Oh = null
                } finally {
                    _t = h, P.p = l, B.T = a
                }
            }
            e.current = t, dn = 2
        }
    }

    function Em() {
        if (dn === 2) {
            dn = 0;
            var e = Lc,
                t = xu,
                a = (t.flags & 8772) !== 0;
            if ((t.subtreeFlags & 8772) !== 0 || a) {
                a = B.T, B.T = null;
                var l = P.p;
                P.p = 2;
                var h = _t;
                _t |= 4;
                try {
                    em(e, t.alternate, t)
                } finally {
                    _t = h, P.p = l, B.T = a
                }
            }
            dn = 3
        }
    }

    function Mm() {
        if (dn === 4 || dn === 3) {
            dn = 0, yi();
            var e = Lc,
                t = xu,
                a = As,
                l = hm;
            (t.subtreeFlags & 10256) !== 0 || (t.flags & 10256) !== 0 ? dn = 5 : (dn = 0, xu = Lc = null, Am(e, e.pendingLanes));
            var h = e.pendingLanes;
            if (h === 0 && (kc = null), Lt(a), t = t.stateNode, pa && typeof pa.onCommitFiberRoot == "function") try {
                pa.onCommitFiberRoot(ni, t, void 0, (t.current.flags & 128) === 128)
            } catch { }
            if (l !== null) {
                t = B.T, h = P.p, P.p = 2, B.T = null;
                try {
                    for (var m = e.onRecoverableError, N = 0; N < l.length; N++) {
                        var j = l[N];
                        m(j.value, {
                            componentStack: j.stack
                        })
                    }
                } finally {
                    B.T = t, P.p = h
                }
            } (As & 3) !== 0 && cf(), Fr(e), h = e.pendingLanes, (a & 261930) !== 0 && (h & 42) !== 0 ? e === xh ? vd++ : (vd = 0, xh = e) : vd = 0, bd(0)
        }
    }

    function Am(e, t) {
        (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Er(t)))
    }

    function cf() {
        return Tm(), Em(), Mm(), Rm()
    }

    function Rm() {
        if (dn !== 5) return !1;
        var e = Lc,
            t = vh;
        vh = 0;
        var a = Lt(As),
            l = B.T,
            h = P.p;
        try {
            P.p = 32 > a ? 32 : a, B.T = null, a = bh, bh = null;
            var m = Lc,
                N = As;
            if (dn = 0, xu = Lc = null, As = 0, (_t & 6) !== 0) throw Error(d(331));
            var j = _t;
            if (_t |= 4, um(m.current), sm(m, m.current, N, a), _t = j, bd(0, !1), pa && typeof pa.onPostCommitFiberRoot == "function") try {
                pa.onPostCommitFiberRoot(ni, m)
            } catch { }
            return !0
        } finally {
            P.p = h, B.T = l, Am(e, t)
        }
    }

    function _m(e, t, a) {
        t = Va(a, t), t = du(e.stateNode, t, 2), e = Qa(e, t, 2), e !== null && (Pr(e, 2), Fr(e))
    }

    function Ft(e, t, a) {
        if (e.tag === 3) _m(e, e, a);
        else
            for (; t !== null;) {
                if (t.tag === 3) {
                    _m(t, e, a);
                    break
                } else if (t.tag === 1) {
                    var l = t.stateNode;
                    if (typeof t.type.getDerivedStateFromError == "function" || typeof l.componentDidCatch == "function" && (kc === null || !kc.has(l))) {
                        e = Va(a, e), a = wo(2), l = Qa(t, a, 2), l !== null && (fu(a, l, t, e), Pr(l, 2), Fr(l));
                        break
                    }
                }
                t = t.return
            }
    }

    function Sh(e, t, a) {
        var l = e.pingCache;
        if (l === null) {
            l = e.pingCache = new cb;
            var h = new Set;
            l.set(t, h)
        } else h = l.get(t), h === void 0 && (h = new Set, l.set(t, h));
        h.has(a) || (hh = !0, h.add(a), e = hb.bind(null, e, t, a), t.then(e, e))
    }

    function hb(e, t, a) {
        var l = e.pingCache;
        l !== null && l.delete(t), e.pingedLanes |= e.suspendedLanes & a, e.warmLanes &= ~a, Pt === e && (ut & a) === a && (Ma === 4 || Ma === 3 && (ut & 62914560) === ut && 300 > gn() - tf ? (_t & 2) === 0 && pu(e, 0) : gh |= a, bu === ut && (bu = 0)), Fr(e)
    }

    function Om(e, t) {
        t === 0 && (t = $c()), e = xt(e, t), e !== null && (Pr(e, t), Fr(e))
    }

    function gb(e) {
        var t = e.memoizedState,
            a = 0;
        t !== null && (a = t.retryLane), Om(e, a)
    }

    function mb(e, t) {
        var a = 0;
        switch (e.tag) {
            case 31:
            case 13:
                var l = e.stateNode,
                    h = e.memoizedState;
                h !== null && (a = h.retryLane);
                break;
            case 19:
                l = e.stateNode;
                break;
            case 22:
                l = e.stateNode._retryCache;
                break;
            default:
                throw Error(d(314))
        }
        l !== null && l.delete(t), Om(e, a)
    }

    function vb(e, t) {
        return Ls(e, t)
    }
    var of = null, Su = null, wh = !1, uf = !1, Ch = !1, Bc = 0;

    function Fr(e) {
        e !== Su && e.next === null && (Su === null ? of = Su = e : Su = Su.next = e), uf = !0, wh || (wh = !0, xb())
    }

    function bd(e, t) {
        if (!Ch && uf) {
            Ch = !0;
            do
                for (var a = !1, l = of; l !== null;) {
                    if (e !== 0) {
                        var h = l.pendingLanes;
                        if (h === 0) var m = 0;
                        else {
                            var N = l.suspendedLanes,
                                j = l.pingedLanes;
                            m = (1 << 31 - Fa(42 | e) + 1) - 1, m &= h & ~(N & ~j), m = m & 201326741 ? m & 201326741 | 1 : m ? m | 2 : 0
                        }
                        m !== 0 && (a = !0, km(l, m))
                    } else m = ut, m = Si(l, l === Pt ? m : 0, l.cancelPendingCommit !== null || l.timeoutHandle !== -1), (m & 3) === 0 || Ml(l, m) || (a = !0, km(l, m));
                    l = l.next
                }
            while (a);
            Ch = !1
        }
    }

    function bb() {
        zm()
    }

    function zm() {
        uf = wh = !1;
        var e = 0;
        Bc !== 0 && Ab() && (e = Bc);
        for (var t = gn(), a = null, l = of; l !== null;) {
            var h = l.next,
                m = jm(l, t);
            m === 0 ? (l.next = null, a === null ? of = h : a.next = h, h === null && (Su = a)) : (a = l, (e !== 0 || (m & 3) !== 0) && (uf = !0)), l = h
        }
        dn !== 0 && dn !== 5 || bd(e), Bc !== 0 && (Bc = 0)
    }

    function jm(e, t) {
        for (var a = e.suspendedLanes, l = e.pingedLanes, h = e.expirationTimes, m = e.pendingLanes & -62914561; 0 < m;) {
            var N = 31 - Fa(m),
                j = 1 << N,
                F = h[N];
            F === -1 ? ((j & a) === 0 || (j & l) !== 0) && (h[N] = Zn(j, t)) : F <= t && (e.expiredLanes |= j), m &= ~j
        }
        if (t = Pt, a = ut, a = Si(e, e === t ? a : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), l = e.callbackNode, a === 0 || e === t && (Ht === 2 || Ht === 9) || e.cancelPendingCommit !== null) return l !== null && l !== null && En(l), e.callbackNode = null, e.callbackPriority = 0;
        if ((a & 3) === 0 || Ml(e, a)) {
            if (t = a & -a, t === e.callbackPriority) return t;
            switch (l !== null && En(l), Lt(a)) {
                case 2:
                case 8:
                    a = Io;
                    break;
                case 32:
                    a = nr;
                    break;
                case 268435456:
                    a = Us;
                    break;
                default:
                    a = nr
            }
            return l = Dm.bind(null, e), a = Ls(a, l), e.callbackPriority = t, e.callbackNode = a, t
        }
        return l !== null && l !== null && En(l), e.callbackPriority = 2, e.callbackNode = null, 2
    }

    function Dm(e, t) {
        if (dn !== 0 && dn !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
        var a = e.callbackNode;
        if (cf() && e.callbackNode !== a) return null;
        var l = ut;
        return l = Si(e, e === Pt ? l : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), l === 0 ? null : (mm(e, l, t), jm(e, gn()), e.callbackNode != null && e.callbackNode === a ? Dm.bind(null, e) : null)
    }

    function km(e, t) {
        if (cf()) return null;
        mm(e, t, !0)
    }

    function xb() {
        _b(function () {
            (_t & 6) !== 0 ? Ls(mn, bb) : zm()
        })
    }

    function Nh() {
        if (Bc === 0) {
            var e = zn;
            e === 0 && (e = oa, oa <<= 1, (oa & 261888) === 0 && (oa = 256)), Bc = e
        }
        return Bc
    }

    function Lm(e) {
        return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : Ga("" + e)
    }

    function Um(e, t) {
        var a = t.ownerDocument.createElement("input");
        return a.name = t.name, a.value = t.value, e.id && a.setAttribute("form", e.id), t.parentNode.insertBefore(a, t), e = new FormData(e), a.parentNode.removeChild(a), e
    }

    function pb(e, t, a, l, h) {
        if (t === "submit" && a && a.stateNode === h) {
            var m = Lm((h[qa] || null).action),
                N = l.submitter;
            N && (t = (t = N[qa] || null) ? Lm(t.formAction) : N.getAttribute("formAction"), t !== null && (m = t, N = null));
            var j = new as("action", "action", null, l, h);
            e.push({
                event: j,
                listeners: [{
                    instance: null,
                    listener: function () {
                        if (l.defaultPrevented) {
                            if (Bc !== 0) {
                                var F = N ? Um(h, N) : new FormData(h);
                                Nc(a, {
                                    pending: !0,
                                    data: F,
                                    method: h.method,
                                    action: m
                                }, null, F)
                            }
                        } else typeof m == "function" && (j.preventDefault(), F = N ? Um(h, N) : new FormData(h), Nc(a, {
                            pending: !0,
                            data: F,
                            method: h.method,
                            action: m
                        }, m, F))
                    },
                    currentTarget: h
                }]
            })
        }
    }
    for (var Th = 0; Th < ue.length; Th++) {
        var Eh = ue[Th],
            yb = Eh.toLowerCase(),
            Sb = Eh[0].toUpperCase() + Eh.slice(1);
        ie(yb, "on" + Sb)
    }
    ie(b, "onAnimationEnd"), ie(S, "onAnimationIteration"), ie(E, "onAnimationStart"), ie("dblclick", "onDoubleClick"), ie("focusin", "onFocus"), ie("focusout", "onBlur"), ie(D, "onTransitionRun"), ie(U, "onTransitionStart"), ie(ee, "onTransitionCancel"), ie(Y, "onTransitionEnd"), Al("onMouseEnter", ["mouseout", "mouseover"]), Al("onMouseLeave", ["mouseout", "mouseover"]), Al("onPointerEnter", ["pointerout", "pointerover"]), Al("onPointerLeave", ["pointerout", "pointerover"]), Ut("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), Ut("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), Ut("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]), Ut("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), Ut("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), Ut("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
    var xd = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),
        wb = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xd));

    function Bm(e, t) {
        t = (t & 4) !== 0;
        for (var a = 0; a < e.length; a++) {
            var l = e[a],
                h = l.event;
            l = l.listeners;
            e: {
                var m = void 0;
                if (t)
                    for (var N = l.length - 1; 0 <= N; N--) {
                        var j = l[N],
                            F = j.instance,
                            K = j.currentTarget;
                        if (j = j.listener, F !== m && h.isPropagationStopped()) break e;
                        m = j, h.currentTarget = K;
                        try {
                            m(h)
                        } catch (se) {
                            be(se)
                        }
                        h.currentTarget = null, m = F
                    } else
                    for (N = 0; N < l.length; N++) {
                        if (j = l[N], F = j.instance, K = j.currentTarget, j = j.listener, F !== m && h.isPropagationStopped()) break e;
                        m = j, h.currentTarget = K;
                        try {
                            m(h)
                        } catch (se) {
                            be(se)
                        }
                        h.currentTarget = null, m = F
                    }
            }
        }
    }

    function st(e, t) {
        var a = t[Fs];
        a === void 0 && (a = t[Fs] = new Set);
        var l = e + "__bubble";
        a.has(l) || (Hm(t, e, 2, !1), a.add(l))
    }

    function Mh(e, t, a) {
        var l = 0;
        t && (l |= 4), Hm(a, e, l, t)
    }
    var df = "_reactListening" + Math.random().toString(36).slice(2);

    function Ah(e) {
        if (!e[df]) {
            e[df] = !0, Po.forEach(function (a) {
                a !== "selectionchange" && (wb.has(a) || Mh(a, !1, e), Mh(a, !0, e))
            });
            var t = e.nodeType === 9 ? e : e.ownerDocument;
            t === null || t[df] || (t[df] = !0, Mh("selectionchange", !1, t))
        }
    }

    function Hm(e, t, a, l) {
        switch (gv(t)) {
            case 2:
                var h = Jb;
                break;
            case 8:
                h = Kb;
                break;
            default:
                h = Xh
        }
        a = h.bind(null, t, a, e), h = void 0, !wt || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (h = !0), l ? h !== void 0 ? e.addEventListener(t, a, {
            capture: !0,
            passive: h
        }) : e.addEventListener(t, a, !0) : h !== void 0 ? e.addEventListener(t, a, {
            passive: h
        }) : e.addEventListener(t, a, !1)
    }

    function Rh(e, t, a, l, h) {
        var m = l;
        if ((t & 1) === 0 && (t & 2) === 0 && l !== null) e: for (; ;) {
            if (l === null) return;
            var N = l.tag;
            if (N === 3 || N === 4) {
                var j = l.stateNode.containerInfo;
                if (j === h) break;
                if (N === 4)
                    for (N = l.return; N !== null;) {
                        var F = N.tag;
                        if ((F === 3 || F === 4) && N.stateNode.containerInfo === h) return;
                        N = N.return
                    }
                for (; j !== null;) {
                    if (N = wa(j), N === null) return;
                    if (F = N.tag, F === 5 || F === 6 || F === 26 || F === 27) {
                        l = m = N;
                        continue e
                    }
                    j = j.parentNode
                }
            }
            l = l.return
        }
        Xs(function () {
            var K = m,
                se = hr(a),
                de = [];
            e: {
                var $ = te.get(e);
                if ($ !== void 0) {
                    var le = as,
                        Ne = e;
                    switch (e) {
                        case "keypress":
                            if (_i(a) === 0) break e;
                        case "keydown":
                        case "keyup":
                            le = Fu;
                            break;
                        case "focusin":
                            Ne = "focus", le = ls;
                            break;
                        case "focusout":
                            Ne = "blur", le = ls;
                            break;
                        case "beforeblur":
                        case "afterblur":
                            le = ls;
                            break;
                        case "click":
                            if (a.button === 2) break e;
                        case "auxclick":
                        case "dblclick":
                        case "mousedown":
                        case "mousemove":
                        case "mouseup":
                        case "mouseout":
                        case "mouseover":
                        case "contextmenu":
                            le = Jo;
                            break;
                        case "drag":
                        case "dragend":
                        case "dragenter":
                        case "dragexit":
                        case "dragleave":
                        case "dragover":
                        case "dragstart":
                        case "drop":
                            le = Lu;
                            break;
                        case "touchcancel":
                        case "touchend":
                        case "touchmove":
                        case "touchstart":
                            le = yr;
                            break;
                        case b:
                        case S:
                        case E:
                            le = Bu;
                            break;
                        case Y:
                            le = Ws;
                            break;
                        case "scroll":
                        case "scrollend":
                            le = vr;
                            break;
                        case "wheel":
                            le = ji;
                            break;
                        case "copy":
                        case "cut":
                        case "paste":
                            le = Is;
                            break;
                        case "gotpointercapture":
                        case "lostpointercapture":
                        case "pointercancel":
                        case "pointerdown":
                        case "pointermove":
                        case "pointerout":
                        case "pointerover":
                        case "pointerup":
                            le = eu;
                            break;
                        case "toggle":
                        case "beforetoggle":
                            le = is
                    }
                    var ke = (t & 4) !== 0,
                        Vt = !ke && (e === "scroll" || e === "scrollend"),
                        Q = ke ? $ !== null ? $ + "Capture" : null : $;
                    ke = [];
                    for (var X = K, J; X !== null;) {
                        var oe = X;
                        if (J = oe.stateNode, oe = oe.tag, oe !== 5 && oe !== 26 && oe !== 27 || J === null || Q === null || (oe = Ai(X, Q), oe != null && ke.push(pd(X, oe, J))), Vt) break;
                        X = X.return
                    }
                    0 < ke.length && ($ = new le($, Ne, null, a, se), de.push({
                        event: $,
                        listeners: ke
                    }))
                }
            }
            if ((t & 7) === 0) {
                e: {
                    if ($ = e === "mouseover" || e === "pointerover", le = e === "mouseout" || e === "pointerout", $ && a !== fr && (Ne = a.relatedTarget || a.fromElement) && (wa(Ne) || Ne[li])) break e;
                    if ((le || $) && ($ = se.window === se ? se : ($ = se.ownerDocument) ? $.defaultView || $.parentWindow : window, le ? (Ne = a.relatedTarget || a.toElement, le = K, Ne = Ne ? wa(Ne) : null, Ne !== null && (Vt = x(Ne), ke = Ne.tag, Ne !== Vt || ke !== 5 && ke !== 27 && ke !== 6) && (Ne = null)) : (le = null, Ne = K), le !== Ne)) {
                        if (ke = Jo, oe = "onMouseLeave", Q = "onMouseEnter", X = "mouse", (e === "pointerout" || e === "pointerover") && (ke = eu, oe = "onPointerLeave", Q = "onPointerEnter", X = "pointer"), Vt = le == null ? $ : Ci(le), J = Ne == null ? $ : Ci(Ne), $ = new ke(oe, X + "leave", le, a, se), $.target = Vt, $.relatedTarget = J, oe = null, wa(se) === K && (ke = new ke(Q, X + "enter", Ne, a, se), ke.target = J, ke.relatedTarget = Vt, oe = ke), Vt = oe, le && Ne) t: {
                            for (ke = Cb, Q = le, X = Ne, J = 0, oe = Q; oe; oe = ke(oe)) J++; oe = 0;
                            for (var je = X; je; je = ke(je)) oe++;
                            for (; 0 < J - oe;) Q = ke(Q),
                                J--;
                            for (; 0 < oe - J;) X = ke(X),
                                oe--;
                            for (; J--;) {
                                if (Q === X || X !== null && Q === X.alternate) {
                                    ke = Q;
                                    break t
                                }
                                Q = ke(Q), X = ke(X)
                            }
                            ke = null
                        }
                        else ke = null;
                        le !== null && Fm(de, $, le, ke, !1), Ne !== null && Vt !== null && Fm(de, Vt, Ne, ke, !0)
                    }
                }
                e: {
                    if ($ = K ? Ci(K) : window, le = $.nodeName && $.nodeName.toLowerCase(), le === "select" || le === "input" && $.type === "file") var Tt = ss;
                    else if (ec($))
                        if (ba) Tt = au;
                        else {
                            Tt = cs;
                            var Me = ic
                        }
                    else le = $.nodeName,
                        !le || le.toLowerCase() !== "input" || $.type !== "checkbox" && $.type !== "radio" ? K && no(K.elementType) && (Tt = ss) : Tt = ui;
                    if (Tt && (Tt = Tt(e, K))) {
                        rs(de, Tt, a, se);
                        break e
                    }
                    Me && Me(e, $, K),
                        e === "focusout" && K && $.type === "number" && K.memoizedProps.value != null && $r($, "number", $.value)
                }
                switch (Me = K ? Ci(K) : window, e) {
                    case "focusin":
                        (ec(Me) || Me.contentEditable === "true") && (fl = Me, wr = K, Jn = null);
                        break;
                    case "focusout":
                        Jn = wr = fl = null;
                        break;
                    case "mousedown":
                        Cr = !0;
                        break;
                    case "contextmenu":
                    case "mouseup":
                    case "dragend":
                        Cr = !1, co(de, a, se);
                        break;
                    case "selectionchange":
                        if (Bi) break;
                    case "keydown":
                    case "keyup":
                        co(de, a, se)
                }
                var Ke;
                if (Ca) e: {
                    switch (e) {
                        case "compositionstart":
                            var dt = "onCompositionStart";
                            break e;
                        case "compositionend":
                            dt = "onCompositionEnd";
                            break e;
                        case "compositionupdate":
                            dt = "onCompositionUpdate";
                            break e
                    }
                    dt = void 0
                }
                else Di ? ro(e, a) && (dt = "onCompositionEnd") : e === "keydown" && a.keyCode === 229 && (dt = "onCompositionStart"); dt && (Pn && a.locale !== "ko" && (Di || dt !== "onCompositionStart" ? dt === "onCompositionEnd" && Di && (Ke = mr()) : (Qn = se, Ri = "value" in Qn ? Qn.value : Qn.textContent, Di = !0)), Me = ff(K, dt), 0 < Me.length && (dt = new Zs(dt, e, null, a, se), de.push({
                    event: dt,
                    listeners: Me
                }), Ke ? dt.data = Ke : (Ke = Ks(a), Ke !== null && (dt.data = Ke)))),
                    (Ke = Ot ? qs(e, a) : $s(e, a)) && (dt = ff(K, "onBeforeInput"), 0 < dt.length && (Me = new Zs("onBeforeInput", "beforeinput", null, a, se), de.push({
                        event: Me,
                        listeners: dt
                    }), Me.data = Ke)),
                    pb(de, e, K, a, se)
            }
            Bm(de, t)
        })
    }

    function pd(e, t, a) {
        return {
            instance: e,
            listener: t,
            currentTarget: a
        }
    }

    function ff(e, t) {
        for (var a = t + "Capture", l = []; e !== null;) {
            var h = e,
                m = h.stateNode;
            if (h = h.tag, h !== 5 && h !== 26 && h !== 27 || m === null || (h = Ai(e, a), h != null && l.unshift(pd(e, h, m)), h = Ai(e, t), h != null && l.push(pd(e, h, m))), e.tag === 3) return l;
            e = e.return
        }
        return []
    }

    function Cb(e) {
        if (e === null) return null;
        do e = e.return; while (e && e.tag !== 5 && e.tag !== 27);
        return e || null
    }

    function Fm(e, t, a, l, h) {
        for (var m = t._reactName, N = []; a !== null && a !== l;) {
            var j = a,
                F = j.alternate,
                K = j.stateNode;
            if (j = j.tag, F !== null && F === l) break;
            j !== 5 && j !== 26 && j !== 27 || K === null || (F = K, h ? (K = Ai(a, m), K != null && N.unshift(pd(a, K, F))) : h || (K = Ai(a, m), K != null && N.push(pd(a, K, F)))), a = a.return
        }
        N.length !== 0 && e.push({
            event: t,
            listeners: N
        })
    }
    var Nb = /\r\n?/g,
        Tb = /\u0000|\uFFFD/g;

    function Gm(e) {
        return (typeof e == "string" ? e : "" + e).replace(Nb, `
`).replace(Tb, "")
    }

    function Ym(e, t) {
        return t = Gm(t), Gm(e) === t
    }

    function Xt(e, t, a, l, h, m) {
        switch (a) {
            case "children":
                typeof l == "string" ? t === "body" || t === "textarea" && l === "" || dr(e, l) : (typeof l == "number" || typeof l == "bigint") && t !== "body" && dr(e, "" + l);
                break;
            case "className":
                _l(e, "class", l);
                break;
            case "tabIndex":
                _l(e, "tabindex", l);
                break;
            case "dir":
            case "role":
            case "viewBox":
            case "width":
            case "height":
                _l(e, a, l);
                break;
            case "style":
                Wo(e, l, m);
                break;
            case "data":
                if (t !== "object") {
                    _l(e, "data", l);
                    break
                }
            case "src":
            case "href":
                if (l === "" && (t !== "a" || a !== "href")) {
                    e.removeAttribute(a);
                    break
                }
                if (l == null || typeof l == "function" || typeof l == "symbol" || typeof l == "boolean") {
                    e.removeAttribute(a);
                    break
                }
                l = Ga("" + l), e.setAttribute(a, l);
                break;
            case "action":
            case "formAction":
                if (typeof l == "function") {
                    e.setAttribute(a, "javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");
                    break
                } else typeof m == "function" && (a === "formAction" ? (t !== "input" && Xt(e, t, "name", h.name, h, null), Xt(e, t, "formEncType", h.formEncType, h, null), Xt(e, t, "formMethod", h.formMethod, h, null), Xt(e, t, "formTarget", h.formTarget, h, null)) : (Xt(e, t, "encType", h.encType, h, null), Xt(e, t, "method", h.method, h, null), Xt(e, t, "target", h.target, h, null)));
                if (l == null || typeof l == "symbol" || typeof l == "boolean") {
                    e.removeAttribute(a);
                    break
                }
                l = Ga("" + l), e.setAttribute(a, l);
                break;
            case "onClick":
                l != null && (e.onclick = Dl);
                break;
            case "onScroll":
                l != null && st("scroll", e);
                break;
            case "onScrollEnd":
                l != null && st("scrollend", e);
                break;
            case "dangerouslySetInnerHTML":
                if (l != null) {
                    if (typeof l != "object" || !("__html" in l)) throw Error(d(61));
                    if (a = l.__html, a != null) {
                        if (h.children != null) throw Error(d(60));
                        e.innerHTML = a
                    }
                }
                break;
            case "multiple":
                e.multiple = l && typeof l != "function" && typeof l != "symbol";
                break;
            case "muted":
                e.muted = l && typeof l != "function" && typeof l != "symbol";
                break;
            case "suppressContentEditableWarning":
            case "suppressHydrationWarning":
            case "defaultValue":
            case "defaultChecked":
            case "innerHTML":
            case "ref":
                break;
            case "autoFocus":
                break;
            case "xlinkHref":
                if (l == null || typeof l == "function" || typeof l == "boolean" || typeof l == "symbol") {
                    e.removeAttribute("xlink:href");
                    break
                }
                a = Ga("" + l), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", a);
                break;
            case "contentEditable":
            case "spellCheck":
            case "draggable":
            case "value":
            case "autoReverse":
            case "externalResourcesRequired":
            case "focusable":
            case "preserveAlpha":
                l != null && typeof l != "function" && typeof l != "symbol" ? e.setAttribute(a, "" + l) : e.removeAttribute(a);
                break;
            case "inert":
            case "allowFullScreen":
            case "async":
            case "autoPlay":
            case "controls":
            case "default":
            case "defer":
            case "disabled":
            case "disablePictureInPicture":
            case "disableRemotePlayback":
            case "formNoValidate":
            case "hidden":
            case "loop":
            case "noModule":
            case "noValidate":
            case "open":
            case "playsInline":
            case "readOnly":
            case "required":
            case "reversed":
            case "scoped":
            case "seamless":
            case "itemScope":
                l && typeof l != "function" && typeof l != "symbol" ? e.setAttribute(a, "") : e.removeAttribute(a);
                break;
            case "capture":
            case "download":
                l === !0 ? e.setAttribute(a, "") : l !== !1 && l != null && typeof l != "function" && typeof l != "symbol" ? e.setAttribute(a, l) : e.removeAttribute(a);
                break;
            case "cols":
            case "rows":
            case "size":
            case "span":
                l != null && typeof l != "function" && typeof l != "symbol" && !isNaN(l) && 1 <= l ? e.setAttribute(a, l) : e.removeAttribute(a);
                break;
            case "rowSpan":
            case "start":
                l == null || typeof l == "function" || typeof l == "symbol" || isNaN(l) ? e.removeAttribute(a) : e.setAttribute(a, l);
                break;
            case "popover":
                st("beforetoggle", e), st("toggle", e), Ys(e, "popover", l);
                break;
            case "xlinkActuate":
                Ln(e, "http://www.w3.org/1999/xlink", "xlink:actuate", l);
                break;
            case "xlinkArcrole":
                Ln(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", l);
                break;
            case "xlinkRole":
                Ln(e, "http://www.w3.org/1999/xlink", "xlink:role", l);
                break;
            case "xlinkShow":
                Ln(e, "http://www.w3.org/1999/xlink", "xlink:show", l);
                break;
            case "xlinkTitle":
                Ln(e, "http://www.w3.org/1999/xlink", "xlink:title", l);
                break;
            case "xlinkType":
                Ln(e, "http://www.w3.org/1999/xlink", "xlink:type", l);
                break;
            case "xmlBase":
                Ln(e, "http://www.w3.org/XML/1998/namespace", "xml:base", l);
                break;
            case "xmlLang":
                Ln(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", l);
                break;
            case "xmlSpace":
                Ln(e, "http://www.w3.org/XML/1998/namespace", "xml:space", l);
                break;
            case "is":
                Ys(e, "is", l);
                break;
            case "innerText":
            case "textContent":
                break;
            default:
                (!(2 < a.length) || a[0] !== "o" && a[0] !== "O" || a[1] !== "n" && a[1] !== "N") && (a = Du.get(a) || a, Ys(e, a, l))
        }
    }

    function _h(e, t, a, l, h, m) {
        switch (a) {
            case "style":
                Wo(e, l, m);
                break;
            case "dangerouslySetInnerHTML":
                if (l != null) {
                    if (typeof l != "object" || !("__html" in l)) throw Error(d(61));
                    if (a = l.__html, a != null) {
                        if (h.children != null) throw Error(d(60));
                        e.innerHTML = a
                    }
                }
                break;
            case "children":
                typeof l == "string" ? dr(e, l) : (typeof l == "number" || typeof l == "bigint") && dr(e, "" + l);
                break;
            case "onScroll":
                l != null && st("scroll", e);
                break;
            case "onScrollEnd":
                l != null && st("scrollend", e);
                break;
            case "onClick":
                l != null && (e.onclick = Dl);
                break;
            case "suppressContentEditableWarning":
            case "suppressHydrationWarning":
            case "innerHTML":
            case "ref":
                break;
            case "innerText":
            case "textContent":
                break;
            default:
                if (!or.hasOwnProperty(a)) e: {
                    if (a[0] === "o" && a[1] === "n" && (h = a.endsWith("Capture"), t = a.slice(2, h ? a.length - 7 : void 0), m = e[qa] || null, m = m != null ? m[a] : null, typeof m == "function" && e.removeEventListener(t, m, h), typeof l == "function")) {
                        typeof m != "function" && m !== null && (a in e ? e[a] = null : e.hasAttribute(a) && e.removeAttribute(a)), e.addEventListener(t, l, h);
                        break e
                    }
                    a in e ? e[a] = l : l === !0 ? e.setAttribute(a, "") : Ys(e, a, l)
                }
        }
    }

    function kn(e, t, a) {
        switch (t) {
            case "div":
            case "span":
            case "svg":
            case "path":
            case "a":
            case "g":
            case "p":
            case "li":
                break;
            case "img":
                st("error", e), st("load", e);
                var l = !1,
                    h = !1,
                    m;
                for (m in a)
                    if (a.hasOwnProperty(m)) {
                        var N = a[m];
                        if (N != null) switch (m) {
                            case "src":
                                l = !0;
                                break;
                            case "srcSet":
                                h = !0;
                                break;
                            case "children":
                            case "dangerouslySetInnerHTML":
                                throw Error(d(137, t));
                            default:
                                Xt(e, t, m, N, a, null)
                        }
                    } h && Xt(e, t, "srcSet", a.srcSet, a, null), l && Xt(e, t, "src", a.src, a, null);
                return;
            case "input":
                st("invalid", e);
                var j = m = N = h = null,
                    F = null,
                    K = null;
                for (l in a)
                    if (a.hasOwnProperty(l)) {
                        var se = a[l];
                        if (se != null) switch (l) {
                            case "name":
                                h = se;
                                break;
                            case "type":
                                N = se;
                                break;
                            case "checked":
                                F = se;
                                break;
                            case "defaultChecked":
                                K = se;
                                break;
                            case "value":
                                m = se;
                                break;
                            case "defaultValue":
                                j = se;
                                break;
                            case "children":
                            case "dangerouslySetInnerHTML":
                                if (se != null) throw Error(d(137, t));
                                break;
                            default:
                                Xt(e, t, l, se, a, null)
                        }
                    } zl(e, m, j, F, K, N, h, !1);
                return;
            case "select":
                st("invalid", e), l = N = m = null;
                for (h in a)
                    if (a.hasOwnProperty(h) && (j = a[h], j != null)) switch (h) {
                        case "value":
                            m = j;
                            break;
                        case "defaultValue":
                            N = j;
                            break;
                        case "multiple":
                            l = j;
                        default:
                            Xt(e, t, h, j, a, null)
                    }
                t = m, a = N, e.multiple = !!l, t != null ? ii(e, !!l, t, !1) : a != null && ii(e, !!l, a, !0);
                return;
            case "textarea":
                st("invalid", e), m = h = l = null;
                for (N in a)
                    if (a.hasOwnProperty(N) && (j = a[N], j != null)) switch (N) {
                        case "value":
                            l = j;
                            break;
                        case "defaultValue":
                            h = j;
                            break;
                        case "children":
                            m = j;
                            break;
                        case "dangerouslySetInnerHTML":
                            if (j != null) throw Error(d(91));
                            break;
                        default:
                            Xt(e, t, N, j, a, null)
                    }
                ao(e, l, h, m);
                return;
            case "option":
                for (F in a) a.hasOwnProperty(F) && (l = a[F], l != null) && (F === "selected" ? e.selected = l && typeof l != "function" && typeof l != "symbol" : Xt(e, t, F, l, a, null));
                return;
            case "dialog":
                st("beforetoggle", e), st("toggle", e), st("cancel", e), st("close", e);
                break;
            case "iframe":
            case "object":
                st("load", e);
                break;
            case "video":
            case "audio":
                for (l = 0; l < xd.length; l++) st(xd[l], e);
                break;
            case "image":
                st("error", e), st("load", e);
                break;
            case "details":
                st("toggle", e);
                break;
            case "embed":
            case "source":
            case "link":
                st("error", e), st("load", e);
            case "area":
            case "base":
            case "br":
            case "col":
            case "hr":
            case "keygen":
            case "meta":
            case "param":
            case "track":
            case "wbr":
            case "menuitem":
                for (K in a)
                    if (a.hasOwnProperty(K) && (l = a[K], l != null)) switch (K) {
                        case "children":
                        case "dangerouslySetInnerHTML":
                            throw Error(d(137, t));
                        default:
                            Xt(e, t, K, l, a, null)
                    }
                return;
            default:
                if (no(t)) {
                    for (se in a) a.hasOwnProperty(se) && (l = a[se], l !== void 0 && _h(e, t, se, l, a, void 0));
                    return
                }
        }
        for (j in a) a.hasOwnProperty(j) && (l = a[j], l != null && Xt(e, t, j, l, a, null))
    }

    function Eb(e, t, a, l) {
        switch (t) {
            case "div":
            case "span":
            case "svg":
            case "path":
            case "a":
            case "g":
            case "p":
            case "li":
                break;
            case "input":
                var h = null,
                    m = null,
                    N = null,
                    j = null,
                    F = null,
                    K = null,
                    se = null;
                for (le in a) {
                    var de = a[le];
                    if (a.hasOwnProperty(le) && de != null) switch (le) {
                        case "checked":
                            break;
                        case "value":
                            break;
                        case "defaultValue":
                            F = de;
                        default:
                            l.hasOwnProperty(le) || Xt(e, t, le, null, l, de)
                    }
                }
                for (var $ in l) {
                    var le = l[$];
                    if (de = a[$], l.hasOwnProperty($) && (le != null || de != null)) switch ($) {
                        case "type":
                            m = le;
                            break;
                        case "name":
                            h = le;
                            break;
                        case "checked":
                            K = le;
                            break;
                        case "defaultChecked":
                            se = le;
                            break;
                        case "value":
                            N = le;
                            break;
                        case "defaultValue":
                            j = le;
                            break;
                        case "children":
                        case "dangerouslySetInnerHTML":
                            if (le != null) throw Error(d(137, t));
                            break;
                        default:
                            le !== de && Xt(e, t, $, le, l, de)
                    }
                }
                qr(e, N, j, F, K, se, m, h);
                return;
            case "select":
                le = N = j = $ = null;
                for (m in a)
                    if (F = a[m], a.hasOwnProperty(m) && F != null) switch (m) {
                        case "value":
                            break;
                        case "multiple":
                            le = F;
                        default:
                            l.hasOwnProperty(m) || Xt(e, t, m, null, l, F)
                    }
                for (h in l)
                    if (m = l[h], F = a[h], l.hasOwnProperty(h) && (m != null || F != null)) switch (h) {
                        case "value":
                            $ = m;
                            break;
                        case "defaultValue":
                            j = m;
                            break;
                        case "multiple":
                            N = m;
                        default:
                            m !== F && Xt(e, t, h, m, l, F)
                    }
                t = j, a = N, l = le, $ != null ? ii(e, !!a, $, !1) : !!l != !!a && (t != null ? ii(e, !!a, t, !0) : ii(e, !!a, a ? [] : "", !1));
                return;
            case "textarea":
                le = $ = null;
                for (j in a)
                    if (h = a[j], a.hasOwnProperty(j) && h != null && !l.hasOwnProperty(j)) switch (j) {
                        case "value":
                            break;
                        case "children":
                            break;
                        default:
                            Xt(e, t, j, null, l, h)
                    }
                for (N in l)
                    if (h = l[N], m = a[N], l.hasOwnProperty(N) && (h != null || m != null)) switch (N) {
                        case "value":
                            $ = h;
                            break;
                        case "defaultValue":
                            le = h;
                            break;
                        case "children":
                            break;
                        case "dangerouslySetInnerHTML":
                            if (h != null) throw Error(d(91));
                            break;
                        default:
                            h !== m && Xt(e, t, N, h, l, m)
                    }
                jl(e, $, le);
                return;
            case "option":
                for (var Ne in a) $ = a[Ne], a.hasOwnProperty(Ne) && $ != null && !l.hasOwnProperty(Ne) && (Ne === "selected" ? e.selected = !1 : Xt(e, t, Ne, null, l, $));
                for (F in l) $ = l[F], le = a[F], l.hasOwnProperty(F) && $ !== le && ($ != null || le != null) && (F === "selected" ? e.selected = $ && typeof $ != "function" && typeof $ != "symbol" : Xt(e, t, F, $, l, le));
                return;
            case "img":
            case "link":
            case "area":
            case "base":
            case "br":
            case "col":
            case "embed":
            case "hr":
            case "keygen":
            case "meta":
            case "param":
            case "source":
            case "track":
            case "wbr":
            case "menuitem":
                for (var ke in a) $ = a[ke], a.hasOwnProperty(ke) && $ != null && !l.hasOwnProperty(ke) && Xt(e, t, ke, null, l, $);
                for (K in l)
                    if ($ = l[K], le = a[K], l.hasOwnProperty(K) && $ !== le && ($ != null || le != null)) switch (K) {
                        case "children":
                        case "dangerouslySetInnerHTML":
                            if ($ != null) throw Error(d(137, t));
                            break;
                        default:
                            Xt(e, t, K, $, l, le)
                    }
                return;
            default:
                if (no(t)) {
                    for (var Vt in a) $ = a[Vt], a.hasOwnProperty(Vt) && $ !== void 0 && !l.hasOwnProperty(Vt) && _h(e, t, Vt, void 0, l, $);
                    for (se in l) $ = l[se], le = a[se], !l.hasOwnProperty(se) || $ === le || $ === void 0 && le === void 0 || _h(e, t, se, $, l, le);
                    return
                }
        }
        for (var Q in a) $ = a[Q], a.hasOwnProperty(Q) && $ != null && !l.hasOwnProperty(Q) && Xt(e, t, Q, null, l, $);
        for (de in l) $ = l[de], le = a[de], !l.hasOwnProperty(de) || $ === le || $ == null && le == null || Xt(e, t, de, $, l, le)
    }

    function Xm(e) {
        switch (e) {
            case "css":
            case "script":
            case "font":
            case "img":
            case "image":
            case "input":
            case "link":
                return !0;
            default:
                return !1
        }
    }

    function Mb() {
        if (typeof performance.getEntriesByType == "function") {
            for (var e = 0, t = 0, a = performance.getEntriesByType("resource"), l = 0; l < a.length; l++) {
                var h = a[l],
                    m = h.transferSize,
                    N = h.initiatorType,
                    j = h.duration;
                if (m && j && Xm(N)) {
                    for (N = 0, j = h.responseEnd, l += 1; l < a.length; l++) {
                        var F = a[l],
                            K = F.startTime;
                        if (K > j) break;
                        var se = F.transferSize,
                            de = F.initiatorType;
                        se && Xm(de) && (F = F.responseEnd, N += se * (F < j ? 1 : (j - K) / (F - K)))
                    }
                    if (--l, t += 8 * (m + N) / (h.duration / 1e3), e++, 10 < e) break
                }
            }
            if (0 < e) return t / e / 1e6
        }
        return navigator.connection && (e = navigator.connection.downlink, typeof e == "number") ? e : 5
    }
    var Oh = null,
        zh = null;

    function hf(e) {
        return e.nodeType === 9 ? e : e.ownerDocument
    }

    function Vm(e) {
        switch (e) {
            case "http://www.w3.org/2000/svg":
                return 1;
            case "http://www.w3.org/1998/Math/MathML":
                return 2;
            default:
                return 0
        }
    }

    function Im(e, t) {
        if (e === 0) switch (t) {
            case "svg":
                return 1;
            case "math":
                return 2;
            default:
                return 0
        }
        return e === 1 && t === "foreignObject" ? 0 : e
    }

    function jh(e, t) {
        return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.children == "bigint" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null
    }
    var Dh = null;

    function Ab() {
        var e = window.event;
        return e && e.type === "popstate" ? e === Dh ? !1 : (Dh = e, !0) : (Dh = null, !1)
    }
    var Zm = typeof setTimeout == "function" ? setTimeout : void 0,
        Rb = typeof clearTimeout == "function" ? clearTimeout : void 0,
        Qm = typeof Promise == "function" ? Promise : void 0,
        _b = typeof queueMicrotask == "function" ? queueMicrotask : typeof Qm < "u" ? function (e) {
            return Qm.resolve(null).then(e).catch(Ob)
        } : Zm;

    function Ob(e) {
        setTimeout(function () {
            throw e
        })
    }

    function Hc(e) {
        return e === "head"
    }

    function Pm(e, t) {
        var a = t,
            l = 0;
        do {
            var h = a.nextSibling;
            if (e.removeChild(a), h && h.nodeType === 8)
                if (a = h.data, a === "/$" || a === "/&") {
                    if (l === 0) {
                        e.removeChild(h), Tu(t);
                        return
                    }
                    l--
                } else if (a === "$" || a === "$?" || a === "$~" || a === "$!" || a === "&") l++;
                else if (a === "html") yd(e.ownerDocument.documentElement);
                else if (a === "head") {
                    a = e.ownerDocument.head, yd(a);
                    for (var m = a.firstChild; m;) {
                        var N = m.nextSibling,
                            j = m.nodeName;
                        m[St] || j === "SCRIPT" || j === "STYLE" || j === "LINK" && m.rel.toLowerCase() === "stylesheet" || a.removeChild(m), m = N
                    }
                } else a === "body" && yd(e.ownerDocument.body);
            a = h
        } while (a);
        Tu(t)
    }

    function Wm(e, t) {
        var a = e;
        e = 0;
        do {
            var l = a.nextSibling;
            if (a.nodeType === 1 ? t ? (a._stashedDisplay = a.style.display, a.style.display = "none") : (a.style.display = a._stashedDisplay || "", a.getAttribute("style") === "" && a.removeAttribute("style")) : a.nodeType === 3 && (t ? (a._stashedText = a.nodeValue, a.nodeValue = "") : a.nodeValue = a._stashedText || ""), l && l.nodeType === 8)
                if (a = l.data, a === "/$") {
                    if (e === 0) break;
                    e--
                } else a !== "$" && a !== "$?" && a !== "$~" && a !== "$!" || e++;
            a = l
        } while (a)
    }

    function kh(e) {
        var t = e.firstChild;
        for (t && t.nodeType === 10 && (t = t.nextSibling); t;) {
            var a = t;
            switch (t = t.nextSibling, a.nodeName) {
                case "HTML":
                case "HEAD":
                case "BODY":
                    kh(a), wi(a);
                    continue;
                case "SCRIPT":
                case "STYLE":
                    continue;
                case "LINK":
                    if (a.rel.toLowerCase() === "stylesheet") continue
            }
            e.removeChild(a)
        }
    }

    function zb(e, t, a, l) {
        for (; e.nodeType === 1;) {
            var h = a;
            if (e.nodeName.toLowerCase() !== t.toLowerCase()) {
                if (!l && (e.nodeName !== "INPUT" || e.type !== "hidden")) break
            } else if (l) {
                if (!e[St]) switch (t) {
                    case "meta":
                        if (!e.hasAttribute("itemprop")) break;
                        return e;
                    case "link":
                        if (m = e.getAttribute("rel"), m === "stylesheet" && e.hasAttribute("data-precedence")) break;
                        if (m !== h.rel || e.getAttribute("href") !== (h.href == null || h.href === "" ? null : h.href) || e.getAttribute("crossorigin") !== (h.crossOrigin == null ? null : h.crossOrigin) || e.getAttribute("title") !== (h.title == null ? null : h.title)) break;
                        return e;
                    case "style":
                        if (e.hasAttribute("data-precedence")) break;
                        return e;
                    case "script":
                        if (m = e.getAttribute("src"), (m !== (h.src == null ? null : h.src) || e.getAttribute("type") !== (h.type == null ? null : h.type) || e.getAttribute("crossorigin") !== (h.crossOrigin == null ? null : h.crossOrigin)) && m && e.hasAttribute("async") && !e.hasAttribute("itemprop")) break;
                        return e;
                    default:
                        return e
                }
            } else if (t === "input" && e.type === "hidden") {
                var m = h.name == null ? null : "" + h.name;
                if (h.type === "hidden" && e.getAttribute("name") === m) return e
            } else return e;
            if (e = bi(e.nextSibling), e === null) break
        }
        return null
    }

    function jb(e, t, a) {
        if (t === "") return null;
        for (; e.nodeType !== 3;)
            if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !a || (e = bi(e.nextSibling), e === null)) return null;
        return e
    }

    function Jm(e, t) {
        for (; e.nodeType !== 8;)
            if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !t || (e = bi(e.nextSibling), e === null)) return null;
        return e
    }

    function Lh(e) {
        return e.data === "$?" || e.data === "$~"
    }

    function Uh(e) {
        return e.data === "$!" || e.data === "$?" && e.ownerDocument.readyState !== "loading"
    }

    function Db(e, t) {
        var a = e.ownerDocument;
        if (e.data === "$~") e._reactRetry = t;
        else if (e.data !== "$?" || a.readyState !== "loading") t();
        else {
            var l = function () {
                t(), a.removeEventListener("DOMContentLoaded", l)
            };
            a.addEventListener("DOMContentLoaded", l), e._reactRetry = l
        }
    }

    function bi(e) {
        for (; e != null; e = e.nextSibling) {
            var t = e.nodeType;
            if (t === 1 || t === 3) break;
            if (t === 8) {
                if (t = e.data, t === "$" || t === "$!" || t === "$?" || t === "$~" || t === "&" || t === "F!" || t === "F") break;
                if (t === "/$" || t === "/&") return null
            }
        }
        return e
    }
    var Bh = null;

    function Km(e) {
        e = e.nextSibling;
        for (var t = 0; e;) {
            if (e.nodeType === 8) {
                var a = e.data;
                if (a === "/$" || a === "/&") {
                    if (t === 0) return bi(e.nextSibling);
                    t--
                } else a !== "$" && a !== "$!" && a !== "$?" && a !== "$~" && a !== "&" || t++
            }
            e = e.nextSibling
        }
        return null
    }

    function qm(e) {
        e = e.previousSibling;
        for (var t = 0; e;) {
            if (e.nodeType === 8) {
                var a = e.data;
                if (a === "$" || a === "$!" || a === "$?" || a === "$~" || a === "&") {
                    if (t === 0) return e;
                    t--
                } else a !== "/$" && a !== "/&" || t++
            }
            e = e.previousSibling
        }
        return null
    }

    function $m(e, t, a) {
        switch (t = hf(a), e) {
            case "html":
                if (e = t.documentElement, !e) throw Error(d(452));
                return e;
            case "head":
                if (e = t.head, !e) throw Error(d(453));
                return e;
            case "body":
                if (e = t.body, !e) throw Error(d(454));
                return e;
            default:
                throw Error(d(451))
        }
    }

    function yd(e) {
        for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);
        wi(e)
    }
    var xi = new Map,
        ev = new Set;

    function gf(e) {
        return typeof e.getRootNode == "function" ? e.getRootNode() : e.nodeType === 9 ? e : e.ownerDocument
    }
    var Rs = P.d;
    P.d = {
        f: kb,
        r: Lb,
        D: Ub,
        C: Bb,
        L: Hb,
        m: Fb,
        X: Yb,
        S: Gb,
        M: Xb
    };

    function kb() {
        var e = Rs.f(),
            t = lf();
        return e || t
    }

    function Lb(e) {
        var t = cr(e);
        t !== null && t.tag === 5 && t.type === "form" ? ru(t) : Rs.r(e)
    }
    var wu = typeof document > "u" ? null : document;

    function tv(e, t, a) {
        var l = wu;
        if (l && typeof t == "string" && t) {
            var h = en(t);
            h = 'link[rel="' + e + '"][href="' + h + '"]', typeof a == "string" && (h += '[crossorigin="' + a + '"]'), ev.has(h) || (ev.add(h), e = {
                rel: e,
                crossOrigin: a,
                href: t
            }, l.querySelector(h) === null && (t = l.createElement("link"), kn(t, "link", e), va(t), l.head.appendChild(t)))
        }
    }

    function Ub(e) {
        Rs.D(e), tv("dns-prefetch", e, null)
    }

    function Bb(e, t) {
        Rs.C(e, t), tv("preconnect", e, t)
    }

    function Hb(e, t, a) {
        Rs.L(e, t, a);
        var l = wu;
        if (l && e && t) {
            var h = 'link[rel="preload"][as="' + en(t) + '"]';
            t === "image" && a && a.imageSrcSet ? (h += '[imagesrcset="' + en(a.imageSrcSet) + '"]', typeof a.imageSizes == "string" && (h += '[imagesizes="' + en(a.imageSizes) + '"]')) : h += '[href="' + en(e) + '"]';
            var m = h;
            switch (t) {
                case "style":
                    m = Cu(e);
                    break;
                case "script":
                    m = Nu(e)
            }
            xi.has(m) || (e = A({
                rel: "preload",
                href: t === "image" && a && a.imageSrcSet ? void 0 : e,
                as: t
            }, a), xi.set(m, e), l.querySelector(h) !== null || t === "style" && l.querySelector(Sd(m)) || t === "script" && l.querySelector(wd(m)) || (t = l.createElement("link"), kn(t, "link", e), va(t), l.head.appendChild(t)))
        }
    }

    function Fb(e, t) {
        Rs.m(e, t);
        var a = wu;
        if (a && e) {
            var l = t && typeof t.as == "string" ? t.as : "script",
                h = 'link[rel="modulepreload"][as="' + en(l) + '"][href="' + en(e) + '"]',
                m = h;
            switch (l) {
                case "audioworklet":
                case "paintworklet":
                case "serviceworker":
                case "sharedworker":
                case "worker":
                case "script":
                    m = Nu(e)
            }
            if (!xi.has(m) && (e = A({
                rel: "modulepreload",
                href: e
            }, t), xi.set(m, e), a.querySelector(h) === null)) {
                switch (l) {
                    case "audioworklet":
                    case "paintworklet":
                    case "serviceworker":
                    case "sharedworker":
                    case "worker":
                    case "script":
                        if (a.querySelector(wd(m))) return
                }
                l = a.createElement("link"), kn(l, "link", e), va(l), a.head.appendChild(l)
            }
        }
    }

    function Gb(e, t, a) {
        Rs.S(e, t, a);
        var l = wu;
        if (l && e) {
            var h = Ni(l).hoistableStyles,
                m = Cu(e);
            t = t || "default";
            var N = h.get(m);
            if (!N) {
                var j = {
                    loading: 0,
                    preload: null
                };
                if (N = l.querySelector(Sd(m))) j.loading = 5;
                else {
                    e = A({
                        rel: "stylesheet",
                        href: e,
                        "data-precedence": t
                    }, a), (a = xi.get(m)) && Hh(e, a);
                    var F = N = l.createElement("link");
                    va(F), kn(F, "link", e), F._p = new Promise(function (K, se) {
                        F.onload = K, F.onerror = se
                    }), F.addEventListener("load", function () {
                        j.loading |= 1
                    }), F.addEventListener("error", function () {
                        j.loading |= 2
                    }), j.loading |= 4, mf(N, t, l)
                }
                N = {
                    type: "stylesheet",
                    instance: N,
                    count: 1,
                    state: j
                }, h.set(m, N)
            }
        }
    }

    function Yb(e, t) {
        Rs.X(e, t);
        var a = wu;
        if (a && e) {
            var l = Ni(a).hoistableScripts,
                h = Nu(e),
                m = l.get(h);
            m || (m = a.querySelector(wd(h)), m || (e = A({
                src: e,
                async: !0
            }, t), (t = xi.get(h)) && Fh(e, t), m = a.createElement("script"), va(m), kn(m, "link", e), a.head.appendChild(m)), m = {
                type: "script",
                instance: m,
                count: 1,
                state: null
            }, l.set(h, m))
        }
    }

    function Xb(e, t) {
        Rs.M(e, t);
        var a = wu;
        if (a && e) {
            var l = Ni(a).hoistableScripts,
                h = Nu(e),
                m = l.get(h);
            m || (m = a.querySelector(wd(h)), m || (e = A({
                src: e,
                async: !0,
                type: "module"
            }, t), (t = xi.get(h)) && Fh(e, t), m = a.createElement("script"), va(m), kn(m, "link", e), a.head.appendChild(m)), m = {
                type: "script",
                instance: m,
                count: 1,
                state: null
            }, l.set(h, m))
        }
    }

    function av(e, t, a, l) {
        var h = (h = ga.current) ? gf(h) : null;
        if (!h) throw Error(d(446));
        switch (e) {
            case "meta":
            case "title":
                return null;
            case "style":
                return typeof a.precedence == "string" && typeof a.href == "string" ? (t = Cu(a.href), a = Ni(h).hoistableStyles, l = a.get(t), l || (l = {
                    type: "style",
                    instance: null,
                    count: 0,
                    state: null
                }, a.set(t, l)), l) : {
                    type: "void",
                    instance: null,
                    count: 0,
                    state: null
                };
            case "link":
                if (a.rel === "stylesheet" && typeof a.href == "string" && typeof a.precedence == "string") {
                    e = Cu(a.href);
                    var m = Ni(h).hoistableStyles,
                        N = m.get(e);
                    if (N || (h = h.ownerDocument || h, N = {
                        type: "stylesheet",
                        instance: null,
                        count: 0,
                        state: {
                            loading: 0,
                            preload: null
                        }
                    }, m.set(e, N), (m = h.querySelector(Sd(e))) && !m._p && (N.instance = m, N.state.loading = 5), xi.has(e) || (a = {
                        rel: "preload",
                        as: "style",
                        href: a.href,
                        crossOrigin: a.crossOrigin,
                        integrity: a.integrity,
                        media: a.media,
                        hrefLang: a.hrefLang,
                        referrerPolicy: a.referrerPolicy
                    }, xi.set(e, a), m || Vb(h, e, a, N.state))), t && l === null) throw Error(d(528, ""));
                    return N
                }
                if (t && l !== null) throw Error(d(529, ""));
                return null;
            case "script":
                return t = a.async, a = a.src, typeof a == "string" && t && typeof t != "function" && typeof t != "symbol" ? (t = Nu(a), a = Ni(h).hoistableScripts, l = a.get(t), l || (l = {
                    type: "script",
                    instance: null,
                    count: 0,
                    state: null
                }, a.set(t, l)), l) : {
                    type: "void",
                    instance: null,
                    count: 0,
                    state: null
                };
            default:
                throw Error(d(444, e))
        }
    }

    function Cu(e) {
        return 'href="' + en(e) + '"'
    }

    function Sd(e) {
        return 'link[rel="stylesheet"][' + e + "]"
    }

    function nv(e) {
        return A({}, e, {
            "data-precedence": e.precedence,
            precedence: null
        })
    }

    function Vb(e, t, a, l) {
        e.querySelector('link[rel="preload"][as="style"][' + t + "]") ? l.loading = 1 : (t = e.createElement("link"), l.preload = t, t.addEventListener("load", function () {
            return l.loading |= 1
        }), t.addEventListener("error", function () {
            return l.loading |= 2
        }), kn(t, "link", a), va(t), e.head.appendChild(t))
    }

    function Nu(e) {
        return '[src="' + en(e) + '"]'
    }

    function wd(e) {
        return "script[async]" + e
    }

    function lv(e, t, a) {
        if (t.count++, t.instance === null) switch (t.type) {
            case "style":
                var l = e.querySelector('style[data-href~="' + en(a.href) + '"]');
                if (l) return t.instance = l, va(l), l;
                var h = A({}, a, {
                    "data-href": a.href,
                    "data-precedence": a.precedence,
                    href: null,
                    precedence: null
                });
                return l = (e.ownerDocument || e).createElement("style"), va(l), kn(l, "style", h), mf(l, a.precedence, e), t.instance = l;
            case "stylesheet":
                h = Cu(a.href);
                var m = e.querySelector(Sd(h));
                if (m) return t.state.loading |= 4, t.instance = m, va(m), m;
                l = nv(a), (h = xi.get(h)) && Hh(l, h), m = (e.ownerDocument || e).createElement("link"), va(m);
                var N = m;
                return N._p = new Promise(function (j, F) {
                    N.onload = j, N.onerror = F
                }), kn(m, "link", l), t.state.loading |= 4, mf(m, a.precedence, e), t.instance = m;
            case "script":
                return m = Nu(a.src), (h = e.querySelector(wd(m))) ? (t.instance = h, va(h), h) : (l = a, (h = xi.get(m)) && (l = A({}, a), Fh(l, h)), e = e.ownerDocument || e, h = e.createElement("script"), va(h), kn(h, "link", l), e.head.appendChild(h), t.instance = h);
            case "void":
                return null;
            default:
                throw Error(d(443, t.type))
        } else t.type === "stylesheet" && (t.state.loading & 4) === 0 && (l = t.instance, t.state.loading |= 4, mf(l, a.precedence, e));
        return t.instance
    }

    function mf(e, t, a) {
        for (var l = a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'), h = l.length ? l[l.length - 1] : null, m = h, N = 0; N < l.length; N++) {
            var j = l[N];
            if (j.dataset.precedence === t) m = j;
            else if (m !== h) break
        }
        m ? m.parentNode.insertBefore(e, m.nextSibling) : (t = a.nodeType === 9 ? a.head : a, t.insertBefore(e, t.firstChild))
    }

    function Hh(e, t) {
        e.crossOrigin == null && (e.crossOrigin = t.crossOrigin), e.referrerPolicy == null && (e.referrerPolicy = t.referrerPolicy), e.title == null && (e.title = t.title)
    }

    function Fh(e, t) {
        e.crossOrigin == null && (e.crossOrigin = t.crossOrigin), e.referrerPolicy == null && (e.referrerPolicy = t.referrerPolicy), e.integrity == null && (e.integrity = t.integrity)
    }
    var vf = null;

    function iv(e, t, a) {
        if (vf === null) {
            var l = new Map,
                h = vf = new Map;
            h.set(a, l)
        } else h = vf, l = h.get(a), l || (l = new Map, h.set(a, l));
        if (l.has(e)) return l;
        for (l.set(e, null), a = a.getElementsByTagName(e), h = 0; h < a.length; h++) {
            var m = a[h];
            if (!(m[St] || m[Sa] || e === "link" && m.getAttribute("rel") === "stylesheet") && m.namespaceURI !== "http://www.w3.org/2000/svg") {
                var N = m.getAttribute(t) || "";
                N = e + N;
                var j = l.get(N);
                j ? j.push(m) : l.set(N, [m])
            }
        }
        return l
    }

    function rv(e, t, a) {
        e = e.ownerDocument || e, e.head.insertBefore(a, t === "title" ? e.querySelector("head > title") : null)
    }

    function Ib(e, t, a) {
        if (a === 1 || t.itemProp != null) return !1;
        switch (e) {
            case "meta":
            case "title":
                return !0;
            case "style":
                if (typeof t.precedence != "string" || typeof t.href != "string" || t.href === "") break;
                return !0;
            case "link":
                if (typeof t.rel != "string" || typeof t.href != "string" || t.href === "" || t.onLoad || t.onError) break;
                return t.rel === "stylesheet" ? (e = t.disabled, typeof t.precedence == "string" && e == null) : !0;
            case "script":
                if (t.async && typeof t.async != "function" && typeof t.async != "symbol" && !t.onLoad && !t.onError && t.src && typeof t.src == "string") return !0
        }
        return !1
    }

    function sv(e) {
        return !(e.type === "stylesheet" && (e.state.loading & 3) === 0)
    }

    function Zb(e, t, a, l) {
        if (a.type === "stylesheet" && (typeof l.media != "string" || matchMedia(l.media).matches !== !1) && (a.state.loading & 4) === 0) {
            if (a.instance === null) {
                var h = Cu(l.href),
                    m = t.querySelector(Sd(h));
                if (m) {
                    t = m._p, t !== null && typeof t == "object" && typeof t.then == "function" && (e.count++, e = bf.bind(e), t.then(e, e)), a.state.loading |= 4, a.instance = m, va(m);
                    return
                }
                m = t.ownerDocument || t, l = nv(l), (h = xi.get(h)) && Hh(l, h), m = m.createElement("link"), va(m);
                var N = m;
                N._p = new Promise(function (j, F) {
                    N.onload = j, N.onerror = F
                }), kn(m, "link", l), a.instance = m
            }
            e.stylesheets === null && (e.stylesheets = new Map), e.stylesheets.set(a, t), (t = a.state.preload) && (a.state.loading & 3) === 0 && (e.count++, a = bf.bind(e), t.addEventListener("load", a), t.addEventListener("error", a))
        }
    }
    var Gh = 0;

    function Qb(e, t) {
        return e.stylesheets && e.count === 0 && pf(e, e.stylesheets), 0 < e.count || 0 < e.imgCount ? function (a) {
            var l = setTimeout(function () {
                if (e.stylesheets && pf(e, e.stylesheets), e.unsuspend) {
                    var m = e.unsuspend;
                    e.unsuspend = null, m()
                }
            }, 6e4 + t);
            0 < e.imgBytes && Gh === 0 && (Gh = 62500 * Mb());
            var h = setTimeout(function () {
                if (e.waitingForImages = !1, e.count === 0 && (e.stylesheets && pf(e, e.stylesheets), e.unsuspend)) {
                    var m = e.unsuspend;
                    e.unsuspend = null, m()
                }
            }, (e.imgBytes > Gh ? 50 : 800) + t);
            return e.unsuspend = a,
                function () {
                    e.unsuspend = null, clearTimeout(l), clearTimeout(h)
                }
        } : null
    }

    function bf() {
        if (this.count--, this.count === 0 && (this.imgCount === 0 || !this.waitingForImages)) {
            if (this.stylesheets) pf(this, this.stylesheets);
            else if (this.unsuspend) {
                var e = this.unsuspend;
                this.unsuspend = null, e()
            }
        }
    }
    var xf = null;

    function pf(e, t) {
        e.stylesheets = null, e.unsuspend !== null && (e.count++, xf = new Map, t.forEach(Pb, e), xf = null, bf.call(e))
    }

    function Pb(e, t) {
        if (!(t.state.loading & 4)) {
            var a = xf.get(e);
            if (a) var l = a.get(null);
            else {
                a = new Map, xf.set(e, a);
                for (var h = e.querySelectorAll("link[data-precedence],style[data-precedence]"), m = 0; m < h.length; m++) {
                    var N = h[m];
                    (N.nodeName === "LINK" || N.getAttribute("media") !== "not all") && (a.set(N.dataset.precedence, N), l = N)
                }
                l && a.set(null, l)
            }
            h = t.instance, N = h.getAttribute("data-precedence"), m = a.get(N) || l, m === l && a.set(null, h), a.set(N, h), this.count++, l = bf.bind(this), h.addEventListener("load", l), h.addEventListener("error", l), m ? m.parentNode.insertBefore(h, m.nextSibling) : (e = e.nodeType === 9 ? e.head : e, e.insertBefore(h, e.firstChild)), t.state.loading |= 4
        }
    }
    var Cd = {
        $$typeof: ve,
        Provider: null,
        Consumer: null,
        _currentValue: Te,
        _currentValue2: Te,
        _threadCount: 0
    };

    function Wb(e, t, a, l, h, m, N, j, F) {
        this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = Hs(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = Hs(0), this.hiddenUpdates = Hs(null), this.identifierPrefix = l, this.onUncaughtError = h, this.onCaughtError = m, this.onRecoverableError = N, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = F, this.incompleteTransitions = new Map
    }

    function cv(e, t, a, l, h, m, N, j, F, K, se, de) {
        return e = new Wb(e, t, a, N, F, K, se, de, j), t = 1, m === !0 && (t |= 24), m = zt(3, null, null, t), e.current = m, m.stateNode = e, t = fc(), t.refCount++, e.pooledCache = t, t.refCount++, m.memoizedState = {
            element: l,
            isDehydrated: a,
            cache: t
        }, al(m), e
    }

    function ov(e) {
        return e ? (e = $e, e) : $e
    }

    function uv(e, t, a, l, h, m) {
        h = ov(h), l.context === null ? l.context = h : l.pendingContext = h, l = Sn(t), l.payload = {
            element: a
        }, m = m === void 0 ? null : m, m !== null && (l.callback = m), a = Qa(e, l, t), a !== null && (wl(a, e, t), Yn(a, e, t))
    }

    function dv(e, t) {
        if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
            var a = e.retryLane;
            e.retryLane = a !== 0 && a < t ? a : t
        }
    }

    function Yh(e, t) {
        dv(e, t), (e = e.alternate) && dv(e, t)
    }

    function fv(e) {
        if (e.tag === 13 || e.tag === 31) {
            var t = xt(e, 67108864);
            t !== null && wl(t, e, 67108864), Yh(e, 67108864)
        }
    }

    function hv(e) {
        if (e.tag === 13 || e.tag === 31) {
            var t = ai();
            t = vn(t);
            var a = xt(e, t);
            a !== null && wl(a, e, t), Yh(e, t)
        }
    }
    var yf = !0;

    function Jb(e, t, a, l) {
        var h = B.T;
        B.T = null;
        var m = P.p;
        try {
            P.p = 2, Xh(e, t, a, l)
        } finally {
            P.p = m, B.T = h
        }
    }

    function Kb(e, t, a, l) {
        var h = B.T;
        B.T = null;
        var m = P.p;
        try {
            P.p = 8, Xh(e, t, a, l)
        } finally {
            P.p = m, B.T = h
        }
    }

    function Xh(e, t, a, l) {
        if (yf) {
            var h = Vh(l);
            if (h === null) Rh(e, t, l, Sf, a), mv(e, l);
            else if ($b(h, e, t, a, l)) l.stopPropagation();
            else if (mv(e, l), t & 4 && -1 < qb.indexOf(e)) {
                for (; h !== null;) {
                    var m = cr(h);
                    if (m !== null) switch (m.tag) {
                        case 3:
                            if (m = m.stateNode, m.current.memoizedState.isDehydrated) {
                                var N = El(m.pendingLanes);
                                if (N !== 0) {
                                    var j = m;
                                    for (j.pendingLanes |= 2, j.entangledLanes |= 2; N;) {
                                        var F = 1 << 31 - Fa(N);
                                        j.entanglements[1] |= F, N &= ~F
                                    }
                                    Fr(m), (_t & 6) === 0 && (af = gn() + 500, bd(0))
                                }
                            }
                            break;
                        case 31:
                        case 13:
                            j = xt(m, 2), j !== null && wl(j, m, 2), lf(), Yh(m, 2)
                    }
                    if (m = Vh(l), m === null && Rh(e, t, l, Sf, a), m === h) break;
                    h = m
                }
                h !== null && l.stopPropagation()
            } else Rh(e, t, l, null, a)
        }
    }

    function Vh(e) {
        return e = hr(e), Ih(e)
    }
    var Sf = null;

    function Ih(e) {
        if (Sf = null, e = wa(e), e !== null) {
            var t = x(e);
            if (t === null) e = null;
            else {
                var a = t.tag;
                if (a === 13) {
                    if (e = p(t), e !== null) return e;
                    e = null
                } else if (a === 31) {
                    if (e = w(t), e !== null) return e;
                    e = null
                } else if (a === 3) {
                    if (t.stateNode.current.memoizedState.isDehydrated) return t.tag === 3 ? t.stateNode.containerInfo : null;
                    e = null
                } else t !== e && (e = null)
            }
        }
        return Sf = e, null
    }

    function gv(e) {
        switch (e) {
            case "beforetoggle":
            case "cancel":
            case "click":
            case "close":
            case "contextmenu":
            case "copy":
            case "cut":
            case "auxclick":
            case "dblclick":
            case "dragend":
            case "dragstart":
            case "drop":
            case "focusin":
            case "focusout":
            case "input":
            case "invalid":
            case "keydown":
            case "keypress":
            case "keyup":
            case "mousedown":
            case "mouseup":
            case "paste":
            case "pause":
            case "play":
            case "pointercancel":
            case "pointerdown":
            case "pointerup":
            case "ratechange":
            case "reset":
            case "resize":
            case "seeked":
            case "submit":
            case "toggle":
            case "touchcancel":
            case "touchend":
            case "touchstart":
            case "volumechange":
            case "change":
            case "selectionchange":
            case "textInput":
            case "compositionstart":
            case "compositionend":
            case "compositionupdate":
            case "beforeblur":
            case "afterblur":
            case "beforeinput":
            case "blur":
            case "fullscreenchange":
            case "focus":
            case "hashchange":
            case "popstate":
            case "select":
            case "selectstart":
                return 2;
            case "drag":
            case "dragenter":
            case "dragexit":
            case "dragleave":
            case "dragover":
            case "mousemove":
            case "mouseout":
            case "mouseover":
            case "pointermove":
            case "pointerout":
            case "pointerover":
            case "scroll":
            case "touchmove":
            case "wheel":
            case "mouseenter":
            case "mouseleave":
            case "pointerenter":
            case "pointerleave":
                return 8;
            case "message":
                switch (ot()) {
                    case mn:
                        return 2;
                    case Io:
                        return 8;
                    case nr:
                    case Ra:
                        return 32;
                    case Us:
                        return 268435456;
                    default:
                        return 32
                }
            default:
                return 32
        }
    }
    var Zh = !1,
        Fc = null,
        Gc = null,
        Yc = null,
        Nd = new Map,
        Td = new Map,
        Xc = [],
        qb = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");

    function mv(e, t) {
        switch (e) {
            case "focusin":
            case "focusout":
                Fc = null;
                break;
            case "dragenter":
            case "dragleave":
                Gc = null;
                break;
            case "mouseover":
            case "mouseout":
                Yc = null;
                break;
            case "pointerover":
            case "pointerout":
                Nd.delete(t.pointerId);
                break;
            case "gotpointercapture":
            case "lostpointercapture":
                Td.delete(t.pointerId)
        }
    }

    function Ed(e, t, a, l, h, m) {
        return e === null || e.nativeEvent !== m ? (e = {
            blockedOn: t,
            domEventName: a,
            eventSystemFlags: l,
            nativeEvent: m,
            targetContainers: [h]
        }, t !== null && (t = cr(t), t !== null && fv(t)), e) : (e.eventSystemFlags |= l, t = e.targetContainers, h !== null && t.indexOf(h) === -1 && t.push(h), e)
    }

    function $b(e, t, a, l, h) {
        switch (t) {
            case "focusin":
                return Fc = Ed(Fc, e, t, a, l, h), !0;
            case "dragenter":
                return Gc = Ed(Gc, e, t, a, l, h), !0;
            case "mouseover":
                return Yc = Ed(Yc, e, t, a, l, h), !0;
            case "pointerover":
                var m = h.pointerId;
                return Nd.set(m, Ed(Nd.get(m) || null, e, t, a, l, h)), !0;
            case "gotpointercapture":
                return m = h.pointerId, Td.set(m, Ed(Td.get(m) || null, e, t, a, l, h)), !0
        }
        return !1
    }

    function vv(e) {
        var t = wa(e.target);
        if (t !== null) {
            var a = x(t);
            if (a !== null) {
                if (t = a.tag, t === 13) {
                    if (t = p(a), t !== null) {
                        e.blockedOn = t, bn(e.priority, function () {
                            hv(a)
                        });
                        return
                    }
                } else if (t === 31) {
                    if (t = w(a), t !== null) {
                        e.blockedOn = t, bn(e.priority, function () {
                            hv(a)
                        });
                        return
                    }
                } else if (t === 3 && a.stateNode.current.memoizedState.isDehydrated) {
                    e.blockedOn = a.tag === 3 ? a.stateNode.containerInfo : null;
                    return
                }
            }
        }
        e.blockedOn = null
    }

    function wf(e) {
        if (e.blockedOn !== null) return !1;
        for (var t = e.targetContainers; 0 < t.length;) {
            var a = Vh(e.nativeEvent);
            if (a === null) {
                a = e.nativeEvent;
                var l = new a.constructor(a.type, a);
                fr = l, a.target.dispatchEvent(l), fr = null
            } else return t = cr(a), t !== null && fv(t), e.blockedOn = a, !1;
            t.shift()
        }
        return !0
    }

    function bv(e, t, a) {
        wf(e) && a.delete(t)
    }

    function ex() {
        Zh = !1, Fc !== null && wf(Fc) && (Fc = null), Gc !== null && wf(Gc) && (Gc = null), Yc !== null && wf(Yc) && (Yc = null), Nd.forEach(bv), Td.forEach(bv)
    }

    function Cf(e, t) {
        e.blockedOn === t && (e.blockedOn = null, Zh || (Zh = !0, n.unstable_scheduleCallback(n.unstable_NormalPriority, ex)))
    }
    var Nf = null;

    function xv(e) {
        Nf !== e && (Nf = e, n.unstable_scheduleCallback(n.unstable_NormalPriority, function () {
            Nf === e && (Nf = null);
            for (var t = 0; t < e.length; t += 3) {
                var a = e[t],
                    l = e[t + 1],
                    h = e[t + 2];
                if (typeof l != "function") {
                    if (Ih(l || a) === null) continue;
                    break
                }
                var m = cr(a);
                m !== null && (e.splice(t, 3), t -= 3, Nc(m, {
                    pending: !0,
                    data: h,
                    method: a.method,
                    action: l
                }, l, h))
            }
        }))
    }

    function Tu(e) {
        function t(F) {
            return Cf(F, e)
        }
        Fc !== null && Cf(Fc, e), Gc !== null && Cf(Gc, e), Yc !== null && Cf(Yc, e), Nd.forEach(t), Td.forEach(t);
        for (var a = 0; a < Xc.length; a++) {
            var l = Xc[a];
            l.blockedOn === e && (l.blockedOn = null)
        }
        for (; 0 < Xc.length && (a = Xc[0], a.blockedOn === null);) vv(a), a.blockedOn === null && Xc.shift();
        if (a = (e.ownerDocument || e).$$reactFormReplay, a != null)
            for (l = 0; l < a.length; l += 3) {
                var h = a[l],
                    m = a[l + 1],
                    N = h[qa] || null;
                if (typeof m == "function") N || xv(a);
                else if (N) {
                    var j = null;
                    if (m && m.hasAttribute("formAction")) {
                        if (h = m, N = m[qa] || null) j = N.formAction;
                        else if (Ih(h) !== null) continue
                    } else j = N.action;
                    typeof j == "function" ? a[l + 1] = j : (a.splice(l, 3), l -= 3), xv(a)
                }
            }
    }

    function pv() {
        function e(m) {
            m.canIntercept && m.info === "react-transition" && m.intercept({
                handler: function () {
                    return new Promise(function (N) {
                        return h = N
                    })
                },
                focusReset: "manual",
                scroll: "manual"
            })
        }

        function t() {
            h !== null && (h(), h = null), l || setTimeout(a, 20)
        }

        function a() {
            if (!l && !navigation.transition) {
                var m = navigation.currentEntry;
                m && m.url != null && navigation.navigate(m.url, {
                    state: m.getState(),
                    info: "react-transition",
                    history: "replace"
                })
            }
        }
        if (typeof navigation == "object") {
            var l = !1,
                h = null;
            return navigation.addEventListener("navigate", e), navigation.addEventListener("navigatesuccess", t), navigation.addEventListener("navigateerror", t), setTimeout(a, 100),
                function () {
                    l = !0, navigation.removeEventListener("navigate", e), navigation.removeEventListener("navigatesuccess", t), navigation.removeEventListener("navigateerror", t), h !== null && (h(), h = null)
                }
        }
    }

    function Qh(e) {
        this._internalRoot = e
    }
    Tf.prototype.render = Qh.prototype.render = function (e) {
        var t = this._internalRoot;
        if (t === null) throw Error(d(409));
        var a = t.current,
            l = ai();
        uv(a, l, e, t, null, null)
    }, Tf.prototype.unmount = Qh.prototype.unmount = function () {
        var e = this._internalRoot;
        if (e !== null) {
            this._internalRoot = null;
            var t = e.containerInfo;
            uv(e.current, 2, null, e, null, null), lf(), t[li] = null
        }
    };

    function Tf(e) {
        this._internalRoot = e
    }
    Tf.prototype.unstable_scheduleHydration = function (e) {
        if (e) {
            var t = Wr();
            e = {
                blockedOn: null,
                target: e,
                priority: t
            };
            for (var a = 0; a < Xc.length && t !== 0 && t < Xc[a].priority; a++);
            Xc.splice(a, 0, e), a === 0 && vv(e)
        }
    };
    var yv = u.version;
    if (yv !== "19.2.4") throw Error(d(527, yv, "19.2.4"));
    P.findDOMNode = function (e) {
        var t = e._reactInternals;
        if (t === void 0) throw typeof e.render == "function" ? Error(d(188)) : (e = Object.keys(e).join(","), Error(d(268, e)));
        return e = T(t), e = e !== null ? R(e) : null, e = e === null ? null : e.stateNode, e
    };
    var tx = {
        bundleType: 0,
        version: "19.2.4",
        rendererPackageName: "react-dom",
        currentDispatcherRef: B,
        reconcilerVersion: "19.2.4"
    };
    if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
        var Ef = __REACT_DEVTOOLS_GLOBAL_HOOK__;
        if (!Ef.isDisabled && Ef.supportsFiber) try {
            ni = Ef.inject(tx), pa = Ef
        } catch { }
    }
    return Md.createRoot = function (e, t) {
        if (!g(e)) throw Error(d(299));
        var a = !1,
            l = "",
            h = ad,
            m = Ur,
            N = nd;
        return t != null && (t.unstable_strictMode === !0 && (a = !0), t.identifierPrefix !== void 0 && (l = t.identifierPrefix), t.onUncaughtError !== void 0 && (h = t.onUncaughtError), t.onCaughtError !== void 0 && (m = t.onCaughtError), t.onRecoverableError !== void 0 && (N = t.onRecoverableError)), t = cv(e, 1, !1, null, null, a, l, null, h, m, N, pv), e[li] = t.current, Ah(e), new Qh(t)
    }, Md.hydrateRoot = function (e, t, a) {
        if (!g(e)) throw Error(d(299));
        var l = !1,
            h = "",
            m = ad,
            N = Ur,
            j = nd,
            F = null;
        return a != null && (a.unstable_strictMode === !0 && (l = !0), a.identifierPrefix !== void 0 && (h = a.identifierPrefix), a.onUncaughtError !== void 0 && (m = a.onUncaughtError), a.onCaughtError !== void 0 && (N = a.onCaughtError), a.onRecoverableError !== void 0 && (j = a.onRecoverableError), a.formState !== void 0 && (F = a.formState)), t = cv(e, 1, !0, t, a ?? null, l, h, F, m, N, j, pv), t.context = ov(null), a = t.current, l = ai(), l = vn(l), h = Sn(l), h.callback = null, Qa(a, h, l), a = l, t.current.lanes = a, Pr(t, a), Fr(t), e[li] = t.current, Ah(e), new Tf(t)
    }, Md.version = "19.2.4", Md
}
var Av;

function dy() {
    if (Av) return Wh.exports;
    Av = 1;

    function n() {
        if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {
            __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)
        } catch (u) {
            console.error(u)
        }
    }
    return n(), Wh.exports = uy(), Wh.exports
}
var fy = dy();
const zu = it(n => ({
    modalExterno: null,
    zIndex: 900,
    btnClose: !1,
    auxFunc: {
        mounted: null,
        desmouted: null
    },
    open: (u, i = 900, d = !1, g = {
        mounted: null,
        desmouted: null
    }) => {
        g.mounted && g.mounted(), n(() => ({
            modalExterno: u,
            zIndex: i,
            btnClose: d,
            auxFunc: g
        }))
    },
    close: () => n(u => (u.auxFunc.desmouted && u.auxFunc.desmouted(), {
        modalExterno: null
    }))
}));

function hy() {
    const {
        modalExterno: n,
        btnClose: u,
        close: i,
        zIndex: d
    } = zu(), g = W.useRef(null), x = W.useRef(null);
    return W.useEffect(() => {
        const p = w => {
            const M = document.querySelector(".iziToast-wrapper"),
                T = document.querySelector('section[data-id="Modal Options"]'),
                R = document.querySelector('section[data-id="Modal"]');
            u && g.current && !x.current.contains(w.target) && (!M || !M.contains(w.target)) && !T && !R && i()
        };
        return n && document.addEventListener("mousedown", p), () => {
            document.removeEventListener("mousedown", p)
        }
    }, [n]), n && s.jsx("section", {
        "data-id": "Modal Externo",
        className: "w-full h-full",
        children: s.jsx("dialog", {
            id: "my_modal_5",
            ref: g,
            className: "modal modal-bottom sm:modal-middle !absolute bg-[var(--modal-backdrop)] overflow-hidden !opacity-100 !pointer-events-auto !visible",
            style: {
                zIndex: d
            },
            children: s.jsxs("div", {
                ref: x,
                className: "animate__animated animate__zoomIn relative overflow-hidden !max-w-none !max-h-none !w-fit !h-fit p-2",
                children: [u && s.jsx("span", {
                    className: "absolute w-5 h-5 top-3 right-3 pulse !cursor-pointer",
                    onClick: i,
                    children: s.jsx(O0, {
                        className: "w-full h-full text-[var(--primary-strong)]"
                    })
                }), s.jsx("div", {
                    className: "w-full h-full",
                    children: n
                })]
            })
        })
    })
}
const gy = it()(n => ({
    modalEmoji: null,
    options: {},
    childrenRef: null,
    offset: 0,
    auxFunc: {
        mounted: null,
        desmouted: null
    },
    open: (u, i, d, g = 10, x = {
        mounted: null,
        desmouted: null
    }) => n(p => (x.mounted && x.mounted(), p.childrenRef !== d && p.auxFunc.desmouted && p.auxFunc.desmouted(), {
        modalEmoji: u,
        options: i,
        childrenRef: d,
        offset: g,
        auxFunc: x
    })),
    close: () => n(u => (u.auxFunc.desmouted && u.auxFunc.desmouted(), {
        modalEmoji: null,
        options: {}
    }))
}));

function my() {
    const {
        modalEmoji: n,
        options: u,
        childrenRef: i,
        offset: d,
        close: g
    } = gy(), {
        refs: x,
        floatingStyles: p,
        update: w,
        elements: M
    } = V0({
        ...u,
        middleware: [Z0({
            padding: 5
        }), Q0({
            padding: 5
        }), P0({
            apply({
                availableWidth: T,
                availableHeight: R,
                elements: A
            }) {
                Object.assign(A.floating.style, {
                    maxWidth: `${T}px`,
                    maxHeight: `${R}px`
                })
            }
        }), W0(d)]
    });
    return W.useLayoutEffect(() => {
        if (n && M.reference && M.floating) return I0(M.reference, M.floating, w)
    }, [n, M, w]), W.useLayoutEffect(() => {
        const T = R => {
            const A = document.querySelector(".iziToast-wrapper");
            x.floating.current && !x.floating.current.contains(R.target) && !i.contains(R.target) && (!A || !A.contains(R.target)) && !document.querySelector("#pane-side ._21S-L span")?.contains(R.target) && g()
        };
        return i && (x.setReference(i), document.addEventListener("click", T)), () => {
            document.removeEventListener("click", T)
        }
    }, [n, i]), n && s.jsx("section", {
        "data-id": "Modal Emoji",
        children: s.jsx("div", {
            ref: x.setFloating,
            role: "tooltip",
            className: "z-[9999]",
            style: p,
            children: s.jsx("div", {
                className: "py-[9px] overflow-visible text-left bg-[var(--dropdown-background)] rounded-2xl shadow-2xl",
                style: {
                    position: "initial",
                    maxWidth: "100vw"
                },
                role: "application",
                children: s.jsx("ul", {
                    "data-testid": "attach-menu-popup",
                    children: s.jsx("div", {
                        className: "py-[3px]",
                        children: n
                    })
                })
            })
        })
    })
}
const vy = (n, u) => {
    const i = og.getState().getContainer(n),
        d = i.getState().emojiArea;
    d && (d.setText(u), i.setState(g => ({
        emojiArea: {
            ...g.emojiArea,
            text: u
        }
    })))
},
    by = () => it()((n, u) => ({
        emojiArea: null
    })),
    og = it()((n, u) => ({
        container: {},
        getContainer: i => {
            const {
                container: d
            } = u();
            if (d[i]) return d[i];
            {
                const g = by();
                return n(x => ({
                    container: {
                        ...x.container,
                        [i]: g
                    }
                })), g
            }
        },
        deleteContainer: i => n(d => {
            const g = {
                ...d.container
            };
            return delete g[i], {
                container: g
            }
        })
    })),
    xy = W.lazy(() => Zr(() => import("./assets/js/index.DRW4U9fP.js"), __vite__mapDeps([9, 1, 2, 3, 4, 5, 10, 6, 7, 8])));

function py({
    id: n
}) {
    return s.jsx(W.Suspense, {
        fallback: s.jsx(s.Fragment, {}),
        children: s.jsx(xy, {
            id: n
        })
    })
}
const yy = W.lazy(() => Zr(() => import("./assets/js/index.DRHHKTLf.js"), __vite__mapDeps([11, 2, 3, 4, 1, 5, 6, 7, 8])));

function Sy({
    id: n
}) {
    return s.jsx(W.Suspense, {
        fallback: s.jsx(s.Fragment, {}),
        children: s.jsx(yy, {
            id: n
        })
    })
}
const wy = W.lazy(() => Zr(() => import("./assets/js/index.B8aLIhGY.js"), __vite__mapDeps([12, 2, 3, 4, 10, 1, 5, 6, 7, 8])));

function Cy({
    id: n
}) {
    return s.jsx(W.Suspense, {
        fallback: s.jsx(s.Fragment, {}),
        children: s.jsx(wy, {
            id: n
        })
    })
}

function Dg({
    id: n,
    titulo: u,
    type: i,
    placeholder: d,
    text: g,
    setText: x,
    heightCamp: p,
    heightTextArea: w,
    position: M,
    className: T = ""
}) {
    const R = og(G => G.deleteContainer),
        A = og(G => G.getContainer),
        O = A(n)(G => G.emojiArea?.type);
    W.useEffect(() => (A(n).setState({
        emojiArea: {
            id: n,
            titulo: u,
            type: i,
            placeholder: d,
            text: g,
            setText: x,
            heightCamp: p,
            heightTextArea: w,
            position: M,
            className: T
        }
    }), () => {
        R(n)
    }), []);
    const L = {
        input: s.jsx(Sy, {
            id: n
        }),
        textarea: s.jsx(Cy, {
            id: n
        })
    };
    return O && s.jsxs("aside", {
        "type-render": "Components",
        "render-name": "emojiArea",
        children: [u && s.jsx("h2", {
            className: "mb-1",
            children: u
        }), s.jsxs("div", {
            className: "flex !p-0 " + T,
            children: [s.jsx("div", {
                className: "w-full flex",
                children: L[O]
            }), s.jsx(py, {
                id: n
            })]
        })]
    })
}
const Qr = it()((n, u) => ({
    menu: "Left",
    setMenu: i => {
        localStorage.setItem("menu", i), n({
            menu: i
        })
    },
    zoom: 100,
    setZoom: i => {
        localStorage.setItem("zoom", i.toString()), n({
            zoom: i
        })
    },
    menuLateral: {
        children: "",
        width: "250px"
    },
    setMenuLateral: i => {
        localStorage.setItem("menuLateral", JSON.stringify(i)), n({
            menuLateral: i
        })
    },
    openCat: [],
    setOpenCat: i => {
        localStorage.setItem("openCat", JSON.stringify(i)), n({
            openCat: i
        })
    },
    userId: "",
    setUserId: i => n({
        userId: i
    }),
    menuVerticalOpen: !1,
    setMenuVerticalOpen: i => {
        localStorage.setItem("menuVerticalOpen", i.toString()), n({
            menuVerticalOpen: i
        })
    }
}));
(() => {
    const {
        setMenu: n,
        setZoom: u,
        setMenuLateral: i,
        setOpenCat: d,
        setMenuVerticalOpen: g
    } = Qr.getState(), x = localStorage.getItem("menu");
    x && n(x);
    const p = localStorage.getItem("zoom");
    p && u(parseInt(p));
    const w = localStorage.getItem("menuLateral");
    w && i(JSON.parse(w));
    const M = localStorage.getItem("openCat");
    M && d(JSON.parse(M));
    const T = localStorage.getItem("menuVerticalOpen") === "true";
    T && g(T)
})();

function d1() {
    return (u, i = []) => {
        W.useEffect(() => (document.addEventListener("keydown", u), () => {
            document.removeEventListener("keydown", u)
        }), [...i])
    }
}
const Ny = {
    expanded: {
        width: "240px",
        transition: {
            type: "spring",
            stiffness: 300,
            damping: 25,
            when: "beforeChildren"
        }
    },
    collapsed: {
        width: "72px",
        transition: {
            type: "spring",
            stiffness: 300,
            damping: 25,
            when: "afterChildren"
        }
    }
},
    Ty = {
        initial: {
            opacity: 0,
            x: -15
        },
        animate: {
            opacity: 1,
            x: 0,
            transition: {
                type: "spring",
                stiffness: 300,
                damping: 25
            }
        },
        exit: {
            opacity: 0,
            x: -15,
            transition: {
                duration: .2,
                ease: "easeInOut"
            }
        },
        hover: {
            scale: 1.05,
            transition: {
                type: "spring",
                stiffness: 400,
                damping: 10
            }
        }
    },
    Mf = {
        initial: {
            opacity: 0,
            x: -10
        },
        animate: {
            opacity: 1,
            x: 0,
            transition: {
                delay: .1,
                duration: .3
            }
        },
        exit: {
            opacity: 0,
            x: -10,
            transition: {
                duration: .2
            }
        }
    },
    Ey = {
        initial: {
            scale: 0,
            opacity: 0
        },
        animate: {
            scale: 1,
            opacity: 1,
            transition: {
                type: "spring",
                stiffness: 400,
                damping: 15
            }
        },
        exit: {
            scale: 0,
            opacity: 0,
            transition: {
                duration: .2
            }
        }
    };

function My({
    item: n,
    sidebarCollapsed: u,
    textVariants: i
}) {
    return s.jsxs($t.div, {
        ref: n.ref,
        className: "flex items-center mb-2 p-2 rounded-lg cursor-pointer group hover:bg-[var(--panel-header-background)] hover:bg-opacity-25",
        onClick: n.action,
        variants: Ty,
        initial: "initial",
        animate: "animate",
        whileHover: "hover",
        whileTap: {
            scale: .95
        },
        title: n.tooltip,
        children: [s.jsx("div", {
            className: "flex items-center justify-center w-9 h-9 rounded-lg bg-[var(--panel-header-background)] bg-opacity-80 group-hover:bg-[var(--primaria)] group-hover:text-white transition-colors duration-200",
            children: n.icon
        }), s.jsx(_u, {
            children: !u && s.jsx($t.div, {
                className: "ml-3 text-[var(--text-default)]",
                variants: i,
                initial: "initial",
                animate: "animate",
                exit: "exit",
                children: n.name
            })
        })]
    })
}

function Hd({
    style: n
}) {
    return s.jsxs("svg", {
        viewBox: "0 0 212 212",
        height: "212",
        width: "212",
        preserveAspectRatio: "xMidYMid meet",
        className: n || "w-full h-full",
        version: "1.1",
        x: "0px",
        y: "0px",
        enableBackground: "new 0 0 212 212",
        children: [s.jsx("title", {
            children: "default-user"
        }), s.jsx("path", {
            fill: "#DFE5E7",
            className: "fill-[var(--avatar-placeholder-background)]",
            d: "M106.251,0.5C164.653,0.5,212,47.846,212,106.25S164.653,212,106.25,212C47.846,212,0.5,164.654,0.5,106.25 S47.846,0.5,106.251,0.5z"
        }), s.jsxs("g", {
            children: [s.jsx("path", {
                fill: "#FFFFFF",
                className: "fill-[var(--avatar-placeholder-primary)]",
                d: "M173.561,171.615c-0.601-0.915-1.287-1.907-2.065-2.955c-0.777-1.049-1.645-2.155-2.608-3.299 c-0.964-1.144-2.024-2.326-3.184-3.527c-1.741-1.802-3.71-3.646-5.924-5.47c-2.952-2.431-6.339-4.824-10.204-7.026 c-1.877-1.07-3.873-2.092-5.98-3.055c-0.062-0.028-0.118-0.059-0.18-0.087c-9.792-4.44-22.106-7.529-37.416-7.529 s-27.624,3.089-37.416,7.529c-0.338,0.153-0.653,0.318-0.985,0.474c-1.431,0.674-2.806,1.376-4.128,2.101 c-0.716,0.393-1.417,0.792-2.101,1.197c-3.421,2.027-6.475,4.191-9.15,6.395c-2.213,1.823-4.182,3.668-5.924,5.47 c-1.161,1.201-2.22,2.384-3.184,3.527c-0.964,1.144-1.832,2.25-2.609,3.299c-0.778,1.049-1.464,2.04-2.065,2.955 c-0.557,0.848-1.033,1.622-1.447,2.324c-0.033,0.056-0.073,0.119-0.104,0.174c-0.435,0.744-0.79,1.392-1.07,1.926 c-0.559,1.068-0.818,1.678-0.818,1.678v0.398c18.285,17.927,43.322,28.985,70.945,28.985c27.678,0,52.761-11.103,71.055-29.095 v-0.289c0,0-0.619-1.45-1.992-3.778C174.594,173.238,174.117,172.463,173.561,171.615z"
            }), s.jsx("path", {
                fill: "#FFFFFF",
                className: "fill-[var(--avatar-placeholder-primary)]",
                d: "M106.002,125.5c2.645,0,5.212-0.253,7.68-0.737c1.234-0.242,2.443-0.542,3.624-0.896 c1.772-0.532,3.482-1.188,5.12-1.958c2.184-1.027,4.242-2.258,6.15-3.67c2.863-2.119,5.39-4.646,7.509-7.509 c0.706-0.954,1.367-1.945,1.98-2.971c0.919-1.539,1.729-3.155,2.422-4.84c0.462-1.123,0.872-2.277,1.226-3.458 c0.177-0.591,0.341-1.188,0.49-1.792c0.299-1.208,0.542-2.443,0.725-3.701c0.275-1.887,0.417-3.827,0.417-5.811 c0-1.984-0.142-3.925-0.417-5.811c-0.184-1.258-0.426-2.493-0.725-3.701c-0.15-0.604-0.313-1.202-0.49-1.793 c-0.354-1.181-0.764-2.335-1.226-3.458c-0.693-1.685-1.504-3.301-2.422-4.84c-0.613-1.026-1.274-2.017-1.98-2.971 c-2.119-2.863-4.646-5.39-7.509-7.509c-1.909-1.412-3.966-2.643-6.15-3.67c-1.638-0.77-3.348-1.426-5.12-1.958 c-1.181-0.355-2.39-0.655-3.624-0.896c-2.468-0.484-5.035-0.737-7.68-0.737c-21.162,0-37.345,16.183-37.345,37.345 C68.657,109.317,84.84,125.5,106.002,125.5z"
            })]
        })]
    })
}

function Ay({
    profile: n,
    sidebarCollapsed: u,
    textVariants: i
}) {
    return s.jsx("div", {
        className: "mt-auto px-3 mb-2",
        children: s.jsxs($t.div, {
            className: "flex items-center p-2 rounded-full cursor-pointer",
            initial: {
                opacity: 0,
                y: 20
            },
            animate: {
                opacity: 1,
                y: 0,
                transition: {
                    type: "spring",
                    stiffness: 300,
                    damping: 25,
                    delay: .2
                }
            },
            whileHover: {
                scale: 1.02
            },
            whileTap: {
                scale: .98
            },
            children: [s.jsx("div", {
                className: "flex items-center justify-center w-8 h-8 rounded-full overflow-hidden select-none",
                children: n && (n.profilePic ? s.jsx("img", {
                    src: n.profilePic,
                    alt: n.name,
                    className: "object-cover w-full h-full"
                }) : s.jsx(Hd, {
                    style: "w-full h-full object-cover"
                }))
            }), s.jsx(_u, {
                children: !u && n && s.jsx($t.div, {
                    className: "ml-3 text-sm text-[var(--text-default)] max-w-[120px] whitespace-nowrap overflow-hidden select-none text-ellipsis",
                    variants: i,
                    initial: "initial",
                    animate: "animate",
                    exit: "exit",
                    children: n.name || "Usuário"
                })
            })]
        })
    })
}

function Ry({
    sidebarCollapsed: n,
    textVariants: u
}) {
    const i = Fo(p => p.crm),
        {
            ativeCRM: d
        } = ea(),
        {
            language: g
        } = Ce(),
        x = () => {
            if (d === "Abas") return s.jsx(Ex, {
                className: "h-5 w-5 text-primary"
            });
            if (d === "Etiquetas") return s.jsx(Mx, {
                className: "h-5 w-5 text-primary"
            });
            if (i.length !== 0 && d !== "Abas" && d !== "Etiquetas") {
                const p = i.find(w => w.id === d);
                return s.jsx(c1, {
                    className: "h-5 w-5",
                    style: {
                        color: p?.hexColor || "var(--primaria)"
                    }
                })
            }
            return null
        };
    return s.jsx("div", {
        className: "px-3 mb-4",
        children: s.jsxs($t.div, {
            className: "flex items-center p-2 rounded-lg bg-[var(--background-default)] bg-opacity-10",
            initial: {
                opacity: 0,
                y: 20
            },
            animate: {
                opacity: 1,
                y: 0,
                transition: {
                    type: "spring",
                    stiffness: 300,
                    damping: 25,
                    delay: .3
                }
            },
            children: [s.jsx(_u, {
                mode: "wait",
                children: s.jsx($t.div, {
                    className: "flex items-center justify-center w-9 h-9 rounded-lg bg-[var(--background-default)] bg-opacity-50",
                    variants: Ey,
                    initial: "initial",
                    animate: "animate",
                    exit: "exit",
                    children: x()
                }, d)
            }), s.jsx(_u, {
                children: !n && s.jsx($t.div, {
                    className: "ml-3 text-sm text-[var(--text-default)] max-w-[120px] whitespace-nowrap overflow-hidden text-ellipsis select-none",
                    variants: u,
                    initial: "initial",
                    animate: "animate",
                    exit: "exit",
                    children: d === "Abas" ? g.abas : d === "Etiquetas" ? g.etiquetas : i.find(p => p.id === d)?.name || "Dashboard"
                })
            })]
        })
    })
}

function ah({
    color: n,
    size: u = 24
}) {
    const {
        ativeCRM: i
    } = ea();
    return i === "Abas" ? s.jsx($f, {
        size: u,
        style: {
            color: n
        }
    }) : i === "Etiquetas" ? s.jsx(eh, {
        size: u,
        style: {
            color: n
        }
    }) : s.jsx(z0, {
        size: u,
        style: {
            color: n
        }
    })
}
const _y = n => {
    const {
        ativeCRM: u
    } = ea.getState(), {
        setCreateUserTab: i
    } = at.getState();
    switch (u) {
        case "Abas":
            i(n);
            break;
        case "Etiquetas":
            console.warn("Não e possivel criar uma aba para etiquetas pelo CRM");
            break;
        default:
            ox({
                ativeCRM: u,
                name: n,
                hexColor: Cg()
            });
            break
    }
};

function f1() {
    const {
        language: n
    } = Ce.getState(), {
        ativeCRM: u
    } = ea.getState(), i = Fo.getState().crm;
    let d = "";
    if (u === "Etiquetas") {
        pe({
            type: "Info",
            message: n.adcionarEtiquetaSoEstaDisponivel,
            position: "top-right"
        });
        return
    } else u === "Abas" ? d = "var(--primaria)" : d = i.find(g => g.id === u)?.hexColor;
    Eg({
        icon: s.jsx(ah, {
            color: d,
            size: 32
        }),
        content: s.jsx(s.Fragment, {
            children: n.menuTab_CreateNameTab
        }),
        confirmText: n.create,
        submit: g => _y(g),
        errorMsg: n.insiraAoMenos3Car,
        placeholder: n.insiraNomeAba
    })
}

function Oy(n) {
    return s.jsxs("div", {
        className: "relative inline-block",
        children: [s.jsx(c1, {
            className: "w-6 h-6"
        }), s.jsx("div", {
            className: "absolute bottom-0 right-0 rounded-full w-2 h-2 flex items-center justify-center text-xs font-bold",
            children: s.jsx("span", {
                className: "transform translate-y-[-1px]",
                children: "+"
            })
        })]
    })
}

function zy(n, u, i) {
    const {
        language: d
    } = Ce.getState();
    qf({
        content: s.jsxs(s.Fragment, {
            children: [d.CRM_rm_CRM, " ", s.jsx("span", {
                style: {
                    color: u
                },
                children: i
            })]
        }),
        confirmText: d.confirm,
        submit: () => ux(n)
    })
}

function h1({
    plugin_page: n,
    colorInicial: u,
    onChange: i,
    text: d = !0
}) {
    const {
        language: g
    } = Ce(), [x, p] = W.useState(!1), [w, M] = W.useState(() => {
        const z = u || Cg();
        return i(z), z
    }), T = W.useRef(null), R = W.useRef(null);
    return W.useEffect(() => {
        const z = O => {
            T.current && !T.current.contains(O.target) && !R.current.contains(O.target) && !document.querySelector("#pane-side ._21S-L span")?.contains(O.target) && p(!1)
        };
        return x && document.addEventListener("click", z), () => {
            document.removeEventListener("click", z)
        }
    }, [x]), s.jsxs("div", {
        children: [s.jsxs("div", {
            className: "flex",
            children: [d && s.jsx("h2", {
                className: "w-full",
                children: g.pickColor
            }), s.jsx("div", {
                className: "dropdown dropdown-bottom text-end w-full",
                children: s.jsx("div", {
                    tabIndex: 0,
                    role: "button",
                    className: "btn btn-sm px-4 pulse border border-black border-solid",
                    style: {
                        backgroundColor: w
                    },
                    ref: R,
                    onClick: () => p(!x)
                })
            })]
        }), x && s.jsx("div", {
            ref: T,
            className: "flex justify-center",
            children: s.jsx(J0, {
                disableAlpha: !0,
                color: w,
                onChange: z => {
                    M(z.hex), i(z.hex)
                },
                className: "p-2 rounded"
            })
        })]
    })
}

function ug({
    editar: n
}) {
    const {
        language: u
    } = Ce(), {
        close: i
    } = Wt(), [d, g] = W.useState(n || {
        id: "",
        name: "",
        desc: "",
        hexColor: "",
        list: []
    }), x = (M, T) => {
        g({
            ...d,
            [M]: T
        })
    }, p = () => {
        if (d.name.length < 2) {
            pe({
                type: "Error",
                message: u.CRM_preencherNome,
                position: "top-right"
            });
            return
        }
        n ? (dx(d.id, d.name, d.desc, d.hexColor), pe({
            type: "Success",
            message: u.CRM_editado,
            position: "top-right"
        }), i()) : (d.id = Ir(), fx([d]), pe({
            type: "Success",
            message: u.CRM_criado,
            position: "top-right"
        }), i())
    };
    return s.jsxs("div", {
        className: "flex flex-col gap-4 w-96",
        children: [s.jsxs(sl, {
            children: [n ? u.edit : u.create, " CRM"]
        }), s.jsxs("label", {
            className: "form-control w-full",
            children: [s.jsxs("div", {
                children: [s.jsx("div", {
                    className: "label pb-0",
                    children: s.jsx("span", {
                        className: "label-text",
                        children: u.CRM_nome
                    })
                }), s.jsx("input", {
                    type: "text",
                    placeholder: u.CRM_nome,
                    className: "input input-bordered input-sm w-full bg-[var(--background-default)]",
                    maxLength: 25,
                    value: d.name,
                    onChange: M => x("name", M.target.value)
                }), s.jsx("div", {
                    className: "relative",
                    children: s.jsxs("div", {
                        className: "absolute right-1 bottom-1 text-[var(--icon)] text-xs",
                        children: [25 - d.name.length, "/25"]
                    })
                })]
            }), s.jsxs("div", {
                children: [s.jsx("div", {
                    className: "label pb-0",
                    children: s.jsx("span", {
                        className: "label-text",
                        children: u.CRM_descricao
                    })
                }), s.jsx("textarea", {
                    placeholder: u.CRM_descricao,
                    className: "textarea textarea-bordered textarea-sm w-full resize-none bg-[var(--background-default)]",
                    maxLength: 60,
                    value: d.desc,
                    onChange: M => x("desc", M.target.value)
                }), s.jsx("div", {
                    className: "relative",
                    children: s.jsxs("div", {
                        className: "absolute right-1 bottom-1 text-[var(--icon)] text-xs",
                        children: [60 - d.desc.length, "/60"]
                    })
                })]
            })]
        }), s.jsx(h1, {
            plugin_page: !0,
            colorInicial: n && n.hexColor,
            onChange: M => x("hexColor", M)
        }), s.jsx(ra, {
            name: n ? u.edit : u.create,
            funcao: p
        })]
    })
}

function nh(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zM4 12c0-1.846.634-3.542 1.688-4.897l11.209 11.209A7.946 7.946 0 0 1 12 20c-4.411 0-8-3.589-8-8zm14.312 4.897L7.103 5.688A7.948 7.948 0 0 1 12 4c4.411 0 8 3.589 8 8a7.954 7.954 0 0 1-1.688 4.897z"
            },
            child: []
        }]
    })(n)
}

function jy(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M11 16h2V7h3l-4-5-4 5h3z"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M5 22h14c1.103 0 2-.897 2-2v-9c0-1.103-.897-2-2-2h-4v2h4v9H5v-9h4V9H5c-1.103 0-2 .897-2 2v9c0 1.103.897 2 2 2z"
            },
            child: []
        }]
    })(n)
}

function X4(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24"
        },
        child: [{
            tag: "path",
            attr: {
                d: "m12 18 4-5h-3V2h-2v11H8z"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M19 9h-4v2h4v9H5v-9h4V9H5c-1.103 0-2 .897-2 2v9c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-9c0-1.103-.897-2-2-2z"
            },
            child: []
        }]
    })(n)
}

function Dy(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M20.005 5.995h-1v2h1v8h-1v2h1c1.103 0 2-.897 2-2v-8c0-1.102-.898-2-2-2zm-14 4H15v4H6.005z"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M17.005 17.995V4H20V2h-8v2h3.005v1.995h-11c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h11V20H12v2h8v-2h-2.995v-2.005zm-13-2v-8h11v8h-11z"
            },
            child: []
        }]
    })(n)
}

function ky(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M17.868 4.504A1 1 0 0 0 17 4H3a1 1 0 0 0-.868 1.496L5.849 12l-3.717 6.504A1 1 0 0 0 3 20h14a1 1 0 0 0 .868-.504l4-7a.998.998 0 0 0 0-.992l-4-7zM16.42 18H4.724l3.145-5.504a.998.998 0 0 0 0-.992L4.724 6H16.42l3.429 6-3.429 6z"
            },
            child: []
        }]
    })(n)
}

function Ly(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M21 6h-4V3a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7H3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zM6 18H4v-2h2v2zm0-4H4v-2h2v2zm5 4H9v-2h2v2zm0-4H9v-2h2v2zm0-4H9V8h2v2zm0-4H9V4h2v2zm4 12h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V8h2v2zm0-4h-2V4h2v2zm5 12h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V8h2v2z"
            },
            child: []
        }]
    })(n)
}

function Uy(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24"
        },
        child: [{
            tag: "path",
            attr: {
                d: "m21.868 11.504-4-7A1 1 0 0 0 17 4H3a1 1 0 0 0-.868 1.496L5.849 12l-3.717 6.504A1 1 0 0 0 3 20h14a1 1 0 0 0 .868-.504l4-7a.998.998 0 0 0 0-.992z"
            },
            child: []
        }]
    })(n)
}

function js(n) {
    return ct({
        attr: {
            viewBox: "0 0 16 16",
            fill: "currentColor"
        },
        child: [{
            tag: "path",
            attr: {
                fillRule: "evenodd",
                clipRule: "evenodd",
                d: "M10 3h3v1h-1v9l-1 1H4l-1-1V4H2V3h3V2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1zM9 2H6v1h3V2zM4 13h7V4H4v9zm2-8H5v7h1V5zm1 0h1v7H7V5zm2 0h1v7H9V5z"
            },
            child: []
        }]
    })(n)
}
const Rv = ({
    index: n,
    item: u,
    submit: i,
    editar: d
}) => {
    const {
        isBusiness: g
    } = We(), [x, p] = W.useState(!1), w = () => {
        p(!0)
    }, M = () => {
        p(!1)
    };
    return s.jsxs("div", {
        onClick: i,
        className: "card w-40 bg-base-100 shadow-lg py-2 pulse hover:border hover:border-[var(--primaria)] hover:border-solid cursor-pointer border-base-300 border border-solid max-h-[240px]",
        style: x && u.hexColor ? {
            borderColor: u.hexColor
        } : {},
        onMouseEnter: w,
        onMouseLeave: M,
        children: [u.id !== "Abas" && u.id !== "Etiquetas" && s.jsx("div", {
            className: "relative",
            children: s.jsxs("div", {
                className: "absolute grid gap-1 right-[2px] top-0",
                children: [s.jsx("span", {
                    className: "pulse",
                    onClick: R => {
                        R.stopPropagation(), zy(u.id, u.hexColor, u.title)
                    },
                    children: s.jsx(js, {
                        className: "h-5 w-5 text-[var(--icon)]"
                    })
                }), s.jsx("span", {
                    className: "pulse",
                    onClick: d,
                    children: s.jsx(Yo, {
                        className: "h-5 w-5 text-[var(--icon)]"
                    })
                })]
            })
        }), s.jsx("figure", {
            children: u.ico
        }), !g && u.id === "Etiquetas" && s.jsx("div", {
            className: "relative",
            children: s.jsx("div", {
                className: "absolute right-3",
                children: s.jsx("span", {
                    children: s.jsx(nh, {
                        className: "h-6 w-6 text-red-500"
                    })
                })
            })
        }), s.jsxs("div", {
            className: "card-body p-2 min-h-[122px]",
            children: [s.jsx("h2", {
                className: "card-title block",
                style: {
                    overflowWrap: "break-word"
                },
                children: u.title
            }), s.jsx("p", {
                style: {
                    overflowWrap: "break-word"
                },
                className: "block",
                children: u.descricao
            }), n <= 8 && s.jsx("div", {
                className: "card-actions justify-end",
                children: s.jsxs("div", {
                    className: "badge badge-outline",
                    children: [s.jsx("kbd", {
                        className: "kbd border-base-300 border border-solid",
                        children: "alt"
                    }), s.jsx("span", {
                        className: "px-1",
                        children: "+"
                    }), s.jsx("kbd", {
                        className: "kbd border-base-300 border border-solid",
                        children: n + 1
                    })]
                })
            })]
        })]
    }, n)
};

function g1() {
    const {
        setAtiveCRM: n
    } = ea(), {
        language: u
    } = Ce(), {
        isBusiness: i
    } = We(), {
        close: d
    } = zu(), {
        open: g
    } = Wt(), x = Fo(L => L.crm);
    d1()(L => {
        L.stopPropagation(), (L.keyCode === 27 || L.keyCode === 9 || L.altKey && L.keyCode === 77) && d()
    });
    const w = L => {
        if (!i && L === "Etiquetas") {
            pe({
                type: "Error",
                message: u.CRM_notBusiness,
                position: "top-right"
            }), d();
            return
        }
        n(L), d()
    },
        M = (L, G) => {
            L.stopPropagation();
            const Z = x.find(ce => ce.id === G);
            g(s.jsx(ug, {
                editar: Z
            }))
        },
        R = [{
            id: "Abas",
            ico: s.jsx($f, {
                className: "h-10 w-10 text-[var(--primaria)]"
            }),
            title: u.userTabs,
            descricao: u.CRM_abasCreate
        }, {
            id: "Etiquetas",
            ico: s.jsx(j0, {
                className: "h-10 w-10 text-[var(--primaria)]"
            }),
            title: u.CRM_Etiquetas,
            descricao: u.CRM_etiquetasBusiness
        }].map((L, G) => s.jsx(Rv, {
            index: G,
            item: L,
            submit: () => w(L.id)
        })),
        A = x.map((L, G) => {
            const Z = {
                id: x[G].id,
                ico: s.jsx(z0, {
                    className: "h-10 w-10",
                    style: {
                        color: L.hexColor
                    }
                }),
                title: L.name,
                descricao: L.desc,
                hexColor: L.hexColor
            };
            return s.jsx(Rv, {
                index: G + 2,
                item: Z,
                submit: () => w(Z.id),
                editar: ce => M(ce, Z.id)
            })
        }),
        z = L => {
            L.stopPropagation(), d()
        },
        O = L => {
            L.stopPropagation()
        };
    return s.jsx("div", {
        className: "w-screen h-screen flex items-center justify-center",
        onClick: L => z(L),
        children: s.jsxs("div", {
            className: "flex gap-4 flex-wrap justify-center p-4 overflow-x-auto overflow-y-auto ",
            onClick: L => O(L),
            style: {
                maxHeight: "calc(100vh - 70px)"
            },
            children: [R, A, s.jsx("div", {
                className: "my-auto",
                children: s.jsx("span", {
                    className: "pulse cursor-pointer lg:tooltip lg:tooltip-left",
                    "data-tip": u.CRM_modelAdd,
                    onClick: () => {
                        g(s.jsx(ug, {}))
                    },
                    children: s.jsx(Ax, {
                        className: "text-[var(--primaria)] w-10 h-10"
                    })
                })
            })]
        })
    })
}

function By() {
    const {
        language: n
    } = Ce();
    return s.jsxs("div", {
        className: "p-2",
        children: [s.jsx(sl, {
            children: n.CRM_atalhosTeclado
        }), s.jsxs("div", {
            className: "w-[25rem] pt-2 px-1",
            children: [s.jsxs("div", {
                className: "flex justify-between cursor-pointer items-center hover:bg-[var(--dropdown-background-hover)] h-9 px-1 py-2 rounded pulse",
                children: [s.jsx("span", {
                    children: n.CRM_openAndCloseMenu
                }), s.jsxs("div", {
                    children: [s.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "Tab"
                    }), s.jsx("span", {
                        className: "px-1",
                        children: n.CRM_alterKey
                    }), s.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "alt"
                    }), "+", s.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "m"
                    })]
                })]
            }), s.jsxs("div", {
                className: "flex justify-between cursor-pointer items-center hover:bg-[var(--dropdown-background-hover)] h-9 px-1 py-2 rounded pulse",
                children: [s.jsx("span", {
                    children: n.CRM_closeModal
                }), s.jsx("div", {
                    children: s.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "Esc"
                    })
                })]
            }), s.jsxs("div", {
                className: "flex justify-between cursor-pointer items-center hover:bg-[var(--dropdown-background-hover)] h-9 px-1 py-2 rounded pulse",
                children: [s.jsx("span", {
                    children: n.CRM_keyAddAbas
                }), s.jsxs("div", {
                    children: [s.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "alt"
                    }), "+", s.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "a"
                    })]
                })]
            }), s.jsxs("div", {
                className: "flex justify-between cursor-pointer items-center hover:bg-[var(--dropdown-background-hover)] h-9 px-1 py-2 rounded pulse",
                children: [s.jsx("span", {
                    children: n.userTabs
                }), s.jsxs("div", {
                    children: [s.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "alt"
                    }), "+", s.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "1"
                    })]
                })]
            }), s.jsxs("div", {
                className: "flex justify-between cursor-pointer items-center hover:bg-[var(--dropdown-background-hover)] h-9 px-1 py-2 rounded pulse",
                children: [s.jsx("span", {
                    children: n.CRM_Etiquetas
                }), s.jsxs("div", {
                    children: [s.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "alt"
                    }), "+", s.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "2"
                    })]
                })]
            }), s.jsxs("div", {
                className: "flex justify-between cursor-pointer items-center hover:bg-[var(--dropdown-background-hover)] h-9 px-1 py-2 rounded pulse",
                children: [s.jsx("span", {
                    children: n.duplicarCard
                }), s.jsxs("div", {
                    children: [s.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "Ctrl"
                    }), s.jsx("span", {
                        className: "px-1",
                        children: n.CRM_alterKey
                    }), s.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "z"
                    })]
                })]
            })]
        })]
    })
}
const Hy = ({
    setOpen: n
}) => {
    const {
        setCreateUserTab: u
    } = at(), {
        language: i
    } = Ce(), [d, g] = W.useState(""), x = () => {
        u(d), pe({
            type: "Success",
            message: i.newTab_success,
            position: "top-right"
        }), n(!1)
    };
    return s.jsx("div", {
        className: "form-control my-3 p-3 animate__animated animate__fadeInDown",
        children: s.jsx(Rx, {
            errorMsg: i.newTab_error,
            action: x,
            children: s.jsxs("div", {
                className: "flex input-group input-group-sm justify-center gap-2",
                children: [s.jsx("input", {
                    type: "text",
                    placeholder: i.menuTabs_inputPlace,
                    className: "input input-bordered input-sm w-80",
                    value: d,
                    onChange: w => g(w.target.value),
                    required: !0,
                    minLength: 3
                }), s.jsx(ra, {
                    name: i.create
                })]
            })
        })
    })
},
    Fy = n => {
        const {
            ativeCRM: u
        } = ea.getState(), {
            setRemoveTab: i
        } = at.getState();
        switch (u) {
            case "Abas":
                i(n);
                break;
            case "Etiquetas":
                console.warn("Não e possivel remover uma etiqueta, pelo CRM");
                break;
            default:
                hx(u, n);
                break
        }
    };

function m1(n) {
    const {
        language: u
    } = Ce.getState();
    qf({
        icon: s.jsx(ah, {
            color: n.color,
            size: 32
        }),
        content: s.jsxs(s.Fragment, {
            children: [u.menuTab_RemoveAlert, " ", s.jsx("span", {
                style: {
                    color: n.color
                },
                children: n.name
            })]
        }),
        confirmText: u.confirm,
        submit: () => Fy(n.id)
    })
}
const Gy = (n, u) => {
    const {
        ativeCRM: i
    } = ea.getState(), {
        setEditUserTabName: d
    } = at.getState();
    switch (i) {
        case "Abas":
            d(n, u);
            break;
        case "Etiquetas":
            console.warn("Não e possivel renomear uma etiqueta, pelo CRM");
            break;
        default:
            gx(i, n, u);
            break
    }
};

function v1(n) {
    const {
        language: u
    } = Ce.getState();
    Eg({
        icon: s.jsx(ah, {
            color: n.color,
            size: 32
        }),
        content: s.jsxs(s.Fragment, {
            children: [u.renomeie, " ", s.jsx("span", {
                style: {
                    color: n.color
                },
                children: n.name
            })]
        }),
        confirmText: u.confirm,
        submit: i => Gy(n.id, i),
        errorMsg: u.insiraAoMenos3Car,
        placeholder: u.insiraNomeAba
    })
}

function Yy() {
    const {
        variaveisWA: n
    } = $i(), {
        language: u
    } = Ce(), {
        userTabs: i,
        setVisibilityUserTab: d
    } = at(), [g, x] = W.useState(""), [p, w] = W.useState([]), M = A => {
        d(A.id), pe({
            type: "Success",
            message: A.hide ? `${A.tag} ${u.menuTab_DesocutarTab}` : `${A.tag} ${u.menuTab_OcutarTab}`,
            position: "top-right"
        })
    }, T = s.jsx("div", {
        className: "pb-3 px-3 grid gap-2",
        children: p.map(A => s.jsxs("div", {
            className: "flex justify-between cursor-pointer items-center hover:bg-[var(--dropdown-background-hover)] h-9 px-1 py-2 rounded pulse",
            children: [s.jsxs("div", {
                className: "flex gap-2",
                children: [s.jsx("span", {
                    className: "overflow-hidden text-ellipsis whitespace-nowrap max-w-[200px]",
                    children: A.tag
                }), s.jsx("span", {
                    className: n.aba + "tam-aba",
                    style: {
                        backgroundColor: "var(--primaria)"
                    },
                    children: A.chats.length
                })]
            }), s.jsxs("div", {
                className: "flex gap-2",
                children: [s.jsx("span", {
                    onClick: () => v1(A),
                    children: s.jsx(Yo, {
                        className: "w-5 h-5"
                    })
                }), s.jsx("span", {
                    onClick: () => m1(A),
                    children: s.jsx(js, {
                        className: "w-5 h-5"
                    })
                }), s.jsx("span", {
                    onClick: () => M(A),
                    children: A.hide === !0 ? s.jsx(_x, {
                        className: "w-5 h-5"
                    }) : s.jsx(Ox, {
                        className: "w-5 h-5"
                    })
                })]
            })]
        }, A.id))
    }), R = s.jsx("div", {
        className: "p-4 text-center",
        children: s.jsx("span", {
            children: u.notFound
        })
    });
    return s.jsxs("div", {
        className: "pt-2",
        children: [s.jsx(Ud, {
            filtragem: A => {
                let z = [];
                i.forEach(O => {
                    O.tag?.toUpperCase().includes(A.toUpperCase()) && z.push(O)
                }), w(z), x(A)
            },
            placeholder: u.pesquisarAbas,
            dependenciasADD: [i],
            btnClear: !0
        }), s.jsx("hr", {
            className: "h-[1px] mx-4 bg-[var(--border-list)] mb-4"
        }), g.length > 0 && p.length === 0 ? R : T]
    })
}

function Xy() {
    const {
        language: n
    } = Ce(), [u, i] = W.useState(!1), d = () => {
        i(!u)
    };
    return s.jsxs("div", {
        className: "w-[25rem]",
        children: [s.jsxs("div", {
            className: "p-3 flex items-center justify-between",
            children: [s.jsx("span", {
                className: "w-full",
                children: s.jsx(sl, {
                    children: n.menuTabs_title
                })
            }), s.jsx("span", {
                className: "w-[125px]",
                children: s.jsx(ra, {
                    name: n.newTab,
                    funcao: d
                })
            })]
        }), u && s.jsx(Hy, {
            setOpen: i
        }), s.jsx("div", {
            "data-id": "list-abas",
            className: "overflow-auto",
            style: u ? {
                maxHeight: "calc(100vh - 235px)"
            } : {
                maxHeight: "calc(100vh - 155px)"
            },
            children: s.jsx(Yy, {})
        })]
    })
}

function Vy() {
    const {
        language: n
    } = Ce(), {
        open: u
    } = Ka(), {
        open: i
    } = zu(), {
        theme: d,
        setTheme: g
    } = We(), {
        open: x
    } = Wt(), p = W.useRef(null), w = W.useRef(null), M = W.useRef(null), T = W.useCallback(() => {
        g(!d)
    }, [d, g]);
    return W.useMemo(() => [{
        id: 6,
        name: n.menuTabs_title,
        ref: M,
        icon: s.jsx(zx, {
            size: 20
        }),
        tooltip: n.menuTabs_title,
        action: () => u(s.jsx(Xy, {}), {
            placement: "right"
        }, M.current, 15)
    }, {
        id: 1,
        name: n.tema,
        ref: p,
        icon: d ? s.jsx(jx, {
            size: 20
        }) : s.jsx(Dx, {
            size: 20
        }),
        tooltip: n.tema,
        action: T
    }, {
        id: 2,
        name: "Menu",
        icon: s.jsx(kx, {
            size: 20
        }),
        tooltip: "Menu",
        action: () => i(s.jsx(g1, {}))
    }, {
        id: 0,
        name: n.criarCRM,
        icon: s.jsx(Oy, {
            size: 20
        }),
        tooltip: n.criarCRM,
        action: () => x(s.jsx(ug, {}))
    }, {
        id: 3,
        name: n.CRM_addAba,
        icon: s.jsx(ty, {
            size: 20
        }),
        tooltip: n.CRM_addAba,
        action: f1
    }, {
        id: 5,
        name: n.CRM_keyAtalho,
        ref: w,
        icon: s.jsx(Lx, {
            size: 20
        }),
        tooltip: n.CRM_keyAtalho,
        action: () => u(s.jsx(By, {}), {
            placement: "right"
        }, w.current, 15)
    }], [n, d, T, i, x, u, w])
}

function b1(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"
            },
            child: []
        }, {
            tag: "line",
            attr: {
                x1: "12",
                y1: "9",
                x2: "12",
                y2: "13"
            },
            child: []
        }, {
            tag: "line",
            attr: {
                x1: "12",
                y1: "17",
                x2: "12.01",
                y2: "17"
            },
            child: []
        }]
    })(n)
}

function Iy(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "polyline",
            attr: {
                points: "11 17 6 12 11 7"
            },
            child: []
        }, {
            tag: "polyline",
            attr: {
                points: "18 17 13 12 18 7"
            },
            child: []
        }]
    })(n)
}

function Zy(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "polyline",
            attr: {
                points: "13 17 18 12 13 7"
            },
            child: []
        }, {
            tag: "polyline",
            attr: {
                points: "6 17 11 12 6 7"
            },
            child: []
        }]
    })(n)
}

function Qy(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "rect",
            attr: {
                x: "9",
                y: "9",
                width: "13",
                height: "13",
                rx: "2",
                ry: "2"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
            },
            child: []
        }]
    })(n)
}

function x1(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "polygon",
            attr: {
                points: "23 7 16 12 23 17 23 7"
            },
            child: []
        }, {
            tag: "rect",
            attr: {
                x: "1",
                y: "5",
                width: "15",
                height: "14",
                rx: "2",
                ry: "2"
            },
            child: []
        }]
    })(n)
}

function Py({
    sidebarCollapsed: n,
    toggleSidebar: u,
    profile: i
}) {
    const d = Vy(),
        g = ea(x => x.ativeCRM);
    return s.jsxs($t.div, {
        className: "h-full bg-[var(--background-default)] flex flex-col shadow-lg z-10",
        variants: Ny,
        initial: "expanded",
        animate: n ? "collapsed" : "expanded",
        children: [s.jsxs("div", {
            className: "flex items-center px-4 py-5",
            children: [s.jsx($t.div, {
                className: "flex items-center justify-center w-10 h-10",
                whileHover: {
                    scale: 1.05
                },
                whileTap: {
                    scale: .95
                },
                children: s.jsx("div", {
                    className: "w-8 h-8 rounded-full overflow-hidden flex items-center justify-center select-none",
                    children: s.jsx("img", {
                        src: chrome.runtime.getURL("label/icons/plugin/icon.png"),
                        className: "object-cover w-full h-full",
                        alt: "Logo"
                    })
                })
            }), s.jsx(_u, {
                children: !n && s.jsx($t.div, {
                    className: "ml-3 text-[var(--primaria)] font-medium select-none",
                    variants: Mf,
                    initial: "initial",
                    animate: "animate",
                    exit: "exit",
                    children: "CRM KANBAN"
                })
            }), s.jsx($t.div, {
                className: "ml-auto cursor-pointer p-1 rounded-full hover:bg-[var(--background-default)] hover:bg-opacity-20",
                whileHover: {
                    scale: 1.1
                },
                whileTap: {
                    scale: .9
                },
                onClick: u,
                children: n ? s.jsx(Zy, {
                    size: 16
                }) : s.jsx(Iy, {
                    size: 16
                })
            })]
        }), s.jsx("div", {
            className: "mt-4 flex-1 overflow-y-auto scrollbar-hide px-3 select-none",
            children: d.map(x => x.id === 6 && g !== "Abas" ? null : s.jsx(My, {
                item: x,
                sidebarCollapsed: n,
                textVariants: Mf
            }, x.id))
        }), s.jsx(Ay, {
            profile: i,
            sidebarCollapsed: n,
            textVariants: Mf
        }), s.jsx(Ry, {
            sidebarCollapsed: n,
            textVariants: Mf
        })]
    })
}
const Wy = {
    isBoardMoreObvious: {
        type: "boolean",
        title: "Make board more obvious",
        description: "Add extra spacing and borders to the board scroll container to make it easier to see and play with"
    },
    isFPSPanelEnabled: {
        type: "boolean",
        title: "FPS Panel",
        description: "Display a panel with Frame Per Second (FPS) information"
    },
    isCPUBurnEnabled: {
        type: "boolean",
        title: "Drop FPS 🔥",
        description: "Start heavy process that will cause the frame rate on the page to drop"
    },
    isOverElementAutoScrollEnabled: {
        type: "boolean",
        title: "Over element auto scrolling",
        description: "Should elements automatically scroll when over them"
    },
    isOverflowScrollingEnabled: {
        type: "boolean",
        title: "Overflow scrolling",
        description: "Should overflow scrolling be enabled"
    },
    boardScrollSpeed: {
        type: "select",
        title: "Board auto scroll speed",
        description: "What should the max horizontal scroll speed the board be?",
        options: ["fast", "standard"]
    },
    columnScrollSpeed: {
        type: "select",
        title: "Column auto scroll speed",
        description: "What should the max vertical scroll speed for columns be?",
        options: ["fast", "standard"]
    }
},
    _v = {
        isBoardMoreObvious: !1,
        isOverElementAutoScrollEnabled: !0,
        boardScrollSpeed: "fast",
        columnScrollSpeed: "standard",
        isFPSPanelEnabled: !1,
        isCPUBurnEnabled: !1,
        isOverflowScrollingEnabled: !0
    },
    zs = it(n => ({
        fields: Wy,
        settings: _v,
        update: u => n(i => ({
            settings: {
                ...i.settings,
                ...u
            }
        })),
        reset: () => n(() => ({
            settings: _v
        })),
        duplicateCardMove: !1
    }));
(async () => (document.addEventListener("keydown", n => {
    !zs.getState().duplicateCardMove && (n.ctrlKey || n.key === "z") && zs.setState({
        duplicateCardMove: !0
    })
}), document.addEventListener("keyup", n => {
    (!n.ctrlKey || n.key === "z") && zs.setState({
        duplicateCardMove: !1
    })
})))();

function Xo() {
    for (var n = arguments.length, u = new Array(n), i = 0; i < n; i++) u[i] = arguments[i];
    return function () {
        u.forEach(function (g) {
            return g()
        })
    }
}
var qh = {},
    Ad = {},
    Ov;

function p1() {
    if (Ov) return Ad;
    Ov = 1, Object.defineProperty(Ad, "__esModule", {
        value: !0
    }), Ad.bind = void 0;

    function n(u, i) {
        var d = i.type,
            g = i.listener,
            x = i.options;
        return u.addEventListener(d, g, x),
            function () {
                u.removeEventListener(d, g, x)
            }
    }
    return Ad.bind = n, Ad
}
var Do = {},
    zv;

function Jy() {
    if (zv) return Do;
    zv = 1;
    var n = Do && Do.__assign || function () {
        return n = Object.assign || function (x) {
            for (var p, w = 1, M = arguments.length; w < M; w++) {
                p = arguments[w];
                for (var T in p) Object.prototype.hasOwnProperty.call(p, T) && (x[T] = p[T])
            }
            return x
        }, n.apply(this, arguments)
    };
    Object.defineProperty(Do, "__esModule", {
        value: !0
    }), Do.bindAll = void 0;
    var u = p1();

    function i(x) {
        if (!(typeof x > "u")) return typeof x == "boolean" ? {
            capture: x
        } : x
    }

    function d(x, p) {
        if (p == null) return x;
        var w = n(n({}, x), {
            options: n(n({}, i(p)), i(x.options))
        });
        return w
    }

    function g(x, p, w) {
        var M = p.map(function (T) {
            var R = d(T, w);
            return (0, u.bind)(x, R)
        });
        return function () {
            M.forEach(function (R) {
                return R()
            })
        }
    }
    return Do.bindAll = g, Do
}
var jv;

function Ky() {
    return jv || (jv = 1, (function (n) {
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.bindAll = n.bind = void 0;
        var u = p1();
        Object.defineProperty(n, "bind", {
            enumerable: !0,
            get: function () {
                return u.bind
            }
        });
        var i = Jy();
        Object.defineProperty(n, "bindAll", {
            enumerable: !0,
            get: function () {
                return i.bindAll
            }
        })
    })(qh)), qh
}
var Wc = Ky(),
    y1 = "data-pdnd-honey-pot";

function S1(n) {
    return n instanceof Element && n.hasAttribute(y1)
}

function kg(n) {
    var u = document.elementsFromPoint(n.x, n.y),
        i = Og(u, 2),
        d = i[0],
        g = i[1];
    return d ? S1(d) ? g ?? null : d : null
}
var w1 = 2147483647;

function Dv(n, u) {
    var i = Object.keys(n);
    if (Object.getOwnPropertySymbols) {
        var d = Object.getOwnPropertySymbols(n);
        u && (d = d.filter(function (g) {
            return Object.getOwnPropertyDescriptor(n, g).enumerable
        })), i.push.apply(i, d)
    }
    return i
}

function kv(n) {
    for (var u = 1; u < arguments.length; u++) {
        var i = arguments[u] != null ? arguments[u] : {};
        u % 2 ? Dv(Object(i), !0).forEach(function (d) {
            fn(n, d, i[d])
        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(i)) : Dv(Object(i)).forEach(function (d) {
            Object.defineProperty(n, d, Object.getOwnPropertyDescriptor(i, d))
        })
    }
    return n
}
var jd = 2,
    Lv = jd / 2;

function qy(n) {
    return {
        x: Math.floor(n.x),
        y: Math.floor(n.y)
    }
}

function $y(n) {
    return {
        x: n.x - Lv,
        y: n.y - Lv
    }
}

function e2(n) {
    return {
        x: Math.max(n.x, 0),
        y: Math.max(n.y, 0)
    }
}

function t2(n) {
    return {
        x: Math.min(n.x, window.innerWidth - jd),
        y: Math.min(n.y, window.innerHeight - jd)
    }
}

function Uv(n) {
    var u = n.client,
        i = t2(e2($y(qy(u))));
    return DOMRect.fromRect({
        x: i.x,
        y: i.y,
        width: jd,
        height: jd
    })
}

function Bv(n) {
    var u = n.clientRect;
    return {
        left: "".concat(u.left, "px"),
        top: "".concat(u.top, "px"),
        width: "".concat(u.width, "px"),
        height: "".concat(u.height, "px")
    }
}

function a2(n) {
    var u = n.client,
        i = n.clientRect;
    return u.x >= i.x && u.x <= i.x + i.width && u.y >= i.y && u.y <= i.y + i.height
}

function n2(n) {
    var u = n.initial,
        i = document.createElement("div");
    i.setAttribute(y1, "true");
    var d = Uv({
        client: u
    });
    Object.assign(i.style, kv(kv({
        backgroundColor: "transparent",
        position: "fixed",
        padding: 0,
        margin: 0,
        boxSizing: "border-box"
    }, Bv({
        clientRect: d
    })), {}, {
        pointerEvents: "auto",
        zIndex: w1
    })), document.body.appendChild(i);
    var g = Wc.bind(window, {
        type: "pointermove",
        listener: function (p) {
            var w = {
                x: p.clientX,
                y: p.clientY
            };
            d = Uv({
                client: w
            }), Object.assign(i.style, Bv({
                clientRect: d
            }))
        },
        options: {
            capture: !0
        }
    });
    return function (p) {
        var w = p.current;
        if (g(), a2({
            client: w,
            clientRect: d
        })) {
            i.remove();
            return
        }

        function M() {
            T(), i.remove()
        }
        var T = Wc.bindAll(window, [{
            type: "pointerdown",
            listener: M
        }, {
            type: "pointermove",
            listener: M
        }, {
            type: "focusin",
            listener: M
        }, {
            type: "focusout",
            listener: M
        }, {
            type: "dragstart",
            listener: M
        }, {
            type: "dragenter",
            listener: M
        }, {
            type: "dragover",
            listener: M
        }], {
            capture: !0
        })
    }
}

function l2() {
    var n = null;

    function u() {
        return n = null, Wc.bind(window, {
            type: "pointermove",
            listener: function (g) {
                n = {
                    x: g.clientX,
                    y: g.clientY
                }
            },
            options: {
                capture: !0
            }
        })
    }

    function i() {
        var d = null;
        return function (x) {
            var p = x.eventName,
                w = x.payload;
            if (p === "onDragStart") {
                var M = w.location.initial.input,
                    T = n ?? {
                        x: M.clientX,
                        y: M.clientY
                    };
                d = n2({
                    initial: T
                })
            }
            if (p === "onDrop") {
                var R, A = w.location.current.input;
                (R = d) === null || R === void 0 || R({
                    current: {
                        x: A.clientX,
                        y: A.clientY
                    }
                }), d = null, n = null
            }
        }
    }
    return {
        bindEvents: u,
        getOnPostDispatch: i
    }
}

function Vo(n) {
    var u = null;
    return function () {
        if (!u) {
            for (var d = arguments.length, g = new Array(d), x = 0; x < d; x++) g[x] = arguments[x];
            var p = n.apply(this, g);
            u = {
                result: p
            }
        }
        return u.result
    }
}
var i2 = Vo(function () {
    return navigator.userAgent.includes("Firefox")
}),
    lh = Vo(function () {
        var u = navigator,
            i = u.userAgent;
        return i.includes("AppleWebKit") && !i.includes("Chrome")
    }),
    dg = {
        isLeavingWindow: Symbol("leaving"),
        isEnteringWindow: Symbol("entering")
    };

function r2(n) {
    var u = n.dragLeave;
    return lh() ? u.hasOwnProperty(dg.isLeavingWindow) : !1
} (function () {
    if (typeof window > "u" || !lh()) return;

    function u() {
        return {
            enterCount: 0,
            isOverWindow: !1
        }
    }
    var i = u();

    function d() {
        i = u()
    }
    Wc.bindAll(window, [{
        type: "dragstart",
        listener: function () {
            i.enterCount = 0, i.isOverWindow = !0
        }
    }, {
        type: "drop",
        listener: d
    }, {
        type: "dragend",
        listener: d
    }, {
        type: "dragenter",
        listener: function (x) {
            !i.isOverWindow && i.enterCount === 0 && (x[dg.isEnteringWindow] = !0), i.isOverWindow = !0, i.enterCount++
        }
    }, {
        type: "dragleave",
        listener: function (x) {
            i.enterCount--, i.isOverWindow && i.enterCount === 0 && (x[dg.isLeavingWindow] = !0, i.isOverWindow = !1)
        }
    }], {
        capture: !0
    })
})();

function s2(n) {
    return "nodeName" in n
}

function c2(n) {
    return s2(n) && n.ownerDocument !== document
}

function o2(n) {
    var u = n.dragLeave,
        i = u.type,
        d = u.relatedTarget;
    return i !== "dragleave" ? !1 : lh() ? r2({
        dragLeave: u
    }) : d == null ? !0 : i2() ? c2(d) : d instanceof HTMLIFrameElement
}

function u2(n) {
    var u = n.onDragEnd;
    return [{
        type: "pointermove",
        listener: (function () {
            var i = 0;
            return function () {
                if (i < 20) {
                    i++;
                    return
                }
                u()
            }
        })()
    }, {
        type: "pointerdown",
        listener: u
    }]
}

function _d(n) {
    return {
        altKey: n.altKey,
        button: n.button,
        buttons: n.buttons,
        ctrlKey: n.ctrlKey,
        metaKey: n.metaKey,
        shiftKey: n.shiftKey,
        clientX: n.clientX,
        clientY: n.clientY,
        pageX: n.pageX,
        pageY: n.pageY
    }
}
var $h = Tp(function (n) {
    return n()
}),
    Af = (function () {
        var n = null;

        function u(d) {
            var g = requestAnimationFrame(function () {
                n = null, d()
            });
            n = {
                frameId: g,
                fn: d
            }
        }

        function i() {
            n && (cancelAnimationFrame(n.frameId), n.fn(), n = null)
        }
        return {
            schedule: u,
            flush: i
        }
    })();

function d2(n) {
    var u = n.source,
        i = n.initial,
        d = n.dispatchEvent,
        g = {
            dropTargets: []
        };

    function x(w) {
        d(w), g = {
            dropTargets: w.payload.location.current.dropTargets
        }
    }
    var p = {
        start: function (M) {
            var T = M.nativeSetDragImage,
                R = {
                    current: i,
                    previous: g,
                    initial: i
                };
            x({
                eventName: "onGenerateDragPreview",
                payload: {
                    source: u,
                    location: R,
                    nativeSetDragImage: T
                }
            }), Af.schedule(function () {
                x({
                    eventName: "onDragStart",
                    payload: {
                        source: u,
                        location: R
                    }
                })
            })
        },
        dragUpdate: function (M) {
            var T = M.current;
            Af.flush(), $h.cancel(), x({
                eventName: "onDropTargetChange",
                payload: {
                    source: u,
                    location: {
                        initial: i,
                        previous: g,
                        current: T
                    }
                }
            })
        },
        drag: function (M) {
            var T = M.current;
            $h(function () {
                Af.flush();
                var R = {
                    initial: i,
                    previous: g,
                    current: T
                };
                x({
                    eventName: "onDrag",
                    payload: {
                        source: u,
                        location: R
                    }
                })
            })
        },
        drop: function (M) {
            var T = M.current,
                R = M.updatedSourcePayload;
            Af.flush(), $h.cancel(), x({
                eventName: "onDrop",
                payload: {
                    source: R ?? u,
                    location: {
                        current: T,
                        previous: g,
                        initial: i
                    }
                }
            })
        }
    };
    return p
}
var fg = {
    isActive: !1
};

function C1() {
    return !fg.isActive
}

function f2(n) {
    return n.dataTransfer ? n.dataTransfer.setDragImage.bind(n.dataTransfer) : null
}

function h2(n) {
    var u = n.current,
        i = n.next;
    if (u.length !== i.length) return !0;
    for (var d = 0; d < u.length; d++)
        if (u[d].element !== i[d].element) return !0;
    return !1
}

function g2(n) {
    var u = n.event,
        i = n.dragType,
        d = n.getDropTargetsOver,
        g = n.dispatchEvent;
    if (!C1()) return;
    var x = m2({
        event: u,
        dragType: i,
        getDropTargetsOver: d
    });
    fg.isActive = !0;
    var p = {
        current: x
    };
    eg({
        event: u,
        current: x.dropTargets
    });
    var w = d2({
        source: i.payload,
        dispatchEvent: g,
        initial: x
    });

    function M(O) {
        var L = h2({
            current: p.current.dropTargets,
            next: O.dropTargets
        });
        p.current = O, L && w.dragUpdate({
            current: p.current
        })
    }

    function T(O) {
        var L = _d(O),
            G = S1(O.target) ? kg({
                x: L.clientX,
                y: L.clientY
            }) : O.target,
            Z = d({
                target: G,
                input: L,
                source: i.payload,
                current: p.current.dropTargets
            });
        Z.length && (O.preventDefault(), eg({
            event: O,
            current: Z
        })), M({
            dropTargets: Z,
            input: L
        })
    }

    function R() {
        p.current.dropTargets.length && M({
            dropTargets: [],
            input: p.current.input
        }), w.drop({
            current: p.current,
            updatedSourcePayload: null
        }), A()
    }

    function A() {
        fg.isActive = !1, z()
    }
    var z = Wc.bindAll(window, [{
        type: "dragover",
        listener: function (L) {
            T(L), w.drag({
                current: p.current
            })
        }
    }, {
        type: "dragenter",
        listener: T
    }, {
        type: "dragleave",
        listener: function (L) {
            o2({
                dragLeave: L
            }) && (M({
                input: p.current.input,
                dropTargets: []
            }), i.startedFrom === "external" && R())
        }
    }, {
        type: "drop",
        listener: function (L) {
            if (p.current = {
                dropTargets: p.current.dropTargets,
                input: _d(L)
            }, !p.current.dropTargets.length) {
                R();
                return
            }
            L.preventDefault(), eg({
                event: L,
                current: p.current.dropTargets
            }), w.drop({
                current: p.current,
                updatedSourcePayload: i.type === "external" ? i.getDropPayload(L) : null
            }), A()
        }
    }, {
        type: "dragend",
        listener: function (L) {
            p.current = {
                dropTargets: p.current.dropTargets,
                input: _d(L)
            }, R()
        }
    }].concat(K0(u2({
        onDragEnd: R
    }))), {
        capture: !0
    });
    w.start({
        nativeSetDragImage: f2(u)
    })
}

function eg(n) {
    var u, i = n.event,
        d = n.current,
        g = (u = d[0]) === null || u === void 0 ? void 0 : u.dropEffect;
    g != null && i.dataTransfer && (i.dataTransfer.dropEffect = g)
}

function m2(n) {
    var u = n.event,
        i = n.dragType,
        d = n.getDropTargetsOver,
        g = _d(u);
    if (i.startedFrom === "external") return {
        input: g,
        dropTargets: []
    };
    var x = d({
        input: g,
        source: i.payload,
        target: u.target,
        current: []
    });
    return {
        input: g,
        dropTargets: x
    }
}
var Hv = {
    canStart: C1,
    start: g2
},
    hg = new Map;

function v2(n) {
    var u = n.typeKey,
        i = n.mount,
        d = hg.get(u);
    if (d) return d.usageCount++, d;
    var g = {
        typeKey: u,
        unmount: i(),
        usageCount: 1
    };
    return hg.set(u, g), g
}

function b2(n) {
    var u = v2(n);
    return function () {
        u.usageCount--, !(u.usageCount > 0) && (u.unmount(), hg.delete(n.typeKey))
    }
}

function N1(n, u) {
    var i = u.attribute,
        d = u.value;
    return n.setAttribute(i, d),
        function () {
            return n.removeAttribute(i)
        }
}

function Fv(n, u) {
    var i = Object.keys(n);
    if (Object.getOwnPropertySymbols) {
        var d = Object.getOwnPropertySymbols(n);
        u && (d = d.filter(function (g) {
            return Object.getOwnPropertyDescriptor(n, g).enumerable
        })), i.push.apply(i, d)
    }
    return i
}

function Ic(n) {
    for (var u = 1; u < arguments.length; u++) {
        var i = arguments[u] != null ? arguments[u] : {};
        u % 2 ? Fv(Object(i), !0).forEach(function (d) {
            fn(n, d, i[d])
        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(i)) : Fv(Object(i)).forEach(function (d) {
            Object.defineProperty(n, d, Object.getOwnPropertyDescriptor(i, d))
        })
    }
    return n
}

function tg(n, u) {
    var i = typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
    if (!i) {
        if (Array.isArray(n) || (i = x2(n)) || u) {
            i && (n = i);
            var d = 0,
                g = function () { };
            return {
                s: g,
                n: function () {
                    return d >= n.length ? {
                        done: !0
                    } : {
                        done: !1,
                        value: n[d++]
                    }
                },
                e: function (T) {
                    throw T
                },
                f: g
            }
        }
        throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)
    }
    var x, p = !0,
        w = !1;
    return {
        s: function () {
            i = i.call(n)
        },
        n: function () {
            var T = i.next();
            return p = T.done, T
        },
        e: function (T) {
            w = !0, x = T
        },
        f: function () {
            try {
                p || i.return == null || i.return()
            } finally {
                if (w) throw x
            }
        }
    }
}

function x2(n, u) {
    if (n) {
        if (typeof n == "string") return Gv(n, u);
        var i = {}.toString.call(n).slice(8, -1);
        return i === "Object" && n.constructor && (i = n.constructor.name), i === "Map" || i === "Set" ? Array.from(n) : i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i) ? Gv(n, u) : void 0
    }
}

function Gv(n, u) {
    (u == null || u > n.length) && (u = n.length);
    for (var i = 0, d = Array(u); i < u; i++) d[i] = n[i];
    return d
}

function ag(n) {
    return n.slice(0).reverse()
}

function p2(n) {
    var u = n.typeKey,
        i = n.defaultDropEffect,
        d = new WeakMap,
        g = "data-drop-target-for-".concat(u),
        x = "[".concat(g, "]");

    function p(O) {
        return d.set(O.element, O),
            function () {
                return d.delete(O.element)
            }
    }

    function w(O) {
        var L = Xo(N1(O.element, {
            attribute: g,
            value: "true"
        }), p(O));
        return Vo(L)
    }

    function M(O) {
        var L, G, Z, ce, re = O.source,
            ve = O.target,
            he = O.input,
            Se = O.result,
            xe = Se === void 0 ? [] : Se;
        if (ve == null) return xe;
        if (!(ve instanceof Element)) return ve instanceof Node ? M({
            source: re,
            target: ve.parentElement,
            input: he,
            result: xe
        }) : xe;
        var ft = ve.closest(x);
        if (ft == null) return xe;
        var _e = d.get(ft);
        if (_e == null) return xe;
        var De = {
            input: he,
            source: re,
            element: _e.element
        };
        if (_e.canDrop && !_e.canDrop(De)) return M({
            source: re,
            target: _e.element.parentElement,
            input: he,
            result: xe
        });
        var ta = (L = (G = _e.getData) === null || G === void 0 ? void 0 : G.call(_e, De)) !== null && L !== void 0 ? L : {},
            sa = (Z = (ce = _e.getDropEffect) === null || ce === void 0 ? void 0 : ce.call(_e, De)) !== null && Z !== void 0 ? Z : i,
            yt = {
                data: ta,
                element: _e.element,
                dropEffect: sa,
                isActiveDueToStickiness: !1
            };
        return M({
            source: re,
            target: _e.element.parentElement,
            input: he,
            result: [].concat(K0(xe), [yt])
        })
    }

    function T(O) {
        var L = O.eventName,
            G = O.payload,
            Z = tg(G.location.current.dropTargets),
            ce;
        try {
            for (Z.s(); !(ce = Z.n()).done;) {
                var re, ve = ce.value,
                    he = d.get(ve.element),
                    Se = Ic(Ic({}, G), {}, {
                        self: ve
                    });
                he == null || (re = he[L]) === null || re === void 0 || re.call(he, Se)
            }
        } catch (xe) {
            Z.e(xe)
        } finally {
            Z.f()
        }
    }
    var R = {
        onGenerateDragPreview: T,
        onDrag: T,
        onDragStart: T,
        onDrop: T,
        onDropTargetChange: function (L) {
            var G = L.payload,
                Z = new Set(G.location.current.dropTargets.map(function (P) {
                    return P.element
                })),
                ce = new Set,
                re = tg(G.location.previous.dropTargets),
                ve;
            try {
                for (re.s(); !(ve = re.n()).done;) {
                    var he, Se = ve.value;
                    ce.add(Se.element);
                    var xe = d.get(Se.element),
                        ft = Z.has(Se.element),
                        _e = Ic(Ic({}, G), {}, {
                            self: Se
                        });
                    if (xe == null || (he = xe.onDropTargetChange) === null || he === void 0 || he.call(xe, _e), !ft) {
                        var De;
                        xe == null || (De = xe.onDragLeave) === null || De === void 0 || De.call(xe, _e)
                    }
                }
            } catch (P) {
                re.e(P)
            } finally {
                re.f()
            }
            var ta = tg(G.location.current.dropTargets),
                sa;
            try {
                for (ta.s(); !(sa = ta.n()).done;) {
                    var yt, Oe, Ye = sa.value;
                    if (!ce.has(Ye.element)) {
                        var Ee = Ic(Ic({}, G), {}, {
                            self: Ye
                        }),
                            B = d.get(Ye.element);
                        B == null || (yt = B.onDropTargetChange) === null || yt === void 0 || yt.call(B, Ee), B == null || (Oe = B.onDragEnter) === null || Oe === void 0 || Oe.call(B, Ee)
                    }
                }
            } catch (P) {
                ta.e(P)
            } finally {
                ta.f()
            }
        }
    };

    function A(O) {
        R[O.eventName](O)
    }

    function z(O) {
        var L = O.source,
            G = O.target,
            Z = O.input,
            ce = O.current,
            re = M({
                source: L,
                target: G,
                input: Z
            });
        if (re.length >= ce.length) return re;
        for (var ve = ag(ce), he = ag(re), Se = [], xe = 0; xe < ve.length; xe++) {
            var ft, _e = ve[xe],
                De = he[xe];
            if (De != null) {
                Se.push(De);
                continue
            }
            var ta = Se[xe - 1],
                sa = ve[xe - 1];
            if (ta?.element !== sa?.element) break;
            var yt = d.get(_e.element);
            if (!yt) break;
            var Oe = {
                input: Z,
                source: L,
                element: yt.element
            };
            if (yt.canDrop && !yt.canDrop(Oe) || !((ft = yt.getIsSticky) !== null && ft !== void 0 && ft.call(yt, Oe))) break;
            Se.push(Ic(Ic({}, _e), {}, {
                isActiveDueToStickiness: !0
            }))
        }
        return ag(Se)
    }
    return {
        dropTargetForConsumers: w,
        getIsOver: z,
        dispatchEvent: A
    }
}

function y2(n, u) {
    var i = typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
    if (!i) {
        if (Array.isArray(n) || (i = S2(n)) || u) {
            i && (n = i);
            var d = 0,
                g = function () { };
            return {
                s: g,
                n: function () {
                    return d >= n.length ? {
                        done: !0
                    } : {
                        done: !1,
                        value: n[d++]
                    }
                },
                e: function (T) {
                    throw T
                },
                f: g
            }
        }
        throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)
    }
    var x, p = !0,
        w = !1;
    return {
        s: function () {
            i = i.call(n)
        },
        n: function () {
            var T = i.next();
            return p = T.done, T
        },
        e: function (T) {
            w = !0, x = T
        },
        f: function () {
            try {
                p || i.return == null || i.return()
            } finally {
                if (w) throw x
            }
        }
    }
}

function S2(n, u) {
    if (n) {
        if (typeof n == "string") return Yv(n, u);
        var i = {}.toString.call(n).slice(8, -1);
        return i === "Object" && n.constructor && (i = n.constructor.name), i === "Map" || i === "Set" ? Array.from(n) : i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i) ? Yv(n, u) : void 0
    }
}

function Yv(n, u) {
    (u == null || u > n.length) && (u = n.length);
    for (var i = 0, d = Array(u); i < u; i++) d[i] = n[i];
    return d
}

function Xv(n, u) {
    var i = Object.keys(n);
    if (Object.getOwnPropertySymbols) {
        var d = Object.getOwnPropertySymbols(n);
        u && (d = d.filter(function (g) {
            return Object.getOwnPropertyDescriptor(n, g).enumerable
        })), i.push.apply(i, d)
    }
    return i
}

function w2(n) {
    for (var u = 1; u < arguments.length; u++) {
        var i = arguments[u] != null ? arguments[u] : {};
        u % 2 ? Xv(Object(i), !0).forEach(function (d) {
            fn(n, d, i[d])
        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(i)) : Xv(Object(i)).forEach(function (d) {
            Object.defineProperty(n, d, Object.getOwnPropertyDescriptor(i, d))
        })
    }
    return n
}

function C2() {
    var n = new Set,
        u = null;

    function i(x) {
        u && (!x.canMonitor || x.canMonitor(u.canMonitorArgs)) && u.active.add(x)
    }

    function d(x) {
        var p = w2({}, x);
        n.add(p), i(p);

        function w() {
            n.delete(p), u && u.active.delete(p)
        }
        return Vo(w)
    }

    function g(x) {
        var p = x.eventName,
            w = x.payload;
        if (p === "onGenerateDragPreview") {
            u = {
                canMonitorArgs: {
                    initial: w.location.initial,
                    source: w.source
                },
                active: new Set
            };
            var M = y2(n),
                T;
            try {
                for (M.s(); !(T = M.n()).done;) {
                    var R = T.value;
                    i(R)
                }
            } catch (Z) {
                M.e(Z)
            } finally {
                M.f()
            }
        }
        if (u) {
            for (var A = Array.from(u.active), z = 0, O = A; z < O.length; z++) {
                var L = O[z];
                if (u.active.has(L)) {
                    var G;
                    (G = L[p]) === null || G === void 0 || G.call(L, w)
                }
            }
            p === "onDrop" && (u.active.clear(), u = null)
        }
    }
    return {
        dispatchEvent: g,
        monitorForConsumers: d
    }
}

function N2(n) {
    var u = n.typeKey,
        i = n.mount,
        d = n.dispatchEventToSource,
        g = n.onPostDispatch,
        x = n.defaultDropEffect,
        p = C2(),
        w = p2({
            typeKey: u,
            defaultDropEffect: x
        });

    function M(A) {
        d?.(A), w.dispatchEvent(A), p.dispatchEvent(A), g?.(A)
    }

    function T(A) {
        var z = A.event,
            O = A.dragType;
        Hv.start({
            event: z,
            dragType: O,
            getDropTargetsOver: w.getIsOver,
            dispatchEvent: M
        })
    }

    function R() {
        function A() {
            var z = {
                canStart: Hv.canStart,
                start: T
            };
            return i(z)
        }
        return b2({
            typeKey: u,
            mount: A
        })
    }
    return {
        registerUsage: R,
        dropTarget: w.dropTargetForConsumers,
        monitor: p.monitorForConsumers
    }
}
var T2 = Vo(function () {
    return navigator.userAgent.toLocaleLowerCase().includes("android")
}),
    E2 = "pdnd:android-fallback",
    Vv = "text/plain",
    M2 = "text/uri-list",
    A2 = "application/vnd.pdnd",
    Qf = new WeakMap;

function R2(n) {
    return Qf.set(n.element, n),
        function () {
            Qf.delete(n.element)
        }
}
var Iv = l2(),
    Lg = N2({
        typeKey: "element",
        defaultDropEffect: "move",
        mount: function (u) {
            return Xo(Iv.bindEvents(), Wc.bind(document, {
                type: "dragstart",
                listener: function (d) {
                    var g, x, p, w, M, T;
                    if (u.canStart(d) && !d.defaultPrevented && d.dataTransfer) {
                        var R = d.target;
                        if (R instanceof HTMLElement) {
                            var A = Qf.get(R);
                            if (A) {
                                var z = _d(d),
                                    O = {
                                        element: A.element,
                                        dragHandle: (g = A.dragHandle) !== null && g !== void 0 ? g : null,
                                        input: z
                                    };
                                if (A.canDrag && !A.canDrag(O)) {
                                    d.preventDefault();
                                    return
                                }
                                if (A.dragHandle) {
                                    var L = kg({
                                        x: z.clientX,
                                        y: z.clientY
                                    });
                                    if (!A.dragHandle.contains(L)) {
                                        d.preventDefault();
                                        return
                                    }
                                }
                                var G = (x = (p = A.getInitialDataForExternal) === null || p === void 0 ? void 0 : p.call(A, O)) !== null && x !== void 0 ? x : null;
                                if (G)
                                    for (var Z = 0, ce = Object.entries(G); Z < ce.length; Z++) {
                                        var re = Og(ce[Z], 2),
                                            ve = re[0],
                                            he = re[1];
                                        d.dataTransfer.setData(ve, he ?? "")
                                    }
                                T2() && !d.dataTransfer.types.includes(Vv) && !d.dataTransfer.types.includes(M2) && d.dataTransfer.setData(Vv, E2), d.dataTransfer.setData(A2, "");
                                var Se = {
                                    element: A.element,
                                    dragHandle: (w = A.dragHandle) !== null && w !== void 0 ? w : null,
                                    data: (M = (T = A.getInitialData) === null || T === void 0 ? void 0 : T.call(A, O)) !== null && M !== void 0 ? M : {}
                                },
                                    xe = {
                                        type: "element",
                                        payload: Se,
                                        startedFrom: "internal"
                                    };
                                u.start({
                                    event: d,
                                    dragType: xe
                                })
                            }
                        }
                    }
                }
            }))
        },
        dispatchEventToSource: function (u) {
            var i, d, g = u.eventName,
                x = u.payload;
            (i = Qf.get(x.source.element)) === null || i === void 0 || (d = i[g]) === null || d === void 0 || d.call(i, x)
        },
        onPostDispatch: Iv.getOnPostDispatch()
    }),
    T1 = Lg.dropTarget,
    Dd = Lg.monitor;

function Ug(n) {
    var u = Xo(Lg.registerUsage(), R2(n), N1(n.element, {
        attribute: "draggable",
        value: "true"
    }));
    return Vo(u)
}
var kd = new Map,
    Ff = new Set;

function Bg(n) {
    _2(n);
    var u = kd.get(n);
    if (u) return u;
    var i = {
        timeOfEngagementStart: Date.now()
    };
    return kd.set(n, i), i
}

function _2(n) {
    Ff.add(n)
}

function O2(n) {
    Ff.clear(), n(), kd.forEach(function (u, i) {
        Ff.has(i) || kd.delete(i)
    }), Ff.clear()
}

function z2() {
    kd.clear()
}
var Zv = new Map;

function E1(n) {
    var u = Zv.get(n);
    if (u) return u;
    var i = j2(n);
    return Zv.set(n, i), i
}

function j2(n) {
    var u = {
        type: "idle"
    },
        i = [];

    function d(M) {
        if (u.type === "running") {
            var T = M - u.timeLastFrameFinished,
                R = u,
                A = R.latestArgs,
                z = kg({
                    x: A.location.current.input.clientX,
                    y: A.location.current.input.clientY
                });
            O2(function () {
                i.forEach(function (O) {
                    return O({
                        underUsersPointer: z,
                        latestArgs: A,
                        timeSinceLastFrame: T
                    })
                })
            }), u.timeLastFrameFinished = M, u.frameId = requestAnimationFrame(d)
        }
    }

    function g() {
        u.type !== "idle" && (cancelAnimationFrame(u.frameId), z2(), u = {
            type: "idle"
        })
    }

    function x(M) {
        u.type === "idle" && (u = {
            type: "initializing",
            latestArgs: M,
            frameId: requestAnimationFrame(function (T) {
                u.type === "initializing" && (u = {
                    type: "running",
                    timeLastFrameFinished: T,
                    latestArgs: u.latestArgs,
                    frameId: requestAnimationFrame(d)
                })
            })
        })
    }

    function p(M) {
        if (u.type === "idle") {
            x(M);
            return
        }
        u.latestArgs = M
    }
    n({
        onDragStart: x,
        onDropTargetChange: p,
        onDrag: p,
        onDrop: g
    });
    var w = {
        onFrame: function (T) {
            i.push(T)
        }
    };
    return w
}
var gg = "data-auto-scrollable",
    D2 = "[".concat(gg, '="true"]');

function k2(n) {
    return n.setAttribute(gg, "true"),
        function () {
            return n.removeAttribute(gg)
        }
}

function Qv(n, u) {
    var i = Object.keys(n);
    if (Object.getOwnPropertySymbols) {
        var d = Object.getOwnPropertySymbols(n);
        u && (d = d.filter(function (g) {
            return Object.getOwnPropertyDescriptor(n, g).enumerable
        })), i.push.apply(i, d)
    }
    return i
}

function Pv(n) {
    for (var u = 1; u < arguments.length; u++) {
        var i = arguments[u] != null ? arguments[u] : {};
        u % 2 ? Qv(Object(i), !0).forEach(function (d) {
            fn(n, d, i[d])
        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(i)) : Qv(Object(i)).forEach(function (d) {
            Object.defineProperty(n, d, Object.getOwnPropertyDescriptor(i, d))
        })
    }
    return n
}
var L2 = {
    startHitboxAtPercentageRemainingOfElement: {
        top: .25,
        right: .25,
        bottom: .25,
        left: .25
    },
    maxScrollAtPercentageRemainingOfHitbox: {
        top: .5,
        right: .5,
        bottom: .5,
        left: .5
    },
    timeDampeningDurationMs: 300,
    maxMainAxisHitboxSize: 180
},
    U2 = {
        standard: 900,
        fast: 1500
    };

function Hg(n) {
    var u;
    return Pv(Pv({}, L2), {}, {
        maxPixelScrollPerSecond: U2[(u = n?.maxScrollSpeed) !== null && u !== void 0 ? u : "standard"]
    })
}
var M1 = {
    top: function (u) {
        return u.scrollTop > 0
    },
    right: function (u) {
        return Math.ceil(u.scrollLeft) + u.clientWidth < u.scrollWidth
    },
    bottom: function (u) {
        return Math.ceil(u.scrollTop) + u.clientHeight < u.scrollHeight
    },
    left: function (u) {
        return u.scrollLeft > 0
    }
},
    A1 = ["top", "right", "bottom", "left"],
    R1 = {
        top: "vertical",
        right: "horizontal",
        bottom: "vertical",
        left: "horizontal"
    },
    Wv = {
        start: "top",
        end: "bottom",
        point: "y",
        size: "height"
    },
    Jv = {
        start: "left",
        end: "right",
        point: "x",
        size: "width"
    },
    Fg = {
        vertical: {
            mainAxis: Wv,
            crossAxis: Jv
        },
        horizontal: {
            mainAxis: Jv,
            crossAxis: Wv
        }
    },
    Gg = {
        top: "start",
        right: "end",
        bottom: "end",
        left: "start"
    };

function Rf(n) {
    var u = n.edge,
        i = n.axis;
    return function (g) {
        var x, p = g.clientRect,
            w = g.config,
            M = Fg[i],
            T = M.mainAxis,
            R = M.crossAxis,
            A = Gg[u],
            z = Math.min(w.startHitboxAtPercentageRemainingOfElement[u] * p[T.size], w.maxMainAxisHitboxSize);
        return DOMRect.fromRect((x = {}, fn(x, T.point, A === "start" ? p[T.point] : p[T.point] + p[T.size] - z), fn(x, R.point, p[R.point]), fn(x, T.size, z), fn(x, R.size, p[R.size]), x))
    }
}
var _1 = {
    top: Rf({
        axis: "vertical",
        edge: "top"
    }),
    right: Rf({
        axis: "horizontal",
        edge: "right"
    }),
    bottom: Rf({
        axis: "vertical",
        edge: "bottom"
    }),
    left: Rf({
        axis: "horizontal",
        edge: "left"
    })
};

function mg(n) {
    var u = n.startOfRange,
        i = n.endOfRange,
        d = n.value,
        g = u < i;
    if (!g || d < u) return 0;
    if (d > i) return 1;
    var x = i - u;
    return (d - u) / x
}

function B2(n) {
    var u = n.timeSinceLastFrame,
        i = n.config,
        d = i.maxPixelScrollPerSecond / 1e3,
        g = Math.ceil(d * u),
        x = i.maxPixelScrollPerSecond / 60;
    return Math.min(g, x)
}

function H2(n) {
    var u = n.client,
        i = n.axis,
        d = n.edge,
        g = n.hitbox,
        x = n.config,
        p = Fg[i].mainAxis,
        w = Gg[d],
        M = g[p.size] * x.maxScrollAtPercentageRemainingOfHitbox[d];
    if (w === "end") return mg({
        startOfRange: g[p.start],
        endOfRange: g[p.end] - M,
        value: u[p.point]
    });
    var T = mg({
        startOfRange: g[p.start] + M,
        endOfRange: g[p.end],
        value: u[p.point]
    });
    return 1 - T
}

function Qc(n) {
    var u = n.client,
        i = n.timeSinceLastFrame,
        d = n.engagement,
        g = n.axis,
        x = n.hitbox,
        p = n.edge,
        w = n.isDistanceDampeningEnabled,
        M = n.config,
        T = B2({
            timeSinceLastFrame: i,
            config: M
        }),
        R = w ? H2({
            client: u,
            edge: p,
            hitbox: x,
            axis: g,
            config: M
        }) : 1,
        A = mg({
            startOfRange: d.timeOfEngagementStart,
            endOfRange: d.timeOfEngagementStart + M.timeDampeningDurationMs,
            value: Date.now()
        }),
        z = R * A,
        O = Math.max(T * z, 1),
        L = Gg[p];
    return L === "end" ? O : -1 * O
}

function O1(n, u) {
    return u === "all" || n === u
}

function vg(n) {
    var u = n.client,
        i = n.clientRect;
    return u.x >= i.x && u.x <= i.x + i.width && u.y >= i.y && u.y <= i.y + i.height
}

function F2(n) {
    return n.getBoundingClientRect()
}

function z1(n) {
    var u = n.element,
        i = n.input,
        d = n.timeSinceLastFrame,
        g = n.engagement,
        x = n.config,
        p = n.allowedAxis,
        w = n.getRect,
        M = w === void 0 ? F2 : w,
        T = {
            x: i.clientX,
            y: i.clientY
        },
        R = M(u),
        A = A1.reduce(function (L, G) {
            var Z = _1[G]({
                clientRect: R,
                config: x
            }),
                ce = R1[G];
            return !O1(ce, p) || !vg({
                client: T,
                clientRect: Z
            }) || !M1[G](u) || L.set(G, {
                edge: G,
                hitbox: Z
            }), L
        }, new Map),
        z = (function () {
            var L = "horizontal",
                G = A.get("left");
            if (G) return Qc({
                client: T,
                edge: G.edge,
                hitbox: G.hitbox,
                axis: L,
                timeSinceLastFrame: d,
                engagement: g,
                isDistanceDampeningEnabled: !0,
                config: x
            });
            var Z = A.get("right");
            return Z ? Qc({
                client: T,
                edge: Z.edge,
                hitbox: Z.hitbox,
                axis: L,
                timeSinceLastFrame: d,
                engagement: g,
                isDistanceDampeningEnabled: !0,
                config: x
            }) : 0
        })(),
        O = (function () {
            var L = "vertical",
                G = A.get("bottom");
            if (G) return Qc({
                client: T,
                edge: G.edge,
                hitbox: G.hitbox,
                axis: L,
                timeSinceLastFrame: d,
                engagement: g,
                isDistanceDampeningEnabled: !0,
                config: x
            });
            var Z = A.get("top");
            return Z ? Qc({
                client: T,
                edge: Z.edge,
                hitbox: Z.hitbox,
                axis: L,
                timeSinceLastFrame: d,
                engagement: g,
                isDistanceDampeningEnabled: !0,
                config: x
            }) : 0
        })();
    return {
        left: z,
        top: O
    }
}

function G2(n, u) {
    var i = typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
    if (!i) {
        if (Array.isArray(n) || (i = Y2(n)) || u) {
            i && (n = i);
            var d = 0,
                g = function () { };
            return {
                s: g,
                n: function () {
                    return d >= n.length ? {
                        done: !0
                    } : {
                        done: !1,
                        value: n[d++]
                    }
                },
                e: function (T) {
                    throw T
                },
                f: g
            }
        }
        throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)
    }
    var x = !0,
        p = !1,
        w;
    return {
        s: function () {
            i = i.call(n)
        },
        n: function () {
            var T = i.next();
            return x = T.done, T
        },
        e: function (T) {
            p = !0, w = T
        },
        f: function () {
            try {
                !x && i.return != null && i.return()
            } finally {
                if (p) throw w
            }
        }
    }
}

function Y2(n, u) {
    if (n) {
        if (typeof n == "string") return Kv(n, u);
        var i = Object.prototype.toString.call(n).slice(8, -1);
        if (i === "Object" && n.constructor && (i = n.constructor.name), i === "Map" || i === "Set") return Array.from(n);
        if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return Kv(n, u)
    }
}

function Kv(n, u) {
    (u == null || u > n.length) && (u = n.length);
    for (var i = 0, d = new Array(u); i < u; i++) d[i] = n[i];
    return d
}

function j1(n) {
    return !!(n.top || n.left)
}

function D1(n) {
    var u, i, d, g = n.target,
        x = n.input,
        p = n.source,
        w = n.findEntry,
        M = n.timeSinceLastFrame,
        T = n.available,
        R = T === void 0 ? {
            top: !0,
            left: !0
        } : T;
    if (!j1(R) || !g) return R;
    var A = g.closest(D2);
    if (!A) return R;
    var z = w(A);
    if (!z) return R;

    function O() {
        var he;
        return D1({
            target: (he = A?.parentElement) !== null && he !== void 0 ? he : null,
            findEntry: w,
            source: p,
            timeSinceLastFrame: M,
            input: x,
            available: R
        })
    }
    var L = {
        input: x,
        source: p,
        element: A
    };
    if (z.canScroll && !z.canScroll(L)) return O();
    var G = Bg(A),
        Z = Hg((u = z.getConfiguration) === null || u === void 0 ? void 0 : u.call(z, L)),
        ce = (i = (d = z.getAllowedAxis) === null || d === void 0 ? void 0 : d.call(z, L)) !== null && i !== void 0 ? i : "all",
        re = z1({
            element: A,
            engagement: G,
            input: x,
            timeSinceLastFrame: M,
            allowedAxis: ce,
            config: Z
        }),
        ve = {
            top: 0,
            left: 0
        };
    return R.top && re.top !== 0 && (ve.top = re.top, R.top = !1), R.left && re.left !== 0 && (ve.left = re.left, R.left = !1), (ve.top !== 0 || ve.left !== 0) && A.scrollBy(ve), O()
}

function X2(n) {
    var u = n.input,
        i = n.timeSinceLastFrame,
        d = n.available,
        g = n.source,
        x = n.entries,
        p = document.documentElement,
        w = {
            input: u,
            source: g,
            element: p
        },
        M = G2(x),
        T;
    try {
        for (M.s(); !(T = M.n()).done;) {
            var R, A, z, O = T.value;
            if (!(O.canScroll && !O.canScroll(w))) {
                var L = Bg(p),
                    G = Hg((R = O.getConfiguration) === null || R === void 0 ? void 0 : R.call(O, w)),
                    Z = (A = (z = O.getAllowedAxis) === null || z === void 0 ? void 0 : z.call(O, w)) !== null && A !== void 0 ? A : "all",
                    ce = z1({
                        element: p,
                        engagement: L,
                        input: u,
                        config: G,
                        allowedAxis: Z,
                        getRect: function (he) {
                            return DOMRect.fromRect({
                                y: 0,
                                x: 0,
                                width: he.clientWidth,
                                height: he.clientHeight
                            })
                        },
                        timeSinceLastFrame: i
                    }),
                    re = {
                        top: d.top ? ce.top : 0,
                        left: d.left ? ce.left : 0
                    };
                (re.top !== 0 || re.left !== 0) && p.scrollBy(re);
                break
            }
        }
    } catch (ve) {
        M.e(ve)
    } finally {
        M.f()
    }
}

function V2(n) {
    var u = n.input,
        i = n.findEntry,
        d = n.timeSinceLastFrame,
        g = n.source,
        x = n.getWindowScrollEntries,
        p = n.underUsersPointer,
        w = D1({
            target: p,
            timeSinceLastFrame: d,
            input: u,
            source: g,
            findEntry: i
        });
    j1(w) && X2({
        input: u,
        source: g,
        entries: x(),
        timeSinceLastFrame: d,
        available: w
    })
}

function qv(n, u) {
    var i = Object.keys(n);
    if (Object.getOwnPropertySymbols) {
        var d = Object.getOwnPropertySymbols(n);
        u && (d = d.filter(function (g) {
            return Object.getOwnPropertyDescriptor(n, g).enumerable
        })), i.push.apply(i, d)
    }
    return i
}

function I2(n) {
    for (var u = 1; u < arguments.length; u++) {
        var i = arguments[u] != null ? arguments[u] : {};
        u % 2 ? qv(Object(i), !0).forEach(function (d) {
            fn(n, d, i[d])
        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(i)) : qv(Object(i)).forEach(function (d) {
            Object.defineProperty(n, d, Object.getOwnPropertyDescriptor(i, d))
        })
    }
    return n
}

function Z2(n) {
    var u = n.monitor,
        i = new Map,
        d = new Set;

    function g(T) {
        return i.set(T.element, T), Xo(k2(T.element), function () {
            return i.delete(T.element)
        })
    }

    function x() {
        var T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
            R = I2({}, T);
        return d.add(R),
            function () {
                return d.delete(R)
            }
    }

    function p(T) {
        var R;
        return (R = i.get(T)) !== null && R !== void 0 ? R : null
    }

    function w() {
        return Array.from(d)
    }

    function M(T) {
        var R = T.latestArgs,
            A = T.underUsersPointer,
            z = T.timeSinceLastFrame;
        V2({
            input: R.location.current.input,
            source: R.source,
            findEntry: p,
            underUsersPointer: A,
            timeSinceLastFrame: z,
            getWindowScrollEntries: w
        })
    }
    return E1(u).onFrame(M), {
        autoScroll: g,
        autoScrollWindow: x
    }
}
var Q2 = Z2({
    monitor: Dd
}),
    k1 = Q2.autoScroll;

function _f(n) {
    var u = n.axis,
        i = n.side;
    return function (g) {
        var x, p, w = g.clientRect,
            M = g.overflow,
            T = g.config,
            R = Fg[u],
            A = R.mainAxis,
            z = R.crossAxis,
            O = A[i],
            L = M[O],
            G = _1[O]({
                clientRect: w,
                config: T
            }),
            Z = DOMRect.fromRect((x = {}, fn(x, A.point, G[A.point]), fn(x, A.size, G[A.size]), fn(x, z.point, G[z.point] - L[z.start]), fn(x, z.size, G[z.size] + L[z.start] + L[z.end]), x)),
            ce = DOMRect.fromRect((p = {}, fn(p, A.point, i === "start" ? w[A.point] - L[A.start] : w[A.end]), fn(p, z.point, w[z.point] - L[z.start]), fn(p, A.size, i === "start" ? L[A.start] : L[A.end]), fn(p, z.size, L[z.start] + w[z.size] + L[z.end]), p));
        return {
            insideOfEdge: Z,
            outsideOfEdge: ce
        }
    }
}
var P2 = {
    top: _f({
        axis: "vertical",
        side: "start"
    }),
    right: _f({
        axis: "horizontal",
        side: "end"
    }),
    bottom: _f({
        axis: "vertical",
        side: "end"
    }),
    left: _f({
        axis: "horizontal",
        side: "start"
    })
};

function Of(n) {
    return n.type === "inside-of-edge"
}

function zf(n) {
    var u, i, d, g;
    return {
        top: (u = n?.top) !== null && u !== void 0 ? u : 0,
        right: (i = n?.right) !== null && i !== void 0 ? i : 0,
        bottom: (d = n?.bottom) !== null && d !== void 0 ? d : 0,
        left: (g = n?.left) !== null && g !== void 0 ? g : 0
    }
}

function W2(n) {
    return {
        top: zf(n.fromTopEdge),
        right: zf(n.fromRightEdge),
        bottom: zf(n.fromBottomEdge),
        left: zf(n.fromLeftEdge)
    }
}

function J2(n) {
    var u = n.entry,
        i = n.timeSinceLastFrame,
        d = n.input,
        g = n.config,
        x = n.allowedAxis,
        p = {
            x: d.clientX,
            y: d.clientY
        },
        w = u.element.getBoundingClientRect(),
        M = W2(u.getOverflow()),
        T = A1.map(function (G) {
            var Z = P2[G]({
                clientRect: w,
                overflow: M,
                config: g
            }),
                ce = Z.insideOfEdge,
                re = Z.outsideOfEdge;
            return vg({
                client: p,
                clientRect: re
            }) ? {
                edge: G,
                hitbox: re,
                type: "outside-of-edge"
            } : vg({
                client: p,
                clientRect: ce
            }) ? {
                edge: G,
                hitbox: ce,
                type: "inside-of-edge"
            } : !1
        }).filter(function (G) {
            return !!G
        });
    if (!T.length) return null;
    var R = Bg(u.element),
        A = T.filter(function (G) {
            return O1(R1[G.edge], x) && M1[G.edge](u.element)
        });
    if (!A.length) return null;
    var z = new Map(A.map(function (G) {
        return [G.edge, G]
    })),
        O = (function () {
            var G = "horizontal",
                Z = z.get("left");
            if (Z) return Qc({
                client: p,
                isDistanceDampeningEnabled: Of(Z),
                hitbox: Z.hitbox,
                edge: "left",
                axis: G,
                timeSinceLastFrame: i,
                engagement: R,
                config: g
            });
            var ce = z.get("right");
            return ce ? Qc({
                client: p,
                isDistanceDampeningEnabled: Of(ce),
                hitbox: ce.hitbox,
                edge: "right",
                axis: G,
                timeSinceLastFrame: i,
                engagement: R,
                config: g
            }) : 0
        })(),
        L = (function () {
            var G = "vertical",
                Z = z.get("bottom");
            if (Z) return Qc({
                client: p,
                isDistanceDampeningEnabled: Of(Z),
                hitbox: Z.hitbox,
                edge: "bottom",
                axis: G,
                timeSinceLastFrame: i,
                engagement: R,
                config: g
            });
            var ce = z.get("top");
            return ce ? Qc({
                client: p,
                isDistanceDampeningEnabled: Of(ce),
                hitbox: ce.hitbox,
                edge: "top",
                axis: G,
                timeSinceLastFrame: i,
                engagement: R,
                config: g
            }) : 0
        })();
    return {
        left: O,
        top: L
    }
}

function K2(n, u) {
    var i = typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
    if (!i) {
        if (Array.isArray(n) || (i = q2(n)) || u) {
            i && (n = i);
            var d = 0,
                g = function () { };
            return {
                s: g,
                n: function () {
                    return d >= n.length ? {
                        done: !0
                    } : {
                        done: !1,
                        value: n[d++]
                    }
                },
                e: function (T) {
                    throw T
                },
                f: g
            }
        }
        throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)
    }
    var x = !0,
        p = !1,
        w;
    return {
        s: function () {
            i = i.call(n)
        },
        n: function () {
            var T = i.next();
            return x = T.done, T
        },
        e: function (T) {
            p = !0, w = T
        },
        f: function () {
            try {
                !x && i.return != null && i.return()
            } finally {
                if (p) throw w
            }
        }
    }
}

function q2(n, u) {
    if (n) {
        if (typeof n == "string") return $v(n, u);
        var i = Object.prototype.toString.call(n).slice(8, -1);
        if (i === "Object" && n.constructor && (i = n.constructor.name), i === "Map" || i === "Set") return Array.from(n);
        if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return $v(n, u)
    }
}

function $v(n, u) {
    (u == null || u > n.length) && (u = n.length);
    for (var i = 0, d = new Array(u); i < u; i++) d[i] = n[i];
    return d
}

function $2(n) {
    var u = n.input,
        i = n.source,
        d = n.entries,
        g = n.timeSinceLastFrame,
        x = n.underUsersPointer,
        p = K2(d),
        w;
    try {
        for (p.s(); !(w = p.n()).done;) {
            var M, T, R, A = w.value;
            if (!A.element.contains(x)) {
                var z = {
                    input: u,
                    source: i,
                    element: A.element
                };
                if (!(A.canScroll && !A.canScroll(z))) {
                    var O = Hg((M = A.getConfiguration) === null || M === void 0 ? void 0 : M.call(A, z)),
                        L = (T = (R = A.getAllowedAxis) === null || R === void 0 ? void 0 : R.call(A, z)) !== null && T !== void 0 ? T : "all",
                        G = J2({
                            entry: A,
                            input: u,
                            timeSinceLastFrame: g,
                            allowedAxis: L,
                            config: O
                        });
                    G && A.element.scrollBy(G)
                }
            }
        }
    } catch (Z) {
        p.e(Z)
    } finally {
        p.f()
    }
}

function e3(n) {
    var u = n.monitor,
        i = new Map;

    function d(x) {
        return i.set(x.element, x),
            function () {
                return i.delete(x.element)
            }
    }

    function g(x) {
        var p = x.latestArgs,
            w = x.underUsersPointer,
            M = x.timeSinceLastFrame;
        $2({
            input: p.location.current.input,
            source: p.source,
            entries: Array.from(i).map(function (T) {
                var R = Og(T, 2);
                R[0];
                var A = R[1];
                return A
            }),
            underUsersPointer: w,
            timeSinceLastFrame: M
        })
    }
    return E1(u).onFrame(g), {
        unsafeOverflowAutoScroll: d
    }
}
var t3 = e3({
    monitor: Dd
}),
    L1 = t3.unsafeOverflowAutoScroll;
const Yg = it((n, u) => ({
    label_cardMoveOutColumn: (i, d, g) => {
        const {
            duplicateCardMove: x
        } = zs.getState();
        x || Ge.Labels("addOrRemoveLabels", {
            id: i,
            label: [{
                labelId: d,
                type: "remove"
            }]
        }), Ge.Labels("addOrRemoveLabels", {
            id: i,
            label: [{
                labelId: g,
                type: "add"
            }]
        })
    },
    label_ColumnMove: async (i, d) => {
        let x = rg.getState().orderLabels;
        x.length === 0 && (x = (await Ge.Labels("getAllLabels")).map(T => T.id));
        const p = Array.from(x),
            [w] = p.splice(i, 1);
        p.splice(d, 0, w), R0(p)
    }
})),
    U1 = Symbol("card"),
    B1 = Symbol("card-drop-target");

function a3({
    card: n,
    rect: u,
    columnId: i
}) {
    return {
        [U1]: !0,
        rect: u,
        card: n,
        columnId: i
    }
}

function Os(n) {
    return !!n[U1]
}

function Uo({
    source: n
}) {
    return Os(n.data)
}

function H1(n) {
    return !!n[B1]
}

function n3({
    card: n,
    columnId: u
}) {
    return {
        [B1]: !0,
        card: n,
        columnId: u
    }
}
const F1 = Symbol("column");

function l3({
    column: n
}) {
    return {
        [F1]: !0,
        column: n
    }
}

function Bo(n) {
    return !!n[F1]
}

function Gf({
    source: n
}) {
    return Bo(n.data)
}

function e0(n, u) {
    var i = Object.keys(n);
    if (Object.getOwnPropertySymbols) {
        var d = Object.getOwnPropertySymbols(n);
        u && (d = d.filter(function (g) {
            return Object.getOwnPropertyDescriptor(n, g).enumerable
        })), i.push.apply(i, d)
    }
    return i
}

function t0(n) {
    for (var u = 1; u < arguments.length; u++) {
        var i = arguments[u] != null ? arguments[u] : {};
        u % 2 ? e0(Object(i), !0).forEach(function (d) {
            fn(n, d, i[d])
        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(i)) : e0(Object(i)).forEach(function (d) {
            Object.defineProperty(n, d, Object.getOwnPropertyDescriptor(i, d))
        })
    }
    return n
}
var i3 = {
    top: function (u, i) {
        return Math.abs(i.y - u.top)
    },
    right: function (u, i) {
        return Math.abs(u.right - i.x)
    },
    bottom: function (u, i) {
        return Math.abs(u.bottom - i.y)
    },
    left: function (u, i) {
        return Math.abs(i.x - u.left)
    }
},
    G1 = Symbol("closestEdge");

function r3(n, u) {
    var i, d, g = u.element,
        x = u.input,
        p = u.allowedEdges,
        w = {
            x: x.clientX,
            y: x.clientY
        },
        M = g.getBoundingClientRect(),
        T = p.map(function (A) {
            return {
                edge: A,
                value: i3[A](M, w)
            }
        }),
        R = (i = (d = T.sort(function (A, z) {
            return A.value - z.value
        })[0]) === null || d === void 0 ? void 0 : d.edge) !== null && i !== void 0 ? i : null;
    return t0(t0({}, n), {}, fn({}, G1, R))
}

function bg(n) {
    var u;
    return (u = n[G1]) !== null && u !== void 0 ? u : null
}
chrome.runtime.onMessage.addListener(n => {
    switch (n.action) {
        case "serviceCompleted":
            Pf.getState().dispartWebhook(n.dados, "serviceCompleted");
            break;
        case "dispartWebhook":
            const u = n.dados;
            Pf.getState().dispartWebhook(u.userID, u.webhookID, u.eventDetails, u.sendID);
            break
    }
});
const Y1 = [{
    id: "eventDetails",
    active: !0,
    disabled: !0
}, {
    id: "number",
    active: !0,
    disabled: !0
}, {
    id: "name",
    active: !0,
    disabled: !0
}, {
    id: "picture",
    active: !1
}, {
    id: "labels",
    active: !1
}],
    s3 = {
        id: "metaAds",
        active: !1,
        url: "",
        param: Y1,
        sent: []
    },
    Pf = it()(n => ({
        webhook: [],
        activeHook: s3,
        timeout: null,
        setActiveHook: u => n(i => {
            const d = i.webhook.find(g => g.id === u);
            return d ? {
                activeHook: d
            } : {
                activeHook: {
                    id: u,
                    active: !1,
                    url: "",
                    param: Y1,
                    sent: []
                }
            }
        }),
        setDadosWebHook: (u, i, d) => n(g => {
            let x = null,
                p = [];
            return g.webhook.find(M => M.id === u) ? p = g.webhook.map(M => M.id === u ? (x = {
                ...M,
                [i]: d
            }, x) : M) : (x = {
                ...g.activeHook,
                [i]: d
            }, p = [x, ...g.webhook]), Je("webhook", p), {
                activeHook: x,
                webhook: p
            }
        }),
        setDadosParam: (u, i) => n(d => {
            const g = d.activeHook.param.map(M => M.id === i ? {
                id: M.id,
                active: !M.active
            } : M);
            let x = {
                ...d.activeHook,
                param: g
            },
                p = [];
            return d.webhook.find(M => M.id === u) ? p = d.webhook.map(M => M.id === u ? x : M) : p = [x, ...d.webhook], Je("webhook", p), {
                activeHook: x,
                webhook: p
            }
        }),
        dispartWebhook: async (u, i, d, g) => {
            const {
                timeout: x
            } = Pf.getState();
            if (We.getState().plugin_page) {
                xg(u, i, d, g);
                return
            }
            const p = Pf.getState().webhook.find(L => L.id === i);
            if (!p || !p.active) return;
            if (x && clearTimeout(x), await rl("webhook", !0) === !0) {
                n({
                    timeout: setTimeout(() => { }, 5e3)
                });
                return
            }
            const w = await Ge.Utils("get-card", u);
            w.number = w.id, delete w.id, w.eventID = p.id, d && (w.eventDetails = d), p.param.forEach(L => {
                L.active || delete w[L.id]
            });
            let M = 500;
            const T = {
                method: "POST",
                headers: {
                    "Content-Type": "application/json"
                },
                body: JSON.stringify(w)
            },
                R = await fetch(p.url, T).then(L => {
                    M = L.status
                }).then(() => !0).catch(L => (console.error("error", L), !1)),
                A = ll.dayDate(),
                z = ll.timeDate(),
                O = {
                    id: g || Ir(),
                    status: !!R,
                    code: M,
                    userID: u,
                    date: `${A.day}/${A.month}/${A.year} as ${z.hours}:${z.minutes}:${z.seconds}`
                };
            d && (O.eventDetails = d), n(g ? L => {
                const G = L.webhook.map(Z => {
                    if (Z.id === i) {
                        const ce = Z.sent.map(re => re.id === g ? O : re);
                        return {
                            ...Z,
                            sent: ce
                        }
                    }
                    return Z
                });
                return Je("webhook", G), {
                    activeHook: G.find(Z => Z.id === i),
                    webhook: G
                }
            } : L => {
                const G = L.webhook.map(Z => {
                    if (Z.id === i) {
                        const ce = Z.sent;
                        return ce.length >= 30 && ce.pop(), {
                            ...Z,
                            sent: [O, ...ce]
                        }
                    }
                    return Z
                });
                return Je("webhook", G), {
                    activeHook: G.find(Z => Z.id === i),
                    webhook: G
                }
            })
        }
    })),
    xg = (n, u, i, d) => {
        Mt("dispartWebhook", {
            userID: n,
            webhookID: u,
            eventDetails: i,
            sendID: d
        })
    },
    X1 = it((n, u) => ({
        aba_cardMoveInColumn: (i, d, g) => {
            const {
                userTabs: x,
                setChatsTab: p
            } = at.getState(), M = [...x.find(R => R.id === i).chats], [T] = M.splice(d, 1);
            M.splice(g, 0, T), p(M, i)
        },
        aba_cardMoveOutColumn: (i, d, g, x) => {
            const {
                userTabs: p,
                setChatsTab: w,
                setRemoveUser: M
            } = at.getState(), {
                duplicateCardMove: T
            } = zs.getState(), {
                getCard: R
            } = hn.getState(), A = p.find(O => O.id === d.id);
            if (A && A.chats.some(O => O.id === g)) {
                pe({
                    type: "Error",
                    message: "Contato já existente na aba",
                    position: "top-right"
                });
                return
            }
            const z = p.find(O => O.id === i.id)?.chats?.find(O => O.id === g);
            if (z) {
                !T && M(g, !1, i.id);
                const O = p.find(L => L.id === d.id).chats;
                O.splice(x, 0, z), w([...O], d.id), xg(g, "crm", {
                    id: A.id,
                    type: "NewUser",
                    name: A.tag
                })
            } else {
                const O = {
                    id: g,
                    name: R(g).name
                },
                    L = [...A.chats.slice(0, x), O, ...A.chats.slice(x)];
                w(L, d.id), xg(g, "crm", {
                    id: A.id,
                    type: "NewUser",
                    name: A.tag
                })
            }
        }
    })),
    V1 = it((n, u) => ({
        crm_cardMoveInColumn: (i, d, g) => {
            const {
                ativeCRM: x
            } = ea.getState();
            bx(x, i, d, g)
        },
        crm_cardMoveOutColumn: (i, d, g, x) => {
            const p = Fo.getState().crm,
                {
                    ativeCRM: w
                } = ea.getState(),
                {
                    duplicateCardMove: M
                } = zs.getState();
            if (p.find(R => R.id === w)?.list.find(R => R.id === g)?.chats.find(R => R.id === i)) {
                pe({
                    type: "Error",
                    message: "Contato já existente na aba",
                    position: "top-right"
                });
                return
            }
            d === "Inbox" ? mx(i, w, g, x) : vx({
                id: i
            }, d, g, x, M)
        }
    }));

function c3(n, u, i, d, g) {
    const {
        ativeCRM: x,
        data: p
    } = ea.getState(), {
        aba_cardMoveInColumn: w,
        aba_cardMoveOutColumn: M
    } = X1.getState(), {
        label_cardMoveOutColumn: T
    } = Yg.getState(), {
        crm_cardMoveInColumn: R,
        crm_cardMoveOutColumn: A
    } = V1.getState(), {
        language: z
    } = Ce.getState(), O = p.columns.findIndex(re => re.id === d.columnId), L = p.columns[O];
    if (!L) return;
    if (n.id === "Inbox" && L.id === "Inbox") {
        pe({
            type: "Info",
            message: z.impossivelOrganizarCardsInbox,
            position: "top-right"
        });
        return
    }
    if (L.id === "Inbox" && n.id !== "Inbox") {
        pe({
            type: "Info",
            message: z.impossivelMoverCardInbox,
            position: "top-right"
        });
        return
    }
    if (n === L) {
        const re = n.cards.findIndex(ve => ve.id === d.card.id);
        if (u === -1 || re === -1 || u === re) return;
        switch (x) {
            case "Abas":
                w(g.columnId, u, re);
                break;
            case "Etiquetas":
                pe({
                    type: "Info",
                    message: z.impossivelOrganizarCardsEtiquetas,
                    position: "top-right"
                });
                break;
            default:
                R(g.columnId, u, re);
                break
        }
        return
    }
    const G = L.cards.findIndex(re => re.id === d.card.id),
        ce = bg(d) === "bottom" ? G + 1 : G;
    switch (x) {
        case "Abas":
            M(n, L, g.card.id, ce);
            break;
        case "Etiquetas":
            n.id === "Inbox" ? Ge.Labels("addOrRemoveLabels", {
                id: g.card.id,
                label: {
                    labelId: L.id,
                    type: "add"
                }
            }) : T(g.card.id, n.id, L.id);
            break;
        default:
            A(g.card.id, n.id, L.id, ce);
            break
    }
}

function o3(n, u, i, d) {
    const {
        ativeCRM: g,
        data: x
    } = ea.getState(), {
        aba_cardMoveInColumn: p,
        aba_cardMoveOutColumn: w
    } = X1.getState(), {
        label_cardMoveOutColumn: M
    } = Yg.getState(), {
        crm_cardMoveInColumn: T,
        crm_cardMoveOutColumn: R
    } = V1.getState(), {
        language: A
    } = Ce.getState(), z = x.columns.findIndex(L => L.id === i.column.id), O = x.columns[z];
    if (O) {
        if (O.id === "Inbox" && n.id !== "Inbox") {
            pe({
                type: "Info",
                message: A.impossivelMoverCardInbox,
                position: "top-right"
            });
            return
        }
        if (n === O) {
            if (n.id === "Inbox") {
                pe({
                    type: "Info",
                    message: A.impossivelOrganizarCardsInbox,
                    position: "top-right"
                });
                return
            }
            switch (g) {
                case "Abas":
                    p(d.columnId, u, n.cards.length - 1);
                    break;
                case "Etiquetas":
                    pe({
                        type: "Info",
                        message: A.impossivelOrganizarCardsEtiquetas,
                        position: "top-right"
                    });
                    break;
                default:
                    T(d.columnId, u, n.cards.length - 1);
                    break
            }
            return
        }
        switch (g) {
            case "Abas":
                w(n, O, d.card.id, u);
                break;
            case "Etiquetas":
                n.id === "Inbox" ? Ge.Labels("addOrRemoveLabels", {
                    id: d.card.id,
                    label: {
                        labelId: O.id,
                        type: "add"
                    }
                }) : M(d.card.id, n.id, O.id);
                break;
            default:
                R(d.card.id, n.id, O.id, u);
                break
        }
    }
}

function u3(n) {
    const {
        settings: u
    } = zs(), {
        data: i
    } = ea(), {
        language: d
    } = Ce(), g = Vr(p => p.session), {
        openRendertype: x
    } = Wt.getState();
    W.useEffect(() => {
        const p = n.current;
        return Xr(p), Xo(Dd({
            canMonitor: Uo,
            onDrop({
                source: w,
                location: M
            }) {
                const T = w.data;
                if (!Os(T)) return;
                const R = M.current.dropTargets[0];
                if (!R) return;
                const A = R.data,
                    z = i.columns.findIndex(G => G.id === T.columnId),
                    O = i.columns[z];
                if (!O) return;
                const L = O.cards.findIndex(G => G.id === T.card.id);
                if (!g.is_premium) {
                    x("user_free");
                    return
                }
                H1(A) && c3(O, L, z, A, T), Bo(A) && o3(O, L, A, T)
            }
        }), Dd({
            canMonitor: Gf,
            onDrop({
                source: w,
                location: M
            }) {
                const {
                    ativeCRM: T
                } = ea.getState(), {
                    sortUserTabs: R
                } = at.getState(), {
                    label_ColumnMove: A
                } = Yg.getState(), z = w.data;
                if (!Bo(z)) return;
                const O = M.current.dropTargets[0];
                if (!O) return;
                const L = O.data;
                if (!Bo(L)) return;
                const G = i.columns.findIndex(ve => ve.id === z.column.id),
                    Z = i.columns.findIndex(ve => ve.id === L.column.id),
                    ce = i.columns.findIndex(ve => ve.id === L.column.id),
                    re = i.columns[ce];
                if (!(G === -1 || Z === -1) && G !== Z) {
                    if (!g.is_premium) {
                        x("user_free");
                        return
                    }
                    if (z.column.id === "Inbox") {
                        pe({
                            type: "Info",
                            message: d.impossivelMoverColunaInbox,
                            position: "top-right"
                        });
                        return
                    }
                    if (re.id === "Inbox") {
                        pe({
                            type: "Info",
                            message: d.impossivelMoverColunaParaPosicaoInbox,
                            position: "top-right"
                        });
                        return
                    }
                    switch (T) {
                        case "Abas":
                            R(G - 1, Z - 1);
                            break;
                        case "Etiquetas":
                            A(G - 1, Z - 1);
                            break;
                        default:
                            xx(T, G - 1, Z - 1);
                            break
                    }
                }
            }
        }), k1({
            canScroll({
                source: w
            }) {
                return u.isOverElementAutoScrollEnabled ? Uo({
                    source: w
                }) || Gf({
                    source: w
                }) : !1
            },
            getConfiguration: () => ({
                maxScrollSpeed: u.boardScrollSpeed
            }),
            element: p
        }), L1({
            element: p,
            getConfiguration: () => ({
                maxScrollSpeed: u.boardScrollSpeed
            }),
            canScroll({
                source: w
            }) {
                return !u.isOverElementAutoScrollEnabled || !u.isOverflowScrollingEnabled ? !1 : Uo({
                    source: w
                }) || Gf({
                    source: w
                })
            },
            getOverflow() {
                return {
                    forLeftEdge: {
                        top: 1e3,
                        left: 1e3,
                        bottom: 1e3
                    },
                    forRightEdge: {
                        top: 1e3,
                        right: 1e3,
                        bottom: 1e3
                    }
                }
            }
        }))
    }, [i, u, g])
}
var ko = {},
    Rd = {};
var a0;

function d3() {
    if (a0) return Rd;
    a0 = 1;
    var n = wg(),
        u = Tg();

    function i(c) {
        var f = "https://react.dev/errors/" + c;
        if (1 < arguments.length) {
            f += "?args[]=" + encodeURIComponent(arguments[1]);
            for (var b = 2; b < arguments.length; b++) f += "&args[]=" + encodeURIComponent(arguments[b])
        }
        return "Minified React error #" + c + "; visit " + f + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
    }
    var d = Symbol.for("react.transitional.element"),
        g = Symbol.for("react.portal"),
        x = Symbol.for("react.fragment"),
        p = Symbol.for("react.strict_mode"),
        w = Symbol.for("react.profiler"),
        M = Symbol.for("react.consumer"),
        T = Symbol.for("react.context"),
        R = Symbol.for("react.forward_ref"),
        A = Symbol.for("react.suspense"),
        z = Symbol.for("react.suspense_list"),
        O = Symbol.for("react.memo"),
        L = Symbol.for("react.lazy"),
        G = Symbol.for("react.scope"),
        Z = Symbol.for("react.activity"),
        ce = Symbol.for("react.legacy_hidden"),
        re = Symbol.for("react.memo_cache_sentinel"),
        ve = Symbol.for("react.view_transition"),
        he = Symbol.iterator;

    function Se(c) {
        return c === null || typeof c != "object" ? null : (c = he && c[he] || c["@@iterator"], typeof c == "function" ? c : null)
    }
    var xe = Array.isArray;

    function ft(c, f) {
        var b = c.length & 3,
            S = c.length - b,
            E = f;
        for (f = 0; f < S;) {
            var D = c.charCodeAt(f) & 255 | (c.charCodeAt(++f) & 255) << 8 | (c.charCodeAt(++f) & 255) << 16 | (c.charCodeAt(++f) & 255) << 24;
            ++f, D = 3432918353 * (D & 65535) + ((3432918353 * (D >>> 16) & 65535) << 16) & 4294967295, D = D << 15 | D >>> 17, D = 461845907 * (D & 65535) + ((461845907 * (D >>> 16) & 65535) << 16) & 4294967295, E ^= D, E = E << 13 | E >>> 19, E = 5 * (E & 65535) + ((5 * (E >>> 16) & 65535) << 16) & 4294967295, E = (E & 65535) + 27492 + (((E >>> 16) + 58964 & 65535) << 16)
        }
        switch (D = 0, b) {
            case 3:
                D ^= (c.charCodeAt(f + 2) & 255) << 16;
            case 2:
                D ^= (c.charCodeAt(f + 1) & 255) << 8;
            case 1:
                D ^= c.charCodeAt(f) & 255, D = 3432918353 * (D & 65535) + ((3432918353 * (D >>> 16) & 65535) << 16) & 4294967295, D = D << 15 | D >>> 17, E ^= 461845907 * (D & 65535) + ((461845907 * (D >>> 16) & 65535) << 16) & 4294967295
        }
        return E ^= c.length, E ^= E >>> 16, E = 2246822507 * (E & 65535) + ((2246822507 * (E >>> 16) & 65535) << 16) & 4294967295, E ^= E >>> 13, E = 3266489909 * (E & 65535) + ((3266489909 * (E >>> 16) & 65535) << 16) & 4294967295, (E ^ E >>> 16) >>> 0
    }
    var _e = Object.assign,
        De = Object.prototype.hasOwnProperty,
        ta = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),
        sa = {},
        yt = {};

    function Oe(c) {
        return De.call(yt, c) ? !0 : De.call(sa, c) ? !1 : ta.test(c) ? yt[c] = !0 : (sa[c] = !0, !1)
    }
    var Ye = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),
        Ee = new Map([
            ["acceptCharset", "accept-charset"],
            ["htmlFor", "for"],
            ["httpEquiv", "http-equiv"],
            ["crossOrigin", "crossorigin"],
            ["accentHeight", "accent-height"],
            ["alignmentBaseline", "alignment-baseline"],
            ["arabicForm", "arabic-form"],
            ["baselineShift", "baseline-shift"],
            ["capHeight", "cap-height"],
            ["clipPath", "clip-path"],
            ["clipRule", "clip-rule"],
            ["colorInterpolation", "color-interpolation"],
            ["colorInterpolationFilters", "color-interpolation-filters"],
            ["colorProfile", "color-profile"],
            ["colorRendering", "color-rendering"],
            ["dominantBaseline", "dominant-baseline"],
            ["enableBackground", "enable-background"],
            ["fillOpacity", "fill-opacity"],
            ["fillRule", "fill-rule"],
            ["floodColor", "flood-color"],
            ["floodOpacity", "flood-opacity"],
            ["fontFamily", "font-family"],
            ["fontSize", "font-size"],
            ["fontSizeAdjust", "font-size-adjust"],
            ["fontStretch", "font-stretch"],
            ["fontStyle", "font-style"],
            ["fontVariant", "font-variant"],
            ["fontWeight", "font-weight"],
            ["glyphName", "glyph-name"],
            ["glyphOrientationHorizontal", "glyph-orientation-horizontal"],
            ["glyphOrientationVertical", "glyph-orientation-vertical"],
            ["horizAdvX", "horiz-adv-x"],
            ["horizOriginX", "horiz-origin-x"],
            ["imageRendering", "image-rendering"],
            ["letterSpacing", "letter-spacing"],
            ["lightingColor", "lighting-color"],
            ["markerEnd", "marker-end"],
            ["markerMid", "marker-mid"],
            ["markerStart", "marker-start"],
            ["overlinePosition", "overline-position"],
            ["overlineThickness", "overline-thickness"],
            ["paintOrder", "paint-order"],
            ["panose-1", "panose-1"],
            ["pointerEvents", "pointer-events"],
            ["renderingIntent", "rendering-intent"],
            ["shapeRendering", "shape-rendering"],
            ["stopColor", "stop-color"],
            ["stopOpacity", "stop-opacity"],
            ["strikethroughPosition", "strikethrough-position"],
            ["strikethroughThickness", "strikethrough-thickness"],
            ["strokeDasharray", "stroke-dasharray"],
            ["strokeDashoffset", "stroke-dashoffset"],
            ["strokeLinecap", "stroke-linecap"],
            ["strokeLinejoin", "stroke-linejoin"],
            ["strokeMiterlimit", "stroke-miterlimit"],
            ["strokeOpacity", "stroke-opacity"],
            ["strokeWidth", "stroke-width"],
            ["textAnchor", "text-anchor"],
            ["textDecoration", "text-decoration"],
            ["textRendering", "text-rendering"],
            ["transformOrigin", "transform-origin"],
            ["underlinePosition", "underline-position"],
            ["underlineThickness", "underline-thickness"],
            ["unicodeBidi", "unicode-bidi"],
            ["unicodeRange", "unicode-range"],
            ["unitsPerEm", "units-per-em"],
            ["vAlphabetic", "v-alphabetic"],
            ["vHanging", "v-hanging"],
            ["vIdeographic", "v-ideographic"],
            ["vMathematical", "v-mathematical"],
            ["vectorEffect", "vector-effect"],
            ["vertAdvY", "vert-adv-y"],
            ["vertOriginX", "vert-origin-x"],
            ["vertOriginY", "vert-origin-y"],
            ["wordSpacing", "word-spacing"],
            ["writingMode", "writing-mode"],
            ["xmlnsXlink", "xmlns:xlink"],
            ["xHeight", "x-height"]
        ]),
        B = /["'&<>]/;

    function P(c) {
        if (typeof c == "boolean" || typeof c == "number" || typeof c == "bigint") return "" + c;
        c = "" + c;
        var f = B.exec(c);
        if (f) {
            var b = "",
                S, E = 0;
            for (S = f.index; S < c.length; S++) {
                switch (c.charCodeAt(S)) {
                    case 34:
                        f = "&quot;";
                        break;
                    case 38:
                        f = "&amp;";
                        break;
                    case 39:
                        f = "&#x27;";
                        break;
                    case 60:
                        f = "&lt;";
                        break;
                    case 62:
                        f = "&gt;";
                        break;
                    default:
                        continue
                }
                E !== S && (b += c.slice(E, S)), E = S + 1, b += f
            }
            c = E !== S ? b + c.slice(E, S) : b
        }
        return c
    }
    var Te = /([A-Z])/g,
        ht = /^ms-/,
        fe = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;

    function ae(c) {
        return fe.test("" + c) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : c
    }
    var mt = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
        nt = u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
        gt = {
            pending: !1,
            data: null,
            method: null,
            action: null
        },
        Ze = nt.d;
    nt.d = {
        f: Ze.f,
        r: Ze.r,
        D: wi,
        C: wa,
        L: cr,
        m: Ci,
        X: va,
        S: Ni,
        M: Po
    };
    var ga = [],
        cl = null,
        er = /(<\/|<)(s)(cript)/gi;

    function Cl(c, f, b, S) {
        return "" + f + (b === "s" ? "\\u0073" : "\\u0053") + S
    }

    function Jc(c, f, b, S, E) {
        return {
            idPrefix: c === void 0 ? "" : c,
            nextFormID: 0,
            streamingFormat: 0,
            bootstrapScriptContent: b,
            bootstrapScripts: S,
            bootstrapModules: E,
            instructions: 0,
            hasBody: !1,
            hasHtml: !1,
            unknownResources: {},
            dnsResources: {},
            connectResources: {
                default: {},
                anonymous: {},
                credentials: {}
            },
            imageResources: {},
            styleResources: {},
            scriptResources: {},
            moduleUnknownResources: {},
            moduleScriptResources: {}
        }
    }

    function ca(c, f, b, S) {
        return {
            insertionMode: c,
            selectedValue: f,
            tagScope: b,
            viewTransition: S
        }
    }

    function Ds(c, f, b) {
        var S = c.tagScope & -25;
        switch (f) {
            case "noscript":
                return ca(2, null, S | 1, null);
            case "select":
                return ca(2, b.value != null ? b.value : b.defaultValue, S, null);
            case "svg":
                return ca(4, null, S, null);
            case "picture":
                return ca(2, null, S | 2, null);
            case "math":
                return ca(5, null, S, null);
            case "foreignObject":
                return ca(2, null, S, null);
            case "table":
                return ca(6, null, S, null);
            case "thead":
            case "tbody":
            case "tfoot":
                return ca(7, null, S, null);
            case "colgroup":
                return ca(9, null, S, null);
            case "tr":
                return ca(8, null, S, null);
            case "head":
                if (2 > c.insertionMode) return ca(3, null, S, null);
                break;
            case "html":
                if (c.insertionMode === 0) return ca(1, null, S, null)
        }
        return 6 <= c.insertionMode || 2 > c.insertionMode ? ca(2, null, S, null) : c.tagScope !== S ? ca(c.insertionMode, c.selectedValue, S, null) : c
    }

    function Xe(c) {
        return c === null ? null : {
            update: c.update,
            enter: "none",
            exit: "none",
            share: c.update,
            name: c.autoName,
            autoName: c.autoName,
            nameIdx: 0
        }
    }

    function Nl(c, f) {
        return f.tagScope & 32 && (c.instructions |= 128), ca(f.insertionMode, f.selectedValue, f.tagScope | 12, Xe(f.viewTransition))
    }

    function tr(c, f) {
        c = Xe(f.viewTransition);
        var b = f.tagScope | 16;
        return c !== null && c.share !== "none" && (b |= 64), ca(f.insertionMode, f.selectedValue, b, c)
    }
    var ks = new Map;

    function ar(c, f) {
        if (typeof f != "object") throw Error(i(62));
        var b = !0,
            S;
        for (S in f)
            if (De.call(f, S)) {
                var E = f[S];
                if (E != null && typeof E != "boolean" && E !== "") {
                    if (S.indexOf("--") === 0) {
                        var D = P(S);
                        E = P(("" + E).trim())
                    } else D = ks.get(S), D === void 0 && (D = P(S.replace(Te, "-$1").toLowerCase().replace(ht, "-ms-")), ks.set(S, D)), E = typeof E == "number" ? E === 0 || Ye.has(S) ? "" + E : E + "px" : P(("" + E).trim());
                    b ? (b = !1, c.push(' style="', D, ":", E)) : c.push(";", D, ":", E)
                }
            } b || c.push('"')
    }

    function Tl(c, f, b) {
        b && typeof b != "function" && typeof b != "symbol" && c.push(" ", f, '=""')
    }

    function ma(c, f, b) {
        typeof b != "function" && typeof b != "symbol" && typeof b != "boolean" && c.push(" ", f, '="', P(b), '"')
    }
    var Ls = P("javascript:throw new Error('React form unexpectedly submitted.')");

    function En(c, f) {
        this.push('<input type="hidden"'), Mn(c), ma(this, "name", f), ma(this, "value", c), this.push("/>")
    }

    function Mn(c) {
        if (typeof c != "string") throw Error(i(480))
    }

    function yi(c, f) {
        if (typeof f.$$FORM_ACTION == "function") {
            var b = c.nextFormID++;
            c = c.idPrefix + b;
            try {
                var S = f.$$FORM_ACTION(c);
                if (S) {
                    var E = S.data;
                    E?.forEach(Mn)
                }
                return S
            } catch (D) {
                if (typeof D == "object" && D !== null && typeof D.then == "function") throw D
            }
        }
        return null
    }

    function gn(c, f, b, S, E, D, U, ee) {
        var Y = null;
        if (typeof S == "function") {
            var te = yi(f, S);
            te !== null ? (ee = te.name, S = te.action || "", E = te.encType, D = te.method, U = te.target, Y = te.data) : (c.push(" ", "formAction", '="', Ls, '"'), U = D = E = S = ee = null, nr(f, b))
        }
        return ee != null && ot(c, "name", ee), S != null && ot(c, "formAction", S), E != null && ot(c, "formEncType", E), D != null && ot(c, "formMethod", D), U != null && ot(c, "formTarget", U), Y
    }

    function ot(c, f, b) {
        switch (f) {
            case "className":
                ma(c, "class", b);
                break;
            case "tabIndex":
                ma(c, "tabindex", b);
                break;
            case "dir":
            case "role":
            case "viewBox":
            case "width":
            case "height":
                ma(c, f, b);
                break;
            case "style":
                ar(c, b);
                break;
            case "src":
            case "href":
                if (b === "") break;
            case "action":
            case "formAction":
                if (b == null || typeof b == "function" || typeof b == "symbol" || typeof b == "boolean") break;
                b = ae("" + b), c.push(" ", f, '="', P(b), '"');
                break;
            case "defaultValue":
            case "defaultChecked":
            case "innerHTML":
            case "suppressContentEditableWarning":
            case "suppressHydrationWarning":
            case "ref":
                break;
            case "autoFocus":
            case "multiple":
            case "muted":
                Tl(c, f.toLowerCase(), b);
                break;
            case "xlinkHref":
                if (typeof b == "function" || typeof b == "symbol" || typeof b == "boolean") break;
                b = ae("" + b), c.push(" ", "xlink:href", '="', P(b), '"');
                break;
            case "contentEditable":
            case "spellCheck":
            case "draggable":
            case "value":
            case "autoReverse":
            case "externalResourcesRequired":
            case "focusable":
            case "preserveAlpha":
                typeof b != "function" && typeof b != "symbol" && c.push(" ", f, '="', P(b), '"');
                break;
            case "inert":
            case "allowFullScreen":
            case "async":
            case "autoPlay":
            case "controls":
            case "default":
            case "defer":
            case "disabled":
            case "disablePictureInPicture":
            case "disableRemotePlayback":
            case "formNoValidate":
            case "hidden":
            case "loop":
            case "noModule":
            case "noValidate":
            case "open":
            case "playsInline":
            case "readOnly":
            case "required":
            case "reversed":
            case "scoped":
            case "seamless":
            case "itemScope":
                b && typeof b != "function" && typeof b != "symbol" && c.push(" ", f, '=""');
                break;
            case "capture":
            case "download":
                b === !0 ? c.push(" ", f, '=""') : b !== !1 && typeof b != "function" && typeof b != "symbol" && c.push(" ", f, '="', P(b), '"');
                break;
            case "cols":
            case "rows":
            case "size":
            case "span":
                typeof b != "function" && typeof b != "symbol" && !isNaN(b) && 1 <= b && c.push(" ", f, '="', P(b), '"');
                break;
            case "rowSpan":
            case "start":
                typeof b == "function" || typeof b == "symbol" || isNaN(b) || c.push(" ", f, '="', P(b), '"');
                break;
            case "xlinkActuate":
                ma(c, "xlink:actuate", b);
                break;
            case "xlinkArcrole":
                ma(c, "xlink:arcrole", b);
                break;
            case "xlinkRole":
                ma(c, "xlink:role", b);
                break;
            case "xlinkShow":
                ma(c, "xlink:show", b);
                break;
            case "xlinkTitle":
                ma(c, "xlink:title", b);
                break;
            case "xlinkType":
                ma(c, "xlink:type", b);
                break;
            case "xmlBase":
                ma(c, "xml:base", b);
                break;
            case "xmlLang":
                ma(c, "xml:lang", b);
                break;
            case "xmlSpace":
                ma(c, "xml:space", b);
                break;
            default:
                if ((!(2 < f.length) || f[0] !== "o" && f[0] !== "O" || f[1] !== "n" && f[1] !== "N") && (f = Ee.get(f) || f, Oe(f))) {
                    switch (typeof b) {
                        case "function":
                        case "symbol":
                            return;
                        case "boolean":
                            var S = f.toLowerCase().slice(0, 5);
                            if (S !== "data-" && S !== "aria-") return
                    }
                    c.push(" ", f, '="', P(b), '"')
                }
        }
    }

    function mn(c, f, b) {
        if (f != null) {
            if (b != null) throw Error(i(60));
            if (typeof f != "object" || !("__html" in f)) throw Error(i(61));
            f = f.__html, f != null && c.push("" + f)
        }
    }

    function Io(c) {
        var f = "";
        return n.Children.forEach(c, function (b) {
            b != null && (f += b)
        }), f
    }

    function nr(c, f) {
        if ((c.instructions & 16) === 0) {
            c.instructions |= 16;
            var b = f.preamble,
                S = f.bootstrapChunks;
            (b.htmlChunks || b.headChunks) && S.length === 0 ? (S.push(f.startInlineScript), Jr(S, c), S.push(">", `addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`, "<\/script>")) : S.unshift(f.startInlineScript, ">", `addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`, "<\/script>")
        }
    }

    function Ra(c, f) {
        c.push(It("link"));
        for (var b in f)
            if (De.call(f, b)) {
                var S = f[b];
                if (S != null) switch (b) {
                    case "children":
                    case "dangerouslySetInnerHTML":
                        throw Error(i(399, "link"));
                    default:
                        ot(c, b, S)
                }
            } return c.push("/>"), null
    }
    var Us = /(<\/|<)(s)(tyle)/gi;

    function Kc(c, f, b, S) {
        return "" + f + (b === "s" ? "\\73 " : "\\53 ") + S
    }

    function lr(c, f, b) {
        c.push(It(b));
        for (var S in f)
            if (De.call(f, S)) {
                var E = f[S];
                if (E != null) switch (S) {
                    case "children":
                    case "dangerouslySetInnerHTML":
                        throw Error(i(399, b));
                    default:
                        ot(c, S, E)
                }
            } return c.push("/>"), null
    }

    function ni(c, f) {
        c.push(It("title"));
        var b = null,
            S = null,
            E;
        for (E in f)
            if (De.call(f, E)) {
                var D = f[E];
                if (D != null) switch (E) {
                    case "children":
                        b = D;
                        break;
                    case "dangerouslySetInnerHTML":
                        S = D;
                        break;
                    default:
                        ot(c, E, D)
                }
            } return c.push(">"), f = Array.isArray(b) ? 2 > b.length ? b[0] : null : b, typeof f != "function" && typeof f != "symbol" && f !== null && f !== void 0 && c.push(P("" + f)), mn(c, S, b), c.push(In("title")), null
    }

    function pa(c, f) {
        c.push(It("script"));
        var b = null,
            S = null,
            E;
        for (E in f)
            if (De.call(f, E)) {
                var D = f[E];
                if (D != null) switch (E) {
                    case "children":
                        b = D;
                        break;
                    case "dangerouslySetInnerHTML":
                        S = D;
                        break;
                    default:
                        ot(c, E, D)
                }
            } return c.push(">"), mn(c, S, b), typeof b == "string" && c.push(("" + b).replace(er, Cl)), c.push(In("script")), null
    }

    function ol(c, f, b) {
        c.push(It(b));
        var S = b = null,
            E;
        for (E in f)
            if (De.call(f, E)) {
                var D = f[E];
                if (D != null) switch (E) {
                    case "children":
                        b = D;
                        break;
                    case "dangerouslySetInnerHTML":
                        S = D;
                        break;
                    default:
                        ot(c, E, D)
                }
            } return c.push(">"), mn(c, S, b), b
    }

    function Fa(c, f, b) {
        c.push(It(b));
        var S = b = null,
            E;
        for (E in f)
            if (De.call(f, E)) {
                var D = f[E];
                if (D != null) switch (E) {
                    case "children":
                        b = D;
                        break;
                    case "dangerouslySetInnerHTML":
                        S = D;
                        break;
                    default:
                        ot(c, E, D)
                }
            } return c.push(">"), mn(c, S, b), typeof b == "string" ? (c.push(P(b)), null) : b
    }
    var Bs = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,
        qc = new Map;

    function It(c) {
        var f = qc.get(c);
        if (f === void 0) {
            if (!Bs.test(c)) throw Error(i(65, c));
            f = "<" + c, qc.set(c, f)
        }
        return f
    }

    function oa(c, f, b, S, E, D, U, ee, Y) {
        switch (f) {
            case "div":
            case "span":
            case "svg":
            case "path":
                break;
            case "a":
                c.push(It("a"));
                var te = null,
                    ue = null,
                    ie;
                for (ie in b)
                    if (De.call(b, ie)) {
                        var be = b[ie];
                        if (be != null) switch (ie) {
                            case "children":
                                te = be;
                                break;
                            case "dangerouslySetInnerHTML":
                                ue = be;
                                break;
                            case "href":
                                be === "" ? ma(c, "href", "") : ot(c, ie, be);
                                break;
                            default:
                                ot(c, ie, be)
                        }
                    } if (c.push(">"), mn(c, ue, te), typeof te == "string") {
                        c.push(P(te));
                        var we = null
                    } else we = te;
                return we;
            case "g":
            case "p":
            case "li":
                break;
            case "select":
                c.push(It("select"));
                var Pe = null,
                    He = null,
                    Ue;
                for (Ue in b)
                    if (De.call(b, Ue)) {
                        var Le = b[Ue];
                        if (Le != null) switch (Ue) {
                            case "children":
                                Pe = Le;
                                break;
                            case "dangerouslySetInnerHTML":
                                He = Le;
                                break;
                            case "defaultValue":
                            case "value":
                                break;
                            default:
                                ot(c, Ue, Le)
                        }
                    } return c.push(">"), mn(c, He, Pe), Pe;
            case "option":
                var Ve = ee.selectedValue;
                c.push(It("option"));
                var xt = null,
                    Gt = null,
                    qe = null,
                    $e = null,
                    lt;
                for (lt in b)
                    if (De.call(b, lt)) {
                        var zt = b[lt];
                        if (zt != null) switch (lt) {
                            case "children":
                                xt = zt;
                                break;
                            case "selected":
                                qe = zt;
                                break;
                            case "dangerouslySetInnerHTML":
                                $e = zt;
                                break;
                            case "value":
                                Gt = zt;
                            default:
                                ot(c, lt, zt)
                        }
                    } if (Ve != null) {
                        var tt = Gt !== null ? "" + Gt : Io(xt);
                        if (xe(Ve)) {
                            for (var aa = 0; aa < Ve.length; aa++)
                                if ("" + Ve[aa] === tt) {
                                    c.push(' selected=""');
                                    break
                                }
                        } else "" + Ve === tt && c.push(' selected=""')
                    } else qe && c.push(' selected=""');
                return c.push(">"), mn(c, $e, xt), xt;
            case "textarea":
                c.push(It("textarea"));
                var pt = null,
                    Qt = null,
                    Bt = null,
                    jt;
                for (jt in b)
                    if (De.call(b, jt)) {
                        var Xa = b[jt];
                        if (Xa != null) switch (jt) {
                            case "children":
                                Bt = Xa;
                                break;
                            case "value":
                                pt = Xa;
                                break;
                            case "defaultValue":
                                Qt = Xa;
                                break;
                            case "dangerouslySetInnerHTML":
                                throw Error(i(91));
                            default:
                                ot(c, jt, Xa)
                        }
                    } if (pt === null && Qt !== null && (pt = Qt), c.push(">"), Bt != null) {
                        if (pt != null) throw Error(i(92));
                        if (xe(Bt)) {
                            if (1 < Bt.length) throw Error(i(93));
                            pt = "" + Bt[0]
                        }
                        pt = "" + Bt
                    }
                return typeof pt == "string" && pt[0] === `
` && c.push(`
`), pt !== null && c.push(P("" + pt)), null;
            case "input":
                c.push(It("input"));
                var Gl = null,
                    xn = null,
                    Va = null,
                    Kn = null,
                    na = null,
                    nn = null,
                    ln = null,
                    Jt = null,
                    ua = null,
                    rn;
                for (rn in b)
                    if (De.call(b, rn)) {
                        var At = b[rn];
                        if (At != null) switch (rn) {
                            case "children":
                            case "dangerouslySetInnerHTML":
                                throw Error(i(399, "input"));
                            case "name":
                                Gl = At;
                                break;
                            case "formAction":
                                xn = At;
                                break;
                            case "formEncType":
                                Va = At;
                                break;
                            case "formMethod":
                                Kn = At;
                                break;
                            case "formTarget":
                                na = At;
                                break;
                            case "defaultChecked":
                                ua = At;
                                break;
                            case "defaultValue":
                                ln = At;
                                break;
                            case "checked":
                                Jt = At;
                                break;
                            case "value":
                                nn = At;
                                break;
                            default:
                                ot(c, rn, At)
                        }
                    } var Ia = gn(c, S, E, xn, Va, Kn, na, Gl);
                return Jt !== null ? Tl(c, "checked", Jt) : ua !== null && Tl(c, "checked", ua), nn !== null ? ot(c, "value", nn) : ln !== null && ot(c, "value", ln), c.push("/>"), Ia?.forEach(En, c), null;
            case "button":
                c.push(It("button"));
                var An = null,
                    cc = null,
                    us = null,
                    oc = null,
                    uc = null,
                    la = null,
                    Dt = null,
                    Qe;
                for (Qe in b)
                    if (De.call(b, Qe)) {
                        var ja = b[Qe];
                        if (ja != null) switch (Qe) {
                            case "children":
                                An = ja;
                                break;
                            case "dangerouslySetInnerHTML":
                                cc = ja;
                                break;
                            case "name":
                                us = ja;
                                break;
                            case "formAction":
                                oc = ja;
                                break;
                            case "formEncType":
                                uc = ja;
                                break;
                            case "formMethod":
                                la = ja;
                                break;
                            case "formTarget":
                                Dt = ja;
                                break;
                            default:
                                ot(c, Qe, ja)
                        }
                    } var Na = gn(c, S, E, oc, uc, la, Dt, us);
                if (c.push(">"), Na?.forEach(En, c), mn(c, cc, An), typeof An == "string") {
                    c.push(P(An));
                    var Nr = null
                } else Nr = An;
                return Nr;
            case "form":
                c.push(It("form"));
                var sn = null,
                    dc = null,
                    Rn = null,
                    hl = null,
                    Hn = null,
                    hi = null,
                    Yl;
                for (Yl in b)
                    if (De.call(b, Yl)) {
                        var qn = b[Yl];
                        if (qn != null) switch (Yl) {
                            case "children":
                                sn = qn;
                                break;
                            case "dangerouslySetInnerHTML":
                                dc = qn;
                                break;
                            case "action":
                                Rn = qn;
                                break;
                            case "encType":
                                hl = qn;
                                break;
                            case "method":
                                Hn = qn;
                                break;
                            case "target":
                                hi = qn;
                                break;
                            default:
                                ot(c, Yl, qn)
                        }
                    } var Xl = null,
                        Rt = null;
                if (typeof Rn == "function") {
                    var cn = yi(S, Rn);
                    cn !== null ? (Rn = cn.action || "", hl = cn.encType, Hn = cn.method, hi = cn.target, Xl = cn.data, Rt = cn.name) : (c.push(" ", "action", '="', Ls, '"'), hi = Hn = hl = Rn = null, nr(S, E))
                }
                if (Rn != null && ot(c, "action", Rn), hl != null && ot(c, "encType", hl), Hn != null && ot(c, "method", Hn), hi != null && ot(c, "target", hi), c.push(">"), Rt !== null && (c.push('<input type="hidden"'), ma(c, "name", Rt), c.push("/>"), Xl?.forEach(En, c)), mn(c, dc, sn), typeof sn == "string") {
                    c.push(P(sn));
                    var pn = null
                } else pn = sn;
                return pn;
            case "menuitem":
                c.push(It("menuitem"));
                for (var gl in b)
                    if (De.call(b, gl)) {
                        var Tr = b[gl];
                        if (Tr != null) switch (gl) {
                            case "children":
                            case "dangerouslySetInnerHTML":
                                throw Error(i(400));
                            default:
                                ot(c, gl, Tr)
                        }
                    } return c.push(">"), null;
            case "object":
                c.push(It("object"));
                var Da = null,
                    $n = null,
                    _n;
                for (_n in b)
                    if (De.call(b, _n)) {
                        var Ct = b[_n];
                        if (Ct != null) switch (_n) {
                            case "children":
                                Da = Ct;
                                break;
                            case "dangerouslySetInnerHTML":
                                $n = Ct;
                                break;
                            case "data":
                                var da = ae("" + Ct);
                                if (da === "") break;
                                c.push(" ", "data", '="', P(da), '"');
                                break;
                            default:
                                ot(c, _n, Ct)
                        }
                    } if (c.push(">"), mn(c, $n, Da), typeof Da == "string") {
                        c.push(P(Da));
                        var Hi = null
                    } else Hi = Da;
                return Hi;
            case "title":
                var Za = ee.tagScope & 1,
                    oo = ee.tagScope & 4;
                if (ee.insertionMode === 4 || Za || b.itemProp != null) var ds = ni(c, b);
                else oo ? ds = null : (ni(E.hoistableChunks, b), ds = void 0);
                return ds;
            case "link":
                var Yt = ee.tagScope & 1,
                    fc = ee.tagScope & 4,
                    Er = b.rel,
                    On = b.href,
                    Vl = b.precedence;
                if (ee.insertionMode === 4 || Yt || b.itemProp != null || typeof Er != "string" || typeof On != "string" || On === "") {
                    Ra(c, b);
                    var zn = null
                } else if (b.rel === "stylesheet")
                    if (typeof Vl != "string" || b.disabled != null || b.onLoad || b.onError) zn = Ra(c, b);
                    else {
                        var Kt = E.styles.get(Vl),
                            Mr = S.styleResources.hasOwnProperty(On) ? S.styleResources[On] : void 0;
                        if (Mr !== null) {
                            S.styleResources[On] = null, Kt || (Kt = {
                                precedence: P(Vl),
                                rules: [],
                                hrefs: [],
                                sheets: new Map
                            }, E.styles.set(Vl, Kt));
                            var Fi = {
                                state: 0,
                                props: _e({}, b, {
                                    "data-precedence": b.precedence,
                                    precedence: null
                                })
                            };
                            if (Mr) {
                                Mr.length === 2 && or(Fi.props, Mr);
                                var hc = E.preloads.stylesheets.get(On);
                                hc && 0 < hc.length ? hc.length = 0 : Fi.state = 1
                            }
                            Kt.sheets.set(On, Fi), U && U.stylesheets.add(Fi)
                        } else if (Kt) {
                            var fs = Kt.sheets.get(On);
                            fs && U && U.stylesheets.add(fs)
                        }
                        Y && c.push("<!-- -->"), zn = null
                    }
                else b.onLoad || b.onError ? zn = Ra(c, b) : (Y && c.push("<!-- -->"), zn = fc ? null : Ra(E.hoistableChunks, b));
                return zn;
            case "script":
                var Il = ee.tagScope & 1,
                    Ar = b.async;
                if (typeof b.src != "string" || !b.src || !Ar || typeof Ar == "function" || typeof Ar == "symbol" || b.onLoad || b.onError || ee.insertionMode === 4 || Il || b.itemProp != null) var Rr = pa(c, b);
                else {
                    var qt = b.src;
                    if (b.type === "module") var Zl = S.moduleScriptResources,
                        gi = E.preloads.moduleScripts;
                    else Zl = S.scriptResources, gi = E.preloads.scripts;
                    var Ql = Zl.hasOwnProperty(qt) ? Zl[qt] : void 0;
                    if (Ql !== null) {
                        Zl[qt] = null;
                        var mi = b;
                        if (Ql) {
                            Ql.length === 2 && (mi = _e({}, b), or(mi, Ql));
                            var hs = gi.get(qt);
                            hs && (hs.length = 0)
                        }
                        var _r = [];
                        E.scripts.add(_r), pa(_r, mi)
                    }
                    Y && c.push("<!-- -->"), Rr = null
                }
                return Rr;
            case "style":
                var el = ee.tagScope & 1,
                    on = b.precedence,
                    yn = b.href,
                    gc = b.nonce;
                if (ee.insertionMode === 4 || el || b.itemProp != null || typeof on != "string" || typeof yn != "string" || yn === "") {
                    c.push(It("style"));
                    var jn = null,
                        Gi = null,
                        Fn;
                    for (Fn in b)
                        if (De.call(b, Fn)) {
                            var tl = b[Fn];
                            if (tl != null) switch (Fn) {
                                case "children":
                                    jn = tl;
                                    break;
                                case "dangerouslySetInnerHTML":
                                    Gi = tl;
                                    break;
                                default:
                                    ot(c, Fn, tl)
                            }
                        } c.push(">");
                    var Gn = Array.isArray(jn) ? 2 > jn.length ? jn[0] : null : jn;
                    typeof Gn != "function" && typeof Gn != "symbol" && Gn !== null && Gn !== void 0 && c.push(("" + Gn).replace(Us, Kc)), mn(c, Gi, jn), c.push(In("style"));
                    var Yi = null
                } else {
                    var un = E.styles.get(on);
                    if ((S.styleResources.hasOwnProperty(yn) ? S.styleResources[yn] : void 0) !== null) {
                        S.styleResources[yn] = null, un || (un = {
                            precedence: P(on),
                            rules: [],
                            hrefs: [],
                            sheets: new Map
                        }, E.styles.set(on, un));
                        var mc = E.nonce.style;
                        if (!mc || mc === gc) {
                            un.hrefs.push(P(yn));
                            var ml = un.rules,
                                al = null,
                                Xi = null,
                                Sn;
                            for (Sn in b)
                                if (De.call(b, Sn)) {
                                    var Qa = b[Sn];
                                    if (Qa != null) switch (Sn) {
                                        case "children":
                                            al = Qa;
                                            break;
                                        case "dangerouslySetInnerHTML":
                                            Xi = Qa
                                    }
                                } var Yn = Array.isArray(al) ? 2 > al.length ? al[0] : null : al;
                            typeof Yn != "function" && typeof Yn != "symbol" && Yn !== null && Yn !== void 0 && ml.push(("" + Yn).replace(Us, Kc)), mn(ml, Xi, al)
                        }
                    }
                    un && U && U.styles.add(un), Y && c.push("<!-- -->"), Yi = void 0
                }
                return Yi;
            case "meta":
                var wn = ee.tagScope & 1,
                    Or = ee.tagScope & 4;
                if (ee.insertionMode === 4 || wn || b.itemProp != null) var Vi = lr(c, b, "meta");
                else Y && c.push("<!-- -->"), Vi = Or ? null : typeof b.charSet == "string" ? lr(E.charsetChunks, b, "meta") : b.name === "viewport" ? lr(E.viewportChunks, b, "meta") : lr(E.hoistableChunks, b, "meta");
                return Vi;
            case "listing":
            case "pre":
                c.push(It(f));
                var vl = null,
                    r = null,
                    o;
                for (o in b)
                    if (De.call(b, o)) {
                        var v = b[o];
                        if (v != null) switch (o) {
                            case "children":
                                vl = v;
                                break;
                            case "dangerouslySetInnerHTML":
                                r = v;
                                break;
                            default:
                                ot(c, o, v)
                        }
                    } if (c.push(">"), r != null) {
                        if (vl != null) throw Error(i(60));
                        if (typeof r != "object" || !("__html" in r)) throw Error(i(61));
                        var y = r.__html;
                        y != null && (typeof y == "string" && 0 < y.length && y[0] === `
` ? c.push(`
`, y) : c.push("" + y))
                    }
                return typeof vl == "string" && vl[0] === `
` && c.push(`
`), vl;
            case "img":
                var C = ee.tagScope & 3,
                    _ = b.src,
                    k = b.srcSet;
                if (!(b.loading === "lazy" || !_ && !k || typeof _ != "string" && _ != null || typeof k != "string" && k != null || b.fetchPriority === "low" || C) && (typeof _ != "string" || _[4] !== ":" || _[0] !== "d" && _[0] !== "D" || _[1] !== "a" && _[1] !== "A" || _[2] !== "t" && _[2] !== "T" || _[3] !== "a" && _[3] !== "A") && (typeof k != "string" || k[4] !== ":" || k[0] !== "d" && k[0] !== "D" || k[1] !== "a" && k[1] !== "A" || k[2] !== "t" && k[2] !== "T" || k[3] !== "a" && k[3] !== "A")) {
                    U !== null && ee.tagScope & 64 && (U.suspenseyImages = !0);
                    var V = typeof b.sizes == "string" ? b.sizes : void 0,
                        H = k ? k + `
` + (V || "") : _,
                        I = E.preloads.images,
                        q = I.get(H);
                    if (q) (b.fetchPriority === "high" || 10 > E.highImagePreloads.size) && (I.delete(H), E.highImagePreloads.add(q));
                    else if (!S.imageResources.hasOwnProperty(H)) {
                        S.imageResources[H] = ga;
                        var ne = b.crossOrigin,
                            ge = typeof ne == "string" ? ne === "use-credentials" ? ne : "" : void 0,
                            me = E.headers,
                            Ae;
                        me && 0 < me.remainingCapacity && typeof b.srcSet != "string" && (b.fetchPriority === "high" || 500 > me.highImagePreloads.length) && (Ae = Ut(_, "image", {
                            imageSrcSet: b.srcSet,
                            imageSizes: b.sizes,
                            crossOrigin: ge,
                            integrity: b.integrity,
                            nonce: b.nonce,
                            type: b.type,
                            fetchPriority: b.fetchPriority,
                            referrerPolicy: b.refererPolicy
                        }), 0 <= (me.remainingCapacity -= Ae.length + 2)) ? (E.resets.image[H] = ga, me.highImagePreloads && (me.highImagePreloads += ", "), me.highImagePreloads += Ae) : (q = [], Ra(q, {
                            rel: "preload",
                            as: "image",
                            href: k ? void 0 : _,
                            imageSrcSet: k,
                            imageSizes: V,
                            crossOrigin: ge,
                            integrity: b.integrity,
                            type: b.type,
                            fetchPriority: b.fetchPriority,
                            referrerPolicy: b.referrerPolicy
                        }), b.fetchPriority === "high" || 10 > E.highImagePreloads.size ? E.highImagePreloads.add(q) : (E.bulkPreloads.add(q), I.set(H, q)))
                    }
                }
                return lr(c, b, "img");
            case "base":
            case "area":
            case "br":
            case "col":
            case "embed":
            case "hr":
            case "keygen":
            case "param":
            case "source":
            case "track":
            case "wbr":
                return lr(c, b, f);
            case "annotation-xml":
            case "color-profile":
            case "font-face":
            case "font-face-src":
            case "font-face-uri":
            case "font-face-format":
            case "font-face-name":
            case "missing-glyph":
                break;
            case "head":
                if (2 > ee.insertionMode) {
                    var Ie = D || E.preamble;
                    if (Ie.headChunks) throw Error(i(545, "`<head>`"));
                    D !== null && c.push("<!--head-->"), Ie.headChunks = [];
                    var Be = ol(Ie.headChunks, b, "head")
                } else Be = Fa(c, b, "head");
                return Be;
            case "body":
                if (2 > ee.insertionMode) {
                    var ye = D || E.preamble;
                    if (ye.bodyChunks) throw Error(i(545, "`<body>`"));
                    D !== null && c.push("<!--body-->"), ye.bodyChunks = [];
                    var Re = ol(ye.bodyChunks, b, "body")
                } else Re = Fa(c, b, "body");
                return Re;
            case "html":
                if (ee.insertionMode === 0) {
                    var et = D || E.preamble;
                    if (et.htmlChunks) throw Error(i(545, "`<html>`"));
                    D !== null && c.push("<!--html-->"), et.htmlChunks = [""];
                    var ka = ol(et.htmlChunks, b, "html")
                } else ka = Fa(c, b, "html");
                return ka;
            default:
                if (f.indexOf("-") !== -1) {
                    c.push(It(f));
                    var La = null,
                        ze = null,
                        xa;
                    for (xa in b)
                        if (De.call(b, xa)) {
                            var kt = b[xa];
                            if (kt != null) {
                                var fa = xa;
                                switch (xa) {
                                    case "children":
                                        La = kt;
                                        break;
                                    case "dangerouslySetInnerHTML":
                                        ze = kt;
                                        break;
                                    case "style":
                                        ar(c, kt);
                                        break;
                                    case "suppressContentEditableWarning":
                                    case "suppressHydrationWarning":
                                    case "ref":
                                        break;
                                    case "className":
                                        fa = "class";
                                    default:
                                        if (Oe(xa) && typeof kt != "function" && typeof kt != "symbol" && kt !== !1) {
                                            if (kt === !0) kt = "";
                                            else if (typeof kt == "object") continue;
                                            c.push(" ", fa, '="', P(kt), '"')
                                        }
                                }
                            }
                        } return c.push(">"), mn(c, ze, La), La
                }
        }
        return Fa(c, b, f)
    }
    var ir = new Map;

    function In(c) {
        var f = ir.get(c);
        return f === void 0 && (f = "</" + c + ">", ir.set(c, f)), f
    }

    function El(c, f) {
        c = c.preamble, c.htmlChunks === null && f.htmlChunks && (c.htmlChunks = f.htmlChunks), c.headChunks === null && f.headChunks && (c.headChunks = f.headChunks), c.bodyChunks === null && f.bodyChunks && (c.bodyChunks = f.bodyChunks)
    }

    function Si(c, f) {
        f = f.bootstrapChunks;
        for (var b = 0; b < f.length - 1; b++) c.push(f[b]);
        return b < f.length ? (b = f[b], f.length = 0, c.push(b)) : !0
    }

    function Ml(c, f, b) {
        if (c.push('<!--$?--><template id="'), b === null) throw Error(i(395));
        return c.push(f.boundaryPrefix), f = b.toString(16), c.push(f), c.push('"></template>')
    }

    function Zn(c, f, b, S) {
        switch (b.insertionMode) {
            case 0:
            case 1:
            case 3:
            case 2:
                return c.push('<div hidden id="'), c.push(f.segmentPrefix), f = S.toString(16), c.push(f), c.push('">');
            case 4:
                return c.push('<svg aria-hidden="true" style="display:none" id="'), c.push(f.segmentPrefix), f = S.toString(16), c.push(f), c.push('">');
            case 5:
                return c.push('<math aria-hidden="true" style="display:none" id="'), c.push(f.segmentPrefix), f = S.toString(16), c.push(f), c.push('">');
            case 6:
                return c.push('<table hidden id="'), c.push(f.segmentPrefix), f = S.toString(16), c.push(f), c.push('">');
            case 7:
                return c.push('<table hidden><tbody id="'), c.push(f.segmentPrefix), f = S.toString(16), c.push(f), c.push('">');
            case 8:
                return c.push('<table hidden><tr id="'), c.push(f.segmentPrefix), f = S.toString(16), c.push(f), c.push('">');
            case 9:
                return c.push('<table hidden><colgroup id="'), c.push(f.segmentPrefix), f = S.toString(16), c.push(f), c.push('">');
            default:
                throw Error(i(397))
        }
    }

    function $c(c, f) {
        switch (f.insertionMode) {
            case 0:
            case 1:
            case 3:
            case 2:
                return c.push("</div>");
            case 4:
                return c.push("</svg>");
            case 5:
                return c.push("</math>");
            case 6:
                return c.push("</table>");
            case 7:
                return c.push("</tbody></table>");
            case 8:
                return c.push("</tr></table>");
            case 9:
                return c.push("</colgroup></table>");
            default:
                throw Error(i(397))
        }
    }
    var Hs = /[<\u2028\u2029]/g;

    function Pr(c) {
        return JSON.stringify(c).replace(Hs, function (f) {
            switch (f) {
                case "<":
                    return "\\u003c";
                case "\u2028":
                    return "\\u2028";
                case "\u2029":
                    return "\\u2029";
                default:
                    throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")
            }
        })
    }
    var Zo = /[&><\u2028\u2029]/g;

    function rr(c) {
        return JSON.stringify(c).replace(Zo, function (f) {
            switch (f) {
                case "&":
                    return "\\u0026";
                case ">":
                    return "\\u003e";
                case "<":
                    return "\\u003c";
                case "\u2028":
                    return "\\u2028";
                case "\u2029":
                    return "\\u2029";
                default:
                    throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")
            }
        })
    }
    var sr = !1,
        ya = !0;

    function vn(c) {
        var f = c.rules,
            b = c.hrefs,
            S = 0;
        if (b.length) {
            for (this.push(cl.startInlineStyle), this.push(' media="not all" data-precedence="'), this.push(c.precedence), this.push('" data-href="'); S < b.length - 1; S++) this.push(b[S]), this.push(" ");
            for (this.push(b[S]), this.push('">'), S = 0; S < f.length; S++) this.push(f[S]);
            ya = this.push("</style>"), sr = !0, f.length = 0, b.length = 0
        }
    }

    function Lt(c) {
        return c.state !== 2 ? sr = !0 : !1
    }

    function Wr(c, f, b) {
        return sr = !1, ya = !0, cl = b, f.styles.forEach(vn, c), cl = null, f.stylesheets.forEach(Lt), sr && (b.stylesToHoist = !0), ya
    }

    function bn(c) {
        for (var f = 0; f < c.length; f++) this.push(c[f]);
        c.length = 0
    }
    var vt = [];

    function Sa(c) {
        Ra(vt, c.props);
        for (var f = 0; f < vt.length; f++) this.push(vt[f]);
        vt.length = 0, c.state = 2
    }

    function qa(c) {
        var f = 0 < c.sheets.size;
        c.sheets.forEach(Sa, this), c.sheets.clear();
        var b = c.rules,
            S = c.hrefs;
        if (!f || S.length) {
            if (this.push(cl.startInlineStyle), this.push(' data-precedence="'), this.push(c.precedence), c = 0, S.length) {
                for (this.push('" data-href="'); c < S.length - 1; c++) this.push(S[c]), this.push(" ");
                this.push(S[c])
            }
            for (this.push('">'), c = 0; c < b.length; c++) this.push(b[c]);
            this.push("</style>"), b.length = 0, S.length = 0
        }
    }

    function li(c) {
        if (c.state === 0) {
            c.state = 1;
            var f = c.props;
            for (Ra(vt, {
                rel: "preload",
                as: "style",
                href: c.props.href,
                crossOrigin: f.crossOrigin,
                fetchPriority: f.fetchPriority,
                integrity: f.integrity,
                media: f.media,
                hrefLang: f.hrefLang,
                referrerPolicy: f.referrerPolicy
            }), c = 0; c < vt.length; c++) this.push(vt[c]);
            vt.length = 0
        }
    }

    function Fs(c) {
        c.sheets.forEach(li, this), c.sheets.clear()
    }

    function Jr(c, f) {
        (f.instructions & 32) === 0 && (f.instructions |= 32, c.push(' id="', P("_" + f.idPrefix + "R_"), '"'))
    }

    function Qo(c, f) {
        c.push("[");
        var b = "[";
        f.stylesheets.forEach(function (S) {
            if (S.state !== 2)
                if (S.state === 3) c.push(b), S = rr("" + S.props.href), c.push(S), c.push("]"), b = ",[";
                else {
                    c.push(b);
                    var E = S.props["data-precedence"],
                        D = S.props,
                        U = ae("" + S.props.href);
                    U = rr(U), c.push(U), E = "" + E, c.push(","), E = rr(E), c.push(E);
                    for (var ee in D)
                        if (De.call(D, ee) && (E = D[ee], E != null)) switch (ee) {
                            case "href":
                            case "rel":
                            case "precedence":
                            case "data-precedence":
                                break;
                            case "children":
                            case "dangerouslySetInnerHTML":
                                throw Error(i(399, "link"));
                            default:
                                bt(c, ee, E)
                        }
                    c.push("]"), b = ",[", S.state = 3
                }
        }), c.push("]")
    }

    function bt(c, f, b) {
        var S = f.toLowerCase();
        switch (typeof b) {
            case "function":
            case "symbol":
                return
        }
        switch (f) {
            case "innerHTML":
            case "dangerouslySetInnerHTML":
            case "suppressContentEditableWarning":
            case "suppressHydrationWarning":
            case "style":
            case "ref":
                return;
            case "className":
                S = "class", f = "" + b;
                break;
            case "hidden":
                if (b === !1) return;
                f = "";
                break;
            case "src":
            case "href":
                b = ae(b), f = "" + b;
                break;
            default:
                if (2 < f.length && (f[0] === "o" || f[0] === "O") && (f[1] === "n" || f[1] === "N") || !Oe(f)) return;
                f = "" + b
        }
        c.push(","), S = rr(S), c.push(S), c.push(","), S = rr(f), c.push(S)
    }

    function St() {
        return {
            styles: new Set,
            stylesheets: new Set,
            suspenseyImages: !1
        }
    }

    function wi(c) {
        var f = Oa || null;
        if (f) {
            var b = f.resumableState,
                S = f.renderState;
            if (typeof c == "string" && c) {
                if (!b.dnsResources.hasOwnProperty(c)) {
                    b.dnsResources[c] = null, b = S.headers;
                    var E, D;
                    (D = b && 0 < b.remainingCapacity) && (D = (E = "<" + ("" + c).replace(Al, Gs) + ">; rel=dns-prefetch", 0 <= (b.remainingCapacity -= E.length + 2))), D ? (S.resets.dns[c] = null, b.preconnects && (b.preconnects += ", "), b.preconnects += E) : (E = [], Ra(E, {
                        href: c,
                        rel: "dns-prefetch"
                    }), S.preconnects.add(E))
                }
                Jn(f)
            }
        } else Ze.D(c)
    }

    function wa(c, f) {
        var b = Oa || null;
        if (b) {
            var S = b.resumableState,
                E = b.renderState;
            if (typeof c == "string" && c) {
                var D = f === "use-credentials" ? "credentials" : typeof f == "string" ? "anonymous" : "default";
                if (!S.connectResources[D].hasOwnProperty(c)) {
                    S.connectResources[D][c] = null, S = E.headers;
                    var U, ee;
                    if (ee = S && 0 < S.remainingCapacity) {
                        if (ee = "<" + ("" + c).replace(Al, Gs) + ">; rel=preconnect", typeof f == "string") {
                            var Y = ("" + f).replace(Rl, Kr);
                            ee += '; crossorigin="' + Y + '"'
                        }
                        ee = (U = ee, 0 <= (S.remainingCapacity -= U.length + 2))
                    }
                    ee ? (E.resets.connect[D][c] = null, S.preconnects && (S.preconnects += ", "), S.preconnects += U) : (D = [], Ra(D, {
                        rel: "preconnect",
                        href: c,
                        crossOrigin: f
                    }), E.preconnects.add(D))
                }
                Jn(b)
            }
        } else Ze.C(c, f)
    }

    function cr(c, f, b) {
        var S = Oa || null;
        if (S) {
            var E = S.resumableState,
                D = S.renderState;
            if (f && c) {
                switch (f) {
                    case "image":
                        if (b) var U = b.imageSrcSet,
                            ee = b.imageSizes,
                            Y = b.fetchPriority;
                        var te = U ? U + `
` + (ee || "") : c;
                        if (E.imageResources.hasOwnProperty(te)) return;
                        E.imageResources[te] = ga, E = D.headers;
                        var ue;
                        E && 0 < E.remainingCapacity && typeof U != "string" && Y === "high" && (ue = Ut(c, f, b), 0 <= (E.remainingCapacity -= ue.length + 2)) ? (D.resets.image[te] = ga, E.highImagePreloads && (E.highImagePreloads += ", "), E.highImagePreloads += ue) : (E = [], Ra(E, _e({
                            rel: "preload",
                            href: U ? void 0 : c,
                            as: f
                        }, b)), Y === "high" ? D.highImagePreloads.add(E) : (D.bulkPreloads.add(E), D.preloads.images.set(te, E)));
                        break;
                    case "style":
                        if (E.styleResources.hasOwnProperty(c)) return;
                        U = [], Ra(U, _e({
                            rel: "preload",
                            href: c,
                            as: f
                        }, b)), E.styleResources[c] = !b || typeof b.crossOrigin != "string" && typeof b.integrity != "string" ? ga : [b.crossOrigin, b.integrity], D.preloads.stylesheets.set(c, U), D.bulkPreloads.add(U);
                        break;
                    case "script":
                        if (E.scriptResources.hasOwnProperty(c)) return;
                        U = [], D.preloads.scripts.set(c, U), D.bulkPreloads.add(U), Ra(U, _e({
                            rel: "preload",
                            href: c,
                            as: f
                        }, b)), E.scriptResources[c] = !b || typeof b.crossOrigin != "string" && typeof b.integrity != "string" ? ga : [b.crossOrigin, b.integrity];
                        break;
                    default:
                        if (E.unknownResources.hasOwnProperty(f)) {
                            if (U = E.unknownResources[f], U.hasOwnProperty(c)) return
                        } else U = {}, E.unknownResources[f] = U;
                        U[c] = ga, (E = D.headers) && 0 < E.remainingCapacity && f === "font" && (te = Ut(c, f, b), 0 <= (E.remainingCapacity -= te.length + 2)) ? (D.resets.font[c] = ga, E.fontPreloads && (E.fontPreloads += ", "), E.fontPreloads += te) : (E = [], c = _e({
                            rel: "preload",
                            href: c,
                            as: f
                        }, b), Ra(E, c), f) === "font" ? D.fontPreloads.add(E) : D.bulkPreloads.add(E)
                }
                Jn(S)
            }
        } else Ze.L(c, f, b)
    }

    function Ci(c, f) {
        var b = Oa || null;
        if (b) {
            var S = b.resumableState,
                E = b.renderState;
            if (c) {
                var D = f && typeof f.as == "string" ? f.as : "script";
                switch (D) {
                    case "script":
                        if (S.moduleScriptResources.hasOwnProperty(c)) return;
                        D = [], S.moduleScriptResources[c] = !f || typeof f.crossOrigin != "string" && typeof f.integrity != "string" ? ga : [f.crossOrigin, f.integrity], E.preloads.moduleScripts.set(c, D);
                        break;
                    default:
                        if (S.moduleUnknownResources.hasOwnProperty(D)) {
                            var U = S.unknownResources[D];
                            if (U.hasOwnProperty(c)) return
                        } else U = {}, S.moduleUnknownResources[D] = U;
                        D = [], U[c] = ga
                }
                Ra(D, _e({
                    rel: "modulepreload",
                    href: c
                }, f)), E.bulkPreloads.add(D), Jn(b)
            }
        } else Ze.m(c, f)
    }

    function Ni(c, f, b) {
        var S = Oa || null;
        if (S) {
            var E = S.resumableState,
                D = S.renderState;
            if (c) {
                f = f || "default";
                var U = D.styles.get(f),
                    ee = E.styleResources.hasOwnProperty(c) ? E.styleResources[c] : void 0;
                ee !== null && (E.styleResources[c] = null, U || (U = {
                    precedence: P(f),
                    rules: [],
                    hrefs: [],
                    sheets: new Map
                }, D.styles.set(f, U)), f = {
                    state: 0,
                    props: _e({
                        rel: "stylesheet",
                        href: c,
                        "data-precedence": f
                    }, b)
                }, ee && (ee.length === 2 && or(f.props, ee), (D = D.preloads.stylesheets.get(c)) && 0 < D.length ? D.length = 0 : f.state = 1), U.sheets.set(c, f), Jn(S))
            }
        } else Ze.S(c, f, b)
    }

    function va(c, f) {
        var b = Oa || null;
        if (b) {
            var S = b.resumableState,
                E = b.renderState;
            if (c) {
                var D = S.scriptResources.hasOwnProperty(c) ? S.scriptResources[c] : void 0;
                D !== null && (S.scriptResources[c] = null, f = _e({
                    src: c,
                    async: !0
                }, f), D && (D.length === 2 && or(f, D), c = E.preloads.scripts.get(c)) && (c.length = 0), c = [], E.scripts.add(c), pa(c, f), Jn(b))
            }
        } else Ze.X(c, f)
    }

    function Po(c, f) {
        var b = Oa || null;
        if (b) {
            var S = b.resumableState,
                E = b.renderState;
            if (c) {
                var D = S.moduleScriptResources.hasOwnProperty(c) ? S.moduleScriptResources[c] : void 0;
                D !== null && (S.moduleScriptResources[c] = null, f = _e({
                    src: c,
                    type: "module",
                    async: !0
                }, f), D && (D.length === 2 && or(f, D), c = E.preloads.moduleScripts.get(c)) && (c.length = 0), c = [], E.scripts.add(c), pa(c, f), Jn(b))
            }
        } else Ze.M(c, f)
    }

    function or(c, f) {
        c.crossOrigin == null && (c.crossOrigin = f[0]), c.integrity == null && (c.integrity = f[1])
    }

    function Ut(c, f, b) {
        c = ("" + c).replace(Al, Gs), f = ("" + f).replace(Rl, Kr), f = "<" + c + '>; rel=preload; as="' + f + '"';
        for (var S in b) De.call(b, S) && (c = b[S], typeof c == "string" && (f += "; " + S.toLowerCase() + '="' + ("" + c).replace(Rl, Kr) + '"'));
        return f
    }
    var Al = /[<>\r\n]/g;

    function Gs(c) {
        switch (c) {
            case "<":
                return "%3C";
            case ">":
                return "%3E";
            case `
`:
                return "%0A";
            case "\r":
                return "%0D";
            default:
                throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")
        }
    }
    var Rl = /["';,\r\n]/g;

    function Kr(c) {
        switch (c) {
            case '"':
                return "%22";
            case "'":
                return "%27";
            case ";":
                return "%3B";
            case ",":
                return "%2C";
            case `
`:
                return "%0A";
            case "\r":
                return "%0D";
            default:
                throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")
        }
    }

    function ju(c) {
        this.styles.add(c)
    }

    function Ys(c) {
        this.stylesheets.add(c)
    }

    function _l(c, f) {
        f.styles.forEach(ju, c), f.stylesheets.forEach(Ys, c), f.suspenseyImages && (c.suspenseyImages = !0)
    }

    function Ln(c, f) {
        var b = c.idPrefix,
            S = [],
            E = c.bootstrapScriptContent,
            D = c.bootstrapScripts,
            U = c.bootstrapModules;
        E !== void 0 && (S.push("<script"), Jr(S, c), S.push(">", ("" + E).replace(er, Cl), "<\/script>")), E = b + "P:";
        var ee = b + "S:";
        b += "B:";
        var Y = new Set,
            te = new Set,
            ue = new Set,
            ie = new Map,
            be = new Set,
            we = new Set,
            Pe = new Set,
            He = {
                images: new Map,
                stylesheets: new Map,
                scripts: new Map,
                moduleScripts: new Map
            };
        if (D !== void 0)
            for (var Ue = 0; Ue < D.length; Ue++) {
                var Le = D[Ue],
                    Ve, xt = void 0,
                    Gt = void 0,
                    qe = {
                        rel: "preload",
                        as: "script",
                        fetchPriority: "low",
                        nonce: void 0
                    };
                typeof Le == "string" ? qe.href = Ve = Le : (qe.href = Ve = Le.src, qe.integrity = Gt = typeof Le.integrity == "string" ? Le.integrity : void 0, qe.crossOrigin = xt = typeof Le == "string" || Le.crossOrigin == null ? void 0 : Le.crossOrigin === "use-credentials" ? "use-credentials" : ""), Le = c;
                var $e = Ve;
                Le.scriptResources[$e] = null, Le.moduleScriptResources[$e] = null, Le = [], Ra(Le, qe), be.add(Le), S.push('<script src="', P(Ve), '"'), typeof Gt == "string" && S.push(' integrity="', P(Gt), '"'), typeof xt == "string" && S.push(' crossorigin="', P(xt), '"'), Jr(S, c), S.push(' async=""><\/script>')
            }
        if (U !== void 0)
            for (D = 0; D < U.length; D++) qe = U[D], xt = Ve = void 0, Gt = {
                rel: "modulepreload",
                fetchPriority: "low",
                nonce: void 0
            }, typeof qe == "string" ? Gt.href = Ue = qe : (Gt.href = Ue = qe.src, Gt.integrity = xt = typeof qe.integrity == "string" ? qe.integrity : void 0, Gt.crossOrigin = Ve = typeof qe == "string" || qe.crossOrigin == null ? void 0 : qe.crossOrigin === "use-credentials" ? "use-credentials" : ""), qe = c, Le = Ue, qe.scriptResources[Le] = null, qe.moduleScriptResources[Le] = null, qe = [], Ra(qe, Gt), be.add(qe), S.push('<script type="module" src="', P(Ue), '"'), typeof xt == "string" && S.push(' integrity="', P(xt), '"'), typeof Ve == "string" && S.push(' crossorigin="', P(Ve), '"'), Jr(S, c), S.push(' async=""><\/script>');
        return {
            placeholderPrefix: E,
            segmentPrefix: ee,
            boundaryPrefix: b,
            startInlineScript: "<script",
            startInlineStyle: "<style",
            preamble: {
                htmlChunks: null,
                headChunks: null,
                bodyChunks: null
            },
            externalRuntimeScript: null,
            bootstrapChunks: S,
            importMapChunks: [],
            onHeaders: void 0,
            headers: null,
            resets: {
                font: {},
                dns: {},
                connect: {
                    default: {},
                    anonymous: {},
                    credentials: {}
                },
                image: {},
                style: {}
            },
            charsetChunks: [],
            viewportChunks: [],
            hoistableChunks: [],
            preconnects: Y,
            fontPreloads: te,
            highImagePreloads: ue,
            styles: ie,
            bootstrapScripts: be,
            scripts: we,
            bulkPreloads: Pe,
            preloads: He,
            nonce: {
                script: void 0,
                style: void 0
            },
            stylesToHoist: !1,
            generateStaticMarkup: f
        }
    }

    function $a(c, f, b, S) {
        return b.generateStaticMarkup ? (c.push(P(f)), !1) : (f === "" ? c = S : (S && c.push("<!-- -->"), c.push(P(f)), c = !0), c)
    }

    function Ol(c, f, b, S) {
        f.generateStaticMarkup || b && S && c.push("<!-- -->")
    }
    var eo = Function.prototype.bind,
        to = Symbol.for("react.client.reference");

    function ur(c) {
        if (c == null) return null;
        if (typeof c == "function") return c.$$typeof === to ? null : c.displayName || c.name || null;
        if (typeof c == "string") return c;
        switch (c) {
            case x:
                return "Fragment";
            case w:
                return "Profiler";
            case p:
                return "StrictMode";
            case A:
                return "Suspense";
            case z:
                return "SuspenseList";
            case Z:
                return "Activity"
        }
        if (typeof c == "object") switch (c.$$typeof) {
            case g:
                return "Portal";
            case T:
                return c.displayName || "Context";
            case M:
                return (c._context.displayName || "Context") + ".Consumer";
            case R:
                var f = c.render;
                return c = c.displayName, c || (c = f.displayName || f.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
            case O:
                return f = c.displayName || null, f !== null ? f : ur(c.type) || "Memo";
            case L:
                f = c._payload, c = c._init;
                try {
                    return ur(c(f))
                } catch { }
        }
        return null
    }
    var Zt = {},
        Ti = null;

    function en(c, f) {
        if (c !== f) {
            c.context._currentValue2 = c.parentValue, c = c.parent;
            var b = f.parent;
            if (c === null) {
                if (b !== null) throw Error(i(401))
            } else {
                if (b === null) throw Error(i(401));
                en(c, b)
            }
            f.context._currentValue2 = f.value
        }
    }

    function qr(c) {
        c.context._currentValue2 = c.parentValue, c = c.parent, c !== null && qr(c)
    }

    function zl(c) {
        var f = c.parent;
        f !== null && zl(f), c.context._currentValue2 = c.value
    }

    function $r(c, f) {
        if (c.context._currentValue2 = c.parentValue, c = c.parent, c === null) throw Error(i(402));
        c.depth === f.depth ? en(c, f) : $r(c, f)
    }

    function ii(c, f) {
        var b = f.parent;
        if (b === null) throw Error(i(402));
        c.depth === b.depth ? en(c, b) : ii(c, b), f.context._currentValue2 = f.value
    }

    function jl(c) {
        var f = Ti;
        f !== c && (f === null ? zl(c) : c === null ? qr(f) : f.depth === c.depth ? en(f, c) : f.depth > c.depth ? $r(f, c) : ii(f, c), Ti = c)
    }
    var ao = {
        enqueueSetState: function (c, f) {
            c = c._reactInternals, c.queue !== null && c.queue.push(f)
        },
        enqueueReplaceState: function (c, f) {
            c = c._reactInternals, c.replace = !0, c.queue = [f]
        },
        enqueueForceUpdate: function () { }
    },
        dr = {
            id: 1,
            overflow: ""
        };

    function Ei(c, f, b) {
        var S = c.id;
        c = c.overflow;
        var E = 32 - es(S) - 1;
        S &= ~(1 << E), b += 1;
        var D = 32 - es(f) + E;
        if (30 < D) {
            var U = E - E % 5;
            return D = (S & (1 << U) - 1).toString(32), S >>= U, E -= U, {
                id: 1 << 32 - es(f) + E | b << E | S,
                overflow: D + c
            }
        }
        return {
            id: 1 << D | b << E | S,
            overflow: c
        }
    }
    var es = Math.clz32 ? Math.clz32 : Du,
        Wo = Math.log,
        no = Math.LN2;

    function Du(c) {
        return c >>>= 0, c === 0 ? 32 : 31 - (Wo(c) / no | 0) | 0
    }

    function tn() { }
    var Ga = Error(i(460));

    function Dl(c, f, b) {
        switch (b = c[b], b === void 0 ? c.push(f) : b !== f && (f.then(tn, tn), f = b), f.status) {
            case "fulfilled":
                return f.value;
            case "rejected":
                throw f.reason;
            default:
                switch (typeof f.status == "string" ? f.then(tn, tn) : (c = f, c.status = "pending", c.then(function (S) {
                    if (f.status === "pending") {
                        var E = f;
                        E.status = "fulfilled", E.value = S
                    }
                }, function (S) {
                    if (f.status === "pending") {
                        var E = f;
                        E.status = "rejected", E.reason = S
                    }
                })), f.status) {
                    case "fulfilled":
                        return f.value;
                    case "rejected":
                        throw f.reason
                }
                throw fr = f, Ga
        }
    }
    var fr = null;

    function hr() {
        if (fr === null) throw Error(i(459));
        var c = fr;
        return fr = null, c
    }

    function gr(c, f) {
        return c === f && (c !== 0 || 1 / c === 1 / f) || c !== c && f !== f
    }
    var Mi = typeof Object.is == "function" ? Object.is : gr,
        ul = null,
        ts = null,
        Xs = null,
        Ai = null,
        Un = null,
        wt = null,
        kl = !1,
        Qn = !1,
        Ri = 0,
        ri = 0,
        mr = -1,
        _i = 0,
        Ll = null,
        Ul = null,
        _a = 0;

    function an() {
        if (ul === null) throw Error(i(321));
        return ul
    }

    function as() {
        if (0 < _a) throw Error(i(312));
        return {
            memoizedState: null,
            queue: null,
            next: null
        }
    }

    function Oi() {
        return wt === null ? Un === null ? (kl = !1, Un = wt = as()) : (kl = !0, wt = Un) : wt.next === null ? (kl = !1, wt = wt.next = as()) : (kl = !0, wt = wt.next), wt
    }

    function vr() {
        var c = Ll;
        return Ll = null, c
    }

    function zi() {
        Ai = Xs = ts = ul = null, Qn = !1, Un = null, _a = 0, wt = Ul = null
    }

    function Vs(c, f) {
        return typeof f == "function" ? f(c) : f
    }

    function br(c, f, b) {
        if (ul = an(), wt = Oi(), kl) {
            var S = wt.queue;
            if (f = S.dispatch, Ul !== null && (b = Ul.get(S), b !== void 0)) {
                Ul.delete(S), S = wt.memoizedState;
                do S = c(S, b.action), b = b.next; while (b !== null);
                return wt.memoizedState = S, [S, f]
            }
            return [wt.memoizedState, f]
        }
        return c = c === Vs ? typeof f == "function" ? f() : f : b !== void 0 ? b(f) : f, wt.memoizedState = c, c = wt.queue = {
            last: null,
            dispatch: null
        }, c = c.dispatch = Jo.bind(null, ul, c), [wt.memoizedState, c]
    }

    function ns(c, f) {
        if (ul = an(), wt = Oi(), f = f === void 0 ? null : f, wt !== null) {
            var b = wt.memoizedState;
            if (b !== null && f !== null) {
                var S = b[1];
                e: if (S === null) S = !1;
                else {
                    for (var E = 0; E < S.length && E < f.length; E++)
                        if (!Mi(f[E], S[E])) {
                            S = !1;
                            break e
                        } S = !0
                }
                if (S) return b[0]
            }
        }
        return c = c(), wt.memoizedState = [c, f], c
    }

    function Jo(c, f, b) {
        if (25 <= _a) throw Error(i(301));
        if (c === ul)
            if (Qn = !0, c = {
                action: b,
                next: null
            }, Ul === null && (Ul = new Map), b = Ul.get(f), b === void 0) Ul.set(f, c);
            else {
                for (f = b; f.next !== null;) f = f.next;
                f.next = c
            }
    }

    function ku() {
        throw Error(i(440))
    }

    function Lu() {
        throw Error(i(394))
    }

    function Uu() {
        throw Error(i(479))
    }

    function ls(c, f, b) {
        an();
        var S = ri++,
            E = Xs;
        if (typeof c.$$FORM_ACTION == "function") {
            var D = null,
                U = Ai;
            E = E.formState;
            var ee = c.$$IS_SIGNATURE_EQUAL;
            if (E !== null && typeof ee == "function") {
                var Y = E[1];
                ee.call(c, E[2], E[3]) && (D = b !== void 0 ? "p" + b : "k" + ft(JSON.stringify([U, null, S]), 0), Y === D && (mr = S, f = E[0]))
            }
            var te = c.bind(null, f);
            return c = function (ie) {
                te(ie)
            }, typeof te.$$FORM_ACTION == "function" && (c.$$FORM_ACTION = function (ie) {
                ie = te.$$FORM_ACTION(ie), b !== void 0 && (b += "", ie.action = b);
                var be = ie.data;
                return be && (D === null && (D = b !== void 0 ? "p" + b : "k" + ft(JSON.stringify([U, null, S]), 0)), be.append("$ACTION_KEY", D)), ie
            }), [f, c, !1]
        }
        var ue = c.bind(null, f);
        return [f, function (ie) {
            ue(ie)
        }, !1]
    }

    function Ko(c) {
        var f = _i;
        return _i += 1, Ll === null && (Ll = []), Dl(Ll, c, f)
    }

    function Bu() {
        throw Error(i(393))
    }
    var qo = {
        readContext: function (c) {
            return c._currentValue2
        },
        use: function (c) {
            if (c !== null && typeof c == "object") {
                if (typeof c.then == "function") return Ko(c);
                if (c.$$typeof === T) return c._currentValue2
            }
            throw Error(i(438, String(c)))
        },
        useContext: function (c) {
            return an(), c._currentValue2
        },
        useMemo: ns,
        useReducer: br,
        useRef: function (c) {
            ul = an(), wt = Oi();
            var f = wt.memoizedState;
            return f === null ? (c = {
                current: c
            }, wt.memoizedState = c) : f
        },
        useState: function (c) {
            return br(Vs, c)
        },
        useInsertionEffect: tn,
        useLayoutEffect: tn,
        useCallback: function (c, f) {
            return ns(function () {
                return c
            }, f)
        },
        useImperativeHandle: tn,
        useEffect: tn,
        useDebugValue: tn,
        useDeferredValue: function (c, f) {
            return an(), f !== void 0 ? f : c
        },
        useTransition: function () {
            return an(), [!1, Lu]
        },
        useId: function () {
            var c = ts.treeContext,
                f = c.overflow;
            c = c.id, c = (c & ~(1 << 32 - es(c) - 1)).toString(32) + f;
            var b = Is;
            if (b === null) throw Error(i(404));
            return f = Ri++, c = "_" + b.idPrefix + "R_" + c, 0 < f && (c += "H" + f.toString(32)), c + "_"
        },
        useSyncExternalStore: function (c, f, b) {
            if (b === void 0) throw Error(i(407));
            return b()
        },
        useOptimistic: function (c) {
            return an(), [c, Uu]
        },
        useActionState: ls,
        useFormState: ls,
        useHostTransitionStatus: function () {
            return an(), gt
        },
        useMemoCache: function (c) {
            for (var f = Array(c), b = 0; b < c; b++) f[b] = re;
            return f
        },
        useCacheRefresh: function () {
            return Bu
        },
        useEffectEvent: function () {
            return ku
        }
    },
        Is = null,
        Hu = {
            getCacheForType: function () {
                throw Error(i(248))
            },
            cacheSignal: function () {
                throw Error(i(248))
            }
        },
        Zs, $o;

    function xr(c) {
        if (Zs === void 0) try {
            throw Error()
        } catch (b) {
            var f = b.stack.trim().match(/\n( *(at )?)/);
            Zs = f && f[1] || "", $o = -1 < b.stack.indexOf(`
    at`) ? " (<anonymous>)" : -1 < b.stack.indexOf("@") ? "@unknown:0:0" : ""
        }
        return `
` + Zs + c + $o
    }
    var lo = !1;

    function Qs(c, f) {
        if (!c || lo) return "";
        lo = !0;
        var b = Error.prepareStackTrace;
        Error.prepareStackTrace = void 0;
        try {
            var S = {
                DetermineComponentFrameRoot: function () {
                    try {
                        if (f) {
                            var ie = function () {
                                throw Error()
                            };
                            if (Object.defineProperty(ie.prototype, "props", {
                                set: function () {
                                    throw Error()
                                }
                            }), typeof Reflect == "object" && Reflect.construct) {
                                try {
                                    Reflect.construct(ie, [])
                                } catch (we) {
                                    var be = we
                                }
                                Reflect.construct(c, [], ie)
                            } else {
                                try {
                                    ie.call()
                                } catch (we) {
                                    be = we
                                }
                                c.call(ie.prototype)
                            }
                        } else {
                            try {
                                throw Error()
                            } catch (we) {
                                be = we
                            } (ie = c()) && typeof ie.catch == "function" && ie.catch(function () { })
                        }
                    } catch (we) {
                        if (we && be && typeof we.stack == "string") return [we.stack, be.stack]
                    }
                    return [null, null]
                }
            };
            S.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
            var E = Object.getOwnPropertyDescriptor(S.DetermineComponentFrameRoot, "name");
            E && E.configurable && Object.defineProperty(S.DetermineComponentFrameRoot, "name", {
                value: "DetermineComponentFrameRoot"
            });
            var D = S.DetermineComponentFrameRoot(),
                U = D[0],
                ee = D[1];
            if (U && ee) {
                var Y = U.split(`
`),
                    te = ee.split(`
`);
                for (E = S = 0; S < Y.length && !Y[S].includes("DetermineComponentFrameRoot");) S++;
                for (; E < te.length && !te[E].includes("DetermineComponentFrameRoot");) E++;
                if (S === Y.length || E === te.length)
                    for (S = Y.length - 1, E = te.length - 1; 1 <= S && 0 <= E && Y[S] !== te[E];) E--;
                for (; 1 <= S && 0 <= E; S--, E--)
                    if (Y[S] !== te[E]) {
                        if (S !== 1 || E !== 1)
                            do
                                if (S--, E--, 0 > E || Y[S] !== te[E]) {
                                    var ue = `
` + Y[S].replace(" at new ", " at ");
                                    return c.displayName && ue.includes("<anonymous>") && (ue = ue.replace("<anonymous>", c.displayName)), ue
                                } while (1 <= S && 0 <= E);
                        break
                    }
            }
        } finally {
            lo = !1, Error.prepareStackTrace = b
        }
        return (b = c ? c.displayName || c.name : "") ? xr(b) : ""
    }

    function Ps(c) {
        if (typeof c == "string") return xr(c);
        if (typeof c == "function") return c.prototype && c.prototype.isReactComponent ? Qs(c, !0) : Qs(c, !1);
        if (typeof c == "object" && c !== null) {
            switch (c.$$typeof) {
                case R:
                    return Qs(c.render, !1);
                case O:
                    return Qs(c.type, !1);
                case L:
                    var f = c,
                        b = f._payload;
                    f = f._init;
                    try {
                        c = f(b)
                    } catch {
                        return xr("Lazy")
                    }
                    return Ps(c)
            }
            if (typeof c.name == "string") {
                e: {
                    b = c.name,
                        f = c.env;
                    var S = c.debugLocation;
                    if (S != null && (c = Error.prepareStackTrace, Error.prepareStackTrace = void 0, S = S.stack, Error.prepareStackTrace = c, S.startsWith(`Error: react-stack-top-frame
`) && (S = S.slice(29)), c = S.indexOf(`
`), c !== -1 && (S = S.slice(c + 1)), c = S.indexOf("react_stack_bottom_frame"), c !== -1 && (c = S.lastIndexOf(`
`, c)), c = c !== -1 ? S = S.slice(0, c) : "", S = c.lastIndexOf(`
`), c = S === -1 ? c : c.slice(S + 1), c.indexOf(b) !== -1)) {
                        b = `
` + c;
                        break e
                    }
                    b = xr(b + (f ? " [" + f + "]" : ""))
                }
                return b
            }
        }
        switch (c) {
            case z:
                return xr("SuspenseList");
            case A:
                return xr("Suspense")
        }
        return ""
    }

    function pr(c, f) {
        return (500 < f.byteSize || !1) && f.contentPreamble === null
    }

    function Fu(c) {
        if (typeof c == "object" && c !== null && typeof c.environmentName == "string") {
            var f = c.environmentName;
            c = [c].slice(0), typeof c[0] == "string" ? c.splice(0, 1, "[%s] " + c[0], " " + f + " ") : c.splice(0, 0, "[%s]", " " + f + " "), c.unshift(console), f = eo.apply(console.error, c), f()
        } else console.error(c);
        return null
    }

    function Gu(c, f, b, S, E, D, U, ee, Y, te, ue) {
        var ie = new Set;
        this.destination = null, this.flushScheduled = !1, this.resumableState = c, this.renderState = f, this.rootFormatContext = b, this.progressiveChunkSize = S === void 0 ? 12800 : S, this.status = 10, this.fatalError = null, this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0, this.completedPreambleSegments = this.completedRootSegment = null, this.byteSize = 0, this.abortableTasks = ie, this.pingedTasks = [], this.clientRenderedBoundaries = [], this.completedBoundaries = [], this.partialBoundaries = [], this.trackedPostpones = null, this.onError = E === void 0 ? Fu : E, this.onPostpone = te === void 0 ? tn : te, this.onAllReady = D === void 0 ? tn : D, this.onShellReady = U === void 0 ? tn : U, this.onShellError = ee === void 0 ? tn : ee, this.onFatalError = Y === void 0 ? tn : Y, this.formState = ue === void 0 ? null : ue
    }

    function eu(c, f, b, S, E, D, U, ee, Y, te, ue, ie) {
        return f = new Gu(f, b, S, E, D, U, ee, Y, te, ue, ie), b = ji(f, 0, null, S, !1, !1), b.parentFlushed = !0, c = Ws(f, null, c, -1, null, b, null, null, f.abortableTasks, null, S, null, dr, null, null), si(c), f.pingedTasks.push(c), f
    }
    var Oa = null;

    function yr(c, f) {
        c.pingedTasks.push(f), c.pingedTasks.length === 1 && (c.flushScheduled = c.destination !== null, au(c))
    }

    function io(c, f, b, S, E) {
        return b = {
            status: 0,
            rootSegmentID: -1,
            parentFlushed: !1,
            pendingTasks: 0,
            row: f,
            completedSegments: [],
            byteSize: 0,
            fallbackAbortableTasks: b,
            errorDigest: null,
            contentState: St(),
            fallbackState: St(),
            contentPreamble: S,
            fallbackPreamble: E,
            trackedContentKeyPath: null,
            trackedFallbackNode: null
        }, f !== null && (f.pendingTasks++, S = f.boundaries, S !== null && (c.allPendingTasks++, b.pendingTasks++, S.push(b)), c = f.inheritedHoistables, c !== null && _l(b.contentState, c)), b
    }

    function Ws(c, f, b, S, E, D, U, ee, Y, te, ue, ie, be, we, Pe) {
        c.allPendingTasks++, E === null ? c.pendingRootTasks++ : E.pendingTasks++, we !== null && we.pendingTasks++;
        var He = {
            replay: null,
            node: b,
            childIndex: S,
            ping: function () {
                return yr(c, He)
            },
            blockedBoundary: E,
            blockedSegment: D,
            blockedPreamble: U,
            hoistableState: ee,
            abortSet: Y,
            keyPath: te,
            formatContext: ue,
            context: ie,
            treeContext: be,
            row: we,
            componentStack: Pe,
            thenableState: f
        };
        return Y.add(He), He
    }

    function tu(c, f, b, S, E, D, U, ee, Y, te, ue, ie, be, we) {
        c.allPendingTasks++, D === null ? c.pendingRootTasks++ : D.pendingTasks++, be !== null && be.pendingTasks++, b.pendingTasks++;
        var Pe = {
            replay: b,
            node: S,
            childIndex: E,
            ping: function () {
                return yr(c, Pe)
            },
            blockedBoundary: D,
            blockedSegment: null,
            blockedPreamble: null,
            hoistableState: U,
            abortSet: ee,
            keyPath: Y,
            formatContext: te,
            context: ue,
            treeContext: ie,
            row: be,
            componentStack: we,
            thenableState: f
        };
        return ee.add(Pe), Pe
    }

    function ji(c, f, b, S, E, D) {
        return {
            status: 0,
            parentFlushed: !1,
            id: -1,
            index: f,
            chunks: [],
            children: [],
            preambleChildren: [],
            parentFormatContext: S,
            boundary: b,
            lastPushedText: E,
            textEmbedded: D
        }
    }

    function si(c) {
        var f = c.node;
        typeof f == "object" && f !== null && f.$$typeof === d && (c.componentStack = {
            parent: c.componentStack,
            type: f.type
        })
    }

    function is(c) {
        return c === null ? null : {
            parent: c.parent,
            type: "Suspense Fallback"
        }
    }

    function ci(c) {
        var f = {};
        return c && Object.defineProperty(f, "componentStack", {
            configurable: !0,
            enumerable: !0,
            get: function () {
                try {
                    var b = "",
                        S = c;
                    do b += Ps(S.type), S = S.parent; while (S);
                    var E = b
                } catch (D) {
                    E = `
Error generating stack: ` + D.message + `
` + D.stack
                }
                return Object.defineProperty(f, "componentStack", {
                    value: E
                }), E
            }
        }), f
    }

    function Ca(c, f, b) {
        if (c = c.onError, f = c(f, b), f == null || typeof f == "string") return f
    }

    function dl(c, f) {
        var b = c.onShellError,
            S = c.onFatalError;
        b(f), S(f), c.destination !== null ? (c.status = 14, c.destination.destroy(f)) : (c.status = 13, c.fatalError = f)
    }

    function Ot(c, f) {
        Pn(c, f.next, f.hoistables)
    }

    function Pn(c, f, b) {
        for (; f !== null;) {
            b !== null && (_l(f.hoistables, b), f.inheritedHoistables = b);
            var S = f.boundaries;
            if (S !== null) {
                f.boundaries = null;
                for (var E = 0; E < S.length; E++) {
                    var D = S[E];
                    b !== null && _l(D.contentState, b), ui(c, D, null, null)
                }
            }
            if (f.pendingTasks--, 0 < f.pendingTasks) break;
            b = f.hoistables, f = f.next
        }
    }

    function Js(c, f) {
        var b = f.boundaries;
        if (b !== null && f.pendingTasks === b.length) {
            for (var S = !0, E = 0; E < b.length; E++) {
                var D = b[E];
                if (D.pendingTasks !== 1 || D.parentFlushed || pr(c, D)) {
                    S = !1;
                    break
                }
            }
            S && Pn(c, f, f.hoistables)
        }
    }

    function Sr(c) {
        var f = {
            pendingTasks: 1,
            boundaries: null,
            hoistables: St(),
            inheritedHoistables: null,
            together: !1,
            next: null
        };
        return c !== null && 0 < c.pendingTasks && (f.pendingTasks++, f.boundaries = [], c.next = f), f
    }

    function ro(c, f, b, S, E) {
        var D = f.keyPath,
            U = f.treeContext,
            ee = f.row;
        f.keyPath = b, b = S.length;
        var Y = null;
        if (f.replay !== null) {
            var te = f.replay.slots;
            if (te !== null && typeof te == "object")
                for (var ue = 0; ue < b; ue++) {
                    var ie = E !== "backwards" && E !== "unstable_legacy-backwards" ? ue : b - 1 - ue,
                        be = S[ie];
                    f.row = Y = Sr(Y), f.treeContext = Ei(U, b, ie);
                    var we = te[ie];
                    typeof we == "number" ? ($s(c, f, we, be, ie), delete te[ie]) : ba(c, f, be, ie), --Y.pendingTasks === 0 && Ot(c, Y)
                } else
                for (te = 0; te < b; te++) ue = E !== "backwards" && E !== "unstable_legacy-backwards" ? te : b - 1 - te, ie = S[ue], f.row = Y = Sr(Y), f.treeContext = Ei(U, b, ue), ba(c, f, ie, ue), --Y.pendingTasks === 0 && Ot(c, Y)
        } else if (E !== "backwards" && E !== "unstable_legacy-backwards")
            for (E = 0; E < b; E++) te = S[E], f.row = Y = Sr(Y), f.treeContext = Ei(U, b, E), ba(c, f, te, E), --Y.pendingTasks === 0 && Ot(c, Y);
        else {
            for (E = f.blockedSegment, te = E.children.length, ue = E.chunks.length, ie = b - 1; 0 <= ie; ie--) {
                be = S[ie], f.row = Y = Sr(Y), f.treeContext = Ei(U, b, ie), we = ji(c, ue, null, f.formatContext, ie === 0 ? E.lastPushedText : !0, !0), E.children.splice(te, 0, we), f.blockedSegment = we;
                try {
                    ba(c, f, be, ie), Ol(we.chunks, c.renderState, we.lastPushedText, we.textEmbedded), we.status = 1, --Y.pendingTasks === 0 && Ot(c, Y)
                } catch (Pe) {
                    throw we.status = c.status === 12 ? 3 : 4, Pe
                }
            }
            f.blockedSegment = E, E.lastPushedText = !1
        }
        ee !== null && Y !== null && 0 < Y.pendingTasks && (ee.pendingTasks++, Y.next = ee), f.treeContext = U, f.row = ee, f.keyPath = D
    }

    function Ks(c, f, b, S, E, D) {
        var U = f.thenableState;
        for (f.thenableState = null, ul = {}, ts = f, Xs = c, Ai = b, ri = Ri = 0, mr = -1, _i = 0, Ll = U, c = S(E, D); Qn;) Qn = !1, ri = Ri = 0, mr = -1, _i = 0, _a += 1, wt = null, c = S(E, D);
        return zi(), c
    }

    function Di(c, f, b, S, E, D, U) {
        var ee = !1;
        if (D !== 0 && c.formState !== null) {
            var Y = f.blockedSegment;
            if (Y !== null) {
                ee = !0, Y = Y.chunks;
                for (var te = 0; te < D; te++) te === U ? Y.push("<!--F!-->") : Y.push("<!--F-->")
            }
        }
        D = f.keyPath, f.keyPath = b, E ? (b = f.treeContext, f.treeContext = Ei(b, 1, 0), ba(c, f, S, -1), f.treeContext = b) : ee ? ba(c, f, S, -1) : Bn(c, f, S, -1), f.keyPath = D
    }

    function qs(c, f, b, S, E, D) {
        if (typeof S == "function")
            if (S.prototype && S.prototype.isReactComponent) {
                var U = E;
                if ("ref" in E) {
                    U = {};
                    for (var ee in E) ee !== "ref" && (U[ee] = E[ee])
                }
                var Y = S.defaultProps;
                if (Y) {
                    U === E && (U = _e({}, U, E));
                    for (var te in Y) U[te] === void 0 && (U[te] = Y[te])
                }
                E = U, U = Zt, Y = S.contextType, typeof Y == "object" && Y !== null && (U = Y._currentValue2), U = new S(E, U);
                var ue = U.state !== void 0 ? U.state : null;
                if (U.updater = ao, U.props = E, U.state = ue, Y = {
                    queue: [],
                    replace: !1
                }, U._reactInternals = Y, D = S.contextType, U.context = typeof D == "object" && D !== null ? D._currentValue2 : Zt, D = S.getDerivedStateFromProps, typeof D == "function" && (D = D(E, ue), ue = D == null ? ue : _e({}, ue, D), U.state = ue), typeof S.getDerivedStateFromProps != "function" && typeof U.getSnapshotBeforeUpdate != "function" && (typeof U.UNSAFE_componentWillMount == "function" || typeof U.componentWillMount == "function"))
                    if (S = U.state, typeof U.componentWillMount == "function" && U.componentWillMount(), typeof U.UNSAFE_componentWillMount == "function" && U.UNSAFE_componentWillMount(), S !== U.state && ao.enqueueReplaceState(U, U.state, null), Y.queue !== null && 0 < Y.queue.length)
                        if (S = Y.queue, D = Y.replace, Y.queue = null, Y.replace = !1, D && S.length === 1) U.state = S[0];
                        else {
                            for (Y = D ? S[0] : U.state, ue = !0, D = D ? 1 : 0; D < S.length; D++) te = S[D], te = typeof te == "function" ? te.call(U, Y, E, void 0) : te, te != null && (ue ? (ue = !1, Y = _e({}, Y, te)) : _e(Y, te));
                            U.state = Y
                        }
                    else Y.queue = null;
                if (S = U.render(), c.status === 12) throw null;
                E = f.keyPath, f.keyPath = b, Bn(c, f, S, -1), f.keyPath = E
            } else {
                if (S = Ks(c, f, b, S, E, void 0), c.status === 12) throw null;
                Di(c, f, b, S, Ri !== 0, ri, mr)
            }
        else if (typeof S == "string")
            if (U = f.blockedSegment, U === null) U = E.children, Y = f.formatContext, ue = f.keyPath, f.formatContext = Ds(Y, S, E), f.keyPath = b, ba(c, f, U, -1), f.formatContext = Y, f.keyPath = ue;
            else {
                if (ue = oa(U.chunks, S, E, c.resumableState, c.renderState, f.blockedPreamble, f.hoistableState, f.formatContext, U.lastPushedText), U.lastPushedText = !1, Y = f.formatContext, D = f.keyPath, f.keyPath = b, (f.formatContext = Ds(Y, S, E)).insertionMode === 3) {
                    b = ji(c, 0, null, f.formatContext, !1, !1), U.preambleChildren.push(b), f.blockedSegment = b;
                    try {
                        b.status = 6, ba(c, f, ue, -1), Ol(b.chunks, c.renderState, b.lastPushedText, b.textEmbedded), b.status = 1
                    } finally {
                        f.blockedSegment = U
                    }
                } else ba(c, f, ue, -1);
                f.formatContext = Y, f.keyPath = D;
                e: {
                    switch (f = U.chunks, c = c.resumableState, S) {
                        case "title":
                        case "style":
                        case "script":
                        case "area":
                        case "base":
                        case "br":
                        case "col":
                        case "embed":
                        case "hr":
                        case "img":
                        case "input":
                        case "keygen":
                        case "link":
                        case "meta":
                        case "param":
                        case "source":
                        case "track":
                        case "wbr":
                            break e;
                        case "body":
                            if (1 >= Y.insertionMode) {
                                c.hasBody = !0;
                                break e
                            }
                            break;
                        case "html":
                            if (Y.insertionMode === 0) {
                                c.hasHtml = !0;
                                break e
                            }
                            break;
                        case "head":
                            if (1 >= Y.insertionMode) break e
                    }
                    f.push(In(S))
                }
                U.lastPushedText = !1
            }
        else {
            switch (S) {
                case ce:
                case p:
                case w:
                case x:
                    S = f.keyPath, f.keyPath = b, Bn(c, f, E.children, -1), f.keyPath = S;
                    return;
                case Z:
                    S = f.blockedSegment, S === null ? E.mode !== "hidden" && (S = f.keyPath, f.keyPath = b, ba(c, f, E.children, -1), f.keyPath = S) : E.mode !== "hidden" && (c.renderState.generateStaticMarkup || S.chunks.push("<!--&-->"), S.lastPushedText = !1, U = f.keyPath, f.keyPath = b, ba(c, f, E.children, -1), f.keyPath = U, c.renderState.generateStaticMarkup || S.chunks.push("<!--/&-->"), S.lastPushedText = !1);
                    return;
                case z:
                    e: {
                        if (S = E.children, E = E.revealOrder, E === "forwards" || E === "backwards" || E === "unstable_legacy-backwards") {
                            if (xe(S)) {
                                ro(c, f, b, S, E);
                                break e
                            }
                            if ((U = Se(S)) && (U = U.call(S))) {
                                if (Y = U.next(), !Y.done) {
                                    do Y = U.next(); while (!Y.done);
                                    ro(c, f, b, S, E)
                                }
                                break e
                            }
                        }
                        E === "together" ? (E = f.keyPath, U = f.row, Y = f.row = Sr(null), Y.boundaries = [], Y.together = !0, f.keyPath = b, Bn(c, f, S, -1), --Y.pendingTasks === 0 && Ot(c, Y), f.keyPath = E, f.row = U, U !== null && 0 < Y.pendingTasks && (U.pendingTasks++, Y.next = U)) : (E = f.keyPath, f.keyPath = b, Bn(c, f, S, -1), f.keyPath = E)
                    }
                    return;
                case ve:
                case G:
                    throw Error(i(343));
                case A:
                    e: if (f.replay !== null) {
                        S = f.keyPath, U = f.formatContext, Y = f.row, f.keyPath = b, f.formatContext = tr(c.resumableState, U), f.row = null, b = E.children;
                        try {
                            ba(c, f, b, -1)
                        } finally {
                            f.keyPath = S, f.formatContext = U, f.row = Y
                        }
                    } else {
                        S = f.keyPath, D = f.formatContext;
                        var ie = f.row,
                            be = f.blockedBoundary;
                        te = f.blockedPreamble;
                        var we = f.hoistableState;
                        ee = f.blockedSegment;
                        var Pe = E.fallback;
                        E = E.children;
                        var He = new Set,
                            Ue = io(c, f.row, He, null, null);
                        c.trackedPostpones !== null && (Ue.trackedContentKeyPath = b);
                        var Le = ji(c, ee.chunks.length, Ue, f.formatContext, !1, !1);
                        ee.children.push(Le), ee.lastPushedText = !1;
                        var Ve = ji(c, 0, null, f.formatContext, !1, !1);
                        if (Ve.parentFlushed = !0, c.trackedPostpones !== null) {
                            U = f.componentStack, Y = [b[0], "Suspense Fallback", b[2]], ue = [Y[1], Y[2],
                            [], null
                            ], c.trackedPostpones.workingMap.set(Y, ue), Ue.trackedFallbackNode = ue, f.blockedSegment = Le, f.blockedPreamble = Ue.fallbackPreamble, f.keyPath = Y, f.formatContext = Nl(c.resumableState, D), f.componentStack = is(U), Le.status = 6;
                            try {
                                ba(c, f, Pe, -1), Ol(Le.chunks, c.renderState, Le.lastPushedText, Le.textEmbedded), Le.status = 1
                            } catch (xt) {
                                throw Le.status = c.status === 12 ? 3 : 4, xt
                            } finally {
                                f.blockedSegment = ee, f.blockedPreamble = te, f.keyPath = S, f.formatContext = D
                            }
                            f = Ws(c, null, E, -1, Ue, Ve, Ue.contentPreamble, Ue.contentState, f.abortSet, b, tr(c.resumableState, f.formatContext), f.context, f.treeContext, null, U), si(f), c.pingedTasks.push(f)
                        } else {
                            f.blockedBoundary = Ue, f.blockedPreamble = Ue.contentPreamble, f.hoistableState = Ue.contentState, f.blockedSegment = Ve, f.keyPath = b, f.formatContext = tr(c.resumableState, D), f.row = null, Ve.status = 6;
                            try {
                                if (ba(c, f, E, -1), Ol(Ve.chunks, c.renderState, Ve.lastPushedText, Ve.textEmbedded), Ve.status = 1, cs(Ue, Ve), Ue.pendingTasks === 0 && Ue.status === 0) {
                                    if (Ue.status = 1, !pr(c, Ue)) {
                                        ie !== null && --ie.pendingTasks === 0 && Ot(c, ie), c.pendingRootTasks === 0 && f.blockedPreamble && Wn(c);
                                        break e
                                    }
                                } else ie !== null && ie.together && Js(c, ie)
                            } catch (xt) {
                                Ue.status = 4, c.status === 12 ? (Ve.status = 3, U = c.fatalError) : (Ve.status = 4, U = xt), Y = ci(f.componentStack), ue = Ca(c, U, Y), Ue.errorDigest = ue, tc(c, Ue)
                            } finally {
                                f.blockedBoundary = be, f.blockedPreamble = te, f.hoistableState = we, f.blockedSegment = ee, f.keyPath = S, f.formatContext = D, f.row = ie
                            }
                            f = Ws(c, null, Pe, -1, be, Le, Ue.fallbackPreamble, Ue.fallbackState, He, [b[0], "Suspense Fallback", b[2]], Nl(c.resumableState, f.formatContext), f.context, f.treeContext, f.row, is(f.componentStack)), si(f), c.pingedTasks.push(f)
                        }
                    }
                    return
            }
            if (typeof S == "object" && S !== null) switch (S.$$typeof) {
                case R:
                    if ("ref" in E)
                        for (Pe in U = {}, E) Pe !== "ref" && (U[Pe] = E[Pe]);
                    else U = E;
                    S = Ks(c, f, b, S.render, U, D), Di(c, f, b, S, Ri !== 0, ri, mr);
                    return;
                case O:
                    qs(c, f, b, S.type, E, D);
                    return;
                case T:
                    if (Y = E.children, U = f.keyPath, E = E.value, ue = S._currentValue2, S._currentValue2 = E, D = Ti, Ti = S = {
                        parent: D,
                        depth: D === null ? 0 : D.depth + 1,
                        context: S,
                        parentValue: ue,
                        value: E
                    }, f.context = S, f.keyPath = b, Bn(c, f, Y, -1), c = Ti, c === null) throw Error(i(403));
                    c.context._currentValue2 = c.parentValue, c = Ti = c.parent, f.context = c, f.keyPath = U;
                    return;
                case M:
                    E = E.children, S = E(S._context._currentValue2), E = f.keyPath, f.keyPath = b, Bn(c, f, S, -1), f.keyPath = E;
                    return;
                case L:
                    if (U = S._init, S = U(S._payload), c.status === 12) throw null;
                    qs(c, f, b, S, E, D);
                    return
            }
            throw Error(i(130, S == null ? S : typeof S, ""))
        }
    }

    function $s(c, f, b, S, E) {
        var D = f.replay,
            U = f.blockedBoundary,
            ee = ji(c, 0, null, f.formatContext, !1, !1);
        ee.id = b, ee.parentFlushed = !0;
        try {
            f.replay = null, f.blockedSegment = ee, ba(c, f, S, E), ee.status = 1, U === null ? c.completedRootSegment = ee : (cs(U, ee), U.parentFlushed && c.partialBoundaries.push(U))
        } finally {
            f.replay = D, f.blockedSegment = null
        }
    }

    function Bn(c, f, b, S) {
        f.replay !== null && typeof f.replay.slots == "number" ? $s(c, f, f.replay.slots, b, S) : (f.node = b, f.childIndex = S, b = f.componentStack, si(f), ec(c, f), f.componentStack = b)
    }

    function ec(c, f) {
        var b = f.node,
            S = f.childIndex;
        if (b !== null) {
            if (typeof b == "object") {
                switch (b.$$typeof) {
                    case d:
                        var E = b.type,
                            D = b.key,
                            U = b.props;
                        b = U.ref;
                        var ee = b !== void 0 ? b : null,
                            Y = ur(E),
                            te = D ?? (S === -1 ? 0 : S);
                        if (D = [f.keyPath, Y, te], f.replay !== null) e: {
                            var ue = f.replay;
                            for (S = ue.nodes, b = 0; b < S.length; b++) {
                                var ie = S[b];
                                if (te === ie[1]) {
                                    if (ie.length === 4) {
                                        if (Y !== null && Y !== ie[0]) throw Error(i(490, ie[0], Y));
                                        var be = ie[2];
                                        Y = ie[3], te = f.node, f.replay = {
                                            nodes: be,
                                            slots: Y,
                                            pendingTasks: 1
                                        };
                                        try {
                                            if (qs(c, f, D, E, U, ee), f.replay.pendingTasks === 1 && 0 < f.replay.nodes.length) throw Error(i(488));
                                            f.replay.pendingTasks--
                                        } catch ($e) {
                                            if (typeof $e == "object" && $e !== null && ($e === Ga || typeof $e.then == "function")) throw f.node === te ? f.replay = ue : S.splice(b, 1), $e;
                                            f.replay.pendingTasks--, U = ci(f.componentStack), D = c, c = f.blockedBoundary, E = $e, U = Ca(D, E, U), Hl(D, c, be, Y, E, U)
                                        }
                                        f.replay = ue
                                    } else {
                                        if (E !== A) throw Error(i(490, "Suspense", ur(E) || "Unknown"));
                                        t: {
                                            ue = void 0,
                                                E = ie[5],
                                                ee = ie[2],
                                                Y = ie[3],
                                                te = ie[4] === null ? [] : ie[4][2],
                                                ie = ie[4] === null ? null : ie[4][3];
                                            var we = f.keyPath,
                                                Pe = f.formatContext,
                                                He = f.row,
                                                Ue = f.replay,
                                                Le = f.blockedBoundary,
                                                Ve = f.hoistableState,
                                                xt = U.children,
                                                Gt = U.fallback,
                                                qe = new Set; U = io(c, f.row, qe, null, null),
                                                    U.parentFlushed = !0,
                                                    U.rootSegmentID = E,
                                                    f.blockedBoundary = U,
                                                    f.hoistableState = U.contentState,
                                                    f.keyPath = D,
                                                    f.formatContext = tr(c.resumableState, Pe),
                                                    f.row = null,
                                                    f.replay = {
                                                        nodes: ee,
                                                        slots: Y,
                                                        pendingTasks: 1
                                                    };
                                            try {
                                                if (ba(c, f, xt, -1), f.replay.pendingTasks === 1 && 0 < f.replay.nodes.length) throw Error(i(488));
                                                if (f.replay.pendingTasks--, U.pendingTasks === 0 && U.status === 0) {
                                                    U.status = 1, c.completedBoundaries.push(U);
                                                    break t
                                                }
                                            } catch ($e) {
                                                U.status = 4, be = ci(f.componentStack), ue = Ca(c, $e, be), U.errorDigest = ue, f.replay.pendingTasks--, c.clientRenderedBoundaries.push(U)
                                            } finally {
                                                f.blockedBoundary = Le, f.hoistableState = Ve, f.replay = Ue, f.keyPath = we, f.formatContext = Pe, f.row = He
                                            }
                                            be = tu(c, null, {
                                                nodes: te,
                                                slots: ie,
                                                pendingTasks: 0
                                            }, Gt, -1, Le, U.fallbackState, qe, [D[0], "Suspense Fallback", D[2]], Nl(c.resumableState, f.formatContext), f.context, f.treeContext, f.row, is(f.componentStack)),
                                                si(be),
                                                c.pingedTasks.push(be)
                                        }
                                    }
                                    S.splice(b, 1);
                                    break e
                                }
                            }
                        }
                        else qs(c, f, D, E, U, ee);
                        return;
                    case g:
                        throw Error(i(257));
                    case L:
                        if (be = b._init, b = be(b._payload), c.status === 12) throw null;
                        Bn(c, f, b, S);
                        return
                }
                if (xe(b)) {
                    rs(c, f, b, S);
                    return
                }
                if ((be = Se(b)) && (be = be.call(b))) {
                    if (b = be.next(), !b.done) {
                        U = [];
                        do U.push(b.value), b = be.next(); while (!b.done);
                        rs(c, f, U, S)
                    }
                    return
                }
                if (typeof b.then == "function") return f.thenableState = null, Bn(c, f, Ko(b), S);
                if (b.$$typeof === T) return Bn(c, f, b._currentValue2, S);
                throw S = Object.prototype.toString.call(b), Error(i(31, S === "[object Object]" ? "object with keys {" + Object.keys(b).join(", ") + "}" : S))
            }
            typeof b == "string" ? (S = f.blockedSegment, S !== null && (S.lastPushedText = $a(S.chunks, b, c.renderState, S.lastPushedText))) : (typeof b == "number" || typeof b == "bigint") && (S = f.blockedSegment, S !== null && (S.lastPushedText = $a(S.chunks, "" + b, c.renderState, S.lastPushedText)))
        }
    }

    function rs(c, f, b, S) {
        var E = f.keyPath;
        if (S !== -1 && (f.keyPath = [f.keyPath, "Fragment", S], f.replay !== null)) {
            for (var D = f.replay, U = D.nodes, ee = 0; ee < U.length; ee++) {
                var Y = U[ee];
                if (Y[1] === S) {
                    S = Y[2], Y = Y[3], f.replay = {
                        nodes: S,
                        slots: Y,
                        pendingTasks: 1
                    };
                    try {
                        if (rs(c, f, b, -1), f.replay.pendingTasks === 1 && 0 < f.replay.nodes.length) throw Error(i(488));
                        f.replay.pendingTasks--
                    } catch (ie) {
                        if (typeof ie == "object" && ie !== null && (ie === Ga || typeof ie.then == "function")) throw ie;
                        f.replay.pendingTasks--, b = ci(f.componentStack);
                        var te = f.blockedBoundary,
                            ue = ie;
                        b = Ca(c, ue, b), Hl(c, te, S, Y, ue, b)
                    }
                    f.replay = D, U.splice(ee, 1);
                    break
                }
            }
            f.keyPath = E;
            return
        }
        if (D = f.treeContext, U = b.length, f.replay !== null && (ee = f.replay.slots, ee !== null && typeof ee == "object")) {
            for (S = 0; S < U; S++) Y = b[S], f.treeContext = Ei(D, U, S), te = ee[S], typeof te == "number" ? ($s(c, f, te, Y, S), delete ee[S]) : ba(c, f, Y, S);
            f.treeContext = D, f.keyPath = E;
            return
        }
        for (ee = 0; ee < U; ee++) S = b[ee], f.treeContext = Ei(D, U, ee), ba(c, f, S, ee);
        f.treeContext = D, f.keyPath = E
    }

    function Bl(c, f, b) {
        if (b.status = 5, b.rootSegmentID = c.nextSegmentId++, c = b.trackedContentKeyPath, c === null) throw Error(i(486));
        var S = b.trackedFallbackNode,
            E = [],
            D = f.workingMap.get(c);
        return D === void 0 ? (b = [c[1], c[2], E, null, S, b.rootSegmentID], f.workingMap.set(c, b), Ya(b, c[0], f), b) : (D[4] = S, D[5] = b.rootSegmentID, D)
    }

    function oi(c, f, b, S) {
        S.status = 5;
        var E = b.keyPath,
            D = b.blockedBoundary;
        if (D === null) S.id = c.nextSegmentId++, f.rootSlots = S.id, c.completedRootSegment !== null && (c.completedRootSegment.status = 5);
        else {
            if (D !== null && D.status === 0) {
                var U = Bl(c, f, D);
                if (D.trackedContentKeyPath === E && b.childIndex === -1) {
                    S.id === -1 && (S.id = S.parentFlushed ? D.rootSegmentID : c.nextSegmentId++), U[3] = S.id;
                    return
                }
            }
            if (S.id === -1 && (S.id = S.parentFlushed && D !== null ? D.rootSegmentID : c.nextSegmentId++), b.childIndex === -1) E === null ? f.rootSlots = S.id : (b = f.workingMap.get(E), b === void 0 ? (b = [E[1], E[2],
            [], S.id
            ], Ya(b, E[0], f)) : b[3] = S.id);
            else {
                if (E === null) {
                    if (c = f.rootSlots, c === null) c = f.rootSlots = {};
                    else if (typeof c == "number") throw Error(i(491))
                } else if (D = f.workingMap, U = D.get(E), U === void 0) c = {}, U = [E[1], E[2],
                [], c
                ], D.set(E, U), Ya(U, E[0], f);
                else if (c = U[3], c === null) c = U[3] = {};
                else if (typeof c == "number") throw Error(i(491));
                c[b.childIndex] = S.id
            }
        }
    }

    function tc(c, f) {
        c = c.trackedPostpones, c !== null && (f = f.trackedContentKeyPath, f !== null && (f = c.workingMap.get(f), f !== void 0 && (f.length = 4, f[2] = [], f[3] = null)))
    }

    function ki(c, f, b) {
        return tu(c, b, f.replay, f.node, f.childIndex, f.blockedBoundary, f.hoistableState, f.abortSet, f.keyPath, f.formatContext, f.context, f.treeContext, f.row, f.componentStack)
    }

    function ss(c, f, b) {
        var S = f.blockedSegment,
            E = ji(c, S.chunks.length, null, f.formatContext, S.lastPushedText, !0);
        return S.children.push(E), S.lastPushedText = !1, Ws(c, b, f.node, f.childIndex, f.blockedBoundary, E, f.blockedPreamble, f.hoistableState, f.abortSet, f.keyPath, f.formatContext, f.context, f.treeContext, f.row, f.componentStack)
    }

    function ba(c, f, b, S) {
        var E = f.formatContext,
            D = f.context,
            U = f.keyPath,
            ee = f.treeContext,
            Y = f.componentStack,
            te = f.blockedSegment;
        if (te === null) {
            te = f.replay;
            try {
                return Bn(c, f, b, S)
            } catch (be) {
                if (zi(), b = be === Ga ? hr() : be, c.status !== 12 && typeof b == "object" && b !== null) {
                    if (typeof b.then == "function") {
                        S = be === Ga ? vr() : null, c = ki(c, f, S).ping, b.then(c, c), f.formatContext = E, f.context = D, f.keyPath = U, f.treeContext = ee, f.componentStack = Y, f.replay = te, jl(D);
                        return
                    }
                    if (b.message === "Maximum call stack size exceeded") {
                        b = be === Ga ? vr() : null, b = ki(c, f, b), c.pingedTasks.push(b), f.formatContext = E, f.context = D, f.keyPath = U, f.treeContext = ee, f.componentStack = Y, f.replay = te, jl(D);
                        return
                    }
                }
            }
        } else {
            var ue = te.children.length,
                ie = te.chunks.length;
            try {
                return Bn(c, f, b, S)
            } catch (be) {
                if (zi(), te.children.length = ue, te.chunks.length = ie, b = be === Ga ? hr() : be, c.status !== 12 && typeof b == "object" && b !== null) {
                    if (typeof b.then == "function") {
                        te = b, b = be === Ga ? vr() : null, c = ss(c, f, b).ping, te.then(c, c), f.formatContext = E, f.context = D, f.keyPath = U, f.treeContext = ee, f.componentStack = Y, jl(D);
                        return
                    }
                    if (b.message === "Maximum call stack size exceeded") {
                        te = be === Ga ? vr() : null, te = ss(c, f, te), c.pingedTasks.push(te), f.formatContext = E, f.context = D, f.keyPath = U, f.treeContext = ee, f.componentStack = Y, jl(D);
                        return
                    }
                }
            }
        }
        throw f.formatContext = E, f.context = D, f.keyPath = U, f.treeContext = ee, jl(D), b
    }

    function so(c) {
        var f = c.blockedBoundary,
            b = c.blockedSegment;
        b !== null && (b.status = 3, ui(this, f, c.row, b))
    }

    function Hl(c, f, b, S, E, D) {
        for (var U = 0; U < b.length; U++) {
            var ee = b[U];
            if (ee.length === 4) Hl(c, f, ee[2], ee[3], E, D);
            else {
                ee = ee[5];
                var Y = c,
                    te = D,
                    ue = io(Y, null, new Set, null, null);
                ue.parentFlushed = !0, ue.rootSegmentID = ee, ue.status = 4, ue.errorDigest = te, ue.parentFlushed && Y.clientRenderedBoundaries.push(ue)
            }
        }
        if (b.length = 0, S !== null) {
            if (f === null) throw Error(i(487));
            if (f.status !== 4 && (f.status = 4, f.errorDigest = D, f.parentFlushed && c.clientRenderedBoundaries.push(f)), typeof S == "object")
                for (var ie in S) delete S[ie]
        }
    }

    function ac(c, f, b) {
        var S = c.blockedBoundary,
            E = c.blockedSegment;
        if (E !== null) {
            if (E.status === 6) return;
            E.status = 3
        }
        var D = ci(c.componentStack);
        if (S === null) {
            if (f.status !== 13 && f.status !== 14) {
                if (S = c.replay, S === null) {
                    f.trackedPostpones !== null && E !== null ? (S = f.trackedPostpones, Ca(f, b, D), oi(f, S, c, E), ui(f, null, c.row, E)) : (Ca(f, b, D), dl(f, b));
                    return
                }
                S.pendingTasks--, S.pendingTasks === 0 && 0 < S.nodes.length && (E = Ca(f, b, D), Hl(f, null, S.nodes, S.slots, b, E)), f.pendingRootTasks--, f.pendingRootTasks === 0 && lc(f)
            }
        } else {
            var U = f.trackedPostpones;
            if (S.status !== 4) {
                if (U !== null && E !== null) return Ca(f, b, D), oi(f, U, c, E), S.fallbackAbortableTasks.forEach(function (ee) {
                    return ac(ee, f, b)
                }), S.fallbackAbortableTasks.clear(), ui(f, S, c.row, E);
                S.status = 4, E = Ca(f, b, D), S.status = 4, S.errorDigest = E, tc(f, S), S.parentFlushed && f.clientRenderedBoundaries.push(S)
            }
            S.pendingTasks--, E = S.row, E !== null && --E.pendingTasks === 0 && Ot(f, E), S.fallbackAbortableTasks.forEach(function (ee) {
                return ac(ee, f, b)
            }), S.fallbackAbortableTasks.clear()
        }
        c = c.row, c !== null && --c.pendingTasks === 0 && Ot(f, c), f.allPendingTasks--, f.allPendingTasks === 0 && ic(f)
    }

    function nc(c, f) {
        try {
            var b = c.renderState,
                S = b.onHeaders;
            if (S) {
                var E = b.headers;
                if (E) {
                    b.headers = null;
                    var D = E.preconnects;
                    if (E.fontPreloads && (D && (D += ", "), D += E.fontPreloads), E.highImagePreloads && (D && (D += ", "), D += E.highImagePreloads), !f) {
                        var U = b.styles.values(),
                            ee = U.next();
                        e: for (; 0 < E.remainingCapacity && !ee.done; ee = U.next())
                            for (var Y = ee.value.sheets.values(), te = Y.next(); 0 < E.remainingCapacity && !te.done; te = Y.next()) {
                                var ue = te.value,
                                    ie = ue.props,
                                    be = ie.href,
                                    we = ue.props,
                                    Pe = Ut(we.href, "style", {
                                        crossOrigin: we.crossOrigin,
                                        integrity: we.integrity,
                                        nonce: we.nonce,
                                        type: we.type,
                                        fetchPriority: we.fetchPriority,
                                        referrerPolicy: we.referrerPolicy,
                                        media: we.media
                                    });
                                if (0 <= (E.remainingCapacity -= Pe.length + 2)) b.resets.style[be] = ga, D && (D += ", "), D += Pe, b.resets.style[be] = typeof ie.crossOrigin == "string" || typeof ie.integrity == "string" ? [ie.crossOrigin, ie.integrity] : ga;
                                else break e
                            }
                    }
                    S(D ? {
                        Link: D
                    } : {})
                }
            }
        } catch (He) {
            Ca(c, He, {})
        }
    }

    function lc(c) {
        c.trackedPostpones === null && nc(c, !0), c.trackedPostpones === null && Wn(c), c.onShellError = tn, c = c.onShellReady, c()
    }

    function ic(c) {
        nc(c, c.trackedPostpones === null ? !0 : c.completedRootSegment === null || c.completedRootSegment.status !== 5), Wn(c), c = c.onAllReady, c()
    }

    function cs(c, f) {
        if (f.chunks.length === 0 && f.children.length === 1 && f.children[0].boundary === null && f.children[0].id === -1) {
            var b = f.children[0];
            b.id = f.id, b.parentFlushed = !0, b.status !== 1 && b.status !== 3 && b.status !== 4 || cs(c, b)
        } else c.completedSegments.push(f)
    }

    function ui(c, f, b, S) {
        if (b !== null && (--b.pendingTasks === 0 ? Ot(c, b) : b.together && Js(c, b)), c.allPendingTasks--, f === null) {
            if (S !== null && S.parentFlushed) {
                if (c.completedRootSegment !== null) throw Error(i(389));
                c.completedRootSegment = S
            }
            c.pendingRootTasks--, c.pendingRootTasks === 0 && lc(c)
        } else if (f.pendingTasks--, f.status !== 4)
            if (f.pendingTasks === 0) {
                if (f.status === 0 && (f.status = 1), S !== null && S.parentFlushed && (S.status === 1 || S.status === 3) && cs(f, S), f.parentFlushed && c.completedBoundaries.push(f), f.status === 1) b = f.row, b !== null && _l(b.hoistables, f.contentState), pr(c, f) || (f.fallbackAbortableTasks.forEach(so, c), f.fallbackAbortableTasks.clear(), b !== null && --b.pendingTasks === 0 && Ot(c, b)), c.pendingRootTasks === 0 && c.trackedPostpones === null && f.contentPreamble !== null && Wn(c);
                else if (f.status === 5 && (f = f.row, f !== null)) {
                    if (c.trackedPostpones !== null) {
                        b = c.trackedPostpones;
                        var E = f.next;
                        if (E !== null && (S = E.boundaries, S !== null))
                            for (E.boundaries = null, E = 0; E < S.length; E++) {
                                var D = S[E];
                                Bl(c, b, D), ui(c, D, null, null)
                            }
                    } --f.pendingTasks === 0 && Ot(c, f)
                }
            } else S === null || !S.parentFlushed || S.status !== 1 && S.status !== 3 || (cs(f, S), f.completedSegments.length === 1 && f.parentFlushed && c.partialBoundaries.push(f)), f = f.row, f !== null && f.together && Js(c, f);
        c.allPendingTasks === 0 && ic(c)
    }

    function au(c) {
        if (c.status !== 14 && c.status !== 13) {
            var f = Ti,
                b = mt.H;
            mt.H = qo;
            var S = mt.A;
            mt.A = Hu;
            var E = Oa;
            Oa = c;
            var D = Is;
            Is = c.resumableState;
            try {
                var U = c.pingedTasks,
                    ee;
                for (ee = 0; ee < U.length; ee++) {
                    var Y = U[ee],
                        te = c,
                        ue = Y.blockedSegment;
                    if (ue === null) {
                        var ie = te;
                        if (Y.replay.pendingTasks !== 0) {
                            jl(Y.context);
                            try {
                                if (typeof Y.replay.slots == "number" ? $s(ie, Y, Y.replay.slots, Y.node, Y.childIndex) : ec(ie, Y), Y.replay.pendingTasks === 1 && 0 < Y.replay.nodes.length) throw Error(i(488));
                                Y.replay.pendingTasks--, Y.abortSet.delete(Y), ui(ie, Y.blockedBoundary, Y.row, null)
                            } catch (jt) {
                                zi();
                                var be = jt === Ga ? hr() : jt;
                                if (typeof be == "object" && be !== null && typeof be.then == "function") {
                                    var we = Y.ping;
                                    be.then(we, we), Y.thenableState = jt === Ga ? vr() : null
                                } else {
                                    Y.replay.pendingTasks--, Y.abortSet.delete(Y);
                                    var Pe = ci(Y.componentStack);
                                    te = void 0;
                                    var He = ie,
                                        Ue = Y.blockedBoundary,
                                        Le = ie.status === 12 ? ie.fatalError : be,
                                        Ve = Y.replay.nodes,
                                        xt = Y.replay.slots;
                                    te = Ca(He, Le, Pe), Hl(He, Ue, Ve, xt, Le, te), ie.pendingRootTasks--, ie.pendingRootTasks === 0 && lc(ie), ie.allPendingTasks--, ie.allPendingTasks === 0 && ic(ie)
                                }
                            }
                        }
                    } else if (ie = void 0, He = ue, He.status === 0) {
                        He.status = 6, jl(Y.context);
                        var Gt = He.children.length,
                            qe = He.chunks.length;
                        try {
                            ec(te, Y), Ol(He.chunks, te.renderState, He.lastPushedText, He.textEmbedded), Y.abortSet.delete(Y), He.status = 1, ui(te, Y.blockedBoundary, Y.row, He)
                        } catch (jt) {
                            zi(), He.children.length = Gt, He.chunks.length = qe;
                            var $e = jt === Ga ? hr() : te.status === 12 ? te.fatalError : jt;
                            if (te.status === 12 && te.trackedPostpones !== null) {
                                var lt = te.trackedPostpones,
                                    zt = ci(Y.componentStack);
                                Y.abortSet.delete(Y), Ca(te, $e, zt), oi(te, lt, Y, He), ui(te, Y.blockedBoundary, Y.row, He)
                            } else if (typeof $e == "object" && $e !== null && typeof $e.then == "function") {
                                He.status = 0, Y.thenableState = jt === Ga ? vr() : null;
                                var tt = Y.ping;
                                $e.then(tt, tt)
                            } else {
                                var aa = ci(Y.componentStack);
                                Y.abortSet.delete(Y), He.status = 4;
                                var pt = Y.blockedBoundary,
                                    Qt = Y.row;
                                if (Qt !== null && --Qt.pendingTasks === 0 && Ot(te, Qt), te.allPendingTasks--, ie = Ca(te, $e, aa), pt === null) dl(te, $e);
                                else if (pt.pendingTasks--, pt.status !== 4) {
                                    pt.status = 4, pt.errorDigest = ie, tc(te, pt);
                                    var Bt = pt.row;
                                    Bt !== null && --Bt.pendingTasks === 0 && Ot(te, Bt), pt.parentFlushed && te.clientRenderedBoundaries.push(pt), te.pendingRootTasks === 0 && te.trackedPostpones === null && pt.contentPreamble !== null && Wn(te)
                                }
                                te.allPendingTasks === 0 && ic(te)
                            }
                        }
                    }
                }
                U.splice(0, ee), c.destination !== null && wr(c, c.destination)
            } catch (jt) {
                Ca(c, jt, {}), dl(c, jt)
            } finally {
                Is = D, mt.H = b, mt.A = S, b === qo && jl(f), Oa = E
            }
        }
    }

    function Li(c, f, b) {
        f.preambleChildren.length && b.push(f.preambleChildren);
        for (var S = !1, E = 0; E < f.children.length; E++) S = za(c, f.children[E], b) || S;
        return S
    }

    function za(c, f, b) {
        var S = f.boundary;
        if (S === null) return Li(c, f, b);
        var E = S.contentPreamble,
            D = S.fallbackPreamble;
        if (E === null || D === null) return !1;
        switch (S.status) {
            case 1:
                if (El(c.renderState, E), c.byteSize += S.byteSize, f = S.completedSegments[0], !f) throw Error(i(391));
                return Li(c, f, b);
            case 5:
                if (c.trackedPostpones !== null) return !0;
            case 4:
                if (f.status === 1) return El(c.renderState, D), Li(c, f, b);
            default:
                return !0
        }
    }

    function Wn(c) {
        if (c.completedRootSegment && c.completedPreambleSegments === null) {
            var f = [],
                b = c.byteSize,
                S = za(c, c.completedRootSegment, f),
                E = c.renderState.preamble;
            S === !1 || E.headChunks && E.bodyChunks ? c.completedPreambleSegments = f : c.byteSize = b
        }
    }

    function Ui(c, f, b, S) {
        switch (b.parentFlushed = !0, b.status) {
            case 0:
                b.id = c.nextSegmentId++;
            case 5:
                return S = b.id, b.lastPushedText = !1, b.textEmbedded = !1, c = c.renderState, f.push('<template id="'), f.push(c.placeholderPrefix), c = S.toString(16), f.push(c), f.push('"></template>');
            case 1:
                b.status = 2;
                var E = !0,
                    D = b.chunks,
                    U = 0;
                b = b.children;
                for (var ee = 0; ee < b.length; ee++) {
                    for (E = b[ee]; U < E.index; U++) f.push(D[U]);
                    E = fi(c, f, E, S)
                }
                for (; U < D.length - 1; U++) f.push(D[U]);
                return U < D.length && (E = f.push(D[U])), E;
            case 3:
                return !0;
            default:
                throw Error(i(390))
        }
    }
    var di = 0;

    function fi(c, f, b, S) {
        var E = b.boundary;
        if (E === null) return Ui(c, f, b, S);
        if (E.parentFlushed = !0, E.status === 4) {
            var D = E.row;
            return D !== null && --D.pendingTasks === 0 && Ot(c, D), c.renderState.generateStaticMarkup || (E = E.errorDigest, f.push("<!--$!-->"), f.push("<template"), E && (f.push(' data-dgst="'), E = P(E), f.push(E), f.push('"')), f.push("></template>")), Ui(c, f, b, S), c = c.renderState.generateStaticMarkup ? !0 : f.push("<!--/$-->"), c
        }
        if (E.status !== 1) return E.status === 0 && (E.rootSegmentID = c.nextSegmentId++), 0 < E.completedSegments.length && c.partialBoundaries.push(E), Ml(f, c.renderState, E.rootSegmentID), S && _l(S, E.fallbackState), Ui(c, f, b, S), f.push("<!--/$-->");
        if (!fl && pr(c, E) && di + E.byteSize > c.progressiveChunkSize) return E.rootSegmentID = c.nextSegmentId++, c.completedBoundaries.push(E), Ml(f, c.renderState, E.rootSegmentID), Ui(c, f, b, S), f.push("<!--/$-->");
        if (di += E.byteSize, S && _l(S, E.contentState), b = E.row, b !== null && pr(c, E) && --b.pendingTasks === 0 && Ot(c, b), c.renderState.generateStaticMarkup || f.push("<!--$-->"), b = E.completedSegments, b.length !== 1) throw Error(i(391));
        return fi(c, f, b[0], S), c = c.renderState.generateStaticMarkup ? !0 : f.push("<!--/$-->"), c
    }

    function rc(c, f, b, S) {
        return Zn(f, c.renderState, b.parentFormatContext, b.id), fi(c, f, b, S), $c(f, b.parentFormatContext)
    }

    function sc(c, f, b) {
        di = b.byteSize;
        for (var S = b.completedSegments, E = 0; E < S.length; E++) Bi(c, f, b, S[E]);
        S.length = 0, S = b.row, S !== null && pr(c, b) && --S.pendingTasks === 0 && Ot(c, S), Wr(f, b.contentState, c.renderState), S = c.resumableState, c = c.renderState, E = b.rootSegmentID, b = b.contentState;
        var D = c.stylesToHoist;
        return c.stylesToHoist = !1, f.push(c.startInlineScript), f.push(">"), D ? ((S.instructions & 4) === 0 && (S.instructions |= 4, f.push('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};')), (S.instructions & 2) === 0 && (S.instructions |= 2, f.push(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`)), (S.instructions & 8) === 0 ? (S.instructions |= 8, f.push(`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`)) : f.push('$RR("')) : ((S.instructions & 2) === 0 && (S.instructions |= 2, f.push(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`)), f.push('$RC("')), S = E.toString(16), f.push(c.boundaryPrefix), f.push(S), f.push('","'), f.push(c.segmentPrefix), f.push(S), D ? (f.push('",'), Qo(f, b)) : f.push('"'), b = f.push(")<\/script>"), Si(f, c) && b
    }

    function Bi(c, f, b, S) {
        if (S.status === 2) return !0;
        var E = b.contentState,
            D = S.id;
        if (D === -1) {
            if ((S.id = b.rootSegmentID) === -1) throw Error(i(392));
            return rc(c, f, S, E)
        }
        return D === b.rootSegmentID ? rc(c, f, S, E) : (rc(c, f, S, E), b = c.resumableState, c = c.renderState, f.push(c.startInlineScript), f.push(">"), (b.instructions & 1) === 0 ? (b.instructions |= 1, f.push('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')) : f.push('$RS("'), f.push(c.segmentPrefix), D = D.toString(16), f.push(D), f.push('","'), f.push(c.placeholderPrefix), f.push(D), f = f.push('")<\/script>'), f)
    }
    var fl = !1;

    function wr(c, f) {
        try {
            if (!(0 < c.pendingRootTasks)) {
                var b, S = c.completedRootSegment;
                if (S !== null) {
                    if (S.status === 5) return;
                    var E = c.completedPreambleSegments;
                    if (E === null) return;
                    di = c.byteSize;
                    var D = c.resumableState,
                        U = c.renderState,
                        ee = U.preamble,
                        Y = ee.htmlChunks,
                        te = ee.headChunks,
                        ue;
                    if (Y) {
                        for (ue = 0; ue < Y.length; ue++) f.push(Y[ue]);
                        if (te)
                            for (ue = 0; ue < te.length; ue++) f.push(te[ue]);
                        else {
                            var ie = It("head");
                            f.push(ie), f.push(">")
                        }
                    } else if (te)
                        for (ue = 0; ue < te.length; ue++) f.push(te[ue]);
                    var be = U.charsetChunks;
                    for (ue = 0; ue < be.length; ue++) f.push(be[ue]);
                    be.length = 0, U.preconnects.forEach(bn, f), U.preconnects.clear();
                    var we = U.viewportChunks;
                    for (ue = 0; ue < we.length; ue++) f.push(we[ue]);
                    we.length = 0, U.fontPreloads.forEach(bn, f), U.fontPreloads.clear(), U.highImagePreloads.forEach(bn, f), U.highImagePreloads.clear(), cl = U, U.styles.forEach(qa, f), cl = null;
                    var Pe = U.importMapChunks;
                    for (ue = 0; ue < Pe.length; ue++) f.push(Pe[ue]);
                    Pe.length = 0, U.bootstrapScripts.forEach(bn, f), U.scripts.forEach(bn, f), U.scripts.clear(), U.bulkPreloads.forEach(bn, f), U.bulkPreloads.clear(), D.instructions |= 32;
                    var He = U.hoistableChunks;
                    for (ue = 0; ue < He.length; ue++) f.push(He[ue]);
                    for (D = He.length = 0; D < E.length; D++) {
                        var Ue = E[D];
                        for (U = 0; U < Ue.length; U++) fi(c, f, Ue[U], null)
                    }
                    var Le = c.renderState.preamble,
                        Ve = Le.headChunks;
                    if (Le.htmlChunks || Ve) {
                        var xt = In("head");
                        f.push(xt)
                    }
                    var Gt = Le.bodyChunks;
                    if (Gt)
                        for (E = 0; E < Gt.length; E++) f.push(Gt[E]);
                    fi(c, f, S, null), c.completedRootSegment = null;
                    var qe = c.renderState;
                    if (c.allPendingTasks !== 0 || c.clientRenderedBoundaries.length !== 0 || c.completedBoundaries.length !== 0 || c.trackedPostpones !== null && (c.trackedPostpones.rootNodes.length !== 0 || c.trackedPostpones.rootSlots !== null)) {
                        var $e = c.resumableState;
                        if (($e.instructions & 64) === 0) {
                            if ($e.instructions |= 64, f.push(qe.startInlineScript), ($e.instructions & 32) === 0) {
                                $e.instructions |= 32;
                                var lt = "_" + $e.idPrefix + "R_";
                                f.push(' id="');
                                var zt = P(lt);
                                f.push(zt), f.push('"')
                            }
                            f.push(">"), f.push("requestAnimationFrame(function(){$RT=performance.now()});"), f.push("<\/script>")
                        }
                    }
                    Si(f, qe)
                }
                var tt = c.renderState;
                S = 0;
                var aa = tt.viewportChunks;
                for (S = 0; S < aa.length; S++) f.push(aa[S]);
                aa.length = 0, tt.preconnects.forEach(bn, f), tt.preconnects.clear(), tt.fontPreloads.forEach(bn, f), tt.fontPreloads.clear(), tt.highImagePreloads.forEach(bn, f), tt.highImagePreloads.clear(), tt.styles.forEach(Fs, f), tt.scripts.forEach(bn, f), tt.scripts.clear(), tt.bulkPreloads.forEach(bn, f), tt.bulkPreloads.clear();
                var pt = tt.hoistableChunks;
                for (S = 0; S < pt.length; S++) f.push(pt[S]);
                pt.length = 0;
                var Qt = c.clientRenderedBoundaries;
                for (b = 0; b < Qt.length; b++) {
                    var Bt = Qt[b];
                    tt = f;
                    var jt = c.resumableState,
                        Xa = c.renderState,
                        Gl = Bt.rootSegmentID,
                        xn = Bt.errorDigest;
                    tt.push(Xa.startInlineScript), tt.push(">"), (jt.instructions & 4) === 0 ? (jt.instructions |= 4, tt.push('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("')) : tt.push('$RX("'), tt.push(Xa.boundaryPrefix);
                    var Va = Gl.toString(16);
                    if (tt.push(Va), tt.push('"'), xn) {
                        tt.push(",");
                        var Kn = Pr(xn || "");
                        tt.push(Kn)
                    }
                    var na = tt.push(")<\/script>");
                    if (!na) {
                        c.destination = null, b++, Qt.splice(0, b);
                        return
                    }
                }
                Qt.splice(0, b);
                var nn = c.completedBoundaries;
                for (b = 0; b < nn.length; b++)
                    if (!sc(c, f, nn[b])) {
                        c.destination = null, b++, nn.splice(0, b);
                        return
                    } nn.splice(0, b), fl = !0;
                var ln = c.partialBoundaries;
                for (b = 0; b < ln.length; b++) {
                    var Jt = ln[b];
                    e: {
                        Qt = c,
                            Bt = f,
                            di = Jt.byteSize;
                        var ua = Jt.completedSegments;
                        for (na = 0; na < ua.length; na++)
                            if (!Bi(Qt, Bt, Jt, ua[na])) {
                                na++, ua.splice(0, na);
                                var rn = !1;
                                break e
                            } ua.splice(0, na);
                        var At = Jt.row; At !== null && At.together && Jt.pendingTasks === 1 && (At.pendingTasks === 1 ? Pn(Qt, At, At.hoistables) : At.pendingTasks--),
                            rn = Wr(Bt, Jt.contentState, Qt.renderState)
                    }
                    if (!rn) {
                        c.destination = null, b++, ln.splice(0, b);
                        return
                    }
                }
                ln.splice(0, b), fl = !1;
                var Ia = c.completedBoundaries;
                for (b = 0; b < Ia.length; b++)
                    if (!sc(c, f, Ia[b])) {
                        c.destination = null, b++, Ia.splice(0, b);
                        return
                    } Ia.splice(0, b)
            }
        } finally {
            fl = !1, c.allPendingTasks === 0 && c.clientRenderedBoundaries.length === 0 && c.completedBoundaries.length === 0 && (c.flushScheduled = !1, b = c.resumableState, b.hasBody && (ln = In("body"), f.push(ln)), b.hasHtml && (b = In("html"), f.push(b)), c.status = 14, f.push(null), c.destination = null)
        }
    }

    function Jn(c) {
        if (c.flushScheduled === !1 && c.pingedTasks.length === 0 && c.destination !== null) {
            c.flushScheduled = !0;
            var f = c.destination;
            f ? wr(c, f) : c.flushScheduled = !1
        }
    }

    function Cr(c, f) {
        if (c.status === 13) c.status = 14, f.destroy(c.fatalError);
        else if (c.status !== 14 && c.destination === null) {
            c.destination = f;
            try {
                wr(c, f)
            } catch (b) {
                Ca(c, b, {}), dl(c, b)
            }
        }
    }

    function co(c, f) {
        (c.status === 11 || c.status === 10) && (c.status = 12);
        try {
            var b = c.abortableTasks;
            if (0 < b.size) {
                var S = f === void 0 ? Error(i(432)) : typeof f == "object" && f !== null && typeof f.then == "function" ? Error(i(530)) : f;
                c.fatalError = S, b.forEach(function (E) {
                    return ac(E, c, S)
                }), b.clear()
            }
            c.destination !== null && wr(c, c.destination)
        } catch (E) {
            Ca(c, E, {}), dl(c, E)
        }
    }

    function Ya(c, f, b) {
        if (f === null) b.rootNodes.push(c);
        else {
            var S = b.workingMap,
                E = S.get(f);
            E === void 0 && (E = [f[1], f[2],
            [], null
            ], S.set(f, E), Ya(E, f[0], b)), E[2].push(c)
        }
    }

    function Fl() { }

    function os(c, f, b, S) {
        var E = !1,
            D = null,
            U = "",
            ee = !1;
        if (f = Jc(f ? f.identifierPrefix : void 0), c = eu(c, f, Ln(f, b), ca(0, null, 0, null), 1 / 0, Fl, void 0, function () {
            ee = !0
        }, void 0, void 0, void 0), c.flushScheduled = c.destination !== null, au(c), c.status === 10 && (c.status = 11), c.trackedPostpones === null && nc(c, c.pendingRootTasks === 0), co(c, S), Cr(c, {
            push: function (Y) {
                return Y !== null && (U += Y), !0
            },
            destroy: function (Y) {
                E = !0, D = Y
            }
        }), E && D !== S) throw D;
        if (!ee) throw Error(i(426));
        return U
    }
    return Rd.renderToStaticMarkup = function (c, f) {
        return os(c, f, !0, 'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')
    }, Rd.renderToString = function (c, f) {
        return os(c, f, !1, 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')
    }, Rd.version = "19.2.4", Rd
}
var Lo = {};
var n0;

function f3() {
    if (n0) return Lo;
    n0 = 1;
    var n = wg(),
        u = Tg();

    function i(r) {
        var o = "https://react.dev/errors/" + r;
        if (1 < arguments.length) {
            o += "?args[]=" + encodeURIComponent(arguments[1]);
            for (var v = 2; v < arguments.length; v++) o += "&args[]=" + encodeURIComponent(arguments[v])
        }
        return "Minified React error #" + r + "; visit " + o + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
    }
    var d = Symbol.for("react.transitional.element"),
        g = Symbol.for("react.portal"),
        x = Symbol.for("react.fragment"),
        p = Symbol.for("react.strict_mode"),
        w = Symbol.for("react.profiler"),
        M = Symbol.for("react.consumer"),
        T = Symbol.for("react.context"),
        R = Symbol.for("react.forward_ref"),
        A = Symbol.for("react.suspense"),
        z = Symbol.for("react.suspense_list"),
        O = Symbol.for("react.memo"),
        L = Symbol.for("react.lazy"),
        G = Symbol.for("react.scope"),
        Z = Symbol.for("react.activity"),
        ce = Symbol.for("react.legacy_hidden"),
        re = Symbol.for("react.memo_cache_sentinel"),
        ve = Symbol.for("react.view_transition"),
        he = Symbol.iterator;

    function Se(r) {
        return r === null || typeof r != "object" ? null : (r = he && r[he] || r["@@iterator"], typeof r == "function" ? r : null)
    }
    var xe = Array.isArray;

    function ft(r, o) {
        var v = r.length & 3,
            y = r.length - v,
            C = o;
        for (o = 0; o < y;) {
            var _ = r.charCodeAt(o) & 255 | (r.charCodeAt(++o) & 255) << 8 | (r.charCodeAt(++o) & 255) << 16 | (r.charCodeAt(++o) & 255) << 24;
            ++o, _ = 3432918353 * (_ & 65535) + ((3432918353 * (_ >>> 16) & 65535) << 16) & 4294967295, _ = _ << 15 | _ >>> 17, _ = 461845907 * (_ & 65535) + ((461845907 * (_ >>> 16) & 65535) << 16) & 4294967295, C ^= _, C = C << 13 | C >>> 19, C = 5 * (C & 65535) + ((5 * (C >>> 16) & 65535) << 16) & 4294967295, C = (C & 65535) + 27492 + (((C >>> 16) + 58964 & 65535) << 16)
        }
        switch (_ = 0, v) {
            case 3:
                _ ^= (r.charCodeAt(o + 2) & 255) << 16;
            case 2:
                _ ^= (r.charCodeAt(o + 1) & 255) << 8;
            case 1:
                _ ^= r.charCodeAt(o) & 255, _ = 3432918353 * (_ & 65535) + ((3432918353 * (_ >>> 16) & 65535) << 16) & 4294967295, _ = _ << 15 | _ >>> 17, C ^= 461845907 * (_ & 65535) + ((461845907 * (_ >>> 16) & 65535) << 16) & 4294967295
        }
        return C ^= r.length, C ^= C >>> 16, C = 2246822507 * (C & 65535) + ((2246822507 * (C >>> 16) & 65535) << 16) & 4294967295, C ^= C >>> 13, C = 3266489909 * (C & 65535) + ((3266489909 * (C >>> 16) & 65535) << 16) & 4294967295, (C ^ C >>> 16) >>> 0
    }
    var _e = new MessageChannel,
        De = [];
    _e.port1.onmessage = function () {
        var r = De.shift();
        r && r()
    };

    function ta(r) {
        De.push(r), _e.port2.postMessage(null)
    }

    function sa(r) {
        setTimeout(function () {
            throw r
        })
    }
    var yt = Promise,
        Oe = typeof queueMicrotask == "function" ? queueMicrotask : function (r) {
            yt.resolve(null).then(r).catch(sa)
        },
        Ye = null,
        Ee = 0;

    function B(r, o) {
        if (o.byteLength !== 0)
            if (2048 < o.byteLength) 0 < Ee && (r.enqueue(new Uint8Array(Ye.buffer, 0, Ee)), Ye = new Uint8Array(2048), Ee = 0), r.enqueue(o);
            else {
                var v = Ye.length - Ee;
                v < o.byteLength && (v === 0 ? r.enqueue(Ye) : (Ye.set(o.subarray(0, v), Ee), r.enqueue(Ye), o = o.subarray(v)), Ye = new Uint8Array(2048), Ee = 0), Ye.set(o, Ee), Ee += o.byteLength
            }
    }

    function P(r, o) {
        return B(r, o), !0
    }

    function Te(r) {
        Ye && 0 < Ee && (r.enqueue(new Uint8Array(Ye.buffer, 0, Ee)), Ye = null, Ee = 0)
    }
    var ht = new TextEncoder;

    function fe(r) {
        return ht.encode(r)
    }

    function ae(r) {
        return ht.encode(r)
    }

    function mt(r) {
        return r.byteLength
    }

    function nt(r, o) {
        typeof r.error == "function" ? r.error(o) : r.close()
    }
    var gt = Object.assign,
        Ze = Object.prototype.hasOwnProperty,
        ga = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),
        cl = {},
        er = {};

    function Cl(r) {
        return Ze.call(er, r) ? !0 : Ze.call(cl, r) ? !1 : ga.test(r) ? er[r] = !0 : (cl[r] = !0, !1)
    }
    var Jc = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),
        ca = new Map([
            ["acceptCharset", "accept-charset"],
            ["htmlFor", "for"],
            ["httpEquiv", "http-equiv"],
            ["crossOrigin", "crossorigin"],
            ["accentHeight", "accent-height"],
            ["alignmentBaseline", "alignment-baseline"],
            ["arabicForm", "arabic-form"],
            ["baselineShift", "baseline-shift"],
            ["capHeight", "cap-height"],
            ["clipPath", "clip-path"],
            ["clipRule", "clip-rule"],
            ["colorInterpolation", "color-interpolation"],
            ["colorInterpolationFilters", "color-interpolation-filters"],
            ["colorProfile", "color-profile"],
            ["colorRendering", "color-rendering"],
            ["dominantBaseline", "dominant-baseline"],
            ["enableBackground", "enable-background"],
            ["fillOpacity", "fill-opacity"],
            ["fillRule", "fill-rule"],
            ["floodColor", "flood-color"],
            ["floodOpacity", "flood-opacity"],
            ["fontFamily", "font-family"],
            ["fontSize", "font-size"],
            ["fontSizeAdjust", "font-size-adjust"],
            ["fontStretch", "font-stretch"],
            ["fontStyle", "font-style"],
            ["fontVariant", "font-variant"],
            ["fontWeight", "font-weight"],
            ["glyphName", "glyph-name"],
            ["glyphOrientationHorizontal", "glyph-orientation-horizontal"],
            ["glyphOrientationVertical", "glyph-orientation-vertical"],
            ["horizAdvX", "horiz-adv-x"],
            ["horizOriginX", "horiz-origin-x"],
            ["imageRendering", "image-rendering"],
            ["letterSpacing", "letter-spacing"],
            ["lightingColor", "lighting-color"],
            ["markerEnd", "marker-end"],
            ["markerMid", "marker-mid"],
            ["markerStart", "marker-start"],
            ["overlinePosition", "overline-position"],
            ["overlineThickness", "overline-thickness"],
            ["paintOrder", "paint-order"],
            ["panose-1", "panose-1"],
            ["pointerEvents", "pointer-events"],
            ["renderingIntent", "rendering-intent"],
            ["shapeRendering", "shape-rendering"],
            ["stopColor", "stop-color"],
            ["stopOpacity", "stop-opacity"],
            ["strikethroughPosition", "strikethrough-position"],
            ["strikethroughThickness", "strikethrough-thickness"],
            ["strokeDasharray", "stroke-dasharray"],
            ["strokeDashoffset", "stroke-dashoffset"],
            ["strokeLinecap", "stroke-linecap"],
            ["strokeLinejoin", "stroke-linejoin"],
            ["strokeMiterlimit", "stroke-miterlimit"],
            ["strokeOpacity", "stroke-opacity"],
            ["strokeWidth", "stroke-width"],
            ["textAnchor", "text-anchor"],
            ["textDecoration", "text-decoration"],
            ["textRendering", "text-rendering"],
            ["transformOrigin", "transform-origin"],
            ["underlinePosition", "underline-position"],
            ["underlineThickness", "underline-thickness"],
            ["unicodeBidi", "unicode-bidi"],
            ["unicodeRange", "unicode-range"],
            ["unitsPerEm", "units-per-em"],
            ["vAlphabetic", "v-alphabetic"],
            ["vHanging", "v-hanging"],
            ["vIdeographic", "v-ideographic"],
            ["vMathematical", "v-mathematical"],
            ["vectorEffect", "vector-effect"],
            ["vertAdvY", "vert-adv-y"],
            ["vertOriginX", "vert-origin-x"],
            ["vertOriginY", "vert-origin-y"],
            ["wordSpacing", "word-spacing"],
            ["writingMode", "writing-mode"],
            ["xmlnsXlink", "xmlns:xlink"],
            ["xHeight", "x-height"]
        ]),
        Ds = /["'&<>]/;

    function Xe(r) {
        if (typeof r == "boolean" || typeof r == "number" || typeof r == "bigint") return "" + r;
        r = "" + r;
        var o = Ds.exec(r);
        if (o) {
            var v = "",
                y, C = 0;
            for (y = o.index; y < r.length; y++) {
                switch (r.charCodeAt(y)) {
                    case 34:
                        o = "&quot;";
                        break;
                    case 38:
                        o = "&amp;";
                        break;
                    case 39:
                        o = "&#x27;";
                        break;
                    case 60:
                        o = "&lt;";
                        break;
                    case 62:
                        o = "&gt;";
                        break;
                    default:
                        continue
                }
                C !== y && (v += r.slice(C, y)), C = y + 1, v += o
            }
            r = C !== y ? v + r.slice(C, y) : v
        }
        return r
    }
    var Nl = /([A-Z])/g,
        tr = /^ms-/,
        ks = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;

    function ar(r) {
        return ks.test("" + r) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : r
    }
    var Tl = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
        ma = u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
        Ls = {
            pending: !1,
            data: null,
            method: null,
            action: null
        },
        En = ma.d;
    ma.d = {
        f: En.f,
        r: En.r,
        D: ac,
        C: nc,
        L: lc,
        m: ic,
        X: ui,
        S: cs,
        M: au
    };
    var Mn = [],
        yi = null;
    ae('"></template>');
    var gn = ae("<script"),
        ot = ae("<\/script>"),
        mn = ae('<script src="'),
        Io = ae('<script type="module" src="'),
        nr = ae(' nonce="'),
        Ra = ae(' integrity="'),
        Us = ae(' crossorigin="'),
        Kc = ae(' async=""><\/script>'),
        lr = ae("<style"),
        ni = /(<\/|<)(s)(cript)/gi;

    function pa(r, o, v, y) {
        return "" + o + (v === "s" ? "\\u0073" : "\\u0053") + y
    }
    var ol = ae('<script type="importmap">'),
        Fa = ae("<\/script>");

    function Bs(r, o, v, y, C, _) {
        v = typeof o == "string" ? o : o && o.script;
        var k = v === void 0 ? gn : ae('<script nonce="' + Xe(v) + '"'),
            V = typeof o == "string" ? void 0 : o && o.style,
            H = V === void 0 ? lr : ae('<style nonce="' + Xe(V) + '"'),
            I = r.idPrefix,
            q = [],
            ne = r.bootstrapScriptContent,
            ge = r.bootstrapScripts,
            me = r.bootstrapModules;
        if (ne !== void 0 && (q.push(k), Bl(q, r), q.push(St, fe(("" + ne).replace(ni, pa)), ot)), ne = [], y !== void 0 && (ne.push(ol), ne.push(fe(("" + JSON.stringify(y)).replace(ni, pa))), ne.push(Fa)), y = C ? {
            preconnects: "",
            fontPreloads: "",
            highImagePreloads: "",
            remainingCapacity: 2 + (typeof _ == "number" ? _ : 2e3)
        } : null, C = {
            placeholderPrefix: ae(I + "P:"),
            segmentPrefix: ae(I + "S:"),
            boundaryPrefix: ae(I + "B:"),
            startInlineScript: k,
            startInlineStyle: H,
            preamble: It(),
            externalRuntimeScript: null,
            bootstrapChunks: q,
            importMapChunks: ne,
            onHeaders: C,
            headers: y,
            resets: {
                font: {},
                dns: {},
                connect: {
                    default: {},
                    anonymous: {},
                    credentials: {}
                },
                image: {},
                style: {}
            },
            charsetChunks: [],
            viewportChunks: [],
            hoistableChunks: [],
            preconnects: new Set,
            fontPreloads: new Set,
            highImagePreloads: new Set,
            styles: new Map,
            bootstrapScripts: new Set,
            scripts: new Set,
            bulkPreloads: new Set,
            preloads: {
                images: new Map,
                stylesheets: new Map,
                scripts: new Map,
                moduleScripts: new Map
            },
            nonce: {
                script: v,
                style: V
            },
            hoistableState: null,
            stylesToHoist: !1
        }, ge !== void 0)
            for (y = 0; y < ge.length; y++) I = ge[y], V = k = void 0, H = {
                rel: "preload",
                as: "script",
                fetchPriority: "low",
                nonce: o
            }, typeof I == "string" ? H.href = _ = I : (H.href = _ = I.src, H.integrity = V = typeof I.integrity == "string" ? I.integrity : void 0, H.crossOrigin = k = typeof I == "string" || I.crossOrigin == null ? void 0 : I.crossOrigin === "use-credentials" ? "use-credentials" : ""), I = r, ne = _, I.scriptResources[ne] = null, I.moduleScriptResources[ne] = null, I = [], Ut(I, H), C.bootstrapScripts.add(I), q.push(mn, fe(Xe(_)), Lt), v && q.push(nr, fe(Xe(v)), Lt), typeof V == "string" && q.push(Ra, fe(Xe(V)), Lt), typeof k == "string" && q.push(Us, fe(Xe(k)), Lt), Bl(q, r), q.push(Kc);
        if (me !== void 0)
            for (o = 0; o < me.length; o++) V = me[o], _ = y = void 0, k = {
                rel: "modulepreload",
                fetchPriority: "low",
                nonce: v
            }, typeof V == "string" ? k.href = ge = V : (k.href = ge = V.src, k.integrity = _ = typeof V.integrity == "string" ? V.integrity : void 0, k.crossOrigin = y = typeof V == "string" || V.crossOrigin == null ? void 0 : V.crossOrigin === "use-credentials" ? "use-credentials" : ""), V = r, H = ge, V.scriptResources[H] = null, V.moduleScriptResources[H] = null, V = [], Ut(V, k), C.bootstrapScripts.add(V), q.push(Io, fe(Xe(ge)), Lt), v && q.push(nr, fe(Xe(v)), Lt), typeof _ == "string" && q.push(Ra, fe(Xe(_)), Lt), typeof y == "string" && q.push(Us, fe(Xe(y)), Lt), Bl(q, r), q.push(Kc);
        return C
    }

    function qc(r, o, v, y, C) {
        return {
            idPrefix: r === void 0 ? "" : r,
            nextFormID: 0,
            streamingFormat: 0,
            bootstrapScriptContent: v,
            bootstrapScripts: y,
            bootstrapModules: C,
            instructions: 0,
            hasBody: !1,
            hasHtml: !1,
            unknownResources: {},
            dnsResources: {},
            connectResources: {
                default: {},
                anonymous: {},
                credentials: {}
            },
            imageResources: {},
            styleResources: {},
            scriptResources: {},
            moduleUnknownResources: {},
            moduleScriptResources: {}
        }
    }

    function It() {
        return {
            htmlChunks: null,
            headChunks: null,
            bodyChunks: null
        }
    }

    function oa(r, o, v, y) {
        return {
            insertionMode: r,
            selectedValue: o,
            tagScope: v,
            viewTransition: y
        }
    }

    function ir(r) {
        return oa(r === "http://www.w3.org/2000/svg" ? 4 : r === "http://www.w3.org/1998/Math/MathML" ? 5 : 0, null, 0, null)
    }

    function In(r, o, v) {
        var y = r.tagScope & -25;
        switch (o) {
            case "noscript":
                return oa(2, null, y | 1, null);
            case "select":
                return oa(2, v.value != null ? v.value : v.defaultValue, y, null);
            case "svg":
                return oa(4, null, y, null);
            case "picture":
                return oa(2, null, y | 2, null);
            case "math":
                return oa(5, null, y, null);
            case "foreignObject":
                return oa(2, null, y, null);
            case "table":
                return oa(6, null, y, null);
            case "thead":
            case "tbody":
            case "tfoot":
                return oa(7, null, y, null);
            case "colgroup":
                return oa(9, null, y, null);
            case "tr":
                return oa(8, null, y, null);
            case "head":
                if (2 > r.insertionMode) return oa(3, null, y, null);
                break;
            case "html":
                if (r.insertionMode === 0) return oa(1, null, y, null)
        }
        return 6 <= r.insertionMode || 2 > r.insertionMode ? oa(2, null, y, null) : r.tagScope !== y ? oa(r.insertionMode, r.selectedValue, y, null) : r
    }

    function El(r) {
        return r === null ? null : {
            update: r.update,
            enter: "none",
            exit: "none",
            share: r.update,
            name: r.autoName,
            autoName: r.autoName,
            nameIdx: 0
        }
    }

    function Si(r, o) {
        return o.tagScope & 32 && (r.instructions |= 128), oa(o.insertionMode, o.selectedValue, o.tagScope | 12, El(o.viewTransition))
    }

    function Ml(r, o) {
        r = El(o.viewTransition);
        var v = o.tagScope | 16;
        return r !== null && r.share !== "none" && (v |= 64), oa(o.insertionMode, o.selectedValue, v, r)
    }
    var Zn = ae("<!-- -->");

    function $c(r, o, v, y) {
        return o === "" ? y : (y && r.push(Zn), r.push(fe(Xe(o))), !0)
    }
    var Hs = new Map,
        Pr = ae(' style="'),
        Zo = ae(":"),
        rr = ae(";");

    function sr(r, o) {
        if (typeof o != "object") throw Error(i(62));
        var v = !0,
            y;
        for (y in o)
            if (Ze.call(o, y)) {
                var C = o[y];
                if (C != null && typeof C != "boolean" && C !== "") {
                    if (y.indexOf("--") === 0) {
                        var _ = fe(Xe(y));
                        C = fe(Xe(("" + C).trim()))
                    } else _ = Hs.get(y), _ === void 0 && (_ = ae(Xe(y.replace(Nl, "-$1").toLowerCase().replace(tr, "-ms-"))), Hs.set(y, _)), C = typeof C == "number" ? C === 0 || Jc.has(y) ? fe("" + C) : fe(C + "px") : fe(Xe(("" + C).trim()));
                    v ? (v = !1, r.push(Pr, _, Zo, C)) : r.push(rr, _, Zo, C)
                }
            } v || r.push(Lt)
    }
    var ya = ae(" "),
        vn = ae('="'),
        Lt = ae('"'),
        Wr = ae('=""');

    function bn(r, o, v) {
        v && typeof v != "function" && typeof v != "symbol" && r.push(ya, fe(o), Wr)
    }

    function vt(r, o, v) {
        typeof v != "function" && typeof v != "symbol" && typeof v != "boolean" && r.push(ya, fe(o), vn, fe(Xe(v)), Lt)
    }
    var Sa = ae(Xe("javascript:throw new Error('React form unexpectedly submitted.')")),
        qa = ae('<input type="hidden"');

    function li(r, o) {
        this.push(qa), Fs(r), vt(this, "name", o), vt(this, "value", r), this.push(wi)
    }

    function Fs(r) {
        if (typeof r != "string") throw Error(i(480))
    }

    function Jr(r, o) {
        if (typeof o.$$FORM_ACTION == "function") {
            var v = r.nextFormID++;
            r = r.idPrefix + v;
            try {
                var y = o.$$FORM_ACTION(r);
                if (y) {
                    var C = y.data;
                    C?.forEach(Fs)
                }
                return y
            } catch (_) {
                if (typeof _ == "object" && _ !== null && typeof _.then == "function") throw _
            }
        }
        return null
    }

    function Qo(r, o, v, y, C, _, k, V) {
        var H = null;
        if (typeof y == "function") {
            var I = Jr(o, y);
            I !== null ? (V = I.name, y = I.action || "", C = I.encType, _ = I.method, k = I.target, H = I.data) : (r.push(ya, fe("formAction"), vn, Sa, Lt), k = _ = C = y = V = null, va(o, v))
        }
        return V != null && bt(r, "name", V), y != null && bt(r, "formAction", y), C != null && bt(r, "formEncType", C), _ != null && bt(r, "formMethod", _), k != null && bt(r, "formTarget", k), H
    }

    function bt(r, o, v) {
        switch (o) {
            case "className":
                vt(r, "class", v);
                break;
            case "tabIndex":
                vt(r, "tabindex", v);
                break;
            case "dir":
            case "role":
            case "viewBox":
            case "width":
            case "height":
                vt(r, o, v);
                break;
            case "style":
                sr(r, v);
                break;
            case "src":
            case "href":
                if (v === "") break;
            case "action":
            case "formAction":
                if (v == null || typeof v == "function" || typeof v == "symbol" || typeof v == "boolean") break;
                v = ar("" + v), r.push(ya, fe(o), vn, fe(Xe(v)), Lt);
                break;
            case "defaultValue":
            case "defaultChecked":
            case "innerHTML":
            case "suppressContentEditableWarning":
            case "suppressHydrationWarning":
            case "ref":
                break;
            case "autoFocus":
            case "multiple":
            case "muted":
                bn(r, o.toLowerCase(), v);
                break;
            case "xlinkHref":
                if (typeof v == "function" || typeof v == "symbol" || typeof v == "boolean") break;
                v = ar("" + v), r.push(ya, fe("xlink:href"), vn, fe(Xe(v)), Lt);
                break;
            case "contentEditable":
            case "spellCheck":
            case "draggable":
            case "value":
            case "autoReverse":
            case "externalResourcesRequired":
            case "focusable":
            case "preserveAlpha":
                typeof v != "function" && typeof v != "symbol" && r.push(ya, fe(o), vn, fe(Xe(v)), Lt);
                break;
            case "inert":
            case "allowFullScreen":
            case "async":
            case "autoPlay":
            case "controls":
            case "default":
            case "defer":
            case "disabled":
            case "disablePictureInPicture":
            case "disableRemotePlayback":
            case "formNoValidate":
            case "hidden":
            case "loop":
            case "noModule":
            case "noValidate":
            case "open":
            case "playsInline":
            case "readOnly":
            case "required":
            case "reversed":
            case "scoped":
            case "seamless":
            case "itemScope":
                v && typeof v != "function" && typeof v != "symbol" && r.push(ya, fe(o), Wr);
                break;
            case "capture":
            case "download":
                v === !0 ? r.push(ya, fe(o), Wr) : v !== !1 && typeof v != "function" && typeof v != "symbol" && r.push(ya, fe(o), vn, fe(Xe(v)), Lt);
                break;
            case "cols":
            case "rows":
            case "size":
            case "span":
                typeof v != "function" && typeof v != "symbol" && !isNaN(v) && 1 <= v && r.push(ya, fe(o), vn, fe(Xe(v)), Lt);
                break;
            case "rowSpan":
            case "start":
                typeof v == "function" || typeof v == "symbol" || isNaN(v) || r.push(ya, fe(o), vn, fe(Xe(v)), Lt);
                break;
            case "xlinkActuate":
                vt(r, "xlink:actuate", v);
                break;
            case "xlinkArcrole":
                vt(r, "xlink:arcrole", v);
                break;
            case "xlinkRole":
                vt(r, "xlink:role", v);
                break;
            case "xlinkShow":
                vt(r, "xlink:show", v);
                break;
            case "xlinkTitle":
                vt(r, "xlink:title", v);
                break;
            case "xlinkType":
                vt(r, "xlink:type", v);
                break;
            case "xmlBase":
                vt(r, "xml:base", v);
                break;
            case "xmlLang":
                vt(r, "xml:lang", v);
                break;
            case "xmlSpace":
                vt(r, "xml:space", v);
                break;
            default:
                if ((!(2 < o.length) || o[0] !== "o" && o[0] !== "O" || o[1] !== "n" && o[1] !== "N") && (o = ca.get(o) || o, Cl(o))) {
                    switch (typeof v) {
                        case "function":
                        case "symbol":
                            return;
                        case "boolean":
                            var y = o.toLowerCase().slice(0, 5);
                            if (y !== "data-" && y !== "aria-") return
                    }
                    r.push(ya, fe(o), vn, fe(Xe(v)), Lt)
                }
        }
    }
    var St = ae(">"),
        wi = ae("/>");

    function wa(r, o, v) {
        if (o != null) {
            if (v != null) throw Error(i(60));
            if (typeof o != "object" || !("__html" in o)) throw Error(i(61));
            o = o.__html, o != null && r.push(fe("" + o))
        }
    }

    function cr(r) {
        var o = "";
        return n.Children.forEach(r, function (v) {
            v != null && (o += v)
        }), o
    }
    var Ci = ae(' selected=""'),
        Ni = ae(`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`);

    function va(r, o) {
        if ((r.instructions & 16) === 0) {
            r.instructions |= 16;
            var v = o.preamble,
                y = o.bootstrapChunks;
            (v.htmlChunks || v.headChunks) && y.length === 0 ? (y.push(o.startInlineScript), Bl(y, r), y.push(St, Ni, ot)) : y.unshift(o.startInlineScript, St, Ni, ot)
        }
    }
    var Po = ae("<!--F!-->"),
        or = ae("<!--F-->");

    function Ut(r, o) {
        r.push(Zt("link"));
        for (var v in o)
            if (Ze.call(o, v)) {
                var y = o[v];
                if (y != null) switch (v) {
                    case "children":
                    case "dangerouslySetInnerHTML":
                        throw Error(i(399, "link"));
                    default:
                        bt(r, v, y)
                }
            } return r.push(wi), null
    }
    var Al = /(<\/|<)(s)(tyle)/gi;

    function Gs(r, o, v, y) {
        return "" + o + (v === "s" ? "\\73 " : "\\53 ") + y
    }

    function Rl(r, o, v) {
        r.push(Zt(v));
        for (var y in o)
            if (Ze.call(o, y)) {
                var C = o[y];
                if (C != null) switch (y) {
                    case "children":
                    case "dangerouslySetInnerHTML":
                        throw Error(i(399, v));
                    default:
                        bt(r, y, C)
                }
            } return r.push(wi), null
    }

    function Kr(r, o) {
        r.push(Zt("title"));
        var v = null,
            y = null,
            C;
        for (C in o)
            if (Ze.call(o, C)) {
                var _ = o[C];
                if (_ != null) switch (C) {
                    case "children":
                        v = _;
                        break;
                    case "dangerouslySetInnerHTML":
                        y = _;
                        break;
                    default:
                        bt(r, C, _)
                }
            } return r.push(St), o = Array.isArray(v) ? 2 > v.length ? v[0] : null : v, typeof o != "function" && typeof o != "symbol" && o !== null && o !== void 0 && r.push(fe(Xe("" + o))), wa(r, y, v), r.push(zl("title")), null
    }
    var ju = ae("<!--head-->"),
        Ys = ae("<!--body-->"),
        _l = ae("<!--html-->");

    function Ln(r, o) {
        r.push(Zt("script"));
        var v = null,
            y = null,
            C;
        for (C in o)
            if (Ze.call(o, C)) {
                var _ = o[C];
                if (_ != null) switch (C) {
                    case "children":
                        v = _;
                        break;
                    case "dangerouslySetInnerHTML":
                        y = _;
                        break;
                    default:
                        bt(r, C, _)
                }
            } return r.push(St), wa(r, y, v), typeof v == "string" && r.push(fe(("" + v).replace(ni, pa))), r.push(zl("script")), null
    }

    function $a(r, o, v) {
        r.push(Zt(v));
        var y = v = null,
            C;
        for (C in o)
            if (Ze.call(o, C)) {
                var _ = o[C];
                if (_ != null) switch (C) {
                    case "children":
                        v = _;
                        break;
                    case "dangerouslySetInnerHTML":
                        y = _;
                        break;
                    default:
                        bt(r, C, _)
                }
            } return r.push(St), wa(r, y, v), v
    }

    function Ol(r, o, v) {
        r.push(Zt(v));
        var y = v = null,
            C;
        for (C in o)
            if (Ze.call(o, C)) {
                var _ = o[C];
                if (_ != null) switch (C) {
                    case "children":
                        v = _;
                        break;
                    case "dangerouslySetInnerHTML":
                        y = _;
                        break;
                    default:
                        bt(r, C, _)
                }
            } return r.push(St), wa(r, y, v), typeof v == "string" ? (r.push(fe(Xe(v))), null) : v
    }
    var eo = ae(`
`),
        to = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,
        ur = new Map;

    function Zt(r) {
        var o = ur.get(r);
        if (o === void 0) {
            if (!to.test(r)) throw Error(i(65, r));
            o = ae("<" + r), ur.set(r, o)
        }
        return o
    }
    var Ti = ae("<!DOCTYPE html>");

    function en(r, o, v, y, C, _, k, V, H) {
        switch (o) {
            case "div":
            case "span":
            case "svg":
            case "path":
                break;
            case "a":
                r.push(Zt("a"));
                var I = null,
                    q = null,
                    ne;
                for (ne in v)
                    if (Ze.call(v, ne)) {
                        var ge = v[ne];
                        if (ge != null) switch (ne) {
                            case "children":
                                I = ge;
                                break;
                            case "dangerouslySetInnerHTML":
                                q = ge;
                                break;
                            case "href":
                                ge === "" ? vt(r, "href", "") : bt(r, ne, ge);
                                break;
                            default:
                                bt(r, ne, ge)
                        }
                    } if (r.push(St), wa(r, q, I), typeof I == "string") {
                        r.push(fe(Xe(I)));
                        var me = null
                    } else me = I;
                return me;
            case "g":
            case "p":
            case "li":
                break;
            case "select":
                r.push(Zt("select"));
                var Ae = null,
                    Ie = null,
                    Be;
                for (Be in v)
                    if (Ze.call(v, Be)) {
                        var ye = v[Be];
                        if (ye != null) switch (Be) {
                            case "children":
                                Ae = ye;
                                break;
                            case "dangerouslySetInnerHTML":
                                Ie = ye;
                                break;
                            case "defaultValue":
                            case "value":
                                break;
                            default:
                                bt(r, Be, ye)
                        }
                    } return r.push(St), wa(r, Ie, Ae), Ae;
            case "option":
                var Re = V.selectedValue;
                r.push(Zt("option"));
                var et = null,
                    ka = null,
                    La = null,
                    ze = null,
                    xa;
                for (xa in v)
                    if (Ze.call(v, xa)) {
                        var kt = v[xa];
                        if (kt != null) switch (xa) {
                            case "children":
                                et = kt;
                                break;
                            case "selected":
                                La = kt;
                                break;
                            case "dangerouslySetInnerHTML":
                                ze = kt;
                                break;
                            case "value":
                                ka = kt;
                            default:
                                bt(r, xa, kt)
                        }
                    } if (Re != null) {
                        var fa = ka !== null ? "" + ka : cr(et);
                        if (xe(Re)) {
                            for (var Pl = 0; Pl < Re.length; Pl++)
                                if ("" + Re[Pl] === fa) {
                                    r.push(Ci);
                                    break
                                }
                        } else "" + Re === fa && r.push(Ci)
                    } else La && r.push(Ci);
                return r.push(St), wa(r, ze, et), et;
            case "textarea":
                r.push(Zt("textarea"));
                var Fe = null,
                    bl = null,
                    Xn = null,
                    Ta;
                for (Ta in v)
                    if (Ze.call(v, Ta)) {
                        var Dn = v[Ta];
                        if (Dn != null) switch (Ta) {
                            case "children":
                                Xn = Dn;
                                break;
                            case "value":
                                Fe = Dn;
                                break;
                            case "defaultValue":
                                bl = Dn;
                                break;
                            case "dangerouslySetInnerHTML":
                                throw Error(i(91));
                            default:
                                bt(r, Ta, Dn)
                        }
                    } if (Fe === null && bl !== null && (Fe = bl), r.push(St), Xn != null) {
                        if (Fe != null) throw Error(i(92));
                        if (xe(Xn)) {
                            if (1 < Xn.length) throw Error(i(93));
                            Fe = "" + Xn[0]
                        }
                        Fe = "" + Xn
                    }
                return typeof Fe == "string" && Fe[0] === `
` && r.push(eo), Fe !== null && r.push(fe(Xe("" + Fe))), null;
            case "input":
                r.push(Zt("input"));
                var gs = null,
                    Ii = null,
                    Wl = null,
                    Zi = null,
                    Ua = null,
                    Nt = null,
                    Jl = null,
                    ms = null,
                    vc = null,
                    vs;
                for (vs in v)
                    if (Ze.call(v, vs)) {
                        var Ba = v[vs];
                        if (Ba != null) switch (vs) {
                            case "children":
                            case "dangerouslySetInnerHTML":
                                throw Error(i(399, "input"));
                            case "name":
                                gs = Ba;
                                break;
                            case "formAction":
                                Ii = Ba;
                                break;
                            case "formEncType":
                                Wl = Ba;
                                break;
                            case "formMethod":
                                Zi = Ba;
                                break;
                            case "formTarget":
                                Ua = Ba;
                                break;
                            case "defaultChecked":
                                vc = Ba;
                                break;
                            case "defaultValue":
                                Jl = Ba;
                                break;
                            case "checked":
                                ms = Ba;
                                break;
                            case "value":
                                Nt = Ba;
                                break;
                            default:
                                bt(r, vs, Ba)
                        }
                    } var uo = Qo(r, y, C, Ii, Wl, Zi, Ua, gs);
                return ms !== null ? bn(r, "checked", ms) : vc !== null && bn(r, "checked", vc), Nt !== null ? bt(r, "value", Nt) : Jl !== null && bt(r, "value", Jl), r.push(wi), uo?.forEach(li, r), null;
            case "button":
                r.push(Zt("button"));
                var bs = null,
                    nu = null,
                    Yu = null,
                    Xu = null,
                    Vu = null,
                    Iu = null,
                    Zu = null,
                    bc;
                for (bc in v)
                    if (Ze.call(v, bc)) {
                        var Kl = v[bc];
                        if (Kl != null) switch (bc) {
                            case "children":
                                bs = Kl;
                                break;
                            case "dangerouslySetInnerHTML":
                                nu = Kl;
                                break;
                            case "name":
                                Yu = Kl;
                                break;
                            case "formAction":
                                Xu = Kl;
                                break;
                            case "formEncType":
                                Vu = Kl;
                                break;
                            case "formMethod":
                                Iu = Kl;
                                break;
                            case "formTarget":
                                Zu = Kl;
                                break;
                            default:
                                bt(r, bc, Kl)
                        }
                    } var Qu = Qo(r, y, C, Xu, Vu, Iu, Zu, Yu);
                if (r.push(St), Qu?.forEach(li, r), wa(r, nu, bs), typeof bs == "string") {
                    r.push(fe(Xe(bs)));
                    var Fd = null
                } else Fd = bs;
                return Fd;
            case "form":
                r.push(Zt("form"));
                var xc = null,
                    Pu = null,
                    zr = null,
                    xs = null,
                    pc = null,
                    yc = null,
                    Sc;
                for (Sc in v)
                    if (Ze.call(v, Sc)) {
                        var Qi = v[Sc];
                        if (Qi != null) switch (Sc) {
                            case "children":
                                xc = Qi;
                                break;
                            case "dangerouslySetInnerHTML":
                                Pu = Qi;
                                break;
                            case "action":
                                zr = Qi;
                                break;
                            case "encType":
                                xs = Qi;
                                break;
                            case "method":
                                pc = Qi;
                                break;
                            case "target":
                                yc = Qi;
                                break;
                            default:
                                bt(r, Sc, Qi)
                        }
                    } var lu = null,
                        Wu = null;
                if (typeof zr == "function") {
                    var jr = Jr(y, zr);
                    jr !== null ? (zr = jr.action || "", xs = jr.encType, pc = jr.method, yc = jr.target, lu = jr.data, Wu = jr.name) : (r.push(ya, fe("action"), vn, Sa, Lt), yc = pc = xs = zr = null, va(y, C))
                }
                if (zr != null && bt(r, "action", zr), xs != null && bt(r, "encType", xs), pc != null && bt(r, "method", pc), yc != null && bt(r, "target", yc), r.push(St), Wu !== null && (r.push(qa), vt(r, "name", Wu), r.push(wi), lu?.forEach(li, r)), wa(r, Pu, xc), typeof xc == "string") {
                    r.push(fe(Xe(xc)));
                    var ps = null
                } else ps = xc;
                return ps;
            case "menuitem":
                r.push(Zt("menuitem"));
                for (var fo in v)
                    if (Ze.call(v, fo)) {
                        var ho = v[fo];
                        if (ho != null) switch (fo) {
                            case "children":
                            case "dangerouslySetInnerHTML":
                                throw Error(i(400));
                            default:
                                bt(r, fo, ho)
                        }
                    } return r.push(St), null;
            case "object":
                r.push(Zt("object"));
                var Dr = null,
                    Ju = null,
                    ys;
                for (ys in v)
                    if (Ze.call(v, ys)) {
                        var go = v[ys];
                        if (go != null) switch (ys) {
                            case "children":
                                Dr = go;
                                break;
                            case "dangerouslySetInnerHTML":
                                Ju = go;
                                break;
                            case "data":
                                var Ku = ar("" + go);
                                if (Ku === "") break;
                                r.push(ya, fe("data"), vn, fe(Xe(Ku)), Lt);
                                break;
                            default:
                                bt(r, ys, go)
                        }
                    } if (r.push(St), wa(r, Ju, Dr), typeof Dr == "string") {
                        r.push(fe(Xe(Dr)));
                        var qu = null
                    } else qu = Dr;
                return qu;
            case "title":
                var Gd = V.tagScope & 1,
                    Yd = V.tagScope & 4;
                if (V.insertionMode === 4 || Gd || v.itemProp != null) var iu = Kr(r, v);
                else Yd ? iu = null : (Kr(C.hoistableChunks, v), iu = void 0);
                return iu;
            case "link":
                var $u = V.tagScope & 1,
                    Xd = V.tagScope & 4,
                    Vd = v.rel,
                    vi = v.href,
                    mo = v.precedence;
                if (V.insertionMode === 4 || $u || v.itemProp != null || typeof Vd != "string" || typeof vi != "string" || vi === "") {
                    Ut(r, v);
                    var wc = null
                } else if (v.rel === "stylesheet")
                    if (typeof mo != "string" || v.disabled != null || v.onLoad || v.onError) wc = Ut(r, v);
                    else {
                        var Cc = C.styles.get(mo),
                            Nc = y.styleResources.hasOwnProperty(vi) ? y.styleResources[vi] : void 0;
                        if (Nc !== null) {
                            y.styleResources[vi] = null, Cc || (Cc = {
                                precedence: fe(Xe(mo)),
                                rules: [],
                                hrefs: [],
                                sheets: new Map
                            }, C.styles.set(mo, Cc));
                            var vo = {
                                state: 0,
                                props: gt({}, v, {
                                    "data-precedence": v.precedence,
                                    precedence: null
                                })
                            };
                            if (Nc) {
                                Nc.length === 2 && Li(vo.props, Nc);
                                var ru = C.preloads.stylesheets.get(vi);
                                ru && 0 < ru.length ? ru.length = 0 : vo.state = 1
                            }
                            Cc.sheets.set(vi, vo), k && k.stylesheets.add(vo)
                        } else if (Cc) {
                            var su = Cc.sheets.get(vi);
                            su && k && k.stylesheets.add(su)
                        }
                        H && r.push(Zn), wc = null
                    }
                else v.onLoad || v.onError ? wc = Ut(r, v) : (H && r.push(Zn), wc = Xd ? null : Ut(C.hoistableChunks, v));
                return wc;
            case "script":
                var Id = V.tagScope & 1,
                    cu = v.async;
                if (typeof v.src != "string" || !v.src || !cu || typeof cu == "function" || typeof cu == "symbol" || v.onLoad || v.onError || V.insertionMode === 4 || Id || v.itemProp != null) var Zd = Ln(r, v);
                else {
                    var ou = v.src;
                    if (v.type === "module") var bo = y.moduleScriptResources,
                        Tc = C.preloads.moduleScripts;
                    else bo = y.scriptResources, Tc = C.preloads.scripts;
                    var Ec = bo.hasOwnProperty(ou) ? bo[ou] : void 0;
                    if (Ec !== null) {
                        bo[ou] = null;
                        var Mc = v;
                        if (Ec) {
                            Ec.length === 2 && (Mc = gt({}, v), Li(Mc, Ec));
                            var ed = Tc.get(ou);
                            ed && (ed.length = 0)
                        }
                        var td = [];
                        C.scripts.add(td), Ln(td, Mc)
                    }
                    H && r.push(Zn), Zd = null
                }
                return Zd;
            case "style":
                var xo = V.tagScope & 1,
                    po = v.precedence,
                    kr = v.href,
                    Qd = v.nonce;
                if (V.insertionMode === 4 || xo || v.itemProp != null || typeof po != "string" || typeof kr != "string" || kr === "") {
                    r.push(Zt("style"));
                    var Lr = null,
                        uu = null,
                        Ac;
                    for (Ac in v)
                        if (Ze.call(v, Ac)) {
                            var yo = v[Ac];
                            if (yo != null) switch (Ac) {
                                case "children":
                                    Lr = yo;
                                    break;
                                case "dangerouslySetInnerHTML":
                                    uu = yo;
                                    break;
                                default:
                                    bt(r, Ac, yo)
                            }
                        } r.push(St);
                    var ql = Array.isArray(Lr) ? 2 > Lr.length ? Lr[0] : null : Lr;
                    typeof ql != "function" && typeof ql != "symbol" && ql !== null && ql !== void 0 && r.push(fe(("" + ql).replace(Al, Gs))), wa(r, uu, Lr), r.push(zl("style"));
                    var ad = null
                } else {
                    var Ur = C.styles.get(po);
                    if ((y.styleResources.hasOwnProperty(kr) ? y.styleResources[kr] : void 0) !== null) {
                        y.styleResources[kr] = null, Ur || (Ur = {
                            precedence: fe(Xe(po)),
                            rules: [],
                            hrefs: [],
                            sheets: new Map
                        }, C.styles.set(po, Ur));
                        var nd = C.nonce.style;
                        if (!nd || nd === Qd) {
                            Ur.hrefs.push(fe(Xe(kr)));
                            var So = Ur.rules,
                                Ss = null,
                                du = null,
                                wo;
                            for (wo in v)
                                if (Ze.call(v, wo)) {
                                    var fu = v[wo];
                                    if (fu != null) switch (wo) {
                                        case "children":
                                            Ss = fu;
                                            break;
                                        case "dangerouslySetInnerHTML":
                                            du = fu
                                    }
                                } var Co = Array.isArray(Ss) ? 2 > Ss.length ? Ss[0] : null : Ss;
                            typeof Co != "function" && typeof Co != "symbol" && Co !== null && Co !== void 0 && So.push(fe(("" + Co).replace(Al, Gs))), wa(So, du, Ss)
                        }
                    }
                    Ur && k && k.styles.add(Ur), H && r.push(Zn), ad = void 0
                }
                return ad;
            case "meta":
                var ld = V.tagScope & 1,
                    Ea = V.tagScope & 4;
                if (V.insertionMode === 4 || ld || v.itemProp != null) var Pa = Rl(r, v, "meta");
                else H && r.push(Zn), Pa = Ea ? null : typeof v.charSet == "string" ? Rl(C.charsetChunks, v, "meta") : v.name === "viewport" ? Rl(C.viewportChunks, v, "meta") : Rl(C.hoistableChunks, v, "meta");
                return Pa;
            case "listing":
            case "pre":
                r.push(Zt(o));
                var Rc = null,
                    _c = null,
                    Oc;
                for (Oc in v)
                    if (Ze.call(v, Oc)) {
                        var No = v[Oc];
                        if (No != null) switch (Oc) {
                            case "children":
                                Rc = No;
                                break;
                            case "dangerouslySetInnerHTML":
                                _c = No;
                                break;
                            default:
                                bt(r, Oc, No)
                        }
                    } if (r.push(St), _c != null) {
                        if (Rc != null) throw Error(i(60));
                        if (typeof _c != "object" || !("__html" in _c)) throw Error(i(61));
                        var $l = _c.__html;
                        $l != null && (typeof $l == "string" && 0 < $l.length && $l[0] === `
` ? r.push(eo, fe($l)) : r.push(fe("" + $l)))
                    }
                return typeof Rc == "string" && Rc[0] === `
` && r.push(eo), Rc;
            case "img":
                var Pd = V.tagScope & 3,
                    Ha = v.src,
                    Wa = v.srcSet;
                if (!(v.loading === "lazy" || !Ha && !Wa || typeof Ha != "string" && Ha != null || typeof Wa != "string" && Wa != null || v.fetchPriority === "low" || Pd) && (typeof Ha != "string" || Ha[4] !== ":" || Ha[0] !== "d" && Ha[0] !== "D" || Ha[1] !== "a" && Ha[1] !== "A" || Ha[2] !== "t" && Ha[2] !== "T" || Ha[3] !== "a" && Ha[3] !== "A") && (typeof Wa != "string" || Wa[4] !== ":" || Wa[0] !== "d" && Wa[0] !== "D" || Wa[1] !== "a" && Wa[1] !== "A" || Wa[2] !== "t" && Wa[2] !== "T" || Wa[3] !== "a" && Wa[3] !== "A")) {
                    k !== null && V.tagScope & 64 && (k.suspenseyImages = !0);
                    var Wd = typeof v.sizes == "string" ? v.sizes : void 0,
                        Pi = Wa ? Wa + `
` + (Wd || "") : Ha,
                        To = C.preloads.images,
                        Br = To.get(Pi);
                    if (Br) (v.fetchPriority === "high" || 10 > C.highImagePreloads.size) && (To.delete(Pi), C.highImagePreloads.add(Br));
                    else if (!y.imageResources.hasOwnProperty(Pi)) {
                        y.imageResources[Pi] = Mn;
                        var hu = v.crossOrigin,
                            id = typeof hu == "string" ? hu === "use-credentials" ? hu : "" : void 0,
                            Wi = C.headers,
                            Eo;
                        Wi && 0 < Wi.remainingCapacity && typeof v.srcSet != "string" && (v.fetchPriority === "high" || 500 > Wi.highImagePreloads.length) && (Eo = za(Ha, "image", {
                            imageSrcSet: v.srcSet,
                            imageSizes: v.sizes,
                            crossOrigin: id,
                            integrity: v.integrity,
                            nonce: v.nonce,
                            type: v.type,
                            fetchPriority: v.fetchPriority,
                            referrerPolicy: v.refererPolicy
                        }), 0 <= (Wi.remainingCapacity -= Eo.length + 2)) ? (C.resets.image[Pi] = Mn, Wi.highImagePreloads && (Wi.highImagePreloads += ", "), Wi.highImagePreloads += Eo) : (Br = [], Ut(Br, {
                            rel: "preload",
                            as: "image",
                            href: Wa ? void 0 : Ha,
                            imageSrcSet: Wa,
                            imageSizes: Wd,
                            crossOrigin: id,
                            integrity: v.integrity,
                            type: v.type,
                            fetchPriority: v.fetchPriority,
                            referrerPolicy: v.referrerPolicy
                        }), v.fetchPriority === "high" || 10 > C.highImagePreloads.size ? C.highImagePreloads.add(Br) : (C.bulkPreloads.add(Br), To.set(Pi, Br)))
                    }
                }
                return Rl(r, v, "img");
            case "base":
            case "area":
            case "br":
            case "col":
            case "embed":
            case "hr":
            case "keygen":
            case "param":
            case "source":
            case "track":
            case "wbr":
                return Rl(r, v, o);
            case "annotation-xml":
            case "color-profile":
            case "font-face":
            case "font-face-src":
            case "font-face-uri":
            case "font-face-format":
            case "font-face-name":
            case "missing-glyph":
                break;
            case "head":
                if (2 > V.insertionMode) {
                    var Mo = _ || C.preamble;
                    if (Mo.headChunks) throw Error(i(545, "`<head>`"));
                    _ !== null && r.push(ju), Mo.headChunks = [];
                    var rd = $a(Mo.headChunks, v, "head")
                } else rd = Ol(r, v, "head");
                return rd;
            case "body":
                if (2 > V.insertionMode) {
                    var Ao = _ || C.preamble;
                    if (Ao.bodyChunks) throw Error(i(545, "`<body>`"));
                    _ !== null && r.push(Ys), Ao.bodyChunks = [];
                    var Ro = $a(Ao.bodyChunks, v, "body")
                } else Ro = Ol(r, v, "body");
                return Ro;
            case "html":
                if (V.insertionMode === 0) {
                    var _o = _ || C.preamble;
                    if (_o.htmlChunks) throw Error(i(545, "`<html>`"));
                    _ !== null && r.push(_l), _o.htmlChunks = [Ti];
                    var sd = $a(_o.htmlChunks, v, "html")
                } else sd = Ol(r, v, "html");
                return sd;
            default:
                if (o.indexOf("-") !== -1) {
                    r.push(Zt(o));
                    var Oo = null,
                        cd = null,
                        Vn;
                    for (Vn in v)
                        if (Ze.call(v, Vn)) {
                            var nl = v[Vn];
                            if (nl != null) {
                                var Jd = Vn;
                                switch (Vn) {
                                    case "children":
                                        Oo = nl;
                                        break;
                                    case "dangerouslySetInnerHTML":
                                        cd = nl;
                                        break;
                                    case "style":
                                        sr(r, nl);
                                        break;
                                    case "suppressContentEditableWarning":
                                    case "suppressHydrationWarning":
                                    case "ref":
                                        break;
                                    case "className":
                                        Jd = "class";
                                    default:
                                        if (Cl(Vn) && typeof nl != "function" && typeof nl != "symbol" && nl !== !1) {
                                            if (nl === !0) nl = "";
                                            else if (typeof nl == "object") continue;
                                            r.push(ya, fe(Jd), vn, fe(Xe(nl)), Lt)
                                        }
                                }
                            }
                        } return r.push(St), wa(r, cd, Oo), Oo
                }
        }
        return Ol(r, v, o)
    }
    var qr = new Map;

    function zl(r) {
        var o = qr.get(r);
        return o === void 0 && (o = ae("</" + r + ">"), qr.set(r, o)), o
    }

    function $r(r, o) {
        r = r.preamble, r.htmlChunks === null && o.htmlChunks && (r.htmlChunks = o.htmlChunks), r.headChunks === null && o.headChunks && (r.headChunks = o.headChunks), r.bodyChunks === null && o.bodyChunks && (r.bodyChunks = o.bodyChunks)
    }

    function ii(r, o) {
        o = o.bootstrapChunks;
        for (var v = 0; v < o.length - 1; v++) B(r, o[v]);
        return v < o.length ? (v = o[v], o.length = 0, P(r, v)) : !0
    }
    var jl = ae("requestAnimationFrame(function(){$RT=performance.now()});"),
        ao = ae('<template id="'),
        dr = ae('"></template>'),
        Ei = ae("<!--&-->"),
        es = ae("<!--/&-->"),
        Wo = ae("<!--$-->"),
        no = ae('<!--$?--><template id="'),
        Du = ae('"></template>'),
        tn = ae("<!--$!-->"),
        Ga = ae("<!--/$-->"),
        Dl = ae("<template"),
        fr = ae('"'),
        hr = ae(' data-dgst="');
    ae(' data-msg="'), ae(' data-stck="'), ae(' data-cstck="');
    var gr = ae("></template>");

    function Mi(r, o, v) {
        if (B(r, no), v === null) throw Error(i(395));
        return B(r, o.boundaryPrefix), B(r, fe(v.toString(16))), P(r, Du)
    }
    var ul = ae('<div hidden id="'),
        ts = ae('">'),
        Xs = ae("</div>"),
        Ai = ae('<svg aria-hidden="true" style="display:none" id="'),
        Un = ae('">'),
        wt = ae("</svg>"),
        kl = ae('<math aria-hidden="true" style="display:none" id="'),
        Qn = ae('">'),
        Ri = ae("</math>"),
        ri = ae('<table hidden id="'),
        mr = ae('">'),
        _i = ae("</table>"),
        Ll = ae('<table hidden><tbody id="'),
        Ul = ae('">'),
        _a = ae("</tbody></table>"),
        an = ae('<table hidden><tr id="'),
        as = ae('">'),
        Oi = ae("</tr></table>"),
        vr = ae('<table hidden><colgroup id="'),
        zi = ae('">'),
        Vs = ae("</colgroup></table>");

    function br(r, o, v, y) {
        switch (v.insertionMode) {
            case 0:
            case 1:
            case 3:
            case 2:
                return B(r, ul), B(r, o.segmentPrefix), B(r, fe(y.toString(16))), P(r, ts);
            case 4:
                return B(r, Ai), B(r, o.segmentPrefix), B(r, fe(y.toString(16))), P(r, Un);
            case 5:
                return B(r, kl), B(r, o.segmentPrefix), B(r, fe(y.toString(16))), P(r, Qn);
            case 6:
                return B(r, ri), B(r, o.segmentPrefix), B(r, fe(y.toString(16))), P(r, mr);
            case 7:
                return B(r, Ll), B(r, o.segmentPrefix), B(r, fe(y.toString(16))), P(r, Ul);
            case 8:
                return B(r, an), B(r, o.segmentPrefix), B(r, fe(y.toString(16))), P(r, as);
            case 9:
                return B(r, vr), B(r, o.segmentPrefix), B(r, fe(y.toString(16))), P(r, zi);
            default:
                throw Error(i(397))
        }
    }

    function ns(r, o) {
        switch (o.insertionMode) {
            case 0:
            case 1:
            case 3:
            case 2:
                return P(r, Xs);
            case 4:
                return P(r, wt);
            case 5:
                return P(r, Ri);
            case 6:
                return P(r, _i);
            case 7:
                return P(r, _a);
            case 8:
                return P(r, Oi);
            case 9:
                return P(r, Vs);
            default:
                throw Error(i(397))
        }
    }
    var Jo = ae('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),
        ku = ae('$RS("'),
        Lu = ae('","'),
        Uu = ae('")<\/script>');
    ae('<template data-rsi="" data-sid="'), ae('" data-pid="');
    var ls = ae(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`);
    fe(`$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if("/$"===r)if(0===f)break;else f--;else"$"!==r&&"$?"!==r&&"$~"!==r&&"$!"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute("vt-name"),y=m.get(D);k(d,y?"vt-share":"vt-exit");y&&(k(y,"vt-share"),m.set(D,null));var E=d.querySelectorAll("[vt-share]");for(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute("vt-name"),
H=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute("vt-name"))&&k(t,"vt-enter"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute("vt-update");J&&"none"!==J&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));u.push.apply(u,I.querySelectorAll('img[src]:not([loading="lazy"])'))}}}if(B){var z=
document.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=
performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,$RV);`);
    var Ko = ae('$RC("'),
        Bu = ae(`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`),
        qo = ae('$RR("'),
        Is = ae('","'),
        Hu = ae('",'),
        Zs = ae('"'),
        $o = ae(")<\/script>");
    ae('<template data-rci="" data-bid="'), ae('<template data-rri="" data-bid="'), ae('" data-sid="'), ae('" data-sty="');
    var xr = ae('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'),
        lo = ae('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),
        Qs = ae('$RX("'),
        Ps = ae('"'),
        pr = ae(","),
        Fu = ae(")<\/script>");
    ae('<template data-rxi="" data-bid="'), ae('" data-dgst="'), ae('" data-msg="'), ae('" data-stck="'), ae('" data-cstck="');
    var Gu = /[<\u2028\u2029]/g;

    function eu(r) {
        return JSON.stringify(r).replace(Gu, function (o) {
            switch (o) {
                case "<":
                    return "\\u003c";
                case "\u2028":
                    return "\\u2028";
                case "\u2029":
                    return "\\u2029";
                default:
                    throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")
            }
        })
    }
    var Oa = /[&><\u2028\u2029]/g;

    function yr(r) {
        return JSON.stringify(r).replace(Oa, function (o) {
            switch (o) {
                case "&":
                    return "\\u0026";
                case ">":
                    return "\\u003e";
                case "<":
                    return "\\u003c";
                case "\u2028":
                    return "\\u2028";
                case "\u2029":
                    return "\\u2029";
                default:
                    throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")
            }
        })
    }
    var io = ae(' media="not all" data-precedence="'),
        Ws = ae('" data-href="'),
        tu = ae('">'),
        ji = ae("</style>"),
        si = !1,
        is = !0;

    function ci(r) {
        var o = r.rules,
            v = r.hrefs,
            y = 0;
        if (v.length) {
            for (B(this, yi.startInlineStyle), B(this, io), B(this, r.precedence), B(this, Ws); y < v.length - 1; y++) B(this, v[y]), B(this, Ks);
            for (B(this, v[y]), B(this, tu), y = 0; y < o.length; y++) B(this, o[y]);
            is = P(this, ji), si = !0, o.length = 0, v.length = 0
        }
    }

    function Ca(r) {
        return r.state !== 2 ? si = !0 : !1
    }

    function dl(r, o, v) {
        return si = !1, is = !0, yi = v, o.styles.forEach(ci, r), yi = null, o.stylesheets.forEach(Ca), si && (v.stylesToHoist = !0), is
    }

    function Ot(r) {
        for (var o = 0; o < r.length; o++) B(this, r[o]);
        r.length = 0
    }
    var Pn = [];

    function Js(r) {
        Ut(Pn, r.props);
        for (var o = 0; o < Pn.length; o++) B(this, Pn[o]);
        Pn.length = 0, r.state = 2
    }
    var Sr = ae(' data-precedence="'),
        ro = ae('" data-href="'),
        Ks = ae(" "),
        Di = ae('">'),
        qs = ae("</style>");

    function $s(r) {
        var o = 0 < r.sheets.size;
        r.sheets.forEach(Js, this), r.sheets.clear();
        var v = r.rules,
            y = r.hrefs;
        if (!o || y.length) {
            if (B(this, yi.startInlineStyle), B(this, Sr), B(this, r.precedence), r = 0, y.length) {
                for (B(this, ro); r < y.length - 1; r++) B(this, y[r]), B(this, Ks);
                B(this, y[r])
            }
            for (B(this, Di), r = 0; r < v.length; r++) B(this, v[r]);
            B(this, qs), v.length = 0, y.length = 0
        }
    }

    function Bn(r) {
        if (r.state === 0) {
            r.state = 1;
            var o = r.props;
            for (Ut(Pn, {
                rel: "preload",
                as: "style",
                href: r.props.href,
                crossOrigin: o.crossOrigin,
                fetchPriority: o.fetchPriority,
                integrity: o.integrity,
                media: o.media,
                hrefLang: o.hrefLang,
                referrerPolicy: o.referrerPolicy
            }), r = 0; r < Pn.length; r++) B(this, Pn[r]);
            Pn.length = 0
        }
    }

    function ec(r) {
        r.sheets.forEach(Bn, this), r.sheets.clear()
    }
    ae('<link rel="expect" href="#'), ae('" blocking="render"/>');
    var rs = ae(' id="');

    function Bl(r, o) {
        (o.instructions & 32) === 0 && (o.instructions |= 32, r.push(rs, fe(Xe("_" + o.idPrefix + "R_")), Lt))
    }
    var oi = ae("["),
        tc = ae(",["),
        ki = ae(","),
        ss = ae("]");

    function ba(r, o) {
        B(r, oi);
        var v = oi;
        o.stylesheets.forEach(function (y) {
            if (y.state !== 2)
                if (y.state === 3) B(r, v), B(r, fe(yr("" + y.props.href))), B(r, ss), v = tc;
                else {
                    B(r, v);
                    var C = y.props["data-precedence"],
                        _ = y.props,
                        k = ar("" + y.props.href);
                    B(r, fe(yr(k))), C = "" + C, B(r, ki), B(r, fe(yr(C)));
                    for (var V in _)
                        if (Ze.call(_, V) && (C = _[V], C != null)) switch (V) {
                            case "href":
                            case "rel":
                            case "precedence":
                            case "data-precedence":
                                break;
                            case "children":
                            case "dangerouslySetInnerHTML":
                                throw Error(i(399, "link"));
                            default:
                                so(r, V, C)
                        }
                    B(r, ss), v = tc, y.state = 3
                }
        }), B(r, ss)
    }

    function so(r, o, v) {
        var y = o.toLowerCase();
        switch (typeof v) {
            case "function":
            case "symbol":
                return
        }
        switch (o) {
            case "innerHTML":
            case "dangerouslySetInnerHTML":
            case "suppressContentEditableWarning":
            case "suppressHydrationWarning":
            case "style":
            case "ref":
                return;
            case "className":
                y = "class", o = "" + v;
                break;
            case "hidden":
                if (v === !1) return;
                o = "";
                break;
            case "src":
            case "href":
                v = ar(v), o = "" + v;
                break;
            default:
                if (2 < o.length && (o[0] === "o" || o[0] === "O") && (o[1] === "n" || o[1] === "N") || !Cl(o)) return;
                o = "" + v
        }
        B(r, ki), B(r, fe(yr(y))), B(r, ki), B(r, fe(yr(o)))
    }

    function Hl() {
        return {
            styles: new Set,
            stylesheets: new Set,
            suspenseyImages: !1
        }
    }

    function ac(r) {
        var o = Rt || null;
        if (o) {
            var v = o.resumableState,
                y = o.renderState;
            if (typeof r == "string" && r) {
                if (!v.dnsResources.hasOwnProperty(r)) {
                    v.dnsResources[r] = null, v = y.headers;
                    var C, _;
                    (_ = v && 0 < v.remainingCapacity) && (_ = (C = "<" + ("" + r).replace(Wn, Ui) + ">; rel=dns-prefetch", 0 <= (v.remainingCapacity -= C.length + 2))), _ ? (y.resets.dns[r] = null, v.preconnects && (v.preconnects += ", "), v.preconnects += C) : (C = [], Ut(C, {
                        href: r,
                        rel: "dns-prefetch"
                    }), y.preconnects.add(C))
                }
                Qa(o)
            }
        } else En.D(r)
    }

    function nc(r, o) {
        var v = Rt || null;
        if (v) {
            var y = v.resumableState,
                C = v.renderState;
            if (typeof r == "string" && r) {
                var _ = o === "use-credentials" ? "credentials" : typeof o == "string" ? "anonymous" : "default";
                if (!y.connectResources[_].hasOwnProperty(r)) {
                    y.connectResources[_][r] = null, y = C.headers;
                    var k, V;
                    if (V = y && 0 < y.remainingCapacity) {
                        if (V = "<" + ("" + r).replace(Wn, Ui) + ">; rel=preconnect", typeof o == "string") {
                            var H = ("" + o).replace(di, fi);
                            V += '; crossorigin="' + H + '"'
                        }
                        V = (k = V, 0 <= (y.remainingCapacity -= k.length + 2))
                    }
                    V ? (C.resets.connect[_][r] = null, y.preconnects && (y.preconnects += ", "), y.preconnects += k) : (_ = [], Ut(_, {
                        rel: "preconnect",
                        href: r,
                        crossOrigin: o
                    }), C.preconnects.add(_))
                }
                Qa(v)
            }
        } else En.C(r, o)
    }

    function lc(r, o, v) {
        var y = Rt || null;
        if (y) {
            var C = y.resumableState,
                _ = y.renderState;
            if (o && r) {
                switch (o) {
                    case "image":
                        if (v) var k = v.imageSrcSet,
                            V = v.imageSizes,
                            H = v.fetchPriority;
                        var I = k ? k + `
` + (V || "") : r;
                        if (C.imageResources.hasOwnProperty(I)) return;
                        C.imageResources[I] = Mn, C = _.headers;
                        var q;
                        C && 0 < C.remainingCapacity && typeof k != "string" && H === "high" && (q = za(r, o, v), 0 <= (C.remainingCapacity -= q.length + 2)) ? (_.resets.image[I] = Mn, C.highImagePreloads && (C.highImagePreloads += ", "), C.highImagePreloads += q) : (C = [], Ut(C, gt({
                            rel: "preload",
                            href: k ? void 0 : r,
                            as: o
                        }, v)), H === "high" ? _.highImagePreloads.add(C) : (_.bulkPreloads.add(C), _.preloads.images.set(I, C)));
                        break;
                    case "style":
                        if (C.styleResources.hasOwnProperty(r)) return;
                        k = [], Ut(k, gt({
                            rel: "preload",
                            href: r,
                            as: o
                        }, v)), C.styleResources[r] = !v || typeof v.crossOrigin != "string" && typeof v.integrity != "string" ? Mn : [v.crossOrigin, v.integrity], _.preloads.stylesheets.set(r, k), _.bulkPreloads.add(k);
                        break;
                    case "script":
                        if (C.scriptResources.hasOwnProperty(r)) return;
                        k = [], _.preloads.scripts.set(r, k), _.bulkPreloads.add(k), Ut(k, gt({
                            rel: "preload",
                            href: r,
                            as: o
                        }, v)), C.scriptResources[r] = !v || typeof v.crossOrigin != "string" && typeof v.integrity != "string" ? Mn : [v.crossOrigin, v.integrity];
                        break;
                    default:
                        if (C.unknownResources.hasOwnProperty(o)) {
                            if (k = C.unknownResources[o], k.hasOwnProperty(r)) return
                        } else k = {}, C.unknownResources[o] = k;
                        k[r] = Mn, (C = _.headers) && 0 < C.remainingCapacity && o === "font" && (I = za(r, o, v), 0 <= (C.remainingCapacity -= I.length + 2)) ? (_.resets.font[r] = Mn, C.fontPreloads && (C.fontPreloads += ", "), C.fontPreloads += I) : (C = [], r = gt({
                            rel: "preload",
                            href: r,
                            as: o
                        }, v), Ut(C, r), o) === "font" ? _.fontPreloads.add(C) : _.bulkPreloads.add(C)
                }
                Qa(y)
            }
        } else En.L(r, o, v)
    }

    function ic(r, o) {
        var v = Rt || null;
        if (v) {
            var y = v.resumableState,
                C = v.renderState;
            if (r) {
                var _ = o && typeof o.as == "string" ? o.as : "script";
                switch (_) {
                    case "script":
                        if (y.moduleScriptResources.hasOwnProperty(r)) return;
                        _ = [], y.moduleScriptResources[r] = !o || typeof o.crossOrigin != "string" && typeof o.integrity != "string" ? Mn : [o.crossOrigin, o.integrity], C.preloads.moduleScripts.set(r, _);
                        break;
                    default:
                        if (y.moduleUnknownResources.hasOwnProperty(_)) {
                            var k = y.unknownResources[_];
                            if (k.hasOwnProperty(r)) return
                        } else k = {}, y.moduleUnknownResources[_] = k;
                        _ = [], k[r] = Mn
                }
                Ut(_, gt({
                    rel: "modulepreload",
                    href: r
                }, o)), C.bulkPreloads.add(_), Qa(v)
            }
        } else En.m(r, o)
    }

    function cs(r, o, v) {
        var y = Rt || null;
        if (y) {
            var C = y.resumableState,
                _ = y.renderState;
            if (r) {
                o = o || "default";
                var k = _.styles.get(o),
                    V = C.styleResources.hasOwnProperty(r) ? C.styleResources[r] : void 0;
                V !== null && (C.styleResources[r] = null, k || (k = {
                    precedence: fe(Xe(o)),
                    rules: [],
                    hrefs: [],
                    sheets: new Map
                }, _.styles.set(o, k)), o = {
                    state: 0,
                    props: gt({
                        rel: "stylesheet",
                        href: r,
                        "data-precedence": o
                    }, v)
                }, V && (V.length === 2 && Li(o.props, V), (_ = _.preloads.stylesheets.get(r)) && 0 < _.length ? _.length = 0 : o.state = 1), k.sheets.set(r, o), Qa(y))
            }
        } else En.S(r, o, v)
    }

    function ui(r, o) {
        var v = Rt || null;
        if (v) {
            var y = v.resumableState,
                C = v.renderState;
            if (r) {
                var _ = y.scriptResources.hasOwnProperty(r) ? y.scriptResources[r] : void 0;
                _ !== null && (y.scriptResources[r] = null, o = gt({
                    src: r,
                    async: !0
                }, o), _ && (_.length === 2 && Li(o, _), r = C.preloads.scripts.get(r)) && (r.length = 0), r = [], C.scripts.add(r), Ln(r, o), Qa(v))
            }
        } else En.X(r, o)
    }

    function au(r, o) {
        var v = Rt || null;
        if (v) {
            var y = v.resumableState,
                C = v.renderState;
            if (r) {
                var _ = y.moduleScriptResources.hasOwnProperty(r) ? y.moduleScriptResources[r] : void 0;
                _ !== null && (y.moduleScriptResources[r] = null, o = gt({
                    src: r,
                    type: "module",
                    async: !0
                }, o), _ && (_.length === 2 && Li(o, _), r = C.preloads.moduleScripts.get(r)) && (r.length = 0), r = [], C.scripts.add(r), Ln(r, o), Qa(v))
            }
        } else En.M(r, o)
    }

    function Li(r, o) {
        r.crossOrigin == null && (r.crossOrigin = o[0]), r.integrity == null && (r.integrity = o[1])
    }

    function za(r, o, v) {
        r = ("" + r).replace(Wn, Ui), o = ("" + o).replace(di, fi), o = "<" + r + '>; rel=preload; as="' + o + '"';
        for (var y in v) Ze.call(v, y) && (r = v[y], typeof r == "string" && (o += "; " + y.toLowerCase() + '="' + ("" + r).replace(di, fi) + '"'));
        return o
    }
    var Wn = /[<>\r\n]/g;

    function Ui(r) {
        switch (r) {
            case "<":
                return "%3C";
            case ">":
                return "%3E";
            case `
`:
                return "%0A";
            case "\r":
                return "%0D";
            default:
                throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")
        }
    }
    var di = /["';,\r\n]/g;

    function fi(r) {
        switch (r) {
            case '"':
                return "%22";
            case "'":
                return "%27";
            case ";":
                return "%3B";
            case ",":
                return "%2C";
            case `
`:
                return "%0A";
            case "\r":
                return "%0D";
            default:
                throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")
        }
    }

    function rc(r) {
        this.styles.add(r)
    }

    function sc(r) {
        this.stylesheets.add(r)
    }

    function Bi(r, o) {
        o.styles.forEach(rc, r), o.stylesheets.forEach(sc, r), o.suspenseyImages && (r.suspenseyImages = !0)
    }

    function fl(r) {
        return 0 < r.stylesheets.size || r.suspenseyImages
    }
    var wr = Function.prototype.bind,
        Jn = Symbol.for("react.client.reference");

    function Cr(r) {
        if (r == null) return null;
        if (typeof r == "function") return r.$$typeof === Jn ? null : r.displayName || r.name || null;
        if (typeof r == "string") return r;
        switch (r) {
            case x:
                return "Fragment";
            case w:
                return "Profiler";
            case p:
                return "StrictMode";
            case A:
                return "Suspense";
            case z:
                return "SuspenseList";
            case Z:
                return "Activity"
        }
        if (typeof r == "object") switch (r.$$typeof) {
            case g:
                return "Portal";
            case T:
                return r.displayName || "Context";
            case M:
                return (r._context.displayName || "Context") + ".Consumer";
            case R:
                var o = r.render;
                return r = r.displayName, r || (r = o.displayName || o.name || "", r = r !== "" ? "ForwardRef(" + r + ")" : "ForwardRef"), r;
            case O:
                return o = r.displayName || null, o !== null ? o : Cr(r.type) || "Memo";
            case L:
                o = r._payload, r = r._init;
                try {
                    return Cr(r(o))
                } catch { }
        }
        return null
    }
    var co = {},
        Ya = null;

    function Fl(r, o) {
        if (r !== o) {
            r.context._currentValue = r.parentValue, r = r.parent;
            var v = o.parent;
            if (r === null) {
                if (v !== null) throw Error(i(401))
            } else {
                if (v === null) throw Error(i(401));
                Fl(r, v)
            }
            o.context._currentValue = o.value
        }
    }

    function os(r) {
        r.context._currentValue = r.parentValue, r = r.parent, r !== null && os(r)
    }

    function c(r) {
        var o = r.parent;
        o !== null && c(o), r.context._currentValue = r.value
    }

    function f(r, o) {
        if (r.context._currentValue = r.parentValue, r = r.parent, r === null) throw Error(i(402));
        r.depth === o.depth ? Fl(r, o) : f(r, o)
    }

    function b(r, o) {
        var v = o.parent;
        if (v === null) throw Error(i(402));
        r.depth === v.depth ? Fl(r, v) : b(r, v), o.context._currentValue = o.value
    }

    function S(r) {
        var o = Ya;
        o !== r && (o === null ? c(r) : r === null ? os(o) : o.depth === r.depth ? Fl(o, r) : o.depth > r.depth ? f(o, r) : b(o, r), Ya = r)
    }
    var E = {
        enqueueSetState: function (r, o) {
            r = r._reactInternals, r.queue !== null && r.queue.push(o)
        },
        enqueueReplaceState: function (r, o) {
            r = r._reactInternals, r.replace = !0, r.queue = [o]
        },
        enqueueForceUpdate: function () { }
    },
        D = {
            id: 1,
            overflow: ""
        };

    function U(r, o, v) {
        var y = r.id;
        r = r.overflow;
        var C = 32 - ee(y) - 1;
        y &= ~(1 << C), v += 1;
        var _ = 32 - ee(o) + C;
        if (30 < _) {
            var k = C - C % 5;
            return _ = (y & (1 << k) - 1).toString(32), y >>= k, C -= k, {
                id: 1 << 32 - ee(o) + C | v << C | y,
                overflow: _ + r
            }
        }
        return {
            id: 1 << _ | v << C | y,
            overflow: r
        }
    }
    var ee = Math.clz32 ? Math.clz32 : ue,
        Y = Math.log,
        te = Math.LN2;

    function ue(r) {
        return r >>>= 0, r === 0 ? 32 : 31 - (Y(r) / te | 0) | 0
    }

    function ie() { }
    var be = Error(i(460));

    function we(r, o, v) {
        switch (v = r[v], v === void 0 ? r.push(o) : v !== o && (o.then(ie, ie), o = v), o.status) {
            case "fulfilled":
                return o.value;
            case "rejected":
                throw o.reason;
            default:
                switch (typeof o.status == "string" ? o.then(ie, ie) : (r = o, r.status = "pending", r.then(function (y) {
                    if (o.status === "pending") {
                        var C = o;
                        C.status = "fulfilled", C.value = y
                    }
                }, function (y) {
                    if (o.status === "pending") {
                        var C = o;
                        C.status = "rejected", C.reason = y
                    }
                })), o.status) {
                    case "fulfilled":
                        return o.value;
                    case "rejected":
                        throw o.reason
                }
                throw Pe = o, be
        }
    }
    var Pe = null;

    function He() {
        if (Pe === null) throw Error(i(459));
        var r = Pe;
        return Pe = null, r
    }

    function Ue(r, o) {
        return r === o && (r !== 0 || 1 / r === 1 / o) || r !== r && o !== o
    }
    var Le = typeof Object.is == "function" ? Object.is : Ue,
        Ve = null,
        xt = null,
        Gt = null,
        qe = null,
        $e = null,
        lt = null,
        zt = !1,
        tt = !1,
        aa = 0,
        pt = 0,
        Qt = -1,
        Bt = 0,
        jt = null,
        Xa = null,
        Gl = 0;

    function xn() {
        if (Ve === null) throw Error(i(321));
        return Ve
    }

    function Va() {
        if (0 < Gl) throw Error(i(312));
        return {
            memoizedState: null,
            queue: null,
            next: null
        }
    }

    function Kn() {
        return lt === null ? $e === null ? (zt = !1, $e = lt = Va()) : (zt = !0, lt = $e) : lt.next === null ? (zt = !1, lt = lt.next = Va()) : (zt = !0, lt = lt.next), lt
    }

    function na() {
        var r = jt;
        return jt = null, r
    }

    function nn() {
        qe = Gt = xt = Ve = null, tt = !1, $e = null, Gl = 0, lt = Xa = null
    }

    function ln(r, o) {
        return typeof o == "function" ? o(r) : o
    }

    function Jt(r, o, v) {
        if (Ve = xn(), lt = Kn(), zt) {
            var y = lt.queue;
            if (o = y.dispatch, Xa !== null && (v = Xa.get(y), v !== void 0)) {
                Xa.delete(y), y = lt.memoizedState;
                do y = r(y, v.action), v = v.next; while (v !== null);
                return lt.memoizedState = y, [y, o]
            }
            return [lt.memoizedState, o]
        }
        return r = r === ln ? typeof o == "function" ? o() : o : v !== void 0 ? v(o) : o, lt.memoizedState = r, r = lt.queue = {
            last: null,
            dispatch: null
        }, r = r.dispatch = rn.bind(null, Ve, r), [lt.memoizedState, r]
    }

    function ua(r, o) {
        if (Ve = xn(), lt = Kn(), o = o === void 0 ? null : o, lt !== null) {
            var v = lt.memoizedState;
            if (v !== null && o !== null) {
                var y = v[1];
                e: if (y === null) y = !1;
                else {
                    for (var C = 0; C < y.length && C < o.length; C++)
                        if (!Le(o[C], y[C])) {
                            y = !1;
                            break e
                        } y = !0
                }
                if (y) return v[0]
            }
        }
        return r = r(), lt.memoizedState = [r, o], r
    }

    function rn(r, o, v) {
        if (25 <= Gl) throw Error(i(301));
        if (r === Ve)
            if (tt = !0, r = {
                action: v,
                next: null
            }, Xa === null && (Xa = new Map), v = Xa.get(o), v === void 0) Xa.set(o, r);
            else {
                for (o = v; o.next !== null;) o = o.next;
                o.next = r
            }
    }

    function At() {
        throw Error(i(440))
    }

    function Ia() {
        throw Error(i(394))
    }

    function An() {
        throw Error(i(479))
    }

    function cc(r, o, v) {
        xn();
        var y = pt++,
            C = Gt;
        if (typeof r.$$FORM_ACTION == "function") {
            var _ = null,
                k = qe;
            C = C.formState;
            var V = r.$$IS_SIGNATURE_EQUAL;
            if (C !== null && typeof V == "function") {
                var H = C[1];
                V.call(r, C[2], C[3]) && (_ = v !== void 0 ? "p" + v : "k" + ft(JSON.stringify([k, null, y]), 0), H === _ && (Qt = y, o = C[0]))
            }
            var I = r.bind(null, o);
            return r = function (ne) {
                I(ne)
            }, typeof I.$$FORM_ACTION == "function" && (r.$$FORM_ACTION = function (ne) {
                ne = I.$$FORM_ACTION(ne), v !== void 0 && (v += "", ne.action = v);
                var ge = ne.data;
                return ge && (_ === null && (_ = v !== void 0 ? "p" + v : "k" + ft(JSON.stringify([k, null, y]), 0)), ge.append("$ACTION_KEY", _)), ne
            }), [o, r, !1]
        }
        var q = r.bind(null, o);
        return [o, function (ne) {
            q(ne)
        }, !1]
    }

    function us(r) {
        var o = Bt;
        return Bt += 1, jt === null && (jt = []), we(jt, r, o)
    }

    function oc() {
        throw Error(i(393))
    }
    var uc = {
        readContext: function (r) {
            return r._currentValue
        },
        use: function (r) {
            if (r !== null && typeof r == "object") {
                if (typeof r.then == "function") return us(r);
                if (r.$$typeof === T) return r._currentValue
            }
            throw Error(i(438, String(r)))
        },
        useContext: function (r) {
            return xn(), r._currentValue
        },
        useMemo: ua,
        useReducer: Jt,
        useRef: function (r) {
            Ve = xn(), lt = Kn();
            var o = lt.memoizedState;
            return o === null ? (r = {
                current: r
            }, lt.memoizedState = r) : o
        },
        useState: function (r) {
            return Jt(ln, r)
        },
        useInsertionEffect: ie,
        useLayoutEffect: ie,
        useCallback: function (r, o) {
            return ua(function () {
                return r
            }, o)
        },
        useImperativeHandle: ie,
        useEffect: ie,
        useDebugValue: ie,
        useDeferredValue: function (r, o) {
            return xn(), o !== void 0 ? o : r
        },
        useTransition: function () {
            return xn(), [!1, Ia]
        },
        useId: function () {
            var r = xt.treeContext,
                o = r.overflow;
            r = r.id, r = (r & ~(1 << 32 - ee(r) - 1)).toString(32) + o;
            var v = la;
            if (v === null) throw Error(i(404));
            return o = aa++, r = "_" + v.idPrefix + "R_" + r, 0 < o && (r += "H" + o.toString(32)), r + "_"
        },
        useSyncExternalStore: function (r, o, v) {
            if (v === void 0) throw Error(i(407));
            return v()
        },
        useOptimistic: function (r) {
            return xn(), [r, An]
        },
        useActionState: cc,
        useFormState: cc,
        useHostTransitionStatus: function () {
            return xn(), Ls
        },
        useMemoCache: function (r) {
            for (var o = Array(r), v = 0; v < r; v++) o[v] = re;
            return o
        },
        useCacheRefresh: function () {
            return oc
        },
        useEffectEvent: function () {
            return At
        }
    },
        la = null,
        Dt = {
            getCacheForType: function () {
                throw Error(i(248))
            },
            cacheSignal: function () {
                throw Error(i(248))
            }
        },
        Qe, ja;

    function Na(r) {
        if (Qe === void 0) try {
            throw Error()
        } catch (v) {
            var o = v.stack.trim().match(/\n( *(at )?)/);
            Qe = o && o[1] || "", ja = -1 < v.stack.indexOf(`
    at`) ? " (<anonymous>)" : -1 < v.stack.indexOf("@") ? "@unknown:0:0" : ""
        }
        return `
` + Qe + r + ja
    }
    var Nr = !1;

    function sn(r, o) {
        if (!r || Nr) return "";
        Nr = !0;
        var v = Error.prepareStackTrace;
        Error.prepareStackTrace = void 0;
        try {
            var y = {
                DetermineComponentFrameRoot: function () {
                    try {
                        if (o) {
                            var ne = function () {
                                throw Error()
                            };
                            if (Object.defineProperty(ne.prototype, "props", {
                                set: function () {
                                    throw Error()
                                }
                            }), typeof Reflect == "object" && Reflect.construct) {
                                try {
                                    Reflect.construct(ne, [])
                                } catch (me) {
                                    var ge = me
                                }
                                Reflect.construct(r, [], ne)
                            } else {
                                try {
                                    ne.call()
                                } catch (me) {
                                    ge = me
                                }
                                r.call(ne.prototype)
                            }
                        } else {
                            try {
                                throw Error()
                            } catch (me) {
                                ge = me
                            } (ne = r()) && typeof ne.catch == "function" && ne.catch(function () { })
                        }
                    } catch (me) {
                        if (me && ge && typeof me.stack == "string") return [me.stack, ge.stack]
                    }
                    return [null, null]
                }
            };
            y.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
            var C = Object.getOwnPropertyDescriptor(y.DetermineComponentFrameRoot, "name");
            C && C.configurable && Object.defineProperty(y.DetermineComponentFrameRoot, "name", {
                value: "DetermineComponentFrameRoot"
            });
            var _ = y.DetermineComponentFrameRoot(),
                k = _[0],
                V = _[1];
            if (k && V) {
                var H = k.split(`
`),
                    I = V.split(`
`);
                for (C = y = 0; y < H.length && !H[y].includes("DetermineComponentFrameRoot");) y++;
                for (; C < I.length && !I[C].includes("DetermineComponentFrameRoot");) C++;
                if (y === H.length || C === I.length)
                    for (y = H.length - 1, C = I.length - 1; 1 <= y && 0 <= C && H[y] !== I[C];) C--;
                for (; 1 <= y && 0 <= C; y--, C--)
                    if (H[y] !== I[C]) {
                        if (y !== 1 || C !== 1)
                            do
                                if (y--, C--, 0 > C || H[y] !== I[C]) {
                                    var q = `
` + H[y].replace(" at new ", " at ");
                                    return r.displayName && q.includes("<anonymous>") && (q = q.replace("<anonymous>", r.displayName)), q
                                } while (1 <= y && 0 <= C);
                        break
                    }
            }
        } finally {
            Nr = !1, Error.prepareStackTrace = v
        }
        return (v = r ? r.displayName || r.name : "") ? Na(v) : ""
    }

    function dc(r) {
        if (typeof r == "string") return Na(r);
        if (typeof r == "function") return r.prototype && r.prototype.isReactComponent ? sn(r, !0) : sn(r, !1);
        if (typeof r == "object" && r !== null) {
            switch (r.$$typeof) {
                case R:
                    return sn(r.render, !1);
                case O:
                    return sn(r.type, !1);
                case L:
                    var o = r,
                        v = o._payload;
                    o = o._init;
                    try {
                        r = o(v)
                    } catch {
                        return Na("Lazy")
                    }
                    return dc(r)
            }
            if (typeof r.name == "string") {
                e: {
                    v = r.name,
                        o = r.env;
                    var y = r.debugLocation;
                    if (y != null && (r = Error.prepareStackTrace, Error.prepareStackTrace = void 0, y = y.stack, Error.prepareStackTrace = r, y.startsWith(`Error: react-stack-top-frame
`) && (y = y.slice(29)), r = y.indexOf(`
`), r !== -1 && (y = y.slice(r + 1)), r = y.indexOf("react_stack_bottom_frame"), r !== -1 && (r = y.lastIndexOf(`
`, r)), r = r !== -1 ? y = y.slice(0, r) : "", y = r.lastIndexOf(`
`), r = y === -1 ? r : r.slice(y + 1), r.indexOf(v) !== -1)) {
                        v = `
` + r;
                        break e
                    }
                    v = Na(v + (o ? " [" + o + "]" : ""))
                }
                return v
            }
        }
        switch (r) {
            case z:
                return Na("SuspenseList");
            case A:
                return Na("Suspense")
        }
        return ""
    }

    function Rn(r, o) {
        return (500 < o.byteSize || fl(o.contentState)) && o.contentPreamble === null
    }

    function hl(r) {
        if (typeof r == "object" && r !== null && typeof r.environmentName == "string") {
            var o = r.environmentName;
            r = [r].slice(0), typeof r[0] == "string" ? r.splice(0, 1, "%c%s%c " + r[0], "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", " " + o + " ", "") : r.splice(0, 0, "%c%s%c", "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", " " + o + " ", ""), r.unshift(console), o = wr.apply(console.error, r), o()
        } else console.error(r);
        return null
    }

    function Hn(r, o, v, y, C, _, k, V, H, I, q) {
        var ne = new Set;
        this.destination = null, this.flushScheduled = !1, this.resumableState = r, this.renderState = o, this.rootFormatContext = v, this.progressiveChunkSize = y === void 0 ? 12800 : y, this.status = 10, this.fatalError = null, this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0, this.completedPreambleSegments = this.completedRootSegment = null, this.byteSize = 0, this.abortableTasks = ne, this.pingedTasks = [], this.clientRenderedBoundaries = [], this.completedBoundaries = [], this.partialBoundaries = [], this.trackedPostpones = null, this.onError = C === void 0 ? hl : C, this.onPostpone = I === void 0 ? ie : I, this.onAllReady = _ === void 0 ? ie : _, this.onShellReady = k === void 0 ? ie : k, this.onShellError = V === void 0 ? ie : V, this.onFatalError = H === void 0 ? ie : H, this.formState = q === void 0 ? null : q
    }

    function hi(r, o, v, y, C, _, k, V, H, I, q, ne) {
        return o = new Hn(o, v, y, C, _, k, V, H, I, q, ne), v = Da(o, 0, null, y, !1, !1), v.parentFlushed = !0, r = gl(o, null, r, -1, null, v, null, null, o.abortableTasks, null, y, null, D, null, null), $n(r), o.pingedTasks.push(r), o
    }

    function Yl(r, o, v, y, C, _, k, V, H, I, q) {
        return r = hi(r, o, v, y, C, _, k, V, H, I, q, void 0), r.trackedPostpones = {
            workingMap: new Map,
            rootNodes: [],
            rootSlots: null
        }, r
    }

    function qn(r, o, v, y, C, _, k, V, H) {
        return v = new Hn(o.resumableState, v, o.rootFormatContext, o.progressiveChunkSize, y, C, _, k, V, H, null), v.nextSegmentId = o.nextSegmentId, typeof o.replaySlots == "number" ? (y = Da(v, 0, null, o.rootFormatContext, !1, !1), y.parentFlushed = !0, r = gl(v, null, r, -1, null, y, null, null, v.abortableTasks, null, o.rootFormatContext, null, D, null, null), $n(r), v.pingedTasks.push(r), v) : (r = Tr(v, null, {
            nodes: o.replayNodes,
            slots: o.replaySlots,
            pendingTasks: 0
        }, r, -1, null, null, v.abortableTasks, null, o.rootFormatContext, null, D, null, null), $n(r), v.pingedTasks.push(r), v)
    }

    function Xl(r, o, v, y, C, _, k, V, H) {
        return r = qn(r, o, v, y, C, _, k, V, H), r.trackedPostpones = {
            workingMap: new Map,
            rootNodes: [],
            rootSlots: null
        }, r
    }
    var Rt = null;

    function cn(r, o) {
        r.pingedTasks.push(o), r.pingedTasks.length === 1 && (r.flushScheduled = r.destination !== null, r.trackedPostpones !== null || r.status === 10 ? Oe(function () {
            return gc(r)
        }) : ta(function () {
            return gc(r)
        }))
    }

    function pn(r, o, v, y, C) {
        return v = {
            status: 0,
            rootSegmentID: -1,
            parentFlushed: !1,
            pendingTasks: 0,
            row: o,
            completedSegments: [],
            byteSize: 0,
            fallbackAbortableTasks: v,
            errorDigest: null,
            contentState: Hl(),
            fallbackState: Hl(),
            contentPreamble: y,
            fallbackPreamble: C,
            trackedContentKeyPath: null,
            trackedFallbackNode: null
        }, o !== null && (o.pendingTasks++, y = o.boundaries, y !== null && (r.allPendingTasks++, v.pendingTasks++, y.push(v)), r = o.inheritedHoistables, r !== null && Bi(v.contentState, r)), v
    }

    function gl(r, o, v, y, C, _, k, V, H, I, q, ne, ge, me, Ae) {
        r.allPendingTasks++, C === null ? r.pendingRootTasks++ : C.pendingTasks++, me !== null && me.pendingTasks++;
        var Ie = {
            replay: null,
            node: v,
            childIndex: y,
            ping: function () {
                return cn(r, Ie)
            },
            blockedBoundary: C,
            blockedSegment: _,
            blockedPreamble: k,
            hoistableState: V,
            abortSet: H,
            keyPath: I,
            formatContext: q,
            context: ne,
            treeContext: ge,
            row: me,
            componentStack: Ae,
            thenableState: o
        };
        return H.add(Ie), Ie
    }

    function Tr(r, o, v, y, C, _, k, V, H, I, q, ne, ge, me) {
        r.allPendingTasks++, _ === null ? r.pendingRootTasks++ : _.pendingTasks++, ge !== null && ge.pendingTasks++, v.pendingTasks++;
        var Ae = {
            replay: v,
            node: y,
            childIndex: C,
            ping: function () {
                return cn(r, Ae)
            },
            blockedBoundary: _,
            blockedSegment: null,
            blockedPreamble: null,
            hoistableState: k,
            abortSet: V,
            keyPath: H,
            formatContext: I,
            context: q,
            treeContext: ne,
            row: ge,
            componentStack: me,
            thenableState: o
        };
        return V.add(Ae), Ae
    }

    function Da(r, o, v, y, C, _) {
        return {
            status: 0,
            parentFlushed: !1,
            id: -1,
            index: o,
            chunks: [],
            children: [],
            preambleChildren: [],
            parentFormatContext: y,
            boundary: v,
            lastPushedText: C,
            textEmbedded: _
        }
    }

    function $n(r) {
        var o = r.node;
        typeof o == "object" && o !== null && o.$$typeof === d && (r.componentStack = {
            parent: r.componentStack,
            type: o.type
        })
    }

    function _n(r) {
        return r === null ? null : {
            parent: r.parent,
            type: "Suspense Fallback"
        }
    }

    function Ct(r) {
        var o = {};
        return r && Object.defineProperty(o, "componentStack", {
            configurable: !0,
            enumerable: !0,
            get: function () {
                try {
                    var v = "",
                        y = r;
                    do v += dc(y.type), y = y.parent; while (y);
                    var C = v
                } catch (_) {
                    C = `
Error generating stack: ` + _.message + `
` + _.stack
                }
                return Object.defineProperty(o, "componentStack", {
                    value: C
                }), C
            }
        }), o
    }

    function da(r, o, v) {
        if (r = r.onError, o = r(o, v), o == null || typeof o == "string") return o
    }

    function Hi(r, o) {
        var v = r.onShellError,
            y = r.onFatalError;
        v(o), y(o), r.destination !== null ? (r.status = 14, nt(r.destination, o)) : (r.status = 13, r.fatalError = o)
    }

    function Za(r, o) {
        oo(r, o.next, o.hoistables)
    }

    function oo(r, o, v) {
        for (; o !== null;) {
            v !== null && (Bi(o.hoistables, v), o.inheritedHoistables = v);
            var y = o.boundaries;
            if (y !== null) {
                o.boundaries = null;
                for (var C = 0; C < y.length; C++) {
                    var _ = y[C];
                    v !== null && Bi(_.contentState, v), yn(r, _, null, null)
                }
            }
            if (o.pendingTasks--, 0 < o.pendingTasks) break;
            v = o.hoistables, o = o.next
        }
    }

    function ds(r, o) {
        var v = o.boundaries;
        if (v !== null && o.pendingTasks === v.length) {
            for (var y = !0, C = 0; C < v.length; C++) {
                var _ = v[C];
                if (_.pendingTasks !== 1 || _.parentFlushed || Rn(r, _)) {
                    y = !1;
                    break
                }
            }
            y && oo(r, o, o.hoistables)
        }
    }

    function Yt(r) {
        var o = {
            pendingTasks: 1,
            boundaries: null,
            hoistables: Hl(),
            inheritedHoistables: null,
            together: !1,
            next: null
        };
        return r !== null && 0 < r.pendingTasks && (o.pendingTasks++, o.boundaries = [], r.next = o), o
    }

    function fc(r, o, v, y, C) {
        var _ = o.keyPath,
            k = o.treeContext,
            V = o.row;
        o.keyPath = v, v = y.length;
        var H = null;
        if (o.replay !== null) {
            var I = o.replay.slots;
            if (I !== null && typeof I == "object")
                for (var q = 0; q < v; q++) {
                    var ne = C !== "backwards" && C !== "unstable_legacy-backwards" ? q : v - 1 - q,
                        ge = y[ne];
                    o.row = H = Yt(H), o.treeContext = U(k, v, ne);
                    var me = I[ne];
                    typeof me == "number" ? (zn(r, o, me, ge, ne), delete I[ne]) : qt(r, o, ge, ne), --H.pendingTasks === 0 && Za(r, H)
                } else
                for (I = 0; I < v; I++) q = C !== "backwards" && C !== "unstable_legacy-backwards" ? I : v - 1 - I, ne = y[q], o.row = H = Yt(H), o.treeContext = U(k, v, q), qt(r, o, ne, q), --H.pendingTasks === 0 && Za(r, H)
        } else if (C !== "backwards" && C !== "unstable_legacy-backwards")
            for (C = 0; C < v; C++) I = y[C], o.row = H = Yt(H), o.treeContext = U(k, v, C), qt(r, o, I, C), --H.pendingTasks === 0 && Za(r, H);
        else {
            for (C = o.blockedSegment, I = C.children.length, q = C.chunks.length, ne = v - 1; 0 <= ne; ne--) {
                ge = y[ne], o.row = H = Yt(H), o.treeContext = U(k, v, ne), me = Da(r, q, null, o.formatContext, ne === 0 ? C.lastPushedText : !0, !0), C.children.splice(I, 0, me), o.blockedSegment = me;
                try {
                    qt(r, o, ge, ne), me.lastPushedText && me.textEmbedded && me.chunks.push(Zn), me.status = 1, on(r, o.blockedBoundary, me), --H.pendingTasks === 0 && Za(r, H)
                } catch (Ae) {
                    throw me.status = r.status === 12 ? 3 : 4, Ae
                }
            }
            o.blockedSegment = C, C.lastPushedText = !1
        }
        V !== null && H !== null && 0 < H.pendingTasks && (V.pendingTasks++, H.next = V), o.treeContext = k, o.row = V, o.keyPath = _
    }

    function Er(r, o, v, y, C, _) {
        var k = o.thenableState;
        for (o.thenableState = null, Ve = {}, xt = o, Gt = r, qe = v, pt = aa = 0, Qt = -1, Bt = 0, jt = k, r = y(C, _); tt;) tt = !1, pt = aa = 0, Qt = -1, Bt = 0, Gl += 1, lt = null, r = y(C, _);
        return nn(), r
    }

    function On(r, o, v, y, C, _, k) {
        var V = !1;
        if (_ !== 0 && r.formState !== null) {
            var H = o.blockedSegment;
            if (H !== null) {
                V = !0, H = H.chunks;
                for (var I = 0; I < _; I++) I === k ? H.push(Po) : H.push(or)
            }
        }
        _ = o.keyPath, o.keyPath = v, C ? (v = o.treeContext, o.treeContext = U(v, 1, 0), qt(r, o, y, -1), o.treeContext = v) : V ? qt(r, o, y, -1) : Kt(r, o, y, -1), o.keyPath = _
    }

    function Vl(r, o, v, y, C, _) {
        if (typeof y == "function")
            if (y.prototype && y.prototype.isReactComponent) {
                var k = C;
                if ("ref" in C) {
                    k = {};
                    for (var V in C) V !== "ref" && (k[V] = C[V])
                }
                var H = y.defaultProps;
                if (H) {
                    k === C && (k = gt({}, k, C));
                    for (var I in H) k[I] === void 0 && (k[I] = H[I])
                }
                C = k, k = co, H = y.contextType, typeof H == "object" && H !== null && (k = H._currentValue), k = new y(C, k);
                var q = k.state !== void 0 ? k.state : null;
                if (k.updater = E, k.props = C, k.state = q, H = {
                    queue: [],
                    replace: !1
                }, k._reactInternals = H, _ = y.contextType, k.context = typeof _ == "object" && _ !== null ? _._currentValue : co, _ = y.getDerivedStateFromProps, typeof _ == "function" && (_ = _(C, q), q = _ == null ? q : gt({}, q, _), k.state = q), typeof y.getDerivedStateFromProps != "function" && typeof k.getSnapshotBeforeUpdate != "function" && (typeof k.UNSAFE_componentWillMount == "function" || typeof k.componentWillMount == "function"))
                    if (y = k.state, typeof k.componentWillMount == "function" && k.componentWillMount(), typeof k.UNSAFE_componentWillMount == "function" && k.UNSAFE_componentWillMount(), y !== k.state && E.enqueueReplaceState(k, k.state, null), H.queue !== null && 0 < H.queue.length)
                        if (y = H.queue, _ = H.replace, H.queue = null, H.replace = !1, _ && y.length === 1) k.state = y[0];
                        else {
                            for (H = _ ? y[0] : k.state, q = !0, _ = _ ? 1 : 0; _ < y.length; _++) I = y[_], I = typeof I == "function" ? I.call(k, H, C, void 0) : I, I != null && (q ? (q = !1, H = gt({}, H, I)) : gt(H, I));
                            k.state = H
                        }
                    else H.queue = null;
                if (y = k.render(), r.status === 12) throw null;
                C = o.keyPath, o.keyPath = v, Kt(r, o, y, -1), o.keyPath = C
            } else {
                if (y = Er(r, o, v, y, C, void 0), r.status === 12) throw null;
                On(r, o, v, y, aa !== 0, pt, Qt)
            }
        else if (typeof y == "string")
            if (k = o.blockedSegment, k === null) k = C.children, H = o.formatContext, q = o.keyPath, o.formatContext = In(H, y, C), o.keyPath = v, qt(r, o, k, -1), o.formatContext = H, o.keyPath = q;
            else {
                if (q = en(k.chunks, y, C, r.resumableState, r.renderState, o.blockedPreamble, o.hoistableState, o.formatContext, k.lastPushedText), k.lastPushedText = !1, H = o.formatContext, _ = o.keyPath, o.keyPath = v, (o.formatContext = In(H, y, C)).insertionMode === 3) {
                    v = Da(r, 0, null, o.formatContext, !1, !1), k.preambleChildren.push(v), o.blockedSegment = v;
                    try {
                        v.status = 6, qt(r, o, q, -1), v.lastPushedText && v.textEmbedded && v.chunks.push(Zn), v.status = 1, on(r, o.blockedBoundary, v)
                    } finally {
                        o.blockedSegment = k
                    }
                } else qt(r, o, q, -1);
                o.formatContext = H, o.keyPath = _;
                e: {
                    switch (o = k.chunks, r = r.resumableState, y) {
                        case "title":
                        case "style":
                        case "script":
                        case "area":
                        case "base":
                        case "br":
                        case "col":
                        case "embed":
                        case "hr":
                        case "img":
                        case "input":
                        case "keygen":
                        case "link":
                        case "meta":
                        case "param":
                        case "source":
                        case "track":
                        case "wbr":
                            break e;
                        case "body":
                            if (1 >= H.insertionMode) {
                                r.hasBody = !0;
                                break e
                            }
                            break;
                        case "html":
                            if (H.insertionMode === 0) {
                                r.hasHtml = !0;
                                break e
                            }
                            break;
                        case "head":
                            if (1 >= H.insertionMode) break e
                    }
                    o.push(zl(y))
                }
                k.lastPushedText = !1
            }
        else {
            switch (y) {
                case ce:
                case p:
                case w:
                case x:
                    y = o.keyPath, o.keyPath = v, Kt(r, o, C.children, -1), o.keyPath = y;
                    return;
                case Z:
                    y = o.blockedSegment, y === null ? C.mode !== "hidden" && (y = o.keyPath, o.keyPath = v, qt(r, o, C.children, -1), o.keyPath = y) : C.mode !== "hidden" && (y.chunks.push(Ei), y.lastPushedText = !1, k = o.keyPath, o.keyPath = v, qt(r, o, C.children, -1), o.keyPath = k, y.chunks.push(es), y.lastPushedText = !1);
                    return;
                case z:
                    e: {
                        if (y = C.children, C = C.revealOrder, C === "forwards" || C === "backwards" || C === "unstable_legacy-backwards") {
                            if (xe(y)) {
                                fc(r, o, v, y, C);
                                break e
                            }
                            if ((k = Se(y)) && (k = k.call(y))) {
                                if (H = k.next(), !H.done) {
                                    do H = k.next(); while (!H.done);
                                    fc(r, o, v, y, C)
                                }
                                break e
                            }
                        }
                        C === "together" ? (C = o.keyPath, k = o.row, H = o.row = Yt(null), H.boundaries = [], H.together = !0, o.keyPath = v, Kt(r, o, y, -1), --H.pendingTasks === 0 && Za(r, H), o.keyPath = C, o.row = k, k !== null && 0 < H.pendingTasks && (k.pendingTasks++, H.next = k)) : (C = o.keyPath, o.keyPath = v, Kt(r, o, y, -1), o.keyPath = C)
                    }
                    return;
                case ve:
                case G:
                    throw Error(i(343));
                case A:
                    e: if (o.replay !== null) {
                        y = o.keyPath, k = o.formatContext, H = o.row, o.keyPath = v, o.formatContext = Ml(r.resumableState, k), o.row = null, v = C.children;
                        try {
                            qt(r, o, v, -1)
                        } finally {
                            o.keyPath = y, o.formatContext = k, o.row = H
                        }
                    } else {
                        y = o.keyPath, _ = o.formatContext;
                        var ne = o.row;
                        I = o.blockedBoundary, V = o.blockedPreamble;
                        var ge = o.hoistableState,
                            me = o.blockedSegment,
                            Ae = C.fallback;
                        C = C.children;
                        var Ie = new Set,
                            Be = 2 > o.formatContext.insertionMode ? pn(r, o.row, Ie, It(), It()) : pn(r, o.row, Ie, null, null);
                        r.trackedPostpones !== null && (Be.trackedContentKeyPath = v);
                        var ye = Da(r, me.chunks.length, Be, o.formatContext, !1, !1);
                        me.children.push(ye), me.lastPushedText = !1;
                        var Re = Da(r, 0, null, o.formatContext, !1, !1);
                        if (Re.parentFlushed = !0, r.trackedPostpones !== null) {
                            k = o.componentStack, H = [v[0], "Suspense Fallback", v[2]], q = [H[1], H[2],
                            [], null
                            ], r.trackedPostpones.workingMap.set(H, q), Be.trackedFallbackNode = q, o.blockedSegment = ye, o.blockedPreamble = Be.fallbackPreamble, o.keyPath = H, o.formatContext = Si(r.resumableState, _), o.componentStack = _n(k), ye.status = 6;
                            try {
                                qt(r, o, Ae, -1), ye.lastPushedText && ye.textEmbedded && ye.chunks.push(Zn), ye.status = 1, on(r, I, ye)
                            } catch (et) {
                                throw ye.status = r.status === 12 ? 3 : 4, et
                            } finally {
                                o.blockedSegment = me, o.blockedPreamble = V, o.keyPath = y, o.formatContext = _
                            }
                            o = gl(r, null, C, -1, Be, Re, Be.contentPreamble, Be.contentState, o.abortSet, v, Ml(r.resumableState, o.formatContext), o.context, o.treeContext, null, k), $n(o), r.pingedTasks.push(o)
                        } else {
                            o.blockedBoundary = Be, o.blockedPreamble = Be.contentPreamble, o.hoistableState = Be.contentState, o.blockedSegment = Re, o.keyPath = v, o.formatContext = Ml(r.resumableState, _), o.row = null, Re.status = 6;
                            try {
                                if (qt(r, o, C, -1), Re.lastPushedText && Re.textEmbedded && Re.chunks.push(Zn), Re.status = 1, on(r, Be, Re), el(Be, Re), Be.pendingTasks === 0 && Be.status === 0) {
                                    if (Be.status = 1, !Rn(r, Be)) {
                                        ne !== null && --ne.pendingTasks === 0 && Za(r, ne), r.pendingRootTasks === 0 && o.blockedPreamble && Fn(r);
                                        break e
                                    }
                                } else ne !== null && ne.together && ds(r, ne)
                            } catch (et) {
                                Be.status = 4, r.status === 12 ? (Re.status = 3, k = r.fatalError) : (Re.status = 4, k = et), H = Ct(o.componentStack), q = da(r, k, H), Be.errorDigest = q, Il(r, Be)
                            } finally {
                                o.blockedBoundary = I, o.blockedPreamble = V, o.hoistableState = ge, o.blockedSegment = me, o.keyPath = y, o.formatContext = _, o.row = ne
                            }
                            o = gl(r, null, Ae, -1, I, ye, Be.fallbackPreamble, Be.fallbackState, Ie, [v[0], "Suspense Fallback", v[2]], Si(r.resumableState, o.formatContext), o.context, o.treeContext, o.row, _n(o.componentStack)), $n(o), r.pingedTasks.push(o)
                        }
                    }
                    return
            }
            if (typeof y == "object" && y !== null) switch (y.$$typeof) {
                case R:
                    if ("ref" in C)
                        for (me in k = {}, C) me !== "ref" && (k[me] = C[me]);
                    else k = C;
                    y = Er(r, o, v, y.render, k, _), On(r, o, v, y, aa !== 0, pt, Qt);
                    return;
                case O:
                    Vl(r, o, v, y.type, C, _);
                    return;
                case T:
                    if (H = C.children, k = o.keyPath, C = C.value, q = y._currentValue, y._currentValue = C, _ = Ya, Ya = y = {
                        parent: _,
                        depth: _ === null ? 0 : _.depth + 1,
                        context: y,
                        parentValue: q,
                        value: C
                    }, o.context = y, o.keyPath = v, Kt(r, o, H, -1), r = Ya, r === null) throw Error(i(403));
                    r.context._currentValue = r.parentValue, r = Ya = r.parent, o.context = r, o.keyPath = k;
                    return;
                case M:
                    C = C.children, y = C(y._context._currentValue), C = o.keyPath, o.keyPath = v, Kt(r, o, y, -1), o.keyPath = C;
                    return;
                case L:
                    if (k = y._init, y = k(y._payload), r.status === 12) throw null;
                    Vl(r, o, v, y, C, _);
                    return
            }
            throw Error(i(130, y == null ? y : typeof y, ""))
        }
    }

    function zn(r, o, v, y, C) {
        var _ = o.replay,
            k = o.blockedBoundary,
            V = Da(r, 0, null, o.formatContext, !1, !1);
        V.id = v, V.parentFlushed = !0;
        try {
            o.replay = null, o.blockedSegment = V, qt(r, o, y, C), V.status = 1, on(r, k, V), k === null ? r.completedRootSegment = V : (el(k, V), k.parentFlushed && r.partialBoundaries.push(k))
        } finally {
            o.replay = _, o.blockedSegment = null
        }
    }

    function Kt(r, o, v, y) {
        o.replay !== null && typeof o.replay.slots == "number" ? zn(r, o, o.replay.slots, v, y) : (o.node = v, o.childIndex = y, v = o.componentStack, $n(o), Mr(r, o), o.componentStack = v)
    }

    function Mr(r, o) {
        var v = o.node,
            y = o.childIndex;
        if (v !== null) {
            if (typeof v == "object") {
                switch (v.$$typeof) {
                    case d:
                        var C = v.type,
                            _ = v.key,
                            k = v.props;
                        v = k.ref;
                        var V = v !== void 0 ? v : null,
                            H = Cr(C),
                            I = _ ?? (y === -1 ? 0 : y);
                        if (_ = [o.keyPath, H, I], o.replay !== null) e: {
                            var q = o.replay;
                            for (y = q.nodes, v = 0; v < y.length; v++) {
                                var ne = y[v];
                                if (I === ne[1]) {
                                    if (ne.length === 4) {
                                        if (H !== null && H !== ne[0]) throw Error(i(490, ne[0], H));
                                        var ge = ne[2];
                                        H = ne[3], I = o.node, o.replay = {
                                            nodes: ge,
                                            slots: H,
                                            pendingTasks: 1
                                        };
                                        try {
                                            if (Vl(r, o, _, C, k, V), o.replay.pendingTasks === 1 && 0 < o.replay.nodes.length) throw Error(i(488));
                                            o.replay.pendingTasks--
                                        } catch (ze) {
                                            if (typeof ze == "object" && ze !== null && (ze === be || typeof ze.then == "function")) throw o.node === I ? o.replay = q : y.splice(v, 1), ze;
                                            o.replay.pendingTasks--, k = Ct(o.componentStack), _ = r, r = o.blockedBoundary, C = ze, k = da(_, C, k), gi(_, r, ge, H, C, k)
                                        }
                                        o.replay = q
                                    } else {
                                        if (C !== A) throw Error(i(490, "Suspense", Cr(C) || "Unknown"));
                                        t: {
                                            q = void 0,
                                                C = ne[5],
                                                V = ne[2],
                                                H = ne[3],
                                                I = ne[4] === null ? [] : ne[4][2],
                                                ne = ne[4] === null ? null : ne[4][3];
                                            var me = o.keyPath,
                                                Ae = o.formatContext,
                                                Ie = o.row,
                                                Be = o.replay,
                                                ye = o.blockedBoundary,
                                                Re = o.hoistableState,
                                                et = k.children,
                                                ka = k.fallback,
                                                La = new Set; k = 2 > o.formatContext.insertionMode ? pn(r, o.row, La, It(), It()) : pn(r, o.row, La, null, null),
                                                    k.parentFlushed = !0,
                                                    k.rootSegmentID = C,
                                                    o.blockedBoundary = k,
                                                    o.hoistableState = k.contentState,
                                                    o.keyPath = _,
                                                    o.formatContext = Ml(r.resumableState, Ae),
                                                    o.row = null,
                                                    o.replay = {
                                                        nodes: V,
                                                        slots: H,
                                                        pendingTasks: 1
                                                    };
                                            try {
                                                if (qt(r, o, et, -1), o.replay.pendingTasks === 1 && 0 < o.replay.nodes.length) throw Error(i(488));
                                                if (o.replay.pendingTasks--, k.pendingTasks === 0 && k.status === 0) {
                                                    k.status = 1, r.completedBoundaries.push(k);
                                                    break t
                                                }
                                            } catch (ze) {
                                                k.status = 4, ge = Ct(o.componentStack), q = da(r, ze, ge), k.errorDigest = q, o.replay.pendingTasks--, r.clientRenderedBoundaries.push(k)
                                            } finally {
                                                o.blockedBoundary = ye, o.hoistableState = Re, o.replay = Be, o.keyPath = me, o.formatContext = Ae, o.row = Ie
                                            }
                                            ge = Tr(r, null, {
                                                nodes: I,
                                                slots: ne,
                                                pendingTasks: 0
                                            }, ka, -1, ye, k.fallbackState, La, [_[0], "Suspense Fallback", _[2]], Si(r.resumableState, o.formatContext), o.context, o.treeContext, o.row, _n(o.componentStack)),
                                                $n(ge),
                                                r.pingedTasks.push(ge)
                                        }
                                    }
                                    y.splice(v, 1);
                                    break e
                                }
                            }
                        }
                        else Vl(r, o, _, C, k, V);
                        return;
                    case g:
                        throw Error(i(257));
                    case L:
                        if (ge = v._init, v = ge(v._payload), r.status === 12) throw null;
                        Kt(r, o, v, y);
                        return
                }
                if (xe(v)) {
                    Fi(r, o, v, y);
                    return
                }
                if ((ge = Se(v)) && (ge = ge.call(v))) {
                    if (v = ge.next(), !v.done) {
                        k = [];
                        do k.push(v.value), v = ge.next(); while (!v.done);
                        Fi(r, o, k, y)
                    }
                    return
                }
                if (typeof v.then == "function") return o.thenableState = null, Kt(r, o, us(v), y);
                if (v.$$typeof === T) return Kt(r, o, v._currentValue, y);
                throw y = Object.prototype.toString.call(v), Error(i(31, y === "[object Object]" ? "object with keys {" + Object.keys(v).join(", ") + "}" : y))
            }
            typeof v == "string" ? (y = o.blockedSegment, y !== null && (y.lastPushedText = $c(y.chunks, v, r.renderState, y.lastPushedText))) : (typeof v == "number" || typeof v == "bigint") && (y = o.blockedSegment, y !== null && (y.lastPushedText = $c(y.chunks, "" + v, r.renderState, y.lastPushedText)))
        }
    }

    function Fi(r, o, v, y) {
        var C = o.keyPath;
        if (y !== -1 && (o.keyPath = [o.keyPath, "Fragment", y], o.replay !== null)) {
            for (var _ = o.replay, k = _.nodes, V = 0; V < k.length; V++) {
                var H = k[V];
                if (H[1] === y) {
                    y = H[2], H = H[3], o.replay = {
                        nodes: y,
                        slots: H,
                        pendingTasks: 1
                    };
                    try {
                        if (Fi(r, o, v, -1), o.replay.pendingTasks === 1 && 0 < o.replay.nodes.length) throw Error(i(488));
                        o.replay.pendingTasks--
                    } catch (ne) {
                        if (typeof ne == "object" && ne !== null && (ne === be || typeof ne.then == "function")) throw ne;
                        o.replay.pendingTasks--, v = Ct(o.componentStack);
                        var I = o.blockedBoundary,
                            q = ne;
                        v = da(r, q, v), gi(r, I, y, H, q, v)
                    }
                    o.replay = _, k.splice(V, 1);
                    break
                }
            }
            o.keyPath = C;
            return
        }
        if (_ = o.treeContext, k = v.length, o.replay !== null && (V = o.replay.slots, V !== null && typeof V == "object")) {
            for (y = 0; y < k; y++) H = v[y], o.treeContext = U(_, k, y), I = V[y], typeof I == "number" ? (zn(r, o, I, H, y), delete V[y]) : qt(r, o, H, y);
            o.treeContext = _, o.keyPath = C;
            return
        }
        for (V = 0; V < k; V++) y = v[V], o.treeContext = U(_, k, V), qt(r, o, y, V);
        o.treeContext = _, o.keyPath = C
    }

    function hc(r, o, v) {
        if (v.status = 5, v.rootSegmentID = r.nextSegmentId++, r = v.trackedContentKeyPath, r === null) throw Error(i(486));
        var y = v.trackedFallbackNode,
            C = [],
            _ = o.workingMap.get(r);
        return _ === void 0 ? (v = [r[1], r[2], C, null, y, v.rootSegmentID], o.workingMap.set(r, v), Or(v, r[0], o), v) : (_[4] = y, _[5] = v.rootSegmentID, _)
    }

    function fs(r, o, v, y) {
        y.status = 5;
        var C = v.keyPath,
            _ = v.blockedBoundary;
        if (_ === null) y.id = r.nextSegmentId++, o.rootSlots = y.id, r.completedRootSegment !== null && (r.completedRootSegment.status = 5);
        else {
            if (_ !== null && _.status === 0) {
                var k = hc(r, o, _);
                if (_.trackedContentKeyPath === C && v.childIndex === -1) {
                    y.id === -1 && (y.id = y.parentFlushed ? _.rootSegmentID : r.nextSegmentId++), k[3] = y.id;
                    return
                }
            }
            if (y.id === -1 && (y.id = y.parentFlushed && _ !== null ? _.rootSegmentID : r.nextSegmentId++), v.childIndex === -1) C === null ? o.rootSlots = y.id : (v = o.workingMap.get(C), v === void 0 ? (v = [C[1], C[2],
            [], y.id
            ], Or(v, C[0], o)) : v[3] = y.id);
            else {
                if (C === null) {
                    if (r = o.rootSlots, r === null) r = o.rootSlots = {};
                    else if (typeof r == "number") throw Error(i(491))
                } else if (_ = o.workingMap, k = _.get(C), k === void 0) r = {}, k = [C[1], C[2],
                [], r
                ], _.set(C, k), Or(k, C[0], o);
                else if (r = k[3], r === null) r = k[3] = {};
                else if (typeof r == "number") throw Error(i(491));
                r[v.childIndex] = y.id
            }
        }
    }

    function Il(r, o) {
        r = r.trackedPostpones, r !== null && (o = o.trackedContentKeyPath, o !== null && (o = r.workingMap.get(o), o !== void 0 && (o.length = 4, o[2] = [], o[3] = null)))
    }

    function Ar(r, o, v) {
        return Tr(r, v, o.replay, o.node, o.childIndex, o.blockedBoundary, o.hoistableState, o.abortSet, o.keyPath, o.formatContext, o.context, o.treeContext, o.row, o.componentStack)
    }

    function Rr(r, o, v) {
        var y = o.blockedSegment,
            C = Da(r, y.chunks.length, null, o.formatContext, y.lastPushedText, !0);
        return y.children.push(C), y.lastPushedText = !1, gl(r, v, o.node, o.childIndex, o.blockedBoundary, C, o.blockedPreamble, o.hoistableState, o.abortSet, o.keyPath, o.formatContext, o.context, o.treeContext, o.row, o.componentStack)
    }

    function qt(r, o, v, y) {
        var C = o.formatContext,
            _ = o.context,
            k = o.keyPath,
            V = o.treeContext,
            H = o.componentStack,
            I = o.blockedSegment;
        if (I === null) {
            I = o.replay;
            try {
                return Kt(r, o, v, y)
            } catch (ge) {
                if (nn(), v = ge === be ? He() : ge, r.status !== 12 && typeof v == "object" && v !== null) {
                    if (typeof v.then == "function") {
                        y = ge === be ? na() : null, r = Ar(r, o, y).ping, v.then(r, r), o.formatContext = C, o.context = _, o.keyPath = k, o.treeContext = V, o.componentStack = H, o.replay = I, S(_);
                        return
                    }
                    if (v.message === "Maximum call stack size exceeded") {
                        v = ge === be ? na() : null, v = Ar(r, o, v), r.pingedTasks.push(v), o.formatContext = C, o.context = _, o.keyPath = k, o.treeContext = V, o.componentStack = H, o.replay = I, S(_);
                        return
                    }
                }
            }
        } else {
            var q = I.children.length,
                ne = I.chunks.length;
            try {
                return Kt(r, o, v, y)
            } catch (ge) {
                if (nn(), I.children.length = q, I.chunks.length = ne, v = ge === be ? He() : ge, r.status !== 12 && typeof v == "object" && v !== null) {
                    if (typeof v.then == "function") {
                        I = v, v = ge === be ? na() : null, r = Rr(r, o, v).ping, I.then(r, r), o.formatContext = C, o.context = _, o.keyPath = k, o.treeContext = V, o.componentStack = H, S(_);
                        return
                    }
                    if (v.message === "Maximum call stack size exceeded") {
                        I = ge === be ? na() : null, I = Rr(r, o, I), r.pingedTasks.push(I), o.formatContext = C, o.context = _, o.keyPath = k, o.treeContext = V, o.componentStack = H, S(_);
                        return
                    }
                }
            }
        }
        throw o.formatContext = C, o.context = _, o.keyPath = k, o.treeContext = V, S(_), v
    }

    function Zl(r) {
        var o = r.blockedBoundary,
            v = r.blockedSegment;
        v !== null && (v.status = 3, yn(this, o, r.row, v))
    }

    function gi(r, o, v, y, C, _) {
        for (var k = 0; k < v.length; k++) {
            var V = v[k];
            if (V.length === 4) gi(r, o, V[2], V[3], C, _);
            else {
                V = V[5];
                var H = r,
                    I = _,
                    q = pn(H, null, new Set, null, null);
                q.parentFlushed = !0, q.rootSegmentID = V, q.status = 4, q.errorDigest = I, q.parentFlushed && H.clientRenderedBoundaries.push(q)
            }
        }
        if (v.length = 0, y !== null) {
            if (o === null) throw Error(i(487));
            if (o.status !== 4 && (o.status = 4, o.errorDigest = _, o.parentFlushed && r.clientRenderedBoundaries.push(o)), typeof y == "object")
                for (var ne in y) delete y[ne]
        }
    }

    function Ql(r, o, v) {
        var y = r.blockedBoundary,
            C = r.blockedSegment;
        if (C !== null) {
            if (C.status === 6) return;
            C.status = 3
        }
        var _ = Ct(r.componentStack);
        if (y === null) {
            if (o.status !== 13 && o.status !== 14) {
                if (y = r.replay, y === null) {
                    o.trackedPostpones !== null && C !== null ? (y = o.trackedPostpones, da(o, v, _), fs(o, y, r, C), yn(o, null, r.row, C)) : (da(o, v, _), Hi(o, v));
                    return
                }
                y.pendingTasks--, y.pendingTasks === 0 && 0 < y.nodes.length && (C = da(o, v, _), gi(o, null, y.nodes, y.slots, v, C)), o.pendingRootTasks--, o.pendingRootTasks === 0 && hs(o)
            }
        } else {
            var k = o.trackedPostpones;
            if (y.status !== 4) {
                if (k !== null && C !== null) return da(o, v, _), fs(o, k, r, C), y.fallbackAbortableTasks.forEach(function (V) {
                    return Ql(V, o, v)
                }), y.fallbackAbortableTasks.clear(), yn(o, y, r.row, C);
                y.status = 4, C = da(o, v, _), y.status = 4, y.errorDigest = C, Il(o, y), y.parentFlushed && o.clientRenderedBoundaries.push(y)
            }
            y.pendingTasks--, C = y.row, C !== null && --C.pendingTasks === 0 && Za(o, C), y.fallbackAbortableTasks.forEach(function (V) {
                return Ql(V, o, v)
            }), y.fallbackAbortableTasks.clear()
        }
        r = r.row, r !== null && --r.pendingTasks === 0 && Za(o, r), o.allPendingTasks--, o.allPendingTasks === 0 && _r(o)
    }

    function mi(r, o) {
        try {
            var v = r.renderState,
                y = v.onHeaders;
            if (y) {
                var C = v.headers;
                if (C) {
                    v.headers = null;
                    var _ = C.preconnects;
                    if (C.fontPreloads && (_ && (_ += ", "), _ += C.fontPreloads), C.highImagePreloads && (_ && (_ += ", "), _ += C.highImagePreloads), !o) {
                        var k = v.styles.values(),
                            V = k.next();
                        e: for (; 0 < C.remainingCapacity && !V.done; V = k.next())
                            for (var H = V.value.sheets.values(), I = H.next(); 0 < C.remainingCapacity && !I.done; I = H.next()) {
                                var q = I.value,
                                    ne = q.props,
                                    ge = ne.href,
                                    me = q.props,
                                    Ae = za(me.href, "style", {
                                        crossOrigin: me.crossOrigin,
                                        integrity: me.integrity,
                                        nonce: me.nonce,
                                        type: me.type,
                                        fetchPriority: me.fetchPriority,
                                        referrerPolicy: me.referrerPolicy,
                                        media: me.media
                                    });
                                if (0 <= (C.remainingCapacity -= Ae.length + 2)) v.resets.style[ge] = Mn, _ && (_ += ", "), _ += Ae, v.resets.style[ge] = typeof ne.crossOrigin == "string" || typeof ne.integrity == "string" ? [ne.crossOrigin, ne.integrity] : Mn;
                                else break e
                            }
                    }
                    y(_ ? {
                        Link: _
                    } : {})
                }
            }
        } catch (Ie) {
            da(r, Ie, {})
        }
    }

    function hs(r) {
        r.trackedPostpones === null && mi(r, !0), r.trackedPostpones === null && Fn(r), r.onShellError = ie, r = r.onShellReady, r()
    }

    function _r(r) {
        mi(r, r.trackedPostpones === null ? !0 : r.completedRootSegment === null || r.completedRootSegment.status !== 5), Fn(r), r = r.onAllReady, r()
    }

    function el(r, o) {
        if (o.chunks.length === 0 && o.children.length === 1 && o.children[0].boundary === null && o.children[0].id === -1) {
            var v = o.children[0];
            v.id = o.id, v.parentFlushed = !0, v.status !== 1 && v.status !== 3 && v.status !== 4 || el(r, v)
        } else r.completedSegments.push(o)
    }

    function on(r, o, v) {
        if (mt !== null) {
            v = v.chunks;
            for (var y = 0, C = 0; C < v.length; C++) y += v[C].byteLength;
            o === null ? r.byteSize += y : o.byteSize += y
        }
    }

    function yn(r, o, v, y) {
        if (v !== null && (--v.pendingTasks === 0 ? Za(r, v) : v.together && ds(r, v)), r.allPendingTasks--, o === null) {
            if (y !== null && y.parentFlushed) {
                if (r.completedRootSegment !== null) throw Error(i(389));
                r.completedRootSegment = y
            }
            r.pendingRootTasks--, r.pendingRootTasks === 0 && hs(r)
        } else if (o.pendingTasks--, o.status !== 4)
            if (o.pendingTasks === 0) {
                if (o.status === 0 && (o.status = 1), y !== null && y.parentFlushed && (y.status === 1 || y.status === 3) && el(o, y), o.parentFlushed && r.completedBoundaries.push(o), o.status === 1) v = o.row, v !== null && Bi(v.hoistables, o.contentState), Rn(r, o) || (o.fallbackAbortableTasks.forEach(Zl, r), o.fallbackAbortableTasks.clear(), v !== null && --v.pendingTasks === 0 && Za(r, v)), r.pendingRootTasks === 0 && r.trackedPostpones === null && o.contentPreamble !== null && Fn(r);
                else if (o.status === 5 && (o = o.row, o !== null)) {
                    if (r.trackedPostpones !== null) {
                        v = r.trackedPostpones;
                        var C = o.next;
                        if (C !== null && (y = C.boundaries, y !== null))
                            for (C.boundaries = null, C = 0; C < y.length; C++) {
                                var _ = y[C];
                                hc(r, v, _), yn(r, _, null, null)
                            }
                    } --o.pendingTasks === 0 && Za(r, o)
                }
            } else y === null || !y.parentFlushed || y.status !== 1 && y.status !== 3 || (el(o, y), o.completedSegments.length === 1 && o.parentFlushed && r.partialBoundaries.push(o)), o = o.row, o !== null && o.together && ds(r, o);
        r.allPendingTasks === 0 && _r(r)
    }

    function gc(r) {
        if (r.status !== 14 && r.status !== 13) {
            var o = Ya,
                v = Tl.H;
            Tl.H = uc;
            var y = Tl.A;
            Tl.A = Dt;
            var C = Rt;
            Rt = r;
            var _ = la;
            la = r.resumableState;
            try {
                var k = r.pingedTasks,
                    V;
                for (V = 0; V < k.length; V++) {
                    var H = k[V],
                        I = r,
                        q = H.blockedSegment;
                    if (q === null) {
                        var ne = I;
                        if (H.replay.pendingTasks !== 0) {
                            S(H.context);
                            try {
                                if (typeof H.replay.slots == "number" ? zn(ne, H, H.replay.slots, H.node, H.childIndex) : Mr(ne, H), H.replay.pendingTasks === 1 && 0 < H.replay.nodes.length) throw Error(i(488));
                                H.replay.pendingTasks--, H.abortSet.delete(H), yn(ne, H.blockedBoundary, H.row, null)
                            } catch (Ta) {
                                nn();
                                var ge = Ta === be ? He() : Ta;
                                if (typeof ge == "object" && ge !== null && typeof ge.then == "function") {
                                    var me = H.ping;
                                    ge.then(me, me), H.thenableState = Ta === be ? na() : null
                                } else {
                                    H.replay.pendingTasks--, H.abortSet.delete(H);
                                    var Ae = Ct(H.componentStack);
                                    I = void 0;
                                    var Ie = ne,
                                        Be = H.blockedBoundary,
                                        ye = ne.status === 12 ? ne.fatalError : ge,
                                        Re = H.replay.nodes,
                                        et = H.replay.slots;
                                    I = da(Ie, ye, Ae), gi(Ie, Be, Re, et, ye, I), ne.pendingRootTasks--, ne.pendingRootTasks === 0 && hs(ne), ne.allPendingTasks--, ne.allPendingTasks === 0 && _r(ne)
                                }
                            }
                        }
                    } else if (ne = void 0, Ie = q, Ie.status === 0) {
                        Ie.status = 6, S(H.context);
                        var ka = Ie.children.length,
                            La = Ie.chunks.length;
                        try {
                            Mr(I, H), Ie.lastPushedText && Ie.textEmbedded && Ie.chunks.push(Zn), H.abortSet.delete(H), Ie.status = 1, on(I, H.blockedBoundary, Ie), yn(I, H.blockedBoundary, H.row, Ie)
                        } catch (Ta) {
                            nn(), Ie.children.length = ka, Ie.chunks.length = La;
                            var ze = Ta === be ? He() : I.status === 12 ? I.fatalError : Ta;
                            if (I.status === 12 && I.trackedPostpones !== null) {
                                var xa = I.trackedPostpones,
                                    kt = Ct(H.componentStack);
                                H.abortSet.delete(H), da(I, ze, kt), fs(I, xa, H, Ie), yn(I, H.blockedBoundary, H.row, Ie)
                            } else if (typeof ze == "object" && ze !== null && typeof ze.then == "function") {
                                Ie.status = 0, H.thenableState = Ta === be ? na() : null;
                                var fa = H.ping;
                                ze.then(fa, fa)
                            } else {
                                var Pl = Ct(H.componentStack);
                                H.abortSet.delete(H), Ie.status = 4;
                                var Fe = H.blockedBoundary,
                                    bl = H.row;
                                if (bl !== null && --bl.pendingTasks === 0 && Za(I, bl), I.allPendingTasks--, ne = da(I, ze, Pl), Fe === null) Hi(I, ze);
                                else if (Fe.pendingTasks--, Fe.status !== 4) {
                                    Fe.status = 4, Fe.errorDigest = ne, Il(I, Fe);
                                    var Xn = Fe.row;
                                    Xn !== null && --Xn.pendingTasks === 0 && Za(I, Xn), Fe.parentFlushed && I.clientRenderedBoundaries.push(Fe), I.pendingRootTasks === 0 && I.trackedPostpones === null && Fe.contentPreamble !== null && Fn(I)
                                }
                                I.allPendingTasks === 0 && _r(I)
                            }
                        }
                    }
                }
                k.splice(0, V), r.destination !== null && Xi(r, r.destination)
            } catch (Ta) {
                da(r, Ta, {}), Hi(r, Ta)
            } finally {
                la = _, Tl.H = v, Tl.A = y, v === uc && S(o), Rt = C
            }
        }
    }

    function jn(r, o, v) {
        o.preambleChildren.length && v.push(o.preambleChildren);
        for (var y = !1, C = 0; C < o.children.length; C++) y = Gi(r, o.children[C], v) || y;
        return y
    }

    function Gi(r, o, v) {
        var y = o.boundary;
        if (y === null) return jn(r, o, v);
        var C = y.contentPreamble,
            _ = y.fallbackPreamble;
        if (C === null || _ === null) return !1;
        switch (y.status) {
            case 1:
                if ($r(r.renderState, C), r.byteSize += y.byteSize, o = y.completedSegments[0], !o) throw Error(i(391));
                return jn(r, o, v);
            case 5:
                if (r.trackedPostpones !== null) return !0;
            case 4:
                if (o.status === 1) return $r(r.renderState, _), jn(r, o, v);
            default:
                return !0
        }
    }

    function Fn(r) {
        if (r.completedRootSegment && r.completedPreambleSegments === null) {
            var o = [],
                v = r.byteSize,
                y = Gi(r, r.completedRootSegment, o),
                C = r.renderState.preamble;
            y === !1 || C.headChunks && C.bodyChunks ? r.completedPreambleSegments = o : r.byteSize = v
        }
    }

    function tl(r, o, v, y) {
        switch (v.parentFlushed = !0, v.status) {
            case 0:
                v.id = r.nextSegmentId++;
            case 5:
                return y = v.id, v.lastPushedText = !1, v.textEmbedded = !1, r = r.renderState, B(o, ao), B(o, r.placeholderPrefix), r = fe(y.toString(16)), B(o, r), P(o, dr);
            case 1:
                v.status = 2;
                var C = !0,
                    _ = v.chunks,
                    k = 0;
                v = v.children;
                for (var V = 0; V < v.length; V++) {
                    for (C = v[V]; k < C.index; k++) B(o, _[k]);
                    C = Yi(r, o, C, y)
                }
                for (; k < _.length - 1; k++) B(o, _[k]);
                return k < _.length && (C = P(o, _[k])), C;
            case 3:
                return !0;
            default:
                throw Error(i(390))
        }
    }
    var Gn = 0;

    function Yi(r, o, v, y) {
        var C = v.boundary;
        if (C === null) return tl(r, o, v, y);
        if (C.parentFlushed = !0, C.status === 4) {
            var _ = C.row;
            _ !== null && --_.pendingTasks === 0 && Za(r, _), C = C.errorDigest, P(o, tn), B(o, Dl), C && (B(o, hr), B(o, fe(Xe(C))), B(o, fr)), P(o, gr), tl(r, o, v, y)
        } else if (C.status !== 1) C.status === 0 && (C.rootSegmentID = r.nextSegmentId++), 0 < C.completedSegments.length && r.partialBoundaries.push(C), Mi(o, r.renderState, C.rootSegmentID), y && Bi(y, C.fallbackState), tl(r, o, v, y);
        else if (!al && Rn(r, C) && (Gn + C.byteSize > r.progressiveChunkSize || fl(C.contentState))) C.rootSegmentID = r.nextSegmentId++, r.completedBoundaries.push(C), Mi(o, r.renderState, C.rootSegmentID), tl(r, o, v, y);
        else {
            if (Gn += C.byteSize, y && Bi(y, C.contentState), v = C.row, v !== null && Rn(r, C) && --v.pendingTasks === 0 && Za(r, v), P(o, Wo), v = C.completedSegments, v.length !== 1) throw Error(i(391));
            Yi(r, o, v[0], y)
        }
        return P(o, Ga)
    }

    function un(r, o, v, y) {
        return br(o, r.renderState, v.parentFormatContext, v.id), Yi(r, o, v, y), ns(o, v.parentFormatContext)
    }

    function mc(r, o, v) {
        Gn = v.byteSize;
        for (var y = v.completedSegments, C = 0; C < y.length; C++) ml(r, o, v, y[C]);
        y.length = 0, y = v.row, y !== null && Rn(r, v) && --y.pendingTasks === 0 && Za(r, y), dl(o, v.contentState, r.renderState), y = r.resumableState, r = r.renderState, C = v.rootSegmentID, v = v.contentState;
        var _ = r.stylesToHoist;
        return r.stylesToHoist = !1, B(o, r.startInlineScript), B(o, St), _ ? ((y.instructions & 4) === 0 && (y.instructions |= 4, B(o, xr)), (y.instructions & 2) === 0 && (y.instructions |= 2, B(o, ls)), (y.instructions & 8) === 0 ? (y.instructions |= 8, B(o, Bu)) : B(o, qo)) : ((y.instructions & 2) === 0 && (y.instructions |= 2, B(o, ls)), B(o, Ko)), y = fe(C.toString(16)), B(o, r.boundaryPrefix), B(o, y), B(o, Is), B(o, r.segmentPrefix), B(o, y), _ ? (B(o, Hu), ba(o, v)) : B(o, Zs), v = P(o, $o), ii(o, r) && v
    }

    function ml(r, o, v, y) {
        if (y.status === 2) return !0;
        var C = v.contentState,
            _ = y.id;
        if (_ === -1) {
            if ((y.id = v.rootSegmentID) === -1) throw Error(i(392));
            return un(r, o, y, C)
        }
        return _ === v.rootSegmentID ? un(r, o, y, C) : (un(r, o, y, C), v = r.resumableState, r = r.renderState, B(o, r.startInlineScript), B(o, St), (v.instructions & 1) === 0 ? (v.instructions |= 1, B(o, Jo)) : B(o, ku), B(o, r.segmentPrefix), _ = fe(_.toString(16)), B(o, _), B(o, Lu), B(o, r.placeholderPrefix), B(o, _), o = P(o, Uu), o)
    }
    var al = !1;

    function Xi(r, o) {
        Ye = new Uint8Array(2048), Ee = 0;
        try {
            if (!(0 < r.pendingRootTasks)) {
                var v, y = r.completedRootSegment;
                if (y !== null) {
                    if (y.status === 5) return;
                    var C = r.completedPreambleSegments;
                    if (C === null) return;
                    Gn = r.byteSize;
                    var _ = r.resumableState,
                        k = r.renderState,
                        V = k.preamble,
                        H = V.htmlChunks,
                        I = V.headChunks,
                        q;
                    if (H) {
                        for (q = 0; q < H.length; q++) B(o, H[q]);
                        if (I)
                            for (q = 0; q < I.length; q++) B(o, I[q]);
                        else B(o, Zt("head")), B(o, St)
                    } else if (I)
                        for (q = 0; q < I.length; q++) B(o, I[q]);
                    var ne = k.charsetChunks;
                    for (q = 0; q < ne.length; q++) B(o, ne[q]);
                    ne.length = 0, k.preconnects.forEach(Ot, o), k.preconnects.clear();
                    var ge = k.viewportChunks;
                    for (q = 0; q < ge.length; q++) B(o, ge[q]);
                    ge.length = 0, k.fontPreloads.forEach(Ot, o), k.fontPreloads.clear(), k.highImagePreloads.forEach(Ot, o), k.highImagePreloads.clear(), yi = k, k.styles.forEach($s, o), yi = null;
                    var me = k.importMapChunks;
                    for (q = 0; q < me.length; q++) B(o, me[q]);
                    me.length = 0, k.bootstrapScripts.forEach(Ot, o), k.scripts.forEach(Ot, o), k.scripts.clear(), k.bulkPreloads.forEach(Ot, o), k.bulkPreloads.clear(), H || I || (_.instructions |= 32);
                    var Ae = k.hoistableChunks;
                    for (q = 0; q < Ae.length; q++) B(o, Ae[q]);
                    for (_ = Ae.length = 0; _ < C.length; _++) {
                        var Ie = C[_];
                        for (k = 0; k < Ie.length; k++) Yi(r, o, Ie[k], null)
                    }
                    var Be = r.renderState.preamble,
                        ye = Be.headChunks;
                    (Be.htmlChunks || ye) && B(o, zl("head"));
                    var Re = Be.bodyChunks;
                    if (Re)
                        for (C = 0; C < Re.length; C++) B(o, Re[C]);
                    Yi(r, o, y, null), r.completedRootSegment = null;
                    var et = r.renderState;
                    if (r.allPendingTasks !== 0 || r.clientRenderedBoundaries.length !== 0 || r.completedBoundaries.length !== 0 || r.trackedPostpones !== null && (r.trackedPostpones.rootNodes.length !== 0 || r.trackedPostpones.rootSlots !== null)) {
                        var ka = r.resumableState;
                        if ((ka.instructions & 64) === 0) {
                            if (ka.instructions |= 64, B(o, et.startInlineScript), (ka.instructions & 32) === 0) {
                                ka.instructions |= 32;
                                var La = "_" + ka.idPrefix + "R_";
                                B(o, rs), B(o, fe(Xe(La))), B(o, Lt)
                            }
                            B(o, St), B(o, jl), P(o, ot)
                        }
                    }
                    ii(o, et)
                }
                var ze = r.renderState;
                y = 0;
                var xa = ze.viewportChunks;
                for (y = 0; y < xa.length; y++) B(o, xa[y]);
                xa.length = 0, ze.preconnects.forEach(Ot, o), ze.preconnects.clear(), ze.fontPreloads.forEach(Ot, o), ze.fontPreloads.clear(), ze.highImagePreloads.forEach(Ot, o), ze.highImagePreloads.clear(), ze.styles.forEach(ec, o), ze.scripts.forEach(Ot, o), ze.scripts.clear(), ze.bulkPreloads.forEach(Ot, o), ze.bulkPreloads.clear();
                var kt = ze.hoistableChunks;
                for (y = 0; y < kt.length; y++) B(o, kt[y]);
                kt.length = 0;
                var fa = r.clientRenderedBoundaries;
                for (v = 0; v < fa.length; v++) {
                    var Pl = fa[v];
                    ze = o;
                    var Fe = r.resumableState,
                        bl = r.renderState,
                        Xn = Pl.rootSegmentID,
                        Ta = Pl.errorDigest;
                    B(ze, bl.startInlineScript), B(ze, St), (Fe.instructions & 4) === 0 ? (Fe.instructions |= 4, B(ze, lo)) : B(ze, Qs), B(ze, bl.boundaryPrefix), B(ze, fe(Xn.toString(16))), B(ze, Ps), Ta && (B(ze, pr), B(ze, fe(eu(Ta || ""))));
                    var Dn = P(ze, Fu);
                    if (!Dn) {
                        r.destination = null, v++, fa.splice(0, v);
                        return
                    }
                }
                fa.splice(0, v);
                var gs = r.completedBoundaries;
                for (v = 0; v < gs.length; v++)
                    if (!mc(r, o, gs[v])) {
                        r.destination = null, v++, gs.splice(0, v);
                        return
                    } gs.splice(0, v), Te(o), Ye = new Uint8Array(2048), Ee = 0, al = !0;
                var Ii = r.partialBoundaries;
                for (v = 0; v < Ii.length; v++) {
                    var Wl = Ii[v];
                    e: {
                        fa = r,
                            Pl = o,
                            Gn = Wl.byteSize;
                        var Zi = Wl.completedSegments;
                        for (Dn = 0; Dn < Zi.length; Dn++)
                            if (!ml(fa, Pl, Wl, Zi[Dn])) {
                                Dn++, Zi.splice(0, Dn);
                                var Ua = !1;
                                break e
                            } Zi.splice(0, Dn);
                        var Nt = Wl.row; Nt !== null && Nt.together && Wl.pendingTasks === 1 && (Nt.pendingTasks === 1 ? oo(fa, Nt, Nt.hoistables) : Nt.pendingTasks--),
                            Ua = dl(Pl, Wl.contentState, fa.renderState)
                    }
                    if (!Ua) {
                        r.destination = null, v++, Ii.splice(0, v);
                        return
                    }
                }
                Ii.splice(0, v), al = !1;
                var Jl = r.completedBoundaries;
                for (v = 0; v < Jl.length; v++)
                    if (!mc(r, o, Jl[v])) {
                        r.destination = null, v++, Jl.splice(0, v);
                        return
                    } Jl.splice(0, v)
            }
        } finally {
            al = !1, r.allPendingTasks === 0 && r.clientRenderedBoundaries.length === 0 && r.completedBoundaries.length === 0 ? (r.flushScheduled = !1, v = r.resumableState, v.hasBody && B(o, zl("body")), v.hasHtml && B(o, zl("html")), Te(o), r.status = 14, o.close(), r.destination = null) : Te(o)
        }
    }

    function Sn(r) {
        r.flushScheduled = r.destination !== null, Oe(function () {
            return gc(r)
        }), ta(function () {
            r.status === 10 && (r.status = 11), r.trackedPostpones === null && mi(r, r.pendingRootTasks === 0)
        })
    }

    function Qa(r) {
        r.flushScheduled === !1 && r.pingedTasks.length === 0 && r.destination !== null && (r.flushScheduled = !0, ta(function () {
            var o = r.destination;
            o ? Xi(r, o) : r.flushScheduled = !1
        }))
    }

    function Yn(r, o) {
        if (r.status === 13) r.status = 14, nt(o, r.fatalError);
        else if (r.status !== 14 && r.destination === null) {
            r.destination = o;
            try {
                Xi(r, o)
            } catch (v) {
                da(r, v, {}), Hi(r, v)
            }
        }
    }

    function wn(r, o) {
        (r.status === 11 || r.status === 10) && (r.status = 12);
        try {
            var v = r.abortableTasks;
            if (0 < v.size) {
                var y = o === void 0 ? Error(i(432)) : typeof o == "object" && o !== null && typeof o.then == "function" ? Error(i(530)) : o;
                r.fatalError = y, v.forEach(function (C) {
                    return Ql(C, r, y)
                }), v.clear()
            }
            r.destination !== null && Xi(r, r.destination)
        } catch (C) {
            da(r, C, {}), Hi(r, C)
        }
    }

    function Or(r, o, v) {
        if (o === null) v.rootNodes.push(r);
        else {
            var y = v.workingMap,
                C = y.get(o);
            C === void 0 && (C = [o[1], o[2],
            [], null
            ], y.set(o, C), Or(C, o[0], v)), C[2].push(r)
        }
    }

    function Vi(r) {
        var o = r.trackedPostpones;
        if (o === null || o.rootNodes.length === 0 && o.rootSlots === null) return r.trackedPostpones = null;
        if (r.completedRootSegment === null || r.completedRootSegment.status !== 5 && r.completedPreambleSegments !== null) {
            var v = r.nextSegmentId,
                y = o.rootSlots,
                C = r.resumableState;
            C.bootstrapScriptContent = void 0, C.bootstrapScripts = void 0, C.bootstrapModules = void 0
        } else {
            v = 0, y = -1, C = r.resumableState;
            var _ = r.renderState;
            C.nextFormID = 0, C.hasBody = !1, C.hasHtml = !1, C.unknownResources = {
                font: _.resets.font
            }, C.dnsResources = _.resets.dns, C.connectResources = _.resets.connect, C.imageResources = _.resets.image, C.styleResources = _.resets.style, C.scriptResources = {}, C.moduleUnknownResources = {}, C.moduleScriptResources = {}, C.instructions = 0
        }
        return {
            nextSegmentId: v,
            rootFormatContext: r.rootFormatContext,
            progressiveChunkSize: r.progressiveChunkSize,
            resumableState: r.resumableState,
            replayNodes: o.rootNodes,
            replaySlots: y
        }
    }

    function vl() {
        var r = n.version;
        if (r !== "19.2.4") throw Error(i(527, r, "19.2.4"))
    }
    return vl(), vl(), Lo.prerender = function (r, o) {
        return new Promise(function (v, y) {
            var C = o ? o.onHeaders : void 0,
                _;
            C && (_ = function (q) {
                C(new Headers(q))
            });
            var k = qc(o ? o.identifierPrefix : void 0, o ? o.unstable_externalRuntimeSrc : void 0, o ? o.bootstrapScriptContent : void 0, o ? o.bootstrapScripts : void 0, o ? o.bootstrapModules : void 0),
                V = Yl(r, k, Bs(k, void 0, o ? o.unstable_externalRuntimeSrc : void 0, o ? o.importMap : void 0, _, o ? o.maxHeadersLength : void 0), ir(o ? o.namespaceURI : void 0), o ? o.progressiveChunkSize : void 0, o ? o.onError : void 0, function () {
                    var q = new ReadableStream({
                        type: "bytes",
                        pull: function (ne) {
                            Yn(V, ne)
                        },
                        cancel: function (ne) {
                            V.destination = null, wn(V, ne)
                        }
                    }, {
                        highWaterMark: 0
                    });
                    q = {
                        postponed: Vi(V),
                        prelude: q
                    }, v(q)
                }, void 0, void 0, y, o ? o.onPostpone : void 0);
            if (o && o.signal) {
                var H = o.signal;
                if (H.aborted) wn(V, H.reason);
                else {
                    var I = function () {
                        wn(V, H.reason), H.removeEventListener("abort", I)
                    };
                    H.addEventListener("abort", I)
                }
            }
            Sn(V)
        })
    }, Lo.renderToReadableStream = function (r, o) {
        return new Promise(function (v, y) {
            var C, _, k = new Promise(function (me, Ae) {
                _ = me, C = Ae
            }),
                V = o ? o.onHeaders : void 0,
                H;
            V && (H = function (me) {
                V(new Headers(me))
            });
            var I = qc(o ? o.identifierPrefix : void 0, o ? o.unstable_externalRuntimeSrc : void 0, o ? o.bootstrapScriptContent : void 0, o ? o.bootstrapScripts : void 0, o ? o.bootstrapModules : void 0),
                q = hi(r, I, Bs(I, o ? o.nonce : void 0, o ? o.unstable_externalRuntimeSrc : void 0, o ? o.importMap : void 0, H, o ? o.maxHeadersLength : void 0), ir(o ? o.namespaceURI : void 0), o ? o.progressiveChunkSize : void 0, o ? o.onError : void 0, _, function () {
                    var me = new ReadableStream({
                        type: "bytes",
                        pull: function (Ae) {
                            Yn(q, Ae)
                        },
                        cancel: function (Ae) {
                            q.destination = null, wn(q, Ae)
                        }
                    }, {
                        highWaterMark: 0
                    });
                    me.allReady = k, v(me)
                }, function (me) {
                    k.catch(function () { }), y(me)
                }, C, o ? o.onPostpone : void 0, o ? o.formState : void 0);
            if (o && o.signal) {
                var ne = o.signal;
                if (ne.aborted) wn(q, ne.reason);
                else {
                    var ge = function () {
                        wn(q, ne.reason), ne.removeEventListener("abort", ge)
                    };
                    ne.addEventListener("abort", ge)
                }
            }
            Sn(q)
        })
    }, Lo.resume = function (r, o, v) {
        return new Promise(function (y, C) {
            var _, k, V = new Promise(function (ne, ge) {
                k = ne, _ = ge
            }),
                H = qn(r, o, Bs(o.resumableState, v ? v.nonce : void 0, void 0, void 0, void 0, void 0), v ? v.onError : void 0, k, function () {
                    var ne = new ReadableStream({
                        type: "bytes",
                        pull: function (ge) {
                            Yn(H, ge)
                        },
                        cancel: function (ge) {
                            H.destination = null, wn(H, ge)
                        }
                    }, {
                        highWaterMark: 0
                    });
                    ne.allReady = V, y(ne)
                }, function (ne) {
                    V.catch(function () { }), C(ne)
                }, _, v ? v.onPostpone : void 0);
            if (v && v.signal) {
                var I = v.signal;
                if (I.aborted) wn(H, I.reason);
                else {
                    var q = function () {
                        wn(H, I.reason), I.removeEventListener("abort", q)
                    };
                    I.addEventListener("abort", q)
                }
            }
            Sn(H)
        })
    }, Lo.resumeAndPrerender = function (r, o, v) {
        return new Promise(function (y, C) {
            var _ = Xl(r, o, Bs(o.resumableState, void 0, void 0, void 0, void 0, void 0), v ? v.onError : void 0, function () {
                var H = new ReadableStream({
                    type: "bytes",
                    pull: function (I) {
                        Yn(_, I)
                    },
                    cancel: function (I) {
                        _.destination = null, wn(_, I)
                    }
                }, {
                    highWaterMark: 0
                });
                H = {
                    postponed: Vi(_),
                    prelude: H
                }, y(H)
            }, void 0, void 0, C, v ? v.onPostpone : void 0);
            if (v && v.signal) {
                var k = v.signal;
                if (k.aborted) wn(_, k.reason);
                else {
                    var V = function () {
                        wn(_, k.reason), k.removeEventListener("abort", V)
                    };
                    k.addEventListener("abort", V)
                }
            }
            Sn(_)
        })
    }, Lo.version = "19.2.4", Lo
}
var l0;

function h3() {
    if (l0) return ko;
    l0 = 1;
    var n, u;
    return n = d3(), u = f3(), ko.version = n.version, ko.renderToString = n.renderToString, ko.renderToStaticMarkup = n.renderToStaticMarkup, ko.renderToReadableStream = u.renderToReadableStream, ko.resume = u.resume, ko
}
var g3 = h3();
const m3 = _0(g3);

function I1(n) {
    var u = n.element,
        i = n.input;
    return function (g) {
        var x = g.container,
            p = u.getBoundingClientRect(),
            w = x.getBoundingClientRect(),
            M = Math.min(i.clientX - p.x, w.width),
            T = Math.min(i.clientY - p.y, w.height);
        return {
            x: M,
            y: T
        }
    }
}

function v3() {
    return {
        x: 0,
        y: 0
    }
}

function Z1(n) {
    var u = n.render,
        i = n.nativeSetDragImage,
        d = n.getOffset,
        g = d === void 0 ? v3 : d,
        x = document.createElement("div");
    Object.assign(x.style, {
        position: "fixed",
        top: 0,
        left: 0,
        zIndex: w1,
        pointerEvents: "none"
    }), document.body.append(x);
    var p = u({
        container: x
    });
    queueMicrotask(function () {
        var T = g({
            container: x
        });
        if (lh()) {
            var R = x.getBoundingClientRect();
            if (R.width === 0) return;
            x.style.left = "-".concat(R.width - 1e-4, "px")
        }
        i?.(x, T.x, T.y)
    });

    function w() {
        M(), p?.(), document.body.removeChild(x)
    }
    var M = Dd({
        onDragStart: w,
        onDrop: w
    })
}
const b3 = (n, u) => n.map(i => {
    const d = u.find(g => g.id === i.id);
    return d ? {
        ...i,
        ...d
    } : i
}),
    ng = n => n?.replace(/[^a-zA-Z0-9]/g, "").toLowerCase() || "",
    x3 = (n, u) => {
        const i = ng(u);
        return n.filter(d => {
            const g = ng(d.id).includes(i),
                x = ng(d.name).includes(i);
            return g || x
        })
    },
    p3 = n => it()((u, i) => {
        const d = n;
        return {
            search: !1,
            setSearch: g => {
                const {
                    renderFilterCards: x
                } = i();
                g ? x("") : u({
                    filterCards: []
                }), u({
                    search: g,
                    text: ""
                })
            },
            text: "",
            setText: g => {
                i().renderFilterCards(g), u({
                    text: g
                })
            },
            filterCards: [],
            renderFilterCards: g => {
                const {
                    data: x
                } = ea.getState(), {
                    cards: p
                } = hn.getState(), w = x.columns.find(T => T.id === d)?.cards, M = b3(w, p);
                u({
                    filterCards: x3(M, g)
                })
            }
        }
    }),
    ih = it()((n, u) => ({
        container: {},
        getContainer: i => {
            const {
                container: d
            } = u();
            if (d[i]) return d[i];
            {
                const g = p3(i);
                return n(x => ({
                    container: {
                        ...x.container,
                        [i]: g
                    }
                })), g
            }
        },
        deleteContainer: i => n(d => {
            const g = {
                ...d.container
            };
            return delete g[i], {
                container: g
            }
        }),
        closeSearchInContainer: () => {
            const {
                container: i
            } = u();
            Object.keys(i).forEach(d => {
                const {
                    setSearch: g
                } = i[d].getState();
                g(!1)
            })
        }
    })),
    y3 = Vo(function () {
        const {
            userAgent: u
        } = navigator;
        return u.includes("AppleWebKit") && !u.includes("Chrome")
    });

function Q1(n, u) {
    const i = Object.keys(n),
        d = Object.keys(u);
    return i.length !== d.length ? !1 : i.every(g => Object.is(n[g], u[g]))
}
const P1 = "data-block-board-panning";

function Eu(n, u, i) {
    let d = i.initialDeps ?? [],
        g, x = !0;

    function p() {
        var w, M, T;
        let R;
        i.key && ((w = i.debug) != null && w.call(i)) && (R = Date.now());
        const A = n();
        if (!(A.length !== d.length || A.some((L, G) => d[G] !== L))) return g;
        d = A;
        let O;
        if (i.key && ((M = i.debug) != null && M.call(i)) && (O = Date.now()), g = u(...A), i.key && ((T = i.debug) != null && T.call(i))) {
            const L = Math.round((Date.now() - R) * 100) / 100,
                G = Math.round((Date.now() - O) * 100) / 100,
                Z = G / 16,
                ce = (re, ve) => {
                    for (re = String(re); re.length < ve;) re = " " + re;
                    return re
                };
            console.info(`%c⏱ ${ce(G, 5)} /${ce(L, 5)} ms`, `
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0, Math.min(120 - 120 * Z, 120))}deg 100% 31%);`, i?.key)
        }
        return i?.onChange && !(x && i.skipInitialOnChange) && i.onChange(g), x = !1, g
    }
    return p.updateDeps = w => {
        d = w
    }, p
}

function i0(n, u) {
    if (n === void 0) throw new Error("Unexpected undefined");
    return n
}
const S3 = (n, u) => Math.abs(n - u) < 1.01,
    w3 = (n, u, i) => {
        let d;
        return function (...g) {
            n.clearTimeout(d), d = n.setTimeout(() => u.apply(this, g), i)
        }
    },
    r0 = n => {
        const {
            offsetWidth: u,
            offsetHeight: i
        } = n;
        return {
            width: u,
            height: i
        }
    },
    C3 = n => n,
    N3 = n => {
        const u = Math.max(n.startIndex - n.overscan, 0),
            i = Math.min(n.endIndex + n.overscan, n.count - 1),
            d = [];
        for (let g = u; g <= i; g++) d.push(g);
        return d
    },
    T3 = (n, u) => {
        const i = n.scrollElement;
        if (!i) return;
        const d = n.targetWindow;
        if (!d) return;
        const g = p => {
            const {
                width: w,
                height: M
            } = p;
            u({
                width: Math.round(w),
                height: Math.round(M)
            })
        };
        if (g(r0(i)), !d.ResizeObserver) return () => { };
        const x = new d.ResizeObserver(p => {
            const w = () => {
                const M = p[0];
                if (M?.borderBoxSize) {
                    const T = M.borderBoxSize[0];
                    if (T) {
                        g({
                            width: T.inlineSize,
                            height: T.blockSize
                        });
                        return
                    }
                }
                g(r0(i))
            };
            n.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(w) : w()
        });
        return x.observe(i, {
            box: "border-box"
        }), () => {
            x.unobserve(i)
        }
    },
    s0 = {
        passive: !0
    },
    c0 = typeof window > "u" ? !0 : "onscrollend" in window,
    E3 = (n, u) => {
        const i = n.scrollElement;
        if (!i) return;
        const d = n.targetWindow;
        if (!d) return;
        let g = 0;
        const x = n.options.useScrollendEvent && c0 ? () => { } : w3(d, () => {
            u(g, !1)
        }, n.options.isScrollingResetDelay),
            p = R => () => {
                const {
                    horizontal: A,
                    isRtl: z
                } = n.options;
                g = A ? i.scrollLeft * (z && -1 || 1) : i.scrollTop, x(), u(g, R)
            },
            w = p(!0),
            M = p(!1);
        i.addEventListener("scroll", w, s0);
        const T = n.options.useScrollendEvent && c0;
        return T && i.addEventListener("scrollend", M, s0), () => {
            i.removeEventListener("scroll", w), T && i.removeEventListener("scrollend", M)
        }
    },
    M3 = (n, u, i) => {
        if (u?.borderBoxSize) {
            const d = u.borderBoxSize[0];
            if (d) return Math.round(d[i.options.horizontal ? "inlineSize" : "blockSize"])
        }
        return n[i.options.horizontal ? "offsetWidth" : "offsetHeight"]
    },
    A3 = (n, {
        adjustments: u = 0,
        behavior: i
    }, d) => {
        var g, x;
        const p = n + u;
        (x = (g = d.scrollElement) == null ? void 0 : g.scrollTo) == null || x.call(g, {
            [d.options.horizontal ? "left" : "top"]: p,
            behavior: i
        })
    };
class R3 {
    constructor(u) {
        this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.currentScrollToIndex = null, this.measurementsCache = [], this.itemSizeCache = new Map, this.laneAssignments = new Map, this.pendingMeasuredCacheIndexes = [], this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = new Map, this.observer = (() => {
            let i = null;
            const d = () => i || (!this.targetWindow || !this.targetWindow.ResizeObserver ? null : i = new this.targetWindow.ResizeObserver(g => {
                g.forEach(x => {
                    const p = () => {
                        this._measureElement(x.target, x)
                    };
                    this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(p) : p()
                })
            }));
            return {
                disconnect: () => {
                    var g;
                    (g = d()) == null || g.disconnect(), i = null
                },
                observe: g => {
                    var x;
                    return (x = d()) == null ? void 0 : x.observe(g, {
                        box: "border-box"
                    })
                },
                unobserve: g => {
                    var x;
                    return (x = d()) == null ? void 0 : x.unobserve(g)
                }
            }
        })(), this.range = null, this.setOptions = i => {
            Object.entries(i).forEach(([d, g]) => {
                typeof g > "u" && delete i[d]
            }), this.options = {
                debug: !1,
                initialOffset: 0,
                overscan: 1,
                paddingStart: 0,
                paddingEnd: 0,
                scrollPaddingStart: 0,
                scrollPaddingEnd: 0,
                horizontal: !1,
                getItemKey: C3,
                rangeExtractor: N3,
                onChange: () => { },
                measureElement: M3,
                initialRect: {
                    width: 0,
                    height: 0
                },
                scrollMargin: 0,
                gap: 0,
                indexAttribute: "data-index",
                initialMeasurementsCache: [],
                lanes: 1,
                isScrollingResetDelay: 150,
                enabled: !0,
                isRtl: !1,
                useScrollendEvent: !1,
                useAnimationFrameWithResizeObserver: !1,
                ...i
            }
        }, this.notify = i => {
            var d, g;
            (g = (d = this.options).onChange) == null || g.call(d, this, i)
        }, this.maybeNotify = Eu(() => (this.calculateRange(), [this.isScrolling, this.range ? this.range.startIndex : null, this.range ? this.range.endIndex : null]), i => {
            this.notify(i)
        }, {
            key: !1,
            debug: () => this.options.debug,
            initialDeps: [this.isScrolling, this.range ? this.range.startIndex : null, this.range ? this.range.endIndex : null]
        }), this.cleanup = () => {
            this.unsubs.filter(Boolean).forEach(i => i()), this.unsubs = [], this.observer.disconnect(), this.scrollElement = null, this.targetWindow = null
        }, this._didMount = () => () => {
            this.cleanup()
        }, this._willUpdate = () => {
            var i;
            const d = this.options.enabled ? this.options.getScrollElement() : null;
            if (this.scrollElement !== d) {
                if (this.cleanup(), !d) {
                    this.maybeNotify();
                    return
                }
                this.scrollElement = d, this.scrollElement && "ownerDocument" in this.scrollElement ? this.targetWindow = this.scrollElement.ownerDocument.defaultView : this.targetWindow = ((i = this.scrollElement) == null ? void 0 : i.window) ?? null, this.elementsCache.forEach(g => {
                    this.observer.observe(g)
                }), this.unsubs.push(this.options.observeElementRect(this, g => {
                    this.scrollRect = g, this.maybeNotify()
                })), this.unsubs.push(this.options.observeElementOffset(this, (g, x) => {
                    this.scrollAdjustments = 0, this.scrollDirection = x ? this.getScrollOffset() < g ? "forward" : "backward" : null, this.scrollOffset = g, this.isScrolling = x, this.maybeNotify()
                })), this._scrollToOffset(this.getScrollOffset(), {
                    adjustments: void 0,
                    behavior: void 0
                })
            }
        }, this.getSize = () => this.options.enabled ? (this.scrollRect = this.scrollRect ?? this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0), this.getScrollOffset = () => this.options.enabled ? (this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset == "function" ? this.options.initialOffset() : this.options.initialOffset), this.scrollOffset) : (this.scrollOffset = null, 0), this.getFurthestMeasurement = (i, d) => {
            const g = new Map,
                x = new Map;
            for (let p = d - 1; p >= 0; p--) {
                const w = i[p];
                if (g.has(w.lane)) continue;
                const M = x.get(w.lane);
                if (M == null || w.end > M.end ? x.set(w.lane, w) : w.end < M.end && g.set(w.lane, !0), g.size === this.options.lanes) break
            }
            return x.size === this.options.lanes ? Array.from(x.values()).sort((p, w) => p.end === w.end ? p.index - w.index : p.end - w.end)[0] : void 0
        }, this.getMeasurementOptions = Eu(() => [this.options.count, this.options.paddingStart, this.options.scrollMargin, this.options.getItemKey, this.options.enabled, this.options.lanes], (i, d, g, x, p, w) => (this.prevLanes !== void 0 && this.prevLanes !== w && (this.lanesChangedFlag = !0), this.prevLanes = w, this.pendingMeasuredCacheIndexes = [], {
            count: i,
            paddingStart: d,
            scrollMargin: g,
            getItemKey: x,
            enabled: p,
            lanes: w
        }), {
            key: !1
        }), this.getMeasurements = Eu(() => [this.getMeasurementOptions(), this.itemSizeCache], ({
            count: i,
            paddingStart: d,
            scrollMargin: g,
            getItemKey: x,
            enabled: p,
            lanes: w
        }, M) => {
            if (!p) return this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), [];
            if (this.laneAssignments.size > i)
                for (const z of this.laneAssignments.keys()) z >= i && this.laneAssignments.delete(z);
            this.lanesChangedFlag && (this.lanesChangedFlag = !1, this.lanesSettling = !0, this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), this.pendingMeasuredCacheIndexes = []), this.measurementsCache.length === 0 && !this.lanesSettling && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach(z => {
                this.itemSizeCache.set(z.key, z.size)
            }));
            const T = this.lanesSettling ? 0 : this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
            this.pendingMeasuredCacheIndexes = [], this.lanesSettling && this.measurementsCache.length === i && (this.lanesSettling = !1);
            const R = this.measurementsCache.slice(0, T),
                A = new Array(w).fill(void 0);
            for (let z = 0; z < T; z++) {
                const O = R[z];
                O && (A[O.lane] = z)
            }
            for (let z = T; z < i; z++) {
                const O = x(z),
                    L = this.laneAssignments.get(z);
                let G, Z;
                if (L !== void 0 && this.options.lanes > 1) {
                    G = L;
                    const he = A[G],
                        Se = he !== void 0 ? R[he] : void 0;
                    Z = Se ? Se.end + this.options.gap : d + g
                } else {
                    const he = this.options.lanes === 1 ? R[z - 1] : this.getFurthestMeasurement(R, z);
                    Z = he ? he.end + this.options.gap : d + g, G = he ? he.lane : z % this.options.lanes, this.options.lanes > 1 && this.laneAssignments.set(z, G)
                }
                const ce = M.get(O),
                    re = typeof ce == "number" ? ce : this.options.estimateSize(z),
                    ve = Z + re;
                R[z] = {
                    index: z,
                    start: Z,
                    size: re,
                    end: ve,
                    key: O,
                    lane: G
                }, A[G] = z
            }
            return this.measurementsCache = R, R
        }, {
            key: !1,
            debug: () => this.options.debug
        }), this.calculateRange = Eu(() => [this.getMeasurements(), this.getSize(), this.getScrollOffset(), this.options.lanes], (i, d, g, x) => this.range = i.length > 0 && d > 0 ? _3({
            measurements: i,
            outerSize: d,
            scrollOffset: g,
            lanes: x
        }) : null, {
            key: !1,
            debug: () => this.options.debug
        }), this.getVirtualIndexes = Eu(() => {
            let i = null,
                d = null;
            const g = this.calculateRange();
            return g && (i = g.startIndex, d = g.endIndex), this.maybeNotify.updateDeps([this.isScrolling, i, d]), [this.options.rangeExtractor, this.options.overscan, this.options.count, i, d]
        }, (i, d, g, x, p) => x === null || p === null ? [] : i({
            startIndex: x,
            endIndex: p,
            overscan: d,
            count: g
        }), {
            key: !1,
            debug: () => this.options.debug
        }), this.indexFromElement = i => {
            const d = this.options.indexAttribute,
                g = i.getAttribute(d);
            return g ? parseInt(g, 10) : (console.warn(`Missing attribute name '${d}={index}' on measured element.`), -1)
        }, this._measureElement = (i, d) => {
            const g = this.indexFromElement(i),
                x = this.measurementsCache[g];
            if (!x) return;
            const p = x.key,
                w = this.elementsCache.get(p);
            w !== i && (w && this.observer.unobserve(w), this.observer.observe(i), this.elementsCache.set(p, i)), i.isConnected && this.resizeItem(g, this.options.measureElement(i, d, this))
        }, this.resizeItem = (i, d) => {
            const g = this.measurementsCache[i];
            if (!g) return;
            const x = this.itemSizeCache.get(g.key) ?? g.size,
                p = d - x;
            p !== 0 && ((this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(g, p, this) : g.start < this.getScrollOffset() + this.scrollAdjustments) && this._scrollToOffset(this.getScrollOffset(), {
                adjustments: this.scrollAdjustments += p,
                behavior: void 0
            }), this.pendingMeasuredCacheIndexes.push(g.index), this.itemSizeCache = new Map(this.itemSizeCache.set(g.key, d)), this.notify(!1))
        }, this.measureElement = i => {
            if (!i) {
                this.elementsCache.forEach((d, g) => {
                    d.isConnected || (this.observer.unobserve(d), this.elementsCache.delete(g))
                });
                return
            }
            this._measureElement(i, void 0)
        }, this.getVirtualItems = Eu(() => [this.getVirtualIndexes(), this.getMeasurements()], (i, d) => {
            const g = [];
            for (let x = 0, p = i.length; x < p; x++) {
                const w = i[x],
                    M = d[w];
                g.push(M)
            }
            return g
        }, {
            key: !1,
            debug: () => this.options.debug
        }), this.getVirtualItemForOffset = i => {
            const d = this.getMeasurements();
            if (d.length !== 0) return i0(d[W1(0, d.length - 1, g => i0(d[g]).start, i)])
        }, this.getMaxScrollOffset = () => {
            if (!this.scrollElement) return 0;
            if ("scrollHeight" in this.scrollElement) return this.options.horizontal ? this.scrollElement.scrollWidth - this.scrollElement.clientWidth : this.scrollElement.scrollHeight - this.scrollElement.clientHeight;
            {
                const i = this.scrollElement.document.documentElement;
                return this.options.horizontal ? i.scrollWidth - this.scrollElement.innerWidth : i.scrollHeight - this.scrollElement.innerHeight
            }
        }, this.getOffsetForAlignment = (i, d, g = 0) => {
            if (!this.scrollElement) return 0;
            const x = this.getSize(),
                p = this.getScrollOffset();
            d === "auto" && (d = i >= p + x ? "end" : "start"), d === "center" ? i += (g - x) / 2 : d === "end" && (i -= x);
            const w = this.getMaxScrollOffset();
            return Math.max(Math.min(w, i), 0)
        }, this.getOffsetForIndex = (i, d = "auto") => {
            i = Math.max(0, Math.min(i, this.options.count - 1));
            const g = this.measurementsCache[i];
            if (!g) return;
            const x = this.getSize(),
                p = this.getScrollOffset();
            if (d === "auto")
                if (g.end >= p + x - this.options.scrollPaddingEnd) d = "end";
                else if (g.start <= p + this.options.scrollPaddingStart) d = "start";
                else return [p, d];
            if (d === "end" && i === this.options.count - 1) return [this.getMaxScrollOffset(), d];
            const w = d === "end" ? g.end + this.options.scrollPaddingEnd : g.start - this.options.scrollPaddingStart;
            return [this.getOffsetForAlignment(w, d, g.size), d]
        }, this.isDynamicMode = () => this.elementsCache.size > 0, this.scrollToOffset = (i, {
            align: d = "start",
            behavior: g
        } = {}) => {
            g === "smooth" && this.isDynamicMode() && console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."), this._scrollToOffset(this.getOffsetForAlignment(i, d), {
                adjustments: void 0,
                behavior: g
            })
        }, this.scrollToIndex = (i, {
            align: d = "auto",
            behavior: g
        } = {}) => {
            g === "smooth" && this.isDynamicMode() && console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."), i = Math.max(0, Math.min(i, this.options.count - 1)), this.currentScrollToIndex = i;
            let x = 0;
            const p = 10,
                w = T => {
                    if (!this.targetWindow) return;
                    const R = this.getOffsetForIndex(i, T);
                    if (!R) {
                        console.warn("Failed to get offset for index:", i);
                        return
                    }
                    const [A, z] = R;
                    this._scrollToOffset(A, {
                        adjustments: void 0,
                        behavior: g
                    }), this.targetWindow.requestAnimationFrame(() => {
                        if (!this.targetWindow) return;
                        const O = () => {
                            if (this.currentScrollToIndex !== i) return;
                            const L = this.getScrollOffset(),
                                G = this.getOffsetForIndex(i, z);
                            if (!G) {
                                console.warn("Failed to get offset for index:", i);
                                return
                            }
                            S3(G[0], L) || M(z)
                        };
                        this.isDynamicMode() ? this.targetWindow.requestAnimationFrame(O) : O()
                    })
                },
                M = T => {
                    this.targetWindow && this.currentScrollToIndex === i && (x++, x < p ? this.targetWindow.requestAnimationFrame(() => w(T)) : console.warn(`Failed to scroll to index ${i} after ${p} attempts.`))
                };
            w(d)
        }, this.scrollBy = (i, {
            behavior: d
        } = {}) => {
            d === "smooth" && this.isDynamicMode() && console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."), this._scrollToOffset(this.getScrollOffset() + i, {
                adjustments: void 0,
                behavior: d
            })
        }, this.getTotalSize = () => {
            var i;
            const d = this.getMeasurements();
            let g;
            if (d.length === 0) g = this.options.paddingStart;
            else if (this.options.lanes === 1) g = ((i = d[d.length - 1]) == null ? void 0 : i.end) ?? 0;
            else {
                const x = Array(this.options.lanes).fill(null);
                let p = d.length - 1;
                for (; p >= 0 && x.some(w => w === null);) {
                    const w = d[p];
                    x[w.lane] === null && (x[w.lane] = w.end), p--
                }
                g = Math.max(...x.filter(w => w !== null))
            }
            return Math.max(g - this.options.scrollMargin + this.options.paddingEnd, 0)
        }, this._scrollToOffset = (i, {
            adjustments: d,
            behavior: g
        }) => {
            this.options.scrollToFn(i, {
                behavior: g,
                adjustments: d
            }, this)
        }, this.measure = () => {
            this.itemSizeCache = new Map, this.laneAssignments = new Map, this.notify(!1)
        }, this.setOptions(u)
    }
}
const W1 = (n, u, i, d) => {
    for (; n <= u;) {
        const g = (n + u) / 2 | 0,
            x = i(g);
        if (x < d) n = g + 1;
        else if (x > d) u = g - 1;
        else return g
    }
    return n > 0 ? n - 1 : 0
};

function _3({
    measurements: n,
    outerSize: u,
    scrollOffset: i,
    lanes: d
}) {
    const g = n.length - 1,
        x = M => n[M].start;
    if (n.length <= d) return {
        startIndex: 0,
        endIndex: g
    };
    let p = W1(0, g, x, i),
        w = p;
    if (d === 1)
        for (; w < g && n[w].end < i + u;) w++;
    else if (d > 1) {
        const M = Array(d).fill(0);
        for (; w < g && M.some(R => R < i + u);) {
            const R = n[w];
            M[R.lane] = R.end, w++
        }
        const T = Array(d).fill(i + u);
        for (; p >= 0 && T.some(R => R >= i);) {
            const R = n[p];
            T[R.lane] = R.start, p--
        }
        p = Math.max(0, p - p % d), w = Math.min(g, w + (d - 1 - w % d))
    }
    return {
        startIndex: p,
        endIndex: w
    }
}
const o0 = typeof document < "u" ? W.useLayoutEffect : W.useEffect;

function O3({
    useFlushSync: n = !0,
    ...u
}) {
    const i = W.useReducer(() => ({}), {})[1],
        d = {
            ...u,
            onChange: (x, p) => {
                var w;
                n && p ? D0.flushSync(i) : i(), (w = u.onChange) == null || w.call(u, x, p)
            }
        },
        [g] = W.useState(() => new R3(d));
    return g.setOptions(d), o0(() => g._didMount(), []), o0(() => g._willUpdate()), g
}

function z3(n) {
    return O3({
        observeElementRect: T3,
        observeElementOffset: E3,
        scrollToFn: A3,
        ...n
    })
}

function Xg({
    style: n
}) {
    return s.jsxs("svg", {
        viewBox: "0 0 212 212",
        height: "212",
        width: "212",
        preserveAspectRatio: "xMidYMid meet",
        className: n || "w-full h-full",
        fill: "none",
        children: [s.jsx("title", {
            children: "default-group"
        }), s.jsx("path", {
            className: "fill-[var(--avatar-placeholder-background)]",
            d: "M105.946 0.25C164.318 0.25 211.64 47.596 211.64 106C211.64 164.404 164.318 211.75 105.945 211.75C47.571 211.75 0.25 164.404 0.25 106C0.25 47.596 47.571 0.25 105.946 0.25Z",
            fill: "#DFE5E7"
        }), s.jsx("path", {
            className: "fill-[var(--avatar-placeholder-primary)]",
            fillRule: "evenodd",
            clipRule: "evenodd",
            d: "M102.282 77.2856C102.282 87.957 93.8569 96.5713 83.3419 96.5713C72.827 96.5713 64.339 87.957 64.339 77.2856C64.339 66.6143 72.827 58 83.3419 58C93.8569 58 102.282 66.6143 102.282 77.2856ZM150.35 80.1427C150.35 89.9446 142.612 97.857 132.954 97.857C123.296 97.857 115.5 89.9446 115.5 80.1427C115.5 70.3409 123.296 62.4285 132.954 62.4285C142.612 62.4285 150.35 70.3409 150.35 80.1427ZM83.3402 109.428C68.5812 109.428 39 116.95 39 131.928V143.714C39 147.25 41.8504 148 45.3343 148H121.346C124.83 148 127.68 147.25 127.68 143.714V131.928C127.68 116.95 98.0991 109.428 83.3402 109.428ZM126.804 110.853C127.707 110.871 128.485 110.886 129 110.886C143.759 110.886 174 116.95 174 131.929V141.571C174 145.107 171.15 148 167.666 148H134.854C135.551 146.007 135.995 143.821 135.995 141.571L135.75 131.071C135.75 121.51 130.136 117.858 124.162 113.971C122.772 113.067 121.363 112.15 120 111.143C119.981 111.123 119.962 111.098 119.941 111.07C119.893 111.007 119.835 110.931 119.747 110.886C121.343 110.747 124.485 110.808 126.804 110.853Z"
        })]
    })
}

function J1({
    card: n
}) {
    const {
        getCard: u
    } = hn(), i = u(n.id), [d, g] = W.useState(!1), x = s.jsx("span", {
        children: i.id.length > 17 ? s.jsx(Xg, {
            style: "w-8 h-8"
        }) : s.jsx(Hd, {
            style: "w-8 h-8"
        })
    }), p = s.jsx("div", {
        children: s.jsx("img", {
            className: "w-8 h-8 rounded-full pointer-events-none",
            src: i.picture,
            onError: () => g(!0)
        })
    });
    return s.jsx("div", {
        children: i?.picture != null && i?.picture?.length !== 0 ? d ? x : p : x
    })
}
const j3 = n => !n || !n.length ? s.jsx(s.Fragment, {}) : n.split(/(\*\_.*?\_\*|\*.*?\*)/).map((i, d) => i.startsWith("*_") && i.endsWith("_*") ? s.jsx("strong", {
    className: "italic",
    children: i.slice(2, -2)
}, d) : i.startsWith("*") && i.endsWith("*") ? s.jsx("strong", {
    children: i.slice(1, -1)
}, d) : s.jsx("span", {
    children: i
}, d)),
    D3 = ({
        card: n
    }) => {
        const {
            getCard: u
        } = hn(), i = u(n.id), {
            language: d
        } = Ce(), g = () => !i || !i.lastMessage || !i.lastMessage.type ? "" : i.lastMessage.type === "chat" ? i.lastMessage.text : i.lastMessage.type === "document" || i.lastMessage.type === "ptt" || i.lastMessage.type === "video" || i.lastMessage.type === "image" || i.lastMessage.type === "vcard" ? i.lastMessage.text || d[`crm_${i.lastMessage.type}`] : "";
        return s.jsx("div", {
            children: s.jsxs("div", {
                className: "flex flex-col items-start",
                children: [s.jsx("span", {
                    className: "block flex-auto overflow-hidden text-ellipsis whitespace-nowrap max-w-[150px]",
                    children: i.name
                }), s.jsxs("div", {
                    className: "flex items-center gap-1 text-gray-900 dark:text-gray-100",
                    children: [s.jsx("span", {
                        children: i?.lastMessage?.type && s.jsx(Mg, {
                            type: i?.lastMessage?.type
                        })
                    }), s.jsx("span", {
                        className: "block flex-auto text-sm text-gray-500 overflow-hidden text-ellipsis whitespace-nowrap max-w-[130px]",
                        children: j3(g())
                    })]
                })]
            })
        })
    };

function k3({
    card: n
}) {
    return s.jsxs("div", {
        className: "flex items-center gap-2",
        children: [s.jsx(J1, {
            card: n
        }), s.jsx(D3, {
            card: n
        })]
    })
}
const Ou = it()(n => ({
    chatName: {
        name: "",
        number: "",
        autoSave: !1
    },
    setAutoSaveChatName: u => n(i => (Ld("autoSaveChat", "autoSave", [u]), {
        chatName: {
            ...i.chatName,
            autoSave: u
        }
    })),
    getActiveChat: async u => {
        const {
            contatos: i,
            setContatos: d
        } = Bd.getState(), {
            chatName: g,
            setAutoSaveChatName: x
        } = Ou.getState(), p = await Ge.Utils("getContato", u), w = i.find(M => M.id === u);
        if (n(w ? {
            chatName: {
                ...g,
                name: w.name,
                number: u
            }
        } : {
            chatName: {
                ...g,
                name: p.name,
                number: u
            }
        }), g.autoSave && await rl("contatos") === !0) {
            x(!1);
            return
        }
        if (g.autoSave && !w && p.name !== p.number) {
            const M = {
                id: u,
                name: p.name
            };
            Ge.Utils("contatoSave", M);
            const T = [...i, M];
            d(T)
        }
    }
}));
(async () => {
    const n = await Kf("autoSaveChat", "autoSave");
    n && n[0] && n[0][0] && Ou.getState().setAutoSaveChatName(n[0][0])
})();

function L3({
    userId: n
}) {
    const {
        variaveisWA: u
    } = $i(), {
        userTabs: i,
        setNewUser: d,
        setRemoveUser: g,
        setCreateUserTab: x
    } = at(), {
        language: p
    } = Ce(), {
        close: w
    } = Ka(), [M, T] = W.useState(""), [R, A] = W.useState([]), z = async re => {
        re.chats.find(he => he.id === n) ? g(n, !1, re.id) : d(n, re.id)
    }, O = () => {
        Eg({
            icon: s.jsx($f, {
                size: 32,
                style: {
                    color: "var(--primaria)"
                }
            }),
            content: s.jsx(s.Fragment, {
                children: p.menuTab_CreateNameTab
            }),
            confirmText: p.create,
            submit: re => x(re),
            errorMsg: p.insiraAoMenos3Car,
            placeholder: p.insiraNomeAba
        })
    };
    p.insiraNomeAba;
    const L = s.jsxs("div", {
        className: "p-4 flex flex-col gap-2",
        children: [s.jsx("span", {
            children: p.emptyAba
        }), s.jsx(ra, {
            name: p.create,
            funcao: () => {
                w(), O()
            }
        })]
    }),
        G = s.jsx("div", {
            className: "p-4 text-center",
            children: s.jsx("span", {
                children: p.notFound
            })
        }),
        Z = s.jsx(Ud, {
            filtragem: re => {
                let ve = [];
                i.forEach(he => {
                    he.tag?.toUpperCase().includes(re.toUpperCase()) && ve.push(he)
                }), A(ve), T(re)
            },
            placeholder: p.pesquisarAbas,
            dependenciasADD: [i],
            btnClear: !0
        }),
        ce = s.jsx("div", {
            className: u.modalOptions.content3 + "overflow-auto max-w-[350px]",
            style: {
                maxHeight: "calc(100vh - 200px)"
            },
            children: R.slice().sort((re, ve) => re.tag.localeCompare(ve.tag)).map((re, ve) => s.jsx("div", {
                className: u.listagem.content1 + "hoverShadown",
                children: s.jsx("li", {
                    tabIndex: 1,
                    className: u.listagem.content2,
                    "data-animate-dropdown-item": "true",
                    style: {
                        opacity: 1
                    },
                    children: s.jsx("label", {
                        htmlFor: "user_tab&" + ve,
                        children: s.jsxs("div", {
                            className: u.listagem.content3,
                            children: [s.jsx("div", {
                                className: u.listagem.content4,
                                children: s.jsx(Ag, {
                                    id: "user_tab&" + ve,
                                    estado: !!re.chats.find(he => he.id === n),
                                    checkedUpdade: () => {
                                        z(re)
                                    }
                                })
                            }), s.jsxs("span", {
                                className: u.listagem.content5 + " flex",
                                children: [s.jsx("span", {
                                    className: "pr-1 overflow-hidden text-ellipsis whitespace-nowrap",
                                    children: re.tag
                                }), s.jsx("span", {
                                    className: u.aba + "tam-aba bg-[var(--primaria)] !text-[var(--letra)]",
                                    children: re.chats.length
                                })]
                            })]
                        })
                    })
                })
            }, ve))
        });
    return M.length > 0 && R.length === 0 ? s.jsxs("div", {
        children: [Z, G]
    }) : i.length > 0 ? s.jsxs("div", {
        children: [Z, ce]
    }) : L
}

function U3({
    userId: n
}) {
    return s.jsx(L3, {
        userId: n
    })
}

function B3({
    labels: n,
    submit: u
}) {
    const {
        variaveisWA: i
    } = $i(), d = s.jsx("div", {
        className: "p-4",
        children: s.jsx("span", {
            children: "Crie Pelo menos uma etiqueta para poder inserir contatos nelas"
        })
    }), g = s.jsx("div", {
        className: i.modalOptions.content3 + "overflow-auto",
        style: {
            maxHeight: "calc(100vh - 200px)"
        },
        children: n.slice().sort((x, p) => x.name.localeCompare(p.name)).map((x, p) => s.jsx("div", {
            className: i.listagem.content1 + "hoverShadown",
            children: s.jsx("li", {
                tabIndex: 1,
                className: i.listagem.content2,
                "data-animate-dropdown-item": "true",
                style: {
                    opacity: 1
                },
                children: s.jsx("label", {
                    htmlFor: "user_labels&" + p,
                    children: s.jsxs("div", {
                        className: i.listagem.content3,
                        children: [s.jsx("div", {
                            className: i.listagem.content4,
                            children: s.jsx(Ag, {
                                id: "user_labels&" + p,
                                estado: x.active,
                                checkedUpdade: () => {
                                    u(!x.active, x.id, p)
                                }
                            })
                        }), s.jsx("span", {
                            className: i.listagem.content5,
                            children: s.jsxs("div", {
                                className: "flex gap-4",
                                children: [s.jsxs("div", {
                                    className: "pr-1",
                                    children: [s.jsx("span", {
                                        children: x.name
                                    }), s.jsx("span", {
                                        className: i.aba + "tam-aba ml-1",
                                        style: {
                                            backgroundColor: "var(--primaria)"
                                        },
                                        children: x.count
                                    })]
                                }), s.jsx("span", {
                                    children: s.jsx(eh, {
                                        className: "w-6 h-6",
                                        style: {
                                            color: x.hexColor
                                        }
                                    })
                                })]
                            })
                        })]
                    })
                })
            })
        }, p))
    });
    return n.length > 0 ? g : d
}

function K1({
    userId: n,
    setUserLabels: u,
    userLabels: i
}) {
    const {
        isBusiness: d
    } = We(), [g, x] = W.useState([]), [p, w] = W.useState(i);
    W.useEffect(() => {
        d && (async () => {
            try {
                const R = await Ge.Labels("getAllLabels"),
                    A = await Ge.Chat("get", n),
                    z = A.labels.map(L => R.find(G => G.hexColor && G.id === L)).filter(Boolean).map(({
                        id: L,
                        name: G,
                        hexColor: Z
                    }) => ({
                        id: L,
                        name: G,
                        color: Z
                    }));
                let O = [];
                R.forEach(L => {
                    const G = A.labels.find(Z => Z === L.id);
                    O.push({
                        ...L,
                        active: !!G
                    })
                }), u && u(z), x(O)
            } catch (R) {
                console.error("Erro ao buscar labels:", R)
            }
        })()
    }, [n]);
    const M = (T, R, A) => {
        x(L => {
            const G = [...L],
                Z = G.findIndex(ce => ce.id === R);
            return Z !== -1 && (G[Z] = {
                ...G[Z],
                active: T
            }), G
        });
        const z = p.map(L => ({
            ...L
        }));
        if (T) {
            const L = g.find(G => G.id === R);
            z.unshift({
                id: L.id,
                name: L.name,
                color: L.hexColor
            }), w(z), u && u(z)
        } else {
            const L = z.filter(G => G.id !== R);
            w(L), u && u(L)
        }
        chrome.runtime.sendMessage({
            action: "update-card",
            userId: n
        }), window.postMessage({
            action: "update-card",
            userId: n
        });
        const O = {
            labelId: R,
            type: T ? "add" : "remove"
        };
        Ge.Labels("addOrRemoveLabels", {
            id: n,
            label: O
        })
    };
    return s.jsx(B3, {
        labels: g,
        submit: M
    })
}

function H3({
    card: n
}) {
    const {
        variaveisWA: u
    } = $i(), {
        userTabs: i
    } = at(), {
        chatName: d
    } = Ou(), {
        language: g
    } = Ce(), {
        menuLateral: x
    } = Qr(), {
        isBusiness: p
    } = We(), {
        open: w
    } = Ka(), {
        close: M
    } = zu(), [T, R] = W.useState(0), [A, z] = W.useState(null), O = W.useRef(null), L = W.useRef(null);
    W.useEffect(() => {
        p && (async () => {
            try {
                const re = await Ge.Labels("getAllLabels"),
                    he = (await Ge.Utils("getContato", n.id)).labels.map(Se => re.find(xe => xe.hexColor && xe.id === Se)).filter(Boolean).map(({
                        id: Se,
                        name: xe,
                        hexColor: ft
                    }) => ({
                        id: Se,
                        name: xe,
                        color: ft
                    }));
                z(he)
            } catch (re) {
                console.error("Erro ao buscar labels:", re)
            }
        })()
    }, [n.id]), W.useEffect(() => {
        (() => {
            const re = i.reduce((ve, he) => {
                const Se = he.chats.some(xe => xe.id === n.id);
                return ve + (Se ? 1 : 0)
            }, 0);
            R(re)
        })()
    }, [n, i]);
    const G = (ce, re) => {
        w(ce, {
            placement: "bottom"
        }, re.current, 15)
    };
    return s.jsxs("div", {
        className: "h-[60px] bg-[var(--panel-header-background)] px-4 py-[10px] flex justify-between shadow-lg " + (x.children.length !== 0 ? "rounded-ss-lg" : "rounded-t-lg"),
        children: [s.jsxs("div", {
            className: "flex items-center justify-center gap-4",
            children: [s.jsx(J1, {
                card: n
            }), s.jsx("div", {
                className: "h-[21px] relative",
                children: s.jsx("span", {
                    className: "block flex-auto overflow-hidden text-ellipsis whitespace-nowrap max-w-[170px] absolute",
                    id: "chatName",
                    children: d.name
                })
            })]
        }), s.jsxs("div", {
            className: "flex items-center justify-center gap-2",
            children: [s.jsx("div", {
                className: u.confgIcone + "pulse",
                ref: O,
                children: s.jsxs("div", {
                    onClick: () => G(s.jsx(U3, {
                        userId: n.id
                    }), O),
                    "aria-disabled": "false",
                    role: "button",
                    tabIndex: 0,
                    className: "_3ndVb fbgy3m38 ft2m32mm oq31bsqd nu34rnf1",
                    children: [T > 0 && s.jsx("div", {
                        className: "absolute",
                        children: s.jsx("span", {
                            className: u.aba + "relative -top-3 -left-3 tam-aba bg-[var(--primaria)]",
                            children: T
                        })
                    }), s.jsx("span", {
                        children: s.jsx($f, {
                            className: "w-6 h-6 text-[var(--icon)]"
                        })
                    })]
                })
            }), p ? s.jsx("div", {
                className: u.confgIcone + "pulse ",
                ref: L,
                style: {
                    borderRadius: "8px"
                },
                children: s.jsx("div", {
                    onClick: () => G(s.jsx(K1, {
                        userId: n.id,
                        setUserLabels: z,
                        userLabels: A
                    }), L),
                    "aria-disabled": "false",
                    role: "button",
                    tabIndex: 0,
                    className: "_3ndVb fbgy3m38 ft2m32mm oq31bsqd nu34rnf1",
                    children: A && A.length > 0 ? s.jsx("div", {
                        className: "flex",
                        children: A.map((ce, re) => s.jsx("span", {
                            style: re !== 0 ? {
                                marginLeft: "-1rem"
                            } : null,
                            children: s.jsx(eh, {
                                className: "w-6 h-6",
                                style: {
                                    color: ce.color
                                }
                            })
                        }, re))
                    }) : s.jsx(j0, {
                        className: "w-6 h-6 text-[var(--icon)]"
                    })
                })
            }) : void 0, s.jsx("div", {
                children: s.jsx(Ux, {
                    name: g.close,
                    funcao: M
                })
            })]
        })]
    })
}

function F3({
    children: n,
    position: u
}) {
    return s.jsx("div", {
        className: "chat " + (u ? "chat-end" : "chat-start"),
        children: s.jsx("div", {
            className: "chat-bubble text-[var(--primary-strong)] shadow-sm max-w-lg " + (u ? "bg-[var(--outgoing-background)]" : "bg-[var(--incoming-background)]"),
            children: s.jsx("span", {
                dangerouslySetInnerHTML: {
                    __html: n.replace(/\*\_(.*?)\_\*/g, '<strong class="italic">$1</strong>').replace(/\*(.*?)\*/g, "<strong>$1</strong>").replace(/\n/g, "<br>")
                },
                style: {
                    overflowWrap: "break-word"
                }
            })
        })
    })
}

function G3({
    children: n,
    id: u,
    position: i,
    captureBase64: d
}) {
    const [g, x] = W.useState("");
    return W.useEffect(() => {
        (async () => {
            const T = (await Ge.Chat("downloadMedia", u)).split(",")[1],
                R = atob(T),
                A = new Uint8Array(R.length);
            for (let L = 0; L < R.length; L++) A[L] = R.charCodeAt(L);
            const z = new Blob([A], {
                type: "image/jpeg"
            }),
                O = URL.createObjectURL(z);
            x(O), d(O)
        })()
    }, []), s.jsx("div", {
        className: "chat " + (i ? "chat-end" : "chat-start"),
        children: s.jsxs("div", {
            className: "chat-bubble text-[var(--primary-strong)] shadow-sm max-w-lg " + (i ? "bg-[var(--outgoing-background)]" : "bg-[var(--incoming-background)]"),
            children: [s.jsx("img", {
                src: g,
                className: "h-[330px] rounded-lg m-auto shadow-lg"
            }), n && s.jsx("span", {
                dangerouslySetInnerHTML: {
                    __html: n.replace(/\*\_(.*?)\_\*/g, '<strong class="italic">$1</strong>').replace(/\*(.*?)\*/g, "<strong>$1</strong>").replace(/\n/g, "<br>")
                },
                style: {
                    overflowWrap: "break-word"
                }
            })]
        })
    })
}

function Y3({
    children: n,
    id: u,
    position: i,
    captureBase64: d
}) {
    const [g, x] = W.useState("");
    return W.useEffect(() => {
        (async () => {
            for (var T = (await Ge.Chat("downloadMedia", u)).split(",")[1], R = atob(T), A = new Uint8Array(R.length), z = 0; z < R.length; z++) A[z] = R.charCodeAt(z);
            var O = new Blob([A], {
                type: "video/mp4"
            });
            const L = URL.createObjectURL(O);
            x(L), d(L)
        })()
    }, []), s.jsx("div", {
        className: "chat " + (i ? "chat-end" : "chat-start"),
        children: s.jsxs("div", {
            className: "chat-bubble text-[var(--primary-strong)] shadow-sm max-w-lg " + (i ? "bg-[var(--outgoing-background)]" : "bg-[var(--incoming-background)]"),
            children: [s.jsx("video", {
                src: g,
                className: "rounded-lg m-auto shadow-lg",
                controls: !0
            }), n && s.jsx("span", {
                dangerouslySetInnerHTML: {
                    __html: n.replace(/\n/g, "<br>")
                }
            })]
        })
    })
}

function X3({
    id: n,
    position: u,
    from: i,
    captureBase64: d
}) {
    const g = W.useRef(null),
        [x, p] = W.useState(!1),
        [w, M] = W.useState(""),
        [T, R] = W.useState();
    W.useEffect(() => {
        (async () => {
            R(await Ge.Contact("getProfilePictureUrl", i.split("@")[0]));
            const G = (await Ge.Chat("downloadMedia", n)).split(",")[1],
                Z = atob(G),
                ce = new Uint8Array(Z.length);
            for (var re = 0; re < Z.length; re++) ce[re] = Z.charCodeAt(re);
            const ve = new Blob([ce], {
                type: "audio/mp3"
            }),
                he = URL.createObjectURL(ve);
            M(he), d(he)
        })()
    }, []);
    const A = () => {
        x ? g.current.pause() : g.current.play(), p(!x)
    };
    return s.jsx("div", {
        className: "chat " + (u ? "chat-end" : "chat-start"),
        children: s.jsx("div", {
            className: "chat-bubble text-[var(--primary-strong)] shadow-sm max-w-lg " + (u ? "bg-[var(--outgoing-background)]" : "bg-[var(--incoming-background)]"),
            children: s.jsxs("div", {
                className: "flex gap-1 items-center",
                children: [s.jsx("div", {
                    className: "avatar",
                    children: T && T !== "undefined" ? s.jsx("div", {
                        className: "w-10 rounded-full",
                        children: s.jsx("img", {
                            src: T
                        })
                    }) : s.jsx("span", {
                        children: i.split("@")[0].length > 17 ? s.jsx(Xg, {
                            style: "w-10 h-10"
                        }) : s.jsx(Hd, {
                            style: "w-10 h-10"
                        })
                    })
                }), s.jsxs("div", {
                    className: "flex gap-2",
                    children: [s.jsx("span", {
                        className: "cursor-pointer pulse",
                        onClick: A,
                        children: x ? s.jsx(Bx, {
                            className: "h-5 w-5 text-[var(--audio-control-incoming)]"
                        }) : s.jsx(Hx, {
                            className: "h-5 w-5 text-[var(--audio-control-incoming)]"
                        })
                    }), s.jsx("span", {
                        children: s.jsx("div", {
                            className: "h8id8 relative flex-1 w-[150px]",
                            children: s.jsx("div", {
                                className: "ajgl1lbb",
                                children: s.jsxs("div", {
                                    className: "_3SpYC YZRf3 relatuve top-[-1px] flex items-center w-full h-[21px] overflow-hidden",
                                    children: [s.jsx("div", {
                                        className: "_1EsIB bg-[var(--audio-track-outgoing)] absolute w-full h-[3px]"
                                    }), s.jsx("span", {
                                        className: "_2HJjp bg-[var(--audio-progress-played-outgoing)] absolute left-0 w-0 h-[3px] ",
                                        style: {
                                            width: " 0%"
                                        }
                                    }), s.jsx("div", {
                                        className: "_3ZhaQ flex w-full",
                                        children: s.jsx("div", {
                                            className: "_2MvVt relative left-[-6.5px] w-full",
                                            style: {
                                                transform: "translateX(0%)"
                                            },
                                            children: s.jsx("div", {
                                                className: "_2TVHO bg-[var(--audio-progress-played-outgoing)] h-[13px] w-[13px] rounded-full ml-2"
                                            })
                                        })
                                    })]
                                })
                            })
                        })
                    })]
                }), s.jsx("audio", {
                    ref: g,
                    src: w,
                    className: "rounded-lg m-auto shadow-lg bg-[var(--bg-chat)] hidden ",
                    controls: !0
                })]
            })
        })
    })
}

function V3({
    children: n,
    id: u,
    captureBase64: i
}) {
    const [d, g] = W.useState(""), x = n?.filename.lastIndexOf("."), p = x !== -1 ? n.filename.slice(0, x) : n.filename, M = (x !== -1 ? n.filename.slice(x + 1) : "").toLowerCase();
    return s.jsx("div", {
        className: "chat " + (n.id.fromMe ? "chat-end" : "chat-start"),
        children: s.jsx("div", {
            className: "chat-bubble text-[var(--primary-strong)] shadow-sm max-w-lg " + (n.id.fromMe ? "bg-[var(--outgoing-background)]" : "bg-[var(--incoming-background)]"),
            children: s.jsxs("div", {
                className: "flex items-center",
                children: [s.jsx("span", {
                    "data-icon": "preview-generic",
                    children: s.jsxs("svg", {
                        viewBox: "0 0 88 110",
                        height: "110",
                        width: "88",
                        preserveAspectRatio: "xMidYMid meet",
                        children: [s.jsx("g", {
                            transform: "translate(4 3)",
                            children: s.jsx("path", {
                                strokeOpacity: "0.08",
                                stroke: "#000",
                                d: "M3-.5h56.929a5.5 5.5 0 0 1 3.889 1.61l15.071 15.072a5.5 5.5 0 0 1 1.611 3.89V101a3.5 3.5 0 0 1-3.5 3.5H3A3.5 3.5 0 0 1-.5 101V3A3.5 3.5 0 0 1 3-.5z",
                                fill: "#FFF",
                                fillRule: "evenodd"
                            })
                        }), s.jsx("path", {
                            d: "M65.5 3.5v15a3 3 0 0 0 3 3h15",
                            strokeOpacity: "0.12",
                            stroke: "#000",
                            fill: "#FFF"
                        })]
                    })
                }), s.jsxs("div", {
                    className: "flex flex-col",
                    children: [s.jsx("span", {
                        className: "font-bold text-xl w-[350px]",
                        style: {
                            overflowWrap: "break-word"
                        },
                        children: p
                    }), s.jsxs("span", {
                        className: "text-sm",
                        children: ["Tipo: ", M]
                    })]
                })]
            })
        })
    })
}

function I3({
    children: n
}) {
    const [u, i] = W.useState("");
    return W.useEffect(() => {
        (async () => i(await Ge.Contact("getProfilePictureUrl", n.body.match(/waid=(\d+)/)[1])))()
    }, []), s.jsx("div", {
        className: "chat " + (n.id.fromMe ? "chat-end" : "chat-start"),
        children: s.jsx("div", {
            className: "chat-bubble text-[var(--primary-strong)] shadow-sm max-w-lg " + (n.id.fromMe ? "bg-[var(--outgoing-background)]" : "bg-[var(--incoming-background)]"),
            children: s.jsxs("div", {
                className: "flex items-center gap-2",
                children: [u && u !== "undefined" ? s.jsx("div", {
                    className: "avatar",
                    children: s.jsx("div", {
                        className: "w-12 rounded-full  ring-offset-2",
                        children: s.jsx("img", {
                            src: u
                        })
                    })
                }) : s.jsx("div", {
                    className: "avatar placeholder",
                    children: s.jsx("div", {
                        className: "bg-base-100 rounded-full w-12",
                        children: s.jsx(th, {
                            className: "w-12 h-12 text-[var(--avatarBackground)]"
                        })
                    })
                }), s.jsxs("div", {
                    className: "flex flex-col",
                    children: [s.jsx("span", {
                        className: "font-bold text-xl",
                        children: n.vcardFormattedName
                    }), s.jsx("span", {
                        className: "text-sm",
                        children: n?.body?.match(/waid=(\d+)/)[1]
                    })]
                })]
            })
        })
    })
}

function Z3({
    viewMidia: n
}) {
    const {
        language: u
    } = Ce(), d = (p => {
        var w = new Blob([p], {
            type: p.type
        }),
            M = URL.createObjectURL(w);
        return M
    })(n.content);
    let g;
    switch (n.type) {
        case "image/*":
            g = s.jsx("img", {
                src: d,
                className: "m-auto rounded",
                style: {
                    height: "calc(100vh - 260px)"
                }
            });
            break;
        case "video/*":
            g = s.jsx("video", {
                src: d,
                className: "m-auto rounded",
                style: {
                    height: "calc(100vh - 260px)"
                },
                controls: !0
            });
            break;
        case "audio/*":
            g = s.jsx("div", {
                style: {
                    height: "calc(100vh - 260px)"
                },
                children: s.jsx("video", {
                    src: d,
                    controls: !0
                })
            });
            break;
        default:
        case "*":
            g = s.jsxs("div", {
                style: {
                    height: "calc(100vh - 260px)"
                },
                className: "flex flex-col justify-center items-center",
                children: [s.jsx("span", {
                    "data-icon": "preview-generic",
                    children: s.jsxs("svg", {
                        viewBox: "0 0 88 110",
                        height: "110",
                        width: "88",
                        preserveAspectRatio: "xMidYMid meet",
                        children: [s.jsx("g", {
                            transform: "translate(4 3)",
                            children: s.jsx("path", {
                                "stroke-opacity": "0.08",
                                stroke: "#000",
                                d: "M3-.5h56.929a5.5 5.5 0 0 1 3.889 1.61l15.071 15.072a5.5 5.5 0 0 1 1.611 3.89V101a3.5 3.5 0 0 1-3.5 3.5H3A3.5 3.5 0 0 1-.5 101V3A3.5 3.5 0 0 1 3-.5z",
                                fill: "#FFF",
                                "fill-rule": "evenodd"
                            })
                        }), s.jsx("path", {
                            d: "M65.5 3.5v15a3 3 0 0 0 3 3h15",
                            "stroke-opacity": "0.12",
                            stroke: "#000",
                            fill: "#FFF"
                        })]
                    })
                }), s.jsx("span", {
                    className: "font-medium text-2xl",
                    children: u.previewUnavailable
                }), s.jsxs("div", {
                    className: "f8jlpxt4 ",
                    children: [(n.content.size / (1024 * 1024)).toFixed(2), " MB - ", n.content.name.split(".")[0]]
                })]
            });
            break
    }
    return s.jsx("div", {
        className: "relative",
        children: s.jsx("div", {
            className: "h-full mt-1 p-1 overflow-auto ",
            style: {
                height: "calc(100vh - 213px)"
            },
            children: s.jsx("div", {
                className: "m-auto",
                children: g
            })
        })
    })
}
const u0 = ({
    userID: n,
    onBackBtnClickHnd: u,
    create: i,
    product: d
}) => {
    const {
        editProduct: g,
        addProduct: x
    } = _s(), {
        language: p
    } = Ce(), [w, M] = W.useState({
        id: "",
        nome: "",
        date: new Date().toISOString().split("T")[0],
        transportadora: "",
        codigo: "",
        orderID: ""
    }), [T, R] = W.useState(!1);
    W.useEffect(() => {
        d && M(d)
    }, [d]);
    const A = (L, G) => {
        M({
            ...w,
            [L]: G
        })
    },
        z = L => {
            let G = "";
            switch (w.transportadora) {
                case "Correios":
                    G = `https://www.linkcorreios.com.br/?id=${w.codigo}`;
                    break;
                case "Jadlog":
                    G = `https://t.17track.net/pt#nums=${w.codigo}`;
                    break;
                case "Shopee":
                case "Aliexpress":
                case "Gear Best":
                case "China Post":
                    G = `https://www.muambator.com.br/pacotes/${w.codigo}/detalhes/`;
                    break;
                default:
                    G = `https://parcelsapp.com/pt/tracking/${w.codigo}`;
                    break
            }
            return G
        },
        O = async L => {
            if (L.preventDefault(), await rl("encomendas") === !0) return;
            if (T) {
                let Z = `*${p.modal_table_info}:*
*${p.modal_product}:* ${w.nome}
*${p.modal_table_code}:* ${w.codigo}
*${p.modal_table_rastreio}:* ${z(w.id)}`;
                Ge.Chat("sendTxt", {
                    id: n,
                    msg: Z
                })
            }
            const G = {
                id: d?.id || Ir(),
                nome: w.nome,
                date: w.date,
                transportadora: w.transportadora,
                codigo: w.codigo,
                orderID: w.orderID
            };
            G.nome.length > 0 && G.date.length > 0 && G.transportadora.length > 0 && G.codigo.length > 0 ? (i ? x(n, G) : g(n, d?.id || "", G), u(), pe({
                type: "Success",
                message: `${i ? p.encomendas_Notif_success : p.encomendas_Notif_success_edit}`,
                position: "top-right"
            })) : pe({
                type: "Error",
                message: p.agendamento_Notif_error,
                position: "top-right"
            })
        };
    return s.jsxs("form", {
        className: "w-[600px] grid gap-4 overflow-auto pr-1",
        style: {
            maxHeight: "calc(100vh - 70px)"
        },
        onSubmit: O,
        children: [s.jsx(sl, {
            children: i ? p.modal_orders_title : p.modal_orders_title_edit
        }), s.jsxs("div", {
            className: "flex justify-between gap-6",
            children: [s.jsxs("div", {
                className: "form-control w-full",
                children: [s.jsx("label", {
                    className: "label",
                    children: s.jsx("span", {
                        className: "label-text",
                        children: p.modal_table_name
                    })
                }), s.jsx("input", {
                    type: "text",
                    placeholder: p.modal_table_insert_name,
                    className: "input input-bordered w-full input-sm",
                    value: w.nome,
                    onChange: L => A("nome", L.target.value)
                })]
            }), s.jsxs("div", {
                className: "form-control w-full",
                children: [s.jsx("label", {
                    className: "label",
                    children: s.jsx("span", {
                        className: "label-text",
                        children: `ID (${p.opcional})`
                    })
                }), s.jsx("input", {
                    type: "text",
                    placeholder: p.modal_table_insert_id,
                    className: "input input-bordered w-full input-sm",
                    value: w.orderID,
                    onChange: L => A("orderID", L.target.value)
                })]
            })]
        }), s.jsxs("div", {
            className: "flex justify-between gap-6",
            children: [s.jsxs("div", {
                className: "form-control w-full max-w-xs",
                children: [s.jsx("label", {
                    className: "label",
                    children: s.jsx("span", {
                        className: "label-text",
                        children: p.modal_table_data
                    })
                }), s.jsx("input", {
                    type: "Date",
                    className: "input input-bordered w-full max-w-xs input-sm",
                    value: w.date,
                    onChange: L => A("date", L.target.value)
                })]
            }), s.jsxs("div", {
                className: "form-control w-full max-w-xs",
                children: [s.jsx("label", {
                    className: "label",
                    children: s.jsx("span", {
                        className: "label-text",
                        children: p.modal_table_code
                    })
                }), s.jsx("input", {
                    type: "text",
                    className: "input input-bordered w-full max-w-xs input-sm",
                    placeholder: p.modal_table_insert_code,
                    value: w.codigo,
                    onChange: L => A("codigo", L.target.value)
                })]
            })]
        }), s.jsxs("div", {
            className: "form-control w-full",
            children: [s.jsx("label", {
                className: "label",
                children: s.jsx("span", {
                    className: "label-text",
                    children: p.modal_table_transport
                })
            }), s.jsxs("select", {
                className: "!py-0 select select-bordered !select-sm w-full",
                value: w.transportadora,
                onChange: L => A("transportadora", L.target.value),
                children: [s.jsx("option", {
                    value: "",
                    children: p.noneSelected
                }), s.jsx("option", {
                    value: "Correios",
                    children: "Correios"
                }), s.jsx("option", {
                    value: "Jadlog",
                    children: "Jadlog"
                }), s.jsx("option", {
                    value: "Shopee",
                    children: "Shopee"
                }), s.jsx("option", {
                    value: "Aliexpress",
                    children: "Aliexpress"
                }), s.jsx("option", {
                    value: "Gear Best",
                    children: "Gear Best"
                }), s.jsx("option", {
                    value: "China Post",
                    children: "China Post"
                }), s.jsx("option", {
                    value: p.modal_table_outras,
                    children: p.modal_table_outras
                })]
            })]
        }), s.jsxs("div", {
            className: "flex gap-3 w-full items-center",
            children: [s.jsx("input", {
                type: "checkbox",
                name: "Send Mensage",
                checked: T,
                onChange: () => R(!T)
            }), s.jsx(il, {
                children: p.modal_encomendas_checkBoxText
            })]
        }), s.jsxs("div", {
            className: "flex justify-between gap-2 pt-4 w-full",
            children: [s.jsx(ra, {
                funcao: u,
                name: p.cancel
            }), s.jsx(ra, {
                funcao: O,
                name: i ? p.modal_add : p.edit
            })]
        })]
    })
};

function pg({
    userID: n
}) {
    const {
        getProduct: u,
        openLink: i,
        removeProduct: d
    } = _s(), {
        language: g
    } = Ce(), {
        open: x
    } = Wt(), p = z => {
        x(s.jsx(u0, {
            userID: n,
            create: !1,
            product: z,
            onBackBtnClickHnd: () => x(s.jsx(pg, {
                userID: n
            }))
        }))
    }, w = z => {
        d(n, z), pe({
            type: "Success",
            message: g.encomendas_Notif_success_remove,
            position: "top-right"
        })
    }, M = async z => {
        const O = T.find(G => G.id === z);
        let L = "";
        switch (O.transportadora) {
            case "Correios":
                L = `https://www.linkcorreios.com.br/?id=${O.codigo}`;
                break;
            case "Jadlog":
                L = `https://t.17track.net/pt#nums=${O.codigo}`;
                break;
            case "Shopee":
            case "Aliexpress":
            case "Gear Best":
            case "China Post":
                L = `https://www.muambator.com.br/pacotes/${O.codigo}/detalhes/`;
                break;
            default:
                L = `https://parcelsapp.com/pt/tracking/${O.codigo}`;
                break
        }
        try {
            await navigator.clipboard.writeText(L), pe({
                type: "Success",
                message: g.encomendas_Notif_copyLink_sucess,
                position: "top-right"
            })
        } catch (G) {
            console.error(`Error copying message: ${G}`)
        }
    }, T = u(n), R = () => T.map(z => s.jsxs("tr", {
        className: "hover:bg-base-200 cursor-pointer",
        children: [s.jsx("td", {
            className: "rounded-l-lg",
            children: s.jsx("div", {
                className: "flex justify-center",
                children: s.jsx("span", {
                    className: "block max-w-[130px]",
                    children: `${z.nome}`
                })
            })
        }), s.jsx("td", {
            children: ll.converterData(z.date)
        }), s.jsx("td", {
            children: `${z.transportadora}`
        }), s.jsx("td", {
            children: `${z.codigo}`
        }), s.jsx("td", {
            children: `${z.orderID}`
        }), s.jsx("td", {
            className: "h-full",
            children: s.jsx("button", {
                className: "pulse bg-[var(--button-round-background)] uppercase text-xs hover:bg-[var(--button-secondary-hover)] text-white font-bold py-1 px-3 rounded",
                onClick: () => i(z),
                children: g.modal_table_rastrear
            })
        }), s.jsx("td", {
            className: "rounded-r-lg",
            children: s.jsxs("div", {
                className: "flex justify-center gap-2",
                children: [s.jsx("span", {
                    className: "pulse",
                    onClick: () => p(z),
                    children: s.jsx(Yo, {
                        className: "h-5 w-5"
                    })
                }), s.jsx("span", {
                    className: "pulse",
                    onClick: () => w(z.id),
                    children: s.jsx(js, {
                        className: "h-5 w-5"
                    })
                }), s.jsx("span", {
                    className: "pulse",
                    onClick: () => M(z.id),
                    children: s.jsx(Fx, {
                        className: "h-5 w-5"
                    })
                })]
            })
        })]
    }, z.id));
    return s.jsxs("div", {
        className: "w-auto min-w-[600px] grid gap-4",
        children: [s.jsxs("div", {
            className: "flex items-center gap-2",
            children: [s.jsx(sl, {
                children: g.modal_orders_title
            }), s.jsx("div", {
                className: "cursor-pointer lg:tooltip lg:tooltip-bottom",
                "data-tip": g.cadastreEncomentasParaAcompanhar,
                children: s.jsx("span", {
                    className: "pulse",
                    children: s.jsx(Mu, {
                        className: "h-5 w-5"
                    })
                })
            })]
        }), s.jsx("div", {
            className: "overflow-auto",
            style: {
                maxHeight: "calc(100vh - 300px)"
            },
            children: T.length > 0 ? s.jsxs("table", {
                className: "table text-center",
                children: [s.jsx("thead", {
                    children: s.jsxs("tr", {
                        children: [s.jsx("th", {
                            children: g.modal_table_name
                        }), s.jsx("th", {
                            children: g.modal_table_data
                        }), s.jsx("th", {
                            children: g.modal_table_transport
                        }), s.jsx("th", {
                            children: g.modal_table_code
                        }), s.jsx("th", {
                            children: "ID"
                        }), s.jsx("th", {
                            children: g.modal_table_link
                        }), s.jsx("th", {
                            children: g.modal_table_acoes
                        })]
                    })
                }), s.jsx("tbody", {
                    children: R()
                })]
            }) : s.jsx(Rg, {
                title: g.no_orders_added_title,
                description: g.no_orders_added_desc,
                icon: s.jsx(k0, {
                    className: "w-7 h-7 text-[var(--primaria)]"
                })
            })
        }), s.jsx("div", {
            className: "flex justify-center py-3",
            children: s.jsx(ra, {
                name: g.modal_add,
                funcao: () => x(s.jsx(u0, {
                    userID: n,
                    create: !0,
                    onBackBtnClickHnd: () => x(s.jsx(pg, {
                        userID: n
                    }))
                }))
            })
        })]
    })
}

function Q3({
    onSelect: n,
    btnCancel: u = !1
}) {
    const {
        quickReplies: i
    } = Pc(), {
        variaveisWA: d
    } = $i(), {
        close: g
    } = Ka(), {
        language: x
    } = Ce(), [p, w] = W.useState([]);
    return s.jsx("div", {
        children: s.jsx("ul", {
            className: "overflow-hidden flex " + d.modalOptions.content2,
            children: s.jsxs("div", {
                className: d.modalOptions.content3,
                children: [s.jsx(Ud, {
                    filtragem: T => {
                        let R = [];
                        i.forEach(A => {
                            A.titulo?.toUpperCase().includes(T.toUpperCase()) && R.push(A)
                        }), w(R)
                    },
                    placeholder: x.searchQuickReply,
                    dependenciasADD: [i],
                    btnClear: !0
                }), s.jsxs("div", {
                    className: "max-w-[300px] overflow-x-hidden overflow-y-auto " + d.listagem.content1,
                    style: {
                        maxHeight: "60vh"
                    },
                    children: [u && s.jsx(Nn, {
                        content: x.cancelSelection,
                        icon: s.jsx(nh, {
                            className: "w-5 h-5 text-red-500"
                        }),
                        setFunction: () => {
                            n(null), g()
                        },
                        stroke: "1"
                    }), p.map((T, R) => s.jsx(Nn, {
                        content: T.titulo,
                        icon: s.jsx(Mg, {
                            type: T.type
                        }),
                        setFunction: () => {
                            n(T), g()
                        },
                        stroke: "1"
                    }, R))]
                })]
            })
        })
    })
}
const P3 = W.lazy(() => Zr(() => import("./assets/js/comp.C8uPaq3b.js"), __vite__mapDeps([13, 2, 3, 4, 1, 5, 14, 6, 7, 8])));

function W3({
    type: n,
    style: u = "w-4 h-4 text-[var(--icon)]"
}) {
    return s.jsx(W.Suspense, {
        fallback: s.jsx(s.Fragment, {}),
        children: s.jsx(P3, {
            type: n,
            style: u
        })
    })
}
const J3 = ({
    updateForm: n,
    resID: u
}) => {
    const {
        quickReplies: i
    } = Pc(), {
        open: d
    } = Ka(), {
        language: g
    } = Ce(), x = p => {
        const w = p.currentTarget;
        d(s.jsx(Q3, {
            onSelect: M => {
                n("respostaRapida", M.id)
            }
        }), {
            placement: "top"
        }, w, -10, {
            mounted: () => w.setAttribute("style", "outline-style: solid; outline-width: 2px; outline-offset: 2px; outline-color: hsl(var(--bc) / 0.2);"),
            desmouted: () => w.removeAttribute("style")
        })
    };
    return s.jsxs("div", {
        className: "flex flex-col gap-2 shadow-md border border-solid border-[var(--intro-background)] p-2 rounded-lg",
        children: [s.jsx("div", {
            className: "flex justify-between items-center",
            children: s.jsxs("div", {
                className: "flex gap-2 items-center",
                children: [s.jsx("span", {
                    children: s.jsx(_g, {
                        className: "w-4 h-4 text-[var(--icon)]"
                    })
                }), s.jsx("span", {
                    children: s.jsx("h2", {
                        className: "label-text",
                        children: g.agendamento_select_respostaRapida
                    })
                })]
            })
        }), s.jsx("div", {
            className: "form-control w-full",
            children: s.jsx("div", {
                className: "select select-bordered select-sm cursor-pointer border border-solid",
                onClick: p => x(p),
                children: i.map(p => p.id === u ? s.jsxs("div", {
                    className: "pulse flex gap-2 py-1 items-center",
                    children: [s.jsx("span", {
                        children: s.jsx(W3, {
                            type: p.type
                        })
                    }), s.jsx("span", {
                        className: "text-base overflow-hidden text-ellipsis whitespace-nowrap",
                        style: {
                            width: "calc(300px - 100px)"
                        },
                        children: p.titulo
                    })]
                }, p.id) : null)
            })
        })]
    })
};
W.lazy(function () {
    return Zr(() => import("./assets/js/index.CZEeCiVY.js"), __vite__mapDeps([15, 1, 2, 3, 4, 5, 6, 7, 8]))
});
var d0 = {
    useModal: null,
    useModalOptions: null
},
    Ho = function () {
        return Ho = Object.assign || function (n) {
            for (var u, i = 1, d = arguments.length; i < d; i++) {
                u = arguments[i];
                for (var g in u) Object.prototype.hasOwnProperty.call(u, g) && (n[g] = u[g])
            }
            return n
        }, Ho.apply(this, arguments)
    },
    K3 = function () {
        return it(function (n, u) {
            return {
                renderView: "list",
                setRenderView: function (i) {
                    return n({
                        renderView: i
                    })
                },
                userID: "",
                viwerModel: "modal",
                note: {
                    id: NaN,
                    userID: "",
                    text: "",
                    base64: ""
                },
                setNote: function (i, d) {
                    return n(function (g) {
                        var x;
                        return {
                            note: Object.freeze(Ho(Ho({}, g.note), (x = {}, x[i] = d, x)))
                        }
                    })
                }
            }
        })
    },
    f0 = it()(function (n, u) {
        return {
            container: {},
            getContainer: function (i) {
                var d = u().container;
                if (d[i]) return d[i];
                var g = K3();
                return n(function (x) {
                    var p;
                    return {
                        container: Ho(Ho({}, x.container), (p = {}, p[i] = g, p))
                    }
                }), g
            },
            deleteContainer: function (i) {
                return n(function (d) {
                    var g = Ho({}, d.container);
                    return delete g[i], {
                        container: g
                    }
                })
            }
        }
    }),
    q3 = function (n, u, i, d) {
        function g(x) {
            return x instanceof i ? x : new i(function (p) {
                p(x)
            })
        }
        return new (i || (i = Promise))(function (x, p) {
            function w(R) {
                try {
                    T(d.next(R))
                } catch (A) {
                    p(A)
                }
            }

            function M(R) {
                try {
                    T(d.throw(R))
                } catch (A) {
                    p(A)
                }
            }

            function T(R) {
                R.done ? x(R.value) : g(R.value).then(w, M)
            }
            T((d = d.apply(n, u || [])).next())
        })
    },
    $3 = function (n, u) {
        var i = {
            label: 0,
            sent: function () {
                if (x[0] & 1) throw x[1];
                return x[1]
            },
            trys: [],
            ops: []
        },
            d, g, x, p = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
        return p.next = w(0), p.throw = w(1), p.return = w(2), typeof Symbol == "function" && (p[Symbol.iterator] = function () {
            return this
        }), p;

        function w(T) {
            return function (R) {
                return M([T, R])
            }
        }

        function M(T) {
            if (d) throw new TypeError("Generator is already executing.");
            for (; p && (p = 0, T[0] && (i = 0)), i;) try {
                if (d = 1, g && (x = T[0] & 2 ? g.return : T[0] ? g.throw || ((x = g.return) && x.call(g), 0) : g.next) && !(x = x.call(g, T[1])).done) return x;
                switch (g = 0, x && (T = [T[0] & 2, x.value]), T[0]) {
                    case 0:
                    case 1:
                        x = T;
                        break;
                    case 4:
                        return i.label++, {
                            value: T[1],
                            done: !1
                        };
                    case 5:
                        i.label++, g = T[1], T = [0];
                        continue;
                    case 7:
                        T = i.ops.pop(), i.trys.pop();
                        continue;
                    default:
                        if (x = i.trys, !(x = x.length > 0 && x[x.length - 1]) && (T[0] === 6 || T[0] === 2)) {
                            i = 0;
                            continue
                        }
                        if (T[0] === 3 && (!x || T[1] > x[0] && T[1] < x[3])) {
                            i.label = T[1];
                            break
                        }
                        if (T[0] === 6 && i.label < x[1]) {
                            i.label = x[1], x = T;
                            break
                        }
                        if (x && i.label < x[2]) {
                            i.label = x[2], i.ops.push(T);
                            break
                        }
                        x[2] && i.ops.pop(), i.trys.pop();
                        continue
                }
                T = u.call(n, i)
            } catch (R) {
                T = [6, R], g = 0
            } finally {
                d = x = 0
            }
            if (T[0] & 5) throw T[1];
            return {
                value: T[0] ? T[1] : void 0,
                done: !0
            }
        }
    },
    q1 = function () {
        return q3(void 0, void 0, void 0, function () {
            var n;
            return $3(this, function (u) {
                switch (u.label) {
                    case 0:
                        return [4, qi("notes")];
                    case 1:
                        return n = u.sent() || [], Yf.setState({
                            notes: n
                        }), [2]
                }
            })
        })
    },
    e5 = function (n, u) {
        var i = typeof Symbol == "function" && n[Symbol.iterator];
        if (!i) return n;
        var d = i.call(n),
            g, x = [],
            p;
        try {
            for (;
                (u === void 0 || u-- > 0) && !(g = d.next()).done;) x.push(g.value)
        } catch (w) {
            p = {
                error: w
            }
        } finally {
            try {
                g && !g.done && (i = d.return) && i.call(d)
            } finally {
                if (p) throw p.error
            }
        }
        return x
    },
    t5 = function (n, u, i) {
        if (i || arguments.length === 2)
            for (var d = 0, g = u.length, x; d < g; d++)(x || !(d in u)) && (x || (x = Array.prototype.slice.call(u, 0, d)), x[d] = u[d]);
        return n.concat(x || Array.prototype.slice.call(u))
    },
    a5 = A0({
        createNote: function (n) {
            Yf.setState(function (u) {
                return {
                    notes: t5([n.data], e5(u.notes), !1)
                }
            })
        },
        editNote: function (n) {
            Yf.setState(function (u) {
                return {
                    notes: u.notes.map(function (i) {
                        return i.id === n.data.id ? n.data : i
                    })
                }
            })
        },
        deleteNote: function (n) {
            Yf.getState().deleteNote(n.data, !0)
        },
        notesBackup: function (n) {
            q1()
        }
    });
chrome.runtime.onMessage.addListener(a5);
var jf = function (n, u) {
    var i = typeof Symbol == "function" && n[Symbol.iterator];
    if (!i) return n;
    var d = i.call(n),
        g, x = [],
        p;
    try {
        for (;
            (u === void 0 || u-- > 0) && !(g = d.next()).done;) x.push(g.value)
    } catch (w) {
        p = {
            error: w
        }
    } finally {
        try {
            g && !g.done && (i = d.return) && i.call(d)
        } finally {
            if (p) throw p.error
        }
    }
    return x
},
    Df = function (n, u, i) {
        if (i || arguments.length === 2)
            for (var d = 0, g = u.length, x; d < g; d++)(x || !(d in u)) && (x || (x = Array.prototype.slice.call(u, 0, d)), x[d] = u[d]);
        return n.concat(x || Array.prototype.slice.call(u))
    },
    Yf = it(function (n, u) {
        return {
            notes: [],
            createNote: function (i, d) {
                d === void 0 && (d = !1);
                var g = u().notes,
                    x = Ce.getState().language,
                    p = Vr.getState().session,
                    w = d0.useModal.getState().openRendertype,
                    M = f0.getState().getContainer,
                    T = M(i).getState(),
                    R = T.note,
                    A = T.setRenderView;
                if (R.text.length < 3 && R.base64.length === 0) {
                    pe({
                        type: "Error",
                        message: x.adicioneAnotacaoCom3,
                        position: "top-right"
                    });
                    return
                }
                if (!p.is_premium && g.length >= 3) {
                    w("user_free");
                    return
                } !d && Je("notes", Df([R], jf(g), !1)), Zc({
                    stopPropag: d,
                    action: "createNote",
                    waitForResponse: !1,
                    data: R
                }), pe({
                    type: "Success",
                    message: x.note_add,
                    position: "top-right"
                }), A("list"), n({
                    notes: Df([R], jf(g), !1)
                })
            },
            createNoteSocket: function (i, d, g) {
                var x = u().notes,
                    p = Ce.getState().language,
                    w = Vr.getState().session,
                    M = d0.useModal.getState().openRendertype,
                    T = {
                        id: Date.now(),
                        userID: i,
                        text: d,
                        base64: g
                    };
                if (!w.is_premium && x.length >= 3) {
                    M("user_free");
                    return
                }
                Je("notes", Df([T], jf(x), !1)), Zc({
                    stopPropag: !1,
                    action: "createNote",
                    waitForResponse: !1,
                    data: T
                }), pe({
                    type: "Success",
                    message: p.note_add + " via API",
                    position: "top-right"
                }), n({
                    notes: Df([T], jf(x), !1)
                })
            },
            editNote: function (i, d) {
                d === void 0 && (d = !1);
                var g = u().notes,
                    x = Ce.getState().language,
                    p = f0.getState().getContainer,
                    w = p(i).getState(),
                    M = w.note,
                    T = w.setRenderView;
                if (M.text.length < 3 && M.base64.length === 0) {
                    pe({
                        type: "Error",
                        message: x.adicioneAnotacaoCom3,
                        position: "top-right"
                    });
                    return
                }
                var R = g.map(function (A) {
                    return A.id === M.id ? M : A
                });
                !d && Je("notes", R), Zc({
                    stopPropag: d,
                    action: "editNote",
                    waitForResponse: !1,
                    data: M
                }), pe({
                    type: "Success",
                    message: x.note_add,
                    position: "top-right"
                }), T("list"), n({
                    notes: R
                })
            },
            deleteNote: function (i, d) {
                d === void 0 && (d = !1);
                var g = u().notes,
                    x = Ce.getState().language,
                    p = g.filter(function (w) {
                        return w.id !== i
                    });
                !d && Je("notes", p), Zc({
                    stopPropag: d,
                    action: "deleteNote",
                    waitForResponse: !1,
                    data: i
                }), pe({
                    type: "Success",
                    message: x.note_delete,
                    position: "top-right"
                }), n({
                    notes: p
                })
            },
            getNotes: function (i) {
                var d = u().notes;
                return d.filter(function (g) {
                    return g.userID === i
                })
            }
        }
    });
q1();
var V4 = it()(function (n) {
    return {
        modalEmoji: null,
        options: {},
        childrenRef: null,
        offset: 0,
        auxFunc: {
            mounted: null,
            desmouted: null
        },
        open: function (u, i, d, g, x) {
            return g === void 0 && (g = 10), x === void 0 && (x = {
                mounted: null,
                desmouted: null
            }), n(function (p) {
                return x.mounted && x.mounted(), p.childrenRef !== d && p.auxFunc.desmouted && p.auxFunc.desmouted(), {
                    modalEmoji: u,
                    options: i,
                    childrenRef: d,
                    offset: g,
                    auxFunc: x
                }
            })
        },
        close: function () {
            return n(function (u) {
                return u.auxFunc.desmouted && u.auxFunc.desmouted(), {
                    modalEmoji: null,
                    options: {}
                }
            })
        }
    }
}),
    Wf = function () {
        return Wf = Object.assign || function (n) {
            for (var u, i = 1, d = arguments.length; i < d; i++) {
                u = arguments[i];
                for (var g in u) Object.prototype.hasOwnProperty.call(u, g) && (n[g] = u[g])
            }
            return n
        }, Wf.apply(this, arguments)
    },
    I4 = function (n, u) {
        var i = $1.getState().getContainer(n),
            d = i.getState().emojiArea;
        d && (d.setText(u), i.setState(function (g) {
            return {
                emojiArea: Wf(Wf({}, g.emojiArea), {
                    text: u
                })
            }
        }))
    },
    Jf = function () {
        return Jf = Object.assign || function (n) {
            for (var u, i = 1, d = arguments.length; i < d; i++) {
                u = arguments[i];
                for (var g in u) Object.prototype.hasOwnProperty.call(u, g) && (n[g] = u[g])
            }
            return n
        }, Jf.apply(this, arguments)
    },
    Z4 = function (n, u) {
        var i = $1.getState().getContainer(n),
            d = i.getState().emojiArea;
        if (d) {
            var g = document.querySelector("aside[render-name='emojiArea'] #".concat(CSS.escape(d.id))),
                x = g.selectionStart || 0,
                p = g.selectionEnd || 0,
                w = g.value.slice(0, x) + u + g.value.slice(p);
            d.setText(w), i.setState({
                emojiArea: Jf(Jf({}, d), {
                    text: w
                })
            }), setTimeout(function () {
                g.selectionStart = x + u.length, g.selectionEnd = x + u.length, g.focus()
            }, 150)
        }
    },
    n5 = function () {
        return it()(function (n, u) {
            return {
                emojiArea: null
            }
        })
    },
    Od = function () {
        return Od = Object.assign || function (n) {
            for (var u, i = 1, d = arguments.length; i < d; i++) {
                u = arguments[i];
                for (var g in u) Object.prototype.hasOwnProperty.call(u, g) && (n[g] = u[g])
            }
            return n
        }, Od.apply(this, arguments)
    },
    $1 = it()(function (n, u) {
        return {
            container: {},
            getContainer: function (i) {
                var d = u().container;
                if (d[i]) return d[i];
                var g = n5();
                return n(function (x) {
                    var p;
                    return {
                        container: Od(Od({}, x.container), (p = {}, p[i] = g, p))
                    }
                }), g
            },
            deleteContainer: function (i) {
                return n(function (d) {
                    var g = Od({}, d.container);
                    return delete g[i], {
                        container: g
                    }
                })
            }
        }
    }),
    l5 = W.lazy(function () {
        return Zr(() => import("./assets/js/index.DGHJdUv2.js"), __vite__mapDeps([16, 1, 2, 3, 4, 5, 6, 7, 8]))
    });

function Q4(n) {
    var u = n.id;
    return s.jsx(W.Suspense, {
        fallback: s.jsx(s.Fragment, {}),
        children: s.jsx(l5, {
            id: u
        })
    })
}
var i5 = W.lazy(function () {
    return Zr(() => import("./assets/js/index.AFwE9M3E.js"), __vite__mapDeps([17, 2, 3, 4, 1, 5, 6, 7, 8]))
});

function P4(n) {
    var u = n.id;
    return s.jsx(W.Suspense, {
        fallback: s.jsx(s.Fragment, {}),
        children: s.jsx(i5, {
            id: u
        })
    })
}
var r5 = W.lazy(function () {
    return Zr(() => import("./assets/js/index.DrsPaXu9.js"), __vite__mapDeps([18, 2, 3, 4, 1, 5, 6, 7, 8]))
});

function W4(n) {
    var u = n.id;
    return s.jsx(W.Suspense, {
        fallback: s.jsx(s.Fragment, {}),
        children: s.jsx(r5, {
            id: u
        })
    })
}
var s5 = W.lazy(function () {
    return Zr(() => import("./assets/js/index.DiPtQYeE.js").then(n => n.i), __vite__mapDeps([19, 1, 2, 3, 4, 5]))
});

function c5(n) {
    var u = n.id,
        i = n.base64,
        d = n.onBase64,
        g = n.idioma;
    return s.jsx(W.Suspense, {
        fallback: s.jsx(s.Fragment, {}),
        children: s.jsx(s5, {
            id: u,
            base64: i,
            onBase64: d,
            idioma: g
        })
    })
}

function o5(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24"
        },
        child: [{
            tag: "g",
            attr: {
                id: "Import"
            },
            child: [{
                tag: "g",
                attr: {},
                child: [{
                    tag: "path",
                    attr: {
                        d: "M5.552,20.968a2.577,2.577,0,0,1-2.5-2.73c-.012-2.153,0-4.306,0-6.459a.5.5,0,0,1,1,0c0,2.2-.032,4.4,0,6.6.016,1.107.848,1.589,1.838,1.589H18.353A1.546,1.546,0,0,0,19.825,19a3.023,3.023,0,0,0,.1-1.061V11.779h0a.5.5,0,0,1,1,0c0,2.224.085,4.465,0,6.687a2.567,2.567,0,0,1-2.67,2.5Z"
                    },
                    child: []
                }, {
                    tag: "path",
                    attr: {
                        d: "M11.63,15.818a.459.459,0,0,0,.312.138c.014,0,.027.005.042.006s.027,0,.041-.006a.457.457,0,0,0,.312-.138l3.669-3.669a.5.5,0,0,0-.707-.707l-2.815,2.815V3.515a.5.5,0,0,0-1,0V14.257L8.668,11.442a.5.5,0,0,0-.707.707Z"
                    },
                    child: []
                }]
            }]
        }]
    })(n)
}
const h0 = ({
    create: n,
    agendamento: u,
    userId: i,
    name: d,
    tipo: g
}) => {
    const {
        addAgendamento: x,
        editAgendamento: p
    } = Aa(), {
        language: w,
        idioma: M
    } = Ce(), T = Pc.getState().quickReplies, {
        open: R
    } = Wt(), [A, z] = W.useState(() => {
        if (n) return "txt";
        if (u.respostaRapida && u.respostaRapida.length !== 0) return "respostaRapida";
        switch (u.tipo) {
            case "txt":
                return "txt";
            case "audio":
                return "audio";
            case "respostaRapida":
                return "respostaRapida";
            default:
                return "midia"
        }
    }), [O, L] = W.useState(u || {
        id: "",
        tipo: "txt",
        userID: i,
        titulo: "",
        mensagem: "",
        respostaRapida: "",
        base64: "",
        base64Name: "",
        recorrencia: "",
        recorrenciaManual: !1,
        data: "",
        hora: ""
    }), G = (Oe, Ye) => {
        Oe === "recorrenciaManual" && ce(), L(Ee => ({
            ...Ee,
            [Oe]: Ye
        }))
    }, Z = () => {
        L({
            ...O,
            base64: "",
            base64Name: "",
            mensagem: "",
            respostaRapida: ""
        })
    }, ce = () => {
        L({
            ...O,
            recorrencia: ""
        })
    }, re = async () => {
        if (O.data.length === 0 || O.hora.length === 0) {
            pe({
                type: "Error",
                message: w.agendamento_Notif_error,
                position: "top-right"
            });
            return
        }
        const Oe = new Date,
            Ye = new Date(`${O.data}T${O.hora}`),
            Ee = Math.floor((Ye.getTime() - Oe.getTime()) / (1e3 * 60));
        if (Ye.toDateString() === Oe.toDateString()) {
            if (Ee < -1) {
                pe({
                    type: "Error",
                    message: w.agenDataHoraErro,
                    position: "top-right"
                });
                return
            }
        } else if (Ye < Oe) {
            pe({
                type: "Error",
                message: w.agenDataErro,
                position: "top-right"
            });
            return
        }
        if (O.tipo === "txt" && A !== "respostaRapida" && A !== "audio" && O.mensagem.trim().length === 0) {
            pe({
                type: "Error",
                message: w.agendamento_Notif_msg,
                position: "top-right"
            });
            return
        }
        if (A === "audio" && O.base64.length === 0) {
            pe({
                type: "Error",
                message: w.agendamento_Notif_msgError_audio,
                position: "top-right"
            });
            return
        }
        if (A === "respostaRapida" && T.length === 0) {
            pe({
                type: "Error",
                message: w.agendamento_notRes,
                position: "top-right"
            });
            return
        }
        if (await rl("agendamentos") !== !0) {
            if (O.titulo.length === 0 && (O.titulo = `${w.naoDefinido}`), O.id = Ir(), A === "respostaRapida" && !O.respostaRapida && (O.respostaRapida = T[0].id), (A === "txt" || A === "respostaRapida") && (O.base64 = "", O.base64Name = ""), A !== "respostaRapida" && (O.respostaRapida = ""), A === "txt" && (O.tipo = "txt"), A === "audio" && (O.tipo = "audio", O.base64 = O.base64, O.base64Name = O.base64Name), A === "respostaRapida" && (O.tipo = "respostaRapida"), O.recorrenciaManual && O.recorrencia === "") {
                pe({
                    type: "Error",
                    message: w.recorrenciaPersonalizada,
                    position: "top-right"
                });
                return
            }
            x(O), pe({
                type: "Success",
                message: w.agendamento_Notif_success,
                position: "top-right"
            }), R(s.jsx(Ru, {
                userId: i,
                name: d
            }))
        }
    }, ve = () => {
        if (O.data.length === 0 || O.hora.length === 0) {
            pe({
                type: "Error",
                message: w.agendamento_Notif_error,
                position: "top-right"
            });
            return
        }
        const Oe = new Date,
            Ye = new Date(`${O.data}T${O.hora}`),
            Ee = Math.floor((Ye.getTime() - Oe.getTime()) / (1e3 * 60));
        if (Ye.toDateString() === Oe.toDateString()) {
            if (Ee < -1) {
                pe({
                    type: "Error",
                    message: w.agenDataHoraErro,
                    position: "top-right"
                });
                return
            }
        } else if (Ye < Oe) {
            pe({
                type: "Error",
                message: w.agenDataErro,
                position: "top-right"
            });
            return
        }
        if (O.tipo === "txt" && A !== "respostaRapida" && A !== "audio" && O.mensagem.trim().length === 0) {
            pe({
                type: "Error",
                message: w.agendamento_Notif_msg,
                position: "top-right"
            });
            return
        }
        if (A === "audio" && O.base64.length === 0) {
            pe({
                type: "Error",
                message: w.agendamento_Notif_msgError_audio,
                position: "top-right"
            });
            return
        }
        if (A === "respostaRapida" && T.length === 0) {
            pe({
                type: "Error",
                message: w.agendamento_notRes,
                position: "top-right"
            });
            return
        }
        if (O.titulo.length === 0 && (O.titulo = `${w.naoDefinido}`), (A === "txt" || A === "respostaRapida") && (O.base64 = "", O.base64Name = ""), A !== "respostaRapida" && (O.respostaRapida = ""), A === "txt" && (O.tipo = "txt"), A === "audio" && (O.tipo = "audio", O.base64 = O.base64, O.base64Name = O.base64Name), A === "respostaRapida" && (O.tipo = "respostaRapida"), O.recorrenciaManual && O.recorrencia === "") {
            pe({
                type: "Error",
                message: w.recorrenciaPersonalizada,
                position: "top-right"
            });
            return
        }
        p(O, g), pe({
            type: "Success",
            message: w.agendamento_Notif_successEdit,
            position: "top-right"
        }), R(s.jsx(Ru, {
            userId: i,
            name: d
        }))
    }, he = () => {
        g === "agendamento" && R(s.jsx(Ru, {
            userId: i,
            name: d
        }))
    }, Se = Oe => {
        let Ye = Oe.type.split("/")[0];
        Ye !== "image" && Ye !== "audio" && Ye !== "video" && (Ye = "doc");
        const Ee = new FileReader;
        Ee.onloadend = function () {
            const B = Ee.result;
            L({
                ...O,
                tipo: Ye,
                base64: B,
                base64Name: Oe.name.split(".")[0]
            })
        }, Ee.readAsDataURL(Oe)
    }, xe = s.jsxs("div", {
        className: "form-control w-full",
        children: [s.jsxs("div", {
            className: "!flex gap-1",
            children: [s.jsx("label", {
                className: "label",
                children: s.jsx("span", {
                    className: "label-text",
                    children: w.agendamento_msg
                })
            }), s.jsx("span", {
                className: "pulse cursor-pointer lg:tooltip lg:tooltip-bottom tooltip-w-fit  before:!w-44 mt-2",
                "data-tip": w.agendamento_infoTagNome,
                children: s.jsx(Mu, {
                    className: "w-5 h-5 text-[var(--icon)]"
                })
            })]
        }), s.jsx(Dg, {
            id: "emoji-area-agendamento_crm",
            type: "textarea",
            className: "w-full",
            position: "right",
            placeholder: w.agendamento_placeMsg,
            text: O.mensagem,
            setText: Oe => G("mensagem", Oe),
            heightCamp: 150
        })]
    }), ft = () => s.jsxs("div", {
        className: "flex flex-col justify-start self-start h-full items-start w-auto",
        children: [s.jsxs("div", {
            className: "!flex gap-1",
            children: [s.jsx("label", {
                className: "label",
                children: s.jsx("span", {
                    className: "label-text",
                    children: w.agendamento_GravarAudio
                })
            }), s.jsx("span", {
                className: "pulse cursor-pointer lg:tooltip lg:tooltip-bottom tooltip-w-fit  before:!w-44 mt-2",
                "data-tip": w.agendamento_tolltip_audio,
                children: s.jsx(Mu, {
                    className: "w-5 h-5 text-[var(--icon)]"
                })
            })]
        }), s.jsx("div", {
            className: "w-[250px] m-auto flex justify-center items-center gap-1",
            children: s.jsx(c5, {
                id: "audio_agendamento_crm",
                base64: O.base64,
                onBase64: Ye => L({
                    ...O,
                    base64: Ye
                }),
                idioma: M
            })
        })]
    }), _e = () => s.jsxs("div", {
        className: "flex flex-col justify-start self-start h-full items-start w-auto",
        children: [s.jsxs("div", {
            className: "!flex gap-1",
            children: [s.jsx("label", {
                className: "label",
                children: s.jsx("span", {
                    className: "label-text",
                    children: w.agenGravarAudio
                })
            }), s.jsx("span", {
                className: "pulse cursor-pointer lg:tooltip lg:tooltip-bottom tooltip-w-fit  before:!w-44 mt-2",
                "data-tip": w.botaoIniciarGravcaoAudio,
                children: s.jsx(Mu, {
                    className: "w-5 h-5 text-[var(--icon)]"
                })
            })]
        }), s.jsxs("div", {
            className: "flex w-auto items-center justify-start gap-1",
            children: [s.jsx("audio", {
                src: O.base64,
                className: "w-[250px]",
                controls: !0
            }), s.jsx("span", {
                className: "cursor-pointer pulse",
                onClick: () => G("base64", ""),
                children: s.jsx(js, {
                    className: "w-5 h-5 text-red-500"
                })
            })]
        })]
    }), De = () => s.jsxs("label", {
        className: "m-auto p-2 border-base-200 hover:border-[var(--primaria)] border border-solid rounded-lg h-24 w-20 pulse flex justify-center items-center flex-col shadow-lg cursor-pointer mt-16",
        children: [s.jsx(o5, {
            className: "h-6 w-6 text-[var(--primaria)]",
            strokeWidth: 1
        }), s.jsx("strong", {
            className: "text-[var(--primaria)]",
            children: w.importar
        }), s.jsx("input", {
            type: "file",
            className: "hidden",
            onChange: Ye => Se(Ye.target.files[0])
        })]
    }), ta = () => {
        let Oe;
        switch (O.tipo) {
            case "image":
                Oe = s.jsx("img", {
                    src: O.base64,
                    className: "w-[150px] max-h-[180px]"
                });
                break;
            case "video":
                Oe = s.jsx("video", {
                    src: O.base64,
                    className: "w-[150px] max-h-[180px]",
                    controls: !0
                });
                break;
            case "audio":
                Oe = s.jsx("audio", {
                    src: O.base64,
                    className: "w-[150px]",
                    controls: !0
                });
                break;
            default:
                Oe = s.jsx("div", {
                    className: "animate__animated animate__zoomIn",
                    children: s.jsx("div", {
                        className: "tvf2evcx m0h2a7mj lb5m6g5c j7l1k36l ktfrpxia nu7pwgvd p357zi0d dnb887gk gjuq5ydh i2cterl7 ac2vgrno f8m0rgwh gndfcl4n cm280p3y jmly3brn qqs366u4 ikqdvm1y m3qqxsiz r1ncx0sg mmj7r7ye py-2",
                        children: s.jsxs("div", {
                            className: "du8bjn1j px-2 !m-0",
                            children: [s.jsx("span", {
                                "data-icon": "preview-generic",
                                className: "flex justify-center",
                                children: s.jsxs("svg", {
                                    viewBox: "0 0 88 110",
                                    height: "110",
                                    width: "88",
                                    preserveAspectRatio: "xMidYMid meet",
                                    children: [s.jsx("g", {
                                        transform: "translate(4 3)",
                                        children: s.jsx("path", {
                                            "stroke-opacity": "0.08",
                                            stroke: "#000",
                                            d: "M3-.5h56.929a5.5 5.5 0 0 1 3.889 1.61l15.071 15.072a5.5 5.5 0 0 1 1.611 3.89V101a3.5 3.5 0 0 1-3.5 3.5H3A3.5 3.5 0 0 1-.5 101V3A3.5 3.5 0 0 1 3-.5z",
                                            fill: "#FFF",
                                            "fill-rule": "evenodd"
                                        })
                                    }), s.jsx("path", {
                                        d: "M65.5 3.5v15a3 3 0 0 0 3 3h15",
                                        "stroke-opacity": "0.12",
                                        stroke: "#000",
                                        fill: "#FFF"
                                    })]
                                })
                            }), s.jsx("span", {
                                className: "pt-1 text-center font-semibold w-full block uppercase",
                                children: "documento"
                            })]
                        })
                    })
                });
                break
        }
        return s.jsxs("div", {
            className: "flex flex-col items-center",
            children: [s.jsx("div", {
                className: "flex justify-end w-full",
                children: s.jsx("span", {
                    className: "cursor-pointer pulse",
                    onClick: () => G("base64", ""),
                    children: s.jsx(js, {
                        className: "w-5 h-5 text-red-500"
                    })
                })
            }), Oe]
        })
    }, sa = () => s.jsx("div", {
        className: "mt-4",
        children: s.jsx(J3, {
            updateForm: G,
            resID: O.respostaRapida
        })
    });
    return s.jsxs("div", {
        className: "w-[600px] grid gap-4 overflow-auto pr-1",
        style: {
            maxHeight: "calc(100vh - 70px)"
        },
        children: [s.jsxs(sl, {
            children: [n ? w.create : w.edit, " ", w.agendamento]
        }), s.jsxs("div", {
            className: "form-control w-full",
            children: [s.jsx("label", {
                className: "label",
                children: s.jsxs("span", {
                    className: "label-text",
                    children: [w.agendamento_table_titulo, " (", w.opcional, ")"]
                })
            }), s.jsx("input", {
                type: "text",
                placeholder: w.agendamento_PlaceTitulo,
                className: "input input-bordered w-full input-sm",
                value: O.titulo,
                onChange: Oe => G("titulo", Oe.target.value)
            })]
        }), s.jsxs("div", {
            className: "form-control w-full",
            children: [s.jsx("label", {
                className: "label",
                children: s.jsx("span", {
                    className: "label-text",
                    children: w.agendamento_selectType
                })
            }), s.jsxs("div", {
                className: "tabs tabs-boxed w-fit",
                children: [s.jsx("a", {
                    className: "tab font-bold " + (A === "txt" ? "tab-active !bg-[var(--primaria)] !text-[var(--letra)]" : ""),
                    onClick: () => {
                        z("txt"), Z()
                    },
                    children: w.agendamento_createText
                }), s.jsx("a", {
                    className: "tab font-bold " + (A === "midia" ? "tab-active !bg-[var(--primaria)] !text-[var(--letra)]" : ""),
                    onClick: () => {
                        z("midia"), Z()
                    },
                    children: w.agendamento_midia
                }), s.jsx("a", {
                    className: "tab font-bold " + (A === "audio" ? "tab-active !bg-[var(--primaria)] !text-[var(--letra)]" : ""),
                    onClick: () => {
                        z("audio"), Z()
                    },
                    children: w.agendamento_audio
                }), s.jsx("a", {
                    className: "tab font-bold " + (A === "respostaRapida" ? "tab-active !bg-[var(--primaria)] !text-[var(--letra)]" : ""),
                    onClick: () => {
                        z("respostaRapida"), Z(), G("respostaRapida", T[0].id)
                    },
                    children: w.agendamento_select_resposta
                })]
            }), A === "respostaRapida" ? s.jsx(sa, {}) : s.jsxs("div", {
                className: "flex gap-4 items-center pt-4",
                children: [A === "midia" && (!O.base64 || O.base64.length === 0 ? De() : ta()), A === "audio" && (!O.base64 || O.base64.length === 0 ? ft() : _e()), xe]
            })]
        }), s.jsxs("div", {
            className: "flex justify-between gap-6",
            children: [s.jsxs("div", {
                className: "form-control w-full max-w-xs",
                children: [s.jsx("label", {
                    className: "label",
                    children: s.jsx("span", {
                        className: "label-text",
                        children: w.agendamento_table_data
                    })
                }), s.jsx("input", {
                    type: "Date",
                    className: "input input-bordered w-full max-w-xs input-sm",
                    value: O.data,
                    onChange: Oe => G("data", Oe.target.value)
                })]
            }), s.jsxs("div", {
                className: "form-control w-full max-w-xs",
                children: [s.jsx("label", {
                    className: "label",
                    children: s.jsx("span", {
                        className: "label-text",
                        children: w.agendamento_table_hora
                    })
                }), s.jsx("input", {
                    type: "time",
                    className: "input input-bordered w-full max-w-xs input-sm cursor-pointer",
                    value: O.hora,
                    onChange: Oe => G("hora", Oe.target.value)
                })]
            })]
        }), !O.recorrenciaManual && s.jsxs("div", {
            className: "form-control w-full",
            children: [s.jsx("label", {
                className: "label",
                children: s.jsx("span", {
                    className: "label-text",
                    children: w.agendamento_recorrencia
                })
            }), s.jsxs("select", {
                className: "!py-0 select select-bordered !select-sm w-full",
                onChange: Oe => G("recorrencia", Oe.target.value),
                value: O.recorrencia ? O.recorrencia : "",
                children: [s.jsx("option", {
                    value: "",
                    children: w.noneSelected
                }), s.jsx("option", {
                    value: "diario",
                    children: w.diario
                }), s.jsx("option", {
                    value: "semanal",
                    children: w.semanal
                }), s.jsx("option", {
                    value: "quinzenal",
                    children: w.quinzenal
                }), s.jsx("option", {
                    value: "mensal",
                    children: w.mensal
                }), s.jsx("option", {
                    value: "trimestral",
                    children: w.trimestral
                }), s.jsx("option", {
                    value: "semestral",
                    children: w.semestral
                }), s.jsx("option", {
                    value: "anual",
                    children: w.anual
                })]
            })]
        }), s.jsxs("div", {
            children: [s.jsx("div", {
                className: "form-control w-full",
                children: s.jsxs("label", {
                    className: "label gap-2 cursor-pointer w-fit !pt-0",
                    htmlFor: "set-recorrencia",
                    children: [s.jsx(Ag, {
                        id: "set-recorrencia",
                        estado: O.recorrenciaManual,
                        checkedUpdade: () => G("recorrenciaManual", !O.recorrenciaManual)
                    }), s.jsx(il, {
                        children: w.addRecorrenciaPersonalizada
                    })]
                })
            }), O.recorrenciaManual && s.jsxs("div", {
                className: "form-control w-full",
                children: [s.jsx("label", {
                    className: "label",
                    children: s.jsx("span", {
                        className: "label-text",
                        children: w.recorrenciaPersonalizadaTitle
                    })
                }), s.jsx("input", {
                    type: "number",
                    placeholder: w.recorrenciaPlace,
                    className: "input input-bordered w-full input-sm",
                    value: O.recorrencia,
                    onChange: Oe => G("recorrencia", Oe.target.value)
                })]
            })]
        }), s.jsxs("div", {
            className: "flex justify-between pt-4 resize-none",
            children: [s.jsx(ra, {
                name: w.cancel,
                funcao: he
            }), n ? s.jsx(ra, {
                name: w.create,
                funcao: re
            }) : s.jsx(ra, {
                name: w.edit,
                funcao: ve
            })]
        })]
    })
};

function Ru({
    userId: n,
    name: u
}) {
    const {
        agendamentos: i,
        agendamentosNaoDisparados: d,
        removeAgendamento: g,
        buttonActive: x,
        setButtonActive: p,
        openUserChat: w
    } = Aa(), [M, T] = W.useState(!1), [R, A] = W.useState(x ? i : i.filter(Ee => Ee.userID === n)), {
        language: z
    } = Ce(), [O, L] = W.useState(new Map), G = async Ee => {
        const B = await Ge.Contact("getProfilePictureUrl", Ee),
            {
                name: P
            } = await Ge.Utils("getContato", Ee);
        return {
            nome: P,
            base64: B
        }
    }, Z = async Ee => {
        const B = Array.from(new Set(Ee.map(Te => Te.userID))),
            P = new Map;
        for (const Te of B) {
            const ht = await G(Te);
            P.set(Te, ht)
        }
        L(P)
    };
    W.useEffect(() => {
        Z(R)
    }, [R]);
    const ce = Ee => O.get(Ee) || {
        nome: "",
        base64: ""
    };
    W.useEffect(() => {
        const Ee = new Date().getTime(),
            P = (x ? i : i.filter(Te => Te.userID === n)).sort((Te, ht) => {
                const fe = new Date(`${Te.data}T${Te.hora}:00`).getTime(),
                    ae = new Date(`${ht.data}T${ht.hora}:00`).getTime(),
                    mt = Math.abs(fe - Ee),
                    nt = Math.abs(ae - Ee);
                return mt - nt
            });
        A(P)
    }, [i, x, n, d]);
    const {
        open: re
    } = Wt(), {
        open: ve
    } = Ka(), he = 50, Se = 37, xe = "calc(85vh - 300px)", ft = "950px", _e = () => {
        const Ee = R.length * he + Se,
            B = parseInt(xe.replace(/[^\d]/g, ""));
        return Math.min(Ee, B)
    }, De = Ee => {
        re(s.jsx(h0, {
            agendamento: Ee,
            create: !1,
            userId: n,
            name: u,
            tipo: "agendamento"
        }))
    }, ta = async () => {
        re(s.jsx(h0, {
            agendamento: null,
            create: !0,
            userId: n,
            name: u,
            tipo: "agendamento"
        }))
    }, sa = Ee => {
        w(Ee.userID), re(s.jsx(Ru, {
            userId: Ee.userID,
            name: u
        }))
    }, yt = ({
        index: Ee,
        style: B
    }) => {
        const P = R[Ee];
        return s.jsxs("div", {
            style: B,
            className: "flex items-center rounded-lg hover:bg-base-200 cursor-pointer h-full border-solid border-b border-[var(--border-list)] last-of-type:border-none",
            children: [s.jsx("div", {
                className: "flex-1 flex items-center justify-center",
                children: s.jsx("span", {
                    className: "break-words truncate",
                    style: {
                        maxWidth: "100px"
                    },
                    children: P.titulo
                })
            }), s.jsx("div", {
                className: "flex-1 flex items-center justify-center",
                children: s.jsxs("div", {
                    className: "flex items-center gap-2",
                    children: [ce(P.userID).base64 === "undefined" ? s.jsx("div", {
                        className: "w-8 h-8 rounded-full flex items-center justify-center",
                        children: s.jsx(Hd, {})
                    }) : s.jsx("img", {
                        src: ce(P.userID).base64,
                        className: "w-8 h-8 rounded-full object-cover",
                        alt: "User"
                    }), s.jsx("p", {
                        className: "break-words truncate",
                        style: {
                            maxWidth: "92px"
                        },
                        children: ce(P.userID).nome
                    })]
                })
            }), s.jsx("div", {
                className: "flex-1 flex items-center justify-center",
                children: P.tipo
            }), s.jsx("div", {
                className: "flex-1 flex items-center justify-center",
                children: ll.converterData(P.data)
            }), s.jsx("div", {
                className: "flex-1 flex items-center justify-center",
                children: P.hora
            }), s.jsx("div", {
                className: "flex-1 flex items-center justify-center",
                children: P.recorrenciaManual ? P.recorrencia ? `${P.recorrencia} ${z.dias}` : z.vazia : z[P.recorrencia] || z.vazia
            }), s.jsxs("div", {
                className: "flex-1 flex items-center justify-center gap-1",
                children: [s.jsx("span", {
                    className: "pulse",
                    onClick: () => De(P),
                    children: s.jsx(Yo, {
                        className: "h-4 w-4"
                    })
                }), s.jsx("span", {
                    className: "pulse",
                    onClick: () => g(P.id, "agendamento"),
                    children: s.jsx(js, {
                        className: "h-4 w-4"
                    })
                }), x && n !== P.userID && s.jsx("span", {
                    className: "pulse lg:tooltip lg:tooltip-left",
                    onClick: () => sa(P),
                    "data-tip": z.agenOpenChat,
                    children: s.jsx(ay, {
                        className: "h-4 w-4"
                    })
                })]
            })]
        }, P.id)
    }, Oe = () => s.jsx("div", {
        className: "w-full border-collapse",
        children: s.jsxs("div", {
            className: "flex font-bold",
            children: [s.jsx("div", {
                className: "flex-1 px-4 py-3 text-xs align-middle text-center table-cell text-[#1f293799] dark:text-[#a6adbb99]",
                children: z.agendamento_table_titulo
            }), s.jsx("div", {
                className: "flex-1 px-4 py-3 text-xs align-middle text-center table-cell text-[#1f293799] dark:text-[#a6adbb99]",
                children: z.agendamento_table_cliente
            }), s.jsx("div", {
                className: "flex-1 px-4 py-3 text-xs align-middle text-center table-cell text-[#1f293799] dark:text-[#a6adbb99]",
                children: z.agendamento_table_tipo
            }), s.jsx("div", {
                className: "flex-1 px-4 py-3 text-xs align-middle text-center table-cell text-[#1f293799] dark:text-[#a6adbb99]",
                children: z.agendamento_table_data
            }), s.jsx("div", {
                className: "flex-1 px-4 py-3 text-xs align-middle text-center table-cell text-[#1f293799] dark:text-[#a6adbb99]",
                children: z.agendamento_table_hora
            }), s.jsx("div", {
                className: "flex-1 px-4 py-3 text-xs align-middle text-center table-cell text-[#1f293799] dark:text-[#a6adbb99]",
                children: z.agendamento_recorrencia
            }), s.jsx("div", {
                className: "flex-1 px-4 py-3 text-xs align-middle text-center table-cell text-[#1f293799] dark:text-[#a6adbb99]",
                children: z.agendamento_table_acao
            })]
        })
    });
    return s.jsxs("div", {
        className: "grid gap-4",
        style: {
            maxHeight: "90vh",
            width: ft
        },
        children: [s.jsx("div", {
            className: "w-full flex items-center justify-between pr-2",
            children: s.jsx("div", {
                className: `${M ? "animate__animated animate__fadeIn" : ""}`,
                children: s.jsxs(sl, {
                    children: [x && z.todas, " ", z.agendamento_title, " ", u ? z.para + " " + u : ""]
                })
            })
        }), s.jsx("div", {
            className: `${M ? "animate__animated animate__fadeIn" : ""}`,
            children: R.length > 0 ? s.jsxs("div", {
                style: {
                    height: _e(),
                    maxHeight: xe,
                    width: "100%"
                },
                children: [s.jsx(Oe, {}), s.jsx(Rp, {
                    children: ({
                        height: Ee,
                        width: B
                    }) => s.jsx(_p, {
                        height: Ee - Se,
                        itemCount: R.length,
                        itemSize: he,
                        width: ft,
                        style: {
                            overflowX: "hidden",
                            width: ft,
                            minHeight: "50px"
                        },
                        children: yt
                    })
                })]
            }) : s.jsx("div", {
                className: "!h-fit",
                children: s.jsx(Rg, {
                    title: z.agendamentoEmptyTitle,
                    description: z.agendamentoEmptyDesc,
                    icon: s.jsx(L0, {
                        className: "w-7 h-7 text-[var(--primaria)]"
                    })
                })
            })
        }), s.jsx("div", {
            className: "flex justify-end",
            children: s.jsx(ra, {
                name: z.create,
                funcao: ta
            })
        })]
    })
}

function g0(n, u) {
    const d = new Date(`${n}T${u}:00`).getTimezoneOffset(),
        g = Math.abs(Math.floor(d / 60)),
        x = Math.abs(d % 60),
        w = `${d > 0 ? "-" : "+"}${g.toString().padStart(2, "0")}:${x.toString().padStart(2, "0")}`;
    return `${n}T${u}:00${w}`
}

function u5({
    plugin_page: n
}) {
    const {
        language: u
    } = Ce(), {
        close: i
    } = Wt(), d = ll.dayDate(), g = ll.timeDate(), [x, p] = W.useState({
        title: document.getElementById("chatName")?.innerHTML,
        init_date: d.year + "-" + d.month + "-" + d.day,
        init_hora: g.hours + ":" + g.minutes,
        fim_date: "",
        fim_hora: "",
        location: "",
        descricao: ""
    }), w = (R, A) => {
        p({
            ...x,
            [R]: A
        })
    }, M = async () => {
        if (x.init_date.length === 0 || x.init_hora.length === 0 || x.fim_date.length === 0 || x.fim_hora.length === 0) {
            pe({
                type: "Error",
                message: u.preenchaTodosCamposDataHora,
                position: "top-right"
            });
            return
        }
        const R = new Date(x.init_date + " " + x.init_hora).getTime();
        if (new Date(x.fim_date + " " + x.fim_hora).getTime() < R) {
            pe({
                type: "Error",
                message: u.dataDeTerminoInferiorDataInicio,
                position: "top-right"
            });
            return
        }
        if (await rl("googleCalendario") === !0) return;
        pe({
            type: "Success",
            message: u.eventoGoogleCalendarioCriado,
            position: "top-right"
        });
        let z = "https://calendar.google.com/calendar/render?action=TEMPLATE",
            O = `&text=${encodeURIComponent(x.title)}`,
            L = g0(x.init_date, x.init_hora),
            G = g0(x.fim_date, x.fim_hora),
            Z = `&dates=${L.replace(new RegExp("[-:+]", "g"), "")}/${G.replace(new RegExp("[-:+]", "g"), "")}`,
            ce = `&details=${encodeURIComponent(x.descricao)}`,
            re = `&location=${encodeURIComponent(x.location)}`;
        z = z + O + Z + ce + re, window.open(z, "_blank"), i()
    };
    return s.jsxs("div", {
        className: "w-[35rem] p-2 flex flex-col items-center",
        children: [s.jsx("header", {
            className: "w-full",
            children: s.jsx(il, {
                size: "22px",
                weight: "bold",
                children: u.modal_schedulingCallendar_title
            })
        }), s.jsxs("main", {
            className: "w-full flex flex-col gap-3 mt-2",
            children: [s.jsx(Gr, {
                size: "15px",
                title: u.modal_schedulingCallendar_placeTitle,
                type: "text",
                placeHolder: u.modal_schedulingCallendar_placeMessage,
                value: x.title,
                onchange: R => w("title", R.target.value)
            }), s.jsxs("div", {
                className: "w-full flex flex-col gap-2",
                children: [s.jsxs("div", {
                    className: "w-full gap-3 flex items-center",
                    children: [s.jsx("div", {
                        className: "w-3/6",
                        children: s.jsx(Gr, {
                            size: "12px",
                            title: u.modal_schedulingCallendar_since,
                            type: "date",
                            value: x.init_date,
                            onchange: R => w("init_date", R.target.value)
                        })
                    }), s.jsx("div", {
                        className: "w-3/6 self-end",
                        children: s.jsx(Gr, {
                            title: "",
                            type: "time",
                            value: x.init_hora,
                            onchange: R => w("init_hora", R.target.value)
                        })
                    })]
                }), s.jsxs("div", {
                    className: "w-full gap-3 flex items-center",
                    children: [s.jsx("div", {
                        className: "w-3/6",
                        children: s.jsx(Gr, {
                            size: "12px",
                            title: u.modal_schedulingCallendar_until,
                            type: "date",
                            value: x.fim_date,
                            onchange: R => w("fim_date", R.target.value)
                        })
                    }), s.jsx("div", {
                        className: "w-3/6 self-end",
                        children: s.jsx(Gr, {
                            title: "",
                            type: "time",
                            value: x.fim_hora,
                            onchange: R => w("fim_hora", R.target.value)
                        })
                    })]
                })]
            }), s.jsx(Gr, {
                size: "15px",
                title: u.modal_schedulingCallendar_location,
                type: "text",
                placeHolder: u.inserirLocalizacao,
                value: x.location,
                onchange: R => w("location", R.target.value)
            }), s.jsx(Gr, {
                size: "15px",
                title: u.modal_schedulingCallendar_description,
                type: "text",
                placeHolder: u.modal_schedulingCallendar_placeMessageAbout,
                value: x.descricao,
                onchange: R => w("descricao", R.target.value)
            })]
        }), s.jsx("footer", {
            className: "mt-2",
            children: s.jsx(ra, {
                funcao: M,
                name: u.modal_schedulingCallendar_saveButton
            })
        })]
    })
}

function m0({
    userId: n,
    create: u,
    notification: i,
    onBackBtnClickHnd: d
}) {
    const {
        language: g
    } = Ce(), {
        setNotifications: x,
        editNotification: p,
        notifications: w
    } = Go(), [M, T] = W.useState({
        id: Ir(),
        date: "",
        read: !1,
        timeOut: !1,
        time: "",
        title: "",
        desc: "",
        user_id: n
    }), [R, A] = W.useState(!1);
    W.useEffect(() => {
        i && T(i)
    }, [i]);
    const z = (Z, ce) => {
        T({
            ...M,
            [Z]: ce
        })
    },
        O = async Z => {
            if (Z.preventDefault(), await rl("lembretes")) console.error("User is FREE, cannot proceed.");
            else {
                const re = {
                    id: M.id || Ir(),
                    date: M.date,
                    read: !1,
                    timeOut: !1,
                    time: M.time,
                    title: M.title,
                    desc: M.desc,
                    user_id: n
                };
                if (R) {
                    let ve = new Date;
                    ve.setHours(ve.getHours() - 3), ve.setMinutes(ve.getMinutes() - 5);
                    let he = ve.toISOString().slice(0, 10),
                        Se = ve.toISOString().slice(11, 16).replace(":", ""),
                        xe = "https://calendar.google.com/calendar/render?action=TEMPLATE&text=";
                    xe += `${encodeURIComponent(M.title)}&dates=${he.replace(new RegExp("[-:+]", "g"), "")}T${Se}/${M.date.replace(new RegExp("[-:+]", "g"), "")}T${M.time.replace(new RegExp("[-:+]", "g"), "")}`, xe += `&details=${encodeURIComponent(M.desc)}`, xe += "&ctz=America/Sao_Paulo", window.open(xe, "_blank")
                }
                if (re.title.length > 0 && re.desc.length > 0 && re.date.length > 0 && re.time.length > 0) {
                    if (u) x([...w, re]);
                    else if (i.id) p(i.id, re);
                    else {
                        console.error("Invalid notification ID:", i?.id);
                        return
                    }
                    pe({
                        type: "Success",
                        message: `${u ? g.modal_createAReminder_alertMessageSucess : g.modal_createAReminder_alertMessageSucessEdit}`,
                        position: "top-right"
                    }), d()
                } else pe({
                    type: "Error",
                    message: g.modal_createAReminder_FillAllFields,
                    position: "top-right"
                })
            }
        }, L = Z => {
            const {
                value: ce
            } = Z.target, re = ce, ve = new Date().toISOString().slice(0, 10);
            if (re < ve) {
                pe({
                    type: "Error",
                    message: g.modal_createAReminder_alertMessageDataError,
                    position: "top-right"
                });
                return
            }
            z("date", ce)
        };
    return s.jsxs("form", {
        className: "w-[30rem] h-auto flex flex-col gap-2 p-2",
        onSubmit: O,
        children: [s.jsxs("header", {
            className: "flex flex-col gap-3",
            children: [s.jsx(il, {
                size: "20px",
                weight: "bold",
                children: u ? g.modal_createAReminder_title : g.modal_editAReminder_title
            }), s.jsx(il, {
                size: "14px",
                children: g.modal_createAReminder_subTitle
            })]
        }), s.jsxs("main", {
            className: "flex flex-col gap-2",
            children: [s.jsx(Gr, {
                icon: s.jsx(Gx, {
                    size: 16
                }),
                title: g.modal_name,
                type: "text",
                placeHolder: g.modal_createAReminder_PlaceHoldertittle,
                value: M.title,
                onchange: Z => z("title", Z.target.value),
                maxLength: 55
            }), s.jsxs("div", {
                className: "flex flex-col gap-2",
                children: [s.jsx(il, {
                    size: "17px",
                    weight: "bold",
                    children: g.description
                }), s.jsx("textarea", {
                    placeholder: g.modal_createAReminder_subDesc,
                    rows: 6,
                    maxLength: 784,
                    className: "w-full p-2 text-sm leading-5 text-[var(--primary)] bg-base-200 input-bordered rounded-md resize-none",
                    onChange: Z => z("desc", Z.target.value),
                    value: M.desc
                })]
            }), s.jsx(Gr, {
                title: g.modal_date,
                type: "date",
                value: M.date,
                onchange: L
            }), s.jsx(Gr, {
                title: g.modal_hours,
                type: "time",
                value: M.time,
                onchange: Z => z("time", Z.target.value)
            })]
        }), s.jsxs("footer", {
            className: "flex flex-col mt-2 gap-3",
            children: [s.jsxs("div", {
                className: "flex gap-3 w-full items-center",
                children: [s.jsx("input", {
                    type: "checkbox",
                    name: "Google Calendar",
                    checked: R,
                    onChange: () => A(!R)
                }), s.jsx(il, {
                    children: g.modal_createAReminder_checkBoxText
                })]
            }), s.jsxs("div", {
                className: "flex w-full justify-evenly",
                children: [s.jsx(ra, {
                    funcao: d,
                    name: g.modal_schedulingCallendar_cancelButton
                }), s.jsx(ra, {
                    funcao: O,
                    name: u ? g.modal_schedulingCallendar_saveButton : g.modal_schedulingCallendar_editButton
                })]
            })]
        })]
    })
}

function Xf(n) {
    return ct({
        attr: {
            version: "1.1",
            viewBox: "0 0 17 17"
        },
        child: [{
            tag: "g",
            attr: {},
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M14.714 6.791c0.504-0.512 0.786-1.181 0.786-1.903 0-1.503-1.223-2.726-2.725-2.726-0.886 0-1.695 0.434-2.207 1.15-0.501-0.155-1.026-0.249-1.568-0.287v-1.025h1v-1h-3v1h1v1.025c-0.542 0.038-1.067 0.132-1.568 0.287-0.512-0.717-1.32-1.15-2.207-1.15-1.502 0-2.725 1.223-2.725 2.726 0 0.723 0.282 1.392 0.786 1.903-0.499 0.962-0.786 2.052-0.786 3.209 0 1.707 0.616 3.271 1.635 4.487l-1.285 1.713 0.8 0.6 1.192-1.59c1.239 1.109 2.868 1.79 4.658 1.79s3.419-0.681 4.658-1.79l1.192 1.59 0.8-0.6-1.285-1.713c1.019-1.216 1.635-2.78 1.635-4.487 0-1.157-0.287-2.247-0.786-3.209zM12.775 3.162c0.951 0 1.725 0.774 1.725 1.726 0 0.373-0.12 0.724-0.335 1.017-0.678-0.936-1.581-1.694-2.63-2.202 0.322-0.339 0.762-0.541 1.24-0.541zM2.5 4.888c0-0.951 0.774-1.726 1.725-1.726 0.478 0 0.918 0.202 1.24 0.54-1.049 0.508-1.951 1.267-2.63 2.202-0.215-0.293-0.335-0.643-0.335-1.016zM8.5 16c-3.309 0-6-2.691-6-6s2.691-6 6-6 6 2.691 6 6-2.691 6-6 6zM9 10h4v1h-5v-4h1v3z"
            },
            child: []
        }]
    })(n)
}

function yg({
    userID: n
}) {
    const {
        notifications: u,
        removeNotification: i
    } = Go(), {
        language: d
    } = Ce(), {
        open: g
    } = Wt(), x = T => {
        g(s.jsx(m0, {
            userId: n,
            create: !1,
            notification: T,
            onBackBtnClickHnd: () => g(s.jsx(yg, {
                userID: n
            }))
        }))
    }, p = T => {
        i(T), pe({
            type: "Success",
            message: d.modal_createAReminder_alertMessageRemove,
            position: "top-right"
        })
    }, w = ({
        notifications: T,
        user_id: R
    }) => {
        const z = T.filter(O => O.user_id === R).sort((O, L) => {
            if (O.timeOut !== L.timeOut) return O.timeOut ? -1 : 1;
            const G = new Date(O.date + "T" + O.time),
                Z = new Date(L.date + "T" + L.time);
            return G.getTime() - Z.getTime()
        });
        return s.jsx("div", {
            className: "flex flex-col gap-2 my-4 overflow-auto",
            style: {
                maxHeight: "calc(100vh - 280px)"
            },
            children: z.slice().reverse().map(O => s.jsxs("li", {
                className: "flex justify-between w-full gap-0.5 bg-[var(--background-default-active)] border-solid border border-[var(--conversation-header-border)] p-2 rounded-2xl list-none",
                children: [s.jsxs("div", {
                    className: "flex flex-col w-auto gap-2 justify-center",
                    children: [s.jsxs("div", {
                        className: "flex items-center gap-1",
                        children: [s.jsx(il, {
                            size: "18px",
                            weight: "bold",
                            children: O.title
                        }), O.timeOut ? s.jsx(Xf, {
                            className: "w-5 h-5 text-red-500"
                        }) : s.jsx(Xf, {
                            className: "w-5 h-5 text-yellow-500"
                        })]
                    }), s.jsx("span", {
                        className: "text-base",
                        style: {
                            overflowWrap: "break-word"
                        },
                        children: O.desc
                    }), s.jsx("span", {
                        className: "text-xs font-bold",
                        children: `${ll.convertDate(O.date)} at ${O.time}`
                    })]
                }), s.jsxs("div", {
                    className: "flex flex-row w-auto justify-center items-center gap-1",
                    children: [s.jsx("span", {
                        className: "pulse cursor-pointer",
                        onClick: () => x(O),
                        children: s.jsx(Yo, {
                            className: "h-5 w-5"
                        })
                    }), s.jsx("span", {
                        className: "pulse cursor-pointer",
                        onClick: () => p(O.id),
                        children: s.jsx(js, {
                            className: "h-5 w-5"
                        })
                    })]
                })]
            }, O.id))
        })
    };
    return s.jsxs("div", {
        className: "w-auto min-w-[780px] max-w-[780px] flex flex-col gap-4",
        children: [s.jsxs("div", {
            className: "flex items-center gap-2",
            children: [s.jsx(sl, {
                children: d.modal_reminder_title
            }), s.jsx("div", {
                className: "cursor-pointer lg:tooltip lg:tooltip-bottom",
                "data-tip": d.modal_createAReminder_dataTip,
                children: s.jsx("span", {
                    className: "pulse",
                    children: s.jsx(Mu, {
                        className: "h-5 w-5"
                    })
                })
            })]
        }), s.jsx("div", {
            className: "w-full self-center",
            children: u.filter(T => T.user_id === n).length > 0 && s.jsx(w, {
                user_id: n,
                notifications: u.filter(T => T.user_id === n)
            })
        }), s.jsx("div", {
            className: "overflow-auto",
            style: {
                maxHeight: "calc(100vh - 300px)"
            },
            children: u.filter(T => T.user_id === n).length === 0 && s.jsx(Rg, {
                title: d.modal_reminder_emptyMsg_title,
                description: d.modal_reminder_emptyMsg_desc,
                icon: s.jsx(Xf, {
                    className: "w-7 h-7 text-[var(--primaria)]"
                })
            })
        }), s.jsx("div", {
            className: "flex justify-center py-3",
            children: s.jsx(ra, {
                name: d.create,
                funcao: () => g(s.jsx(m0, {
                    userId: n,
                    create: !0,
                    onBackBtnClickHnd: () => g(s.jsx(yg, {
                        userID: n
                    }))
                }))
            })
        })]
    })
}

function d5({
    userId: n
}) {
    const {
        language: u
    } = Ce(), {
        getProduct: i
    } = _s(), {
        notifications: d
    } = Go(), {
        notes: g
    } = Au(), {
        agendamentos: x
    } = Aa(), {
        variaveisWA: p
    } = $i(), {
        menuLateral: w,
        setMenuLateral: M,
        menuVerticalOpen: T,
        setMenuVerticalOpen: R
    } = Qr(), {
        open: A
    } = Wt(), z = [{
        id: 1,
        title: u.modal_createAReminder_title,
        ico: s.jsx(Xf, {
            className: "w-6 h-6 text-[var(--primaria)] mb-[3px]"
        }),
        funcao: () => A(s.jsx(yg, {
            userID: n
        })),
        tam: d.filter(O => O.user_id === n).length
    }, {
        id: 2,
        title: u.note_list_title,
        ico: s.jsx(Yx, {
            size: 24,
            className: "text-[var(--primaria)]"
        }),
        funcao: () => A(s.jsx(q0, {
            id: "crm_menu",
            userID: n,
            viwerModel: "modal"
        })),
        tam: g.filter(O => O.userID === n).length
    }, {
        id: 3,
        title: u.modal_schedulingCallendar_title,
        ico: s.jsx(Xx, {
            className: "w-6 h-6 text-[var(--primaria)]"
        }),
        funcao: () => A(s.jsx(u5, {
            plugin_page: !0
        }))
    }, {
        id: 4,
        title: u.agendamento_title,
        ico: s.jsx(L0, {
            className: "w-6 h-6 text-[var(--primaria)]"
        }),
        funcao: () => A(s.jsx(Ru, {
            userId: n
        })),
        tam: x.filter(O => O.userID === n).length
    }, {
        id: 5,
        title: u.modal_contactProfile,
        ico: s.jsx(o1, {
            className: "w-6 h-6 text-[var(--primaria)]"
        }),
        funcao: () => M({
            ...w,
            children: "perfilContato"
        })
    }, {
        id: 6,
        title: u.modal_orders_title,
        ico: s.jsx(k0, {
            className: "w-6 h-6 text-[var(--primaria)]"
        }),
        funcao: () => A(s.jsx(pg, {
            userID: n
        })),
        tam: n ? i(n).length : 0
    }];
    return s.jsxs("div", {
        className: "z-[1] absolute bottom-[10px] left-2 gap-2 flex items-center flex-col-reverse",
        children: [s.jsx("li", {
            className: "lg:tooltip  lg:tooltip-right",
            "data-tip": u.chat_horizontal_btn,
            children: s.jsx("div", {
                className: "pulse cursor-pointer bg-[var(--dropdown-background)] rounded-full w-9 h-9 shadow-lg flex items-center justify-center",
                onClick: () => R(!T),
                children: s.jsx("span", {
                    children: s.jsx("img", {
                        src: chrome.runtime.getURL("label/icons/plugin/icon.png"),
                        className: "w-10 rounded-full"
                    })
                })
            })
        }), T && z.map(({
            id: O,
            title: L,
            ico: G,
            funcao: Z,
            tam: ce
        }) => s.jsx("li", {
            className: "lg:tooltip  lg:tooltip-right",
            "data-tip": L,
            children: s.jsxs("div", {
                className: "pulse cursor-pointer bg-[var(--dropdown-background)] rounded-full w-9 h-9 shadow-lg flex items-center justify-center",
                onClick: Z,
                children: [s.jsx("span", {
                    children: G
                }), ce > 0 && s.jsx("div", {
                    className: "absolute -top-1 -right-1",
                    children: s.jsx("span", {
                        className: p.aba + " bg-[var(--primaria)]",
                        children: ce
                    })
                })]
            })
        }, O))]
    })
}
const f5 = ({
    chat: n,
    removeScript: u
}) => {
    const [i, d] = W.useState(null), {
        language: g
    } = Ce(), x = L => {
        d(L)
    }, p = () => {
        if (i) {
            const L = document.createElement("a");
            L.href = i, L.download = "download", L.click(), pe({
                type: "Success",
                message: `${g.chat_downloadSucess}...`,
                position: "top-right"
            })
        } else pe({
            type: "Error",
            message: g.chat_downloadError,
            position: "top-right"
        })
    }, [w, M] = W.useState(!1), T = () => {
        (n.type === "document" || n.type === "video" || n.type === "image" || n.type === "audio" || n.type === "ptt") && M(!0)
    }, R = () => {
        M(!1)
    }, [A, z] = W.useState(!1);
    let O;
    switch (n.type) {
        case "chat":
            O = s.jsx(F3, {
                position: n.id.fromMe,
                children: n.body
            });
            break;
        case "image":
            O = s.jsx(G3, {
                captureBase64: x,
                position: n.id.fromMe,
                id: n.id._serialized,
                children: n.caption
            });
            break;
        case "video":
            O = s.jsx(Y3, {
                captureBase64: x,
                position: n.id.fromMe,
                id: n.id._serialized,
                children: n.caption
            });
            break;
        case "audio":
        case "ptt":
            O = s.jsx(X3, {
                captureBase64: x,
                position: n.id.fromMe,
                from: n.from,
                id: n.id._serialized
            });
            break;
        case "document":
            O = s.jsx(V3, {
                id: n.id._serialized,
                captureBase64: x,
                children: n
            });
            break;
        case "vcard":
            O = s.jsx(I3, {
                children: n
            });
            break
    }
    return s.jsx("div", {
        onMouseEnter: T,
        onMouseLeave: R,
        className: "w-full flex items-center gap-2 relative " + (n.id.fromMe ? "justify-end" : "justify-start"),
        children: s.jsxs("div", {
            className: "flex items-center gap-2 " + (n.id.fromMe ? "flex-row" : "flex-row-reverse"),
            children: [n.type !== "document" && w && s.jsx("div", {
                onClick: p,
                className: "lg:tooltip " + (n.id.fromMe ? "lg:tooltip-left" : "lg:tooltip-right"),
                "data-tip": "Realizar Download",
                children: s.jsx(Vx, {
                    className: "text-[var(--primaria)] w-6 h-6 cursor-pointer hover:scale-105 transition-transform delay-100"
                })
            }), O]
        })
    })
};

function h5({
    userID: n,
    viewMidia: u
}) {
    const [i, d] = W.useState([]), g = async () => {
        const T = await Ge.Chat("getMessages", {
            id: n,
            quant: 20
        });
        JSON.stringify(T) !== JSON.stringify(i) && d(T.reverse())
    };
    W.useEffect(() => {
        g()
    }, []), W.useEffect(() => (chrome.runtime.onMessage.addListener(x), () => {
        chrome.runtime.onMessage.removeListener(x)
    }), [i]);
    const x = function (T, R, A) {
        switch (T.action) {
            case "chat.new_message":
                if (T.msgID.remote._serialized.includes(n)) {
                    const O = [JSON.parse(T.model), ...i];
                    d(O)
                }
                break
        }
    },
        p = T => { },
        w = s.jsxs("div", {
            children: [s.jsx("div", {
                className: "relative",
                children: s.jsx("div", {
                    className: "bg-whatsFundo absolute dark:contrast-0 contrast-50 h-full",
                    style: {
                        width: "calc(100% - 15px)",
                        height: "calc(90vh - 110px)"
                    }
                })
            }), s.jsx("div", {
                className: "h-full overflow-auto bg-[var(--conversation-panel-background)] px-[50px] py-4 flex flex-col-reverse",
                style: {
                    height: "calc(90vh - 110px)"
                },
                children: i.map((T, R) => s.jsx("div", {
                    tabIndex: R,
                    children: s.jsx(f5, {
                        chat: T,
                        removeScript: p
                    })
                }, R))
            }), s.jsx("div", {
                className: "relative",
                children: s.jsx(d5, {
                    userId: n
                })
            })]
        }),
        M = s.jsx("div", {
            className: "bg-[var(--background-default)] p-2 shadow-lg h-full w-full",
            style: {
                height: "calc(-200px + 100vh)"
            },
            children: s.jsx(Z3, {
                viewMidia: u
            })
        });
    return u.open ? M : w
}
const g5 = W.memo(h5);

function m5({
    userID: n
}) {
    const {
        language: u
    } = Ce(), {
        close: i
    } = Wt(), [d, g] = W.useState(""), [x, p] = W.useState(""), w = async () => {
        if (d.length < 3 || x.length < 8) {
            pe({
                type: "Error",
                message: u.preenchaTodosOsCampos,
                position: "top-right"
            });
            return
        }
        const T = px.whatsapp(x);
        Ge.Chat("sendContact", {
            id: n,
            phone: T,
            name: d
        }), i()
    };
    return s.jsxs("div", {
        className: "w-96 grid gap-4",
        children: [s.jsx(sl, {
            children: u.criarContato
        }), s.jsxs("div", {
            className: "form-control w-full",
            children: [s.jsx("label", {
                className: "label",
                children: s.jsx("span", {
                    className: "label-text",
                    children: u.name
                })
            }), s.jsx("input", {
                type: "text",
                placeholder: u.inserirNomeContato,
                className: "input input-bordered w-full input-sm",
                value: d,
                onChange: T => g(T.target.value)
            })]
        }), s.jsxs("div", {
            className: "form-control w-full",
            children: [s.jsx("label", {
                className: "label",
                children: s.jsx("span", {
                    className: "label-text",
                    children: u.number
                })
            }), s.jsx("input", {
                type: "text",
                placeholder: "(xx) xxxx-xxxx",
                className: "input input-bordered w-full input-sm",
                value: x,
                onChange: T => p(T.target.value)
            })]
        }), s.jsx("div", {
            className: "m-auto",
            children: s.jsx(ra, {
                name: u.criarContato,
                funcao: w
            })
        })]
    })
}
const kf = "h-5 w-5 text-[var(--icon)]",
    v5 = [{
        name: "Imagem",
        ico: s.jsx(U0, {
            className: kf
        }),
        type: "image/*"
    }, {
        name: "Video",
        ico: s.jsx(x1, {
            className: kf
        }),
        type: "video/*"
    }, {
        name: "Audio",
        ico: s.jsx(B0, {
            className: kf
        }),
        type: "audio/*"
    }, {
        name: "Documento",
        ico: s.jsx(H0, {
            className: kf
        }),
        type: "*"
    }, {
        name: "Contato",
        ico: s.jsx(th, {
            className: "h-6 w-6 text-[var(--icon)]"
        }),
        type: "contato"
    }];

function b5({
    setViewMidia: n,
    userID: u
}) {
    const {
        open: i
    } = Wt(), {
        close: d
    } = Ka(), g = W.useRef(null);
    let x;
    const p = T => {
        T === "contato" ? (d(), i(s.jsx(m5, {
            userID: u
        }))) : (g.current.setAttribute("accept", T), x = T, g.current.click())
    },
        w = async T => {
            switch (d(), x) {
                case "*":
                    Ge.Chat("sendDoc", {
                        id: u,
                        name: T.target.files[0].name,
                        base64: await If(T.target.files[0])
                    });
                    break;
                case "audio/*":
                    Ge.Chat("sendAudio", {
                        id: u,
                        base64: await If(T.target.files[0])
                    });
                    break;
                default:
                    n({
                        open: !0,
                        type: x,
                        content: T.target.files[0]
                    });
                    break
            }
        };
    return s.jsxs("div", {
        children: [v5.map((T, R) => s.jsx("span", {
            children: s.jsx(Nn, {
                content: T.name,
                icon: T.ico,
                setFunction: () => p(T.type),
                stroke: "1"
            })
        }, R)), s.jsx("input", {
            className: "hidden",
            type: "file",
            ref: g,
            onChange: w
        })]
    })
}

function x5(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M1.513 1.96a1.374 1.374 0 0 1 1.499-.21l19.335 9.215a1.147 1.147 0 0 1 0 2.07L3.012 22.25a1.374 1.374 0 0 1-1.947-1.46L2.49 12 1.065 3.21a1.375 1.375 0 0 1 .448-1.25Zm2.375 10.79-1.304 8.042L21.031 12 2.584 3.208l1.304 8.042h7.362a.75.75 0 0 1 0 1.5Z"
            },
            child: []
        }]
    })(n)
}

function J4(n) {
    return ct({
        attr: {
            viewBox: "0 0 24 24"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M2 3.75C2 2.784 2.784 2 3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H9.75a.75.75 0 0 1 0-1.5h10.5a.25.25 0 0 0 .25-.25V9h-17v3A.75.75 0 0 1 2 12ZM9 7.5h11.5V3.75a.25.25 0 0 0-.25-.25H9Zm-5.5 0h4v-4H3.75a.25.25 0 0 0-.25.25Z"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "m9.308 14.5-2.104-2.236a.75.75 0 1 1 1.092-1.028l3.294 3.5a.75.75 0 0 1 0 1.028l-3.294 3.5a.75.75 0 1 1-1.092-1.028L9.308 16H6.09a2.59 2.59 0 0 0-2.59 2.59v2.66a.75.75 0 0 1-1.5 0v-2.66a4.09 4.09 0 0 1 4.09-4.09h3.218Z"
            },
            child: []
        }]
    })(n)
}

function p5(n) {
    return ct({
        attr: {
            viewBox: "0 0 32 32"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M 16 2 C 14.74 2 13.850156 2.89 13.410156 4 L 5 4 L 5 29 L 27 29 L 27 4 L 18.589844 4 C 18.149844 2.89 17.26 2 16 2 z M 16 4 C 16.55 4 17 4.45 17 5 L 17 6 L 20 6 L 20 8 L 12 8 L 12 6 L 15 6 L 15 5 C 15 4.45 15.45 4 16 4 z M 7 6 L 10 6 L 10 10 L 22 10 L 22 6 L 25 6 L 25 27 L 7 27 L 7 6 z M 9 13 L 9 15 L 11 15 L 11 13 L 9 13 z M 13 13 L 13 15 L 23 15 L 23 13 L 13 13 z M 9 17 L 9 19 L 11 19 L 11 17 L 9 17 z M 13 17 L 13 19 L 23 19 L 23 17 L 13 17 z M 9 21 L 9 23 L 11 23 L 11 21 L 9 21 z M 13 21 L 13 23 L 23 23 L 23 21 L 13 21 z"
            },
            child: []
        }]
    })(n)
}

function y5(n) {
    return ct({
        attr: {
            viewBox: "0 0 32 32"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M 16 5 C 12.1 5 9 8.1 9 12 C 9 14.4375 10.209961 16.561523 12.070312 17.8125 C 8.5100119 19.34733 6 22.893578 6 27 L 8 27 C 8 22.6 11.6 19 16 19 C 19.9 19 23 15.9 23 12 C 23 8.1 19.9 5 16 5 z M 16 7 C 18.8 7 21 9.2 21 12 C 21 14.8 18.8 17 16 17 C 13.2 17 11 14.8 11 12 C 11 9.2 13.2 7 16 7 z M 21 19 C 19.9 19 19 19.9 19 21 L 19 25.400391 L 25 31.400391 C 25.4 31.800391 25.900391 32 26.400391 32 C 26.900391 32 27.400781 31.800391 27.800781 31.400391 L 31.400391 27.800781 C 31.800391 27.400781 32 26.900391 32 26.400391 C 32 25.900391 31.800391 25.4 31.400391 25 L 25.400391 19 L 21 19 z M 21 21 L 24.599609 21 L 30 26.400391 L 26.400391 30 L 21 24.599609 L 21 21 z M 23 22 A 1 1 0 0 0 23 24 A 1 1 0 0 0 23 22 z"
            },
            child: []
        }]
    })(n)
}
const v0 = "footer_crm";

function S5({
    viewMidia: n,
    setViewMidia: u,
    userID: i
}) {
    const {
        variaveisWA: d
    } = $i(), {
        language: g
    } = Ce(), {
        menuLateral: x,
        setMenuLateral: p
    } = Qr(), {
        getCard: w
    } = hn(), {
        open: M
    } = Ka(), {
        open: T
    } = Wt(), {
        assinatura: R,
        setAssinatura: A
    } = zg(), [z, O] = W.useState(""), L = W.useRef(null);
    W.useEffect(() => {
        const he = document.getElementById("footer_crm");
        he && he.scrollHeight > 32 && he.scrollHeight < 120 && (he.style.height = "auto", he.style.height = `${he.scrollHeight + 6}px`), he && he.style && z.length === 0 && (he.style.height = "32px")
    }, [z]), W.useEffect(() => {
        const he = xe => {
            xe.key === "Enter" && !xe.shiftKey && (xe.preventDefault(), ce())
        },
            Se = document.getElementById("footer_crm");
        return Se && Se?.addEventListener("keydown", he), () => {
            Se && Se?.removeEventListener("keydown", he)
        }
    }, [z, n]);
    const G = () => {
        M(s.jsx(b5, {
            setViewMidia: u,
            userID: i
        }), {
            placement: "top"
        }, L.current, 10)
    },
        Z = he => R.active && R.name.length !== 0 ? he = `*_${R.name}:_*
${he}` : he,
        ce = async () => {
            if (R.active && await rl("assinatura") === !0) {
                A("active", !1);
                return
            }
            switch (n.type) {
                case "image/*":
                    Ge.Chat("sendImage", {
                        id: i,
                        msg: Z(z),
                        base64: await If(n.content)
                    });
                    break;
                case "video/*":
                    Ge.Chat("sendVideo", {
                        id: i,
                        msg: Z(z),
                        base64: await If(n.content)
                    });
                    break;
                default:
                    z.length !== 0 && Ge.Chat("sendTxt", {
                        id: i,
                        msg: Z(z)
                    });
                    break
            }
            u({
                open: !1,
                type: "",
                content: ""
            }), O(""), vy(v0, "")
        }, re = () => {
            O(he => he + " " + w(i).name)
        };
    return s.jsx("div", {
        className: "relative h-[55px] z-[2]",
        children: s.jsx("div", {
            className: "absolute p-3  w-full bg-[var(--rich-text-panel-background)] bottom-0 shadow-lg " + (x.children.length !== 0 ? "rounded-es-lg" : "rounded-b-lg"),
            children: s.jsxs("div", {
                className: "flex items-center gap-3",
                children: [s.jsx("div", {
                    className: "flex-auto pulse cursor-pointer",
                    ref: L,
                    onClick: G,
                    children: s.jsx(Ix, {
                        className: "h-7 w-7 text-[var(--icon)]"
                    })
                }), s.jsx("div", {
                    className: d.confgIcone + "cursor-pointer lg:tooltip",
                    "data-tip": g.menuFooter_colarNome,
                    children: s.jsx("div", {
                        className: "_3ndVb fbgy3m38 ft2m32mm oq31bsqd nu34rnf1",
                        children: s.jsx("div", {
                            className: "bo8jc6qi p4t1lx4y brjalhku",
                            onClick: re,
                            children: s.jsx("span", {
                                children: s.jsx(y5, {
                                    className: "h-6 w-6 text-[var(--icon)]",
                                    strokeWidth: 1
                                })
                            })
                        })
                    })
                }), s.jsx("div", {
                    className: d.confgIcone + "cursor-pointer lg:tooltip",
                    "data-tip": g.menuFooter_Ass,
                    children: s.jsx("div", {
                        onClick: () => T(s.jsx(e1, {})),
                        className: "_3ndVb fbgy3m38 ft2m32mm oq31bsqd nu34rnf1",
                        children: s.jsx("div", {
                            className: "bo8jc6qi p4t1lx4y brjalhku",
                            children: s.jsx("span", {
                                children: s.jsx(Zx, {
                                    className: "text-[var(--icon)]",
                                    style: R.active ? {
                                        color: "var(--wds-teal-500)",
                                        width: "22px",
                                        height: "22px"
                                    } : {
                                        width: "22px",
                                        height: "22px"
                                    }
                                })
                            })
                        })
                    })
                }), s.jsx("div", {
                    className: "w-full",
                    children: s.jsx(Dg, {
                        id: v0,
                        type: "textarea",
                        position: "top",
                        placeholder: "Digite uma mensagem",
                        text: z,
                        setText: he => O(he),
                        heightCamp: 32,
                        heightTextArea: 390
                    })
                }), s.jsxs("div", {
                    className: "flex-auto flex gap-3",
                    children: [s.jsx("span", {
                        className: "pulse cursor-pointer",
                        children: s.jsx(x5, {
                            className: "h-6 w-6 text-[var(--icon)]",
                            onClick: ce
                        })
                    }), s.jsx("span", {
                        className: "pulse cursor-pointer",
                        onClick: () => p({
                            ...x,
                            children: "RespostaRapida"
                        }),
                        children: x.children === "RespostaRapida" || x.children === "Categoria" ? s.jsx(Qx, {
                            className: "w-[25px] h-[25px] text-[var(--primaria)]"
                        }) : s.jsx(_g, {
                            className: "w-[25px] h-[25px] text-[var(--icon)]"
                        })
                    })]
                })]
            })
        })
    })
}
const b0 = n => Symbol.iterator in n,
    x0 = n => "entries" in n,
    p0 = (n, u) => {
        const i = n instanceof Map ? n : new Map(n.entries()),
            d = u instanceof Map ? u : new Map(u.entries());
        if (i.size !== d.size) return !1;
        for (const [g, x] of i)
            if (!d.has(g) || !Object.is(x, d.get(g))) return !1;
        return !0
    },
    w5 = (n, u) => {
        const i = n[Symbol.iterator](),
            d = u[Symbol.iterator]();
        let g = i.next(),
            x = d.next();
        for (; !g.done && !x.done;) {
            if (!Object.is(g.value, x.value)) return !1;
            g = i.next(), x = d.next()
        }
        return !!g.done && !!x.done
    };

function C5(n, u) {
    return Object.is(n, u) ? !0 : typeof n != "object" || n === null || typeof u != "object" || u === null || Object.getPrototypeOf(n) !== Object.getPrototypeOf(u) ? !1 : b0(n) && b0(u) ? x0(n) && x0(u) ? p0(n, u) : w5(n, u) : p0({
        entries: () => Object.entries(n)
    }, {
        entries: () => Object.entries(u)
    })
}

function N5(n) {
    const u = yx.useRef(void 0);
    return i => {
        const d = n(i);
        return C5(u.current, d) ? u.current : u.current = d
    }
}

function T5(n) {
    return ct({
        attr: {
            viewBox: "0 0 512 512"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"
            },
            child: []
        }]
    })(n)
}

function E5(n) {
    return ct({
        attr: {
            viewBox: "0 0 512 512"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M256 217.9L383 345c9.4 9.4 24.6 9.4 33.9 0 9.4-9.4 9.3-24.6 0-34L273 167c-9.1-9.1-23.7-9.3-33.1-.7L95 310.9c-4.7 4.7-7 10.9-7 17s2.3 12.3 7 17c9.4 9.4 24.6 9.4 33.9 0l127.1-127z"
            },
            child: []
        }]
    })(n)
}

function Vg(n) {
    return ct({
        attr: {
            viewBox: "0 0 512 512"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"
            },
            child: []
        }]
    })(n)
}

function y0({
    children: n
}) {
    const {
        plugin_page: u
    } = We(), {
        icons_cor_primaria: i
    } = Ng(N5(T => ({
        icons_cor_primaria: T.icons_cor_primaria
    }))), {
        menuLateral: d,
        setMenuLateral: g
    } = Qr(), x = () => {
        parseInt(d.width) >= 480 ? pe({
            type: "Info",
            message: "Tamanho maximo alcançado",
            position: "top-right"
        }) : g({
            ...d,
            width: (parseInt(d.width) + 10).toString()
        })
    }, p = () => {
        parseInt(d.width) <= 260 ? pe({
            type: "Info",
            message: "Tamanho mínimo alcançado",
            position: "top-right"
        }) : g({
            ...d,
            width: (parseInt(d.width) - 10).toString()
        })
    }, w = [{
        id: 2,
        ico: s.jsx(o1, {
            className: i ? "text-[var(--primaria)]" : "text-[var(--panel-header-icon)]",
            size: 20
        }),
        name: "perfilContato",
        funcao: () => g({
            ...d,
            children: "perfilContato"
        })
    }, {
        id: 1,
        ico: s.jsx(_g, {
            className: i ? "text-[var(--primaria)]" : "text-[var(--panel-header-icon)]",
            size: 20
        }),
        name: "RespostaRapida",
        funcao: () => g({
            ...d,
            children: "RespostaRapida"
        })
    }, {
        id: 3,
        ico: s.jsx(Px, {
            className: i ? "text-[var(--primaria)]" : "text-[var(--panel-header-icon)]",
            size: 20
        }),
        name: void 0,
        funcao: () => x()
    }, {
        id: 5,
        ico: s.jsx(Wx, {
            className: i ? "text-[var(--primaria)]" : "text-[var(--panel-header-icon)]",
            size: 20
        }),
        name: void 0,
        funcao: () => p()
    }, {
        id: 7,
        ico: s.jsx(Vg, {
            className: i ? "text-[var(--primaria)]" : "text-[var(--panel-header-icon)]",
            size: 20
        }),
        name: void 0,
        funcao: () => g({
            ...d,
            children: ""
        })
    }], M = s.jsx("div", {
        className: "h-[60px] flex justify-around items-center bg-[var(--panel-header-background)] " + (u ? "rounded-se-lg" : ""),
        children: w.map(T => {
            if (!(u && T.name === "centralDeAgendamentos")) return s.jsx("div", {
                className: "pulse cursor-pointer" + (d.children === T.name ? " bg-[var(--menu-bar-item-background-active)] p-2 rounded-full" : ""),
                onClick: T.funcao,
                children: s.jsx("span", {
                    children: T.ico
                })
            }, T.id)
        })
    });
    return s.jsxs("div", {
        className: "border-[var(--conversation-header-border)] border-solid border-l shadow-sm ",
        style: {
            width: `${d.width}px`,
            height: u ? "calc(90vh + 5px)" : "calc(100vh - 120px)"
        },
        children: [M, s.jsx("div", {
            className: "bg-[var(--background-default)] flex flex-col gap-2 " + (u ? "rounded-ee-lg shadow-lg" : ""),
            style: {
                height: u ? "calc(90vh - 55px)" : "calc(100vh - 120px)"
            },
            children: n
        })]
    })
}

function M5({
    setPesquisar: n,
    plugin_page: u
}) {
    const {
        variaveisWA: i
    } = $i(), {
        language: d
    } = Ce(), {
        close: g
    } = Ka(), x = w => {
        g(), n(w)
    };
    return s.jsx("div", {
        style: {
            position: "initial"
        },
        children: s.jsx("ul", {
            className: "overflow-hidden flex " + i.modalOptions.content2,
            children: s.jsx("div", {
                className: i.modalOptions.content3,
                children: s.jsxs("div", {
                    className: i.listagem.content1,
                    children: [s.jsx("div", {
                        children: s.jsx(il, {
                            children: d.filter
                        })
                    }), s.jsx(Nn, {
                        content: d.txt,
                        icon: s.jsx(Jx, {
                            className: "w-5 h-5 text-[var(--panel-header-icon)]"
                        }),
                        setFunction: () => x("txt"),
                        stroke: "1"
                    }), s.jsx(Nn, {
                        content: d.image,
                        icon: s.jsx(U0, {
                            className: "w-5 h-5 text-[var(--panel-header-icon)]"
                        }),
                        setFunction: () => {
                            x("image")
                        },
                        stroke: "1"
                    }), s.jsx(Nn, {
                        content: d.video,
                        icon: s.jsx(x1, {
                            className: "w-5 h-5 text-[var(--panel-header-icon)]"
                        }),
                        setFunction: () => {
                            x("video")
                        },
                        stroke: "1"
                    }), s.jsx(Nn, {
                        content: d.audio,
                        icon: s.jsx(B0, {
                            className: "w-5 h-5 text-[var(--panel-header-icon)]"
                        }),
                        setFunction: () => x("audio"),
                        stroke: "1"
                    }), s.jsx(Nn, {
                        content: d.doc,
                        icon: s.jsx(H0, {
                            className: "w-5 h-5 text-[var(--panel-header-icon)]"
                        }),
                        setFunction: () => {
                            x("doc")
                        },
                        stroke: "1"
                    }), s.jsx(Nn, {
                        content: d.contact,
                        icon: s.jsx(th, {
                            className: "w-6 h-6 text-[var(--panel-header-icon)]"
                        }),
                        setFunction: () => x("contact"),
                        stroke: "1"
                    }), s.jsx(Nn, {
                        content: d.script,
                        icon: s.jsx(Kx, {
                            className: "w-5 h-5 text-[var(--panel-header-icon)]"
                        }),
                        setFunction: () => x("script"),
                        stroke: "2"
                    })]
                })
            })
        })
    })
}

function A5({
    pesquisar: n,
    setPesquisar: u,
    setCreate: i,
    envioEmMassa: d
}) {
    const {
        plugin_page: g
    } = We(), {
        language: x
    } = Ce(), {
        open: p
    } = Ka();
    W.useRef(null);
    const w = W.useRef(null);
    return s.jsxs("div", {
        className: "flex justify-center gap-2 pt-2 px-2",
        children: [s.jsxs("div", {
            className: "bg-[var(--search-input-background)] flex items-center px-2 w-full rounded-lg",
            children: [s.jsx("span", {
                className: "pr-2",
                children: s.jsx(F0, {
                    className: "w-4 h-4 text-[var(--panel-header-icon)]"
                })
            }), s.jsx("span", {
                className: "w-full",
                children: s.jsx("input", {
                    type: "text",
                    placeholder: x.searchQuickReply,
                    className: "bg-[var(--search-input-background)] text-sm placeholder:!text-sm w-full py-[5px]",
                    value: n,
                    onChange: T => u(T.target.value)
                })
            }), n.length !== 0 && s.jsx("span", {
                className: "pulse cursor-pointer pl-1",
                onClick: () => u(""),
                children: s.jsx(G0, {
                    className: "w-5 h-5 text-[var(--panel-header-icon)]"
                })
            })]
        }), s.jsx("span", {
            className: "cursor-pointer pulse lg:tooltip lg:tooltip-left m-auto",
            "data-tip": x.filter,
            onClick: () => p(s.jsx(M5, {
                setPesquisar: u,
                plugin_page: g
            }), {
                placement: "bottom"
            }, w.current, 10),
            ref: w,
            children: s.jsx("svg", {
                className: "w-5 h-5 text-[var(--icon-lighter)]",
                viewBox: "0 0 24 24",
                height: "20",
                width: "20",
                preserveAspectRatio: "xMidYMid meet",
                version: "1.1",
                x: "0px",
                y: "0px",
                "enable-background": "new 0 0 24 24",
                children: s.jsx("path", {
                    fill: "currentColor",
                    d: "M10,18.1h4v-2h-4V18.1z M3,6.1v2h18v-2H3z M6,13.1h12v-2H6V13.1z"
                })
            })
        })]
    })
}
const R5 = ({
    setCreate: n,
    cat: u,
    plugin_page: i
}) => {
    const {
        language: d
    } = Ce(), {
        addCategory: g,
        editCategory: x
    } = pi(), [p, w] = W.useState(!1), [M, T] = W.useState(u ? u.name : ""), [R, A] = W.useState(u ? u.hexColor : Cg()), z = W.useRef(null), O = W.useRef(null);
    W.useEffect(() => {
        const ce = re => {
            z.current && !z.current.contains(re.target) && !O.current.contains(re.target) && !document.querySelector("#pane-side ._21S-L span")?.contains(re.target) && w(!1)
        };
        return p && document.addEventListener("click", ce), () => {
            document.removeEventListener("click", ce)
        }
    }, [p]);
    const L = () => {
        if (M.length < 3) {
            pe({
                type: "Error",
                message: d.insertNameAtLeast3Chars,
                position: "top-right"
            });
            return
        }
        const ce = {
            id: Ir(),
            name: M,
            hexColor: R
        };
        g(ce), n({
            open: !1,
            cat: void 0
        }), pe({
            type: "Success",
            message: d.categoryCreated,
            position: "top-right"
        })
    },
        G = () => {
            if (M.length < 3) {
                pe({
                    type: "Error",
                    message: d.insertNameAtLeast3Chars,
                    position: "top-right"
                });
                return
            }
            x({
                id: u.id,
                hexColor: R,
                name: M
            }), n({
                open: !1,
                cat: void 0
            }), pe({
                type: "Success",
                message: d.categoryEdited,
                position: "top-right"
            })
        };
    return s.jsxs(s.Fragment, {
        children: [s.jsxs("div", {
            className: "flex justify-center",
            children: [s.jsx("div", {
                children: s.jsx("span", {
                    className: "pulse cursor-pointer lg:tooltip lg:tooltip-right !absolute left-1",
                    "data-tip": d.back,
                    onClick: () => n(!1),
                    children: s.jsx(Y0, {
                        className: "h-6 w-6 text-[var(--primaria)]"
                    })
                })
            }), s.jsx(il, {
                children: u ? d.editCategory : d.createCategory
            })]
        }), s.jsxs("div", {
            className: "grid gap-4 pt-2 px-2",
            children: [s.jsx(Dg, {
                id: "cat_crm",
                titulo: d.insertName,
                type: "input",
                position: "bottom-end",
                placeholder: d.insertCategoryName,
                text: M,
                setText: T,
                heightTextArea: 290
            }), s.jsxs("div", {
                className: "flex justify-between items-center pt-3",
                children: [s.jsx("h2", {
                    children: d.pickColor
                }), s.jsx("span", {
                    className: "pulse cursor-pointer border border-black rounded border-solid",
                    ref: O,
                    onClick: () => w(!p),
                    children: s.jsx($x, {
                        className: "h-8 w-8",
                        style: {
                            color: R
                        }
                    })
                })]
            })]
        }), s.jsx("div", {
            className: "flex justify-center",
            children: u ? s.jsx(ra, {
                name: d.saveEdit,
                funcao: G
            }) : s.jsx(ra, {
                name: d.save,
                funcao: L
            })
        }), p && s.jsx("div", {
            className: "absolute",
            children: s.jsx("div", {
                className: "relative",
                ref: z,
                children: s.jsx(J0, {
                    disableAlpha: !0,
                    color: R,
                    onChange: ce => A(ce.hex),
                    className: "p-2 rounded"
                })
            })
        })]
    })
},
    _5 = ({
        cat: n,
        snapshot: u,
        remove: i,
        editar: d
    }) => s.jsx("li", {
        children: s.jsxs("div", {
            className: `
        hover:bg-[var(--background-default-active)]
        flex 
        px-1
        py-1
        gap-1 
        animate__animated 
        animate__zoomIn 
        cursor-pointer rounded 
        border-b
        border-solid
        border-[var(--border-list)]
    ` + (u.isDragging && "bg-[var(--background-default-active)]"),
            children: [s.jsx("span", {
                className: "w-5",
                children: s.jsx(X0, {
                    className: "w-5 h-5",
                    style: {
                        color: n.hexColor
                    }
                })
            }), s.jsx("span", {
                className: "flex-auto overflow-hidden text-ellipsis whitespace-nowrap",
                children: n.name
            }), s.jsxs("span", {
                className: "flex w-[50px] justify-between",
                children: [s.jsx("span", {
                    className: "pulse",
                    onClick: () => d(n),
                    children: s.jsx(Yo, {
                        className: "w-5 h-5 text-[var(--panel-header-icon)]"
                    })
                }), s.jsx("span", {
                    className: "pulse",
                    onClick: () => i(n),
                    children: s.jsx(js, {
                        className: "w-5 h-5 text-[var(--panel-header-icon)]"
                    })
                })]
            })]
        })
    });

function O5({
    setCreateMain: n,
    plugin_page: u
}) {
    const {
        language: i
    } = Ce(), {
        categories: d,
        sortCategories: g,
        removeCategory: x
    } = pi(), {
        quickReplies: p
    } = Pc(), [w, M] = W.useState(d), [T, R] = W.useState({
        open: !1,
        cat: void 0
    }), [A, z] = W.useState("");
    W.useEffect(() => {
        let he = [];
        d.forEach(Se => {
            Se.name?.replace(new RegExp("\\p{Emoji}", "gu"), "").toUpperCase().includes(A.toUpperCase()) && he.push(Se)
        }), M(he)
    }, [d, A]);
    const O = () => {
        R({
            open: !0,
            cat: void 0
        })
    },
        L = he => {
            qf({
                content: s.jsxs(s.Fragment, {
                    children: [i.removeCategory, s.jsx("strong", {
                        children: he.name
                    }), "?"]
                }),
                confirmText: i.confirm,
                submit: () => { }
            }), x(he.id);
            const Se = p.map(xe => (xe.categoria === he.id && (xe.categoria = ""), xe));
            Pc.setState({
                quickReplies: Se
            }), pe({
                type: "Success",
                message: i.deletedCategory,
                position: "top-right"
            })
        },
        G = async he => {
            R({
                open: !0,
                cat: he
            })
        }, Z = () => {
            n({
                view: "list",
                model: "",
                type: "",
                input: "",
                content: void 0,
                script: []
            })
        }, ce = s.jsx("div", {
            className: "p-4 border-dotted border rounded-lg text-center mx-2",
            children: i.noneCategoryFound
        }), re = () => {
            const he = Se => {
                Se.destination && (g(Se), z(""))
            };
            return s.jsx(Ep, {
                onDragEnd: he,
                children: s.jsx(Mp, {
                    droppableId: "categoria",
                    direction: "vertical",
                    children: Se => s.jsxs("div", {
                        className: "flex flex-col border-t border-solid border-[var(--border-list)] px-2 overflow-auto",
                        ...Se.droppableProps,
                        ref: Se.innerRef,
                        style: {
                            height: "calc(100vh - 222px)"
                        },
                        children: [w.map((xe, ft) => s.jsx(Ap, {
                            draggableId: xe.id,
                            index: ft,
                            children: (_e, De) => s.jsx("div", {
                                ref: _e.innerRef,
                                ..._e.draggableProps,
                                ..._e.dragHandleProps,
                                children: s.jsx(_5, {
                                    cat: xe,
                                    snapshot: De,
                                    remove: L,
                                    editar: G
                                })
                            })
                        }, ft)), Se.placeholder]
                    })
                })
            })
        }, ve = s.jsxs(s.Fragment, {
            children: [s.jsxs("div", {
                className: "grid gap-2 p-2",
                children: [s.jsxs("div", {
                    className: "flex gap-1 items-center",
                    children: [s.jsx("span", {
                        className: "pulse cursor-pointer lg:tooltip lg:tooltip-right",
                        "data-tip": i.back,
                        onClick: Z,
                        children: s.jsx(Y0, {
                            className: "h-6 w-6 text-[var(--primaria)]"
                        })
                    }), s.jsx(il, {
                        children: i.category
                    }), s.jsx("span", {
                        className: "pulse cursor-pointer lg:tooltip lg:tooltip-bottom",
                        "data-tip": i.categoryPopUp,
                        children: s.jsx(Mu, {
                            className: "h-4 w-4"
                        })
                    })]
                }), s.jsxs("div", {
                    className: "flex justify-center gap-2",
                    children: [s.jsxs("div", {
                        className: "bg-[var(--search-input-background)] flex items-center px-2 w-full rounded-lg",
                        children: [s.jsx("span", {
                            className: "pr-2",
                            children: s.jsx(F0, {
                                className: "w-4 h-4 text-[var(--panel-header-icon)]"
                            })
                        }), s.jsx("span", {
                            className: "w-full",
                            children: s.jsx("input", {
                                type: "text",
                                placeholder: i.searchCategory,
                                className: "bg-[var(--search-input-background)] text-sm placeholder:!text-sm w-full",
                                value: A,
                                onChange: he => z(he.target.value)
                            })
                        }), A.length !== 0 && s.jsx("span", {
                            className: "pulse cursor-pointer pl-1",
                            onClick: () => z(""),
                            children: s.jsx(G0, {
                                className: "w-5 h-5 text-[var(--panel-header-icon)]"
                            })
                        })]
                    }), s.jsx("span", {
                        className: "cursor-pointer pulse lg:tooltip lg:tooltip-left",
                        "data-tip": i.createCategory,
                        onClick: O,
                        children: s.jsx(qx, {
                            className: "!w-[30px] !h-[30px] text-[var(--primaria)]"
                        })
                    })]
                })]
            }), s.jsx("div", {
                className: "pt-3",
                children: s.jsx("ul", {
                    children: w.length === 0 ? ce : re()
                })
            })]
        });
    return T.open ? s.jsx(R5, {
        setCreate: R,
        cat: T.cat,
        plugin_page: u
    }) : ve
}

function z5(n) {
    return ct({
        attr: {
            fill: "none",
            viewBox: "0 0 24 24",
            strokeWidth: "1.5",
            stroke: "currentColor",
            "aria-hidden": "true"
        },
        child: [{
            tag: "path",
            attr: {
                strokeLinecap: "round",
                strokeLinejoin: "round",
                d: "M10.34 15.84c-.688-.06-1.386-.09-2.09-.09H7.5a4.5 4.5 0 1 1 0-9h.75c.704 0 1.402-.03 2.09-.09m0 9.18c.253.962.584 1.892.985 2.783.247.55.06 1.21-.463 1.511l-.657.38c-.551.318-1.26.117-1.527-.461a20.845 20.845 0 0 1-1.44-4.282m3.102.069a18.03 18.03 0 0 1-.59-4.59c0-1.586.205-3.124.59-4.59m0 9.18a23.848 23.848 0 0 1 8.835 2.535M10.34 6.66a23.847 23.847 0 0 0 8.835-2.535m0 0A23.74 23.74 0 0 0 18.795 3m.38 1.125a23.91 23.91 0 0 1 1.014 5.395m-1.014 8.855c-.118.38-.245.754-.38 1.125m.38-1.125a23.91 23.91 0 0 0 1.014-5.395m0-3.46c.495.413.811 1.035.811 1.73 0 .695-.316 1.317-.811 1.73m0-3.46a24.347 24.347 0 0 1 0 3.46"
            },
            child: []
        }]
    })(n)
}

function j5(n) {
    return ct({
        attr: {
            fill: "none",
            viewBox: "0 0 24 24",
            strokeWidth: "1.5",
            stroke: "currentColor",
            "aria-hidden": "true"
        },
        child: [{
            tag: "path",
            attr: {
                strokeLinecap: "round",
                strokeLinejoin: "round",
                d: "M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5"
            },
            child: []
        }]
    })(n)
}
const D5 = 50;

function eb({
    res: n,
    snapshot: u,
    index: i,
    hexColor: d,
    CatID: g,
    setCreate: x
}) {
    u || (u = {
        isDragging: !1
    });
    const {
        language: p
    } = Ce(), {
        userId: w
    } = Qr(), {
        openRendertype: M
    } = Wt(), {
        open: T
    } = Ka(), R = W.useRef([]);
    W.useRef(null);
    const A = async (z, O) => {
        if (O.stopPropagation(), await rl("respostasRapidas") === !0) {
            M("user_free");
            return
        }
        Mt("sendAction-Res", {
            userID: w,
            res: z
        })
    };
    return s.jsxs("div", {
        ref: z => R.current[i] = z,
        className: tb + (g.length === 0 ? "hover:bg-[var(--background-default-active)] " : "") + (u.isDragging && "bg-[var(--background-default-active)]"),
        onMouseEnter: () => g.length !== 0 && R.current[i].setAttribute("style", "background-color:" + d + 60),
        onMouseLeave: () => g.length !== 0 && R.current[i].removeAttribute("style"),
        onClick: z => A(n, z),
        children: [s.jsx("span", {
            className: "w-6 pr-1",
            children: s.jsx(Mg, {
                type: n.type
            })
        }), n.sizeInMB > D5 && s.jsx("span", {
            className: "w-6 pr-1 pulse cursor-pointer lg:tooltip lg:tooltip-right",
            "data-tip": `${n.sizeInMB}MB`,
            children: s.jsx(b1, {
                className: "h-4 w-4 text-red-500"
            })
        }), s.jsx("span", {
            className: "flex-auto overflow-hidden text-ellipsis whitespace-nowrap w-3",
            children: n.titulo
        }), s.jsx("span", {
            className: "pl-1 flex w-[100px] justify-end gap-2 items-center",
            children: s.jsx("span", {
                className: "pulse",
                onClick: z => A(n, z),
                children: s.jsx(j5, {
                    className: "w-4 h-4 text-[var(--panel-header-icon)]"
                })
            })
        })]
    })
}
const tb = `
  flex 
  px-1
  py-1
  cursor-pointer rounded 
  border-b
  border-solid
  border-[var(--border-list)]
  items-center
`;

function k5({
    setCreate: n
}) {
    const {
        quickReplies: u
    } = Pc(), {
        categories: i,
        sortCategories: d
    } = pi(), {
        language: g
    } = Ce(), {
        openCat: x,
        setOpenCat: p
    } = Qr(), w = ({
        cat: R,
        snapshot: A
    }) => {
        let z = x.find(L => L.id === R.id);
        z || (z = {
            id: R.id,
            active: !1
        });
        const O = () => {
            z.active = !z.active;
            let L = x.findIndex(G => G.id === R.id);
            if (L !== -1) {
                const G = [...x];
                G[L] = z, p(G)
            } else {
                const G = [...x, z];
                p(G)
            }
        };
        return s.jsxs("div", {
            className: z.active && "mb-1 rounded",
            style: z.active ? {
                backgroundColor: `${R.hexColor}30`
            } : void 0,
            children: [s.jsxs("div", {
                className: tb + (!z.active && "hover:bg-[var(--background-default-active)] ") + (A.isDragging && "bg-[var(--background-default-active)] ") + (z.active ? " !border-b-0" : ""),
                onClick: O,
                children: [s.jsx("span", {
                    className: "w-5 mr-1",
                    children: s.jsx(X0, {
                        className: "w-4 h-4",
                        style: {
                            color: R.hexColor
                        }
                    })
                }), s.jsx("span", {
                    className: "flex-auto overflow-hidden text-ellipsis whitespace-nowrap font-medium text-base",
                    children: R.name
                }), s.jsx("span", {
                    className: "flex w-[30px] justify-end",
                    children: z.active ? s.jsx(ep, {
                        className: "w-5 h-5 text-[var(--panel-header-icon)]"
                    }) : s.jsx(tp, {
                        className: "w-5 h-5 text-[var(--panel-header-icon)]"
                    })
                })]
            }), z.active && s.jsx("div", {
                className: "pl-5",
                children: s.jsx(M, {
                    CatID: R.id,
                    hexColor: R.hexColor
                })
            })]
        })
    }, M = ({
        CatID: R,
        hexColor: A
    }) => s.jsx("div", {
        className: "flex flex-col border-solid border-[var(--border-list)] overflow-y-auto overflow-x-hidden min-h-[30px]",
        children: u.map((z, O) => {
            if (z.categoria === R || R === "" && !z.categoria) return s.jsx("div", {
                children: s.jsx(eb, {
                    res: z,
                    snapshot: {
                        isDragging: !1
                    },
                    index: O,
                    hexColor: A,
                    CatID: R,
                    setCreate: n
                })
            })
        })
    }), T = s.jsx("div", {
        className: "px-2 overflow-y-auto overflow-x-hidden",
        children: s.jsx("div", {
            children: s.jsxs("div", {
                className: "flex flex-col border-t border-solid border-[var(--border-list)] overflow-auto",
                children: [i.map((R, A) => s.jsx("div", {
                    children: s.jsx(w, {
                        cat: R,
                        snapshot: {
                            isDragging: !1
                        }
                    })
                })), s.jsx("div", {
                    className: "pl-5",
                    children: s.jsx(M, {
                        CatID: "",
                        hexColor: ""
                    })
                })]
            })
        })
    });
    return u.length > 0 ? T : s.jsx("div", {
        className: "p-4 border-dotted border rounded-lg text-center mx-2",
        children: g.noQuickReply
    })
}

function L5() {
    const {
        plugin_page: n
    } = We(), {
        quickReplies: u
    } = Pc(), {
        language: i
    } = Ce(), [d, g] = W.useState({
        view: "list",
        model: "",
        type: "",
        input: "",
        content: void 0,
        script: []
    }), [x, p] = W.useState(""), [w, M] = W.useState([]);
    W.useEffect(() => {
        let A = [];
        u.forEach(z => {
            (z.titulo?.toUpperCase().includes(x.toUpperCase()) || z.type?.toUpperCase().includes(x.toUpperCase())) && A.push(z)
        }), M(A)
    }, [x, u]);
    const T = s.jsxs(s.Fragment, {
        children: [s.jsx(A5, {
            pesquisar: x,
            setPesquisar: p,
            setCreate: g
        }), s.jsx("div", {
            id: "listRes",
            className: "overflow-auto",
            children: x.length === 0 ? s.jsx(k5, {
                setCreate: g
            }) : s.jsx("div", {
                className: "px-2 overflow-auto",
                style: {
                    maxHeight: "calc(100vh - 165px)"
                },
                children: w.length !== 0 ? w.map((A, z) => s.jsx(eb, {
                    res: A,
                    index: z,
                    CatID: "",
                    setCreate: g
                })) : s.jsx("div", {
                    className: "p-4 border-dotted border rounded-lg text-center mx-2",
                    children: i.noQuickReply
                })
            })
        })]
    });
    let R;
    switch (d.view) {
        case "list":
            R = T;
            break;
        case "create":
            R = s.jsx(s.Fragment, {});
            break;
        case "Categoria":
            R = s.jsx(O5, {
                setCreateMain: g,
                plugin_page: n
            });
            break
    }
    return R
}

function U5() {
    const {
        activeUser: n,
        activePerfil: u
    } = Tn();
    return s.jsx("div", {
        className: "avatar m-auto",
        children: s.jsx("div", {
            className: "w-24 rounded-full ring-offset-base-100 ring-offset-2",
            children: n.picture !== "undefined" ? s.jsx("img", {
                src: n.picture
            }) : u.userID.length < 16 ? s.jsx("div", {
                className: "x10l6tqk x13vifvy x17qophe x78zum5 x6s0dn4 xl56j7k xh8yej3 x5yr21d x705qin xsp8fsz",
                children: s.jsx("span", {
                    "data-icon": "default-user",
                    children: s.jsx(Hd, {})
                })
            }) : s.jsx("div", {
                className: "x10l6tqk x13vifvy x17qophe x78zum5 x6s0dn4 xl56j7k xh8yej3 x5yr21d x705qin xsp8fsz",
                children: s.jsx("span", {
                    "data-icon": "default-group",
                    children: s.jsx(Xg, {})
                })
            })
        })
    })
}

function B5() {
    const {
        language: n
    } = Ce(), {
        activeUser: u,
        activePerfil: i
    } = Tn();
    return s.jsxs("div", {
        className: "grid gap-2 p-2 mb-[10px] h3bz2vby bg-[var(--drawer-section-background)]",
        children: [s.jsx(U5, {}), s.jsx("span", {
            className: "m-auto",
            children: i.userID.length > 16 ? n.group : i.userID
        }), s.jsx("div", {
            className: "flex m-auto",
            children: u.labels.map((g, x) => s.jsx("span", {
                style: x !== 0 ? {
                    marginLeft: "-1rem"
                } : null,
                children: s.jsx(eh, {
                    className: "w-6 h-6",
                    style: {
                        color: g.hexColor
                    }
                })
            }, x))
        })]
    })
}
var lg, S0;

function H5() {
    return S0 || (S0 = 1, lg = {
        aa: {
            name: "Afar",
            nativeName: "Afaraf"
        },
        ab: {
            name: "Abkhaz",
            nativeName: "аҧсуа бызшәа"
        },
        ae: {
            name: "Avestan",
            nativeName: "avesta"
        },
        af: {
            name: "Afrikaans",
            nativeName: "Afrikaans"
        },
        ak: {
            name: "Akan",
            nativeName: "Akan"
        },
        am: {
            name: "Amharic",
            nativeName: "አማርኛ"
        },
        an: {
            name: "Aragonese",
            nativeName: "aragonés"
        },
        ar: {
            name: "Arabic",
            nativeName: "العربية"
        },
        as: {
            name: "Assamese",
            nativeName: "অসমীয়া"
        },
        av: {
            name: "Avaric",
            nativeName: "авар мацӀ"
        },
        ay: {
            name: "Aymara",
            nativeName: "aymar aru"
        },
        az: {
            name: "Azerbaijani",
            nativeName: "azərbaycan dili"
        },
        ba: {
            name: "Bashkir",
            nativeName: "башҡорт теле"
        },
        be: {
            name: "Belarusian",
            nativeName: "беларуская мова"
        },
        bg: {
            name: "Bulgarian",
            nativeName: "български език"
        },
        bi: {
            name: "Bislama",
            nativeName: "Bislama"
        },
        bm: {
            name: "Bambara",
            nativeName: "bamanankan"
        },
        bn: {
            name: "Bengali",
            nativeName: "বাংলা"
        },
        bo: {
            name: "Tibetan",
            nativeName: "བོད་ཡིག"
        },
        br: {
            name: "Breton",
            nativeName: "brezhoneg"
        },
        bs: {
            name: "Bosnian",
            nativeName: "bosanski jezik"
        },
        ca: {
            name: "Catalan",
            nativeName: "Català"
        },
        ce: {
            name: "Chechen",
            nativeName: "нохчийн мотт"
        },
        ch: {
            name: "Chamorro",
            nativeName: "Chamoru"
        },
        co: {
            name: "Corsican",
            nativeName: "corsu"
        },
        cr: {
            name: "Cree",
            nativeName: "ᓀᐦᐃᔭᐍᐏᐣ"
        },
        cs: {
            name: "Czech",
            nativeName: "Čeština"
        },
        cu: {
            name: "Old Church Slavonic",
            nativeName: "ѩзыкъ словѣньскъ"
        },
        cv: {
            name: "Chuvash",
            nativeName: "чӑваш чӗлхи"
        },
        cy: {
            name: "Welsh",
            nativeName: "Cymraeg"
        },
        da: {
            name: "Danish",
            nativeName: "Dansk"
        },
        de: {
            name: "German",
            nativeName: "Deutsch"
        },
        dv: {
            name: "Divehi",
            nativeName: "ދިވެހި"
        },
        dz: {
            name: "Dzongkha",
            nativeName: "རྫོང་ཁ"
        },
        ee: {
            name: "Ewe",
            nativeName: "Eʋegbe"
        },
        el: {
            name: "Greek",
            nativeName: "Ελληνικά"
        },
        en: {
            name: "English",
            nativeName: "English"
        },
        eo: {
            name: "Esperanto",
            nativeName: "Esperanto"
        },
        es: {
            name: "Spanish",
            nativeName: "Español"
        },
        et: {
            name: "Estonian",
            nativeName: "eesti"
        },
        eu: {
            name: "Basque",
            nativeName: "euskara"
        },
        fa: {
            name: "Persian",
            nativeName: "فارسی"
        },
        ff: {
            name: "Fula",
            nativeName: "Fulfulde"
        },
        fi: {
            name: "Finnish",
            nativeName: "suomi"
        },
        fj: {
            name: "Fijian",
            nativeName: "vosa Vakaviti"
        },
        fo: {
            name: "Faroese",
            nativeName: "Føroyskt"
        },
        fr: {
            name: "French",
            nativeName: "Français"
        },
        fy: {
            name: "Western Frisian",
            nativeName: "Frysk"
        },
        ga: {
            name: "Irish",
            nativeName: "Gaeilge"
        },
        gd: {
            name: "Scottish Gaelic",
            nativeName: "Gàidhlig"
        },
        gl: {
            name: "Galician",
            nativeName: "galego"
        },
        gn: {
            name: "Guaraní",
            nativeName: "Avañe'ẽ"
        },
        gu: {
            name: "Gujarati",
            nativeName: "ગુજરાતી"
        },
        gv: {
            name: "Manx",
            nativeName: "Gaelg"
        },
        ha: {
            name: "Hausa",
            nativeName: "هَوُسَ"
        },
        he: {
            name: "Hebrew",
            nativeName: "עברית"
        },
        hi: {
            name: "Hindi",
            nativeName: "हिन्दी"
        },
        ho: {
            name: "Hiri Motu",
            nativeName: "Hiri Motu"
        },
        hr: {
            name: "Croatian",
            nativeName: "Hrvatski"
        },
        ht: {
            name: "Haitian",
            nativeName: "Kreyòl ayisyen"
        },
        hu: {
            name: "Hungarian",
            nativeName: "magyar"
        },
        hy: {
            name: "Armenian",
            nativeName: "Հայերեն"
        },
        hz: {
            name: "Herero",
            nativeName: "Otjiherero"
        },
        ia: {
            name: "Interlingua",
            nativeName: "Interlingua"
        },
        id: {
            name: "Indonesian",
            nativeName: "Bahasa Indonesia"
        },
        ie: {
            name: "Interlingue",
            nativeName: "Interlingue"
        },
        ig: {
            name: "Igbo",
            nativeName: "Asụsụ Igbo"
        },
        ii: {
            name: "Nuosu",
            nativeName: "ꆈꌠ꒿ Nuosuhxop"
        },
        ik: {
            name: "Inupiaq",
            nativeName: "Iñupiaq"
        },
        io: {
            name: "Ido",
            nativeName: "Ido"
        },
        is: {
            name: "Icelandic",
            nativeName: "Íslenska"
        },
        it: {
            name: "Italian",
            nativeName: "Italiano"
        },
        iu: {
            name: "Inuktitut",
            nativeName: "ᐃᓄᒃᑎᑐᑦ"
        },
        ja: {
            name: "Japanese",
            nativeName: "日本語"
        },
        jv: {
            name: "Javanese",
            nativeName: "basa Jawa"
        },
        ka: {
            name: "Georgian",
            nativeName: "ქართული"
        },
        kg: {
            name: "Kongo",
            nativeName: "Kikongo"
        },
        ki: {
            name: "Kikuyu",
            nativeName: "Gĩkũyũ"
        },
        kj: {
            name: "Kwanyama",
            nativeName: "Kuanyama"
        },
        kk: {
            name: "Kazakh",
            nativeName: "қазақ тілі"
        },
        kl: {
            name: "Kalaallisut",
            nativeName: "kalaallisut"
        },
        km: {
            name: "Khmer",
            nativeName: "ខេមរភាសា"
        },
        kn: {
            name: "Kannada",
            nativeName: "ಕನ್ನಡ"
        },
        ko: {
            name: "Korean",
            nativeName: "한국어"
        },
        kr: {
            name: "Kanuri",
            nativeName: "Kanuri"
        },
        ks: {
            name: "Kashmiri",
            nativeName: "कश्मीरी"
        },
        ku: {
            name: "Kurdish",
            nativeName: "Kurdî"
        },
        kv: {
            name: "Komi",
            nativeName: "коми кыв"
        },
        kw: {
            name: "Cornish",
            nativeName: "Kernewek"
        },
        ky: {
            name: "Kyrgyz",
            nativeName: "Кыргызча"
        },
        la: {
            name: "Latin",
            nativeName: "latine"
        },
        lb: {
            name: "Luxembourgish",
            nativeName: "Lëtzebuergesch"
        },
        lg: {
            name: "Ganda",
            nativeName: "Luganda"
        },
        li: {
            name: "Limburgish",
            nativeName: "Limburgs"
        },
        ln: {
            name: "Lingala",
            nativeName: "Lingála"
        },
        lo: {
            name: "Lao",
            nativeName: "ພາສາລາວ"
        },
        lt: {
            name: "Lithuanian",
            nativeName: "lietuvių kalba"
        },
        lu: {
            name: "Luba-Katanga",
            nativeName: "Kiluba"
        },
        lv: {
            name: "Latvian",
            nativeName: "latviešu valoda"
        },
        mg: {
            name: "Malagasy",
            nativeName: "fiteny malagasy"
        },
        mh: {
            name: "Marshallese",
            nativeName: "Kajin M̧ajeļ"
        },
        mi: {
            name: "Māori",
            nativeName: "te reo Māori"
        },
        mk: {
            name: "Macedonian",
            nativeName: "македонски јазик"
        },
        ml: {
            name: "Malayalam",
            nativeName: "മലയാളം"
        },
        mn: {
            name: "Mongolian",
            nativeName: "Монгол хэл"
        },
        mr: {
            name: "Marathi",
            nativeName: "मराठी"
        },
        ms: {
            name: "Malay",
            nativeName: "Bahasa Melayu"
        },
        mt: {
            name: "Maltese",
            nativeName: "Malti"
        },
        my: {
            name: "Burmese",
            nativeName: "ဗမာစာ"
        },
        na: {
            name: "Nauru",
            nativeName: "Dorerin Naoero"
        },
        nb: {
            name: "Norwegian Bokmål",
            nativeName: "Norsk bokmål"
        },
        nd: {
            name: "Northern Ndebele",
            nativeName: "isiNdebele"
        },
        ne: {
            name: "Nepali",
            nativeName: "नेपाली"
        },
        ng: {
            name: "Ndonga",
            nativeName: "Owambo"
        },
        nl: {
            name: "Dutch",
            nativeName: "Nederlands"
        },
        nn: {
            name: "Norwegian Nynorsk",
            nativeName: "Norsk nynorsk"
        },
        no: {
            name: "Norwegian",
            nativeName: "Norsk"
        },
        nr: {
            name: "Southern Ndebele",
            nativeName: "isiNdebele"
        },
        nv: {
            name: "Navajo",
            nativeName: "Diné bizaad"
        },
        ny: {
            name: "Chichewa",
            nativeName: "chiCheŵa"
        },
        oc: {
            name: "Occitan",
            nativeName: "occitan"
        },
        oj: {
            name: "Ojibwe",
            nativeName: "ᐊᓂᔑᓈᐯᒧᐎᓐ"
        },
        om: {
            name: "Oromo",
            nativeName: "Afaan Oromoo"
        },
        or: {
            name: "Oriya",
            nativeName: "ଓଡ଼ିଆ"
        },
        os: {
            name: "Ossetian",
            nativeName: "ирон æвзаг"
        },
        pa: {
            name: "Panjabi",
            nativeName: "ਪੰਜਾਬੀ"
        },
        pi: {
            name: "Pāli",
            nativeName: "पाऴि"
        },
        pl: {
            name: "Polish",
            nativeName: "Polski"
        },
        ps: {
            name: "Pashto",
            nativeName: "پښتو"
        },
        pt: {
            name: "Portuguese",
            nativeName: "Português"
        },
        qu: {
            name: "Quechua",
            nativeName: "Runa Simi"
        },
        rm: {
            name: "Romansh",
            nativeName: "rumantsch grischun"
        },
        rn: {
            name: "Kirundi",
            nativeName: "Ikirundi"
        },
        ro: {
            name: "Romanian",
            nativeName: "Română"
        },
        ru: {
            name: "Russian",
            nativeName: "Русский"
        },
        rw: {
            name: "Kinyarwanda",
            nativeName: "Ikinyarwanda"
        },
        sa: {
            name: "Sanskrit",
            nativeName: "संस्कृतम्"
        },
        sc: {
            name: "Sardinian",
            nativeName: "sardu"
        },
        sd: {
            name: "Sindhi",
            nativeName: "सिन्धी"
        },
        se: {
            name: "Northern Sami",
            nativeName: "Davvisámegiella"
        },
        sg: {
            name: "Sango",
            nativeName: "yângâ tî sängö"
        },
        si: {
            name: "Sinhala",
            nativeName: "සිංහල"
        },
        sk: {
            name: "Slovak",
            nativeName: "Slovenčina"
        },
        sl: {
            name: "Slovenian",
            nativeName: "slovenščina"
        },
        sm: {
            name: "Samoan",
            nativeName: "gagana fa'a Samoa"
        },
        sn: {
            name: "Shona",
            nativeName: "chiShona"
        },
        so: {
            name: "Somali",
            nativeName: "Soomaaliga"
        },
        sq: {
            name: "Albanian",
            nativeName: "Shqip"
        },
        sr: {
            name: "Serbian",
            nativeName: "српски језик"
        },
        ss: {
            name: "Swati",
            nativeName: "SiSwati"
        },
        st: {
            name: "Southern Sotho",
            nativeName: "Sesotho"
        },
        su: {
            name: "Sundanese",
            nativeName: "Basa Sunda"
        },
        sv: {
            name: "Swedish",
            nativeName: "Svenska"
        },
        sw: {
            name: "Swahili",
            nativeName: "Kiswahili"
        },
        ta: {
            name: "Tamil",
            nativeName: "தமிழ்"
        },
        te: {
            name: "Telugu",
            nativeName: "తెలుగు"
        },
        tg: {
            name: "Tajik",
            nativeName: "тоҷикӣ"
        },
        th: {
            name: "Thai",
            nativeName: "ไทย"
        },
        ti: {
            name: "Tigrinya",
            nativeName: "ትግርኛ"
        },
        tk: {
            name: "Turkmen",
            nativeName: "Türkmençe"
        },
        tl: {
            name: "Tagalog",
            nativeName: "Wikang Tagalog"
        },
        tn: {
            name: "Tswana",
            nativeName: "Setswana"
        },
        to: {
            name: "Tonga",
            nativeName: "faka Tonga"
        },
        tr: {
            name: "Turkish",
            nativeName: "Türkçe"
        },
        ts: {
            name: "Tsonga",
            nativeName: "Xitsonga"
        },
        tt: {
            name: "Tatar",
            nativeName: "татар теле"
        },
        tw: {
            name: "Twi",
            nativeName: "Twi"
        },
        ty: {
            name: "Tahitian",
            nativeName: "Reo Tahiti"
        },
        ug: {
            name: "Uyghur",
            nativeName: "ئۇيغۇرچە‎"
        },
        uk: {
            name: "Ukrainian",
            nativeName: "Українська"
        },
        ur: {
            name: "Urdu",
            nativeName: "اردو"
        },
        uz: {
            name: "Uzbek",
            nativeName: "Ўзбек"
        },
        ve: {
            name: "Venda",
            nativeName: "Tshivenḓa"
        },
        vi: {
            name: "Vietnamese",
            nativeName: "Tiếng Việt"
        },
        vo: {
            name: "Volapük",
            nativeName: "Volapük"
        },
        wa: {
            name: "Walloon",
            nativeName: "walon"
        },
        wo: {
            name: "Wolof",
            nativeName: "Wollof"
        },
        xh: {
            name: "Xhosa",
            nativeName: "isiXhosa"
        },
        yi: {
            name: "Yiddish",
            nativeName: "ייִדיש"
        },
        yo: {
            name: "Yoruba",
            nativeName: "Yorùbá"
        },
        za: {
            name: "Zhuang",
            nativeName: "Saɯ cueŋƅ"
        },
        zh: {
            name: "Chinese",
            nativeName: "中文"
        },
        zu: {
            name: "Zulu",
            nativeName: "isiZulu"
        }
    }), lg
}
var ig, w0;

function F5() {
    if (w0) return ig;
    w0 = 1;
    const n = H5(),
        u = {},
        i = {},
        d = [],
        g = [],
        x = [];
    for (const p in n) {
        const {
            name: w,
            nativeName: M
        } = n[p];
        u[p] = i[w.toLowerCase()] = i[M.toLowerCase()] = {
            code: p,
            name: w,
            nativeName: M
        }, d.push(p), g.push(w), x.push(M)
    }
    return ig = class Vf {
        static getLanguages(w = []) {
            return w.map(M => Vf.validate(M) ? Object.assign({}, u[M]) : {
                code: M,
                name: "",
                nativeName: ""
            })
        }
        static getName(w) {
            return Vf.validate(w) ? n[w].name : ""
        }
        static getAllNames() {
            return g.slice()
        }
        static getNativeName(w) {
            return Vf.validate(w) ? n[w].nativeName : ""
        }
        static getAllNativeNames() {
            return x.slice()
        }
        static getCode(w) {
            return w = w.toLowerCase(), i.hasOwnProperty(w) ? i[w].code : ""
        }
        static getAllCodes() {
            return d.slice()
        }
        static validate(w) {
            return n.hasOwnProperty(w)
        }
    }, ig
}
var G5 = F5();
const C0 = _0(G5);

function Y5({
    onSelect: n,
    btnCancel: u = !1
}) {
    const {
        variaveisWA: i
    } = $i(), {
        close: d
    } = Ka(), {
        language: g
    } = Ce(), x = C0.getAllCodes().map(A => ({
        value: A,
        label: C0.getName(A)
    })), [p, w] = W.useState([]), [M, T] = W.useState("");
    return s.jsx("div", {
        children: s.jsx("ul", {
            className: "overflow-hidden flex " + i.modalOptions.content2,
            children: s.jsxs("div", {
                className: i.modalOptions.content3,
                children: [s.jsx(Ud, {
                    filtragem: A => {
                        T(A);
                        let z = [];
                        x.forEach(O => {
                            O.label?.toUpperCase().includes(A.toUpperCase()) && z.push(O)
                        }), w(z)
                    },
                    placeholder: g.pesquisarIdioma,
                    dependenciasADD: [x],
                    btnClear: !0
                }), M.length === 0 && s.jsxs("div", {
                    className: "pb-2",
                    children: [s.jsx("div", {
                        className: "px-4",
                        children: s.jsx(il, {
                            weight: "700",
                            children: g.principaisIdiomas
                        })
                    }), s.jsx(Nn, {
                        content: "Português",
                        icon: null,
                        setFunction: () => {
                            n({
                                value: "pt",
                                label: "Português"
                            }), d()
                        },
                        stroke: "1"
                    }, 1), s.jsx(Nn, {
                        content: "English",
                        icon: null,
                        setFunction: () => {
                            n({
                                value: "en",
                                label: "English"
                            }), d()
                        },
                        stroke: "1"
                    }, 2), s.jsx(Nn, {
                        content: "Español",
                        icon: null,
                        setFunction: () => {
                            n({
                                value: "es",
                                label: "Español"
                            }), d()
                        },
                        stroke: "1"
                    }, 2), s.jsx("div", {
                        className: "xjm9jq1 xfw0ycb x7r5mf7 x12nagc mx-2"
                    })]
                }), s.jsxs("div", {
                    className: "max-w-[300px] overflow-x-hidden overflow-y-auto " + i.listagem.content1,
                    style: {
                        maxHeight: "60vh"
                    },
                    children: [u && s.jsx(Nn, {
                        content: g.cancelSelection,
                        icon: s.jsx(nh, {
                            className: "w-5 h-5 text-red-500"
                        }),
                        setFunction: () => {
                            n(null), d()
                        },
                        stroke: "1"
                    }), p.map((A, z) => s.jsx(Nn, {
                        content: A.label,
                        icon: null,
                        setFunction: () => {
                            n(A), d()
                        },
                        stroke: "1"
                    }, z))]
                })]
            })
        })
    })
}

function X5() {
    const {
        language: n
    } = Ce(), {
        activePerfil: u,
        updateActivePerfil: i
    } = Tn(), {
        chatName: d
    } = Ou(), {
        open: g
    } = Ka(), {
        contatos: x,
        setContatos: p
    } = Bd(), [w, M] = W.useState(d.name);
    W.useEffect(() => {
        M(d.name)
    }, [d]);
    const T = async () => {
        if (await rl("contatos") === !0) return;
        const O = x.filter(G => G.id !== d.number),
            L = {
                id: d.number,
                name: w
            };
        O.push(L), Ge.Utils("contatoSave", L), Ou.setState({
            chatName: {
                ...d,
                name: w,
                number: d.number
            }
        }), p(O), pe({
            type: "Success",
            message: n.contatosNotifiSave,
            position: "top-right"
        })
    }, R = [{
        name: n.cancelSelection,
        value: ""
    }, {
        name: n.male,
        value: n.male
    }, {
        name: n.female,
        value: n.female
    }], A = s.jsx(sg, {
        name: n.gender,
        estado: u.sexo.length === 0 ? n.selectGender : u.sexo,
        children: s.jsx("ul", {
            tabIndex: 0,
            className: "dropdown-content z-[1] menu p-2 shadow bg-base-100 rounded-box w-52 mt-2 mr-4",
            children: R.map((O, L) => s.jsx("li", {
                children: s.jsx("div", {
                    className: "flex",
                    onClick: () => i("sexo", O.value),
                    children: s.jsx("span", {
                        children: O.name
                    })
                })
            }, L))
        })
    });
    return s.jsxs("div", {
        className: "p-2 mb-3 h3bz2vby bg-[var(--drawer-section-background)] grid gap-3",
        children: [s.jsx(ap, {
            name: n.name,
            placeholder: n.contactName,
            funcao: T,
            estado: w,
            setEstado: O => M(O.target.value),
            children: s.jsx(th, {
                className: "w-5 h-5 text-[var(--panel-header-icon)]"
            })
        }), s.jsxs("div", {
            className: "flex gap-3 justify-between flex-wrap",
            children: [s.jsx("div", {
                className: "my-auto",
                children: A
            }), s.jsx("div", {
                className: "my-auto",
                children: s.jsx(Yr, {
                    name: n.dateOfBirth,
                    placeholder: n.dateOfBirth,
                    type: "Date",
                    estado: u.dataNascimento,
                    setEstado: O => i("dataNascimento", O.target.value),
                    children: s.jsx("input", {
                        type: "date",
                        className: "bg-[var(--search-input-background)] w-[20px] dateON cursor-pointer",
                        value: u.dataNascimento,
                        onChange: O => i("dataNascimento", O.target.value)
                    })
                })
            }), s.jsx("div", {
                onClick: O => g(s.jsx(Y5, {
                    onSelect: L => i("idioma", L.label)
                }), {
                    placement: "left"
                }, O.currentTarget, 0),
                children: s.jsx(sg, {
                    name: "Idioma",
                    estado: u.idioma && u.idioma.length !== 0 ? u.idioma : n.nenhumSelecionado
                })
            })]
        })]
    })
}

function N0({
    model: n,
    val: u
}) {
    const {
        language: i
    } = Ce(), {
        open: d
    } = Wt(), {
        activePerfil: g,
        updateActivePerfil: x
    } = Tn(), [p, w] = W.useState(u || {
        id: "",
        descricao: "",
        data: "",
        hora: "",
        valor: ""
    }), M = async () => {
        if (await rl("perfilDoContato") === !0) return;
        p.id = Ir(), p.data = `${ll.dayDate().day}/${ll.dayDate().month}/${ll.dayDate().year}`, p.hora = `${ll.timeDate().hours}:${ll.timeDate().minutes}:${ll.timeDate().seconds}`;
        const z = [p, ...g.valNegocio];
        x("valNegocio", z), d(s.jsx(zd, {})), pe({
            type: "Success",
            message: i.addedValue,
            position: "top-right"
        })
    }, T = async () => {
        if (await rl("perfilDoContato") === !0) return;
        const z = g.valNegocio.map(O => O.id === p.id ? p : O);
        x("valNegocio", z), d(s.jsx(zd, {})), pe({
            type: "Success",
            message: i.editedValue,
            position: "top-right"
        })
    }, R = (z, O) => {
        w({
            ...p,
            [z]: O
        })
    };
    return s.jsxs("div", {
        className: "w-[600px] grid gap-4",
        children: [s.jsxs(sl, {
            children: [n === "Edit" ? i.edit : i.create, " ", i.businessValue]
        }), s.jsxs("div", {
            className: "form-control w-full",
            children: [s.jsx("label", {
                className: "label",
                children: s.jsx("span", {
                    className: "label-text",
                    children: i.description
                })
            }), s.jsx("input", {
                type: "text",
                placeholder: i.valueDescription,
                className: "input input-bordered w-full input-sm",
                value: p.descricao,
                onChange: z => R("descricao", z.target.value)
            })]
        }), s.jsxs("div", {
            className: "form-control w-full",
            children: [s.jsx("label", {
                className: "label",
                children: s.jsx("span", {
                    className: "label-text",
                    children: i.businessValue
                })
            }), s.jsx(Np, {
                placeholder: "R$ 0,00",
                className: "input input-bordered w-full input-sm",
                value: p.valor,
                onValueChange: z => R("valor", z.value),
                thousandSeparator: ".",
                decimalSeparator: ",",
                prefix: "R$ ",
                allowNegative: !1,
                decimalScale: 2,
                fixedDecimalScale: !0
            })]
        }), s.jsxs("div", {
            className: "flex justify-between pt-4 resize-none",
            children: [s.jsx(ra, {
                name: i.cancel,
                funcao: () => d(s.jsx(zd, {}))
            }), n === "Create" ? s.jsx(ra, {
                name: i.create,
                funcao: M
            }) : s.jsx(ra, {
                name: i.edit,
                funcao: T
            })]
        })]
    })
}

function zd() {
    const {
        language: n
    } = Ce(), {
        open: u
    } = Wt(), {
        activePerfil: i,
        updateActivePerfil: d
    } = Tn(), g = async M => {
        if (await rl("perfilDoContato") === !0) return;
        const T = (i.valNegocio ? i.valNegocio : []).filter(R => R.id !== M);
        d("valNegocio", T), pe({
            type: "Success",
            message: n.deletedValue,
            position: "top-right"
        })
    }, x = s.jsx("div", {
        className: "my-6 p-4 border-dotted border rounded-lg text-center",
        children: n.noneValueAdded
    }), p = s.jsx(s.Fragment, {
        children: (i.valNegocio ? i.valNegocio : []).map(M => s.jsxs("tr", {
            className: "hover:bg-base-200 cursor-pointer",
            children: [s.jsx("td", {
                className: "rounded-l-lg",
                children: s.jsx("div", {
                    className: "flex justify-center",
                    children: s.jsx("span", {
                        className: "block max-w-[130px]",
                        children: M.descricao
                    })
                })
            }), s.jsx("td", {
                children: M.data
            }), s.jsx("td", {
                children: M.hora
            }), s.jsx("td", {
                children: parseFloat(M.valor).toLocaleString("pt-BR", {
                    style: "currency",
                    currency: "BRL"
                })
            }), s.jsx("td", {
                className: "rounded-r-lg",
                children: s.jsxs("div", {
                    className: "flex justify-center gap-2",
                    children: [s.jsx("span", {
                        className: "pulse",
                        onClick: () => u(s.jsx(N0, {
                            model: "Edit",
                            val: M
                        })),
                        children: s.jsx(Yo, {
                            className: "h-5 w-5"
                        })
                    }), s.jsx("span", {
                        className: "pulse",
                        onClick: () => g(M.id),
                        children: s.jsx(js, {
                            className: "h-5 w-5"
                        })
                    })]
                })
            })]
        }))
    });
    return s.jsxs("div", {
        className: "w-[600px] grid gap-4",
        children: [s.jsx(sl, {
            children: n.businessValue
        }), s.jsxs("div", {
            className: "overflow-auto",
            style: {
                maxHeight: "calc(100vh - 300px)"
            },
            children: [s.jsxs("table", {
                className: "table text-center",
                children: [s.jsx("thead", {
                    children: s.jsxs("tr", {
                        children: [s.jsx("th", {
                            children: n.description
                        }), s.jsx("th", {
                            children: n.date
                        }), s.jsx("th", {
                            children: n.hour
                        }), s.jsx("th", {
                            children: n.value
                        }), s.jsx("th", {
                            children: n.agendamento_table_acao
                        })]
                    })
                }), s.jsx("tbody", {
                    children: (i.valNegocio ? i.valNegocio : []).length > 0 && p
                })]
            }), (i.valNegocio ? i.valNegocio : []).length <= 0 && x]
        }), s.jsx("div", {
            className: "flex justify-end py-3",
            children: s.jsx(ra, {
                name: n.create,
                funcao: () => u(s.jsx(N0, {
                    model: "Create"
                }))
            })
        })]
    })
}
const T0 = ["São Paulo", "Minas Gerais", "Rio de Janeiro", "Santa Catarina", "Acre", "Alagoas", "Amapá", "Amazonas", "Bahia", "Ceará", "Distrito Federal", "Espírito Santo", "Goiás", "Maranhão", "Mato Grosso", "Mato Grosso do Sul", "Pará", "Paraíba", "Paraná", "Pernambuco", "Piauí", "Rio Grande do Norte", "Rio Grande do Sul", "Rondônia", "Roraima", "Sergipe", "Tocantins"];

function V5({
    onSelect: n,
    btnCancel: u = !1
}) {
    const {
        variaveisWA: i
    } = $i(), {
        close: d
    } = Ka(), {
        language: g
    } = Ce(), [x, p] = W.useState([]);
    return s.jsx("div", {
        style: {
            position: "initial"
        },
        children: s.jsx("ul", {
            className: "overflow-hidden flex " + i.modalOptions.content2,
            children: s.jsxs("div", {
                className: i.modalOptions.content3,
                children: [s.jsx(Ud, {
                    filtragem: M => {
                        let T = [];
                        T0.forEach(R => {
                            R?.toUpperCase().includes(M.toUpperCase()) && T.push(R)
                        }), p(T)
                    },
                    placeholder: "Pesquisar Estados",
                    dependenciasADD: [T0],
                    btnClear: !0
                }), s.jsxs("div", {
                    className: "max-w-[300px] overflow-x-hidden overflow-y-auto " + i.listagem.content1,
                    style: {
                        maxHeight: "calc(100vh - 63px)"
                    },
                    children: [u && s.jsx(Nn, {
                        content: g.cancelSelection,
                        icon: s.jsx(nh, {
                            className: "w-5 h-5 text-red-500"
                        }),
                        setFunction: () => {
                            n(""), d()
                        },
                        stroke: "1"
                    }), x.map((M, T) => s.jsx(Nn, {
                        content: M,
                        icon: s.jsx(s.Fragment, {}),
                        setFunction: () => {
                            n(M), d()
                        },
                        stroke: "1"
                    }, T))]
                })]
            })
        })
    })
}

function K4(n) {
    return ct({
        attr: {
            viewBox: "0 0 1024 1024"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M388.8 896.4v-27.198c.6-2.2 1.6-4.2 2-6.4 8.8-57.2 56.4-102.4 112.199-106.2 62.4-4.4 115.2 31.199 132.4 89.199 2.2 7.6 3.8 15.6 5.8 23.4v27.2c-.6 1.8-1.6 3.399-1.8 5.399-8.6 52.8-46.6 93-98.6 104.4-4 .8-8 2-12 3h-27.2c-1.8-.6-3.6-1.6-5.4-1.8-52-8.4-91.599-45.4-103.6-96.8-1.2-5-2.6-9.6-3.8-14.2zm252.4-768.797l-.001 27.202c-.6 2.2-1.6 4.2-1.8 6.4-9 57.6-56.8 102.6-113.2 106.2-62.2 4-114.8-32-131.8-90.2-2.2-7.401-3.8-15-5.6-22.401v-27.2c.6-1.8 1.6-3.4 2-5.2 9.6-52 39.8-86 90.2-102.2 6.6-2.2 13.6-3.4 20.4-5.2h27.2c1.8.6 3.6 1.6 5.4 1.8 52.2 8.6 91.6 45.4 103.6 96.8 1.201 4.8 2.401 9.4 3.601 13.999zm-.001 370.801v27.2c-.6 2.2-1.6 4.2-2 6.4-9 57.4-58.6 103.6-114.6 106-63 2.8-116.4-35.2-131.4-93.8-1.6-6.2-3-12.4-4.4-18.6v-27.2c.6-2.2 1.6-4.2 2-6.4 8.8-57.4 58.6-103.601 114.6-106.2 63-3 116.4 35.2 131.4 93.8 1.6 6.4 3 12.6 4.4 18.8z"
            },
            child: []
        }]
    })(n)
}

function I5(n) {
    return ct({
        attr: {
            viewBox: "0 0 1024 1024"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M581.76 80.496c3.808 0 5.999.16 5.999.16h83.568l-.431 96h-83.008c-45.68 0-44.624 39.007-44.624 39.007v152.192h161.632l-22.56 95.872h-139.6v479.776h-95.904l-.064-479.776H319.36l-.256-95.872h127.712V218.671C446.83 88.591 554.864 80.495 581.76 80.495zm89.567.159h.16-.16zm-89.567-64.16c-23.008 0-67.97 3.809-110.562 29.473-40.32 24.256-88.368 73.935-88.368 172.688v85.183h-63.712c-17.008 0-33.312 6.784-45.344 18.817a64.003 64.003 0 0 0-18.655 45.408l.256 95.872c.128 35.248 28.752 63.776 64 63.776h63.408l.064 415.776c0 35.344 28.657 64 64 64h95.905c35.343 0 64-28.656 64-64V527.712h75.6c28.4 0 53.407-18.72 61.407-45.967l22.56-95.873c5.68-19.343 1.903-40.255-10.192-56.368a63.912 63.912 0 0 0-51.217-25.664h-97.632v-63.152l63.632-.032c35.216 0 63.84-28.464 64-63.712l.431-92.752a64.3 64.3 0 0 0 .097-3.536c0-35.344-28.592-64-63.935-64h-81.936c-1.84-.096-4.496-.16-7.807-.161z"
            },
            child: []
        }]
    })(n)
}

function Z5(n) {
    return ct({
        attr: {
            viewBox: "0 0 1024 1024"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M707 360c-70-75-128-87-184-88h-2c-126 0-245 104-245 248 0 151 136 239 244 239h1c60 0 133-11 197-103H472V401l523 2c5 26 14 91 14 125 0 289-194 495-493 495C232 1023 1 797 1 515S232 8 516 8c139 0 288 55 382 180zm-187 93v154h263c-12 65-81 195-263 195-159 0-287-130-287-285 0-156 131-287 287-287 91 0 152 40 185 72l126-119C751 108 646 63 520 63 264 63 56 264 56 517c0 251 208 453 464 453 270 0 445-185 445-442 0-29-2-52-6-75H520z"
            },
            child: []
        }]
    })(n)
}

function Q5(n) {
    return ct({
        attr: {
            viewBox: "0 0 1024 1024"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M997.795 1002.43H789.769c-14.715 0-26.607-11.892-26.607-26.607V640.806c0-114.898-59.263-114.898-78.816-114.898-52.611 0-74.986 41.525-82.243 59.466-3.427 8.064-5.04 21.77-5.04 40.921v349.732c0 14.715-11.892 26.607-26.606 26.607H362.23c-7.055 0-13.909-2.822-18.948-7.86s-7.861-11.895-7.66-18.95c0-5.643 2.822-567.432 0-624.881-.403-7.257 2.217-14.312 7.257-19.553s11.893-8.265 19.35-8.265h208.228c14.714 0 26.607 11.892 26.607 26.607v15.723c35.074-31.244 85.669-57.046 161.058-57.046 166.702 0 266.28 115.3 266.28 308.409v359.005c0 14.715-11.893 26.607-26.607 26.607zm-181.418-53.214l155.012-.004V616.815c0-162.268-77.606-255.193-213.065-255.193-90.507 0-134.45 45.153-162.066 86.476-3.225 10.885-13.506 18.949-25.6 18.949h-1.41c-9.677 0-18.546-5.242-23.181-13.707-3.628-6.653-4.435-14.313-2.016-21.368v-55.835H389.443c1.411 111.068 0 470.477-.403 572.877h154.809V626.09c0-26.809 2.822-46.16 8.869-60.875 23.383-57.852 72.566-92.724 131.427-92.724 83.855 0 132.03 61.28 132.03 168.113v308.611h.204zm-569.246 53.21H38.904c-14.715 0-26.607-11.892-26.607-26.607V349.73c0-14.715 11.892-26.608 26.607-26.608h208.227c14.715 0 26.607 11.893 26.607 26.607V975.82c0 14.715-11.892 26.608-26.607 26.608zM65.513 949.213h155.01V376.336H65.514v572.876zm77.605-658.344l-1.412-.001c-82.041 0-141.707-56.844-141.707-135.055 0-78.009 60.674-134.854 144.529-134.854 82.444 0 141.305 55.231 142.918 134.249 0 78.816-60.674 135.66-144.328 135.66zm1.41-216.492c-54.627 0-91.313 32.857-91.313 81.639 0 47.974 36.284 81.637 88.492 81.637h1.41c54.426 0 91.112-32.857 91.112-81.638-1.008-49.386-36.283-81.638-89.701-81.638z"
            },
            child: []
        }]
    })(n)
}

function P5(n) {
    return ct({
        attr: {
            viewBox: "0 0 512 512"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M217 25v30h30V25h-30zm48 0v30h30V25h-30zm48 0v30h30V25h-30zm-96 48v46h30V73h-30zm48 0v46h30V73h-30zm48 0v46h30V73h-30zm-96 64v46h30v-46h-30zm48 0v46h30v-46h-30zm48 0v46h30v-46h-30zm174 6.508l-94 53.715V215h94v-71.492zM217 201v46h30v-46h-30zm48 0v46h30v-46h-30zm48 0v46h30v-46h-30zm80 32v110h94V233h-94zM39 256v23h18v-23H39zm178 9v46h30v-46h-30zm48 0v46h30v-46h-30zm48 0v46h30v-46h-30zM37.562 297l-7 14h146.875l-7-14H37.563zM25 329v158h23v-23h32v23h48v-23h32v23h23V329H25zm192 0v46h30v-46h-30zm48 0v46h30v-46h-30zm48 0v46h30v-46h-30zM48 352h32v16H48v-16zm80 0h32v16h-32v-16zm265 9v126h31v-23h32v23h31V361h-94zM48 384h32v16H48v-16zm80 0h32v16h-32v-16zm89 9v46h30v-46h-30zm48 0v46h30v-46h-30zm48 0v46h30v-46h-30zM48 416h32v16H48v-16zm80 0h32v16h-32v-16zm89 41v30h30v-30h-30zm48 0v30h30v-30h-30zm48 0v30h30v-30h-30z"
            },
            child: []
        }]
    })(n)
}

function W5(n) {
    return ct({
        attr: {
            viewBox: "0 0 512 512"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M327.027 65.816L229.79 128.23l9.856 5.397 86.51-55.53 146.735 83.116-84.165 54.023 4.1 2.244v6.848l65.923-42.316 13.836 7.838-79.76 51.195v11.723l64.633-41.487 15.127 8.57-79.76 51.195v11.723l64.633-41.487 15.127 8.57-79.76 51.195v11.723l100.033-64.21-24.828-14.062 24.827-15.937-24.828-14.064 24.827-15.937-23.537-13.333 23.842-15.305-166.135-94.106zm31.067 44.74c-21.038 10.556-49.06 12.342-68.79 4.383l-38.57 24.757 126.903 69.47 36.582-23.48c-14.41-11.376-13.21-28.35 2.942-41.67l-59.068-33.46zM227.504 147.5l-70.688 46.094 135.61 78.066 1.33-.85c2.5-1.61 6.03-3.89 10.242-6.613 8.42-5.443 19.563-12.66 30.674-19.86 16.002-10.37 24.248-15.72 31.916-20.694L227.504 147.5zm115.467 1.17a8.583 14.437 82.068 0 1 .003 0 8.583 14.437 82.068 0 1 8.32 1.945 8.583 14.437 82.068 0 1-.87 12.282 8.583 14.437 82.068 0 1-20.273 1.29 8.583 14.437 82.068 0 1 .87-12.28 8.583 14.437 82.068 0 1 11.95-3.237zm-218.423 47.115L19.143 263.44l23.537 13.333-23.842 15.305 24.828 14.063-24.828 15.938 24.828 14.063-24.828 15.938 166.135 94.106L285.277 381.8V370.08l-99.433 63.824L39.11 350.787l14.255-9.15 131.608 74.547L285.277 351.8V340.08l-99.433 63.824L39.11 320.787l14.255-9.15 131.608 74.547L285.277 321.8V310.08l-99.433 63.824L39.11 290.787l13.27-8.52 132.9 75.28 99.997-64.188v-5.05l-5.48-3.154-93.65 60.11-146.73-83.116 94.76-60.824-9.63-5.543zm20.46 11.78l-46.92 30.115c14.41 11.374 13.21 28.348-2.942 41.67l59.068 33.46c21.037-10.557 49.057-12.342 68.787-4.384l45.965-29.504-123.96-71.358zm229.817 32.19c-8.044 5.217-15.138 9.822-30.363 19.688-11.112 7.203-22.258 14.42-30.69 19.873-4.217 2.725-7.755 5.01-10.278 6.632-.09.06-.127.08-.215.137v85.924l71.547-48.088v-84.166zm-200.99 17.48a8.583 14.437 82.068 0 1 8.32 1.947 8.583 14.437 82.068 0 1-.87 12.28 8.583 14.437 82.068 0 1-20.27 1.29 8.583 14.437 82.068 0 1 .87-12.28 8.583 14.437 82.068 0 1 11.95-3.236z"
            },
            child: []
        }]
    })(n)
}

function J5() {
    const {
        language: n
    } = Ce(), {
        activePerfil: u,
        updateActivePerfil: i,
        getValorNegocio: d
    } = Tn(), {
        open: g
    } = Ka(), {
        open: x
    } = Wt(), [p, w] = W.useState(!1), M = W.useRef(null);
    W.useEffect(() => {
        function A(z) {
            M.current && !M.current.contains(z.target) && w(!1)
        }
        return document.addEventListener("mouseup", A), () => document.removeEventListener("mouseup", A)
    }, []);
    const T = [{
        name: "Whatsapp",
        ico: s.jsx(np, {
            className: "w-5 h-5 text-[var(--panel-header-icon)]"
        })
    }, {
        name: "Youtube",
        ico: s.jsx(lp, {
            className: "w-5 h-5 text-[var(--panel-header-icon)]"
        })
    }, {
        name: "Facebook",
        ico: s.jsx(I5, {
            className: "w-5 h-5 text-[var(--panel-header-icon)]"
        })
    }, {
        name: "Instagram",
        ico: s.jsx(ip, {
            className: "w-5 h-5 text-[var(--panel-header-icon)]"
        })
    }, {
        name: "Linkedin",
        ico: s.jsx(Q5, {
            className: "w-5 h-5 text-[var(--panel-header-icon)]"
        })
    }, {
        name: "Tik Tok",
        ico: s.jsx(rp, {
            className: "w-5 h-5 text-[var(--panel-header-icon)]"
        })
    }, {
        name: "Google",
        ico: s.jsx(Z5, {
            className: "w-5 h-5 text-[var(--panel-header-icon)]"
        })
    }, {
        name: "Site",
        ico: s.jsx(sp, {
            className: "w-5 h-5 text-[var(--panel-header-icon)]"
        })
    }, {
        name: n.formulary,
        ico: s.jsx(p5, {
            className: "w-5 h-5 text-[var(--panel-header-icon)]"
        })
    }, {
        name: "CRM",
        ico: s.jsx(cp, {
            size: 20,
            color: "var(--icon)"
        })
    }, {
        name: n.others,
        ico: s.jsx(z5, {
            size: "20px",
            color: "var(--icon)"
        })
    }];
    return s.jsxs("div", {
        className: "p-2 mb-3 h3bz2vby bg-[var(--drawer-section-background)] grid gap-3",
        children: [s.jsx(Yr, {
            name: n.email,
            btnClose: !0,
            placeholder: n.insertEmail,
            estado: u.email,
            setEstado: A => i("email", A.target.value),
            children: s.jsx(op, {
                className: "w-5 h-5 text-[var(--panel-header-icon)]"
            })
        }), s.jsx(Yr, {
            name: n.city,
            btnClose: !0,
            placeholder: n.insertCity,
            estado: u.cidade,
            setEstado: A => i("cidade", A.target.value),
            children: s.jsx(Ly, {
                className: "w-5 h-5 text-[var(--panel-header-icon)]"
            })
        }), s.jsx("div", {
            className: "w-fit",
            onClick: A => g(s.jsx(V5, {
                onSelect: z => i("estado", z)
            }), {
                placement: "left"
            }, A.currentTarget, 0),
            children: s.jsx(sg, {
                name: "Estado",
                estado: u.estado && u.estado.length !== 0 ? u.estado : n.nenhumSelecionado
            })
        }), s.jsxs("div", {
            className: "flex gap-2 relative",
            ref: M,
            onMouseDown: A => {
                const z = A.target;
                (z.tagName === "INPUT" || z.closest("input")) && w(!1)
            },
            children: [s.jsx(Yr, {
                type: "text",
                setEstado: A => {
                    i("origemLead", A.target.value)
                },
                name: n.originOfLead,
                estado: u.origemLead,
                placeholder: n.selectOrigin,
                btnClose: !0,
                onFocus: () => w(!1)
            }), s.jsxs("div", {
                className: "flex gap-2 items-end relative",
                children: [s.jsx("button", {
                    onClick: () => w(!p),
                    className: `group w-[50px] h-[35px] flex items-center justify-center 
                            bg-[var(--search-input-background)] rounded-lg transition-all`,
                    children: p ? s.jsx(E5, {
                        className: "text-2xl hover:text-slate-300 duration-300"
                    }) : s.jsx(T5, {
                        className: "text-2xl hover:text-slate-300 duration-300"
                    })
                }), p && s.jsx("ul", {
                    tabIndex: 0,
                    className: `absolute right-0 top-full z-[9999]
            menu p-2 shadow bg-base-100 rounded-box w-52 transition-transform duration-300`,
                    children: T.map((A, z) => s.jsx("li", {
                        children: s.jsxs("div", {
                            className: "flex",
                            onClick: O => {
                                O.stopPropagation(), i("origemLead", A.name), w(!1)
                            },
                            children: [s.jsx("span", {
                                children: A.ico
                            }), s.jsx("span", {
                                children: A.name
                            })]
                        })
                    }, z))
                })]
            })]
        }), s.jsxs("div", {
            className: "flex gap-3 justify-between flex-wrap",
            children: [s.jsx("div", {
                className: "my-auto",
                children: s.jsx(Yr, {
                    name: n.entryDate,
                    type: "Date",
                    estado: u.entrada,
                    setEstado: A => i("entrada", A.target.value),
                    children: s.jsx("input", {
                        type: "date",
                        className: "bg-[var(--search-input-background)] w-[20px] dateON cursor-pointer",
                        value: u.entrada,
                        onChange: A => i("entrada", A.target.value)
                    })
                })
            }), s.jsx("div", {
                className: "my-auto",
                children: s.jsx(Yr, {
                    name: n.departureDate,
                    type: "Date",
                    estado: u.saida,
                    setEstado: A => i("saida", A.target.value),
                    children: s.jsx("input", {
                        type: "date",
                        className: "bg-[var(--search-input-background)] w-[20px] dateON cursor-pointer",
                        value: u.saida,
                        onChange: A => i("saida", A.target.value)
                    })
                })
            })]
        }), s.jsxs("div", {
            className: "flex items-center justify-start gap-2",
            children: [s.jsx(Yr, {
                name: n.businessValue,
                disabled: !0,
                estado: d(),
                children: s.jsx(W5, {
                    className: "w-5 h-5 text-[var(--panel-header-icon)]"
                })
            }), s.jsx("span", {
                className: "pt-4",
                children: s.jsx(ra, {
                    name: n.insertValue,
                    funcao: () => x(s.jsx(zd, {}))
                })
            })]
        })]
    })
}

function K5(n) {
    navigator.clipboard.writeText(n)
}

function q5() {
    const {
        language: n
    } = Ce(), {
        activePerfil: u,
        updateActivePerfil: i
    } = Tn(), [d, g] = W.useState(""), x = async T => {
        await rl("perfilDoContato") !== !0 && (i("produtos", u.produtos.filter(R => R !== T)), pe({
            type: "Success",
            message: n.deletedProduct,
            position: "top-right"
        }))
    }, p = async () => {
        if (await rl("perfilDoContato") === !0) return;
        if (d.length < 3) {
            pe({
                type: "Error",
                message: n.insertProductNameAtLeast3Chars,
                position: "top-right"
            });
            return
        }
        const T = [d, ...u.produtos];
        i("produtos", T), g(""), pe({
            type: "Success",
            message: n.registeredProduct,
            position: "top-right"
        })
    }, w = s.jsxs("div", {
        className: "py-1 grid gap-2",
        children: [s.jsx("div", {
            className: "flex gap-2 flex-wrap",
            children: u.produtos.map((T, R) => s.jsxs("div", {
                className: "badge bg-[var(--primaria)] gap-1 flex",
                children: [s.jsx("span", {
                    className: "font-medium text-[var(--letra)]",
                    children: T
                }), s.jsx("span", {
                    className: "pulse cursor-pointer",
                    onClick: () => x(T),
                    children: s.jsx(Vg, {
                        className: "w-5 h-5 text-[var(--letra)]"
                    })
                })]
            }, R))
        }), s.jsxs("div", {
            className: "flex items-end justify-start gap-2 w-full",
            children: [s.jsx("div", {
                className: "w-full",
                children: s.jsx(Yr, {
                    name: n.productsInterest,
                    btnClose: !0,
                    placeholder: n.insertProductInterest,
                    estado: d,
                    setEstado: T => g(T.target.value)
                })
            }), s.jsx("div", {
                children: s.jsx(ra, {
                    name: n.insert,
                    funcao: p
                })
            })]
        })]
    });
    return s.jsxs("div", {
        className: "p-2 mb-3 h3bz2vby bg-[var(--drawer-section-background)] grid gap-3",
        children: [s.jsx(Yr, {
            name: n.company,
            btnClose: !0,
            placeholder: n.addCompany,
            estado: u.empresa,
            setEstado: T => i("empresa", T.target.value),
            children: s.jsx(P5, {
                className: "w-5 h-5 text-[var(--panel-header-icon)]"
            })
        }), s.jsx(Yr, {
            name: n.job,
            btnClose: !0,
            placeholder: n.jobTitle,
            estado: u.cargo,
            setEstado: T => i("cargo", T.target.value),
            children: s.jsx(up, {
                className: "w-5 h-5 text-[var(--panel-header-icon)]"
            })
        }), w, s.jsxs("div", {
            className: "relative",
            children: [s.jsx(dp, {
                name: n.comments,
                height: "150",
                btnClose: !0,
                placeholder: n.insertComment,
                estado: u.observacoes,
                setEstado: T => i("observacoes", T.target.value),
                children: s.jsx(b1, {
                    className: "w-5 h-5 text-[var(--panel-header-icon)]"
                })
            }), u.observacoes.trim().length > 0 && s.jsx("button", {
                className: "absolute right-1 py-1  top-6 p-1 mt-8 z-50 rounded transform transition-transform duration-200 hover:scale-105 ",
                onClick: () => {
                    K5(u.observacoes), pe({
                        type: "Success",
                        message: n.copySuccessMessage,
                        position: "top-right"
                    })
                },
                children: s.jsx(Qy, {
                    className: "w-5 h-5 text-[var(--panel-header-icon)]"
                })
            })]
        })]
    })
}

function $5() {
    return s.jsxs("div", {
        className: "bg-[var(--drawer-background-deep)] h-full overflow-auto",
        children: [s.jsx(B5, {}), s.jsx(X5, {}), s.jsx(J5, {}), s.jsx(q5, {})]
    })
}
const e4 = () => {
    const {
        menuLateral: n
    } = Qr(), [u, i] = W.useState(s.jsx(s.Fragment, {}));
    return W.useEffect(() => {
        switch (n.children) {
            case "RespostaRapida":
                i(s.jsx(y0, {
                    children: s.jsx(L5, {})
                }));
                break;
            case "perfilContato":
                i(s.jsx(y0, {
                    children: s.jsx($5, {})
                }));
                break;
            default:
                i(s.jsx(s.Fragment, {}));
                break
        }
    }, [n]), s.jsx("div", {
        className: "relative z-[100]",
        children: u
    })
};

function t4() {
    return s.jsx(e4, {})
}

function a4({
    card: n
}) {
    const {
        getCard: u
    } = hn(), i = u(n.id), {
        setUserId: d
    } = Qr(), [g, x] = W.useState({
        open: !1,
        type: "",
        content: ""
    });
    return W.useEffect(() => {
        (async () => {
            const w = {
                id: {
                    user: i.id
                },
                labels: i.labels
            };
            Tn.getState().setActiveUser(w), Tn.getState().setActivePerfil(i.id), Ou.getState().getActiveChat(i.id), d(i.id)
        })()
    }, [i]), s.jsxs("div", {
        className: "h-[90vh] w-[80vw] m-auto max-w-[1200px] max-h-[1200px] flex",
        children: [s.jsxs("div", {
            className: "w-full h-full",
            children: [s.jsx("header", {
                children: s.jsx(H3, {
                    card: n
                })
            }), s.jsx("main", {
                children: s.jsx(g5, {
                    userID: n.id,
                    viewMidia: g
                })
            }), s.jsx("footer", {
                children: s.jsx(S5, {
                    setViewMidia: x,
                    viewMidia: g,
                    userID: n.id
                })
            })]
        }), s.jsx(t4, {})]
    })
}
const n4 = (n = 0) => n > 99 ? "+99" : n.toString();

function l4({
    card: n
}) {
    const {
        getCard: u,
        updateCard: i
    } = hn(), d = u(n.id), {
        open: g
    } = Ka(), {
        open: x
    } = zu(), {
        open: p
    } = Wt(), {
        isBusiness: w
    } = We(), {
        getNotes: M
    } = Au(), T = M(n.id)?.length || 0, {
        agendamentos: R
    } = Aa(), [A, z] = W.useState(0);
    W.useEffect(() => {
        const Z = R.filter(ce => ce.userID === n.id);
        z(Z.length)
    }, [R]);
    const O = () => {
        x(s.jsx(a4, {
            card: n
        })), d.unreadMessages > 0 && (Ge.Chat("markIsRead", {
            id: n.id
        }), chrome.runtime.sendMessage({
            action: "chat.markIsRead",
            userId: n.id
        }), window.postMessage({
            action: "chat.markIsRead",
            userId: n.id
        }, "*")), setTimeout(() => i(n.id), 2e3)
    },
        L = ({
            count: Z
        }) => Z <= 0 ? null : s.jsx("span", {
            className: "absolute -bottom-2 -right-1 flex items-center justify-center min-w-4 h-4 px-1 text-xs font-medium rounded-full text-white bg-[var(--primaria)] shadow-sm transform transition-transform duration-200 overflow-hidden text-ellipsis whitespace-nowrap max-w-[3ch]",
            children: n4(Z)
        }),
        G = s.jsx("div", {
            className: "flex pulse pl-2 cursor-pointer text-gray-400 dark:text-gray-600",
            onClick: Z => g(s.jsx(K1, {
                userId: n.id,
                userLabels: d.labels
            }), {}, Z.currentTarget),
            children: d.labels && d.labels.length > 0 ? s.jsx("div", {
                className: "flex",
                children: d.labels.map((Z, ce) => s.jsx("span", {
                    style: ce !== 0 ? {
                        marginLeft: "-1rem",
                        color: Z.hexColor
                    } : {
                        color: Z.hexColor
                    },
                    children: s.jsx(Uy, {
                        className: "h-5 w-5"
                    })
                }, ce))
            }) : s.jsx("span", {
                children: s.jsx(ky, {
                    className: "h-5 w-5 text-gray-400"
                })
            })
        });
    return s.jsxs("div", {
        className: "flex items-center justify-between p-1",
        children: [s.jsxs("div", {
            className: "flex text-gray-500 space-x-3",
            children: [s.jsxs("button", {
                className: "relative group hover:text-[var(--primaria)] flex items-center justify-center rounded-full transition-transform  duration-200",
                onClick: () => p(s.jsx(q0, {
                    userID: n.id,
                    viwerModel: "modal",
                    id: "notes_crm"
                })),
                children: [s.jsx(fp, {
                    className: "h-5 w-5"
                }), s.jsx(L, {
                    count: T
                })]
            }), s.jsxs("button", {
                className: "relative group hover:text-[var(--primaria)] flex items-center justify-center rounded-full transition-transform duration-200",
                onClick: () => p(s.jsx(Ru, {
                    userId: n.id,
                    name: d.name
                })),
                children: [s.jsx(hp, {
                    className: "h-5 w-5"
                }), s.jsx(L, {
                    count: A
                })]
            }), s.jsxs("button", {
                className: "relative group hover:text-[var(--primaria)] flex items-center justify-center rounded-full transition-transform duration-200",
                onClick: O,
                children: [s.jsx(gp, {
                    className: "h-5 w-5"
                }), s.jsx(L, {
                    count: d.unreadMessages
                })]
            }), s.jsx("button", {
                className: "relative group hover:text-[var(--primaria)] flex items-center justify-center rounded-full transition-transform duration-200",
                onClick: () => {
                    O(), setTimeout(() => p(s.jsx(zd, {})), 1e3)
                },
                children: s.jsx(ey, {
                    className: "h-5 w-5"
                })
            })]
        }), w && G]
    })
}

function E0({
    dragging: n
}) {
    return s.jsx("div", {
        className: "flex-shrink-0 rounded-md border-2 border-dashed border-slate-300 dark:border-slate-600 bg-slate-100/50 dark:bg-slate-800/50",
        style: {
            height: n.height,
            boxShadow: "inset 0 0 12px rgba(0, 0, 0, 0.05)"
        }
    })
}

function i4({
    card: n
}) {
    const {
        getCard: u
    } = hn(), i = u(n.id), d = x => {
        let p = 0;
        return x.forEach(w => {
            p += parseFloat(w.valor)
        }), p
    };
    return s.jsx("div", {
        className: "pl-1 stat-value text-[12px] text-gray-600 dark:text-gray-300 font-bold !leading-none flex-col",
        children: i.valNegocio && i.valNegocio.length !== 0 && d(i.valNegocio).toLocaleString("pt-BR", {
            style: "currency",
            currency: "BRL"
        })
    })
}

function r4(n, u) {
    const {
        ativeCRM: i
    } = ea.getState(), {
        setRemoveUser: d
    } = at.getState();
    switch (i) {
        case "Abas":
            d(u, !1, n);
            break;
        case "Etiquetas":
            Ge.Labels("addOrRemoveLabels", {
                id: u,
                label: [{
                    labelId: n,
                    type: "remove"
                }]
            });
            break;
        default:
            Sx(i, n, u);
            break
    }
}

function s4({
    card: n,
    columnId: u
}) {
    return s.jsx("div", {
        className: "flex items-end justify-between",
        children: s.jsx("div", {
            onClick: d => r4(u, n.id),
            children: s.jsx("span", {
                className: "pulse !cursor-pointer",
                children: s.jsx(mp, {
                    className: "h-5 w-5 text-gray-500 dark:text-white hover:text-[var(--primaria)] dark:hover:text-[var(--primaria)]"
                })
            })
        })
    })
}

function c4({
    card: n
}) {
    const {
        getCard: u
    } = hn(), i = u(n.id);
    return s.jsx("div", {
        className: "items-end justify-between stat-value text-[12px] text-gray-500 dark:text-gray-400 !leading-none",
        children: i.entrada && ll.converterData(i.entrada)
    })
}
const o4 = {
    idle: "hover:outline outline-2 outline-neutral-50 cursor-grab active:cursor-grabbing transition-transform duration-200 hover:shadow-xl hover:scale-[1.01]",
    "is-dragging": "opacity-40"
},
    u4 = {
        "is-dragging-and-left-self": "hidden"
    };

function M0({
    card: n,
    state: u,
    columnId: i,
    column: d,
    outerRef: g,
    innerRef: x
}) {
    return s.jsxs("div", {
        ref: g,
        className: `flex flex-shrink-0 flex-col gap-2 p-2 py-1 ${u4[u.type]}`,
        children: [u.type === "is-over" && u.closestEdge === "top" ? s.jsx(E0, {
            dragging: u.dragging
        }) : null, s.jsxs("div", {
            className: `group bg-[var(--background-default)] p-1 text-black dark:text-white rounded-md ${o4[u.type]}`,
            ref: x,
            children: [s.jsxs("div", {
                className: "flex justify-between",
                children: [s.jsx(k3, {
                    card: n
                }), i !== "Inbox" && s.jsx("div", {
                    className: "mb-auto mt-0 hidden group-hover:flex",
                    children: s.jsx(s4, {
                        card: n,
                        columnId: i
                    })
                })]
            }), s.jsxs("div", {
                className: "p-1 flex justify-between overflow-hiden",
                children: [s.jsx(i4, {
                    card: n,
                    columnId: i
                }), s.jsx(c4, {
                    card: n,
                    columnId: i
                })]
            }), s.jsx("div", {
                className: "mt-auto mb-0 flex justify-between gap-3",
                children: s.jsx(l4, {
                    card: n
                })
            })]
        }), u.type === "is-over" && u.closestEdge === "bottom" ? s.jsx(E0, {
            dragging: u.dragging
        }) : null]
    })
}
const Lf = {
    type: "idle"
},
    d4 = W.memo(function ({
        card: u,
        columnId: i
    }) {
        const {
            closeSearchInContainer: d
        } = ih(), g = W.useRef(null), x = W.useRef(null), [p, w] = W.useState(Lf);
        return W.useEffect(() => {
            const M = g.current,
                T = x.current;
            return Xr(M && T), Xo(Ug({
                element: T,
                getInitialData: ({
                    element: R
                }) => a3({
                    card: u,
                    columnId: i,
                    rect: R.getBoundingClientRect()
                }),
                onGenerateDragPreview({
                    nativeSetDragImage: R,
                    location: A,
                    source: z
                }) {
                    const O = z.data;
                    Xr(Os(O)), Z1({
                        nativeSetDragImage: R,
                        getOffset: I1({
                            element: T,
                            input: A.current.input
                        }),
                        render({
                            container: L
                        }) {
                            w({
                                type: "preview",
                                container: L,
                                dragging: T.getBoundingClientRect()
                            })
                        }
                    })
                },
                onDragStart() {
                    d(), w({
                        type: "is-dragging"
                    })
                },
                onDrop() {
                    w(Lf)
                }
            }), T1({
                element: M,
                getIsSticky: () => !0,
                canDrop: Uo,
                getData: ({
                    element: R,
                    input: A
                }) => {
                    const z = n3({
                        card: u,
                        columnId: i
                    });
                    return r3(z, {
                        element: R,
                        input: A,
                        allowedEdges: ["top", "bottom"]
                    })
                },
                onDragEnter({
                    source: R,
                    self: A
                }) {
                    if (!Os(R.data)) return;
                    const z = bg(A.data);
                    z && w({
                        type: "is-over",
                        dragging: R.data.rect,
                        closestEdge: z
                    })
                },
                onDrag({
                    source: R,
                    self: A
                }) {
                    if (!Os(R.data)) return;
                    const z = bg(A.data);
                    if (!z) return;
                    const O = {
                        type: "is-over",
                        dragging: R.data.rect,
                        closestEdge: z
                    };
                    w(L => Q1(O, L) ? L : O)
                },
                onDragLeave({
                    source: R
                }) {
                    Os(R.data) && w(Lf)
                },
                onDrop() {
                    w(Lf)
                }
            }))
        }, [u, i]), s.jsxs(s.Fragment, {
            children: [s.jsx(M0, {
                outerRef: g,
                innerRef: x,
                state: p,
                card: u,
                columnId: i
            }), p.type === "preview" ? D0.createPortal(s.jsx(M0, {
                state: p,
                card: u,
                columnId: i
            }), p.container) : null]
        })
    }),
    f4 = ({
        column: n
    }) => {
        const {
            language: u
        } = Ce();
        return s.jsxs($t.div, {
            className: "flex flex-col items-center justify-center h-40 p-6 rounded-xl text-center shadow-sm",
            initial: {
                opacity: 0,
                y: 10
            },
            animate: {
                opacity: 1,
                y: 0
            },
            transition: {
                duration: .5
            },
            children: [s.jsxs($t.div, {
                className: "relative mb-5",
                initial: {
                    scale: .8
                },
                animate: {
                    scale: 1
                },
                transition: {
                    duration: .5
                },
                children: [s.jsx($t.div, {
                    className: "absolute inset-0 rounded-full bg-[var(--panel-header-background)]",
                    animate: {
                        scale: [1, 1.15, 1],
                        opacity: [.7, .5, .7]
                    },
                    transition: {
                        duration: 3,
                        repeat: 1 / 0,
                        ease: "easeInOut"
                    }
                }), s.jsx($t.div, {
                    animate: {
                        y: [0, -5, 0]
                    },
                    transition: {
                        duration: 2,
                        repeat: 1 / 0,
                        ease: "easeInOut"
                    },
                    className: "relative z-10",
                    children: s.jsx(vp, {
                        size: 38
                    })
                })]
            }), s.jsx($t.h3, {
                className: "text-sm font-medium text-slate-800 dark:text-white mb-2",
                initial: {
                    opacity: 0
                },
                animate: {
                    opacity: 1
                },
                transition: {
                    delay: .3
                },
                children: u.nenhumContatoEncontrado
            }), s.jsx($t.p, {
                className: "text-xs text-slate-500 max-w-xs",
                initial: {
                    opacity: 0
                },
                animate: {
                    opacity: 1
                },
                transition: {
                    delay: .5
                },
                children: u.ajusteSuaPesquisa
            })]
        })
    },
    h4 = W.memo(function ({
        column: u
    }) {
        const {
            getContainer: i
        } = ih(), {
            search: d,
            filterCards: g
        } = i(u.id)(), x = W.useRef(null), [p, w] = W.useState(!1), M = d ? g : u.cards, T = z3({
            count: M.length,
            getScrollElement: () => x.current,
            estimateSize: () => 88,
            overscan: 0,
            enabled: !p
        }), R = s.jsx("div", {
            "data-id": "renderCards-customScrollBar",
            ref: x,
            className: "overflow-y-auto bg-[var(--panel-header-background)]",
            children: s.jsx("div", {
                style: {
                    height: T.getTotalSize(),
                    position: "relative"
                },
                children: T.getVirtualItems().map(A => {
                    const z = M[A.index];
                    return s.jsx("div", {
                        "data-index": A?.index,
                        ref: O => {
                            T.measureElement(O), O && Ug({
                                element: O,
                                onDragStart: () => w(!0),
                                onDrop: () => w(!1)
                            })
                        },
                        style: {
                            position: "absolute",
                            top: 0,
                            left: 0,
                            width: "100%",
                            transform: `translateY(${A.start}px)`,
                            zIndex: p ? 1e3 : "auto"
                        },
                        children: s.jsx(d4, {
                            card: z,
                            columnId: u.id
                        })
                    }, z.id)
                })
            })
        });
        return d && g.length === 0 ? s.jsx(f4, {
            column: u.id
        }) : R
    });

function g4({
    dragging: n
}) {
    return s.jsx("div", {
        className: "flex-shrink-0 rounded-md border-2 border-dashed border-slate-300 dark:border-slate-600 bg-[var(--panel-header-background)]/50",
        style: {
            height: n.height,
            boxShadow: "inset 0 0 12px rgba(0, 0, 0, 0.05)"
        }
    })
}

function m4({
    column: n
}) {
    const {
        ativeCRM: u
    } = ea(), {
        language: i
    } = Ce(), {
        close: d
    } = Wt(), [g, x] = W.useState(n.color), p = () => {
        wx(u, n.id, g), pe({
            type: "Success",
            message: i.CRM_corAlterada,
            position: "top-right"
        }), d()
    };
    return s.jsxs("div", {
        className: "w-80 grid gap-4",
        children: [s.jsx(sl, {
            children: i.CRM_corEdit
        }), s.jsx(h1, {
            plugin_page: !0,
            colorInicial: n.color,
            onChange: M => x(M)
        }), s.jsx(ra, {
            name: i.save,
            funcao: p
        })]
    })
}

function v4(n, u) {
    const i = new Blob([Uint8Array.from(atob(n), g => g.charCodeAt(0))], {
        type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
    }),
        d = document.createElement("a");
    d.href = URL.createObjectURL(i), d.download = u, d.click(), d.remove()
}
const b4 = (n, u) => n.map(i => {
    const d = u.find(g => g.id === i.id);
    return d ? {
        ...i,
        ...d
    } : i
});
async function x4(n) {
    const {
        language: u
    } = Ce.getState(), {
        session: i
    } = Vr.getState(), {
        config: d
    } = Ng.getState(), {
        cards: g
    } = hn.getState();
    let x = b4(n.cards, g);
    if (i.is_premium || (x = x.slice(0, 5), pe({
        type: "Info",
        message: "Modo gratuito permite apenas até 5 contatos exportados por aba",
        position: "top-right"
    })), x.length === 0) {
        pe({
            type: "Error",
            message: "Não há contatos para exportar",
            position: "top-right"
        });
        return
    }
    const p = {
        contacts: x,
        labelName: d.nameID,
        tag: n.name
    };
    try {
        const w = await fetch(`${Cx.backend_utils}api/XLSX/exporttab`, {
            method: "POST",
            headers: {
                "Content-Type": "application/json"
            },
            body: JSON.stringify(p)
        });
        if (!w.ok) throw new Error("Erro ao enviar dados para o servidor");
        const M = await w.json();
        v4(M.XLSXbase64, `${d.nameID}_aba_${n.name}.xlsx`), pe({
            type: "Success",
            message: u.exportSuccess,
            position: "top-right"
        })
    } catch (w) {
        console.error("Erro ao exportar contatos:", w), pe({
            type: "Error",
            message: u.erroEnvio,
            position: "top-right"
        })
    }
}

function p4(n) {
    const {
        language: u
    } = Ce(), {
        ativeCRM: i
    } = ea(), {
        open: d
    } = Wt(), g = at(p => p.setVisibilityUserTab), x = [{
        id: 0,
        nome: u.CRM_renomearAba,
        type: ["Abas", "CRM"],
        is_inbox: !1,
        icon: s.jsx(Dy, {
            size: 18
        }),
        funcao: () => v1(n)
    }, {
        id: 1,
        nome: u.CRM_deletarAba,
        type: ["Abas", "CRM"],
        is_inbox: !1,
        icon: s.jsx(bp, {
            size: 18
        }),
        funcao: () => m1(n)
    }, {
        id: 2,
        nome: u.CRM_exportarAba,
        type: ["Abas", "CRM", "Etiquetas", "Inbox"],
        is_inbox: !1,
        icon: s.jsx(jy, {
            size: 18
        }),
        funcao: () => x4(n)
    }, {
        id: 3,
        nome: u.CRM_alterCorAba,
        type: ["CRM"],
        is_inbox: !1,
        icon: s.jsx(xp, {
            size: 18
        }),
        funcao: () => d(s.jsx(m4, {
            column: n
        }))
    }, {
        id: 4,
        nome: u.menuTab_ocutar,
        type: ["Abas"],
        is_inbox: !1,
        icon: s.jsx(pp, {
            size: 18
        }),
        funcao: () => g(n.id)
    }];
    return n.is_inbox ? x.filter(p => p.type.includes("Inbox")) : i === "Abas" ? x.filter(p => p.type.includes("Abas")) : i === "Etiquetas" ? x.filter(p => p.type.includes("Etiquetas")) : x.filter(p => p.type.includes("CRM"))
}

function y4({
    column: n
}) {
    const {
        close: u
    } = Ka();
    return s.jsxs("div", {
        className: "p-2 min-w-64",
        children: [s.jsxs("div", {
            className: "flex gap-1 ml-[6px] pb-1 items-center",
            children: [s.jsxs("span", {
                children: [" ", s.jsx(ah, {
                    color: n.color
                }), " "]
            }), s.jsx(sl, {
                children: n.name
            })]
        }), s.jsx("div", {
            children: p4(n).map(d => s.jsx(Nn, {
                id: d.id.toString(),
                content: d.nome,
                icon: s.jsx("span", {
                    className: "text-[var(--icon)]",
                    children: d.icon
                }),
                setFunction: () => {
                    d.funcao(), u()
                }
            }))
        })]
    })
}

function S4({
    column: n
}) {
    const u = Ce.getState().idioma,
        {
            cards: i
        } = hn(),
        d = () => {
            let T = 0;
            const R = n.cards || [],
                A = new Set(R.map(z => z.id));
            return i.forEach(z => {
                A.has(z.id) && z.valNegocio && Array.isArray(z.valNegocio) && z.valNegocio.forEach(O => {
                    T += parseFloat(O.valor || 0)
                })
            }), T
        },
        g = T => T >= 1e12 ? (T / 1e12).toFixed(1) + "T" : T >= 1e9 ? (T / 1e9).toFixed(1) + "B" : T >= 1e6 ? (T / 1e6).toFixed(1) + "M" : T >= 1e3 ? (T / 1e3).toFixed(1) + "K" : T.toFixed(2),
        x = d(),
        p = {
            pt: "pt-BR",
            en: "en-US",
            es: "es-ES"
        },
        w = {
            pt: "BRL",
            en: "USD",
            es: "EUR"
        },
        M = x.toLocaleString(p[u], {
            style: "currency",
            currency: w[u]
        });
    return s.jsxs("span", {
        className: "cursor-pointer pulse lg:tooltip lg:tooltip-right",
        "data-tip": M,
        children: [u === "pt" ? "R$" : "$", " ", g(x)]
    })
}

function w4({
    column: n,
    headerRef: u
}) {
    const {
        getContainer: i
    } = ih(), {
        search: d,
        setSearch: g,
        text: x,
        setText: p
    } = i(n.id)(), {
        open: w
    } = Ka(), {
        language: M
    } = Ce();
    return s.jsx($t.div, {
        className: "rounded-t-md relative backdrop-blur-sm",
        style: {
            borderTop: `3px solid ${n.color}`
        },
        initial: {
            opacity: .8
        },
        animate: {
            opacity: 1
        },
        transition: {
            duration: .3
        },
        ref: u,
        children: s.jsx("div", {
            className: "px-1.5 bg-[var(--panel-header-background)]",
            children: s.jsx(_u, {
                mode: "wait",
                children: d ? s.jsx($t.div, {
                    className: "flex items-center w-full",
                    initial: {
                        opacity: 0,
                        y: -10
                    },
                    animate: {
                        opacity: 1,
                        y: 0
                    },
                    exit: {
                        opacity: 0,
                        y: -10
                    },
                    transition: {
                        duration: .2
                    },
                    children: s.jsxs($t.div, {
                        className: "relative flex items-center w-full py-1",
                        children: [s.jsxs($t.div, {
                            className: "flex items-center w-full bg-white/90 dark:bg-gray-700/90 rounded-md px-2 shadow-sm",
                            initial: {
                                scale: .98
                            },
                            animate: {
                                scale: 1
                            },
                            transition: {
                                type: "spring",
                                stiffness: 300,
                                damping: 20
                            },
                            children: [s.jsx(Sv, {
                                className: "text-gray-800 dark:text-gray-300 mr-1.5",
                                size: 12
                            }), s.jsx("input", {
                                type: "text",
                                value: x,
                                onChange: T => p(T.target.value),
                                placeholder: M.pesquisar,
                                className: "bg-transparent text-gray-800 dark:text-gray-100 text-sm py-1 w-full focus:outline-none placeholder:text-gray-400 dark:placeholder:text-gray-500",
                                autoFocus: !0
                            })]
                        }), s.jsx($t.button, {
                            type: "button",
                            className: "absolute right-1 p-1 rounded-full bg-gray-200/80 dark:bg-gray-600/80 hover:bg-gray-300/90 dark:hover:bg-gray-500/90 text-gray-600 dark:text-gray-300",
                            onClick: () => g(!1),
                            whileHover: {
                                scale: 1.1
                            },
                            whileTap: {
                                scale: .95
                            },
                            children: s.jsx(Vg, {
                                size: 14
                            })
                        })]
                    })
                }, "search") : s.jsx($t.div, {
                    className: "flex flex-col w-full",
                    initial: {
                        opacity: 0,
                        y: 10
                    },
                    animate: {
                        opacity: 1,
                        y: 0
                    },
                    exit: {
                        opacity: 0,
                        y: 10
                    },
                    transition: {
                        duration: .2
                    },
                    children: s.jsxs("div", {
                        className: "flex items-center justify-between",
                        children: [s.jsxs($t.div, {
                            className: "flex items-center",
                            children: [s.jsx("h3", {
                                className: "p-1 font-sans uppercase text-md font-semibold text-gray-700 dark:text-gray-300 truncate max-w-[110px] tracking-tight",
                                children: n.name
                            }), s.jsx("span", {
                                className: "ml-2 text-gray-800 bg-gray-300 dark:bg-gray-700 dark:text-gray-300 px-1 rounded-md text-xs",
                                children: n.cards.length
                            }), n.id !== "Inbox" && s.jsx("div", {
                                className: "ml-2 text-gray-800 bg-gray-300 dark:bg-gray-700 dark:text-gray-300 px-1 rounded-md text-xs",
                                children: s.jsx(S4, {
                                    column: n
                                })
                            })]
                        }), s.jsxs("div", {
                            className: "flex gap-1",
                            children: [n.cards.length > 0 && s.jsx($t.button, {
                                type: "button",
                                className: "p-1 rounded-full text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-500 transition-colors duration-150",
                                onClick: () => g(!0),
                                whileHover: {
                                    scale: 1.1
                                },
                                whileTap: {
                                    scale: .95
                                },
                                children: s.jsx(Sv, {
                                    size: 14
                                })
                            }), s.jsx($t.button, {
                                type: "button",
                                className: "p-1 rounded-full text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-500 transition-colors duration-150",
                                onClick: T => w(s.jsx(y4, {
                                    column: n
                                }), {
                                    placement: "right-start"
                                }, T.target),
                                whileHover: {
                                    scale: 1.1
                                },
                                whileTap: {
                                    scale: .95
                                },
                                children: s.jsx(yp, {
                                    size: 14
                                })
                            })]
                        })]
                    })
                }, "title")
            })
        })
    })
}
const C4 = {
    idle: "",
    "is-card-over": "",
    "is-dragging": "opacity-60 shadow-lg",
    "is-column-over": "ring-2 ring-slate-300 dark:ring-slate-600 ring-inset bg-[var(--panel-header-background)]/30"
};

function N4({
    outerFullHeightRef: n,
    state: u,
    innerRef: i,
    column: d,
    headerRef: g,
    scrollableRef: x
}) {
    return s.jsx("div", {
        className: "flex w-64 flex-shrink-0 select-none flex-col",
        ref: n,
        children: s.jsxs("div", {
            className: `relative flex max-h-full flex-col rounded-lg overflow-hidden shadow-sm ${C4[u.type]}`,
            ref: i,
            [P1]: !0,
            children: [s.jsx("div", {
                className: "absolute bottom-0 left-0 w-full h-1",
                style: {
                    backgroundColor: d.color
                }
            }), s.jsxs("div", {
                className: `flex max-h-full flex-col ${u.type === "is-column-over" ? "invisible" : ""}`,
                children: [s.jsx(w4, {
                    column: d,
                    headerRef: g
                }), s.jsxs("div", {
                    className: "flex mb-2 flex-col overflow-y-auto overflow-x-hidden custom-scrollbar [overflow-anchor:none] scrollbar-thin",
                    ref: x,
                    children: [s.jsx(h4, {
                        column: d
                    }), u.type === "is-card-over" && !u.isOverChildCard ? s.jsx("div", {
                        className: "flex-shrink-0 px-3 py-1",
                        children: s.jsx(g4, {
                            dragging: u.dragging
                        })
                    }) : null]
                })]
            })]
        })
    })
}
const T4 = n => s.jsx("div", {
    className: "flex w-72 flex-shrink-0 select-none flex-col",
    children: s.jsx("div", {
        className: "flex max-h-full flex-col rounded-lg text-neutral-50",
        style: {
            backgroundColor: n.color
        },
        children: s.jsx("div", {
            className: "flex max-h-full flex-col",
            children: s.jsx("div", {
                className: "flex flex-row items-center justify-between p-3 pb-2",
                children: s.jsxs("div", {
                    className: "pl-2 font-bold leading-4",
                    children: [n.name, " (", n.cards.length, ")"]
                })
            })
        })
    })
}),
    Uf = {
        type: "idle"
    },
    E4 = W.memo(function ({
        column: u
    }) {
        const {
            settings: i
        } = zs(), {
            closeSearchInContainer: d
        } = ih(), g = W.useRef(null), x = W.useRef(null), p = W.useRef(null), w = W.useRef(null), [M, T] = W.useState(Uf);
        return W.useEffect(() => {
            const R = x.current,
                A = g.current,
                z = p.current,
                O = w.current;
            Xr(R), Xr(A), Xr(z), Xr(O);
            const L = l3({
                column: u
            });

            function G({
                data: Z,
                location: ce
            }) {
                const re = ce.current.dropTargets[0],
                    ve = !!(re && H1(re.data)),
                    he = {
                        type: "is-card-over",
                        dragging: Z.rect,
                        isOverChildCard: ve
                    };
                T(Se => Q1(he, Se) ? Se : he)
            }
            return Xo(Ug({
                element: z,
                getInitialData: () => L,
                onGenerateDragPreview({
                    source: Z,
                    location: ce,
                    nativeSetDragImage: re
                }) {
                    const ve = Z.data;
                    Xr(Bo(ve)), Z1({
                        nativeSetDragImage: re,
                        getOffset: I1({
                            element: z,
                            input: ce.current.input
                        }),
                        render({
                            container: he
                        }) {
                            const Se = O.getBoundingClientRect(),
                                xe = document.createElement("div");
                            xe.innerHTML = m3.renderToString(T4(u)), Xr(xe instanceof HTMLElement), xe.style.width = `${Se.width}px`, xe.style.height = `${Se.height}px`, y3() || (xe.style.transform = "rotate(4deg)"), he.appendChild(xe)
                        }
                    })
                },
                onDragStart() {
                    d(), T({
                        type: "is-dragging"
                    })
                },
                onDrop() {
                    T(Uf)
                }
            }), T1({
                element: R,
                getData: () => L,
                canDrop({
                    source: Z
                }) {
                    return Uo({
                        source: Z
                    }) || Gf({
                        source: Z
                    })
                },
                getIsSticky: () => !0,
                onDragStart({
                    source: Z,
                    location: ce
                }) {
                    Os(Z.data) && G({
                        data: Z.data,
                        location: ce
                    })
                },
                onDragEnter({
                    source: Z,
                    location: ce
                }) {
                    if (Os(Z.data)) {
                        G({
                            data: Z.data,
                            location: ce
                        });
                        return
                    }
                    Bo(Z.data) && Z.data.column.id !== u.id && T({
                        type: "is-column-over"
                    })
                },
                onDropTargetChange({
                    source: Z,
                    location: ce
                }) {
                    if (Os(Z.data)) {
                        G({
                            data: Z.data,
                            location: ce
                        });
                        return
                    }
                },
                onDragLeave({
                    source: Z
                }) {
                    Bo(Z.data) && Z.data.column.id === u.id || T(Uf)
                },
                onDrop() {
                    T(Uf)
                }
            }), k1({
                canScroll({
                    source: Z
                }) {
                    return i.isOverElementAutoScrollEnabled ? Uo({
                        source: Z
                    }) : !1
                },
                getConfiguration: () => ({
                    maxScrollSpeed: i.columnScrollSpeed
                }),
                element: A
            }), L1({
                element: A,
                getConfiguration: () => ({
                    maxScrollSpeed: i.columnScrollSpeed
                }),
                canScroll({
                    source: Z
                }) {
                    return !i.isOverElementAutoScrollEnabled || !i.isOverflowScrollingEnabled ? !1 : Uo({
                        source: Z
                    })
                },
                getOverflow() {
                    return {
                        forTopEdge: {
                            top: 1e3
                        },
                        forBottomEdge: {
                            bottom: 1e3
                        }
                    }
                }
            }))
        }, [u, i]), s.jsx(N4, {
            outerFullHeightRef: x,
            state: M,
            innerRef: w,
            column: u,
            headerRef: p,
            scrollableRef: g
        })
    });

function M4() {
    const {
        settings: n
    } = zs(), {
        data: u
    } = ea(), i = W.useRef(null);
    return u3(i), W.useEffect(() => {
        let d = null;
        const g = i.current;
        Xr(g);

        function x({
            startX: w
        }) {
            let M = w;
            const T = Wc.bindAll(window, [{
                type: "pointermove",
                listener(R) {
                    const A = R.clientX,
                        z = M - A;
                    M = A, g?.scrollBy({
                        left: z
                    })
                }
            }, ...["pointercancel", "pointerup", "pointerdown", "keydown", "resize", "click", "visibilitychange"].map(R => ({
                type: R,
                listener: () => T()
            }))], {
                capture: !0
            });
            d = T
        }
        const p = Wc.bindAll(g, [{
            type: "pointerdown",
            listener(w) {
                w.target instanceof HTMLElement && (w.target.closest(`[${P1}]`) || x({
                    startX: w.clientX
                }))
            }
        }]);
        return function () {
            p(), d?.()
        }
    }, []), s.jsx("div", {
        className: `flex h-full flex-col ${n.isBoardMoreObvious ? "px-32 py-20" : ""}`,
        children: s.jsx("div", {
            "data-id": "renderCards-customScrollBar",
            className: `flex h-full flex-row gap-3 overflow-x-auto p-3  ${n.isBoardMoreObvious ? "rounded border-2 border-dashed" : ""}`,
            ref: i,
            children: u.columns.map(d => s.jsx(E4, {
                column: d
            }, d.id))
        })
    })
}

function A4(n) {
    if (n.startsWith("55")) {
        const u = n.replace(/\D/g, ""),
            i = /^(55)(\d{2})(\d{4,5})(\d{4})$/,
            d = u.match(i);
        if (d) {
            const g = d[2],
                x = d[3],
                p = d[4];
            return `+${d[1]} (${g}) ${x}-${p}`
        } else throw new Error("Número de telefone inválido")
    } else return n
}
async function R4() {
    const n = await Ge.Conn("getMyUserId"),
        u = await Ge.Profile("getMyProfileName"),
        i = A4(n),
        d = await Ge.Contact("getProfilePictureUrl", n);
    return {
        name: u,
        phone: i,
        profilePic: d === "undefined" ? void 0 : d
    }
}

function _4() {
    const [n, u] = W.useState(!0), [i, d] = W.useState(null), g = () => {
        u(!n)
    };
    return W.useEffect(() => {
        R4().then(x => d(x))
    }, []), s.jsxs("div", {
        className: "flex h-screen w-full bg-[var(--background-default)]",
        children: [s.jsx(Py, {
            sidebarCollapsed: n,
            toggleSidebar: g,
            profile: i
        }), s.jsx("div", {
            "data-id": "renderCards-customScrollBar",
            className: "flex-1 flex flex-col select-none overflow-x-auto",
            children: s.jsx("div", {
                "data-id": "Painel",
                className: "flex-1",
                style: {
                    maxHeight: "calc(100vh - 16px)"
                },
                children: s.jsx("div", {
                    className: "h-full overflow-x-auto",
                    children: s.jsx(M4, {})
                })
            })
        })]
    })
}

function O4() {
    const {
        menu: n
    } = Qr(), {
        open: u
    } = zu(), {
        ativeCRM: i
    } = ea(), {
        userTabs: d
    } = at();
    return d1()(p => {
        (p.altKey && p.keyCode === 77 || p.keyCode === 9) && u(s.jsx(g1, {})), p.altKey && p.keyCode === 65 && f1()
    }, [i, d]), s.jsx("div", {
        className: "flex gap-1 h-[100vh] " + (n === "Right" ? "flex-row-reverse" : n === "Bottom" ? "flex-col-reverse" : n === "Top" ? "flex-col" : ""),
        children: s.jsx(_4, {})
    })
}
const z4 = () => {
    const {
        language: n
    } = Ce(), {
        whatsappOpen: u
    } = We(), [i, d] = W.useState(!1), [g, x] = W.useState(!1);
    W.useEffect(() => {
        const M = setTimeout(() => d(!0), 2e3),
            T = setTimeout(() => x(!0), 5e3);
        return () => {
            clearTimeout(M), clearTimeout(T)
        }
    }, []);
    const p = s.jsxs(s.Fragment, {
        children: [s.jsx(Hp, {}), s.jsx(my, {}), s.jsx(Up, {}), s.jsx(hy, {}), s.jsx(O4, {}), s.jsx(Cp, {})]
    }),
        w = s.jsxs(s.Fragment, {
            children: [!g && s.jsx(wp, {}), i && p]
        });
    return u ? w : s.jsx(Sp, {
        language: n
    })
},
    ab = () => {
        const {
            config: n,
            is_load: u
        } = Ng.getState();
        if (!u) setTimeout(ab, 350);
        else {
            const i = document.createElement("link");
            i.rel = "stylesheet", i.type = "text/css", i.href = chrome.runtime.getURL(`label/css/${n.nameID}.css`), document.head.appendChild(i), document.querySelector("#title").innerHTML = n.primeiroNome + " CRM", (() => {
                const d = document.querySelector("#app");
                if (!d) throw new Error("Can not find #app");
                fy.createRoot(d).render(s.jsx(z4, {}))
            })()
        }
    };
ab();
export {
    X4 as B, o5 as C, Dg as E, x1 as F, J4 as G, P4 as I, Q4 as M, K4 as S, Y4 as T, js as V, og as a, gy as b, G4 as c, f0 as d, $1 as e, V4 as f, Z4 as g, I4 as h, Au as i, Zf as j, W4 as k, Yf as l, d0 as m, x5 as n, vy as s, wv as u
};