"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[5581,2557],{2557:(t,i,e)=>{e.d(i,{loadExternalTrailInteraction:()=>r});var a=e(9201);class s{constructor(){this.delay=1,this.pauseOnStop=!1,this.quantity=1}load(t){t&&(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.quantity&&(this.quantity=t.quantity),void 0!==t.particles&&(this.particles=(0,a.ZB)({},t.particles)),void 0!==t.pauseOnStop&&(this.pauseOnStop=t.pauseOnStop))}}const n="trail";class o extends a.L8{constructor(t){super(t),this._delay=0}clear(){}init(){}async interact(t){const i=this.container,{interactivity:e}=i;if(!i.retina.reduceFactor)return;const a=i.actualOptions.interactivity.modes.trail;if(!a)return;const s=1e3*a.delay/this.container.retina.reduceFactor;if(this._delay<s&&(this._delay+=t.value),this._delay<s)return;const n=!(a.pauseOnStop&&(e.mouse.position===this._lastPosition||e.mouse.position?.x===this._lastPosition?.x&&e.mouse.position?.y===this._lastPosition?.y)),o=i.interactivity.mouse.position;o?this._lastPosition={...o}:delete this._lastPosition,n&&i.particles.push(a.quantity,i.interactivity.mouse,a.particles),this._delay-=s}isEnabled(t){const i=this.container,e=i.actualOptions,s=i.interactivity.mouse,o=(t?.interactivity??e.interactivity).events;return s.clicking&&s.inside&&!!s.position&&(0,a.dB)(n,o.onClick.mode)||s.inside&&!!s.position&&(0,a.dB)(n,o.onHover.mode)}loadModeOptions(t,...i){t.trail||(t.trail=new s);for(const e of i)t.trail.load(e?.trail)}reset(){}}async function r(t,i=!0){await t.addInteractor("externalTrail",(t=>new o(t)),i)}},5581:(t,i,e)=>{e.d(i,{loadFireflyPreset:()=>o});var a=e(1373),s=e(2557);const n={fullScreen:{enable:!0,zIndex:-1},fpsLimit:120,particles:{number:{value:0},color:{value:"#fff"},life:{duration:{value:5,sync:!1},count:1},opacity:{value:{min:.1,max:1},animation:{enable:!0,speed:3}},size:{value:{min:3,max:6}},move:{enable:!0,speed:3,random:!1,size:!0}},interactivity:{events:{onHover:{enable:!0,mode:"trail"}},modes:{trail:{delay:.5,pauseOnStop:!0,quantity:4}}},background:{color:"#000"}};async function o(t,i=!0){await(0,a.loadBasic)(t,!1),await(0,s.loadExternalTrailInteraction)(t,!1),await t.addPreset("firefly",n,i)}}}]);