"use strict";(globalThis.webpackChunkwordpress_particles=globalThis.webpackChunkwordpress_particles||[]).push([[4862],{4862:(a,s,t)=>{t.r(s),t.d(s,{loadRoundedPolygonShape:()=>n});var e=t(5302);class o{draw(a,s,t){!function(a,s,t){let e=s[0],o=s[1];const n=s.length;a.moveTo((e.x+o.x)/2,(e.y+o.y)/2);for(let r=1;r<=n;r++)e=o,o=s[(r+1)%n],a.arcTo(e.x,e.y,(e.x+o.x)/2,(e.y+o.y)/2,t)}(a,function(a,s,t=0){const e=2*Math.PI/a,o=[];for(let n=0;n<a;n++)o.push({x:Math.cos(n*e+t)*s,y:Math.sin(n*e+t)*s});return o}(s.sides,t),s.borderRadius??5)}getSidesCount(a){const s=a.shapeData;return Math.round((0,e.Gu)(s?.sides??5))}particleInit(a,s){const t=s.shapeData;s.borderRadius=Math.round((0,e.Gu)(t?.radius??5))*a.retina.pixelRatio}}async function n(a,s=!0){await a.addShape("rounded-polygon",new o,s)}}}]);