@antik-web/cookie-consent
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AntikCookieConsent=t():e.AntikCookieConsent=t()}(self,(()=>(()=>{var e={686:()=>{"function"!=typeof window.initCookieConsent&&(window.initCookieConsent=function(e){var t,o,n,a,i,c,s,r,l,d,u,p,g,h,m,f,k,v,b,y,_,w,C,A,x,j,S,z,T,N={mode:"opt-in",current_lang:"en",auto_language:null,autorun:!0,cookie_name:"cc_cookie",cookie_expiration:182,cookie_domain:window.location.hostname,cookie_path:"/",cookie_same_site:"Lax",use_rfc_cookie:!1,autoclear_cookies:!0,revision:0,script_selector:"data-cookiecategory"},P={},E={},L=null,M=!1,O=!1,G=!1,q=!1,I=!1,R=!1,F=!0,Z="",J=[],D=!1,V=[],B=[],U=[],H=!1,$=[],W=[],K=[],Y=[],X=[],Q=document.documentElement,ee=function(e){function t(t){return(e||document).querySelectorAll('a[data-cc="'+t+'"], button[data-cc="'+t+'"]')}function o(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,P.accept(t),P.hideSettings(),P.hide()}for(var n=t("c-settings"),a=t("accept-all"),i=t("accept-necessary"),c=t("accept-selection"),s=0;s<n.length;s++)n[s].setAttribute("aria-haspopup","dialog"),me(n[s],"click",(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1,P.showSettings(0)}));for(s=0;s<a.length;s++)me(a[s],"click",(function(e){o(e,"all")}));for(s=0;s<c.length;s++)me(c[s],"click",(function(e){o(e)}));for(s=0;s<i.length;s++)me(i[s],"click",(function(e){o(e,[])}))},te=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)?e:0<fe(t).length?Object.prototype.hasOwnProperty.call(t,N.current_lang)?N.current_lang:fe(t)[0]:void 0},oe=function(){function e(e,o){var n=!1,a=!1;try{for(var i,c=e.querySelectorAll(t.join(':not([tabindex="-1"]), ')),s=c.length,r=0;r<s;)i=c[r].getAttribute("data-focus"),a||"1"!==i?"0"===i&&(n=c[r],a||"0"===c[r+1].getAttribute("data-focus")||(a=c[r+1])):a=c[r],r++}catch(o){return e.querySelectorAll(t.join(", "))}o[0]=c[0],o[1]=c[c.length-1],o[2]=n,o[3]=a}var t=["[href]","button","input","details",'[tabindex="0"]'];e(_,W),O&&e(g,$)},ne=function(e){if(!0===t.force_consent&&ke(Q,"force--consent"),!g){g=se("div");var o=se("div"),n=se("div");g.id="cm",o.id="c-inr-i",n.id="cm-ov",g.setAttribute("role","dialog"),g.setAttribute("aria-modal","true"),g.setAttribute("aria-hidden","false"),g.setAttribute("aria-labelledby","c-ttl"),g.setAttribute("aria-describedby","c-txt"),p.appendChild(g),p.appendChild(n),g.style.visibility=n.style.visibility="hidden",n.style.opacity=0}(n=t.languages[e].consent_modal.title)&&(h||((h=se("div")).id="c-ttl",h.setAttribute("role","heading"),h.setAttribute("aria-level","2"),o.appendChild(h)),h.innerHTML=n),n=t.languages[e].consent_modal.description,R&&(n=F?n.replace("{{revision_message}}",""):n.replace("{{revision_message}}",Z||t.languages[e].consent_modal.revision_message||"")),m||((m=se("div")).id="c-txt",o.appendChild(m)),m.innerHTML=n,n=t.languages[e].consent_modal.primary_btn;var a,i=t.languages[e].consent_modal.secondary_btn;n&&(f||((f=se("button")).id="c-p-bn",f.className="c-bn","accept_all"===n.role&&(a="all"),me(f,"click",(function(){P.hide(),P.accept(a)}))),f.textContent=t.languages[e].consent_modal.primary_btn.text);i&&(k||((k=se("button")).id="c-s-bn",k.className="c-bn c_link","accept_necessary"===i.role?me(k,"click",(function(){P.hide(),P.accept([])})):me(k,"click",(function(){P.showSettings(0)}))),k.textContent=t.languages[e].consent_modal.secondary_btn.text),e=t.gui_options,b||((b=se("div")).id="c-inr",b.appendChild(o)),v||((v=se("div")).id="c-bns",e&&e.consent_modal&&!0===e.consent_modal.swap_buttons?(i&&v.appendChild(k),n&&v.appendChild(f),v.className="swap"):(n&&v.appendChild(f),i&&v.appendChild(k)),(n||i)&&b.appendChild(v),g.appendChild(b)),O=!0},ae=function(e){if(y)(x=se("div")).id="s-bl";else{y=se("div");var o=se("div"),i=se("div"),c=se("div");_=se("div"),w=se("div");var s=se("div");C=se("button");var r=se("div");A=se("div");var l=se("div");y.id="s-cnt",o.id="c-vln",c.id="c-s-in",i.id="cs",w.id="s-ttl",_.id="s-inr",s.id="s-hdr",A.id="s-bl",C.id="s-c-bn",l.id="cs-ov",r.id="s-c-bnc",C.className="c-bn",y.setAttribute("role","dialog"),y.setAttribute("aria-modal","true"),y.setAttribute("aria-hidden","true"),y.setAttribute("aria-labelledby","s-ttl"),w.setAttribute("role","heading"),y.style.visibility=l.style.visibility="hidden",l.style.opacity=0,r.appendChild(C),me(o,"keydown",(function(e){27===(e=e||window.event).keyCode&&P.hideSettings(0)}),!0),me(C,"click",(function(){P.hideSettings(0)}))}C.setAttribute("aria-label",t.languages[e].settings_modal.close_btn_label||"Close"),a=t.languages[e].settings_modal.blocks,n=t.languages[e].settings_modal.cookie_table_headers;var d=a.length;w.innerHTML=t.languages[e].settings_modal.title;for(var u=0;u<d;++u){var g=a[u].title,h=a[u].description,m=a[u].toggle,f=a[u].cookie_table,k=!0===t.remove_cookie_tables,v=(h||!k&&f)&&"truthy",b=se("div"),N=se("div");if(h){var L=se("div");L.className="p",L.insertAdjacentHTML("beforeend",h)}var O=se("div");if(O.className="title",b.className="c-bl",N.className="desc",void 0!==m){var G="c-ac-"+u,q=se(v?"button":"div"),I=se("label"),R=se("input"),F=se("span"),Z=se("span"),J=se("span"),D=se("span");q.className=v?"b-tl exp":"b-tl",I.className="b-tg",R.className="c-tgl",J.className="on-i",D.className="off-i",F.className="c-tg",Z.className="t-lb",v&&(q.setAttribute("aria-expanded","false"),q.setAttribute("aria-controls",G)),R.type="checkbox",F.setAttribute("aria-hidden","true");var V=m.value;R.value=V,Z.textContent=g,q.insertAdjacentHTML("beforeend",g),O.appendChild(q),F.appendChild(J),F.appendChild(D),M?-1<ce(E.level,V)?(R.checked=!0,!x&&K.push(!0)):!x&&K.push(!1):m.enabled?(R.checked=!0,!x&&K.push(!0),m.enabled&&!x&&U.push(V)):!x&&K.push(!1),!x&&Y.push(V),m.readonly?(R.disabled=!0,ke(F,"c-ro"),!x&&X.push(!0)):!x&&X.push(!1),ke(N,"b-acc"),ke(O,"b-bn"),ke(b,"b-ex"),N.id=G,N.setAttribute("aria-hidden","true"),I.appendChild(R),I.appendChild(F),I.appendChild(Z),O.appendChild(I),v&&function(e,t,o){me(q,"click",(function(){be(t,"act")?(ve(t,"act"),o.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true")):(ke(t,"act"),o.setAttribute("aria-expanded","true"),e.setAttribute("aria-hidden","false"))}),!1)}(N,b,q)}else g&&((v=se("div")).className="b-tl",v.setAttribute("role","heading"),v.setAttribute("aria-level","3"),v.insertAdjacentHTML("beforeend",g),O.appendChild(v));if(g&&b.appendChild(O),h&&N.appendChild(L),!k&&void 0!==f){for(v=document.createDocumentFragment(),G=0;G<n.length;++G)I=se("th"),k=n[G],I.setAttribute("scope","col"),k&&(O=k&&fe(k)[0],I.textContent=n[G][O],v.appendChild(I));for((k=se("tr")).appendChild(v),(O=se("thead")).appendChild(k),(v=se("table")).appendChild(O),G=document.createDocumentFragment(),I=0;I<f.length;I++){for(R=se("tr"),F=0;F<n.length;++F)(k=n[F])&&(O=fe(k)[0],(Z=se("td")).insertAdjacentHTML("beforeend",f[I][O]),Z.setAttribute("data-column",k[O]),R.appendChild(Z));G.appendChild(R)}(f=se("tbody")).appendChild(G),v.appendChild(f),N.appendChild(v)}(m&&g||!m&&(g||h))&&(b.appendChild(N),x?x.appendChild(b):A.appendChild(b))}j||((j=se("div")).id="s-bns"),z||((z=se("button")).id="s-all-bn",z.className="c-bn",j.appendChild(z),me(z,"click",(function(){P.hideSettings(),P.hide(),P.accept("all")}))),z.textContent=t.languages[e].settings_modal.accept_all_btn,(d=t.languages[e].settings_modal.reject_all_btn)&&(T||((T=se("button")).id="s-rall-bn",T.className="c-bn",me(T,"click",(function(){P.hideSettings(),P.hide(),P.accept([])})),_.className="bns-t",j.appendChild(T)),T.textContent=d),S||((S=se("button")).id="s-sv-bn",S.className="c-bn",j.appendChild(S),me(S,"click",(function(){P.hideSettings(),P.hide(),P.accept()}))),S.textContent=t.languages[e].settings_modal.save_settings_btn,x?(_.replaceChild(x,A),A=x):(s.appendChild(w),s.appendChild(r),_.appendChild(s),_.appendChild(A),_.appendChild(j),c.appendChild(_),i.appendChild(c),o.appendChild(i),y.appendChild(o),p.appendChild(y),p.appendChild(l))};P.updateLanguage=function(e,o){if("string"==typeof e)return((e=te(e,t.languages))!==N.current_lang||!0===o)&&(N.current_lang=e,O&&(ne(e),ee(b)),ae(e),!0)};var ie=function(e){var t=a.length,o=-1;D=!1;var i=ge("","all"),c=[N.cookie_domain,"."+N.cookie_domain];if("www."===N.cookie_domain.slice(0,4)){var s=N.cookie_domain.substr(4);c.push(s),c.push("."+s)}for(s=0;s<t;s++){var r=a[s];if(Object.prototype.hasOwnProperty.call(r,"toggle")){var l=-1<ce(J,r.toggle.value);if(!K[++o]&&Object.prototype.hasOwnProperty.call(r,"cookie_table")&&(e||l)){var d=r.cookie_table,u=fe(n[0])[0],p=d.length;for("on_disable"===r.toggle.reload&&l&&(D=!0),l=0;l<p;l++){var g=d[l],h=[],m=g[u],f=g.is_regex||!1,k=g.domain||null;if(g=g.path||!1,k&&(c=[k,"."+k]),f)for(f=0;f<i.length;f++)i[f].match(m)&&h.push(i[f]);else-1<(m=ce(i,m))&&h.push(i[m]);0<h.length&&(he(h,g,c),"on_clear"===r.toggle.reload&&(D=!0))}}}}},ce=function(e,t){for(var o=e.length,n=0;n<o;n++)if(e[n]===t)return n;return-1},se=function(e){var t=document.createElement(e);return"button"===e&&t.setAttribute("type",e),t},re=function(e,t){function o(e,t,o,n,a,i,c){if(i=i&&i.split(" ")||[],-1<ce(t,a)&&(ke(e,a),("bar"!==a||"middle"!==i[0])&&-1<ce(o,i[0])))for(t=0;t<i.length;t++)ke(e,i[t]);-1<ce(n,c)&&ke(e,c)}if("object"==typeof e){var n=e.consent_modal;e=e.settings_modal,O&&n&&o(g,["box","bar","cloud"],["top","middle","bottom"],["zoom","slide"],n.layout,n.position,n.transition),!t&&e&&o(y,["bar"],["left","right"],["zoom","slide"],e.layout,e.position,e.transition)}};P.allowedCategory=function(e){var t=M||"opt-in"===N.mode?JSON.parse(ge(N.cookie_name,"one",!0)||"{}").level||[]:U;return-1<ce(t,e)},P.run=function(n){if(!document.getElementById("cc_div")&&("number"==typeof(t=n).cookie_expiration&&(N.cookie_expiration=t.cookie_expiration),"number"==typeof t.cookie_necessary_only_expiration&&(N.cookie_necessary_only_expiration=t.cookie_necessary_only_expiration),"boolean"==typeof t.autorun&&(N.autorun=t.autorun),"string"==typeof t.cookie_domain&&(N.cookie_domain=t.cookie_domain),"string"==typeof t.cookie_same_site&&(N.cookie_same_site=t.cookie_same_site),"string"==typeof t.cookie_path&&(N.cookie_path=t.cookie_path),"string"==typeof t.cookie_name&&(N.cookie_name=t.cookie_name),"function"==typeof t.onAccept&&(i=t.onAccept),"function"==typeof t.onFirstAction&&(s=t.onFirstAction),"function"==typeof t.onChange&&(c=t.onChange),"opt-out"===t.mode&&(N.mode="opt-out"),"number"==typeof t.revision&&(-1<t.revision&&(N.revision=t.revision),R=!0),"boolean"==typeof t.autoclear_cookies&&(N.autoclear_cookies=t.autoclear_cookies),!0===t.use_rfc_cookie&&(N.use_rfc_cookie=!0),!0===t.hide_from_bots&&(H=navigator&&(navigator.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(navigator.userAgent)||navigator.webdriver)),N.page_scripts=!0===t.page_scripts,N.page_scripts_order=!1!==t.page_scripts_order,"browser"===t.auto_language||!0===t.auto_language?N.auto_language="browser":"document"===t.auto_language&&(N.auto_language="document"),N.current_lang=function(e,t){return"browser"===N.auto_language?(2<(t=navigator.language||navigator.browserLanguage).length&&(t=t[0]+t[1]),t=t.toLowerCase(),te(t,e)):"document"===N.auto_language?te(document.documentElement.lang,e):"string"==typeof t?N.current_lang=te(t,e):N.current_lang}(t.languages,t.current_lang),!H))if(E=JSON.parse(ge(N.cookie_name,"one",!0)||"{}"),M=void 0!==E.level,L=void 0!==E.data?E.data:null,F=!("number"==typeof n.revision&&M&&-1<n.revision&&E.revision!==N.revision),O=!M||!F,function(){(u=se("div")).id="cc--main",u.style.position="fixed",u.style.zIndex="1000000",u.innerHTML='\x3c!--[if lt IE 9 ]><div id="cc_div" class="cc_div ie"></div><![endif]--\x3e\x3c!--[if (gt IE 8)|!(IE)]>\x3c!--\x3e<div id="cc_div" class="cc_div"></div>\x3c!--<![endif]--\x3e',p=u.children[0];var t=N.current_lang;O&&ne(t),ae(t),(e||document.body).appendChild(u)}(),function(e,t){if("string"!=typeof e||""===e||document.getElementById("cc--style"))t();else{var o=se("style");o.id="cc--style";var n=new XMLHttpRequest;n.onreadystatechange=function(){4===this.readyState&&200===this.status&&(o.setAttribute("type","text/css"),o.styleSheet?o.styleSheet.cssText=this.responseText:o.appendChild(document.createTextNode(this.responseText)),document.getElementsByTagName("head")[0].appendChild(o),t())},n.open("GET",e),n.send()}}(n.theme_css,(function(){oe(),re(n.gui_options),ee(),N.autorun&&O&&P.show(n.delay||0),setTimeout((function(){ke(u,"c--anim")}),30),setTimeout((function(){!function(){var e=!1,t=!1;me(document,"keydown",(function(n){"Tab"===(n=n||window.event).key&&(o&&(n.shiftKey?document.activeElement===o[0]&&(o[1].focus(),n.preventDefault()):document.activeElement===o[1]&&(o[0].focus(),n.preventDefault()),t||I||(t=!0,!e&&n.preventDefault(),n.shiftKey?o[3]?o[2]?o[2].focus():o[0].focus():o[1].focus():o[3]?o[3].focus():o[0].focus())),!t&&(e=!0))})),document.contains&&me(u,"click",(function(e){e=e||window.event,q?_.contains(e.target)?I=!0:(P.hideSettings(0),I=!1):G&&g.contains(e.target)&&(I=!0)}),!0)}()}),100)})),M&&F){var a="boolean"==typeof E.rfc_cookie;(!a||a&&E.rfc_cookie!==N.use_rfc_cookie)&&(E.rfc_cookie=N.use_rfc_cookie,pe(N.cookie_name,JSON.stringify(E))),r=ue(de()),le(),"function"==typeof i&&i(E)}else"opt-out"===N.mode&&le(U)},P.showSettings=function(e){setTimeout((function(){ke(Q,"show--settings"),y.setAttribute("aria-hidden","false"),q=!0,setTimeout((function(){G?d=document.activeElement:l=document.activeElement,0!==W.length&&(W[3]?W[3].focus():W[0].focus(),o=W)}),200)}),0<e?e:0)};var le=function(e){if(N.page_scripts){var t=document.querySelectorAll("script["+N.script_selector+"]"),o=N.page_scripts_order,n=e||E.level||[],a=function(e,t){if(t<e.length){var i=e[t],c=i.getAttribute(N.script_selector);if(-1<ce(n,c)){i.type="text/javascript",i.removeAttribute(N.script_selector),(c=i.getAttribute("data-src"))&&i.removeAttribute("data-src");var s=se("script");if(s.textContent=i.innerHTML,function(e,t){for(var o=t.attributes,n=o.length,a=0;a<n;a++){var i=o[a].nodeName;e.setAttribute(i,t[i]||t.getAttribute(i))}}(s,i),c?s.src=c:c=i.src,c&&(o?s.readyState?s.onreadystatechange=function(){"loaded"!==s.readyState&&"complete"!==s.readyState||(s.onreadystatechange=null,a(e,++t))}:s.onload=function(){s.onload=null,a(e,++t)}:c=!1),i.parentNode.replaceChild(s,i),c)return}a(e,++t)}};a(t,0)}};P.set=function(e,o){switch(e){case"data":e=o.value;var n=!1;if("update"===o.mode)if((o=typeof(L=P.get("data"))==typeof e)&&"object"==typeof L)for(var a in!L&&(L={}),e)L[a]!==e[a]&&(L[a]=e[a],n=!0);else!o&&L||L===e||(L=e,n=!0);else L=e,n=!0;return n&&(E.data=L,pe(N.cookie_name,JSON.stringify(E))),n;case"revision":return a=o.value,e=o.prompt_consent,o=o.message,u&&"number"==typeof a&&E.revision!==a?(R=!0,Z=o,F=!1,N.revision=a,!0===e?(ne(t),re(t.gui_options,!0),oe(),P.show()):P.accept(),o=!0):o=!1,o;default:return!1}},P.get=function(e,t){return JSON.parse(ge(t||N.cookie_name,"one",!0)||"{}")[e]},P.getConfig=function(e){return N[e]||t[e]};var de=function(){return V=E.level||[],B=Y.filter((function(e){return-1===ce(V,e)})),{accepted:V,rejected:B}},ue=function(e){var t="custom",o=X.filter((function(e){return!0===e})).length;return e.accepted.length===Y.length?t="all":e.accepted.length===o&&(t="necessary"),t};P.getUserPreferences=function(){var e=de();return{accept_type:ue(e),accepted_categories:e.accepted,rejected_categories:e.rejected}},P.loadScript=function(e,t,o){var n="function"==typeof t;if(document.querySelector('script[src="'+e+'"]'))n&&t();else{var a=se("script");if(o&&0<o.length)for(var i=0;i<o.length;++i)o[i]&&a.setAttribute(o[i].name,o[i].value);n&&(a.readyState?a.onreadystatechange=function(){"loaded"!==a.readyState&&"complete"!==a.readyState||(a.onreadystatechange=null,t())}:a.onload=t),a.src=e,(document.head?document.head:document.getElementsByTagName("head")[0]).appendChild(a)}},P.updateScripts=function(){le()},P.show=function(e){O&&setTimeout((function(){ke(Q,"show--consent"),g.setAttribute("aria-hidden","false"),G=!0,setTimeout((function(){l=document.activeElement,o=$}),200)}),0<e?e:0)},P.hide=function(){O&&(ve(Q,"show--consent"),g.setAttribute("aria-hidden","true"),G=!1,setTimeout((function(){l.focus(),o=null}),200))},P.hideSettings=function(){ve(Q,"show--settings"),q=!1,y.setAttribute("aria-hidden","true"),setTimeout((function(){G?(d&&d.focus(),o=$):(l&&l.focus(),o=null),I=!1}),200)},P.accept=function(e,t){var o=t||[];if(t=[],e=e||void 0)if("object"==typeof e&&"number"==typeof e.length)for(var n=0;n<e.length;n++)-1!==ce(Y,e[n])&&t.push(e[n]);else"string"==typeof e&&("all"===e?t=Y.slice():-1!==ce(Y,e)&&t.push(e));else t=function(){for(var e=document.querySelectorAll(".c-tgl")||[],t=[],o=0;o<e.length;o++)e[o].checked&&t.push(e[o].value);return t}();if(1<=o.length)for(n=0;n<o.length;n++)t=t.filter((function(e){return e!==o[n]}));for(n=0;n<Y.length;n++)!0===X[n]&&-1===ce(t,Y[n])&&t.push(Y[n]);!function(e){J=[];var t=document.querySelectorAll(".c-tgl")||[];if(0<t.length)for(var o=0;o<t.length;o++)-1!==ce(e,Y[o])?(t[o].checked=!0,K[o]||(J.push(Y[o]),K[o]=!0)):(t[o].checked=!1,K[o]&&(J.push(Y[o]),K[o]=!1));M&&N.autoclear_cookies&&0<J.length&&ie(),E={level:e,revision:N.revision,data:L,rfc_cookie:N.use_rfc_cookie},(!M||0<J.length||!F)&&(F=!0,r=ue(de()),pe(N.cookie_name,JSON.stringify(E)),le()),(M||(N.autoclear_cookies&&ie(!0),"function"==typeof s&&s(P.getUserPreferences(),E),"function"==typeof i&&i(E),M=!0,"opt-in"!==N.mode))&&("function"==typeof c&&0<J.length&&c(E,J),D&&window.location.reload())}(t)},P.eraseCookies=function(e,t,o){var n=[];if(o=o?[o,"."+o]:[N.cookie_domain,"."+N.cookie_domain],"object"==typeof e&&0<e.length)for(var a=0;a<e.length;a++)this.validCookie(e[a])&&n.push(e[a]);else this.validCookie(e)&&n.push(e);he(n,t,o)};var pe=function(e,t){var o=N.cookie_expiration;"number"==typeof N.cookie_necessary_only_expiration&&"necessary"===r&&(o=N.cookie_necessary_only_expiration),t=N.use_rfc_cookie?encodeURIComponent(t):t;var n=new Date;n.setTime(n.getTime()+864e5*o),e=e+"="+(t||"")+(o="; expires="+n.toUTCString())+"; Path="+N.cookie_path+";",e+=" SameSite="+N.cookie_same_site+";",-1<window.location.hostname.indexOf(".")&&(e+=" Domain="+N.cookie_domain+";"),"https:"===window.location.protocol&&(e+=" Secure;"),document.cookie=e},ge=function(e,t,o){var n;if("one"===t){if((n=(n=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))?o?n.pop():e:"")&&e===N.cookie_name){try{n=JSON.parse(n)}catch(e){try{n=JSON.parse(decodeURIComponent(n))}catch(e){n={}}}n=JSON.stringify(n)}}else if("all"===t)for(e=document.cookie.split(/;\s*/),n=[],t=0;t<e.length;t++)n.push(e[t].split("=")[0]);return n},he=function(e,t,o){t=t||"/";for(var n=0;n<e.length;n++)for(var a=0;a<o.length;a++)document.cookie=e[n]+"=; path="+t+(-1<o[a].indexOf(".")?"; domain="+o[a]:"")+"; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"};P.validCookie=function(e){return""!==ge(e,"one",!0)};var me=function(e,t,o,n){e.addEventListener?!0===n?e.addEventListener(t,o,{passive:!0}):e.addEventListener(t,o,!1):e.attachEvent("on"+t,o)},fe=function(e){if("object"==typeof e){var t=[],o=0;for(t[o++]in e);return t}},ke=function(e,t){e.classList?e.classList.add(t):be(e,t)||(e.className+=" "+t)},ve=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(\\s|^)"+t+"(\\s|$)")," ")},be=function(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))};return P})},816:function(e){e.exports=(e,t,o,n)=>{let a,i,c,s,r,l,d,u="string"==typeof o;const p=parseInt,g=Math.round;return"number"!=typeof e||e<-1||e>1||"string"!=typeof t||"r"!==t[0]&&"#"!==t[0]||o&&!u?null:(this.pSBCr||(this.pSBCr=e=>{let t=e.length;const o={};if(t>9){if([a,i,c,u]=e=e.split(","),t=e.length,t<3||t>4)return null;o.r=p("a"===a[3]?a.slice(5):a.slice(4)),o.g=p(i),o.b=p(c),o.a=u?parseFloat(u):-1}else{if(8===t||6===t||t<4)return null;t<6&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(t>4?e[4]+e[4]:"")),e=p(e.slice(1),16),9===t||5===t?(o.r=e>>24&255,o.g=e>>16&255,o.b=e>>8&255,o.a=g((255&e)/.255)/1e3):(o.r=e>>16,o.g=e>>8&255,o.b=255&e,o.a=-1)}return o}),d=t.length>9,d=u?o.length>9||"c"===o&&!d:d,r=this.pSBCr(t),s=e<0,l=o&&"c"!==o?this.pSBCr(o):s?{r:0,g:0,b:0,a:-1}:{r:255,g:255,b:255,a:-1},s=1-(e=s?-1*e:e),r&&l?(n?(a=g(s*r.r+e*l.r),i=g(s*r.g+e*l.g),c=g(s*r.b+e*l.b)):(a=g((s*r.r**2+e*l.r**2)**.5),i=g((s*r.g**2+e*l.g**2)**.5),c=g((s*r.b**2+e*l.b**2)**.5)),u=r.a,l=l.a,r=u>=0||l>=0,u=r?u<0?l:l<0?u:u*s+l*e:0,d?"rgb"+(r?"a(":"(")+a+","+i+","+c+(r?","+g(1e3*u)/1e3:"")+")":"#"+(4294967296+16777216*a+65536*i+256*c+(r?g(255*u):0)).toString(16).slice(1,r?void 0:-2)):null)}},908:e=>{const t={log:console.log,warn:console.warn,error:console.error};e.exports=function(e,o){this.debug&&t[o](e)}},317:(e,t,o)=>{e.exports=()=>{const e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),t=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,n=/(macintosh|macintel|macppc|mac68k|macos)/i.test(navigator.userAgent.toLowerCase()),a=o(128)();if(!e&&!t||a)return;const i=new ResizeObserver((t=>{t[0].contentRect.width<688?(c.style.padding=null,s.style.paddingLeft=null,r.style.padding=null):(c.style.padding=e?"0em 3em":n?"0em 2.75em":"0em 2.65em",s.style.paddingLeft=e?"3em":n?"2.75em":"2.65em",r.style.padding=e?"1em 3em":n?"1em 2.75em":"1em 2.65em")})),c=document.querySelector("#s-hdr"),s=document.querySelector("#s-bl"),r=document.querySelector("#s-bns");i.observe(document.body)}},128:e=>{e.exports=()=>[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some((e=>navigator.userAgent.match(e)))},236:e=>{e.exports=()=>{const e=document.querySelector('button[data-cc="c-settings"]'),t=[];if(!e)return;t.push(document.querySelector("#s-cnt")),t.push(document.querySelector("#c-vln")),t.push(document.querySelector("#cs")),t.push(document.querySelector("#c-s-in")),t.push(document.querySelector("#s-c-bn")),t.forEach((e=>{e.addEventListener("click",(function(e){e.target===e.currentTarget&&(document.body.style.overflow="unset")}))})),e.addEventListener("click",(function(e){e.target===e.currentTarget&&(document.body.style.overflow="hidden")}));const o=document.querySelector("#s-bns")?.children;for(const e of o)e.addEventListener("click",(function(e){e.target===e.currentTarget&&(document.body.style.overflow="unset")}))}},596:(e,t,o)=>{const n=o(908);e.exports=function(e,t){if(e.length<1)return void console.warn("No GTAG ids provided in config.");const o=document.createElement("script");o.addEventListener("load",(()=>{function o(){window.dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],t.gtag=o,n.call(this,"window.dataLayer created","log"),n.call(this,"gtag function registered","log"),n.call(this,"Starting to fetch GTM","log"),o("js",new Date),e.forEach((e=>{o("config",e),n.call(this,`Registered id "${e}"`,"log")}))})),o.type="text/javascript",o.src=`https://www.googletagmanager.com/gtag/js?id=${e[0]}`,document.head.appendChild(o)}},546:e=>{"use strict";e.exports=JSON.parse('{"cz":{"consent_modal":{"title":"Používáme cookies!","description":"Soubory cookie používáme pro shromažďování a analýzu informací o výkonu a používání stránek, pro poskytování funkcí sociálních médií a pro vylepšení a přizpůsobení obsahu a reklam. Nastavení cookies <button type=button data-cc=\\"c-settings\\" class=\\"cc-link\\">Nastavení cookies</button>","primary_btn":{"text":"Akceptovat","role":"accept_all"},"secondary_btn":{"text":"Zamítnout","role":"accept_necessary"}},"settings_modal":{"title":"Nastavení cookies","save_settings_btn":"Uložit nastavení","accept_all_btn":"Akceptovat vše","reject_all_btn":"Zamítnout vše","close_btn_label":"Zavřít","cookie_table_headers":[{"col1":"Poskytovatel"},{"col2":"Informace"}],"blocks":[{"title":"Použití cookies","description":"Soubory cookie používáme pro shromažďování a analýzu informací o výkonu a používání stránek, pro poskytování funkcí sociálních médií a pro vylepšení a přizpůsobení obsahu a reklam. Cookies jsou kategorizovány a umíte se rozhodnout, které z nich povolíte."},{"title":"Nezbytné cookies","description":"Technické cookies jsou nezbytné pro fungování webové stránky a jejích funkcí, které se rozhodnete využívat. Bez nich by naše webová stránka nefungovala, například. by nebylo možné se přihlásit do uživatelského účtu. Funkční cookies nám umožňují zapamatovat si vaše základní volby a vylepšují uživatelský komfort. Jedná se například o zapamatování si jazyka nebo možnost zůstat trvale přihlášeni.","toggle":{"value":"necessary","enabled":true,"readonly":true}},{"title":"Analytické cookies","description":"Analytické cookies nám pomáhají lépe znát návštěvníky stránky díky analýze jejich interakce s obsahem webu. Tyto cookies nám umožňují optimalizovat naše stránky pro Vaše komfortní používání a to na základě toho, jak je používáte. Cílem je zapamatovat si nebo předpokládat Vaše volby. Jedná se například o využívání funkcí, jejich umístění, chování na stránce. Za tímto účelem se cookies z Vašeho prohlížeče posílají na servery nástrojů třetích stran.","toggle":{"value":"analytics","enabled":false,"readonly":false},"cookie_table":[]},{"title":"Marketingové cookies","description":"Reklamní cookies využíváme k lepšímu cílení reklam a tedy menší pravděpodobnosti s oslovením nesprávného publika, jako například. remarketing a jiné dynamické reklamní kampaně. Za tímto účelem se cookies posílají na servery třetích stran jako Google Analytics pro remarketingové reklamy t.j. reklam zobrazujících se v přizpůsobených formách na základě minulé interakce s web stránkou. Za tímto účelem se cookies z Vašeho prohlížeče posílají na servery nástrojů třetích stran.","toggle":{"value":"targeting","enabled":false,"readonly":false},"cookie_table":[]},{"title":"Více informací","description":"Podrobnější informace o tom, jak cookies zpracováváme, naleznete v našich <a class=cc-link href=https://www.antik.sk/gdpr target=_blank>Podmínkách ochrany osobních údajů</a>."}]}},"en":{"consent_modal":{"title":"We use cookies!","description":"We use cookies to collect and analyze information about the performance and use of the site, to provide social media functions, and to improve and customize content and ads. <button type=button data-cc=\\"c-settings\\" class=\\"cc-link\\">Let me choose</button>","primary_btn":{"text":"Accept all","role":"accept_all"},"secondary_btn":{"text":"Reject all","role":"accept_necessary"}},"settings_modal":{"title":"Cookie preferences","save_settings_btn":"Save settings","accept_all_btn":"Accept all","reject_all_btn":"Reject all","close_btn_label":"Close","cookie_table_headers":[{"col1":"Provider"},{"col2":"Information"}],"blocks":[{"title":"Cookie usage","description":"We use cookies to collect and analyze information about the performance and use of the site, to provide social media functions, and to improve and customize content and ads.\\nCookies are categorized and you can decide which ones to allow."},{"title":"Necessary cookies","description":"Technical cookies are essential for the functioning of the website and its functions, which you choose to use. Without them, our website would not work, e.g. it would not be possible to log in to the user account. Functional cookies allow us to remember your basic choices and improve user comfort. For example, remembering the language or being able to stay logged in permanently.","toggle":{"value":"necessary","enabled":true,"readonly":true}},{"title":"Analytical cookies","description":"Analytical cookies help us better know the visitors of the site by analyzing their interaction with the content of the site. These cookies allow us to optimize our site for your comfortable use based on how you use them. The goal is to remember or predict your choices. For example, the use of functions, their location, behavior on the site. For this purpose, cookies are sent from your browser to the servers of third-party tools.","toggle":{"value":"analytics","enabled":false,"readonly":false},"cookie_table":[]},{"title":"Marketing cookies","description":"We use advertising cookies for better targeting of advertisements and thus less likely to reach the wrong audience, such as remarketing and other dynamic advertising campaigns. For this purpose, cookies are sent to third-party servers such as Google Analytics for remarketing ads, i. ads appearing in customized forms based on past interactions with the website. For this purpose, cookies are sent from your browser to the servers of third-party tools.","toggle":{"value":"targeting","enabled":false,"readonly":false},"cookie_table":[]},{"title":"More information","description":"You can find more detailed information about how we process cookies in our <a class=cc-link href=https://www.antik.sk/gdpr target=_blank>Privacy Policy</a>."}]}},"sk":{"consent_modal":{"title":"Používame cookies!","description":"Súbory cookie používame na zhromažďovanie a analýzu informácií o výkone a používaní stránok, na poskytovanie funkcií sociálnych médií a na vylepšenie a prispôsobenie obsahu a reklám. <button type=button data-cc=\\"c-settings\\" class=\\"cc-link\\">Nastavenie cookies</button>","primary_btn":{"text":"Akceptovať","role":"accept_all"},"secondary_btn":{"text":"Zamietnuť","role":"accept_necessary"}},"settings_modal":{"title":"Nastavenie cookies","save_settings_btn":"Uložiť nastavenia","accept_all_btn":"Akceptovať všetko","reject_all_btn":"Zamietnuť všetko","close_btn_label":"Zavrieť","cookie_table_headers":[{"col1":"Poskytovateľ"},{"col2":"Informácie"}],"blocks":[{"title":"Použitie cookies","description":"Súbory cookie používame na zhromažďovanie a analýzu informácií o výkone a používaní stránok, na poskytovanie funkcií sociálnych médií a na vylepšenie a prispôsobenie obsahu a reklám.\\nCookies sú kategorizované a viete sa rozhodnúť, ktoré z nich povolíte."},{"title":"Nevyhnutné cookies","description":"Technické cookies sú nevyhnutné na fungovanie webovej stránky a jej funkcií, ktoré sa rozhodnete využívať. Bez nich by naša webová stránka nefungovala, napr. by nebolo možné sa prihlásiť do používateľského účtu. Funkčné cookies nám umožňujú zapamätať si Vaše základné voľby a vylepšujú používateľský komfort. Ide napríklad o zapamätanie si jazyka alebo možnosť zostať trvalo prihlásený.","toggle":{"value":"necessary","enabled":true,"readonly":true}},{"title":"Analytické cookies","description":"Analytické cookies nám pomáhajú lepšie poznať návštevníkov stránky vďaka analýze ich interakcie s obsahom webu. Tieto cookies nám umožňujú optimalizovať naše stránky na Vaše komfortné používanie a to na základe toho, ako ich používate. Cieľom je zapamätať si alebo predpokladať Vaše voľby. Ide napríklad o využívanie funkcií, ich umiestnenie, správanie na stránke. Pre tento účel sa cookies z Vášho prehliadača posielajú na servery nástrojov tretích strán.","toggle":{"value":"analytics","enabled":false,"readonly":false},"cookie_table":[]},{"title":"Marketingové cookies","description":"Reklamné cookies využívame na lepšie cielenie reklám a teda menšiu pravdepodobnosť s oslovením nesprávneho publika ako napr. remarketing a iné dynamické reklamné kampane. Pre tento účel sa cookies posielajú na servery tretích strán ako Google Analytics pre remarketingových reklám t.j. reklám zobrazujúcich sa v prispôsobených formách na základe minulej interakcie s web stránkou. Pre tento účel sa cookies z Vášho prehliadača posielajú na servery nástrojov tretích strán.","toggle":{"value":"targeting","enabled":false,"readonly":false},"cookie_table":[]},{"title":"Viac informácií","description":"Podrobnejšie informácie o tom ako cookies spracovávame nájdete v našich <a class=cc-link href=https://www.antik.sk/gdpr target=_blank>Podmienkach ochrany osobných údajov</a>."}]}}}')}},t={};function o(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";o.r(n),o.d(n,{AntikConsent:()=>p}),o(686);const e=o(816),t=o(317),a=o(546),i=o(596),c=o(908),s=o(236),r=initCookieConsent();let l=null;const d=function(e,t){Object.keys(a).forEach((o=>{a[o].settings_modal.blocks[t].cookie_table.push({col1:e.provider,col2:e.information[o]})})),c.call(this,`Cookies table entry added. Provider: ${e.provider} in block ${t}`,"log")},u=function(){this.autorun=!0,this.autoclear_cookies=!0,this.theme_css="https://cookie-consent.antik.sk/latest/acs.css",this.page_scripts=!1,this.auto_language="document",this.gui_options={consent_modal:{layout:"cloud",position:"bottom center"},settings_modal:{layout:"box",transition:"slide"}},this.force_consent=!1,this.debug=!1,this.languages=a,this.gtm={ids:[]},this.cookie_name="antik_cookie",this.cookie_expiration=parseInt("182"),this.onAccept=e=>{e.level.includes("analytics")&&i.call(this,this.gtm?.ids,o.g.AntikConsent)}},p={webUrl:new URL(document.currentScript.src).searchParams.get("w"),get cookieConsent(){return r},get gtag(){return l},set gtag(e){l=e},run:function(o){const n=new u;if(o?.debug&&(n.debug=!0),!this.webUrl){if(n.debug)throw Error("AntikConsent: w parameter was not provided when calling script.");throw Error("AntikConsent error.")}if(o?.lang&&(Object.prototype.hasOwnProperty.call(n.languages,o.lang)?(n.auto_language=!1,n.current_lang=o.lang,c.call(n,`Custom language set - ${o.lang}`,"log")):c.call(n,"AntikConsent: Language you provided does not exist. Using default.","warn")),o?.main_color){if(new RegExp("^(#)((?:[0-9a-f]{3}){2})$","i").test(o.main_color)){document.documentElement.style.setProperty("--cc-btn-primary-bg",o.main_color);const t=e(-.3,o.main_color);document.documentElement.style.setProperty("--cc-btn-primary-hover-bg",t)}else c.call(n,"AntikConsent: You need to provide #xxxxxx as main_color value. Using default.","warn")}if(o?.gtach&&(c.call(n,"Configuring GTAG ID(s).","log"),Array.isArray(o.gtach)?n.gtm.ids.push(...o.gtach):n.gtm.ids.push(o.gtach),d.call(n,{provider:"Google",information:{sk:"<a class=cc-link target=_blank href=https://policies.google.com/privacy>Pravidlá ochrany súkromia spoločnosti Google</a>",en:"<a class=cc-link target=_blank href=https://policies.google.com/privacy>Google Privacy Policy</a>",cs:"<a class=cc-link target=_blank href=https://policies.google.com/privacy>Pravidla ochrany soukromí společnosti Google</a>",cz:"<a class=cc-link target=_blank href=https://policies.google.com/privacy>Pravidla ochrany soukromí společnosti Google</a>"}},2),d.call(n,{provider:"Google",information:{sk:"<a class=cc-link target=_blank href=https://policies.google.com/privacy>Pravidlá ochrany súkromia spoločnosti Google</a>",en:"<a class=cc-link target=_blank href=https://policies.google.com/privacy>Google Privacy Policy</a>",cs:"<a class=cc-link target=_blank href=https://policies.google.com/privacy>Pravidla ochrany soukromí společnosti Google</a>",cz:"<a class=cc-link target=_blank href=https://policies.google.com/privacy>Pravidla ochrany soukromí společnosti Google</a>"}},3)),void 0!==o?.meta_cookie&&!0!==o.meta_cookie||(c.call(n,"Adding Meta to cookie tables.","log"),d.call(n,{provider:"Meta Platforms, Inc.",information:{sk:"<a class=cc-link target=_blank href=https://www.facebook.com/policy.php/>Zásady používania údajov spoločnosti Meta</a>",en:"<a class=cc-link target=_blank href=https://www.facebook.com/policy.php/>Meta data usage policy</a>",cs:"<a class=cc-link target=_blank href=https://www.facebook.com/policy.php/>Zásady používání údajů společnosti Meta</a>",cz:"<a class=cc-link target=_blank href=https://www.facebook.com/policy.php/>Zásady používání údajů společnosti Meta</a>"}},2),d.call(n,{provider:"Meta Platforms, Inc.",information:{sk:"<a class=cc-link target=_blank href=https://www.facebook.com/policy.php/>Zásady používania údajov spoločnosti Meta</a>",en:"<a class=cc-link target=_blank href=https://www.facebook.com/policy.php/>Meta data usage policy</a>",cs:"<a class=cc-link target=_blank href=https://www.facebook.com/policy.php/>Zásady používání údajů společnosti Meta</a>",cz:"<a class=cc-link target=_blank href=https://www.facebook.com/policy.php/>Zásady používání údajů společnosti Meta</a>"}},3)),o?.analytics_cookies&&(Array.isArray(o.analytics_cookies)?o.analytics_cookies.forEach((e=>{d.call(n,e,2)})):d.call(n,o.analytics_cookies,2)),o?.marketing_cookies&&(Array.isArray(o.marketing_cookies)?o.marketing_cookies.forEach((e=>{d.call(n,e,3)})):d.call(n,o.marketing_cookies,3)),o?.force_consent&&(c.call(n,"Force consent enabled.","log"),n.force_consent=!0),o?.force_reload_cookie){c.call(n,"Removing active cookies. {antik_cookie}","log");((e,t,o)=>{document.cookie=e+"="+(t?";path="+t:"")+(o?";domain="+o:"")+";expires=Thu, 01 Jan 1970 00:00:01 GMT"})("antik_cookie","/",window.location.hostname)}if(o?.cookie_expiration&&("number"!=typeof o?.cookie_expiration?c.call(n,"Cookie expiration is not a number!","warn"):(n.cookie_expiration=o?.cookie_expiration,c.call(n,`Cookie expiration set to ${o?.cookie_expiration} days.`,"log"))),o?.onAccepted)if("function"!=typeof o?.onAccepted)c.call(n,"onAccepted is not a function!","warn");else{const e=n.onAccept;n.onAccept=t=>{e(t),o.onAccepted(t)},c.call(n,`Cookie expiration set to ${o?.cookie_expiration} days.`,"log")}c.call(n,"Running program","log"),r.run(n),s(),t()}};o.g.AntikConsent=p})(),n})())); | ||
var AntikCookieConsent;(()=>{var e={686:()=>{"function"!=typeof window.initCookieConsent&&(window.initCookieConsent=function(e){var t,o,n,a,i,c,s,r,l,d,u,p,g,h,m,f,k,v,b,y,_,w,C,A,x,j,S,z,T,N={mode:"opt-in",current_lang:"en",auto_language:null,autorun:!0,cookie_name:"cc_cookie",cookie_expiration:182,cookie_domain:window.location.hostname,cookie_path:"/",cookie_same_site:"Lax",use_rfc_cookie:!1,autoclear_cookies:!0,revision:0,script_selector:"data-cookiecategory"},P={},E={},L=null,M=!1,O=!1,G=!1,q=!1,I=!1,R=!1,F=!0,Z="",J=[],D=!1,V=[],B=[],U=[],H=!1,$=[],W=[],K=[],Y=[],X=[],Q=document.documentElement,ee=function(e){function t(t){return(e||document).querySelectorAll('a[data-cc="'+t+'"], button[data-cc="'+t+'"]')}function o(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,P.accept(t),P.hideSettings(),P.hide()}for(var n=t("c-settings"),a=t("accept-all"),i=t("accept-necessary"),c=t("accept-selection"),s=0;s<n.length;s++)n[s].setAttribute("aria-haspopup","dialog"),me(n[s],"click",(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1,P.showSettings(0)}));for(s=0;s<a.length;s++)me(a[s],"click",(function(e){o(e,"all")}));for(s=0;s<c.length;s++)me(c[s],"click",(function(e){o(e)}));for(s=0;s<i.length;s++)me(i[s],"click",(function(e){o(e,[])}))},te=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)?e:0<fe(t).length?Object.prototype.hasOwnProperty.call(t,N.current_lang)?N.current_lang:fe(t)[0]:void 0},oe=function(){function e(e,o){var n=!1,a=!1;try{for(var i,c=e.querySelectorAll(t.join(':not([tabindex="-1"]), ')),s=c.length,r=0;r<s;)i=c[r].getAttribute("data-focus"),a||"1"!==i?"0"===i&&(n=c[r],a||"0"===c[r+1].getAttribute("data-focus")||(a=c[r+1])):a=c[r],r++}catch(o){return e.querySelectorAll(t.join(", "))}o[0]=c[0],o[1]=c[c.length-1],o[2]=n,o[3]=a}var t=["[href]","button","input","details",'[tabindex="0"]'];e(_,W),O&&e(g,$)},ne=function(e){if(!0===t.force_consent&&ke(Q,"force--consent"),!g){g=se("div");var o=se("div"),n=se("div");g.id="cm",o.id="c-inr-i",n.id="cm-ov",g.setAttribute("role","dialog"),g.setAttribute("aria-modal","true"),g.setAttribute("aria-hidden","false"),g.setAttribute("aria-labelledby","c-ttl"),g.setAttribute("aria-describedby","c-txt"),p.appendChild(g),p.appendChild(n),g.style.visibility=n.style.visibility="hidden",n.style.opacity=0}(n=t.languages[e].consent_modal.title)&&(h||((h=se("div")).id="c-ttl",h.setAttribute("role","heading"),h.setAttribute("aria-level","2"),o.appendChild(h)),h.innerHTML=n),n=t.languages[e].consent_modal.description,R&&(n=F?n.replace("{{revision_message}}",""):n.replace("{{revision_message}}",Z||t.languages[e].consent_modal.revision_message||"")),m||((m=se("div")).id="c-txt",o.appendChild(m)),m.innerHTML=n,n=t.languages[e].consent_modal.primary_btn;var a,i=t.languages[e].consent_modal.secondary_btn;n&&(f||((f=se("button")).id="c-p-bn",f.className="c-bn","accept_all"===n.role&&(a="all"),me(f,"click",(function(){P.hide(),P.accept(a)}))),f.textContent=t.languages[e].consent_modal.primary_btn.text);i&&(k||((k=se("button")).id="c-s-bn",k.className="c-bn c_link","accept_necessary"===i.role?me(k,"click",(function(){P.hide(),P.accept([])})):me(k,"click",(function(){P.showSettings(0)}))),k.textContent=t.languages[e].consent_modal.secondary_btn.text),e=t.gui_options,b||((b=se("div")).id="c-inr",b.appendChild(o)),v||((v=se("div")).id="c-bns",e&&e.consent_modal&&!0===e.consent_modal.swap_buttons?(i&&v.appendChild(k),n&&v.appendChild(f),v.className="swap"):(n&&v.appendChild(f),i&&v.appendChild(k)),(n||i)&&b.appendChild(v),g.appendChild(b)),O=!0},ae=function(e){if(y)(x=se("div")).id="s-bl";else{y=se("div");var o=se("div"),i=se("div"),c=se("div");_=se("div"),w=se("div");var s=se("div");C=se("button");var r=se("div");A=se("div");var l=se("div");y.id="s-cnt",o.id="c-vln",c.id="c-s-in",i.id="cs",w.id="s-ttl",_.id="s-inr",s.id="s-hdr",A.id="s-bl",C.id="s-c-bn",l.id="cs-ov",r.id="s-c-bnc",C.className="c-bn",y.setAttribute("role","dialog"),y.setAttribute("aria-modal","true"),y.setAttribute("aria-hidden","true"),y.setAttribute("aria-labelledby","s-ttl"),w.setAttribute("role","heading"),y.style.visibility=l.style.visibility="hidden",l.style.opacity=0,r.appendChild(C),me(o,"keydown",(function(e){27===(e=e||window.event).keyCode&&P.hideSettings(0)}),!0),me(C,"click",(function(){P.hideSettings(0)}))}C.setAttribute("aria-label",t.languages[e].settings_modal.close_btn_label||"Close"),a=t.languages[e].settings_modal.blocks,n=t.languages[e].settings_modal.cookie_table_headers;var d=a.length;w.innerHTML=t.languages[e].settings_modal.title;for(var u=0;u<d;++u){var g=a[u].title,h=a[u].description,m=a[u].toggle,f=a[u].cookie_table,k=!0===t.remove_cookie_tables,v=(h||!k&&f)&&"truthy",b=se("div"),N=se("div");if(h){var L=se("div");L.className="p",L.insertAdjacentHTML("beforeend",h)}var O=se("div");if(O.className="title",b.className="c-bl",N.className="desc",void 0!==m){var G="c-ac-"+u,q=se(v?"button":"div"),I=se("label"),R=se("input"),F=se("span"),Z=se("span"),J=se("span"),D=se("span");q.className=v?"b-tl exp":"b-tl",I.className="b-tg",R.className="c-tgl",J.className="on-i",D.className="off-i",F.className="c-tg",Z.className="t-lb",v&&(q.setAttribute("aria-expanded","false"),q.setAttribute("aria-controls",G)),R.type="checkbox",F.setAttribute("aria-hidden","true");var V=m.value;R.value=V,Z.textContent=g,q.insertAdjacentHTML("beforeend",g),O.appendChild(q),F.appendChild(J),F.appendChild(D),M?-1<ce(E.level,V)?(R.checked=!0,!x&&K.push(!0)):!x&&K.push(!1):m.enabled?(R.checked=!0,!x&&K.push(!0),m.enabled&&!x&&U.push(V)):!x&&K.push(!1),!x&&Y.push(V),m.readonly?(R.disabled=!0,ke(F,"c-ro"),!x&&X.push(!0)):!x&&X.push(!1),ke(N,"b-acc"),ke(O,"b-bn"),ke(b,"b-ex"),N.id=G,N.setAttribute("aria-hidden","true"),I.appendChild(R),I.appendChild(F),I.appendChild(Z),O.appendChild(I),v&&function(e,t,o){me(q,"click",(function(){be(t,"act")?(ve(t,"act"),o.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true")):(ke(t,"act"),o.setAttribute("aria-expanded","true"),e.setAttribute("aria-hidden","false"))}),!1)}(N,b,q)}else g&&((v=se("div")).className="b-tl",v.setAttribute("role","heading"),v.setAttribute("aria-level","3"),v.insertAdjacentHTML("beforeend",g),O.appendChild(v));if(g&&b.appendChild(O),h&&N.appendChild(L),!k&&void 0!==f){for(v=document.createDocumentFragment(),G=0;G<n.length;++G)I=se("th"),k=n[G],I.setAttribute("scope","col"),k&&(O=k&&fe(k)[0],I.textContent=n[G][O],v.appendChild(I));for((k=se("tr")).appendChild(v),(O=se("thead")).appendChild(k),(v=se("table")).appendChild(O),G=document.createDocumentFragment(),I=0;I<f.length;I++){for(R=se("tr"),F=0;F<n.length;++F)(k=n[F])&&(O=fe(k)[0],(Z=se("td")).insertAdjacentHTML("beforeend",f[I][O]),Z.setAttribute("data-column",k[O]),R.appendChild(Z));G.appendChild(R)}(f=se("tbody")).appendChild(G),v.appendChild(f),N.appendChild(v)}(m&&g||!m&&(g||h))&&(b.appendChild(N),x?x.appendChild(b):A.appendChild(b))}j||((j=se("div")).id="s-bns"),z||((z=se("button")).id="s-all-bn",z.className="c-bn",j.appendChild(z),me(z,"click",(function(){P.hideSettings(),P.hide(),P.accept("all")}))),z.textContent=t.languages[e].settings_modal.accept_all_btn,(d=t.languages[e].settings_modal.reject_all_btn)&&(T||((T=se("button")).id="s-rall-bn",T.className="c-bn",me(T,"click",(function(){P.hideSettings(),P.hide(),P.accept([])})),_.className="bns-t",j.appendChild(T)),T.textContent=d),S||((S=se("button")).id="s-sv-bn",S.className="c-bn",j.appendChild(S),me(S,"click",(function(){P.hideSettings(),P.hide(),P.accept()}))),S.textContent=t.languages[e].settings_modal.save_settings_btn,x?(_.replaceChild(x,A),A=x):(s.appendChild(w),s.appendChild(r),_.appendChild(s),_.appendChild(A),_.appendChild(j),c.appendChild(_),i.appendChild(c),o.appendChild(i),y.appendChild(o),p.appendChild(y),p.appendChild(l))};P.updateLanguage=function(e,o){if("string"==typeof e)return((e=te(e,t.languages))!==N.current_lang||!0===o)&&(N.current_lang=e,O&&(ne(e),ee(b)),ae(e),!0)};var ie=function(e){var t=a.length,o=-1;D=!1;var i=ge("","all"),c=[N.cookie_domain,"."+N.cookie_domain];if("www."===N.cookie_domain.slice(0,4)){var s=N.cookie_domain.substr(4);c.push(s),c.push("."+s)}for(s=0;s<t;s++){var r=a[s];if(Object.prototype.hasOwnProperty.call(r,"toggle")){var l=-1<ce(J,r.toggle.value);if(!K[++o]&&Object.prototype.hasOwnProperty.call(r,"cookie_table")&&(e||l)){var d=r.cookie_table,u=fe(n[0])[0],p=d.length;for("on_disable"===r.toggle.reload&&l&&(D=!0),l=0;l<p;l++){var g=d[l],h=[],m=g[u],f=g.is_regex||!1,k=g.domain||null;if(g=g.path||!1,k&&(c=[k,"."+k]),f)for(f=0;f<i.length;f++)i[f].match(m)&&h.push(i[f]);else-1<(m=ce(i,m))&&h.push(i[m]);0<h.length&&(he(h,g,c),"on_clear"===r.toggle.reload&&(D=!0))}}}}},ce=function(e,t){for(var o=e.length,n=0;n<o;n++)if(e[n]===t)return n;return-1},se=function(e){var t=document.createElement(e);return"button"===e&&t.setAttribute("type",e),t},re=function(e,t){function o(e,t,o,n,a,i,c){if(i=i&&i.split(" ")||[],-1<ce(t,a)&&(ke(e,a),("bar"!==a||"middle"!==i[0])&&-1<ce(o,i[0])))for(t=0;t<i.length;t++)ke(e,i[t]);-1<ce(n,c)&&ke(e,c)}if("object"==typeof e){var n=e.consent_modal;e=e.settings_modal,O&&n&&o(g,["box","bar","cloud"],["top","middle","bottom"],["zoom","slide"],n.layout,n.position,n.transition),!t&&e&&o(y,["bar"],["left","right"],["zoom","slide"],e.layout,e.position,e.transition)}};P.allowedCategory=function(e){var t=M||"opt-in"===N.mode?JSON.parse(ge(N.cookie_name,"one",!0)||"{}").level||[]:U;return-1<ce(t,e)},P.run=function(n){if(!document.getElementById("cc_div")&&("number"==typeof(t=n).cookie_expiration&&(N.cookie_expiration=t.cookie_expiration),"number"==typeof t.cookie_necessary_only_expiration&&(N.cookie_necessary_only_expiration=t.cookie_necessary_only_expiration),"boolean"==typeof t.autorun&&(N.autorun=t.autorun),"string"==typeof t.cookie_domain&&(N.cookie_domain=t.cookie_domain),"string"==typeof t.cookie_same_site&&(N.cookie_same_site=t.cookie_same_site),"string"==typeof t.cookie_path&&(N.cookie_path=t.cookie_path),"string"==typeof t.cookie_name&&(N.cookie_name=t.cookie_name),"function"==typeof t.onAccept&&(i=t.onAccept),"function"==typeof t.onFirstAction&&(s=t.onFirstAction),"function"==typeof t.onChange&&(c=t.onChange),"opt-out"===t.mode&&(N.mode="opt-out"),"number"==typeof t.revision&&(-1<t.revision&&(N.revision=t.revision),R=!0),"boolean"==typeof t.autoclear_cookies&&(N.autoclear_cookies=t.autoclear_cookies),!0===t.use_rfc_cookie&&(N.use_rfc_cookie=!0),!0===t.hide_from_bots&&(H=navigator&&(navigator.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(navigator.userAgent)||navigator.webdriver)),N.page_scripts=!0===t.page_scripts,N.page_scripts_order=!1!==t.page_scripts_order,"browser"===t.auto_language||!0===t.auto_language?N.auto_language="browser":"document"===t.auto_language&&(N.auto_language="document"),N.current_lang=function(e,t){return"browser"===N.auto_language?(2<(t=navigator.language||navigator.browserLanguage).length&&(t=t[0]+t[1]),t=t.toLowerCase(),te(t,e)):"document"===N.auto_language?te(document.documentElement.lang,e):"string"==typeof t?N.current_lang=te(t,e):N.current_lang}(t.languages,t.current_lang),!H))if(E=JSON.parse(ge(N.cookie_name,"one",!0)||"{}"),M=void 0!==E.level,L=void 0!==E.data?E.data:null,F=!("number"==typeof n.revision&&M&&-1<n.revision&&E.revision!==N.revision),O=!M||!F,function(){(u=se("div")).id="cc--main",u.style.position="fixed",u.style.zIndex="1000000",u.innerHTML='\x3c!--[if lt IE 9 ]><div id="cc_div" class="cc_div ie"></div><![endif]--\x3e\x3c!--[if (gt IE 8)|!(IE)]>\x3c!--\x3e<div id="cc_div" class="cc_div"></div>\x3c!--<![endif]--\x3e',p=u.children[0];var t=N.current_lang;O&&ne(t),ae(t),(e||document.body).appendChild(u)}(),function(e,t){if("string"!=typeof e||""===e||document.getElementById("cc--style"))t();else{var o=se("style");o.id="cc--style";var n=new XMLHttpRequest;n.onreadystatechange=function(){4===this.readyState&&200===this.status&&(o.setAttribute("type","text/css"),o.styleSheet?o.styleSheet.cssText=this.responseText:o.appendChild(document.createTextNode(this.responseText)),document.getElementsByTagName("head")[0].appendChild(o),t())},n.open("GET",e),n.send()}}(n.theme_css,(function(){oe(),re(n.gui_options),ee(),N.autorun&&O&&P.show(n.delay||0),setTimeout((function(){ke(u,"c--anim")}),30),setTimeout((function(){!function(){var e=!1,t=!1;me(document,"keydown",(function(n){"Tab"===(n=n||window.event).key&&(o&&(n.shiftKey?document.activeElement===o[0]&&(o[1].focus(),n.preventDefault()):document.activeElement===o[1]&&(o[0].focus(),n.preventDefault()),t||I||(t=!0,!e&&n.preventDefault(),n.shiftKey?o[3]?o[2]?o[2].focus():o[0].focus():o[1].focus():o[3]?o[3].focus():o[0].focus())),!t&&(e=!0))})),document.contains&&me(u,"click",(function(e){e=e||window.event,q?_.contains(e.target)?I=!0:(P.hideSettings(0),I=!1):G&&g.contains(e.target)&&(I=!0)}),!0)}()}),100)})),M&&F){var a="boolean"==typeof E.rfc_cookie;(!a||a&&E.rfc_cookie!==N.use_rfc_cookie)&&(E.rfc_cookie=N.use_rfc_cookie,pe(N.cookie_name,JSON.stringify(E))),r=ue(de()),le(),"function"==typeof i&&i(E)}else"opt-out"===N.mode&&le(U)},P.showSettings=function(e){setTimeout((function(){ke(Q,"show--settings"),y.setAttribute("aria-hidden","false"),q=!0,setTimeout((function(){G?d=document.activeElement:l=document.activeElement,0!==W.length&&(W[3]?W[3].focus():W[0].focus(),o=W)}),200)}),0<e?e:0)};var le=function(e){if(N.page_scripts){var t=document.querySelectorAll("script["+N.script_selector+"]"),o=N.page_scripts_order,n=e||E.level||[],a=function(e,t){if(t<e.length){var i=e[t],c=i.getAttribute(N.script_selector);if(-1<ce(n,c)){i.type="text/javascript",i.removeAttribute(N.script_selector),(c=i.getAttribute("data-src"))&&i.removeAttribute("data-src");var s=se("script");if(s.textContent=i.innerHTML,function(e,t){for(var o=t.attributes,n=o.length,a=0;a<n;a++){var i=o[a].nodeName;e.setAttribute(i,t[i]||t.getAttribute(i))}}(s,i),c?s.src=c:c=i.src,c&&(o?s.readyState?s.onreadystatechange=function(){"loaded"!==s.readyState&&"complete"!==s.readyState||(s.onreadystatechange=null,a(e,++t))}:s.onload=function(){s.onload=null,a(e,++t)}:c=!1),i.parentNode.replaceChild(s,i),c)return}a(e,++t)}};a(t,0)}};P.set=function(e,o){switch(e){case"data":e=o.value;var n=!1;if("update"===o.mode)if((o=typeof(L=P.get("data"))==typeof e)&&"object"==typeof L)for(var a in!L&&(L={}),e)L[a]!==e[a]&&(L[a]=e[a],n=!0);else!o&&L||L===e||(L=e,n=!0);else L=e,n=!0;return n&&(E.data=L,pe(N.cookie_name,JSON.stringify(E))),n;case"revision":return a=o.value,e=o.prompt_consent,o=o.message,u&&"number"==typeof a&&E.revision!==a?(R=!0,Z=o,F=!1,N.revision=a,!0===e?(ne(t),re(t.gui_options,!0),oe(),P.show()):P.accept(),o=!0):o=!1,o;default:return!1}},P.get=function(e,t){return JSON.parse(ge(t||N.cookie_name,"one",!0)||"{}")[e]},P.getConfig=function(e){return N[e]||t[e]};var de=function(){return V=E.level||[],B=Y.filter((function(e){return-1===ce(V,e)})),{accepted:V,rejected:B}},ue=function(e){var t="custom",o=X.filter((function(e){return!0===e})).length;return e.accepted.length===Y.length?t="all":e.accepted.length===o&&(t="necessary"),t};P.getUserPreferences=function(){var e=de();return{accept_type:ue(e),accepted_categories:e.accepted,rejected_categories:e.rejected}},P.loadScript=function(e,t,o){var n="function"==typeof t;if(document.querySelector('script[src="'+e+'"]'))n&&t();else{var a=se("script");if(o&&0<o.length)for(var i=0;i<o.length;++i)o[i]&&a.setAttribute(o[i].name,o[i].value);n&&(a.readyState?a.onreadystatechange=function(){"loaded"!==a.readyState&&"complete"!==a.readyState||(a.onreadystatechange=null,t())}:a.onload=t),a.src=e,(document.head?document.head:document.getElementsByTagName("head")[0]).appendChild(a)}},P.updateScripts=function(){le()},P.show=function(e){O&&setTimeout((function(){ke(Q,"show--consent"),g.setAttribute("aria-hidden","false"),G=!0,setTimeout((function(){l=document.activeElement,o=$}),200)}),0<e?e:0)},P.hide=function(){O&&(ve(Q,"show--consent"),g.setAttribute("aria-hidden","true"),G=!1,setTimeout((function(){l.focus(),o=null}),200))},P.hideSettings=function(){ve(Q,"show--settings"),q=!1,y.setAttribute("aria-hidden","true"),setTimeout((function(){G?(d&&d.focus(),o=$):(l&&l.focus(),o=null),I=!1}),200)},P.accept=function(e,t){var o=t||[];if(t=[],e=e||void 0)if("object"==typeof e&&"number"==typeof e.length)for(var n=0;n<e.length;n++)-1!==ce(Y,e[n])&&t.push(e[n]);else"string"==typeof e&&("all"===e?t=Y.slice():-1!==ce(Y,e)&&t.push(e));else t=function(){for(var e=document.querySelectorAll(".c-tgl")||[],t=[],o=0;o<e.length;o++)e[o].checked&&t.push(e[o].value);return t}();if(1<=o.length)for(n=0;n<o.length;n++)t=t.filter((function(e){return e!==o[n]}));for(n=0;n<Y.length;n++)!0===X[n]&&-1===ce(t,Y[n])&&t.push(Y[n]);!function(e){J=[];var t=document.querySelectorAll(".c-tgl")||[];if(0<t.length)for(var o=0;o<t.length;o++)-1!==ce(e,Y[o])?(t[o].checked=!0,K[o]||(J.push(Y[o]),K[o]=!0)):(t[o].checked=!1,K[o]&&(J.push(Y[o]),K[o]=!1));M&&N.autoclear_cookies&&0<J.length&&ie(),E={level:e,revision:N.revision,data:L,rfc_cookie:N.use_rfc_cookie},(!M||0<J.length||!F)&&(F=!0,r=ue(de()),pe(N.cookie_name,JSON.stringify(E)),le()),(M||(N.autoclear_cookies&&ie(!0),"function"==typeof s&&s(P.getUserPreferences(),E),"function"==typeof i&&i(E),M=!0,"opt-in"!==N.mode))&&("function"==typeof c&&0<J.length&&c(E,J),D&&window.location.reload())}(t)},P.eraseCookies=function(e,t,o){var n=[];if(o=o?[o,"."+o]:[N.cookie_domain,"."+N.cookie_domain],"object"==typeof e&&0<e.length)for(var a=0;a<e.length;a++)this.validCookie(e[a])&&n.push(e[a]);else this.validCookie(e)&&n.push(e);he(n,t,o)};var pe=function(e,t){var o=N.cookie_expiration;"number"==typeof N.cookie_necessary_only_expiration&&"necessary"===r&&(o=N.cookie_necessary_only_expiration),t=N.use_rfc_cookie?encodeURIComponent(t):t;var n=new Date;n.setTime(n.getTime()+864e5*o),e=e+"="+(t||"")+(o="; expires="+n.toUTCString())+"; Path="+N.cookie_path+";",e+=" SameSite="+N.cookie_same_site+";",-1<window.location.hostname.indexOf(".")&&(e+=" Domain="+N.cookie_domain+";"),"https:"===window.location.protocol&&(e+=" Secure;"),document.cookie=e},ge=function(e,t,o){var n;if("one"===t){if((n=(n=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))?o?n.pop():e:"")&&e===N.cookie_name){try{n=JSON.parse(n)}catch(e){try{n=JSON.parse(decodeURIComponent(n))}catch(e){n={}}}n=JSON.stringify(n)}}else if("all"===t)for(e=document.cookie.split(/;\s*/),n=[],t=0;t<e.length;t++)n.push(e[t].split("=")[0]);return n},he=function(e,t,o){t=t||"/";for(var n=0;n<e.length;n++)for(var a=0;a<o.length;a++)document.cookie=e[n]+"=; path="+t+(-1<o[a].indexOf(".")?"; domain="+o[a]:"")+"; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"};P.validCookie=function(e){return""!==ge(e,"one",!0)};var me=function(e,t,o,n){e.addEventListener?!0===n?e.addEventListener(t,o,{passive:!0}):e.addEventListener(t,o,!1):e.attachEvent("on"+t,o)},fe=function(e){if("object"==typeof e){var t=[],o=0;for(t[o++]in e);return t}},ke=function(e,t){e.classList?e.classList.add(t):be(e,t)||(e.className+=" "+t)},ve=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(\\s|^)"+t+"(\\s|$)")," ")},be=function(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))};return P})},816:function(e){e.exports=(e,t,o,n)=>{let a,i,c,s,r,l,d,u="string"==typeof o;const p=parseInt,g=Math.round;return"number"!=typeof e||e<-1||e>1||"string"!=typeof t||"r"!==t[0]&&"#"!==t[0]||o&&!u?null:(this.pSBCr||(this.pSBCr=e=>{let t=e.length;const o={};if(t>9){if([a,i,c,u]=e=e.split(","),t=e.length,t<3||t>4)return null;o.r=p("a"===a[3]?a.slice(5):a.slice(4)),o.g=p(i),o.b=p(c),o.a=u?parseFloat(u):-1}else{if(8===t||6===t||t<4)return null;t<6&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(t>4?e[4]+e[4]:"")),e=p(e.slice(1),16),9===t||5===t?(o.r=e>>24&255,o.g=e>>16&255,o.b=e>>8&255,o.a=g((255&e)/.255)/1e3):(o.r=e>>16,o.g=e>>8&255,o.b=255&e,o.a=-1)}return o}),d=t.length>9,d=u?o.length>9||"c"===o&&!d:d,r=this.pSBCr(t),s=e<0,l=o&&"c"!==o?this.pSBCr(o):s?{r:0,g:0,b:0,a:-1}:{r:255,g:255,b:255,a:-1},s=1-(e=s?-1*e:e),r&&l?(n?(a=g(s*r.r+e*l.r),i=g(s*r.g+e*l.g),c=g(s*r.b+e*l.b)):(a=g((s*r.r**2+e*l.r**2)**.5),i=g((s*r.g**2+e*l.g**2)**.5),c=g((s*r.b**2+e*l.b**2)**.5)),u=r.a,l=l.a,r=u>=0||l>=0,u=r?u<0?l:l<0?u:u*s+l*e:0,d?"rgb"+(r?"a(":"(")+a+","+i+","+c+(r?","+g(1e3*u)/1e3:"")+")":"#"+(4294967296+16777216*a+65536*i+256*c+(r?g(255*u):0)).toString(16).slice(1,r?void 0:-2)):null)}},908:e=>{const t={log:console.log,warn:console.warn,error:console.error};e.exports=function(e,o){this.debug&&t[o](e)}},317:(e,t,o)=>{e.exports=()=>{const e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),t=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,n=/(macintosh|macintel|macppc|mac68k|macos)/i.test(navigator.userAgent.toLowerCase()),a=o(128)();if(!e&&!t||a)return;const i=new ResizeObserver((t=>{t[0].contentRect.width<688?(c.style.padding=null,s.style.paddingLeft=null,r.style.padding=null):(c.style.padding=e?"0em 3em":n?"0em 2.75em":"0em 2.65em",s.style.paddingLeft=e?"3em":n?"2.75em":"2.65em",r.style.padding=e?"1em 3em":n?"1em 2.75em":"1em 2.65em")})),c=document.querySelector("#s-hdr"),s=document.querySelector("#s-bl"),r=document.querySelector("#s-bns");i.observe(document.body)}},128:e=>{e.exports=()=>[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some((e=>navigator.userAgent.match(e)))},236:e=>{e.exports=()=>{const e=document.querySelector('button[data-cc="c-settings"]'),t=[];if(!e)return;t.push(document.querySelector("#s-cnt")),t.push(document.querySelector("#c-vln")),t.push(document.querySelector("#cs")),t.push(document.querySelector("#c-s-in")),t.push(document.querySelector("#s-c-bn")),t.forEach((e=>{e.addEventListener("click",(function(e){e.target===e.currentTarget&&(document.body.style.overflow="unset")}))})),e.addEventListener("click",(function(e){e.target===e.currentTarget&&(document.body.style.overflow="hidden")}));const o=document.querySelector("#s-bns")?.children;for(const e of o)e.addEventListener("click",(function(e){e.target===e.currentTarget&&(document.body.style.overflow="unset")}))}},596:(e,t,o)=>{const n=o(908);e.exports=function(e,t){if(e.length<1)return void console.warn("No GTAG ids provided in config.");const o=document.createElement("script");o.addEventListener("load",(()=>{function o(){window.dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],t.gtag=o,n.call(this,"window.dataLayer created","log"),n.call(this,"gtag function registered","log"),n.call(this,"Starting to fetch GTM","log"),o("js",new Date),e.forEach((e=>{o("config",e),n.call(this,`Registered id "${e}"`,"log")}))})),o.type="text/javascript",o.src=`https://www.googletagmanager.com/gtag/js?id=${e[0]}`,document.head.appendChild(o)}},546:e=>{"use strict";e.exports=JSON.parse('{"cz":{"consent_modal":{"title":"Používáme cookies!","description":"Soubory cookie používáme pro shromažďování a analýzu informací o výkonu a používání stránek, pro poskytování funkcí sociálních médií a pro vylepšení a přizpůsobení obsahu a reklam. Nastavení cookies <button type=button data-cc=\\"c-settings\\" class=\\"cc-link\\">Nastavení cookies</button>","primary_btn":{"text":"Akceptovat","role":"accept_all"},"secondary_btn":{"text":"Zamítnout","role":"accept_necessary"}},"settings_modal":{"title":"Nastavení cookies","save_settings_btn":"Uložit nastavení","accept_all_btn":"Akceptovat vše","reject_all_btn":"Zamítnout vše","close_btn_label":"Zavřít","cookie_table_headers":[{"col1":"Poskytovatel"},{"col2":"Informace"}],"blocks":[{"title":"Použití cookies","description":"Soubory cookie používáme pro shromažďování a analýzu informací o výkonu a používání stránek, pro poskytování funkcí sociálních médií a pro vylepšení a přizpůsobení obsahu a reklam. Cookies jsou kategorizovány a umíte se rozhodnout, které z nich povolíte."},{"title":"Nezbytné cookies","description":"Technické cookies jsou nezbytné pro fungování webové stránky a jejích funkcí, které se rozhodnete využívat. Bez nich by naše webová stránka nefungovala, například. by nebylo možné se přihlásit do uživatelského účtu. Funkční cookies nám umožňují zapamatovat si vaše základní volby a vylepšují uživatelský komfort. Jedná se například o zapamatování si jazyka nebo možnost zůstat trvale přihlášeni.","toggle":{"value":"necessary","enabled":true,"readonly":true}},{"title":"Analytické cookies","description":"Analytické cookies nám pomáhají lépe znát návštěvníky stránky díky analýze jejich interakce s obsahem webu. Tyto cookies nám umožňují optimalizovat naše stránky pro Vaše komfortní používání a to na základě toho, jak je používáte. Cílem je zapamatovat si nebo předpokládat Vaše volby. Jedná se například o využívání funkcí, jejich umístění, chování na stránce. Za tímto účelem se cookies z Vašeho prohlížeče posílají na servery nástrojů třetích stran.","toggle":{"value":"analytics","enabled":false,"readonly":false},"cookie_table":[]},{"title":"Marketingové cookies","description":"Reklamní cookies využíváme k lepšímu cílení reklam a tedy menší pravděpodobnosti s oslovením nesprávného publika, jako například. remarketing a jiné dynamické reklamní kampaně. Za tímto účelem se cookies posílají na servery třetích stran jako Google Analytics pro remarketingové reklamy t.j. reklam zobrazujících se v přizpůsobených formách na základě minulé interakce s web stránkou. Za tímto účelem se cookies z Vašeho prohlížeče posílají na servery nástrojů třetích stran.","toggle":{"value":"targeting","enabled":false,"readonly":false},"cookie_table":[]},{"title":"Více informací","description":"Podrobnější informace o tom, jak cookies zpracováváme, naleznete v našich <a class=cc-link href=https://www.antik.sk/gdpr target=_blank>Podmínkách ochrany osobních údajů</a>."}]}},"en":{"consent_modal":{"title":"We use cookies!","description":"We use cookies to collect and analyze information about the performance and use of the site, to provide social media functions, and to improve and customize content and ads. <button type=button data-cc=\\"c-settings\\" class=\\"cc-link\\">Let me choose</button>","primary_btn":{"text":"Accept all","role":"accept_all"},"secondary_btn":{"text":"Reject all","role":"accept_necessary"}},"settings_modal":{"title":"Cookie preferences","save_settings_btn":"Save settings","accept_all_btn":"Accept all","reject_all_btn":"Reject all","close_btn_label":"Close","cookie_table_headers":[{"col1":"Provider"},{"col2":"Information"}],"blocks":[{"title":"Cookie usage","description":"We use cookies to collect and analyze information about the performance and use of the site, to provide social media functions, and to improve and customize content and ads.\\nCookies are categorized and you can decide which ones to allow."},{"title":"Necessary cookies","description":"Technical cookies are essential for the functioning of the website and its functions, which you choose to use. Without them, our website would not work, e.g. it would not be possible to log in to the user account. Functional cookies allow us to remember your basic choices and improve user comfort. For example, remembering the language or being able to stay logged in permanently.","toggle":{"value":"necessary","enabled":true,"readonly":true}},{"title":"Analytical cookies","description":"Analytical cookies help us better know the visitors of the site by analyzing their interaction with the content of the site. These cookies allow us to optimize our site for your comfortable use based on how you use them. The goal is to remember or predict your choices. For example, the use of functions, their location, behavior on the site. For this purpose, cookies are sent from your browser to the servers of third-party tools.","toggle":{"value":"analytics","enabled":false,"readonly":false},"cookie_table":[]},{"title":"Marketing cookies","description":"We use advertising cookies for better targeting of advertisements and thus less likely to reach the wrong audience, such as remarketing and other dynamic advertising campaigns. For this purpose, cookies are sent to third-party servers such as Google Analytics for remarketing ads, i. ads appearing in customized forms based on past interactions with the website. For this purpose, cookies are sent from your browser to the servers of third-party tools.","toggle":{"value":"targeting","enabled":false,"readonly":false},"cookie_table":[]},{"title":"More information","description":"You can find more detailed information about how we process cookies in our <a class=cc-link href=https://www.antik.sk/gdpr target=_blank>Privacy Policy</a>."}]}},"sk":{"consent_modal":{"title":"Používame cookies!","description":"Súbory cookie používame na zhromažďovanie a analýzu informácií o výkone a používaní stránok, na poskytovanie funkcií sociálnych médií a na vylepšenie a prispôsobenie obsahu a reklám. <button type=button data-cc=\\"c-settings\\" class=\\"cc-link\\">Nastavenie cookies</button>","primary_btn":{"text":"Akceptovať","role":"accept_all"},"secondary_btn":{"text":"Zamietnuť","role":"accept_necessary"}},"settings_modal":{"title":"Nastavenie cookies","save_settings_btn":"Uložiť nastavenia","accept_all_btn":"Akceptovať všetko","reject_all_btn":"Zamietnuť všetko","close_btn_label":"Zavrieť","cookie_table_headers":[{"col1":"Poskytovateľ"},{"col2":"Informácie"}],"blocks":[{"title":"Použitie cookies","description":"Súbory cookie používame na zhromažďovanie a analýzu informácií o výkone a používaní stránok, na poskytovanie funkcií sociálnych médií a na vylepšenie a prispôsobenie obsahu a reklám.\\nCookies sú kategorizované a viete sa rozhodnúť, ktoré z nich povolíte."},{"title":"Nevyhnutné cookies","description":"Technické cookies sú nevyhnutné na fungovanie webovej stránky a jej funkcií, ktoré sa rozhodnete využívať. Bez nich by naša webová stránka nefungovala, napr. by nebolo možné sa prihlásiť do používateľského účtu. Funkčné cookies nám umožňujú zapamätať si Vaše základné voľby a vylepšujú používateľský komfort. Ide napríklad o zapamätanie si jazyka alebo možnosť zostať trvalo prihlásený.","toggle":{"value":"necessary","enabled":true,"readonly":true}},{"title":"Analytické cookies","description":"Analytické cookies nám pomáhajú lepšie poznať návštevníkov stránky vďaka analýze ich interakcie s obsahom webu. Tieto cookies nám umožňujú optimalizovať naše stránky na Vaše komfortné používanie a to na základe toho, ako ich používate. Cieľom je zapamätať si alebo predpokladať Vaše voľby. Ide napríklad o využívanie funkcií, ich umiestnenie, správanie na stránke. Pre tento účel sa cookies z Vášho prehliadača posielajú na servery nástrojov tretích strán.","toggle":{"value":"analytics","enabled":false,"readonly":false},"cookie_table":[]},{"title":"Marketingové cookies","description":"Reklamné cookies využívame na lepšie cielenie reklám a teda menšiu pravdepodobnosť s oslovením nesprávneho publika ako napr. remarketing a iné dynamické reklamné kampane. Pre tento účel sa cookies posielajú na servery tretích strán ako Google Analytics pre remarketingových reklám t.j. reklám zobrazujúcich sa v prispôsobených formách na základe minulej interakcie s web stránkou. Pre tento účel sa cookies z Vášho prehliadača posielajú na servery nástrojov tretích strán.","toggle":{"value":"targeting","enabled":false,"readonly":false},"cookie_table":[]},{"title":"Viac informácií","description":"Podrobnejšie informácie o tom ako cookies spracovávame nájdete v našich <a class=cc-link href=https://www.antik.sk/gdpr target=_blank>Podmienkach ochrany osobných údajov</a>."}]}}}')}},t={};function o(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{AntikConsent:()=>p}),o(686);const e=o(816),t=o(317),a=o(546),i=o(596),c=o(908),s=o(236),r=initCookieConsent();let l=null;const d=function(e,t){Object.keys(a).forEach((o=>{a[o].settings_modal.blocks[t].cookie_table.push({col1:e.provider,col2:e.information[o]})})),c.call(this,`Cookies table entry added. Provider: ${e.provider} in block ${t}`,"log")},u=function(){this.autorun=!0,this.autoclear_cookies=!0,this.theme_css="https://cookie-consent.antik.sk/latest/acs.css",this.page_scripts=!1,this.auto_language="document",this.gui_options={consent_modal:{layout:"cloud",position:"bottom center"},settings_modal:{layout:"box",transition:"slide"}},this.force_consent=!1,this.debug=!1,this.languages=a,this.gtm={ids:[]},this.cookie_name="antik_cookie",this.cookie_expiration=parseInt("182"),this.onAccept=e=>{e.level.includes("analytics")&&i.call(this,this.gtm?.ids,o.g.AntikConsent)}},p={webUrl:new URL(document.currentScript.src).searchParams.get("w"),get cookieConsent(){return r},get gtag(){return l},set gtag(e){l=e},run:function(o){const n=new u;if(o?.debug&&(n.debug=!0),!this.webUrl){if(n.debug)throw Error("AntikConsent: w parameter was not provided when calling script.");throw Error("AntikConsent error.")}if(o?.lang&&(Object.prototype.hasOwnProperty.call(n.languages,o.lang)?(n.auto_language=!1,n.current_lang=o.lang,c.call(n,`Custom language set - ${o.lang}`,"log")):c.call(n,"AntikConsent: Language you provided does not exist. Using default.","warn")),o?.main_color){if(new RegExp("^(#)((?:[0-9a-f]{3}){2})$","i").test(o.main_color)){document.documentElement.style.setProperty("--cc-btn-primary-bg",o.main_color);const t=e(-.3,o.main_color);document.documentElement.style.setProperty("--cc-btn-primary-hover-bg",t)}else c.call(n,"AntikConsent: You need to provide #xxxxxx as main_color value. Using default.","warn")}if(o?.gtach&&(c.call(n,"Configuring GTAG ID(s).","log"),Array.isArray(o.gtach)?n.gtm.ids.push(...o.gtach):n.gtm.ids.push(o.gtach),d.call(n,{provider:"Google",information:{sk:"<a class=cc-link target=_blank href=https://policies.google.com/privacy>Pravidlá ochrany súkromia spoločnosti Google</a>",en:"<a class=cc-link target=_blank href=https://policies.google.com/privacy>Google Privacy Policy</a>",cs:"<a class=cc-link target=_blank href=https://policies.google.com/privacy>Pravidla ochrany soukromí společnosti Google</a>",cz:"<a class=cc-link target=_blank href=https://policies.google.com/privacy>Pravidla ochrany soukromí společnosti Google</a>"}},2),d.call(n,{provider:"Google",information:{sk:"<a class=cc-link target=_blank href=https://policies.google.com/privacy>Pravidlá ochrany súkromia spoločnosti Google</a>",en:"<a class=cc-link target=_blank href=https://policies.google.com/privacy>Google Privacy Policy</a>",cs:"<a class=cc-link target=_blank href=https://policies.google.com/privacy>Pravidla ochrany soukromí společnosti Google</a>",cz:"<a class=cc-link target=_blank href=https://policies.google.com/privacy>Pravidla ochrany soukromí společnosti Google</a>"}},3)),void 0!==o?.meta_cookie&&!0!==o.meta_cookie||(c.call(n,"Adding Meta to cookie tables.","log"),d.call(n,{provider:"Meta Platforms, Inc.",information:{sk:"<a class=cc-link target=_blank href=https://www.facebook.com/policy.php/>Zásady používania údajov spoločnosti Meta</a>",en:"<a class=cc-link target=_blank href=https://www.facebook.com/policy.php/>Meta data usage policy</a>",cs:"<a class=cc-link target=_blank href=https://www.facebook.com/policy.php/>Zásady používání údajů společnosti Meta</a>",cz:"<a class=cc-link target=_blank href=https://www.facebook.com/policy.php/>Zásady používání údajů společnosti Meta</a>"}},2),d.call(n,{provider:"Meta Platforms, Inc.",information:{sk:"<a class=cc-link target=_blank href=https://www.facebook.com/policy.php/>Zásady používania údajov spoločnosti Meta</a>",en:"<a class=cc-link target=_blank href=https://www.facebook.com/policy.php/>Meta data usage policy</a>",cs:"<a class=cc-link target=_blank href=https://www.facebook.com/policy.php/>Zásady používání údajů společnosti Meta</a>",cz:"<a class=cc-link target=_blank href=https://www.facebook.com/policy.php/>Zásady používání údajů společnosti Meta</a>"}},3)),o?.analytics_cookies&&(Array.isArray(o.analytics_cookies)?o.analytics_cookies.forEach((e=>{d.call(n,e,2)})):d.call(n,o.analytics_cookies,2)),o?.marketing_cookies&&(Array.isArray(o.marketing_cookies)?o.marketing_cookies.forEach((e=>{d.call(n,e,3)})):d.call(n,o.marketing_cookies,3)),o?.force_consent&&(c.call(n,"Force consent enabled.","log"),n.force_consent=!0),o?.force_reload_cookie){c.call(n,"Removing active cookies. {antik_cookie}","log");((e,t,o)=>{document.cookie=e+"="+(t?";path="+t:"")+(o?";domain="+o:"")+";expires=Thu, 01 Jan 1970 00:00:01 GMT"})("antik_cookie","/",window.location.hostname)}if(o?.cookie_expiration&&("number"!=typeof o?.cookie_expiration?c.call(n,"Cookie expiration is not a number!","warn"):(n.cookie_expiration=o?.cookie_expiration,c.call(n,`Cookie expiration set to ${o?.cookie_expiration} days.`,"log"))),o?.onAccepted)if("function"!=typeof o?.onAccepted)c.call(n,"onAccepted is not a function!","warn");else{const e=n.onAccept;n.onAccept=t=>{e(t),o.onAccepted(t)},c.call(n,`Cookie expiration set to ${o?.cookie_expiration} days.`,"log")}c.call(n,"Running program","log"),r.run(n),s(),t()}}})(),AntikCookieConsent=n})(); |
{ | ||
"name": "@antik-web/cookie-consent", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "A lightweight & gdpr compliant cookie consent plugin written in plain javascript, implementing laman.", | ||
@@ -5,0 +5,0 @@ "main": "dist/acs.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
48049