"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[1859,2932],{2932(e,a,t){t.d(a,{loadLevyPath:()=>r});var n=t(1859),i=t(3199);class s{options;#e;#a;constructor(e){this.#e=e,this.#a=i.Miz.origin,this.options={alpha:1.5,scale:1,maxStep:10}}generate(e){e.levy??={angle:(0,i.G0i)()*Math.PI*2,baseSpeed:e.velocity.length};const a=this.options,t=e.levy;t.angle+=.2*((0,i.G0i)()-.5);const n=Math.max((0,i.G0i)(),1e-6),s=a.scale??1,r=a.alpha??1.5;let o=s/Math.pow(n,1/r);void 0!==a.maxStep&&(o=Math.min(o,a.maxStep));const l=t.baseSpeed*o;return e.velocity.x=0,e.velocity.y=0,this.#a.length=l,this.#a.angle=t.angle,this.#a}init(){const e=this.#e.actualOptions.particles.move.path.options;this.options.alpha=e.alpha??this.options.alpha,this.options.scale=e.scale??this.options.scale,this.options.maxStep=e.maxStep??this.options.maxStep}reset(e){delete e.levy}update(){}}async function r(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{(0,n.g)(e),e.pluginManager.addPathGenerator?.("levyPathGenerator",e=>Promise.resolve(new s(e)))})}},1859(e,a,t){t.d(a,{g:()=>r,loadMovePlugin:()=>s});var n=t(3199);class i{id="move";#t;constructor(e){this.#t=e}async getPlugin(e){const{MovePluginInstance:a}=await t.e(5272).then(t.bind(t,5272));return new a(this.#t,e)}loadOptions(){}needsPlugin(){return!0}}async function s(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{const a=e.pluginManager;a.initializers.pathGenerators??=new Map,a.pathGenerators??=new Map,a.addPathGenerator=(e,t)=>{a.initializers.pathGenerators??=new Map,a.initializers.pathGenerators.set(e,t)},a.getPathGenerators=async(e,t=!1)=>(a.initializers.pathGenerators??=new Map,a.pathGenerators??=new Map,(0,n.OtU)(e,a.pathGenerators,a.initializers.pathGenerators,t)),e.pluginManager.addPlugin(new i(e.pluginManager))})}function r(e){if(!e.pluginManager.addPathGenerator)throw new Error("tsParticles Base Mover is not loaded")}}}]);