PageSourceSearch

https://infosec.exchange/packs/esm-DrOrXu-Y.js

js infosec.exchange collected 2026-09-24 07:25:56 UTC 1,554 bytes, 2 lines download raw bytes

1var e=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~`.split(``),t=t=>{let n=0;for(let r=0;r<t.length;r++){let i=t[r],a=e.indexOf(i);n=n*83+a}return n},n=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},r=e=>{let t=Math.max(0,Math.min(1,e));return Math.trunc(t<=.0031308?t*12.92*255+.5:(1.055*t**.4166666666666667-.055)*255+.5)},i=e=>e<0?-1:1,a=(e,t)=>i(e)*Math.abs(e)**+t,o=class extends Error{constructor(e){super(e),this.name=`ValidationError`,this.message=e}},s=e=>{if(!e||e.length<6)throw new o(`The blurhash string must be at least 6 characters`);let n=t(e[0]),r=Math.floor(n/9)+1,i=n%9+1;if(e.length!==4+2*i*r)throw new o(`blurhash length mismatch: length is ${e.length} but it should be ${4+2*i*r}`)},c=e=>{let t=e>>16,r=e>>8&255,i=e&255;return[n(t),n(r),n(i)]},l=(e,t)=>{let n=Math.floor(e/361),r=Math.floor(e/19)%19,i=e%19;return[a((n-9)/9,2)*t,a((r-9)/9,2)*t,a((i-9)/9,2)*t]},u=(e,n,i,a)=>{s(e),a|=1;let o=t(e[0]),u=Math.floor(o/9)+1,d=o%9+1,f=(t(e[1])+1)/166,p=Array(d*u);for(let n=0;n<p.length;n++)if(n===0){let r=t(e.substring(2,6));p[n]=c(r)}else{let r=t(e.substring(4+n*2,6+n*2));p[n]=l(r,f*a)}let m=n*4,h=new Uint8ClampedArray(m*i);for(let e=0;e<i;e++)for(let t=0;t<n;t++){let a=0,o=0,s=0;for(let r=0;r<u;r++)for(let c=0;c<d;c++){let l=Math.cos(Math.PI*t*c/n)*Math.cos(Math.PI*e*r/i),u=p[c+r*d];a+=u[0]*l,o+=u[1]*l,s+=u[2]*l}let c=r(a),l=r(o),f=r(s);h[4*t+0+e*m]=c,h[4*t+1+e*m]=l,h[4*t+2+e*m]=f,h[4*t+3+e*m]=255}return h};export{u as n,o as t};
2//# sourceMappingURL=esm-DrOrXu-Y.js.map

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.