PageSourceSearch

https://nexinfinitymeta.ai/_next/static/chunks/2477.692e6ff209240e9a.js

js nexinfinitymeta.ai collected 2026-10-05 13:43:33 UTC 3,546 bytes, 1 lines download raw bytes

1(()=>{"use strict";let t=self;t.onmessage=e=>{try{let{frames:r,settings:n}=e.data,l=function(t,e,r){if(0===t.length)throw Error("No frames to encode");let{width:n,height:l}=t[0];for(let e of t)if(e.width!==n||e.height!==l)throw Error("All frames must share the same dimensions");let a=2*t.length,h=[],i=t=>{h.push(new Uint8Array([255&t]))},o=t=>{h.push(new Uint8Array([255&t,t>>8&255]))},f=t=>{h.push(t)},s=function(t,e,r){let n=e.colorReduction,l=new Map,a=2*e.lossyLevel;for(let e=0;e<t.length;e++){let n=t[e].data;for(let t=0;t<n.length;t+=4){let e=n[t],r=n[t+1],h=n[t+2];a>0&&(e=e>>a<<a,r=r>>a<<a,h=h>>a<<a);let i=e<<16|r<<8|h;l.set(i,(l.get(i)||0)+1)}r?.(e+1)}let h=Math.min(6,Math.floor(.05*n)),i=[...l.entries()].sort((t,e)=>e[1]-t[1]).slice(0,n-h).map(t=>t[0]);for(let t of[0xffffff,0,8421504,0xc0c0c0,4210752,0xf0f0f0])!i.includes(t)&&i.length<n&&i.push(t);return i.slice(0,n)}(t,e,t=>r?.(t,a));f(new Uint8Array([71,73,70,56,57,97])),o(n),o(l);let g=Math.ceil(Math.log2(Math.max(s.length,2)));i(128|g-1<<4|g-1),i(0),i(0);let u=new Uint8Array(3*(1<<g));for(let t=0;t<s.length;t++){let e=s[t];u[3*t]=e>>16&255,u[3*t+1]=e>>8&255,u[3*t+2]=255&e}f(u),f(new Uint8Array([33,255,11])),f(new Uint8Array([78,69,84,83,67,65,80,69,50,46,48])),f(new Uint8Array([3,1,0,0,0]));for(let h=0;h<t.length;h++){let o=t[h],g=Math.round(o.delay/10);f(new Uint8Array([33,249,4,4,255&g,g>>8&255,0,0])),f(new Uint8Array([44,0,0,0,0,255&n,n>>8&255,255&l,l>>8&255,0]));let u=function(t,e,r){let n=t.data,l=t.width,a=t.height,h=new Uint8Array(l*a),i=new Float32Array(n.length);for(let t=0;t<n.length;t++)i[t]=n[t];let o=r.quality<90;for(let t=0;t<a;t++)for(let n=0;n<l;n++){let f=(t*l+n)*4,s=Math.max(0,Math.min(255,Math.round(i[f]))),g=Math.max(0,Math.min(255,Math.round(i[f+1]))),u=Math.max(0,Math.min(255,Math.round(i[f+2]))),{index:y,color:M}=function(t,e,r,n){let l=1/0,a=0,h=n[0]||0;for(let i=0;i<n.length;i++){let o=n[i],f=(t-(o>>16&255))**2+(e-(o>>8&255))**2+(r-(255&o))**2;f<l&&(l=f,a=i,h=o)}return{index:a,color:h}}(s,g,u,e);if(h[t*l+n]=y,o){let e=s-(M>>16&255),h=g-(M>>8&255),o=u-(255&M),y=(100-r.quality)/100;if(n+1<l){let t=f+4;i[t]+=7*e/16*y,i[t+1]+=7*h/16*y,i[t+2]+=7*o/16*y}if(t+1<a){if(n>0){let t=f+4*l-4;i[t]+=3*e/16*y,i[t+1]+=3*h/16*y,i[t+2]+=3*o/16*y}let t=f+4*l;if(i[t]+=5*e/16*y,i[t+1]+=5*h/16*y,i[t+2]+=5*o/16*y,n+1<l){let t=f+4*l+4;i[t]+=e/16*y,i[t+1]+=h/16*y,i[t+2]+=o/16*y}}}}return h}(o,s,e),y=Math.max(2,Math.ceil(Math.log2(Math.max(s.length,2)))),M=function(t,e){let r=1<<e,n=r+1,l=e+1,a=n+1,h=Math.ceil(1.5*t.length)+1024,i=new Uint8Array(h),o=0,f=0,s=0,g=new Map,u=()=>{g.clear();for(let t=0;t<r;t++)g.set(String(t),t);l=e+1,a=n+1};u();let y=t=>{for(f|=t<<s,s+=l;s>=8;)o<h&&(i[o++]=255&f),f>>=8,s-=8};if(y(r),0===t.length)return y(n),s>0&&o<h&&(i[o++]=255&f),i.subarray(0,o);let M=String(t[0]);for(let e=1;e<t.length;e++){let n=M+","+t[e];g.has(n)?M=n:(y(g.get(M)),a<4096?(g.set(n,a++),a>1<<l&&l<12&&l++):(y(r),u()),M=String(t[e]))}return y(g.get(M)),y(n),s>0&&o<h&&(i[o++]=255&f),i.subarray(0,o)}(u,y);i(y);let c=0;for(;c<M.length;){let t=Math.min(255,M.length-c);i(t),f(M.subarray(c,c+t)),c+=t}i(0),r?.(t.length+h+1,a)}i(59);let y=new Uint8Array(h.reduce((t,e)=>t+e.length,0)),M=0;for(let t of h)y.set(t,M),M+=t.length;return y}(r.map(t=>({data:new Uint8ClampedArray(t.data),width:t.width,height:t.height,delay:t.delay})),n,(e,r)=>t.postMessage({type:"progress",done:e,total:r}));t.postMessage({type:"done",gif:l.buffer},[l.buffer])}catch(e){t.postMessage({type:"error",message:e instanceof Error?e.message:String(e)})}}})(),_N_E={};

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.