"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[6153],{6153(e,a,n){n.d(a,{loadWobbleUpdater:()=>l});var s=n(3199);class t{angle=50;move=10;load(e){(0,s.kZJ)(e)||((0,s.dPX)(this,"angle",e.angle),(0,s.dPX)(this,"move",e.move))}}class i{distance=5;enable=!1;speed=new t;load(e){if(!(0,s.kZJ)(e)&&((0,s.dPX)(this,"distance",e.distance),(0,s.kBH)(this,"enable",e.enable),void 0!==e.speed))if((0,s.EtT)(e.speed))this.speed.load({angle:e.speed});else{const a=e.speed;"min"in a?this.speed.load({angle:a}):this.speed.load(e.speed)}}}class o{#e;constructor(e){this.#e=e}init(e){const a=e.options.wobble;e.wobble=a?.enable?{angle:(0,s.G0i)()*s.R1e,angleSpeed:(0,s.VGA)(a.speed.angle)/360,moveSpeed:(0,s.VGA)(a.speed.move)/10}:{angle:0,angleSpeed:0,moveSpeed:0},e.retina.wobbleDistance=(0,s.VGA)(a?.distance??0)*this.#e.retina.pixelRatio}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.options.wobble?.enable}loadOptions(e,...a){(0,s.Ret)(e,"wobble",i,...a)}update(e,a){this.isEnabled(e)&&function(e,a,n){const{wobble:t}=a.options,{wobble:i}=a;if(!t?.enable||!i)return;const o=e.retina.reduceFactor,l=i.angleSpeed*n.factor*o,d=i.moveSpeed*n.factor*o*(a.retina.wobbleDistance??0)/(s.XuV/60),r=s.R1e,{position:p}=a;i.angle+=l,i.angle>r&&(i.angle-=r),p.x+=d*Math.cos(i.angle),p.y+=d*Math.abs(Math.sin(i.angle))}(this.#e,e,a)}}async function l(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("wobble",e=>Promise.resolve(new o(e)))})}}}]);