PageSourceSearch

https://eglise.catholique.fr/wp-content/cache/min/2/wp-content/plu…mplianz-e5ccb285ea6c4d673d3334805562ca45.js

js catholique.fr collected 2026-09-24 08:57:11 UTC 51,848 bytes, 210 lines download raw bytes

1'use strict';function cmplz_create_element(el,content){let obj=document.createElement(el);obj.innerHtml=content;return obj}
2function cmplz_add_event(event,selector,callback){document.addEventListener(event,e=>{if(e.target.closest(selector)){callback(e)}})}
3function cmplz_is_hidden(el){return(el.offsetParent===null)}
4function cmplz_html_decode(input){var doc=new DOMParser().parseFromString(input,"text/html");return doc.documentElement.textContent}
5document.querySelectorAll('.cmplz-consent-area.cmplz-placeholder').forEach(cmplzConsentArea=>{cmplzConsentArea.addEventListener('click',e=>{let container=e.target;if(!container.classList.contains('cmplz-consent-area')){container=e.target.closest('.cmplz-consent-area.cmplz-placeholder')}
6if(container){let consentedService=container.getAttribute('data-service');cmplz_set_service_consent(consentedService,!0);cmplzLoadConsentAreaContent(!1,consentedService);cmplz_enable_category(null,consentedService);cmplz_set_banner_status('dismissed')}});document.addEventListener("cmplz_enable_category",function(consentData){var consentedCategory=consentData.detail.category;var consentedService=consentData.detail.service;cmplzLoadConsentAreaContent(consentedCategory,consentedService)})});function cmplzLoadConsentAreaContent(consentedCategory,consentedService){document.querySelectorAll('.cmplz-consent-area.cmplz-placeholder').forEach(obj=>{let category=obj.getAttribute('data-category');let service=obj.getAttribute('data-service');let postId=obj.getAttribute('data-post_id');let blockId=obj.getAttribute('data-block_id');if(consentedCategory===category||consentedService===service){var request=new XMLHttpRequest();request.open('GET',complianz.url+'consent-area/'+postId+'/'+blockId,!0);request.setRequestHeader('Content-type','application/json');request.send();obj.classList.remove('cmplz-placeholder');request.onload=function(){obj.innerHTML=JSON.parse(request.response);obj.querySelectorAll('script').forEach(scriptEl=>{cmplz_run_script(scriptEl.innerHTML,category,service,'inline',scriptEl)})}}})}
7document.addEventListener('cmplz_manage_consent_container_loaded',function(e){let url=window.location.href;if(url.indexOf('#')!=-1){let end_pos=url.lastIndexOf("?")!=-1?url.lastIndexOf("?"):undefined;var anchor=url.substring(url.indexOf("#")+1,end_pos);const element=document.getElementById(anchor);if(element){const y=element.getBoundingClientRect().top+window.pageYOffset-200;window.scrollTo({top:y,behavior:'smooth'})}}});complianz.locale=complianz.locale+'&token='+Math.random().toString(36).replace(/[^a-z]+/g,'').substr(0,5);(function(){if(typeof window.CustomEvent==='function')return!1;function CustomEvent(event,params){params=params||{bubbles:!1,cancelable:!1,detail:undefined};var evt=document.createEvent('CustomEvent');evt.initCustomEvent(event,params.bubbles,params.cancelable,params.detail);return evt}
8CustomEvent.prototype=window.Event.prototype;window.CustomEvent=CustomEvent})();let cmplz_banner;let cmplz_banner_container=document.getElementById('cmplz-cookiebanner-container');let cmplz_manage_consent_button;let cmplz_waiting_inline_scripts=[];let cmplz_waiting_scripts=[];let cmplz_fired_scripts=[];let cmplz_placeholder_class_index=0;let cmplz_all_scripts_hook_fired=!1;let cmplz_consent_stored_once=!1;let cmplz_fired_category_events=['functional'];let cmplz_fired_service_events=[];let cmplz_categories=['functional','preferences','statistics','marketing',];window.cmplz_get_cookie=function(name){if(typeof document==="undefined"){return""}
9name=complianz.prefix+name;const value="; "+document.cookie;const parts=value.split("; "+name+"=");if(parts.length===2){return parts.pop().split(";").shift()}
10return""};window.cmplz_set_cookie=function(name,value,use_prefix){if(typeof document==='undefined'){return}
11if(typeof use_prefix==='undefined'){use_prefix=!0}
12let secure=";secure";let date=new Date();date.setTime(date.getTime()+(complianz.cookie_expiry*24*60*60*1000));let expires=";expires="+date.toGMTString();if(window.location.protocol!=="https:")secure='';let domain=cmplz_get_cookie_domain();if(domain.length>0){domain=";domain="+domain}
13let prefix='';if(use_prefix){prefix=complianz.prefix}
14document.cookie=prefix+name+"="+value+";SameSite=Lax"+secure+expires+domain+";path="+cmplz_get_cookie_path()}
15window.cmplz_in_array=function(needle,haystack){let length=haystack.length;for(let i=0;i<length;i++){if(haystack[i]==needle)return!0}
16return!1}
17window.cmplz_highest_accepted_category=function(){var consentedCategories=cmplz_accepted_categories();if(cmplz_in_array('marketing',consentedCategories)){return'marketing'}
18if(cmplz_in_array('statistics',consentedCategories)){return'statistics'}
19if(cmplz_in_array('preferences',consentedCategories)){return'preferences'}
20return'functional'}
21function cmplz_set_category_as_body_class(){let classList=document.body.className.split(/\s+/);for(let i=0;i<classList.length;i++){if(classList[i].indexOf('cmplz-')!==-1&&classList[i]!=='cmplz-document'){document.body.classList.remove(classList[i])}}
22let cats=cmplz_accepted_categories();
22for(let i in cats){if(cats.hasOwnProperty(i)){document.body.classList.add('cmplz-'+cats[i])}}
23let services=cmplz_get_all_service_consents();for(let service in services){if(services.hasOwnProperty(service)&&services[service]){document.body.classList.add('cmplz-'+service)}}
24document.body.classList.add('cmplz-'+complianz.region);document.body.classList.add('cmplz-'+complianz.consenttype);let event=new CustomEvent('cmplz_set_category_as_bodyclass');document.dispatchEvent(event)}
25function cmplz_append_css(css){let head=document.getElementsByTagName('head')[0];let style=document.createElement('style');style.setAttribute('type','text/css');if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}
26head.appendChild(style)}
27function cmplz_load_css(path){let targetObj=document.createElement("link")
28targetObj.setAttribute("rel","stylesheet")
29targetObj.setAttribute("type","text/css")
30targetObj.setAttribute("href",path)
31document.getElementsByTagName("head")[0].appendChild(targetObj)}
32function cmplz_run_script(script,category,service,type,sourceObj){let targetObj=document.createElement("script");if(type!=='inline'){targetObj.setAttribute("src",script)}else{if(typeof script!=='string'){script=script.innerHTML}
33targetObj.innerHTML=[script,'cmplzScriptLoaded();'].join('\n')}
34if(script.includes("import")){targetObj.setAttribute("type","module")}
35if(cmplz_in_array(script,cmplz_fired_scripts)){return}
36cmplzCopyAttributes(sourceObj,targetObj);try{if(type!=='inline'){targetObj.onload=function(){cmplz_run_after_all_scripts(category,service);cmplz_maybe_run_waiting_scripts(script,category,service,sourceObj)}}else{window.cmplzScriptLoaded=function(){cmplz_run_after_all_scripts(category,service);cmplz_maybe_run_waiting_scripts(script,category,service,sourceObj)}}
37let header=document.getElementsByTagName("head")[0];header.appendChild(targetObj)}catch(exception){cmplz_run_after_all_scripts(category,service);throw "Something went wrong "+exception+" while loading "+script}}
38function cmplz_maybe_run_waiting_scripts(script,category,service,sourceObj){let waitingScript=cmplz_get_waiting_script(cmplz_waiting_scripts,script);if(waitingScript){cmplz_run_script(waitingScript,category,service,'src',sourceObj)}
39let waiting_inline_script=cmplz_get_waiting_script(cmplz_waiting_inline_scripts,script);if(waiting_inline_script){cmplz_run_script(waiting_inline_script,category,service,'inline',sourceObj)}}
40function cmplz_set_blocked_content_container(){document.querySelectorAll('.cmplz-image').forEach(obj=>{if(obj.classList.contains('cmplz-processed')){return}
41obj.classList.add('cmplz-processed');let service=obj.getAttribute('data-service');let category=obj.getAttribute('data-category');let blocked_image_container=obj.parentElement;blocked_image_container.classList.add('cmplz-blocked-content-container');let curIndex=blocked_image_container.getAttribute('data-placeholder_class_index');if(obj.getAttribute('loading')==='lazy'){obj.removeAttribute('loading');obj.setAttribute('data-deferlazy',1)}
42if(curIndex==null){cmplz_placeholder_class_index++;blocked_image_container.classList.add('cmplz-placeholder-'+cmplz_placeholder_class_index);blocked_image_container.classList.add('cmplz-blocked-content-container');blocked_image_container.setAttribute('data-placeholder_class_index',cmplz_placeholder_class_index);cmplz_insert_placeholder_text(blocked_image_container,category,service)}});document.querySelectorAll('.cmplz-placeholder-element').forEach(obj=>{if(obj.classList.contains('cmplz-processed')){return}
43obj.classList.add('cmplz-processed');let service=obj.getAttribute('data-service');let category=obj.getAttribute('data-category');let blocked_content_container;if(obj.classList.contains('cmplz-iframe')){if(obj.getAttribute('loading')==='lazy'){obj.removeAttribute('loading');obj.setAttribute('data-deferlazy',1)}
44blocked_content_container=obj.parentElement}else{blocked_content_container=obj}
45let curIndex=blocked_content_container.getAttribute('data-placeholder_class_index');if(curIndex==null){cmplz_placeholder_class_index++;blocked_content_container.classList.add('cmplz-placeholder-'+cmplz_placeholder_class_index);blocked_content_container.classList.add('cmplz-blocked-content-container');blocked_content_container.setAttribute('data-placeholder_class_index',cmplz_placeholder_class_index);cmplz_insert_placeholder_text(blocked_content_container,category,service);let src=obj.getAttribute('data-placeholder-image');if(src&&typeof src!=='undefined'&&src.length){src=src.replace('url(','').replace(')','').replace(/\"/gi,"");cmplz_append_css('.cmplz-placeholder-'+cmplz_placeholder_class_index+' {background-image: url('+src+') !important;}');cmplz_set_blocked_content_container_aspect_ratio(obj,src,cmplz_placeholder_class_index)}}});if(cmplz_has_consent('statistics')){cmplz_enable_category('statistics')}
46if(cmplz_has_consent('marketing')){cmplz_enable_category('marketing')}}
47function cmplz_insert_placeholder_text(container,category,service){if(!container.querySelector(".cmplz-blocked-content-notice")){let placeholder_text=complianz.placeholdertext;category=category?category:'marketing';let body;if(typeof placeholder_text!=='undefined'){if(complianz.clean_cookies==1){let service_nicename=service?service.replace('-',' '):'';service_nicename=service_nicename.charAt(0).toUpperCase()+service_nicename.slice(1);placeholder_text=placeholder_text.replace('{service}',service_nicename);
47body=cmplz_create_element('div',placeholder_text);body.innerHTML=placeholder_text;body.classList.add('cmplz-blocked-content-notice');let btn=body.querySelector('button');btn.setAttribute('data-service',service);btn.setAttribute('data-category',category);btn.setAttribute('aria-label',complianz.aria_label.replace('{service}',service_nicename));let pageLinks=complianz.page_links[complianz.region];let link=body.querySelector('.cmplz-links a');if(pageLinks&&pageLinks.hasOwnProperty('cookie-statement')){link.setAttribute('href',pageLinks['cookie-statement'].url);if(link.innerText==='{title}'){link.innerText=pageLinks['cookie-statement'].title}}}else{let btn=cmplz_create_element('button','');let category_nicename='marketing';if(complianz.categories.hasOwnProperty(category)){category_nicename=complianz.categories[category]}
48placeholder_text=placeholder_text.replace('{category}',category_nicename);btn.innerText=placeholder_text;btn.classList.add('cmplz-blocked-content-notice');btn.classList.add('cmplz-accept-category');btn.classList.add('cmplz-accept-'+category);btn.setAttribute('data-service',service);btn.setAttribute('data-category',category);btn.setAttribute('aria-label',complianz.aria_label.replace('{category}',category));body=btn}
49if(container.tagName!=='VIDEO'){container.appendChild(body)}else{container.parentElement.appendChild(body)}}}}
50function cmplz_set_blocked_content_container_aspect_ratio(container,src,placeholder_class_index){if(container==null)return;let blocked_content_container=container.parentElement;let img=new Image();img.addEventListener("load",function(){let imgWidth=this.naturalWidth;let imgHeight=this.naturalHeight;if(imgWidth===0)imgWidth=1;let w=blocked_content_container.clientWidth;let h=imgHeight*(w/imgWidth);let heightCSS='';if(src.indexOf('placeholder.jpg')===-1){heightCSS='height:'+h+'px;'}
51cmplz_append_css('.cmplz-placeholder-'+placeholder_class_index+' {'+heightCSS+'}')});img.src=src}
52var cmplzResizeTimer;window.addEventListener('resize',function(event){clearTimeout(cmplzResizeTimer);cmplzResizeTimer=setTimeout(cmplz_set_blocked_content_container,500)},!0);if(complianz.block_ajax_content==1){setInterval(function(){cmplz_set_blocked_content_container()},2000)}
53function cmplz_has_blocked_scripts(){let scriptElements=document.querySelectorAll('script[data-category], script[data-service]');return scriptElements.length>0}
54function cmplz_enable_category(category,service){if(complianz.tm_categories==1&&category!==''){cmplz_run_tm_event(category)}
55service=typeof service!=='undefined'?service:'do_not_match';if(category==='')category='do_not_match';if(category==='functional'){return}
56if(category==='marketing'){cmplz_set_integrations_cookies()}
57let selector;if(service!=='do_not_match'){selector='.cmplz-blocked-content-notice [data-service="'+service+'"]'}else{selector=complianz.clean_cookies!=1?'.cmplz-blocked-content-notice.cmplz-accept-'+category:'.cmplz-blocked-content-notice [data-category="'+category+'"]'}
58document.querySelectorAll(selector).forEach(obj=>{let blockedElementService=obj.getAttribute('data-service');if(obj.parentNode.classList.contains('cmplz-blocked-content-notice')){obj=obj.parentNode}
59if(!cmplz_is_service_denied(blockedElementService)){obj.parentNode.removeChild(obj)}});document.querySelectorAll('[data-category="'+category+'"], [data-service="'+service+'"]').forEach(obj=>{let elementService=obj.getAttribute('data-service');if(cmplz_is_service_denied(elementService)){return}
60if(obj.getAttribute('data-category')==='functional'){return}
61if(obj.classList.contains('cmplz-activated')){return}
62let tagName=obj.tagName;if(tagName==='LINK'){obj.classList.add('cmplz-activated');let src=obj.getAttribute('data-href');cmplz_load_css(src,category)}else if(tagName==='IMG'){obj.classList.add('cmplz-activated');let src=obj.getAttribute('data-src-cmplz');obj.setAttribute('src',src);if(obj.getAttribute('data-deferlazy')){obj.setAttribute('loading','lazy')}
63cmplz_remove_placeholder(obj)}else if(tagName==='IFRAME'){obj.classList.add('cmplz-activated');let src=obj.getAttribute('data-src-cmplz');let srcAttribute=obj.getAttribute('data-cmplz-target')?obj.getAttribute('data-cmplz-target'):'src';let autoplay=cmplz_get_url_parameter(obj.getAttribute(srcAttribute),'autoplay');if(autoplay==='1')src=src+'&autoplay=1';if(obj.getAttribute('data-deferlazy')){obj.setAttribute('loading','lazy')}
64obj.addEventListener('load',()=>{cmplz_remove_placeholder(obj)});obj.setAttribute(srcAttribute,src)}else if(obj.classList.contains('cmplz-placeholder-element')){obj.classList.add('cmplz-activated');let cssIndex=obj.getAttribute('data-placeholder_class_index');obj.classList.remove('cmplz-blocked-content-container');obj.classList.remove('cmplz-placeholder-'+cssIndex)}});let scriptElements=document.querySelectorAll('script[data-category="'+category+'"], script[data-service="'+service+'"]');
64scriptElements.forEach(obj=>{let waitfor=obj.getAttribute('data-waitfor');let src=obj.getAttribute('data-cmplz-src');if(waitfor){if(src){cmplz_waiting_scripts[waitfor]=src}else if(obj.innerText.length>0){cmplz_waiting_inline_scripts[waitfor]=obj}}
65if(obj.parentElement){obj.parentElement.removeChild(obj)}});scriptElements.forEach(obj=>{let script_mime_type=obj.getAttribute('type');if(obj.classList.contains('cmplz-activated')||(!script_mime_type||script_mime_type==='text/javascript')){return}
66obj.classList.add('cmplz-activated');let src=obj.getAttribute('data-cmplz-src');if(src){obj.removeAttribute('type');if(cmplz_is_waiting_script(cmplz_waiting_scripts,src)){return}
67if(obj.getAttribute('data-post_scribe_id')){let psID='#'+obj.getAttribute('data-post_scribe_id');let postScribeObj=document.querySelector(psID);if(postScribeObj){postScribeObj.innerHtml('');postscribe(psID,'<script src='+src+'></script>')}}else{cmplz_run_script(src,category,service,'src',obj)}}else if(obj.innerText.length>0){if(cmplz_is_waiting_script(cmplz_waiting_inline_scripts,obj.innerText)){return}
68cmplz_run_script(obj.innerText,category,service,'inline',obj)}});cmplz_run_after_all_scripts(category,service)}
69function cmplz_remove_placeholder(obj){let blocked_content_container=obj.closest('.cmplz-blocked-content-container');if(blocked_content_container){let cssIndex=blocked_content_container.getAttribute('data-placeholder_class_index');blocked_content_container.classList.remove('cmplz-blocked-content-container');blocked_content_container.classList.remove('cmplz-placeholder-'+cssIndex)}
70obj.classList.remove('cmplz-iframe-styles');obj.classList.remove('cmplz-iframe');obj.classList.remove('video-wrap')}
71function cmplz_get_waiting_script(waiting_scripts,src){for(let waitfor in waiting_scripts){if(waiting_scripts.hasOwnProperty(waitfor)){if(src.indexOf(waitfor)!==-1){let output=waiting_scripts[waitfor];delete waiting_scripts[waitfor];return output}}}
72return!1}
73function cmplz_array_is_empty(arr){for(let key in arr){if(arr.hasOwnProperty(key)){return!1}}
74return!0}
75function cmplz_is_waiting_script(waiting_scripts,srcOrScript){for(let waitfor in waiting_scripts){if(waiting_scripts.hasOwnProperty(waitfor)){let waitingScript=waiting_scripts[waitfor];if(typeof waitingScript!=='string')waitingScript=waitingScript.innerText;if(srcOrScript.indexOf(waitingScript)!==-1||waitingScript.indexOf(srcOrScript)!==-1){return!0}}}
76return!1}
77function cmplz_run_after_all_scripts(category,service){let enableService=service!=='do_not_match'&&!cmplz_in_array(service,cmplz_fired_service_events);let enableCategory=category!=='do_not_match'&&!cmplz_in_array(category,cmplz_fired_category_events);if(enableCategory||enableService){if(enableCategory){cmplz_fired_category_events.push(category)}
78if(enableService){cmplz_fired_service_events.push(service)}
79let details={};details.category=category;details.service=service;details.categories=cmplz_accepted_categories();details.services=cmplz_get_all_service_consents();details.region=complianz.region;let event=new CustomEvent('cmplz_enable_category',{detail:details});document.dispatchEvent(event)}
80if(!cmplz_all_scripts_hook_fired&&cmplz_array_is_empty(cmplz_waiting_inline_scripts)&&cmplz_array_is_empty(cmplz_waiting_scripts)){let event=new CustomEvent('cmplz_run_after_all_scripts',{detail:category,service:service});document.dispatchEvent(event);cmplz_all_scripts_hook_fired=!0}}
81let cmplz_fired_events=[];function cmplz_run_tm_event(category){if(cmplz_fired_events.indexOf(category)===-1){cmplz_fired_events.push(category);window.dataLayer=window.dataLayer||[];window.dataLayer.push({'event':complianz.prefix+'event_'+category});let event=new CustomEvent('cmplz_tag_manager_event',{detail:category});document.dispatchEvent(event)}}
82function cmplz_legacy(){let has_recaptcha=!1;document.querySelectorAll('[data-service=recaptcha]').forEach(obj=>{obj.setAttribute('data-service','google-recaptcha');has_recaptcha=!0});if(has_recaptcha){console.log('recaptcha as service name is deprecated. Please rename the service in your custom html to google-recaptcha');document.body.classList.add('cmplz-google-recaptcha')}}
83window.conditionally_show_banner=function(){complianz=cmplz_merge_object(complianz,cmplz_user_data);cmplz_maybe_auto_redirect();cmplz_set_blocked_content_container();cmplz_legacy();window.wp_consent_type=complianz.consenttype;let event=new CustomEvent('wp_consent_type_defined');document.dispatchEvent(event);event=new CustomEvent('cmplz_before_cookiebanner');document.dispatchEvent(event);if(complianz.forceEnableStats==1&&complianz.consenttype==='optin'){cmplz_set_consent('statistics','allow')}
84let rev_cats=cmplz_categories.reverse();
84for(let key in rev_cats){if(rev_cats.hasOwnProperty(key)){let category=cmplz_categories[key];if(cmplz_has_consent(category)){cmplz_enable_category(category)}}}
85if(cmplz_exists_service_consent()){cmplz_enable_category('','general');let services=cmplz_get_services_on_page();for(let key in services){if(services.hasOwnProperty(key)){let service=services[key].service;let category=services[key].category;if(cmplz_has_service_consent(service,category)){document.querySelectorAll('.cmplz-accept-service[data-service='+service+']').forEach(obj=>{obj.checked=!0});cmplz_enable_category('',service)}}}}
86cmplz_sync_category_checkboxes();cmplz_integrations_init();cmplz_check_cookie_policy_id();cmplz_set_up_auto_dismiss();cmplz_load_manage_consent_container();event=new CustomEvent('cmplz_cookie_banner_data',{detail:complianz});document.dispatchEvent(event);if(cmplz_get_cookie('saved_categories')===''){if(complianz.consenttype!=='optin'&&complianz.consenttype!=='optout'){cmplz_track_status('no_warning')}else if(cmplz_do_not_track()){cmplz_track_status('do_not_track')}}
87cmplz_set_category_as_body_class();cmplz_fire_categories_event();if(!cmplz_do_not_track()){if(complianz.consenttype==='optin'){if(complianz.forceEnableStats){cmplz_enable_category('statistics')}
88console.log('opt-in');show_cookie_banner()}else if(complianz.consenttype==='optout'){console.log('opt-out');show_cookie_banner()}else{console.log('other consent type, no cookie warning');cmplz_accept_all()}}else{console.log('global privacy control or do not track detected: no banner.');cmplz_track_status('do_not_track')}}
89function cmplz_do_not_track(){let dnt='doNotTrack' in navigator&&navigator.doNotTrack==='1';let gpc='globalPrivacyControl' in navigator&&navigator.globalPrivacyControl;return!!(complianz.do_not_track_enabled&&(gpc||dnt))}
90function cmplz_get_services_on_page(){let services=[];document.querySelectorAll('[data-service]').forEach(obj=>{let service=obj.getAttribute('data-service');let category=obj.getAttribute('data-category');if(services.indexOf(service)==-1){services.push({'category':category,'service':service,})}});return services}
91window.show_cookie_banner=function(){let disableCookiebanner=complianz.disable_cookiebanner||cmplz_is_speedbot();let tmpDismissCookiebanner=!1;if(document.querySelector('#cmplz-manage-consent-container')||document.querySelector('.cmplz-dropdown-cookiepolicy')){tmpDismissCookiebanner=!0}
92var fragment=document.createDocumentFragment();let container=document.getElementById('cmplz-cookiebanner-container');if(container){fragment.appendChild(container);document.body.prepend(fragment)}
93let link=document.createElement("link");let pageLinks=complianz.page_links[complianz.region];cmplz_banner=document.querySelector('.cmplz-cookiebanner.banner-'+complianz.user_banner_id+'.'+complianz.consenttype);if(!cmplz_banner){disableCookiebanner=!0}
94cmplz_manage_consent_button=document.querySelector('#cmplz-manage-consent .cmplz-manage-consent.manage-consent-'+complianz.user_banner_id);let css_file_url=complianz.css_file.replace('{type}',complianz.consenttype).replace('{banner_id}',complianz.user_banner_id);if(complianz.css_file.indexOf('cookiebanner/css/defaults/banner')!=-1){console.log('Fallback default css file used. Please re-save banner settings, or check file writing permissions in uploads directory')}
95link.href=css_file_url;link.type="text/css";link.rel="stylesheet";link.onload=function(){if(!disableCookiebanner){cmplz_banner.classList.remove('cmplz-hidden');cmplz_manage_consent_button.classList.remove('cmplz-hidden')}}
96document.getElementsByTagName("head")[0].appendChild(link);if(cmplz_banner&&!disableCookiebanner){cmplz_banner.querySelectorAll('.cmplz-links a:not(.cmplz-external), .cmplz-buttons a:not(.cmplz-external)').forEach(obj=>{let docElement=obj;docElement.classList.add('cmplz-hidden');for(let pageType in pageLinks){if(pageLinks.hasOwnProperty(pageType)&&docElement.classList.contains(pageType)){docElement.setAttribute('href',pageLinks[pageType].url+docElement.getAttribute('data-relative_url'));if(docElement.innerText==='{title}'){docElement.innerText=cmplz_html_decode(pageLinks[pageType].title)}
97docElement.classList.remove('cmplz-hidden')}}});cmplz_set_banner_status();if(tmpDismissCookiebanner){cmplz_banner.classList.remove('cmplz-show');cmplz_banner.classList.add('cmplz-dismissed');cmplz_manage_consent_button.classList.remove('cmplz-dismissed');cmplz_manage_consent_button.classList.add('cmplz-show')}}
98let event=new CustomEvent('cmplz_cookie_warning_loaded',{detail:complianz.region});document.dispatchEvent(event)}
99window.cmplz_get_banner_status=function(){return cmplz_get_cookie('banner-status')}
100window.cmplz_set_banner_status=function(status){let prevStatus=cmplz_get_cookie('banner-status');status=typeof status!=='undefined'?status:prevStatus;if(status!==prevStatus){cmplz_set_cookie('banner-status',status)}
101if(status.length===0){status='show'}
102if(status==='show'){prevStatus='dismissed'}else{prevStatus='show'}
103if(cmplz_banner&&status.length>0){cmplz_banner.classList.remove('cmplz-'+prevStatus);cmplz_banner.classList.add('cmplz-'+status);if(cmplz_manage_consent_button){cmplz_manage_consent_button.classList.add('cmplz-'+prevStatus);cmplz_manage_consent_button.classList.remove('cmplz-'+status)}}
104if(cmplz_banner_container&&complianz.soft_cookiewall){cmplz_banner_container.classList.remove('cmplz-'+prevStatus);cmplz_banner_container.classList.add('cmplz-'+status);cmplz_banner_container.classList.add('cmplz-soft-cookiewall')}
105let event=new CustomEvent('cmplz_banner_status',{detail:status});document.dispatchEvent(event);cmplz_start_clean()}
106function cmplz_is_bot(){var botPattern="(googlebot\/|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)";var reBot=new RegExp(botPattern,'i');var userAgent=navigator.userAgent;return reBot.test(userAgent)}
107function cmplz_is_speedbot(){var userAgent=navigator.userAgent;var speedBotPattern="(GTmetrix|pingdom|pingbot|Lighthouse)";var speedBot=new RegExp(speedBotPattern,'i');return speedBot.test(userAgent)}
108window.cmplz_has_consent=function(category){if(cmplz_is_bot()){return!0}
109if(category==='functional'){return!0}
110if(cmplz_do_not_track()){return!1}
111let has_consent,value;value=cmplz_get_cookie(category);if((complianz.consenttype==='optout'||complianz.consenttype==='other')&&value===''){has_consent=!0}else{has_consent=(value==='allow')}
112return has_consent}
113window.cmplz_is_service_denied=function(service){var consented_services_json=cmplz_get_cookie('consented_services');var consented_services;try{consented_services=JSON.parse(consented_services_json)}catch(e){consented_services={}}
114if(!consented_services.hasOwnProperty(service)){return!1}else{return!consented_services[service]}}
115window.cmplz_has_service_consent=function(service,category){var consented_services_json=cmplz_get_cookie('consented_services');var consented_services;try{consented_services=JSON.parse(consented_services_json)}catch(e){consented_services={}}
116if(!consented_services.hasOwnProperty(service)){return cmplz_has_consent(category)}else{return consented_services[service]}}
117function cmplz_exists_service_consent(){var consented_services_json=cmplz_get_cookie('consented_services');var consented_services;try{consented_services=JSON.parse(consented_services_json);for(const key in consented_services){if(consented_services.hasOwnProperty(key)){if(consented_services[key]==!0){return!0}}}}catch(e){return!1}
118return!1}
119function cmplz_set_service_consent(service,consented){var consented_services_json=cmplz_get_cookie('consented_services');var consented_services;try{consented_services=JSON.parse(consented_services_json)}catch(e){consented_services={}}
120consented_services[service]=consented;cmplz_set_cookie('consented_services',JSON.stringify(consented_services));let details={};details.service=service;details.value=consented;
120details.region=complianz.region;cmplz_all_scripts_hook_fired=!1;let event=new CustomEvent('cmplz_status_change_service',{detail:details});document.dispatchEvent(event)}
121function cmplz_clear_all_service_consents(){cmplz_set_cookie('consented_services','')}
122function cmplz_get_all_service_consents(){var consented_services_json=cmplz_get_cookie('consented_services');var consented_services;try{consented_services=JSON.parse(consented_services_json)}catch(e){consented_services={}}
123return consented_services}
124function cmplz_get_cookie_path(){return typeof complianz.cookie_path!=='undefined'&&complianz.cookie_path!==''?complianz.cookie_path:'/'}
125function cmplz_get_cookie_domain(){var domain='';if(complianz.set_cookies_on_root==1&&complianz.cookie_domain.length>3){domain=complianz.cookie_domain}
126if(domain.indexOf('localhost')!==-1){domain=''}
127return domain}
128window.cmplz_set_consent=function(category,value){cmplz_set_accepted_cookie_policy_id();value=category==='functional'?'allow':value;let previous_value=cmplz_get_cookie(category);let checked=value==='allow';document.querySelectorAll('input.cmplz-'+category).forEach(obj=>{obj.checked=checked});if(previous_value===value){return}
129cmplz_set_cookie(category,value);if(value==='allow'){cmplz_enable_category(category)}
130cmplz_wp_set_consent(category,value);if(category==='statistics'){cmplz_wp_set_consent('statistics-anonymous','allow')}
131let details=new Object();details.category=category;details.value=value;details.region=complianz.region;details.categories=cmplz_accepted_categories();cmplz_all_scripts_hook_fired=!1;let event=new CustomEvent('cmplz_status_change',{detail:details});document.dispatchEvent(event);if(category==='marketing'&&value==='deny'&&previous_value==='allow'){cmplz_integrations_revoke();setTimeout(function(){cmplz_reload_browser_compatible()},500)}}
132function cmplz_reload_browser_compatible(){if(navigator.userAgent.toLowerCase().indexOf('firefox')>-1){const url=new URL(window.location.href);url.searchParams.set('cmplz-force-reload',Date.now().toString());window.location.href=url.toString()}else{window.location.reload()}}
133var cmplz_user_data=[];if(typeof(Storage)!=="undefined"&&sessionStorage.cmplz_user_data){cmplz_user_data=JSON.parse(sessionStorage.cmplz_user_data)}
134if(complianz.geoip==1&&(cmplz_user_data.length==0||(cmplz_user_data.version!==complianz.version)||(cmplz_user_data.banner_version!==complianz.banner_version))){var request=new XMLHttpRequest();let cmplzUserRegion=cmplz_get_url_parameter(window.location.href,'cmplz_user_region');cmplzUserRegion=cmplzUserRegion?'&cmplz_user_region='+cmplzUserRegion:'';request.open('GET',complianz.url+'banner?'+complianz.locale+cmplzUserRegion,!0);request.setRequestHeader('Content-type','application/json');request.send();request.onload=function(){cmplz_user_data=JSON.parse(request.response);sessionStorage.cmplz_user_data=JSON.stringify(cmplz_user_data);conditionally_show_banner()}}else{conditionally_show_banner()}
135if(complianz.store_consent==1){var cmplz_id_cookie=cmplz_get_cookie('id');var cmplz_id_session='';var cmplz_id='';if(typeof(Storage)!=="undefined"&&sessionStorage.cmplz_id){cmplz_id_session=JSON.parse(sessionStorage.cmplz_id)}
136if(cmplz_id_cookie.length==0&&cmplz_id_session.length>0){cmplz_id=cmplz_id_session;cmplz_set_cookie('id',cmplz_id)}
137if(cmplz_id_cookie.length>0&&cmplz_id_session.length==0){cmplz_id=cmplz_id_cookie}
138if(typeof(Storage)!=="undefined"){sessionStorage.cmplz_id=JSON.stringify(cmplz_id)}}
139document.addEventListener('visibilitychange',function(){if(document.visibilityState==='hidden'){cmplz_track_status_end()}});window.addEventListener("pagehide",cmplz_track_status_end,!1);window.addEventListener("beforeunload",cmplz_track_status_end,!1);function cmplz_track_status_end(){if(!cmplz_consent_stored_once){cmplz_track_status()}}
140document.addEventListener('cmplz_consent_action',function(e){cmplz_set_consent(e.detail.category,'allow');cmplz_fire_categories_event();cmplz_track_status()});window.cmplz_accept_all=function(){cmplz_clear_all_service_consents();for(var key in cmplz_categories){if(cmplz_categories.hasOwnProperty(key)){cmplz_set_consent(cmplz_categories[key],'allow')}}
141cmplz_sync_category_checkboxes()}
142window.cmplz_deny_all=function(){for(var key in cmplz_categories){if(cmplz_categories.hasOwnProperty(key)){cmplz_set_consent(cmplz_categories[key],'deny')}}
143var consentLevel=cmplz_highest_accepted_category();var reload=!1;if(consentLevel!=='functional'||cmplz_exists_service_consent()){reload=!0}
144if(cmplz_clear_cookies('cmplz_service')){reload=!0}
145cmplz_clear_all_service_consents();cmplz_integrations_revoke();cmplz_fire_categories_event();cmplz_track_status();let event=new CustomEvent('cmplz_revoke',{detail:reload});document.dispatchEvent(event);if(!complianz.tcf_active&&reload){cmplz_reload_browser_compatible()}}
146cmplz_add_event('click','.cmplz-accept',function(e){e.preventDefault();cmplz_accept_all();cmplz_set_banner_status('dismissed');cmplz_fire_categories_event();cmplz_track_status()});cmplz_add_event('click','.cmplz-accept-category, .cmplz-accept-marketing',function(e){e.preventDefault();let obj=e.target;var service=obj.getAttribute('data-service');var category=obj.getAttribute('data-category');category=category?category:'marketing';if(complianz.clean_cookies==1&&typeof service!=='undefined'&&service){cmplz_set_service_consent(service,!0);cmplz_enable_category('','general');cmplz_enable_category('',service)}else{cmplz_set_consent(category,'allow')}
147cmplz_set_banner_status('dismissed');cmplz_fire_categories_event();cmplz_track_status()});cmplz_add_event('click','.cmplz-accept-service',function(e){let obj=e.target;let tagName=obj.tagName;if(tagName==='INPUT'){return}
148let service=obj.getAttribute('data-service');if(typeof service!=='undefined'){cmplz_set_service_consent(service,!0);cmplz_enable_category('','general');cmplz_enable_category('',service)}
149cmplz_fire_categories_event();cmplz_track_status()});cmplz_add_event('change','.cmplz-accept-service',function(e){let obj=e.target;let tagName=obj.tagName;let service=obj.getAttribute('data-service');if(typeof service!=='undefined'){if(tagName==='INPUT'){cmplz_set_banner_status('dismissed');if(obj.checked){cmplz_set_service_consent(service,!0);cmplz_enable_category('',service)}else{cmplz_set_service_consent(service,!1);setTimeout(function(){cmplz_reload_browser_compatible()},500)}}else{e.preventDefault();cmplz_set_service_consent(service,!0);cmplz_enable_category('','general');cmplz_enable_category('',service);setTimeout(function(){cmplz_reload_browser_compatible()},500)}}
150cmplz_fire_categories_event();cmplz_track_status()});cmplz_add_event('click','.cmplz-save-preferences',function(e){let obj=e.target;cmplz_banner=obj.closest('.cmplz-cookiebanner');for(var key in cmplz_categories){if(cmplz_categories.hasOwnProperty(key)){var category=cmplz_categories[key];var categoryElement=cmplz_banner.querySelector('input.cmplz-'+category);if(categoryElement){if(categoryElement.checked){cmplz_set_consent(category,'allow')}else{cmplz_set_consent(category,'deny')}}}}
151cmplz_set_banner_status('dismissed');cmplz_fire_categories_event();cmplz_track_status()});cmplz_add_event('click','.cmplz-close',function(e){cmplz_set_banner_status('dismissed')});cmplz_add_event('click','.cmplz-view-preferences',function(e){let obj=e.target;cmplz_banner=obj.closest('.cmplz-cookiebanner');if(cmplz_banner.querySelector('.cmplz-categories').classList.contains('cmplz-fade-in')){cmplz_banner.classList.remove('cmplz-categories-visible');cmplz_banner.querySelector('.cmplz-categories').classList.remove('cmplz-fade-in');cmplz_banner.querySelector('.cmplz-view-preferences').style.display='block';cmplz_banner.querySelector('.cmplz-save-preferences').style.display='none'}else{cmplz_banner.classList.add('cmplz-categories-visible');cmplz_banner.querySelector('.cmplz-categories').classList.add('cmplz-fade-in');cmplz_banner.querySelector('.cmplz-view-preferences').style.display='none';cmplz_banner.querySelector('.cmplz-save-preferences').style.display='block'}});cmplz_add_event('change','.cmplz-manage-consent-container .cmplz-category',function(e){for(var key in cmplz_categories){if(cmplz_categories.hasOwnProperty(key)){var category=cmplz_categories[key];var categoryElement=document.querySelector('.cmplz-manage-consent-container input.cmplz-'+category);if(categoryElement){if(categoryElement.checked){cmplz_set_consent(category,'allow')}else{cmplz_set_consent(category,'deny')}
152cmplz_set_banner_status('dismissed');cmplz_fire_categories_event();cmplz_track_status()}}}});cmplz_add_event('click','.cmplz-deny',function(e){e.preventDefault();cmplz_set_banner_status('dismissed');cmplz_deny_all()});cmplz_add_event('click','button.cmplz-manage-settings',function(e){e.preventDefault();var catsContainer=document.querySelector('.cmplz-cookiebanner .cmplz-categories');var saveSettings=document.querySelector('.cmplz-save-settings');var manageSettings=document.querySelector('button.cmplz-manage-settings');if(!cmplz_is_hidden(catsContainer)){saveSettings.style.display='none';manageSettings.style.display='block';catsContainer.style.display='none'}else{saveSettings.style.display='block';manageSettings.style.display='none';catsContainer.style.display='block'}}
152);cmplz_add_event('click','button.cmplz-manage-consent',function(e){e.preventDefault();cmplz_set_banner_status('show')});function cmplz_set_up_auto_dismiss(){if(complianz.consenttype==='optout'){if(complianz.dismiss_on_scroll==1){var onWindowScroll=function(evt){if(window.pageYOffset>Math.floor(400)){cmplz_set_banner_status('dismissed');cmplz_fire_categories_event();cmplz_track_status();window.removeEventListener('scroll',onWindowScroll);this.onWindowScroll=null}};window.addEventListener('scroll',onWindowScroll)}
153var delay=parseInt(complianz.dismiss_timeout);if(delay>0){var cmplzDismissTimeout=window.setTimeout(function(){cmplz_set_banner_status('dismissed');cmplz_fire_categories_event();cmplz_track_status()},Math.floor(delay))}}}
154function cmplz_fire_categories_event(){let details=new Object();details.category=cmplz_highest_accepted_category();details.categories=cmplz_accepted_categories();details.region=complianz.region;let event=new CustomEvent('cmplz_fire_categories',{detail:details});document.dispatchEvent(event)}
155function cmplz_track_status(status){var cats=[];status=typeof status!=='undefined'?status:!1;let event=new CustomEvent('cmplz_track_status',{detail:status});document.dispatchEvent(event);if(!status){cats=cmplz_accepted_categories()}else{cats=[status]}
156cmplz_set_category_as_body_class();var saved_cats,saved_services;try{saved_cats=JSON.parse(cmplz_get_cookie('saved_categories'))}catch(e){saved_cats={}}
157try{saved_services=JSON.parse(cmplz_get_cookie('saved_services'))}catch(e){saved_services={}}
158var consented_services=cmplz_get_all_service_consents();if(cmplz_equals(saved_cats,cats)&&cmplz_equals(saved_services,consented_services)){return}
159if(complianz.store_consent!=1||cmplz_is_bot()||cmplz_is_speedbot()){return}
160cmplz_set_cookie('saved_categories',JSON.stringify(cats));cmplz_set_cookie('saved_services',JSON.stringify(consented_services));cmplz_consent_stored_once=!0;let data;var request=new XMLHttpRequest();request.open('POST',complianz.url+'track',!0);data={'consented_categories':cats,'consented_services':consented_services,'consenttype':window.wp_consent_type,};request.setRequestHeader('Content-type','application/json');request.send(JSON.stringify(data))}
161function cmplz_accepted_categories(){var consentedCategories=cmplz_categories;var consentedTemp=[];for(var key in consentedCategories){if(consentedCategories.hasOwnProperty(key)){var category=consentedCategories[key];if(cmplz_has_consent(category)){consentedTemp.push(category)}}}
162consentedCategories=consentedCategories.filter(function(value,index,consentedCategories){return cmplz_in_array(value,consentedTemp)});return consentedCategories}
163function cmplz_sync_category_checkboxes(){for(var key in cmplz_categories){if(cmplz_categories.hasOwnProperty(key)){var category=cmplz_categories[key];if(cmplz_has_consent(category)||category==='functional'){document.querySelectorAll('input.cmplz-'+category).forEach(obj=>{obj.checked=!0})}else{document.querySelectorAll('input.cmplz-'+category).forEach(obj=>{obj.checked=!1})}}
164document.querySelectorAll('.cmplz-accept-service').forEach(obj=>{let service=obj.getAttribute('data-service');let category=obj.getAttribute('data-category');if(cmplz_has_service_consent(service,category)){obj.checked=!0}else if(cmplz_is_service_denied(service)){obj.checked=!1}else{let category=obj.getAttribute('data-category');obj.checked=!!cmplz_has_consent(category)}})}}
165function cmplz_merge_object(userdata,ajax_data){var output=[];for(key in ajax_data){if(ajax_data.hasOwnProperty(key))output[key]=ajax_data[key]}
166for(var key in userdata){if(!ajax_data.hasOwnProperty(key)||typeof ajax_data[key]==='undefined'){if(userdata.hasOwnProperty(key))output[key]=userdata[key]}}
167return output}
168function cmplz_check_cookie_policy_id(){var user_policy_id=cmplz_get_cookie('policy_id');if(user_policy_id&&(complianz.current_policy_id!==user_policy_id)){cmplz_clear_cookies('cmplz')}}
169function cmplz_clear_cookies(cookie_part){var foundCookie=!1;if(typeof document==='undefined'){return foundCookie}
170var secure=";secure";var date=new Date();date.setTime(date.getTime()-(24*60*60*1000));var expires=";expires="+date.toGMTString();if(window.location.protocol!=="https:")secure='';let cookies=document.cookie.split("; ");let pathname=location.pathname;let pathParts=pathname.replace(/^\/|\/$/g,'').split('/');for(var i=0;i<cookies.length;i++){let cookieName=cookies[i].split(";")[0].split("=")[0];let host=window.location.hostname;var domainParts=host.split(".");let skip_last=domainParts.length>1;
170if(cookieName.indexOf(cookie_part)!==-1){foundCookie=!0;let cookieBaseDomain=encodeURIComponent(cookieName)+'=;SameSite=Lax'+secure+expires+';domain=;path=';document.cookie=cookieBaseDomain+'/';while(pathParts.length>0){var path=pathParts.join('/');if(path.length>0){document.cookie=cookieBaseDomain+'/'+path;document.cookie=cookieBaseDomain+'/'+path+'/'}
171pathParts.pop()};while(domainParts.length>0){let cookieBase=encodeURIComponent(cookieName)+'=;SameSite=Lax'+secure+expires+';domain=.'+domainParts.join('.')+';path=';document.cookie=cookieBase+'/';while(pathParts.length>0){var path=pathParts.join('/');if(path.length>0){document.cookie=cookieBase+'/'+path;document.cookie=cookieBase+'/'+path+'/'}
172pathParts.pop()};domainParts.shift();if(skip_last&&domainParts.length==1)domainParts.shift()}}}
173cmplz_set_accepted_cookie_policy_id();return foundCookie}
174function cmplz_set_accepted_cookie_policy_id(){cmplz_set_cookie('policy_id',complianz.current_policy_id)}
175function cmplz_integrations_init(){var cookiesToSet=complianz.set_cookies;for(var key in cookiesToSet){if(cookiesToSet.hasOwnProperty(key)&&cookiesToSet[key][1]==='1'){cmplz_set_cookie(key,cookiesToSet[key][1],!1)}}}
176function cmplz_integrations_revoke(){var cookiesToSet=complianz.set_cookies;for(var key in cookiesToSet){if(cookiesToSet.hasOwnProperty(key)){cmplz_set_cookie(key,cookiesToSet[key][1],!1);if(cookiesToSet[key][1]==!1){cmplz_clear_cookies(key)}}}}
177function cmplz_set_integrations_cookies(){var cookiesToSet=complianz.set_cookies;for(var key in cookiesToSet){if(cookiesToSet.hasOwnProperty(key)){cmplz_set_cookie(key,cookiesToSet[key][0],!1)}}}
178function cmplz_get_url_parameter(sPageURL,sParam){if(!sPageURL||typeof sPageURL==='undefined'){return!1}
179if(sPageURL.indexOf('?')==-1){return!1}
180var queryString=sPageURL.split('?');if(queryString.length==1)return!1;var sURLVariables=queryString[1].split('&'),sParameterName,i;for(i=0;i<sURLVariables.length;i++){if(sURLVariables.hasOwnProperty(i)){sParameterName=sURLVariables[i].split('=');if(sParameterName[0]===sParam){return sParameterName[1]===undefined?!0:decodeURIComponent(sParameterName[1])}}}
181return!1}
182function cmplz_maybe_auto_redirect(){var redirect=cmplz_get_url_parameter(window.location.href,'cmplz_region_redirect');var region=cmplz_get_url_parameter(window.location.href,'cmplz-region');if(redirect&&!region){window.location.href=window.location.href+'&cmplz-region='+complianz.region}}
183function cmplz_wp_set_consent(type,value){if(typeof wp_set_consent=='function'){wp_set_consent(type,value)}}
184var cmplz_cookie_data=[];var cmplzCleanCookieInterval;function cmplz_start_clean(){if(complianz.clean_cookies==1){if(typeof(Storage)!=="undefined"){cmplz_cookie_data=JSON.parse(sessionStorage.getItem('cmplz_cookie_data'))}
185if(!cmplz_cookie_data||cmplz_cookie_data.length==0){var request=new XMLHttpRequest();request.open('GET',complianz.url+'cookie_data',!0);request.setRequestHeader('Content-type','application/json');request.send();request.onload=function(){cmplz_cookie_data=JSON.parse(request.response);sessionStorage.setItem('cmplz_cookie_data',JSON.stringify(cmplz_cookie_data));cmplz_setup_clean_interval()}}else{cmplz_setup_clean_interval()}}}
186function cmplz_do_cleanup(){let consent_categories=['preferences','statistics','marketing',];for(var i in consent_categories){let category=consent_categories[i];if(!cmplz_has_consent(category)&&cmplz_cookie_data.hasOwnProperty(category)){let services=cmplz_cookie_data[category];for(var service in services){if(!cmplz_has_service_consent(service,category)){let cookies=services[service];for(var j in cookies){let item=cookies[j];cmplz_clear_cookies(item);cmplz_clear_storage(item)}}}}}}
187function cmplz_setup_clean_interval(){if(!cmplz_cookie_data){return}
188if(cmplzCleanCookieInterval){return}
189cmplz_do_cleanup();cmplzCleanCookieInterval=setInterval(cmplz_do_cleanup,1000)}
190function cmplz_clear_storage(item){if(typeof(Storage)!=="undefined"){if(localStorage.item){localStorage.removeItem(item)}
191if(sessionStorage.item){sessionStorage.removeItem(item)}}}
192function cmplz_load_manage_consent_container(){let manage_consent_container=document.querySelector('.cmplz-manage-consent-container');let is_block_editor=!1;if(manage_consent_container&&!is_block_editor){var request=new XMLHttpRequest();request.open('GET',complianz.url+'manage_consent_html?'+complianz.locale,!0);request.setRequestHeader('Content-type','application/json');request.send();request.onload=function(){let html=JSON.parse(request.response);manage_consent_container.insertAdjacentHTML('beforeend',html);cmplz_sync_category_checkboxes();let nojavascript=document.querySelector('#cmplz-manage-consent-container-nojavascript')
193nojavascript.style.display='none';manage_consent_container.style.display='block';let event=new CustomEvent('cmplz_manage_consent_container_loaded');document.dispatchEvent(event)}}}
194cmplz_add_event('keypress','.cmplz-banner-slider label',function(e){var keycode=(e.keyCode?e.keyCode:e.which);if(keycode==32){document.activeElement.click()}});cmplz_add_event('keypress','.cmplz-cookiebanner .cmplz-header .cmplz-close',function(e){var keycode=(e.keyCode?e.keyCode:e.which);if(keycode==13){document.activeElement.click()}});function cmplz_equals(array_1,array_2){if(!Array.isArray(array_1)){array_1=Object.keys(array_1);array_2=Object.keys(array_2)}
195if(!array_1||!array_2)
196return!1;if(array_1.length!=array_2.length)
197return!1;for(var i=0,l=array_1.length;i<l;i++){if(array_1[i]instanceof Array&&array_2[i]instanceof Array){if(!cmplz_equals(array_1[i],array_2[i]))
198return!1}else if(array_1[i]!=array_2[i]){return!1}}
199return!0}
200function cmplzCopyAttributes(source,target){return Array.from(source.attributes).forEac
200h(attribute=>{let excludes=['type','data-service','data-category','async'];if(attribute.nodeName==='data-script-type'&&attribute.nodeValue==='module'){target.setAttribute('type','module',);target.removeAttribute('data-script-type')}
201if(!excludes.includes(attribute.nodeName)){target.setAttribute(attribute.nodeName,attribute.nodeValue,)}})}
202let cmplz_has_wp_video=document.querySelector('.cmplz-wp-video-shortcode');let cmplz_times_checked=0;if('undefined'!=typeof window.jQuery){jQuery(document).ready(function($){if(cmplz_has_wp_video){document.addEventListener("cmplz_enable_category",function(consentData){cmplz_activate_wp_video()});var cmplzInterval=setInterval(function(){cmplz_times_checked+=1;if(document.querySelector('.cmplz-wp-video-shortcode')&&cmplz_times_checked<100){cmplz_activate_wp_video()}else{clearInterval(cmplzInterval)}},500)}
203function cmplz_activate_wp_video(again){if(!document.querySelector('.cmplz-wp-video-shortcode')){return}
204let categories=cmplz_accepted_categories();let services=cmplz_get_all_service_consents();let selectorVideo='';let selectorVideos=[];for(var c_key in categories){if(categories.hasOwnProperty(c_key)){let category=categories[c_key];if(category==='functional'){break}
205selectorVideos.push('.cmplz-wp-video-shortcode[data-category="'+category+'"]')}}
206for(var s_key in services){if(services.hasOwnProperty(s_key)){selectorVideos.push('.cmplz-wp-video-shortcode[data-service='+s_key+']')}}
207selectorVideo=selectorVideos.join(',');let should_initialize_video=!1;if(selectorVideo.length>0){document.querySelectorAll(selectorVideo).forEach(obj=>{should_initialize_video=!0;obj.setAttribute('controls','controls');obj.classList.add('wp-video-shortcode');obj.classList.add('cmplz-processed');obj.classList.remove('cmplz-wp-video-shortcode');obj.closest('.cmplz-wp-video').classList.remove('cmplz-wp-video');let blocked_notice=obj.closest('.wp-video').querySelector('.cmplz-blocked-content-notice');
207if(blocked_notice){blocked_notice.parentElement.removeChild(blocked_notice)}
208obj.classList.remove('cmplz-blocked-content-container')})}
209if(should_initialize_video){if(window.wp.mediaelement){window.wp.mediaelement.initialize()}else{let settings={};settings.videoWidth='100%';settings.videoHeight='100%';settings.enableAutosize=!0;$('.wp-video-shortcode').mediaelementplayer(settings)}}}
210document.querySelectorAll('.cmplz-video.cmplz-activated').forEach(obj=>{cmplz_activate_fitvids(obj)});document.addEventListener("cmplz_enable_category",function(e){document.querySelectorAll('.cmplz-video.cmplz-activated').forEach(obj=>{cmplz_activate_fitvids(obj)})});function cmplz_activate_fitvids(obj){let $obj=$(obj);if(typeof $obj.parent().fitVids==='function'){$obj.parent().fitVids()}}})}

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