"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[3519,9994,493],{9994:(e,t,i)=>{i.d(t,{loadEmittersShapeSquare:()=>l});var a=i(1814),n=i(9201);function s(e,t){return e+t*((0,n.sZ)()-.5)}class o extends a.F{constructor(e,t,i,a){super(e,t,i,a)}async init(){}async randomPosition(){const e=this.fill,t=this.position,i=this.size;if(e)return{position:{x:s(t.x,i.width),y:s(t.y,i.height)}};{const e=i.width/2,a=i.height/2,s=Math.floor(4*(0,n.sZ)()),o=2*((0,n.sZ)()-.5);switch(s){case 0:return{position:{x:t.x+o*e,y:t.y-a}};case 1:return{position:{x:t.x-e,y:t.y+o*a}};case 2:return{position:{x:t.x+o*e,y:t.y+a}};default:return{position:{x:t.x+e,y:t.y+o*a}}}}}}class r{generate(e,t,i,a){return new o(e,t,i,a)}}async function l(e,t=!0){const i=e;i.addEmitterShapeGenerator&&i.addEmitterShapeGenerator("square",new r),await i.refresh(t)}},3519:(e,t,i)=>{i.d(t,{loadHyperspacePreset:()=>l});var a=i(1373),n=i(1814),s=i(9994),o=i(493);const r={background:{color:"#000000"},particles:{number:{value:100},color:{value:"#ffffff"},life:{count:1,duration:{value:5}},shape:{type:"circle"},opacity:{value:1},size:{value:3},move:{enable:!0,speed:10,decay:.005,direction:"outside",straight:!0,outModes:"destroy",trail:{enable:!0,length:15,fill:{color:"#000000"}}}},emitters:{position:{x:50,y:50},size:{width:100,height:100},rate:{quantity:10,delay:.1}}};async function l(e,t=!0){await(0,a.loadBasic)(e,!1),await(0,s.loadEmittersShapeSquare)(e,!1),await(0,n.loadEmittersPlugin)(e,!1),await(0,o.loadLifeUpdater)(e,!1),await e.addPreset("hyperspace",r,t)}},493:(e,t,i)=>{i.d(t,{loadLifeUpdater:()=>l});var a=i(9201);class n extends a.SW{constructor(){super(),this.sync=!1}load(e){e&&(super.load(e),void 0!==e.sync&&(this.sync=e.sync))}}class s extends a.SW{constructor(){super(),this.sync=!1}load(e){e&&(super.load(e),void 0!==e.sync&&(this.sync=e.sync))}}class o{constructor(){this.count=0,this.delay=new n,this.duration=new s}load(e){e&&(void 0!==e.count&&(this.count=e.count),this.delay.load(e.delay),this.duration.load(e.duration))}}class r{constructor(e){this.container=e}init(e){const t=this.container,i=e.options.life;i&&(e.life={delay:t.retina.reduceFactor?(0,a.Gu)(i.delay.value)*(i.delay.sync?1:(0,a.sZ)())/t.retina.reduceFactor*1e3:0,delayTime:0,duration:t.retina.reduceFactor?(0,a.Gu)(i.duration.value)*(i.duration.sync?1:(0,a.sZ)())/t.retina.reduceFactor*1e3:0,time:0,count:i.count},e.life.duration<=0&&(e.life.duration=-1),e.life.count<=0&&(e.life.count=-1),e.life&&(e.spawning=e.life.delay>0))}isEnabled(e){return!e.destroyed}loadOptions(e,...t){e.life||(e.life=new o);for(const i of t)e.life.load(i?.life)}update(e,t){if(!this.isEnabled(e)||!e.life)return;const i=e.life;let n=!1;if(e.spawning){if(i.delayTime+=t.value,!(i.delayTime>=e.life.delay))return;n=!0,e.spawning=!1,i.delayTime=0,i.time=0}if(-1===i.duration)return;if(e.spawning)return;if(n?i.time=0:i.time+=t.value,i.time<i.duration)return;if(i.time=0,e.life.count>0&&e.life.count--,0===e.life.count)return void e.destroy();const s=this.container.canvas.size,o=(0,a.Cs)(0,s.width),r=(0,a.Cs)(0,s.width);e.position.x=(0,a.vd)(o),e.position.y=(0,a.vd)(r),e.spawning=!0,i.delayTime=0,i.time=0,e.reset();const l=e.options.life;l&&(i.delay=1e3*(0,a.Gu)(l.delay.value),i.duration=1e3*(0,a.Gu)(l.duration.value))}}async function l(e,t=!0){await e.addParticleUpdater("life",(e=>new r(e)),t)}}}]);