"use strict";(globalThis.webpackChunkwordpress_particles=globalThis.webpackChunkwordpress_particles||[]).push([[8179],{8179:(t,o,i)=>{i.r(o),i.d(o,{Slow:()=>a,loadExternalSlowInteraction:()=>r});var s=i(3290);class a{constructor(){this.factor=3,this.radius=200}load(t){t&&(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.radius&&(this.radius=t.radius))}}class n extends s.L8{constructor(t){super(t)}clear(t,o,i){t.slow.inRange&&!i||(t.slow.factor=1)}init(){const t=this.container,o=t.actualOptions.interactivity.modes.slow;o&&(t.retina.slowModeRadius=o.radius*t.retina.pixelRatio)}async interact(){}isEnabled(t){var o;const i=this.container,a=i.interactivity.mouse,n=(null!==(o=null==t?void 0:t.interactivity)&&void 0!==o?o:i.actualOptions.interactivity).events;return n.onHover.enable&&!!a.position&&(0,s.dB)("slow",n.onHover.mode)}loadModeOptions(t){t.slow||(t.slow=new a);for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];for(const o of i)t.slow.load(null==o?void 0:o.slow)}reset(t){t.slow.inRange=!1;const o=this.container,i=o.actualOptions,a=o.interactivity.mouse.position,n=o.retina.slowModeRadius,r=i.interactivity.modes.slow;if(!r||!n||n<0||!a)return;const e=t.getPosition(),l=(0,s.Sp)(a,e),c=l/n,d=r.factor;l<=n&&(t.slow.inRange=!0,t.slow.factor=c/d)}}async function r(t){await t.addInteractor("externalSlow",(t=>new n(t)))}}}]);