"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[4448],{4448:(t,a,s)=>{s.d(a,{loadStarShape:()=>n});var e=s(9201);class r{draw(t){const{context:a,particle:s,radius:e}=t,r=s.sides,n=s.starInset??2;a.moveTo(0,0-e);for(let t=0;t<r;t++)a.rotate(Math.PI/r),a.lineTo(0,0-e*n),a.rotate(Math.PI/r),a.lineTo(0,0-e)}getSidesCount(t){const a=t.shapeData;return Math.round((0,e.Gu)(a?.sides??5))}particleInit(t,a){const s=a.shapeData;a.starInset=(0,e.Gu)(s?.inset??2)}}async function n(t,a=!0){await t.addShape("star",new r,a)}}}]);