@tsparticles/fireworks 4.0.0-alpha.21 → 4.0.0-alpha.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/106.min.js +1 -1
- package/129.min.js +1 -1
- package/139.min.js +1 -1
- package/28.min.js +1 -1
- package/280.min.js +1 -1
- package/281.min.js +1 -1
- package/322.min.js +1 -1
- package/402.min.js +1 -1
- package/411.min.js +1 -1
- package/509.min.js +1 -1
- package/566.min.js +1 -1
- package/576.min.js +1 -1
- package/578.min.js +1 -1
- package/612.min.js +1 -1
- package/678.min.js +1 -1
- package/785.min.js +1 -1
- package/795.min.js +1 -1
- package/815.min.js +1 -1
- package/847.min.js +1 -0
- package/884.min.js +1 -1
- package/929.min.js +1 -1
- package/939.min.js +1 -1
- package/basic_dist_browser_index_js.js +2 -2
- package/browser/fireworks.js +2 -2
- package/cjs/fireworks.js +2 -2
- package/effects_trail_dist_browser_TrailDrawer_js.js +1 -1
- package/effects_trail_dist_browser_index_js.js +2 -2
- package/engine_dist_browser_Core_Container_js.js +1 -1
- package/esm/fireworks.js +2 -2
- package/move_base_dist_browser_BaseMover_js.js +1 -1
- package/move_base_dist_browser_index_js.js +2 -2
- package/package.json +10 -10
- package/plugins_colors_hex_dist_browser_HexColorManager_js.js +1 -1
- package/plugins_colors_hex_dist_browser_index_js.js +2 -2
- package/plugins_colors_hsl_dist_browser_HslColorManager_js.js +1 -1
- package/plugins_colors_hsl_dist_browser_index_js.js +2 -2
- package/plugins_colors_rgb_dist_browser_RgbColorManager_js.js +1 -1
- package/plugins_colors_rgb_dist_browser_index_js.js +2 -2
- package/plugins_emittersShapes_square_dist_browser_EmittersSquareShapeGenerator_js.js +2 -2
- package/plugins_emittersShapes_square_dist_browser_index_js.js +2 -2
- package/plugins_emitters_dist_browser_EmitterInstance_js.js +1 -1
- package/plugins_emitters_dist_browser_EmittersInstancesManager_js.js +1 -1
- package/plugins_emitters_dist_browser_EmittersInteractor_js.js +48 -38
- package/plugins_emitters_dist_browser_EmittersPluginInstance_js.js +1 -1
- package/plugins_emitters_dist_browser_EmittersPlugin_js.js +1 -1
- package/plugins_emitters_dist_browser_ShapeManager_js.js +1 -1
- package/plugins_emitters_dist_browser_index_js.js +2 -2
- package/plugins_interactivity_dist_browser_InteractivityPluginInstance_js.js +4 -4
- package/plugins_interactivity_dist_browser_InteractivityPlugin_js.js +3 -3
- package/plugins_interactivity_dist_browser_index_js.js +48 -38
- package/plugins_sounds_dist_browser_SoundsPluginInstance_js.js +1 -1
- package/plugins_sounds_dist_browser_SoundsPlugin_js.js +1 -1
- package/plugins_sounds_dist_browser_index_js.js +2 -2
- package/report.html +1 -1
- package/shapes_circle_dist_browser_CircleDrawer_js.js +1 -1
- package/shapes_circle_dist_browser_index_js.js +2 -2
- package/tsparticles.fireworks.bundle.js +3 -3
- package/tsparticles.fireworks.bundle.min.js +2 -2
- package/tsparticles.fireworks.js +2 -2
- package/tsparticles.fireworks.min.js +1 -1
- package/umd/fireworks.js +2 -2
- package/updaters_color_dist_browser_ColorUpdater_js.js +1 -1
- package/updaters_color_dist_browser_index_js.js +2 -2
- package/updaters_destroy_dist_browser_DestroyUpdater_js.js +1 -1
- package/updaters_destroy_dist_browser_index_js.js +2 -2
- package/updaters_life_dist_browser_LifeUpdater_js.js +1 -1
- package/updaters_life_dist_browser_index_js.js +2 -2
- package/updaters_opacity_dist_browser_OpacityUpdater_js.js +1 -1
- package/updaters_opacity_dist_browser_index_js.js +2 -2
- package/updaters_outModes_dist_browser_OutOfCanvasUpdater_js.js +1 -1
- package/updaters_outModes_dist_browser_index_js.js +2 -2
- package/updaters_rotate_dist_browser_RotateUpdater_js.js +1 -1
- package/updaters_rotate_dist_browser_index_js.js +2 -2
- package/updaters_size_dist_browser_SizeUpdater_js.js +1 -1
- package/updaters_size_dist_browser_index_js.js +2 -2
- package/953.min.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var a in i)("object"==typeof exports?exports:e)[a]=i[a]}}(this,()=>(()=>{"use strict";var e,t,i,a={9692(e,t,i){i.d(t,{$G:()=>L,$O:()=>q,$_:()=>F,$v:()=>X,$x:()=>S,BF:()=>eR,BW:()=>h,DN:()=>Y,D_:()=>eb,Dv:()=>ex,Eo:()=>ea,FS:()=>K,Fl:()=>eP,GW:()=>G,Ie:()=>I,JC:()=>j,K3:()=>ep,KZ:()=>B,Kw:()=>z,L1:()=>_,LD:()=>ef,M1:()=>eo,MX:()=>r,N5:()=>en,NF:()=>n,Nu:()=>eM,Nx:()=>J,PZ:()=>Q,Pg:()=>R,R1:()=>v,RF:()=>b,RV:()=>Z,Rh:()=>el,Rq:()=>V,TL:()=>N,U0:()=>A,Ug:()=>c,WH:()=>ei,X$:()=>y,X_:()=>es,Xu:()=>l,Zp:()=>O,a5:()=>o,aE:()=>eO,aZ:()=>g,bo:()=>d,ce:()=>m,dm:()=>w,dv:()=>et,eb:()=>a,eu:()=>T,gd:()=>p,hB:()=>P,hK:()=>eE,hv:()=>H,i8:()=>U,iU:()=>ew,jn:()=>ek,lA:()=>ev,mR:()=>u,nK:()=>s,nq:()=>ec,oi:()=>k,ou:()=>ed,pH:()=>eg,rq:()=>x,tA:()=>ey,tR:()=>eT,td:()=>em,un:()=>er,vF:()=>W,vS:()=>E,vd:()=>ez,w2:()=>$,wM:()=>eu,xH:()=>ee,xd:()=>M,yx:()=>D,z$:()=>f,z9:()=>eh,zg:()=>eS,zs:()=>C});let a="generated",n="resize",s="visibilitychange",o=100,r=.5,l=1e3,d={x:0,y:0,z:0},c={a:1,b:0,c:0,d:1},u="random",h="mid",p=2,v=2*Math.PI,f=60,g=1,m="true",y="false",b="canvas",x=0,w=2,z=4,M=1,S=1,O=1,R=4,P=1,k=255,E=360,T=100,F=100,_=0,D=0,A=60,I=0,L=.25,V=.75,G=0,C=1,$=0,q=0,Z=1,H=1,K=1,B=1,N=0,j=1,W=0,U=120,Y=0,J=0,X=1e4,Q=0,ee=1,et=0,ei=1,ea=1,en=0,es=0,eo=0,er=-.25,el=1.5,ed=0,ec=1,eu=0,eh=0,ep=1,ev=1,ef=1,eg=500,em=50,ey=0,eb=1,ex=0,ew=1,ez=0,eM=3,eS=6,eO=1,eR=1,eP=0,ek=0,eE=0,eT=0},5775(e,t,i){i.d(t,{b:()=>a});class a{particle;position;constructor(e,t){this.position=e,this.particle=t}}},2981(e,t,i){i.d(t,{dg:()=>r,jl:()=>l,M_:()=>d}),(a=n||(n={})).circle="circle",a.rectangle="rectangle";var a,n,s=i(8346),o=i(9692);class r{position;type;constructor(e,t,i){this.position={x:e,y:t},this.type=i}}class l extends r{radius;constructor(e,t,i){super(e,t,n.circle),this.radius=i}contains(e){return(0,s.Yf)(e,this.position)<=this.radius}intersects(e){let t=this.position,i=e.position,a={x:Math.abs(i.x-t.x),y:Math.abs(i.y-t.y)},s=this.radius;if(e instanceof l||e.type===n.circle)return s+e.radius>Math.sqrt(a.x**o.dm+a.y**o.dm);if(e instanceof d||e.type===n.rectangle){let{width:t,height:i}=e.size;return Math.pow(a.x-t,o.dm)+Math.pow(a.y-i,o.dm)<=s**o.dm||a.x<=s+t&&a.y<=s+i||a.x<=t||a.y<=i}return!1}}class d extends r{size;constructor(e,t,i,a){super(e,t,n.rectangle),this.size={height:a,width:i}}contains(e){let t=this.size.width,i=this.size.height,a=this.position;return e.x>=a.x&&e.x<=a.x+t&&e.y>=a.y&&e.y<=a.y+i}intersects(e){if(e instanceof l)return e.intersects(this);let t=this.size.width,i=this.size.height,a=this.position,n=e.position,s=e instanceof d?e.size:{width:0,height:0},o=s.width,r=s.height;return n.x<a.x+t&&n.x+o>a.x&&n.y<a.y+i&&n.y+r>a.y}}},9325(e,t,i){i.d(t,{M:()=>s,p:()=>n});var a=i(9692);class n{x;y;z;constructor(e=a.bo.x,t=a.bo.y,i=a.bo.z){this.x=e,this.y=t,this.z=i}static get origin(){return n.create(a.bo.x,a.bo.y,a.bo.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this._updateFromAngle(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this._updateFromAngle(this.angle,e)}static clone(e){return n.create(e.x,e.y,e.z)}static create(e,t,i){return"number"==typeof e?new n(e,t??a.bo.y,i??a.bo.z):new n(e.x,e.y,Object.hasOwn(e,"z")?e.z:a.bo.z)}add(e){return n.create(this.x+e.x,this.y+e.y,this.z+e.z)}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=e.z}copy(){return n.clone(this)}distanceTo(e){return this.sub(e).length}distanceToSq(e){return this.sub(e).getLengthSq()}div(e){return n.create(this.x/e,this.y/e,this.z/e)}divTo(e){this.x/=e,this.y/=e,this.z/=e}getLengthSq(){return this.x**a.dm+this.y**a.dm}mult(e){return n.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){let e=this.length;e!=a.dv&&this.multTo(a.hB/e)}rotate(e){return n.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),a.bo.z)}setTo(e){this.x=e.x,this.y=e.y,this.z=e.z?e.z:a.bo.z}sub(e){return n.create(this.x-e.x,this.y-e.y,this.z-e.z)}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=e.z}_updateFromAngle=(e,t)=>{this.x=Math.cos(e)*t,this.y=Math.sin(e)*t}}class s extends n{constructor(e=a.bo.x,t=a.bo.y){super(e,t,a.bo.z)}static get origin(){return s.create(a.bo.x,a.bo.y)}static clone(e){return s.create(e.x,e.y)}static create(e,t){return"number"==typeof e?new s(e,t??a.bo.y):new s(e.x,e.y)}}},34(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).increasing="increasing",n.decreasing="decreasing"},3031(e,t,i){var a,n;i.d(t,{F:()=>a}),(n=a||(a={})).bottom="bottom",n.bottomLeft="bottom-left",n.bottomRight="bottom-right",n.left="left",n.none="none",n.right="right",n.top="top",n.topLeft="top-left",n.topRight="top-right",n.outside="outside",n.inside="inside"},8405(e,t,i){var a,n;i.d(t,{v:()=>a}),(n=a||(a={})).bottom="bottom",n.left="left",n.right="right",n.top="top"},3768(e,t,i){var a,n;i.d(t,{g:()=>a}),(n=a||(a={})).auto="auto",n.increase="increase",n.decrease="decrease",n.random="random"},1817(e,t,i){var a,n;i.d(t,{d:()=>a}),(n=a||(a={})).delete="delete",n.wait="wait"},4734(e,t,i){var a,n;i.d(t,{Y:()=>a}),(n=a||(a={})).bounce="bounce",n.none="none",n.out="out",n.destroy="destroy",n.split="split"},5126(e,t,i){var a,n;i.d(t,{q:()=>a}),(n=a||(a={})).precise="precise",n.percent="percent"},7196(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).darken="darken",n.enlighten="enlighten"},658(e,t,i){var a,n;i.d(t,{V:()=>a}),(n=a||(a={})).none="none",n.max="max",n.min="min"},4008(e,t,i){var a,n;i.d(t,{B:()=>a}),(n=a||(a={})).configAdded="configAdded",n.containerInit="containerInit",n.particlesSetup="particlesSetup",n.containerStarted="containerStarted",n.containerStopped="containerStopped",n.containerDestroyed="containerDestroyed",n.containerPaused="containerPaused",n.containerPlay="containerPlay",n.containerBuilt="containerBuilt",n.particleAdded="particleAdded",n.particleDestroyed="particleDestroyed",n.particleRemoved="particleRemoved"},7542(e,t,i){var a,n;i.d(t,{x:()=>a}),(n=a||(a={})).normal="normal",n.inside="inside",n.outside="outside"},1655(e,t,i){var a,n;i.d(t,{S:()=>a}),(n=a||(a={})).max="max",n.min="min",n.random="random"},8278(e,t,i){i.d(t,{A:()=>o});var a=i(6112),n=i(3226),s=i(7544);class o extends s.O{animation;constructor(){super(),this.animation=new n.i}static create(e,t){let i=new o;return i.load(e),void 0!==t&&((0,a.Kg)(t)||(0,a.cy)(t)?i.load({value:t}):i.load(t)),i}load(e){if(super.load(e),(0,a.kZ)(e))return;let t=e.animation;void 0!==t&&(void 0===t.enable?this.animation.load(e.animation):this.animation.h.load(t))}}},9529(e,t,i){i.d(t,{Q:()=>l,p:()=>r});var a=i(3768),n=i(1655),s=i(6112),o=i(8346);class r{count;decay;delay;enable;speed;sync;constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){(0,s.kZ)(e)||(void 0!==e.count&&(this.count=(0,o.DT)(e.count)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,o.DT)(e.speed)),void 0!==e.decay&&(this.decay=(0,o.DT)(e.decay)),void 0!==e.delay&&(this.delay=(0,o.DT)(e.delay)),void 0!==e.sync&&(this.sync=e.sync))}}class l extends r{mode;startValue;constructor(){super(),this.mode=a.g.auto,this.startValue=n.S.random}load(e){super.load(e),(0,s.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.startValue&&(this.startValue=e.startValue))}}},9336(e,t,i){i.d(t,{V:()=>s});var a=i(7544),n=i(6112);class s{color;image;opacity;position;repeat;size;constructor(){this.color=new a.O,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.O.create(this.color,e.color)),void 0!==e.image&&(this.image=e.image),void 0!==e.position&&(this.position=e.position),void 0!==e.repeat&&(this.repeat=e.repeat),void 0!==e.size&&(this.size=e.size),void 0!==e.opacity&&(this.opacity=e.opacity))}}},1014(e,t,i){i.d(t,{e:()=>o});var a=i(9529),n=i(6112),s=i(8346);class o extends a.p{offset;constructor(){super(),this.offset=0,this.sync=!0}load(e){super.load(e),(0,n.kZ)(e)||void 0!==e.offset&&(this.offset=(0,s.DT)(e.offset))}}},4266(e,t,i){i.d(t,{m:()=>n});var a=i(6112);class n{enable;zIndex;constructor(){this.enable=!0,this.zIndex=0}load(e){(0,a.kZ)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.zIndex&&(this.zIndex=e.zIndex))}}},3226(e,t,i){i.d(t,{i:()=>s});var a=i(1014),n=i(6112);class s{h=new a.e;l=new a.e;s=new a.e;load(e){(0,n.kZ)(e)||(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}},4163(e,t,i){i.d(t,{J:()=>c});var a=i(160),n=i(6112),s=i(9336),o=i(4266),r=i(6829),l=i(4998),d=i(8346);class c{autoPlay;background;clear;defaultThemes;delay;detectRetina;duration;fpsLimit;fullScreen;hdr;key;name;particles;pauseOnBlur;pauseOnOutsideViewport;preset;resize;smooth;style;zLayers;_container;_engine;constructor(e,t){this._engine=e,this._container=t,this.autoPlay=!0,this.background=new s.V,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new o.m,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.hdr=!0,this.particles=(0,l.y)(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.resize=new r.z,this.smooth=!1,this.style={},this.zLayers=100}load(e){if((0,n.kZ)(e))return;void 0!==e.preset&&(0,a.wJ)(e.preset,e=>{this._importPreset(e)}),void 0!==e.autoPlay&&(this.autoPlay=e.autoPlay),void 0!==e.clear&&(this.clear=e.clear),void 0!==e.key&&(this.key=e.key),void 0!==e.name&&(this.name=e.name),void 0!==e.delay&&(this.delay=(0,d.DT)(e.delay));let t=e.detectRetina;void 0!==t&&(this.detectRetina=t),void 0!==e.duration&&(this.duration=(0,d.DT)(e.duration));let i=e.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==e.hdr&&(this.hdr=e.hdr),void 0!==e.pauseOnBlur&&(this.pauseOnBlur=e.pauseOnBlur),void 0!==e.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),void 0!==e.zLayers&&(this.zLayers=e.zLayers),this.background.load(e.background);let s=e.fullScreen;(0,n.Lm)(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.particles.load(e.particles),this.resize.load(e.resize),this.style=(0,a.zw)(this.style,e.style),void 0!==e.smooth&&(this.smooth=e.smooth),this._engine.plugins.forEach(t=>{t.loadOptions(this._container,this,e)})}_importPreset=e=>{this.load(this._engine.getPreset(e))}}},7544(e,t,i){i.d(t,{O:()=>n});var a=i(6112);class n{value;constructor(){this.value=""}static create(e,t){let i=new n;return i.load(e),void 0!==t&&((0,a.Kg)(t)||(0,a.cy)(t)?i.load({value:t}):i.load(t)),i}load(e){!(0,a.kZ)(e)&&((0,a.kZ)(e.value)||(this.value=e.value))}}},2189(e,t,i){i.d(t,{w:()=>s});var a=i(1558),n=i(6112);class s{horizontal;vertical;constructor(){this.horizontal=new a.F,this.vertical=new a.F}load(e){(0,n.kZ)(e)||(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}},1558(e,t,i){i.d(t,{F:()=>n});var a=i(6571);class n extends a.PV{constructor(){super(),this.value=1}}},4226(e,t,i){i.d(t,{y:()=>p});var a=i(3031),n=i(6112),s=i(8195),o=i(4181),r=i(3495),l=i(322),d=i(2325),c=i(951),u=i(3915),h=i(8346);class p{angle;attract;center;decay;direction;distance;drift;enable;gravity;outModes;path;random;size;speed;spin;straight;vibrate;warp;constructor(){this.angle=new s.h,this.attract=new o.R,this.center=new r.Z,this.decay=0,this.distance={},this.direction=a.F.none,this.drift=0,this.enable=!1,this.gravity=new l.y,this.path=new d.v,this.outModes=new c.j,this.random=!1,this.size=!1,this.speed=2,this.spin=new u.t,this.straight=!1,this.vibrate=!1,this.warp=!1}load(e){if((0,n.kZ)(e))return;this.angle.load((0,n.Et)(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),void 0!==e.decay&&(this.decay=(0,h.DT)(e.decay)),void 0!==e.direction&&(this.direction=e.direction),void 0!==e.distance&&(this.distance=(0,n.Et)(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),void 0!==e.drift&&(this.drift=(0,h.DT)(e.drift)),void 0!==e.enable&&(this.enable=e.enable),this.gravity.load(e.gravity);let t=e.outModes;void 0!==t&&((0,n.Gv)(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),void 0!==e.random&&(this.random=e.random),void 0!==e.size&&(this.size=e.size),void 0!==e.speed&&(this.speed=(0,h.DT)(e.speed)),this.spin.load(e.spin),void 0!==e.straight&&(this.straight=e.straight),void 0!==e.vibrate&&(this.vibrate=e.vibrate),void 0!==e.warp&&(this.warp=e.warp)}}},8195(e,t,i){i.d(t,{h:()=>s});var a=i(6112),n=i(8346);class s{offset;value;constructor(){this.offset=0,this.value=90}load(e){(0,a.kZ)(e)||(void 0!==e.offset&&(this.offset=(0,n.DT)(e.offset)),void 0!==e.value&&(this.value=(0,n.DT)(e.value)))}}},4181(e,t,i){i.d(t,{R:()=>s});var a=i(6112),n=i(8346);class s{distance;enable;rotate;constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(e){if(!(0,a.kZ)(e)&&(void 0!==e.distance&&(this.distance=(0,n.DT)(e.distance)),void 0!==e.enable&&(this.enable=e.enable),e.rotate)){let t=e.rotate.x;void 0!==t&&(this.rotate.x=t);let i=e.rotate.y;void 0!==i&&(this.rotate.y=i)}}}},3495(e,t,i){i.d(t,{Z:()=>s});var a=i(5126),n=i(6112);class s{mode;radius;x;y;constructor(){this.x=50,this.y=50,this.mode=a.q.percent,this.radius=0}load(e){(0,n.kZ)(e)||(void 0!==e.x&&(this.x=e.x),void 0!==e.y&&(this.y=e.y),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.radius&&(this.radius=e.radius))}}},322(e,t,i){i.d(t,{y:()=>s});var a=i(6112),n=i(8346);class s{acceleration;enable;inverse;maxSpeed;constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){(0,a.kZ)(e)||(void 0!==e.acceleration&&(this.acceleration=(0,n.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.inverse&&(this.inverse=e.inverse),void 0!==e.maxSpeed&&(this.maxSpeed=(0,n.DT)(e.maxSpeed)))}}},951(e,t,i){i.d(t,{j:()=>s});var a=i(4734),n=i(6112);class s{bottom;default;left;right;top;constructor(){this.default=a.Y.out}load(e){(0,n.kZ)(e)||(void 0!==e.default&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}},2325(e,t,i){i.d(t,{v:()=>o});var a=i(6571),n=i(160),s=i(6112);class o{clamp;delay;enable;generator;options;constructor(){this.clamp=!0,this.delay=new a.PV,this.enable=!1,this.options={}}load(e){!(0,s.kZ)(e)&&(void 0!==e.clamp&&(this.clamp=e.clamp),this.delay.load(e.delay),void 0!==e.enable&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=(0,n.zw)(this.options,e.options)))}}},3915(e,t,i){i.d(t,{t:()=>o});var a=i(160),n=i(6112),s=i(8346);class o{acceleration;enable;position;constructor(){this.acceleration=0,this.enable=!1}load(e){!(0,n.kZ)(e)&&(void 0!==e.acceleration&&(this.acceleration=(0,s.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),e.position&&(this.position=(0,a.zw)({},e.position)))}}},5610(e,t,i){i.d(t,{M:()=>n});var a=i(6112);class n{enable;height;width;constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if((0,a.kZ)(e))return;void 0!==e.enable&&(this.enable=e.enable);let t=e.width;void 0!==t&&(this.width=t);let i=e.height;void 0!==i&&(this.height=i)}}},785(e,t,i){i.d(t,{N:()=>o});var a=i(5610),n=i(1862),s=i(6112);class o{density;limit;value;constructor(){this.density=new a.M,this.limit=new n.A,this.value=0}load(e){(0,s.kZ)(e)||(this.density.load(e.density),this.limit.load(e.limit),void 0!==e.value&&(this.value=e.value))}}},1862(e,t,i){i.d(t,{A:()=>s});var a=i(1817),n=i(6112);class s{mode;value;constructor(){this.mode=a.d.delete,this.value=0}load(e){(0,n.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.value&&(this.value=e.value))}}},366(e,t,i){i.d(t,{Y:()=>o});var a=i(486),n=i(6571),s=i(6112);class o extends n.AI{animation;constructor(){super(),this.animation=new a.I,this.value=1}load(e){if((0,s.kZ)(e))return;super.load(e);let t=e.animation;void 0!==t&&this.animation.load(t)}}},486(e,t,i){i.d(t,{I:()=>o});var a=i(658),n=i(9529),s=i(6112);class o extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=2}load(e){super.load(e),(0,s.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},7891(e,t,i){i.d(t,{U:()=>f});var a=i(160),n=i(8278),s=i(6112);class o{close;fill;options;type;constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(e){if((0,s.kZ)(e))return;let t=e.options;if(void 0!==t)for(let e in t){let i=t[e];i&&(this.options[e]=(0,a.zw)(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.fill&&(this.fill=e.fill),void 0!==e.type&&(this.type=e.type)}}var r=i(4226),l=i(366),d=i(2189),c=i(785),u=i(8634),h=i(6906),p=i(2893),v=i(7256);class f{bounce;color;effect;groups;move;number;opacity;reduceDuplicates;shape;size;stroke;zIndex;_container;_engine;constructor(e,t){this._engine=e,this._container=t,this.bounce=new d.w,this.color=new n.A,this.color.value="#fff",this.effect=new o,this.groups={},this.move=new r.y,this.number=new c.N,this.opacity=new l.Y,this.reduceDuplicates=!1,this.shape=new u.y,this.size=new h.o,this.stroke=new p.t,this.zIndex=new v.P}load(e){if((0,s.kZ)(e))return;if(void 0!==e.groups)for(let t of Object.keys(e.groups)){if(!Object.hasOwn(e.groups,t))continue;let i=e.groups[t];void 0!==i&&(this.groups[t]=(0,a.zw)(this.groups[t]??{},i))}void 0!==e.reduceDuplicates&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.color.load(n.A.create(this.color,e.color)),this.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),this.shape.load(e.shape),this.size.load(e.size),this.zIndex.load(e.zIndex);let t=e.stroke;if(t&&(this.stroke=(0,a.wJ)(t,e=>{let t=new p.t;return t.load(e),t})),this._container){for(let t of this._engine.plugins)t.loadParticlesOptions&&t.loadParticlesOptions(this._container,this,e);let t=this._engine.updaters.get(this._container);if(t)for(let i of t)i.loadOptions&&i.loadOptions(this,e)}}}},8634(e,t,i){i.d(t,{y:()=>s});var a=i(160),n=i(6112);class s{close;fill;options;type;constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(e){if((0,n.kZ)(e))return;let t=e.options;if(void 0!==t)for(let e in t){let i=t[e];i&&(this.options[e]=(0,a.zw)(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.fill&&(this.fill=e.fill),void 0!==e.type&&(this.type=e.type)}}},6906(e,t,i){i.d(t,{o:()=>o});var a=i(6571),n=i(3618),s=i(6112);class o extends a.AI{animation;constructor(){super(),this.animation=new n.q,this.value=3}load(e){if(super.load(e),(0,s.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}},3618(e,t,i){i.d(t,{q:()=>o});var a=i(658),n=i(9529),s=i(6112);class o extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=5}load(e){super.load(e),(0,s.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},2893(e,t,i){i.d(t,{t:()=>o});var a=i(8278),n=i(6112),s=i(8346);class o{color;opacity;width;constructor(){this.width=0}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.A.create(this.color,e.color)),void 0!==e.width&&(this.width=(0,s.DT)(e.width)),void 0!==e.opacity&&(this.opacity=(0,s.DT)(e.opacity)))}}},7256(e,t,i){i.d(t,{P:()=>s});var a=i(6571),n=i(6112);class s extends a.PV{opacityRate;sizeRate;velocityRate;constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),(0,n.kZ)(e)||(void 0!==e.opacityRate&&(this.opacityRate=e.opacityRate),void 0!==e.sizeRate&&(this.sizeRate=e.sizeRate),void 0!==e.velocityRate&&(this.velocityRate=e.velocityRate))}}},6829(e,t,i){i.d(t,{z:()=>n});var a=i(6112);class n{delay;enable;constructor(){this.delay=.5,this.enable=!0}load(e){(0,a.kZ)(e)||(void 0!==e.delay&&(this.delay=e.delay),void 0!==e.enable&&(this.enable=e.enable))}}},6571(e,t,i){i.d(t,{AI:()=>l,Jm:()=>r,PV:()=>o});var a=i(9529),n=i(6112),s=i(8346);class o{value;constructor(){this.value=0}load(e){!(0,n.kZ)(e)&&((0,n.kZ)(e.value)||(this.value=(0,s.DT)(e.value)))}}class r extends o{animation=new a.p;load(e){if(super.load(e),(0,n.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}class l extends r{animation;constructor(){super(),this.animation=new a.Q}load(e){super.load(e)}}},3756(e,t,i){i.d(t,{IU:()=>r,KG:()=>u,Md:()=>o,Sn:()=>s,VG:()=>p,Wb:()=>v,gF:()=>h,k:()=>d,p0:()=>l,yx:()=>f,z5:()=>c});var a=i(9692),n=i(7196);function s(e,t,i){e.fillStyle=i??"rgba(0,0,0,0)",e.fillRect(a.bo.x,a.bo.y,t.width,t.height)}function o(e,t,i,n){i&&(e.globalAlpha=n,e.drawImage(i,a.bo.x,a.bo.y,t.width,t.height),e.globalAlpha=1)}function r(e,t){e.clearRect(a.bo.x,a.bo.y,t.width,t.height)}function l(e){let{container:t,context:i,particle:n,delta:s,colorStyles:o,radius:r,opacity:l,transform:v}=e,f=n.getPosition(),g=n.getTransformData(v);i.setTransform(g.a,g.b,g.c,g.d,f.x,f.y),o.fill&&(i.fillStyle=o.fill);let m=n.strokeWidth??a.Dv;i.lineWidth=m,o.stroke&&(i.strokeStyle=o.stroke);let y={context:i,particle:n,radius:r,opacity:l,delta:s,pixelRatio:t.retina.pixelRatio,fill:n.shapeFill,stroke:m>a.Dv||!n.shapeFill,transformData:g};c(t,y),p(t,y),u(t,y),h(t,y),d(t,y),i.resetTransform()}function d(e,t){let{particle:i}=t;if(!i.effect)return;let a=e.particles.effectDrawers.get(i.effect),n=a?.drawAfter;n&&n(t)}function c(e,t){let{particle:i}=t;if(!i.effect)return;let a=e.particles.effectDrawers.get(i.effect);a?.drawBefore&&a.drawBefore(t)}function u(e,t){let{context:i,particle:a,stroke:n}=t;if(!a.shape)return;let s=e.particles.shapeDrawers.get(a.shape);s&&(i.beginPath(),s.draw(t),a.shapeClose&&i.closePath(),n&&i.stroke(),a.shapeFill&&i.fill())}function h(e,t){let{particle:i}=t;if(!i.shape)return;let a=e.particles.shapeDrawers.get(i.shape);a?.afterDraw&&a.afterDraw(t)}function p(e,t){let{particle:i}=t;if(!i.shape)return;let a=e.particles.shapeDrawers.get(i.shape);a?.beforeDraw&&a.beforeDraw(t)}function v(e,t,i,a){t.drawParticle&&t.drawParticle(e,i,a)}function f(e,t,i){return{h:e.h,s:e.s,l:e.l+(t===n.H.darken?-a.iU:a.iU)*i}}},1101(e,t,i){i.d(t,{BN:()=>u,EY:()=>S,Jv:()=>F,K6:()=>f,Ko:()=>T,LC:()=>M,OH:()=>x,O_:()=>P,PG:()=>R,R5:()=>v,YL:()=>y,_h:()=>O,ay:()=>b,eg:()=>m,mK:()=>p,pz:()=>k,qe:()=>h,xx:()=>w,zI:()=>g});var a=i(8346),n=i(9692),s=i(6112),o=i(34),r=i(160);let l=new Map;function d(e,t){let i=l.get(e);return i||(i=t(),l.size>=1e3&&[...l.keys()].slice(0,1e3*n.MX).forEach(e=>l.delete(e)),l.set(e,i)),i}function c(e,t){if(t){for(let i of e.colorManagers.values())if(i.accepts(t))return i.parseString(t)}}function u(e,t,i,a=!0){if(!t)return;let n=(0,s.Kg)(t)?{value:t}:t;if((0,s.Kg)(n.value))return h(e,n.value,i,a);if((0,s.cy)(n.value)){let t=(0,r.Vh)(n.value,i,a);if(!t)return;return u(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleRangeColor(n);if(e)return e}}function h(e,t,i,a=!0){if(!t)return;let o=(0,s.Kg)(t)?{value:t}:t;if((0,s.Kg)(o.value))return o.value===n.mR?x():c(e,o.value);if((0,s.cy)(o.value)){let t=(0,r.Vh)(o.value,i,a);if(!t)return;return h(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleColor(o);if(e)return e}}function p(e,t,i,a=!0){let n=h(e,t,i,a);return n?f(n):void 0}function v(e,t,i,a=!0){let n=u(e,t,i,a);return n?f(n):void 0}function f(e){let t=e.r/n.oi,i=e.g/n.oi,a=e.b/n.oi,s=Math.max(t,i,a),o=Math.min(t,i,a),r={h:n.L1,l:(s+o)*n.MX,s:n.yx};return s!==o&&(r.s=r.l<n.MX?(s-o)/(s+o):(s-o)/(n.gd-s-o),t===s?r.h=(i-a)/(s-o):i===s?r.h=n.gd+(a-t)/(s-o):r.h=n.gd*n.gd+(t-i)/(s-o)),r.l*=n.$_,r.s*=n.eu,r.h*=n.U0,r.h<n.L1&&(r.h+=n.vS),r.h>=n.vS&&(r.h-=n.vS),r}function g(e,t){return c(e,t)?.a}function m(e,t){return c(e,t)}function y(e){let t=(e.h%n.vS+n.vS)%n.vS,i=Math.max(n.yx,Math.min(n.eu,e.s)),a=Math.max(n.vd,Math.min(n.$_,e.l)),s=t/n.vS,o=i/n.eu,r=a/n.$_;if(i===n.yx){let e=Math.round(r*n.oi);return{r:e,g:e,b:e}}let l=(e,t,i)=>(i<0&&i++,i>1&&i--,i*n.zg<1)?e+(t-e)*n.zg*i:i*n.gd<1?t:i*n.Nu<+n.gd?e+(t-e)*(n.gd/n.Nu-i)*n.zg:e,d=r<n.MX?r*(n.aE+o):r+o-r*o,c=n.gd*r-d,u=n.BF/n.Nu;return{r:Math.round(Math.min(n.oi,n.oi*l(c,d,s+u))),g:Math.round(Math.min(n.oi,n.oi*l(c,d,s))),b:Math.round(Math.min(n.oi,n.oi*l(c,d,s-u)))}}function b(e){let t=y(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}function x(e){let t=e??n.Fl,i=n.oi+n.D_,s=()=>Math.floor((0,a.e4)(t,i));return{b:s(),g:s(),r:s()}}function w(e,t,i){let a=i??n.hv;return d(`rgb-${e.r.toFixed(2)}-${e.g.toFixed(2)}-${e.b.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,s;return t?z(e,i):(a=e,s=i,`rgba(${a.r.toString()}, ${a.g.toString()}, ${a.b.toString()}, ${(s??n.hv).toString()})`)})}function z(e,t){return`color(display-p3 ${(e.r/n.oi).toString()} ${(e.g/n.oi).toString()} ${(e.b/n.oi).toString()} / ${(t??n.hv).toString()})`}function M(e,t,i){let a=i??n.hv;return d(`hsl-${e.h.toFixed(2)}-${e.s.toFixed(2)}-${e.l.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,s,o,r;return t?(a=e,s=i,z(y(a),s)):(o=e,r=i,`hsla(${o.h.toString()}, ${o.s.toString()}%, ${o.l.toString()}%, ${(r??n.hv).toString()})`)})}function S(e,t,i,n){let s=e,o=t;return Object.hasOwn(s,"r")||(s=y(e)),Object.hasOwn(o,"r")||(o=y(t)),{b:(0,a.jh)(s.b,o.b,i,n),g:(0,a.jh)(s.g,o.g,i,n),r:(0,a.jh)(s.r,o.r,i,n)}}function O(e,t,i){if(i===n.mR)return x();if(i!==n.BW)return i;{let i=e.getFillColor()??e.getStrokeColor(),a=t?.getFillColor()??t?.getStrokeColor();if(i&&a&&t)return S(i,a,e.getRadius(),t.getRadius());{let e=i??a;if(e)return y(e)}}}function R(e,t,i,a){let o=(0,s.Kg)(t)?t:t.value;return o===n.mR?a?u(e,{value:o}):i?n.mR:n.BW:o===n.BW?n.BW:u(e,{value:o})}function P(e){return void 0!==e?{h:e.h.value,s:e.s.value,l:e.l.value}:void 0}function k(e,t,i){let a={h:{enable:!1,value:e.h},s:{enable:!1,value:e.s},l:{enable:!1,value:e.l}};return t&&(E(a.h,t.h,i),E(a.s,t.s,i),E(a.l,t.l,i)),a}function E(e,t,i){e.enable=t.enable,e.enable?(e.velocity=(0,a.VG)(t.speed)/n.a5*i,e.decay=n.WH-(0,a.VG)(t.decay),e.status=o.H.increasing,e.loops=n.hK,e.maxLoops=(0,a.VG)(t.count),e.time=n.tR,e.delayTime=(0,a.VG)(t.delay)*n.Xu,t.sync||(e.velocity*=(0,a.G0)(),e.value*=(0,a.G0)()),e.initialValue=e.value,e.offset=(0,a.DT)(t.offset)):e.velocity=n.jn}function T(e,t,i,n){if(!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0)||(e.time??=0,(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=n.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;let s=e.offset?(0,a.vE)(e.offset):0,r=(e.velocity??0)*n.factor+3.6*s,l=e.decay??1,d=(0,a.W9)(t),c=(0,a.Sg)(t);i&&e.status!==o.H.increasing?(e.value-=r,e.value<0&&(e.loops??=0,e.loops++,e.status=o.H.increasing)):(e.value+=r,e.value>d&&(e.loops??=0,e.loops++,i?e.status=o.H.decreasing:e.value-=d)),e.velocity&&1!==l&&(e.velocity*=l),e.value=(0,a.qE)(e.value,c,d)}function F(e,t){if(!e)return;let{h:i,s:a,l:s}=e,o={h:{min:n.L1,max:n.vS},s:{min:n.yx,max:n.eu},l:{min:n.vd,max:n.$_}};T(i,o.h,!1,t),T(a,o.s,!0,t),T(s,o.l,!0,t)}},1002(e,t,i){i.d(t,{B:()=>n,t:()=>s});let a={debug:console.debug,error:(e,t)=>{console.error(`tsParticles - Error - ${e}`,t)},info:console.info,log:console.log,verbose:console.log,warning:console.warn};function n(e){a.debug=e.debug,a.error=e.error,a.info=e.info,a.log=e.log,a.verbose=e.verbose,a.warning=e.warning}function s(){return a}},8346(e,t,i){i.d(t,{$m:()=>R,AD:()=>p,DT:()=>function e(t,i){if(t===i||void 0===i&&(0,o.Et)(t))return t;let a=x(t),n=w(t);return void 0!==i?{min:Math.min(a,i),max:Math.max(n,i)}:e(a,n)},G0:()=>u,JY:()=>O,M3:()=>D,Mh:()=>E,Nx:()=>F,OE:()=>c,OW:()=>P,Sg:()=>x,VG:()=>b,W9:()=>w,Yf:()=>M,e4:()=>h,eh:()=>k,i0:()=>v,jh:()=>m,l1:()=>T,pu:()=>S,px:()=>f,qE:()=>g,qM:()=>_,vE:()=>y,vr:()=>z});var a=i(3031),n=i(9692),s=i(9325),o=i(6112);let r=Math.PI/180,l=Math.random,d={nextFrame:e=>requestAnimationFrame(e),cancel:e=>{cancelAnimationFrame(e)}};function c(e=Math.random){l=e}function u(){return g(l(),0,1-Number.EPSILON)}function h(e,t){return u()*(t-e)+e}function p(e,t){d.nextFrame=t=>e(t),d.cancel=e=>{t(e)}}function v(e){return d.nextFrame(e)}function f(e){d.cancel(e)}function g(e,t,i){return Math.min(Math.max(e,t),i)}function m(e,t,i,a){return Math.floor((e*i+t*a)/(i+a))}function y(e){let t=w(e),i=x(e);return t===i&&(i=0),h(i,t)}function b(e){return(0,o.Et)(e)?e:y(e)}function x(e){return(0,o.Et)(e)?e:e.min}function w(e){return(0,o.Et)(e)?e:e.max}function z(e,t){let i=e.x-t.x,a=e.y-t.y;return{dx:i,dy:a,distance:Math.sqrt(i**2+a**2)}}function M(e,t){return z(e,t).distance}function S(e){return e*r}function O(e,t,i){if((0,o.Et)(e))return e*r;switch(e){case a.F.top:return-Math.PI*n.MX;case a.F.topRight:return-Math.PI*n.$G;case a.F.right:return n.Ie;case a.F.bottomRight:return Math.PI*n.$G;case a.F.bottom:return Math.PI*n.MX;case a.F.bottomLeft:return Math.PI*n.Rq;case a.F.left:return Math.PI;case a.F.topLeft:return-Math.PI*n.Rq;case a.F.inside:return Math.atan2(i.y-t.y,i.x-t.x);case a.F.outside:return Math.atan2(t.y-i.y,t.x-i.x);default:return u()*n.R1}}function R(e){let t=s.M.origin;return t.length=1,t.angle=e,t}function P(e,t,i,a){return s.M.create(e.x*(i-a)/(i+a)+t.x*n.gd*a/(i+a),e.y)}function k(e){return e.position?.x!==void 0&&void 0!==e.position.y?{x:e.position.x*e.size.width/n.a5,y:e.position.y*e.size.height/n.a5}:void 0}function E(e){return{x:(e.position?.x??u()*n.a5)*e.size.width/n.a5,y:(e.position?.y??u()*n.a5)*e.size.height/n.a5}}function T(e){let t={x:e.position?.x!==void 0?b(e.position.x):void 0,y:e.position?.y!==void 0?b(e.position.y):void 0};return E({size:e.size,position:t})}function F(e){let{position:t,size:i}=e;return{x:t?.x??u()*i.width,y:t?.y??u()*i.height}}function _(e){let t={x:e.position?.x!==void 0?b(e.position.x):void 0,y:e.position?.y!==void 0?b(e.position.y):void 0};return F({size:e.size,position:t})}function D(e){return e?e.endsWith("%")?parseFloat(e)/n.a5:parseFloat(e):1}},4998(e,t,i){i.d(t,{Z:()=>n,y:()=>s});var a=i(7891);function n(e,...t){for(let i of t)e.load(i)}function s(e,t,...i){let o=new a.U(e,t);return n(o,...i),o}},6112(e,t,i){function a(e){return"boolean"==typeof e}function n(e){return"string"==typeof e}function s(e){return"number"==typeof e}function o(e){return"function"==typeof e}function r(e){return"object"==typeof e&&null!==e}function l(e){return Array.isArray(e)}function d(e){return null==e}i.d(t,{Et:()=>s,Gv:()=>r,Kg:()=>n,Lm:()=>a,Tn:()=>o,cy:()=>l,kZ:()=>d})},160(e,t,i){let a;i.d(t,{AE:()=>O,BR:()=>y,E9:()=>D,HQ:()=>C,Kp:()=>G,O2:()=>S,Ot:()=>$,T5:()=>g,TA:()=>E,Tg:()=>R,Tj:()=>M,UC:()=>I,Vh:()=>z,Xs:()=>F,YC:()=>A,hJ:()=>V,hn:()=>x,lV:()=>m,n0:()=>w,pE:()=>P,q8:()=>f,tG:()=>b,td:()=>L,w3:()=>T,wJ:()=>k,zw:()=>function e(t,...i){for(let a of i)if(null!=a){if(!(0,r.Gv)(a)){t=a;continue}for(let i in Array.isArray(a)?Array.isArray(t)||(t=[]):(!(0,r.Gv)(t)||Array.isArray(t))&&(t={}),a){if("__proto__"===i)continue;let n=a[i],s=t;s[i]=(0,r.Gv)(n)&&Array.isArray(n)?n.map(t=>e(s[i],t)):e(s[i],n)}}return t}});var n,s=i(8346),o=i(9692),r=i(6112),l=i(3768),d=i(34),c=i(658),u=i(8405),h=i(5126),p=i(1655),v=i(9325);function f(){return"u">typeof matchMedia}function g(){return globalThis.document}function m(e){if(f())return matchMedia(e)}function y(e){if("u">typeof IntersectionObserver)return new IntersectionObserver(e)}function b(e){if("u">typeof MutationObserver)return new MutationObserver(e)}function x(e,t){return e===t||(0,r.cy)(t)&&t.includes(e)}function w(e){return Math.floor((0,s.G0)()*e.length)}function z(e,t,i=!0){return e[void 0!==t&&i?t%e.length:w(e)]}function M(e,t,i,a,n){return S(O(e,a??0),t,i,n)}function S(e,t,i,a){let n=!0;return a&&a!==u.v.bottom||(n=e.top<t.height+i.x),n&&(!a||a===u.v.left)&&(n=e.right>i.x),n&&(!a||a===u.v.right)&&(n=e.left<t.width+i.y),n&&(!a||a===u.v.top)&&(n=e.bottom>i.y),n}function O(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function R(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:v.M.create((0,s.VG)(e.options.bounce.horizontal.value),(0,s.VG)(e.options.bounce.vertical.value))}}function P(e,t){let{x:i,y:a}=e.velocity.sub(t.velocity),[n,o]=[e.position,t.position],{dx:r,dy:l}=(0,s.vr)(o,n);if(i*r+a*l<0)return;let d=-Math.atan2(l,r),c=e.mass,u=t.mass,h=e.velocity.rotate(d),p=t.velocity.rotate(d),v=(0,s.OW)(h,p,c,u),f=(0,s.OW)(p,h,c,u),g=v.rotate(-d),m=f.rotate(-d);e.velocity.x=g.x*e.factor.x,e.velocity.y=g.y*e.factor.y,t.velocity.x=m.x*t.factor.x,t.velocity.y=m.y*t.factor.y}function k(e,t){return(0,r.cy)(e)?e.map((e,i)=>t(e,i)):t(e,0)}function E(e,t,i){return(0,r.cy)(e)?z(e,t,i):e}function T(e,t){return(0,r.cy)(e)?e.find((e,i)=>t(e,i)):t(e,0)?e:void 0}function F(e,t){let i=e.value,a=e.animation,n={delayTime:(0,s.VG)(a.delay)*o.Xu,enable:a.enable,value:(0,s.VG)(e.value)*t,max:(0,s.W9)(i)*t,min:(0,s.Sg)(i)*t,loops:0,maxLoops:(0,s.VG)(a.count),time:0};if(a.enable){switch(n.decay=1-(0,s.VG)(a.decay),a.mode){case l.g.increase:n.status=d.H.increasing;break;case l.g.decrease:n.status=d.H.decreasing;break;case l.g.random:n.status=(0,s.G0)()>=o.MX?d.H.increasing:d.H.decreasing}let e=a.mode===l.g.auto;switch(a.startValue){case p.S.min:n.value=n.min,e&&(n.status=d.H.increasing);break;case p.S.max:n.value=n.max,e&&(n.status=d.H.decreasing);break;case p.S.random:default:n.value=(0,s.vE)(n),e&&(n.status=(0,s.G0)()>=o.MX?d.H.increasing:d.H.decreasing)}}return n.initialValue=n.value,n}function _(e,t){if(e.mode!==h.q.percent){let{mode:t,...i}=e;return i}return"x"in e?{x:e.x/o.a5*t.width,y:e.y/o.a5*t.height}:{width:e.width/o.a5*t.width,height:e.height/o.a5*t.height}}function D(e,t){return _(e,t)}function A(e,t){return _(e,t)}function I(e,t,i,a,n){if(e.destroyed||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;let o=(t.velocity??0)*n.factor,r=t.min,l=t.max,u=t.decay??1;if(t.time??=0,(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=n.value),!((t.delayTime??0)>0)||!(t.time<(t.delayTime??0))){switch(t.status){case d.H.increasing:t.value>=l?(i?t.status=d.H.decreasing:t.value-=l,t.loops??=0,t.loops++):t.value+=o;break;case d.H.decreasing:t.value<=r?(i?t.status=d.H.increasing:t.value+=l,t.loops??=0,t.loops++):t.value-=o}t.velocity&&1!==u&&(t.velocity*=u);var h=t.value;switch(a){case c.V.max:h>=l&&e.destroy();break;case c.V.min:h<=r&&e.destroy()}t.value=(0,s.qE)(t.value,r,l)}}function L(e){let t=g().createElement("div").style;for(let i in e){let a=e[i];if(!Object.hasOwn(e,i)||(0,r.kZ)(a))continue;let n=e.getPropertyValue?.(a);if(!n)continue;let s=e.getPropertyPriority?.(a);s?t.setProperty(a,n,s):t.setProperty(a,n)}return t}let V=(n=function(e){let t=g().createElement("div").style,i={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:e.toString(10),"z-index":e.toString(10),top:"0",left:"0"};for(let e in i){let a=i[e];void 0!==a&&t.setProperty(e,a)}return t},a=new Map,(...e)=>{let t=JSON.stringify(e);if(a.has(t))return a.get(t);let i=n(...e);return a.set(t,i),i});function G(e,t,i,a,n){if(a){let a={passive:!0};(0,r.Lm)(n)?a.capture=n:void 0!==n&&(a=n),e.addEventListener(t,i,a)}else e.removeEventListener(t,i,n)}async function C(e,t,i,a=!1){let n=t.get(e);return(!n||a)&&(n=await Promise.all([...i.values()].map(t=>t(e))),t.set(e,n)),n}async function $(e,t,i,a=!1){let n=t.get(e);return(!n||a)&&(n=new Map(await Promise.all([...i.entries()].map(([t,i])=>i(e).then(e=>[t,e])))),t.set(e,n)),n}},5954(e,t,i){i.d(t,{HKZ:()=>P.H,A9e:()=>_.A,gmr:()=>M.g,pK_:()=>D.p,H_P:()=>F.H,Jmi:()=>el.Jm,VS$:()=>A.V,dgY:()=>b.dg,jlt:()=>b.jl,evc:()=>I.e,VKE:()=>k.V,mgy:()=>l,Bx4:()=>h.B,mcU:()=>L.m,hqM:()=>r,i74:()=>V.i,dtg:()=>S.d,yUV:()=>B.y,hzL:()=>N.h,RE3:()=>K.R,Zgv:()=>j.Z,FWc:()=>w.F,y1u:()=>W.y,vU7:()=>Y.v,Y4E:()=>et.Y,IhC:()=>ei.I,JYR:()=>G.J,Oit:()=>C.O,Yzx:()=>O.Y,v5k:()=>z.v,j$q:()=>U.j,x_I:()=>E.x,wvn:()=>$.w,F5W:()=>q.F,M1g:()=>ee.M,NeW:()=>X.N,Ad4:()=>Q.A,UOj:()=>Z.U,qiC:()=>R.q,bRX:()=>y.b,Q4c:()=>D.Q,AIw:()=>el.AI,M_G:()=>b.M_,z0z:()=>er.z,pTR:()=>o,ypk:()=>ea.y,or0:()=>en.o,qvJ:()=>es.q,tKH:()=>J.t,SKz:()=>T.S,tcj:()=>H.t,PVU:()=>el.PV,Miz:()=>x.M,pGL:()=>x.p,Pyx:()=>eo.P,yxh:()=>ed.yx,i0Z:()=>v.i0,O2_:()=>c.O2,n02:()=>c.n0,NxB:()=>v.Nx,qMV:()=>v.qM,ehY:()=>v.eh,MhH:()=>v.Mh,l1q:()=>v.l1,AEc:()=>c.AE,pxm:()=>v.px,Nxk:()=>d.Nx,RFH:()=>d.RF,pEn:()=>c.pE,Tgl:()=>c.Tg,qE8:()=>v.qE,IUd:()=>ed.IU,FSi:()=>d.FS,td3:()=>c.td,OWw:()=>v.OW,EYT:()=>ec.EY,mKQ:()=>ec.mK,qe:()=>ec.qe,nqC:()=>d.nq,WH8:()=>d.WH,zwS:()=>c.zw,aZx:()=>d.aZ,tAJ:()=>d.tA,lA:()=>d.lA,z$P:()=>d.z$,i8E:()=>d.i8,hKc:()=>d.hK,hvP:()=>d.hv,M1H:()=>d.M1,$xb:()=>d.$x,ZpR:()=>d.Zp,xd3:()=>d.xd,rqX:()=>d.rq,Fli:()=>d.Fl,tRb:()=>d.tR,UgP:()=>d.Ug,zss:()=>d.zs,jnW:()=>d.jn,puj:()=>v.pu,LDU:()=>d.LD,gdl:()=>d.gd,R1e:()=>d.R1,kac:()=>ed.k,z5n:()=>ed.z5,p0m:()=>ed.p0,Wbn:()=>ed.Wb,KG7:()=>ed.KG,gF3:()=>ed.gF,VGT:()=>ed.VG,Iex:()=>d.Ie,wJ2:()=>c.wJ,w3Z:()=>c.w3,eb4:()=>d.eb,X$G:()=>d.X$,cei:()=>d.ce,YfF:()=>v.Yf,vrU:()=>v.vr,hJS:()=>c.hJ,pzy:()=>ec.pz,O_i:()=>ec.O_,OtU:()=>c.Ot,HQK:()=>c.HQ,_hh:()=>ec._h,PGG:()=>ec.PG,tZQ:()=>p.t,$mf:()=>v.$m,JYE:()=>v.JY,E90:()=>c.E9,G0i:()=>v.G0,e4g:()=>v.e4,OHq:()=>ec.OH,W9e:()=>v.W9,Sgh:()=>v.Sg,VGA:()=>v.VG,YCE:()=>c.YC,LCf:()=>ec.LC,xxz:()=>ec.xx,vSh:()=>d.vS,L1V:()=>d.L1,U0s:()=>d.U0,MXx:()=>d.MX,q8J:()=>c.q8,YLU:()=>ec.YL,ayx:()=>ec.ay,D_O:()=>d.D_,XsS:()=>c.Xs,hBr:()=>d.hB,cyL:()=>eh.cy,Lmq:()=>eh.Lm,Tnt:()=>eh.Tn,hnD:()=>c.hn,kZJ:()=>eh.kZ,EtT:()=>eh.Et,Gvm:()=>eh.Gv,Tj8:()=>c.Tj,KgX:()=>eh.Kg,Vh1:()=>c.Vh,TA3:()=>c.TA,iUN:()=>d.iU,$_c:()=>d.$_,vd6:()=>d.vd,K3:()=>d.K3,PZY:()=>d.PZ,ZGK:()=>eu.Z,yVN:()=>eu.y,$v4:()=>d.$v,KpY:()=>c.Kp,tdJ:()=>d.td,BWm:()=>d.BW,XuV:()=>d.Xu,TLE:()=>d.TL,wMU:()=>d.wM,DNI:()=>d.DN,z94:()=>d.z9,ou7:()=>d.ou,N5f:()=>d.N5,Dvh:()=>d.Dv,GWL:()=>d.GW,X_1:()=>d.X_,$OP:()=>d.$O,w20:()=>d.w2,jhA:()=>v.jh,dvp:()=>d.dv,xHs:()=>d.xH,boI:()=>d.bo,SnF:()=>ed.Sn,MdX:()=>ed.Md,M3Y:()=>v.M3,a56:()=>d.a5,BFN:()=>d.BF,unK:()=>d.un,Kw2:()=>d.Kw,$GP:()=>d.$G,mRf:()=>d.mR,vEz:()=>v.vE,R5R:()=>ec.R5,BN0:()=>ec.BN,JC0:()=>d.JC,vFD:()=>d.vF,NFi:()=>d.NF,oiR:()=>d.oi,K6u:()=>ec.K6,euA:()=>d.eu,yxQ:()=>d.yx,aEA:()=>d.aE,T5G:()=>c.T5,BRq:()=>c.BR,lVH:()=>c.lV,tGT:()=>c.tG,ADE:()=>v.AD,Bro:()=>p.B,OEu:()=>v.OE,DT4:()=>v.DT,zgn:()=>d.zg,Rhv:()=>d.Rh,dmB:()=>d.dm,zIs:()=>ec.zI,egF:()=>ec.eg,Pgy:()=>d.Pg,RqE:()=>d.Rq,pHD:()=>d.pH,KZx:()=>d.KZ,NuQ:()=>d.Nu,Eow:()=>d.Eo,$k3:()=>ep,UC0:()=>c.UC,JvX:()=>ec.Jv,Kog:()=>ec.Ko,nKi:()=>d.nK,RVs:()=>d.RV});var a,n,s,o,r,l,d=i(9692),c=i(160);class u{_listeners;constructor(){this._listeners=new Map}addEventListener(e,t){this.removeEventListener(e,t);let i=this._listeners.get(e);i||(i=[],this._listeners.set(e,i)),i.push(t)}dispatchEvent(e,t){let i=this._listeners.get(e);i?.forEach(e=>{e(t)})}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,t){let i=this._listeners.get(e);if(!i)return;let a=i.length,n=i.indexOf(t);n<d.z9||(a===d.LD?this._listeners.delete(e):i.splice(n,d.LD))}}var h=i(4008),p=i(1002),v=i(8346);let f="100%";async function g(e){let t=(0,c.TA)(e.url,e.index);if(!t)return e.fallback;let i=await fetch(t);return i.ok?await i.json():((0,p.t)().error(`${i.status.toString()} while retrieving config file`),e.fallback)}class m{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;initializers={effects:new Map,movers:new Map,pathGenerators:new Map,shapes:new Map,updaters:new Map};movers=new Map;pathGenerators=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;_allLoadersSet=new Set;_configs=new Map;_domArray=[];_eventDispatcher=new u;_executedSet=new Set;_initialized=!1;_isRunningLoaders=!1;_loadPromises=new Set;get configs(){let e={};for(let[t,i]of this._configs)e[t]=i;return e}get items(){return this._domArray}get version(){return"4.0.0-alpha.21"}addColorManager(e,t){this.colorManagers.set(e,t)}addConfig(e){let t=e.key??e.name??"default";this._configs.set(t,e),this._eventDispatcher.dispatchEvent(h.B.configAdded,{data:{name:t,config:e}})}addEasing(e,t){this.easingFunctions.get(e)||this.easingFunctions.set(e,t)}addEffect(e,t){this.initializers.effects.set(e,t)}addEventListener(e,t){this._eventDispatcher.addEventListener(e,t)}addMover(e,t){this.initializers.movers.set(e,t)}addParticleUpdater(e,t){this.initializers.updaters.set(e,t)}addPathGenerator(e,t){this.initializers.pathGenerators.set(e,t)}addPlugin(e){this.getPlugin(e.id)||this.plugins.push(e)}addPreset(e,t,i=!1){(i||!this.getPreset(e))&&this.presets.set(e,t)}addShape(e,t){for(let i of e)this.initializers.shapes.set(i,t)}checkVersion(e){if(this.version!==e)throw Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${e}`)}clearPlugins(e){this.effectDrawers.delete(e),this.movers.delete(e),this.shapeDrawers.delete(e),this.updaters.delete(e)}dispatchEvent(e,t){this._eventDispatcher.dispatchEvent(e,t)}getEasing(e){return this.easingFunctions.get(e)??(e=>e)}getEffectDrawers(e,t=!1){return(0,c.Ot)(e,this.effectDrawers,this.initializers.effects,t)}getMovers(e,t=!1){return(0,c.HQ)(e,this.movers,this.initializers.movers,t)}getPathGenerators(e,t=!1){return(0,c.Ot)(e,this.pathGenerators,this.initializers.pathGenerators,t)}getPlugin(e){return this.plugins.find(t=>t.id===e)}getPreset(e){return this.presets.get(e)}async getShapeDrawers(e,t=!1){return(0,c.Ot)(e,this.shapeDrawers,this.initializers.shapes,t)}async getUpdaters(e,t=!1){return(0,c.HQ)(e,this.updaters,this.initializers.updaters,t)}async init(){if(!this._initialized&&!this._isRunningLoaders){this._isRunningLoaders=!0,this._executedSet=new Set,this._allLoadersSet=new Set(this._loadPromises);try{for(let e of this._allLoadersSet)await this._runLoader(e,this._executedSet,this._allLoadersSet)}finally{this._loadPromises.clear(),this._isRunningLoaders=!1,this._initialized=!0}}}item(e){let{items:t}=this,i=t[e];return i?.destroyed?void t.splice(e,d.JC):i}async load(e){var t;let a,n;await this.init();let{Container:s}=await i.e(900).then(i.bind(i,6900)),o=e.id??e.element?.id??`tsparticles${Math.floor((0,v.G0)()*d.$v).toString()}`,{index:r,url:l}=e,u=l?await g({fallback:e.options,url:l,index:r}):e.options,h=(0,c.TA)(u,r),{items:p}=this,m=p.findIndex(e=>e.id.description===o),y=new s(this,o,h);if(m>=d.PZ){let e=this.item(m),t=e?d.xH:d.dv;e&&!e.destroyed&&e.destroy(!1),p.splice(m,t,y)}else p.push(y);let b=(e=>{let t,i=(0,c.T5)();if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===d.RF)t=e,t.dataset[d.eb]??=d.X$;else{let a=e.getElementsByTagName(d.RF)[d.Nx];a?(t=a).dataset[d.eb]=d.X$:((t=i.createElement(d.RF)).dataset[d.eb]=d.ce,e.appendChild(t))}return t.style.width||=f,t.style.height||=f,t})((t=e.element,a=(0,c.T5)(),(n=t??a.getElementById(o))||((n=a.createElement("div")).id=o,n.dataset[d.eb]=d.ce,a.body.append(n)),n));return y.canvas.loadCanvas(b),await y.start(),y}loadParticlesOptions(e,t,...i){let a=this.updaters.get(e);a&&a.forEach(e=>e.loadOptions?.(t,...i))}async refresh(e=!0){e&&await Promise.all(this.items.map(e=>e.refresh()))}async register(...e){if(this._initialized)throw Error("Register plugins can only be done before calling tsParticles.load()");for(let t of e)this._isRunningLoaders?await this._runLoader(t,this._executedSet,this._allLoadersSet):this._loadPromises.add(t)}removeEventListener(e,t){this._eventDispatcher.removeEventListener(e,t)}async _runLoader(e,t,i){t.has(e)||(t.add(e),i.add(e),await e(this))}}var y=i(5775),b=i(2981),x=i(9325),w=i(3031);(a=o||(o={})).clockwise="clockwise",a.counterClockwise="counter-clockwise",a.random="random";var z=i(8405),M=i(3768),S=i(1817),O=i(4734),R=i(5126),P=i(7196),k=i(658);(n=r||(r={})).linear="linear",n.radial="radial",n.random="random";var E=i(7542),T=i(1655);(s=l||(l={})).easeInBack="ease-in-back",s.easeInBounce="ease-in-bounce",s.easeInCirc="ease-in-circ",s.easeInCubic="ease-in-cubic",s.easeInElastic="ease-in-elastic",s.easeInExpo="ease-in-expo",s.easeInGaussian="ease-in-gaussian",s.easeInLinear="ease-in-linear",s.easeInQuad="ease-in-quad",s.easeInQuart="ease-in-quart",s.easeInQuint="ease-in-quint",s.easeInSigmoid="ease-in-sigmoid",s.easeInSine="ease-in-sine",s.easeInSmoothstep="ease-in-smoothstep",s.easeOutBack="ease-out-back",s.easeOutBounce="ease-out-bounce",s.easeOutCirc="ease-out-circ",s.easeOutCubic="ease-out-cubic",s.easeOutElastic="ease-out-elastic",s.easeOutExpo="ease-out-expo",s.easeOutGaussian="ease-out-gaussian",s.easeOutLinear="ease-out-linear",s.easeOutQuad="ease-out-quad",s.easeOutQuart="ease-out-quart",s.easeOutQuint="ease-out-quint",s.easeOutSigmoid="ease-out-sigmoid",s.easeOutSine="ease-out-sine",s.easeOutSmoothstep="ease-out-smoothstep",s.easeInOutBack="ease-in-out-back",s.easeInOutBounce="ease-in-out-bounce",s.easeInOutCirc="ease-in-out-circ",s.easeInOutCubic="ease-in-out-cubic",s.easeInOutElastic="ease-in-out-elastic",s.easeInOutExpo="ease-in-out-expo",s.easeInOutGaussian="ease-in-out-gaussian",s.easeInOutLinear="ease-in-out-linear",s.easeInOutQuad="ease-in-out-quad",s.easeInOutQuart="ease-in-out-quart",s.easeInOutQuint="ease-in-out-quint",s.easeInOutSigmoid="ease-in-out-sigmoid",s.easeInOutSine="ease-in-out-sine",s.easeInOutSmoothstep="ease-in-out-smoothstep";var F=i(34),_=i(8278),D=i(9529),A=i(9336),I=i(1014),L=i(4266),V=i(3226),G=i(4163),C=i(7544),$=i(2189),q=i(1558),Z=i(7891),H=i(2893),K=i(4181),B=i(4226),N=i(8195),j=i(3495),W=i(322),U=i(951),Y=i(2325),J=i(3915),X=i(785),Q=i(1862),ee=i(5610),et=i(366),ei=i(486),ea=i(8634),en=i(6906),es=i(3618),eo=i(7256),er=i(6829),el=i(6571),ed=i(3756),ec=i(1101),eu=i(4998),eh=i(6112);let ep=new m;globalThis.tsParticles=ep}},n={};function s(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return a[e](i,i.exports,s),i.exports}s.m=a,s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,i)=>(s.f[i](e,t),t),[])),s.u=e=>""+e+".min.js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},s.l=(e,t,i,a)=>{if(o[e])return void o[e].push(t);if(void 0!==i)for(var n,r,l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var c=l[d];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")=="@tsparticles/fireworks:"+i){n=c;break}}n||(r=!0,(n=document.createElement("script")).charset="utf-8",s.nc&&n.setAttribute("nonce",s.nc),n.setAttribute("data-webpack","@tsparticles/fireworks:"+i),n.src=e),o[e]=[t];var u=(t,i)=>{n.onerror=n.onload=null,clearTimeout(h);var a=o[e];if(delete o[e],n.parentNode&&n.parentNode.removeChild(n),a&&a.forEach(e=>e(i)),t)return t(i)},h=setTimeout(u.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=u.bind(null,n.onerror),n.onload=u.bind(null,n.onload),r&&document.head.appendChild(n)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.g.importScripts&&(r=s.g.location+"");var o,r,l=s.g.document;if(!r&&l&&(l.currentScript&&"SCRIPT"===l.currentScript.tagName.toUpperCase()&&(r=l.currentScript.src),!r)){var d=l.getElementsByTagName("script");if(d.length)for(var c=d.length-1;c>-1&&(!r||!/^http(s?):/.test(r));)r=d[c--].src}if(!r)throw Error("Automatic publicPath is not supported in this browser");s.p=r=r.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e={827:0},s.f.j=(t,i)=>{var a=s.o(e,t)?e[t]:void 0;if(0!==a)if(a)i.push(a[2]);else{var n=new Promise((i,n)=>a=e[t]=[i,n]);i.push(a[2]=n);var o=s.p+s.u(t),r=Error();s.l(o,i=>{if(s.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var n=i&&("load"===i.type?"missing":i.type),o=i&&i.target&&i.target.src;r.message="Loading chunk "+t+` failed.
|
|
2
|
-
(`+n+": "+o+")",r.name="ChunkLoadError",r.type=n,r.request=o,a[1](r)}},"chunk-"+t,t)}},t=(t,i)=>{var a,n,[o,r,l]=i,d=0;if(o.some(t=>0!==e[t])){for(a in r)s.o(r,a)&&(s.m[a]=r[a]);l&&l(s)}for(t&&t(i);d<o.length;d++)n=o[d],s.o(e,n)&&e[n]&&e[n][0](),e[n]=0},(i=this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i));var u={};s.r(u),s.d(u,{AlterType:()=>h.HKZ,AnimatableColor:()=>h.A9e,AnimationMode:()=>h.gmr,AnimationOptions:()=>h.pK_,AnimationStatus:()=>h.H_P,AnimationValueWithRandom:()=>h.Jmi,Background:()=>h.VS$,BaseRange:()=>h.dgY,Circle:()=>h.jlt,ColorAnimation:()=>h.evc,DestroyType:()=>h.VKE,EasingType:()=>h.mgy,EventType:()=>h.Bx4,FullScreen:()=>h.mcU,GradientType:()=>h.hqM,HslAnimation:()=>h.i74,LimitMode:()=>h.dtg,Move:()=>h.yUV,MoveAngle:()=>h.hzL,MoveAttract:()=>h.RE3,MoveCenter:()=>h.Zgv,MoveDirection:()=>h.FWc,MoveGravity:()=>h.y1u,MovePath:()=>h.vU7,Opacity:()=>h.Y4E,OpacityAnimation:()=>h.IhC,Options:()=>h.JYR,OptionsColor:()=>h.Oit,OutMode:()=>h.Yzx,OutModeDirection:()=>h.v5k,OutModes:()=>h.j$q,ParticleOutType:()=>h.x_I,ParticlesBounce:()=>h.wvn,ParticlesBounceFactor:()=>h.F5W,ParticlesDensity:()=>h.M1g,ParticlesNumber:()=>h.NeW,ParticlesNumberLimit:()=>h.Ad4,ParticlesOptions:()=>h.UOj,PixelMode:()=>h.qiC,Point:()=>h.bRX,RangedAnimationOptions:()=>h.Q4c,RangedAnimationValueWithRandom:()=>h.AIw,Rectangle:()=>h.M_G,ResizeEvent:()=>h.z0z,RotateDirection:()=>h.pTR,Shape:()=>h.ypk,Size:()=>h.or0,SizeAnimation:()=>h.qvJ,Spin:()=>h.tKH,StartValueType:()=>h.SKz,Stroke:()=>h.tcj,ValueWithRandom:()=>h.PVU,Vector:()=>h.Miz,Vector3d:()=>h.pGL,ZIndex:()=>h.Pyx,alterHsl:()=>h.yxh,animate:()=>h.i0Z,areBoundsInside:()=>h.O2_,arrayRandomIndex:()=>h.n02,calcExactPositionOrRandomFromSize:()=>h.NxB,calcExactPositionOrRandomFromSizeRanged:()=>h.qMV,calcPositionFromSize:()=>h.ehY,calcPositionOrRandomFromSize:()=>h.MhH,calcPositionOrRandomFromSizeRanged:()=>h.l1q,calculateBounds:()=>h.AEc,cancelAnimation:()=>h.pxm,canvasFirstIndex:()=>h.Nxk,canvasTag:()=>h.RFH,circleBounce:()=>h.pEn,circleBounceDataFromParticle:()=>h.Tgl,clamp:()=>h.qE8,clear:()=>h.IUd,clickRadius:()=>h.FSi,cloneStyle:()=>h.td3,collisionVelocity:()=>h.OWw,colorMix:()=>h.EYT,colorToHsl:()=>h.mKQ,colorToRgb:()=>h.qe,countOffset:()=>h.nqC,decayOffset:()=>h.WH8,deepExtend:()=>h.zwS,defaultAlpha:()=>h.aZx,defaultAngle:()=>h.tAJ,defaultDensityFactor:()=>h.lA,defaultFps:()=>h.z$P,defaultFpsLimit:()=>h.i8E,defaultLoops:()=>h.hKc,defaultOpacity:()=>h.hvP,defaultRadius:()=>h.M1H,defaultRatio:()=>h.$xb,defaultReduceFactor:()=>h.ZpR,defaultRemoveQuantity:()=>h.xd3,defaultRetryCount:()=>h.rqX,defaultRgbMin:()=>h.Fli,defaultTime:()=>h.tRb,defaultTransform:()=>h.UgP,defaultTransformValue:()=>h.zss,defaultVelocity:()=>h.jnW,degToRad:()=>h.puj,deleteCount:()=>h.LDU,double:()=>h.gdl,doublePI:()=>h.R1e,drawAfterEffect:()=>h.kac,drawBeforeEffect:()=>h.z5n,drawParticle:()=>h.p0m,drawParticlePlugin:()=>h.Wbn,drawShape:()=>h.KG7,drawShapeAfterDraw:()=>h.gF3,drawShapeBeforeDraw:()=>h.VGT,empty:()=>h.Iex,executeOnSingleOrMultiple:()=>h.wJ2,findItemFromSingleOrMultiple:()=>h.w3Z,fireworks:()=>x,generatedAttribute:()=>h.eb4,generatedFalse:()=>h.X$G,generatedTrue:()=>h.cei,getDistance:()=>h.YfF,getDistances:()=>h.vrU,getFullScreenStyle:()=>h.hJS,getHslAnimationFromHsl:()=>h.pzy,getHslFromAnimation:()=>h.O_i,getItemMapFromInitializer:()=>h.OtU,getItemsFromInitializer:()=>h.HQK,getLinkColor:()=>h._hh,getLinkRandomColor:()=>h.PGG,getLogger:()=>h.tZQ,getParticleBaseVelocity:()=>h.$mf,getParticleDirectionAngle:()=>h.JYE,getPosition:()=>h.E90,getRandom:()=>h.G0i,getRandomInRange:()=>h.e4g,getRandomRgbColor:()=>h.OHq,getRangeMax:()=>h.W9e,getRangeMin:()=>h.Sgh,getRangeValue:()=>h.VGA,getSize:()=>h.YCE,getStyleFromHsl:()=>h.LCf,getStyleFromRgb:()=>h.xxz,hMax:()=>h.vSh,hMin:()=>h.L1V,hPhase:()=>h.U0s,half:()=>h.MXx,hasMatchMedia:()=>h.q8J,hslToRgb:()=>h.YLU,hslaToRgba:()=>h.ayx,identity:()=>h.D_O,initParticleNumericAnimationValue:()=>h.XsS,inverseFactorNumerator:()=>h.hBr,isArray:()=>h.cyL,isBoolean:()=>h.Lmq,isFunction:()=>h.Tnt,isInArray:()=>h.hnD,isNull:()=>h.kZJ,isNumber:()=>h.EtT,isObject:()=>h.Gvm,isPointInside:()=>h.Tj8,isString:()=>h.KgX,itemFromArray:()=>h.Vh1,itemFromSingleOrMultiple:()=>h.TA3,lFactor:()=>h.iUN,lMax:()=>h.$_c,lMin:()=>h.vd6,lengthOffset:()=>h.K3,loadMinIndex:()=>h.PZY,loadOptions:()=>h.ZGK,loadParticlesOptions:()=>h.yVN,loadRandomFactor:()=>h.$v4,manageListener:()=>h.KpY,manualDefaultPosition:()=>h.tdJ,midColorValue:()=>h.BWm,millisecondsToSeconds:()=>h.XuV,minCoordinate:()=>h.TLE,minCount:()=>h.wMU,minFpsLimit:()=>h.DNI,minIndex:()=>h.z94,minLimit:()=>h.ou7,minRetries:()=>h.N5f,minStrokeWidth:()=>h.Dvh,minVelocity:()=>h.GWL,minZ:()=>h.X_1,minimumLength:()=>h.$OP,minimumSize:()=>h.w20,mix:()=>h.jhA,none:()=>h.dvp,one:()=>h.xHs,originPoint:()=>h.boI,paintBase:()=>h.SnF,paintImage:()=>h.MdX,parseAlpha:()=>h.M3Y,percentDenominator:()=>h.a56,phaseNumerator:()=>h.BFN,posOffset:()=>h.unK,qTreeCapacity:()=>h.Kw2,quarter:()=>h.$GP,randomColorValue:()=>h.mRf,randomInRangeValue:()=>h.vEz,rangeColorToHsl:()=>h.R5R,rangeColorToRgb:()=>h.BN0,removeDeleteCount:()=>h.JC0,removeMinIndex:()=>h.vFD,resizeEvent:()=>h.NFi,rgbMax:()=>h.oiR,rgbToHsl:()=>h.K6u,sMax:()=>h.euA,sMin:()=>h.yxQ,sNormalizedOffset:()=>h.aEA,safeDocument:()=>h.T5G,safeIntersectionObserver:()=>h.BRq,safeMatchMedia:()=>h.lVH,safeMutationObserver:()=>h.tGT,setAnimationFunctions:()=>h.ADE,setLogger:()=>h.Bro,setRandom:()=>h.OEu,setRangeValue:()=>h.DT4,sextuple:()=>h.zgn,sizeFactor:()=>h.Rhv,squareExp:()=>h.dmB,stringToAlpha:()=>h.zIs,stringToRgb:()=>h.egF,subdivideCount:()=>h.Pgy,threeQuarter:()=>h.RqE,touchDelay:()=>h.pHD,touchEndLengthOffset:()=>h.KZx,triple:()=>h.NuQ,tryCountIncrement:()=>h.Eow,tsParticles:()=>h.$k3,updateAnimation:()=>h.UC0,updateColor:()=>h.JvX,updateColorValue:()=>h.Kog,visibilityChangeEvent:()=>h.nKi,zIndexFactorOffset:()=>h.RVs});var h=s(5954);class p{background;brightness;colors;gravity;minHeight;rate;saturation;sounds;speed;splitCount;constructor(){this.background="none",this.brightness={min:-30,max:30},this.colors=["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93"],this.gravity=5,this.minHeight={min:10,max:30},this.rate=10,this.saturation={min:-30,max:30},this.sounds=!0,this.speed={min:5,max:15},this.splitCount={min:75,max:150}}load(e){(0,h.kZJ)(e)||(void 0!==e.background&&(this.background=e.background),void 0!==e.colors&&((0,h.cyL)(e.colors)?this.colors=[...e.colors]:this.colors=e.colors),void 0!==e.brightness&&(this.brightness=(0,h.DT4)(e.brightness)),void 0!==e.gravity&&(this.gravity=(0,h.DT4)(e.gravity)),void 0!==e.minHeight&&(this.minHeight=(0,h.DT4)(e.minHeight)),void 0!==e.rate&&(this.rate=(0,h.DT4)(e.rate)),void 0!==e.saturation&&(this.saturation=(0,h.DT4)(e.saturation)),void 0!==e.sounds&&(this.sounds=e.sounds),void 0!==e.speed&&(this.speed=(0,h.DT4)(e.speed)),void 0!==e.splitCount&&(this.splitCount=(0,h.DT4)(e.splitCount)))}}let v=!1,f=!1,g=e=>{let t=e.data;return"circle"===t.particle.shape&&!!t.particle.splitCount&&t.particle.splitCount<2};class m{_container;constructor(e){this._container=e}pause(){this._container.pause()}play(){this._container.play()}stop(){this._container.stop()}}async function y(e){if(!v){if(f)return new Promise(e=>{let t=setInterval(()=>{v&&(clearInterval(t),e())},100)});f=!0,e.checkVersion("4.0.0-alpha.
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var a in i)("object"==typeof exports?exports:e)[a]=i[a]}}(this,()=>(()=>{"use strict";var e,t,i,a={9692(e,t,i){i.d(t,{$G:()=>L,$O:()=>q,$_:()=>F,$v:()=>X,$x:()=>S,BF:()=>eR,BW:()=>h,DN:()=>Y,D_:()=>eb,Dv:()=>ex,Eo:()=>ea,FS:()=>K,Fl:()=>eP,GW:()=>G,Ie:()=>I,JC:()=>j,K3:()=>ep,KZ:()=>B,Kw:()=>z,L1:()=>_,LD:()=>ef,M1:()=>eo,MX:()=>r,N5:()=>en,NF:()=>n,Nu:()=>eM,Nx:()=>J,PZ:()=>Q,Pg:()=>R,R1:()=>v,RF:()=>b,RV:()=>Z,Rh:()=>el,Rq:()=>V,TL:()=>N,U0:()=>A,Ug:()=>c,WH:()=>ei,X$:()=>y,X_:()=>es,Xu:()=>l,Zp:()=>O,a5:()=>o,aE:()=>eO,aZ:()=>g,bo:()=>d,ce:()=>m,dm:()=>w,dv:()=>et,eb:()=>a,eu:()=>T,gd:()=>p,hB:()=>P,hK:()=>eE,hv:()=>H,i8:()=>U,iU:()=>ew,jn:()=>ek,lA:()=>ev,mR:()=>u,nK:()=>s,nq:()=>ec,oi:()=>k,ou:()=>ed,pH:()=>eg,rq:()=>x,tA:()=>ey,tR:()=>eT,td:()=>em,un:()=>er,vF:()=>W,vS:()=>E,vd:()=>ez,w2:()=>$,wM:()=>eu,xH:()=>ee,xd:()=>M,yx:()=>D,z$:()=>f,z9:()=>eh,zg:()=>eS,zs:()=>C});let a="generated",n="resize",s="visibilitychange",o=100,r=.5,l=1e3,d={x:0,y:0,z:0},c={a:1,b:0,c:0,d:1},u="random",h="mid",p=2,v=2*Math.PI,f=60,g=1,m="true",y="false",b="canvas",x=0,w=2,z=4,M=1,S=1,O=1,R=4,P=1,k=255,E=360,T=100,F=100,_=0,D=0,A=60,I=0,L=.25,V=.75,G=0,C=1,$=0,q=0,Z=1,H=1,K=1,B=1,N=0,j=1,W=0,U=120,Y=0,J=0,X=1e4,Q=0,ee=1,et=0,ei=1,ea=1,en=0,es=0,eo=0,er=-.25,el=1.5,ed=0,ec=1,eu=0,eh=0,ep=1,ev=1,ef=1,eg=500,em=50,ey=0,eb=1,ex=0,ew=1,ez=0,eM=3,eS=6,eO=1,eR=1,eP=0,ek=0,eE=0,eT=0},5775(e,t,i){i.d(t,{b:()=>a});class a{particle;position;constructor(e,t){this.position=e,this.particle=t}}},2981(e,t,i){i.d(t,{dg:()=>r,jl:()=>l,M_:()=>d}),(a=n||(n={})).circle="circle",a.rectangle="rectangle";var a,n,s=i(8346),o=i(9692);class r{position;type;constructor(e,t,i){this.position={x:e,y:t},this.type=i}}class l extends r{radius;constructor(e,t,i){super(e,t,n.circle),this.radius=i}contains(e){return(0,s.Yf)(e,this.position)<=this.radius}intersects(e){let t=this.position,i=e.position,a={x:Math.abs(i.x-t.x),y:Math.abs(i.y-t.y)},s=this.radius;if(e instanceof l||e.type===n.circle)return s+e.radius>Math.sqrt(a.x**o.dm+a.y**o.dm);if(e instanceof d||e.type===n.rectangle){let{width:t,height:i}=e.size;return Math.pow(a.x-t,o.dm)+Math.pow(a.y-i,o.dm)<=s**o.dm||a.x<=s+t&&a.y<=s+i||a.x<=t||a.y<=i}return!1}}class d extends r{size;constructor(e,t,i,a){super(e,t,n.rectangle),this.size={height:a,width:i}}contains(e){let t=this.size.width,i=this.size.height,a=this.position;return e.x>=a.x&&e.x<=a.x+t&&e.y>=a.y&&e.y<=a.y+i}intersects(e){if(e instanceof l)return e.intersects(this);let t=this.size.width,i=this.size.height,a=this.position,n=e.position,s=e instanceof d?e.size:{width:0,height:0},o=s.width,r=s.height;return n.x<a.x+t&&n.x+o>a.x&&n.y<a.y+i&&n.y+r>a.y}}},9325(e,t,i){i.d(t,{M:()=>s,p:()=>n});var a=i(9692);class n{x;y;z;constructor(e=a.bo.x,t=a.bo.y,i=a.bo.z){this.x=e,this.y=t,this.z=i}static get origin(){return n.create(a.bo.x,a.bo.y,a.bo.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this._updateFromAngle(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this._updateFromAngle(this.angle,e)}static clone(e){return n.create(e.x,e.y,e.z)}static create(e,t,i){return"number"==typeof e?new n(e,t??a.bo.y,i??a.bo.z):new n(e.x,e.y,Object.hasOwn(e,"z")?e.z:a.bo.z)}add(e){return n.create(this.x+e.x,this.y+e.y,this.z+e.z)}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=e.z}copy(){return n.clone(this)}distanceTo(e){return this.sub(e).length}distanceToSq(e){return this.sub(e).getLengthSq()}div(e){return n.create(this.x/e,this.y/e,this.z/e)}divTo(e){this.x/=e,this.y/=e,this.z/=e}getLengthSq(){return this.x**a.dm+this.y**a.dm}mult(e){return n.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){let e=this.length;e!=a.dv&&this.multTo(a.hB/e)}rotate(e){return n.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),a.bo.z)}setTo(e){this.x=e.x,this.y=e.y,this.z=e.z?e.z:a.bo.z}sub(e){return n.create(this.x-e.x,this.y-e.y,this.z-e.z)}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=e.z}_updateFromAngle=(e,t)=>{this.x=Math.cos(e)*t,this.y=Math.sin(e)*t}}class s extends n{constructor(e=a.bo.x,t=a.bo.y){super(e,t,a.bo.z)}static get origin(){return s.create(a.bo.x,a.bo.y)}static clone(e){return s.create(e.x,e.y)}static create(e,t){return"number"==typeof e?new s(e,t??a.bo.y):new s(e.x,e.y)}}},34(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).increasing="increasing",n.decreasing="decreasing"},3031(e,t,i){var a,n;i.d(t,{F:()=>a}),(n=a||(a={})).bottom="bottom",n.bottomLeft="bottom-left",n.bottomRight="bottom-right",n.left="left",n.none="none",n.right="right",n.top="top",n.topLeft="top-left",n.topRight="top-right",n.outside="outside",n.inside="inside"},8405(e,t,i){var a,n;i.d(t,{v:()=>a}),(n=a||(a={})).bottom="bottom",n.left="left",n.right="right",n.top="top"},3768(e,t,i){var a,n;i.d(t,{g:()=>a}),(n=a||(a={})).auto="auto",n.increase="increase",n.decrease="decrease",n.random="random"},1817(e,t,i){var a,n;i.d(t,{d:()=>a}),(n=a||(a={})).delete="delete",n.wait="wait"},4734(e,t,i){var a,n;i.d(t,{Y:()=>a}),(n=a||(a={})).bounce="bounce",n.none="none",n.out="out",n.destroy="destroy",n.split="split"},5126(e,t,i){var a,n;i.d(t,{q:()=>a}),(n=a||(a={})).precise="precise",n.percent="percent"},7196(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).darken="darken",n.enlighten="enlighten"},658(e,t,i){var a,n;i.d(t,{V:()=>a}),(n=a||(a={})).none="none",n.max="max",n.min="min"},4008(e,t,i){var a,n;i.d(t,{B:()=>a}),(n=a||(a={})).configAdded="configAdded",n.containerInit="containerInit",n.particlesSetup="particlesSetup",n.containerStarted="containerStarted",n.containerStopped="containerStopped",n.containerDestroyed="containerDestroyed",n.containerPaused="containerPaused",n.containerPlay="containerPlay",n.containerBuilt="containerBuilt",n.particleAdded="particleAdded",n.particleDestroyed="particleDestroyed",n.particleRemoved="particleRemoved"},7542(e,t,i){var a,n;i.d(t,{x:()=>a}),(n=a||(a={})).normal="normal",n.inside="inside",n.outside="outside"},1655(e,t,i){var a,n;i.d(t,{S:()=>a}),(n=a||(a={})).max="max",n.min="min",n.random="random"},8278(e,t,i){i.d(t,{A:()=>o});var a=i(6112),n=i(3226),s=i(7544);class o extends s.O{animation;constructor(){super(),this.animation=new n.i}static create(e,t){let i=new o;return i.load(e),void 0!==t&&((0,a.Kg)(t)||(0,a.cy)(t)?i.load({value:t}):i.load(t)),i}load(e){if(super.load(e),(0,a.kZ)(e))return;let t=e.animation;void 0!==t&&(void 0===t.enable?this.animation.load(e.animation):this.animation.h.load(t))}}},9529(e,t,i){i.d(t,{Q:()=>l,p:()=>r});var a=i(3768),n=i(1655),s=i(6112),o=i(8346);class r{count;decay;delay;enable;speed;sync;constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){(0,s.kZ)(e)||(void 0!==e.count&&(this.count=(0,o.DT)(e.count)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,o.DT)(e.speed)),void 0!==e.decay&&(this.decay=(0,o.DT)(e.decay)),void 0!==e.delay&&(this.delay=(0,o.DT)(e.delay)),void 0!==e.sync&&(this.sync=e.sync))}}class l extends r{mode;startValue;constructor(){super(),this.mode=a.g.auto,this.startValue=n.S.random}load(e){super.load(e),(0,s.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.startValue&&(this.startValue=e.startValue))}}},9336(e,t,i){i.d(t,{V:()=>s});var a=i(7544),n=i(6112);class s{color;image;opacity;position;repeat;size;constructor(){this.color=new a.O,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.O.create(this.color,e.color)),void 0!==e.image&&(this.image=e.image),void 0!==e.position&&(this.position=e.position),void 0!==e.repeat&&(this.repeat=e.repeat),void 0!==e.size&&(this.size=e.size),void 0!==e.opacity&&(this.opacity=e.opacity))}}},1014(e,t,i){i.d(t,{e:()=>o});var a=i(9529),n=i(6112),s=i(8346);class o extends a.p{offset;constructor(){super(),this.offset=0,this.sync=!0}load(e){super.load(e),(0,n.kZ)(e)||void 0!==e.offset&&(this.offset=(0,s.DT)(e.offset))}}},4266(e,t,i){i.d(t,{m:()=>n});var a=i(6112);class n{enable;zIndex;constructor(){this.enable=!0,this.zIndex=0}load(e){(0,a.kZ)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.zIndex&&(this.zIndex=e.zIndex))}}},3226(e,t,i){i.d(t,{i:()=>s});var a=i(1014),n=i(6112);class s{h=new a.e;l=new a.e;s=new a.e;load(e){(0,n.kZ)(e)||(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}},4163(e,t,i){i.d(t,{J:()=>c});var a=i(160),n=i(6112),s=i(9336),o=i(4266),r=i(6829),l=i(4998),d=i(8346);class c{autoPlay;background;clear;defaultThemes;delay;detectRetina;duration;fpsLimit;fullScreen;hdr;key;name;particles;pauseOnBlur;pauseOnOutsideViewport;preset;resize;smooth;style;zLayers;_container;_engine;constructor(e,t){this._engine=e,this._container=t,this.autoPlay=!0,this.background=new s.V,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new o.m,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.hdr=!0,this.particles=(0,l.y)(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.resize=new r.z,this.smooth=!1,this.style={},this.zLayers=100}load(e){if((0,n.kZ)(e))return;void 0!==e.preset&&(0,a.wJ)(e.preset,e=>{this._importPreset(e)}),void 0!==e.autoPlay&&(this.autoPlay=e.autoPlay),void 0!==e.clear&&(this.clear=e.clear),void 0!==e.key&&(this.key=e.key),void 0!==e.name&&(this.name=e.name),void 0!==e.delay&&(this.delay=(0,d.DT)(e.delay));let t=e.detectRetina;void 0!==t&&(this.detectRetina=t),void 0!==e.duration&&(this.duration=(0,d.DT)(e.duration));let i=e.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==e.hdr&&(this.hdr=e.hdr),void 0!==e.pauseOnBlur&&(this.pauseOnBlur=e.pauseOnBlur),void 0!==e.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),void 0!==e.zLayers&&(this.zLayers=e.zLayers),this.background.load(e.background);let s=e.fullScreen;(0,n.Lm)(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.particles.load(e.particles),this.resize.load(e.resize),this.style=(0,a.zw)(this.style,e.style),void 0!==e.smooth&&(this.smooth=e.smooth),this._engine.plugins.forEach(t=>{t.loadOptions(this._container,this,e)})}_importPreset=e=>{this.load(this._engine.getPreset(e))}}},7544(e,t,i){i.d(t,{O:()=>n});var a=i(6112);class n{value;constructor(){this.value=""}static create(e,t){let i=new n;return i.load(e),void 0!==t&&((0,a.Kg)(t)||(0,a.cy)(t)?i.load({value:t}):i.load(t)),i}load(e){!(0,a.kZ)(e)&&((0,a.kZ)(e.value)||(this.value=e.value))}}},2189(e,t,i){i.d(t,{w:()=>s});var a=i(1558),n=i(6112);class s{horizontal;vertical;constructor(){this.horizontal=new a.F,this.vertical=new a.F}load(e){(0,n.kZ)(e)||(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}},1558(e,t,i){i.d(t,{F:()=>n});var a=i(6571);class n extends a.PV{constructor(){super(),this.value=1}}},4226(e,t,i){i.d(t,{y:()=>p});var a=i(3031),n=i(6112),s=i(8195),o=i(4181),r=i(3495),l=i(322),d=i(2325),c=i(951),u=i(3915),h=i(8346);class p{angle;attract;center;decay;direction;distance;drift;enable;gravity;outModes;path;random;size;speed;spin;straight;vibrate;warp;constructor(){this.angle=new s.h,this.attract=new o.R,this.center=new r.Z,this.decay=0,this.distance={},this.direction=a.F.none,this.drift=0,this.enable=!1,this.gravity=new l.y,this.path=new d.v,this.outModes=new c.j,this.random=!1,this.size=!1,this.speed=2,this.spin=new u.t,this.straight=!1,this.vibrate=!1,this.warp=!1}load(e){if((0,n.kZ)(e))return;this.angle.load((0,n.Et)(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),void 0!==e.decay&&(this.decay=(0,h.DT)(e.decay)),void 0!==e.direction&&(this.direction=e.direction),void 0!==e.distance&&(this.distance=(0,n.Et)(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),void 0!==e.drift&&(this.drift=(0,h.DT)(e.drift)),void 0!==e.enable&&(this.enable=e.enable),this.gravity.load(e.gravity);let t=e.outModes;void 0!==t&&((0,n.Gv)(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),void 0!==e.random&&(this.random=e.random),void 0!==e.size&&(this.size=e.size),void 0!==e.speed&&(this.speed=(0,h.DT)(e.speed)),this.spin.load(e.spin),void 0!==e.straight&&(this.straight=e.straight),void 0!==e.vibrate&&(this.vibrate=e.vibrate),void 0!==e.warp&&(this.warp=e.warp)}}},8195(e,t,i){i.d(t,{h:()=>s});var a=i(6112),n=i(8346);class s{offset;value;constructor(){this.offset=0,this.value=90}load(e){(0,a.kZ)(e)||(void 0!==e.offset&&(this.offset=(0,n.DT)(e.offset)),void 0!==e.value&&(this.value=(0,n.DT)(e.value)))}}},4181(e,t,i){i.d(t,{R:()=>s});var a=i(6112),n=i(8346);class s{distance;enable;rotate;constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(e){if(!(0,a.kZ)(e)&&(void 0!==e.distance&&(this.distance=(0,n.DT)(e.distance)),void 0!==e.enable&&(this.enable=e.enable),e.rotate)){let t=e.rotate.x;void 0!==t&&(this.rotate.x=t);let i=e.rotate.y;void 0!==i&&(this.rotate.y=i)}}}},3495(e,t,i){i.d(t,{Z:()=>s});var a=i(5126),n=i(6112);class s{mode;radius;x;y;constructor(){this.x=50,this.y=50,this.mode=a.q.percent,this.radius=0}load(e){(0,n.kZ)(e)||(void 0!==e.x&&(this.x=e.x),void 0!==e.y&&(this.y=e.y),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.radius&&(this.radius=e.radius))}}},322(e,t,i){i.d(t,{y:()=>s});var a=i(6112),n=i(8346);class s{acceleration;enable;inverse;maxSpeed;constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){(0,a.kZ)(e)||(void 0!==e.acceleration&&(this.acceleration=(0,n.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.inverse&&(this.inverse=e.inverse),void 0!==e.maxSpeed&&(this.maxSpeed=(0,n.DT)(e.maxSpeed)))}}},951(e,t,i){i.d(t,{j:()=>s});var a=i(4734),n=i(6112);class s{bottom;default;left;right;top;constructor(){this.default=a.Y.out}load(e){(0,n.kZ)(e)||(void 0!==e.default&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}},2325(e,t,i){i.d(t,{v:()=>o});var a=i(6571),n=i(160),s=i(6112);class o{clamp;delay;enable;generator;options;constructor(){this.clamp=!0,this.delay=new a.PV,this.enable=!1,this.options={}}load(e){!(0,s.kZ)(e)&&(void 0!==e.clamp&&(this.clamp=e.clamp),this.delay.load(e.delay),void 0!==e.enable&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=(0,n.zw)(this.options,e.options)))}}},3915(e,t,i){i.d(t,{t:()=>o});var a=i(160),n=i(6112),s=i(8346);class o{acceleration;enable;position;constructor(){this.acceleration=0,this.enable=!1}load(e){!(0,n.kZ)(e)&&(void 0!==e.acceleration&&(this.acceleration=(0,s.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),e.position&&(this.position=(0,a.zw)({},e.position)))}}},5610(e,t,i){i.d(t,{M:()=>n});var a=i(6112);class n{enable;height;width;constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if((0,a.kZ)(e))return;void 0!==e.enable&&(this.enable=e.enable);let t=e.width;void 0!==t&&(this.width=t);let i=e.height;void 0!==i&&(this.height=i)}}},785(e,t,i){i.d(t,{N:()=>o});var a=i(5610),n=i(1862),s=i(6112);class o{density;limit;value;constructor(){this.density=new a.M,this.limit=new n.A,this.value=0}load(e){(0,s.kZ)(e)||(this.density.load(e.density),this.limit.load(e.limit),void 0!==e.value&&(this.value=e.value))}}},1862(e,t,i){i.d(t,{A:()=>s});var a=i(1817),n=i(6112);class s{mode;value;constructor(){this.mode=a.d.delete,this.value=0}load(e){(0,n.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.value&&(this.value=e.value))}}},366(e,t,i){i.d(t,{Y:()=>o});var a=i(486),n=i(6571),s=i(6112);class o extends n.AI{animation;constructor(){super(),this.animation=new a.I,this.value=1}load(e){if((0,s.kZ)(e))return;super.load(e);let t=e.animation;void 0!==t&&this.animation.load(t)}}},486(e,t,i){i.d(t,{I:()=>o});var a=i(658),n=i(9529),s=i(6112);class o extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=2}load(e){super.load(e),(0,s.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},7891(e,t,i){i.d(t,{U:()=>f});var a=i(160),n=i(8278),s=i(6112);class o{close;fill;options;type;constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(e){if((0,s.kZ)(e))return;let t=e.options;if(void 0!==t)for(let e in t){let i=t[e];i&&(this.options[e]=(0,a.zw)(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.fill&&(this.fill=e.fill),void 0!==e.type&&(this.type=e.type)}}var r=i(4226),l=i(366),d=i(2189),c=i(785),u=i(8634),h=i(6906),p=i(2893),v=i(7256);class f{bounce;color;effect;groups;move;number;opacity;reduceDuplicates;shape;size;stroke;zIndex;_container;_engine;constructor(e,t){this._engine=e,this._container=t,this.bounce=new d.w,this.color=new n.A,this.color.value="#fff",this.effect=new o,this.groups={},this.move=new r.y,this.number=new c.N,this.opacity=new l.Y,this.reduceDuplicates=!1,this.shape=new u.y,this.size=new h.o,this.stroke=new p.t,this.zIndex=new v.P}load(e){if((0,s.kZ)(e))return;if(void 0!==e.groups)for(let t of Object.keys(e.groups)){if(!Object.hasOwn(e.groups,t))continue;let i=e.groups[t];void 0!==i&&(this.groups[t]=(0,a.zw)(this.groups[t]??{},i))}void 0!==e.reduceDuplicates&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.color.load(n.A.create(this.color,e.color)),this.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),this.shape.load(e.shape),this.size.load(e.size),this.zIndex.load(e.zIndex);let t=e.stroke;if(t&&(this.stroke=(0,a.wJ)(t,e=>{let t=new p.t;return t.load(e),t})),this._container){for(let t of this._engine.plugins)t.loadParticlesOptions&&t.loadParticlesOptions(this._container,this,e);let t=this._engine.updaters.get(this._container);if(t)for(let i of t)i.loadOptions&&i.loadOptions(this,e)}}}},8634(e,t,i){i.d(t,{y:()=>s});var a=i(160),n=i(6112);class s{close;fill;options;type;constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(e){if((0,n.kZ)(e))return;let t=e.options;if(void 0!==t)for(let e in t){let i=t[e];i&&(this.options[e]=(0,a.zw)(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.fill&&(this.fill=e.fill),void 0!==e.type&&(this.type=e.type)}}},6906(e,t,i){i.d(t,{o:()=>o});var a=i(6571),n=i(3618),s=i(6112);class o extends a.AI{animation;constructor(){super(),this.animation=new n.q,this.value=3}load(e){if(super.load(e),(0,s.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}},3618(e,t,i){i.d(t,{q:()=>o});var a=i(658),n=i(9529),s=i(6112);class o extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=5}load(e){super.load(e),(0,s.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},2893(e,t,i){i.d(t,{t:()=>o});var a=i(8278),n=i(6112),s=i(8346);class o{color;opacity;width;constructor(){this.width=0}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.A.create(this.color,e.color)),void 0!==e.width&&(this.width=(0,s.DT)(e.width)),void 0!==e.opacity&&(this.opacity=(0,s.DT)(e.opacity)))}}},7256(e,t,i){i.d(t,{P:()=>s});var a=i(6571),n=i(6112);class s extends a.PV{opacityRate;sizeRate;velocityRate;constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),(0,n.kZ)(e)||(void 0!==e.opacityRate&&(this.opacityRate=e.opacityRate),void 0!==e.sizeRate&&(this.sizeRate=e.sizeRate),void 0!==e.velocityRate&&(this.velocityRate=e.velocityRate))}}},6829(e,t,i){i.d(t,{z:()=>n});var a=i(6112);class n{delay;enable;constructor(){this.delay=.5,this.enable=!0}load(e){(0,a.kZ)(e)||(void 0!==e.delay&&(this.delay=e.delay),void 0!==e.enable&&(this.enable=e.enable))}}},6571(e,t,i){i.d(t,{AI:()=>l,Jm:()=>r,PV:()=>o});var a=i(9529),n=i(6112),s=i(8346);class o{value;constructor(){this.value=0}load(e){!(0,n.kZ)(e)&&((0,n.kZ)(e.value)||(this.value=(0,s.DT)(e.value)))}}class r extends o{animation=new a.p;load(e){if(super.load(e),(0,n.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}class l extends r{animation;constructor(){super(),this.animation=new a.Q}load(e){super.load(e)}}},3756(e,t,i){i.d(t,{IU:()=>r,KG:()=>u,Md:()=>o,Sn:()=>s,VG:()=>p,Wb:()=>v,gF:()=>h,k:()=>d,p0:()=>l,yx:()=>f,z5:()=>c});var a=i(9692),n=i(7196);function s(e,t,i){e.fillStyle=i??"rgba(0,0,0,0)",e.fillRect(a.bo.x,a.bo.y,t.width,t.height)}function o(e,t,i,n){i&&(e.globalAlpha=n,e.drawImage(i,a.bo.x,a.bo.y,t.width,t.height),e.globalAlpha=1)}function r(e,t){e.clearRect(a.bo.x,a.bo.y,t.width,t.height)}function l(e){let{container:t,context:i,particle:n,delta:s,colorStyles:o,radius:r,opacity:l,transform:v}=e,f=n.getPosition(),g=n.getTransformData(v);i.setTransform(g.a,g.b,g.c,g.d,f.x,f.y),o.fill&&(i.fillStyle=o.fill);let m=n.strokeWidth??a.Dv;i.lineWidth=m,o.stroke&&(i.strokeStyle=o.stroke);let y={context:i,particle:n,radius:r,opacity:l,delta:s,pixelRatio:t.retina.pixelRatio,fill:n.shapeFill,stroke:m>a.Dv||!n.shapeFill,transformData:g};c(t,y),p(t,y),u(t,y),h(t,y),d(t,y),i.resetTransform()}function d(e,t){let{particle:i}=t;if(!i.effect)return;let a=e.particles.effectDrawers.get(i.effect),n=a?.drawAfter;n&&n(t)}function c(e,t){let{particle:i}=t;if(!i.effect)return;let a=e.particles.effectDrawers.get(i.effect);a?.drawBefore&&a.drawBefore(t)}function u(e,t){let{context:i,particle:a,stroke:n}=t;if(!a.shape)return;let s=e.particles.shapeDrawers.get(a.shape);s&&(i.beginPath(),s.draw(t),a.shapeClose&&i.closePath(),n&&i.stroke(),a.shapeFill&&i.fill())}function h(e,t){let{particle:i}=t;if(!i.shape)return;let a=e.particles.shapeDrawers.get(i.shape);a?.afterDraw&&a.afterDraw(t)}function p(e,t){let{particle:i}=t;if(!i.shape)return;let a=e.particles.shapeDrawers.get(i.shape);a?.beforeDraw&&a.beforeDraw(t)}function v(e,t,i,a){t.drawParticle&&t.drawParticle(e,i,a)}function f(e,t,i){return{h:e.h,s:e.s,l:e.l+(t===n.H.darken?-a.iU:a.iU)*i}}},1101(e,t,i){i.d(t,{BN:()=>u,EY:()=>S,Jv:()=>F,K6:()=>f,Ko:()=>T,LC:()=>M,OH:()=>x,O_:()=>P,PG:()=>R,R5:()=>v,YL:()=>y,_h:()=>O,ay:()=>b,eg:()=>m,mK:()=>p,pz:()=>k,qe:()=>h,xx:()=>w,zI:()=>g});var a=i(8346),n=i(9692),s=i(6112),o=i(34),r=i(160);let l=new Map;function d(e,t){let i=l.get(e);return i||(i=t(),l.size>=1e3&&[...l.keys()].slice(0,1e3*n.MX).forEach(e=>l.delete(e)),l.set(e,i)),i}function c(e,t){if(t){for(let i of e.colorManagers.values())if(i.accepts(t))return i.parseString(t)}}function u(e,t,i,a=!0){if(!t)return;let n=(0,s.Kg)(t)?{value:t}:t;if((0,s.Kg)(n.value))return h(e,n.value,i,a);if((0,s.cy)(n.value)){let t=(0,r.Vh)(n.value,i,a);if(!t)return;return u(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleRangeColor(n);if(e)return e}}function h(e,t,i,a=!0){if(!t)return;let o=(0,s.Kg)(t)?{value:t}:t;if((0,s.Kg)(o.value))return o.value===n.mR?x():c(e,o.value);if((0,s.cy)(o.value)){let t=(0,r.Vh)(o.value,i,a);if(!t)return;return h(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleColor(o);if(e)return e}}function p(e,t,i,a=!0){let n=h(e,t,i,a);return n?f(n):void 0}function v(e,t,i,a=!0){let n=u(e,t,i,a);return n?f(n):void 0}function f(e){let t=e.r/n.oi,i=e.g/n.oi,a=e.b/n.oi,s=Math.max(t,i,a),o=Math.min(t,i,a),r={h:n.L1,l:(s+o)*n.MX,s:n.yx};return s!==o&&(r.s=r.l<n.MX?(s-o)/(s+o):(s-o)/(n.gd-s-o),t===s?r.h=(i-a)/(s-o):i===s?r.h=n.gd+(a-t)/(s-o):r.h=n.gd*n.gd+(t-i)/(s-o)),r.l*=n.$_,r.s*=n.eu,r.h*=n.U0,r.h<n.L1&&(r.h+=n.vS),r.h>=n.vS&&(r.h-=n.vS),r}function g(e,t){return c(e,t)?.a}function m(e,t){return c(e,t)}function y(e){let t=(e.h%n.vS+n.vS)%n.vS,i=Math.max(n.yx,Math.min(n.eu,e.s)),a=Math.max(n.vd,Math.min(n.$_,e.l)),s=t/n.vS,o=i/n.eu,r=a/n.$_;if(i===n.yx){let e=Math.round(r*n.oi);return{r:e,g:e,b:e}}let l=(e,t,i)=>(i<0&&i++,i>1&&i--,i*n.zg<1)?e+(t-e)*n.zg*i:i*n.gd<1?t:i*n.Nu<+n.gd?e+(t-e)*(n.gd/n.Nu-i)*n.zg:e,d=r<n.MX?r*(n.aE+o):r+o-r*o,c=n.gd*r-d,u=n.BF/n.Nu;return{r:Math.round(Math.min(n.oi,n.oi*l(c,d,s+u))),g:Math.round(Math.min(n.oi,n.oi*l(c,d,s))),b:Math.round(Math.min(n.oi,n.oi*l(c,d,s-u)))}}function b(e){let t=y(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}function x(e){let t=e??n.Fl,i=n.oi+n.D_,s=()=>Math.floor((0,a.e4)(t,i));return{b:s(),g:s(),r:s()}}function w(e,t,i){let a=i??n.hv;return d(`rgb-${e.r.toFixed(2)}-${e.g.toFixed(2)}-${e.b.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,s;return t?z(e,i):(a=e,s=i,`rgba(${a.r.toString()}, ${a.g.toString()}, ${a.b.toString()}, ${(s??n.hv).toString()})`)})}function z(e,t){return`color(display-p3 ${(e.r/n.oi).toString()} ${(e.g/n.oi).toString()} ${(e.b/n.oi).toString()} / ${(t??n.hv).toString()})`}function M(e,t,i){let a=i??n.hv;return d(`hsl-${e.h.toFixed(2)}-${e.s.toFixed(2)}-${e.l.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,s,o,r;return t?(a=e,s=i,z(y(a),s)):(o=e,r=i,`hsla(${o.h.toString()}, ${o.s.toString()}%, ${o.l.toString()}%, ${(r??n.hv).toString()})`)})}function S(e,t,i,n){let s=e,o=t;return Object.hasOwn(s,"r")||(s=y(e)),Object.hasOwn(o,"r")||(o=y(t)),{b:(0,a.jh)(s.b,o.b,i,n),g:(0,a.jh)(s.g,o.g,i,n),r:(0,a.jh)(s.r,o.r,i,n)}}function O(e,t,i){if(i===n.mR)return x();if(i!==n.BW)return i;{let i=e.getFillColor()??e.getStrokeColor(),a=t?.getFillColor()??t?.getStrokeColor();if(i&&a&&t)return S(i,a,e.getRadius(),t.getRadius());{let e=i??a;if(e)return y(e)}}}function R(e,t,i,a){let o=(0,s.Kg)(t)?t:t.value;return o===n.mR?a?u(e,{value:o}):i?n.mR:n.BW:o===n.BW?n.BW:u(e,{value:o})}function P(e){return void 0!==e?{h:e.h.value,s:e.s.value,l:e.l.value}:void 0}function k(e,t,i){let a={h:{enable:!1,value:e.h},s:{enable:!1,value:e.s},l:{enable:!1,value:e.l}};return t&&(E(a.h,t.h,i),E(a.s,t.s,i),E(a.l,t.l,i)),a}function E(e,t,i){e.enable=t.enable,e.enable?(e.velocity=(0,a.VG)(t.speed)/n.a5*i,e.decay=n.WH-(0,a.VG)(t.decay),e.status=o.H.increasing,e.loops=n.hK,e.maxLoops=(0,a.VG)(t.count),e.time=n.tR,e.delayTime=(0,a.VG)(t.delay)*n.Xu,t.sync||(e.velocity*=(0,a.G0)(),e.value*=(0,a.G0)()),e.initialValue=e.value,e.offset=(0,a.DT)(t.offset)):e.velocity=n.jn}function T(e,t,i,n){if(!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0)||(e.time??=0,(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=n.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;let s=e.offset?(0,a.vE)(e.offset):0,r=(e.velocity??0)*n.factor+3.6*s,l=e.decay??1,d=(0,a.W9)(t),c=(0,a.Sg)(t);i&&e.status!==o.H.increasing?(e.value-=r,e.value<0&&(e.loops??=0,e.loops++,e.status=o.H.increasing)):(e.value+=r,e.value>d&&(e.loops??=0,e.loops++,i?e.status=o.H.decreasing:e.value-=d)),e.velocity&&1!==l&&(e.velocity*=l),e.value=(0,a.qE)(e.value,c,d)}function F(e,t){if(!e)return;let{h:i,s:a,l:s}=e,o={h:{min:n.L1,max:n.vS},s:{min:n.yx,max:n.eu},l:{min:n.vd,max:n.$_}};T(i,o.h,!1,t),T(a,o.s,!0,t),T(s,o.l,!0,t)}},1002(e,t,i){i.d(t,{B:()=>n,t:()=>s});let a={debug:console.debug,error:(e,t)=>{console.error(`tsParticles - Error - ${e}`,t)},info:console.info,log:console.log,verbose:console.log,warning:console.warn};function n(e){a.debug=e.debug,a.error=e.error,a.info=e.info,a.log=e.log,a.verbose=e.verbose,a.warning=e.warning}function s(){return a}},8346(e,t,i){i.d(t,{$m:()=>R,AD:()=>p,DT:()=>function e(t,i){if(t===i||void 0===i&&(0,o.Et)(t))return t;let a=x(t),n=w(t);return void 0!==i?{min:Math.min(a,i),max:Math.max(n,i)}:e(a,n)},G0:()=>u,JY:()=>O,M3:()=>D,Mh:()=>E,Nx:()=>F,OE:()=>c,OW:()=>P,Sg:()=>x,VG:()=>b,W9:()=>w,Yf:()=>M,e4:()=>h,eh:()=>k,i0:()=>v,jh:()=>m,l1:()=>T,pu:()=>S,px:()=>f,qE:()=>g,qM:()=>_,vE:()=>y,vr:()=>z});var a=i(3031),n=i(9692),s=i(9325),o=i(6112);let r=Math.PI/180,l=Math.random,d={nextFrame:e=>requestAnimationFrame(e),cancel:e=>{cancelAnimationFrame(e)}};function c(e=Math.random){l=e}function u(){return g(l(),0,1-Number.EPSILON)}function h(e,t){return u()*(t-e)+e}function p(e,t){d.nextFrame=t=>e(t),d.cancel=e=>{t(e)}}function v(e){return d.nextFrame(e)}function f(e){d.cancel(e)}function g(e,t,i){return Math.min(Math.max(e,t),i)}function m(e,t,i,a){return Math.floor((e*i+t*a)/(i+a))}function y(e){let t=w(e),i=x(e);return t===i&&(i=0),h(i,t)}function b(e){return(0,o.Et)(e)?e:y(e)}function x(e){return(0,o.Et)(e)?e:e.min}function w(e){return(0,o.Et)(e)?e:e.max}function z(e,t){let i=e.x-t.x,a=e.y-t.y;return{dx:i,dy:a,distance:Math.sqrt(i**2+a**2)}}function M(e,t){return z(e,t).distance}function S(e){return e*r}function O(e,t,i){if((0,o.Et)(e))return e*r;switch(e){case a.F.top:return-Math.PI*n.MX;case a.F.topRight:return-Math.PI*n.$G;case a.F.right:return n.Ie;case a.F.bottomRight:return Math.PI*n.$G;case a.F.bottom:return Math.PI*n.MX;case a.F.bottomLeft:return Math.PI*n.Rq;case a.F.left:return Math.PI;case a.F.topLeft:return-Math.PI*n.Rq;case a.F.inside:return Math.atan2(i.y-t.y,i.x-t.x);case a.F.outside:return Math.atan2(t.y-i.y,t.x-i.x);default:return u()*n.R1}}function R(e){let t=s.M.origin;return t.length=1,t.angle=e,t}function P(e,t,i,a){return s.M.create(e.x*(i-a)/(i+a)+t.x*n.gd*a/(i+a),e.y)}function k(e){return e.position?.x!==void 0&&void 0!==e.position.y?{x:e.position.x*e.size.width/n.a5,y:e.position.y*e.size.height/n.a5}:void 0}function E(e){return{x:(e.position?.x??u()*n.a5)*e.size.width/n.a5,y:(e.position?.y??u()*n.a5)*e.size.height/n.a5}}function T(e){let t={x:e.position?.x!==void 0?b(e.position.x):void 0,y:e.position?.y!==void 0?b(e.position.y):void 0};return E({size:e.size,position:t})}function F(e){let{position:t,size:i}=e;return{x:t?.x??u()*i.width,y:t?.y??u()*i.height}}function _(e){let t={x:e.position?.x!==void 0?b(e.position.x):void 0,y:e.position?.y!==void 0?b(e.position.y):void 0};return F({size:e.size,position:t})}function D(e){return e?e.endsWith("%")?parseFloat(e)/n.a5:parseFloat(e):1}},4998(e,t,i){i.d(t,{Z:()=>n,y:()=>s});var a=i(7891);function n(e,...t){for(let i of t)e.load(i)}function s(e,t,...i){let o=new a.U(e,t);return n(o,...i),o}},6112(e,t,i){function a(e){return"boolean"==typeof e}function n(e){return"string"==typeof e}function s(e){return"number"==typeof e}function o(e){return"function"==typeof e}function r(e){return"object"==typeof e&&null!==e}function l(e){return Array.isArray(e)}function d(e){return null==e}i.d(t,{Et:()=>s,Gv:()=>r,Kg:()=>n,Lm:()=>a,Tn:()=>o,cy:()=>l,kZ:()=>d})},160(e,t,i){let a;i.d(t,{AE:()=>O,BR:()=>y,E9:()=>D,HQ:()=>C,Kp:()=>G,O2:()=>S,Ot:()=>$,T5:()=>g,TA:()=>E,Tg:()=>R,Tj:()=>M,UC:()=>I,Vh:()=>z,Xs:()=>F,YC:()=>A,hJ:()=>V,hn:()=>x,lV:()=>m,n0:()=>w,pE:()=>P,q8:()=>f,tG:()=>b,td:()=>L,w3:()=>T,wJ:()=>k,zw:()=>function e(t,...i){for(let a of i)if(null!=a){if(!(0,r.Gv)(a)){t=a;continue}for(let i in Array.isArray(a)?Array.isArray(t)||(t=[]):(!(0,r.Gv)(t)||Array.isArray(t))&&(t={}),a){if("__proto__"===i)continue;let n=a[i],s=t;s[i]=(0,r.Gv)(n)&&Array.isArray(n)?n.map(t=>e(s[i],t)):e(s[i],n)}}return t}});var n,s=i(8346),o=i(9692),r=i(6112),l=i(3768),d=i(34),c=i(658),u=i(8405),h=i(5126),p=i(1655),v=i(9325);function f(){return"u">typeof matchMedia}function g(){return globalThis.document}function m(e){if(f())return matchMedia(e)}function y(e){if("u">typeof IntersectionObserver)return new IntersectionObserver(e)}function b(e){if("u">typeof MutationObserver)return new MutationObserver(e)}function x(e,t){return e===t||(0,r.cy)(t)&&t.includes(e)}function w(e){return Math.floor((0,s.G0)()*e.length)}function z(e,t,i=!0){return e[void 0!==t&&i?t%e.length:w(e)]}function M(e,t,i,a,n){return S(O(e,a??0),t,i,n)}function S(e,t,i,a){let n=!0;return a&&a!==u.v.bottom||(n=e.top<t.height+i.x),n&&(!a||a===u.v.left)&&(n=e.right>i.x),n&&(!a||a===u.v.right)&&(n=e.left<t.width+i.y),n&&(!a||a===u.v.top)&&(n=e.bottom>i.y),n}function O(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function R(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:v.M.create((0,s.VG)(e.options.bounce.horizontal.value),(0,s.VG)(e.options.bounce.vertical.value))}}function P(e,t){let{x:i,y:a}=e.velocity.sub(t.velocity),[n,o]=[e.position,t.position],{dx:r,dy:l}=(0,s.vr)(o,n);if(i*r+a*l<0)return;let d=-Math.atan2(l,r),c=e.mass,u=t.mass,h=e.velocity.rotate(d),p=t.velocity.rotate(d),v=(0,s.OW)(h,p,c,u),f=(0,s.OW)(p,h,c,u),g=v.rotate(-d),m=f.rotate(-d);e.velocity.x=g.x*e.factor.x,e.velocity.y=g.y*e.factor.y,t.velocity.x=m.x*t.factor.x,t.velocity.y=m.y*t.factor.y}function k(e,t){return(0,r.cy)(e)?e.map((e,i)=>t(e,i)):t(e,0)}function E(e,t,i){return(0,r.cy)(e)?z(e,t,i):e}function T(e,t){return(0,r.cy)(e)?e.find((e,i)=>t(e,i)):t(e,0)?e:void 0}function F(e,t){let i=e.value,a=e.animation,n={delayTime:(0,s.VG)(a.delay)*o.Xu,enable:a.enable,value:(0,s.VG)(e.value)*t,max:(0,s.W9)(i)*t,min:(0,s.Sg)(i)*t,loops:0,maxLoops:(0,s.VG)(a.count),time:0};if(a.enable){switch(n.decay=1-(0,s.VG)(a.decay),a.mode){case l.g.increase:n.status=d.H.increasing;break;case l.g.decrease:n.status=d.H.decreasing;break;case l.g.random:n.status=(0,s.G0)()>=o.MX?d.H.increasing:d.H.decreasing}let e=a.mode===l.g.auto;switch(a.startValue){case p.S.min:n.value=n.min,e&&(n.status=d.H.increasing);break;case p.S.max:n.value=n.max,e&&(n.status=d.H.decreasing);break;case p.S.random:default:n.value=(0,s.vE)(n),e&&(n.status=(0,s.G0)()>=o.MX?d.H.increasing:d.H.decreasing)}}return n.initialValue=n.value,n}function _(e,t){if(e.mode!==h.q.percent){let{mode:t,...i}=e;return i}return"x"in e?{x:e.x/o.a5*t.width,y:e.y/o.a5*t.height}:{width:e.width/o.a5*t.width,height:e.height/o.a5*t.height}}function D(e,t){return _(e,t)}function A(e,t){return _(e,t)}function I(e,t,i,a,n){if(e.destroyed||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;let o=(t.velocity??0)*n.factor,r=t.min,l=t.max,u=t.decay??1;if(t.time??=0,(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=n.value),!((t.delayTime??0)>0)||!(t.time<(t.delayTime??0))){switch(t.status){case d.H.increasing:t.value>=l?(i?t.status=d.H.decreasing:t.value-=l,t.loops??=0,t.loops++):t.value+=o;break;case d.H.decreasing:t.value<=r?(i?t.status=d.H.increasing:t.value+=l,t.loops??=0,t.loops++):t.value-=o}t.velocity&&1!==u&&(t.velocity*=u);var h=t.value;switch(a){case c.V.max:h>=l&&e.destroy();break;case c.V.min:h<=r&&e.destroy()}t.value=(0,s.qE)(t.value,r,l)}}function L(e){let t=g().createElement("div").style;for(let i in e){let a=e[i];if(!Object.hasOwn(e,i)||(0,r.kZ)(a))continue;let n=e.getPropertyValue?.(a);if(!n)continue;let s=e.getPropertyPriority?.(a);s?t.setProperty(a,n,s):t.setProperty(a,n)}return t}let V=(n=function(e){let t=g().createElement("div").style,i={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:e.toString(10),"z-index":e.toString(10),top:"0",left:"0"};for(let e in i){let a=i[e];void 0!==a&&t.setProperty(e,a)}return t},a=new Map,(...e)=>{let t=JSON.stringify(e);if(a.has(t))return a.get(t);let i=n(...e);return a.set(t,i),i});function G(e,t,i,a,n){if(a){let a={passive:!0};(0,r.Lm)(n)?a.capture=n:void 0!==n&&(a=n),e.addEventListener(t,i,a)}else e.removeEventListener(t,i,n)}async function C(e,t,i,a=!1){let n=t.get(e);return(!n||a)&&(n=await Promise.all([...i.values()].map(t=>t(e))),t.set(e,n)),n}async function $(e,t,i,a=!1){let n=t.get(e);return(!n||a)&&(n=new Map(await Promise.all([...i.entries()].map(([t,i])=>i(e).then(e=>[t,e])))),t.set(e,n)),n}},5954(e,t,i){i.d(t,{HKZ:()=>P.H,A9e:()=>_.A,gmr:()=>M.g,pK_:()=>D.p,H_P:()=>F.H,Jmi:()=>el.Jm,VS$:()=>A.V,dgY:()=>b.dg,jlt:()=>b.jl,evc:()=>I.e,VKE:()=>k.V,mgy:()=>l,Bx4:()=>h.B,mcU:()=>L.m,hqM:()=>r,i74:()=>V.i,dtg:()=>S.d,yUV:()=>B.y,hzL:()=>N.h,RE3:()=>K.R,Zgv:()=>j.Z,FWc:()=>w.F,y1u:()=>W.y,vU7:()=>Y.v,Y4E:()=>et.Y,IhC:()=>ei.I,JYR:()=>G.J,Oit:()=>C.O,Yzx:()=>O.Y,v5k:()=>z.v,j$q:()=>U.j,x_I:()=>E.x,wvn:()=>$.w,F5W:()=>q.F,M1g:()=>ee.M,NeW:()=>X.N,Ad4:()=>Q.A,UOj:()=>Z.U,qiC:()=>R.q,bRX:()=>y.b,Q4c:()=>D.Q,AIw:()=>el.AI,M_G:()=>b.M_,z0z:()=>er.z,pTR:()=>o,ypk:()=>ea.y,or0:()=>en.o,qvJ:()=>es.q,tKH:()=>J.t,SKz:()=>T.S,tcj:()=>H.t,PVU:()=>el.PV,Miz:()=>x.M,pGL:()=>x.p,Pyx:()=>eo.P,yxh:()=>ed.yx,i0Z:()=>v.i0,O2_:()=>c.O2,n02:()=>c.n0,NxB:()=>v.Nx,qMV:()=>v.qM,ehY:()=>v.eh,MhH:()=>v.Mh,l1q:()=>v.l1,AEc:()=>c.AE,pxm:()=>v.px,Nxk:()=>d.Nx,RFH:()=>d.RF,pEn:()=>c.pE,Tgl:()=>c.Tg,qE8:()=>v.qE,IUd:()=>ed.IU,FSi:()=>d.FS,td3:()=>c.td,OWw:()=>v.OW,EYT:()=>ec.EY,mKQ:()=>ec.mK,qe:()=>ec.qe,nqC:()=>d.nq,WH8:()=>d.WH,zwS:()=>c.zw,aZx:()=>d.aZ,tAJ:()=>d.tA,lA:()=>d.lA,z$P:()=>d.z$,i8E:()=>d.i8,hKc:()=>d.hK,hvP:()=>d.hv,M1H:()=>d.M1,$xb:()=>d.$x,ZpR:()=>d.Zp,xd3:()=>d.xd,rqX:()=>d.rq,Fli:()=>d.Fl,tRb:()=>d.tR,UgP:()=>d.Ug,zss:()=>d.zs,jnW:()=>d.jn,puj:()=>v.pu,LDU:()=>d.LD,gdl:()=>d.gd,R1e:()=>d.R1,kac:()=>ed.k,z5n:()=>ed.z5,p0m:()=>ed.p0,Wbn:()=>ed.Wb,KG7:()=>ed.KG,gF3:()=>ed.gF,VGT:()=>ed.VG,Iex:()=>d.Ie,wJ2:()=>c.wJ,w3Z:()=>c.w3,eb4:()=>d.eb,X$G:()=>d.X$,cei:()=>d.ce,YfF:()=>v.Yf,vrU:()=>v.vr,hJS:()=>c.hJ,pzy:()=>ec.pz,O_i:()=>ec.O_,OtU:()=>c.Ot,HQK:()=>c.HQ,_hh:()=>ec._h,PGG:()=>ec.PG,tZQ:()=>p.t,$mf:()=>v.$m,JYE:()=>v.JY,E90:()=>c.E9,G0i:()=>v.G0,e4g:()=>v.e4,OHq:()=>ec.OH,W9e:()=>v.W9,Sgh:()=>v.Sg,VGA:()=>v.VG,YCE:()=>c.YC,LCf:()=>ec.LC,xxz:()=>ec.xx,vSh:()=>d.vS,L1V:()=>d.L1,U0s:()=>d.U0,MXx:()=>d.MX,q8J:()=>c.q8,YLU:()=>ec.YL,ayx:()=>ec.ay,D_O:()=>d.D_,XsS:()=>c.Xs,hBr:()=>d.hB,cyL:()=>eh.cy,Lmq:()=>eh.Lm,Tnt:()=>eh.Tn,hnD:()=>c.hn,kZJ:()=>eh.kZ,EtT:()=>eh.Et,Gvm:()=>eh.Gv,Tj8:()=>c.Tj,KgX:()=>eh.Kg,Vh1:()=>c.Vh,TA3:()=>c.TA,iUN:()=>d.iU,$_c:()=>d.$_,vd6:()=>d.vd,K3:()=>d.K3,PZY:()=>d.PZ,ZGK:()=>eu.Z,yVN:()=>eu.y,$v4:()=>d.$v,KpY:()=>c.Kp,tdJ:()=>d.td,BWm:()=>d.BW,XuV:()=>d.Xu,TLE:()=>d.TL,wMU:()=>d.wM,DNI:()=>d.DN,z94:()=>d.z9,ou7:()=>d.ou,N5f:()=>d.N5,Dvh:()=>d.Dv,GWL:()=>d.GW,X_1:()=>d.X_,$OP:()=>d.$O,w20:()=>d.w2,jhA:()=>v.jh,dvp:()=>d.dv,xHs:()=>d.xH,boI:()=>d.bo,SnF:()=>ed.Sn,MdX:()=>ed.Md,M3Y:()=>v.M3,a56:()=>d.a5,BFN:()=>d.BF,unK:()=>d.un,Kw2:()=>d.Kw,$GP:()=>d.$G,mRf:()=>d.mR,vEz:()=>v.vE,R5R:()=>ec.R5,BN0:()=>ec.BN,JC0:()=>d.JC,vFD:()=>d.vF,NFi:()=>d.NF,oiR:()=>d.oi,K6u:()=>ec.K6,euA:()=>d.eu,yxQ:()=>d.yx,aEA:()=>d.aE,T5G:()=>c.T5,BRq:()=>c.BR,lVH:()=>c.lV,tGT:()=>c.tG,ADE:()=>v.AD,Bro:()=>p.B,OEu:()=>v.OE,DT4:()=>v.DT,zgn:()=>d.zg,Rhv:()=>d.Rh,dmB:()=>d.dm,zIs:()=>ec.zI,egF:()=>ec.eg,Pgy:()=>d.Pg,RqE:()=>d.Rq,pHD:()=>d.pH,KZx:()=>d.KZ,NuQ:()=>d.Nu,Eow:()=>d.Eo,$k3:()=>ep,UC0:()=>c.UC,JvX:()=>ec.Jv,Kog:()=>ec.Ko,nKi:()=>d.nK,RVs:()=>d.RV});var a,n,s,o,r,l,d=i(9692),c=i(160);class u{_listeners;constructor(){this._listeners=new Map}addEventListener(e,t){this.removeEventListener(e,t);let i=this._listeners.get(e);i||(i=[],this._listeners.set(e,i)),i.push(t)}dispatchEvent(e,t){let i=this._listeners.get(e);i?.forEach(e=>{e(t)})}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,t){let i=this._listeners.get(e);if(!i)return;let a=i.length,n=i.indexOf(t);n<d.z9||(a===d.LD?this._listeners.delete(e):i.splice(n,d.LD))}}var h=i(4008),p=i(1002),v=i(8346);let f="100%";async function g(e){let t=(0,c.TA)(e.url,e.index);if(!t)return e.fallback;let i=await fetch(t);return i.ok?await i.json():((0,p.t)().error(`${i.status.toString()} while retrieving config file`),e.fallback)}class m{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;initializers={effects:new Map,movers:new Map,pathGenerators:new Map,shapes:new Map,updaters:new Map};movers=new Map;pathGenerators=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;_allLoadersSet=new Set;_configs=new Map;_domArray=[];_eventDispatcher=new u;_executedSet=new Set;_initialized=!1;_isRunningLoaders=!1;_loadPromises=new Set;get configs(){let e={};for(let[t,i]of this._configs)e[t]=i;return e}get items(){return this._domArray}get version(){return"4.0.0-alpha.22"}addColorManager(e,t){this.colorManagers.set(e,t)}addConfig(e){let t=e.key??e.name??"default";this._configs.set(t,e),this._eventDispatcher.dispatchEvent(h.B.configAdded,{data:{name:t,config:e}})}addEasing(e,t){this.easingFunctions.get(e)||this.easingFunctions.set(e,t)}addEffect(e,t){this.initializers.effects.set(e,t)}addEventListener(e,t){this._eventDispatcher.addEventListener(e,t)}addMover(e,t){this.initializers.movers.set(e,t)}addParticleUpdater(e,t){this.initializers.updaters.set(e,t)}addPathGenerator(e,t){this.initializers.pathGenerators.set(e,t)}addPlugin(e){this.getPlugin(e.id)||this.plugins.push(e)}addPreset(e,t,i=!1){(i||!this.getPreset(e))&&this.presets.set(e,t)}addShape(e,t){for(let i of e)this.initializers.shapes.set(i,t)}checkVersion(e){if(this.version!==e)throw Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${e}`)}clearPlugins(e){this.effectDrawers.delete(e),this.movers.delete(e),this.shapeDrawers.delete(e),this.updaters.delete(e)}dispatchEvent(e,t){this._eventDispatcher.dispatchEvent(e,t)}getEasing(e){return this.easingFunctions.get(e)??(e=>e)}getEffectDrawers(e,t=!1){return(0,c.Ot)(e,this.effectDrawers,this.initializers.effects,t)}getMovers(e,t=!1){return(0,c.HQ)(e,this.movers,this.initializers.movers,t)}getPathGenerators(e,t=!1){return(0,c.Ot)(e,this.pathGenerators,this.initializers.pathGenerators,t)}getPlugin(e){return this.plugins.find(t=>t.id===e)}getPreset(e){return this.presets.get(e)}async getShapeDrawers(e,t=!1){return(0,c.Ot)(e,this.shapeDrawers,this.initializers.shapes,t)}async getUpdaters(e,t=!1){return(0,c.HQ)(e,this.updaters,this.initializers.updaters,t)}async init(){if(!this._initialized&&!this._isRunningLoaders){this._isRunningLoaders=!0,this._executedSet=new Set,this._allLoadersSet=new Set(this._loadPromises);try{for(let e of this._allLoadersSet)await this._runLoader(e,this._executedSet,this._allLoadersSet)}finally{this._loadPromises.clear(),this._isRunningLoaders=!1,this._initialized=!0}}}item(e){let{items:t}=this,i=t[e];return i?.destroyed?void t.splice(e,d.JC):i}async load(e){var t;let a,n;await this.init();let{Container:s}=await i.e(900).then(i.bind(i,6900)),o=e.id??e.element?.id??`tsparticles${Math.floor((0,v.G0)()*d.$v).toString()}`,{index:r,url:l}=e,u=l?await g({fallback:e.options,url:l,index:r}):e.options,h=(0,c.TA)(u,r),{items:p}=this,m=p.findIndex(e=>e.id.description===o),y=new s(this,o,h);if(m>=d.PZ){let e=this.item(m),t=e?d.xH:d.dv;e&&!e.destroyed&&e.destroy(!1),p.splice(m,t,y)}else p.push(y);let b=(e=>{let t,i=(0,c.T5)();if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===d.RF)t=e,t.dataset[d.eb]??=d.X$;else{let a=e.getElementsByTagName(d.RF)[d.Nx];a?(t=a).dataset[d.eb]=d.X$:((t=i.createElement(d.RF)).dataset[d.eb]=d.ce,e.appendChild(t))}return t.style.width||=f,t.style.height||=f,t})((t=e.element,a=(0,c.T5)(),(n=t??a.getElementById(o))||((n=a.createElement("div")).id=o,n.dataset[d.eb]=d.ce,a.body.append(n)),n));return y.canvas.loadCanvas(b),await y.start(),y}loadParticlesOptions(e,t,...i){let a=this.updaters.get(e);a&&a.forEach(e=>e.loadOptions?.(t,...i))}async refresh(e=!0){e&&await Promise.all(this.items.map(e=>e.refresh()))}async register(...e){if(this._initialized)throw Error("Register plugins can only be done before calling tsParticles.load()");for(let t of e)this._isRunningLoaders?await this._runLoader(t,this._executedSet,this._allLoadersSet):this._loadPromises.add(t)}removeEventListener(e,t){this._eventDispatcher.removeEventListener(e,t)}async _runLoader(e,t,i){t.has(e)||(t.add(e),i.add(e),await e(this))}}var y=i(5775),b=i(2981),x=i(9325),w=i(3031);(a=o||(o={})).clockwise="clockwise",a.counterClockwise="counter-clockwise",a.random="random";var z=i(8405),M=i(3768),S=i(1817),O=i(4734),R=i(5126),P=i(7196),k=i(658);(n=r||(r={})).linear="linear",n.radial="radial",n.random="random";var E=i(7542),T=i(1655);(s=l||(l={})).easeInBack="ease-in-back",s.easeInBounce="ease-in-bounce",s.easeInCirc="ease-in-circ",s.easeInCubic="ease-in-cubic",s.easeInElastic="ease-in-elastic",s.easeInExpo="ease-in-expo",s.easeInGaussian="ease-in-gaussian",s.easeInLinear="ease-in-linear",s.easeInQuad="ease-in-quad",s.easeInQuart="ease-in-quart",s.easeInQuint="ease-in-quint",s.easeInSigmoid="ease-in-sigmoid",s.easeInSine="ease-in-sine",s.easeInSmoothstep="ease-in-smoothstep",s.easeOutBack="ease-out-back",s.easeOutBounce="ease-out-bounce",s.easeOutCirc="ease-out-circ",s.easeOutCubic="ease-out-cubic",s.easeOutElastic="ease-out-elastic",s.easeOutExpo="ease-out-expo",s.easeOutGaussian="ease-out-gaussian",s.easeOutLinear="ease-out-linear",s.easeOutQuad="ease-out-quad",s.easeOutQuart="ease-out-quart",s.easeOutQuint="ease-out-quint",s.easeOutSigmoid="ease-out-sigmoid",s.easeOutSine="ease-out-sine",s.easeOutSmoothstep="ease-out-smoothstep",s.easeInOutBack="ease-in-out-back",s.easeInOutBounce="ease-in-out-bounce",s.easeInOutCirc="ease-in-out-circ",s.easeInOutCubic="ease-in-out-cubic",s.easeInOutElastic="ease-in-out-elastic",s.easeInOutExpo="ease-in-out-expo",s.easeInOutGaussian="ease-in-out-gaussian",s.easeInOutLinear="ease-in-out-linear",s.easeInOutQuad="ease-in-out-quad",s.easeInOutQuart="ease-in-out-quart",s.easeInOutQuint="ease-in-out-quint",s.easeInOutSigmoid="ease-in-out-sigmoid",s.easeInOutSine="ease-in-out-sine",s.easeInOutSmoothstep="ease-in-out-smoothstep";var F=i(34),_=i(8278),D=i(9529),A=i(9336),I=i(1014),L=i(4266),V=i(3226),G=i(4163),C=i(7544),$=i(2189),q=i(1558),Z=i(7891),H=i(2893),K=i(4181),B=i(4226),N=i(8195),j=i(3495),W=i(322),U=i(951),Y=i(2325),J=i(3915),X=i(785),Q=i(1862),ee=i(5610),et=i(366),ei=i(486),ea=i(8634),en=i(6906),es=i(3618),eo=i(7256),er=i(6829),el=i(6571),ed=i(3756),ec=i(1101),eu=i(4998),eh=i(6112);let ep=new m;globalThis.tsParticles=ep}},n={};function s(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return a[e](i,i.exports,s),i.exports}s.m=a,s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,i)=>(s.f[i](e,t),t),[])),s.u=e=>""+e+".min.js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},s.l=(e,t,i,a)=>{if(o[e])return void o[e].push(t);if(void 0!==i)for(var n,r,l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var c=l[d];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")=="@tsparticles/fireworks:"+i){n=c;break}}n||(r=!0,(n=document.createElement("script")).charset="utf-8",s.nc&&n.setAttribute("nonce",s.nc),n.setAttribute("data-webpack","@tsparticles/fireworks:"+i),n.src=e),o[e]=[t];var u=(t,i)=>{n.onerror=n.onload=null,clearTimeout(h);var a=o[e];if(delete o[e],n.parentNode&&n.parentNode.removeChild(n),a&&a.forEach(e=>e(i)),t)return t(i)},h=setTimeout(u.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=u.bind(null,n.onerror),n.onload=u.bind(null,n.onload),r&&document.head.appendChild(n)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.g.importScripts&&(r=s.g.location+"");var o,r,l=s.g.document;if(!r&&l&&(l.currentScript&&"SCRIPT"===l.currentScript.tagName.toUpperCase()&&(r=l.currentScript.src),!r)){var d=l.getElementsByTagName("script");if(d.length)for(var c=d.length-1;c>-1&&(!r||!/^http(s?):/.test(r));)r=d[c--].src}if(!r)throw Error("Automatic publicPath is not supported in this browser");s.p=r=r.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e={827:0},s.f.j=(t,i)=>{var a=s.o(e,t)?e[t]:void 0;if(0!==a)if(a)i.push(a[2]);else{var n=new Promise((i,n)=>a=e[t]=[i,n]);i.push(a[2]=n);var o=s.p+s.u(t),r=Error();s.l(o,i=>{if(s.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var n=i&&("load"===i.type?"missing":i.type),o=i&&i.target&&i.target.src;r.message="Loading chunk "+t+` failed.
|
|
2
|
+
(`+n+": "+o+")",r.name="ChunkLoadError",r.type=n,r.request=o,a[1](r)}},"chunk-"+t,t)}},t=(t,i)=>{var a,n,[o,r,l]=i,d=0;if(o.some(t=>0!==e[t])){for(a in r)s.o(r,a)&&(s.m[a]=r[a]);l&&l(s)}for(t&&t(i);d<o.length;d++)n=o[d],s.o(e,n)&&e[n]&&e[n][0](),e[n]=0},(i=this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i));var u={};s.r(u),s.d(u,{AlterType:()=>h.HKZ,AnimatableColor:()=>h.A9e,AnimationMode:()=>h.gmr,AnimationOptions:()=>h.pK_,AnimationStatus:()=>h.H_P,AnimationValueWithRandom:()=>h.Jmi,Background:()=>h.VS$,BaseRange:()=>h.dgY,Circle:()=>h.jlt,ColorAnimation:()=>h.evc,DestroyType:()=>h.VKE,EasingType:()=>h.mgy,EventType:()=>h.Bx4,FullScreen:()=>h.mcU,GradientType:()=>h.hqM,HslAnimation:()=>h.i74,LimitMode:()=>h.dtg,Move:()=>h.yUV,MoveAngle:()=>h.hzL,MoveAttract:()=>h.RE3,MoveCenter:()=>h.Zgv,MoveDirection:()=>h.FWc,MoveGravity:()=>h.y1u,MovePath:()=>h.vU7,Opacity:()=>h.Y4E,OpacityAnimation:()=>h.IhC,Options:()=>h.JYR,OptionsColor:()=>h.Oit,OutMode:()=>h.Yzx,OutModeDirection:()=>h.v5k,OutModes:()=>h.j$q,ParticleOutType:()=>h.x_I,ParticlesBounce:()=>h.wvn,ParticlesBounceFactor:()=>h.F5W,ParticlesDensity:()=>h.M1g,ParticlesNumber:()=>h.NeW,ParticlesNumberLimit:()=>h.Ad4,ParticlesOptions:()=>h.UOj,PixelMode:()=>h.qiC,Point:()=>h.bRX,RangedAnimationOptions:()=>h.Q4c,RangedAnimationValueWithRandom:()=>h.AIw,Rectangle:()=>h.M_G,ResizeEvent:()=>h.z0z,RotateDirection:()=>h.pTR,Shape:()=>h.ypk,Size:()=>h.or0,SizeAnimation:()=>h.qvJ,Spin:()=>h.tKH,StartValueType:()=>h.SKz,Stroke:()=>h.tcj,ValueWithRandom:()=>h.PVU,Vector:()=>h.Miz,Vector3d:()=>h.pGL,ZIndex:()=>h.Pyx,alterHsl:()=>h.yxh,animate:()=>h.i0Z,areBoundsInside:()=>h.O2_,arrayRandomIndex:()=>h.n02,calcExactPositionOrRandomFromSize:()=>h.NxB,calcExactPositionOrRandomFromSizeRanged:()=>h.qMV,calcPositionFromSize:()=>h.ehY,calcPositionOrRandomFromSize:()=>h.MhH,calcPositionOrRandomFromSizeRanged:()=>h.l1q,calculateBounds:()=>h.AEc,cancelAnimation:()=>h.pxm,canvasFirstIndex:()=>h.Nxk,canvasTag:()=>h.RFH,circleBounce:()=>h.pEn,circleBounceDataFromParticle:()=>h.Tgl,clamp:()=>h.qE8,clear:()=>h.IUd,clickRadius:()=>h.FSi,cloneStyle:()=>h.td3,collisionVelocity:()=>h.OWw,colorMix:()=>h.EYT,colorToHsl:()=>h.mKQ,colorToRgb:()=>h.qe,countOffset:()=>h.nqC,decayOffset:()=>h.WH8,deepExtend:()=>h.zwS,defaultAlpha:()=>h.aZx,defaultAngle:()=>h.tAJ,defaultDensityFactor:()=>h.lA,defaultFps:()=>h.z$P,defaultFpsLimit:()=>h.i8E,defaultLoops:()=>h.hKc,defaultOpacity:()=>h.hvP,defaultRadius:()=>h.M1H,defaultRatio:()=>h.$xb,defaultReduceFactor:()=>h.ZpR,defaultRemoveQuantity:()=>h.xd3,defaultRetryCount:()=>h.rqX,defaultRgbMin:()=>h.Fli,defaultTime:()=>h.tRb,defaultTransform:()=>h.UgP,defaultTransformValue:()=>h.zss,defaultVelocity:()=>h.jnW,degToRad:()=>h.puj,deleteCount:()=>h.LDU,double:()=>h.gdl,doublePI:()=>h.R1e,drawAfterEffect:()=>h.kac,drawBeforeEffect:()=>h.z5n,drawParticle:()=>h.p0m,drawParticlePlugin:()=>h.Wbn,drawShape:()=>h.KG7,drawShapeAfterDraw:()=>h.gF3,drawShapeBeforeDraw:()=>h.VGT,empty:()=>h.Iex,executeOnSingleOrMultiple:()=>h.wJ2,findItemFromSingleOrMultiple:()=>h.w3Z,fireworks:()=>x,generatedAttribute:()=>h.eb4,generatedFalse:()=>h.X$G,generatedTrue:()=>h.cei,getDistance:()=>h.YfF,getDistances:()=>h.vrU,getFullScreenStyle:()=>h.hJS,getHslAnimationFromHsl:()=>h.pzy,getHslFromAnimation:()=>h.O_i,getItemMapFromInitializer:()=>h.OtU,getItemsFromInitializer:()=>h.HQK,getLinkColor:()=>h._hh,getLinkRandomColor:()=>h.PGG,getLogger:()=>h.tZQ,getParticleBaseVelocity:()=>h.$mf,getParticleDirectionAngle:()=>h.JYE,getPosition:()=>h.E90,getRandom:()=>h.G0i,getRandomInRange:()=>h.e4g,getRandomRgbColor:()=>h.OHq,getRangeMax:()=>h.W9e,getRangeMin:()=>h.Sgh,getRangeValue:()=>h.VGA,getSize:()=>h.YCE,getStyleFromHsl:()=>h.LCf,getStyleFromRgb:()=>h.xxz,hMax:()=>h.vSh,hMin:()=>h.L1V,hPhase:()=>h.U0s,half:()=>h.MXx,hasMatchMedia:()=>h.q8J,hslToRgb:()=>h.YLU,hslaToRgba:()=>h.ayx,identity:()=>h.D_O,initParticleNumericAnimationValue:()=>h.XsS,inverseFactorNumerator:()=>h.hBr,isArray:()=>h.cyL,isBoolean:()=>h.Lmq,isFunction:()=>h.Tnt,isInArray:()=>h.hnD,isNull:()=>h.kZJ,isNumber:()=>h.EtT,isObject:()=>h.Gvm,isPointInside:()=>h.Tj8,isString:()=>h.KgX,itemFromArray:()=>h.Vh1,itemFromSingleOrMultiple:()=>h.TA3,lFactor:()=>h.iUN,lMax:()=>h.$_c,lMin:()=>h.vd6,lengthOffset:()=>h.K3,loadMinIndex:()=>h.PZY,loadOptions:()=>h.ZGK,loadParticlesOptions:()=>h.yVN,loadRandomFactor:()=>h.$v4,manageListener:()=>h.KpY,manualDefaultPosition:()=>h.tdJ,midColorValue:()=>h.BWm,millisecondsToSeconds:()=>h.XuV,minCoordinate:()=>h.TLE,minCount:()=>h.wMU,minFpsLimit:()=>h.DNI,minIndex:()=>h.z94,minLimit:()=>h.ou7,minRetries:()=>h.N5f,minStrokeWidth:()=>h.Dvh,minVelocity:()=>h.GWL,minZ:()=>h.X_1,minimumLength:()=>h.$OP,minimumSize:()=>h.w20,mix:()=>h.jhA,none:()=>h.dvp,one:()=>h.xHs,originPoint:()=>h.boI,paintBase:()=>h.SnF,paintImage:()=>h.MdX,parseAlpha:()=>h.M3Y,percentDenominator:()=>h.a56,phaseNumerator:()=>h.BFN,posOffset:()=>h.unK,qTreeCapacity:()=>h.Kw2,quarter:()=>h.$GP,randomColorValue:()=>h.mRf,randomInRangeValue:()=>h.vEz,rangeColorToHsl:()=>h.R5R,rangeColorToRgb:()=>h.BN0,removeDeleteCount:()=>h.JC0,removeMinIndex:()=>h.vFD,resizeEvent:()=>h.NFi,rgbMax:()=>h.oiR,rgbToHsl:()=>h.K6u,sMax:()=>h.euA,sMin:()=>h.yxQ,sNormalizedOffset:()=>h.aEA,safeDocument:()=>h.T5G,safeIntersectionObserver:()=>h.BRq,safeMatchMedia:()=>h.lVH,safeMutationObserver:()=>h.tGT,setAnimationFunctions:()=>h.ADE,setLogger:()=>h.Bro,setRandom:()=>h.OEu,setRangeValue:()=>h.DT4,sextuple:()=>h.zgn,sizeFactor:()=>h.Rhv,squareExp:()=>h.dmB,stringToAlpha:()=>h.zIs,stringToRgb:()=>h.egF,subdivideCount:()=>h.Pgy,threeQuarter:()=>h.RqE,touchDelay:()=>h.pHD,touchEndLengthOffset:()=>h.KZx,triple:()=>h.NuQ,tryCountIncrement:()=>h.Eow,tsParticles:()=>h.$k3,updateAnimation:()=>h.UC0,updateColor:()=>h.JvX,updateColorValue:()=>h.Kog,visibilityChangeEvent:()=>h.nKi,zIndexFactorOffset:()=>h.RVs});var h=s(5954);class p{background;brightness;colors;gravity;minHeight;rate;saturation;sounds;speed;splitCount;constructor(){this.background="none",this.brightness={min:-30,max:30},this.colors=["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93"],this.gravity=5,this.minHeight={min:10,max:30},this.rate=10,this.saturation={min:-30,max:30},this.sounds=!0,this.speed={min:5,max:15},this.splitCount={min:75,max:150}}load(e){(0,h.kZJ)(e)||(void 0!==e.background&&(this.background=e.background),void 0!==e.colors&&((0,h.cyL)(e.colors)?this.colors=[...e.colors]:this.colors=e.colors),void 0!==e.brightness&&(this.brightness=(0,h.DT4)(e.brightness)),void 0!==e.gravity&&(this.gravity=(0,h.DT4)(e.gravity)),void 0!==e.minHeight&&(this.minHeight=(0,h.DT4)(e.minHeight)),void 0!==e.rate&&(this.rate=(0,h.DT4)(e.rate)),void 0!==e.saturation&&(this.saturation=(0,h.DT4)(e.saturation)),void 0!==e.sounds&&(this.sounds=e.sounds),void 0!==e.speed&&(this.speed=(0,h.DT4)(e.speed)),void 0!==e.splitCount&&(this.splitCount=(0,h.DT4)(e.splitCount)))}}let v=!1,f=!1,g=e=>{let t=e.data;return"circle"===t.particle.shape&&!!t.particle.splitCount&&t.particle.splitCount<2};class m{_container;constructor(e){this._container=e}pause(){this._container.pause()}play(){this._container.play()}stop(){this._container.stop()}}async function y(e){if(!v){if(f)return new Promise(e=>{let t=setInterval(()=>{v&&(clearInterval(t),e())},100)});f=!0,e.checkVersion("4.0.0-alpha.22"),await e.register(async e=>{let[{loadBasic:t},{loadEmittersPlugin:i},{loadEmittersShapeSquare:a},{loadSoundsPlugin:n},{loadRotateUpdater:o},{loadDestroyUpdater:r},{loadLifeUpdater:l},{loadTrailEffect:d}]=await Promise.all([s.e(884).then(s.bind(s,7884)),s.e(795).then(s.bind(s,795)),s.e(281).then(s.bind(s,3281)),s.e(678).then(s.bind(s,1678)),s.e(139).then(s.bind(s,3139)),s.e(280).then(s.bind(s,5280)),s.e(576).then(s.bind(s,3576)),s.e(28).then(s.bind(s,2028))]);await t(e),await Promise.all([i(e),n(e),o(e),r(e),l(e),d(e)]),await a(e)}),f=!1,v=!0}}async function b(e,t,i){await y(h.$k3);let a=new p;a.load(t);let n={detectRetina:!0,background:{color:a.background},fullScreen:{enable:!!i},fpsLimit:60,emitters:{direction:h.FWc.top,life:{count:0,duration:.1,delay:.1},rate:{delay:(0,h.EtT)(a.rate)?1/a.rate:{min:1/(0,h.Sgh)(a.rate),max:1/(0,h.W9e)(a.rate)},quantity:1},size:{width:100,height:0},position:{y:100,x:50}},particles:{number:{value:0},color:{value:"#fff"},destroy:{mode:"split",bounds:{top:(0,h.DT4)(a.minHeight)},split:{sizeOffset:!1,count:1,factor:{value:.333333},rate:{value:a.splitCount},colorOffset:{s:a.saturation,l:a.brightness},particles:{color:{value:a.colors},number:{value:0},opacity:{value:{min:.1,max:1},animation:{enable:!0,speed:1,sync:!1,startValue:h.SKz.max,destroy:h.VKE.min}},effect:{type:"trail",options:{trail:{length:{min:5,max:10}}}},shape:{type:"circle"},size:{value:{min:1,max:2},animation:{enable:!0,speed:5,count:1,sync:!1,startValue:h.SKz.min,destroy:h.VKE.none}},life:{count:1,duration:{value:{min:.25,max:.5}}},move:{decay:{min:.05,max:.1},enable:!0,gravity:{enable:!0,inverse:!1,acceleration:(0,h.DT4)(a.gravity)},speed:(0,h.DT4)(a.speed),direction:"none",outModes:h.Yzx.destroy}}}},life:{count:1},effect:{type:"trail",options:{trail:{length:{min:10,max:30},minWidth:1,maxWidth:1}}},shape:{type:"circle"},size:{value:1},opacity:{value:.5},rotate:{path:!0},move:{enable:!0,gravity:{acceleration:15,enable:!0,inverse:!0,maxSpeed:100},speed:{min:10,max:20},outModes:{default:h.Yzx.destroy,top:h.Yzx.none}}},sounds:{enable:a.sounds,events:[{event:h.Bx4.particleRemoved,filter:g,audio:["https://particles.js.org/audio/explosion0.mp3","https://particles.js.org/audio/explosion1.mp3","https://particles.js.org/audio/explosion2.mp3"]}],volume:50}},s=await h.$k3.load({id:e,element:i,options:n});if(s)return new m(s)}async function x(e,t){let i,a;return(0,h.KgX)(e)?(i=e,a=t??{}):(i="fireworks",a=e??{}),b(i,a)}return x.create=async(e,t)=>b(e.id||"fireworks",t??{},e),x.init=async()=>{await y(h.$k3)},x.version="4.0.0-alpha.22",globalThis.fireworks=x,u})());
|
package/tsparticles.fireworks.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Demo / Generator : https://particles.js.org/
|
|
5
5
|
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
6
|
* How to use? : Check the GitHub README
|
|
7
|
-
* v4.0.0-alpha.
|
|
7
|
+
* v4.0.0-alpha.22
|
|
8
8
|
*/
|
|
9
9
|
/*
|
|
10
10
|
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
@@ -134,7 +134,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
|
|
|
134
134
|
\***********************************/
|
|
135
135
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
136
136
|
|
|
137
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ fireworks: () => (/* binding */ fireworks)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n/* harmony import */ var _FireworkOptions_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FireworkOptions.js */ \"./dist/browser/FireworkOptions.js\");\n\n\nlet initialized = false, initializing = false;\nconst minSplitCount = 2;\nconst explodeSoundCheck = (args)=>{\n const data = args.data;\n return data.particle.shape === \"circle\" && !!data.particle.splitCount && data.particle.splitCount < minSplitCount;\n};\nclass FireworksInstance {\n _container;\n constructor(container){\n this._container = container;\n }\n pause() {\n this._container.pause();\n }\n play() {\n this._container.play();\n }\n stop() {\n this._container.stop();\n }\n}\nasync function initPlugins(engine) {\n if (initialized) {\n return;\n }\n if (initializing) {\n return new Promise((resolve)=>{\n const timeout = 100, interval = setInterval(()=>{\n if (!initialized) {\n return;\n }\n clearInterval(interval);\n resolve();\n }, timeout);\n });\n }\n initializing = true;\n engine.checkVersion(\"4.0.0-alpha.21\");\n await engine.register(async (e)=>{\n const [{ loadBasic }, { loadEmittersPlugin }, { loadEmittersShapeSquare }, { loadSoundsPlugin }, { loadRotateUpdater }, { loadDestroyUpdater }, { loadLifeUpdater }, { loadTrailEffect }] = await Promise.all([\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/basic */ \"@tsparticles/basic\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-emitters */ \"@tsparticles/plugin-emitters\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-emitters-shape-square */ \"@tsparticles/plugin-emitters-shape-square\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-sounds */ \"@tsparticles/plugin-sounds\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-rotate */ \"@tsparticles/updater-rotate\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-destroy */ \"@tsparticles/updater-destroy\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-life */ \"@tsparticles/updater-life\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/effect-trail */ \"@tsparticles/effect-trail\", 19))\n ]);\n await loadBasic(e);\n await Promise.all([\n loadEmittersPlugin(e),\n loadSoundsPlugin(e),\n loadRotateUpdater(e),\n loadDestroyUpdater(e),\n loadLifeUpdater(e),\n loadTrailEffect(e)\n ]);\n await loadEmittersShapeSquare(e);\n });\n initializing = false;\n initialized = true;\n}\nfunction getOptions(options, canvas) {\n const identity = 1;\n return {\n detectRetina: true,\n background: {\n color: options.background\n },\n fullScreen: {\n enable: !!canvas\n },\n fpsLimit: 60,\n emitters: {\n direction: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.MoveDirection.top,\n life: {\n count: 0,\n duration: 0.1,\n delay: 0.1\n },\n rate: {\n delay: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNumber)(options.rate) ? identity / options.rate : {\n min: identity / (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMin)(options.rate),\n max: identity / (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMax)(options.rate)\n },\n quantity: 1\n },\n size: {\n width: 100,\n height: 0\n },\n position: {\n y: 100,\n x: 50\n }\n },\n particles: {\n number: {\n value: 0\n },\n color: {\n value: \"#fff\"\n },\n destroy: {\n mode: \"split\",\n bounds: {\n top: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(options.minHeight)\n },\n split: {\n sizeOffset: false,\n count: 1,\n factor: {\n value: 0.333333\n },\n rate: {\n value: options.splitCount\n },\n colorOffset: {\n s: options.saturation,\n l: options.brightness\n },\n particles: {\n color: {\n value: options.colors\n },\n number: {\n value: 0\n },\n opacity: {\n value: {\n min: 0.1,\n max: 1\n },\n animation: {\n enable: true,\n speed: 1,\n sync: false,\n startValue: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.StartValueType.max,\n destroy: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.DestroyType.min\n }\n },\n effect: {\n type: \"trail\",\n options: {\n trail: {\n length: {\n min: 5,\n max: 10\n }\n }\n }\n },\n shape: {\n type: \"circle\"\n },\n size: {\n value: {\n min: 1,\n max: 2\n },\n animation: {\n enable: true,\n speed: 5,\n count: 1,\n sync: false,\n startValue: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.StartValueType.min,\n destroy: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.DestroyType.none\n }\n },\n life: {\n count: 1,\n duration: {\n value: {\n min: 0.25,\n max: 0.5\n }\n }\n },\n move: {\n decay: {\n min: 0.05,\n max: 0.1\n },\n enable: true,\n gravity: {\n enable: true,\n inverse: false,\n acceleration: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(options.gravity)\n },\n speed: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(options.speed),\n direction: \"none\",\n outModes: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.destroy\n }\n }\n }\n },\n life: {\n count: 1\n },\n effect: {\n type: \"trail\",\n options: {\n trail: {\n length: {\n min: 10,\n max: 30\n },\n minWidth: 1,\n maxWidth: 1\n }\n }\n },\n shape: {\n type: \"circle\"\n },\n size: {\n value: 1\n },\n opacity: {\n value: 0.5\n },\n rotate: {\n path: true\n },\n move: {\n enable: true,\n gravity: {\n acceleration: 15,\n enable: true,\n inverse: true,\n maxSpeed: 100\n },\n speed: {\n min: 10,\n max: 20\n },\n outModes: {\n default: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.destroy,\n top: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.none\n }\n }\n },\n sounds: {\n enable: options.sounds,\n events: [\n {\n event: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.EventType.particleRemoved,\n filter: explodeSoundCheck,\n audio: [\n \"https://particles.js.org/audio/explosion0.mp3\",\n \"https://particles.js.org/audio/explosion1.mp3\",\n \"https://particles.js.org/audio/explosion2.mp3\"\n ]\n }\n ],\n volume: 50\n }\n };\n}\nasync function getFireworksInstance(id, sourceOptions, canvas) {\n await initPlugins(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles);\n const options = new _FireworkOptions_js__WEBPACK_IMPORTED_MODULE_1__.FireworkOptions();\n options.load(sourceOptions);\n const particlesOptions = getOptions(options, canvas), container = await _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles.load({\n id,\n element: canvas,\n options: particlesOptions\n });\n if (!container) {\n return;\n }\n return new FireworksInstance(container);\n}\nasync function fireworks(idOrOptions, sourceOptions) {\n let id, options;\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isString)(idOrOptions)) {\n id = idOrOptions;\n options = sourceOptions ?? {};\n } else {\n id = \"fireworks\";\n options = idOrOptions ?? {};\n }\n return getFireworksInstance(id, options);\n}\nfireworks.create = async (canvas, options)=>{\n const id = canvas.id || \"fireworks\";\n return getFireworksInstance(id, options ?? {}, canvas);\n};\nfireworks.init = async ()=>{\n await initPlugins(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles);\n};\nfireworks.version = \"4.0.0-alpha.21\";\nglobalThis.fireworks = fireworks;\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/./dist/browser/fireworks.js?\n}");
|
|
137
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ fireworks: () => (/* binding */ fireworks)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n/* harmony import */ var _FireworkOptions_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FireworkOptions.js */ \"./dist/browser/FireworkOptions.js\");\n\n\nlet initialized = false, initializing = false;\nconst minSplitCount = 2;\nconst explodeSoundCheck = (args)=>{\n const data = args.data;\n return data.particle.shape === \"circle\" && !!data.particle.splitCount && data.particle.splitCount < minSplitCount;\n};\nclass FireworksInstance {\n _container;\n constructor(container){\n this._container = container;\n }\n pause() {\n this._container.pause();\n }\n play() {\n this._container.play();\n }\n stop() {\n this._container.stop();\n }\n}\nasync function initPlugins(engine) {\n if (initialized) {\n return;\n }\n if (initializing) {\n return new Promise((resolve)=>{\n const timeout = 100, interval = setInterval(()=>{\n if (!initialized) {\n return;\n }\n clearInterval(interval);\n resolve();\n }, timeout);\n });\n }\n initializing = true;\n engine.checkVersion(\"4.0.0-alpha.22\");\n await engine.register(async (e)=>{\n const [{ loadBasic }, { loadEmittersPlugin }, { loadEmittersShapeSquare }, { loadSoundsPlugin }, { loadRotateUpdater }, { loadDestroyUpdater }, { loadLifeUpdater }, { loadTrailEffect }] = await Promise.all([\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/basic */ \"@tsparticles/basic\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-emitters */ \"@tsparticles/plugin-emitters\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-emitters-shape-square */ \"@tsparticles/plugin-emitters-shape-square\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-sounds */ \"@tsparticles/plugin-sounds\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-rotate */ \"@tsparticles/updater-rotate\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-destroy */ \"@tsparticles/updater-destroy\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-life */ \"@tsparticles/updater-life\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/effect-trail */ \"@tsparticles/effect-trail\", 19))\n ]);\n await loadBasic(e);\n await Promise.all([\n loadEmittersPlugin(e),\n loadSoundsPlugin(e),\n loadRotateUpdater(e),\n loadDestroyUpdater(e),\n loadLifeUpdater(e),\n loadTrailEffect(e)\n ]);\n await loadEmittersShapeSquare(e);\n });\n initializing = false;\n initialized = true;\n}\nfunction getOptions(options, canvas) {\n const identity = 1;\n return {\n detectRetina: true,\n background: {\n color: options.background\n },\n fullScreen: {\n enable: !!canvas\n },\n fpsLimit: 60,\n emitters: {\n direction: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.MoveDirection.top,\n life: {\n count: 0,\n duration: 0.1,\n delay: 0.1\n },\n rate: {\n delay: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNumber)(options.rate) ? identity / options.rate : {\n min: identity / (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMin)(options.rate),\n max: identity / (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMax)(options.rate)\n },\n quantity: 1\n },\n size: {\n width: 100,\n height: 0\n },\n position: {\n y: 100,\n x: 50\n }\n },\n particles: {\n number: {\n value: 0\n },\n color: {\n value: \"#fff\"\n },\n destroy: {\n mode: \"split\",\n bounds: {\n top: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(options.minHeight)\n },\n split: {\n sizeOffset: false,\n count: 1,\n factor: {\n value: 0.333333\n },\n rate: {\n value: options.splitCount\n },\n colorOffset: {\n s: options.saturation,\n l: options.brightness\n },\n particles: {\n color: {\n value: options.colors\n },\n number: {\n value: 0\n },\n opacity: {\n value: {\n min: 0.1,\n max: 1\n },\n animation: {\n enable: true,\n speed: 1,\n sync: false,\n startValue: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.StartValueType.max,\n destroy: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.DestroyType.min\n }\n },\n effect: {\n type: \"trail\",\n options: {\n trail: {\n length: {\n min: 5,\n max: 10\n }\n }\n }\n },\n shape: {\n type: \"circle\"\n },\n size: {\n value: {\n min: 1,\n max: 2\n },\n animation: {\n enable: true,\n speed: 5,\n count: 1,\n sync: false,\n startValue: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.StartValueType.min,\n destroy: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.DestroyType.none\n }\n },\n life: {\n count: 1,\n duration: {\n value: {\n min: 0.25,\n max: 0.5\n }\n }\n },\n move: {\n decay: {\n min: 0.05,\n max: 0.1\n },\n enable: true,\n gravity: {\n enable: true,\n inverse: false,\n acceleration: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(options.gravity)\n },\n speed: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(options.speed),\n direction: \"none\",\n outModes: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.destroy\n }\n }\n }\n },\n life: {\n count: 1\n },\n effect: {\n type: \"trail\",\n options: {\n trail: {\n length: {\n min: 10,\n max: 30\n },\n minWidth: 1,\n maxWidth: 1\n }\n }\n },\n shape: {\n type: \"circle\"\n },\n size: {\n value: 1\n },\n opacity: {\n value: 0.5\n },\n rotate: {\n path: true\n },\n move: {\n enable: true,\n gravity: {\n acceleration: 15,\n enable: true,\n inverse: true,\n maxSpeed: 100\n },\n speed: {\n min: 10,\n max: 20\n },\n outModes: {\n default: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.destroy,\n top: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.none\n }\n }\n },\n sounds: {\n enable: options.sounds,\n events: [\n {\n event: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.EventType.particleRemoved,\n filter: explodeSoundCheck,\n audio: [\n \"https://particles.js.org/audio/explosion0.mp3\",\n \"https://particles.js.org/audio/explosion1.mp3\",\n \"https://particles.js.org/audio/explosion2.mp3\"\n ]\n }\n ],\n volume: 50\n }\n };\n}\nasync function getFireworksInstance(id, sourceOptions, canvas) {\n await initPlugins(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles);\n const options = new _FireworkOptions_js__WEBPACK_IMPORTED_MODULE_1__.FireworkOptions();\n options.load(sourceOptions);\n const particlesOptions = getOptions(options, canvas), container = await _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles.load({\n id,\n element: canvas,\n options: particlesOptions\n });\n if (!container) {\n return;\n }\n return new FireworksInstance(container);\n}\nasync function fireworks(idOrOptions, sourceOptions) {\n let id, options;\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isString)(idOrOptions)) {\n id = idOrOptions;\n options = sourceOptions ?? {};\n } else {\n id = \"fireworks\";\n options = idOrOptions ?? {};\n }\n return getFireworksInstance(id, options);\n}\nfireworks.create = async (canvas, options)=>{\n const id = canvas.id || \"fireworks\";\n return getFireworksInstance(id, options ?? {}, canvas);\n};\nfireworks.init = async ()=>{\n await initPlugins(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles);\n};\nfireworks.version = \"4.0.0-alpha.22\";\nglobalThis.fireworks = fireworks;\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/./dist/browser/fireworks.js?\n}");
|
|
138
138
|
|
|
139
139
|
/***/ },
|
|
140
140
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/engine"),require("@tsparticles/effect-trail"),require("@tsparticles/updater-life"),require("@tsparticles/updater-destroy"),require("@tsparticles/updater-rotate"),require("@tsparticles/plugin-sounds"),require("@tsparticles/plugin-emitters-shape-square"),require("@tsparticles/plugin-emitters"),require("@tsparticles/basic"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine","@tsparticles/effect-trail","@tsparticles/updater-life","@tsparticles/updater-destroy","@tsparticles/updater-rotate","@tsparticles/plugin-sounds","@tsparticles/plugin-emitters-shape-square","@tsparticles/plugin-emitters","@tsparticles/basic"],t);else{var i="object"==typeof exports?t(require("@tsparticles/engine"),require("@tsparticles/effect-trail"),require("@tsparticles/updater-life"),require("@tsparticles/updater-destroy"),require("@tsparticles/updater-rotate"),require("@tsparticles/plugin-sounds"),require("@tsparticles/plugin-emitters-shape-square"),require("@tsparticles/plugin-emitters"),require("@tsparticles/basic")):t(e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window);for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}}(this,(e,t,i,r,s,a,o,n,l)=>(()=>{"use strict";var p,u,c={145(e){e.exports=l},637(e){e.exports=t},303(t){t.exports=e},526(e){e.exports=n},140(e){e.exports=o},933(e){e.exports=a},173(e){e.exports=r},75(e){e.exports=i},668(e){e.exports=s}},d={};function m(e){var t=d[e];if(void 0!==t)return t.exports;var i=d[e]={exports:{}};return c[e](i,i.exports,m),i.exports}u=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,m.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var i=Object.create(null);m.r(i);var r={};p=p||[null,u({}),u([]),u(u)];for(var s=2&t&&e;("object"==typeof s||"function"==typeof s)&&!~p.indexOf(s);s=u(s))Object.getOwnPropertyNames(s).forEach(t=>r[t]=()=>e[t]);return r.default=()=>e,m.d(i,r),i},m.d=(e,t)=>{for(var i in t)m.o(t,i)&&!m.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},m.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),m.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var f={};m.r(f),m.d(f,{fireworks:()=>P});var h=m(303);class g{background;brightness;colors;gravity;minHeight;rate;saturation;sounds;speed;splitCount;constructor(){this.background="none",this.brightness={min:-30,max:30},this.colors=["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93"],this.gravity=5,this.minHeight={min:10,max:30},this.rate=10,this.saturation={min:-30,max:30},this.sounds=!0,this.speed={min:5,max:15},this.splitCount={min:75,max:150}}load(e){(0,h.isNull)(e)||(void 0!==e.background&&(this.background=e.background),void 0!==e.colors&&((0,h.isArray)(e.colors)?this.colors=[...e.colors]:this.colors=e.colors),void 0!==e.brightness&&(this.brightness=(0,h.setRangeValue)(e.brightness)),void 0!==e.gravity&&(this.gravity=(0,h.setRangeValue)(e.gravity)),void 0!==e.minHeight&&(this.minHeight=(0,h.setRangeValue)(e.minHeight)),void 0!==e.rate&&(this.rate=(0,h.setRangeValue)(e.rate)),void 0!==e.saturation&&(this.saturation=(0,h.setRangeValue)(e.saturation)),void 0!==e.sounds&&(this.sounds=e.sounds),void 0!==e.speed&&(this.speed=(0,h.setRangeValue)(e.speed)),void 0!==e.splitCount&&(this.splitCount=(0,h.setRangeValue)(e.splitCount)))}}let y=!1,v=!1,b=e=>{let t=e.data;return"circle"===t.particle.shape&&!!t.particle.splitCount&&t.particle.splitCount<2};class x{_container;constructor(e){this._container=e}pause(){this._container.pause()}play(){this._container.play()}stop(){this._container.stop()}}async function w(e){if(!y){if(v)return new Promise(e=>{let t=setInterval(()=>{y&&(clearInterval(t),e())},100)});v=!0,e.checkVersion("4.0.0-alpha.
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/engine"),require("@tsparticles/effect-trail"),require("@tsparticles/updater-life"),require("@tsparticles/updater-destroy"),require("@tsparticles/updater-rotate"),require("@tsparticles/plugin-sounds"),require("@tsparticles/plugin-emitters-shape-square"),require("@tsparticles/plugin-emitters"),require("@tsparticles/basic"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine","@tsparticles/effect-trail","@tsparticles/updater-life","@tsparticles/updater-destroy","@tsparticles/updater-rotate","@tsparticles/plugin-sounds","@tsparticles/plugin-emitters-shape-square","@tsparticles/plugin-emitters","@tsparticles/basic"],t);else{var i="object"==typeof exports?t(require("@tsparticles/engine"),require("@tsparticles/effect-trail"),require("@tsparticles/updater-life"),require("@tsparticles/updater-destroy"),require("@tsparticles/updater-rotate"),require("@tsparticles/plugin-sounds"),require("@tsparticles/plugin-emitters-shape-square"),require("@tsparticles/plugin-emitters"),require("@tsparticles/basic")):t(e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window);for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}}(this,(e,t,i,r,s,a,o,n,l)=>(()=>{"use strict";var p,u,c={145(e){e.exports=l},637(e){e.exports=t},303(t){t.exports=e},526(e){e.exports=n},140(e){e.exports=o},933(e){e.exports=a},173(e){e.exports=r},75(e){e.exports=i},668(e){e.exports=s}},d={};function m(e){var t=d[e];if(void 0!==t)return t.exports;var i=d[e]={exports:{}};return c[e](i,i.exports,m),i.exports}u=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,m.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var i=Object.create(null);m.r(i);var r={};p=p||[null,u({}),u([]),u(u)];for(var s=2&t&&e;("object"==typeof s||"function"==typeof s)&&!~p.indexOf(s);s=u(s))Object.getOwnPropertyNames(s).forEach(t=>r[t]=()=>e[t]);return r.default=()=>e,m.d(i,r),i},m.d=(e,t)=>{for(var i in t)m.o(t,i)&&!m.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},m.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),m.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var f={};m.r(f),m.d(f,{fireworks:()=>P});var h=m(303);class g{background;brightness;colors;gravity;minHeight;rate;saturation;sounds;speed;splitCount;constructor(){this.background="none",this.brightness={min:-30,max:30},this.colors=["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93"],this.gravity=5,this.minHeight={min:10,max:30},this.rate=10,this.saturation={min:-30,max:30},this.sounds=!0,this.speed={min:5,max:15},this.splitCount={min:75,max:150}}load(e){(0,h.isNull)(e)||(void 0!==e.background&&(this.background=e.background),void 0!==e.colors&&((0,h.isArray)(e.colors)?this.colors=[...e.colors]:this.colors=e.colors),void 0!==e.brightness&&(this.brightness=(0,h.setRangeValue)(e.brightness)),void 0!==e.gravity&&(this.gravity=(0,h.setRangeValue)(e.gravity)),void 0!==e.minHeight&&(this.minHeight=(0,h.setRangeValue)(e.minHeight)),void 0!==e.rate&&(this.rate=(0,h.setRangeValue)(e.rate)),void 0!==e.saturation&&(this.saturation=(0,h.setRangeValue)(e.saturation)),void 0!==e.sounds&&(this.sounds=e.sounds),void 0!==e.speed&&(this.speed=(0,h.setRangeValue)(e.speed)),void 0!==e.splitCount&&(this.splitCount=(0,h.setRangeValue)(e.splitCount)))}}let y=!1,v=!1,b=e=>{let t=e.data;return"circle"===t.particle.shape&&!!t.particle.splitCount&&t.particle.splitCount<2};class x{_container;constructor(e){this._container=e}pause(){this._container.pause()}play(){this._container.play()}stop(){this._container.stop()}}async function w(e){if(!y){if(v)return new Promise(e=>{let t=setInterval(()=>{y&&(clearInterval(t),e())},100)});v=!0,e.checkVersion("4.0.0-alpha.22"),await e.register(async e=>{let[{loadBasic:t},{loadEmittersPlugin:i},{loadEmittersShapeSquare:r},{loadSoundsPlugin:s},{loadRotateUpdater:a},{loadDestroyUpdater:o},{loadLifeUpdater:n},{loadTrailEffect:l}]=await Promise.all([Promise.resolve().then(m.t.bind(m,145,19)),Promise.resolve().then(m.t.bind(m,526,19)),Promise.resolve().then(m.t.bind(m,140,19)),Promise.resolve().then(m.t.bind(m,933,19)),Promise.resolve().then(m.t.bind(m,668,19)),Promise.resolve().then(m.t.bind(m,173,19)),Promise.resolve().then(m.t.bind(m,75,19)),Promise.resolve().then(m.t.bind(m,637,19))]);await t(e),await Promise.all([i(e),s(e),a(e),o(e),n(e),l(e)]),await r(e)}),v=!1,y=!0}}async function q(e,t,i){await w(h.tsParticles);let r=new g;r.load(t);let s={detectRetina:!0,background:{color:r.background},fullScreen:{enable:!!i},fpsLimit:60,emitters:{direction:h.MoveDirection.top,life:{count:0,duration:.1,delay:.1},rate:{delay:(0,h.isNumber)(r.rate)?1/r.rate:{min:1/(0,h.getRangeMin)(r.rate),max:1/(0,h.getRangeMax)(r.rate)},quantity:1},size:{width:100,height:0},position:{y:100,x:50}},particles:{number:{value:0},color:{value:"#fff"},destroy:{mode:"split",bounds:{top:(0,h.setRangeValue)(r.minHeight)},split:{sizeOffset:!1,count:1,factor:{value:.333333},rate:{value:r.splitCount},colorOffset:{s:r.saturation,l:r.brightness},particles:{color:{value:r.colors},number:{value:0},opacity:{value:{min:.1,max:1},animation:{enable:!0,speed:1,sync:!1,startValue:h.StartValueType.max,destroy:h.DestroyType.min}},effect:{type:"trail",options:{trail:{length:{min:5,max:10}}}},shape:{type:"circle"},size:{value:{min:1,max:2},animation:{enable:!0,speed:5,count:1,sync:!1,startValue:h.StartValueType.min,destroy:h.DestroyType.none}},life:{count:1,duration:{value:{min:.25,max:.5}}},move:{decay:{min:.05,max:.1},enable:!0,gravity:{enable:!0,inverse:!1,acceleration:(0,h.setRangeValue)(r.gravity)},speed:(0,h.setRangeValue)(r.speed),direction:"none",outModes:h.OutMode.destroy}}}},life:{count:1},effect:{type:"trail",options:{trail:{length:{min:10,max:30},minWidth:1,maxWidth:1}}},shape:{type:"circle"},size:{value:1},opacity:{value:.5},rotate:{path:!0},move:{enable:!0,gravity:{acceleration:15,enable:!0,inverse:!0,maxSpeed:100},speed:{min:10,max:20},outModes:{default:h.OutMode.destroy,top:h.OutMode.none}}},sounds:{enable:r.sounds,events:[{event:h.EventType.particleRemoved,filter:b,audio:["https://particles.js.org/audio/explosion0.mp3","https://particles.js.org/audio/explosion1.mp3","https://particles.js.org/audio/explosion2.mp3"]}],volume:50}},a=await h.tsParticles.load({id:e,element:i,options:s});if(a)return new x(a)}async function P(e,t){let i,r;return(0,h.isString)(e)?(i=e,r=t??{}):(i="fireworks",r=e??{}),q(i,r)}return P.create=async(e,t)=>q(e.id||"fireworks",t??{},e),P.init=async()=>{await w(h.tsParticles)},P.version="4.0.0-alpha.22",globalThis.fireworks=P,f})());
|
package/umd/fireworks.js
CHANGED
|
@@ -83,7 +83,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
initializing = true;
|
|
86
|
-
engine.checkVersion("4.0.0-alpha.
|
|
86
|
+
engine.checkVersion("4.0.0-alpha.22");
|
|
87
87
|
await engine.register(async (e) => {
|
|
88
88
|
const [{ loadBasic }, { loadEmittersPlugin }, { loadEmittersShapeSquare }, { loadSoundsPlugin }, { loadRotateUpdater }, { loadDestroyUpdater }, { loadLifeUpdater }, { loadTrailEffect },] = await Promise.all([
|
|
89
89
|
__syncRequire ? Promise.resolve().then(() => __importStar(require("@tsparticles/basic"))) : new Promise((resolve_1, reject_1) => { require(["@tsparticles/basic"], resolve_1, reject_1); }).then(__importStar),
|
|
@@ -328,6 +328,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
328
328
|
fireworks.init = async () => {
|
|
329
329
|
await initPlugins(engine_1.tsParticles);
|
|
330
330
|
};
|
|
331
|
-
fireworks.version = "4.0.0-alpha.
|
|
331
|
+
fireworks.version = "4.0.0-alpha.22";
|
|
332
332
|
globalThis.fireworks = fireworks;
|
|
333
333
|
});
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Demo / Generator : https://particles.js.org/
|
|
5
5
|
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
6
|
* How to use? : Check the GitHub README
|
|
7
|
-
* v4.0.0-alpha.
|
|
7
|
+
* v4.0.0-alpha.22
|
|
8
8
|
*/
|
|
9
9
|
"use strict";
|
|
10
10
|
/*
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
\**************************************************/
|
|
24
24
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
25
|
|
|
26
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadColorUpdater: () => (/* binding */ loadColorUpdater)\n/* harmony export */ });\nasync function loadColorUpdater(engine) {\n engine.checkVersion(\"4.0.0-alpha.
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadColorUpdater: () => (/* binding */ loadColorUpdater)\n/* harmony export */ });\nasync function loadColorUpdater(engine) {\n engine.checkVersion(\"4.0.0-alpha.22\");\n await engine.register((e)=>{\n e.addParticleUpdater(\"color\", async (container)=>{\n const { ColorUpdater } = await __webpack_require__.e(/*! import() */ \"updaters_color_dist_browser_ColorUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./ColorUpdater.js */ \"../../updaters/color/dist/browser/ColorUpdater.js\"));\n return new ColorUpdater(e, container);\n });\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../updaters/color/dist/browser/index.js?\n}");
|
|
27
27
|
|
|
28
28
|
/***/ }
|
|
29
29
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Demo / Generator : https://particles.js.org/
|
|
5
5
|
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
6
|
* How to use? : Check the GitHub README
|
|
7
|
-
* v4.0.0-alpha.
|
|
7
|
+
* v4.0.0-alpha.22
|
|
8
8
|
*/
|
|
9
9
|
"use strict";
|
|
10
10
|
/*
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
\****************************************************/
|
|
24
24
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
25
|
|
|
26
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadDestroyUpdater: () => (/* binding */ loadDestroyUpdater)\n/* harmony export */ });\nasync function loadDestroyUpdater(engine) {\n engine.checkVersion(\"4.0.0-alpha.
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadDestroyUpdater: () => (/* binding */ loadDestroyUpdater)\n/* harmony export */ });\nasync function loadDestroyUpdater(engine) {\n engine.checkVersion(\"4.0.0-alpha.22\");\n await engine.register((e)=>{\n e.addParticleUpdater(\"destroy\", async (container)=>{\n const { DestroyUpdater } = await __webpack_require__.e(/*! import() */ \"updaters_destroy_dist_browser_DestroyUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./DestroyUpdater.js */ \"../../updaters/destroy/dist/browser/DestroyUpdater.js\"));\n return new DestroyUpdater(e, container);\n });\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../updaters/destroy/dist/browser/index.js?\n}");
|
|
27
27
|
|
|
28
28
|
/***/ }
|
|
29
29
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Demo / Generator : https://particles.js.org/
|
|
5
5
|
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
6
|
* How to use? : Check the GitHub README
|
|
7
|
-
* v4.0.0-alpha.
|
|
7
|
+
* v4.0.0-alpha.22
|
|
8
8
|
*/
|
|
9
9
|
"use strict";
|
|
10
10
|
/*
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
\*************************************************/
|
|
24
24
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
25
|
|
|
26
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadLifeUpdater: () => (/* binding */ loadLifeUpdater)\n/* harmony export */ });\nasync function loadLifeUpdater(engine) {\n engine.checkVersion(\"4.0.0-alpha.
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadLifeUpdater: () => (/* binding */ loadLifeUpdater)\n/* harmony export */ });\nasync function loadLifeUpdater(engine) {\n engine.checkVersion(\"4.0.0-alpha.22\");\n await engine.register((e)=>{\n e.addParticleUpdater(\"life\", async (container)=>{\n const { LifeUpdater } = await __webpack_require__.e(/*! import() */ \"updaters_life_dist_browser_LifeUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./LifeUpdater.js */ \"../../updaters/life/dist/browser/LifeUpdater.js\"));\n return new LifeUpdater(container);\n });\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../updaters/life/dist/browser/index.js?\n}");
|
|
27
27
|
|
|
28
28
|
/***/ }
|
|
29
29
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Demo / Generator : https://particles.js.org/
|
|
5
5
|
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
6
|
* How to use? : Check the GitHub README
|
|
7
|
-
* v4.0.0-alpha.
|
|
7
|
+
* v4.0.0-alpha.22
|
|
8
8
|
*/
|
|
9
9
|
"use strict";
|
|
10
10
|
/*
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
\****************************************************/
|
|
24
24
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
25
|
|
|
26
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadOpacityUpdater: () => (/* binding */ loadOpacityUpdater)\n/* harmony export */ });\nasync function loadOpacityUpdater(engine) {\n engine.checkVersion(\"4.0.0-alpha.
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadOpacityUpdater: () => (/* binding */ loadOpacityUpdater)\n/* harmony export */ });\nasync function loadOpacityUpdater(engine) {\n engine.checkVersion(\"4.0.0-alpha.22\");\n await engine.register((e)=>{\n e.addParticleUpdater(\"opacity\", async (container)=>{\n const { OpacityUpdater } = await __webpack_require__.e(/*! import() */ \"updaters_opacity_dist_browser_OpacityUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./OpacityUpdater.js */ \"../../updaters/opacity/dist/browser/OpacityUpdater.js\"));\n return new OpacityUpdater(container);\n });\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../updaters/opacity/dist/browser/index.js?\n}");
|
|
27
27
|
|
|
28
28
|
/***/ }
|
|
29
29
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Demo / Generator : https://particles.js.org/
|
|
5
5
|
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
6
|
* How to use? : Check the GitHub README
|
|
7
|
-
* v4.0.0-alpha.
|
|
7
|
+
* v4.0.0-alpha.22
|
|
8
8
|
*/
|
|
9
9
|
"use strict";
|
|
10
10
|
/*
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
\*****************************************************/
|
|
24
24
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
25
|
|
|
26
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadOutModesUpdater: () => (/* binding */ loadOutModesUpdater)\n/* harmony export */ });\nasync function loadOutModesUpdater(engine) {\n engine.checkVersion(\"4.0.0-alpha.
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadOutModesUpdater: () => (/* binding */ loadOutModesUpdater)\n/* harmony export */ });\nasync function loadOutModesUpdater(engine) {\n engine.checkVersion(\"4.0.0-alpha.22\");\n await engine.register((e)=>{\n e.addParticleUpdater(\"outModes\", async (container)=>{\n const { OutOfCanvasUpdater } = await __webpack_require__.e(/*! import() */ \"updaters_outModes_dist_browser_OutOfCanvasUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./OutOfCanvasUpdater.js */ \"../../updaters/outModes/dist/browser/OutOfCanvasUpdater.js\"));\n return new OutOfCanvasUpdater(container);\n });\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../updaters/outModes/dist/browser/index.js?\n}");
|
|
27
27
|
|
|
28
28
|
/***/ }
|
|
29
29
|
|