"use strict";(globalThis.webpackChunkwordpress_particles=globalThis.webpackChunkwordpress_particles||[]).push([[4532],{1688:(e,s,t)=>{t.d(s,{$:()=>i});class i{constructor(e){this.container=e,this.type="particles"}}},4532:(e,s,t)=>{t.r(s),t.d(s,{loadParticlesRepulseInteraction:()=>d});var i=t(1688),o=t(5302),r=t(2613),a=t(4400);class n extends a.SW{constructor(){super(),this.enabled=!1,this.distance=1,this.duration=1,this.factor=1,this.speed=1}load(e){super.load(e),e&&(void 0!==e.enabled&&(this.enabled=e.enabled),void 0!==e.distance&&(this.distance=(0,o.Cs)(e.distance)),void 0!==e.duration&&(this.duration=(0,o.Cs)(e.duration)),void 0!==e.factor&&(this.factor=(0,o.Cs)(e.factor)),void 0!==e.speed&&(this.speed=(0,o.Cs)(e.speed)))}}class c extends i.${constructor(e){super(e)}clear(){}init(){}async interact(e){const s=this.container;if(!e.repulse){const t=e.options.repulse;if(!t)return;e.repulse={distance:(0,o.Gu)(t.distance)*s.retina.pixelRatio,speed:(0,o.Gu)(t.speed),factor:(0,o.Gu)(t.factor)}}const t=e.getPosition(),i=s.particles.quadTree.queryCircle(t,e.repulse.distance);for(const s of i){if(e===s||s.destroyed)continue;const i=s.getPosition(),{dx:a,dy:n,distance:c}=(0,o.oW)(i,t),d=e.repulse.speed*e.repulse.factor;if(c>0){const t=(0,o.uZ)((1-Math.pow(c/e.repulse.distance,2))*d,0,d),i=r.O.create(a/c*t,n/c*t);s.position.addTo(i)}else{const e=r.O.create(d,d);s.position.addTo(e)}}}isEnabled(e){return e.options.repulse?.enabled??!1}loadParticlesOptions(e,...s){e.repulse||(e.repulse=new n);for(const t of s)e.repulse.load(t?.repulse)}reset(){}}async function d(e,s=!0){await e.addInteractor("particlesRepulse",(e=>new c(e)),s)}}}]);