1"use strict";(self.webpackChunkunia21=self.webpackChunkunia21||[]).push([[8936],{8936:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var s=r(2603);class i{constructor(){"requestIdleCallback"in window?requestIdleCallback(()=>this.init(),{timeout:2500}):window.addEventListener("load",()=>this.init())}init(){const e=document.querySelector(".carousel-home");if(!e)return;this.hydratePicture=this.hydratePicture.bind(this),this.io=new IntersectionObserver(this.onIntersect.bind(this),{root:null,rootMargin:"200px 0px",threshold:.01}),e.querySelectorAll(".carousel-item").forEach((e,t)=>{const r=e.querySelector("picture");r&&(e.classList.contains("active")||0===t?this.hydratePicture(r):this.io.observe(e))});const t=new s.FN(e,{wrap:!0,interval:5e3,pause:!1,touch:!0,indicators:!1});this.addHoverPause(t,e),e.addEventListener("slide.bs.carousel",t=>{const r=t.relatedTarget;if(!r)return;const s=r.querySelector("picture");s&&this.hydratePicture(s);const i=r.nextElementSibling||e.querySelector(".carousel-item:first-child");if(i){const e=i.querySelector("picture");e&&this.hydratePicture(e)}}),this._resizeReq=null,this.resizeHeroBound=()=>{this._resizeReq||(this._resizeReq=requestAnimationFrame(()=>{this._resizeReq=null,this.resizeHero(e)}))},window.addEventListener("resize",this.resizeHeroBound,{passive:!0}),window.addEventListener("orientationchange",this.resizeHeroBound),setTimeout(()=>this.resizeHero(e),0)}onIntersect(e){for(const t of e)if(t.isIntersecting){const e=t.target,r=e.querySelector("picture");r&&this.hydratePicture(r),this.io.unobserve(e)}}hydratePicture(e){if(!e||e.__hydrated)return;const t=e=>{const t=e.getAttribute("data-src"),r=e.getAttribute("data-srcset"),s=e.getAttribute("data-sizes");r&&!e.getAttribute("srcset")&&e.setAttribute("srcset",r),s&&!e.getAttribute("sizes")&&e.setAttribute("sizes",s),t&&!e.getAttribute("src")&&e.setAttribute("src",t),e.removeAttribute("data-src"),e.removeAttribute("data-srcset"),e.removeAttribute("data-sizes"),e.classList&&e.classList.remove("lazyload")};e.querySelectorAll("source").forEach(t);const r=e.querySelector("img");r&&(t(r),"lazy"===r.loading&&e.closest(".carousel-item")?.classList.contains("active")&&(r.loading="eager",r.setAttribute("fetchpriority","high"),r.decoding="async")),e.__hydrated=!0}resizeHero(e){if(!e)return;const t=document.querySelector(".page-header"),r=document.querySelector(".hero-wrap");if(!r)return;if(r.classList.contains("hero-has-yt"))return;const s=t?t.offsetHeight:0,i=window.innerHeight||document.documentElement.clientHeight,o=Math.max(320,i-s);r.style.height=o+"px",r.style.maxHeight=o+"px"}addHoverPause(e,t){t.querySelectorAll(".hero-info").forEach(t=>{t.addEventListener("mouseenter",()=>e.pause(),{passive:!0}),t.addEventListener("mouseleave",()=>e.cycle(),{passive:!0})})}}}}]);
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.