(()=>{(()=>{let t=document,e=t.createElement("style");e.textContent=".f3cc{font-size:16px;line-height:1.3;--_b:var(--f3cc-background,#e9e9e9);--_f:var(--f3cc-foreground,#000000);--_B:var(--f3cc-button-background,#cbcbcb);--_A:var(--f3cc-accept-background,#90f690);--_F:var(--f3cc-button-foreground,var(--_f));--_E:var(--f3cc-accept-foreground,var(--_F))}.f3cc .f3cc-banner{position:fixed;bottom:0;width:100%;background:var(--_b);color:var(--_f);z-index:2000;padding:1rem 1rem 1.25rem}.f3cc .f3cc-embed{background:var(--_b);color:var(--_f);padding:4rem}.f3cc .f3cc-container{display:flex;gap:2rem;max-width:70em;margin:0 auto;width:80%}@media (max-width:60rem){.f3cc .f3cc-container{width:100%;flex-direction:column}}.f3cc .f3cc-title{font-size:1.5em;font-weight:700;margin-bottom:.25em}.f3cc .f3cc-description a{color:inherit;text-decoration:underline}.f3cc .f3cc-description a:hover{opacity:.7}.f3cc .f3cc-buttons{display:flex;flex-direction:column;gap:1rem;justify-content:center;align-items:stretch}.f3cc .f3cc-button{display:inline-block;background:var(--_B);color:var(--_F);padding:.8rem 1.2rem;white-space:nowrap;text-decoration:none;text-align:center;cursor:pointer;border:none}.f3cc .f3cc-button:hover{opacity:.7}.f3cc .f3cc-button.accept{background:var(--_A);color:var(--_E)}.f3cc .f3cc-button.modify{position:fixed;z-index:2000;bottom:1rem;right:1rem}.f3cc-embed .f3cc-description{margin-bottom:1em}",t.head.append(e)})();var u=window,d=document,h=(t,e=d)=>e.querySelector(t),w=(t,e=d)=>e.querySelectorAll(t),S=d.body,r="className",a="textContent",A="innerHTML",C="f3cc",i=u.f3ccData||JSON.parse(h("#f3cc-data")[a]),x={},v="f3cc-embed-providers",p,l,f,o=(t,e=null,n=[])=>{let c=d.createElement(t);if(e)for(let[s,_]of Object.entries(e))s.startsWith("data-")?c.setAttribute(s,_):c[s]=_;return c.append(...n),c},g=()=>{if(l){m(l);return}let t=[o("div",{[r]:"f3cc-title",[a]:i.heading}),o("div",{[r]:"f3cc-description",[A]:i.description})],e=[o("a",{[r]:"f3cc-button accept",[a]:i.buttonAccept,onclick:E(!0)}),o("a",{[r]:"f3cc-button reject",[a]:i.buttonReject,onclick:E(!1)})];l=o("div",{[r]:"f3cc f3cc-banner"},[o("div",{[r]:"f3cc-container"},[o("div",{[r]:"f3cc-content"},t),o("div",{[r]:"f3cc-buttons"},e)])]),y().append(l)},$=()=>{if(f){m(f);return}let t;if(t=h(".f3cc-modify")){t.addEventListener("click",c=>{c.preventDefault(),g()});return}let e=i.ppu,n=u.location;i.buttonModify&&(!e||e===`${n.protocol}//${n.host}${n.pathname}`)&&(f=o("a",{[r]:"f3cc-button modify",[a]:i.buttonModify,onclick:c=>{c.preventDefault(),m(f,"none"),g()}}),y().append(f))},T=t=>{let e=`${C}=${t};max-age=31536000;path=/;sameSite=Strict`;i.domain&&(e+=`;domain=${i.domain}`),d.cookie=e},N=()=>{let t=`${C}=`;for(let e of d.cookie.split("; "))if(e.startsWith(t))return decodeURIComponent(e.substring(t.length))},k="all",j="essential",q=()=>{let t=N();return k===t||j===t},L=()=>N()===k,m=(t,e="")=>{t&&(t.style.display=e)},E=t=>e=>{e.preventDefault(),T(t?k:j),m(l,"none"),$(),b(),M(),u.dispatchEvent(new Event(`f3cc_consent_${t?"granted":"denied"}`))},M=()=>{if(L())for(let t of i.cookies){let e=x[t.name];e||(x[t.name]=e=o("div"),e.dataset.name=t.name,y().append(e)),O(e,t.script)}},y=()=>(p||(p=o("div",{[r]:"f3cc"}),S.append(p)),p),D={},z=(t,e)=>{try{localStorage.setItem(t,JSON.stringify(e))}catch{D[t]=e}},I=t=>{try{return JSON.parse(localStorage.getItem(t))}catch{return D[t]}},b=()=>{let t=I(v)||[];for(let e of w(".f3cc-embed")){let n=h("template",e),c=e.dataset.provider;if(n&&c&&(L()||t.includes(c))){let s=n.content.cloneNode(!0);e.closest(".f3cc").replaceWith(s)}}};u.f3ccRenderEmbeds=b;var F=()=>{S.addEventListener("click",t=>{let e=t.target.closest(".f3cc-button"),n=e?.closest(".f3cc-embed");if(e&&n){t.preventDefault();let c=I(v)||[];c.push(n.dataset.provider),z(v,c),b()}})},O=(t,e)=>{t[A]=e;for(let n of w("script",t)){let c=o("script");for(let s of n.attributes)c.setAttribute(s.name,s.value);c[a]=n[a],n.replaceWith(c)}};M();b();F();q()?$():g();})();
