var plgGdprAllCookiesDisabledByScript=!1,detectedOldIPhone=!1;if(null!==navigator.userAgent.match(/iPhone/i)){var iphone4=480==window.screen.height,iphone5=568==window.screen.height;if(iphone4||iphone5)detectedOldIPhone=!0}
var plgGdprDisableAllCookies=function(b){var e=document.cookie.split("; "),a=["cookieconsent_status"];"undefined"!==typeof gdprJSessCook&&a.push(gdprJSessCook);"undefined"!==typeof gdprJAdminSessCook&&a.push(gdprJAdminSessCook);if(gdprConfigurationOptions.allowedCookies){var d=gdprConfigurationOptions.allowedCookies.split(",");a=a.concat(d)}d=function(a){for(var b=window.location.hostname.split(".");0<b.length;){var d=encodeURIComponent(a.split(";")[0].split("=")[0])+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; domain="+
b.join(".")+" ;path=",c=location.pathname.split("/");for(document.cookie=d+"/";0<c.length;){var e=c.join("/");e||(e="/");document.cookie=d+e;c.pop()}b.shift()}};for(var f=0;f<e.length;f++){for(var g=!0,c=0;c<a.length;c++)-1!=e[f].indexOf(a[c])&&(g=!1);g&&d(e[f])}b||!gdprConfigurationOptions.blockCookieDefine||detectedOldIPhone||Object.defineProperty(document,"cookie",{get:function(){return""},set:function(){return!0}});gdprConfigurationOptions.placeholderBlockedResources?jQuery("*[src*=gdprlock],*[data-source=gdprlock]").replaceWith('<div class="gdprlock-placeholder"><div class="gdprlock-placeholder-text">'+
gdprConfigurationOptions.placeholderBlockedResourcesText+"</div></div>"):jQuery("*[src*=gdprlock],*[data-source=gdprlock]").remove();plgGdprAllCookiesDisabledByScript=!0};
(function(){if("undefined"!==typeof gdpr_unset_categories_cookies)for(var b=0;b<gdpr_unset_categories_cookies.length;b++)for(var e=gdpr_unset_categories_cookies[b],a=window.location.hostname.split(".");0<a.length;){var d=encodeURIComponent(e.split(";")[0].split("=")[0])+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; domain="+a.join(".")+" ;path=",f=location.pathname.split("/");for(document.cookie=d+"/";0<f.length;){var g=f.join("/");g||(g="/");document.cookie=d+g;f.pop()}a.shift()}})();
gdprConfigurationOptions.lawByCountry||("opt-in"!=gdprConfigurationOptions.complianceType||localStorage.getItem("hasConsented")||localStorage.getItem("setConsentedCookie")||plgGdprDisableAllCookies(),"opt-out"==gdprConfigurationOptions.complianceType&&localStorage.getItem("hasDeclined")&&plgGdprDisableAllCookies());
jQuery(function(b){plgGdprAllCookiesDisabledByScript||(gdprConfigurationOptions.placeholderBlockedResources?jQuery("*[src*=gdprlock],*[data-source=gdprlock]").replaceWith('<div class="gdprlock-placeholder"><div class="gdprlock-placeholder-text">'+gdprConfigurationOptions.placeholderBlockedResourcesText+"</div></div>"):jQuery("*[src*=gdprlock],*[data-source=gdprlock]").remove());window.gdprIsCookieConsentPresent=function(a){a=("; "+document.cookie).split("; "+a+"=");return 2!=a.length?void 0:a.pop().split(";").shift()}("cookieconsent_status");
var e=function(){if(gdpr_enable_log_cookie_consent){if("opt-in"==gdprConfigurationOptions.complianceType)var a=localStorage.getItem("hasConsented");else"opt-out"==gdprConfigurationOptions.complianceType&&(a=!localStorage.getItem("hasDeclined"));b.ajax({type:"POST",url:gdpr_ajax_livesite+"index.php?option=com_gdpr&task=user.processGenericCookieCategories",data:{gdpr_generic_cookie_consent:a?1:0}})}a=b("iframe").length;var d=!!navigator.mozGetUserMedia;gdprConfigurationOptions.blockExternalCookiesDomains&&
a&&d&&localStorage.setItem("refreshIframeCache",!0);setTimeout(function(){window.location.reload()},0)};b(document).on("click","a.cc-allow",function(a){"opt-out"==gdprConfigurationOptions.complianceType&&localStorage.getItem("hasDeclined")&&(localStorage.removeItem("hasDeclined"),localStorage.removeItem("hasDenyMessage"),localStorage.removeItem("hasExplititDeclinedAll"),localStorage.setItem("setRevokedCookie",!0),e())});localStorage.getItem("refreshIframeCache")&&(b("iframe").each(function(a,d){a=
b(d).clone();b(d).after(a).remove()}),localStorage.getItem("setConsentedCookie")||localStorage.removeItem("refreshIframeCache"));window.cookieconsent.initialise({type:gdprConfigurationOptions.complianceType,layout:gdprConfigurationOptions.toolbarLayout,theme:gdprConfigurationOptions.toolbarTheme,position:gdprConfigurationOptions.toolbarPosition,revokeposition:gdprConfigurationOptions.revokePosition,container:document.querySelector(gdprConfigurationOptions.containerSelector),palette:{popup:{background:gdprConfigurationOptions.popupBackground,
text:gdprConfigurationOptions.popupText,link:gdprConfigurationOptions.popupLink},button:{background:gdprConfigurationOptions.buttonBackground,border:gdprConfigurationOptions.buttonBorder,text:gdprConfigurationOptions.buttonText},highlight:{background:gdprConfigurationOptions.highlightBackground,border:gdprConfigurationOptions.highlightBorder,text:gdprConfigurationOptions.highlightText},highlightDismiss:{background:gdprConfigurationOptions.highlightDismissBackground,border:gdprConfigurationOptions.highlightDismissBorder,
text:gdprConfigurationOptions.highlightDismissText},highlightOpacity:{opacity:gdprConfigurationOptions.highlightOpacity}},revokable:!!gdprConfigurationOptions.revokable,location:!!gdprConfigurationOptions.lawByCountry,law:{regionalLaw:!gdprConfigurationOptions.lawByCountry},showLink:!!gdprConfigurationOptions.showLinks,static:!gdprConfigurationOptions.toolbarPositionmentType,dismissOnScroll:gdprConfigurationOptions.dismissOnScroll,dismissOnTimeout:gdprConfigurationOptions.dismissOnTimeout,animateRevokable:!!gdprConfigurationOptions.hideRevokableButton,
onInitialise:function(a){"opt-out"==gdprConfigurationOptions.complianceType&&localStorage.getItem("setRevokedCookie")&&(this.setStatus("allow",!0),localStorage.removeItem("setRevokedCookie"),e())},content:{header:gdprConfigurationOptions.headerText,message:gdprConfigurationOptions.messageText,dismiss:gdprConfigurationOptions.dismissText,allow:gdprConfigurationOptions.allowText,deny:gdprConfigurationOptions.denyText,link:gdprConfigurationOptions.cookiePolicyLinkText,href:gdprConfigurationOptions.cookiePolicyLink,
privacylink:gdprConfigurationOptions.privacyPolicyLinkText,privacyhref:gdprConfigurationOptions.privacyPolicyLink},onStatusChange:function(a,d){d=this.options.type;var f=this.hasConsented();if("opt-in"==d&&(f||b("a.cc-btn",this.element).hasClass("cc-allow"))&&"allow"==a){var g=localStorage.getItem("hasConsented"),c={hasConsented:!0,timestamp:(new Date).getTime()};localStorage.setItem("hasConsented",JSON.stringify(c));plgGdprAllCookiesDisabledByScript&&localStorage.setItem("setConsentedCookie",!0);
localStorage.removeItem("hasExplititDeclinedAll");b("input.cc-cookie-checkbox").attr("disabled",!1);if(gdprConfigurationOptions.disableFirstReload){c=parseInt(localStorage.getItem("autoActivateOnNextPage"));var h=!localStorage.getItem("hasFirstAccepted");h&&1!=c||g&&gdprIsCookieConsentPresent||e();h&&(c={hasFirstAccepted:!0,timestamp:(new Date).getTime()},localStorage.setItem("hasFirstAccepted",JSON.stringify(c)))}else g&&gdprIsCookieConsentPresent||e()}"opt-in"!=d||f&&!b("a.cc-btn",this.element).hasClass("cc-deny")||
"deny"!=a||(g=localStorage.getItem("hasConsented"),localStorage.removeItem("hasConsented"),localStorage.removeItem("setConsentedCookie"),c={hasDeclined:!0,timestamp:(new Date).getTime()},localStorage.setItem("hasFirstDeclined",JSON.stringify(c)),localStorage.setItem("hasExplititDeclinedAll",JSON.stringify(c)),this.setStatus("deny",!0),b("input.cc-cookie-checkbox").attr("disabled",!0),g&&e());"opt-out"!=d||f||localStorage.getItem("hasDeclined")||(plgGdprDisableAllCookies(!0),c={hasDeclined:!0,timestamp:(new Date).getTime()},
localStorage.setItem("hasDeclined",JSON.stringify(c)),localStorage.setItem("hasFirstDeclined",JSON.stringify(c)),localStorage.setItem("hasExplititDeclinedAll",JSON.stringify(c)),b("input.cc-cookie-checkbox").attr("disabled",!0),e());gdprConfigurationOptions.denyMessageEnabled&&"allow"==a&&localStorage.removeItem("hasDenyMessage")},onPopupOpen:function(a){"opt-in"!=gdprConfigurationOptions.complianceType&&"opt-out"!=gdprConfigurationOptions.complianceType||!gdprConfigurationOptions.autoAcceptOnNextPage||
a||localStorage.getItem("hasExplititDeclinedAll")||(a=localStorage.getItem("autoActivateOnNextPage"),2==parseInt(a)?(localStorage.setItem("autoActivateOnNextPage",1),"opt-in"==gdprConfigurationOptions.complianceType?(b("div.cc-window.cc-banner,div.cc-window.cc-floating").hide(),b("a.cc-btn.cc-allow").trigger("click")):"opt-out"==gdprConfigurationOptions.complianceType&&setTimeout(function(){b("a.cc-btn.cc-allow").trigger("click")},100)):a||localStorage.setItem("autoActivateOnNextPage",2))}})});
