"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[7645],{7645(e,a,s){s.d(a,{loadPathShape:()=>c});var i=s(3199),t=s(3878);class r{draw(e){const{context:a,particle:s,radius:i}=e;s.pathData&&(0,t.k)(a,i,s.pathData)}particleInit(e,a){const s=a.shapeData;s&&(a.pathData=(0,i.zwS)({},s))}}async function c(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addShape(["path"],()=>Promise.resolve(new r))})}},3878(e,a,s){var i;function t(e,a,s){const t=s.segments[0];if(!t)return;const r=t.values[0];if(r){e.moveTo(r.x*a,r.y*a);for(const t of s.segments){const s=t.values[0];if(!s)continue;const r=t.values[1],c=t.values[2],n=t.values[3];switch(t.type){case i.move:e.moveTo(s.x*a,s.y*a);break;case i.line:e.lineTo(s.x*a,s.y*a);break;case i.bezier:if(!r||!c||!n)continue;e.bezierCurveTo(r.x*a,r.y*a,c.x*a,c.y*a,n.x*a,n.y*a);break;case i.quadratic:if(!r||!c)continue;e.quadraticCurveTo(r.x*a,r.y*a,c.x*a,c.y*a);break;case i.arc:if(!r||!c)continue;e.arc(s.x*a,s.y*a,r.x*a,c.x,c.y);break;case i.ellipse:if(!r||!c||!n)continue;e.ellipse(s.x*a,s.y*a,r.x*a,r.y*a,c.x,n.x,n.y)}}if(s.half)for(let t=s.segments.length-1;t>=0;t--){const r=s.segments[t];if(!r)continue;const c=r.values[0],n=1,o=2,l=r.values[n],u=r.values[o];switch(r.type){case i.line:if(!c)break;e.lineTo(c.x*-a,c.y*a);break;case i.bezier:if(!c||!l||!u)break;e.bezierCurveTo(-u.x*a,u.y*a,-l.x*a,l.y*a,-c.x*a,c.y*a);break;case i.quadratic:if(!l||!u)break;e.quadraticCurveTo(-l.x*a,l.y*a,-u.x*a,u.y*a);case i.arc:case i.ellipse:}}}}s.d(a,{M:()=>i,k:()=>t}),function(e){e.move="move",e.line="line",e.bezier="bezier",e.quadratic="quadratic",e.arc="arc",e.ellipse="ellipse"}(i||(i={}))}}]);