"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[676,4839],{676:(t,o,e)=>{e.d(o,{loadFountainPreset:()=>n});var s=e(1373),i=e(4839),l=e(1814);const r={fpsLimit:120,particles:{bounce:{vertical:{value:{min:.75,max:.85}}},color:{value:["#3998D0","#2EB6AF","#A9BD33","#FEC73B","#F89930","#F45623","#D62E32","#EB586E","#9952CF"]},number:{value:0},destroy:{mode:"split",split:{count:2,factor:{value:{min:1.1,max:2}},rate:{value:{min:2,max:3}}}},opacity:{value:.5},size:{value:{min:10,max:20}},move:{enable:!0,gravity:{enable:!0,maxSpeed:50},speed:{min:10,max:20},direction:"none",random:!1,straight:!1,outModes:{bottom:"split",default:"bounce",top:"none"},trail:{enable:!0,fill:{color:"#fff"},length:3}}},detectRetina:!0,background:{color:"#fff"},emitters:{direction:"top",life:{count:0,duration:.15,delay:3},rate:{delay:.1,quantity:5},size:{width:0,height:0}}};async function n(t,o=!0){await(0,s.loadBasic)(t,!1),await(0,i.loadDestroyUpdater)(t,!1),await(0,l.loadEmittersPlugin)(t,!1),await t.addPreset("fountain",r,o)}},4839:(t,o,e)=>{e.d(o,{loadDestroyUpdater:()=>u});var s=e(9201);class i{load(t){t&&(void 0!==t.bottom&&(this.bottom=(0,s.Cs)(t.bottom)),void 0!==t.left&&(this.left=(0,s.Cs)(t.left)),void 0!==t.right&&(this.right=(0,s.Cs)(t.right)),void 0!==t.top&&(this.top=(0,s.Cs)(t.top)))}}class l extends s.SW{constructor(){super(),this.value=3}}class r extends s.SW{constructor(){super(),this.value={min:4,max:9}}}class n{constructor(){this.count=1,this.factor=new l,this.rate=new r,this.sizeOffset=!0}load(t){t&&(void 0!==t.color&&(this.color=s.Oz.create(this.color,t.color)),void 0!==t.count&&(this.count=t.count),this.factor.load(t.factor),this.rate.load(t.rate),this.particles=(0,s.KH)(t.particles,(t=>(0,s.ZB)({},t))),void 0!==t.sizeOffset&&(this.sizeOffset=t.sizeOffset),t.colorOffset&&(this.colorOffset=this.colorOffset??{},void 0!==t.colorOffset.h&&(this.colorOffset.h=t.colorOffset.h),void 0!==t.colorOffset.s&&(this.colorOffset.s=t.colorOffset.s),void 0!==t.colorOffset.l&&(this.colorOffset.l=t.colorOffset.l)))}}class a{constructor(){this.bounds=new i,this.mode="none",this.split=new n}load(t){t&&(t.mode&&(this.mode=t.mode),t.bounds&&this.bounds.load(t.bounds),this.split.load(t.split))}}function c(t,o,e,i){const l=e.options.destroy;if(!l)return;const r=l.split,n=(0,s.hT)(t,o,e.options),a=(0,s.Gu)(r.factor.value),c=e.getFillColor();r.color?n.color.load(r.color):r.colorOffset&&c?n.color.load({value:{hsl:{h:c.h+(0,s.Gu)(r.colorOffset.h??0),s:c.s+(0,s.Gu)(r.colorOffset.s??0),l:c.l+(0,s.Gu)(r.colorOffset.l??0)}}}):n.color.load({value:{hsl:e.getFillColor()}}),n.move.load({center:{x:e.position.x,y:e.position.y,mode:"precise"}}),(0,s.hj)(n.size.value)?n.size.value/=a:(n.size.value.min/=a,n.size.value.max/=a),n.load(i);const d=r.sizeOffset?(0,s.Cs)(-e.size.value,e.size.value):0,u={x:e.position.x+(0,s.vd)(d),y:e.position.y+(0,s.vd)(d)};return o.particles.addParticle(u,n,e.group,(t=>!(t.size.value<.5||(t.velocity.length=(0,s.vd)((0,s.Cs)(e.velocity.length,t.velocity.length)),t.splitCount=(e.splitCount??0)+1,t.unbreakable=!0,setTimeout((()=>{t.unbreakable=!1}),500),0))))}class d{constructor(t,o){this.engine=t,this.container=o}init(t){const o=this.container,e=t.options.destroy;if(!e)return;t.splitCount=0;const i=e.bounds;t.destroyBounds||(t.destroyBounds={});const{bottom:l,left:r,right:n,top:a}=i,{destroyBounds:c}=t,d=o.canvas.size;l&&(c.bottom=(0,s.Gu)(l)*d.height/100),r&&(c.left=(0,s.Gu)(r)*d.width/100),n&&(c.right=(0,s.Gu)(n)*d.width/100),a&&(c.top=(0,s.Gu)(a)*d.height/100)}isEnabled(t){return!t.destroyed}loadOptions(t,...o){t.destroy||(t.destroy=new a);for(const e of o)t.destroy.load(e?.destroy)}particleDestroyed(t,o){if(o)return;const e=t.options.destroy;e&&"split"===e.mode&&function(t,o,e){const i=e.options.destroy;if(!i)return;const l=i.split;if(l.count>=0&&(void 0===e.splitCount||e.splitCount++>l.count))return;const r=(0,s.Gu)(l.rate.value),n=(0,s.wA)(l.particles);for(let s=0;s<r;s++)c(t,o,e,n)}(this.engine,this.container,t)}update(t){if(!this.isEnabled(t))return;const o=t.getPosition(),e=t.destroyBounds;e&&(void 0!==e.bottom&&o.y>=e.bottom||void 0!==e.left&&o.x<=e.left||void 0!==e.right&&o.x>=e.right||void 0!==e.top&&o.y<=e.top)&&t.destroy()}}async function u(t,o=!0){await t.addParticleUpdater("destroy",(o=>new d(t,o)),o)}}}]);