1import{q as o}from"./index.C1_PUtoI.js";import"./traffic-processing.BoysJk_L.js";class l{constructor(t){this.registry={},this.timers={},t.forEach(e=>{this.registry[e.key]||(this.registry[e.key]=[]),this.registry[e.key].push(e)}),this.init()}init(){for(const t in this.registry)Object.hasOwnProperty.call(this.registry,t)&&this.setTimer(t)}setTimer(t){const e=this.registry[t],i=()=>{clearInterval(this.timers[t])},r=()=>{this.timers[t]=window.setInterval(()=>{e.forEach(s=>s.move(1))},4e3)};e.forEach(s=>{s.el.addEventListener("mouseenter",i),s.el.addEventListener("touchstart",i),s.el.addEventListener("mouseleave",r),s.el.addEventListener("touchend",r)}),r()}}class n{constructor(t){this.startX=0,this.endX=0,this.el=t,this.items=Array.from(t.querySelectorAll(".carousel-content > div > div")),this.switchers=o(this.el,".carousel-switchers"),this.key=this.el.dataset.key,this.dots=this.items.map((e,i)=>{e.classList.add("carousel-item","fade"),e.addEventListener("touchstart",s=>this.onSwipeStart(s)),e.addEventListener("touchend",s=>this.onSwipeEnd(s));const r=document.createElement("button");return r.classList.add("dot"),this.switchers.append(r),r.onclick=()=>{this.showSlide(i)},r}),this.el.querySelector(".carousel-arrow.left")&&o(this.el,".carousel-arrow.left").addEventListener("click",()=>this.showSlide(this.currentIdx-1)),this.el.querySelector(".carousel-arrow.right")&&o(this.el,".carousel-arrow.right").addEventListener("click",()=>this.showSlide(this.currentIdx+1)),this.currentIdx=0,this.showSlide(this.currentIdx)}onSwipeStart(t){this.startX=t.touches[0].clientX}onSwipeEnd(t){this.endX=t.changedTouches[0].clientX,this.handleGesture(this.startX,this.endX)}handleGesture(t,e){t-e>50?this.showSlide(this.currentIdx+1):e-t>50&&this.showSlide(this.currentIdx-1)}showSlide(t){t>=this.items.length?this.currentIdx=0:t<0?this.currentIdx=this.items.length-1:this.currentIdx=t,this.items.forEach(e=>{e.style.display="none"}),this.dots.forEach(e=>e.classList.remove("active")),this.items[this.currentIdx].style.display="block",this.dots[this.currentIdx].classList.add("active")}move(t){this.showSlide(this.currentIdx+t)}}new l(Array.from(document.querySelectorAll(".carousel")).map(h=>new n(h)));
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.