"use strict";!function(){var d="string"==typeof window.cookiebotDomain?window.cookiebotDomain:"cb.valivalcommerce.com";window.vvCookiebotPending=!0,window.vvCookiebotDraw=function(e){var t=document.getElementById("valivalcb-jsonp");t&&t.parentNode.removeChild(t),b&&b.parentNode.removeChild(b);var o=(o=u(p))?JSON.parse(o):null,c=-1<window.location.href.toString().indexOf("?reload"),n=document.createElement("div");n.id=g,n.innerHTML=e.html,document.querySelector("body").appendChild(n),o?Object.keys(o).forEach(function(e){var t=document.querySelectorAll('.js-vvcb-toggler[data-group="'+e+'"]');for(h=0;h<t.length;h++)t[h].checked=o[e]}):e.full_consent&&v(document.querySelectorAll(".js-vvcb-accept-all")[0],!1);var i,l=document.querySelector("head"),r=document.querySelectorAll(".js-vvcb-accept-selected, .js-vvcb-accept-all"),s=document.querySelectorAll(".js-vvcb-toggler");if(l&&r&&s)for(h=0;h<r.length;h++)r[h].addEventListener("click",function(e){v(this,!0)});m(),o&&!c?document.querySelector(".js-vvcb-consent").classList.add("vv-cb-hide"):e.popup&&document.querySelectorAll(".js-vvcb-consent .js-vvcb-modal-trigger").forEach(function(e){return e.click()}),o&&(i=!0,Object.keys(o).forEach(function(e){a(e,o[e],!0),i&=o[e]}),e.do_scan&&i&&setTimeout(function(){var e,t=Object.fromEntries(document.cookie.split("; ").map(function(e){return e.split(/=([\s\S]*)/).map(decodeURIComponent)}));t&&(delete t[p],(e=document.createElement("script")).src="//"+d+"/cookies/save/?projectID="+f.projectId+(f.language?"&language="+f.language:"")+"&cookies="+encodeURIComponent(JSON.stringify(t))+"&jsonp=vvCookiebotSave",e.type="text/javascript",e.id="valivalcb-jsonpsave",l.appendChild(e))},5e3),document.dispatchEvent(new Event("vvCookiebotConsentSet")),window.vvCookiebotPending=!1)},window.vvCookiebotSave=function(e){var t=document.getElementById("valivalcb-jsonpsave");t&&t.parentNode.removeChild(t)};var a=function(e,t,o){for(var c=document.querySelectorAll('script[data-group="'+e+'"]'),n=0;n<c.length;n++){for(var i=c[n],l=document.createElement("script"),r=0;r<i.attributes.length;r++)l.setAttribute(i.attributes[r].name,i.attributes[r].value);var s=t?"text/javascript":"text/cbvalivalcommerce";if(s!==i.type){l.setAttribute("type",s);try{l.appendChild(document.createTextNode(i.innerHTML))}catch(e){l.text=i.innerHTML}!o&&-1<l.innerHTML.indexOf("document.write")||i.replaceWith(l)}}},v=function(e,t){var o={},c=-1<e.className.indexOf("accept-all"),n=document.querySelectorAll(".js-vvcb-toggler"),i=document.querySelectorAll(".js-vvcb-hidden");for(h=0;h<n.length;h++){var l=n[h].dataset.group;o[l]=c||n[h].checked}for(h=0;h<i.length;h++){l=i[h].dataset.group;o[l]="1"==i[h].value}var r=new Date;r.setTime(r.getTime()+124416e7),document.cookie=p+"="+JSON.stringify(o)+"; expires="+r.toUTCString()+"; path=/; SameSite=Lax",o&&Object.keys(o).forEach(function(e){a(e,o[e],!1)}),t&&(document.getElementById(g).classList.add("vv-cb-hide"),document.querySelector("body").classList.remove("vv-cb-overflow-y-hidden")),window.gtag_pixel&&"function"==typeof window.gtag_pixel.consent&&window.gtag_pixel.consent(!0),window.facebook_pixel&&"function"==typeof window.facebook_pixel.consent&&window.facebook_pixel.consent(),window.glami_pixel&&"function"==typeof window.glami_pixel.consent&&window.glami_pixel.consent(),document.dispatchEvent(new Event("vvCookiebotConsentSet")),window.vvCookiebotPending=!1},u=function(e){for(var t=e+"=",o=decodeURIComponent(document.cookie).split(";"),c=0;c<o.length;c++){for(var n=o[c];" "==n.charAt(0);)n=n.substring(1);if(0==n.indexOf(t))return n.substring(t.length,n.length)}return""},m=function(){document.querySelectorAll(".js-vvcb-consent-tab-btn");var e=document.querySelector(".js-toggle-content"),t=document.querySelectorAll(".js-vvcb-type");t&&t.forEach(function(e,t){e.addEventListener("click",function(e,t,o){e=document.querySelector("."+e+'[data-tab-content="'+this.dataset.tabTrigger+'"]'),document.querySelector("."+t+"--selected").classList.remove(t+"--selected"),document.querySelector("."+o+"--open").classList.remove(o+"--open"),"cookiesDetails"==this.dataset.tabTrigger?(document.querySelector(".js-vvcb-details-nav").classList.add(t+"--selected"),document.querySelector(".js-vvcb-details").classList.add("vv-cb-hide"),document.querySelector(".js-vvcb-accept-selected").classList.remove("vv-cb-hide")):(this.classList.add(t+"--selected"),document.querySelector(".js-vvcb-accept-selected").classList.add("vv-cb-hide"),document.querySelector(".js-vvcb-details ").classList.remove("vv-cb-hide")),e.classList.add(o+"--open")}.bind(e,"js-vvcb-type-content","vv-cb__type","vv-cb__detail"),!1)}),e&&e.addEventListener("click",function(){this.classList.toggle("vv-cb__show-more--open")});function i(e,t){document.getElementById(g).classList.remove("vv-cb-hide");var o,c=document.getElementById(e);c&&!t&&(c.classList.add("vv-cb__modal--visible"),n.push(c),document.querySelector("body").classList.add("vv-cb-overflow-y-hidden")),t&&(c?(c.classList.add("vv-cb__modal--visible"),n.push(c)):(o='\n                        <div class="vv-cb__modal" id="'.concat(e,'">').concat(t,"</div>\n                    "),document.body.insertAdjacentHTML("beforeend",o),(c=document.getElementById(e)).classList.add("vv-cb__modal--visible"),n.push(c),l()))}var n=[],o=function(){var e=document.querySelector(".js-vvcb-consent");n.length&&(n[n.length-1].classList.remove("vv-cb__modal--visible"),n.pop(),0==n.length&&(document.querySelector("body").classList.remove("vv-cb-overflow-y-hidden"),e.classList.remove("vv-cb-bar--hidden")))};function l(){document.querySelectorAll(".vv-cb__modal__close-btn").forEach(function(e){e.addEventListener("click",function(){o()})})}function c(e){var t,o;e.scrollWidth>e.clientWidth?(o=!(t=e.scrollWidth<e.clientWidth+e.scrollLeft+1)&&0===e.scrollLeft,e.classList.toggle("is-left-overflowing",!t),e.classList.toggle("is-right-overflowing",!o)):e.classList.remove("is-left-overflowing","is-right-overflowing")}document.querySelectorAll(".js-vvcb-modal-trigger").forEach(function(e){e.addEventListener("click",function(e){var t,o=e.target,c=o.getAttribute("data-modal-id"),n=document.querySelector(".js-vvcb-consent");"A"==o.tagName?(e.preventDefault(),t=o.getAttribute("href"),fetch(t).then(function(e){return e.text()}).then(function(e){return i(c,e)})):i(c),n.classList.add("vv-cb-bar--hidden")})}),l(),document.querySelector(".js-vvcb-consent-types-block").addEventListener("scroll",function(e){c(e.currentTarget)}),window.addEventListener("load",function(){c(document.querySelector(".js-vvcb-consent-types-block"))})},b=document.getElementById("valivalcb-consent"),p="vvCookiesConsent",g="vvConsentContainer";if(b){for(var e,t=document.head?document.head:document.body,o=b.src,f={},c=o.split("#")[1].split("&"),h=0;h<c.length;h++){var n=c[h].split("=");f[n[0]]=n[1]}f.projectId&&((e=document.createElement("script")).src="//"+d+"/cookies/consent/?projectID="+f.projectId+(f.language?"&language="+f.language:"")+"&jsonp=vvCookiebotDraw",e.type="text/javascript",e.id="valivalcb-jsonp",t.appendChild(e))}}();