dune-react 0.0.1

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 (269) hide show
  1. package/README.md +49 -0
  2. package/dist/_virtual/_commonjsHelpers.js +8 -0
  3. package/dist/_virtual/index.js +4 -0
  4. package/dist/_virtual/sha1.js +4 -0
  5. package/dist/_virtual/util.js +4 -0
  6. package/dist/components/index.d.ts +4 -0
  7. package/dist/components/ui-custom/background.d.ts +8 -0
  8. package/dist/components/ui-custom/background.js +51 -0
  9. package/dist/components/ui-custom/cover.d.ts +17 -0
  10. package/dist/components/ui-custom/cover.js +231 -0
  11. package/dist/components/ui-custom/sparkles.d.ts +13 -0
  12. package/dist/components/ui-custom/sparkles.js +418 -0
  13. package/dist/components/ui-custom/spotlight-new.d.ts +13 -0
  14. package/dist/index.d.ts +2 -0
  15. package/dist/index.js +40 -0
  16. package/dist/node_modules/.pnpm/@fluid-tailwind_tailwind-merge@0.0.3_tailwind-merge@3.3.1/node_modules/@fluid-tailwind/tailwind-merge/dist/index.js +50 -0
  17. package/dist/node_modules/.pnpm/@tsparticles_basic@3.9.1/node_modules/@tsparticles/basic/browser/index.js +25 -0
  18. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Canvas.js +510 -0
  19. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Container.js +463 -0
  20. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Engine.js +293 -0
  21. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Particle.js +355 -0
  22. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Particles.js +326 -0
  23. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Retina.js +37 -0
  24. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Constants.js +105 -0
  25. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/EventListeners.js +309 -0
  26. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/ExternalInteractorBase.js +10 -0
  27. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/InteractionManager.js +64 -0
  28. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/ParticlesInteractorBase.js +10 -0
  29. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Point.js +9 -0
  30. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/QuadTree.js +60 -0
  31. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Ranges.js +57 -0
  32. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Vectors.js +120 -0
  33. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/AnimationStatus.js +8 -0
  34. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/MoveDirection.js +17 -0
  35. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/OutModeDirection.js +10 -0
  36. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/RotateDirection.js +9 -0
  37. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/InteractivityDetect.js +9 -0
  38. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/AnimationMode.js +10 -0
  39. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/CollisionMode.js +9 -0
  40. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/LimitMode.js +8 -0
  41. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/OutMode.js +11 -0
  42. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/PixelMode.js +8 -0
  43. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/ResponsiveMode.js +8 -0
  44. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/ThemeMode.js +9 -0
  45. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/AlterType.js +8 -0
  46. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/DestroyType.js +9 -0
  47. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/DivType.js +8 -0
  48. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/EasingType.js +33 -0
  49. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/EventType.js +18 -0
  50. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/GradientType.js +9 -0
  51. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/InteractorType.js +8 -0
  52. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/ParticleOutType.js +9 -0
  53. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/StartValueType.js +9 -0
  54. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/AnimatableColor.js +38 -0
  55. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/AnimationOptions.js +60 -0
  56. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Background/Background.js +39 -0
  57. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/BackgroundMask/BackgroundMask.js +27 -0
  58. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.js +24 -0
  59. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/ColorAnimation.js +22 -0
  60. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/FullScreen/FullScreen.js +21 -0
  61. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/HslAnimation.js +20 -0
  62. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/ClickEvent.js +21 -0
  63. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/DivEvent.js +30 -0
  64. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/Events.js +33 -0
  65. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/HoverEvent.js +24 -0
  66. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/Parallax.js +25 -0
  67. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/ResizeEvent.js +21 -0
  68. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Interactivity.js +25 -0
  69. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Modes/Modes.js +28 -0
  70. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/ManualParticle.js +24 -0
  71. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Options.js +163 -0
  72. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/OptionsColor.js +29 -0
  73. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Bounce/ParticlesBounce.js +18 -0
  74. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +10 -0
  75. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Collisions/Collisions.js +36 -0
  76. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Collisions/CollisionsAbsorb.js +17 -0
  77. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Collisions/CollisionsOverlap.js +21 -0
  78. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Effect/Effect.js +36 -0
  79. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/Move.js +95 -0
  80. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveAngle.js +22 -0
  81. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveAttract.js +36 -0
  82. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveCenter.js +30 -0
  83. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveGravity.js +30 -0
  84. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveTrail.js +26 -0
  85. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveTrailFill.js +18 -0
  86. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/OutModes.js +22 -0
  87. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/Path/MovePath.js +30 -0
  88. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/Spin.js +26 -0
  89. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Number/ParticlesDensity.js +27 -0
  90. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Number/ParticlesNumber.js +23 -0
  91. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Number/ParticlesNumberLimit.js +22 -0
  92. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Opacity/Opacity.js +23 -0
  93. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +22 -0
  94. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/ParticlesOptions.js +97 -0
  95. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Shadow.js +38 -0
  96. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Shape/Shape.js +36 -0
  97. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Size/Size.js +23 -0
  98. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Size/SizeAnimation.js +22 -0
  99. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Stroke.js +25 -0
  100. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/ZIndex/ZIndex.js +28 -0
  101. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Responsive.js +31 -0
  102. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Theme/Theme.js +24 -0
  103. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Theme/ThemeDefault.js +26 -0
  104. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/ValueWithRandom.js +46 -0
  105. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Types/RangeType.js +8 -0
  106. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/CanvasUtils.js +168 -0
  107. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/ColorUtils.js +316 -0
  108. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/EventDispatcher.js +47 -0
  109. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/NumberUtils.js +135 -0
  110. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/OptionsUtils.js +15 -0
  111. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/TypeUtils.js +26 -0
  112. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/Utils.js +475 -0
  113. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/index.js +82 -0
  114. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/init.js +9 -0
  115. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/Attractor.js +81 -0
  116. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/Options/Classes/Attract.js +38 -0
  117. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/Utils.js +50 -0
  118. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/index.js +10 -0
  119. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/Bouncer.js +45 -0
  120. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/Options/Classes/Bounce.js +17 -0
  121. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/Utils.js +47 -0
  122. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/index.js +10 -0
  123. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Bubbler.js +274 -0
  124. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Enums.js +9 -0
  125. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Options/Classes/Bubble.js +20 -0
  126. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Options/Classes/BubbleBase.js +39 -0
  127. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Options/Classes/BubbleDiv.js +20 -0
  128. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Utils.js +13 -0
  129. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/index.js +10 -0
  130. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Connector.js +59 -0
  131. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Options/Classes/Connect.js +24 -0
  132. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Options/Classes/ConnectLinks.js +17 -0
  133. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Utils.js +44 -0
  134. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/index.js +10 -0
  135. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Grabber.js +76 -0
  136. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Options/Classes/Grab.js +20 -0
  137. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Options/Classes/GrabLinks.js +29 -0
  138. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Utils.js +19 -0
  139. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/index.js +10 -0
  140. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-pause@3.9.1/node_modules/@tsparticles/interaction-external-pause/browser/Pauser.js +32 -0
  141. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-pause@3.9.1/node_modules/@tsparticles/interaction-external-pause/browser/index.js +10 -0
  142. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-push@3.9.1/node_modules/@tsparticles/interaction-external-push/browser/Options/Classes/Push.js +34 -0
  143. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-push@3.9.1/node_modules/@tsparticles/interaction-external-push/browser/Pusher.js +47 -0
  144. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-push@3.9.1/node_modules/@tsparticles/interaction-external-push/browser/index.js +10 -0
  145. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-remove@3.9.1/node_modules/@tsparticles/interaction-external-remove/browser/Options/Classes/Remove.js +19 -0
  146. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-remove@3.9.1/node_modules/@tsparticles/interaction-external-remove/browser/Remover.js +39 -0
  147. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-remove@3.9.1/node_modules/@tsparticles/interaction-external-remove/browser/index.js +10 -0
  148. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/Options/Classes/Repulse.js +20 -0
  149. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/Options/Classes/RepulseBase.js +38 -0
  150. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/Options/Classes/RepulseDiv.js +20 -0
  151. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/Repulser.js +160 -0
  152. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/index.js +10 -0
  153. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-slow@3.9.1/node_modules/@tsparticles/interaction-external-slow/browser/Options/Classes/Slow.js +21 -0
  154. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-slow@3.9.1/node_modules/@tsparticles/interaction-external-slow/browser/Slower.js +53 -0
  155. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-slow@3.9.1/node_modules/@tsparticles/interaction-external-slow/browser/index.js +10 -0
  156. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-attract@3.9.1/node_modules/@tsparticles/interaction-particles-attract/browser/Attractor.js +37 -0
  157. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-attract@3.9.1/node_modules/@tsparticles/interaction-particles-attract/browser/index.js +10 -0
  158. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Absorb.js +28 -0
  159. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Bounce.js +18 -0
  160. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Collider.js +41 -0
  161. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Destroy.js +17 -0
  162. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/ResolveCollision.js +23 -0
  163. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/index.js +10 -0
  164. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/CircleWarp.js +33 -0
  165. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/LinkInstance.js +152 -0
  166. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Linker.js +109 -0
  167. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/LinksPlugin.js +18 -0
  168. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Options/Classes/Links.js +58 -0
  169. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Options/Classes/LinksShadow.js +25 -0
  170. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Options/Classes/LinksTriangle.js +28 -0
  171. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Utils.js +106 -0
  172. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/index.js +10 -0
  173. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/interaction.js +9 -0
  174. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/plugin.js +8 -0
  175. package/dist/node_modules/.pnpm/@tsparticles_move-base@3.9.1/node_modules/@tsparticles/move-base/browser/BaseMover.js +37 -0
  176. package/dist/node_modules/.pnpm/@tsparticles_move-base@3.9.1/node_modules/@tsparticles/move-base/browser/Utils.js +128 -0
  177. package/dist/node_modules/.pnpm/@tsparticles_move-base@3.9.1/node_modules/@tsparticles/move-base/browser/index.js +10 -0
  178. package/dist/node_modules/.pnpm/@tsparticles_move-parallax@3.9.1/node_modules/@tsparticles/move-parallax/browser/ParallaxMover.js +31 -0
  179. package/dist/node_modules/.pnpm/@tsparticles_move-parallax@3.9.1/node_modules/@tsparticles/move-parallax/browser/index.js +10 -0
  180. package/dist/node_modules/.pnpm/@tsparticles_plugin-easing-quad@3.9.1/node_modules/@tsparticles/plugin-easing-quad/browser/index.js +11 -0
  181. package/dist/node_modules/.pnpm/@tsparticles_plugin-hex-color@3.9.1/node_modules/@tsparticles/plugin-hex-color/browser/HexColorManager.js +43 -0
  182. package/dist/node_modules/.pnpm/@tsparticles_plugin-hex-color@3.9.1/node_modules/@tsparticles/plugin-hex-color/browser/index.js +8 -0
  183. package/dist/node_modules/.pnpm/@tsparticles_plugin-hsl-color@3.9.1/node_modules/@tsparticles/plugin-hsl-color/browser/HslColorManager.js +46 -0
  184. package/dist/node_modules/.pnpm/@tsparticles_plugin-hsl-color@3.9.1/node_modules/@tsparticles/plugin-hsl-color/browser/index.js +8 -0
  185. package/dist/node_modules/.pnpm/@tsparticles_plugin-rgb-color@3.9.1/node_modules/@tsparticles/plugin-rgb-color/browser/RgbColorManager.js +45 -0
  186. package/dist/node_modules/.pnpm/@tsparticles_plugin-rgb-color@3.9.1/node_modules/@tsparticles/plugin-rgb-color/browser/index.js +8 -0
  187. package/dist/node_modules/.pnpm/@tsparticles_react@3.0.0_@tsparticles_engine@3.9.1_react-dom@18.3.1_react@18.3.1/node_modules/@tsparticles/react/dist/Particles.js +18 -0
  188. package/dist/node_modules/.pnpm/@tsparticles_react@3.0.0_@tsparticles_engine@3.9.1_react-dom@18.3.1_react@18.3.1/node_modules/@tsparticles/react/dist/index.js +9 -0
  189. package/dist/node_modules/.pnpm/@tsparticles_shape-circle@3.9.1/node_modules/@tsparticles/shape-circle/browser/CircleDrawer.js +28 -0
  190. package/dist/node_modules/.pnpm/@tsparticles_shape-circle@3.9.1/node_modules/@tsparticles/shape-circle/browser/Utils.js +12 -0
  191. package/dist/node_modules/.pnpm/@tsparticles_shape-circle@3.9.1/node_modules/@tsparticles/shape-circle/browser/index.js +8 -0
  192. package/dist/node_modules/.pnpm/@tsparticles_shape-emoji@3.9.1/node_modules/@tsparticles/shape-emoji/browser/EmojiDrawer.js +103 -0
  193. package/dist/node_modules/.pnpm/@tsparticles_shape-emoji@3.9.1/node_modules/@tsparticles/shape-emoji/browser/Utils.js +13 -0
  194. package/dist/node_modules/.pnpm/@tsparticles_shape-emoji@3.9.1/node_modules/@tsparticles/shape-emoji/browser/index.js +8 -0
  195. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/ByteStream.js +51 -0
  196. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Constants.js +6 -0
  197. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Enums/DisposalMethod.js +14 -0
  198. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Types/GIFDataHeaders.js +13 -0
  199. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Utils.js +419 -0
  200. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/ImageDrawer.js +130 -0
  201. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/ImagePreloader.js +36 -0
  202. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/Options/Classes/Preload.js +33 -0
  203. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/Utils.js +94 -0
  204. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/index.js +54 -0
  205. package/dist/node_modules/.pnpm/@tsparticles_shape-line@3.9.1/node_modules/@tsparticles/shape-line/browser/LineDrawer.js +16 -0
  206. package/dist/node_modules/.pnpm/@tsparticles_shape-line@3.9.1/node_modules/@tsparticles/shape-line/browser/Utils.js +9 -0
  207. package/dist/node_modules/.pnpm/@tsparticles_shape-line@3.9.1/node_modules/@tsparticles/shape-line/browser/index.js +8 -0
  208. package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/PolygonDrawer.js +27 -0
  209. package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/PolygonDrawerBase.js +16 -0
  210. package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/TriangleDrawer.js +30 -0
  211. package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/Utils.js +19 -0
  212. package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/index.js +20 -0
  213. package/dist/node_modules/.pnpm/@tsparticles_shape-square@3.9.1/node_modules/@tsparticles/shape-square/browser/SquareDrawer.js +16 -0
  214. package/dist/node_modules/.pnpm/@tsparticles_shape-square@3.9.1/node_modules/@tsparticles/shape-square/browser/Utils.js +8 -0
  215. package/dist/node_modules/.pnpm/@tsparticles_shape-square@3.9.1/node_modules/@tsparticles/shape-square/browser/index.js +8 -0
  216. package/dist/node_modules/.pnpm/@tsparticles_shape-star@3.9.1/node_modules/@tsparticles/shape-star/browser/StarDrawer.js +22 -0
  217. package/dist/node_modules/.pnpm/@tsparticles_shape-star@3.9.1/node_modules/@tsparticles/shape-star/browser/Utils.js +14 -0
  218. package/dist/node_modules/.pnpm/@tsparticles_shape-star@3.9.1/node_modules/@tsparticles/shape-star/browser/index.js +8 -0
  219. package/dist/node_modules/.pnpm/@tsparticles_slim@3.9.1/node_modules/@tsparticles/slim/browser/index.js +56 -0
  220. package/dist/node_modules/.pnpm/@tsparticles_updater-color@3.9.1/node_modules/@tsparticles/updater-color/browser/ColorUpdater.js +23 -0
  221. package/dist/node_modules/.pnpm/@tsparticles_updater-color@3.9.1/node_modules/@tsparticles/updater-color/browser/index.js +10 -0
  222. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/LifeUpdater.js +52 -0
  223. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Options/Classes/Life.js +23 -0
  224. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Options/Classes/LifeDelay.js +20 -0
  225. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Options/Classes/LifeDuration.js +20 -0
  226. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Utils.js +58 -0
  227. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/index.js +10 -0
  228. package/dist/node_modules/.pnpm/@tsparticles_updater-opacity@3.9.1/node_modules/@tsparticles/updater-opacity/browser/OpacityUpdater.js +38 -0
  229. package/dist/node_modules/.pnpm/@tsparticles_updater-opacity@3.9.1/node_modules/@tsparticles/updater-opacity/browser/index.js +10 -0
  230. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/BounceOutMode.js +36 -0
  231. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/DestroyOutMode.js +37 -0
  232. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/NoneOutMode.js +36 -0
  233. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/OutOfCanvasUpdater.js +45 -0
  234. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/OutOutMode.js +110 -0
  235. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/Utils.js +66 -0
  236. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/index.js +10 -0
  237. package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/Options/Classes/Rotate.js +29 -0
  238. package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/Options/Classes/RotateAnimation.js +30 -0
  239. package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/RotateUpdater.js +77 -0
  240. package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/index.js +10 -0
  241. package/dist/node_modules/.pnpm/@tsparticles_updater-size@3.9.1/node_modules/@tsparticles/updater-size/browser/SizeUpdater.js +30 -0
  242. package/dist/node_modules/.pnpm/@tsparticles_updater-size@3.9.1/node_modules/@tsparticles/updater-size/browser/index.js +10 -0
  243. package/dist/node_modules/.pnpm/@tsparticles_updater-stroke-color@3.9.1/node_modules/@tsparticles/updater-stroke-color/browser/StrokeColorUpdater.js +35 -0
  244. package/dist/node_modules/.pnpm/@tsparticles_updater-stroke-color@3.9.1/node_modules/@tsparticles/updater-stroke-color/browser/index.js +10 -0
  245. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -0
  246. package/dist/node_modules/.pnpm/file-type@12.4.1/node_modules/file-type/index.js +826 -0
  247. package/dist/node_modules/.pnpm/file-type@12.4.1/node_modules/file-type/supported.js +242 -0
  248. package/dist/node_modules/.pnpm/file-type@12.4.1/node_modules/file-type/util.js +64 -0
  249. package/dist/node_modules/.pnpm/js-sha1@0.6.0/node_modules/js-sha1/src/sha1.js +311 -0
  250. package/dist/node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/index.browser.js +22 -0
  251. package/dist/node_modules/.pnpm/tailwind-merge@3.3.1/node_modules/tailwind-merge/dist/bundle-mjs.js +3007 -0
  252. package/dist/utils/css-utils.d.ts +10 -0
  253. package/dist/utils/css-utils.js +17 -0
  254. package/dist/utils/index.d.ts +9 -0
  255. package/dist/utils/storage-qetag.d.ts +22 -0
  256. package/dist/utils/storage-qetag.js +3 -0
  257. package/dist/utils/utils-api.d.ts +17 -0
  258. package/dist/utils/utils-api.js +31 -0
  259. package/dist/utils/utils-canvas.d.ts +30 -0
  260. package/dist/utils/utils-canvas.js +54 -0
  261. package/dist/utils/utils-common.d.ts +6 -0
  262. package/dist/utils/utils-common.js +15 -0
  263. package/dist/utils/utils-image.d.ts +33 -0
  264. package/dist/utils/utils-image.js +57 -0
  265. package/dist/utils/utils-random.d.ts +1 -0
  266. package/dist/utils/utils-random.js +6 -0
  267. package/dist/utils/utils-time.d.ts +49 -0
  268. package/dist/utils/utils-time.js +112 -0
  269. package/package.json +81 -0
@@ -0,0 +1,109 @@
1
+ import { CircleWarp } from "./CircleWarp.js";
2
+ import { Links } from "./Options/Classes/Links.js";
3
+ import { ParticlesInteractorBase } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/ParticlesInteractorBase.js";
4
+ import { getLinkRandomColor } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/ColorUtils.js";
5
+ import { Circle } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Ranges.js";
6
+ import { getDistances } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/NumberUtils.js";
7
+ const squarePower = 2, opacityOffset = 1, origin = {
8
+ x: 0,
9
+ y: 0
10
+ }, minDistance = 0;
11
+ function getLinkDistance(pos1, pos2, optDistance, canvasSize, warp) {
12
+ const { dx, dy, distance } = getDistances(pos1, pos2);
13
+ if (!warp || distance <= optDistance) {
14
+ return distance;
15
+ }
16
+ const absDiffs = {
17
+ x: Math.abs(dx),
18
+ y: Math.abs(dy)
19
+ }, warpDistances = {
20
+ x: Math.min(absDiffs.x, canvasSize.width - absDiffs.x),
21
+ y: Math.min(absDiffs.y, canvasSize.height - absDiffs.y)
22
+ };
23
+ return Math.sqrt(warpDistances.x ** squarePower + warpDistances.y ** squarePower);
24
+ }
25
+ class Linker extends ParticlesInteractorBase {
26
+ constructor(container, engine) {
27
+ super(container);
28
+ this._setColor = (p1) => {
29
+ if (!p1.options.links) {
30
+ return;
31
+ }
32
+ const container2 = this._linkContainer, linksOptions = p1.options.links;
33
+ let linkColor = linksOptions.id === void 0 ? container2.particles.linksColor : container2.particles.linksColors.get(linksOptions.id);
34
+ if (linkColor) {
35
+ return;
36
+ }
37
+ const optColor = linksOptions.color;
38
+ linkColor = getLinkRandomColor(this._engine, optColor, linksOptions.blink, linksOptions.consent);
39
+ if (linksOptions.id === void 0) {
40
+ container2.particles.linksColor = linkColor;
41
+ } else {
42
+ container2.particles.linksColors.set(linksOptions.id, linkColor);
43
+ }
44
+ };
45
+ this._linkContainer = container;
46
+ this._engine = engine;
47
+ }
48
+ clear() {
49
+ }
50
+ init() {
51
+ this._linkContainer.particles.linksColor = void 0;
52
+ this._linkContainer.particles.linksColors = /* @__PURE__ */ new Map();
53
+ }
54
+ interact(p1) {
55
+ if (!p1.options.links) {
56
+ return;
57
+ }
58
+ p1.links = [];
59
+ const pos1 = p1.getPosition(), container = this.container, canvasSize = container.canvas.size;
60
+ if (pos1.x < origin.x || pos1.y < origin.y || pos1.x > canvasSize.width || pos1.y > canvasSize.height) {
61
+ return;
62
+ }
63
+ const linkOpt1 = p1.options.links, optOpacity = linkOpt1.opacity, optDistance = p1.retina.linksDistance ?? minDistance, warp = linkOpt1.warp;
64
+ let range;
65
+ if (warp) {
66
+ range = new CircleWarp(pos1.x, pos1.y, optDistance, canvasSize);
67
+ } else {
68
+ range = new Circle(pos1.x, pos1.y, optDistance);
69
+ }
70
+ const query = container.particles.quadTree.query(range);
71
+ for (const p2 of query) {
72
+ const linkOpt2 = p2.options.links;
73
+ if (p1 === p2 || !(linkOpt2 == null ? void 0 : linkOpt2.enable) || linkOpt1.id !== linkOpt2.id || p2.spawning || p2.destroyed || !p2.links || p1.links.some((t) => t.destination === p2) || p2.links.some((t) => t.destination === p1)) {
74
+ continue;
75
+ }
76
+ const pos2 = p2.getPosition();
77
+ if (pos2.x < origin.x || pos2.y < origin.y || pos2.x > canvasSize.width || pos2.y > canvasSize.height) {
78
+ continue;
79
+ }
80
+ const distance = getLinkDistance(pos1, pos2, optDistance, canvasSize, warp && linkOpt2.warp);
81
+ if (distance > optDistance) {
82
+ continue;
83
+ }
84
+ const opacityLine = (opacityOffset - distance / optDistance) * optOpacity;
85
+ this._setColor(p1);
86
+ p1.links.push({
87
+ destination: p2,
88
+ opacity: opacityLine
89
+ });
90
+ }
91
+ }
92
+ isEnabled(particle) {
93
+ var _a;
94
+ return !!((_a = particle.options.links) == null ? void 0 : _a.enable);
95
+ }
96
+ loadParticlesOptions(options, ...sources) {
97
+ if (!options.links) {
98
+ options.links = new Links();
99
+ }
100
+ for (const source of sources) {
101
+ options.links.load(source == null ? void 0 : source.links);
102
+ }
103
+ }
104
+ reset() {
105
+ }
106
+ }
107
+ export {
108
+ Linker
109
+ };
@@ -0,0 +1,18 @@
1
+ import { LinkInstance } from "./LinkInstance.js";
2
+ class LinksPlugin {
3
+ constructor(engine) {
4
+ this.id = "links";
5
+ this._engine = engine;
6
+ }
7
+ getPlugin(container) {
8
+ return Promise.resolve(new LinkInstance(container, this._engine));
9
+ }
10
+ loadOptions() {
11
+ }
12
+ needsPlugin() {
13
+ return true;
14
+ }
15
+ }
16
+ export {
17
+ LinksPlugin
18
+ };
@@ -0,0 +1,58 @@
1
+ import { LinksShadow } from "./LinksShadow.js";
2
+ import { LinksTriangle } from "./LinksTriangle.js";
3
+ import { OptionsColor } from "../../../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/OptionsColor.js";
4
+ import { isNull } from "../../../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/TypeUtils.js";
5
+ class Links {
6
+ constructor() {
7
+ this.blink = false;
8
+ this.color = new OptionsColor();
9
+ this.color.value = "#fff";
10
+ this.consent = false;
11
+ this.distance = 100;
12
+ this.enable = false;
13
+ this.frequency = 1;
14
+ this.opacity = 1;
15
+ this.shadow = new LinksShadow();
16
+ this.triangles = new LinksTriangle();
17
+ this.width = 1;
18
+ this.warp = false;
19
+ }
20
+ load(data) {
21
+ if (isNull(data)) {
22
+ return;
23
+ }
24
+ if (data.id !== void 0) {
25
+ this.id = data.id;
26
+ }
27
+ if (data.blink !== void 0) {
28
+ this.blink = data.blink;
29
+ }
30
+ this.color = OptionsColor.create(this.color, data.color);
31
+ if (data.consent !== void 0) {
32
+ this.consent = data.consent;
33
+ }
34
+ if (data.distance !== void 0) {
35
+ this.distance = data.distance;
36
+ }
37
+ if (data.enable !== void 0) {
38
+ this.enable = data.enable;
39
+ }
40
+ if (data.frequency !== void 0) {
41
+ this.frequency = data.frequency;
42
+ }
43
+ if (data.opacity !== void 0) {
44
+ this.opacity = data.opacity;
45
+ }
46
+ this.shadow.load(data.shadow);
47
+ this.triangles.load(data.triangles);
48
+ if (data.width !== void 0) {
49
+ this.width = data.width;
50
+ }
51
+ if (data.warp !== void 0) {
52
+ this.warp = data.warp;
53
+ }
54
+ }
55
+ }
56
+ export {
57
+ Links
58
+ };
@@ -0,0 +1,25 @@
1
+ import { OptionsColor } from "../../../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/OptionsColor.js";
2
+ import { isNull } from "../../../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/TypeUtils.js";
3
+ class LinksShadow {
4
+ constructor() {
5
+ this.blur = 5;
6
+ this.color = new OptionsColor();
7
+ this.color.value = "#000";
8
+ this.enable = false;
9
+ }
10
+ load(data) {
11
+ if (isNull(data)) {
12
+ return;
13
+ }
14
+ if (data.blur !== void 0) {
15
+ this.blur = data.blur;
16
+ }
17
+ this.color = OptionsColor.create(this.color, data.color);
18
+ if (data.enable !== void 0) {
19
+ this.enable = data.enable;
20
+ }
21
+ }
22
+ }
23
+ export {
24
+ LinksShadow
25
+ };
@@ -0,0 +1,28 @@
1
+ import { isNull } from "../../../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/TypeUtils.js";
2
+ import { OptionsColor } from "../../../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/OptionsColor.js";
3
+ class LinksTriangle {
4
+ constructor() {
5
+ this.enable = false;
6
+ this.frequency = 1;
7
+ }
8
+ load(data) {
9
+ if (isNull(data)) {
10
+ return;
11
+ }
12
+ if (data.color !== void 0) {
13
+ this.color = OptionsColor.create(this.color, data.color);
14
+ }
15
+ if (data.enable !== void 0) {
16
+ this.enable = data.enable;
17
+ }
18
+ if (data.frequency !== void 0) {
19
+ this.frequency = data.frequency;
20
+ }
21
+ if (data.opacity !== void 0) {
22
+ this.opacity = data.opacity;
23
+ }
24
+ }
25
+ }
26
+ export {
27
+ LinksTriangle
28
+ };
@@ -0,0 +1,106 @@
1
+ import { getStyleFromRgb, rangeColorToRgb } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/ColorUtils.js";
2
+ import { getDistance, getDistances, getRandom } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/NumberUtils.js";
3
+ import { drawLine } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/CanvasUtils.js";
4
+ function drawTriangle(context, p1, p2, p3) {
5
+ context.beginPath();
6
+ context.moveTo(p1.x, p1.y);
7
+ context.lineTo(p2.x, p2.y);
8
+ context.lineTo(p3.x, p3.y);
9
+ context.closePath();
10
+ }
11
+ function drawLinkLine(params) {
12
+ let drawn = false;
13
+ const { begin, end, engine, maxDistance, context, canvasSize, width, backgroundMask, colorLine, opacity, links } = params;
14
+ if (getDistance(begin, end) <= maxDistance) {
15
+ drawLine(context, begin, end);
16
+ drawn = true;
17
+ } else if (links.warp) {
18
+ let pi1;
19
+ let pi2;
20
+ const endNE = {
21
+ x: end.x - canvasSize.width,
22
+ y: end.y
23
+ };
24
+ const d1 = getDistances(begin, endNE);
25
+ if (d1.distance <= maxDistance) {
26
+ const yi = begin.y - d1.dy / d1.dx * begin.x;
27
+ pi1 = { x: 0, y: yi };
28
+ pi2 = { x: canvasSize.width, y: yi };
29
+ } else {
30
+ const endSW = {
31
+ x: end.x,
32
+ y: end.y - canvasSize.height
33
+ };
34
+ const d2 = getDistances(begin, endSW);
35
+ if (d2.distance <= maxDistance) {
36
+ const yi = begin.y - d2.dy / d2.dx * begin.x;
37
+ const xi = -yi / (d2.dy / d2.dx);
38
+ pi1 = { x: xi, y: 0 };
39
+ pi2 = { x: xi, y: canvasSize.height };
40
+ } else {
41
+ const endSE = {
42
+ x: end.x - canvasSize.width,
43
+ y: end.y - canvasSize.height
44
+ };
45
+ const d3 = getDistances(begin, endSE);
46
+ if (d3.distance <= maxDistance) {
47
+ const yi = begin.y - d3.dy / d3.dx * begin.x;
48
+ const xi = -yi / (d3.dy / d3.dx);
49
+ pi1 = { x: xi, y: yi };
50
+ pi2 = { x: pi1.x + canvasSize.width, y: pi1.y + canvasSize.height };
51
+ }
52
+ }
53
+ }
54
+ if (pi1 && pi2) {
55
+ drawLine(context, begin, pi1);
56
+ drawLine(context, end, pi2);
57
+ drawn = true;
58
+ }
59
+ }
60
+ if (!drawn) {
61
+ return;
62
+ }
63
+ context.lineWidth = width;
64
+ if (backgroundMask.enable) {
65
+ context.globalCompositeOperation = backgroundMask.composite;
66
+ }
67
+ context.strokeStyle = getStyleFromRgb(colorLine, opacity);
68
+ const { shadow } = links;
69
+ if (shadow.enable) {
70
+ const shadowColor = rangeColorToRgb(engine, shadow.color);
71
+ if (shadowColor) {
72
+ context.shadowBlur = shadow.blur;
73
+ context.shadowColor = getStyleFromRgb(shadowColor);
74
+ }
75
+ }
76
+ context.stroke();
77
+ }
78
+ function drawLinkTriangle(params) {
79
+ const { context, pos1, pos2, pos3, backgroundMask, colorTriangle, opacityTriangle } = params;
80
+ drawTriangle(context, pos1, pos2, pos3);
81
+ if (backgroundMask.enable) {
82
+ context.globalCompositeOperation = backgroundMask.composite;
83
+ }
84
+ context.fillStyle = getStyleFromRgb(colorTriangle, opacityTriangle);
85
+ context.fill();
86
+ }
87
+ function getLinkKey(ids) {
88
+ ids.sort((a, b) => a - b);
89
+ return ids.join("_");
90
+ }
91
+ function setLinkFrequency(particles, dictionary) {
92
+ const key = getLinkKey(particles.map((t) => t.id));
93
+ let res = dictionary.get(key);
94
+ if (res === void 0) {
95
+ res = getRandom();
96
+ dictionary.set(key, res);
97
+ }
98
+ return res;
99
+ }
100
+ export {
101
+ drawLinkLine,
102
+ drawLinkTriangle,
103
+ drawTriangle,
104
+ getLinkKey,
105
+ setLinkFrequency
106
+ };
@@ -0,0 +1,10 @@
1
+ import { loadLinksInteraction } from "./interaction.js";
2
+ import { loadLinksPlugin } from "./plugin.js";
3
+ async function loadParticlesLinksInteraction(engine, refresh = true) {
4
+ engine.checkVersion("3.9.1");
5
+ await loadLinksInteraction(engine, refresh);
6
+ await loadLinksPlugin(engine, refresh);
7
+ }
8
+ export {
9
+ loadParticlesLinksInteraction
10
+ };
@@ -0,0 +1,9 @@
1
+ import { Linker } from "./Linker.js";
2
+ async function loadLinksInteraction(engine, refresh = true) {
3
+ await engine.addInteractor("particlesLinks", async (container) => {
4
+ return Promise.resolve(new Linker(container, engine));
5
+ }, refresh);
6
+ }
7
+ export {
8
+ loadLinksInteraction
9
+ };
@@ -0,0 +1,8 @@
1
+ import { LinksPlugin } from "./LinksPlugin.js";
2
+ async function loadLinksPlugin(engine, refresh = true) {
3
+ const plugin = new LinksPlugin(engine);
4
+ await engine.addPlugin(plugin, refresh);
5
+ }
6
+ export {
7
+ loadLinksPlugin
8
+ };
@@ -0,0 +1,37 @@
1
+ import { initSpin, getProximitySpeedFactor, spin, move, applyDistance } from "./Utils.js";
2
+ import { getRangeValue, getRangeMax } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/NumberUtils.js";
3
+ const diffFactor = 2, defaultSizeFactor = 1, defaultDeltaFactor = 1;
4
+ class BaseMover {
5
+ init(particle) {
6
+ const options = particle.options, gravityOptions = options.move.gravity;
7
+ particle.gravity = {
8
+ enable: gravityOptions.enable,
9
+ acceleration: getRangeValue(gravityOptions.acceleration),
10
+ inverse: gravityOptions.inverse
11
+ };
12
+ initSpin(particle);
13
+ }
14
+ isEnabled(particle) {
15
+ return !particle.destroyed && particle.options.move.enable;
16
+ }
17
+ move(particle, delta) {
18
+ var _a, _b;
19
+ const particleOptions = particle.options, moveOptions = particleOptions.move;
20
+ if (!moveOptions.enable) {
21
+ return;
22
+ }
23
+ const container = particle.container, pxRatio = container.retina.pixelRatio;
24
+ (_a = particle.retina).moveSpeed ?? (_a.moveSpeed = getRangeValue(moveOptions.speed) * pxRatio);
25
+ (_b = particle.retina).moveDrift ?? (_b.moveDrift = getRangeValue(particle.options.move.drift) * pxRatio);
26
+ const slowFactor = getProximitySpeedFactor(particle), reduceFactor = container.retina.reduceFactor, baseSpeed = particle.retina.moveSpeed, moveDrift = particle.retina.moveDrift, maxSize = getRangeMax(particleOptions.size.value) * pxRatio, sizeFactor = moveOptions.size ? particle.getRadius() / maxSize : defaultSizeFactor, deltaFactor = delta.factor || defaultDeltaFactor, moveSpeed = baseSpeed * sizeFactor * slowFactor * deltaFactor / diffFactor, maxSpeed = particle.retina.maxSpeed ?? container.retina.maxSpeed;
27
+ if (moveOptions.spin.enable) {
28
+ spin(particle, moveSpeed, reduceFactor);
29
+ } else {
30
+ move(particle, moveOptions, moveSpeed, maxSpeed, moveDrift, reduceFactor, delta);
31
+ }
32
+ applyDistance(particle);
33
+ }
34
+ }
35
+ export {
36
+ BaseMover
37
+ };
@@ -0,0 +1,128 @@
1
+ import { getDistance, getRangeValue, getRandom, getDistances, clamp } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/NumberUtils.js";
2
+ import { RotateDirection } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/RotateDirection.js";
3
+ const half = 0.5, double = 2, minVelocity = 0, identity = 1, moveSpeedFactor = 60, minSpinRadius = 0, spinFactor = 0.01, doublePI = Math.PI * double;
4
+ function applyDistance(particle) {
5
+ const initialPosition = particle.initialPosition, { dx, dy } = getDistances(initialPosition, particle.position), dxFixed = Math.abs(dx), dyFixed = Math.abs(dy), { maxDistance } = particle.retina, hDistance = maxDistance.horizontal, vDistance = maxDistance.vertical;
6
+ if (!hDistance && !vDistance) {
7
+ return;
8
+ }
9
+ const hasHDistance = (hDistance && dxFixed >= hDistance) ?? false, hasVDistance = (vDistance && dyFixed >= vDistance) ?? false;
10
+ if ((hasHDistance || hasVDistance) && !particle.misplaced) {
11
+ particle.misplaced = !!hDistance && dxFixed > hDistance || !!vDistance && dyFixed > vDistance;
12
+ if (hDistance) {
13
+ particle.velocity.x = particle.velocity.y * half - particle.velocity.x;
14
+ }
15
+ if (vDistance) {
16
+ particle.velocity.y = particle.velocity.x * half - particle.velocity.y;
17
+ }
18
+ } else if ((!hDistance || dxFixed < hDistance) && (!vDistance || dyFixed < vDistance) && particle.misplaced) {
19
+ particle.misplaced = false;
20
+ } else if (particle.misplaced) {
21
+ const pos = particle.position, vel = particle.velocity;
22
+ if (hDistance && (pos.x < initialPosition.x && vel.x < minVelocity || pos.x > initialPosition.x && vel.x > minVelocity)) {
23
+ vel.x *= -getRandom();
24
+ }
25
+ if (vDistance && (pos.y < initialPosition.y && vel.y < minVelocity || pos.y > initialPosition.y && vel.y > minVelocity)) {
26
+ vel.y *= -getRandom();
27
+ }
28
+ }
29
+ }
30
+ function move(particle, moveOptions, moveSpeed, maxSpeed, moveDrift, reduceFactor, delta) {
31
+ applyPath(particle, delta);
32
+ const gravityOptions = particle.gravity, gravityFactor = (gravityOptions == null ? void 0 : gravityOptions.enable) && gravityOptions.inverse ? -identity : identity;
33
+ if (moveDrift && moveSpeed) {
34
+ particle.velocity.x += moveDrift * delta.factor / (moveSpeedFactor * moveSpeed);
35
+ }
36
+ if ((gravityOptions == null ? void 0 : gravityOptions.enable) && moveSpeed) {
37
+ particle.velocity.y += gravityFactor * (gravityOptions.acceleration * delta.factor) / (moveSpeedFactor * moveSpeed);
38
+ }
39
+ const decay = particle.moveDecay;
40
+ particle.velocity.multTo(decay);
41
+ const velocity = particle.velocity.mult(moveSpeed);
42
+ if ((gravityOptions == null ? void 0 : gravityOptions.enable) && maxSpeed > minVelocity && (!gravityOptions.inverse && velocity.y >= minVelocity && velocity.y >= maxSpeed || gravityOptions.inverse && velocity.y <= minVelocity && velocity.y <= -maxSpeed)) {
43
+ velocity.y = gravityFactor * maxSpeed;
44
+ if (moveSpeed) {
45
+ particle.velocity.y = velocity.y / moveSpeed;
46
+ }
47
+ }
48
+ const zIndexOptions = particle.options.zIndex, zVelocityFactor = (identity - particle.zIndexFactor) ** zIndexOptions.velocityRate;
49
+ velocity.multTo(zVelocityFactor);
50
+ velocity.multTo(reduceFactor);
51
+ const { position } = particle;
52
+ position.addTo(velocity);
53
+ if (moveOptions.vibrate) {
54
+ position.x += Math.sin(position.x * Math.cos(position.y)) * reduceFactor;
55
+ position.y += Math.cos(position.y * Math.sin(position.x)) * reduceFactor;
56
+ }
57
+ }
58
+ function spin(particle, moveSpeed, reduceFactor) {
59
+ const container = particle.container;
60
+ if (!particle.spin) {
61
+ return;
62
+ }
63
+ const spinClockwise = particle.spin.direction === RotateDirection.clockwise, updateFunc = {
64
+ x: spinClockwise ? Math.cos : Math.sin,
65
+ y: spinClockwise ? Math.sin : Math.cos
66
+ };
67
+ particle.position.x = particle.spin.center.x + particle.spin.radius * updateFunc.x(particle.spin.angle) * reduceFactor;
68
+ particle.position.y = particle.spin.center.y + particle.spin.radius * updateFunc.y(particle.spin.angle) * reduceFactor;
69
+ particle.spin.radius += particle.spin.acceleration * reduceFactor;
70
+ const maxCanvasSize = Math.max(container.canvas.size.width, container.canvas.size.height), halfMaxSize = maxCanvasSize * half;
71
+ if (particle.spin.radius > halfMaxSize) {
72
+ particle.spin.radius = halfMaxSize;
73
+ particle.spin.acceleration *= -identity;
74
+ } else if (particle.spin.radius < minSpinRadius) {
75
+ particle.spin.radius = minSpinRadius;
76
+ particle.spin.acceleration *= -identity;
77
+ }
78
+ particle.spin.angle += moveSpeed * spinFactor * (identity - particle.spin.radius / maxCanvasSize);
79
+ }
80
+ function applyPath(particle, delta) {
81
+ var _a;
82
+ const particlesOptions = particle.options, pathOptions = particlesOptions.move.path, pathEnabled = pathOptions.enable;
83
+ if (!pathEnabled) {
84
+ return;
85
+ }
86
+ if (particle.lastPathTime <= particle.pathDelay) {
87
+ particle.lastPathTime += delta.value;
88
+ return;
89
+ }
90
+ const path = (_a = particle.pathGenerator) == null ? void 0 : _a.generate(particle, delta);
91
+ if (path) {
92
+ particle.velocity.addTo(path);
93
+ }
94
+ if (pathOptions.clamp) {
95
+ particle.velocity.x = clamp(particle.velocity.x, -identity, identity);
96
+ particle.velocity.y = clamp(particle.velocity.y, -identity, identity);
97
+ }
98
+ particle.lastPathTime -= particle.pathDelay;
99
+ }
100
+ function getProximitySpeedFactor(particle) {
101
+ return particle.slow.inRange ? particle.slow.factor : identity;
102
+ }
103
+ function initSpin(particle) {
104
+ const container = particle.container, options = particle.options, spinOptions = options.move.spin;
105
+ if (!spinOptions.enable) {
106
+ return;
107
+ }
108
+ const spinPos = spinOptions.position ?? { x: 50, y: 50 }, spinFactor2 = 0.01, spinCenter = {
109
+ x: spinPos.x * spinFactor2 * container.canvas.size.width,
110
+ y: spinPos.y * spinFactor2 * container.canvas.size.height
111
+ }, pos = particle.getPosition(), distance = getDistance(pos, spinCenter), spinAcceleration = getRangeValue(spinOptions.acceleration);
112
+ particle.retina.spinAcceleration = spinAcceleration * container.retina.pixelRatio;
113
+ particle.spin = {
114
+ center: spinCenter,
115
+ direction: particle.velocity.x >= minVelocity ? RotateDirection.clockwise : RotateDirection.counterClockwise,
116
+ angle: getRandom() * doublePI,
117
+ radius: distance,
118
+ acceleration: particle.retina.spinAcceleration
119
+ };
120
+ }
121
+ export {
122
+ applyDistance,
123
+ applyPath,
124
+ getProximitySpeedFactor,
125
+ initSpin,
126
+ move,
127
+ spin
128
+ };
@@ -0,0 +1,10 @@
1
+ import { BaseMover } from "./BaseMover.js";
2
+ async function loadBaseMover(engine, refresh = true) {
3
+ engine.checkVersion("3.9.1");
4
+ await engine.addMover("base", () => {
5
+ return Promise.resolve(new BaseMover());
6
+ }, refresh);
7
+ }
8
+ export {
9
+ loadBaseMover
10
+ };
@@ -0,0 +1,31 @@
1
+ import { isSsr } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/Utils.js";
2
+ const half = 0.5;
3
+ class ParallaxMover {
4
+ init() {
5
+ }
6
+ isEnabled(particle) {
7
+ return !isSsr() && !particle.destroyed && particle.container.actualOptions.interactivity.events.onHover.parallax.enable;
8
+ }
9
+ move(particle) {
10
+ const container = particle.container, options = container.actualOptions, parallaxOptions = options.interactivity.events.onHover.parallax;
11
+ if (isSsr() || !parallaxOptions.enable) {
12
+ return;
13
+ }
14
+ const parallaxForce = parallaxOptions.force, mousePos = container.interactivity.mouse.position;
15
+ if (!mousePos) {
16
+ return;
17
+ }
18
+ const canvasSize = container.canvas.size, canvasCenter = {
19
+ x: canvasSize.width * half,
20
+ y: canvasSize.height * half
21
+ }, parallaxSmooth = parallaxOptions.smooth, factor = particle.getRadius() / parallaxForce, centerDistance = {
22
+ x: (mousePos.x - canvasCenter.x) * factor,
23
+ y: (mousePos.y - canvasCenter.y) * factor
24
+ }, { offset } = particle;
25
+ offset.x += (centerDistance.x - offset.x) / parallaxSmooth;
26
+ offset.y += (centerDistance.y - offset.y) / parallaxSmooth;
27
+ }
28
+ }
29
+ export {
30
+ ParallaxMover
31
+ };
@@ -0,0 +1,10 @@
1
+ import { ParallaxMover } from "./ParallaxMover.js";
2
+ async function loadParallaxMover(engine, refresh = true) {
3
+ engine.checkVersion("3.9.1");
4
+ await engine.addMover("parallax", () => {
5
+ return Promise.resolve(new ParallaxMover());
6
+ }, refresh);
7
+ }
8
+ export {
9
+ loadParallaxMover
10
+ };
@@ -0,0 +1,11 @@
1
+ import { EasingType } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/EasingType.js";
2
+ async function loadEasingQuadPlugin(engine, refresh = true) {
3
+ engine.checkVersion("3.9.1");
4
+ await engine.addEasing(EasingType.easeInQuad, (value) => value ** 2, false);
5
+ await engine.addEasing(EasingType.easeOutQuad, (value) => 1 - (1 - value) ** 2, false);
6
+ await engine.addEasing(EasingType.easeInOutQuad, (value) => value < 0.5 ? 2 * value ** 2 : 1 - (-2 * value + 2) ** 2 / 2, false);
7
+ await engine.refresh(refresh);
8
+ }
9
+ export {
10
+ loadEasingQuadPlugin
11
+ };
@@ -0,0 +1,43 @@
1
+ var RgbIndexes;
2
+ (function(RgbIndexes2) {
3
+ RgbIndexes2[RgbIndexes2["r"] = 1] = "r";
4
+ RgbIndexes2[RgbIndexes2["g"] = 2] = "g";
5
+ RgbIndexes2[RgbIndexes2["b"] = 3] = "b";
6
+ RgbIndexes2[RgbIndexes2["a"] = 4] = "a";
7
+ })(RgbIndexes || (RgbIndexes = {}));
8
+ const shorthandHexRegex = /^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, hexRegex = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, hexRadix = 16, defaultAlpha = 1, alphaFactor = 255;
9
+ class HexColorManager {
10
+ constructor() {
11
+ this.key = "hex";
12
+ this.stringPrefix = "#";
13
+ }
14
+ handleColor(color) {
15
+ return this._parseString(color.value);
16
+ }
17
+ handleRangeColor(color) {
18
+ return this._parseString(color.value);
19
+ }
20
+ parseString(input) {
21
+ return this._parseString(input);
22
+ }
23
+ _parseString(hexColor) {
24
+ if (typeof hexColor !== "string") {
25
+ return;
26
+ }
27
+ if (!(hexColor == null ? void 0 : hexColor.startsWith(this.stringPrefix))) {
28
+ return;
29
+ }
30
+ const hexFixed = hexColor.replace(shorthandHexRegex, (_, r, g, b, a) => {
31
+ return r + r + g + g + b + b + (a !== void 0 ? a + a : "");
32
+ }), result = hexRegex.exec(hexFixed);
33
+ return result ? {
34
+ a: result[RgbIndexes.a] !== void 0 ? parseInt(result[RgbIndexes.a], hexRadix) / alphaFactor : defaultAlpha,
35
+ b: parseInt(result[RgbIndexes.b], hexRadix),
36
+ g: parseInt(result[RgbIndexes.g], hexRadix),
37
+ r: parseInt(result[RgbIndexes.r], hexRadix)
38
+ } : void 0;
39
+ }
40
+ }
41
+ export {
42
+ HexColorManager
43
+ };
@@ -0,0 +1,8 @@
1
+ import { HexColorManager } from "./HexColorManager.js";
2
+ async function loadHexColorPlugin(engine, refresh = true) {
3
+ engine.checkVersion("3.9.1");
4
+ await engine.addColorManager(new HexColorManager(), refresh);
5
+ }
6
+ export {
7
+ loadHexColorPlugin
8
+ };