"use strict";var pingerStart=true;var pingerUrl=false;var pingerXsrf=false;function us_pinger(){if(pingerUrl!==false){if(typeof console!=="undefined")console.log("us_pinger Call");var form_data=new FormData;form_data.append("xjxcookie",pingerXsrf);fetch(pingerUrl,{method:"POST",cache:"no-cache",body:form_data}).then(function(response){return response.text()}).then(function(text){if(typeof console!=="undefined")console.log("us_pinger Response",text)})}}if(pingerStart){pingerStart=false;var secondsWait=Math.floor(Math.random()*Math.floor(60))+160;if(typeof console!=="undefined")console.log("us_pinger Start every "+secondsWait);setInterval(us_pinger,1e3*secondsWait)}onconnect=function(e){var port=e.ports[0];port.onmessage=function(e){if(Array.isArray(e.data)&&e.data.length>=2){if(typeof console!=="undefined")console.log("us_pinger Init message from main");pingerUrl=e.data[0];pingerXsrf=e.data[1]}}};