Read this code:
(function(t) {
    function a(a) {
        for (var n, s, i = a[0], l = a[1], c = a[2], u = 0, p = []; u < i.length; u++)
            s = i[u],
            Object.prototype.hasOwnProperty.call(o, s) && o[s] && p.push(o[s][0]),
            o[s] = 0;
        for (n in l)
            Object.prototype.hasOwnProperty.call(l, n) && (t[n] = l[n]);
        d && d(a);
        while (p.length)
            p.shift()();
        return r.push.apply(r, c || []),
        e()
    }
    function e() {
        for (var t, a = 0; a < r.length; a++) {
            for (var e = r[a], n = !0, i = 1; i < e.length; i++) {
                var l = e[i];
                0 !== o[l] && (n = !1)
            }
            n && (r.splice(a--, 1),
            t = s(s.s = e[0]))
        }
        return t
    }
    var n = {}
      , o = {
        app: 0
    }
      , r = [];
    function s(a) {
        if (n[a])
            return n[a].exports;
        var e = n[a] = {
            i: a,
            l: !1,
            exports: {}
        };
        return t[a].call(e.exports, e, e.exports, s),
        e.l = !0,
        e.exports
    }
    s.m = t,
    s.c = n,
    s.d = function(t, a, e) {
        s.o(t, a) || Object.defineProperty(t, a, {
            enumerable: !0,
            get: e
        })
    }
    ,
    s.r = function(t) {
        "undefined" !== typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
            value: "Module"
        }),
        Object.defineProperty(t, "__esModule", {
            value: !0
        })
    }
    ,
    s.t = function(t, a) {
        if (1 & a && (t = s(t)),
        8 & a)
            return t;
        if (4 & a && "object" === typeof t && t && t.__esModule)
            return t;
        var e = Object.create(null);
        if (s.r(e),
        Object.defineProperty(e, "default", {
            enumerable: !0,
            value: t
        }),
        2 & a && "string" != typeof t)
            for (var n in t)
                s.d(e, n, function(a) {
                    return t[a]
                }
                .bind(null, n));
        return e
    }
    ,
    s.n = function(t) {
        var a = t && t.__esModule ? function() {
            return t["default"]
        }
        : function() {
            return t
        }
        ;
        return s.d(a, "a", a),
        a
    }
    ,
    s.o = function(t, a) {
        return Object.prototype.hasOwnProperty.call(t, a)
    }
    ,
    s.p = "/";
    var i = window["webpackJsonp"] = window["webpackJsonp"] || []
      , l = i.push.bind(i);
    i.push = a,
    i = i.slice();
    for (var c = 0; c < i.length; c++)
        a(i[c]);
    var d = l;
    r.push([0, "chunk-vendors"]),
    e()
}
)({
    0: function(t, a, e) {
        t.exports = e("56d7")
    },
    "083c": function(t, a, e) {
        "use strict";
        e("210d")
    },
    1723: function(t, a, e) {
        "use strict";
        e("40ea")
    },
    "1dcb": function(t, a, e) {
        "use strict";
        e("38f1")
    },
    "210d": function(t, a, e) {},
    "26d6": function(t, a, e) {
        "use strict";
        e("350f")
    },
    "350f": function(t, a, e) {},
    "38f1": function(t, a, e) {},
    "3e84": function(t, a, e) {
        t.exports = e.p + "img/shop-popcat-click.a7362134.png"
    },
    4008: function(t, a, e) {
        "use strict";
        e("953f")
    },
    "40ea": function(t, a, e) {},
    "486a": function(t, a, e) {},
    "56d7": function(t, a, e) {
        "use strict";
        e.r(a);
        var n = e("2b0e")
          , o = function() {
            var t = this
              , a = t._self._c;
            return a("div", {
                attrs: {
                    id: "app"
                }
            }, [a("Header"), a("cat", {
                attrs: {
                    open: t.open,
                    counter: t.counter,
                    bot: t.bot
                }
            }), a("Footer", {
                attrs: {
                    accumulator: t.accumulator,
                    location: t.location
                }
            })], 1)
        }
          , r = [];
        function s(t, a="") {
            const e = t + "="
              , n = decodeURIComponent(document.cookie)
              , o = n.split(";");
            for (let r = 0; r < o.length; r++) {
                let t = o[r];
                while (" " === t.charAt(0))
                    t = t.substring(1);
                if (0 === t.indexOf(e))
                    return t.substring(e.length, t.length)
            }
            return a
        }
        function i(t, a, e) {
            const n = new Date;
            n.setTime(n.getTime() + 24 * e * 60 * 60 * 1e3);
            const o = "expires=" + n.toUTCString();
            document.cookie = t + "=" + a + ";" + o + ";path=/"
        }
        var l = function() {
            var t = this
              , a = t._self._c;
            return a("div", {
                staticClass: "cat-img",
                class: {
                    p: !t.open,
                    op: t.open,
                    bot: t.bot
                }
            }, [a("transition", {
                attrs: {
                    name: "pop-out",
                    mode: "out-in"
                }
            }, [a("div", {
                key: t.displayCount,
                class: "counter rot-" + t.counterRotation
            }, [t._v(t._s(t.displayCount.toLocaleString("en")))])])], 1)
        }
          , c = []
          , d = {
            props: ["open", "counter", "bot"],
            computed: {
                displayCount() {
                    return this.counter > 0 ? this.counter : ""
                }
            },
            data() {
                return {
                    counterRotation: "c"
                }
            },
            watch: {
                counter: function() {
                    const t = ["l", "r", "c", "ll", "rr"];
                    this.counterRotation = t[Math.floor(Math.random() * t.length)]
                }
            },
            mounted() {
                const t = new Image;
                t.src = e("a7f9")
            }
        }
          , u = d
          , p = (e("624c"),
        e("2877"))
          , h = Object(p["a"])(u, l, c, !1, null, "2ff32089", null)
          , f = h.exports
          , m = function() {
            var t = this
              , a = t._self._c;
            return a("header", [a("section", {
                staticClass: "projects"
            }, [a("a", {
                staticClass: "project",
                attrs: {
                    href: "https://maxwellcat.world/",
                    "aria-label": "Check out maxwellcat.world!"
                },
                on: {
                    pointerdown: function(t) {
                        t.stopPropagation()
                    }
                }
            }, [a("img", {
                attrs: {
                    src: e("7c61"),
                    alt: ""
                }
            })]), a("a", {
                staticClass: "project",
                attrs: {
                    href: "https://shop.popcat.click/",
                    "aria-label": "Check out shop.popcat.click!"
                },
                on: {
                    pointerdown: function(t) {
                        t.stopPropagation()
                    }
                }
            }, [a("img", {
                attrs: {
                    src: e("3e84"),
                    alt: ""
                }
            })])]), a("img", {
                staticClass: "title",
                attrs: {
                    src: e("6224"),
                    alt: "POPCAT"
                }
            }), a("section", {
                staticClass: "projects"
            }, [a("a", {
                staticClass: "project",
                attrs: {
                    href: "https://spinningrat.online/",
                    "aria-label": "Check out spinningrat.online!"
                },
                on: {
                    pointerdown: function(t) {
                        t.stopPropagation()
                    }
                }
            }, [a("img", {
                attrs: {
                    src: e("f2ad"),
                    alt: ""
                }
            })]), a("div", {
                staticClass: "project placeholder"
            })])])
        }
          , v = []
          , g = {
            data() {
                let t = new Date(Date.UTC(2024, 4, 10, 19))
                  , a = 864e5
                  , e = t - new Date
                  , n = Math.max(Math.ceil(e / a), 0);
                return {
                    show_countdown: n <= 7,
                    gone_today: e < a,
                    days_until_end: n
                }
            }
        }
          , C = g
          , b = (e("1dcb"),
        Object(p["a"])(C, m, v, !1, null, "238b6df6", null))
          , w = b.exports
          , y = function() {
            var t = this
              , a = t._self._c;
            return a("section", {
                class: "leaderboard " + (t.open ? "open" : ""),
                on: {
                    click: function(t) {
                        t.stopPropagation()
                    },
                    pointerdown: function(t) {
                        t.stopPropagation()
                    }
                }
            }, [a("div", {
                staticClass: "bar",
                on: {
                    click: function(a) {
                        return a.stopPropagation(),
                        t.toggleLeaderboard.apply(null, arguments)
                    }
                }
            }, [a("h1", [t._v("🏆")]), a("div", {
                staticClass: "preview"
            }, [t.open || !t.leaderboard || !t.amInTopThree && t.location ? !t.open && t.leaderboard && !t.amInTopThree && t.location ? a("div", {
                staticClass: "top-three"
            }, [a("span", {
                staticClass: "top-entry"
            }, [a("span", {
                staticClass: "position"
            }, [t._v("#1")]), a("flag", {
                attrs: {
                    code: t.topThree[0].Code
                }
            }), a("span", {
                staticClass: "count"
            }, [t._v(" " + t._s(t.shortNum(t.topThree[0].Pops)) + " ")])], 1), a("span", {
                staticClass: "ellipsis"
            }, [t._v("...")]), a("span", {
                staticClass: "top-entry mine"
            }, [a("flag", {
                attrs: {
                    code: t.currentCountry.Code
                }
            }), a("span", {
                staticClass: "count"
            }, [a("AnimatedNumber", {
                attrs: {
                    duration: 20,
                    pop: !0,
                    value: t.currentCountry.Pops
                }
            })], 1)], 1)]) : a("h2", [t._v("Leaderboard")]) : a("div", {
                staticClass: "top-three"
            }, t._l(t.topThree, (function(e, n) {
                return a("span", {
                    key: e.Code,
                    class: "top-entry " + (t.currentCountry.Code === e.Code ? "mine" : "")
                }, [a("span", {
                    staticClass: "position"
                }, [t._v("#" + t._s(n + 1))]), a("flag", {
                    attrs: {
                        code: e.Code
                    }
                }), a("span", {
                    staticClass: "count"
                }, [t._v(" " + t._s(t.shortNum(e.Code == t.currentCountry.Code ? t.currentCountry.Pops : e.Pops)) + " ")])], 1)
            }
            )), 0)]), a("button", {
                staticClass: "show"
            }, [a("svg", {
                attrs: {
                    xmlns: "http://www.w3.org/2000/svg",
                    fill: "currentColor",
                    viewBox: "0 0 16 16"
                }
            }, [a("path", {
                attrs: {
                    "fill-rule": "evenodd",
                    d: "M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z"
                }
            })])])]), a("main", {
                ref: "mainGrow",
                style: `--max-height: ${t.mainHeight}px`
            }, [a("div", {
                staticClass: "main-wrap"
            }, [a("Leaderboard", {
                attrs: {
                    accumulator: t.accumulator,
                    location: t.location,
                    leaderboard: t.leaderboard,
                    open: t.open
                }
            }), a("TwoTwelve"), t._m(0)], 1)]), a("StyledAd", {
                attrs: {
                    adslot: "4885758928",
                    type: "desktop"
                }
            }), a("StyledAd", {
                attrs: {
                    adslot: "6804203610",
                    type: "mobile"
                }
            })], 1)
        }
          , S = [function() {
            var t = this
              , a = t._self._c;
            return a("div", {
                staticClass: "mini"
            }, [t._v("We use "), a("a", {
                attrs: {
                    href: "/privacy#cookies"
                }
            }, [t._v("Cookies")]), t._v(". Here's our "), a("a", {
                attrs: {
                    href: "/privacy"
                }
            }, [t._v("Privacy Notice")]), t._v(".")])
        }
        ]
          , _ = function() {
            var t = this
              , a = t._self._c;
            return "NP" != t.code ? a("div", {
                class: "flag flag:" + t.code,
                attrs: {
                    title: t.getLabel(t.code),
                    "aria-label": t.getLabel(t.code)
                }
            }) : a("svg", {
                staticClass: "flag flag:NP",
                attrs: {
                    xmlns: "http://www.w3.org/2000/svg",
                    viewBox: "0 0 24 16"
                }
            }, [a("defs"), a("defs", [a("filter", {
                attrs: {
                    id: "a",
                    width: "173%",
                    height: "160%",
                    x: "-36.5%",
                    y: "-30%",
                    filterUnits: "objectBoundingBox"
                }
            }, [a("feOffset", {
                attrs: {
                    in: "SourceAlpha",
                    result: "shadowOffsetOuter1"
                }
            }), a("feGaussianBlur", {
                attrs: {
                    in: "shadowOffsetOuter1",
                    result: "shadowBlurOuter1",
                    stdDeviation: "1.6"
                }
            }), a("feColorMatrix", {
                attrs: {
                    in: "shadowBlurOuter1",
                    values: "0 0 0 0 0.423529412 0 0 0 0 0.458823529 0 0 0 0 0.490196078 0 0 0 0.5 0"
                }
            })], 1), a("path", {
                attrs: {
                    id: "b",
                    d: "M0 16V0l13.14 8.19H4.11l8.6 7.81z"
                }
            })]), a("g", {
                attrs: {
                    fill: "none"
                }
            }, [a("path", {
                attrs: {
                    d: "M0 0h24v16H0z"
                }
            }), a("use", {
                attrs: {
                    fill: "#000",
                    filter: "url(#a)",
                    href: "#b"
                }
            }), a("use", {
                attrs: {
                    fill: "#0052B4",
                    href: "#b"
                }
            }), a("path", {
                attrs: {
                    fill: "#D80027",
                    d: "M11.47 7.71L.48.86v14.66h10.99l-8.6-7.81z"
                }
            }), a("g", {
                attrs: {
                    fill: "#FFF"
                }
            }, [a("path", {
                attrs: {
                    d: "M4.6 11.2l-.69-.31.36-.67-.74.15-.1-.75-.51.55-.52-.55-.1.75-.73-.15.36.67-.68.32.68.32-.36.66.74-.14.1.75.51-.55.52.55.1-.75.73.14-.36-.66.68-.32zm-.46-6.22l-.5-.23.26-.48-.54.1-.06-.54-.38.4-.38-.4-.06.54-.55-.1.27.48-.5.23 1.22.25 1.22-.25zM4.38 4.98a1.46 1.46 0 11-2.92 0"
                }
            })])])])
        }
          , M = []
          , P = e("85fc")
          , A = {
            props: ["code"],
            methods: {
                getLabel(t) {
                    const a = P[t] || t;
                    return "Flag of " + a
                }
            }
        }
          , I = A
          , T = (e("6547"),
        e("ed03"),
        Object(p["a"])(I, _, M, !1, null, "8bb3fe7e", null))
          , N = T.exports
          , B = function() {
            var t = this
              , a = t._self._c;
            return a("figure", {
                ref: "ad-wrapper",
                staticClass: "ad-wrapper",
                class: "ad-wrapper-" + t.type
            }, [a("div", {
                staticClass: "ad-container",
                attrs: {
                    id: t.adID
                }
            }, [0 == t.placeholder ? a("p", [t._v("Check out "), a("a", {
                attrs: {
                    href: "https://maxwellcat.world/"
                }
            }, [t._v("maxwellcat.world")]), t._v("!")]) : 1 == t.placeholder ? a("p", [t._v("Have you tried "), a("a", {
                attrs: {
                    href: "https://spinningrat.online/"
                }
            }, [t._v("spinningrat.online")]), t._v("?")]) : a("p", [t._v("Buy official "), a("a", {
                attrs: {
                    href: "https://shop.popcat.click/"
                }
            }, [t._v("popcat.click merch")]), t._v(".")])])])
        }
          , L = [];
        const k = {
            desktop: "nn_lb1",
            mobile: "nn_mobile_lb1"
        };
        function G(t) {
            0
        }
        function x() {
            return document.getElementsByClassName("ad-wrapper").length > 0
        }
        function O() {
            return Object.values(k).some(t => {
                const a = document.getElementById(t);
                if (!a)
                    return G(a + " not found on page"),
                    !1;
                const e = a.hasChildNodes() && "none" !== a.style.display;
                return G(e ? t + " has an advert and is visible" : t + " does not have an advert or is not visible"),
                e
            }
            )
        }
        function E() {
            return "undefined" !== typeof window.reloadAdSlots
        }
        const H = {
            data() {
                return {
                    lastAdsReload: null,
                    refreshInterval: null
                }
            },
            mounted() {
                this.refreshInterval = setInterval(this.reloadAdSlots, 5e3),
                this.reloadAdSlots()
            },
            beforeDestroy() {
                clearInterval(this.refreshInterval)
            },
            methods: {
                reloadAdSlots() {
                    if (G("Attempting to reload ad slots"),
                    !x())
                        return void G("No containers are visible, stopping.");
                    if (!E())
                        return void G("Ad scripts aren't ready yet");
                    G("Ads are visible and scripts are ready, trying to reload"),
                    G("Ads were last loaded at " + this.lastAdsReload);
                    const t = null !== this.lastAdsReload && new Date - this.lastAdsReload > 6e4;
                    t || !O() ? (G("Ads are due for reloading, attempting..."),
                    this.lastAdsReload = new Date,
                    window.reloadAdSlots()) : G("Adverts were loaded too recently, stopping.")
                }
            }
        };
        var D = {
            props: {
                type: String
            },
            data() {
                return {
                    placeholder: Math.floor(3 * Math.random())
                }
            },
            computed: {
                adID() {
                    return k[this.type] || null
                }
            }
        }
          , U = D
          , R = (e("6e16"),
        Object(p["a"])(U, B, L, !1, null, "8b5ceac8", null))
          , F = R.exports
          , K = function() {
            var t = this
              , a = t._self._c;
            return a("div", [t.leaderboard ? a("ol", {
                staticClass: "list"
            }, [a("li", [a("span", {
                staticClass: "position"
            }, [t._v("🌍")]), a("span", {
                staticClass: "country"
            }, [t._v("Worldwide")]), a("span", {
                staticClass: "count",
                attrs: {
                    translate: "no"
                }
            }, [a("transition", {
                attrs: {
                    name: "pop-delta",
                    mode: "out-in"
                }
            }, [t.worldwide.pps > 0 ? a("span", {
                staticClass: "delta notranslate",
                attrs: {
                    translate: "no"
                }
            }, [t._v(t._s(t.shortNum(t.worldwide.pps) + " PPS"))]) : t._e()]), a("AnimatedNumber", {
                attrs: {
                    enabled: t.open,
                    transition: !1,
                    value: t.worldwide.pops,
                    duration: t.smoothedInterval
                }
            })], 1)]), t._l(t.leaderboard.slice(0, t.adPosition), (function(e, n) {
                return a("li", {
                    key: e.Code
                }, [a("span", {
                    staticClass: "position"
                }, [t._v(t._s(t.getPlace(n + 1)))]), a("flag", {
                    attrs: {
                        code: e.Code
                    }
                }), a("span", {
                    class: "country " + (t.location === e.Code ? "mine" : "")
                }, [t._v(t._s(e.Name))]), a("span", {
                    staticClass: "count",
                    attrs: {
                        translate: "no"
                    }
                }, [a("transition", {
                    attrs: {
                        name: "pop-delta",
                        mode: "out-in"
                    }
                }, [t.deltas[e.Code] ? a("span", {
                    staticClass: "delta notranslate",
                    attrs: {
                        translate: "no"
                    }
                }, [t._v(t._s(t.shortNum(t.deltas[e.Code]) + " PPS"))]) : t._e()]), a("AnimatedNumber", {
                    attrs: {
                        enabled: t.open,
                        transition: !1,
                        value: e.Pops,
                        duration: t.smoothedInterval
                    }
                })], 1)], 1)
            }
            )), t._l(t.leaderboard.slice(t.adPosition), (function(e, n) {
                return a("li", {
                    key: e.Code
                }, [a("span", {
                    staticClass: "position"
                }, [t._v(t._s(t.getPlace(n + 1 + t.adPosition)))]), a("flag", {
                    attrs: {
                        code: e.Code
                    }
                }), a("span", {
                    class: "country " + (t.location === e.Code ? "mine" : "")
                }, [t._v(t._s(e.Name))]), a("span", {
                    staticClass: "count",
                    attrs: {
                        translate: "no"
                    }
                }, [a("transition", {
                    attrs: {
                        name: "pop-delta",
                        mode: "out-in"
                    }
                }, [t.deltas[e.Code] ? a("span", {
                    staticClass: "delta notranslate",
                    attrs: {
                        translate: "no"
                    }
                }, [t._v(t._s(t.shortNum(t.deltas[e.Code]) + " PPS"))]) : t._e()]), a("AnimatedNumber", {
                    attrs: {
                        enabled: t.open,
                        transition: !1,
                        value: e.Pops,
                        duration: t.smoothedInterval
                    }
                })], 1)], 1)
            }
            ))], 2) : a("p", [t._v("Loading...")]), a("div", {
                staticClass: "leaderboard-key"
            }, [t._v("PPS = Pops Per Second")])])
        }
          , V = []
          , Z = (e("13d5"),
        function() {
            var t = this
              , a = t._self._c;
            return a("span", {
                staticClass: "animated-number"
            }, [t.pop ? a("transition", {
                attrs: {
                    name: "number-punch",
                    mode: "out-in"
                }
            }, [a("span", {
                key: t.tweeningValue.toLocaleString("en"),
                staticClass: "anim"
            }, [t._v(" " + t._s(t.tweeningValue.toLocaleString("en")) + " ")])]) : a("span", [t._v(t._s(t.tweeningValue.toLocaleString("en")))])], 1)
        }
        )
          , j = []
          , z = {
            props: {
                value: {
                    type: Number,
                    required: !0
                },
                duration: {
                    type: Number,
                    required: !1,
                    default: 5e3
                },
                enabled: {
                    type: Boolean,
                    default: !0,
                    required: !1
                },
                pop: {
                    type: Boolean,
                    default: !1,
                    required: !1
                }
            },
            data() {
                return {
                    tweeningValue: this.value
                }
            },
            watch: {
                value: function(t, a) {
                    this.enabled && a < t && 0 !== a ? this.tween(a, t) : this.tweeningValue = t
                }
            },
            methods: {
                tween: function(t, a) {
                    const e = this;
                    function n() {
                        if (a !== e.value)
                            return;
                        const r = (Date.now() - o) / e.duration;
                        if (r >= 1 || !e.enabled)
                            e.tweeningValue = a;
                        else {
                            const o = Math.round(t + (a - t) * r);
                            o !== e.tweeningValue && (e.tweeningValue = o),
                            requestAnimationFrame(n)
                        }
                    }
                    const o = Date.now();
                    n()
                }
            }
        }
          , J = z
          , W = (e("1723"),
        Object(p["a"])(J, Z, j, !1, null, "65cd9dae", null))
          , Y = W.exports
          , q = e("cae7")
          , X = e.n(q)
          , $ = {
            components: {
                Flag: N,
                AnimatedNumber: Y
            },
            props: ["location", "leaderboard", "open"],
            data() {
                return {
                    worldwide: {
                        pops: 0,
                        pps: 0
                    },
                    deltas: {},
                    updated: Date.now(),
                    smoothedInterval: 5e3,
                    adPosition: 3
                }
            },
            watch: {
                leaderboard(t, a) {
                    const e = (Date.now() - this.updated) / 1e3
                      , n = (Date.now() - this.updated + this.smoothedInterval) / 2;
                    this.smoothedInterval = Math.max(n + 30, 5e3);
                    const o = this.leaderboard.reduce( (t, a) => t + a.Pops, 0)
                      , r = o - this.worldwide.pops;
                    if (this.worldwide.pops = o,
                    this.updated = Date.now(),
                    !a)
                        return void (this.worldwide.pps = 0);
                    this.worldwide.pps = Math.round(r / e * 10) / 10,
                    this.deltas = {};
                    const s = {};
                    for (const i of a)
                        s[i.Code] = i.Pops;
                    for (const i of t)
                        if (s[i.Code] && s[i.Code] < i.Pops) {
                            const t = (i.Pops - s[i.Code]) / e;
                            this.deltas[i.Code] = Math.round(10 * t) / 10
                        }
                }
            },
            methods: {
                getPlace(t) {
                    switch (t) {
                    case 1:
                        return "🥇";
                    case 2:
                        return "🥈";
                    case 3:
                        return "🥉";
                    default:
                        return t
                    }
                },
                shortNum(t) {
                    return X()(t)
                }
            }
        }
          , Q = $
          , tt = (e("26d6"),
        e("4008"),
        Object(p["a"])(Q, K, V, !1, null, "43f95833", null))
          , at = tt.exports
          , et = (e("d9e2"),
        e("14d9"),
        e("bc3a"))
          , nt = e.n(et);
        function ot(t) {
            return new Promise( (a, e) => {
                nt.a.get(t).then(t => {
                    200 !== t.status && e(new Error(t.status));
                    const n = t.data;
                    if (n.Countries)
                        a(n.Countries);
                    else if (n.GB || n.IE || n.US || n.JP) {
                        const t = [];
                        for (const [a,e] of Object.entries(n)) {
                            const n = P[a];
                            n && t.push({
                                Name: n,
                                Code: a,
                                Pops: e
                            })
                        }
                        a(t)
                    } else
                        e(new Error("Leaderboard API response does not match expected format."))
                }
                ).catch(t => {
                    e(t)
                }
                )
            }
            )
        }
        var rt = {
            load: ot
        }
          , st = function() {
            var t = this
              , a = t._self._c;
            return a("div", [a("a", {
                staticClass: "twotwelve",
                attrs: {
                    href: "https://twotwelve.uk",
                    target: "_blank"
                }
            }, [a("svg", {
                attrs: {
                    viewBox: "0 0 1826 309",
                    xmlns: "http://www.w3.org/2000/svg",
                    "xml:space": "preserve",
                    "fill-rule": "nonzero",
                    fill: "#003049",
                    "clip-rule": "evenodd",
                    "stroke-linejoin": "round",
                    "stroke-miterlimit": "2"
                }
            }, [a("path", {
                attrs: {
                    d: "m151.2 262.8 11 9.4a84 84 0 0 1-22.5 27.1 54.5 54.5 0 0 1-33.3 9.5 80 80 0 0 1-33.5-7.2A60.8 60.8 0 0 1 47 279.2 67.8 67.8 0 0 1 37 241V126l-4.1-4.2H0v-14.3c20.5-4.1 38.3-13 53.4-26.7a91.9 91.9 0 0 0 28.8-51.4h14.3v78h61.7v14.4H99.8l-3.3 4.1v125.8c0 8.7 2 16 6 21.7 4 5.8 9.7 8.7 17 8.7a33 33 0 0 0 15.3-4.3c5.4-3 11-8 16.4-15Z"
                }
            }), a("path", {
                attrs: {
                    d: "M401.1 107.5h77.7v14.3H454L393 304.7h-26.7l-53.4-131.5h-2l-53.5 131.5h-26.7l-74-182.9h-20.9v-14.3h113.4v14.3h-20.5l-4.1 4.1L266 230.7h2l34.1-82.6-10.7-26.3h-17.6v-14.3h102.7v14.3H360l-4 4.1 41 104.8h2L434 126l-4.1-4H401v-14.4ZM563.1 103.4c20.3 0 38.3 4 54 12a90 90 0 0 1 37.2 35.2c9 15.3 13.6 33.8 13.6 55.5 0 21.6-4.5 40-13.6 55.4a90 90 0 0 1-37.1 35.1c-15.8 8.1-33.8 12.2-54 12.2-20.3 0-38.3-4-54.1-12.2a90 90 0 0 1-37.2-35c-9-15.4-13.5-33.9-13.5-55.5 0-21.7 4.5-40.2 13.5-55.5a90 90 0 0 1 37.2-35.1c15.8-8.1 33.8-12.1 54-12.1Zm2 191c9.7 0 17.1-4 22.5-12.1a81 81 0 0 0 11.3-31 225 225 0 0 0 3.3-38.7c0-21.3-2.1-39-6.2-53a81 81 0 0 0-15.6-31.4c-6.3-7-12.8-10.5-19.3-10.5-9.3 0-16.7 4-22.2 12.2-5.5 8-9.3 18.3-11.5 30.8a223.9 223.9 0 0 0-3.3 38.8c0 21 2 38.7 6.2 52.8a79.2 79.2 0 0 0 15.8 31.6c6.4 7 12.8 10.5 19 10.5ZM814.3 262.8l11 9.4a84 84 0 0 1-22.5 27.1 54.5 54.5 0 0 1-33.3 9.5 80 80 0 0 1-33.5-7.2 60.8 60.8 0 0 1-25.9-22.4 67.8 67.8 0 0 1-10-38.2V126l-4.1-4.2H663v-14.3c20.5-4.1 38.3-13 53.4-26.7a91.9 91.9 0 0 0 28.8-51.4h14.3v78h61.7v14.4h-58.4l-3.3 4.1v125.8c0 8.7 2 16 6 21.7 4 5.8 9.7 8.7 17 8.7a33 33 0 0 0 15.3-4.3c5.4-3 11-8 16.4-15Z"
                }
            }), a("path", {
                attrs: {
                    d: "M1064.2 107.5h77.7v14.3h-24.7L1056 304.7h-26.7l-53.4-131.5h-2l-53.5 131.5h-26.7l-74-182.9h-20.9v-14.3h113.4v14.3h-20.5l-4.1 4.1L929 230.7h2l34.1-82.6-10.7-26.3H937v-14.3h102.7v14.3H1023l-4 4.1 41 104.8h2l35-104.8-4.1-4h-28.8v-14.4ZM1241 288.2c13.7 0 26.1-3.3 37.2-9.8 11-6.6 20.3-13.9 27.7-21.8l11.1 9.4a183.5 183.5 0 0 1-19.9 20.2c-7.5 6.5-17 12-28.1 16.2a122.2 122.2 0 0 1-42.8 6.4c-18.9 0-36.3-4-52.1-12.2a95.3 95.3 0 0 1-38.3-35 102.6 102.6 0 0 1-14.3-55.5c0-21.7 4.8-40.2 14.3-55.5a95.3 95.3 0 0 1 38.3-35.1c15.8-8.1 33.2-12.1 52.1-12.1 17.8 0 33.7 3.4 47.7 10.2 14 6.9 25 17.6 33 32a115 115 0 0 1 12.2 56.4h-146.3v-14.4h82.6c-1.1-23.9-4.3-41.5-9.7-52.8-5.3-11.4-13.2-17-23.6-17-7.4 0-13.7 3.6-18.9 10.8a81.3 81.3 0 0 0-11.9 30.8 233.3 233.3 0 0 0-4.1 46.7c0 17.5 2 32.3 6 44.5 4 12.2 9.9 21.5 17.8 28 8 6.4 18 9.6 30 9.6ZM1319.6 304.7v-14.4h20.6l4-4.1v-263l-4-4h-20.6V4.7l25.5-.3c9.9 0 19.7-.5 29.4-1.2s18.1-1.6 25.2-2.7l4.2 4.2v281.4l4 4h20.6v14.5h-108.9Z"
                }
            }), a("path", {
                attrs: {
                    d: "M1568.3 107.5h77.7v14.3h-24.7l-74.7 182.9h-26.7l-86-182.9h-20.5v-14.3h113v14.3H1506l-4.1 4.1 51 113h2l46.4-113-4.1-4h-28.8v-14.4ZM1747.6 288.2c13.7 0 26-3.3 37.2-9.8 11-6.6 20.3-13.9 27.7-21.8l11 9.4a183.6 183.6 0 0 1-19.8 20.2c-7.6 6.5-17 12-28.2 16.2a122.2 122.2 0 0 1-42.7 6.4c-18.9 0-36.3-4-52.2-12.2a95.3 95.3 0 0 1-38.2-35A102.6 102.6 0 0 1 1628 206c0-21.7 4.8-40.2 14.4-55.5a95.3 95.3 0 0 1 38.2-35.1c16-8.1 33.3-12.1 52.2-12.1 17.8 0 33.7 3.4 47.7 10.2 14 6.9 25 17.6 33 32a115 115 0 0 1 12.1 56.4h-146.2v-14.4h82.6c-1.1-23.9-4.3-41.5-9.7-52.8-5.3-11.4-13.2-17-23.6-17-7.4 0-13.7 3.6-19 10.8a81.3 81.3 0 0 0-11.8 30.8 233.2 233.2 0 0 0-4.1 46.7c0 17.5 2 32.3 6 44.5 3.9 12.2 9.9 21.5 17.8 28a46 46 0 0 0 30 9.6Z"
                }
            })])])])
        }
          , it = []
          , lt = (e("c5a6"),
        {})
          , ct = Object(p["a"])(lt, st, it, !1, null, "560ffd9a", null)
          , dt = ct.exports
          , ut = {
            components: {
                Leaderboard: at,
                Flag: N,
                AnimatedNumber: Y,
                StyledAd: F,
                TwoTwelve: dt
            },
            props: ["accumulator", "location"],
            mixins: [H],
            data() {
                return {
                    errored: !1,
                    leaderboard: null,
                    open: !1,
                    worldwide: {
                        pops: 0,
                        pps: 0
                    },
                    mainHeight: 0,
                    updated: Date.now(),
                    smoothedInterval: 5e3,
                    currentCountry: {}
                }
            },
            watch: {
                accumulator(t, a) {
                    t < a || (this.currentCountry.Pops = this.currentCountry.Pops - a + t)
                },
                location() {
                    this.updateCurrentCountry()
                }
            },
            computed: {
                topThree() {
                    return this.leaderboard.slice(0, 3)
                },
                amInTopThree() {
                    let t = !1;
                    return this.topThree.forEach(a => {
                        a.Code === this.currentCountry.Code && (t = !0)
                    }
                    ),
                    t
                }
            },
            created() {
                this.fetchLeaderboardData()
            },
            mounted() {
                this.mainHeight = this.$refs.mainGrow.scrollHeight
            },
            methods: {
                fetchLeaderboardData() {
                    rt.load("https://leaderboard.popcat.click").then(t => {
                        this.leaderboard = t,
                        this.leaderboard.sort( (t, a) => a.Pops - t.Pops),
                        this.updateCurrentCountry(),
                        this.$nextTick( () => {
                            this.mainHeight = this.$refs.mainGrow.scrollHeight
                        }
                        )
                    }
                    ).catch(t => {}
                    ).finally( () => {
                        setTimeout(this.fetchLeaderboardData, 5e3)
                    }
                    )
                },
                updateCurrentCountry() {
                    if ("" === this.location || "?" === this.location || !this.leaderboard)
                        return;
                    const t = this.leaderboard.filter(t => this.location === t.Code)[0];
                    t && (this.currentCountry = {
                        Code: this.location,
                        Pops: t.Pops
                    })
                },
                toggleLeaderboard() {
                    this.open = !this.open,
                    gtag("event", this.open ? "leaderboard_opened" : "leaderboard_closed"),
                    this.$nextTick( () => {
                        this.$refs.mainGrow.style = "--max-height:" + this.$refs.mainGrow.scrollHeight + "px"
                    }
                    )
                },
                shortNum(t) {
                    return X()(t)
                }
            }
        }
          , pt = ut
          , ht = (e("81ec"),
        Object(p["a"])(pt, y, S, !1, null, "d2e773b6", null))
          , ft = ht.exports
          , mt = e("1e5c");
        e("486a");
        const vt = e("bc3a").default;
        var gt = {
            name: "App",
            components: {
                Cat: f,
                Footer: ft,
                Header: w
            },
            data: function() {
                return {
                    open: !1,
                    pop_sound_i: 0,
                    counter: 0,
                    accumulator: 0,
                    pop_sounds: ["pops/pop1", "pops/pop2", "pops/pop3", "pops/pop4"],
                    pop_howls: [],
                    sequential_max_pops: 0,
                    bot: !1,
                    location: null,
                    interval: !1,
                    token: ""
                }
            },
            created() {
                document.addEventListener("pointerup", this.p),
                document.addEventListener("keyup", this.p),
                document.addEventListener("pointerdown", this.op),
                document.addEventListener("keydown", this.op),
                this.counter = parseInt(s("pop_count"), 10),
                isNaN(this.counter) && (this.counter = 0),
                this.bot = s("bot"),
                this.pop_sounds.forEach( (t, a) => {
                    this.pop_howls[a] = new mt["Howl"]({
                        src: [t + ".ogg", t + ".mp3"]
                    })
                }
                );
                const t = s("country");
                t ? this.location = t : this.cloudflareGeo()
            },
            methods: {
                p() {
                    setTimeout( () => {
                        this.open = !1
                    }
                    , 25)
                },
                op(t) {
                    t.repeat || (this.open = !0,
                    this.pop_howls[this.pop_sound_i].play(),
                    this.pop_sound_i = [0, 1, 2, 3].filter(t => t !== this.pop_sound_i)[Math.floor(Math.random() * (this.pop_sounds.length - 1))],
                    this.counter++,
                    this.accumulator++,
                    i("pop_count", this.counter, 365),
                    this.interval || (this.interval = !0,
                    this.sendStats(),
                    setInterval(this.sendStats, 3e4)))
                },
                cloudflareGeo() {
                    vt.get("https://popcat.click/cdn-cgi/trace").then(t => {
                        const a = /^loc=(.*)$/gm;
                        this.location = a.exec(t.data)[1]
                    }
                    )
                },
                async sendStats() {
                    if (this.bot)
                        return;
                    if (0 === this.accumulator)
                        return;
                    let t = "";
                    this.token && (t = "&token=" + this.token),
                    vt.post(`https://stats.popcat.click/pop?pop_count=${this.accumulator > 800 ? 800 : this.accumulator}${t}`).then(t => {
                        this.accumulator >= 800 ? (this.sequential_max_pops += 1,
                        this.sequential_max_pops > 10 && (this.bot = !0,
                        i("bot", !0, .5))) : (this.sequential_max_pops = 0,
                        this.bot = !1),
                        this.accumulator = 0,
                        t.data && t.data.Location && t.data.Location.Code && (this.location = t.data.Location.Code,
                        i("country", t.data.Location.Code, .5)),
                        t.data.Token && (this.token = t.data.Token)
                    }
                    ).catch(t => {}
                    )
                }
            }
        }
          , Ct = gt
          , bt = (e("083c"),
        Object(p["a"])(Ct, o, r, !1, null, null, null))
          , wt = bt.exports;
        n["a"].use(e("395c")),
        n["a"].config.productionTip = !1,
        new n["a"]({
            render: t => t(wt)
        }).$mount("#app"),
        console.log("Popping on over to https://stats.popcat.click/pop."),
        console.log("%cWARNING", "font-size:10em;color:red;"),
        console.log("%cThis is a browser feature intended for developers.\nDo NOT copy and paste something here if you do not understand it.\n\nYou can learn more at:\nhttps://en.wikipedia.org/wiki/Self-XSS", "font-size:2em")
    },
    6224: function(t, a, e) {
        t.exports = e.p + "img/popcat.4158e1f3.svg"
    },
    "624c": function(t, a, e) {
        "use strict";
        e("7887")
    },
    "6e16": function(t, a, e) {
        "use strict";
        e("d481")
    },
    "743e": function(t, a, e) {},
    7887: function(t, a, e) {},
    "7c61": function(t, a, e) {
        t.exports = e.p + "img/maxwell-cat-world.3acc0d7d.png"
    },
    "81ec": function(t, a, e) {
        "use strict";
        e("b5c9")
    },
    "85fc": function(t) {
        t.exports = JSON.parse('{"AF":"Afghanistan","AX":"Åland Islands","AL":"Albania","DZ":"Algeria","AS":"American Samoa","AD":"Andorra","AO":"Angola","AI":"Anguilla","AQ":"Antarctica","AG":"Antigua and Barbuda","AR":"Argentina","AM":"Armenia","AW":"Aruba","AU":"Australia","AT":"Austria","AZ":"Azerbaijan","BS":"Bahamas","BH":"Bahrain","BD":"Bangladesh","BB":"Barbados","BY":"Belarus","BE":"Belgium","BZ":"Belize","BJ":"Benin","BM":"Bermuda","BT":"Bhutan","BO":"Bolivia","BQ":"BES Islands","BA":"Bosnia and Herzegovina","BW":"Botswana","BV":"Bouvet Island","BR":"Brazil","IO":"British Indian Ocean Territory","BN":"Brunei","BG":"Bulgaria","BF":"Burkina Faso","BI":"Burundi","CV":"Cabo Verde","KH":"Cambodia","CM":"Cameroon","CA":"Canada","KY":"Cayman Islands","CF":"Central African Republic","TD":"Chad","CL":"Chile","CN":"China","CX":"Christmas Island","CC":"Cocos (Keeling) Islands","CO":"Colombia","KM":"Comoros","CG":"Congo","CD":"Democratic Republic of the Congo","CK":"Cook Islands","CR":"Costa Rica","CI":"Côte d\'Ivoire","HR":"Croatia","CU":"Cuba","CW":"Curaçao","CY":"Cyprus","CZ":"Czechia","DK":"Denmark","DJ":"Djibouti","DM":"Dominica","DO":"Dominican Republic","EC":"Ecuador","EG":"Egypt","SV":"El Salvador","GQ":"Equatorial Guinea","ER":"Eritrea","EE":"Estonia","SZ":"Eswatini","ET":"Ethiopia","FK":"Falkland Islands","FO":"Faroe Islands","FJ":"Fiji","FI":"Finland","FR":"France","GF":"French Guiana","PF":"French Polynesia","TF":"French Southern Territories","GA":"Gabon","GM":"Gambia","GE":"Georgia","DE":"Germany","GH":"Ghana","GI":"Gibraltar","GR":"Greece","GL":"Greenland","GD":"Grenada","GP":"Guadeloupe","GU":"Guam","GT":"Guatemala","GG":"Guernsey","GN":"Guinea","GW":"Guinea-Bissau","GY":"Guyana","HT":"Haiti","HM":"Heard Island and McDonald Islands","VA":"Vatican","HN":"Honduras","HK":"Hong Kong","HU":"Hungary","IS":"Iceland","IN":"India","ID":"Indonesia","IR":"Iran","IQ":"Iraq","IE":"Ireland","IM":"Isle of Man","IL":"Israel","IT":"Italy","JM":"Jamaica","JP":"Japan","JE":"Jersey","JO":"Jordan","KZ":"Kazakhstan","KE":"Kenya","KI":"Kiribati","KP":"North Korea","KR":"South Korea","KW":"Kuwait","KG":"Kyrgyzstan","LA":"Laos","LV":"Latvia","LB":"Lebanon","LS":"Lesotho","LR":"Liberia","LY":"Libya","LI":"Liechtenstein","LT":"Lithuania","LU":"Luxembourg","MO":"Macao","MG":"Madagascar","MW":"Malawi","MY":"Malaysia","MV":"Maldives","ML":"Mali","MT":"Malta","MH":"Marshall Islands","MQ":"Martinique","MR":"Mauritania","MU":"Mauritius","YT":"Mayotte","MX":"Mexico","FM":"Micronesia","MD":"Moldova","MC":"Monaco","MN":"Mongolia","ME":"Montenegro","MS":"Montserrat","MA":"Morocco","MZ":"Mozambique","MM":"Myanmar","NA":"Namibia","NR":"Nauru","NP":"Nepal","NL":"Netherlands","NC":"New Caledonia","NZ":"New Zealand","NI":"Nicaragua","NE":"Niger","NG":"Nigeria","NU":"Niue","NF":"Norfolk Island","MK":"North Macedonia","MP":"Northern Mariana Islands","NO":"Norway","OM":"Oman","PK":"Pakistan","PW":"Palau","PS":"Palestine","PA":"Panama","PG":"Papua New Guinea","PY":"Paraguay","PE":"Peru","PH":"Philippines","PN":"Pitcairn","PL":"Poland","PT":"Portugal","PR":"Puerto Rico","QA":"Qatar","RE":"Réunion","RO":"Romania","RU":"Russia","RW":"Rwanda","BL":"Saint Barthélemy","SH":"Saint Helena, Ascension and Tristan da Cunha","KN":"Saint Kitts and Nevis","LC":"Saint Lucia","MF":"Saint Martin","PM":"Saint Pierre and Miquelon","VC":"Saint Vincent and the Grenadines","WS":"Samoa","SM":"San Marino","ST":"Sao Tome and Principe","SA":"Saudi Arabia","SN":"Senegal","RS":"Serbia","SC":"Seychelles","SL":"Sierra Leone","SG":"Singapore","SX":"Sint Maarten","SK":"Slovakia","SI":"Slovenia","SB":"Solomon Islands","SO":"Somalia","ZA":"South Africa","GS":"South Georgia and the South Sandwich Islands","SS":"South Sudan","ES":"Spain","LK":"Sri Lanka","SD":"Sudan","SR":"Suriname","SJ":"Svalbard and Jan Mayen","SE":"Sweden","CH":"Switzerland","SY":"Syria","TW":"Taiwan","TJ":"Tajikistan","TZ":"Tanzania","TH":"Thailand","TL":"Timor-Leste","TG":"Togo","TK":"Tokelau","TO":"Tonga","TT":"Trinidad and Tobago","TN":"Tunisia","TR":"Turkey","TM":"Turkmenistan","TC":"Turks and Caicos Islands","TV":"Tuvalu","UG":"Uganda","UA":"Ukraine","AE":"United Arab Emirates","GB":"United Kingdom","US":"United States","UM":"United States Minor Outlying Islands","UY":"Uruguay","UZ":"Uzbekistan","VU":"Vanuatu","VE":"Venezuela","VN":"Vietnam","VG":"British Virgin Islands","VI":"U.S. Virgin Islands","WF":"Wallis and Futuna","EH":"Western Sahara","YE":"Yemen","ZM":"Zambia","ZW":"Zimbabwe","QM":"United States","QO":"Outlying Oceania","ZZ":"Unknown or Invalid Territory","QU":"European Union","XA":"Canary Islands","XI":"Northern Ireland","XK":"Kosovo","XX":"Unknown","XZ":"International Waters","AC":"Ascension Island","CP":"Clipperton Island","DG":"Diego Garcia","EA":"Ceuta and Melilla","EU":"European Union","EZ":"Eurozone","FX":"Metropolitan France","IC":"Canary Islands","SU":"USSR","TA":"Tristan da Cunha","UK":"United Kingdom","UN":"United Nations","AN":"Netherlands Antilles","BU":"Burma","CS":"Serbia and Montenegro","NT":"Neutral Zone","SF":"Finland","TP":"East Timor","YU":"Yugoslavia","ZR":"Zaire"}')
    },
    "953f": function(t, a, e) {},
    a7f9: function(t, a, e) {
        t.exports = e.p + "img/op.353767c3.png"
    },
    b3b8: function(t, a, e) {},
    b5c9: function(t, a, e) {},
    c5a6: function(t, a, e) {
        "use strict";
        e("b3b8")
    },
    d481: function(t, a, e) {},
    ed03: function(t, a, e) {
        "use strict";
        e("743e")
    },
    f2ad: function(t, a, e) {
        t.exports = e.p + "img/spinning-rat-online.c048cc07.png"
    }
});
//# sourceMappingURL=app.8d95bb9b.js.map