"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[4262],{4262(e,a,s){s.d(a,{loadRoundedPolygonShape:()=>n});var t=s(3199);class r{draw(e){const{context:a,particle:s,radius:r}=e;!function(e,a,s){let r=a[0],n=a[1];if(!r||!n)return;const o=a.length;e.moveTo((r.x+n.x)*t.MXx,(r.y+n.y)*t.MXx);for(let i=1;i<=o;i++)r=n,n=a[(i+1)%o],r&&n&&e.arcTo(r.x,r.y,(r.x+n.x)*t.MXx,(r.y+n.y)*t.MXx,s)}(a,function(e,a,s=0){const r=t.R1e/e,n=[];for(let t=0;t<e;t++)n.push({x:Math.cos(t*r+s)*a,y:Math.sin(t*r+s)*a});return n}(s.sides,r),s.borderRadius??5)}getSidesCount(e){const a=e.shapeData;return Math.round((0,t.VGA)(a?.sides??5))}particleInit(e,a){const s=a.shapeData;a.borderRadius=Math.round((0,t.VGA)(s?.radius??5))*e.retina.pixelRatio}}async function n(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addShape(["rounded-polygon"],()=>Promise.resolve(new r))})}}}]);