1import y from"./html5-video-Db8_XDPK.js";class V{constructor(i){this.sections=document.querySelectorAll(i.join(",")),this.sections.length&&this.sections.forEach(t=>this.initVideo(t))}initVideo(i){const t=i.querySelector("[data-autoplay-video-with-poster]");if(!t)return;const a=window.matchMedia("(min-width: 992px)");let e,o,n=!1,r=!1,s;const l=()=>{!e||!a.matches||!n||r||(r=!0,o==null||o.disconnect(),e.autoplay=!0,e.load(),e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA&&s())},c=()=>{var h;if(!a.matches||e||(e=new y((h=t.dataset)==null?void 0:h.url,!1,!0,!1,!0,!0,t.dataset.videoClass).getVideo(),!e))return;const d=i.querySelector(t.dataset.posterSelector);s=()=>{e.removeEventListener("loadeddata",s),e.style.visibility="",d==null||d.remove()},e.preload="none",e.style.visibility="hidden",e.addEventListener("loadeddata",s),t.appendChild(e),o=new IntersectionObserver(f=>{n=f.some(p=>p.isIntersecting),l()},{threshold:.1}),o.observe(i)};c(),a.addEventListener("change",u=>{if(!u.matches){e==null||e.pause();return}if(e){l(),r&&e.play().catch(()=>{});return}c()})}}export{V as default};
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.