1var ie=Object.defineProperty;var se=(n,t,e)=>t in n?ie(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var M=(n,t,e)=>se(n,typeof t!="symbol"?t+"":t,e);/* empty css */const re=n=>{if(typeof n=="string")return Array.from(document.querySelectorAll(n));if(n instanceof Element)return[n];if(n instanceof NodeList||Array.isArray(n))return Array.from(n);throw new Error("Invalid argument in imagesLoaded")},ce=n=>{const t=new Set;return n.forEach(e=>{e.tagName.toLowerCase()==="img"&&t.add(e),e.querySelectorAll("img").forEach(o=>t.add(o))}),Array.from(t)};function ae(n,t){const e=re(n),o=ce(e);if(o.length===0){t();return}let s=0;const i=()=>{s++,s===o.length&&t()};o.forEach(r=>{r.complete?i():(r.addEventListener("load",i),r.addEventListener("error",i))})}class le{constructor(t){M(this,"dropdown");M(this,"button");M(this,"handleButtonClick",t=>{t.stopPropagation(),this.toggleMenu()});M(this,"handleKeydown",t=>{(t.key==="Escape"||t.key===" ")&&(t.preventDefault(),this.button.blur(),this.closeMenu())});M(this,"handleDocumentClick",t=>{this.dropdown.contains(t.target)||this.closeMenu()});this.dropdown=t;const e=this.dropdown.querySelector(".dropdown-toggle"),o=this.dropdown.querySelector(".dropdown-menu");if(!e||!o)throw new Error('Required elements not found: ".dropdown-toggle" or ".dropdown-menu"');this.button=e,this.initialize()}initialize(){this.button.addEventListener("click",this.handleButtonClick),this.dropdown.addEventListener("keydown",this.handleKeydown),document.addEventListener("click",this.handleDocumentClick)}toggleMenu(){this.button.getAttribute("aria-expanded")==="true"?this.closeMenu():this.openMenu()}openMenu(){this.button.setAttribute("aria-expanded","true"),this.dropdown.classList.add("is-active")}closeMenu(){this.button.setAttribute("aria-expanded","false"),this.dropdown.classList.remove("is-active")}}function Vt(n=".js-dropdown"){document.querySelectorAll(n).forEach(e=>{try{new le(e)}catch(o){console.error("Error initializing dropdown:",o)}})}function ue(n,t){let e;return function(...o){clearTimeout(e),e=window.setTimeout(()=>n.apply(this,o),t)}}const yt=class yt{constructor(t,e){M(this,"menu");M(this,"nav");M(this,"logo");M(this,"originalNavNodes");M(this,"updateDropdown",()=>{this.nav.replaceChildren(...this.originalNavNodes.map(t=>t.cloneNode(!0))),this.makeDropdown()});this.menu=t,this.nav=e,this.logo=document.querySelector(".js-header-logo"),this.originalNavNodes=Array.from(e.childNodes).map(o=>o.cloneNode(!0))}makeDropdown(){if(window.matchMedia("(max-width: 48rem)").matches)return;const t=[];for(;this.nav.offsetWidth+64>this.menu.offsetWidth;){const a=this.nav.lastElementChild;if(!a)break;t.unshift(a),a.remove()}if(t.length===0)return;const e=document.createDocumentFragment(),o=document.createElement("li");o.className="dropdown has-dropdown";const s=document.createElement("button");s.className="dropdown-toggle flex items-center cursor-pointer",s.setAttribute("aria-expanded","false"),s.setAttribute("aria-haspopup","true"),s.setAttribute("aria-label","Open additional menu"),s.innerHTML=yt.iconDropdown,o.appendChild(s);const i=document.createElement("div");i.className="dropdown-menu leading-snug whitespace-normal p-1";const r=document.createElement("ul");r.className="dropdown-content",t.length>=10&&(r.classList.add("grid","grid-cols-2"),i.classList.add("min-w-3xs")),t.forEach(a=>{const c=a.querySelector("a");c&&(c.classList.remove("text-header-link"),c.classList.add("py-2","px-3")),r.appendChild(a)}),i.appendChild(r),o.appendChild(i),e.appendChild(o),this.nav.appendChild(e),this.menu.classList.remove("overflow-x-hidden"),Vt(".dropdown.has-dropdown")}init(){this.logo&&ae(this.logo,()=>{this.updateDropdown()}),window.addEventListener("load",()=>{this.logo||this.updateDropdown()}),window.addEventListener("resize",ue(this.updateDropdown,100))}};M(yt,"iconDropdown",` 2 <svg class="icon text-header-link w-7 h-7" viewBox="0 0 512 512"> 3 <circle cx="256" cy="256" r="32" fill="none" stroke="currentColor" stroke-width="32"/> 4 <circle cx="416" cy="256" r="32" fill="none" stroke="currentColor" stroke-width="32"/> 5 <circle cx="96" cy="256" r="32" fill="none" stroke="currentColor" stroke-width="32"/> 6 </svg> 7 `);let It=yt;
7function de(){const n=document.querySelector(".js-header"),t=n==null?void 0:n.querySelector(".js-head-menu"),e=t==null?void 0:t.querySelector(".js-nav");if(!n||!t||!e)return;new It(t,e).init()}function fe(){const n=document.querySelector(".js-menu-toggle"),t=document.body,e=document.querySelector(".sidenav"),o=document.querySelector(".sidenav-overlay");if(!n||!e||!o)return;const s=["top-14","h-0","opacity-0"],i=["active","h-screen","opacity-100","z-10","pb-24"],r=["h-0","opacity-0"],a=["h-screen","opacity-25"],c=()=>{t.classList.add("has-menu","overflow-hidden","lg:pr-4"),e.classList.remove(...s),e.classList.add(...i),o.classList.remove(...r),o.classList.add(...a)},l=()=>{t.classList.remove("has-menu","overflow-hidden","lg:pr-4"),e.classList.add(...s),e.classList.remove(...i),o.classList.add(...r),o.classList.remove(...a)},h=()=>{e.classList.contains("active")?l():c()};n.addEventListener("click",f=>{f.preventDefault(),h()}),document.addEventListener("click",f=>{const m=f.target;if(!e.classList.contains("active"))return;const b=e.contains(m),d=n.contains(m);!b&&!d&&l()}),window.addEventListener("resize",()=>{window.innerWidth>=768&&e.classList.contains("active")&&l()})}const pe=()=>{const n=document.querySelector(".js-marquee");if(!n)return;const t=n.querySelector(".marquee-container");Array.from(t.children).forEach(o=>{const s=o.cloneNode(!0);t.appendChild(s)}),requestAnimationFrame(()=>{const o=t.scrollWidth/2;t.style.setProperty("--marquee-width",`${o}px`)})};class j extends HTMLElement{constructor(){super(),this.isIframeLoaded=!1,this.isPlaylistThumbnailLoaded=!1,this.setupDom()}static get observedAttributes(){return["videoid","playlistid","videoplay","videotitle"]}connectedCallback(){this.addEventListener("pointerover",()=>j.warmConnections(this),{once:!0}),this.addEventListener("click",()=>this.addIframe())}get videoId(){return encodeURIComponent(this.getAttribute("videoid")||"")}set videoId(t){this.setAttribute("videoid",t)}get playlistId(){return encodeURIComponent(this.getAttribute("playlistid")||"")}set playlistId(t){this.setAttribute("playlistid",t)}get videoTitle(){return this.getAttribute("videotitle")||"Video"}set videoTitle(t){this.setAttribute("videotitle",t)}get videoPlay(){return this.getAttribute("videoplay")||"Play"}set videoPlay(t){this.setAttribute("videoplay",t)}get videoStartAt(){return this.getAttribute("videoStartAt")||"0"}get autoLoad(){return this.hasAttribute("autoload")}get autoPause(){return this.hasAttribute("autopause")}get noCookie(){return this.hasAttribute("nocookie")}get posterQuality(){return this.getAttribute("posterquality")||"hqdefault"}get posterLoading(){return this.getAttribute("posterloading")||"lazy"}get params(){return`start=${this.videoStartAt}&${this.getAttribute("params")}`}set params(t){this.setAttribute("params",t)}set posterQuality(t){this.setAttribute("posterquality",t)}get disableNoscript(){return this.hasAttribute("disablenoscript")}setupDom(){const t=this.attachShadow({mode:"open"});let e="";window.liteYouTubeNonce&&(e=`nonce="${window.liteYouTubeNonce}"`),t.innerHTML=` 8 <style ${e}> 9 :host { 10 --aspect-ratio: var(--lite-youtube-aspect-ratio, 16 / 9); 11 --aspect-ratio-short: var(--lite-youtube-aspect-ratio-short, 9 / 16); 12 --frame-shadow-visible: var(--lite-youtube-frame-shadow-visible, yes); 13 contain: content; 14 display: block; 15 position: relative; 16 width: 100%; 17 aspect-ratio: var(--aspect-ratio); 18 } 19 20 @media (max-width: 40em) { 21 :host([short]) { 22 aspect-ratio: var(--aspect-ratio-short); 23 } 24 } 25 26 #frame, #fallbackPlaceholder, iframe { 27 position: absolute; 28 width: 100%; 29 height: 100%; 30 left: 0; 31 top: 0; 32 } 33 34 #frame { 35 cursor: pointer; 36 } 37 38 #fallbackPlaceholder, slot[name=image]::slotted(*) { 39 object-fit: cover; 40 width: 100%; 41 height: 100%; 42 } 43 44 @container style(--frame-shadow-visible: yes) { 45 #frame::before { 46 content: ''; 47 display: block; 48 position: absolute; 49 top: 0; 50 background-image: linear-gradient(180deg, #111 -20%, transparent 90%); 51 height: 60px; 52 width: 100%; 53 z-index: 1; 54 } 55 } 56 57 #playButton { 58 width: 68px; 59 height: 48px; 60 background-color: transparent; 61 background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="red"/><path d="M45 24 27 14v20" fill="white"/></svg>'); 62 z-index: 1; 63 border: 0; 64 border-radius: inherit; 65 } 66 67 #playButton:before { 68 content: ''; 69 border-style: solid; 70 border-width: 11px 0 11px 19px; 71 border-color: transparent transparent transparent #fff; 72 } 73 74 #playButton, 75 #playButton:before { 76 position: absolute; 77 top: 50%; 78 left: 50%; 79 transform: translate3d(-50%, -50%, 0); 80 cursor: inherit; 81 } 82 83 /* Post-click styles */ 84 .activated { 85 cursor: unset; 86 } 87 88 #frame.activated::before, 89 #frame.activated > #playButton { 90 display: none; 91 } 92 </style> 93 <div id="frame"> 94 <picture> 95 <slot name="image"> 96 <source id="webpPlaceholder" type="image/webp"> 97 <source id="jpegPlaceholder" type="image/jpeg"> 98 <img id="fallbackPlaceholder" referrerpolicy="origin" loading="lazy"> 99 </slot> 100 </picture> 101 <button id="playButton" part="playButton"></button> 102 </div> 103 `,this.domRefFrame=t.querySelector("#frame"),this.domRefImg={fallback:t.querySelector("#fallbackPlaceholder"),webp:t.querySelector("#webpPlaceholder"),jpeg:t.querySelector("#jpegPlaceholder")},this.domRefPlayButton=t.querySelector("#playButton")}setupComponent(){this.shadowRoot.querySelector("slot[name=image]").assignedNodes().length===0&&this.initImagePlaceholder(),this.domRefPlayButton.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),this.setAttribute("title",`${this.videoPlay}: ${this.videoTitle}`),(this.autoLoad||this.isYouTubeShort()||this.autoPause)&&this.initIntersectionObserver(),this.disableNoscript||this.injectSearchNoScript()}attributeChangedCallback(t,e,o){e!==o&&(t==="playlistid"&&e!==null&&e!==o&&(this.isPlaylistThumbnailLoaded=!1),this.setupComponent(),this.domRefFrame.classList.contains("activated")&&(this.domRefFrame.classList.remove("activated"),this.shadowRoot.querySelector("iframe").remove(),this.isIframeLoaded=!1))}injectSearchNoScript(){const t=document.createElement("noscript");this.prepend(t),t.innerHTML=this.generateIframe()}generateIframe(t=!1){let e=t?0:1,o=this.autoPause?"&enablejsapi=1":"";const s=this.noCookie?"-nocookie":"";let i;return this.playlistId?i=`?listType=playlist&list=${this.playlistId}&`:i=`${this.videoId}?`,this.isYouTubeShort()&&(this.params=`loop=1&mute=1&modestbranding=1&playsinline=1&rel=0&enablejsapi=1&playlist=${this.videoId}`,e=1),` 104<iframe credentialless frameborder="0" title="${this.videoTitle}"
105 referrerpolicy="strict-origin-when-cross-origin" 106 allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen 107 src="https://www.youtube${s}.com/embed/${i}autoplay=${e}${o}&${this.params}" 108></iframe>`}addIframe(t=!1){if(!this.isIframeLoaded){const e=this.generateIframe(t);this.domRefFrame.insertAdjacentHTML("beforeend",e),this.domRefFrame.classList.add("activated"),this.isIframeLoaded=!0,this.attemptShortAutoPlay(),this.dispatchEvent(new CustomEvent("liteYoutubeIframeLoaded",{detail:{videoId:this.videoId},bubbles:!0,cancelable:!0}))}}initImagePlaceholder(){var t,e;this.playlistId&&!this.videoId?this.loadPlaylistThumbnail():this.testPosterImage(),this.domRefImg.fallback.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),(e=(t=this.domRefImg)==null?void 0:t.fallback)==null||e.setAttribute("alt",`${this.videoPlay}: ${this.videoTitle}`)}async loadPlaylistThumbnail(){if(!this.isPlaylistThumbnailLoaded){this.isPlaylistThumbnailLoaded=!0;try{const t=`https://www.youtube.com/oembed?url=https://www.youtube.com/playlist?list=${this.playlistId}&format=json`,e=await fetch(t);if(!e.ok)throw new Error(`Failed to fetch playlist thumbnail: ${e.status}`);const o=await e.json();if(o.thumbnail_url){const s=o.thumbnail_url,i=s.match(/\/vi\/([^\/]+)\//);if(i){const r=i[1];this.loadThumbnailImages(r)}else this.domRefImg.fallback.src=s,this.domRefImg.fallback.loading=this.posterLoading}}catch(t){console.warn("Failed to load playlist thumbnail:",t)}}}loadThumbnailImages(t){const e=`https://i.ytimg.com/vi_webp/${t}/${this.posterQuality}.webp`;this.domRefImg.webp.srcset=e;const o=`https://i.ytimg.com/vi/${t}/${this.posterQuality}.jpg`;this.domRefImg.jpeg.srcset=o,this.domRefImg.fallback.src=o,this.domRefImg.fallback.loading=this.posterLoading}async testPosterImage(){setTimeout(()=>{const t=`https://i.ytimg.com/vi_webp/${this.videoId}/${this.posterQuality}.webp`,e=new Image;e.fetchPriority="low",e.referrerPolicy="origin",e.src=t,e.onload=async o=>{const s=o.target;(s==null?void 0:s.naturalHeight)==90&&(s==null?void 0:s.naturalWidth)==120&&(this.posterQuality="hqdefault"),this.loadThumbnailImages(this.videoId)}},100)}initIntersectionObserver(){const t={root:null,rootMargin:"0px",threshold:0};new IntersectionObserver((o,s)=>{o.forEach(i=>{i.isIntersecting&&!this.isIframeLoaded&&(j.warmConnections(this),this.addIframe(!0),s.unobserve(this))})},t).observe(this),this.autoPause&&new IntersectionObserver((s,i)=>{s.forEach(r=>{var a,c;r.intersectionRatio!==1&&((c=(a=this.shadowRoot.querySelector("iframe"))==null?void 0:a.contentWindow)==null||c.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"))})},{threshold:1}).observe(this)}attemptShortAutoPlay(){this.isYouTubeShort()&&setTimeout(()=>{var t,e;(e=(t=this.shadowRoot.querySelector("iframe"))==null?void 0:t.contentWindow)==null||e.postMessage('{"event":"command","func":"playVideo","args":""}',"*")},2e3)}isYouTubeShort(){return this.getAttribute("short")===""&&window.matchMedia("(max-width: 40em)").matches}static addPrefetch(t,e){const o=document.createElement("link");o.rel=t,o.href=e,o.crossOrigin="true",document.head.append(o)}static warmConnections(t){j.isPreconnected||window.liteYouTubeIsPreconnected||(j.addPrefetch("preconnect","https://i.ytimg.com/"),j.addPrefetch("preconnect","https://s.ytimg.com"),t.noCookie?j.addPrefetch("preconnect","https://www.youtube-nocookie.com"):(j.addPrefetch("preconnect","https://www.youtube.com"),j.addPrefetch("preconnect","https://www.google.com"),j.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),j.addPrefetch("preconnect","https://static.doubleclick.net")),j.isPreconnected=!0,window.liteYouTubeIsPreconnected=!0)}}j.isPreconnected=!1;customElements.define("lite-youtube",j);function me(){const n=document.querySelectorAll(".js-section-video");n.length!==0&&n.forEach(t=>{he(t)})}function he(n){const t=n.querySelector(".js-video-raw"),e=t==null?void 0:t.value.trim();if(!e)return;const o=n.querySelector(".js-video-content");if(!o)return;o.innerHTML="";const s=new DOMParser().parseFromString(e,"text/html");let i=Array.from(s.querySelectorAll(".kg-card"));if(i.length===0)return;ge(i);const r=document.createDocumentFragment();
vendor: 18,965 bytes, line 108
108i.forEach(a=>r.appendChild(ye(a))),o.appendChild(r)}function ge(n){for(let t=n.length-1;t>0;t--){const e=Math.floor(Math.random()*(t+1));[n[t],n[e]]=[n[e],n[t]]}}function ye(n){const t=n.cloneNode(!0),e=t.querySelector("iframe");if(e!=null&&e.src.includes("youtube.com/embed/")){const o=be(e.src);if(o){const s=document.createElement("lite-youtube");s.setAttribute("videoid",o),s.className="w-full aspect-video rounded-lg overflow-hidden",e.replaceWith(s)}}return t}function be(n){const t=n.match(/\/embed\/([^?&]+)/);return t?t[1]:null}function Tt(n){return typeof n=="number"}function Ct(n){return typeof n=="string"}function bt(n){return typeof n=="boolean"}function zt(n){return Object.prototype.toString.call(n)==="[object Object]"}function D(n){return Math.abs(n)}function Pt(n){return Math.sign(n)}function dt(n,t){return D(n-t)}function ve(n,t){if(n===0||t===0||D(n)<=D(t))return 0;const e=dt(D(n),D(t));return D(e/n)}function we(n){return Math.round(n*100)/100}function ft(n){return pt(n).map(Number)}function W(n){return n[ht(n)]}function ht(n){return Math.max(0,n.length-1)}function Mt(n,t){return t===ht(n)}function Rt(n,t=0){return Array.from(Array(n),(e,o)=>t+o)}function pt(n){return Object.keys(n)}function _t(n,t){return[n,t].reduce((e,o)=>(pt(o).forEach(s=>{const i=e[s],r=o[s],a=zt(i)&&zt(r);e[s]=a?_t(i,r):r}),e),{})}function kt(n,t){return typeof t.MouseEvent<"u"&&n instanceof t.MouseEvent}function Se(n,t){const e={start:o,center:s,end:i};function o(){return 0}function s(c){return i(c)/2}function i(c){return t-c}function r(c,l){return Ct(n)?e[n](c):n(t,c,l)}return{measure:r}}function mt(){let n=[];function t(s,i,r,a={passive:!0}){let c;if("addEventListener"in s)s.addEventListener(i,r,a),c=()=>s.removeEventListener(i,r,a);else{const l=s;l.addListener(r),c=()=>l.removeListener(r)}return n.push(c),o}function e(){n=n.filter(s=>s())}const o={add:t,clear:e};return o}function Ee(n,t,e,o){const s=mt(),i=1e3/60;let r=null,a=0,c=0;function l(){s.add(n,"visibilitychange",()=>{n.hidden&&d()})}function h(){b(),s.clear()}function f(g){if(!c)return;r||(r=g,e(),e());const u=g-r;for(r=g,a+=u;a>=i;)e(),a-=i;const y=a/i;o(y),c&&(c=t.requestAnimationFrame(f))}function m(){c||(c=t.requestAnimationFrame(f))}function b(){t.cancelAnimationFrame(c),r=null,a=0,c=0}function d(){r=null,a=0}return{init:l,destroy:h,start:m,stop:b,update:e,render:o}}function xe(n,t){const e=t==="rtl",o=n==="y",s=o?"y":"x",i=o?"x":"y",r=!o&&e?-1:1,a=h(),c=f();function l(d){const{height:p,width:g}=d;return o?p:g}function h(){return o?"top":e?"right":"left"}function f(){return o?"bottom":e?"left":"right"}function m(d){return d*r}return{scroll:s,cross:i,startEdge:a,endEdge:c,measureSize:l,direction:m}}function st(n=0,t=0){const e=D(n-t);function o(l){return l<n}function s(l){return l>t}function i(l){return o(l)||s(l)}function r(l){return i(l)?o(l)?n:t:l}function a(l){return e?l-e*Math.ceil((l-t)/e):l}return{length:e,max:t,min:n,constrain:r,reachedAny:i,reachedMax:s,reachedMin:o,removeOffset:a}}function Ut(n,t,e){const{constrain:o}=st(0,n),s=n+1;let i=r(t);function r(m){return e?D((s+m)%s):o(m)}function a(){return i}function c(m){return i=r(m),f}function l(m){return h().set(a()+m)}function h(){return Ut(n,a(),e)}const f={get:a,set:c,add:l,clone:h};return f}function Le(n,t,e,o,s,i,r,a,c,l,h,f,m,b,d,p,g,u,y){const{cross:w,direction:x}=n,C=["INPUT","SELECT","TEXTAREA"],L={passive:!1},S=mt(),E=mt(),A=st(50,225).constrain(b.measure(20)),N={mouse:300,touch:400},I={mouse:500,touch:600},O=d?43:25;let U=!1,k=0,B=0,z=!1,R=!1,G=!1,Q=!1;function K(v){if(!y)return;function T(F){(bt(y)||y(v,F))&&at(F)}const q=t;S.add(q,"dragstart",F=>F.preventDefault(),L).add(q,"touchmove",()=>{},L).add(q,"touchend",()=>{}).add(q,"touchstart",T).add(q,"mousedown",T).add(q,"touchcancel",H).add(q,"contextmenu",H).add(q,"click",tt,!0)}function V(){S.clear(),E.clear()}function J(){const v=Q?e:t;E.add(v,"touchmove",$,L).add(v,"touchend",H).add(v,"mousemove",$,L).add(v,"mouseup",H)}function Y(v){const T=v.nodeName||"";return C.includes(T)}function Z(){return(d?I:N)[Q?"mouse":"touch"]}function ct(v,T){const q=f.add(Pt(v)*-1),F=h.byDistance(v,!d).distance;return d||D(v)<A?F:g&&T?F*.5:h.byIndex(q.get(),0).distance}function at(v){const T=kt(v,o);Q=T,G=d&&T&&!v.buttons&&U,U=dt(s.get(),r.get())>=2,!(T&&v.button!==0)&&(Y(v.target)||(z=!0,i.pointerDown(v),l.useFriction(0).useDuration(0),s.set(r),J(),k=i.readPoint(v),B=i.readPoint(v,w),m.emit("pointerDown")))}function $(v){if(!kt(v,o)&&v.touches.length>=2)return H(v);const q=i.readPoint(v),F=i.readPoint(v,w),X=dt(q,k),et=dt(F,B);if(!R&&!Q&&(!v.cancelable||(R=X>et,!R)))return H(v);const ot=i.pointerMove(v);X>p&&(G=!0),l.useFriction(.3).useDuration(.75),a.start(),s.add(x(ot)),v.preventDefault()}function H(v){const q=h.byDistance(0,!1).index!==f.get(),F=i.pointerUp(v)*Z(),X=ct(x(F),q),et=ve(F,X),ot=O-10*et,nt=u+et/50;R=!1,z=!1,E.clear(),l.useDuration(ot).useFriction(nt),c.distance(X,!d),Q=!1,m.emit("pointerUp")}function tt(v){G&&(v.stopPropagation(),v.preventDefault(),G=!1)}function _(){return z}return{init:K,destroy:V,pointerDown:_}}function Ae(n,t){let o,s;function i(f){return f.timeStamp}function r(f,m){const d=`client${(m||n.scroll)==="x"?"X":"Y"}`;return(kt(f,t)?f:f.touches[0])[d]}function a(f){return o=f,s=f,r(f)}function c(f){const m=r(f)-r(s),b=i(f)-i(o)>170;return s=f,b&&(o=f),m}function l(f){if(!o||!s)return 0;const m=r(s)-r(o),b=i(f)-i(o),d=i(f)-i(s)>170,p=m/b;return b&&!d&&D(p)>.1?p:0}return{pointerDown:a,pointerMove:c,pointerUp:l,readPoint:r}}function Ie(){function n(e){const{offsetTop:o,offsetLeft:s,offsetWidth:i,offsetHeight:r}=e;return{top:o,right:s+i,bottom:o+r,left:s,width:i,height:r}}return{measure:n}}function Ce(n){function t(o){return n*(o/100)}return{measure:t}}function ke(n,t,e,o,s,i,r){const a=[n].concat(o);let c,l,h=[],f=!1;function m(g){return s.measureSize(r.measure(g))}function b(g){if(!i)return;l=m(n),h=o.map(m);function u(y){for(const w of y){if(f)return;const x=w.target===n,C=o.indexOf(w.target),L=x?l:h[C],S=m(x?n:o[C]);if(D(S-L)>=.5){g.reInit(),t.emit("resize");break}}}c=new ResizeObserver(y=>{(bt(i)||i(g,y))&&u(y)}),e.requestAnimationFrame(()=>{a.forEach(y=>c.observe(y))})}function d(){f=!0,c&&c.disconnect()}return{init:b,destroy:d}}function Te(n,t,e,o,s,i){let r=0,a=0,c=s,l=i,h=n.get(),f=0;function m(){const L=o.get()-n.get(),S=!c;let E=0;return S?(r=0,e.set(o),n.set(o),E=L):(e.set(n),r+=L/c,r*=l,h+=r,n.add(r),E=h-f),a=Pt(E),f=h,C}function b(){const L=o.get()-t.get();return D(L)<.001}function d(){return c}function p(){return a}function g(){return r}function u(){return w(s)}function y(){return x(i)}function w(L){return c=L,C}function x(L){return l=L,C}const C={direction:p,duration:d,velocity:g,seek:m,settled:b,useBaseFriction:y,useBaseDuration:u,useFriction:x,useDuration:w};return C}function Pe(n,t,e,o,s){const i=s.measure(10),r=s.measure(50),a=st(.1,.99);let c=!1;function l(){return!(c||!n.reachedAny(e.get())||!n.reachedAny(t.get()))}function h(b){if(!l())return;const d=n.reachedMin(t.get())?"min":"max",p=D(n[d]-t.get()),g=e.get()-t.get(),u=a.constrain(p/r);e.subtract(g*u),!b&&D(g)<i&&(e.set(n.constrain(e.get())),o.useDuration(25).useBaseFriction())}function f(b){c=!b}return{shouldConstrain:l,constrain:h,toggleActive:f}}function Me(n,t,e,o,s){const i=st(-t+n,0),r=f(),a=h(),c=m();function l(d,p){return dt(d,p)<=1}function h(){const d=r[0],p=W(r),g=r.lastIndexOf(d),u=r.indexOf(p)+1;return st(g,u)}function f(){return e.map((d,p)=>{const{min:g,max:u}=i,y=i.constrain(d),w=!p,x=Mt(e,p);return w?u:x||l(g,y)?g:l(u,y)?u:y}).map(d=>parseFloat(d.toFixed(3)))}function m(){if(t<=n+s)return[i.max];if(o==="keepSnaps")return r;const{min:d,max:p}=a;return r.slice(d,p)}return{snapsContained:c,scrollContainLimit:a}}function De(n,t,e){const o=t[0],s=e?o-n:W(t);return{limit:st(s,o)}}function Ne(n,t,e,o){const i=t.min+.1,r=t.max+.1,{reachedMin:a,reachedMax:c}=st(i,r);function l(m){return m===1?c(e.get()):m===-1?a(e.get()):!1}function h(m){if(!l(m))return;const b=n*(m*-1);o.forEach(d=>d.add(b))}return{loop:h}}function qe(n){const{max:t,length:e}=n;function o(i){const r=i-t;return e?r/-e:0}return{get:o}}function Oe(n,t,e,o,s){const{startEdge:i,endEdge:r}=n,{groupSlides:a}=s,c=f().map(t.measure),l=m(),h=b();function f(){return a(o).map(p=>W(p)[r]-p[0][i]).map(D)}function m(){return o.map(p=>e[i]-p[i]).map(p=>-D(p))}function b(){return a(l).map(p=>p[0]).map((p,g)=>p+c[g])}return{snaps:l,snapsAligned:h}}function Be(n,t,e,o,s,i){const{groupSlides:r}=s,{min:a,max:c}=o,l=h();function h(){const m=r(i),b=!n||t==="keepSnaps";return e.length===1?[i]:b?m:m.slice(a,c).map((d,p,g)=>{const u=!p,y=Mt(g,p);if(u){const w=W(g[0])+1;return Rt(w)}if(y){const w=ht(i)-W(g)[0]+1;return Rt(w,W(g)[0])}return d})}return{slideRegistry:l}}function He(n,t,e,o,s){const{reachedAny:i,removeOffset:r,constrain:a}=o;function c(d){return d.concat().sort((p,g)=>D(p)-D(g))[0]}function l(d){const p=n?r(d):a(d),g=t.map((y,w)=>({diff:h(y-p,0),index:w})).sort((y,w)=>D(y.diff)-D(w.diff)),{index:u}=g[0];return{index:u,distance:p}}function h(d,p){const g=[d,d+e,d-e];if(!n)return d;if(!p)return c(g);const u=g.filter(y=>Pt(y)===p);return u.length?c(u):W(g)-e}function f(d,p){const g=t[d]-s.get(),u=h(g,p);return{index:d,distance:u}}function m(d,p){const g=s.get()+d,{index:u,distance:y}=l(g),w=!n&&i(g);if(!p||w)return{index:u,distance:d};const x=t[u]-y,C=d+h(x,0);return{index:u,distance:C}}return{byDistance:m,byIndex:f,shortcut:h}}function Fe(n,t,e,o,s,i,r){function a(f){const m=f.distance,b=f.index!==t.get();i.add(m),m&&(o.duration()?n.start():(n.update(),n.render(1),n.update())),b&&(e.set(t.get()),t.set(f.index),r.emit("select"))}function c(f,m){const b=s.byDistance(f,m);a(b)}function l(f,m){const b=t.clone().set(f),d=s.byIndex(b.get(),m);a(d)}return{distance:c,index:l}}function je(n,t,e,o,s,i,r,a){const c={passive:!0,capture:!0};let l=0;function h(b){if(!a)return;function d(p){if(new Date().getTime()-l>10)return;r.emit("slideFocusStart"),n.scrollLeft=0;const y=e.findIndex(w=>w.includes(p));Tt(y)&&(s.useDuration(0),o.index(y,0),r.emit("slideFocus"))}i.add(document,"keydown",f,!1),t.forEach((p,g)=>{i.add(p,"focus",u=>{(bt(a)||a(b,u))&&d(g)},c)})}function f(b){b.code==="Tab"&&(l=new Date().getTime())}return{init:h}}function ut(n){let t=n;function e(){return t}function o(c){t=r(c)}function s(c){t+=r(c)}function i(c){t-=r(c)}function r(c){return Tt(c)?c:c.get()}return{get:e,set:o,add:s,subtract:i}}function Gt(n,t){const e=n.scroll==="x"?r:a,o=t.style;let s=null,i=!1;function r(m){return`translate3d(${m}px,0px,0px)`}function a(m){return`translate3d(0px,${m}px,0px)`}function c(m){if(i)return;const b=we(n.direction(m));b!==s&&(o.transform=e(b),s=b)}function l(m){i=!m}function h(){i||(o.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:h,to:c,toggleActive:l}}function $e(n,t,e,o,s,i,r,a,c){const h=ft(s),f=ft(s).reverse(),m=u().concat(y());function b(S,E){return S.reduce((A,N)=>A-s[N],E)}function d(S,E){return S.reduce((A,N)=>b(A,E)>0?A.concat([N]):A,[])}function p(S){return i.map((E,A)=>({start:E-o[A]+.5+S,end:E+t-.5+S}))}function g(S,E,A){const N=p(E);return S.map(I=>{const O=A?0:-e,U=A?e:0,k=A?"end":"start",B=N[I][k];return{index:I,loopPoint:B,slideLocation:ut(-1),translate:Gt(n,c[I]),target:()=>a.get()>B?O:U}})}function u(){const S=r[0],E=d(f,S);return g(E,e,!1)}function y(){const S=t-r[0]-1,E=d(h,S);return g(E,-e,!0)}function w(){return m.every(({index:S})=>{const E=h.filter(A=>A!==S);return b(E,t)<=.1})}function x(){m.forEach(S=>{const{target:E,translate:A,slideLocation:N}=S,I=E();I!==N.get()&&(A.to(I),N.set(I))})}function C(){m.forEach(S=>S.translate.clear())}return{canLoop:w,clear:C,loop:x,loopPoints:m}}function ze(n,t,e){let o,s=!1;function i(c){if(!e)return;function l(h){for(const f of h)if(f.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}o=new MutationObserver(h=>{s||(bt(e)||e(c,h))&&l(h)}),o.observe(n,{childList:!0})}function r(){o&&o.disconnect(),s=!0}return{init:i,destroy:r}}function Re(n,t,e,o){const s={};let i=null,r=null,a,c=!1;function l(){a=new IntersectionObserver(d=>{c||(d.forEach(p=>{const g=t.indexOf(p.target);s[g]=p}),i=null,r=null,e.emit("slidesInView"))},{root:n.parentElement,threshold:o}),t.forEach(d=>a.observe(d))}function h(){a&&a.disconnect(),c=!0}function f(d){return pt(s).reduce((p,g)=>{const u=parseInt(g),{isIntersecting:y}=s[u];return(d&&y||!d&&!y)&&p.push(u),p},[])}function m(d=!0){if(d&&i)return i;if(!d&&r)return r;const p=f(d);return d&&(i=p),d||(r=p),p}return{init:l,destroy:h,get:m}}function Ve(n,t,e,o,s,i){const{measureSize:r,startEdge:a,endEdge:c}=n,l=e[0]&&s,h=d(),f=p(),m=e.map(r),b=g();function d(){if(!l)return 0;const y=e[0];return D(t[a]-y[a])}function p(){if(!l)return 0;const y=i.getComputedStyle(W(o));return parseFloat(y.getPropertyValue(`margin-${c}`))}function g(){return e.map((y,w,x)=>{const C=!w,L=Mt(x,w);return C?m[w]+h:L?m[w]+f:x[w+1][a]-y[a]}).map(D)}return{slideSizes:m,slideSizesWithGaps:b,startGap:h,endGap:f}}function _e(n,t,e,o,s,i,r,a,c){const{startEdge:l,endEdge:h,direction:f}=n,m=Tt(e);function b(u,y){return ft(u).filter(w=>w%y===0).map(w=>u.slice(w,w+y))}function d(u){return u.length?ft(u).reduce((y,w,x)=>{const C=W(y)||0,L=C===0,S=w===ht(u),E=s[l]-i[C][l],A=s[l]-i[w][h],N=!o&&L?f(r):0,I=!o&&S?f(a):0,O=D(A-I-(E+N));return x&&O>t+c&&y.push(w),S&&y.push(u.length),y},[]).map((y,w,x)=>{const C=Math.max(x[w-1]||0);return u.slice(C,y)}):[]}function p(u){return m?b(u,e):d(u)}return{groupSlides:p}}function Ue(n,t,e,o,s,i,r){const{align:a,axis:c,direction:l,startIndex:h,loop:f,duration:m,dragFree:b,dragThreshold:d,inViewThreshold:p,slidesToScroll:g,skipSnaps:u,containScroll:y,watchResize:w,watchSlides:x,watchDrag:C,watchFocus:L}=i,S=2,E=Ie(),A=E.measure(t),N=e.map(E.measure),I=xe(c,l),O=I.measureSize(A),U=Ce(O),k=Se(a,O),B=!f&&!!y,z=f||!!y,{slideSizes:R,slideSizesWithGaps:G,startGap:Q,endGap:K}=Ve(I,A,N,e,z,s),V=_e(I,O,g,f,A,N,Q,K,S),{snaps:J,snapsAligned:Y}=Oe(I,k,A,N,V),Z=-W(J)+W(G),{snapsContained:ct,scrollContainLimit:at}=Me(O,Z,Y,y,S),$=B?ct:Y,{limit:H}=De(Z,$,f),tt=Ut(ht($),h,f),_=tt.clone(),P=ft(e),v=({dragHandler:rt,scrollBody:Lt,scrollBounds:At,options:{loop:gt}})=>{gt||At.constrain(rt.pointerDown()),Lt.seek()},T=({scrollBody:rt,translate:Lt,location:At,offsetLocation:gt,previousLocation:Xt,scrollLooper:Jt,slideLooper:Yt,dragHandler:Zt,animation:te,eventHandler:Ot,scrollBounds:ee,options:{loop:Bt}},Ht)=>{const Ft=rt.settled(),ne=!ee.shouldConstrain(),jt=Bt?Ft:Ft&&ne,$t=jt&&!Zt.pointerDown();$t&&te.stop();const oe=At.get()*Ht+Xt.get()*(1-Ht);gt.set(oe),Bt&&(Jt.loop(rt.direction()),Yt.loop()),Lt.to(gt.get()),$t&&Ot.emit("settle"),jt||Ot.emit("scroll")},q=Ee(o,s,()=>v(xt),rt=>T(xt,rt)),F=.68,X=$[tt.get()],et=ut(X),ot=ut(X),nt=ut(X),it=ut(X),lt=Te(et,nt,ot,it,m,F),St=He(f,$,Z,H,it),Et=Fe(q,tt,_,lt,St,it,r),Dt=qe(H),Nt=mt(),Wt=Re(t,e,r,p),{slideRegistry:qt}=Be(B,y,$,at,V,P),Kt=je(n,e,qt,Et,lt,Nt,r,L),xt={ownerDocument:o,ownerWindow:s,eventHandler:r,containerRect:A,slideRects:N,animation:q,axis:I,dragHandler:Le(I,n,o,s,it,Ae(I,s),et,q,Et,lt,St,tt,r,U,b,d,u,F,C),eventStore:Nt,percentOfView:U,index:tt,indexPrevious:_,limit:H,location:et,offsetLocation:nt,previousLocation:ot,options:i,resizeHandler:ke(t,r,s,e,I,w,E),scrollBody:lt,scrollBounds:Pe(H,nt,it,lt,U),scrollLooper:Ne(Z,H,nt,[et,nt,ot,it]),scrollProgress:Dt,scrollSnapList:$.map(Dt.get),scrollSnaps:$,scrollTarget:St,scrollTo:Et,slideLooper:$e(I,O,Z,R,G,J,$,nt,e),slideFocus:Kt,slidesHandler:ze(t,r,x),slidesInView:Wt,slideIndexes:P,slideRegistry:qt,slidesToScroll:V,target:it,translate:Gt(I,t)};return xt}function Ge(){let n={},t;function e(l){t=l}function o(l){return n[l]||[]}function s(l){return o(l).forEach(h=>h(t,l)),c}function i(l,h){return n[l]=o(l).concat([h]),c}function r(l,h){return n[l]=o(l).filter(f=>f!==h),c}function a(){n={}}const c={init:e,emit:s,off:r,on:i,clear:a};return c}const Qe={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function We(n){function t(i,r){return _t(i,r||{})}function e(i){const r=i.breakpoints||{},a=pt(r).filter(c=>n.matchMedia(c).matches).map(c=>r[c]).reduce((c,l)=>t(c,l),{});return t(i,a)}function o(i){return i.map(r=>pt(r.breakpoints||{})).reduce((r,a)=>r.concat(a),[]).map(n.matchMedia)}return{mergeOptions:t,optionsAtMedia:e,optionsMediaQueries:o}}function Ke(n){let t=[];function e(i,r){return t=r.filter(({options:a})=>n.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(i,n)),r.reduce((a,c)=>Object.assign(a,{[c.name]:c}),{})}function o(){t=t.filter(i=>i.destroy())}return{init:e,destroy:o}}function vt(n,t,e){const o=n.ownerDocument,s=o.defaultView,i=We(s),r=Ke(i),a=mt(),c=Ge(),{mergeOptions:l,optionsAtMedia:h,optionsMediaQueries:f}=i,{on:m,off:b,emit:d}=c,p=I;let g=!1,u,y=l(Qe,vt.globalOptions),w=l(y),x=[],C,L,S;function E(){const{container:P,slides:v}=w;L=(Ct(P)?n.querySelector(P):P)||n.children[0];const q=Ct(v)?L.querySelectorAll(v):v;S=[].slice.call(q||L.children)}function A(P){const v=Ue(n,L,S,o,s,P,c);if(P.loop&&!v.slideLooper.canLoop()){const T=Object.assign({},P,{loop:!1});return A(T)}return v}function N(P,v){g||(y=l(y,P),w=h(y),x=v||x,E(),u=A(w),f([y,...x.map(({options:T})=>T)]).forEach(T=>a.add(T,"change",I)),w.active&&(u.translate.to(u.location.get()),u.animation.init(),u.slidesInView.init(),u.slideFocus.init(_),u.eventHandler.init(_),u.resizeHandler.init(_),u.slidesHandler.init(_),u.options.loop&&u.slideLooper.loop(),L.offsetParent&&S.length&&u.dragHandler.init(_),C=r.init(_,x)))}function I(P,v){const T=V();O(),N(l({startIndex:T},P),v),c.emit("reInit")}function O(){u.dragHandler.destroy(),u.eventStore.clear(),u.translate.clear(),u.slideLooper.clear(),u.resizeHandler.destroy(),u.slidesHandler.destroy(),u.slidesInView.destroy(),u.animation.destroy(),r.destroy(),a.clear()}function U(){g||(g=!0,a.clear(),O(),c.emit("destroy"),c.clear())}function k(P,v,T){!w.active||g||(u.scrollBody.useBaseFriction().useDuration(v===!0?0:w.duration),u.scrollTo.index(P,T||0))}function B(P){const v=u.index.add(1).get();k(v,P,-1)}function z(P){const v=u.index.add(-1).get();k(v,P,1)}function R(){return u.index.add(1).get()!==V()}function G(){return u.index.add(-1).get()!==V()}function Q(){return u.scrollSnapList}function K(){return u.scrollProgress.get(u.offsetLocation.get())}function V(){return u.index.get()}function J(){return u.indexPrevious.get()}function Y(){return u.slidesInView.get()}function Z(){return u.slidesInView.get(!1)}function ct(){return C}function at(){return u}function $(){return n}function H(){return L}function tt(){return S}const _={canScrollNext:R,canScrollPrev:G,containerNode:H,internalEngine:at,destroy:U,off:b,on:m,emit:d,plugins:ct,previousScrollSnap:J,reInit:p,rootNode:$,scrollNext:B,scrollPrev:z,scrollProgress:K,scrollSnapList:Q,scrollTo:k,selectedScrollSnap:V,slideNo
108des:tt,slidesInView:Y,slidesNotInView:Z};return N(t,e),setTimeout(()=>c.emit("init"),0),_}vt.globalOptions=void 0;const Xe={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function Je(n,t){const e=n.scrollSnapList();return typeof t=="number"?e.map(()=>t):t(e,n)}function Ye(n,t){const e=n.rootNode();return t&&t(e)||e}function wt(n={}){let t,e,o,s,i=null,r=0,a=!1,c=!1,l=!1,h=!1;function f(k,B){e=k;const{mergeOptions:z,optionsAtMedia:R}=B,G=z(Xe,wt.globalOptions),Q=z(G,n);if(t=R(Q),e.scrollSnapList().length<=1)return;h=t.jump,o=!1,s=Je(e,t.delay);const{eventStore:K,ownerDocument:V}=e.internalEngine(),J=!!e.internalEngine().options.watchDrag,Y=Ye(e,t.rootNode);K.add(V,"visibilitychange",u),J&&e.on("pointerDown",w),J&&!t.stopOnInteraction&&e.on("pointerUp",x),t.stopOnMouseEnter&&K.add(Y,"mouseenter",C),t.stopOnMouseEnter&&!t.stopOnInteraction&&K.add(Y,"mouseleave",L),t.stopOnFocusIn&&e.on("slideFocusStart",g),t.stopOnFocusIn&&!t.stopOnInteraction&&K.add(e.containerNode(),"focusout",p),t.playOnInit&&p()}function m(){e.off("pointerDown",w).off("pointerUp",x).off("slideFocusStart",g),g(),o=!0,a=!1}function b(){const{ownerWindow:k}=e.internalEngine();k.clearTimeout(r),r=k.setTimeout(I,s[e.selectedScrollSnap()]),i=new Date().getTime(),e.emit("autoplay:timerset")}function d(){const{ownerWindow:k}=e.internalEngine();k.clearTimeout(r),r=0,i=null,e.emit("autoplay:timerstopped")}function p(){if(!o){if(y()){l=!0;return}a||e.emit("autoplay:play"),b(),a=!0}}function g(){o||(a&&e.emit("autoplay:stop"),d(),a=!1)}function u(){if(y())return l=a,g();l&&p()}function y(){const{ownerDocument:k}=e.internalEngine();return k.visibilityState==="hidden"}function w(){c||g()}function x(){c||p()}function C(){c=!0,g()}function L(){c=!1,p()}function S(k){typeof k<"u"&&(h=k),p()}function E(){a&&g()}function A(){a&&p()}function N(){return a}function I(){const{index:k}=e.internalEngine(),B=k.clone().add(1).get(),z=e.scrollSnapList().length-1,R=t.stopOnLastSnap&&B===z;if(e.canScrollNext()?e.scrollNext(h):e.scrollTo(0,h),e.emit("autoplay:select"),R)return g();p()}function O(){if(!i)return null;const k=s[e.selectedScrollSnap()],B=new Date().getTime()-i;return k-B}return{name:"autoplay",options:n,init:f,destroy:m,play:S,stop:E,reset:A,isPlaying:N,timeUntilNext:O}}wt.globalOptions=void 0;const Ze="embla__dot",tn="is-selected",en={prevButtonSelector:".embla__prev",nextButtonSelector:".embla__next",dotsSelector:".embla__dots",emblaOptions:{loop:!0},autoplayOptions:{delay:4e3,stopOnInteraction:!1,stopOnMouseEnter:!0}};function nn(n){const t=[];return n.autoplayOptions!==!1&&n.autoplayOptions!=null&&t.push(wt(n.autoplayOptions)),t}class on{constructor(t){M(this,"emblaApi",null);M(this,"containerElement");M(this,"carouselConfig");M(this,"previousButton",null);M(this,"nextButton",null);M(this,"previousButtonHandler");M(this,"nextButtonHandler");M(this,"dotsContainerElement",null);M(this,"dotElements",[]);M(this,"dotClickHandlers",[]);M(this,"selectEventHandler");if(this.carouselConfig={...en,...t,container:t.container??".embla"},this.containerElement=typeof this.carouselConfig.container=="string"?document.querySelector(this.carouselConfig.container):this.carouselConfig.container,!this.containerElement)throw new Error(`Carousel: container not found: ${this.carouselConfig.container}`)}initialize(){const t=nn(this.carouselConfig);this.emblaApi=vt(this.containerElement,this.carouselConfig.emblaOptions,t),this.setupNavigation(),this.setupDots()}setupNavigation(){if(!this.emblaApi)return;[{selector:this.carouselConfig.prevButtonSelector,action:()=>{var e;return(e=this.emblaApi)==null?void 0:e.scrollPrev()}},{selector:this.carouselConfig.nextButtonSelector,action:()=>{var e;return(e=this.emblaApi)==null?void 0:e.scrollNext()}}].forEach((e,o)=>{e.selector&&this.setupButton(e.selector,e.action,o===0?"previous":"next")})}setupButton(t,e,o){const s=this.containerElement.querySelector(t)??null;if(!s)return;const i=()=>e();this.addEventListenerSafely(s,"click",i),o==="previous"?(this.previousButton=s,this.previousButtonHandler=i):(this.nextButton=s,this.nextButtonHandler=i)}setupDots(){if(!this.emblaApi||!this.carouselConfig.dotsSelector)return;this.dotsContainerElement=this.containerElement.querySelector(this.carouselConfig.dotsSelector)??null,this.dotsContainerElement||(this.dotsContainerElement=document.createElement("div"),this.dotsContainerElement.className=this.carouselConfig.dotsSelector.replace(".",""),this.containerElement.appendChild(this.dotsContainerElement));
108const t=this.emblaApi.slideNodes().length;if(this.dotsContainerElement.children.length===0)for(let e=0;e<t;e++){const o=document.createElement("button");o.className=Ze,o.setAttribute("aria-label",`Go to slide ${e+1}`),this.dotsContainerElement.appendChild(o)}this.dotElements=Array.from(this.dotsContainerElement.querySelectorAll('button, [role="button"], [data-dot]')),this.dotClickHandlers=this.dotElements.map((e,o)=>{const s=()=>{var i;return(i=this.emblaApi)==null?void 0:i.scrollTo(o)};return this.addEventListenerSafely(e,"click",s),s}),this.selectEventHandler=()=>this.updateDots(),this.emblaApi.on("select",this.selectEventHandler),this.updateDots()}updateDots(){if(!this.emblaApi||this.dotElements.length===0)return;const t=this.emblaApi.selectedScrollSnap();this.dotElements.forEach((e,o)=>{e.classList.toggle(tn,o===t)})}addEventListenerSafely(t,e,o){t.addEventListener(e,o)}destroy(){var t;this.removeButtonListeners(),this.removeDotListeners(),this.emblaApi&&this.selectEventHandler&&(typeof this.emblaApi.off=="function"&&this.emblaApi.off("select",this.selectEventHandler),this.selectEventHandler=void 0);try{(t=this.emblaApi)==null||t.destroy()}catch(e){console.warn("[Carousel] Embla destroy error",e)}finally{this.emblaApi=null}}removeButtonListeners(){this.previousButton&&this.previousButtonHandler&&this.previousButton.removeEventListener("click",this.previousButtonHandler),this.nextButton&&this.nextButtonHandler&&this.nextButton.removeEventListener("click",this.nextButtonHandler),this.previousButtonHandler=void 0,this.nextButtonHandler=void 0,this.previousButton=null,this.nextButton=null}removeDotListeners(){this.dotsContainerElement&&this.dotElements.length&&this.dotElements.forEach((t,e)=>{const o=this.dotClickHandlers[e];o&&t.removeEventListener("click",o)}),this.dotElements=[],this.dotClickHandlers=[],this.dotsContainerElement=null}getApi(){return this.emblaApi}}const sn=n=>n.map(t=>[Math.random(),t]).sort((t,e)=>t[0]-e[0]).map(t=>t[1]),rn=n=>{n.classList.remove("hidden"),n.classList.add("flex","overflow-hidden");const t=Number(n.getAttribute("data-time"))||3e3,e=n.querySelector(".embla"),o=n.querySelector(".embla__container");if(!e||!o)return;const s=sn(Array.from(n.querySelectorAll("figure")));o.innerHTML="",s.forEach(r=>{r.removeAttribute("class"),r.classList.add("flex","justify-center");const a=document.createElement("div");a.className="embla__slide flex min-w-full items-center justify-center flex-col";const c=r.querySelector("img");if(c){c.removeAttribute("class");const h=c.getAttribute("width");h&&c.setAttribute("sizes",`(min-width: ${h}px) ${h}px`)}const l=r.querySelector("a");l&&(l.target="_blank",l.rel="noopener noreferrer"),a.appendChild(r),o.appendChild(a)}),new on({container:e,emblaOptions:{loop:!0},dotsSelector:!1,autoplayOptions:{delay:t}}).initialize()},Qt=()=>{const n=document.querySelectorAll(".js-banners");n.length!==0&&n.forEach(rn)};window.sitePortal=window.sitePortal||{};window.sitePortal.loadCustomBanners=Qt;const cn=()=>{document.querySelectorAll(".js-stories-carousel").forEach(n=>{const t=n.querySelector(".embla");if(!t)return;const e=vt(t,{loop:!0},[wt({delay:5e3,stopOnInteraction:!0,stopOnMouseEnter:!0})]),o=t.querySelector(".embla__prev"),s=t.querySelector(".embla__next");o==null||o.addEventListener("click",()=>e.scrollPrev()),s==null||s.addEventListener("click",()=>e.scrollNext());const i=n.querySelector(".embla__dots");if(!i)return;e.slideNodes().forEach((a,c)=>{const l=document.createElement("button");l.className="embla__dot",l.setAttribute("aria-label",`Slide ${c+1}`),l.addEventListener("click",()=>e.scrollTo(c)),i.appendChild(l)});const r=()=>{const a=e.selectedScrollSnap();i.querySelectorAll(".embla__dot").forEach((c,l)=>{c.classList.toggle("is-selected",l===a)})};e.on("select",r),r()})};function an(){if(typeof document>"u")return;const n=['iframe[src*="player.vimeo.com"]','iframe[src*="dailymotion.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="player.twitch.tv"]','iframe[src*="kickstarter.com"][src*="video.html"]'],t=document.querySelectorAll(n.join(","));
108t.length&&t.forEach(e=>{e.classList.add("aspect-video","w-full"),e.removeAttribute("height"),e.removeAttribute("width")})}function ln(n){const t=n.cloneNode(!0);return t.querySelectorAll("img, iframe, video, script, figure, aside, style, .kg-card, div").forEach(e=>e.remove()),t.querySelectorAll("a").forEach(e=>{var s;const o=((s=e.textContent)==null?void 0:s.trim())??"";e.replaceWith(document.createTextNode(o))}),t.innerHTML.trim()}function un(n){var r;const t=document.querySelector(".logo-default"),e=document.querySelector(".post-title");if(!t||!e)return null;const o=t.cloneNode(!0);o.classList.add("mx-auto","block","max-h-20"),o.classList.remove("w-full","max-h-16");const s=e.cloneNode(!0);s.classList.remove("md:text-4xl","lg:text-40");const i=document.createElement("div");return i.id="modal-impresion",i.className="fixed inset-0 bg-black/50 flex items-center justify-center z-50",i.innerHTML=` 109 <div class="relative max-h-[80vh]"> 110 <button class="absolute w-6 h-6 cursor-pointer top-0 -mt-8 right-0 text-white opacity-80 hover:opacity-100 text-xl no-print" data-close> 111 <svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 512 512"> 112 <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M368 368L144 144M368 144L144 368" /> 113 </svg> 114 </button> 115 <div class="bg-white shadow-2xl w-full max-w-3xl p-6 relative overflow-auto max-h-[80vh]"> 116 <div id="modal-content" class="post-body max-w-none text-gray-800 pt-0!"> 117 ${o.outerHTML} 118 <div class="flex justify-end mt-0! no-print"> 119 <button class="text-black px-4 hover:text-primary leading-none cursor-pointer" data-print>Imprimir</button> 120 </div> 121 ${s.outerHTML} 122 ${n} 123 <div class="flex justify-end no-print"> 124 <button class="text-black px-4 hover:text-primary leading-none cursor-pointer" data-print>Imprimir</button> 125 </div> 126 </div> 127 </div> 128 </div> 129 `,i.addEventListener("click",a=>{a.target===i&&i.remove()}),(r=i.querySelector("[data-close]"))==null||r.addEventListener("click",()=>i.remove()),i.querySelectorAll("[data-print]").forEach(a=>{a.addEventListener("click",()=>{const c=i.querySelector("#modal-content");if(!c)return;let l=document.getElementById("print-area");l||(l=document.createElement("div"),l.id="print-area",l.style.display="none",document.body.appendChild(l)),l.innerHTML=c.innerHTML;const h=document.createElement("style");h.textContent=` 130 @media print { 131 body > *:not(#print-area) { 132 display: none !important; 133 } 134 #print-area { 135 display: block !important; 136 padding: 20px; 137 font-family: sans-serif; 138 color: #000; 139 } 140 #print-area h1, h2, h3 { 141 margin-top: 1.5em; 142 } 143 #print-area h1:first-of-type { 144 margin-top: 0; 145 } 146 #print-area img { 147 max-width: 11.25rem; 148 } 149 #print-area p { 150 margin: 0.5em 0; 151 } 152 .no-print { 153 display: none !important; 154 } 155 } 156 `,document.head.appendChild(h),window.print(),setTimeout(()=>{h.remove(),l.innerHTML=""},1e3)})}),i}function dn(){const n=document.querySelectorAll(".js-print");n.length&&n.forEach(t=>{t.addEventListener("click",e=>{e.preventDefault();const o=document.querySelector("#post-body");if(!o)return;const s=ln(o),i=un(s);i&&document.body.appendChild(i)})})}function fn(){const n=document.querySelectorAll(".js-copy-link");n.length&&n.forEach(t=>{t.addEventListener("click",e=>{e.preventDefault();const o=t.querySelector(".shortlink-indicator");if(!o)return;let s=o.dataset.timeoutId?Number(o.dataset.timeoutId):null;s&&clearTimeout(s),navigator.clipboard.writeText(t.href).then(()=>{o.classList.remove("hidden");const i=window.setTimeout(()=>{o.classList.add("hidden"),o.dataset.timeoutId=""},4e3);o.dataset.timeoutId=String(i)}).catch(()=>{console.warn("No se pudo copiar el enlace")})})})}(function(){de()})();const pn=()=>{Vt(),fe(),pe(),me(),Qt(),cn(),an(),dn(),fn()};document.addEventListener("DOMContentLoaded",pn);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.