1(function(){'use strict';function pad(n){return n<10?'0'+n:String(n)} 2function tick(el,targetMs){var remaining=targetMs-Date.now();if(remaining<=0){var message=el.getAttribute('data-arv-expired')||'';var units=el.querySelector('.arv-countdown__units');if(units){if(message){var note=document.createElement('p');note.className='arv-countdown__expired';note.textContent=message;units.parentNode.replaceChild(note,units)}else{units.remove()}} 3return!1} 4var totalSeconds=Math.floor(remaining/1000);var values={days:Math.floor(totalSeconds/86400),hours:Math.floor((totalSeconds%86400)/3600),minutes:Math.floor((totalSeconds%3600)/60),seconds:totalSeconds%60};Object.keys(values).forEach(function(unit){var node=el.querySelector('[data-unit="'+unit+'"]');if(node){node.textContent=pad(values[unit])}});return!0} 5function init(){var elements=document.querySelectorAll('[data-arv-countdown]');Array.prototype.forEach.call(elements,function(el){var targetMs=Date.parse(el.getAttribute('data-arv-countdown'));if(isNaN(targetMs)){return} 6if(!tick(el,targetMs)){return} 7var timer=setInterval(function(){if(!tick(el,targetMs)){clearInterval(timer)}},1000)})} 8function words(remaining){var minute=60000;var hour=60*minute;var day=24*hour;if(remaining<=0){return''} 9if(remaining<hour){var mins=Math.max(1,Math.round(remaining/minute));return'in '+mins+(mins===1?' minute':' minutes')} 10if(remaining<day){var hours=Math.floor(remaining/hour);return'in '+hours+(hours===1?' hour':' hours')} 11var days=Math.floor(remaining/day);if(days<14){return'in '+days+(days===1?' day':' days')} 12var weeks=Math.round(days/7);return'in '+weeks+(weeks===1?' week':' weeks')} 13function tickWords(el,targetMs){var text=words(targetMs-Date.now());if(''===text){el.remove();return!1} 14if(el.textContent!==text){el.textContent=text} 15return!0} 16function initWords(){var elements=document.querySelectorAll('[data-arv-countdown-until]');Array.prototype.forEach.call(elements,function(el){var targetMs=Date.parse(el.getAttribute('data-arv-countdown-until'));if(isNaN(targetMs)){return} 17if(!tickWords(el,targetMs)){return} 18var timer=setInterval(function(){if(!tickWords(el,targetMs)){clearInterval(timer)}},30000)})} 19function boot(){init();initWords()} 20if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',boot)}else{boot()}})()
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.