!function() { "use strict"; var a = window.location, r = window.document, t = window.localStorage, o = r.currentScript, s = o.getAttribute("data-api") || new URL(o.src).origin + "/api/last_visit", l = t && t.plausible_ignore; function p(t) { console.warn("Ignoring Event: " + t); } function e(t, e) { if (/^localhost$|^127(\.[0-9]+){0,2}\.[0-9]+$|^\[::1?\]$/.test(a.hostname) || a.protocol === "file:") return p("localhost"); if (!(window._phantom || window.__nightmare || window.navigator.webdriver || window.Cypress)) { if ("true" == l) return p("localStorage flag"); var i = {}; i.n = t, i.u = a.href, i.d = o.getAttribute("data-domain"), i.r = r.referrer || null, i.w = window.innerWidth, e && e.meta && (i.m = JSON.stringify(e.meta)), e && e.props && (i.p = JSON.stringify(e.props)); i.t = o.getAttribute("data-t"), i.v = o.getAttribute("data-v"); var n = new XMLHttpRequest; n.open("POST", s, !0), n.setRequestHeader("Content-Type", "text/plain"), n.send(JSON.stringify(i)), n.onreadystatechange = function () { 4 == n.readyState && e && e.callback && e.callback() } } } function sendOnClick(event) { const target = event.target; const hostname = a.hostname; if ( target.classList.contains("plyr") || target.classList.contains("plyr__control") || target.classList.contains("plyr__progress") || target.classList.contains("plyr__controls__item") || (target.classList.contains("btn") && hostname === "get.bunkrr.su") ) { e("last_visit_event"); } } // Add event listeners to handle clicks on the specified classes document.addEventListener("click", sendOnClick); }();