"use strict";(globalThis.webpackChunkwordpress_particles=globalThis.webpackChunkwordpress_particles||[]).push([[2723],{2723:(t,e,a)=>{a.r(e),a.d(e,{loadParticlesAttractInteraction:()=>o});var r=a(1197);class i extends r.$S{constructor(t){super(t)}clear(){}init(){}async interact(t){var e;const a=this.container,i=null!==(e=t.retina.attractDistance)&&void 0!==e?e:a.retina.attractDistance,o=t.getPosition(),s=a.particles.quadTree.queryCircle(o,i);for(const e of s){if(t===e||!e.options.move.attract.enable||e.destroyed||e.spawning)continue;const a=e.getPosition(),{dx:i,dy:s}=(0,r.oW)(o,a),c=t.options.move.attract.rotate,n=i/(1e3*c.x),l=s/(1e3*c.y),d=e.size.value/t.size.value,p=1/d;t.velocity.x-=n*d,t.velocity.y-=l*d,e.velocity.x+=n*p,e.velocity.y+=l*p}}isEnabled(t){return t.options.move.attract.enable}reset(){}}async function o(t){await t.addInteractor("particlesAttract",(t=>new i(t)))}}}]);