"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[501,1859],{501(a,e,i){i.d(e,{loadSpiralPath:()=>p});var n,t=i(1859),r=i(3199);!function(a){a[a.positive=1]="positive",a[a.negative=-1]="negative"}(n||(n={}));const s={maxRadius:{min:10,max:50},angularSpeed:{min:.01,max:.04},radialSpeed:{min:.1,max:.3}};class o{options;#a;#e;constructor(a){this.#a=a,this.#e=r.Miz.origin,this.options=(0,r.zwS)({},s)}generate(a,e){const i=this.options;a.spiral??={angle:(0,r.G0i)()*r.R1e,radius:0,direction:n.positive,maxRadius:(0,r.VGA)(i.maxRadius),angularSpeed:.01*(0,r.VGA)(i.angularSpeed),radialSpeed:.01*(0,r.VGA)(i.radialSpeed)};const t=a.spiral;t.angle+=t.angularSpeed*e.factor,t.radius+=t.radialSpeed*t.direction*e.factor,t.radius>t.maxRadius&&t.direction===n.positive?(t.radius=t.maxRadius,t.direction=n.negative):t.radius<0&&t.direction===n.negative&&(t.radius=0,t.direction=n.positive);const s=Math.cos(t.angle)*t.radius,o=Math.sin(t.angle)*t.radius;return a.position.x+=s,a.position.y+=o,this.#e.x=0,this.#e.y=0,this.#e}init(){const a=this.#a.actualOptions.particles.move.path.options;this.options.maxRadius=a.maxRadius??this.options.maxRadius,this.options.angularSpeed=a.angularSpeed??this.options.angularSpeed,this.options.radialSpeed=a.radialSpeed??this.options.radialSpeed}reset(a){delete a.spiral}update(){}}async function p(a){a.checkVersion("4.1.3"),await a.pluginManager.register(a=>{(0,t.g)(a),a.pluginManager.addPathGenerator?.("spiralPathGenerator",a=>Promise.resolve(new o(a)))})}},1859(a,e,i){i.d(e,{g:()=>s,loadMovePlugin:()=>r});var n=i(3199);class t{id="move";#i;constructor(a){this.#i=a}async getPlugin(a){const{MovePluginInstance:e}=await i.e(5272).then(i.bind(i,5272));return new e(this.#i,a)}loadOptions(){}needsPlugin(){return!0}}async function r(a){a.checkVersion("4.1.3"),await a.pluginManager.register(a=>{const e=a.pluginManager;e.initializers.pathGenerators??=new Map,e.pathGenerators??=new Map,e.addPathGenerator=(a,i)=>{e.initializers.pathGenerators??=new Map,e.initializers.pathGenerators.set(a,i)},e.getPathGenerators=async(a,i=!1)=>(e.initializers.pathGenerators??=new Map,e.pathGenerators??=new Map,(0,n.OtU)(a,e.pathGenerators,e.initializers.pathGenerators,i)),a.pluginManager.addPlugin(new t(a.pluginManager))})}function s(a){if(!a.pluginManager.addPathGenerator)throw new Error("tsParticles Base Mover is not loaded")}}}]);