function storeClientSideUserId(n){var t=n.clientSideUserId.get();ATInternet.Utils.consentReceived(!0);ATInternet.Utils.userOptedIn();n.clientSideUserId.set(t);n.clientSideUserId.store()}var tag,accept_button,refuse_button;ATInternet.Utils.consentReceived(!1);tag=new ATInternet.Tracker.Tag({secure:!0,ignoreEmptyChapterValue:!0,sendHitWhenOptOut:!1});$("#cookieConsent").addClass("hidden");getCookie("atoptedout")!=""?ATInternet.Utils.userOptedOut():getCookie("atuserid")!=""?storeClientSideUserId(tag):$("#cookieConsent").removeClass("hidden");tag.page.set({name:window.location.pathname.split("/").pop(),level2:"20",chapter1:encodeURI(document.title)});tag.customVars.set({site:{10:encodeURIComponent(document.URL)}});tag.dispatch();accept_button=document.getElementsByClassName("btn-accept-cookies")[0];accept_button&&accept_button.addEventListener("click",function(){var n=new Date(Date.UTC());n.setTime(n.getTime()+31536e6);setCookie("atuserid",encodeURIComponent({name:"atuserid",val:uuidv4(),options:{end:n,path:"/"}}),365);storeClientSideUserId(tag);$("#cookieConsent").addClass("hidden")},!1);refuse_button=document.getElementsByClassName("btn-refuse-cookies")[0];refuse_button&&refuse_button.addEventListener("click",function(){var n=new Date(Date.UTC());n.setTime(n.getTime()+31536e6);setCookie("atoptedout",encodeURIComponent({name:"atoptedout",val:"OPT-OUT",options:{end:n,path:"/"}}),365);ATInternet.Utils.userOptedOut();$("#cookieConsent").addClass("hidden")},!1)