"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[4572],{4572(a,e,s){s.d(e,{loadShadowEffect:()=>t});var o=s(3199);class r{#a;#e;constructor(a,e){this.#e=a,this.#a=e}drawAfter(a){const{context:e}=a;e.restore()}drawBefore(a){const{particle:e,context:s}=a,r=this.#a,t=e,n=t.shadowColor,i=t.shadowOffset;n&&(s.save(),s.shadowBlur=t.shadowBlur??0,s.shadowColor=(0,o.xxz)(n,r.hdr),s.shadowOffsetX=i?.x??0,s.shadowOffsetY=i?.y??0)}particleInit(a,e){const s=e.effectData,r=o.Oit.create(new o.Oit,s?.color);e.shadowColor=(0,o.BN0)(this.#e,r),e.shadowBlur=s?.blur??0,e.shadowOffset=s?.offset??o.boI}}async function t(a){a.checkVersion("4.1.3"),await a.pluginManager.register(a=>{a.pluginManager.addEffect("shadow",e=>Promise.resolve(new r(a.pluginManager,e)))})}}}]);