"use strict";(globalThis.webpackChunkwordpress_particles=globalThis.webpackChunkwordpress_particles||[]).push([[7285],{7285:(e,t,n)=>{n.r(t),n.d(t,{loadExportImagePlugin:()=>r});class s{constructor(e,t){this._exportImage=async e=>{const t=this._container.canvas.element;if(t)return new Promise((n=>{t.toBlob((e=>{n(e||void 0)}),e.type??"image/png",e.quality)}))},this._container=e,this._engine=t}async export(e,t){const n={supported:!1};return"image"===e&&(n.supported=!0,n.blob=await this._exportImage(t)),n}}class i{constructor(e){this.id="export-image",this._engine=e}getPlugin(e){return new s(e,this._engine)}loadOptions(){}needsPlugin(){return!0}}async function r(e,t=!0){await e.addPlugin(new i(e),t)}}}]);