"use strict";var WP_Statistics_CheckTime=30,WP_Statistics_Dnd_Active=parseInt(navigator.msDoNotTrack||window.doNotTrack||navigator.doNotTrack,10),wpStatisticsUserOnline={init:function(){"undefined"==typeof WP_Statistics_Tracker_Object?console.log("Variable WP_Statistics_Tracker_Object not found on the page source. Please ensure that you have excluded the /wp-content/plugins/wp-statistics/assets/js/tracker.js file from your cache and then clear your cache."):(this.checkHitRequestConditions(),this.keepUserOnline())},checkHitRequestConditions:function(){!WP_Statistics_Tracker_Object.option.cacheCompatibility||WP_Statistics_Tracker_Object.option.dntEnabled&&1===WP_Statistics_Dnd_Active||this.sendHitRequest()},sendHitRequest:function(){var e=new XMLHttpRequest;e.open("GET",WP_Statistics_Tracker_Object.hitRequestUrl+"&referred="+encodeURIComponent(document.referrer)+"&_="+Date.now(),!0),e.setRequestHeader("Content-Type","application/json;charset=UTF-8"),e.send(null)},sendOnlineUserRequest:function(){var e=new XMLHttpRequest;e.open("GET",WP_Statistics_Tracker_Object.keepOnlineRequestUrl),e.setRequestHeader("Content-Type","application/json;charset=UTF-8"),e.send(null)},keepUserOnline:function(){setInterval(function(){document.hidden||WP_Statistics_Tracker_Object.option.dntEnabled&&1===WP_Statistics_Dnd_Active||this.sendOnlineUserRequest()}.bind(this),1e3*WP_Statistics_CheckTime)}};wpStatisticsUserOnline.init();