1import{d as g,f as v,n as k,Q as p,o as w,c as R,u as m,M as y}from"./entry.cb3b1797.js";const B=150,l=new Map;function L(){for(;l.size>B;){const n=l.keys().next().value,t=l.get(n);l.delete(n),t?.then(e=>URL.revokeObjectURL(e)).catch(()=>{})}}function U(n){const t=l.get(n);if(t)return t;const e=fetch(n).then(r=>{if(!r.ok)throw new Error(`HTTP ${r.status}`);return r.blob()}).then(r=>URL.createObjectURL(r));return e.catch(()=>l.delete(n)),l.set(n,e),L(),e}const c=new Map;function M(n,t){const e=c.get(n);if(e)return e;const r=(async()=>{const s=new AbortController,o=await fetch(n,{signal:s.signal});if(!o.ok||!o.body)throw new Error(`HTTP ${o.status}`);if(Number(o.headers.get("content-length"))>t)return s.abort(),null;const i=o.body.getReader(),f=[];let d=0;for(;;){const{done:b,value:A}=await i.read();if(b)break;if(d+=A.length,d>t)return s.abort(),null;f.push(A)}const h=o.headers.get("content-type")||"video/mp4";return URL.createObjectURL(new Blob(f,{type:h}))})();for(r.catch(()=>c.delete(n)),c.set(n,r);c.size>20;){const s=c.keys().next().value,o=c.get(s);c.delete(s),o?.then(a=>a&&URL.revokeObjectURL(a)).catch(()=>{})}return r}const E=["src","alt"],u="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",O=g({__name:"BlobImage",props:{src:{default:""},alt:{default:""},fallback:{default:""}},setup(n){const t=n,e=v(u);let r=!1;async function s(){r=!1;const a=t.src;if(!a){e.value=t.fallback||u;return}if(a.startsWith("blob:")||a.startsWith("data:")){e.value=a;return}e.value=u;try{const i=await U(a);t.src===a&&(e.value=i)}catch{t.src===a&&(e.value=a)}}function o(){r||!t.fallback||e.value===t.fallback||(r=!0,e.value=t.fallback)}return k(()=>t.src,s),p(s),(a,i)=>(w(),R("img",{src:m(e),alt:a.alt,draggable:"false",onContextmenu:i[0]||(i[0]=y(()=>{},["prevent"])),onError:o},null,40,E))}});export{O as _,M as a,U as g};
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.