PageSourceSearch

https://ngrave.io/_nuxt/helper.0fdc282a.js

js ngrave.io collected 2026-09-24 09:16:28 UTC 566 bytes, 1 lines download raw bytes

1import{E as l,A as p,b as I}from"./event-bus.e00ff2a1.js";const g=t=>new Promise((s,c)=>{const o=new Image,e=new XMLHttpRequest;e.open("GET",t,!0),e.responseType="blob",e.onload=()=>{o.src=URL.createObjectURL(e.response),o.onload=()=>{s(o),l.$emit(I)}},e.onerror=()=>c(),e.send()}),A=t=>(l.$emit(p,t.length),Promise.all(t.map(s=>g(s)))),u=(t,s,c=.5,o=.5)=>{const e=t.canvas.width,n=t.canvas.height,h=s.width,d=s.height,i=h/d,m=e/n;let a,r;i>m?(a=n,r=n*i):(r=e,a=e/i),t.fillStyle="black",t.fillRect(0,0,e,n),t.drawImage(s,(e-r)*c,(n-a)*o,r,a)};export{u as c,A as p};

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.