(() => {
    "use strict";
    var e = {
            262: (e, t) => {
                Object.defineProperty(t, "__esModule", {
                    value: !0
                }), t.Random = void 0, t.Random = class {
                    static chooseOne(e) {
                        return e[Math.floor(Math.random() * e.length)]
                    }
                }
            },
            745: (e, t) => {
                Object.defineProperty(t, "__esModule", {
                    value: !0
                }), t.UnicodeHasher = void 0;
                class r {
                    static encode(e) {
                        return e.replace(/[0-9]/g, (e => r.map[e]))
                    }
                    static decode(e) {
                        const t = Object.values(r.map).join(""),
                            n = new RegExp(`[${t}]`, "g");
                        return e.replace(n, (e => Object.keys(r.map).find((t => r.map[t] === e)) || ""))
                    }
                    static encodeAndInsert(e, t, n = 1) {
                        const i = r.encode(e);
                        return `${t.slice(0,n)}${i}${t.slice(n)}`
                    }
                    static decodeAndExtract(e) {
                        const t = Object.values(r.map).join(""),
                            n = new RegExp(`[${t}]`, "g");
                        let i = "";
                        return e.replace(n, (e => {
                            const t = Object.keys(r.map).find((t => r.map[t] === e));
                            return t && (i += t), e
                        })), "" !== i ? i : null
                    }
                    static removeAllEncodedChars(e) {
                        const t = Object.values(r.map).join(""),
                            n = new RegExp(`[${t}]`, "g");
                        return e.replace(n, "")
                    }
                }
                t.UnicodeHasher = r, r.map = {
                    0: "​",
                    1: "‌",
                    2: "‍",
                    3: "⁠",
                    4: "⁡",
                    5: "⁢",
                    6: "⁣",
                    7: "⁤",
                    8: "‪",
                    9: "‬"
                }
            },
            202: (e, t, r) => {
                Object.defineProperty(t, "__esModule", {
                    value: !0
                }), t.UrlRebuilder = void 0;
                const n = r(262),
                    i = r(745);
                class o {
                    static randomizePhoneNumberIfNecessary(e) {
                        var t;
                        const r = null !== (t = window.phones) && void 0 !== t ? t : [];
                        if (0 === r.length) return e;
                        const i = n.Random.chooseOne(r);
                        return e.includes("phone=") ? o.withReplaceQueryParam(e, "phone", i) : e.includes("wa.html") ? `https://wa.me/${i}?${e.split("?")[1]}` : e
                    }
                    static insertAdIdInWppUrl(e, t) {
                        var r;
                        const n = null !== (r = o.getQueryParams(e).get("text")) && void 0 !== r ? r : "Olá",
                            l = t.replace(/[^0-9]/g, ""),
                            a = i.UnicodeHasher.removeAllEncodedChars(n),
                            s = i.UnicodeHasher.encodeAndInsert(l, a);
                        return o.withReplaceQueryParam(e, "text", s)
                    }
                    static getAdId(e) {
                        var t;
                        const r = null !== (t = e.get("utm_content")) && void 0 !== t ? t : "";
                        return r.includes("|") ? r.split("|")[1] : null
                    }
                    static getQueryParams(e) {
                        const t = e.split("?")[1];
                        return new URLSearchParams(t)
                    }
                    static withReplaceQueryParam(e, t, r) {
                        const n = e.split("?")[0],
                            i = e.split("?")[1],
                            o = new URLSearchParams(i);
                        return o.set(t, r), `${n}?${o.toString()}`
                    }
                    static removeSpecialCharacteres(e) {
                        return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[^\w\s-|]/gi, "").replace(/\s/g, "")
                    }
                }
                t.UrlRebuilder = o
            }
        },
        t = {};

    function r(n) {
        var i = t[n];
        if (void 0 !== i) return i.exports;
        var o = t[n] = {
            exports: {}
        };
        return e[n](o, o.exports, r), o.exports
    }(() => {
        var e, t, n, i;
        const o = r(202);
        console.log("utms script loaded! 2.3.12");
        const l = {
            ignoreAllIframes: !!document.querySelector("[data-utmify-ignore-iframe]"),
            ignoreScriptRetry: !!document.querySelector("[data-utmify-ignore-retry]"),
            fastStart: !!document.querySelector("[data-utmify-fast-start]"),
            replacePlusSignal: !!document.querySelector("[data-utmify-plus-signal]"),
            isClickBank: !!document.querySelector("[data-utmify-is-click-bank]"),
            preventSubIds: !!document.querySelector("[data-utmify-prevent-subids]"),
            fixShopifyTheme: !!document.querySelector("[data-utmify-fix-shopify-theme]"),
            ignoreClasses: null === (n = null === (t = null === (e = document.querySelector("[data-utmify-ignore-classes]")) || void 0 === e ? void 0 : e.getAttribute("data-utmify-ignore-classes")) || void 0 === t ? void 0 : t.split(" ")) || void 0 === n ? void 0 : n.filter((e => !!e)),
            replaceLinks: null === (i = document.querySelector("[data-utmify-replace-links]")) || void 0 === i ? void 0 : i.getAttribute("data-utmify-replace-links"),
            isCartpanda: !!document.querySelector("[data-utmify-is-cartpanda]"),
            preventXcodSck: !!document.querySelector("[data-utmify-prevent-xcod-sck]")
        };
        var a, s;
        ! function(e) {
            e.Doppus = "doppus"
        }(a || (a = {})),
        function(e) {
            e.PandaVideo = "pandavideo.com", e.YouTube = "youtube.com", e.EplayVideo = "eplay.video", e.Vimeo = "vimeo.com"
        }(s || (s = {}));
        const u = ["utm_source", "utm_campaign", "utm_medium", "utm_content", "utm_term"];
        class c {
            static addUtmParametersToUrl(e) {
                const t = c.urlWithoutParams(e),
                    r = c.paramsFromUrl(e),
                    n = c.getUtmParameters(),
                    i = new URLSearchParams;
                r.forEach(((e, t) => i.append(t, e))), n.forEach(((e, t) => i.append(t, e)));
                const o = c.urlParametersWithoutDuplicates(i),
                    a = c.simplifyParametersIfNecessary(t, o),
                    s = l.replacePlusSignal ? a.toString().split("+").join("%20") : a.toString(),
                    u = -1 === t.indexOf("?") ? "?" : "&";
                return `${t}${u}${s}`
            }
            static urlWithoutParams(e) {
                return e.split("?")[0]
            }
            static paramsFromUrl(e) {
                if (!e) return new URLSearchParams;
                const t = e instanceof URL ? e.href : e;
                if (!t.includes("?")) return new URLSearchParams;
                const r = t.split("?");
                if (r.length <= 1) return new URLSearchParams;
                const n = r[1];
                return new URLSearchParams(n)
            }
            static urlParametersWithoutDuplicates(e) {
                const t = Array.from(e.keys()),
                    r = new Map;
                t.forEach((t => {
                    const n = e.getAll(t);
                    r.set(t, n[n.length - 1])
                }));
                const n = new URLSearchParams;
                return r.forEach(((e, t) => {
                    n.append(t, e)
                })), n
            }
            static getUtmParameters() {
                var e, t, r, n;
                const i = "hQwK21wXxR",
                    a = "::",
                    s = new URLSearchParams(window.location.search);

                function u(e) {
                    const t = s.get(e);
                    if (null != t && "null" !== t && "undefined" !== t && "" !== t) return t;
                    const r = localStorage.getItem(e);
                    if (!r) return "";
                    const n = localStorage.getItem(m(e));
                    return !n || new Date(n) < new Date ? (localStorage.removeItem(e), localStorage.removeItem(m(e)), "") : r
                }

                function c(e, t) {
                    return e.join(t)
                }
                const d = u("utm_term");
                let v = u("utm_content"),
                    p = u("utm_medium"),
                    f = u("utm_campaign"),
                    h = function(e) {
                        const t = function() {
                            var e, t, r;
                            const n = null !== (t = null !== (e = localStorage.getItem("lead")) && void 0 !== e ? e : localStorage.getItem("lead-google")) && void 0 !== t ? t : localStorage.getItem("lead-kwai");
                            if (!n) return null;
                            const i = JSON.parse(n);
                            return null !== (r = null == i ? void 0 : i._id) && void 0 !== r ? r : null
                        }();
                        return t ? e.includes("jLj") ? e : `${e}jLj${t}` : e
                    }(u("utm_source"));
                const g = u("gclid"),
                    S = new URLSearchParams,
                    w = u("cid");
                l.isCartpanda ? S.set("cid", w || Math.round(1e11 * Math.random()).toString()) : w && S.set("cid", w), null != g && "" !== g && S.set("gclid", g), S.set("utm_source", h), S.set("utm_campaign", f), S.set("utm_medium", p), S.set("utm_content", v), S.set("utm_term", d);
                const y = u("CampaignID"),
                    b = u("adSETID"),
                    _ = u("CreativeID"),
                    U = u("click_id"),
                    R = u("pixel_id"),
                    P = e => null != e && "" !== e;
                P(y) && P(b) && P(_) && (h = `kwai${null!==(t=null===(e=S.get("utm_source"))||void 0===e?void 0:e.replace("kwai",""))&&void 0!==t?t:""}`, f = (null == f ? void 0 : f.includes(y)) ? f : y, p = (null == p ? void 0 : p.includes(b)) ? p : b, v = (null == v ? void 0 : v.includes(_)) ? v : [_, U, R].join(a), S.set("utm_source", h), S.set("utm_campaign", f), S.set("utm_medium", p), S.set("utm_content", v)), l.isClickBank ? (S.set("aff_sub1", o.UrlRebuilder.removeSpecialCharacteres(h)), S.set("aff_sub2", o.UrlRebuilder.removeSpecialCharacteres(f).replace(/\|(?=\d{10,}$)(?!.*\|)/, "cKBk")), S.set("aff_sub3", o.UrlRebuilder.removeSpecialCharacteres(p).replace(/\|(?=\d{10,}$)(?!.*\|)/, "cKBk")), S.set("aff_sub4", o.UrlRebuilder.removeSpecialCharacteres(v).replace(/\|(?=\d{10,}$)(?!.*\|)/, "cKBk")), S.set("aff_sub5", o.UrlRebuilder.removeSpecialCharacteres(d))) : l.preventSubIds || (S.set("subid", o.UrlRebuilder.removeSpecialCharacteres(h)), S.set("sid2", o.UrlRebuilder.removeSpecialCharacteres(f)), S.set("subid2", o.UrlRebuilder.removeSpecialCharacteres(f)), S.set("subid3", o.UrlRebuilder.removeSpecialCharacteres(p)), S.set("subid4", o.UrlRebuilder.removeSpecialCharacteres(v)), S.set("subid5", o.UrlRebuilder.removeSpecialCharacteres(f)));
                const I = u("src");
                null != I && "" !== I && S.set("src", I);
                const k = [h, f, p, 3 === (null !== (n = null === (r = null == v ? void 0 : v.split(a)) || void 0 === r ? void 0 : r.length) && void 0 !== n ? n : 0) ? v.split(a)[0] : v, d],
                    E = k.every((e => "" === e)),
                    L = u("xcod"),
                    C = u("sck");
                if (l.preventXcodSck) L && S.set("xcod", L), C && S.set("sck", C);
                else {
                    const e = c(k, i),
                        t = function(e, t, r) {
                            if (e.length <= 255) return e;
                            const n = Math.floor(18.8);

                            function i(e, t, r) {
                                function i(e) {
                                    return e.substring(0, n) + "..."
                                }
                                if (!t) return i(e);
                                const o = null != r ? r : "|",
                                    l = e.split(o),
                                    a = l.length > 1 ? l[l.length - 1] : "";
                                return `${i(1===l.length?l[0]:l.slice(0,-1).join(o))}${o}${a}`
                            }
                            const [o, l, a, s, u] = e.split(r);
                            return c([i(o, !0, "jLj"), i(l, !0), i(a, !0), i(s, !0), i(u, !1)], r)
                        }(E ? "" !== L ? L : I : e, 0, i);
                    S.set("xcod", t), S.set("sck", t)
                }
                const x = s.get("fbclid");
                null != x && "" !== x && S.set("fbclid", x);
                const A = u("utm_id");
                return A && S.set("utm_id", A), (() => {
                    const e = e => null == e || "" === e,
                        t = u("utm_source"),
                        r = u("utm_medium"),
                        n = u("utm_campaign"),
                        i = u("utm_content"),
                        o = u("utm_term"),
                        l = u("gclid"),
                        a = u("click_id"),
                        s = u("CampaignID"),
                        c = u("xcod"),
                        d = u("src"),
                        m = S.get("fbclid");
                    return e(t) && e(r) && e(n) && e(i) && e(o) && e(c) && e(d) && e(m) && e(l) && e(a) && e(s)
                })() && S.set("utm_source", "organic"), window.utmParams = S, S
            }
            static simplifyParametersIfNecessary(e, t) {
                if (!Object.values(a).some((t => e.includes(t)))) return t;
                const r = new URLSearchParams;
                return t.forEach(((e, t) => {
                    u.includes(t) && r.append(t, e)
                })), r
            }
        }
        window.paramsList = ["utm_source", "utm_campaign", "utm_medium", "utm_content", "utm_term", "xcod", "src"], window.itemExpInDays = 7;
        const d = ["utm_source", "utm_campaign", "utm_medium", "utm_content", "xcod", "sck"];

        function m(e) {
            return `${e}_exp`
        }

        function v() {
            function e(e) {
                document.querySelectorAll("a").forEach((t => {
                    var r;
                    if (!(t.href.startsWith("mailto:") || t.href.startsWith("tel:") || t.href.includes("#") || (null === (r = null == l ? void 0 : l.ignoreClasses) || void 0 === r ? void 0 : r.some((e => t.classList.contains(e)))))) {
                        if (n = t.href, ["wa.me/", "api.whatsapp.com/send", "whatsapp:", "link.dispara.ai/", "random.lailla.io/"].some((e => n.includes(e)))) {
                            const e = c.getUtmParameters(),
                                r = o.UrlRebuilder.getAdId(e);
                            return t.href = o.UrlRebuilder.randomizePhoneNumberIfNecessary(t.href), void(t.href = o.UrlRebuilder.insertAdIdInWppUrl(t.href, null != r ? r : ""))
                        }
                        var n;
                        if (e && d.every((e => t.href.includes(e)))) return;
                        t.href = c.addUtmParametersToUrl(t.href), l.replaceLinks && function(e, t) {
                            var r, n;
                            if ("true" === e.getAttribute("data-replaced-element")) return;
                            if (t && !(null === (r = e[t.property]) || void 0 === r ? void 0 : r.includes(t.value))) return;
                            const i = document.createElement(e.tagName);
                            for (const t of e.attributes) i.setAttribute(t.name, t.value);
                            i.setAttribute("data-replaced-element", "true"), i.innerHTML = e.innerHTML, null === (n = e.parentNode) || void 0 === n || n.replaceChild(i, e)
                        }(t, {
                            property: "href",
                            value: l.replaceLinks
                        })
                    }
                }))
            }

            function t(e) {
                document.querySelectorAll("form").forEach((t => {
                    var r;
                    e && d.every((e => t.action.includes(e))) || (null === (r = null == l ? void 0 : l.ignoreClasses) || void 0 === r ? void 0 : r.some((e => t.classList.contains(e)))) || (t.action = c.addUtmParametersToUrl(t.action), c.getUtmParameters().forEach(((e, r) => {
                        const n = (i = r, t.querySelector(`input[name="${i}"]`));
                        var i;
                        if (n) return void n.setAttribute("value", e);
                        const o = ((e, t) => {
                            const r = document.createElement("input");
                            return r.type = "hidden", r.name = e, r.value = t, r
                        })(r, e);
                        t.appendChild(o)
                    })))
                }))
            }! function() {
                const e = new URLSearchParams(window.location.search);
                window.paramsList.forEach((t => {
                    const r = e.get(t);
                    r && ((e, t) => {
                        localStorage.setItem(e, t);
                        const r = new Date((new Date).getTime() + 24 * window.itemExpInDays * 60 * 60 * 1e3);
                        localStorage.setItem(m(e), r.toISOString())
                    })(t, r)
                }))
            }();
            const r = function() {
                var e, t, r, n, i, o, a, s, u, c, d, m, v, p, f, h, g, S, w, y, b, _;
                const {
                    fixShopifyTheme: U
                } = l, R = null !== (t = null === (e = null === window || void 0 === window ? void 0 : window.BOOMR) || void 0 === e ? void 0 : e.themeName) && void 0 !== t ? t : null === (n = null === (r = null === window || void 0 === window ? void 0 : window.Shopify) || void 0 === r ? void 0 : r.theme) || void 0 === n ? void 0 : n.schema_name, P = null !== (i = null == R ? void 0 : R.includes("Dropmeta")) && void 0 !== i && i, I = null !== (o = null == R ? void 0 : R.includes("Warehouse")) && void 0 !== o && o, k = null !== (a = null == R ? void 0 : R.includes("Classic®")) && void 0 !== a && a, E = null !== (s = null == R ? void 0 : R.includes("Tema Vision")) && void 0 !== s && s, L = null !== (u = null == R ? void 0 : R.includes("Waresabino")) && void 0 !== u && u, C = null !== (c = null == R ? void 0 : R.includes("Dawn")) && void 0 !== c && c, x = null !== (d = null == R ? void 0 : R.includes("Vortex")) && void 0 !== d && d, A = null !== (m = null == R ? void 0 : R.includes("Warepro")) && void 0 !== m && m, T = null !== (v = null == R ? void 0 : R.includes("Wareimadigital")) && void 0 !== v && v, $ = null !== (p = null == R ? void 0 : R.includes("Mercado Livre")) && void 0 !== p && p, j = null !== (f = null == R ? void 0 : R.includes("Tema Evolution®")) && void 0 !== f && f, O = null !== (h = null == R ? void 0 : R.includes("Evolution Enterprise")) && void 0 !== h && h, D = null !== (g = null == R ? void 0 : R.includes("Tema Sabino Vision")) && void 0 !== g && g, N = null !== (S = null == R ? void 0 : R.includes("Split")) && void 0 !== S && S, q = null !== (w = null == R ? void 0 : R.includes("WART")) && void 0 !== w && w, M = null !== (y = null == R ? void 0 : R.includes("Vogal")) && void 0 !== y && y, W = null !== (b = null == R ? void 0 : R.includes("Aurohra 2.0")) && void 0 !== b && b, V = null !== (_ = null == R ? void 0 : R.includes("RAWART")) && void 0 !== _ && _;
                return U || P || I || k || E || L || C || x || A || T || $ || j || V || O || D || N || q || M || W
            }();
            e(),
                function() {
                    const e = window.open;
                    window.open = function(t, r, n) {
                        var i;
                        return t = c.addUtmParametersToUrl(null !== (i = null == t ? void 0 : t.toString()) && void 0 !== i ? i : ""), e(t, r || "", n || "")
                    }
                }(), r || (t(), function() {
                    const {
                        body: r
                    } = document;
                    new MutationObserver(((r, n) => {
                        const i = e => {
                            if (e.nodeType !== Node.ELEMENT_NODE) return !1;
                            const t = e;
                            return "INPUT" === t.tagName && "hidden" === (null == t ? void 0 : t.type)
                        };
                        r.some((e => Array.from(e.addedNodes).some(i))) || (e(!0), t(!0))
                    })).observe(r, {
                        subtree: !0,
                        childList: !0
                    })
                }(), l.ignoreAllIframes || document.querySelector('link[href="https://api.vturb.com.br"]') || document.querySelectorAll("iframe").forEach((e => {
                    var t;
                    Object.values(s).some((t => e.src.includes(t))) || (null === (t = null == l ? void 0 : l.ignoreClasses) || void 0 === t ? void 0 : t.some((t => e.classList.contains(t)))) || (e.src = c.addUtmParametersToUrl(e.src))
                })))
        }
        const p = () => {
            v(), l.ignoreScriptRetry || (setTimeout(v, 2e3), setTimeout(v, 3e3), setTimeout(v, 5e3), setTimeout(v, 9e3))
        };
        l.fastStart || "complete" === document.readyState ? p() : window.addEventListener("load", p)
    })()
})();