PageSourceSearch

https://www.everytown.org/wp-content/plugins/webtoffee-cookie-consent/lite/frontend/js/script.min.js?ver=3.5.3

js everytown.org collected 2026-09-24 08:33:12 UTC 54,696 bytes, 1 lines download raw bytes

1!function(){const _wccStore=window._wccConfig,_wccStyle=window._wccStyles;let currentLaw=window._wccConfig._lawSelected[0],showBanner=!0;_wccStore._backupNodes=[],_wccStore._resetConsentID=!1,_wccStore._bannerState=!1,_wccStore._preferenceOriginTag=!1,_wccStore._poweredByHidden=!1,_wccStore._consentDetailsHidden=!1,_wccStore._cookiePath=function(){try{const currentPathname=window.location.pathname;if(_wccStore._publicURL)try{const publicPathname=new URL(_wccStore._publicURL).pathname.replace(/\/+$/,"");if(publicPathname&&"/"!==publicPathname&&currentPathname.startsWith(publicPathname))return publicPathname+"/"}catch(e){}return"/"}catch(e){return console.warn("Failed to detect cookie path:",e),"/"}}(),window.webtoffee=window.webtoffee||{};const ref=window.webtoffee;ref._wccConsentStore=new Map,ref._wccGetCookieMap=function(){const cookieMap={};try{document.cookie.split(";").forEach(cookie=>{const[key,value]=cookie.split("=");if(!key)return;const trimmedKey=key.trim();"wt_consent"===trimmedKey&&cookieMap[trimmedKey]||(cookieMap[trimmedKey]=value)})}catch(error){}return cookieMap};const currentCookieMap=ref._wccGetCookieMap();ref._wccGetFromStore=function(key){return ref._wccConsentStore.get(key)||""},ref._wccSetInStore=function(key,value){ref._wccConsentStore.set(key,value);const consentPath=_wccStore._enableConsentSharing?"/":_wccStore._cookiePath;ref._wccConsentStore.set("cookie_path",consentPath);const cookieStringArray=Array.from(ref._wccConsentStore,([k,v])=>`${k}:${v}`),scriptExpiry=_wccStore?._bannerConfig?.[currentLaw]?.settings?.consentExpiry||365;ref._wccSetCookie("wt_consent",cookieStringArray.join(","),scriptExpiry,void 0,void 0,consentPath)};const webtoffeeConsentMap=(currentCookieMap.wt_consent||"").split(",").reduce((prev,curr)=>{if(!curr)return prev;const[key,value]=curr.split(":");return prev[key]=value,prev},{}),cookiePath=webtoffeeConsentMap.cookie_path,isCorrectPath=!(!_wccStore._enableConsentSharing||!currentCookieMap.wt_consent)||(cookiePath?cookiePath===_wccStore._cookiePath:"/"===_wccStore._cookiePath&&currentCookieMap.wt_consent),consentKeys=["consent","action"].concat(_wccStore._categories.map(({slug:slug})=>slug)),consentValue=isCorrectPath?item=>webtoffeeConsentMap[item]||"":()=>"";function _wccGetElementByTag(tag){const item=document.querySelector("[data-tag="+tag+"]");return item||!1}function _wccEscapeRegex(literal){return literal.replace(/[.*+?^${}()[\]\\]/g,"\\$&")}function _wccAttachListener(selector,fn){const item=_wccFindElement(selector);item&&item.addEventListener("click",fn)}function _wccClassAction(action,selector,className,forParent=!0){const item=_wccFindElement(selector,forParent);return item&&item.classList[action](className)}function _wccFindElement(selector,forParent){let createdSelector=selector;if(!0===selector.startsWith("="))createdSelector=`[data-tag="${selector.substring(1)}"]`;const element=document.querySelector(createdSelector);return!element||forParent&&!element.parentElement?null:forParent?element.parentElement:element}function _wccRemoveBanner(){_wccHideBanner(),!0===_wccStore._bannerConfig[currentLaw].config.revisitConsent.status&&_wccShowRevisit(),"popup"===_wccGetType()&&(_wccHideOverLay(),document.body&&document.body.classList.contains("wcc-popup-overflow")&&document.body.classList.remove("wcc-popup-overflow"))}async function _wccInitOperations(){await async function(){const bannerConfig=_wccStore._bannerConfig,availableLaws=Object.keys(bannerConfig);let country="",is_eu=!1,region_code="",ccpaAllowedRegions=_wccStore._ccpaAllowedRegions,gdprAllowedRegions=_wccStore._gdprAllowedRegions;if(availableLaws.some(law=>"ALL"!==bannerConfig[law].settings.selectedRegion)){const visitor=await async function(){const apiUrl=_wccStore._restApiUrl,response=await fetch(apiUrl);return await response.json()}();visitor&&(country=visitor.country,is_eu=visitor.in_eu,region_code=visitor.region_code)}if(1===availableLaws.length){currentLaw=availableLaws[0],_wccBannerEnabled()||(showBanner=!1)}else currentLaw="EU"===country||is_eu?"GDPR":"US"===country?"CCPA":availableLaws[0];let selectedRegion=_wccStore._bannerConfig[currentLaw].settings.selectedRegion,bannerEnabled=_wccBannerEnabled();"GDPR"===currentLaw?bannerEnabled?"ALL"!==selectedRegion&&(showBanner=Array.isArray(gdprAllowedRegions)&&gdprAllowedRegions.length>0?gdprAllowedRegions.includes(country):is_eu):showBanner=!1:"CCPA"===currentLaw&&(bannerEnabled?"ALL"!==selectedRegion&&(showBanner=Array.isArray(ccpaAllowedRegions)&&ccpaAllowedRegions.length>0?"US"===country&&ccpaAllowedRegions.includes(region_code):function(country,region_code){return _wccStore._restrictToCA?"US"===country&&"CA"===region_code:"US"===country}(country,region_code)):showBanner=!1)}(),function(){if(document.getElementById("wcc-style")||!_wccStyle)return;document.head.insertAdjacentHTML("beforeend",` <style id="wcc-style">${_wccStyle.css[currentLaw]}</style>`)}(),function(){const shortCodes=_wccStore._tags;Array.prototype.forEach.call(shortCodes,function(shortcode){document.querySelectorAll("[data-tag="+shortcode.tag+"]").forEach(function(item){let styles="";for(const key in shortcode.styles)styles+=`${key}: ${shortcode.styles[key]};`;item.style.cssText=styles})})}(),async function(){const myEvent=new CustomEvent("_wccBannerVisible",{detail:{bannerVisibility:showBanner,currentLaw:currentLaw},bubbles:!0,cancelable:!0,composed:!1});if(setTimeout(()=>{document.body.dispatchEvent(myEvent)},0),currentLaw&&showBanner){const template=document.getElementById(`wccBannerTemplate_${currentLaw}`);if(template){const templateHtml=template.innerHTML,doc=(new DOMParser).parseFromString(templateHtml,"text/html");!function($doc){const footer=$doc.querySelector('[data-tag="detail"] .wcc-footer-shadow'),preference=$doc.querySelector('[data-tag="detail"]');if(!footer)return;const background=preference&&preference.style.backgroundColor||"#ffffff";footer.style.background=`linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, ${background} 100%)`}(doc),document.body.insertAdjacentHTML("afterbegin",doc.body.innerHTML)}}_wccSetPreferenceCheckBoxStates(),function(){for(const{slug:slug}of _wccStore._categories)_wccAttachListener("detail-category-title",()=>document.getElementById(`wccCategory${slug}`).classList.toggle("wcc-tab-active"));_wccAttachListener("=settings-button",()=>_wccSetPreferenceAction("settings-button")),_wccAttachListener("=detail-close",()=>_wccHidePreferenceCenter()),_wccAttachListener("=optout-cancel-button",()=>_wccHidePreferenceCenter()),_wccAttachListener("=close-button",()=>{_wccAcceptReject(_wccStore._bannerConfig[currentLaw].settings.closeButtonAction)()}),_wccAttachListener("=donotsell-button",()=>_wccSetPreferenceAction("donotsell-button")),_wccAttachListener("=reject-button",_wccAcceptReject("reject")),_wccAttachListener("=accept-button",_wccAcceptReject("all")),_wccAttachListener("=detail-accept-button",_wccAcceptReject("all")),_wccAttachListener("=detail-save-button",_wccAcceptReject()),_wccAttachListener("=detail-category-preview-save-button",_wccAcceptReject()),_wccAttachListener("=optout-confirm-button",_wccAcceptReject()),_wccAttachListener("=detail-reject-button",_wccAcceptReject("reject")),_wccAttachListener("=revisit-consent",()=>_revisitWccConsent()),_wccAttachListener("=optout-close",()=>_wccHidePreferenceCenter()),_wccAttachListener("=category-tab",()=>_wccShowTab("wccIABSectionCookie")),_wccAttachListener("=purpose-tab",()=>_wccShowTab("wccIABSectionPurpose")),_wccAttachListener("=vendor-tab",()=>
1_wccShowTab("wccIABSectionVendor")),_wccAttachListener("#wcc-iab-notice-toggle",()=>_wccShowPreferenceCenter()),function(){_wccIabInnerAccordionClickListener("wccIABSectionPurpose"),_wccIabInnerAccordionClickListener("wccIABSectionVendor"),document.querySelectorAll(".wcc-child-accordion .wcc-child-accordion-item").forEach(item=>item.addEventListener("click",function(event){if("checkbox"===event.target.type)return;const accordion=this.parentNode,btn=accordion.querySelector(".wcc-child-accordion-btn"),body=accordion.querySelector(".wcc-child-accordion-body"),isActive=accordion.classList.toggle("wcc-child-accordion-active");accordion.removeAttribute("aria-expanded"),btn&&btn.setAttribute("aria-expanded",isActive?"true":"false"),body&&body.setAttribute("aria-hidden",isActive?"false":"true")}));document.querySelectorAll(".wcc-consents-checkbox").forEach(function(checkbox){checkbox.addEventListener("change",wcc_enable_disable_consent)})}(),document.querySelectorAll(".wcc-preference-btn").forEach(button=>{const uniqueID=ref._wccRandomString(8,!1);button.id=uniqueID,button.addEventListener("click",function(){_revisitWccConsent()})}),function(){if(!_wccStore._bannerConfig[currentLaw].config.auditTable.status)return;const categoryNames=_wccStore._categories.map(({slug:slug})=>slug),sync=(root,expanded)=>{if(!root)return;const btn=root.querySelector(".wcc-accordion-btn"),body=root.querySelector(".wcc-accordion-body");root.removeAttribute("aria-expanded"),btn&&btn.setAttribute("aria-expanded",expanded?"true":"false"),body&&body.setAttribute("aria-hidden",expanded?"false":"true")};categoryNames.map(category=>{const selector=`#wccDetailCategory${category}`;_wccAttachListener(selector,({target:{id:id}})=>{if(id===`wccSwitch${category}`)return;const accordion=document.querySelector(selector);if(!accordion)return;const isActive=accordion.classList.toggle("wcc-accordion-active");sync(accordion,isActive),categoryNames.filter(categoryName=>categoryName!==category).map(filteredName=>{const other=document.querySelector(`#wccDetailCategory${filteredName}`);other&&(other.classList.remove("wcc-accordion-active"),sync(other,!1))})})})}()}(),function(){const toggle=_wccStore._bannerConfig[currentLaw].config.optOption.toggle,activeColor=toggle.states.active.styles["background-color"],inactiveColor=toggle.states.inactive.styles["background-color"];!function(){_wccClassAction("remove",...arguments)}("=optout-option","wcc-disabled",!1);const toggleDataCode=_wccStore._bannerConfig[currentLaw].settings.shortcodes.find(code=>"wcc_optout_toggle_label"===code.key),optOutTitle=_wccStore._bannerConfig[currentLaw].settings.shortcodes.find(code=>"wcc_optout_option_title"===code.key),formattedLabel=toggleDataCode.content.replace("[wcc_optout_option_title]",optOutTitle.content);let checked=_wccGPCEnabled()||"no"===ref._wccGetFromStore("consent"),isDisabled=_wccGPCEnabled();!function(boxElem,formattedLabel,{checked:checked,disabled:disabled,addListeners:addListeners},{activeColor:activeColor,inactiveColor:inactiveColor},isCCPA=!1){if(!boxElem)return;isCCPA&&addListeners&&_wccAttachListener("=optout-option-title",()=>boxElem.click());if(boxElem.checked=checked,boxElem.disabled=disabled,boxElem.style.backgroundColor=checked?activeColor:inactiveColor,_wccSetCheckBoxAriaLabel(boxElem,checked,formattedLabel,isCCPA),!addListeners)return;boxElem.addEventListener("change",({currentTarget:elem})=>{const isChecked=elem.checked;elem.style.backgroundColor=isChecked?activeColor:inactiveColor,_wccSetCheckBoxAriaLabel(boxElem,isChecked,formattedLabel,isCCPA)})}(document.getElementById("wccCCPAOptOut"),formattedLabel,{checked:checked,disabled:isDisabled,addListeners:!isDisabled},{activeColor:activeColor,inactiveColor:inactiveColor},!0);const gpcWrapper=document.querySelector('[data-tag="optout-gpc-option"]');gpcWrapper&&(_wccGPCEnabled()?gpcWrapper.style.display="":gpcWrapper.style.display="none");if(_wccGPCEnabled()){const optOutCheckbox=document.getElementById("wccCCPAOptOut");if(optOutCheckbox){optOutCheckbox.checked=!0,optOutCheckbox.disabled=!0;const checkboxWrapper=optOutCheckbox.closest('[data-tag="optout-option"], .wcc-opt-out-checkbox-wrapper');checkboxWrapper&&(checkboxWrapper.style.cursor="no-drop");const checkboxContainer=optOutCheckbox.closest('.wcc-opt-out-checkbox, [data-tag="optout-gpc-option"]');checkboxContainer&&(checkboxContainer.style.pointerEvents="none",checkboxContainer.style.opacity="0.6");const optOutTitle=document.querySelector('[data-tag="optout-option-title"]');optOutTitle&&(optOutTitle.style.pointerEvents="none"),optOutCheckbox.style.cursor="no-drop"}}}(),function(){const noticeGpcWrapper=document.querySelector('[data-tag="notice-gpc-option"]');if(!noticeGpcWrapper)return;_wccGPCEnabled()?noticeGpcWrapper.classList.remove("wcc-hide"):noticeGpcWrapper.classList.add("wcc-hide")}(),_wccSetPlaceHolder(),function(){const readMoreButton=_wccStore._bannerConfig[currentLaw].settings.shortcodes.find(code=>"wcc_readmore"===code.key);if(!readMoreButton.status)return;const content=readMoreButton.content,styles=_wccStore._bannerConfig[currentLaw].config.readMore.styles,readMoreElement=document.querySelector('[data-tag="description"]');if(!readMoreElement)return;if(readMoreElement.childNodes.length>1){const innerElement=document.querySelector('[data-tag="description"] p:last-child');innerElement&&innerElement.insertAdjacentHTML("beforeend",`&nbsp;${content}`)}else readMoreElement.insertAdjacentHTML("beforeend",`&nbsp;${content}`);const placeHolders=document.querySelectorAll('[data-tag="readmore-button"]');if(placeHolders.length<1)return;
1Array.from(placeHolders).forEach(placeHolder=>{for(const style in styles)styles[style]&&(placeHolder.style[style]=styles[style])})}(),function(){const item=document.getElementById("wcc-style-inline");item&&item.remove()}(),function(){const notice=_wccGetElementByTag("notice");if(!notice)return!1;const container=notice.closest(".wcc-consent-container");if(!container)return!1;const type=_wccStore._bannerConfig[currentLaw].settings.type;let position=_wccStore._bannerConfig[currentLaw].settings.position;"popup"===type&&(position="center",_wccShowOverLay(),document.body.classList.add("wcc-popup-overflow"));const noticeClass="wcc-"+type+"-"+position;container.classList.add(noticeClass);const revisitConsent=_wccGetElementByTag("revisit-consent");if(!revisitConsent)return!1;const revisitPosition=`wcc-revisit-${_wccStore._bannerConfig[currentLaw].config.revisitConsent.position}`;revisitConsent.classList.add(revisitPosition)}(),function(){if(!_wccStore._rtl)return;["notice","detail","optout-popup","revisit-consent","video-placeholder"].forEach(function(item){_wccGetElementByTag(item)&&_wccGetElementByTag(item).classList.add("wcc-rtl")})}(),function(){const poweredByStatus=_wccStore._bannerConfig[currentLaw].config.preferenceCenter.poweredBy.status;_wccStore._poweredByHidden=!poweredByStatus;const styles=poweredByStatus?{display:"flex",justifyContent:"flex-end",alignItems:"center"}:{display:"none"};["detail-powered-by","optout-powered-by"].forEach(key=>{const element=document.querySelector(`[data-tag="${key}"]`);element&&Object.assign(element.style,styles)})}(),_wccSetConsentDetails(),_wccSetFooterWrapperStyles()}(),function(){const activeLaw=_wccGetLaw(),showCode=_wccStore._bannerConfig[currentLaw].settings.shortcodes.find(code=>"wcc_show_desc"===code.key),hideCode=_wccStore._bannerConfig[currentLaw].settings.shortcodes.find(code=>"wcc_hide_desc"===code.key);if(!showCode||!hideCode)return;const hideButtonContent=hideCode.content,showButtonContent=showCode.content,contentLimit=window.innerWidth<376?150:300,element=document.querySelector(`[data-tag="${"gdpr"===activeLaw?"detail":"optout"}-description"]`);if(!element)return;if(element.textContent.length<contentLimit)return;const contentHTML=element.innerHTML,innerElements=(new DOMParser).parseFromString(contentHTML,"text/html").querySelectorAll("body > p");if(innerElements.length<=1)return;let strippedContent="";for(let index=0;index<innerElements.length;index++){if(index===innerElements.length-1)return;const element=innerElements[index];if(`${strippedContent}${element.outerHTML}`.length>contentLimit&&element.insertAdjacentHTML("beforeend",`...&nbsp;${showButtonContent}`),strippedContent=`${strippedContent}${element.outerHTML}`,strippedContent.length>contentLimit)break}function showMoreHandler(){element.innerHTML=`${contentHTML}${hideButtonContent}`,_wccAttachListener("=hide-desc-button",showLessHandler)}function showLessHandler(){element.innerHTML=strippedContent,_wccAttachListener("=show-desc-button",showMoreHandler)}showLessHandler()}();let renew_date=_wccStore._renewConsent;const consent_time=function(cookieName){const cookieValue=document.cookie.split(";").map(cookie=>cookie.trim()).find(row=>row.startsWith(`${cookieName}=`));if(cookieValue){const cookiePairs=cookieValue.substring(cookieName.length+1).split(",");for(const pair of cookiePairs){const[key,value]=pair.split(":");if("consent_time"===key){const lastModifiedTime=Number(value);if(!isNaN(lastModifiedTime))return lastModifiedTime}}}return null}("wt_consent");!ref._wccGetFromStore("action")||function(){let params=new URL(document.location).searchParams;return params.get("wcc_preview")&&"true"===params.get("wcc_preview")}()||renew_date&&renew_date>consent_time?(_wccShowBanner(),function(){const activeLaw=_wccGetLaw(),ccpaCheckBoxValue=_wccFindCheckBoxValue();"ccpa"===activeLaw?ref._wccSetInStore("consent",ccpaCheckBoxValue?"no":"yes"):ref._wccSetInStore("consent","no");const responseCategories={accepted:[],rejected:[]};for(const category of _wccStore._categories){let valueToSet="yes";showBanner&&("gdpr"===activeLaw&&!category.isNecessary&&!category.defaultConsent.gdpr||"ccpa"===activeLaw&&ccpaCheckBoxValue&&!category.defaultConsent.ccpa)&&(valueToSet="no"),"no"===valueToSet?responseCategories.rejected.push(category.slug):responseCategories.accepted.push(category.slug),ref._wccSetInStore(`${category.slug}`,valueToSet)}_wccUnblock(),_wccSendConsentEvent(responseCategories)}(),renew_date&&renew_date>consent_time&&(_wccAcceptReject("reject"),ref._wccSetInStore("action",""))):_wccRemoveBanner()}async function _wccInit(){try{_wccInitOperations(),function(){for(const category of _wccStore._categories)"yes"!==ref._wccGetFromStore(category.slug)&&_wccRemoveDeadCookie
1s(category)}(),document.querySelector("body").addEventListener("click",event=>{const selector=".wcc-banner-element, .wcc-banner-element *";(event.target.matches?event.target.matches(selector):event.target.msMatchesSelector(selector))&&_revisitWccConsent()}),_wccApplyCustomPlaceholders()}catch(err){console.error(err)}}var callback;function wcc_enable_disable_consent(){let el=this.getAttribute("data-tag");const nestedInputs=document.querySelectorAll(".wcc-"+el+"-checkbox, .wcc-"+el+"-legitimate-interests-checkbox"),isChecked=this.checked;nestedInputs.forEach(input=>{input.checked=isChecked})}function _wccIabInnerAccordionClickListener(containerId){document.querySelectorAll(`#${containerId} .wcc-accordion .wcc-accordion-iab-item`).forEach(item=>{item.addEventListener("click",function(event){if("checkbox"===event.target.type)return;const accordion=this.parentNode,btn=this.querySelector(".wcc-accordion-btn"),body=accordion.querySelector(".wcc-accordion-body");accordion.classList.toggle("wcc-accordion-active");const isActive=accordion.classList.toggle("wcc-child-accordion-active");accordion.removeAttribute("aria-expanded"),btn&&btn.setAttribute("aria-expanded",isActive?"true":"false"),body&&body.setAttribute("aria-hidden",isActive?"false":"true")})})}function _wccGetLaw(){return _wccStore._bannerConfig[currentLaw].settings.applicableLaw}function _wccBannerEnabled(){return _wccStore._bannerConfig[currentLaw].settings.bannerEnabled}function _wccGetType(){return _wccStore._bannerConfig[currentLaw].settings.type}function _wccGetBanner(){const notice=_wccGetElementByTag("notice"),container=notice&&notice.closest(".wcc-consent-container")||!1;return container&&container||!1}function _wccHideBanner(){const notice=_wccGetBanner();notice&&notice.classList.add("wcc-hide")}function _wccShowBanner(){const notice=_wccGetBanner();notice&&notice.classList.remove("wcc-hide")}function _wccHideOverLay(){const overlay=document.querySelector(".wcc-overlay");overlay&&overlay.classList.add("wcc-hide")}function _wccShowOverLay(){const overlay=document.querySelector(".wcc-overlay");overlay&&overlay.classList.remove("wcc-hide")}function _wccGetPreferenceCenter(){if("classic"===_wccGetType())return _wccGetBanner();let element="ccpa"===_wccGetLaw()?_wccGetElementByTag("optout-popup"):_wccGetElementByTag("detail");return element&&element.closest(".wcc-modal")||!1}function _wccHidePreferenceCenter(){const element=_wccGetPreferenceCenter();element&&element.classList.remove(_wccGetPreferenceClass()),"classic"!==_wccGetType()&&(_wccHideOverLay(),ref._wccGetFromStore("action")||_wccShowBanner()),ref._wccGetFromStore("action")&&_wccShowRevisit();const origin=_wccStore._preferenceOriginTag;origin&&function(tagName){const element=_wccGetElementByTag(tagName);if(!element)return;element.focus()}(origin)}function _wccShowPreferenceCenter(){const element=_wccGetPreferenceCenter();element&&element.classList.add(_wccGetPreferenceClass()),"classic"!==_wccGetType()&&(_wccShowOverLay(),_wccHideBanner())}function _wccTogglePreferenceCenter(){const element=_wccGetPreferenceCenter();element&&element.classList.toggle(_wccGetPreferenceClass()),"classic"!==_wccGetType()&&function(){const overlay=document.querySelector(".wcc-overlay");overlay&&overlay.classList.toggle("wcc-hide")}()}function _wccGetPreferenceClass(){return"classic"===_wccGetType()?"wcc-consent-bar-expand":"wcc-modal-open"}function _wccGetRevisit(){const revisit=_wccGetElementByTag("revisit-consent");return revisit&&revisit||!1}function _wccShowRevisit(){const revisit=_wccGetRevisit();revisit&&revisit.classList.remove("wcc-revisit-hide")}function _wccSetPreferenceAction(tagName=!1){_wccStore._preferenceOriginTag=tagName,"classic"===_wccGetType()?_wccTogglePreferenceCenter():_wccShowPreferenceCenter()}consentKeys.forEach(item=>ref._wccConsentStore.set(item,consentValue(item))),isCorrectPath&&ref._wccConsentStore.set("cookie_path",_wccStore._enableConsentSharing?"/":_wccStore._cookiePath),ref._wccGetCookie=function(name){const cookies=document.cookie.split(";");for(let i=0;i<cookies.length;
1i++){const cookie=cookies[i].trim();if(cookie.startsWith(name+"="))return decodeURIComponent(cookie.substring(name.length+1))}return null},ref._wccSetCookie=function(name,value,days=0,domain=_wccStore._rootDomain,ssl=_wccStore._ssl,path=_wccStore._cookiePath){const date=new Date,domainStr=domain?`domain=${domain}`:"",sslStr=ssl?"secure":"",toSetTime=0===days?0:date.setTime(date.getTime()+24*days*60*60*1e3);document.cookie=`${name}=${value}; expires=${new Date(toSetTime).toUTCString()}; path=${path};${domainStr}; SameSite=Strict;${sslStr};`},_revisitWccConsent=function(){"classic"===_wccGetType()&&_wccShowBanner(),_wccSetPreferenceAction(),function(force=!1){const revisit=_wccGetRevisit();revisit&&(!0===force?_wccRevisitHide():revisit.classList.toggle("wcc-revisit-hide"))}()},ref._wccRandomString=function(length,allChars=!0){const chars=(allChars?"0123456789":"")+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghiklmnopqrstuvwxyz",response=[];for(let i=0;i<length;i++)response.push(chars[Math.floor(Math.random()*chars.length)]);return allChars?btoa(response.join("")).replace(/\=+$/,""):response.join("")},callback=async function(){try{await _wccInit()}catch(err){console.error(err)}},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",callback):callback());const sectionNames=["wccIABSectionCookie","wccIABSectionPurpose","wccIABSectionVendor"];function _wccShowTab(tagName=!1){sectionNames.forEach(validTagName=>{!function(){const buttons=document.querySelectorAll(".wcc-iab-nav-item");buttons.forEach(button=>{button.addEventListener("click",function(){buttons.forEach(btn=>btn.classList.remove("wcc-iab-nav-item-active")),this.classList.add("wcc-iab-nav-item-active")})})}();const tab=function(tagName=!1){const tab=_wccGetElementByTag(tagName);return tab&&tab||!1}(validTagName);validTagName===tagName?tab&&tab.classList.remove("wcc-hide"):tab&&tab.classList.add("wcc-hide")})}function _wccRemoveDeadCookies({cookies:cookies}){const currentCookieMap=ref._wccGetCookieMap();for(const{cookieID:cookieID,domain:domain}of cookies)for(const existingCookieID in currentCookieMap){(existingCookieID===cookieID||cookieID.includes("*")&&new RegExp(`^${cookieID.replace("*",".*")}$`).test(existingCookieID))&&[domain,""].map(cookieDomain=>ref._wccSetCookie(existingCookieID,"",0,cookieDomain))}}function _wccSetPreferenceCheckBoxStates(revisit=!1){for(const category of _wccStore._categories){const cookieValue=ref._wccGetFromStore(category.slug);_wccSetCheckboxes(category,"yes"===cookieValue||!cookieValue&&category.defaultConsent[_wccGetLaw()]||category.isNecessary,category.isNecessary,_wccStore._bannerConfig[currentLaw].settings.shortcodes.find(code=>"wcc_category_toggle_label"===code.key).content.replace("[wcc_preference_{{category_slug}}_title]",category.name),revisit),_wccSetPreferenceState(category)}}function _wccSetCheckboxes(category,checked,disabled,formattedLabel,revisit=!1){const toggle=_wccStore._bannerConfig[currentLaw].config.preferenceCenter.toggle,activeColor=toggle.states.active.styles["background-color"],inactiveColor=toggle.states.inactive.styles["background-color"];["wccCategoryDirect","wccSwitch"].map(key=>{const boxElem=document.getElementById(`${key}${category.slug}`);boxElem&&(!function(element,category={},revisit=!1){if(revisit)return;"detail-category-toggle"===element.parentElement.getAttribute("data-tag")?function(element,category){let toggleContainer=element.closest(".wcc-accordion-item");if(!toggleContainer)return;const toggleSwitch=toggleContainer.querySelector(".wcc-switch"),necessaryText=toggleContainer.querySelector(".wcc-always-active");category.isNecessary?toggleSwitch&&toggleSwitch.remove():(necessaryText&&necessaryText.remove(),("classic"===_wccGetType()&&_wccStore._bannerConfig[currentLaw].config.categoryPreview.status||category.cookies&&0===category.cookies.length&&!category.foundNoCookieScript)&&toggleSwitch&&toggleSwitch.remove())}(element,category):"detail-category-preview-toggle"===element.parentElement.getAttribute("data-tag")&&function(element,category){category.cookies&&0===category.cookies.length&&!category.isNecessary&&element.parentElement.parentElement.remove()}(element,category)}(boxElem,category,revisit),boxElem.checked=checked,boxElem.disabled=disabled,boxElem.style.backgroundColor=checked?activeColor:inactiveColor,_wccSetCheckBoxAriaLabel(boxElem,checked,formattedLabel),revisit||boxElem.addEventListener("change",({currentTarget:elem})=>{const isChecked=elem.checked;elem.style.backgroundColor=isChecked?activeColor:inactiveColor,_wccSetCheckBoxAriaLabel(boxElem,isChecked,formattedLabel)}))})}function _wccSetPreferenceState(category){if(!1===_wccStore._bannerConfig[currentLaw].config.auditTable.status){const tableElement=document.querySelector(`#wccDetailCategory${category.slug} [data-tag="audit-table"]`);tableElement&&tableElement.remove();const chevronElement=document.querySelector(`#wccDetailCategory${category.slug} .wcc-accordion-chevron`);chevronElement&&chevronElement.classList.add("wcc-accordion-chevron-hide")}}function _wccSetCheckBoxAriaLabel(boxElem,isChecked,formattedLabel,isCCPA=!1){if(!boxElem)return;
1const keyName=isChecked?"disable":"enable",textCode=`wcc_${keyName}_${isCCPA?"optout":"category"}_label`,shortCodeData=_wccStore._bannerConfig[currentLaw].settings.shortcodes.find(code=>code.key===textCode);if(!shortCodeData)return;const labelText=formattedLabel.replace(/{{status}}/g,keyName).replace(`[${textCode}]`,shortCodeData.content);boxElem.setAttribute("aria-label",labelText)}function _wccAcceptReject(option="custom"){return()=>{!function(choice="all"){const activeLaw=_wccGetLaw(),ccpaCheckBoxValue=_wccFindCheckBoxValue();ref._wccSetInStore("action","yes"),"gdpr"===activeLaw?ref._wccSetInStore("consent","reject"===choice?"no":"yes"):ref._wccSetInStore("consent",ccpaCheckBoxValue?"no":"yes");const responseCategories={accepted:[],rejected:[]};for(const category of _wccStore._categories){let valueToSet="no";valueToSet="gdpr"===activeLaw?category.isNecessary||"reject"!==choice&&("custom"!==choice||_wccFindCheckBoxValue(category.slug))?"yes":"no":ccpaCheckBoxValue&&!category.defaultConsent.ccpa||!category.isNecessary&&"CCPA"===currentLaw&&"reject"===choice?"no":"yes",ref._wccSetInStore(`${category.slug}`,valueToSet),"no"===valueToSet?(responseCategories.rejected.push(category.slug),_wccRemoveDeadCookies(category)):responseCategories.accepted.push(category.slug)}let customEventSupport=_wccStore._customEvents;window.dataLayer&&customEventSupport&&window.dataLayer.push({event:"cookie_consent_updated"});_wccUnblock(),function(){if(new URLSearchParams(window.location.search).has("wcc_bypass"))return;const iframes=document.querySelectorAll("iframe[src]");for(const node of iframes)try{if(!node.src)continue;if(node.closest(".wcc-consent-container"))continue;if(node.closest('.video-placeholder-normal, .video-placeholder-youtube, .video-placeholder-tiktok, [data-tag="video-placeholder"]'))continue;let hostname,pathname,urlToParse=node.src;if(urlToParse.match(/^\/[a-zA-Z0-9]+\/?$/))hostname=window.location.hostname,pathname=urlToParse;else try{const url=new URL(urlToParse.startsWith("//")?`${window.location.protocol}${urlToParse}`:urlToParse.startsWith("/")?`${window.location.origin}${urlToParse}`:urlToParse.match(/^https?:\/\//)?urlToParse:`${window.location.origin}/${urlToParse}`);hostname=url.hostname,pathname=url.pathname}catch(urlError){hostname=window.location.hostname,pathname=urlToParse.startsWith("/")?urlToParse:`/${urlToParse}`}const cleanedHostname=_wccCleanHostName(`${hostname}${pathname}`);if(node.hasAttribute("data-wcc")&&!_wccIsCategoryToBeBlocked(node.getAttribute("data-wcc")))continue;if(!_wccShouldBlockProvider(cleanedHostname))continue;const uniqueID=ref._wccRandomString(8,!1),category=_wccGetCategoryFromBlockedScript(node,cleanedHostname),w=node.offsetWidth||node.getBoundingClientRect().width||560,h=node.offsetHeight||node.getBoundingClientRect().height||315;_wccAddPlaceholder({nodeName:"iframe",src:node.src,offsetWidth:w,offsetHeight:h,insertAdjacentHTML:function(position,html){node.insertAdjacentHTML(position,html)}},uniqueID,category);const backupNode=node.cloneNode(!0);node.remove(),_wccStore._backupNodes.push({position:"body",node:backupNode,uniqueID:uniqueID})}catch(e){console.error("Error in _wccReblockExistingEmbeds:",e)}_wccSetPlaceHolder(),_wccApplyCustomPlaceholders()}(),_wccApplyCustomPlaceholders(),_wccSendConsentEvent(responseCategories,choice)}(option),function(){if(ref._wccGetFromStore("consentid"))return;const consentID=ref._wccRandomString(32);ref._wccSetInStore("consentid",consentID),_wccStore._resetConsentID=!0}(),function(){const consentTime=(new Date).getTime();ref._wccSetInStore("consent_time",consentTime)}(),_wccRemoveBanner(),_wccHidePreferenceCenter(),async function(){if(!_wccStore._logConsent)return;try{const data={log:JSON.stringify(_wccStore._categories.map(({slug:slug})=>({name:slug,status:ref._wccGetFromStore(slug)||"no"})).concat([{name:"Cookie Consent",status:"ccpa"===_wccStore._bannerConfig.activeLaw?"yes":ref._wccGetFromStore("consent")||"no"}])),consent_id:ref._wccGetFromStore("consentid")};let request=new XMLHttpRequest;request.open("POST",`${_wccApi.base}consent_logs`,!0),request.setRequestHeader("Content-type","application/json"),request.setRequestHeader("X-WP-Nonce",_wccApi.nonce),request.send(JSON.stringify(data))}catch(err){console.error(err)}}(),function(){"gdpr"===_wccGetLaw()&&_wccSetPreferenceCheckBoxStates(!0);_wccSetConsentDetails(),_wccSetFooterWrapperStyles(),!0===_wccStore._bannerConfig[currentLaw].behaviours.reloadBannerOnAccept&&window.location.reload()}()}}const _wccCreateElementBackup=document.createElement;function _wccUnblock(){if(1===navigator.doNotTrack)return;const consent=ref._wccGetFromStore("consent");("gdpr"!==_wccGetLaw()||consent&&"yes"===consent||!showBanner)&&(_wccStore._backupNodes=_wccStore._backupNodes.filter(entry=>{const{position:position,node:node,uniqueID:uniqueID}=entry;try{if(entry.wccPh){return!!_wccGetBlockedPlaceholderCategories(entry.categories||[]).length||(document.getElementById(uniqueID)?.remove(),node&&(node.style.display="",delete node.dataset.wccPh),!1)}if(_wccShouldBlockProvider(node.src))return!0;const frame=document.getElementById(uniqueID);if("BLOCKQUOTE"===node.nodeName&&node.classList.contains("tiktok-embed")&&frame){frame.parentNode.insertBefore(node,frame);const script=document.createElement("script");return script.src="https://www.tiktok.com/embed.js",script.async=!0,document.body.appendChild(script),frame.parentNode.removeChild(frame),!1}if(node.src&&node.type&&node.type.startsWith("javascript")){const scriptNode=document.createElement("script");scriptNode.src=node.src,scriptNode.type="text/javascript",scriptNode.async=!0;return("head"===position?document.head:document.body).appendChild(scriptNode),frame&&frame.parentNode.removeChild(frame),!1}if(frame)if(void 0!==node.frameBorder&&node.hasAttribute&&node.hasAttribute("allow"))frame.parentNode.insertBefore(node,frame),frame.parentNode.removeChild(frame);
1else if("VIDEO"===node.nodeName)frame.parentNode.insertBefore(node,frame),frame.parentNode.removeChild(frame);else{const iframe=document.createElement("iframe");iframe.src=node.src,iframe.width=frame.offsetWidth,iframe.height=frame.offsetHeight,frame.parentNode.insertBefore(iframe,frame),frame.parentNode.removeChild(frame)}return!1}catch(error){return console.error(error),!1}}))}function _wccAddProviderToList(node,cleanedHostname){const categoryName=node.hasAttribute("data-wcc")&&node.getAttribute("data-wcc");if(!categoryName)return;for(const category of _wccStore._categories)if(category.isNecessary&&category.slug===categoryName&&!0===category.defaultConsent[currentLaw])return;const provider=_wccStore._providersToBlock.find(({re:re})=>re===cleanedHostname);provider?provider.isOverriden?provider.categories.includes(categoryName)||provider.categories.push(categoryName):(provider.categories=[categoryName],provider.isOverriden=!0):_wccStore._providersToBlock.push({re:cleanedHostname,categories:[categoryName],fullPath:!1})}document.createElement=(...args)=>{const createdElement=_wccCreateElementBackup.call(document,...args);if("script"!==createdElement.nodeName.toLowerCase())return createdElement;const originalSetAttribute=createdElement.setAttribute.bind(createdElement),nativeSrcDescriptor=Object.getOwnPropertyDescriptor(HTMLScriptElement.prototype,"src");return Object.defineProperties(createdElement,{src:{configurable:!0,enumerable:!0,get:function(){return nativeSrcDescriptor.get.call(createdElement)},set:function(value){return void 0!==_wccStore&&_wccShouldChangeType(createdElement,value)&&originalSetAttribute("type","javascript/blocked"),originalSetAttribute("src",value),!0}},type:{configurable:!0,enumerable:!0,get:function(){return createdElement.getAttribute("type")},set:function(value){return value=void 0!==_wccStore&&_wccShouldChangeType(createdElement)?"javascript/blocked":value,originalSetAttribute("type",value),!0}}}),createdElement.setAttribute=(name,value)=>{if("type"===name||"src"===name)return createdElement[name]=value;originalSetAttribute(name,value),"data-wcc"!==name||_wccShouldChangeType(createdElement)||originalSetAttribute("type","text/javascript")},createdElement};
1const _nodeListObserver=new MutationObserver(function(mutations){if(!new URLSearchParams(window.location.search).has("wcc_bypass"))for(const{addedNodes:addedNodes}of mutations)for(const node of addedNodes){try{if("BLOCKQUOTE"===node.nodeName&&node.classList.contains("tiktok-embed")){const videoId=node.getAttribute("data-video-id");if(!videoId)continue;const uniqueID=ref._wccRandomString(8,!1),pseudoIframe={nodeName:"iframe",src:`https://www.tiktok.com/embed/${videoId}`,offsetWidth:parseInt(node.style.maxWidth)||605,offsetHeight:parseInt(node.style.minHeight)||700,insertAdjacentHTML:function(position,html){node.insertAdjacentHTML(position,html)}},cleanedHostname=_wccCleanHostName("tiktok.com");if(_wccAddProviderToList(node,cleanedHostname),node.hasAttribute("data-wcc")&&!_wccIsCategoryToBeBlocked(node.getAttribute("data-wcc")))continue;if(!_wccShouldBlockProvider(cleanedHostname))continue;_wccAddPlaceholder(pseudoIframe,uniqueID,_wccGetCategoryFromBlockedScript(node,cleanedHostname));const tiktokScript=document.querySelector('script[src*="tiktok.com/embed.js"]');tiktokScript&&tiktokScript.remove(),node.remove(),_wccStore._backupNodes.push({position:"body",node:node.cloneNode(!0),uniqueID:uniqueID});continue}if(1===node.nodeType&&node.classList.contains("elementor-video")){const widgetContainer=node.closest(".elementor-widget-video");if(!widgetContainer)continue;const settings=widgetContainer.getAttribute("data-settings");if(!settings)continue;try{const parsed=JSON.parse(settings.replace(/&quot;/g,'"')),videoType=parsed.video_type||"youtube";let videoUrl="",hostname="",videoId="",embedUrl="",externalUrlEnabled=!1;switch(videoType){case"youtube":if(videoUrl=parsed.youtube_url,!videoUrl||"string"!=typeof videoUrl)continue;const ytMatch=videoUrl.match(/(?:youtu\.be\/|youtube\.com\/(?:watch\?v=|embed\/))([\w-]{11})/);if(!ytMatch)continue;videoId=ytMatch[1],hostname="youtube.com",embedUrl=`https://www.youtube.com/embed/${videoId}`;break;case"vimeo":if(videoUrl=parsed.vimeo_url,!videoUrl||"string"!=typeof videoUrl)continue;const vimeoMatch=videoUrl.match(/(?:vimeo\.com\/)(\d+)/);if(!vimeoMatch)continue;videoId=vimeoMatch[1],hostname="vimeo.com",embedUrl=`https://player.vimeo.com/video/${videoId}`;break;case"dailymotion":if(videoUrl=parsed.dailymotion_url,!videoUrl||"string"!=typeof videoUrl)continue;const dmMatch=videoUrl.match(/(?:dailymotion\.com\/video\/)([a-zA-Z0-9]+)/);if(!dmMatch)continue;videoId=dmMatch[1],hostname="dailymotion.com",embedUrl=`https://www.dailymotion.com/embed/video/${videoId}`;break;case"videopress":if(videoUrl=parsed.videopress_url,!videoUrl||"string"!=typeof videoUrl)continue;const vpMatch=videoUrl.match(/(?:videopress\.com\/v\/)([a-zA-Z0-9]+)/);if(!vpMatch)continue;videoId=vpMatch[1],hostname="videopress.com",embedUrl=`https://videopress.com/embed/${videoId}`;break;case"hosted":const externalUrl=parsed.external_url;if(externalUrlEnabled="yes"===parsed.external_url_enabled,externalUrlEnabled&&externalUrl&&"string"==typeof externalUrl)try{hostname=new URL(externalUrl).hostname,embedUrl=externalUrl}catch(urlError){continue}else{const videoSrc=node.src||node.getAttribute("src");if(!videoSrc||"string"!=typeof videoSrc)continue;try{const url=new URL(videoSrc);if(node.hasAttribute("data-wcc")&&"necessary"===node.getAttribute("data-wcc"))continue;hostname=`${url.hostname}${url.pathname}`,embedUrl=videoSrc}catch(urlError){continue}}break;default:continue}if(!embedUrl||!hostname)continue;const uniqueID=ref._wccRandomString(8,!1),realIframe=document.createElement("iframe");realIframe.src=embedUrl,realIframe.width=widgetContainer.offsetWidth||560,realIframe.height=widgetContainer.offsetHeight||315,realIframe.frameBorder=0,"youtube.com"===hostname?realIframe.setAttribute("allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"):"vimeo.com"===hostname?realIframe.setAttribute("allow","autoplay; fullscreen; picture-in-picture"):realIframe.setAttribute("allow","autoplay; fullscreen");const pseudoIframe={nodeName:"iframe",src:realIframe.src,offsetWidth:realIframe.width,offsetHeight:realIframe.height,insertAdjacentHTML:function(position,html){node.insertAdjacentHTML(position,html)}}
1,cleanedHostname=_wccCleanHostName(hostname);if(_wccAddProviderToList(node,cleanedHostname),node.hasAttribute("data-wcc")&&!_wccIsCategoryToBeBlocked(node.getAttribute("data-wcc")))continue;if(!_wccShouldBlockProvider(cleanedHostname)){"div"===node.nodeName.toLowerCase()&&node.classList.contains("elementor-video")&&(node.querySelector("iframe")||node.replaceWith(realIframe));continue}_wccAddPlaceholder(pseudoIframe,uniqueID,_wccGetCategoryFromBlockedScript(node,cleanedHostname));const backupNode="hosted"!==videoType||externalUrlEnabled?realIframe.cloneNode(!0):node.cloneNode(!0);node.remove(),_wccStore._backupNodes.push({position:"body",node:backupNode,uniqueID:uniqueID})}catch(e){console.error("Error processing Elementor video:",e)}continue}if(!node.src||!node.nodeName||!["script","iframe"].includes(node.nodeName.toLowerCase()))continue;try{let hostname,pathname,urlToParse=node.src;if(urlToParse.match(/^\/[a-zA-Z0-9]+\/?$/))hostname=window.location.hostname,pathname=urlToParse;else try{const url=new URL(urlToParse.startsWith("//")?`${window.location.protocol}${urlToParse}`:urlToParse.startsWith("/")?`${window.location.origin}${urlToParse}`:urlToParse.match(/^https?:\/\//)?urlToParse:`${window.location.origin}/${urlToParse}`);hostname=url.hostname,pathname=url.pathname}catch(urlError){hostname=window.location.hostname,pathname=urlToParse.startsWith("/")?urlToParse:`/${urlToParse}`}const cleanedHostname=_wccCleanHostName(`${hostname}${pathname}`);if(_wccAddProviderToList(node,cleanedHostname),node.hasAttribute("data-wcc")&&!_wccIsCategoryToBeBlocked(node.getAttribute("data-wcc")))continue;if(!_wccShouldBlockProvider(cleanedHostname))continue;const uniqueID=ref._wccRandomString(8,!1);if("iframe"===node.nodeName.toLowerCase()){const category=_wccGetCategoryFromBlockedScript(node,cleanedHostname);_wccAddPlaceholder(node,uniqueID,category)}else{node.type="javascript/blocked";const scriptEventListener=function(event){event.preventDefault(),node.removeEventListener("beforescriptexecute",scriptEventListener)};node.addEventListener("beforescriptexecute",scriptEventListener)}const position=document.head.compareDocumentPosition(node)&Node.DOCUMENT_POSITION_CONTAINED_BY?"head":"body";node.remove(),_wccStore._backupNodes.push({position:position,node:node.cloneNode(),uniqueID:uniqueID})}catch(error){console.log("Script processing error:",{src:node.src,nodeType:node.nodeName,error:error.message});continue}}catch(error){console.error("Error in mutation observer:",error)}1===node.nodeType&&_wccApplyCustomPlaceholders(node)}});function _wccCleanHostName(name){return name.replace(/^www./,"")}function _wccIsCategoryToBeBlocked(category){const cookieValue=ref._wccGetFromStore(category),normalizedLaw=currentLaw.toLowerCase();return"no"===cookieValue||!cookieValue&&_wccStore._categories.some(cat=>cat.slug===category&&!cat.isNecessary&&!cat.defaultConsent[normalizedLaw])}function _wccShouldBlockProvider(formattedRE){const provider=_wccStore._providersToBlock.find(({re:re})=>new RegExp(_wccEscapeRegex(re)).test(formattedRE));return provider&&provider.categories.some(category=>_wccIsCategoryToBeBlocked(category))}function _wccGetCategoryFromBlockedScript(element,cleanedHostname){if(element.hasAttribute&&element.hasAttribute("data-wcc")){const dataWcc=element.getAttribute("data-wcc");if(dataWcc&&"necessary"!==dataWcc)return[dataWcc]}if(cleanedHostname&&_wccStore._providersToBlock){const provider=_wccStore._providersToBlock.find(({re:re})=>new RegExp(_wccEscapeRegex(re)).test(cleanedHostname));if(provider&&provider.categories&&provider.categories.length>0){const blockedCategories=provider.categories.filter(category=>_wccIsCategoryToBeBlocked(category));return blockedCategories.length>0?blockedCategories:provider.categories}}return null}function _wccShouldChangeType(element,src){return element.hasAttribute("data-wcc")&&_wccIsCategoryToBeBlocked(element.getAttribute("data-wcc"))||_wccShouldBlockProvider(src||element.src)}function _wccSendConsentEvent(responseCategories,status="initial"){const consentUpdate=new CustomEvent("wcc_consent_update",{detail:{status:status,categories:responseCategories,currentLaw:currentLaw}});document.dispatchEvent(consentUpdate),window.dataLayer&&window.dataLayer.push({event:"wcc_cookie_consent_update",cookie_consent_status:status,cookie_consent_categories:responseCategories})}function _wccFindCheckBoxValue(id=""){return(id?["wccSwitch","wccCategoryDirect"]:["wccCCPAOptOut"]).some(key=>{const checkBox=document.getElementById(`${key}${id}`);return checkBox&&checkBox.checked})}function _wccGetBlockedPlaceholderCategories(categories){return categories.filter(slug=>_wccIsCategoryToBeBlocked(slug))}function _wccUpdatePlaceholderCategoryText(uniqueID,categories){const container=document.getElementById(uniqueID);if(!container)return;const innerTextElement=container.querySelector('[data-tag="placeholder-title"]')||container.querySelector(".video-placeholder-text-normal, .video-placeholder-text-youtube, .video-placeholder-text-tiktok");if(!innerTextElement)return;const template=innerTextElement.dataset.wccPlaceholderTemplate||innerTextElement.textContent||innerTextElement.innerText;template.includes("{category}")&&(innerTextElement.dataset.wccPlaceholderTemplate=template,innerTextElement.textContent=template.replace("{category}",function(categories){return categories.map(catSlug=>{const foundCategory=_wccStore._categories?.find(cat=>cat.slug===catSlug);return foundCategory?.name||catSlug||""}
1).filter(Boolean).join(", ").toLowerCase()}(categories)),innerTextElement.style.display="block")}function _wccApplyCustomPlaceholders(root=document){const targets=_wccStore._customPlaceholderTargets;if(!targets?.length||!_wccStore._bannerConfig[currentLaw]?.config?.videoPlaceholder?.status)return;const scope=1===root?.nodeType?root:document;targets.forEach(({selector:selector,categories:categories=[]})=>{const blockedCategories=_wccGetBlockedPlaceholderCategories(categories);if(!selector||!blockedCategories.length)return;let nodes;try{nodes=scope===document?document.querySelectorAll(selector):[...scope.matches(selector)?[scope]:[],...scope.querySelectorAll(selector)]}catch(e){return}nodes.forEach(node=>{if(!node.offsetWidth&&!node.offsetHeight)return;if(node.closest('.wcc-consent-container,[data-tag="video-placeholder"]'))return;if(node.dataset.wccPh){node.setAttribute("data-wcc",blockedCategories.join(",")),_wccUpdatePlaceholderCategoryText(node.dataset.wccPh,blockedCategories);const backup=_wccStore._backupNodes.find(entry=>entry.wccPh&&entry.node===node);return void(backup&&(backup.categories=blockedCategories))}const uniqueID=ref._wccRandomString(8,!1),pseudo={nodeName:"iframe",src:"",offsetWidth:node.offsetWidth||300,offsetHeight:node.offsetHeight||200,insertAdjacentHTML(position,html){node.insertAdjacentHTML(position,html)}};node.dataset.wccPh=uniqueID,node.setAttribute("data-wcc",blockedCategories.join(",")),_wccAddPlaceholder(pseudo,uniqueID,blockedCategories),node.style.display="none",_wccStore._backupNodes.push({position:"body",node:node,uniqueID:uniqueID,wccPh:!0,categories:blockedCategories})})}),_wccSetPlaceHolder()}function _wccAddPlaceholder(htmlElm,uniqueID,categories=null){const shortCodeData=_wccStore._bannerConfig[currentLaw].settings.shortcodes.find(code=>"wcc_video_placeholder"===code.key);if(!shortCodeData?.content)return;const videoPlaceHolderDataCode=shortCodeData.content,{offsetWidth:offsetWidth,offsetHeight:offsetHeight}=htmlElm;if(0===offsetWidth||0===offsetHeight)return;htmlElm.insertAdjacentHTML?htmlElm.insertAdjacentHTML("beforebegin",`${videoPlaceHolderDataCode}`.replace("[UNIQUEID]",uniqueID)):document.body.insertAdjacentHTML("beforeend",`${videoPlaceHolderDataCode}`.replace("[UNIQUEID]",uniqueID));const addedNode=document.getElementById(uniqueID);if(!addedNode)return;addedNode.style.width=`${offsetWidth}px`,addedNode.style.height=`${offsetHeight}px`;const innerTextElement=document.querySelector(`#${uniqueID} .video-placeholder-text-normal`),isTikTok=htmlElm.src&&htmlElm.src.includes("tiktok.com"),youtubeID=!isTikTok&&htmlElm.src&&function(src){const match=src.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return!!(match&&Array.isArray(match)&&match[2]&&11===match[2].length)&&match[2]}(htmlElm.src);if(innerTextElement&&(youtubeID||isTikTok)&&(innerTextElement.style.display="none"),youtubeID&&addedNode?(addedNode.classList.replace("video-placeholder-normal","video-placeholder-youtube"),addedNode.style.backgroundImage=`linear-gradient(rgba(76,72,72,.7),rgba(76,72,72,.7)),url('https://img.youtube.com/vi/${youtubeID}/maxresdefault.jpg')`,innerTextElement?.classList.replace("video-placeholder-text-normal","video-placeholder-text-youtube")):isTikTok&&addedNode&&(addedNode.classList.replace("video-placeholder-text-normal","video-placeholder-tiktok"),innerTextElement?.classList.replace("video-placeholder-text-tiktok","video-placeholder-text-normal")),innerTextElement){_wccUpdatePlaceholderCategoryText(uniqueID,Array.isArray(categories)?categories:categories?[categories]:[])}!innerTextElement||youtubeID||isTikTok||(innerTextElement.style.display="block")}function _wccSetPlaceHolder(){const status=_wccStore._bannerConfig[currentLaw].config.videoPlaceholder.status,styles=_wccStore._bannerConfig[currentLaw].config.videoPlaceholder.styles;if(!status)return;const placeHolders=document.querySelectorAll('[data-tag="placeholder-title"]');placeHolders.length<1||Array.from(placeHolders).forEach(placeHolder=>{placeHolder.style.display="block",placeHolder.dataset.wccPlaceholderBound||(placeHolder.dataset.wccPlaceholderBound="1",placeHolder.addEventListener("click",()=>{ref._wccGetFromStore("action")&&_revisitWccConsent()}));for(const style in styles)styles[style]&&(placeHolder.style[style]=styles[style])})}function _wccGPCEnabled(){return(!0===navigator.globalPrivacyControl||"1"===navigator.doNotTrack||1===navigator.doNotTrack)&&_wccStore._bannerConfig[currentLaw].config.optOption.gpcOption}function _wccSetConsentDetails(){const consentDetailsWrappers=document.querySelectorAll('[data-tag="consent-details"]');if(!consentDetailsWrappers||0===consentDetailsWrappers.length)return void(_wccStore._consentDetailsHidden=!0);const action=ref._wccGetFromStore("action"),hasConsent=(ref._wccGetFromStore("consent"),"yes"===action);_wccStore._consentDetailsHidden=!hasConsent,consentDetailsWrappers.forEac
1h(wrapper=>{if(!hasConsent)return void wrapper.classList.add("wcc-hide");wrapper.classList.remove("wcc-hide");const cookieValue=ref._wccGetCookie("wt_consent");let consentID="",consentTime="";if(cookieValue)try{const cookiePairs=cookieValue.split(",");for(const pair of cookiePairs){const[key,value]=pair.split(":");"consentid"===key&&value?consentID=value:"consent_time"===key&&value&&(consentTime=value)}}catch(e){consentID=ref._wccGetFromStore("consentid")||"",consentTime=ref._wccGetFromStore("consent_time")||""}else consentID=ref._wccGetFromStore("consentid")||"",consentTime=ref._wccGetFromStore("consent_time")||"";let formattedTime="";if(consentTime)try{const timeValue=parseInt(consentTime,10);if(!isNaN(timeValue)){const date=new Date(timeValue);formattedTime=function(date,format){if(!date||!(date instanceof Date)||isNaN(date.getTime()))return"";const formatMap={Y:()=>date.getFullYear(),y:()=>String(date.getFullYear()).slice(-2),m:()=>String(date.getMonth()+1).padStart(2,"0"),n:()=>String(date.getMonth()+1),d:()=>String(date.getDate()).padStart(2,"0"),j:()=>String(date.getDate()),H:()=>String(date.getHours()).padStart(2,"0"),h:()=>{const hours=date.getHours()%12||12;return String(hours).padStart(2,"0")},G:()=>String(date.getHours()),g:()=>{const hours=date.getHours()%12||12;return String(hours)},i:()=>String(date.getMinutes()).padStart(2,"0"),s:()=>String(date.getSeconds()).padStart(2,"0"),A:()=>date.getHours()>=12?"PM":"AM",a:()=>date.getHours()>=12?"pm":"am"};let formatted="",i=0;for(;i<format.length;){if("\\"===format[i]&&i+1<format.length){formatted+=format[i+1],i+=2;continue}let matched=!1;for(const[token,formatter]of Object.entries(formatMap))if(format.substr(i,token.length)===token){formatted+=formatter(),i+=token.length,matched=!0;break}matched||(formatted+=format[i],i++)}return formatted}(date,_wccStore._bannerConfig&&_wccStore._bannerConfig[currentLaw]&&_wccStore._bannerConfig[currentLaw].settings&&_wccStore._bannerConfig[currentLaw].settings.consentDetails&&_wccStore._bannerConfig[currentLaw].settings.consentDetails.dateFormat?_wccStore._bannerConfig[currentLaw].settings.consentDetails.dateFormat:"Y-m-d H:i:s")}}catch(e){formattedTime=consentTime}const consentIdElement=wrapper.querySelector('[data-tag="consent-id"]'),consentTimeElement=wrapper.querySelector('[data-tag="consent-time"]');consentIdElement&&(consentIdElement.textContent=consentID||"N/A"),consentTimeElement&&(consentTimeElement.textContent=formattedTime||"N/A");const accordion=wrapper.querySelector("#wccConsentDetails");if(accordion){accordion.querySelector(".wcc-accordion-body");const accordionHeaderWrapper=accordion.querySelector(".wcc-accordion-header-wrapper");if(accordionHeaderWrapper){const newHeaderWrapper=accordionHeaderWrapper.cloneNode(!0);accordionHeaderWrapper.parentNode.replaceChild(newHeaderWrapper,accordionHeaderWrapper);const freshAccordion=wrapper.querySelector("#wccConsentDetails"),freshAccordionBody=freshAccordion?freshAccordion.querySelector(".wcc-accordion-body"):null,freshAccordionHeaderWrapper=freshAccordion?freshAccordion.querySelector(".wcc-accordion-header-wrapper"):null;freshAccordionHeaderWrapper&&freshAccordion&&freshAccordionHeaderWrapper.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation();const isActive=freshAccordion.classList.toggle("wcc-accordion-active");freshAccordion.removeAttribute("aria-expanded");const consentBtn=freshAccordion.querySelector(".wcc-accordion-btn");consentBtn&&consentBtn.setAttribute("aria-expanded",isActive?"true":"false"),freshAccordionBody&&freshAccordionBody.setAttribute("aria-hidden",isActive?"false":"true")})}}})}function _wccSetFooterWrapperStyles(){const poweredByHidden=_wccStore._poweredByHidden,consentDetailsHidden=_wccStore._consentDetailsHidden;if(poweredByHidden&&consentDetailsHidden){const footerWrapper=document.querySelector(".wcc-footer-bottom-wrapper");footerWrapper&&(footerWrapper.style.display="none")}else{const footerWrapper=document.querySelector(".wcc-footer-bottom-wrapper");footerWrapper&&(footerWrapper.style.display="flex")}}_nodeListObserver.observe(document.documentElement,{childList:!0,subtree:!0}),ref._wccIsConsentGrantedForCategory=category=>!!category&&!_wccIsCategoryToBeBlocked(category),window.revisitWccConsent=()=>_revisitWccConsent(),window.getWccConsent=function(){const cookieConsent={currentLaw:"",categories:{},isUserActionCompleted:!1,consentID:"",languageCode:""};try{cookieConsent.currentLaw=_wccGetLaw(),_wccStore._categories.forEac
1h(category=>{cookieConsent.categories[category.slug]="yes"===ref._wccGetFromStore(category.slug)}),cookieConsent.isUserActionCompleted="yes"===ref._wccGetFromStore("action"),cookieConsent.consentID=ref._wccGetFromStore("consentid")||"",cookieConsent.languageCode=_wccStore._language||""}catch(e){}return cookieConsent}}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.