"use strict";(self.webpackChunkwordpress_particles=self.webpackChunkwordpress_particles||[]).push([[7803],{7803:function(e,s,i){i.r(s),i.d(s,{loadSizeUpdater:function(){return n}});var o=i(3563);class a{init(e){var s;const i=e.container,a=e.options.size.animation;a.enable&&(e.size.velocity=(null!==(s=e.retina.sizeAnimationSpeed)&&void 0!==s?s:i.retina.sizeAnimationSpeed)/100*i.retina.reduceFactor,a.sync||(e.size.velocity*=(0,o.sZ)()))}isEnabled(e){var s,i,o,a;return!e.destroyed&&!e.spawning&&e.size.enable&&((null!==(s=e.size.maxLoops)&&void 0!==s?s:0)<=0||(null!==(i=e.size.maxLoops)&&void 0!==i?i:0)>0&&(null!==(o=e.size.loops)&&void 0!==o?o:0)<(null!==(a=e.size.maxLoops)&&void 0!==a?a:0))}reset(e){e.size.loops=0}update(e,s){this.isEnabled(e)&&function(e,s){var i,a,n,l,t;const z=(null!==(i=e.size.velocity)&&void 0!==i?i:0)*s.factor,r=e.size.min,d=e.size.max,u=null!==(a=e.size.decay)&&void 0!==a?a:1;if(!(e.destroyed||!e.size.enable||(null!==(n=e.size.maxLoops)&&void 0!==n?n:0)>0&&(null!==(l=e.size.loops)&&void 0!==l?l:0)>(null!==(t=e.size.maxLoops)&&void 0!==t?t:0))){switch(e.size.status){case 0:e.size.value>=d?(e.size.status=1,e.size.loops||(e.size.loops=0),e.size.loops++):e.size.value+=z;break;case 1:e.size.value<=r?(e.size.status=0,e.size.loops||(e.size.loops=0),e.size.loops++):e.size.value-=z}e.size.velocity&&1!==u&&(e.size.velocity*=u),function(e,s,i,o){switch(e.options.size.animation.destroy){case"max":s>=o&&e.destroy();break;case"min":s<=i&&e.destroy()}}(e,e.size.value,r,d),e.destroyed||(e.size.value=(0,o.uZ)(e.size.value,r,d))}}(e,s)}}async function n(e){await e.addParticleUpdater("size",(()=>new a))}}}]);