Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vanilla-cookieconsent

Package Overview
Dependencies
Maintainers
2
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vanilla-cookieconsent - npm Package Compare versions

Comparing version 3.0.0-rc.15 to 3.0.0-rc.16

2

dist/cookieconsent.esm.js

@@ -7,2 +7,2 @@ /*!

*/
const e='opt-in',t='opt-out',n='show--consent',o='show--preferences',a='disable--interaction',s='data-category',c='div',r='button',i='aria-hidden',l='btn-group',d='click',f='data-role',_='consentModal',u='preferencesModal';class p{constructor(){this.t={mode:e,revision:0,autoShow:!0,lazyHtmlGeneration:!0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:'cc_cookie',expiresAfterDays:182,domain:'',path:'/',sameSite:'Lax'}},this.o={i:{},l:'',_:{},u:{},p:{},m:[],g:!1,v:null,h:null,C:null,S:'',M:!0,D:!1,T:!1,k:!1,A:!1,N:[],H:!1,F:!0,V:[],j:!1,P:'',I:!1,L:[],O:[],R:[],B:[],G:!1,J:!1,U:!1,$:[],q:[],K:null,W:[],X:[],Y:{},Z:{},ee:{},te:{},ne:{},oe:[]},this.ae={se:{},ce:{}},this.re={},this.ie={le:'cc:onFirstConsent',de:'cc:onConsent',fe:'cc:onChange',_e:'cc:onModalShow',ue:'cc:onModalHide',pe:'cc:onModalReady'}}}const m=new p,g=(e,t)=>e.indexOf(t),b=(e,t)=>-1!==g(e,t),v=e=>Array.isArray(e),y=e=>'string'==typeof e,h=e=>!!e&&'object'==typeof e&&!v(e),C=e=>'function'==typeof e,w=e=>Object.keys(e),S=e=>Array.from(new Set(e)),x=()=>document.activeElement,M=e=>e.preventDefault(),D=(e,t)=>e.querySelectorAll(t),T=e=>e.dispatchEvent(new Event('change')),E=e=>{const t=document.createElement(e);return e===r&&(t.type=e),t},k=(e,t,n)=>e.setAttribute(t,n),A=(e,t,n)=>{e.removeAttribute(n?'data-'+t:t)},N=(e,t,n)=>e.getAttribute(n?'data-'+t:t),H=(e,t)=>e.appendChild(t),F=(e,t)=>e.classList.add(t),V=(e,t)=>F(e,'cm__'+t),j=(e,t)=>F(e,'pm__'+t),P=(e,t)=>e.classList.remove(t),I=e=>{if('object'!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let n in e){let o=e[n];t[n]=I(o)}return t},L=()=>{const e={},{L:t,Y:n,Z:o}=m.o;for(const a of t)e[a]=G(o[a],w(n[a]));return e},O=(e,t)=>dispatchEvent(new CustomEvent(e,{detail:t})),R=(e,t,n,o)=>{e.addEventListener(t,n),o&&m.o.m.push({me:e,ge:t,be:n})},B=()=>{const e=m.t.cookie.expiresAfterDays;return C(e)?e(m.o.P):e},G=(e,t)=>{const n=e||[],o=t||[];return n.filter((e=>!b(o,e))).concat(o.filter((e=>!b(n,e))))},J=e=>{m.o.O=S(e),m.o.P=(()=>{let e='custom';const{O:t,L:n,R:o}=m.o,a=t.length;return a===n.length?e='all':a===o.length&&(e='necessary'),e})()},U=(e,t,n,o)=>{const a='accept-',{show:s,showPreferences:c,hide:r,hidePreferences:i,acceptCategory:l}=t,f=e||document,_=e=>D(f,`[data-cc="${e}"]`),u=(e,t)=>{M(e),l(t),i(),r()},p=_('show-preferencesModal'),g=_('show-consentModal'),b=_(a+'all'),v=_(a+'necessary'),y=_(a+'custom'),h=m.t.lazyHtmlGeneration;for(const e of p)k(e,'aria-haspopup','dialog'),R(e,d,(e=>{M(e),c()})),h&&(R(e,'mouseenter',(e=>{M(e),m.o.A||n(t,o)}),!0),R(e,'focus',(()=>{m.o.A||n(t,o)})));for(let e of g)k(e,'aria-haspopup','dialog'),R(e,d,(e=>{M(e),s(!0)}),!0);for(let e of b)R(e,d,(e=>{u(e,'all')}),!0);for(let e of y)R(e,d,(e=>{u(e)}),!0);for(let e of v)R(e,d,(e=>{u(e,[])}),!0)},$=(e,t,n)=>{e&&(n&&(e.tabIndex=-1),e.focus()),t&&(m.o.K=1===t?m.ae.ve:m.ae.ye,m.o.W=1===t?m.o.$:m.o.q),n&&e&&e.removeAttribute('tabindex')};let z;const q=e=>{clearTimeout(z),e?F(m.ae.he,a):z=setTimeout((()=>{P(m.ae.he,a)}),500)},K=['M 19.5 4.5 L 4.5 19.5 M 4.5 4.501 L 19.5 19.5','M 3.572 13.406 L 8.281 18.115 L 20.428 5.885','M 21.999 6.94 L 11.639 17.18 L 2.001 6.82 '],Q=(e=0,t=1.5)=>`<svg viewBox="0 0 24 24" stroke-width="${t}"><path d="${K[e]}"/></svg>`,W=['[href]',r,'input','details','[tabindex]'].map((e=>e+':not([tabindex="-1"])')).join(','),X=e=>{const{o:t,ae:n}=m,o=(e,t)=>{const n=D(e,W);t[0]=n[0],t[1]=n[n.length-1]};1===e&&t.D&&o(n.Ce,t.$),2===e&&t.A&&o(n.we,t.q)},Y=(e,t,n)=>{const{fe:o,de:a,le:s,ue:c,pe:r,_e:i}=m.re,l=m.ie,d={cookie:m.o.p};if(t){const o={modalName:t};return e===l._e?C(i)&&i(o):e===l.ue?C(c)&&c(o):(o.modal=n,C(r)&&r(o)),O(e,o)}e===l.le?C(s)&&s(I(d)):e===l.de?C(a)&&a(I(d)):(d.changedCategories=m.o.V,d.changedServices=m.o.te,C(o)&&o(I(d))),O(e,I(d))},Z=e=>{const{Z:t,te:n,L:o,Y:a,oe:c,p:r,V:i}=m.o;for(const e of o){const o=n[e]||t[e]||[];for(const n of o){const o=a[e][n];if(!o)continue;const{onAccept:s,onReject:c}=o;!o.Se&&b(t[e],n)&&C(s)?(o.Se=!0,s()):o.Se&&!b(t[e],n)&&C(c)&&(o.Se=!1,c())}}if(!m.t.manageScriptTags)return;const l=c,d=e||r.categories||[],f=(e,o)=>{if(o>=e.length)return;const a=c[o];if(a.xe)return f(e,o+1);const r=a.Me,l=a.De,_=a.Te,u=b(d,l),p=!!_&&b(t[l],_);if(!_&&!a.Ee&&u||!_&&a.Ee&&!u&&b(i,l)||_&&!a.Ee&&p||_&&a.Ee&&!p&&b(n[l]||[],_)){a.xe=!0;const t=N(r,'type',!0);A(r,'type',!!t),A(r,s);let n=N(r,'src',!0);n&&A(r,'src',!0);const c=E('script');c.textContent=r.innerHTML;for(const{nodeName:e}of r.attributes)k(c,e,r[e]||N(r,e));t&&(c.type=t),n?c.src=n:n=r.src;const i=!!n&&(!t||['text/javascript','module'].includes(t));if(i&&(c.onload=c.onerror=()=>{f(e,++o)}),r.replaceWith(c),i)return}f(e,++o)};f(l,0)},ee='bottom',te='left',ne='center',oe='right',ae='inline',se='wide',ce='pm--',re=['middle','top',ee],ie=[te,ne,oe],le={box:{ke:[se,ae],Ae:re,Ne:ie,He:ee,Fe:oe},cloud:{ke:[ae],Ae:re,Ne:ie,He:ee,Fe:ne},bar:{ke:[ae],Ae:re.slice(1),Ne:[],He:ee,Fe:''}},de={box:{ke:[],Ae:[],Ne:[],He:'',Fe:''},bar:{ke:[se],Ae:[],Ne:[te,oe],He:'',Fe:te}},fe=e=>{const t=m.o.i.guiOptions,n=t&&t.consentModal,o=t&&t.preferencesModal;0===e&&_e(m.ae.Ce,le,n,'cm--','box','cm'),1===e&&_e(m.ae.we,de,o,ce,'box','pm')},_e=(e,t,n,o,a,s)=>{e.className=s;const c=n&&n.layout,r=n&&n.position,i=n&&n.flipButtons,l=n&&!1!==n.equalWeightButtons,d=c&&c.split(' ')||[],f=d[0],_=d[1],u=f in t?f:a,p=t[u],g=b(p.ke,_)&&_,v=r&&r.split(' ')||[],y=v[0],h=o===ce?v[0]:v[1],C=b(p.Ae,y)?y:p.He,w=b(p.Ne,h)?h:p.Fe,S=t=>F(e,o+t);S(u),S(g),S(C),S(w),i&&S('flip');const x=s+'__btn--secondary';if('cm'===s){const{Ve:e,je:t}=m.ae;e&&(l?P(e,x):F(e,x)),t&&(l?P(t,x):F(t,x))}else{const{Pe:e}=m.ae;e&&(l?P(e,x):F(e,x))}},ue=(e,t)=>{const n=m.o,o=m.ae,{hide:a,hidePreferences:s,acceptCategory:_}=e,p=e=>{_(e),s(),a()},g=n.u&&n.u.preferencesModal;if(!g)return;const b=g.title,v=g.closeIconLabel,C=g.acceptAllBtn,S=g.acceptNecessaryBtn,x=g.savePreferencesBtn,M=g.sections,D=C||S||x;if(o.ye)o.Ie=E(c),j(o.Ie,'body');else{o.ye=E(c),F(o.ye,'pm-wrapper'),o.ye.tabIndex=-1;const e=E('div');F(e,'pm-overlay'),H(o.ye,e),R(e,d,s),o.we=E(c),o.we.style.visibility='hidden',F(o.we,'pm'),k(o.we,'role','dialog'),k(o.we,i,!0),k(o.we,'aria-modal',!0),k(o.we,'aria-labelledby','pm__title'),R(o.he,'keydown',(e=>{27===e.keyCode&&s()}),!0),o.Le=E(c),j(o.Le,'header'),o.Oe=E(c),j(o.Oe,'title'),o.Oe.id='pm__title',k(o.Oe,'role','heading'),k(o.Oe,'aria-level','2'),o.Re=E(r),j(o.Re,'close-btn'),k(o.Re,'aria-label',g.closeIconLabel||''),R(o.Re,d,s),o.Be=E('span'),o.Be.innerHTML=Q(),H(o.Re,o.Be),o.Ge=E(c),j(o.Ge,'body'),o.Je=E(c),j(o.Je,'footer');var T=E(c);F(T,'btns');var A=E(c),N=E(c);j(A,l),j(N,l),H(o.Je,A),H(o.Je,N),H(o.Le,o.Oe),H(o.Le,o.Re),H(o.we,o.Le),H(o.we,o.Ge),D&&H(o.we,o.Je),H(o.ye,o.we)}let V;b&&(o.Oe.innerHTML=b,v&&k(o.Re,'aria-label',v)),M&&M.forEach(((e,t)=>{const a=e.title,s=e.description,l=e.linkedCategory,f=l&&n.I[l],_=e.cookieTable,u=_&&_.body,p=_&&_.caption,m=u&&u.length>0,b=!!f,v=b&&n.Y[l],C=h(v)&&w(v)||[],S=b&&(!!s||!!m||w(v).length>0);var x=E(c);if(j(x,'section'),S||s){var M=E(c);j(M,'section-desc-wrapper')}let D=C.length;if(S&&D>0){const e=E(c);j(e,'section-services');for(const t of C){const n=v[t],o=n&&n.label||t,a=E(c),s=E(c),r=E(c),i=E(c);j(a,'service'),j(i,'service-title'),j(s,'service-header'),j(r,'service-icon');const d=pe(o,t,f,!0,l);i.innerHTML=o,H(s,r),H(s,i),H(a,s),H(a,d),H(e,a)}H(M,e)}if(a){var T=E(c),A=E(b?r:c);if(j(T,'section-title-wrapper'),j(A,'section-title'),A.innerHTML=a,H(T,A),b){const e=E('span');e.innerHTML=Q(2,3.5),j(e,'section-arrow'),H(T,e),x.className+='--toggle';const t=pe(a,l,f);let n=g.serviceCounterLabel;if(D>0&&y(n)){let e=E('span');j(e,'badge'),j(e,'service-counter'),k(e,i,!0),k(e,'data-servicecounter',D),n&&(n=n.split('|'),n=n.length>1&&D>1?n[1]:n[0],k(e,'data-counterlabel',n)),e.innerHTML=D+(n?' '+n:''),H(A,e)}if(S){j(x,'section--expandable');var N=l+'-desc';k(A,'aria-expanded',!1),k(A,'aria-controls',N)}H(T,t)}else k(A,'role','heading'),k(A,'aria-level','3');H(x,T)}if(s){var I=E(c);j(I,'section-desc'),I.innerHTML=s,H(M,I)}if(S&&(k(M,i,'true'),M.id=N,((e,t,n)=>{R(A,d,(()=>{t.classList.contains('is-expanded')?(P(t,'is-expanded'),k(n,'aria-expanded','false'),k(e,i,'true')):(F(t,'is-expanded'),k(n,'aria-expanded','true'),k(e,i,'false'))}))})(M,x,A),m)){const e=E('table'),n=E('thead'),a=E('tbody');if(p){const t=E('caption');j(t,'table-caption'),t.innerHTML=p,e.appendChild(t)}j(e,'section-table'),j(n,'table-head'),j(a,'table-body');const s=_.headers,r=w(s),i=o.Ue.createDocumentFragment(),l=E('tr');for(const e of r){const n=s[e],o=E('th');o.id='cc__row-'+n+t,k(o,'scope','col'),j(o,'table-th'),o.innerHTML=n,H(i,o)}H(l,i),H(n,l);const d=o.Ue.createDocumentFragment();for(const e of u){const n=E('tr');j(n,'table-tr');for(const o of r){const a=s[o],r=e[o],i=E('td'),l=E(c);j(i,'table-td'),k(i,'data-column',a),k(i,'headers','cc__row-'+a+t),l.insertAdjacentHTML('beforeend',r),H(i,l),H(n,i)}H(d,n)}H(a,d),H(e,n),H(e,a),H(M,e)}(S||s)&&H(x,M);const L=o.Ie||o.Ge;b?(V||(V=E(c),j(V,'section-toggles')),V.appendChild(x)):V=null,H(L,V||x)})),(C||S)&&(S&&(o.Pe||(o.Pe=E(r),j(o.Pe,'btn'),k(o.Pe,f,'necessary'),H(A,o.Pe),R(o.Pe,d,(()=>p([])))),o.Pe.innerHTML=S),C&&(o.$e||(o.$e=E(r),j(o.$e,'btn'),k(o.$e,f,'all'),H(A,o.$e),R(o.$e,d,(()=>p('all')))),o.$e.innerHTML=C)),x&&(o.ze||(o.ze=E(r),j(o.ze,'btn'),j(o.ze,'btn--secondary'),k(o.ze,f,'save'),H(N,o.ze),R(o.ze,d,(()=>p()))),o.ze.innerHTML=x),o.Ie&&(o.we.replaceChild(o.Ie,o.Ge),o.Ge=o.Ie),fe(1),n.A||(n.A=!0,Y(m.ie.pe,u,o.we),t(e),H(o.qe,o.ye),setTimeout((()=>F(o.ye,'cc--anim')),100)),X(2)};function pe(e,n,o,a,c){const r=m.o,l=m.ae,f=E('label'),_=E('input'),u=E('span'),p=E('span'),g=E('span'),v=E('span'),y=E('span');if(v.innerHTML=Q(1,3),y.innerHTML=Q(0,3),_.type='checkbox',F(f,'section__toggle-wrapper'),F(_,'section__toggle'),F(v,'toggle__icon-on'),F(y,'toggle__icon-off'),F(u,'toggle__icon'),F(p,'toggle__icon-circle'),F(g,'toggle__label'),k(u,i,'true'),a?(F(f,'toggle-service'),k(_,s,c),l.ce[c][n]=_):l.se[n]=_,a?(e=>{R(_,'change',(()=>{const t=l.ce[e],n=l.se[e];r.ee[e]=[];for(let n in t){const o=t[n];o.checked&&r.ee[e].push(o.value)}n.checked=r.ee[e].length>0}))})(c):(e=>{R(_,d,(()=>{const t=l.ce[e],n=_.checked;r.ee[e]=[];for(let o in t)t[o].checked=n,n&&r.ee[e].push(o)}))})(n),_.value=n,g.textContent=e.replace(/<.*>.*<\/.*>/gm,''),H(p,y),H(p,v),H(u,p),r.M)(o.readOnly||r.i.mode===t&&o.enabled)&&(_.checked=!0);else if(a){const e=r.Z[c];_.checked=o.readOnly||b(e,n)}else b(r.O,n)&&(_.checked=!0);return o.readOnly&&(_.disabled=!0),H(f,_),H(f,u),H(f,g),f}const me=()=>{const e=E('span');return m.ae.Ke||(m.ae.Ke=e),e},ge=(e,t)=>{const n=m.o,o=m.ae,{hide:a,showPreferences:s,acceptCategory:u}=e,p=n.u&&n.u.consentModal;if(!p)return;const g=p.acceptAllBtn,b=p.acceptNecessaryBtn,v=p.showPreferencesBtn,y=p.closeIconLabel,h=p.footer,C=p.label,w=p.title,S=e=>{a(),u(e)};if(!o.ve){o.ve=E(c),o.Ce=E(c),o.Qe=E(c),o.We=E(c),o.Xe=E(c),F(o.ve,'cm-wrapper'),F(o.Ce,'cm'),V(o.Qe,'body'),V(o.We,'texts'),V(o.Xe,'btns'),o.ve.tabIndex=-1,k(o.Ce,'role','dialog'),k(o.Ce,'aria-modal','true'),k(o.Ce,i,'false'),k(o.Ce,'aria-describedby','cm__desc'),C?k(o.Ce,'aria-label',C):w&&k(o.Ce,'aria-labelledby','cm__title'),o.Ce.style.visibility='hidden';const e='box',t=n.i.guiOptions,a=t&&t.consentModal,s=(a&&a.layout||e).split(' ')[0]===e;w&&y&&s&&(o.je||(o.je=E(r),o.je.innerHTML=Q(),V(o.je,'btn'),V(o.je,'btn--close'),R(o.je,d,(()=>{S([])})),H(o.Qe,o.je)),k(o.je,'aria-label',y)),H(o.Qe,o.We),(g||b||v)&&H(o.Qe,o.Xe),H(o.Ce,o.Qe),H(o.ve,o.Ce)}w&&(o.Ye||(o.Ye=E(c),o.Ye.className=o.Ye.id='cm__title',k(o.Ye,'role','heading'),k(o.Ye,'aria-level','2'),H(o.We,o.Ye)),o.Ye.innerHTML=w);let x=p.description;if(x&&(n.H&&(x=x.replace('{{revisionMessage}}',n.F?'':p.revisionMessage||'')),o.Ze||(o.Ze=E(c),o.Ze.className=o.Ze.id='cm__desc',H(o.We,o.Ze)),o.Ze.innerHTML=x),g&&(o.et||(o.et=E(r),H(o.et,me()),V(o.et,'btn'),k(o.et,f,'all'),R(o.et,d,(()=>{S('all')}))),o.et.firstElementChild.innerHTML=g),b&&(o.Ve||(o.Ve=E(r),H(o.Ve,me()),V(o.Ve,'btn'),k(o.Ve,f,'necessary'),R(o.Ve,d,(()=>{S([])}))),o.Ve.firstElementChild.innerHTML=b),v&&(o.tt||(o.tt=E(r),H(o.tt,me()),V(o.tt,'btn'),V(o.tt,'btn--secondary'),k(o.tt,f,'show'),R(o.tt,'mouseenter',(()=>{n.A||ue(e,t)})),R(o.tt,d,s)),o.tt.firstElementChild.innerHTML=v),o.nt||(o.nt=E(c),V(o.nt,l),b&&H(o.nt,o.Ve),g&&H(o.nt,o.et),(g||b)&&H(o.Qe,o.nt),H(o.Xe,o.nt)),o.tt&&!o.ot&&(o.ot=E(c),o.Ve&&o.et?(V(o.ot,l),H(o.ot,o.tt),H(o.Xe,o.ot)):(H(o.nt,o.tt),V(o.nt,l+'--uneven'))),h){if(!o.st){let e=E(c),t=E(c);o.st=E(c),V(e,'footer'),V(t,'links'),V(o.st,'link-group'),H(t,o.st),H(e,t),H(o.Ce,e)}o.st.innerHTML=h}fe(0),n.D||(n.D=!0,Y(m.ie.pe,_,o.Ce),t(e),H(o.qe,o.ve),setTimeout((()=>F(o.ve,'cc--anim')),100)),X(1),U(o.Qe,e,ue,t)},be=e=>y(e)&&e in m.o._,ve=()=>m.o.l||m.o.i.language.default,ye=e=>{e&&(m.o.l=e)},he=async e=>{const t=m.o;let n=be(e)?e:ve(),o=t._[n];if(!o)return!1;if(y(o)){const e=await(async e=>{try{const t=await fetch(e);return!(!t||!t.ok)&&await t.json()}catch(e){return!1}})(o);if(!e)return!1;o=e}return t.u=o,ye(n),!0},Ce=()=>{let e=m.o.i.language.rtl,t=m.ae.qe;e&&t&&(v(e)||(e=[e]),b(e,m.o.l)?F(t,'cc--rtl'):P(t,'cc--rtl'))},we=()=>{const e=m.ae;if(!e.qe){e.qe=E(c),e.qe.id='cc-main',Ce();let t=m.o.i.root;t&&y(t)&&(t=document.querySelector(t)),(t||e.Ue.body).appendChild(e.qe)}},Se=e=>{const{hostname:t,protocol:n}=location,{name:o,path:a,domain:s,sameSite:c}=m.t.cookie,r=encodeURIComponent(JSON.stringify(m.o.p)),i=e?(()=>{const e=m.o.C,t=e?new Date-e:0;return 864e5*B()-t})():864e5*B(),l=new Date;l.setTime(l.getTime()+i);let d=o+'='+r+(0!==i?'; expires='+l.toUTCString():'')+'; Path='+a+'; SameSite='+c;b(t,'.')&&(d+='; Domain='+s),'https:'===n&&(d+='; Secure'),document.cookie=d,m.o.p},xe=(e,t,n)=>{const o=n||m.t.cookie.domain,a=t||m.t.cookie.path,s='www.'===o.slice(0,4),c=s&&o.substring(4),r=(e,t)=>{document.cookie=e+'=; path='+a+(t?'; domain=.'+t:'')+'; expires=Thu, 01 Jan 1970 00:00:01 GMT;'};for(const t of e)r(t),r(t,o),s&&r(t,c)},Me=e=>(e=>{let t;try{t=JSON.parse(decodeURIComponent(e))}catch(e){t={}}return t})(De(e||m.t.cookie.name,!0)),De=(e,t)=>{const n=document.cookie.match('(^|;)\\s*'+e+'\\s*=\\s*([^;]+)');return n?t?n.pop():e:''},Te=e=>{const t=document.cookie.split(/;\s*/),n=[];for(const o of t){let t=o.split('=')[0];if(e)try{e.test(t)&&n.push(t)}catch(e){}else n.push(t)}return n},Ee=(n,o=[])=>{((e,t)=>{const{L:n,O:o,R:a,A:s,ee:c,Y:r}=m.o;let i=[];if(e){v(e)?i.push(...e):y(e)&&(i='all'===e?n:[e]);for(const e of n)c[e]=b(i,e)?w(r[e]):[]}else i=s?(()=>{const e=m.ae.se;if(!e)return[];let t=[];for(let n in e)e[n].checked&&t.push(n);return t})():o;i=i.filter((e=>!b(n,e)||!b(t,e))),i.push(...a),J(i)})(n,o),(e=>{const t=m.o,{ee:n,R:o,Z:a,Y:s,L:c}=t,r=c;t.ne=I(a);for(const e of r){const t=s[e],c=w(t),r=n[e]&&n[e].length>0,i=b(o,e);if(0!==c.length){if(a[e]=[],i)a[e].push(...c);else if(r){const t=n[e];a[e].push(...t)}else a[e]=[];a[e]=S(a[e])}}})(),(()=>{const n=m.o;m.t.mode===t&&n.M?n.V=G(n.B,n.O):n.V=G(n.O,n.p.categories);let o=n.V.length>0,a=!1;for(const e of n.L)n.te[e]=G(n.Z[e],n.ne[e]),n.te[e].length>0&&(a=!0);const s=m.ae.se;for(let e in s)s[e].checked=b(n.O,e);for(const e of n.L){const t=m.ae.ce[e],o=n.Z[e];for(const e in t)t[e].checked=b(o,e)}n.h||(n.h=new Date),n.S||(n.S=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),n.p={categories:I(n.O),revision:m.t.revision,data:n.v,consentTimestamp:n.h.toISOString(),consentId:n.S,services:I(n.Z)};let c=!1;(n.M||o||a)&&(n.M&&(n.M=!1,c=!0),n.C?n.C=new Date:n.C=n.h,n.p.lastConsentTimestamp=n.C.toISOString(),Se(),m.t.autoClearCookies&&(c||!n.M&&o)&&(e=>{const t=m.o,n=Te();t.j=!1;let o=e?t.L:t.V;o=o.filter((e=>{let n=t.I[e];return!!n&&!n.readOnly&&!!n.autoClear}));for(const a of o){const o=t.I[a].autoClear,s=o&&o.cookies||[],c=b(t.V,a),r=!b(t.O,a),i=c&&r;if(e&&r||!e&&i){!0===o.reloadPage&&i&&(t.j=!0);for(const e of s){let t=[];const o=e.name,a=e.domain,s=e.path;if(o instanceof RegExp)for(let e of n)o.test(e)&&t.push(e);else{let e=g(n,o);e>-1&&t.push(n[e])}t.length>0&&xe(t,s,a)}}}})(c),Z()),c&&(Y(m.ie.le),Y(m.ie.de),m.t.mode===e)||((o||a)&&Y(m.ie.fe),n.j&&location.reload())})()},ke=e=>{const t=m.o.M?[]:m.o.O;return b(t,e)},Ae=(e,t)=>{const{L:n,Y:o}=m.o;if(!(e&&t&&y(t)&&b(n,t)&&0!==w(o[t]).length))return!1;((e,t)=>{const n=m.o,{Y:o,ee:a,A:s}=n,c=m.ae.ce[t]||{},r=m.ae.se[t]||{},i=w(o[t]);if(a[t]=[],y(e)){if('all'===e){if(a[t].push(...i),s)for(let e in c)c[e].checked=!0,T(c[e])}else if(b(i,e)&&a[t].push(e),s)for(let t in c)c[t].checked=e===t,T(c[t])}else if(v(e))for(let n of i){const o=b(e,n);o&&a[t].push(n),s&&(c[n].checked=o,T(c[n]))}const l=0===a[t].length;n.O=l?n.O.filter((e=>e!==t)):S([...n.O,t]),s&&(r.checked=!l,T(r))})(e,t),Ee()},Ne=(e,t)=>{const n=m.o.M?[]:m.o.Z[t];return b(n,e)},He=e=>''!==De(e,!0),Fe=(e,t,n)=>{let o=[];const a=e=>{if(y(e)){let t=De(e);''!==t&&o.push(t)}else o.push(...Te(e))};if(v(e))for(let t of e)a(t);else a(e);xe(o,t,n)},Ve=e=>{const{ae:t,o:o}=m;if(!o.T){if(!o.D){if(!e)return;ge(Le,we)}o.T=!0,o.J=x(),o.g&&q(!0),F(t.he,n),k(t.Ce,i,'false'),$(t.ve,1),Y(m.ie._e,_)}},je=()=>{const{ae:e,o:t,ie:o}=m;t.T&&(t.T=!1,t.g&&q(),$(e.Ke,!1,!0),P(e.he,n),k(e.Ce,i,'true'),$(t.J),t.J=null,Y(o.ue,_))},Pe=()=>{const e=m.o;e.k||(e.A||ue(Le,we),e.k=!0,F(m.ae.he,o),k(m.ae.we,i,'false'),e.T?e.U=x():e.J=x(),$(m.ae.ye,2),Y(m.ie._e,u))},Ie=()=>{const e=m.o;e.k&&(e.k=!1,(()=>{const e=$e(),n=m.o.I,o=m.ae.se,a=m.ae.ce,s=e=>m.o.i.mode===t&&!!n[e].enabled;for(const t in o){const c=!!n[t].readOnly;o[t].checked=c||(e?ke(t):s(t));for(const n in a[t])a[t][n].checked=c||(e?Ne(n,t):s(t))}})(),$(m.ae.Be,!1,!0),P(m.ae.he,o),k(m.ae.we,i,'true'),e.T?($(e.U,1),e.U=null):($(e.J),e.J=null),Y(m.ie.ue,u))};var Le={show:Ve,hide:je,showPreferences:Pe,hidePreferences:Ie,acceptCategory:Ee};const Oe=async(e,t)=>{if(!be(e))return!1;const n=m.o;return!(e===ve()&&!0!==t||!await he(e)||(ye(e),n.D&&ge(Le,we),n.A&&ue(Le,we),Ce(),0))},Re=()=>{const{P:e,Z:t}=m.o,{accepted:n,rejected:o}=(()=>{const{M:e,O:t,L:n}=m.o;return{accepted:t,rejected:e?[]:n.filter((e=>!b(t,e)))}})();return I({acceptType:e,acceptedCategories:n,rejectedCategories:o,acceptedServices:t,rejectedServices:L()})},Be=(e,t)=>{let n=document.querySelector('script[src="'+e+'"]');return new Promise((o=>{if(n)return o(!0);if(n=E('script'),h(t))for(const e in t)k(n,e,t[e]);n.onload=()=>o(!0),n.onerror=()=>{n.remove(),o(!1)},n.src=e,H(document.head,n)}))},Ge=e=>{let t,n=e.value,o=e.mode,a=!1;const s=m.o;if('update'===o){s.v=t=Je('data');const e=typeof t==typeof n;if(e&&'object'==typeof t){!t&&(t={});for(let e in n)t[e]!==n[e]&&(t[e]=n[e],a=!0)}else!e&&t||t===n||(t=n,a=!0)}else t=n,a=!0;return a&&(s.v=t,s.p.data=t,Se(!0)),a},Je=(e,t)=>{const n=Me(t);return e?n[e]:n},Ue=e=>{const t=m.t,n=m.o.i;return e?t[e]||n[e]:{...t,...n,cookie:{...t.cookie}}},$e=()=>!m.o.M,ze=async e=>{const{o:n,t:o,ie:a}=m,c=window;if(!c._ccRun){if(c._ccRun=!0,(e=>{const{ae:n,t:o,o:a}=m,c=o,r=a,{cookie:i}=c,l=m.re,d=e.cookie,f=e.categories,_=w(f)||[],u=navigator,p=document;n.Ue=p,n.he=p.documentElement,i.domain=location.hostname,r.i=e,r.I=f,r.L=_,r._=e.language.translations,r.g=!!e.disablePageInteraction,l.le=e.onFirstConsent,l.de=e.onConsent,l.fe=e.onChange,l.ue=e.onModalHide,l._e=e.onModalShow,l.pe=e.onModalReady;const{mode:g,autoShow:v,lazyHtmlGeneration:y,autoClearCookies:C,revision:S,manageScriptTags:x,hideFromBots:M}=e;g===t&&(c.mode=g),'boolean'==typeof C&&(c.autoClearCookies=C),'boolean'==typeof x&&(c.manageScriptTags=x),'number'==typeof S&&S>=0&&(c.revision=S,r.H=!0),'boolean'==typeof v&&(c.autoShow=v),'boolean'==typeof y&&(c.lazyHtmlGeneration=y),!1===M&&(c.hideFromBots=!1),!0===c.hideFromBots&&u&&(r.G=u.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(u.userAgent)||u.webdriver),h(d)&&(c.cookie={...i,...d}),c.autoClearCookies,r.H,c.manageScriptTags,(e=>{const{I:t,Y:n,Z:o,ee:a,R:s}=m.o;for(let c of e){const e=t[c],r=e.services||{},i=h(r)&&w(r)||[];n[c]={},o[c]=[],a[c]=[],e.readOnly&&(s.push(c),o[c]=i),m.ae.ce[c]={};for(let e of i){const t=r[e];t.Se=!1,n[c][e]=t}}})(_),(()=>{if(!m.t.manageScriptTags)return;const e=m.o,t=D(document,'script['+s+']');for(const n of t){let t=N(n,s),o=n.dataset.service||'',a=!1;if(t&&'!'===t.charAt(0)&&(t=t.slice(1),a=!0),'!'===o.charAt(0)&&(o=o.slice(1),a=!0),b(e.L,t)&&(e.oe.push({Me:n,xe:!1,Ee:a,De:t,Te:o}),o)){const n=e.Y[t];n[o]||(n[o]={Se:!1})}}})(),ye((()=>{const e=m.o.i.language.autoDetect;if(e){let t;if('browser'===e?t=navigator.language.slice(0,2).toLowerCase():'document'===e&&(t=document.documentElement.lang),be(t))return t}return ve()})())})(e),n.G)return;(()=>{const e=m.o,n=m.t,o=Me(),{categories:a,services:s,consentId:c,consentTimestamp:r,lastConsentTimestamp:i,data:l,revision:d}=o,f=v(a);e.p=o,e.S=c;const _=!!c&&y(c);e.h=r,e.h&&(e.h=new Date(r)),e.C=i,e.C&&(e.C=new Date(i)),e.v=void 0!==l?l:null,e.H&&_&&d!==n.revision&&(e.F=!1),e.M=!(_&&e.F&&e.h&&e.C&&f),e.M,e.M?n.mode===t&&((()=>{const e=m.o;for(const n of e.L){const o=e.I[n];if(o.readOnly||o.enabled&&e.i.mode===t){e.B.push(n);const t=e.Y[n]||{};for(let o in t)e.Z[n].push(o)}}})(),e.O=[...e.B]):(e.Z={...e.Z,...s},J([...e.R,...a])),e.ee={...e.Z}})();const i=$e();if(!await he())return!1;if(U(null,r=Le,ue,we),m.o.M&&ge(r,we),m.t.lazyHtmlGeneration||ue(r,we),(()=>{const e=m.ae,t=m.o;R(e.he,'keydown',(e=>{if('Tab'!==e.key)return;if(!t.k&&!t.T)return;const n=t.W,o=t.K;if(n.length>0){const t=x();e.shiftKey?t!==n[0]&&o.contains(t)||(M(e),$(n[1])):t!==n[1]&&o.contains(t)||(M(e),$(n[0]))}}),!0)})(),o.autoShow&&!i&&Ve(!0),i)return Z(),Y(a.de);o.mode===t&&Z(n.B)}var r},qe=e=>{const{qe:t,he:s}=m.ae,{name:c,path:r,domain:i}=m.t.cookie;e&&Fe(c,r,i);for(const{me:e,ge:t,be:n}of m.o.m)e.removeEventListener(t,n);t&&t.remove(),s&&s.classList.remove(a,o,n);const l=new p;for(const e in m)m[e]=l[e];window._ccRun=!1};export{Ee as acceptCategory,Ae as acceptService,ke as acceptedCategory,Ne as acceptedService,Fe as eraseCookies,Ue as getConfig,Je as getCookie,Re as getUserPreferences,je as hide,Ie as hidePreferences,Be as loadScript,qe as reset,ze as run,Ge as setCookieData,Oe as setLanguage,Ve as show,Pe as showPreferences,$e as validConsent,He as validCookie};
const e='opt-in',t='opt-out',n='show--consent',o='show--preferences',a='disable--interaction',s='data-category',c='div',r='button',i='aria-hidden',l='btn-group',d='click',f='data-role',_='consentModal',u='preferencesModal';class p{constructor(){this.t={mode:e,revision:0,autoShow:!0,lazyHtmlGeneration:!0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:'cc_cookie',expiresAfterDays:182,domain:'',path:'/',sameSite:'Lax'}},this.o={i:{},l:'',_:{},u:{},p:{},m:[],g:!1,v:null,h:null,C:null,S:'',M:!0,D:!1,T:!1,k:!1,A:!1,N:[],H:!1,F:!0,V:[],j:!1,P:'',I:!1,L:[],O:[],R:[],B:[],G:!1,J:!1,U:!1,$:[],q:[],K:null,W:[],X:[],Y:{},Z:{},ee:{},te:{},ne:{},oe:[]},this.ae={se:{},ce:{}},this.re={},this.ie={le:'cc:onFirstConsent',de:'cc:onConsent',fe:'cc:onChange',_e:'cc:onModalShow',ue:'cc:onModalHide',pe:'cc:onModalReady'}}}const m=new p,g=(e,t)=>e.indexOf(t),b=(e,t)=>-1!==g(e,t),v=e=>Array.isArray(e),y=e=>'string'==typeof e,h=e=>!!e&&'object'==typeof e&&!v(e),C=e=>'function'==typeof e,w=e=>Object.keys(e),S=e=>Array.from(new Set(e)),x=()=>document.activeElement,M=e=>e.preventDefault(),D=(e,t)=>e.querySelectorAll(t),T=e=>e.dispatchEvent(new Event('change')),E=e=>{const t=document.createElement(e);return e===r&&(t.type=e),t},k=(e,t,n)=>e.setAttribute(t,n),A=(e,t,n)=>{e.removeAttribute(n?'data-'+t:t)},N=(e,t,n)=>e.getAttribute(n?'data-'+t:t),H=(e,t)=>e.appendChild(t),F=(e,t)=>e.classList.add(t),V=(e,t)=>F(e,'cm__'+t),j=(e,t)=>F(e,'pm__'+t),P=(e,t)=>e.classList.remove(t),I=e=>{if('object'!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let n in e){let o=e[n];t[n]=I(o)}return t},L=()=>{const e={},{L:t,Y:n,Z:o}=m.o;for(const a of t)e[a]=G(o[a],w(n[a]));return e},O=(e,t)=>dispatchEvent(new CustomEvent(e,{detail:t})),R=(e,t,n,o)=>{e.addEventListener(t,n),o&&m.o.m.push({me:e,ge:t,be:n})},B=()=>{const e=m.t.cookie.expiresAfterDays;return C(e)?e(m.o.P):e},G=(e,t)=>{const n=e||[],o=t||[];return n.filter((e=>!b(o,e))).concat(o.filter((e=>!b(n,e))))},J=e=>{m.o.O=S(e),m.o.P=(()=>{let e='custom';const{O:t,L:n,R:o}=m.o,a=t.length;return a===n.length?e='all':a===o.length&&(e='necessary'),e})()},U=(e,t,n,o)=>{const a='accept-',{show:s,showPreferences:c,hide:r,hidePreferences:i,acceptCategory:l}=t,f=e||document,_=e=>D(f,`[data-cc="${e}"]`),u=(e,t)=>{M(e),l(t),i(),r()},p=_('show-preferencesModal'),g=_('show-consentModal'),b=_(a+'all'),v=_(a+'necessary'),y=_(a+'custom'),h=m.t.lazyHtmlGeneration;for(const e of p)k(e,'aria-haspopup','dialog'),R(e,d,(e=>{M(e),c()})),h&&(R(e,'mouseenter',(e=>{M(e),m.o.A||n(t,o)}),!0),R(e,'focus',(()=>{m.o.A||n(t,o)})));for(let e of g)k(e,'aria-haspopup','dialog'),R(e,d,(e=>{M(e),s(!0)}),!0);for(let e of b)R(e,d,(e=>{u(e,'all')}),!0);for(let e of y)R(e,d,(e=>{u(e)}),!0);for(let e of v)R(e,d,(e=>{u(e,[])}),!0)},$=(e,t,n)=>{e&&(n&&(e.tabIndex=-1),e.focus()),t&&(m.o.K=1===t?m.ae.ve:m.ae.ye,m.o.W=1===t?m.o.$:m.o.q),n&&e&&e.removeAttribute('tabindex')};let z;const q=e=>{clearTimeout(z),e?F(m.ae.he,a):z=setTimeout((()=>{P(m.ae.he,a)}),500)},K=['M 19.5 4.5 L 4.5 19.5 M 4.5 4.501 L 19.5 19.5','M 3.572 13.406 L 8.281 18.115 L 20.428 5.885','M 21.999 6.94 L 11.639 17.18 L 2.001 6.82 '],Q=(e=0,t=1.5)=>`<svg viewBox="0 0 24 24" stroke-width="${t}"><path d="${K[e]}"/></svg>`,W=['[href]',r,'input','details','[tabindex]'].map((e=>e+':not([tabindex="-1"])')).join(','),X=e=>{const{o:t,ae:n}=m,o=(e,t)=>{const n=D(e,W);t[0]=n[0],t[1]=n[n.length-1]};1===e&&t.D&&o(n.Ce,t.$),2===e&&t.A&&o(n.we,t.q)},Y=(e,t,n)=>{const{fe:o,de:a,le:s,ue:c,pe:r,_e:i}=m.re,l=m.ie,d={cookie:m.o.p};if(t){const o={modalName:t};return e===l._e?C(i)&&i(o):e===l.ue?C(c)&&c(o):(o.modal=n,C(r)&&r(o)),O(e,o)}e===l.le?C(s)&&s(I(d)):e===l.de?C(a)&&a(I(d)):(d.changedCategories=m.o.V,d.changedServices=m.o.te,C(o)&&o(I(d))),O(e,I(d))},Z=e=>{const{Z:t,te:n,L:o,Y:a,oe:c,p:r,V:i}=m.o;for(const e of o){const o=n[e]||t[e]||[];for(const n of o){const o=a[e][n];if(!o)continue;const{onAccept:s,onReject:c}=o;!o.Se&&b(t[e],n)&&C(s)?(o.Se=!0,s()):o.Se&&!b(t[e],n)&&C(c)&&(o.Se=!1,c())}}if(!m.t.manageScriptTags)return;const l=c,d=e||r.categories||[],f=(e,o)=>{if(o>=e.length)return;const a=c[o];if(a.xe)return f(e,o+1);const r=a.Me,l=a.De,_=a.Te,u=b(d,l),p=!!_&&b(t[l],_);if(!_&&!a.Ee&&u||!_&&a.Ee&&!u&&b(i,l)||_&&!a.Ee&&p||_&&a.Ee&&!p&&b(n[l]||[],_)){a.xe=!0;const t=N(r,'type',!0);A(r,'type',!!t),A(r,s);let n=N(r,'src',!0);n&&A(r,'src',!0);const c=E('script');c.textContent=r.innerHTML;for(const{nodeName:e}of r.attributes)k(c,e,r[e]||N(r,e));t&&(c.type=t),n?c.src=n:n=r.src;const i=!!n&&(!t||['text/javascript','module'].includes(t));if(i&&(c.onload=c.onerror=()=>{f(e,++o)}),r.replaceWith(c),i)return}f(e,++o)};f(l,0)},ee='bottom',te='left',ne='center',oe='right',ae='inline',se='wide',ce='pm--',re=['middle','top',ee],ie=[te,ne,oe],le={box:{ke:[se,ae],Ae:re,Ne:ie,He:ee,Fe:oe},cloud:{ke:[ae],Ae:re,Ne:ie,He:ee,Fe:ne},bar:{ke:[ae],Ae:re.slice(1),Ne:[],He:ee,Fe:''}},de={box:{ke:[],Ae:[],Ne:[],He:'',Fe:''},bar:{ke:[se],Ae:[],Ne:[te,oe],He:'',Fe:te}},fe=e=>{const t=m.o.i.guiOptions,n=t&&t.consentModal,o=t&&t.preferencesModal;0===e&&_e(m.ae.Ce,le,n,'cm--','box','cm'),1===e&&_e(m.ae.we,de,o,ce,'box','pm')},_e=(e,t,n,o,a,s)=>{e.className=s;const c=n&&n.layout,r=n&&n.position,i=n&&n.flipButtons,l=!n||!1!==n.equalWeightButtons,d=c&&c.split(' ')||[],f=d[0],_=d[1],u=f in t?f:a,p=t[u],g=b(p.ke,_)&&_,v=r&&r.split(' ')||[],y=v[0],h=o===ce?v[0]:v[1],C=b(p.Ae,y)?y:p.He,w=b(p.Ne,h)?h:p.Fe,S=t=>{t&&F(e,o+t)};S(u),S(g),S(C),S(w),i&&S('flip');const x=s+'__btn--secondary';if('cm'===s){const{Ve:e,je:t}=m.ae;e&&(l?P(e,x):F(e,x)),t&&(l?P(t,x):F(t,x))}else{const{Pe:e}=m.ae;e&&(l?P(e,x):F(e,x))}},ue=(e,t)=>{const n=m.o,o=m.ae,{hide:a,hidePreferences:s,acceptCategory:_}=e,p=e=>{_(e),s(),a()},g=n.u&&n.u.preferencesModal;if(!g)return;const b=g.title,v=g.closeIconLabel,C=g.acceptAllBtn,S=g.acceptNecessaryBtn,x=g.savePreferencesBtn,M=g.sections,D=C||S||x;if(o.ye)o.Ie=E(c),j(o.Ie,'body');else{o.ye=E(c),F(o.ye,'pm-wrapper'),o.ye.tabIndex=-1;const e=E('div');F(e,'pm-overlay'),H(o.ye,e),R(e,d,s),o.we=E(c),o.we.style.visibility='hidden',F(o.we,'pm'),k(o.we,'role','dialog'),k(o.we,i,!0),k(o.we,'aria-modal',!0),k(o.we,'aria-labelledby','pm__title'),R(o.he,'keydown',(e=>{27===e.keyCode&&s()}),!0),o.Le=E(c),j(o.Le,'header'),o.Oe=E(c),j(o.Oe,'title'),o.Oe.id='pm__title',k(o.Oe,'role','heading'),k(o.Oe,'aria-level','2'),o.Re=E(r),j(o.Re,'close-btn'),k(o.Re,'aria-label',g.closeIconLabel||''),R(o.Re,d,s),o.Be=E('span'),o.Be.innerHTML=Q(),H(o.Re,o.Be),o.Ge=E(c),j(o.Ge,'body'),o.Je=E(c),j(o.Je,'footer');var T=E(c);F(T,'btns');var A=E(c),N=E(c);j(A,l),j(N,l),H(o.Je,A),H(o.Je,N),H(o.Le,o.Oe),H(o.Le,o.Re),H(o.we,o.Le),H(o.we,o.Ge),D&&H(o.we,o.Je),H(o.ye,o.we)}let V;b&&(o.Oe.innerHTML=b,v&&k(o.Re,'aria-label',v)),M&&M.forEach(((e,t)=>{const a=e.title,s=e.description,l=e.linkedCategory,f=l&&n.I[l],_=e.cookieTable,u=_&&_.body,p=_&&_.caption,m=u&&u.length>0,b=!!f,v=b&&n.Y[l],C=h(v)&&w(v)||[],S=b&&(!!s||!!m||w(v).length>0);var x=E(c);if(j(x,'section'),S||s){var M=E(c);j(M,'section-desc-wrapper')}let D=C.length;if(S&&D>0){const e=E(c);j(e,'section-services');for(const t of C){const n=v[t],o=n&&n.label||t,a=E(c),s=E(c),r=E(c),i=E(c);j(a,'service'),j(i,'service-title'),j(s,'service-header'),j(r,'service-icon');const d=pe(o,t,f,!0,l);i.innerHTML=o,H(s,r),H(s,i),H(a,s),H(a,d),H(e,a)}H(M,e)}if(a){var T=E(c),A=E(b?r:c);if(j(T,'section-title-wrapper'),j(A,'section-title'),A.innerHTML=a,H(T,A),b){const e=E('span');e.innerHTML=Q(2,3.5),j(e,'section-arrow'),H(T,e),x.className+='--toggle';const t=pe(a,l,f);let n=g.serviceCounterLabel;if(D>0&&y(n)){let e=E('span');j(e,'badge'),j(e,'service-counter'),k(e,i,!0),k(e,'data-servicecounter',D),n&&(n=n.split('|'),n=n.length>1&&D>1?n[1]:n[0],k(e,'data-counterlabel',n)),e.innerHTML=D+(n?' '+n:''),H(A,e)}if(S){j(x,'section--expandable');var N=l+'-desc';k(A,'aria-expanded',!1),k(A,'aria-controls',N)}H(T,t)}else k(A,'role','heading'),k(A,'aria-level','3');H(x,T)}if(s){var I=E(c);j(I,'section-desc'),I.innerHTML=s,H(M,I)}if(S&&(k(M,i,'true'),M.id=N,((e,t,n)=>{R(A,d,(()=>{t.classList.contains('is-expanded')?(P(t,'is-expanded'),k(n,'aria-expanded','false'),k(e,i,'true')):(F(t,'is-expanded'),k(n,'aria-expanded','true'),k(e,i,'false'))}))})(M,x,A),m)){const e=E('table'),n=E('thead'),a=E('tbody');if(p){const t=E('caption');j(t,'table-caption'),t.innerHTML=p,e.appendChild(t)}j(e,'section-table'),j(n,'table-head'),j(a,'table-body');const s=_.headers,r=w(s),i=o.Ue.createDocumentFragment(),l=E('tr');for(const e of r){const n=s[e],o=E('th');o.id='cc__row-'+n+t,k(o,'scope','col'),j(o,'table-th'),o.innerHTML=n,H(i,o)}H(l,i),H(n,l);const d=o.Ue.createDocumentFragment();for(const e of u){const n=E('tr');j(n,'table-tr');for(const o of r){const a=s[o],r=e[o],i=E('td'),l=E(c);j(i,'table-td'),k(i,'data-column',a),k(i,'headers','cc__row-'+a+t),l.insertAdjacentHTML('beforeend',r),H(i,l),H(n,i)}H(d,n)}H(a,d),H(e,n),H(e,a),H(M,e)}(S||s)&&H(x,M);const L=o.Ie||o.Ge;b?(V||(V=E(c),j(V,'section-toggles')),V.appendChild(x)):V=null,H(L,V||x)})),C&&(o.$e||(o.$e=E(r),j(o.$e,'btn'),k(o.$e,f,'all'),H(A,o.$e),R(o.$e,d,(()=>p('all')))),o.$e.innerHTML=C),S&&(o.Pe||(o.Pe=E(r),j(o.Pe,'btn'),k(o.Pe,f,'necessary'),H(A,o.Pe),R(o.Pe,d,(()=>p([])))),o.Pe.innerHTML=S),x&&(o.ze||(o.ze=E(r),j(o.ze,'btn'),j(o.ze,'btn--secondary'),k(o.ze,f,'save'),H(N,o.ze),R(o.ze,d,(()=>p()))),o.ze.innerHTML=x),o.Ie&&(o.we.replaceChild(o.Ie,o.Ge),o.Ge=o.Ie),fe(1),n.A||(n.A=!0,Y(m.ie.pe,u,o.we),t(e),H(o.qe,o.ye),setTimeout((()=>F(o.ye,'cc--anim')),100)),X(2)};function pe(e,n,o,a,c){const r=m.o,l=m.ae,f=E('label'),_=E('input'),u=E('span'),p=E('span'),g=E('span'),v=E('span'),y=E('span');if(v.innerHTML=Q(1,3),y.innerHTML=Q(0,3),_.type='checkbox',F(f,'section__toggle-wrapper'),F(_,'section__toggle'),F(v,'toggle__icon-on'),F(y,'toggle__icon-off'),F(u,'toggle__icon'),F(p,'toggle__icon-circle'),F(g,'toggle__label'),k(u,i,'true'),a?(F(f,'toggle-service'),k(_,s,c),l.ce[c][n]=_):l.se[n]=_,a?(e=>{R(_,'change',(()=>{const t=l.ce[e],n=l.se[e];r.ee[e]=[];for(let n in t){const o=t[n];o.checked&&r.ee[e].push(o.value)}n.checked=r.ee[e].length>0}))})(c):(e=>{R(_,d,(()=>{const t=l.ce[e],n=_.checked;r.ee[e]=[];for(let o in t)t[o].checked=n,n&&r.ee[e].push(o)}))})(n),_.value=n,g.textContent=e.replace(/<.*>.*<\/.*>/gm,''),H(p,y),H(p,v),H(u,p),r.M)(o.readOnly||r.i.mode===t&&o.enabled)&&(_.checked=!0);else if(a){const e=r.Z[c];_.checked=o.readOnly||b(e,n)}else b(r.O,n)&&(_.checked=!0);return o.readOnly&&(_.disabled=!0),H(f,_),H(f,u),H(f,g),f}const me=()=>{const e=E('span');return m.ae.Ke||(m.ae.Ke=e),e},ge=(e,t)=>{const n=m.o,o=m.ae,{hide:a,showPreferences:s,acceptCategory:u}=e,p=n.u&&n.u.consentModal;if(!p)return;const g=p.acceptAllBtn,b=p.acceptNecessaryBtn,v=p.showPreferencesBtn,y=p.closeIconLabel,h=p.footer,C=p.label,w=p.title,S=e=>{a(),u(e)};if(!o.ve){o.ve=E(c),o.Ce=E(c),o.Qe=E(c),o.We=E(c),o.Xe=E(c),F(o.ve,'cm-wrapper'),F(o.Ce,'cm'),V(o.Qe,'body'),V(o.We,'texts'),V(o.Xe,'btns'),o.ve.tabIndex=-1,k(o.Ce,'role','dialog'),k(o.Ce,'aria-modal','true'),k(o.Ce,i,'false'),k(o.Ce,'aria-describedby','cm__desc'),C?k(o.Ce,'aria-label',C):w&&k(o.Ce,'aria-labelledby','cm__title'),o.Ce.style.visibility='hidden';const e='box',t=n.i.guiOptions,a=t&&t.consentModal,s=(a&&a.layout||e).split(' ')[0]===e;w&&y&&s&&(o.je||(o.je=E(r),o.je.innerHTML=Q(),V(o.je,'btn'),V(o.je,'btn--close'),R(o.je,d,(()=>{S([])})),H(o.Qe,o.je)),k(o.je,'aria-label',y)),H(o.Qe,o.We),(g||b||v)&&H(o.Qe,o.Xe),H(o.Ce,o.Qe),H(o.ve,o.Ce)}w&&(o.Ye||(o.Ye=E(c),o.Ye.className=o.Ye.id='cm__title',k(o.Ye,'role','heading'),k(o.Ye,'aria-level','2'),H(o.We,o.Ye)),o.Ye.innerHTML=w);let x=p.description;if(x&&(n.H&&(x=x.replace('{{revisionMessage}}',n.F?'':p.revisionMessage||'')),o.Ze||(o.Ze=E(c),o.Ze.className=o.Ze.id='cm__desc',H(o.We,o.Ze)),o.Ze.innerHTML=x),g&&(o.et||(o.et=E(r),H(o.et,me()),V(o.et,'btn'),k(o.et,f,'all'),R(o.et,d,(()=>{S('all')}))),o.et.firstElementChild.innerHTML=g),b&&(o.Ve||(o.Ve=E(r),H(o.Ve,me()),V(o.Ve,'btn'),k(o.Ve,f,'necessary'),R(o.Ve,d,(()=>{S([])}))),o.Ve.firstElementChild.innerHTML=b),v&&(o.tt||(o.tt=E(r),H(o.tt,me()),V(o.tt,'btn'),V(o.tt,'btn--secondary'),k(o.tt,f,'show'),R(o.tt,'mouseenter',(()=>{n.A||ue(e,t)})),R(o.tt,d,s)),o.tt.firstElementChild.innerHTML=v),o.nt||(o.nt=E(c),V(o.nt,l),g&&H(o.nt,o.et),b&&H(o.nt,o.Ve),(g||b)&&H(o.Qe,o.nt),H(o.Xe,o.nt)),o.tt&&!o.ot&&(o.ot=E(c),o.Ve&&o.et?(V(o.ot,l),H(o.ot,o.tt),H(o.Xe,o.ot)):(H(o.nt,o.tt),V(o.nt,l+'--uneven'))),h){if(!o.st){let e=E(c),t=E(c);o.st=E(c),V(e,'footer'),V(t,'links'),V(o.st,'link-group'),H(t,o.st),H(e,t),H(o.Ce,e)}o.st.innerHTML=h}fe(0),n.D||(n.D=!0,Y(m.ie.pe,_,o.Ce),t(e),H(o.qe,o.ve),setTimeout((()=>F(o.ve,'cc--anim')),100)),X(1),U(o.Qe,e,ue,t)},be=e=>y(e)&&e in m.o._,ve=()=>m.o.l||m.o.i.language.default,ye=e=>{e&&(m.o.l=e)},he=async e=>{const t=m.o;let n=be(e)?e:ve(),o=t._[n];if(!o)return!1;if(y(o)){const e=await(async e=>{try{const t=await fetch(e);return!(!t||!t.ok)&&await t.json()}catch(e){return!1}})(o);if(!e)return!1;o=e}return t.u=o,ye(n),!0},Ce=()=>{let e=m.o.i.language.rtl,t=m.ae.qe;e&&t&&(v(e)||(e=[e]),b(e,m.o.l)?F(t,'cc--rtl'):P(t,'cc--rtl'))},we=()=>{const e=m.ae;if(!e.qe){e.qe=E(c),e.qe.id='cc-main',Ce();let t=m.o.i.root;t&&y(t)&&(t=document.querySelector(t)),(t||e.Ue.body).appendChild(e.qe)}},Se=e=>{const{hostname:t,protocol:n}=location,{name:o,path:a,domain:s,sameSite:c}=m.t.cookie,r=encodeURIComponent(JSON.stringify(m.o.p)),i=e?(()=>{const e=m.o.C,t=e?new Date-e:0;return 864e5*B()-t})():864e5*B(),l=new Date;l.setTime(l.getTime()+i);let d=o+'='+r+(0!==i?'; expires='+l.toUTCString():'')+'; Path='+a+'; SameSite='+c;b(t,'.')&&(d+='; Domain='+s),'https:'===n&&(d+='; Secure'),document.cookie=d,m.o.p},xe=(e,t,n)=>{const o=n||m.t.cookie.domain,a=t||m.t.cookie.path,s='www.'===o.slice(0,4),c=s&&o.substring(4),r=(e,t)=>{document.cookie=e+'=; path='+a+(t?'; domain=.'+t:'')+'; expires=Thu, 01 Jan 1970 00:00:01 GMT;'};for(const t of e)r(t),r(t,o),s&&r(t,c)},Me=e=>(e=>{let t;try{t=JSON.parse(decodeURIComponent(e))}catch(e){t={}}return t})(De(e||m.t.cookie.name,!0)),De=(e,t)=>{const n=document.cookie.match('(^|;)\\s*'+e+'\\s*=\\s*([^;]+)');return n?t?n.pop():e:''},Te=e=>{const t=document.cookie.split(/;\s*/),n=[];for(const o of t){let t=o.split('=')[0];if(e)try{e.test(t)&&n.push(t)}catch(e){}else n.push(t)}return n},Ee=(n,o=[])=>{((e,t)=>{const{L:n,O:o,R:a,A:s,ee:c,Y:r}=m.o;let i=[];if(e){v(e)?i.push(...e):y(e)&&(i='all'===e?n:[e]);for(const e of n)c[e]=b(i,e)?w(r[e]):[]}else i=s?(()=>{const e=m.ae.se;if(!e)return[];let t=[];for(let n in e)e[n].checked&&t.push(n);return t})():o;i=i.filter((e=>!b(n,e)||!b(t,e))),i.push(...a),J(i)})(n,o),(e=>{const t=m.o,{ee:n,R:o,Z:a,Y:s,L:c}=t,r=c;t.ne=I(a);for(const e of r){const t=s[e],c=w(t),r=n[e]&&n[e].length>0,i=b(o,e);if(0!==c.length){if(a[e]=[],i)a[e].push(...c);else if(r){const t=n[e];a[e].push(...t)}else a[e]=[];a[e]=S(a[e])}}})(),(()=>{const n=m.o;m.t.mode===t&&n.M?n.V=G(n.B,n.O):n.V=G(n.O,n.p.categories);let o=n.V.length>0,a=!1;for(const e of n.L)n.te[e]=G(n.Z[e],n.ne[e]),n.te[e].length>0&&(a=!0);const s=m.ae.se;for(let e in s)s[e].checked=b(n.O,e);for(const e of n.L){const t=m.ae.ce[e],o=n.Z[e];for(const e in t)t[e].checked=b(o,e)}n.h||(n.h=new Date),n.S||(n.S=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),n.p={categories:I(n.O),revision:m.t.revision,data:n.v,consentTimestamp:n.h.toISOString(),consentId:n.S,services:I(n.Z)};let c=!1;(n.M||o||a)&&(n.M&&(n.M=!1,c=!0),n.C?n.C=new Date:n.C=n.h,n.p.lastConsentTimestamp=n.C.toISOString(),Se(),m.t.autoClearCookies&&(c||!n.M&&o)&&(e=>{const t=m.o,n=Te();t.j=!1;let o=e?t.L:t.V;o=o.filter((e=>{let n=t.I[e];return!!n&&!n.readOnly&&!!n.autoClear}));for(const a of o){const o=t.I[a].autoClear,s=o&&o.cookies||[],c=b(t.V,a),r=!b(t.O,a),i=c&&r;if(e&&r||!e&&i){!0===o.reloadPage&&i&&(t.j=!0);for(const e of s){let t=[];const o=e.name,a=e.domain,s=e.path;if(o instanceof RegExp)for(let e of n)o.test(e)&&t.push(e);else{let e=g(n,o);e>-1&&t.push(n[e])}t.length>0&&xe(t,s,a)}}}})(c),Z()),c&&(Y(m.ie.le),Y(m.ie.de),m.t.mode===e)||((o||a)&&Y(m.ie.fe),n.j&&location.reload())})()},ke=e=>{const t=m.o.M?[]:m.o.O;return b(t,e)},Ae=(e,t)=>{const{L:n,Y:o}=m.o;if(!(e&&t&&y(t)&&b(n,t)&&0!==w(o[t]).length))return!1;((e,t)=>{const n=m.o,{Y:o,ee:a,A:s}=n,c=m.ae.ce[t]||{},r=m.ae.se[t]||{},i=w(o[t]);if(a[t]=[],y(e)){if('all'===e){if(a[t].push(...i),s)for(let e in c)c[e].checked=!0,T(c[e])}else if(b(i,e)&&a[t].push(e),s)for(let t in c)c[t].checked=e===t,T(c[t])}else if(v(e))for(let n of i){const o=b(e,n);o&&a[t].push(n),s&&(c[n].checked=o,T(c[n]))}const l=0===a[t].length;n.O=l?n.O.filter((e=>e!==t)):S([...n.O,t]),s&&(r.checked=!l,T(r))})(e,t),Ee()},Ne=(e,t)=>{const n=m.o.M?[]:m.o.Z[t];return b(n,e)},He=e=>''!==De(e,!0),Fe=(e,t,n)=>{let o=[];const a=e=>{if(y(e)){let t=De(e);''!==t&&o.push(t)}else o.push(...Te(e))};if(v(e))for(let t of e)a(t);else a(e);xe(o,t,n)},Ve=e=>{const{ae:t,o:o}=m;if(!o.T){if(!o.D){if(!e)return;ge(Le,we)}o.T=!0,o.J=x(),o.g&&q(!0),F(t.he,n),k(t.Ce,i,'false'),$(t.ve,1),Y(m.ie._e,_)}},je=()=>{const{ae:e,o:t,ie:o}=m;t.T&&(t.T=!1,t.g&&q(),$(e.Ke,!1,!0),P(e.he,n),k(e.Ce,i,'true'),$(t.J),t.J=null,Y(o.ue,_))},Pe=()=>{const e=m.o;e.k||(e.A||ue(Le,we),e.k=!0,F(m.ae.he,o),k(m.ae.we,i,'false'),e.T?e.U=x():e.J=x(),$(m.ae.ye,2),Y(m.ie._e,u))},Ie=()=>{const e=m.o;e.k&&(e.k=!1,(()=>{const e=$e(),n=m.o.I,o=m.ae.se,a=m.ae.ce,s=e=>m.o.i.mode===t&&!!n[e].enabled;for(const t in o){const c=!!n[t].readOnly;o[t].checked=c||(e?ke(t):s(t));for(const n in a[t])a[t][n].checked=c||(e?Ne(n,t):s(t))}})(),$(m.ae.Be,!1,!0),P(m.ae.he,o),k(m.ae.we,i,'true'),e.T?($(e.U,1),e.U=null):($(e.J),e.J=null),Y(m.ie.ue,u))};var Le={show:Ve,hide:je,showPreferences:Pe,hidePreferences:Ie,acceptCategory:Ee};const Oe=async(e,t)=>{if(!be(e))return!1;const n=m.o;return!(e===ve()&&!0!==t||!await he(e)||(ye(e),n.D&&ge(Le,we),n.A&&ue(Le,we),Ce(),0))},Re=()=>{const{P:e,Z:t}=m.o,{accepted:n,rejected:o}=(()=>{const{M:e,O:t,L:n}=m.o;return{accepted:t,rejected:e?[]:n.filter((e=>!b(t,e)))}})();return I({acceptType:e,acceptedCategories:n,rejectedCategories:o,acceptedServices:t,rejectedServices:L()})},Be=(e,t)=>{let n=document.querySelector('script[src="'+e+'"]');return new Promise((o=>{if(n)return o(!0);if(n=E('script'),h(t))for(const e in t)k(n,e,t[e]);n.onload=()=>o(!0),n.onerror=()=>{n.remove(),o(!1)},n.src=e,H(document.head,n)}))},Ge=e=>{let t,n=e.value,o=e.mode,a=!1;const s=m.o;if('update'===o){s.v=t=Je('data');const e=typeof t==typeof n;if(e&&'object'==typeof t){!t&&(t={});for(let e in n)t[e]!==n[e]&&(t[e]=n[e],a=!0)}else!e&&t||t===n||(t=n,a=!0)}else t=n,a=!0;return a&&(s.v=t,s.p.data=t,Se(!0)),a},Je=(e,t)=>{const n=Me(t);return e?n[e]:n},Ue=e=>{const t=m.t,n=m.o.i;return e?t[e]||n[e]:{...t,...n,cookie:{...t.cookie}}},$e=()=>!m.o.M,ze=async e=>{const{o:n,t:o,ie:a}=m,c=window;if(!c._ccRun){if(c._ccRun=!0,(e=>{const{ae:n,t:o,o:a}=m,c=o,r=a,{cookie:i}=c,l=m.re,d=e.cookie,f=e.categories,_=w(f)||[],u=navigator,p=document;n.Ue=p,n.he=p.documentElement,i.domain=location.hostname,r.i=e,r.I=f,r.L=_,r._=e.language.translations,r.g=!!e.disablePageInteraction,l.le=e.onFirstConsent,l.de=e.onConsent,l.fe=e.onChange,l.ue=e.onModalHide,l._e=e.onModalShow,l.pe=e.onModalReady;const{mode:g,autoShow:v,lazyHtmlGeneration:y,autoClearCookies:C,revision:S,manageScriptTags:x,hideFromBots:M}=e;g===t&&(c.mode=g),'boolean'==typeof C&&(c.autoClearCookies=C),'boolean'==typeof x&&(c.manageScriptTags=x),'number'==typeof S&&S>=0&&(c.revision=S,r.H=!0),'boolean'==typeof v&&(c.autoShow=v),'boolean'==typeof y&&(c.lazyHtmlGeneration=y),!1===M&&(c.hideFromBots=!1),!0===c.hideFromBots&&u&&(r.G=u.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(u.userAgent)||u.webdriver),h(d)&&(c.cookie={...i,...d}),c.autoClearCookies,r.H,c.manageScriptTags,(e=>{const{I:t,Y:n,Z:o,ee:a,R:s}=m.o;for(let c of e){const e=t[c],r=e.services||{},i=h(r)&&w(r)||[];n[c]={},o[c]=[],a[c]=[],e.readOnly&&(s.push(c),o[c]=i),m.ae.ce[c]={};for(let e of i){const t=r[e];t.Se=!1,n[c][e]=t}}})(_),(()=>{if(!m.t.manageScriptTags)return;const e=m.o,t=D(document,'script['+s+']');for(const n of t){let t=N(n,s),o=n.dataset.service||'',a=!1;if(t&&'!'===t.charAt(0)&&(t=t.slice(1),a=!0),'!'===o.charAt(0)&&(o=o.slice(1),a=!0),b(e.L,t)&&(e.oe.push({Me:n,xe:!1,Ee:a,De:t,Te:o}),o)){const n=e.Y[t];n[o]||(n[o]={Se:!1})}}})(),ye((()=>{const e=m.o.i.language.autoDetect;if(e){let t;if('browser'===e?t=navigator.language.slice(0,2).toLowerCase():'document'===e&&(t=document.documentElement.lang),be(t))return t}return ve()})())})(e),n.G)return;(()=>{const e=m.o,n=m.t,o=Me(),{categories:a,services:s,consentId:c,consentTimestamp:r,lastConsentTimestamp:i,data:l,revision:d}=o,f=v(a);e.p=o,e.S=c;const _=!!c&&y(c);e.h=r,e.h&&(e.h=new Date(r)),e.C=i,e.C&&(e.C=new Date(i)),e.v=void 0!==l?l:null,e.H&&_&&d!==n.revision&&(e.F=!1),e.M=!(_&&e.F&&e.h&&e.C&&f),e.M,e.M?n.mode===t&&((()=>{const e=m.o;for(const n of e.L){const o=e.I[n];if(o.readOnly||o.enabled&&e.i.mode===t){e.B.push(n);const t=e.Y[n]||{};for(let o in t)e.Z[n].push(o)}}})(),e.O=[...e.B]):(e.Z={...e.Z,...s},J([...e.R,...a])),e.ee={...e.Z}})();const i=$e();if(!await he())return!1;if(U(null,r=Le,ue,we),m.o.M&&ge(r,we),m.t.lazyHtmlGeneration||ue(r,we),(()=>{const e=m.ae,t=m.o;R(e.he,'keydown',(e=>{if('Tab'!==e.key)return;if(!t.k&&!t.T)return;const n=t.W,o=t.K;if(n.length>0){const t=x();e.shiftKey?t!==n[0]&&o.contains(t)||(M(e),$(n[1])):t!==n[1]&&o.contains(t)||(M(e),$(n[0]))}}),!0)})(),o.autoShow&&!i&&Ve(!0),i)return Z(),Y(a.de);o.mode===t&&Z(n.B)}var r},qe=e=>{const{qe:t,he:s}=m.ae,{name:c,path:r,domain:i}=m.t.cookie;e&&Fe(c,r,i);for(const{me:e,ge:t,be:n}of m.o.m)e.removeEventListener(t,n);t&&t.remove(),s&&s.classList.remove(a,o,n);const l=new p;for(const e in m)m[e]=l[e];window._ccRun=!1};export{Ee as acceptCategory,Ae as acceptService,ke as acceptedCategory,Ne as acceptedService,Fe as eraseCookies,Ue as getConfig,Je as getCookie,Re as getUserPreferences,je as hide,Ie as hidePreferences,Be as loadScript,qe as reset,ze as run,Ge as setCookieData,Oe as setLanguage,Ve as show,Pe as showPreferences,$e as validConsent,He as validCookie};

@@ -7,2 +7,2 @@ /*!

*/
var e,t;e=this,t=function(e){'use strict';const t='opt-in',o='opt-out',n='show--consent',s='show--preferences',a='disable--interaction',c='data-category',r='div',i='button',l='aria-hidden',d='btn-group',f='click',_='data-role',u='consentModal',p='preferencesModal';class m{constructor(){this.t={mode:t,revision:0,autoShow:!0,lazyHtmlGeneration:!0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:'cc_cookie',expiresAfterDays:182,domain:'',path:'/',sameSite:'Lax'}},this.o={i:{},l:'',_:{},u:{},p:{},m:[],g:!1,v:null,h:null,C:null,S:'',M:!0,D:!1,T:!1,k:!1,A:!1,N:[],H:!1,F:!0,V:[],j:!1,P:'',I:!1,L:[],O:[],R:[],B:[],G:!1,J:!1,U:!1,$:[],q:[],K:null,W:[],X:[],Y:{},Z:{},ee:{},te:{},oe:{},ne:[]},this.se={ae:{},ce:{}},this.re={},this.ie={le:'cc:onFirstConsent',de:'cc:onConsent',fe:'cc:onChange',_e:'cc:onModalShow',ue:'cc:onModalHide',pe:'cc:onModalReady'}}}const g=new m,b=(e,t)=>e.indexOf(t),v=(e,t)=>-1!==b(e,t),y=e=>Array.isArray(e),h=e=>'string'==typeof e,C=e=>!!e&&'object'==typeof e&&!y(e),w=e=>'function'==typeof e,S=e=>Object.keys(e),x=e=>Array.from(new Set(e)),M=()=>document.activeElement,D=e=>e.preventDefault(),T=(e,t)=>e.querySelectorAll(t),E=e=>e.dispatchEvent(new Event('change')),k=e=>{const t=document.createElement(e);return e===i&&(t.type=e),t},A=(e,t,o)=>e.setAttribute(t,o),N=(e,t,o)=>{e.removeAttribute(o?'data-'+t:t)},H=(e,t,o)=>e.getAttribute(o?'data-'+t:t),F=(e,t)=>e.appendChild(t),V=(e,t)=>e.classList.add(t),j=(e,t)=>V(e,'cm__'+t),P=(e,t)=>V(e,'pm__'+t),I=(e,t)=>e.classList.remove(t),L=e=>{if('object'!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let o in e){let n=e[o];t[o]=L(n)}return t},O=()=>{const e={},{L:t,Y:o,Z:n}=g.o;for(const s of t)e[s]=J(n[s],S(o[s]));return e},R=(e,t)=>dispatchEvent(new CustomEvent(e,{detail:t})),B=(e,t,o,n)=>{e.addEventListener(t,o),n&&g.o.m.push({me:e,ge:t,be:o})},G=()=>{const e=g.t.cookie.expiresAfterDays;return w(e)?e(g.o.P):e},J=(e,t)=>{const o=e||[],n=t||[];return o.filter((e=>!v(n,e))).concat(n.filter((e=>!v(o,e))))},U=e=>{g.o.O=x(e),g.o.P=(()=>{let e='custom';const{O:t,L:o,R:n}=g.o,s=t.length;return s===o.length?e='all':s===n.length&&(e='necessary'),e})()},$=(e,t,o,n)=>{const s='accept-',{show:a,showPreferences:c,hide:r,hidePreferences:i,acceptCategory:l}=t,d=e||document,_=e=>T(d,`[data-cc="${e}"]`),u=(e,t)=>{D(e),l(t),i(),r()},p=_('show-preferencesModal'),m=_('show-consentModal'),b=_(s+'all'),v=_(s+'necessary'),y=_(s+'custom'),h=g.t.lazyHtmlGeneration;for(const e of p)A(e,'aria-haspopup','dialog'),B(e,f,(e=>{D(e),c()})),h&&(B(e,'mouseenter',(e=>{D(e),g.o.A||o(t,n)}),!0),B(e,'focus',(()=>{g.o.A||o(t,n)})));for(let e of m)A(e,'aria-haspopup','dialog'),B(e,f,(e=>{D(e),a(!0)}),!0);for(let e of b)B(e,f,(e=>{u(e,'all')}),!0);for(let e of y)B(e,f,(e=>{u(e)}),!0);for(let e of v)B(e,f,(e=>{u(e,[])}),!0)},z=(e,t,o)=>{e&&(o&&(e.tabIndex=-1),e.focus()),t&&(g.o.K=1===t?g.se.ve:g.se.ye,g.o.W=1===t?g.o.$:g.o.q),o&&e&&e.removeAttribute('tabindex')};let q;const K=e=>{clearTimeout(q),e?V(g.se.he,a):q=setTimeout((()=>{I(g.se.he,a)}),500)},Q=['M 19.5 4.5 L 4.5 19.5 M 4.5 4.501 L 19.5 19.5','M 3.572 13.406 L 8.281 18.115 L 20.428 5.885','M 21.999 6.94 L 11.639 17.18 L 2.001 6.82 '],W=(e=0,t=1.5)=>`<svg viewBox="0 0 24 24" stroke-width="${t}"><path d="${Q[e]}"/></svg>`,X=['[href]',i,'input','details','[tabindex]'].map((e=>e+':not([tabindex="-1"])')).join(','),Y=e=>{const{o:t,se:o}=g,n=(e,t)=>{const o=T(e,X);t[0]=o[0],t[1]=o[o.length-1]};1===e&&t.D&&n(o.Ce,t.$),2===e&&t.A&&n(o.we,t.q)},Z=(e,t,o)=>{const{fe:n,de:s,le:a,ue:c,pe:r,_e:i}=g.re,l=g.ie,d={cookie:g.o.p};if(t){const n={modalName:t};return e===l._e?w(i)&&i(n):e===l.ue?w(c)&&c(n):(n.modal=o,w(r)&&r(n)),R(e,n)}e===l.le?w(a)&&a(L(d)):e===l.de?w(s)&&s(L(d)):(d.changedCategories=g.o.V,d.changedServices=g.o.te,w(n)&&n(L(d))),R(e,L(d))},ee=e=>{const{Z:t,te:o,L:n,Y:s,ne:a,p:r,V:i}=g.o;for(const e of n){const n=o[e]||t[e]||[];for(const o of n){const n=s[e][o];if(!n)continue;const{onAccept:a,onReject:c}=n;!n.Se&&v(t[e],o)&&w(a)?(n.Se=!0,a()):n.Se&&!v(t[e],o)&&w(c)&&(n.Se=!1,c())}}if(!g.t.manageScriptTags)return;const l=a,d=e||r.categories||[],f=(e,n)=>{if(n>=e.length)return;const s=a[n];if(s.xe)return f(e,n+1);const r=s.Me,l=s.De,_=s.Te,u=v(d,l),p=!!_&&v(t[l],_);if(!_&&!s.Ee&&u||!_&&s.Ee&&!u&&v(i,l)||_&&!s.Ee&&p||_&&s.Ee&&!p&&v(o[l]||[],_)){s.xe=!0;const t=H(r,'type',!0);N(r,'type',!!t),N(r,c);let o=H(r,'src',!0);o&&N(r,'src',!0);const a=k('script');a.textContent=r.innerHTML;for(const{nodeName:e}of r.attributes)A(a,e,r[e]||H(r,e));t&&(a.type=t),o?a.src=o:o=r.src;const i=!!o&&(!t||['text/javascript','module'].includes(t));if(i&&(a.onload=a.onerror=()=>{f(e,++n)}),r.replaceWith(a),i)return}f(e,++n)};f(l,0)},te='bottom',oe='left',ne='center',se='right',ae='inline',ce='wide',re='pm--',ie=['middle','top',te],le=[oe,ne,se],de={box:{ke:[ce,ae],Ae:ie,Ne:le,He:te,Fe:se},cloud:{ke:[ae],Ae:ie,Ne:le,He:te,Fe:ne},bar:{ke:[ae],Ae:ie.slice(1),Ne:[],He:te,Fe:''}},fe={box:{ke:[],Ae:[],Ne:[],He:'',Fe:''},bar:{ke:[ce],Ae:[],Ne:[oe,se],He:'',Fe:oe}},_e=e=>{const t=g.o.i.guiOptions,o=t&&t.consentModal,n=t&&t.preferencesModal;0===e&&ue(g.se.Ce,de,o,'cm--','box','cm'),1===e&&ue(g.se.we,fe,n,re,'box','pm')},ue=(e,t,o,n,s,a)=>{e.className=a;const c=o&&o.layout,r=o&&o.position,i=o&&o.flipButtons,l=o&&!1!==o.equalWeightButtons,d=c&&c.split(' ')||[],f=d[0],_=d[1],u=f in t?f:s,p=t[u],m=v(p.ke,_)&&_,b=r&&r.split(' ')||[],y=b[0],h=n===re?b[0]:b[1],C=v(p.Ae,y)?y:p.He,w=v(p.Ne,h)?h:p.Fe,S=t=>V(e,n+t);S(u),S(m),S(C),S(w),i&&S('flip');const x=a+'__btn--secondary';if('cm'===a){const{Ve:e,je:t}=g.se;e&&(l?I(e,x):V(e,x)),t&&(l?I(t,x):V(t,x))}else{const{Pe:e}=g.se;e&&(l?I(e,x):V(e,x))}},pe=(e,t)=>{const o=g.o,n=g.se,{hide:s,hidePreferences:a,acceptCategory:c}=e,u=e=>{c(e),a(),s()},m=o.u&&o.u.preferencesModal;if(!m)return;const b=m.title,v=m.closeIconLabel,y=m.acceptAllBtn,w=m.acceptNecessaryBtn,x=m.savePreferencesBtn,M=m.sections,D=y||w||x;if(n.ye)n.Ie=k(r),P(n.Ie,'body');else{n.ye=k(r),V(n.ye,'pm-wrapper'),n.ye.tabIndex=-1;const e=k('div');V(e,'pm-overlay'),F(n.ye,e),B(e,f,a),n.we=k(r),n.we.style.visibility='hidden',V(n.we,'pm'),A(n.we,'role','dialog'),A(n.we,l,!0),A(n.we,'aria-modal',!0),A(n.we,'aria-labelledby','pm__title'),B(n.he,'keydown',(e=>{27===e.keyCode&&a()}),!0),n.Le=k(r),P(n.Le,'header'),n.Oe=k(r),P(n.Oe,'title'),n.Oe.id='pm__title',A(n.Oe,'role','heading'),A(n.Oe,'aria-level','2'),n.Re=k(i),P(n.Re,'close-btn'),A(n.Re,'aria-label',m.closeIconLabel||''),B(n.Re,f,a),n.Be=k('span'),n.Be.innerHTML=W(),F(n.Re,n.Be),n.Ge=k(r),P(n.Ge,'body'),n.Je=k(r),P(n.Je,'footer');var T=k(r);V(T,'btns');var E=k(r),N=k(r);P(E,d),P(N,d),F(n.Je,E),F(n.Je,N),F(n.Le,n.Oe),F(n.Le,n.Re),F(n.we,n.Le),F(n.we,n.Ge),D&&F(n.we,n.Je),F(n.ye,n.we)}let H;b&&(n.Oe.innerHTML=b,v&&A(n.Re,'aria-label',v)),M&&M.forEach(((e,t)=>{const s=e.title,a=e.description,c=e.linkedCategory,d=c&&o.I[c],_=e.cookieTable,u=_&&_.body,p=_&&_.caption,g=u&&u.length>0,b=!!d,v=b&&o.Y[c],y=C(v)&&S(v)||[],w=b&&(!!a||!!g||S(v).length>0);var x=k(r);if(P(x,'section'),w||a){var M=k(r);P(M,'section-desc-wrapper')}let D=y.length;if(w&&D>0){const e=k(r);P(e,'section-services');for(const t of y){const o=v[t],n=o&&o.label||t,s=k(r),a=k(r),i=k(r),l=k(r);P(s,'service'),P(l,'service-title'),P(a,'service-header'),P(i,'service-icon');const f=me(n,t,d,!0,c);l.innerHTML=n,F(a,i),F(a,l),F(s,a),F(s,f),F(e,s)}F(M,e)}if(s){var T=k(r),E=k(b?i:r);if(P(T,'section-title-wrapper'),P(E,'section-title'),E.innerHTML=s,F(T,E),b){const e=k('span');e.innerHTML=W(2,3.5),P(e,'section-arrow'),F(T,e),x.className+='--toggle';const t=me(s,c,d);let o=m.serviceCounterLabel;if(D>0&&h(o)){let e=k('span');P(e,'badge'),P(e,'service-counter'),A(e,l,!0),A(e,'data-servicecounter',D),o&&(o=o.split('|'),o=o.length>1&&D>1?o[1]:o[0],A(e,'data-counterlabel',o)),e.innerHTML=D+(o?' '+o:''),F(E,e)}if(w){P(x,'section--expandable');var N=c+'-desc';A(E,'aria-expanded',!1),A(E,'aria-controls',N)}F(T,t)}else A(E,'role','heading'),A(E,'aria-level','3');F(x,T)}if(a){var j=k(r);P(j,'section-desc'),j.innerHTML=a,F(M,j)}if(w&&(A(M,l,'true'),M.id=N,((e,t,o)=>{B(E,f,(()=>{t.classList.contains('is-expanded')?(I(t,'is-expanded'),A(o,'aria-expanded','false'),A(e,l,'true')):(V(t,'is-expanded'),A(o,'aria-expanded','true'),A(e,l,'false'))}))})(M,x,E),g)){const e=k('table'),o=k('thead'),s=k('tbody');if(p){const t=k('caption');P(t,'table-caption'),t.innerHTML=p,e.appendChild(t)}P(e,'section-table'),P(o,'table-head'),P(s,'table-body');const a=_.headers,c=S(a),i=n.Ue.createDocumentFragment(),l=k('tr');for(const e of c){const o=a[e],n=k('th');n.id='cc__row-'+o+t,A(n,'scope','col'),P(n,'table-th'),n.innerHTML=o,F(i,n)}F(l,i),F(o,l);const d=n.Ue.createDocumentFragment();for(const e of u){const o=k('tr');P(o,'table-tr');for(const n of c){const s=a[n],c=e[n],i=k('td'),l=k(r);P(i,'table-td'),A(i,'data-column',s),A(i,'headers','cc__row-'+s+t),l.insertAdjacentHTML('beforeend',c),F(i,l),F(o,i)}F(d,o)}F(s,d),F(e,o),F(e,s),F(M,e)}(w||a)&&F(x,M);const L=n.Ie||n.Ge;b?(H||(H=k(r),P(H,'section-toggles')),H.appendChild(x)):H=null,F(L,H||x)})),(y||w)&&(w&&(n.Pe||(n.Pe=k(i),P(n.Pe,'btn'),A(n.Pe,_,'necessary'),F(E,n.Pe),B(n.Pe,f,(()=>u([])))),n.Pe.innerHTML=w),y&&(n.$e||(n.$e=k(i),P(n.$e,'btn'),A(n.$e,_,'all'),F(E,n.$e),B(n.$e,f,(()=>u('all')))),n.$e.innerHTML=y)),x&&(n.ze||(n.ze=k(i),P(n.ze,'btn'),P(n.ze,'btn--secondary'),A(n.ze,_,'save'),F(N,n.ze),B(n.ze,f,(()=>u()))),n.ze.innerHTML=x),n.Ie&&(n.we.replaceChild(n.Ie,n.Ge),n.Ge=n.Ie),_e(1),o.A||(o.A=!0,Z(g.ie.pe,p,n.we),t(e),F(n.qe,n.ye),setTimeout((()=>V(n.ye,'cc--anim')),100)),Y(2)};function me(e,t,n,s,a){const r=g.o,i=g.se,d=k('label'),_=k('input'),u=k('span'),p=k('span'),m=k('span'),b=k('span'),y=k('span');if(b.innerHTML=W(1,3),y.innerHTML=W(0,3),_.type='checkbox',V(d,'section__toggle-wrapper'),V(_,'section__toggle'),V(b,'toggle__icon-on'),V(y,'toggle__icon-off'),V(u,'toggle__icon'),V(p,'toggle__icon-circle'),V(m,'toggle__label'),A(u,l,'true'),s?(V(d,'toggle-service'),A(_,c,a),i.ce[a][t]=_):i.ae[t]=_,s?(e=>{B(_,'change',(()=>{const t=i.ce[e],o=i.ae[e];r.ee[e]=[];for(let o in t){const n=t[o];n.checked&&r.ee[e].push(n.value)}o.checked=r.ee[e].length>0}))})(a):(e=>{B(_,f,(()=>{const t=i.ce[e],o=_.checked;r.ee[e]=[];for(let n in t)t[n].checked=o,o&&r.ee[e].push(n)}))})(t),_.value=t,m.textContent=e.replace(/<.*>.*<\/.*>/gm,''),F(p,y),F(p,b),F(u,p),r.M)(n.readOnly||r.i.mode===o&&n.enabled)&&(_.checked=!0);else if(s){const e=r.Z[a];_.checked=n.readOnly||v(e,t)}else v(r.O,t)&&(_.checked=!0);return n.readOnly&&(_.disabled=!0),F(d,_),F(d,u),F(d,m),d}const ge=()=>{const e=k('span');return g.se.Ke||(g.se.Ke=e),e},be=(e,t)=>{const o=g.o,n=g.se,{hide:s,showPreferences:a,acceptCategory:c}=e,p=o.u&&o.u.consentModal;if(!p)return;const m=p.acceptAllBtn,b=p.acceptNecessaryBtn,v=p.showPreferencesBtn,y=p.closeIconLabel,h=p.footer,C=p.label,w=p.title,S=e=>{s(),c(e)};if(!n.ve){n.ve=k(r),n.Ce=k(r),n.Qe=k(r),n.We=k(r),n.Xe=k(r),V(n.ve,'cm-wrapper'),V(n.Ce,'cm'),j(n.Qe,'body'),j(n.We,'texts'),j(n.Xe,'btns'),n.ve.tabIndex=-1,A(n.Ce,'role','dialog'),A(n.Ce,'aria-modal','true'),A(n.Ce,l,'false'),A(n.Ce,'aria-describedby','cm__desc'),C?A(n.Ce,'aria-label',C):w&&A(n.Ce,'aria-labelledby','cm__title'),n.Ce.style.visibility='hidden';const e='box',t=o.i.guiOptions,s=t&&t.consentModal,a=(s&&s.layout||e).split(' ')[0]===e;w&&y&&a&&(n.je||(n.je=k(i),n.je.innerHTML=W(),j(n.je,'btn'),j(n.je,'btn--close'),B(n.je,f,(()=>{S([])})),F(n.Qe,n.je)),A(n.je,'aria-label',y)),F(n.Qe,n.We),(m||b||v)&&F(n.Qe,n.Xe),F(n.Ce,n.Qe),F(n.ve,n.Ce)}w&&(n.Ye||(n.Ye=k(r),n.Ye.className=n.Ye.id='cm__title',A(n.Ye,'role','heading'),A(n.Ye,'aria-level','2'),F(n.We,n.Ye)),n.Ye.innerHTML=w);let x=p.description;if(x&&(o.H&&(x=x.replace('{{revisionMessage}}',o.F?'':p.revisionMessage||'')),n.Ze||(n.Ze=k(r),n.Ze.className=n.Ze.id='cm__desc',F(n.We,n.Ze)),n.Ze.innerHTML=x),m&&(n.et||(n.et=k(i),F(n.et,ge()),j(n.et,'btn'),A(n.et,_,'all'),B(n.et,f,(()=>{S('all')}))),n.et.firstElementChild.innerHTML=m),b&&(n.Ve||(n.Ve=k(i),F(n.Ve,ge()),j(n.Ve,'btn'),A(n.Ve,_,'necessary'),B(n.Ve,f,(()=>{S([])}))),n.Ve.firstElementChild.innerHTML=b),v&&(n.tt||(n.tt=k(i),F(n.tt,ge()),j(n.tt,'btn'),j(n.tt,'btn--secondary'),A(n.tt,_,'show'),B(n.tt,'mouseenter',(()=>{o.A||pe(e,t)})),B(n.tt,f,a)),n.tt.firstElementChild.innerHTML=v),n.ot||(n.ot=k(r),j(n.ot,d),b&&F(n.ot,n.Ve),m&&F(n.ot,n.et),(m||b)&&F(n.Qe,n.ot),F(n.Xe,n.ot)),n.tt&&!n.nt&&(n.nt=k(r),n.Ve&&n.et?(j(n.nt,d),F(n.nt,n.tt),F(n.Xe,n.nt)):(F(n.ot,n.tt),j(n.ot,d+'--uneven'))),h){if(!n.st){let e=k(r),t=k(r);n.st=k(r),j(e,'footer'),j(t,'links'),j(n.st,'link-group'),F(t,n.st),F(e,t),F(n.Ce,e)}n.st.innerHTML=h}_e(0),o.D||(o.D=!0,Z(g.ie.pe,u,n.Ce),t(e),F(n.qe,n.ve),setTimeout((()=>V(n.ve,'cc--anim')),100)),Y(1),$(n.Qe,e,pe,t)},ve=e=>h(e)&&e in g.o._,ye=()=>g.o.l||g.o.i.language.default,he=e=>{e&&(g.o.l=e)},Ce=async e=>{const t=g.o;let o=ve(e)?e:ye(),n=t._[o];if(!n)return!1;if(h(n)){const e=await(async e=>{try{const t=await fetch(e);return!(!t||!t.ok)&&await t.json()}catch(e){return!1}})(n);if(!e)return!1;n=e}return t.u=n,he(o),!0},we=()=>{let e=g.o.i.language.rtl,t=g.se.qe;e&&t&&(y(e)||(e=[e]),v(e,g.o.l)?V(t,'cc--rtl'):I(t,'cc--rtl'))},Se=()=>{const e=g.se;if(!e.qe){e.qe=k(r),e.qe.id='cc-main',we();let t=g.o.i.root;t&&h(t)&&(t=document.querySelector(t)),(t||e.Ue.body).appendChild(e.qe)}},xe=e=>{const{hostname:t,protocol:o}=location,{name:n,path:s,domain:a,sameSite:c}=g.t.cookie,r=encodeURIComponent(JSON.stringify(g.o.p)),i=e?(()=>{const e=g.o.C,t=e?new Date-e:0;return 864e5*G()-t})():864e5*G(),l=new Date;l.setTime(l.getTime()+i);let d=n+'='+r+(0!==i?'; expires='+l.toUTCString():'')+'; Path='+s+'; SameSite='+c;v(t,'.')&&(d+='; Domain='+a),'https:'===o&&(d+='; Secure'),document.cookie=d,g.o.p},Me=(e,t,o)=>{const n=o||g.t.cookie.domain,s=t||g.t.cookie.path,a='www.'===n.slice(0,4),c=a&&n.substring(4),r=(e,t)=>{document.cookie=e+'=; path='+s+(t?'; domain=.'+t:'')+'; expires=Thu, 01 Jan 1970 00:00:01 GMT;'};for(const t of e)r(t),r(t,n),a&&r(t,c)},De=e=>(e=>{let t;try{t=JSON.parse(decodeURIComponent(e))}catch(e){t={}}return t})(Te(e||g.t.cookie.name,!0)),Te=(e,t)=>{const o=document.cookie.match('(^|;)\\s*'+e+'\\s*=\\s*([^;]+)');return o?t?o.pop():e:''},Ee=e=>{const t=document.cookie.split(/;\s*/),o=[];for(const n of t){let t=n.split('=')[0];if(e)try{e.test(t)&&o.push(t)}catch(e){}else o.push(t)}return o},ke=(e,n=[])=>{((e,t)=>{const{L:o,O:n,R:s,A:a,ee:c,Y:r}=g.o;let i=[];if(e){y(e)?i.push(...e):h(e)&&(i='all'===e?o:[e]);for(const e of o)c[e]=v(i,e)?S(r[e]):[]}else i=a?(()=>{const e=g.se.ae;if(!e)return[];let t=[];for(let o in e)e[o].checked&&t.push(o);return t})():n;i=i.filter((e=>!v(o,e)||!v(t,e))),i.push(...s),U(i)})(e,n),(e=>{const t=g.o,{ee:o,R:n,Z:s,Y:a,L:c}=t,r=c;t.oe=L(s);for(const e of r){const t=a[e],c=S(t),r=o[e]&&o[e].length>0,i=v(n,e);if(0!==c.length){if(s[e]=[],i)s[e].push(...c);else if(r){const t=o[e];s[e].push(...t)}else s[e]=[];s[e]=x(s[e])}}})(),(()=>{const e=g.o;g.t.mode===o&&e.M?e.V=J(e.B,e.O):e.V=J(e.O,e.p.categories);let n=e.V.length>0,s=!1;for(const t of e.L)e.te[t]=J(e.Z[t],e.oe[t]),e.te[t].length>0&&(s=!0);const a=g.se.ae;for(let t in a)a[t].checked=v(e.O,t);for(const t of e.L){const o=g.se.ce[t],n=e.Z[t];for(const e in o)o[e].checked=v(n,e)}e.h||(e.h=new Date),e.S||(e.S=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),e.p={categories:L(e.O),revision:g.t.revision,data:e.v,consentTimestamp:e.h.toISOString(),consentId:e.S,services:L(e.Z)};let c=!1;(e.M||n||s)&&(e.M&&(e.M=!1,c=!0),e.C?e.C=new Date:e.C=e.h,e.p.lastConsentTimestamp=e.C.toISOString(),xe(),g.t.autoClearCookies&&(c||!e.M&&n)&&(e=>{const t=g.o,o=Ee();t.j=!1;let n=e?t.L:t.V;n=n.filter((e=>{let o=t.I[e];return!!o&&!o.readOnly&&!!o.autoClear}));for(const s of n){const n=t.I[s].autoClear,a=n&&n.cookies||[],c=v(t.V,s),r=!v(t.O,s),i=c&&r;if(e&&r||!e&&i){!0===n.reloadPage&&i&&(t.j=!0);for(const e of a){let t=[];const n=e.name,s=e.domain,a=e.path;if(n instanceof RegExp)for(let e of o)n.test(e)&&t.push(e);else{let e=b(o,n);e>-1&&t.push(o[e])}t.length>0&&Me(t,a,s)}}}})(c),ee()),c&&(Z(g.ie.le),Z(g.ie.de),g.t.mode===t)||((n||s)&&Z(g.ie.fe),e.j&&location.reload())})()},Ae=e=>{const t=g.o.M?[]:g.o.O;return v(t,e)},Ne=(e,t)=>{const o=g.o.M?[]:g.o.Z[t];return v(o,e)},He=(e,t,o)=>{let n=[];const s=e=>{if(h(e)){let t=Te(e);''!==t&&n.push(t)}else n.push(...Ee(e))};if(y(e))for(let t of e)s(t);else s(e);Me(n,t,o)},Fe=e=>{const{se:t,o:o}=g;if(!o.T){if(!o.D){if(!e)return;be(Ie,Se)}o.T=!0,o.J=M(),o.g&&K(!0),V(t.he,n),A(t.Ce,l,'false'),z(t.ve,1),Z(g.ie._e,u)}},Ve=()=>{const{se:e,o:t,ie:o}=g;t.T&&(t.T=!1,t.g&&K(),z(e.Ke,!1,!0),I(e.he,n),A(e.Ce,l,'true'),z(t.J),t.J=null,Z(o.ue,u))},je=()=>{const e=g.o;e.k||(e.A||pe(Ie,Se),e.k=!0,V(g.se.he,s),A(g.se.we,l,'false'),e.T?e.U=M():e.J=M(),z(g.se.ye,2),Z(g.ie._e,p))},Pe=()=>{const e=g.o;e.k&&(e.k=!1,(()=>{const e=Oe(),t=g.o.I,n=g.se.ae,s=g.se.ce,a=e=>g.o.i.mode===o&&!!t[e].enabled;for(const o in n){const c=!!t[o].readOnly;n[o].checked=c||(e?Ae(o):a(o));for(const t in s[o])s[o][t].checked=c||(e?Ne(t,o):a(o))}})(),z(g.se.Be,!1,!0),I(g.se.he,s),A(g.se.we,l,'true'),e.T?(z(e.U,1),e.U=null):(z(e.J),e.J=null),Z(g.ie.ue,p))};var Ie={show:Fe,hide:Ve,showPreferences:je,hidePreferences:Pe,acceptCategory:ke};const Le=(e,t)=>{const o=De(t);return e?o[e]:o},Oe=()=>!g.o.M;e.acceptCategory=ke,e.acceptService=(e,t)=>{const{L:o,Y:n}=g.o;if(!(e&&t&&h(t)&&v(o,t)&&0!==S(n[t]).length))return!1;((e,t)=>{const o=g.o,{Y:n,ee:s,A:a}=o,c=g.se.ce[t]||{},r=g.se.ae[t]||{},i=S(n[t]);if(s[t]=[],h(e)){if('all'===e){if(s[t].push(...i),a)for(let e in c)c[e].checked=!0,E(c[e])}else if(v(i,e)&&s[t].push(e),a)for(let t in c)c[t].checked=e===t,E(c[t])}else if(y(e))for(let o of i){const n=v(e,o);n&&s[t].push(o),a&&(c[o].checked=n,E(c[o]))}const l=0===s[t].length;o.O=l?o.O.filter((e=>e!==t)):x([...o.O,t]),a&&(r.checked=!l,E(r))})(e,t),ke()},e.acceptedCategory=Ae,e.acceptedService=Ne,e.eraseCookies=He,e.getConfig=e=>{const t=g.t,o=g.o.i;return e?t[e]||o[e]:{...t,...o,cookie:{...t.cookie}}},e.getCookie=Le,e.getUserPreferences=()=>{const{P:e,Z:t}=g.o,{accepted:o,rejected:n}=(()=>{const{M:e,O:t,L:o}=g.o;return{accepted:t,rejected:e?[]:o.filter((e=>!v(t,e)))}})();return L({acceptType:e,acceptedCategories:o,rejectedCategories:n,acceptedServices:t,rejectedServices:O()})},e.hide=Ve,e.hidePreferences=Pe,e.loadScript=(e,t)=>{let o=document.querySelector('script[src="'+e+'"]');return new Promise((n=>{if(o)return n(!0);if(o=k('script'),C(t))for(const e in t)A(o,e,t[e]);o.onload=()=>n(!0),o.onerror=()=>{o.remove(),n(!1)},o.src=e,F(document.head,o)}))},e.reset=e=>{const{qe:t,he:o}=g.se,{name:c,path:r,domain:i}=g.t.cookie;e&&He(c,r,i);for(const{me:e,ge:t,be:o}of g.o.m)e.removeEventListener(t,o);t&&t.remove(),o&&o.classList.remove(a,s,n);const l=new m;for(const e in g)g[e]=l[e];window._ccRun=!1},e.run=async e=>{const{o:t,t:n,ie:s}=g,a=window;if(!a._ccRun){if(a._ccRun=!0,(e=>{const{se:t,t:n,o:s}=g,a=n,r=s,{cookie:i}=a,l=g.re,d=e.cookie,f=e.categories,_=S(f)||[],u=navigator,p=document;t.Ue=p,t.he=p.documentElement,i.domain=location.hostname,r.i=e,r.I=f,r.L=_,r._=e.language.translations,r.g=!!e.disablePageInteraction,l.le=e.onFirstConsent,l.de=e.onConsent,l.fe=e.onChange,l.ue=e.onModalHide,l._e=e.onModalShow,l.pe=e.onModalReady;const{mode:m,autoShow:b,lazyHtmlGeneration:y,autoClearCookies:h,revision:w,manageScriptTags:x,hideFromBots:M}=e;m===o&&(a.mode=m),'boolean'==typeof h&&(a.autoClearCookies=h),'boolean'==typeof x&&(a.manageScriptTags=x),'number'==typeof w&&w>=0&&(a.revision=w,r.H=!0),'boolean'==typeof b&&(a.autoShow=b),'boolean'==typeof y&&(a.lazyHtmlGeneration=y),!1===M&&(a.hideFromBots=!1),!0===a.hideFromBots&&u&&(r.G=u.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(u.userAgent)||u.webdriver),C(d)&&(a.cookie={...i,...d}),a.autoClearCookies,r.H,a.manageScriptTags,(e=>{const{I:t,Y:o,Z:n,ee:s,R:a}=g.o;for(let c of e){const e=t[c],r=e.services||{},i=C(r)&&S(r)||[];o[c]={},n[c]=[],s[c]=[],e.readOnly&&(a.push(c),n[c]=i),g.se.ce[c]={};for(let e of i){const t=r[e];t.Se=!1,o[c][e]=t}}})(_),(()=>{if(!g.t.manageScriptTags)return;const e=g.o,t=T(document,'script['+c+']');for(const o of t){let t=H(o,c),n=o.dataset.service||'',s=!1;if(t&&'!'===t.charAt(0)&&(t=t.slice(1),s=!0),'!'===n.charAt(0)&&(n=n.slice(1),s=!0),v(e.L,t)&&(e.ne.push({Me:o,xe:!1,Ee:s,De:t,Te:n}),n)){const o=e.Y[t];o[n]||(o[n]={Se:!1})}}})(),he((()=>{const e=g.o.i.language.autoDetect;if(e){let t;if('browser'===e?t=navigator.language.slice(0,2).toLowerCase():'document'===e&&(t=document.documentElement.lang),ve(t))return t}return ye()})())})(e),t.G)return;(()=>{const e=g.o,t=g.t,n=De(),{categories:s,services:a,consentId:c,consentTimestamp:r,lastConsentTimestamp:i,data:l,revision:d}=n,f=y(s);e.p=n,e.S=c;const _=!!c&&h(c);e.h=r,e.h&&(e.h=new Date(r)),e.C=i,e.C&&(e.C=new Date(i)),e.v=void 0!==l?l:null,e.H&&_&&d!==t.revision&&(e.F=!1),e.M=!(_&&e.F&&e.h&&e.C&&f),e.M,e.M?t.mode===o&&((()=>{const e=g.o;for(const t of e.L){const n=e.I[t];if(n.readOnly||n.enabled&&e.i.mode===o){e.B.push(t);const o=e.Y[t]||{};for(let n in o)e.Z[t].push(n)}}})(),e.O=[...e.B]):(e.Z={...e.Z,...a},U([...e.R,...s])),e.ee={...e.Z}})();const i=Oe();if(!await Ce())return!1;if($(null,r=Ie,pe,Se),g.o.M&&be(r,Se),g.t.lazyHtmlGeneration||pe(r,Se),(()=>{const e=g.se,t=g.o;B(e.he,'keydown',(e=>{if('Tab'!==e.key)return;if(!t.k&&!t.T)return;const o=t.W,n=t.K;if(o.length>0){const t=M();e.shiftKey?t!==o[0]&&n.contains(t)||(D(e),z(o[1])):t!==o[1]&&n.contains(t)||(D(e),z(o[0]))}}),!0)})(),n.autoShow&&!i&&Fe(!0),i)return ee(),Z(s.de);n.mode===o&&ee(t.B)}var r},e.setCookieData=e=>{let t,o=e.value,n=e.mode,s=!1;const a=g.o;if('update'===n){a.v=t=Le('data');const e=typeof t==typeof o;if(e&&'object'==typeof t){!t&&(t={});for(let e in o)t[e]!==o[e]&&(t[e]=o[e],s=!0)}else!e&&t||t===o||(t=o,s=!0)}else t=o,s=!0;return s&&(a.v=t,a.p.data=t,xe(!0)),s},e.setLanguage=async(e,t)=>{if(!ve(e))return!1;const o=g.o;return!(e===ye()&&!0!==t||!await Ce(e)||(he(e),o.D&&be(Ie,Se),o.A&&pe(Ie,Se),we(),0))},e.show=Fe,e.showPreferences=je,e.validConsent=Oe,e.validCookie=e=>''!==Te(e,!0)},'object'==typeof exports&&'undefined'!=typeof module?t(exports):'function'==typeof define&&define.amd?define(['exports'],t):t((e='undefined'!=typeof globalThis?globalThis:e||self).CookieConsent={});
var e,t;e=this,t=function(e){'use strict';const t='opt-in',o='opt-out',n='show--consent',s='show--preferences',a='disable--interaction',c='data-category',r='div',i='button',l='aria-hidden',d='btn-group',f='click',_='data-role',u='consentModal',p='preferencesModal';class m{constructor(){this.t={mode:t,revision:0,autoShow:!0,lazyHtmlGeneration:!0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:'cc_cookie',expiresAfterDays:182,domain:'',path:'/',sameSite:'Lax'}},this.o={i:{},l:'',_:{},u:{},p:{},m:[],g:!1,v:null,h:null,C:null,S:'',M:!0,D:!1,T:!1,k:!1,A:!1,N:[],H:!1,F:!0,V:[],j:!1,P:'',I:!1,L:[],O:[],R:[],B:[],G:!1,J:!1,U:!1,$:[],q:[],K:null,W:[],X:[],Y:{},Z:{},ee:{},te:{},oe:{},ne:[]},this.se={ae:{},ce:{}},this.re={},this.ie={le:'cc:onFirstConsent',de:'cc:onConsent',fe:'cc:onChange',_e:'cc:onModalShow',ue:'cc:onModalHide',pe:'cc:onModalReady'}}}const g=new m,b=(e,t)=>e.indexOf(t),v=(e,t)=>-1!==b(e,t),y=e=>Array.isArray(e),h=e=>'string'==typeof e,C=e=>!!e&&'object'==typeof e&&!y(e),w=e=>'function'==typeof e,S=e=>Object.keys(e),x=e=>Array.from(new Set(e)),M=()=>document.activeElement,D=e=>e.preventDefault(),T=(e,t)=>e.querySelectorAll(t),E=e=>e.dispatchEvent(new Event('change')),k=e=>{const t=document.createElement(e);return e===i&&(t.type=e),t},A=(e,t,o)=>e.setAttribute(t,o),N=(e,t,o)=>{e.removeAttribute(o?'data-'+t:t)},H=(e,t,o)=>e.getAttribute(o?'data-'+t:t),F=(e,t)=>e.appendChild(t),V=(e,t)=>e.classList.add(t),j=(e,t)=>V(e,'cm__'+t),P=(e,t)=>V(e,'pm__'+t),I=(e,t)=>e.classList.remove(t),L=e=>{if('object'!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let o in e){let n=e[o];t[o]=L(n)}return t},O=()=>{const e={},{L:t,Y:o,Z:n}=g.o;for(const s of t)e[s]=J(n[s],S(o[s]));return e},R=(e,t)=>dispatchEvent(new CustomEvent(e,{detail:t})),B=(e,t,o,n)=>{e.addEventListener(t,o),n&&g.o.m.push({me:e,ge:t,be:o})},G=()=>{const e=g.t.cookie.expiresAfterDays;return w(e)?e(g.o.P):e},J=(e,t)=>{const o=e||[],n=t||[];return o.filter((e=>!v(n,e))).concat(n.filter((e=>!v(o,e))))},U=e=>{g.o.O=x(e),g.o.P=(()=>{let e='custom';const{O:t,L:o,R:n}=g.o,s=t.length;return s===o.length?e='all':s===n.length&&(e='necessary'),e})()},$=(e,t,o,n)=>{const s='accept-',{show:a,showPreferences:c,hide:r,hidePreferences:i,acceptCategory:l}=t,d=e||document,_=e=>T(d,`[data-cc="${e}"]`),u=(e,t)=>{D(e),l(t),i(),r()},p=_('show-preferencesModal'),m=_('show-consentModal'),b=_(s+'all'),v=_(s+'necessary'),y=_(s+'custom'),h=g.t.lazyHtmlGeneration;for(const e of p)A(e,'aria-haspopup','dialog'),B(e,f,(e=>{D(e),c()})),h&&(B(e,'mouseenter',(e=>{D(e),g.o.A||o(t,n)}),!0),B(e,'focus',(()=>{g.o.A||o(t,n)})));for(let e of m)A(e,'aria-haspopup','dialog'),B(e,f,(e=>{D(e),a(!0)}),!0);for(let e of b)B(e,f,(e=>{u(e,'all')}),!0);for(let e of y)B(e,f,(e=>{u(e)}),!0);for(let e of v)B(e,f,(e=>{u(e,[])}),!0)},z=(e,t,o)=>{e&&(o&&(e.tabIndex=-1),e.focus()),t&&(g.o.K=1===t?g.se.ve:g.se.ye,g.o.W=1===t?g.o.$:g.o.q),o&&e&&e.removeAttribute('tabindex')};let q;const K=e=>{clearTimeout(q),e?V(g.se.he,a):q=setTimeout((()=>{I(g.se.he,a)}),500)},Q=['M 19.5 4.5 L 4.5 19.5 M 4.5 4.501 L 19.5 19.5','M 3.572 13.406 L 8.281 18.115 L 20.428 5.885','M 21.999 6.94 L 11.639 17.18 L 2.001 6.82 '],W=(e=0,t=1.5)=>`<svg viewBox="0 0 24 24" stroke-width="${t}"><path d="${Q[e]}"/></svg>`,X=['[href]',i,'input','details','[tabindex]'].map((e=>e+':not([tabindex="-1"])')).join(','),Y=e=>{const{o:t,se:o}=g,n=(e,t)=>{const o=T(e,X);t[0]=o[0],t[1]=o[o.length-1]};1===e&&t.D&&n(o.Ce,t.$),2===e&&t.A&&n(o.we,t.q)},Z=(e,t,o)=>{const{fe:n,de:s,le:a,ue:c,pe:r,_e:i}=g.re,l=g.ie,d={cookie:g.o.p};if(t){const n={modalName:t};return e===l._e?w(i)&&i(n):e===l.ue?w(c)&&c(n):(n.modal=o,w(r)&&r(n)),R(e,n)}e===l.le?w(a)&&a(L(d)):e===l.de?w(s)&&s(L(d)):(d.changedCategories=g.o.V,d.changedServices=g.o.te,w(n)&&n(L(d))),R(e,L(d))},ee=e=>{const{Z:t,te:o,L:n,Y:s,ne:a,p:r,V:i}=g.o;for(const e of n){const n=o[e]||t[e]||[];for(const o of n){const n=s[e][o];if(!n)continue;const{onAccept:a,onReject:c}=n;!n.Se&&v(t[e],o)&&w(a)?(n.Se=!0,a()):n.Se&&!v(t[e],o)&&w(c)&&(n.Se=!1,c())}}if(!g.t.manageScriptTags)return;const l=a,d=e||r.categories||[],f=(e,n)=>{if(n>=e.length)return;const s=a[n];if(s.xe)return f(e,n+1);const r=s.Me,l=s.De,_=s.Te,u=v(d,l),p=!!_&&v(t[l],_);if(!_&&!s.Ee&&u||!_&&s.Ee&&!u&&v(i,l)||_&&!s.Ee&&p||_&&s.Ee&&!p&&v(o[l]||[],_)){s.xe=!0;const t=H(r,'type',!0);N(r,'type',!!t),N(r,c);let o=H(r,'src',!0);o&&N(r,'src',!0);const a=k('script');a.textContent=r.innerHTML;for(const{nodeName:e}of r.attributes)A(a,e,r[e]||H(r,e));t&&(a.type=t),o?a.src=o:o=r.src;const i=!!o&&(!t||['text/javascript','module'].includes(t));if(i&&(a.onload=a.onerror=()=>{f(e,++n)}),r.replaceWith(a),i)return}f(e,++n)};f(l,0)},te='bottom',oe='left',ne='center',se='right',ae='inline',ce='wide',re='pm--',ie=['middle','top',te],le=[oe,ne,se],de={box:{ke:[ce,ae],Ae:ie,Ne:le,He:te,Fe:se},cloud:{ke:[ae],Ae:ie,Ne:le,He:te,Fe:ne},bar:{ke:[ae],Ae:ie.slice(1),Ne:[],He:te,Fe:''}},fe={box:{ke:[],Ae:[],Ne:[],He:'',Fe:''},bar:{ke:[ce],Ae:[],Ne:[oe,se],He:'',Fe:oe}},_e=e=>{const t=g.o.i.guiOptions,o=t&&t.consentModal,n=t&&t.preferencesModal;0===e&&ue(g.se.Ce,de,o,'cm--','box','cm'),1===e&&ue(g.se.we,fe,n,re,'box','pm')},ue=(e,t,o,n,s,a)=>{e.className=a;const c=o&&o.layout,r=o&&o.position,i=o&&o.flipButtons,l=!o||!1!==o.equalWeightButtons,d=c&&c.split(' ')||[],f=d[0],_=d[1],u=f in t?f:s,p=t[u],m=v(p.ke,_)&&_,b=r&&r.split(' ')||[],y=b[0],h=n===re?b[0]:b[1],C=v(p.Ae,y)?y:p.He,w=v(p.Ne,h)?h:p.Fe,S=t=>{t&&V(e,n+t)};S(u),S(m),S(C),S(w),i&&S('flip');const x=a+'__btn--secondary';if('cm'===a){const{Ve:e,je:t}=g.se;e&&(l?I(e,x):V(e,x)),t&&(l?I(t,x):V(t,x))}else{const{Pe:e}=g.se;e&&(l?I(e,x):V(e,x))}},pe=(e,t)=>{const o=g.o,n=g.se,{hide:s,hidePreferences:a,acceptCategory:c}=e,u=e=>{c(e),a(),s()},m=o.u&&o.u.preferencesModal;if(!m)return;const b=m.title,v=m.closeIconLabel,y=m.acceptAllBtn,w=m.acceptNecessaryBtn,x=m.savePreferencesBtn,M=m.sections,D=y||w||x;if(n.ye)n.Ie=k(r),P(n.Ie,'body');else{n.ye=k(r),V(n.ye,'pm-wrapper'),n.ye.tabIndex=-1;const e=k('div');V(e,'pm-overlay'),F(n.ye,e),B(e,f,a),n.we=k(r),n.we.style.visibility='hidden',V(n.we,'pm'),A(n.we,'role','dialog'),A(n.we,l,!0),A(n.we,'aria-modal',!0),A(n.we,'aria-labelledby','pm__title'),B(n.he,'keydown',(e=>{27===e.keyCode&&a()}),!0),n.Le=k(r),P(n.Le,'header'),n.Oe=k(r),P(n.Oe,'title'),n.Oe.id='pm__title',A(n.Oe,'role','heading'),A(n.Oe,'aria-level','2'),n.Re=k(i),P(n.Re,'close-btn'),A(n.Re,'aria-label',m.closeIconLabel||''),B(n.Re,f,a),n.Be=k('span'),n.Be.innerHTML=W(),F(n.Re,n.Be),n.Ge=k(r),P(n.Ge,'body'),n.Je=k(r),P(n.Je,'footer');var T=k(r);V(T,'btns');var E=k(r),N=k(r);P(E,d),P(N,d),F(n.Je,E),F(n.Je,N),F(n.Le,n.Oe),F(n.Le,n.Re),F(n.we,n.Le),F(n.we,n.Ge),D&&F(n.we,n.Je),F(n.ye,n.we)}let H;b&&(n.Oe.innerHTML=b,v&&A(n.Re,'aria-label',v)),M&&M.forEach(((e,t)=>{const s=e.title,a=e.description,c=e.linkedCategory,d=c&&o.I[c],_=e.cookieTable,u=_&&_.body,p=_&&_.caption,g=u&&u.length>0,b=!!d,v=b&&o.Y[c],y=C(v)&&S(v)||[],w=b&&(!!a||!!g||S(v).length>0);var x=k(r);if(P(x,'section'),w||a){var M=k(r);P(M,'section-desc-wrapper')}let D=y.length;if(w&&D>0){const e=k(r);P(e,'section-services');for(const t of y){const o=v[t],n=o&&o.label||t,s=k(r),a=k(r),i=k(r),l=k(r);P(s,'service'),P(l,'service-title'),P(a,'service-header'),P(i,'service-icon');const f=me(n,t,d,!0,c);l.innerHTML=n,F(a,i),F(a,l),F(s,a),F(s,f),F(e,s)}F(M,e)}if(s){var T=k(r),E=k(b?i:r);if(P(T,'section-title-wrapper'),P(E,'section-title'),E.innerHTML=s,F(T,E),b){const e=k('span');e.innerHTML=W(2,3.5),P(e,'section-arrow'),F(T,e),x.className+='--toggle';const t=me(s,c,d);let o=m.serviceCounterLabel;if(D>0&&h(o)){let e=k('span');P(e,'badge'),P(e,'service-counter'),A(e,l,!0),A(e,'data-servicecounter',D),o&&(o=o.split('|'),o=o.length>1&&D>1?o[1]:o[0],A(e,'data-counterlabel',o)),e.innerHTML=D+(o?' '+o:''),F(E,e)}if(w){P(x,'section--expandable');var N=c+'-desc';A(E,'aria-expanded',!1),A(E,'aria-controls',N)}F(T,t)}else A(E,'role','heading'),A(E,'aria-level','3');F(x,T)}if(a){var j=k(r);P(j,'section-desc'),j.innerHTML=a,F(M,j)}if(w&&(A(M,l,'true'),M.id=N,((e,t,o)=>{B(E,f,(()=>{t.classList.contains('is-expanded')?(I(t,'is-expanded'),A(o,'aria-expanded','false'),A(e,l,'true')):(V(t,'is-expanded'),A(o,'aria-expanded','true'),A(e,l,'false'))}))})(M,x,E),g)){const e=k('table'),o=k('thead'),s=k('tbody');if(p){const t=k('caption');P(t,'table-caption'),t.innerHTML=p,e.appendChild(t)}P(e,'section-table'),P(o,'table-head'),P(s,'table-body');const a=_.headers,c=S(a),i=n.Ue.createDocumentFragment(),l=k('tr');for(const e of c){const o=a[e],n=k('th');n.id='cc__row-'+o+t,A(n,'scope','col'),P(n,'table-th'),n.innerHTML=o,F(i,n)}F(l,i),F(o,l);const d=n.Ue.createDocumentFragment();for(const e of u){const o=k('tr');P(o,'table-tr');for(const n of c){const s=a[n],c=e[n],i=k('td'),l=k(r);P(i,'table-td'),A(i,'data-column',s),A(i,'headers','cc__row-'+s+t),l.insertAdjacentHTML('beforeend',c),F(i,l),F(o,i)}F(d,o)}F(s,d),F(e,o),F(e,s),F(M,e)}(w||a)&&F(x,M);const L=n.Ie||n.Ge;b?(H||(H=k(r),P(H,'section-toggles')),H.appendChild(x)):H=null,F(L,H||x)})),y&&(n.$e||(n.$e=k(i),P(n.$e,'btn'),A(n.$e,_,'all'),F(E,n.$e),B(n.$e,f,(()=>u('all')))),n.$e.innerHTML=y),w&&(n.Pe||(n.Pe=k(i),P(n.Pe,'btn'),A(n.Pe,_,'necessary'),F(E,n.Pe),B(n.Pe,f,(()=>u([])))),n.Pe.innerHTML=w),x&&(n.ze||(n.ze=k(i),P(n.ze,'btn'),P(n.ze,'btn--secondary'),A(n.ze,_,'save'),F(N,n.ze),B(n.ze,f,(()=>u()))),n.ze.innerHTML=x),n.Ie&&(n.we.replaceChild(n.Ie,n.Ge),n.Ge=n.Ie),_e(1),o.A||(o.A=!0,Z(g.ie.pe,p,n.we),t(e),F(n.qe,n.ye),setTimeout((()=>V(n.ye,'cc--anim')),100)),Y(2)};function me(e,t,n,s,a){const r=g.o,i=g.se,d=k('label'),_=k('input'),u=k('span'),p=k('span'),m=k('span'),b=k('span'),y=k('span');if(b.innerHTML=W(1,3),y.innerHTML=W(0,3),_.type='checkbox',V(d,'section__toggle-wrapper'),V(_,'section__toggle'),V(b,'toggle__icon-on'),V(y,'toggle__icon-off'),V(u,'toggle__icon'),V(p,'toggle__icon-circle'),V(m,'toggle__label'),A(u,l,'true'),s?(V(d,'toggle-service'),A(_,c,a),i.ce[a][t]=_):i.ae[t]=_,s?(e=>{B(_,'change',(()=>{const t=i.ce[e],o=i.ae[e];r.ee[e]=[];for(let o in t){const n=t[o];n.checked&&r.ee[e].push(n.value)}o.checked=r.ee[e].length>0}))})(a):(e=>{B(_,f,(()=>{const t=i.ce[e],o=_.checked;r.ee[e]=[];for(let n in t)t[n].checked=o,o&&r.ee[e].push(n)}))})(t),_.value=t,m.textContent=e.replace(/<.*>.*<\/.*>/gm,''),F(p,y),F(p,b),F(u,p),r.M)(n.readOnly||r.i.mode===o&&n.enabled)&&(_.checked=!0);else if(s){const e=r.Z[a];_.checked=n.readOnly||v(e,t)}else v(r.O,t)&&(_.checked=!0);return n.readOnly&&(_.disabled=!0),F(d,_),F(d,u),F(d,m),d}const ge=()=>{const e=k('span');return g.se.Ke||(g.se.Ke=e),e},be=(e,t)=>{const o=g.o,n=g.se,{hide:s,showPreferences:a,acceptCategory:c}=e,p=o.u&&o.u.consentModal;if(!p)return;const m=p.acceptAllBtn,b=p.acceptNecessaryBtn,v=p.showPreferencesBtn,y=p.closeIconLabel,h=p.footer,C=p.label,w=p.title,S=e=>{s(),c(e)};if(!n.ve){n.ve=k(r),n.Ce=k(r),n.Qe=k(r),n.We=k(r),n.Xe=k(r),V(n.ve,'cm-wrapper'),V(n.Ce,'cm'),j(n.Qe,'body'),j(n.We,'texts'),j(n.Xe,'btns'),n.ve.tabIndex=-1,A(n.Ce,'role','dialog'),A(n.Ce,'aria-modal','true'),A(n.Ce,l,'false'),A(n.Ce,'aria-describedby','cm__desc'),C?A(n.Ce,'aria-label',C):w&&A(n.Ce,'aria-labelledby','cm__title'),n.Ce.style.visibility='hidden';const e='box',t=o.i.guiOptions,s=t&&t.consentModal,a=(s&&s.layout||e).split(' ')[0]===e;w&&y&&a&&(n.je||(n.je=k(i),n.je.innerHTML=W(),j(n.je,'btn'),j(n.je,'btn--close'),B(n.je,f,(()=>{S([])})),F(n.Qe,n.je)),A(n.je,'aria-label',y)),F(n.Qe,n.We),(m||b||v)&&F(n.Qe,n.Xe),F(n.Ce,n.Qe),F(n.ve,n.Ce)}w&&(n.Ye||(n.Ye=k(r),n.Ye.className=n.Ye.id='cm__title',A(n.Ye,'role','heading'),A(n.Ye,'aria-level','2'),F(n.We,n.Ye)),n.Ye.innerHTML=w);let x=p.description;if(x&&(o.H&&(x=x.replace('{{revisionMessage}}',o.F?'':p.revisionMessage||'')),n.Ze||(n.Ze=k(r),n.Ze.className=n.Ze.id='cm__desc',F(n.We,n.Ze)),n.Ze.innerHTML=x),m&&(n.et||(n.et=k(i),F(n.et,ge()),j(n.et,'btn'),A(n.et,_,'all'),B(n.et,f,(()=>{S('all')}))),n.et.firstElementChild.innerHTML=m),b&&(n.Ve||(n.Ve=k(i),F(n.Ve,ge()),j(n.Ve,'btn'),A(n.Ve,_,'necessary'),B(n.Ve,f,(()=>{S([])}))),n.Ve.firstElementChild.innerHTML=b),v&&(n.tt||(n.tt=k(i),F(n.tt,ge()),j(n.tt,'btn'),j(n.tt,'btn--secondary'),A(n.tt,_,'show'),B(n.tt,'mouseenter',(()=>{o.A||pe(e,t)})),B(n.tt,f,a)),n.tt.firstElementChild.innerHTML=v),n.ot||(n.ot=k(r),j(n.ot,d),m&&F(n.ot,n.et),b&&F(n.ot,n.Ve),(m||b)&&F(n.Qe,n.ot),F(n.Xe,n.ot)),n.tt&&!n.nt&&(n.nt=k(r),n.Ve&&n.et?(j(n.nt,d),F(n.nt,n.tt),F(n.Xe,n.nt)):(F(n.ot,n.tt),j(n.ot,d+'--uneven'))),h){if(!n.st){let e=k(r),t=k(r);n.st=k(r),j(e,'footer'),j(t,'links'),j(n.st,'link-group'),F(t,n.st),F(e,t),F(n.Ce,e)}n.st.innerHTML=h}_e(0),o.D||(o.D=!0,Z(g.ie.pe,u,n.Ce),t(e),F(n.qe,n.ve),setTimeout((()=>V(n.ve,'cc--anim')),100)),Y(1),$(n.Qe,e,pe,t)},ve=e=>h(e)&&e in g.o._,ye=()=>g.o.l||g.o.i.language.default,he=e=>{e&&(g.o.l=e)},Ce=async e=>{const t=g.o;let o=ve(e)?e:ye(),n=t._[o];if(!n)return!1;if(h(n)){const e=await(async e=>{try{const t=await fetch(e);return!(!t||!t.ok)&&await t.json()}catch(e){return!1}})(n);if(!e)return!1;n=e}return t.u=n,he(o),!0},we=()=>{let e=g.o.i.language.rtl,t=g.se.qe;e&&t&&(y(e)||(e=[e]),v(e,g.o.l)?V(t,'cc--rtl'):I(t,'cc--rtl'))},Se=()=>{const e=g.se;if(!e.qe){e.qe=k(r),e.qe.id='cc-main',we();let t=g.o.i.root;t&&h(t)&&(t=document.querySelector(t)),(t||e.Ue.body).appendChild(e.qe)}},xe=e=>{const{hostname:t,protocol:o}=location,{name:n,path:s,domain:a,sameSite:c}=g.t.cookie,r=encodeURIComponent(JSON.stringify(g.o.p)),i=e?(()=>{const e=g.o.C,t=e?new Date-e:0;return 864e5*G()-t})():864e5*G(),l=new Date;l.setTime(l.getTime()+i);let d=n+'='+r+(0!==i?'; expires='+l.toUTCString():'')+'; Path='+s+'; SameSite='+c;v(t,'.')&&(d+='; Domain='+a),'https:'===o&&(d+='; Secure'),document.cookie=d,g.o.p},Me=(e,t,o)=>{const n=o||g.t.cookie.domain,s=t||g.t.cookie.path,a='www.'===n.slice(0,4),c=a&&n.substring(4),r=(e,t)=>{document.cookie=e+'=; path='+s+(t?'; domain=.'+t:'')+'; expires=Thu, 01 Jan 1970 00:00:01 GMT;'};for(const t of e)r(t),r(t,n),a&&r(t,c)},De=e=>(e=>{let t;try{t=JSON.parse(decodeURIComponent(e))}catch(e){t={}}return t})(Te(e||g.t.cookie.name,!0)),Te=(e,t)=>{const o=document.cookie.match('(^|;)\\s*'+e+'\\s*=\\s*([^;]+)');return o?t?o.pop():e:''},Ee=e=>{const t=document.cookie.split(/;\s*/),o=[];for(const n of t){let t=n.split('=')[0];if(e)try{e.test(t)&&o.push(t)}catch(e){}else o.push(t)}return o},ke=(e,n=[])=>{((e,t)=>{const{L:o,O:n,R:s,A:a,ee:c,Y:r}=g.o;let i=[];if(e){y(e)?i.push(...e):h(e)&&(i='all'===e?o:[e]);for(const e of o)c[e]=v(i,e)?S(r[e]):[]}else i=a?(()=>{const e=g.se.ae;if(!e)return[];let t=[];for(let o in e)e[o].checked&&t.push(o);return t})():n;i=i.filter((e=>!v(o,e)||!v(t,e))),i.push(...s),U(i)})(e,n),(e=>{const t=g.o,{ee:o,R:n,Z:s,Y:a,L:c}=t,r=c;t.oe=L(s);for(const e of r){const t=a[e],c=S(t),r=o[e]&&o[e].length>0,i=v(n,e);if(0!==c.length){if(s[e]=[],i)s[e].push(...c);else if(r){const t=o[e];s[e].push(...t)}else s[e]=[];s[e]=x(s[e])}}})(),(()=>{const e=g.o;g.t.mode===o&&e.M?e.V=J(e.B,e.O):e.V=J(e.O,e.p.categories);let n=e.V.length>0,s=!1;for(const t of e.L)e.te[t]=J(e.Z[t],e.oe[t]),e.te[t].length>0&&(s=!0);const a=g.se.ae;for(let t in a)a[t].checked=v(e.O,t);for(const t of e.L){const o=g.se.ce[t],n=e.Z[t];for(const e in o)o[e].checked=v(n,e)}e.h||(e.h=new Date),e.S||(e.S=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),e.p={categories:L(e.O),revision:g.t.revision,data:e.v,consentTimestamp:e.h.toISOString(),consentId:e.S,services:L(e.Z)};let c=!1;(e.M||n||s)&&(e.M&&(e.M=!1,c=!0),e.C?e.C=new Date:e.C=e.h,e.p.lastConsentTimestamp=e.C.toISOString(),xe(),g.t.autoClearCookies&&(c||!e.M&&n)&&(e=>{const t=g.o,o=Ee();t.j=!1;let n=e?t.L:t.V;n=n.filter((e=>{let o=t.I[e];return!!o&&!o.readOnly&&!!o.autoClear}));for(const s of n){const n=t.I[s].autoClear,a=n&&n.cookies||[],c=v(t.V,s),r=!v(t.O,s),i=c&&r;if(e&&r||!e&&i){!0===n.reloadPage&&i&&(t.j=!0);for(const e of a){let t=[];const n=e.name,s=e.domain,a=e.path;if(n instanceof RegExp)for(let e of o)n.test(e)&&t.push(e);else{let e=b(o,n);e>-1&&t.push(o[e])}t.length>0&&Me(t,a,s)}}}})(c),ee()),c&&(Z(g.ie.le),Z(g.ie.de),g.t.mode===t)||((n||s)&&Z(g.ie.fe),e.j&&location.reload())})()},Ae=e=>{const t=g.o.M?[]:g.o.O;return v(t,e)},Ne=(e,t)=>{const o=g.o.M?[]:g.o.Z[t];return v(o,e)},He=(e,t,o)=>{let n=[];const s=e=>{if(h(e)){let t=Te(e);''!==t&&n.push(t)}else n.push(...Ee(e))};if(y(e))for(let t of e)s(t);else s(e);Me(n,t,o)},Fe=e=>{const{se:t,o:o}=g;if(!o.T){if(!o.D){if(!e)return;be(Ie,Se)}o.T=!0,o.J=M(),o.g&&K(!0),V(t.he,n),A(t.Ce,l,'false'),z(t.ve,1),Z(g.ie._e,u)}},Ve=()=>{const{se:e,o:t,ie:o}=g;t.T&&(t.T=!1,t.g&&K(),z(e.Ke,!1,!0),I(e.he,n),A(e.Ce,l,'true'),z(t.J),t.J=null,Z(o.ue,u))},je=()=>{const e=g.o;e.k||(e.A||pe(Ie,Se),e.k=!0,V(g.se.he,s),A(g.se.we,l,'false'),e.T?e.U=M():e.J=M(),z(g.se.ye,2),Z(g.ie._e,p))},Pe=()=>{const e=g.o;e.k&&(e.k=!1,(()=>{const e=Oe(),t=g.o.I,n=g.se.ae,s=g.se.ce,a=e=>g.o.i.mode===o&&!!t[e].enabled;for(const o in n){const c=!!t[o].readOnly;n[o].checked=c||(e?Ae(o):a(o));for(const t in s[o])s[o][t].checked=c||(e?Ne(t,o):a(o))}})(),z(g.se.Be,!1,!0),I(g.se.he,s),A(g.se.we,l,'true'),e.T?(z(e.U,1),e.U=null):(z(e.J),e.J=null),Z(g.ie.ue,p))};var Ie={show:Fe,hide:Ve,showPreferences:je,hidePreferences:Pe,acceptCategory:ke};const Le=(e,t)=>{const o=De(t);return e?o[e]:o},Oe=()=>!g.o.M;e.acceptCategory=ke,e.acceptService=(e,t)=>{const{L:o,Y:n}=g.o;if(!(e&&t&&h(t)&&v(o,t)&&0!==S(n[t]).length))return!1;((e,t)=>{const o=g.o,{Y:n,ee:s,A:a}=o,c=g.se.ce[t]||{},r=g.se.ae[t]||{},i=S(n[t]);if(s[t]=[],h(e)){if('all'===e){if(s[t].push(...i),a)for(let e in c)c[e].checked=!0,E(c[e])}else if(v(i,e)&&s[t].push(e),a)for(let t in c)c[t].checked=e===t,E(c[t])}else if(y(e))for(let o of i){const n=v(e,o);n&&s[t].push(o),a&&(c[o].checked=n,E(c[o]))}const l=0===s[t].length;o.O=l?o.O.filter((e=>e!==t)):x([...o.O,t]),a&&(r.checked=!l,E(r))})(e,t),ke()},e.acceptedCategory=Ae,e.acceptedService=Ne,e.eraseCookies=He,e.getConfig=e=>{const t=g.t,o=g.o.i;return e?t[e]||o[e]:{...t,...o,cookie:{...t.cookie}}},e.getCookie=Le,e.getUserPreferences=()=>{const{P:e,Z:t}=g.o,{accepted:o,rejected:n}=(()=>{const{M:e,O:t,L:o}=g.o;return{accepted:t,rejected:e?[]:o.filter((e=>!v(t,e)))}})();return L({acceptType:e,acceptedCategories:o,rejectedCategories:n,acceptedServices:t,rejectedServices:O()})},e.hide=Ve,e.hidePreferences=Pe,e.loadScript=(e,t)=>{let o=document.querySelector('script[src="'+e+'"]');return new Promise((n=>{if(o)return n(!0);if(o=k('script'),C(t))for(const e in t)A(o,e,t[e]);o.onload=()=>n(!0),o.onerror=()=>{o.remove(),n(!1)},o.src=e,F(document.head,o)}))},e.reset=e=>{const{qe:t,he:o}=g.se,{name:c,path:r,domain:i}=g.t.cookie;e&&He(c,r,i);for(const{me:e,ge:t,be:o}of g.o.m)e.removeEventListener(t,o);t&&t.remove(),o&&o.classList.remove(a,s,n);const l=new m;for(const e in g)g[e]=l[e];window._ccRun=!1},e.run=async e=>{const{o:t,t:n,ie:s}=g,a=window;if(!a._ccRun){if(a._ccRun=!0,(e=>{const{se:t,t:n,o:s}=g,a=n,r=s,{cookie:i}=a,l=g.re,d=e.cookie,f=e.categories,_=S(f)||[],u=navigator,p=document;t.Ue=p,t.he=p.documentElement,i.domain=location.hostname,r.i=e,r.I=f,r.L=_,r._=e.language.translations,r.g=!!e.disablePageInteraction,l.le=e.onFirstConsent,l.de=e.onConsent,l.fe=e.onChange,l.ue=e.onModalHide,l._e=e.onModalShow,l.pe=e.onModalReady;const{mode:m,autoShow:b,lazyHtmlGeneration:y,autoClearCookies:h,revision:w,manageScriptTags:x,hideFromBots:M}=e;m===o&&(a.mode=m),'boolean'==typeof h&&(a.autoClearCookies=h),'boolean'==typeof x&&(a.manageScriptTags=x),'number'==typeof w&&w>=0&&(a.revision=w,r.H=!0),'boolean'==typeof b&&(a.autoShow=b),'boolean'==typeof y&&(a.lazyHtmlGeneration=y),!1===M&&(a.hideFromBots=!1),!0===a.hideFromBots&&u&&(r.G=u.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(u.userAgent)||u.webdriver),C(d)&&(a.cookie={...i,...d}),a.autoClearCookies,r.H,a.manageScriptTags,(e=>{const{I:t,Y:o,Z:n,ee:s,R:a}=g.o;for(let c of e){const e=t[c],r=e.services||{},i=C(r)&&S(r)||[];o[c]={},n[c]=[],s[c]=[],e.readOnly&&(a.push(c),n[c]=i),g.se.ce[c]={};for(let e of i){const t=r[e];t.Se=!1,o[c][e]=t}}})(_),(()=>{if(!g.t.manageScriptTags)return;const e=g.o,t=T(document,'script['+c+']');for(const o of t){let t=H(o,c),n=o.dataset.service||'',s=!1;if(t&&'!'===t.charAt(0)&&(t=t.slice(1),s=!0),'!'===n.charAt(0)&&(n=n.slice(1),s=!0),v(e.L,t)&&(e.ne.push({Me:o,xe:!1,Ee:s,De:t,Te:n}),n)){const o=e.Y[t];o[n]||(o[n]={Se:!1})}}})(),he((()=>{const e=g.o.i.language.autoDetect;if(e){let t;if('browser'===e?t=navigator.language.slice(0,2).toLowerCase():'document'===e&&(t=document.documentElement.lang),ve(t))return t}return ye()})())})(e),t.G)return;(()=>{const e=g.o,t=g.t,n=De(),{categories:s,services:a,consentId:c,consentTimestamp:r,lastConsentTimestamp:i,data:l,revision:d}=n,f=y(s);e.p=n,e.S=c;const _=!!c&&h(c);e.h=r,e.h&&(e.h=new Date(r)),e.C=i,e.C&&(e.C=new Date(i)),e.v=void 0!==l?l:null,e.H&&_&&d!==t.revision&&(e.F=!1),e.M=!(_&&e.F&&e.h&&e.C&&f),e.M,e.M?t.mode===o&&((()=>{const e=g.o;for(const t of e.L){const n=e.I[t];if(n.readOnly||n.enabled&&e.i.mode===o){e.B.push(t);const o=e.Y[t]||{};for(let n in o)e.Z[t].push(n)}}})(),e.O=[...e.B]):(e.Z={...e.Z,...a},U([...e.R,...s])),e.ee={...e.Z}})();const i=Oe();if(!await Ce())return!1;if($(null,r=Ie,pe,Se),g.o.M&&be(r,Se),g.t.lazyHtmlGeneration||pe(r,Se),(()=>{const e=g.se,t=g.o;B(e.he,'keydown',(e=>{if('Tab'!==e.key)return;if(!t.k&&!t.T)return;const o=t.W,n=t.K;if(o.length>0){const t=M();e.shiftKey?t!==o[0]&&n.contains(t)||(D(e),z(o[1])):t!==o[1]&&n.contains(t)||(D(e),z(o[0]))}}),!0)})(),n.autoShow&&!i&&Fe(!0),i)return ee(),Z(s.de);n.mode===o&&ee(t.B)}var r},e.setCookieData=e=>{let t,o=e.value,n=e.mode,s=!1;const a=g.o;if('update'===n){a.v=t=Le('data');const e=typeof t==typeof o;if(e&&'object'==typeof t){!t&&(t={});for(let e in o)t[e]!==o[e]&&(t[e]=o[e],s=!0)}else!e&&t||t===o||(t=o,s=!0)}else t=o,s=!0;return s&&(a.v=t,a.p.data=t,xe(!0)),s},e.setLanguage=async(e,t)=>{if(!ve(e))return!1;const o=g.o;return!(e===ye()&&!0!==t||!await Ce(e)||(he(e),o.D&&be(Ie,Se),o.A&&pe(Ie,Se),we(),0))},e.show=Fe,e.showPreferences=je,e.validConsent=Oe,e.validCookie=e=>''!==Te(e,!0)},'object'==typeof exports&&'undefined'!=typeof module?t(exports):'function'==typeof define&&define.amd?define(['exports'],t):t((e='undefined'!=typeof globalThis?globalThis:e||self).CookieConsent={});
{
"name": "vanilla-cookieconsent",
"version": "3.0.0-rc.15",
"version": "3.0.0-rc.16",
"description": "🍪 Simple cross-browser cookie-consent plugin written in vanilla js.",

@@ -13,3 +13,2 @@ "main": "dist/cookieconsent.umd.js",

"scripts": {
"preinstall": "npx only-allow pnpm",
"dev": "rollup --config ./rollup-full.config.mjs --watch",

@@ -42,19 +41,19 @@ "build": "pnpm rollup:full & pnpm rollup:core",

"devDependencies": {
"@babel/core": "^7.22.5",
"@babel/preset-env": "^7.22.5",
"@babel/core": "^7.22.6",
"@babel/preset-env": "^7.22.6",
"@rollup/plugin-eslint": "^9.0.4",
"@rollup/plugin-terser": "^0.4.3",
"@types/jest": "^29.5.2",
"babel-jest": "^29.5.0",
"babel-jest": "^29.6.0",
"cssnano": "^6.0.1",
"eslint": "^8.43.0",
"fast-glob": "^3.2.12",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"eslint": "^8.44.0",
"fast-glob": "^3.3.0",
"jest": "^29.6.0",
"jest-environment-jsdom": "^29.6.0",
"postcss-combine-duplicated-selectors": "^10.0.3",
"rollup": "^3.25.1",
"rollup": "^3.26.1",
"rollup-plugin-postcss": "^4.0.2",
"sass": "^1.63.4",
"sass": "^1.63.6",
"sitemap": "^7.1.1",
"vitepress": "1.0.0-beta.3"
"vitepress": "1.0.0-beta.5"
},

@@ -61,0 +60,0 @@ "jest": {

# CookieConsent v3
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![Latest version](https://img.shields.io/github/package-json/v/orestbida/cookieconsent/v3.0-beta?color=2b4eed&label=Release)](https://github.com/orestbida/cookieconsent/releases/v3.0.0-rc.15)
[![Latest version](https://img.shields.io/github/package-json/v/orestbida/cookieconsent/v3.0-beta?color=2b4eed&label=Release)](https://github.com/orestbida/cookieconsent/releases/v3.0.0-rc.16)
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/orestbida/cookieconsent/tree/v3%2E0-beta.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/orestbida/cookieconsent/tree/v3%2E0-beta)

@@ -6,0 +6,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc