try{var config=JSON.parse(document.getElementById("slardar-config").textContent),slardarClient=config.slardarClient||"Slardar";!function(w,d,u,b,n,pc,ga,ae,po,s,p,e,t,pp){pc="precollect",ga="getAttribute",ae="addEventListener",s=function(m){(p=[].slice.call(arguments)).push(Date.now(),location.href),(m==pc?s.p.a:s.q).push(p)},s.q=[],s.p={a:[]},w[n]=s,(e=document.createElement("script")).onload=function(){config.disableInit||(w[n]("init",config),w[n]("start"))},e.src=u+"?bid="+b+"&globalName="+n,e.crossOrigin=u.indexOf("sdk-web")>0?"anonymous":"use-credentials",d.getElementsByTagName("head")[0].appendChild(e),ae in w&&(s.pcErr=function(e){e=e||w.event,(t=e.target||e.srcElement)instanceof Element||t instanceof HTMLElement?t[ga]("integrity")?w[n](pc,"sri",t[ga]("href")||t[ga]("src")):w[n](pc,"st",{tagName:t.tagName,url:t[ga]("href")||t[ga]("src")}):w[n](pc,"err",e.error)},s.pcRej=function(e){e=e||w.event,w[n](pc,"err",e.reason||e.detail&&e.detail.reason)},w[ae]("error",s.pcErr,!0),w[ae]("unhandledrejection",s.pcRej,!0)),"PerformanceLongTaskTiming"in w&&((pp=s.pp={entries:[]}).observer=new PerformanceObserver((function(l){pp.entries=pp.entries.concat(l.getEntries())})),pp.observer.observe({entryTypes:["longtask","largest-contentful-paint","layout-shift"]}))}(window,document,config.sdkUrl,config.bid,slardarClient)}catch(e){console.log("[ERROR] SlardarWeb: ",e)}