"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[5879],{5879:(t,o,e)=>{e.d(o,{loadRoundedRectShape:()=>s});var i=e(9201);const a=Math.sqrt(2);class r{draw(t){const{context:o,particle:e,radius:i}=t,r=i/a,s=2*r,d=e.borderRadius??5;"roundRect"in o?o.roundRect(-r,-r,s,s,d):((t,o,e={topRight:4,bottomRight:4,bottomLeft:4,topLeft:4})=>{const{x:i,y:a,width:r,height:s}=o,d=i+r,c=a+s;t.moveTo(i+e.topLeft,a),t.lineTo(d-e.topRight,a),t.quadraticCurveTo(d,a,d,a+e.topRight),t.lineTo(d,a+s-e.bottomRight),t.quadraticCurveTo(d,c,d-e.bottomRight,c),t.lineTo(i+e.bottomLeft,c),t.quadraticCurveTo(i,c,i,c-e.bottomLeft),t.lineTo(i,a+e.topLeft),t.quadraticCurveTo(i,a,i+e.topLeft,a)})(o,{x:-r,y:-r,height:s,width:s},{topLeft:d,topRight:d,bottomLeft:d,bottomRight:d})}particleInit(t,o){const e=o.shapeData;o.borderRadius=(0,i.Gu)(e?.radius??5)*t.retina.pixelRatio}}async function s(t,o=!0){await t.addShape("rounded-rect",new r,o)}}}]);