"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[4971],{4971(s,e,r){r.d(e,{OverlapPluginInstance:()=>i});var t=r(3199);class i{#s;constructor(s){this.#s=s}checkParticlePosition(s,e,r){return!this.#e(s,e,r)}#e(s,e,r){const i=s.options.collisions;if(!i?.enable)return!1;const n=i.overlap;if(n.enable)return!1;const a=n.retries;if(a>=0&&r>a)throw new Error("Particle is overlapping and can't be placed");return!!this.#s.particles.find(r=>(0,t.YfF)(e,r.position)<s.getRadius()+r.getRadius())}}}}]);