-
Notifications
You must be signed in to change notification settings - Fork 0
/
cookie.min.js
6 lines (6 loc) · 18.2 KB
/
cookie.min.js
1
2
3
4
5
6
/*!
* CookieConsent v2.8.2
* https://www.github.com/orestbida/cookieconsent
* Author Orest Bida
* Released under the MIT License
*/ !function(){"use strict";var a="initCookieConsent";"undefined"!=typeof window&&"function"!=typeof window[a]&&(window[a]=function(b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,_,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H={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:window.location.hostname,cookie_path:"/",cookie_same_site:"Lax",use_rfc_cookie:!1,autoclear_cookies:!0,revision:0,script_selector:"data-cookiecategory"},a={},I={},J=null,K=!0,L=!1,M=!1,N=!1,O=!1,P=!1,Q=!0,R=[],S=!1,T=[],U=[],V=[],W=!1,X=[],Y=[],Z=[],$=[],aa=[],ab=document.documentElement,ac=function(a){"number"==typeof(c=a).cookie_expiration&&(H.cookie_expiration=c.cookie_expiration),"number"==typeof c.cookie_necessary_only_expiration&&(H.cookie_necessary_only_expiration=c.cookie_necessary_only_expiration),"boolean"==typeof c.autorun&&(H.autorun=c.autorun),"string"==typeof c.cookie_domain&&(H.cookie_domain=c.cookie_domain),"string"==typeof c.cookie_same_site&&(H.cookie_same_site=c.cookie_same_site),"string"==typeof c.cookie_path&&(H.cookie_path=c.cookie_path),"string"==typeof c.cookie_name&&(H.cookie_name=c.cookie_name),"function"==typeof c.onAccept&&(j=c.onAccept),"function"==typeof c.onFirstAction&&(l=c.onFirstAction),"function"==typeof c.onChange&&(k=c.onChange),"opt-out"===c.mode&&(H.mode="opt-out"),"number"==typeof c.revision&&(c.revision> -1&&(H.revision=c.revision),P=!0),"boolean"==typeof c.autoclear_cookies&&(H.autoclear_cookies=c.autoclear_cookies),!0===c.use_rfc_cookie&&(H.use_rfc_cookie=!0),"boolean"==typeof c.hide_from_bots&&(H.hide_from_bots=c.hide_from_bots),H.hide_from_bots&&(W=navigator&&(navigator.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(navigator.userAgent)||navigator.webdriver)),H.page_scripts=!0===c.page_scripts,"browser"===c.auto_language|| !0===c.auto_language?H.auto_language="browser":"document"===c.auto_language&&(H.auto_language="document"),H.auto_language,H.current_lang=ak(c.languages,c.current_lang)},ad=function(h){for(var c="accept-",d=i("c-settings"),e=i(c+"all"),f=i(c+"necessary"),g=i(c+"custom"),b=0;b<d.length;b++)d[b].setAttribute("aria-haspopup","dialog"),as(d[b],"click",function(b){b.preventDefault(),a.showSettings(0)});for(b=0;b<e.length;b++)as(e[b],"click",function(a){j(a,"all")});for(b=0;b<g.length;b++)as(g[b],"click",function(a){j(a)});for(b=0;b<f.length;b++)as(f[b],"click",function(a){j(a,[])});function i(a){return(h||document).querySelectorAll('a[data-cc="'+a+'"], button[data-cc="'+a+'"]')}function j(b,c){b.preventDefault(),a.accept(c),a.hideSettings(),a.hide()}},ae=function(b,a){return Object.prototype.hasOwnProperty.call(a,b)?b:at(a).length>0?Object.prototype.hasOwnProperty.call(a,H.current_lang)?H.current_lang:at(a)[0]:void 0},af=function(b){if(!0===c.force_consent&&au(ab,"force--consent"),!r){r=aj("div");var f=aj("div"),g=aj("div");r.id="cm",f.id="c-inr-i",g.id="cm-ov",r.setAttribute("role","dialog"),r.setAttribute("aria-modal","true"),r.setAttribute("aria-hidden","false"),r.setAttribute("aria-labelledby","c-ttl"),r.setAttribute("aria-describedby","c-txt"),q.appendChild(r),q.appendChild(g),r.style.visibility=g.style.visibility="hidden",g.style.opacity=0}var j=c.languages[b].consent_modal.title;j&&(_||((_=aj("div")).id="c-ttl",_.setAttribute("role","heading"),_.setAttribute("aria-level","2"),f.appendChild(_)),_.innerHTML=j);var h=c.languages[b].consent_modal.description;P&&(h=Q?h.replace("{{revision_message}}",""):h.replace("{{revision_message}}",c.languages[b].consent_modal.revision_message||"")),s||((s=aj("div")).id="c-txt",f.appendChild(s)),s.innerHTML=h;var k,d=c.languages[b].consent_modal.primary_btn,e=c.languages[b].consent_modal.secondary_btn;d&&(t||((t=aj("button")).id="c-p-bn",t.className="c-bn","accept_all"===d.role&&(k="all"),as(t,"click",function(){a.hide(),a.accept(k)})),t.innerHTML=c.languages[b].consent_modal.primary_btn.text),e&&(u||((u=aj("button")).id="c-s-bn",u.className="c-bn c_link","accept_necessary"===e.role?as(u,"click",function(){a.hide(),a.accept([])}):as(u,"click",function(){a.showSettings(0)})),u.innerHTML=c.languages[b].consent_modal.secondary_btn.text);var i=c.gui_options;w||((w=aj("div")).id="c-inr",w.appendChild(f)),v||((v=aj("div")).id="c-bns",i&&i.consent_modal&& !0===i.consent_modal.swap_buttons?(e&&v.appendChild(u),d&&v.appendChild(t),v.className="swap"):(d&&v.appendChild(t),e&&v.appendChild(u)),(d||e)&&w.appendChild(v),r.appendChild(w)),L=!0},ag=function(d){if(x)(C=aj("div")).id="s-bl";else{x=aj("div");var t=aj("div"),N=aj("div"),O=aj("div");y=aj("div"),z=aj("div");var u=aj("div");A=aj("button");var P=aj("div");B=aj("div");var v=aj("div");x.id="s-cnt",t.id="c-vln",O.id="c-s-in",N.id="cs",z.id="s-ttl",y.id="s-inr",u.id="s-hdr",B.id="s-bl",A.id="s-c-bn",v.id="cs-ov",P.id="s-c-bnc",A.className="c-bn",x.setAttribute("role","dialog"),x.setAttribute("aria-modal","true"),x.setAttribute("aria-hidden","true"),x.setAttribute("aria-labelledby","s-ttl"),z.setAttribute("role","heading"),x.style.visibility=v.style.visibility="hidden",v.style.opacity=0,P.appendChild(A),as(t,"keydown",function(b){27===(b=b||window.event).keyCode&&a.hideSettings(0)},!0),as(A,"click",function(){a.hideSettings(0)})}A.setAttribute("aria-label",c.languages[d].settings_modal.close_btn_label||"Close"),i=c.languages[d].settings_modal.blocks,h=c.languages[d].settings_modal.cookie_table_headers;var am=i.length;z.innerHTML=c.languages[d].settings_modal.title;for(var e=0;e<am;++e){var f=i[e].title,p=i[e].description,g=i[e].toggle,w=i[e].cookie_table,_=!0===c.remove_cookie_tables,H=p?"truthy":!_&&w&&"truthy",j=aj("div"),b=aj("div");if(p){var Q=aj("div");Q.className="p",Q.insertAdjacentHTML("beforeend",p)}var l=aj("div");if(l.className="title",j.className="c-bl",b.className="desc",void 0!==g){var Y="c-ac-"+e,m=aj(H?"button":"div"),r=aj("label"),k=aj("input"),n=aj("span"),R=aj("span"),ab=aj("span"),ac=aj("span");m.className=H?"b-tl exp":"b-tl",r.className="b-tg",k.className="c-tgl",ab.className="on-i",ac.className="off-i",n.className="c-tg",R.className="t-lb",H&&(m.setAttribute("aria-expanded","false"),m.setAttribute("aria-controls",Y)),k.type="checkbox",n.setAttribute("aria-hidden","true");var J=g.value;k.value=J,R.textContent=f,m.insertAdjacentHTML("beforeend",f),l.appendChild(m),n.appendChild(ab),n.appendChild(ac),K?g.enabled?(k.checked=!0,C||Z.push(!0),g.enabled&&!C&&V.push(J)):C||Z.push(!1):ai(I.categories,J)> -1?(k.checked=!0,C||Z.push(!0)):C||Z.push(!1),C||$.push(J),g.readonly?(k.disabled=!0,au(n,"c-ro"),C||aa.push(!0)):C||aa.push(!1),au(b,"b-acc"),au(l,"b-bn"),au(j,"b-ex"),b.id=Y,b.setAttribute("aria-hidden","true"),r.appendChild(k),r.appendChild(n),r.appendChild(R),l.appendChild(r),H&&function(a,b,c){as(m,"click",function(){aw(b,"act")?(av(b,"act"),c.setAttribute("aria-expanded","false"),a.setAttribute("aria-hidden","true")):(au(b,"act"),c.setAttribute("aria-expanded","true"),a.setAttribute("aria-hidden","false"))},!1)}(b,j,m)}else if(f){var s=aj("div");s.className="b-tl",s.setAttribute("role","heading"),s.setAttribute("aria-level","3"),s.insertAdjacentHTML("beforeend",f),l.appendChild(s)}if(f&&j.appendChild(l),p&&b.appendChild(Q),!_&& void 0!==w){for(var ad=document.createDocumentFragment(),L=0;L<h.length;++L){var S=aj("th"),o=h[L];if(S.setAttribute("scope","col"),o){var M=o&&at(o)[0];S.textContent=h[L][M],ad.appendChild(S)}}var ae=aj("tr");ae.appendChild(ad);var af=aj("thead");af.appendChild(ae);var T=aj("table");T.appendChild(af);for(var ag=document.createDocumentFragment(),U=0;U<w.length;U++){for(var ah=aj("tr"),W=0;W<h.length;++W)if(o=h[W]){M=at(o)[0];var X=aj("td");X.insertAdjacentHTML("beforeend",w[U][M]),X.setAttribute("data-column",o[M]),ah.appendChild(X)}ag.appendChild(ah)}var ak=aj("tbody");ak.appendChild(ag),T.appendChild(ak),b.appendChild(T)}(g&&f|| !g&&(f||p))&&(j.appendChild(b),C?C.appendChild(j):B.appendChild(j))}D||((D=aj("div")).id="s-bns"),F||((F=aj("button")).id="s-all-bn",F.className="c-bn",D.appendChild(F),as(F,"click",function(){a.hideSettings(),a.hide(),a.accept("all")})),F.innerHTML=c.languages[d].settings_modal.accept_all_btn;var al=c.languages[d].settings_modal.reject_all_btn;if(al&&(G||((G=aj("button")).id="s-rall-bn",G.className="c-bn",as(G,"click",function(){a.hideSettings(),a.hide(),a.accept([])}),y.className="bns-t",D.appendChild(G)),G.innerHTML=al),E||((E=aj("button")).id="s-sv-bn",E.className="c-bn",D.appendChild(E),as(E,"click",function(){a.hideSettings(),a.hide(),a.accept()})),E.innerHTML=c.languages[d].settings_modal.save_settings_btn,C)return y.replaceChild(C,B),void(B=C);u.appendChild(z),u.appendChild(P),y.appendChild(u),y.appendChild(B),y.appendChild(D),O.appendChild(y),N.appendChild(O),t.appendChild(N),x.appendChild(t),q.appendChild(x),q.appendChild(v)};a.updateLanguage=function(b,d){if("string"==typeof b){var a=ae(b,c.languages);return(a!==H.current_lang|| !0===d)&&(H.current_lang=a,L&&(af(a),ad(w)),ag(a),!0)}};var ah=function(p){var q=i.length,r=-1;S=!1;var b=aq("","all"),c=[H.cookie_domain,"."+H.cookie_domain];if("www."===H.cookie_domain.slice(0,4)){var l=H.cookie_domain.substr(4);c.push(l),c.push("."+l)}for(var g=0;g<q;g++){var a=i[g];if(Object.prototype.hasOwnProperty.call(a,"toggle")){var m=ai(R,a.toggle.value)> -1;if(!Z[++r]&&Object.prototype.hasOwnProperty.call(a,"cookie_table")&&(p||m)){var n=a.cookie_table,s=at(h[0])[0],t=n.length;"on_disable"===a.toggle.reload&&m&&(S=!0);for(var j=0;j<t;j++){var d=n[j],e=[],_=d[s],u=d.is_regex||!1,k=d.domain||null,v=d.path||!1;if(k&&(c=[k,"."+k]),u)for(var f=0;f<b.length;f++)b[f].match(_)&&e.push(b[f]);else{var o=ai(b,_);o> -1&&e.push(b[o])}e.length>0&&(ar(e,v,c),"on_clear"===a.toggle.reload&&(S=!0))}}}}},ai=function(a,b){return a.indexOf(b)},aj=function(a){var b=document.createElement(a);return"button"===a&&b.setAttribute("type",a),b},ak=function(a,b){return"browser"===H.auto_language?ae(al(),a):"document"===H.auto_language?ae(document.documentElement.lang,a):"string"==typeof b?H.current_lang=ae(b,a):(H.current_lang,H.current_lang)},al=function(){var a=navigator.language||navigator.browserLanguage;return a.length>2&&(a=a[0]+a[1]),a.toLowerCase()};a.allowedCategory=function(a){if(K&&"opt-in"!==H.mode)b=V;else var b=JSON.parse(aq(H.cookie_name,"one",!0)||"{}").categories||[];return ai(b,a)> -1},a.run=function(c){if(!document.getElementById("cc_div")&&(ac(c),!W)){var h,k=void 0!==(f=(I=JSON.parse(aq(H.cookie_name,"one",!0)||"{}")).consent_uuid);if((d=I.consent_date)&&(d=new Date(d)),(e=I.last_consent_update)&&(e=new Date(e)),J=void 0!==I.data?I.data:null,P&&I.revision!==H.revision&&(Q=!1),L=K=!(k&&Q&&d&&e&&f),(p=aj("div")).id="cc--main",p.style.position="fixed",p.style.zIndex="1000000",p.innerHTML='<!--[if lt IE 9 ]><div id="cc_div" class="cc_div ie"></div><![endif]--><!--[if (gt IE 8)|!(IE)]><!--><div id="cc_div" class="cc_div"></div><!--<![endif]-->',q=p.children[0],h=H.current_lang,L&&af(h),ag(h),(b||document.body).appendChild(p),function(){var b=["[href]","button","input","details",'[tabindex="0"]',];function a(g,e){var h=!1,d=!1;try{for(var f,a=g.querySelectorAll(b.join(':not([tabindex="-1"]), ')),i=a.length,c=0;c<i;)f=a[c].getAttribute("data-focus"),d||"1"!==f?"0"===f&&(h=a[c],d||"0"===a[c+1].getAttribute("data-focus")||(d=a[c+1])):d=a[c],c++}catch(j){return g.querySelectorAll(b.join(", "))}e[0]=a[0],e[1]=a[a.length-1],e[2]=h,e[3]=d}a(y,Y),L&&a(r,X)}(),function(c,d){if("object"==typeof c){var a=c.consent_modal,b=c.settings_modal;L&&a&&e(r,["box","bar","cloud"],["top","middle","bottom"],["zoom","slide"],a.layout,a.position,a.transition),b&&e(x,["bar"],["left","right"],["zoom","slide"],b.layout,b.position,b.transition)}function e(b,f,g,h,c,a,e){if(a=a&&a.split(" ")||[],ai(f,c)> -1&&(au(b,c),("bar"!==c||"middle"!==a[0])&&ai(g,a[0])> -1))for(var d=0;d<a.length;d++)au(b,a[d]);ai(h,e)> -1&&au(b,e)}}(c.gui_options),ad(),H.autorun&&L&&a.show(c.delay||0),setTimeout(function(){au(p,"c--anim")},30),setTimeout(function(){var b,c;b=!1,c=!1,as(document,"keydown",function(a){"Tab"!==(a=a||window.event).key||(g&&(a.shiftKey?document.activeElement===g[0]&&(g[1].focus(),a.preventDefault()):document.activeElement===g[1]&&(g[0].focus(),a.preventDefault()),c||O||(c=!0,b||a.preventDefault(),a.shiftKey?g[3]?g[2]?g[2].focus():g[0].focus():g[1].focus():g[3]?g[3].focus():g[0].focus())),c||(b=!0))}),document.contains&&as(p,"click",function(b){b=b||window.event,N?y.contains(b.target)?O=!0:(a.hideSettings(0),O=!1):M&&r.contains(b.target)&&(O=!0)},!0)},100),K)"opt-out"===H.mode&&(H.mode,am(V));else{var i="boolean"==typeof I.rfc_cookie;(!i||i&&I.rfc_cookie!==H.use_rfc_cookie)&&(I.rfc_cookie=H.use_rfc_cookie,ap(H.cookie_name,JSON.stringify(I))),m=ao(an()),am(),"function"==typeof j&&j(I)}}},a.showSettings=function(a){setTimeout(function(){au(ab,"show--settings"),x.setAttribute("aria-hidden","false"),N=!0,setTimeout(function(){M?o=document.activeElement:n=document.activeElement,0!==Y.length&&(Y[3]?Y[3].focus():Y[0].focus(),g=Y)},200)},a>0?a:0)};var am=function(a){if(H.page_scripts){var b=document.querySelectorAll("script["+H.script_selector+"]"),d=a||I.categories||[],c=function(f,g){if(g<f.length){var a=f[g];if(ai(d,a.getAttribute(H.script_selector))> -1){a.type="text/javascript",a.removeAttribute(H.script_selector);var e=a.getAttribute("data-src");e&&a.removeAttribute("data-src");var b=aj("script");if(b.textContent=a.innerHTML,function(e,a){for(var d=a.attributes,f=d.length,b=0;b<f;b++){var c=d[b].nodeName;e.setAttribute(c,a[c]||a.getAttribute(c))}}(b,a),e?b.src=e:e=a.src,e&&(b.readyState?b.onreadystatechange=function(){"loaded"!==b.readyState&&"complete"!==b.readyState||(b.onreadystatechange=null,c(f,++g))}:b.onload=function(){b.onload=null,c(f,++g)}),a.parentNode.replaceChild(b,a),e)return}c(f,++g)}};c(b,0)}};a.set=function(b,c){return"data"===b&&function(b,g){var d=!1;if("update"===c.mode){var f=typeof(J=a.get("data"))==typeof b;if(f&&"object"==typeof J)for(var e in J||(J={}),b)J[e]!==b[e]&&(J[e]=b[e],d=!0);else!f&&J||J===b||(J=b,d=!0)}else J=b,d=!0;return d&&(I.data=J,ap(H.cookie_name,JSON.stringify(I))),d}(c.value)},a.get=function(a,b){return JSON.parse(aq(b||H.cookie_name,"one",!0)||"{}")[a]},a.getConfig=function(a){return H[a]||c[a]};var an=function(){return T=I.categories||[],U=$.filter(function(a){return -1===ai(T,a)}),{accepted:T,rejected:U}},ao=function(b){var a="custom",c=aa.filter(function(a){return!0===a}).length;return b.accepted.length===$.length?a="all":b.accepted.length===c&&(a="necessary"),a};a.getUserPreferences=function(){var a=an();return{accept_type:ao(a),accepted_categories:a.accepted,rejected_categories:a.rejected}},a.loadScript=function(e,d,a){var f="function"==typeof d;if(document.querySelector('script[src="'+e+'"]'))f&&d();else{var c=aj("script");if(a&&a.length>0)for(var b=0;b<a.length;++b)a[b]&&c.setAttribute(a[b].name,a[b].value);f&&(c.onload=d),c.src=e,document.head.appendChild(c)}},a.updateScripts=function(){am()},a.show=function(a,b){!0===b&&af(H.current_lang),L&&setTimeout(function(){au(ab,"show--consent"),r.setAttribute("aria-hidden","false"),M=!0,setTimeout(function(){n=document.activeElement,g=X},200)},a>0?a:b?30:0)},a.hide=function(){L&&(av(ab,"show--consent"),r.setAttribute("aria-hidden","true"),M=!1,setTimeout(function(){n.focus(),g=null},200))},a.hideSettings=function(){av(ab,"show--settings"),N=!1,x.setAttribute("aria-hidden","true"),setTimeout(function(){M?(o&&o.focus(),g=X):(n&&n.focus(),g=null),O=!1},200)},a.accept=function(i,n){var c=i||void 0,h=n||[],g=[];if(c){if("object"==typeof c&&"number"==typeof c.length)for(var b=0;b<c.length;b++)-1!==ai($,c[b])&&g.push(c[b]);else"string"==typeof c&&("all"===c?g=$.slice():-1!==ai($,c)&&g.push(c))}else g=function(){for(var b=document.querySelectorAll(".c-tgl")||[],c=[],a=0;a<b.length;a++)b[a].checked&&c.push(b[a].value);return c}();if(h.length>=1)for(b=0;b<h.length;b++)g=g.filter(function(a){return a!==h[b]});for(b=0;b<$.length;b++)!0===aa[b]&& -1===ai(g,$[b])&&g.push($[b]);!function(g){R=[];var c=document.querySelectorAll(".c-tgl")||[];if(c.length>0)for(var b=0;b<c.length;b++)-1!==ai(g,$[b])?(c[b].checked=!0,Z[b]||(R.push($[b]),Z[b]=!0)):(c[b].checked=!1,Z[b]&&(R.push($[b]),Z[b]=!1));!K&&H.autoclear_cookies&&R.length>0&&ah(),d||(d=new Date),f||(f="10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(a){try{return(a^(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(1))[0]&15>>a/4).toString(16)}catch(b){return""}})),I={categories:g,revision:H.revision,data:J,rfc_cookie:H.use_rfc_cookie,consent_date:d.toISOString(),consent_uuid:f},(K||R.length>0)&&(Q=!0,e=e?new Date:d,I.last_consent_update=e.toISOString(),m=ao(an()),ap(H.cookie_name,JSON.stringify(I)),am()),K&&(H.autoclear_cookies&&ah(!0),"function"==typeof l&&l(a.getUserPreferences(),I),"function"==typeof j&&j(I),K=!1,"opt-in"===H.mode)||("function"==typeof k&&R.length>0&&k(I,R),S&&window.location.reload())}(g)},a.eraseCookies=function(a,e,c){var d=[],f=c?[c,"."+c]:[H.cookie_domain,"."+H.cookie_domain];if("object"==typeof a&&a.length>0)for(var b=0;b<a.length;b++)this.validCookie(a[b])&&d.push(a[b]);else this.validCookie(a)&&d.push(a);ar(d,e,f)};var ap=function(e,a){var d=H.cookie_expiration;"number"==typeof H.cookie_necessary_only_expiration&&"necessary"===m&&(d=H.cookie_necessary_only_expiration),a=H.use_rfc_cookie?encodeURIComponent(a):a;var c=new Date;c.setTime(c.getTime()+24*d*36e5);var b=e+"="+(a||"")+"; expires="+c.toUTCString()+"; Path="+H.cookie_path+";";b+=" SameSite="+H.cookie_same_site+";",window.location.hostname.indexOf(".")> -1&&(b+=" Domain="+H.cookie_domain+";"),"https:"===window.location.protocol&&(b+=" Secure;"),document.cookie=b},aq=function(b,d,f){var a;if("one"===d){if((a=(a=document.cookie.match("(^|;)\\s*"+b+"\\s*=\\s*([^;]+)"))?f?a.pop():b:"")&&b===H.cookie_name){try{a=JSON.parse(a)}catch(g){try{a=JSON.parse(decodeURIComponent(a))}catch(h){a={}}}a=JSON.stringify(a)}}else if("all"===d){var e=document.cookie.split(/;\s*/);a=[];for(var c=0;c<e.length;c++)a.push(e[c].split("=")[0])}return a},ar=function(c,e,d){for(var f=e||"/",a=0;a<c.length;a++){for(var b=0;b<d.length;b++)document.cookie=c[a]+"=; path="+f+(d[b].indexOf(".")> -1?"; domain="+d[b]:"")+"; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";c[a]}};a.validCookie=function(a){return""!==aq(a,"one",!0)};var as=function(a,b,c,d){a.addEventListener(b,c,!0===d&&{passive:!0})},at=function(a){if("object"==typeof a)return Object.keys(a)},au=function(a,b){a.classList.add(b)},av=function(a,b){a.classList.remove(b)},aw=function(a,b){return a.classList.contains(b)};return a})}()