export const __rspack_esm_id=23660;export const __rspack_esm_ids=[23660];export const __webpack_modules__={24455(e,t,i){i.d(t,{MovePluginInstance:()=>p});i(45367),i(92731);var a=i(88192),n=i(12694),s=i(80061);function o(e,t,i,a,n,o,r){!function(e,t){const i=e.options,a=i.move.path;if(!a.enable)return;const n=e.pathDelay??0;if(e.lastPathTime<=n)return void(e.lastPathTime+=t.value);const o=e.pathGenerator?.generate(e,t);o&&e.velocity.addTo(o);a.clamp&&(e.velocity.x=(0,s.qE8)(e.velocity.x,-s.D_O,s.D_O),e.velocity.y=(0,s.qE8)(e.velocity.y,-s.D_O,s.D_O));e.lastPathTime-=n}(e,r);const c=e.gravity,l=c?.enable&&c.inverse?-s.D_O:s.D_O;n&&i&&(e.velocity.x+=n*r.factor/(60*i)),c?.enable&&i&&(e.velocity.y+=l*(c.acceleration*r.factor)/(60*i));const p=e.moveDecay;e.velocity.multTo(p??1);const y=e.velocity.mult(i);c?.enable&&a>s.GWL&&(!c.inverse&&y.y>=s.GWL&&y.y>=a||c.inverse&&y.y<=s.GWL&&y.y<=-a)&&(y.y=l*a,i&&(e.velocity.y=y.y/i));const h=e.options.zIndex,v=(s.D_O-e.zIndexFactor)**h.velocityRate;y.multTo(v),y.multTo(o);const{position:d}=e;d.addTo(y),t.vibrate&&(d.x+=Math.sin(d.x*Math.cos(d.y))*o,d.y+=Math.cos(d.y*Math.sin(d.x))*o)}var r=(0,n._)("_container"),c=(0,n._)("_pluginManager"),l=(0,n._)("_init");class p{destroy(){this.availablePathGenerators=new Map,this.pathGenerators=new Map}isEnabled(e){return!e.destroyed&&e.options.move.enable}particleCreated(e){const t=e.options.move,i=t.gravity,n=t.path;if(e.moveDecay=s.WH8-(0,s.VGA)(t.decay),e.pathDelay=(0,s.VGA)(n.delay.value)*s.XuV,n.generator){let t=this.pathGenerators.get(n.generator);t||(t=this.availablePathGenerators.get(n.generator),t&&(this.pathGenerators.set(n.generator,t),t.init())),e.pathGenerator=t}e.gravity={enable:i.enable,acceleration:(0,s.VGA)(i.acceleration),inverse:i.inverse},function(e,t){const i=t.options.move.spin;if(!i.enable)return;const a=i.position??{x:50,y:50},n={x:.01*a.x*e.canvas.size.width,y:.01*a.y*e.canvas.size.height},o=t.getPosition(),r=(0,s.YfF)(o,n),c=(0,s.VGA)(i.acceleration);t.retina.spinAcceleration=c*e.retina.pixelRatio,t.spin={center:n,direction:t.velocity.x>=s.GWL?s.pTR.clockwise:s.pTR.counterClockwise,angle:(0,s.G0i)()*s.R1e,radius:r,acceleration:t.retina.spinAcceleration}}((0,a._)(this,r)[r],e)}particleDestroyed(e){const t=e.pathGenerator;t?.reset(e)}particleUpdate(e,t){const i=e.options.move;if(!i.enable)return;const n=(0,a._)(this,r)[r],c=function(e){return e.slow.inRange?e.slow.factor:s.D_O}(e),l=n.retina.reduceFactor,p=e.retina.moveSpeed,y=e.retina.moveDrift,h=e.size.max,v=p*(i.size?e.getRadius()/h:1)*c*(t.factor||1)*s.MXx,d=e.retina.maxSpeed;i.spin.enable?function(e,t,i,a){if(!t.spin)return;const n=t.spin.direction===s.pTR.clockwise,o={x:n?Math.cos:Math.sin,y:n?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*o.x(t.spin.angle)*a,t.position.y=t.spin.center.y+t.spin.radius*o.y(t.spin.angle)*a,t.spin.radius+=t.spin.acceleration*a;const r=Math.max(e.canvas.size.width,e.canvas.size.height),c=r*s.MXx;t.spin.radius>c?(t.spin.radius=c,t.spin.acceleration*=-s.D_O):t.spin.radius<0&&(t.spin.radius=0,t.spin.acceleration*=-s.D_O),t.spin.angle+=.01*i*(s.D_O-t.spin.radius/r)}(n,e,v,l):o(e,i,v,d,y,l,t),function(e){const t=e.initialPosition,{dx:i,dy:a}=(0,s.vrU)(t,e.position),n=Math.abs(i),o=Math.abs(a),{maxDistance:r}=e.retina,c=r.horizontal,l=r.vertical;if(!c&&!l)return;if((c&&n>=c||l&&o>=l)&&!e.misplaced)e.misplaced=!!c&&n>c||!!l&&o>l,c&&(e.velocity.x=e.velocity.y*s.MXx-e.velocity.x),l&&(e.velocity.y=e.velocity.x*s.MXx-e.velocity.y);else if((!c||n<c)&&(!l||o<l)&&e.misplaced)e.misplaced=!1;else if(e.misplaced){const i=e.position,a=e.velocity;c&&(i.x<t.x&&a.x<s.GWL||i.x>t.x&&a.x>s.GWL)&&(a.x*=-(0,s.G0i)()),l&&(i.y<t.y&&a.y<s.GWL||i.y>t.y&&a.y>s.GWL)&&(a.y*=-(0,s.G0i)())}}(e)}preInit(){return(0,a._)(this,l)[l]()}redrawInit(){return(0,a._)(this,l)[l]()}update(){for(const e of this.pathGenerators.values())e.update()}constructor(e,t){Object.defineProperty(this,l,{value:y}),Object.defineProperty(this,r,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:void 0}),(0,a._)(this,c)[c]=e,(0,a._)(this,r)[r]=t,this.availablePathGenerators=new Map,this.pathGenerators=new Map}}async function y(){const e=await((0,a._)(this,c)[c].getPathGenerators?.((0,a._)(this,r)[r],!0));if(e){this.availablePathGenerators=e,this.pathGenerators=new Map;for(const e of this.pathGenerators.values())e.init()}}}};
//# sourceMappingURL=23660.381e16cc3bd27ba4.js.map