PageSourceSearch

https://syg.ma/_next/static/chunks/5364.101e447e09123cea.js

js syg.ma collected 2026-10-02 02:31:09 UTC 3,189 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5364],{25364:function(t,i,e){e.r(i),e.d(i,{default:function(){return a}});let n=function(t,i,e){this.x=t,this.y=i,this.slope=i/t,this.opacity=0,this.speed=Math.max(Math.random()*e,.25)};n.prototype.distanceTo=function(t,i){return Math.sqrt(Math.pow(t-this.x,2)+Math.pow(i-this.y,2))},n.prototype.resetPosition=function(t,i,e){return n.apply(this,arguments),this};var s={getRandomStar:function(t,i,e,a,h){let r=s.getRandomPosition(t,i,e,a);return new n(r.x,r.y,h)},getRandomPosition:function(t,i,e,n){return{x:Math.floor(Math.random()*e+t),y:Math.floor(Math.random()*n+i)}}};class a{_updateStarField(){let t,i,e,n;for(t=0;t<this.numStars;t++)n=Math.min((i=this.starField[t]).speed,Math.abs(i.speed/i.slope)),i.x+=i.x>0?n:-n,i.y=i.slope*i.x,i.opacity+=i.speed/100,(Math.abs(i.x)>this.width/2||Math.abs(i.y)>this.height/2)&&(e=s.getRandomPosition(-this.width/10,-this.height/10,this.width/5,this.height/5),i.resetPosition(e.x,e.y,this.maxStarSpeed))}_renderStarField(){let t,i;for(this.canvas.fillStyle="rgba(0, 0, 0, 1)",this.canvas.fillRect(0,0,this.width,this.height),t=0;t<this.numStars;t++)i=this.starField[t],this.canvas.fillStyle="rgba(255, 255, 255, "+i.opacity+")",this.canvas.fillRect(i.x+this.width/2,i.y+this.height/2,2,2)}_renderFrame(t){let i=t-(this.prevFrameTime||0);window.requestAnimationFrame(this._renderFrame.bind(this)),(i>=30||!this.prevFrameTime)&&(this.prevFrameTime=t,this._updateStarField(),this._renderStarField())}_adjustCanvasSize(t,i){this.width=this.canvasElem.width=t||this.container.offsetWidth,this.height=this.canvasElem.height=i||this.container.offsetHeight}_watchCanvasSize(t){let i,e;let n=t-(this.prevCheckTime||0);window.requestAnimationFrame(this._watchCanvasSize.bind(this)),(n>=333||!this.prevCheckTime)&&(this.prevCheckTime=t,i=this.container.offsetWidth,e=this.container.offsetHeight,(this.oldWidth!==i||this.oldHeight!==e)&&(this.oldWidth=i,this.oldHeight=e,this._adjustCanvasSize(i,e)))}_initScene(t){let i;for(i=0;i<this.numStars;i++)this.starField.push(s.getRandomStar(-this.width/2,-this.height/2,this.width,this.height,this.maxStarSpeed));window.requestAnimationFrame(this._renderFrame.bind(this)),window.requestAnimationFrame(this._watchCanvasSize.bind(this))}render(t,i){this.numStars=t||100,this.maxStarSpeed=i||3,this._initScene(this.numStars)}constructor(t){this.container=document.getElementById(t),this.canvasElem=this.container.getElementsByTagName("canvas")[0],this.canvas=this.canvasElem.getContext("2d"),this.width=this.container.offsetWidth,this.height=this.container.offsetHeight,this.starField=[]}}!function(){let t=0,i=["ms","moz","webkit","o"];for(let t=0;t<i.length&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[i[t]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[i[t]+"CancelAnimationFrame"]||window[i[t]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(i,e){let n=new Date().getTime(),s=Math.max(0,16-(n-t)),a=window.setTimeout(function(){i(n+s)},s);return t=n+s,a}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}()}}]);

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.