"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[1859,1920],{1920(e,t,i){i.d(t,{loadPolygonPath:()=>o});var s=i(1859),n=i(3199);const a={sides:6,turnSteps:20,angle:30};class r{dirsList;options;#e;#t;constructor(e){this.#e=e,this.#t=n.Miz.origin,this.dirsList=[],this.options=(0,n.zwS)({},a)}generate(e){const{sides:t,turnSteps:i}=this.options;e.hexStep??=0,e.hexDirection??=6===t?2*(3*(0,n.G0i)()|0):(0,n.G0i)()*t|0,e.hexSpeed??=e.velocity.length,e.hexStep%i===0&&(e.hexDirection=(0,n.G0i)()>.5?(e.hexDirection+1)%t:(e.hexDirection+t-1)%t),e.velocity.x=0,e.velocity.y=0,e.hexStep++;const s=this.dirsList[e.hexDirection];return this.#t.x=s.x*e.hexSpeed,this.#t.y=s.y*e.hexSpeed,this.#t}init(){const e=this.#e.actualOptions.particles.move.path.options;this.options.sides=e.sides>0?e.sides:this.options.sides,this.options.angle=e.angle??this.options.angle,this.options.turnSteps=e.turnSteps>=0?e.turnSteps:this.options.turnSteps,this.#i()}reset(e){delete e.hexStep,delete e.hexDirection,delete e.hexSpeed}update(){}#i(){const e=this.options;this.dirsList=[];for(let t=0;t<360;t+=360/e.sides){const i=e.angle+t;this.dirsList.push(n.Miz.create(Math.cos(i*Math.PI/180),Math.sin(i*Math.PI/180)))}}}async function o(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{(0,s.g)(e),e.pluginManager.addPathGenerator?.("polygonPathGenerator",e=>Promise.resolve(new r(e)))})}},1859(e,t,i){i.d(t,{g:()=>r,loadMovePlugin:()=>a});var s=i(3199);class n{id="move";#s;constructor(e){this.#s=e}async getPlugin(e){const{MovePluginInstance:t}=await i.e(5272).then(i.bind(i,5272));return new t(this.#s,e)}loadOptions(){}needsPlugin(){return!0}}async function a(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{const t=e.pluginManager;t.initializers.pathGenerators??=new Map,t.pathGenerators??=new Map,t.addPathGenerator=(e,i)=>{t.initializers.pathGenerators??=new Map,t.initializers.pathGenerators.set(e,i)},t.getPathGenerators=async(e,i=!1)=>(t.initializers.pathGenerators??=new Map,t.pathGenerators??=new Map,(0,s.OtU)(e,t.pathGenerators,t.initializers.pathGenerators,i)),e.pluginManager.addPlugin(new n(e.pluginManager))})}function r(e){if(!e.pluginManager.addPathGenerator)throw new Error("tsParticles Base Mover is not loaded")}}}]);