1import{e as d}from"./DQM39uDX.js";const p=100;let l=null;const c=new WeakMap,g=(e,s)=>{e.forEach(r=>{if(!r.isIntersecting)return;const t=c.get(r.target);t&&t(),s.unobserve(r.target),c.delete(r.target)})},h=()=>typeof IntersectionObserver>"u"?null:(l||(l=new IntersectionObserver(g,{threshold:1})),l);function v(){let e=[],s,r;const t=()=>{r&&(clearTimeout(r),r=void 0),e.length&&(d("recipe-impression",{label:e.map(n=>n.id).filter(n=>!!n),recipe:e,eventContext:s}),e=[],s=void 0)},o=()=>{r&&clearTimeout(r),r=setTimeout(()=>{r=void 0,t()},p)};return{registerCard:(n,i,f)=>{if(!i||!n)return()=>{};const a=h();return a?(c.set(i,()=>{e.push(n),f&&(s=f),o()}),a.observe(i),()=>{a.unobserve(i),c.delete(i)}):()=>{}},flush:t}}function I(){const e=new Map;return{registerRef:(t,o,u)=>{if(!o){e.get(t)?.(),e.delete(t);return}e.has(t)||e.set(t,u(o))},cleanupAll:()=>{e.forEach(t=>t()),e.clear()}}}const R=Symbol("recipe-impression-batcher");export{R,v as a,I as c};
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.