"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[1859,3225],{3225(n,e,t){t.d(e,{h:()=>s,loadCurvesPath:()=>c});var i=t(1859),a=t(3199);const o={rndFunc:null,period:100,nbHarmonics:2,attenHarmonics:.8,lowValue:-.03,highValue:.03};class r{options;#n;constructor(n){this.#n=n,this.options=(0,a.zwS)({},o)}generate(n){if(!n.pathGen){const e=this.options;n.pathGen=function(n,e,t,i,o=0,r=1){const s=[],c=[],l=[],u=[],h=[],p=n??a.G0i;let g=0;t<1&&(t=1);for(let n=1;n<=t;++n)s[n]=p(),c[n]=p(),l[n]=1===n?1:l[n-1]*i,g+=l[n],u[n]=n/e,h[n]=p();return l.forEach((n,e)=>l[e]=n/g*(r-o)),()=>{let n,e,i=0;for(let a=t;a>=1;--a)n=h[a]+=u[a],h[a]>=1&&(n=h[a]-=1,s[a]=c[a],c[a]=p()),e=n**2*(3-2*n),i+=(s[a]*(1-e)+c[a]*e)*l[a];return i+o}}(e.rndFunc,e.period,e.nbHarmonics,e.attenHarmonics,e.lowValue,e.highValue)}return n.curveVelocity?(n.curveVelocity.length+=.01,n.curveVelocity.angle=(n.curveVelocity.angle+n.pathGen())%a.R1e):(n.curveVelocity=a.Miz.origin,n.curveVelocity.length=.6*(0,a.G0i)()+.8,n.curveVelocity.angle=(0,a.G0i)()*a.R1e),n.velocity.x=0,n.velocity.y=0,n.curveVelocity}init(){const n=this.#n.actualOptions.particles.move.path.options;(0,a.Tnt)(n.rndFunc)?this.options.rndFunc=n.rndFunc:(0,a.KgX)(n.rndFunc)&&(this.options.rndFunc=globalThis[n.rndFunc]??this.options.rndFunc),this.options.period=n.period??this.options.period,this.options.nbHarmonics=n.nbHarmonics??this.options.nbHarmonics,this.options.attenHarmonics=n.attenHarmonics??this.options.attenHarmonics,this.options.lowValue=n.lowValue??this.options.lowValue,this.options.highValue=n.highValue??this.options.highValue}reset(n){delete n.pathGen,delete n.curveVelocity}update(){}}const s="curvesPathGenerator";async function c(n){n.checkVersion("4.1.3"),await n.pluginManager.register(n=>{(0,i.g)(n),n.pluginManager.addPathGenerator?.(s,n=>Promise.resolve(new r(n)))})}},1859(n,e,t){t.d(e,{g:()=>r,loadMovePlugin:()=>o});var i=t(3199);class a{id="move";#e;constructor(n){this.#e=n}async getPlugin(n){const{MovePluginInstance:e}=await t.e(5272).then(t.bind(t,5272));return new e(this.#e,n)}loadOptions(){}needsPlugin(){return!0}}async function o(n){n.checkVersion("4.1.3"),await n.pluginManager.register(n=>{const e=n.pluginManager;e.initializers.pathGenerators??=new Map,e.pathGenerators??=new Map,e.addPathGenerator=(n,t)=>{e.initializers.pathGenerators??=new Map,e.initializers.pathGenerators.set(n,t)},e.getPathGenerators=async(n,t=!1)=>(e.initializers.pathGenerators??=new Map,e.pathGenerators??=new Map,(0,i.OtU)(n,e.pathGenerators,e.initializers.pathGenerators,t)),n.pluginManager.addPlugin(new a(n.pluginManager))})}function r(n){if(!n.pluginManager.addPathGenerator)throw new Error("tsParticles Base Mover is not loaded")}}}]);