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