"use strict";(globalThis.webpackChunkwordpress_particles=globalThis.webpackChunkwordpress_particles||[]).push([[1974],{1974:(t,n,o)=>{o.r(n),o.d(n,{curvesPathName:()=>s,loadCurvesPath:()=>r});var e=o(3290);class i{constructor(){this.options={rndFunc:null,period:100,nbHarmonics:2,attenHarmonics:.8,lowValue:-.03,highValue:.03}}generate(t){if(void 0===t.pathGen){const n=this.options;t.pathGen=function(t,n,o,i){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;const l=[],a=[],c=[],u=[],h=[],p=null!=t?t:e.sZ;let d=0;o<1&&(o=1);for(let t=1;t<=o;++t)l[t]=p(),a[t]=p(),c[t]=1===t?1:c[t-1]*i,d+=c[t],u[t]=t/n,h[t]=p();return c.forEach(((t,n)=>c[n]=t/d*(r-s))),()=>{let t,n,e=0;for(let i=o;i>=1;--i)t=h[i]+=u[i],h[i]>=1&&(t=h[i]-=1,l[i]=a[i],a[i]=p()),n=t**2*(3-2*t),e+=(l[i]*(1-n)+a[i]*n)*c[i];return e+s}}(n.rndFunc,n.period,n.nbHarmonics,n.attenHarmonics,n.lowValue,n.highValue)}return void 0===t.curveVelocity?(t.curveVelocity=e.OW.origin,t.curveVelocity.length=.6*(0,e.sZ)()+.8,t.curveVelocity.angle=(0,e.sZ)()*Math.PI*2):(t.curveVelocity.length+=.01,t.curveVelocity.angle=(t.curveVelocity.angle+t.pathGen())%(2*Math.PI)),t.velocity.x=0,t.velocity.y=0,t.curveVelocity}init(t){var n,o,e,i,s;const r=t.actualOptions.particles.move.path.options;"function"==typeof r.rndFunc?this.options.rndFunc=r.rndFunc:"string"==typeof r.rndFunc&&(this.options.rndFunc=window[r.rndFunc]||this.options.rndFunc),this.options.period=null!==(n=r.period)&&void 0!==n?n:this.options.period,this.options.nbHarmonics=null!==(o=r.nbHarmonics)&&void 0!==o?o:this.options.nbHarmonics,this.options.attenHarmonics=null!==(e=r.attenHarmonics)&&void 0!==e?e:this.options.attenHarmonics,this.options.lowValue=null!==(i=r.lowValue)&&void 0!==i?i:this.options.lowValue,this.options.highValue=null!==(s=r.highValue)&&void 0!==s?s:this.options.highValue}reset(t){delete t.pathGen,delete t.curveVelocity}update(){}}const s="curvesPathGenerator";function r(t){t.addPathGenerator(s,new i)}}}]);