@tsparticles/engine 3.3.0 → 3.5.0

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 (272) hide show
  1. package/README.md +0 -4
  2. package/browser/Core/Canvas.js +27 -22
  3. package/browser/Core/Container.js +57 -44
  4. package/browser/Core/Engine.js +82 -74
  5. package/browser/Core/Particle.js +29 -15
  6. package/browser/Core/Particles.js +23 -24
  7. package/browser/Core/Utils/EventListeners.js +18 -17
  8. package/browser/Core/Utils/ExternalInteractorBase.js +2 -1
  9. package/browser/Core/Utils/InteractionManager.js +3 -2
  10. package/browser/Core/Utils/ParticlesInteractorBase.js +2 -1
  11. package/browser/Core/Utils/QuadTree.js +1 -1
  12. package/browser/Core/Utils/Ranges.js +5 -4
  13. package/browser/Enums/AnimationStatus.js +5 -1
  14. package/browser/Enums/Directions/MoveDirection.js +14 -1
  15. package/browser/Enums/Directions/OutModeDirection.js +7 -1
  16. package/browser/Enums/Directions/RotateDirection.js +6 -1
  17. package/browser/Enums/InteractivityDetect.js +6 -1
  18. package/browser/Enums/Modes/AnimationMode.js +7 -1
  19. package/browser/Enums/Modes/CollisionMode.js +6 -1
  20. package/browser/Enums/Modes/LimitMode.js +5 -1
  21. package/browser/Enums/Modes/OutMode.js +8 -1
  22. package/browser/Enums/Modes/PixelMode.js +5 -1
  23. package/browser/Enums/Modes/ResponsiveMode.js +5 -1
  24. package/browser/Enums/Modes/ThemeMode.js +6 -1
  25. package/browser/Enums/Types/AlterType.js +5 -1
  26. package/browser/Enums/Types/DestroyType.js +6 -1
  27. package/browser/Enums/Types/DivType.js +5 -1
  28. package/browser/Enums/Types/EasingType.js +30 -1
  29. package/browser/Enums/Types/EventType.js +15 -1
  30. package/browser/Enums/Types/GradientType.js +6 -1
  31. package/browser/Enums/Types/InteractorType.js +5 -1
  32. package/browser/Enums/Types/ParticleOutType.js +6 -1
  33. package/browser/Enums/Types/StartValueType.js +6 -1
  34. package/browser/Options/Classes/AnimationOptions.js +4 -2
  35. package/browser/Options/Classes/Interactivity/Events/DivEvent.js +2 -1
  36. package/browser/Options/Classes/Interactivity/Events/Events.js +1 -1
  37. package/browser/Options/Classes/Interactivity/Interactivity.js +2 -1
  38. package/browser/Options/Classes/ManualParticle.js +2 -1
  39. package/browser/Options/Classes/Options.js +14 -12
  40. package/browser/Options/Classes/Particles/Collisions/Collisions.js +2 -1
  41. package/browser/Options/Classes/Particles/Move/Move.js +2 -1
  42. package/browser/Options/Classes/Particles/Move/MoveCenter.js +2 -1
  43. package/browser/Options/Classes/Particles/Move/OutModes.js +2 -1
  44. package/browser/Options/Classes/Particles/Number/ParticlesNumberLimit.js +2 -1
  45. package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +2 -1
  46. package/browser/Options/Classes/Particles/ParticlesOptions.js +1 -1
  47. package/browser/Options/Classes/Particles/Size/SizeAnimation.js +2 -1
  48. package/browser/Options/Classes/Responsive.js +5 -4
  49. package/browser/Options/Classes/Theme/ThemeDefault.js +2 -1
  50. package/browser/Types/RangeType.js +5 -1
  51. package/browser/Utils/CanvasUtils.js +13 -7
  52. package/browser/Utils/ColorUtils.js +17 -9
  53. package/browser/Utils/EventDispatcher.js +1 -1
  54. package/browser/Utils/HslColorManager.js +11 -4
  55. package/browser/Utils/NumberUtils.js +28 -14
  56. package/browser/Utils/RgbColorManager.js +11 -4
  57. package/browser/Utils/Utils.js +37 -31
  58. package/cjs/Core/Canvas.js +27 -22
  59. package/cjs/Core/Container.js +57 -44
  60. package/cjs/Core/Engine.js +82 -74
  61. package/cjs/Core/Particle.js +29 -15
  62. package/cjs/Core/Particles.js +23 -24
  63. package/cjs/Core/Utils/EventListeners.js +18 -17
  64. package/cjs/Core/Utils/ExternalInteractorBase.js +2 -1
  65. package/cjs/Core/Utils/InteractionManager.js +3 -2
  66. package/cjs/Core/Utils/ParticlesInteractorBase.js +2 -1
  67. package/cjs/Core/Utils/QuadTree.js +1 -1
  68. package/cjs/Core/Utils/Ranges.js +5 -4
  69. package/cjs/Enums/AnimationStatus.js +6 -0
  70. package/cjs/Enums/Directions/MoveDirection.js +15 -0
  71. package/cjs/Enums/Directions/OutModeDirection.js +8 -0
  72. package/cjs/Enums/Directions/RotateDirection.js +7 -0
  73. package/cjs/Enums/InteractivityDetect.js +7 -0
  74. package/cjs/Enums/Modes/AnimationMode.js +8 -0
  75. package/cjs/Enums/Modes/CollisionMode.js +7 -0
  76. package/cjs/Enums/Modes/LimitMode.js +6 -0
  77. package/cjs/Enums/Modes/OutMode.js +9 -0
  78. package/cjs/Enums/Modes/PixelMode.js +6 -0
  79. package/cjs/Enums/Modes/ResponsiveMode.js +6 -0
  80. package/cjs/Enums/Modes/ThemeMode.js +7 -0
  81. package/cjs/Enums/Types/AlterType.js +6 -0
  82. package/cjs/Enums/Types/DestroyType.js +7 -0
  83. package/cjs/Enums/Types/DivType.js +6 -0
  84. package/cjs/Enums/Types/EasingType.js +31 -0
  85. package/cjs/Enums/Types/EventType.js +16 -0
  86. package/cjs/Enums/Types/GradientType.js +7 -0
  87. package/cjs/Enums/Types/InteractorType.js +6 -0
  88. package/cjs/Enums/Types/ParticleOutType.js +7 -0
  89. package/cjs/Enums/Types/StartValueType.js +7 -0
  90. package/cjs/Options/Classes/AnimationOptions.js +4 -2
  91. package/cjs/Options/Classes/Interactivity/Events/DivEvent.js +2 -1
  92. package/cjs/Options/Classes/Interactivity/Events/Events.js +1 -1
  93. package/cjs/Options/Classes/Interactivity/Interactivity.js +2 -1
  94. package/cjs/Options/Classes/ManualParticle.js +2 -1
  95. package/cjs/Options/Classes/Options.js +14 -12
  96. package/cjs/Options/Classes/Particles/Collisions/Collisions.js +2 -1
  97. package/cjs/Options/Classes/Particles/Move/Move.js +2 -1
  98. package/cjs/Options/Classes/Particles/Move/MoveCenter.js +2 -1
  99. package/cjs/Options/Classes/Particles/Move/OutModes.js +2 -1
  100. package/cjs/Options/Classes/Particles/Number/ParticlesNumberLimit.js +2 -1
  101. package/cjs/Options/Classes/Particles/Opacity/OpacityAnimation.js +2 -1
  102. package/cjs/Options/Classes/Particles/ParticlesOptions.js +1 -1
  103. package/cjs/Options/Classes/Particles/Size/SizeAnimation.js +2 -1
  104. package/cjs/Options/Classes/Responsive.js +5 -4
  105. package/cjs/Options/Classes/Theme/ThemeDefault.js +2 -1
  106. package/cjs/Types/RangeType.js +6 -0
  107. package/cjs/Utils/CanvasUtils.js +24 -19
  108. package/cjs/Utils/ColorUtils.js +37 -30
  109. package/cjs/Utils/EventDispatcher.js +1 -1
  110. package/cjs/Utils/HslColorManager.js +11 -4
  111. package/cjs/Utils/NumberUtils.js +54 -38
  112. package/cjs/Utils/OptionsUtils.js +2 -3
  113. package/cjs/Utils/RgbColorManager.js +11 -4
  114. package/cjs/Utils/TypeUtils.js +6 -7
  115. package/cjs/Utils/Utils.js +66 -61
  116. package/cjs/init.js +1 -2
  117. package/esm/Core/Canvas.js +27 -22
  118. package/esm/Core/Container.js +57 -44
  119. package/esm/Core/Engine.js +82 -74
  120. package/esm/Core/Particle.js +29 -15
  121. package/esm/Core/Particles.js +23 -24
  122. package/esm/Core/Utils/EventListeners.js +18 -17
  123. package/esm/Core/Utils/ExternalInteractorBase.js +2 -1
  124. package/esm/Core/Utils/InteractionManager.js +3 -2
  125. package/esm/Core/Utils/ParticlesInteractorBase.js +2 -1
  126. package/esm/Core/Utils/QuadTree.js +1 -1
  127. package/esm/Core/Utils/Ranges.js +5 -4
  128. package/esm/Enums/AnimationStatus.js +5 -1
  129. package/esm/Enums/Directions/MoveDirection.js +14 -1
  130. package/esm/Enums/Directions/OutModeDirection.js +7 -1
  131. package/esm/Enums/Directions/RotateDirection.js +6 -1
  132. package/esm/Enums/InteractivityDetect.js +6 -1
  133. package/esm/Enums/Modes/AnimationMode.js +7 -1
  134. package/esm/Enums/Modes/CollisionMode.js +6 -1
  135. package/esm/Enums/Modes/LimitMode.js +5 -1
  136. package/esm/Enums/Modes/OutMode.js +8 -1
  137. package/esm/Enums/Modes/PixelMode.js +5 -1
  138. package/esm/Enums/Modes/ResponsiveMode.js +5 -1
  139. package/esm/Enums/Modes/ThemeMode.js +6 -1
  140. package/esm/Enums/Types/AlterType.js +5 -1
  141. package/esm/Enums/Types/DestroyType.js +6 -1
  142. package/esm/Enums/Types/DivType.js +5 -1
  143. package/esm/Enums/Types/EasingType.js +30 -1
  144. package/esm/Enums/Types/EventType.js +15 -1
  145. package/esm/Enums/Types/GradientType.js +6 -1
  146. package/esm/Enums/Types/InteractorType.js +5 -1
  147. package/esm/Enums/Types/ParticleOutType.js +6 -1
  148. package/esm/Enums/Types/StartValueType.js +6 -1
  149. package/esm/Options/Classes/AnimationOptions.js +4 -2
  150. package/esm/Options/Classes/Interactivity/Events/DivEvent.js +2 -1
  151. package/esm/Options/Classes/Interactivity/Events/Events.js +1 -1
  152. package/esm/Options/Classes/Interactivity/Interactivity.js +2 -1
  153. package/esm/Options/Classes/ManualParticle.js +2 -1
  154. package/esm/Options/Classes/Options.js +14 -12
  155. package/esm/Options/Classes/Particles/Collisions/Collisions.js +2 -1
  156. package/esm/Options/Classes/Particles/Move/Move.js +2 -1
  157. package/esm/Options/Classes/Particles/Move/MoveCenter.js +2 -1
  158. package/esm/Options/Classes/Particles/Move/OutModes.js +2 -1
  159. package/esm/Options/Classes/Particles/Number/ParticlesNumberLimit.js +2 -1
  160. package/esm/Options/Classes/Particles/Opacity/OpacityAnimation.js +2 -1
  161. package/esm/Options/Classes/Particles/ParticlesOptions.js +1 -1
  162. package/esm/Options/Classes/Particles/Size/SizeAnimation.js +2 -1
  163. package/esm/Options/Classes/Responsive.js +5 -4
  164. package/esm/Options/Classes/Theme/ThemeDefault.js +2 -1
  165. package/esm/Types/RangeType.js +5 -1
  166. package/esm/Utils/CanvasUtils.js +13 -7
  167. package/esm/Utils/ColorUtils.js +17 -9
  168. package/esm/Utils/EventDispatcher.js +1 -1
  169. package/esm/Utils/HslColorManager.js +11 -4
  170. package/esm/Utils/NumberUtils.js +28 -14
  171. package/esm/Utils/RgbColorManager.js +11 -4
  172. package/esm/Utils/Utils.js +37 -31
  173. package/package.json +1 -1
  174. package/report.html +1 -1
  175. package/tsparticles.engine.js +327 -225
  176. package/tsparticles.engine.min.js +1 -1
  177. package/tsparticles.engine.min.js.LICENSE.txt +1 -1
  178. package/types/Core/Container.d.ts +4 -2
  179. package/types/Core/Engine.d.ts +6 -5
  180. package/types/Core/Interfaces/IPlugin.d.ts +3 -4
  181. package/types/Core/Interfaces/IShapeDrawer.d.ts +1 -0
  182. package/types/Core/Particle.d.ts +1 -0
  183. package/types/Enums/AnimationStatus.d.ts +1 -1
  184. package/types/Enums/Directions/MoveDirection.d.ts +1 -1
  185. package/types/Enums/Directions/OutModeDirection.d.ts +1 -1
  186. package/types/Enums/Directions/RotateDirection.d.ts +1 -1
  187. package/types/Enums/InteractivityDetect.d.ts +1 -1
  188. package/types/Enums/Modes/AnimationMode.d.ts +1 -1
  189. package/types/Enums/Modes/CollisionMode.d.ts +1 -1
  190. package/types/Enums/Modes/LimitMode.d.ts +1 -1
  191. package/types/Enums/Modes/OutMode.d.ts +1 -1
  192. package/types/Enums/Modes/PixelMode.d.ts +1 -1
  193. package/types/Enums/Modes/ResponsiveMode.d.ts +1 -1
  194. package/types/Enums/Modes/ThemeMode.d.ts +1 -1
  195. package/types/Enums/Types/AlterType.d.ts +1 -1
  196. package/types/Enums/Types/DestroyType.d.ts +1 -1
  197. package/types/Enums/Types/DivType.d.ts +1 -1
  198. package/types/Enums/Types/EasingType.d.ts +1 -1
  199. package/types/Enums/Types/EventType.d.ts +1 -1
  200. package/types/Enums/Types/GradientType.d.ts +1 -1
  201. package/types/Enums/Types/InteractorType.d.ts +1 -1
  202. package/types/Enums/Types/ParticleOutType.d.ts +1 -1
  203. package/types/Enums/Types/StartValueType.d.ts +1 -1
  204. package/types/Options/Classes/Options.d.ts +2 -1
  205. package/types/Options/Classes/Responsive.d.ts +2 -2
  206. package/types/Options/Classes/Theme/Theme.d.ts +2 -2
  207. package/types/Options/Interfaces/IResponsive.d.ts +2 -3
  208. package/types/Options/Interfaces/Theme/ITheme.d.ts +2 -3
  209. package/types/Types/RangeType.d.ts +1 -1
  210. package/types/Utils/NumberUtils.d.ts +3 -0
  211. package/umd/Core/Canvas.js +27 -22
  212. package/umd/Core/Container.js +58 -45
  213. package/umd/Core/Engine.js +83 -99
  214. package/umd/Core/Particle.js +30 -16
  215. package/umd/Core/Particles.js +24 -25
  216. package/umd/Core/Utils/EventListeners.js +19 -18
  217. package/umd/Core/Utils/ExternalInteractorBase.js +3 -2
  218. package/umd/Core/Utils/InteractionManager.js +4 -3
  219. package/umd/Core/Utils/ParticlesInteractorBase.js +3 -2
  220. package/umd/Core/Utils/QuadTree.js +1 -1
  221. package/umd/Core/Utils/Ranges.js +6 -5
  222. package/umd/Enums/AnimationStatus.js +6 -0
  223. package/umd/Enums/Directions/MoveDirection.js +15 -0
  224. package/umd/Enums/Directions/OutModeDirection.js +8 -0
  225. package/umd/Enums/Directions/RotateDirection.js +7 -0
  226. package/umd/Enums/InteractivityDetect.js +7 -0
  227. package/umd/Enums/Modes/AnimationMode.js +8 -0
  228. package/umd/Enums/Modes/CollisionMode.js +7 -0
  229. package/umd/Enums/Modes/LimitMode.js +6 -0
  230. package/umd/Enums/Modes/OutMode.js +9 -0
  231. package/umd/Enums/Modes/PixelMode.js +6 -0
  232. package/umd/Enums/Modes/ResponsiveMode.js +6 -0
  233. package/umd/Enums/Modes/ThemeMode.js +7 -0
  234. package/umd/Enums/Types/AlterType.js +6 -0
  235. package/umd/Enums/Types/DestroyType.js +7 -0
  236. package/umd/Enums/Types/DivType.js +6 -0
  237. package/umd/Enums/Types/EasingType.js +31 -0
  238. package/umd/Enums/Types/EventType.js +16 -0
  239. package/umd/Enums/Types/GradientType.js +7 -0
  240. package/umd/Enums/Types/InteractorType.js +6 -0
  241. package/umd/Enums/Types/ParticleOutType.js +7 -0
  242. package/umd/Enums/Types/StartValueType.js +7 -0
  243. package/umd/Options/Classes/AnimationOptions.js +5 -3
  244. package/umd/Options/Classes/Interactivity/Events/DivEvent.js +3 -2
  245. package/umd/Options/Classes/Interactivity/Events/Events.js +1 -1
  246. package/umd/Options/Classes/Interactivity/Interactivity.js +3 -2
  247. package/umd/Options/Classes/ManualParticle.js +3 -2
  248. package/umd/Options/Classes/Options.js +15 -13
  249. package/umd/Options/Classes/Particles/Collisions/Collisions.js +3 -2
  250. package/umd/Options/Classes/Particles/Move/Move.js +3 -2
  251. package/umd/Options/Classes/Particles/Move/MoveCenter.js +3 -2
  252. package/umd/Options/Classes/Particles/Move/OutModes.js +3 -2
  253. package/umd/Options/Classes/Particles/Number/ParticlesNumberLimit.js +3 -2
  254. package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.js +3 -2
  255. package/umd/Options/Classes/Particles/ParticlesOptions.js +1 -1
  256. package/umd/Options/Classes/Particles/Size/SizeAnimation.js +3 -2
  257. package/umd/Options/Classes/Responsive.js +6 -5
  258. package/umd/Options/Classes/Theme/ThemeDefault.js +3 -2
  259. package/umd/Types/RangeType.js +6 -0
  260. package/umd/Utils/CanvasUtils.js +25 -20
  261. package/umd/Utils/ColorUtils.js +38 -31
  262. package/umd/Utils/EventDispatcher.js +1 -1
  263. package/umd/Utils/HslColorManager.js +11 -4
  264. package/umd/Utils/NumberUtils.js +55 -39
  265. package/umd/Utils/OptionsUtils.js +2 -3
  266. package/umd/Utils/RgbColorManager.js +11 -4
  267. package/umd/Utils/TypeUtils.js +6 -7
  268. package/umd/Utils/Utils.js +67 -62
  269. package/umd/init.js +1 -2
  270. package/174.min.js +0 -2
  271. package/174.min.js.LICENSE.txt +0 -1
  272. package/dist_browser_Core_Container_js.js +0 -102
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see tsparticles.engine.min.js.LICENSE.txt */
2
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var o in i)("object"==typeof exports?exports:t)[o]=i[o]}}(this,(()=>(()=>{var t,e,i={6299:(t,e,i)=>{i.d(e,{Bp:()=>d,DG:()=>h,G3:()=>u,N3:()=>g,NF:()=>v,Rb:()=>l,Xu:()=>y,Z0:()=>a,a5:()=>m,dI:()=>p,eb:()=>o,ms:()=>s,nK:()=>f,s7:()=>c,sf:()=>r,vo:()=>n});const o="generated",s="pointerdown",n="pointerup",a="pointerleave",r="pointerout",l="pointermove",c="touchstart",d="touchend",h="touchmove",u="touchcancel",v="resize",f="visibilitychange",p="tsParticles - Error",m=100,g=.5,y=1e3},888:(t,e,i)=>{i.d(e,{b:()=>o});class o{constructor(t,e){this.position=t,this.particle=e}}},6858:(t,e,i)=>{i.d(e,{M_:()=>a,dg:()=>s,jl:()=>n});var o=i(4802);class s{constructor(t,e,i){this.position={x:t,y:e},this.type=i}}class n extends s{constructor(t,e,i){super(t,e,"circle"),this.radius=i}contains(t){return(0,o.Yf)(t,this.position)<=this.radius}intersects(t){const e=this.position,i=t.position,o=Math.abs(i.x-e.x),s=Math.abs(i.y-e.y),r=this.radius;if(t instanceof n||"circle"===t.type){return r+t.radius>Math.sqrt(o**2+s**2)}if(t instanceof a||"rectangle"===t.type){const e=t,{width:i,height:n}=e.size;return Math.pow(o-i,2)+Math.pow(s-n,2)<=r**2||o<=r+i&&s<=r+n||o<=i||s<=n}return!1}}class a extends s{constructor(t,e,i,o){super(t,e,"rectangle"),this.size={height:o,width:i}}contains(t){const e=this.size.width,i=this.size.height,o=this.position;return t.x>=o.x&&t.x<=o.x+e&&t.y>=o.y&&t.y<=o.y+i}intersects(t){if(t instanceof n)return t.intersects(this);const e=this.size.width,i=this.size.height,o=this.position,s=t.position,r=t instanceof a?t.size:{width:0,height:0},l=r.width,c=r.height;return s.x<o.x+e&&s.x+l>o.x&&s.y<o.y+i&&s.y+c>o.y}}},4930:(t,e,i)=>{i.d(e,{M:()=>c,p:()=>l});var o=i(6299),s=i(645);const n=0,a=0,r=0;class l{constructor(t,e,i){if(this._updateFromAngle=(t,e)=>{this.x=Math.cos(t)*e,this.y=Math.sin(t)*e},!(0,s.Et)(t)&&t){this.x=t.x,this.y=t.y;const e=t;this.z=e.z?e.z:r}else{if(void 0===t||void 0===e)throw new Error(`${o.dI} Vector3d not initialized correctly`);this.x=t,this.y=e,this.z=i??r}}static get origin(){return l.create(n,a,r)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return l.create(t.x,t.y,t.z)}static create(t,e,i){return new l(t,e,i)}add(t){return l.create(this.x+t.x,this.y+t.y,this.z+t.z)}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=t.z}copy(){return l.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return l.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**2+this.y**2}mult(t){return l.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;0!=t&&this.multTo(1/t)}rotate(t){return l.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),r)}setTo(t){this.x=t.x,this.y=t.y;const e=t;this.z=e.z?e.z:r}sub(t){return l.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}class c extends l{constructor(t,e){super(t,e,r)}static get origin(){return c.create(n,a)}static clone(t){return c.create(t.x,t.y)}static create(t,e){return new c(t,e)}}},3731:(t,e,i)=>{i.d(e,{A:()=>a});var o=i(645),s=i(5637),n=i(2403);class a extends n.O{constructor(){super(),this.animation=new s.i}static create(t,e){const i=new a;return i.load(t),void 0!==e&&((0,o.Kg)(e)||(0,o.cy)(e)?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&(void 0!==e.enable?this.animation.h.load(e):this.animation.load(t.animation))}}},1066:(t,e,i)=>{i.d(e,{Q:()=>n,p:()=>s});var o=i(4802);class s{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=(0,o.DT)(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,o.DT)(t.speed)),void 0!==t.decay&&(this.decay=(0,o.DT)(t.decay)),void 0!==t.delay&&(this.delay=(0,o.DT)(t.delay)),void 0!==t.sync&&(this.sync=t.sync))}}class n extends s{constructor(){super(),this.mode="auto",this.startValue="random"}load(t){super.load(t),t&&(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.startValue&&(this.startValue=t.startValue))}}},5141:(t,e,i)=>{i.d(e,{V:()=>s});var o=i(2403);class s{constructor(){this.color=new o.O,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){t&&(void 0!==t.color&&(this.color=o.O.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.position&&(this.position=t.position),void 0!==t.repeat&&(this.repeat=t.repeat),void 0!==t.size&&(this.size=t.size),void 0!==t.opacity&&(this.opacity=t.opacity))}}},2993:(t,e,i)=>{i.d(e,{T:()=>n});var o=i(9878),s=i(645);class n{constructor(){this.composite="destination-out",this.cover=new o.y,this.enable=!1}load(t){if(t){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){const e=t.cover,i=(0,s.Kg)(t.cover)?{color:t.cover}:t.cover;this.cover.load(void 0!==e.color||void 0!==e.image?e:{color:i})}void 0!==t.enable&&(this.enable=t.enable)}}}},9878:(t,e,i)=>{i.d(e,{y:()=>s});var o=i(2403);class s{constructor(){this.opacity=1}load(t){t&&(void 0!==t.color&&(this.color=o.O.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.opacity&&(this.opacity=t.opacity))}}},397:(t,e,i)=>{i.d(e,{e:()=>n});var o=i(1066),s=i(4802);class n extends o.p{constructor(){super(),this.offset=0,this.sync=!0}load(t){super.load(t),t&&void 0!==t.offset&&(this.offset=(0,s.DT)(t.offset))}}},3571:(t,e,i)=>{i.d(e,{m:()=>o});class o{constructor(){this.enable=!0,this.zIndex=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}},5637:(t,e,i)=>{i.d(e,{i:()=>s});var o=i(397);class s{constructor(){this.h=new o.e,this.s=new o.e,this.l=new o.e}load(t){t&&(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}},1662:(t,e,i)=>{i.d(e,{r:()=>o});class o{constructor(){this.enable=!1,this.mode=[]}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}}},4023:(t,e,i)=>{i.d(e,{G:()=>o});class o{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}load(t){t&&(void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.type=t.type))}}},8435:(t,e,i)=>{i.d(e,{s:()=>l});var o=i(1662),s=i(4023),n=i(7412),a=i(8912),r=i(4013);class l{constructor(){this.onClick=new o.r,this.onDiv=new s.G,this.onHover=new n.L,this.resize=new a.z}load(t){if(!t)return;this.onClick.load(t.onClick);const e=t.onDiv;void 0!==e&&(this.onDiv=(0,r.wJ)(e,(t=>{const e=new s.G;return e.load(t),e}))),this.onHover.load(t.onHover),this.resize.load(t.resize)}}},7412:(t,e,i)=>{i.d(e,{L:()=>s});var o=i(1125);class s{constructor(){this.enable=!1,this.mode=[],this.parallax=new o.k}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}},1125:(t,e,i)=>{i.d(e,{k:()=>o});class o{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.force&&(this.force=t.force),void 0!==t.smooth&&(this.smooth=t.smooth))}}},8912:(t,e,i)=>{i.d(e,{z:()=>o});class o{constructor(){this.delay=.5,this.enable=!0}load(t){void 0!==t&&(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.enable&&(this.enable=t.enable))}}},6051:(t,e,i)=>{i.d(e,{k:()=>n});var o=i(8435),s=i(8095);class n{constructor(t,e){this.detectsOn="window",this.events=new o.s,this.modes=new s.d(t,e)}load(t){if(!t)return;const e=t.detectsOn;void 0!==e&&(this.detectsOn=e),this.events.load(t.events),this.modes.load(t.modes)}}},8095:(t,e,i)=>{i.d(e,{d:()=>o});class o{constructor(t,e){this._engine=t,this._container=e}load(t){if(!t)return;if(!this._container)return;const e=this._engine.interactors.get(this._container);if(e)for(const i of e)i.loadModeOptions&&i.loadModeOptions(this,t)}}},522:(t,e,i)=>{i.d(e,{j:()=>s});var o=i(4013);class s{load(t){t&&(t.position&&(this.position={x:t.position.x??50,y:t.position.y??50,mode:t.position.mode??"percent"}),t.options&&(this.options=(0,o.zw)({},t.options)))}}},5890:(t,e,i)=>{i.d(e,{J:()=>f});var o=i(4013),s=i(5141),n=i(2993),a=i(3571),r=i(6051),l=i(522),c=i(76),d=i(7219),h=i(645),u=i(7405),v=i(4802);class f{constructor(t,e){this._findDefaultTheme=t=>this.themes.find((e=>e.default.value&&e.default.mode===t))??this.themes.find((t=>t.default.value&&"any"===t.default.mode)),this._importPreset=t=>{this.load(this._engine.getPreset(t))},this._engine=t,this._container=e,this.autoPlay=!0,this.background=new s.V,this.backgroundMask=new n.T,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new a.m,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new r.k(t,e),this.manualParticles=[],this.particles=(0,u.y)(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(t){if(!t)return;void 0!==t.preset&&(0,o.wJ)(t.preset,(t=>this._importPreset(t))),void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.clear&&(this.clear=t.clear),void 0!==t.key&&(this.key=t.key),void 0!==t.name&&(this.name=t.name),void 0!==t.delay&&(this.delay=(0,v.DT)(t.delay));const e=t.detectRetina;void 0!==e&&(this.detectRetina=e),void 0!==t.duration&&(this.duration=(0,v.DT)(t.duration));const i=t.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==t.pauseOnBlur&&(this.pauseOnBlur=t.pauseOnBlur),void 0!==t.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),void 0!==t.zLayers&&(this.zLayers=t.zLayers),this.background.load(t.background);const s=t.fullScreen;(0,h.Lm)(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),t.manualParticles&&(this.manualParticles=t.manualParticles.map((t=>{const e=new l.j;return e.load(t),e}))),this.particles.load(t.particles),this.style=(0,o.zw)(this.style,t.style),this._engine.loadOptions(this,t),void 0!==t.smooth&&(this.smooth=t.smooth);const n=this._engine.interactors.get(this._container);if(n)for(const e of n)e.loadOptions&&e.loadOptions(this,t);if(void 0!==t.responsive)for(const e of t.responsive){const t=new c.F;t.load(e),this.responsive.push(t)}if(this.responsive.sort(((t,e)=>t.maxWidth-e.maxWidth)),void 0!==t.themes)for(const e of t.themes){const t=this.themes.find((t=>t.name===e.name));if(t)t.load(e);else{const t=new d.S;t.load(e),this.themes.push(t)}}this.defaultThemes.dark=this._findDefaultTheme("dark")?.name,this.defaultThemes.light=this._findDefaultTheme("light")?.name}setResponsive(t,e,i){this.load(i);const o=this.responsive.find((i=>"screen"===i.mode&&screen?i.maxWidth>screen.availWidth:i.maxWidth*e>t));return this.load(o?.options),o?.maxWidth}setTheme(t){if(t){const e=this.themes.find((e=>e.name===t));e&&this.load(e.options)}else{const t=(0,o.lV)("(prefers-color-scheme: dark)"),e=t&&t.matches,i=this._findDefaultTheme(e?"dark":"light");i&&this.load(i.options)}}}},2403:(t,e,i)=>{i.d(e,{O:()=>s});var o=i(645);class s{constructor(){this.value=""}static create(t,e){const i=new s;return i.load(t),void 0!==e&&((0,o.Kg)(e)||(0,o.cy)(e)?i.load({value:e}):i.load(e)),i}load(t){void 0!==t?.value&&(this.value=t.value)}}},2466:(t,e,i)=>{i.d(e,{w:()=>s});var o=i(1165);class s{constructor(){this.horizontal=new o.F,this.vertical=new o.F}load(t){t&&(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}},1165:(t,e,i)=>{i.d(e,{F:()=>s});var o=i(4166);class s extends o.PV{constructor(){super(),this.value=1}}},1991:(t,e,i)=>{i.d(e,{c:()=>r});var o=i(8334),s=i(7632),n=i(2466),a=i(4802);class r{constructor(){this.absorb=new o.N,this.bounce=new n.w,this.enable=!1,this.maxSpeed=50,this.mode="bounce",this.overlap=new s.F}load(t){t&&(this.absorb.load(t.absorb),this.bounce.load(t.bounce),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.maxSpeed&&(this.maxSpeed=(0,a.DT)(t.maxSpeed)),void 0!==t.mode&&(this.mode=t.mode),this.overlap.load(t.overlap))}}},8334:(t,e,i)=>{i.d(e,{N:()=>o});class o{constructor(){this.speed=2}load(t){t&&void 0!==t.speed&&(this.speed=t.speed)}}},7632:(t,e,i)=>{i.d(e,{F:()=>o});class o{constructor(){this.enable=!0,this.retries=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.retries&&(this.retries=t.retries))}}},8543:(t,e,i)=>{i.d(e,{y:()=>v});var o=i(645),s=i(5456),n=i(5722),a=i(5474),r=i(4905),l=i(6942),c=i(443),d=i(6686),h=i(2150),u=i(4802);class v{constructor(){this.angle=new s.h,this.attract=new n.R,this.center=new a.Z,this.decay=0,this.distance={},this.direction="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 h.t,this.straight=!1,this.trail=new c.O,this.vibrate=!1,this.warp=!1}load(t){if(!t)return;this.angle.load((0,o.Et)(t.angle)?{value:t.angle}:t.angle),this.attract.load(t.attract),this.center.load(t.center),void 0!==t.decay&&(this.decay=(0,u.DT)(t.decay)),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance=(0,o.Et)(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),void 0!==t.drift&&(this.drift=(0,u.DT)(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const e=t.outModes;void 0!==e&&((0,o.Gv)(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=(0,u.DT)(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),this.trail.load(t.trail),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}}},5456:(t,e,i)=>{i.d(e,{h:()=>s});var o=i(4802);class s{constructor(){this.offset=0,this.value=90}load(t){t&&(void 0!==t.offset&&(this.offset=(0,o.DT)(t.offset)),void 0!==t.value&&(this.value=(0,o.DT)(t.value)))}}},5722:(t,e,i)=>{i.d(e,{R:()=>s});var o=i(4802);class s{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(t){if(t&&(void 0!==t.distance&&(this.distance=(0,o.DT)(t.distance)),void 0!==t.enable&&(this.enable=t.enable),t.rotate)){const e=t.rotate.x;void 0!==e&&(this.rotate.x=e);const i=t.rotate.y;void 0!==i&&(this.rotate.y=i)}}}},5474:(t,e,i)=>{i.d(e,{Z:()=>o});class o{constructor(){this.x=50,this.y=50,this.mode="percent",this.radius=0}load(t){t&&(void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.radius&&(this.radius=t.radius))}}},4905:(t,e,i)=>{i.d(e,{y:()=>s});var o=i(4802);class s{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=(0,o.DT)(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=(0,o.DT)(t.maxSpeed)))}}},443:(t,e,i)=>{i.d(e,{O:()=>n});var o=i(2403);class s{load(t){t&&(void 0!==t.color&&(this.color=o.O.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image))}}class n{constructor(){this.enable=!1,this.length=10,this.fill=new s}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.fill&&this.fill.load(t.fill),void 0!==t.length&&(this.length=t.length))}}},6686:(t,e,i)=>{i.d(e,{j:()=>o});class o{constructor(){this.default="out"}load(t){t&&(void 0!==t.default&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default)}}},6942:(t,e,i)=>{i.d(e,{v:()=>n});var o=i(4166),s=i(4013);class n{constructor(){this.clamp=!0,this.delay=new o.PV,this.enable=!1,this.options={}}load(t){t&&(void 0!==t.clamp&&(this.clamp=t.clamp),this.delay.load(t.delay),void 0!==t.enable&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=(0,s.zw)(this.options,t.options)))}}},2150:(t,e,i)=>{i.d(e,{t:()=>n});var o=i(4013),s=i(4802);class n{constructor(){this.acceleration=0,this.enable=!1}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=(0,s.DT)(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),t.position&&(this.position=(0,o.zw)({},t.position)))}}},6963:(t,e,i)=>{i.d(e,{M:()=>o});class o{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(t){if(!t)return;void 0!==t.enable&&(this.enable=t.enable);const e=t.width;void 0!==e&&(this.width=e);const i=t.height;void 0!==i&&(this.height=i)}}},6638:(t,e,i)=>{i.d(e,{N:()=>n});var o=i(6963),s=i(531);class n{constructor(){this.density=new o.M,this.limit=new s.A,this.value=0}load(t){t&&(this.density.load(t.density),this.limit.load(t.limit),void 0!==t.value&&(this.value=t.value))}}},531:(t,e,i)=>{i.d(e,{A:()=>o});class o{constructor(){this.mode="delete",this.value=0}load(t){t&&(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}},5807:(t,e,i)=>{i.d(e,{Y:()=>n});var o=i(9657),s=i(4166);class n extends s.AI{constructor(){super(),this.animation=new o.I,this.value=1}load(t){if(!t)return;super.load(t);const e=t.animation;void 0!==e&&this.animation.load(e)}}},9657:(t,e,i)=>{i.d(e,{I:()=>s});var o=i(1066);class s extends o.Q{constructor(){super(),this.destroy="none",this.speed=2}load(t){super.load(t),t&&void 0!==t.destroy&&(this.destroy=t.destroy)}}},7969:(t,e,i)=>{i.d(e,{U:()=>m});var o=i(4013),s=i(3731),n=i(1991);class a{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(t){if(!t)return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=(0,o.zw)(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}var r=i(8543),l=i(5807),c=i(2466),d=i(6638),h=i(5202),u=i(43),v=i(1559),f=i(1374),p=i(105);class m{constructor(t,e){this._engine=t,this._container=e,this.bounce=new c.w,this.collisions=new n.c,this.color=new s.A,this.color.value="#fff",this.effect=new a,this.groups={},this.move=new r.y,this.number=new d.N,this.opacity=new l.Y,this.reduceDuplicates=!1,this.shadow=new h.V,this.shape=new u.y,this.size=new v.o,this.stroke=new f.t,this.zIndex=new p.P}load(t){if(!t)return;if(void 0!==t.groups)for(const e of Object.keys(t.groups)){if(!Object.hasOwn(t.groups,e))continue;const i=t.groups[e];void 0!==i&&(this.groups[e]=(0,o.zw)(this.groups[e]??{},i))}void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.color.load(s.A.create(this.color,t.color)),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.zIndex.load(t.zIndex),this.collisions.load(t.collisions),void 0!==t.interactivity&&(this.interactivity=(0,o.zw)({},t.interactivity));const e=t.stroke;if(e&&(this.stroke=(0,o.wJ)(e,(t=>{const e=new f.t;return e.load(t),e}))),this._container){const e=this._engine.updaters.get(this._container);if(e)for(const i of e)i.loadOptions&&i.loadOptions(this,t);const i=this._engine.interactors.get(this._container);if(i)for(const e of i)e.loadParticlesOptions&&e.loadParticlesOptions(this,t)}}}},5202:(t,e,i)=>{i.d(e,{V:()=>s});var o=i(2403);class s{constructor(){this.blur=0,this.color=new o.O,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(t){t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=o.O.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(void 0!==t.offset.x&&(this.offset.x=t.offset.x),void 0!==t.offset.y&&(this.offset.y=t.offset.y)))}}},43:(t,e,i)=>{i.d(e,{y:()=>s});var o=i(4013);class s{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(t){if(!t)return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=(0,o.zw)(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}},1559:(t,e,i)=>{i.d(e,{o:()=>n});var o=i(4166),s=i(1409);class n extends o.AI{constructor(){super(),this.animation=new s.q,this.value=3}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&this.animation.load(e)}}},1409:(t,e,i)=>{i.d(e,{q:()=>s});var o=i(1066);class s extends o.Q{constructor(){super(),this.destroy="none",this.speed=5}load(t){super.load(t),t&&void 0!==t.destroy&&(this.destroy=t.destroy)}}},1374:(t,e,i)=>{i.d(e,{t:()=>n});var o=i(3731),s=i(4802);class n{constructor(){this.width=0}load(t){t&&(void 0!==t.color&&(this.color=o.A.create(this.color,t.color)),void 0!==t.width&&(this.width=(0,s.DT)(t.width)),void 0!==t.opacity&&(this.opacity=(0,s.DT)(t.opacity)))}}},105:(t,e,i)=>{i.d(e,{P:()=>s});var o=i(4166);class s extends o.PV{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),t&&(void 0!==t.opacityRate&&(this.opacityRate=t.opacityRate),void 0!==t.sizeRate&&(this.sizeRate=t.sizeRate),void 0!==t.velocityRate&&(this.velocityRate=t.velocityRate))}}},76:(t,e,i)=>{i.d(e,{F:()=>s});var o=i(4013);class s{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(t){t&&(void 0!==t.maxWidth&&(this.maxWidth=t.maxWidth),void 0!==t.mode&&("screen"===t.mode?this.mode="screen":this.mode="canvas"),void 0!==t.options&&(this.options=(0,o.zw)({},t.options)))}}},7219:(t,e,i)=>{i.d(e,{S:()=>n});var o=i(5026),s=i(4013);class n{constructor(){this.name="",this.default=new o.f}load(t){t&&(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=(0,s.zw)({},t.options)))}}},5026:(t,e,i)=>{i.d(e,{f:()=>o});class o{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(t){t&&(void 0!==t.auto&&(this.auto=t.auto),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}},4166:(t,e,i)=>{i.d(e,{AI:()=>r,Jm:()=>a,PV:()=>n});var o=i(1066),s=i(4802);class n{constructor(){this.value=0}load(t){t&&void 0!==t.value&&(this.value=(0,s.DT)(t.value))}}class a extends n{constructor(){super(),this.animation=new o.p}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&this.animation.load(e)}}class r extends a{constructor(){super(),this.animation=new o.Q}load(t){super.load(t)}}},1745:(t,e,i)=>{i.d(e,{IU:()=>l,KG:()=>h,Md:()=>r,QC:()=>d,Sn:()=>a,V6:()=>n,Wb:()=>f,e_:()=>v,gF:()=>u,p0:()=>c,yx:()=>p});var o=i(746);const s={x:0,y:0};function n(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function a(t,e,i){t.fillStyle=i??"rgba(0,0,0,0)",t.fillRect(s.x,s.y,e.width,e.height)}function r(t,e,i,o){i&&(t.globalAlpha=o,t.drawImage(i,s.x,s.y,e.width,e.height),t.globalAlpha=1)}function l(t,e){t.clearRect(s.x,s.y,e.width,e.height)}function c(t){const{container:e,context:i,particle:s,delta:n,colorStyles:a,backgroundMask:r,composite:l,radius:c,opacity:v,shadow:f,transform:p}=t,m=s.getPosition(),g=s.rotation+(s.pathRotation?s.velocity.angle:0),y=Math.sin(g),b=Math.cos(g),w={a:b*(p.a??1),b:y*(p.b??1),c:-y*(p.c??1),d:b*(p.d??1)};i.setTransform(w.a,w.b,w.c,w.d,m.x,m.y),r&&(i.globalCompositeOperation=l);const x=s.shadowColor;f.enable&&x&&(i.shadowBlur=f.blur,i.shadowColor=(0,o.xx)(x),i.shadowOffsetX=f.offset.x,i.shadowOffsetY=f.offset.y),a.fill&&(i.fillStyle=a.fill);const M=s.strokeWidth??0;i.lineWidth=M,a.stroke&&(i.strokeStyle=a.stroke);const z={container:e,context:i,particle:s,radius:c,opacity:v,delta:n,transformData:w,strokeWidth:M};h(z),u(z),d(z),i.globalCompositeOperation="source-over",i.resetTransform()}function d(t){const{container:e,context:i,particle:o,radius:s,opacity:n,delta:a,transformData:r}=t;if(!o.effect)return;const l=e.effectDrawers.get(o.effect);l&&l.draw({context:i,particle:o,radius:s,opacity:n,delta:a,pixelRatio:e.retina.pixelRatio,transformData:{...r}})}function h(t){const{container:e,context:i,particle:o,radius:s,opacity:n,delta:a,strokeWidth:r,transformData:l}=t;if(!o.shape)return;const c=e.shapeDrawers.get(o.shape);c&&(i.beginPath(),c.draw({context:i,particle:o,radius:s,opacity:n,delta:a,pixelRatio:e.retina.pixelRatio,transformData:{...l}}),o.shapeClose&&i.closePath(),r>0&&i.stroke(),o.shapeFill&&i.fill())}function u(t){const{container:e,context:i,particle:o,radius:s,opacity:n,delta:a,transformData:r}=t;if(!o.shape)return;const l=e.shapeDrawers.get(o.shape);l?.afterDraw&&l.afterDraw({context:i,particle:o,radius:s,opacity:n,delta:a,pixelRatio:e.retina.pixelRatio,transformData:{...r}})}function v(t,e,i){e.draw&&e.draw(t,i)}function f(t,e,i,o){e.drawParticle&&e.drawParticle(t,i,o)}function p(t,e,i){return{h:t.h,s:t.s,l:t.l+("darken"===e?-1:1)*i}}},746:(t,e,i)=>{i.d(e,{BN:()=>u,EY:()=>O,Jv:()=>R,K6:()=>m,Ko:()=>D,LC:()=>z,OH:()=>x,O_:()=>S,PG:()=>T,R5:()=>p,YL:()=>b,_h:()=>P,a9:()=>d,ay:()=>w,eg:()=>y,mK:()=>f,pz:()=>E,qe:()=>v,xx:()=>M,zI:()=>g});var o=i(4802),s=i(645),n=i(6299),a=i(4013);const r="random",l="mid",c=new Map;function d(t){c.set(t.key,t)}function h(t){for(const[,e]of c)if(t.startsWith(e.stringPrefix))return e.parseString(t);const e=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,((t,e,i,o,s)=>e+e+i+i+o+o+(void 0!==s?s+s:""))),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(e);return i?{a:void 0!==i[4]?parseInt(i[4],16)/255:1,b:parseInt(i[3],16),g:parseInt(i[2],16),r:parseInt(i[1],16)}:void 0}function u(t,e,i=!0){if(!t)return;const o=(0,s.Kg)(t)?{value:t}:t;if((0,s.Kg)(o.value))return v(o.value,e,i);if((0,s.cy)(o.value))return u({value:(0,a.Vh)(o.value,e,i)});for(const[,t]of c){const e=t.handleRangeColor(o);if(e)return e}}function v(t,e,i=!0){if(!t)return;const o=(0,s.Kg)(t)?{value:t}:t;if((0,s.Kg)(o.value))return o.value===r?x():y(o.value);if((0,s.cy)(o.value))return v({value:(0,a.Vh)(o.value,e,i)});for(const[,t]of c){const e=t.handleColor(o);if(e)return e}}function f(t,e,i=!0){const o=v(t,e,i);return o?m(o):void 0}function p(t,e,i=!0){const o=u(t,e,i);return o?m(o):void 0}function m(t){const e=t.r/255,i=t.g/255,o=t.b/255,s=Math.max(e,i,o),n=Math.min(e,i,o),a={h:0,l:.5*(s+n),s:0};return s!==n&&(a.s=a.l<.5?(s-n)/(s+n):(s-n)/(2-s-n),a.h=e===s?(i-o)/(s-n):a.h=i===s?2+(o-e)/(s-n):4+(e-i)/(s-n)),a.l*=100,a.s*=100,a.h*=60,a.h<0&&(a.h+=360),a.h>=360&&(a.h-=360),a}function g(t){return h(t)?.a}function y(t){return h(t)}function b(t){const e=360,i=(t.h%e+e)%e,o=Math.max(0,Math.min(100,t.s)),s=i/e,n=o/100,a=Math.max(0,Math.min(100,t.l))/100,r=255;if(0===o){const t=Math.round(a*r);return{r:t,g:t,b:t}}const l=(t,e,i)=>{if(i<0&&i++,i>1&&i--,6*i<1)return t+6*(e-t)*i;if(2*i<1)return e;if(3*i<2){return t+(e-t)*(2/3-i)*6}return t},c=a<.5?a*(1+n):a+n-a*n,d=2*a-c,h=1/3,u=Math.min(r,r*l(d,c,s+h)),v=Math.min(r,r*l(d,c,s)),f=Math.min(r,r*l(d,c,s-h));return{r:Math.round(u),g:Math.round(v),b:Math.round(f)}}function w(t){const e=b(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function x(t){const e=t??0;return{b:Math.floor((0,o.U4)((0,o.DT)(e,256))),g:Math.floor((0,o.U4)((0,o.DT)(e,256))),r:Math.floor((0,o.U4)((0,o.DT)(e,256)))}}function M(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${e??1})`}function z(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${e??1})`}function O(t,e,i,s){let n=t,a=e;return void 0===n.r&&(n=b(t)),void 0===a.r&&(a=b(e)),{b:(0,o.jh)(n.b,a.b,i,s),g:(0,o.jh)(n.g,a.g,i,s),r:(0,o.jh)(n.r,a.r,i,s)}}function P(t,e,i){if(i===r)return x();if(i!==l)return i;{const i=t.getFillColor()??t.getStrokeColor(),o=e?.getFillColor()??e?.getStrokeColor();if(i&&o&&e)return O(i,o,t.getRadius(),e.getRadius());{const t=i??o;if(t)return b(t)}}}function T(t,e,i){const o=(0,s.Kg)(t)?t:t.value;return o===r?i?u({value:o}):e?r:l:o===l?l:u({value:o})}function S(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function E(t,e,i){const o={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(k(o.h,e.h,i),k(o.s,e.s,i),k(o.l,e.l,i)),o}function k(t,e,i){t.enable=e.enable;t.enable?(t.velocity=(0,o.VG)(e.speed)/n.a5*i,t.decay=1-(0,o.VG)(e.decay),t.status="increasing",t.loops=0,t.maxLoops=(0,o.VG)(e.count),t.time=0,t.delayTime=(0,o.VG)(e.delay)*n.Xu,e.sync||(t.velocity*=(0,o.G0)(),t.value*=(0,o.G0)()),t.initialValue=t.value,t.offset=(0,o.DT)(e.offset)):t.velocity=0}function D(t,e,i,s){if(!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;if(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=s.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0))return;const n=t.offset?(0,o.U4)(t.offset):0,a=(t.velocity??0)*s.factor+3.6*n,r=t.decay??1,l=(0,o.W9)(e),c=(0,o.Sg)(e);if(i&&"increasing"!==t.status){t.value-=a;const e=0;t.value<e&&(t.loops||(t.loops=0),t.loops++,t.status="increasing")}else t.value+=a,t.value>l&&(t.loops||(t.loops=0),t.loops++,i?t.status="decreasing":t.value-=l);t.velocity&&1!==r&&(t.velocity*=r),t.value=(0,o.qE)(t.value,c,l)}function R(t,e){if(!t)return;const{h:i,s:o,l:s}=t,n={min:0,max:100},a={min:0,max:100};i&&D(i,{min:0,max:360},!1,e),o&&D(o,n,!0,e),s&&D(s,a,!0,e)}},4802:(t,e,i)=>{i.d(e,{$m:()=>O,DT:()=>b,G0:()=>u,JY:()=>z,M3:()=>R,Mh:()=>S,Nx:()=>k,OE:()=>h,OW:()=>P,Sg:()=>g,U4:()=>p,VG:()=>m,W9:()=>y,Yf:()=>x,eh:()=>T,il:()=>d,jh:()=>f,l1:()=>E,nL:()=>c,pu:()=>M,qE:()=>v,qM:()=>D,vr:()=>w});var o=i(4930),s=i(645),n=i(6299);let a=Math.random;const r=new Map,l=2*Math.PI;function c(t,e){r.get(t)||r.set(t,e)}function d(t){return r.get(t)??(t=>t)}function h(t=Math.random){a=t}function u(){return v(a(),0,1-Number.EPSILON)}function v(t,e,i){return Math.min(Math.max(t,e),i)}function f(t,e,i,o){return Math.floor((t*i+e*o)/(i+o))}function p(t){const e=y(t);let i=g(t);return e===i&&(i=0),u()*(e-i)+i}function m(t){return(0,s.Et)(t)?t:p(t)}function g(t){return(0,s.Et)(t)?t:t.min}function y(t){return(0,s.Et)(t)?t:t.max}function b(t,e){if(t===e||void 0===e&&(0,s.Et)(t))return t;const i=g(t),o=y(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(o,e)}:b(i,o)}function w(t,e){const i=t.x-e.x,o=t.y-e.y;return{dx:i,dy:o,distance:Math.sqrt(i**2+o**2)}}function x(t,e){return w(t,e).distance}function M(t){return t*Math.PI/180}function z(t,e,i){if((0,s.Et)(t))return M(t);const o=.25;switch(t){case"top":return.5*-Math.PI;case"top-right":return-Math.PI*o;case"right":return 0;case"bottom-right":return Math.PI*o;case"bottom":return.5*Math.PI;case"bottom-left":return.75*Math.PI;case"left":return Math.PI;case"top-left":return.75*-Math.PI;case"inside":return Math.atan2(i.y-e.y,i.x-e.x);case"outside":return Math.atan2(e.y-i.y,e.x-i.x);default:return u()*l}}function O(t){const e=o.M.origin;return e.length=1,e.angle=t,e}function P(t,e,i,s){return o.M.create(t.x*(i-s)/(i+s)+2*e.x*s/(i+s),t.y)}function T(t){return void 0!==t.position?.x&&void 0!==t.position.y?{x:t.position.x*t.size.width/n.a5,y:t.position.y*t.size.height/n.a5}:void 0}function S(t){return{x:(t.position?.x??u()*n.a5)*t.size.width/n.a5,y:(t.position?.y??u()*n.a5)*t.size.height/n.a5}}function E(t){const e={x:void 0!==t.position?.x?m(t.position.x):void 0,y:void 0!==t.position?.y?m(t.position.y):void 0};return S({size:t.size,position:e})}function k(t){return{x:t.position?.x??u()*t.size.width,y:t.position?.y??u()*t.size.height}}function D(t){const e={x:void 0!==t.position?.x?m(t.position.x):void 0,y:void 0!==t.position?.y?m(t.position.y):void 0};return k({size:t.size,position:e})}function R(t){return t?t.endsWith("%")?parseFloat(t)/n.a5:parseFloat(t):1}},7405:(t,e,i)=>{i.d(e,{Z:()=>s,y:()=>n});var o=i(7969);function s(t,...e){for(const i of e)t.load(i)}function n(t,e,...i){const n=new o.U(t,e);return s(n,...i),n}},645:(t,e,i)=>{function o(t){return"boolean"==typeof t}function s(t){return"string"==typeof t}function n(t){return"number"==typeof t}function a(t){return"function"==typeof t}function r(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}i.d(e,{Et:()=>n,Gv:()=>r,Kg:()=>s,Lm:()=>o,Tn:()=>a,cy:()=>l})},4013:(t,e,i)=>{i.d(e,{AE:()=>M,Al:()=>g,B9:()=>h,BR:()=>f,Br:()=>l,E9:()=>C,NV:()=>S,O2:()=>x,S7:()=>T,TA:()=>_,Tg:()=>E,Tj:()=>w,U6:()=>P,UC:()=>L,Vh:()=>b,Xs:()=>V,YC:()=>G,hn:()=>m,iK:()=>O,jo:()=>D,lV:()=>v,n0:()=>y,pE:()=>k,q8:()=>u,tG:()=>p,tZ:()=>c,w3:()=>A,wJ:()=>R,zw:()=>z});var o=i(4802),s=i(6299),n=i(645),a=i(4930);const r={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function l(t){r.debug=t.debug||r.debug,r.error=t.error||r.error,r.info=t.info||r.info,r.log=t.log||r.log,r.verbose=t.verbose||r.verbose,r.warning=t.warning||r.warning}function c(){return r}function d(t){const e={bounced:!1},{pSide:i,pOtherSide:o,rectSide:s,rectOtherSide:n,velocity:a,factor:r}=t;return o.min<n.min||o.min>n.max||o.max<n.min||o.max>n.max||(i.max>=s.min&&i.max<=.5*(s.max+s.min)&&a>0||i.min<=s.max&&i.min>.5*(s.max+s.min)&&a<0)&&(e.velocity=a*-r,e.bounced=!0),e}function h(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function u(){return!h()&&"undefined"!=typeof matchMedia}function v(t){if(u())return matchMedia(t)}function f(t){if(!h()&&"undefined"!=typeof IntersectionObserver)return new IntersectionObserver(t)}function p(t){if(!h()&&"undefined"!=typeof MutationObserver)return new MutationObserver(t)}function m(t,e){return t===e||(0,n.cy)(e)&&e.indexOf(t)>-1}async function g(t,e){try{await document.fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function y(t){return Math.floor((0,o.G0)()*t.length)}function b(t,e,i=!0){return t[void 0!==e&&i?e%t.length:y(t)]}function w(t,e,i,o,s){return x(M(t,o??0),e,i,s)}function x(t,e,i,o){let s=!0;return o&&"bottom"!==o||(s=t.top<e.height+i.x),!s||o&&"left"!==o||(s=t.right>i.x),!s||o&&"right"!==o||(s=t.left<e.width+i.y),!s||o&&"top"!==o||(s=t.bottom>i.y),s}function M(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function z(t,...e){for(const i of e){if(null==i)continue;if(!(0,n.Gv)(i)){t=i;continue}const e=Array.isArray(i);!e||!(0,n.Gv)(t)&&t&&Array.isArray(t)?e||!(0,n.Gv)(t)&&t&&!Array.isArray(t)||(t={}):t=[];for(const e in i){if("__proto__"===e)continue;const o=i[e],s=t;s[e]=(0,n.Gv)(o)&&Array.isArray(o)?o.map((t=>z(s[e],t))):z(s[e],o)}}return t}function O(t,e){return!!A(e,(e=>e.enable&&m(t,e.mode)))}function P(t,e,i){R(e,(e=>{const o=e.mode;e.enable&&m(t,o)&&T(e,i)}))}function T(t,e){R(t.selectors,(i=>{e(i,t)}))}function S(t,e){if(e&&t)return A(t,(t=>function(t,e){const i=R(e,(e=>t.matches(e)));return(0,n.cy)(i)?i.some((t=>t)):i}(e,t.selectors)))}function E(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:a.M.create((0,o.VG)(t.options.bounce.horizontal.value),(0,o.VG)(t.options.bounce.vertical.value))}}function k(t,e){const{x:i,y:s}=t.velocity.sub(e.velocity),[n,a]=[t.position,e.position],{dx:r,dy:l}=(0,o.vr)(a,n);if(i*r+s*l<0)return;const c=-Math.atan2(l,r),d=t.mass,h=e.mass,u=t.velocity.rotate(c),v=e.velocity.rotate(c),f=(0,o.OW)(u,v,d,h),p=(0,o.OW)(v,u,d,h),m=f.rotate(-c),g=p.rotate(-c);t.velocity.x=m.x*t.factor.x,t.velocity.y=m.y*t.factor.y,e.velocity.x=g.x*e.factor.x,e.velocity.y=g.y*e.factor.y}function D(t,e){const i=M(t.getPosition(),t.getRadius()),s=t.options.bounce,n=d({pSide:{min:i.left,max:i.right},pOtherSide:{min:i.top,max:i.bottom},rectSide:{min:e.left,max:e.right},rectOtherSide:{min:e.top,max:e.bottom},velocity:t.velocity.x,factor:(0,o.VG)(s.horizontal.value)});n.bounced&&(void 0!==n.velocity&&(t.velocity.x=n.velocity),void 0!==n.position&&(t.position.x=n.position));const a=d({pSide:{min:i.top,max:i.bottom},pOtherSide:{min:i.left,max:i.right},rectSide:{min:e.top,max:e.bottom},rectOtherSide:{min:e.left,max:e.right},velocity:t.velocity.y,factor:(0,o.VG)(s.vertical.value)});a.bounced&&(void 0!==a.velocity&&(t.velocity.y=a.velocity),void 0!==a.position&&(t.position.y=a.position))}function R(t,e){return(0,n.cy)(t)?t.map(((t,i)=>e(t,i))):e(t,0)}function _(t,e,i){return(0,n.cy)(t)?b(t,e,i):t}function A(t,e){if((0,n.cy)(t))return t.find(((t,i)=>e(t,i)));return e(t,0)?t:void 0}function V(t,e){const i=t.value,n=t.animation,a={delayTime:(0,o.VG)(n.delay)*s.Xu,enable:n.enable,value:(0,o.VG)(t.value)*e,max:(0,o.W9)(i)*e,min:(0,o.Sg)(i)*e,loops:0,maxLoops:(0,o.VG)(n.count),time:0};if(n.enable){switch(a.decay=1-(0,o.VG)(n.decay),n.mode){case"increase":a.status="increasing";break;case"decrease":a.status="decreasing";break;case"random":a.status=(0,o.G0)()>=s.N3?"increasing":"decreasing"}const t="auto"===n.mode;switch(n.startValue){case"min":a.value=a.min,t&&(a.status="increasing");break;case"max":a.value=a.max,t&&(a.status="decreasing");break;default:a.value=(0,o.U4)(a),t&&(a.status=(0,o.G0)()>=s.N3?"increasing":"decreasing")}}return a.initialValue=a.value,a}function I(t,e){if(!("percent"===t.mode)){const{mode:e,...i}=t;return i}return"x"in t?{x:t.x/s.a5*e.width,y:t.y/s.a5*e.height}:{width:t.width/s.a5*e.width,height:t.height/s.a5*e.height}}function C(t,e){return I(t,e)}function G(t,e){return I(t,e)}function L(t,e,i,s,n){if(t.destroyed||!e||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;const a=(e.velocity??0)*n.factor,r=e.min,l=e.max,c=e.decay??1;if(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=n.value),!((e.delayTime??0)>0&&e.time<(e.delayTime??0))){switch(e.status){case"increasing":e.value>=l?(i?e.status="decreasing":e.value-=l,e.loops||(e.loops=0),e.loops++):e.value+=a;break;case"decreasing":e.value<=r?(i?e.status="increasing":e.value+=l,e.loops||(e.loops=0),e.loops++):e.value-=a}e.velocity&&1!==c&&(e.velocity*=c),function(t,e,i,o,s){switch(e){case"max":i>=s&&t.destroy();break;case"min":i<=o&&t.destroy()}}(t,s,e.value,r,l),t.destroyed||(e.value=(0,o.qE)(e.value,r,l))}}}},o={};function s(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={exports:{}};return i[t](n,n.exports,s),n.exports}s.m=i,s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.f={},s.e=t=>Promise.all(Object.keys(s.f).reduce(((e,i)=>(s.f[i](t,e),e)),[])),s.u=t=>t+".min.js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t={},e="@tsparticles/engine:",s.l=(i,o,n,a)=>{if(t[i])t[i].push(o);else{var r,l;if(void 0!==n)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var h=c[d];if(h.getAttribute("src")==i||h.getAttribute("data-webpack")==e+n){r=h;break}}r||(l=!0,(r=document.createElement("script")).charset="utf-8",r.timeout=120,s.nc&&r.setAttribute("nonce",s.nc),r.setAttribute("data-webpack",e+n),r.src=i),t[i]=[o];var u=(e,o)=>{r.onerror=r.onload=null,clearTimeout(v);var s=t[i];if(delete t[i],r.parentNode&&r.parentNode.removeChild(r),s&&s.forEach((t=>t(o))),e)return e(o)},v=setTimeout(u.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=u.bind(null,r.onerror),r.onload=u.bind(null,r.onload),l&&document.head.appendChild(r)}},s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;s.g.importScripts&&(t=s.g.location+"");var e=s.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var i=e.getElementsByTagName("script");if(i.length)for(var o=i.length-1;o>-1&&(!t||!/^http(s?):/.test(t));)t=i[o--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=t})(),(()=>{var t={397:0};s.f.j=(e,i)=>{var o=s.o(t,e)?t[e]:void 0;if(0!==o)if(o)i.push(o[2]);else{var n=new Promise(((i,s)=>o=t[e]=[i,s]));i.push(o[2]=n);var a=s.p+s.u(e),r=new Error;s.l(a,(i=>{if(s.o(t,e)&&(0!==(o=t[e])&&(t[e]=void 0),o)){var n=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.src;r.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",r.name="ChunkLoadError",r.type=n,r.request=a,o[1](r)}}),"chunk-"+e,e)}};var e=(e,i)=>{var o,n,a=i[0],r=i[1],l=i[2],c=0;if(a.some((e=>0!==t[e]))){for(o in r)s.o(r,o)&&(s.m[o]=r[o]);if(l)l(s)}for(e&&e(i);c<a.length;c++)n=a[c],s.o(t,n)&&t[n]&&t[n][0](),t[n]=0},i=this.webpackChunk_tsparticles_engine=this.webpackChunk_tsparticles_engine||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var n={};return(()=>{s.r(n),s.d(n,{AnimatableColor:()=>m.A,AnimationOptions:()=>g.p,AnimationValueWithRandom:()=>dt.Jm,Background:()=>y.V,BackgroundMask:()=>b.T,BackgroundMaskCover:()=>w.y,BaseRange:()=>f.dg,Circle:()=>f.jl,ClickEvent:()=>O.r,Collisions:()=>G.c,CollisionsAbsorb:()=>L.N,CollisionsOverlap:()=>F.F,ColorAnimation:()=>x.e,DivEvent:()=>P.G,Events:()=>T.s,ExternalInteractorBase:()=>h,FullScreen:()=>M.m,HoverEvent:()=>S.L,HslAnimation:()=>z.i,HslColorManager:()=>c,Interactivity:()=>D.k,ManualParticle:()=>_.j,Modes:()=>R.d,Move:()=>K.y,MoveAngle:()=>$.h,MoveAttract:()=>N.R,MoveCenter:()=>q.Z,MoveGravity:()=>U.y,MovePath:()=>Y.v,MoveTrail:()=>Z.O,Opacity:()=>et.Y,OpacityAnimation:()=>it.I,Options:()=>A.J,OptionsColor:()=>V.O,OutModes:()=>H.j,Parallax:()=>E.k,ParticlesBounce:()=>I.w,ParticlesBounceFactor:()=>C.F,ParticlesDensity:()=>tt.M,ParticlesInteractorBase:()=>u,ParticlesNumber:()=>Q.N,ParticlesNumberLimit:()=>X.A,ParticlesOptions:()=>B.U,Point:()=>v.b,RangedAnimationOptions:()=>g.Q,RangedAnimationValueWithRandom:()=>dt.AI,Rectangle:()=>f.M_,ResizeEvent:()=>k.z,Responsive:()=>rt.F,RgbColorManager:()=>d,Shadow:()=>j.V,Shape:()=>ot.y,Size:()=>st.o,SizeAnimation:()=>nt.q,Spin:()=>J.t,Stroke:()=>W.t,Theme:()=>lt.S,ThemeDefault:()=>ct.f,ValueWithRandom:()=>dt.PV,Vector:()=>p.M,Vector3d:()=>p.p,ZIndex:()=>at.P,addColorManager:()=>l.a9,addEasing:()=>o.nL,alterHsl:()=>ht.yx,areBoundsInside:()=>e.O2,arrayRandomIndex:()=>e.n0,calcExactPositionOrRandomFromSize:()=>o.Nx,calcExactPositionOrRandomFromSizeRanged:()=>o.qM,calcPositionFromSize:()=>o.eh,calcPositionOrRandomFromSize:()=>o.Mh,calcPositionOrRandomFromSizeRanged:()=>o.l1,calculateBounds:()=>e.AE,circleBounce:()=>e.pE,circleBounceDataFromParticle:()=>e.Tg,clamp:()=>o.qE,clear:()=>ht.IU,collisionVelocity:()=>o.OW,colorMix:()=>l.EY,colorToHsl:()=>l.mK,colorToRgb:()=>l.qe,deepExtend:()=>e.zw,degToRad:()=>o.pu,divMode:()=>e.NV,divModeExecute:()=>e.U6,drawEffect:()=>ht.QC,drawLine:()=>ht.V6,drawParticle:()=>ht.p0,drawParticlePlugin:()=>ht.Wb,drawPlugin:()=>ht.e_,drawShape:()=>ht.KG,drawShapeAfterDraw:()=>ht.gF,errorPrefix:()=>t.dI,executeOnSingleOrMultiple:()=>e.wJ,findItemFromSingleOrMultiple:()=>e.w3,generatedAttribute:()=>t.eb,getDistance:()=>o.Yf,getDistances:()=>o.vr,getEasing:()=>o.il,getHslAnimationFromHsl:()=>l.pz,getHslFromAnimation:()=>l.O_,getLinkColor:()=>l._h,getLinkRandomColor:()=>l.PG,getLogger:()=>e.tZ,getParticleBaseVelocity:()=>o.$m,getParticleDirectionAngle:()=>o.JY,getPosition:()=>e.E9,getRandom:()=>o.G0,getRandomRgbColor:()=>l.OH,getRangeMax:()=>o.W9,getRangeMin:()=>o.Sg,getRangeValue:()=>o.VG,getSize:()=>e.YC,getStyleFromHsl:()=>l.LC,getStyleFromRgb:()=>l.xx,halfRandom:()=>t.N3,hasMatchMedia:()=>e.q8,hslToRgb:()=>l.YL,hslaToRgba:()=>l.ay,initParticleNumericAnimationValue:()=>e.Xs,isArray:()=>vt.cy,isBoolean:()=>vt.Lm,isDivModeEnabled:()=>e.iK,isFunction:()=>vt.Tn,isInArray:()=>e.hn,isNumber:()=>vt.Et,isObject:()=>vt.Gv,isPointInside:()=>e.Tj,isSsr:()=>e.B9,isString:()=>vt.Kg,itemFromArray:()=>e.Vh,itemFromSingleOrMultiple:()=>e.TA,loadFont:()=>e.Al,loadOptions:()=>ut.Z,loadParticlesOptions:()=>ut.y,millisecondsToSeconds:()=>t.Xu,mix:()=>o.jh,mouseDownEvent:()=>t.ms,mouseLeaveEvent:()=>t.Z0,mouseMoveEvent:()=>t.Rb,mouseOutEvent:()=>t.sf,mouseUpEvent:()=>t.vo,paintBase:()=>ht.Sn,paintImage:()=>ht.Md,parseAlpha:()=>o.M3,percentDenominator:()=>t.a5,randomInRange:()=>o.U4,rangeColorToHsl:()=>l.R5,rangeColorToRgb:()=>l.BN,rectBounce:()=>e.jo,resizeEvent:()=>t.NF,rgbToHsl:()=>l.K6,safeIntersectionObserver:()=>e.BR,safeMatchMedia:()=>e.lV,safeMutationObserver:()=>e.tG,setLogger:()=>e.Br,setRandom:()=>o.OE,setRangeValue:()=>o.DT,singleDivModeExecute:()=>e.S7,stringToAlpha:()=>l.zI,stringToRgb:()=>l.eg,touchCancelEvent:()=>t.G3,touchEndEvent:()=>t.Bp,touchMoveEvent:()=>t.DG,touchStartEvent:()=>t.s7,tsParticles:()=>ft,updateAnimation:()=>e.UC,updateColor:()=>l.Jv,updateColorValue:()=>l.Ko,visibilityChangeEvent:()=>t.nK});var t=s(6299),e=s(4013);class i{constructor(){this._listeners=new Map}addEventListener(t,e){this.removeEventListener(t,e);let i=this._listeners.get(t);i||(i=[],this._listeners.set(t,i)),i.push(e)}dispatchEvent(t,e){const i=this._listeners.get(t);i?.forEach((t=>t(e)))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,e){const i=this._listeners.get(t);if(!i)return;const o=i.length,s=i.indexOf(e);if(s<0)return;1===o?this._listeners.delete(t):i.splice(s,1)}}var o=s(4802);async function a(t,e,i,o=!1){let s=e.get(t);return s&&!o||(s=await Promise.all([...i.values()].map((e=>e(t)))),e.set(t,s)),s}class r{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new i,this._initialized=!1,this.plugins=[],this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const t={};for(const[e,i]of this._configs)t[e]=i;return t}get version(){return"3.3.0"}addConfig(t){const e=t.key??t.name??"default";this._configs.set(e,t),this._eventDispatcher.dispatchEvent("configAdded",{data:{name:e,config:t}})}async addEffect(t,i,o=!0){(0,e.wJ)(t,(t=>{this.getEffectDrawer(t)||this.effectDrawers.set(t,i)})),await this.refresh(o)}addEventListener(t,e){this._eventDispatcher.addEventListener(t,e)}async addInteractor(t,e,i=!0){this._initializers.interactors.set(t,e),await this.refresh(i)}async addMover(t,e,i=!0){this._initializers.movers.set(t,e),await this.refresh(i)}async addParticleUpdater(t,e,i=!0){this._initializers.updaters.set(t,e),await this.refresh(i)}async addPathGenerator(t,e,i=!0){this.getPathGenerator(t)||this.pathGenerators.set(t,e),await this.refresh(i)}async addPlugin(t,e=!0){this.getPlugin(t.id)||this.plugins.push(t),await this.refresh(e)}async addPreset(t,e,i=!1,o=!0){!i&&this.getPreset(t)||this.presets.set(t,e),await this.refresh(o)}async addShape(t,i,o=!0){(0,e.wJ)(t,(t=>{this.getShapeDrawer(t)||this.shapeDrawers.set(t,i)})),await this.refresh(o)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}dispatchEvent(t,e){this._eventDispatcher.dispatchEvent(t,e)}dom(){return this._domArray}domItem(t){const e=this.dom(),i=e[t];if(i&&!i.destroyed)return i;{const i=1;e.splice(t,i)}}async getAvailablePlugins(t){const e=new Map;for(const i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,await i.getPlugin(t));return e}getEffectDrawer(t){return this.effectDrawers.get(t)}async getInteractors(t,e=!1){return await a(t,this.interactors,this._initializers.interactors,e)}async getMovers(t,e=!1){return await a(t,this.movers,this._initializers.movers,e)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find((e=>e.id===t))}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,e=!1){return await a(t,this.updaters,this._initializers.updaters,e)}init(){this._initialized||(this._initialized=!0)}async load(i){const n=i.id??i.element?.id??`tsparticles${Math.floor(1e4*(0,o.G0)())}`,{index:a,url:r}=i,l=r?await async function(i){const o=(0,e.TA)(i.url,i.index);if(!o)return i.fallback;const s=await fetch(o);return s.ok?await s.json():((0,e.tZ)().error(`${t.dI} ${s.status} while retrieving config file`),i.fallback)}({fallback:i.options,url:r,index:a}):i.options;let c=i.element??document.getElementById(n);c||(c=document.createElement("div"),c.id=n,document.body.append(c));const d=(0,e.TA)(l,a),h=this.dom(),u=h.findIndex((t=>t.id.description===n));if(u>=0){const t=this.domItem(u);if(t&&!t.destroyed){t.destroy();const e=1;h.splice(u,e)}}let v;if("canvas"===c.tagName.toLowerCase())v=c,v.dataset[t.eb]="false";else{const e=c.getElementsByTagName("canvas");if(e.length){v=e[0],v.dataset[t.eb]="false"}else v=document.createElement("canvas"),v.dataset[t.eb]="true",c.appendChild(v)}v.style.width||(v.style.width="100%"),v.style.height||(v.style.height="100%");const{Container:f}=await s.e(174).then(s.bind(s,1174)),p=new f(this,n,d);if(u>=0){const t=0;h.splice(u,t,p)}else h.push(p);return p.canvas.loadCanvas(v),await p.start(),p}loadOptions(t,e){for(const i of this.plugins)i.loadOptions(t,e)}loadParticlesOptions(t,e,...i){const o=this.updaters.get(t);if(o)for(const t of o)t.loadOptions?.(e,...i)}async refresh(t=!0){t&&await Promise.all(this.dom().map((t=>t.refresh())))}removeEventListener(t,e){this._eventDispatcher.removeEventListener(t,e)}setOnClickHandler(e){const i=this.dom();if(!i.length)throw new Error(`${t.dI} can only set click handlers after calling tsParticles.load()`);for(const t of i)t.addClickHandler(e)}}var l=s(746);class c{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(t){const e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.s&&void 0!==e.l)return(0,l.YL)(e)}handleRangeColor(t){const e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.l)return(0,l.YL)({h:(0,o.VG)(e.h),l:(0,o.VG)(e.l),s:(0,o.VG)(e.s)})}parseString(t){if(!t.startsWith("hsl"))return;const e=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.%]+)\s*)?\)/i.exec(t);return e?(0,l.ay)({a:e.length>4?(0,o.M3)(e[5]):1,h:parseInt(e[1],10),l:parseInt(e[3],10),s:parseInt(e[2],10)}):void 0}}class d{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(t){const e=t.value.rgb??t.value;if(void 0!==e.r)return e}handleRangeColor(t){const e=t.value.rgb??t.value;if(void 0!==e.r)return{r:(0,o.VG)(e.r),g:(0,o.VG)(e.g),b:(0,o.VG)(e.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;const e=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.%]+)\s*)?\)/i.exec(t);return e?{a:e.length>4?(0,o.M3)(e[5]):1,b:parseInt(e[3],10),g:parseInt(e[2],10),r:parseInt(e[1],10)}:void 0}}class h{constructor(t){this.type="external",this.container=t}}class u{constructor(t){this.type="particles",this.container=t}}var v=s(888),f=s(6858),p=s(4930),m=s(3731),g=s(1066),y=s(5141),b=s(2993),w=s(9878),x=s(397),M=s(3571),z=s(5637),O=s(1662),P=s(4023),T=s(8435),S=s(7412),E=s(1125),k=s(8912),D=s(6051),R=s(8095),_=s(522),A=s(5890),V=s(2403),I=s(2466),C=s(1165),G=s(1991),L=s(8334),F=s(7632),B=s(7969),j=s(5202),W=s(1374),N=s(5722),K=s(8543),$=s(5456),q=s(5474),U=s(4905),H=s(6686),Y=s(6942),J=s(2150),Z=s(443),Q=s(6638),X=s(531),tt=s(6963),et=s(5807),it=s(9657),ot=s(43),st=s(1559),nt=s(1409),at=s(105),rt=s(76),lt=s(7219),ct=s(5026),dt=s(4166),ht=s(1745),ut=s(7405),vt=s(645);const ft=function(){const t=new d,e=new c;(0,l.a9)(t),(0,l.a9)(e);const i=new r;return i.init(),i}();(0,e.B9)()||(window.tsParticles=ft)})(),n})()));
2
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var s in i)("object"==typeof exports?exports:t)[s]=i[s]}}(this,(()=>(()=>{var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{AlterType:()=>$t,AnimatableColor:()=>ui,AnimationMode:()=>at,AnimationOptions:()=>ci,AnimationStatus:()=>rt,AnimationValueWithRandom:()=>vi,Background:()=>He,BackgroundMask:()=>We,BackgroundMaskCover:()=>Ve,BaseRange:()=>ts,Circle:()=>es,ClickEvent:()=>Ue,CollisionMode:()=>ti,Collisions:()=>wi,CollisionsAbsorb:()=>pi,CollisionsOverlap:()=>fi,ColorAnimation:()=>li,DestroyType:()=>ct,DivEvent:()=>$e,DivType:()=>Fe,EasingType:()=>bs,EventType:()=>Ae,Events:()=>Qe,ExternalInteractorBase:()=>Ms,FullScreen:()=>qe,GradientType:()=>ws,HoverEvent:()=>Ne,HslAnimation:()=>di,HslColorManager:()=>xs,Interactivity:()=>Ye,InteractivityDetect:()=>Ie,InteractorType:()=>si,LimitMode:()=>ii,ManualParticle:()=>Ze,Modes:()=>Xe,Move:()=>Ti,MoveAngle:()=>xi,MoveAttract:()=>zi,MoveCenter:()=>Mi,MoveDirection:()=>y,MoveGravity:()=>Pi,MovePath:()=>Oi,MoveTrail:()=>Si,Opacity:()=>Ii,OpacityAnimation:()=>Di,Options:()=>Ni,OptionsColor:()=>Be,OutMode:()=>ei,OutModeDirection:()=>ht,OutModes:()=>Ci,Parallax:()=>Ge,ParticleOutType:()=>ni,ParticlesBounce:()=>_i,ParticlesBounceFactor:()=>yi,ParticlesDensity:()=>Ei,ParticlesInteractorBase:()=>Ps,ParticlesNumber:()=>Ai,ParticlesNumberLimit:()=>Li,ParticlesOptions:()=>Ui,PixelMode:()=>lt,Point:()=>Ji,RangedAnimationOptions:()=>hi,RangedAnimationValueWithRandom:()=>gi,Rectangle:()=>is,ResizeEvent:()=>je,Responsive:()=>oi,ResponsiveMode:()=>Je,RgbColorManager:()=>zs,RotateDirection:()=>_s,Shadow:()=>Fi,Shape:()=>Bi,Size:()=>Vi,SizeAnimation:()=>Hi,Spin:()=>Ri,StartValueType:()=>dt,Stroke:()=>Wi,Theme:()=>ri,ThemeDefault:()=>ai,ThemeMode:()=>Ke,ValueWithRandom:()=>mi,Vector:()=>C,Vector3d:()=>S,ZIndex:()=>qi,addColorManager:()=>Xt,addEasing:()=>E,alterHsl:()=>Ce,animate:()=>H,areBoundsInside:()=>Ot,arrayRandomIndex:()=>zt,calcExactPositionOrRandomFromSize:()=>st,calcExactPositionOrRandomFromSizeRanged:()=>nt,calcPositionFromSize:()=>tt,calcPositionOrRandomFromSize:()=>et,calcPositionOrRandomFromSizeRanged:()=>it,calculateBounds:()=>kt,cancelAnimation:()=>V,circleBounce:()=>Et,circleBounceDataFromParticle:()=>It,clamp:()=>W,clear:()=>xe,collisionVelocity:()=>K,colorMix:()=>he,colorToHsl:()=>Kt,colorToRgb:()=>Jt,deepExtend:()=>St,degToRad:()=>Y,divMode:()=>Dt,divModeExecute:()=>Rt,drawEffect:()=>Me,drawLine:()=>_e,drawParticle:()=>ze,drawParticlePlugin:()=>Se,drawPlugin:()=>ke,drawShape:()=>Pe,drawShapeAfterDraw:()=>Oe,errorPrefix:()=>f,executeOnSingleOrMultiple:()=>At,findItemFromSingleOrMultiple:()=>Bt,generatedAttribute:()=>i,getDistance:()=>X,getDistances:()=>Q,getEasing:()=>L,getHslAnimationFromHsl:()=>pe,getHslFromAnimation:()=>ue,getLinkColor:()=>le,getLinkRandomColor:()=>de,getLogger:()=>ft,getParticleBaseVelocity:()=>J,getParticleDirectionAngle:()=>Z,getPosition:()=>Wt,getRandom:()=>F,getRandomRgbColor:()=>ae,getRangeMax:()=>N,getRangeMin:()=>G,getRangeValue:()=>$,getSize:()=>qt,getStyleFromHsl:()=>ce,getStyleFromRgb:()=>re,halfRandom:()=>v,hasMatchMedia:()=>gt,hslToRgb:()=>ne,hslaToRgba:()=>oe,initParticleNumericAnimationValue:()=>Ht,isArray:()=>M,isBoolean:()=>_,isDivModeEnabled:()=>Ct,isFunction:()=>x,isInArray:()=>bt,isNumber:()=>b,isObject:()=>z,isPointInside:()=>Pt,isSsr:()=>vt,isString:()=>w,itemFromArray:()=>Mt,itemFromSingleOrMultiple:()=>Ft,loadFont:()=>xt,loadOptions:()=>$i,loadParticlesOptions:()=>Gi,millisecondsToSeconds:()=>g,mix:()=>q,mouseDownEvent:()=>s,mouseLeaveEvent:()=>o,mouseMoveEvent:()=>r,mouseOutEvent:()=>a,mouseUpEvent:()=>n,paintBase:()=>we,paintImage:()=>be,parseAlpha:()=>ot,percentDenominator:()=>m,randomInRange:()=>U,rangeColorToHsl:()=>te,rangeColorToRgb:()=>Zt,rectBounce:()=>Lt,resizeEvent:()=>u,rgbToHsl:()=>ee,safeIntersectionObserver:()=>_t,safeMatchMedia:()=>yt,safeMutationObserver:()=>wt,setAnimationFunctions:()=>B,setLogger:()=>pt,setRandom:()=>A,setRangeValue:()=>j,singleDivModeExecute:()=>Tt,stringToAlpha:()=>ie,stringToRgb:()=>se,touchCancelEvent:()=>d,touchEndEvent:()=>h,touchMoveEvent:()=>l,touchStartEvent:()=>c,tsParticles:()=>Os,updateAnimation:()=>Ut,updateColor:()=>ve,updateColorValue:()=>me,visibilityChangeEvent:()=>p});const i="generated",s="pointerdown",n="pointerup",o="pointerleave",a="pointerout",r="pointermove",c="touchstart",h="touchend",l="touchmove",d="touchcancel",u="resize",p="visibilitychange",f="tsParticles - Error",m=100,v=.5,g=1e3;var y;function _(t){return"boolean"==typeof t}function w(t){return"string"==typeof t}function b(t){return"number"==typeof t}function x(t){return"function"==typeof t}function z(t){return"object"==typeof t&&null!==t}function M(t){return Array.isArray(t)}!function(t){t.bottom="bottom",t.bottomLeft="bottom-left",t.bottomRight="bottom-right",t.left="left",t.none="none",t.right="right",t.top="top",t.topLeft="top-left",t.topRight="top-right",t.outside="outside",t.inside="inside"}(y||(y={}));const P=0,O=0,k=0;class S{constructor(t,e,i){if(this._updateFromAngle=(t,e)=>{this.x=Math.cos(t)*e,this.y=Math.sin(t)*e},!b(t)&&t){this.x=t.x,this.y=t.y;const e=t;this.z=e.z?e.z:k}else{if(void 0===t||void 0===e)throw new Error(`${f} Vector3d not initialized correctly`);this.x=t,this.y=e,this.z=i??k}}static get origin(){return S.create(P,O,k)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return S.create(t.x,t.y,t.z)}static create(t,e,i){return new S(t,e,i)}add(t){return S.create(this.x+t.x,this.y+t.y,this.z+t.z)}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=t.z}copy(){return S.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return S.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**2+this.y**2}mult(t){return S.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;0!=t&&this.multTo(1/t)}rotate(t){return S.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),k)}setTo(t){this.x=t.x,this.y=t.y;const e=t;this.z=e.z?e.z:k}sub(t){return S.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}class C extends S{constructor(t,e){super(t,e,k)}static get origin(){return C.create(P,O)}static clone(t){return C.create(t.x,t.y)}static create(t,e){return new C(t,e)}}let R=Math.random;const T={nextFrame:t=>requestAnimationFrame(t),cancel:t=>cancelAnimationFrame(t)},D=new Map,I=2*Math.PI;function E(t,e){D.get(t)||D.set(t,e)}function L(t){return D.get(t)??(t=>t)}function A(t=Math.random){R=t}function F(){return W(R(),0,1-Number.EPSILON)}function B(t,e){T.nextFrame=e=>t(e),T.cancel=t=>e(t)}function H(t){return T.nextFrame(t)}function V(t){T.cancel(t)}function W(t,e,i){return Math.min(Math.max(t,e),i)}function q(t,e,i,s){return Math.floor((t*i+e*s)/(i+s))}function U(t){const e=N(t);let i=G(t);return e===i&&(i=0),F()*(e-i)+i}function $(t){return b(t)?t:U(t)}function G(t){return b(t)?t:t.min}function N(t){return b(t)?t:t.max}function j(t,e){if(t===e||void 0===e&&b(t))return t;const i=G(t),s=N(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(s,e)}:j(i,s)}function Q(t,e){const i=t.x-e.x,s=t.y-e.y;return{dx:i,dy:s,distance:Math.sqrt(i**2+s**2)}}function X(t,e){return Q(t,e).distance}function Y(t){return t*Math.PI/180}function Z(t,e,i){if(b(t))return Y(t);const s=.25;switch(t){case y.top:return.5*-Math.PI;case y.topRight:return-Math.PI*s;case y.right:return 0;case y.bottomRight:return Math.PI*s;case y.bottom:return.5*Math.PI;case y.bottomLeft:return.75*Math.PI;case y.left:return Math.PI;case y.topLeft:return.75*-Math.PI;case y.inside:return Math.atan2(i.y-e.y,i.x-e.x);case y.outside:return Math.atan2(e.y-i.y,e.x-i.x);default:return F()*I}}function J(t){const e=C.origin;return e.length=1,e.angle=t,e}function K(t,e,i,s){return C.create(t.x*(i-s)/(i+s)+2*e.x*s/(i+s),t.y)}function tt(t){return void 0!==t.position?.x&&void 0!==t.position.y?{x:t.position.x*t.size.width/m,y:t.position.y*t.size.height/m}:void 0}function et(t){return{x:(t.position?.x??F()*m)*t.size.width/m,y:(t.position?.y??F()*m)*t.size.height/m}}function it(t){const e={x:void 0!==t.position?.x?$(t.position.x):void 0,y:void 0!==t.position?.y?$(t.position.y):void 0};return et({size:t.size,position:e})}function st(t){return{x:t.position?.x??F()*t.size.width,y:t.position?.y??F()*t.size.height}}function nt(t){const e={x:void 0!==t.position?.x?$(t.position.x):void 0,y:void 0!==t.position?.y?$(t.position.y):void 0};return st({size:t.size,position:e})}function ot(t){return t?t.endsWith("%")?parseFloat(t)/m:parseFloat(t):1}var at,rt,ct,ht,lt,dt;!function(t){t.auto="auto",t.increase="increase",t.decrease="decrease",t.random="random"}(at||(at={})),function(t){t.increasing="increasing",t.decreasing="decreasing"}(rt||(rt={})),function(t){t.none="none",t.max="max",t.min="min"}(ct||(ct={})),function(t){t.bottom="bottom",t.left="left",t.right="right",t.top="top"}(ht||(ht={})),function(t){t.precise="precise",t.percent="percent"}(lt||(lt={})),function(t){t.max="max",t.min="min",t.random="random"}(dt||(dt={}));const ut={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function pt(t){ut.debug=t.debug||ut.debug,ut.error=t.error||ut.error,ut.info=t.info||ut.info,ut.log=t.log||ut.log,ut.verbose=t.verbose||ut.verbose,ut.warning=t.warning||ut.warning}function ft(){return ut}function mt(t){const e={bounced:!1},{pSide:i,pOtherSide:s,rectSide:n,rectOtherSide:o,velocity:a,factor:r}=t;return s.min<o.min||s.min>o.max||s.max<o.min||s.max>o.max||(i.max>=n.min&&i.max<=.5*(n.max+n.min)&&a>0||i.min<=n.max&&i.min>.5*(n.max+n.min)&&a<0)&&(e.velocity=a*-r,e.bounced=!0),e}function vt(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function gt(){return!vt()&&"undefined"!=typeof matchMedia}function yt(t){if(gt())return matchMedia(t)}function _t(t){if(!vt()&&"undefined"!=typeof IntersectionObserver)return new IntersectionObserver(t)}function wt(t){if(!vt()&&"undefined"!=typeof MutationObserver)return new MutationObserver(t)}function bt(t,e){return t===e||M(e)&&e.indexOf(t)>-1}async function xt(t,e){try{await document.fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function zt(t){return Math.floor(F()*t.length)}function Mt(t,e,i=!0){return t[void 0!==e&&i?e%t.length:zt(t)]}function Pt(t,e,i,s,n){return Ot(kt(t,s??0),e,i,n)}function Ot(t,e,i,s){let n=!0;return s&&s!==ht.bottom||(n=t.top<e.height+i.x),!n||s&&s!==ht.left||(n=t.right>i.x),!n||s&&s!==ht.right||(n=t.left<e.width+i.y),!n||s&&s!==ht.top||(n=t.bottom>i.y),n}function kt(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function St(t,...e){for(const i of e){if(null==i)continue;if(!z(i)){t=i;continue}const e=Array.isArray(i);!e||!z(t)&&t&&Array.isArray(t)?e||!z(t)&&t&&!Array.isArray(t)||(t={}):t=[];for(const e in i){if("__proto__"===e)continue;const s=i[e],n=t;n[e]=z(s)&&Array.isArray(s)?s.map((t=>St(n[e],t))):St(n[e],s)}}return t}function Ct(t,e){return!!Bt(e,(e=>e.enable&&bt(t,e.mode)))}function Rt(t,e,i){At(e,(e=>{const s=e.mode;e.enable&&bt(t,s)&&Tt(e,i)}))}function Tt(t,e){At(t.selectors,(i=>{e(i,t)}))}function Dt(t,e){if(e&&t)return Bt(t,(t=>function(t,e){const i=At(e,(e=>t.matches(e)));return M(i)?i.some((t=>t)):i}(e,t.selectors)))}function It(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:C.create($(t.options.bounce.horizontal.value),$(t.options.bounce.vertical.value))}}function Et(t,e){const{x:i,y:s}=t.velocity.sub(e.velocity),[n,o]=[t.position,e.position],{dx:a,dy:r}=Q(o,n);if(i*a+s*r<0)return;const c=-Math.atan2(r,a),h=t.mass,l=e.mass,d=t.velocity.rotate(c),u=e.velocity.rotate(c),p=K(d,u,h,l),f=K(u,d,h,l),m=p.rotate(-c),v=f.rotate(-c);t.velocity.x=m.x*t.factor.x,t.velocity.y=m.y*t.factor.y,e.velocity.x=v.x*e.factor.x,e.velocity.y=v.y*e.factor.y}function Lt(t,e){const i=kt(t.getPosition(),t.getRadius()),s=t.options.bounce,n=mt({pSide:{min:i.left,max:i.right},pOtherSide:{min:i.top,max:i.bottom},rectSide:{min:e.left,max:e.right},rectOtherSide:{min:e.top,max:e.bottom},velocity:t.velocity.x,factor:$(s.horizontal.value)});n.bounced&&(void 0!==n.velocity&&(t.velocity.x=n.velocity),void 0!==n.position&&(t.position.x=n.position));const o=mt({pSide:{min:i.top,max:i.bottom},pOtherSide:{min:i.left,max:i.right},rectSide:{min:e.top,max:e.bottom},rectOtherSide:{min:e.left,max:e.right},velocity:t.velocity.y,factor:$(s.vertical.value)});o.bounced&&(void 0!==o.velocity&&(t.velocity.y=o.velocity),void 0!==o.position&&(t.position.y=o.position))}function At(t,e){return M(t)?t.map(((t,i)=>e(t,i))):e(t,0)}function Ft(t,e,i){return M(t)?Mt(t,e,i):t}function Bt(t,e){if(M(t))return t.find(((t,i)=>e(t,i)));return e(t,0)?t:void 0}function Ht(t,e){const i=t.value,s=t.animation,n={delayTime:$(s.delay)*g,enable:s.enable,value:$(t.value)*e,max:N(i)*e,min:G(i)*e,loops:0,maxLoops:$(s.count),time:0};if(s.enable){switch(n.decay=1-$(s.decay),s.mode){case at.increase:n.status=rt.increasing;break;case at.decrease:n.status=rt.decreasing;break;case at.random:n.status=F()>=v?rt.increasing:rt.decreasing}const t=s.mode===at.auto;switch(s.startValue){case dt.min:n.value=n.min,t&&(n.status=rt.increasing);break;case dt.max:n.value=n.max,t&&(n.status=rt.decreasing);break;case dt.random:default:n.value=U(n),t&&(n.status=F()>=v?rt.increasing:rt.decreasing)}}return n.initialValue=n.value,n}function Vt(t,e){if(!(t.mode===lt.percent)){const{mode:e,...i}=t;return i}return"x"in t?{x:t.x/m*e.width,y:t.y/m*e.height}:{width:t.width/m*e.width,height:t.height/m*e.height}}function Wt(t,e){return Vt(t,e)}function qt(t,e){return Vt(t,e)}function Ut(t,e,i,s,n){if(t.destroyed||!e||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;const o=(e.velocity??0)*n.factor,a=e.min,r=e.max,c=e.decay??1;if(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=n.value),!((e.delayTime??0)>0&&e.time<(e.delayTime??0))){switch(e.status){case rt.increasing:e.value>=r?(i?e.status=rt.decreasing:e.value-=r,e.loops||(e.loops=0),e.loops++):e.value+=o;break;case rt.decreasing:e.value<=a?(i?e.status=rt.increasing:e.value+=r,e.loops||(e.loops=0),e.loops++):e.value-=o}e.velocity&&1!==c&&(e.velocity*=c),function(t,e,i,s,n){switch(e){case ct.max:i>=n&&t.destroy();break;case ct.min:i<=s&&t.destroy()}}(t,s,e.value,a,r),t.destroyed||(e.value=W(e.value,a,r))}}var $t,Gt;!function(t){t.darken="darken",t.enlighten="enlighten"}($t||($t={})),function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=4]="a"}(Gt||(Gt={}));const Nt="random",jt="mid",Qt=new Map;function Xt(t){Qt.set(t.key,t)}function Yt(t){for(const[,e]of Qt)if(t.startsWith(e.stringPrefix))return e.parseString(t);const e=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,((t,e,i,s,n)=>e+e+i+i+s+s+(void 0!==n?n+n:""))),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(e);return i?{a:void 0!==i[Gt.a]?parseInt(i[Gt.a],16)/255:1,b:parseInt(i[Gt.b],16),g:parseInt(i[Gt.g],16),r:parseInt(i[Gt.r],16)}:void 0}function Zt(t,e,i=!0){if(!t)return;const s=w(t)?{value:t}:t;if(w(s.value))return Jt(s.value,e,i);if(M(s.value))return Zt({value:Mt(s.value,e,i)});for(const[,t]of Qt){const e=t.handleRangeColor(s);if(e)return e}}function Jt(t,e,i=!0){if(!t)return;const s=w(t)?{value:t}:t;if(w(s.value))return s.value===Nt?ae():se(s.value);if(M(s.value))return Jt({value:Mt(s.value,e,i)});for(const[,t]of Qt){const e=t.handleColor(s);if(e)return e}}function Kt(t,e,i=!0){const s=Jt(t,e,i);return s?ee(s):void 0}function te(t,e,i=!0){const s=Zt(t,e,i);return s?ee(s):void 0}function ee(t){const e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),o=Math.min(e,i,s),a={h:0,l:.5*(n+o),s:0};return n!==o&&(a.s=a.l<.5?(n-o)/(n+o):(n-o)/(2-n-o),a.h=e===n?(i-s)/(n-o):a.h=i===n?2+(s-e)/(n-o):4+(e-i)/(n-o)),a.l*=100,a.s*=100,a.h*=60,a.h<0&&(a.h+=360),a.h>=360&&(a.h-=360),a}function ie(t){return Yt(t)?.a}function se(t){return Yt(t)}function ne(t){const e=360,i=(t.h%e+e)%e,s=Math.max(0,Math.min(100,t.s)),n=i/e,o=s/100,a=Math.max(0,Math.min(100,t.l))/100,r=255;if(0===s){const t=Math.round(a*r);return{r:t,g:t,b:t}}const c=(t,e,i)=>{if(i<0&&i++,i>1&&i--,6*i<1)return t+6*(e-t)*i;if(2*i<1)return e;if(3*i<2){return t+(e-t)*(2/3-i)*6}return t},h=a<.5?a*(1+o):a+o-a*o,l=2*a-h,d=1/3,u=Math.min(r,r*c(l,h,n+d)),p=Math.min(r,r*c(l,h,n)),f=Math.min(r,r*c(l,h,n-d));return{r:Math.round(u),g:Math.round(p),b:Math.round(f)}}function oe(t){const e=ne(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function ae(t){const e=t??0;return{b:Math.floor(U(j(e,256))),g:Math.floor(U(j(e,256))),r:Math.floor(U(j(e,256)))}}function re(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${e??1})`}function ce(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${e??1})`}function he(t,e,i,s){let n=t,o=e;return void 0===n.r&&(n=ne(t)),void 0===o.r&&(o=ne(e)),{b:q(n.b,o.b,i,s),g:q(n.g,o.g,i,s),r:q(n.r,o.r,i,s)}}function le(t,e,i){if(i===Nt)return ae();if(i!==jt)return i;{const i=t.getFillColor()??t.getStrokeColor(),s=e?.getFillColor()??e?.getStrokeColor();if(i&&s&&e)return he(i,s,t.getRadius(),e.getRadius());{const t=i??s;if(t)return ne(t)}}}function de(t,e,i){const s=w(t)?t:t.value;return s===Nt?i?Zt({value:s}):e?Nt:jt:s===jt?jt:Zt({value:s})}function ue(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function pe(t,e,i){const s={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(fe(s.h,e.h,i),fe(s.s,e.s,i),fe(s.l,e.l,i)),s}function fe(t,e,i){t.enable=e.enable;t.enable?(t.velocity=$(e.speed)/m*i,t.decay=1-$(e.decay),t.status=rt.increasing,t.loops=0,t.maxLoops=$(e.count),t.time=0,t.delayTime=$(e.delay)*g,e.sync||(t.velocity*=F(),t.value*=F()),t.initialValue=t.value,t.offset=j(e.offset)):t.velocity=0}function me(t,e,i,s){if(!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;if(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=s.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0))return;const n=t.offset?U(t.offset):0,o=(t.velocity??0)*s.factor+3.6*n,a=t.decay??1,r=N(e),c=G(e);if(i&&t.status!==rt.increasing){t.value-=o;const e=0;t.value<e&&(t.loops||(t.loops=0),t.loops++,t.status=rt.increasing)}else t.value+=o,t.value>r&&(t.loops||(t.loops=0),t.loops++,i?t.status=rt.decreasing:t.value-=r);t.velocity&&1!==a&&(t.velocity*=a),t.value=W(t.value,c,r)}function ve(t,e){if(!t)return;const{h:i,s,l:n}=t,o={min:0,max:100},a={min:0,max:100};i&&me(i,{min:0,max:360},!1,e),s&&me(s,o,!0,e),n&&me(n,a,!0,e)}const ge={x:0,y:0},ye={a:1,b:0,c:0,d:1};function _e(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function we(t,e,i){t.fillStyle=i??"rgba(0,0,0,0)",t.fillRect(ge.x,ge.y,e.width,e.height)}function be(t,e,i,s){i&&(t.globalAlpha=s,t.drawImage(i,ge.x,ge.y,e.width,e.height),t.globalAlpha=1)}function xe(t,e){t.clearRect(ge.x,ge.y,e.width,e.height)}function ze(t){const{container:e,context:i,particle:s,delta:n,colorStyles:o,backgroundMask:a,composite:r,radius:c,opacity:h,shadow:l,transform:d}=t,u=s.getPosition(),p=s.rotation+(s.pathRotation?s.velocity.angle:0),f=Math.sin(p),m=Math.cos(p),v=!!p,g={a:m*(d.a??ye.a),b:v?f*(d.b??1):d.b??ye.b,c:v?-f*(d.c??1):d.c??ye.c,d:m*(d.d??ye.d)};i.setTransform(g.a,g.b,g.c,g.d,u.x,u.y),a&&(i.globalCompositeOperation=r);const y=s.shadowColor;l.enable&&y&&(i.shadowBlur=l.blur,i.shadowColor=re(y),i.shadowOffsetX=l.offset.x,i.shadowOffsetY=l.offset.y),o.fill&&(i.fillStyle=o.fill);const _=s.strokeWidth??0;i.lineWidth=_,o.stroke&&(i.strokeStyle=o.stroke);const w={container:e,context:i,particle:s,radius:c,opacity:h,delta:n,transformData:g,strokeWidth:_};Pe(w),Oe(w),Me(w),i.globalCompositeOperation="source-over",i.resetTransform()}function Me(t){const{container:e,context:i,particle:s,radius:n,opacity:o,delta:a,transformData:r}=t;if(!s.effect)return;const c=e.effectDrawers.get(s.effect);c&&c.draw({context:i,particle:s,radius:n,opacity:o,delta:a,pixelRatio:e.retina.pixelRatio,transformData:{...r}})}function Pe(t){const{container:e,context:i,particle:s,radius:n,opacity:o,delta:a,strokeWidth:r,transformData:c}=t;if(!s.shape)return;const h=e.shapeDrawers.get(s.shape);h&&(i.beginPath(),h.draw({context:i,particle:s,radius:n,opacity:o,delta:a,pixelRatio:e.retina.pixelRatio,transformData:{...c}}),s.shapeClose&&i.closePath(),r>0&&i.stroke(),s.shapeFill&&i.fill())}function Oe(t){const{container:e,context:i,particle:s,radius:n,opacity:o,delta:a,transformData:r}=t;if(!s.shape)return;const c=e.shapeDrawers.get(s.shape);c?.afterDraw&&c.afterDraw({context:i,particle:s,radius:n,opacity:o,delta:a,pixelRatio:e.retina.pixelRatio,transformData:{...r}})}function ke(t,e,i){e.draw&&e.draw(t,i)}function Se(t,e,i,s){e.drawParticle&&e.drawParticle(t,i,s)}function Ce(t,e,i){return{h:t.h,s:t.s,l:t.l+(e===$t.darken?-1:1)*i}}function Re(t,e,i){const s=e[i];void 0!==s&&(t[i]=(t[i]??1)*s)}function Te(t,e,i=!1){if(!e)return;if(!t)return;const s=t.style;if(s)for(const t in e){const n=e[t];n&&s.setProperty(t,n,i?"important":"")}}class De{constructor(t){this.container=t,this._applyPostDrawUpdaters=t=>{for(const e of this._postDrawUpdaters)e.afterDraw?.(t)},this._applyPreDrawUpdaters=(t,e,i,s,n,o)=>{for(const a of this._preDrawUpdaters){if(a.getColorStyles){const{fill:o,stroke:r}=a.getColorStyles(e,t,i,s);o&&(n.fill=o),r&&(n.stroke=r)}if(a.getTransformValues){const t=a.getTransformValues(e);for(const e in t)Re(o,t,e)}a.beforeDraw?.(e)}},this._applyResizePlugins=()=>{for(const t of this._resizePlugins)t.resize?.()},this._getPluginParticleColors=t=>{let e,i;for(const s of this._colorPlugins)if(!e&&s.particleFillColor&&(e=te(s.particleFillColor(t))),!i&&s.particleStrokeColor&&(i=te(s.particleStrokeColor(t))),e&&i)break;return[e,i]},this._initCover=async()=>{const t=this.container.actualOptions.backgroundMask.cover,e=t.color;if(e){const i=Zt(e);if(i){const e={...i,a:t.opacity};this._coverColorStyle=re(e,e.a)}}else await new Promise(((e,i)=>{if(!t.image)return;const s=document.createElement("img");s.addEventListener("load",(()=>{this._coverImage={image:s,opacity:t.opacity},e()})),s.addEventListener("error",(t=>{i(t.error)})),s.src=t.image}))},this._initStyle=()=>{const t=this.element,e=this.container.actualOptions;if(t){this._fullScreen?(this._originalStyle=St({},t.style),this._setFullScreenStyle()):this._resetOriginalStyle();for(const i in e.style){if(!i||!e.style)continue;const s=e.style[i];s&&t.style.setProperty(i,s,"important")}}},this._initTrail=async()=>{const t=this.container.actualOptions.particles.move.trail,e=t.fill;if(!t.enable)return;const i=1/t.length;if(e.color){const t=Zt(e.color);if(!t)return;this._trailFill={color:{...t},opacity:i}}else await new Promise(((t,s)=>{if(!e.image)return;const n=document.createElement("img");n.addEventListener("load",(()=>{this._trailFill={image:n,opacity:i},t()})),n.addEventListener("error",(t=>{s(t.error)})),n.src=e.image}))},this._paintBase=t=>{this.draw((e=>we(e,this.size,t)))},this._paintImage=(t,e)=>{this.draw((i=>be(i,this.size,t,e)))},this._repairStyle=()=>{const t=this.element;t&&(this._safeMutationObserver((t=>t.disconnect())),this._initStyle(),this.initBackground(),this._safeMutationObserver((e=>{t&&t instanceof Node&&e.observe(t,{attributes:!0})})))},this._resetOriginalStyle=()=>{const t=this.element,e=this._originalStyle;t&&e&&Te(t,e)},this._safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)},this._setFullScreenStyle=()=>{const t=this.element;if(!t)return;Te(t,{position:"fixed",zIndex:this.container.actualOptions.fullScreen.zIndex.toString(10),top:"0",left:"0",width:"100%",height:"100%"},!0)},this.size={height:0,width:0},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){const t=this.container.actualOptions,e=t.particles.move.trail,i=this._trailFill;t.backgroundMask.enable?this.paint():e.enable&&e.length>0&&i?i.color?this._paintBase(re(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):t.clear&&this.draw((t=>{xe(t,this.size)}))}destroy(){if(this.stop(),this._generated){const t=this.element;t?.remove()}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(t){const e=this._context;if(e)return t(e)}drawAsync(t){const e=this._context;if(e)return t(e)}drawParticle(t,e){if(t.spawning||t.destroyed)return;const i=t.getRadius();if(i<=0)return;const s=t.getFillColor(),n=t.getStrokeColor()??s;let[o,a]=this._getPluginParticleColors(t);o||(o=s),a||(a=n),(o||a)&&this.draw((s=>{const n=this.container,r=n.actualOptions,c=t.options.zIndex,h=1-t.zIndexFactor,l=h**c.opacityRate,d=t.bubble.opacity??t.opacity?.value??1,u=d*l,p=(t.strokeOpacity??d)*l,f={},m={fill:o?ce(o,u):void 0};m.stroke=a?ce(a,p):m.fill,this._applyPreDrawUpdaters(s,t,i,u,m,f),ze({container:n,context:s,particle:t,delta:e,colorStyles:m,backgroundMask:r.backgroundMask.enable,composite:r.backgroundMask.composite,radius:i*h**c.sizeRate,opacity:u,shadow:t.options.shadow,transform:f}),this._applyPostDrawUpdaters(t)}))}drawParticlePlugin(t,e,i){this.draw((s=>Se(s,t,e,i)))}drawPlugin(t,e){this.draw((i=>ke(i,t,e)))}async init(){this._safeMutationObserver((t=>t.disconnect())),this._mutationObserver=wt((t=>{for(const e of t)"attributes"===e.type&&"style"===e.attributeName&&this._repairStyle()})),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(t){ft().error(t)}this.initBackground(),this._safeMutationObserver((t=>{this.element&&this.element instanceof Node&&t.observe(this.element,{attributes:!0})})),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const t=this.container.actualOptions.background,e=this.element;if(!e)return;const i=e.style;if(i){if(t.color){const e=Zt(t.color);i.backgroundColor=e?re(e,t.opacity):""}else i.backgroundColor="";i.backgroundImage=t.image||"",i.backgroundPosition=t.position||"",i.backgroundRepeat=t.repeat||"",i.backgroundSize=t.size||""}}initPlugins(){this._resizePlugins=[];for(const[,t]of this.container.plugins)t.resize&&this._resizePlugins.push(t),(t.particleFillColor??t.particleStrokeColor)&&this._colorPlugins.push(t)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const t of this.container.particles.updaters)t.afterDraw&&this._postDrawUpdaters.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this._preDrawUpdaters.push(t)}loadCanvas(t){this._generated&&this.element&&this.element.remove(),this._generated=t.dataset&&i in t.dataset?"true"===t.dataset[i]:this._generated,this.element=t,this.element.ariaHidden="true",this._originalStyle=St({},this.element.style),this.size.height=t.offsetHeight,this.size.width=t.offsetWidth,this._context=this.element.getContext("2d"),this._safeMutationObserver((t=>{this.element&&this.element instanceof Node&&t.observe(this.element,{attributes:!0})})),this.container.retina.init(),this.initBackground()}paint(){const t=this.container.actualOptions;this.draw((e=>{t.backgroundMask.enable&&t.backgroundMask.cover?(xe(e,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()}))}resize(){if(!this.element)return!1;const t=this.container,e=t.retina.pixelRatio,i=t.canvas.size,s=this.element.offsetWidth*e,n=this.element.offsetHeight*e;if(n===i.height&&s===i.width&&n===this.element.height&&s===this.element.width)return!1;const o={...i};return this.element.width=i.width=this.element.offsetWidth*e,this.element.height=i.height=this.element.offsetHeight*e,this.container.started&&t.particles.setResizeFactor({width:i.width/o.width,height:i.height/o.height}),!0}stop(){this._safeMutationObserver((t=>t.disconnect())),this._mutationObserver=void 0,this.draw((t=>xe(t,this.size)))}async windowResize(){if(!this.element||!this.resize())return;const t=this.container,e=t.updateActualOptions();t.particles.setDensity(),this._applyResizePlugins(),e&&await t.refresh()}}var Ie;!function(t){t.canvas="canvas",t.parent="parent",t.window="window"}(Ie||(Ie={}));function Ee(t,e,i,s,n){if(s){let s={passive:!0};_(n)?s.capture=n:void 0!==n&&(s=n),t.addEventListener(e,i,s)}else{const s=n;t.removeEventListener(e,i,s)}}class Le{constructor(t){this.container=t,this._doMouseTouchClick=t=>{const e=this.container,i=e.actualOptions;if(this._canPush){const t=e.interactivity.mouse,s=t.position;if(!s)return;t.clickPosition={...s},t.clickTime=(new Date).getTime();At(i.interactivity.events.onClick.mode,(t=>this.container.handleClickMode(t)))}if("touchend"===t.type){setTimeout((()=>this._mouseTouchFinish()),500)}},this._handleThemeChange=t=>{const e=t,i=this.container,s=i.options,n=s.defaultThemes,o=e.matches?n.dark:n.light,a=s.themes.find((t=>t.name===o));a?.default.auto&&i.loadTheme(o)},this._handleVisibilityChange=()=>{const t=this.container,e=t.actualOptions;this._mouseTouchFinish(),e.pauseOnBlur&&(document?.hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);const t=async()=>{const t=this.container.canvas;await(t?.windowResize())};this._resizeTimeout=setTimeout((()=>{t()}),this.container.actualOptions.interactivity.events.resize.delay*g)},this._manageInteractivityListeners=(t,e)=>{const i=this._handlers,o=this.container,a=o.actualOptions,u=o.interactivity.element;if(!u)return;const p=u,f=o.canvas.element;f&&(f.style.pointerEvents=p===f?"initial":"none"),(a.interactivity.events.onHover.enable||a.interactivity.events.onClick.enable)&&(Ee(u,r,i.mouseMove,e),Ee(u,c,i.touchStart,e),Ee(u,l,i.touchMove,e),a.interactivity.events.onClick.enable?(Ee(u,h,i.touchEndClick,e),Ee(u,n,i.mouseUp,e),Ee(u,s,i.mouseDown,e)):Ee(u,h,i.touchEnd,e),Ee(u,t,i.mouseLeave,e),Ee(u,d,i.touchCancel,e))},this._manageListeners=t=>{const e=this._handlers,i=this.container,s=i.actualOptions.interactivity.detectsOn,n=i.canvas.element;let r=o;s===Ie.window?(i.interactivity.element=window,r=a):s===Ie.parent&&n?i.interactivity.element=n.parentElement??n.parentNode:i.interactivity.element=n,this._manageMediaMatch(t),this._manageResize(t),this._manageInteractivityListeners(r,t),document&&Ee(document,p,e.visibilityChange,t,!1)},this._manageMediaMatch=t=>{const e=this._handlers,i=yt("(prefers-color-scheme: dark)");i&&(void 0===i.addEventListener?void 0!==i.addListener&&(t?i.addListener(e.oldThemeChange):i.removeListener(e.oldThemeChange)):Ee(i,"change",e.themeChange,t))},this._manageResize=t=>{const e=this._handlers,i=this.container;if(!i.actualOptions.interactivity.events.resize)return;if("undefined"==typeof ResizeObserver)return void Ee(window,u,e.resize,t);const s=i.canvas.element;this._resizeObserver&&!t?(s&&this._resizeObserver.unobserve(s),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&s&&(this._resizeObserver=new ResizeObserver((t=>{t.find((t=>t.target===s))&&this._handleWindowResize()})),this._resizeObserver.observe(s))},this._mouseDown=()=>{const{interactivity:t}=this.container;if(!t)return;const{mouse:e}=t;e.clicking=!0,e.downPosition=e.position},this._mouseTouchClick=t=>{const e=this.container,i=e.actualOptions,{mouse:s}=e.interactivity;s.inside=!0;let n=!1;const o=s.position;if(o&&i.interactivity.events.onClick.enable){for(const[,t]of e.plugins)if(t.clickPositionValid&&(n=t.clickPositionValid(o),n))break;n||this._doMouseTouchClick(t),s.clicking=!1}},this._mouseTouchFinish=()=>{const t=this.container.interactivity;if(!t)return;const e=t.mouse;delete e.position,delete e.clickPosition,delete e.downPosition,t.status=o,e.inside=!1,e.clicking=!1},this._mouseTouchMove=t=>{const e=this.container,i=e.actualOptions,s=e.interactivity,n=e.canvas.element;if(!s?.element)return;let o;if(s.mouse.inside=!0,t.type.startsWith("pointer")){this._canPush=!0;const e=t;if(s.element===window){if(n){const t=n.getBoundingClientRect();o={x:e.clientX-t.left,y:e.clientY-t.top}}}else if(i.interactivity.detectsOn===Ie.parent){const t=e.target,i=e.currentTarget;if(t&&i&&n){const s=t.getBoundingClientRect(),a=i.getBoundingClientRect(),r=n.getBoundingClientRect();o={x:e.offsetX+2*s.left-(a.left+r.left),y:e.offsetY+2*s.top-(a.top+r.top)}}else o={x:e.offsetX??e.clientX,y:e.offsetY??e.clientY}}else e.target===n&&(o={x:e.offsetX??e.clientX,y:e.offsetY??e.clientY})}else if(this._canPush="touchmove"!==t.type,n){const e=t,i=1,s=e.touches[e.touches.length-i],a=n.getBoundingClientRect(),r=0;o={x:s.clientX-(a.left??r),y:s.clientY-(a.top??r)}}const a=e.retina.pixelRatio;o&&(o.x*=a,o.y*=a),s.mouse.position=o,s.status=r},this._touchEnd=t=>{const e=t,i=Array.from(e.changedTouches);for(const t of i)this._touches.delete(t.identifier);this._mouseTouchFinish()},this._touchEndClick=t=>{const e=t,i=Array.from(e.changedTouches);for(const t of i)this._touches.delete(t.identifier);this._mouseTouchClick(t)},this._touchStart=t=>{const e=t,i=Array.from(e.changedTouches);for(const t of i)this._touches.set(t.identifier,performance.now());this._mouseTouchMove(t)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:t=>this._mouseTouchMove(t),mouseUp:t=>this._mouseTouchClick(t),touchStart:t=>this._touchStart(t),touchMove:t=>this._mouseTouchMove(t),touchEnd:t=>this._touchEnd(t),touchCancel:t=>this._touchEnd(t),touchEndClick:t=>this._touchEndClick(t),visibilityChange:()=>this._handleVisibilityChange(),themeChange:t=>this._handleThemeChange(t),oldThemeChange:t=>this._handleThemeChange(t),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}var Ae,Fe;!function(t){t.configAdded="configAdded",t.containerInit="containerInit",t.particlesSetup="particlesSetup",t.containerStarted="containerStarted",t.containerStopped="containerStopped",t.containerDestroyed="containerDestroyed",t.containerPaused="containerPaused",t.containerPlay="containerPlay",t.containerBuilt="containerBuilt",t.particleAdded="particleAdded",t.particleDestroyed="particleDestroyed",t.particleRemoved="particleRemoved"}(Ae||(Ae={}));class Be{constructor(){this.value=""}static create(t,e){const i=new Be;return i.load(t),void 0!==e&&(w(e)||M(e)?i.load({value:e}):i.load(e)),i}load(t){void 0!==t?.value&&(this.value=t.value)}}class He{constructor(){this.color=new Be,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){t&&(void 0!==t.color&&(this.color=Be.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.position&&(this.position=t.position),void 0!==t.repeat&&(this.repeat=t.repeat),void 0!==t.size&&(this.size=t.size),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Ve{constructor(){this.opacity=1}load(t){t&&(void 0!==t.color&&(this.color=Be.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.opacity&&(this.opacity=t.opacity))}}class We{constructor(){this.composite="destination-out",this.cover=new Ve,this.enable=!1}load(t){if(t){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){const e=t.cover,i=w(t.cover)?{color:t.cover}:t.cover;this.cover.load(void 0!==e.color||void 0!==e.image?e:{color:i})}void 0!==t.enable&&(this.enable=t.enable)}}}class qe{constructor(){this.enable=!0,this.zIndex=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}class Ue{constructor(){this.enable=!1,this.mode=[]}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}}!function(t){t.circle="circle",t.rectangle="rectangle"}(Fe||(Fe={}));class $e{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=Fe.circle}load(t){t&&(void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.type=t.type))}}class Ge{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.force&&(this.force=t.force),void 0!==t.smooth&&(this.smooth=t.smooth))}}class Ne{constructor(){this.enable=!1,this.mode=[],this.parallax=new Ge}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class je{constructor(){this.delay=.5,this.enable=!0}load(t){void 0!==t&&(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.enable&&(this.enable=t.enable))}}class Qe{constructor(){this.onClick=new Ue,this.onDiv=new $e,this.onHover=new Ne,this.resize=new je}load(t){if(!t)return;this.onClick.load(t.onClick);const e=t.onDiv;void 0!==e&&(this.onDiv=At(e,(t=>{const e=new $e;return e.load(t),e}))),this.onHover.load(t.onHover),this.resize.load(t.resize)}}class Xe{constructor(t,e){this._engine=t,this._container=e}load(t){if(!t)return;if(!this._container)return;const e=this._engine.interactors.get(this._container);if(e)for(const i of e)i.loadModeOptions&&i.loadModeOptions(this,t)}}class Ye{constructor(t,e){this.detectsOn=Ie.window,this.events=new Qe,this.modes=new Xe(t,e)}load(t){if(!t)return;const e=t.detectsOn;void 0!==e&&(this.detectsOn=e),this.events.load(t.events),this.modes.load(t.modes)}}class Ze{load(t){t&&(t.position&&(this.position={x:t.position.x??50,y:t.position.y??50,mode:t.position.mode??lt.percent}),t.options&&(this.options=St({},t.options)))}}var Je,Ke,ti,ei,ii,si,ni;!function(t){t.screen="screen",t.canvas="canvas"}(Je||(Je={}));class oi{constructor(){this.maxWidth=1/0,this.options={},this.mode=Je.canvas}load(t){t&&(void 0!==t.maxWidth&&(this.maxWidth=t.maxWidth),void 0!==t.mode&&(t.mode===Je.screen?this.mode=Je.screen:this.mode=Je.canvas),void 0!==t.options&&(this.options=St({},t.options)))}}!function(t){t.any="any",t.dark="dark",t.light="light"}(Ke||(Ke={}));class ai{constructor(){this.auto=!1,this.mode=Ke.any,this.value=!1}load(t){t&&(void 0!==t.auto&&(this.auto=t.auto),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}class ri{constructor(){this.name="",this.default=new ai}load(t){t&&(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=St({},t.options)))}}class ci{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=j(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=j(t.speed)),void 0!==t.decay&&(this.decay=j(t.decay)),void 0!==t.delay&&(this.delay=j(t.delay)),void 0!==t.sync&&(this.sync=t.sync))}}class hi extends ci{constructor(){super(),this.mode=at.auto,this.startValue=dt.random}load(t){super.load(t),t&&(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.startValue&&(this.startValue=t.startValue))}}class li extends ci{constructor(){super(),this.offset=0,this.sync=!0}load(t){super.load(t),t&&void 0!==t.offset&&(this.offset=j(t.offset))}}class di{constructor(){this.h=new li,this.s=new li,this.l=new li}load(t){t&&(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class ui extends Be{constructor(){super(),this.animation=new di}static create(t,e){const i=new ui;return i.load(t),void 0!==e&&(w(e)||M(e)?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&(void 0!==e.enable?this.animation.h.load(e):this.animation.load(t.animation))}}!function(t){t.absorb="absorb",t.bounce="bounce",t.destroy="destroy"}(ti||(ti={}));class pi{constructor(){this.speed=2}load(t){t&&void 0!==t.speed&&(this.speed=t.speed)}}class fi{constructor(){this.enable=!0,this.retries=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.retries&&(this.retries=t.retries))}}class mi{constructor(){this.value=0}load(t){t&&void 0!==t.value&&(this.value=j(t.value))}}class vi extends mi{constructor(){super(),this.animation=new ci}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&this.animation.load(e)}}class gi extends vi{constructor(){super(),this.animation=new hi}load(t){super.load(t)}}class yi extends mi{constructor(){super(),this.value=1}}class _i{constructor(){this.horizontal=new yi,this.vertical=new yi}load(t){t&&(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class wi{constructor(){this.absorb=new pi,this.bounce=new _i,this.enable=!1,this.maxSpeed=50,this.mode=ti.bounce,this.overlap=new fi}load(t){t&&(this.absorb.load(t.absorb),this.bounce.load(t.bounce),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.maxSpeed&&(this.maxSpeed=j(t.maxSpeed)),void 0!==t.mode&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class bi{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(t){if(!t)return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=St(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}class xi{constructor(){this.offset=0,this.value=90}load(t){t&&(void 0!==t.offset&&(this.offset=j(t.offset)),void 0!==t.value&&(this.value=j(t.value)))}}class zi{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(t){if(t&&(void 0!==t.distance&&(this.distance=j(t.distance)),void 0!==t.enable&&(this.enable=t.enable),t.rotate)){const e=t.rotate.x;void 0!==e&&(this.rotate.x=e);const i=t.rotate.y;void 0!==i&&(this.rotate.y=i)}}}class Mi{constructor(){this.x=50,this.y=50,this.mode=lt.percent,this.radius=0}load(t){t&&(void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.radius&&(this.radius=t.radius))}}class Pi{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=j(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=j(t.maxSpeed)))}}class Oi{constructor(){this.clamp=!0,this.delay=new mi,this.enable=!1,this.options={}}load(t){t&&(void 0!==t.clamp&&(this.clamp=t.clamp),this.delay.load(t.delay),void 0!==t.enable&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=St(this.options,t.options)))}}class ki{load(t){t&&(void 0!==t.color&&(this.color=Be.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image))}}class Si{constructor(){this.enable=!1,this.length=10,this.fill=new ki}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.fill&&this.fill.load(t.fill),void 0!==t.length&&(this.length=t.length))}}!function(t){t.bounce="bounce",t.none="none",t.out="out",t.destroy="destroy",t.split="split"}(ei||(ei={}));class Ci{constructor(){this.default=ei.out}load(t){t&&(void 0!==t.default&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default)}}class Ri{constructor(){this.acceleration=0,this.enable=!1}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=j(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),t.position&&(this.position=St({},t.position)))}}class Ti{constructor(){this.angle=new xi,this.attract=new zi,this.center=new Mi,this.decay=0,this.distance={},this.direction=y.none,this.drift=0,this.enable=!1,this.gravity=new Pi,this.path=new Oi,this.outModes=new Ci,this.random=!1,this.size=!1,this.speed=2,this.spin=new Ri,this.straight=!1,this.trail=new Si,this.vibrate=!1,this.warp=!1}load(t){if(!t)return;this.angle.load(b(t.angle)?{value:t.angle}:t.angle),this.attract.load(t.attract),this.center.load(t.center),void 0!==t.decay&&(this.decay=j(t.decay)),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance=b(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),void 0!==t.drift&&(this.drift=j(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const e=t.outModes;void 0!==e&&(z(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=j(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),this.trail.load(t.trail),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}}class Di extends hi{constructor(){super(),this.destroy=ct.none,this.speed=2}load(t){super.load(t),t&&void 0!==t.destroy&&(this.destroy=t.destroy)}}class Ii extends gi{constructor(){super(),this.animation=new Di,this.value=1}load(t){if(!t)return;super.load(t);const e=t.animation;void 0!==e&&this.animation.load(e)}}class Ei{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(t){if(!t)return;void 0!==t.enable&&(this.enable=t.enable);const e=t.width;void 0!==e&&(this.width=e);const i=t.height;void 0!==i&&(this.height=i)}}!function(t){t.delete="delete",t.wait="wait"}(ii||(ii={}));class Li{constructor(){this.mode=ii.delete,this.value=0}load(t){t&&(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}class Ai{constructor(){this.density=new Ei,this.limit=new Li,this.value=0}load(t){t&&(this.density.load(t.density),this.limit.load(t.limit),void 0!==t.value&&(this.value=t.value))}}class Fi{constructor(){this.blur=0,this.color=new Be,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(t){t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=Be.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(void 0!==t.offset.x&&(this.offset.x=t.offset.x),void 0!==t.offset.y&&(this.offset.y=t.offset.y)))}}class Bi{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(t){if(!t)return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=St(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}class Hi extends hi{constructor(){super(),this.destroy=ct.none,this.speed=5}load(t){super.load(t),t&&void 0!==t.destroy&&(this.destroy=t.destroy)}}class Vi extends gi{constructor(){super(),this.animation=new Hi,this.value=3}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&this.animation.load(e)}}class Wi{constructor(){this.width=0}load(t){t&&(void 0!==t.color&&(this.color=ui.create(this.color,t.color)),void 0!==t.width&&(this.width=j(t.width)),void 0!==t.opacity&&(this.opacity=j(t.opacity)))}}class qi extends mi{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),t&&(void 0!==t.opacityRate&&(this.opacityRate=t.opacityRate),void 0!==t.sizeRate&&(this.sizeRate=t.sizeRate),void 0!==t.velocityRate&&(this.velocityRate=t.velocityRate))}}class Ui{constructor(t,e){this._engine=t,this._container=e,this.bounce=new _i,this.collisions=new wi,this.color=new ui,this.color.value="#fff",this.effect=new bi,this.groups={},this.move=new Ti,this.number=new Ai,this.opacity=new Ii,this.reduceDuplicates=!1,this.shadow=new Fi,this.shape=new Bi,this.size=new Vi,this.stroke=new Wi,this.zIndex=new qi}load(t){if(!t)return;if(void 0!==t.groups)for(const e of Object.keys(t.groups)){if(!Object.hasOwn(t.groups,e))continue;const i=t.groups[e];void 0!==i&&(this.groups[e]=St(this.groups[e]??{},i))}void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.color.load(ui.create(this.color,t.color)),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.zIndex.load(t.zIndex),this.collisions.load(t.collisions),void 0!==t.interactivity&&(this.interactivity=St({},t.interactivity));const e=t.stroke;if(e&&(this.stroke=At(e,(t=>{const e=new Wi;return e.load(t),e}))),this._container){const e=this._engine.updaters.get(this._container);if(e)for(const i of e)i.loadOptions&&i.loadOptions(this,t);const i=this._engine.interactors.get(this._container);if(i)for(const e of i)e.loadParticlesOptions&&e.loadParticlesOptions(this,t)}}}function $i(t,...e){for(const i of e)t.load(i)}function Gi(t,e,...i){const s=new Ui(t,e);return $i(s,...i),s}class Ni{constructor(t,e){this._findDefaultTheme=t=>this.themes.find((e=>e.default.value&&e.default.mode===t))??this.themes.find((t=>t.default.value&&t.default.mode===Ke.any)),this._importPreset=t=>{this.load(this._engine.getPreset(t))},this._engine=t,this._container=e,this.autoPlay=!0,this.background=new He,this.backgroundMask=new We,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new qe,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new Ye(t,e),this.manualParticles=[],this.particles=Gi(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(t){if(!t)return;void 0!==t.preset&&At(t.preset,(t=>this._importPreset(t))),void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.clear&&(this.clear=t.clear),void 0!==t.key&&(this.key=t.key),void 0!==t.name&&(this.name=t.name),void 0!==t.delay&&(this.delay=j(t.delay));const e=t.detectRetina;void 0!==e&&(this.detectRetina=e),void 0!==t.duration&&(this.duration=j(t.duration));const i=t.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==t.pauseOnBlur&&(this.pauseOnBlur=t.pauseOnBlur),void 0!==t.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),void 0!==t.zLayers&&(this.zLayers=t.zLayers),this.background.load(t.background);const s=t.fullScreen;_(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),t.manualParticles&&(this.manualParticles=t.manualParticles.map((t=>{const e=new Ze;return e.load(t),e}))),this.particles.load(t.particles),this.style=St(this.style,t.style),this._engine.loadOptions(this,t),void 0!==t.smooth&&(this.smooth=t.smooth);const n=this._engine.interactors.get(this._container);if(n)for(const e of n)e.loadOptions&&e.loadOptions(this,t);if(void 0!==t.responsive)for(const e of t.responsive){const t=new oi;t.load(e),this.responsive.push(t)}if(this.responsive.sort(((t,e)=>t.maxWidth-e.maxWidth)),void 0!==t.themes)for(const e of t.themes){const t=this.themes.find((t=>t.name===e.name));if(t)t.load(e);else{const t=new ri;t.load(e),this.themes.push(t)}}this.defaultThemes.dark=this._findDefaultTheme(Ke.dark)?.name,this.defaultThemes.light=this._findDefaultTheme(Ke.light)?.name}setResponsive(t,e,i){this.load(i);const s=this.responsive.find((i=>i.mode===Je.screen&&screen?i.maxWidth>screen.availWidth:i.maxWidth*e>t));return this.load(s?.options),s?.maxWidth}setTheme(t){if(t){const e=this.themes.find((e=>e.name===t));e&&this.load(e.options)}else{const t=yt("(prefers-color-scheme: dark)"),e=t?.matches,i=this._findDefaultTheme(e?Ke.dark:Ke.light);i&&this.load(i.options)}}}!function(t){t.external="external",t.particles="particles"}(si||(si={}));class ji{constructor(t,e){this.container=e,this._engine=t,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(t){for(const e of this._externalInteractors)e.isEnabled()&&e.interact(t)}handleClickMode(t){for(const e of this._externalInteractors)e.handleClickMode?.(t)}async init(){this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[];for(const t of this._interactors){switch(t.type){case si.external:this._externalInteractors.push(t);break;case si.particles:this._particleInteractors.push(t)}t.init()}}particlesInteract(t,e){for(const i of this._externalInteractors)i.clear(t,e);for(const i of this._particleInteractors)i.isEnabled(t)&&i.interact(t,e)}reset(t){for(const e of this._externalInteractors)e.isEnabled()&&e.reset(t);for(const e of this._particleInteractors)e.isEnabled(t)&&e.reset(t)}}!function(t){t.normal="normal",t.inside="inside",t.outside="outside"}(ni||(ni={}));const Qi=.5,Xi="random";function Yi(t){if(!bt(t.outMode,t.checkModes))return;const e=2*t.radius;t.coord>t.maxCoord-e?t.setCb(-t.radius):t.coord<e&&t.setCb(t.radius)}class Zi{constructor(t,e){this.container=e,this._calcPosition=(t,e,i,s=0)=>{for(const[,s]of t.plugins){const t=void 0!==s.particlePosition?s.particlePosition(e,this):void 0;if(t)return S.create(t.x,t.y,i)}const n=st({size:t.canvas.size,position:e}),o=S.create(n.x,n.y,i),a=this.getRadius(),r=this.options.move.outModes,c=e=>{Yi({outMode:e,checkModes:[ei.bounce],coord:o.x,maxCoord:t.canvas.size.width,setCb:t=>o.x+=t,radius:a})},h=e=>{Yi({outMode:e,checkModes:[ei.bounce],coord:o.y,maxCoord:t.canvas.size.height,setCb:t=>o.y+=t,radius:a})};if(c(r.left??r.default),c(r.right??r.default),h(r.top??r.default),h(r.bottom??r.default),this._checkOverlap(o,s)){const e=1;return this._calcPosition(t,void 0,i,s+e)}return o},this._calculateVelocity=()=>{const t=J(this.direction).copy(),e=this.options.move;if(e.direction===y.inside||e.direction===y.outside)return t;const i=Y($(e.angle.value)),s=Y($(e.angle.offset)),n={left:s-i*Qi,right:s+i*Qi};return e.straight||(t.angle+=U(j(n.left,n.right))),e.random&&"number"==typeof e.speed&&(t.length*=F()),t},this._checkOverlap=(t,e=0)=>{const i=this.options.collisions,s=this.getRadius();if(!i.enable)return!1;const n=i.overlap;if(n.enable)return!1;const o=n.retries;if(o>=0&&e>o)throw new Error(`${f} particle is overlapping and can't be placed`);return!!this.container.particles.find((e=>X(t,e.position)<s+e.getRadius()))},this._getRollColor=t=>{if(!t||!this.roll||!this.backColor&&!this.roll.alter)return t;const e=this.roll.horizontal&&this.roll.vertical?2:1,i=this.roll.horizontal?Math.PI*Qi:0;return Math.floor(((this.roll.angle??0)+i)/(Math.PI/e))%2?this.backColor?this.backColor:this.roll.alter?Ce(t,this.roll.alter.type,this.roll.alter.value):t:t},this._initPosition=t=>{const e=this.container,i=$(this.options.zIndex.value);this.position=this._calcPosition(e,t,W(i,0,e.zLayers)),this.initialPosition=this.position.copy();const s=e.canvas.size;switch(this.moveCenter={...Wt(this.options.move.center,s),radius:this.options.move.center.radius??0,mode:this.options.move.center.mode??lt.percent},this.direction=Z(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case y.inside:this.outType=ni.inside;break;case y.outside:this.outType=ni.outside}this.offset=C.origin},this._engine=t}destroy(t){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const e=this.container,i=this.pathGenerator,s=e.shapeDrawers.get(this.shape);s?.particleDestroy?.(this);for(const[,i]of e.plugins)i.particleDestroyed?.(this,t);for(const i of e.particles.updaters)i.particleDestroyed?.(this,t);i?.reset(this),this._engine.dispatchEvent(Ae.particleDestroyed,{container:this.container,data:{particle:this}})}draw(t){const e=this.container,i=e.canvas;for(const[,s]of e.plugins)i.drawParticlePlugin(s,this,t);i.drawParticle(this,t)}getFillColor(){return this._getRollColor(this.bubble.color??ue(this.color))}getMass(){return this.getRadius()**2*Math.PI*Qi}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){return this.bubble.radius??this.size.value}getStrokeColor(){return this._getRollColor(this.bubble.color??ue(this.strokeColor))}init(t,e,i,s){const n=this.container,o=this._engine;this.id=t,this.group=s,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.isRotating=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType=ni.normal,this.ignoresResizeRatio=!0;const a=n.retina.pixelRatio,r=n.actualOptions,c=Gi(this._engine,n,r.particles),{reduceDuplicates:h}=c,l=c.effect.type,d=c.shape.type;this.effect=Ft(l,this.id,h),this.shape=Ft(d,this.id,h);const u=c.effect,p=c.shape;if(i){if(i.effect?.type){const t=Ft(i.effect.type,this.id,h);t&&(this.effect=t,u.load(i.effect))}if(i.shape?.type){const t=Ft(i.shape.type,this.id,h);t&&(this.shape=t,p.load(i.shape))}}if(this.effect===Xi){const t=[...this.container.effectDrawers.keys()];this.effect=t[Math.floor(Math.random()*t.length)]}if(this.shape===Xi){const t=[...this.container.shapeDrawers.keys()];this.shape=t[Math.floor(Math.random()*t.length)]}this.effectData=function(t,e,i,s){const n=e.options[t];if(n)return St({close:e.close,fill:e.fill},Ft(n,i,s))}(this.effect,u,this.id,h),this.shapeData=function(t,e,i,s){const n=e.options[t];if(n)return St({close:e.close,fill:e.fill},Ft(n,i,s))}(this.shape,p,this.id,h),c.load(i);const f=this.effectData;f&&c.load(f.particles);const m=this.shapeData;m&&c.load(m.particles);const v=new Ye(o,n);v.load(n.actualOptions.interactivity),v.load(c.interactivity),this.interactivity=v,this.effectFill=f?.fill??c.effect.fill,this.effectClose=f?.close??c.effect.close,this.shapeFill=m?.fill??c.shape.fill,this.shapeClose=m?.close??c.shape.close,this.options=c;const y=this.options.move.path;this.pathDelay=$(y.delay.value)*g,y.generator&&(this.pathGenerator=this._engine.getPathGenerator(y.generator),this.pathGenerator&&n.addPath(y.generator,this.pathGenerator)&&this.pathGenerator.init(n)),n.retina.initParticle(this),this.size=Ht(this.options.size,a),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(e),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy();this.moveDecay=1-$(this.options.move.decay);const _=n.particles;_.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/n.zLayers,this.sides=24;let w=n.effectDrawers.get(this.effect);w||(w=this._engine.getEffectDrawer(this.effect),w&&n.effectDrawers.set(this.effect,w)),w?.loadEffect&&w.loadEffect(this);let b=n.shapeDrawers.get(this.shape);b||(b=this._engine.getShapeDrawer(this.shape),b&&n.shapeDrawers.set(this.shape,b)),b?.loadShape&&b.loadShape(this);const x=b?.getSidesCount;x&&(this.sides=x(this)),this.spawning=!1,this.shadowColor=Zt(this.options.shadow.color);for(const t of _.updaters)t.init(this);for(const t of _.movers)t.init?.(this);w?.particleInit?.(n,this),b?.particleInit?.(n,this);for(const[,t]of n.plugins)t.particleCreated?.(this)}isInsideCanvas(){const t=this.getRadius(),e=this.container.canvas.size,i=this.position;return i.x>=-t&&i.y>=-t&&i.y<=e.height+t&&i.x<=e.width+t}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(const t of this.container.particles.updaters)t.reset?.(this)}}class Ji{constructor(t,e){this.position=t,this.particle=e}}var Ki;!function(t){t.circle="circle",t.rectangle="rectangle"}(Ki||(Ki={}));class ts{constructor(t,e,i){this.position={x:t,y:e},this.type=i}}class es extends ts{constructor(t,e,i){super(t,e,Ki.circle),this.radius=i}contains(t){return X(t,this.position)<=this.radius}intersects(t){const e=this.position,i=t.position,s=Math.abs(i.x-e.x),n=Math.abs(i.y-e.y),o=this.radius;if(t instanceof es||t.type===Ki.circle){return o+t.radius>Math.sqrt(s**2+n**2)}if(t instanceof is||t.type===Ki.rectangle){const e=t,{width:i,height:a}=e.size;return Math.pow(s-i,2)+Math.pow(n-a,2)<=o**2||s<=o+i&&n<=o+a||s<=i||n<=a}return!1}}class is extends ts{constructor(t,e,i,s){super(t,e,Ki.rectangle),this.size={height:s,width:i}}contains(t){const e=this.size.width,i=this.size.height,s=this.position;return t.x>=s.x&&t.x<=s.x+e&&t.y>=s.y&&t.y<=s.y+i}intersects(t){if(t instanceof es)return t.intersects(this);const e=this.size.width,i=this.size.height,s=this.position,n=t.position,o=t instanceof is?t.size:{width:0,height:0},a=o.width,r=o.height;return n.x<s.x+e&&n.x+a>s.x&&n.y<s.y+i&&n.y+r>s.y}}const ss=.5;class ns{constructor(t,e){this.rectangle=t,this.capacity=e,this._subdivide=()=>{const{x:t,y:e}=this.rectangle.position,{width:i,height:s}=this.rectangle.size,{capacity:n}=this;for(let o=0;o<4;o++){const a=o%2;this._subs.push(new ns(new is(t+i*ss*a,e+s*ss*(Math.round(o*ss)-a),i*ss,s*ss),n))}this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(t){return!!this.rectangle.contains(t.position)&&(this._points.length<this.capacity?(this._points.push(t),!0):(this._divided||this._subdivide(),this._subs.some((e=>e.insert(t)))))}query(t,e){const i=[];if(!t.intersects(this.rectangle))return[];for(const s of this._points)!t.contains(s.position)&&X(t.position,s.position)>s.particle.getRadius()&&(!e||e(s.particle))||i.push(s.particle);if(this._divided)for(const s of this._subs)i.push(...s.query(t,e));return i}queryCircle(t,e,i){return this.query(new es(t.x,t.y,e),i)}queryRectangle(t,e,i){return this.query(new is(t.x,t.y,e.width,e.height),i)}}const os=t=>{const{height:e,width:i}=t;return new is(-.25*i,-.25*e,1.5*i,1.5*e)};class as{constructor(t,e){this._addToPool=(...t)=>{this._pool.push(...t)},this._applyDensity=(t,e,i)=>{const s=t.number;if(!t.number.density?.enable)return void(void 0===i?this._limit=s.limit.value:s.limit&&this._groupLimits.set(i,s.limit.value));const n=this._initDensityFactor(s.density),o=s.value,a=s.limit.value>0?s.limit.value:o,r=Math.min(o,a)*n+e,c=Math.min(this.count,this.filter((t=>t.group===i)).length);void 0===i?this._limit=s.limit.value*n:this._groupLimits.set(i,s.limit.value*n),c<r?this.push(Math.abs(r-c),void 0,t,i):c>r&&this.removeQuantity(c-r,i)},this._initDensityFactor=t=>{const e=this._container;if(!e.canvas.element||!t.enable)return 1;const i=e.canvas.element,s=e.retina.pixelRatio;return i.width*i.height/(t.height*t.width*s**2)},this._pushParticle=(t,e,i,s)=>{try{let n=this._pool.pop();n||(n=new Zi(this._engine,this._container)),n.init(this._nextId,t,e,i);let o=!0;if(s&&(o=s(n)),!o)return;return this._array.push(n),this._zArray.push(n),this._nextId++,this._engine.dispatchEvent(Ae.particleAdded,{container:this._container,data:{particle:n}}),n}catch(t){ft().warning(`${f} adding particle: ${t}`)}},this._removeParticle=(t,e,i)=>{const s=this._array[t];if(!s||s.group!==e)return!1;const n=this._zArray.indexOf(s);return this._array.splice(t,1),this._zArray.splice(n,1),s.destroy(i),this._engine.dispatchEvent(Ae.particleRemoved,{container:this._container,data:{particle:s}}),this._addToPool(s),!0},this._engine=t,this._container=e,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new ji(t,e),this._pluginsInitialized=!1;const i=e.canvas.size;this.quadTree=new ns(os(i),4),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){const t=this._container;t.actualOptions.manualParticles.forEach((e=>this.addParticle(e.position?Wt(e.position,t.canvas.size):void 0,e.options)))}addParticle(t,e,i,s){const n=this._container.actualOptions.particles.number.limit.mode,o=void 0===i?this._limit:this._groupLimits.get(i)??this._limit,a=this.count;if(o>0)switch(n){case ii.delete:{const t=a+1-o;t>0&&this.removeQuantity(t);break}case ii.wait:if(a>=o)return}return this._pushParticle(t,e,i,s)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(t){const e=this._container,i=e.canvas;i.clear(),this.update(t);for(const[,s]of e.plugins)i.drawPlugin(s,t);for(const e of this._zArray)e.draw(t)}filter(t){return this._array.filter(t)}find(t){return this._array.find(t)}get(t){return this._array[t]}handleClickMode(t){this._interactionManager.handleClickMode(t)}async init(){const t=this._container,e=t.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let i=!1;for(const[,e]of t.plugins)if(i=e.particlesInitialization?.()??i,i)break;if(this.addManualParticles(),!i){const t=e.particles,i=t.groups;for(const e in i){const s=i[e];for(let i=this.count,n=0;n<s.number?.value&&i<t.number.value;i++,n++)this.addParticle(void 0,s,e)}for(let e=this.count;e<t.number.value;e++)this.addParticle()}}async initPlugins(){if(this._pluginsInitialized)return;const t=this._container;this.movers=await this._engine.getMovers(t,!0),this.updaters=await this._engine.getUpdaters(t,!0),await this._interactionManager.init();for(const[,e]of t.pathGenerators)e.init(t)}push(t,e,i,s){for(let n=0;n<t;n++)this.addParticle(e?.position,i,s)}async redraw(){this.clear(),await this.init(),this.draw({value:0,factor:0})}remove(t,e,i){this.removeAt(this._array.indexOf(t),void 0,e,i)}removeAt(t,e=1,i,s){if(t<0||t>this.count)return;let n=0;for(let o=t;n<e&&o<this.count;o++)this._removeParticle(o--,i,s)&&n++}removeQuantity(t,e){this.removeAt(0,t,e)}setDensity(){const t=this._container.actualOptions,e=t.particles.groups;for(const t in e)this._applyDensity(e[t],0,t);this._applyDensity(t.particles,t.manualParticles.length)}setLastZIndex(t){this._lastZIndex=t,this._needsSort=this._needsSort||this._lastZIndex<t}setResizeFactor(t){this._resizeFactor=t}update(t){const e=this._container,i=new Set;this.quadTree=new ns(os(e.canvas.size),4);for(const[,t]of e.pathGenerators)t.update();for(const[,i]of e.plugins)i.update?.(t);const s=this._resizeFactor;for(const e of this._array){s&&!e.ignoresResizeRatio&&(e.position.x*=s.width,e.position.y*=s.height,e.initialPosition.x*=s.width,e.initialPosition.y*=s.height),e.ignoresResizeRatio=!1,this._interactionManager.reset(e);for(const[,i]of this._container.plugins){if(e.destroyed)break;i.particleUpdate?.(e,t)}for(const i of this.movers)i.isEnabled(e)&&i.move(e,t);e.destroyed?i.add(e):this.quadTree.insert(new Ji(e.getPosition(),e))}if(i.size){const t=t=>!i.has(t);this._array=this.filter(t),this._zArray=this._zArray.filter(t);for(const t of i)this._engine.dispatchEvent(Ae.particleRemoved,{container:this._container,data:{particle:t}});this._addToPool(...i)}this._interactionManager.externalInteract(t);for(const e of this._array){for(const i of this.updaters)i.update(e,t);e.destroyed||e.spawning||this._interactionManager.particlesInteract(e,t)}if(delete this._resizeFactor,this._needsSort){const t=this._zArray;t.sort(((t,e)=>e.position.z-t.position.z||t.id-e.id));const e=1;this._lastZIndex=t[t.length-e].position.z,this._needsSort=!1}}}class rs{constructor(t){this.container=t,this.pixelRatio=1,this.reduceFactor=1}init(){const t=this.container,e=t.actualOptions;this.pixelRatio=!e.detectRetina||vt()?1:window.devicePixelRatio,this.reduceFactor=1;const i=this.pixelRatio,s=t.canvas;if(s.element){const t=s.element;s.size.width=t.offsetWidth*i,s.size.height=t.offsetHeight*i}const n=e.particles,o=n.move;this.maxSpeed=$(o.gravity.maxSpeed)*i,this.sizeAnimationSpeed=$(n.size.animation.speed)*i}initParticle(t){const e=t.options,i=this.pixelRatio,s=e.move,n=s.distance,o=t.retina;o.moveDrift=$(s.drift)*i,o.moveSpeed=$(s.speed)*i,o.sizeAnimationSpeed=$(e.size.animation.speed)*i;const a=o.maxDistance;a.horizontal=void 0!==n.horizontal?n.horizontal*i:void 0,a.vertical=void 0!==n.vertical?n.vertical*i:void 0,o.maxSpeed=$(s.gravity.maxSpeed)*i}}function cs(t){return t&&!t.destroyed}function hs(t,e,...i){const s=new Ni(t,e);return $i(s,...i),s}class ls{constructor(t,e,i){this._intersectionManager=t=>{if(cs(this)&&this.actualOptions.pauseOnOutsideViewport)for(const e of t)e.target===this.interactivity.element&&(e.isIntersecting?this.play():this.pause())},this._nextFrame=t=>{try{if(!this._smooth&&void 0!==this._lastFrameTime&&t<this._lastFrameTime+g/this.fpsLimit)return void this.draw(!1);this._lastFrameTime??=t;const e=function(t,e=60,i=!1){return{value:t,factor:i?60/e:60*t/g}}(t-this._lastFrameTime,this.fpsLimit,this._smooth);if(this.addLifeTime(e.value),this._lastFrameTime=t,e.value>g)return void this.draw(!1);if(this.particles.draw(e),!this.alive())return void this.destroy();this.animationStatus&&this.draw(!1)}catch(t){ft().error(`${f} in animation loop`,t)}},this._engine=t,this.id=Symbol(e),this.fpsLimit=120,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._clickHandlers=new Map,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new rs(this),this.canvas=new De(this),this.particles=new as(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=hs(this._engine,this),this.actualOptions=hs(this._engine,this),this._eventListeners=new Le(this),this._intersectionObserver=_t((t=>this._intersectionManager(t))),this._engine.dispatchEvent(Ae.containerBuilt,{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&cs(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(t){if(!cs(this))return;const e=this.interactivity.element;if(!e)return;const i=(e,i,s)=>{if(!cs(this))return;const n=this.retina.pixelRatio,o={x:i.x*n,y:i.y*n},a=this.particles.quadTree.queryCircle(o,s*n);t(e,a)};let s=!1,n=!1;this._clickHandlers.set("click",(t=>{if(!cs(this))return;const e=t,s={x:e.offsetX||e.clientX,y:e.offsetY||e.clientY};i(t,s,1)})),this._clickHandlers.set("touchstart",(()=>{cs(this)&&(s=!0,n=!1)})),this._clickHandlers.set("touchmove",(()=>{cs(this)&&(n=!0)})),this._clickHandlers.set("touchend",(t=>{if(cs(this)){if(s&&!n){const e=t,s=1;let n=e.touches[e.touches.length-s];if(!n&&(n=e.changedTouches[e.changedTouches.length-s],!n))return;const o=this.canvas.element,a=o?o.getBoundingClientRect():void 0,r=0,c={x:n.clientX-(a?a.left:r),y:n.clientY-(a?a.top:r)};i(t,c,Math.max(n.radiusX,n.radiusY))}s=!1,n=!1}})),this._clickHandlers.set("touchcancel",(()=>{cs(this)&&(s=!1,n=!1)}));for(const[t,i]of this._clickHandlers)e.addEventListener(t,i)}addLifeTime(t){this._lifeTime+=t}addPath(t,e,i=!1){return!(!cs(this)||!i&&this.pathGenerators.has(t))&&(this.pathGenerators.set(t,e),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}clearClickHandlers(){if(cs(this)){for(const[t,e]of this._clickHandlers)this.interactivity.element?.removeEventListener(t,e);this._clickHandlers.clear()}}destroy(t=!0){if(cs(this)){this.stop(),this.clearClickHandlers(),this.particles.destroy(),this.canvas.destroy();for(const[,t]of this.effectDrawers)t.destroy?.(this);for(const[,t]of this.shapeDrawers)t.destroy?.(this);for(const t of this.effectDrawers.keys())this.effectDrawers.delete(t);for(const t of this.shapeDrawers.keys())this.shapeDrawers.delete(t);if(this._engine.clearPlugins(this),this.destroyed=!0,t){const t=this._engine.items,e=t.findIndex((t=>t===this));if(e>=0){const i=1;t.splice(e,i)}}this._engine.dispatchEvent(Ae.containerDestroyed,{container:this})}}draw(t){if(!cs(this))return;let e=t;const i=t=>{e&&(this._lastFrameTime=void 0,e=!1),this._nextFrame(t)};this._drawAnimationFrame=H((t=>i(t)))}async export(t,e={}){for(const[,i]of this.plugins){if(!i.export)continue;const s=await i.export(t,e);if(s.supported)return s.blob}ft().error(`${f} - Export plugin with type ${t} not found`)}handleClickMode(t){if(cs(this)){this.particles.handleClickMode(t);for(const[,e]of this.plugins)e.handleClickMode?.(t)}}async init(){if(!cs(this))return;const t=this._engine.getSupportedEffects();for(const e of t){const t=this._engine.getEffectDrawer(e);t&&this.effectDrawers.set(e,t)}const e=this._engine.getSupportedShapes();for(const t of e){const e=this._engine.getShapeDrawer(t);e&&this.shapeDrawers.set(t,e)}await this.particles.initPlugins(),this._options=hs(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=hs(this._engine,this,this._options);const i=await this._engine.getAvailablePlugins(this);for(const[t,e]of i)this.plugins.set(t,e);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{zLayers:s,duration:n,delay:o,fpsLimit:a,smooth:r}=this.actualOptions;this.zLayers=s,this._duration=$(n)*g,this._delay=$(o)*g,this._lifeTime=0;this.fpsLimit=a>0?a:120,this._smooth=r;for(const[,t]of this.effectDrawers)await(t.init?.(this));for(const[,t]of this.shapeDrawers)await(t.init?.(this));for(const[,t]of this.plugins)await(t.init?.());this._engine.dispatchEvent(Ae.containerInit,{container:this}),await this.particles.init(),this.particles.setDensity();for(const[,t]of this.plugins)t.particlesSetup?.();this._engine.dispatchEvent(Ae.particlesSetup,{container:this})}async loadTheme(t){cs(this)&&(this._currentTheme=t,await this.refresh())}pause(){if(cs(this)&&(void 0!==this._drawAnimationFrame&&(V(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const[,t]of this.plugins)t.pause?.();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent(Ae.containerPaused,{container:this})}}play(t){if(!cs(this))return;const e=this._paused||t;if(!this._firstStart||this.actualOptions.autoPlay){if(this._paused&&(this._paused=!1),e)for(const[,t]of this.plugins)t.play&&t.play();this._engine.dispatchEvent(Ae.containerPlay,{container:this}),this.draw(e??!1)}else this._firstStart=!1}async refresh(){if(cs(this))return this.stop(),this.start()}async reset(t){if(cs(this))return this._initialSourceOptions=t,this._sourceOptions=t,this._options=hs(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=hs(this._engine,this,this._options),this.refresh()}async start(){cs(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise((t=>{const e=async()=>{this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const[,t]of this.plugins)await(t.start?.());this._engine.dispatchEvent(Ae.containerStarted,{container:this}),this.play(),t()};this._delayTimeout=setTimeout((()=>{e()}),this._delay)})))}stop(){if(cs(this)&&this.started){this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element);for(const[,t]of this.plugins)t.stop?.();for(const t of this.plugins.keys())this.plugins.delete(t);this._sourceOptions=this._options,this._engine.dispatchEvent(Ae.containerStopped,{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth!==t&&(this._responsiveMaxWidth=t,!0)}}class ds{constructor(){this._listeners=new Map}addEventListener(t,e){this.removeEventListener(t,e);let i=this._listeners.get(t);i||(i=[],this._listeners.set(t,i)),i.push(e)}dispatchEvent(t,e){const i=this._listeners.get(t);i?.forEach((t=>t(e)))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,e){const i=this._listeners.get(t);if(!i)return;const s=i.length,n=i.indexOf(e);if(n<0)return;1===s?this._listeners.delete(t):i.splice(n,1)}}async function us(t,e,i,s=!1){let n=e.get(t);return n&&!s||(n=await Promise.all([...i.values()].map((e=>e(t)))),e.set(t,n)),n}const ps="true",fs="false",ms="canvas";class vs{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new ds,this._initialized=!1,this.plugins=[],this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const t={};for(const[e,i]of this._configs)t[e]=i;return t}get items(){return this._domArray}get version(){return"3.5.0"}addConfig(t){const e=t.key??t.name??"default";this._configs.set(e,t),this._eventDispatcher.dispatchEvent(Ae.configAdded,{data:{name:e,config:t}})}async addEffect(t,e,i=!0){At(t,(t=>{this.getEffectDrawer(t)||this.effectDrawers.set(t,e)})),await this.refresh(i)}addEventListener(t,e){this._eventDispatcher.addEventListener(t,e)}async addInteractor(t,e,i=!0){this._initializers.interactors.set(t,e),await this.refresh(i)}async addMover(t,e,i=!0){this._initializers.movers.set(t,e),await this.refresh(i)}async addParticleUpdater(t,e,i=!0){this._initializers.updaters.set(t,e),await this.refresh(i)}async addPathGenerator(t,e,i=!0){this.getPathGenerator(t)||this.pathGenerators.set(t,e),await this.refresh(i)}async addPlugin(t,e=!0){this.getPlugin(t.id)||this.plugins.push(t),await this.refresh(e)}async addPreset(t,e,i=!1,s=!0){!i&&this.getPreset(t)||this.presets.set(t,e),await this.refresh(s)}async addShape(t,e=!0){for(const e of t.validTypes)this.getShapeDrawer(e)||this.shapeDrawers.set(e,t);await this.refresh(e)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}dispatchEvent(t,e){this._eventDispatcher.dispatchEvent(t,e)}dom(){return this.items}domItem(t){return this.item(t)}async getAvailablePlugins(t){const e=new Map;for(const i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,await i.getPlugin(t));return e}getEffectDrawer(t){return this.effectDrawers.get(t)}async getInteractors(t,e=!1){return us(t,this.interactors,this._initializers.interactors,e)}async getMovers(t,e=!1){return us(t,this.movers,this._initializers.movers,e)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find((e=>e.id===t))}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,e=!1){return us(t,this.updaters,this._initializers.updaters,e)}init(){this._initialized||(this._initialized=!0)}item(t){const{items:e}=this,i=e[t];if(i&&!i.destroyed)return i;{const i=1;e.splice(t,i)}}async load(t){const e=t.id??t.element?.id??`tsparticles${Math.floor(1e4*F())}`,{index:s,url:n}=t,o=n?await async function(t){const e=Ft(t.url,t.index);if(!e)return t.fallback;const i=await fetch(e);return i.ok?await i.json():(ft().error(`${f} ${i.status} while retrieving config file`),t.fallback)}({fallback:t.options,url:n,index:s}):t.options,a=Ft(o,s),{items:r}=this,c=r.findIndex((t=>t.id.description===e)),h=new ls(this,e,a);if(c>=0){const t=this.item(c),e=t?1:0;t&&!t.destroyed&&t.destroy(!1),r.splice(c,e,h)}else r.push(h);const l=((t,e)=>{let s=e??document.getElementById(t);return s||(s=document.createElement("div"),s.id=t,s.dataset[i]=ps,document.body.append(s),s)})(e,t.element),d=(t=>{let e;if(t instanceof HTMLCanvasElement||t.tagName.toLowerCase()===ms)e=t,e.dataset[i]||(e.dataset[i]=fs);else{const s=t.getElementsByTagName(ms);s.length?(e=s[0],e.dataset[i]=fs):(e=document.createElement(ms),e.dataset[i]=ps,t.appendChild(e))}const s="100%";return e.style.width||(e.style.width=s),e.style.height||(e.style.height=s),e})(l);return h.canvas.loadCanvas(d),await h.start(),h}loadOptions(t,e){this.plugins.forEach((i=>i.loadOptions?.(t,e)))}loadParticlesOptions(t,e,...i){const s=this.updaters.get(t);s&&s.forEach((t=>t.loadOptions?.(e,...i)))}async refresh(t=!0){t&&await Promise.all(this.items.map((t=>t.refresh())))}removeEventListener(t,e){this._eventDispatcher.removeEventListener(t,e)}setOnClickHandler(t){const{items:e}=this;if(!e.length)throw new Error(`${f} can only set click handlers after calling tsParticles.load()`);e.forEach((e=>e.addClickHandler(t)))}}var gs,ys,_s,ws,bs;!function(t){t[t.h=1]="h",t[t.s=2]="s",t[t.l=3]="l",t[t.a=5]="a"}(gs||(gs={}));class xs{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(t){const e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.s&&void 0!==e.l)return ne(e)}handleRangeColor(t){const e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.l)return ne({h:$(e.h),l:$(e.l),s:$(e.s)})}parseString(t){if(!t.startsWith("hsl"))return;const e=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.%]+)\s*)?\)/i.exec(t);return e?oe({a:e.length>4?ot(e[gs.a]):1,h:parseInt(e[gs.h],10),l:parseInt(e[gs.l],10),s:parseInt(e[gs.s],10)}):void 0}}!function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=5]="a"}(ys||(ys={}));class zs{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(t){const e=t.value.rgb??t.value;if(void 0!==e.r)return e}handleRangeColor(t){const e=t.value.rgb??t.value;if(void 0!==e.r)return{r:$(e.r),g:$(e.g),b:$(e.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;const e=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.%]+)\s*)?\)/i.exec(t);return e?{a:e.length>4?ot(e[ys.a]):1,b:parseInt(e[ys.b],10),g:parseInt(e[ys.g],10),r:parseInt(e[ys.r],10)}:void 0}}class Ms{constructor(t){this.type=si.external,this.container=t}}class Ps{constructor(t){this.type=si.particles,this.container=t}}!function(t){t.clockwise="clockwise",t.counterClockwise="counter-clockwise",t.random="random"}(_s||(_s={})),function(t){t.linear="linear",t.radial="radial",t.random="random"}(ws||(ws={})),function(t){t.easeInBack="ease-in-back",t.easeInCirc="ease-in-circ",t.easeInCubic="ease-in-cubic",t.easeInLinear="ease-in-linear",t.easeInQuad="ease-in-quad",t.easeInQuart="ease-in-quart",t.easeInQuint="ease-in-quint",t.easeInExpo="ease-in-expo",t.easeInSine="ease-in-sine",t.easeOutBack="ease-out-back",t.easeOutCirc="ease-out-circ",t.easeOutCubic="ease-out-cubic",t.easeOutLinear="ease-out-linear",t.easeOutQuad="ease-out-quad",t.easeOutQuart="ease-out-quart",t.easeOutQuint="ease-out-quint",t.easeOutExpo="ease-out-expo",t.easeOutSine="ease-out-sine",t.easeInOutBack="ease-in-out-back",t.easeInOutCirc="ease-in-out-circ",t.easeInOutCubic="ease-in-out-cubic",t.easeInOutLinear="ease-in-out-linear",t.easeInOutQuad="ease-in-out-quad",t.easeInOutQuart="ease-in-out-quart",t.easeInOutQuint="ease-in-out-quint",t.easeInOutExpo="ease-in-out-expo",t.easeInOutSine="ease-in-out-sine"}(bs||(bs={}));const Os=function(){const t=new zs,e=new xs;Xt(t),Xt(e);const i=new vs;return i.init(),i}();return vt()||(window.tsParticles=Os),e})()));
@@ -1 +1 @@
1
- /*! tsParticles Engine v3.3.0 by Matteo Bruni */
1
+ /*! tsParticles Engine v3.5.0 by Matteo Bruni */
@@ -26,6 +26,7 @@ export declare class Container {
26
26
  readonly shapeDrawers: Map<string, IShapeDrawer<Particle>>;
27
27
  started: boolean;
28
28
  zLayers: number;
29
+ private readonly _clickHandlers;
29
30
  private _currentTheme?;
30
31
  private _delay;
31
32
  private _delayTimeout?;
@@ -51,7 +52,8 @@ export declare class Container {
51
52
  addLifeTime(value: number): void;
52
53
  addPath(key: string, generator: IMovePathGenerator, override?: boolean): boolean;
53
54
  alive(): boolean;
54
- destroy(): void;
55
+ clearClickHandlers(): void;
56
+ destroy(remove?: boolean): void;
55
57
  draw(force: boolean): void;
56
58
  export(type: string, options?: Record<string, unknown>): Promise<Blob | undefined>;
57
59
  handleClickMode(mode: string): void;
@@ -60,7 +62,7 @@ export declare class Container {
60
62
  pause(): void;
61
63
  play(force?: boolean): void;
62
64
  refresh(): Promise<void>;
63
- reset(): Promise<void>;
65
+ reset(sourceOptions?: ISourceOptions): Promise<void>;
64
66
  start(): Promise<void>;
65
67
  stop(): void;
66
68
  updateActualOptions(): boolean;
@@ -1,4 +1,4 @@
1
- import type { Container } from "./Container.js";
1
+ import { Container } from "./Container.js";
2
2
  import type { CustomEventArgs } from "../Types/CustomEventArgs.js";
3
3
  import type { CustomEventListener } from "../Types/CustomEventListener.js";
4
4
  import type { IContainerPlugin } from "./Interfaces/IContainerPlugin.js";
@@ -6,7 +6,6 @@ import type { IEffectDrawer } from "./Interfaces/IEffectDrawer.js";
6
6
  import type { IInteractor } from "./Interfaces/IInteractor.js";
7
7
  import type { ILoadParams } from "./Interfaces/ILoadParams.js";
8
8
  import type { IMovePathGenerator } from "./Interfaces/IMovePathGenerator.js";
9
- import type { IOptions } from "../Options/Interfaces/IOptions.js";
10
9
  import type { IParticleMover } from "./Interfaces/IParticleMover.js";
11
10
  import type { IParticleUpdater } from "./Interfaces/IParticleUpdater.js";
12
11
  import type { IParticlesOptions } from "../Options/Interfaces/Particles/IParticlesOptions.js";
@@ -33,7 +32,7 @@ export declare class Engine {
33
32
  readonly movers: Map<Container, IParticleMover[]>;
34
33
  readonly pathGenerators: Map<string, IMovePathGenerator>;
35
34
  readonly plugins: IPlugin[];
36
- readonly presets: Map<string, RecursivePartial<IOptions>>;
35
+ readonly presets: Map<string, RecursivePartial<import("../export-types.js").IOptions>>;
37
36
  readonly shapeDrawers: Map<string, IShapeDrawer<Particle>>;
38
37
  readonly updaters: Map<Container, IParticleUpdater[]>;
39
38
  private readonly _configs;
@@ -43,6 +42,7 @@ export declare class Engine {
43
42
  private readonly _initializers;
44
43
  constructor();
45
44
  get configs(): Record<string, ISourceOptions>;
45
+ get items(): Container[];
46
46
  get version(): string;
47
47
  addConfig(config: ISourceOptions): void;
48
48
  addEffect(effect: SingleOrMultiple<string>, drawer: IEffectDrawer, refresh?: boolean): Promise<void>;
@@ -52,8 +52,8 @@ export declare class Engine {
52
52
  addParticleUpdater(name: string, updaterInitializer: UpdaterInitializer, refresh?: boolean): Promise<void>;
53
53
  addPathGenerator(name: string, generator: IMovePathGenerator, refresh?: boolean): Promise<void>;
54
54
  addPlugin(plugin: IPlugin, refresh?: boolean): Promise<void>;
55
- addPreset(preset: string, options: RecursivePartial<IOptions>, override?: boolean, refresh?: boolean): Promise<void>;
56
- addShape(shape: SingleOrMultiple<string>, drawer: IShapeDrawer, refresh?: boolean): Promise<void>;
55
+ addPreset(preset: string, options: Readonly<ISourceOptions>, override?: boolean, refresh?: boolean): Promise<void>;
56
+ addShape(drawer: IShapeDrawer, refresh?: boolean): Promise<void>;
57
57
  clearPlugins(container: Container): void;
58
58
  dispatchEvent(type: string, args: CustomEventArgs): void;
59
59
  dom(): Container[];
@@ -70,6 +70,7 @@ export declare class Engine {
70
70
  getSupportedShapes(): IterableIterator<string>;
71
71
  getUpdaters(container: Container, force?: boolean): Promise<IParticleUpdater[]>;
72
72
  init(): void;
73
+ item(index: number): Container | undefined;
73
74
  load(params: ILoadParams): Promise<Container | undefined>;
74
75
  loadOptions(options: Options, sourceOptions: ISourceOptions): void;
75
76
  loadParticlesOptions(container: Container, options: ParticlesOptions, ...sourceOptions: (RecursivePartial<IParticlesOptions> | undefined)[]): void;
@@ -1,11 +1,10 @@
1
1
  import type { Container } from "../Container.js";
2
2
  import type { IContainerPlugin } from "./IContainerPlugin.js";
3
- import type { IOptions } from "../../Options/Interfaces/IOptions.js";
3
+ import type { ISourceOptions } from "../../Types/ISourceOptions.js";
4
4
  import type { Options } from "../../Options/Classes/Options.js";
5
- import type { RecursivePartial } from "../../Types/RecursivePartial.js";
6
5
  export interface IPlugin {
7
6
  readonly id: string;
8
7
  getPlugin(container: Container): Promise<IContainerPlugin>;
9
- loadOptions(options: Options, source?: RecursivePartial<IOptions>): void;
10
- needsPlugin(options?: RecursivePartial<IOptions>): boolean;
8
+ loadOptions(options: Options, source?: ISourceOptions): void;
9
+ needsPlugin(options?: ISourceOptions): boolean;
11
10
  }
@@ -10,4 +10,5 @@ export interface IShapeDrawer<TParticle extends Particle = Particle> {
10
10
  loadShape?: (particle: TParticle) => void;
11
11
  particleDestroy?: (particle: TParticle) => void;
12
12
  particleInit?: (container: Container, particle: TParticle) => void;
13
+ readonly validTypes: readonly string[];
13
14
  }
@@ -34,6 +34,7 @@ export declare class Particle {
34
34
  initialPosition: Vector;
35
35
  initialVelocity: Vector;
36
36
  interactivity: Interactivity;
37
+ isRotating: boolean;
37
38
  lastPathTime: number;
38
39
  misplaced: boolean;
39
40
  moveCenter: ICenterCoordinates;
@@ -1,4 +1,4 @@
1
- export declare const enum AnimationStatus {
1
+ export declare enum AnimationStatus {
2
2
  increasing = "increasing",
3
3
  decreasing = "decreasing"
4
4
  }
@@ -1,4 +1,4 @@
1
- export declare const enum MoveDirection {
1
+ export declare enum MoveDirection {
2
2
  bottom = "bottom",
3
3
  bottomLeft = "bottom-left",
4
4
  bottomRight = "bottom-right",
@@ -1,4 +1,4 @@
1
- export declare const enum OutModeDirection {
1
+ export declare enum OutModeDirection {
2
2
  bottom = "bottom",
3
3
  left = "left",
4
4
  right = "right",
@@ -1,4 +1,4 @@
1
- export declare const enum RotateDirection {
1
+ export declare enum RotateDirection {
2
2
  clockwise = "clockwise",
3
3
  counterClockwise = "counter-clockwise",
4
4
  random = "random"
@@ -1,4 +1,4 @@
1
- export declare const enum InteractivityDetect {
1
+ export declare enum InteractivityDetect {
2
2
  canvas = "canvas",
3
3
  parent = "parent",
4
4
  window = "window"
@@ -1,4 +1,4 @@
1
- export declare const enum AnimationMode {
1
+ export declare enum AnimationMode {
2
2
  auto = "auto",
3
3
  increase = "increase",
4
4
  decrease = "decrease",
@@ -1,4 +1,4 @@
1
- export declare const enum CollisionMode {
1
+ export declare enum CollisionMode {
2
2
  absorb = "absorb",
3
3
  bounce = "bounce",
4
4
  destroy = "destroy"
@@ -1,4 +1,4 @@
1
- export declare const enum LimitMode {
1
+ export declare enum LimitMode {
2
2
  delete = "delete",
3
3
  wait = "wait"
4
4
  }
@@ -1,4 +1,4 @@
1
- export declare const enum OutMode {
1
+ export declare enum OutMode {
2
2
  bounce = "bounce",
3
3
  none = "none",
4
4
  out = "out",
@@ -1,4 +1,4 @@
1
- export declare const enum PixelMode {
1
+ export declare enum PixelMode {
2
2
  precise = "precise",
3
3
  percent = "percent"
4
4
  }
@@ -1,4 +1,4 @@
1
- export declare const enum ResponsiveMode {
1
+ export declare enum ResponsiveMode {
2
2
  screen = "screen",
3
3
  canvas = "canvas"
4
4
  }
@@ -1,4 +1,4 @@
1
- export declare const enum ThemeMode {
1
+ export declare enum ThemeMode {
2
2
  any = "any",
3
3
  dark = "dark",
4
4
  light = "light"
@@ -1,4 +1,4 @@
1
- export declare const enum AlterType {
1
+ export declare enum AlterType {
2
2
  darken = "darken",
3
3
  enlighten = "enlighten"
4
4
  }
@@ -1,4 +1,4 @@
1
- export declare const enum DestroyType {
1
+ export declare enum DestroyType {
2
2
  none = "none",
3
3
  max = "max",
4
4
  min = "min"
@@ -1,4 +1,4 @@
1
- export declare const enum DivType {
1
+ export declare enum DivType {
2
2
  circle = "circle",
3
3
  rectangle = "rectangle"
4
4
  }
@@ -1,4 +1,4 @@
1
- export declare const enum EasingType {
1
+ export declare enum EasingType {
2
2
  easeInBack = "ease-in-back",
3
3
  easeInCirc = "ease-in-circ",
4
4
  easeInCubic = "ease-in-cubic",
@@ -1,4 +1,4 @@
1
- export declare const enum EventType {
1
+ export declare enum EventType {
2
2
  configAdded = "configAdded",
3
3
  containerInit = "containerInit",
4
4
  particlesSetup = "particlesSetup",
@@ -1,4 +1,4 @@
1
- export declare const enum GradientType {
1
+ export declare enum GradientType {
2
2
  linear = "linear",
3
3
  radial = "radial",
4
4
  random = "random"
@@ -1,4 +1,4 @@
1
- export declare const enum InteractorType {
1
+ export declare enum InteractorType {
2
2
  external = "external",
3
3
  particles = "particles"
4
4
  }
@@ -1,4 +1,4 @@
1
- export declare const enum ParticleOutType {
1
+ export declare enum ParticleOutType {
2
2
  normal = "normal",
3
3
  inside = "inside",
4
4
  outside = "outside"
@@ -1,4 +1,4 @@
1
- export declare const enum StartValueType {
1
+ export declare enum StartValueType {
2
2
  max = "max",
3
3
  min = "min",
4
4
  random = "random"