window.__cookiehub = Object.create({
    'version': '2.8.16',
    'env': 'prod',
    'cdn': 'https://cdn.cookiehub.eu',
    'assets': 'https://cdn.cookiehub.eu/client/43da6777',
    'dist': 'https://cdn.cookiehub.eu/dist/2.8.16',
    'code': '43da6777',
    'domainId': 1015185,
    'css': 'https://cdn.cookiehub.eu/c2/css/2.8.16.css',
    'core': null,
    'state': null,
    'acb': null,
    'tcfv2': null,
    'region': null,
    'settings': {"general":{"storage":"cookie","encode":true,"name":"cookiehub","domain":"animaliamedia.fi","path":"/","sameSite":"Lax","expiryDays":365,"revision":7,"autoUpdate":true,"usageStatistics":true,"hosts":[],"tier":3,"additional":[]},"language":{"default":"fi","languages":["en","sv"],"labels":[],"detectClient":false,"display":1},"consentLog":{"enabled":true,"ql":false},"cookieRemoval":{"enabled":true,"aggressive":false,"removeStorage":false},"declaration":{"token":true,"datetime":true,"choice":true,"actions":["settings"]},"blocker":{"enabled":true,"include":[],"exclude":[],"placeholder":{"enabled":false,"backdrop":"rgba(0,0,0,0.5)","blur":0}},"gtm":{"enabled":true,"dataLayer":"dataLayer","prefix":"cookiehub_","delay":200},"gcm":{"enabled":true,"dataLayer":"dataLayer","delay":700,"mode":"advanced"},"ui":{"compact":true,"dark":false,"enhancedAccessibility":true,"hideBranding":true,"colors":{"primary":"#333333","primaryText":"#ffffff"},"links":[{"name":"Learn more","url":"","target":""}],"showToken":false,"legacyUI":true,"accessibilityLevel":2},"tcfv2":{"enabled":false,"choices":[{"type":"tsf","id":1,"special":1},{"type":"tsf","id":2,"special":1},{"type":"tp","id":1,"special":0},{"type":"ts","id":2},{"type":"ts","id":16}],"vendors":[755],"customVendors":[],"vendorList":2},"ccpa":{"enabled":false,"link":[]},"integrations":{"uet":{"enabled":true},"fbp":{"enabled":false},"shopify":{"enabled":true},"clarity":{"enabled":true},"hubspot":{"enabled":false}}},
    'regions': [{"title":"Default","region":["G0"],"framework":"default","bannerType":"notice","consentType":"explicit","banner":{"theme":"bar","position":"bottom","actions":["allow","deny","settings-alt"],"blockUI":false},"preferences":{"theme":"default","actions":["allow","deny"],"features":{"categories":true,"personalData":false,"declaration":true,"vendor":false,"purposes":false,"ccpaLink":[],"legitimateInterestAutoDeny":true,"ccpaAllowSaleDefault":true,"legitimateInterestDefault":true},"consentMethod":"categories","displayType":"cookie-categories"},"icon":{"theme":"classic","position":"left","dark":true},"categories":{"necessary":{"type":"inherit","default":"inherit","tracking":"inherit"},"preferences":{"type":"inherit","default":"inherit","tracking":"inherit"},"analytics":{"type":"inherit","default":"inherit","tracking":"inherit"},"marketing":{"type":"inherit","default":"inherit","tracking":"inherit"},"uncategorized":{"type":"inherit","default":"inherit","tracking":"inherit"}},"key":"808d7dca8a74d84af27a2d6602c3d786de45fe1e"}],
    'categories': [{"id":1,"name":"necessary","show":true,"implicit":true,"dnt":false,"default":true,"editable":false,"fired":false},{"id":2,"name":"preferences","show":false,"implicit":false,"dnt":false,"default":false,"editable":true,"fired":false},{"id":3,"name":"analytics","show":false,"implicit":false,"dnt":true,"default":false,"editable":true,"fired":false},{"id":4,"name":"marketing","show":true,"implicit":false,"dnt":true,"default":false,"editable":true,"fired":false},{"id":5,"name":"uncategorized","show":false,"implicit":false,"dnt":false,"default":false,"editable":true,"fired":false}],
    'vendors': [{"id":920,"type":1,"name":"CookieHub","policy":"https:\/\/www.cookiehub.com\/privacy-policy"},{"id":1100,"type":1,"name":"Google LLC","policy":"https:\/\/business.safety.google\/privacy\/"}],
    'services': [{"id":5,"name":"CookieHub","blocker":[],"cookies":[58],"category_id":1,"vendor_id":920},{"id":6,"name":"YouTube","blocker":[{"type":"0","contains":"youtube.com","category":"4"},{"type":"0","contains":"youtu.be","category":"4"}],"cookies":[89,88,171688,231254,267069],"category_id":4,"vendor_id":1100}],
    'cookies': [{"id":58,"name":"cookiehub","display_name":"cookiehub","prefix":0,"category":1,"type":1,"path":"/","expiry":"365 {days}","secure":0,"http_only":0,"third_party":0,"hide":0,"hosts":[".animaliamedia.fi"]},{"id":267069,"name":"__Secure-YNID","display_name":"__Secure-YNID","prefix":0,"category":4,"type":1,"path":"/","expiry":"180 {days}","secure":1,"http_only":1,"third_party":1,"hide":0,"hosts":[".youtube.com"]},{"id":89,"name":"YSC","display_name":"YSC","prefix":0,"category":4,"type":1,"path":"/","expiry":"Session","secure":1,"http_only":1,"third_party":1,"hide":0,"hosts":[".youtube.com"]},{"id":231254,"name":"__Secure-ROLLOUT_TOKEN","display_name":"__Secure-ROLLOUT_TOKEN","prefix":0,"category":4,"type":1,"path":"/","expiry":"180 {days}","secure":1,"http_only":1,"third_party":1,"hide":0,"hosts":[".youtube.com"]},{"id":88,"name":"VISITOR_INFO1_LIVE","display_name":"VISITOR_INFO1_LIVE","prefix":0,"category":4,"type":1,"path":"/","expiry":"180 {days}","secure":1,"http_only":1,"third_party":1,"hide":0,"hosts":[".youtube.com"]},{"id":171688,"name":"VISITOR_PRIVACY_METADATA","display_name":"VISITOR_PRIVACY_METADATA","prefix":0,"category":4,"type":1,"path":"/","expiry":"180 {days}","secure":1,"http_only":1,"third_party":1,"hide":0,"hosts":[".youtube.com"]}],
    'languages': [{"id":1,"default":false,"code":"en","name":"English"},{"id":11,"default":true,"code":"fi","name":"Finnish"},{"id":15,"default":false,"code":"sv","name":"Swedish"}],
    'elements': Object.create(null)
});// modules/acb.js
window.__cookiehub.acb=Object.create(null),window.__cookiehub.acb.service=function(e){var o=window.__cookiehub.services;null==o&&(o=[]);for(var n=null,a=0;a<o.length;a++){var t=o[a].blocker;if(t.length>0)for(var i=0;i<t.length;i++){var r=t[i];if(null!=e.src&&"0"==r.type){if(e.src.indexOf(r.contains)>0){n=o[a];break}}else if("SCRIPT"==e.nodeName&&null!=e.innerHTML&&"1"==r.type&&e.innerHTML.indexOf(r.contains)>0){n=o[a];break}}}return n},window.__cookiehub.acb.shouldDelay=function(e){if("text/plain"==e.type)return!1;var o=window.__cookiehub.acb.service(e);return!(null==o||null!=window.__cookiehub&&null!=window.__cookiehub.core&&window.__cookiehub.core.hasAnswered()&&window.__cookiehub.core.hasConsented("s-"+o.id))},window.__cookiehub.acb.adjustTag=function(e){if(!e.hasAttribute("data-consent")){var o=window.__cookiehub.acb.service(e);null!=o&&(e.dataset.chcategory=o.category_id,e.dataset.service=o.id)}return"SCRIPT"==e.nodeName&&(e.dataset.type=e.type,e.type="text/plain"),null!=e.src&&(e.dataset.src=e.src,e.removeAttribute("src"),"IFRAME"==e.nodeName&&(e.src="about:blank")),e},window.__cookiehub.acb.mutationHandler=function(e){for(var o=0;o<e.length;o++){var n=e[o];for(let e=0;e<n.addedNodes.length;e++){var a=n.addedNodes[e];("SCRIPT"==a.nodeName&&-1==navigator.userAgent.toLowerCase().indexOf("firefox")||"IFRAME"==a.nodeName)&&window.__cookiehub.acb.shouldDelay(a)&&window.__cookiehub.acb.adjustTag(a)}}},window.__cookiehub.acb.ffHandler=function(e){var o=e.target;if(window.__cookiehub.acb.shouldDelay(o)){e.preventDefault(),e.stopPropagation(),o.parentNode&&o.parentNode.removeChild(o);var n=o.cloneNode(!0),a=window.__cookiehub.acb.adjustTag(n);document.getElementsByTagName("head")[0].appendChild(a)}},navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&document.addEventListener("beforescriptexecute",window.__cookiehub.acb.ffHandler),new MutationObserver(window.__cookiehub.acb.mutationHandler).observe(document.documentElement,{childList:!0,subtree:!0});
// utils/cookie.js
!function(){"use strict";class e{getDomain(e,o){var t=e;if(-1==location.hostname.indexOf(t)&&null!=o)for(var a=0;a<o.length;a++)if(location.hostname.indexOf(o[a])>-1){t=o[a];break}return t}get(e,o=!1){var t=("; "+document.cookie).split("; "),a=void 0;if(null!=t)for(var n=0;n<t.length;n++){var r=t[n].split(e+"=");null!=r&&2==r.length&&("consent"==e&&null!=a?a.length<r[1].length&&(a=r[1]):a=r[1])}if(o&&null!=a)try{a=atob(a)}catch(e){}return a}set(e,o,t,a,n,r=!1,l="None",i=!1){r&&(o=btoa(o));var s=new Date;s.setDate(s.getDate()+(t||365));var g=[e+"="+o,"expires="+s.toUTCString(),"path="+(n||"/")];a&&g.push("domain="+a),""!=l&&g.push("SameSite="+l),i&&g.push("Secure"),document.cookie=g.join(";")}deleteStorageAll(e){for(var o=!1,t=0;t<window.__cookiehub.cookies.length;t++)if(window.__cookiehub.cookies[t].type>1){o=!0;break}if(o){for(t=0;t<localStorage.length;t++){var a=localStorage.key(t);if(null!=a){for(var n=!1,r=0;r<e.length;r++){if(!((i=e[r].toLowerCase()).length<=0)){if("*"===i[i.length-1]&&0===a.toLowerCase().indexOf(i.substring(0,i.length-1))){n=!0;break}if(a.toLowerCase()===i){n=!0;break}}}n||(localStorage.removeItem(a),t=0)}}for(t=0;t<sessionStorage.length;t++){var l=sessionStorage.key(t);if(null!=l){for(n=!1,r=0;r<e.length;r++){var i;if(!((i=e[r].toLowerCase()).length<=0)){if("*"===i[i.length-1]&&0===l.toLowerCase().indexOf(i.substring(0,i.length-1))){n=!0;break}if(l.toLowerCase()===i){n=!0;break}}}n||(sessionStorage.removeItem(l),t=0)}}}}deleteStorage(e){e.indexOf("*")>0&&(e=e.replace("*",""));for(var o=0;o<localStorage.length;o++){var t=localStorage.key(o);if(null!=t&&t.length>=e.length){if(t.toLowerCase()==e.toLowerCase()){localStorage.removeItem(t);break}t.substr(0,e.length).toLowerCase()==e.toLowerCase()&&localStorage.removeItem(t)}}for(o=0;o<sessionStorage.length;o++){var a=sessionStorage.key(o);if(null!=a&&a.length>=e.length){if(a.toLowerCase()==e.toLowerCase()){sessionStorage.removeItem(a);break}a.substr(0,e.length).toLowerCase()==e.toLowerCase()&&sessionStorage.removeItem(a)}}}delete(e){e.indexOf("*")>0&&(e=e.replace("*",""));var o=("; "+document.cookie).split("; ");if(null!=o)for(var t=0;t<o.length;t++){var a=o[t].split("=");null!=a&&a.length>1&&(a[0].toLowerCase()==e.toLowerCase()||e.length>3&&a[0].toLowerCase().substr(0,e.length)==e.toLowerCase())&&this.deleteCookie(a[0])}}deleteAll(e){var o=("; "+document.cookie).split("; ");if(null!=o)for(var t=0;t<o.length;t++){var a=o[t].split("=");if(null!=a&&a.length>1){for(var n=!1,r=0;r<e.length;r++){var l=e[r].toLowerCase();if(!(l.length<=0)){if("*"===l[l.length-1]&&0===a[0].toLowerCase().indexOf(l.substring(0,l.length-1))){n=!0;break}if(a[0].toLowerCase()===l){n=!0;break}}}n||this.deleteCookie(a[0])}}}deleteCookie(e){var o=window.location.hostname,t=o.split(".");t.length>2&&(o=t[t.length-2]+"."+t[t.length-1]);var a=e+"=; Expires=Thu, 01 Jan 1970 00:00:00 GMT;";document.cookie=a,document.cookie=a+"domain=."+window.location.hostname,document.cookie=a+"domain=."+window.location.hostname.replace("www.",""),document.cookie=a+"domain=."+o,document.cookie=a+";path=/",document.cookie=a+"domain=."+window.location.hostname+";path=/",document.cookie=a+"domain=."+window.location.hostname.replace("www.","")+";path=/",document.cookie=a+"domain=."+o+";path=/"}}var o=window||o;o.__cookiehub.C2Cookie=e}();
// utils/dom.js
!function(){"use strict";class e{constructor(){}escapeRegExp(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}getElementsByClass(e){var t=document.getElementsByClassName("ch2")[0];"ch2-open-settings-btn"!=e&&"ch2-open-personal-data-btn"!=e&&"ch2-container"!=e||(t=document.body);var n=t.getElementsByClassName(e);return n.length>0?n:[]}getFirstElementByClass(e,t=null){var n=null;if(null==t)n=this.getElementsByClass(e);else t.getElementsByClassName(e);return null!=n&&n.length>0?n[0]:null}hasClass(e,t){var n=" ";return 1===e.nodeType&&(n+e.className+n).replace(/[\n\t]/g,n).indexOf(n+t+n)>=0}addClass(e,t){this.hasClass(e,t)||(e.className+=" "+t)}addClassMulti(e,t){for(var n=this.getElementsByClass(e),l=0;l<n.length;l++)this.addClass(n[l],t)}removeClass(e,t){if(this.hasClass(e,t)){var n=new RegExp("\\b"+this.escapeRegExp(t)+"\\b");e.className=e.className.replace(n,"")," "==e.className&&(e.className="")}}removeClassMulti(e,t){for(var n=this.getElementsByClass(e),l=0;l<n.length;l++)this.removeClass(n[l],t)}addEvent(e,t){for(var n=this.getElementsByClass(e),l=0;l<n.length;l++){var s=this;n[l].addEventListener("click",function(e){t(e,s)},!1)}}findFirstLink(e){var t=this.getFirstElementByClass(e);if(null!=t){var n=t.getElementsByTagName("a");if(null!=n&&n.length>0)return n[0]}return null}generateLearnMoreLink(e=!1,t="Learn more"){var n=new window.__cookiehub.C2Label;if(window.__cookiehub.settings.ui.links[0].url.length>0||""!=n.getValue("general_learn_more_link")){var l=window.__cookiehub.settings.ui.links[0].url;""!=n.getValue("general_learn_more_link")&&(l=n.getValue("general_learn_more_link"));var s="_self";"/"!=l.substr(0,1)&&l.indexOf(location.hostname)<=0&&(s="_blank"),null!=window.__cookiehub.settings.ui.links[0].target&&""!=window.__cookiehub.settings.ui.links[0].target&&(s=window.__cookiehub.settings.ui.links[0].target);var a='<a href="'+l+'" target="'+s+'" tabindex="0">';return e||(a+=t,a+="</a>"),a}return""}attachCollapseEvents(e,t=!0){for(var n=0;n<e.length;n++)for(var l=0;l<e[n].children.length;l++)e[n].children[l].hasAttribute("aria-controls")&&!e[n].children[l].hasAttribute("data-r")&&null!=document.getElementById(e[n].children[l].getAttribute("aria-controls"))&&(document.getElementById(e[n].children[l].getAttribute("aria-controls")).style.display="none",e[n].children[l].addEventListener("click",function(e){e.preventDefault();var n=this.getAttribute("aria-controls");if("true"==this.getAttribute("aria-expanded")?(this.setAttribute("aria-expanded","false"),document.getElementById(n).style.display="none"):(this.setAttribute("aria-expanded","true"),document.getElementById(n).style.display=""),t&&0==document.getElementById(n).children.length){const e=n.match(/^ch2-collapse-vtv-(.+)$/);if(e&&e.length>1){let t="function"==typeof window.__cookiehub.C2TcfHelpers?new window.__cookiehub.C2TcfHelpers:null;if(null!=t)for(var l=t.getAllVendors(),s=0;s<l.length;s++)if(l[s].id==e[1]){document.getElementById(n).innerHTML=t.renderVendorDetails(l[s]);var a=document.getElementById(n).getElementsByClassName("ch2-collapse-toggler");let e=new window.__cookiehub.C2DOM;e&&e.attachCollapseEvents(a,!1);break}}}}),e[n].children[l].setAttribute("data-r",!0))}}var t=window||t;t.__cookiehub.C2DOM=e}();
// utils/helpers.js
!function(){"use strict";class r{extend(r,t){for(var e in t)t.hasOwnProperty(e)&&(e in r&&this.isPlainObject(r[e])&&this.isPlainObject(t[e])?this.extend(r[e],t[e]):r[e]=t[e]);return r}isPlainObject(r){return"object"==typeof r&&null!==r&&r.constructor==Object}inArray(r,t){return!!Array.isArray(r)&&-1!==r.indexOf(t)}secondsToDhms(r){r=parseInt(r);var t=Math.floor(r/86400),e=Math.floor(r%86400/3600),n=(Math.floor(r%3600/60),Math.floor(r%60),t>0?t+(1==t?" day":" days"):""),i=e>0?e+(1==e?" hour":" hours"):"",s="";return""!=n&&(s+=n),""!=i&&(s.length>0&&(s+=", "),s+=i),s}addLinker(r,t){var e="",n=r.split("#");if(n.length>0){var i="";if(-1!==n[0].indexOf("?")){var s=n[0].split("?");e=s[0],i=s[1]}else e=n[0];""==i||0!==i.indexOf("_cl=")&&-1===i.indexOf("&_cl=")?e+=""!=i?"?"+i+"&_cl="+t:"?_cl="+t:e=n[0],n.length>1&&(e+="#"+n[1])}return e}removeLinker(r){var t="";const e=r.split("#");if(e.length>0){const n=(t=e[0]).indexOf("?");if(-1===n)return r;const i=t.substring(0,n),s=t.substring(n+1).split("&").filter(r=>"_cl"!==r.split("=")[0]),l=e.length>1?"#"+e[1]:"";t=(s.length>0?i+"?"+s.join("&"):i)+l}return t}}var t=window||t;t.__cookiehub.C2Helpers=r}();
// utils/label.js
!function(){"use strict";function e(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class t{constructor(){e(this,"el",null),this.el=document.createElement("div")}decodeHTML(e){return-1===e.indexOf("<")?e:(e=(e=(e=e.replace(/(<(a)([^>]*)>)/g,"[$2$3]")).replace(/(<(|\/)(strong|em|p|br|b|i|ul|ol|li|a|div|span|h1|h2|h3|h4|h5|h6|br)[^>]*>)/g,"|$2$3|")).replace(/(<([^>]+)>)/gi,""),this.el.innerHTML=e,e=(e=(e=this.el.textContent).replace(/(\[(a)([^\]]*)*\])/g,"<$2$3>")).replace(/(\|(|\/)(strong|em|p|br|b|i|ul|ol|li|a|div|span|h1|h2|h3|h4|h5|h6|br)[^\|]*\|)/g,"<$2$3>"))}}var i=window||i;i.__cookiehub.C2Html=t;function n(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class r{constructor(){n(this,"htmlUtil",new window.__cookiehub.C2Html)}getLanguage(){var e=window.__cookiehub.settings.language.default;if(window.__cookiehub.settings.language.display>0){var t=!1;if((1==window.__cookiehub.settings.language.display||4==window.__cookiehub.settings.language.display)&&location.pathname.length>2){const i=location.pathname.toLowerCase().match(/^\/([a-z]{2}(?:-[a-z]{2})?)(?=\/|\?|#|$)/);if(i){const n=i[1];this.langAvailable(n)?(e=n,t=!0):5==n.length&&this.langAvailable(n.substr(0,2))&&(e=n.substr(0,2),t=!0)}}if(1==window.__cookiehub.settings.language.display&&!t||3==window.__cookiehub.settings.language.display){var i=(null!=document.documentElement.lang?document.documentElement.lang:"").toLowerCase();this.langAvailable(i)?(e=i,t=!0):i.length>2&&this.langAvailable(i.substr(0,2))&&(e=i.substr(0,2),t=!0)}if(1==window.__cookiehub.settings.language.display&&!t||2==window.__cookiehub.settings.language.display){i=(navigator.language||"").toLowerCase();this.langAvailable(i)?(e=i,t=!0):i.length>2&&this.langAvailable(i.substr(0,2))&&(e=i.substr(0,2),t=!0)}}return e}langAvailable(e){for(var t=0;t<window.__cookiehub.languages.length;t++)if(window.__cookiehub.languages[t].code==e)return!0;return!1}getLabels(){var e={};return null!=window.__cookiehub.locale&&(e=window.__cookiehub.locale.labels),e}getDescriptions(){var e={};return null!=window.__cookiehub.locale&&(e=window.__cookiehub.locale.descriptions),e}getServiceDescriptions(){var e={};return null!=window.__cookiehub.locale&&(e=window.__cookiehub.locale.serviceDescriptions),e}getValue(e){e.length>2&&("1_"==e.substr(0,2)?e=e.replace("1_","necessary_"):"2_"==e.substr(0,2)?e=e.replace("2_","preferences_"):"3_"==e.substr(0,2)?e=e.replace("3_","analytics_"):"4_"==e.substr(0,2)?e=e.replace("4_","marketing_"):"5_"==e.substr(0,2)&&(e=e.replace("5_","uncategorized_")));var t=this.getLabels();return null!=t[e=e.replace("required_","necessary_")]?this.htmlUtil.decodeHTML(t[e]):""}getCDValue(e,t){var i=this.getDescriptions();return null!=i&&null!=i[e]?this.htmlUtil.decodeHTML(i[e]):t}getSValue(e,t){var i=this.getServiceDescriptions();return null!=i&&null!=i[e]?this.htmlUtil.decodeHTML(i[e]):t}inject(e,t){for(var i in t)e=e.replace(new RegExp("{{"+i+"}}","g"),t[i]);return e}}var l=window||l;l.__cookiehub.C2Label=r}();
// utils/browser.js
!function(){"use strict";class o{isBot(){var o=new RegExp("(cookiehubscan|googlebot|googleother|adsbot|mediapartners|baidu|bingbot|bingpreview|sogou|proximic|duckduckbot|teoma|slurp|yandex|semrush|lighthouse|gtmetrix|pingdom)","i"),r=navigator.userAgent;return o.test(r)}dnt(){return null!=navigator.doNotTrack&&1==navigator.doNotTrack||null!=navigator.globalPrivacyControl&&navigator.globalPrivacyControl}}var r=window||r;r.__cookiehub.C2Browser=o}();
// modules/gcm.js
!function(){"use strict";class e{constructor(){}yieldToMain(){return globalThis.scheduler?.yield?globalThis.scheduler.yield():new Promise(e=>{setTimeout(e,0)})}dataLayer(){return window[window.__cookiehub.settings.gcm.dataLayer]=window[window.__cookiehub.settings.gcm.dataLayer]||[],window[window.__cookiehub.settings.gcm.dataLayer]}async update(e){if(await this.yieldToMain(),window.__cookiehub.settings.gcm.enabled){this.dataLayer();var n={security_storage:e.hasConsented("necessary")?"granted":"denied",functionality_storage:e.hasConsented("preferences")?"granted":"denied",personalization_storage:e.hasConsented("preferences")?"granted":"denied",analytics_storage:e.hasConsented("analytics")?"granted":"denied",ad_storage:e.hasConsented("marketing")?"granted":"denied",ad_user_data:e.hasConsented("marketing")?"granted":"denied",ad_personalization:e.hasConsented("marketing")?"granted":"denied"};0==window.__cookiehub.region.framework.indexOf("tcf")&&(n={security_storage:"granted",functionality_storage:e.hasConsented("tp-1")?"granted":"denied",personalization_storage:e.hasConsented("tp-1")&&e.hasConsented("tp-10")?"granted":"denied",analytics_storage:e.hasConsented("tp-1")&&e.hasConsented("tp-8")?"granted":"denied",ad_storage:e.hasConsented("tp-1")&&e.hasConsented("tp-2")&&e.hasConsented("tp-7")&&e.hasConsented("tp-9")&&e.hasConsented("tp-10")?"granted":"denied",ad_user_data:e.hasConsented("tp-1")&&e.hasConsented("tp-2")&&e.hasConsented("tp-7")&&e.hasConsented("tp-9")&&e.hasConsented("tp-10")?"granted":"denied",ad_personalization:e.hasConsented("tp-1")&&e.hasConsented("tp-2")&&e.hasConsented("tp-3")&&e.hasConsented("tp-4")&&e.hasConsented("tp-7")&&e.hasConsented("tp-9")&&e.hasConsented("tp-10")?"granted":"denied"}),this.gtag("consent","update",n),e.hasConsented("marketing")||this.gtag("set","ads_data_redaction",!0)}}gtag(){this.dataLayer().push(arguments)}}var n=window||n;n.__cookiehub.C2GCM=e}();
// modules/gtm.js
!function(){"use strict";function e(e,i,t){return(i=function(e){var i=function(e,i){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,i||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"==typeof i?i:i+""}(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}class i{constructor(){e(this,"state",null),e(this,"vendors",[]),e(this,"services",[]),e(this,"categories",[]),e(this,"allowSale",{});for(var i=0;i<window.__cookiehub.categories.length;i++){var t={id:(o=window.__cookiehub.categories[i]).id,name:o.name,allowed:!1,triggered:!1};this.categories.push(t)}for(i=0;i<window.__cookiehub.vendors.length;i++){t={id:(o=window.__cookiehub.vendors[i]).id,allowed:!1,triggered:!1};this.vendors.push(t)}for(i=0;i<window.__cookiehub.services.length;i++){var o;t={id:(o=window.__cookiehub.services[i]).id,allowed:!1,triggered:!1};this.services.push(t)}this.allowSale={allowed:!1,triggered:!1}}dataLayer(){return window[window.__cookiehub.settings.gtm.dataLayer]=window[window.__cookiehub.settings.gtm.dataLayer]||[],window[window.__cookiehub.settings.gtm.dataLayer]}mtmLayer(){return window._mtm=window._mtm||[],window._mtm}push(e){var i=this.dataLayer(),t=this.mtmLayer();window.__cookiehub.settings.gtm.delay?setTimeout(function(){i.push(e),t.push(e)},window.__cookiehub.settings.gtm.delay):(i.push(e),t.push(e))}triggerEvent(e){window.__cookiehub.settings.gtm.enabled&&this.push({event:window.__cookiehub.settings.gtm.prefix+e})}setVariable(e,i){if(window.__cookiehub.settings.gtm.enabled){var t={[window.__cookiehub.settings.gtm.prefix+e]:i};this.push(t)}}triggerCategories(){for(var e=0;e<this.categories.length;e++){var i=1==this.categories[e].id||window.cookiehubState.choice.allAllowed||window.cookiehubState.choice.categories.indexOf(this.categories[e].id)>=0;this.categories[e].allowed!=i&&(this.categories[e].allowed=i,this.categories[e].triggered=!1),this.categories[e].triggered||(this.setVariable(this.categories[e].name,this.categories[e].allowed),this.categories[e].triggered=!0)}}triggerVendorsAndServices(){for(var e=0;e<this.vendors.length;e++)if(this.vendors[e].type<2){var i=window.cookiehubState.choice.allAllowed||window.cookiehubState.choice.vendors.indexOf(this.vendors[e].id)>=0;this.vendors[e].allowed!=i&&(this.vendors[e].allowed=i,this.vendors[e].triggered=!1),!this.vendors[e].triggered&&window.__cookiehub.region.preferences.features.vendor&&(this.setVariable("v_"+this.vendors[e].id,this.vendors[e].allowed),this.vendors[e].triggered=!0)}for(e=0;e<this.services.length;e++){i=window.cookiehubState.choice.allAllowed||window.cookiehubState.choice.services.indexOf(this.services[e].id)>=0;this.services[e].allowed!=i&&(this.services[e].allowed=i,this.services[e].triggered=!1),this.services[e].triggered||"services"!=window.__cookiehub.region.preferences.consentMethod||(this.setVariable("s_"+this.services[e].id,this.services[e].allowed),this.services[e].triggered=!0)}}triggerAllowSale(){var e="ccpa"==window.__cookiehub.region.framework?window.cookiehubState.choice.allowSale:window.cookiehubState.hasConsented("marketing"),i=!this.allowSale.triggered&&!e;this.allowSale.allowed!=e&&(this.allowSale.allowed=e,this.allowSale.triggered=!1,i=!this.allowSale.allowed),this.allowSale.triggered||(this.setVariable("allowsale",this.allowSale.allowed),this.allowSale.triggered=!0),i&&"ccpa"==window.__cookiehub.region.framework&&this.triggerEvent("donotsell")}}var t=window||t;t.__cookiehub.C2GTM=i}();
// ui/dialog.js
!function(){"use strict";function e(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class t{constructor(){e(this,"labelUtil",null),e(this,"domUtil",null),e(this,"tcfHelpers",null),this.labelUtil=new window.__cookiehub.C2Label,this.domUtil=new window.__cookiehub.C2DOM,this.tcfHelpers="function"==typeof window.__cookiehub.C2TcfHelpers?new window.__cookiehub.C2TcfHelpers:null}el(){var e=this.domUtil.getElementsByClass("ch2-dialog");return e.length>0?e[0]:null}isEnabled(){return"notice"==window.__cookiehub.region.bannerType&&null!=window.__cookiehub.categories&&window.__cookiehub.categories.length>0}attachEvents(){for(var e=this.domUtil.getElementsByClass("ch2-open-vendors-btn"),t=0;t<e.length;t++)e[t].addEventListener("click",window.__cookiehub.core.openVendors.bind(window.__cookiehub.core),!1);var i=this.el(),n=i.getElementsByClassName("ch2-allow-all-btn");for(t=0;t<n.length;t++)n[t].addEventListener("click",window.__cookiehub.core.allowCookies.bind(window.__cookiehub.core),!1);var o=i.getElementsByClassName("ch2-deny-all-btn");for(t=0;t<o.length;t++)o[t].addEventListener("click",window.__cookiehub.core.denyCookies.bind(window.__cookiehub.core),!1);var l=i.getElementsByClassName("ch2-learn-more");for(t=0;t<l.length;t++)l[t].addEventListener("click",window.__cookiehub.core.learnMoreClick.bind(window.__cookiehub.core),!1);var a=i.getElementsByClassName("ch2-open-settings-btn");for(t=0;t<a.length;t++)a[t].addEventListener("click",window.__cookiehub.core.openSettings.bind(window.__cookiehub.core),!1);var r=i.getElementsByClassName("ch2-open-personal-data-btn");for(t=0;t<r.length;t++)window.__cookiehub.region.preferences.features.personalData?r[t].addEventListener("click",window.__cookiehub.core.openPersonalData.bind(window.__cookiehub.core),!1):r[t].style.display="none";var s=document.getElementsByClassName("ch2-dialog"),c=s.length>0?s[0]:null;document.addEventListener("keydown",function(e){var t=null;if(("Tab"===e.key||9===e.keyCode)&&(null!=c&&c.classList.contains("ch2-visible")&&(t=c),null!=t)){for(var i=Array.from(t.querySelectorAll('button:not([tabindex="-1"]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(e=>"none"!==getComputedStyle(e).display),n=i[0],o=i[i.length-1],l=!0,a=0;a<i.length;a++)if(i[a]===document.activeElement){l=!1;break}l?(n.focus(),e.preventDefault()):e.shiftKey?document.activeElement===n&&(o.focus(),e.preventDefault()):document.activeElement===o&&(n.focus(),e.preventDefault())}})}render(){var e="",t="https://www.cookiehub.com/welcome";if(null!=window.__cookiehub.settings.ui.legacyUI&&0==window.__cookiehub.settings.ui.legacyUI&&1==window.__cookiehub.settings.general.tier){if(null!=window.__cookiehub.affiliate){var i=t.includes("?")?"&":"?";t=t+i+"al="+window.__cookiehub.affiliate}e='<div class="ch2-dialog-branding">Powered by <a href="'+t+'" target="_blank" rel="noopener" class="ch2-dialog-branding-link">CookieHub Consent Management</a></div>'}if(this.isEnabled()){var n={close:this.renderClose(),position:" ch2-dialog-"+window.__cookiehub.region.banner.position,content:this.renderContent(),actions:this.renderActions()+e};return this.labelUtil.inject(window.__cookiehub.elements.dialog.container,n)}return""}renderClose(){if(null!=window.__cookiehub.region.banner.closeAction&&""!=window.__cookiehub.region.banner.closeAction){var e={close:this.labelUtil.inject("close",{title:this.labelUtil.getValue("general_close")}),action:window.__cookiehub.region.banner.closeAction};return this.labelUtil.inject(window.__cookiehub.elements.dialog.close,e)}return""}renderContent(){var e=window.__cookiehub.elements.dialog.line2,t=this.labelUtil.getValue("widget_message");t.indexOf("<p")>=0&&(e=(e=e.replace(/<p/g,"<div")).replace(/<\/p>/g,"</div>"));var i={line1:this.labelUtil.inject(window.__cookiehub.elements.dialog.line1,{elementOpen:window.__cookiehub.settings.ui.accessibilityLevel>2?"h2":'p aria-level="2" role="heading"',elementClose:window.__cookiehub.settings.ui.accessibilityLevel>2?"h2":"p",title:window.__cookiehub.settings.ui.accessibilityLevel>2?this.labelUtil.getValue("widget_title"):"<strong>"+this.labelUtil.getValue("widget_title")+"</strong>"}),line2:this.labelUtil.inject(e,{text:t}),line3:this.renderLearnMore(),class:window.__cookiehub.region.banner.actions.length>=3?"h2-dialog-content-morespace":""};if(0==window.__cookiehub.region.framework.indexOf("tcf")){var n=this.labelUtil.getValue("tcf_notice_message").replace(new RegExp("\n","g"),"<br><br>\n").replace(new RegExp("\\[br\\]","g"),"<br>\n"),o=this.domUtil.generateLearnMoreLink(!0,""),l=""==o?"":"</a>";n=(n=n.replace("[privacypolicy]",o)).replace("[/privacypolicy]",l),o='<a class="ch2-open-vendors-btn" tabindex="0">',l="</a>";var a=this.tcfHelpers.getAllVendors().length;l=l.replace("</a>"," ("+a+")</a>"),n=(n=n.replace("[vendors]",o)).replace("[/vendors]",l);for(var r="",s=0;s<window.__cookiehub.settings.tcfv2.choices.length;s++){var c=window.__cookiehub.settings.tcfv2.choices[s],h=window.__cookiehub.tcfv2.getChoice(c.id,c.special&&1==c.special?"special-"+c.type:c.type);null!=h&&(r.length>0&&(r+=", "),r+=h.name)}n=n.replace("[purposesfeatures]",r),i.line1=this.labelUtil.inject(window.__cookiehub.elements.dialog.line1,{elementOpen:window.__cookiehub.settings.ui.accessibilityLevel>2?"h2":'p aria-level="2" role="heading"',elementClose:window.__cookiehub.settings.ui.accessibilityLevel>2?"h2":"p",title:window.__cookiehub.settings.ui.accessibilityLevel>2?this.labelUtil.getValue("tcf_notice_title"):"<strong>"+this.labelUtil.getValue("tcf_notice_title")+"</strong>"}),i.line2=this.labelUtil.inject(window.__cookiehub.elements.dialog.line2,{text:n}),i.line3=""}return this.labelUtil.inject(window.__cookiehub.elements.dialog.content,i)}renderLearnMore(){if(window.__cookiehub.settings.ui.links[0].url.length>0||""!=this.labelUtil.getValue("general_learn_more_link")){var e=window.__cookiehub.settings.ui.links[0].url;""!=this.labelUtil.getValue("general_learn_more_link")&&(e=this.labelUtil.getValue("general_learn_more_link"));var t="_self";"/"!=e.substr(0,1)&&e.indexOf(location.hostname)<=0&&(t="_blank"),null!=window.__cookiehub.settings.ui.links[0].target&&""!=window.__cookiehub.settings.ui.links[0].target&&(t=window.__cookiehub.settings.ui.links[0].target);var i={url:e,link:this.labelUtil.getValue("general_learn_more"),target:t};return this.labelUtil.inject(window.__cookiehub.elements.dialog.line3,i)}return""}renderActions(){0==window.__cookiehub.region.framework.indexOf("tcf")&&window.__cookiehub.region.banner.actions.length<3&&(window.__cookiehub.region.banner.actions=["allow","deny","settings"]);var e=window.__cookiehub.region.banner.actions.length>=3,t=window.__cookiehub.elements.dialog.actions;t=e&&-1==window.__cookiehub.region.framework.indexOf("tcf")?t.replace("{{class}}","ch2-dialog-actions-vertical"):t.replace("{{class}}","");for(var i=this.renderButton(0==window.__cookiehub.region.framework.indexOf("tcf")?this.labelUtil.getValue("tcf_btn_allow_all"):this.labelUtil.getValue("widget_btn_allow_all"),"ch2-allow-all-btn ch2-btn-primary"),n=this.renderButton(0==window.__cookiehub.region.framework.indexOf("tcf")?this.labelUtil.getValue("tcf_btn_deny_all"):this.labelUtil.getValue("widget_btn_deny_all"),"ch2-deny-all-btn ch2-btn-primary"),o=this.renderButton(0==window.__cookiehub.region.framework.indexOf("tcf")?this.labelUtil.getValue("tcf_btn_only_necessary"):this.labelUtil.getValue("widget_btn_only_necessary"),"ch2-deny-all-btn ch2-btn-primary"),l=this.renderButton(0==window.__cookiehub.region.framework.indexOf("tcf")?this.labelUtil.getValue("tcf_btn_settings"):this.labelUtil.getValue("widget_btn_settings"),"ch2-open-settings-btn ch2-btn-secondary"),a=this.renderButton(0==window.__cookiehub.region.framework.indexOf("tcf")?this.labelUtil.getValue("tcf_btn_settings"):this.labelUtil.getValue("widget_btn_settings"),"ch2-open-settings-btn ch2-btn-text"),r=this.renderButton(this.labelUtil.getValue("widget_btn_donotsell"),"ch2-open-personal-data-btn ch2-btn-text"),s="",c=0;c<window.__cookiehub.region.banner.actions.length;c++){var h=window.__cookiehub.region.banner.actions[c],b="";"allow"==h&&(b=i),"deny"==h&&(b=n),"deny-alt"==h&&(b=o),"settings"==h&&(b=l),"settings-alt"==h&&(b=a),"donotsell"==h&&(b=r),s+=b}var d={class:e?"h2-dialog-content-morespace":"",buttons:s};return 0==window.__cookiehub.region.framework.indexOf("tcf")&&(d.class="",d.buttons=s),this.labelUtil.inject(t,d)}renderButton(e,t){var i=window.__cookiehub.region.banner.actions.length>=3;-1==t.indexOf("ch2-btn-text")&&(null==window.__cookiehub.settings.ui.legacyUI||1==window.__cookiehub.settings.ui.legacyUI?e.length>24?t+=" ch2-btn-text-xxs":e.length>22?t+=" ch2-btn-text-xs":e.length>18&&(t+=" ch2-btn-text-sm"):e.length>24?t+=" ch2-btn-text-xs":e.length>22&&(t+=" ch2-btn-text-sm")),i&&(t=t.replace("ch2-btn-secondary","ch2-btn-transparent"));var n={label:e,class:t};return this.labelUtil.inject(window.__cookiehub.elements.dialog.button,n)}}var i=window||i;i.__cookiehub.C2Dialog=t}();
// ui/categories.js
!function(){"use strict";function e(e,i,t){return(i=function(e){var i=function(e,i){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,i||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"==typeof i?i:i+""}(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}class i{constructor(i){e(this,"labelUtil",null),e(this,"domUtil",null),e(this,"dialog",null),e(this,"rendered",!1),e(this,"settings",null),e(this,"collapse",null),this.labelUtil=new window.__cookiehub.C2Label,this.domUtil=new window.__cookiehub.C2DOM,this.dialog=new window.__cookiehub.C2Dialog,this.settings=i,this.collapse=new window.__cookiehub.C2Collapse}render(){for(var e=this.labelUtil.inject(window.__cookiehub.elements.settings.button1,{label:this.labelUtil.getValue("widget_btn_allow_all")}),i=this.labelUtil.inject(window.__cookiehub.elements.settings.button3,{label:this.labelUtil.getValue("widget_btn_deny_all")}),t=this.labelUtil.inject(window.__cookiehub.elements.settings.button3,{label:this.labelUtil.getValue("widget_btn_only_necessary")}),o="",n="",l=0;l<window.__cookiehub.region.preferences.actions.length;l++){var s=window.__cookiehub.region.preferences.actions[l],c="";"allow"==s&&(c=e),"deny"==s&&(c=i),"deny-alt"==s&&(c=t),0==l?o+=c:n+=c}var r="https://www.cookiehub.com/welcome";if(null!=window.__cookiehub.affiliate){var a=r.includes("?")?"&":"?";r=r+a+"al="+window.__cookiehub.affiliate}var d=d=this.labelUtil.inject(window.__cookiehub.elements.branding,{brandingUrl:r}),b={branding:window.__cookiehub.settings.ui.hideBranding?"":d,line1:this.labelUtil.inject(window.__cookiehub.elements.settings.line1,{text:this.labelUtil.getValue("settings_message")}),line2:this.dialog.renderLearnMore(),options:this.renderOptions(),button1:o,button3:n};return this.labelUtil.inject(window.__cookiehub.elements.settings.content,b)}renderOptions(){for(var e="",i=0;i<window.__cookiehub.categories.length;i++){var t=window.__cookiehub.categories[i];if(t.show)if("services"==window.__cookiehub.region.preferences.consentMethod){var o="",n="";if(null!=window.__cookiehub.services){for(const e in window.__cookiehub.services)window.__cookiehub.services[e].category_id==t.id&&(n+=this.settings.renderService(window.__cookiehub.services[e],"c-sv-"+t.id));n.length>0&&(o=this.labelUtil.inject(window.__cookiehub.elements.settings.options2.container,{title:"",options:n}))}e+=this.settings.renderOption("c-"+t.id,!1,t.editable,this.labelUtil.getValue(t.id+"_title"),this.labelUtil.getValue(t.id+"_description"),o)}else{o="",n="";if(null!=window.__cookiehub.services){for(const e in window.__cookiehub.services)window.__cookiehub.services[e].category_id==t.id&&(n+=this.settings.renderServiceTextOnly(window.__cookiehub.services[e],"c-sv-"+t.id));n.length>0&&(o=this.labelUtil.inject(window.__cookiehub.elements.settings.services.container,{title:"",options:n}))}var l={switch:this.labelUtil.inject(window.__cookiehub.elements.settings.options.switch,{id:"c-"+t.id,name:"c-"+t.id,"is-checked":"","is-disabled":t.editable?"":"  disabled",title:this.labelUtil.getValue(t.id+"_title")}),details:this.labelUtil.inject(window.__cookiehub.elements.settings.options.details,{elementOpen:window.__cookiehub.settings.ui.accessibilityLevel>2?"h3":'p aria-level="3" role="heading"',elementClose:window.__cookiehub.settings.ui.accessibilityLevel>2?"h3":"p",id:"c-"+t.id,title:window.__cookiehub.settings.ui.accessibilityLevel>2?this.labelUtil.getValue(t.id+"_title"):"<strong>"+this.labelUtil.getValue(t.id+"_title")+"</strong>",text:this.labelUtil.getValue(t.id+"_description"),services:o})};e+=this.labelUtil.inject(window.__cookiehub.elements.settings.options.option,l)}}return"services"==window.__cookiehub.region.preferences.consentMethod?this.labelUtil.inject(window.__cookiehub.elements.settings.options2.container,{title:"",options:e}):this.labelUtil.inject(window.__cookiehub.elements.settings.options.container,{options:e})}}var t=window||t;t.__cookiehub.C2Categories=i}();
// ui/collapse.js
!function(){"use strict";function t(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}class e{constructor(){t(this,"domUtil",null),this.domUtil=new window.__cookiehub.C2DOM}attachEvents(){var t=this.domUtil.getElementsByClass("ch2-collapse-toggler");this.domUtil.attachCollapseEvents(t)}}var i=window||i;i.__cookiehub.C2Collapse=e}();
// ui/checkboxes.js
!function(){"use strict";function e(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var o=i.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class t{constructor(){e(this,"domUtil",null),e(this,"tcfHelpers",null),this.domUtil=new window.__cookiehub.C2DOM,this.tcfHelpers="function"==typeof window.__cookiehub.C2TcfHelpers?new window.__cookiehub.C2TcfHelpers:null}updateCheckboxes(e,t,i,o,s=!1){if("c"==t)for(var c=this.domUtil.getElementsByClass("ch2-switch-value"),n=0;n<c.length;n++){2==(l=c[n].name.split("-")).length&&"c"==l[0]&&l[1]==e&&(c[n].checked=i)}else if("tp"==t||"tsf"==t)for(c=this.domUtil.getElementsByClass("ch2-switch-value"),n=0;n<c.length;n++){4==(l=c[n].name.split("-")).length?c[n].name=="ts-"+t+"-"+l[2]+"-"+e?(c[n].checked=i,this.updateCheckboxes(l[2],"ts",i,o),o&&this.checkPartners(e,t,i)):c[n].name=="tv-"+t+"-"+l[2]+"-"+e&&(c[n].checked=i,this.updateCheckboxes(l[2],"tv",i,o),o&&this.checkPartners(e,t,i)):2==l.length&&c[n].name==t+"-"+e&&(c[n].checked=i,o&&this.checkPartners(e,t,i))}else if("ts"==t){var r=null;for(c=this.domUtil.getElementsByClass("ch2-switch-value"),n=0;n<c.length;n++)c[n].name=="ts-"+e&&(r=c[n]);if(null!=r)if(s){0==i&&"true"==r.dataset.partial&&(i=!0);for(c=this.domUtil.getElementsByClass("ch2-switch-value"),n=0;n<c.length;n++){4==(l=c[n].name.split("-")).length&&c[n].name=="ts-"+l[1]+"-"+e+"-"+l[3]&&this.updateCheckboxes(l[3],l[1],i,o)}}else{var a=!0,h=!0;for(n=0;n<c.length;n++){var l;if(4==(l=c[n].name.split("-")).length&&c[n].name=="ts-"+l[1]+"-"+e+"-"+l[3]&&(c[n].checked?h=!1:a=!1,!h&&!a))break}a?(r.checked=!0,r.dataset.partial=!1):h?(r.checked=!1,r.dataset.partial=!1):(r.checked=!0,r.dataset.partial=!0)}}}setIdInArray(e,t,i){const o=e.indexOf(t);return i?-1===o&&e.push(t):-1!==o&&e.splice(o,1),e}checkPartners(e,t,i){if(null!=this.tcfHelpers){var o=this.tcfHelpers.getAllVendors(),s=this.domUtil.getElementsByClass("ch2-switch-value"),c=Number(e);"tp"==t?window.cookiehubState.tcfChoice.purposes=this.setIdInArray(window.cookiehubState.tcfChoice.purposes,c,i):"tsf"==t&&(window.cookiehubState.tcfChoice.specialFeatures=this.setIdInArray(window.cookiehubState.tcfChoice.specialFeatures,c,i));for(var n=0;n<o.length;n++){var r=o[n];if(r.id<1e6){if("tp"==t&&r.purposes.indexOf(c)<0)continue;if("tsf"==t&&r.specialFeatures.indexOf(c)<0)continue;for(var a=!1,h=0;h<window.cookiehubState.tcfChoice.purposes.length;h++)if(r.purposes.indexOf(window.cookiehubState.tcfChoice.purposes[h])>-1){a=!0;break}if(!a)for(h=0;h<window.cookiehubState.tcfChoice.specialFeatures.length;h++)if(r.specialFeatures.indexOf(window.cookiehubState.tcfChoice.specialFeatures[h])>-1){a=!0;break}window.cookiehubState.tcfChoice.purposeVendors=this.setIdInArray(window.cookiehubState.tcfChoice.purposeVendors,r.id,a)}else if(r.id>3e6&&r.id<4e6){if("tp"==t&&2!=c||"tsf"==t)continue;window.cookiehubState.tcfChoice.additionalVendors=this.setIdInArray(window.cookiehubState.tcfChoice.additionalVendors,r.id,window.cookiehubState.tcfChoice.purposes.indexOf(2)>-1)}}for(s=this.domUtil.getElementsByClass("ch2-switch-value"),n=0;n<s.length;n++)if("tv-"==s[n].name.substr(0,3)){var l=s[n].name.split("-"),d=parseInt(l[1]);d<1e6?s[n].checked=window.cookiehubState.tcfChoice.purposeVendors.indexOf(d)>-1:d>3e6&&d<4e6&&(s[n].checked=window.cookiehubState.tcfChoice.additionalVendors.indexOf(d)>-1)}}}}var i=window||i;i.__cookiehub.C2Checkboxes=t}();
// ui/settings.js
!function(){"use strict";function e(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class t{constructor(){e(this,"labelUtil",null),e(this,"domUtil",null),e(this,"categories",null),e(this,"declaration",null),e(this,"dialog",null),e(this,"rendered",!1),e(this,"vendors",null),e(this,"legitimateInterest",null),e(this,"collapse",null),e(this,"checkboxes",null),e(this,"gtm",null),this.labelUtil=new window.__cookiehub.C2Label,this.domUtil=new window.__cookiehub.C2DOM,this.declaration="function"==typeof window.__cookiehub.C2Declaration?this.declaration=new window.__cookiehub.C2Declaration:null,this.personalData="function"==typeof window.__cookiehub.C2PersonalData?this.personalData=new window.__cookiehub.C2PersonalData:null,this.gtm="function"==typeof window.__cookiehub.C2GTM?new window.__cookiehub.C2GTM:null,this.dialog=new window.__cookiehub.C2Dialog,0==window.__cookiehub.region.framework.indexOf("tcf")&&"function"==typeof window.__cookiehub.C2TCF?(this.purposes=new window.__cookiehub.C2Purposes(this),this.vendors=new window.__cookiehub.C2VendorsTCF(this),this.legitimateInterest=new window.__cookiehub.C2LegitimateInterest(this)):(this.categories="function"==typeof window.__cookiehub.C2Categories?this.categories=new window.__cookiehub.C2Categories(this):null,this.vendors="function"==typeof window.__cookiehub.C2Vendors?this.vendors=new window.__cookiehub.C2Vendors(this):null),this.collapse=new window.__cookiehub.C2Collapse,this.checkboxes=new window.__cookiehub.C2Checkboxes}isEnabled(){return this.tabsEnabled()>0}tabsEnabled(){var e=0;return window.__cookiehub.region.preferences.features.categories&&e++,window.__cookiehub.region.preferences.features.purposes&&e++,window.__cookiehub.region.preferences.features.purposes&&e++,window.__cookiehub.region.preferences.features.declaration&&e++,window.__cookiehub.region.preferences.features.personalData&&e++,window.__cookiehub.region.preferences.features.vendor&&e++,e}tabEnabledByDefault(e){return window.__cookiehub.region.preferences.features.categories?"categories"==e:window.__cookiehub.region.preferences.features.purposes?"purposes"==e:window.__cookiehub.region.preferences.features.personalData?"personalData"==e:window.__cookiehub.region.preferences.features.declaration?"declaration"==e:window.__cookiehub.region.preferences.features.vendor?"vendors"==e:!!window.__cookiehub.region.preferences.features.purposes&&"legitimateInterest"==e}el(){var e=this.domUtil.getElementsByClass("ch2-settings");return e.length>0?e[0]:null}render(){if(this.isEnabled()){var e="";if(window.__cookiehub.region.preferences.features.categories&&null!=this.categories){var t=this.categories.render();this.tabEnabledByDefault("categories")&&(t=t.replace(new RegExp('style="display:none"',"g"),"")),e+=t}if(window.__cookiehub.region.preferences.features.purposes&&"function"==typeof window.__cookiehub.C2TCF&&null!=this.purposes){t=this.purposes.render();this.tabEnabledByDefault("purposes")&&(t=t.replace(new RegExp('style="display:none"',"g"),"")),e+=t}if(window.__cookiehub.region.preferences.features.purposes&&"function"==typeof window.__cookiehub.C2TCF&&null!=this.legitimateInterest){t=this.legitimateInterest.render();this.tabEnabledByDefault("legitimateInterest")&&(t=t.replace(new RegExp('style="display:none"',"g"),"")),e+=t}if(window.__cookiehub.region.preferences.features.declaration&&null!=this.declaration){var i=this.declaration.render();this.tabEnabledByDefault("declaration")&&(i=i.replace(new RegExp('style="display:none"',"g"),"")),e+=i}if(window.__cookiehub.region.preferences.features.personalData&&null!=this.personalData){var n=this.personalData.render();this.tabEnabledByDefault("personalData")&&(n=n.replace(new RegExp('style="display:none"',"g"),"")),e+=n}if(window.__cookiehub.region.preferences.features.vendor&&null!=this.vendors){var o=this.vendors.render();this.tabEnabledByDefault("vendors")&&(o=o.replace(new RegExp('style="display:none"',"g"),"")),e+=o}var s={header:this.renderHeader(),class:this.tabsEnabled()?" ch2-settings-scan":"",tabbar:this.tabsEnabled()>0?this.renderTabBar():"",content:e,actions:this.renderActions()};return this.rendered=!0,this.labelUtil.inject(window.__cookiehub.elements.settings.container,s)}return""}renderActions(){var e="https://www.cookiehub.com/welcome";if(null!=window.__cookiehub.affiliate){var t=e.includes("?")?"&":"?";e=e+t+"al="+window.__cookiehub.affiliate}var i=i=this.labelUtil.inject(window.__cookiehub.elements.branding,{brandingUrl:e}),n={branding:window.__cookiehub.settings.ui.hideBranding?"":i,button2:this.labelUtil.inject(window.__cookiehub.elements.settings.button2,{label:this.labelUtil.getValue("settings_btn_save")})};return this.labelUtil.inject(window.__cookiehub.elements.settings.actions,n)}renderHeader(){var e=this.labelUtil.getValue(0==window.__cookiehub.region.framework.indexOf("tcf")?"tcf_settings_title":"settings_title"),t={elementOpen:window.__cookiehub.settings.ui.accessibilityLevel>2?"h2":'p aria-level="2" role="heading"',elementClose:window.__cookiehub.settings.ui.accessibilityLevel>2?"h2":"p",close:this.labelUtil.getValue("general_close"),title:window.__cookiehub.settings.ui.accessibilityLevel>2?e:"<strong>"+e+"</strong>"};return this.labelUtil.inject(window.__cookiehub.elements.settings.header,t)}renderTabBar(){var e=[];window.__cookiehub.region.preferences.features.categories&&e.push({id:"ch2-settings",name:this.labelUtil.getValue("general_categories"),active:this.tabEnabledByDefault("categories")}),window.__cookiehub.region.preferences.features.purposes&&e.push({id:"ch2-settings",name:this.labelUtil.getValue("purpose_tab"),active:this.tabEnabledByDefault("purposes")}),window.__cookiehub.region.preferences.features.purposes&&e.push({id:"ch2-legitimate-interest",name:this.labelUtil.getValue("tcf_legitimate_interest_tab"),active:this.tabEnabledByDefault("legitimateInterest")}),window.__cookiehub.region.preferences.features.vendor&&e.push({id:"ch2-vendors",name:0==window.__cookiehub.region.framework.indexOf("tcf")?this.labelUtil.getValue("tcf_vendor_tab"):this.labelUtil.getValue("vendor_tab"),active:this.tabEnabledByDefault("vendors")}),window.__cookiehub.region.preferences.features.personalData&&e.push({id:"ch2-personal-data",name:this.labelUtil.getValue("personal_data_tab"),active:this.tabEnabledByDefault("personalData")}),window.__cookiehub.region.preferences.features.declaration&&e.push({id:"ch2-declaration",name:this.labelUtil.getValue("declaration_tab"),active:this.tabEnabledByDefault("declaration")});for(var t="",i=0;i<e.length;i++){var n={element:window.__cookiehub.settings.ui.accessibilityLevel>2?"button":"a",active:e[i].active?"active":"",selected:e[i].active,link:"#"+e[i].id,name:e[i].name,tabId:e[i].id};t+=this.labelUtil.inject(window.__cookiehub.elements.settings.tabbar.item,n)}var o={items:t};return this.labelUtil.inject(window.__cookiehub.elements.settings.tabbar.container,o)}renderService(e,t=null){var i="sv",n="";if(null!=t&&(i=t),null!=e){var o="",s='<div class="ch2-tag-list">';if(null!=e.cookies&&e.cookies.length>0)for(var l=0;l<window.__cookiehub.cookies.length;l++)e.cookies.indexOf(window.__cookiehub.cookies[l].id)>=0&&(o+="<li>"+window.__cookiehub.cookies[l].display_name+"</li>");o.length>0&&(s+="<p>Cookies</p><ul>"+o+"</ul>"),s+="</div>";var a=this.labelUtil.getSValue(e.id);null==a&&(a=""),n+=this.renderOption(i+"-"+e.id,!0,1!=e.category_id,e.name,a,s)}return n}renderServiceTextOnly(e,t=null){var i="sv",n="";null!=t&&(i=t);var o=i+"-"+e.id;if(null!=e){var s="";if(null!=e.cookies&&e.cookies.length>0)for(var l=0;l<window.__cookiehub.cookies.length;l++)e.cookies.indexOf(window.__cookiehub.cookies[l].id)>=0&&(s+="<li>"+window.__cookiehub.cookies[l].display_name+"</li>");s='<div class="ch2-settings-so-cookies"><ul>'+s+"</ul></div>";for(var a="",r=null,c=0;c<window.__cookiehub.vendors.length;c++)if(window.__cookiehub.vendors[c].id==e.vendor_id){r=window.__cookiehub.vendors[c];break}if(null!=r&&(r.policyUrl||r.cookiePolicy||r.policy)){if(a+='<div class="ch2-settings-so-vendor"><ul>',r.policyUrl&&(a+='<li><a href="'+r.policyUrl+'" aria-label="'+r.name+' Privacy Policy" target="_blank" rel="noopener" tabindex="0">View privacy policy</a></li>'),r.policy){let e=this.labelUtil.getValue("vendor_privacy_policy");a+='<li><a href="'+r.policy+'" aria-label="'+r.name+" "+e+'" target="_blank" rel="noopener" tabindex="0">'+e+"</a></li>"}if(r.cookiePolicy){let e=this.labelUtil.getValue("vendor_cookie_policy");a+='<li><a href="'+r.cookiePolicy+'" aria-label="'+r.name+" "+e+'" target="_blank" rel="noopener" tabindex="0">'+e+"</a></li>"}a+="</ul></div>"}var d=this.labelUtil.getSValue(e.id);null==d&&(d="");var h={toggler:this.labelUtil.inject(window.__cookiehub.elements.settings.services.toggler,{id:o,title:e.name}),details:this.labelUtil.inject(window.__cookiehub.elements.settings.services.details,{id:o,title:e.name,text:d,links:a,cookies:s})};""==s&&""==d&&(h.details=""),n+=this.labelUtil.inject(window.__cookiehub.elements.settings.services.option,h)}return n}attachEvents(){if(this.rendered){this.collapse.attachEvents(),this.domUtil.addEvent("ch2-select-tab",function(e,t){e.preventDefault();var i=e.currentTarget;if(!t.hasClass(i,"active")){var n=i.getAttribute("aria-controls");if(""!=n)(new window.__cookiehub.C2Settings).selectTab(n,!0)}}),this.domUtil.addEvent("ch2-settings-scroller",function(e,t){var i=e.target,n=document.getElementById("ch2-settings-tablist"),o=n.scrollWidth,s=n.offsetWidth;if(o>s){var l=s-o;if("ch2-scroller-left"==i.id){n.animate({left:[l+"px","0px"]},{duration:400,easing:"ease-in-out",iterations:1}),n.style.left="0px",i.style.visibility="hidden";var a=document.getElementById("ch2-scroller-right");null!=a&&(a.style.visibility="visible")}if("ch2-scroller-right"==i.id){n.animate({left:["0px",l+"px"]},{duration:400,easing:"ease-in-out",iterations:1}),n.style.left=l+"px",i.style.visibility="hidden";var r=document.getElementById("ch2-scroller-left");null!=r&&(r.style.visibility="visible")}}});var e=function(){var e=document.getElementById("ch2-settings-tablist"),t=e.scrollWidth,i=e.offsetWidth,n=i-t,o=parseInt(window.getComputedStyle(e).left),s=o<0?"left":"right";o<0&&(e.style.left=n+"px"),document.getElementById("ch2-scroller-"+s).style.visibility=t<=i?"hidden":"visible"};window.addEventListener("resize",e),window.addEventListener("touchstart",e);for(var t=this,i=this.checkboxes,n=this.domUtil.getElementsByClass("ch2-switch-value"),o=0;o<n.length;o++)"true"!=n[o].dataset.event&&n[o].addEventListener("click",function(e){var n=e.target;if(n.name.indexOf("-")>0&&"personal-data"!=n.name){var o=n.name.split("-");if("sv"==o[1])t.setServiceState(o[3],n.checked,!0);else if("v"==o[0])t.setVendorState(o[1],n.checked,!0);else if("c"==o[0])t.setCategoryState(o[1],n.checked,!0);else if("tp"==o[1])i.updateCheckboxes(o[3],"tp",n.checked,!0,!0);else if("tp"==o[0])i.updateCheckboxes(o[1],"tp",n.checked,!0,!0);else if("tsf"==o[1])i.updateCheckboxes(o[3],"tsf",n.checked,!0,!0);else if("tsf"==o[0])i.updateCheckboxes(o[1],"tsf",n.checked,!0,!0);else if("ts"==o[0])i.updateCheckboxes(o[1],"ts",n.checked,!0,!0);else if("tv"==o[0])i.updateCheckboxes(o[1],"tv",n.checked,!0,!0);else if("tlp"==o[0]){const e=window.cookiehubState.tcfChoice.legitimateInterests.indexOf(parseInt(o[1]));n.checked&&-1===e?window.cookiehubState.tcfChoice.legitimateInterests.push(id):n.checked||-1===e||window.cookiehubState.tcfChoice.legitimateInterests.splice(e,1)}}else if("personal-data"==n.name&&null!=window.__cookiehub.region.preferences.features.ccpaLink&&Array.isArray(window.__cookiehub.region.preferences.features.ccpaLink))for(let e=0;e<window.__cookiehub.region.preferences.features.ccpaLink.length;e++){let t=window.__cookiehub.region.preferences.features.ccpaLink[e];!n.checked&&t<10?i.updateCheckboxes(t,"c",!1,!1):n.checked&&t>=10&&i.updateCheckboxes(t-10,"c",!0,!1)}}),n[o].dataset.event=!0;var s=this.el(),l=s.getElementsByClassName("ch2-close-settings-btn");for(o=0;o<l.length;o++)l[o].addEventListener("click",e=>{window.__cookiehub.core.closeSettings(e),null!=window.__cookiehub.tcfv2&&window.__cookiehub.tcfv2.updateDisplayStatus()},!1);var a=s.getElementsByClassName("ch2-save-settings-btn");for(o=0;o<a.length;o++)a[o].addEventListener("click",window.__cookiehub.core.saveSettings.bind(window.__cookiehub.core),!1);var r=s.getElementsByClassName("ch2-select-tab"),c=document.getElementById("ch2-settings-tablist");let _=0;for(o=0;o<r.length;o++)(function(e){r[e].addEventListener("click",function(t){_=e})})(o);c.addEventListener("keydown",function(e){"ArrowRight"!==e.key&&"ArrowLeft"!==e.key||("ArrowRight"===e.key?(_++,_>=r.length&&(_=0)):"ArrowLeft"===e.key&&(_--,_<0&&(_=r.length-1)),t.selectTab(r[_].id.replace("-tab",""),!0))});var d=s.getElementsByClassName("ch2-allow-all-btn");for(o=0;o<d.length;o++)d[o].addEventListener("click",window.__cookiehub.core.allowCookies.bind(window.__cookiehub.core),!1);var h=s.getElementsByClassName("ch2-deny-all-btn");for(o=0;o<h.length;o++)h[o].addEventListener("click",window.__cookiehub.core.denyCookies.bind(window.__cookiehub.core),!1);var u=s.getElementsByClassName("ch2-learn-more");for(o=0;o<u.length;o++)u[o].addEventListener("click",window.__cookiehub.core.learnMoreClick.bind(window.__cookiehub.core),!1);var b=document.getElementsByClassName("ch2-settings"),w=b.length>0?b[0]:null,g=document.getElementsByClassName("ch2-settings-content"),f=g.length>0?g[0]:null;document.addEventListener("keydown",function(e){var t=null;if(("Tab"===e.key||9===e.keyCode)&&(null!=w&&w.classList.contains("ch2-visible")&&(t=w),null!=t)){for(var i=Array.from(t.querySelectorAll('button:not([tabindex="-1"]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(e=>"none"!==getComputedStyle(e).display),n=i[0],o=i[i.length-1],s=!0,l=0;l<i.length;l++)if(i[l]===document.activeElement){s=!1;break}s&&f==document.activeElement&&(s=!1),s?(n.focus(),e.preventDefault()):e.shiftKey?document.activeElement===n&&(o.focus(),e.preventDefault()):document.activeElement===o&&(n.focus(),e.preventDefault())}})}}selectTab(e,t){if(null==e&&(null!=document.getElementById("ch2-settings")?e="ch2-settings":null!=document.getElementById("ch2-personal-data")?e="ch2-personal-data":null!=document.getElementById("ch2-declaration")?e="ch2-declaration":null!=document.getElementById("ch2-vendors")&&(e="ch2-vendors")),null!=e){if("ch2-personal-data"!=e||window.__cookiehub.region.preferences.features.personalData||(e="ch2-settings"),"ch2-vendors"==e&&(window.__cookiehub.vendorLists=window.__cookiehub.vendorLists||[],null!=window.__cookiehub.vendorLists.global&&document.getElementById("ch2-tcf-vendorlist-global").innerHTML.length<10&&window.__cookiehub.vendorLists.global.toggle("global",!0)),"ch2-legitimate-interest"==e){window.__cookiehub.vendorLists=window.__cookiehub.vendorLists||[];var i=Object.keys(window.__cookiehub.vendorLists);for(var n in Object.keys(window.__cookiehub.vendorLists)){if(i.length>0)"li-"==(o=i[n]).substr(0,3)&&null!=window.__cookiehub.vendorLists[o]&&document.getElementById("ch2-tcf-vendorlist-"+o).innerHTML.length<10&&window.__cookiehub.vendorLists[o].toggle(o,!1)}}if("ch2-settings"==e){window.__cookiehub.vendorLists=window.__cookiehub.vendorLists||[];i=Object.keys(window.__cookiehub.vendorLists);for(var n in Object.keys(window.__cookiehub.vendorLists)){var o;if(i.length>0)"t"==(o=i[n]).substr(0,1)&&null!=window.__cookiehub.vendorLists[o]&&document.getElementById("ch2-tcf-vendorlist-"+o).innerHTML.length<10&&window.__cookiehub.vendorLists[o].toggle(o,!1)}}"ch2-declaration"==e&&this.domUtil.getElementsByClass("ch2-declaration-choice").length>0&&window.__cookiehub.settings.ui.showToken&&window.cookiehubState.choice.answered&&null!=window.cookiehubState.choice.token&&(this.domUtil.getElementsByClass("ch2-declaration-choice")[0].innerHTML=this.declaration.renderToken());for(var s=this.domUtil.getElementsByClass("ch2-select-tab"),l=0;l<s.length;l++)s[l].getAttribute("id")==e+"-tab"?(s[l].classList.add("active"),s[l].setAttribute("aria-selected","true"),s[l].setAttribute("tabindex",0),t&&s[l].focus()):(s[l].classList.remove("active"),s[l].setAttribute("aria-selected","false"),s[l].setAttribute("tabindex",-1));var a=this.domUtil.getElementsByClass("ch2-settings-tab-container");for(l=0;l<a.length;l++)a[l].style.display=a[l].id==e?"block":"none"}}updateOptionState(){for(var e=this.domUtil.getElementsByClass("ch2-switch-value"),t=0;t<e.length;t++)if("personal-data"==e[t].name)if(window.cookiehubState.choice.answered)e[t].checked=window.cookiehubState.choice.allowSale;else{var i=window.__cookiehub.region.preferences.features.ccpaAllowSaleDefault;e[t].checked=(void 0===i||i)&&!window.cookiehubState.choice.dnt}else if(e[t].name.indexOf("-")>-1){var n=window.cookiehubState.getCheckboxState(e[t].name);e[t].checked=n}for(t=0;t<e.length;t++)if("personal-data"!=e[t].name&&e[t].name.indexOf("-")>-1){var o=e[t].name.split("-");4==o.length&&"sv"==o[1]?this.setServiceState(o[3],e[t].checked,!0):4==o.length&&"ts"==o[0]&&this.checkboxes.updateCheckboxes(o[3],o[1],e[t].checked,!1,!0)}}open(e){if(cookiehubState.displayStatus="visible",null!=window.__cookiehub.gpp&&"ccpa"==window.__cookiehub.region.framework&&window.__cookiehub.gpp.setNoticeShowing(),null!=window.__cookiehub.tcfv2&&window.__cookiehub.tcfv2.updateDisplayStatus(),this.rendered){if(this.updateOptionState(),!this.domUtil.hasClass(this.el(),"ch2-visible")){var t=this.domUtil.getFirstElementByClass("ch2-close-settings-btn");null!=t&&(t.style.display=window.cookiehubState.choice.answered?"block":"none"),this.domUtil.addClassMulti("ch2-settings","ch2-visible"),this.domUtil.addClassMulti("ch2-container","ch2-block ch2-scale"),document.getElementsByTagName("body")[0].style.overflow="hidden",null!=this.gtm&&this.gtm.triggerEvent("settings")}this.collapse.attachEvents(),this.selectTab(e,!1);var i=document.getElementById("ch2-settings-tablist");i.scrollWidth<=i.offsetWidth&&(document.getElementById("ch2-scroller-right").style.visibility="hidden")}}close(){this.rendered&&(this.domUtil.removeClassMulti("ch2-settings","ch2-visible"),this.domUtil.removeClassMulti("ch2-container","ch2-block ch2-scale"),document.getElementsByTagName("body")[0].style.removeProperty("overflow"))}setCategoryState(e,t,i=!1){for(var n=null,o=this.domUtil.getElementsByClass("ch2-switch-value"),s=0;s<o.length;s++)if(o[s].name=="c-"+e){n=o[s];break}if(null!=n){if(1==e&&!t){n.checked=!0,n.dataset.partial=!1;for(s=0;s<o.length;s++)if(o[s].name.indexOf("c-sv-1-")>-1){var l=o[s].name.split("-");this.setServiceState(parseInt(l[3]),!0,!0)}return}if(i){n.checked=t,n.dataset.partial=!1;for(s=0;s<o.length;s++)if(o[s].name.indexOf("c-sv-"+e+"-")>-1){l=o[s].name.split("-");this.setServiceState(parseInt(l[3]),t)}}else{var a=!0,r=!0;for(s=0;s<o.length&&(!(o[s].name.indexOf("c-sv-"+e+"-")>-1)||(o[s].checked?r=!1:a=!1,r||a));s++);a?(n.checked=!0,n.dataset.partial=!1):r?(n.checked=!1,n.dataset.partial=!1):(n.checked=!0,n.dataset.partial=!0)}}}setServiceState(e,t,i=!1){for(var n=[],o=this.domUtil.getElementsByClass("ch2-switch-value"),s=0;s<o.length;s++){if(o[s].name.indexOf("-"+e)>-1)4==(c=o[s].name.split("-")).length&&parseInt(c[3])==e&&n.push(o[s])}if(n.length>0)for(var l=0;l<n.length;l++){var a=n[l];if(!a.checked&&t||a.checked&&!t||i){a.checked=t;var r=a.name.split("-");for(s=0;s<o.length;s++){var c=o[s].name.split("-");if(o[s].name=="v-"+r[2]){this.setVendorState(parseInt(c[1]),t);break}if(o[s].name=="c-"+r[2]){this.setCategoryState(parseInt(c[1]),t);break}}}}}setVendorState(e,t,i=!1){for(var n=null,o=this.domUtil.getElementsByClass("ch2-switch-value"),s=0;s<o.length;s++)if(o[s].name=="v-"+e){n=o[s];break}if(null!=n)if(i){n.checked=t,n.dataset.partial=!1;for(s=0;s<o.length;s++)if(o[s].name.indexOf("v-sv-"+e+"-")>-1&&!o[s].disabled){var l=o[s].name.split("-");this.setServiceState(parseInt(l[3]),t)}}else{var a=!0,r=!0;for(s=0;s<o.length&&(!(o[s].name.indexOf("v-sv-"+e+"-")>-1)||(o[s].checked?r=!1:a=!1,r||a));s++);a?(n.checked=!0,n.dataset.partial=!1):r?(n.checked=!1,n.dataset.partial=!1):(n.checked=!0,n.dataset.partial=!0)}}renderOption(e,t,i,n,o="",s=""){null==o&&(o="");var l=this.labelUtil.inject(window.__cookiehub.elements.settings.options2.switch,{id:e,name:e,"is-checked":t?" checked":"","is-disabled":i?"":" disabled",title:n});i||(l="");var a={toggler:this.labelUtil.inject(""!=o||""!=s?window.__cookiehub.elements.settings.options2.toggler:window.__cookiehub.elements.settings.options2.toggler2,{id:e,switch:l,title:n}),details:this.labelUtil.inject(window.__cookiehub.elements.settings.options2.details,{id:e,title:n,text:o,links:s})};return""==s&&""==o&&(a.details=""),this.labelUtil.inject(window.__cookiehub.elements.settings.options2.option,a)}}var i=window||i;i.__cookiehub.C2Settings=t}();
// ui/declaration.js
!function(){"use strict";function e(e,i,t){return(i=function(e){var i=function(e,i){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,i||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"==typeof i?i:i+""}(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}class i{constructor(){e(this,"labelUtil",null),e(this,"dialog",null),e(this,"region",null),this.region=window.__cookiehub.region,this.labelUtil=new window.__cookiehub.C2Label,this.dialog=new window.__cookiehub.C2Dialog}isEnabled(){return window.__cookiehub.region.preferences.features.declaration}getCookies(e){for(var i=[],t=0;t<window.__cookiehub.cookies.length;t++)window.__cookiehub.cookies[t].category==e&&i.push(window.__cookiehub.cookies[t]);return i}render(e=!1){if(this.isEnabled()||e){var i={line1:this.labelUtil.inject(window.__cookiehub.elements.declaration.line1,{text:this.labelUtil.getValue("declaration_message")}),line2:this.dialog.renderLearnMore(),token:this.renderToken(),categories:this.renderCategories()};if(e){var t=this.labelUtil.inject("{{line1}}{{line2}}{{token}}{{categories}}",i);return t=(t=(t=(t=(t=(t=(t=t.replace(/ch2-settings-options/g,"cookiehub-categories")).replace(/ch2-declaration-category/g,"cookiehub-category")).replace(/ch2-declaration-choice/g,"cookiehub-choice")).replace(/class=\"ch2-header\"/g,"")).replace(/ch2-catlbl/g,"cookiehub-catlbl")).replace(/ch2-catdesc/g,"cookiehub-catdesc")).replace(/class=\"ch2-learn-more\"/g,"")}return this.labelUtil.inject(window.__cookiehub.elements.declaration.container,i)}return""}renderToken(){var e="";if(window.__cookiehub.settings.ui.showToken&&window.cookiehubState.choice.answered&&null!=window.cookiehubState.choice.token){var i=this.labelUtil.getValue("token_title"),t=this.labelUtil.inject(window.__cookiehub.elements.declaration.token.line1,{text:this.labelUtil.getValue("token_text")}),o=!0,l=!0,n="";if(!window.cookiehubState.choice.allAllowed)for(var a=0;a<window.__cookiehub.categories.length;a++){var s=window.__cookiehub.categories[a];-1!==window.cookiehubState.choice.categories.indexOf(s.id)?(n.length>0&&(n+=", "),n+=this.labelUtil.getValue(s.name+"_title"),s.id>1&&(l=!1)):o=!1}o?n=this.labelUtil.getValue("token_allowed"):l&&(n=this.labelUtil.getValue("token_denied"));var c=new Date(window.cookiehubState.choice.timestamp.replace("Z","+00:00")),r=this.labelUtil.inject(window.__cookiehub.elements.declaration.token.consent,{categoriesTitle:this.labelUtil.getValue("token_categories"),categories:n,tokenTitle:this.labelUtil.getValue("token_token"),token:window.cookiehubState.choice.token,datetimeTitle:this.labelUtil.getValue("token_datetime"),datetime:c.toLocaleString("de-DE")});e=this.labelUtil.inject(window.__cookiehub.elements.declaration.token.container,{elementOpen:window.__cookiehub.settings.ui.accessibilityLevel>2?"h3":'p aria-level="3" role="heading"',elementClose:window.__cookiehub.settings.ui.accessibilityLevel>2?"h3":"p",title:window.__cookiehub.settings.ui.accessibilityLevel>2?i:"<strong>"+i+"</strong>",line1:t,consent:r})}else window.__cookiehub.settings.ui.showToken&&(e=e=this.labelUtil.inject(window.__cookiehub.elements.declaration.token.container,{elementOpen:window.__cookiehub.settings.ui.accessibilityLevel>2?"h3":'p aria-level="3" role="heading"',elementClose:window.__cookiehub.settings.ui.accessibilityLevel>2?"h3":"p",title:"",line1:"",consent:""}));return e}renderCategories(){for(var e="",i=0;i<window.__cookiehub.categories.length;i++){var t=window.__cookiehub.categories[i],o="",l=this.getCookies(t.id);if(null!=l&&l.length>0)for(var n=0;n<l.length;n++){var a=this.labelUtil.getCDValue(l[n].name,l[n].description),s=l[n].expiry+"";"Session"==s?s=this.labelUtil.getValue("general_session"):"Persistent"==s?(s=this.labelUtil.getValue("general_persistent"))||(s="Persistent"):s=(s=(s=(s=(s=(s=(s=(s=(s=(s=s.replace("{hour}",this.labelUtil.getValue("general_hour"))).replace("{hours}",this.labelUtil.getValue("general_hours"))).replace("{week}",this.labelUtil.getValue("general_week"))).replace("{weeks}",this.labelUtil.getValue("general_weeks"))).replace("{day}",this.labelUtil.getValue("general_day"))).replace("{days}",this.labelUtil.getValue("general_days"))).replace("{month}",this.labelUtil.getValue("general_month"))).replace("{months}",this.labelUtil.getValue("general_months"))).replace("{year}",this.labelUtil.getValue("general_year"))).replace("{years}",this.labelUtil.getValue("general_years"));var c="";l[n].third_party&&(c+="<span>"+this.labelUtil.getValue("cookie_3rd_party")+"</span>");for(var r="",h=0;h<l[n].hosts.length;h++)r.length>0&&(r+="<br>"),r+=l[n].hosts[h];for(var u={name:l[n].name,hostname:r,path:l[n].path,description:a,expiry:s,tags:c,vendor:"",service:"",id:l[n].id},d=0;d<window.__cookiehub.services.length;d++)if(null!=window.__cookiehub.services[d].cookies&&window.__cookiehub.services[d].cookies.indexOf(l[n].id)>-1){if(u.service=window.__cookiehub.services[d].name,null!=window.__cookiehub.services[d].vendor_id)for(var b=0;b<window.__cookiehub.vendors.length;b++)if(window.__cookiehub.vendors[b].id==window.__cookiehub.services[d].vendor_id){u.vendor=window.__cookiehub.vendors[b].name,window.__cookiehub.vendors[b].policy&&(u.vendor='<a href="'+window.__cookiehub.vendors[b].policy+'" target="_blank" rel="noopener nofollow" tabindex="0">'+window.__cookiehub.vendors[b].name+"</a>");break}break}null!=window.__cookiehub.services?o+=this.labelUtil.inject(null==a||""==a?window.__cookiehub.elements.declaration.gsvsCategories.cookieAlt:window.__cookiehub.elements.declaration.gsvsCategories.cookie,u):o+=this.labelUtil.inject(null==a||""==a?window.__cookiehub.elements.declaration.categories.cookieAlt:window.__cookiehub.elements.declaration.categories.cookie,u)}if(o.length>0){var _={details:this.labelUtil.inject(window.__cookiehub.elements.declaration.categories.details,{elementOpen:window.__cookiehub.settings.ui.accessibilityLevel>2?"h3":'p aria-level="3" role="heading"',elementClose:window.__cookiehub.settings.ui.accessibilityLevel>2?"h3":"p",id:t.id,title:window.__cookiehub.settings.ui.accessibilityLevel>2?this.labelUtil.getValue(t.id+"_title"):"<strong>"+this.labelUtil.getValue(t.id+"_title")+"</strong>",text:this.labelUtil.getValue(t.id+"_description")}),table:this.labelUtil.inject(null!=window.__cookiehub.services?window.__cookiehub.elements.declaration.gsvsCategories.table:window.__cookiehub.elements.declaration.categories.table,{id:t.id,title:this.labelUtil.getValue(t.id+"_title"),name:this.labelUtil.getValue("cookie_name"),hostname:this.labelUtil.getValue("cookie_hostname"),path:this.labelUtil.getValue("cookie_path"),expiry:this.labelUtil.getValue("cookie_expiry"),vendor:this.labelUtil.getValue("general_vendor"),tags:window.__cookiehub.settings.ui.accessibilityLevel>=2?this.labelUtil.getValue("cookie_tags"):"",cutoff:window.__cookiehub.settings.ui.accessibilityLevel<3?' class="cutoff"':"",cookies:o})};e+=this.labelUtil.inject(window.__cookiehub.elements.declaration.categories.container,_)}}return this.labelUtil.inject(window.__cookiehub.elements.settings.options.container,{options:e})}}var t=window||t;t.__cookiehub.C2Declaration=i}();
// ui/container.js
!function(){"use strict";function e(e,i,o){return(i=function(e){var i=function(e,i){if("object"!=typeof e||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var t=o.call(e,i||"default");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"==typeof i?i:i+""}(i))in e?Object.defineProperty(e,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[i]=o,e}class i{constructor(){e(this,"labelUtil",null),e(this,"region",null),this.region=window.__cookiehub.region,this.labelUtil=new window.__cookiehub.C2Label}render(){if(null==document.querySelector("style[data-ch2inline]")&&window.__cookiehub.settings.ui.colors.primary&&"simple"!=this.region.banner.theme&&"custom"!=this.region.banner.theme){var e="";e+=".ch2 * { --cookiehub-primary-color: "+window.__cookiehub.settings.ui.colors.primary+"; }",e+=".ch2-style-light .ch2-btn-primary, .ch2-style-dark .ch2-btn-primary { background: "+window.__cookiehub.settings.ui.colors.primary,null!=window.__cookiehub.settings.ui.colors.primaryText&&""!=window.__cookiehub.settings.ui.colors.primaryText&&(e+=";color:"+window.__cookiehub.settings.ui.colors.primaryText),e+="}",e+=".ch2-style-light .ch2-btn-primary:hover, .ch2-style-dark .ch2-btn-primary:hover { background: "+window.__cookiehub.settings.ui.colors.primary+"; box-shadow: 0px 0px 20px 0 "+window.__cookiehub.settings.ui.colors.primary+"66; }",e+=".ch2-style-light .ch2-switch input:checked + label, .ch2-style-dark .ch2-switch input:checked + label { background: "+window.__cookiehub.settings.ui.colors.primary+" }",e+=".ch2-style-light.ch2-icon a:hover svg { border: 2px solid "+window.__cookiehub.settings.ui.colors.primary+"; fill: "+window.__cookiehub.settings.ui.colors.primary+" }",e+=".ch2-style-dark.ch2-icon a:hover svg { border: 2px solid "+window.__cookiehub.settings.ui.colors.primary+"; background: "+window.__cookiehub.settings.ui.colors.primary+" }",e+="@media (max-width: 800px) {",e+=".ch2-settings-declaration table tbody tr td:not([colspan]):nth-child(1)::before { content: '"+this.labelUtil.getValue("cookie_name")+": '; }",e+=".ch2-settings-declaration table tbody tr td:not([colspan]):nth-child(2)::before { content: '"+this.labelUtil.getValue("cookie_hostname")+": '; }",e+=".ch2-settings-declaration table tbody tr td:not([colspan]):nth-child(3)::before { content: '"+this.labelUtil.getValue("cookie_path")+": '; }",e+=".ch2-settings-declaration table tbody tr td:not([colspan]):nth-child(4)::before { content: '"+this.labelUtil.getValue("cookie_expiry")+": '; }",e+="}";var i=document.createElement("style");i.dataset.ch2inline=!0,i.appendChild(document.createTextNode(e)),document.body?document.body.appendChild(i):document.getElementsByTagName("head")[0].appendChild(i)}var o="";window.__cookiehub.settings.ui.dark?o+=" ch2-style-dark":o+=" ch2-style-light",window.__cookiehub.settings.ui.compact&&(o+=" ch2-style-compact"),window.__cookiehub.settings.ui.accessibilityLevel>=2&&(o+=" ch2-ea"),0!=window.__cookiehub.region.framework.indexOf("tcf")||null!=window.__cookiehub.settings.ui.legacyUI&&1!=window.__cookiehub.settings.ui.legacyUI||(window.__cookiehub.region.banner.theme="overlay-extended");var t={theme:" ch2-theme-"+window.__cookiehub.region.banner.theme,style:" "+o};return this.labelUtil.inject(window.__cookiehub.elements.container,t)}}var o=window||o;o.__cookiehub.C2Container=i}();
// ui/icon.js
!function(){"use strict";function e(e,i,o){return(i=function(e){var i=function(e,i){if("object"!=typeof e||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,i||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"==typeof i?i:i+""}(i))in e?Object.defineProperty(e,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[i]=o,e}class i{constructor(){e(this,"labelUtil",null),this.labelUtil=new window.__cookiehub.C2Label}isEnabled(){return"none"!=window.__cookiehub.region.icon.theme&&null!=window.__cookiehub.categories&&window.__cookiehub.categories.length>0}render(){if(this.isEnabled()){var e={style:" ch2-icon-"+window.__cookiehub.region.icon.theme,position:" ch2-icon-"+window.__cookiehub.region.icon.position,label:this.labelUtil.getValue("icon_btn"),link:this.labelUtil.inject(window.__cookiehub.elements.icon.link,{label:this.labelUtil.getValue("icon_btn")}),svg:""};if(null!=window.__cookiehub.settings.ui.icon&&""!=window.__cookiehub.settings.ui.icon?e.svg=window.__cookiehub.settings.ui.icon:e.svg='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23.03 23.02"><path d="M10.31.08a5.25,5.25,0,0,0-.25,1.11c-.1.57-.2,1.08-.22,1.14s-.1.11-.27.14a5.2,5.2,0,0,0-.68.17l-.46.14-.2-.22c-.1-.13-.44-.52-.74-.88A2.83,2.83,0,0,0,6.83,1a4.14,4.14,0,0,0-1,.5c-1,.58-1.06.62-1.06.76A10.66,10.66,0,0,0,5.13,3.4l.38,1L5,5l-.53.54-.17-.07c-.69-.27-1.92-.7-2-.7s-.19,0-.76,1.06a4.52,4.52,0,0,0-.5,1c0,.08.24.3.67.66l.87.75.22.19-.13.46a6,6,0,0,0-.18.69c0,.16-.06.24-.14.26s-.55.12-1.11.22a8.44,8.44,0,0,0-1.11.24C0,10.35,0,10.36,0,11.5s0,1.14.09,1.21A5.07,5.07,0,0,0,1.18,13l1.11.2c.08,0,.12.08.16.23s.1.42.18.68a4.33,4.33,0,0,1,.13.52,9.1,9.1,0,0,1-.87.76,4.94,4.94,0,0,0-.87.84,4.14,4.14,0,0,0,.5,1c.58,1,.61,1.06.76,1.06a11.47,11.47,0,0,0,1.13-.37l1-.38L5,18l.53.53-.06.17c-.27.69-.7,1.91-.7,2s0,.19,1.06.77a4.53,4.53,0,0,0,1,.5,3.75,3.75,0,0,0,.8-.84l.75-.88s.21,0,.51.1l.68.17c.17,0,.24.06.27.13s.13.57.22,1.14a6,6,0,0,0,.25,1.11c.07.08.19.09,1.21.09s1.15,0,1.22-.11A7.21,7.21,0,0,0,13,21.79c.1-.55.2-1.05.22-1.11s.1-.11.27-.13.46-.11.68-.18l.46-.13.2.22.74.87a2.83,2.83,0,0,0,.66.67,4.14,4.14,0,0,0,1-.5c1-.58,1.06-.62,1.06-.76s-.17-.57-.37-1.13l-.38-1,.53-.54.53-.54.17.07c.69.27,1.92.7,2,.7s.18-.05.76-1.06a4.14,4.14,0,0,0,.5-1,4.67,4.67,0,0,0-.88-.84,6.37,6.37,0,0,1-.85-.79s.08-.35.17-.71.19-.65.26-.68.54-.11,1.09-.21a7.21,7.21,0,0,0,1.12-.24c.11-.07.11-.08.11-1.22s0-1.15-.11-1.22a8.59,8.59,0,0,0-1.12-.24c-.55-.1-1-.19-1.09-.21s-.14-.2-.26-.68-.17-.67-.17-.71a8,8,0,0,1,.85-.79A1,1,0,0,0,22,6.58a1,1,0,0,0-.5-.76c-.58-1-.62-1.07-.76-1.07s-1.31.43-2,.7l-.17.07L18.05,5l-.53-.54.38-1c.14-.37.27-.75.38-1.13,0-.14-.06-.18-1.07-.76a4.14,4.14,0,0,0-1-.5,2.83,2.83,0,0,0-.66.67c-.3.36-.64.75-.74.88l-.2.22-.46-.14c-.25-.08-.56-.15-.68-.18s-.24-.06-.27-.13-.12-.56-.21-1.11A8.27,8.27,0,0,0,12.73.11C12.67,0,12.65,0,11.52,0S10.38,0,10.31.08Zm2,6.08a5.24,5.24,0,0,1,3,1.53,5.28,5.28,0,0,1,1.59,4.07,5.35,5.35,0,0,1-.39,1.76A5.41,5.41,0,0,1,6.34,9.93,5.64,5.64,0,0,1,7,8.48,7.41,7.41,0,0,1,8.5,7,5.44,5.44,0,0,1,12.36,6.16Z"/></svg>',window.__cookiehub.region.icon.brand){if(e.style+=" ch2-style-brand",window.__cookiehub.settings.ui.colors.primary){var i="";i+=".ch2-style-brand.ch2-icon-default svg { background: "+window.__cookiehub.settings.ui.colors.primary+" }",i+=".ch2-style-brand.ch2-icon-default svg path { fill: "+window.__cookiehub.settings.ui.colors.primaryText+" }",i+=".ch2-style-brand.ch2-icon-default a { background: "+window.__cookiehub.settings.ui.colors.primary+" }",i+=".ch2-style-brand.ch2-icon-default a { color: "+window.__cookiehub.settings.ui.colors.primaryText+" }";var o=document.createElement("style");o.appendChild(document.createTextNode(i)),document.getElementsByTagName("head")[0].appendChild(o)}}else window.__cookiehub.region.icon.dark?e.style+=" ch2-style-dark":e.style+=" ch2-style-light";return this.labelUtil.inject(window.__cookiehub.elements.icon.container,e)}return""}}var o=window||o;o.__cookiehub.C2Icon=i}();
// modules/consent-log.js
!function(){"use strict";var o={};o.d=function(e,t){for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)};var e=window||e;e.__cookiehub.C2ConsentLog=function(){this.generateToken=function(){for(var o="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=0;t<64;t++)o+=e.charAt(Math.floor(62*Math.random()));return o},this.log=function(o,e){for(var t=[],i=0;i<window.__cookiehub.categories.length;i++)if(window.__cookiehub.categories[i].show){var n={i:window.__cookiehub.categories[i].id,v:window.cookiehubState.choice.allAllowed||window.cookiehubState.choice.categories.indexOf(window.__cookiehub.categories[i].id)>-1};t.push(n)}var c={a:window.cookiehubState.choice.allAllowed,c:window.cookiehubState.choice.categories,v:window.cookiehubState.choice.vendors,s:window.cookiehubState.choice.services},r={a:o,r:window.__cookiehub.settings.general.revision,d:window.__cookiehub.domainId,u:location.href,t:e.token,s:JSON.stringify(t),n:"2",gsvs:c,tcstring:""};null!=window.__cookiehub.tcfv2&&(r.tcstring=window.__cookiehub.tcfv2.getTCString());var a=new XMLHttpRequest;a.onreadystatechange=function(){4!=a.readyState&&a.readyState!=XMLHttpRequest.DONE||a.status},a.open("POST","https://consent-eu.cookiehub.net/",!0),a.setRequestHeader("Content-type","application/x-www-form-urlencoded"),a.send(JSON.stringify(r))}}}();
// ui/vendors.js
!function(){"use strict";function e(e,i,t){return(i=function(e){var i=function(e,i){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,i||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"==typeof i?i:i+""}(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}class i{constructor(i){e(this,"labelUtil",null),e(this,"domUtil",null),e(this,"dialog",null),e(this,"state",null),e(this,"rendered",!1),e(this,"collapse",null),e(this,"offset",0),e(this,"helpers",null),e(this,"settings",null),this.labelUtil=new window.__cookiehub.C2Label,this.domUtil=new window.__cookiehub.C2DOM,this.dialog=new window.__cookiehub.C2Dialog,this.collapse=new window.__cookiehub.C2Collapse,this.helpers=new window.__cookiehub.C2Helpers,this.settings=i}isEnabled(){return window.__cookiehub.region.preferences.features.vendor}render(){if(this.isEnabled()){var e={line1:this.labelUtil.inject(window.__cookiehub.elements.vendors.line1,{text:this.labelUtil.getValue("vendor_message")}),options:this.renderOptions()};return this.rendered=!0,this.labelUtil.inject(window.__cookiehub.elements.vendors.container,e)}return""}renderOptions(){var e=[];for(const i in window.__cookiehub.vendors)e.push(window.__cookiehub.vendors[i]);e.sort((e,i)=>e.name.localeCompare(i.name));var i=this.offset,t="",o=0;for(const i in e)if(o<this.offset)o++;else{if(o-this.offset>=20)break;var n=e[i],l="";if(n.policyUrl||n.cookiePolicy||n.policy){if(l+='<ul class="ch2-collapse-links">',n.policyUrl&&(l+='<li><a href="'+n.policyUrl+'" aria-label="'+n.name+' Privacy Policy" target="_blank" rel="noopener" tabindex="0">View privacy policy</a></li>'),n.policy){let e=this.labelUtil.getValue("vendor_privacy_policy");l+='<li><a href="'+n.policy+'" aria-label="'+n.name+" "+e+'" target="_blank" rel="noopener" tabindex="0">'+e+"</a></li>"}if(n.cookiePolicy){let e=this.labelUtil.getValue("vendor_cookie_policy");l+='<li><a href="'+n.cookiePolicy+'" aria-label="'+n.name+" "+e+'" target="_blank" rel="noopener" tabindex="0">'+e+"</a></li>"}l+="</ul>"}var s="",r=!1;if(null!=window.__cookiehub.services&&null!=this.settings){var a="",c=!1;for(const e in window.__cookiehub.services)window.__cookiehub.services[e].vendor_id==n.id&&(c=!0,a+=this.settings.renderService(window.__cookiehub.services[e],"v-sv-"+n.id),1!=window.__cookiehub.services[e].category_id&&(r=!0));c&&(s+=this.labelUtil.inject(window.__cookiehub.elements.settings.options2.container,{title:"",options:a}))}var d="";r&&(d=this.labelUtil.inject(window.__cookiehub.elements.vendors.options2.switch,{id:"v-"+n.id,name:"v-"+n.id,"is-checked":"","is-disabled":""}));var h={toggler:this.labelUtil.inject(window.__cookiehub.elements.vendors.options2.toggler,{id:"v-"+n.id,switch:d,title:n.name,type:""}),details:this.labelUtil.inject(window.__cookiehub.elements.vendors.options2.simpleDetails,{id:"v-"+n.id,title:n.name,text:s,links:l})};t+=this.labelUtil.inject(window.__cookiehub.elements.vendors.options2.option,h),o++}if(this.offset=o,0==i)return this.labelUtil.inject(window.__cookiehub.elements.vendors.options2.container,{options:t});var u=document.createElement("div");u.innerHTML=t,document.getElementById("ch2-vendor-list").appendChild(u),this.collapse.attachEvents(),this.setPartialState()}attachEvents(){if(this.rendered){var e=this;this.domUtil.getFirstElementByClass("ch2-settings-content").addEventListener("scroll",function(i){i.target.scrollTop>i.target.scrollHeight-600&&e.renderOptions()},!0);var i=this;setTimeout(function(){i.setPartialState()},1e3)}}setPartialState(){}populate(){0==this.offset&&this.renderOptions()}}var t=window||t;t.__cookiehub.C2Vendors=i}();
// modules/geolocation.js
!function(){"use strict";function e(e,o,r){return(o=function(e){var o=function(e,o){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,o||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(e)}(e,"string");return"symbol"==typeof o?o:o+""}(o))in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}class o{constructor(){e(this,"lookup",function(e){var o=window.__cookiehub.regions,r=new XMLHttpRequest;r.onreadystatechange=function(){if(4==r.readyState||r.readyState==XMLHttpRequest.DONE)if(200==r.status){var n=r.response,t=null;if(null!=n&&null!=n.r){for(var i=0;i<o.length;i++){for(var u=0;u<o[i].region.length;u++)if(o[i].region[u]==n.r){t=o[i];break}if(null!=t)break}e(!0,t,n.r)}else e(!1,null,null)}else e(!1,null,null)};for(var n="",t=0;t<window.__cookiehub.regions.length;t++){""!=n&&(n+=",");for(var i=0;i<window.__cookiehub.regions[t].region.length;i++)i>0&&(n+=","),n+=window.__cookiehub.regions[t].region[i]}r.open("POST","https://region-eu.cookiehub.net/",!0),r.setRequestHeader("Content-type","application/x-www-form-urlencoded"),r.setRequestHeader("cookiehub-regions",n),r.responseType="json",r.send()})}}var r=window||r;r.__cookiehub.C2Geolocation=o}();
// premium.js
!function(){var e;window.__cookiehub.elements={branding:'<p>Powered by <a href="{{brandingUrl}}" tabindex="0" rel="noopener" target="_blank">CookieHub Consent Management</a></p>',container:'<div class="ch2-container{{theme}}{{style}}">{{dialog}}{{settings}}</div>{{icon}}',dialog:{container:'<div id="ch2-dialog" class="ch2-dialog{{position}}" role="dialog" tabindex="-1" aria-labelledby="ch2-dialog-title" aria-describedby="ch2-dialog-description">{{close}}{{content}}{{actions}}</div>',content:'<div class="ch2-dialog-content {{class}}">{{line1}}{{line2}}{{line3}}</div>',line1:'<{{elementOpen}} id="ch2-dialog-title">{{title}}</{{elementClose}}>',line2:'<p id="ch2-dialog-description">{{text}}</p>',line3:'<p><a href="{{url}}" rel="noopener" target="{{target}}" class="ch2-learn-more" tabindex="0">{{link}}</a></p>',actions:'<div class="ch2-dialog-actions {{class}}">{{buttons}}</div>',button:'<button class="ch2-btn {{class}}" tabindex="0">{{label}}</button>',close:'<div class="ch2-dialog-close"><a href="#" data-action="{{action}}" class="ch2-dialog-close-btn" aria-label="{{close}}"></a></div>'},settings:{container:'<div id="ch2-settings-dialog" class="ch2-settings{{class}}" role="dialog" tabindex="-1" aria-modal="true" aria-labelledby="ch2-settings-title">{{header}}{{tabbar}}<div class="ch2-settings-content">{{content}}</div>{{actions}}</div>',header:'<div class="ch2-settings-header"><button class="ch2-close-settings-btn" aria-label="{{close}}" tabindex="0"></button><{{elementOpen}} id="ch2-settings-title">{{title}}</{{elementClose}}></div>',content:'<div class="ch2-settings-tab-container" id="ch2-settings" role="tabpanel" aria-labelledby="ch2-settings-tab" style="display:block;" tabindex="0">{{line1}}{{line2}}{{button1}}{{button3}}{{options}}{{branding}}</div>',line1:'<p id="ch2-settings-description">{{text}}</p>',line2:'<p><a href="{{url}}" rel="noopener" target="{{target}}" class="ch2-learn-more" tabindex="0">{{link}}</a></p>',actions:'<div class="ch2-settings-actions">{{branding}}{{button2}}</div>',button1:'<button class="ch2-btn ch2-btn-secondary ch2-allow-all-btn" tabindex="0">{{label}}</button>',button2:'<button class="ch2-btn ch2-btn-primary ch2-save-settings-btn" tabindex="0">{{label}}</button>',button3:'<button class="ch2-btn ch2-btn-secondary ch2-deny-all-btn" tabindex="0">{{label}}</button>',options:{container:'<div class="ch2-settings-options">{{options}}</div>',option:'<div class="ch2-settings-option">{{switch}}{{details}}</div>',switch:'<div class="ch2-switch"><input type="checkbox" class="ch2-switch-value" name="{{name}}" role="switch" aria-labelledby="ch2-{{id}}-title" id="c2-{{id}}"{{is-checked}}{{is-disabled}} tabindex="0"><label for="c2-{{id}}" aria-hidden="true">&#8;</label></div>',details:'<div class="ch2-settings-option-details"><{{elementOpen}} id="ch2-{{id}}-title">{{title}}</{{elementClose}}><p>{{text}}</p>{{services}}</div>'},services:{container:'<div class="ch2-settings-options2 ch2-settings-so ch2-collapse">{{options}}</div>',option:'<div class="ch2-settings-option2">{{toggler}}{{details}}</div>',toggler:'<div class="ch2-collapse-toggler"><a href="#" role="button" aria-expanded="false" aria-controls="ch2-collapse-{{id}}" id="ch2-{{id}}-title" tabindex="0">{{title}}</a></div>',details:'<div class="ch2-settings-option-details ch2-collapse-content" id="ch2-collapse-{{id}}"><p>{{text}}</p>{{links}}{{cookies}}</div>'},options2:{container:'<div class="ch2-settings-options2 ch2-collapse">{{title}}{{options}}</div>',option:'<div class="ch2-settings-option2">{{toggler}}{{details}}</div>',toggler:'<div class="ch2-collapse-toggler"><a href="#" role="button" aria-expanded="false" aria-controls="ch2-collapse-{{id}}" id="ch2-{{id}}-title" tabindex="0">{{title}}</a>{{switch}}</div>',toggler2:'<div class="ch2-collapse-toggler"><span>{{title}}</span>{{switch}}</div>',switch:'<div class="ch2-switch"><input type="checkbox" class="ch2-switch-value" name="{{name}}" role="switch" aria-labelledby="ch2-{{id}}-title" id="c2-{{id}}"{{is-checked}}{{is-disabled}} tabindex="0"><label for="c2-{{id}}" aria-hidden="true">&#8;</label></div>',details:'<div class="ch2-settings-option-details ch2-collapse-content" id="ch2-collapse-{{id}}"><p>{{text}}</p>{{links}}</div>'},tabbar:{container:'<div class="ch2-settings-tabs"><div id="ch2-scroller-left" class="ch2-settings-scroller ch2-scroller-left" style="visibility: hidden">❮</div><div id="ch2-scroller-right" class="ch2-settings-scroller ch2-scroller-right">❯</div><div class="ch2-settings-tablist-wrap"><ul class="ch2-settings-tablist" id="ch2-settings-tablist" role="tablist" aria-labelledby="ch2-settings-title">{{items}}</ul></div></div>',item:'<li><{{element}} class="ch2-select-tab {{active}}" id="{{tabId}}-tab" aria-selected="{{selected}}" aria-controls="{{tabId}}" role="tab" tabindex="0">{{name}}</{{element}}></li>'}},personalData:{container:'<div class="ch2-settings-tab-container" id="ch2-personal-data" role="tabpanel" aria-labelledby="ch2-personal-data-tab" style="display:none" tabindex="0"><div class="ch2-settings-personal-data">{{line1}}{{line2}}{{options}}</div></div>',line1:"<p>{{text}}</p>",line2:'<p><a href="{{url}}" rel="noopener" target="{{target}}" class="ch2-learn-more" tabindex="0">{{link}}</a></p>'},declaration:{container:'<div class="ch2-settings-tab-container" id="ch2-declaration" role="tabpanel" aria-labelledby="ch2-declaration-tab" style="display:none" tabindex="0"><div class="ch2-settings-declaration">{{line1}}{{line2}}{{token}}{{categories}}</div></div>',line1:"<p>{{text}}</p>",line2:'<p><a href="{{url}}" rel="noopener" target="{{target}}" class="ch2-learn-more" tabindex="0">{{link}}</a></p>',token:{container:'<div class="ch2-declaration-choice"><{{elementOpen}} class="ch2-header">{{title}}</{{elementClose}}>{{line1}}{{consent}}</div>',line1:"<p>{{text}}</p>",consent:"<dl><dt>{{categoriesTitle}}</dt><dd>{{categories}}</dd><dt>{{tokenTitle}}</dt><dd>{{token}}</dd><dt>{{datetimeTitle}}</dt><dd>{{datetime}}</dd></dl>"},categories:{container:'<div class="ch2-declaration-category">{{details}}{{table}}</div>',details:'<{{elementOpen}} class="ch2-header" id="ch2-catlbl-{{id}}">{{title}}</{{elementClose}}><p id="ch2-catdesc-{{id}}">{{text}}</p>',table:'<table aria-labelledby="ch2-catlbl-{{id}}" aria-describedby="ch2-catdesc-{{id}}"><caption>{{title}}</caption><thead><tr><th scope="col">{{name}}</th><th scope="col">{{hostname}}</th><th scope="col">{{path}}</th><th scope="col">{{expiry}}</th><th scope="col">{{tags}}</th></tr></thead><tbody>{{cookies}}</tbody></table>',cookie:'<tr><td id="ch2-declaration-cookie-{{id}}" aria-describedBy="ch2-declaration-cookie-{{id}}-description">{{name}}</td><td>{{hostname}}</td><td>{{path}}</td><td>{{expiry}}</td><td>{{tags}}</td></tr><tr><td id="ch2-declaration-cookie-{{id}}-description" colspan="5"><p>{{description}}</p></td></tr>',cookieAlt:"<tr><td>{{name}}</td><td>{{hostname}}</td><td>{{path}}</td><td>{{expiry}}</td><td>{{tags}}</td></tr>"},gsvsCategories:{table:'<table{{cutoff}} aria-labelledby="ch2-catlbl-{{id}}" aria-describedby="ch2-catdesc-{{id}}"><caption>{{title}}</caption><thead><tr><th scope="col">{{name}}</th><th scope="col">{{hostname}}</th><th scope="col">{{vendor}}</th><th scope="col">{{expiry}}</th></tr></thead><tbody>{{cookies}}</tbody></table>',cookie:'<tr><td id="ch2-declaration-cookie-{{id}}" aria-describedBy="ch2-declaration-cookie-{{id}}-description">{{name}}</td><td>{{hostname}}</td><td>{{vendor}}</td><td>{{expiry}}</td></tr><tr><td id="ch2-declaration-cookie-{{id}}-description" colspan="4"><p>{{description}}</p></td></tr>',cookieAlt:"<tr><td>{{name}}</td><td>{{hostname}}</td><td>{{vendor}}</td><td>{{expiry}}</td></tr>"}},vendors:{container:'<div class="ch2-settings-tab-container" id="ch2-vendors" role="tabpanel" aria-labelledby="ch2-vendors-tab" style="display:none" tabindex="0"><div class="ch2-settings-vendors">{{line1}}{{options}}</div></div>',line1:"<p>{{text}}</p>",options2:{container:'<div class="ch2-settings-options2 ch2-collapse" id="ch2-vendor-list">{{options}}</div>',option:'<div class="ch2-settings-option2">{{toggler}}{{details}}</div>',toggler:'<div class="ch2-collapse-toggler"><a href="#" role="button" aria-expanded="false" aria-controls="ch2-collapse-v{{id}}" id="ch2-v{{id}}-title" tabindex="0">{{type}}{{title}}</a>{{switch}}</div>',switch:'<div class="ch2-switch"><input type="checkbox" class="ch2-switch-value" name="{{name}}" role="switch" aria-labelledby="ch2-v{{id}}-title" id="c2-v{{id}}"{{is-checked}}{{is-disabled}} tabindex="0"><label for="c2-v{{id}}" aria-hidden="true">&#8;</label></div>',details:'<div class="ch2-settings-option-details ch2-collapse-content" id="ch2-collapse-v{{id}}"></div>',simpleDetails:'<div class="ch2-settings-option-details ch2-collapse-content" id="ch2-collapse-v{{id}}"><p>{{text}}</p>{{links}}</div>'},compact:{container:'<div class="ch2-tcf-vendors-compact" id="ch2-tcf-vendorlist-{{id}}"></div>',option:"<div>{{links}}{{name}}</div>"}},legitimateInterest:{container:'<div class="ch2-settings-tab-container" id="ch2-legitimate-interest" role="tabpanel" aria-labelledby="ch2-legitimate-interest-tab" style="display:none" tabindex="0"><div class="ch2-settings-legitimate-interest">{{line1}}{{options}}</div></div>',line1:"<p>{{text}}</p>",options2:{container:'<div class="ch2-settings-options2 ch2-collapse" id="ch2-legitimate-interest-list">{{options}}</div>',option:'<div class="ch2-settings-option2">{{toggler}}{{details}}</div>',toggler:'<div class="ch2-collapse-toggler"><a href="#" role="button" aria-expanded="false" aria-controls="ch2-collapse-v{{id}}" id="ch2-li{{id}}-title" tabindex="0">{{title}}</a>{{switch}}</div>',switch:'<div class="ch2-switch"><input type="checkbox" class="ch2-switch-value" name="{{name}}" role="switch" aria-labelledby="ch2-v{{id}}-title" id="c2-li{{id}}"{{is-checked}}{{is-disabled}} tabindex="0"><label for="c2-li{{id}}" aria-hidden="true">&#8;</label></div>',details:'<div class="ch2-settings-option-details ch2-collapse-content" id="ch2-collapse-li{{id}}"><p>{{text}}</p>{{links}}</div>'}},bodyDeclaration:{container:'{{line1}}{{line2}}<div class="cookiehub-categories">{{categories}}</div>',line1:"<p>{{text}}</p>",line2:'<p><a href="{{url}}" rel="noopener" target="{{target}}" class="ch2-learn-more" tabindex="0">{{link}}</a></p>',categories:{container:'<div class="cookiehub-category">{{details}}{{table}}</div>',details:"<h3>{{title}}</h3><p>{{text}}</p>",table:"<table><thead><tr><th>{{name}}</th><th>{{hostname}}</th><th>{{path}}</th><th>{{expiry}}</th><th>&nbsp;</th></tr></thead><tbody>{{cookies}}</tbody></table>",cookie:'<tr><td>{{name}}</td><td>{{hostname}}</td><td>{{path}}</td><td>{{expiry}}</td><td>{{tags}}</td></tr><tr><td colspan="5"><p>{{description}}</p></td></tr>',cookieAlt:"<tr><td>{{name}}</td><td>{{hostname}}</td><td>{{path}}</td><td>{{expiry}}</td><td>{{tags}}</td></tr>"}},icon:{container:'<div class="ch2-icon{{style}}{{position}}"><a href="#" class="ch2-open-settings-btn" role="button" aria-label="{{label}}" tabindex="0">{{svg}}<span aria-hidden="true">{{link}}</span></a></div>',link:"{{label}}"}},function(){function e(e,i,o){return(i=function(e){var i=function(e,i){if("object"!=typeof e||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var t=o.call(e,i||"default");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"==typeof i?i:i+""}(i))in e?Object.defineProperty(e,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[i]=o,e}var i=window||i;i.cookiehubState=new class{constructor(){e(this,"_settings",null),e(this,"_regions",null),e(this,"_categories",null),e(this,"noticeShown",!1),e(this,"displayStatus","hidden"),e(this,"trigger",{categories:[],vendors:[],services:[]}),e(this,"choice",{answered:!1,revision:1,dnt:!1,allowSale:!0,implict:!1,region:"",token:"",timestamp:null,allAllowed:!1,categories:[],vendors:[],services:[]}),e(this,"tcfChoice",{purposeVendors:[],purposes:[],specialFeatures:[],legitimateInterests:[],additionalVendors:[]}),e(this,"_checkLinker",function(){if(null==this._settings)return!1;var e=window.location.search;if(!this.choice.answered&&e.indexOf("_cl=")>-1){var i=e.split("_cl=")[1];if(i.indexOf("&")>-1&&(i=i.split("&")[0]),null!=i&&""!=i){var o="";try{var t=decodeURIComponent(i);null!=t&&""!=t&&(o=atob(t))}catch(e){}if(""!=o){var n=o.split(";");if(n.length>4&&1==n[0]){this.choice.revision=this._settings.general.revision,this.choice.region="G0",this.choice.answered=!0,this.choice.allAllowed="1"==n[1],this.choice.allowSale="1"==n[2],64==n[3].length&&(this.choice.token=n[3]);var c=n[4].split(",");if(null!=c&&c.length>0){this.choice.categories=[];for(var a=0;a<c.length;a++){var s=parseInt(c[a]);s>0&&this.choice.categories.push(s)}}return this._save(),!0}}}}return!1});var i=new Date;this.choice.timestamp=i.toISOString(),(null!=navigator.doNotTrack&&1==navigator.doNotTrack||null!=navigator.globalPrivacyControl&&navigator.globalPrivacyControl)&&(this.choice.dnt=!0,this.choice.allowSale=!1),this.loadConsent()}_setSettings(e,i,o){this._settings=e,this._regions=i,this._categories=o,this.loadConsent()}setDefaultState(){var e=this._regions[0];null!=window.__cookiehub&&null!=window.__cookiehub.region&&(e=window.__cookiehub.region);var i="implicit"==e.consentType,o=!0,t=[];if(null!=e.categories)for(var n=0;n<this._categories.length;n++){var c=this._categories[n],a=e.categories[c.name];null!=a&&("inherit"==a.type?!c.implicit&&!i||this.choice.dnt&&c.dnt?o=!1:t.push(c.id):"implicit"!=a.type||this.choice.dnt&&1===a.tracking&&("inherit"!=a.tracking||c.dnt)?o=!1:t.push(c.id))}i&&o?this.implictConsent(!1):(this.choice.implict=!1,this.choice.allAllowed=!1,t.length>0?this.choice.categories=t:this.choice.categories=[])}loadConsent(){if(this._loadUserConsent());else null==this._settings||this._checkLinker()||this.setDefaultState();this.conditionalElements()}_loadUserConsent(){var e=null;if(null!=(e=null!=this._settings?this._readCookie(this._settings.general.name,this._settings.general.encode):this._readCookie("cookiehub",!0))){var i=JSON.parse(e);if(null!=i){var o=1;null!=i.revision&&(o=i.revision),this.choice.answered=i.answered,this.choice.revision=i.revision,this.choice.token=i.token,this.choice.region=i.region,null!=i.timestamp&&(this.choice.timestamp=i.timestamp),null!=i.allAllowed&&(this.choice.allAllowed=i.allAllowed),null!=i.allowSale&&(this.choice.allowSale=i.allowSale),null!=i.vendors&&(this.choice.vendors=i.vendors),null!=i.services&&(this.choice.services=i.services);for(var t=!1,n=0;n<i.categories.length;n++)if("object"==typeof i.categories[n]){t=!0;break}if(t){var c=!1;for(n=0;n<i.categories.length;n++)if(i.categories[n].cid>1&&!i.categories[n].value){c=!0;break}if(c){this.choice.categories.push(1);for(n=0;n<i.categories.length;n++)i.categories[n].id>1&&i.categories[n].id<100&&this.choice.categories.push(i.categories[n].id)}else this.choice.allAllowed=!0}else this.choice.categories=i.categories;return null!=this._settings&&o<this._settings.general.revision&&(this.choice.answered=!1),!0}}return!1}_readCookie(e,i=!1){var o=("; "+document.cookie).split("; "),t=void 0;if(null!=o)for(var n=0;n<o.length;n++){var c=o[n].split(e+"=");null!=c&&2==c.length&&(t=c[1])}if(i&&null!=t)try{t=atob(t)}catch(e){}return t}_save(){if(null!=this._settings){var e=this._settings.general,i=e.domain;if(-1==location.hostname.indexOf(i)&&null!=this._settings.general.additional)for(var o=0;o<this._settings.general.additional.length;o++)if(location.hostname.indexOf(this._settings.general.additional[o])>-1){i=this._settings.general.additional[o];break}var t=e.sameSite,n=!1;i!=e.domain&&(t="None",n=!0);var c=JSON.stringify(this.choice);e.encode&&(c=btoa(c));var a=new Date;a.setDate(a.getDate()+(e.expiryDays||365));var s=[e.name+"="+c,"expires="+a.toUTCString(),"path="+(e.path||"/")];return i&&s.push("domain="+i),""!=t&&s.push("SameSite="+t),n&&s.push("Secure"),document.cookie=s.join(";"),!0}return!1}hasAnswered(){return this.choice.answered}hasConsented(e){if("t"==e.substr(0,1)&&null!=window.__cookiehub&&null!=window.__cookiehub.tcfv2)return window.__cookiehub.tcfv2.hasConsented(e);if(this.choice.allAllowed)return!0;if("necessary"==e||"required"==e?e="c-1":"preferences"==e?e="c-2":"analytics"==e?e="c-3":"marketing"==e?e="c-4":"uncategorized"==e&&(e="c-5"),"c-1"==e||"c-sv-1-"==e.substr(0,7))return!0;if(e.length>2&&e.indexOf("-")>0){var i=e.split("-"),o=0,t=0,n=0;if(4==i.length){n=parseInt(i[3]);for(var c=0;c<this.choice.services.length;c++)if(this.choice.services[c]==n)return!0}else{if("c-"==e.substr(0,2)){2==i.length?o=parseInt(i[1]):"c-sv-"==e.substr(0,5)&&(o=parseInt(i[2]),n=parseInt(i[3]));var a=!1;for(c=0;c<this.choice.categories.length;c++)if(this.choice.categories[c]==o){a=!0;break}if(a&&n>0&&this.choice.services.length>0){for(c=0;c<this.choice.services.length;c++)if(this.choice.services[c]==n)return!0;return!1}return a}if("v-"==e.substr(0,2)){2==i.length?t=parseInt(i[1]):"v-sv-"==e.substr(0,5)&&(t=parseInt(i[2]),n=parseInt(i[3]));var s=!1;for(c=0;c<this.choice.vendors.length;c++)if(this.choice.vendors[c]==t){s=!0;break}if(s&&n>0&&this.choice.services.length>0){for(c=0;c<this.choice.services.length;c++)if(this.choice.services[c]==n)return!0;return!1}return s}if("s-"==e.substr(0,2)){2==i.length&&(n=parseInt(i[1]));for(c=0;c<this.choice.services.length;c++)if(this.choice.services[c]==n)return!0}}}return!1}implictConsent(e){this.choice.answered=e,this.choice.implict=!0,this.choice.allAllowed=!0,this.choice.categories=[],this.choice.vendors=[],this.choice.services=[]}getCheckboxState(e){if(!this.choice.answered){if("c-1"!=e&&"c-2"!=e&&this.choice.dnt&&e.dnt)return!1;if("c-1"==e?e="necessary":"c-2"==e?e="preferences":"c-3"==e?e="analytics":"c-4"==e?e="marketing":"c-5"==e&&(e="uncategorized"),null!=navigator.globalPrivacyControl&&navigator.globalPrivacyControl&&null!=this._settings.ccpa.link&&Array.isArray(this._settings.ccpa.link))for(var i=0;i<this._categories.length;i++)if(this._categories[i].name==e){for(let e=0;e<this._settings.ccpa.link.length;e++)if(this._settings.ccpa.link[e]==this._categories[i].id)return!1;break}if(null!=window.__cookiehub.region.categories){var o=window.__cookiehub.region.categories[e];if(null!=o&&"inherit"!=o.default)return 1===o.default||"1"===o.default}for(i=0;i<this._categories.length;i++){var t=this._categories[i];if(t.name==e)return t.default}}return this.hasConsented(e)}updateFiredFlag(e){if(null!=window.__cookiehub&&null!=window.__cookiehub.categories)for(var i=0;i<this._categories.length;i++){var o=this._categories[i];(e.allAllowed!=this.choice.allAllowed&&0==this.choice.categories.length&&0==e.categories.length||e.categories.indexOf(o.id)>=0&&this.choice.categories.indexOf(o.id)<0||e.categories.indexOf(o.id)<0&&this.choice.categories.indexOf(o.id)>=0)&&(window.__cookiehub.categories[i].fired=!1)}}conditionalElementGSVS(e){var i=0,o=0,t=0;if(e.dataset.consent){var n=e.dataset.consent;"necessary"==n||"required"==n?i=1:"preferences"==n?i=2:"analytics"==n?i=3:"marketing"==n?i=4:"uncategorized"==n&&(i=5)}if(e.dataset.chcategory&&(i=parseInt(e.dataset.chcategory)),e.dataset.vendor&&(o=parseInt(e.dataset.vendor)),e.dataset.service&&(t=parseInt(e.dataset.service)),i>0||o>0||t>0){var c=this.choice.allAllowed;if(c||(c=!0,i>1&&-1===this.choice.categories.indexOf(i)&&(c=!1),o>0&&-1===this.choice.vendors.indexOf(o)&&(c=!1),t>0&&-1===this.choice.services.indexOf(t)&&(c=!1)),c)if("SCRIPT"==e.nodeName){if(("text/plain"==e.type||"text/cookiehub"==e.type)&&null==e.dataset.loaded){var a=document.createElement("script");i>0&&(a.dataset.chcategory=i),o>0&&(a.dataset.vendor=o),t>0&&(a.dataset.service=t),e.dataset.src?a.src=e.dataset.src:e.src&&(a.src=e.src),e.hasAttribute("nonce")&&a.setAttribute("nonce",e.getAttribute("nonce")),a.type="text/javascript",a.innerHTML=e.innerHTML,e.dataset.loaded=!0,null!=document.body?document.body.appendChild(a):document.getElementsByTagName("head")[0].appendChild(a)}}else e.dataset.src&&e.src!=e.dataset.src&&(e.src=e.dataset.src),void 0!==e.dataset.inverse?e.style.display="none":e.style.display=void 0===e.dataset.display?"":e.dataset.display;else"SCRIPT"!=e.nodeName&&"IFRAME"!=e.nodeName&&(void 0!==e.dataset.inverse?e.style.display=void 0===e.dataset.display?"":e.dataset.display:(void 0===!e.dataset.cookiehub&&(e.dataset.display=e.style.display),e.style.display="none"));e.dataset.cookiehub=!0}}conditionalElements(){for(var e=document.querySelectorAll("[data-consent], [data-chcategory], [data-vendor], [data-service]"),i=0;i<e.length;i++){var o=e[i];this.conditionalElementGSVS(o)}}}}(),null!=window.cookiehubState&&window.cookiehubState._setSettings(window.__cookiehub.settings,window.__cookiehub.regions,window.__cookiehub.categories),(e=window.cookiehub||{}).hasInitialised||(e.Popup=function(){u.prototype.cpm={enabled:!0,render:!0,container:null,renderPosition:"bottom",language:null,affiliate:null,linker:[],onDialogOpen:function(){},onDialogClose:function(){},onSettingsOpen:function(){},onSettingsClose:function(){},onInitialise:function(e){},onStatusChange:function(e,i){},onAllow:function(e){},onRevoke:function(e){}};var i,o,t,n="function"==typeof window.__cookiehub.C2ConsentLog?new window.__cookiehub.C2ConsentLog:null,c="function"==typeof window.__cookiehub.C2Geolocation?new window.__cookiehub.C2Geolocation:null,a="function"==typeof window.__cookiehub.C2GTM?new window.__cookiehub.C2GTM:null,s="function"==typeof window.__cookiehub.C2GCM?new window.__cookiehub.C2GCM:null,l="function"==typeof window.__cookiehub.C2Cookie?new window.__cookiehub.C2Cookie:null,d="function"==typeof window.__cookiehub.C2Helpers?new window.__cookiehub.C2Helpers:null,r="function"==typeof window.__cookiehub.C2DOM?new window.__cookiehub.C2DOM:null,h="function"==typeof window.__cookiehub.C2Browser?new window.__cookiehub.C2Browser:null,w="function"==typeof window.__cookiehub.C2Label?new window.__cookiehub.C2Label:null;function u(){this.initialise.apply(this,arguments)}function g(e){const i=window.__cookiehub.core.linkerstring();for(const o of e)"childList"===o.type&&o.addedNodes.length>0&&o.addedNodes.forEach(e=>{!h.isBot()&&null!=this.cpm.linker&&this.cpm.linker.length>0&&(e.tagName&&"a"===e.tagName.toLowerCase()?y.call(this,e):""!=i&&e.tagName&&"iframe"===e.tagName.toLowerCase()?C.call(this,e,i):e.tagName&&"form"===e.tagName.toLowerCase()?S.call(this,e):null!=e&&void 0!==e.querySelectorAll&&(e.querySelectorAll("a").forEach(e=>{y.call(this,e)}),e.querySelectorAll("form").forEach(e=>{S.call(this,e)}),""!=i&&e.querySelectorAll("iframe").forEach(e=>{C.call(this,e,i)})))})}function b(i,o,t){if("implicit"==window.__cookiehub.region.consentType&&(t=!0),e.chReady=!0,i&&(this.cpm.onInitialise.bind(this)(window.cookiehubState.choice),document.dispatchEvent(new CustomEvent("cookiehub_onInitialise",{detail:{status:window.cookiehubState.choice}}))),null!=a&&(a.triggerCategories(),a.triggerAllowSale(),a.triggerVendorsAndServices()),i?null!=a&&a.triggerEvent("ready"):null!=a&&a.triggerEvent("modified"),t){var c=window.__cookiehub.settings.general,d=l.getDomain(c.domain,window.__cookiehub.settings.general.additional),r=c.sameSite,h=!1;d!=c.domain&&(r="None",h=!0),l.set(c.name,JSON.stringify(window.cookiehubState.choice),c.expiryDays,d,c.path,c.encode,r,h)}o&&null!=n&&n.log(o,window.cookiehubState.choice);for(var w=0;w<window.__cookiehub.categories.length;w++){var u=window.__cookiehub.categories[w];if(!u.fired){var g=window.cookiehubState.hasConsented(u.name);i&&!g||(u.fired=!0),g?(null!=a&&a.triggerEvent(u.name),this.cpm.onAllow.call(this,u.name),document.dispatchEvent(new CustomEvent("cookiehub_onAllow",{detail:{category:u.name}}))):i||(this.cpm.onRevoke.call(this,u.name),document.dispatchEvent(new CustomEvent("cookiehub_onRevoke",{detail:{category:u.name}})))}}if(i||k.call(this),window.cookiehubState.conditionalElements(),null!=s&&window.cookiehubState.choice.answered&&s.update(window.cookiehubState),null!=a&&(a.triggerEvent("consent_update"),i&&null!=a&&"implicit"==window.__cookiehub.region.consentType&&a.triggerEvent("modified")),null!=window.__cookiehub.settings.integrations){if(window.__cookiehub.settings.integrations.shopify.enabled&&void 0!==window.Shopify&&void 0!==window.Shopify.customerPrivacy&&window.Shopify.customerPrivacy.setTrackingConsent({analytics:window.cookiehubState.hasConsented("analytics"),marketing:window.cookiehubState.hasConsented("marketing"),preferences:window.cookiehubState.hasConsented("preferences"),sale_of_data:"ccpa"==window.__cookiehub.region.framework?window.cookiehubState.choice.allowSale:window.cookiehubState.hasConsented("marketing")},()=>{}),window.__cookiehub.settings.integrations.uet.enabled&&void 0!==window.uetq&&window.uetq.push("consent","update",{ad_storage:window.cookiehubState.hasConsented("marketing")?"granted":"denied"}),window.__cookiehub.settings.integrations.clarity.enabled)if(void 0!==window.clarity)window.clarity("consentv2",{ad_Storage:window.cookiehubState.hasConsented("marketing")?"granted":"denied",analytics_Storage:window.cookiehubState.hasConsented("analytics")?"granted":"denied"});else for(w=0;w<window.__cookiehub.services.length;w++)if(20===window.__cookiehub.services[w].id&&window.cookiehubState.hasConsented("c-"+window.__cookiehub.services[w].category_id)){setTimeout(()=>{void 0!==window.clarity&&window.cookiehubState&&window.clarity("consentv2",{ad_Storage:window.cookiehubState.hasConsented("marketing")?"granted":"denied",analytics_Storage:window.cookiehubState.hasConsented("analytics")?"granted":"denied"})},2e3);break}window.__cookiehub.settings.integrations.fbp.enabled&&"function"==typeof fbq&&fbq("consent",window.cookiehubState.hasConsented("marketing")?"grant":"revoke"),window.__cookiehub.settings.integrations.hubspot.enabled&&(window._hsp=window._hsp||[],window._hsp.push(["setHubSpotConsent",{analytics:window.cookiehubState.hasConsented("analytics"),advertisement:window.cookiehubState.hasConsented("marketing"),functionality:!0}]))}}function p(e){k.call(this),setTimeout(function(){p.call(this,e)},1e3*e,this)}function k(){for(var e=!0,i=0;i<window.__cookiehub.categories.length;i++)if(window.__cookiehub.categories[i].id>1&&window.cookiehubState.hasConsented(window.__cookiehub.categories[i].name)){e=!1;break}window.__cookiehub.settings.cookieRemoval.enabled||window.cookiehubState.choice.answered||(e=!1);var o=[window.__cookiehub.settings.general.name,"euconsent-v2","cookiehub-ac"];if(e){for(var t=0;t<window.__cookiehub.cookies.length;t++)1==window.__cookiehub.cookies[t].category&&-1===o.indexOf(window.__cookiehub.cookies[t].display_name.toLowerCase())&&o.push(window.__cookiehub.cookies[t].display_name.toLowerCase());l.deleteAll(o),window.__cookiehub.settings.cookieRemoval.removeStorage&&l.deleteStorageAll(o)}else for(t=0;t<window.__cookiehub.cookies.length;t++)window.cookiehubState.hasConsented("c-"+window.__cookiehub.cookies[t].category)||-1!==o.indexOf(window.__cookiehub.cookies[t].name)||(l.delete(window.__cookiehub.cookies[t].name),window.__cookiehub.settings.cookieRemoval.removeStorage&&l.deleteStorage(window.__cookiehub.cookies[t].name))}function _(e,i){window.__cookiehub.region=e,window.cookiehubState.choice.region=i,window.cookiehubState.choice.answered||window.cookiehubState.setDefaultState()}function f(){if(null==document.querySelector("link[data-ch2css]")&&null!=window.__cookiehub.css&&""!=window.__cookiehub.css){var e=document.createElement("link"),i=window.__cookiehub.css;window.cookiehubState.choice.answered&&(i+="?1"),e.href=i,e.type="text/css",e.rel="stylesheet",e.dataset.ch2css=!0,e.onload=this.showContainer.bind(this),document.getElementsByTagName("head")[0].appendChild(e)}else this.showContainer();if("ccpa"==window.__cookiehub.region.framework){var o=document.createElement("script");o.onload=function(){window.__cookiehub.gpp=new window.__cookiehub.C2GPP,window.__cookiehub.gpp.initialize(),"disabled"==window.cookiehubState.displayStatus||"hidden"==window.cookiehubState.displayStatus&&window.cookiehubState.choice.answered?window.__cookiehub.gpp.setChoice():"visible"==window.cookiehubState.displayStatus&&window.__cookiehub.gpp.setNoticeShowing()},o.src=window.__cookiehub.dist+"/gpp.js",document.body.appendChild(o)}else m.call(this);0==window.__cookiehub.region.framework.indexOf("tcf")?("function"==typeof window.__cookiehub.C2GoogleAC&&(window.__cookiehub.googleAC=new window.__cookiehub.C2GoogleAC,window.__cookiehub.googleAC.initialize()),"function"==typeof window.__cookiehub.C2TCF&&(window.__cookiehub.tcfv2=new window.__cookiehub.C2TCF,window.__cookiehub.tcfv2.initialize())):(v.call(this),"loading"===document.readyState||this.cl.call(this))}function v(){"function"==typeof window.__tcfapi&&(window.__tcfapi=function(e,i,o,t){"function"==typeof i&&void 0===o&&(o=i,i=2);var n={gdprApplies:!1,tcfPolicyVersion:2,cmpId:0,cmpVersion:0,eventStatus:"tcloaded",cmpStatus:"loaded"};switch(e){case"ping":o({gdprApplies:!1,cmpLoaded:!0,cmpStatus:"loaded",displayStatus:"hidden",apiVersion:2,cmpVersion:0,cmpId:0,gvlVersion:0,tcfPolicyVersion:2},!0);break;case"getTCData":case"getInAppTCData":o(n,!0);break;case"addEventListener":return o(n,!0),1;case"removeEventListener":o(!0);break;default:o(null,!1)}})}function m(){"function"==typeof window.__gpp&&(window.__gpp=function(e,i,o,t){if("function"==typeof i&&void 0===o&&(t=o,o=i,i=null),"function"==typeof o){var n={gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:[],cmpId:0,sectionList:[],applicableSections:[-1],gppString:"",parsedSections:{}};switch(e){case"ping":o(n,!0);break;case"addEventListener":return o({eventName:"listenerRegistered",listenerId:1,data:!0,pingData:n},!0),1;case"removeEventListener":o({eventName:"listenerRemoved",listenerId:t,data:!0,pingData:n},!0);break;case"hasSection":o(!1,!0);break;case"getSection":case"getField":o(null,!0);break;default:o(null,!1)}}})}function S(e){const i=(e.getAttribute("action")||"").trim();if(i&&null==e.dataset.cl&&/^(https?:\/\/|\/\/)[^\s/$.?#].[^\s]*$/i.test(i)){var o=i;let t;0===i.indexOf("//")&&(o="https:"+i);try{t=new URL(o)}catch{return}t.hostname!=location.hostname&&x.call(this,t.hostname)&&(e.dataset.cl="true",e.addEventListener("submit",window.cookiehub.formLinker))}}function y(e){null!=e.hostname&&null==e.dataset.cl&&e.hostname!=location.hostname&&x.call(this,e.hostname)&&(e.addEventListener("click",window.cookiehub.linker),e.dataset.cl="true")}function C(e,i){if(""!=i&&null!=e.src&&""!=e.src&&null==e.dataset.cl){const o=new URL(e.src);o.hostname!=location.hostname&&x.call(this,o.hostname)&&(e.dataset.cl="true",e.src=d.addLinker(e.src,i))}else""==i&&null!=e.dataset.cl&&(e.removeAttribute("data-cl"),e.src=d.removeLinker(e.src))}function x(e){for(var i=!1,o=e.replace(/^www\./,"").toLowerCase(),t=0;t<this.cpm.linker.length;t++){var n=this.cpm.linker[t].toLowerCase();if(n.startsWith("*")&&n.endsWith("*")){var c=n.slice(1,-1);if(-1!==o.indexOf(c)){i=!0;break}}else if(n.startsWith("*")){if(c=n.slice(1),o.endsWith(c)){i=!0;break}}else if(n.endsWith("*")){if(c=n.slice(0,-1),o.startsWith(c)){i=!0;break}}else if(e==n||e.replace("www.","")==n){i=!0;break}}return i}function E(e,i){if(!window.cookiehubState.choice.allAllowed||!i){var o=-1;if("preferences"==e||"c-2"==e)o=2;else if("analytics"==e||"c-3"==e)o=3;else if("marketing"==e||"c-4"==e)o=4;else if("uncategorized"==e||"other"==e||"c-5"==e)o=5;else if("number"==typeof e)o=e;else if("sale-and-share"==e&&"ccpa"==window.__cookiehub.region.framework)return void(window.cookiehubState.choice.allowSale=i);if(!(o<=1||o>5)){if(!window.cookiehubState.choice.allAllowed&&i){if(-1===window.cookiehubState.choice.categories.indexOf(o)&&window.cookiehubState.choice.categories.push(o),"services"==window.__cookiehub.region.preferences.consentMethod)for(let e=0;e<window.__cookiehub.services.length;e++)window.__cookiehub.services[e].category_id===o&&-1===window.cookiehubState.choice.services.indexOf(window.__cookiehub.services[e].id)&&window.cookiehubState.choice.services.push(window.__cookiehub.services[e].id)}else if(window.cookiehubState.choice.allAllowed){window.cookiehubState.choice.categories=[];for(let e=0;e<window.__cookiehub.categories.length;e++)window.__cookiehub.categories[e].show&&window.cookiehubState.choice.categories.push(window.__cookiehub.categories[e].id);if(window.cookiehubState.choice.categories.indexOf(o)>-1&&window.cookiehubState.choice.categories.splice(window.cookiehubState.choice.categories.indexOf(o),1),window.cookiehubState.choice.services=[],"services"==window.__cookiehub.region.preferences.consentMethod)for(let e=0;e<window.cookiehubState.choice.categories.length;e++)for(let i=0;i<window.__cookiehub.services.length;i++)window.__cookiehub.services[i].category_id===window.cookiehubState.choice.categories[e]&&-1===window.cookiehubState.choice.services.indexOf(window.__cookiehub.services[i].id)&&window.cookiehubState.choice.services.push(window.__cookiehub.services[i].id)}else if(window.cookiehubState.choice.categories.indexOf(o)>-1&&window.cookiehubState.choice.categories.splice(window.cookiehubState.choice.categories.indexOf(o),1),"services"==window.__cookiehub.region.preferences.consentMethod)for(let e=0;e<window.__cookiehub.services.length;e++)window.__cookiehub.services[e].category_id===o&&window.cookiehubState.choice.services.indexOf(window.__cookiehub.services[e].id)>-1&&window.cookiehubState.choice.services.splice(window.cookiehubState.choice.services.indexOf(window.__cookiehub.services[e].id),1);var t=!0;for(let e=0;e<window.__cookiehub.categories.length;e++)if(window.__cookiehub.categories[e].show){if(1==window.__cookiehub.categories[e].id)continue;let i=!1;for(let o=0;o<window.cookiehubState.choice.categories.length;o++)if(window.__cookiehub.categories[e].id===window.cookiehubState.choice.categories[o]){i=!0;break}if(!i){t=!1;break}}if(t&&"services"==window.__cookiehub.region.preferences.consentMethod)for(let e=0;e<window.__cookiehub.services.length;e++){if(1==window.__cookiehub.services[e].category_id)continue;let i=!1;for(let o=0;o<window.cookiehubState.choice.services.length;o++)if(window.__cookiehub.services[e].id===window.cookiehubState.choice.services[o]){i=!0;break}if(!i){t=!1;break}}window.cookiehubState.choice.allAllowed=t,t&&(window.cookiehubState.choice.categories=[],window.cookiehubState.choice.vendors=[],window.cookiehubState.choice.services=[])}}}function A(){window.cookiehubState.choice.answered=!0,window.cookiehubState.choice.revision=window.__cookiehub.settings.general.revision;var e=new Date;window.cookiehubState.choice.timestamp=e.toISOString()}function O(e){if(null!=window.__cookiehub.googleAC&&window.__cookiehub.googleAC.updateConsent(),null!=window.__cookiehub.tcfv2){window.__cookiehub.tcfv2.updateConsent();var i=!0;window.cookiehubState.choice.categories=[1],this.hasConsented("tp-1")?window.cookiehubState.choice.categories.push(2):i=!1,this.hasConsented("tp-1")&&this.hasConsented("tp-8")?window.cookiehubState.choice.categories.push(3):i=!1,this.hasConsented("tp-1")&&this.hasConsented("tp-2")&&this.hasConsented("tp-3")&&this.hasConsented("tp-4")&&this.hasConsented("tp-7")&&this.hasConsented("tp-9")&&this.hasConsented("tp-10")?window.cookiehubState.choice.categories.push(4):i=!1,i&&(window.cookiehubState.choice.categories=[]),window.cookiehubState.choice.allAllowed=i}null!=window.__cookiehub.gpp&&window.__cookiehub.gpp.setChoice(),window.cookiehubState.updateFiredFlag(e),this.cpm.onStatusChange.call(this,window.cookiehubState.choice,e),document.dispatchEvent(new CustomEvent("cookiehub_onStatusChange",{detail:{status:window.cookiehubState.choice,previousStatus:e}})),b.call(this,!1,1,!0),!h.isBot()&&null!=this.cpm.linker&&this.cpm.linker.length>0&&document.querySelectorAll("iframe").forEach(e=>{C.call(this,e,window.__cookiehub.core.linkerstring())})}function L(){var e=(i=new window.__cookiehub.C2Container).render(),o=(new window.__cookiehub.C2Icon).render();e=(e=(e=e.replace("{{icon}}",o)).replace("{{dialog}}","")).replace("{{settings}}","");var t=document.createElement("div"),n="";null!=window.__cookiehub.region&&window.__cookiehub.region.region.length>0&&(n=" ch2-region-"+window.__cookiehub.region.region[0].toLowerCase(),t.dataset.region=window.__cookiehub.region.region[0].toLowerCase()),t.className="ch2"+n,t.innerHTML=e,t.dataset.nosnippet=!0,this.cssLoaded||(t.style.display="none"),null==this.cpm.container?"top"==this.cpm.renderPosition||window.__cookiehub.settings.ui.accessibilityLevel>=2&&"bottom"!=this.cpm.renderPosition?document.body.insertBefore(t,document.body.firstChild):document.body.appendChild(t):this.cpm.container.appendChild(t),this.el.container=r.getFirstElementByClass("ch2-container"),this.el.icon=r.getFirstElementByClass("ch2-icon"),this.el.container.addEventListener("click",this.containerClick.bind(this),!1);for(var c=r.getElementsByClass("ch2-open-settings-btn"),a=0;a<c.length;a++)c[a].addEventListener("click",this.openSettings.bind(this),!1);var s=r.getElementsByClass("ch2-open-personal-data-btn");for(a=0;a<s.length;a++)window.__cookiehub.region.preferences.features.personalData?s[a].addEventListener("click",this.openPersonalData.bind(this),!1):s[a].style.display="none";this.renderDeclaration()}return u.prototype.el={},u.prototype.cssLoaded=!1,u.prototype.initialise=function(e){if(null==window.__cookiehub.core){if(null!=window.dataLayer)for(var i=0;i<window.dataLayer.length;i++)if(null!=window.dataLayer[i]){null!=window.dataLayer[i][0]&&"consent"==window.dataLayer[i][0]&&(window.__cookiehub.settings.gcm.enabled=!0);break}if(null!=window.__cookiehub.settings.integrations){if(window.__cookiehub.settings.integrations.shopify.enabled&&window.addEventListener("load",e=>{void 0!==window.Shopify&&void 0!==window.Shopify.shop&&(window.Shopify.loadFeatures([{name:"consent-tracking-api",version:"0.1"}],e=>{}),setTimeout(function(){void 0!==window.Shopify&&void 0!==window.Shopify.customerPrivacy&&null!==window.cookiehubState&&window.Shopify.customerPrivacy.setTrackingConsent({analytics:window.cookiehubState.hasConsented("analytics"),marketing:window.cookiehubState.hasConsented("marketing"),preferences:window.cookiehubState.hasConsented("preferences"),sale_of_data:"ccpa"==window.__cookiehub.region.framework?window.cookiehubState.choice.allowSale:window.cookiehubState.hasConsented("marketing")},()=>{})},1e3))}),window.__cookiehub.settings.integrations.uet.enabled){const e=document.createElement("script");e.innerHTML="\n\t\t\t\t\t\twindow.uetq = window.uetq || [];\n\t\t\t\t\t\twindow.uetq.push('consent', 'default', {\n\t\t\t\t\t\t\t'ad_storage': 'denied'\n\t\t\t\t\t\t});\n\t\t\t\t\t",document.head.appendChild(e)}window.__cookiehub.settings.integrations.fbp.enabled&&"function"==typeof fbq&&!window.cookiehubState.hasConsented("marketing")&&fbq("consent","revoke"),window.__cookiehub.settings.integrations.hubspot.enabled&&(window.disableHubSpotCookieBanner=!0)}if(window.__cookiehub.region=window.__cookiehub.regions[0],d.isPlainObject(e)){if(d.extend(this.cpm,e),null!=this.cpm.language){for(var o=!1,t=0;t<window.__cookiehub.languages.length;t++)if(window.__cookiehub.languages[t].code==this.cpm.language){o=!0;break}o&&(window.__cookiehub.settings.language.default=this.cpm.language,window.__cookiehub.settings.language.display=0,window.__cookiehub.settings.language.detectClient=!1)}null!=this.cpm.affiliate&&(window.__cookiehub.affiliate=this.cpm.affiliate)}}},u.prototype.initialProcessing=function(){if(h.isBot()){var e=JSON.parse(JSON.stringify(window.cookiehubState.choice));return 0==window.__cookiehub.regions[0].framework.indexOf("tcf")&&("function"==typeof window.__cookiehub.C2GoogleAC&&(window.__cookiehub.googleAC=new window.__cookiehub.C2GoogleAC,window.__cookiehub.googleAC.initialize(),window.__cookiehub.googleAC.allowAll()),"function"==typeof window.__cookiehub.C2TCF&&(window.__cookiehub.tcfv2=new window.__cookiehub.C2TCF,window.__cookiehub.tcfv2.initialize())),"function"==typeof window.__cookiehub.C2GPP&&(window.__cookiehub.gpp=new window.__cookiehub.C2GPP,"ccpa"==window.__cookiehub.regions[0].framework?window.__cookiehub.gpp.initialize():window.__cookiehub.gpp.setNotApplicable()),window.cookiehubState.implictConsent(!0),b.call(this,!0,!1,!0),null!=a&&a.triggerEvent("modified"),this.cpm.onStatusChange.call(this,window.cookiehubState.choice,e),void document.dispatchEvent(new CustomEvent("cookiehub_onStatusChange",{detail:{status:window.cookiehubState.choice,previousStatus:e}}))}if(window.cookiehubState.choice.answered||null!=window.cookiehubState.choice.region&&window.cookiehubState.choice.region.length>0){if(null!=window.cookiehubState.choice.region&&window.cookiehubState.choice.region.length>0)for(var i=0;i<window.__cookiehub.regions.length;i++)for(var o=0;o<window.__cookiehub.regions[i].region.length;o++)if(window.__cookiehub.regions[i].region[o]==window.cookiehubState.choice.region){_.call(this,window.__cookiehub.regions[i],window.cookiehubState.choice.region);break}f.call(this),-1==window.__cookiehub.region.framework.indexOf("tcf")&&b.call(this,!0,!1,!1)}else if(null!=n&&""==window.cookiehubState.choice.token&&(window.cookiehubState.choice.token=n.generateToken()),null!=c&&window.__cookiehub.regions.length>1){var t=this;c.lookup(function(e,i,o){null!=i&&_.call(t,i,o),f.call(t),b.call(t,!0,!1,!1)})}else f.call(this),b.call(this,!0,!1,!1);if(!h.isBot()&&null!=this.cpm.linker&&this.cpm.linker.length>0){for(var s=[],l=0;l<this.cpm.linker.length;l++){var d=this.cpm.linker[l].trim();d.length>4&&s.push(d)}if(this.cpm.linker=s,this.cpm.linker.length>0){var r=document.getElementsByTagName("a");for(i=0;i<r.length;i++)y.call(this,r[i]);document.querySelectorAll("iframe").forEach(e=>{C.call(this,e,window.__cookiehub.core.linkerstring())}),document.querySelectorAll("form").forEach(e=>{S.call(this,e)})}}new MutationObserver(e=>{g.call(this,e)}).observe(document.documentElement,{childList:!0,subtree:!0}),!h.isBot()&&window.__cookiehub.settings.cookieRemoval.enabled&&(window.__cookiehub.settings.cookieRemoval.aggressive&&p.call(this,30),k.call(this),setTimeout(function(){k.call(this)},2e3,this))},u.prototype.showContainer=function(){this.cssLoaded=!0,-1==window.__cookiehub.region.framework.indexOf("tcf")&&(null!=i&&null!=i||this.cl.call(this));var e=document.getElementsByClassName("ch2");return null!=e&&e.length>0&&(e[0].style.display=""),!0},u.prototype.cl=function(){var e=w.getLanguage();(null==e||2!=e.length&&5!=e.length)&&(e="en");var i=window.__cookiehub.assets+"/"+e+".json";const o=new XMLHttpRequest;var t=this;o.onreadystatechange=function(){4!=o.readyState&&o.readyState!=XMLHttpRequest.DONE||200==o.status&&(window.__cookiehub.locale=JSON.parse(o.responseText),t.cr.call(t))},o.open("GET",i,!0),o.send(),200===o.status&&(window.__cookiehub.locale=JSON.parse(o.responseText))},u.prototype.cr=function(){0==window.__cookiehub.region.framework.indexOf("tcf")&&b.call(this,!0,!1,!1),void 0!==document.getElementsByClassName("ch2")&&document.getElementsByClassName("ch2").length>0||(!this.cpm.enabled&&this.cpm.render&&L.call(this),this.cpm.enabled&&(window.cookiehubState.noticeShown=!0,L.call(this),this.cpm.preview&&this.cpm.preview.length>0?"dialog"==this.cpm.preview?setTimeout(function(e){e.openDialog()},10,this):"settings"==this.cpm.preview?setTimeout(function(e){e.openSettings()},10,this):setTimeout(function(e){e.openIcon()},10,this):window.cookiehubState.choice.answered||"none"==window.__cookiehub.region.bannerType?("none"===window.__cookiehub.region.bannerType&&(window.cookiehubState.displayStatus="disabled"),setTimeout(function(e){e.openIcon()},10,this),null!=window.__cookiehub.gpp&&"ccpa"==window.__cookiehub.region.framework&&window.__cookiehub.gpp.setChoice()):"notice"==window.__cookiehub.region.bannerType?setTimeout(function(e){e.openDialog()},10,this):"preferences"==window.__cookiehub.region.bannerType?setTimeout(function(e){e.openSettings()},10,this):(window.cookiehubState.displayStatus="disabled",setTimeout(function(e){e.openIcon()},10,this),null!=window.__cookiehub.gpp&&"ccpa"==window.__cookiehub.region.framework&&window.__cookiehub.gpp.setChoice())))},u.prototype.destroy=function(){window.__cookiehub.core=null;for(var e=document.getElementsByClassName("ch2"),i=0;i<e.length;i++)null!=e[i]&&e[i].parentNode&&e[i].parentNode.removeChild(e[i])},u.prototype.setLanguage=function(e){for(var i=!1,o=0;o<window.__cookiehub.languages.length;o++)if(window.__cookiehub.languages[o].code==e){i=!0;break}if(i){this.cpm.language=e,window.__cookiehub.settings.language.default=e,window.__cookiehub.settings.language.display=0,window.__cookiehub.settings.language.detectClient=!1;var t=Object.assign({},this.cpm);this.destroy(),window.cookiehub.initialise(t)}},u.prototype.conditionalElements=function(){window.cookiehubState.conditionalElements()},u.prototype.choiceModified=function(e,i){if(this.el.settings&&(null==e||3==e.eventPhase)){var o=JSON.parse(JSON.stringify(window.cookiehubState.choice));A.call(this);for(var t=r.getElementsByClass("ch2-switch-value"),n=!0,c=0;c<t.length;c++)if("personal-data"==t[c].name)window.cookiehubState.choice.allowSale=t[c].checked;else{var a=t[c].name.split("-");if("c"==a[0]&&"sv"!=a[1]){var s=parseInt(a[1]);t[c].checked&&-1===window.cookiehubState.choice.categories.indexOf(s)?window.cookiehubState.choice.categories.push(s):!t[c].checked&&window.cookiehubState.choice.categories.indexOf(s)>-1&&window.cookiehubState.choice.categories.splice(window.cookiehubState.choice.categories.indexOf(s),1),t[c].checked||(n=!1)}else if("v"==a[0]&&"sv"!=a[1]){var l=parseInt(a[1]);t[c].checked&&-1===window.cookiehubState.choice.vendors.indexOf(l)?window.cookiehubState.choice.vendors.push(l):!t[c].checked&&window.cookiehubState.choice.vendors.indexOf(l)>-1&&window.cookiehubState.choice.vendors.splice(window.cookiehubState.choice.vendors.indexOf(l),1),t[c].checked||(n=!1)}else if("sv"==a[1]){var d=parseInt(a[3]);t[c].checked&&-1===window.cookiehubState.choice.services.indexOf(d)?window.cookiehubState.choice.services.push(d):!t[c].checked&&window.cookiehubState.choice.services.indexOf(d)>-1&&window.cookiehubState.choice.services.splice(window.cookiehubState.choice.vendors.indexOf(d),1),t[c].checked||(n=!1)}}return window.cookiehubState.choice.allAllowed=n,n&&(window.cookiehubState.choice.categories=[],window.cookiehubState.choice.vendors=[],window.cookiehubState.choice.services=[]),O.call(this,o),this}},u.prototype.allow=function(e,i){var o=JSON.parse(JSON.stringify(window.cookiehubState.choice));A.call(this),Array.isArray(e)||(e=[e]);for(let o=0;o<e.length;o++)E.call(this,e[o],!0,i);O.call(this,o)},u.prototype.deny=function(e,i){var o=JSON.parse(JSON.stringify(window.cookiehubState.choice));A.call(this),Array.isArray(e)||(e=[e]);for(let o=0;o<e.length;o++)E.call(this,e[o],!1,i);O.call(this,o)},u.prototype.hasConsented=function(e){return null!=window.cookiehubState&&window.cookiehubState.hasConsented(e)},u.prototype.allowCookies=function(e,i){e&&e.preventDefault(),null!=a&&a.triggerEvent("click_allow_all");var o=JSON.parse(JSON.stringify(window.cookiehubState.choice));window.cookiehubState.choice.answered=!0,window.cookiehubState.choice.allAllowed=!0,window.cookiehubState.choice.implicit=!1,window.cookiehubState.choice.revision=window.__cookiehub.settings.general.revision,window.cookiehubState.choice.categories=[],window.cookiehubState.choice.vendors=[],window.cookiehubState.choice.services=[];var t=new Date;return window.cookiehubState.choice.timestamp=t.toISOString(),null!=window.__cookiehub.googleAC&&window.__cookiehub.googleAC.allowAll(),null!=window.__cookiehub.tcfv2&&window.__cookiehub.tcfv2.allowAll(),null!=window.__cookiehub.gpp&&window.__cookiehub.gpp.setChoice(),window.cookiehubState.updateFiredFlag(o),this.cpm.onStatusChange.call(this,window.cookiehubState.choice,o),document.dispatchEvent(new CustomEvent("cookiehub_onStatusChange",{detail:{status:window.cookiehubState.choice,previousStatus:o}})),this.closeDialog(),this.closeSettings(),b.call(this,!1,1,!0),!h.isBot()&&null!=this.cpm.linker&&this.cpm.linker.length>0&&document.querySelectorAll("iframe").forEach(e=>{C.call(this,e,window.__cookiehub.core.linkerstring())}),this},u.prototype.denyCookies=function(e,i){e&&e.preventDefault(),null!=a&&a.triggerEvent("click_deny_all");var o=JSON.parse(JSON.stringify(window.cookiehubState.choice));const t=!window.cookiehubState.choice.answered;window.cookiehubState.choice.answered=!0,window.cookiehubState.choice.allAllowed=!1,window.cookiehubState.choice.implicit=!1,window.cookiehubState.choice.allowSale=!1,window.cookiehubState.choice.revision=window.__cookiehub.settings.general.revision,window.cookiehubState.choice.categories=[],window.cookiehubState.choice.vendors=[],window.cookiehubState.choice.services=[];var n=new Date;if(window.cookiehubState.choice.timestamp=n.toISOString(),null!=window.__cookiehub.googleAC&&window.__cookiehub.googleAC.denyAll(),null!=window.__cookiehub.tcfv2&&window.__cookiehub.tcfv2.denyAll(t),null!=window.__cookiehub.gpp&&window.__cookiehub.gpp.setChoice(),window.cookiehubState.updateFiredFlag(o),this.cpm.onStatusChange.call(this,window.cookiehubState.choice,o),document.dispatchEvent(new CustomEvent("cookiehub_onStatusChange",{detail:{status:window.cookiehubState.choice,previousStatus:o}})),this.closeDialog(),this.closeSettings(),b.call(this,!1,1,!0),!h.isBot()){for(var c=[window.__cookiehub.settings.general.name,"euconsent-v2","cookiehub-ac"],s=0;s<window.__cookiehub.cookies.length;s++)1==window.__cookiehub.cookies[s].category&&-1===c.indexOf(window.__cookiehub.cookies[s].display_name.toLowerCase())&&c.push(window.__cookiehub.cookies[s].display_name.toLowerCase());l.deleteAll(c),window.__cookiehub.settings.cookieRemoval.removeStorage&&l.deleteStorageAll(c)}return!h.isBot()&&null!=this.cpm.linker&&this.cpm.linker.length>0&&document.querySelectorAll("iframe").forEach(e=>{C.call(this,e,window.__cookiehub.core.linkerstring())}),this},u.prototype.learnMoreClick=function(e,i){if(this.el.dialog)return null!=a&&a.triggerEvent("click_learn_more"),this},u.prototype.saveSettings=function(e,i){if(e&&e.preventDefault(),this.el.settings)return null!=a&&a.triggerEvent("click_save"),this.choiceModified(),this.closeSettings(),this},u.prototype.openSettings=function(e,i="settings"){if(e&&e.preventDefault(),null!=a&&("settings"==i?a.triggerEvent("click_open_settings"):"personal-data"==i&&a.triggerEvent("click_open_personal_data")),!this.el.settings){var o=(t=new window.__cookiehub.C2Settings).render(),n=document.createElement("div");n.innerHTML=o,this.el.container.appendChild(n.firstChild),this.el.settings=r.getFirstElementByClass("ch2-settings"),t.attachEvents(),this.closeDialog(),this.closeIcon()}var c=document.getElementById("ch2-settings-dialog");return null!=c&&setTimeout(function(){c.focus()},100),"personal-data"==i?t.open("ch2-personal-data"):"vendors"==i?t.open("ch2-vendors"):"declaration"==i?t.open("ch2-declaration"):"legitimate-interest"==i?t.open("ch2-legitimate-interest"):t.open("ch2-settings"),this},u.prototype.openPersonalData=function(e){return this.openSettings(e,"personal-data")},u.prototype.openVendors=function(e){return this.openSettings(e,"vendors")},u.prototype.closeSettings=function(e,i){return window.cookiehubState.displayStatus="hidden",e&&e.preventDefault(),null!=t&&t.close(),this.openIcon(),null!=window.__cookiehub.gpp&&"ccpa"==window.__cookiehub.region.framework&&window.__cookiehub.gpp.setChoice(),this},u.prototype.containerClick=function(e,i){return r.hasClass(e.target,"ch2-container")&&window.cookiehubState.choice.answered&&r.hasClass(this.el.settings,"ch2-visible")&&this.closeSettings(),this},u.prototype.openDialog=function(){if(window.cookiehubState.displayStatus="visible",!this.el.dialog){var e=(o=new window.__cookiehub.C2Dialog).render(),i=document.createElement("div");i.innerHTML=e,this.el.container.appendChild(i.firstChild),this.el.dialog=r.getFirstElementByClass("ch2-dialog"),o.attachEvents();for(var t=r.getElementsByClass("ch2-dialog-close-btn"),n=0;n<t.length;n++){var c=t[n].dataset.action;"deny"==c?t[n].addEventListener("click",this.denyCookies.bind(this),!1):"allow"==c?t[n].addEventListener("click",this.allowCookies.bind(this),!1):t[n].addEventListener("click",e=>{this.closeDialog(e),null!=window.__cookiehub.gpp&&window.__cookiehub.gpp.setChoice(),null!=window.__cookiehub.tcfv2&&window.__cookiehub.tcfv2.updateDisplayStatus()},!1)}}if(null!=window.__cookiehub.gpp&&"ccpa"==window.__cookiehub.region.framework&&window.__cookiehub.gpp.setNoticeShowing(),null!=window.__cookiehub.tcfv2&&window.__cookiehub.tcfv2.updateDisplayStatus(),window.__cookiehub.region.banner.blockUI&&(r.addClass(this.el.container,"ch2-block"),document.getElementsByTagName("body")[0].style.overflow="hidden"),window.__cookiehub.region.banner.blockUI||window.__cookiehub.settings.ui.accessibilityLevel>=2){var s=document.getElementById("ch2-dialog");null!=s&&(s.setAttribute("aria-modal","true"),setTimeout(function(){s.focus()},100))}return r.addClass(this.el.dialog,"ch2-visible"),null!=a&&a.triggerEvent("dialog"),this.closeIcon(),this},u.prototype.closeDialog=function(e){if(window.cookiehubState.displayStatus="hidden",e&&e.preventDefault(),this.el.dialog)return r.removeClass(this.el.dialog,"ch2-visible"),r.removeClass(this.el.container,"ch2-block"),document.getElementsByTagName("body")[0].style.removeProperty("overflow"),this.openIcon(),this},u.prototype.openIcon=function(){if(this.el.icon)return r.addClass(this.el.icon,"ch2-visible"),this},u.prototype.closeIcon=function(){if(this.el.icon)return r.removeClass(this.el.icon,"ch2-visible"),this},u.prototype.hasAnswered=function(e){return null!=window.cookiehubState.choice&&window.cookiehubState.choice.answered},u.prototype.usprivacy=function(){var e="1";return window.cookiehubState.noticeShown?(e+="y",e+=window.cookiehubState.choice.allowSale?"n":"y",e+="-"):e+="---",e},u.prototype.getStatus=function(){return l.get(window.__cookiehub.settings.general.name,window.__cookiehub.settings.general.encode)},u.prototype.clearStatus=function(){var e=window.__cookiehub.settings.general;"cookie"==e.storage?l.delete(e.name):l.deleteStorage(e.name)},u.prototype.renderDeclaration=function(){var e=document.body.getElementsByClassName("cookiehub-declaration");if(null!=e&&e.length>0){var i=(new window.__cookiehub.C2Declaration).render(!0);e[0].innerHTML=i}},u.prototype.linkerstring=function(){var e="";if(null!=window.cookiehubState.choice&&window.cookiehubState.choice.answered&&window.cookiehubState.choice.allAllowed){var i=[];i.push(1),i.push(window.cookiehubState.choice.allAllowed?"1":"0"),i.push(window.cookiehubState.choice.allowSale?"1":"0"),i.push(window.cookiehubState.choice.token);for(var o=[],t=0;t<window.cookiehubState.choice.categories.length;t++)o.push(window.cookiehubState.choice.categories[t]);i.push(o.join(",")),e=i.join(";")}return btoa(e)},u}(),e.initialise=function(i){null==window.__cookiehub.core&&(window.__cookiehub.core=new e.Popup(i),window.__cookiehub.core.el={},window.__cookiehub.core.initialProcessing())},e.load=function(e){this.initialise(e)},e.hasInitialised=!0,e.usprivacy=function(){return window.__cookiehub.core.usprivacy()},e.destroy=function(){return window.__cookiehub.core.destroy()},e.hasConsented=function(e){return null!==window.cookiehubState&&window.cookiehubState.hasConsented(e)},e.hasAnswered=function(){return null!==window.cookiehubState.choice&&window.cookiehubState.choice.answered},e.isSellingAllowed=function(){return null!==window.cookiehubState.choice&&window.cookiehubState.choice.allowSale},e.isSharingAllowed=function(){return null!==window.cookiehubState.choice&&window.cookiehubState.choice.allowSale},e.allowAll=function(){window.__cookiehub.core.allowCookies()},e.denyAll=function(){window.__cookiehub.core.denyCookies()},e.openDialog=function(){window.__cookiehub.core.openDialog()},e.closeDialog=function(){window.__cookiehub.core.closeDialog()},e.openSettings=function(e){window.__cookiehub.core.openSettings(null,e)},e.openPersonalData=function(){window.__cookiehub.core.openPersonalData()},e.closeSettings=function(){window.__cookiehub.core.closeSettings()},e.renderDeclaration=function(){window.__cookiehub.core.renderDeclaration()},e.conditionalElements=function(){window.__cookiehub.core.conditionalElements()},e.setLanguage=function(e){window.__cookiehub.core.setLanguage(e)},e.allow=function(e){window.__cookiehub.core.allow(e)},e.deny=function(e){window.__cookiehub.core.deny(e)},e.isReady=function(){return void 0!==e.chReady&&!0===e.chReady},e.linker=function(e){var i=window.__cookiehub.core.linkerstring();""!=i&&(e.currentTarget.href=(new __cookiehub.C2Helpers).addLinker(e.currentTarget.href,i))},e.formLinker=function(e){if(null!=e.currentTarget.action&&""!=e.currentTarget.action){var i=window.__cookiehub.core.linkerstring();""!=i&&(e.currentTarget.action=(new __cookiehub.C2Helpers).addLinker(e.currentTarget.action,i))}},window.cookiehub=e)}();
// modules/gtm-initialize.js
!function(){if(null!=window.cookiehub_gtm&&window.cookiehub_gtm.enabled){var o={};if(window.__cookiehub.settings.gcm.enabled=window.cookiehub_gtm.consentMode,window.__cookiehub.settings.gtm.enabled=!0,null==window.cookiehub_gtm.language||2!=window.cookiehub_gtm.language.length&&5!=window.cookiehub_gtm.language.length||!window.__cookiehub.settings.language.languages.some(o=>o.toLowerCase()==window.cookiehub_gtm.language.toLowerCase())||(window.__cookiehub.settings.language.display=0,window.__cookiehub.settings.language.default=window.cookiehub_gtm.language),null!=window.cookiehub_gtm.renderPosition&&(o.renderPosition=window.cookiehub_gtm.renderPosition),null!=window.cookiehub_gtm.showUI&&(o.enabled=window.cookiehub_gtm.showUI),null!=window.cookiehub_gtm.showIcon&&!window.cookiehub_gtm.showIcon)for(var e=0;e<window.__cookiehub.regions.length;e++)window.__cookiehub.regions[e].icon.theme="none";null!=window.cookiehub_gtm.expiryDays&&(window.__cookiehub.settings.general.expiryDays=parseInt(window.cookiehub_gtm.expiryDays)),null!=window.cookiehub_gtm.linker&&window.cookiehub_gtm.linker.length>0&&(o.linker=window.cookiehub_gtm.linker),null!=document.body?window.cookiehub.load(o):document.addEventListener("DOMContentLoaded",function(e){window.cookiehub.load(o)})}}();
// modules/gcm-initialize.js
!function(){var e,i,n,o,r,t,a,g,s;null!=window.__cookiehub&&window.__cookiehub.settings.gcm.enabled&&(e=window.__cookiehub.settings.gcm.dataLayer,i=function(){window[e]=window[e]||[],window[e].push(arguments)},n=function(i){window[e]=window[e]||[];for(var n=0;n<window[e].length;n++)if(void 0!==window[e][n]&&window[e][n].length>2&&"consent"===window[e][n][0]&&"default"===window[e][n][1]&&window[e][n][2])if(i){if(window[e][n][2].region)return!0}else if(void 0===window[e][n][2].region)return!0;return!1},o=function(e){if(window.google_tag_manager&&window.google_tag_manager.mb&&window.google_tag_manager.mb.messages&&Array.isArray(window.google_tag_manager.mb.messages))for(let i=0;i<window.google_tag_manager.mb.messages.length;i++){let n=window.google_tag_manager.mb.messages[i].message;if(n&&"consent"===n[0]&&"default"===n[1]&&n[2])if(e){if(n[2].region)return!0}else if(void 0===n[2].region)return!0}return!1},r=function(e){var i="denied";if("implicit"==window.__cookiehub.regions[0].consentType)return"granted";for(var n=0;n<window.__cookiehub.categories.length;n++)if(window.__cookiehub.categories[n].name===e){window.__cookiehub.categories[n].implicit&&(i="granted");break}return i},t=function(e,i){var n="denied";"implicit"==e.consentType&&(n="granted");for(var o=0;o<window.__cookiehub.categories.length;o++)if(window.__cookiehub.categories[o].name===i){window.__cookiehub.categories[o].implicit&&(n="granted");break}return null!=e.categories&&("preferences"==i&&"inherit"!=e.categories.preferences.type&&(n="implicit"==e.categories.preferences.type?"granted":"denied"),"analytics"==i&&"inherit"!=e.categories.analytics.type&&(n="implicit"==e.categories.analytics.type?"granted":"denied"),"marketing"==i&&"inherit"!=e.categories.marketing.type&&(n="implicit"==e.categories.marketing.type?"granted":"denied")),n},a=function(e){for(var i=[],n=0;n<e.length;n++){var o=e[n];"EU"==o?i.push("AT","BE","BG","HR","CY","CZ","DK","EE","FO","FI","FR","DE","GR","GL","HU","IS","IE","IT","LV","LI","LT","LU","MT","NL","NO","PL","PT","RO","SK","SI","ES","SE","CH","GB"):"C3"==o?i.push("US-CA","US-CO","US-CT","US-NV","US-UT","US-VA","US-FL","US-OR","US-TX","US-MT"):"C4"==o?i.push("AR","BR","JP","MX","TR","IN"):"C5"==o?i.push("CA","CN","HK","NZ","NG","SG","ZA","KR"):"C1"==o?i.push("AT","BE","BG","HR","CY","CZ","DK","EE","FO","FI","FR","DE","GR","GL","HU","IS","IE","IT","LV","LI","LT","LU","MT","NL","NO","PL","PT","RO","SK","SI","ES","SE","CH","GB","TR","BR","IN"):"C2"==o?i.push("AT","BE","BG","HR","CY","CZ","DK","EE","FO","FI","FR","DE","GR","GL","HU","IS","IE","IT","LV","LI","LT","LU","MT","NL","NO","PL","PT","RO","SK","SI","ES","SE","CH","GB","TR","BR","IN","AR","CA","MX","US-CA","US-CO","US-CT","US-NV","US-UT","US-VA","US-FL","US-OR","US-TX","US-MT"):i.push(o)}return i},g=function(){n(!1)||i("consent","default",{security_storage:"granted",functionality_storage:r("preferences"),personalization_storage:r("preferences"),analytics_storage:r("analytics"),ad_storage:r("marketing"),ad_user_data:r("marketing"),ad_personalization:r("marketing"),wait_for_update:2e3})},s=function(){if(window.__cookiehub.regions.length>1&&!n(!0))for(var e=1;e<window.__cookiehub.regions.length;e++)i("consent","default",{security_storage:"granted",functionality_storage:t(window.__cookiehub.regions[e],"preferences"),personalization_storage:t(window.__cookiehub.regions[e],"preferences"),analytics_storage:t(window.__cookiehub.regions[e],"analytics"),ad_storage:t(window.__cookiehub.regions[e],"marketing"),ad_user_data:t(window.__cookiehub.regions[e],"marketing"),ad_personalization:t(window.__cookiehub.regions[e],"marketing"),wait_for_update:2e3,region:a(window.__cookiehub.regions[e].region)})},null==window.cookiehub_gtm?(i("set","developer_id.dMzY0Yz",!0),g(),s()):(o(!1)||g(),o(!0)||s()))}();
