@tsparticles/engine 4.0.0-beta.0 → 4.0.0-beta.10

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.
Files changed (242) hide show
  1. package/67.min.js +1 -0
  2. package/README.md +53 -965
  3. package/browser/Core/CanvasManager.js +303 -0
  4. package/browser/Core/Container.js +61 -34
  5. package/browser/Core/Engine.js +26 -138
  6. package/browser/Core/Particle.js +29 -28
  7. package/{cjs/Core/Particles.js → browser/Core/ParticlesManager.js} +27 -57
  8. package/browser/Core/RenderManager.js +303 -0
  9. package/browser/Core/Retina.js +3 -8
  10. package/browser/Core/Utils/PluginManager.js +145 -0
  11. package/browser/Options/Classes/Options.js +8 -21
  12. package/browser/Options/Classes/Particles/Paint.js +20 -0
  13. package/browser/Options/Classes/Particles/ParticlesOptions.js +65 -27
  14. package/browser/Options/Interfaces/Particles/IPaint.js +1 -0
  15. package/browser/Types/CanvasContextType.js +1 -0
  16. package/browser/Utils/CanvasUtils.js +4 -4
  17. package/browser/Utils/ColorUtils.js +21 -21
  18. package/browser/Utils/LogUtils.js +1 -0
  19. package/browser/Utils/OptionsUtils.js +2 -2
  20. package/browser/Utils/Utils.js +16 -10
  21. package/browser/exports.js +1 -0
  22. package/cjs/Core/CanvasManager.js +303 -0
  23. package/cjs/Core/Container.js +61 -34
  24. package/cjs/Core/Engine.js +26 -138
  25. package/cjs/Core/Particle.js +29 -28
  26. package/{esm/Core/Particles.js → cjs/Core/ParticlesManager.js} +27 -57
  27. package/cjs/Core/RenderManager.js +303 -0
  28. package/cjs/Core/Retina.js +3 -8
  29. package/cjs/Core/Utils/PluginManager.js +145 -0
  30. package/cjs/Options/Classes/Options.js +8 -21
  31. package/cjs/Options/Classes/Particles/Paint.js +20 -0
  32. package/cjs/Options/Classes/Particles/ParticlesOptions.js +65 -27
  33. package/cjs/Options/Interfaces/Particles/IPaint.js +1 -0
  34. package/cjs/Types/CanvasContextType.js +1 -0
  35. package/cjs/Utils/CanvasUtils.js +4 -4
  36. package/cjs/Utils/ColorUtils.js +21 -21
  37. package/cjs/Utils/LogUtils.js +1 -0
  38. package/cjs/Utils/OptionsUtils.js +2 -2
  39. package/cjs/Utils/Utils.js +16 -10
  40. package/cjs/exports.js +1 -0
  41. package/dist_browser_Core_Container_js.js +24 -14
  42. package/esm/Core/CanvasManager.js +303 -0
  43. package/esm/Core/Container.js +61 -34
  44. package/esm/Core/Engine.js +26 -138
  45. package/esm/Core/Particle.js +29 -28
  46. package/{browser/Core/Particles.js → esm/Core/ParticlesManager.js} +27 -57
  47. package/esm/Core/RenderManager.js +303 -0
  48. package/esm/Core/Retina.js +3 -8
  49. package/esm/Core/Utils/PluginManager.js +145 -0
  50. package/esm/Options/Classes/Options.js +8 -21
  51. package/esm/Options/Classes/Particles/Paint.js +20 -0
  52. package/esm/Options/Classes/Particles/ParticlesOptions.js +65 -27
  53. package/esm/Options/Interfaces/Particles/IPaint.js +1 -0
  54. package/esm/Types/CanvasContextType.js +1 -0
  55. package/esm/Utils/CanvasUtils.js +4 -4
  56. package/esm/Utils/ColorUtils.js +21 -21
  57. package/esm/Utils/LogUtils.js +1 -0
  58. package/esm/Utils/OptionsUtils.js +2 -2
  59. package/esm/Utils/Utils.js +16 -10
  60. package/esm/exports.js +1 -0
  61. package/package.json +2 -3
  62. package/report.html +84 -29
  63. package/tsparticles.engine.js +31 -11
  64. package/tsparticles.engine.min.js +2 -2
  65. package/types/Core/CanvasManager.d.ts +39 -0
  66. package/types/Core/Container.d.ts +26 -7
  67. package/types/Core/Engine.d.ts +2 -54
  68. package/types/Core/Interfaces/IContainerPlugin.d.ts +8 -7
  69. package/types/Core/Interfaces/IDrawParticleParams.d.ts +2 -1
  70. package/types/Core/Interfaces/IPalette.d.ts +15 -2
  71. package/types/Core/Interfaces/IParticleRetinaProps.d.ts +4 -4
  72. package/types/Core/Interfaces/IParticleUpdater.d.ts +2 -1
  73. package/types/Core/Interfaces/IShapeDrawData.d.ts +2 -1
  74. package/types/Core/Particle.d.ts +4 -4
  75. package/types/Core/{Particles.d.ts → ParticlesManager.d.ts} +4 -11
  76. package/types/Core/{Canvas.d.ts → RenderManager.d.ts} +12 -33
  77. package/types/Core/Retina.d.ts +0 -2
  78. package/types/Core/Utils/PluginManager.d.ts +62 -0
  79. package/types/Options/Classes/Options.d.ts +3 -3
  80. package/types/Options/Classes/Particles/Paint.d.ts +10 -0
  81. package/types/Options/Classes/Particles/ParticlesOptions.d.ts +7 -7
  82. package/types/Options/Interfaces/Particles/IPaint.d.ts +6 -0
  83. package/types/Options/Interfaces/Particles/IParticlesOptions.d.ts +3 -4
  84. package/types/Types/CanvasContextType.d.ts +1 -0
  85. package/types/Utils/CanvasUtils.d.ts +8 -5
  86. package/types/Utils/ColorUtils.d.ts +8 -8
  87. package/types/Utils/LogUtils.d.ts +1 -0
  88. package/types/Utils/OptionsUtils.d.ts +2 -2
  89. package/types/export-types.d.ts +5 -2
  90. package/types/exports.d.ts +1 -0
  91. package/164.min.js +0 -1
  92. package/browser/Core/Canvas.js +0 -570
  93. package/cjs/Core/Canvas.js +0 -570
  94. package/esm/Core/Canvas.js +0 -570
  95. package/umd/Core/Canvas.js +0 -584
  96. package/umd/Core/Container.js +0 -356
  97. package/umd/Core/Engine.js +0 -295
  98. package/umd/Core/Interfaces/Colors.js +0 -12
  99. package/umd/Core/Interfaces/IBounds.js +0 -12
  100. package/umd/Core/Interfaces/IBubbleParticleData.js +0 -12
  101. package/umd/Core/Interfaces/ICircleBouncer.js +0 -12
  102. package/umd/Core/Interfaces/IColorManager.js +0 -12
  103. package/umd/Core/Interfaces/IContainerPlugin.js +0 -12
  104. package/umd/Core/Interfaces/ICoordinates.js +0 -12
  105. package/umd/Core/Interfaces/IDelta.js +0 -12
  106. package/umd/Core/Interfaces/IDimension.js +0 -12
  107. package/umd/Core/Interfaces/IDistance.js +0 -12
  108. package/umd/Core/Interfaces/IDrawParticleParams.js +0 -12
  109. package/umd/Core/Interfaces/IEffectDrawer.js +0 -12
  110. package/umd/Core/Interfaces/ILoadParams.js +0 -12
  111. package/umd/Core/Interfaces/IPalette.js +0 -12
  112. package/umd/Core/Interfaces/IParticleColorStyle.js +0 -12
  113. package/umd/Core/Interfaces/IParticleHslAnimation.js +0 -12
  114. package/umd/Core/Interfaces/IParticleLife.js +0 -12
  115. package/umd/Core/Interfaces/IParticleOpacityData.js +0 -12
  116. package/umd/Core/Interfaces/IParticleRetinaProps.js +0 -12
  117. package/umd/Core/Interfaces/IParticleRoll.js +0 -12
  118. package/umd/Core/Interfaces/IParticleRotateData.js +0 -12
  119. package/umd/Core/Interfaces/IParticleTransformValues.js +0 -12
  120. package/umd/Core/Interfaces/IParticleUpdater.js +0 -12
  121. package/umd/Core/Interfaces/IParticleValueAnimation.js +0 -12
  122. package/umd/Core/Interfaces/IPlugin.js +0 -12
  123. package/umd/Core/Interfaces/IPositionFromSizeParams.js +0 -12
  124. package/umd/Core/Interfaces/IRangeValue.js +0 -12
  125. package/umd/Core/Interfaces/IShapeDrawData.js +0 -12
  126. package/umd/Core/Interfaces/IShapeDrawer.js +0 -12
  127. package/umd/Core/Interfaces/IShapeValues.js +0 -12
  128. package/umd/Core/Interfaces/ISlowParticleData.js +0 -12
  129. package/umd/Core/Particle.js +0 -432
  130. package/umd/Core/Particles.js +0 -407
  131. package/umd/Core/Retina.js +0 -52
  132. package/umd/Core/Utils/Constants.js +0 -23
  133. package/umd/Core/Utils/EventListeners.js +0 -102
  134. package/umd/Core/Utils/Ranges.js +0 -91
  135. package/umd/Core/Utils/SpatialHashGrid.js +0 -116
  136. package/umd/Core/Utils/Vectors.js +0 -126
  137. package/umd/Enums/AnimationStatus.js +0 -18
  138. package/umd/Enums/Directions/MoveDirection.js +0 -27
  139. package/umd/Enums/Directions/OutModeDirection.js +0 -20
  140. package/umd/Enums/Directions/RotateDirection.js +0 -19
  141. package/umd/Enums/Modes/AnimationMode.js +0 -20
  142. package/umd/Enums/Modes/LimitMode.js +0 -18
  143. package/umd/Enums/Modes/OutMode.js +0 -21
  144. package/umd/Enums/Modes/PixelMode.js +0 -18
  145. package/umd/Enums/RangeType.js +0 -18
  146. package/umd/Enums/Types/AlterType.js +0 -18
  147. package/umd/Enums/Types/DestroyType.js +0 -19
  148. package/umd/Enums/Types/EasingType.js +0 -58
  149. package/umd/Enums/Types/EventType.js +0 -28
  150. package/umd/Enums/Types/GradientType.js +0 -19
  151. package/umd/Enums/Types/ParticleOutType.js +0 -19
  152. package/umd/Enums/Types/StartValueType.js +0 -19
  153. package/umd/Options/Classes/AnimatableColor.js +0 -52
  154. package/umd/Options/Classes/AnimationOptions.js +0 -79
  155. package/umd/Options/Classes/Background/Background.js +0 -56
  156. package/umd/Options/Classes/ColorAnimation.js +0 -44
  157. package/umd/Options/Classes/FullScreen/FullScreen.js +0 -34
  158. package/umd/Options/Classes/HslAnimation.js +0 -30
  159. package/umd/Options/Classes/Options.js +0 -171
  160. package/umd/Options/Classes/OptionsColor.js +0 -42
  161. package/umd/Options/Classes/Particles/Bounce/ParticlesBounce.js +0 -31
  162. package/umd/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +0 -21
  163. package/umd/Options/Classes/Particles/Effect/Effect.js +0 -46
  164. package/umd/Options/Classes/Particles/Fill.js +0 -42
  165. package/umd/Options/Classes/Particles/Move/Move.js +0 -120
  166. package/umd/Options/Classes/Particles/Move/MoveAngle.js +0 -35
  167. package/umd/Options/Classes/Particles/Move/MoveCenter.js +0 -45
  168. package/umd/Options/Classes/Particles/Move/MoveGravity.js +0 -45
  169. package/umd/Options/Classes/Particles/Move/OutModes.js +0 -38
  170. package/umd/Options/Classes/Particles/Move/Path/MovePath.js +0 -46
  171. package/umd/Options/Classes/Particles/Move/Spin.js +0 -40
  172. package/umd/Options/Classes/Particles/Number/ParticlesDensity.js +0 -41
  173. package/umd/Options/Classes/Particles/Number/ParticlesNumber.js +0 -37
  174. package/umd/Options/Classes/Particles/Number/ParticlesNumberLimit.js +0 -35
  175. package/umd/Options/Classes/Particles/Opacity/Opacity.js +0 -35
  176. package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.js +0 -34
  177. package/umd/Options/Classes/Particles/ParticlesOptions.js +0 -116
  178. package/umd/Options/Classes/Particles/Shape/Shape.js +0 -46
  179. package/umd/Options/Classes/Particles/Size/Size.js +0 -35
  180. package/umd/Options/Classes/Particles/Size/SizeAnimation.js +0 -34
  181. package/umd/Options/Classes/Particles/Stroke.js +0 -39
  182. package/umd/Options/Classes/Particles/ZIndex/ZIndex.js +0 -42
  183. package/umd/Options/Classes/ResizeEvent.js +0 -34
  184. package/umd/Options/Classes/ValueWithRandom.js +0 -56
  185. package/umd/Options/Interfaces/Background/IBackground.js +0 -12
  186. package/umd/Options/Interfaces/FullScreen/IFullScreen.js +0 -12
  187. package/umd/Options/Interfaces/IAnimatable.js +0 -12
  188. package/umd/Options/Interfaces/IAnimatableColor.js +0 -12
  189. package/umd/Options/Interfaces/IAnimation.js +0 -12
  190. package/umd/Options/Interfaces/IColorAnimation.js +0 -12
  191. package/umd/Options/Interfaces/IHslAnimation.js +0 -12
  192. package/umd/Options/Interfaces/IOptionLoader.js +0 -12
  193. package/umd/Options/Interfaces/IOptions.js +0 -12
  194. package/umd/Options/Interfaces/IOptionsColor.js +0 -12
  195. package/umd/Options/Interfaces/IResizeEvent.js +0 -12
  196. package/umd/Options/Interfaces/IValueWithRandom.js +0 -12
  197. package/umd/Options/Interfaces/Particles/Bounce/IParticlesBounce.js +0 -12
  198. package/umd/Options/Interfaces/Particles/Effect/IEffect.js +0 -12
  199. package/umd/Options/Interfaces/Particles/IFill.js +0 -12
  200. package/umd/Options/Interfaces/Particles/IParticlesOptions.js +0 -12
  201. package/umd/Options/Interfaces/Particles/IStroke.js +0 -12
  202. package/umd/Options/Interfaces/Particles/Move/IMove.js +0 -12
  203. package/umd/Options/Interfaces/Particles/Move/IMoveAngle.js +0 -12
  204. package/umd/Options/Interfaces/Particles/Move/IMoveCenter.js +0 -12
  205. package/umd/Options/Interfaces/Particles/Move/IMoveGravity.js +0 -12
  206. package/umd/Options/Interfaces/Particles/Move/IOutModes.js +0 -12
  207. package/umd/Options/Interfaces/Particles/Move/ISpin.js +0 -12
  208. package/umd/Options/Interfaces/Particles/Move/Path/IMovePath.js +0 -12
  209. package/umd/Options/Interfaces/Particles/Number/IParticlesDensity.js +0 -12
  210. package/umd/Options/Interfaces/Particles/Number/IParticlesNumber.js +0 -12
  211. package/umd/Options/Interfaces/Particles/Number/IParticlesNumberLimit.js +0 -12
  212. package/umd/Options/Interfaces/Particles/Opacity/IOpacity.js +0 -12
  213. package/umd/Options/Interfaces/Particles/Opacity/IOpacityAnimation.js +0 -12
  214. package/umd/Options/Interfaces/Particles/Shape/IShape.js +0 -12
  215. package/umd/Options/Interfaces/Particles/Size/ISize.js +0 -12
  216. package/umd/Options/Interfaces/Particles/Size/ISizeAnimation.js +0 -12
  217. package/umd/Options/Interfaces/Particles/ZIndex/IZIndex.js +0 -12
  218. package/umd/Types/CustomEventArgs.js +0 -12
  219. package/umd/Types/CustomEventListener.js +0 -12
  220. package/umd/Types/EasingFunction.js +0 -12
  221. package/umd/Types/EngineInitializers.js +0 -12
  222. package/umd/Types/ExportResult.js +0 -12
  223. package/umd/Types/ISourceOptions.js +0 -12
  224. package/umd/Types/ParticlesGroups.js +0 -12
  225. package/umd/Types/PathOptions.js +0 -12
  226. package/umd/Types/RangeValue.js +0 -12
  227. package/umd/Types/RecursivePartial.js +0 -12
  228. package/umd/Types/ShapeData.js +0 -12
  229. package/umd/Types/SingleOrMultiple.js +0 -12
  230. package/umd/Utils/CanvasUtils.js +0 -145
  231. package/umd/Utils/ColorUtils.js +0 -395
  232. package/umd/Utils/EventDispatcher.js +0 -63
  233. package/umd/Utils/LogUtils.js +0 -36
  234. package/umd/Utils/MathUtils.js +0 -203
  235. package/umd/Utils/OptionsUtils.js +0 -25
  236. package/umd/Utils/TypeUtils.js +0 -40
  237. package/umd/Utils/Utils.js +0 -484
  238. package/umd/bundle.js +0 -32
  239. package/umd/export-types.js +0 -12
  240. package/umd/exports.js +0 -82
  241. package/umd/index.js +0 -32
  242. package/umd/initEngine.js +0 -17
@@ -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,n,o,s,r,l,d={1590(e,t,i){i.d(t,{$G:()=>L,$_:()=>E,$v:()=>K,$x:()=>O,BF:()=>eg,BW:()=>p,DN:()=>N,D_:()=>ed,Dv:()=>eu,Eo:()=>Y,Fl:()=>em,GW:()=>C,Ie:()=>D,JC:()=>q,K3:()=>eo,L1:()=>F,LD:()=>er,MX:()=>l,NF:()=>o,Nu:()=>ep,Nx:()=>W,PZ:()=>X,Pf:()=>ew,R1:()=>v,RF:()=>x,RV:()=>Z,Rq:()=>V,U0:()=>I,Ug:()=>c,WH:()=>U,X$:()=>b,X_:()=>ee,Xu:()=>d,Zp:()=>P,a5:()=>r,aE:()=>ev,aZ:()=>m,bo:()=>u,ce:()=>y,dm:()=>M,dv:()=>Q,eb:()=>a,eu:()=>T,gd:()=>f,hB:()=>k,hK:()=>eb,hv:()=>G,i8:()=>j,iU:()=>ec,iX:()=>z,jn:()=>ey,lA:()=>es,mR:()=>h,nK:()=>s,nq:()=>ei,oi:()=>R,ou:()=>et,rq:()=>w,tA:()=>el,tR:()=>ex,vF:()=>H,vS:()=>_,vd:()=>eh,w2:()=>B,wM:()=>ea,xH:()=>J,xd:()=>S,yj:()=>n,yx:()=>A,z$:()=>g,z9:()=>en,zg:()=>ef,zs:()=>$});let a="generated",n="source-over",o="resize",s="visibilitychange",r=100,l=.5,d=1e3,u={x:0,y:0,z:0},c={a:1,b:0,c:0,d:1},h="random",p="mid",f=2,v=2*Math.PI,g=60,m=1,y="true",b="false",x="canvas",w=0,M=2,z=100,S=1,O=1,P=1,k=1,R=255,_=360,T=100,E=100,F=0,A=0,I=60,D=0,L=.25,V=.75,C=0,$=1,B=0,Z=1,G=1,q=1,H=0,j=120,N=0,W=0,K=1e4,X=0,J=1,Q=0,U=1,Y=1,ee=0,et=0,ei=1,ea=0,en=0,eo=1,es=1,er=1,el=0,ed=1,eu=0,ec=1,eh=0,ep=3,ef=6,ev=1,eg=1,em=0,ey=0,eb=0,ex=0,ew=1},5821(e,t,i){i.d(t,{dg:()=>r,jl:()=>l,M_:()=>d}),(a=n||(n={})).circle="circle",a.rectangle="rectangle";var a,n,o=i(3884),s=i(1590);class r{position;type;constructor(e,t,i){this.position={x:e,y:t},this.type=i}_resetPosition(e,t){this.position.x=e,this.position.y=t}}class l extends r{radius;constructor(e,t,i){super(e,t,n.circle),this.radius=i}contains(e){return(0,o.gp)(e,this.position,this.radius)}intersects(e){let t=this.position,i=e.position,a=this.radius,o=Math.abs(i.x-t.x),r=Math.abs(i.y-t.y);if(e instanceof l||e.type===n.circle)return a+e.radius>Math.hypot(o,r);if(e instanceof d||e.type===n.rectangle){let{width:t,height:i}=e.size;return Math.pow(o-t,s.dm)+Math.pow(r-i,s.dm)<=a**s.dm||o<=a+t&&r<=a+i||o<=t||r<=i}return!1}reset(e,t,i){return this._resetPosition(e,t),this.radius=i,this}}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);if(!(e instanceof d))return!1;let t=this.size.width,i=this.size.height,a=this.position,n=e.position,o=e.size,s=o.width,r=o.height;return n.x<a.x+t&&n.x+s>a.x&&n.y<a.y+i&&n.y+r>a.y}reset(e,t,i,a){return this._resetPosition(e,t),this.size.width=i,this.size.height=a,this}}},2067(e,t,i){i.d(t,{M:()=>s,p:()=>o});var a=i(1590);function n(e){return"z"in e?e.z:a.bo.z}class o{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 o.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 o.create(e.x,e.y,n(e))}static create(e,t,i){return"number"==typeof e?new o(e,t??a.bo.y,i??a.bo.z):new o(e.x,e.y,n(e))}add(e){return o.create(this.x+e.x,this.y+e.y,this.z+n(e))}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=n(e)}copy(){return o.clone(this)}div(e){return o.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 o.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 o.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=n(e)}sub(e){return o.create(this.x-e.x,this.y-e.y,this.z-n(e))}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=n(e)}_updateFromAngle(e,t){this.x=Math.cos(e)*t,this.y=Math.sin(e)*t}}class s extends o{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)}}},3096(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).increasing="increasing",n.decreasing="decreasing"},7613(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"},5735(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"},3494(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"},3443(e,t,i){var a,n;i.d(t,{d:()=>a}),(n=a||(a={})).delete="delete",n.wait="wait"},3652(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"},3048(e,t,i){var a,n;i.d(t,{q:()=>a}),(n=a||(a={})).precise="precise",n.percent="percent"},1826(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).darken="darken",n.enlighten="enlighten"},7320(e,t,i){var a,n;i.d(t,{V:()=>a}),(n=a||(a={})).none="none",n.max="max",n.min="min"},8202(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"},6492(e,t,i){var a,n;i.d(t,{x:()=>a}),(n=a||(a={})).normal="normal",n.inside="inside",n.outside="outside"},8113(e,t,i){var a,n;i.d(t,{S:()=>a}),(n=a||(a={})).max="max",n.min="min",n.random="random"},4036(e,t,i){i.d(t,{A:()=>s});var a=i(8130),n=i(9892),o=i(3930);class s extends o.O{animation;constructor(){super(),this.animation=new n.i}static create(e,t){let i=new s;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))}}},127(e,t,i){i.d(t,{Q:()=>l,p:()=>r});var a=i(3494),n=i(8113),o=i(8130),s=i(3884);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,o.kZ)(e)||(void 0!==e.count&&(this.count=(0,s.DT)(e.count)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,s.DT)(e.speed)),void 0!==e.decay&&(this.decay=(0,s.DT)(e.decay)),void 0!==e.delay&&(this.delay=(0,s.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,o.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.startValue&&(this.startValue=e.startValue))}}},4162(e,t,i){i.d(t,{V:()=>o});var a=i(3930),n=i(8130);class o{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))}}},580(e,t,i){i.d(t,{e:()=>s});var a=i(127),n=i(8130),o=i(3884);class s extends a.p{max;min;offset;constructor(e,t){super(),this.min=e,this.max=t,this.offset=0,this.sync=!0}load(e){super.load(e),(0,n.kZ)(e)||(void 0!==e.max&&(this.max=e.max),void 0!==e.min&&(this.min=e.min),void 0!==e.offset&&(this.offset=(0,o.DT)(e.offset)))}}},3012(e,t,i){i.d(t,{m:()=>n});var a=i(8130);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))}}},9892(e,t,i){i.d(t,{i:()=>s});var a=i(1590),n=i(580),o=i(8130);class s{h=new n.e(a.L1,a.vS);l=new n.e(a.vd,a.$_);s=new n.e(a.yx,a.eu);load(e){(0,o.kZ)(e)||(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}},9289(e,t,i){i.d(t,{J:()=>u});var a=i(4874),n=i(8130),o=i(4162),s=i(3012),r=i(7959),l=i(3692),d=i(3884);class u{autoPlay;background;clear;defaultThemes;delay;detectRetina;duration;fpsLimit;fullScreen;hdr;key;name;palette;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 o.V,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new s.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&&(this.preset=e.preset,(0,a.wJ)(this.preset,e=>{this._importPreset(e)})),void 0!==e.palette&&(this.palette=e.palette,this._importPalette(this.palette)),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 o=e.fullScreen;(0,n.Lm)(o)?this.fullScreen.enable=o:this.fullScreen.load(o),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)})}_importPalette=e=>{let t=this._engine.getPalette(e);t&&this.load({background:{color:t.background},blend:{enable:!0,mode:t.blendMode},particles:{fill:{color:t.fill?{value:t.colors}:void 0,enable:t.fill},stroke:t.fill?void 0:t.colors.map(e=>({color:{value:e},width:1}))}})};_importPreset=e=>{this.load(this._engine.getPreset(e))}}},3930(e,t,i){i.d(t,{O:()=>n});var a=i(8130);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))}}},5439(e,t,i){i.d(t,{w:()=>o});var a=i(6912),n=i(8130);class o{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))}}},6912(e,t,i){i.d(t,{F:()=>n});var a=i(7397);class n extends a.PV{constructor(){super(),this.value=1}}},4534(e,t,i){i.d(t,{S:()=>s});var a=i(4036),n=i(8130),o=i(3884);class s{color;enable;opacity;constructor(){this.enable=!0,this.color=new a.A,this.color.value="#fff",this.opacity=1}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.A.create(this.color,e.color)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.opacity&&(this.opacity=(0,o.DT)(e.opacity)))}}},7764(e,t,i){i.d(t,{y:()=>h});var a=i(7613),n=i(8130),o=i(8577),s=i(6189),r=i(6604),l=i(2135),d=i(3085),u=i(9693),c=i(3884);class h{angle;center;decay;direction;distance;drift;enable;gravity;outModes;path;random;size;speed;spin;straight;vibrate;warp;constructor(){this.angle=new o.h,this.center=new s.Z,this.decay=0,this.distance={},this.direction=a.F.none,this.drift=0,this.enable=!1,this.gravity=new r.y,this.path=new l.v,this.outModes=new d.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.center.load(e.center),void 0!==e.decay&&(this.decay=(0,c.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,c.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,c.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)}}},8577(e,t,i){i.d(t,{h:()=>o});var a=i(8130),n=i(3884);class o{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)))}}},6189(e,t,i){i.d(t,{Z:()=>o});var a=i(3048),n=i(8130);class o{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))}}},6604(e,t,i){i.d(t,{y:()=>o});var a=i(8130),n=i(3884);class o{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)))}}},3085(e,t,i){i.d(t,{j:()=>o});var a=i(3652),n=i(8130);class o{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)}}},2135(e,t,i){i.d(t,{v:()=>s});var a=i(7397),n=i(4874),o=i(8130);class s{clamp;delay;enable;generator;options;constructor(){this.clamp=!0,this.delay=new a.PV,this.enable=!1,this.options={}}load(e){!(0,o.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)))}}},9693(e,t,i){i.d(t,{t:()=>s});var a=i(4874),n=i(8130),o=i(3884);class s{acceleration;enable;position;constructor(){this.acceleration=0,this.enable=!1}load(e){!(0,n.kZ)(e)&&(void 0!==e.acceleration&&(this.acceleration=(0,o.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),e.position&&(this.position=(0,a.zw)({},e.position)))}}},5980(e,t,i){i.d(t,{M:()=>n});var a=i(8130);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)}}},1867(e,t,i){i.d(t,{N:()=>s});var a=i(5980),n=i(7076),o=i(8130);class s{density;limit;value;constructor(){this.density=new a.M,this.limit=new n.A,this.value=0}load(e){(0,o.kZ)(e)||(this.density.load(e.density),this.limit.load(e.limit),void 0!==e.value&&(this.value=e.value))}}},7076(e,t,i){i.d(t,{A:()=>o});var a=i(3443),n=i(8130);class o{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))}}},3280(e,t,i){i.d(t,{Y:()=>s});var a=i(9080),n=i(7397),o=i(8130);class s extends n.AI{animation;constructor(){super(),this.animation=new a.I,this.value=1}load(e){if((0,o.kZ)(e))return;super.load(e);let t=e.animation;void 0!==t&&this.animation.load(t)}}},9080(e,t,i){i.d(t,{I:()=>s});var a=i(7320),n=i(127),o=i(8130);class s extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=2}load(e){super.load(e),(0,o.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},9896(e,t,i){i.d(t,{U:()=>v});var a=i(4874),n=i(8130);class o{close;options;type;constructor(){this.close=!0,this.options={},this.type=[]}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.type&&(this.type=e.type)}}var s=i(4534),r=i(7764),l=i(3280),d=i(5439),u=i(1867),c=i(3212),h=i(4276),p=i(9231),f=i(9578);class v{bounce;effect;fill;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.effect=new o,this.fill=new s.S,this.groups={},this.move=new r.y,this.number=new u.N,this.opacity=new l.Y,this.reduceDuplicates=!1,this.shape=new c.y,this.size=new h.o,this.stroke=new p.t,this.zIndex=new f.P}load(e){if((0,n.kZ)(e))return;if(void 0!==e.groups)for(let t of Object.keys(e.groups)){if(!(t in e.groups))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.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.fill;t&&(this.fill=(0,a.wJ)(t,e=>{let t=new s.S;return t.load(e),t}));let i=e.stroke;if(i&&(this.stroke=(0,a.wJ)(i,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)}}}},3212(e,t,i){i.d(t,{y:()=>o});var a=i(4874),n=i(8130);class o{close;options;type;constructor(){this.close=!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.type&&(this.type=e.type)}}},4276(e,t,i){i.d(t,{o:()=>s});var a=i(7397),n=i(2812),o=i(8130);class s extends a.AI{animation;constructor(){super(),this.animation=new n.q,this.value=3}load(e){if(super.load(e),(0,o.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}},2812(e,t,i){i.d(t,{q:()=>s});var a=i(7320),n=i(127),o=i(8130);class s extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=5}load(e){super.load(e),(0,o.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},9231(e,t,i){i.d(t,{t:()=>s});var a=i(4036),n=i(8130),o=i(3884);class s{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,o.DT)(e.width)),void 0!==e.opacity&&(this.opacity=(0,o.DT)(e.opacity)))}}},9578(e,t,i){i.d(t,{P:()=>o});var a=i(7397),n=i(8130);class o 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))}}},7959(e,t,i){i.d(t,{z:()=>n});var a=i(8130);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))}}},7397(e,t,i){i.d(t,{AI:()=>l,Jm:()=>r,PV:()=>s});var a=i(127),n=i(8130),o=i(3884);class s{value;constructor(){this.value=0}load(e){!(0,n.kZ)(e)&&((0,n.kZ)(e.value)||(this.value=(0,o.DT)(e.value)))}}class r extends s{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)}}},9854(e,t,i){i.d(t,{IU:()=>s,KG:()=>u,Md:()=>o,Sn:()=>n,VG:()=>h,Wb:()=>p,gF:()=>c,k:()=>l,p0:()=>r,z5:()=>d});var a=i(1590);function n(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){if(!i)return;let o=e.globalAlpha;e.globalAlpha=n,e.drawImage(i,a.bo.x,a.bo.y,t.width,t.height),e.globalAlpha=o}function s(e,t){e.clearRect(a.bo.x,a.bo.y,t.width,t.height)}function r(e){let{container:t,context:i,particle:n,delta:o,colorStyles:s,radius:r,opacity:p,transform:f}=e,{effectDrawers:v,shapeDrawers:g}=t.particles,m=n.getPosition(),y=n.getTransformData(f),b=a.Pf,x={x:m.x,y:m.y};i.setTransform(y.a,y.b,y.c,y.d,m.x,m.y),s.fill&&(i.fillStyle=s.fill);let w=!!n.fillEnabled,M=n.strokeWidth??a.Dv;i.lineWidth=M,s.stroke&&(i.strokeStyle=s.stroke);let z={context:i,particle:n,radius:r,drawRadius:r*b,opacity:p,delta:o,pixelRatio:t.retina.pixelRatio,fill:w,stroke:M>a.Dv,transformData:y,position:{...m},drawPosition:x,drawScale:b};for(let e of t.plugins)e.drawParticleTransform?.(z);let S=n.effect?v.get(n.effect):void 0,O=n.shape?g.get(n.shape):void 0;d(S,z),h(O,z),u(O,z),c(O,z),l(S,z),i.resetTransform()}function l(e,t){if(!e?.drawAfter)return;let{particle:i}=t;i.effect&&e.drawAfter(t)}function d(e,t){if(!e?.drawBefore)return;let{particle:i}=t;i.effect&&e.drawBefore(t)}function u(e,t){if(!e)return;let{context:i,fill:a,particle:n,stroke:o}=t;n.shape&&(i.beginPath(),e.draw(t),n.shapeClose&&i.closePath(),o&&i.stroke(),a&&i.fill())}function c(e,t){if(!e?.afterDraw)return;let{particle:i}=t;i.shape&&e.afterDraw(t)}function h(e,t){if(!e?.beforeDraw)return;let{particle:i}=t;i.shape&&e.beforeDraw(t)}function p(e,t,i,a){t.drawParticle&&t.drawParticle(e,i,a)}},1339(e,t,i){i.d(t,{BN:()=>h,EY:()=>O,Jv:()=>F,K6:()=>g,Ko:()=>E,LC:()=>S,OH:()=>w,O_:()=>R,PG:()=>k,R5:()=>v,YL:()=>b,_h:()=>P,ay:()=>x,eg:()=>y,mK:()=>f,pz:()=>_,qe:()=>p,xx:()=>M,yx:()=>A,zI:()=>m});var a=i(3884),n=i(1590),o=i(8130),s=i(1826),r=i(3096),l=i(4874);let d=new Map;function u(e,t){let i=d.get(e);return i||(i=t(),d.size>=1e3&&[...d.keys()].slice(0,1e3*n.MX).forEach(e=>d.delete(e)),d.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 h(e,t,i,a=!0){if(!t)return;let n=(0,o.Kg)(t)?{value:t}:t;if((0,o.Kg)(n.value))return p(e,n.value,i,a);if((0,o.cy)(n.value)){let t=(0,l.Vh)(n.value,i,a);if(!t)return;return h(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleRangeColor(n);if(e)return e}}function p(e,t,i,a=!0){if(!t)return;let s=(0,o.Kg)(t)?{value:t}:t;if((0,o.Kg)(s.value))return s.value===n.mR?w():c(e,s.value);if((0,o.cy)(s.value)){let t=(0,l.Vh)(s.value,i,a);if(!t)return;return p(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleColor(s);if(e)return e}}function f(e,t,i,a=!0){let n=p(e,t,i,a);return n?g(n):void 0}function v(e,t,i,a=!0){let n=h(e,t,i,a);return n?g(n):void 0}function g(e){let t=e.r/n.oi,i=e.g/n.oi,a=e.b/n.oi,o=Math.max(t,i,a),s=Math.min(t,i,a),r={h:n.L1,l:(o+s)*n.MX,s:n.yx};return o!==s&&(r.s=r.l<n.MX?(o-s)/(o+s):(o-s)/(n.gd-o-s),t===o?r.h=(i-a)/(o-s):i===o?r.h=n.gd+(a-t)/(o-s):r.h=n.gd*n.gd+(t-i)/(o-s)),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 m(e,t){return c(e,t)?.a}function y(e,t){return c(e,t)}function b(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)),o=t/n.vS,s=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+s):r+s-r*s,u=n.gd*r-d,c=n.BF/n.Nu;return{r:Math.round(Math.min(n.oi,n.oi*l(u,d,o+c))),g:Math.round(Math.min(n.oi,n.oi*l(u,d,o))),b:Math.round(Math.min(n.oi,n.oi*l(u,d,o-c)))}}function x(e){let t=b(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}function w(e){let t=e??n.Fl,i=n.oi+n.D_,o=()=>Math.floor((0,a.e4)(t,i));return{b:o(),g:o(),r:o()}}function M(e,t,i){let a=i??n.hv;return u(`rgb-${e.r.toFixed(2)}-${e.g.toFixed(2)}-${e.b.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,o;return t?z(e,i):(a=e,o=i,`rgba(${a.r.toString()}, ${a.g.toString()}, ${a.b.toString()}, ${(o??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 S(e,t,i){let a=i??n.hv;return u(`hsl-${e.h.toFixed(2)}-${e.s.toFixed(2)}-${e.l.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,o,s,r;return t?(a=e,o=i,z(b(a),o)):(s=e,r=i,`hsla(${s.h.toString()}, ${s.s.toString()}%, ${s.l.toString()}%, ${(r??n.hv).toString()})`)})}function O(e,t,i,n){let o=e,s=t;return"r"in o||(o=b(e)),"r"in s||(s=b(t)),{b:(0,a.jh)(o.b,s.b,i,n),g:(0,a.jh)(o.g,s.g,i,n),r:(0,a.jh)(o.r,s.r,i,n)}}function P(e,t,i){if(i===n.mR)return w();if(i!==n.BW)return i;{let i=e.getFillColor()??e.getStrokeColor(),a=t?.getFillColor()??t?.getStrokeColor();if(i&&a&&t)return O(i,a,e.getRadius(),t.getRadius());{let e=i??a;if(e)return b(e)}}}function k(e,t,i,a){let s=(0,o.Kg)(t)?t:t.value;return s===n.mR?a?h(e,{value:s}):i?n.mR:n.BW:s===n.BW?n.BW:h(e,{value:s})}function R(e){return void 0===e?void 0:{h:e.h.value,s:e.s.value,l:e.l.value}}function _(e,t,i){let a={h:{enable:!1,value:e.h,min:n.L1,max:n.vS},s:{enable:!1,value:e.s,min:n.yx,max:n.eu},l:{enable:!1,value:e.l,min:n.vd,max:n.$_}};return t&&(T(a.h,t.h,i),T(a.s,t.s,i),T(a.l,t.l,i)),a}function T(e,t,i){e.enable=t.enable,e.min=t.min,e.max=t.max,e.enable?(e.velocity=(0,a.VG)(t.speed)/n.a5*i,e.decay=n.WH-(0,a.VG)(t.decay),e.status=r.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 E(e,t,i){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+=i.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;let n=e.offset?(0,a.vE)(e.offset):0,o=(e.velocity??0)*i.factor+3.6*n,s=e.decay??1,l=e.max,d=e.min;t&&e.status!==r.H.increasing?(e.value-=o,e.value<d&&(e.loops??=0,e.loops++,e.status=r.H.increasing)):(e.value+=o,e.value>l&&(e.loops??=0,e.loops++,t?e.status=r.H.decreasing:e.value-=l)),e.velocity&&1!==s&&(e.velocity*=s),e.value=(0,a.qE)(e.value,d,l)}function F(e,t){if(!e)return;let{h:i,s:a,l:n}=e;E(i,!1,t),E(a,!0,t),E(n,!0,t)}function A(e,t,i){return{h:e.h,s:e.s,l:e.l+(t===s.H.darken?-n.iU:n.iU)*i}}},3112(e,t,i){i.d(t,{B:()=>n,t:()=>o});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 o(){return a}},3884(e,t,i){i.d(t,{$m:()=>R,AD:()=>p,DT:()=>function e(t,i){if(t===i||void 0===i&&(0,s.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:()=>c,JY:()=>k,M3:()=>D,Mh:()=>E,Nx:()=>A,OE:()=>u,OW:()=>_,Sc:()=>z,Sg:()=>x,VG:()=>b,W9:()=>w,Yf:()=>S,e4:()=>h,eh:()=>T,gp:()=>O,i0:()=>f,jh:()=>m,l1:()=>F,pu:()=>P,px:()=>v,qE:()=>g,qM:()=>I,vE:()=>y,vr:()=>M});var a=i(7613),n=i(1590),o=i(2067),s=i(8130);let r=Math.PI/180,l=Math.random,d={nextFrame:e=>requestAnimationFrame(e),cancel:e=>{cancelAnimationFrame(e)}};function u(e=Math.random){l=e}function c(){return g(l(),0,1-Number.EPSILON)}function h(e,t){return c()*(t-e)+e}function p(e,t){d.nextFrame=e,d.cancel=t}function f(e){return d.nextFrame(e)}function v(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,s.Et)(e)?e:y(e)}function x(e){return(0,s.Et)(e)?e:e.min}function w(e){return(0,s.Et)(e)?e:e.max}function M(e,t){let i=e.x-t.x,a=e.y-t.y;return{dx:i,dy:a,distance:Math.hypot(i,a)}}function z(e,t){let i=e.x-t.x,a=e.y-t.y;return i*i+a*a}function S(e,t){return Math.sqrt(z(e,t))}function O(e,t,i){return z(e,t)<=i*i}function P(e){return e*r}function k(e,t,i){if((0,s.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 c()*n.R1}}function R(e){let t=o.M.origin;return t.length=1,t.angle=e,t}function _(e,t,i,a){return o.M.create(e.x*(i-a)/(i+a)+t.x*n.gd*a/(i+a),e.y)}function T(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??c()*n.a5)*e.size.width/n.a5,y:(e.position?.y??c()*n.a5)*e.size.height/n.a5}}function F(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 A(e){let{position:t,size:i}=e;return{x:t?.x??c()*i.width,y:t?.y??c()*i.height}}function I(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 A({size:e.size,position:t})}function D(e){return e?e.endsWith("%")?parseFloat(e)/n.a5:parseFloat(e):1}},3692(e,t,i){i.d(t,{Z:()=>n,y:()=>o});var a=i(9896);function n(e,...t){for(let i of t)e.load(i)}function o(e,t,...i){let s=new a.U(e,t);return n(s,...i),s}},8130(e,t,i){function a(e){return"boolean"==typeof e}function n(e){return"string"==typeof e}function o(e){return"number"==typeof e}function s(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:()=>o,Gv:()=>r,Kg:()=>n,Lm:()=>a,Tn:()=>s,cy:()=>l,kZ:()=>d})},4874(e,t,i){i.d(t,{AE:()=>S,BR:()=>m,Bj:()=>p,E9:()=>F,HQ:()=>C,Kp:()=>V,O2:()=>z,Ot:()=>$,T5:()=>v,TA:()=>R,Tg:()=>O,Tj:()=>M,UC:()=>I,Vh:()=>w,Xs:()=>T,YC:()=>A,hJ:()=>L,hn:()=>b,lV:()=>g,n0:()=>x,pE:()=>P,q8:()=>f,tG:()=>y,td:()=>D,w3:()=>_,wJ:()=>k,zw:()=>function e(t,...i){for(let a of i){if((0,o.kZ)(a))continue;if(!(0,o.Gv)(a)){t=a;continue}Array.isArray(a)?Array.isArray(t)||(t=[]):(!(0,o.Gv)(t)||Array.isArray(t))&&(t={});let i=Object.keys(a),n=new Set(["__proto__","constructor","prototype"]);if(!i.some(e=>{let t=a[e];return(0,o.Gv)(t)||Array.isArray(t)})){let e=t;for(let t of i)if(!n.has(t)&&t in a){let i=a[t];void 0!==i&&(e[t]=i)}continue}for(let o of i){if(n.has(o))continue;let i=t,s=a[o];i[o]=Array.isArray(s)?s.map(t=>e(void 0,t)):e(i[o],s)}}return t}});var a=i(3884),n=i(1590),o=i(8130),s=i(3494),r=i(3096),l=i(7320),d=i(5735),u=i(3048),c=i(8113),h=i(2067);function p(e,t){let i=new Map,a=t?.maxSize,n=t?.ttlMs,o=t?.keyFn,s=(e,t=new WeakSet)=>{if(null===e)return"null";let i=typeof e;if("undefined"===i)return"undefined";if("number"===i||"boolean"===i||"string"===i)return JSON.stringify(e);if("function"===i)try{return e.toString()}catch{return'"[Function]"'}if("symbol"===i)try{return e.toString()}catch{return'"[Symbol]"'}if(Array.isArray(e))return`[${e.map(e=>s(e,t)).join(",")}]`;if(t.has(e))return'"[Circular]"';t.add(e);let a=Object.keys(e).sort();return`{${a.map(i=>`${JSON.stringify(i)}:${s(e[i],t)}`).join(",")}}`};return(...t)=>{let r,l=(r=t,o?o(r):s(r)),d=Date.now(),u=i.get(l);if(void 0!==u)if(!n||!(d-u.ts>n))return i.delete(l),i.set(l,{value:u.value,ts:u.ts}),u.value;else i.delete(l);let c=e(...t);if(i.set(l,{value:c,ts:d}),"number"==typeof a&&a>=0)for(;i.size>a;){let e=i.keys().next().value;if(void 0===e)break;i.delete(e)}return c}}function f(){return"u">typeof matchMedia}function v(){return globalThis.document}function g(e){if(f())return matchMedia(e)}function m(e){if("u">typeof IntersectionObserver)return new IntersectionObserver(e)}function y(e){if("u">typeof MutationObserver)return new MutationObserver(e)}function b(e,t){return e===t||(0,o.cy)(t)&&t.includes(e)}function x(e){return Math.floor((0,a.G0)()*e.length)}function w(e,t,i=!0){return e[void 0!==t&&i?t%e.length:x(e)]}function M(e,t,i,a,n){return z(S(e,a??0),t,i,n)}function z(e,t,i,a){let n=!0;return a&&a!==d.v.bottom||(n=e.top<t.height+i.x),n&&(!a||a===d.v.left)&&(n=e.right>i.x),n&&(!a||a===d.v.right)&&(n=e.left<t.width+i.y),n&&(!a||a===d.v.top)&&(n=e.bottom>i.y),n}function S(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function O(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:h.M.create((0,a.VG)(e.options.bounce.horizontal.value),(0,a.VG)(e.options.bounce.vertical.value))}}function P(e,t){let{x:i,y:n}=e.velocity.sub(t.velocity),[o,s]=[e.position,t.position],{dx:r,dy:l}=(0,a.vr)(s,o);if(i*r+n*l<0)return;let d=-Math.atan2(l,r),u=e.mass,c=t.mass,h=e.velocity.rotate(d),p=t.velocity.rotate(d),f=(0,a.OW)(h,p,u,c),v=(0,a.OW)(p,h,u,c),g=f.rotate(-d),m=v.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,o.cy)(e)?e.map((e,i)=>t(e,i)):t(e,0)}function R(e,t,i){return(0,o.cy)(e)?w(e,t,i):e}function _(e,t){return(0,o.cy)(e)?e.find((e,i)=>t(e,i)):t(e,0)?e:void 0}function T(e,t){let i=e.value,o=e.animation,l={delayTime:(0,a.VG)(o.delay)*n.Xu,enable:o.enable,value:(0,a.VG)(e.value)*t,max:(0,a.W9)(i)*t,min:(0,a.Sg)(i)*t,loops:0,maxLoops:(0,a.VG)(o.count),time:0};if(o.enable){switch(l.decay=1-(0,a.VG)(o.decay),o.mode){case s.g.increase:l.status=r.H.increasing;break;case s.g.decrease:l.status=r.H.decreasing;break;case s.g.random:l.status=(0,a.G0)()>=n.MX?r.H.increasing:r.H.decreasing}let e=o.mode===s.g.auto;switch(o.startValue){case c.S.min:l.value=l.min,e&&(l.status=r.H.increasing);break;case c.S.max:l.value=l.max,e&&(l.status=r.H.decreasing);break;case c.S.random:default:l.value=(0,a.vE)(l),e&&(l.status=(0,a.G0)()>=n.MX?r.H.increasing:r.H.decreasing)}}return l.initialValue=l.value,l}function E(e,t){if(e.mode!==u.q.percent){let{mode:t,...i}=e;return i}return"x"in e?{x:e.x/n.a5*t.width,y:e.y/n.a5*t.height}:{width:e.width/n.a5*t.width,height:e.height/n.a5*t.height}}function F(e,t){return E(e,t)}function A(e,t){return E(e,t)}function I(e,t,i,n,o){if(e.destroyed||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;let s=(t.velocity??0)*o.factor,d=t.min,u=t.max,c=t.decay??1;if(t.time??=0,(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=o.value),!((t.delayTime??0)>0)||!(t.time<(t.delayTime??0))){switch(t.status){case r.H.increasing:t.value>=u?(i?t.status=r.H.decreasing:t.value-=u,t.loops??=0,t.loops++):t.value+=s;break;case r.H.decreasing:t.value<=d?(i?t.status=r.H.increasing:t.value+=u,t.loops??=0,t.loops++):t.value-=s}t.velocity&&1!==c&&(t.velocity*=c);var h=t.value;switch(n){case l.V.max:h>=u&&e.destroy();break;case l.V.min:h<=d&&e.destroy()}t.value=(0,a.qE)(t.value,d,u)}}function D(e){let t=v().createElement("div").style;for(let i in e){let a=e[i];if(!(i in e)||(0,o.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 L=p(function(e){let t=v().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});function V(e,t,i,a,n){if(a){let a={passive:!0};(0,o.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}}},u={};function c(e){var t=u[e];if(void 0!==t)return t.exports;var i=u[e]={exports:{}};return d[e](i,i.exports,c),i.exports}c.m=d,c.d=(e,t)=>{for(var i in t)c.o(t,i)&&!c.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce((t,i)=>(c.f[i](e,t),t),[])),c.u=e=>""+e+".min.js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h={},c.l=(e,t,i,a)=>{if(h[e])return void h[e].push(t);if(void 0!==i)for(var n,o,s=document.getElementsByTagName("script"),r=0;r<s.length;r++){var l=s[r];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")=="@tsparticles/engine:"+i){n=l;break}}n||(o=!0,(n=document.createElement("script")).charset="utf-8",c.nc&&n.setAttribute("nonce",c.nc),n.setAttribute("data-webpack","@tsparticles/engine:"+i),n.src=e),h[e]=[t];var d=(t,i)=>{n.onerror=n.onload=null,clearTimeout(u);var a=h[e];if(delete h[e],n.parentNode&&n.parentNode.removeChild(n),a&&a.forEach(e=>e(i)),t)return t(i)},u=setTimeout(d.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=d.bind(null,n.onerror),n.onload=d.bind(null,n.onload),o&&document.head.appendChild(n)},c.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.g.importScripts&&(p=c.g.location+"");var h,p,f=c.g.document;if(!p&&f&&(f.currentScript&&"SCRIPT"===f.currentScript.tagName.toUpperCase()&&(p=f.currentScript.src),!p)){var v=f.getElementsByTagName("script");if(v.length)for(var g=v.length-1;g>-1&&(!p||!/^http(s?):/.test(p));)p=v[g--].src}if(!p)throw Error("Automatic publicPath is not supported in this browser");c.p=p=p.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e={397:0},c.f.j=(t,i)=>{var a=c.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=c.p+c.u(t),s=Error();c.l(o,i=>{if(c.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;s.message="Loading chunk "+t+` failed.
2
- (`+n+": "+o+")",s.name="ChunkLoadError",s.type=n,s.request=o,a[1](s)}},"chunk-"+t,t)}},t=(t,i)=>{var a,n,[o,s,r]=i,l=0;if(o.some(t=>0!==e[t])){for(a in s)c.o(s,a)&&(c.m[a]=s[a]);r&&r(c)}for(t&&t(i);l<o.length;l++)n=o[l],c.o(e,n)&&e[n]&&e[n][0](),e[n]=0},(i=this.webpackChunk_tsparticles_engine=this.webpackChunk_tsparticles_engine||[]).forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i));var m={};c.r(m),c.d(m,{AlterType:()=>D.H,AnimatableColor:()=>B.A,AnimationMode:()=>E.g,AnimationOptions:()=>Z.p,AnimationStatus:()=>$.H,AnimationValueWithRandom:()=>eg.Jm,Background:()=>G.V,BaseRange:()=>k.dg,Circle:()=>k.jl,ColorAnimation:()=>q.e,DestroyType:()=>L.V,EasingType:()=>l,EventType:()=>w.B,Fill:()=>Q.S,FullScreen:()=>H.m,GradientType:()=>r,HslAnimation:()=>j.i,LimitMode:()=>F.d,Move:()=>Y.y,MoveAngle:()=>ee.h,MoveCenter:()=>et.Z,MoveDirection:()=>_.F,MoveGravity:()=>ei.y,MovePath:()=>en.v,Opacity:()=>ed.Y,OpacityAnimation:()=>eu.I,Options:()=>N.J,OptionsColor:()=>W.O,OutMode:()=>A.Y,OutModeDirection:()=>T.v,OutModes:()=>ea.j,ParticleOutType:()=>V.x,ParticlesBounce:()=>K.w,ParticlesBounceFactor:()=>X.F,ParticlesDensity:()=>el.M,ParticlesNumber:()=>es.N,ParticlesNumberLimit:()=>er.A,ParticlesOptions:()=>J.U,PixelMode:()=>I.q,RangedAnimationOptions:()=>Z.Q,RangedAnimationValueWithRandom:()=>eg.AI,Rectangle:()=>k.M_,ResizeEvent:()=>ev.z,RotateDirection:()=>s,Shape:()=>ec.y,Size:()=>eh.o,SizeAnimation:()=>ep.q,Spin:()=>eo.t,StartValueType:()=>C.S,Stroke:()=>U.t,ValueWithRandom:()=>eg.PV,Vector:()=>R.M,Vector3d:()=>R.p,ZIndex:()=>ef.P,alterHsl:()=>ey.yx,animate:()=>z.i0,areBoundsInside:()=>b.O2,arrayRandomIndex:()=>b.n0,calcExactPositionOrRandomFromSize:()=>z.Nx,calcExactPositionOrRandomFromSizeRanged:()=>z.qM,calcPositionFromSize:()=>z.eh,calcPositionOrRandomFromSize:()=>z.Mh,calcPositionOrRandomFromSizeRanged:()=>z.l1,calculateBounds:()=>b.AE,cancelAnimation:()=>z.px,canvasFirstIndex:()=>y.Nx,canvasTag:()=>y.RF,checkDistance:()=>z.gp,circleBounce:()=>b.pE,circleBounceDataFromParticle:()=>b.Tg,clamp:()=>z.qE,clear:()=>em.IU,cloneStyle:()=>b.td,collisionVelocity:()=>z.OW,colorMix:()=>ey.EY,colorToHsl:()=>ey.mK,colorToRgb:()=>ey.qe,countOffset:()=>y.nq,decayOffset:()=>y.WH,deepExtend:()=>b.zw,defaultAlpha:()=>y.aZ,defaultAngle:()=>y.tA,defaultCompositeValue:()=>y.yj,defaultDensityFactor:()=>y.lA,defaultFps:()=>y.z$,defaultFpsLimit:()=>y.i8,defaultLoops:()=>y.hK,defaultOpacity:()=>y.hv,defaultRatio:()=>y.$x,defaultReduceFactor:()=>y.Zp,defaultRemoveQuantity:()=>y.xd,defaultRetryCount:()=>y.rq,defaultRgbMin:()=>y.Fl,defaultTime:()=>y.tR,defaultTransform:()=>y.Ug,defaultTransformValue:()=>y.zs,defaultVelocity:()=>y.jn,defaultZoom:()=>y.Pf,degToRad:()=>z.pu,deleteCount:()=>y.LD,double:()=>y.gd,doublePI:()=>y.R1,drawAfterEffect:()=>em.k,drawBeforeEffect:()=>em.z5,drawParticle:()=>em.p0,drawParticlePlugin:()=>em.Wb,drawShape:()=>em.KG,drawShapeAfterDraw:()=>em.gF,drawShapeBeforeDraw:()=>em.VG,empty:()=>y.Ie,executeOnSingleOrMultiple:()=>b.wJ,findItemFromSingleOrMultiple:()=>b.w3,generatedAttribute:()=>y.eb,generatedFalse:()=>y.X$,generatedTrue:()=>y.ce,getDistance:()=>z.Yf,getDistanceSq:()=>z.Sc,getDistances:()=>z.vr,getFullScreenStyle:()=>b.hJ,getHslAnimationFromHsl:()=>ey.pz,getHslFromAnimation:()=>ey.O_,getItemMapFromInitializer:()=>b.Ot,getItemsFromInitializer:()=>b.HQ,getLinkColor:()=>ey._h,getLinkRandomColor:()=>ey.PG,getLogger:()=>M.t,getParticleBaseVelocity:()=>z.$m,getParticleDirectionAngle:()=>z.JY,getPosition:()=>b.E9,getRandom:()=>z.G0,getRandomInRange:()=>z.e4,getRandomRgbColor:()=>ey.OH,getRangeMax:()=>z.W9,getRangeMin:()=>z.Sg,getRangeValue:()=>z.VG,getSize:()=>b.YC,getStyleFromHsl:()=>ey.LC,getStyleFromRgb:()=>ey.xx,hMax:()=>y.vS,hMin:()=>y.L1,hPhase:()=>y.U0,half:()=>y.MX,hasMatchMedia:()=>b.q8,hslToRgb:()=>ey.YL,hslaToRgba:()=>ey.ay,identity:()=>y.D_,initParticleNumericAnimationValue:()=>b.Xs,inverseFactorNumerator:()=>y.hB,isArray:()=>ex.cy,isBoolean:()=>ex.Lm,isFunction:()=>ex.Tn,isInArray:()=>b.hn,isNull:()=>ex.kZ,isNumber:()=>ex.Et,isObject:()=>ex.Gv,isPointInside:()=>b.Tj,isString:()=>ex.Kg,itemFromArray:()=>b.Vh,itemFromSingleOrMultiple:()=>b.TA,lFactor:()=>y.iU,lMax:()=>y.$_,lMin:()=>y.vd,lengthOffset:()=>y.K3,loadMinIndex:()=>y.PZ,loadOptions:()=>eb.Z,loadParticlesOptions:()=>eb.y,loadRandomFactor:()=>y.$v,manageListener:()=>b.Kp,memoize:()=>b.Bj,midColorValue:()=>y.BW,millisecondsToSeconds:()=>y.Xu,minCount:()=>y.wM,minFpsLimit:()=>y.DN,minIndex:()=>y.z9,minLimit:()=>y.ou,minStrokeWidth:()=>y.Dv,minVelocity:()=>y.GW,minZ:()=>y.X_,minimumSize:()=>y.w2,mix:()=>z.jh,none:()=>y.dv,one:()=>y.xH,originPoint:()=>y.bo,paintBase:()=>em.Sn,paintImage:()=>em.Md,parseAlpha:()=>z.M3,percentDenominator:()=>y.a5,phaseNumerator:()=>y.BF,quarter:()=>y.$G,randomColorValue:()=>y.mR,randomInRangeValue:()=>z.vE,rangeColorToHsl:()=>ey.R5,rangeColorToRgb:()=>ey.BN,removeDeleteCount:()=>y.JC,removeMinIndex:()=>y.vF,resizeEvent:()=>y.NF,rgbMax:()=>y.oi,rgbToHsl:()=>ey.K6,sMax:()=>y.eu,sMin:()=>y.yx,sNormalizedOffset:()=>y.aE,safeDocument:()=>b.T5,safeIntersectionObserver:()=>b.BR,safeMatchMedia:()=>b.lV,safeMutationObserver:()=>b.tG,setAnimationFunctions:()=>z.AD,setLogger:()=>M.B,setRandom:()=>z.OE,setRangeValue:()=>z.DT,sextuple:()=>y.zg,spatialHashGridCellSize:()=>y.iX,squareExp:()=>y.dm,stringToAlpha:()=>ey.zI,stringToRgb:()=>ey.eg,threeQuarter:()=>y.Rq,triple:()=>y.Nu,tryCountIncrement:()=>y.Eo,tsParticles:()=>ew,updateAnimation:()=>b.UC,updateColor:()=>ey.Jv,updateColorValue:()=>ey.Ko,visibilityChangeEvent:()=>y.nK,zIndexFactorOffset:()=>y.RV});var y=c(1590),b=c(4874);class x{_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<y.z9||(a===y.LD?this._listeners.delete(e):i.splice(n,y.LD))}}var w=c(8202),M=c(3112),z=c(3884);let S="100%";async function O(e){let t=(0,b.TA)(e.url,e.index);if(!t)return e.fallback;let i=await fetch(t);return i.ok?await i.json():((0,M.t)().error(`${i.status.toString()} while retrieving config file`),e.fallback)}class P{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;initializers={effects:new Map,shapes:new Map,updaters:new Map};palettes=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;_allLoadersSet=new Set;_configs=new Map;_domArray=[];_eventDispatcher=new x;_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-beta.0"}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(w.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)}addPalette(e,t){this.palettes.set(e,t)}addParticleUpdater(e,t){this.initializers.updaters.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.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,b.Ot)(e,this.effectDrawers,this.initializers.effects,t)}getPalette(e){return this.palettes.get(e)}getPlugin(e){return this.plugins.find(t=>t.id===e)}getPreset(e){return this.presets.get(e)}async getShapeDrawers(e,t=!1){return(0,b.Ot)(e,this.shapeDrawers,this.initializers.shapes,t)}async getUpdaters(e,t=!1){return(0,b.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,y.JC):i}async load(e){var t;let i,a;await this.init();let{Container:n}=await c.e(164).then(c.bind(c,8164)),o=e.id??e.element?.id??`tsparticles${Math.floor((0,z.G0)()*y.$v).toString()}`,{index:s,url:r}=e,l=r?await O({fallback:e.options,url:r,index:s}):e.options,d=(0,b.TA)(l,s),{items:u}=this,h=u.findIndex(e=>e.id.description===o),p=new n(this,o,d);if(h>=y.PZ){let e=this.item(h),t=e?y.xH:y.dv;e&&!e.destroyed&&e.destroy(!1),u.splice(h,t,p)}else u.push(p);let f=(e=>{let t,i=(0,b.T5)();if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===y.RF)t=e,t.dataset[y.eb]??=y.X$;else{let a=e.getElementsByTagName(y.RF)[y.Nx];a?(t=a).dataset[y.eb]=y.X$:((t=i.createElement(y.RF)).dataset[y.eb]=y.ce,e.appendChild(t))}return t.style.width||=S,t.style.height||=S,t})((t=e.element,i=(0,b.T5)(),(a=t??i.getElementById(o))||((a=i.createElement("div")).id=o,a.dataset[y.eb]=y.ce,i.body.append(a)),a));return p.canvas.loadCanvas(f),await p.start(),p}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 k=c(5821),R=c(2067),_=c(7613);(a=s||(s={})).clockwise="clockwise",a.counterClockwise="counter-clockwise",a.random="random";var T=c(5735),E=c(3494),F=c(3443),A=c(3652),I=c(3048),D=c(1826),L=c(7320);(n=r||(r={})).linear="linear",n.radial="radial",n.random="random";var V=c(6492),C=c(8113);(o=l||(l={})).easeInBack="ease-in-back",o.easeInBounce="ease-in-bounce",o.easeInCirc="ease-in-circ",o.easeInCubic="ease-in-cubic",o.easeInElastic="ease-in-elastic",o.easeInExpo="ease-in-expo",o.easeInGaussian="ease-in-gaussian",o.easeInLinear="ease-in-linear",o.easeInQuad="ease-in-quad",o.easeInQuart="ease-in-quart",o.easeInQuint="ease-in-quint",o.easeInSigmoid="ease-in-sigmoid",o.easeInSine="ease-in-sine",o.easeInSmoothstep="ease-in-smoothstep",o.easeOutBack="ease-out-back",o.easeOutBounce="ease-out-bounce",o.easeOutCirc="ease-out-circ",o.easeOutCubic="ease-out-cubic",o.easeOutElastic="ease-out-elastic",o.easeOutExpo="ease-out-expo",o.easeOutGaussian="ease-out-gaussian",o.easeOutLinear="ease-out-linear",o.easeOutQuad="ease-out-quad",o.easeOutQuart="ease-out-quart",o.easeOutQuint="ease-out-quint",o.easeOutSigmoid="ease-out-sigmoid",o.easeOutSine="ease-out-sine",o.easeOutSmoothstep="ease-out-smoothstep",o.easeInOutBack="ease-in-out-back",o.easeInOutBounce="ease-in-out-bounce",o.easeInOutCirc="ease-in-out-circ",o.easeInOutCubic="ease-in-out-cubic",o.easeInOutElastic="ease-in-out-elastic",o.easeInOutExpo="ease-in-out-expo",o.easeInOutGaussian="ease-in-out-gaussian",o.easeInOutLinear="ease-in-out-linear",o.easeInOutQuad="ease-in-out-quad",o.easeInOutQuart="ease-in-out-quart",o.easeInOutQuint="ease-in-out-quint",o.easeInOutSigmoid="ease-in-out-sigmoid",o.easeInOutSine="ease-in-out-sine",o.easeInOutSmoothstep="ease-in-out-smoothstep";var $=c(3096),B=c(4036),Z=c(127),G=c(4162),q=c(580),H=c(3012),j=c(9892),N=c(9289),W=c(3930),K=c(5439),X=c(6912),J=c(9896),Q=c(4534),U=c(9231),Y=c(7764),ee=c(8577),et=c(6189),ei=c(6604),ea=c(3085),en=c(2135),eo=c(9693),es=c(1867),er=c(7076),el=c(5980),ed=c(3280),eu=c(9080),ec=c(3212),eh=c(4276),ep=c(2812),ef=c(9578),ev=c(7959),eg=c(7397),em=c(9854),ey=c(1339),eb=c(3692),ex=c(8130);let ew=new P;return globalThis.tsParticles=ew,m})());
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,n,o,s,r,l,d={9829(e,t,i){i.d(t,{$G:()=>L,$_:()=>T,$v:()=>K,$x:()=>P,BF:()=>eg,BW:()=>p,DN:()=>N,D_:()=>ed,Dv:()=>eu,Eo:()=>Y,Fl:()=>em,GW:()=>C,Ie:()=>D,JC:()=>H,K3:()=>eo,L1:()=>F,LD:()=>er,MX:()=>l,NF:()=>o,Nu:()=>ep,Nx:()=>W,PZ:()=>X,Pf:()=>ew,R1:()=>v,RF:()=>x,RV:()=>Z,Rq:()=>V,U0:()=>I,Ug:()=>c,WH:()=>U,X$:()=>b,X_:()=>ee,Xu:()=>d,Zp:()=>k,a5:()=>r,aE:()=>ev,aZ:()=>m,bo:()=>u,ce:()=>y,dm:()=>M,dv:()=>Q,eb:()=>a,eu:()=>E,gd:()=>f,hB:()=>O,hK:()=>eb,hv:()=>G,i8:()=>j,iU:()=>ec,iX:()=>z,jn:()=>ey,lA:()=>es,mR:()=>h,nK:()=>s,nq:()=>ei,oi:()=>_,ou:()=>et,rq:()=>w,tA:()=>el,tR:()=>ex,vF:()=>q,vS:()=>R,vd:()=>eh,w2:()=>B,wM:()=>ea,xH:()=>J,xd:()=>S,yj:()=>n,yx:()=>A,z$:()=>g,z9:()=>en,zg:()=>ef,zs:()=>$});let a="generated",n="source-over",o="resize",s="visibilitychange",r=100,l=.5,d=1e3,u={x:0,y:0,z:0},c={a:1,b:0,c:0,d:1},h="random",p="mid",f=2,v=2*Math.PI,g=60,m=1,y="true",b="false",x="canvas",w=0,M=2,z=100,S=1,P=1,k=1,O=1,_=255,R=360,E=100,T=100,F=0,A=0,I=60,D=0,L=.25,V=.75,C=0,$=1,B=0,Z=1,G=1,H=1,q=0,j=120,N=0,W=0,K=1e4,X=0,J=1,Q=0,U=1,Y=1,ee=0,et=0,ei=1,ea=0,en=0,eo=1,es=1,er=1,el=0,ed=1,eu=0,ec=1,eh=0,ep=3,ef=6,ev=1,eg=1,em=0,ey=0,eb=0,ex=0,ew=1},864(e,t,i){i.d(t,{dg:()=>r,jl:()=>l,M_:()=>d}),(a=n||(n={})).circle="circle",a.rectangle="rectangle";var a,n,o=i(8429),s=i(9829);class r{position;type;constructor(e,t,i){this.position={x:e,y:t},this.type=i}_resetPosition(e,t){this.position.x=e,this.position.y=t}}class l extends r{radius;constructor(e,t,i){super(e,t,n.circle),this.radius=i}contains(e){return(0,o.gp)(e,this.position,this.radius)}intersects(e){let t=this.position,i=e.position,a=this.radius,o=Math.abs(i.x-t.x),r=Math.abs(i.y-t.y);if(e instanceof l||e.type===n.circle)return a+e.radius>Math.hypot(o,r);if(e instanceof d||e.type===n.rectangle){let{width:t,height:i}=e.size;return Math.pow(o-t,s.dm)+Math.pow(r-i,s.dm)<=a**s.dm||o<=a+t&&r<=a+i||o<=t||r<=i}return!1}reset(e,t,i){return this._resetPosition(e,t),this.radius=i,this}}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);if(!(e instanceof d))return!1;let t=this.size.width,i=this.size.height,a=this.position,n=e.position,o=e.size,s=o.width,r=o.height;return n.x<a.x+t&&n.x+s>a.x&&n.y<a.y+i&&n.y+r>a.y}reset(e,t,i,a){return this._resetPosition(e,t),this.size.width=i,this.size.height=a,this}}},5360(e,t,i){i.d(t,{M:()=>s,p:()=>o});var a=i(9829);function n(e){return"z"in e?e.z:a.bo.z}class o{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 o.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 o.create(e.x,e.y,n(e))}static create(e,t,i){return"number"==typeof e?new o(e,t??a.bo.y,i??a.bo.z):new o(e.x,e.y,n(e))}add(e){return o.create(this.x+e.x,this.y+e.y,this.z+n(e))}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=n(e)}copy(){return o.clone(this)}div(e){return o.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 o.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 o.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=n(e)}sub(e){return o.create(this.x-e.x,this.y-e.y,this.z-n(e))}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=n(e)}_updateFromAngle(e,t){this.x=Math.cos(e)*t,this.y=Math.sin(e)*t}}class s extends o{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)}}},9241(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).increasing="increasing",n.decreasing="decreasing"},6118(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"},3906(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"},3583(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"},4186(e,t,i){var a,n;i.d(t,{d:()=>a}),(n=a||(a={})).delete="delete",n.wait="wait"},5017(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"},8557(e,t,i){var a,n;i.d(t,{q:()=>a}),(n=a||(a={})).precise="precise",n.percent="percent"},6383(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).darken="darken",n.enlighten="enlighten"},2293(e,t,i){var a,n;i.d(t,{V:()=>a}),(n=a||(a={})).none="none",n.max="max",n.min="min"},5871(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"},5937(e,t,i){var a,n;i.d(t,{x:()=>a}),(n=a||(a={})).normal="normal",n.inside="inside",n.outside="outside"},5678(e,t,i){var a,n;i.d(t,{S:()=>a}),(n=a||(a={})).max="max",n.min="min",n.random="random"},3097(e,t,i){i.d(t,{A:()=>s});var a=i(5279),n=i(9135),o=i(7421);class s extends o.O{animation;constructor(){super(),this.animation=new n.i}static create(e,t){let i=new s;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))}}},120(e,t,i){i.d(t,{Q:()=>l,p:()=>r});var a=i(3583),n=i(5678),o=i(5279),s=i(8429);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,o.kZ)(e)||(void 0!==e.count&&(this.count=(0,s.DT)(e.count)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,s.DT)(e.speed)),void 0!==e.decay&&(this.decay=(0,s.DT)(e.decay)),void 0!==e.delay&&(this.delay=(0,s.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,o.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.startValue&&(this.startValue=e.startValue))}}},3351(e,t,i){i.d(t,{V:()=>o});var a=i(7421),n=i(5279);class o{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))}}},4507(e,t,i){i.d(t,{e:()=>s});var a=i(120),n=i(5279),o=i(8429);class s extends a.p{max;min;offset;constructor(e,t){super(),this.min=e,this.max=t,this.offset=0,this.sync=!0}load(e){super.load(e),(0,n.kZ)(e)||(void 0!==e.max&&(this.max=e.max),void 0!==e.min&&(this.min=e.min),void 0!==e.offset&&(this.offset=(0,o.DT)(e.offset)))}}},4581(e,t,i){i.d(t,{m:()=>n});var a=i(5279);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))}}},9135(e,t,i){i.d(t,{i:()=>s});var a=i(9829),n=i(4507),o=i(5279);class s{h=new n.e(a.L1,a.vS);l=new n.e(a.vd,a.$_);s=new n.e(a.yx,a.eu);load(e){(0,o.kZ)(e)||(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}},8032(e,t,i){i.d(t,{J:()=>u});var a=i(9767),n=i(5279),o=i(3351),s=i(4581),r=i(5246),l=i(5811),d=i(8429);class u{autoPlay;background;clear;defaultThemes;delay;detectRetina;duration;fpsLimit;fullScreen;hdr;key;name;palette;particles;pauseOnBlur;pauseOnOutsideViewport;preset;resize;smooth;style;zLayers;_container;_pluginManager;constructor(e,t){this._pluginManager=e,this._container=t,this.autoPlay=!0,this.background=new o.V,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new s.m,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.hdr=!0,this.particles=(0,l.y)(this._pluginManager,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&&(this.preset=e.preset,(0,a.wJ)(this.preset,e=>{this._importPreset(e)})),void 0!==e.palette&&(this.palette=e.palette,this._importPalette(this.palette)),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 o=e.fullScreen;(0,n.Lm)(o)?this.fullScreen.enable=o:this.fullScreen.load(o),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._pluginManager.plugins.forEach(t=>{t.loadOptions(this._container,this,e)})}_importPalette=e=>{let t=this._pluginManager.getPalette(e);t&&this.load({background:{color:t.background},blend:{enable:!0,mode:t.blendMode},particles:{palette:e}})};_importPreset=e=>{this.load(this._pluginManager.getPreset(e))}}},7421(e,t,i){i.d(t,{O:()=>n});var a=i(5279);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))}}},7484(e,t,i){i.d(t,{w:()=>o});var a=i(4487),n=i(5279);class o{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))}}},4487(e,t,i){i.d(t,{F:()=>n});var a=i(8536);class n extends a.PV{constructor(){super(),this.value=1}}},2109(e,t,i){i.d(t,{S:()=>s});var a=i(3097),n=i(5279),o=i(8429);class s{color;enable;opacity;constructor(){this.enable=!0,this.color=new a.A,this.color.value="#fff",this.opacity=1}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.A.create(this.color,e.color)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.opacity&&(this.opacity=(0,o.DT)(e.opacity)))}}},6353(e,t,i){i.d(t,{y:()=>h});var a=i(6118),n=i(5279),o=i(1158),s=i(9904),r=i(2579),l=i(9976),d=i(1084),u=i(4e3),c=i(8429);class h{angle;center;decay;direction;distance;drift;enable;gravity;outModes;path;random;size;speed;spin;straight;vibrate;warp;constructor(){this.angle=new o.h,this.center=new s.Z,this.decay=0,this.distance={},this.direction=a.F.none,this.drift=0,this.enable=!1,this.gravity=new r.y,this.path=new l.v,this.outModes=new d.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.center.load(e.center),void 0!==e.decay&&(this.decay=(0,c.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,c.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,c.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)}}},1158(e,t,i){i.d(t,{h:()=>o});var a=i(5279),n=i(8429);class o{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)))}}},9904(e,t,i){i.d(t,{Z:()=>o});var a=i(8557),n=i(5279);class o{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))}}},2579(e,t,i){i.d(t,{y:()=>o});var a=i(5279),n=i(8429);class o{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)))}}},1084(e,t,i){i.d(t,{j:()=>o});var a=i(5017),n=i(5279);class o{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)}}},9976(e,t,i){i.d(t,{v:()=>s});var a=i(8536),n=i(9767),o=i(5279);class s{clamp;delay;enable;generator;options;constructor(){this.clamp=!0,this.delay=new a.PV,this.enable=!1,this.options={}}load(e){!(0,o.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)))}}},4e3(e,t,i){i.d(t,{t:()=>s});var a=i(9767),n=i(5279),o=i(8429);class s{acceleration;enable;position;constructor(){this.acceleration=0,this.enable=!1}load(e){!(0,n.kZ)(e)&&(void 0!==e.acceleration&&(this.acceleration=(0,o.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),e.position&&(this.position=(0,a.zw)({},e.position)))}}},4325(e,t,i){i.d(t,{M:()=>n});var a=i(5279);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)}}},1200(e,t,i){i.d(t,{N:()=>s});var a=i(4325),n=i(5265),o=i(5279);class s{density;limit;value;constructor(){this.density=new a.M,this.limit=new n.A,this.value=0}load(e){(0,o.kZ)(e)||(this.density.load(e.density),this.limit.load(e.limit),void 0!==e.value&&(this.value=e.value))}}},5265(e,t,i){i.d(t,{A:()=>o});var a=i(4186),n=i(5279);class o{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))}}},3889(e,t,i){i.d(t,{Y:()=>s});var a=i(795),n=i(8536),o=i(5279);class s extends n.AI{animation;constructor(){super(),this.animation=new a.I,this.value=1}load(e){if((0,o.kZ)(e))return;super.load(e);let t=e.animation;void 0!==t&&this.animation.load(t)}}},795(e,t,i){i.d(t,{I:()=>s});var a=i(2293),n=i(120),o=i(5279);class s extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=2}load(e){super.load(e),(0,o.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},5802(e,t,i){i.d(t,{P:()=>s});var a=i(2109),n=i(7160),o=i(5279);class s{fill;stroke;load(e){(0,o.kZ)(e)||(void 0!==e.fill&&(this.fill??=new a.S,this.fill.load(e.fill)),void 0!==e.stroke&&(this.stroke??=new n.t,this.stroke.load(e.stroke)))}}},3751(e,t,i){i.d(t,{U:()=>f});var a=i(9767),n=i(5279);class o{close;options;type;constructor(){this.close=!0,this.options={},this.type=[]}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.type&&(this.type=e.type)}}var s=i(6353),r=i(3889),l=i(5802),d=i(7484),u=i(1200),c=i(6717),h=i(3305),p=i(3043);class f{bounce;effect;groups;move;number;opacity;paint;palette;reduceDuplicates;shape;size;zIndex;_container;_pluginManager;constructor(e,t){this._pluginManager=e,this._container=t,this.bounce=new d.w,this.effect=new o,this.groups={},this.move=new s.y,this.number=new u.N,this.opacity=new r.Y,this.paint=new l.P,this.reduceDuplicates=!1,this.shape=new c.y,this.size=new h.o,this.zIndex=new p.P}load(e){if((0,n.kZ)(e))return;if(e.palette&&(this.palette=e.palette,this._importPalette(this.palette)),void 0!==e.groups)for(let t of Object.keys(e.groups)){if(!(t in e.groups))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.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity);let t=e.paint;if(t&&(this.paint=(0,a.wJ)(t,e=>{let t=new l.P;return t.load(e),t})),this.shape.load(e.shape),this.size.load(e.size),this.zIndex.load(e.zIndex),this._container){for(let t of this._pluginManager.plugins)t.loadParticlesOptions&&t.loadParticlesOptions(this._container,this,e);let t=this._pluginManager.updaters.get(this._container);if(t)for(let i of t)i.loadOptions&&i.loadOptions(this,e)}}_importPalette=e=>{let t=this._pluginManager.getPalette(e);if(!t)return;let i=t.colors,a=i.fill,o=i.stroke,s={fill:a?{color:{value:a.value},enable:a.enable}:void 0};if(o)if((0,n.cy)(o)){let e=o[0];e&&(s.stroke={color:{value:e.value},width:e.width||0})}else s.stroke={color:{value:o.value},width:o.width};this.load({paint:s,blend:{enable:!0,mode:t.blendMode}})}}},6717(e,t,i){i.d(t,{y:()=>o});var a=i(9767),n=i(5279);class o{close;options;type;constructor(){this.close=!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.type&&(this.type=e.type)}}},3305(e,t,i){i.d(t,{o:()=>s});var a=i(8536),n=i(7635),o=i(5279);class s extends a.AI{animation;constructor(){super(),this.animation=new n.q,this.value=3}load(e){if(super.load(e),(0,o.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}},7635(e,t,i){i.d(t,{q:()=>s});var a=i(2293),n=i(120),o=i(5279);class s extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=5}load(e){super.load(e),(0,o.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},7160(e,t,i){i.d(t,{t:()=>s});var a=i(3097),n=i(5279),o=i(8429);class s{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,o.DT)(e.width)),void 0!==e.opacity&&(this.opacity=(0,o.DT)(e.opacity)))}}},3043(e,t,i){i.d(t,{P:()=>o});var a=i(8536),n=i(5279);class o 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))}}},5246(e,t,i){i.d(t,{z:()=>n});var a=i(5279);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))}}},8536(e,t,i){i.d(t,{AI:()=>l,Jm:()=>r,PV:()=>s});var a=i(120),n=i(5279),o=i(8429);class s{value;constructor(){this.value=0}load(e){!(0,n.kZ)(e)&&((0,n.kZ)(e.value)||(this.value=(0,o.DT)(e.value)))}}class r extends s{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)}}},6491(e,t,i){i.d(t,{IU:()=>s,KG:()=>u,Md:()=>o,Sn:()=>n,VG:()=>h,Wb:()=>p,gF:()=>c,k:()=>l,p0:()=>r,z5:()=>d});var a=i(9829);function n(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){if(!i)return;let o=e.globalAlpha;e.globalAlpha=n,e.drawImage(i,a.bo.x,a.bo.y,t.width,t.height),e.globalAlpha=o}function s(e,t){e.clearRect(a.bo.x,a.bo.y,t.width,t.height)}function r(e){let{container:t,context:i,particle:n,delta:o,colorStyles:s,radius:r,opacity:p,transform:f}=e,{effectDrawers:v,shapeDrawers:g}=t,m=n.getPosition(),y=n.getTransformData(f),b=a.Pf,x={x:m.x,y:m.y};i.setTransform(y.a,y.b,y.c,y.d,m.x,m.y),s.fill&&(i.fillStyle=s.fill);let w=!!n.fillEnabled,M=n.strokeWidth??a.Dv;i.lineWidth=M,s.stroke&&(i.strokeStyle=s.stroke);let z={context:i,particle:n,radius:r,drawRadius:r*b,opacity:p,delta:o,pixelRatio:t.retina.pixelRatio,fill:w,stroke:M>a.Dv,transformData:y,position:{...m},drawPosition:x,drawScale:b};for(let e of t.plugins)e.drawParticleTransform?.(z);let S=n.effect?v.get(n.effect):void 0,P=n.shape?g.get(n.shape):void 0;d(S,z),h(P,z),u(P,z),c(P,z),l(S,z),i.resetTransform()}function l(e,t){if(!e?.drawAfter)return;let{particle:i}=t;i.effect&&e.drawAfter(t)}function d(e,t){if(!e?.drawBefore)return;let{particle:i}=t;i.effect&&e.drawBefore(t)}function u(e,t){if(!e)return;let{context:i,fill:a,particle:n,stroke:o}=t;n.shape&&(i.beginPath(),e.draw(t),n.shapeClose&&i.closePath(),a&&i.fill(),o&&i.stroke())}function c(e,t){if(!e?.afterDraw)return;let{particle:i}=t;i.shape&&e.afterDraw(t)}function h(e,t){if(!e?.beforeDraw)return;let{particle:i}=t;i.shape&&e.beforeDraw(t)}function p(e,t,i,a){t.drawParticle&&t.drawParticle(e,i,a)}},2912(e,t,i){i.d(t,{BN:()=>h,EY:()=>P,Jv:()=>F,K6:()=>g,Ko:()=>T,LC:()=>S,OH:()=>w,O_:()=>_,PG:()=>O,R5:()=>v,YL:()=>b,_h:()=>k,ay:()=>x,eg:()=>y,mK:()=>f,pz:()=>R,qe:()=>p,xx:()=>M,yx:()=>A,zI:()=>m});var a=i(8429),n=i(9829),o=i(5279),s=i(6383),r=i(9241),l=i(9767);let d=new Map;function u(e,t){let i=d.get(e);return i||(i=t(),d.size>=1e3&&[...d.keys()].slice(0,1e3*n.MX).forEach(e=>d.delete(e)),d.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 h(e,t,i,a=!0){if(!t)return;let n=(0,o.Kg)(t)?{value:t}:t;if((0,o.Kg)(n.value))return p(e,n.value,i,a);if((0,o.cy)(n.value)){let t=(0,l.Vh)(n.value,i,a);if(!t)return;return h(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleRangeColor(n);if(e)return e}}function p(e,t,i,a=!0){if(!t)return;let s=(0,o.Kg)(t)?{value:t}:t;if((0,o.Kg)(s.value))return s.value===n.mR?w():c(e,s.value);if((0,o.cy)(s.value)){let t=(0,l.Vh)(s.value,i,a);if(!t)return;return p(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleColor(s);if(e)return e}}function f(e,t,i,a=!0){let n=p(e,t,i,a);return n?g(n):void 0}function v(e,t,i,a=!0){let n=h(e,t,i,a);return n?g(n):void 0}function g(e){let t=e.r/n.oi,i=e.g/n.oi,a=e.b/n.oi,o=Math.max(t,i,a),s=Math.min(t,i,a),r={h:n.L1,l:(o+s)*n.MX,s:n.yx};return o!==s&&(r.s=r.l<n.MX?(o-s)/(o+s):(o-s)/(n.gd-o-s),t===o?r.h=(i-a)/(o-s):i===o?r.h=n.gd+(a-t)/(o-s):r.h=n.gd*n.gd+(t-i)/(o-s)),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 m(e,t){return c(e,t)?.a}function y(e,t){return c(e,t)}function b(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)),o=t/n.vS,s=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+s):r+s-r*s,u=n.gd*r-d,c=n.BF/n.Nu;return{r:Math.round(Math.min(n.oi,n.oi*l(u,d,o+c))),g:Math.round(Math.min(n.oi,n.oi*l(u,d,o))),b:Math.round(Math.min(n.oi,n.oi*l(u,d,o-c)))}}function x(e){let t=b(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}function w(e){let t=e??n.Fl,i=n.oi+n.D_,o=()=>Math.floor((0,a.e4)(t,i));return{b:o(),g:o(),r:o()}}function M(e,t,i){let a=i??n.hv;return u(`rgb-${e.r.toFixed(2)}-${e.g.toFixed(2)}-${e.b.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,o;return t?z(e,i):(a=e,o=i,`rgba(${a.r.toString()}, ${a.g.toString()}, ${a.b.toString()}, ${(o??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 S(e,t,i){let a=i??n.hv;return u(`hsl-${e.h.toFixed(2)}-${e.s.toFixed(2)}-${e.l.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,o,s,r;return t?(a=e,o=i,z(b(a),o)):(s=e,r=i,`hsla(${s.h.toString()}, ${s.s.toString()}%, ${s.l.toString()}%, ${(r??n.hv).toString()})`)})}function P(e,t,i,n){let o=e,s=t;return"r"in o||(o=b(e)),"r"in s||(s=b(t)),{b:(0,a.jh)(o.b,s.b,i,n),g:(0,a.jh)(o.g,s.g,i,n),r:(0,a.jh)(o.r,s.r,i,n)}}function k(e,t,i){if(i===n.mR)return w();if(i!==n.BW)return i;{let i=e.getFillColor()??e.getStrokeColor(),a=t?.getFillColor()??t?.getStrokeColor();if(i&&a&&t)return P(i,a,e.getRadius(),t.getRadius());{let e=i??a;if(e)return b(e)}}}function O(e,t,i,a){let s=(0,o.Kg)(t)?t:t.value;return s===n.mR?a?h(e,{value:s}):i?n.mR:n.BW:s===n.BW?n.BW:h(e,{value:s})}function _(e){return void 0===e?void 0:{h:e.h.value,s:e.s.value,l:e.l.value}}function R(e,t,i){let a={h:{enable:!1,value:e.h,min:n.L1,max:n.vS},s:{enable:!1,value:e.s,min:n.yx,max:n.eu},l:{enable:!1,value:e.l,min:n.vd,max:n.$_}};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.min=t.min,e.max=t.max,e.enable?(e.velocity=(0,a.VG)(t.speed)/n.a5*i,e.decay=n.WH-(0,a.VG)(t.decay),e.status=r.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){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+=i.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;let n=e.offset?(0,a.vE)(e.offset):0,o=(e.velocity??0)*i.factor+3.6*n,s=e.decay??1,l=e.max,d=e.min;t&&e.status!==r.H.increasing?(e.value-=o,e.value<d&&(e.loops??=0,e.loops++,e.status=r.H.increasing)):(e.value+=o,e.value>l&&(e.loops??=0,e.loops++,t?e.status=r.H.decreasing:e.value-=l)),e.velocity&&1!==s&&(e.velocity*=s),e.value=(0,a.qE)(e.value,d,l)}function F(e,t){if(!e)return;let{h:i,s:a,l:n}=e;T(i,!1,t),T(a,!0,t),T(n,!0,t)}function A(e,t,i){return{h:e.h,s:e.s,l:e.l+(t===s.H.darken?-n.iU:n.iU)*i}}},4759(e,t,i){i.d(t,{B:()=>n,t:()=>o});let a={debug:console.debug,error:(e,t)=>{console.error(`tsParticles - Error - ${e}`,t)},info:console.info,log:console.log,trace:console.trace,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 o(){return a}},8429(e,t,i){i.d(t,{$m:()=>_,AD:()=>p,DT:()=>function e(t,i){if(t===i||void 0===i&&(0,s.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:()=>c,JY:()=>O,M3:()=>D,Mh:()=>T,Nx:()=>A,OE:()=>u,OW:()=>R,Sc:()=>z,Sg:()=>x,VG:()=>b,W9:()=>w,Yf:()=>S,e4:()=>h,eh:()=>E,gp:()=>P,i0:()=>f,jh:()=>m,l1:()=>F,pu:()=>k,px:()=>v,qE:()=>g,qM:()=>I,vE:()=>y,vr:()=>M});var a=i(6118),n=i(9829),o=i(5360),s=i(5279);let r=Math.PI/180,l=Math.random,d={nextFrame:e=>requestAnimationFrame(e),cancel:e=>{cancelAnimationFrame(e)}};function u(e=Math.random){l=e}function c(){return g(l(),0,1-Number.EPSILON)}function h(e,t){return c()*(t-e)+e}function p(e,t){d.nextFrame=e,d.cancel=t}function f(e){return d.nextFrame(e)}function v(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,s.Et)(e)?e:y(e)}function x(e){return(0,s.Et)(e)?e:e.min}function w(e){return(0,s.Et)(e)?e:e.max}function M(e,t){let i=e.x-t.x,a=e.y-t.y;return{dx:i,dy:a,distance:Math.hypot(i,a)}}function z(e,t){let i=e.x-t.x,a=e.y-t.y;return i*i+a*a}function S(e,t){return Math.sqrt(z(e,t))}function P(e,t,i){return z(e,t)<=i*i}function k(e){return e*r}function O(e,t,i){if((0,s.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 c()*n.R1}}function _(e){let t=o.M.origin;return t.length=1,t.angle=e,t}function R(e,t,i,a){return o.M.create(e.x*(i-a)/(i+a)+t.x*n.gd*a/(i+a),e.y)}function E(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 T(e){return{x:(e.position?.x??c()*n.a5)*e.size.width/n.a5,y:(e.position?.y??c()*n.a5)*e.size.height/n.a5}}function F(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 T({size:e.size,position:t})}function A(e){let{position:t,size:i}=e;return{x:t?.x??c()*i.width,y:t?.y??c()*i.height}}function I(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 A({size:e.size,position:t})}function D(e){return e?e.endsWith("%")?parseFloat(e)/n.a5:parseFloat(e):1}},5811(e,t,i){i.d(t,{Z:()=>n,y:()=>o});var a=i(3751);function n(e,...t){for(let i of t)e.load(i)}function o(e,t,...i){let s=new a.U(e,t);return n(s,...i),s}},5279(e,t,i){function a(e){return"boolean"==typeof e}function n(e){return"string"==typeof e}function o(e){return"number"==typeof e}function s(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:()=>o,Gv:()=>r,Kg:()=>n,Lm:()=>a,Tn:()=>s,cy:()=>l,kZ:()=>d})},9767(e,t,i){i.d(t,{AE:()=>S,BR:()=>m,Bj:()=>p,E9:()=>F,HQ:()=>C,Kp:()=>V,O2:()=>z,Ot:()=>$,T5:()=>v,TA:()=>_,Tg:()=>P,Tj:()=>M,UC:()=>I,Vh:()=>w,Xs:()=>E,YC:()=>A,hJ:()=>L,hn:()=>b,lV:()=>g,n0:()=>x,pE:()=>k,q8:()=>f,tG:()=>y,td:()=>D,w3:()=>R,wJ:()=>O,zw:()=>function e(t,...i){for(let a of i){if((0,o.kZ)(a))continue;if(!(0,o.Gv)(a)){t=a;continue}Array.isArray(a)?Array.isArray(t)||(t=[]):(!(0,o.Gv)(t)||Array.isArray(t))&&(t={});let i=Object.keys(a),n=new Set(["__proto__","constructor","prototype"]);if(!i.some(e=>{let t=a[e];return(0,o.Gv)(t)||Array.isArray(t)})){let e=t;for(let t of i)if(!n.has(t)&&t in a){let i=a[t];void 0!==i&&(e[t]=i)}continue}for(let o of i){if(n.has(o))continue;let i=t,s=a[o];i[o]=Array.isArray(s)?s.map(t=>e(void 0,t)):e(i[o],s)}}return t}});var a=i(8429),n=i(9829),o=i(5279),s=i(3583),r=i(9241),l=i(2293),d=i(3906),u=i(8557),c=i(5678),h=i(5360);function p(e,t){let i=new Map,a=t?.maxSize,n=t?.ttlMs,o=t?.keyFn,s=(e,t=new WeakSet)=>{if(null===e)return"null";let i=typeof e;if("undefined"===i)return"undefined";if("number"===i||"boolean"===i||"string"===i)return JSON.stringify(e);if("function"===i)try{return e.toString()}catch{return'"[Function]"'}if("symbol"===i)try{return e.toString()}catch{return'"[Symbol]"'}if(Array.isArray(e))return`[${e.map(e=>s(e,t)).join(",")}]`;if(t.has(e))return'"[Circular]"';t.add(e);let a=Object.keys(e).sort();return`{${a.map(i=>`${JSON.stringify(i)}:${s(e[i],t)}`).join(",")}}`};return(...t)=>{let r,l=(r=t,o?o(r):s(r)),d=Date.now(),u=i.get(l);if(void 0!==u)if(!n||!(d-u.ts>n))return i.delete(l),i.set(l,{value:u.value,ts:u.ts}),u.value;else i.delete(l);let c=e(...t);if(i.set(l,{value:c,ts:d}),"number"==typeof a&&a>=0)for(;i.size>a;){let e=i.keys().next().value;if(void 0===e)break;i.delete(e)}return c}}function f(){return"u">typeof matchMedia}function v(){return globalThis.document}function g(e){if(f())return matchMedia(e)}function m(e){if("u">typeof IntersectionObserver)return new IntersectionObserver(e)}function y(e){if("u">typeof MutationObserver)return new MutationObserver(e)}function b(e,t){return e===t||(0,o.cy)(t)&&t.includes(e)}function x(e){return Math.floor((0,a.G0)()*e.length)}function w(e,t,i=!0){return e[void 0!==t&&i?t%e.length:x(e)]}function M(e,t,i,a,n){return z(S(e,a??0),t,i,n)}function z(e,t,i,a){let n=!0;return a&&a!==d.v.bottom||(n=e.top<t.height+i.x),n&&(!a||a===d.v.left)&&(n=e.right>i.x),n&&(!a||a===d.v.right)&&(n=e.left<t.width+i.y),n&&(!a||a===d.v.top)&&(n=e.bottom>i.y),n}function S(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function P(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:h.M.create((0,a.VG)(e.options.bounce.horizontal.value),(0,a.VG)(e.options.bounce.vertical.value))}}function k(e,t){let{x:i,y:n}=e.velocity.sub(t.velocity),[o,s]=[e.position,t.position],{dx:r,dy:l}=(0,a.vr)(s,o);if(i*r+n*l<0)return;let d=-Math.atan2(l,r),u=e.mass,c=t.mass,h=e.velocity.rotate(d),p=t.velocity.rotate(d),f=(0,a.OW)(h,p,u,c),v=(0,a.OW)(p,h,u,c),g=f.rotate(-d),m=v.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 O(e,t){return(0,o.cy)(e)?e.map((e,i)=>t(e,i)):t(e,0)}function _(e,t,i){return(0,o.cy)(e)?w(e,t,i):e}function R(e,t){return(0,o.cy)(e)?e.find((e,i)=>t(e,i)):t(e,0)?e:void 0}function E(e,t){let i=e.value,o=e.animation,l={delayTime:(0,a.VG)(o.delay)*n.Xu,enable:o.enable,value:(0,a.VG)(e.value)*t,max:(0,a.W9)(i)*t,min:(0,a.Sg)(i)*t,loops:0,maxLoops:(0,a.VG)(o.count),time:0};if(o.enable){switch(l.decay=1-(0,a.VG)(o.decay),o.mode){case s.g.increase:l.status=r.H.increasing;break;case s.g.decrease:l.status=r.H.decreasing;break;case s.g.random:l.status=(0,a.G0)()>=n.MX?r.H.increasing:r.H.decreasing}let e=o.mode===s.g.auto;switch(o.startValue){case c.S.min:l.value=l.min,e&&(l.status=r.H.increasing);break;case c.S.max:l.value=l.max,e&&(l.status=r.H.decreasing);break;case c.S.random:default:l.value=(0,a.vE)(l),e&&(l.status=(0,a.G0)()>=n.MX?r.H.increasing:r.H.decreasing)}}return l.initialValue=l.value,l}function T(e,t){if(e.mode!==u.q.percent){let{mode:t,...i}=e;return i}return"x"in e?{x:e.x/n.a5*t.width,y:e.y/n.a5*t.height}:{width:e.width/n.a5*t.width,height:e.height/n.a5*t.height}}function F(e,t){return T(e,t)}function A(e,t){return T(e,t)}function I(e,t,i,n,o){if(e.destroyed||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;let s=(t.velocity??0)*o.factor,d=t.min,u=t.max,c=t.decay??1;if(t.time??=0,(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=o.value),!((t.delayTime??0)>0)||!(t.time<(t.delayTime??0))){switch(t.status){case r.H.increasing:t.value+=s;break;case r.H.decreasing:t.value-=s}switch(t.velocity&&1!==c&&(t.velocity*=c),t.status){case r.H.increasing:t.value>=u&&(i?t.status=r.H.decreasing:t.value-=u,t.loops??=0,t.loops++);break;case r.H.decreasing:t.value<=d&&(i?t.status=r.H.increasing:t.value+=u,t.loops??=0,t.loops++)}var h=t.value;switch(n){case l.V.max:h>=u&&e.destroy();break;case l.V.min:h<=d&&e.destroy()}e.destroyed||(t.value=(0,a.qE)(t.value,d,u))}}function D(e){let t=v().createElement("div").style;for(let i in e){let a=e[i];if(!(i in e)||(0,o.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 L=p(function(e){let t=v().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});function V(e,t,i,a,n){if(a){let a={passive:!0};(0,o.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}}},u={};function c(e){var t=u[e];if(void 0!==t)return t.exports;var i=u[e]={exports:{}};return d[e](i,i.exports,c),i.exports}c.m=d,c.d=(e,t)=>{for(var i in t)c.o(t,i)&&!c.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce((t,i)=>(c.f[i](e,t),t),[])),c.u=e=>""+e+".min.js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h={},c.l=(e,t,i,a)=>{if(h[e])return void h[e].push(t);if(void 0!==i)for(var n,o,s=document.getElementsByTagName("script"),r=0;r<s.length;r++){var l=s[r];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")=="@tsparticles/engine:"+i){n=l;break}}n||(o=!0,(n=document.createElement("script")).charset="utf-8",c.nc&&n.setAttribute("nonce",c.nc),n.setAttribute("data-webpack","@tsparticles/engine:"+i),n.src=e),h[e]=[t];var d=(t,i)=>{n.onerror=n.onload=null,clearTimeout(u);var a=h[e];if(delete h[e],n.parentNode&&n.parentNode.removeChild(n),a&&a.forEach(e=>e(i)),t)return t(i)},u=setTimeout(d.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=d.bind(null,n.onerror),n.onload=d.bind(null,n.onload),o&&document.head.appendChild(n)},c.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.g.importScripts&&(p=c.g.location+"");var h,p,f=c.g.document;if(!p&&f&&(f.currentScript&&"SCRIPT"===f.currentScript.tagName.toUpperCase()&&(p=f.currentScript.src),!p)){var v=f.getElementsByTagName("script");if(v.length)for(var g=v.length-1;g>-1&&(!p||!/^http(s?):/.test(p));)p=v[g--].src}if(!p)throw Error("Automatic publicPath is not supported in this browser");c.p=p=p.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e={397:0},c.f.j=(t,i)=>{var a=c.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=c.p+c.u(t),s=Error();c.l(o,i=>{if(c.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;s.message="Loading chunk "+t+` failed.
2
+ (`+n+": "+o+")",s.name="ChunkLoadError",s.type=n,s.request=o,a[1](s)}},"chunk-"+t,t)}},t=(t,i)=>{var a,n,[o,s,r]=i,l=0;if(o.some(t=>0!==e[t])){for(a in s)c.o(s,a)&&(c.m[a]=s[a]);r&&r(c)}for(t&&t(i);l<o.length;l++)n=o[l],c.o(e,n)&&e[n]&&e[n][0](),e[n]=0},(i=this.webpackChunk_tsparticles_engine=this.webpackChunk_tsparticles_engine||[]).forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i));var m={};c.r(m),c.d(m,{AlterType:()=>L.H,AnimatableColor:()=>Z.A,AnimationMode:()=>F.g,AnimationOptions:()=>G.p,AnimationStatus:()=>B.H,AnimationValueWithRandom:()=>ey.Jm,Background:()=>H.V,BaseRange:()=>_.dg,Circle:()=>_.jl,ColorAnimation:()=>q.e,DestroyType:()=>V.V,EasingType:()=>l,EventType:()=>w.B,Fill:()=>U.S,FullScreen:()=>j.m,GradientType:()=>r,HslAnimation:()=>N.i,LimitMode:()=>A.d,Move:()=>et.y,MoveAngle:()=>ei.h,MoveCenter:()=>ea.Z,MoveDirection:()=>E.F,MoveGravity:()=>en.y,MovePath:()=>es.v,Opacity:()=>ec.Y,OpacityAnimation:()=>eh.I,Options:()=>W.J,OptionsColor:()=>K.O,OutMode:()=>I.Y,OutModeDirection:()=>T.v,OutModes:()=>eo.j,Paint:()=>Y.P,ParticleOutType:()=>C.x,ParticlesBounce:()=>X.w,ParticlesBounceFactor:()=>J.F,ParticlesDensity:()=>eu.M,ParticlesNumber:()=>el.N,ParticlesNumberLimit:()=>ed.A,ParticlesOptions:()=>Q.U,PixelMode:()=>D.q,RangedAnimationOptions:()=>G.Q,RangedAnimationValueWithRandom:()=>ey.AI,Rectangle:()=>_.M_,ResizeEvent:()=>em.z,RotateDirection:()=>s,Shape:()=>ep.y,Size:()=>ef.o,SizeAnimation:()=>ev.q,Spin:()=>er.t,StartValueType:()=>$.S,Stroke:()=>ee.t,ValueWithRandom:()=>ey.PV,Vector:()=>R.M,Vector3d:()=>R.p,ZIndex:()=>eg.P,alterHsl:()=>ex.yx,animate:()=>S.i0,areBoundsInside:()=>b.O2,arrayRandomIndex:()=>b.n0,calcExactPositionOrRandomFromSize:()=>S.Nx,calcExactPositionOrRandomFromSizeRanged:()=>S.qM,calcPositionFromSize:()=>S.eh,calcPositionOrRandomFromSize:()=>S.Mh,calcPositionOrRandomFromSizeRanged:()=>S.l1,calculateBounds:()=>b.AE,cancelAnimation:()=>S.px,canvasFirstIndex:()=>y.Nx,canvasTag:()=>y.RF,checkDistance:()=>S.gp,circleBounce:()=>b.pE,circleBounceDataFromParticle:()=>b.Tg,clamp:()=>S.qE,clear:()=>eb.IU,cloneStyle:()=>b.td,collisionVelocity:()=>S.OW,colorMix:()=>ex.EY,colorToHsl:()=>ex.mK,colorToRgb:()=>ex.qe,countOffset:()=>y.nq,decayOffset:()=>y.WH,deepExtend:()=>b.zw,defaultAlpha:()=>y.aZ,defaultAngle:()=>y.tA,defaultCompositeValue:()=>y.yj,defaultDensityFactor:()=>y.lA,defaultFps:()=>y.z$,defaultFpsLimit:()=>y.i8,defaultLoops:()=>y.hK,defaultOpacity:()=>y.hv,defaultRatio:()=>y.$x,defaultReduceFactor:()=>y.Zp,defaultRemoveQuantity:()=>y.xd,defaultRetryCount:()=>y.rq,defaultRgbMin:()=>y.Fl,defaultTime:()=>y.tR,defaultTransform:()=>y.Ug,defaultTransformValue:()=>y.zs,defaultVelocity:()=>y.jn,defaultZoom:()=>y.Pf,degToRad:()=>S.pu,deleteCount:()=>y.LD,double:()=>y.gd,doublePI:()=>y.R1,drawAfterEffect:()=>eb.k,drawBeforeEffect:()=>eb.z5,drawParticle:()=>eb.p0,drawParticlePlugin:()=>eb.Wb,drawShape:()=>eb.KG,drawShapeAfterDraw:()=>eb.gF,drawShapeBeforeDraw:()=>eb.VG,empty:()=>y.Ie,executeOnSingleOrMultiple:()=>b.wJ,findItemFromSingleOrMultiple:()=>b.w3,generatedAttribute:()=>y.eb,generatedFalse:()=>y.X$,generatedTrue:()=>y.ce,getDistance:()=>S.Yf,getDistanceSq:()=>S.Sc,getDistances:()=>S.vr,getFullScreenStyle:()=>b.hJ,getHslAnimationFromHsl:()=>ex.pz,getHslFromAnimation:()=>ex.O_,getItemMapFromInitializer:()=>b.Ot,getItemsFromInitializer:()=>b.HQ,getLinkColor:()=>ex._h,getLinkRandomColor:()=>ex.PG,getLogger:()=>z.t,getParticleBaseVelocity:()=>S.$m,getParticleDirectionAngle:()=>S.JY,getPosition:()=>b.E9,getRandom:()=>S.G0,getRandomInRange:()=>S.e4,getRandomRgbColor:()=>ex.OH,getRangeMax:()=>S.W9,getRangeMin:()=>S.Sg,getRangeValue:()=>S.VG,getSize:()=>b.YC,getStyleFromHsl:()=>ex.LC,getStyleFromRgb:()=>ex.xx,hMax:()=>y.vS,hMin:()=>y.L1,hPhase:()=>y.U0,half:()=>y.MX,hasMatchMedia:()=>b.q8,hslToRgb:()=>ex.YL,hslaToRgba:()=>ex.ay,identity:()=>y.D_,initParticleNumericAnimationValue:()=>b.Xs,inverseFactorNumerator:()=>y.hB,isArray:()=>eM.cy,isBoolean:()=>eM.Lm,isFunction:()=>eM.Tn,isInArray:()=>b.hn,isNull:()=>eM.kZ,isNumber:()=>eM.Et,isObject:()=>eM.Gv,isPointInside:()=>b.Tj,isString:()=>eM.Kg,itemFromArray:()=>b.Vh,itemFromSingleOrMultiple:()=>b.TA,lFactor:()=>y.iU,lMax:()=>y.$_,lMin:()=>y.vd,lengthOffset:()=>y.K3,loadMinIndex:()=>y.PZ,loadOptions:()=>ew.Z,loadParticlesOptions:()=>ew.y,loadRandomFactor:()=>y.$v,manageListener:()=>b.Kp,memoize:()=>b.Bj,midColorValue:()=>y.BW,millisecondsToSeconds:()=>y.Xu,minCount:()=>y.wM,minFpsLimit:()=>y.DN,minIndex:()=>y.z9,minLimit:()=>y.ou,minStrokeWidth:()=>y.Dv,minVelocity:()=>y.GW,minZ:()=>y.X_,minimumSize:()=>y.w2,mix:()=>S.jh,none:()=>y.dv,one:()=>y.xH,originPoint:()=>y.bo,paintBase:()=>eb.Sn,paintImage:()=>eb.Md,parseAlpha:()=>S.M3,percentDenominator:()=>y.a5,phaseNumerator:()=>y.BF,quarter:()=>y.$G,randomColorValue:()=>y.mR,randomInRangeValue:()=>S.vE,rangeColorToHsl:()=>ex.R5,rangeColorToRgb:()=>ex.BN,removeDeleteCount:()=>y.JC,removeMinIndex:()=>y.vF,resizeEvent:()=>y.NF,rgbMax:()=>y.oi,rgbToHsl:()=>ex.K6,sMax:()=>y.eu,sMin:()=>y.yx,sNormalizedOffset:()=>y.aE,safeDocument:()=>b.T5,safeIntersectionObserver:()=>b.BR,safeMatchMedia:()=>b.lV,safeMutationObserver:()=>b.tG,setAnimationFunctions:()=>S.AD,setLogger:()=>z.B,setRandom:()=>S.OE,setRangeValue:()=>S.DT,sextuple:()=>y.zg,spatialHashGridCellSize:()=>y.iX,squareExp:()=>y.dm,stringToAlpha:()=>ex.zI,stringToRgb:()=>ex.eg,threeQuarter:()=>y.Rq,triple:()=>y.Nu,tryCountIncrement:()=>y.Eo,tsParticles:()=>ez,updateAnimation:()=>b.UC,updateColor:()=>ex.Jv,updateColorValue:()=>ex.Ko,visibilityChangeEvent:()=>y.nK,zIndexFactorOffset:()=>y.RV});var y=c(9829),b=c(9767);class x{_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<y.z9||(a===y.LD?this._listeners.delete(e):i.splice(n,y.LD))}}var w=c(5871);class M{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;initializers={effects:new Map,shapes:new Map,updaters:new Map};palettes=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;_allLoadersSet=new Set;_configs=new Map;_engine;_executedSet=new Set;_initialized=!1;_isRunningLoaders=!1;_loadPromises=new Set;constructor(e){this._engine=e}get configs(){let e={};for(let[t,i]of this._configs)e[t]=i;return e}addColorManager(e,t){this.colorManagers.set(e,t)}addConfig(e){let t=e.key??e.name??"default";this._configs.set(t,e),this._engine.dispatchEvent(w.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)}addPalette(e,t){this.palettes.set(e,t)}addParticleUpdater(e,t){this.initializers.updaters.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)}clearPlugins(e){this.effectDrawers.delete(e),this.shapeDrawers.delete(e),this.updaters.delete(e)}getEasing(e){return this.easingFunctions.get(e)??(e=>e)}getEffectDrawers(e,t=!1){return(0,b.Ot)(e,this.effectDrawers,this.initializers.effects,t)}getPalette(e){return this.palettes.get(e)}getPlugin(e){return this.plugins.find(t=>t.id===e)}getPreset(e){return this.presets.get(e)}async getShapeDrawers(e,t=!1){return(0,b.Ot)(e,this.shapeDrawers,this.initializers.shapes,t)}async getUpdaters(e,t=!1){return(0,b.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}}}loadParticlesOptions(e,t,...i){let a=this.updaters.get(e);a&&a.forEach(e=>e.loadOptions?.(t,...i))}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)}async _runLoader(e,t,i){t.has(e)||(t.add(e),i.add(e),await e(this._engine))}}var z=c(4759),S=c(8429);let P="100%";async function k(e){let t=(0,b.TA)(e.url,e.index);if(!t)return e.fallback;let i=await fetch(t);return i.ok?await i.json():((0,z.t)().error(`${i.status.toString()} while retrieving config file`),e.fallback)}class O{pluginManager=new M(this);_domArray=[];_eventDispatcher=new x;_initialized=!1;get items(){return this._domArray}get version(){return"4.0.0-beta.10"}addEventListener(e,t){this._eventDispatcher.addEventListener(e,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}`)}dispatchEvent(e,t){this._eventDispatcher.dispatchEvent(e,t)}async init(){this._initialized||(await this.pluginManager.init(),this._initialized=!0)}item(e){let{items:t}=this,i=t[e];return i?.destroyed?void t.splice(e,y.JC):i}async load(e){var t;let i,a;await this.init();let{Container:n}=await c.e(67).then(c.bind(c,6067)),o=e.id??e.element?.id??`tsparticles${Math.floor((0,S.G0)()*y.$v).toString()}`,{index:s,url:r}=e,l=r?await k({fallback:e.options,url:r,index:s}):e.options,d=(0,b.TA)(l,s),{items:u}=this,h=u.findIndex(e=>e.id.description===o),p=new n({dispatchCallback:(e,t)=>{this.dispatchEvent(e,t)},id:o,onDestroy:e=>{if(!e)return;let t=this.items,i=t.indexOf(p);i>=y.vF&&t.splice(i,y.JC)},pluginManager:this.pluginManager,sourceOptions:d});if(h>=y.PZ){let e=this.item(h),t=e?y.xH:y.dv;e&&!e.destroyed&&e.destroy(!1),u.splice(h,t,p)}else u.push(p);let f=(e=>{let t,i=(0,b.T5)();if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===y.RF)t=e,t.dataset[y.eb]??=y.X$;else{let a=e.getElementsByTagName(y.RF)[y.Nx];a?(t=a).dataset[y.eb]=y.X$:((t=i.createElement(y.RF)).dataset[y.eb]=y.ce,e.appendChild(t))}return t.style.width||=P,t.style.height||=P,t})((t=e.element,i=(0,b.T5)(),(a=t??i.getElementById(o))||((a=i.createElement("canvas")).id=o,a.dataset[y.eb]=y.ce,i.body.append(a)),a));return p.canvas.loadCanvas(f),await p.start(),p}async refresh(e=!0){e&&await Promise.all(this.items.map(e=>e.refresh()))}removeEventListener(e,t){this._eventDispatcher.removeEventListener(e,t)}}var _=c(864),R=c(5360),E=c(6118);(a=s||(s={})).clockwise="clockwise",a.counterClockwise="counter-clockwise",a.random="random";var T=c(3906),F=c(3583),A=c(4186),I=c(5017),D=c(8557),L=c(6383),V=c(2293);(n=r||(r={})).linear="linear",n.radial="radial",n.random="random";var C=c(5937),$=c(5678);(o=l||(l={})).easeInBack="ease-in-back",o.easeInBounce="ease-in-bounce",o.easeInCirc="ease-in-circ",o.easeInCubic="ease-in-cubic",o.easeInElastic="ease-in-elastic",o.easeInExpo="ease-in-expo",o.easeInGaussian="ease-in-gaussian",o.easeInLinear="ease-in-linear",o.easeInQuad="ease-in-quad",o.easeInQuart="ease-in-quart",o.easeInQuint="ease-in-quint",o.easeInSigmoid="ease-in-sigmoid",o.easeInSine="ease-in-sine",o.easeInSmoothstep="ease-in-smoothstep",o.easeOutBack="ease-out-back",o.easeOutBounce="ease-out-bounce",o.easeOutCirc="ease-out-circ",o.easeOutCubic="ease-out-cubic",o.easeOutElastic="ease-out-elastic",o.easeOutExpo="ease-out-expo",o.easeOutGaussian="ease-out-gaussian",o.easeOutLinear="ease-out-linear",o.easeOutQuad="ease-out-quad",o.easeOutQuart="ease-out-quart",o.easeOutQuint="ease-out-quint",o.easeOutSigmoid="ease-out-sigmoid",o.easeOutSine="ease-out-sine",o.easeOutSmoothstep="ease-out-smoothstep",o.easeInOutBack="ease-in-out-back",o.easeInOutBounce="ease-in-out-bounce",o.easeInOutCirc="ease-in-out-circ",o.easeInOutCubic="ease-in-out-cubic",o.easeInOutElastic="ease-in-out-elastic",o.easeInOutExpo="ease-in-out-expo",o.easeInOutGaussian="ease-in-out-gaussian",o.easeInOutLinear="ease-in-out-linear",o.easeInOutQuad="ease-in-out-quad",o.easeInOutQuart="ease-in-out-quart",o.easeInOutQuint="ease-in-out-quint",o.easeInOutSigmoid="ease-in-out-sigmoid",o.easeInOutSine="ease-in-out-sine",o.easeInOutSmoothstep="ease-in-out-smoothstep";var B=c(9241),Z=c(3097),G=c(120),H=c(3351),q=c(4507),j=c(4581),N=c(9135),W=c(8032),K=c(7421),X=c(7484),J=c(4487),Q=c(3751),U=c(2109),Y=c(5802),ee=c(7160),et=c(6353),ei=c(1158),ea=c(9904),en=c(2579),eo=c(1084),es=c(9976),er=c(4e3),el=c(1200),ed=c(5265),eu=c(4325),ec=c(3889),eh=c(795),ep=c(6717),ef=c(3305),ev=c(7635),eg=c(3043),em=c(5246),ey=c(8536),eb=c(6491),ex=c(2912),ew=c(5811),eM=c(5279);let ez=new O;return globalThis.tsParticles=ez,m})());
@@ -0,0 +1,39 @@
1
+ import type { Container } from "./Container.js";
2
+ import type { ICoordinates } from "./Interfaces/ICoordinates.js";
3
+ import type { IDimension } from "./Interfaces/IDimension.js";
4
+ import type { PluginManager } from "./Utils/PluginManager.js";
5
+ import { RenderManager } from "./RenderManager.js";
6
+ export declare class CanvasManager {
7
+ element?: HTMLCanvasElement;
8
+ readonly render: RenderManager;
9
+ readonly size: IDimension;
10
+ zoom: number;
11
+ private readonly _container;
12
+ private _generated;
13
+ private _mutationObserver?;
14
+ private _originalStyle?;
15
+ private readonly _pluginManager;
16
+ private _pointerEvents;
17
+ private _resizePlugins;
18
+ private readonly _standardSize;
19
+ private _zoomCenter?;
20
+ constructor(pluginManager: PluginManager, container: Container);
21
+ private get _fullScreen();
22
+ destroy(): void;
23
+ getZoomCenter(): ICoordinates;
24
+ init(): void;
25
+ initBackground(): void;
26
+ initPlugins(): void;
27
+ loadCanvas(canvas: HTMLCanvasElement): void;
28
+ resize(): boolean;
29
+ setPointerEvents(type: string): void;
30
+ setZoom(zoomLevel: number, center?: ICoordinates): void;
31
+ stop(): void;
32
+ windowResize(): Promise<void>;
33
+ private readonly _applyResizePlugins;
34
+ private readonly _initStyle;
35
+ private readonly _repairStyle;
36
+ private readonly _resetOriginalStyle;
37
+ private readonly _safeMutationObserver;
38
+ private readonly _setFullScreenStyle;
39
+ }
@@ -1,14 +1,26 @@
1
- import { Canvas } from "./Canvas.js";
2
- import type { Engine } from "./Engine.js";
1
+ import { CanvasManager } from "./CanvasManager.js";
2
+ import type { CustomEventArgs } from "../Types/CustomEventArgs.js";
3
3
  import type { IContainerPlugin } from "./Interfaces/IContainerPlugin.js";
4
+ import { type IEffectDrawer } from "./Interfaces/IEffectDrawer.js";
5
+ import { type IParticleUpdater } from "./Interfaces/IParticleUpdater.js";
6
+ import { type IShapeDrawer } from "./Interfaces/IShapeDrawer.js";
4
7
  import type { ISourceOptions } from "../Types/ISourceOptions.js";
5
8
  import { Options } from "../Options/Classes/Options.js";
6
- import { Particles } from "./Particles.js";
9
+ import { ParticlesManager } from "./ParticlesManager.js";
10
+ import type { PluginManager } from "./Utils/PluginManager.js";
7
11
  import { Retina } from "./Retina.js";
12
+ interface ContainerParams {
13
+ dispatchCallback: (eventType: string, args?: CustomEventArgs) => void;
14
+ id: string;
15
+ onDestroy: (remove: boolean) => void;
16
+ pluginManager: PluginManager;
17
+ sourceOptions?: ISourceOptions;
18
+ }
8
19
  export declare class Container {
9
20
  actualOptions: Options;
10
- readonly canvas: Canvas;
21
+ readonly canvas: CanvasManager;
11
22
  destroyed: boolean;
23
+ effectDrawers: Map<string, IEffectDrawer>;
12
24
  fpsLimit: number;
13
25
  hdr: boolean;
14
26
  readonly id: symbol;
@@ -16,36 +28,42 @@ export declare class Container {
16
28
  readonly particleCreatedPlugins: IContainerPlugin[];
17
29
  readonly particleDestroyedPlugins: IContainerPlugin[];
18
30
  readonly particlePositionPlugins: IContainerPlugin[];
19
- readonly particles: Particles;
31
+ particleUpdaters: IParticleUpdater[];
32
+ readonly particles: ParticlesManager;
20
33
  readonly plugins: IContainerPlugin[];
21
34
  readonly retina: Retina;
35
+ shapeDrawers: Map<string, IShapeDrawer>;
22
36
  started: boolean;
23
37
  zLayers: number;
24
38
  private _delay;
25
39
  private _delayTimeout?;
26
40
  private readonly _delta;
41
+ private readonly _dispatchCallback;
27
42
  private _drawAnimationFrame?;
28
43
  private _duration;
29
- private readonly _engine;
30
44
  private readonly _eventListeners;
31
45
  private _firstStart;
32
46
  private _initialSourceOptions;
33
47
  private _lastFrameTime?;
34
48
  private _lifeTime;
49
+ private readonly _onDestroy;
35
50
  private _options;
36
51
  private _paused;
52
+ private readonly _pluginManager;
37
53
  private _smooth;
38
54
  private _sourceOptions;
39
- constructor(engine: Engine, id: string, sourceOptions?: ISourceOptions);
55
+ constructor(params: ContainerParams);
40
56
  get animationStatus(): boolean;
41
57
  get options(): Options;
42
58
  get sourceOptions(): ISourceOptions | undefined;
43
59
  addLifeTime(value: number): void;
44
60
  alive(): boolean;
45
61
  destroy(remove?: boolean): void;
62
+ dispatchEvent(type: string, data?: unknown): void;
46
63
  draw(force: boolean): void;
47
64
  export(type: string, options?: Record<string, unknown>): Promise<Blob | undefined>;
48
65
  init(): Promise<void>;
66
+ initDrawersAndUpdaters(): Promise<void>;
49
67
  pause(): void;
50
68
  play(force?: boolean): void;
51
69
  refresh(): Promise<void>;
@@ -55,3 +73,4 @@ export declare class Container {
55
73
  updateActualOptions(): boolean;
56
74
  private readonly _nextFrame;
57
75
  }
76
+ export {};
@@ -1,76 +1,24 @@
1
- import type { EasingType, EasingTypeAlt } from "../Enums/Types/EasingType.js";
2
- import type { EffectInitializer, Initializers, ShapeInitializer, UpdaterInitializer } from "../Types/EngineInitializers.js";
3
1
  import type { Container } from "./Container.js";
4
2
  import type { CustomEventArgs } from "../Types/CustomEventArgs.js";
5
3
  import type { CustomEventListener } from "../Types/CustomEventListener.js";
6
- import type { EasingFunction } from "../Types/EasingFunction.js";
7
- import type { IColorManager } from "./Interfaces/IColorManager.js";
8
- import type { IEffectDrawer } from "./Interfaces/IEffectDrawer.js";
9
4
  import type { ILoadParams } from "./Interfaces/ILoadParams.js";
10
- import type { IPalette } from "./Interfaces/IPalette.js";
11
- import type { IParticleUpdater } from "./Interfaces/IParticleUpdater.js";
12
- import type { IParticlesOptions } from "../Options/Interfaces/Particles/IParticlesOptions.js";
13
- import type { IPlugin } from "./Interfaces/IPlugin.js";
14
- import type { IShapeDrawer } from "./Interfaces/IShapeDrawer.js";
15
- import type { ISourceOptions } from "../Types/ISourceOptions.js";
16
- import type { ParticlesOptions } from "../Options/Classes/Particles/ParticlesOptions.js";
17
- import type { RecursivePartial } from "../Types/RecursivePartial.js";
5
+ import { PluginManager } from "./Utils/PluginManager.js";
18
6
  declare global {
19
7
  var tsParticles: Engine;
20
8
  }
21
- type AsyncLoadPluginFunction = (engine: Engine) => Promise<void>;
22
- type SyncLoadPluginFunction = (engine: Engine) => void;
23
- type AsyncLoadPluginNoEngine = () => Promise<void>;
24
- type SyncLoadPluginNoEngine = () => void;
25
- type LoadPluginFunction = AsyncLoadPluginFunction | SyncLoadPluginFunction | AsyncLoadPluginNoEngine | SyncLoadPluginNoEngine;
26
9
  export declare class Engine {
27
- readonly colorManagers: Map<string, IColorManager>;
28
- readonly easingFunctions: Map<EasingTypeAlt | EasingType, EasingFunction>;
29
- readonly effectDrawers: Map<Container, Map<string, IEffectDrawer<import("./Particle.js").Particle>>>;
30
- readonly initializers: Initializers;
31
- readonly palettes: Map<string, IPalette>;
32
- readonly plugins: IPlugin[];
33
- readonly presets: Map<string, RecursivePartial<import("../export-types.js").IOptions>>;
34
- readonly shapeDrawers: Map<Container, Map<string, IShapeDrawer<import("./Particle.js").Particle>>>;
35
- readonly updaters: Map<Container, IParticleUpdater[]>;
36
- private _allLoadersSet;
37
- private readonly _configs;
10
+ readonly pluginManager: PluginManager;
38
11
  private readonly _domArray;
39
12
  private readonly _eventDispatcher;
40
- private _executedSet;
41
13
  private _initialized;
42
- private _isRunningLoaders;
43
- private readonly _loadPromises;
44
- get configs(): Record<string, ISourceOptions>;
45
14
  get items(): Container[];
46
15
  get version(): string;
47
- addColorManager(name: string, manager: IColorManager): void;
48
- addConfig(config: ISourceOptions): void;
49
- addEasing(name: EasingType | EasingTypeAlt, easing: EasingFunction): void;
50
- addEffect(effect: string, drawer: EffectInitializer): void;
51
16
  addEventListener(type: string, listener: CustomEventListener): void;
52
- addPalette(name: string, palette: IPalette): void;
53
- addParticleUpdater(name: string, updaterInitializer: UpdaterInitializer): void;
54
- addPlugin(plugin: IPlugin): void;
55
- addPreset(preset: string, options: Readonly<ISourceOptions>, override?: boolean): void;
56
- addShape(shapes: string[], drawer: ShapeInitializer): void;
57
17
  checkVersion(pluginVersion: string): void;
58
- clearPlugins(container: Container): void;
59
18
  dispatchEvent(type: string, args?: CustomEventArgs): void;
60
- getEasing(name: EasingType | EasingTypeAlt): EasingFunction;
61
- getEffectDrawers(container: Container, force?: boolean): Promise<Map<string, IEffectDrawer>>;
62
- getPalette(name: string): IPalette | undefined;
63
- getPlugin(plugin: string): IPlugin | undefined;
64
- getPreset(preset: string): ISourceOptions | undefined;
65
- getShapeDrawers(container: Container, force?: boolean): Promise<Map<string, IShapeDrawer>>;
66
- getUpdaters(container: Container, force?: boolean): Promise<IParticleUpdater[]>;
67
19
  init(): Promise<void>;
68
20
  item(index: number): Container | undefined;
69
21
  load(params: ILoadParams): Promise<Container | undefined>;
70
- loadParticlesOptions(container: Container, options: ParticlesOptions, ...sourceOptions: (RecursivePartial<IParticlesOptions> | undefined)[]): void;
71
22
  refresh(refresh?: boolean): Promise<void>;
72
- register(...loaders: LoadPluginFunction[]): Promise<void>;
73
23
  removeEventListener(type: string, listener: CustomEventListener): void;
74
- private _runLoader;
75
24
  }
76
- export {};
@@ -1,3 +1,4 @@
1
+ import type { CanvasContextType } from "../../Types/CanvasContextType.js";
1
2
  import type { ExportResult } from "../../Types/ExportResult.js";
2
3
  import type { ICoordinates } from "./ICoordinates.js";
3
4
  import type { IDelta } from "./IDelta.js";
@@ -9,16 +10,16 @@ export interface IContainerPlugin {
9
10
  canvasClear?: () => boolean;
10
11
  canvasPaint?: () => boolean;
11
12
  checkParticlePosition?: (particle: Particle, position: ICoordinates, tryCount: number) => boolean;
12
- clearDraw?: (context: CanvasRenderingContext2D, delta: IDelta) => void;
13
+ clearDraw?: (context: CanvasContextType, delta: IDelta) => void;
13
14
  clickPositionValid?: (position: ICoordinates) => boolean;
14
15
  destroy?: () => void;
15
- draw?: (context: CanvasRenderingContext2D, delta: IDelta) => void;
16
- drawParticle?: (context: CanvasRenderingContext2D, particle: Particle, delta: IDelta) => void;
17
- drawParticleCleanup?: (context: CanvasRenderingContext2D, particle: Particle, delta: IDelta) => void;
18
- drawParticleSetup?: (context: CanvasRenderingContext2D, particle: Particle, delta: IDelta) => void;
16
+ draw?: (context: CanvasContextType, delta: IDelta) => void;
17
+ drawParticle?: (context: CanvasContextType, particle: Particle, delta: IDelta) => void;
18
+ drawParticleCleanup?: (context: CanvasContextType, particle: Particle, delta: IDelta) => void;
19
+ drawParticleSetup?: (context: CanvasContextType, particle: Particle, delta: IDelta) => void;
19
20
  drawParticleTransform?: (data: IShapeDrawData) => void;
20
- drawSettingsCleanup?: (context: CanvasRenderingContext2D, delta: IDelta) => void;
21
- drawSettingsSetup?: (context: CanvasRenderingContext2D, delta: IDelta) => void;
21
+ drawSettingsCleanup?: (context: CanvasContextType, delta: IDelta) => void;
22
+ drawSettingsSetup?: (context: CanvasContextType, delta: IDelta) => void;
22
23
  export?: (type: string, data: Record<string, unknown>) => Promise<ExportResult>;
23
24
  init?: () => Promise<void>;
24
25
  particleBounce?: (particle: Particle, delta: IDelta, direction: OutModeDirection) => boolean;
@@ -1,3 +1,4 @@
1
+ import type { CanvasContextType } from "../../Types/CanvasContextType.js";
1
2
  import type { Container } from "../Container.js";
2
3
  import type { IDelta } from "./IDelta.js";
3
4
  import type { IParticleColorStyle } from "./IParticleColorStyle.js";
@@ -6,7 +7,7 @@ import type { Particle } from "../Particle.js";
6
7
  export interface IDrawParticleParams {
7
8
  colorStyles: IParticleColorStyle;
8
9
  container: Container;
9
- context: CanvasRenderingContext2D;
10
+ context: CanvasContextType;
10
11
  delta: IDelta;
11
12
  opacity: number;
12
13
  particle: Particle;
@@ -1,7 +1,20 @@
1
+ import type { RangeValue } from "../../Types/RangeValue.js";
2
+ import type { SingleOrMultiple } from "../../Types/SingleOrMultiple.js";
3
+ export interface IPaletteColorsFill {
4
+ enable: boolean;
5
+ value: SingleOrMultiple<string>;
6
+ }
7
+ export interface IPaletteColorsStroke {
8
+ value: SingleOrMultiple<string>;
9
+ width: RangeValue;
10
+ }
11
+ export interface IPaletteColors {
12
+ fill?: IPaletteColorsFill;
13
+ stroke?: SingleOrMultiple<IPaletteColorsStroke>;
14
+ }
1
15
  export interface IPalette {
2
16
  background: string;
3
17
  blendMode: GlobalCompositeOperation;
4
- colors: string[];
5
- fill: boolean;
18
+ colors: IPaletteColors;
6
19
  name: string;
7
20
  }
@@ -1,8 +1,8 @@
1
1
  import type { IDistance } from "./IDistance.js";
2
2
  export interface IParticleRetinaProps {
3
3
  maxDistance: Partial<IDistance>;
4
- maxSpeed?: number;
5
- moveDrift?: number;
6
- moveSpeed?: number;
7
- sizeAnimationSpeed?: number;
4
+ maxSpeed: number;
5
+ moveDrift: number;
6
+ moveSpeed: number;
7
+ sizeAnimationSpeed: number;
8
8
  }
@@ -1,3 +1,4 @@
1
+ import type { CanvasContextType } from "../../Types/CanvasContextType.js";
1
2
  import type { IDelta } from "./IDelta.js";
2
3
  import type { IParticleColorStyle } from "./IParticleColorStyle.js";
3
4
  import type { IParticleTransformValues } from "./IParticleTransformValues.js";
@@ -8,7 +9,7 @@ import type { RecursivePartial } from "../../Types/RecursivePartial.js";
8
9
  export interface IParticleUpdater {
9
10
  afterDraw?: (particle: Particle) => void;
10
11
  beforeDraw?: (particle: Particle) => void;
11
- getColorStyles?: (particle: Particle, context: CanvasRenderingContext2D, radius: number, opacity: number) => IParticleColorStyle;
12
+ getColorStyles?: (particle: Particle, context: CanvasContextType, radius: number, opacity: number) => IParticleColorStyle;
12
13
  getTransformValues?: (particle: Particle) => Partial<IParticleTransformValues>;
13
14
  loadOptions?: (options: ParticlesOptions, ...sources: (RecursivePartial<IParticlesOptions> | undefined)[]) => void;
14
15
  particleDestroyed?: (particle: Particle, override?: boolean) => void;
@@ -1,8 +1,9 @@
1
+ import type { CanvasContextType } from "../../Types/CanvasContextType.js";
1
2
  import type { ICoordinates } from "./ICoordinates.js";
2
3
  import type { IDelta } from "./IDelta.js";
3
4
  import type { Particle } from "../Particle.js";
4
5
  export interface IShapeDrawData<TParticle extends Particle = Particle> {
5
- context: CanvasRenderingContext2D;
6
+ context: CanvasContextType;
6
7
  delta: IDelta;
7
8
  drawPosition: ICoordinates;
8
9
  drawRadius: number;
@@ -1,7 +1,6 @@
1
1
  import type { ICenterCoordinates, ICoordinates, ICoordinates3d } from "./Interfaces/ICoordinates.js";
2
2
  import { Vector, Vector3d } from "./Utils/Vectors.js";
3
3
  import type { Container } from "./Container.js";
4
- import type { Engine } from "./Engine.js";
5
4
  import type { IBubbleParticleData } from "./Interfaces/IBubbleParticleData.js";
6
5
  import type { IDelta } from "./Interfaces/IDelta.js";
7
6
  import type { IHsl } from "./Interfaces/Colors.js";
@@ -17,9 +16,9 @@ import type { IShapeValues } from "./Interfaces/IShapeValues.js";
17
16
  import type { ISlowParticleData } from "./Interfaces/ISlowParticleData.js";
18
17
  import { ParticleOutType } from "../Enums/Types/ParticleOutType.js";
19
18
  import type { ParticlesOptions } from "../Options/Classes/Particles/ParticlesOptions.js";
19
+ import type { PluginManager } from "./Utils/PluginManager.js";
20
20
  import type { RecursivePartial } from "../Types/RecursivePartial.js";
21
21
  export declare class Particle {
22
- readonly container: Container;
23
22
  backColor?: IHsl;
24
23
  bubble: IBubbleParticleData;
25
24
  destroyed: boolean;
@@ -66,8 +65,9 @@ export declare class Particle {
66
65
  private readonly _cachedPosition;
67
66
  private readonly _cachedRotateData;
68
67
  private readonly _cachedTransform;
69
- private readonly _engine;
70
- constructor(engine: Engine, container: Container);
68
+ private readonly _container;
69
+ private readonly _pluginManager;
70
+ constructor(pluginManager: PluginManager, container: Container);
71
71
  destroy(override?: boolean): void;
72
72
  draw(delta: IDelta): void;
73
73
  getAngle(): number;