1const a=(r,e)=>new Promise(s=>{let n=document.querySelector(r);n!==null&&s(n)}).then(s=>{let n=new IntersectionObserver(l=>{let t=0,o=l.length;for(t;t<o;t++)l[t].isIntersecting>0&&(n.unobserve(l[t].target),e(l[t].target))},{rootMargin:"100px 0px",threshold:[0,.25,.5,.75,1]});n.observe(s)}),i=async(r,e)=>new Promise(()=>{let s=new IntersectionObserver(t=>{let o=0,u=t.length;for(o;o<u;o++)t[o].isIntersecting>0&&(s.unobserve(t[o].target),e(t[o].target))},{rootMargin:"100px 0px",threshold:[0,.25,.5,.75,1]}),n=0,l=r.length;for(n;n<l;n++)s.observe(r[n])}),c=async()=>new Promise(()=>{document.querySelectorAll("#lazy")}),d=async()=>new Promise(r=>{"IntersectionObserver"in window==1?r():c()}).then(()=>{let r=document.querySelectorAll("#lazy");i(r,e=>{e.src=e.dataset.src==null?e.src:e.dataset.src,e.removeAttribute("id"),e.removeAttribute("style")})}),b=async()=>new Promise(r=>{"IntersectionObserver"in window==1?r():c()}).then(()=>{let r=document.querySelectorAll("#lazyIframe");i(r,e=>{e.src=e.dataset.src,e.height=innerWidth>1e3?451:parseInt(innerWidth/1.78),e.removeAttribute("id")})});export{d as lazyImage,b as lazyYoutube,a as observerTarget};
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.