"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[6818],{6818(e,o,t){t.d(o,{BlendPluginInstance:()=>l});var a=t(3199);class l{#e;#o;constructor(e){this.#e=e}drawParticleCleanup(e,o){o.options.blend?.enable&&(e.globalCompositeOperation=o.originalBlendMode??a.yjn,o.originalBlendMode=void 0)}drawParticleSetup(e,o){o.options.blend?.enable&&(o.originalBlendMode=e.globalCompositeOperation,e.globalCompositeOperation=o.options.blend.mode)}drawSettingsCleanup(e){this.#o&&(e.globalCompositeOperation=this.#o)}drawSettingsSetup(e){const o=e.globalCompositeOperation,t=this.#e.actualOptions.blend;this.#o=o,e.globalCompositeOperation=t?.enable?t.mode:o}}}}]);