"use strict";(globalThis.webpackChunkwordpress_particles=globalThis.webpackChunkwordpress_particles||[]).push([[1125],{1125:(e,t,i)=>{i.r(t),i.d(t,{loadTwinkleUpdater:()=>r});var o=i(5302),s=i(6720),l=i(2187);class n{constructor(){this.enable=!1,this.frequency=.05,this.opacity=1}load(e){e&&(void 0!==e.color&&(this.color=l.O.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 a{constructor(){this.lines=new n,this.particles=new n}load(e){e&&(this.lines.load(e.lines),this.particles.load(e.particles))}}class c{getColorStyles(e,t,i,l){const n=e.options.twinkle;if(!n)return{};const a=n.particles,c=a.enable&&(0,o.sZ)()<a.frequency,r=e.options.zIndex,d=(1-e.zIndexFactor)**r.opacityRate,p=c?(0,o.Gu)(a.opacity)*d:l,h=(0,s.lN)(a.color),u=h?(0,s.vz)(h,p):void 0,w={},k=c&&u;return w.fill=k?u:void 0,w.stroke=k?u:void 0,w}init(){}isEnabled(e){const t=e.options.twinkle;return!!t&&t.particles.enable}loadOptions(e,...t){e.twinkle||(e.twinkle=new a);for(const i of t)e.twinkle.load(i?.twinkle)}update(){}}async function r(e,t=!0){await e.addParticleUpdater("twinkle",(()=>new c),t)}}}]);