PageSourceSearch

https://senscript.ai/static/js/292.7e020f7c.chunk.js

js senscript.ai collected 2026-10-05 14:31:22 UTC 3,627 bytes, 2 lines download raw bytes

vendor: 3,627 bytes, lines 1-2
1"use strict";(self.webpackChunksenscript_website=self.webpackChunksenscript_website||[]).push([[292],{7292:(t,e,r)=>{r.r(e),r.d(e,{HDRLoader:()=>n});var a=r(9435);class n extends a.BRH{constructor(t){super(t),this.type=a.ix0}parse(t){const e=function(t,e){switch(t){case 1:throw new Error("THREE.HDRLoader: Read Error: "+(e||""));case 2:throw new Error("THREE.HDRLoader: Write Error: "+(e||""));case 3:throw new Error("THREE.HDRLoader: Bad File Format: "+(e||""));default:throw new Error("THREE.HDRLoader: Memory Error: "+(e||""))}},r=function(t,e,r){e=e||1024;let a=t.pos,n=-1,s=0,o="",i=String.fromCharCode.apply(null,new Uint16Array(t.subarray(a,a+128)));for(;0>(n=i.indexOf("\n"))&&s<e&&a<t.byteLength;)o+=i,s+=i.length,a+=128,i+=String.fromCharCode.apply(null,new Uint16Array(t.subarray(a,a+128)));return-1<n&&(!1!==r&&(t.pos+=s+n+1),o+i.slice(0,n))},n=function(t,e,r,a){const n=t[e+3],s=Math.pow(2,n-128)/255;r[a+0]=t[e+0]*s,r[a+1]=t[e+1]*s,r[a+2]=t[e+2]*s,r[a+3]=1},s=function(t,e,r,n){const s=t[e+3],o=Math.pow(2,s-128)/255;r[n+0]=a.GxU.toHalfFloat(Math.min(t[e+0]*o,65504)),r[n+1]=a.GxU.toHalfFloat(Math.min(t[e+1]*o,65504)),r[n+2]=a.GxU.toHalfFloat(Math.min(t[e+2]*o,65504)),r[n+3]=a.GxU.toHalfFloat(1)},o=new Uint8Array(t);o.pos=0;const i=function(t){const a=/^\s*GAMMA\s*=\s*(\d+(\.\d+)?)\s*$/,n=/^\s*EXPOSURE\s*=\s*(\d+(\.\d+)?)\s*$/,s=/^\s*FORMAT=(\S+)\s*$/,o=/^\s*\-Y\s+(\d+)\s+\+X\s+(\d+)\s*$/,i={valid:0,string:"",comments:"",programtype:"RGBE",format:"",gamma:1,exposure:1,width:0,height:0};let l,c;for((t.pos>=t.byteLength||!(l=r(t)))&&e(1,"no header found"),(c=l.match(/^#\?(\S+)/))||e(3,"bad initial token"),i.valid|=1,i.programtype=c[1],i.string+=l+"\n";l=r(t),!1!==l;)if(i.string+=l+"\n","#"!==l.charAt(0)){if((c=l.match(a))&&(i.gamma=parseFloat(c[1])),(c=l.match(n))&&(i.exposure=parseFloat(c[1])),(c=l.match(s))&&(i.valid|=2,i.format=c[1]),(c=l.match(o))&&(i.valid|=4,i.height=parseInt(c[1],10),i.width=parseInt(c[2],10)),2&i.valid&&4&i.valid)break}else i.comments+=l+"\n";return 2&i.valid||e(3,"missing format specifier"),4&i.valid||e(3,"missing image size specifier"),i}(o),l=i.width,c=i.height,h=function(t,r,a){const n=r;if(n<8||n>32767||2!==t[0]||2!==t[1]||128&t[2])return new Uint8Array(t);n!==(t[2]<<8|t[3])&&e(3,"wrong scanline width");const s=new Uint8Array(4*r*a);s.length||e(4,"unable to allocate buffer space");let o=0,i=0;const l=4*n,c=new Uint8Array(4),h=new Uint8Array(l);let p=a;for(;p>0&&i<t.byteLength;){i+4>t.byteLength&&e(1),c[0]=t[i++],c[1]=t[i++],c[2]=t[i++],c[3]=t[i++],2==c[0]&&2==c[1]&&(c[2]<<8|c[3])==n||e(3,"bad rgbe scanline format");let r,a=0;for(;a<l&&i<t.byteLength;){r=t[i++];const n=r>128;if(n&&(r-=128),(0===r||a+r>l)&&e(3,"bad scanline data"),n){const e=t[i++];for(let t=0;t<r;t++)h[a++]=e}else h.set(t.subarray(i,i+r),a),a+=r,i+=r}const d=n;for(let t=0;t<d;t++){let e=0;s[o]=h[t+e],e+=n,s[o+1]=h[t+e],e+=n,s[o+2]=h[t+e],e+=n,s[o+3]=h[t+e],o+=4}p--}return s}(o.subarray(o.pos),l,c);let p,d,f;switch(this.type){case a.RQf:f=h.length/4;const t=new Float32Array(4*f);for(let r=0;r<f;r++)n(h,4*r,t,4*r);p=t,d=a.RQf;break;case a.ix0:f=h.length/4;const e=new Uint16Array(4*f);for(let r=0;r<f;r++)s(h,4*r,e,4*r);p=e,d=a.ix0;break;default:throw new Error("THREE.HDRLoader: Unsupported type: "+this.type)}return{width:l,height:c,data:p,header:i.string,gamma:i.gamma,exposure:i.exposure,type:d}}setDataType(t){return this.type=t,this}load(t,e,r,n){return super.load(t,(function(t,r){switch(t.type){case a.RQf:case a.ix0:t.colorSpace=a.Zr2,t.minFilter=a.k6q,t.magFilter=a.k6q,t.generateMipmaps=!1,t.flipY=!0}e&&e(t,r)}),r,n)}}}}]);
2//# sourceMappingURL=292.7e020f7c.chunk.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.