"use strict";(self.webpackChunkwordpress_particles=self.webpackChunkwordpress_particles||[]).push([[1141],{1141:function(t,o,i){i.r(o),i.d(o,{Slow:function(){return s},loadExternalSlowInteraction:function(){return r}});var n=i(3563);class s{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 a extends n.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,s=i.interactivity.mouse,a=(null!==(o=null==t?void 0:t.interactivity)&&void 0!==o?o:i.actualOptions.interactivity).events;return a.onHover.enable&&!!s.position&&(0,n.dB)("slow",a.onHover.mode)}loadModeOptions(t){t.slow||(t.slow=new s);for(var o=arguments.length,i=new Array(o>1?o-1:0),n=1;n<o;n++)i[n-1]=arguments[n];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,s=o.interactivity.mouse.position,a=o.retina.slowModeRadius,r=i.interactivity.modes.slow;if(!r||!a||a<0||!s)return;const e=t.getPosition(),c=(0,n.Sp)(s,e),l=c/a,d=r.factor;c<=a&&(t.slow.inRange=!0,t.slow.factor=l/d)}}async function r(t){await t.addInteractor("externalSlow",(t=>new a(t)))}}}]);