/*!
* CookieConsent 3.0.1
* https://github.com/orestbida/cookieconsent
* Author Orest Bida
* Released under the MIT License
*/const Et="opt-in",ke="opt-out",At="show--consent",Ct="show--preferences",lt="disable--interaction",De="data-category",A="div",z="button",Z="aria-hidden",Le="btn-group",B="click",be="data-role",Je="consentModal",Ke="preferencesModal";class rn{constructor(){this.t={mode:Et,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:[],v:!1,h:null,C:null,S:null,M:"",D:!0,T:!1,k:!1,A:!1,N:!1,H:[],V:!1,I:!0,L:[],j:!1,F:"",P:!1,O:[],R:[],B:[],G:[],J:!1,U:!1,$:!1,q:[],K:[],W:[],X:{},Y:{},Z:{},ee:{},te:{},oe:[]},this.ne={ae:{},se:{}},this.ce={},this.re={ie:"cc:onFirstConsent",le:"cc:onConsent",de:"cc:onChange",fe:"cc:onModalShow",_e:"cc:onModalHide",ue:"cc:onModalReady"}}}const s=new rn,Mt=(e,n)=>e.indexOf(n),C=(e,n)=>Mt(e,n)!==-1,Ne=e=>Array.isArray(e),we=e=>typeof e=="string",Ge=e=>!!e&&typeof e=="object"&&!Ne(e),J=e=>typeof e=="function",fe=e=>Object.keys(e),_t=e=>Array.from(new Set(e)),Pe=()=>document.activeElement,ge=e=>e.preventDefault(),Qe=(e,n)=>e.querySelectorAll(n),g=e=>{const n=document.createElement(e);return e===z&&(n.type=e),n},T=(e,n,o)=>e.setAttribute(n,o),Fe=(e,n,o)=>{e.removeAttribute(o?"data-"+n:n)},_e=(e,n,o)=>e.getAttribute(o?"data-"+n:n),h=(e,n)=>e.appendChild(n),M=(e,n)=>e.classList.add(n),O=(e,n)=>M(e,"cm__"+n),S=(e,n)=>M(e,"pm__"+n),ie=(e,n)=>e.classList.remove(n),se=e=>{if(typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());let n=Array.isArray(e)?[]:{};for(let o in e){let t=e[o];n[o]=se(t)}return n},dt=(e,n)=>dispatchEvent(new CustomEvent(e,{detail:n})),D=(e,n,o,t)=>{e.addEventListener(n,o),t&&s.o.m.push({pe:e,me:n,ge:o})},an=()=>{const e=s.t.cookie.expiresAfterDays;return J(e)?e(s.o.F):e},Ye=(e,n)=>{const o=e||[],t=n||[];return o.filter(a=>!C(t,a)).concat(t.filter(a=>!C(o,a)))},xt=e=>{s.o.R=_t(e),s.o.F=(()=>{let n="custom";const{R:o,O:t,B:a}=s.o,l=o.length;return l===t.length?n="all":l===a.length&&(n="necessary"),n})()},Dt=(e,n,o,t)=>{const a="accept-",{show:l,showPreferences:d,hide:r,hidePreferences:i,acceptCategory:f}=n,m=e||document,c=y=>Qe(m,`[data-cc="${y}"]`),p=(y,k)=>{ge(y),f(k),i(),r()},b=c("show-preferencesModal"),u=c("show-consentModal"),w=c(a+"all"),v=c(a+"necessary"),L=c(a+"custom"),E=s.t.lazyHtmlGeneration;for(const y of b)T(y,"aria-haspopup","dialog"),D(y,B,k=>{ge(k),d()}),E&&(D(y,"mouseenter",k=>{ge(k),s.o.N||o(n,t)},!0),D(y,"focus",()=>{s.o.N||o(n,t)}));for(let y of u)T(y,"aria-haspopup","dialog"),D(y,B,k=>{ge(k),l(!0)},!0);for(let y of w)D(y,B,k=>{p(k,"all")},!0);for(let y of L)D(y,B,k=>{p(k)},!0);for(let y of v)D(y,B,k=>{p(k,[])},!0)},K=(e,n)=>{e&&(n&&(e.tabIndex=-1),e.focus(),n&&e.removeAttribute("tabindex"))},Pt=(e,n)=>{const o=t=>{t.target.removeEventListener("transitionend",o),t.propertyName==="opacity"&&getComputedStyle(e).opacity==="1"&&K((a=>a===1?s.ne.be:s.ne.ve)(n))};D(e,"transitionend",o)};let ut;const Rt=e=>{clearTimeout(ut),e?M(s.ne.ye,lt):ut=setTimeout(()=>{ie(s.ne.ye,lt)},500)},sn=["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 "],Ee=(e=0,n=1.5)=>`<svg viewBox="0 0 24 24" stroke-width="${n}"><path d="${sn[e]}"/></svg>`,It=e=>{const n=s.ne,o=s.o;(t=>{const a=t===n.he,l=o.i.disablePageInteraction?n.ye:a?n.Ce:n.ye;D(l,"keydown",d=>{if(d.key!=="Tab"||!(a?o.k&&!o.A:o.A))return;const r=Pe(),i=a?o.q:o.K;i.length!==0&&(d.shiftKey?r!==i[0]&&t.contains(r)||(ge(d),K(i[1])):r!==i[1]&&t.contains(r)||(ge(d),K(i[0])))},!0)})(e)},cn=["[href]",z,"input","details","[tabindex]"].map(e=>e+':not([tabindex="-1"])').join(","),Ht=e=>{const{o:n,ne:o}=s,t=(a,l)=>{const d=Qe(a,cn);l[0]=d[0],l[1]=d[d.length-1]};e===1&&n.T&&t(o.he,n.q),e===2&&n.N&&t(o.we,n.K)},Q=(e,n,o)=>{const{de:t,le:a,ie:l,_e:d,ue:r,fe:i}=s.ce,f=s.re;if(n){const c={modalName:n};return e===f.fe?J(i)&&i(c):e===f._e?J(d)&&d(c):(c.modal=o,J(r)&&r(c)),dt(e,c)}const m={cookie:s.o.p};e===f.ie?J(l)&&l(se(m)):e===f.le?J(a)&&a(se(m)):(m.changedCategories=s.o.L,m.changedServices=s.o.ee,J(t)&&t(se(m))),dt(e,se(m))},Re=(e,n)=>{try{return e()}catch(o){return!n&&console.warn("CookieConsent:",o),!1}},Ve=e=>{const{Y:n,ee:o,O:t,X:a,oe:l,p:d,L:r}=s.o;for(const c of t){const p=o[c]||n[c]||[];for(const b of p){const u=a[c][b];if(!u)continue;const{onAccept:w,onReject:v}=u;!u.Se&&C(n[c],b)?(u.Se=!0,J(w)&&w()):u.Se&&!C(n[c],b)&&(u.Se=!1,J(v)&&v())}}if(!s.t.manageScriptTags)return;const i=l,f=e||d.categories||[],m=(c,p)=>{if(p>=c.length)return;const b=l[p];if(b.xe)return m(c,p+1);const u=b.Me,w=b.De,v=b.Te,L=C(f,w),E=!!v&&C(n[w],v);if(!v&&!b.ke&&L||!v&&b.ke&&!L&&C(r,w)||v&&!b.ke&&E||v&&b.ke&&!E&&C(o[w]||[],v)){b.xe=!0;const y=_e(u,"type",!0);Fe(u,"type",!!y),Fe(u,De);let k=_e(u,"src",!0);k&&Fe(u,"src",!0);const x=g("script");x.textContent=u.innerHTML;for(const{nodeName:_}of u.attributes)T(x,_,u[_]||_e(u,_));y&&(x.type=y),k?x.src=k:k=u.src;const R=!!k&&(!y||["text/javascript","module"].includes(y));if(R&&(x.onload=x.onerror=()=>{m(c,++p)}),u.replaceWith(x),R)return}m(c,++p)};m(i,0)},xe="bottom",We="left",Nt="center",et="right",je="inline",Bt="wide",Ot="pm--",Ue=["middle","top",xe],ft=[We,Nt,et],ln={box:{Ee:[Bt,je],Ae:Ue,Ne:ft,He:xe,Ve:et},cloud:{Ee:[je],Ae:Ue,Ne:ft,He:xe,Ve:Nt},bar:{Ee:[je],Ae:Ue.slice(1),Ne:[],He:xe,Ve:""}},dn={box:{Ee:[],Ae:[],Ne:[],He:"",Ve:""},bar:{Ee:[Bt],Ae:[],Ne:[We,et],He:"",Ve:We}},qt=e=>{const n=s.o.i.guiOptions,o=n&&n.consentModal,t=n&&n.preferencesModal;e===0&&mt(s.ne.he,ln,o,"cm--","box","cm"),e===1&&mt(s.ne.we,dn,t,Ot,"box","pm")},mt=(e,n,o,t,a,l)=>{e.className=l;const d=o&&o.layout,r=o&&o.position,i=o&&o.flipButtons,f=!o||o.equalWeightButtons!==!1,m=d&&d.split(" ")||[],c=m[0],p=m[1],b=c in n?c:a,u=n[b],w=C(u.Ee,p)&&p,v=r&&r.split(" ")||[],L=v[0],E=t===Ot?v[0]:v[1],y=C(u.Ae,L)?L:u.He,k=C(u.Ne,E)?E:u.Ve,x=_=>{_&&M(e,t+_)};x(b),x(w),x(y),x(k),i&&x("flip");const R=l+"__btn--secondary";if(l==="cm"){const{Ie:_,Le:q}=s.ne;_&&(f?ie(_,R):M(_,R)),q&&(f?ie(q,R):M(q,R))}else{const{je:_}=s.ne;_&&(f?ie(_,R):M(_,R))}},Ae=(e,n)=>{const o=s.o,t=s.ne,{hide:a,hidePreferences:l,acceptCategory:d}=e,r=k=>{d(k),l(),a()},i=o.u&&o.u.preferencesModal;if(!i)return;const f=i.title,m=i.closeIconLabel,c=i.acceptAllBtn,p=i.acceptNecessaryBtn,b=i.savePreferencesBtn,u=i.sections||[],w=c||p||b;if(t.Fe)t.Pe=g(A),S(t.Pe,"body");else{t.Fe=g(A),M(t.Fe,"pm-wrapper");const k=g("div");M(k,"pm-overlay"),h(t.Fe,k),D(k,B,l),t.we=g(A),M(t.we,"pm"),T(t.we,"role","dialog"),T(t.we,Z,!0),T(t.we,"aria-modal",!0),T(t.we,"aria-labelledby","pm__title"),D(t.ye,"keydown",x=>{x.keyCode===27&&l()},!0),t.Oe=g(A),S(t.Oe,"header"),t.Re=g("h2"),S(t.Re,"title"),t.Re.id="pm__title",t.Be=g(z),S(t.Be,"close-btn"),T(t.Be,"aria-label",i.closeIconLabel||""),D(t.Be,B,l),t.Ge=g("span"),t.Ge.innerHTML=Ee(),h(t.Be,t.Ge),t.Je=g(A),S(t.Je,"body"),t.Ue=g(A),S(t.Ue,"footer");var v=g(A);M(v,"btns");var L=g(A),E=g(A);S(L,Le),S(E,Le),h(t.Ue,L),h(t.Ue,E),h(t.Oe,t.Re),h(t.Oe,t.Be),t.ve=g(A),T(t.ve,"tabIndex",-1),h(t.we,t.ve),h(t.we,t.Oe),h(t.we,t.Je),w&&h(t.we,t.Ue),h(t.Fe,t.we)}let y;f&&(t.Re.innerHTML=f,m&&T(t.Be,"aria-label",m)),u.forEach((k,x)=>{const R=k.title,_=k.description,q=k.linkedCategory,me=q&&o.P[q],ce=k.cookieTable,X=ce&&ce.body,te=ce&&ce.caption,$=X&&X.length>0,H=!!me,F=H&&o.X[q],ne=Ge(F)&&fe(F)||[],I=H&&(!!_||!!$||fe(F).length>0);var W=g(A);if(S(W,"section"),I||_){var G=g(A);S(G,"section-desc-wrapper")}let oe=ne.length;if(I&&oe>0){const N=g(A);S(N,"section-services");for(const U of ne){const P=F[U],Y=P&&P.label||U,le=g(A),de=g(A),ve=g(A),pe=g(A);S(le,"service"),S(pe,"service-title"),S(de,"service-header"),S(ve,"service-icon");const ee=pt(Y,U,me,!0,q);pe.innerHTML=Y,h(de,ve),h(de,pe),h(le,de),h(le,ee),h(N,le)}h(G,N)}if(R){var re=g(A),j=g(H?z:A);if(S(re,"section-title-wrapper"),S(j,"section-title"),j.innerHTML=R,h(re,j),H){const N=g("span");N.innerHTML=Ee(2,3.5),S(N,"section-arrow"),h(re,N),W.className+="--toggle";const U=pt(R,q,me);let P=i.serviceCounterLabel;if(oe>0&&we(P)){let Y=g("span");S(Y,"badge"),S(Y,"service-counter"),T(Y,Z,!0),T(Y,"data-servicecounter",oe),P&&(P=P.split("|"),P=P.length>1&&oe>1?P[1]:P[0],T(Y,"data-counterlabel",P)),Y.innerHTML=oe+(P?" "+P:""),h(j,Y)}if(I){S(W,"section--expandable");var st=q+"-desc";T(j,"aria-expanded",!1),T(j,"aria-controls",st)}h(re,U)}else T(j,"role","heading"),T(j,"aria-level","3");h(W,re)}if(_){var qe=g("p");S(qe,"section-desc"),qe.innerHTML=_,h(G,qe)}if(I&&(T(G,Z,"true"),G.id=st,((N,U,P)=>{D(j,B,()=>{U.classList.contains("is-expanded")?(ie(U,"is-expanded"),T(P,"aria-expanded","false"),T(N,Z,"true")):(M(U,"is-expanded"),T(P,"aria-expanded","true"),T(N,Z,"false"))})})(G,W,j),$)){const N=g("table"),U=g("thead"),P=g("tbody");if(te){const ee=g("caption");S(ee,"table-caption"),ee.innerHTML=te,N.appendChild(ee)}S(N,"section-table"),S(U,"table-head"),S(P,"table-body");const Y=ce.headers,le=fe(Y),de=t.$e.createDocumentFragment(),ve=g("tr");for(const ee of le){const he=Y[ee],ae=g("th");ae.id="cc__row-"+he+x,T(ae,"scope","col"),S(ae,"table-th"),ae.innerHTML=he,h(de,ae)}h(ve,de),h(U,ve);const pe=t.$e.createDocumentFragment();for(const ee of X){const he=g("tr");S(he,"table-tr");for(const ae of le){const it=Y[ae],on=ee[ae],Te=g("td"),ct=g(A);S(Te,"table-td"),T(Te,"data-column",it),T(Te,"headers","cc__row-"+it+x),ct.insertAdjacentHTML("beforeend",on),h(Te,ct),h(he,Te)}h(pe,he)}h(P,pe),h(N,U),h(N,P),h(G,N)}(I||_)&&h(W,G);const nn=t.Pe||t.Je;H?(y||(y=g(A),S(y,"section-toggles")),y.appendChild(W)):y=null,h(nn,y||W)}),c&&(t.ze||(t.ze=g(z),S(t.ze,"btn"),T(t.ze,be,"all"),h(L,t.ze),D(t.ze,B,()=>r("all"))),t.ze.innerHTML=c),p&&(t.je||(t.je=g(z),S(t.je,"btn"),T(t.je,be,"necessary"),h(L,t.je),D(t.je,B,()=>r([]))),t.je.innerHTML=p),b&&(t.qe||(t.qe=g(z),S(t.qe,"btn"),S(t.qe,"btn--secondary"),T(t.qe,be,"save"),h(E,t.qe),D(t.qe,B,()=>r())),t.qe.innerHTML=b),t.Pe&&(t.we.replaceChild(t.Pe,t.Je),t.Je=t.Pe),qt(1),o.N||(o.N=!0,Q(s.re.ue,Ke,t.we),n(e),h(t.Ce,t.Fe),It(t.we),setTimeout(()=>M(t.Fe,"cc--anim"),100)),Ht(2)};function pt(e,n,o,t,a){const l=s.o,d=s.ne,r=g("label"),i=g("input"),f=g("span"),m=g("span"),c=g("span"),p=g("span"),b=g("span");if(p.innerHTML=Ee(1,3),b.innerHTML=Ee(0,3),i.type="checkbox",M(r,"section__toggle-wrapper"),M(i,"section__toggle"),M(p,"toggle__icon-on"),M(b,"toggle__icon-off"),M(f,"toggle__icon"),M(m,"toggle__icon-circle"),M(c,"toggle__label"),T(f,Z,"true"),t?(M(r,"toggle-service"),T(i,De,a),d.se[a][n]=i):d.ae[n]=i,t?(u=>{D(i,"change",()=>{const w=d.se[u],v=d.ae[u];l.Z[u]=[];for(let L in w){const E=w[L];E.checked&&l.Z[u].push(E.value)}v.checked=l.Z[u].length>0})})(a):(u=>{D(i,B,()=>{const w=d.se[u],v=i.checked;l.Z[u]=[];for(let L in w)w[L].checked=v,v&&l.Z[u].push(L)})})(n),i.value=n,c.textContent=e.replace(/<.*>.*<\/.*>/gm,""),h(m,b),h(m,p),h(f,m),l.D)(o.readOnly||o.enabled)&&(i.checked=!0);else if(t){const u=l.Y[a];i.checked=o.readOnly||C(u,n)}else C(l.R,n)&&(i.checked=!0);return o.readOnly&&(i.disabled=!0),h(r,i),h(r,f),h(r,c),r}const Xe=()=>{const e=g("span");return s.ne.Ke||(s.ne.Ke=e),e},Ft=(e,n)=>{const o=s.o,t=s.ne,{hide:a,showPreferences:l,acceptCategory:d}=e,r=o.u&&o.u.consentModal;if(!r)return;const i=r.acceptAllBtn,f=r.acceptNecessaryBtn,m=r.showPreferencesBtn,c=r.closeIconLabel,p=r.footer,b=r.label,u=r.title,w=L=>{a(),d(L)};if(!t.Qe){t.Qe=g(A),t.he=g(A),t.We=g(A),t.Xe=g(A),t.Ye=g(A),M(t.Qe,"cm-wrapper"),M(t.he,"cm"),O(t.We,"body"),O(t.Xe,"texts"),O(t.Ye,"btns"),T(t.he,"role","dialog"),T(t.he,"aria-modal","true"),T(t.he,Z,"false"),T(t.he,"aria-describedby","cm__desc"),b?T(t.he,"aria-label",b):u&&T(t.he,"aria-labelledby","cm__title");const L="box",E=o.i.guiOptions,y=E&&E.consentModal,k=(y&&y.layout||L).split(" ")[0]===L;u&&c&&k&&(t.Le||(t.Le=g(z),t.Le.innerHTML=Ee(),O(t.Le,"btn"),O(t.Le,"btn--close"),D(t.Le,B,()=>{w([])}),h(t.We,t.Le)),T(t.Le,"aria-label",c)),h(t.We,t.Xe),(i||f||m)&&h(t.We,t.Ye),t.be=g(A),T(t.be,"tabIndex",-1),h(t.he,t.be),h(t.he,t.We),h(t.Qe,t.he)}u&&(t.Ze||(t.Ze=g("h2"),t.Ze.className=t.Ze.id="cm__title",h(t.Xe,t.Ze)),t.Ze.innerHTML=u);let v=r.description;if(v&&(o.V&&(v=v.replace("{{revisionMessage}}",o.I?"":r.revisionMessage||"")),t.et||(t.et=g("p"),t.et.className=t.et.id="cm__desc",h(t.Xe,t.et)),t.et.innerHTML=v),i&&(t.tt||(t.tt=g(z),h(t.tt,Xe()),O(t.tt,"btn"),T(t.tt,be,"all"),D(t.tt,B,()=>{w("all")})),t.tt.firstElementChild.innerHTML=i),f&&(t.Ie||(t.Ie=g(z),h(t.Ie,Xe()),O(t.Ie,"btn"),T(t.Ie,be,"necessary"),D(t.Ie,B,()=>{w([])})),t.Ie.firstElementChild.innerHTML=f),m&&(t.ot||(t.ot=g(z),h(t.ot,Xe()),O(t.ot,"btn"),O(t.ot,"btn--secondary"),T(t.ot,be,"show"),D(t.ot,"mouseenter",()=>{o.N||Ae(e,n)}),D(t.ot,B,l)),t.ot.firstElementChild.innerHTML=m),t.nt||(t.nt=g(A),O(t.nt,Le),i&&h(t.nt,t.tt),f&&h(t.nt,t.Ie),(i||f)&&h(t.We,t.nt),h(t.Ye,t.nt)),t.ot&&!t.st&&(t.st=g(A),t.Ie&&t.tt?(O(t.st,Le),h(t.st,t.ot),h(t.Ye,t.st)):(h(t.nt,t.ot),O(t.nt,Le+"--uneven"))),p){if(!t.ct){let L=g(A),E=g(A);t.ct=g(A),O(L,"footer"),O(E,"links"),O(t.ct,"link-group"),h(E,t.ct),h(L,E),h(t.he,L)}t.ct.innerHTML=p}qt(0),o.T||(o.T=!0,Q(s.re.ue,Je,t.he),n(e),h(t.Ce,t.Qe),It(t.he),setTimeout(()=>M(t.Qe,"cc--anim"),100)),Ht(1),Dt(t.We,e,Ae,n)},Yt=e=>{if(!we(e))return null;if(e in s.o._)return e;let n=e.slice(0,2);return n in s.o._?n:null},jt=()=>s.o.l||s.o.i.language.default,Ut=e=>{e&&(s.o.l=e)},un=async e=>{const n=s.o;let o=Yt(e)?e:jt(),t=n._[o];return we(t)?t=await(async a=>{try{return await(await fetch(a)).json()}catch(l){return console.error(l),!1}})(t):J(t)&&(t=await t()),!!t&&(n.u=t,Ut(o),!0)},fn=()=>{let e=s.o.i.language.rtl,n=s.ne.Ce;e&&n&&(Ne(e)||(e=[e]),C(e,s.o.l)?M(n,"cc--rtl"):ie(n,"cc--rtl"))},Se=()=>{const e=s.ne;if(e.Ce)return;e.Ce=g(A),e.Ce.id="cc-main",e.Ce.setAttribute("data-nosnippet",""),fn();let n=s.o.i.root;n&&we(n)&&(n=document.querySelector(n)),(n||e.$e.body).appendChild(e.Ce)},mn=e=>Re(()=>localStorage.removeItem(e)),ht=(e,n)=>{if(n instanceof RegExp)return e.filter(o=>n.test(o));{const o=Mt(e,n);return o>-1?[e[o]]:[]}},pn=e=>{const{hostname:n,protocol:o}=location,{name:t,path:a,domain:l,sameSite:d,useLocalStorage:r}=s.t.cookie,i=864e5*an(),f=new Date;f.setTime(f.getTime()+i),s.o.p.expirationTime=f.getTime();const m=JSON.stringify(s.o.p);let c=t+"="+encodeURIComponent(m)+(i!==0?"; expires="+f.toUTCString():"")+"; Path="+a+"; SameSite="+d;C(n,".")&&(c+="; Domain="+l),o==="https:"&&(c+="; Secure"),r?((p,b)=>{Re(()=>localStorage.setItem(p,b))})(t,m):document.cookie=c,s.o.p},gt=(e,n,o)=>{if(e.length===0)return;const t=o||s.t.cookie.domain,a=n||s.t.cookie.path,l=t.slice(0,4)==="www.",d=l&&t.substring(4),r=(i,f)=>{document.cookie=i+"=; path="+a+(f?"; domain=."+f:"")+"; expires=Thu, 01 Jan 1970 00:00:01 GMT;"};for(const i of e)r(i),r(i,t),l&&r(i,d)},hn=e=>{const n=s.t.cookie.name,o=s.t.cookie.useLocalStorage;return((a,l)=>{let d;return d=Re(()=>JSON.parse(l?a:decodeURIComponent(a)),!0)||{},d})(o?(t=n,Re(()=>localStorage.getItem(t))||""):gn(n),o);var t},gn=(e,n)=>{const o=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return o?o.pop():""},bn=e=>{const n=document.cookie.split(/;\s*/),o=[];for(const t of n){let a=t.split("=")[0];o.push(a)}return o},yn=(e,n=[])=>{((o,t)=>{const{O:a,R:l,B:d,N:r,Z:i,G:f,X:m}=s.o;let c=[];if(o){Ne(o)?c.push(...o):we(o)&&(c=o==="all"?a:[o]);for(const p of a)i[p]=C(c,p)?fe(m[p]):[]}else c=[...l,...f],r&&(c=(()=>{const p=s.ne.ae;if(!p)return[];let b=[];for(let u in p)p[u].checked&&b.push(u);return b})());c=c.filter(p=>!C(a,p)||!C(t,p)),c.push(...d),xt(c)})(e,n),(o=>{const t=s.o,{Z:a,B:l,Y:d,X:r,O:i}=t,f=i;t.te=se(d);for(const m of f){const c=r[m],p=fe(c),b=a[m]&&a[m].length>0,u=C(l,m);if(p.length!==0){if(d[m]=[],u)d[m].push(...p);else if(b){const w=a[m];d[m].push(...w)}else d[m]=t.Z[m];d[m]=_t(d[m])}}})(),(()=>{const o=s.o;o.L=s.t.mode===ke&&o.D?Ye(o.G,o.R):Ye(o.R,o.p.categories);let t=o.L.length>0,a=!1;for(const i of o.O)o.ee[i]=Ye(o.Y[i],o.te[i]),o.ee[i].length>0&&(a=!0);const l=s.ne.ae;for(const i in l)l[i].checked=C(o.R,i);for(const i of o.O){const f=s.ne.se[i],m=o.Y[i];for(const c in f)f[c].checked=C(m,c)}o.C||(o.C=new Date),o.M||(o.M=("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,i=>(i^crypto.getRandomValues(new Uint8Array(1))[0]&15>>i/4).toString(16))),o.p={categories:se(o.R),revision:s.t.revision,data:o.h,consentTimestamp:o.C.toISOString(),consentId:o.M,services:se(o.Y)};let d=!1;const r=t||a;(o.D||r)&&(o.D&&(o.D=!1,d=!0),o.S=o.S?new Date:o.C,o.p.lastConsentTimestamp=o.S.toISOString(),pn(),s.t.autoClearCookies&&(d||r)&&(i=>{const f=s.o,m=bn(),c=(p=>{const b=s.o;return(p?b.O:b.L).filter(u=>{const w=b.P[u];return!!w&&!w.readOnly&&!!w.autoClear})})(i);for(const p in f.ee)for(const b of f.ee[p]){const u=f.X[p][b].cookies;if(!C(f.Y[p],b)&&u)for(const w of u){const v=ht(m,w.name);gt(v,w.path,w.domain)}}for(const p of c){const b=f.P[p].autoClear,u=b&&b.cookies||[],w=C(f.L,p),v=!C(f.R,p),L=w&&v;if(i?v:L){b.reloadPage&&L&&(f.j=!0);for(const E of u){const y=ht(m,E.name);gt(y,E.path,E.domain)}}}})(d),Ve()),d&&(Q(s.re.ie),Q(s.re.le),s.t.mode===Et)||(r&&Q(s.re.de),o.j&&(o.j=!1,location.reload()))})()},wn=e=>{const n=s.o.D?[]:s.o.R;return C(n,e)},vn=(e,n)=>{const o=s.o.D?[]:s.o.Y[n]||[];return C(o,e)},Xt=e=>{const{ne:n,o}=s;if(!o.k){if(!o.T){if(!e)return;Ft(tt,Se)}o.k=!0,o.U=Pe(),o.v&&Rt(!0),Pt(n.he,1),M(n.ye,At),T(n.he,Z,"false"),setTimeout(()=>{K(s.ne.be)},100),Q(s.re.fe,Je)}},Tn=()=>{const{ne:e,o:n,re:o}=s;n.k&&(n.k=!1,n.v&&Rt(),K(e.Ke,!0),ie(e.ye,At),T(e.he,Z,"true"),K(n.U),n.U=null,Q(o._e,Je))},kn=()=>{const e=s.o;e.A||(e.N||Ae(tt,Se),e.A=!0,e.k?e.$=Pe():e.U=Pe(),Pt(s.ne.we,2),M(s.ne.ye,Ct),T(s.ne.we,Z,"false"),setTimeout(()=>{K(s.ne.ve)},100),Q(s.re.fe,Ke))},Ln=()=>{const e=s.o;e.A&&(e.A=!1,(()=>{const n=$t(),o=s.o.P,t=s.ne.ae,a=s.ne.se,l=d=>C(s.o.G,d);for(const d in t){const r=!!o[d].readOnly;t[d].checked=r||(n?wn(d):l(d));for(const i in a[d])a[d][i].checked=r||(n?vn(i,d):l(d))}})(),K(s.ne.Ge,!0),ie(s.ne.ye,Ct),T(s.ne.we,Z,"true"),e.k?(K(e.$),e.$=null):(K(e.U),e.U=null),Q(s.re._e,Ke))};var tt={show:Xt,hide:Tn,showPreferences:kn,hidePreferences:Ln,acceptCategory:yn};const $t=()=>!s.o.D,Sn=async e=>{const{o:n,t:o,re:t}=s,a=window;if(!a._ccRun){if(a._ccRun=!0,(r=>{const{ne:i,t:f,o:m}=s,c=f,p=m,{cookie:b}=c,u=s.ce,w=r.cookie,v=r.categories,L=fe(v)||[],E=navigator,y=document;i.$e=y,i.ye=y.documentElement,b.domain=location.hostname,p.i=r,p.P=v,p.O=L,p._=r.language.translations,p.v=!!r.disablePageInteraction,u.ie=r.onFirstConsent,u.le=r.onConsent,u.de=r.onChange,u._e=r.onModalHide,u.fe=r.onModalShow,u.ue=r.onModalReady;const{mode:k,autoShow:x,lazyHtmlGeneration:R,autoClearCookies:_,revision:q,manageScriptTags:me,hideFromBots:ce}=r;k===ke&&(c.mode=k),typeof _=="boolean"&&(c.autoClearCookies=_),typeof me=="boolean"&&(c.manageScriptTags=me),typeof q=="number"&&q>=0&&(c.revision=q,p.V=!0),typeof x=="boolean"&&(c.autoShow=x),typeof R=="boolean"&&(c.lazyHtmlGeneration=R),ce===!1&&(c.hideFromBots=!1),c.hideFromBots===!0&&E&&(p.J=E.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(E.userAgent)||E.webdriver),Ge(w)&&(c.cookie={...b,...w}),c.autoClearCookies,p.V,c.manageScriptTags,(X=>{const{P:te,X:$,Y:H,Z:F,B:ne}=s.o;for(let I of X){const W=te[I],G=W.services||{},oe=Ge(G)&&fe(G)||[];$[I]={},H[I]=[],F[I]=[],W.readOnly&&(ne.push(I),H[I]=oe),s.ne.se[I]={};for(let re of oe){const j=G[re];j.Se=!1,$[I][re]=j}}})(L),(()=>{if(!s.t.manageScriptTags)return;const X=s.o,te=Qe(document,"script["+De+"]");for(const $ of te){let H=_e($,De),F=$.dataset.service||"",ne=!1;if(H&&H.charAt(0)==="!"&&(H=H.slice(1),ne=!0),F.charAt(0)==="!"&&(F=F.slice(1),ne=!0),C(X.O,H)&&(X.oe.push({Me:$,xe:!1,ke:ne,De:H,Te:F}),F)){const I=X.X[H];I[F]||(I[F]={Se:!1})}}})(),Ut((()=>{const X=s.o.i.language.autoDetect;if(X){const te={browser:navigator.language,document:document.documentElement.lang},$=Yt(te[X]);if($)return $}return jt()})())})(e),n.J)return;(()=>{const r=s.o,i=s.t,f=hn(),{categories:m,services:c,consentId:p,consentTimestamp:b,lastConsentTimestamp:u,data:w,revision:v}=f,L=Ne(m);r.p=f,r.M=p;const E=!!p&&we(p);r.C=b,r.C&&(r.C=new Date(b)),r.S=u,r.S&&(r.S=new Date(u)),r.h=w!==void 0?w:null,r.V&&E&&v!==i.revision&&(r.I=!1),r.D=!(E&&r.I&&r.C&&r.S&&L),i.cookie.useLocalStorage&&!r.D&&(r.D=new Date().getTime()>(f.expirationTime||0),r.D&&mn(i.cookie.name)),r.D,(()=>{const y=s.o;for(const k of y.O){const x=y.P[k];if(x.readOnly||x.enabled){y.G.push(k);const R=y.X[k]||{};for(let _ in R)y.Z[k].push(_),y.i.mode===ke&&y.Y[k].push(_)}}})(),r.D?i.mode===ke&&(r.R=[...r.G]):(r.Z={...r.Y},r.Y={...r.Y,...c},xt([...r.B,...m]))})();const d=$t();if(!await un())return!1;if(Dt(null,l=tt,Ae,Se),s.o.D&&Ft(l,Se),s.t.lazyHtmlGeneration||Ae(l,Se),o.autoShow&&!d&&Xt(!0),d)return Ve(),Q(t.le);o.mode===ke&&Ve(n.G)}var l},En={root:"#cc-container",guiOptions:{consentModal:{layout:"box inline",position:"bottom left"},preferencesModal:{layout:"box",position:"right",equalWeightButtons:!0,flipButtons:!1}},categories:{necessary:{readOnly:!0},functionality:{},analytics:{services:{ga4:{label:'<a href="https://marketingplatform.google.com/about/analytics/terms/us/" target="_blank">Google Analytics 4</a>',onAccept:()=>{console.log("ga4 aceptado")},onReject:()=>{console.log("ga4 rechazado")},cookies:[{name:/^_ga/}]},disqus:{label:"Disqus (sistema de comentarios)"}}}},language:{default:"es",autoDetect:"browser",translations:{es:{consentModal:{title:"🍪 Aviso de cookies",description:"Uso cookies para mejorar tu experiencia y entender cómo interactúas con mi contenido. ¿Me das permiso para utilizarlas?",acceptAllBtn:"Aceptar todas",acceptNecessaryBtn:"Solo las necesarias",showPreferencesBtn:"Personalizar",footer:`<a href="/politica-de-privacidad">Política de Privacidad</a>
<a href="/politica-de-cookies">Política de cookies</a>`},preferencesModal:{title:"Preferencias de Cookies",acceptAllBtn:"Aceptar todas",acceptNecessaryBtn:"Solo las necesarias",savePreferencesBtn:"Guardar preferencias",closeIconLabel:"Cerrar",serviceCounterLabel:"Servicio|Servicios",sections:[{title:"Uso de Cookies en Mi Blog",description:"Las cookies me ayudan a ofrecerte una mejor experiencia al navegar por mi blog. Algunas son esenciales para el funcionamiento del sitio, mientras que otras me ayudan a mejorarlo."},{title:'Cookies Necesarias <span class="pm__badge">Siempre Activas</span>',description:"Estas cookies son imprescindibles para el funcionamiento básico de mi blog. Garantizan funciones de seguridad y preferencias básicas, pero no almacenan ninguna información personal.",linkedCategory:"necessary"},{title:"Cookies de Funcionalidad",description:"Estas cookies permiten funcionalidades adicionales, como guardar tus preferencias de tema (claro/oscuro) o recordar tu sesión para que no tengas que iniciar sesión cada vez que visites el blog.",linkedCategory:"functionality"},{title:"Cookies Analíticas",description:"Utilizo estas cookies para entender cómo interactúas con mi blog. Me ayudan a saber qué contenido es más popular y cómo puedo mejorar la experiencia general. Toda la información es anónima y agregada.",linkedCategory:"analytics"},{title:"Más información",description:'Si tienes alguna pregunta sobre cómo uso las cookies o quieres saber más sobre mi política de privacidad, no dudes en <a class="cc__link" href="/contacto">contactarme</a>. ¡Estaré encantado de ayudarte!'}]}}}}};Sn(En);document.addEventListener("astro:before-preparation",e=>{window._htmlClassName=window.document.documentElement.className});document.addEventListener("astro:before-swap",e=>{e.newDocument.documentElement.className=window._htmlClassName});document.addEventListener("astro:page-load",()=>{const e=document.getElementById("main-header"),n=document.getElementById("mobile-menu-button"),o=document.getElementById("mobile-menu"),t=document.getElementById("mobile-menu-backdrop"),a=document.getElementById("avatar-menu"),l=document.querySelector(".avatar"),d=()=>{e&&!document.body.classList.contains("mobile-menu-open")&&(window.scrollY>0?e.classList.add("bg-white/80","backdrop-blur-md","shadow-sm"):e.classList.remove("bg-white/80","backdrop-blur-md","shadow-sm"))};window.addEventListener("scroll",d),d();const r=()=>{o?.classList.toggle("hidden"),document.body.classList.toggle("overflow-hidden"),document.body.classList.toggle("mobile-menu-open"),document.body.classList.contains("mobile-menu-open")?(e?.classList.remove("bg-white/80","backdrop-blur-md","shadow-sm"),e?.classList.add("bg-transparent")):d()};n?.addEventListener("click",r),t?.addEventListener("click",r);const i=()=>{a?.classList.toggle("hidden")};l?.addEventListener("click",f=>{f.stopPropagation(),i()}),document.addEventListener("click",f=>{l?.contains(f.target)||a?.classList.add("hidden")})});const ye="data-astro-transition-persist";function An(e){for(const n of document.scripts)for(const o of e.scripts)if(!o.hasAttribute("data-astro-rerun")&&(!n.src&&n.textContent===o.textContent||n.src&&n.type===o.type&&n.src===o.src)){o.dataset.astroExec="";break}}function Cn(e){const n=document.documentElement,o=[...n.attributes].filter(({name:t})=>(n.removeAttribute(t),t.startsWith("data-astro-")));[...e.documentElement.attributes,...o].forEach(({name:t,value:a})=>n.setAttribute(t,a))}function Mn(e){for(const n of Array.from(document.head.children)){const o=Dn(n,e);o?o.remove():n.remove()}document.head.append(...e.head.children)}function _n(e,n){n.replaceWith(e);for(const o of n.querySelectorAll(`[${ye}]`)){const t=o.getAttribute(ye),a=e.querySelector(`[${ye}="${t}"]`);a&&(a.replaceWith(o),a.localName==="astro-island"&&Pn(o)&&!Rn(o,a)&&(o.setAttribute("ssr",""),o.setAttribute("props",a.getAttribute("props"))))}}const xn=()=>{const e=document.activeElement;if(e?.closest(`[${ye}]`)){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){const n=e.selectionStart,o=e.selectionEnd;return()=>$e({activeElement:e,start:n,end:o})}return()=>$e({activeElement:e})}else return()=>$e({activeElement:null})},$e=({activeElement:e,start:n,end:o})=>{e&&(e.focus(),(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(typeof n=="number"&&(e.selectionStart=n),typeof o=="number"&&(e.selectionEnd=o)))},Dn=(e,n)=>{const o=e.getAttribute(ye),t=o&&n.head.querySelector(`[${ye}="${o}"]`);if(t)return t;if(e.matches("link[rel=stylesheet]")){const a=e.getAttribute("href");return n.head.querySelector(`link[rel=stylesheet][href="${a}"]`)}return null},Pn=e=>{const n=e.dataset.astroTransitionPersistProps;return n==null||n==="false"},Rn=(e,n)=>e.getAttribute("props")===n.getAttribute("props"),In=e=>{An(e),Cn(e),Mn(e);const n=xn();_n(e.body,document.body),n()},Hn="astro:before-preparation",Nn="astro:after-preparation",Bn="astro:before-swap",On="astro:after-swap",qn=e=>document.dispatchEvent(new Event(e));class Gt extends Event{from;to;direction;navigationType;sourceElement;info;newDocument;signal;constructor(n,o,t,a,l,d,r,i,f,m){super(n,o),this.from=t,this.to=a,this.direction=l,this.navigationType=d,this.sourceElement=r,this.info=i,this.newDocument=f,this.signal=m,Object.defineProperties(this,{from:{enumerable:!0},to:{enumerable:!0,writable:!0},direction:{enumerable:!0,writable:!0},navigationType:{enumerable:!0},sourceElement:{enumerable:!0},info:{enumerable:!0},newDocument:{enumerable:!0,writable:!0},signal:{enumerable:!0}})}}class Fn extends Gt{formData;loader;constructor(n,o,t,a,l,d,r,i,f,m){super(Hn,{cancelable:!0},n,o,t,a,l,d,r,i),this.formData=f,this.loader=m.bind(this,this),Object.defineProperties(this,{formData:{enumerable:!0},loader:{enumerable:!0,writable:!0}})}}class Yn extends Gt{direction;viewTransition;swap;constructor(n,o){super(Bn,void 0,n.from,n.to,n.direction,n.navigationType,n.sourceElement,n.info,n.newDocument,n.signal),this.direction=n.direction,this.viewTransition=o,this.swap=()=>In(this.newDocument),Object.defineProperties(this,{direction:{enumerable:!0},viewTransition:{enumerable:!0},swap:{enumerable:!0,writable:!0}})}}async function jn(e,n,o,t,a,l,d,r,i){const f=new Fn(e,n,o,t,a,l,window.document,d,r,i);return document.dispatchEvent(f)&&(await f.loader(),f.defaultPrevented||(qn(Nn),f.navigationType!=="traverse"&&nt({scrollX,scrollY}))),f}function Un(e,n){const o=new Yn(e,n);return document.dispatchEvent(o),o.swap(),o}const Xn=history.pushState.bind(history),Ie=history.replaceState.bind(history),nt=e=>{history.state&&(history.scrollRestoration="manual",Ie({...history.state,...e},""))},ot=!!document.startViewTransition,rt=()=>!!document.querySelector('[name="astro-view-transitions-enabled"]'),Vt=(e,n)=>e.pathname===n.pathname&&e.search===n.search;let V,ue,Be;const Wt=e=>document.dispatchEvent(new Event(e)),zt=()=>Wt("astro:page-load"),$n=()=>{let e=document.createElement("div");e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),e.className="astro-route-announcer",document.body.append(e),setTimeout(()=>{let n=document.title||document.querySelector("h1")?.textContent||location.pathname;e.textContent=n},60)},bt="data-astro-transition-persist",yt="data-astro-transition",ze="data-astro-transition-fallback";let wt,Ce=0;history.state?(Ce=history.state.index,scrollTo({left:history.state.scrollX,top:history.state.scrollY})):rt()&&(Ie({index:Ce,scrollX,scrollY},""),history.scrollRestoration="manual");async function Gn(e,n){try{const o=await fetch(e,n),a=(o.headers.get("content-type")??"").split(";",1)[0].trim();return a!=="text/html"&&a!=="application/xhtml+xml"?null:{html:await o.text(),redirected:o.redirected?o.url:void 0,mediaType:a}}catch{return null}}function Zt(){const e=document.querySelector('[name="astro-view-transitions-fallback"]');return e?e.getAttribute("content"):"animate"}function Vn(){let e=Promise.resolve();for(const n of document.getElementsByTagName("script")){if(n.dataset.astroExec==="")continue;const o=n.getAttribute("type");if(o&&o!=="module"&&o!=="text/javascript")continue;const t=document.createElement("script");t.innerHTML=n.innerHTML;for(const a of n.attributes){if(a.name==="src"){const l=new Promise(d=>{t.onload=t.onerror=d});e=e.then(()=>l)}t.setAttribute(a.name,a.value)}t.dataset.astroExec="",n.replaceWith(t)}return e}const Jt=(e,n,o,t,a)=>{const l=Vt(n,e),d=document.title;document.title=t;let r=!1;if(e.href!==location.href&&!a)if(o.history==="replace"){const i=history.state;Ie({...o.state,index:i.index,scrollX:i.scrollX,scrollY:i.scrollY},"",e.href)}else Xn({...o.state,index:++Ce,scrollX:0,scrollY:0},"",e.href);if(document.title=d,Be=e,l||(scrollTo({left:0,top:0,behavior:"instant"}),r=!0),a)scrollTo(a.scrollX,a.scrollY);else{if(e.hash){history.scrollRestoration="auto";const i=history.state;location.href=e.href,history.state||(Ie(i,""),l&&window.dispatchEvent(new PopStateEvent("popstate")))}else r||scrollTo({left:0,top:0,behavior:"instant"});history.scrollRestoration="manual"}};function Wn(e){const n=[];for(const o of e.querySelectorAll("head link[rel=stylesheet]"))if(!document.querySelector(`[${bt}="${o.getAttribute(bt)}"], link[rel=stylesheet][href="${o.getAttribute("href")}"]`)){const t=document.createElement("link");t.setAttribute("rel","preload"),t.setAttribute("as","style"),t.setAttribute("href",o.getAttribute("href")),n.push(new Promise(a=>{["load","error"].forEach(l=>t.addEventListener(l,a)),document.head.append(t)}))}return n}async function vt(e,n,o,t,a){async function l(i){function f(b){const u=b.effect;return!u||!(u instanceof KeyframeEffect)||!u.target?!1:window.getComputedStyle(u.target,u.pseudoElement).animationIterationCount==="infinite"}const m=document.getAnimations();document.documentElement.setAttribute(ze,i);const p=document.getAnimations().filter(b=>!m.includes(b)&&!f(b));return Promise.allSettled(p.map(b=>b.finished))}if(a==="animate"&&!o.transitionSkipped&&!e.signal.aborted)try{await l("old")}catch{}const d=document.title,r=Un(e,o.viewTransition);Jt(r.to,r.from,n,d,t),Wt(On),a==="animate"&&(!o.transitionSkipped&&!r.signal.aborted?l("new").finally(()=>o.viewTransitionFinished()):o.viewTransitionFinished())}function zn(){return V?.controller.abort(),V={controller:new AbortController}}async function Kt(e,n,o,t,a){const l=zn();if(!rt()||location.origin!==o.origin){l===V&&(V=void 0),location.href=o.href;return}const d=a?"traverse":t.history==="replace"?"replace":"push";if(d!=="traverse"&&nt({scrollX,scrollY}),Vt(n,o)&&(e!=="back"&&o.hash||e==="back"&&n.hash)){Jt(o,n,t,document.title,a),l===V&&(V=void 0);return}const r=await jn(n,o,e,d,t.sourceElement,t.info,l.controller.signal,t.formData,i);if(r.defaultPrevented||r.signal.aborted){l===V&&(V=void 0),r.signal.aborted||(location.href=o.href);return}async function i(c){const p=c.to.href,b={signal:c.signal};if(c.formData){b.method="POST";const v=c.sourceElement instanceof HTMLFormElement?c.sourceElement:c.sourceElement instanceof HTMLElement&&"form"in c.sourceElement?c.sourceElement.form:c.sourceElement?.closest("form");b.body=v?.attributes.getNamedItem("enctype")?.value==="application/x-www-form-urlencoded"?new URLSearchParams(c.formData):c.formData}const u=await Gn(p,b);if(u===null){c.preventDefault();return}if(u.redirected){const v=new URL(u.redirected);if(v.origin!==c.to.origin){c.preventDefault();return}c.to=v}if(wt??=new DOMParser,c.newDocument=wt.parseFromString(u.html,u.mediaType),c.newDocument.querySelectorAll("noscript").forEach(v=>v.remove()),!c.newDocument.querySelector('[name="astro-view-transitions-enabled"]')&&!c.formData){c.preventDefault();return}const w=Wn(c.newDocument);w.length&&!c.signal.aborted&&await Promise.all(w)}async function f(){if(ue&&ue.viewTransition){try{ue.viewTransition.skipTransition()}catch{}try{await ue.viewTransition.updateCallbackDone}catch{}}return ue={transitionSkipped:!1}}const m=await f();if(r.signal.aborted){l===V&&(V=void 0);return}if(document.documentElement.setAttribute(yt,r.direction),ot)m.viewTransition=document.startViewTransition(async()=>await vt(r,t,m,a));else{const c=(async()=>{await Promise.resolve(),await vt(r,t,m,a,Zt())})();m.viewTransition={updateCallbackDone:c,ready:c,finished:new Promise(p=>m.viewTransitionFinished=p),skipTransition:()=>{m.transitionSkipped=!0,document.documentElement.removeAttribute(ze)}}}m.viewTransition?.updateCallbackDone.finally(async()=>{await Vn(),zt(),$n()}),m.viewTransition?.finished.finally(()=>{m.viewTransition=void 0,m===ue&&(ue=void 0),l===V&&(V=void 0),document.documentElement.removeAttribute(yt),document.documentElement.removeAttribute(ze)});try{await m.viewTransition?.updateCallbackDone}catch(c){const p=c;console.log("[astro]",p.name,p.message,p.stack)}}async function Tt(e,n){await Kt("forward",Be,new URL(e,location.href),n??{})}function Zn(e){if(!rt()&&e.state){location.reload();return}if(e.state===null)return;const n=history.state,o=n.index,t=o>Ce?"forward":"back";Ce=o,Kt(t,Be,new URL(location.href),{},n)}const kt=()=>{history.state&&(scrollX!==history.state.scrollX||scrollY!==history.state.scrollY)&&nt({scrollX,scrollY})};{if(ot||Zt()!=="none")if(Be=new URL(location.href),addEventListener("popstate",Zn),addEventListener("load",zt),"onscrollend"in window)addEventListener("scrollend",kt);else{let e,n,o,t;const a=()=>{if(t!==history.state?.index){clearInterval(e),e=void 0;return}if(n===scrollY&&o===scrollX){clearInterval(e),e=void 0,kt();return}else n=scrollY,o=scrollX};addEventListener("scroll",()=>{e===void 0&&(t=history.state.index,n=scrollY,o=scrollX,e=window.setInterval(a,50))},{passive:!0})}for(const e of document.getElementsByTagName("script"))e.dataset.astroExec=""}const Qt=new Set,He=new WeakSet;let Ze,en,Lt=!1;function Jn(e){Lt||(Lt=!0,Ze??=e?.prefetchAll,en??=e?.defaultStrategy??"hover",Kn(),Qn(),eo(),no())}function Kn(){for(const e of["touchstart","mousedown"])document.body.addEventListener(e,n=>{Me(n.target,"tap")&&Oe(n.target.href,{ignoreSlowConnection:!0})},{passive:!0})}function Qn(){let e;document.body.addEventListener("focusin",t=>{Me(t.target,"hover")&&n(t)},{passive:!0}),document.body.addEventListener("focusout",o,{passive:!0}),at(()=>{for(const t of document.getElementsByTagName("a"))He.has(t)||Me(t,"hover")&&(He.add(t),t.addEventListener("mouseenter",n,{passive:!0}),t.addEventListener("mouseleave",o,{passive:!0}))});function n(t){const a=t.target.href;e&&clearTimeout(e),e=setTimeout(()=>{Oe(a)},80)}function o(){e&&(clearTimeout(e),e=0)}}function eo(){let e;at(()=>{for(const n of document.getElementsByTagName("a"))He.has(n)||Me(n,"viewport")&&(He.add(n),e??=to(),e.observe(n))})}function to(){const e=new WeakMap;return new IntersectionObserver((n,o)=>{for(const t of n){const a=t.target,l=e.get(a);t.isIntersecting?(l&&clearTimeout(l),e.set(a,setTimeout(()=>{o.unobserve(a),e.delete(a),Oe(a.href)},300))):l&&(clearTimeout(l),e.delete(a))}})}function no(){at(()=>{for(const e of document.getElementsByTagName("a"))Me(e,"load")&&Oe(e.href)})}function Oe(e,n){e=e.replace(/#.*/,"");const o=n?.ignoreSlowConnection??!1;if(oo(e,o))if(Qt.add(e),document.createElement("link").relList?.supports?.("prefetch")&&n?.with!=="fetch"){const t=document.createElement("link");t.rel="prefetch",t.setAttribute("href",e),document.head.append(t)}else fetch(e,{priority:"low"})}function oo(e,n){if(!navigator.onLine||!n&&tn())return!1;try{const o=new URL(e,location.href);return location.origin===o.origin&&(location.pathname!==o.pathname||location.search!==o.search)&&!Qt.has(e)}catch{}return!1}function Me(e,n){if(e?.tagName!=="A")return!1;const o=e.dataset.astroPrefetch;return o==="false"?!1:n==="tap"&&(o!=null||Ze)&&tn()?!0:o==null&&Ze||o===""?n===en:o===n}function tn(){if("connection"in navigator){const e=navigator.connection;return e.saveData||/2g/.test(e.effectiveType)}return!1}function at(e){e();let n=!1;document.addEventListener("astro:page-load",()=>{if(!n){n=!0;return}e()})}function ro(){const e=document.querySelector('[name="astro-view-transitions-fallback"]');return e?e.getAttribute("content"):"animate"}function St(e){return e.dataset.astroReload!==void 0}(ot||ro()!=="none")&&(document.addEventListener("click",e=>{let n=e.target;if(e.composed&&(n=e.composedPath()[0]),n instanceof Element&&(n=n.closest("a, area")),!(n instanceof HTMLAnchorElement)&&!(n instanceof SVGAElement)&&!(n instanceof HTMLAreaElement))return;const o=n instanceof HTMLElement?n.target:n.target.baseVal,t=n instanceof HTMLElement?n.href:n.href.baseVal,a=new URL(t,location.href).origin;St(n)||n.hasAttribute("download")||!n.href||o&&o!=="_self"||a!==location.origin||e.button!==0||e.metaKey||e.ctrlKey||e.altKey||e.shiftKey||e.defaultPrevented||(e.preventDefault(),Tt(t,{history:n.dataset.astroHistory==="replace"?"replace":"auto",sourceElement:n}))}),document.addEventListener("submit",e=>{let n=e.target;if(n.tagName!=="FORM"||e.defaultPrevented||St(n))return;const o=n,t=e.submitter,a=new FormData(o,t),l=typeof o.action=="string"?o.action:o.getAttribute("action"),d=typeof o.method=="string"?o.method:o.getAttribute("method");let r=t?.getAttribute("formaction")??l??location.pathname;const i=t?.getAttribute("formmethod")??d??"get";if(i==="dialog"||location.origin!==new URL(r,location.href).origin)return;const f={sourceElement:t??o};if(i==="get"){const m=new URLSearchParams(a),c=new URL(r);c.search=m.toString(),r=c.toString()}else f.formData=a;e.preventDefault(),Tt(r,f)}),Jn({prefetchAll:!0}));
