window.VWO.consentMode=window.VWO.consentMode||{};window.VWO.consentMode.vTC= function(){if(window.VWO._.wRC){return;};(function(c,a,e,d,b,z,g,sT){if(window.VWO._&&window.VWO._.isBot)return;const cookiePrefix=window._vwoCc&&window._vwoCc.cookiePrefix||"";const uuid=a.split("|");const u=window._vwo_uuid||(window.VWO.data&&window.VWO.data.vin&&window.VWO.data.vin.uuid);u&&(uuid[0]=u,a=uuid.join("|"));const useLocalStorage=sT==="ls";const cookieName=cookiePrefix+"_vwo_uuid_v2";const escapedCookieName=cookieName.replace(/([.*+?^${}()|[\]\\])/g,"\\$1");const cookieDomain=g;function getValue(){if(useLocalStorage){return localStorage.getItem(cookieName)}else{const regex=new RegExp("(^|;\\s*)"+escapedCookieName+"=([^;]*)");const match=e.cookie.match(regex);return match?decodeURIComponent(match[2]):null}}function setValue(value,days){if(useLocalStorage){localStorage.setItem(cookieName,value)}else{e.cookie=cookieName+"="+value+"; expires="+new Date(864e5*days+ +new Date).toGMTString()+"; domain="+cookieDomain+"; path=/"}}let existingValue=null;if(sT){const cookieRegex=new RegExp("(^|;\\s*)"+escapedCookieName+"=([^;]*)");const cookieMatch=e.cookie.match(cookieRegex);const cookieValue=cookieMatch?decodeURIComponent(cookieMatch[2]):null;const lsValue=localStorage.getItem(cookieName);if(useLocalStorage){if(lsValue){existingValue=lsValue;if(cookieValue){e.cookie=cookieName+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; domain="+cookieDomain+"; path=/"}}else if(cookieValue){localStorage.setItem(cookieName,cookieValue);e.cookie=cookieName+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; domain="+cookieDomain+"; path=/";existingValue=cookieValue}}else{if(cookieValue){existingValue=cookieValue;if(lsValue){localStorage.removeItem(cookieName)}}else if(lsValue){e.cookie=cookieName+"="+lsValue+"; expires="+new Date(864e5*366+ +new Date).toGMTString()+"; domain="+cookieDomain+"; path=/";localStorage.removeItem(cookieName);existingValue=lsValue}}a=existingValue||a||""}else{const regex=new RegExp("(^|;\\s*)"+escapedCookieName+"=([^;]*)");const match=e.cookie.match(regex);a=match?decodeURIComponent(match[2]):(a||"")}if(a&&-1==e.cookie.indexOf("_vis_opt_out")&&-1==d.location.href.indexOf("vwo_opt_out=1")){a=a.split("|");var vQuery=new URLSearchParams({cd:String(window._vis_opt_cookieDays||0),a:"914011",d:d.location.hostname.replace(/^www\./,"") || c,u:a[0]||"",h:a[1]||""}).toString();window.VWO.collect("collect/v.gif?"+vQuery,{path:1,pushToIeQueue:1});setValue(a.join("|"),366)}})("ecco.com","J4537255E1174BD0ADC83AC56D23EAE79|bcb27621ff4bcec579e2ead484c762a1",document,window,0,null,"ecco.com",null);};if (window._vwoFlow === "link-survey") { window.VWO._.fLS(); } else { window.VWO.consentMode.vTC(); };;
