1import{t as d}from"./chunk-4N6VE7H7-Exqj4PTM.js";const a=t=>setTimeout(()=>t({didTimeout:!1,timeRemaining:()=>0}),1),u="requestIdleCallback"in window?window.requestIdleCallback:a,f=(t,c)=>{const{requestIdleCallback:n,loadOnScroll:l}=c||{};d.useEffect(()=>{if(!t)return;let e,i=!1;const r=()=>{document.querySelector(`script[src="${t}"]`)||(e=document.createElement("script"),e.src=t,e.async=!0,document.body.appendChild(e))},s=()=>{n?u(()=>r()):r()};if(l){const o=()=>{i||(i=!0,window.removeEventListener("scroll",o),s())};return window.addEventListener("scroll",o,{passive:!0}),()=>{window.removeEventListener("scroll",o),e&&document.body.contains(e)&&document.body.removeChild(e)}}return s(),()=>{e&&document.body.contains(e)&&document.body.removeChild(e)}},[n,t,l])};export{u as s,f as u};
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.