"use strict";(self.webpackChunkwordpress_particles=self.webpackChunkwordpress_particles||[]).push([[3e3],{3e3:function(t,e,n){n.r(e),n.d(e,{loadMultilineTextShape:function(){return l}});var s=n(3563);class i{draw(t,e,n){const i=e.shapeData;if(void 0===i)return;const l=i.value;if(void 0===l)return;const o=e;void 0===o.text&&(o.text=(0,s.wA)(l,e.randomIndexData));const a=o.text,r=i.style,c=i.weight,p=2*Math.round(n),u=i.font,h=e.fill;t.font=`${r} ${c} ${p}px "${u}"`,h?null==a||a.split("\n").forEach(((e,s)=>{const i={x:-e.length*n/2,y:n/2};t.fillText(e,i.x,i.y+2*n*s)})):null==a||a.split("\n").forEach(((e,s)=>{const i={x:-e.length*n/2,y:n/2};t.strokeText(e,i.x,i.y+2*n*s)}))}async init(t){const e=t.options,n="multiline-text";if((0,s.dB)(n,e.particles.shape.type)){const t=e.particles.shape.options[n],i=[];(0,s.KH)(t,(t=>{i.push((0,s.mx)(t.font,t.weight))})),await Promise.all(i)}}}function l(t){t.addShape("multiline-text",new i)}}}]);