window.sdl=window.sdl||[],document.addEventListener("DOMContentLoaded",(function(){try{function e(e){var t="; "+e+"=",n=(";"+document.cookie.toString()).split(t);if(2===n.length)return n.pop().split(";").shift()}var t=window.location,n={en:"en-ww",es:"es-es",de:"de-de",fr:"fr-fr",nl:"nl-nl",it:"it-it",pt:"pt-br",cs:"cs-cz",pl:"pl-pl",ru:"ru-ru"},a="";window.navigator.oscpu?a=window.navigator.oscpu:navigator.userAgentData&&navigator.userAgentData.platform?a=navigator.userAgentData.platform:document.body.className.indexOf("os-")&&(a=document.body.className.split("os-")[1]);var o=Math.min(window.screen.width,window.screen.height)<768||navigator.userAgent.indexOf("Mobi")>-1,r=document.getElementById("sdl-id")?document.getElementById("sdl-id").textContent:"";function s(){var t={};return e("OptanonConsent")&&e("OptanonConsent").split("&").forEach((e=>{var n=e.split("=");t[n[0]]=n[1]})),t}var d=s(),c=function(e){var t={locale:"en-ww",country:"WW"},a=/^\/[a-z]{2}(\/)?$|\/[a-z]{2}\/.*/g,o=/^\/[a-z]{2}-[a-z]{2}(\/)?.*/g;if(e.pathname.match(a)){var r=e.pathname.match(a)[0].split("/")[1];t.locale=n[r],t.country=r.toUpperCase()}else e.pathname.match(o)&&(t.locale=e.pathname.match(o)[0].split("/")[1],t.country=e.pathname.match(o)[0].split("/")[1].split("-")[1].toUpperCase());return t}(t);sdl.push({client:{cmpId:d.consentId?d.consentId:""},session:{countryCode:c.country,ip:"-",secChUa:void 0!==navigator.userAgentData&&navigator.userAgentData.brands.length>0?navigator.userAgentData.brands:[],platform:a,mobile:o},server:{provider:"hubspot",platform:"web",env:"prod",dataCenter:"-",sdlVersion:"2021-05-05/v1"},consentGroups:d.groups?decodeURIComponent(d.groups):"C0001:1"}),window.addEventListener("OneTrustGroupsUpdated",(function(){var e=s(),t=e.groups?decodeURIComponent(e.groups):"C0001:1",n=e.consentId?e.consentId:"";sdl.push({client:{cmpId:n},consentGroups:t,event:"user.update.consent",user:{update:{consent:{}}}})}));var l=t.origin+t.pathname,i="",m=document.getElementById("hub-dl")?document.getElementById("hub-dl").textContent:"",u=document.getElementById("category-dl")?document.getElementById("category-dl").textContent:"",p=document.getElementById("date-dl")?document.getElementById("date-dl").textContent:"",h=document.getElementById("author-dl")?document.getElementById("author-dl").textContent:"";i=document.getElementById("hub-dl")?m+"|"+u+"|"+h+"|"+p:document.getElementById("category-dl-cat")?u+"|"+p:document.getElementById("category-dl-hub")?m+"|"+u+"|"+p:"homepage";var g=document.getElementById("error-page-404"),v=document.getElementById("error-page-500");""!==t.search&&Object.fromEntries(new URLSearchParams(t.search)),sdl.push({event:"screen",screen:{location:{url:t.href,woParams:l,protocol:t.protocol.replace(":",""),path:t.pathname,hostname:t.hostname,hash:t.search,params:t.search?Object.fromEntries(new URLSearchParams(t.search)):{}},locale:c.locale,screenCategory:"blog",section:g?"404":v?"500":i,title:c.locale+" | "+t.pathname,type:g||v?"error":t.href.match(/(signal\.|\/signal\/)/g)?"signal":t.href.match(/\/c-/g)?"academy":t.hostname.match(/\press\./g)?t.hostname.split(".").slice(0,2).join(" "):"",name:g?"PageNotFound":v?"InternalServerError":document.title,lineOfBusiness:"Consumer",screenId:r}}),document.querySelectorAll('a[data-role="download-link"]').forEach((function(e){e.addEventListener("click",(function(){sdl.push({user:{download:{products:[{campaign:this.dataset.campaign?this.dataset.campaign:"",campaignMarker:this.dataset.campaignMarker?this.dataset.campaignMarker:"",sku:this.dataset.downloadName?this.dataset.downloadName:"N/A",productId:"",maintenance:0,seats:1,quantity:1,currencyCode:"USD",category:"",price:0,tax:0,brand:t.hostname?t.hostname.indexOf("avast")>-1?"avast":t.hostname.indexOf("avg")>-1?"avg":"":"",link:this.href?this.href:"",offerType:"download",os:"",localCurrencyCode:"",localPrice:0,localTax:0}]}},event:"user.download.products"})}))})),document.querySelectorAll(".btn").forEach((function(e){e.dataset&&e.dataset.role&&"download-link"!==e.dataset.role&&e.addEventListener("click",(function(){sdl.push({event:"user.click.link",user:{click:{link:{clickUrl:this.href,url:t.href,type:e.dataset&&e.dataset.role?e.dataset.role:""}}}})}))}));var y,f,w,E,I,C=new Date,b=(new Date).getTime(),B=0;document.addEventListener("scroll",(function(){if(y=document.documentElement.scrollHeight-window.innerHeight,f=y/5,w=document.documentElement.scrollTop,E=Math.trunc(w/f),B