!function(){"use strict"
h="from"in Array==0?function(e){return Array.prototype.slice.call(e)}:Array.from,"includes"in Array.prototype==0&&Object.defineProperty(Array.prototype,"includes",{configurable:!0,enumerable:!1,value:function(n,e){return e=parseInt(e),e=isNaN(e)?0:Math.min(Math.max(0,0<=e?e:this.length+e),this.length-1),Array.prototype.slice.call(this,e).reduce(function(e,t){return e||t===n},!1)}}),"includes"in String.prototype==0&&Object.defineProperty(String.prototype,"includes",{configurable:!0,enumerable:!1,value:function(e,t){return t=parseInt(t),t=isNaN(t)?0:Math.min(Math.max(0,0<=t?t:this.length+t),this.length-1),-1!==this.indexOf(e,t)}}),!("addEventListener"in window)&&"attachEvent"in window&&(EventTarget.prototype.addEventListener=function(n,i,e){var o,s
"object"==typeof e&&e.once&&(o=this,s=i,i=function(){var e
try{e=s.apply(this,arguments)}catch(t){throw o.detachEvent("on"+n,i),t}return o.detachEvent("on"+n,i),e}),this.attachEvent("on"+n,i)},EventTarget.prototype.removeEventListener=function(e,t,n){this.detachEvent("on"+e,t)}),"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null}
var n=document.createEvent("CustomEvent")
return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n},window.CustomEvent.prototype=window.Event.prototype),"padStart"in String.prototype==0&&(String.prototype.padStart=function(e,t){return e|=0,t=padString===undefined?t+"":" ",this.length>e?this:((e-=this.length)>e.length&&(t+=t.repeat(e/t.length)),t.slice(0,e)+this)})
for(var h,a={XMLHttpRequest:XMLHttpRequest,xhr:{send:XMLHttpRequest.prototype.send}},f=[],e=0;e<256;e++)f[e]=(e>>4&15).toString(16)+(15&e).toString(16)
var t,n,s,p={toggleClass:function(e,t,n){var i
return!(!e||!e.classList)&&((i="boolean"==typeof n?n:0==e.classList.contains(t))?e.classList.add(t):e.classList.remove(t),i)},applyAttributes:function(t,e){h(e.attributes).forEach(function(e){t.setAttribute(e.name,e.value)})},isVisibleDOMNode:function(e){if(e.ownerDocument!==document)return!1
for(;e!==document.documentElement&&e.parentElement;)e=e.parentElement
return e===document.documentElement},isDocumentReady:function(){return document.body&&"object"==typeof document.body&&"appendChild"in document.body},partial:function(e){return e.reduce(function(e,t){return!0===e?!!t||"partial":t?"partial":e},!!e.length&&!!e[0])},uniqueValues:function(n){return n.filter(function(e,t){return n.indexOf(e)==t})},diff:function(e,t){return e.filter(function(e){return!t.includes(e)})},intersect:function(e,t){return e.filter(function(e){return t.includes(e)})},enableButtons:function(e){h(e.getElementsByTagName("BUTTON")).forEach(function(e){e.disabled=!1})},disableButtons:function(e){h(e.getElementsByTagName("BUTTON")).forEach(function(e){e.disabled=!0})},extractDomain:function(e){var t=e.match(/^(?:https?:)?\/\/([^\/]+)/)
return t?t[1]:""},triggerCustomEvent:function(e,t,n){var i
try{i=new CustomEvent(t,{detail:n})}catch(o){(i=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!1,n)}e.dispatchEvent(i)},triggerGTMEvent:function(e,t){(t=t||{}).event=e,window.dataLayer=window.dataLayer||[],window.dataLayer.push(t)},hasGTMLayer:function(e){for(var t=window.dataLayer||[],n=0;n<t.length;++n){var i=t[n]
if(i[0]===e||i[e]!==undefined)return!0}return!1},hasMsUETLayer:function(e){for(var t=window.uetq||[],n=0;n<t.length;++n){var i=t[n]
if(i===e||"object"==typeof i&&"event"===e)return!0
"string"==typeof i&&(n+=2)}return!1},sendGTag:function(){"function"==typeof window.gtag?window.gtag.apply(null,arguments):(window.dataLayer=window.dataLayer||[],window.dataLayer.push(arguments))},sendMsUet:function(){window.uetq=window.uetq||[],window.uetq.push.apply(window.uetq,arguments)},isJavaScript:function(e){return!e.type||/(application|text)\/(x-)?(java|ecma|j|live)script(1.[0-5])?/.test(e.type.toLowerCase())||"module"==e.type.toLowerCase()},isIE:function(){return"userAgent"in navigator&&/\b(Trident|MSIE)\b/.test(navigator.userAgent)},getContainingModal:function o(e){return e&&"classList"in e?e.classList.contains("ccm-modal")?e:o(e.parentNode):null},focusableElements:function(e){return e=e||document.body,h(e.querySelectorAll('button, a[href], map area[href], input:not(:disabled), select, textarea, [tabindex]:not([tabindex="-1"])')).filter(function(e){return 0!==e.offsetHeight&&0!==e.offsetWidth})},isManipulatedClick:function(e){return e instanceof MouseEvent!=0&&"click"==e.type&&"isTrusted"in e&&0==e.isTrusted},assign:"assign"in Object?Object.assign:function(e,t){for(var n in t)e[n]=t[n]
return e},filterObject:function(e,t){var n,i={}
for(n in e)t(e[n],n)&&(i[n]=e[n])
return i},mapObject:function(e,t){var n,i={}
for(n in e)i[n]=t(e[n],n)
return i},objectValues:function(t){return"values"in Object?Object.values(t):Object.keys(t).map(function(e){return t[e]})},bindThis:function(e,t){return function(){return t.apply(e,arguments)}},hash:function(e){for(var t,n=e.length,i=0,o=8997,s=0,c=33826,r=0,a=40164,l=0,d=52210,u=0;u<n;u++)(t=e.charCodeAt(u))<128?o^=t:(t<2048?(s=435*c,r=435*a,l=435*d,r+=(o^=t>>6|192)<<8):(55296==(64512&t)&&u+1<n&&56320==(64512&e.charCodeAt(u+1))?(s=435*c,r=435*a,l=435*d,r+=(o^=(t=65536+((1023&t)<<10)+(1023&e.charCodeAt(++u)))>>18|240)<<8,o=65535&(i=435*o),d=(l+=c<<8)+((r+=(s+=i>>>16)>>>16)>>>16)&65535,s=435*(c=65535&s),r=435*(a=65535&r),l=435*d,r+=(o^=t>>12&63|128)<<8):(s=435*c,r=435*a,l=435*d,r+=(o^=t>>12|224)<<8),o=65535&(i=435*o),d=(l+=c<<8)+((r+=(s+=i>>>16)>>>16)>>>16)&65535,s=435*(c=65535&s),r=435*(a=65535&r),l=435*d,r+=(o^=t>>6&63|128)<<8),l+=c<<8,o=65535&(i=435*o),c=65535&(s+=i>>>16),d=l+((r+=s>>>16)>>>16)&65535,a=65535&r,o^=63&t|128),s=435*c,r=435*a,l=435*d,r+=o<<8,l+=c<<8,o=65535&(i=435*o),c=65535&(s+=i>>>16),d=l+((r+=s>>>16)>>>16)&65535,a=65535&r
return f[d>>8]+f[255&d]+f[a>>8]+f[255&a]+f[c>>8]+f[255&c]+f[o>>8]+f[255&o]},getUrl:function(e,t){var n=null
return!t&&"object"==typeof e&&"hostname"in e&&"hash"in e?n=e:(n=document.createElement("a"),"string"==typeof e||e instanceof String?n.href=e:"href"in e?n.href=e.href:"action"in e&&(n.href=e.action)),n},setUrl:function(e,t){return e!==t&&("href"in t&&(t=t.href),"href"in e?e.href=t:"action"in e&&(e.action=t)),t},fnmatch:function(e,t){return e=e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\\\\\.\*/g,"*").replace(/\?/g,".").replace(/\\\\\.\*/g,"?"),new RegExp("^"+e+"$","").test(t)},isTopLevel:function(){try{var e=window.top
return window===e||window.self===e}catch(t){return!1}},wrapProperty:function(e,t,n){for(var i,o,s,c=null,r=e,a=0;a<10&&r&&(c=Object.getOwnPropertyDescriptor(r,t))===undefined;++a)r=Object.getPrototypeOf(r)
if(!c)return!1
"function"==typeof n.get&&(i=c.get,c.get=function(){return n.get.call(this,i)}),"function"==typeof n.set&&(o=c.set,c.set=function(e){return n.set.call(this,e,o)}),"function"==typeof n.value&&(s=c.value,c.value=function(){return n.value.apply(this,[s].concat(h(arguments)))})
try{return Object.defineProperty(e,t,c),!0}catch(l){return!1}},skipAnimationFrame:function(e){window.requestAnimationFrame(function(){window.requestAnimationFrame(e)})}}
function i(e,t){delete e.init,p.assign(this,e),this.urlConsent=t,this.init()}Object.defineProperties(p,{now:{enumerable:!0,get:function(){return"now"in Date?Date.now():(new Date).getTime()}}}),i.prototype={constructor:i,initialized:!1,widgetInitialized:!1,shouldReport:!1,container:null,controlPanel:null,urlConsent:null,widget:null,widgetUrl:null,ownHeadElements:[],highPriorityEventHandlers:{},internalEventHandlers:{},cookies:{consent:"ccm_consent"},accountWideConsentType:{acceptAll:"1",decline:"0"},ucid:p.hash(String(p.now)+String(Math.random()).substring(1)),clickedButton:null,consentState:{},saving:!1,saveSettingsFunctionQueue:[],tcfDependantFunctionQueue:[],embeddingsEmbedded:[],loadingModal:!1,forceOpenWidget:!1,requiresConsentUpdate:!1,consentShareChannels:[],dynamicStorageNamespace:!1,domWatcher:null,iframes:[],iframeConsentDomains:[],iframeConsentSwitchMap:{},blockableScripts:[],scriptLoaderQueue:[],scriptLoaderRunning:!1,foundScriptCookies:{},inEval:!1,focusStack:[],tasksRunning:{},appendCrossDomainConsent:function(e){this.getBaseDomain(window.location.hostname)
var t=p.getUrl(e,!0),n=this.withCrossDomainConsent(p.getUrl(e,!0))
n.hash!==t.hash&&(p.setUrl(e,n),window.setTimeout(function(){p.setUrl(e,t)},100))},withCrossDomainConsent:function(e){var t,n=this.getBaseDomain(window.location.hostname),i=e
return(e=p.getUrl(e,!1))&&this.consentGiven()&&(t=this.getBaseDomain(e.hostname))&&t!==n&&!/(^#?|&)CCM19consent=/.test(e.hash)?(e.hash?e.hash+="&"+this.buildCrossDomainConsent():e.hash="#"+this.buildCrossDomainConsent(),"string"==typeof i?e.href:e):i},buildCrossDomainConsent:function(){var e,t,n=this.getConsentStorage(),i=""
return n&&"updated"in n&&(e=n.updated/10-1609459200|0,t="embeddings"in n?n.embeddings:[],this.accountWideConsentSharing&&this.clickedButton in this.accountWideConsentType&&(t=[this.accountWideConsentType[n.clickedButton]]),i=(p.now/1e3/60|0).toString(36)+"|"+e.toString(36)+"|"+this.getUniqueCookieId()+"|"+t.join("|")),"CCM19consent="+i},getCategorizedBaseDomain:function(e){for(var t=this.consentShareDomains,n=this.accountWideConsentSharing?this.accountWideConsentSharingDomains:[],e=e.replace(/\.+$/,""),i=0;i<t.length;++i)if(e==(o=t[i])||-1!=e.indexOf("."+o,e.length-o.length-1))return{domain:o,sameDomain:!0,sameAccount:!0}
for(var o,i=0;i<n.length;++i)if(e==(o=n[i])||-1!=e.indexOf("."+o,e.length-o.length-1))return{domain:o,sameDomain:!1,sameAccount:!0}
return{domain:o,sameDomain:!1,sameAccount:!1}},getBaseDomain:function(e){var t=this.getCategorizedBaseDomain(e)
return t.sameDomain||this.accountWideConsentSharing&&this.clickedButton in this.accountWideConsentType&&t.sameAccount?t.domain:null},isConsentShareDomain:function(e){return e="string"==typeof e?e:window.location.hostname,!!this.getBaseDomain(e)},checkIsExternal:function(e){var t,n
return!!e&&!((t=e.search("//"))<0||16<t||"data:"===(t=p.getUrl(e)).protocol||t.hostname===location.hostname||this.getBaseDomain(t.hostname)||(n=(n=(n=location.hostname).replace(/\.$/,"")).replace(/^.*\.([^.]+\.[^.]+)$/,"$1"),n=new RegExp("\\b"+n.replace(/([.\\])/g,"\\$1")+"$"),-1!==t.hostname.search(n))||p.fnmatch(this.selfUrlPattern,e))},checkIsCloakedScript:function(e){return this.detectCloakedScripts&&("text/plain"==e.type.toLowerCase()&&e.dataset.cookieconsent||"text/plain"==e.type.toLowerCase()&&e.dataset.usercentrics||"text/plain"==e.type.toLowerCase()&&e.classList.contains("cmplazyload")&&(e.dataset.cmpPurpose||e.dataset.cmpVendor))},checkIsBlockableScript:function(e){return p.isJavaScript(e)||"text/x-ccm-loader"==e.type.toLowerCase()&&!e.dataset.ccmLoaderGroup||"text/x-magento-init"==e.type.toLowerCase()||this.checkIsCloakedScript(e)},checkIsManipulatedClick:function(e){return!this.jsApiFeatures.embeddingConsentState&&this.manipulationPrevention&&p.isManipulatedClick(e)},getCookies:function(){return document.cookie.split(";").filter(function(e){return 0<e.trim().length}).map(function(e){var t=e.trim().split("=")
return{name:t[0],value:t[1]}})},getCookie:function(n,e){if(this.isPreview&&n==this.cookies.consent)return{}
var i=this,t=null,o=e!==undefined?e:this.consentStorageMethod
if("sessionStorage"in window&&"getItem"in window.sessionStorage&&null!==(t=window.sessionStorage.getItem(n)))try{return JSON.parse(t)}catch(s){if("sessionStorage"==o)return{}}if("localStorage"==o&&"localStorage"in window&&"getItem"in window.localStorage&&null!==(t=window.localStorage.getItem(n)))try{return JSON.parse(t)}catch(s){return{}}return"cookie"!=o&&"localStorage"in window&&"sessionStorage"in window?{}:(n==this.cookies.consent&&this.tidyConsentStorage(),this.getCookies().reduce(function(e,t){try{return t.name===n?i.decodeCookieValue(t.value):e}catch(s){return{}}},null))},setCookie:function(e,t,n){if(e===undefined||t===undefined)throw new Error("Undefined name or value not allowed for cookies.")
var i,o="method"in(n="object"==typeof n?n:{})?n.method:this.consentStorageMethod
"sessionStorage"==o&&"sessionStorage"in window&&"setItem"in window.sessionStorage?window.sessionStorage.setItem(e,JSON.stringify(t)):"localStorage"==o&&"localStorage"in window&&"setItem"in window.localStorage?window.localStorage.setItem(e,JSON.stringify(t)):(o=[e+"="+this.encodeCookieValue(t)],(i=this.getBaseDomain(location.hostname))&&o.push("domain="+i),n.path&&o.push("path="+n.path),n.expires&&o.push("expires="+n.expires),n.sameSite?o.push("SameSite="+n.sameSite):o.push("SameSite=Lax"),n.secure&&o.push("Secure"),n.partitioned&&o.push("Partitioned"),document.cookie=o.join(";"))},encodeCookieValue:function(e){return encodeURIComponent(btoa(JSON.stringify(e)))},decodeCookieValue:function(e){return JSON.parse(atob(decodeURIComponent(e)))},isBotBrowser:function(){return/(bot\b|BOT\b|Bot\b|BingPreview| \(\+http)|[a-z]-Google\b/.test(navigator.userAgent)},isDoNotTrackEnabledInBrowser:function(){return window.doNotTrack&&1==window.doNotTrack||navigator.doNotTrack&&[1,"1","yes"].includes(navigator.doNotTrack)||navigator.msDoNotTrack&&1==navigator.msDoNotTrack||"object"==typeof window.external&&"msTrackingProtectionEnabled"in window.external&&window.external.msTrackingProtectionEnabled()||!1},ajax:function(e,t){var n=(t="object"==typeof t?t:{}).body,i="boolean"!=typeof t["async"]||t["async"],o=t.method||"GET",s=new a.XMLHttpRequest,c=this
if(s.onreadystatechange=function(){4==this.readyState&&(200<=this.status&&this.status<=205?"function"==typeof t.success&&t.success.call(c,this.responseText,this.status,s):"function"==typeof t.failure&&t.failure.call(c,this.status,s),"function"==typeof t.done)&&t.done.call(c)},s.open(o,e,i),["POST","PUT","PATCH"].includes(o)&&("application/json"===(i=t.contentType||"application/x-www-form-urlencoded")&&(n=JSON.stringify(n)),s.setRequestHeader("Content-Type",i)),"headers"in t)for(var r in t.headers)s.setRequestHeader(r,t.headers[r]+"")
a.xhr.send.call(s,n)},injectCss:function(){var n=this
this.cssFiles.forEach(function(e){var t=document.createElement("LINK")
t.setAttribute("href",e),t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),n.ownHeadElements.push(t),document.head.appendChild(t)})},injectJs:function(){this.jsFiles.forEach(function(e){var t=document.createElement("SCRIPT")
t["async"]=!0,t.setAttribute("src",e),t.setAttribute("data-ccm-injected","true"),document.head.appendChild(t)})},initTcfStub:function(){var t,n,i,e
this.tcfData.enabled&&window.__tcfapi===undefined&&("adsbygoogle"in window||(window.adsbygoogle=[]),window.adsbygoogle.pauseAdRequests=1,t=[],n=this.isConsentRequired(),i=function i(){if(0==arguments.length)return t.splice(0)
if("ping"===arguments[0]){var e={gdprApplies:n,cmpLoaded:!1,apiVersion:"2.2",cmpStatus:"stub",displayStatus:"hidden"}
if(!arguments[2])return e
arguments[2](e,!0)}else t.push(h(arguments))},(e=document.createElement("iframe")).id="ccm-tcf-locator",e.style.display="none",e.style.visibility="hidden",e.style.width="0",e.style.height="0",e.name="__tcfapiLocator",window.frames.__tcfapiLocator||(window.__tcfapi=i,window.addEventListener("message",function(n){try{var e="string"==typeof event.data?JSON.parse(event.data):event.data}catch(t){e=null}var i
e&&"object"==typeof e&&"__tcfapiCall"in e&&"object"==typeof e.__tcfapiCall&&(i=e.__tcfapiCall,window.__tcfapi(i.command,i.version,function(e,t){t===undefined&&"boolean"==typeof e&&(t=e,e=undefined),n.source.postMessage({__tcfapiReturn:{returnValue:e,success:t,callId:i.callId}},n.origin)},i.parameter))},!1),document.body?document.body.append(e):window.addEventListener("DOMContentLoaded",function(){document.body.append(e)})))},injectPlugins:function(){var i=this,o=(window.Ccm19Plugins=window.Ccm19Plugins||{},Object.create(null,{addEventListener:{enumerable:!0,value:function(e,t){if("function"!=typeof t)throw new TypeError("[CCM19] Wrong data type, function expected.")
i.internalEventHandlers[e]=i.internalEventHandlers[e]||[],i.internalEventHandlers[e].push(t),"widgetInitialized"==e&&i.widgetInitialized&&t()}}})),s=Object.create(null,{initialized:{enumerable:!0,get:function(){return i.widgetInitialized}},closeAllModals:{enumerable:!0,value:this.closeAllModals.bind(this)},saveSettings:{enumerable:!0,value:function(){this.initialized&&i.saveSettings()}},setEmbeddingConsentState:{enumerable:!0,value:function(e,t){var n=i.repository[e]
n&&(n.consent=t||n.mandatory,i.selectEmbedding(n))}},showEmbeddingDetails:{enumerable:!0,value:function(e){this.initialized&&i.showEmbeddingDetails(e)}},isEmbeddingActiveForCurrentLocation:{enumerable:!0,value:function(e){return i.repository.propertyIsEnumerable(e)&&i.isEmbeddingActiveForCurrentLocation(i.repository[e])}},executeJavascriptCode:{enumerable:!0,value:function(e){var t=document.createElement("SCRIPT")
t.textContent=e,t["async"]=!1,i.executeScriptQueue([t])}}})
this.plugins.forEach(function(n){var e,t
n.script?(e=(e=n.script).replace(/&lang=[^&]+/,"&lang="+encodeURIComponent(i.locale)),(t=document.createElement("SCRIPT"))["async"]=!0,t.setAttribute("src",e),t.setAttribute("data-ccm-injected","true"),t.addEventListener("error",function(){n.loaded=!0}),t.addEventListener("load",function(){var e=window.Ccm19Plugins[n.name]
if("function"==typeof e){try{n.instance=new e(s,o)}catch(t){console.error('[CCM19] Error while initializing plugin "%s": %s',n.name,t)}delete window.Ccm19Plugins[n.name]}n.loaded=!0}),document.head.appendChild(t)):n.loaded=!0})},isAllPluginsLoaded:function(){return this.plugins.reduce(function(e,t){return e&&!!t.loaded},!0)},dispatchInternalEvent:function(e,t){(this.internalEventHandlers[e]||[]).forEach(function(e){e(t)})},initPlatformDependentComponents:function(){var e=document.createElement("DIV"),t=(e.style.boxSizing="border-box",e.style.display="block",e.style.position="fixed",e.style.top="-9999px",e.style.left="-9999px",e.style.width="320px",e.style.height="240px",e.style.visibility="hidden",e.style.overflowX="scroll",e.style.overflowY="scroll",document.body.appendChild(e),e.offsetWidth-e.clientWidth),n=e.offsetHeight-e.clientHeight
document.body.removeChild(e),document.documentElement.style.setProperty("--ccm--scrollbar-width",t+"px"),document.documentElement.style.setProperty("--ccm--scrollbar-height",n+"px")},executeScriptQueue:function(c,r){var a=this,l=!1
c.forEach(function(e,t){if(!l){var n=e.ccmOriginalNode||e,i="text/x-ccm-loader"==e.type&&e.dataset.ccmLoaderSrc||e.src
if(("text/x-ccm-loader"==e.type||a.checkIsCloakedScript(e))&&((o=e.cloneNode(!0)).removeAttribute("type"),o["async"]=e.hasAttribute("async"),"text/plain"==e.type.toLowerCase()&&e.classList.contains("cmplazyload")&&(!i&&e.dataset.cmpSrc&&(i=e.dataset.cmpSrc),o.classList.remove("cmplazyload"),o.removeAttribute("data-cmp-purpose"),o.removeAttribute("data-cmp-src"),o.removeAttribute("data-cmp-vendor")),e=o,i)&&(e.removeAttribute("data-ccm-loader-src"),e.setAttribute("src",i)),e.hasAttribute("src")||0==a.evalInlineScripts){var o=document.createElement("SCRIPT")
o.setAttribute("data-ccm-injected","true"),p.applyAttributes(o,e),i||(o.textContent=e.textContent),o["async"]=e["async"],i&&(n!==e&&(o.addEventListener("error",i=function(e){p.triggerCustomEvent(n,e.type)}),o.addEventListener("load",i)),e["async"]||(o.addEventListener("error",i=function(){a.executeScriptQueue(c.slice(t+1),r)}),o.addEventListener("load",i),l=!0)),p.isVisibleDOMNode(n)?(n.parentElement.insertBefore(o,n),n.type="text/x-unblocked-script"):(document.body||document.head).appendChild(o)}else try{a.inEval=!0,p.isJavaScript(e)&&eval.call(window,e.textContent),a.inEval=!1}catch(s){a.inEval=!1,console.error("[CCM19] Script execution: ("+s.name+") "+s.message)}}}),l||"ScriptLoader"!=r||(this.scriptLoaderRunning=!1,this.executeScriptLoaderQueue())},executeScriptLoaderQueue:function(){var e
this.scriptLoaderRunning||0==this.scriptLoaderQueue.length||(this.scriptLoaderRunning=!0,e=this.scriptLoaderQueue,this.scriptLoaderQueue=[],this.executeScriptQueue(e,"ScriptLoader"))},isEmbeddingActiveForCurrentLocation:function(e){return e.excludeUrls.reduce(function(e,t){var n="*"==t.charAt(t.length-1)
return t=n?t.substr(0,t.length-1):t,e||0==location.href.indexOf(t)&&(n||location.href.length==t.length)},!1)==(e.excludeUrlsMode==this.consts.MODE_WHITELIST)},embedEmbedding:function(t){var n=this
if(!this.embeddingsEmbedded.includes(t.id)&&(this.embeddingsEmbedded.push(t.id),0!=this.isEmbeddingActiveForCurrentLocation(t))){for(var e=document.createElement("DIV"),i=(e.innerHTML=t.code,[]);0<e.children.length;){var o=e.removeChild(e.firstElementChild)
"SCRIPT"===o.tagName?(""==o.src&&p.isJavaScript(o)&&o.appendChild(document.createTextNode("\n//# sourceURL=#embedding:"+encodeURIComponent(t.name))),o["async"]=o.hasAttribute("async"),i.push(o)):document.body.appendChild(o)}p.triggerCustomEvent(window,"ccm19EmbeddingAccepted",{name:t.name,code:t.code,purpose:t.purpose,mandatory:t.mandatory}),this.triggeringExtGtmEvents&&p.triggerGTMEvent("CCM19.embeddingAccepted",{id:t.id,name:t.name}),this.blockableScripts.forEach(function(e){e.ccmEmbeddings&&e.ccmEmbeddings.includes(t.id)&&e.ccmEmbeddings.reduce(function(e,t){return e&&n.embeddingsEmbedded.includes(t)},!0)&&i.push(e)})
var s=this.getEmbeddingsWithConsent().map(function(e){return e.id})
this.iframes.forEach(function(e){var t=e.ccm19BlockedByEmbeddings||[]
0<t.length&&t.reduce(function(e,t){return e&&s.includes(t)},!0)&&n.restoreIframe(e)}),i=i.filter(function(e){return!e["async"]&&!e.defer}).concat(i.filter(function(e){return!e["async"]&&e.defer})).concat(i.filter(function(e){return e["async"]})),this.executeScriptQueue(i),this.dispatchInternalEvent("embeddingLoaded",t.id)}},jumpTo:function(n,e){(e=e||window.event)&&e.preventDefault(),window.requestAnimationFrame(function(){var e,t=document.getElementById(n)
t&&(t.scrollIntoView&&t.scrollIntoView(),(t=-1==(e=(e=t).firstElementChild&&-1!=["P","DIV"].indexOf(t.firstElementChild.tagName)?t.firstElementChild:e).tabIndex)&&(e.tabIndex=0),e.focus({preventScroll:!0}),t)&&(e.tabIndex=-1)})},onFocusIn:function(e){var t,n,i,o,s,c,r=document.querySelectorAll(".ccm-root > .ccm-modal.ccm-show"),r=r[r.length-1]
!r||this._ignoreFocused&&this._ignoreFocused===e.target||(t=document.getElementById("ccm-focus-helper--top"),n=document.getElementById("ccm-focus-helper--bottom"),t.previousSibling&&document.body.insertBefore(t,document.body.firstChild),n.nextSibling&&document.body.appendChild(n),i=p.getContainingModal(e.relatedTarget),p.getContainingModal(e.target)!==r&&(c=p.focusableElements(r),o=r.querySelector(".ccm-modal-inner"),s=c[0],(c=c[c.length-1])==e.relatedTarget||e.target===t?(s.focus(),o&&o.focus()):s==e.relatedTarget||e.relatedTarget===o||e.target===n?c.focus():i===r?e.relatedTarget.focus():s.focus({preventScroll:!0}),e.preventDefault()))},onTabKeyDown:function(e){var t,n,i
9===e.keyCode&&(n=(n=document.querySelectorAll(".ccm-root > .ccm-modal.ccm-show"))[n.length-1])&&(t=n.querySelector(".ccm-modal-inner"),n=p.focusableElements(n),!e.shiftKey||e.target!=n[0]&&e.target!=t?e.shiftKey||e.target!=n[n.length-1]||(i=document.getElementById("ccm-focus-helper--bottom"),(this._ignoreFocused=i).focus({preventScroll:!0}),this._ignoreFocused=null):(i=document.getElementById("ccm-focus-helper--top"),(this._ignoreFocused=i).focus({preventScroll:!0}),this._ignoreFocused=null))},onTabKeyDownOnce:function(e){var t
9===e.keyCode&&(t=(t=document.querySelectorAll(".ccm-root > .ccm-modal.ccm-show"))[t.length-1])&&t.classList.add("ccm--tab-used")},onWindowResize:function c(){requestAnimationFrame(function(e){window.innerHeight,window.innerWidth,c.lastTs!==undefined&&e<=c.lastTs||(c.lastTs=e)})},onJavaScriptApiLinkClicked:function(e,t){try{var n=t.href.replace(/^.*#CCM\./,"")
n in window.CCM&&"function"==typeof window.CCM[n]&&(window.CCM[n](),e.preventDefault())}catch(i){}},registerJavaScriptApiHandler:function(e){e instanceof HTMLAnchorElement&&0==e.hash.indexOf("#CCM.")&&this.addHighPriorityEventListener("click",e,this.onJavaScriptApiLinkClicked)},registerJavaScriptApiHandlers:function(){var t=this
h(document.body.querySelectorAll('a[href^="#CCM."]')).forEach(function(e){t.addHighPriorityEventListener("click",e,t.onJavaScriptApiLinkClicked)})},onSettingsIconClicked:function(e){(e=e||window.event).preventDefault(),e.stopImmediatePropagation(),this.hideSettingsIcon(),"main"===this.settingsIconTarget?this.openWidget():this.openControlPanel()},showSettingsIcon:function(){0==this.settingsIconEnabled||0==this.isActive||0==this.widgetInitialized||this.partOfAdAndTrackingFreeNetwork||this.isModalActive()||(h(this.container.querySelectorAll(".ccm-settings-summoner img[data-ccm-lazy-src]")).forEach(function(e){var t=e.dataset.ccmLazySrc||""
t&&(e.setAttribute("src",t),e.hidden=!1),e.removeAttribute("data-ccm-lazy-src")}),h(this.container.querySelectorAll(".ccm-settings-summoner")).forEach(function(e){e.classList.remove("ccm-hide"),e.classList.add("ccm-show"),e.hidden=!1}))},hideSettingsIcon:function(){0!=this.settingsIconEnabled&&h(this.container.querySelectorAll(".ccm-settings-summoner")).forEach(function(e){e.classList.remove("ccm-show"),e.classList.add("ccm-hide"),e.hidden=!0})},updateBlocking:function(){var e,t
p.isDocumentReady()&&(e=this.getActiveModals(),t=e.reduce(function(e,t){return e||t.classList.contains("ccm--is-blocking")},!1),p.toggleClass(document.documentElement,"ccm-blocked",t),p.toggleClass(document.body,"ccm-blocked",t),t?h(document.body.children).forEach(function(e){0===e.id.indexOf("ccm-focus-helper")||e.classList.contains("ccm-root")||(e.hasAttribute("data-ccm-orig-inert")||e.setAttribute("data-ccm-orig-inert",+e.inert),e.inert=!0)}):h(document.body.querySelectorAll("[data-ccm-orig-inert]")).forEach(function(e){e.inert=!!+e.getAttribute("data-ccm-orig-inert"),e.removeAttribute("data-ccm-orig-inert")}),e.length&&(e.slice(0,-1).forEach(function(e){e.inert=t}),e[e.length-1].inert=!1),0<e.length?this.hideSettingsIcon():this.showSettingsIcon(),document.body.classList.contains("ccm-blocked")?this.captureFocus():this.endCaptureFocus())},isModalActive:function(){return 0<this.getActiveModals().length},getActiveModals:function(){return h(this.container.getElementsByClassName("ccm-modal")).filter(function(e){return e.classList.contains("ccm-show")})},showModal:function(e,t,n){var i,o,s
null!=e&&0!=e.classList.contains("ccm-modal")&&(this.focusStack.push(window.event?window.event.currentTarget:window.activeElement),h(e.querySelectorAll("div.ccm--h1")).forEach(function(e){e.setAttribute("role","heading"),e.setAttribute("aria-level","1")}),h(e.querySelectorAll("div.ccm--h2")).forEach(function(e){e.setAttribute("role","heading"),e.setAttribute("aria-level","2")}),h(e.querySelectorAll(".ccm--h3")).forEach(function(e){e.setAttribute("role","heading"),e.setAttribute("aria-level","3")}),h(e.querySelectorAll(".ccm--p")).forEach(function(e){e.setAttribute("role","paragraph")}),t="boolean"!=typeof t||t,e.classList.contains("ccm-details")&&(i=this.getUniqueCookieId().substr(0,16),h(e.getElementsByClassName("ccm-user-info--ucid--value")).forEach(function(e){e.textContent=i})),0==this.isModalActive()&&(p.triggerCustomEvent(window,"ccm19WidgetOpened"),window.addEventListener("resize",this.onWindowResize),this.logOpenData()),this.consentGiven()&&(h(e.querySelectorAll("button[data-ccm-reopen-text]")).forEach(function(e){var t=e.innerText
e.getAttribute("data-ccm-reopen-text")&&(e.innerText=e.getAttribute("data-ccm-reopen-text"),e.removeAttribute("data-ccm-reopen-text"),e.setAttribute("data-ccm-original-text",t))}),h(e.querySelectorAll(".ccm--reopen-only")).forEach(function(e){e.classList.remove("ccm--reopen-only")})),e.addEventListener("keydown",this.onTabKeyDownOnce,{capture:!0,once:!0,passive:!0}),e.classList.add("ccm-show"),e.removeAttribute("hidden"),e.style.display="",p.enableButtons(e),t&&this.updateBlocking(),this.onWindowResize(),-1!==n)&&(s=location.hash.match(/^#[a-z][a-z0-9-]*$/),o=e.getElementsByTagName("button"),-1==(s=(s=(s?e.querySelector(s):null)||(null!==n&&n!==undefined?p.focusableElements(e)[n]:null)||e.querySelector('[role="document"][tabindex]')||(1===o.length?o[0]:null))||e).tabIndex&&s.children.length,-1==s.tabIndex?(s.tabIndex=0,s.focus({preventScroll:!0}),s.tabIndex=-1):s.focus({preventScroll:!0}))},loadModal:function(i,o,s){o="boolean"!=typeof o||o
var e=document.getElementById(i)
e?o&&(this.showModal(e),s)&&window.requestAnimationFrame(function(){var e=document.getElementById(s)
e&&e.scrollIntoView&&e.scrollIntoView()}):(e={"ccm-details":this.detailsUrls[this.locale]}[i])&&!this.loadingModal&&(this.loadingModal=!0,document.documentElement.classList.add("ccm--is-loading"),this.ajax(e,{method:"GET",success:function(e){var t=document.createElement("DIV")
for(t.innerHTML=e;0<t.children.length;)this.container.appendChild(t.removeChild(t.firstElementChild))
this.registerControls(),this.updateConsentState()
var n=document.getElementById(i)
n&&o&&(this.showModal(n),s)&&this.jumpTo(s)},failure:function(e){console.warn('[CCM19] Error while loading modal "'+i+'". ('+e+")")},done:function(){this.loadingModal=!1,document.documentElement.classList.remove("ccm--is-loading")}}))},hideModal:function(e,t){if(null!=e&&0!=e.classList.contains("ccm-modal")){t="boolean"!=typeof t||t
var n,i,o,s=e.classList.contains("ccm-show")
e.classList.remove("ccm-show"),e.setAttribute("hidden",""),e.style.display="none",p.disableButtons(e),s&&0==this.isModalActive()&&(window.removeEventListener("resize",this.onWindowResize),this.callAsSoonAsSavingSettingsIsDone(function(){p.triggerCustomEvent(window,"ccm19WidgetClosed")})),h(e.querySelectorAll("div.ccm--h1,div.ccm--h2,div.ccm--h3,div.ccm-p")).forEach(function(e){e.removeAttribute("role"),e.removeAttribute("aria-level")}),e.removeEventListener("keydown",this.onTabKeyDownOnce,{capture:!0,once:!0,passive:!0}),e.classList.remove("ccm--tab-used"),t&&this.updateBlocking()
try{this.focusStack.length&&(n=this.focusStack.pop(),i=window.activeElement,n&&"tabIndex"in n?n.focus({preventScroll:!0}):0==this.focusStack.length&&i&&this.container.contains(i)&&((o=document.createElement("div")).style.position="fixed",o.style.left="0",o.style.right="0",o.style.height="0",o.style.maxHeight="0",o.background="transparent",o.border="0 none transparent",o.tabIndex=0,o.style.top="0",o.id="ccm-focus-helper",o.ariaHidden=!0,document.body.insertBefore(o,document.body.firstChild),o.focus({preventScroll:!0}),requestAnimationFrame(function(){o.blur(),document.body.removeChild(o)})))}catch(c){}}},closeAllModals:function(){var t=this
h(this.container.getElementsByClassName("ccm-modal")).forEach(function(e){t.hideModal.call(t,e,!1)}),this.updateBlocking()},showEmbeddingDetails:function(e){this.openDetailsWindow("ccm-cookie-details-"+e)},showPurposeDetails:function(e){this.openDetailsWindow("ccm-purpose-details-"+e)},openDetailsWindow:function(e){this.loadModal("ccm-details",!0,e)},closeDetailsWindow:function(){var e=this.container.querySelector(".ccm-modal.ccm-details.ccm-show")
e&&this.hideModal(e)},openControlPanel:function(){this.showModal(this.controlPanel)},closeControlPanel:function(){this.hideModal(this.controlPanel)},openWidget:function(e){this.isActive&&this.showModal(this.widget,!0,e)},closeWidget:function(){this.hideModal(this.widget)},onModalCloseButtonClicked:function(e){for(var t=(e=e||window.event).target;null!==t&&0==t.classList.contains("ccm-modal");)t=t.parentElement
this.hideModal(t)},switchLocale:function(e){if(e in this.widgetUrls){var t=this,n=(this.locale=e,this.widgetUrl=this.widgetUrls[e],this.widget&&this.widget.classList.add("ccm-widget--loading"),this.isModalActive()),i=null
if(document.activeElement&&n)for(var o=p.focusableElements(this.widget),s=document.activeElement,c=0;c<o.length;++c)if(o[c]===s){i=c
break}this.build(function(){n&&t.openWidget(i)})}else console.error('[CCM19] Could not switch to unknown locale "'+e+'"')},setLocaleUsingLangAttribute:function(){var e=String(document.documentElement.lang).toLowerCase(),n={},e=(Object.keys(this.widgetUrls).forEach(function(e){var t=e.replace(/_/g,"-").toLowerCase()
n[t]=e,n[t.split("-")[0]]=e}),n[e]||n[e.split("-")[0]]||null)
e&&(this.locale=e,this.widgetUrl=this.widgetUrls[e])},setLocaleFromBrowserPreference:function(){for(var e=("languages"in navigator?navigator.languages:[navigator.userLanguage||navigator.language,navigator.language]),i={},t=(Object.keys(this.widgetUrls).forEach(function(e){var t=e.replace(/_/g,"-").toLowerCase(),n=t.split("-")[0]
i[t]=e,n in i||(i[n]=e)}),null),n=0;n<e.length;++n){var o=e[n]
if(null!==(t=i[o]||i[o.split("-")[0]]||null))break}t&&(this.locale=t,this.widgetUrl=this.widgetUrls[t])},getLocalizedString:function(e){return this.l10n[this.locale][e]||""},dismissTemporarily:function(e){e="boolean"!=typeof e||e,this.consentGiven()||(this.saveSettingsInternal(this.getUniqueCookieId(),!0,[],{},"temporary"),e&&(this.clickedButton="decline",this.logConsentSettings())),this.closeAllModals()},getEmbeddingsWithConsent:function(t){return t="boolean"!=typeof t||t,this.repository.filter(function(e){return e.consent==t})},getPurposeCheckboxes:function(){return h(this.container.querySelectorAll('input[type="checkbox"][data-purpose]')).filter(function(e){return!e.dataset.embedding})},getEmbeddingCheckboxes:function(){return h(this.container.querySelectorAll('input[type="checkbox"][data-embedding]'))},selectAllPurposes:function(){this.setAllPurposes(!0)},selectPurpose:function(t,n){n="partial"!=n&&"boolean"!=typeof n||n,this.getPurposeCheckboxes().forEach(function(e){e.dataset.purpose==t&&(e.checked=!!n,e.indeterminate="partial"==n)}),"boolean"==typeof n&&this.getEmbeddingCheckboxes().forEach(function(e){e.dataset.purpose==t&&(e.checked=n,e.indeterminate=!1)})},selectEmbedding:function(n){this.getEmbeddingCheckboxes().forEach(function(e){e.dataset.embedding==n.id&&(e.checked=n.consent)})
var e=this.repository.reduce(function(e,t){return t.purpose==n.purpose?!0===e?t.consent||"partial":t.consent?"partial":e:e},n.consent)
this.selectPurpose(n.purpose,e)},selectedPurposes:function(){return p.uniqueValues(this.getEmbeddingsWithConsent().map(function(e){return e.purpose}))},getTcfPurposesCategoryCheckboxes:function(){return h(this.container.querySelectorAll('input[type="checkbox"][data-switch-group^="tcf-p-collection-"]'))},getTcfPurposesCheckboxes:function(){return h(this.container.querySelectorAll('input[type="checkbox"][data-switch-group^="tcf-p--"]'))},selectAllTcfPurposes:function(){for(var e in this.consentState.tcfPurposes)this.consentState.tcfPurposes[e]=!0
this.getTcfPurposesCheckboxes().forEach(function(e){e.checked=!0,e.indeterminate=!1}),this.updateTcfPurposeGroups()},resetAllTcfPurposes:function(){for(var e in this.consentState.tcfPurposes)this.consentState.tcfPurposes[e]=!1
this.getTcfPurposesCheckboxes().forEach(function(e){e.checked=!1,e.indeterminate=!1}),this.updateTcfPurposeGroups()},selectedTcfPurposes:function(){var t=this
return Object.keys(this.consentState.tcfPurposes).filter(function(e){return t.consentState.tcfPurposes[e]}).map(function(e){return parseInt(e)}).sort(function(e,t){return e-t})},presetTcfPurposes:function(){var e=this.getTcfConsentInfo(),t=(this.resetAllTcfPurposes(),this)
e.p.forEach(function(e){t.consentState.tcfPurposes[e]=!0}),this.updateTcfPurposes()},updateTcfPurposes:function(){var n=this
this.getTcfPurposesCheckboxes().forEach(function(e){var t=parseInt(e.value)
e.checked=!!n.consentState.tcfPurposes[t]}),this.updateTcfPurposeGroups()},updateTcfPurposeGroups:function(){var i=this
this.getTcfPurposesCategoryCheckboxes().forEach(function(e){var t=parseInt(e.value),n=[],t=(t in i.consentState.tcfPurposes&&n.push(!!i.consentState.tcfPurposes[t]),t in i.consentState.tcfLegIntPurposes&&n.push(!!i.consentState.tcfLegIntPurposes[t]),p.partial(n))
e.checked=!!t,e.indeterminate="partial"==t})},getTcfLegIntPurposesCheckboxes:function(){return h(this.container.querySelectorAll('input[type="checkbox"][data-switch-group^="tcf-li-p--"]'))},selectAllTcfLegIntPurposes:function(){for(var e in this.consentState.tcfLegIntPurposes)this.consentState.tcfLegIntPurposes[e]=!0
this.getTcfLegIntPurposesCheckboxes().forEach(function(e){e.checked=!0,e.indeterminate=!1}),this.updateTcfPurposeGroups()},resetAllTcfLegIntPurposes:function(){for(var e in this.consentState.tcfLegIntPurposes)this.consentState.tcfLegIntPurposes[e]=!1
this.getTcfLegIntPurposesCheckboxes().forEach(function(e){e.checked=!1,e.indeterminate=!1}),this.updateTcfPurposeGroups()},selectedTcfLegIntPurposes:function(){var t=this
return Object.keys(this.consentState.tcfLegIntPurposes).filter(function(e){return t.consentState.tcfLegIntPurposes[e]}).map(function(e){return parseInt(e)}).sort(function(e,t){return e-t})},presetTcfLegIntPurposes:function(){var e=this.getTcfConsentInfo(),t=(this.resetAllTcfLegIntPurposes(),this)
e.lip.forEach(function(e){t.consentState.tcfLegIntPurposes[e]=!0}),this.updateTcfLegIntPurposes()},updateTcfLegIntPurposes:function(){var n=this
this.getTcfLegIntPurposesCheckboxes().forEach(function(e){var t=parseInt(e.value)
e.checked=!!n.consentState.tcfLegIntPurposes[t]}),this.updateTcfPurposeGroups()},getTcfSpecialFeatureCategoryCheckboxes:function(){return h(this.container.querySelectorAll('input[type="checkbox"][data-switch-group="tcf-sf"]'))},getTcfSpecialFeatureCheckboxes:function(){return h(this.container.querySelectorAll('input[type="checkbox"][data-switch-group-parent="tcf-sf"]'))},selectAllTcfSpecialFeatures:function(){for(var e in this.consentState.tcfSpecialFeatures)this.consentState.tcfSpecialFeatures[e]=!0
this.getTcfSpecialFeatureCheckboxes().concat(this.getTcfSpecialFeatureCategoryCheckboxes()).forEach(function(e){e.checked=!0,e.indeterminate=!1})},resetAllTcfSpecialFeatures:function(){for(var e in this.consentState.tcfSpecialFeatures)this.consentState.tcfSpecialFeatures[e]=!1
this.getTcfSpecialFeatureCheckboxes().concat(this.getTcfSpecialFeatureCategoryCheckboxes()).forEach(function(e){e.checked=!1,e.indeterminate=!1})},selectedTcfSpecialFeatures:function(){var t=this
return Object.keys(this.consentState.tcfSpecialFeatures).filter(function(e){return t.consentState.tcfSpecialFeatures[e]}).map(function(e){return parseInt(e)}).sort(function(e,t){return e-t})},presetTcfSpecialFeatures:function(){var e=this.getTcfConsentInfo(),t=(this.resetAllTcfSpecialFeatures(),this)
e.sf.forEach(function(e){t.consentState.tcfSpecialFeatures[e]=!0}),this.updateTcfSpecialFeatures()},updateTcfSpecialFeatures:function(){var n=this,t=(this.getTcfSpecialFeatureCheckboxes().forEach(function(e){var t=parseInt(e.value)
e.checked=!!n.consentState.tcfSpecialFeatures[t]}),p.partial(p.objectValues(this.consentState.tcfSpecialFeatures)))
this.getTcfSpecialFeatureCategoryCheckboxes().forEach(function(e){e.checked=!!t,e.indeterminate="partial"==t})},getTcfVendorThirdPartyCheckboxes:function(){return h(this.container.querySelectorAll('input[type="checkbox"][data-switch-group="tcf-third-party"]'))},getTcfVendorCategoryCheckboxes:function(){return h(this.container.querySelectorAll('input[type="checkbox"][data-switch-group="tcf-gvl"]'))},getTcfVendorCheckboxes:function(){return h(this.container.querySelectorAll('input[type="checkbox"][data-switch-group^="tcf-gvl--"]'))},selectAllTcfVendors:function(){for(var e in this.consentState.tcfVendors)this.consentState.tcfVendors[e]=!0
this.getTcfVendorCheckboxes().forEach(function(e){e.checked=!0,e.indeterminate=!1}),this.updateTcfVendorGroup()},resetAllTcfVendors:function(){for(var e in this.consentState.tcfVendors)this.consentState.tcfVendors[e]=!1
this.getTcfVendorCheckboxes().forEach(function(e){e.checked=!1,e.indeterminate=!1}),this.updateTcfVendorGroup()},selectedTcfVendors:function(){var t=this
return Object.keys(this.consentState.tcfVendors).filter(function(e){return t.consentState.tcfVendors[e]}).map(function(e){return parseInt(e)}).sort(function(e,t){return e-t})},presetTcfVendors:function(){var e=this.getTcfConsentInfo(),t=(this.resetAllTcfVendors(),this)
e.v.forEach(function(e){t.consentState.tcfVendors[e]=!0}),this.updateTcfVendors()},updateTcfVendors:function(){var n=this
this.getTcfVendorCheckboxes().forEach(function(e){var t=parseInt(e.value)
e.checked=!!n.consentState.tcfVendors[t]}),this.updateTcfVendorGroup()},updateTcfVendorGroup:function(){var n,e=this.tcfData.legIntEnabled?this.consentState.tcfVendors:(n=Array.prototype.concat.apply([],this.repository.map(function(e){return Object.keys(e.tcf||{})})),p.filterObject(this.consentState.tcfVendors,function(e,t){return 0==n.includes(t)})),t=p.partial(p.objectValues(e).concat(p.objectValues(this.consentState.tcfLegIntVendors)).concat(p.objectValues(this.consentState.googleAdTechProviders)))
this.getTcfVendorThirdPartyCheckboxes().forEach(function(e){e.checked=!!t,e.indeterminate="partial"==t}),t=p.partial(p.objectValues(e).concat(p.objectValues(this.consentState.googleAdTechProviders))),this.getTcfVendorCategoryCheckboxes().forEach(function(e){e.checked=!!t,e.indeterminate="partial"==t}),t=p.partial(p.objectValues(this.consentState.tcfLegIntVendors)),this.getTcfLegIntVendorCategoryCheckboxes().forEach(function(e){e.checked=!!t,e.indeterminate="partial"==t})},getTcfLegIntVendorCategoryCheckboxes:function(){return h(this.container.querySelectorAll('input[type="checkbox"][data-switch-group="tcf-li-gvl"]'))},getTcfLegIntVendorCheckboxes:function(){return h(this.container.querySelectorAll('input[type="checkbox"][data-switch-group^="tcf-li-gvl--"]'))},selectAllTcfLegIntVendors:function(){for(var e in this.consentState.tcfLegIntVendors)this.consentState.tcfLegIntVendors[e]=!0
this.getTcfLegIntVendorCheckboxes().forEach(function(e){e.checked=!0,e.indeterminate=!1}),this.updateTcfVendorGroup()},resetAllTcfLegIntVendors:function(){for(var e in this.consentState.tcfLegIntVendors)this.consentState.tcfLegIntVendors[e]=!1
this.getTcfLegIntVendorCheckboxes().forEach(function(e){e.checked=!1,e.indeterminate=!1}),this.updateTcfVendorGroup()},selectedTcfLegIntVendors:function(){var t=this
return Object.keys(this.consentState.tcfLegIntVendors).filter(function(e){return t.consentState.tcfLegIntVendors[e]}).map(function(e){return parseInt(e)}).sort(function(e,t){return e-t})},presetTcfLegIntVendors:function(){var e=this.getTcfConsentInfo(),t=(this.resetAllTcfLegIntVendors(),this)
e.liv.forEach(function(e){t.consentState.tcfLegIntVendors[e]=!0}),this.updateTcfLegIntVendors()},updateTcfLegIntVendors:function(){var n=this
this.getTcfLegIntVendorCheckboxes().forEach(function(e){var t=parseInt(e.value)
e.checked=!!n.consentState.tcfLegIntVendors[t]}),this.updateTcfVendorGroup()},getGoogleProviderCheckboxes:function(){return h(this.container.querySelectorAll('input[type="checkbox"][data-switch-group^="gad--"]'))},selectAllGoogleProviders:function(){for(var e in this.consentState.googleAdTechProviders)this.consentState.googleAdTechProviders[e]=!0
this.getGoogleProviderCheckboxes().forEach(function(e){e.checked=!0,e.indeterminate=!1})},resetAllGoogleProviders:function(){for(var e in this.consentState.googleAdTechProviders)this.consentState.googleAdTechProviders[e]=!1
this.getGoogleProviderCheckboxes().forEach(function(e){e.checked=!1,e.indeterminate=!1})},selectedGoogleProviders:function(){var t=this
return Object.keys(this.consentState.googleAdTechProviders).filter(function(e){return t.consentState.googleAdTechProviders[e]}).map(function(e){return parseInt(e)}).sort(function(e,t){return e-t})},presetGoogleProviders:function(){var e=this.getTcfConsentInfo(),e="gad"in e&&e.gad?e.gad:[],t=(this.resetAllGoogleProviders(),this)
e.forEach(function(e){t.consentState.googleAdTechProviders[e]=!0}),this.updateGoogleProviders()},updateGoogleProviders:function(){var n=this
this.getGoogleProviderCheckboxes().forEach(function(e){var t=parseInt(e.value)
e.checked=!!n.consentState.googleAdTechProviders[t]}),this.updateTcfVendorGroup()},gatherGcmInfo:function(i){var o=!1,s={},c={initialConsent:!this.consentGiven()}
return this.repository.forEach(function(n){var e=i.reduce(function(e,t){return e||n.id===t.id},!1)
if(c["ccm19_"+n.name]=e,n.gcm){o=!0
for(var t=0;t<n.gcm.length;t++)e?s[n.gcm[t]]="granted":s[n.gcm[t]]===undefined&&(s[n.gcm[t]]="denied")}}),{consentModeUsed:o,consentMode:s,eventData:c}},gatherMsUetInfo:function(i){var o=!1,s={}
return this.repository.forEach(function(n){var e=i.reduce(function(e,t){return e||n.id===t.id},!1)
if(n.mscm){o=!0
for(var t=0;t<n.mscm.length;t++)e?s[n.mscm[t]]="granted":s[n.mscm[t]]===undefined&&(s[n.mscm[t]]="denied")}}),{consentModeUsed:o,consentMode:s,eventData:{}}},loadScripts:function(e){var t,n,i,o;(e="boolean"==typeof e&&e)&&0==this.runMandatoryEmbeddingsWithoutConsent||(n=(t=this).getEmbeddingsWithConsent(),e&&(n=n.filter(function(e){return e.mandatory})),(i=this.gatherGcmInfo(n)).consentModeUsed&&p.sendGTag("consent","update",i.consentMode),(o=this.gatherMsUetInfo(n)).consentModeUsed&&p.sendMsUet("consent","update",o.consentMode),n.forEach(function(e){t.embedEmbedding(e)}),this.repository.filter(function(e){return t.embeddingsEmbedded.includes(e.id)}).forEach(function(e){t.blockOrRestoreIframesForEmbedding(e)}),e)||(p.triggerGTMEvent("CCM19.consentStateChanged",i.eventData),this.cleanUpClientStorage(!0),this.showSettingsIcon())},getUniqueCookieId:function(){return this.getConsentStorage().ucid||this.ucid},getConsentLanguage:function(){return this.getConsentStorage().lang||""},expandIdRanges:function(e){for(var t=[],n=e.length,i=1;i<n;i+=2)for(var o=e[i-1],s=e[i],c=o;c<=s;++c)t.push(c)
return t},makeIdRanges:function(e){if(0==e.length)return[]
for(var t=[],n=e.length,i=e[0],o=e[0],s=1;s<=n;++s){var c=e[s]
c==o+1?o=c:(t.push(i),t.push(o),i=o=c)}return t.push(i),t.push(o),t},getTcfConsentInfo:function(){var e=this.getConsentStorage(),t=Object.keys(this.consentState.tcfLegIntPurposes).map(function(e){return parseInt(e)}),n=Object.keys(this.consentState.tcfLegIntVendors).map(function(e){return parseInt(e)}),i=e.tcf||{}
return i.p=Array.isArray(i.p)?i.p:[],i.lip=Array.isArray(i.lip)?i.lip:t,i.sf=Array.isArray(i.sf)?i.sf:[],Array.isArray(i.vr)?i.v=this.expandIdRanges(i.vr):i.v=Array.isArray(i.v)?i.v:[],Array.isArray(i.livr)?i.liv=this.expandIdRanges(i.livr):i.liv=Array.isArray(i.liv)?i.liv:n,i.gad=Array.isArray(i.gad)?i.gad:[],i.created="created"in e?e.created:null,i.updated="updated"in e?e.updated:null,i.gad=p.intersect(i.gad,Object.keys(this.consentState.googleAdTechProviders).map(function(e){return parseInt(e)})),i.p=p.intersect(i.p,Object.keys(this.consentState.tcfPurposes).map(function(e){return parseInt(e)})),i.lip=p.intersect(i.lip,t),i.sf=p.intersect(i.sf,Object.keys(this.consentState.tcfSpecialFeatures).map(function(e){return parseInt(e)})),i.v=p.intersect(i.v,Object.keys(this.consentState.tcfVendors).map(function(e){return parseInt(e)})),i.liv=p.intersect(i.liv,n),i},callAsSoonAsSavingSettingsIsDone:function(e){"function"==typeof e&&this.saveSettingsFunctionQueue.push(e),this.saving?window.requestAnimationFrame(this.callAsSoonAsSavingSettingsIsDone.bind(this)):(this.saveSettingsFunctionQueue.forEach(function(e){e()}),this.saveSettingsFunctionQueue=[])},callAsSoonAsTcfApiIsAvailableOrIfDisabled:function(e){function t(){this.tcfDependantFunctionQueue.forEach(function(e){e()}),this.tcfDependantFunctionQueue=[]}"function"==typeof e&&this.tcfDependantFunctionQueue.push(e),"__tcfapi"in window?window.__tcfapi("getTCData",2,t.bind(this)):t.call(this)},logOpenData:function(){this.ajax(this.statisticsUrl,{method:"POST",contentType:"application/json",body:{ucid:this.getUniqueCookieId(),lang:this.locale,clientUserAgent:navigator.userAgent,clientOs:navigator.platform,clientLang:navigator.language,actualUrl:window.location.href,actualRef:document.referrer,actualOpened:1}})},logConsentSettings:function(){var e=this.consentGiven(),t=e?this.getConsentStorage():{},n=this.getTcfConsentInfo(),o=this
n.created=n.created?Math.round(n.created/10):null,n.updated=n.updated?Math.round(n.updated/10):null,this.ajax(this.statisticsUrl,{method:"POST",contentType:"application/json",body:{ucid:this.getUniqueCookieId(),consent:e,clickedButton:this.clickedButton,purposes:this.selectedPurposes(),embeddings:this.getEmbeddingsWithConsent().map(function(e){return e.id}),iframeConsentDomains:"iframeConsentDomains"in t?t.iframeConsentDomains:[],tcf:n,lang:this.locale,clientUserAgent:navigator.userAgent,clientOs:navigator.platform,clientLang:navigator.language,clientWidth:window.innerWidth,clientHeight:window.innerHeight,actualUrl:window.location.href,actualRef:document.referrer,actualOpened:0},done:function(){var i={realm:"CCM19",type:"ConsentSharing",action:"consent",ucid:o.getUniqueCookieId(),updated:"updated"in t?t.updated:null,consent:e,embeddings:"embeddings"in t?t.embeddings:[],tcf:"tcf"in t?n:null,domain:o.domainId,clickedButton:o.clickedButton}
o.consentShareChannels.forEach(function(e){try{var t=e.origin!==undefined?e.origin:null
e.channel.postMessage(i,t)}catch(n){}})}})},setStorageNamespaceUsingUrlParameter:function(){var o,e
0!=this.storageNamespaceUrlParameter.length&&(o=this,e=location.search.slice(1).split("&").reduce(function(e,t){var n=(t=t.split("=",2).map(function(e){return decodeURIComponent(e)}))[0],i=t[1]||null
return n==o.storageNamespaceUrlParameter?i:e},null))&&(this.storageNamespace=e,this.dynamicStorageNamespace=!0)},getConsentStorage:function(){var e=this.getCookie(this.cookies.consent)||{},t=Object.keys(e).reduce(function(e,t){return e||0==String(t).indexOf("/")},!1)
return e[this.storageNamespace]?e=e[this.storageNamespace]:t&&(e={}),"object"==typeof e?e:{}},tidyConsentStorage:function(){var t=this,e=this.getCookies().filter(function(e){return e.name==t.cookies.consent})
1<e.length&&(this.isConsentShareDomain()&&(document.cookie=this.cookies.consent+"=;path=/;expires=Thu, 01 Jan 1970 00:00:00 UTC"),e=this.getCookies().filter(function(e){return e.name==t.cookies.consent})),1<e.length&&console.warn("[CCM19] The cookie %s exists for multiple domains, which can result in unexpected behavior.",this.cookies.consent)},saveSettings:function(i,o){var s=this
i="boolean"!=typeof i||i,o="boolean"!=typeof o||o,this.saving=!0,p.skipAnimationFrame(function(){var e=s.getEmbeddingsWithConsent().map(function(e){return e.id}),t={p:s.selectedTcfPurposes(),lip:s.selectedTcfLegIntPurposes(),sf:s.selectedTcfSpecialFeatures(),v:s.selectedTcfVendors(),liv:s.selectedTcfLegIntVendors(),gad:s.selectedGoogleProviders()},n=s.consentGiven()||o
s.saveSettingsInternal(s.getUniqueCookieId(),n,e,t),i&&s.logConsentSettings(),s.saving=!1,s.callAsSoonAsSavingSettingsIsDone()}),o&&this.closeAllModals()},saveSettingsInternal:function(e,t,n,i,o,s){o="string"==typeof o?o:"permanent"
var c,r=this.getConsentStorage(),a={path:"/"},l=(i="object"==typeof i&&null!==i&&"sf"in i?i:{p:[],sf:[],v:[]},this.makeIdRanges(i.v)),l=(l.length<i.v.length?(i.vr=l,delete i.v):"vr"in i&&delete i.vr,Array.isArray(i.liv)&&((l=this.makeIdRanges(i.liv)).length<i.liv.length?(i.livr=l,delete i.liv):"livr"in i&&delete i.livr),0<this.cookieLifetime&&(a.expires=new Date(p.now+864e5*this.cookieLifetime).toUTCString()),a.secure=this.cookieUseSecure&&"https:"==location.protocol,a.sameSite=a.secure?"None":"Lax",s!==undefined&&null!==s||(s=Math.round(p.now/100)),"temporary"==o?a.method="sessionStorage":"sessionStorage"!=this.consentStorageMethod&&"sessionStorage"in window&&"removeItem"in window.sessionStorage&&window.sessionStorage.removeItem(this.cookies.consent),r.gen=2,r.ucid=e,r.consent=t,r.embeddings=n,r.created="created"in r?r.created:s,r.updated=s,r.clickedButton=this.clickedButton,r.iframeConsentDomains=this.iframeConsentDomains,r.tcf=i,r.lang=this.locale,this.getCookie(this.cookies.consent)||{})
l[this.storageNamespace]=r,this.setCookie(this.cookies.consent,l,a),this.requiresConsentUpdate=!t,this.forceOpenWidget=!!this.forceOpenWidget&&this.requiresConsentUpdate,this.widgetInitialized&&(this.setPurposesAndEmbeddings(n),this.loadScripts(),this.updateCookieDeclaration()),"clickskeksLegacy"in this&&(c=window.Clickskeks.getCurrentAllowedConfig(),this.clickskeksLegacy.allowedConfigChangeCallbacks.forEach(function(e){e(c)}))},grantAllPrivileges:function(e){this.selectAllPurposes(),this.selectAllTcfPurposes(),!1!==e&&(this.selectAllTcfLegIntPurposes(),this.selectAllTcfLegIntVendors()),this.selectAllTcfSpecialFeatures(),this.selectAllGoogleProviders(),this.selectAllTcfVendors()},revokeAllPrivileges:function(e){this.setAllPurposes(!1),this.resetAllTcfPurposes(),!0===e&&(this.resetAllTcfLegIntPurposes(),this.resetAllTcfLegIntVendors()),this.resetAllTcfSpecialFeatures(),this.resetAllGoogleProviders(),this.resetAllTcfVendors()},onConsentButtonClicked:function(e){var t=(e=e||window.event).currentTarget||e.target
this.checkIsManipulatedClick(e)?console.warn("[CCM19] Manipulated click on consent button detected and ignored."):("true"==t.dataset.fullConsent?(this.clickedButton="acceptAll",this.grantAllPrivileges()):(this.clickedButton="save",this.iframeConsentDomains=[]),this.saveSettings())},onDeclineButtonClicked:function(e){this.clickedButton="decline",this.iframeConsentDomains=[],this.revokeAllPrivileges(),this.saveSettings()},onActionButtonClicked:function(e){var t=(e=e||window.event).currentTarget||e.target,n={enableEverything:this.grantAllPrivileges,disableEverything:this.revokeAllPrivileges},t=t.dataset.ccmAction
"function"==typeof n[t]&&n[t].call(this,!0)},onTreeNodeToggleClicked:function(e){for(var n,t=(e=e||window.event).currentTarget||e.target,i=t.parentElement;i&&0==i.classList.contains("ccm--tree-node");)i=i.parentElement
i&&(n=p.toggleClass(i,"ccm--tree-node--open"),t.ariaExpanded=n,h(i.querySelectorAll(".ccm--collapsable")).forEach(function(e){for(var t=e.parentElement;t&&0==t.classList.contains("ccm--tree-node");)t=t.parentElement
t===i&&e.setAttribute("aria-hidden",n?"false":"true")}))},onSwitchStateChanged:function(e){var t,n=e.target,i=h(this.container.querySelectorAll('input[type="checkbox"][data-switch-group]')),o=(h(this.container.querySelectorAll('input[type="checkbox"][data-switch-group-parent]')),i.filter(function(e){return e.dataset.switchGroup==n.dataset.switchGroup})),s=i.filter(function(e){var t=n.dataset.switchGroupParent
return t&&e.dataset.switchGroup==t}),c=i.filter(function(e){var t=n.dataset.switchGroupParent
return t&&e.dataset.switchGroupParent==t}),i=i.filter(function(e){var t=n.dataset.switchGroup
return e.dataset.switchGroupParent==t}),r=n.checked,a=(function(e){var t=e.dataset.consentStateCategory
this.consentState[t]&&e.value in this.consentState[t]&&(this.consentState[t][e.value]=e.checked)}).bind(this),l=(function(n){var i=this
n.dataset.consentStateCategoryGroups.split(",").forEach(function(e){if(i.consentState[e])for(var t in i.consentState[e])i.consentState[e][t]=n.checked})}).bind(this)
o.forEach(function(e){e.checked=r,e.indeterminate=!1,e.dataset.consentStateCategory&&a(e),e.dataset.consentStateCategoryGroups&&l(e)}),0<s.length&&(t=c.reduce(function(e,t){return!0===e?t.checked||"partial":t.checked?"partial":e},r),s.forEach(function(e){e.checked=!!t,e.indeterminate="partial"==t})),i.forEach(function(e){e.checked=r,e.indeterminate=!1,a(e)}),this.updateConsentState()},onPurposeToggled:function(e){var t=e.target,n=t.dataset.purpose,i=t.checked,o=this
this.repository.forEach(function(e){e.purpose==n&&(e.consent=i||e.mandatory,o.selectEmbedding(e))})},onEmbeddingToggled:function(e){var t=e.target,n=this.repository[t.dataset.embedding]
n&&(n.consent=t.checked||n.mandatory,this.selectEmbedding(n))},onTcfDescriptionExpandClicked:function(e){function t(e,t){for(var n,i,t=t.trim().split("\n"),o=0;o<t.length;++o)t[o]?"*"===t[o][0]&&" "===t[o][1]?((n=n&&"ul"!=n.tagName.toLowerCase()?null:n)||(n=document.createElement("ul"),e.appendChild(n)),(i=document.createElement("li")).innerText=t[o].substr(2),n.appendChild(i)):(n&&("p"==n.tagName.toLowerCase()?n.appendChild(document.createElement("br")):n=null),n||(n=document.createElement("p"),e.appendChild(n)),n.appendChild(document.createTextNode(t[o]))):n=null}var n=e.currentTarget||e.target,i=n.parentNode,o=i.getAttribute("data-ccm-tcf").split(":")
if(i.classList.toggle("ccm-expanded"),i.classList.contains("ccm-expanded"))if(c=i.getElementsByClassName("ccm-tcf-description")[0])n.ariaExpanded=!0,c.classList.remove("ccm--hidden")
else{for(var s=h(i.getElementsByClassName("ccm--hidden")),c=document.createElement("div"),r=i.parentNode;r.parentNode&&!r.id;)r=r.parentNode
for(var a="ccm-pdesc--"+r.id.replace(/[^a-zA-Z0-9-]/g,"-")+"--"+i.getAttribute("data-ccm-tcf").replace(/[^a-zA-Z0-9-]/g,"-"),a=(c.className="ccm-tcf-description",c.id=a,n.setAttribute("aria-controls",a),document.createElement("div")),l=0;l<s.length;++l)s[l].classList.remove("ccm--hidden"),c.appendChild(s[l])
c.appendChild(a)
var d=document.getElementById("ccm-tcf-descriptions"),d=JSON.parse(d.innerHTML)[o[0]][o[1]]
t(a,d.desc),d.legal&&t(a,d.legal),n.ariaExpanded=!0,i.appendChild(c)}else{n.ariaExpanded=!1
o=i.getElementsByClassName("ccm-tcf-description")[0]
o&&o.classList.add("ccm--hidden")}},onTcfExtendedDisclosureExpandClicked:function(e){var i=e.currentTarget||e.target,o=i.parentNode,t=parseInt(o.getAttribute("data-ccm-tcf"))
o.classList.toggle("ccm-expanded"),o.classList.contains("ccm-expanded")?(t=this.tcfData.disclosureUrlTemplate.replace(":VENDOR",t).replace(":LANG",this.locale),this.ajax(t,{method:"GET",success:function(e){var t=document.createElement("div"),n="ccm-extdiscl--"+o.getAttribute("data-ccm-tcf").replace(/[^a-zA-Z0-9-]/g,"-")
t.className="ccm-tcf-description",t.id=n,i.setAttribute("aria-controls",n),t.innerHTML=e,i.ariaExpanded=!0,o.appendChild(t)},failure:function(){o.classList.remove("ccm-expanded")}})):(i.ariaExpanded=!1,o.removeChild(o.getElementsByClassName("ccm-tcf-description")[0]))},onTcfPermissionVendorListExpandClicked:function(e){var t=e.currentTarget||e.target,n=t.parentNode,i=n.getAttribute("data-ccm-tcf").replace(/[^a-zA-Z0-9_:-]/g,"")
if(n.classList.toggle("ccm-expanded"),n.classList.contains("ccm-expanded")){if(o=n.parentNode.getElementsByClassName("ccm--tcf-vendors-list")[0])o.classList.remove("ccm--hidden")
else{for(var o=document.createElement("ul"),s="ccm-vlist--"+n.getAttribute("data-ccm-tcf").replace(/[^a-zA-Z0-9-]/g,"-"),c=(o.id=s,t.setAttribute("aria-controls",s),o.classList.add("ccm--tcf-vendors-list"),h(document.getElementById("ccm-details").querySelectorAll('.ccm-details--embedding--tcf li[data-ccm-tcf="'+i+'"]'))),r=0;r<c.length;++r){var a,l,d,u=function(){for(var e=c[r];e=e.parentNode;)if("classList"in e&&(e.classList.contains("ccm-details--content--item")||e.classList.contains("ccm-details--content--cookie")))return e
return e}()
u&&(u=(a=u.getElementsByClassName("ccm-details--content--cookie--title")[0])?u.querySelector("data.ccm--tcf-vendor").value.replace(/^[0-9]*:/,""):(a=u).querySelector(".ccm--tcf-permission--title").innerText.trim(),l=document.createElement("li"),(d=document.createElement("a")).href="#"+a.id,d.innerText=u,l.appendChild(d),o.appendChild(l))}n.appendChild(o)}t.ariaExpanded=!0}else{t.ariaExpanded=!1
s=n.getElementsByClassName("ccm--tcf-vendors-list")[0]
s&&s.classList.add("ccm--hidden")}},presetConsentState:function(){this.consentGiven()?(this.presetPurposesAndEmbeddings(),this.presetTcfPurposes(),this.presetTcfLegIntPurposes(),this.presetTcfSpecialFeatures(),this.presetTcfVendors(),this.presetTcfLegIntVendors(),this.presetGoogleProviders()):this.isConsentRequired()?(this.revokeAllPrivileges(),this.selectAllTcfLegIntPurposes(),this.selectAllTcfLegIntVendors()):(this.grantAllPrivileges(),this.forceOpenWidget||this.saveSettings())},updateConsentState:function(){this.updatePurposesAndEmbeddings(),this.updateTcfPurposes(),this.updateTcfLegIntPurposes(),this.updateTcfSpecialFeatures(),this.updateTcfVendors(),this.updateTcfLegIntVendors(),this.updateGoogleProviders()},presetPurposesAndEmbeddings:function(){var e=this.getConsentStorage().embeddings||[]
this.setPurposesAndEmbeddings(e)},updatePurposesAndEmbeddings:function(){var e=this.repository.filter(function(e){return e.consent}).map(function(e){return e.id})
this.setPurposesAndEmbeddings(e)},setPurposesAndEmbeddings:function(t){var n=this
this.repository.forEach(function(e){e.consent=t.includes(e.id)||e.mandatory,n.container&&n.selectEmbedding(e)})},setAllPurposes:function(e){var t=(e="boolean"==typeof e&&e)?this.repository.map(function(e){return e.id}):[]
this.setPurposesAndEmbeddings(t)},captureFocus:function(){var e,t
this._focusCaptured||(this._focusCaptured=!0,(e=document.createElement("div")).style.position="fixed",e.style.left="0",e.style.right="0",e.style.height="0",e.style.maxHeight="0",e.background="transparent",e.border="0 none transparent",e.ariaHidden=!0,e.tabIndex=0,t=e.cloneNode(),e.style.top="0",e.id="ccm-focus-helper--top",document.body.insertBefore(e,document.body.firstChild),t.style.bottom="0",t.id="ccm-focus-helper--bottom",document.body.appendChild(t),document.body.addEventListener("focusin",this.onFocusIn,{capture:!0,passive:!1}),document.body.addEventListener("keydown",this.onTabKeyDown,{capture:!0,passive:!0}))},endCaptureFocus:function(){var e,t
this._focusCaptured&&(this._focusCaptured=!1,e=document.getElementById("ccm-focus-helper--top"),t=document.getElementById("ccm-focus-helper--bottom"),e&&e.parentNode.removeChild(e),t&&t.parentNode.removeChild(t),document.body.removeEventListener("focusin",this.onFocusIn,{capture:!0,passive:!1}),document.body.removeEventListener("keydown",this.onTabKeyDown,{capture:!0,passive:!0}))},consentGiven:function(){var e
return!this.requiresConsentUpdate&&(e=this.getConsentStorage()).consent&&2==e.gen||!1},isFullConsentGiven:function(){var e,t
return!!this.consentGiven()&&("acceptAll"===this.clickedButton||(e=this.getConsentStorage(),t=this.getTcfConsentInfo(),0==p.diff(Object.keys(this.repository),e.embeddings||[]).length&&0==p.diff(Object.keys(this.consentState.googleAdTechProviders).map(function(e){return parseInt(e)}),t.gad).length&&0==p.diff(Object.keys(this.consentState.tcfPurposes).map(function(e){return parseInt(e)}),t.p).length&&0==p.diff(Object.keys(this.consentState.tcfLegIntPurposes).map(function(e){return parseInt(e)}),t.lip).length&&0==p.diff(Object.keys(this.consentState.tcfSpecialFeatures).map(function(e){return parseInt(e)}),t.sf).length&&0==p.diff(Object.keys(this.consentState.tcfVendors).map(function(e){return parseInt(e)}),t.v).length&&0==p.diff(Object.keys(this.consentState.tcfLegIntVendors).map(function(e){return parseInt(e)}),t.liv).length))},registerControls:function(){var n=this,i=[],t=(h(this.container.querySelectorAll(".ccm-settings-summoner > .ccm-settings-summoner--link")).forEach(function(e){e.classList.contains("ccm--ctrl-init")||(i.push(e),n.addHighPriorityEventListener("click",e,function(e){return n.onSettingsIconClicked(e)}))}),h(this.container.querySelectorAll("[data-jump-to]")).forEach(function(t){t.classList.contains("ccm--ctrl-init")||(i.push(t),t.addEventListener("click",function(e){n.jumpTo(t.dataset.jumpTo,e)}))}),h(this.container.querySelectorAll("[data-ccm-modal]")).forEach(function(e){e.classList.contains("ccm--ctrl-init")||(i.push(e),e.addEventListener("click",function(){n.loadModal(e.dataset.ccmModal,!0,e.dataset.jumpTo)}))}),function(e){return n.onActionButtonClicked(e)}),o=(h(this.container.querySelectorAll("button[data-ccm-action], .button[data-ccm-action]")).forEach(function(e){e.classList.contains("ccm--ctrl-init")||(i.push(e),e.addEventListener("click",t))}),h(this.container.querySelectorAll(".ccm--tree-node .ccm--tree-node-toggle")).forEach(function(e){e.classList.contains("ccm--ctrl-init")||(i.push(e),e.ariaExpanded=!1,e.addEventListener("click",n.onTreeNodeToggleClicked))}),h(this.container.getElementsByClassName("ccm-modal--close")).forEach(function(e){e.classList.contains("ccm--ctrl-init")||(i.push(e),e.addEventListener("click",function(e){return n.onModalCloseButtonClicked(e)}))}),h(this.container.getElementsByClassName("ccm--save-settings")).forEach(function(e){e.classList.contains("ccm--ctrl-init")||(i.push(e),e.addEventListener("click",function(e){return n.onConsentButtonClicked(e)}))}),h(this.container.getElementsByClassName("ccm--decline-cookies")).forEach(function(e){e.classList.contains("ccm--ctrl-init")||(i.push(e),e.addEventListener("click",function(e){return n.onDeclineButtonClicked(e)}))}),h(this.container.getElementsByClassName("ccm-widget--language-select")).forEach(function(e){e.classList.contains("ccm--ctrl-init")||(i.push(e),e.addEventListener("change",function(){n.switchLocale(this.value)}))}),h(this.container.getElementsByClassName("ccm-dismiss-button")).forEach(function(e){e.classList.contains("ccm--ctrl-init")||(i.push(e),e.addEventListener("click",function(){n.dismissTemporarily()}))}),h(this.container.querySelectorAll('input[type="checkbox"][data-switch-group]')).forEach(function(e){e.classList.contains("ccm--ctrl-init")||(i.push(e),e.addEventListener("change",function(e){return n.onSwitchStateChanged(e)}))}),function(e){return n.onTcfDescriptionExpandClicked(e)}),s=function(e){return n.onTcfExtendedDisclosureExpandClicked(e)},c=function(e){return n.onTcfPermissionVendorListExpandClicked(e)},r=function(e){"Enter"!=e.key&&"Spacebar"!=e.key&&" "!=e.key&&"NumpadEnter"!=e.key||(e.preventDefault(),this.click(),e.stopPropagation())}
h(this.container.querySelectorAll("li[data-ccm-tcf] > span")).forEach(function(e){e.classList.contains("ccm--ctrl-init")||(i.push(e),e.addEventListener("click",o),e.addEventListener("keypress",r),e.ariaExpanded=!1,e.role="button")}),h(this.container.querySelectorAll("div[data-ccm-tcf] > strong")).forEach(function(e){e.classList.contains("ccm--ctrl-init")||(i.push(e),e.addEventListener("click",s),e.addEventListener("keypress",r),e.ariaExpanded=!1,e.role="button")}),h(this.container.querySelectorAll(".ccm--tcf-vendors[data-ccm-tcf] > span")).forEach(function(e){e.classList.contains("ccm--ctrl-init")||(i.push(e),e.addEventListener("click",c),e.addEventListener("keypress",r),e.ariaExpanded=!1,e.role="button")}),this.getPurposeCheckboxes().forEach(function(e){e.classList.contains("ccm--ctrl-init")||(i.push(e),e.addEventListener("change",function(e){return n.onPurposeToggled(e)}))}),this.getEmbeddingCheckboxes().forEach(function(e){e.classList.contains("ccm--ctrl-init")||(i.push(e),e.addEventListener("change",function(e){return n.onEmbeddingToggled(e)}))}),i.forEach(function(e){e.classList.add("ccm--ctrl-init")})},useRemoteConsent:function(e,t,n,i,o,s,c,r,a){this.ucid=e,this.domainId===o?(this.clickedButton="save",this.saveSettingsInternal(e,t,n,i,"permanent",c)):this.accountWideConsentSharing&&("decline"===r?"decline"===this.clickedButton&&!this.requiresConsentUpdate||(this.clickedButton="decline",this.iframeConsentDomains=[],this.revokeAllPrivileges(),this.saveSettings()):"acceptAll"!==r||"acceptAll"===this.clickedButton&&!this.requiresConsentUpdate||(this.clickedButton="acceptAll",this.grantAllPrivileges(),this.saveSettings())),a&&this.callAsSoonAsSavingSettingsIsDone(a)},urlIsExempt:function(i){var o=i.replace(/#.*$/,"")
return this.exemptUrls.reduce(function(e,t){0===t.indexOf("//")?t=location.protocol+t:0===t.indexOf("/")&&(t=location.protocol+"//"+location.host+t)
var n="*"==t.charAt(t.length-1)
return(t=n?t.substr(0,t.length-1):t).includes("#")?e||0==i.indexOf(t)&&(n||i.length==t.length):e||0==o.indexOf(t)&&(n||o.length==t.length)||0===i.indexOf(t+"#")},!1)},isConsentRequired:function(e){var t=!this.behavior.noConsentRequired,n=!(e="boolean"==typeof e&&e)&&this.behavior.respectDoNotTrack&&this.isDoNotTrackEnabledInBrowser()
return t||n},build:function(t){var n=this
function l(e){t&&t.call(n,e),p.triggerCustomEvent(window,"ccm19WidgetLoaded")}this.widgetUrl||(this.widgetUrl=this.widgetUrls[this.locale])
var d=function(){!(function(){var e,t,n,i,o,s,c,r=this,a=!this.widgetInitialized
a&&!p.isDocumentReady()?window.requestAnimationFrame(d):(this.widgetInitialized=!0,this.insertCookieDeclaration(),this.closeAllModals(),this.registerControls(),this.registerJavaScriptApiHandlers(),this.presetConsentState(),c=p.now/1e3/60|0,e=!!this.urlConsent&&p.objectValues(this.accountWideConsentType).includes(this.urlConsent[5]),t=!1,this.initPlatformDependentComponents(),a&&(s=this.detailsUrls[this.locale])&&((o=document.getElementById("ccm-prefetch--detail-dialog"))?o.parentNode.removeChild(o):o=document.createElement("LINK"),o.rel="prefetch",o.as="fetch",o.crossOrigin="anonymous",o.href=s,o.id="ccm-prefetch--detail-dialog",document.head.appendChild(o)),p.isTopLevel()||(n=[],["parent","top","opener"].forEach(function(e){try{null===(i=window[e])||n.includes(i)||(i.postMessage({realm:"CCM19",type:"ConsentSharing",action:"requestConsent"},"*"),n.push(i))}catch(t){}})),a&&(this.dispatchInternalEvent("widgetInitialized"),this.wrapHistoryApi(),window.addEventListener("popstate",function(e){r.onHistoryStateChanged(e)}),(s=document.getElementById("ccm-focus-helper--bottom"))?document.body.insertBefore(this.container,s):document.body.appendChild(this.container)),(this.consentCrossDomain&&!e||this.accountWideConsentSharing&&e)&&this.urlConsent&&Math.abs(parseInt(this.urlConsent[2],36)-c)<2&&(o=10*(parseInt(this.urlConsent[3],36)+1609459200),(s=this.getConsentStorage())&&"updated"in s&&!(o>s.updated)||(c=e?"1"===this.urlConsent[5]?["*"]:[]:this.urlConsent[5].split("|"),this.useRemoteConsent(this.urlConsent[4],!0,c,null,e?null:this.domainId,"URL",o,e?"1"===this.urlConsent[5]?"acceptAll":"decline":"save",function(){l.call(r,a)}),t=!0)),t||l.call(this,a))}).call(n)},e=function(){!(function(){p.isDocumentReady()?(this.closeAllModals(),this.container.innerHTML='<div class="ccm-widget">Error while loading resource, please try again later.</div>'):window.requestAnimationFrame(e)}).call(n)}
this.ajax(this.widgetUrl,{method:"GET",success:function(e){this.container.innerHTML=e,this.controlPanel=this.container.querySelector("#ccm-control-panel"),this.widget=this.container.querySelector("#ccm-widget"),this.callAsSoonAsSavingSettingsIsDone(d)},failure:e})},restoreIframe:function(e){var t=(this.iframeConsentSwitchMap[e.ccm19IframeConsentSwitchId]||{}).checkbox||null,t=(t&&(t.checked=!0),e.ccm19IframePlaceholder||e)
null!==t.parentElement&&(e.ccm19OriginalIframe?(e.ccm19OriginalIframe.ccm19ConsentGranted=!0,e.ccm19OriginalIframe.src=e.ccm19OriginalIframe.dataset.ccmSrc,delete e.ccm19OriginalIframe.dataset.ccmLoaderGroup,delete e.ccm19OriginalIframe.dataset.ccmLoaderSrc,delete e.ccm19OriginalIframe.dataset.ccmSrc,t.parentElement.insertBefore(e.ccm19OriginalIframe,t),t.parentElement.removeChild(t)):""!==e.dataset.ccmSrc&&(e.ccm19ConsentGranted=!0,e.src=e.dataset.ccmSrc,e.dataset.ccmSrc="",t="true"==e.dataset.initialHeightInline,e.style.height=t?e.dataset.initialHeight:e.dataset.initialHeight+"px",e.style.maxHeight="",e.dataset.initialHeightInline="",e.dataset.initialHeight="",0==t)&&window.requestAnimationFrame(function(){e.style.height=""}))},blockIframe:function(e){this.processIframeForBlocking(e,!0)},blockOrRestoreIframesForEmbedding:function(t){var n=this
this.iframes.forEach(function(e){e.ccm19BlockedByEmbeddings[0]==t.id&&(t.consent?n.restoreIframe(e):n.blockIframe(e.ccm19OriginalIframe))})},findExistingIframeClone:function(n){return this.iframes.reduce(function(e,t){return t.ccm19OriginalIframe===n?t:e},null)},appendConsentSwitchToIframe:function(e,t){t="boolean"==typeof t&&t
var n,i,o,s=this,c=this.findExistingIframeClone(e),r=this.iframeConsentSwitchMap[c.ccm19IframeConsentSwitchId]?this.iframeConsentSwitchMap[c.ccm19IframeConsentSwitchId].container:null,a=(r||(n="ccm--consent-switch-"+p.hash(String(p.now)+String(Math.random()||Math.random()).slice(1)),c.ccm19IframeConsentSwitchId=n,(r=document.createElement("DIV")).classList.add("ccm--consent-switch"),(i=document.createElement("INPUT")).id=n,i.type="checkbox",i.addEventListener("change",function(e){return s.onIframeConsentSwitchStateChanged(e)}),(a=document.createElement("LABEL")).setAttribute("for",n),a.textContent=this.getLocalizedString("blockedContentShowExternalContent"),r.appendChild(i),r.appendChild(a),(o=this.repository[c.ccm19BlockedByEmbeddings[0]])&&(a.textContent=this.getLocalizedString("blockedContentAllowEmbedding").replace(":embedding",o.name),(a=document.createElement("A")).href="javascript:",a.textContent="("+this.getLocalizedString("blockedContentProviderDetails")+")",a.addEventListener("click",function(){s.loadModal("ccm-details",!0,"ccm-cookie-details-"+o.id)}),r.appendChild(a)),this.iframeConsentSwitchMap[n]={original:e,clone:c,checkbox:i,container:r}),(this.iframeConsentSwitchMap[c.ccm19IframeConsentSwitchId].checkbox.checked=t)?e:c.ccm19IframePlaceholder||c)
r.previousElementSibling!==a&&(a.nextElementSibling?a.parentElement.insertBefore(r,a):a.parentElement.appendChild(r))},onIframeConsentSwitchStateChanged:function(e){var t,n=e.currentTarget||e.target,i=this.iframeConsentSwitchMap[n.id].clone,o=this.iframeConsentSwitchMap[n.id].original,s=this.repository[i.ccm19BlockedByEmbeddings[0]]
s?(s.consent=n.checked||s.mandatory,this.selectEmbedding(s),this.saveSettings(!0,!1)):(n.checked?this.restoreIframe(i):this.blockIframe(o),t=o.dataset.ccmDomain,this.iframeConsentDomains=this.iframeConsentDomains.filter(function(e){return e!==t}),n.checked&&this.iframeConsentDomains.push(t))},onPostMessage:function(e){if("object"==typeof e.data&&"CCM19"===e.data.realm)switch(e.stopImmediatePropagation(),e.data.type){case"ContentBlocker":return this.onMessageFromContentBlocker(e)
case"ConsentSharing":return this.onMessageFromConsentSharing(e)}},onMessageFromContentBlocker:function(n){var t=this
if(n.origin==this.origin){var e=this.iframes.reduce(function(e,t){return n.source===t.contentWindow?t:e},null)
if(null!=e){var i="string"==typeof n.data.action?n.data.action:""
switch(i){case"updateHeight":if("number"==typeof n.data.innerHeight){if(e.ccm19ConsentGranted)return
n.data.initialUpdate&&(e.dataset.initialHeightInline=e.style.height?"true":"false",e.dataset.initialHeight=e.style.height||e.clientHeight,e.dataset.initialClientHeight=e.clientHeight),e.style.height=Math.max(n.data.innerHeight,e.dataset.initialClientHeight)+"px",e.style.maxHeight="100%"}break
case"resourceDomain":var o=e.dataset.ccmDomain,s=(e.contentWindow.postMessage({realm:"CCM19",type:"ContentBlocker",action:i,domain:o},this.origin),this.repository[e.ccm19BlockedByEmbeddings[0]])
s&&s.dispatchLoadEventForIframes&&p.triggerCustomEvent(e.ccm19OriginalIframe,"load")
break
case"thirdPartyContentConsentGranted":o=e.dataset.ccmDomain,this.restoreIframe(e),this.iframes.forEach(function(e){e.dataset.ccmDomain==o&&t.restoreIframe(e)}),0==this.iframeConsentDomains.includes(o)&&(this.iframeConsentDomains.push(o),this.saveSettings(!0,!1))}}}},onMessageFromConsentSharing:function(e){if(!this.dynamicStorageNamespace){var t=this.getCategorizedBaseDomain(e.origin.replace(/^[^:\/]*:\/\//,"").replace(/:[0-9]+$/,""))
if(t.domain,e.origin===window.origin||t.sameAccount){var n=this,i=e.data
switch(i.action){case"requestConsent":var o=this.consentGiven(),s=o?this.getConsentStorage():{}
e.source.postMessage({realm:"CCM19",type:"ConsentSharing",action:"consent",ucid:this.getUniqueCookieId(),updated:"updated"in s?s.updated:null,consent:o,embeddings:"embeddings"in s?s.embeddings:[],tcf:"tcf"in s?s.tcf:null,domain:this.domainId,clickedButton:this.clickedButton},e.origin),this.consentShareChannels.push({channel:e.source,origin:e.origin})
break
case"consent":if(i.consent?("number"!=typeof(s=this.getConsentStorage()).updated||"number"==typeof i.updated&&i.updated>s.updated)&&this.useRemoteConsent(i.ucid,i.consent,i.embeddings,i.tcf,i.domain,e.origin,i.updated,i.clickedButton,function(){n.consentGiven()&&n.closeAllModals()}):n.closeAllModals(),i.domain==this.domainId)try{e.source!==window.parent&&e.source!==window.top||this.hideSettingsIcon()}catch(c){console.debug("[CCM19] Failed to check consent source window. Sandbox?",c)}}}}},getAllowedEmbeddingIds:function(){return!this.requiresConsentUpdate&&this.getConsentStorage().embeddings||[]},getAllowedAndMandatoryEmbeddingIds:function(){if(0==this.consentGiven()&&0==this.runMandatoryEmbeddingsWithoutConsent)return[]
var e,t=this.getAllowedEmbeddingIds()
for(e in this.repository){var n=this.repository[e]
0==t.includes(n.id)&&n.mandatory&&t.push(n.id)}return t},shouldBlockScriptAccordingToBlacklist:function(n){var i
return!(0==this.checkIsBlockableScript(n)&&"text/x-ccm-loader"!=n.type.toLowerCase()||n.hasAttribute("data-ccm-injected"))&&(i=String(n.outerHTML),this.deniedScriptMarkers.reduce(function(e,t){return e||i.includes(t)||n.src.includes(t)},!1))},shouldBlockScript:function(e){var t,n
return!!this.shouldBlockScriptAccordingToBlacklist(e)||!(this.inEval||!this.checkIsBlockableScript(e)||e.hasAttribute("data-ccm-injected"))&&((t="text/x-ccm-loader"==e.type&&e.dataset.ccmLoaderSrc||e.src)?this.blockSameDomainScripts||this.checkIsExternal(t):(n=String(e.outerHTML),!this.allowedScriptMarkers.reduce(function(e,t){return e||n.includes(t)},!1)&&this.blockInlineScripts))},embeddingsBlockingScript:function(n,t){var i=this
if("text/x-ccm-loader"==n.type){var o=n.dataset.ccmLoaderGroup
if(o){var e=this.repository.filter(function(e){return e.scriptLoaderGroup==o}).filter(function(e){return i.isEmbeddingActiveForCurrentLocation(e)}).map(function(e){return e.id})
if(0==e.length)throw new Error("ScriptLoaderGroupNotAssociatedWithAnyEmbeddingException")
return e.filter(function(e){return!t.includes(e)})}}if(!this.blockEmbeddingScriptMarkers)return[]
if(this.inEval||!this.checkIsBlockableScript(n)||n.hasAttribute("data-ccm-injected"))return[]
var s,c=String(n.outerHTML),r=[]
for(s in this.blockEmbeddingScriptMarkers){var a=this.repository[s]
a&&0!=this.isEmbeddingActiveForCurrentLocation(a)&&!t.includes(s)&&this.blockEmbeddingScriptMarkers[s].reduce(function(e,t){return e||c.includes(t)||n.src.includes(t)},!1)&&r.push(s)}return r},processScriptForBlocking:function(e){var t=this,n=!1,i=t.getAllowedAndMandatoryEmbeddingIds(),o=[],s=[],c=!0
try{o=t.embeddingsBlockingScript(e,i),s=t.embeddingsBlockingScript(e,[])}catch(h){c=!1}var r,a,l,d,u,i=t.shouldBlockScript(e)
!o.length&&!i||e.hasAttribute("data-ccm-injected")||(r=(r="text/x-ccm-loader"==e.type&&e.dataset.ccmLoaderSrc||e.src)?String(r).trim().replace(/#.*$/i,"").replace(/\?.*/i,"?").replace(/\/(intl\/|releases\/|viewthroughconversion\/|www-widgetapi-)[^\/]+\//,"/$1…/"):String(e.innerHTML).trim().substring(1,1024).replace(/\s+/gi," "),e.id&&(r+="#"+e.id.trim()),e.className&&(r+="."+e.className.trim()),e["async"]&&(r+=":async"),e.defer&&(r+=":defer"),"text/x-ccm-loader"==e.type&&(r+=":loader"),t.checkIsCloakedScript(e)&&(r+=":cloaked"),r=p.hash(r),a=this.shouldBlockScriptAccordingToBlacklist(e),l=t.allowedScripts.includes(r),d=t.deniedScripts.includes(r),(o.length||!l||a)&&((u=e.cloneNode(!0))["async"]=e["async"],u.ccm_id=r,t.blockableScripts.push(u),t.blockNewScripts||d||t.isActive&&o.length||a)&&(e.setAttribute("data-ccm-id",r),e.setAttribute("data-ccm-type",e.type),e.type="text/x-blocked-script",n=!0,o.length&&!(i&&this.blockNewScripts&&!l||a)?(o.forEach(function(e){t.repository[e]}),u.ccmEmbeddings=o,u.ccmOriginalNode=e):s.length)),"text/x-ccm-loader"!=e.type&&!this.checkIsCloakedScript(e)||!c||n||(this.scriptLoaderQueue.push(e),this.executeScriptLoaderQueue())},processIframeForBlocking:function(n,e){var i,o,t,s,c,r,a,l,d,u,h,f
e="boolean"==typeof e&&e,0==this.blockIframes||!n.getAttribute("src")&&!n.dataset.ccmLoaderSrc||!p.isVisibleDOMNode(n)||n.ccm19ConsentGranted&&!e||(c="whitelist"==(i=this).iframeBlockMode,u=(u=this.contentBlockedUrl).replace(/&lang=[^&]+/,"&lang="+encodeURIComponent(this.locale)),f=(r=!!n.dataset.ccmSrc&&0==n.src.toLowerCase().indexOf(u.toLowerCase().split("?",1)[0]))&&0!=n.src.toLowerCase().indexOf(u.toLowerCase()),r&&0==this.iframes.includes(n)?(r=!1,n.src=n.dataset.ccmSrc):f&&this.iframes.includes(n)&&(l=u+"&url="+encodeURIComponent(n.dataset.ccmSrc.replace(/[#].*$/,"")),0<(n.ccm19BlockedByEmbeddings||[]).length&&(l+="&embedding="+encodeURIComponent(n.ccm19BlockedByEmbeddings[0])),n.src=l),r)||(o=String(n.outerHTML),a=r=!(f=[]),(t=n.dataset.ccmLoaderGroup)?0==(f=this.repository.filter(function(e){return e.scriptLoaderGroup==t}).filter(function(e){return i.isEmbeddingActiveForCurrentLocation(e)}).map(function(e){return e.id})).length&&(a=!0):f=this.repository.filter(function(e){return e.iframeBlockingStrings.reduce(function(e,t){return e||o.includes(t)||n.src.includes(t)},!1)}).filter(function(e){return i.isEmbeddingActiveForCurrentLocation(e)}).map(function(e){return e.id}),0<f.length?(s=this.getAllowedAndMandatoryEmbeddingIds(),c=f.reduce(function(e,t){return e||0==s.includes(t)},!1),r=f.reduce(function(e,t){return e||i.repository[t].hideIframesUntilConsent},r)):0==this.isConsentRequired()?c=!1:a?c=!0:0<this.iframeMarkers.length&&(a=this.iframeMarkers.reduce(function(e,t){return e||o.includes(t)||n.src.includes(t)},!1),c="whitelist"==this.iframeBlockMode?!a:a),("data:"==(a=n.src||n.dataset.ccmLoaderSrc).substring(0,5)||"about:"==a.substring(0,6)||this.rememberIframeConsent&&this.iframeConsentDomains.includes(p.extractDomain(a)))&&(c=!1),e&&(c=!0),delete n.ccm19ConsentGranted,n.dataset.ccmSrc=a,n.dataset.ccmDomain=p.extractDomain(a),l=u+"&url="+encodeURIComponent(a.replace(/[#].*$/,"")),0<f.length&&(l+="&embedding="+encodeURIComponent(f[0])),u=null,(d=this.findExistingIframeClone(n))?(d.dataset.ccmSrc=a,d.dataset.ccmDomain=p.extractDomain(a),d.src=l,u=d.ccm19IframePlaceholder||d):((h=n.cloneNode()).src=l,h.setAttribute("scrolling","auto"),h.style.opacity="",h.style.visibility="",(h=h.cloneNode()).ccm19BlockedByEmbeddings=f,h.ccm19OriginalIframe=n,u=r?((f=document.createElement("SPAN")).classList.add("ccm--iframe-placeholder"),h.ccm19IframePlaceholder=f):h,this.iframes=this.iframes.filter(function(e){return e!==n}),this.iframes.push(h),d=h),c?(n.src=l,this.blockIframes=!1,n.parentElement.insertBefore(u,n),n.parentElement.removeChild(n),this.blockIframes=!0):(delete n.dataset.ccmLoaderGroup,delete n.dataset.ccmLoaderSrc,delete n.dataset.ccmSrc,n.ccm19ConsentGranted=!0,n.src||(n.src=a,n.parentElement.insertBefore(n,n.nextElementSibling))),this.appendConsentSwitchToIframes&&this.appendConsentSwitchToIframe(n,!c))},preprocessMacroUrl:function(e){return this.tcfData.adTagsAutoAppend&&e.match(/https?:\/\/www\.awin1\.com\/[cpa][a-z]{4,9}\.php\?/i)&&(e+="&gdpr=${GDPR}&gdpr_consent=${GDPR_CONSENT_907}"),e},processLinkForMacros:function(e){var t,n,i,o,s
"ccmHref"in e.dataset||(t=this.preprocessMacroUrl(e.href)).includes("${GDPR")&&(n="__tcfapi"in window?window.__tcfapi:function(e,t,n,i){n(null,!1)},o=[],(i=t.match(/\$\{GDPR_CONSENT_[0-9]{1,10}\}/g))&&(o=i.map(function(e){return parseInt(e.substr(15))})),s=this,e.dataset.ccmHref=t,n("getTCData",2,function(n){e.href=n?t.replace(/\$\{GDPR(_CONSENT_[0-9]{1,10})?\}/g,function(e,t){return t?n.tcString:n.gdprApplies?"0":"1"}):t.replace(/\$\{GDPR(_CONSENT_([0-9]{1,10}))?\}/g,function(e,t){return t?"":s.behavior.noConsentRequired?"0":"1"})},o))},processImageForMacros:function(e){var t,n,i,o,s
"ccmSrc"in e.dataset||(t=this.preprocessMacroUrl(e.src)).includes("${GDPR")&&(n="__tcfapi"in window?window.__tcfapi:function(e,t,n,i){n(null,!1)},o=[],(i=t.match(/\$\{GDPR_CONSENT_[0-9]{1,10}\}/g))&&(o=i.map(function(e){return parseInt(e.substr(15))})),s=this,e.dataset.ccmSrc=t,n("getTCData",2,function(n){n?e.href=t.replace(/\$\{GDPR(_CONSENT_[0-9]{1,10})?\}/g,function(e,t){return t?n.tcString:n.gdprApplies?"0":"1"}):s.tcfData.enabled?e.src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'/%3E":e.src=t.replace(/\$\{GDPR(_CONSENT_([0-9]{1,10}))?\}/g,function(e,t){return t?"":s.behavior.noConsentRequired?"0":"1"})},o))},performBlockingActionsOnNode:function(e){if(e instanceof HTMLIFrameElement)this.processIframeForBlocking(e)
else if(e instanceof HTMLScriptElement)this.processScriptForBlocking(e)
else if("classList"in e&&e.classList.contains("ccm-cookie-declaration")&&0==e.children.length)this.insertCookieDeclaration()
else{this.tcfData.adTags&&(e instanceof HTMLImageElement?this.processImageForMacros(e):e instanceof HTMLAnchorElement&&e.hasAttribute("href")&&this.processLinkForMacros(e)),e.nodeType==Node.ELEMENT_NODE&&this.registerJavaScriptApiHandler(e)
for(var t=("children"in e?e.children:e.childNodes),n=0;n<t.length;n++)this.performBlockingActionsOnNode(t[n])}},observeDocument:function(){var o,e
!this.domWatcher&&((this.blockNewScripts||this.deniedScripts||this.blockEmbeddingScriptMarkers)&&window.addEventListener("beforescriptexecute",function(e){var t=e.target
"text/x-blocked-script"==t.type&&(t.setAttribute("data-ccm-type",t.type),e.preventDefault())},!0),(o=this).domWatcher=new MutationObserver(function(e,t){e.forEach(function(e){"attributes"==e.type&&e.target instanceof HTMLIFrameElement&&"src"==e.attributeName&&o.processIframeForBlocking(e.target),h(e.addedNodes).forEach(function(e){var t
o.performBlockingActionsOnNode(e),(e instanceof HTMLHtmlElement||e instanceof HTMLBodyElement)&&o.widgetInitialized&&(o.ownHeadElements.forEach(function(e){document.head&&e.parentElement!==document.head&&document.head.appendChild(e)}),document.body)&&o.container&&o.container.parentElement!==document.body&&(document.body.appendChild(o.container),t=document.getElementById("ccm-focus-helper--bottom"))&&document.body.appendChild(t),e.nodeType==Node.ELEMENT_NODE&&o.dispatchInternalEvent("domElementNodeAdded",e)}),h(e.removedNodes).forEach(function(t){o.container&&t===o.container?window.setTimeout(function(){var e
t.parentElement!==document.body&&(document.body.appendChild(t),e=document.getElementById("ccm-focus-helper--bottom"))&&document.body.appendChild(e)},1e3):o.ownHeadElements.includes(t)&&t.parentElement!==document.head&&document.head.appendChild(t)})})}),this.domWatcher.observe(document,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),window.addEventListener("message",function(e){return o.onPostMessage(e)}),this.consentCrossDomain||this.accountWideConsentSharing)&&(document.addEventListener("click",function(e){for(var t=("composedPath"in e?e.composedPath():[e.target]),n=t[0],i=0;i<t.length;++i)if("href"in t[i]){n=t[i]
break}for(;n&&"href"in n==0;)n=n.parentElement
n&&o.appendCrossDomainConsent(n)},!0),document.addEventListener("submit",function(e){"action"in e.target&&o.appendCrossDomainConsent(e.target)},!0),e=HTMLFormElement.prototype.submit,Object.defineProperty(HTMLFormElement.prototype,"submit",{configurable:!0,enumerable:!1,writable:!0,value:function(){o.appendCrossDomainConsent(this),e.call(this)}}))},handleHistoryStateChange:function(){this.callAsSoonAsSavingSettingsIsDone((function(){var e,t
0==this.isActive||this.partOfAdAndTrackingFreeNetwork||this.isBotBrowser()||this.consentGiven()||(e=this.isModalActive(),t=this.urlIsExempt(location.href),e&&t?(this.closeAllModals(),this.revokeAllPrivileges()):e||t||this.openWidget())}).bind(this))},onHistoryStateChanged:function(e){this.handleHistoryStateChange()},checkDomainMatch:function(e){var e=e.replace(/\.$/,""),t=this.mainMatchDomain.replace(/^https?:\/\//,"").replace(/[/ ?].*/,"").replace(/\.$/,"").replace(/^www\./,"")
return e.replace(/^www\./,"")==t||null!==this.getBaseDomain(e)},init:function(){if(!this.initialized){this.consentState={googleAdTechProviders:this.tcfData.enabled?p.mapObject(this.tcfData.googleATPs,function(){return!1}):{},tcfLegIntPurposes:this.tcfData.enabled?p.mapObject(this.tcfData.legIntPurposes,function(){return!1}):{},tcfLegIntVendors:this.tcfData.enabled&&this.tcfData.legIntEnabled?p.mapObject(p.filterObject(this.tcfData.vendor,function(e){return 0<e.pL.length}),function(){return!1}):{},tcfPurposes:this.tcfData.enabled?p.mapObject(this.tcfData.purposes,function(){return!1}):{},tcfSpecialFeatures:this.tcfData.enabled?p.mapObject(this.tcfData.specialFeatures,function(){return!1}):{},tcfVendors:this.tcfData.enabled?p.mapObject(this.tcfData.vendor,function(){return!1}):{}},this.onFocusIn=p.bindThis(this,this.onFocusIn),this.onTabKeyDown=p.bindThis(this,this.onTabKeyDown),this.onTabKeyDownOnce=p.bindThis(this,this.onTabKeyDownOnce),this.onWindowResize=p.bindThis(this,this.onWindowResize),this.onJavaScriptApiLinkClicked=p.bindThis(this,this.onJavaScriptApiLinkClicked)
var e=Math.random(),o=(this.shouldReport=0!==this.reportProbability&&e<=this.reportProbability,this.shouldReport&&this.wrapCookieSetter(),this),e=undefined
if(this.isActive&&this.mustMatchDomains&&!this.isPreview&&!(e=this.checkDomainMatch(location.hostname))&&(this.shouldReport=!1,this.isActive=!1),["filter","forEach","map","reduce"].forEach(function(t){Object.defineProperty(o.repository,t,{configurable:!1,enumerable:!1,writable:!1,value:function(){var e=p.objectValues(o.repository)
if(t in e&&"function"==typeof e[t])return e[t].apply(e,arguments)}})}),this.container=document.createElement("DIV"),this.container.classList.add("ccm-root"),p.toggleClass(this.container,"ccm--tcf-enabled",this.tcfData.enabled),p.toggleClass(this.container,"ccm--is-ie",p.isIE()),this.container.addEventListener("keyup",function(e){if(!(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey||e.isComposing))if(" "==e.key&&"A"==e.target.tagName&&"button"==e.target.role)e.preventDefault(),e.target.click()
else if("Escape"==e.key){for(var t,n=e.target;n&&"dialog"!=n.role;){if(n==o.container)return
n=n.parentNode}n&&(t=(t=n.getElementsByClassName("ccm-modal--close")[0])||n.getElementsByClassName("ccm-dismiss-button")[0])&&!t.disabled&&(e.preventDefault(),e.stopPropagation(),t.click())}}),0==this.isActive)!1===e?console.info("[CCM19] Frontend widget is not active on this domain (%s).",window.location.hostname):this.showFrontendWidgetOnlyIfEmbeddingsExist&&this.nonCmpEmbeddingCount?console.info("[CCM19] Frontend widget has no relevant embeddings."):console.info("[CCM19] Frontend widget is disabled.")
else{this.locale||(this.prioritizeLangAttribute?this.setLocaleUsingLangAttribute():this.setLocaleFromBrowserPreference(),this.locale)||(this.locale=this.fallbackLocale,this.widgetUrl=this.widgetUrls[this.fallbackLocale],this.widgetUrl===undefined&&(this.locale=Object.keys(this.widgetUrls)[0],this.widgetUrl=this.widgetUrls[this.locale])),this.setStorageNamespaceUsingUrlParameter()
e=this.getConsentStorage()
if(!1===e.consent&&2===e.gen&&0<(e.embeddings||[]).length&&this.saveSettingsInternal(this.getUniqueCookieId(),!1,[]),this.presetConsentState(),this.clickedButton=e.clickedButton||null,this.iframeConsentDomains="object"==typeof e.iframeConsentDomains&&e.iframeConsentDomains instanceof Array?e.iframeConsentDomains:[],this.observeDocument(),this.wrapElementInsertion(),this.protectNativeFunctions(),this.initHighPriorityEventListeners(),!p.hasGTMLayer("consent"))for(var t in this.repository)if(this.repository[t].gcm){p.sendGTag("consent","default",{ad_storage:"denied",analytics_storage:"denied",functionality_storage:"denied",personalization_storage:"denied",security_storage:"denied",ad_personalization:"denied",ad_user_data:"denied",wait_for_update:1e3})
break}if(!p.hasMsUETLayer("consent"))for(var t in this.repository)if(this.repository[t].mscm){this.tcfData.enabled&&p.sendMsUet("config","tcf",{enabled:"true"}),p.sendMsUet("consent","default",{ad_storage:"denied"})
break}this.injectCss(),this.injectJs(),this.initTcfStub(),this.injectPlugins()
var e=Math.round((e.updated||0)/10),n=this.consentCookieReset,i=null===this.consentLifetimeForPartialConsent||this.consentLifetimeForPartialConsent===this.consentLifetime||this.isFullConsentGiven()?this.consentLifetime:this.consentLifetimeForPartialConsent
this.consentGiven()&&!this.urlIsExempt(window.location.href)&&((0<i&&p.now/1e3-e)>86400*i||e<n&&n<=p.now/1e3)&&(this.forceOpenWidget=!0,this.requiresConsentUpdate=!0),this.partOfAdAndTrackingFreeNetwork&&(this.forceOpenWidget=!1,0!=this.consentGiven()&&!this.requiresConsentUpdate||this.callAsSoonAsTcfApiIsAvailableOrIfDisabled(function(){p.triggerCustomEvent(window,"ccm19WidgetOpened"),o.logOpenData()})),o.build(function(e){var t=!1,n=!1,i=(this.forceOpenWidget?(this.forceOpenWidget=!1,n=t=!0):this.isBotBrowser()||this.urlIsExempt(location.href)&&!this.consentGiven()?(this.revokeAllPrivileges(),this.settingsIconTarget="main"):this.behavior.noConsentRequired||this.partOfAdAndTrackingFreeNetwork?this.presetConsentState():0==this.consentGiven()&&(n=t=!0),p.isTopLevel()?undefined:-1)
n&&(e&&0<this.widgetDelayInMilliseconds?window.setTimeout(function(){o.openWidget(i)},this.widgetDelayInMilliseconds):this.openWidget(i)),document.body?this.loadScripts(t):window.addEventListener("DOMContentLoaded",function(){o.loadScripts(t)})})}this.initialized=!0}},pageCheckReport:function(){var n={},e=(n.c=this.getCookies().map(function(e){return e.name}),document.getElementsByTagName("script"))
n.s=[]
for(var t=0;t<e.length;++t){var i=e[t]
this.checkIsExternal(i.src)&&!i.hasAttribute("data-ccm-injected")&&n.s.push(i.src)}var o=document.getElementsByTagName("object")
for(n.o=[],t=0;t<o.length;++t){var s=o[t]
this.checkIsExternal(s.data)&&n.o.push(s.data)}for(o=document.getElementsByTagName("embed"),t=0;t<o.length;++t)s=o[t],this.checkIsExternal(s.src)&&n.o.push(s.src)
for(var c,o=document.getElementsByTagName("iframe"),t=0;t<o.length;++t)s=o[t],this.checkIsExternal(s.src)&&n.o.push(s.src)
try{n.ls=[]
for(var r=window.localStorage,t=0;t<r.length;++t)n.ls.push(r.key(t))}catch(a){}try{for(n.ss=[],r=window.sessionStorage,t=0;t<r.length;++t)n.ss.push(r.key(t))}catch(a){}try{n.as={},this.scripTracker&&(c=this.foundScriptCookies,this.blockableScripts.forEach(function(e){var t
"text/x-ccm-loader"==e.type&&e.dataset.ccmLoaderGroup||(t=e.ccm_id,n.as[t]={s:btoa(e.outerHTML.trim().replace(/\s+\n/g,"\n").replace(/\n\n+/g,"\n\n").substring(0,500)),c:e.src in c?Object.keys(c[e.src]):[]})}))}catch(a){}n.url=location.href.replace(/[?#].*$/,""),this.ajax(this.pageCheckUrl,{contentType:"application/json",body:n,method:"POST"})},triggerCron:function(){this.ajax(this.cronUrl,{method:"POST"})},cleanUpClientStorage:function(e){e="boolean"==typeof e&&e
var t,o=this,i={cookies:{},localStorage:{},sessionStorage:{}},s={cookies:{},localStorage:{},sessionStorage:{}},c=this.getCookies().map(function(e){return e.name}),r=Object.getOwnPropertyNames(window.localStorage),a=Object.getOwnPropertyNames(window.sessionStorage),l=!1
function n(e,i){e.assets.forEach(function(t){var e=[],n=null
switch(t.type){case o.consts.TYPE_COOKIE:e=c,n="cookies"
break
case o.consts.TYPE_LOCAL_STORAGE:e=r,n="localStorage"
break
case o.consts.TYPE_SESSION_STORAGE:e=a,n="sessionStorage"}n&&(t.glob?e.forEach(function(e){p.fnmatch(t.name,e)&&(i[n][e]=t.name)}):i[n][t.name]=t.name)})}for(t in this.repository)n(this.repository[t],i)
e?this.getEmbeddingsWithConsent().forEach(function(e){n(e,s)}):s=i,s.cookies.ccm_login_session="ccm_login_session",s.cookies.ccm_consent="ccm_consent",s.localStorage.ccm_consent="ccm_consent",s.sessionStorage.ccm_consent="ccm_consent"
var d=[window.location.hostname],u=window.location.hostname.match(/\.([^.]+\.[^.]+)$/)
u&&d.push(u[1]),c.forEach(function(t){var e=!!s.cookies[t],n=!i.cookies[t]
if(e||n&&0==o.deleteAllCookiesConfig)return!1
d.forEach(function(e){document.cookie=t+"=;domain="+e+";path=/;expires=Thu, 01 Jan 1970 00:00:00 UTC"}),document.cookie=t+"=;path=/;expires=Thu, 01 Jan 1970 00:00:00 UTC",l=!0}),r.forEach(function(e){var t=!!s.localStorage[e],n=!i.localStorage[e]
if(t||n&&0==o.deleteAllCookiesConfig)return!1
window.localStorage.removeItem(e),l=!0}),a.forEach(function(e){var t=!!s.sessionStorage[e],n=!i.sessionStorage[e]
if(t||n&&0==o.deleteAllCookiesConfig)return!1
window.sessionStorage.removeItem(e),l=!0}),this.deleteAllCookiesReload&&l&&window.location.reload(!0)},wrapElementInsertion:function(){var n=this,t=Node.prototype.appendChild,i=Node.prototype.insertBefore
Node.prototype.appendChild=function(e){return n.performBlockingActionsOnNode(e),t.call(this,e)},Node.prototype.insertBefore=function(e,t){return n.performBlockingActionsOnNode(e),i.call(this,e,t)},["after","before","append","prepend"].filter(function(e){return e in Element.prototype&&"function"==typeof Element.prototype[e]}).forEach(function(e){var t=Element.prototype[e]
Element.prototype[e]=function(){return h(arguments).filter(function(e){return e instanceof Node}).forEach(function(e){n.performBlockingActionsOnNode(e)}),t.apply(this,arguments)}})},wrapCookieSetter:function(){var c=this
"getOwnPropertyDescriptor"in Object&&"stack"in Error.prototype&&p.wrapProperty(HTMLDocument.prototype,"cookie",{set:function(e,t){try{var n,i=e.split("=",1)[0],o=(new Error).stack.trim().split("\n")
o.shift(),1<o.length&&/\/(js|jquery)\.cookie[._]/.test(o[0])&&o.shift(),0<o.length&&(n=o[0].match(/\b((?:https?|data):.*):[0-9]+:[0-9]+\b/))&&(n[1]in c.foundScriptCookies||(c.foundScriptCookies[n[1]]={}),c.foundScriptCookies[n[1]][i]=i)}catch(s){console.error("[CCM19] Error while tracing cookie in script: %s",s)}return t.call(this,e)}})},wrapHistoryApi:function(){var t=this,e=function(e){e.apply(this,h(arguments).slice(1)),t.handleHistoryStateChange()}
p.wrapProperty(History.prototype,"pushState",{value:e}),p.wrapProperty(History.prototype,"replaceState",{value:e})},protectNativeFunctions:function(){[{object:Array.prototype,properties:["reduce"]}].forEach(function(n){n.properties.forEach(function(e){var t=Object.getOwnPropertyDescriptor(n.object,e)
t&&t.configurable&&(t.configurable=!1,t.writable=!1,Object.defineProperty(n.object,e,t))})})},initHighPriorityEventListeners:function(){var t=this
function n(n){var e=n.type
t.checkIsManipulatedClick(n)||(t.highPriorityEventHandlers[e]||[]).forEach(function(e){for(var t=n.target;t&&t!==e.target;)t=t.parentElement
t===e.target&&e.handler(n,t)})}["click"].forEach(function(e){t.highPriorityEventHandlers[e]=[],document.addEventListener(e,n,{capture:!0})})},addHighPriorityEventListener:function(e,t,n){if(!(e in this.highPriorityEventHandlers))throw new Error("High priority event not available: "+e)
this.hasHighPriorityEventListener(e,t,n)||this.highPriorityEventHandlers[e].push({handler:n,target:t})},hasHighPriorityEventListener:function(e,t,n){return(this.highPriorityEventHandlers[e]||[]).some(function(e){return e.handler===n&&e.target===t})},_updateCookieDeclarationInner:function(e,n){n||(lang=navigator.language)
var i=this.getConsentStorage()
h(e.querySelectorAll(".ccm-cookie-declaration--consent-id")).forEach(function(e){e.textContent="ucid"in i?i.ucid:"—"}),h(e.querySelectorAll(".ccm-cookie-declaration--consent-date")).forEach(function(e){var t
"updated"in i?(t=new Date(100*i.updated),e.dateTime=t.toISOString(),e.textContent=t.toLocaleString(n)):e.textContent="—"}),h(e.querySelectorAll(".ccm-cookie-declaration--consent-state")).forEach(function(e){h(e.querySelectorAll("span[data-ccm-state]")).forEach(function(e){(i.clickedButton||"none")===e.getAttribute("data-ccm-state")?(e.hidden=!1,e.style.display="inline"):(e.hidden=!0,e.style.display="none")})})},updateCookieDeclaration:function(){var t=this
h(document.getElementsByClassName("ccm-cookie-declaration")).forEach(function(e){t._updateCookieDeclarationInner(e,e.getAttribute("lang"))})},insertCookieDeclaration:function(){var a,e,n,i,o,s
this.tasksRunning.insertCookieDeclaration||(a=this,(e=h(document.getElementsByClassName("ccm-cookie-declaration"))).length&&(this.tasksRunning.insertCookieDeclaration=!0,n=(e=e.map(function(e){var t
return e instanceof HTMLParagraphElement?(t=document.createElement("DIV"),p.applyAttributes(t,e),e.parentElement.insertBefore(t,e),e.parentElement.removeChild(e),t):e})).reduce(function(e,t){var n=t.getAttribute("data-lang")
return(n=n?n.replace("-","_"):a.locale)in e?e[n].push(t):e[n]=[t],e},Object.create(null)),i=this.cookieDeclarationUrl+"&lang=",o=Object.keys(n),s=0,o.forEach(function(e){var r=n[e],t=i+encodeURIComponent(e)
a.ajax(t,{method:"GET",success:function(e,t,n){var i=n.getResponseHeader("Content-Language")
try{var o=document.createRange(),s=(o.selectNode(r[0]),o.createContextualFragment(e))
a._updateCookieDeclarationInner(s,i)}catch(c){console.error("[CCM19] Failed to insert current consent state to cookie declaration table",c)}r.forEach(function(e){e.setAttribute("lang",i),e.classList.remove("ccm-cookie-declaration--error"),e.classList.add("ccm-cookie-declaration--loaded"),e.innerHTML="",e.appendChild(s.cloneNode(!0))
var t=e.getElementsByClassName("ccm-cookie-declaration--change-consent")[0]
t&&t.getElementsByTagName("a")[0].addEventListener("click",function(e){return a.onSettingsIconClicked(e)})})},failure:function(){r.forEach(function(e){e.classList.remove("ccm-cookie-declaration--loaded"),e.classList.add("ccm-cookie-declaration--error")}),console.error("[CCM19] Cooke declaration table for locale '%s' could not be loaded",e)},done:function(){++s==o.length&&(this.tasksRunning.insertCookieDeclaration=!1,0<document.querySelectorAll('.ccm-cookie-declaration:not([class*="ccm-cookie-declaration--"])').length)&&this.insertCookieDeclaration()}})})))}},window.CCM===undefined&&(0<=window.location.hash.indexOf("CCM19consent=")&&(t=(t=(t=(n=/(^#?|&)CCM19consent=([0-9a-z]+)\|([0-9a-z]+)\|([0-9a-f]+)\|([0-9a-f|]*)/).exec(window.location.hash))||n.exec(decodeURI(window.location.hash)))||n.exec(decodeURI(decodeURI(window.location.hash))))&&((n=p.getUrl(window.location,!0)).hash=n.hash.replace(/(^#?|&)CCM19consent=[a-z0-9A-F%|]*/,""),""==n.hash&&"replaceState"in history?history.replaceState(history.state,"",window.location.pathname+window.location.search):window.location.replace(n.href)),(s=new i({"versionId":"2004eeb94eaa2d0a2386634d8b2fbc4cc3058cd7","versionName":"2024.10.29","domainId":"05b965c","widgetUrls":{"de_DE":"https://ccm.firstname.de/ccm19/public/widget?apiKey=6d481a5a240a84811bc947cec1dae4b26002e9f693767247&domain=05b965c&gen=2&theme=c0f3b1e&lang=de_DE&v=1730786582"},"detailsUrls":{"de_DE":"https://ccm.firstname.de/ccm19/public/widget/details?apiKey=6d481a5a240a84811bc947cec1dae4b26002e9f693767247&domain=05b965c&gen=2&theme=c0f3b1e&lang=de_DE&v=1730786582"},"locale":null,"fallbackLocale":"de_DE","prioritizeLangAttribute":true,"l10n":{"de_DE":{"blockedContentAllowEmbedding":"Inhalt für \":embedding\" zulassen","blockedContentProviderDetails":"Details zum Anbieter","blockedContentShowExternalContent":"Externe Inhalte anzeigen"}},"statisticsUrl":"https://ccm.firstname.de/ccm19/public/statistics/consent?apiKey=6d481a5a240a84811bc947cec1dae4b26002e9f693767247&domain=05b965c&gen=2&theme=c0f3b1e","pageCheckUrl":"https://ccm.firstname.de/ccm19/public/page_check/report?apiKey=6d481a5a240a84811bc947cec1dae4b26002e9f693767247&domain=05b965c&gen=2&theme=c0f3b1e","cronUrl":"https://ccm.firstname.de/ccm19/public/cron?apiKey=6d481a5a240a84811bc947cec1dae4b26002e9f693767247&domain=05b965c&gen=2&theme=c0f3b1e","origin":"https://ccm.firstname.de","jsFiles":[],"cssFiles":["https://ccm.firstname.de/ccm19/public/app.css?apiKey=6d481a5a240a84811bc947cec1dae4b26002e9f693767247&domain=05b965c&gen=2&theme=c0f3b1e&v=1730217448"],"plugins":[],"isActive":true,"isPreview":false,"triggeringExtGtmEvents":true,"widgetDelayInMilliseconds":0,"deleteAllCookiesConfig":false,"deleteAllCookiesReload":false,"runMandatoryEmbeddingsWithoutConsent":true,"cookieLifetime":365,"cookieUseSecure":true,"consentStorageMethod":"localStorage","consentShareDomains":[],"consentCrossDomain":false,"accountWideConsentSharingDomains":[],"accountWideConsentSharing":false,"cookieDeclarationUrl":"https://ccm.firstname.de/ccm19/public/cookie-declaration?apiKey=6d481a5a240a84811bc947cec1dae4b26002e9f693767247&domain=05b965c&gen=2&theme=c0f3b1e","storageNamespace":"/","storageNamespaceUrlParameter":"","settingsIconEnabled":false,"settingsIconTarget":"purpose","repository":{"a35a749":{"id":"a35a749","name":"Google Adsense","vendor":"Google Ireland Limited","code":"<script async src=\"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8972032071969126\"\r\n     crossorigin=\"anonymous\"></script>","iframeBlockingStrings":[],"hideIframesUntilConsent":false,"dispatchLoadEventForIframes":true,"scriptLoaderGroup":"","excludeUrls":[],"excludeUrlsMode":"blacklist","purpose":"cdcbd7c","mandatory":false,"assets":[{"id":"43b06ab","name":"NID","type":"cookie","glob":false,"lifetime":"6 Monate","hours":4392},{"id":"25e0748","name":"google_experiment_mod*","type":"localStorage","glob":true,"lifetime":"persistent","hours":null},{"id":"16a18e9","name":"google_adsense_settings","type":"localStorage","glob":false,"lifetime":"persistent","hours":null},{"id":"077982e","name":"google_auto_fc_cmp_setting","type":"localStorage","glob":false,"lifetime":"persistent","hours":null},{"id":"75c7229","name":"goog_pem_mod","type":"localStorage","glob":false,"lifetime":"persistent","hours":null},{"id":"e658184","name":"GoogleAdServingTest","type":"cookie","glob":false,"lifetime":"Sitzung","hours":null},{"id":"e6e43e8","name":"google_pem_mod","type":"localStorage","glob":false,"lifetime":"persistent","hours":null}],"tcf":null},"40a4b3f":{"id":"40a4b3f","name":"Google Analytics","vendor":"Google Ireland Limited, Google Building Gordon House, 4 Barrow St, Dublin, D04 E5W5, Ireland","code":"<script async=\"async\" src=\"https://www.googletagmanager.com/gtag/js?id=UA-4119012-5\"></script>\r\n<script>\r\n    // declare standard config\r\n    var analyticsDefaultConfig = {\r\n        'anonymize_ip': true,\r\n        'cookie_prefix': '',\r\n        'cookie_domain': 'auto',\r\n        'cookie_expires': 182 * 24 * 60 * 60  // 182 days = 6 month; in seconds\r\n    }\r\n\r\n    // define placeholder/hook object for custom trackings\r\n    window.analyticsTrackings = window.analyticsTrackings || [];\r\n\r\n    // define analytics working array\r\n    window.dataLayer = window.dataLayer || [];\r\n\r\n    // define analytics functionality\r\n    function gtag() {\r\n        dataLayer.push(arguments);\r\n    }\r\n    gtag('js', new Date());\r\n\r\n    // if there are no custom trackings, push default config\r\n    // so the implicit analytics request will be send\r\n    if (window.analyticsTrackings.length == 0) {\r\n        window.analyticsTrackings.push({\r\n            'cmd': 'config',\r\n            'id': 'UA-4119012-5',\r\n            'config': analyticsDefaultConfig\r\n        });\r\n    }\r\n\r\n    // iterate over all available trackings\r\n    for (x in window.analyticsTrackings) {\r\n\r\n        // get the current tracking\r\n        let tracking = window.analyticsTrackings[x];\r\n\r\n        // check if current tracking has 'anonymize_ip' property\r\n        if (typeof tracking.config.anonymize_ip === 'undefined') {\r\n            // combine/merge the given config and the global standard config\r\n            //tracking.config = {...analyticsDefaultConfig, ...tracking.config}\r\n            tracking.config = Object.assign(tracking.config, analyticsDefaultConfig);\r\n        }\r\n\r\n        // track the event/page view\r\n        gtag(tracking.cmd, tracking.id, tracking.config);\r\n    }\r\n\r\n    // define google tag manager variables\r\n    var googletag = googletag || {};\r\n    googletag.cmd = googletag.cmd || [];\r\n\r\n    // track event after a period of thirty seconds\r\n    setTimeout(\"gtag('event','Mehr als 30 Sekunden', {'event_category': 'Interessierte User'})\", 30000);\r\n</script>\r\n","iframeBlockingStrings":[],"hideIframesUntilConsent":false,"dispatchLoadEventForIframes":true,"scriptLoaderGroup":"","excludeUrls":[],"excludeUrlsMode":"blacklist","purpose":"a717ff5","mandatory":false,"assets":[{"id":"9e0d50a","name":"_ga*","type":"cookie","glob":true,"lifetime":"24 Monate","hours":17568},{"id":"b5a15b7","name":"_gat*","type":"cookie","glob":true,"lifetime":"1 Minute","hours":1},{"id":"41b02ab","name":"_gid*","type":"cookie","glob":true,"lifetime":"24 Stunden","hours":24},{"id":"1c5e412","name":"_gd*","type":"cookie","glob":true,"lifetime":"Session","hours":null},{"id":"d79c73e","name":"__gads","type":"cookie","glob":false,"lifetime":"","hours":null}],"tcf":null},"eb22f03":{"id":"eb22f03","name":"CCM19 Cookie Consent Manager","vendor":"Papoo Software & Media GmbH","code":"","iframeBlockingStrings":[],"hideIframesUntilConsent":false,"dispatchLoadEventForIframes":true,"scriptLoaderGroup":"","excludeUrls":[],"excludeUrlsMode":"blacklist","purpose":"41ba25c","mandatory":true,"assets":[{"id":"cf235a4","name":"ccm_consent","type":"cookie","glob":false,"lifetime":"365 Tage","hours":8760}],"tcf":null}},"tcfData":{"enabled":false,"legIntEnabled":false,"compatVersion":"2.2","purposes":[],"legIntPurposes":[],"specialFeatures":[],"stacks":[10],"vendor":[],"gvlVersion":3,"vlVersion":80,"tcfVersion":5,"googleACMode":false,"googleATPs":[],"disclosureUrlTemplate":"https://ccm.firstname.de/ccm19/public/tcf-disclosure/:VENDOR?apiKey=6d481a5a240a84811bc947cec1dae4b26002e9f693767247&domain=05b965c&gen=2&theme=c0f3b1e&lang=:LANG","adTags":false,"adTagsAutoAppend":false,"googleAdvertiserConsentMode":true},"behavior":{"respectDoNotTrack":false,"noConsentRequired":false},"partOfAdAndTrackingFreeNetwork":false,"jsApiFeatures":{"embeddingConsentState":false},"evalInlineScripts":true,"blockIframes":false,"rememberIframeConsent":false,"appendConsentSwitchToIframes":false,"iframeBlockMode":"whitelist","blockNewScripts":false,"blockSameDomainScripts":true,"blockInlineScripts":true,"blockEmbeddingScriptMarkers":{"a35a749":["pagead2.googlesyndication.com"],"40a4b3f":["google-analytics","analytics.js","gtag.js"]},"deniedScripts":[],"allowedScripts":[],"allowedScriptMarkers":[],"deniedScriptMarkers":[],"iframeMarkers":[],"country":"DE","exemptUrls":["https://www.firstname.de/Impressum/","https://www.firstname.de/Datenschutz/"],"scripTracker":false,"mustMatchDomains":false,"mainMatchDomain":"https://www.firstname.de","detectCloakedScripts":false,"selfUrlPattern":"https://ccm.firstname.de/ccm19/public/ccm19.js*","consts":{"MODE_WHITELIST":"whitelist","TYPE_COOKIE":"cookie","TYPE_LOCAL_STORAGE":"localStorage","TYPE_SESSION_STORAGE":"sessionStorage"},"contentBlockedUrl":"https://ccm.firstname.de/ccm19/public/x-content-blocked.html?apiKey=6d481a5a240a84811bc947cec1dae4b26002e9f693767247&domain=05b965c&gen=2&theme=c0f3b1e&lang=de_DE&v=1730786582","cronProbability":0.23637557452396585,"reportProbability":0.23637557452396585,"manipulationPrevention":true,"showFrontendWidgetOnlyIfEmbeddingsExist":false,"nonCmpEmbeddingCount":2,"consentCookieReset":1718636787,"consentLifetime":0,"consentLifetimeForPartialConsent":null},t)).isActive&&(s.cleanUpClientStorage(),window.addEventListener("ccm19WidgetLoaded",function(){s.cleanUpClientStorage(!0)}),n={version:{get:function(){return s.versionName},enumerable:!0},consent:{get:function(){return s.consentGiven()},enumerable:!0},fullConsentGiven:{get:function(){return s.isFullConsentGiven()},enumerable:!0},ucid:{get:function(){return this.consent?s.getUniqueCookieId():null},enumerable:!0},acceptedCookies:{get:function(){var n=[]
return s.getAllowedEmbeddingIds().forEach(function(e){var t=s.repository[e]
t&&t.assets.forEach(function(e){n.includes(e.name)||"cookie"==e.type&&n.push(e.name)})}),this.consent?n:[]},enumerable:!0},acceptedEmbeddings:{get:function(){var n=[]
return s.getAllowedEmbeddingIds().forEach(function(e){var t=s.repository[e]
t&&n.push(Object.create({},{id:{value:t.id,writable:!0,enumerable:!0},name:{value:t.name,writable:!0,enumerable:!0},_tcf:{value:t.tcf,writable:!0,enumerable:!1}}))}),this.consent?n:[]},enumerable:!0},consentLanguage:{get:function(){return s.getConsentLanguage()}},primaryCountry:{get:function(){return s.country}},crossDomainConsentString:{get:function(){return s.consentGiven()?s.buildCrossDomainConsent():""},enumerable:!0},consentRequired:{get:function(){return!s.behavior.noConsentRequired},enumerable:!0},openWidget:{value:function(){s.openWidget()},enumerable:!0},closeWidget:{value:function(){s.closeWidget()},enumerable:!0},openControlPanel:{value:function(){s.openControlPanel()},enumerable:!0},closeControlPanel:{value:function(){s.closeControlPanel()},enumerable:!0},openDetailsWindowAtEmbedding:{value:function(e){if("string"!=typeof e)throw new TypeError("embeddingId is not a string")
if(!(e in s.repository))throw new Error('Embedding "'+e+'" does not exist')
s.showEmbeddingDetails(e)},enumerable:!0},openDetailsWindowAtPurpose:{value:function(e){var t=p.uniqueValues(s.repository.map(function(e){return e.purpose}))
if("string"!=typeof e)throw new TypeError("purposeId is not a string")
if(!t.includes(e))throw new Error('Purpose "'+e+"\" either does not exist or isn't available in this configuration")
s.showPurposeDetails(e)},enumerable:!0},openDetailsWindow:{value:function(){s.openDetailsWindow()},enumerable:!0},closeDetailsWindow:{value:function(){s.closeDetailsWindow()},enumerable:!0},navigate:{value:function(e,t,n){e=s.withCrossDomainConsent(e)
var i=(n?window.top:window).location
t?i.replace(e):i.assign(e)},enumerable:!0},availableLocales:{value:function(){return Object.keys(s.widgetUrls)},enumerable:!0},switchLocale:{value:function(e){s.switchLocale(e)},enumerable:!0},_tcfInfo:{get:function(){return{consent:s.getTcfConsentInfo(),repository:s.tcfData}}},toString:{value:function(){return"[namespace CCM]"}}},s.partOfAdAndTrackingFreeNetwork&&p.assign(n,{denyAllPrivileges:{value:function(){this.revokeAllPrivileges()},enumerable:!0},grantAllPrivileges:{value:function(){s.clickedButton="acceptAll",s.grantAllPrivileges(),s.saveSettings(),s.callAsSoonAsSavingSettingsIsDone(function(){s.callAsSoonAsTcfApiIsAvailableOrIfDisabled(function(){p.triggerCustomEvent(window,"ccm19WidgetClosed")})})},enumerable:!0},revokeAllPrivileges:{value:function(){s.clickedButton="decline",s.iframeConsentDomains=[],s.revokeAllPrivileges(),s.saveSettings(),s.callAsSoonAsSavingSettingsIsDone(function(){s.callAsSoonAsTcfApiIsAvailableOrIfDisabled(function(){p.triggerCustomEvent(window,"ccm19WidgetClosed")})})},enumerable:!0},requiresConsentUpdate:{get:function(){return 0==this.consent||s.requiresConsentUpdate},enumerable:!0},embeddings:{enumerable:!0,get:function(){return s.repository.map(function(e){var t={id:e.id,name:e.name,vendor:e.vendor,l10n:JSON.parse(JSON.stringify(e.l10n)),assets:e.assets.map(function(e){return{name:e.name,type:e.type,l10n:JSON.parse(JSON.stringify(e.l10n))}})}
return t.l10n._=t.l10n[s.fallbackLocale],t.assets.forEach(function(e){e.l10n._=e.l10n[s.fallbackLocale]}),t})}},tcf:{value:Object.create(null,{enabled:{enumerable:!0,value:s.tcfData.enabled},stacks:{enumerable:!0,get:function(){return 0==this.enabled?[]:s.tcfData.stacks}},vendors:{enumerable:!0,get:function(){return 0==this.enabled?[]:Object.keys(s.tcfData.vendor).map(function(e){var t=s.tcfData.vendor[e]
return{id:parseInt(e),name:t.n,flexiblePurposes:t.pF,legitimateInterestPurposes:t.pL,purposes:t.p,specialPurposes:t.sp}},[])}},customVendors:{enumerable:!0,get:function(){return p.uniqueValues(s.repository.reduce(function(e,t){return t.tcf||e.push(t.vendor),e},[])).sort(function(e,t){return e.localeCompare(t)})}}}),enumerable:!0}}),s.jsApiFeatures.embeddingConsentState&&p.assign(n,{setEmbeddingConsentState:{value:function(e){var t,n=!1
for(t in e){var i,o=s.repository[t]
o&&(i=!!e[t]||o.mandatory,o.consent!==i)&&(o.consent=i,s.selectEmbedding(o),n=!0)}n&&(s.clickedButton="save",s.saveSettings(),s.callAsSoonAsSavingSettingsIsDone(function(){s.callAsSoonAsTcfApiIsAvailableOrIfDisabled(function(){p.triggerCustomEvent(window,"ccm19WidgetClosed")})}))},enumerable:!0}}),window.CCM=Object.create(null,n),"clickskeksLegacy"in s)&&(window.Clickskeks=Object.create(null,{getInfo:{value:function(){return window.CCM.version},enumerable:!0},showConsent:{value:function(){window.CCM.openWidget()},enumerable:!0},acceptCategories:{value:function(e){var n={statistics:"a717ff5",preference:"7c19e32",marketing:"6cd2721",unclassified:"15c61c3"}
e.forEach(function(e){var t=n[e]||null
t&&s.selectPurpose(t,!0)}),s.saveSettings(),s.callAsSoonAsSavingSettingsIsDone(function(){s.callAsSoonAsTcfApiIsAvailableOrIfDisabled(function(){p.triggerCustomEvent(window,"ccm19WidgetClosed")})})},enumerable:!0},getCurrentAllowedConfig:{value:function(){var e=function(n){return 0!=s.repository.reduce(function(e,t){return e||t.purpose==n},!1)&&s.repository.reduce(function(e,t){return e&&(t.purpose!=n||t.consent)},!0)}
return{necessary:!0,statistics:e("a717ff5"),preference:e("7c19e32"),marketing:e("6cd2721"),unclassified:e("15c61c3")}},enumerable:!0},optOut:{value:function(){s.iframeConsentDomains=[],s.revokeAllPrivileges(),s.saveSettings(),s.callAsSoonAsSavingSettingsIsDone(function(){s.callAsSoonAsTcfApiIsAvailableOrIfDisabled(function(){p.triggerCustomEvent(window,"ccm19WidgetClosed")})})},enumerable:!0},buildDisclaimer:{value:function(e){var t=document.getElementById(e)
t&&(t.classList.add("ccm-cookie-declaration"),s.insertCookieDeclaration())},enumerable:!0},buildDisclaimerWithClass:{value:function(e){var t=h(document.getElementsByClassName(e))
0<t.length&&(t.forEach(function(e){e.classList.add("ccm-cookie-declaration")}),s.insertCookieDeclaration())},enumerable:!0},addAllowedConfigChangedCallback:{value:function(e,t){"function"!=typeof e?console.error("Invalid argument, callback function expected"):(t&&e(this.getCurrentAllowedConfig()),s.clickskeksLegacy.allowedConfigChangeCallbacks.push(e))},enumerable:!0},setAllowedConfigChangedCallback:{value:function(e,t){"function"!=typeof e?console.error("Invalid argument, callback function expected"):(this.removeAllAllowedConfigChangedCallbacks(),s.clickskeksLegacy.allowedConfigChangeCallbacks.push(e))},enumerable:!0},removeAllowedConfigChangedCallback:{value:function(t){s.clickskeksLegacy.allowedConfigChangeCallbacks=s.clickskeksLegacy.allowedConfigChangeCallbacks.filter(function(e){return e!==t})},enumerable:!0},removeAllAllowedConfigChangedCallbacks:{value:function(){s.clickskeksLegacy.allowedConfigChangeCallbacks=[]},enumerable:!0},toString:{value:function(){return"[namespace Clickskeks]"}}})),0<s.cronProbability&&Math.random()<=s.cronProbability&&s.triggerCron(),s.shouldReport)&&window.addEventListener("load",function(){window.setTimeout(function(){s.pageCheckReport()},501)})}()
