"use strict";(self.webpackChunkwordpress_particles=self.webpackChunkwordpress_particles||[]).push([[5819],{5819:function(e,t,i){i.r(t),i.d(t,{loadTwinkleUpdater:function(){return r}});var o=i(3563);class n{constructor(){this.enable=!1,this.frequency=.05,this.opacity=1}load(e){e&&(void 0!==e.color&&(this.color=o.Oz.create(this.color,e.color)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.frequency&&(this.frequency=e.frequency),void 0!==e.opacity&&(this.opacity=(0,o.Cs)(e.opacity)))}}class s{constructor(){this.lines=new n,this.particles=new n}load(e){e&&(this.lines.load(e.lines),this.particles.load(e.particles))}}class l{getColorStyles(e,t,i,n){const s=e.options.twinkle;if(!s)return{};const l=s.particles,r=l.enable&&(0,o.sZ)()<l.frequency,a=e.options.zIndex,c=(1-e.zIndexFactor)**a.opacityRate,d=r?(0,o.Gu)(l.opacity)*c:n,p=(0,o.lN)(l.color),u=p?(0,o.vz)(p,d):void 0,w={},h=r&&u;return w.fill=h?u:void 0,w.stroke=h?u:void 0,w}init(){}isEnabled(e){const t=e.options.twinkle;return!!t&&t.particles.enable}loadOptions(e){e.twinkle||(e.twinkle=new s);for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];for(const t of i)e.twinkle.load(null==t?void 0:t.twinkle)}update(){}}async function r(e){await e.addParticleUpdater("twinkle",(()=>new l))}}}]);