"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[4450],{4450(t,a,s){s.d(a,{EmittersPluginInstance:()=>e});var n=s(3199);class e{#t;#a;constructor(t,a){this.#a=t,this.#t=a,this.#a.initContainer(a)}async init(){const t=this.#t.actualOptions.emitters;if((0,n.cyL)(t))for(const a of t)await this.#a.addEmitter(this.#t,a);else await this.#a.addEmitter(this.#t,t)}pause(){for(const t of this.#a.getArray(this.#t))t.pause()}play(){for(const t of this.#a.getArray(this.#t))t.play()}resize(){for(const t of this.#a.getArray(this.#t))t.resize()}stop(){this.#a.clear(this.#t)}update(t){this.#a.getArray(this.#t).forEach(a=>{a.update(t)})}}}}]);