"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[8967],{8967(a,t,e){e.d(t,{loadParticlesEffect:()=>n});var r=e(3199);class s{#a;constructor(a){this.#a=a}drawAfter(a){const{particle:t}=a,e=this.#a;if(!t.particlesNextSpawn)return;const s=performance.now();if(s<t.particlesNextSpawn)return;t.particlesNextSpawn=s+(t.particlesSpawnRate??1*r.XuV);const n=t.particlesSpawnQuantity??1,i=(0,r.zwS)({},t.particlesData?.spawn?.particles),c={...t.getPosition()};for(let a=0;a<n;a++)e.particles.addParticle(c,i)}particleInit(a,t){const e=t.effectData,s=(0,r.VGA)(e?.spawn?.rate?.delay??1);t.particlesSpawnQuantity=(0,r.VGA)(e?.spawn?.rate?.quantity??1),t.particlesSpawnRate=(s>0?s:1)*r.XuV,t.particlesNextSpawn=performance.now()+t.particlesSpawnRate,t.particlesData=e}}async function n(a){a.checkVersion("4.1.3"),await a.pluginManager.register(a=>{a.pluginManager.addEffect("particles",a=>Promise.resolve(new s(a)))})}}}]);