!function(){"use strict";var e="initCookieConsent";"undefined"!=typeof window&&"function"!=typeof window[e]&&(window[e]=function(e){var t,n,i,o,a,r,c,s,l,d,u,p,f,h,g,v,_,m,b,y,k,C,A,w,S,x,N,T,L,O,j,M,H,D,E,J={mode:"opt-in",current_lang:"en",auto_language:null,autorun:!0,page_scripts:!0,hide_from_bots:!0,cookie_name:"cc_cookie",cookie_expiration:182,cookie_domain:location.hostname,cookie_path:"/",cookie_same_site:"Lax",use_rfc_cookie:!1,autoclear_cookies:!0,revision:0,script_selector:"data-cookiecategory"},q={},I={},P=null,U=!0,F=!1,R=!1,z=!1,B=!1,G=!0,K=[],V=!1,Q=[],W=[],X=[],Y=!1,Z=[],$=[],ee=[],te=[],ne=[],ie=document.documentElement,oe=function(e){"number"==typeof(t=e).cookie_expiration&&(J.cookie_expiration=t.cookie_expiration),"number"==typeof t.cookie_necessary_only_expiration&&(J.cookie_necessary_only_expiration=t.cookie_necessary_only_expiration),"boolean"==typeof t.autorun&&(J.autorun=t.autorun),"string"==typeof t.cookie_domain&&(J.cookie_domain=t.cookie_domain),"string"==typeof t.cookie_same_site&&(J.cookie_same_site=t.cookie_same_site),"string"==typeof t.cookie_path&&(J.cookie_path=t.cookie_path),"string"==typeof t.cookie_name&&(J.cookie_name=t.cookie_name),"function"==typeof t.onAccept&&(u=t.onAccept),"function"==typeof t.onFirstAction&&(f=t.onFirstAction),"function"==typeof t.onChange&&(p=t.onChange),"opt-out"===t.mode&&(J.mode="opt-out"),"number"==typeof t.revision&&(t.revision>-1&&(J.revision=t.revision),B=!0),"boolean"==typeof t.autoclear_cookies&&(J.autoclear_cookies=t.autoclear_cookies),!0===t.use_rfc_cookie&&(J.use_rfc_cookie=!0),"boolean"==typeof t.hide_from_bots&&(J.hide_from_bots=t.hide_from_bots),J.hide_from_bots&&(Y=navigator&&(navigator.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(navigator.userAgent)||navigator.webdriver)),J.page_scripts=!0===t.page_scripts,"browser"===t.auto_language||!0===t.auto_language?J.auto_language="browser":"document"===t.auto_language&&(J.auto_language="document"),J.auto_language,J.current_lang=pe(t.languages,t.current_lang)},ae=function(e){for(var t="accept-",n=c("c-settings"),i=c(t+"all"),o=c(t+"necessary"),a=c(t+"custom"),r=0;r<n.length;r++)n[r].setAttribute("aria-haspopup","dialog"),ye(n[r],"click",(function(e){e.preventDefault(),q.showSettings(0)}));for(r=0;r<i.length;r++)ye(i[r],"click",(function(e){s(e,"all")}));for(r=0;r<a.length;r++)ye(a[r],"click",(function(e){s(e)}));for(r=0;r<o.length;r++)ye(o[r],"click",(function(e){s(e,[])}));function c(t){return(e||document).querySelectorAll('[data-cc="'+t+'"]')}function s(e,t){e.preventDefault(),q.accept(t),q.hideSettings(),q.hide()}},re=function(e,t){return t.hasOwnProperty(e)?e:ke(t).length>0?t.hasOwnProperty(J.current_lang)?J.current_lang:ke(t)[0]:void 0},ce=function(e){if(!0===t.force_consent&&Ce(ie,"force--consent"),!b){b=ue("div");var n=ue("div"),i=ue("div");b.id="cm",n.id="c-inr-i",i.id="cm-ov",b.tabIndex=-1,b.setAttribute("role","dialog"),b.setAttribute("aria-modal","true"),b.setAttribute("aria-hidden","false"),b.setAttribute("aria-labelledby","c-ttl"),b.setAttribute("aria-describedby","c-txt"),m.appendChild(b),m.appendChild(i),b.style.visibility=i.style.visibility="hidden",i.style.opacity=0}var o=t.languages[e].consent_modal.title;o&&(y||((y=ue("h2")).id="c-ttl",n.appendChild(y)),y.innerHTML=o);var a=t.languages[e].consent_modal.description;B&&(a=G?a.replace("{{revision_message}}",""):a.replace("{{revision_message}}",t.languages[e].consent_modal.revision_message||"")),k||((k=ue("div")).id="c-txt",n.appendChild(k)),k.innerHTML=a;var r,c=t.languages[e].consent_modal.primary_btn,s=t.languages[e].consent_modal.secondary_btn;c&&(C||((C=ue("button")).id="c-p-bn",C.className="c-bn",C.appendChild(Se(1)),"accept_all"===c.role&&(r="all"),ye(C,"click",(function(){q.hide(),q.accept(r)}))),C.firstElementChild.innerHTML=t.languages[e].consent_modal.primary_btn.text),s&&(A||((A=ue("button")).id="c-s-bn",A.className="c-bn c_link",A.appendChild(Se(1)),"accept_necessary"===s.role?ye(A,"click",(function(){q.hide(),q.accept([])})):ye(A,"click",(function(){q.showSettings(0)}))),A.firstElementChild.innerHTML=t.languages[e].consent_modal.secondary_btn.text);var l=t.gui_options;S||((S=ue("div")).id="c-inr",S.appendChild(n)),w||((w=ue("div")).id="c-bns",l&&l.consent_modal&&!0===l.consent_modal.swap_buttons?(s&&w.appendChild(A),c&&w.appendChild(C),w.className="swap"):(c&&w.appendChild(C),s&&w.appendChild(A)),(c||s)&&S.appendChild(w),b.appendChild(S)),F=!0,ae(S)},se=function(e){if(x)(j=ue("div")).id="s-bl";else{(x=ue("div")).tabIndex=-1;var n=ue("div"),i=ue("div"),o=ue("div");N=ue("div"),T=ue("h2");var a=ue("div");(L=ue("button")).appendChild(Se(2));var r=ue("div");O=ue("div");var c=ue("div"),s=!1;ye(x,"mouseup",(function(e){!z||s||N.contains(e.target)||q.hideSettings()})),ye(x,"mousedown",(function(e){z&&(s=N.contains(e.target))})),x.id="s-cnt",n.id="c-vln",o.id="c-s-in",i.id="cs",T.id="s-ttl",N.id="s-inr",a.id="s-hdr",O.id="s-bl",L.id="s-c-bn",c.id="cs-ov",r.id="s-c-bnc",L.className="c-bn",x.setAttribute("role","dialog"),x.setAttribute("aria-modal","true"),x.setAttribute("aria-hidden","true"),x.setAttribute("aria-labelledby","s-ttl"),x.style.visibility=c.style.visibility="hidden",c.style.opacity=0,r.appendChild(L),ye(document,"keydown",(function(e){27===e.keyCode&&z&&q.hideSettings()}),!0),ye(L,"click",(function(){q.hideSettings()}))}var u=t.languages[e].settings_modal;L.setAttribute("aria-label",u.close_btn_label||"Close"),d=u.blocks,l=u.cookie_table_headers;var p=u.cookie_table_caption,f=d.length;T.innerHTML=u.title;for(var h=0;h<f;++h){var g=d[h].title,v=d[h].description,_=d[h].toggle,b=d[h].cookie_table,y=!0===t.remove_cookie_tables,k=!!v||!y&&!!b,C=ue("div"),A=ue("div");if(v){var w=ue("div");w.className="p",w.insertAdjacentHTML("beforeend",v)}var S=ue("div");if(S.className="title",C.className="c-bl",A.className="desc",void 0!==_){var J="c-ac-"+h,P=ue(k?"button":"div"),F=ue("label"),R=ue("input"),B=ue("span"),G=ue("span"),K=ue("span"),V=ue("span");P.className=k?"b-tl exp":"b-tl",F.className="b-tg",R.className="c-tgl",K.className="on-i",V.className="off-i",B.className="c-tg",G.className="t-lb",k&&(P.setAttribute("aria-expanded","false"),P.setAttribute("aria-controls",J)),R.type="checkbox",B.setAttribute("aria-hidden","true");var Q=_.value;R.value=Q,G.textContent=g,P.insertAdjacentHTML("beforeend",g),S.appendChild(P),B.appendChild(K),B.appendChild(V),U?_.enabled?(R.checked=!0,!j&&ee.push(!0),_.enabled&&!j&&X.push(Q)):!j&&ee.push(!1):de(I.categories,Q)>-1?(R.checked=!0,!j&&ee.push(!0)):!j&&ee.push(!1),!j&&te.push(Q),_.readonly&&(R.disabled=!0,Ce(B,"c-ro"),!j&&ne.push(Q)),Ce(A,"b-acc"),Ce(S,"b-bn"),Ce(C,"b-ex"),A.id=J,A.setAttribute("aria-hidden","true"),F.appendChild(R),F.appendChild(B),F.appendChild(G),S.appendChild(F),k&&function(e,t,n){ye(P,"click",(function(){we(t,"act")?(Ae(t,"act"),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true")):(Ce(t,"act"),n.setAttribute("aria-expanded","true"),e.setAttribute("aria-hidden","false"))}),!1)}(A,C,P)}else if(g){var W=ue("div");W.className="b-tl",W.setAttribute("role","heading"),W.setAttribute("aria-level","3"),W.insertAdjacentHTML("beforeend",g),S.appendChild(W)}if(g&&C.appendChild(S),v&&A.appendChild(w),!y&&void 0!==b){for(var Y=document.createDocumentFragment(),Z=0;Z<l.length;++Z){var $=ue("th"),ie=l[Z];if($.setAttribute("scope","col"),ie){var oe=ie&&ke(ie)[0];$.textContent=l[Z][oe],Y.appendChild($)}}var ae=ue("tr");ae.appendChild(Y);var re=ue("thead");re.appendChild(ae);var ce=ue("table");if(p){var se=ue("caption");se.innerHTML=p,ce.appendChild(se)}ce.appendChild(re);for(var le=document.createDocumentFragment(),pe=0;pe<b.length;pe++){for(var fe=ue("tr"),he=0;he<l.length;++he)if(ie=l[he]){oe=ke(ie)[0];var ge=ue("td");ge.insertAdjacentHTML("beforeend",b[pe][oe]),ge.setAttribute("data-column",ie[oe]),fe.appendChild(ge)}le.appendChild(fe)}var ve=ue("tbody");ve.appendChild(le),ce.appendChild(ve),A.appendChild(ce)}(_&&g||!_&&(g||v))&&(C.appendChild(A),j?j.appendChild(C):O.appendChild(C))}M||((M=ue("div")).id="s-bns"),D||((D=ue("button")).id="s-all-bn",D.className="c-bn",M.appendChild(D),ye(D,"click",(function(){q.accept("all"),q.hideSettings(),q.hide()}))),D.innerHTML=u.accept_all_btn;var _e=u.reject_all_btn;if(_e&&(E||((E=ue("button")).id="s-rall-bn",E.className="c-bn",ye(E,"click",(function(){q.accept([]),q.hideSettings(),q.hide()})),N.className="bns-t",M.appendChild(E)),E.innerHTML=_e),H||((H=ue("button")).id="s-sv-bn",H.className="c-bn",M.appendChild(H),ye(H,"click",(function(){q.accept(),q.hideSettings(),q.hide()}))),H.innerHTML=u.save_settings_btn,j)return N.replaceChild(j,O),void(O=j);a.appendChild(T),a.appendChild(r),N.appendChild(a),N.appendChild(O),N.appendChild(M),o.appendChild(N),i.appendChild(o),n.appendChild(i),x.appendChild(n),m.appendChild(x),m.appendChild(c)};q.updateLanguage=function(e,n){if("string"==typeof e){var i=re(e,t.languages);return(i!==J.current_lang||!0===n)&&(J.current_lang=i,F&&ce(i),se(i),!0)}};var le=function(e){var t=d.length,n=-1;V=!1;var i=me("","all"),o=[J.cookie_domain,"."+J.cookie_domain];if("www."===J.cookie_domain.slice(0,4)){var a=J.cookie_domain.substr(4);o.push(a),o.push("."+a)}for(var r=0;r<t;r++){var c=d[r];if(c.hasOwnProperty("toggle")){var s=de(K,c.toggle.value)>-1;if(!ee[++n]&&c.hasOwnProperty("cookie_table")&&(e||s)){var u=c.cookie_table,p=ke(l[0])[0],f=u.length;"on_disable"===c.toggle.reload&&s&&(V=!0);for(var h=0;h<f;h++){var g=o,v=u[h],_=[],m=v[p],b=v.is_regex||!1,y=v.domain||null,k=v.path||!1;if(y&&(g=[y,"."+y]),b)for(var C=0;C<i.length;C++)i[C].match(m)&&_.push(i[C]);else{var A=de(i,m);A>-1&&_.push(i[A])}_.length>0&&(be(_,k,g),"on_clear"===c.toggle.reload&&(V=!0))}}}}},de=function(e,t){return e.indexOf(t)},ue=function(e){var t=document.createElement(e);return"button"===e&&t.setAttribute("type",e),t},pe=function(e,t){return"browser"===J.auto_language?re(fe(),e):"document"===J.auto_language?re(document.documentElement.lang,e):"string"==typeof t?J.current_lang=re(t,e):(J.current_lang,J.current_lang)},fe=function(){var e=navigator.language||navigator.browserLanguage;return e.length>2&&(e=e[0]+e[1]),e.toLowerCase()};q.allowedCategory=function(e){if(U&&"opt-in"!==J.mode)t=X;else var t=JSON.parse(me(J.cookie_name,"one",!0)||"{}").categories||[];return de(t,e)>-1},q.run=function(t){if(!document.getElementById("cc_div")){if(oe(t),Y)return;I=JSON.parse(me(J.cookie_name,"one",!0)||"{}");var c=void 0!==(o=I.consent_uuid);if((n=I.consent_date)&&(n=new Date(n)),(i=I.last_consent_update)&&(i=new Date(i)),P=void 0!==I.data?I.data:null,B&&I.revision!==J.revision&&(G=!1),F=U=!(c&&G&&n&&i&&o),function(){(_=ue("div")).id="cc--main",_.style.position="fixed",_.innerHTML='<div id="cc_div" class="cc_div"></div>',m=_.children[0];var t=J.current_lang;F&&ce(t),se(t),(e||document.body).appendChild(_)}(),function(){var e=["[href]","button","input","details",'[tabindex="0"]'];function t(t,n){try{var i=t.querySelectorAll(e.join(':not([tabindex="-1"]), '))}catch(n){return t.querySelectorAll(e.join(", "))}n[0]=i[0],n[1]=i[i.length-1]}t(N,$),F&&t(b,Z)}(),function(e,t){if("object"==typeof e){var n=e.consent_modal,i=e.settings_modal;F&&n&&o(b,["box","bar","cloud"],["top","middle","bottom"],["zoom","slide"],n.layout,n.position,n.transition),i&&o(x,["bar"],["left","right"],["zoom","slide"],i.layout,i.position,i.transition)}function o(e,t,n,i,o,a,r){if(a=a&&a.split(" ")||[],de(t,o)>-1&&(Ce(e,o),("bar"!==o||"middle"!==a[0])&&de(n,a[0])>-1))for(var c=0;c<a.length;c++)Ce(e,a[c]);de(i,r)>-1&&Ce(e,r)}}(t.gui_options),ae(),J.autorun&&F&&q.show(t.delay||0),setTimeout((function(){Ce(_,"c--anim")}),30),setTimeout((function(){ye(document,"keydown",(function(e){if("Tab"===e.key&&(R||z)&&a){var t=Te();e.shiftKey?t!==a[0]&&r.contains(t)||(e.preventDefault(),xe(a[1])):t!==a[1]&&r.contains(t)||(e.preventDefault(),xe(a[0]))}}))}),100),U)"opt-out"===J.mode&&(J.mode,he());else{var s="boolean"==typeof I.rfc_cookie;(!s||s&&I.rfc_cookie!==J.use_rfc_cookie)&&(I.rfc_cookie=J.use_rfc_cookie,_e(J.cookie_name,JSON.stringify(I))),h=ve(ge()),he(),"function"==typeof u&&u(I)}}};var he=function(){if(J.page_scripts){var e=I.categories||[];U&&"opt-out"===J.mode&&(e=X);var t=document.querySelectorAll("script["+J.script_selector+"]"),n=function(t,i){if(i<t.length){var o=t[i],a=o.getAttribute(J.script_selector);if(de(e,a)>-1){o.type=o.getAttribute("data-type")||"text/javascript",o.removeAttribute(J.script_selector);var r=o.getAttribute("data-src");r&&o.removeAttribute("data-src");var c=ue("script");if(c.textContent=o.innerHTML,function(e,t){for(var n=t.attributes,i=n.length,o=0;o<i;o++){var a=n[o].nodeName;e.setAttribute(a,t[a]||t.getAttribute(a))}}(c,o),r?c.src=r:r=o.src,r&&(c.readyState?c.onreadystatechange=function(){"loaded"!==c.readyState&&"complete"!==c.readyState||(c.onreadystatechange=null,n(t,++i))}:c.onload=function(){c.onload=null,n(t,++i)}),o.parentNode.replaceChild(c,o),r)return}n(t,++i)}};n(t,0)}};q.set=function(e,t){return"data"===e&&function(e,t){var n=!1;if("update"===t){var i=typeof(P=q.get("data"))==typeof e;if(i&&"object"==typeof P)for(var o in!P&&(P={}),e)P[o]!==e[o]&&(P[o]=e[o],n=!0);else!i&&P||P===e||(P=e,n=!0)}else P=e,n=!0;return n&&(I.data=P,_e(J.cookie_name,JSON.stringify(I))),n}(t.value,t.mode)},q.get=function(e,t){return JSON.parse(me(t||J.cookie_name,"one",!0)||"{}")[e]},q.getConfig=function(e){return J[e]||t[e]};var ge=function(){return Q=I.categories||[],W=te.filter((function(e){return-1===de(Q,e)})),{accepted:Q,rejected:W}},ve=function(e){var t="custom",n=ne.length;return e.accepted.length===te.length?t="all":e.accepted.length===n&&(t="necessary"),t};q.getUserPreferences=function(){var e=ge();return{accept_type:ve(e),accepted_categories:e.accepted,rejected_categories:e.rejected}},q.loadScript=function(e,t,n){var i="function"==typeof t;if(document.querySelector('script[src="'+e+'"]'))i&&t();else{var o=ue("script");if(n&&n.length>0)for(var a=0;a<n.length;++a)n[a]&&o.setAttribute(n[a].name,n[a].value);i&&(o.onload=t),o.src=e,document.head.appendChild(o)}},q.updateScripts=function(){he()},q.show=function(e,t){!0===t&&ce(J.current_lang),F&&(g=Te(),a=Z,r=b,R=!0,b.removeAttribute("aria-hidden"),setTimeout((function(){Ce(ie,"show--consent")}),e>0?e:t?30:0))},q.hide=function(){F&&(R=!1,xe(c),b.setAttribute("aria-hidden","true"),Ae(ie,"show--consent"),xe(g),g=null)},q.showSettings=function(e){z=!0,x.removeAttribute("aria-hidden"),R?v=Te():g=Te(),r=x,a=$,setTimeout((function(){Ce(ie,"show--settings")}),e>0?e:0)},q.hideSettings=function(){z=!1,Ne(),xe(s),x.setAttribute("aria-hidden","true"),Ae(ie,"show--settings"),R?(xe(v),v=null,r=b,a=Z):(xe(g),g=null)},q.accept=function(e,t){var a=e||void 0,r=t||[],c=[];if(a)if("object"==typeof a&&"number"==typeof a.length)for(var s=0;s<a.length;s++)-1!==de(te,a[s])&&c.push(a[s]);else"string"==typeof a&&("all"===a?c=te.slice():-1!==de(te,a)&&c.push(a));else c=function(){for(var e=document.querySelectorAll(".c-tgl")||[],t=[],n=0;n<e.length;n++)e[n].checked&&t.push(e[n].value);return t}();if(r.length>=1)for(s=0;s<r.length;s++)c=c.filter((function(e){return e!==r[s]}));for(s=0;s<te.length;s++)!0===ne.includes(te[s])&&-1===de(c,te[s])&&c.push(te[s]);!function(e){K=[];var t=x.querySelectorAll(".c-tgl")||[];if(t.length>0)for(var a=0;a<t.length;a++)-1!==de(e,te[a])?(t[a].checked=!0,ee[a]||(K.push(te[a]),ee[a]=!0)):(t[a].checked=!1,ee[a]&&(K.push(te[a]),ee[a]=!1));!U&&J.autoclear_cookies&&K.length>0&&le(),n||(n=new Date),o||(o=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){try{return(e^(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)}catch(e){return""}}))),I={categories:e,level:e,revision:J.revision,data:P,rfc_cookie:J.use_rfc_cookie,consent_date:n.toISOString(),consent_uuid:o},(U||K.length>0)&&(G=!0,i=i?new Date:n,I.last_consent_update=i.toISOString(),h=ve(ge()),_e(J.cookie_name,JSON.stringify(I)),he()),U&&(J.autoclear_cookies&&le(!0),"function"==typeof f&&f(q.getUserPreferences(),I),"function"==typeof u&&u(I),U=!1,"opt-in"===J.mode)||("function"==typeof p&&K.length>0&&p(I,K),V&&location.reload())}(c)},q.eraseCookies=function(e,t,n){var i=[],o=n?[n,"."+n]:[J.cookie_domain,"."+J.cookie_domain];if("object"==typeof e&&e.length>0)for(var a=0;a<e.length;a++)this.validCookie(e[a])&&i.push(e[a]);else this.validCookie(e)&&i.push(e);be(i,t,o)};var _e=function(e,t){var n=J.cookie_expiration;"number"==typeof J.cookie_necessary_only_expiration&&"necessary"===h&&(n=J.cookie_necessary_only_expiration),t=J.use_rfc_cookie?encodeURIComponent(t):t;var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var o=e+"="+(t||"")+"; expires="+i.toUTCString()+"; Path="+J.cookie_path+";";o+=" SameSite="+J.cookie_same_site+";",location.hostname.indexOf(".")>-1&&J.cookie_domain&&(o+=" Domain="+J.cookie_domain+";"),"https:"===location.protocol&&(o+=" Secure;"),document.cookie=o},me=function(e,t,n){var i;if("one"===t){if((i=(i=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))?n?i.pop():e:"")&&e===J.cookie_name){try{i=JSON.parse(i)}catch(e){try{i=JSON.parse(decodeURIComponent(i))}catch(e){i={}}}i=JSON.stringify(i)}}else if("all"===t){var o=document.cookie.split(/;\s*/);i=[];for(var a=0;a<o.length;a++)i.push(o[a].split("=")[0])}return i},be=function(e,t,n){for(var i=t||"/",o=0;o<e.length;o++){for(var a=0;a<n.length;a++)document.cookie=e[o]+"=; path="+i+(0==n[a].indexOf(".")?"; domain="+n[a]:"")+"; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";e[o]}};q.validCookie=function(e){return""!==me(e,"one",!0)},q.validConsent=function(){return!U};var ye=function(e,t,n,i){e.addEventListener(t,n,!0===i&&{passive:!0})},ke=function(e){if("object"==typeof e)return Object.keys(e)},Ce=function(e,t){e.classList.add(t)},Ae=function(e,t){e.classList.remove(t)},we=function(e,t){return e.classList.contains(t)},Se=function(e){var t=ue("span");return t.tabIndex=-1,1===e?c=t:s=t,t},xe=function(e){e&&e instanceof HTMLElement&&e.focus()},Ne=function(){for(var e=N.querySelectorAll(".c-tgl"),t=0;t<e.length;t++){var n=e[t].value,i=ne.includes(n);e[t].checked=i||q.allowedCategory(n)}},Te=function(){return document.activeElement};return q})}();
